text: // Compiled by ClojureScript 1.10.520 {}
  goog.provide('devtools.formatters.markup');
  goog.require('cljs.core');
  goog.require('devtools.formatters.helpers');
  goog.require('devtools.formatters.printing');
  goog.require('devtools.formatters.state');
  goog.require('devtools.formatters.templating');
  goog.require('devtools.munging');
  devtools.formatters.markup.print_with = (function devtools$formatters$markup$print_with(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46338 = arguments.length;
  var i__4731__auto___46339 = (0);
  while(true){
  if((i__4731__auto___46339 < len__4730__auto___46338)){
  args__4736__auto__.push((arguments[i__4731__auto___46339]));
  
  var G__46340 = (i__4731__auto___46339 + (1));
  i__4731__auto___46339 = G__46340;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((3) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((3)),(0),null)):null);
  return devtools.formatters.markup.print_with.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),(arguments[(2)]),argseq__4737__auto__);
  });
  
  devtools.formatters.markup.print_with.cljs$core$IFn$_invoke$arity$variadic = (function (method,value,tag,p__46332){
  var vec__46333 = p__46332;
  var max_level = cljs.core.nth.call(null,vec__46333,(0),null);
  var job_fn = ((function (vec__46333,max_level){
  return (function (){
  return method.call(null,value,tag,devtools.formatters.markup.get_markup_db.call(null));
  });})(vec__46333,max_level))
  ;
  if((!((max_level == null)))){
  var _STAR_print_level_STAR__orig_val__46336 = cljs.core._STAR_print_level_STAR_;
  var _STAR_print_level_STAR__temp_val__46337 = (max_level + (1));
  cljs.core._STAR_print_level_STAR_ = _STAR_print_level_STAR__temp_val__46337;
  
  try{return job_fn.call(null);
  }finally {cljs.core._STAR_print_level_STAR_ = _STAR_print_level_STAR__orig_val__46336;
  }} else {
  return job_fn.call(null);
  }
  });
  
  devtools.formatters.markup.print_with.cljs$lang$maxFixedArity = (3);
  
  /** @this {Function} */
  devtools.formatters.markup.print_with.cljs$lang$applyTo = (function (seq46328){
  var G__46329 = cljs.core.first.call(null,seq46328);
  var seq46328__$1 = cljs.core.next.call(null,seq46328);
  var G__46330 = cljs.core.first.call(null,seq46328__$1);
  var seq46328__$2 = cljs.core.next.call(null,seq46328__$1);
  var G__46331 = cljs.core.first.call(null,seq46328__$2);
  var seq46328__$3 = cljs.core.next.call(null,seq46328__$2);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__46329,G__46330,G__46331,seq46328__$3);
  });
  
  devtools.formatters.markup.print_via_writer = (function devtools$formatters$markup$print_via_writer(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46348 = arguments.length;
  var i__4731__auto___46349 = (0);
  while(true){
  if((i__4731__auto___46349 < len__4730__auto___46348)){
  args__4736__auto__.push((arguments[i__4731__auto___46349]));
  
  var G__46350 = (i__4731__auto___46349 + (1));
  i__4731__auto___46349 = G__46350;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((2) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((2)),(0),null)):null);
  return devtools.formatters.markup.print_via_writer.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),argseq__4737__auto__);
  });
  
  devtools.formatters.markup.print_via_writer.cljs$core$IFn$_invoke$arity$variadic = (function (value,tag,p__46344){
  var vec__46345 = p__46344;
  var max_level = cljs.core.nth.call(null,vec__46345,(0),null);
  return devtools.formatters.markup.print_with.call(null,devtools.formatters.printing.managed_print_via_writer,value,tag,max_level);
  });
  
  devtools.formatters.markup.print_via_writer.cljs$lang$maxFixedArity = (2);
  
  /** @this {Function} */
  devtools.formatters.markup.print_via_writer.cljs$lang$applyTo = (function (seq46341){
  var G__46342 = cljs.core.first.call(null,seq46341);
  var seq46341__$1 = cljs.core.next.call(null,seq46341);
  var G__46343 = cljs.core.first.call(null,seq46341__$1);
  var seq46341__$2 = cljs.core.next.call(null,seq46341__$1);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__46342,G__46343,seq46341__$2);
  });
  
  devtools.formatters.markup.print_via_protocol = (function devtools$formatters$markup$print_via_protocol(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46358 = arguments.length;
  var i__4731__auto___46359 = (0);
  while(true){
  if((i__4731__auto___46359 < len__4730__auto___46358)){
  args__4736__auto__.push((arguments[i__4731__auto___46359]));
  
  var G__46360 = (i__4731__auto___46359 + (1));
  i__4731__auto___46359 = G__46360;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((2) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((2)),(0),null)):null);
  return devtools.formatters.markup.print_via_protocol.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),argseq__4737__auto__);
  });
  
  devtools.formatters.markup.print_via_protocol.cljs$core$IFn$_invoke$arity$variadic = (function (value,tag,p__46354){
  var vec__46355 = p__46354;
  var max_level = cljs.core.nth.call(null,vec__46355,(0),null);
  return devtools.formatters.markup.print_with.call(null,devtools.formatters.printing.managed_print_via_protocol,value,tag,max_level);
  });
  
  devtools.formatters.markup.print_via_protocol.cljs$lang$maxFixedArity = (2);
  
  /** @this {Function} */
  devtools.formatters.markup.print_via_protocol.cljs$lang$applyTo = (function (seq46351){
  var G__46352 = cljs.core.first.call(null,seq46351);
  var seq46351__$1 = cljs.core.next.call(null,seq46351);
  var G__46353 = cljs.core.first.call(null,seq46351__$1);
  var seq46351__$2 = cljs.core.next.call(null,seq46351__$1);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__46352,G__46353,seq46351__$2);
  });
  
  devtools.formatters.markup._LT_expandable_GT_ = (function devtools$formatters$markup$_LT_expandable_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46362 = arguments.length;
  var i__4731__auto___46363 = (0);
  while(true){
  if((i__4731__auto___46363 < len__4730__auto___46362)){
  args__4736__auto__.push((arguments[i__4731__auto___46363]));
  
  var G__46364 = (i__4731__auto___46363 + (1));
  i__4731__auto___46363 = G__46364;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((0) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((0)),(0),null)):null);
  return devtools.formatters.markup._LT_expandable_GT_.cljs$core$IFn$_invoke$arity$variadic(argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_expandable_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (children){
  var inner_markup = cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"expandable-inner-tag","expandable-inner-tag",-799648560)], null),children);
  return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"expandable-tag","expandable-tag",151027578),new cljs.core.Keyword(null,"expandable-symbol","expandable-symbol",1644611290),inner_markup], null);
  });
  
  devtools.formatters.markup._LT_expandable_GT_.cljs$lang$maxFixedArity = (0);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_expandable_GT_.cljs$lang$applyTo = (function (seq46361){
  var self__4718__auto__ = this;
  return self__4718__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq46361));
  });
  
  devtools.formatters.markup._LT_raw_surrogate_GT_ = (function devtools$formatters$markup$_LT_raw_surrogate_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46366 = arguments.length;
  var i__4731__auto___46367 = (0);
  while(true){
  if((i__4731__auto___46367 < len__4730__auto___46366)){
  args__4736__auto__.push((arguments[i__4731__auto___46367]));
  
  var G__46368 = (i__4731__auto___46367 + (1));
  i__4731__auto___46367 = G__46368;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((0) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((0)),(0),null)):null);
  return devtools.formatters.markup._LT_raw_surrogate_GT_.cljs$core$IFn$_invoke$arity$variadic(argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_raw_surrogate_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (args){
  return cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["surrogate"], null),args);
  });
  
  devtools.formatters.markup._LT_raw_surrogate_GT_.cljs$lang$maxFixedArity = (0);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_raw_surrogate_GT_.cljs$lang$applyTo = (function (seq46365){
  var self__4718__auto__ = this;
  return self__4718__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq46365));
  });
  
  devtools.formatters.markup._LT_surrogate_GT_ = (function devtools$formatters$markup$_LT_surrogate_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46374 = arguments.length;
  var i__4731__auto___46375 = (0);
  while(true){
  if((i__4731__auto___46375 < len__4730__auto___46374)){
  args__4736__auto__.push((arguments[i__4731__auto___46375]));
  
  var G__46376 = (i__4731__auto___46375 + (1));
  i__4731__auto___46375 = G__46376;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((0) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((0)),(0),null)):null);
  return devtools.formatters.markup._LT_surrogate_GT_.cljs$core$IFn$_invoke$arity$variadic(argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_surrogate_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (p__46370){
  var vec__46371 = p__46370;
  var object = cljs.core.nth.call(null,vec__46371,(0),null);
  var header = cljs.core.nth.call(null,vec__46371,(1),null);
  var body = cljs.core.nth.call(null,vec__46371,(2),null);
  var start_index = cljs.core.nth.call(null,vec__46371,(3),null);
  var header__$1 = (((!((body == null))))?devtools.formatters.markup._LT_expandable_GT_.call(null,header):header);
  return devtools.formatters.markup._LT_raw_surrogate_GT_.call(null,object,header__$1,body,start_index);
  });
  
  devtools.formatters.markup._LT_surrogate_GT_.cljs$lang$maxFixedArity = (0);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_surrogate_GT_.cljs$lang$applyTo = (function (seq46369){
  var self__4718__auto__ = this;
  return self__4718__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq46369));
  });
  
  devtools.formatters.markup._LT_reference_GT_ = (function devtools$formatters$markup$_LT_reference_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46378 = arguments.length;
  var i__4731__auto___46379 = (0);
  while(true){
  if((i__4731__auto___46379 < len__4730__auto___46378)){
  args__4736__auto__.push((arguments[i__4731__auto___46379]));
  
  var G__46380 = (i__4731__auto___46379 + (1));
  i__4731__auto___46379 = G__46380;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((0) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((0)),(0),null)):null);
  return devtools.formatters.markup._LT_reference_GT_.cljs$core$IFn$_invoke$arity$variadic(argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_reference_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (args){
  return cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["reference"], null),args);
  });
  
  devtools.formatters.markup._LT_reference_GT_.cljs$lang$maxFixedArity = (0);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_reference_GT_.cljs$lang$applyTo = (function (seq46377){
  var self__4718__auto__ = this;
  return self__4718__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq46377));
  });
  
  devtools.formatters.markup._LT_reference_surrogate_GT_ = (function devtools$formatters$markup$_LT_reference_surrogate_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46382 = arguments.length;
  var i__4731__auto___46383 = (0);
  while(true){
  if((i__4731__auto___46383 < len__4730__auto___46382)){
  args__4736__auto__.push((arguments[i__4731__auto___46383]));
  
  var G__46384 = (i__4731__auto___46383 + (1));
  i__4731__auto___46383 = G__46384;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((0) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((0)),(0),null)):null);
  return devtools.formatters.markup._LT_reference_surrogate_GT_.cljs$core$IFn$_invoke$arity$variadic(argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_reference_surrogate_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (args){
  return devtools.formatters.markup._LT_reference_GT_.call(null,cljs.core.apply.call(null,devtools.formatters.markup._LT_surrogate_GT_,args));
  });
  
  devtools.formatters.markup._LT_reference_surrogate_GT_.cljs$lang$maxFixedArity = (0);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_reference_surrogate_GT_.cljs$lang$applyTo = (function (seq46381){
  var self__4718__auto__ = this;
  return self__4718__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq46381));
  });
  
  devtools.formatters.markup._LT_circular_reference_GT_ = (function devtools$formatters$markup$_LT_circular_reference_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46386 = arguments.length;
  var i__4731__auto___46387 = (0);
  while(true){
  if((i__4731__auto___46387 < len__4730__auto___46386)){
  args__4736__auto__.push((arguments[i__4731__auto___46387]));
  
  var G__46388 = (i__4731__auto___46387 + (1));
  i__4731__auto___46387 = G__46388;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((0) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((0)),(0),null)):null);
  return devtools.formatters.markup._LT_circular_reference_GT_.cljs$core$IFn$_invoke$arity$variadic(argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_circular_reference_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (children){
  return devtools.formatters.markup._LT_reference_surrogate_GT_.call(null,null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"circular-reference-tag","circular-reference-tag",858973471),new cljs.core.Keyword(null,"circular-ref-icon","circular-ref-icon",-2087682919)], null),cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"circular-reference-body-tag","circular-reference-body-tag",-1301830023)], null),children));
  });
  
  devtools.formatters.markup._LT_circular_reference_GT_.cljs$lang$maxFixedArity = (0);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_circular_reference_GT_.cljs$lang$applyTo = (function (seq46385){
  var self__4718__auto__ = this;
  return self__4718__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq46385));
  });
  
  devtools.formatters.markup._LT_native_reference_GT_ = (function devtools$formatters$markup$_LT_native_reference_GT_(object){
  var reference = devtools.formatters.markup._LT_reference_GT_.call(null,object,(function (p1__46389_SHARP_){
  return devtools.formatters.state.set_prevent_recursion.call(null,p1__46389_SHARP_,true);
  }));
  return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"native-reference-wrapper-tag","native-reference-wrapper-tag",2047690940),new cljs.core.Keyword(null,"native-reference-background","native-reference-background",-286129550),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"native-reference-tag","native-reference-tag",-1516119079),reference], null)], null);
  });
  devtools.formatters.markup._LT_header_expander_GT_ = (function devtools$formatters$markup$_LT_header_expander_GT_(object){
  return devtools.formatters.markup._LT_reference_GT_.call(null,devtools.formatters.markup._LT_raw_surrogate_GT_.call(null,object,new cljs.core.Keyword(null,"header-expander-symbol","header-expander-symbol",907531743),new cljs.core.Keyword(null,"target","target",253001721)),devtools.formatters.state.reset_depth_limits);
  });
  devtools.formatters.markup._LT_cljs_land_GT_ = (function devtools$formatters$markup$_LT_cljs_land_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46391 = arguments.length;
  var i__4731__auto___46392 = (0);
  while(true){
  if((i__4731__auto___46392 < len__4730__auto___46391)){
  args__4736__auto__.push((arguments[i__4731__auto___46392]));
  
  var G__46393 = (i__4731__auto___46392 + (1));
  i__4731__auto___46392 = G__46393;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((0) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((0)),(0),null)):null);
  return devtools.formatters.markup._LT_cljs_land_GT_.cljs$core$IFn$_invoke$arity$variadic(argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_cljs_land_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (children){
  return cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"cljs-land-tag","cljs-land-tag",-7524377)], null),children);
  });
  
  devtools.formatters.markup._LT_cljs_land_GT_.cljs$lang$maxFixedArity = (0);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_cljs_land_GT_.cljs$lang$applyTo = (function (seq46390){
  var self__4718__auto__ = this;
  return self__4718__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq46390));
  });
  
  devtools.formatters.markup._LT_nil_GT_ = (function devtools$formatters$markup$_LT_nil_GT_(){
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"nil-tag","nil-tag",-1587449115),new cljs.core.Keyword(null,"nil-label","nil-label",-587789203)], null);
  });
  devtools.formatters.markup._LT_bool_GT_ = (function devtools$formatters$markup$_LT_bool_GT_(bool){
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"bool-tag","bool-tag",-10409808),cljs.core.str.cljs$core$IFn$_invoke$arity$1(bool)], null);
  });
  devtools.formatters.markup._LT_keyword_GT_ = (function devtools$formatters$markup$_LT_keyword_GT_(keyword){
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"keyword-tag","keyword-tag",1587228387),cljs.core.str.cljs$core$IFn$_invoke$arity$1(keyword)], null);
  });
  devtools.formatters.markup._LT_symbol_GT_ = (function devtools$formatters$markup$_LT_symbol_GT_(symbol){
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"symbol-tag","symbol-tag",-100807517),cljs.core.str.cljs$core$IFn$_invoke$arity$1(symbol)], null);
  });
  devtools.formatters.markup._LT_number_GT_ = (function devtools$formatters$markup$_LT_number_GT_(number){
  if(cljs.core.integer_QMARK_.call(null,number)){
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"integer-tag","integer-tag",698000472),number], null);
  } else {
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"float-tag","float-tag",-390834106),number], null);
  }
  });
  devtools.formatters.markup._LT_string_GT_ = (function devtools$formatters$markup$_LT_string_GT_(string){
  var dq = devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"dq","dq",-1690275860));
  var re_nl = (new RegExp("\n","g"));
  var nl_marker = devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"new-line-string-replacer","new-line-string-replacer",-753206206));
  var inline_string = string.replace(re_nl,nl_marker);
  var max_inline_string_size = (devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"string-prefix-limit","string-prefix-limit",1256106332)) + devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"string-postfix-limit","string-postfix-limit",-1282205963)));
  var quote_string = ((function (dq,re_nl,nl_marker,inline_string,max_inline_string_size){
  return (function (s){
  return [cljs.core.str.cljs$core$IFn$_invoke$arity$1(dq),cljs.core.str.cljs$core$IFn$_invoke$arity$1(s),cljs.core.str.cljs$core$IFn$_invoke$arity$1(dq)].join('');
  });})(dq,re_nl,nl_marker,inline_string,max_inline_string_size))
  ;
  var should_abbreviate_QMARK_ = (cljs.core.count.call(null,inline_string) > max_inline_string_size);
  if(should_abbreviate_QMARK_){
  var abbreviated_string = devtools.formatters.helpers.abbreviate_long_string.call(null,inline_string,devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"string-abbreviation-marker","string-abbreviation-marker",-347785112)),devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"string-prefix-limit","string-prefix-limit",1256106332)),devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"string-postfix-limit","string-postfix-limit",-1282205963)));
  var abbreviated_string_markup = new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"string-tag","string-tag",1639024494),quote_string.call(null,abbreviated_string)], null);
  var string_with_nl_markers = string.replace(re_nl,[cljs.core.str.cljs$core$IFn$_invoke$arity$1(nl_marker),"\n"].join(''));
  var details_markup = new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"expanded-string-tag","expanded-string-tag",-2125162127),string_with_nl_markers], null);
  return devtools.formatters.markup._LT_reference_surrogate_GT_.call(null,string,abbreviated_string_markup,details_markup);
  } else {
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"string-tag","string-tag",1639024494),quote_string.call(null,inline_string)], null);
  }
  });
  devtools.formatters.markup._LT_preview_GT_ = (function devtools$formatters$markup$_LT_preview_GT_(value){
  return devtools.formatters.markup.print_via_writer.call(null,value,new cljs.core.Keyword(null,"header-tag","header-tag",1594852433),devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"max-print-level","max-print-level",-462237413)));
  });
  devtools.formatters.markup._LT_body_GT_ = (function devtools$formatters$markup$_LT_body_GT_(markup){
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"body-tag","body-tag",433527431),markup], null);
  });
  devtools.formatters.markup._LT_aligned_body_GT_ = (function devtools$formatters$markup$_LT_aligned_body_GT_(markups_lists){
  var prepend_li_tag = (function (line){
  if(cljs.core.truth_(line)){
  return cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"aligned-li-tag","aligned-li-tag",1727029722)], null),line);
  } else {
  return null;
  }
  });
  var aligned_lines = cljs.core.keep.call(null,prepend_li_tag,markups_lists);
  return devtools.formatters.markup._LT_body_GT_.call(null,cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"standard-ol-no-margin-tag","standard-ol-no-margin-tag",583023747)], null),aligned_lines));
  });
  devtools.formatters.markup._LT_standard_body_GT_ = (function devtools$formatters$markup$_LT_standard_body_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46400 = arguments.length;
  var i__4731__auto___46401 = (0);
  while(true){
  if((i__4731__auto___46401 < len__4730__auto___46400)){
  args__4736__auto__.push((arguments[i__4731__auto___46401]));
  
  var G__46402 = (i__4731__auto___46401 + (1));
  i__4731__auto___46401 = G__46402;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((1) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((1)),(0),null)):null);
  return devtools.formatters.markup._LT_standard_body_GT_.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_standard_body_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (markups_lists,p__46396){
  var vec__46397 = p__46396;
  var no_margin_QMARK_ = cljs.core.nth.call(null,vec__46397,(0),null);
  var ol_tag = (cljs.core.truth_(no_margin_QMARK_)?new cljs.core.Keyword(null,"standard-ol-no-margin-tag","standard-ol-no-margin-tag",583023747):new cljs.core.Keyword(null,"standard-ol-tag","standard-ol-tag",1120081433));
  var li_tag = (cljs.core.truth_(no_margin_QMARK_)?new cljs.core.Keyword(null,"standard-li-no-margin-tag","standard-li-no-margin-tag",-844555468):new cljs.core.Keyword(null,"standard-li-tag","standard-li-tag",-932749876));
  var prepend_li_tag = ((function (ol_tag,li_tag,vec__46397,no_margin_QMARK_){
  return (function (line){
  if(cljs.core.truth_(line)){
  return cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [li_tag], null),line);
  } else {
  return null;
  }
  });})(ol_tag,li_tag,vec__46397,no_margin_QMARK_))
  ;
  var lines_markups = cljs.core.keep.call(null,prepend_li_tag,markups_lists);
  return cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [ol_tag], null),lines_markups);
  });
  
  devtools.formatters.markup._LT_standard_body_GT_.cljs$lang$maxFixedArity = (1);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_standard_body_GT_.cljs$lang$applyTo = (function (seq46394){
  var G__46395 = cljs.core.first.call(null,seq46394);
  var seq46394__$1 = cljs.core.next.call(null,seq46394);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__46395,seq46394__$1);
  });
  
  devtools.formatters.markup._LT_standard_body_reference_GT_ = (function devtools$formatters$markup$_LT_standard_body_reference_GT_(o){
  return devtools.formatters.markup._LT_standard_body_GT_.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [devtools.formatters.markup._LT_reference_GT_.call(null,o)], null)], null));
  });
  devtools.formatters.markup._LT_index_GT_ = (function devtools$formatters$markup$_LT_index_GT_(value){
  return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"index-tag","index-tag",693492486),value,new cljs.core.Keyword(null,"line-index-separator","line-index-separator",-1735989246)], null);
  });
  devtools.formatters.markup.body_line = (function devtools$formatters$markup$body_line(index,value){
  var index_markup = devtools.formatters.markup._LT_index_GT_.call(null,index);
  var value_markup = devtools.formatters.markup.print_via_writer.call(null,value,new cljs.core.Keyword(null,"item-tag","item-tag",-988763304),devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"body-line-max-print-level","body-line-max-print-level",571158623)));
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [index_markup,value_markup], null);
  });
  devtools.formatters.markup.prepare_body_lines = (function devtools$formatters$markup$prepare_body_lines(data,starting_index){
  var work = data;
  var index = starting_index;
  var lines = cljs.core.PersistentVector.EMPTY;
  while(true){
  if(cljs.core.empty_QMARK_.call(null,work)){
  return lines;
  } else {
  var G__46403 = cljs.core.rest.call(null,work);
  var G__46404 = (index + (1));
  var G__46405 = cljs.core.conj.call(null,lines,devtools.formatters.markup.body_line.call(null,index,cljs.core.first.call(null,work)));
  work = G__46403;
  index = G__46404;
  lines = G__46405;
  continue;
  }
  break;
  }
  });
  devtools.formatters.markup.body_lines = (function devtools$formatters$markup$body_lines(value,starting_index){
  var seq = cljs.core.seq.call(null,value);
  var max_number_body_items = devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"max-number-body-items","max-number-body-items",299914624));
  var chunk = cljs.core.take.call(null,max_number_body_items,seq);
  var rest = cljs.core.drop.call(null,max_number_body_items,seq);
  var lines = devtools.formatters.markup.prepare_body_lines.call(null,chunk,starting_index);
  var continue_QMARK_ = (!(cljs.core.empty_QMARK_.call(null,cljs.core.take.call(null,(1),rest))));
  if((!(continue_QMARK_))){
  return lines;
  } else {
  var more_label_markup = new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"body-items-more-tag","body-items-more-tag",867141569),new cljs.core.Keyword(null,"body-items-more-label","body-items-more-label",-1561152123)], null);
  var start_index = (starting_index + max_number_body_items);
  var more_markup = devtools.formatters.markup._LT_reference_surrogate_GT_.call(null,rest,more_label_markup,new cljs.core.Keyword(null,"target","target",253001721),start_index);
  return cljs.core.conj.call(null,lines,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [more_markup], null));
  }
  });
  devtools.formatters.markup._LT_details_GT_ = (function devtools$formatters$markup$_LT_details_GT_(value,starting_index){
  var has_continuation_QMARK_ = (starting_index > (0));
  var body_markup = devtools.formatters.markup._LT_standard_body_GT_.call(null,devtools.formatters.markup.body_lines.call(null,value,starting_index),has_continuation_QMARK_);
  if(has_continuation_QMARK_){
  return body_markup;
  } else {
  return devtools.formatters.markup._LT_body_GT_.call(null,body_markup);
  }
  });
  devtools.formatters.markup._LT_list_details_GT_ = (function devtools$formatters$markup$_LT_list_details_GT_(items,_opts){
  return devtools.formatters.markup._LT_aligned_body_GT_.call(null,cljs.core.map.call(null,cljs.core.list,items));
  });
  devtools.formatters.markup._LT_list_GT_ = (function devtools$formatters$markup$_LT_list_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46413 = arguments.length;
  var i__4731__auto___46414 = (0);
  while(true){
  if((i__4731__auto___46414 < len__4730__auto___46413)){
  args__4736__auto__.push((arguments[i__4731__auto___46414]));
  
  var G__46415 = (i__4731__auto___46414 + (1));
  i__4731__auto___46414 = G__46415;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((2) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((2)),(0),null)):null);
  return devtools.formatters.markup._LT_list_GT_.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_list_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (items,max_count,p__46409){
  var vec__46410 = p__46409;
  var opts = cljs.core.nth.call(null,vec__46410,(0),null);
  var items_markups = cljs.core.take.call(null,max_count,items);
  var more_count = (cljs.core.count.call(null,items) - max_count);
  var more_QMARK_ = (more_count > (0));
  var separator = (function (){var or__4131__auto__ = new cljs.core.Keyword(null,"separator","separator",-1628749125).cljs$core$IFn$_invoke$arity$1(opts);
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return new cljs.core.Keyword(null,"list-separator","list-separator",900562185);
  }
  })();
  var more_symbol = ((more_QMARK_)?(function (){var temp__5718__auto__ = new cljs.core.Keyword(null,"more-symbol","more-symbol",-2139760242).cljs$core$IFn$_invoke$arity$1(opts);
  if(cljs.core.truth_(temp__5718__auto__)){
  var more_symbol = temp__5718__auto__;
  if(cljs.core.fn_QMARK_.call(null,more_symbol)){
  return more_symbol.call(null,more_count);
  } else {
  return more_symbol;
  }
  } else {
  return devtools.formatters.helpers.get_more_marker.call(null,more_count);
  }
  })():null);
  var preview_markup = cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(function (){var or__4131__auto__ = new cljs.core.Keyword(null,"tag","tag",-1290361223).cljs$core$IFn$_invoke$arity$1(opts);
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return new cljs.core.Keyword(null,"list-tag","list-tag",1555796884);
  }
  })(),(function (){var or__4131__auto__ = new cljs.core.Keyword(null,"open-symbol","open-symbol",674247825).cljs$core$IFn$_invoke$arity$1(opts);
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return new cljs.core.Keyword(null,"list-open-symbol","list-open-symbol",-1162287443);
  }
  })()], null),cljs.core.interpose.call(null,separator,items_markups),((more_QMARK_)?new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [separator,more_symbol], null):null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [(function (){var or__4131__auto__ = new cljs.core.Keyword(null,"close-symbol","close-symbol",1051951165).cljs$core$IFn$_invoke$arity$1(opts);
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return new cljs.core.Keyword(null,"list-close-symbol","list-close-symbol",-1120016586);
  }
  })()], null));
  if(more_QMARK_){
  var details_markup = new cljs.core.Keyword(null,"details","details",1956795411).cljs$core$IFn$_invoke$arity$1(opts);
  var default_details_fn = cljs.core.partial.call(null,devtools.formatters.markup._LT_list_details_GT_,items,opts);
  return devtools.formatters.markup._LT_reference_surrogate_GT_.call(null,null,preview_markup,(function (){var or__4131__auto__ = details_markup;
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return default_details_fn;
  }
  })());
  } else {
  return preview_markup;
  }
  });
  
  devtools.formatters.markup._LT_list_GT_.cljs$lang$maxFixedArity = (2);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_list_GT_.cljs$lang$applyTo = (function (seq46406){
  var G__46407 = cljs.core.first.call(null,seq46406);
  var seq46406__$1 = cljs.core.next.call(null,seq46406);
  var G__46408 = cljs.core.first.call(null,seq46406__$1);
  var seq46406__$2 = cljs.core.next.call(null,seq46406__$1);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__46407,G__46408,seq46406__$2);
  });
  
  devtools.formatters.markup._LT_meta_GT_ = (function devtools$formatters$markup$_LT_meta_GT_(metadata){
  var body_fn = (function (){
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"meta-body-tag","meta-body-tag",1689183121),devtools.formatters.markup._LT_preview_GT_.call(null,metadata)], null);
  });
  var header = new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"meta-header-tag","meta-header-tag",-1207812581),"meta"], null);
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"meta-reference-tag","meta-reference-tag",914791936),devtools.formatters.markup._LT_reference_surrogate_GT_.call(null,metadata,header,body_fn)], null);
  });
  devtools.formatters.markup._LT_meta_wrapper_GT_ = (function devtools$formatters$markup$_LT_meta_wrapper_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46418 = arguments.length;
  var i__4731__auto___46419 = (0);
  while(true){
  if((i__4731__auto___46419 < len__4730__auto___46418)){
  args__4736__auto__.push((arguments[i__4731__auto___46419]));
  
  var G__46420 = (i__4731__auto___46419 + (1));
  i__4731__auto___46419 = G__46420;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((1) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((1)),(0),null)):null);
  return devtools.formatters.markup._LT_meta_wrapper_GT_.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_meta_wrapper_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (metadata,children){
  return cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"meta-wrapper-tag","meta-wrapper-tag",1927429038)], null),children,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [devtools.formatters.markup._LT_meta_GT_.call(null,metadata)], null));
  });
  
  devtools.formatters.markup._LT_meta_wrapper_GT_.cljs$lang$maxFixedArity = (1);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_meta_wrapper_GT_.cljs$lang$applyTo = (function (seq46416){
  var G__46417 = cljs.core.first.call(null,seq46416);
  var seq46416__$1 = cljs.core.next.call(null,seq46416);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__46417,seq46416__$1);
  });
  
  devtools.formatters.markup._LT_function_details_GT_ = (function devtools$formatters$markup$_LT_function_details_GT_(fn_obj,ns,_name,arities,prefix){
  if(cljs.core.fn_QMARK_.call(null,fn_obj)){
  } else {
  throw (new Error("Assert failed: (fn? fn-obj)"));
  }
  
  var arities__$1 = cljs.core.map.call(null,devtools.formatters.helpers.wrap_arity,arities);
  var make_arity_markup_list = ((function (arities__$1){
  return (function (arity){
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"fn-multi-arity-args-indent-tag","fn-multi-arity-args-indent-tag",-1931373734),prefix], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"fn-args-tag","fn-args-tag",549126831),arity], null)], null);
  });})(arities__$1))
  ;
  var arities_markupts_lists = (((cljs.core.count.call(null,arities__$1) > (1)))?cljs.core.map.call(null,make_arity_markup_list,arities__$1):null);
  var ns_markups_list = (((!(cljs.core.empty_QMARK_.call(null,ns))))?new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"ns-icon","ns-icon",725601214),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"fn-ns-name-tag","fn-ns-name-tag",-900073712),ns], null)], null):null);
  var native_markups_list = new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"native-icon","native-icon",-126040824),devtools.formatters.markup._LT_native_reference_GT_.call(null,fn_obj)], null);
  return devtools.formatters.markup._LT_aligned_body_GT_.call(null,cljs.core.concat.call(null,arities_markupts_lists,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [ns_markups_list,native_markups_list], null)));
  });
  devtools.formatters.markup._LT_arities_GT_ = (function devtools$formatters$markup$_LT_arities_GT_(arities){
  var multi_arity_QMARK_ = (cljs.core.count.call(null,arities) > (1));
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"fn-args-tag","fn-args-tag",549126831),devtools.formatters.helpers.wrap_arity.call(null,((multi_arity_QMARK_)?devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"multi-arity-symbol","multi-arity-symbol",-420139653)):cljs.core.first.call(null,arities)))], null);
  });
  devtools.formatters.markup._LT_function_GT_ = (function devtools$formatters$markup$_LT_function_GT_(fn_obj){
  if(cljs.core.fn_QMARK_.call(null,fn_obj)){
  } else {
  throw (new Error("Assert failed: (fn? fn-obj)"));
  }
  
  var vec__46421 = devtools.munging.parse_fn_info.call(null,fn_obj);
  var ns = cljs.core.nth.call(null,vec__46421,(0),null);
  var name = cljs.core.nth.call(null,vec__46421,(1),null);
  var lambda_QMARK_ = cljs.core.empty_QMARK_.call(null,name);
  var spacer_symbol = devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"spacer","spacer",2067425139));
  var rest_symbol = devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"rest-symbol","rest-symbol",1021371174));
  var multi_arity_symbol = devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"multi-arity-symbol","multi-arity-symbol",-420139653));
  var arities = devtools.munging.extract_arities.call(null,fn_obj,true,spacer_symbol,multi_arity_symbol,rest_symbol);
  var arities_markup = devtools.formatters.markup._LT_arities_GT_.call(null,arities);
  var name_markup = (((!(lambda_QMARK_)))?new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"fn-name-tag","fn-name-tag",555823755),name], null):null);
  var icon_markup = ((lambda_QMARK_)?new cljs.core.Keyword(null,"lambda-icon","lambda-icon",980753546):new cljs.core.Keyword(null,"fn-icon","fn-icon",-1412665288));
  var prefix_markup = new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"fn-prefix-tag","fn-prefix-tag",1947411856),icon_markup,name_markup], null);
  var preview_markup = new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"fn-header-tag","fn-header-tag",-1262068349),prefix_markup,arities_markup], null);
  var details_fn = cljs.core.partial.call(null,devtools.formatters.markup._LT_function_details_GT_,fn_obj,ns,name,arities,prefix_markup);
  return devtools.formatters.markup._LT_reference_surrogate_GT_.call(null,fn_obj,preview_markup,details_fn);
  });
  devtools.formatters.markup._LT_type_basis_item_GT_ = (function devtools$formatters$markup$_LT_type_basis_item_GT_(basis_item){
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"type-basis-item-tag","type-basis-item-tag",50612816),cljs.core.name.call(null,basis_item)], null);
  });
  devtools.formatters.markup._LT_type_basis_GT_ = (function devtools$formatters$markup$_LT_type_basis_GT_(basis){
  var item_markups = cljs.core.map.call(null,devtools.formatters.markup._LT_type_basis_item_GT_,basis);
  var children_markups = cljs.core.interpose.call(null,new cljs.core.Keyword(null,"type-basis-item-separator","type-basis-item-separator",-2029193896),item_markups);
  return cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"type-basis-tag","type-basis-tag",-2122159204)], null),children_markups);
  });
  devtools.formatters.markup._LT_type_details_GT_ = (function devtools$formatters$markup$_LT_type_details_GT_(constructor_fn,ns,_name,basis){
  var ns_markup = (((!(cljs.core.empty_QMARK_.call(null,ns))))?new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"ns-icon","ns-icon",725601214),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"fn-ns-name-tag","fn-ns-name-tag",-900073712),ns], null)], null):null);
  var basis_markup = ((cljs.core.empty_QMARK_.call(null,basis))?new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"empty-basis-symbol","empty-basis-symbol",-1971559593)], null):new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"basis-icon","basis-icon",1917779567),devtools.formatters.markup._LT_type_basis_GT_.call(null,basis)], null));
  var native_markup = new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"native-icon","native-icon",-126040824),devtools.formatters.markup._LT_native_reference_GT_.call(null,constructor_fn)], null);
  return devtools.formatters.markup._LT_aligned_body_GT_.call(null,new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [basis_markup,ns_markup,native_markup], null));
  });
  devtools.formatters.markup._LT_type_GT_ = (function devtools$formatters$markup$_LT_type_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46433 = arguments.length;
  var i__4731__auto___46434 = (0);
  while(true){
  if((i__4731__auto___46434 < len__4730__auto___46433)){
  args__4736__auto__.push((arguments[i__4731__auto___46434]));
  
  var G__46435 = (i__4731__auto___46434 + (1));
  i__4731__auto___46434 = G__46435;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((1) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((1)),(0),null)):null);
  return devtools.formatters.markup._LT_type_GT_.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_type_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (constructor_fn,p__46426){
  var vec__46427 = p__46426;
  var header_tag = cljs.core.nth.call(null,vec__46427,(0),null);
  var vec__46430 = devtools.munging.parse_constructor_info.call(null,constructor_fn);
  var ns = cljs.core.nth.call(null,vec__46430,(0),null);
  var name = cljs.core.nth.call(null,vec__46430,(1),null);
  var basis = cljs.core.nth.call(null,vec__46430,(2),null);
  var name_markup = new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"type-name-tag","type-name-tag",-1317275511),name], null);
  var preview_markup = new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [(function (){var or__4131__auto__ = header_tag;
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return new cljs.core.Keyword(null,"type-header-tag","type-header-tag",1645372265);
  }
  })(),new cljs.core.Keyword(null,"type-symbol","type-symbol",-941894755),name_markup], null);
  var details_markup_fn = cljs.core.partial.call(null,devtools.formatters.markup._LT_type_details_GT_,constructor_fn,ns,name,basis);
  return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"type-wrapper-tag","type-wrapper-tag",-1732366004),new cljs.core.Keyword(null,"type-header-background","type-header-background",-810861696),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"type-ref-tag","type-ref-tag",2126727355),devtools.formatters.markup._LT_reference_surrogate_GT_.call(null,constructor_fn,preview_markup,details_markup_fn)], null)], null);
  });
  
  devtools.formatters.markup._LT_type_GT_.cljs$lang$maxFixedArity = (1);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_type_GT_.cljs$lang$applyTo = (function (seq46424){
  var G__46425 = cljs.core.first.call(null,seq46424);
  var seq46424__$1 = cljs.core.next.call(null,seq46424);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__46425,seq46424__$1);
  });
  
  devtools.formatters.markup._LT_standalone_type_GT_ = (function devtools$formatters$markup$_LT_standalone_type_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46442 = arguments.length;
  var i__4731__auto___46443 = (0);
  while(true){
  if((i__4731__auto___46443 < len__4730__auto___46442)){
  args__4736__auto__.push((arguments[i__4731__auto___46443]));
  
  var G__46444 = (i__4731__auto___46443 + (1));
  i__4731__auto___46443 = G__46444;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((1) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((1)),(0),null)):null);
  return devtools.formatters.markup._LT_standalone_type_GT_.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_standalone_type_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (constructor_fn,p__46438){
  var vec__46439 = p__46438;
  var header_tag = cljs.core.nth.call(null,vec__46439,(0),null);
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"standalone-type-tag","standalone-type-tag",-1677164791),devtools.formatters.markup._LT_type_GT_.call(null,constructor_fn,header_tag)], null);
  });
  
  devtools.formatters.markup._LT_standalone_type_GT_.cljs$lang$maxFixedArity = (1);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_standalone_type_GT_.cljs$lang$applyTo = (function (seq46436){
  var G__46437 = cljs.core.first.call(null,seq46436);
  var seq46436__$1 = cljs.core.next.call(null,seq46436);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__46437,seq46436__$1);
  });
  
  devtools.formatters.markup._LT_protocol_method_arity_GT_ = (function devtools$formatters$markup$_LT_protocol_method_arity_GT_(arity_fn){
  return devtools.formatters.markup._LT_reference_GT_.call(null,arity_fn);
  });
  devtools.formatters.markup._LT_protocol_method_arities_details_GT_ = (function devtools$formatters$markup$_LT_protocol_method_arities_details_GT_(fns){
  return devtools.formatters.markup._LT_aligned_body_GT_.call(null,cljs.core.map.call(null,devtools.formatters.markup._LT_protocol_method_arity_GT_,fns));
  });
  devtools.formatters.markup._LT_protocol_method_arities_GT_ = (function devtools$formatters$markup$_LT_protocol_method_arities_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46451 = arguments.length;
  var i__4731__auto___46452 = (0);
  while(true){
  if((i__4731__auto___46452 < len__4730__auto___46451)){
  args__4736__auto__.push((arguments[i__4731__auto___46452]));
  
  var G__46453 = (i__4731__auto___46452 + (1));
  i__4731__auto___46452 = G__46453;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((1) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((1)),(0),null)):null);
  return devtools.formatters.markup._LT_protocol_method_arities_GT_.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_protocol_method_arities_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (fns,p__46447){
  var vec__46448 = p__46447;
  var max_fns = cljs.core.nth.call(null,vec__46448,(0),null);
  var max_fns__$1 = (function (){var or__4131__auto__ = max_fns;
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"max-protocol-method-arities-list","max-protocol-method-arities-list",-45936465));
  }
  })();
  var more_QMARK_ = (cljs.core.count.call(null,fns) > max_fns__$1);
  var aritites_markups = cljs.core.map.call(null,devtools.formatters.markup._LT_protocol_method_arity_GT_,cljs.core.take.call(null,max_fns__$1,fns));
  var preview_markup = cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"protocol-method-arities-header-tag","protocol-method-arities-header-tag",734407707),new cljs.core.Keyword(null,"protocol-method-arities-header-open-symbol","protocol-method-arities-header-open-symbol",1704200465)], null),cljs.core.interpose.call(null,new cljs.core.Keyword(null,"protocol-method-arities-list-header-separator","protocol-method-arities-list-header-separator",-115158954),aritites_markups),((more_QMARK_)?new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"protocol-method-arities-more-symbol","protocol-method-arities-more-symbol",-477018522)], null):null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"protocol-method-arities-header-close-symbol","protocol-method-arities-header-close-symbol",-1375237120)], null));
  if(more_QMARK_){
  var details_markup_fn = cljs.core.partial.call(null,devtools.formatters.markup._LT_protocol_method_arities_details_GT_,fns);
  return devtools.formatters.markup._LT_reference_surrogate_GT_.call(null,null,preview_markup,details_markup_fn);
  } else {
  return preview_markup;
  }
  });
  
  devtools.formatters.markup._LT_protocol_method_arities_GT_.cljs$lang$maxFixedArity = (1);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_protocol_method_arities_GT_.cljs$lang$applyTo = (function (seq46445){
  var G__46446 = cljs.core.first.call(null,seq46445);
  var seq46445__$1 = cljs.core.next.call(null,seq46445);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__46446,seq46445__$1);
  });
  
  devtools.formatters.markup._LT_protocol_method_GT_ = (function devtools$formatters$markup$_LT_protocol_method_GT_(name,arities){
  return new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"protocol-method-tag","protocol-method-tag",2032279830),new cljs.core.Keyword(null,"method-icon","method-icon",-1678775281),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"protocol-method-name-tag","protocol-method-name-tag",-1030376744),name], null),devtools.formatters.markup._LT_protocol_method_arities_GT_.call(null,arities)], null);
  });
  devtools.formatters.markup._LT_protocol_details_GT_ = (function devtools$formatters$markup$_LT_protocol_details_GT_(obj,ns,_name,selector,_fast_QMARK_){
  var protocol_obj = devtools.munging.get_protocol_object.call(null,selector);
  var ns_markups_list = (((!(cljs.core.empty_QMARK_.call(null,ns))))?new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"ns-icon","ns-icon",725601214),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"protocol-ns-name-tag","protocol-ns-name-tag",1832081510),ns], null)], null):null);
  var native_markups_list = (((!((protocol_obj == null))))?new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"native-icon","native-icon",-126040824),devtools.formatters.markup._LT_native_reference_GT_.call(null,protocol_obj)], null):null);
  var methods$ = devtools.munging.collect_protocol_methods.call(null,obj,selector);
  var methods_markups = cljs.core.map.call(null,((function (protocol_obj,ns_markups_list,native_markups_list,methods$){
  return (function (p__46454){
  var vec__46455 = p__46454;
  var name = cljs.core.nth.call(null,vec__46455,(0),null);
  var arities = cljs.core.nth.call(null,vec__46455,(1),null);
  return devtools.formatters.markup._LT_protocol_method_GT_.call(null,name,arities);
  });})(protocol_obj,ns_markups_list,native_markups_list,methods$))
  ,methods$);
  var methods_markups_lists = cljs.core.map.call(null,cljs.core.list,methods_markups);
  return devtools.formatters.markup._LT_aligned_body_GT_.call(null,cljs.core.concat.call(null,methods_markups_lists,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [ns_markups_list,native_markups_list], null)));
  });
  devtools.formatters.markup._LT_protocol_GT_ = (function devtools$formatters$markup$_LT_protocol_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46467 = arguments.length;
  var i__4731__auto___46468 = (0);
  while(true){
  if((i__4731__auto___46468 < len__4730__auto___46467)){
  args__4736__auto__.push((arguments[i__4731__auto___46468]));
  
  var G__46469 = (i__4731__auto___46468 + (1));
  i__4731__auto___46468 = G__46469;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((2) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((2)),(0),null)):null);
  return devtools.formatters.markup._LT_protocol_GT_.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_protocol_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (obj,protocol,p__46461){
  var vec__46462 = p__46461;
  var tag = cljs.core.nth.call(null,vec__46462,(0),null);
  var map__46465 = protocol;
  var map__46465__$1 = (((((!((map__46465 == null))))?(((((map__46465.cljs$lang$protocol_mask$partition0$ & (64))) || ((cljs.core.PROTOCOL_SENTINEL === map__46465.cljs$core$ISeq$))))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__46465):map__46465);
  var ns = cljs.core.get.call(null,map__46465__$1,new cljs.core.Keyword(null,"ns","ns",441598760));
  var name = cljs.core.get.call(null,map__46465__$1,new cljs.core.Keyword(null,"name","name",1843675177));
  var selector = cljs.core.get.call(null,map__46465__$1,new cljs.core.Keyword(null,"selector","selector",762528866));
  var fast_QMARK_ = cljs.core.get.call(null,map__46465__$1,new cljs.core.Keyword(null,"fast?","fast?",-1813307150));
  var preview_markup = new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(function (){var or__4131__auto__ = tag;
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return new cljs.core.Keyword(null,"protocol-name-tag","protocol-name-tag",1508238310);
  }
  })(),name], null);
  var prefix_markup = new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(cljs.core.truth_(fast_QMARK_)?new cljs.core.Keyword(null,"fast-protocol-tag","fast-protocol-tag",2066025065):new cljs.core.Keyword(null,"slow-protocol-tag","slow-protocol-tag",2061129467)),new cljs.core.Keyword(null,"protocol-background","protocol-background",1111513794)], null);
  if((!((obj == null)))){
  var details_markup_fn = cljs.core.partial.call(null,devtools.formatters.markup._LT_protocol_details_GT_,obj,ns,name,selector,fast_QMARK_);
  return cljs.core.conj.call(null,prefix_markup,devtools.formatters.markup._LT_reference_surrogate_GT_.call(null,obj,preview_markup,details_markup_fn));
  } else {
  return cljs.core.conj.call(null,prefix_markup,preview_markup);
  }
  });
  
  devtools.formatters.markup._LT_protocol_GT_.cljs$lang$maxFixedArity = (2);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_protocol_GT_.cljs$lang$applyTo = (function (seq46458){
  var G__46459 = cljs.core.first.call(null,seq46458);
  var seq46458__$1 = cljs.core.next.call(null,seq46458);
  var G__46460 = cljs.core.first.call(null,seq46458__$1);
  var seq46458__$2 = cljs.core.next.call(null,seq46458__$1);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__46459,G__46460,seq46458__$2);
  });
  
  devtools.formatters.markup._LT_more_protocols_GT_ = (function devtools$formatters$markup$_LT_more_protocols_GT_(more_count){
  var fake_protocol = new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"name","name",1843675177),devtools.formatters.helpers.get_more_marker.call(null,more_count)], null);
  return devtools.formatters.markup._LT_protocol_GT_.call(null,null,fake_protocol,new cljs.core.Keyword(null,"protocol-more-tag","protocol-more-tag",2098702865));
  });
  devtools.formatters.markup._LT_protocols_list_GT_ = (function devtools$formatters$markup$_LT_protocols_list_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46477 = arguments.length;
  var i__4731__auto___46478 = (0);
  while(true){
  if((i__4731__auto___46478 < len__4730__auto___46477)){
  args__4736__auto__.push((arguments[i__4731__auto___46478]));
  
  var G__46479 = (i__4731__auto___46478 + (1));
  i__4731__auto___46478 = G__46479;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((2) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((2)),(0),null)):null);
  return devtools.formatters.markup._LT_protocols_list_GT_.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),(arguments[(1)]),argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_protocols_list_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (obj,protocols,p__46473){
  var vec__46474 = p__46473;
  var max_protocols = cljs.core.nth.call(null,vec__46474,(0),null);
  var max_protocols__$1 = (function (){var or__4131__auto__ = max_protocols;
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"max-list-protocols","max-list-protocols",-537135129));
  }
  })();
  var protocols_markups = cljs.core.map.call(null,cljs.core.partial.call(null,devtools.formatters.markup._LT_protocol_GT_,obj),protocols);
  return devtools.formatters.markup._LT_list_GT_.call(null,protocols_markups,max_protocols__$1,new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"tag","tag",-1290361223),new cljs.core.Keyword(null,"protocols-header-tag","protocols-header-tag",-734413384),new cljs.core.Keyword(null,"open-symbol","open-symbol",674247825),new cljs.core.Keyword(null,"protocols-list-open-symbol","protocols-list-open-symbol",-729713043),new cljs.core.Keyword(null,"close-symbol","close-symbol",1051951165),new cljs.core.Keyword(null,"protocols-list-close-symbol","protocols-list-close-symbol",652072902),new cljs.core.Keyword(null,"separator","separator",-1628749125),new cljs.core.Keyword(null,"header-protocol-separator","header-protocol-separator",445531439),new cljs.core.Keyword(null,"more-symbol","more-symbol",-2139760242),devtools.formatters.markup._LT_more_protocols_GT_], null));
  });
  
  devtools.formatters.markup._LT_protocols_list_GT_.cljs$lang$maxFixedArity = (2);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_protocols_list_GT_.cljs$lang$applyTo = (function (seq46470){
  var G__46471 = cljs.core.first.call(null,seq46470);
  var seq46470__$1 = cljs.core.next.call(null,seq46470);
  var G__46472 = cljs.core.first.call(null,seq46470__$1);
  var seq46470__$2 = cljs.core.next.call(null,seq46470__$1);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__46471,G__46472,seq46470__$2);
  });
  
  devtools.formatters.markup._LT_field_GT_ = (function devtools$formatters$markup$_LT_field_GT_(name,value){
  return new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"header-field-tag","header-field-tag",-1403476101),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"header-field-name-tag","header-field-name-tag",82291956),cljs.core.str.cljs$core$IFn$_invoke$arity$1(name)], null),new cljs.core.Keyword(null,"header-field-value-spacer","header-field-value-spacer",-1210630679),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"header-field-value-tag","header-field-value-tag",-1708691701),devtools.formatters.markup._LT_reference_GT_.call(null,devtools.formatters.markup._LT_surrogate_GT_.call(null,value),(function (p1__46480_SHARP_){
  return devtools.formatters.state.set_managed_print_level.call(null,p1__46480_SHARP_,(1));
  }))], null),new cljs.core.Keyword(null,"header-field-separator","header-field-separator",-774444018)], null);
  });
  devtools.formatters.markup._LT_fields_details_row_GT_ = (function devtools$formatters$markup$_LT_fields_details_row_GT_(field){
  var vec__46481 = field;
  var name = cljs.core.nth.call(null,vec__46481,(0),null);
  var value = cljs.core.nth.call(null,vec__46481,(1),null);
  return new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"body-field-tr-tag","body-field-tr-tag",37280691),new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"body-field-td1-tag","body-field-td1-tag",256357429),new cljs.core.Keyword(null,"body-field-symbol","body-field-symbol",256897537),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"body-field-name-tag","body-field-name-tag",917867601),cljs.core.str.cljs$core$IFn$_invoke$arity$1(name)], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"body-field-td2-tag","body-field-td2-tag",94501500),new cljs.core.Keyword(null,"body-field-value-spacer","body-field-value-spacer",1279911362)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"body-field-td3-tag","body-field-td3-tag",-803119922),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"body-field-value-tag","body-field-value-tag",800789079),devtools.formatters.markup._LT_reference_surrogate_GT_.call(null,value)], null)], null)], null);
  });
  devtools.formatters.markup._LT_fields_GT_ = (function devtools$formatters$markup$_LT_fields_GT_(var_args){
  var args__4736__auto__ = [];
  var len__4730__auto___46494 = arguments.length;
  var i__4731__auto___46495 = (0);
  while(true){
  if((i__4731__auto___46495 < len__4730__auto___46494)){
  args__4736__auto__.push((arguments[i__4731__auto___46495]));
  
  var G__46496 = (i__4731__auto___46495 + (1));
  i__4731__auto___46495 = G__46496;
  continue;
  } else {
  }
  break;
  }
  
  var argseq__4737__auto__ = ((((1) < args__4736__auto__.length))?(new cljs.core.IndexedSeq(args__4736__auto__.slice((1)),(0),null)):null);
  return devtools.formatters.markup._LT_fields_GT_.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__4737__auto__);
  });
  
  devtools.formatters.markup._LT_fields_GT_.cljs$core$IFn$_invoke$arity$variadic = (function (fields,p__46486){
  var vec__46487 = p__46486;
  var max_fields = cljs.core.nth.call(null,vec__46487,(0),null);
  if((cljs.core.count.call(null,fields) === (0))){
  return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"fields-header-tag","fields-header-tag",1339134308),new cljs.core.Keyword(null,"fields-header-no-fields-symbol","fields-header-no-fields-symbol",-1749204979)], null);
  } else {
  var max_fields__$1 = (function (){var or__4131__auto__ = max_fields;
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return devtools.formatters.helpers.pref.call(null,new cljs.core.Keyword(null,"max-instance-header-fields","max-instance-header-fields",-126007269));
  }
  })();
  var more_QMARK_ = (cljs.core.count.call(null,fields) > max_fields__$1);
  var fields_markups = cljs.core.map.call(null,((function (max_fields__$1,more_QMARK_,vec__46487,max_fields){
  return (function (p__46490){
  var vec__46491 = p__46490;
  var name = cljs.core.nth.call(null,vec__46491,(0),null);
  var value = cljs.core.nth.call(null,vec__46491,(1),null);
  return devtools.formatters.markup._LT_field_GT_.call(null,name,value);
  });})(max_fields__$1,more_QMARK_,vec__46487,max_fields))
  ,cljs.core.take.call(null,max_fields__$1,fields));
  return cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"fields-header-tag","fields-header-tag",1339134308),new cljs.core.Keyword(null,"fields-header-open-symbol","fields-header-open-symbol",-26243798)], null),fields_markups,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [((more_QMARK_)?new cljs.core.Keyword(null,"more-fields-symbol","more-fields-symbol",720022882):null),new cljs.core.Keyword(null,"fields-header-close-symbol","fields-header-close-symbol",1615181116)], null));
  }
  });
  
  devtools.formatters.markup._LT_fields_GT_.cljs$lang$maxFixedArity = (1);
  
  /** @this {Function} */
  devtools.formatters.markup._LT_fields_GT_.cljs$lang$applyTo = (function (seq46484){
  var G__46485 = cljs.core.first.call(null,seq46484);
  var seq46484__$1 = cljs.core.next.call(null,seq46484);
  var self__4717__auto__ = this;
  return self__4717__auto__.cljs$core$IFn$_invoke$arity$variadic(G__46485,seq46484__$1);
  });
  
  devtools.formatters.markup._LT_fields_details_GT_ = (function devtools$formatters$markup$_LT_fields_details_GT_(fields,obj){
  var protocols = devtools.munging.scan_protocols.call(null,obj);
  var has_protocols_QMARK_ = (!(cljs.core.empty_QMARK_.call(null,protocols)));
  var fields_markup = (((!((cljs.core.count.call(null,fields) === (0)))))?new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"fields-icon","fields-icon",-436030420),cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"instance-body-fields-table-tag","instance-body-fields-table-tag",1306340776)], null),cljs.core.map.call(null,devtools.formatters.markup._LT_fields_details_row_GT_,fields))], null):null);
  var protocols_list_markup = ((has_protocols_QMARK_)?new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"protocols-icon","protocols-icon",-517302494),devtools.formatters.markup._LT_protocols_list_GT_.call(null,obj,protocols)], null):null);
  var native_markup = new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"native-icon","native-icon",-126040824),devtools.formatters.markup._LT_native_reference_GT_.call(null,obj)], null);
  return devtools.formatters.markup._LT_aligned_body_GT_.call(null,new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [fields_markup,protocols_list_markup,native_markup], null));
  });
  devtools.formatters.markup._LT_instance_GT_ = (function devtools$formatters$markup$_LT_instance_GT_(value){
  var constructor_fn = devtools.formatters.helpers.get_constructor.call(null,value);
  var vec__46497 = devtools.munging.parse_constructor_info.call(null,constructor_fn);
  var _ns = cljs.core.nth.call(null,vec__46497,(0),null);
  var _name = cljs.core.nth.call(null,vec__46497,(1),null);
  var basis = cljs.core.nth.call(null,vec__46497,(2),null);
  var custom_printing_QMARK_ = (((!((value == null))))?(((((value.cljs$lang$protocol_mask$partition0$ & (2147483648))) || ((cljs.core.PROTOCOL_SENTINEL === value.cljs$core$IPrintWithWriter$))))?true:false):false);
  var type_markup = devtools.formatters.markup._LT_type_GT_.call(null,constructor_fn,new cljs.core.Keyword(null,"instance-type-header-tag","instance-type-header-tag",-1015702989));
  var fields = devtools.formatters.helpers.fetch_fields_values.call(null,value,basis);
  var fields_markup = devtools.formatters.markup._LT_fields_GT_.call(null,fields,((custom_printing_QMARK_)?(0):null));
  var fields_details_markup_fn = ((function (constructor_fn,vec__46497,_ns,_name,basis,custom_printing_QMARK_,type_markup,fields,fields_markup){
  return (function (){
  return devtools.formatters.markup._LT_fields_details_GT_.call(null,fields,value);
  });})(constructor_fn,vec__46497,_ns,_name,basis,custom_printing_QMARK_,type_markup,fields,fields_markup))
  ;
  var fields_preview_markup = new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"instance-value-tag","instance-value-tag",-1739593896),devtools.formatters.markup._LT_reference_surrogate_GT_.call(null,value,fields_markup,fields_details_markup_fn)], null);
  var custom_printing_markup = ((custom_printing_QMARK_)?new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"instance-custom-printing-wrapper-tag","instance-custom-printing-wrapper-tag",1461890684),new cljs.core.Keyword(null,"instance-custom-printing-background","instance-custom-printing-background",-248433646),devtools.formatters.markup.print_via_protocol.call(null,value,new cljs.core.Keyword(null,"instance-custom-printing-tag","instance-custom-printing-tag",-67034432))], null):null);
  return new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"instance-header-tag","instance-header-tag",903623870),new cljs.core.Keyword(null,"instance-header-background","instance-header-background",1510357287),fields_preview_markup,custom_printing_markup,type_markup], null);
  });
  devtools.formatters.markup._LT_header_GT_ = (function devtools$formatters$markup$_LT_header_GT_(value){
  return devtools.formatters.markup._LT_cljs_land_GT_.call(null,devtools.formatters.markup._LT_preview_GT_.call(null,value));
  });
  devtools.formatters.markup._LT_surrogate_header_GT_ = (function devtools$formatters$markup$_LT_surrogate_header_GT_(surrogate){
  var or__4131__auto__ = devtools.formatters.templating.get_surrogate_header.call(null,surrogate);
  if(cljs.core.truth_(or__4131__auto__)){
  return or__4131__auto__;
  } else {
  return devtools.formatters.markup._LT_preview_GT_.call(null,devtools.formatters.templating.get_surrogate_target.call(null,surrogate));
  }
  });
  devtools.formatters.markup._LT_surrogate_target_GT_ = (function devtools$formatters$markup$_LT_surrogate_target_GT_(surrogate){
  var target = devtools.formatters.templating.get_surrogate_target.call(null,surrogate);
  if(cljs.core.seqable_QMARK_.call(null,target)){
  var starting_index = devtools.formatters.templating.get_surrogate_start_index.call(null,surrogate);
  return devtools.formatters.markup._LT_details_GT_.call(null,target,starting_index);
  } else {
  return devtools.formatters.markup._LT_standard_body_reference_GT_.call(null,target);
  }
  });
  devtools.formatters.markup._LT_surrogate_body_GT_ = (function devtools$formatters$markup$_LT_surrogate_body_GT_(surrogate){
  var temp__5718__auto__ = devtools.formatters.templating.get_surrogate_body.call(null,surrogate);
  if(cljs.core.truth_(temp__5718__auto__)){
  var body = temp__5718__auto__;
  if(cljs.core._EQ_.call(null,new cljs.core.Keyword(null,"target","target",253001721),body)){
  return devtools.formatters.markup._LT_surrogate_target_GT_.call(null,surrogate);
  } else {
  return body;
  }
  } else {
  return null;
  }
  });
  devtools.formatters.markup._LT_atomic_GT_ = (function devtools$formatters$markup$_LT_atomic_GT_(value){
  if(cljs.core.truth_(devtools.formatters.helpers.should_render_QMARK_.call(null,new cljs.core.Keyword(null,"render-nils","render-nils",1360008699),value,cljs.core.nil_QMARK_))){
  return devtools.formatters.markup._LT_nil_GT_.call(null);
  } else {
  if(cljs.core.truth_(devtools.formatters.helpers.should_render_QMARK_.call(null,new cljs.core.Keyword(null,"render-bools","render-bools",1793659724),value,devtools.formatters.helpers.bool_QMARK_))){
  return devtools.formatters.markup._LT_bool_GT_.call(null,value);
  } else {
  if(cljs.core.truth_(devtools.formatters.helpers.should_render_QMARK_.call(null,new cljs.core.Keyword(null,"render-strings","render-strings",-1497177335),value,cljs.core.string_QMARK_))){
  return devtools.formatters.markup._LT_string_GT_.call(null,value);
  } else {
  if(cljs.core.truth_(devtools.formatters.helpers.should_render_QMARK_.call(null,new cljs.core.Keyword(null,"render-numbers","render-numbers",-1385392009),value,cljs.core.number_QMARK_))){
  return devtools.formatters.markup._LT_number_GT_.call(null,value);
  } else {
  if(cljs.core.truth_(devtools.formatters.helpers.should_render_QMARK_.call(null,new cljs.core.Keyword(null,"render-keywords","render-keywords",1200455875),value,cljs.core.keyword_QMARK_))){
  return devtools.formatters.markup._LT_keyword_GT_.call(null,value);
  } else {
  if(cljs.core.truth_(devtools.formatters.helpers.should_render_QMARK_.call(null,new cljs.core.Keyword(null,"render-symbols","render-symbols",-887705016),value,cljs.core.symbol_QMARK_))){
  return devtools.formatters.markup._LT_symbol_GT_.call(null,value);
  } else {
  if(cljs.core.truth_(devtools.formatters.helpers.should_render_QMARK_.call(null,new cljs.core.Keyword(null,"render-instances","render-instances",-1803579686),value,devtools.formatters.helpers.should_render_instance_QMARK_))){
  return devtools.formatters.markup._LT_instance_GT_.call(null,value);
  } else {
  if(cljs.core.truth_(devtools.formatters.helpers.should_render_QMARK_.call(null,new cljs.core.Keyword(null,"render-types","render-types",-129927851),value,devtools.formatters.helpers.cljs_type_QMARK_))){
  return devtools.formatters.markup._LT_standalone_type_GT_.call(null,value);
  } else {
  if(cljs.core.truth_(devtools.formatters.helpers.should_render_QMARK_.call(null,new cljs.core.Keyword(null,"render-functions","render-functions",1273333002),value,devtools.formatters.helpers.cljs_function_QMARK_))){
  return devtools.formatters.markup._LT_function_GT_.call(null,value);
  } else {
  return null;
  }
  }
  }
  }
  }
  }
  }
  }
  }
  });
  devtools.formatters.markup.get_markup_db = (function devtools$formatters$markup$get_markup_db(){
  if((devtools.formatters.markup._STAR_markup_db_STAR_ == null)){
  devtools.formatters.markup._STAR_markup_db_STAR_ = cljs.core.PersistentHashMap.fromArrays([new cljs.core.Keyword(null,"aligned-body","aligned-body",-2124118747),new cljs.core.Keyword(null,"native-reference","native-reference",-2013708658),new cljs.core.Keyword(null,"reference-surrogate","reference-surrogate",274031791),new cljs.core.Keyword(null,"keyword","keyword",811389747),new cljs.core.Keyword(null,"protocol-method-arities","protocol-method-arities",-545542044),new cljs.core.Keyword(null,"surrogate-header","surrogate-header",1705524526),new cljs.core.Keyword(null,"details","details",1956795411),new cljs.core.Keyword(null,"more-protocols","more-protocols",359555207),new cljs.core.Keyword(null,"field","field",-1302436500),new cljs.core.Keyword(null,"symbol","symbol",-1038572696),new cljs.core.Keyword(null,"fields-details","fields-details",-269572714),new cljs.core.Keyword(null,"atomic","atomic",-120459460),new cljs.core.Keyword(null,"string","string",-1989541586),new cljs.core.Keyword(null,"standard-body","standard-body",-1563020798),new cljs.core.Keyword(null,"type-basis","type-basis",-1825246054),new cljs.core.Keyword(null,"bool","bool",1444635321),new cljs.core.Keyword(null,"standalone-type","standalone-type",-802565278),new cljs.core.Keyword(null,"preview","preview",451279890),new cljs.core.Keyword(null,"header","header",119441134),new cljs.core.Keyword(null,"protocol-method","protocol-method",1794903206),new cljs.core.Keyword(null,"cljs-land","cljs-land",1255896927),new cljs.core.Keyword(null,"type-basis-item","type-basis-item",-1662150132),new cljs.core.Keyword(null,"protocol-method-arities-details","protocol-method-arities-details",1944702118),new cljs.core.Keyword(null,"fields-details-row","fields-details-row",2066344936),new cljs.core.Keyword(null,"standard-body-reference","standard-body-reference",1513301561),new cljs.core.Keyword(null,"surrogate-body","surrogate-body",-1618569585),new cljs.core.Keyword(null,"expandable","expandable",-704609097),new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"protocol-method-arity","protocol-method-arity",-1861927833),new cljs.core.Keyword(null,"raw-surrogate","raw-surrogate",904931181),new cljs.core.Keyword(null,"type-details","type-details",477755178),new cljs.core.Keyword(null,"list","list",765357683),new cljs.core.Keyword(null,"meta-wrapper","meta-wrapper",-1989845587),new cljs.core.Keyword(null,"protocol","protocol",652470118),new cljs.core.Keyword(null,"index","index",-1531685915),new cljs.core.Keyword(null,"surrogate","surrogate",2122284260),new cljs.core.Keyword(null,"protocols-list","protocols-list",371434187),new cljs.core.Keyword(null,"meta","meta",1499536964),new cljs.core.Keyword(null,"instance","instance",-2121349050),new cljs.core.Keyword(null,"reference","reference",-1711695023),new cljs.core.Keyword(null,"function-details","function-details",1501147310),new cljs.core.Keyword(null,"function","function",-2127255473),new cljs.core.Keyword(null,"arities","arities",-1781122917),new cljs.core.Keyword(null,"header-expander","header-expander",-1606368578),new cljs.core.Keyword(null,"list-details","list-details",46031799),new cljs.core.Keyword(null,"circular-reference","circular-reference",970308727),new cljs.core.Keyword(null,"surrogate-target","surrogate-target",-1262730220),new cljs.core.Keyword(null,"fields","fields",-1932066230),new cljs.core.Keyword(null,"nil","nil",99600501),new cljs.core.Keyword(null,"body","body",-2049205669),new cljs.core.Keyword(null,"number","number",1570378438),new cljs.core.Keyword(null,"protocol-details","protocol-details",-121549824)],[devtools.formatters.markup._LT_aligned_body_GT_,devtools.formatters.markup._LT_native_reference_GT_,devtools.formatters.markup._LT_reference_surrogate_GT_,devtools.formatters.markup._LT_keyword_GT_,devtools.formatters.markup._LT_protocol_method_arities_GT_,devtools.formatters.markup._LT_surrogate_header_GT_,devtools.formatters.markup._LT_details_GT_,devtools.formatters.markup._LT_more_protocols_GT_,devtools.formatters.markup._LT_field_GT_,devtools.formatters.markup._LT_symbol_GT_,devtools.formatters.markup._LT_fields_details_GT_,devtools.formatters.markup._LT_atomic_GT_,devtools.formatters.markup._LT_string_GT_,devtools.formatters.markup._LT_standard_body_GT_,devtools.formatters.markup._LT_type_basis_GT_,devtools.formatters.markup._LT_bool_GT_,devtools.formatters.markup._LT_standalone_type_GT_,devtools.formatters.markup._LT_preview_GT_,devtools.formatters.markup._LT_header_GT_,devtools.formatters.markup._LT_protocol_method_GT_,devtools.formatters.markup._LT_cljs_land_GT_,devtools.formatters.markup._LT_type_basis_item_GT_,devtools.formatters.markup._LT_protocol_method_arities_details_GT_,devtools.formatters.markup._LT_fields_details_row_GT_,devtools.formatters.markup._LT_standard_body_reference_GT_,devtools.formatters.markup._LT_surrogate_body_GT_,devtools.formatters.markup._LT_expandable_GT_,devtools.formatters.markup._LT_type_GT_,devtools.formatters.markup._LT_protocol_method_arity_GT_,devtools.formatters.markup._LT_raw_surrogate_GT_,devtools.formatters.markup._LT_type_details_GT_,devtools.formatters.markup._LT_list_GT_,devtools.formatters.markup._LT_meta_wrapper_GT_,devtools.formatters.markup._LT_protocol_GT_,devtools.formatters.markup._LT_index_GT_,devtools.formatters.markup._LT_surrogate_GT_,devtools.formatters.markup._LT_protocols_list_GT_,devtools.formatters.markup._LT_meta_GT_,devtools.formatters.markup._LT_instance_GT_,devtools.formatters.markup._LT_reference_GT_,devtools.formatters.markup._LT_function_details_GT_,devtools.formatters.markup._LT_function_GT_,devtools.formatters.markup._LT_arities_GT_,devtools.formatters.markup._LT_header_expander_GT_,devtools.formatters.markup._LT_list_details_GT_,devtools.formatters.markup._LT_circular_reference_GT_,devtools.formatters.markup._LT_surrogate_target_GT_,devtools.formatters.markup._LT_fields_GT_,devtools.formatters.markup._LT_nil_GT_,devtools.formatters.markup._LT_body_GT_,devtools.formatters.markup._LT_number_GT_,devtools.formatters.markup._LT_protocol_details_GT_]);
  } else {
  }
  
  return devtools.formatters.markup._STAR_markup_db_STAR_;
  });
  
  //# sourceMappingURL=markup.js.map
  