@atomist/clj-editors
Version:
editor functions that use rewrite-clj and other important things from the clojurescript ecosystem
1,207 lines (1,055 loc) • 613 kB
JavaScript
// Compiled by ClojureScript 1.10.238 {:target :nodejs}
goog.provide('com.rpl.specter.impl');
goog.require('cljs.core');
goog.require('com.rpl.specter.protocols');
goog.require('clojure.string');
goog.require('clojure.walk');
com.rpl.specter.impl.NONE = new cljs.core.Keyword("com.rpl.specter.impl","NONE","com.rpl.specter.impl/NONE",1085349969);
com.rpl.specter.impl.spy = (function com$rpl$specter$impl$spy(e){
cljs.core.println.call(null,"SPY:");
cljs.core.println.call(null,cljs.core.pr_str.call(null,e));
return e;
});
com.rpl.specter.impl.smart_str_STAR_ = (function com$rpl$specter$impl$smart_str_STAR_(o){
if(cljs.core.coll_QMARK_.call(null,o)){
return cljs.core.pr_str.call(null,o);
} else {
return [cljs.core.str.cljs$core$IFn$_invoke$arity$1(o)].join('');
}
});
com.rpl.specter.impl.smart_str = (function com$rpl$specter$impl$smart_str(var_args){
var args__4502__auto__ = [];
var len__4499__auto___16932 = arguments.length;
var i__4500__auto___16933 = (0);
while(true){
if((i__4500__auto___16933 < len__4499__auto___16932)){
args__4502__auto__.push((arguments[i__4500__auto___16933]));
var G__16934 = (i__4500__auto___16933 + (1));
i__4500__auto___16933 = G__16934;
continue;
} else {
}
break;
}
var argseq__4503__auto__ = ((((0) < args__4502__auto__.length))?(new cljs.core.IndexedSeq(args__4502__auto__.slice((0)),(0),null)):null);
return com.rpl.specter.impl.smart_str.cljs$core$IFn$_invoke$arity$variadic(argseq__4503__auto__);
});
com.rpl.specter.impl.smart_str.cljs$core$IFn$_invoke$arity$variadic = (function (elems){
return cljs.core.apply.call(null,cljs.core.str,cljs.core.map.call(null,com.rpl.specter.impl.smart_str_STAR_,elems));
});
com.rpl.specter.impl.smart_str.cljs$lang$maxFixedArity = (0);
/** @this {Function} */
com.rpl.specter.impl.smart_str.cljs$lang$applyTo = (function (seq16931){
var self__4487__auto__ = this;
return self__4487__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq16931));
});
com.rpl.specter.impl.fast_constantly = (function com$rpl$specter$impl$fast_constantly(v){
return (function() {
var G__16935 = null;
var G__16935__0 = (function (){
return v;
});
var G__16935__1 = (function (a1){
return v;
});
var G__16935__2 = (function (a1,a2){
return v;
});
var G__16935__3 = (function (a1,a2,a3){
return v;
});
var G__16935__4 = (function (a1,a2,a3,a4){
return v;
});
var G__16935__5 = (function (a1,a2,a3,a4,a5){
return v;
});
var G__16935__6 = (function (a1,a2,a3,a4,a5,a6){
return v;
});
var G__16935__7 = (function (a1,a2,a3,a4,a5,a6,a7){
return v;
});
var G__16935__8 = (function (a1,a2,a3,a4,a5,a6,a7,a8){
return v;
});
var G__16935__9 = (function (a1,a2,a3,a4,a5,a6,a7,a8,a9){
return v;
});
var G__16935__10 = (function (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){
return v;
});
var G__16935__11 = (function() {
var G__16936__delegate = function (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,r){
return v;
};
var G__16936 = function (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,var_args){
var r = null;
if (arguments.length > 10) {
var G__16937__i = 0, G__16937__a = new Array(arguments.length - 10);
while (G__16937__i < G__16937__a.length) {G__16937__a[G__16937__i] = arguments[G__16937__i + 10]; ++G__16937__i;}
r = new cljs.core.IndexedSeq(G__16937__a,0,null);
}
return G__16936__delegate.call(this,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,r);};
G__16936.cljs$lang$maxFixedArity = 10;
G__16936.cljs$lang$applyTo = (function (arglist__16938){
var a1 = cljs.core.first(arglist__16938);
arglist__16938 = cljs.core.next(arglist__16938);
var a2 = cljs.core.first(arglist__16938);
arglist__16938 = cljs.core.next(arglist__16938);
var a3 = cljs.core.first(arglist__16938);
arglist__16938 = cljs.core.next(arglist__16938);
var a4 = cljs.core.first(arglist__16938);
arglist__16938 = cljs.core.next(arglist__16938);
var a5 = cljs.core.first(arglist__16938);
arglist__16938 = cljs.core.next(arglist__16938);
var a6 = cljs.core.first(arglist__16938);
arglist__16938 = cljs.core.next(arglist__16938);
var a7 = cljs.core.first(arglist__16938);
arglist__16938 = cljs.core.next(arglist__16938);
var a8 = cljs.core.first(arglist__16938);
arglist__16938 = cljs.core.next(arglist__16938);
var a9 = cljs.core.first(arglist__16938);
arglist__16938 = cljs.core.next(arglist__16938);
var a10 = cljs.core.first(arglist__16938);
var r = cljs.core.rest(arglist__16938);
return G__16936__delegate(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,r);
});
G__16936.cljs$core$IFn$_invoke$arity$variadic = G__16936__delegate;
return G__16936;
})()
;
G__16935 = function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,var_args){
var r = var_args;
switch(arguments.length){
case 0:
return G__16935__0.call(this);
case 1:
return G__16935__1.call(this,a1);
case 2:
return G__16935__2.call(this,a1,a2);
case 3:
return G__16935__3.call(this,a1,a2,a3);
case 4:
return G__16935__4.call(this,a1,a2,a3,a4);
case 5:
return G__16935__5.call(this,a1,a2,a3,a4,a5);
case 6:
return G__16935__6.call(this,a1,a2,a3,a4,a5,a6);
case 7:
return G__16935__7.call(this,a1,a2,a3,a4,a5,a6,a7);
case 8:
return G__16935__8.call(this,a1,a2,a3,a4,a5,a6,a7,a8);
case 9:
return G__16935__9.call(this,a1,a2,a3,a4,a5,a6,a7,a8,a9);
case 10:
return G__16935__10.call(this,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10);
default:
var G__16939 = null;
if (arguments.length > 10) {
var G__16940__i = 0, G__16940__a = new Array(arguments.length - 10);
while (G__16940__i < G__16940__a.length) {G__16940__a[G__16940__i] = arguments[G__16940__i + 10]; ++G__16940__i;}
G__16939 = new cljs.core.IndexedSeq(G__16940__a,0,null);
}
return G__16935__11.cljs$core$IFn$_invoke$arity$variadic(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10, G__16939);
}
throw(new Error('Invalid arity: ' + (arguments.length - 1)));
};
G__16935.cljs$lang$maxFixedArity = 10;
G__16935.cljs$lang$applyTo = G__16935__11.cljs$lang$applyTo;
G__16935.cljs$core$IFn$_invoke$arity$0 = G__16935__0;
G__16935.cljs$core$IFn$_invoke$arity$1 = G__16935__1;
G__16935.cljs$core$IFn$_invoke$arity$2 = G__16935__2;
G__16935.cljs$core$IFn$_invoke$arity$3 = G__16935__3;
G__16935.cljs$core$IFn$_invoke$arity$4 = G__16935__4;
G__16935.cljs$core$IFn$_invoke$arity$5 = G__16935__5;
G__16935.cljs$core$IFn$_invoke$arity$6 = G__16935__6;
G__16935.cljs$core$IFn$_invoke$arity$7 = G__16935__7;
G__16935.cljs$core$IFn$_invoke$arity$8 = G__16935__8;
G__16935.cljs$core$IFn$_invoke$arity$9 = G__16935__9;
G__16935.cljs$core$IFn$_invoke$arity$10 = G__16935__10;
G__16935.cljs$core$IFn$_invoke$arity$variadic = G__16935__11.cljs$core$IFn$_invoke$arity$variadic;
return G__16935;
})()
});
com.rpl.specter.impl.throw_illegal = (function com$rpl$specter$impl$throw_illegal(var_args){
var args__4502__auto__ = [];
var len__4499__auto___16942 = arguments.length;
var i__4500__auto___16943 = (0);
while(true){
if((i__4500__auto___16943 < len__4499__auto___16942)){
args__4502__auto__.push((arguments[i__4500__auto___16943]));
var G__16944 = (i__4500__auto___16943 + (1));
i__4500__auto___16943 = G__16944;
continue;
} else {
}
break;
}
var argseq__4503__auto__ = ((((0) < args__4502__auto__.length))?(new cljs.core.IndexedSeq(args__4502__auto__.slice((0)),(0),null)):null);
return com.rpl.specter.impl.throw_illegal.cljs$core$IFn$_invoke$arity$variadic(argseq__4503__auto__);
});
com.rpl.specter.impl.throw_illegal.cljs$core$IFn$_invoke$arity$variadic = (function (args){
throw (new Error(cljs.core.apply.call(null,cljs.core.str,args)));
});
com.rpl.specter.impl.throw_illegal.cljs$lang$maxFixedArity = (0);
/** @this {Function} */
com.rpl.specter.impl.throw_illegal.cljs$lang$applyTo = (function (seq16941){
var self__4487__auto__ = this;
return self__4487__auto__.cljs$core$IFn$_invoke$arity$variadic(cljs.core.seq.call(null,seq16941));
});
com.rpl.specter.impl.cljs_analyzer_macroexpand_1 = (function com$rpl$specter$impl$cljs_analyzer_macroexpand_1(){
return cljs.analyzer.macroexpand_1;
});
com.rpl.specter.impl.clj_macroexpand_all = (function com$rpl$specter$impl$clj_macroexpand_all(form){
return com.rpl.specter.impl.throw_illegal.call(null,"not implemented");
});
com.rpl.specter.impl.intern_STAR_ = (function com$rpl$specter$impl$intern_STAR_(ns,name,val){
return com.rpl.specter.impl.throw_illegal.call(null,"intern not supported in ClojureScript");
});
com.rpl.specter.impl.benchmark = (function com$rpl$specter$impl$benchmark(iters,afn){
var start__4389__auto__ = cljs.core.system_time.call(null);
var ret__4390__auto__ = (function (){var n__4376__auto__ = iters;
var _ = (0);
while(true){
if((_ < n__4376__auto__)){
afn.call(null);
var G__16945 = (_ + (1));
_ = G__16945;
continue;
} else {
return null;
}
break;
}
})();
cljs.core.prn.call(null,["Elapsed time: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1((cljs.core.system_time.call(null) - start__4389__auto__).toFixed((6)))," msecs"].join(''));
return ret__4390__auto__;
});
com.rpl.specter.impl.exec_select_STAR_ = (function com$rpl$specter$impl$exec_select_STAR_(this$,vals,structure,next_fn){
return com.rpl.specter.protocols.select_STAR_.call(null,this$,vals,structure,next_fn);
});
com.rpl.specter.impl.exec_transform_STAR_ = (function com$rpl$specter$impl$exec_transform_STAR_(this$,vals,structure,next_fn){
return com.rpl.specter.protocols.transform_STAR_.call(null,this$,vals,structure,next_fn);
});
/**
* @interface
*/
com.rpl.specter.impl.PathComposer = function(){};
com.rpl.specter.impl.do_comp_paths = (function com$rpl$specter$impl$do_comp_paths(paths){
if(((!((paths == null))) && (!((paths.com$rpl$specter$impl$PathComposer$do_comp_paths$arity$1 == null))))){
return paths.com$rpl$specter$impl$PathComposer$do_comp_paths$arity$1(paths);
} else {
var x__4211__auto__ = (((paths == null))?null:paths);
var m__4212__auto__ = (com.rpl.specter.impl.do_comp_paths[goog.typeOf(x__4211__auto__)]);
if(!((m__4212__auto__ == null))){
return m__4212__auto__.call(null,paths);
} else {
var m__4212__auto____$1 = (com.rpl.specter.impl.do_comp_paths["_"]);
if(!((m__4212__auto____$1 == null))){
return m__4212__auto____$1.call(null,paths);
} else {
throw cljs.core.missing_protocol.call(null,"PathComposer.do-comp-paths",paths);
}
}
}
});
com.rpl.specter.impl.rich_nav_QMARK_ = (function com$rpl$specter$impl$rich_nav_QMARK_(n){
if(!((n == null))){
if(((false) || ((cljs.core.PROTOCOL_SENTINEL === n.com$rpl$specter$protocols$RichNavigator$)))){
return true;
} else {
if((!n.cljs$lang$protocol_mask$partition$)){
return cljs.core.native_satisfies_QMARK_.call(null,com.rpl.specter.protocols.RichNavigator,n);
} else {
return false;
}
}
} else {
return cljs.core.native_satisfies_QMARK_.call(null,com.rpl.specter.protocols.RichNavigator,n);
}
});
com.rpl.specter.impl.comp_paths_STAR_ = (function com$rpl$specter$impl$comp_paths_STAR_(p){
if(cljs.core.truth_(com.rpl.specter.impl.rich_nav_QMARK_.call(null,p))){
return p;
} else {
return com.rpl.specter.impl.do_comp_paths.call(null,p);
}
});
com.rpl.specter.impl.coerce_object = (function com$rpl$specter$impl$coerce_object(this$){
if(cljs.core.truth_(com.rpl.specter.impl.rich_nav_QMARK_.call(null,this$))){
return this$;
} else {
if(((!((this$ == null)))?((((false) || ((cljs.core.PROTOCOL_SENTINEL === this$.com$rpl$specter$protocols$ImplicitNav$))))?true:(((!this$.cljs$lang$protocol_mask$partition$))?cljs.core.native_satisfies_QMARK_.call(null,com.rpl.specter.protocols.ImplicitNav,this$):false)):cljs.core.native_satisfies_QMARK_.call(null,com.rpl.specter.protocols.ImplicitNav,this$))){
return com.rpl.specter.protocols.implicit_nav.call(null,this$);
} else {
return com.rpl.specter.impl.throw_illegal.call(null,"Not a navigator: ",this$," ",cljs.core.pr_str.call(null,cljs.core.type.call(null,this$)));
}
}
});
/**
* @interface
*/
com.rpl.specter.impl.CoercePath = function(){};
com.rpl.specter.impl.coerce_path = (function com$rpl$specter$impl$coerce_path(this$){
if(((!((this$ == null))) && (!((this$.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 == null))))){
return this$.com$rpl$specter$impl$CoercePath$coerce_path$arity$1(this$);
} else {
var x__4211__auto__ = (((this$ == null))?null:this$);
var m__4212__auto__ = (com.rpl.specter.impl.coerce_path[goog.typeOf(x__4211__auto__)]);
if(!((m__4212__auto__ == null))){
return m__4212__auto__.call(null,this$);
} else {
var m__4212__auto____$1 = (com.rpl.specter.impl.coerce_path["_"]);
if(!((m__4212__auto____$1 == null))){
return m__4212__auto____$1.call(null,this$);
} else {
throw cljs.core.missing_protocol.call(null,"CoercePath.coerce-path",this$);
}
}
}
});
goog.object.set(com.rpl.specter.impl.CoercePath,"null",true);
goog.object.set(com.rpl.specter.impl.coerce_path,"null",(function (this$){
return com.rpl.specter.impl.coerce_object.call(null,this$);
}));
cljs.core.PersistentVector.prototype.com$rpl$specter$impl$CoercePath$ = cljs.core.PROTOCOL_SENTINEL;
cljs.core.PersistentVector.prototype.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 = (function (this$){
var this$__$1 = this;
return com.rpl.specter.impl.do_comp_paths.call(null,this$__$1);
});
cljs.core.IndexedSeq.prototype.com$rpl$specter$impl$CoercePath$ = cljs.core.PROTOCOL_SENTINEL;
cljs.core.IndexedSeq.prototype.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 = (function (this$){
var this$__$1 = this;
return com.rpl.specter.impl.coerce_path.call(null,cljs.core.vec.call(null,this$__$1));
});
cljs.core.EmptyList.prototype.com$rpl$specter$impl$CoercePath$ = cljs.core.PROTOCOL_SENTINEL;
cljs.core.EmptyList.prototype.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 = (function (this$){
var this$__$1 = this;
return com.rpl.specter.impl.coerce_path.call(null,cljs.core.vec.call(null,this$__$1));
});
cljs.core.List.prototype.com$rpl$specter$impl$CoercePath$ = cljs.core.PROTOCOL_SENTINEL;
cljs.core.List.prototype.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 = (function (this$){
var this$__$1 = this;
return com.rpl.specter.impl.coerce_path.call(null,cljs.core.vec.call(null,this$__$1));
});
cljs.core.LazySeq.prototype.com$rpl$specter$impl$CoercePath$ = cljs.core.PROTOCOL_SENTINEL;
cljs.core.LazySeq.prototype.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 = (function (this$){
var this$__$1 = this;
return com.rpl.specter.impl.coerce_path.call(null,cljs.core.vec.call(null,this$__$1));
});
cljs.core.Subvec.prototype.com$rpl$specter$impl$CoercePath$ = cljs.core.PROTOCOL_SENTINEL;
cljs.core.Subvec.prototype.com$rpl$specter$impl$CoercePath$coerce_path$arity$1 = (function (this$){
var this$__$1 = this;
return com.rpl.specter.impl.coerce_path.call(null,cljs.core.vec.call(null,this$__$1));
});
goog.object.set(com.rpl.specter.impl.CoercePath,"_",true);
goog.object.set(com.rpl.specter.impl.coerce_path,"_",(function (this$){
return com.rpl.specter.impl.coerce_object.call(null,this$);
}));
com.rpl.specter.impl.STAY_STAR_ = (function (){
if(typeof com.rpl.specter.impl.t_com$rpl$specter$impl16948 !== 'undefined'){
} else {
/**
* @constructor
* @implements {cljs.core.IMeta}
* @implements {com.rpl.specter.protocols.RichNavigator}
* @implements {cljs.core.IWithMeta}
*/
com.rpl.specter.impl.t_com$rpl$specter$impl16948 = (function (meta16949){
this.meta16949 = meta16949;
this.cljs$lang$protocol_mask$partition0$ = 393216;
this.cljs$lang$protocol_mask$partition1$ = 0;
});
com.rpl.specter.impl.t_com$rpl$specter$impl16948.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_16950,meta16949__$1){
var self__ = this;
var _16950__$1 = this;
return (new com.rpl.specter.impl.t_com$rpl$specter$impl16948(meta16949__$1));
});
com.rpl.specter.impl.t_com$rpl$specter$impl16948.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_16950){
var self__ = this;
var _16950__$1 = this;
return self__.meta16949;
});
com.rpl.specter.impl.t_com$rpl$specter$impl16948.prototype.com$rpl$specter$protocols$RichNavigator$ = cljs.core.PROTOCOL_SENTINEL;
com.rpl.specter.impl.t_com$rpl$specter$impl16948.prototype.com$rpl$specter$protocols$RichNavigator$select_STAR_$arity$4 = (function (this$,vals,structure,next_fn){
var self__ = this;
var this$__$1 = this;
return next_fn.call(null,vals,structure);
});
com.rpl.specter.impl.t_com$rpl$specter$impl16948.prototype.com$rpl$specter$protocols$RichNavigator$transform_STAR_$arity$4 = (function (this$,vals,structure,next_fn){
var self__ = this;
var this$__$1 = this;
return next_fn.call(null,vals,structure);
});
com.rpl.specter.impl.t_com$rpl$specter$impl16948.getBasis = (function (){
return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"meta16949","meta16949",-1045634380,null)], null);
});
com.rpl.specter.impl.t_com$rpl$specter$impl16948.cljs$lang$type = true;
com.rpl.specter.impl.t_com$rpl$specter$impl16948.cljs$lang$ctorStr = "com.rpl.specter.impl/t_com$rpl$specter$impl16948";
com.rpl.specter.impl.t_com$rpl$specter$impl16948.cljs$lang$ctorPrWriter = (function (this__4161__auto__,writer__4162__auto__,opt__4163__auto__){
return cljs.core._write.call(null,writer__4162__auto__,"com.rpl.specter.impl/t_com$rpl$specter$impl16948");
});
/**
* Positional factory function for com.rpl.specter.impl/t_com$rpl$specter$impl16948.
*/
com.rpl.specter.impl.__GT_t_com$rpl$specter$impl16948 = (function com$rpl$specter$impl$__GT_t_com$rpl$specter$impl16948(meta16949){
return (new com.rpl.specter.impl.t_com$rpl$specter$impl16948(meta16949));
});
}
return (new com.rpl.specter.impl.t_com$rpl$specter$impl16948(cljs.core.PersistentArrayMap.EMPTY));
})()
;
com.rpl.specter.impl.combine_two_navs = (function com$rpl$specter$impl$combine_two_navs(nav1,nav2){
if(typeof com.rpl.specter.impl.t_com$rpl$specter$impl16951 !== 'undefined'){
} else {
/**
* @constructor
* @implements {cljs.core.IMeta}
* @implements {com.rpl.specter.protocols.RichNavigator}
* @implements {cljs.core.IWithMeta}
*/
com.rpl.specter.impl.t_com$rpl$specter$impl16951 = (function (nav1,nav2,meta16952){
this.nav1 = nav1;
this.nav2 = nav2;
this.meta16952 = meta16952;
this.cljs$lang$protocol_mask$partition0$ = 393216;
this.cljs$lang$protocol_mask$partition1$ = 0;
});
com.rpl.specter.impl.t_com$rpl$specter$impl16951.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_16953,meta16952__$1){
var self__ = this;
var _16953__$1 = this;
return (new com.rpl.specter.impl.t_com$rpl$specter$impl16951(self__.nav1,self__.nav2,meta16952__$1));
});
com.rpl.specter.impl.t_com$rpl$specter$impl16951.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_16953){
var self__ = this;
var _16953__$1 = this;
return self__.meta16952;
});
com.rpl.specter.impl.t_com$rpl$specter$impl16951.prototype.com$rpl$specter$protocols$RichNavigator$ = cljs.core.PROTOCOL_SENTINEL;
com.rpl.specter.impl.t_com$rpl$specter$impl16951.prototype.com$rpl$specter$protocols$RichNavigator$select_STAR_$arity$4 = (function (this$,vals,structure,next_fn){
var self__ = this;
var this$__$1 = this;
return com.rpl.specter.impl.exec_select_STAR_.call(null,self__.nav1,vals,structure,((function (this$__$1){
return (function (vals_next,structure_next){
return com.rpl.specter.impl.exec_select_STAR_.call(null,self__.nav2,vals_next,structure_next,next_fn);
});})(this$__$1))
);
});
com.rpl.specter.impl.t_com$rpl$specter$impl16951.prototype.com$rpl$specter$protocols$RichNavigator$transform_STAR_$arity$4 = (function (this$,vals,structure,next_fn){
var self__ = this;
var this$__$1 = this;
return com.rpl.specter.impl.exec_transform_STAR_.call(null,self__.nav1,vals,structure,((function (this$__$1){
return (function (vals_next,structure_next){
return com.rpl.specter.impl.exec_transform_STAR_.call(null,self__.nav2,vals_next,structure_next,next_fn);
});})(this$__$1))
);
});
com.rpl.specter.impl.t_com$rpl$specter$impl16951.getBasis = (function (){
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"nav1","nav1",-228471230,null),new cljs.core.Symbol(null,"nav2","nav2",2108276356,null),new cljs.core.Symbol(null,"meta16952","meta16952",1801914384,null)], null);
});
com.rpl.specter.impl.t_com$rpl$specter$impl16951.cljs$lang$type = true;
com.rpl.specter.impl.t_com$rpl$specter$impl16951.cljs$lang$ctorStr = "com.rpl.specter.impl/t_com$rpl$specter$impl16951";
com.rpl.specter.impl.t_com$rpl$specter$impl16951.cljs$lang$ctorPrWriter = (function (this__4161__auto__,writer__4162__auto__,opt__4163__auto__){
return cljs.core._write.call(null,writer__4162__auto__,"com.rpl.specter.impl/t_com$rpl$specter$impl16951");
});
/**
* Positional factory function for com.rpl.specter.impl/t_com$rpl$specter$impl16951.
*/
com.rpl.specter.impl.__GT_t_com$rpl$specter$impl16951 = (function com$rpl$specter$impl$combine_two_navs_$___GT_t_com$rpl$specter$impl16951(nav1__$1,nav2__$1,meta16952){
return (new com.rpl.specter.impl.t_com$rpl$specter$impl16951(nav1__$1,nav2__$1,meta16952));
});
}
return (new com.rpl.specter.impl.t_com$rpl$specter$impl16951(nav1,nav2,cljs.core.PersistentArrayMap.EMPTY));
});
goog.object.set(com.rpl.specter.impl.PathComposer,"null",true);
goog.object.set(com.rpl.specter.impl.do_comp_paths,"null",(function (o){
return com.rpl.specter.impl.coerce_path.call(null,o);
}));
goog.object.set(com.rpl.specter.impl.PathComposer,"_",true);
goog.object.set(com.rpl.specter.impl.do_comp_paths,"_",(function (o){
return com.rpl.specter.impl.coerce_path.call(null,o);
}));
cljs.core.PersistentVector.prototype.com$rpl$specter$impl$PathComposer$ = cljs.core.PROTOCOL_SENTINEL;
cljs.core.PersistentVector.prototype.com$rpl$specter$impl$PathComposer$do_comp_paths$arity$1 = (function (navigators){
var navigators__$1 = this;
var coerced = cljs.core.map.call(null,com.rpl.specter.impl.coerce_path,navigators__$1);
if(cljs.core.empty_QMARK_.call(null,coerced)){
return com.rpl.specter.impl.STAY_STAR_;
} else {
if(cljs.core._EQ_.call(null,(1),cljs.core.count.call(null,coerced))){
return cljs.core.first.call(null,coerced);
} else {
return cljs.core.reduce.call(null,com.rpl.specter.impl.combine_two_navs,coerced);
}
}
});
/**
* @interface
*/
com.rpl.specter.impl.PMutableCell = function(){};
com.rpl.specter.impl.set_cell = (function com$rpl$specter$impl$set_cell(cell,x){
if(((!((cell == null))) && (!((cell.com$rpl$specter$impl$PMutableCell$set_cell$arity$2 == null))))){
return cell.com$rpl$specter$impl$PMutableCell$set_cell$arity$2(cell,x);
} else {
var x__4211__auto__ = (((cell == null))?null:cell);
var m__4212__auto__ = (com.rpl.specter.impl.set_cell[goog.typeOf(x__4211__auto__)]);
if(!((m__4212__auto__ == null))){
return m__4212__auto__.call(null,cell,x);
} else {
var m__4212__auto____$1 = (com.rpl.specter.impl.set_cell["_"]);
if(!((m__4212__auto____$1 == null))){
return m__4212__auto____$1.call(null,cell,x);
} else {
throw cljs.core.missing_protocol.call(null,"PMutableCell.set_cell",cell);
}
}
}
});
/**
* @constructor
* @implements {com.rpl.specter.impl.PMutableCell}
*/
com.rpl.specter.impl.MutableCell = (function (q){
this.q = q;
});
com.rpl.specter.impl.MutableCell.prototype.com$rpl$specter$impl$PMutableCell$ = cljs.core.PROTOCOL_SENTINEL;
com.rpl.specter.impl.MutableCell.prototype.com$rpl$specter$impl$PMutableCell$set_cell$arity$2 = (function (this$,x){
var self__ = this;
var this$__$1 = this;
return self__.q = x;
});
com.rpl.specter.impl.MutableCell.getBasis = (function (){
return new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [cljs.core.with_meta(new cljs.core.Symbol(null,"q","q",-1965434072,null),new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"volatile-mutable","volatile-mutable",1731728411),true], null))], null);
});
com.rpl.specter.impl.MutableCell.cljs$lang$type = true;
com.rpl.specter.impl.MutableCell.cljs$lang$ctorStr = "com.rpl.specter.impl/MutableCell";
com.rpl.specter.impl.MutableCell.cljs$lang$ctorPrWriter = (function (this__4161__auto__,writer__4162__auto__,opt__4163__auto__){
return cljs.core._write.call(null,writer__4162__auto__,"com.rpl.specter.impl/MutableCell");
});
/**
* Positional factory function for com.rpl.specter.impl/MutableCell.
*/
com.rpl.specter.impl.__GT_MutableCell = (function com$rpl$specter$impl$__GT_MutableCell(q){
return (new com.rpl.specter.impl.MutableCell(q));
});
com.rpl.specter.impl.mutable_cell = (function com$rpl$specter$impl$mutable_cell(var_args){
var G__16955 = arguments.length;
switch (G__16955) {
case 0:
return com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$0();
break;
case 1:
return com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));
break;
default:
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
}
});
com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$0 = (function (){
return com.rpl.specter.impl.mutable_cell.call(null,null);
});
com.rpl.specter.impl.mutable_cell.cljs$core$IFn$_invoke$arity$1 = (function (init){
return (new com.rpl.specter.impl.MutableCell(init));
});
com.rpl.specter.impl.mutable_cell.cljs$lang$maxFixedArity = 1;
com.rpl.specter.impl.set_cell_BANG_ = (function com$rpl$specter$impl$set_cell_BANG_(cell,val){
return com.rpl.specter.impl.set_cell.call(null,cell,val);
});
com.rpl.specter.impl.get_cell = (function com$rpl$specter$impl$get_cell(cell){
return cell.q;
});
com.rpl.specter.impl.update_cell_BANG_ = (function com$rpl$specter$impl$update_cell_BANG_(cell,afn){
var ret = afn.call(null,com.rpl.specter.impl.get_cell.call(null,cell));
com.rpl.specter.impl.set_cell_BANG_.call(null,cell,ret);
return ret;
});
com.rpl.specter.impl.compiled_traverse_with_vals_STAR_ = (function com$rpl$specter$impl$compiled_traverse_with_vals_STAR_(path,result_fn,vals,structure){
return com.rpl.specter.impl.exec_select_STAR_.call(null,path,vals,structure,(function (vals__$1,structure__$1){
if((vals__$1 === cljs.core.PersistentVector.EMPTY)){
return result_fn.call(null,structure__$1);
} else {
return result_fn.call(null,cljs.core.conj.call(null,vals__$1,structure__$1));
}
}));
});
com.rpl.specter.impl.compiled_traverse_STAR_ = (function com$rpl$specter$impl$compiled_traverse_STAR_(path,result_fn,structure){
return com.rpl.specter.impl.compiled_traverse_with_vals_STAR_.call(null,path,result_fn,cljs.core.PersistentVector.EMPTY,structure);
});
com.rpl.specter.impl.do_compiled_traverse_STAR_ = (function com$rpl$specter$impl$do_compiled_traverse_STAR_(apath,structure){
if(typeof com.rpl.specter.impl.t_com$rpl$specter$impl16959 !== 'undefined'){
} else {
/**
* @constructor
* @implements {cljs.core.IMeta}
* @implements {cljs.core.IWithMeta}
* @implements {cljs.core.IReduce}
*/
com.rpl.specter.impl.t_com$rpl$specter$impl16959 = (function (apath,structure,meta16960){
this.apath = apath;
this.structure = structure;
this.meta16960 = meta16960;
this.cljs$lang$protocol_mask$partition0$ = 917504;
this.cljs$lang$protocol_mask$partition1$ = 0;
});
com.rpl.specter.impl.t_com$rpl$specter$impl16959.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (_16961,meta16960__$1){
var self__ = this;
var _16961__$1 = this;
return (new com.rpl.specter.impl.t_com$rpl$specter$impl16959(self__.apath,self__.structure,meta16960__$1));
});
com.rpl.specter.impl.t_com$rpl$specter$impl16959.prototype.cljs$core$IMeta$_meta$arity$1 = (function (_16961){
var self__ = this;
var _16961__$1 = this;
return self__.meta16960;
});
com.rpl.specter.impl.t_com$rpl$specter$impl16959.prototype.cljs$core$IReduce$_reduce$arity$2 = (function (this$,afn){
var self__ = this;
var this$__$1 = this;
return cljs.core._reduce.call(null,this$__$1,afn,afn.call(null));
});
com.rpl.specter.impl.t_com$rpl$specter$impl16959.prototype.cljs$core$IReduce$_reduce$arity$3 = (function (this$,afn,start){
var self__ = this;
var this$__$1 = this;
var cell = com.rpl.specter.impl.mutable_cell.call(null,start);
com.rpl.specter.impl.compiled_traverse_STAR_.call(null,self__.apath,((function (cell,this$__$1){
return (function (elem){
var curr = com.rpl.specter.impl.get_cell.call(null,cell);
var newv = afn.call(null,curr,elem);
com.rpl.specter.impl.set_cell_BANG_.call(null,cell,newv);
return newv;
});})(cell,this$__$1))
,self__.structure);
return com.rpl.specter.impl.get_cell.call(null,cell);
});
com.rpl.specter.impl.t_com$rpl$specter$impl16959.getBasis = (function (){
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"apath","apath",567854908,null),new cljs.core.Symbol(null,"structure","structure",-1090603686,null),new cljs.core.Symbol(null,"meta16960","meta16960",-1924152610,null)], null);
});
com.rpl.specter.impl.t_com$rpl$specter$impl16959.cljs$lang$type = true;
com.rpl.specter.impl.t_com$rpl$specter$impl16959.cljs$lang$ctorStr = "com.rpl.specter.impl/t_com$rpl$specter$impl16959";
com.rpl.specter.impl.t_com$rpl$specter$impl16959.cljs$lang$ctorPrWriter = (function (this__4161__auto__,writer__4162__auto__,opt__4163__auto__){
return cljs.core._write.call(null,writer__4162__auto__,"com.rpl.specter.impl/t_com$rpl$specter$impl16959");
});
/**
* Positional factory function for com.rpl.specter.impl/t_com$rpl$specter$impl16959.
*/
com.rpl.specter.impl.__GT_t_com$rpl$specter$impl16959 = (function com$rpl$specter$impl$do_compiled_traverse_STAR__$___GT_t_com$rpl$specter$impl16959(apath__$1,structure__$1,meta16960){
return (new com.rpl.specter.impl.t_com$rpl$specter$impl16959(apath__$1,structure__$1,meta16960));
});
}
return (new com.rpl.specter.impl.t_com$rpl$specter$impl16959(apath,structure,cljs.core.PersistentArrayMap.EMPTY));
});
com.rpl.specter.impl.do_compiled_traverse = (function com$rpl$specter$impl$do_compiled_traverse(apath,structure){
var traverser = com.rpl.specter.impl.do_compiled_traverse_STAR_.call(null,apath,structure);
if(typeof com.rpl.specter.impl.t_com$rpl$specter$impl16962 !== 'undefined'){
} else {
/**
* @constructor
* @implements {cljs.core.IMeta}
* @implements {cljs.core.IWithMeta}
* @implements {cljs.core.IReduce}
*/
com.rpl.specter.impl.t_com$rpl$specter$impl16962 = (function (apath,structure,traverser,meta16963){
this.apath = apath;
this.structure = structure;
this.traverser = traverser;
this.meta16963 = meta16963;
this.cljs$lang$protocol_mask$partition0$ = 917504;
this.cljs$lang$protocol_mask$partition1$ = 0;
});
com.rpl.specter.impl.t_com$rpl$specter$impl16962.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = ((function (traverser){
return (function (_16964,meta16963__$1){
var self__ = this;
var _16964__$1 = this;
return (new com.rpl.specter.impl.t_com$rpl$specter$impl16962(self__.apath,self__.structure,self__.traverser,meta16963__$1));
});})(traverser))
;
com.rpl.specter.impl.t_com$rpl$specter$impl16962.prototype.cljs$core$IMeta$_meta$arity$1 = ((function (traverser){
return (function (_16964){
var self__ = this;
var _16964__$1 = this;
return self__.meta16963;
});})(traverser))
;
com.rpl.specter.impl.t_com$rpl$specter$impl16962.prototype.cljs$core$IReduce$_reduce$arity$2 = ((function (traverser){
return (function (this$,afn){
var self__ = this;
var this$__$1 = this;
return cljs.core._reduce.call(null,this$__$1,afn,afn.call(null));
});})(traverser))
;
com.rpl.specter.impl.t_com$rpl$specter$impl16962.prototype.cljs$core$IReduce$_reduce$arity$3 = ((function (traverser){
return (function (this$,afn,start){
var self__ = this;
var this$__$1 = this;
var res = cljs.core._reduce.call(null,self__.traverser,afn,start);
return cljs.core.unreduced.call(null,res);
});})(traverser))
;
com.rpl.specter.impl.t_com$rpl$specter$impl16962.getBasis = ((function (traverser){
return (function (){
return new cljs.core.PersistentVector(null, 4, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"apath","apath",567854908,null),new cljs.core.Symbol(null,"structure","structure",-1090603686,null),new cljs.core.Symbol(null,"traverser","traverser",1631431381,null),new cljs.core.Symbol(null,"meta16963","meta16963",1593437849,null)], null);
});})(traverser))
;
com.rpl.specter.impl.t_com$rpl$specter$impl16962.cljs$lang$type = true;
com.rpl.specter.impl.t_com$rpl$specter$impl16962.cljs$lang$ctorStr = "com.rpl.specter.impl/t_com$rpl$specter$impl16962";
com.rpl.specter.impl.t_com$rpl$specter$impl16962.cljs$lang$ctorPrWriter = ((function (traverser){
return (function (this__4161__auto__,writer__4162__auto__,opt__4163__auto__){
return cljs.core._write.call(null,writer__4162__auto__,"com.rpl.specter.impl/t_com$rpl$specter$impl16962");
});})(traverser))
;
/**
* Positional factory function for com.rpl.specter.impl/t_com$rpl$specter$impl16962.
*/
com.rpl.specter.impl.__GT_t_com$rpl$specter$impl16962 = ((function (traverser){
return (function com$rpl$specter$impl$do_compiled_traverse_$___GT_t_com$rpl$specter$impl16962(apath__$1,structure__$1,traverser__$1,meta16963){
return (new com.rpl.specter.impl.t_com$rpl$specter$impl16962(apath__$1,structure__$1,traverser__$1,meta16963));
});})(traverser))
;
}
return (new com.rpl.specter.impl.t_com$rpl$specter$impl16962(apath,structure,traverser,cljs.core.PersistentArrayMap.EMPTY));
});
com.rpl.specter.impl.compiled_traverse_all_STAR_ = (function com$rpl$specter$impl$compiled_traverse_all_STAR_(path){
return (function (xf){
return (function() {
var G__16965 = null;
var G__16965__0 = (function (){
return xf.call(null);
});
var G__16965__1 = (function (result){
return xf.call(null,result);
});
var G__16965__2 = (function (result,input){
return cljs.core.reduce.call(null,(function (r,i){
return xf.call(null,r,i);
}),result,com.rpl.specter.impl.do_compiled_traverse_STAR_.call(null,path,input));
});
G__16965 = function(result,input){
switch(arguments.length){
case 0:
return G__16965__0.call(this);
case 1:
return G__16965__1.call(this,result);
case 2:
return G__16965__2.call(this,result,input);
}
throw(new Error('Invalid arity: ' + (arguments.length - 1)));
};
G__16965.cljs$core$IFn$_invoke$arity$0 = G__16965__0;
G__16965.cljs$core$IFn$_invoke$arity$1 = G__16965__1;
G__16965.cljs$core$IFn$_invoke$arity$2 = G__16965__2;
return G__16965;
})()
});
});
com.rpl.specter.impl.compiled_select_STAR_ = (function com$rpl$specter$impl$compiled_select_STAR_(path,structure){
var res = com.rpl.specter.impl.mutable_cell.call(null,cljs.core.transient$.call(null,cljs.core.PersistentVector.EMPTY));
var result_fn = ((function (res){
return (function (structure__$1){
var curr = com.rpl.specter.impl.get_cell.call(null,res);
return com.rpl.specter.impl.set_cell_BANG_.call(null,res,cljs.core.conj_BANG_.call(null,curr,structure__$1));
});})(res))
;
com.rpl.specter.impl.compiled_traverse_STAR_.call(null,path,result_fn,structure);
return cljs.core.persistent_BANG_.call(null,com.rpl.specter.impl.get_cell.call(null,res));
});
com.rpl.specter.impl.compiled_select_one_STAR_ = (function com$rpl$specter$impl$compiled_select_one_STAR_(path,structure){
var res = com.rpl.specter.impl.mutable_cell.call(null,com.rpl.specter.impl.NONE);
var result_fn = ((function (res){
return (function (structure__$1){
var curr = com.rpl.specter.impl.get_cell.call(null,res);
if((curr === com.rpl.specter.impl.NONE)){
return com.rpl.specter.impl.set_cell_BANG_.call(null,res,structure__$1);
} else {
return com.rpl.specter.impl.throw_illegal.call(null,"More than one element found in structure: ",structure__$1);
}
});})(res))
;
com.rpl.specter.impl.compiled_traverse_STAR_.call(null,path,result_fn,structure);
var ret = com.rpl.specter.impl.get_cell.call(null,res);
if((ret === com.rpl.specter.impl.NONE)){
return null;
} else {
return ret;
}
});
com.rpl.specter.impl.compiled_select_one_BANG__STAR_ = (function com$rpl$specter$impl$compiled_select_one_BANG__STAR_(path,structure){
var res = com.rpl.specter.impl.mutable_cell.call(null,com.rpl.specter.impl.NONE);
var result_fn = ((function (res){
return (function (structure__$1){
var curr = com.rpl.specter.impl.get_cell.call(null,res);
if((curr === com.rpl.specter.impl.NONE)){
return com.rpl.specter.impl.set_cell_BANG_.call(null,res,structure__$1);
} else {
return com.rpl.specter.impl.throw_illegal.call(null,"More than one element found in structure: ",structure__$1);
}
});})(res))
;
com.rpl.specter.impl.compiled_traverse_STAR_.call(null,path,result_fn,structure);
var ret = com.rpl.specter.impl.get_cell.call(null,res);
if((com.rpl.specter.impl.NONE === ret)){
com.rpl.specter.impl.throw_illegal.call(null,"Found no elements for select-one! on ",structure);
} else {
}
return ret;
});
com.rpl.specter.impl.compiled_select_any_STAR_ = (function com$rpl$specter$impl$compiled_select_any_STAR_(var_args){
var G__16967 = arguments.length;
switch (G__16967) {
case 2:
return com.rpl.specter.impl.compiled_select_any_STAR_.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));
break;
case 3:
return com.rpl.specter.impl.compiled_select_any_STAR_.cljs$core$IFn$_invoke$arity$3((arguments[(0)]),(arguments[(1)]),(arguments[(2)]));
break;
default:
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));
}
});
com.rpl.specter.impl.compiled_select_any_STAR_.cljs$core$IFn$_invoke$arity$2 = (function (path,structure){
return com.rpl.specter.impl.compiled_select_any_STAR_.call(null,path,cljs.core.PersistentVector.EMPTY,structure);
});
com.rpl.specter.impl.compiled_select_any_STAR_.cljs$core$IFn$_invoke$arity$3 = (function (path,vals,structure){
return cljs.core.unreduced.call(null,com.rpl.specter.impl.compiled_traverse_with_vals_STAR_.call(null,path,cljs.core.reduced,vals,structure));
});
com.rpl.specter.impl.compiled_select_any_STAR_.cljs$lang$maxFixedArity = 3;
com.rpl.specter.impl.compiled_select_first_STAR_ = (function com$rpl$specter$impl$compiled_select_first_STAR_(path,structure){
var ret = com.rpl.specter.impl.compiled_select_any_STAR_.call(null,path,structure);
if((ret === com.rpl.specter.impl.NONE)){
return null;
} else {
return ret;
}
});
com.rpl.specter.impl.compiled_selected_any_QMARK__STAR_ = (function com$rpl$specter$impl$compiled_selected_any_QMARK__STAR_(path,structure){
return !((com.rpl.specter.impl.NONE === com.rpl.specter.impl.compiled_select_any_STAR_.call(null,path,structure)));
});
com.rpl.specter.impl.terminal_STAR_ = (function com$rpl$specter$impl$terminal_STAR_(afn,vals,structure){
if((vals === cljs.core.PersistentVector.EMPTY)){
return afn.call(null,structure);
} else {
return cljs.core.apply.call(null,afn,cljs.core.conj.call(null,vals,structure));
}
});
com.rpl.specter.impl.compiled_transform_STAR_ = (function com$rpl$specter$impl$compiled_transform_STAR_(nav,transform_fn,structure){
return com.rpl.specter.impl.exec_transform_STAR_.call(null,nav,cljs.core.PersistentVector.EMPTY,structure,(function (vals,structure__$1){
return com.rpl.specter.impl.terminal_STAR_.call(null,transform_fn,vals,structure__$1);
}));
});
com.rpl.specter.impl.compiled_vtransform_STAR_ = (function com$rpl$specter$impl$compiled_vtransform_STAR_(nav,transform_fn,structure){
return com.rpl.specter.impl.exec_transform_STAR_.call(null,nav,cljs.core.PersistentVector.EMPTY,structure,transform_fn);
});
com.rpl.specter.impl.fn_invocation_QMARK_ = (function com$rpl$specter$impl$fn_invocation_QMARK_(f){
return (((f instanceof cljs.core.LazySeq)) || (cljs.core.list_QMARK_.call(null,f)));
});
/**
* @constructor
* @implements {cljs.core.IRecord}
* @implements {cljs.core.IEquiv}
* @implements {cljs.core.IHash}
* @implements {cljs.core.ICollection}
* @implements {cljs.core.ICounted}
* @implements {cljs.core.ISeqable}
* @implements {cljs.core.IMeta}
* @implements {cljs.core.ICloneable}
* @implements {cljs.core.IPrintWithWriter}
* @implements {cljs.core.IIterable}
* @implements {cljs.core.IWithMeta}
* @implements {cljs.core.IAssociative}
* @implements {cljs.core.IMap}
* @implements {cljs.core.ILookup}
*/
com.rpl.specter.impl.LocalSym = (function (val,sym,__meta,__extmap,__hash){
this.val = val;
this.sym = sym;
this.__meta = __meta;
this.__extmap = __extmap;
this.__hash = __hash;
this.cljs$lang$protocol_mask$partition0$ = 2229667594;
this.cljs$lang$protocol_mask$partition1$ = 139264;
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$ILookup$_lookup$arity$2 = (function (this__4172__auto__,k__4173__auto__){
var self__ = this;
var this__4172__auto____$1 = this;
return this__4172__auto____$1.cljs$core$ILookup$_lookup$arity$3(null,k__4173__auto__,null);
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$ILookup$_lookup$arity$3 = (function (this__4174__auto__,k16970,else__4175__auto__){
var self__ = this;
var this__4174__auto____$1 = this;
var G__16974 = k16970;
var G__16974__$1 = (((G__16974 instanceof cljs.core.Keyword))?G__16974.fqn:null);
switch (G__16974__$1) {
case "val":
return self__.val;
break;
case "sym":
return self__.sym;
break;
default:
return cljs.core.get.call(null,self__.__extmap,k16970,else__4175__auto__);
}
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$IPrintWithWriter$_pr_writer$arity$3 = (function (this__4186__auto__,writer__4187__auto__,opts__4188__auto__){
var self__ = this;
var this__4186__auto____$1 = this;
var pr_pair__4189__auto__ = ((function (this__4186__auto____$1){
return (function (keyval__4190__auto__){
return cljs.core.pr_sequential_writer.call(null,writer__4187__auto__,cljs.core.pr_writer,""," ","",opts__4188__auto__,keyval__4190__auto__);
});})(this__4186__auto____$1))
;
return cljs.core.pr_sequential_writer.call(null,writer__4187__auto__,pr_pair__4189__auto__,"#com.rpl.specter.impl.LocalSym{",", ","}",opts__4188__auto__,cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"val","val",128701612),self__.val],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"sym","sym",-1444860305),self__.sym],null))], null),self__.__extmap));
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$IIterable$_iterator$arity$1 = (function (G__16969){
var self__ = this;
var G__16969__$1 = this;
return (new cljs.core.RecordIter((0),G__16969__$1,2,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"val","val",128701612),new cljs.core.Keyword(null,"sym","sym",-1444860305)], null),(cljs.core.truth_(self__.__extmap)?cljs.core._iterator.call(null,self__.__extmap):cljs.core.nil_iter.call(null))));
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$IMeta$_meta$arity$1 = (function (this__4170__auto__){
var self__ = this;
var this__4170__auto____$1 = this;
return self__.__meta;
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$ICloneable$_clone$arity$1 = (function (this__4167__auto__){
var self__ = this;
var this__4167__auto____$1 = this;
return (new com.rpl.specter.impl.LocalSym(self__.val,self__.sym,self__.__meta,self__.__extmap,self__.__hash));
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$ICounted$_count$arity$1 = (function (this__4176__auto__){
var self__ = this;
var this__4176__auto____$1 = this;
return (2 + cljs.core.count.call(null,self__.__extmap));
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$IHash$_hash$arity$1 = (function (this__4168__auto__){
var self__ = this;
var this__4168__auto____$1 = this;
var h__4030__auto__ = self__.__hash;
if(!((h__4030__auto__ == null))){
return h__4030__auto__;
} else {
var h__4030__auto____$1 = ((function (h__4030__auto__,this__4168__auto____$1){
return (function (coll__4169__auto__){
return (1023826277 ^ cljs.core.hash_unordered_coll.call(null,coll__4169__auto__));
});})(h__4030__auto__,this__4168__auto____$1))
.call(null,this__4168__auto____$1);
self__.__hash = h__4030__auto____$1;
return h__4030__auto____$1;
}
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$IEquiv$_equiv$arity$2 = (function (this16971,other16972){
var self__ = this;
var this16971__$1 = this;
return ((!((other16972 == null))) && ((this16971__$1.constructor === other16972.constructor)) && (cljs.core._EQ_.call(null,this16971__$1.val,other16972.val)) && (cljs.core._EQ_.call(null,this16971__$1.sym,other16972.sym)) && (cljs.core._EQ_.call(null,this16971__$1.__extmap,other16972.__extmap)));
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$IMap$_dissoc$arity$2 = (function (this__4181__auto__,k__4182__auto__){
var self__ = this;
var this__4181__auto____$1 = this;
if(cljs.core.contains_QMARK_.call(null,new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"val","val",128701612),null,new cljs.core.Keyword(null,"sym","sym",-1444860305),null], null), null),k__4182__auto__)){
return cljs.core.dissoc.call(null,cljs.core._with_meta.call(null,cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,this__4181__auto____$1),self__.__meta),k__4182__auto__);
} else {
return (new com.rpl.specter.impl.LocalSym(self__.val,self__.sym,self__.__meta,cljs.core.not_empty.call(null,cljs.core.dissoc.call(null,self__.__extmap,k__4182__auto__)),null));
}
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$IAssociative$_assoc$arity$3 = (function (this__4179__auto__,k__4180__auto__,G__16969){
var self__ = this;
var this__4179__auto____$1 = this;
var pred__16975 = cljs.core.keyword_identical_QMARK_;
var expr__16976 = k__4180__auto__;
if(cljs.core.truth_(pred__16975.call(null,new cljs.core.Keyword(null,"val","val",128701612),expr__16976))){
return (new com.rpl.specter.impl.LocalSym(G__16969,self__.sym,self__.__meta,self__.__extmap,null));
} else {
if(cljs.core.truth_(pred__16975.call(null,new cljs.core.Keyword(null,"sym","sym",-1444860305),expr__16976))){
return (new com.rpl.specter.impl.LocalSym(self__.val,G__16969,self__.__meta,self__.__extmap,null));
} else {
return (new com.rpl.specter.impl.LocalSym(self__.val,self__.sym,self__.__meta,cljs.core.assoc.call(null,self__.__extmap,k__4180__auto__,G__16969),null));
}
}
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$ISeqable$_seq$arity$1 = (function (this__4184__auto__){
var self__ = this;
var this__4184__auto____$1 = this;
return cljs.core.seq.call(null,cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(new cljs.core.MapEntry(new cljs.core.Keyword(null,"val","val",128701612),self__.val,null)),(new cljs.core.MapEntry(new cljs.core.Keyword(null,"sym","sym",-1444860305),self__.sym,null))], null),self__.__extmap));
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (this__4171__auto__,G__16969){
var self__ = this;
var this__4171__auto____$1 = this;
return (new com.rpl.specter.impl.LocalSym(self__.val,self__.sym,G__16969,self__.__extmap,self__.__hash));
});
com.rpl.specter.impl.LocalSym.prototype.cljs$core$ICollection$_conj$arity$2 = (function (this__4177__auto__,entry__4178__auto__){
var self__ = this;
var this__4177__auto____$1 = this;
if(cljs.core.vector_QMARK_.call(null,entry__4178__auto__)){
return this__4177__auto____$1.cljs$core$IAssociative$_assoc$arity$3(null,cljs.core._nth.call(null,entry__4178__auto__,(0)),cljs.core._nth.call(null,entry__4178__auto__,(1)));
} else {
return cljs.core.reduce.call(null,cljs.core._conj,this__4177__auto____$1,entry__4178__auto__);
}
});
com.rpl.specter.impl.LocalSym.getBasis = (function (){
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Symbol(null,"val","val",1769233139,null),new cljs.core.Symbol(null,"sym","sym",195671222,null)], null);
});
com.rpl.specter.impl.LocalSym.cljs$lang$type = true;
com.rpl.specter.impl.LocalSym.cljs$lang$ctorPrSeq = (function (this__4208__auto__){
return (new cljs.core.List(null,"com.rpl.specter.impl/LocalSym",null,(1),null));
});
com.rpl.specter.impl.LocalSym.cljs$lang$ctorPrWriter = (function (this__4208__auto__,writer__4209__auto__){
return cljs.core._write.call(null,writer__4209__auto__,"com.rpl.specter.impl/LocalSym");
});
/**
* Positional factory function for com.rpl.specter.impl/LocalSym.
*/
com.rpl.specter.impl.__GT_LocalSym = (function com$rpl$specter$impl$__GT_LocalSym(val,sym){
return (new com.rpl.specter.impl.LocalSym(val,sym,null,null,null));
});
/**
* Factory function for com.rpl.specter.impl/LocalSym, taking a map of keywords to field values.
*/
com.rpl.specter.impl.map__GT_LocalSym = (function com$rpl$specter$impl$map__GT_LocalSym(G__16973){
return (new com.rpl.specter.impl.LocalSym(new cljs.core.Keyword(null,"val","val",128701612).cljs$core$IFn$_invoke$arity$1(G__16973),new cljs.core.Keyword(null,"sym","sym",-1444860305).cljs$core$IFn$_invoke$arity$1(G__16973),null,cljs.core.not_empty.call(null,cljs.core.dissoc.call(null,G__16973,new cljs.core.Keyword(null,"val","val",128701612),new cljs.core.Keyword(null,"sym","sym",-1444860305))),null));
});
/**
* @constructor
* @implements {cljs.core.IRecord}
* @implements {cljs.core.IEquiv}
* @implements {cljs.core.IHash}
* @implements {cljs.core.ICollection}
* @implements {cljs.core.ICounted}
* @implements {cljs.core.ISeqable}
* @implements {cljs.core.IMeta}
* @implements {cljs.core.ICloneable}
* @implements {cljs.core.IPrintWithWriter}
* @implements {cljs.core.IIterable}
* @implements {cljs.core.IWithMeta}
* @implements {cljs.core.IAssociative}
* @implements {cljs.core.IMap}
* @implements {cljs.core.ILookup}
*/
com.rpl.specter.impl.VarUse = (function (val,avar,sym,__meta,__extmap,__hash){
this.val = val;
this.avar = avar;
this.sym = sym;
this.__meta = __meta;
this.__extmap = __extmap;
this.__hash = __hash;
this.cljs$lang$protocol_mask$partition0$ = 2229667594;
this.cljs$lang$protocol_mask$partition1$ = 139264;
});
com.rpl.specter.impl.VarUse.prototype.cljs$core$ILookup$_lookup$arity$2 = (function (this__4172__auto__,k__4173__auto__){
var self__ = this;
var this__4172__auto____$1 = this;
return this__4172__auto____$1.cljs$core$ILookup$_lookup$arity$3(null,k__4173__auto__,null);
});
com.rpl.specter.impl.VarUse.prototype.cljs$core$ILookup$_lookup$arity$3 = (function (this__4174__auto__,k16980,else__4175__auto__){
var self__ = this;
var this__4174__auto____$1 = this;
var G__16984 = k16980;
var G__16984__$1 = (((G__16984 instanceof cljs.core.Keyword))?G__16984.fqn:null);
switch (G__16984__$1) {
case "val":
return self__.val;
break;
case "avar":
return self__.avar;
break;
case "sym":
return self__.sym;
break;
default:
return cljs.core.get.call(null,self__.__extmap,k16980,else__4