goog.provide('shadow.cljs.devtools.client.browser');
shadow.cljs.devtools.client.browser.devtools_msg = (function shadow$cljs$devtools$client$browser$devtools_msg(var_args){
var args__5732__auto__ = [];
var len__5726__auto___21260 = arguments.length;
var i__5727__auto___21261 = (0);
while(true){
if((i__5727__auto___21261 < len__5726__auto___21260)){
args__5732__auto__.push((arguments[i__5727__auto___21261]));

var G__21262 = (i__5727__auto___21261 + (1));
i__5727__auto___21261 = G__21262;
continue;
} else {
}
break;
}

var argseq__5733__auto__ = ((((1) < args__5732__auto__.length))?(new cljs.core.IndexedSeq(args__5732__auto__.slice((1)),(0),null)):null);
return shadow.cljs.devtools.client.browser.devtools_msg.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__5733__auto__);
});

(shadow.cljs.devtools.client.browser.devtools_msg.cljs$core$IFn$_invoke$arity$variadic = (function (msg,args){
if(shadow.cljs.devtools.client.env.log){
if(cljs.core.seq(shadow.cljs.devtools.client.env.log_style)){
return console.log.apply(console,cljs.core.into_array.cljs$core$IFn$_invoke$arity$1(cljs.core.into.cljs$core$IFn$_invoke$arity$2(new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [["%cshadow-cljs: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(msg)].join(''),shadow.cljs.devtools.client.env.log_style], null),args)));
} else {
return console.log.apply(console,cljs.core.into_array.cljs$core$IFn$_invoke$arity$1(cljs.core.into.cljs$core$IFn$_invoke$arity$2(new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [["shadow-cljs: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(msg)].join('')], null),args)));
}
} else {
return null;
}
}));

(shadow.cljs.devtools.client.browser.devtools_msg.cljs$lang$maxFixedArity = (1));

/** @this {Function} */
(shadow.cljs.devtools.client.browser.devtools_msg.cljs$lang$applyTo = (function (seq20972){
var G__20973 = cljs.core.first(seq20972);
var seq20972__$1 = cljs.core.next(seq20972);
var self__5711__auto__ = this;
return self__5711__auto__.cljs$core$IFn$_invoke$arity$variadic(G__20973,seq20972__$1);
}));

shadow.cljs.devtools.client.browser.script_eval = (function shadow$cljs$devtools$client$browser$script_eval(code){
return goog.globalEval(code);
});
shadow.cljs.devtools.client.browser.do_js_load = (function shadow$cljs$devtools$client$browser$do_js_load(sources){
var seq__20976 = cljs.core.seq(sources);
var chunk__20977 = null;
var count__20978 = (0);
var i__20979 = (0);
while(true){
if((i__20979 < count__20978)){
var map__20986 = chunk__20977.cljs$core$IIndexed$_nth$arity$2(null,i__20979);
var map__20986__$1 = cljs.core.__destructure_map(map__20986);
var src = map__20986__$1;
var resource_id = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20986__$1,new cljs.core.Keyword(null,"resource-id","resource-id",-1308422582));
var output_name = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20986__$1,new cljs.core.Keyword(null,"output-name","output-name",-1769107767));
var resource_name = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20986__$1,new cljs.core.Keyword(null,"resource-name","resource-name",2001617100));
var js = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20986__$1,new cljs.core.Keyword(null,"js","js",1768080579));
$CLJS.SHADOW_ENV.setLoaded(output_name);

shadow.cljs.devtools.client.browser.devtools_msg.cljs$core$IFn$_invoke$arity$variadic("load JS",cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([resource_name], 0));

shadow.cljs.devtools.client.env.before_load_src(src);

try{shadow.cljs.devtools.client.browser.script_eval([cljs.core.str.cljs$core$IFn$_invoke$arity$1(js),"\n//# sourceURL=",cljs.core.str.cljs$core$IFn$_invoke$arity$1($CLJS.SHADOW_ENV.scriptBase),cljs.core.str.cljs$core$IFn$_invoke$arity$1(output_name)].join(''));
}catch (e20987){var e_21263 = e20987;
if(shadow.cljs.devtools.client.env.log){
console.error(["Failed to load ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(resource_name)].join(''),e_21263);
} else {
}

throw (new Error(["Failed to load ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(resource_name),": ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(e_21263.message)].join('')));
}

var G__21264 = seq__20976;
var G__21265 = chunk__20977;
var G__21266 = count__20978;
var G__21267 = (i__20979 + (1));
seq__20976 = G__21264;
chunk__20977 = G__21265;
count__20978 = G__21266;
i__20979 = G__21267;
continue;
} else {
var temp__5804__auto__ = cljs.core.seq(seq__20976);
if(temp__5804__auto__){
var seq__20976__$1 = temp__5804__auto__;
if(cljs.core.chunked_seq_QMARK_(seq__20976__$1)){
var c__5525__auto__ = cljs.core.chunk_first(seq__20976__$1);
var G__21268 = cljs.core.chunk_rest(seq__20976__$1);
var G__21269 = c__5525__auto__;
var G__21270 = cljs.core.count(c__5525__auto__);
var G__21271 = (0);
seq__20976 = G__21268;
chunk__20977 = G__21269;
count__20978 = G__21270;
i__20979 = G__21271;
continue;
} else {
var map__20988 = cljs.core.first(seq__20976__$1);
var map__20988__$1 = cljs.core.__destructure_map(map__20988);
var src = map__20988__$1;
var resource_id = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20988__$1,new cljs.core.Keyword(null,"resource-id","resource-id",-1308422582));
var output_name = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20988__$1,new cljs.core.Keyword(null,"output-name","output-name",-1769107767));
var resource_name = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20988__$1,new cljs.core.Keyword(null,"resource-name","resource-name",2001617100));
var js = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20988__$1,new cljs.core.Keyword(null,"js","js",1768080579));
$CLJS.SHADOW_ENV.setLoaded(output_name);

shadow.cljs.devtools.client.browser.devtools_msg.cljs$core$IFn$_invoke$arity$variadic("load JS",cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([resource_name], 0));

shadow.cljs.devtools.client.env.before_load_src(src);

try{shadow.cljs.devtools.client.browser.script_eval([cljs.core.str.cljs$core$IFn$_invoke$arity$1(js),"\n//# sourceURL=",cljs.core.str.cljs$core$IFn$_invoke$arity$1($CLJS.SHADOW_ENV.scriptBase),cljs.core.str.cljs$core$IFn$_invoke$arity$1(output_name)].join(''));
}catch (e20989){var e_21272 = e20989;
if(shadow.cljs.devtools.client.env.log){
console.error(["Failed to load ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(resource_name)].join(''),e_21272);
} else {
}

throw (new Error(["Failed to load ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(resource_name),": ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(e_21272.message)].join('')));
}

var G__21273 = cljs.core.next(seq__20976__$1);
var G__21274 = null;
var G__21275 = (0);
var G__21276 = (0);
seq__20976 = G__21273;
chunk__20977 = G__21274;
count__20978 = G__21275;
i__20979 = G__21276;
continue;
}
} else {
return null;
}
}
break;
}
});
shadow.cljs.devtools.client.browser.do_js_reload = (function shadow$cljs$devtools$client$browser$do_js_reload(msg,sources,complete_fn,failure_fn){
return shadow.cljs.devtools.client.env.do_js_reload.cljs$core$IFn$_invoke$arity$4(cljs.core.assoc.cljs$core$IFn$_invoke$arity$variadic(msg,new cljs.core.Keyword(null,"log-missing-fn","log-missing-fn",732676765),(function (fn_sym){
return null;
}),cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([new cljs.core.Keyword(null,"log-call-async","log-call-async",183826192),(function (fn_sym){
return shadow.cljs.devtools.client.browser.devtools_msg(["call async ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym)].join(''));
}),new cljs.core.Keyword(null,"log-call","log-call",412404391),(function (fn_sym){
return shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym)].join(''));
})], 0)),(function (next){
shadow.cljs.devtools.client.browser.do_js_load(sources);

return (next.cljs$core$IFn$_invoke$arity$0 ? next.cljs$core$IFn$_invoke$arity$0() : next.call(null));
}),complete_fn,failure_fn);
});
/**
 * when (require '["some-str" :as x]) is done at the REPL we need to manually call the shadow.js.require for it
 * since the file only adds the shadow$provide. only need to do this for shadow-js.
 */
shadow.cljs.devtools.client.browser.do_js_requires = (function shadow$cljs$devtools$client$browser$do_js_requires(js_requires){
var seq__20990 = cljs.core.seq(js_requires);
var chunk__20991 = null;
var count__20992 = (0);
var i__20993 = (0);
while(true){
if((i__20993 < count__20992)){
var js_ns = chunk__20991.cljs$core$IIndexed$_nth$arity$2(null,i__20993);
var require_str_21277 = ["var ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(js_ns)," = shadow.js.require(\"",cljs.core.str.cljs$core$IFn$_invoke$arity$1(js_ns),"\");"].join('');
shadow.cljs.devtools.client.browser.script_eval(require_str_21277);


var G__21278 = seq__20990;
var G__21279 = chunk__20991;
var G__21280 = count__20992;
var G__21281 = (i__20993 + (1));
seq__20990 = G__21278;
chunk__20991 = G__21279;
count__20992 = G__21280;
i__20993 = G__21281;
continue;
} else {
var temp__5804__auto__ = cljs.core.seq(seq__20990);
if(temp__5804__auto__){
var seq__20990__$1 = temp__5804__auto__;
if(cljs.core.chunked_seq_QMARK_(seq__20990__$1)){
var c__5525__auto__ = cljs.core.chunk_first(seq__20990__$1);
var G__21282 = cljs.core.chunk_rest(seq__20990__$1);
var G__21283 = c__5525__auto__;
var G__21284 = cljs.core.count(c__5525__auto__);
var G__21285 = (0);
seq__20990 = G__21282;
chunk__20991 = G__21283;
count__20992 = G__21284;
i__20993 = G__21285;
continue;
} else {
var js_ns = cljs.core.first(seq__20990__$1);
var require_str_21286 = ["var ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(js_ns)," = shadow.js.require(\"",cljs.core.str.cljs$core$IFn$_invoke$arity$1(js_ns),"\");"].join('');
shadow.cljs.devtools.client.browser.script_eval(require_str_21286);


var G__21287 = cljs.core.next(seq__20990__$1);
var G__21288 = null;
var G__21289 = (0);
var G__21290 = (0);
seq__20990 = G__21287;
chunk__20991 = G__21288;
count__20992 = G__21289;
i__20993 = G__21290;
continue;
}
} else {
return null;
}
}
break;
}
});
shadow.cljs.devtools.client.browser.handle_build_complete = (function shadow$cljs$devtools$client$browser$handle_build_complete(runtime,p__20995){
var map__20996 = p__20995;
var map__20996__$1 = cljs.core.__destructure_map(map__20996);
var msg = map__20996__$1;
var info = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20996__$1,new cljs.core.Keyword(null,"info","info",-317069002));
var reload_info = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__20996__$1,new cljs.core.Keyword(null,"reload-info","reload-info",1648088086));
var warnings = cljs.core.into.cljs$core$IFn$_invoke$arity$2(cljs.core.PersistentVector.EMPTY,cljs.core.distinct.cljs$core$IFn$_invoke$arity$1((function (){var iter__5480__auto__ = (function shadow$cljs$devtools$client$browser$handle_build_complete_$_iter__20997(s__20998){
return (new cljs.core.LazySeq(null,(function (){
var s__20998__$1 = s__20998;
while(true){
var temp__5804__auto__ = cljs.core.seq(s__20998__$1);
if(temp__5804__auto__){
var xs__6360__auto__ = temp__5804__auto__;
var map__21003 = cljs.core.first(xs__6360__auto__);
var map__21003__$1 = cljs.core.__destructure_map(map__21003);
var src = map__21003__$1;
var resource_name = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21003__$1,new cljs.core.Keyword(null,"resource-name","resource-name",2001617100));
var warnings = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21003__$1,new cljs.core.Keyword(null,"warnings","warnings",-735437651));
if(cljs.core.not(new cljs.core.Keyword(null,"from-jar","from-jar",1050932827).cljs$core$IFn$_invoke$arity$1(src))){
var iterys__5476__auto__ = ((function (s__20998__$1,map__21003,map__21003__$1,src,resource_name,warnings,xs__6360__auto__,temp__5804__auto__,map__20996,map__20996__$1,msg,info,reload_info){
return (function shadow$cljs$devtools$client$browser$handle_build_complete_$_iter__20997_$_iter__20999(s__21000){
return (new cljs.core.LazySeq(null,((function (s__20998__$1,map__21003,map__21003__$1,src,resource_name,warnings,xs__6360__auto__,temp__5804__auto__,map__20996,map__20996__$1,msg,info,reload_info){
return (function (){
var s__21000__$1 = s__21000;
while(true){
var temp__5804__auto____$1 = cljs.core.seq(s__21000__$1);
if(temp__5804__auto____$1){
var s__21000__$2 = temp__5804__auto____$1;
if(cljs.core.chunked_seq_QMARK_(s__21000__$2)){
var c__5478__auto__ = cljs.core.chunk_first(s__21000__$2);
var size__5479__auto__ = cljs.core.count(c__5478__auto__);
var b__21002 = cljs.core.chunk_buffer(size__5479__auto__);
if((function (){var i__21001 = (0);
while(true){
if((i__21001 < size__5479__auto__)){
var warning = cljs.core._nth(c__5478__auto__,i__21001);
cljs.core.chunk_append(b__21002,cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(warning,new cljs.core.Keyword(null,"resource-name","resource-name",2001617100),resource_name));

var G__21291 = (i__21001 + (1));
i__21001 = G__21291;
continue;
} else {
return true;
}
break;
}
})()){
return cljs.core.chunk_cons(cljs.core.chunk(b__21002),shadow$cljs$devtools$client$browser$handle_build_complete_$_iter__20997_$_iter__20999(cljs.core.chunk_rest(s__21000__$2)));
} else {
return cljs.core.chunk_cons(cljs.core.chunk(b__21002),null);
}
} else {
var warning = cljs.core.first(s__21000__$2);
return cljs.core.cons(cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(warning,new cljs.core.Keyword(null,"resource-name","resource-name",2001617100),resource_name),shadow$cljs$devtools$client$browser$handle_build_complete_$_iter__20997_$_iter__20999(cljs.core.rest(s__21000__$2)));
}
} else {
return null;
}
break;
}
});})(s__20998__$1,map__21003,map__21003__$1,src,resource_name,warnings,xs__6360__auto__,temp__5804__auto__,map__20996,map__20996__$1,msg,info,reload_info))
,null,null));
});})(s__20998__$1,map__21003,map__21003__$1,src,resource_name,warnings,xs__6360__auto__,temp__5804__auto__,map__20996,map__20996__$1,msg,info,reload_info))
;
var fs__5477__auto__ = cljs.core.seq(iterys__5476__auto__(warnings));
if(fs__5477__auto__){
return cljs.core.concat.cljs$core$IFn$_invoke$arity$2(fs__5477__auto__,shadow$cljs$devtools$client$browser$handle_build_complete_$_iter__20997(cljs.core.rest(s__20998__$1)));
} else {
var G__21292 = cljs.core.rest(s__20998__$1);
s__20998__$1 = G__21292;
continue;
}
} else {
var G__21293 = cljs.core.rest(s__20998__$1);
s__20998__$1 = G__21293;
continue;
}
} else {
return null;
}
break;
}
}),null,null));
});
return iter__5480__auto__(new cljs.core.Keyword(null,"sources","sources",-321166424).cljs$core$IFn$_invoke$arity$1(info));
})()));
if(shadow.cljs.devtools.client.env.log){
var seq__21004_21294 = cljs.core.seq(warnings);
var chunk__21005_21295 = null;
var count__21006_21296 = (0);
var i__21007_21297 = (0);
while(true){
if((i__21007_21297 < count__21006_21296)){
var map__21010_21298 = chunk__21005_21295.cljs$core$IIndexed$_nth$arity$2(null,i__21007_21297);
var map__21010_21299__$1 = cljs.core.__destructure_map(map__21010_21298);
var w_21300 = map__21010_21299__$1;
var msg_21301__$1 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21010_21299__$1,new cljs.core.Keyword(null,"msg","msg",-1386103444));
var line_21302 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21010_21299__$1,new cljs.core.Keyword(null,"line","line",212345235));
var column_21303 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21010_21299__$1,new cljs.core.Keyword(null,"column","column",2078222095));
var resource_name_21304 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21010_21299__$1,new cljs.core.Keyword(null,"resource-name","resource-name",2001617100));
console.warn(["BUILD-WARNING in ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(resource_name_21304)," at [",cljs.core.str.cljs$core$IFn$_invoke$arity$1(line_21302),":",cljs.core.str.cljs$core$IFn$_invoke$arity$1(column_21303),"]\n\t",cljs.core.str.cljs$core$IFn$_invoke$arity$1(msg_21301__$1)].join(''));


var G__21305 = seq__21004_21294;
var G__21306 = chunk__21005_21295;
var G__21307 = count__21006_21296;
var G__21308 = (i__21007_21297 + (1));
seq__21004_21294 = G__21305;
chunk__21005_21295 = G__21306;
count__21006_21296 = G__21307;
i__21007_21297 = G__21308;
continue;
} else {
var temp__5804__auto___21309 = cljs.core.seq(seq__21004_21294);
if(temp__5804__auto___21309){
var seq__21004_21310__$1 = temp__5804__auto___21309;
if(cljs.core.chunked_seq_QMARK_(seq__21004_21310__$1)){
var c__5525__auto___21311 = cljs.core.chunk_first(seq__21004_21310__$1);
var G__21312 = cljs.core.chunk_rest(seq__21004_21310__$1);
var G__21313 = c__5525__auto___21311;
var G__21314 = cljs.core.count(c__5525__auto___21311);
var G__21315 = (0);
seq__21004_21294 = G__21312;
chunk__21005_21295 = G__21313;
count__21006_21296 = G__21314;
i__21007_21297 = G__21315;
continue;
} else {
var map__21011_21316 = cljs.core.first(seq__21004_21310__$1);
var map__21011_21317__$1 = cljs.core.__destructure_map(map__21011_21316);
var w_21318 = map__21011_21317__$1;
var msg_21319__$1 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21011_21317__$1,new cljs.core.Keyword(null,"msg","msg",-1386103444));
var line_21320 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21011_21317__$1,new cljs.core.Keyword(null,"line","line",212345235));
var column_21321 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21011_21317__$1,new cljs.core.Keyword(null,"column","column",2078222095));
var resource_name_21322 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21011_21317__$1,new cljs.core.Keyword(null,"resource-name","resource-name",2001617100));
console.warn(["BUILD-WARNING in ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(resource_name_21322)," at [",cljs.core.str.cljs$core$IFn$_invoke$arity$1(line_21320),":",cljs.core.str.cljs$core$IFn$_invoke$arity$1(column_21321),"]\n\t",cljs.core.str.cljs$core$IFn$_invoke$arity$1(msg_21319__$1)].join(''));


var G__21323 = cljs.core.next(seq__21004_21310__$1);
var G__21324 = null;
var G__21325 = (0);
var G__21326 = (0);
seq__21004_21294 = G__21323;
chunk__21005_21295 = G__21324;
count__21006_21296 = G__21325;
i__21007_21297 = G__21326;
continue;
}
} else {
}
}
break;
}
} else {
}

if((!(shadow.cljs.devtools.client.env.autoload))){
return shadow.cljs.devtools.client.hud.load_end_success();
} else {
if(((cljs.core.empty_QMARK_(warnings)) || (shadow.cljs.devtools.client.env.ignore_warnings))){
var sources_to_get = shadow.cljs.devtools.client.env.filter_reload_sources(info,reload_info);
if(cljs.core.not(cljs.core.seq(sources_to_get))){
return shadow.cljs.devtools.client.hud.load_end_success();
} else {
if(cljs.core.seq(cljs.core.get_in.cljs$core$IFn$_invoke$arity$2(msg,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"reload-info","reload-info",1648088086),new cljs.core.Keyword(null,"after-load","after-load",-1278503285)], null)))){
} else {
shadow.cljs.devtools.client.browser.devtools_msg.cljs$core$IFn$_invoke$arity$variadic("reloading code but no :after-load hooks are configured!",cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2(["https://shadow-cljs.github.io/docs/UsersGuide.html#_lifecycle_hooks"], 0));
}

return shadow.cljs.devtools.client.shared.load_sources(runtime,sources_to_get,(function (p1__20994_SHARP_){
return shadow.cljs.devtools.client.browser.do_js_reload(msg,p1__20994_SHARP_,shadow.cljs.devtools.client.hud.load_end_success,shadow.cljs.devtools.client.hud.load_failure);
}));
}
} else {
return null;
}
}
});
shadow.cljs.devtools.client.browser.page_load_uri = (cljs.core.truth_(goog.global.document)?goog.Uri.parse(document.location.href):null);
shadow.cljs.devtools.client.browser.match_paths = (function shadow$cljs$devtools$client$browser$match_paths(old,new$){
if(cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2("file",shadow.cljs.devtools.client.browser.page_load_uri.getScheme())){
var rel_new = cljs.core.subs.cljs$core$IFn$_invoke$arity$2(new$,(1));
if(((cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(old,rel_new)) || (clojure.string.starts_with_QMARK_(old,[rel_new,"?"].join(''))))){
return rel_new;
} else {
return null;
}
} else {
var node_uri = goog.Uri.parse(old);
var node_uri_resolved = shadow.cljs.devtools.client.browser.page_load_uri.resolve(node_uri);
var node_abs = node_uri_resolved.getPath();
var and__5000__auto__ = ((cljs.core._EQ_.cljs$core$IFn$_invoke$arity$1(shadow.cljs.devtools.client.browser.page_load_uri.hasSameDomainAs(node_uri))) || (cljs.core.not(node_uri.hasDomain())));
if(and__5000__auto__){
var and__5000__auto____$1 = cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(node_abs,new$);
if(and__5000__auto____$1){
return cljs.core.str.cljs$core$IFn$_invoke$arity$1((function (){var G__21013 = node_uri;
G__21013.setQuery(null);

G__21013.setPath(new$);

return G__21013;
})());
} else {
return and__5000__auto____$1;
}
} else {
return and__5000__auto__;
}
}
});
shadow.cljs.devtools.client.browser.handle_asset_update = (function shadow$cljs$devtools$client$browser$handle_asset_update(p__21014){
var map__21015 = p__21014;
var map__21015__$1 = cljs.core.__destructure_map(map__21015);
var msg = map__21015__$1;
var updates = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21015__$1,new cljs.core.Keyword(null,"updates","updates",2013983452));
var reload_info = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21015__$1,new cljs.core.Keyword(null,"reload-info","reload-info",1648088086));
var seq__21016 = cljs.core.seq(updates);
var chunk__21018 = null;
var count__21019 = (0);
var i__21020 = (0);
while(true){
if((i__21020 < count__21019)){
var path = chunk__21018.cljs$core$IIndexed$_nth$arity$2(null,i__21020);
if(clojure.string.ends_with_QMARK_(path,"css")){
var seq__21130_21327 = cljs.core.seq(cljs.core.array_seq.cljs$core$IFn$_invoke$arity$1(document.querySelectorAll("link[rel=\"stylesheet\"]")));
var chunk__21134_21328 = null;
var count__21135_21329 = (0);
var i__21136_21330 = (0);
while(true){
if((i__21136_21330 < count__21135_21329)){
var node_21331 = chunk__21134_21328.cljs$core$IIndexed$_nth$arity$2(null,i__21136_21330);
if(cljs.core.not(node_21331.shadow$old)){
var path_match_21332 = shadow.cljs.devtools.client.browser.match_paths(node_21331.getAttribute("href"),path);
if(cljs.core.truth_(path_match_21332)){
var new_link_21333 = (function (){var G__21162 = node_21331.cloneNode(true);
G__21162.setAttribute("href",[cljs.core.str.cljs$core$IFn$_invoke$arity$1(path_match_21332),"?r=",cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.core.rand.cljs$core$IFn$_invoke$arity$0())].join(''));

return G__21162;
})();
(node_21331.shadow$old = true);

(new_link_21333.onload = ((function (seq__21130_21327,chunk__21134_21328,count__21135_21329,i__21136_21330,seq__21016,chunk__21018,count__21019,i__21020,new_link_21333,path_match_21332,node_21331,path,map__21015,map__21015__$1,msg,updates,reload_info){
return (function (e){
var seq__21163_21334 = cljs.core.seq(cljs.core.get_in.cljs$core$IFn$_invoke$arity$2(msg,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"reload-info","reload-info",1648088086),new cljs.core.Keyword(null,"asset-load","asset-load",-1925902322)], null)));
var chunk__21165_21335 = null;
var count__21166_21336 = (0);
var i__21167_21337 = (0);
while(true){
if((i__21167_21337 < count__21166_21336)){
var map__21171_21338 = chunk__21165_21335.cljs$core$IIndexed$_nth$arity$2(null,i__21167_21337);
var map__21171_21339__$1 = cljs.core.__destructure_map(map__21171_21338);
var task_21340 = map__21171_21339__$1;
var fn_str_21341 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21171_21339__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_21342 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21171_21339__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_21343 = goog.getObjectByName(fn_str_21341,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_21342)].join(''));

(fn_obj_21343.cljs$core$IFn$_invoke$arity$2 ? fn_obj_21343.cljs$core$IFn$_invoke$arity$2(path,new_link_21333) : fn_obj_21343.call(null,path,new_link_21333));


var G__21344 = seq__21163_21334;
var G__21345 = chunk__21165_21335;
var G__21346 = count__21166_21336;
var G__21347 = (i__21167_21337 + (1));
seq__21163_21334 = G__21344;
chunk__21165_21335 = G__21345;
count__21166_21336 = G__21346;
i__21167_21337 = G__21347;
continue;
} else {
var temp__5804__auto___21348 = cljs.core.seq(seq__21163_21334);
if(temp__5804__auto___21348){
var seq__21163_21349__$1 = temp__5804__auto___21348;
if(cljs.core.chunked_seq_QMARK_(seq__21163_21349__$1)){
var c__5525__auto___21350 = cljs.core.chunk_first(seq__21163_21349__$1);
var G__21351 = cljs.core.chunk_rest(seq__21163_21349__$1);
var G__21352 = c__5525__auto___21350;
var G__21353 = cljs.core.count(c__5525__auto___21350);
var G__21354 = (0);
seq__21163_21334 = G__21351;
chunk__21165_21335 = G__21352;
count__21166_21336 = G__21353;
i__21167_21337 = G__21354;
continue;
} else {
var map__21172_21355 = cljs.core.first(seq__21163_21349__$1);
var map__21172_21356__$1 = cljs.core.__destructure_map(map__21172_21355);
var task_21357 = map__21172_21356__$1;
var fn_str_21358 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21172_21356__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_21359 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21172_21356__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_21360 = goog.getObjectByName(fn_str_21358,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_21359)].join(''));

(fn_obj_21360.cljs$core$IFn$_invoke$arity$2 ? fn_obj_21360.cljs$core$IFn$_invoke$arity$2(path,new_link_21333) : fn_obj_21360.call(null,path,new_link_21333));


var G__21361 = cljs.core.next(seq__21163_21349__$1);
var G__21362 = null;
var G__21363 = (0);
var G__21364 = (0);
seq__21163_21334 = G__21361;
chunk__21165_21335 = G__21362;
count__21166_21336 = G__21363;
i__21167_21337 = G__21364;
continue;
}
} else {
}
}
break;
}

return goog.dom.removeNode(node_21331);
});})(seq__21130_21327,chunk__21134_21328,count__21135_21329,i__21136_21330,seq__21016,chunk__21018,count__21019,i__21020,new_link_21333,path_match_21332,node_21331,path,map__21015,map__21015__$1,msg,updates,reload_info))
);

shadow.cljs.devtools.client.browser.devtools_msg.cljs$core$IFn$_invoke$arity$variadic("load CSS",cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([path_match_21332], 0));

goog.dom.insertSiblingAfter(new_link_21333,node_21331);


var G__21365 = seq__21130_21327;
var G__21366 = chunk__21134_21328;
var G__21367 = count__21135_21329;
var G__21368 = (i__21136_21330 + (1));
seq__21130_21327 = G__21365;
chunk__21134_21328 = G__21366;
count__21135_21329 = G__21367;
i__21136_21330 = G__21368;
continue;
} else {
var G__21369 = seq__21130_21327;
var G__21370 = chunk__21134_21328;
var G__21371 = count__21135_21329;
var G__21372 = (i__21136_21330 + (1));
seq__21130_21327 = G__21369;
chunk__21134_21328 = G__21370;
count__21135_21329 = G__21371;
i__21136_21330 = G__21372;
continue;
}
} else {
var G__21373 = seq__21130_21327;
var G__21374 = chunk__21134_21328;
var G__21375 = count__21135_21329;
var G__21376 = (i__21136_21330 + (1));
seq__21130_21327 = G__21373;
chunk__21134_21328 = G__21374;
count__21135_21329 = G__21375;
i__21136_21330 = G__21376;
continue;
}
} else {
var temp__5804__auto___21377 = cljs.core.seq(seq__21130_21327);
if(temp__5804__auto___21377){
var seq__21130_21378__$1 = temp__5804__auto___21377;
if(cljs.core.chunked_seq_QMARK_(seq__21130_21378__$1)){
var c__5525__auto___21379 = cljs.core.chunk_first(seq__21130_21378__$1);
var G__21380 = cljs.core.chunk_rest(seq__21130_21378__$1);
var G__21381 = c__5525__auto___21379;
var G__21382 = cljs.core.count(c__5525__auto___21379);
var G__21383 = (0);
seq__21130_21327 = G__21380;
chunk__21134_21328 = G__21381;
count__21135_21329 = G__21382;
i__21136_21330 = G__21383;
continue;
} else {
var node_21384 = cljs.core.first(seq__21130_21378__$1);
if(cljs.core.not(node_21384.shadow$old)){
var path_match_21385 = shadow.cljs.devtools.client.browser.match_paths(node_21384.getAttribute("href"),path);
if(cljs.core.truth_(path_match_21385)){
var new_link_21386 = (function (){var G__21173 = node_21384.cloneNode(true);
G__21173.setAttribute("href",[cljs.core.str.cljs$core$IFn$_invoke$arity$1(path_match_21385),"?r=",cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.core.rand.cljs$core$IFn$_invoke$arity$0())].join(''));

return G__21173;
})();
(node_21384.shadow$old = true);

(new_link_21386.onload = ((function (seq__21130_21327,chunk__21134_21328,count__21135_21329,i__21136_21330,seq__21016,chunk__21018,count__21019,i__21020,new_link_21386,path_match_21385,node_21384,seq__21130_21378__$1,temp__5804__auto___21377,path,map__21015,map__21015__$1,msg,updates,reload_info){
return (function (e){
var seq__21174_21387 = cljs.core.seq(cljs.core.get_in.cljs$core$IFn$_invoke$arity$2(msg,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"reload-info","reload-info",1648088086),new cljs.core.Keyword(null,"asset-load","asset-load",-1925902322)], null)));
var chunk__21176_21388 = null;
var count__21177_21389 = (0);
var i__21178_21390 = (0);
while(true){
if((i__21178_21390 < count__21177_21389)){
var map__21182_21391 = chunk__21176_21388.cljs$core$IIndexed$_nth$arity$2(null,i__21178_21390);
var map__21182_21392__$1 = cljs.core.__destructure_map(map__21182_21391);
var task_21393 = map__21182_21392__$1;
var fn_str_21394 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21182_21392__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_21395 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21182_21392__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_21396 = goog.getObjectByName(fn_str_21394,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_21395)].join(''));

(fn_obj_21396.cljs$core$IFn$_invoke$arity$2 ? fn_obj_21396.cljs$core$IFn$_invoke$arity$2(path,new_link_21386) : fn_obj_21396.call(null,path,new_link_21386));


var G__21397 = seq__21174_21387;
var G__21398 = chunk__21176_21388;
var G__21399 = count__21177_21389;
var G__21400 = (i__21178_21390 + (1));
seq__21174_21387 = G__21397;
chunk__21176_21388 = G__21398;
count__21177_21389 = G__21399;
i__21178_21390 = G__21400;
continue;
} else {
var temp__5804__auto___21401__$1 = cljs.core.seq(seq__21174_21387);
if(temp__5804__auto___21401__$1){
var seq__21174_21402__$1 = temp__5804__auto___21401__$1;
if(cljs.core.chunked_seq_QMARK_(seq__21174_21402__$1)){
var c__5525__auto___21403 = cljs.core.chunk_first(seq__21174_21402__$1);
var G__21404 = cljs.core.chunk_rest(seq__21174_21402__$1);
var G__21405 = c__5525__auto___21403;
var G__21406 = cljs.core.count(c__5525__auto___21403);
var G__21407 = (0);
seq__21174_21387 = G__21404;
chunk__21176_21388 = G__21405;
count__21177_21389 = G__21406;
i__21178_21390 = G__21407;
continue;
} else {
var map__21183_21408 = cljs.core.first(seq__21174_21402__$1);
var map__21183_21409__$1 = cljs.core.__destructure_map(map__21183_21408);
var task_21410 = map__21183_21409__$1;
var fn_str_21411 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21183_21409__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_21412 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21183_21409__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_21413 = goog.getObjectByName(fn_str_21411,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_21412)].join(''));

(fn_obj_21413.cljs$core$IFn$_invoke$arity$2 ? fn_obj_21413.cljs$core$IFn$_invoke$arity$2(path,new_link_21386) : fn_obj_21413.call(null,path,new_link_21386));


var G__21414 = cljs.core.next(seq__21174_21402__$1);
var G__21415 = null;
var G__21416 = (0);
var G__21417 = (0);
seq__21174_21387 = G__21414;
chunk__21176_21388 = G__21415;
count__21177_21389 = G__21416;
i__21178_21390 = G__21417;
continue;
}
} else {
}
}
break;
}

return goog.dom.removeNode(node_21384);
});})(seq__21130_21327,chunk__21134_21328,count__21135_21329,i__21136_21330,seq__21016,chunk__21018,count__21019,i__21020,new_link_21386,path_match_21385,node_21384,seq__21130_21378__$1,temp__5804__auto___21377,path,map__21015,map__21015__$1,msg,updates,reload_info))
);

shadow.cljs.devtools.client.browser.devtools_msg.cljs$core$IFn$_invoke$arity$variadic("load CSS",cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([path_match_21385], 0));

goog.dom.insertSiblingAfter(new_link_21386,node_21384);


var G__21418 = cljs.core.next(seq__21130_21378__$1);
var G__21419 = null;
var G__21420 = (0);
var G__21421 = (0);
seq__21130_21327 = G__21418;
chunk__21134_21328 = G__21419;
count__21135_21329 = G__21420;
i__21136_21330 = G__21421;
continue;
} else {
var G__21422 = cljs.core.next(seq__21130_21378__$1);
var G__21423 = null;
var G__21424 = (0);
var G__21425 = (0);
seq__21130_21327 = G__21422;
chunk__21134_21328 = G__21423;
count__21135_21329 = G__21424;
i__21136_21330 = G__21425;
continue;
}
} else {
var G__21426 = cljs.core.next(seq__21130_21378__$1);
var G__21427 = null;
var G__21428 = (0);
var G__21429 = (0);
seq__21130_21327 = G__21426;
chunk__21134_21328 = G__21427;
count__21135_21329 = G__21428;
i__21136_21330 = G__21429;
continue;
}
}
} else {
}
}
break;
}


var G__21430 = seq__21016;
var G__21431 = chunk__21018;
var G__21432 = count__21019;
var G__21433 = (i__21020 + (1));
seq__21016 = G__21430;
chunk__21018 = G__21431;
count__21019 = G__21432;
i__21020 = G__21433;
continue;
} else {
var G__21434 = seq__21016;
var G__21435 = chunk__21018;
var G__21436 = count__21019;
var G__21437 = (i__21020 + (1));
seq__21016 = G__21434;
chunk__21018 = G__21435;
count__21019 = G__21436;
i__21020 = G__21437;
continue;
}
} else {
var temp__5804__auto__ = cljs.core.seq(seq__21016);
if(temp__5804__auto__){
var seq__21016__$1 = temp__5804__auto__;
if(cljs.core.chunked_seq_QMARK_(seq__21016__$1)){
var c__5525__auto__ = cljs.core.chunk_first(seq__21016__$1);
var G__21438 = cljs.core.chunk_rest(seq__21016__$1);
var G__21439 = c__5525__auto__;
var G__21440 = cljs.core.count(c__5525__auto__);
var G__21441 = (0);
seq__21016 = G__21438;
chunk__21018 = G__21439;
count__21019 = G__21440;
i__21020 = G__21441;
continue;
} else {
var path = cljs.core.first(seq__21016__$1);
if(clojure.string.ends_with_QMARK_(path,"css")){
var seq__21184_21442 = cljs.core.seq(cljs.core.array_seq.cljs$core$IFn$_invoke$arity$1(document.querySelectorAll("link[rel=\"stylesheet\"]")));
var chunk__21188_21443 = null;
var count__21189_21444 = (0);
var i__21190_21445 = (0);
while(true){
if((i__21190_21445 < count__21189_21444)){
var node_21446 = chunk__21188_21443.cljs$core$IIndexed$_nth$arity$2(null,i__21190_21445);
if(cljs.core.not(node_21446.shadow$old)){
var path_match_21447 = shadow.cljs.devtools.client.browser.match_paths(node_21446.getAttribute("href"),path);
if(cljs.core.truth_(path_match_21447)){
var new_link_21448 = (function (){var G__21216 = node_21446.cloneNode(true);
G__21216.setAttribute("href",[cljs.core.str.cljs$core$IFn$_invoke$arity$1(path_match_21447),"?r=",cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.core.rand.cljs$core$IFn$_invoke$arity$0())].join(''));

return G__21216;
})();
(node_21446.shadow$old = true);

(new_link_21448.onload = ((function (seq__21184_21442,chunk__21188_21443,count__21189_21444,i__21190_21445,seq__21016,chunk__21018,count__21019,i__21020,new_link_21448,path_match_21447,node_21446,path,seq__21016__$1,temp__5804__auto__,map__21015,map__21015__$1,msg,updates,reload_info){
return (function (e){
var seq__21217_21449 = cljs.core.seq(cljs.core.get_in.cljs$core$IFn$_invoke$arity$2(msg,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"reload-info","reload-info",1648088086),new cljs.core.Keyword(null,"asset-load","asset-load",-1925902322)], null)));
var chunk__21219_21450 = null;
var count__21220_21451 = (0);
var i__21221_21452 = (0);
while(true){
if((i__21221_21452 < count__21220_21451)){
var map__21225_21453 = chunk__21219_21450.cljs$core$IIndexed$_nth$arity$2(null,i__21221_21452);
var map__21225_21454__$1 = cljs.core.__destructure_map(map__21225_21453);
var task_21455 = map__21225_21454__$1;
var fn_str_21456 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21225_21454__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_21457 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21225_21454__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_21458 = goog.getObjectByName(fn_str_21456,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_21457)].join(''));

(fn_obj_21458.cljs$core$IFn$_invoke$arity$2 ? fn_obj_21458.cljs$core$IFn$_invoke$arity$2(path,new_link_21448) : fn_obj_21458.call(null,path,new_link_21448));


var G__21459 = seq__21217_21449;
var G__21460 = chunk__21219_21450;
var G__21461 = count__21220_21451;
var G__21462 = (i__21221_21452 + (1));
seq__21217_21449 = G__21459;
chunk__21219_21450 = G__21460;
count__21220_21451 = G__21461;
i__21221_21452 = G__21462;
continue;
} else {
var temp__5804__auto___21463__$1 = cljs.core.seq(seq__21217_21449);
if(temp__5804__auto___21463__$1){
var seq__21217_21464__$1 = temp__5804__auto___21463__$1;
if(cljs.core.chunked_seq_QMARK_(seq__21217_21464__$1)){
var c__5525__auto___21465 = cljs.core.chunk_first(seq__21217_21464__$1);
var G__21466 = cljs.core.chunk_rest(seq__21217_21464__$1);
var G__21467 = c__5525__auto___21465;
var G__21468 = cljs.core.count(c__5525__auto___21465);
var G__21469 = (0);
seq__21217_21449 = G__21466;
chunk__21219_21450 = G__21467;
count__21220_21451 = G__21468;
i__21221_21452 = G__21469;
continue;
} else {
var map__21226_21470 = cljs.core.first(seq__21217_21464__$1);
var map__21226_21471__$1 = cljs.core.__destructure_map(map__21226_21470);
var task_21472 = map__21226_21471__$1;
var fn_str_21473 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21226_21471__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_21474 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21226_21471__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_21475 = goog.getObjectByName(fn_str_21473,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_21474)].join(''));

(fn_obj_21475.cljs$core$IFn$_invoke$arity$2 ? fn_obj_21475.cljs$core$IFn$_invoke$arity$2(path,new_link_21448) : fn_obj_21475.call(null,path,new_link_21448));


var G__21476 = cljs.core.next(seq__21217_21464__$1);
var G__21477 = null;
var G__21478 = (0);
var G__21479 = (0);
seq__21217_21449 = G__21476;
chunk__21219_21450 = G__21477;
count__21220_21451 = G__21478;
i__21221_21452 = G__21479;
continue;
}
} else {
}
}
break;
}

return goog.dom.removeNode(node_21446);
});})(seq__21184_21442,chunk__21188_21443,count__21189_21444,i__21190_21445,seq__21016,chunk__21018,count__21019,i__21020,new_link_21448,path_match_21447,node_21446,path,seq__21016__$1,temp__5804__auto__,map__21015,map__21015__$1,msg,updates,reload_info))
);

shadow.cljs.devtools.client.browser.devtools_msg.cljs$core$IFn$_invoke$arity$variadic("load CSS",cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([path_match_21447], 0));

goog.dom.insertSiblingAfter(new_link_21448,node_21446);


var G__21480 = seq__21184_21442;
var G__21481 = chunk__21188_21443;
var G__21482 = count__21189_21444;
var G__21483 = (i__21190_21445 + (1));
seq__21184_21442 = G__21480;
chunk__21188_21443 = G__21481;
count__21189_21444 = G__21482;
i__21190_21445 = G__21483;
continue;
} else {
var G__21484 = seq__21184_21442;
var G__21485 = chunk__21188_21443;
var G__21486 = count__21189_21444;
var G__21487 = (i__21190_21445 + (1));
seq__21184_21442 = G__21484;
chunk__21188_21443 = G__21485;
count__21189_21444 = G__21486;
i__21190_21445 = G__21487;
continue;
}
} else {
var G__21488 = seq__21184_21442;
var G__21489 = chunk__21188_21443;
var G__21490 = count__21189_21444;
var G__21491 = (i__21190_21445 + (1));
seq__21184_21442 = G__21488;
chunk__21188_21443 = G__21489;
count__21189_21444 = G__21490;
i__21190_21445 = G__21491;
continue;
}
} else {
var temp__5804__auto___21492__$1 = cljs.core.seq(seq__21184_21442);
if(temp__5804__auto___21492__$1){
var seq__21184_21493__$1 = temp__5804__auto___21492__$1;
if(cljs.core.chunked_seq_QMARK_(seq__21184_21493__$1)){
var c__5525__auto___21494 = cljs.core.chunk_first(seq__21184_21493__$1);
var G__21495 = cljs.core.chunk_rest(seq__21184_21493__$1);
var G__21496 = c__5525__auto___21494;
var G__21497 = cljs.core.count(c__5525__auto___21494);
var G__21498 = (0);
seq__21184_21442 = G__21495;
chunk__21188_21443 = G__21496;
count__21189_21444 = G__21497;
i__21190_21445 = G__21498;
continue;
} else {
var node_21499 = cljs.core.first(seq__21184_21493__$1);
if(cljs.core.not(node_21499.shadow$old)){
var path_match_21500 = shadow.cljs.devtools.client.browser.match_paths(node_21499.getAttribute("href"),path);
if(cljs.core.truth_(path_match_21500)){
var new_link_21501 = (function (){var G__21227 = node_21499.cloneNode(true);
G__21227.setAttribute("href",[cljs.core.str.cljs$core$IFn$_invoke$arity$1(path_match_21500),"?r=",cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.core.rand.cljs$core$IFn$_invoke$arity$0())].join(''));

return G__21227;
})();
(node_21499.shadow$old = true);

(new_link_21501.onload = ((function (seq__21184_21442,chunk__21188_21443,count__21189_21444,i__21190_21445,seq__21016,chunk__21018,count__21019,i__21020,new_link_21501,path_match_21500,node_21499,seq__21184_21493__$1,temp__5804__auto___21492__$1,path,seq__21016__$1,temp__5804__auto__,map__21015,map__21015__$1,msg,updates,reload_info){
return (function (e){
var seq__21228_21502 = cljs.core.seq(cljs.core.get_in.cljs$core$IFn$_invoke$arity$2(msg,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"reload-info","reload-info",1648088086),new cljs.core.Keyword(null,"asset-load","asset-load",-1925902322)], null)));
var chunk__21230_21503 = null;
var count__21231_21504 = (0);
var i__21232_21505 = (0);
while(true){
if((i__21232_21505 < count__21231_21504)){
var map__21236_21506 = chunk__21230_21503.cljs$core$IIndexed$_nth$arity$2(null,i__21232_21505);
var map__21236_21507__$1 = cljs.core.__destructure_map(map__21236_21506);
var task_21508 = map__21236_21507__$1;
var fn_str_21509 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21236_21507__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_21510 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21236_21507__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_21511 = goog.getObjectByName(fn_str_21509,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_21510)].join(''));

(fn_obj_21511.cljs$core$IFn$_invoke$arity$2 ? fn_obj_21511.cljs$core$IFn$_invoke$arity$2(path,new_link_21501) : fn_obj_21511.call(null,path,new_link_21501));


var G__21512 = seq__21228_21502;
var G__21513 = chunk__21230_21503;
var G__21514 = count__21231_21504;
var G__21515 = (i__21232_21505 + (1));
seq__21228_21502 = G__21512;
chunk__21230_21503 = G__21513;
count__21231_21504 = G__21514;
i__21232_21505 = G__21515;
continue;
} else {
var temp__5804__auto___21516__$2 = cljs.core.seq(seq__21228_21502);
if(temp__5804__auto___21516__$2){
var seq__21228_21517__$1 = temp__5804__auto___21516__$2;
if(cljs.core.chunked_seq_QMARK_(seq__21228_21517__$1)){
var c__5525__auto___21518 = cljs.core.chunk_first(seq__21228_21517__$1);
var G__21519 = cljs.core.chunk_rest(seq__21228_21517__$1);
var G__21520 = c__5525__auto___21518;
var G__21521 = cljs.core.count(c__5525__auto___21518);
var G__21522 = (0);
seq__21228_21502 = G__21519;
chunk__21230_21503 = G__21520;
count__21231_21504 = G__21521;
i__21232_21505 = G__21522;
continue;
} else {
var map__21237_21523 = cljs.core.first(seq__21228_21517__$1);
var map__21237_21524__$1 = cljs.core.__destructure_map(map__21237_21523);
var task_21525 = map__21237_21524__$1;
var fn_str_21526 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21237_21524__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_21527 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21237_21524__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_21528 = goog.getObjectByName(fn_str_21526,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_21527)].join(''));

(fn_obj_21528.cljs$core$IFn$_invoke$arity$2 ? fn_obj_21528.cljs$core$IFn$_invoke$arity$2(path,new_link_21501) : fn_obj_21528.call(null,path,new_link_21501));


var G__21529 = cljs.core.next(seq__21228_21517__$1);
var G__21530 = null;
var G__21531 = (0);
var G__21532 = (0);
seq__21228_21502 = G__21529;
chunk__21230_21503 = G__21530;
count__21231_21504 = G__21531;
i__21232_21505 = G__21532;
continue;
}
} else {
}
}
break;
}

return goog.dom.removeNode(node_21499);
});})(seq__21184_21442,chunk__21188_21443,count__21189_21444,i__21190_21445,seq__21016,chunk__21018,count__21019,i__21020,new_link_21501,path_match_21500,node_21499,seq__21184_21493__$1,temp__5804__auto___21492__$1,path,seq__21016__$1,temp__5804__auto__,map__21015,map__21015__$1,msg,updates,reload_info))
);

shadow.cljs.devtools.client.browser.devtools_msg.cljs$core$IFn$_invoke$arity$variadic("load CSS",cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([path_match_21500], 0));

goog.dom.insertSiblingAfter(new_link_21501,node_21499);


var G__21533 = cljs.core.next(seq__21184_21493__$1);
var G__21534 = null;
var G__21535 = (0);
var G__21536 = (0);
seq__21184_21442 = G__21533;
chunk__21188_21443 = G__21534;
count__21189_21444 = G__21535;
i__21190_21445 = G__21536;
continue;
} else {
var G__21537 = cljs.core.next(seq__21184_21493__$1);
var G__21538 = null;
var G__21539 = (0);
var G__21540 = (0);
seq__21184_21442 = G__21537;
chunk__21188_21443 = G__21538;
count__21189_21444 = G__21539;
i__21190_21445 = G__21540;
continue;
}
} else {
var G__21541 = cljs.core.next(seq__21184_21493__$1);
var G__21542 = null;
var G__21543 = (0);
var G__21544 = (0);
seq__21184_21442 = G__21541;
chunk__21188_21443 = G__21542;
count__21189_21444 = G__21543;
i__21190_21445 = G__21544;
continue;
}
}
} else {
}
}
break;
}


var G__21545 = cljs.core.next(seq__21016__$1);
var G__21546 = null;
var G__21547 = (0);
var G__21548 = (0);
seq__21016 = G__21545;
chunk__21018 = G__21546;
count__21019 = G__21547;
i__21020 = G__21548;
continue;
} else {
var G__21549 = cljs.core.next(seq__21016__$1);
var G__21550 = null;
var G__21551 = (0);
var G__21552 = (0);
seq__21016 = G__21549;
chunk__21018 = G__21550;
count__21019 = G__21551;
i__21020 = G__21552;
continue;
}
}
} else {
return null;
}
}
break;
}
});
shadow.cljs.devtools.client.browser.global_eval = (function shadow$cljs$devtools$client$browser$global_eval(js){
if(cljs.core.not_EQ_.cljs$core$IFn$_invoke$arity$2("undefined",typeof(module))){
return eval(js);
} else {
return (0,eval)(js);;
}
});
shadow.cljs.devtools.client.browser.runtime_info = (((typeof SHADOW_CONFIG !== 'undefined'))?shadow.json.to_clj.cljs$core$IFn$_invoke$arity$1(SHADOW_CONFIG):null);
shadow.cljs.devtools.client.browser.client_info = cljs.core.merge.cljs$core$IFn$_invoke$arity$variadic(cljs.core.prim_seq.cljs$core$IFn$_invoke$arity$2([shadow.cljs.devtools.client.browser.runtime_info,new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"host","host",-1558485167),(cljs.core.truth_(goog.global.document)?new cljs.core.Keyword(null,"browser","browser",828191719):new cljs.core.Keyword(null,"browser-worker","browser-worker",1638998282)),new cljs.core.Keyword(null,"user-agent","user-agent",1220426212),[(cljs.core.truth_(goog.userAgent.OPERA)?"Opera":(cljs.core.truth_(goog.userAgent.product.CHROME)?"Chrome":(cljs.core.truth_(goog.userAgent.IE)?"MSIE":(cljs.core.truth_(goog.userAgent.EDGE)?"Edge":(cljs.core.truth_(goog.userAgent.GECKO)?"Firefox":(cljs.core.truth_(goog.userAgent.SAFARI)?"Safari":(cljs.core.truth_(goog.userAgent.WEBKIT)?"Webkit":null)))))))," ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(goog.userAgent.VERSION)," [",cljs.core.str.cljs$core$IFn$_invoke$arity$1(goog.userAgent.PLATFORM),"]"].join(''),new cljs.core.Keyword(null,"dom","dom",-1236537922),(!((goog.global.document == null)))], null)], 0));
if((typeof shadow !== 'undefined') && (typeof shadow.cljs !== 'undefined') && (typeof shadow.cljs.devtools !== 'undefined') && (typeof shadow.cljs.devtools.client !== 'undefined') && (typeof shadow.cljs.devtools.client.browser !== 'undefined') && (typeof shadow.cljs.devtools.client.browser.ws_was_welcome_ref !== 'undefined')){
} else {
shadow.cljs.devtools.client.browser.ws_was_welcome_ref = cljs.core.atom.cljs$core$IFn$_invoke$arity$1(false);
}
if(((shadow.cljs.devtools.client.env.enabled) && ((shadow.cljs.devtools.client.env.worker_client_id > (0))))){
(shadow.cljs.devtools.client.shared.Runtime.prototype.shadow$remote$runtime$api$IEvalJS$ = cljs.core.PROTOCOL_SENTINEL);

(shadow.cljs.devtools.client.shared.Runtime.prototype.shadow$remote$runtime$api$IEvalJS$_js_eval$arity$4 = (function (this$,code,success,fail){
var this$__$1 = this;
try{var G__21239 = shadow.cljs.devtools.client.browser.global_eval(code);
return (success.cljs$core$IFn$_invoke$arity$1 ? success.cljs$core$IFn$_invoke$arity$1(G__21239) : success.call(null,G__21239));
}catch (e21238){var e = e21238;
return (fail.cljs$core$IFn$_invoke$arity$1 ? fail.cljs$core$IFn$_invoke$arity$1(e) : fail.call(null,e));
}}));

(shadow.cljs.devtools.client.shared.Runtime.prototype.shadow$cljs$devtools$client$shared$IHostSpecific$ = cljs.core.PROTOCOL_SENTINEL);

(shadow.cljs.devtools.client.shared.Runtime.prototype.shadow$cljs$devtools$client$shared$IHostSpecific$do_invoke$arity$5 = (function (this$,ns,p__21240,success,fail){
var map__21241 = p__21240;
var map__21241__$1 = cljs.core.__destructure_map(map__21241);
var js = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21241__$1,new cljs.core.Keyword(null,"js","js",1768080579));
var this$__$1 = this;
try{var G__21243 = shadow.cljs.devtools.client.browser.global_eval(js);
return (success.cljs$core$IFn$_invoke$arity$1 ? success.cljs$core$IFn$_invoke$arity$1(G__21243) : success.call(null,G__21243));
}catch (e21242){var e = e21242;
return (fail.cljs$core$IFn$_invoke$arity$1 ? fail.cljs$core$IFn$_invoke$arity$1(e) : fail.call(null,e));
}}));

(shadow.cljs.devtools.client.shared.Runtime.prototype.shadow$cljs$devtools$client$shared$IHostSpecific$do_repl_init$arity$4 = (function (runtime,p__21244,done,error){
var map__21245 = p__21244;
var map__21245__$1 = cljs.core.__destructure_map(map__21245);
var repl_sources = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21245__$1,new cljs.core.Keyword(null,"repl-sources","repl-sources",723867535));
var runtime__$1 = this;
return shadow.cljs.devtools.client.shared.load_sources(runtime__$1,cljs.core.into.cljs$core$IFn$_invoke$arity$2(cljs.core.PersistentVector.EMPTY,cljs.core.remove.cljs$core$IFn$_invoke$arity$2(shadow.cljs.devtools.client.env.src_is_loaded_QMARK_,repl_sources)),(function (sources){
shadow.cljs.devtools.client.browser.do_js_load(sources);

return (done.cljs$core$IFn$_invoke$arity$0 ? done.cljs$core$IFn$_invoke$arity$0() : done.call(null));
}));
}));

(shadow.cljs.devtools.client.shared.Runtime.prototype.shadow$cljs$devtools$client$shared$IHostSpecific$do_repl_require$arity$4 = (function (runtime,p__21246,done,error){
var map__21247 = p__21246;
var map__21247__$1 = cljs.core.__destructure_map(map__21247);
var msg = map__21247__$1;
var sources = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21247__$1,new cljs.core.Keyword(null,"sources","sources",-321166424));
var reload_namespaces = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21247__$1,new cljs.core.Keyword(null,"reload-namespaces","reload-namespaces",250210134));
var js_requires = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21247__$1,new cljs.core.Keyword(null,"js-requires","js-requires",-1311472051));
var runtime__$1 = this;
var sources_to_load = cljs.core.into.cljs$core$IFn$_invoke$arity$2(cljs.core.PersistentVector.EMPTY,cljs.core.remove.cljs$core$IFn$_invoke$arity$2((function (p__21248){
var map__21249 = p__21248;
var map__21249__$1 = cljs.core.__destructure_map(map__21249);
var src = map__21249__$1;
var provides = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21249__$1,new cljs.core.Keyword(null,"provides","provides",-1634397992));
var and__5000__auto__ = shadow.cljs.devtools.client.env.src_is_loaded_QMARK_(src);
if(cljs.core.truth_(and__5000__auto__)){
return cljs.core.not(cljs.core.some(reload_namespaces,provides));
} else {
return and__5000__auto__;
}
}),sources));
if(cljs.core.not(cljs.core.seq(sources_to_load))){
var G__21250 = cljs.core.PersistentVector.EMPTY;
return (done.cljs$core$IFn$_invoke$arity$1 ? done.cljs$core$IFn$_invoke$arity$1(G__21250) : done.call(null,G__21250));
} else {
return shadow.remote.runtime.shared.call.cljs$core$IFn$_invoke$arity$3(runtime__$1,new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"op","op",-1882987955),new cljs.core.Keyword(null,"cljs-load-sources","cljs-load-sources",-1458295962),new cljs.core.Keyword(null,"to","to",192099007),shadow.cljs.devtools.client.env.worker_client_id,new cljs.core.Keyword(null,"sources","sources",-321166424),cljs.core.into.cljs$core$IFn$_invoke$arity$3(cljs.core.PersistentVector.EMPTY,cljs.core.map.cljs$core$IFn$_invoke$arity$1(new cljs.core.Keyword(null,"resource-id","resource-id",-1308422582)),sources_to_load)], null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"cljs-sources","cljs-sources",31121610),(function (p__21251){
var map__21252 = p__21251;
var map__21252__$1 = cljs.core.__destructure_map(map__21252);
var msg__$1 = map__21252__$1;
var sources__$1 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21252__$1,new cljs.core.Keyword(null,"sources","sources",-321166424));
try{shadow.cljs.devtools.client.browser.do_js_load(sources__$1);

if(cljs.core.seq(js_requires)){
shadow.cljs.devtools.client.browser.do_js_requires(js_requires);
} else {
}

return (done.cljs$core$IFn$_invoke$arity$1 ? done.cljs$core$IFn$_invoke$arity$1(sources_to_load) : done.call(null,sources_to_load));
}catch (e21253){var ex = e21253;
return (error.cljs$core$IFn$_invoke$arity$1 ? error.cljs$core$IFn$_invoke$arity$1(ex) : error.call(null,ex));
}})], null));
}
}));

shadow.cljs.devtools.client.shared.add_plugin_BANG_(new cljs.core.Keyword("shadow.cljs.devtools.client.browser","client","shadow.cljs.devtools.client.browser/client",-1461019282),cljs.core.PersistentHashSet.EMPTY,(function (p__21254){
var map__21255 = p__21254;
var map__21255__$1 = cljs.core.__destructure_map(map__21255);
var env = map__21255__$1;
var runtime = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21255__$1,new cljs.core.Keyword(null,"runtime","runtime",-1331573996));
var svc = new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"runtime","runtime",-1331573996),runtime], null);
shadow.remote.runtime.api.add_extension(runtime,new cljs.core.Keyword("shadow.cljs.devtools.client.browser","client","shadow.cljs.devtools.client.browser/client",-1461019282),new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"on-welcome","on-welcome",1895317125),(function (){
cljs.core.reset_BANG_(shadow.cljs.devtools.client.browser.ws_was_welcome_ref,true);

shadow.cljs.devtools.client.hud.connection_error_clear_BANG_();

shadow.cljs.devtools.client.env.patch_goog_BANG_();

return shadow.cljs.devtools.client.browser.devtools_msg(["#",cljs.core.str.cljs$core$IFn$_invoke$arity$1(new cljs.core.Keyword(null,"client-id","client-id",-464622140).cljs$core$IFn$_invoke$arity$1(cljs.core.deref(new cljs.core.Keyword(null,"state-ref","state-ref",2127874952).cljs$core$IFn$_invoke$arity$1(runtime))))," ready!"].join(''));
}),new cljs.core.Keyword(null,"on-disconnect","on-disconnect",-809021814),(function (e){
if(cljs.core.truth_(cljs.core.deref(shadow.cljs.devtools.client.browser.ws_was_welcome_ref))){
shadow.cljs.devtools.client.hud.connection_error("The Websocket connection was closed!");

return cljs.core.reset_BANG_(shadow.cljs.devtools.client.browser.ws_was_welcome_ref,false);
} else {
return null;
}
}),new cljs.core.Keyword(null,"on-reconnect","on-reconnect",1239988702),(function (e){
return shadow.cljs.devtools.client.hud.connection_error("Reconnecting ...");
}),new cljs.core.Keyword(null,"ops","ops",1237330063),new cljs.core.PersistentArrayMap(null, 7, [new cljs.core.Keyword(null,"access-denied","access-denied",959449406),(function (msg){
cljs.core.reset_BANG_(shadow.cljs.devtools.client.browser.ws_was_welcome_ref,false);

return shadow.cljs.devtools.client.hud.connection_error(["Stale Output! Your loaded JS was not produced by the running shadow-cljs instance."," Is the watch for this build running?"].join(''));
}),new cljs.core.Keyword(null,"cljs-asset-update","cljs-asset-update",1224093028),(function (msg){
return shadow.cljs.devtools.client.browser.handle_asset_update(msg);
}),new cljs.core.Keyword(null,"cljs-build-configure","cljs-build-configure",-2089891268),(function (msg){
return null;
}),new cljs.core.Keyword(null,"cljs-build-start","cljs-build-start",-725781241),(function (msg){
shadow.cljs.devtools.client.hud.hud_hide();

shadow.cljs.devtools.client.hud.load_start();

return shadow.cljs.devtools.client.env.run_custom_notify_BANG_(cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(msg,new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"build-start","build-start",-959649480)));
}),new cljs.core.Keyword(null,"cljs-build-complete","cljs-build-complete",273626153),(function (msg){
var msg__$1 = shadow.cljs.devtools.client.env.add_warnings_to_info(msg);
shadow.cljs.devtools.client.hud.connection_error_clear_BANG_();

shadow.cljs.devtools.client.hud.hud_warnings(msg__$1);

shadow.cljs.devtools.client.browser.handle_build_complete(runtime,msg__$1);

return shadow.cljs.devtools.client.env.run_custom_notify_BANG_(cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(msg__$1,new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"build-complete","build-complete",-501868472)));
}),new cljs.core.Keyword(null,"cljs-build-failure","cljs-build-failure",1718154990),(function (msg){
shadow.cljs.devtools.client.hud.load_end();

shadow.cljs.devtools.client.hud.hud_error(msg);

return shadow.cljs.devtools.client.env.run_custom_notify_BANG_(cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(msg,new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"build-failure","build-failure",-2107487466)));
}),new cljs.core.Keyword("shadow.cljs.devtools.client.env","worker-notify","shadow.cljs.devtools.client.env/worker-notify",-1456820670),(function (p__21256){
var map__21257 = p__21256;
var map__21257__$1 = cljs.core.__destructure_map(map__21257);
var event_op = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21257__$1,new cljs.core.Keyword(null,"event-op","event-op",200358057));
var client_id = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21257__$1,new cljs.core.Keyword(null,"client-id","client-id",-464622140));
if(((cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(new cljs.core.Keyword(null,"client-disconnect","client-disconnect",640227957),event_op)) && (cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(client_id,shadow.cljs.devtools.client.env.worker_client_id)))){
shadow.cljs.devtools.client.hud.connection_error_clear_BANG_();

return shadow.cljs.devtools.client.hud.connection_error("The watch for this build was stopped!");
} else {
if(cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(new cljs.core.Keyword(null,"client-connect","client-connect",-1113973888),event_op)){
shadow.cljs.devtools.client.hud.connection_error_clear_BANG_();

return shadow.cljs.devtools.client.hud.connection_error("The watch for this build was restarted. Reload required!");
} else {
return null;
}
}
})], null)], null));

return svc;
}),(function (p__21258){
var map__21259 = p__21258;
var map__21259__$1 = cljs.core.__destructure_map(map__21259);
var svc = map__21259__$1;
var runtime = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__21259__$1,new cljs.core.Keyword(null,"runtime","runtime",-1331573996));
return shadow.remote.runtime.api.del_extension(runtime,new cljs.core.Keyword("shadow.cljs.devtools.client.browser","client","shadow.cljs.devtools.client.browser/client",-1461019282));
}));

shadow.cljs.devtools.client.shared.init_runtime_BANG_(shadow.cljs.devtools.client.browser.client_info,shadow.cljs.devtools.client.websocket.start,shadow.cljs.devtools.client.websocket.send,shadow.cljs.devtools.client.websocket.stop);
} else {
}

//# sourceMappingURL=shadow.cljs.devtools.client.browser.js.map
