squint-cljs 0.10.185 → 0.11.187

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,20 +4,20 @@ import "./node.js";
4
4
  import "./compiler.node.js";
5
5
  const shadow_esm_import = function(x) { return import(x) };
6
6
  import*as esm_import$fs from"fs";import*as esm_import$net from"net";
7
- var I9=function(a,b){a=a.indexOf(b);if(a<0)throw Error("out of input");return a},J9=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},K9=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},L9=function(a){return console.debug($APP.tq.h(" ",a))},yja=function(a){return function(b,c){b=$APP.Ze(b);var d=$APP.Wd.h(b,$APP.jt),e=$APP.Wd.h(b,xja);c=$APP.Kh.j(c,"id",d);c=$APP.p(e)?$APP.Kh.j(c,"session",e):c;return a.h?a.h(b,c):a.call(null,b,c)}},Aja=function(){var a=
8
- zja;return function(b,c){b=$APP.dn.j(b,M9,$APP.vi);return a.h?a.h(b,c):a.call(null,b,c)}},Cja=function(){var a=Bja();return function(b,c){L9($APP.z(["request",b]));return a.h?a.h(b,c):a.call(null,b,c)}},Dja=function(a){return function(b,c){L9($APP.z(["response",c]));return a.h?a.h(b,c):a.call(null,b,c)}},Bja=function(){var a=Aja();return function(b,c){return a.h?a.h(b,c):a.call(null,b,c)}},N9=function(a){return $APP.Kh.j($APP.Vh(new $APP.E(null,3,5,$APP.F,["major","minor","incremental"],null),$APP.Iv.g(a.split("."))),
9
- "version-string",a)},Eja=function(a,b,c){if($APP.p(a))if(a=O9.g?O9.g(a):O9.call(null,a),$APP.p(a)){b=$APP.Ze(b);var d=$APP.Wd.h(b,$APP.q9),e=$APP.Wd.h(b,$APP.k9),f=$APP.Wd.h(b,$APP.s9);b=$APP.ki;var h=$APP.ii,k=$APP.T6;$APP.ki=e;$APP.ii=f;$APP.T6=d;try{var m=new $APP.Aa;d=$APP.Ca;e=$APP.Da;$APP.Ca=!0;$APP.Da=function(n){return m.append(n)};try{a.g?a.g(c):a.call(null,c)}finally{$APP.Da=e,$APP.Ca=d}return""+$APP.H.g(m)}finally{$APP.T6=k,$APP.ii=h,$APP.ki=b}}else return L9($APP.z(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"])),
10
- $APP.Ri.l($APP.z([c]));else return $APP.Ri.l($APP.z([c]))},Fja=function(a){a=$APP.Hv(a,new $APP.G(null,4,[$APP.uq,$APP.Aq,$APP.yv,!0,$APP.mv,!0,$APP.Dq,!0],null),$APP.Db(P9));var b=$APP.Ze(a),c=$APP.Wd.h(b,$APP.Gv);a=$APP.Wd.h(b,$APP.S);$APP.Bf(P9,b);b=$APP.dk("(async function () {\n%s\n}) ()","%s",c);$APP.Bf(Q9,a);return b},Lja=function(a,b){var c=$APP.Ze(a);$APP.Wd.h(c,$APP.S);a=$APP.Wd.h(c,Gja);$APP.Wd.h(c,$APP.il);$APP.Wd.h(c,Hja);$APP.Wd.h(c,Ija);return Promise.resolve(a).then(Fja).then(function(d){$APP.hJ.l($APP.z(["About to eval:"]));
11
- $APP.hJ.l($APP.z([d]));return eval(d)}).then(function(d){d=new $APP.G(null,2,["ns",""+$APP.H.g($APP.Db(Q9)),"value",Eja(Jja.g(c),Kja.g(c),d)],null);return b.h?b.h(c,d):b.call(null,c,d)}).catch(function(d){console.error(d);var e=$APP.Iz.g($APP.tj(d));e=$APP.p(e)?e:d.message;$APP.p(e)&&(e=new $APP.G(null,1,["err",""+$APP.H.g(e)+"\n"],null),b.h?b.h(c,e):b.call(null,c,e));d=new $APP.G(null,2,["ex",""+$APP.H.g(d),"ns",""+$APP.H.g($APP.ds)],null);return b.h?b.h(c,d):b.call(null,c,d)}).finally(function(){var d=
12
- new $APP.G(null,2,["ns",""+$APP.H.g($APP.Db(Q9)),"status",new $APP.E(null,1,5,$APP.F,["done"],null)],null);return b.h?b.h(c,d):b.call(null,c,d)})},R9=function(a){a=$APP.Ze(a);$APP.Wd.h(a,$APP.S);return null},zja=function(a,b){a=$APP.Ze(a);var c=$APP.Wd.h(a,M9),d=$APP.Wd.h(S9,c);if($APP.p(d))return d.h?d.h(a,b):d.call(null,a,b);console.warn($APP.tq.h(" ",$APP.z(["Unhandled operation",c])));c=new $APP.G(null,1,["status",new $APP.E(null,3,5,$APP.F,["error","unknown-op","done"],null)],null);return b.h?
13
- b.h(a,c):b.call(null,a,c)},Mja=function(a){return function(b,c){return a.write(T9(c))}},Nja=function(a,b){L9($APP.z(["Connection accepted"]));b.setNoDelay(!0);var c=Cja(),d=yja(Dja(Mja(b))),e=$APP.Vi.g(null);b.on("data",function(f){var h=$APP.Db(e);if($APP.p(h)){f=""+$APP.H.g(h)+$APP.H.g(f);$APP.Bf(e,null);var k=f}else k=f;a:{f=$APP.z([$APP.Jv,!0]);for(h=$APP.cg;;){var m=$APP.yf.j(U9,k,f);k=$APP.y.j(m,0,null);m=$APP.y.j(m,1,null);if(k==null){h=new $APP.E(null,2,5,$APP.F,[h,m],null);break a}h=$APP.ue.h(h,
14
- k);k=m}h=void 0}f=$APP.y.j(h,0,null);h=$APP.y.j(h,1,null);$APP.mk(h)||$APP.Bf(e,h);f=$APP.t(f);h=null;for(var n=m=0;;)if(n<m)k=h.ea(null,n),c(k,d),n+=1;else if(f=$APP.t(f))h=f,$APP.Od(h)?(f=$APP.kc(h),m=$APP.lc(h),h=f,k=$APP.nd(f),f=m,m=k):(k=$APP.u(h),c(k,d),f=$APP.w(h),h=null,m=0),n=0;else return null});return b.on("close",function(f){return $APP.p(f)?L9($APP.z(["Connection lost"])):L9($APP.z(["Connection closed"]))})},Ija=new $APP.D(null,"_line","_line",232847719),Kja=new $APP.D("nrepl.middleware.print",
15
- "options","nrepl.middleware.print/options",868480159),xja=new $APP.D(null,"session","session",1008279103),Oja=new $APP.D(null,"lookup","lookup",1225356838),Pja=new $APP.D(null,"load-file","load-file",-424586670),Hja=new $APP.D(null,"_load-file?","_load-file?",-1198848711),M9=new $APP.D(null,"op","op",-1882987955),Qja=new $APP.D(null,"describe","describe",1369790582),Gja=new $APP.D(null,"code","code",1586293142),Rja=new $APP.D(null,"eldoc","eldoc",-1321421900),Sja=new $APP.D(null,"log_level","log_level",
16
- -1756736313),Jja=new $APP.D("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),Tja=new $APP.D(null,"clone","clone",711747572),Uja=new $APP.D(null,"close","close",1835149582),Vja=new $APP.D(null,"info","info",-317069002),Wja=new $APP.D(null,"host","host",-1558485167),Xja=new $APP.D(null,"complete","complete",-500388775);var V9=function V9(a,b){switch(""+$APP.H.g(K9(a,1))){case "i":return a=J9(a,1),b=I9(a,"e"),new $APP.E(null,2,5,$APP.F,[parseInt(K9(a,b)),J9(a,b+1)],null);case "l":var d=a=J9(a,1);for(a=$APP.ac($APP.cg);;){if($APP.x.h(""+$APP.H.g(K9(d,1)),"e"))return new $APP.E(null,2,5,$APP.F,[$APP.dc(a),J9(d,1)],null);var e=V9.h?V9.h(d,b):V9.call(null,d,b),f=$APP.y.j(e,0,null),h=$APP.y.j(e,1,null);e=h;a=$APP.Yf.h(a,f);d=e}break;case "d":a=J9(a,1);f=$APP.Ze(b);f=$APP.Wd.h(f,$APP.Jv);d=a;for(e=$APP.ac($APP.Ye);;){if($APP.x.h(""+
17
- $APP.H.g(K9(d,1)),"e"))return new $APP.E(null,2,5,$APP.F,[$APP.dc(e),J9(d,1)],null);a=V9.h?V9.h(d,b):V9.call(null,d,b);d=$APP.y.j(a,0,null);h=$APP.y.j(a,1,null);h=V9.h?V9.h(h,b):V9.call(null,h,b);a=$APP.y.j(h,0,null);h=$APP.y.j(h,1,null);d=$APP.p(f)?$APP.vi.g(d):d;a=$APP.Og.j(e,d,a);d=h;e=a}break;default:return b=I9(a,":"),f=parseInt(K9(a,b)),a=J9(a,b+1),new $APP.E(null,2,5,$APP.F,[""+$APP.H.g(K9(a,f)),J9(a,f)],null)}},U9=function U9(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),
7
+ var I9=function(a,b){a=a.indexOf(b);if(a<0)throw Error("out of input");return a},J9=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},K9=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},L9=function(a){return console.debug($APP.uq.h(" ",a))},qka=function(a){return function(b,c){b=$APP.$e(b);var d=$APP.Vd.h(b,$APP.pt),e=$APP.Vd.h(b,pka);c=$APP.Lh.j(c,"id",d);c=$APP.p(e)?$APP.Lh.j(c,"session",e):c;return a.h?a.h(b,c):a.call(null,b,c)}},ska=function(){var a=
8
+ rka;return function(b,c){b=$APP.en.j(b,M9,$APP.wi);return a.h?a.h(b,c):a.call(null,b,c)}},uka=function(){var a=tka();return function(b,c){L9($APP.z(["request",b]));return a.h?a.h(b,c):a.call(null,b,c)}},vka=function(a){return function(b,c){L9($APP.z(["response",c]));return a.h?a.h(b,c):a.call(null,b,c)}},tka=function(){var a=ska();return function(b,c){return a.h?a.h(b,c):a.call(null,b,c)}},N9=function(a){return $APP.Lh.j($APP.Wh(new $APP.E(null,3,5,$APP.F,["major","minor","incremental"],null),$APP.cw.g(a.split("."))),
9
+ "version-string",a)},wka=function(a,b,c){if($APP.p(a))if(a=O9.g?O9.g(a):O9.call(null,a),$APP.p(a)){b=$APP.$e(b);var d=$APP.Vd.h(b,$APP.q9),e=$APP.Vd.h(b,$APP.k9),f=$APP.Vd.h(b,$APP.s9);b=$APP.li;var h=$APP.ji,k=$APP.T6;$APP.li=e;$APP.ji=f;$APP.T6=d;try{var m=new $APP.za;d=$APP.Ca;e=$APP.Da;$APP.Ca=!0;$APP.Da=function(n){return m.append(n)};try{a.g?a.g(c):a.call(null,c)}finally{$APP.Da=e,$APP.Ca=d}return""+$APP.H.g(m)}finally{$APP.T6=k,$APP.ji=h,$APP.li=b}}else return L9($APP.z(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"])),
10
+ $APP.Si.l($APP.z([c]));else return $APP.Si.l($APP.z([c]))},xka=function(a){a=$APP.bw(a,new $APP.G(null,4,[$APP.vq,$APP.Bq,$APP.Tv,!0,$APP.Hv,!0,$APP.Eq,!0],null),$APP.Db(P9));var b=$APP.$e(a),c=$APP.Vd.h(b,$APP.aw);a=$APP.Vd.h(b,$APP.T);$APP.Cf(P9,b);b=$APP.ek("(async function () {\n%s\n}) ()","%s",c);$APP.Cf(Q9,a);return b},Dka=function(a,b){var c=$APP.$e(a);$APP.Vd.h(c,$APP.T);a=$APP.Vd.h(c,yka);$APP.Vd.h(c,$APP.jl);$APP.Vd.h(c,zka);$APP.Vd.h(c,Aka);return Promise.resolve(a).then(xka).then(function(d){$APP.lJ.l($APP.z(["About to eval:"]));
11
+ $APP.lJ.l($APP.z([d]));return eval(d)}).then(function(d){d=new $APP.G(null,2,["ns",""+$APP.H.g($APP.Db(Q9)),"value",wka(Bka.g(c),Cka.g(c),d)],null);return b.h?b.h(c,d):b.call(null,c,d)}).catch(function(d){console.error(d);var e=$APP.Tu.g($APP.uj(d));e=$APP.p(e)?e:d.message;$APP.p(e)&&(e=new $APP.G(null,1,["err",""+$APP.H.g(e)+"\n"],null),b.h?b.h(c,e):b.call(null,c,e));d=new $APP.G(null,2,["ex",""+$APP.H.g(d),"ns",""+$APP.H.g($APP.Bs)],null);return b.h?b.h(c,d):b.call(null,c,d)}).finally(function(){var d=
12
+ new $APP.G(null,2,["ns",""+$APP.H.g($APP.Db(Q9)),"status",new $APP.E(null,1,5,$APP.F,["done"],null)],null);return b.h?b.h(c,d):b.call(null,c,d)})},R9=function(a){a=$APP.$e(a);$APP.Vd.h(a,$APP.T);return null},rka=function(a,b){a=$APP.$e(a);var c=$APP.Vd.h(a,M9),d=$APP.Vd.h(S9,c);if($APP.p(d))return d.h?d.h(a,b):d.call(null,a,b);console.warn($APP.uq.h(" ",$APP.z(["Unhandled operation",c])));c=new $APP.G(null,1,["status",new $APP.E(null,3,5,$APP.F,["error","unknown-op","done"],null)],null);return b.h?
13
+ b.h(a,c):b.call(null,a,c)},Eka=function(a){return function(b,c){return a.write(T9(c))}},Fka=function(a,b){L9($APP.z(["Connection accepted"]));b.setNoDelay(!0);var c=uka(),d=qka(vka(Eka(b))),e=$APP.Wi.g(null);b.on("data",function(f){var h=$APP.Db(e);if($APP.p(h)){f=""+$APP.H.g(h)+$APP.H.g(f);$APP.Cf(e,null);var k=f}else k=f;a:{f=$APP.z([$APP.dw,!0]);for(h=$APP.dg;;){var m=$APP.zf.j(U9,k,f);k=$APP.y.j(m,0,null);m=$APP.y.j(m,1,null);if(k==null){h=new $APP.E(null,2,5,$APP.F,[h,m],null);break a}h=$APP.ve.h(h,
14
+ k);k=m}h=void 0}f=$APP.y.j(h,0,null);h=$APP.y.j(h,1,null);$APP.nk(h)||$APP.Cf(e,h);f=$APP.t(f);h=null;for(var n=m=0;;)if(n<m)k=h.ea(null,n),c(k,d),n+=1;else if(f=$APP.t(f))h=f,$APP.Od(h)?(f=$APP.kc(h),m=$APP.lc(h),h=f,k=$APP.nd(f),f=m,m=k):(k=$APP.u(h),c(k,d),f=$APP.w(h),h=null,m=0),n=0;else return null});return b.on("close",function(f){return $APP.p(f)?L9($APP.z(["Connection lost"])):L9($APP.z(["Connection closed"]))})},Aka=new $APP.D(null,"_line","_line",232847719),Cka=new $APP.D("nrepl.middleware.print",
15
+ "options","nrepl.middleware.print/options",868480159),pka=new $APP.D(null,"session","session",1008279103),Gka=new $APP.D(null,"lookup","lookup",1225356838),Hka=new $APP.D(null,"load-file","load-file",-424586670),zka=new $APP.D(null,"_load-file?","_load-file?",-1198848711),M9=new $APP.D(null,"op","op",-1882987955),Ika=new $APP.D(null,"describe","describe",1369790582),yka=new $APP.D(null,"code","code",1586293142),Jka=new $APP.D(null,"eldoc","eldoc",-1321421900),Kka=new $APP.D(null,"log_level","log_level",
16
+ -1756736313),Bka=new $APP.D("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),Lka=new $APP.D(null,"clone","clone",711747572),Mka=new $APP.D(null,"close","close",1835149582),Nka=new $APP.D(null,"info","info",-317069002),Oka=new $APP.D(null,"host","host",-1558485167),Pka=new $APP.D(null,"complete","complete",-500388775);var V9=function V9(a,b){switch(""+$APP.H.g(K9(a,1))){case "i":return a=J9(a,1),b=I9(a,"e"),new $APP.E(null,2,5,$APP.F,[parseInt(K9(a,b)),J9(a,b+1)],null);case "l":var d=a=J9(a,1);for(a=$APP.$b($APP.dg);;){if($APP.x.h(""+$APP.H.g(K9(d,1)),"e"))return new $APP.E(null,2,5,$APP.F,[$APP.cc(a),J9(d,1)],null);var e=V9.h?V9.h(d,b):V9.call(null,d,b),f=$APP.y.j(e,0,null),h=$APP.y.j(e,1,null);e=h;a=$APP.Zf.h(a,f);d=e}break;case "d":a=J9(a,1);f=$APP.$e(b);f=$APP.Vd.h(f,$APP.dw);d=a;for(e=$APP.$b($APP.Ze);;){if($APP.x.h(""+
17
+ $APP.H.g(K9(d,1)),"e"))return new $APP.E(null,2,5,$APP.F,[$APP.cc(e),J9(d,1)],null);a=V9.h?V9.h(d,b):V9.call(null,d,b);d=$APP.y.j(a,0,null);h=$APP.y.j(a,1,null);h=V9.h?V9.h(h,b):V9.call(null,h,b);a=$APP.y.j(h,0,null);h=$APP.y.j(h,1,null);d=$APP.p(f)?$APP.wi.g(d):d;a=$APP.Pg.j(e,d,a);d=h;e=a}break;default:return b=I9(a,":"),f=parseInt(K9(a,b)),a=J9(a,b+1),new $APP.E(null,2,5,$APP.F,[""+$APP.H.g(K9(a,f)),J9(a,f)],null)}},U9=function U9(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),
18
18
  e+=1;else break;return U9.l(arguments[0],1<c.length?new $APP.Lc(c.slice(1),0,null):null)};U9.l=function(a,b){try{return V9(a,b)}catch(c){if(c instanceof Error)return new $APP.E(null,2,5,$APP.F,[null,a],null);throw c;}};U9.m=1;U9.o=function(a){var b=$APP.u(a);a=$APP.w(a);return this.l(b,a)};
19
- var T9=function T9(a){for(;;){if(typeof a==="string")return""+$APP.H.g(Buffer.from(a).length)+":"+$APP.H.g(a);if(a instanceof $APP.D||a instanceof $APP.r)a=""+$APP.H.g(function(){var c=$APP.Ce(a);return $APP.p(c)?""+$APP.H.g(c)+"/":null}())+$APP.H.g($APP.Uh(a));else return typeof a==="number"?"i"+$APP.H.g(a)+"e":$APP.Jd(a)||$APP.Nd(a)||a==null?"l"+$APP.H.g($APP.yf.h($APP.H,$APP.ik.h(T9,a)))+"e":$APP.Ld(a)?"d"+$APP.H.g($APP.yf.h($APP.H,$APP.ik.h(function(){return function(c){var d=$APP.y.j(c,0,null);
20
- c=$APP.y.j(c,1,null);return""+$APP.H.g(T9.g?T9.g(d):T9.call(null,d))+$APP.H.g(T9.g?T9.g(c):T9.call(null,c))}}(a),$APP.fJ.h($APP.u,a))))+"e":null}};var Q9=$APP.Vi.g($APP.ds),O9=new $APP.G(null,1,["cider.nrepl.pprint/pprint",$APP.z9],null);$APP.Vi.g(!1);
21
- var P9=$APP.Vi.g(null),S9=$APP.qh([Oja,Uja,Pja,Rja,Tja,Qja,Vja,Xja,$APP.paa],[R9,function(a,b){var c=new $APP.G(null,1,["status",new $APP.E(null,1,5,$APP.F,["done"],null)],null);return b.h?b.h(a,c):b.call(null,a,c)},function(a){a=$APP.Ze(a);$APP.Wd.h(a,$APP.il);return null},R9,function(a,b){var c=new $APP.G(null,2,["new-session",""+$APP.H.g($APP.FI()),"status",new $APP.E(null,1,5,$APP.F,["done"],null)],null);return b.h?b.h(a,c):b.call(null,a,c)},function(a,b){var c=new $APP.G(null,4,["versions",new $APP.G(null,
22
- 2,["nbb-nrepl",N9("TODO"),"node",N9(process.version)],null),"aux",$APP.Ye,"ops",$APP.Vh($APP.ik.h($APP.Uh,$APP.Fh(S9)),$APP.Nn.g($APP.Ye)),"status",new $APP.E(null,1,5,$APP.F,["done"],null)],null);return b.h?b.h(a,c):b.call(null,a,c)},R9,function(){return null},function(a,b){a=$APP.Ze(a);var c=$APP.Wd.h(a,$APP.S);$APP.gJ.l($APP.z([$APP.S,c]));return Lja($APP.Kh.j(a,$APP.S,$APP.Db(Q9)),b)}]),Yja=$APP.Vi.g(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.iJ.g(a);return $APP.p(e)?e:0}(),c=function(){var e=Wja.g(a);return $APP.p(e)?e:"127.0.0.1"}();(function(){var e=$APP.La(a)?a.ag:Sja.g(a);return $APP.p(e)?e:"info"})();var d=esm_import$net.createServer($APP.al.h(Nja,$APP.Ye));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.hJ.l($APP.z(["nREPL server started on port "+$APP.H.g(f)+" on host "+$APP.H.g(e)+" - nrepl://"+$APP.H.g(e)+
23
- ":"+$APP.H.g(f)]));try{return esm_import$fs.writeFileSync(".nrepl-port",""+$APP.H.g(f))}catch(h){return console.warn($APP.tq.h(" ",$APP.z(["Could not write .nrepl-port",h])))}});return $APP.Bf(Yja,d)})};
19
+ var T9=function T9(a){for(;;){if(typeof a==="string")return""+$APP.H.g(Buffer.from(a).length)+":"+$APP.H.g(a);if(a instanceof $APP.D||a instanceof $APP.r)a=""+$APP.H.g(function(){var c=$APP.De(a);return $APP.p(c)?""+$APP.H.g(c)+"/":null}())+$APP.H.g($APP.Vh(a));else return typeof a==="number"?"i"+$APP.H.g(a)+"e":$APP.Jd(a)||$APP.Nd(a)||a==null?"l"+$APP.H.g($APP.zf.h($APP.H,$APP.jk.h(T9,a)))+"e":$APP.Ld(a)?"d"+$APP.H.g($APP.zf.h($APP.H,$APP.jk.h(function(){return function(c){var d=$APP.y.j(c,0,null);
20
+ c=$APP.y.j(c,1,null);return""+$APP.H.g(T9.g?T9.g(d):T9.call(null,d))+$APP.H.g(T9.g?T9.g(c):T9.call(null,c))}}(a),$APP.jJ.h($APP.u,a))))+"e":null}};var Q9=$APP.Wi.g($APP.Bs),O9=new $APP.G(null,1,["cider.nrepl.pprint/pprint",$APP.z9],null);$APP.Wi.g(!1);
21
+ var P9=$APP.Wi.g(null),S9=$APP.rh([Gka,Mka,Hka,Jka,Lka,Ika,Nka,Pka,$APP.hba],[R9,function(a,b){var c=new $APP.G(null,1,["status",new $APP.E(null,1,5,$APP.F,["done"],null)],null);return b.h?b.h(a,c):b.call(null,a,c)},function(a){a=$APP.$e(a);$APP.Vd.h(a,$APP.jl);return null},R9,function(a,b){var c=new $APP.G(null,2,["new-session",""+$APP.H.g($APP.HI()),"status",new $APP.E(null,1,5,$APP.F,["done"],null)],null);return b.h?b.h(a,c):b.call(null,a,c)},function(a,b){var c=new $APP.G(null,4,["versions",new $APP.G(null,
22
+ 2,["nbb-nrepl",N9("TODO"),"node",N9(process.version)],null),"aux",$APP.Ze,"ops",$APP.Wh($APP.jk.h($APP.Vh,$APP.Gh(S9)),$APP.On.g($APP.Ze)),"status",new $APP.E(null,1,5,$APP.F,["done"],null)],null);return b.h?b.h(a,c):b.call(null,a,c)},R9,function(){return null},function(a,b){a=$APP.$e(a);var c=$APP.Vd.h(a,$APP.T);$APP.kJ.l($APP.z([$APP.T,c]));return Dka($APP.Lh.j(a,$APP.T,$APP.Db(Q9)),b)}]),Qka=$APP.Wi.g(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.mJ.g(a);return $APP.p(e)?e:0}(),c=function(){var e=Oka.g(a);return $APP.p(e)?e:"127.0.0.1"}();(function(){var e=$APP.La(a)?a.ag:Kka.g(a);return $APP.p(e)?e:"info"})();var d=esm_import$net.createServer($APP.bl.h(Fka,$APP.Ze));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.lJ.l($APP.z(["nREPL server started on port "+$APP.H.g(f)+" on host "+$APP.H.g(e)+" - nrepl://"+$APP.H.g(e)+
23
+ ":"+$APP.H.g(f)]));try{return esm_import$fs.writeFileSync(".nrepl-port",""+$APP.H.g(f))}catch(h){return console.warn($APP.uq.h(" ",$APP.z(["Could not write .nrepl-port",h])))}});return $APP.Cf(Qka,d)})};
@@ -1 +1 @@
1
- var squint;(squint||={}).core=(()=>{var ut=Object.defineProperty;var Ke=Object.getOwnPropertyDescriptor;var Ie=Object.getOwnPropertyNames;var Te=Object.prototype.hasOwnProperty;var Ge=(t,e)=>{for(var n in e)ut(t,n,{get:e[n],enumerable:!0})},Oe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ie(e))!Te.call(t,o)&&o!==n&&ut(t,o,{get:()=>e[o],enumerable:!(r=Ke(e,o))||r.enumerable});return t};var $e=t=>Oe(ut({},"__esModule",{value:!0}),t);var Wo={};Ge(Wo,{Atom:()=>Dt,Cons:()=>Yt,Delay:()=>qo,IIterable:()=>lt,IIterable__iterator:()=>Ft,LazySeq:()=>vr,NaN_QMARK_:()=>Zr,PROTOCOL_SENTINEL:()=>yn,_:()=>Le,_EQ_:()=>Rt,_GT_:()=>St,_GT__EQ_:()=>kt,_LT_:()=>Be,_LT__EQ_:()=>ze,_PLUS_:()=>qe,_STAR_:()=>Fe,__protocol_satisfies:()=>Pe,_iterator:()=>C,abs:()=>jo,aclone:()=>qr,add_watch:()=>Fr,alength:()=>Or,apply:()=>Ut,array:()=>kn,array_QMARK_:()=>H,aset:()=>$r,assoc:()=>K,assoc_BANG_:()=>A,assoc_in:()=>Qt,assoc_in_BANG_:()=>jt,atom:()=>mn,boolean$:()=>jr,boolean_QMARK_:()=>ho,bounded_count:()=>_o,butlast:()=>Mr,cat:()=>Se,clj__GT_js:()=>Fo,coll_QMARK_:()=>eo,comp:()=>Kt,compare:()=>b,compare_and_set_BANG_:()=>bn,complement:()=>z,concat:()=>Zt,conj:()=>Tt,conj_BANG_:()=>Y,cons:()=>cn,constantly:()=>In,contains_QMARK_:()=>Ot,count:()=>q,counted_QMARK_:()=>ge,cycle:()=>tr,dec:()=>Ze,deref:()=>N,disj:()=>Ue,disj_BANG_:()=>Gt,dissoc:()=>Xe,dissoc_BANG_:()=>Je,distinct:()=>or,doall:()=>zr,dorun:()=>Br,drop:()=>rt,drop_last:()=>Er,drop_while:()=>se,empty:()=>tt,empty_QMARK_:()=>xr,ensure_reduced:()=>ce,es6_iterator:()=>D,even_QMARK_:()=>Jt,every_QMARK_:()=>fe,every_pred:()=>Yr,ex_cause:()=>uo,ex_data:()=>ro,ex_info:()=>io,ex_message:()=>oo,false_QMARK_:()=>Nr,ffirst:()=>en,filter:()=>U,filterv:()=>sn,find:()=>xo,first:()=>I,flatten:()=>Mo,fn_QMARK_:()=>xe,fnil:()=>yt,frequencies:()=>br,get:()=>w,get_in:()=>xt,group_by:()=>Ar,identical_QMARK_:()=>Vn,identity:()=>Ht,inc:()=>$t,int_QMARK_:()=>O,integer_QMARK_:()=>co,interleave:()=>te,interpose:()=>$n,into:()=>ie,into_array:()=>_e,iterable:()=>s,iterate:()=>Dr,js_keys:()=>Hr,js_obj:()=>Gr,juxt:()=>Vr,keep:()=>fr,keep_indexed:()=>_n,key:()=>oe,keys:()=>me,last:()=>nn,lazy:()=>l,list:()=>Xt,list_QMARK_:()=>Tn,long$:()=>Ko,map:()=>k,map_QMARK_:()=>he,map_indexed:()=>an,mapcat:()=>Gn,mapv:()=>X,max:()=>pe,max_key:()=>wo,memoize:()=>Go,merge:()=>Yn,merge_with:()=>Cn,meta:()=>ao,min:()=>Pr,min_key:()=>mo,mod:()=>yo,nat_int_QMARK_:()=>fo,neg_QMARK_:()=>Ir,neg_int_QMARK_:()=>lo,next:()=>ct,nil_QMARK_:()=>xn,nnext:()=>Wr,not:()=>pt,not_EQ_:()=>Po,not_any_QMARK_:()=>_r,not_empty:()=>vo,not_every_QMARK_:()=>cr,nth:()=>Bt,number_QMARK_:()=>ye,object_QMARK_:()=>Ve,odd_QMARK_:()=>Kn,parse_double:()=>Ao,parse_long:()=>go,partial:()=>Hn,partition:()=>ne,partition_all:()=>ee,partition_by:()=>Pn,partitionv:()=>qn,partitionv_all:()=>Fn,peek:()=>Oo,persistent_BANG_:()=>Ro,pop:()=>$o,pos_QMARK_:()=>Tr,pos_int_QMARK_:()=>so,pr_str:()=>Qe,println:()=>He,prn:()=>Vo,quot:()=>ve,rand:()=>yr,rand_int:()=>ae,rand_nth:()=>mr,random_uuid:()=>zo,range:()=>vn,re_find:()=>En,re_matches:()=>Mn,re_pattern:()=>Rn,re_seq:()=>Xr,reduce:()=>S,reduce_kv:()=>gt,reduced:()=>W,reduced_QMARK_:()=>R,reductions:()=>on,regexp_QMARK_:()=>no,rem:()=>ke,remove:()=>fn,remove_watch:()=>Lr,repeat:()=>dt,repeatedly:()=>gr,replace:()=>dr,reset_BANG_:()=>Vt,reset_vals_BANG_:()=>An,rest:()=>V,reverse:()=>lr,run_BANG_:()=>Lo,satisfies_QMARK_:()=>Ye,second:()=>tn,select_keys:()=>Bn,seq:()=>E,seq_QMARK_:()=>zt,seqable_QMARK_:()=>qt,sequential_QMARK_:()=>it,set:()=>Qn,set_QMARK_:()=>jn,shuffle:()=>hr,some:()=>le,some_QMARK_:()=>Qr,some_fn:()=>Cr,sort:()=>mt,sort_by:()=>pr,sorted_set:()=>So,split_at:()=>Rr,split_with:()=>Sr,str:()=>dn,string_QMARK_:()=>ot,subs:()=>de,subseq:()=>Qo,subvec:()=>Sn,swap_BANG_:()=>wn,swap_vals_BANG_:()=>gn,system_time:()=>Dn,t:()=>Jr,take:()=>et,take_last:()=>Un,take_nth:()=>Zn,take_while:()=>nt,to_array:()=>Ur,trampoline:()=>Me,transduce:()=>bt,transient$:()=>Eo,tree_seq:()=>Ee,true_QMARK_:()=>kr,truth_:()=>_,type:()=>Io,unreduced:()=>_t,update:()=>ur,update_BANG_:()=>wt,update_in:()=>ir,update_keys:()=>Bo,update_vals:()=>Ne,val:()=>ue,vals:()=>to,vec:()=>Q,vector:()=>J,vector_QMARK_:()=>Nn,volatile_BANG_:()=>Co,vreset_BANG_:()=>Do,warn_on_lazy_reusage_BANG_:()=>un,with_meta:()=>po,zero_QMARK_:()=>Kr,zipmap:()=>bo});function f(t){if(t==null||t instanceof Function)return t;const e=typeof t;return e==="string"?(n,r)=>w(n,t,r):e==="object"?(n,r)=>w(t,n,r):t}var Mt=Object.prototype.hasOwnProperty;function Et(t,e,n){for(n of t.keys())if(j(n,e))return n}function j(t,e){if(t===e)return!0;var n,r,o;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Array){if((r=t.length)===e.length)for(;r--&&j(t[r],e[r]););return r===-1}if(n===Set){if(t.size!==e.size)return!1;for(const u of t)if(o=u,o&&typeof o=="object"&&(o=Et(e,o),!o)||!e.has(o))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(const u of t)if(o=u[0],o&&typeof o=="object"&&(o=Et(e,o),!o)||!j(u[1],e.get(o)))return!1;return!0}if(!n||typeof t=="object"){r=0;for(const u in t)if(Mt.call(t,u)&&++r&&!Mt.call(e,u)||!(u in e)||!j(t[u],e[u]))return!1;return Object.keys(e).length===r}}return!1}function T(t,e){return t.every(function(n,r){return r===0||e(t[r-1],n)})}function Rt(...t){return T(t,(e,n)=>j(e,n))}function St(...t){return T(t,(e,n)=>e>n)}function kt(...t){return T(t,(e,n)=>e>=n)}function Be(...t){return T(t,(e,n)=>e<n)}function ze(...t){return T(t,(e,n)=>e<=n)}function qe(...t){return t.reduce((e,n)=>e+n,0)}function Fe(...t){return t.reduce((e,n)=>e*n,1)}function Le(...t){return t.length==1?0-t[0]:t.reduce((e,n)=>e-n)}const Pe={};function Ye(t,e){return e==null?t[null]:typeof t=="symbol"?e[t]:e[t.__sym]}function Ce(t,e,n){return t.set(e,n),t}function De(t,e,n){return t[e]=n,t}function Nt(t){switch(p(t)){case h:return Ce;case x:case d:return De}}function A(t,e,n,...r){if(r.length%2!==0)throw new Error("Illegal argument: assoc expects an odd number of arguments.");switch(p(t)){case h:t.set(e,n);for(let o=0;o<r.length;o+=2)t.set(r[o],r[o+1]);break;case x:case d:t[e]=n;for(let o=0;o<r.length;o+=2)t[r[o]]=r[o+1];break;default:throw new Error(`Illegal argument: assoc! expects a Map, Array, or Object as the first argument, but got ${typeof t}.`)}return t}function G(t){switch(p(t)){case h:return new Map(t);case m:return new t.constructor(t);case x:return[...t];case d:return{...t};default:throw new Error(`Don't know how to copy object of type ${typeof t}.`)}}function K(t,e,n,...r){t||(t={});const o=G(t);return A(o,e,n,...r),o}const h=1,x=2,d=3,M=4,m=5,F=6;function L(t){switch(t){case h:return new Map;case x:return[];case d:return{};case M:return new Z;case m:return new Set;case F:return l(function*(){})}}function P(t){return t.constructor===Object}function Ve(t){return t!=null&&P(t)}function p(t){if(t!=null){if(P(t))return d;if(t instanceof Map)return h;if(t instanceof Set)return m;if(t instanceof Z)return M;if(Array.isArray(t))return x;if(t instanceof at)return F;if(t instanceof $)return m;if(t instanceof Object)return d}}function We(t,e,n,r,o){r=Q(r),n=n||{};const u=p(n);if(u!==h&&u!==x&&u!==d)throw new Error(`Illegal argument: ${e} expects the first argument to be a Map, Array, or Object.`);const i=[n];let c=n;for(let a=0;a<r.length-1;a+=1){const g=r[a];let y;c instanceof Map?y=c.get(g):y=c[g],y||(y=L(u)),i.push(y),c=y}i.push(o);for(let a=i.length-2;a>=0;a-=1)i[a]=t(i[a],r[a],i[a+1]);return i[0]}function Qt(t,e,n){return We(K,"assoc-in",t,e,n)}function jt(t,e,n){e=Q(e);var r=t;const o=p(t);for(const u of e.splice(0,e.length-1)){let i=w(r,u);i===void 0&&(i=L(o),A(r,u,i)),r=i}return A(r,e[e.length-1],n),t}function Kt(...t){if(t=t.map(f),t.length===0)return Ht;if(t.length===1)return t[0];const[e,...n]=t.slice().reverse();return function(...r){let o=e(...r);for(const u of n)o=u(o);return o}}function It(t,e){for(const n of e)t.add(n);return t}function Y(...t){if(t.length===0)return J();const[e,...n]=t;let r=e;switch(r==null&&(r=[]),p(r)){case m:It(r,n);break;case M:r.unshift(...n.reverse());break;case x:r.push(...n);break;case h:for(const o of n)Array.isArray(o)?r.set(o[0],o[1]):s(o).forEach(u=>{r.set(u[0],u[1])});break;case d:for(const o of n)Array.isArray(o)?r[o[0]]=o[1]:Object.assign(r,o);break;default:throw new Error("Illegal argument: conj! expects a Set, Array, List, Map, or Object as the first argument.")}return r}function Tt(...t){if(t.length===0)return J();const[e,...n]=t;let r=e;r==null&&(r=Xt());let o,u;switch(p(r)){case m:return r instanceof $?It(new r.constructor(r),n):new r.constructor([...r,...n]);case M:return new Z(...n.reverse(),...r);case x:return[...r,...n];case h:o=new Map(r);for(const i of n)Array.isArray(i)?o.set(i[0],i[1]):s(i).forEach(c=>{o.set(c[0],c[1])});return o;case F:return l(function*(){yield*n,yield*r});case d:u={...r};for(const i of n)Array.isArray(i)?u[i[0]]=i[1]:Object.assign(u,i);return u;default:throw new Error("Illegal argument: conj expects a Set, Array, List, Map, or Object as the first argument.")}}function Gt(t,...e){for(const n of e)t.delete(n);return t}function Ue(t,...e){const n=new t.constructor([...t]);return Gt(n,...e)}function Ot(t,e){switch(p(t)){case m:case h:return t.has(e);case void 0:return!1;default:return e in t}}function Je(t,...e){for(const n of e)delete t[n];return t}function Xe(t,...e){if(!t)return;if(e.length===0)return t;const n=G(t);switch(p(t)){case h:for(const r of e)n.delete(r);break;default:for(const r of e)delete n[r];break}return n}function $t(t){return t+1}function Ze(t){return t-1}function He(...t){console.log(...t)}function Bt(t,e,n){if(t){var r=void 0;if(Array.isArray(t))r=t[e];else{const o=s(t);let u=0;for(const i of o)if(u++==e){r=i;break}}if(r!==void 0)return r}return n}function w(t,e,n=void 0){if(t==null)return n;let r;if(P(t))return r=t[e],r===void 0?n:r;let o;switch(p(t)){case m:t.has(e)&&(r=e);break;case h:r=t.get(e);break;case x:r=t[e];break;default:if(o=t.get,o instanceof Function)try{r=t.get(e);break}catch{}r=t[e];break}return r!==void 0?r:n}function zt(t){return t!=null&&!!t[Symbol.iterator]}const it=zt;function qt(t){return t==null||!!t[Symbol.iterator]}function s(t){if(t==null)return[];if(qt(t))return t;if(t instanceof Object)return Object.entries(t);throw new TypeError(`${t} is not iterable`)}const lt=Symbol("Iterable"),Ft=Symbol.iterator;function C(t){return t[Symbol.iterator]()}const D=C;function E(t){if(t==null)return t;const e=s(t);return e.length===0||e.size===0||e[Symbol.iterator]().next().done?null:e}function I(t){const[e]=s(t);return e}function tn(t){const[e,n]=s(t);return n}function en(t){return I(I(t))}function V(t){return l(function*(){let e=!0;for(const n of s(t))e?e=!1:yield n})}class B{value;constructor(e){this.value=e}_deref(){return this.value}}function nn(t){t=s(t);let e;switch(p(t)){case x:return t[t.length-1];default:for(const n of t)e=n;return e}}function W(t){return new B(t)}function R(t){return t instanceof B}function S(t,e,n){t=f(t);let r,o;if(arguments.length===2){const u=s(e)[Symbol.iterator](),i=u.next();i.done?o=t():o=i.value,r=u}else o=e,r=s(n);if(o instanceof B)return o.value;for(const u of r)if(o=t(o,u),o instanceof B){o=o.value;break}return o}function*rn(t,e){const n=e.next();n.done?yield t():yield*Lt(t,n.value,e)}function*Lt(t,e,n){let r=e,o=n;for(;;){if(R(r)){yield r.value;return}else yield r;const u=o.next();if(u.done)break;r=t(r,u.value)}}function on(t,e,n){return t=f(t),arguments.length===2?l(function*(){yield*rn(t,s(e)[Symbol.iterator]())}):l(function*(){yield*Lt(t,e,s(n)[Symbol.iterator]())})}var Pt=!1;function un(){Pt=!0}class at{constructor(e){this.gen=e,this.usages=0}[Symbol.iterator](){if(this.usages++,this.usages>=2&&Pt)try{throw new Error}catch(e){console.warn("Re-use of lazy value",e.stack)}return this.gen()}}at.prototype[lt]=!0;function l(t){return new at(t)}class Yt{constructor(e,n){this.x=e,this.coll=n}*[Symbol.iterator](){yield this.x,yield*s(this.coll)}}function cn(t,e){return new Yt(t,e)}function k(t,...e){switch(t=f(t),e.length){case 0:return n=>(...r)=>{switch(r.length){case 0:return n();case 1:return n(r[0]);case 2:return n(r[0],t(r[1]));default:return n(r[0],t(...r.slice(1)))}};case 1:return l(function*(){for(const n of s(e[0]))yield t(n)});default:return l(function*(){const n=e.map(r=>D(s(r)));for(;;){const r=[];for(const o of n){const u=o.next();if(u.done)return;r.push(u.value)}yield t(...r)}})}}function Ct(t){return e=>(...n)=>{switch(n.length){case 0:return e();case 1:return e(n[0]);case 2:{const r=n[0],o=n[1];return _(t(o))?e(r,o):r}}}}function U(t,e){return arguments.length===1?Ct(t):(t=f(t),l(function*(){for(const n of s(e))_(t(n))&&(yield n)}))}function sn(t,e){return[...U(t,e)]}function fn(t,e){return arguments.length===1?Ct(z(t)):U(z(t),e)}function ln(t){return e=>{let n=-1;return(...r)=>{switch(r.length){case 0:return e();case 1:return e(r[0]);case 2:return e(r[0],t((n=n+1,n),r[1]))}}}}function an(t,e){return t=f(t),arguments.length===1?ln(t):l(function*(){let n=0;for(const r of s(e))yield t(n,r),n++})}function pn(t,e){return t=f(t),l(function*(){let n=0;for(const r of s(e)){const o=t(n,r);_(o)&&(yield o),n++}})}function hn(t){return e=>{let n=-1;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=r[0],i=r[1];n++;const c=t(n,i);return c==null?u:e(u,c)}}}}function _n(t,e){return arguments.length===1?hn(t):pn(t,e)}function dn(...t){return t.join("")}function pt(t){return!_(t)}function xn(t){return t==null}const yn={};class Dt{constructor(e){this.val=e,this._watches={},this._deref=()=>this.val,this._hasWatches=!1,this._reset_BANG_=n=>{const r=this.val;if(this.val=n,this._hasWatches)for(const o of Object.entries(this._watches)){const u=o[0],i=o[1];i(u,this,r,n)}return n},this._add_watch=(n,r)=>{this._watches[n]=r,this._hasWatches=!0},this._remove_watch=n=>{delete this._watches[n]}}}function mn(t){return new Dt(t)}function N(t){return t._deref()}function Vt(t,e){t._reset_BANG_(e)}function wn(t,e,...n){e=f(e);const r=e(N(t),...n);return Vt(t,r),r}function gn(t,e,...n){const r=N(t);e=f(e);const o=e(r,...n);return t._reset_BANG_(o),[r,o]}function An(t,e){const n=N(t);return t._reset_BANG_(e),[n,e]}function bn(t,e,n){return N(t)===e?(t._reset_BANG_(n),!0):!1}function vn(t,e,n){return l(function*(){let r=t,o=e,u=n;e===void 0&&(r=0,o=t);let i=r||0;u=n??1;const c=u>=0;for(;o===void 0||c&&i<o||!c&&o<i;)yield i,i+=u})}function Mn(t,e){const n=t.exec(e);return n&&e===n[0]?n.length===1?n[0]:n:null}function En(t,e){if(ot(e)){const n=t.exec(e);return n!=null?n.length===1?n[0]:[...n]:null}else throw new TypeError("re-find must match against a string.")}function Rn(t){if(t instanceof RegExp)return t;const e=t.match(/^\(\?([dgimsuvy]*)\)/);return e?new RegExp(t.slice(e[0].length),e[1]):new RegExp(t)}function Sn(t,e,n){return t.slice(e,n)}function J(...t){return t}const kn=J;function Nn(t){return p(t)===x}function X(...t){if(t.length===2){const[r,o]=t,u=f(r),i=s(o);if(Array.isArray(i)){const c=new Array(i.length);for(var e=0;e<i.length;e++)c[e]=u(i[e]);return c}else{var n=[];for(const c of i)n.push(u(c));return n}}return[...k(...t)]}function Q(t){return H(t)?t:[...s(t)]}function Qn(t){return new Set(s(t))}function jn(t){return p(t)===m}const Wt=Symbol("IApply__apply");function Ut(t,...e){t=f(t);const n=e.slice(0,e.length-1),r=s(e[e.length-1]),o=t[Wt];return o?o(...n,r):t(...n,...r)}function Jt(t){return t%2==0}function Kn(t){return!Jt(t)}function z(t){return t=f(t),(...e)=>pt(t(...e))}function In(t){return(...e)=>t}class Z extends Array{constructor(...e){super(),this.push(...e)}}function Tn(t){return p(t)===M}function Xt(...t){return new Z(...t)}function H(t){return Array.isArray(t)}function ht(t){return l(function*(){for(const e of t)yield*s(e)})}function Zt(...t){return ht(t)}Zt[Wt]=t=>ht(t);function Gn(t,...e){if(e.length===0)return Kt(k(t),Se);{const n=k(t,...e);return ht(n)}}function Ht(t){return t}function te(...t){return l(function*(){const e=t.map(n=>D(s(n)));for(;;){const n=[];for(const r of e){const o=r.next();if(o.done)return;n.push(o.value)}yield*n}})}function On(t){return e=>{let n=!1;return(...r)=>{switch(r.length){case 0:return e();case 1:return e(r[0]);case 2:if(n){const o=e(r[0],t);return R(o)?o:e(o,r[1])}else return n=!0,e(r[0],r[1])}}}}function $n(t,e){return arguments.length===1?On(t):rt(1,te(dt(t),e))}function Bn(t,e){const n=p(t),r=L(n)||{};for(const o of e){const u=w(t,o);u!=null&&A(r,o,u)}return r}function _t(t){return R(t)?N(t):t}function zn(t){return e=>{let n=[];return(...r)=>{let o,u;switch(r.length){case 0:return e();case 1:return o=r[0],n.length!==0&&(u=[...n],n=[],o=_t(e(o,u))),e(o);case 2:return o=r[0],n.push(r[1]),t===n.length?(u=[...n],n=[],e(o,u)):o}}}}function ee(t,...e){if(arguments.length===1)return zn(t);let n=t,r=e[0];return e.length===2&&([n,r]=e),re(t,n,[],r,!0)}function ne(t,...e){let n=t,r=[],o=e[0];return e.length===2?[n,o]=e:e.length>2&&([n,r,o]=e),re(t,n,r,o,!1)}const qn=ne,Fn=ee;function re(t,e,n,r,o){return l(function*(){let u=[],i=0;for(const c of s(r))i<t&&(u.push(c),u.length===t&&(yield u,u=e<t?u.slice(e):[])),i++,i===e&&(i=0);u.length>0&&(u.length===t||o?yield u:n.length&&(u.push(...n.slice(0,t-u.length)),yield u))})}function Ln(t){return e=>{let n=[];const r={};let o=r;return(...u)=>{const i=u.length;if(i===0)return e();if(i===1){let c=u[0];if(n.length!==0){const a=[...n];n=[],c=_t(e(c,a))}return e(c)}if(i===2){const c=u[0],a=u[1],g=o,y=t(a);if(o=y,g===r||y===g)return n.push(a),c;{const je=[...n];n=[];const vt=e(c,je);return R(vt)||n.push(a),vt}}}}}function Pn(t,e){return t=f(t),arguments.length===1?Ln(t):l(function*(){const n=D(e),r=n.next();r.done&&(yield*null);const o=r.value;let u=t(o),i=[o],c=[];for(;;){const a=n.next();if(a.done){yield i;break}const g=a.value,y=t(g);u==y?i.push(g):(yield i,c.push(g),i=c,u=y,c=[])}})}function tt(t){const e=p(t);if(e!=null)return L(e);throw new Error(`Can't create empty of ${typeof t}`)}function Yn(...t){const e=t[0];let n;return e==null?n={}:n=ie(tt(e),e),Y(n,...t.slice(1))}function oe(t){return t[0]}function ue(t){return t[1]}function Cn(t,...e){t=f(t);var n=!1;for(const r of e)if(r!=null){n=!0;break}if(n){const r=(u,i)=>{const c=oe(i),a=ue(i);return Ot(u,c)?K(u,c,t(w(u,c),a)):K(u,c,a)};return S((u,i)=>S(r,u||{},E(i)),e)}else return null}function Dn(){return performance.now()}function ie(...t){let e,n,r,o,u;switch(t.length){case 0:return[];case 1:return t[0];case 2:return Tt(t[0]??[],...s(t[1]));case 3:return e=t[0],n=t[1],r=t[2],o=G(e),u=(i,c)=>c===void 0?i:Y(i,c),bt(n,u,o,r);default:throw TypeError(`Invalid arity call of into: ${t.length}`)}}function Vn(t,e){return t===e}function dt(...t){if(t.length==0||t.length>2)throw new Error(`Invalid arity: ${t.length}`);return{[lt]:!0,[Ft]:t.length==1?function*(){const e=t[0];for(;;)yield e}:function*(){const[e,n]=t;for(var r=0;r<e;r++)yield n}}}function ce(t){return R(t)?t:W(t)}function Wn(t){return e=>{let n=t;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1){const u=r[0];return e(u)}if(o===2){let u=r[0];const i=r[1],c=n,a=(n=n-1,n);return c>0&&(u=e(u,i)),a>0?u:ce(u)}}}}function et(t,e){return arguments.length===1?Wn(t):l(function*(){let n=t-1;for(const r of s(e))if(n-->=0&&(yield r),n<0)return})}function Un(t,e){if(t<=0)return null;if(Array.isArray(e))return E(e.slice(-t));{const n=new Array(t);let r=0;for(const o of s(e))n[r%t]=o,r++;return r%t!==0&&r>=t?n.slice(r%t).concat(n.slice(0,r%t)):(n.length=Math.min(r,t),n)}}function Jn(t){return e=>(...n)=>{const r=n.length;if(r===0)return e();if(r===1)return e(n[0]);if(r===2){const o=n[0],u=n[1];return _(t(u))?e(o,u):W(o)}}}function nt(t,e){return t=f(t),arguments.length===1?Jn(t):l(function*(){for(const n of s(e))if(_(t(n)))yield n;else return})}function Xn(t){return e=>{let n=-1;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=r[0],i=r[1];return n++,ke(n,t)===0?e(u,i):u}}}}function Zn(t,e){return arguments.length===1?Xn(t):t<=0?dt(I(e)):l(function*(){let n=0;for(const r of s(e))n%t===0&&(yield r),n++})}function Hn(t,...e){return t=f(t),function(...n){return t(...e,...n)}}function tr(t){return l(function*(){for(;;)yield*t})}function er(t){return e=>{let n=t;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=r[0],i=r[1],c=n;return n--,c>0?u:e(u,i)}}}}function rt(t,e){return arguments.length===1?er(t):l(function*(){const n=C(s(e));for(let r=0;r<t;r++)n.next();yield*n})}function nr(t){return e=>{let n=!0;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=n,i=r[0],c=r[1];return u&&_(t(c))?i:(n=null,e(i,c))}}}}function se(t,e){return t=f(t),arguments.length===1?nr(t):l(function*(){const n=C(s(e));for(;;){const r=n.next();if(r.done)break;const o=r.value;if(!_(t(o))){yield o;break}}yield*n})}function rr(){return t=>{const e=new Set;return(...n)=>{const r=n.length;if(r===0)return t();if(r===1)return t(n[0]);if(r===2){const o=n[0],u=n[1];return e.has(u)?o:(e.add(u),t(o,u))}}}}function or(t){return arguments.length===0?rr():l(function*(){const e=new Set;for(const n of s(t))e.has(n)||(yield n),e.add(n)})}function ur(t,e,n,...r){return n=f(n),K(t,e,n(w(t,e),...r))}function xt(t,e,n){let r=t;for(const o of e)r=w(r,o);return r===void 0?n:r}function ir(t,e,n,...r){return n=f(n),Qt(t,e,n(xt(t,e),...r))}function yt(t,e,...n){return t=f(t),function(r,...o){return r?t(r,...n,...o):t(e,...n,...o)}}function fe(t,e){t=f(t);for(const n of s(e))if(!t(n))return!1;return!0}function cr(t,e){return!fe(t,e)}function sr(t){return e=>(...n)=>{const r=n.length;if(r===0)return e();if(r===1)return e(n[0]);if(r===2){const o=n[0],u=n[1],i=t(u);return i==null?o:e(o,i)}}}function fr(t,e){return t=f(t),arguments.length===1?sr(t):l(function*(){for(const n of s(e)){const r=t(n);_(r)&&(yield r)}})}function lr(t){return t=s(t),[...t].reverse()}function mt(t,e){return arguments.length===1&&(e=t,t=void 0),t=f(t),e=s(e),[...e].sort(t||b)}function ar(t){return t===b?t:(e,n)=>{const r=t(e,n);return ye(r)?r:r?-1:t(n,e)?1:0}}function pr(t,e,n){return arguments.length===2&&(n=e,e=b),t=f(t),e=f(e),mt((r,o)=>{const u=ar(e),i=t(r),c=t(o);return u(i,c)},n)}function hr(t){const e=[...t];let n=e.length;for(;n;){const r=Math.floor(Math.random()*n--),o=e[n];e[n]=e[r],e[r]=o}return e}function le(t,e){t=f(t);for(const n of s(e)){const r=t(n);if(_(r))return r}}function _r(t,e){return t=f(t),!le(t,e)}function dr(t,e){return(Array.isArray(e)?X:k)(r=>{const o=t[r];return o!==void 0?o:r},e)}function xr(t){return!E(t)}function yr(t){return t===void 0&&(t=1),Math.random()*t}function ae(t){return Math.floor(Math.random()*t)}function mr(t){const e=ae(q(t));return Bt(t,e)}function wr(t){return l(function*(){for(;;)yield t()})}function gr(t,e){arguments.length===1&&(e=t,t=void 0);const n=wr(e);return t?et(t,n):n}function wt(t,e,n,...r){n=f(n);const o=w(t,e);return A(t,e,n(o,...r))}function Ar(t,e){t=f(t);const n={};for(const r of s(e)){const o=t(r);wt(n,o,yt(Y,[]),r)}return n}function br(t){const e={},n=yt($t,0);for(const r of s(t))wt(e,r,n);return e}class vr{constructor(e){this.f=e,this.res=void 0}*[Symbol.iterator](){this.res===void 0&&(this.res=this.f(),this.f=null),yield*s(this.res)}}function Mr(t){const e=[...s(t)];return e.pop(),e.length>0?e:null}function Er(...t){const[e,n]=t.length>1?t:[1,t[0]];return k((r,o)=>r,n,rt(e,n))}function Rr(t,e){return[et(t,e),rt(t,e)]}function Sr(t,e){return[nt(t,e),se(t,e)]}function q(t){if(!t)return 0;const e=t.length||t.size;if(typeof e=="number")return e;let n=0;for(const r of s(t))n++;return n}function kr(t){return t===!0}function Nr(t){return t===!1}function Qr(t){return t!=null}function jr(t){return!!t}function Kr(t){return t===0}function Ir(t){return t<0}function Tr(t){return t>0}function Gr(...t){let e=0;const n={};for(;!(e>=t.length);)n[t[e]]=t[e+1],e=e+2;return n}function Or(t){return t.length}function $r(t,e,n,...r){if(r.length==0)return t[e]=n,n;{const o=[e,n,...r],u=o[o.length-1];let i=t,c=0;const a=o.length-2;for(;c<a;c++)i=i[o[c]];return i[o[c]]=u,n}}function Br(t){for(const e of s(t));return null}function zr(t){return Q(t)}function qr(t){return[...t]}function Fr(t,e,n){return t._add_watch(e,n)}function Lr(t,e){return t._remove_watch(e)}function gt(t,e,n){if(!n)return e;var r=e;for(const o of s(n))r=t(r,o[0],o[1]);return r}function pe(t,e,...n){return e==null?t:Math.max(t,e,...n)}function Pr(t,e,...n){return e==null?t:Math.min(t,e,...n)}function he(t){return t==null?!1:!!(P(t)||t instanceof Map)}function Yr(...t){return(...e)=>{for(const n of t)for(const r of e)if(!n(r))return!1;return!0}}function Cr(...t){return(...e)=>{for(const n of t)for(const r of e){const o=n(r);if(o)return o}}}function _e(t,e){return Q(e||t)}function Dr(t,e){var n=e;return l(function*(){for(;;)yield n,n=t(n)})}function Vr(...t){return t=t.map(f),(...e)=>{const n=[];for(const r of t)n.push(r(...e));return n}}function ct(t){if(Array.isArray(t)){const e=t.slice(1);return e.length>0?e:null}else return E(V(t))}function Wr(t){return ct(ct(t))}function b(t,e){if(t===e)return 0;{if(t==null)return-1;if(e==null)return 1;const n=typeof t,r=typeof e;if(n==="number"&&r==="number"||n==="string"&&r==="string")return t===e?0:t<e?-1:1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length<e.length)return-1;if(t.length>e.length)return 1;for(let o=0;o<t.length;o++){const u=b(t[o],e[o]);if(u!=0)return u}return 0}else throw new Error(`comparing ${n} to ${r}`)}}function Ur(t){return _e(t)}function _(t){return t!=null&&t!==!1}const Jr=_;function de(t,e,n){return t.substring(e,n)}function xe(t){return typeof t=="function"}function Xr(t,e){return l(function*(){for(;;){const n=t.exec(e);if(n){const r=n[0];yield n.length===1?r:Q(n);const u=n.index+pe(1,r.length);if(u>e.length)break;e=de(e,u)}else break}})}function Zr(t){return Number.isNaN(t)}function ye(t){return typeof t=="number"}function me(t){if(t==null)return;switch(p(t)){case d:return Object.keys(t);case h:return Array.from(t.keys())}}function Hr(t){return me(t)}function to(t){if(t==null)return;switch(p(t)){case d:return Object.values(t);case h:return Array.from(t.values())}}function ot(t){return typeof t=="string"}function eo(t){return p(t)!=null}function no(t){return t instanceof RegExp}class At extends Error{constructor(e,n,r){super(e),this._data=n,this._cause=r}}function ro(t){return t instanceof At?t._data:null}function oo(t){return t instanceof Error?t.message:null}function uo(t){return t instanceof At?t._cause:null}function io(t,e,n){return new At(t,e,n)}function O(t){return Number.isInteger(t)}const co=O;function so(t){return O(t)&&t>0}function fo(t){return O(t)&&t>-1}function lo(t){return O(t)&&t<0}const we=Symbol("meta");function ao(t){return t instanceof Object?t[we]:null}function po(t,e){const n=G(t);return n[we]=e,n}function ho(t){return t===!0||t===!1}function ge(t){switch(p(t)){case x:case h:case d:case M:case m:return!0}return!1}function _o(t,e){return ge(e)?q(e):q(et(t,e))}function xo(t,e){const n=w(t,e);if(n!==void 0)return[e,n]}function yo(t,e){return(t%e+e)%e}function mo(t,e,...n){if(n.length==0)return e;var r=t(e),o=e;return n.forEach(u=>{var i=t(u);i<=r&&(r=i,o=u)}),o}function wo(t,e,...n){if(n.length==0)return e;var r=t(e),o=e;return n.forEach(u=>{var i=t(u);i>=r&&(r=i,o=u)}),o}function Ae(t){throw new Error(`Expected string, got: ${typeof t}`)}function go(t){if(ot(t)){if(/^[+-]?\d+$/.test(t)){const e=parseInt(t);if(Number.MIN_SAFE_INTEGER<=e<=Number.MAX_SAFE_INTEGER)return e}return null}return Ae(t)}function Ao(t){if(ot(t))return/^[\\x00-\\x20]*[+-]?NaN[\\x00-\\x20]*$/.test(t)?NaN:/^[\\x00-\\x20]*[+-]?(Infinity|((\d+\.?\d*|\.\d+)([eE][+-]?\d+)?)[dDfF]?)[\\x00-\\x20]*$/.test(t)?parseFloat(t):null;throw new Ae(t)}function be(t){return t>=0?Math.floor(t):Math.ceil(t)}function ve(t,e){const n=t%e;return be((t-n)/e)}function Me(t,...e){if(e.length==0)for(;;){const n=t();if(_(xe(n))){t=n;continue}else return n}else return Me(function(){return Ut(t,e)})}function bt(t,...e){switch(e.length){case 2:{const n=e[0],r=e[1];return bt(t,n,n(),r)}default:{let n=e[0];const r=e[1],o=e[2];n=t(n);const u=S(n,r,o);return n(u)}}}function bo(t,e){const n={},r=s(t)[Symbol.iterator](),o=s(e)[Symbol.iterator]();let u,i;for(;u=r.next(),!(u.done||(i=o.next(),i.done));)n[u.value]=i.value;return n}function vo(t){return E(t)?t:null}function Ee(t,e,n){const r=function*(o){if(yield o,_(t(o)))for(const u of s(e(o)))yield*r(u)};return l(function*(){yield*r(n)})}function Mo(t){return U(z(it),V(Ee(it,E,t)))}function Eo(t){return G(t)}function Ro(t){return Object.freeze(t)}class ${constructor(e){e instanceof $||(e=mt(e));const r=new Set(e);this._elts=[...r],this._set=r}add(e){if(this._set.has(e))return this;const n=this._elts;let r=!1;for(let o=0;o<n.length;o++)if(b(e,n[o])<=0){n.splice(o,0,e),r=!0;break}return r?this._set=new Set(n):(n.push(e),this._set.add(e)),this.size=n.length,this}delete(e){if(!this._set.has(e))return this;const n=this._elts,r=n.indexOf(e);return n.splice(r,1),this._set=new Set(n),this.size=n.length,this}has(e){return this._set.has(e)}keys(){return this.values()}values(){return this._elts[Symbol.iterator]()}entries(){return this._set.entries()}forEach(...e){return this.set.forEach(...e)}clear(){this._elts=[],this._set=new Set(this._elts)}[Symbol.iterator](){return this.keys()}}function So(...t){return new $(t)}function st(t,e,n){return r=>e(b(r,n),0)}function Re(t,e,n=!0){let r=0;for(;r<t.length&&b(e,t[r])>0;r++);return r}function ko([t,e,n]){const r=st(t,e,n);if(e===St||e===kt){const o=[...t],u=Re(o,n,!0);return o.splice(0,u),r(o[0])||o.splice(0,1),o}else return[...nt(r,t)]}function No([t,e,n,r,o]){const u=[...t],i=Re(u,n,!0);u.splice(0,i);const c=st(t,r,o);return st(t,e,n)(u[0])||u.splice(0,1),[...nt(c,u)]}function Qo(...t){if(t.length===3)return ko(t);if(t.length===5)return No(t)}function jo(t){return Math.abs(t)}function Ko(t){return be(t)}function Io(t){return t!=null&&t.constructor}function To(t){return(e,n)=>{const r=t(e,n);return R(r)?W(r):r}}function Se(t){return t=To(t),(...e)=>{switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return S(t,e[0],e[1])}}}function ke(t,e){const n=ve(t,e);return t-e*n}function Go(t){const e=new Map;return(...n)=>{const r=[n.length,...n],o=xt(e,r);if(o===void 0){const u=t(...n);return jt(e,r,u),u}else return o}}function Oo(t){return H(t)?t[t.length-1]:I(t)}function $o(t){if(H(t)){const e=[...t];return e.pop(),e}else return V(t)}function Bo(t,e){const n=tt(t),r=Nt(t)||A;return gt((o,u,i)=>r(o,e(u),i),n,t),n}function Ne(t,e){const n=tt(t),r=Nt(t)||A;return gt((o,u,i)=>r(o,u,e(i)),n,t),n}function zo(){return crypto.randomUUID()}class qo{constructor(e){this.f=e}_deref(){return this.realized?this.v:(this.v=this.f(),this.realized=!0,this.v)}}function ft(t,e){if(e.has(t))return t;if(e.add(t),he(t))return Ne(t,r=>ft(r,e));const n=p(t);return n&&n!=d?X(r=>ft(r,e),t):t}function Fo(t){return ft(t,new Set)}function Lo(t,e){S((n,r)=>t(r),null,e)}function Po(...t){return pt(Rt(...t))}class Yo{constructor(e){this.v=e}_deref(){return this.v}}function Co(t){return new Yo(t)}function Do(t,e){t.v=e}function v(t,e=new WeakSet){if(t==null)return"nil";if(typeof t=="number"||typeof t=="boolean")return String(t);if(typeof t=="string")return JSON.stringify(t);if(typeof t=="bigint")return`${t}N`;if(typeof t=="object"){if(e.has(t))return"#object[circular]";e.add(t);const n=p(t);let r;switch(n){case x:return`[${t.map(o=>v(o,e)).join(" ")}]`;case m:return`#{${Array.from(t).map(o=>v(o,e)).join(" ")}}`;case h:return`#js/Map {${Array.from(t.entries()).map(([o,u])=>`${v(o,e)} ${v(u,e)}`).join(", ")}}`;case F:case M:return`(${X(o=>`${v(o,e)}`,t).join(", ")})`;default:return r=Object.keys(t),`{${r.map(o=>`:${o} ${v(t[o],e)}`).join(", ")}}`}}return`#object[${t.constructor.name}]`}function Qe(...t){return t.map((e,n)=>v(e)).join(" ")}function Vo(...t){return console.log(Qe(...t))}return $e(Wo);})();
1
+ var squint;(squint||={}).core=(()=>{var ut=Object.defineProperty;var Ke=Object.getOwnPropertyDescriptor;var Ie=Object.getOwnPropertyNames;var Te=Object.prototype.hasOwnProperty;var Ge=(t,e)=>{for(var n in e)ut(t,n,{get:e[n],enumerable:!0})},Oe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ie(e))!Te.call(t,o)&&o!==n&&ut(t,o,{get:()=>e[o],enumerable:!(r=Ke(e,o))||r.enumerable});return t};var $e=t=>Oe(ut({},"__esModule",{value:!0}),t);var Wo={};Ge(Wo,{Atom:()=>Vt,Cons:()=>Ct,Delay:()=>qo,IIterable:()=>at,IIterable__iterator:()=>Lt,LazySeq:()=>vr,NaN_QMARK_:()=>Zr,PROTOCOL_SENTINEL:()=>yn,_:()=>Le,_EQ_:()=>St,_GT_:()=>kt,_GT__EQ_:()=>Nt,_LT_:()=>Be,_LT__EQ_:()=>ze,_PLUS_:()=>qe,_STAR_:()=>Fe,__protocol_satisfies:()=>Pe,_iterator:()=>C,abs:()=>jo,aclone:()=>qr,add_watch:()=>Fr,alength:()=>Or,apply:()=>Jt,array:()=>kn,array_QMARK_:()=>H,aset:()=>$r,assoc:()=>K,assoc_BANG_:()=>A,assoc_in:()=>jt,assoc_in_BANG_:()=>Kt,atom:()=>mn,boolean$:()=>jr,boolean_QMARK_:()=>ho,bounded_count:()=>_o,butlast:()=>Mr,cat:()=>Se,clj__GT_js:()=>Fo,coll_QMARK_:()=>eo,comp:()=>It,compare:()=>b,compare_and_set_BANG_:()=>bn,complement:()=>z,concat:()=>Ht,conj:()=>Gt,conj_BANG_:()=>Y,cons:()=>cn,constantly:()=>In,contains_QMARK_:()=>$t,count:()=>q,counted_QMARK_:()=>ge,cycle:()=>tr,dec:()=>Ze,deref:()=>N,disj:()=>Ue,disj_BANG_:()=>Ot,dissoc:()=>Xe,dissoc_BANG_:()=>Je,distinct:()=>or,doall:()=>zr,dorun:()=>Br,drop:()=>rt,drop_last:()=>Er,drop_while:()=>fe,empty:()=>tt,empty_QMARK_:()=>xr,ensure_reduced:()=>se,es6_iterator:()=>D,even_QMARK_:()=>Xt,every_QMARK_:()=>le,every_pred:()=>Yr,ex_cause:()=>uo,ex_data:()=>ro,ex_info:()=>io,ex_message:()=>oo,false_QMARK_:()=>Nr,ffirst:()=>en,filter:()=>U,filterv:()=>sn,find:()=>xo,first:()=>I,flatten:()=>Mo,fn_QMARK_:()=>ye,fnil:()=>mt,frequencies:()=>br,get:()=>w,get_in:()=>yt,group_by:()=>Ar,identical_QMARK_:()=>Vn,identity:()=>te,inc:()=>Bt,int_QMARK_:()=>O,integer_QMARK_:()=>co,interleave:()=>ee,interpose:()=>$n,into:()=>ce,into_array:()=>de,iterable:()=>s,iterate:()=>Dr,js_keys:()=>Hr,js_obj:()=>Gr,juxt:()=>Vr,keep:()=>fr,keep_indexed:()=>_n,key:()=>ue,keys:()=>we,last:()=>nn,lazy:()=>l,list:()=>Zt,list_QMARK_:()=>Tn,long$:()=>Ko,map:()=>k,map_QMARK_:()=>_e,map_indexed:()=>an,mapcat:()=>Gn,mapv:()=>X,max:()=>he,max_key:()=>wo,memoize:()=>Go,merge:()=>Yn,merge_with:()=>Cn,meta:()=>ao,min:()=>Pr,min_key:()=>mo,mod:()=>yo,nat_int_QMARK_:()=>fo,neg_QMARK_:()=>Ir,neg_int_QMARK_:()=>lo,next:()=>ct,nil_QMARK_:()=>xn,nnext:()=>Wr,not:()=>ht,not_EQ_:()=>Po,not_any_QMARK_:()=>_r,not_empty:()=>vo,not_every_QMARK_:()=>cr,nth:()=>zt,number_QMARK_:()=>me,object_QMARK_:()=>Ve,odd_QMARK_:()=>Kn,parse_double:()=>Ao,parse_long:()=>go,partial:()=>Hn,partition:()=>re,partition_all:()=>ne,partition_by:()=>Pn,partitionv:()=>qn,partitionv_all:()=>Fn,peek:()=>Oo,persistent_BANG_:()=>Ro,pop:()=>$o,pos_QMARK_:()=>Tr,pos_int_QMARK_:()=>so,pr_str:()=>Qe,println:()=>He,prn:()=>Vo,quot:()=>ve,rand:()=>yr,rand_int:()=>pe,rand_nth:()=>mr,random_uuid:()=>zo,range:()=>vn,re_find:()=>En,re_matches:()=>Mn,re_pattern:()=>Rn,re_seq:()=>Xr,reduce:()=>S,reduce_kv:()=>At,reduced:()=>W,reduced_QMARK_:()=>R,reductions:()=>on,regexp_QMARK_:()=>no,rem:()=>ke,remove:()=>fn,remove_watch:()=>Lr,repeat:()=>xt,repeatedly:()=>gr,replace:()=>dr,reset_BANG_:()=>Wt,reset_vals_BANG_:()=>An,rest:()=>V,reverse:()=>lr,run_BANG_:()=>Lo,satisfies_QMARK_:()=>Ye,second:()=>tn,select_keys:()=>Bn,seq:()=>E,seq_QMARK_:()=>qt,seqable_QMARK_:()=>Ft,sequential_QMARK_:()=>it,set:()=>Qn,set_QMARK_:()=>jn,shuffle:()=>hr,some:()=>ae,some_QMARK_:()=>Qr,some_fn:()=>Cr,sort:()=>wt,sort_by:()=>pr,sorted_set:()=>So,split_at:()=>Rr,split_with:()=>Sr,str:()=>dn,string_QMARK_:()=>ot,subs:()=>xe,subseq:()=>Qo,subvec:()=>Sn,swap_BANG_:()=>wn,swap_vals_BANG_:()=>gn,system_time:()=>Dn,t:()=>Jr,take:()=>et,take_last:()=>Un,take_nth:()=>Zn,take_while:()=>nt,to_array:()=>Ur,trampoline:()=>Me,transduce:()=>vt,transient$:()=>Eo,tree_seq:()=>Ee,true_QMARK_:()=>kr,truth_:()=>_,type:()=>Io,unreduced:()=>dt,update:()=>ur,update_BANG_:()=>gt,update_in:()=>ir,update_keys:()=>Bo,update_vals:()=>Ne,val:()=>ie,vals:()=>to,vec:()=>Q,vector:()=>J,vector_QMARK_:()=>Nn,volatile_BANG_:()=>Co,vreset_BANG_:()=>Do,warn_on_lazy_reusage_BANG_:()=>un,with_meta:()=>po,zero_QMARK_:()=>Kr,zipmap:()=>bo});function f(t){if(t==null||t instanceof Function)return t;const e=typeof t;return e==="string"?(n,r)=>w(n,t,r):e==="object"?(n,r)=>w(t,n,r):t}var Et=Object.prototype.hasOwnProperty;function Rt(t,e,n){for(n of t.keys())if(j(n,e))return n}function j(t,e){if(t===e)return!0;var n,r,o;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Array){if((r=t.length)===e.length)for(;r--&&j(t[r],e[r]););return r===-1}if(n===Set){if(t.size!==e.size)return!1;for(const u of t)if(o=u,o&&typeof o=="object"&&(o=Rt(e,o),!o)||!e.has(o))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(const u of t)if(o=u[0],o&&typeof o=="object"&&(o=Rt(e,o),!o)||!j(u[1],e.get(o)))return!1;return!0}if(!n||typeof t=="object"){r=0;for(const u in t)if(Et.call(t,u)&&++r&&!Et.call(e,u)||!(u in e)||!j(t[u],e[u]))return!1;return Object.keys(e).length===r}}return!1}function T(t,e){return t.every(function(n,r){return r===0||e(t[r-1],n)})}function St(...t){return T(t,(e,n)=>j(e,n))}function kt(...t){return T(t,(e,n)=>e>n)}function Nt(...t){return T(t,(e,n)=>e>=n)}function Be(...t){return T(t,(e,n)=>e<n)}function ze(...t){return T(t,(e,n)=>e<=n)}function qe(...t){return t.reduce((e,n)=>e+n,0)}function Fe(...t){return t.reduce((e,n)=>e*n,1)}function Le(...t){return t.length==1?0-t[0]:t.reduce((e,n)=>e-n)}const Pe={};function Ye(t,e){return e==null?t[null]:typeof t=="symbol"?e[t]:e[t.__sym]}function Ce(t,e,n){return t.set(e,n),t}function De(t,e,n){return t[e]=n,t}function Qt(t){switch(p(t)){case h:return Ce;case x:case d:return De}}function A(t,e,n,...r){if(r.length%2!==0)throw new Error("Illegal argument: assoc expects an odd number of arguments.");switch(p(t)){case h:t.set(e,n);for(let o=0;o<r.length;o+=2)t.set(r[o],r[o+1]);break;case x:case d:t[e]=n;for(let o=0;o<r.length;o+=2)t[r[o]]=r[o+1];break;default:throw new Error(`Illegal argument: assoc! expects a Map, Array, or Object as the first argument, but got ${typeof t}.`)}return t}function G(t){switch(p(t)){case h:return new Map(t);case m:return new t.constructor(t);case x:return[...t];case d:return{...t};default:throw new Error(`Don't know how to copy object of type ${typeof t}.`)}}function K(t,e,n,...r){t||(t={});const o=G(t);return A(o,e,n,...r),o}const h=1,x=2,d=3,M=4,m=5,F=6;function L(t){switch(t){case h:return new Map;case x:return[];case d:return{};case M:return new Z;case m:return new Set;case F:return l(function*(){})}}function P(t){return t.constructor===Object}function Ve(t){return t!=null&&P(t)}function p(t){if(t!=null){if(P(t))return d;if(t instanceof Map)return h;if(t instanceof Set)return m;if(t instanceof Z)return M;if(Array.isArray(t))return x;if(t instanceof pt)return F;if(t instanceof $)return m;if(t instanceof Object)return d}}function We(t,e,n,r,o){r=Q(r),n=n||{};const u=p(n);if(u!==h&&u!==x&&u!==d)throw new Error(`Illegal argument: ${e} expects the first argument to be a Map, Array, or Object.`);const i=[n];let c=n;for(let a=0;a<r.length-1;a+=1){const g=r[a];let y;c instanceof Map?y=c.get(g):y=c[g],y||(y=L(u)),i.push(y),c=y}i.push(o);for(let a=i.length-2;a>=0;a-=1)i[a]=t(i[a],r[a],i[a+1]);return i[0]}function jt(t,e,n){return We(K,"assoc-in",t,e,n)}function Kt(t,e,n){e=Q(e);var r=t;const o=p(t);for(const u of e.splice(0,e.length-1)){let i=w(r,u);i===void 0&&(i=L(o),A(r,u,i)),r=i}return A(r,e[e.length-1],n),t}function It(...t){if(t=t.map(f),t.length===0)return te;if(t.length===1)return t[0];const[e,...n]=t.slice().reverse();return function(...r){let o=e(...r);for(const u of n)o=u(o);return o}}function Tt(t,e){for(const n of e)t.add(n);return t}function Y(...t){if(t.length===0)return J();const[e,...n]=t;let r=e;switch(r==null&&(r=[]),p(r)){case m:Tt(r,n);break;case M:r.unshift(...n.reverse());break;case x:r.push(...n);break;case h:for(const o of n)Array.isArray(o)?r.set(o[0],o[1]):s(o).forEach(u=>{r.set(u[0],u[1])});break;case d:for(const o of n)Array.isArray(o)?r[o[0]]=o[1]:Object.assign(r,o);break;default:throw new Error("Illegal argument: conj! expects a Set, Array, List, Map, or Object as the first argument.")}return r}function Gt(...t){if(t.length===0)return J();const[e,...n]=t;let r=e;r==null&&(r=Zt());let o,u;switch(p(r)){case m:return r instanceof $?Tt(new r.constructor(r),n):new r.constructor([...r,...n]);case M:return new Z(...n.reverse(),...r);case x:return[...r,...n];case h:o=new Map(r);for(const i of n)Array.isArray(i)?o.set(i[0],i[1]):s(i).forEach(c=>{o.set(c[0],c[1])});return o;case F:return l(function*(){yield*n,yield*r});case d:u={...r};for(const i of n)Array.isArray(i)?u[i[0]]=i[1]:Object.assign(u,i);return u;default:throw new Error("Illegal argument: conj expects a Set, Array, List, Map, or Object as the first argument.")}}function Ot(t,...e){for(const n of e)t.delete(n);return t}function Ue(t,...e){const n=new t.constructor([...t]);return Ot(n,...e)}function $t(t,e){switch(p(t)){case m:case h:return t.has(e);case void 0:return!1;default:return e in t}}function Je(t,...e){for(const n of e)delete t[n];return t}function Xe(t,...e){if(!t)return;if(e.length===0)return t;const n=G(t);switch(p(t)){case h:for(const r of e)n.delete(r);break;default:for(const r of e)delete n[r];break}return n}function Bt(t){return t+1}function Ze(t){return t-1}function He(...t){console.log(...t)}function zt(t,e,n){if(t){var r=void 0;if(Array.isArray(t))r=t[e];else{const o=s(t);let u=0;for(const i of o)if(u++==e){r=i;break}}if(r!==void 0)return r}return n}function w(t,e,n=void 0){if(t==null)return n;let r;if(P(t))return r=t[e],r===void 0?n:r;let o;switch(p(t)){case m:t.has(e)&&(r=e);break;case h:r=t.get(e);break;case x:r=t[e];break;default:if(o=t.get,o instanceof Function)try{r=t.get(e);break}catch{}r=t[e];break}return r!==void 0?r:n}function qt(t){return t!=null&&!!t[Symbol.iterator]}const it=qt;function Ft(t){return t==null||!!t[Symbol.iterator]}function s(t){if(t==null)return[];if(Ft(t))return t;if(t instanceof Object)return Object.entries(t);throw new TypeError(`${t} is not iterable`)}const at=Symbol("Iterable"),Lt=Symbol.iterator;function C(t){return t[Symbol.iterator]()}const D=C;function E(t){if(t==null)return t;const e=s(t);return e.length===0||e.size===0||e[Symbol.iterator]().next().done?null:e}function I(t){const[e]=s(t);return e}function tn(t){const[e,n]=s(t);return n}function en(t){return I(I(t))}function V(t){return l(function*(){let e=!0;for(const n of s(t))e?e=!1:yield n})}class B{value;constructor(e){this.value=e}_deref(){return this.value}}function nn(t){t=s(t);let e;switch(p(t)){case x:return t[t.length-1];default:for(const n of t)e=n;return e}}function W(t){return new B(t)}function R(t){return t instanceof B}function S(t,e,n){t=f(t);let r,o;if(arguments.length===2){const u=s(e)[Symbol.iterator](),i=u.next();i.done?o=t():o=i.value,r=u}else o=e,r=s(n);if(o instanceof B)return o.value;for(const u of r)if(o=t(o,u),o instanceof B){o=o.value;break}return o}function*rn(t,e){const n=e.next();n.done?yield t():yield*Pt(t,n.value,e)}function*Pt(t,e,n){let r=e,o=n;for(;;){if(R(r)){yield r.value;return}else yield r;const u=o.next();if(u.done)break;r=t(r,u.value)}}function on(t,e,n){return t=f(t),arguments.length===2?l(function*(){yield*rn(t,s(e)[Symbol.iterator]())}):l(function*(){yield*Pt(t,e,s(n)[Symbol.iterator]())})}var Yt=!1;function un(){Yt=!0}class pt{constructor(e){this.gen=e,this.usages=0}[Symbol.iterator](){if(this.usages++,this.usages>=2&&Yt)try{throw new Error}catch(e){console.warn("Re-use of lazy value",e.stack)}return this.gen()}}pt.prototype[at]=!0;function l(t){return new pt(t)}class Ct{constructor(e,n){this.x=e,this.coll=n}*[Symbol.iterator](){yield this.x,yield*s(this.coll)}}function cn(t,e){return new Ct(t,e)}function k(t,...e){switch(t=f(t),e.length){case 0:return n=>(...r)=>{switch(r.length){case 0:return n();case 1:return n(r[0]);case 2:return n(r[0],t(r[1]));default:return n(r[0],t(...r.slice(1)))}};case 1:return l(function*(){for(const n of s(e[0]))yield t(n)});default:return l(function*(){const n=e.map(r=>D(s(r)));for(;;){const r=[];for(const o of n){const u=o.next();if(u.done)return;r.push(u.value)}yield t(...r)}})}}function Dt(t){return e=>(...n)=>{switch(n.length){case 0:return e();case 1:return e(n[0]);case 2:{const r=n[0],o=n[1];return _(t(o))?e(r,o):r}}}}function U(t,e){return arguments.length===1?Dt(t):(t=f(t),l(function*(){for(const n of s(e))_(t(n))&&(yield n)}))}function sn(t,e){return[...U(t,e)]}function fn(t,e){return arguments.length===1?Dt(z(t)):U(z(t),e)}function ln(t){return e=>{let n=-1;return(...r)=>{switch(r.length){case 0:return e();case 1:return e(r[0]);case 2:return e(r[0],t((n=n+1,n),r[1]))}}}}function an(t,e){return t=f(t),arguments.length===1?ln(t):l(function*(){let n=0;for(const r of s(e))yield t(n,r),n++})}function pn(t,e){return t=f(t),l(function*(){let n=0;for(const r of s(e)){const o=t(n,r);_(o)&&(yield o),n++}})}function hn(t){return e=>{let n=-1;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=r[0],i=r[1];n++;const c=t(n,i);return c==null?u:e(u,c)}}}}function _n(t,e){return arguments.length===1?hn(t):pn(t,e)}function dn(...t){return t.join("")}function ht(t){return!_(t)}function xn(t){return t==null}const yn={};class Vt{constructor(e){this.val=e,this._watches={},this._deref=()=>this.val,this._hasWatches=!1,this._reset_BANG_=n=>{const r=this.val;if(this.val=n,this._hasWatches)for(const o of Object.entries(this._watches)){const u=o[0],i=o[1];i(u,this,r,n)}return n},this._add_watch=(n,r)=>{this._watches[n]=r,this._hasWatches=!0},this._remove_watch=n=>{delete this._watches[n]}}}function mn(t){return new Vt(t)}function N(t){return t._deref()}function Wt(t,e){t._reset_BANG_(e)}function wn(t,e,...n){e=f(e);const r=e(N(t),...n);return Wt(t,r),r}function gn(t,e,...n){const r=N(t);e=f(e);const o=e(r,...n);return t._reset_BANG_(o),[r,o]}function An(t,e){const n=N(t);return t._reset_BANG_(e),[n,e]}function bn(t,e,n){return N(t)===e?(t._reset_BANG_(n),!0):!1}function vn(t,e,n){return l(function*(){let r=t,o=e,u=n;e===void 0&&(r=0,o=t);let i=r||0;u=n??1;const c=u>=0;for(;o===void 0||c&&i<o||!c&&o<i;)yield i,i+=u})}function Mn(t,e){const n=t.exec(e);return n&&e===n[0]?n.length===1?n[0]:n:null}function En(t,e){if(ot(e)){const n=t.exec(e);return n!=null?n.length===1?n[0]:[...n]:null}else throw new TypeError("re-find must match against a string.")}function Rn(t){if(t instanceof RegExp)return t;const e=t.match(/^\(\?([dgimsuvy]*)\)/);return e?new RegExp(t.slice(e[0].length),e[1]):new RegExp(t)}function Sn(t,e,n){return t.slice(e,n)}function J(...t){return t}const kn=J;function Nn(t){return p(t)===x}function X(...t){if(t.length===2){const[r,o]=t,u=f(r),i=s(o);if(Array.isArray(i)){const c=new Array(i.length);for(var e=0;e<i.length;e++)c[e]=u(i[e]);return c}else{var n=[];for(const c of i)n.push(u(c));return n}}return[...k(...t)]}function Q(t){return H(t)?t:[...s(t)]}function Qn(t){return new Set(s(t))}function jn(t){return p(t)===m}const Ut=Symbol("IApply__apply");function Jt(t,...e){t=f(t);const n=e.slice(0,e.length-1),r=s(e[e.length-1]),o=t[Ut];return o?o(...n,r):t(...n,...r)}function Xt(t){return t%2==0}function Kn(t){return!Xt(t)}function z(t){return t=f(t),(...e)=>ht(t(...e))}function In(t){return(...e)=>t}class Z extends Array{constructor(...e){super(),this.push(...e)}}function Tn(t){return p(t)===M}function Zt(...t){return new Z(...t)}function H(t){return Array.isArray(t)}function _t(t){return l(function*(){for(const e of t)yield*s(e)})}function Ht(...t){return _t(t)}Ht[Ut]=t=>_t(t);function Gn(t,...e){if(e.length===0)return It(k(t),Se);{const n=k(t,...e);return _t(n)}}function te(t){return t}function ee(...t){return l(function*(){const e=t.map(n=>D(s(n)));for(;;){const n=[];for(const r of e){const o=r.next();if(o.done)return;n.push(o.value)}yield*n}})}function On(t){return e=>{let n=!1;return(...r)=>{switch(r.length){case 0:return e();case 1:return e(r[0]);case 2:if(n){const o=e(r[0],t);return R(o)?o:e(o,r[1])}else return n=!0,e(r[0],r[1])}}}}function $n(t,e){return arguments.length===1?On(t):rt(1,ee(xt(t),e))}function Bn(t,e){const n=p(t),r=L(n)||{};for(const o of e){const u=w(t,o);u!=null&&A(r,o,u)}return r}function dt(t){return R(t)?N(t):t}function zn(t){return e=>{let n=[];return(...r)=>{let o,u;switch(r.length){case 0:return e();case 1:return o=r[0],n.length!==0&&(u=[...n],n=[],o=dt(e(o,u))),e(o);case 2:return o=r[0],n.push(r[1]),t===n.length?(u=[...n],n=[],e(o,u)):o}}}}function ne(t,...e){if(arguments.length===1)return zn(t);let n=t,r=e[0];return e.length===2&&([n,r]=e),oe(t,n,[],r,!0)}function re(t,...e){let n=t,r=[],o=e[0];return e.length===2?[n,o]=e:e.length>2&&([n,r,o]=e),oe(t,n,r,o,!1)}const qn=re,Fn=ne;function oe(t,e,n,r,o){return l(function*(){let u=[],i=0;for(const c of s(r))i<t&&(u.push(c),u.length===t&&(yield u,u=e<t?u.slice(e):[])),i++,i===e&&(i=0);u.length>0&&(u.length===t||o?yield u:n.length&&(u.push(...n.slice(0,t-u.length)),yield u))})}function Ln(t){return e=>{let n=[];const r={};let o=r;return(...u)=>{const i=u.length;if(i===0)return e();if(i===1){let c=u[0];if(n.length!==0){const a=[...n];n=[],c=dt(e(c,a))}return e(c)}if(i===2){const c=u[0],a=u[1],g=o,y=t(a);if(o=y,g===r||y===g)return n.push(a),c;{const je=[...n];n=[];const Mt=e(c,je);return R(Mt)||n.push(a),Mt}}}}}function Pn(t,e){return t=f(t),arguments.length===1?Ln(t):l(function*(){const n=D(e),r=n.next();r.done&&(yield*null);const o=r.value;let u=t(o),i=[o],c=[];for(;;){const a=n.next();if(a.done){yield i;break}const g=a.value,y=t(g);u==y?i.push(g):(yield i,c.push(g),i=c,u=y,c=[])}})}function tt(t){const e=p(t);if(e!=null)return L(e);throw new Error(`Can't create empty of ${typeof t}`)}function Yn(...t){const e=t[0];let n;return e==null?n={}:n=ce(tt(e),e),Y(n,...t.slice(1))}function ue(t){return t[0]}function ie(t){return t[1]}function Cn(t,...e){t=f(t);var n=!1;for(const r of e)if(r!=null){n=!0;break}if(n){const r=(u,i)=>{const c=ue(i),a=ie(i);return $t(u,c)?K(u,c,t(w(u,c),a)):K(u,c,a)};return S((u,i)=>S(r,u||{},E(i)),e)}else return null}function Dn(){return performance.now()}function ce(...t){let e,n,r,o,u;switch(t.length){case 0:return[];case 1:return t[0];case 2:return Gt(t[0]??[],...s(t[1]));case 3:return e=t[0],n=t[1],r=t[2],o=G(e),u=(i,c)=>c===void 0?i:Y(i,c),vt(n,u,o,r);default:throw TypeError(`Invalid arity call of into: ${t.length}`)}}function Vn(t,e){return t===e}function xt(...t){if(t.length==0||t.length>2)throw new Error(`Invalid arity: ${t.length}`);return{[at]:!0,[Lt]:t.length==1?function*(){const e=t[0];for(;;)yield e}:function*(){const[e,n]=t;for(var r=0;r<e;r++)yield n}}}function se(t){return R(t)?t:W(t)}function Wn(t){return e=>{let n=t;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1){const u=r[0];return e(u)}if(o===2){let u=r[0];const i=r[1],c=n,a=(n=n-1,n);return c>0&&(u=e(u,i)),a>0?u:se(u)}}}}function et(t,e){return arguments.length===1?Wn(t):l(function*(){let n=t-1;for(const r of s(e))if(n-->=0&&(yield r),n<0)return})}function Un(t,e){if(t<=0)return null;if(Array.isArray(e))return E(e.slice(-t));{const n=new Array(t);let r=0;for(const o of s(e))n[r%t]=o,r++;return r%t!==0&&r>=t?n.slice(r%t).concat(n.slice(0,r%t)):(n.length=Math.min(r,t),n)}}function Jn(t){return e=>(...n)=>{const r=n.length;if(r===0)return e();if(r===1)return e(n[0]);if(r===2){const o=n[0],u=n[1];return _(t(u))?e(o,u):W(o)}}}function nt(t,e){return t=f(t),arguments.length===1?Jn(t):l(function*(){for(const n of s(e))if(_(t(n)))yield n;else return})}function Xn(t){return e=>{let n=-1;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=r[0],i=r[1];return n++,ke(n,t)===0?e(u,i):u}}}}function Zn(t,e){return arguments.length===1?Xn(t):t<=0?xt(I(e)):l(function*(){let n=0;for(const r of s(e))n%t===0&&(yield r),n++})}function Hn(t,...e){return t=f(t),function(...n){return t(...e,...n)}}function tr(t){return l(function*(){for(;;)yield*t})}function er(t){return e=>{let n=t;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=r[0],i=r[1],c=n;return n--,c>0?u:e(u,i)}}}}function rt(t,e){return arguments.length===1?er(t):l(function*(){const n=C(s(e));for(let r=0;r<t;r++)n.next();yield*n})}function nr(t){return e=>{let n=!0;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=n,i=r[0],c=r[1];return u&&_(t(c))?i:(n=null,e(i,c))}}}}function fe(t,e){return t=f(t),arguments.length===1?nr(t):l(function*(){const n=C(s(e));for(;;){const r=n.next();if(r.done)break;const o=r.value;if(!_(t(o))){yield o;break}}yield*n})}function rr(){return t=>{const e=new Set;return(...n)=>{const r=n.length;if(r===0)return t();if(r===1)return t(n[0]);if(r===2){const o=n[0],u=n[1];return e.has(u)?o:(e.add(u),t(o,u))}}}}function or(t){return arguments.length===0?rr():l(function*(){const e=new Set;for(const n of s(t))e.has(n)||(yield n),e.add(n)})}function ur(t,e,n,...r){return n=f(n),K(t,e,n(w(t,e),...r))}function yt(t,e,n){let r=t;for(const o of e)r=w(r,o);return r===void 0?n:r}function ir(t,e,n,...r){return n=f(n),jt(t,e,n(yt(t,e),...r))}function mt(t,e,...n){return t=f(t),function(r,...o){return r?t(r,...n,...o):t(e,...n,...o)}}function le(t,e){t=f(t);for(const n of s(e))if(!t(n))return!1;return!0}function cr(t,e){return!le(t,e)}function sr(t){return e=>(...n)=>{const r=n.length;if(r===0)return e();if(r===1)return e(n[0]);if(r===2){const o=n[0],u=n[1],i=t(u);return i==null?o:e(o,i)}}}function fr(t,e){return t=f(t),arguments.length===1?sr(t):l(function*(){for(const n of s(e)){const r=t(n);_(r)&&(yield r)}})}function lr(t){return t=s(t),[...t].reverse()}function wt(t,e){return arguments.length===1&&(e=t,t=void 0),t=f(t),e=s(e),[...e].sort(t||b)}function ar(t){return t===b?t:(e,n)=>{const r=t(e,n);return me(r)?r:r?-1:t(n,e)?1:0}}function pr(t,e,n){return arguments.length===2&&(n=e,e=b),t=f(t),e=f(e),wt((r,o)=>{const u=ar(e),i=t(r),c=t(o);return u(i,c)},n)}function hr(t){const e=[...t];let n=e.length;for(;n;){const r=Math.floor(Math.random()*n--),o=e[n];e[n]=e[r],e[r]=o}return e}function ae(t,e){t=f(t);for(const n of s(e)){const r=t(n);if(_(r))return r}}function _r(t,e){return t=f(t),!ae(t,e)}function dr(t,e){return(Array.isArray(e)?X:k)(r=>{const o=t[r];return o!==void 0?o:r},e)}function xr(t){return!E(t)}function yr(t){return t===void 0&&(t=1),Math.random()*t}function pe(t){return Math.floor(Math.random()*t)}function mr(t){const e=pe(q(t));return zt(t,e)}function wr(t){return l(function*(){for(;;)yield t()})}function gr(t,e){arguments.length===1&&(e=t,t=void 0);const n=wr(e);return t?et(t,n):n}function gt(t,e,n,...r){n=f(n);const o=w(t,e);return A(t,e,n(o,...r))}function Ar(t,e){t=f(t);const n={};for(const r of s(e)){const o=t(r);gt(n,o,mt(Y,[]),r)}return n}function br(t){const e={},n=mt(Bt,0);for(const r of s(t))gt(e,r,n);return e}class vr{constructor(e){this.f=e,this.res=void 0}*[Symbol.iterator](){this.res===void 0&&(this.res=this.f(),this.f=null),yield*s(this.res)}}function Mr(t){const e=[...s(t)];return e.pop(),e.length>0?e:null}function Er(...t){const[e,n]=t.length>1?t:[1,t[0]];return k((r,o)=>r,n,rt(e,n))}function Rr(t,e){return[et(t,e),rt(t,e)]}function Sr(t,e){return[nt(t,e),fe(t,e)]}function q(t){if(!t)return 0;const e=t.length||t.size;if(typeof e=="number")return e;let n=0;for(const r of s(t))n++;return n}function kr(t){return t===!0}function Nr(t){return t===!1}function Qr(t){return t!=null}function jr(t){return!!t}function Kr(t){return t===0}function Ir(t){return t<0}function Tr(t){return t>0}function Gr(...t){let e=0;const n={};for(;!(e>=t.length);)n[t[e]]=t[e+1],e=e+2;return n}function Or(t){return t.length}function $r(t,e,n,...r){if(r.length==0)return t[e]=n,n;{const o=[e,n,...r],u=o[o.length-1];let i=t,c=0;const a=o.length-2;for(;c<a;c++)i=i[o[c]];return i[o[c]]=u,n}}function Br(t){for(const e of s(t));return null}function zr(t){return Q(t)}function qr(t){return[...t]}function Fr(t,e,n){return t._add_watch(e,n)}function Lr(t,e){return t._remove_watch(e)}function At(t,e,n){if(!n)return e;var r=e;for(const o of s(n))r=t(r,o[0],o[1]);return r}function he(t,e,...n){return e==null?t:Math.max(t,e,...n)}function Pr(t,e,...n){return e==null?t:Math.min(t,e,...n)}function _e(t){return t==null?!1:!!(P(t)||t instanceof Map)}function Yr(...t){return(...e)=>{for(const n of t)for(const r of e)if(!n(r))return!1;return!0}}function Cr(...t){return(...e)=>{for(const n of t)for(const r of e){const o=n(r);if(o)return o}}}function de(t,e){return Q(e||t)}function Dr(t,e){var n=e;return l(function*(){for(;;)yield n,n=t(n)})}function Vr(...t){return t=t.map(f),(...e)=>{const n=[];for(const r of t)n.push(r(...e));return n}}function ct(t){if(Array.isArray(t)){const e=t.slice(1);return e.length>0?e:null}else return E(V(t))}function Wr(t){return ct(ct(t))}function b(t,e){if(t===e)return 0;{if(t==null)return-1;if(e==null)return 1;const n=typeof t,r=typeof e;if(n==="number"&&r==="number"||n==="string"&&r==="string")return t===e?0:t<e?-1:1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length<e.length)return-1;if(t.length>e.length)return 1;for(let o=0;o<t.length;o++){const u=b(t[o],e[o]);if(u!=0)return u}return 0}else throw new Error(`comparing ${n} to ${r}`)}}function Ur(t){return de(t)}function _(t){return t!=null&&t!==!1}const Jr=_;function xe(t,e,n){return t.substring(e,n)}function ye(t){return typeof t=="function"}function Xr(t,e){return l(function*(){for(;;){const n=t.exec(e);if(n){const r=n[0];yield n.length===1?r:Q(n);const u=n.index+he(1,r.length);if(u>e.length)break;e=xe(e,u)}else break}})}function Zr(t){return Number.isNaN(t)}function me(t){return typeof t=="number"}function we(t){if(t==null)return;switch(p(t)){case d:return Object.keys(t);case h:return Array.from(t.keys())}}function Hr(t){return we(t)}function to(t){if(t==null)return;switch(p(t)){case d:return Object.values(t);case h:return Array.from(t.values())}}function ot(t){return typeof t=="string"}function eo(t){return p(t)!=null}function no(t){return t instanceof RegExp}class bt extends Error{constructor(e,n,r){super(e),this._data=n,this._cause=r}}function ro(t){return t instanceof bt?t._data:null}function oo(t){return t instanceof Error?t.message:null}function uo(t){return t instanceof bt?t._cause:null}function io(t,e,n){return new bt(t,e,n)}function O(t){return Number.isInteger(t)}const co=O;function so(t){return O(t)&&t>0}function fo(t){return O(t)&&t>-1}function lo(t){return O(t)&&t<0}const st=Symbol("meta");function ao(t){return t instanceof Object?t[st]:null}function po(t,e){if(typeof t=="function"){const r=function(...o){return t.apply(this,o)};return r[st]=e,r}const n=G(t);return n[st]=e,n}function ho(t){return t===!0||t===!1}function ge(t){switch(p(t)){case x:case h:case d:case M:case m:return!0}return!1}function _o(t,e){return ge(e)?q(e):q(et(t,e))}function xo(t,e){const n=w(t,e);if(n!==void 0)return[e,n]}function yo(t,e){return(t%e+e)%e}function mo(t,e,...n){if(n.length==0)return e;var r=t(e),o=e;return n.forEach(u=>{var i=t(u);i<=r&&(r=i,o=u)}),o}function wo(t,e,...n){if(n.length==0)return e;var r=t(e),o=e;return n.forEach(u=>{var i=t(u);i>=r&&(r=i,o=u)}),o}function Ae(t){throw new Error(`Expected string, got: ${typeof t}`)}function go(t){if(ot(t)){if(/^[+-]?\d+$/.test(t)){const e=parseInt(t);if(Number.MIN_SAFE_INTEGER<=e<=Number.MAX_SAFE_INTEGER)return e}return null}return Ae(t)}function Ao(t){if(ot(t))return/^[\\x00-\\x20]*[+-]?NaN[\\x00-\\x20]*$/.test(t)?NaN:/^[\\x00-\\x20]*[+-]?(Infinity|((\d+\.?\d*|\.\d+)([eE][+-]?\d+)?)[dDfF]?)[\\x00-\\x20]*$/.test(t)?parseFloat(t):null;throw new Ae(t)}function be(t){return t>=0?Math.floor(t):Math.ceil(t)}function ve(t,e){const n=t%e;return be((t-n)/e)}function Me(t,...e){if(e.length==0)for(;;){const n=t();if(_(ye(n))){t=n;continue}else return n}else return Me(function(){return Jt(t,e)})}function vt(t,...e){switch(e.length){case 2:{const n=e[0],r=e[1];return vt(t,n,n(),r)}default:{let n=e[0];const r=e[1],o=e[2];n=t(n);const u=S(n,r,o);return n(u)}}}function bo(t,e){const n={},r=s(t)[Symbol.iterator](),o=s(e)[Symbol.iterator]();let u,i;for(;u=r.next(),!(u.done||(i=o.next(),i.done));)n[u.value]=i.value;return n}function vo(t){return E(t)?t:null}function Ee(t,e,n){const r=function*(o){if(yield o,_(t(o)))for(const u of s(e(o)))yield*r(u)};return l(function*(){yield*r(n)})}function Mo(t){return U(z(it),V(Ee(it,E,t)))}function Eo(t){return G(t)}function Ro(t){return Object.freeze(t)}class ${constructor(e){e instanceof $||(e=wt(e));const r=new Set(e);this._elts=[...r],this._set=r}add(e){if(this._set.has(e))return this;const n=this._elts;let r=!1;for(let o=0;o<n.length;o++)if(b(e,n[o])<=0){n.splice(o,0,e),r=!0;break}return r?this._set=new Set(n):(n.push(e),this._set.add(e)),this.size=n.length,this}delete(e){if(!this._set.has(e))return this;const n=this._elts,r=n.indexOf(e);return n.splice(r,1),this._set=new Set(n),this.size=n.length,this}has(e){return this._set.has(e)}keys(){return this.values()}values(){return this._elts[Symbol.iterator]()}entries(){return this._set.entries()}forEach(...e){return this.set.forEach(...e)}clear(){this._elts=[],this._set=new Set(this._elts)}[Symbol.iterator](){return this.keys()}}function So(...t){return new $(t)}function ft(t,e,n){return r=>e(b(r,n),0)}function Re(t,e,n=!0){let r=0;for(;r<t.length&&b(e,t[r])>0;r++);return r}function ko([t,e,n]){const r=ft(t,e,n);if(e===kt||e===Nt){const o=[...t],u=Re(o,n,!0);return o.splice(0,u),r(o[0])||o.splice(0,1),o}else return[...nt(r,t)]}function No([t,e,n,r,o]){const u=[...t],i=Re(u,n,!0);u.splice(0,i);const c=ft(t,r,o);return ft(t,e,n)(u[0])||u.splice(0,1),[...nt(c,u)]}function Qo(...t){if(t.length===3)return ko(t);if(t.length===5)return No(t)}function jo(t){return Math.abs(t)}function Ko(t){return be(t)}function Io(t){return t!=null&&t.constructor}function To(t){return(e,n)=>{const r=t(e,n);return R(r)?W(r):r}}function Se(t){return t=To(t),(...e)=>{switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return S(t,e[0],e[1])}}}function ke(t,e){const n=ve(t,e);return t-e*n}function Go(t){const e=new Map;return(...n)=>{const r=[n.length,...n],o=yt(e,r);if(o===void 0){const u=t(...n);return Kt(e,r,u),u}else return o}}function Oo(t){return H(t)?t[t.length-1]:I(t)}function $o(t){if(H(t)){const e=[...t];return e.pop(),e}else return V(t)}function Bo(t,e){const n=tt(t),r=Qt(t)||A;return At((o,u,i)=>r(o,e(u),i),n,t),n}function Ne(t,e){const n=tt(t),r=Qt(t)||A;return At((o,u,i)=>r(o,u,e(i)),n,t),n}function zo(){return crypto.randomUUID()}class qo{constructor(e){this.f=e}_deref(){return this.realized?this.v:(this.v=this.f(),this.realized=!0,this.v)}}function lt(t,e){if(e.has(t))return t;if(e.add(t),_e(t))return Ne(t,r=>lt(r,e));const n=p(t);return n&&n!=d?X(r=>lt(r,e),t):t}function Fo(t){return lt(t,new Set)}function Lo(t,e){S((n,r)=>t(r),null,e)}function Po(...t){return ht(St(...t))}class Yo{constructor(e){this.v=e}_deref(){return this.v}}function Co(t){return new Yo(t)}function Do(t,e){t.v=e}function v(t,e=new WeakSet){if(t==null)return"nil";if(typeof t=="number"||typeof t=="boolean")return String(t);if(typeof t=="string")return JSON.stringify(t);if(typeof t=="bigint")return`${t}N`;if(typeof t=="object"){if(e.has(t))return"#object[circular]";e.add(t);const n=p(t);let r;switch(n){case x:return`[${t.map(o=>v(o,e)).join(" ")}]`;case m:return`#{${Array.from(t).map(o=>v(o,e)).join(" ")}}`;case h:return`#js/Map {${Array.from(t.entries()).map(([o,u])=>`${v(o,e)} ${v(u,e)}`).join(", ")}}`;case F:case M:return`(${X(o=>`${v(o,e)}`,t).join(", ")})`;default:return r=Object.keys(t),`{${r.map(o=>`:${o} ${v(t[o],e)}`).join(", ")}}`}}return`#object[${t.constructor.name}]`}function Qe(...t){return t.map((e,n)=>v(e)).join(" ")}function Vo(...t){return console.log(Qe(...t))}return $e(Wo);})();
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "squint-cljs",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.10.185",
5
+ "version": "0.11.187",
6
6
  "files": [
7
7
  "core.js",
8
8
  "src/squint/core.js",
@@ -10,6 +10,8 @@
10
10
  "src/squint/string.js",
11
11
  "src/squint/set.js",
12
12
  "src/squint/html.js",
13
+ "src/squint/math.js",
14
+ "src/squint/test.mjs",
13
15
  "lib",
14
16
  "node_cli.js",
15
17
  "index.js",
@@ -58,6 +60,7 @@
58
60
  "./src/squint/math.js": "./src/squint/math.js",
59
61
  "./src/squint/string.js": "./src/squint/string.js",
60
62
  "./node-api.js": "./node-api.js",
61
- "./src/squint/html.js": "./src/squint/html.js"
63
+ "./src/squint/html.js": "./src/squint/html.js",
64
+ "./src/squint/test.mjs": "./src/squint/test.mjs"
62
65
  }
63
66
  }
@@ -2501,6 +2501,14 @@ export function meta(x) {
2501
2501
  }
2502
2502
 
2503
2503
  export function with_meta(x, m) {
2504
+ // For functions, wrap in a new callable that forwards to the original
2505
+ // so fn? stays true and the original isn't mutated. copy() can't handle
2506
+ // functions — a {...x} spread loses the call signature.
2507
+ if (typeof x === 'function') {
2508
+ const wrapped = function (...args) { return x.apply(this, args); };
2509
+ wrapped[_metaSym] = m;
2510
+ return wrapped;
2511
+ }
2504
2512
  const ret = copy(x);
2505
2513
  ret[_metaSym] = m;
2506
2514
  return ret;