squint-cljs
Advanced tools
Comparing version 0.4.71 to 0.4.72
@@ -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 hga=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.Au.l(hga,$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,[iga,a],null));},Z9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:Y9(a)},jga=function(a){var b=JSON.parse(a);return $APP.cF(b)?b:Y9(a)},kga= | ||
function(a){var b=JSON.parse(a);return $APP.dF(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)},lga=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,[mga,a,nga,c],null),d);},oga=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 jga;case "double":return kga;case "number":return $9;case "symbol":return $APP.Ei;case "keyword":return b$;case "string":return $APP.se;case "edn":return $APP.QF;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.dq.g($APP.Ee, | ||
c):c:null},f$=function(a,b,c,d){return $APP.Ko.g(b,c)?(c=$APP.hF(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},pga=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Sd(d):d)?oga(e,d,f):c$(e);return $APP.r(c)?$APP.Pm.A(a,b,c,d):$APP.zi.j(a,b,d)},qga=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.wD);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.wD,$APP.dq.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.iF(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.lu.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 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); | ||
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.mw,d,t$,l,u$,a,v$,c,w$,f],null)},uga=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([qga(d)])):b,f=g$.h(e),k=function(){var vb=h$.h(e);return $APP.r(vb)?vb:$APP.Kq.h(e)}(),l=rga.h(e),m=$APP.wD.h(e),g=j$.h(e),p=k$.h(e),q=function(){var vb=A$.h(e);return $APP.r(vb)?vb:sga.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=tga.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$),ia=$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$,ia],null)}(),pa=$APP.jf(ma),fa=$APP.fe.g(pa,m$),E=$APP.fe.g(pa,o$),B=$APP.Ko.g(fa,ia)?new $APP.J(null,2,5,$APP.N,[null,$APP.R.g(fa,ia)],null): | ||
new $APP.J(null,2,5,$APP.N,[ca,ia],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,Ke=$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,Ke,Xb,vi,Hc),Ih=$APP.jf(wl),xl=$APP.fe.g(Ih,t$),Jh=$APP.fe.g(Ih, | ||
u$),yl=$APP.fe.g(Ih,v$),Qf=$APP.fe.g(Ih,$APP.mw),jk=$APP.fe.g(Ih,w$);if($APP.r(function(){var Me=xl;return $APP.r(Me)?Me: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 Me=vb;return zl?$APP.fo.A(Me,$APP.nu,new $APP.J(null,2,5,$APP.N,[z$,m$],null),$APP.mg(zl)):Me}(),Xb,Hc],null)}var lk=Xc?$APP.fi.g(Pf,2):$APP.Wj(Pf,/^(:|-|)/,""),xf=Xc?$APP.Hq.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,Ke=Qf,gd=$APP.He(Be,$APP.cd(gd)),vb=Hc,Hc=null;else{var Ab=$APP.z(gd),Le=$APP.y(Ab),Yv=x$(Le,Qf,Xb,vi,Hc);if($APP.r(function(){var Me=t$.h(Yv);return $APP.r(Me)?Me:$APP.Rd(Ab)}()))if($APP.r(Jh)){var Zv=$APP.Xh(Dc);Hc=$APP.wr.l(function(){return function(Me){return new $APP.J(null,2,5,$APP.N,[["-",$APP.t.h(Me)].join(""),!0],null)}}(vb,Xb,Hc,Ke,gd,Dg,Zv,Ab,Le,Yv,lk,xf,Qd,Be,Tb,Dc,Xc,kk,vl,Pf,ne,vi,wl,Ih, | ||
xl,Jh,yl,Qf,jk,gg,Sc,d,e,f,k,l,m,g,p,q,v,D,H,O,c,P,W,ca,ia,ma,pa,fa,E,B,ea,K),$APP.F([Zv]));gd=$APP.R.g(Hc,Ab);Ke=Qf;Hc=Xb=null}else gd=$APP.he(v,Dc)?null:$APP.YE($APP.t.h(Dc),":no-"),Ke=$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=Ke,Ke=Qf,vb=Xb,Xb=ne;else Xb=f$(vb,Xb,Hc,ne),ne=Dc,Ke=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),Ke=$APP.jf(Dg),Dg=$APP.fe.g(Ke,m$),Ke=$APP.fe.g(Ke,o$),$APP.Ko.g(gd,Dg))ne=Ke,Ke=Qf,gd=Dg,Dg=ne;else return new $APP.J(null,3,5,$APP.N,[$APP.fo.A(vb,$APP.nu,new $APP.J(null,2,5,$APP.N,[z$,m$],null),$APP.mg(gd)),Xb,Hc],null);else{try{var Yd=pga(vb,Xb,ne,lga(vi),Pf,vl)}catch(Me){c(new $APP.n(null,4,[D$,g$,B$,$APP.mF(Me),E$,Xb,F$,Pf],null)),Yd=vb}Hc=$APP.r(function(){var Me=$APP.A.g(s$,Qf);return Me?jk:Me}())?null:Xb;ne=$APP.r(function(){var Me= | ||
$APP.A.g(s$,Qf);return Me?jk:Me}())?null:Xb;Ke=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),ja=$APP.C.j(M,2,null),sa=e$(l,ha,$APP.fe.g(f,ha)),ta=function(){var vb=f$(da,ha,ja,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,Ba=0;;)if(Ba<ya){var Ga=b.ba(null, | ||
Ba);$APP.he(D,Ga)||c(new $APP.n(null,4,[D$,A$,B$,["Unknown option: ",$APP.t.h(Ga)].join(""),A$,D,E$,Ga],null));Ba+=1}else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Ba=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ba):(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),Ba=0;else break}if($APP.r(m))for(a=$APP.x(m),b=null,Ba=ya=0;;)if(Ba<ya)Ga=b.ba(null,Ba),$APP.r($APP.hF(xa,Ga))||c(new $APP.n(null,4,[D$,$APP.wD,B$,["Required option: ", | ||
$APP.t.h(Ga)].join(""),$APP.wD,m,E$,Ga],null)),Ba+=1;else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Ba=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ba):(a=$APP.y(b),$APP.r($APP.hF(xa,a))||c(new $APP.n(null,4,[D$,$APP.wD,B$,["Required option: ",$APP.t.h(a)].join(""),$APP.wD,m,E$,a],null)),a=$APP.z(b),b=null,ya=0),Ba=0;else break;if($APP.r(H))for(var Ca=$APP.x(H),za=null,Na=0,Sa=0;;)if(Sa<Na){var cb=za.ba(null,Sa),tb=$APP.C.j(cb,0,null),Bb=$APP.C.j(cb,1,null),Wb=function(){var vb=(vb=$APP.Vd(Bb))?G$.h(Bb):vb;return $APP.r(vb)? | ||
vb:Bb}(),oc=$APP.hF(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("")}}(Ca,za,Na,Sa,vb,Zc,Rb,lf,oc,Wb,cb,tb,Bb,d,e,f,k,l,m,g,p,q,v,D,H,O,c,P,W,ca,ia,ma,pa,fa,E,B,ea,K,M,da,ha,ja,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(Ca);if(sl){var ti=sl;if($APP.Zd(ti))ya=$APP.uc(ti),a=$APP.vc(ti),b=ya,ya=$APP.xd(ya),Ca=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.hF(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("")}}(Ca,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,ia,ma,pa,fa,E,B,ea,K,M,da,ha,ja,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))}}Ca=$APP.z(ti);za=null;Na=0}Sa=0}else break}return xa},vga=function(a,b){a=uga(a,b);b=z$.h($APP.Nd(a));return $APP.zi.j(b,$APP.SF,$APP.Nk.g(a,z$))},wga=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.oF($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.nF($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)))},yga=function(a,b,c){var d=function(){var f=$APP.sq;$APP.sq=$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.Mt(l,new $APP.n(null,3,[$APP.kp,$APP.jp,$APP.Iq,xga,$APP.Bt,!0],null),null)}finally{$APP.sq=f}}(),e=$APP.jf(d);d=$APP.fe.g(e,$APP.Lt);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.oF($APP.u(K$))}())){$APP.Jf(I$,!0);var c=$APP.ep($APP.u(K$)),d=function(){try{return $APP.gp(c,$APP.Ht)}catch(f){var e=f;if(-1!=$APP.mF(e).indexOf("EOF while reading"))return O$; | ||
N$(c);$APP.OF.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):yga(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)})},zga=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.PF.l($APP.F(["Client closed connection."]))})},R$=function(a,b,c){var d=$APP.IF.h(a), | ||
e=$APP.rF.h(a);b=esm_import$path.resolve(d,$APP.CF(b,e));c=$APP.tF(c);d=null==c?null:esm_import$path.resolve(d,$APP.CF(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.HF.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.CF(a,c));c=esm_import$path.dirname(b);$APP.r(esm_import$fs.existsSync(c))|| | ||
($APP.PF.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0}));$APP.PF.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.sF),d=$APP.Mk.l($APP.F([c,a])),e=$APP.rF.h(c),f=$APP.IF.g(c,".");a=$APP.Rd(b)?$APP.mg($APP.wr.l(T$,$APP.F([e]))):b;b=$APP.IF.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.PF.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])), | ||
$APP.PF(),$APP.PF.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.PF.l($APP.F(["[squint] Compiling CLJS file:",l])),$APP.JF($APP.zi.l(d,$APP.DF,l,$APP.F([$APP.yq, | ||
function(m){return R$(d,l,m)}])))):S$(l,f,e)}).then(function(m){m=$APP.jf(m);m=$APP.fe.g(m,$APP.GF);$APP.r(m)&&$APP.PF.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),Aga=new $APP.I(null,"show","show",-576705889),r$=new $APP.I(null,"boolean","boolean",-1919418404),mga=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),rga=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),Bga=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),nga=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),sga=new $APP.I(null,"closed","closed",-919675359),O$=new $APP.I("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),tga=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),iga=new $APP.I(null, | ||
"s","s",1705939918),C$=new $APP.I(null,"cmds-opts","cmds-opts",-390130362),Cga=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.sq),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var xga=$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.sq=$APP.sx;$APP.hq=$APP.rq=!0;var b=function(){var d=$APP.RF.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(zga);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.PF.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1; | ||
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): | ||
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= | ||
$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= | ||
$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? | ||
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; | ||
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.sq=$APP.sx;$APP.hq=$APP.rq=!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.wr.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])))},Dga=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.SF);var b=$APP.u($APP.sF),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.PF.l($APP.F(["[squint] Running",d]));return $APP.JF($APP.zi.l(c,$APP.DF,d,$APP.F([$APP.yq,function(e){return R$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.GF);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.SF);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.SF);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.sF),c=$APP.Mk.l($APP.F([b,a])),d=$APP.rF.h(b),e=$APP.IF.g(b,".");return shadow_esm_import("chokidar").catch(function(f){return console.error(f)}).then(function(f){f=f.watch;$APP.PF.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,ia,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,ia,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,ia,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,ia,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.SF);a=$APP.fD.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.PF.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.dt.h(c))?$APP.Wj("(do %s\n)","%s",a):a;a=$APP.XE.g(a,$APP.zi.l(c,$APP.dt,$APP.dt.h(c),$APP.F([$APP.Iq, | ||
$APP.Si.h(new $APP.n(null,1,[$APP.po,$APP.sx],null)),$APP.kp,$APP.r($APP.dt.h(c))?$APP.jp:$APP.jq,$APP.Bt,$APP.dt.h(c)])));a=$APP.r($APP.dt.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(Aga.h(c))&&$APP.PF.l($APP.F([a]));if(!1===Bga.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");return($APP.r($APP.dt.h(c))?Promise.resolve(eval(a)): | ||
shadow_esm_import(e)).then(function(f){return $APP.r($APP.dt.h(c))?$APP.OF.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.PF.l($APP.F(["Squint v0.4.71\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.Kq,new $APP.n(null,1,[Cga,U$],null),g$,new $APP.n(null,4,[$APP.Bt,r$,$APP.Lq,r$,$APP.IF,$APP.jl,$APP.dt,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=wga(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=vga(k,X9(a,$APP.F([f])));k=$APP.jf(f);var p=$APP.fe.g(k, | ||
$APP.SF);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.SF,p,$APP.Yo,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,Dga)})(); | ||
$$.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())? | ||
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)})(); |
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 ZE,$E,aF,pF,qF,AF,BF,KF,LF,uF,zF,FF;$APP.YE=function(a,b){return $APP.qa(a,b)};ZE=function(a,b){a.sort(b||$APP.Da)};$E=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.Da;ZE(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};aF=function(){}; | ||
$APP.bF=function(a){return null!=a?a.D&512||$APP.Oc===a.Ce?!0:a.D?!1:$APP.db($APP.yb,a):$APP.db($APP.yb,a)};$APP.cF=function(a){return $APP.ee(a)||!1};$APP.dF=function(a){return"number"===typeof a};$APP.eF=function(){this.C=[]};$APP.fF=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.gF=function(a){$APP.li("\n");return $APP.fe.g(a,$APP.Ha),null}; | ||
$APP.hF=function(a,b){return(null!=a?$APP.Oc===a.Hc||(a.wd?0:$APP.db(aF,a)):$APP.db(aF,a))?$APP.Db(a,b):null!=a&&$APP.bF(a)&&$APP.he(a,b)?new $APP.Kg(b,$APP.fe.g(a,b),null):null};$APP.iF=function(a,b){return new $APP.J(null,2,5,$APP.N,[$APP.Dr.g(a,b),$APP.Er.g(a,b)],null)};$APP.jF=function(a,b){this.f=a;this.value=b;this.D=2147516416;this.M=1};$APP.kF=function(a){return Math.floor(Math.random()*a)}; | ||
$APP.lF=function(){function a(){return $APP.kF(16).toString(16)}var b=(8|3&$APP.kF(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.mF=function(a){return a instanceof Error?a.message:null};$APP.nF=function(a){return $APP.Hq.g(a,/\n|\r\n/)};$APP.oF=function(a){return $APP.ua(null==a?"":String(a))};pF=function(a,b){return $APP.r($APP.r(b)?$APP.Ko.g(b,""):b)?$APP.Am(a,$APP.Gk(b)):null}; | ||
qF=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.tF=function(a){var b=$APP.Wj($APP.Wj($APP.t.h(a),"-","_"),".","/");return $APP.Ef(function(c){return qF(c,b)},$APP.rF.g($APP.u($APP.sF),new $APP.J(null,2,5,$APP.N,[".","src"],null)))}; | ||
AF=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Iq);a=$APP.gp($APP.ep(a),$APP.Ht);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(uF,$APP.y(l))?new $APP.J(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.vF.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.wF.h($APP.u($APP.xF)); | ||
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.Dq),v=$APP.fe.g(g,$APP.Eq);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.AD,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.yF],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, | ||
zF,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.nu(H,new $APP.J(null,2,5,$APP.N,[$APP.ct,p],null),D);H=$APP.r(v)?$APP.nu(H,new $APP.J(null,3,5,$APP.N,[d,$APP.Kq,v],null),p):H;return $APP.r(q)?$APP.nu(H,new $APP.J(null,2,5,$APP.N,[d,$APP.Jq], | ||
null),$APP.Yh(q,$APP.ju.h(p))):H})})})},Promise.resolve(null),e)}):null}return null};BF=function(a,b){return Promise.resolve(AF(a,b)).then(function(){return $APP.Mt(a,b,null)})}; | ||
$APP.CF=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.JF=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.DF),c=$APP.fe.g(a,FF),d=$APP.fe.g(a,$APP.GF),e=$APP.fe.g(a,$APP.HF),f=$APP.fe.j(a,$APP.IF,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return BF(c,$APP.zi.j(a,$APP.Iq,$APP.Si.h(new $APP.n(null,1,[$APP.po,$APP.sx],null)))).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.Lt),m=$APP.fe.g(k,$APP.Bp),g=$APP.rF.g($APP.u($APP.sF),new $APP.J(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?g=d:(g=$APP.CF(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.IF,f,$APP.GF,p],null));esm_import$fs.writeFileSync(p,l,"utf-8");return $APP.zi.j(k,$APP.GF,p)})}; | ||
KF=function(a){return $APP.Ju.l(a,$APP.F([$APP.Ku,!0]))};LF=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.mu.g(KF,d);d=$APP.Gf.g(a,d);return d instanceof Promise?d.then($APP.Hu):$APP.Hu(d)}b.m=0;b.o=function(d){d=$APP.x(d);return c(d)};b.l=c;return b}()};$APP.eF.prototype.add=function(a){return this.C.push(a)}; | ||
$APP.eF.prototype.size=function(){return this.C.length};$APP.eF.prototype.clear=function(){return this.C=[]};$APP.eF.prototype.fd=function(){return 0===this.C.length};$APP.MF=function MF(a){switch(arguments.length){case 1:return MF.h(arguments[0]);case 2:return MF.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.MF.h=function(a){return $APP.MF.g($APP.ie,a)}; | ||
$APP.MF.g=function(a,b){if($APP.x(b)){var c=$APP.Ze.h?$APP.Ze.h(b):$APP.Ze.call(null,b);$E(c,$APP.fF(a));return $APP.Md($APP.x(c),$APP.Nd(b))}return $APP.bd};$APP.MF.m=2;$APP.NF=function NF(a){switch(arguments.length){case 2:return NF.g(arguments[0],arguments[1]);case 3:return NF.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.NF.g=function(a,b){return $APP.NF.j(a,$APP.ie,b)}; | ||
$APP.NF.j=function(a,b,c){return $APP.MF.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.fF(b);return f.g?f.g(d,e):f.call(null,d,e)},c)};$APP.NF.m=3;$APP.OF=function OF(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return OF.l(0<c.length?new $APP.Yc(c.slice(0),0,null):null)};$APP.OF.l=function(a){$APP.Di(a,$APP.Ra());return $APP.r($APP.Ta)?$APP.gF($APP.Ra()):null};$APP.OF.m=0;$APP.OF.o=function(a){return this.l($APP.x(a))}; | ||
$APP.PF=function PF(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return PF.l(0<c.length?new $APP.Yc(c.slice(0),0,null):null)};$APP.PF.l=function(a){$APP.Di(a,$APP.zi.j($APP.Ra(),$APP.Ia,!1));return $APP.r($APP.Ta)?$APP.gF($APP.Ra()):null};$APP.PF.m=0;$APP.PF.o=function(a){return this.l($APP.x(a))}; | ||
$APP.vF=function vF(a){switch(arguments.length){case 1:return vF.h(arguments[0]);case 2:return vF.g(arguments[0],arguments[1]);case 3:return vF.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.vF.h=function(a){return function(b){var c=new $APP.eF;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.vF.g=function(a,b){return $APP.vF.j(a,a,b)};$APP.vF.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.vF.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.vF.m=3;$APP.jF.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.jF.prototype.$c=function(){return $APP.Za(this.f)}; | ||
$APP.jF.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.pi(new $APP.n(null,2,[$APP.aC,null==this.f?$APP.Ov:$APP.Uz,$APP.Fu,this.value],null),b,c);return $APP.ic(b,"]")};$APP.QF=function QF(a){switch(arguments.length){case 1:return QF.h(arguments[0]);case 2:return QF.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.QF.h=function(a){return pF(new $APP.n(null,3,[$APP.ym,$APP.u($APP.hE),$APP.zm,$APP.u($APP.gE),$APP.el,null],null),a)};$APP.QF.g=function(a,b){return pF($APP.Pm.j($APP.Mk.l($APP.F([new $APP.n(null,1,[$APP.zm,$APP.u($APP.gE)],null),a])),$APP.ym,function(c){return $APP.Mk.l($APP.F([$APP.u($APP.hE),c]))}),b)};$APP.QF.m=2;$APP.RF=new $APP.I(null,"port","port",1534937262);$APP.yF=new $APP.I(null,"reload","reload",863702807);$APP.SF=new $APP.I(null,"opts","opts",155075701); | ||
$APP.IF=new $APP.I(null,"output-dir","output-dir",-290956991);uF=new $APP.I(null,"require-macros","require-macros",707947416);$APP.TF=new $APP.I(null,"message","message",-406056002);$APP.DF=new $APP.I(null,"in-file","in-file",-1682176692);$APP.UF=new $APP.I(null,"id","id",-1388402092);zF=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.rF=new $APP.I(null,"paths","paths",-1807389588);$APP.VF=new $APP.I(null,"eval","eval",-1103567905); | ||
$APP.wF=new $APP.I(null,"eval-form","eval-form",-1934118476);$APP.GF=new $APP.I(null,"out-file","out-file",-1187066405);FF=new $APP.I(null,"in-str","in-str",-1014658121);$APP.HF=new $APP.I(null,"extension","extension",1453374065);$APP.sF=new $APP.jF(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.QF.h(a)}else a=null;return a},null);var WF;$APP.xF=$APP.Si.h(null);WF=LF(BF);export const compileFile=LF($APP.JF);export const compileString=WF; | ||
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; |
@@ -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))},Gfa=function(a){return function(b,c){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.UF),e=$APP.fe.g(b,Ffa);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)}},Ifa=function(){var a= | ||
Hfa;return function(b,c){b=$APP.Pm.j(b,O9,$APP.ri);return a.g?a.g(b,c):a.call(null,b,c)}},Kfa=function(){var a=Jfa();return function(b,c){N9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},Lfa=function(a){return function(b,c){N9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},Jfa=function(){var a=Ifa();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.Ju.h(a.split("."))), | ||
"version-string",a)},Mfa=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]))},Ofa=function(a){a:{var b=$APP.sq;$APP.sq=$APP.u(R9);try{var c=$APP.Mt(a,new $APP.n(null,5,[$APP.kp,$APP.jp,$APP.Iq,Nfa,$APP.Bt,!0,$APP.dt,!0,$APP.ps,!0],null),null);break a}finally{$APP.sq=b}c=void 0}c=$APP.jf(c);a=$APP.fe.g(c,$APP.Lt);c=$APP.fe.g(c,$APP.S);a=$APP.Wj("(async function () {\n%s\n}) ()","%s",a);$APP.Jf(R9,c);return a},Ufa=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.S);a=$APP.fe.g(c,Pfa);$APP.fe.g(c,$APP.Wk);$APP.fe.g(c,Qfa); | ||
$APP.fe.g(c,Rfa);return Promise.resolve(a).then(Ofa).then(function(d){$APP.PF.l($APP.F(["About to eval:"]));$APP.PF.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(R9)),"value",Mfa(Sfa.h(c),Tfa.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.TF.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.sq)],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},Hfa=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)},Vfa=function(a){return function(b,c){return a.write(U9(c))}},Wfa=function(a,b){N9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=Kfa(),d=Gfa(Lfa(Vfa(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.Ku,!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.oF(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"]))})},Rfa=new $APP.I(null,"_line","_line",232847719),Tfa=new $APP.I("nrepl.middleware.print","options","nrepl.middleware.print/options",868480159),Ffa=new $APP.I(null,"session","session",1008279103),Xfa=new $APP.I(null,"lookup","lookup",1225356838),Yfa=new $APP.I(null,"load-file","load-file",-424586670),Qfa=new $APP.I(null,"_load-file?","_load-file?",-1198848711),O9=new $APP.I(null,"op","op",-1882987955),Zfa=new $APP.I(null,"describe","describe",1369790582),Pfa=new $APP.I(null, | ||
"code","code",1586293142),$fa=new $APP.I(null,"eldoc","eldoc",-1321421900),aga=new $APP.I(null,"log_level","log_level",-1756736313),Sfa=new $APP.I("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),bga=new $APP.I(null,"clone","clone",711747572),cga=new $APP.I(null,"close","close",1835149582),dga=new $APP.I(null,"info","info",-317069002),ega=new $APP.I(null,"host","host",-1558485167),fga=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.Ku),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))},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, | ||
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.NF.g($APP.y,a)))),"e"].join(""):null}};var R9=$APP.Si.h($APP.sq),Q9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.B9],null);$APP.Si.h(!1); | ||
var Nfa=$APP.Si.h($APP.hf),T9=$APP.vh([Xfa,cga,Yfa,$fa,bga,Zfa,dga,fga,$APP.VF],[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.lF()),"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.ju.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.OF.l($APP.F([$APP.S,c]));return Ufa($APP.zi.j(a,$APP.S,$APP.u(R9)),b)}]),gga=$APP.Si.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.RF.h(a);return $APP.r(e)?e:0}(),c=function(){var e=ega.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:aga.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Pk.g(Wfa,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.PF.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(gga,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.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)})}; |
@@ -1,1 +0,1 @@ | ||
var squint;(squint||={}).core=(()=>{var z=Object.defineProperty;var Jt=Object.getOwnPropertyDescriptor;var Dt=Object.getOwnPropertyNames;var Ut=Object.prototype.hasOwnProperty;var Xt=(t,e)=>{for(var n in e)z(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&&z(t,o,{get:()=>e[o],enumerable:!(r=Jt(e,o))||r.enumerable});return t};var Ht=t=>Zt(z({},"__esModule",{value:!0}),t);var Ar={};Xt(Ar,{Atom:()=>dt,Cons:()=>pt,IIterable:()=>q,IIterable__iterator:()=>st,LazySeq:()=>bn,NaN_QMARK_:()=>Zn,PROTOCOL_SENTINEL:()=>Ke,_:()=>ie,_GT_:()=>te,_GT__EQ_:()=>ee,_LT_:()=>ne,_LT__EQ_:()=>re,_PLUS_:()=>oe,_STAR_:()=>ue,_iterator:()=>T,aclone:()=>Bn,add_watch:()=>$n,alength:()=>Nn,apply:()=>$e,array_QMARK_:()=>vt,aset:()=>kn,assoc:()=>v,assoc_BANG_:()=>b,assoc_in:()=>et,assoc_in_BANG_:()=>ae,atom:()=>Ie,boolean$:()=>Sn,boolean_QMARK_:()=>ar,bounded_count:()=>lr,butlast:()=>gn,coll_QMARK_:()=>er,comp:()=>le,compare:()=>P,complement:()=>gt,concat:()=>Mt,conj:()=>nt,conj_BANG_:()=>O,cons:()=>_t,constantly:()=>ze,contains_QMARK_:()=>ot,count:()=>K,counted_QMARK_:()=>Wt,cycle:()=>nn,dec:()=>he,deref:()=>yt,disj:()=>pe,disj_BANG_:()=>rt,dissoc:()=>xe,dissoc_BANG_:()=>_e,distinct:()=>rn,doall:()=>Ln,dorun:()=>Gn,drop:()=>$,drop_last:()=>vn,drop_while:()=>Tt,empty:()=>Kt,empty_QMARK_:()=>hn,es6_iterator:()=>N,even_QMARK_:()=>bt,every_QMARK_:()=>kt,every_pred:()=>qn,ex_cause:()=>ur,ex_data:()=>rr,ex_info:()=>ir,ex_message:()=>or,false_QMARK_:()=>Qn,ffirst:()=>ye,filter:()=>V,filterv:()=>ge,find:()=>pr,first:()=>E,fn_QMARK_:()=>Xn,fnil:()=>U,frequencies:()=>An,get:()=>h,get_in:()=>Nt,group_by:()=>mn,identical_QMARK_:()=>He,identity:()=>Et,inc:()=>ut,int_QMARK_:()=>Ft,integer_QMARK_:()=>cr,interleave:()=>Rt,interpose:()=>Fe,into:()=>It,into_array:()=>Pt,iterable:()=>c,iterate:()=>Vn,js_keys:()=>Hn,js_obj:()=>Tn,juxt:()=>Wn,keep:()=>fn,keep_indexed:()=>Ee,key:()=>St,keys:()=>qt,last:()=>we,lazy:()=>a,list:()=>Ce,list_QMARK_:()=>Ye,map:()=>M,map_QMARK_:()=>Cn,map_indexed:()=>Me,mapcat:()=>qe,mapv:()=>mt,max:()=>$t,max_key:()=>hr,merge:()=>Ue,merge_with:()=>Xe,meta:()=>fr,min:()=>Yn,min_key:()=>xr,mod:()=>_r,neg_QMARK_:()=>In,next:()=>Jn,nil_QMARK_:()=>Qe,not:()=>xt,not_any_QMARK_:()=>_n,not_every_QMARK_:()=>cn,nth:()=>ct,number_QMARK_:()=>Ct,object_QMARK_:()=>fe,odd_QMARK_:()=>Pe,parse_long:()=>yr,partial:()=>en,partition:()=>Je,partition_all:()=>We,partition_by:()=>De,pos_QMARK_:()=>On,pr_str:()=>ht,println:()=>it,prn:()=>je,quot:()=>mr,rand_int:()=>Bt,rand_nth:()=>dn,range:()=>Te,re_find:()=>ke,re_matches:()=>Ne,re_seq:()=>Yt,reduce:()=>Q,reduce_kv:()=>zn,reduced:()=>me,reduced_QMARK_:()=>Ae,regexp_QMARK_:()=>nr,remove:()=>ve,remove_watch:()=>Pn,repeat:()=>D,repeatedly:()=>wn,replace:()=>xn,reset_BANG_:()=>wt,rest:()=>at,reverse:()=>sn,satisfies_QMARK_:()=>ce,second:()=>de,select_keys:()=>Ve,seq:()=>k,seqable_QMARK_:()=>ft,set:()=>Be,shuffle:()=>pn,some:()=>Lt,some_QMARK_:()=>Kn,some_fn:()=>Fn,sort:()=>Gt,sort_by:()=>ln,split_at:()=>Mn,split_with:()=>En,str:()=>Re,string_QMARK_:()=>Z,subs:()=>zt,subvec:()=>Ge,swap_BANG_:()=>Oe,system_time:()=>Ze,t:()=>Un,take:()=>B,take_nth:()=>tn,take_while:()=>Ot,to_array:()=>Dn,transduce:()=>tt,true_QMARK_:()=>Rn,truth_:()=>m,update:()=>on,update_BANG_:()=>X,update_in:()=>un,val:()=>jt,vals:()=>tr,vec:()=>G,vector:()=>W,vector_QMARK_:()=>Le,warn_on_lazy_reusage_BANG_:()=>be,with_meta:()=>sr,zero_QMARK_:()=>jn});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 b(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 b(o,e,n,...r),o}const _=1,x=2,y=3,g=4,w=5,j=6;function I(t){switch(t){case _:return new Map;case x:return[];case y:return{};case g:return new L;case w:return new Set;case j: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 w;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 A=r[l];let d;f instanceof Map?d=f.get(A):d=f[A],d||(d=I(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=I(o),b(r,u,i)),r=i}return b(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 w: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 w: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 w: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 w: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 N=T;function k(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 we(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 me(t){return new R(t)}function Ae(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 be(){lt=!0}class F{constructor(e){this.gen=e,this.usages=0}[Symbol.iterator](){if(this.usages++,this.usages>=2&<)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=>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))m(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);m(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 w:case j:return[...n];case _:return Object.fromEntries(n);default:return n}})}function ht(...t){return t.map(Se).join(" ")}function je(...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 Ie(t){return new dt(t)}function yt(t){return t._deref()}function wt(t,e){t._reset_BANG_(e)}function Oe(t,e,...n){e=s(e);const r=e(yt(t),...n);return wt(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 Ne(t,e){const n=t.exec(e);return n&&e===n[0]?n.length===1?n[0]:n:null}function ke(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,e,n){return t.slice(e,n)}function W(...t){return t}function Le(t){return p(t)===x}function mt(...t){return[...M(...t)]}function G(t){return vt(t)?t:[...c(t)]}function Be(t){return new Set(c(t))}const At=Symbol("IApply__apply");function $e(t,...e){t=s(t);const n=e.slice(0,e.length-1),r=c(e[e.length-1]),o=t[At];return o?o(...n,r):t(...n,...r)}function bt(t){return t%2==0}function Pe(t){return!bt(t)}function gt(t){return t=s(t),(...e)=>xt(t(...e))}function ze(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[At]=t=>J(t);function qe(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=>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 Fe(t,e){return $(1,Rt(D(t),e))}function Ve(t,e){const n=p(t),r=I(n)||{};for(const o of e){const u=h(t,o);u!=null&&b(r,o,u)}return r}function We(t,...e){let n=t,r=e[0];return e.length===2&&([n,r]=e),Qt(t,n,[],r,!0)}function Je(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 De(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 A=l.value,d=t(A);u==d?i.push(A):(yield i,f.push(A),i=f,u=d,f=[])}})}function Kt(t){const e=p(t);if(e!=null)return I(e);throw new Error(`Can't create empty of ${typeof t}`)}function Ue(...t){const e=t[0];let n;return e==null?n={}:n=It(Kt(e),e),O(n,...t.slice(1))}function St(t){return t[0]}function jt(t){return t[1]}function Xe(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=jt(i);return ot(u,f)?v(u,f,t(h(u,f),l)):v(u,f,l)};return Q((u,i)=>Q(r,u||{},k(i)),e)}else return null}function Ze(){return performance.now()}function It(...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 He(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(m(t(n)))yield n;else return})}function tn(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 en(t,...e){return t=s(t),function(...n){return t(...e,...n)}}function nn(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(!m(t(o))){yield o;break}}yield*n})}function rn(t){return a(function*(){const e=new Set;for(const n of c(t))e.has(n)||(yield n),e.add(n)})}function on(t,e,n,...r){return n=s(n),v(t,e,n(h(t,e),...r))}function Nt(t,e,n){let r=t;for(const o of e)r=h(r,o);return r===void 0?n:r}function un(t,e,n,...r){return n=s(n),et(t,e,n(Nt(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 kt(t,e){t=s(t);for(const n of c(e))if(!t(n))return!1;return!0}function cn(t,e){return!kt(t,e)}function fn(t,e){return t=s(t),a(function*(){for(const n of c(e)){const r=t(n);m(r)&&(yield r)}})}function sn(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||P)}function an(t){return t===P?t:(e,n)=>{const r=t(e,n);return Ct(r)?r:r?-1:t(n,e)?1:0}}function ln(t,e,n){return n===void 0&&(n=e,e=P),t=s(t),e=s(e),Gt((r,o)=>{const u=an(e),i=t(r),f=t(o);return u(i,f)},n)}function pn(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(m(r))return r}}function _n(t,e){return t=s(t),!Lt(t,e)}function xn(t,e){return(Array.isArray(e)?mt:M)(r=>{const o=t[r];return o!==void 0?o:r},e)}function hn(t){return!k(t)}function Bt(t){return Math.floor(Math.random()*t)}function dn(t){const e=Bt(K(t));return ct(t,e)}function yn(t){return a(function*(){for(;;)yield t()})}function wn(t,e){e===void 0&&(e=t,t=void 0);const n=yn(e);return t?B(t,n):n}function X(t,e,n,...r){const o=h(t,e);return b(t,e,n(o,...r))}function mn(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 bn{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 gn(t){const e=[...c(t)];return e.pop(),e.length>0?e:null}function vn(...t){const[e,n]=t.length>1?t:[1,t[0]];return M((r,o)=>r,n,$(e,n))}function Mn(t,e){return[B(t,e),$(t,e)]}function En(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 Rn(t){return t===!0}function Qn(t){return t===!1}function Kn(t){return t!=null}function Sn(t){return!!t}function jn(t){return t===0}function In(t){return t<0}function On(t){return t>0}function Tn(...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 kn(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 Gn(t){for(const e of c(t));return null}function Ln(t){return G(t)}function Bn(t){return[...t]}function $n(t,e,n){return t._add_watch(e,n)}function Pn(t,e){return t._remove_watch(e)}function zn(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 qn(...t){return(...e)=>{for(const n of t)for(const r of e)if(!n(r))return!1;return!0}}function Fn(...t){return(...e)=>{for(const n of t)for(const r of e){const o=n(r);if(o)return o}}}function Pt(t,e){return G(e||t)}function Vn(t,e){var n=e;return a(function*(){for(;;)yield n,n=t(n)})}function Wn(...t){return t=t.map(s),(...e)=>{const n=[];for(const r of t)n.push(r(...e));return n}}function Jn(t){if(Array.isArray(t)){const e=t.slice(1);return e.length>0?e:null}else return k(at(t))}function P(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 Dn(t){return Pt(t)}function m(t){return t!=null&&t!==!1}const Un=m;function zt(t,e,n){return t.substring(e,n)}function Xn(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,zt(e,u)))}))}}function Zn(t){return Number.isNaN(t)}function Ct(t){return typeof t=="number"}function qt(t){return t?Object.keys(t):null}function Hn(t){return qt(t)}function tr(t){return t?Object.values(t):null}function Z(t){return typeof t=="string"}function er(t){return p(t)!=null}function nr(t){return t instanceof RegExp}class H extends Error{constructor(e,n,r){super(e),this._data=n,this._cause=r}}function rr(t){return t instanceof H?t._data:null}function or(t){return t instanceof Error?t.message:null}function ur(t){return t instanceof H?t._cause:null}function ir(t,e,n){return new H(t,e,n)}function Ft(t){return Number.isInteger(t)}const cr=Ft,Vt=Symbol("meta");function fr(t){return t instanceof Object?t[Vt]:null}function sr(t,e){const n=Y(t);return n[Vt]=e,n}function ar(t){return t===!0||t===!1}function Wt(t){switch(p(t)){case w:return!0}return!1}function lr(t,e){return Wt(e)?K(e):K(B(t,e))}function pr(t,e){const n=h(t,e);if(n!==void 0)return[e,n]}function _r(t,e){return(t%e+e)%e}function xr(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 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){throw new Error(`Expected string, got: ${typeof t}`)}function yr(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 dr(t)}function wr(t){return t>=0?Math.floor(t):Math.ceil(t)}function mr(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)}}}return Ht(Ar);})(); | ||
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&<)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);})(); |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "0.4.71", | ||
"version": "0.4.72", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "core.js", |
@@ -341,2 +341,3 @@ ## Squint | ||
- [Vega-lite](https://squint-cljs.github.io/squint/?repl=true&src=KGRlZm4gXjphc3luYyBldmFsLXNjcmlwdCBbdXJsXQogIChsZXQgW3Jlc3AgKGpzLWF3YWl0IChqcy9mZXRjaCB1cmwpKQogICAgICAgIHNjcmlwdCAoanMtYXdhaXQgKC50ZXh0IHJlc3ApKV0KICAgIChqcy9ldmFsIHNjcmlwdCkpKQoKKGpzLWF3YWl0IChldmFsLXNjcmlwdCAiaHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L25wbS92ZWdhQDUiKSkKKGpzLWF3YWl0IChldmFsLXNjcmlwdCAiaHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L25wbS92ZWdhLWxpdGVANCIpKQooanMtYXdhaXQgKGV2YWwtc2NyaXB0ICJodHRwczovL2Nkbi5qc2RlbGl2ci5uZXQvbnBtL3ZlZ2EtZW1iZWRANiIpKQoKKGRlZm9uY2UgY3JlYXRlLWRpdgogIChkbwogICAgKGpzL2RvY3VtZW50LmJvZHkucHJlcGVuZCAoZG90byAoanMvZG9jdW1lbnQuY3JlYXRlRWxlbWVudCAiZGl2IikKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoc2V0ISAtaWQgInZpcyIpKSkKICAgIHRydWUpKQoKKGRlZiBzcGVjIHs6JHNjaGVtYSAiaHR0cHM6Ly92ZWdhLmdpdGh1Yi5pby9zY2hlbWEvdmVnYS1saXRlL3Y0LjAuanNvbiIKICAgICAgICAgICA6ZGVzY3JpcHRpb24gIkEgc2ltcGxlIGJhciBjaGFydCB3aXRoIGVtYmVkZGVkIGRhdGEuIgogICAgICAgICAgIDpkYXRhIHs6dmFsdWVzIFt7OmEgIkEiLDpiIDI4fSx7OmEgIkIiLDpiIDU1fSx7OmEgIkMiLDpiIDQzfQogICAgICAgICAgICAgICAgICAgICAgICAgICB7OmEgIkQiLDpiIDkxfSx7OmEgIkUiLDpiIDgxfSx7OmEgIkYiLDpiIDUzfQogICAgICAgICAgICAgICAgICAgICAgICAgICB7OmEgIkciLDpiIDE5fSx7OmEgIkgiLDpiIDg3fSx7OmEgIkkiLDpiIDUyfV19CiAgICAgICAgICAgOm1hcmsgOmJhcgogICAgICAgICAgIDplbmNvZGluZyB7OnggeyJmaWVsZCIgImEiLCJ0eXBlIiAib3JkaW5hbCJ9CiAgICAgICAgICAgICAgICAgICAgICA6eSB7ImZpZWxkIiAiYiIsInR5cGUiICJxdWFudGl0YXRpdmUifX19KQoKKGpzL3ZlZ2FFbWJlZCAiI3ZpcyIgc3BlYyk%3D) | ||
- [Three-js](https://squint-cljs.github.io/squint/examples/threejs/playground.html?repl=true) | ||
@@ -343,0 +344,0 @@ License |
@@ -41,3 +41,3 @@ /*eslint no-unused-vars: ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_"}]*/ | ||
export function _LT__EQ_(...xs) { | ||
return walkArray(xs, (x, y) => x <= y) | ||
return walkArray(xs, (x, y) => x <= y); | ||
} | ||
@@ -851,2 +851,18 @@ | ||
export function re_pattern(s) { | ||
if (s instanceof RegExp) { | ||
return s; | ||
} | ||
// Allow all flags available in JavaScript | ||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/RegExp#flags | ||
const flagMatches = s.match(/^\(\?([dgimsuvy]*)\)/); | ||
if (flagMatches) { | ||
return new RegExp(s.slice(flagMatches[0].length), flagMatches[1]); | ||
} | ||
return new RegExp(s); | ||
} | ||
export function subvec(arr, start, end) { | ||
@@ -1957,1 +1973,16 @@ return arr.slice(start, end); | ||
} | ||
export function zipmap(keys, vals) { | ||
let res = {}; | ||
const keyIterator = iterable(keys)[Symbol.iterator](); | ||
const valIterator = iterable(vals)[Symbol.iterator](); | ||
let nextKey, nextVal; | ||
for (;;) { | ||
nextKey = keyIterator.next(); | ||
if (nextKey.done) break; | ||
nextVal = valIterator.next(); | ||
if (nextVal.done) break; | ||
res[nextKey.value] = nextVal.value; | ||
} | ||
return res; | ||
} |
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
1318508
7303
347