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__5755__auto__ = [];
var len__5749__auto___40404 = arguments.length;
var i__5750__auto___40406 = (0);
while(true){
if((i__5750__auto___40406 < len__5749__auto___40404)){
args__5755__auto__.push((arguments[i__5750__auto___40406]));

var G__40407 = (i__5750__auto___40406 + (1));
i__5750__auto___40406 = G__40407;
continue;
} else {
}
break;
}

var argseq__5756__auto__ = ((((1) < args__5755__auto__.length))?(new cljs.core.IndexedSeq(args__5755__auto__.slice((1)),(0),null)):null);
return shadow.cljs.devtools.client.browser.devtools_msg.cljs$core$IFn$_invoke$arity$variadic((arguments[(0)]),argseq__5756__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 (seq39469){
var G__39470 = cljs.core.first(seq39469);
var seq39469__$1 = cljs.core.next(seq39469);
var self__5734__auto__ = this;
return self__5734__auto__.cljs$core$IFn$_invoke$arity$variadic(G__39470,seq39469__$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__39485 = cljs.core.seq(sources);
var chunk__39486 = null;
var count__39487 = (0);
var i__39488 = (0);
while(true){
if((i__39488 < count__39487)){
var map__39512 = chunk__39486.cljs$core$IIndexed$_nth$arity$2(null,i__39488);
var map__39512__$1 = cljs.core.__destructure_map(map__39512);
var src = map__39512__$1;
var resource_id = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39512__$1,new cljs.core.Keyword(null,"resource-id","resource-id",-1308422582));
var output_name = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39512__$1,new cljs.core.Keyword(null,"output-name","output-name",-1769107767));
var resource_name = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39512__$1,new cljs.core.Keyword(null,"resource-name","resource-name",2001617100));
var js = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39512__$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 (e39519){var e_40417 = e39519;
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_40417);
} 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_40417.message)].join('')));
}

var G__40419 = seq__39485;
var G__40420 = chunk__39486;
var G__40421 = count__39487;
var G__40422 = (i__39488 + (1));
seq__39485 = G__40419;
chunk__39486 = G__40420;
count__39487 = G__40421;
i__39488 = G__40422;
continue;
} else {
var temp__5804__auto__ = cljs.core.seq(seq__39485);
if(temp__5804__auto__){
var seq__39485__$1 = temp__5804__auto__;
if(cljs.core.chunked_seq_QMARK_(seq__39485__$1)){
var c__5548__auto__ = cljs.core.chunk_first(seq__39485__$1);
var G__40423 = cljs.core.chunk_rest(seq__39485__$1);
var G__40424 = c__5548__auto__;
var G__40425 = cljs.core.count(c__5548__auto__);
var G__40426 = (0);
seq__39485 = G__40423;
chunk__39486 = G__40424;
count__39487 = G__40425;
i__39488 = G__40426;
continue;
} else {
var map__39524 = cljs.core.first(seq__39485__$1);
var map__39524__$1 = cljs.core.__destructure_map(map__39524);
var src = map__39524__$1;
var resource_id = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39524__$1,new cljs.core.Keyword(null,"resource-id","resource-id",-1308422582));
var output_name = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39524__$1,new cljs.core.Keyword(null,"output-name","output-name",-1769107767));
var resource_name = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39524__$1,new cljs.core.Keyword(null,"resource-name","resource-name",2001617100));
var js = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39524__$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 (e39528){var e_40428 = e39528;
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_40428);
} 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_40428.message)].join('')));
}

var G__40429 = cljs.core.next(seq__39485__$1);
var G__40430 = null;
var G__40431 = (0);
var G__40432 = (0);
seq__39485 = G__40429;
chunk__39486 = G__40430;
count__39487 = G__40431;
i__39488 = G__40432;
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__39541 = cljs.core.seq(js_requires);
var chunk__39542 = null;
var count__39543 = (0);
var i__39544 = (0);
while(true){
if((i__39544 < count__39543)){
var js_ns = chunk__39542.cljs$core$IIndexed$_nth$arity$2(null,i__39544);
var require_str_40435 = ["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_40435);


var G__40436 = seq__39541;
var G__40437 = chunk__39542;
var G__40438 = count__39543;
var G__40439 = (i__39544 + (1));
seq__39541 = G__40436;
chunk__39542 = G__40437;
count__39543 = G__40438;
i__39544 = G__40439;
continue;
} else {
var temp__5804__auto__ = cljs.core.seq(seq__39541);
if(temp__5804__auto__){
var seq__39541__$1 = temp__5804__auto__;
if(cljs.core.chunked_seq_QMARK_(seq__39541__$1)){
var c__5548__auto__ = cljs.core.chunk_first(seq__39541__$1);
var G__40440 = cljs.core.chunk_rest(seq__39541__$1);
var G__40441 = c__5548__auto__;
var G__40442 = cljs.core.count(c__5548__auto__);
var G__40443 = (0);
seq__39541 = G__40440;
chunk__39542 = G__40441;
count__39543 = G__40442;
i__39544 = G__40443;
continue;
} else {
var js_ns = cljs.core.first(seq__39541__$1);
var require_str_40445 = ["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_40445);


var G__40449 = cljs.core.next(seq__39541__$1);
var G__40450 = null;
var G__40451 = (0);
var G__40452 = (0);
seq__39541 = G__40449;
chunk__39542 = G__40450;
count__39543 = G__40451;
i__39544 = G__40452;
continue;
}
} else {
return null;
}
}
break;
}
});
shadow.cljs.devtools.client.browser.handle_build_complete = (function shadow$cljs$devtools$client$browser$handle_build_complete(runtime,p__39555){
var map__39557 = p__39555;
var map__39557__$1 = cljs.core.__destructure_map(map__39557);
var msg = map__39557__$1;
var info = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39557__$1,new cljs.core.Keyword(null,"info","info",-317069002));
var reload_info = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39557__$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__5503__auto__ = (function shadow$cljs$devtools$client$browser$handle_build_complete_$_iter__39560(s__39561){
return (new cljs.core.LazySeq(null,(function (){
var s__39561__$1 = s__39561;
while(true){
var temp__5804__auto__ = cljs.core.seq(s__39561__$1);
if(temp__5804__auto__){
var xs__6360__auto__ = temp__5804__auto__;
var map__39567 = cljs.core.first(xs__6360__auto__);
var map__39567__$1 = cljs.core.__destructure_map(map__39567);
var src = map__39567__$1;
var resource_name = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39567__$1,new cljs.core.Keyword(null,"resource-name","resource-name",2001617100));
var warnings = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39567__$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__5499__auto__ = ((function (s__39561__$1,map__39567,map__39567__$1,src,resource_name,warnings,xs__6360__auto__,temp__5804__auto__,map__39557,map__39557__$1,msg,info,reload_info){
return (function shadow$cljs$devtools$client$browser$handle_build_complete_$_iter__39560_$_iter__39562(s__39563){
return (new cljs.core.LazySeq(null,((function (s__39561__$1,map__39567,map__39567__$1,src,resource_name,warnings,xs__6360__auto__,temp__5804__auto__,map__39557,map__39557__$1,msg,info,reload_info){
return (function (){
var s__39563__$1 = s__39563;
while(true){
var temp__5804__auto____$1 = cljs.core.seq(s__39563__$1);
if(temp__5804__auto____$1){
var s__39563__$2 = temp__5804__auto____$1;
if(cljs.core.chunked_seq_QMARK_(s__39563__$2)){
var c__5501__auto__ = cljs.core.chunk_first(s__39563__$2);
var size__5502__auto__ = cljs.core.count(c__5501__auto__);
var b__39565 = cljs.core.chunk_buffer(size__5502__auto__);
if((function (){var i__39564 = (0);
while(true){
if((i__39564 < size__5502__auto__)){
var warning = cljs.core._nth(c__5501__auto__,i__39564);
cljs.core.chunk_append(b__39565,cljs.core.assoc.cljs$core$IFn$_invoke$arity$3(warning,new cljs.core.Keyword(null,"resource-name","resource-name",2001617100),resource_name));

var G__40457 = (i__39564 + (1));
i__39564 = G__40457;
continue;
} else {
return true;
}
break;
}
})()){
return cljs.core.chunk_cons(cljs.core.chunk(b__39565),shadow$cljs$devtools$client$browser$handle_build_complete_$_iter__39560_$_iter__39562(cljs.core.chunk_rest(s__39563__$2)));
} else {
return cljs.core.chunk_cons(cljs.core.chunk(b__39565),null);
}
} else {
var warning = cljs.core.first(s__39563__$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__39560_$_iter__39562(cljs.core.rest(s__39563__$2)));
}
} else {
return null;
}
break;
}
});})(s__39561__$1,map__39567,map__39567__$1,src,resource_name,warnings,xs__6360__auto__,temp__5804__auto__,map__39557,map__39557__$1,msg,info,reload_info))
,null,null));
});})(s__39561__$1,map__39567,map__39567__$1,src,resource_name,warnings,xs__6360__auto__,temp__5804__auto__,map__39557,map__39557__$1,msg,info,reload_info))
;
var fs__5500__auto__ = cljs.core.seq(iterys__5499__auto__(warnings));
if(fs__5500__auto__){
return cljs.core.concat.cljs$core$IFn$_invoke$arity$2(fs__5500__auto__,shadow$cljs$devtools$client$browser$handle_build_complete_$_iter__39560(cljs.core.rest(s__39561__$1)));
} else {
var G__40459 = cljs.core.rest(s__39561__$1);
s__39561__$1 = G__40459;
continue;
}
} else {
var G__40461 = cljs.core.rest(s__39561__$1);
s__39561__$1 = G__40461;
continue;
}
} else {
return null;
}
break;
}
}),null,null));
});
return iter__5503__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__39592_40462 = cljs.core.seq(warnings);
var chunk__39593_40463 = null;
var count__39594_40464 = (0);
var i__39595_40465 = (0);
while(true){
if((i__39595_40465 < count__39594_40464)){
var map__39624_40466 = chunk__39593_40463.cljs$core$IIndexed$_nth$arity$2(null,i__39595_40465);
var map__39624_40467__$1 = cljs.core.__destructure_map(map__39624_40466);
var w_40468 = map__39624_40467__$1;
var msg_40469__$1 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39624_40467__$1,new cljs.core.Keyword(null,"msg","msg",-1386103444));
var line_40470 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39624_40467__$1,new cljs.core.Keyword(null,"line","line",212345235));
var column_40471 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39624_40467__$1,new cljs.core.Keyword(null,"column","column",2078222095));
var resource_name_40472 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39624_40467__$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_40472)," at [",cljs.core.str.cljs$core$IFn$_invoke$arity$1(line_40470),":",cljs.core.str.cljs$core$IFn$_invoke$arity$1(column_40471),"]\n\t",cljs.core.str.cljs$core$IFn$_invoke$arity$1(msg_40469__$1)].join(''));


var G__40473 = seq__39592_40462;
var G__40474 = chunk__39593_40463;
var G__40475 = count__39594_40464;
var G__40476 = (i__39595_40465 + (1));
seq__39592_40462 = G__40473;
chunk__39593_40463 = G__40474;
count__39594_40464 = G__40475;
i__39595_40465 = G__40476;
continue;
} else {
var temp__5804__auto___40477 = cljs.core.seq(seq__39592_40462);
if(temp__5804__auto___40477){
var seq__39592_40478__$1 = temp__5804__auto___40477;
if(cljs.core.chunked_seq_QMARK_(seq__39592_40478__$1)){
var c__5548__auto___40479 = cljs.core.chunk_first(seq__39592_40478__$1);
var G__40480 = cljs.core.chunk_rest(seq__39592_40478__$1);
var G__40481 = c__5548__auto___40479;
var G__40482 = cljs.core.count(c__5548__auto___40479);
var G__40483 = (0);
seq__39592_40462 = G__40480;
chunk__39593_40463 = G__40481;
count__39594_40464 = G__40482;
i__39595_40465 = G__40483;
continue;
} else {
var map__39641_40484 = cljs.core.first(seq__39592_40478__$1);
var map__39641_40485__$1 = cljs.core.__destructure_map(map__39641_40484);
var w_40486 = map__39641_40485__$1;
var msg_40487__$1 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39641_40485__$1,new cljs.core.Keyword(null,"msg","msg",-1386103444));
var line_40488 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39641_40485__$1,new cljs.core.Keyword(null,"line","line",212345235));
var column_40489 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39641_40485__$1,new cljs.core.Keyword(null,"column","column",2078222095));
var resource_name_40490 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39641_40485__$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_40490)," at [",cljs.core.str.cljs$core$IFn$_invoke$arity$1(line_40488),":",cljs.core.str.cljs$core$IFn$_invoke$arity$1(column_40489),"]\n\t",cljs.core.str.cljs$core$IFn$_invoke$arity$1(msg_40487__$1)].join(''));


var G__40491 = cljs.core.next(seq__39592_40478__$1);
var G__40492 = null;
var G__40493 = (0);
var G__40494 = (0);
seq__39592_40462 = G__40491;
chunk__39593_40463 = G__40492;
count__39594_40464 = G__40493;
i__39595_40465 = G__40494;
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__39552_SHARP_){
return shadow.cljs.devtools.client.browser.do_js_reload(msg,p1__39552_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__5023__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__5023__auto__){
var and__5023__auto____$1 = cljs.core._EQ_.cljs$core$IFn$_invoke$arity$2(node_abs,new$);
if(and__5023__auto____$1){
return cljs.core.str.cljs$core$IFn$_invoke$arity$1((function (){var G__39658 = node_uri;
G__39658.setQuery(null);

G__39658.setPath(new$);

return G__39658;
})());
} else {
return and__5023__auto____$1;
}
} else {
return and__5023__auto__;
}
}
});
shadow.cljs.devtools.client.browser.handle_asset_update = (function shadow$cljs$devtools$client$browser$handle_asset_update(p__39669){
var map__39670 = p__39669;
var map__39670__$1 = cljs.core.__destructure_map(map__39670);
var msg = map__39670__$1;
var updates = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39670__$1,new cljs.core.Keyword(null,"updates","updates",2013983452));
var reload_info = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__39670__$1,new cljs.core.Keyword(null,"reload-info","reload-info",1648088086));
var seq__39673 = cljs.core.seq(updates);
var chunk__39675 = null;
var count__39676 = (0);
var i__39677 = (0);
while(true){
if((i__39677 < count__39676)){
var path = chunk__39675.cljs$core$IIndexed$_nth$arity$2(null,i__39677);
if(clojure.string.ends_with_QMARK_(path,"css")){
var seq__40000_40498 = cljs.core.seq(cljs.core.array_seq.cljs$core$IFn$_invoke$arity$1(document.querySelectorAll("link[rel=\"stylesheet\"]")));
var chunk__40004_40499 = null;
var count__40005_40500 = (0);
var i__40006_40501 = (0);
while(true){
if((i__40006_40501 < count__40005_40500)){
var node_40503 = chunk__40004_40499.cljs$core$IIndexed$_nth$arity$2(null,i__40006_40501);
if(cljs.core.not(node_40503.shadow$old)){
var path_match_40504 = shadow.cljs.devtools.client.browser.match_paths(node_40503.getAttribute("href"),path);
if(cljs.core.truth_(path_match_40504)){
var new_link_40505 = (function (){var G__40055 = node_40503.cloneNode(true);
G__40055.setAttribute("href",[cljs.core.str.cljs$core$IFn$_invoke$arity$1(path_match_40504),"?r=",cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.core.rand.cljs$core$IFn$_invoke$arity$0())].join(''));

return G__40055;
})();
(node_40503.shadow$old = true);

(new_link_40505.onload = ((function (seq__40000_40498,chunk__40004_40499,count__40005_40500,i__40006_40501,seq__39673,chunk__39675,count__39676,i__39677,new_link_40505,path_match_40504,node_40503,path,map__39670,map__39670__$1,msg,updates,reload_info){
return (function (e){
var seq__40057_40506 = 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__40059_40507 = null;
var count__40060_40508 = (0);
var i__40061_40509 = (0);
while(true){
if((i__40061_40509 < count__40060_40508)){
var map__40073_40511 = chunk__40059_40507.cljs$core$IIndexed$_nth$arity$2(null,i__40061_40509);
var map__40073_40512__$1 = cljs.core.__destructure_map(map__40073_40511);
var task_40513 = map__40073_40512__$1;
var fn_str_40514 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40073_40512__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_40515 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40073_40512__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_40517 = goog.getObjectByName(fn_str_40514,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_40515)].join(''));

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


var G__40518 = seq__40057_40506;
var G__40519 = chunk__40059_40507;
var G__40520 = count__40060_40508;
var G__40521 = (i__40061_40509 + (1));
seq__40057_40506 = G__40518;
chunk__40059_40507 = G__40519;
count__40060_40508 = G__40520;
i__40061_40509 = G__40521;
continue;
} else {
var temp__5804__auto___40522 = cljs.core.seq(seq__40057_40506);
if(temp__5804__auto___40522){
var seq__40057_40523__$1 = temp__5804__auto___40522;
if(cljs.core.chunked_seq_QMARK_(seq__40057_40523__$1)){
var c__5548__auto___40524 = cljs.core.chunk_first(seq__40057_40523__$1);
var G__40525 = cljs.core.chunk_rest(seq__40057_40523__$1);
var G__40526 = c__5548__auto___40524;
var G__40527 = cljs.core.count(c__5548__auto___40524);
var G__40528 = (0);
seq__40057_40506 = G__40525;
chunk__40059_40507 = G__40526;
count__40060_40508 = G__40527;
i__40061_40509 = G__40528;
continue;
} else {
var map__40074_40529 = cljs.core.first(seq__40057_40523__$1);
var map__40074_40530__$1 = cljs.core.__destructure_map(map__40074_40529);
var task_40531 = map__40074_40530__$1;
var fn_str_40532 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40074_40530__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_40533 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40074_40530__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_40534 = goog.getObjectByName(fn_str_40532,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_40533)].join(''));

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


var G__40537 = cljs.core.next(seq__40057_40523__$1);
var G__40538 = null;
var G__40539 = (0);
var G__40540 = (0);
seq__40057_40506 = G__40537;
chunk__40059_40507 = G__40538;
count__40060_40508 = G__40539;
i__40061_40509 = G__40540;
continue;
}
} else {
}
}
break;
}

return goog.dom.removeNode(node_40503);
});})(seq__40000_40498,chunk__40004_40499,count__40005_40500,i__40006_40501,seq__39673,chunk__39675,count__39676,i__39677,new_link_40505,path_match_40504,node_40503,path,map__39670,map__39670__$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_40504], 0));

goog.dom.insertSiblingAfter(new_link_40505,node_40503);


var G__40542 = seq__40000_40498;
var G__40543 = chunk__40004_40499;
var G__40544 = count__40005_40500;
var G__40545 = (i__40006_40501 + (1));
seq__40000_40498 = G__40542;
chunk__40004_40499 = G__40543;
count__40005_40500 = G__40544;
i__40006_40501 = G__40545;
continue;
} else {
var G__40547 = seq__40000_40498;
var G__40548 = chunk__40004_40499;
var G__40549 = count__40005_40500;
var G__40550 = (i__40006_40501 + (1));
seq__40000_40498 = G__40547;
chunk__40004_40499 = G__40548;
count__40005_40500 = G__40549;
i__40006_40501 = G__40550;
continue;
}
} else {
var G__40551 = seq__40000_40498;
var G__40552 = chunk__40004_40499;
var G__40553 = count__40005_40500;
var G__40554 = (i__40006_40501 + (1));
seq__40000_40498 = G__40551;
chunk__40004_40499 = G__40552;
count__40005_40500 = G__40553;
i__40006_40501 = G__40554;
continue;
}
} else {
var temp__5804__auto___40555 = cljs.core.seq(seq__40000_40498);
if(temp__5804__auto___40555){
var seq__40000_40556__$1 = temp__5804__auto___40555;
if(cljs.core.chunked_seq_QMARK_(seq__40000_40556__$1)){
var c__5548__auto___40557 = cljs.core.chunk_first(seq__40000_40556__$1);
var G__40559 = cljs.core.chunk_rest(seq__40000_40556__$1);
var G__40560 = c__5548__auto___40557;
var G__40561 = cljs.core.count(c__5548__auto___40557);
var G__40562 = (0);
seq__40000_40498 = G__40559;
chunk__40004_40499 = G__40560;
count__40005_40500 = G__40561;
i__40006_40501 = G__40562;
continue;
} else {
var node_40563 = cljs.core.first(seq__40000_40556__$1);
if(cljs.core.not(node_40563.shadow$old)){
var path_match_40564 = shadow.cljs.devtools.client.browser.match_paths(node_40563.getAttribute("href"),path);
if(cljs.core.truth_(path_match_40564)){
var new_link_40565 = (function (){var G__40076 = node_40563.cloneNode(true);
G__40076.setAttribute("href",[cljs.core.str.cljs$core$IFn$_invoke$arity$1(path_match_40564),"?r=",cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.core.rand.cljs$core$IFn$_invoke$arity$0())].join(''));

return G__40076;
})();
(node_40563.shadow$old = true);

(new_link_40565.onload = ((function (seq__40000_40498,chunk__40004_40499,count__40005_40500,i__40006_40501,seq__39673,chunk__39675,count__39676,i__39677,new_link_40565,path_match_40564,node_40563,seq__40000_40556__$1,temp__5804__auto___40555,path,map__39670,map__39670__$1,msg,updates,reload_info){
return (function (e){
var seq__40078_40567 = 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__40080_40568 = null;
var count__40081_40569 = (0);
var i__40082_40570 = (0);
while(true){
if((i__40082_40570 < count__40081_40569)){
var map__40090_40576 = chunk__40080_40568.cljs$core$IIndexed$_nth$arity$2(null,i__40082_40570);
var map__40090_40577__$1 = cljs.core.__destructure_map(map__40090_40576);
var task_40578 = map__40090_40577__$1;
var fn_str_40579 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40090_40577__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_40580 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40090_40577__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_40581 = goog.getObjectByName(fn_str_40579,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_40580)].join(''));

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


var G__40582 = seq__40078_40567;
var G__40583 = chunk__40080_40568;
var G__40584 = count__40081_40569;
var G__40585 = (i__40082_40570 + (1));
seq__40078_40567 = G__40582;
chunk__40080_40568 = G__40583;
count__40081_40569 = G__40584;
i__40082_40570 = G__40585;
continue;
} else {
var temp__5804__auto___40586__$1 = cljs.core.seq(seq__40078_40567);
if(temp__5804__auto___40586__$1){
var seq__40078_40587__$1 = temp__5804__auto___40586__$1;
if(cljs.core.chunked_seq_QMARK_(seq__40078_40587__$1)){
var c__5548__auto___40589 = cljs.core.chunk_first(seq__40078_40587__$1);
var G__40590 = cljs.core.chunk_rest(seq__40078_40587__$1);
var G__40591 = c__5548__auto___40589;
var G__40592 = cljs.core.count(c__5548__auto___40589);
var G__40593 = (0);
seq__40078_40567 = G__40590;
chunk__40080_40568 = G__40591;
count__40081_40569 = G__40592;
i__40082_40570 = G__40593;
continue;
} else {
var map__40091_40594 = cljs.core.first(seq__40078_40587__$1);
var map__40091_40595__$1 = cljs.core.__destructure_map(map__40091_40594);
var task_40596 = map__40091_40595__$1;
var fn_str_40597 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40091_40595__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_40598 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40091_40595__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_40599 = goog.getObjectByName(fn_str_40597,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_40598)].join(''));

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


var G__40600 = cljs.core.next(seq__40078_40587__$1);
var G__40601 = null;
var G__40602 = (0);
var G__40603 = (0);
seq__40078_40567 = G__40600;
chunk__40080_40568 = G__40601;
count__40081_40569 = G__40602;
i__40082_40570 = G__40603;
continue;
}
} else {
}
}
break;
}

return goog.dom.removeNode(node_40563);
});})(seq__40000_40498,chunk__40004_40499,count__40005_40500,i__40006_40501,seq__39673,chunk__39675,count__39676,i__39677,new_link_40565,path_match_40564,node_40563,seq__40000_40556__$1,temp__5804__auto___40555,path,map__39670,map__39670__$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_40564], 0));

goog.dom.insertSiblingAfter(new_link_40565,node_40563);


var G__40604 = cljs.core.next(seq__40000_40556__$1);
var G__40605 = null;
var G__40606 = (0);
var G__40607 = (0);
seq__40000_40498 = G__40604;
chunk__40004_40499 = G__40605;
count__40005_40500 = G__40606;
i__40006_40501 = G__40607;
continue;
} else {
var G__40608 = cljs.core.next(seq__40000_40556__$1);
var G__40609 = null;
var G__40610 = (0);
var G__40611 = (0);
seq__40000_40498 = G__40608;
chunk__40004_40499 = G__40609;
count__40005_40500 = G__40610;
i__40006_40501 = G__40611;
continue;
}
} else {
var G__40612 = cljs.core.next(seq__40000_40556__$1);
var G__40613 = null;
var G__40614 = (0);
var G__40615 = (0);
seq__40000_40498 = G__40612;
chunk__40004_40499 = G__40613;
count__40005_40500 = G__40614;
i__40006_40501 = G__40615;
continue;
}
}
} else {
}
}
break;
}


var G__40617 = seq__39673;
var G__40618 = chunk__39675;
var G__40619 = count__39676;
var G__40620 = (i__39677 + (1));
seq__39673 = G__40617;
chunk__39675 = G__40618;
count__39676 = G__40619;
i__39677 = G__40620;
continue;
} else {
var G__40622 = seq__39673;
var G__40623 = chunk__39675;
var G__40624 = count__39676;
var G__40625 = (i__39677 + (1));
seq__39673 = G__40622;
chunk__39675 = G__40623;
count__39676 = G__40624;
i__39677 = G__40625;
continue;
}
} else {
var temp__5804__auto__ = cljs.core.seq(seq__39673);
if(temp__5804__auto__){
var seq__39673__$1 = temp__5804__auto__;
if(cljs.core.chunked_seq_QMARK_(seq__39673__$1)){
var c__5548__auto__ = cljs.core.chunk_first(seq__39673__$1);
var G__40628 = cljs.core.chunk_rest(seq__39673__$1);
var G__40629 = c__5548__auto__;
var G__40630 = cljs.core.count(c__5548__auto__);
var G__40631 = (0);
seq__39673 = G__40628;
chunk__39675 = G__40629;
count__39676 = G__40630;
i__39677 = G__40631;
continue;
} else {
var path = cljs.core.first(seq__39673__$1);
if(clojure.string.ends_with_QMARK_(path,"css")){
var seq__40098_40632 = cljs.core.seq(cljs.core.array_seq.cljs$core$IFn$_invoke$arity$1(document.querySelectorAll("link[rel=\"stylesheet\"]")));
var chunk__40102_40633 = null;
var count__40103_40634 = (0);
var i__40104_40635 = (0);
while(true){
if((i__40104_40635 < count__40103_40634)){
var node_40637 = chunk__40102_40633.cljs$core$IIndexed$_nth$arity$2(null,i__40104_40635);
if(cljs.core.not(node_40637.shadow$old)){
var path_match_40638 = shadow.cljs.devtools.client.browser.match_paths(node_40637.getAttribute("href"),path);
if(cljs.core.truth_(path_match_40638)){
var new_link_40639 = (function (){var G__40176 = node_40637.cloneNode(true);
G__40176.setAttribute("href",[cljs.core.str.cljs$core$IFn$_invoke$arity$1(path_match_40638),"?r=",cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.core.rand.cljs$core$IFn$_invoke$arity$0())].join(''));

return G__40176;
})();
(node_40637.shadow$old = true);

(new_link_40639.onload = ((function (seq__40098_40632,chunk__40102_40633,count__40103_40634,i__40104_40635,seq__39673,chunk__39675,count__39676,i__39677,new_link_40639,path_match_40638,node_40637,path,seq__39673__$1,temp__5804__auto__,map__39670,map__39670__$1,msg,updates,reload_info){
return (function (e){
var seq__40180_40641 = 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__40182_40642 = null;
var count__40183_40643 = (0);
var i__40184_40644 = (0);
while(true){
if((i__40184_40644 < count__40183_40643)){
var map__40194_40646 = chunk__40182_40642.cljs$core$IIndexed$_nth$arity$2(null,i__40184_40644);
var map__40194_40647__$1 = cljs.core.__destructure_map(map__40194_40646);
var task_40648 = map__40194_40647__$1;
var fn_str_40649 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40194_40647__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_40650 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40194_40647__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_40651 = goog.getObjectByName(fn_str_40649,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_40650)].join(''));

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


var G__40652 = seq__40180_40641;
var G__40653 = chunk__40182_40642;
var G__40654 = count__40183_40643;
var G__40655 = (i__40184_40644 + (1));
seq__40180_40641 = G__40652;
chunk__40182_40642 = G__40653;
count__40183_40643 = G__40654;
i__40184_40644 = G__40655;
continue;
} else {
var temp__5804__auto___40657__$1 = cljs.core.seq(seq__40180_40641);
if(temp__5804__auto___40657__$1){
var seq__40180_40658__$1 = temp__5804__auto___40657__$1;
if(cljs.core.chunked_seq_QMARK_(seq__40180_40658__$1)){
var c__5548__auto___40659 = cljs.core.chunk_first(seq__40180_40658__$1);
var G__40660 = cljs.core.chunk_rest(seq__40180_40658__$1);
var G__40661 = c__5548__auto___40659;
var G__40662 = cljs.core.count(c__5548__auto___40659);
var G__40663 = (0);
seq__40180_40641 = G__40660;
chunk__40182_40642 = G__40661;
count__40183_40643 = G__40662;
i__40184_40644 = G__40663;
continue;
} else {
var map__40198_40664 = cljs.core.first(seq__40180_40658__$1);
var map__40198_40665__$1 = cljs.core.__destructure_map(map__40198_40664);
var task_40666 = map__40198_40665__$1;
var fn_str_40667 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40198_40665__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_40668 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40198_40665__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_40671 = goog.getObjectByName(fn_str_40667,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_40668)].join(''));

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


var G__40674 = cljs.core.next(seq__40180_40658__$1);
var G__40675 = null;
var G__40676 = (0);
var G__40677 = (0);
seq__40180_40641 = G__40674;
chunk__40182_40642 = G__40675;
count__40183_40643 = G__40676;
i__40184_40644 = G__40677;
continue;
}
} else {
}
}
break;
}

return goog.dom.removeNode(node_40637);
});})(seq__40098_40632,chunk__40102_40633,count__40103_40634,i__40104_40635,seq__39673,chunk__39675,count__39676,i__39677,new_link_40639,path_match_40638,node_40637,path,seq__39673__$1,temp__5804__auto__,map__39670,map__39670__$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_40638], 0));

goog.dom.insertSiblingAfter(new_link_40639,node_40637);


var G__40678 = seq__40098_40632;
var G__40679 = chunk__40102_40633;
var G__40680 = count__40103_40634;
var G__40681 = (i__40104_40635 + (1));
seq__40098_40632 = G__40678;
chunk__40102_40633 = G__40679;
count__40103_40634 = G__40680;
i__40104_40635 = G__40681;
continue;
} else {
var G__40682 = seq__40098_40632;
var G__40683 = chunk__40102_40633;
var G__40684 = count__40103_40634;
var G__40685 = (i__40104_40635 + (1));
seq__40098_40632 = G__40682;
chunk__40102_40633 = G__40683;
count__40103_40634 = G__40684;
i__40104_40635 = G__40685;
continue;
}
} else {
var G__40686 = seq__40098_40632;
var G__40687 = chunk__40102_40633;
var G__40688 = count__40103_40634;
var G__40689 = (i__40104_40635 + (1));
seq__40098_40632 = G__40686;
chunk__40102_40633 = G__40687;
count__40103_40634 = G__40688;
i__40104_40635 = G__40689;
continue;
}
} else {
var temp__5804__auto___40690__$1 = cljs.core.seq(seq__40098_40632);
if(temp__5804__auto___40690__$1){
var seq__40098_40691__$1 = temp__5804__auto___40690__$1;
if(cljs.core.chunked_seq_QMARK_(seq__40098_40691__$1)){
var c__5548__auto___40692 = cljs.core.chunk_first(seq__40098_40691__$1);
var G__40693 = cljs.core.chunk_rest(seq__40098_40691__$1);
var G__40694 = c__5548__auto___40692;
var G__40695 = cljs.core.count(c__5548__auto___40692);
var G__40696 = (0);
seq__40098_40632 = G__40693;
chunk__40102_40633 = G__40694;
count__40103_40634 = G__40695;
i__40104_40635 = G__40696;
continue;
} else {
var node_40698 = cljs.core.first(seq__40098_40691__$1);
if(cljs.core.not(node_40698.shadow$old)){
var path_match_40703 = shadow.cljs.devtools.client.browser.match_paths(node_40698.getAttribute("href"),path);
if(cljs.core.truth_(path_match_40703)){
var new_link_40704 = (function (){var G__40206 = node_40698.cloneNode(true);
G__40206.setAttribute("href",[cljs.core.str.cljs$core$IFn$_invoke$arity$1(path_match_40703),"?r=",cljs.core.str.cljs$core$IFn$_invoke$arity$1(cljs.core.rand.cljs$core$IFn$_invoke$arity$0())].join(''));

return G__40206;
})();
(node_40698.shadow$old = true);

(new_link_40704.onload = ((function (seq__40098_40632,chunk__40102_40633,count__40103_40634,i__40104_40635,seq__39673,chunk__39675,count__39676,i__39677,new_link_40704,path_match_40703,node_40698,seq__40098_40691__$1,temp__5804__auto___40690__$1,path,seq__39673__$1,temp__5804__auto__,map__39670,map__39670__$1,msg,updates,reload_info){
return (function (e){
var seq__40207_40705 = 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__40209_40706 = null;
var count__40210_40707 = (0);
var i__40211_40708 = (0);
while(true){
if((i__40211_40708 < count__40210_40707)){
var map__40221_40709 = chunk__40209_40706.cljs$core$IIndexed$_nth$arity$2(null,i__40211_40708);
var map__40221_40710__$1 = cljs.core.__destructure_map(map__40221_40709);
var task_40711 = map__40221_40710__$1;
var fn_str_40712 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40221_40710__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_40713 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40221_40710__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_40714 = goog.getObjectByName(fn_str_40712,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_40713)].join(''));

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


var G__40715 = seq__40207_40705;
var G__40716 = chunk__40209_40706;
var G__40717 = count__40210_40707;
var G__40718 = (i__40211_40708 + (1));
seq__40207_40705 = G__40715;
chunk__40209_40706 = G__40716;
count__40210_40707 = G__40717;
i__40211_40708 = G__40718;
continue;
} else {
var temp__5804__auto___40719__$2 = cljs.core.seq(seq__40207_40705);
if(temp__5804__auto___40719__$2){
var seq__40207_40720__$1 = temp__5804__auto___40719__$2;
if(cljs.core.chunked_seq_QMARK_(seq__40207_40720__$1)){
var c__5548__auto___40721 = cljs.core.chunk_first(seq__40207_40720__$1);
var G__40722 = cljs.core.chunk_rest(seq__40207_40720__$1);
var G__40723 = c__5548__auto___40721;
var G__40724 = cljs.core.count(c__5548__auto___40721);
var G__40725 = (0);
seq__40207_40705 = G__40722;
chunk__40209_40706 = G__40723;
count__40210_40707 = G__40724;
i__40211_40708 = G__40725;
continue;
} else {
var map__40229_40726 = cljs.core.first(seq__40207_40720__$1);
var map__40229_40727__$1 = cljs.core.__destructure_map(map__40229_40726);
var task_40728 = map__40229_40727__$1;
var fn_str_40729 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40229_40727__$1,new cljs.core.Keyword(null,"fn-str","fn-str",-1348506402));
var fn_sym_40730 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40229_40727__$1,new cljs.core.Keyword(null,"fn-sym","fn-sym",1423988510));
var fn_obj_40732 = goog.getObjectByName(fn_str_40729,$CLJS);
shadow.cljs.devtools.client.browser.devtools_msg(["call ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(fn_sym_40730)].join(''));

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


var G__40735 = cljs.core.next(seq__40207_40720__$1);
var G__40736 = null;
var G__40737 = (0);
var G__40738 = (0);
seq__40207_40705 = G__40735;
chunk__40209_40706 = G__40736;
count__40210_40707 = G__40737;
i__40211_40708 = G__40738;
continue;
}
} else {
}
}
break;
}

return goog.dom.removeNode(node_40698);
});})(seq__40098_40632,chunk__40102_40633,count__40103_40634,i__40104_40635,seq__39673,chunk__39675,count__39676,i__39677,new_link_40704,path_match_40703,node_40698,seq__40098_40691__$1,temp__5804__auto___40690__$1,path,seq__39673__$1,temp__5804__auto__,map__39670,map__39670__$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_40703], 0));

goog.dom.insertSiblingAfter(new_link_40704,node_40698);


var G__40739 = cljs.core.next(seq__40098_40691__$1);
var G__40740 = null;
var G__40741 = (0);
var G__40742 = (0);
seq__40098_40632 = G__40739;
chunk__40102_40633 = G__40740;
count__40103_40634 = G__40741;
i__40104_40635 = G__40742;
continue;
} else {
var G__40743 = cljs.core.next(seq__40098_40691__$1);
var G__40744 = null;
var G__40745 = (0);
var G__40746 = (0);
seq__40098_40632 = G__40743;
chunk__40102_40633 = G__40744;
count__40103_40634 = G__40745;
i__40104_40635 = G__40746;
continue;
}
} else {
var G__40747 = cljs.core.next(seq__40098_40691__$1);
var G__40748 = null;
var G__40749 = (0);
var G__40750 = (0);
seq__40098_40632 = G__40747;
chunk__40102_40633 = G__40748;
count__40103_40634 = G__40749;
i__40104_40635 = G__40750;
continue;
}
}
} else {
}
}
break;
}


var G__40751 = cljs.core.next(seq__39673__$1);
var G__40752 = null;
var G__40753 = (0);
var G__40754 = (0);
seq__39673 = G__40751;
chunk__39675 = G__40752;
count__39676 = G__40753;
i__39677 = G__40754;
continue;
} else {
var G__40755 = cljs.core.next(seq__39673__$1);
var G__40756 = null;
var G__40757 = (0);
var G__40758 = (0);
seq__39673 = G__40755;
chunk__39675 = G__40756;
count__39676 = G__40757;
i__39677 = G__40758;
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__40257 = shadow.cljs.devtools.client.browser.global_eval(code);
return (success.cljs$core$IFn$_invoke$arity$1 ? success.cljs$core$IFn$_invoke$arity$1(G__40257) : success.call(null,G__40257));
}catch (e40256){var e = e40256;
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__40260,success,fail){
var map__40261 = p__40260;
var map__40261__$1 = cljs.core.__destructure_map(map__40261);
var js = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40261__$1,new cljs.core.Keyword(null,"js","js",1768080579));
var this$__$1 = this;
try{var G__40265 = shadow.cljs.devtools.client.browser.global_eval(js);
return (success.cljs$core$IFn$_invoke$arity$1 ? success.cljs$core$IFn$_invoke$arity$1(G__40265) : success.call(null,G__40265));
}catch (e40264){var e = e40264;
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__40267,done,error){
var map__40269 = p__40267;
var map__40269__$1 = cljs.core.__destructure_map(map__40269);
var repl_sources = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40269__$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__40280,done,error){
var map__40281 = p__40280;
var map__40281__$1 = cljs.core.__destructure_map(map__40281);
var msg = map__40281__$1;
var sources = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40281__$1,new cljs.core.Keyword(null,"sources","sources",-321166424));
var reload_namespaces = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40281__$1,new cljs.core.Keyword(null,"reload-namespaces","reload-namespaces",250210134));
var js_requires = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40281__$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__40291){
var map__40294 = p__40291;
var map__40294__$1 = cljs.core.__destructure_map(map__40294);
var src = map__40294__$1;
var provides = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40294__$1,new cljs.core.Keyword(null,"provides","provides",-1634397992));
var and__5023__auto__ = shadow.cljs.devtools.client.env.src_is_loaded_QMARK_(src);
if(cljs.core.truth_(and__5023__auto__)){
return cljs.core.not(cljs.core.some(reload_namespaces,provides));
} else {
return and__5023__auto__;
}
}),sources));
if(cljs.core.not(cljs.core.seq(sources_to_load))){
var G__40304 = cljs.core.PersistentVector.EMPTY;
return (done.cljs$core$IFn$_invoke$arity$1 ? done.cljs$core$IFn$_invoke$arity$1(G__40304) : done.call(null,G__40304));
} 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__40318){
var map__40320 = p__40318;
var map__40320__$1 = cljs.core.__destructure_map(map__40320);
var msg__$1 = map__40320__$1;
var sources__$1 = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40320__$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 (e40326){var ex = e40326;
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__40337){
var map__40339 = p__40337;
var map__40339__$1 = cljs.core.__destructure_map(map__40339);
var env = map__40339__$1;
var runtime = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40339__$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__40377){
var map__40379 = p__40377;
var map__40379__$1 = cljs.core.__destructure_map(map__40379);
var event_op = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40379__$1,new cljs.core.Keyword(null,"event-op","event-op",200358057));
var client_id = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40379__$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__40386){
var map__40387 = p__40386;
var map__40387__$1 = cljs.core.__destructure_map(map__40387);
var svc = map__40387__$1;
var runtime = cljs.core.get.cljs$core$IFn$_invoke$arity$2(map__40387__$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
