// 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__6565(s__6566){return (new cljs.core.LazySeq(null,((function (doc,range){
return (function (){var s__6566__$1 = s__6566;while(true){
var temp__4092__auto__ = cljs.core.seq.call(null,s__6566__$1);if(temp__4092__auto__)
{var s__6566__$2 = temp__4092__auto__;if(cljs.core.chunked_seq_QMARK_.call(null,s__6566__$2))
{var c__4229__auto__ = cljs.core.chunk_first.call(null,s__6566__$2);var size__4230__auto__ = cljs.core.count.call(null,c__4229__auto__);var b__6568 = cljs.core.chunk_buffer.call(null,size__4230__auto__);if((function (){var i__6567 = 0;while(true){
if((i__6567 < size__4230__auto__))
{var vec__6571 = cljs.core._nth.call(null,c__4229__auto__,i__6567);var id = cljs.core.nth.call(null,vec__6571,0,null);var watch = cljs.core.nth.call(null,vec__6571,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__6568,(cljs.core.truth_(mark)?(function (){mark.custom = watch__$1.custom;
mark.ltwatchid = id;
return mark;
})():null));
{
var G__6579 = (i__6567 + 1);
i__6567 = G__6579;
continue;
}
} else
{return true;
}
break;
}
})())
{return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__6568),iter__6565.call(null,cljs.core.chunk_rest.call(null,s__6566__$2)));
} else
{return cljs.core.chunk_cons.call(null,cljs.core.chunk.call(null,b__6568),null);
}
} else
{var vec__6572 = cljs.core.first.call(null,s__6566__$2);var id = cljs.core.nth.call(null,vec__6572,0,null);var watch = cljs.core.nth.call(null,vec__6572,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__6565.call(null,cljs.core.rest.call(null,s__6566__$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__6573_6580 = cljs.core.seq.call(null,watches);var chunk__6575_6581 = null;var count__6576_6582 = 0;var i__6577_6583 = 0;while(true){
if((i__6577_6583 < count__6576_6582))
{var watch_6584 = cljs.core._nth.call(null,chunk__6575_6581,i__6577_6583);var pos_6585 = watch_6584.find();var text_6586 = lt.objs.editor.range.call(null,doc,pos_6585.from,pos_6585.to);var meta_6587 = 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_6584.ltwatchid], null);var v_6588 = ((cljs.core.not.call(null,watch_6584.custom))?lt.object.raise_reduce.call(null,ed,new cljs.core.Keyword(null,"watch.src+","watch.src+",868749304),text_6586,meta_6587,text_6586):lt.object.raise_reduce.call(null,ed,new cljs.core.Keyword(null,"watch.custom.src+","watch.custom.src+",509336567),text_6586,meta_6587,watch_6584.custom,text_6586));lt.objs.editor.replace.call(null,doc,pos_6585.from,pos_6585.to,v_6588);
{
var G__6589 = seq__6573_6580;
var G__6590 = chunk__6575_6581;
var G__6591 = count__6576_6582;
var G__6592 = (i__6577_6583 + 1);
seq__6573_6580 = G__6589;
chunk__6575_6581 = G__6590;
count__6576_6582 = G__6591;
i__6577_6583 = G__6592;
continue;
}
} else
{var temp__4092__auto___6593 = cljs.core.seq.call(null,seq__6573_6580);if(temp__4092__auto___6593)
{var seq__6573_6594__$1 = temp__4092__auto___6593;if(cljs.core.chunked_seq_QMARK_.call(null,seq__6573_6594__$1))
{var c__4262__auto___6595 = cljs.core.chunk_first.call(null,seq__6573_6594__$1);{
var G__6596 = cljs.core.chunk_rest.call(null,seq__6573_6594__$1);
var G__6597 = c__4262__auto___6595;
var G__6598 = cljs.core.count.call(null,c__4262__auto___6595);
var G__6599 = 0;
seq__6573_6580 = G__6596;
chunk__6575_6581 = G__6597;
count__6576_6582 = G__6598;
i__6577_6583 = G__6599;
continue;
}
} else
{var watch_6600 = cljs.core.first.call(null,seq__6573_6594__$1);var pos_6601 = watch_6600.find();var text_6602 = lt.objs.editor.range.call(null,doc,pos_6601.from,pos_6601.to);var meta_6603 = 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_6600.ltwatchid], null);var v_6604 = ((cljs.core.not.call(null,watch_6600.custom))?lt.object.raise_reduce.call(null,ed,new cljs.core.Keyword(null,"watch.src+","watch.src+",868749304),text_6602,meta_6603,text_6602):lt.object.raise_reduce.call(null,ed,new cljs.core.Keyword(null,"watch.custom.src+","watch.custom.src+",509336567),text_6602,meta_6603,watch_6600.custom,text_6602));lt.objs.editor.replace.call(null,doc,pos_6601.from,pos_6601.to,v_6604);
{
var G__6605 = cljs.core.next.call(null,seq__6573_6594__$1);
var G__6606 = null;
var G__6607 = 0;
var G__6608 = 0;
seq__6573_6580 = G__6605;
chunk__6575_6581 = G__6606;
count__6576_6582 = G__6607;
i__6577_6583 = G__6608;
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__6615 = cljs.core.seq.call(null,lt.objs.editor.find_marks.call(null,this$,cur));var chunk__6617 = null;var count__6618 = 0;var i__6619 = 0;while(true){
if((i__6619 < count__6618))
{var mark = cljs.core._nth.call(null,chunk__6617,i__6619);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__6621 = seq__6615;
var G__6622 = chunk__6617;
var G__6623 = count__6618;
var G__6624 = (i__6619 + 1);
seq__6615 = G__6621;
chunk__6617 = G__6622;
count__6618 = G__6623;
i__6619 = G__6624;
continue;
}
} else
{{
var G__6625 = seq__6615;
var G__6626 = chunk__6617;
var G__6627 = count__6618;
var G__6628 = (i__6619 + 1);
seq__6615 = G__6625;
chunk__6617 = G__6626;
count__6618 = G__6627;
i__6619 = G__6628;
continue;
}
}
} else
{var temp__4092__auto____$1 = cljs.core.seq.call(null,seq__6615);if(temp__4092__auto____$1)
{var seq__6615__$1 = temp__4092__auto____$1;if(cljs.core.chunked_seq_QMARK_.call(null,seq__6615__$1))
{var c__4262__auto__ = cljs.core.chunk_first.call(null,seq__6615__$1);{
var G__6629 = cljs.core.chunk_rest.call(null,seq__6615__$1);
var G__6630 = c__4262__auto__;
var G__6631 = cljs.core.count.call(null,c__4262__auto__);
var G__6632 = 0;
seq__6615 = G__6629;
chunk__6617 = G__6630;
count__6618 = G__6631;
i__6619 = G__6632;
continue;
}
} else
{var mark = cljs.core.first.call(null,seq__6615__$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__6633 = cljs.core.next.call(null,seq__6615__$1);
var G__6634 = null;
var G__6635 = 0;
var G__6636 = 0;
seq__6615 = G__6633;
chunk__6617 = G__6634;
count__6618 = G__6635;
i__6619 = G__6636;
continue;
}
} else
{{
var G__6637 = cljs.core.next.call(null,seq__6615__$1);
var G__6638 = null;
var G__6639 = 0;
var G__6640 = 0;
seq__6615 = G__6637;
chunk__6617 = G__6638;
count__6618 = G__6639;
i__6619 = G__6640;
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_6641 = lt.objs.editor.__GT_cursor.call(null,this$);lt.objs.editor.set_selection.call(null,this$,cursor_6641,cursor_6641);
} 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__6642 = 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__6643 = null;var count__6644 = 0;var i__6645 = 0;while(true){
if((i__6645 < count__6644))
{var w = cljs.core._nth.call(null,chunk__6643,i__6645);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__6646 = seq__6642;
var G__6647 = chunk__6643;
var G__6648 = count__6644;
var G__6649 = (i__6645 + 1);
seq__6642 = G__6646;
chunk__6643 = G__6647;
count__6644 = G__6648;
i__6645 = G__6649;
continue;
}
} else
{var temp__4092__auto____$1 = cljs.core.seq.call(null,seq__6642);if(temp__4092__auto____$1)
{var seq__6642__$1 = temp__4092__auto____$1;if(cljs.core.chunked_seq_QMARK_.call(null,seq__6642__$1))
{var c__4262__auto__ = cljs.core.chunk_first.call(null,seq__6642__$1);{
var G__6650 = cljs.core.chunk_rest.call(null,seq__6642__$1);
var G__6651 = c__4262__auto__;
var G__6652 = cljs.core.count.call(null,c__4262__auto__);
var G__6653 = 0;
seq__6642 = G__6650;
chunk__6643 = G__6651;
count__6644 = G__6652;
i__6645 = G__6653;
continue;
}
} else
{var w = cljs.core.first.call(null,seq__6642__$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__6654 = cljs.core.next.call(null,seq__6642__$1);
var G__6655 = null;
var G__6656 = 0;
var G__6657 = 0;
seq__6642 = G__6654;
chunk__6643 = G__6655;
count__6644 = G__6656;
i__6645 = G__6657;
continue;
}
}
} else
{return null;
}
}
break;
}
} else
{return null;
}
})], null));
