New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

squint-cljs

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

squint-cljs - npm Package Compare versions

Comparing version

to
0.4.73

76

lib/cli.js

@@ -6,47 +6,47 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js";

import*as esm_import$fs from"fs";import*as esm_import$net from"net";import*as esm_import$readline from"readline";import*as esm_import$squint_cljs$core from"squint-cljs/core.js";import*as esm_import$node_util from"node:util";import*as esm_import$path from"path";
var qga=function(a,b){return $APP.Vd(a)&&$APP.Vd(b)?$APP.Mk.l($APP.F([a,b])):$APP.Sd(a)&&($APP.Ud(a)||$APP.Td(a))&&$APP.Sd(b)&&($APP.Ud(b)||$APP.Td(b))?$APP.Rg.g(a,b):b},X9=function(a,b){return $APP.oe.j(function(c,d){return $APP.Iu.l(qga,$APP.F([c,d]))},a,b)},Y9=function(a){throw $APP.Zk.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.n(null,1,[rga,a],null));},Z9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:Y9(a)},sga=function(a){var b=JSON.parse(a);return $APP.mF(b)?b:Y9(a)},tga=
function(a){var b=JSON.parse(a);return $APP.nF(b)?b:Y9(a)},$9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:Y9(a)},a$=function(a){return"string"===typeof a?$APP.C.j(a,0,null):null},b$=function(a){return $APP.A.g(":",a$(a))?$APP.ri.h($APP.fi.g(a,1)):$APP.ri.h(a)},uga=function(a){return $APP.Sd(a)?$APP.y(a):a},c$=function(a){if("string"===typeof a)try{var b=a$(a);if($APP.A.g("true",a)||$APP.A.g("false",a))var c=Z9(a);else{if($APP.A.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e=
$9(a);else{var f=$APP.A.g(":",b);var k=f?$APP.di(/:[a-zA-Z][a-zA-Z0-9_\/\.-]*/,a):f;e=$APP.r(k)?b$(a):a}d=e}c=d}return c}catch(l){return a}else return a},d$=function(a,b,c,d){throw $APP.Zk.j(["Coerce failure: cannot transform ",$APP.r(b)?"(implicit) true":["input ",$APP.Oi.l($APP.F([a]))].join(""),c instanceof $APP.I?" to ":" with ",$APP.t.h(c instanceof $APP.I?$APP.Xh(c):c)].join(""),new $APP.n(null,2,[vga,a,wga,c],null),d);},xga=function(a,b,c){var d=function(){switch(b instanceof $APP.I?b.da:null){case "boolean":case "bool":return Z9;
case "int":case "long":return sga;case "double":return tga;case "number":return $9;case "symbol":return $APP.Ei;case "keyword":return b$;case "string":return $APP.se;case "edn":return $APP.$F;case "auto":return c$;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=d$(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?d$(a,c,b,null):d},e$=function(a,b,c){a=$APP.fe.g(a,b);c=$APP.r(a)?a:$APP.Sd(c)?$APP.Hd(c):null;return $APP.r(c)?$APP.Sd(c)?$APP.eq.g($APP.Ee,
c):c:null},f$=function(a,b,c,d){return $APP.Ko.g(b,c)?(c=$APP.rF(a,b),$APP.r(c)?($APP.C.j(c,0,null),c=$APP.C.j(c,1,null),$APP.zi.j(a,b,$APP.r(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.zi.j(a,b,$APP.r(d)?d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},yga=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Sd(d):d)?xga(e,d,f):c$(e);return $APP.r(c)?$APP.Pm.A(a,b,c,d):$APP.zi.j(a,b,d)},zga=function(a){return $APP.oe.j(function(b,c){var d=$APP.C.j(c,0,null);c=$APP.C.j(c,1,null);var e=$APP.jf(c),f=$APP.fe.g(e,
g$),k=$APP.fe.g(e,h$);c=$APP.fe.g(e,$APP.zm);var l=$APP.fe.g(e,$APP.GD);e=$APP.fe.g(e,i$);b=$APP.r(f)?$APP.Pm.J(b,g$,$APP.zi,d,f):b;b=$APP.r(k)?$APP.Pm.j(b,h$,function(m){if($APP.he(m,k))throw $APP.Zk.g(["Conflicting alias ",$APP.t.h(k)," between ",$APP.t.h($APP.fe.g(m,k))," and ",$APP.t.h(d)].join(""),new $APP.n(null,1,[h$,k],null));return $APP.zi.j(m,k,d)}):b;b=$APP.r(l)?$APP.Pm.j(b,$APP.GD,$APP.eq.g(function(m){return $APP.Ee.g(m,d)},$APP.Rh)):b;b=$APP.r(e)?$APP.Pm.J(b,i$,$APP.zi,d,e):b;return $APP.r(c)?
$APP.Pm.J(b,j$,$APP.zi,d,c):b},$APP.hf,a)},n$=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,k$);b=$APP.sF(function(d){var e=$APP.r(c)?null:$APP.qa(d,":");return!($APP.r(e)?e:$APP.qa(d,"-"))},a);a=$APP.C.j(b,0,null);b=$APP.C.j(b,1,null);return new $APP.n(null,2,[l$,a,m$,b],null)},p$=function(a,b){if($APP.r(b))if($APP.x(a)){var c=$APP.xd(a),d=$APP.$e(c,b);c=c<d?c:d;a=new $APP.J(null,2,5,$APP.N,[$APP.R.g($APP.tu.g(b,a),$APP.Nf.g(c,a)),$APP.Nf.g(c,b)],null)}else a=new $APP.J(null,2,5,$APP.N,[a,b],null);
var rga=function(a,b){return $APP.Vd(a)&&$APP.Vd(b)?$APP.Mk.l($APP.F([a,b])):$APP.Sd(a)&&($APP.Ud(a)||$APP.Td(a))&&$APP.Sd(b)&&($APP.Ud(b)||$APP.Td(b))?$APP.Rg.g(a,b):b},X9=function(a,b){return $APP.oe.j(function(c,d){return $APP.Iu.l(rga,$APP.F([c,d]))},a,b)},Y9=function(a){throw $APP.Zk.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.n(null,1,[sga,a],null));},Z9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:Y9(a)},tga=function(a){var b=JSON.parse(a);return $APP.nF(b)?b:Y9(a)},uga=
function(a){var b=JSON.parse(a);return $APP.oF(b)?b:Y9(a)},$9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:Y9(a)},a$=function(a){return"string"===typeof a?$APP.C.j(a,0,null):null},b$=function(a){return $APP.A.g(":",a$(a))?$APP.ri.h($APP.fi.g(a,1)):$APP.ri.h(a)},vga=function(a){return $APP.Sd(a)?$APP.y(a):a},c$=function(a){if("string"===typeof a)try{var b=a$(a);if($APP.A.g("true",a)||$APP.A.g("false",a))var c=Z9(a);else{if($APP.A.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e=
$9(a);else{var f=$APP.A.g(":",b);var k=f?$APP.di(/:[a-zA-Z][a-zA-Z0-9_\/\.-]*/,a):f;e=$APP.r(k)?b$(a):a}d=e}c=d}return c}catch(l){return a}else return a},d$=function(a,b,c,d){throw $APP.Zk.j(["Coerce failure: cannot transform ",$APP.r(b)?"(implicit) true":["input ",$APP.Oi.l($APP.F([a]))].join(""),c instanceof $APP.I?" to ":" with ",$APP.t.h(c instanceof $APP.I?$APP.Xh(c):c)].join(""),new $APP.n(null,2,[wga,a,xga,c],null),d);},yga=function(a,b,c){var d=function(){switch(b instanceof $APP.I?b.da:null){case "boolean":case "bool":return Z9;
case "int":case "long":return tga;case "double":return uga;case "number":return $9;case "symbol":return $APP.Ei;case "keyword":return b$;case "string":return $APP.se;case "edn":return $APP.aG;case "auto":return c$;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=d$(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?d$(a,c,b,null):d},e$=function(a,b,c){a=$APP.fe.g(a,b);c=$APP.r(a)?a:$APP.Sd(c)?$APP.Hd(c):null;return $APP.r(c)?$APP.Sd(c)?$APP.eq.g($APP.Ee,
c):c:null},f$=function(a,b,c,d){return $APP.Ko.g(b,c)?(c=$APP.sF(a,b),$APP.r(c)?($APP.C.j(c,0,null),c=$APP.C.j(c,1,null),$APP.zi.j(a,b,$APP.r(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.zi.j(a,b,$APP.r(d)?d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},zga=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Sd(d):d)?yga(e,d,f):c$(e);return $APP.r(c)?$APP.Pm.A(a,b,c,d):$APP.zi.j(a,b,d)},Aga=function(a){return $APP.oe.j(function(b,c){var d=$APP.C.j(c,0,null);c=$APP.C.j(c,1,null);var e=$APP.jf(c),f=$APP.fe.g(e,
g$),k=$APP.fe.g(e,h$);c=$APP.fe.g(e,$APP.zm);var l=$APP.fe.g(e,$APP.FD);e=$APP.fe.g(e,i$);b=$APP.r(f)?$APP.Pm.J(b,g$,$APP.zi,d,f):b;b=$APP.r(k)?$APP.Pm.j(b,h$,function(m){if($APP.he(m,k))throw $APP.Zk.g(["Conflicting alias ",$APP.t.h(k)," between ",$APP.t.h($APP.fe.g(m,k))," and ",$APP.t.h(d)].join(""),new $APP.n(null,1,[h$,k],null));return $APP.zi.j(m,k,d)}):b;b=$APP.r(l)?$APP.Pm.j(b,$APP.FD,$APP.eq.g(function(m){return $APP.Ee.g(m,d)},$APP.Rh)):b;b=$APP.r(e)?$APP.Pm.J(b,i$,$APP.zi,d,e):b;return $APP.r(c)?
$APP.Pm.J(b,j$,$APP.zi,d,c):b},$APP.hf,a)},n$=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,k$);b=$APP.tF(function(d){var e=$APP.r(c)?null:$APP.qa(d,":");return!($APP.r(e)?e:$APP.qa(d,"-"))},a);a=$APP.C.j(b,0,null);b=$APP.C.j(b,1,null);return new $APP.n(null,2,[l$,a,m$,b],null)},p$=function(a,b){if($APP.r(b))if($APP.x(a)){var c=$APP.xd(a),d=$APP.$e(c,b);c=c<d?c:d;a=new $APP.J(null,2,5,$APP.N,[$APP.R.g($APP.tu.g(b,a),$APP.Nf.g(c,a)),$APP.Nf.g(c,b)],null)}else a=new $APP.J(null,2,5,$APP.N,[a,b],null);
else a=new $APP.J(null,2,5,$APP.N,[a,b],null);b=a;a=$APP.C.j(b,0,null);b=$APP.C.j(b,1,null);return new $APP.n(null,2,[m$,a,o$,b],null)},x$=function(a,b,c,d,e){var f=a$(a),k="string"===typeof a?$APP.C.j(a,1,null):null,l;if(l=$APP.A.g(f,"-")){try{var m=$9($APP.t.h(k))}catch(g){m=null}l=$APP.Za(m)}b=$APP.r(b)?b:l?q$:null;f=$APP.A.g(":",f);c=$APP.Ko.g(q$,b)&&f&&($APP.A.g(r$,d)||$APP.Za(c)||$APP.A.g(e,c));d=$APP.r(b)?b:c?s$:null;a=l?$APP.r(k)?$APP.Ko.g("-",k)&&2<$APP.xd(a):k:null;return new $APP.n(null,
5,[$APP.uw,d,t$,l,u$,a,v$,c,w$,f],null)},Dga=function(a,b){function c(vb){vb=$APP.Mk.l($APP.F([new $APP.n(null,2,[y$,d,$APP.Tk,z$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=y$.h(b),e=$APP.r(d)?X9(b,$APP.F([zga(d)])):b,f=g$.h(e),k=function(){var vb=h$.h(e);return $APP.r(vb)?vb:$APP.Lq.h(e)}(),l=Aga.h(e),m=$APP.GD.h(e),g=j$.h(e),p=k$.h(e),q=function(){var vb=A$.h(e);return $APP.r(vb)?vb:Bga.h(e)}(),v=$APP.Vh($APP.R.l($APP.Mh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Mh(f)]))),
D=$APP.A.g(!0,q)?v:null==q?null:$APP.Vh(q),H=i$.h(e),O=function(){var vb=Cga.h(e);return $APP.r(vb)?vb:function(Xb){Xb=$APP.jf(Xb);var Hc=$APP.fe.g(Xb,B$);throw $APP.Zk.g(Hc,Xb);}}(),P=n$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,l$),ja=$APP.fe.g(W,m$),ma=function(){var vb=o$.h(e);vb=$APP.r(vb)?vb:C$.h(e);return $APP.r(vb)?p$(ca,vb):new $APP.n(null,2,[o$,null,m$,ja],null)}(),pa=$APP.jf(ma),fa=$APP.fe.g(pa,m$),E=$APP.fe.g(pa,o$),B=$APP.Ko.g(fa,ja)?new $APP.J(null,2,5,$APP.N,[null,$APP.R.g(fa,ja)],null):
5,[$APP.tw,d,t$,l,u$,a,v$,c,w$,f],null)},Ega=function(a,b){function c(vb){vb=$APP.Mk.l($APP.F([new $APP.n(null,2,[y$,d,$APP.Tk,z$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=y$.h(b),e=$APP.r(d)?X9(b,$APP.F([Aga(d)])):b,f=g$.h(e),k=function(){var vb=h$.h(e);return $APP.r(vb)?vb:$APP.Lq.h(e)}(),l=Bga.h(e),m=$APP.FD.h(e),g=j$.h(e),p=k$.h(e),q=function(){var vb=A$.h(e);return $APP.r(vb)?vb:Cga.h(e)}(),v=$APP.Vh($APP.R.l($APP.Mh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Mh(f)]))),
D=$APP.A.g(!0,q)?v:null==q?null:$APP.Vh(q),H=i$.h(e),O=function(){var vb=Dga.h(e);return $APP.r(vb)?vb:function(Xb){Xb=$APP.jf(Xb);var Hc=$APP.fe.g(Xb,B$);throw $APP.Zk.g(Hc,Xb);}}(),P=n$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,l$),ja=$APP.fe.g(W,m$),ma=function(){var vb=o$.h(e);vb=$APP.r(vb)?vb:C$.h(e);return $APP.r(vb)?p$(ca,vb):new $APP.n(null,2,[o$,null,m$,ja],null)}(),pa=$APP.jf(ma),fa=$APP.fe.g(pa,m$),E=$APP.fe.g(pa,o$),B=$APP.Ko.g(fa,ja)?new $APP.J(null,2,5,$APP.N,[null,$APP.R.g(fa,ja)],null):
new $APP.J(null,2,5,$APP.N,[ca,ja],null),ea=$APP.C.j(B,0,null),K=$APP.C.j(B,1,null),M=function(){for(var vb=$APP.hf,Xb=null,Hc=null,Le=$APP.r(p)?q$:null,gd=$APP.x(K),Dg=E;;){if($APP.Za(gd))return new $APP.J(null,3,5,$APP.N,[vb,Xb,Hc],null);var gg=$APP.y(gd),Sc=gg instanceof $APP.I;if(Sc){Xb=f$(vb,Xb,Hc,null);var ne=gg;gd=$APP.z(gd);vb=Xb;Xb=ne}else{var vl=!0===gg,Pf=$APP.t.h(gg);ne=e$(l,Xb,$APP.fe.g(f,Xb));var vi=$APP.fe.g(f,Xb),wl=x$(Pf,Le,Xb,vi,Hc),Jh=$APP.jf(wl),xl=$APP.fe.g(Jh,t$),Kh=$APP.fe.g(Jh,
u$),yl=$APP.fe.g(Jh,v$),Qf=$APP.fe.g(Jh,$APP.uw),jk=$APP.fe.g(Jh,w$);if($APP.r(function(){var Ne=xl;return $APP.r(Ne)?Ne:yl}())){var Xc=$APP.qa(Pf,"--"),kk=Xc&&$APP.A.g("--",Pf);if(kk){var zl=$APP.z(gd);return new $APP.J(null,3,5,$APP.N,[function(){var Ne=vb;return zl?$APP.fo.A(Ne,$APP.vu,new $APP.J(null,2,5,$APP.N,[z$,m$],null),$APP.mg(zl)):Ne}(),Xb,Hc],null)}var lk=Xc?$APP.fi.g(Pf,2):$APP.Wj(Pf,/^(:|-|)/,""),xf=Xc?$APP.Iq.g(lk,/=/):new $APP.J(null,1,5,$APP.N,[lk],null),Qd=$APP.C.j(xf,0,null),Be=
u$),yl=$APP.fe.g(Jh,v$),Qf=$APP.fe.g(Jh,$APP.tw),jk=$APP.fe.g(Jh,w$);if($APP.r(function(){var Ne=xl;return $APP.r(Ne)?Ne:yl}())){var Xc=$APP.qa(Pf,"--"),kk=Xc&&$APP.A.g("--",Pf);if(kk){var zl=$APP.z(gd);return new $APP.J(null,3,5,$APP.N,[function(){var Ne=vb;return zl?$APP.fo.A(Ne,$APP.vu,new $APP.J(null,2,5,$APP.N,[z$,m$],null),$APP.mg(zl)):Ne}(),Xb,Hc],null)}var lk=Xc?$APP.fi.g(Pf,2):$APP.Wj(Pf,/^(:|-|)/,""),xf=Xc?$APP.Iq.g(lk,/=/):new $APP.J(null,1,5,$APP.N,[lk],null),Qd=$APP.C.j(xf,0,null),Be=
$APP.C.j(xf,1,null),Tb=$APP.ri.h(Qd),Dc=$APP.fe.j(k,Tb,Tb);if($APP.r(Be))Hc=f$(vb,Xb,Hc,ne),Xb=Dc,Le=Qf,gd=$APP.He(Be,$APP.cd(gd)),vb=Hc,Hc=null;else{var Ab=$APP.z(gd),Me=$APP.y(Ab),Zv=x$(Me,Qf,Xb,vi,Hc);if($APP.r(function(){var Ne=t$.h(Zv);return $APP.r(Ne)?Ne:$APP.Rd(Ab)}()))if($APP.r(Kh)){var $v=$APP.Xh(Dc);Hc=$APP.xr.l(function(){return function(Ne){return new $APP.J(null,2,5,$APP.N,[["-",$APP.t.h(Ne)].join(""),!0],null)}}(vb,Xb,Hc,Le,gd,Dg,$v,Ab,Me,Zv,lk,xf,Qd,Be,Tb,Dc,Xc,kk,vl,Pf,ne,vi,wl,Jh,
xl,Kh,yl,Qf,jk,gg,Sc,d,e,f,k,l,m,g,p,q,v,D,H,O,c,P,W,ca,ja,ma,pa,fa,E,B,ea,K),$APP.F([$v]));gd=$APP.R.g(Hc,Ab);Le=Qf;Hc=Xb=null}else gd=$APP.he(v,Dc)?null:$APP.hF($APP.t.h(Dc),":no-"),Le=$APP.r(gd)?$APP.ri.h($APP.Wj($APP.t.h(Dc),":no-","")):Dc,gd=$APP.He($APP.Za(gd),Ab),Xb=f$(vb,Xb,Hc,ne),ne=Le,Le=Qf,vb=Xb,Xb=ne;else Xb=f$(vb,Xb,Hc,ne),ne=Dc,Le=Qf,gd=Ab,vb=Xb,Xb=ne}}else if(kk=$APP.A.g(r$,vi)&&$APP.Ko.g(Pf,"true")&&$APP.Ko.g(Pf,"false")||$APP.A.g(Hc,Xb)&&$APP.Za(ne))if(Dg=$APP.r(gd)?$APP.r(Dg)?p$(gd,
Dg):new $APP.n(null,1,[m$,gd],null):new $APP.n(null,1,[m$,gd],null),Le=$APP.jf(Dg),Dg=$APP.fe.g(Le,m$),Le=$APP.fe.g(Le,o$),$APP.Ko.g(gd,Dg))ne=Le,Le=Qf,gd=Dg,Dg=ne;else return new $APP.J(null,3,5,$APP.N,[$APP.fo.A(vb,$APP.vu,new $APP.J(null,2,5,$APP.N,[z$,m$],null),$APP.mg(gd)),Xb,Hc],null);else{try{var Yd=yga(vb,Xb,ne,uga(vi),Pf,vl)}catch(Ne){c(new $APP.n(null,4,[D$,g$,B$,$APP.wF(Ne),E$,Xb,F$,Pf],null)),Yd=vb}Hc=$APP.r(function(){var Ne=$APP.A.g(s$,Qf);return Ne?jk:Ne}())?null:Xb;ne=$APP.r(function(){var Ne=
xl,Kh,yl,Qf,jk,gg,Sc,d,e,f,k,l,m,g,p,q,v,D,H,O,c,P,W,ca,ja,ma,pa,fa,E,B,ea,K),$APP.F([$v]));gd=$APP.R.g(Hc,Ab);Le=Qf;Hc=Xb=null}else gd=$APP.he(v,Dc)?null:$APP.iF($APP.t.h(Dc),":no-"),Le=$APP.r(gd)?$APP.ri.h($APP.Wj($APP.t.h(Dc),":no-","")):Dc,gd=$APP.He($APP.Za(gd),Ab),Xb=f$(vb,Xb,Hc,ne),ne=Le,Le=Qf,vb=Xb,Xb=ne;else Xb=f$(vb,Xb,Hc,ne),ne=Dc,Le=Qf,gd=Ab,vb=Xb,Xb=ne}}else if(kk=$APP.A.g(r$,vi)&&$APP.Ko.g(Pf,"true")&&$APP.Ko.g(Pf,"false")||$APP.A.g(Hc,Xb)&&$APP.Za(ne))if(Dg=$APP.r(gd)?$APP.r(Dg)?p$(gd,
Dg):new $APP.n(null,1,[m$,gd],null):new $APP.n(null,1,[m$,gd],null),Le=$APP.jf(Dg),Dg=$APP.fe.g(Le,m$),Le=$APP.fe.g(Le,o$),$APP.Ko.g(gd,Dg))ne=Le,Le=Qf,gd=Dg,Dg=ne;else return new $APP.J(null,3,5,$APP.N,[$APP.fo.A(vb,$APP.vu,new $APP.J(null,2,5,$APP.N,[z$,m$],null),$APP.mg(gd)),Xb,Hc],null);else{try{var Yd=zga(vb,Xb,ne,vga(vi),Pf,vl)}catch(Ne){c(new $APP.n(null,4,[D$,g$,B$,$APP.xF(Ne),E$,Xb,F$,Pf],null)),Yd=vb}Hc=$APP.r(function(){var Ne=$APP.A.g(s$,Qf);return Ne?jk:Ne}())?null:Xb;ne=$APP.r(function(){var Ne=
$APP.A.g(s$,Qf);return Ne?jk:Ne}())?null:Xb;Le=Qf;gd=$APP.z(gd);vb=Yd;Xb=Hc;Hc=ne}}}}(),da=$APP.C.j(M,0,null),ha=$APP.C.j(M,1,null),ia=$APP.C.j(M,2,null),sa=e$(l,ha,$APP.fe.g(f,ha)),ta=function(){var vb=f$(da,ha,ia,sa);return $APP.x(ea)?$APP.fo.A(vb,$APP.Jk,new $APP.J(null,2,5,$APP.N,[z$,m$],null),function(Xb){return $APP.Rg.g($APP.mg(ea),Xb)}):vb}(),xa=$APP.r(g)?$APP.Md($APP.Mk.l($APP.F([g,ta])),$APP.Nd(ta)):ta;if($APP.r(D)){a=$APP.x($APP.Mh(xa));b=null;for(var ya=0,Ca=0;;)if(Ca<ya){var Ha=b.ba(null,
Ca);$APP.he(D,Ha)||c(new $APP.n(null,4,[D$,A$,B$,["Unknown option: ",$APP.t.h(Ha)].join(""),A$,D,E$,Ha],null));Ca+=1}else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.he(D,a)||c(new $APP.n(null,4,[D$,A$,B$,["Unknown option: ",$APP.t.h(a)].join(""),A$,D,E$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break}if($APP.r(m))for(a=$APP.x(m),b=null,Ca=ya=0;;)if(Ca<ya)Ha=b.ba(null,Ca),$APP.r($APP.rF(xa,Ha))||c(new $APP.n(null,4,[D$,$APP.GD,B$,["Required option: ",
$APP.t.h(Ha)].join(""),$APP.GD,m,E$,Ha],null)),Ca+=1;else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.r($APP.rF(xa,a))||c(new $APP.n(null,4,[D$,$APP.GD,B$,["Required option: ",$APP.t.h(a)].join(""),$APP.GD,m,E$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break;if($APP.r(H))for(var Da=$APP.x(H),za=null,Na=0,Sa=0;;)if(Sa<Na){var db=za.ba(null,Sa),tb=$APP.C.j(db,0,null),Bb=$APP.C.j(db,1,null),Wb=function(){var vb=(vb=$APP.Vd(Bb))?G$.h(Bb):vb;return $APP.r(vb)?
vb:Bb}(),oc=$APP.rF(xa,tb);if($APP.r(oc)){var Zc=oc,Rb=$APP.C.j(Zc,0,null),lf=$APP.C.j(Zc,1,null);if(!$APP.r(Wb.h?Wb.h(lf):Wb.call(null,lf))){var fk=function(){var vb=H$.h(Bb);return $APP.r(vb)?vb:function(){return function(Xb){var Hc=$APP.jf(Xb);Xb=$APP.fe.g(Hc,E$);Hc=$APP.fe.g(Hc,F$);return["Invalid value for option ",$APP.t.h(Xb),": ",$APP.t.h(Hc)].join("")}}(Da,za,Na,Sa,vb,Zc,Rb,lf,oc,Wb,db,tb,Bb,d,e,f,k,l,m,g,p,q,v,D,H,O,c,P,W,ca,ja,ma,pa,fa,E,B,ea,K,M,da,ha,ia,sa,ta,xa)}();c(new $APP.n(null,
5,[D$,i$,B$,function(){var vb=new $APP.n(null,2,[E$,tb,F$,lf],null);return fk.h?fk.h(vb):fk.call(null,vb)}(),i$,H,E$,tb,F$,lf],null))}}Sa+=1}else{var sl=$APP.x(Da);if(sl){var ti=sl;if($APP.Zd(ti))ya=$APP.uc(ti),a=$APP.vc(ti),b=ya,ya=$APP.xd(ya),Da=a,za=b,Na=ya;else{var gk=$APP.y(ti),hk=$APP.C.j(gk,0,null),oj=$APP.C.j(gk,1,null),ik=function(){var vb=(vb=$APP.Vd(oj))?G$.h(oj):vb;return $APP.r(vb)?vb:oj}(),tl=$APP.rF(xa,hk);if($APP.r(tl)){var Gc=tl,pj=$APP.C.j(Gc,0,null),ui=$APP.C.j(Gc,1,null);if(!$APP.r(ik.h?
Ca);$APP.he(D,Ha)||c(new $APP.n(null,4,[D$,A$,B$,["Unknown option: ",$APP.t.h(Ha)].join(""),A$,D,E$,Ha],null));Ca+=1}else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.he(D,a)||c(new $APP.n(null,4,[D$,A$,B$,["Unknown option: ",$APP.t.h(a)].join(""),A$,D,E$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break}if($APP.r(m))for(a=$APP.x(m),b=null,Ca=ya=0;;)if(Ca<ya)Ha=b.ba(null,Ca),$APP.r($APP.sF(xa,Ha))||c(new $APP.n(null,4,[D$,$APP.FD,B$,["Required option: ",
$APP.t.h(Ha)].join(""),$APP.FD,m,E$,Ha],null)),Ca+=1;else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.r($APP.sF(xa,a))||c(new $APP.n(null,4,[D$,$APP.FD,B$,["Required option: ",$APP.t.h(a)].join(""),$APP.FD,m,E$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break;if($APP.r(H))for(var Da=$APP.x(H),za=null,Na=0,Sa=0;;)if(Sa<Na){var db=za.ba(null,Sa),tb=$APP.C.j(db,0,null),Bb=$APP.C.j(db,1,null),Wb=function(){var vb=(vb=$APP.Vd(Bb))?G$.h(Bb):vb;return $APP.r(vb)?
vb:Bb}(),oc=$APP.sF(xa,tb);if($APP.r(oc)){var Zc=oc,Rb=$APP.C.j(Zc,0,null),lf=$APP.C.j(Zc,1,null);if(!$APP.r(Wb.h?Wb.h(lf):Wb.call(null,lf))){var fk=function(){var vb=H$.h(Bb);return $APP.r(vb)?vb:function(){return function(Xb){var Hc=$APP.jf(Xb);Xb=$APP.fe.g(Hc,E$);Hc=$APP.fe.g(Hc,F$);return["Invalid value for option ",$APP.t.h(Xb),": ",$APP.t.h(Hc)].join("")}}(Da,za,Na,Sa,vb,Zc,Rb,lf,oc,Wb,db,tb,Bb,d,e,f,k,l,m,g,p,q,v,D,H,O,c,P,W,ca,ja,ma,pa,fa,E,B,ea,K,M,da,ha,ia,sa,ta,xa)}();c(new $APP.n(null,
5,[D$,i$,B$,function(){var vb=new $APP.n(null,2,[E$,tb,F$,lf],null);return fk.h?fk.h(vb):fk.call(null,vb)}(),i$,H,E$,tb,F$,lf],null))}}Sa+=1}else{var sl=$APP.x(Da);if(sl){var ti=sl;if($APP.Zd(ti))ya=$APP.uc(ti),a=$APP.vc(ti),b=ya,ya=$APP.xd(ya),Da=a,za=b,Na=ya;else{var gk=$APP.y(ti),hk=$APP.C.j(gk,0,null),oj=$APP.C.j(gk,1,null),ik=function(){var vb=(vb=$APP.Vd(oj))?G$.h(oj):vb;return $APP.r(vb)?vb:oj}(),tl=$APP.sF(xa,hk);if($APP.r(tl)){var Gc=tl,pj=$APP.C.j(Gc,0,null),ui=$APP.C.j(Gc,1,null);if(!$APP.r(ik.h?
ik.h(ui):ik.call(null,ui))){var ul=function(){var vb=H$.h(oj);return $APP.r(vb)?vb:function(){return function(Xb){var Hc=$APP.jf(Xb);Xb=$APP.fe.g(Hc,E$);Hc=$APP.fe.g(Hc,F$);return["Invalid value for option ",$APP.t.h(Xb),": ",$APP.t.h(Hc)].join("")}}(Da,za,Na,Sa,vb,Gc,pj,ui,tl,ik,gk,hk,oj,ti,sl,d,e,f,k,l,m,g,p,q,v,D,H,O,c,P,W,ca,ja,ma,pa,fa,E,B,ea,K,M,da,ha,ia,sa,ta,xa)}();c(new $APP.n(null,5,[D$,i$,B$,function(){var vb=new $APP.n(null,2,[E$,hk,F$,ui],null);return ul.h?ul.h(vb):ul.call(null,vb)}(),
i$,H,E$,hk,F$,ui],null))}}Da=$APP.z(ti);za=null;Na=0}Sa=0}else break}return xa},Ega=function(a,b){a=Dga(a,b);b=z$.h($APP.Nd(a));return $APP.zi.j(b,$APP.bG,$APP.Nk.g(a,z$))},Fga=function(a,b){var c=$APP.Of($APP.xd(a),b);b=$APP.C.j(c,0,null);c=$APP.C.j(c,1,null);return $APP.A.g(b,a)?c:null},M$=function(a,b){$APP.Jf(I$,!1);a.setPrompt([$APP.t.h($APP.u(J$)),"\x3d\x3e "].join(""));a.prompt();return $APP.yF($APP.u(K$))?null:L$.g?L$.g(b,a):L$.call(null,b,a)},N$=function(a){var b=$APP.xk(a);a=$APP.yk(a);
var c=$APP.xF($APP.u(K$));b=$APP.Nf.g(b-1,c);c=$APP.x(b);b=$APP.y(c);c=$APP.z(c);a=$APP.r(b)?$APP.fi.g(b,a):null;$APP.Jf(K$,$APP.pp.g("\n",$APP.He(a,c)))},Hga=function(a,b,c){var d=function(){var f=$APP.tq;$APP.tq=$APP.u(J$);try{a:{var k=$APP.La;$APP.La=!0;try{var l=$APP.Oi.l($APP.F([a]));break a}finally{$APP.La=k}l=void 0}return $APP.Vt(l,new $APP.n(null,3,[$APP.kp,$APP.jp,$APP.Jq,Gga,$APP.Jt,!0],null),null)}finally{$APP.tq=f}}(),e=$APP.jf(d);d=$APP.fe.g(e,$APP.Ut);e=$APP.fe.g(e,$APP.S);d=$APP.Wj("(async function () {\n%s\n}) ()",
"%s",d);$APP.Jf(J$,e);return Promise.resolve(eval(d)).then(function(f){$APP.r(c)?c.write(esm_import$node_util.inspect(f),"\n"):console.log(f);return L$.g?L$.g(c,b):L$.call(null,c,b)}).catch(function(f){esm_import$squint_cljs$core.println(f);return M$(b,c)})},L$=function(a,b){if($APP.r(function(){var e=$APP.u(I$);return $APP.r(e)?e:!$APP.yF($APP.u(K$))}())){$APP.Jf(I$,!0);var c=$APP.ep($APP.u(K$)),d=function(){try{return $APP.gp(c,$APP.Gt)}catch(f){var e=f;if(-1!=$APP.wF(e).indexOf("EOF while reading"))return O$;
N$(c);$APP.YF.l($APP.F([$APP.t.h(e)]));return P$}}();if($APP.A.g(P$,d))return M$(b,a);if($APP.A.g(O$,d))return $APP.Jf(I$,!1);N$(c);return $APP.A.g($APP.fp,d)?M$(b,a):Hga(d,b,a)}return null},Q$=function(a,b){a.on("line",function(c){$APP.Ti.A(K$,$APP.t,c,"\n");return L$(b,a)})},Iga=function(a){var b=esm_import$readline.createInterface({input:a,output:a});Q$(b,a);a.setNoDelay(!0);return a.on("close",function(){return $APP.ZF.l($APP.F(["Client closed connection."]))})},R$=function(a,b,c){var d=$APP.SF.h(a),
e=$APP.BF.h(a);b=esm_import$path.resolve(d,$APP.NF(b,e));c=$APP.DF(c);d=null==c?null:esm_import$path.resolve(d,$APP.NF(c,e));d=null==d?null:null==d?null:esm_import$path.relative(esm_import$path.dirname($APP.t.h(b)),d);return $APP.r(d)?(a=$APP.RF.g(a,".mjs"),a=$APP.qa(a,".")?a:[".",$APP.t.h(a)].join(""),e=esm_import$path.extname(d),["./",$APP.Wj(d,$APP.gi([$APP.t.h(e),"$"].join("")),a)].join("")):null},S$=function(a,b,c){b=esm_import$path.resolve(b,$APP.NF(a,c));c=esm_import$path.dirname(b);$APP.r(esm_import$fs.existsSync(c))||
($APP.ZF.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0}));$APP.ZF.l($APP.F(["[squint] Copying resource",a,"to",c]));return esm_import$fs.copyFileSync(a,b)},V$=function(a,b){var c=$APP.u($APP.CF),d=$APP.Mk.l($APP.F([c,a])),e=$APP.BF.h(c),f=$APP.SF.g(c,".");a=$APP.Rd(b)?$APP.mg($APP.xr.l(T$,$APP.F([e]))):b;b=$APP.SF.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.ZF.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),
$APP.ZF(),$APP.ZF.l($APP.F(["Options:\n\n--elide-imports: do not include imports\n--elide-exports: do not include exports\n--extension: default extension for JS files\n--output-dir: output directory for JS files"]))):$APP.oe.j(function(k,l){return Promise.resolve(k).then(function(){return $APP.he(new $APP.Qh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(l))?($APP.ZF.l($APP.F(["[squint] Compiling CLJS file:",l])),$APP.TF($APP.zi.l(d,$APP.OF,l,$APP.F([$APP.zq,
function(m){return R$(d,l,m)}])))):S$(l,f,e)}).then(function(m){m=$APP.jf(m);m=$APP.fe.g(m,$APP.QF);$APP.r(m)&&$APP.ZF.l($APP.F(["[squint] Wrote file:",m]));return m})},null,a)},v$=new $APP.I(null,"kwd-opt","kwd-opt",1313309243),q$=new $APP.I(null,"hyphens","hyphens",2113533609),y$=new $APP.I(null,"spec","spec",347520401),g$=new $APP.I(null,"coerce","coerce",1917884504),A$=new $APP.I(null,"restrict","restrict",-1071101511),s$=new $APP.I(null,"keywords","keywords",1526959054),P$=new $APP.I("squint.repl.node",
"continue","squint.repl.node/continue",1558138730),B$=new $APP.I(null,"msg","msg",-1386103444),Jga=new $APP.I(null,"show","show",-576705889),r$=new $APP.I(null,"boolean","boolean",-1919418404),vga=new $APP.I(null,"input","input",556931961),W$=new $APP.I(null,"rest-cmds","rest-cmds",-423198324),z$=new $APP.I("org.babashka","cli","org.babashka/cli",1162430315),o$=new $APP.I(null,"args-\x3eopts","args-\x3eopts",964391046),h$=new $APP.I(null,"alias","alias",-2039751630),Aga=new $APP.I(null,"collect",
"collect",-284321549),i$=new $APP.I(null,"validate","validate",-201300827),u$=new $APP.I(null,"composite-opt","composite-opt",-2021292928),Kga=new $APP.I(null,"run","run",-1821166653),t$=new $APP.I(null,"hyphen-opt","hyphen-opt",1836909464),U$=new $APP.I(null,"help","help",-439233446),D$=new $APP.I(null,"cause","cause",231901252),w$=new $APP.I(null,"fst-colon","fst-colon",1618567071),wga=new $APP.I(null,"coerce-fn","coerce-fn",-821146515),m$=new $APP.I(null,"args","args",1315556576),k$=new $APP.I(null,
"no-keyword-opts","no-keyword-opts",761286018),F$=new $APP.I(null,"value","value",305978217),G$=new $APP.I(null,"pred","pred",1927423397),Bga=new $APP.I(null,"closed","closed",-919675359),O$=new $APP.I("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),Cga=new $APP.I(null,"error-fn","error-fn",-171437615),E$=new $APP.I(null,"option","option",65132272),j$=new $APP.I(null,"exec-args","exec-args",-1860766354),H$=new $APP.I(null,"ex-msg","ex-msg",-1111774387),rga=new $APP.I(null,
"s","s",1705939918),C$=new $APP.I(null,"cmds-opts","cmds-opts",-390130362),Lga=new $APP.I(null,"h","h",1109658740),l$=new $APP.I(null,"cmds","cmds",-1841503952);var K$=$APP.Si.h(""),I$=$APP.Si.h(!1),J$=$APP.Si.h($APP.tq),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var Gga=$APP.Si.h($APP.hf),Z$=function Z$(a){switch(arguments.length){case 0:return Z$.v();case 1:return Z$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};Z$.v=function(){return Z$.h(null)};
Z$.h=function(a){$APP.tq=$APP.xx;$APP.iq=$APP.sq=!0;var b=function(){var d=$APP.aG.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(Iga);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.ZF.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1;
i$,H,E$,hk,F$,ui],null))}}Da=$APP.z(ti);za=null;Na=0}Sa=0}else break}return xa},Fga=function(a,b){a=Ega(a,b);b=z$.h($APP.Nd(a));return $APP.zi.j(b,$APP.cG,$APP.Nk.g(a,z$))},Gga=function(a,b){var c=$APP.Of($APP.xd(a),b);b=$APP.C.j(c,0,null);c=$APP.C.j(c,1,null);return $APP.A.g(b,a)?c:null},M$=function(a,b){$APP.Jf(I$,!1);a.setPrompt([$APP.t.h($APP.u(J$)),"\x3d\x3e "].join(""));a.prompt();return $APP.zF($APP.u(K$))?null:L$.g?L$.g(b,a):L$.call(null,b,a)},N$=function(a){var b=$APP.xk(a);a=$APP.yk(a);
var c=$APP.yF($APP.u(K$));b=$APP.Nf.g(b-1,c);c=$APP.x(b);b=$APP.y(c);c=$APP.z(c);a=$APP.r(b)?$APP.fi.g(b,a):null;$APP.Jf(K$,$APP.pp.g("\n",$APP.He(a,c)))},Iga=function(a,b,c){var d=function(){var f=$APP.tq;$APP.tq=$APP.u(J$);try{a:{var k=$APP.La;$APP.La=!0;try{var l=$APP.Oi.l($APP.F([a]));break a}finally{$APP.La=k}l=void 0}return $APP.Vt(l,new $APP.n(null,3,[$APP.kp,$APP.jp,$APP.Jq,Hga,$APP.Jt,!0],null),null)}finally{$APP.tq=f}}(),e=$APP.jf(d);d=$APP.fe.g(e,$APP.Ut);e=$APP.fe.g(e,$APP.S);d=$APP.Wj("(async function () {\n%s\n}) ()",
"%s",d);$APP.Jf(J$,e);return Promise.resolve(eval(d)).then(function(f){$APP.r(c)?c.write(esm_import$node_util.inspect(f),"\n"):console.log(f);return L$.g?L$.g(c,b):L$.call(null,c,b)}).catch(function(f){esm_import$squint_cljs$core.println(f);return M$(b,c)})},L$=function(a,b){if($APP.r(function(){var e=$APP.u(I$);return $APP.r(e)?e:!$APP.zF($APP.u(K$))}())){$APP.Jf(I$,!0);var c=$APP.ep($APP.u(K$)),d=function(){try{return $APP.gp(c,$APP.Gt)}catch(f){var e=f;if(-1!=$APP.xF(e).indexOf("EOF while reading"))return O$;
N$(c);$APP.ZF.l($APP.F([$APP.t.h(e)]));return P$}}();if($APP.A.g(P$,d))return M$(b,a);if($APP.A.g(O$,d))return $APP.Jf(I$,!1);N$(c);return $APP.A.g($APP.fp,d)?M$(b,a):Iga(d,b,a)}return null},Q$=function(a,b){a.on("line",function(c){$APP.Ti.A(K$,$APP.t,c,"\n");return L$(b,a)})},Jga=function(a){var b=esm_import$readline.createInterface({input:a,output:a});Q$(b,a);a.setNoDelay(!0);return a.on("close",function(){return $APP.$F.l($APP.F(["Client closed connection."]))})},R$=function(a,b,c){var d=$APP.TF.h(a),
e=$APP.CF.h(a);b=esm_import$path.resolve(d,$APP.OF(b,e));c=$APP.EF(c);d=null==c?null:esm_import$path.resolve(d,$APP.OF(c,e));d=null==d?null:null==d?null:esm_import$path.relative(esm_import$path.dirname($APP.t.h(b)),d);return $APP.r(d)?(a=$APP.SF.g(a,".mjs"),a=$APP.qa(a,".")?a:[".",$APP.t.h(a)].join(""),e=esm_import$path.extname(d),["./",$APP.Wj(d,$APP.gi([$APP.t.h(e),"$"].join("")),a)].join("")):null},S$=function(a,b,c){b=esm_import$path.resolve(b,$APP.OF(a,c));c=esm_import$path.dirname(b);$APP.r(esm_import$fs.existsSync(c))||
($APP.$F.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0}));$APP.$F.l($APP.F(["[squint] Copying resource",a,"to",c]));return esm_import$fs.copyFileSync(a,b)},V$=function(a,b){var c=$APP.u($APP.DF),d=$APP.Mk.l($APP.F([c,a])),e=$APP.CF.h(c),f=$APP.TF.g(c,".");a=$APP.Rd(b)?$APP.mg($APP.xr.l(T$,$APP.F([e]))):b;b=$APP.TF.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.$F.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),
$APP.$F(),$APP.$F.l($APP.F(["Options:\n\n--elide-imports: do not include imports\n--elide-exports: do not include exports\n--extension: default extension for JS files\n--output-dir: output directory for JS files"]))):$APP.oe.j(function(k,l){return Promise.resolve(k).then(function(){return $APP.he(new $APP.Qh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(l))?($APP.$F.l($APP.F(["[squint] Compiling CLJS file:",l])),$APP.UF($APP.zi.l(d,$APP.PF,l,$APP.F([$APP.zq,
function(m){return R$(d,l,m)}])))):S$(l,f,e)}).then(function(m){m=$APP.jf(m);m=$APP.fe.g(m,$APP.RF);$APP.r(m)&&$APP.$F.l($APP.F(["[squint] Wrote file:",m]));return m})},null,a)},v$=new $APP.I(null,"kwd-opt","kwd-opt",1313309243),q$=new $APP.I(null,"hyphens","hyphens",2113533609),y$=new $APP.I(null,"spec","spec",347520401),g$=new $APP.I(null,"coerce","coerce",1917884504),A$=new $APP.I(null,"restrict","restrict",-1071101511),s$=new $APP.I(null,"keywords","keywords",1526959054),P$=new $APP.I("squint.repl.node",
"continue","squint.repl.node/continue",1558138730),B$=new $APP.I(null,"msg","msg",-1386103444),Kga=new $APP.I(null,"show","show",-576705889),r$=new $APP.I(null,"boolean","boolean",-1919418404),wga=new $APP.I(null,"input","input",556931961),W$=new $APP.I(null,"rest-cmds","rest-cmds",-423198324),z$=new $APP.I("org.babashka","cli","org.babashka/cli",1162430315),o$=new $APP.I(null,"args-\x3eopts","args-\x3eopts",964391046),h$=new $APP.I(null,"alias","alias",-2039751630),Bga=new $APP.I(null,"collect",
"collect",-284321549),i$=new $APP.I(null,"validate","validate",-201300827),u$=new $APP.I(null,"composite-opt","composite-opt",-2021292928),Lga=new $APP.I(null,"run","run",-1821166653),t$=new $APP.I(null,"hyphen-opt","hyphen-opt",1836909464),U$=new $APP.I(null,"help","help",-439233446),D$=new $APP.I(null,"cause","cause",231901252),w$=new $APP.I(null,"fst-colon","fst-colon",1618567071),xga=new $APP.I(null,"coerce-fn","coerce-fn",-821146515),m$=new $APP.I(null,"args","args",1315556576),k$=new $APP.I(null,
"no-keyword-opts","no-keyword-opts",761286018),F$=new $APP.I(null,"value","value",305978217),G$=new $APP.I(null,"pred","pred",1927423397),Cga=new $APP.I(null,"closed","closed",-919675359),O$=new $APP.I("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),Dga=new $APP.I(null,"error-fn","error-fn",-171437615),E$=new $APP.I(null,"option","option",65132272),j$=new $APP.I(null,"exec-args","exec-args",-1860766354),H$=new $APP.I(null,"ex-msg","ex-msg",-1111774387),sga=new $APP.I(null,
"s","s",1705939918),C$=new $APP.I(null,"cmds-opts","cmds-opts",-390130362),Mga=new $APP.I(null,"h","h",1109658740),l$=new $APP.I(null,"cmds","cmds",-1841503952);var K$=$APP.Si.h(""),I$=$APP.Si.h(!1),J$=$APP.Si.h($APP.tq),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var Hga=$APP.Si.h($APP.hf),Z$=function Z$(a){switch(arguments.length){case 0:return Z$.v();case 1:return Z$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};Z$.v=function(){return Z$.h(null)};
Z$.h=function(a){$APP.tq=$APP.vx;$APP.iq=$APP.sq=!0;var b=function(){var d=$APP.bG.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(Jga);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.$F.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1;
var $$=function $$(a){switch(arguments.length){case 0:return $$.v();case 1:return $$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$$.v=function(){return $$.h(null)};
$$.h=function(){$APP.tq=$APP.xx;$APP.iq=$APP.sq=!0;$APP.r(X$)&&process.stdin.setRawMode(!0);return Promise.resolve(eval("globalThis.user \x3d globalThis.user || {};")).then(function(){return new Promise(function(a){var b=$APP.r(null)?esm_import$readline.createInterface({input:null,output:null}):esm_import$readline.createInterface({input:process.stdin,output:process.stdout});Q$(b,null);b.setPrompt([$APP.t.h($APP.u(J$)),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};$$.m=1;var T$=function T$(a){var c=esm_import$fs.readdirSync(a);return $APP.mg($APP.xr.l(function(d){d=esm_import$path.resolve(a,d);return $APP.r(esm_import$fs.lstatSync(d).isDirectory())?T$.h?T$.h(d):T$.call(null,d):new $APP.J(null,1,5,$APP.N,[d],null)},$APP.F([c])))},Mga=new $APP.J(null,7,5,$APP.N,[new $APP.n(null,3,[l$,new $APP.J(null,1,5,$APP.N,["run"],null),$APP.uo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.bG);var b=$APP.u($APP.CF),c=$APP.Mk.l($APP.F([b,a]));a=$APP.jf(c);var d=$APP.fe.g(a,$APP.Wk);
a=$APP.fe.g(a,U$);if($APP.r(a))return null;$APP.ZF.l($APP.F(["[squint] Running",d]));return $APP.TF($APP.zi.l(c,$APP.OF,d,$APP.F([$APP.zq,function(e){return R$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.QF);e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",$APP.t.h(e)].join("");return shadow_esm_import(e)})},C$,new $APP.J(null,1,5,$APP.N,[$APP.Wk],null)],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["compile"],null),$APP.uo,function(a){var b=$APP.jf(a);
a=$APP.fe.g(b,W$);b=$APP.fe.g(b,$APP.bG);return V$(b,a)}],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["repl"],null),$APP.uo,$$],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["socket-repl"],null),$APP.uo,Z$],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["nrepl-server"],null),$APP.uo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.bG);return shadow_esm_import("./node.nrepl_server.js").then(function(c){c=c.startServer;return c.h?c.h(b):c.call(null,b)})}],null),new $APP.n(null,
2,[l$,new $APP.J(null,1,5,$APP.N,["watch"],null),$APP.uo,function(a){var b=$APP.u($APP.CF),c=$APP.Mk.l($APP.F([b,a])),d=$APP.BF.h(b),e=$APP.SF.g(b,".");return shadow_esm_import("chokidar").catch(function(f){return console.error(f)}).then(function(f){f=f.watch;$APP.ZF.l($APP.F(["[squint] Watching paths:",$APP.pp.g(", ",d)]));for(var k=$APP.x(d),l=null,m=0,g=0;;)if(g<m){var p=l.ba(null,g);(f.h?f.h(p):f.call(null,p)).on("all",function(D,H,O,P,W,ca,ja,ma,pa,fa){return function(E,B){return $APP.r(esm_import$fs.lstatSync(B).isDirectory())?
$$.h=function(){$APP.tq=$APP.vx;$APP.iq=$APP.sq=!0;$APP.r(X$)&&process.stdin.setRawMode(!0);return Promise.resolve(eval("globalThis.user \x3d globalThis.user || {};")).then(function(){return new Promise(function(a){var b=$APP.r(null)?esm_import$readline.createInterface({input:null,output:null}):esm_import$readline.createInterface({input:process.stdin,output:process.stdout});Q$(b,null);b.setPrompt([$APP.t.h($APP.u(J$)),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};$$.m=1;var T$=function T$(a){var c=esm_import$fs.readdirSync(a);return $APP.mg($APP.xr.l(function(d){d=esm_import$path.resolve(a,d);return $APP.r(esm_import$fs.lstatSync(d).isDirectory())?T$.h?T$.h(d):T$.call(null,d):new $APP.J(null,1,5,$APP.N,[d],null)},$APP.F([c])))},Nga=new $APP.J(null,7,5,$APP.N,[new $APP.n(null,3,[l$,new $APP.J(null,1,5,$APP.N,["run"],null),$APP.uo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.cG);var b=$APP.u($APP.DF),c=$APP.Mk.l($APP.F([b,a]));a=$APP.jf(c);var d=$APP.fe.g(a,$APP.Wk);
a=$APP.fe.g(a,U$);if($APP.r(a))return null;$APP.$F.l($APP.F(["[squint] Running",d]));return $APP.UF($APP.zi.l(c,$APP.PF,d,$APP.F([$APP.zq,function(e){return R$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.RF);e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",$APP.t.h(e)].join("");return shadow_esm_import(e)})},C$,new $APP.J(null,1,5,$APP.N,[$APP.Wk],null)],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["compile"],null),$APP.uo,function(a){var b=$APP.jf(a);
a=$APP.fe.g(b,W$);b=$APP.fe.g(b,$APP.cG);return V$(b,a)}],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["repl"],null),$APP.uo,$$],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["socket-repl"],null),$APP.uo,Z$],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["nrepl-server"],null),$APP.uo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.cG);return shadow_esm_import("./node.nrepl_server.js").then(function(c){c=c.startServer;return c.h?c.h(b):c.call(null,b)})}],null),new $APP.n(null,
2,[l$,new $APP.J(null,1,5,$APP.N,["watch"],null),$APP.uo,function(a){var b=$APP.u($APP.DF),c=$APP.Mk.l($APP.F([b,a])),d=$APP.CF.h(b),e=$APP.TF.g(b,".");return shadow_esm_import("chokidar").catch(function(f){return console.error(f)}).then(function(f){f=f.watch;$APP.$F.l($APP.F(["[squint] Watching paths:",$APP.pp.g(", ",d)]));for(var k=$APP.x(d),l=null,m=0,g=0;;)if(g<m){var p=l.ba(null,g);(f.h?f.h(p):f.call(null,p)).on("all",function(D,H,O,P,W,ca,ja,ma,pa,fa){return function(E,B){return $APP.r(esm_import$fs.lstatSync(B).isDirectory())?
null:$APP.he(new $APP.Qh(null,new $APP.n(null,2,["add",null,"change",null],null),null),E)&&$APP.he(new $APP.Qh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(B))?V$(ma,new $APP.J(null,1,5,$APP.N,[B],null)).catch(function(){return function(ea){return console.error(ea)}}(D,H,O,P,W,ca,ja,ma,pa,fa)):S$(B,fa,pa)}}(k,l,m,g,p,f,b,c,d,e));g+=1}else{var q=$APP.x(k);if(q){var v=q;$APP.Zd(v)?(k=$APP.uc(v),m=$APP.vc(v),l=k,v=$APP.xd(k),k=m,m=v):(p=$APP.y(v),(f.h?f.h(p):
f.call(null,p)).on("all",function(D,H,O,P,W,ca,ja,ma,pa,fa,E,B){return function(ea,K){return $APP.r(esm_import$fs.lstatSync(K).isDirectory())?null:$APP.he(new $APP.Qh(null,new $APP.n(null,2,["add",null,"change",null],null),null),ea)&&$APP.he(new $APP.Qh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(K))?V$(fa,new $APP.J(null,1,5,$APP.N,[K],null)).catch(function(){return function(M){return console.error(M)}}(D,H,O,P,W,ca,ja,ma,pa,fa,E,B)):S$(K,B,E)}}(k,l,m,g,
p,v,q,f,b,c,d,e)),k=$APP.z(v),l=null,m=0);g=0}else return null}})}],null),new $APP.n(null,2,[l$,$APP.lg,$APP.uo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.bG);a=$APP.pD.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.ZF.l($APP.F(["Usage: squint -e \x3cexpr\x3e \x3copts\x3e\n\nOptions:\n\n--no-run: do not run compiled expression\n--show: print compiled expression"]));a=$APP.r($APP.ft.h(c))?$APP.Wj("(do %s\n)","%s",a):a;a=$APP.gF.g(a,$APP.zi.l(c,$APP.ft,$APP.ft.h(c),$APP.F([$APP.Jq,
$APP.Si.h(new $APP.n(null,1,[$APP.po,$APP.xx],null)),$APP.kp,$APP.r($APP.ft.h(c))?$APP.jp:$APP.kq,$APP.Jt,$APP.ft.h(c)])));a=$APP.r($APP.ft.h(c))?$APP.Wj("(async function() { %s })()","%s",a):a;var d=esm_import$fs.mkdtempSync(".tmp"),e=[$APP.t.h(d),"/squint.mjs"].join("");esm_import$fs.writeFileSync(e,a,"utf-8");$APP.r(Jga.h(c))&&$APP.ZF.l($APP.F([a]));if(!1===Kga.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");return($APP.r($APP.ft.h(c))?Promise.resolve(eval(a)):
shadow_esm_import(e)).then(function(f){return $APP.r($APP.ft.h(c))?$APP.YF.l($APP.F([f])):null}).finally(function(){return esm_import$fs.rmSync(d,{force:!0,recursive:!0})})}return $APP.r(function(){var f=U$.h(c);return $APP.r(f)?f:$APP.A.g("help",$APP.y(b))||$APP.Rd(b)}())?$APP.ZF.l($APP.F(["Squint v0.4.72\n\nUsage: squint \x3csubcommand\x3e \x3copts\x3e\n\nSubcommands:\n\n-e \x3cexpr\x3e Compile and run expression.\nrun \x3cfile.cljs\x3e Compile and run a file\nwatch Watch :paths in squint.edn\ncompile \x3cfile.cljs\x3e ... Compile file(s)\nrepl Start repl\nhelp Print this help\n\nUse squint \x3csubcommand\x3e --help to show more info."])):
V$(c,b)}],null)],null);(function(){var a=new $APP.n(null,2,[$APP.Lq,new $APP.n(null,1,[Lga,U$],null),g$,new $APP.n(null,4,[$APP.Jt,r$,$APP.Mq,r$,$APP.SF,$APP.jl,$APP.ft,r$],null)],null),b=n$(process.argv.slice(2),a),c=$APP.jf(b),d=$APP.fe.g(c,l$),e=$APP.fe.g(c,m$);return $APP.oe.j(function(f,k){f=$APP.jf(k);var l=$APP.fe.g(f,l$),m=$APP.fe.g(f,$APP.uo),g=Fga(l,d);if($APP.r(g)){k=function(){var v=null==g?null:$APP.x(g);return null==v?null:$APP.mg(v)}();k=$APP.R.g(k,e);f=Ega(k,X9(a,$APP.F([f])));k=$APP.jf(f);var p=$APP.fe.g(k,
$APP.bG);f=$APP.fe.g(k,m$);k=$APP.fe.g(k,l$);var q=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.zi.l(c,m$,q,$APP.F([W$,q,$APP.bG,p,$APP.Yo,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,Mga)})();
p,v,q,f,b,c,d,e)),k=$APP.z(v),l=null,m=0);g=0}else return null}})}],null),new $APP.n(null,2,[l$,$APP.lg,$APP.uo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.cG);a=$APP.oD.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.$F.l($APP.F(["Usage: squint -e \x3cexpr\x3e \x3copts\x3e\n\nOptions:\n\n--no-run: do not run compiled expression\n--show: print compiled expression"]));a=$APP.r($APP.ft.h(c))?$APP.Wj("(do %s\n)","%s",a):a;a=$APP.hF.g(a,$APP.zi.l(c,$APP.ft,$APP.ft.h(c),$APP.F([$APP.Jq,
$APP.Si.h(new $APP.n(null,1,[$APP.po,$APP.vx],null)),$APP.kp,$APP.r($APP.ft.h(c))?$APP.jp:$APP.kq,$APP.Jt,$APP.ft.h(c)])));a=$APP.r($APP.ft.h(c))?$APP.Wj("(async function() { %s })()","%s",a):a;var d=esm_import$fs.mkdtempSync(".tmp"),e=[$APP.t.h(d),"/squint.mjs"].join("");esm_import$fs.writeFileSync(e,a,"utf-8");$APP.r(Kga.h(c))&&$APP.$F.l($APP.F([a]));if(!1===Lga.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");return($APP.r($APP.ft.h(c))?Promise.resolve(eval(a)):
shadow_esm_import(e)).then(function(f){return $APP.r($APP.ft.h(c))?$APP.ZF.l($APP.F([f])):null}).finally(function(){return esm_import$fs.rmSync(d,{force:!0,recursive:!0})})}return $APP.r(function(){var f=U$.h(c);return $APP.r(f)?f:$APP.A.g("help",$APP.y(b))||$APP.Rd(b)}())?$APP.$F.l($APP.F(["Squint v0.4.73\n\nUsage: squint \x3csubcommand\x3e \x3copts\x3e\n\nSubcommands:\n\n-e \x3cexpr\x3e Compile and run expression.\nrun \x3cfile.cljs\x3e Compile and run a file\nwatch Watch :paths in squint.edn\ncompile \x3cfile.cljs\x3e ... Compile file(s)\nrepl Start repl\nhelp Print this help\n\nUse squint \x3csubcommand\x3e --help to show more info."])):
V$(c,b)}],null)],null);(function(){var a=new $APP.n(null,2,[$APP.Lq,new $APP.n(null,1,[Mga,U$],null),g$,new $APP.n(null,4,[$APP.Jt,r$,$APP.Mq,r$,$APP.TF,$APP.jl,$APP.ft,r$],null)],null),b=n$(process.argv.slice(2),a),c=$APP.jf(b),d=$APP.fe.g(c,l$),e=$APP.fe.g(c,m$);return $APP.oe.j(function(f,k){f=$APP.jf(k);var l=$APP.fe.g(f,l$),m=$APP.fe.g(f,$APP.uo),g=Gga(l,d);if($APP.r(g)){k=function(){var v=null==g?null:$APP.x(g);return null==v?null:$APP.mg(v)}();k=$APP.R.g(k,e);f=Fga(k,X9(a,$APP.F([f])));k=$APP.jf(f);var p=$APP.fe.g(k,
$APP.cG);f=$APP.fe.g(k,m$);k=$APP.fe.g(k,l$);var q=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.zi.l(c,m$,q,$APP.F([W$,q,$APP.cG,p,$APP.Yo,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,Nga)})();
import { $APP, shadow$provide, $jscomp } from "./compiler.js";
import "./node.js";
const shadow_esm_import = function(x) { return import(x) };
import*as esm_import$fs from"fs";import*as esm_import$path from"path";var iF,jF,kF,zF,AF,LF,MF,UF,VF,EF,KF,PF;$APP.hF=function(a,b){return $APP.qa(a,b)};iF=function(a,b){a.sort(b||$APP.Ba)};jF=function(a,b){const c=Array(a.length);for(let e=0;e<a.length;e++)c[e]={index:e,value:a[e]};const d=b||$APP.Ba;iF(c,function(e,f){return d(e.value,f.value)||e.index-f.index});for(b=0;b<a.length;b++)a[b]=c[b].value};kF=function(){};
$APP.lF=function(a){return null!=a?a.D&512||$APP.Oc===a.Ce?!0:a.D?!1:$APP.cb($APP.yb,a):$APP.cb($APP.yb,a)};$APP.mF=function(a){return $APP.ee(a)||!1};$APP.nF=function(a){return"number"===typeof a};$APP.oF=function(){this.C=[]};$APP.pF=function(a){return $APP.A.g(a,$APP.ie)?$APP.ie:function(b,c){var d=a.g?a.g(b,c):a.call(null,b,c);return"number"===typeof d?d:$APP.r(d)?-1:$APP.r(a.g?a.g(c,b):a.call(null,c,b))?1:0}};$APP.qF=function(a){$APP.li("\n");return $APP.fe.g(a,$APP.Ga),null};
$APP.rF=function(a,b){return(null!=a?$APP.Oc===a.Hc||(a.wd?0:$APP.cb(kF,a)):$APP.cb(kF,a))?$APP.Db(a,b):null!=a&&$APP.lF(a)&&$APP.he(a,b)?new $APP.Kg(b,$APP.fe.g(a,b),null):null};$APP.sF=function(a,b){return new $APP.J(null,2,5,$APP.N,[$APP.Er.g(a,b),$APP.Fr.g(a,b)],null)};$APP.tF=function(a,b){this.f=a;this.value=b;this.D=2147516416;this.M=1};$APP.uF=function(a){return Math.floor(Math.random()*a)};
$APP.vF=function(){function a(){return $APP.uF(16).toString(16)}var b=(8|3&$APP.uF(16)).toString(16);return new $APP.kj([$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-4",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(b),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),
$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a())].join("").toLowerCase())};$APP.wF=function(a){return a instanceof Error?a.message:null};$APP.xF=function(a){return $APP.Iq.g(a,/\n|\r\n/)};$APP.yF=function(a){return $APP.ua(null==a?"":String(a))};zF=function(a,b){return $APP.r($APP.r(b)?$APP.Ko.g(b,""):b)?$APP.Am(a,$APP.Gk(b)):null};
AF=function(a,b){return $APP.Ef(function(c){c=esm_import$path.resolve(a,[$APP.t.h(b),".",$APP.t.h(c)].join(""));return $APP.r(esm_import$fs.existsSync(c))?c:null},new $APP.J(null,2,5,$APP.N,["cljc","cljs"],null))};$APP.DF=function(a){var b=$APP.Wj($APP.Wj($APP.t.h(a),"-","_"),".","/");return $APP.Ef(function(c){return AF(c,b)},$APP.BF.g($APP.u($APP.CF),new $APP.J(null,2,5,$APP.N,[".","src"],null)))};
LF=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Jq);a=$APP.gp($APP.ep(a),$APP.Gt);if($APP.be(a)&&$APP.A.g($APP.Aj,$APP.y(a))){a=$APP.x(a);$APP.y(a);a=$APP.z(a);var d=$APP.y(a);a=$APP.z(a);a=$APP.Ef(function(k){var l=$APP.C.j(k,0,null);k=$APP.C.j(k,1,null);return $APP.be(l)&&$APP.A.g(EF,$APP.y(l))?new $APP.J(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.FF.j(2,1,a));var e=$APP.C.j(a,0,null),f=$APP.C.j(a,1,null);return $APP.r(e)?shadow_esm_import("./compiler.sci.js").then(function(){var k=$APP.HF.h($APP.u($APP.IF));
return $APP.oe.j(function(l,m){return l.then(function(){var g=$APP.x(m),p=$APP.y(g);g=$APP.z(g);g=$APP.jf(g);var q=$APP.fe.g(g,$APP.Eq),v=$APP.fe.g(g,$APP.Fq);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.KD,new $APP.G(null,new $APP.G(null,$APP.Jj,new $APP.G(null,p,null,1,null),2,null),null,1,null),2,null);return $APP.r(f)?$APP.R.g(O,new $APP.J(null,1,5,$APP.N,[$APP.JF],null)):O}();k.h?k.h(D):k.call(null,D);var H=function(){var O=$APP.X.h($APP.x($APP.R.g(new $APP.G(null,
KF,null,1,null),new $APP.G(null,$APP.X.h($APP.x($APP.R.g(new $APP.G(null,$APP.Jj,null,1,null),new $APP.G(null,p,null,1,null)))),null,1,null))));return k.h?k.h(O):k.call(null,O)}();D=$APP.Mh(H);H=$APP.Oh(H);H=$APP.qi.g($APP.od,H);return $APP.Yh(D,H)}()).then(function(D){return $APP.Ti.g(c,function(H){H=$APP.vu(H,new $APP.J(null,2,5,$APP.N,[$APP.et,p],null),D);H=$APP.r(v)?$APP.vu(H,new $APP.J(null,3,5,$APP.N,[d,$APP.Lq,v],null),p):H;return $APP.r(q)?$APP.vu(H,new $APP.J(null,2,5,$APP.N,[d,$APP.Kq],
null),$APP.Yh(q,$APP.ru.h(p))):H})})})},Promise.resolve(null),e)}):null}return null};MF=function(a,b){return Promise.resolve(LF(a,b)).then(function(){return $APP.Vt(a,b,null)})};
$APP.NF=function(a,b){return $APP.oe.j(function(c,d){a:{var e=esm_import$path.resolve(d).split(esm_import$path.sep);for(var f=esm_import$path.resolve(a).split(esm_import$path.sep);;){var k=$APP.Rd(e);if(k){e=k;break a}if(k=$APP.x(f))if(k=$APP.A.g($APP.y(e),$APP.y(f)))e=$APP.cd(e),f=$APP.cd(f);else{e=k;break a}else{e=k;break a}}}return e?$APP.ld(esm_import$path.relative(d,a)):c},a,b)};
$APP.TF=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.OF),c=$APP.fe.g(a,PF),d=$APP.fe.g(a,$APP.QF),e=$APP.fe.g(a,$APP.RF),f=$APP.fe.j(a,$APP.SF,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return MF(c,$APP.zi.j(a,$APP.Jq,$APP.Si.h(new $APP.n(null,1,[$APP.po,$APP.xx],null)))).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.Ut),m=$APP.fe.g(k,$APP.Bp),g=$APP.BF.g($APP.u($APP.CF),new $APP.J(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?g=d:(g=$APP.NF(b,g),
$APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.Wj(e,/^\./,"")].join(""):null,m=$APP.r(m)?m:".mjs"),g=$APP.Wj(g,/.clj(s|c)$/,m));p=q.call(p,f,g);q=esm_import$path.dirname(p);$APP.r(esm_import$fs.existsSync(q))||esm_import$fs.mkdirSync(q,{recursive:!0});if(!$APP.r(esm_import$fs.existsSync(q)))throw Error("File not found, make sure output-dir is a valid path: ",new $APP.n(null,2,[$APP.SF,f,$APP.QF,p],null));esm_import$fs.writeFileSync(p,l,"utf-8");return $APP.zi.j(k,$APP.QF,p)})};
UF=function(a){return $APP.Ru.l(a,$APP.F([$APP.Su,!0]))};VF=function(a){return function(){function b(d){var e=null;if(0<arguments.length){e=0;for(var f=Array(arguments.length-0);e<f.length;)f[e]=arguments[e+0],++e;e=new $APP.Yc(f,0,null)}return c.call(this,e)}function c(d){d=$APP.uu.g(UF,d);d=$APP.Gf.g(a,d);return d instanceof Promise?d.then($APP.Pu):$APP.Pu(d)}b.m=0;b.o=function(d){d=$APP.x(d);return c(d)};b.l=c;return b}()};$APP.oF.prototype.add=function(a){return this.C.push(a)};
$APP.oF.prototype.size=function(){return this.C.length};$APP.oF.prototype.clear=function(){return this.C=[]};$APP.oF.prototype.fd=function(){return 0===this.C.length};$APP.WF=function WF(a){switch(arguments.length){case 1:return WF.h(arguments[0]);case 2:return WF.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.WF.h=function(a){return $APP.WF.g($APP.ie,a)};
$APP.WF.g=function(a,b){if($APP.x(b)){var c=$APP.Ze.h?$APP.Ze.h(b):$APP.Ze.call(null,b);jF(c,$APP.pF(a));return $APP.Md($APP.x(c),$APP.Nd(b))}return $APP.bd};$APP.WF.m=2;$APP.XF=function XF(a){switch(arguments.length){case 2:return XF.g(arguments[0],arguments[1]);case 3:return XF.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.XF.g=function(a,b){return $APP.XF.j(a,$APP.ie,b)};
$APP.XF.j=function(a,b,c){return $APP.WF.g(function(d,e){d=a.h?a.h(d):a.call(null,d);e=a.h?a.h(e):a.call(null,e);var f=$APP.pF(b);return f.g?f.g(d,e):f.call(null,d,e)},c)};$APP.XF.m=3;$APP.YF=function YF(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return YF.l(0<c.length?new $APP.Yc(c.slice(0),0,null):null)};$APP.YF.l=function(a){$APP.Di(a,$APP.Ra());return $APP.r($APP.Ta)?$APP.qF($APP.Ra()):null};$APP.YF.m=0;$APP.YF.o=function(a){return this.l($APP.x(a))};
$APP.ZF=function ZF(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return ZF.l(0<c.length?new $APP.Yc(c.slice(0),0,null):null)};$APP.ZF.l=function(a){$APP.Di(a,$APP.zi.j($APP.Ra(),$APP.Ia,!1));return $APP.r($APP.Ta)?$APP.qF($APP.Ra()):null};$APP.ZF.m=0;$APP.ZF.o=function(a){return this.l($APP.x(a))};
$APP.FF=function FF(a){switch(arguments.length){case 1:return FF.h(arguments[0]);case 2:return FF.g(arguments[0],arguments[1]);case 3:return FF.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};
$APP.FF.h=function(a){return function(b){var c=new $APP.oF;return function(){function d(l,m){c.add(m);return a===c.size()?(m=$APP.mg(c.C),c.clear(),b.g?b.g(l,m):b.call(null,l,m)):l}function e(l){if(!$APP.r(c.fd())){var m=$APP.mg(c.C);c.clear();l=$APP.pd(b.g?b.g(l,m):b.call(null,l,m))}return b.h?b.h(l):b.call(null,l)}function f(){return b.v?b.v():b.call(null)}var k=null;k=function(l,m){switch(arguments.length){case 0:return f.call(this);case 1:return e.call(this,l);case 2:return d.call(this,l,m)}throw Error("Invalid arity: "+
arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.FF.g=function(a,b){return $APP.FF.j(a,a,b)};$APP.FF.j=function(a,b,c){return new $APP.Qe(null,function(){var d=$APP.x(c);return d?$APP.He($APP.Mf.g(a,d),$APP.FF.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.FF.m=3;$APP.tF.prototype.nb=function(){$APP.r(this.f)&&(this.value=this.f.v?this.f.v():this.f.call(null),this.f=null);return this.value};$APP.tF.prototype.$c=function(){return $APP.Za(this.f)};
$APP.tF.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.pi(new $APP.n(null,2,[$APP.mC,null==this.f?$APP.Vv:$APP.gA,$APP.Nu,this.value],null),b,c);return $APP.ic(b,"]")};$APP.$F=function $F(a){switch(arguments.length){case 1:return $F.h(arguments[0]);case 2:return $F.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};
$APP.$F.h=function(a){return zF(new $APP.n(null,3,[$APP.ym,$APP.u($APP.rE),$APP.zm,$APP.u($APP.qE),$APP.el,null],null),a)};$APP.$F.g=function(a,b){return zF($APP.Pm.j($APP.Mk.l($APP.F([new $APP.n(null,1,[$APP.zm,$APP.u($APP.qE)],null),a])),$APP.ym,function(c){return $APP.Mk.l($APP.F([$APP.u($APP.rE),c]))}),b)};$APP.$F.m=2;$APP.aG=new $APP.I(null,"port","port",1534937262);$APP.JF=new $APP.I(null,"reload","reload",863702807);$APP.bG=new $APP.I(null,"opts","opts",155075701);
$APP.SF=new $APP.I(null,"output-dir","output-dir",-290956991);EF=new $APP.I(null,"require-macros","require-macros",707947416);$APP.cG=new $APP.I(null,"message","message",-406056002);$APP.OF=new $APP.I(null,"in-file","in-file",-1682176692);$APP.dG=new $APP.I(null,"id","id",-1388402092);KF=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.BF=new $APP.I(null,"paths","paths",-1807389588);$APP.eG=new $APP.I(null,"eval","eval",-1103567905);
$APP.HF=new $APP.I(null,"eval-form","eval-form",-1934118476);$APP.QF=new $APP.I(null,"out-file","out-file",-1187066405);PF=new $APP.I(null,"in-str","in-str",-1014658121);$APP.RF=new $APP.I(null,"extension","extension",1453374065);$APP.CF=new $APP.tF(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.$F.h(a)}else a=null;return a},null);var fG;$APP.IF=$APP.Si.h(null);fG=VF(MF);export const compileFile=VF($APP.TF);export const compileString=fG;
import*as esm_import$fs from"fs";import*as esm_import$path from"path";var jF,kF,lF,AF,BF,MF,NF,VF,WF,FF,LF,QF;$APP.iF=function(a,b){return $APP.qa(a,b)};jF=function(a,b){a.sort(b||$APP.Ba)};kF=function(a,b){const c=Array(a.length);for(let e=0;e<a.length;e++)c[e]={index:e,value:a[e]};const d=b||$APP.Ba;jF(c,function(e,f){return d(e.value,f.value)||e.index-f.index});for(b=0;b<a.length;b++)a[b]=c[b].value};lF=function(){};
$APP.mF=function(a){return null!=a?a.D&512||$APP.Oc===a.Ce?!0:a.D?!1:$APP.cb($APP.yb,a):$APP.cb($APP.yb,a)};$APP.nF=function(a){return $APP.ee(a)||!1};$APP.oF=function(a){return"number"===typeof a};$APP.pF=function(){this.C=[]};$APP.qF=function(a){return $APP.A.g(a,$APP.ie)?$APP.ie:function(b,c){var d=a.g?a.g(b,c):a.call(null,b,c);return"number"===typeof d?d:$APP.r(d)?-1:$APP.r(a.g?a.g(c,b):a.call(null,c,b))?1:0}};$APP.rF=function(a){$APP.li("\n");return $APP.fe.g(a,$APP.Ga),null};
$APP.sF=function(a,b){return(null!=a?$APP.Oc===a.Hc||(a.wd?0:$APP.cb(lF,a)):$APP.cb(lF,a))?$APP.Db(a,b):null!=a&&$APP.mF(a)&&$APP.he(a,b)?new $APP.Kg(b,$APP.fe.g(a,b),null):null};$APP.tF=function(a,b){return new $APP.J(null,2,5,$APP.N,[$APP.Er.g(a,b),$APP.Fr.g(a,b)],null)};$APP.uF=function(a,b){this.f=a;this.value=b;this.D=2147516416;this.M=1};$APP.vF=function(a){return Math.floor(Math.random()*a)};
$APP.wF=function(){function a(){return $APP.vF(16).toString(16)}var b=(8|3&$APP.vF(16)).toString(16);return new $APP.kj([$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-4",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(b),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),
$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a())].join("").toLowerCase())};$APP.xF=function(a){return a instanceof Error?a.message:null};$APP.yF=function(a){return $APP.Iq.g(a,/\n|\r\n/)};$APP.zF=function(a){return $APP.ua(null==a?"":String(a))};AF=function(a,b){return $APP.r($APP.r(b)?$APP.Ko.g(b,""):b)?$APP.Am(a,$APP.Gk(b)):null};
BF=function(a,b){return $APP.Ef(function(c){c=esm_import$path.resolve(a,[$APP.t.h(b),".",$APP.t.h(c)].join(""));return $APP.r(esm_import$fs.existsSync(c))?c:null},new $APP.J(null,2,5,$APP.N,["cljc","cljs"],null))};$APP.EF=function(a){var b=$APP.Wj($APP.Wj($APP.t.h(a),"-","_"),".","/");return $APP.Ef(function(c){return BF(c,b)},$APP.CF.g($APP.u($APP.DF),new $APP.J(null,2,5,$APP.N,[".","src"],null)))};
MF=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Jq);a=$APP.gp($APP.ep(a),$APP.Gt);if($APP.be(a)&&$APP.A.g($APP.Aj,$APP.y(a))){a=$APP.x(a);$APP.y(a);a=$APP.z(a);var d=$APP.y(a);a=$APP.z(a);a=$APP.Ef(function(k){var l=$APP.C.j(k,0,null);k=$APP.C.j(k,1,null);return $APP.be(l)&&$APP.A.g(FF,$APP.y(l))?new $APP.J(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.HF.j(2,1,a));var e=$APP.C.j(a,0,null),f=$APP.C.j(a,1,null);return $APP.r(e)?shadow_esm_import("./compiler.sci.js").then(function(){var k=$APP.IF.h($APP.u($APP.JF));
return $APP.oe.j(function(l,m){return l.then(function(){var g=$APP.x(m),p=$APP.y(g);g=$APP.z(g);g=$APP.jf(g);var q=$APP.fe.g(g,$APP.Eq),v=$APP.fe.g(g,$APP.Fq);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.JD,new $APP.G(null,new $APP.G(null,$APP.Jj,new $APP.G(null,p,null,1,null),2,null),null,1,null),2,null);return $APP.r(f)?$APP.R.g(O,new $APP.J(null,1,5,$APP.N,[$APP.KF],null)):O}();k.h?k.h(D):k.call(null,D);var H=function(){var O=$APP.X.h($APP.x($APP.R.g(new $APP.G(null,
LF,null,1,null),new $APP.G(null,$APP.X.h($APP.x($APP.R.g(new $APP.G(null,$APP.Jj,null,1,null),new $APP.G(null,p,null,1,null)))),null,1,null))));return k.h?k.h(O):k.call(null,O)}();D=$APP.Mh(H);H=$APP.Oh(H);H=$APP.qi.g($APP.od,H);return $APP.Yh(D,H)}()).then(function(D){return $APP.Ti.g(c,function(H){H=$APP.vu(H,new $APP.J(null,2,5,$APP.N,[$APP.et,p],null),D);H=$APP.r(v)?$APP.vu(H,new $APP.J(null,3,5,$APP.N,[d,$APP.Lq,v],null),p):H;return $APP.r(q)?$APP.vu(H,new $APP.J(null,2,5,$APP.N,[d,$APP.Kq],
null),$APP.Yh(q,$APP.ru.h(p))):H})})})},Promise.resolve(null),e)}):null}return null};NF=function(a,b){return Promise.resolve(MF(a,b)).then(function(){return $APP.Vt(a,b,null)})};
$APP.OF=function(a,b){return $APP.oe.j(function(c,d){a:{var e=esm_import$path.resolve(d).split(esm_import$path.sep);for(var f=esm_import$path.resolve(a).split(esm_import$path.sep);;){var k=$APP.Rd(e);if(k){e=k;break a}if(k=$APP.x(f))if(k=$APP.A.g($APP.y(e),$APP.y(f)))e=$APP.cd(e),f=$APP.cd(f);else{e=k;break a}else{e=k;break a}}}return e?$APP.ld(esm_import$path.relative(d,a)):c},a,b)};
$APP.UF=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.PF),c=$APP.fe.g(a,QF),d=$APP.fe.g(a,$APP.RF),e=$APP.fe.g(a,$APP.SF),f=$APP.fe.j(a,$APP.TF,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return NF(c,$APP.zi.j(a,$APP.Jq,$APP.Si.h(new $APP.n(null,1,[$APP.po,$APP.vx],null)))).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.Ut),m=$APP.fe.g(k,$APP.Bp),g=$APP.CF.g($APP.u($APP.DF),new $APP.J(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?g=d:(g=$APP.OF(b,g),
$APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.Wj(e,/^\./,"")].join(""):null,m=$APP.r(m)?m:".mjs"),g=$APP.Wj(g,/.clj(s|c)$/,m));p=q.call(p,f,g);q=esm_import$path.dirname(p);$APP.r(esm_import$fs.existsSync(q))||esm_import$fs.mkdirSync(q,{recursive:!0});if(!$APP.r(esm_import$fs.existsSync(q)))throw Error("File not found, make sure output-dir is a valid path: ",new $APP.n(null,2,[$APP.TF,f,$APP.RF,p],null));esm_import$fs.writeFileSync(p,l,"utf-8");return $APP.zi.j(k,$APP.RF,p)})};
VF=function(a){return $APP.Ru.l(a,$APP.F([$APP.Su,!0]))};WF=function(a){return function(){function b(d){var e=null;if(0<arguments.length){e=0;for(var f=Array(arguments.length-0);e<f.length;)f[e]=arguments[e+0],++e;e=new $APP.Yc(f,0,null)}return c.call(this,e)}function c(d){d=$APP.uu.g(VF,d);d=$APP.Gf.g(a,d);return d instanceof Promise?d.then($APP.Pu):$APP.Pu(d)}b.m=0;b.o=function(d){d=$APP.x(d);return c(d)};b.l=c;return b}()};$APP.pF.prototype.add=function(a){return this.C.push(a)};
$APP.pF.prototype.size=function(){return this.C.length};$APP.pF.prototype.clear=function(){return this.C=[]};$APP.pF.prototype.fd=function(){return 0===this.C.length};$APP.XF=function XF(a){switch(arguments.length){case 1:return XF.h(arguments[0]);case 2:return XF.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.XF.h=function(a){return $APP.XF.g($APP.ie,a)};
$APP.XF.g=function(a,b){if($APP.x(b)){var c=$APP.Ze.h?$APP.Ze.h(b):$APP.Ze.call(null,b);kF(c,$APP.qF(a));return $APP.Md($APP.x(c),$APP.Nd(b))}return $APP.bd};$APP.XF.m=2;$APP.YF=function YF(a){switch(arguments.length){case 2:return YF.g(arguments[0],arguments[1]);case 3:return YF.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.YF.g=function(a,b){return $APP.YF.j(a,$APP.ie,b)};
$APP.YF.j=function(a,b,c){return $APP.XF.g(function(d,e){d=a.h?a.h(d):a.call(null,d);e=a.h?a.h(e):a.call(null,e);var f=$APP.qF(b);return f.g?f.g(d,e):f.call(null,d,e)},c)};$APP.YF.m=3;$APP.ZF=function ZF(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return ZF.l(0<c.length?new $APP.Yc(c.slice(0),0,null):null)};$APP.ZF.l=function(a){$APP.Di(a,$APP.Ra());return $APP.r($APP.Ta)?$APP.rF($APP.Ra()):null};$APP.ZF.m=0;$APP.ZF.o=function(a){return this.l($APP.x(a))};
$APP.$F=function $F(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return $F.l(0<c.length?new $APP.Yc(c.slice(0),0,null):null)};$APP.$F.l=function(a){$APP.Di(a,$APP.zi.j($APP.Ra(),$APP.Ia,!1));return $APP.r($APP.Ta)?$APP.rF($APP.Ra()):null};$APP.$F.m=0;$APP.$F.o=function(a){return this.l($APP.x(a))};
$APP.HF=function HF(a){switch(arguments.length){case 1:return HF.h(arguments[0]);case 2:return HF.g(arguments[0],arguments[1]);case 3:return HF.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};
$APP.HF.h=function(a){return function(b){var c=new $APP.pF;return function(){function d(l,m){c.add(m);return a===c.size()?(m=$APP.mg(c.C),c.clear(),b.g?b.g(l,m):b.call(null,l,m)):l}function e(l){if(!$APP.r(c.fd())){var m=$APP.mg(c.C);c.clear();l=$APP.pd(b.g?b.g(l,m):b.call(null,l,m))}return b.h?b.h(l):b.call(null,l)}function f(){return b.v?b.v():b.call(null)}var k=null;k=function(l,m){switch(arguments.length){case 0:return f.call(this);case 1:return e.call(this,l);case 2:return d.call(this,l,m)}throw Error("Invalid arity: "+
arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.HF.g=function(a,b){return $APP.HF.j(a,a,b)};$APP.HF.j=function(a,b,c){return new $APP.Qe(null,function(){var d=$APP.x(c);return d?$APP.He($APP.Mf.g(a,d),$APP.HF.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.HF.m=3;$APP.uF.prototype.nb=function(){$APP.r(this.f)&&(this.value=this.f.v?this.f.v():this.f.call(null),this.f=null);return this.value};$APP.uF.prototype.$c=function(){return $APP.Za(this.f)};
$APP.uF.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.pi(new $APP.n(null,2,[$APP.lC,null==this.f?$APP.Vv:$APP.cA,$APP.Nu,this.value],null),b,c);return $APP.ic(b,"]")};$APP.aG=function aG(a){switch(arguments.length){case 1:return aG.h(arguments[0]);case 2:return aG.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};
$APP.aG.h=function(a){return AF(new $APP.n(null,3,[$APP.ym,$APP.u($APP.sE),$APP.zm,$APP.u($APP.rE),$APP.el,null],null),a)};$APP.aG.g=function(a,b){return AF($APP.Pm.j($APP.Mk.l($APP.F([new $APP.n(null,1,[$APP.zm,$APP.u($APP.rE)],null),a])),$APP.ym,function(c){return $APP.Mk.l($APP.F([$APP.u($APP.sE),c]))}),b)};$APP.aG.m=2;$APP.bG=new $APP.I(null,"port","port",1534937262);$APP.KF=new $APP.I(null,"reload","reload",863702807);$APP.cG=new $APP.I(null,"opts","opts",155075701);
$APP.TF=new $APP.I(null,"output-dir","output-dir",-290956991);FF=new $APP.I(null,"require-macros","require-macros",707947416);$APP.dG=new $APP.I(null,"message","message",-406056002);$APP.PF=new $APP.I(null,"in-file","in-file",-1682176692);$APP.eG=new $APP.I(null,"id","id",-1388402092);LF=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.CF=new $APP.I(null,"paths","paths",-1807389588);$APP.fG=new $APP.I(null,"eval","eval",-1103567905);
$APP.IF=new $APP.I(null,"eval-form","eval-form",-1934118476);$APP.RF=new $APP.I(null,"out-file","out-file",-1187066405);QF=new $APP.I(null,"in-str","in-str",-1014658121);$APP.SF=new $APP.I(null,"extension","extension",1453374065);$APP.DF=new $APP.uF(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.aG.h(a)}else a=null;return a},null);var gG;$APP.JF=$APP.Si.h(null);gG=WF(NF);export const compileFile=WF($APP.UF);export const compileString=gG;

@@ -7,18 +7,18 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js";

import*as esm_import$fs from"fs";import*as esm_import$net from"net";
var K9=function(a,b){a=a.indexOf(b);if(0>a)throw Error("out of input");return a},L9=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},M9=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},N9=function(a){return console.debug($APP.pp.g(" ",a))},Pfa=function(a){return function(b,c){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.dG),e=$APP.fe.g(b,Ofa);c=$APP.zi.j(c,"id",d);c=$APP.r(e)?$APP.zi.j(c,"session",e):c;return a.g?a.g(b,c):a.call(null,b,c)}},Rfa=function(){var a=
Qfa;return function(b,c){b=$APP.Pm.j(b,O9,$APP.ri);return a.g?a.g(b,c):a.call(null,b,c)}},Tfa=function(){var a=Sfa();return function(b,c){N9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},Ufa=function(a){return function(b,c){N9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},Sfa=function(){var a=Rfa();return function(b,c){return a.g?a.g(b,c):a.call(null,b,c)}},P9=function(a){return $APP.zi.j($APP.Yh(new $APP.J(null,3,5,$APP.N,["major","minor","incremental"],null),$APP.Ru.h(a.split("."))),
"version-string",a)},Vfa=function(a,b,c){if($APP.r(a))if(a=Q9.h?Q9.h(a):Q9.call(null,a),$APP.r(a)){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.s9),e=$APP.fe.g(b,$APP.l9),f=$APP.fe.g(b,$APP.u9);b=$APP.Qa;var k=$APP.hi,l=$APP.T6;$APP.Qa=e;$APP.hi=f;$APP.T6=d;try{var m=new $APP.Fa;d=$APP.Ta;e=$APP.Ua;$APP.Ta=!0;$APP.Ua=function(g){return m.append(g)};try{a.h?a.h(c):a.call(null,c)}finally{$APP.Ua=e,$APP.Ta=d}return $APP.t.h(m)}finally{$APP.T6=l,$APP.hi=k,$APP.Qa=b}}else return N9($APP.F(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"])),
$APP.Oi.l($APP.F([c]));else return $APP.Oi.l($APP.F([c]))},Xfa=function(a){a:{var b=$APP.tq;$APP.tq=$APP.u(R9);try{var c=$APP.Vt(a,new $APP.n(null,5,[$APP.kp,$APP.jp,$APP.Jq,Wfa,$APP.Jt,!0,$APP.ft,!0,$APP.qs,!0],null),null);break a}finally{$APP.tq=b}c=void 0}c=$APP.jf(c);a=$APP.fe.g(c,$APP.Ut);c=$APP.fe.g(c,$APP.S);a=$APP.Wj("(async function () {\n%s\n}) ()","%s",a);$APP.Jf(R9,c);return a},cga=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.S);a=$APP.fe.g(c,Yfa);$APP.fe.g(c,$APP.Wk);$APP.fe.g(c,Zfa);
$APP.fe.g(c,$fa);return Promise.resolve(a).then(Xfa).then(function(d){$APP.ZF.l($APP.F(["About to eval:"]));$APP.ZF.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(R9)),"value",Vfa(aga.h(c),bga.h(c),d)],null);return b.g?b.g(c,d):b.call(null,c,d)}).catch(function(d){console.error(d);var e=$APP.cG.h($APP.mj(d));e=$APP.r(e)?e:d.message;$APP.r(e)&&(e=new $APP.n(null,1,["err",[$APP.t.h(e),"\n"].join("")],null),b.g?b.g(c,e):b.call(null,c,e));d=new $APP.n(null,
2,["ex",$APP.t.h(d),"ns",$APP.t.h($APP.tq)],null);return b.g?b.g(c,d):b.call(null,c,d)}).finally(function(){var d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(R9)),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(c,d):b.call(null,c,d)})},S9=function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.S);return null},Qfa=function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,O9),d=$APP.fe.g(T9,c);if($APP.r(d))return d.g?d.g(a,b):d.call(null,a,b);console.warn($APP.pp.g(" ",$APP.F(["Unhandled operation",c])));
c=new $APP.n(null,1,["status",new $APP.J(null,3,5,$APP.N,["error","unknown-op","done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},dga=function(a){return function(b,c){return a.write(U9(c))}},ega=function(a,b){N9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=Tfa(),d=Pfa(Ufa(dga(b))),e=$APP.Si.h(null);b.on("data",function(f){var k=$APP.u(e);if($APP.r(k)){f=[$APP.t.h(k),$APP.t.h(f)].join("");$APP.Jf(e,null);var l=f}else l=f;a:for(f=$APP.F([$APP.Su,!0]),k=$APP.lg;;){var m=$APP.Gf.j(V9,
l,f);l=$APP.C.j(m,0,null);m=$APP.C.j(m,1,null);if(null==l){k=new $APP.J(null,2,5,$APP.N,[k,m],null);break a}k=$APP.Ee.g(k,l);l=m}f=$APP.C.j(k,0,null);k=$APP.C.j(k,1,null);$APP.yF(k)||$APP.Jf(e,k);f=$APP.x(f);k=null;for(var g=m=0;;)if(g<m)l=k.ba(null,g),c(l,d),g+=1;else if(f=$APP.x(f))k=f,$APP.Zd(k)?(f=$APP.uc(k),m=$APP.vc(k),k=f,l=$APP.xd(f),f=m,m=l):(l=$APP.y(k),c(l,d),f=$APP.z(k),k=null,m=0),g=0;else return null});return b.on("close",function(f){return $APP.r(f)?N9($APP.F(["Connection lost"])):
N9($APP.F(["Connection closed"]))})},$fa=new $APP.I(null,"_line","_line",232847719),bga=new $APP.I("nrepl.middleware.print","options","nrepl.middleware.print/options",868480159),Ofa=new $APP.I(null,"session","session",1008279103),fga=new $APP.I(null,"lookup","lookup",1225356838),gga=new $APP.I(null,"load-file","load-file",-424586670),Zfa=new $APP.I(null,"_load-file?","_load-file?",-1198848711),O9=new $APP.I(null,"op","op",-1882987955),hga=new $APP.I(null,"describe","describe",1369790582),Yfa=new $APP.I(null,
"code","code",1586293142),iga=new $APP.I(null,"eldoc","eldoc",-1321421900),jga=new $APP.I(null,"log_level","log_level",-1756736313),aga=new $APP.I("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),kga=new $APP.I(null,"clone","clone",711747572),lga=new $APP.I(null,"close","close",1835149582),mga=new $APP.I(null,"info","info",-317069002),nga=new $APP.I(null,"host","host",-1558485167),oga=new $APP.I(null,"complete","complete",-500388775);var W9=function W9(a,b){switch($APP.t.h(M9(a,1))){case "i":return a=L9(a,1),b=K9(a,"e"),new $APP.J(null,2,5,$APP.N,[parseInt(M9(a,b)),L9(a,b+1)],null);case "l":var d=a=L9(a,1);for(a=$APP.mc($APP.lg);;){if($APP.A.g($APP.t.h(M9(d,1)),"e"))return new $APP.J(null,2,5,$APP.N,[$APP.pc(a),L9(d,1)],null);var e=W9.g?W9.g(d,b):W9.call(null,d,b),f=$APP.C.j(e,0,null),k=$APP.C.j(e,1,null);e=k;a=$APP.fg.g(a,f);d=e}case "d":for(a=L9(a,1),f=$APP.jf(b),f=$APP.fe.g(f,$APP.Su),d=a,e=$APP.mc($APP.hf);;){if($APP.A.g($APP.t.h(M9(d,
var K9=function(a,b){a=a.indexOf(b);if(0>a)throw Error("out of input");return a},L9=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},M9=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},N9=function(a){return console.debug($APP.pp.g(" ",a))},Qfa=function(a){return function(b,c){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.eG),e=$APP.fe.g(b,Pfa);c=$APP.zi.j(c,"id",d);c=$APP.r(e)?$APP.zi.j(c,"session",e):c;return a.g?a.g(b,c):a.call(null,b,c)}},Sfa=function(){var a=
Rfa;return function(b,c){b=$APP.Pm.j(b,O9,$APP.ri);return a.g?a.g(b,c):a.call(null,b,c)}},Ufa=function(){var a=Tfa();return function(b,c){N9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},Vfa=function(a){return function(b,c){N9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},Tfa=function(){var a=Sfa();return function(b,c){return a.g?a.g(b,c):a.call(null,b,c)}},P9=function(a){return $APP.zi.j($APP.Yh(new $APP.J(null,3,5,$APP.N,["major","minor","incremental"],null),$APP.Ru.h(a.split("."))),
"version-string",a)},Wfa=function(a,b,c){if($APP.r(a))if(a=Q9.h?Q9.h(a):Q9.call(null,a),$APP.r(a)){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.s9),e=$APP.fe.g(b,$APP.l9),f=$APP.fe.g(b,$APP.u9);b=$APP.Qa;var k=$APP.hi,l=$APP.T6;$APP.Qa=e;$APP.hi=f;$APP.T6=d;try{var m=new $APP.Fa;d=$APP.Ta;e=$APP.Ua;$APP.Ta=!0;$APP.Ua=function(g){return m.append(g)};try{a.h?a.h(c):a.call(null,c)}finally{$APP.Ua=e,$APP.Ta=d}return $APP.t.h(m)}finally{$APP.T6=l,$APP.hi=k,$APP.Qa=b}}else return N9($APP.F(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"])),
$APP.Oi.l($APP.F([c]));else return $APP.Oi.l($APP.F([c]))},Yfa=function(a){a:{var b=$APP.tq;$APP.tq=$APP.u(R9);try{var c=$APP.Vt(a,new $APP.n(null,5,[$APP.kp,$APP.jp,$APP.Jq,Xfa,$APP.Jt,!0,$APP.ft,!0,$APP.qs,!0],null),null);break a}finally{$APP.tq=b}c=void 0}c=$APP.jf(c);a=$APP.fe.g(c,$APP.Ut);c=$APP.fe.g(c,$APP.S);a=$APP.Wj("(async function () {\n%s\n}) ()","%s",a);$APP.Jf(R9,c);return a},dga=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.S);a=$APP.fe.g(c,Zfa);$APP.fe.g(c,$APP.Wk);$APP.fe.g(c,$fa);
$APP.fe.g(c,aga);return Promise.resolve(a).then(Yfa).then(function(d){$APP.$F.l($APP.F(["About to eval:"]));$APP.$F.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(R9)),"value",Wfa(bga.h(c),cga.h(c),d)],null);return b.g?b.g(c,d):b.call(null,c,d)}).catch(function(d){console.error(d);var e=$APP.dG.h($APP.mj(d));e=$APP.r(e)?e:d.message;$APP.r(e)&&(e=new $APP.n(null,1,["err",[$APP.t.h(e),"\n"].join("")],null),b.g?b.g(c,e):b.call(null,c,e));d=new $APP.n(null,
2,["ex",$APP.t.h(d),"ns",$APP.t.h($APP.tq)],null);return b.g?b.g(c,d):b.call(null,c,d)}).finally(function(){var d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(R9)),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(c,d):b.call(null,c,d)})},S9=function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.S);return null},Rfa=function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,O9),d=$APP.fe.g(T9,c);if($APP.r(d))return d.g?d.g(a,b):d.call(null,a,b);console.warn($APP.pp.g(" ",$APP.F(["Unhandled operation",c])));
c=new $APP.n(null,1,["status",new $APP.J(null,3,5,$APP.N,["error","unknown-op","done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},ega=function(a){return function(b,c){return a.write(U9(c))}},fga=function(a,b){N9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=Ufa(),d=Qfa(Vfa(ega(b))),e=$APP.Si.h(null);b.on("data",function(f){var k=$APP.u(e);if($APP.r(k)){f=[$APP.t.h(k),$APP.t.h(f)].join("");$APP.Jf(e,null);var l=f}else l=f;a:for(f=$APP.F([$APP.Su,!0]),k=$APP.lg;;){var m=$APP.Gf.j(V9,
l,f);l=$APP.C.j(m,0,null);m=$APP.C.j(m,1,null);if(null==l){k=new $APP.J(null,2,5,$APP.N,[k,m],null);break a}k=$APP.Ee.g(k,l);l=m}f=$APP.C.j(k,0,null);k=$APP.C.j(k,1,null);$APP.zF(k)||$APP.Jf(e,k);f=$APP.x(f);k=null;for(var g=m=0;;)if(g<m)l=k.ba(null,g),c(l,d),g+=1;else if(f=$APP.x(f))k=f,$APP.Zd(k)?(f=$APP.uc(k),m=$APP.vc(k),k=f,l=$APP.xd(f),f=m,m=l):(l=$APP.y(k),c(l,d),f=$APP.z(k),k=null,m=0),g=0;else return null});return b.on("close",function(f){return $APP.r(f)?N9($APP.F(["Connection lost"])):
N9($APP.F(["Connection closed"]))})},aga=new $APP.I(null,"_line","_line",232847719),cga=new $APP.I("nrepl.middleware.print","options","nrepl.middleware.print/options",868480159),Pfa=new $APP.I(null,"session","session",1008279103),gga=new $APP.I(null,"lookup","lookup",1225356838),hga=new $APP.I(null,"load-file","load-file",-424586670),$fa=new $APP.I(null,"_load-file?","_load-file?",-1198848711),O9=new $APP.I(null,"op","op",-1882987955),iga=new $APP.I(null,"describe","describe",1369790582),Zfa=new $APP.I(null,
"code","code",1586293142),jga=new $APP.I(null,"eldoc","eldoc",-1321421900),kga=new $APP.I(null,"log_level","log_level",-1756736313),bga=new $APP.I("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),lga=new $APP.I(null,"clone","clone",711747572),mga=new $APP.I(null,"close","close",1835149582),nga=new $APP.I(null,"info","info",-317069002),oga=new $APP.I(null,"host","host",-1558485167),pga=new $APP.I(null,"complete","complete",-500388775);var W9=function W9(a,b){switch($APP.t.h(M9(a,1))){case "i":return a=L9(a,1),b=K9(a,"e"),new $APP.J(null,2,5,$APP.N,[parseInt(M9(a,b)),L9(a,b+1)],null);case "l":var d=a=L9(a,1);for(a=$APP.mc($APP.lg);;){if($APP.A.g($APP.t.h(M9(d,1)),"e"))return new $APP.J(null,2,5,$APP.N,[$APP.pc(a),L9(d,1)],null);var e=W9.g?W9.g(d,b):W9.call(null,d,b),f=$APP.C.j(e,0,null),k=$APP.C.j(e,1,null);e=k;a=$APP.fg.g(a,f);d=e}case "d":for(a=L9(a,1),f=$APP.jf(b),f=$APP.fe.g(f,$APP.Su),d=a,e=$APP.mc($APP.hf);;){if($APP.A.g($APP.t.h(M9(d,
1)),"e"))return new $APP.J(null,2,5,$APP.N,[$APP.pc(e),L9(d,1)],null);a=W9.g?W9.g(d,b):W9.call(null,d,b);d=$APP.C.j(a,0,null);k=$APP.C.j(a,1,null);k=W9.g?W9.g(k,b):W9.call(null,k,b);a=$APP.C.j(k,0,null);k=$APP.C.j(k,1,null);d=$APP.r(f)?$APP.ri.h(d):d;a=$APP.Ug.j(e,d,a);d=k;e=a}default:return b=K9(a,":"),f=parseInt(M9(a,b)),a=L9(a,b+1),new $APP.J(null,2,5,$APP.N,[$APP.t.h(M9(a,f)),L9(a,f)],null)}},V9=function V9(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return V9.l(arguments[0],
1<c.length?new $APP.Yc(c.slice(1),0,null):null)};V9.l=function(a,b){try{return W9(a,b)}catch(c){if(c instanceof Error)return new $APP.J(null,2,5,$APP.N,[null,a],null);throw c;}};V9.m=1;V9.o=function(a){var b=$APP.y(a);a=$APP.z(a);return this.l(b,a)};
var U9=function U9(a){for(;;){if("string"===typeof a)return[$APP.t.h(Buffer.from(a).length),":",a].join("");if(a instanceof $APP.I||a instanceof $APP.w)a=[function(){var c=$APP.Oe(a);return $APP.r(c)?[c,"/"].join(""):null}(),$APP.Xh(a)].join("");else return"number"===typeof a?["i",$APP.t.h(a),"e"].join(""):$APP.Td(a)||$APP.Xd(a)||null==a?["l",$APP.t.h($APP.Gf.g($APP.t,$APP.qi.g(U9,a))),"e"].join(""):$APP.Vd(a)?["d",$APP.t.h($APP.Gf.g($APP.t,$APP.qi.g(function(){return function(c){var d=$APP.C.j(c,
0,null);c=$APP.C.j(c,1,null);return[$APP.t.h(U9.h?U9.h(d):U9.call(null,d)),$APP.t.h(U9.h?U9.h(c):U9.call(null,c))].join("")}}(a),$APP.XF.g($APP.y,a)))),"e"].join(""):null}};var R9=$APP.Si.h($APP.tq),Q9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.B9],null);$APP.Si.h(!1);
var Wfa=$APP.Si.h($APP.hf),T9=$APP.vh([fga,lga,gga,iga,kga,hga,mga,oga,$APP.eG],[S9,function(a,b){var c=new $APP.n(null,1,["status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.Wk);return null},S9,function(a,b){var c=new $APP.n(null,2,["new-session",$APP.t.h($APP.vF()),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},function(a,b){var c=new $APP.n(null,4,["versions",new $APP.n(null,
2,["nbb-nrepl",P9("TODO"),"node",P9(process.version)],null),"aux",$APP.hf,"ops",$APP.Yh($APP.qi.g($APP.Xh,$APP.Mh(T9)),$APP.ru.h($APP.hf)),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},S9,function(){return null},function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,$APP.S);$APP.YF.l($APP.F([$APP.S,c]));return cga($APP.zi.j(a,$APP.S,$APP.u(R9)),b)}]),pga=$APP.Si.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.aG.h(a);return $APP.r(e)?e:0}(),c=function(){var e=nga.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:jga.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Pk.g(ega,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.ZF.l($APP.F([["nREPL server started on port ",$APP.t.h(f)," on host ",$APP.t.h(e)," - nrepl://",$APP.t.h(e),
":",$APP.t.h(f)].join("")]));try{return esm_import$fs.writeFileSync(".nrepl-port",$APP.t.h(f))}catch(k){return console.warn($APP.pp.g(" ",$APP.F(["Could not write .nrepl-port",k])))}});return $APP.Jf(pga,d)})};
0,null);c=$APP.C.j(c,1,null);return[$APP.t.h(U9.h?U9.h(d):U9.call(null,d)),$APP.t.h(U9.h?U9.h(c):U9.call(null,c))].join("")}}(a),$APP.YF.g($APP.y,a)))),"e"].join(""):null}};var R9=$APP.Si.h($APP.tq),Q9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.B9],null);$APP.Si.h(!1);
var Xfa=$APP.Si.h($APP.hf),T9=$APP.vh([gga,mga,hga,jga,lga,iga,nga,pga,$APP.fG],[S9,function(a,b){var c=new $APP.n(null,1,["status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.Wk);return null},S9,function(a,b){var c=new $APP.n(null,2,["new-session",$APP.t.h($APP.wF()),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},function(a,b){var c=new $APP.n(null,4,["versions",new $APP.n(null,
2,["nbb-nrepl",P9("TODO"),"node",P9(process.version)],null),"aux",$APP.hf,"ops",$APP.Yh($APP.qi.g($APP.Xh,$APP.Mh(T9)),$APP.ru.h($APP.hf)),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},S9,function(){return null},function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,$APP.S);$APP.ZF.l($APP.F([$APP.S,c]));return dga($APP.zi.j(a,$APP.S,$APP.u(R9)),b)}]),qga=$APP.Si.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.bG.h(a);return $APP.r(e)?e:0}(),c=function(){var e=oga.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:kga.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Pk.g(fga,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.$F.l($APP.F([["nREPL server started on port ",$APP.t.h(f)," on host ",$APP.t.h(e)," - nrepl://",$APP.t.h(e),
":",$APP.t.h(f)].join("")]));try{return esm_import$fs.writeFileSync(".nrepl-port",$APP.t.h(f))}catch(k){return console.warn($APP.pp.g(" ",$APP.F(["Could not write .nrepl-port",k])))}});return $APP.Jf(qga,d)})};

@@ -1,1 +0,1 @@

var squint;(squint||={}).core=(()=>{var P=Object.defineProperty;var Jt=Object.getOwnPropertyDescriptor;var Dt=Object.getOwnPropertyNames;var Ut=Object.prototype.hasOwnProperty;var Xt=(t,e)=>{for(var n in e)P(t,n,{get:e[n],enumerable:!0})},Zt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Dt(e))!Ut.call(t,o)&&o!==n&&P(t,o,{get:()=>e[o],enumerable:!(r=Jt(e,o))||r.enumerable});return t};var Ht=t=>Zt(P({},"__esModule",{value:!0}),t);var gr={};Xt(gr,{Atom:()=>dt,Cons:()=>pt,IIterable:()=>q,IIterable__iterator:()=>st,LazySeq:()=>gn,NaN_QMARK_:()=>Hn,PROTOCOL_SENTINEL:()=>Ke,_:()=>ie,_GT_:()=>te,_GT__EQ_:()=>ee,_LT_:()=>ne,_LT__EQ_:()=>re,_PLUS_:()=>oe,_STAR_:()=>ue,_iterator:()=>T,aclone:()=>$n,add_watch:()=>zn,alength:()=>Nn,apply:()=>ze,array_QMARK_:()=>vt,aset:()=>Gn,assoc:()=>v,assoc_BANG_:()=>A,assoc_in:()=>et,assoc_in_BANG_:()=>ae,atom:()=>je,boolean$:()=>In,boolean_QMARK_:()=>lr,bounded_count:()=>pr,butlast:()=>vn,coll_QMARK_:()=>nr,comp:()=>le,compare:()=>z,complement:()=>gt,concat:()=>Mt,conj:()=>nt,conj_BANG_:()=>O,cons:()=>_t,constantly:()=>Ye,contains_QMARK_:()=>ot,count:()=>K,counted_QMARK_:()=>Wt,cycle:()=>rn,dec:()=>he,deref:()=>yt,disj:()=>pe,disj_BANG_:()=>rt,dissoc:()=>xe,dissoc_BANG_:()=>_e,distinct:()=>on,doall:()=>Bn,dorun:()=>Ln,drop:()=>$,drop_last:()=>Mn,drop_while:()=>Tt,empty:()=>Kt,empty_QMARK_:()=>dn,es6_iterator:()=>k,even_QMARK_:()=>At,every_QMARK_:()=>Nt,every_pred:()=>Fn,ex_cause:()=>ir,ex_data:()=>or,ex_info:()=>cr,ex_message:()=>ur,false_QMARK_:()=>Kn,ffirst:()=>ye,filter:()=>V,filterv:()=>ge,find:()=>_r,first:()=>E,fn_QMARK_:()=>Zn,fnil:()=>U,frequencies:()=>An,get:()=>h,get_in:()=>kt,group_by:()=>bn,identical_QMARK_:()=>tn,identity:()=>Et,inc:()=>ut,int_QMARK_:()=>Ft,integer_QMARK_:()=>fr,interleave:()=>Rt,interpose:()=>Ve,into:()=>jt,into_array:()=>zt,iterable:()=>c,iterate:()=>Wn,js_keys:()=>tr,js_obj:()=>kn,juxt:()=>Jn,keep:()=>sn,keep_indexed:()=>Ee,key:()=>St,keys:()=>qt,last:()=>me,lazy:()=>a,list:()=>qe,list_QMARK_:()=>Ce,map:()=>M,map_QMARK_:()=>qn,map_indexed:()=>Me,mapcat:()=>Fe,mapv:()=>wt,max:()=>$t,max_key:()=>dr,merge:()=>Xe,merge_with:()=>Ze,meta:()=>sr,min:()=>Cn,min_key:()=>hr,mod:()=>xr,neg_QMARK_:()=>On,next:()=>Dn,nil_QMARK_:()=>Qe,not:()=>xt,not_any_QMARK_:()=>xn,not_every_QMARK_:()=>fn,nth:()=>ct,number_QMARK_:()=>Ct,object_QMARK_:()=>fe,odd_QMARK_:()=>Pe,parse_long:()=>mr,partial:()=>nn,partition:()=>De,partition_all:()=>Je,partition_by:()=>Ue,pos_QMARK_:()=>Tn,pr_str:()=>ht,println:()=>it,prn:()=>Ie,quot:()=>br,rand_int:()=>Bt,rand_nth:()=>yn,range:()=>Te,re_find:()=>Ne,re_matches:()=>ke,re_pattern:()=>Ge,re_seq:()=>Yt,reduce:()=>Q,reduce_kv:()=>Yn,reduced:()=>we,reduced_QMARK_:()=>be,regexp_QMARK_:()=>rr,remove:()=>ve,remove_watch:()=>Pn,repeat:()=>D,repeatedly:()=>wn,replace:()=>hn,reset_BANG_:()=>mt,rest:()=>at,reverse:()=>an,satisfies_QMARK_:()=>ce,second:()=>de,select_keys:()=>We,seq:()=>N,seqable_QMARK_:()=>ft,set:()=>$e,shuffle:()=>_n,some:()=>Lt,some_QMARK_:()=>Sn,some_fn:()=>Vn,sort:()=>Gt,sort_by:()=>pn,split_at:()=>En,split_with:()=>Rn,str:()=>Re,string_QMARK_:()=>Z,subs:()=>Pt,subvec:()=>Le,swap_BANG_:()=>Oe,system_time:()=>He,t:()=>Xn,take:()=>B,take_nth:()=>en,take_while:()=>Ot,to_array:()=>Un,transduce:()=>tt,true_QMARK_:()=>Qn,truth_:()=>w,update:()=>un,update_BANG_:()=>X,update_in:()=>cn,val:()=>It,vals:()=>er,vec:()=>G,vector:()=>W,vector_QMARK_:()=>Be,warn_on_lazy_reusage_BANG_:()=>Ae,with_meta:()=>ar,zero_QMARK_:()=>jn,zipmap:()=>Ar});function s(t){if(t==null||t instanceof Function)return t;const e=typeof t;return e==="string"?(n,r)=>h(n,t,r):e==="object"?(n,r)=>h(t,n,r):t}function S(t,e){return t.every(function(n,r){return r===0||e(t[r-1],n)})}function te(...t){return S(t,(e,n)=>e>n)}function ee(...t){return S(t,(e,n)=>e>=n)}function ne(...t){return S(t,(e,n)=>e<n)}function re(...t){return S(t,(e,n)=>e<=n)}function oe(...t){return t.reduce((e,n)=>e+n,0)}function ue(...t){return t.reduce((e,n)=>e*n,1)}function ie(...t){return t.length==1?0-t[0]:t.reduce((e,n)=>e-n)}function ce(t,e){return e[t]}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 _:t.set(e,n);for(let o=0;o<r.length;o+=2)t.set(r[o],r[o+1]);break;case x:case y: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 Y(t){switch(p(t)){case _:return new Map(t.entries());case x:return[...t];case y:return{...t};default:throw new Error(`Don't know how to copy object of type ${typeof t}.`)}}function v(t,e,n,...r){t||(t={});const o=Y(t);return A(o,e,n,...r),o}const _=1,x=2,y=3,g=4,m=5,I=6;function j(t){switch(t){case _:return new Map;case x:return[];case y:return{};case g:return new L;case m:return new Set;case I:return a(function*(){})}}function C(t){return t.constructor===Object}function fe(t){return t!=null&&C(t)}function p(t){if(t!=null){if(C(t))return y;if(t instanceof Map)return _;if(t instanceof Set)return m;if(t instanceof L)return g;if(Array.isArray(t))return x;if(t instanceof F)return I;if(t instanceof Object)return y}}function se(t,e,n,r,o){const u=p(n);if(u!==_&&u!==x&&u!==y)throw new Error(`Illegal argument: ${e} expects the first argument to be a Map, Array, or Object.`);const i=[n];let f=n;for(let l=0;l<r.length-1;l+=1){const b=r[l];let d;f instanceof Map?d=f.get(b):d=f[b],d||(d=j(u)),i.push(d),f=d}i.push(o);for(let l=i.length-2;l>=0;l-=1)i[l]=t(i[l],r[l],i[l+1]);return i[0]}function et(t,e,n){return se(v,"assoc-in",t,e,n)}function ae(t,e,n){var r=t;const o=p(t);for(const u of e.splice(0,e.length-1)){let i=h(r,u);i===void 0&&(i=j(o),A(r,u,i)),r=i}return A(r,e[e.length-1],n),t}function le(...t){if(t=t.map(s),t.length===0)return Et;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 O(...t){if(t.length===0)return W();const[e,...n]=t;let r=e;switch(r==null&&(r=[]),p(r)){case m:for(const o of n)r.add(o);break;case g:r.unshift(...n.reverse());break;case x:r.push(...n);break;case _:for(const o of n)Array.isArray(o)?r.set(o[0],o[1]):c(o).forEach(u=>{r.set(u[0],u[1])});break;case y: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 nt(...t){if(t.length===0)return W();const[e,...n]=t;let r=e;r==null&&(r=[]);let o,u;switch(p(r)){case m:return new Set([...r,...n]);case g:return new L(...n.reverse(),...r);case x:return[...r,...n];case _:o=new Map(r);for(const i of n)Array.isArray(i)?o.set(i[0],i[1]):c(i).forEach(f=>{o.set(f[0],f[1])});return o;case I:return a(function*(){yield*n,yield*r});case y: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 rt(t,...e){for(const n of e)t.delete(n);return t}function pe(t,...e){const n=new Set([...t]);return rt(n,...e)}function ot(t,e){switch(p(t)){case m:case _:return t.has(e);case void 0:return!1;default:return e in t}}function _e(t,...e){for(const n of e)delete t[n];return t}function xe(t,...e){const n={...t};for(const r of e)delete n[r];return n}function ut(t){return t+1}function he(t){return t-1}function it(...t){console.log(...t)}function ct(t,e,n){if(t){var r=void 0;if(Array.isArray(t))r=t[e];else{const o=c(t);let u=0;for(const i of o)if(u++==e){r=i;break}}if(r!==void 0)return r}return n}function h(t,e,n=void 0){if(t==null)return n;let r;if(C(t))return r=t[e],r===void 0?n:r;let o;switch(p(t)){case m:t.has(e)&&(r=e);break;case _: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 ft(t){return typeof t=="string"||t===null||t===void 0||t instanceof Object&&Symbol.iterator in t}function c(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 q=Symbol("Iterable"),st=Symbol.iterator;function T(t){return t[Symbol.iterator]()}const k=T;function N(t){if(t==null)return t;const e=c(t);return e.length===0||e.size===0||e[Symbol.iterator]().next().done?null:e}function E(t){const[e]=c(t);return e}function de(t){const[e,n]=c(t);return n}function ye(t){return E(E(t))}function at(t){return a(function*(){let e=!0;for(const n of c(t))e?e=!1:yield n})}class R{value;constructor(e){this.value=e}_deref(){return this.value}}function me(t){t=c(t);let e;switch(p(t)){case x:return t[t.length-1];default:for(const n of t)e=n;return e}}function we(t){return new R(t)}function be(t){return t instanceof R}function Q(t,e,n){t=s(t);let r,o;if(n===void 0){const u=c(e)[Symbol.iterator]();o=u.next().value,r=u}else o=e,r=c(n);if(o instanceof R)return o.value;for(const u of r)if(o=t(o,u),o instanceof R){o=o.value;break}return o}var lt=!1;function Ae(){lt=!0}class F{constructor(e){this.gen=e,this.usages=0}[Symbol.iterator](){if(this.usages++,this.usages>=2&&lt)try{throw new Error}catch(e){console.warn("Re-use of lazy value",e.stack)}return this.gen()}}F.prototype[q]=!0;function a(t){return new F(t)}class pt{constructor(e,n){this.x=e,this.coll=n}*[Symbol.iterator](){yield this.x,yield*c(this.coll)}}function _t(t,e){return new pt(t,e)}function M(t,...e){switch(t=s(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 a(function*(){for(const n of c(e[0]))yield t(n)});default:return a(function*(){const n=e.map(r=>k(c(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 V(t,e){return t=s(t),a(function*(){for(const n of c(e))w(t(n))&&(yield n)})}function ge(t,e){return[...V(t,e)]}function ve(t,e){return V(gt(t),e)}function Me(t,e){t=s(t);const n=[];let r=0;for(const o of c(e))n.push(t(r,o)),r++;return n}function Ee(t,e){t=s(t);const n=[];let r=0;for(const o of c(e)){const u=t(r,o);w(u)&&n.push(u),r++}return n}function Re(...t){return t.join("")}function xt(t){return!t}function Qe(t){return t==null}const Ke={};function Se(t){return t===null?"null":JSON.stringify(t,(e,n)=>{switch(p(n)){case m:case I:return[...n];case _:return Object.fromEntries(n);default:return n}})}function ht(...t){return t.map(Se).join(" ")}function Ie(...t){it(ht(...t))}function dt(t){this.val=t,this._watches={},this._deref=()=>this.val,this._hasWatches=!1,this._reset_BANG_=e=>{const n=this.val;if(this.val=e,this._hasWatches)for(const r of Object.entries(this._watches)){const o=r[0],u=r[1];u(o,this,n,e)}return e},this._add_watch=(e,n)=>{this._watches[e]=n,this._hasWatches=!0},this._remove_watch=e=>{delete this._watches[e]}}function je(t){return new dt(t)}function yt(t){return t._deref()}function mt(t,e){t._reset_BANG_(e)}function Oe(t,e,...n){e=s(e);const r=e(yt(t),...n);return mt(t,r),r}function Te(t,e,n){return a(function*(){let r=t,o=e,u=n;e===void 0&&(r=0,o=t);let i=r||0;for(u=n||1;o===void 0||i<o;)yield i,i+=u})}function ke(t,e){const n=t.exec(e);return n&&e===n[0]?n.length===1?n[0]:n:null}function Ne(t,e){if(Z(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 Ge(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 Le(t,e,n){return t.slice(e,n)}function W(...t){return t}function Be(t){return p(t)===x}function wt(...t){return[...M(...t)]}function G(t){return vt(t)?t:[...c(t)]}function $e(t){return new Set(c(t))}const bt=Symbol("IApply__apply");function ze(t,...e){t=s(t);const n=e.slice(0,e.length-1),r=c(e[e.length-1]),o=t[bt];return o?o(...n,r):t(...n,...r)}function At(t){return t%2==0}function Pe(t){return!At(t)}function gt(t){return t=s(t),(...e)=>xt(t(...e))}function Ye(t){return(...e)=>t}class L extends Array{constructor(...e){super(),this.push(...e)}}function Ce(t){return p(t)===g}function qe(...t){return new L(...t)}function vt(t){return Array.isArray(t)}function J(t){return a(function*(){for(const e of t)yield*c(e)})}function Mt(...t){return J(t)}Mt[bt]=t=>J(t);function Fe(t,...e){const n=M(t,...e);return J(n)}function Et(t){return t}function Rt(...t){return a(function*(){const e=t.map(n=>k(c(n)));for(;;){const n=[];for(const r of e){const o=r.next();if(o.done)return;n.push(o.value)}yield*n}})}function Ve(t,e){return $(1,Rt(D(t),e))}function We(t,e){const n=p(t),r=j(n)||{};for(const o of e){const u=h(t,o);u!=null&&A(r,o,u)}return r}function Je(t,...e){let n=t,r=e[0];return e.length===2&&([n,r]=e),Qt(t,n,[],r,!0)}function De(t,...e){let n=t,r=[],o=e[0];return e.length===2?[n,o]=e:e.length>2&&([n,r,o]=e),Qt(t,n,r,o,!1)}function Qt(t,e,n,r,o){return a(function*(){let u=[],i=0;for(const f of c(r))i<t&&(u.push(f),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 Ue(t,e){return t=s(t),a(function*(){const n=k(e),r=n.next();r.done&&(yield*null);const o=r.value;let u=t(o),i=[o],f=[];for(;;){const l=n.next();if(l.done){yield i;break}const b=l.value,d=t(b);u==d?i.push(b):(yield i,f.push(b),i=f,u=d,f=[])}})}function Kt(t){const e=p(t);if(e!=null)return j(e);throw new Error(`Can't create empty of ${typeof t}`)}function Xe(...t){const e=t[0];let n;return e==null?n={}:n=jt(Kt(e),e),O(n,...t.slice(1))}function St(t){return t[0]}function It(t){return t[1]}function Ze(t,...e){t=s(t);var n=!1;for(const r of e)if(r!=null){n=!0;break}if(n){const r=(u,i)=>{const f=St(i),l=It(i);return ot(u,f)?v(u,f,t(h(u,f),l)):v(u,f,l)};return Q((u,i)=>Q(r,u||{},N(i)),e)}else return null}function He(){return performance.now()}function jt(...t){let e,n,r,o,u;switch(t.length){case 0:return[];case 1:return t[0];case 2:return nt(t[0]??[],...c(t[1]));case 3:return e=t[0],n=t[1],r=t[2],o=Y(e),u=(i,f)=>f===void 0?i:O(i,f),tt(n,u,o,r);default:throw TypeError(`Invalid arity call of into: ${t.length}`)}}function tn(t,e){return t===e}function D(...t){if(t.length==0||t.length>2)throw new Error(`Invalid arity: ${t.length}`);return{[q]:!0,[st]: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 B(t,e){return a(function*(){let n=t-1;for(const r of c(e))if(n-->=0&&(yield r),n<0)return})}function Ot(t,e){return t=s(t),a(function*(){for(const n of c(e))if(w(t(n)))yield n;else return})}function en(t,e){return t<=0?D(E(e)):a(function*(){let n=0;for(const r of c(e))n%t===0&&(yield r),n++})}function nn(t,...e){return t=s(t),function(...n){return t(...e,...n)}}function rn(t){return a(function*(){for(;;)yield*t})}function $(t,e){return a(function*(){const n=T(c(e));for(let r=0;r<t;r++)n.next();yield*n})}function Tt(t,e){return t=s(t),a(function*(){const n=T(c(e));for(;;){const r=n.next();if(r.done)break;const o=r.value;if(!w(t(o))){yield o;break}}yield*n})}function on(t){return a(function*(){const e=new Set;for(const n of c(t))e.has(n)||(yield n),e.add(n)})}function un(t,e,n,...r){return n=s(n),v(t,e,n(h(t,e),...r))}function kt(t,e,n){let r=t;for(const o of e)r=h(r,o);return r===void 0?n:r}function cn(t,e,n,...r){return n=s(n),et(t,e,n(kt(t,e),...r))}function U(t,e,...n){return t=s(t),function(r,...o){return r?t(r,...n,...o):t(e,...n,...o)}}function Nt(t,e){t=s(t);for(const n of c(e))if(!t(n))return!1;return!0}function fn(t,e){return!Nt(t,e)}function sn(t,e){return t=s(t),a(function*(){for(const n of c(e)){const r=t(n);w(r)&&(yield r)}})}function an(t){return t=c(t),[...t].reverse()}function Gt(t,e){return e===void 0&&(e=t,t=void 0),t=s(t),e=c(e),[...e].sort(t||z)}function ln(t){return t===z?t:(e,n)=>{const r=t(e,n);return Ct(r)?r:r?-1:t(n,e)?1:0}}function pn(t,e,n){return n===void 0&&(n=e,e=z),t=s(t),e=s(e),Gt((r,o)=>{const u=ln(e),i=t(r),f=t(o);return u(i,f)},n)}function _n(t){return[...t].sort(function(e,n){return Math.random()-.5})}function Lt(t,e){t=s(t);for(const n of c(e)){const r=t(n);if(w(r))return r}}function xn(t,e){return t=s(t),!Lt(t,e)}function hn(t,e){return(Array.isArray(e)?wt:M)(r=>{const o=t[r];return o!==void 0?o:r},e)}function dn(t){return!N(t)}function Bt(t){return Math.floor(Math.random()*t)}function yn(t){const e=Bt(K(t));return ct(t,e)}function mn(t){return a(function*(){for(;;)yield t()})}function wn(t,e){e===void 0&&(e=t,t=void 0);const n=mn(e);return t?B(t,n):n}function X(t,e,n,...r){const o=h(t,e);return A(t,e,n(o,...r))}function bn(t,e){const n={};for(const r of c(e)){const o=t(r);X(n,o,U(O,[]),r)}return n}function An(t){const e={},n=U(ut,0);for(const r of c(t))X(e,r,n);return e}class gn{constructor(e){this.f=e,this.res=void 0}*[Symbol.iterator](){this.res===void 0&&(this.res=this.f(),this.f=null),yield*c(this.res)}}function vn(t){const e=[...c(t)];return e.pop(),e.length>0?e:null}function Mn(...t){const[e,n]=t.length>1?t:[1,t[0]];return M((r,o)=>r,n,$(e,n))}function En(t,e){return[B(t,e),$(t,e)]}function Rn(t,e){return[Ot(t,e),Tt(t,e)]}function K(t){if(!t)return 0;const e=t.length||t.size;if(typeof e=="number")return e;let n=0;for(const r of c(t))n++;return n}function Qn(t){return t===!0}function Kn(t){return t===!1}function Sn(t){return t!=null}function In(t){return!!t}function jn(t){return t===0}function On(t){return t<0}function Tn(t){return t>0}function kn(...t){let e=0;const n={};for(;!(e>=t.length);)n[t[e]]=t[e+1],e=e+2;return n}function Nn(t){return t.length}function Gn(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,f=0;const l=o.length-2;for(;f<l;f++)i=i[o[f]];return i[o[f]]=u,n}}function Ln(t){for(const e of c(t));return null}function Bn(t){return G(t)}function $n(t){return[...t]}function zn(t,e,n){return t._add_watch(e,n)}function Pn(t,e){return t._remove_watch(e)}function Yn(t,e,n){if(!n)return e;var r=e;for(const o of Object.entries(n))r=t(r,o[0],o[1]);return r}function $t(t,e,...n){return e==null?t:Math.max(t,e,...n)}function Cn(t,e,...n){return e==null?t:Math.min(t,e,...n)}function qn(t){return t instanceof Object}function Fn(...t){return(...e)=>{for(const n of t)for(const r of e)if(!n(r))return!1;return!0}}function Vn(...t){return(...e)=>{for(const n of t)for(const r of e){const o=n(r);if(o)return o}}}function zt(t,e){return G(e||t)}function Wn(t,e){var n=e;return a(function*(){for(;;)yield n,n=t(n)})}function Jn(...t){return t=t.map(s),(...e)=>{const n=[];for(const r of t)n.push(r(...e));return n}}function Dn(t){if(Array.isArray(t)){const e=t.slice(1);return e.length>0?e:null}else return N(at(t))}function z(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;throw new Error(`comparing ${n} to ${r}`)}}function Un(t){return zt(t)}function w(t){return t!=null&&t!==!1}const Xn=w;function Pt(t,e,n){return t.substring(e,n)}function Zn(t){return typeof t=="function"}function*Yt(t,e){const n=t.exec(e);if(n){const r=n[0],o=n.length===1?r:G(n);yield*_t(o,a(function*(){const u=n.index+$t(1,r.length);u<=e.length&&(yield*Yt(t,Pt(e,u)))}))}}function Hn(t){return Number.isNaN(t)}function Ct(t){return typeof t=="number"}function qt(t){return t?Object.keys(t):null}function tr(t){return qt(t)}function er(t){return t?Object.values(t):null}function Z(t){return typeof t=="string"}function nr(t){return p(t)!=null}function rr(t){return t instanceof RegExp}class H extends Error{constructor(e,n,r){super(e),this._data=n,this._cause=r}}function or(t){return t instanceof H?t._data:null}function ur(t){return t instanceof Error?t.message:null}function ir(t){return t instanceof H?t._cause:null}function cr(t,e,n){return new H(t,e,n)}function Ft(t){return Number.isInteger(t)}const fr=Ft,Vt=Symbol("meta");function sr(t){return t instanceof Object?t[Vt]:null}function ar(t,e){const n=Y(t);return n[Vt]=e,n}function lr(t){return t===!0||t===!1}function Wt(t){switch(p(t)){case m:return!0}return!1}function pr(t,e){return Wt(e)?K(e):K(B(t,e))}function _r(t,e){const n=h(t,e);if(n!==void 0)return[e,n]}function xr(t,e){return(t%e+e)%e}function hr(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 dr(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 yr(t){throw new Error(`Expected string, got: ${typeof t}`)}function mr(t){if(Z(t)){if(/^[+-]?\d+$/.test(t)){const e=parseInt(t);if(Number.MIN_SAFE_INTEGER<=e<=Number.MAX_SAFE_INTEGER)return e}return null}return yr(t)}function wr(t){return t>=0?Math.floor(t):Math.ceil(t)}function br(t,e){const n=t%e;return wr((t-n)/e)}function tt(t,...e){switch(e.length){case 2:{const n=e[0],r=e[1];return tt(t,n,n(),r)}default:{let n=e[0];const r=e[1],o=e[2];n=t(n);const u=Q(n,r,o);return n(u)}}}function Ar(t,e){let n={};const r=c(t)[Symbol.iterator](),o=c(e)[Symbol.iterator]();let u,i;for(;u=r.next(),!(u.done||(i=o.next(),i.done));)n[u.value]=i.value;return n}return Ht(gr);})();
var squint;(squint||={}).core=(()=>{var P=Object.defineProperty;var Jt=Object.getOwnPropertyDescriptor;var Dt=Object.getOwnPropertyNames;var Ut=Object.prototype.hasOwnProperty;var Xt=(t,e)=>{for(var n in e)P(t,n,{get:e[n],enumerable:!0})},Zt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Dt(e))!Ut.call(t,o)&&o!==n&&P(t,o,{get:()=>e[o],enumerable:!(r=Jt(e,o))||r.enumerable});return t};var Ht=t=>Zt(P({},"__esModule",{value:!0}),t);var vr={};Xt(vr,{Atom:()=>dt,Cons:()=>pt,IIterable:()=>C,IIterable__iterator:()=>st,LazySeq:()=>gn,NaN_QMARK_:()=>Hn,PROTOCOL_SENTINEL:()=>Qe,_:()=>ie,_GT_:()=>te,_GT__EQ_:()=>ee,_LT_:()=>ne,_LT__EQ_:()=>re,_PLUS_:()=>oe,_STAR_:()=>ue,_iterator:()=>k,aclone:()=>$n,add_watch:()=>zn,alength:()=>Nn,apply:()=>ze,array_QMARK_:()=>vt,aset:()=>Gn,assoc:()=>v,assoc_BANG_:()=>A,assoc_in:()=>et,assoc_in_BANG_:()=>ae,atom:()=>je,boolean$:()=>In,boolean_QMARK_:()=>lr,bounded_count:()=>pr,butlast:()=>vn,coll_QMARK_:()=>nr,comp:()=>le,compare:()=>z,complement:()=>gt,concat:()=>Mt,conj:()=>nt,conj_BANG_:()=>T,cons:()=>_t,constantly:()=>qe,contains_QMARK_:()=>ot,count:()=>K,counted_QMARK_:()=>Wt,cycle:()=>rn,dec:()=>he,deref:()=>yt,disj:()=>pe,disj_BANG_:()=>rt,dissoc:()=>xe,dissoc_BANG_:()=>_e,distinct:()=>on,doall:()=>Bn,dorun:()=>Ln,drop:()=>$,drop_last:()=>Mn,drop_while:()=>Tt,empty:()=>Qt,empty_QMARK_:()=>dn,es6_iterator:()=>N,even_QMARK_:()=>At,every_QMARK_:()=>Nt,every_pred:()=>Fn,ex_cause:()=>ir,ex_data:()=>or,ex_info:()=>cr,ex_message:()=>ur,false_QMARK_:()=>Qn,ffirst:()=>ye,filter:()=>V,filterv:()=>ge,find:()=>_r,first:()=>R,fn_QMARK_:()=>Zn,fnil:()=>U,frequencies:()=>An,get:()=>h,get_in:()=>kt,group_by:()=>bn,identical_QMARK_:()=>tn,identity:()=>Et,inc:()=>ut,int_QMARK_:()=>Ft,integer_QMARK_:()=>fr,interleave:()=>Rt,interpose:()=>Ve,into:()=>jt,into_array:()=>zt,iterable:()=>c,iterate:()=>Wn,js_keys:()=>tr,js_obj:()=>kn,juxt:()=>Jn,keep:()=>sn,keep_indexed:()=>Ee,key:()=>Kt,keys:()=>Ct,last:()=>me,lazy:()=>a,list:()=>Ce,list_QMARK_:()=>Ye,map:()=>E,map_QMARK_:()=>Cn,map_indexed:()=>Me,mapcat:()=>Fe,mapv:()=>wt,max:()=>$t,max_key:()=>dr,merge:()=>Xe,merge_with:()=>Ze,meta:()=>sr,min:()=>Yn,min_key:()=>hr,mod:()=>xr,neg_QMARK_:()=>On,next:()=>Dn,nil_QMARK_:()=>Se,not:()=>xt,not_any_QMARK_:()=>xn,not_empty:()=>gr,not_every_QMARK_:()=>fn,nth:()=>ct,number_QMARK_:()=>Yt,object_QMARK_:()=>fe,odd_QMARK_:()=>Pe,parse_long:()=>mr,partial:()=>nn,partition:()=>De,partition_all:()=>Je,partition_by:()=>Ue,pos_QMARK_:()=>Tn,pr_str:()=>ht,println:()=>it,prn:()=>Ie,quot:()=>br,rand_int:()=>Bt,rand_nth:()=>yn,range:()=>Te,re_find:()=>Ne,re_matches:()=>ke,re_pattern:()=>Ge,re_seq:()=>qt,reduce:()=>Q,reduce_kv:()=>qn,reduced:()=>we,reduced_QMARK_:()=>be,regexp_QMARK_:()=>rr,remove:()=>ve,remove_watch:()=>Pn,repeat:()=>D,repeatedly:()=>wn,replace:()=>hn,reset_BANG_:()=>mt,rest:()=>at,reverse:()=>an,satisfies_QMARK_:()=>ce,second:()=>de,select_keys:()=>We,seq:()=>M,seqable_QMARK_:()=>ft,set:()=>$e,shuffle:()=>_n,some:()=>Lt,some_QMARK_:()=>Kn,some_fn:()=>Vn,sort:()=>Gt,sort_by:()=>pn,split_at:()=>En,split_with:()=>Rn,str:()=>Re,string_QMARK_:()=>Z,subs:()=>Pt,subvec:()=>Le,swap_BANG_:()=>Oe,system_time:()=>He,t:()=>Xn,take:()=>B,take_nth:()=>en,take_while:()=>Ot,to_array:()=>Un,transduce:()=>tt,true_QMARK_:()=>Sn,truth_:()=>w,update:()=>un,update_BANG_:()=>X,update_in:()=>cn,val:()=>It,vals:()=>er,vec:()=>G,vector:()=>W,vector_QMARK_:()=>Be,warn_on_lazy_reusage_BANG_:()=>Ae,with_meta:()=>ar,zero_QMARK_:()=>jn,zipmap:()=>Ar});function s(t){if(t==null||t instanceof Function)return t;const e=typeof t;return e==="string"?(n,r)=>h(n,t,r):e==="object"?(n,r)=>h(t,n,r):t}function I(t,e){return t.every(function(n,r){return r===0||e(t[r-1],n)})}function te(...t){return I(t,(e,n)=>e>n)}function ee(...t){return I(t,(e,n)=>e>=n)}function ne(...t){return I(t,(e,n)=>e<n)}function re(...t){return I(t,(e,n)=>e<=n)}function oe(...t){return t.reduce((e,n)=>e+n,0)}function ue(...t){return t.reduce((e,n)=>e*n,1)}function ie(...t){return t.length==1?0-t[0]:t.reduce((e,n)=>e-n)}function ce(t,e){return e[t]}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 _:t.set(e,n);for(let o=0;o<r.length;o+=2)t.set(r[o],r[o+1]);break;case x:case y: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 q(t){switch(p(t)){case _:return new Map(t);case m:return new Set(t);case x:return[...t];case y:return{...t};default:throw new Error(`Don't know how to copy object of type ${typeof t}.`)}}function v(t,e,n,...r){t||(t={});const o=q(t);return A(o,e,n,...r),o}const _=1,x=2,y=3,g=4,m=5,j=6;function O(t){switch(t){case _:return new Map;case x:return[];case y:return{};case g:return new L;case m:return new Set;case j:return a(function*(){})}}function Y(t){return t.constructor===Object}function fe(t){return t!=null&&Y(t)}function p(t){if(t!=null){if(Y(t))return y;if(t instanceof Map)return _;if(t instanceof Set)return m;if(t instanceof L)return g;if(Array.isArray(t))return x;if(t instanceof F)return j;if(t instanceof Object)return y}}function se(t,e,n,r,o){const u=p(n);if(u!==_&&u!==x&&u!==y)throw new Error(`Illegal argument: ${e} expects the first argument to be a Map, Array, or Object.`);const i=[n];let f=n;for(let l=0;l<r.length-1;l+=1){const b=r[l];let d;f instanceof Map?d=f.get(b):d=f[b],d||(d=O(u)),i.push(d),f=d}i.push(o);for(let l=i.length-2;l>=0;l-=1)i[l]=t(i[l],r[l],i[l+1]);return i[0]}function et(t,e,n){return se(v,"assoc-in",t,e,n)}function ae(t,e,n){var r=t;const o=p(t);for(const u of e.splice(0,e.length-1)){let i=h(r,u);i===void 0&&(i=O(o),A(r,u,i)),r=i}return A(r,e[e.length-1],n),t}function le(...t){if(t=t.map(s),t.length===0)return Et;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 T(...t){if(t.length===0)return W();const[e,...n]=t;let r=e;switch(r==null&&(r=[]),p(r)){case m:for(const o of n)r.add(o);break;case g:r.unshift(...n.reverse());break;case x:r.push(...n);break;case _:for(const o of n)Array.isArray(o)?r.set(o[0],o[1]):c(o).forEach(u=>{r.set(u[0],u[1])});break;case y: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 nt(...t){if(t.length===0)return W();const[e,...n]=t;let r=e;r==null&&(r=[]);let o,u;switch(p(r)){case m:return new Set([...r,...n]);case g:return new L(...n.reverse(),...r);case x:return[...r,...n];case _:o=new Map(r);for(const i of n)Array.isArray(i)?o.set(i[0],i[1]):c(i).forEach(f=>{o.set(f[0],f[1])});return o;case j:return a(function*(){yield*n,yield*r});case y: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 rt(t,...e){for(const n of e)t.delete(n);return t}function pe(t,...e){const n=new Set([...t]);return rt(n,...e)}function ot(t,e){switch(p(t)){case m:case _:return t.has(e);case void 0:return!1;default:return e in t}}function _e(t,...e){for(const n of e)delete t[n];return t}function xe(t,...e){const n={...t};for(const r of e)delete n[r];return n}function ut(t){return t+1}function he(t){return t-1}function it(...t){console.log(...t)}function ct(t,e,n){if(t){var r=void 0;if(Array.isArray(t))r=t[e];else{const o=c(t);let u=0;for(const i of o)if(u++==e){r=i;break}}if(r!==void 0)return r}return n}function h(t,e,n=void 0){if(t==null)return n;let r;if(Y(t))return r=t[e],r===void 0?n:r;let o;switch(p(t)){case m:t.has(e)&&(r=e);break;case _: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 ft(t){return typeof t=="string"||t===null||t===void 0||t instanceof Object&&Symbol.iterator in t}function c(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 C=Symbol("Iterable"),st=Symbol.iterator;function k(t){return t[Symbol.iterator]()}const N=k;function M(t){if(t==null)return t;const e=c(t);return e.length===0||e.size===0||e[Symbol.iterator]().next().done?null:e}function R(t){const[e]=c(t);return e}function de(t){const[e,n]=c(t);return n}function ye(t){return R(R(t))}function at(t){return a(function*(){let e=!0;for(const n of c(t))e?e=!1:yield n})}class S{value;constructor(e){this.value=e}_deref(){return this.value}}function me(t){t=c(t);let e;switch(p(t)){case x:return t[t.length-1];default:for(const n of t)e=n;return e}}function we(t){return new S(t)}function be(t){return t instanceof S}function Q(t,e,n){t=s(t);let r,o;if(n===void 0){const u=c(e)[Symbol.iterator]();o=u.next().value,r=u}else o=e,r=c(n);if(o instanceof S)return o.value;for(const u of r)if(o=t(o,u),o instanceof S){o=o.value;break}return o}var lt=!1;function Ae(){lt=!0}class F{constructor(e){this.gen=e,this.usages=0}[Symbol.iterator](){if(this.usages++,this.usages>=2&&lt)try{throw new Error}catch(e){console.warn("Re-use of lazy value",e.stack)}return this.gen()}}F.prototype[C]=!0;function a(t){return new F(t)}class pt{constructor(e,n){this.x=e,this.coll=n}*[Symbol.iterator](){yield this.x,yield*c(this.coll)}}function _t(t,e){return new pt(t,e)}function E(t,...e){switch(t=s(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 a(function*(){for(const n of c(e[0]))yield t(n)});default:return a(function*(){const n=e.map(r=>N(c(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 V(t,e){return t=s(t),a(function*(){for(const n of c(e))w(t(n))&&(yield n)})}function ge(t,e){return[...V(t,e)]}function ve(t,e){return V(gt(t),e)}function Me(t,e){t=s(t);const n=[];let r=0;for(const o of c(e))n.push(t(r,o)),r++;return n}function Ee(t,e){t=s(t);const n=[];let r=0;for(const o of c(e)){const u=t(r,o);w(u)&&n.push(u),r++}return n}function Re(...t){return t.join("")}function xt(t){return!t}function Se(t){return t==null}const Qe={};function Ke(t){return t===null?"null":JSON.stringify(t,(e,n)=>{switch(p(n)){case m:case j:return[...n];case _:return Object.fromEntries(n);default:return n}})}function ht(...t){return t.map(Ke).join(" ")}function Ie(...t){it(ht(...t))}function dt(t){this.val=t,this._watches={},this._deref=()=>this.val,this._hasWatches=!1,this._reset_BANG_=e=>{const n=this.val;if(this.val=e,this._hasWatches)for(const r of Object.entries(this._watches)){const o=r[0],u=r[1];u(o,this,n,e)}return e},this._add_watch=(e,n)=>{this._watches[e]=n,this._hasWatches=!0},this._remove_watch=e=>{delete this._watches[e]}}function je(t){return new dt(t)}function yt(t){return t._deref()}function mt(t,e){t._reset_BANG_(e)}function Oe(t,e,...n){e=s(e);const r=e(yt(t),...n);return mt(t,r),r}function Te(t,e,n){return a(function*(){let r=t,o=e,u=n;e===void 0&&(r=0,o=t);let i=r||0;for(u=n||1;o===void 0||i<o;)yield i,i+=u})}function ke(t,e){const n=t.exec(e);return n&&e===n[0]?n.length===1?n[0]:n:null}function Ne(t,e){if(Z(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 Ge(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 Le(t,e,n){return t.slice(e,n)}function W(...t){return t}function Be(t){return p(t)===x}function wt(...t){return[...E(...t)]}function G(t){return vt(t)?t:[...c(t)]}function $e(t){return new Set(c(t))}const bt=Symbol("IApply__apply");function ze(t,...e){t=s(t);const n=e.slice(0,e.length-1),r=c(e[e.length-1]),o=t[bt];return o?o(...n,r):t(...n,...r)}function At(t){return t%2==0}function Pe(t){return!At(t)}function gt(t){return t=s(t),(...e)=>xt(t(...e))}function qe(t){return(...e)=>t}class L extends Array{constructor(...e){super(),this.push(...e)}}function Ye(t){return p(t)===g}function Ce(...t){return new L(...t)}function vt(t){return Array.isArray(t)}function J(t){return a(function*(){for(const e of t)yield*c(e)})}function Mt(...t){return J(t)}Mt[bt]=t=>J(t);function Fe(t,...e){const n=E(t,...e);return J(n)}function Et(t){return t}function Rt(...t){return a(function*(){const e=t.map(n=>N(c(n)));for(;;){const n=[];for(const r of e){const o=r.next();if(o.done)return;n.push(o.value)}yield*n}})}function Ve(t,e){return $(1,Rt(D(t),e))}function We(t,e){const n=p(t),r=O(n)||{};for(const o of e){const u=h(t,o);u!=null&&A(r,o,u)}return r}function Je(t,...e){let n=t,r=e[0];return e.length===2&&([n,r]=e),St(t,n,[],r,!0)}function De(t,...e){let n=t,r=[],o=e[0];return e.length===2?[n,o]=e:e.length>2&&([n,r,o]=e),St(t,n,r,o,!1)}function St(t,e,n,r,o){return a(function*(){let u=[],i=0;for(const f of c(r))i<t&&(u.push(f),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 Ue(t,e){return t=s(t),a(function*(){const n=N(e),r=n.next();r.done&&(yield*null);const o=r.value;let u=t(o),i=[o],f=[];for(;;){const l=n.next();if(l.done){yield i;break}const b=l.value,d=t(b);u==d?i.push(b):(yield i,f.push(b),i=f,u=d,f=[])}})}function Qt(t){const e=p(t);if(e!=null)return O(e);throw new Error(`Can't create empty of ${typeof t}`)}function Xe(...t){const e=t[0];let n;return e==null?n={}:n=jt(Qt(e),e),T(n,...t.slice(1))}function Kt(t){return t[0]}function It(t){return t[1]}function Ze(t,...e){t=s(t);var n=!1;for(const r of e)if(r!=null){n=!0;break}if(n){const r=(u,i)=>{const f=Kt(i),l=It(i);return ot(u,f)?v(u,f,t(h(u,f),l)):v(u,f,l)};return Q((u,i)=>Q(r,u||{},M(i)),e)}else return null}function He(){return performance.now()}function jt(...t){let e,n,r,o,u;switch(t.length){case 0:return[];case 1:return t[0];case 2:return nt(t[0]??[],...c(t[1]));case 3:return e=t[0],n=t[1],r=t[2],o=q(e),u=(i,f)=>f===void 0?i:T(i,f),tt(n,u,o,r);default:throw TypeError(`Invalid arity call of into: ${t.length}`)}}function tn(t,e){return t===e}function D(...t){if(t.length==0||t.length>2)throw new Error(`Invalid arity: ${t.length}`);return{[C]:!0,[st]: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 B(t,e){return a(function*(){let n=t-1;for(const r of c(e))if(n-->=0&&(yield r),n<0)return})}function Ot(t,e){return t=s(t),a(function*(){for(const n of c(e))if(w(t(n)))yield n;else return})}function en(t,e){return t<=0?D(R(e)):a(function*(){let n=0;for(const r of c(e))n%t===0&&(yield r),n++})}function nn(t,...e){return t=s(t),function(...n){return t(...e,...n)}}function rn(t){return a(function*(){for(;;)yield*t})}function $(t,e){return a(function*(){const n=k(c(e));for(let r=0;r<t;r++)n.next();yield*n})}function Tt(t,e){return t=s(t),a(function*(){const n=k(c(e));for(;;){const r=n.next();if(r.done)break;const o=r.value;if(!w(t(o))){yield o;break}}yield*n})}function on(t){return a(function*(){const e=new Set;for(const n of c(t))e.has(n)||(yield n),e.add(n)})}function un(t,e,n,...r){return n=s(n),v(t,e,n(h(t,e),...r))}function kt(t,e,n){let r=t;for(const o of e)r=h(r,o);return r===void 0?n:r}function cn(t,e,n,...r){return n=s(n),et(t,e,n(kt(t,e),...r))}function U(t,e,...n){return t=s(t),function(r,...o){return r?t(r,...n,...o):t(e,...n,...o)}}function Nt(t,e){t=s(t);for(const n of c(e))if(!t(n))return!1;return!0}function fn(t,e){return!Nt(t,e)}function sn(t,e){return t=s(t),a(function*(){for(const n of c(e)){const r=t(n);w(r)&&(yield r)}})}function an(t){return t=c(t),[...t].reverse()}function Gt(t,e){return e===void 0&&(e=t,t=void 0),t=s(t),e=c(e),[...e].sort(t||z)}function ln(t){return t===z?t:(e,n)=>{const r=t(e,n);return Yt(r)?r:r?-1:t(n,e)?1:0}}function pn(t,e,n){return n===void 0&&(n=e,e=z),t=s(t),e=s(e),Gt((r,o)=>{const u=ln(e),i=t(r),f=t(o);return u(i,f)},n)}function _n(t){return[...t].sort(function(e,n){return Math.random()-.5})}function Lt(t,e){t=s(t);for(const n of c(e)){const r=t(n);if(w(r))return r}}function xn(t,e){return t=s(t),!Lt(t,e)}function hn(t,e){return(Array.isArray(e)?wt:E)(r=>{const o=t[r];return o!==void 0?o:r},e)}function dn(t){return!M(t)}function Bt(t){return Math.floor(Math.random()*t)}function yn(t){const e=Bt(K(t));return ct(t,e)}function mn(t){return a(function*(){for(;;)yield t()})}function wn(t,e){e===void 0&&(e=t,t=void 0);const n=mn(e);return t?B(t,n):n}function X(t,e,n,...r){const o=h(t,e);return A(t,e,n(o,...r))}function bn(t,e){const n={};for(const r of c(e)){const o=t(r);X(n,o,U(T,[]),r)}return n}function An(t){const e={},n=U(ut,0);for(const r of c(t))X(e,r,n);return e}class gn{constructor(e){this.f=e,this.res=void 0}*[Symbol.iterator](){this.res===void 0&&(this.res=this.f(),this.f=null),yield*c(this.res)}}function vn(t){const e=[...c(t)];return e.pop(),e.length>0?e:null}function Mn(...t){const[e,n]=t.length>1?t:[1,t[0]];return E((r,o)=>r,n,$(e,n))}function En(t,e){return[B(t,e),$(t,e)]}function Rn(t,e){return[Ot(t,e),Tt(t,e)]}function K(t){if(!t)return 0;const e=t.length||t.size;if(typeof e=="number")return e;let n=0;for(const r of c(t))n++;return n}function Sn(t){return t===!0}function Qn(t){return t===!1}function Kn(t){return t!=null}function In(t){return!!t}function jn(t){return t===0}function On(t){return t<0}function Tn(t){return t>0}function kn(...t){let e=0;const n={};for(;!(e>=t.length);)n[t[e]]=t[e+1],e=e+2;return n}function Nn(t){return t.length}function Gn(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,f=0;const l=o.length-2;for(;f<l;f++)i=i[o[f]];return i[o[f]]=u,n}}function Ln(t){for(const e of c(t));return null}function Bn(t){return G(t)}function $n(t){return[...t]}function zn(t,e,n){return t._add_watch(e,n)}function Pn(t,e){return t._remove_watch(e)}function qn(t,e,n){if(!n)return e;var r=e;for(const o of Object.entries(n))r=t(r,o[0],o[1]);return r}function $t(t,e,...n){return e==null?t:Math.max(t,e,...n)}function Yn(t,e,...n){return e==null?t:Math.min(t,e,...n)}function Cn(t){return t instanceof Object}function Fn(...t){return(...e)=>{for(const n of t)for(const r of e)if(!n(r))return!1;return!0}}function Vn(...t){return(...e)=>{for(const n of t)for(const r of e){const o=n(r);if(o)return o}}}function zt(t,e){return G(e||t)}function Wn(t,e){var n=e;return a(function*(){for(;;)yield n,n=t(n)})}function Jn(...t){return t=t.map(s),(...e)=>{const n=[];for(const r of t)n.push(r(...e));return n}}function Dn(t){if(Array.isArray(t)){const e=t.slice(1);return e.length>0?e:null}else return M(at(t))}function z(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;throw new Error(`comparing ${n} to ${r}`)}}function Un(t){return zt(t)}function w(t){return t!=null&&t!==!1}const Xn=w;function Pt(t,e,n){return t.substring(e,n)}function Zn(t){return typeof t=="function"}function*qt(t,e){const n=t.exec(e);if(n){const r=n[0],o=n.length===1?r:G(n);yield*_t(o,a(function*(){const u=n.index+$t(1,r.length);u<=e.length&&(yield*qt(t,Pt(e,u)))}))}}function Hn(t){return Number.isNaN(t)}function Yt(t){return typeof t=="number"}function Ct(t){return t?Object.keys(t):null}function tr(t){return Ct(t)}function er(t){return t?Object.values(t):null}function Z(t){return typeof t=="string"}function nr(t){return p(t)!=null}function rr(t){return t instanceof RegExp}class H extends Error{constructor(e,n,r){super(e),this._data=n,this._cause=r}}function or(t){return t instanceof H?t._data:null}function ur(t){return t instanceof Error?t.message:null}function ir(t){return t instanceof H?t._cause:null}function cr(t,e,n){return new H(t,e,n)}function Ft(t){return Number.isInteger(t)}const fr=Ft,Vt=Symbol("meta");function sr(t){return t instanceof Object?t[Vt]:null}function ar(t,e){const n=q(t);return n[Vt]=e,n}function lr(t){return t===!0||t===!1}function Wt(t){switch(p(t)){case m:return!0}return!1}function pr(t,e){return Wt(e)?K(e):K(B(t,e))}function _r(t,e){const n=h(t,e);if(n!==void 0)return[e,n]}function xr(t,e){return(t%e+e)%e}function hr(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 dr(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 yr(t){throw new Error(`Expected string, got: ${typeof t}`)}function mr(t){if(Z(t)){if(/^[+-]?\d+$/.test(t)){const e=parseInt(t);if(Number.MIN_SAFE_INTEGER<=e<=Number.MAX_SAFE_INTEGER)return e}return null}return yr(t)}function wr(t){return t>=0?Math.floor(t):Math.ceil(t)}function br(t,e){const n=t%e;return wr((t-n)/e)}function tt(t,...e){switch(e.length){case 2:{const n=e[0],r=e[1];return tt(t,n,n(),r)}default:{let n=e[0];const r=e[1],o=e[2];n=t(n);const u=Q(n,r,o);return n(u)}}}function Ar(t,e){const n={},r=c(t)[Symbol.iterator](),o=c(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 gr(t){return M(t)?t:null}return Ht(vr);})();

@@ -5,3 +5,3 @@ {

"sideEffects": false,
"version": "0.4.72",
"version": "0.4.73",
"files": [

@@ -32,2 +32,3 @@ "core.js",

"react": "^18.2.0",
"react-dom": "^18.2.0",
"shadow-cljs": "^2.19.8",

@@ -34,0 +35,0 @@ "squint-cljs": "."

## Squint
Squint is a compiler for an experimental dialect of ClojureScript. You can think
of this as CLJS lite or CLJS--.
Squint is a light-weight dialect of ClojureScript with a compiler and standard
library.
Squint is not intended as a full replacement for ClojureScript but as a tool to
target JS for anything you would not use ClojureScript for, for whatever reason:
performance, bundle size, ease of interop, etc.
target JS when you need something more light-weight in terms of interop and
bundle size. The most significant different with CLJS is that squint uses only
built-in JS data structures. Squint's output is designed to work well with ES
modules.
If you want to use squint, but with the normal ClojureScript standard library
and data structures, check out [cherry](https://github.com/squint-cljs/cherry).
> :warning: This project is a work in progress and may still undergo breaking

@@ -190,2 +195,4 @@ > changes.

[Play with JSX non the playground](https://squint-cljs.github.io/squint/?repl=true&src=KHJlcXVpcmUgJ1sicmVhY3QiIDphcyByZWFjdF0pCihyZXF1aXJlICdbInJlYWN0LWRvbSIgOmFzIHJkb21dKQoKKGRlZm9uY2UgY29tcG9uZW50LXN0YXRlIChhdG9tIDApKQoKKGRlZm4gQmFyIFt7OmtleXMgW2ZpcnN0bmFtZSBsYXN0bmFtZV0gOmFzIHByb3BzfV0KICAobGV0IFtbY2xpY2tzIHNldENsaWNrc10gKHJlYWN0L3VzZVN0YXRlIEBjb21wb25lbnQtc3RhdGUpXQogICAgI2pzeCBbOjw%2BCiAgICAgICAgICBbOnNwYW4gZmlyc3RuYW1lICIgIiBsYXN0bmFtZV0KICAgICAgICAgIFs6ZGl2ICJZb3UgY2xpY2tlZCAiIGNsaWNrcyAiIHRpbWVzISJdCiAgICAgICAgICBbOmJ1dHRvbiB7Om9uQ2xpY2sgIyhzZXRDbGlja3MgKHN3YXAhIGNvbXBvbmVudC1zdGF0ZSBpbmMpKX0KICAgICAgICAgICAiQ2xpY2sgbWUiXV0pKQoKKGRlZm4gRm9vIFtdCiAgI2pzeCBbOmRpdiAiSGVsbG8sICIKICAgICAgICAobGV0IFttIChhc3NvYyB7OmZpcnN0bmFtZSAiTWljaGllbCJ9IDpsYXN0bmFtZSAiQm9ya2VudCIpXQogICAgICAgICAgI2pzeCBbQmFyIHs6JiBtfV0pXSkKCihkZWZvbmNlIGVsdCAoZG90byAoanMvZG9jdW1lbnQuY3JlYXRlRWxlbWVudCAiZGl2IikKICAgICAgICAgICAgICAgKGpzL2RvY3VtZW50LmJvZHkucHJlcGVuZCkpKQoKKGRlZiByb290IChyZG9tL2NyZWF0ZVJvb3QgZWx0KSkKCigucmVuZGVyIHJvb3QgI2pzeCBbRm9vXSk%3D)
## Async/await

@@ -339,2 +346,3 @@

- [Wordle](https://squint-cljs.github.io/squint/?src=https://gist.githubusercontent.com/borkdude/9ed90af225a57ba6b8d9dd12e7c71eea/raw/02fd614cad0da4ac696511c438ebd9ed67d412b5/wordle.cljs)
- [React](https://squint-cljs.github.io/squint/?repl=true&src=KHJlcXVpcmUgJ1sicmVhY3QiIDphcyByZWFjdF0pCihyZXF1aXJlICdbInJlYWN0LWRvbSIgOmFzIHJkb21dKQoKKGRlZm9uY2UgY29tcG9uZW50LXN0YXRlIChhdG9tIDApKQoKKGRlZm4gQmFyIFt7OmtleXMgW2ZpcnN0bmFtZSBsYXN0bmFtZV0gOmFzIHByb3BzfV0KICAobGV0IFtbY2xpY2tzIHNldENsaWNrc10gKHJlYWN0L3VzZVN0YXRlIEBjb21wb25lbnQtc3RhdGUpXQogICAgI2pzeCBbOjw%2BCiAgICAgICAgICBbOnNwYW4gZmlyc3RuYW1lICIgIiBsYXN0bmFtZV0KICAgICAgICAgIFs6ZGl2ICJZb3UgY2xpY2tlZCAiIGNsaWNrcyAiIHRpbWVzISJdCiAgICAgICAgICBbOmJ1dHRvbiB7Om9uQ2xpY2sgIyhzZXRDbGlja3MgKHN3YXAhIGNvbXBvbmVudC1zdGF0ZSBpbmMpKX0KICAgICAgICAgICAiQ2xpY2sgbWUiXV0pKQoKKGRlZm4gRm9vIFtdCiAgI2pzeCBbOmRpdiAiSGVsbG8sICIKICAgICAgICAobGV0IFttIChhc3NvYyB7OmZpcnN0bmFtZSAiTWljaGllbCJ9IDpsYXN0bmFtZSAiQm9ya2VudCIpXQogICAgICAgICAgI2pzeCBbQmFyIHs6JiBtfV0pXSkKCihkZWZvbmNlIGVsdCAoZG90byAoanMvZG9jdW1lbnQuY3JlYXRlRWxlbWVudCAiZGl2IikKICAgICAgICAgICAgICAgKGpzL2RvY3VtZW50LmJvZHkucHJlcGVuZCkpKQoKKGRlZiByb290IChyZG9tL2NyZWF0ZVJvb3QgZWx0KSkKCigucmVuZGVyIHJvb3QgI2pzeCBbRm9vXSk%3D), [preact](https://squint-cljs.github.io/squint/?repl=true&jsx.import-source=https%3A%2F%2Fesm.sh%2Fpreact%4010.19.2&src=KHJlcXVpcmUgJ1siaHR0cHM6Ly9lc20uc2gvcHJlYWN0QDEwLjE5LjIiIDphcyByZWFjdF0pCihyZXF1aXJlICdbImh0dHBzOi8vZXNtLnNoL3ByZWFjdEAxMC4xOS4yL2hvb2tzIiA6YXMgaG9va3NdKQoKKGRlZm9uY2UgY29tcG9uZW50LXN0YXRlIChhdG9tIDApKQoKKGRlZm4gQmFyIFt7OmtleXMgW2ZpcnN0bmFtZSBsYXN0bmFtZV0gOmFzIHByb3BzfV0KICAobGV0IFtbY2xpY2tzIHNldENsaWNrc10gKGhvb2tzL3VzZVN0YXRlIEBjb21wb25lbnQtc3RhdGUpXQogICAgI2pzeCBbOjw%2BCiAgICAgICAgICBbOnNwYW4gZmlyc3RuYW1lICIgIiBsYXN0bmFtZV0KICAgICAgICAgIFs6ZGl2ICJZb3UgY2xpY2tlZCAiIGNsaWNrcyAiIHRpbWVzISJdCiAgICAgICAgICBbOmJ1dHRvbiB7Om9uQ2xpY2sgIyhzZXRDbGlja3MgKHN3YXAhIGNvbXBvbmVudC1zdGF0ZSBpbmMpKX0KICAgICAgICAgICAiQ2xpY2sgbWUiXV0pKQoKKGRlZm4gRm9vIFtdCiAgI2pzeCBbOmRpdiAiSGVsbG8sICIKICAgICAgICAobGV0IFttIChhc3NvYyB7OmZpcnN0bmFtZSAiTWljaGllbCJ9IDpsYXN0bmFtZSAiQm9ya2VudCIpXQogICAgICAgICAgI2pzeCBbQmFyIHs6JiBtfV0pXSkKCihkZWZvbmNlIGVsdCAoZG90byAoanMvZG9jdW1lbnQuY3JlYXRlRWxlbWVudCAiZGl2IikKICAgICAgICAgICAgICAgKGpzL2RvY3VtZW50LmJvZHkucHJlcGVuZCkpKQoKKHJlYWN0L3JlbmRlciAjanN4IFtGb29dIGVsdCk%3D)
- [Immutable-js](https://squint-cljs.github.io/squint/?repl=true&src=KHJlcXVpcmUKICAnWyJodHRwczovL3d3dy51bnBrZy5jb20vaW1tdXRhYmxlQDQuMy40L2Rpc3QvaW1tdXRhYmxlLmVzLmpzIgogICAgOmFzIGkKICAgIDpyZWZlciBbU2V0IExpc3RdXSkKCihzdHIgKFNldC9vZgogICAgICAgKExpc3Qvb2YgMSwyLDMpCiAgICAgICAoTGlzdC9vZiAxLDIsMykpKQ%3D%3D)

@@ -344,2 +352,3 @@ - [Loading a UMD module](https://squint-cljs.github.io/squint/?repl=true&src=KGRlZm4gXjphc3luYyBqcy1yZXF1aXJlIFt1cmwgbW9kdWxlXQogIChsZXQgW21vZHVsZSAob3IgbW9kdWxlIHs6ZXhwb3J0cyB7fX0pCiAgICAgICAgcmVzcCAoanMtYXdhaXQgKGpzL2ZldGNoIHVybCkpCiAgICAgICAgc2NyaXB0IChqcy1hd2FpdCAoLnRleHQgcmVzcCkpCiAgICAgICAgZnVuYyAoanMvRnVuY3Rpb24gIm1vZHVsZSIgImV4cG9ydHMiIHNjcmlwdCldCiAgICAoLmNhbGwgZnVuYyBtb2R1bGUgbW9kdWxlICguLWV4cG9ydHMgbW9kdWxlKSkKICAgICguLWV4cG9ydHMgbW9kdWxlKSkpCgooZGVmIGVxdWFsIChqcy1hd2FpdCAoanMtcmVxdWlyZSAiaHR0cHM6Ly91bnBrZy5jb20vZmFzdC1kZWVwLWVxdWFsQDMuMS4zL2luZGV4LmpzIikpKQoKKGVxdWFsIFsxIDIgM10gWzEgMiAzXSk%3D)

- [Three-js](https://squint-cljs.github.io/squint/examples/threejs/playground.html?repl=true)
- [Vue.js](https://squint-cljs.github.io/squint/?repl=true&src=KHJlcXVpcmUgJ1siaHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L25wbS92dWVAMy4zLjEwL2Rpc3QvdnVlLmVzbS1icm93c2VyLmpzIiA6YXMgdnVlXSkKKGRlZm9uY2UgZWx0CiAgKGRvdG8gKGpzL2RvY3VtZW50LmNyZWF0ZUVsZW1lbnQgImRpdiIpCiAgICAoanMvZG9jdW1lbnQuYm9keS5wcmVwZW5kKQogICAgKHNldCEgLWlubmVySFRNTCAiPGRpdiBpZD1cImFwcFwiPgogIDxidXR0b24gQGNsaWNrPVwiY291bnQrK1wiPgogICAgQ291bnQgaXM6IHt7IGNvdW50IH19CiAgPC9idXR0b24%2BCjwvZGl2PiIpKSkKCihkZWYgYXBwICh2dWUvY3JlYXRlQXBwCiAgICAgICAgICAgezpzZXR1cCAoZm4gW10KICAgICAgICAgICAgICAgICAgICAgezpjb3VudCAodnVlL3JlZiAwKX0pfSkpCgooLm1vdW50IGFwcCAiI2FwcCIp)

@@ -346,0 +355,0 @@ License

@@ -95,3 +95,5 @@ /*eslint no-unused-vars: ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_"}]*/

case MAP_TYPE:
return new Map(o.entries());
return new Map(o);
case SET_TYPE:
return new Set(o);
case ARRAY_TYPE:

@@ -1974,3 +1976,3 @@ return [...o];

export function zipmap(keys, vals) {
let res = {};
const res = {};
const keyIterator = iterable(keys)[Symbol.iterator]();

@@ -1988,1 +1990,8 @@ const valIterator = iterable(vals)[Symbol.iterator]();

}
export function not_empty(x) {
const isSeq = seq(x);
if (isSeq) {
return x;
} else return null;
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display