// Compiled by ClojureScript 0.0-2138
goog.provide('lt.plugins.watches');
goog.require('cljs.core');
goog.require('lt.objs.editor.pool');
goog.require('lt.objs.editor.pool');
goog.require('lt.objs.editor');
goog.require('lt.objs.editor');
goog.require('lt.objs.command');
goog.require('lt.objs.command');
goog.require('lt.object');
goog.require('lt.object');
lt.plugins.watches.inline = (function inline(this$,opts,loc){var ed = new cljs.core.Keyword(null,"ed","ed",1013907473).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,this$));var type = (function (){var or__3520__auto__ = new cljs.core.Keyword(null,"type","type",1017479852).cljs$core$IFn$_invoke$arity$1(opts);if(cljs.core.truth_(or__3520__auto__))
{return or__3520__auto__;
} else
{return new cljs.core.Keyword(null,"inline","inline",4124874251);
}
})();var line = lt.objs.editor.line_handle.call(null,ed,new cljs.core.Keyword(null,"line","line",1017226086).cljs$core$IFn$_invoke$arity$1(loc));var res_obj = lt.object.create.call(null,new cljs.core.Keyword("lt.objs.eval","inline-result","lt.objs.eval/inline-result",1807255869),new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"ed","ed",1013907473),this$,new cljs.core.Keyword(null,"class","class",1108647146),(function (){var or__3520__auto__ = new cljs.core.Keyword(null,"class","class",1108647146).cljs$core$IFn$_invoke$arity$1(opts);if(cljs.core.truth_(or__3520__auto__))
{return or__3520__auto__;
} else
{return cljs.core.name.call(null,type);
}
})(),new cljs.core.Keyword(null,"opts","opts",1017322386),opts,new cljs.core.Keyword(null,"loc","loc",1014011570),loc,new cljs.core.Keyword(null,"line","line",1017226086),line], null));lt.object.add_tags.call(null,res_obj,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"inline.watch","inline.watch",4637733036)], null));
lt.object.update_BANG_.call(null,this$,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"widgets","widgets",2354242081)], null),cljs.core.assoc,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [line,type], null),res_obj);
return res_obj;
});
lt.plugins.watches.watched_range = (function watched_range(ed,start,end,src__GT_watch){var doc = CodeMirror.Doc(lt.objs.editor.__GT_val.call(null,ed));var range = (cljs.core.truth_(start)?lt.objs.editor.mark.call(null,doc,start,cljs.core.update_in.call(null,end,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"ch","ch",1013907415)], null),cljs.core.inc),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"inclusiveLeft","inclusiveLeft",4040813445),true,new cljs.core.Keyword(null,"inclusiveRight","inclusiveRight",4659437314),true], null)):null);var watches = cljs.core.doall.call(null,cljs.core.filter.call(null,cljs.core.identity,(function (){var iter__4231__auto__ = ((function (doc,range){
return (function iter__14488(s__14489){return (new cljs.core.LazySeq(null,((function (doc,range){
return (function (){var s__14489__$1 = s__14489;while(true){
var temp__4092__auto__ = cljs.core.seq.call(null,s__14489__$1);if(temp__4092__auto__)
{var s__14489__$2 = temp__4092__auto__;if(cljs.core.chunked_seq_QMARK_.call(null,s__14489__$2))
{var c__4229__auto__ = cljs.core.chunk_first.call(null,s__14489__$2);var size__4230__auto__ = cljs.core.count.call(null,c__4229__auto__);var b__14491 = cljs.core.chunk_buffer.call(null,size__4230__auto__);if((function (){var i__14490 = 0;while(true){
if((i__14490 < size__4230__auto__))
{var vec__14494 = cljs.core._nth.call(null,c__4229__auto__,i__14490);var id = cljs.core.nth.call(null,vec__14494,0,null);var watch = cljs.core.nth.call(null,vec__14494,1,null);var watch__$1 = new cljs.core.Keyword(null,"mark","mark",1017248319).cljs$core$IFn$_invoke$arity$1(watch);var pos = watch__$1.find();var mark = (cljs.core.truth_(pos)?lt.objs.editor.mark.call(null,doc,pos.from,pos.to,new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"className","className",1004015509),"watched"], null)):null);cljs.core.chunk_append.call(null,b__14491,(cljs.core.truth_(mark)?(function (){mark.custom = watch__$1.custom;
mark.ltwatchid = id;
return mark;
})():null));
{
var G__14502 = (i__14490 + 1);
i__14490 = G__14502;
continue;
}
} else
{return true;
}
break;
}
})())
{return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__14491),iter__14488.call(null,cljs.core.chunk_rest.call(null,s__14489__$2)));
} else
{return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__14491),null);
}
} else
{var vec__14495 = cljs.core.first.call(null,s__14489__$2);var id = cljs.core.nth.call(null,vec__14495,0,null);var watch = cljs.core.nth.call(null,vec__14495,1,null);var watch__$1 = new cljs.core.Keyword(null,"mark","mark",1017248319).cljs$core$IFn$_invoke$arity$1(watch);var pos = watch__$1.find();var mark = (cljs.core.truth_(pos)?lt.objs.editor.mark.call(null,doc,pos.from,pos.to,new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"className","className",1004015509),"watched"], null)):null);return cljs.core.cons.call(null,(cljs.core.truth_(mark)?(function (){mark.custom = watch__$1.custom;
mark.ltwatchid = id;
return mark;
})():null),iter__14488.call(null,cljs.core.rest.call(null,s__14489__$2)));
}
} else
{return null;
}
break;
}
});})(doc,range))
,null,null));
});})(doc,range))
;return iter__4231__auto__.call(null,new cljs.core.Keyword(null,"watches","watches",2139868463).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,ed)));
})()));var seq__14496_14503 = cljs.core.seq.call(null,watches);var chunk__14498_14504 = null;var count__14499_14505 = 0;var i__14500_14506 = 0;while(true){
if((i__14500_14506 < count__14499_14505))
{var watch_14507 = cljs.core._nth.call(null,chunk__14498_14504,i__14500_14506);var pos_14508 = watch_14507.find();var text_14509 = lt.objs.editor.range.call(null,doc,pos_14508.from,pos_14508.to);var meta_14510 = new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"obj","obj",1014014057),lt.object.__GT_id.call(null,ed),new cljs.core.Keyword(null,"id","id",1013907597),watch_14507.ltwatchid], null);var v_14511 = ((cljs.core.not.call(null,watch_14507.custom))?lt.object.raise_reduce.call(null,ed,new cljs.core.Keyword(null,"watch.src+","watch.src+",868749304),text_14509,meta_14510,text_14509):lt.object.raise_reduce.call(null,ed,new cljs.core.Keyword(null,"watch.custom.src+","watch.custom.src+",509336567),text_14509,meta_14510,watch_14507.custom,text_14509));lt.objs.editor.replace.call(null,doc,pos_14508.from,pos_14508.to,v_14511);
{
var G__14512 = seq__14496_14503;
var G__14513 = chunk__14498_14504;
var G__14514 = count__14499_14505;
var G__14515 = (i__14500_14506 + 1);
seq__14496_14503 = G__14512;
chunk__14498_14504 = G__14513;
count__14499_14505 = G__14514;
i__14500_14506 = G__14515;
continue;
}
} else
{var temp__4092__auto___14516 = cljs.core.seq.call(null,seq__14496_14503);if(temp__4092__auto___14516)
{var seq__14496_14517__$1 = temp__4092__auto___14516;if(cljs.core.chunked_seq_QMARK_.call(null,seq__14496_14517__$1))
{var c__4262__auto___14518 = cljs.core.chunk_first.call(null,seq__14496_14517__$1);{
var G__14519 = cljs.core.chunk_rest.call(null,seq__14496_14517__$1);
var G__14520 = c__4262__auto___14518;
var G__14521 = cljs.core.count.call(null,c__4262__auto___14518);
var G__14522 = 0;
seq__14496_14503 = G__14519;
chunk__14498_14504 = G__14520;
count__14499_14505 = G__14521;
i__14500_14506 = G__14522;
continue;
}
} else
{var watch_14523 = cljs.core.first.call(null,seq__14496_14517__$1);var pos_14524 = watch_14523.find();var text_14525 = lt.objs.editor.range.call(null,doc,pos_14524.from,pos_14524.to);var meta_14526 = new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"obj","obj",1014014057),lt.object.__GT_id.call(null,ed),new cljs.core.Keyword(null,"id","id",1013907597),watch_14523.ltwatchid], null);var v_14527 = ((cljs.core.not.call(null,watch_14523.custom))?lt.object.raise_reduce.call(null,ed,new cljs.core.Keyword(null,"watch.src+","watch.src+",868749304),text_14525,meta_14526,text_14525):lt.object.raise_reduce.call(null,ed,new cljs.core.Keyword(null,"watch.custom.src+","watch.custom.src+",509336567),text_14525,meta_14526,watch_14523.custom,text_14525));lt.objs.editor.replace.call(null,doc,pos_14524.from,pos_14524.to,v_14527);
{
var G__14528 = cljs.core.next.call(null,seq__14496_14517__$1);
var G__14529 = null;
var G__14530 = 0;
var G__14531 = 0;
seq__14496_14503 = G__14528;
chunk__14498_14504 = G__14529;
count__14499_14505 = G__14530;
i__14500_14506 = G__14531;
continue;
}
}
} else
{}
}
break;
}
if(cljs.core.truth_(range))
{var pos = range.find();return lt.objs.editor.range.call(null,doc,pos.from,pos.to);
} else
{return lt.objs.editor.__GT_val.call(null,doc);
}
});
lt.plugins.watches.__BEH__clear_BANG_ = (function __BEH__clear_BANG_(inline_watch){var ed = new cljs.core.Keyword(null,"ed","ed",1013907473).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,inline_watch));var id = new cljs.core.Keyword(null,"id","id",1013907597).cljs$core$IFn$_invoke$arity$1(new cljs.core.Keyword(null,"opts","opts",1017322386).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,inline_watch)));new cljs.core.Keyword(null,"mark","mark",1017248319).cljs$core$IFn$_invoke$arity$1(cljs.core.get.call(null,new cljs.core.Keyword(null,"watches","watches",2139868463).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,ed)),id)).clear();
lt.object.update_BANG_.call(null,ed,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"watches","watches",2139868463)], null),cljs.core.dissoc,id);
return lt.object.raise.call(null,ed,new cljs.core.Keyword(null,"unwatch","unwatch",739762504));
});
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.watches","clear!","lt.plugins.watches/clear!",3654100319),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.watches.__BEH__clear_BANG_,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"clear","clear",1108650431),null], null), null));
lt.plugins.watches.__BEH__watch_BANG_ = (function __BEH__watch_BANG_(this$,opts){var temp__4092__auto__ = lt.objs.editor.selection_bounds.call(null,this$);if(cljs.core.truth_(temp__4092__auto__))
{var sel = temp__4092__auto__;var id = [cljs.core.str(cljs.core.gensym.call(null,"watch"))].join('');var mark = lt.objs.editor.mark.call(null,this$,new cljs.core.Keyword(null,"from","from",1017056028).cljs$core$IFn$_invoke$arity$1(sel),new cljs.core.Keyword(null,"to","to",1013907949).cljs$core$IFn$_invoke$arity$1(sel),new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"className","className",1004015509),(function (){var or__3520__auto__ = new cljs.core.Keyword(null,"class","class",1108647146).cljs$core$IFn$_invoke$arity$1(opts);if(cljs.core.truth_(or__3520__auto__))
{return or__3520__auto__;
} else
{return "watched";
}
})(),new cljs.core.Keyword(null,"inclusiveLeft","inclusiveLeft",4040813445),false,new cljs.core.Keyword(null,"inclusiveRight","inclusiveRight",4659437314),false], null));var res = lt.plugins.watches.inline.call(null,this$,cljs.core.merge.call(null,new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"type","type",1017479852),new cljs.core.Keyword(null,"watch","watch",1126807617),new cljs.core.Keyword(null,"id","id",1013907597),id], null),opts),new cljs.core.Keyword(null,"to","to",1013907949).cljs$core$IFn$_invoke$arity$1(sel));mark.on("hide",(function (){return lt.object.raise.call(null,res,new cljs.core.Keyword(null,"clear!","clear!",3951036134));
}));
mark.custom = (cljs.core.truth_(new cljs.core.Keyword(null,"exp","exp",1014005135).cljs$core$IFn$_invoke$arity$1(opts))?opts:null);
mark.lttype = new cljs.core.Keyword(null,"watch","watch",1126807617);
mark.ltwatchid = id;
lt.object.update_BANG_.call(null,this$,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"watches","watches",2139868463)], null),cljs.core.assoc,id,new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"mark","mark",1017248319),mark,new cljs.core.Keyword(null,"inline-result","inline-result",656479555),res], null));
return lt.object.raise.call(null,this$,new cljs.core.Keyword(null,"watch","watch",1126807617));
} else
{return null;
}
});
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.watches","watch!","lt.plugins.watches/watch!",2067324701),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.watches.__BEH__watch_BANG_,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"watch!","watch!",4513908900),null], null), null));
lt.plugins.watches.__BEH__unwatch_BANG_ = (function __BEH__unwatch_BANG_(this$){var temp__4092__auto__ = lt.objs.editor.__GT_cursor.call(null,this$);if(cljs.core.truth_(temp__4092__auto__))
{var cur = temp__4092__auto__;var seq__14538 = cljs.core.seq.call(null,lt.objs.editor.find_marks.call(null,this$,cur));var chunk__14540 = null;var count__14541 = 0;var i__14542 = 0;while(true){
if((i__14542 < count__14541))
{var mark = cljs.core._nth.call(null,chunk__14540,i__14542);if(cljs.core._EQ_.call(null,mark.lttype,new cljs.core.Keyword(null,"watch","watch",1126807617)))
{lt.object.raise.call(null,new cljs.core.Keyword(null,"inline-result","inline-result",656479555).cljs$core$IFn$_invoke$arity$1(cljs.core.get.call(null,new cljs.core.Keyword(null,"watches","watches",2139868463).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,this$)),mark.ltwatchid)),new cljs.core.Keyword(null,"clear!","clear!",3951036134));
{
var G__14544 = seq__14538;
var G__14545 = chunk__14540;
var G__14546 = count__14541;
var G__14547 = (i__14542 + 1);
seq__14538 = G__14544;
chunk__14540 = G__14545;
count__14541 = G__14546;
i__14542 = G__14547;
continue;
}
} else
{{
var G__14548 = seq__14538;
var G__14549 = chunk__14540;
var G__14550 = count__14541;
var G__14551 = (i__14542 + 1);
seq__14538 = G__14548;
chunk__14540 = G__14549;
count__14541 = G__14550;
i__14542 = G__14551;
continue;
}
}
} else
{var temp__4092__auto____$1 = cljs.core.seq.call(null,seq__14538);if(temp__4092__auto____$1)
{var seq__14538__$1 = temp__4092__auto____$1;if(cljs.core.chunked_seq_QMARK_.call(null,seq__14538__$1))
{var c__4262__auto__ = cljs.core.chunk_first.call(null,seq__14538__$1);{
var G__14552 = cljs.core.chunk_rest.call(null,seq__14538__$1);
var G__14553 = c__4262__auto__;
var G__14554 = cljs.core.count.call(null,c__4262__auto__);
var G__14555 = 0;
seq__14538 = G__14552;
chunk__14540 = G__14553;
count__14541 = G__14554;
i__14542 = G__14555;
continue;
}
} else
{var mark = cljs.core.first.call(null,seq__14538__$1);if(cljs.core._EQ_.call(null,mark.lttype,new cljs.core.Keyword(null,"watch","watch",1126807617)))
{lt.object.raise.call(null,new cljs.core.Keyword(null,"inline-result","inline-result",656479555).cljs$core$IFn$_invoke$arity$1(cljs.core.get.call(null,new cljs.core.Keyword(null,"watches","watches",2139868463).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,this$)),mark.ltwatchid)),new cljs.core.Keyword(null,"clear!","clear!",3951036134));
{
var G__14556 = cljs.core.next.call(null,seq__14538__$1);
var G__14557 = null;
var G__14558 = 0;
var G__14559 = 0;
seq__14538 = G__14556;
chunk__14540 = G__14557;
count__14541 = G__14558;
i__14542 = G__14559;
continue;
}
} else
{{
var G__14560 = cljs.core.next.call(null,seq__14538__$1);
var G__14561 = null;
var G__14562 = 0;
var G__14563 = 0;
seq__14538 = G__14560;
chunk__14540 = G__14561;
count__14541 = G__14562;
i__14542 = G__14563;
continue;
}
}
}
} else
{return null;
}
}
break;
}
} else
{return null;
}
});
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.watches","unwatch!","lt.plugins.watches/unwatch!",548267784),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.watches.__BEH__unwatch_BANG_,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"unwatch!","unwatch!",1105444989),null], null), null));
lt.plugins.watches.__BEH__eval_on_watch_or_unwatch = (function __BEH__eval_on_watch_or_unwatch(this$){if(cljs.core.truth_(lt.objs.editor.selection_QMARK_.call(null,this$)))
{var cursor_14564 = lt.objs.editor.__GT_cursor.call(null,this$);lt.objs.editor.set_selection.call(null,this$,cursor_14564,cursor_14564);
} else
{}
return lt.object.raise.call(null,this$,new cljs.core.Keyword(null,"eval.one","eval.one",1173589382));
});
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.watches","eval-on-watch-or-unwatch","lt.plugins.watches/eval-on-watch-or-unwatch",4451254564),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.watches.__BEH__eval_on_watch_or_unwatch,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"unwatch","unwatch",739762504),null,new cljs.core.Keyword(null,"watch","watch",1126807617),null], null), null));
lt.objs.command.command.call(null,new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"command","command",1964298941),new cljs.core.Keyword(null,"editor.watch.watch-selection","editor.watch.watch-selection",1447617696),new cljs.core.Keyword(null,"desc","desc",1016984067),"Editor: Watch selection",new cljs.core.Keyword(null,"exec","exec",1017031683),(function (){var temp__4092__auto__ = lt.objs.editor.pool.last_active.call(null);if(cljs.core.truth_(temp__4092__auto__))
{var ed = temp__4092__auto__;return lt.object.raise.call(null,ed,new cljs.core.Keyword(null,"watch!","watch!",4513908900));
} else
{return null;
}
})], null));
lt.objs.command.command.call(null,new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"command","command",1964298941),new cljs.core.Keyword(null,"editor.watch.custom-watch-selection","editor.watch.custom-watch-selection",3503983620),new cljs.core.Keyword(null,"desc","desc",1016984067),"Editor: Custom watch selection",new cljs.core.Keyword(null,"hidden","hidden",4091384092),true,new cljs.core.Keyword(null,"exec","exec",1017031683),(function (exp,opts){var temp__4092__auto__ = lt.objs.editor.pool.last_active.call(null);if(cljs.core.truth_(temp__4092__auto__))
{var ed = temp__4092__auto__;return lt.object.raise.call(null,ed,new cljs.core.Keyword(null,"watch!","watch!",4513908900),cljs.core.assoc.call(null,opts,new cljs.core.Keyword(null,"exp","exp",1014005135),exp));
} else
{return null;
}
})], null));
lt.objs.command.command.call(null,new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"command","command",1964298941),new cljs.core.Keyword(null,"editor.watch.unwatch","editor.watch.unwatch",4724838504),new cljs.core.Keyword(null,"desc","desc",1016984067),"Editor: Remove watch under cursor",new cljs.core.Keyword(null,"exec","exec",1017031683),(function (){var temp__4092__auto__ = lt.objs.editor.pool.last_active.call(null);if(cljs.core.truth_(temp__4092__auto__))
{var ed = temp__4092__auto__;return lt.object.raise.call(null,ed,new cljs.core.Keyword(null,"unwatch!","unwatch!",1105444989));
} else
{return null;
}
})], null));
lt.objs.command.command.call(null,new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"command","command",1964298941),new cljs.core.Keyword(null,"editor.watch.remove-all","editor.watch.remove-all",4319393066),new cljs.core.Keyword(null,"desc","desc",1016984067),"Editor: Clear all watches",new cljs.core.Keyword(null,"exec","exec",1017031683),(function (){var temp__4092__auto__ = lt.objs.editor.pool.last_active.call(null);if(cljs.core.truth_(temp__4092__auto__))
{var ed = temp__4092__auto__;var seq__14565 = cljs.core.seq.call(null,cljs.core.vals.call(null,new cljs.core.Keyword(null,"watches","watches",2139868463).cljs$core$IFn$_invoke$arity$1(cljs.core.deref.call(null,ed))));var chunk__14566 = null;var count__14567 = 0;var i__14568 = 0;while(true){
if((i__14568 < count__14567))
{var w = cljs.core._nth.call(null,chunk__14566,i__14568);lt.object.raise.call(null,new cljs.core.Keyword(null,"inline-result","inline-result",656479555).cljs$core$IFn$_invoke$arity$1(w),new cljs.core.Keyword(null,"clear!","clear!",3951036134));
{
var G__14569 = seq__14565;
var G__14570 = chunk__14566;
var G__14571 = count__14567;
var G__14572 = (i__14568 + 1);
seq__14565 = G__14569;
chunk__14566 = G__14570;
count__14567 = G__14571;
i__14568 = G__14572;
continue;
}
} else
{var temp__4092__auto____$1 = cljs.core.seq.call(null,seq__14565);if(temp__4092__auto____$1)
{var seq__14565__$1 = temp__4092__auto____$1;if(cljs.core.chunked_seq_QMARK_.call(null,seq__14565__$1))
{var c__4262__auto__ = cljs.core.chunk_first.call(null,seq__14565__$1);{
var G__14573 = cljs.core.chunk_rest.call(null,seq__14565__$1);
var G__14574 = c__4262__auto__;
var G__14575 = cljs.core.count.call(null,c__4262__auto__);
var G__14576 = 0;
seq__14565 = G__14573;
chunk__14566 = G__14574;
count__14567 = G__14575;
i__14568 = G__14576;
continue;
}
} else
{var w = cljs.core.first.call(null,seq__14565__$1);lt.object.raise.call(null,new cljs.core.Keyword(null,"inline-result","inline-result",656479555).cljs$core$IFn$_invoke$arity$1(w),new cljs.core.Keyword(null,"clear!","clear!",3951036134));
{
var G__14577 = cljs.core.next.call(null,seq__14565__$1);
var G__14578 = null;
var G__14579 = 0;
var G__14580 = 0;
seq__14565 = G__14577;
chunk__14566 = G__14578;
count__14567 = G__14579;
i__14568 = G__14580;
continue;
}
}
} else
{return null;
}
}
break;
}
} else
{return null;
}
})], null));
