squint-cljs
Advanced tools
Comparing version 0.8.114 to 0.8.115
@@ -11,9 +11,9 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
c):c:null},c$=function(a,b,c,d){return $APP.Qh.g(b,c)?(c=$APP.gH(a,b),$APP.r(c)?($APP.B.j(c,0,null),c=$APP.B.j(c,1,null),$APP.Rh.j(a,b,$APP.r(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.Rh.j(a,b,$APP.r(d)?d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},Sha=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Rd(d):d)?Rha(e,d,f):$9(e);return $APP.r(c)?$APP.Tm.A(a,b,c,d):$APP.Rh.j(a,b,d)},Tha=function(a){return $APP.ne.j(function(b,c){var d=$APP.B.j(c,0,null);c=$APP.B.j(c,1,null);var e=$APP.jf(c),f=$APP.fe.g(e, | ||
d$),k=$APP.fe.g(e,e$);c=$APP.fe.g(e,$APP.Dm);var l=$APP.fe.g(e,$APP.eF);e=$APP.fe.g(e,f$);b=$APP.r(f)?$APP.Tm.J(b,d$,$APP.Rh,d,f):b;b=$APP.r(k)?$APP.Tm.j(b,e$,function(m){if($APP.he(m,k))throw $APP.cl.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,[e$,k],null));return $APP.Rh.j(m,k,d)}):b;b=$APP.r(l)?$APP.Tm.j(b,$APP.eF,$APP.$q.g(function(m){return $APP.Ee.g(m,d)},$APP.Vh)):b;b=$APP.r(e)?$APP.Tm.J(b,f$,$APP.Rh,d,e):b;return $APP.r(c)? | ||
d$),k=$APP.fe.g(e,e$);c=$APP.fe.g(e,$APP.Dm);var l=$APP.fe.g(e,$APP.gF);e=$APP.fe.g(e,f$);b=$APP.r(f)?$APP.Tm.J(b,d$,$APP.Rh,d,f):b;b=$APP.r(k)?$APP.Tm.j(b,e$,function(m){if($APP.he(m,k))throw $APP.cl.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,[e$,k],null));return $APP.Rh.j(m,k,d)}):b;b=$APP.r(l)?$APP.Tm.j(b,$APP.gF,$APP.$q.g(function(m){return $APP.Ee.g(m,d)},$APP.Vh)):b;b=$APP.r(e)?$APP.Tm.J(b,f$,$APP.Rh,d,e):b;return $APP.r(c)? | ||
$APP.Tm.J(b,g$,$APP.Rh,d,c):b},$APP.hf,a)},k$=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,h$);b=$APP.hH(function(d){var e=$APP.r(c)?null:$APP.qa(d,":");return!($APP.r(e)?e:$APP.qa(d,"-"))},a);a=$APP.B.j(b,0,null);b=$APP.B.j(b,1,null);return new $APP.n(null,2,[i$,a,j$,b],null)},m$=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.Zu.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.B.j(b,0,null);b=$APP.B.j(b,1,null);return new $APP.n(null,2,[j$,a,l$,b],null)},u$=function(a,b,c,d,e){var f=Y9(a),k="string"===typeof a?$APP.B.j(a,1,null):null,l;if(l=$APP.A.g(f,"-")){try{var m=X9($APP.t.h(k))}catch(h){m=null}l=$APP.Za(m)}b=$APP.r(b)?b:l?n$:null;f=$APP.A.g(":",f);c=$APP.Qh.g(n$,b)&&f&&($APP.A.g(o$,d)||$APP.Za(c)||$APP.A.g(e,c));d=$APP.r(b)?b:c?p$:null;a=l?$APP.r(k)?$APP.Qh.g("-",k)&&2<$APP.xd(a):k:null;return new $APP.n(null, | ||
5,[$APP.kx,d,q$,l,r$,a,s$,c,t$,f],null)},Xha=function(a,b){function c(vb){vb=$APP.Qk.l($APP.F([new $APP.n(null,2,[v$,d,$APP.Xk,w$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=v$.h(b),e=$APP.r(d)?U9(b,$APP.F([Tha(d)])):b,f=d$.h(e),k=function(){var vb=e$.h(e);return $APP.r(vb)?vb:$APP.Mr.h(e)}(),l=Uha.h(e),m=$APP.eF.h(e),h=g$.h(e),p=h$.h(e),q=function(){var vb=x$.h(e);return $APP.r(vb)?vb:Vha.h(e)}(),v=$APP.Zh($APP.R.l($APP.Kh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Kh(f)]))), | ||
5,[$APP.jx,d,q$,l,r$,a,s$,c,t$,f],null)},Xha=function(a,b){function c(vb){vb=$APP.Qk.l($APP.F([new $APP.n(null,2,[v$,d,$APP.Xk,w$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=v$.h(b),e=$APP.r(d)?U9(b,$APP.F([Tha(d)])):b,f=d$.h(e),k=function(){var vb=e$.h(e);return $APP.r(vb)?vb:$APP.Mr.h(e)}(),l=Uha.h(e),m=$APP.gF.h(e),h=g$.h(e),p=h$.h(e),q=function(){var vb=x$.h(e);return $APP.r(vb)?vb:Vha.h(e)}(),v=$APP.Zh($APP.R.l($APP.Kh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Kh(f)]))), | ||
D=$APP.A.g(!0,q)?v:null==q?null:$APP.Zh(q),I=f$.h(e),O=function(){var vb=Wha.h(e);return $APP.r(vb)?vb:function(Zb){Zb=$APP.jf(Zb);var Jc=$APP.fe.g(Zb,y$);throw $APP.cl.g(Jc,Zb);}}(),P=k$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,i$),ha=$APP.fe.g(W,j$),oa=function(){var vb=l$.h(e);vb=$APP.r(vb)?vb:z$.h(e);return $APP.r(vb)?m$(ca,vb):new $APP.n(null,2,[l$,null,j$,ha],null)}(),pa=$APP.jf(oa),fa=$APP.fe.g(pa,j$),E=$APP.fe.g(pa,l$),C=$APP.Qh.g(fa,ha)?new $APP.J(null,2,5,$APP.N,[null,$APP.R.g(fa,ha)],null): | ||
new $APP.J(null,2,5,$APP.N,[ca,ha],null),ea=$APP.B.j(C,0,null),K=$APP.B.j(C,1,null),M=function(){for(var vb=$APP.hf,Zb=null,Jc=null,Ne=$APP.r(p)?n$:null,hd=$APP.x(K),Kg=E;;){if($APP.Za(hd))return new $APP.J(null,3,5,$APP.N,[vb,Zb,Jc],null);var og=$APP.y(hd),Uc=og instanceof $APP.H;if(Uc){Zb=c$(vb,Zb,Jc,null);var oe=og;hd=$APP.z(hd);vb=Zb;Zb=oe}else{var Cl=!0===og,Sf=$APP.t.h(og);oe=b$(l,Zb,$APP.fe.g(f,Zb));var xi=$APP.fe.g(f,Zb),Dl=u$(Sf,Ne,Zb,xi,Jc),Lh=$APP.jf(Dl),El=$APP.fe.g(Lh,q$),Mh=$APP.fe.g(Lh, | ||
r$),Fl=$APP.fe.g(Lh,s$),Tf=$APP.fe.g(Lh,$APP.kx),pk=$APP.fe.g(Lh,t$);if($APP.r(function(){var Pe=El;return $APP.r(Pe)?Pe:Fl}())){var Yc=$APP.qa(Sf,"--"),qk=Yc&&$APP.A.g("--",Sf);if(qk){var Gl=$APP.z(hd);return new $APP.J(null,3,5,$APP.N,[function(){var Pe=vb;return Gl?$APP.jo.A(Pe,$APP.av,new $APP.J(null,2,5,$APP.N,[w$,j$],null),$APP.lg(Gl)):Pe}(),Zb,Jc],null)}var rk=Yc?$APP.ji.g(Sf,2):$APP.Zj(Sf,/^(:|-|)/,""),Af=Yc?$APP.Ir.g(rk,/=/):new $APP.J(null,1,5,$APP.N,[rk],null),Sd=$APP.B.j(Af,0,null),Ce= | ||
r$),Fl=$APP.fe.g(Lh,s$),Tf=$APP.fe.g(Lh,$APP.jx),pk=$APP.fe.g(Lh,t$);if($APP.r(function(){var Pe=El;return $APP.r(Pe)?Pe:Fl}())){var Yc=$APP.qa(Sf,"--"),qk=Yc&&$APP.A.g("--",Sf);if(qk){var Gl=$APP.z(hd);return new $APP.J(null,3,5,$APP.N,[function(){var Pe=vb;return Gl?$APP.jo.A(Pe,$APP.av,new $APP.J(null,2,5,$APP.N,[w$,j$],null),$APP.lg(Gl)):Pe}(),Zb,Jc],null)}var rk=Yc?$APP.ji.g(Sf,2):$APP.Zj(Sf,/^(:|-|)/,""),Af=Yc?$APP.Ir.g(rk,/=/):new $APP.J(null,1,5,$APP.N,[rk],null),Sd=$APP.B.j(Af,0,null),Ce= | ||
$APP.B.j(Af,1,null),Tb=$APP.zi.h(Sd),Fc=$APP.fe.j(k,Tb,Tb);if($APP.r(Ce))Jc=c$(vb,Zb,Jc,oe),Zb=Fc,Ne=Tf,hd=$APP.He(Ce,$APP.cd(hd)),vb=Jc,Jc=null;else{var Ab=$APP.z(hd),Oe=$APP.y(Ab),tw=u$(Oe,Tf,Zb,xi,Jc);if($APP.r(function(){var Pe=q$.h(tw);return $APP.r(Pe)?Pe:$APP.Qd(Ab)}()))if($APP.r(Mh)){var uw=$APP.ai(Fc);Jc=$APP.Zp.l(function(){return function(Pe){return new $APP.J(null,2,5,$APP.N,[["-",$APP.t.h(Pe)].join(""),!0],null)}}(vb,Zb,Jc,Ne,hd,Kg,uw,Ab,Oe,tw,rk,Af,Sd,Ce,Tb,Fc,Yc,qk,Cl,Sf,oe,xi,Dl,Lh, | ||
@@ -23,7 +23,7 @@ El,Mh,Fl,Tf,pk,og,Uc,d,e,f,k,l,m,h,p,q,v,D,I,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K),$APP.F([uw]));hd=$APP.R.g(Jc,Ab);Ne=Tf;Jc=Zb=null}else hd=$APP.he(v,Fc)?null:$APP.XG($APP.t.h(Fc),":no-"),Ne=$APP.r(hd)?$APP.zi.h($APP.Zj($APP.t.h(Fc),":no-","")):Fc,hd=$APP.He($APP.Za(hd),Ab),Zb=c$(vb,Zb,Jc,oe),oe=Ne,Ne=Tf,vb=Zb,Zb=oe;else Zb=c$(vb,Zb,Jc,oe),oe=Fc,Ne=Tf,hd=Ab,vb=Zb,Zb=oe}}else if(qk=$APP.A.g(o$,xi)&&$APP.Qh.g(Sf,"true")&&$APP.Qh.g(Sf,"false")||$APP.A.g(Jc,Zb)&&$APP.Za(oe))if(Kg=$APP.r(hd)?$APP.r(Kg)?m$(hd, | ||
$APP.A.g(p$,Tf);return Pe?pk:Pe}())?null:Zb;Ne=Tf;hd=$APP.z(hd);vb=Yd;Zb=Jc;Jc=oe}}}}(),da=$APP.B.j(M,0,null),ia=$APP.B.j(M,1,null),ja=$APP.B.j(M,2,null),sa=b$(l,ia,$APP.fe.g(f,ia)),ta=function(){var vb=c$(da,ia,ja,sa);return $APP.x(ea)?$APP.jo.A(vb,$APP.Nk,new $APP.J(null,2,5,$APP.N,[w$,j$],null),function(Zb){return $APP.Rg.g($APP.lg(ea),Zb)}):vb}(),wa=$APP.r(h)?$APP.Md($APP.Qk.l($APP.F([h,ta])),$APP.Nd(ta)):ta;if($APP.r(D)){a=$APP.x($APP.Kh(wa));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,[A$,x$,y$,["Unknown option: ",$APP.t.h(Ha)].join(""),x$,D,B$,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,[A$,x$,y$,["Unknown option: ",$APP.t.h(a)].join(""),x$,D,B$,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.gH(wa,Ha))||c(new $APP.n(null,4,[A$,$APP.eF,y$,["Required option: ", | ||
$APP.t.h(Ha)].join(""),$APP.eF,m,B$,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.gH(wa,a))||c(new $APP.n(null,4,[A$,$APP.eF,y$,["Required option: ",$APP.t.h(a)].join(""),$APP.eF,m,B$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break;if($APP.r(I))for(var Da=$APP.x(I),Aa=null,Oa=0,Ua=0;;)if(Ua<Oa){var db=Aa.ba(null,Ua),ub=$APP.B.j(db,0,null),Bb=$APP.B.j(db,1,null),Yb=function(){var vb=(vb=$APP.Vd(Bb))?D$.h(Bb):vb;return $APP.r(vb)? | ||
Ca);$APP.he(D,Ha)||c(new $APP.n(null,4,[A$,x$,y$,["Unknown option: ",$APP.t.h(Ha)].join(""),x$,D,B$,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,[A$,x$,y$,["Unknown option: ",$APP.t.h(a)].join(""),x$,D,B$,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.gH(wa,Ha))||c(new $APP.n(null,4,[A$,$APP.gF,y$,["Required option: ", | ||
$APP.t.h(Ha)].join(""),$APP.gF,m,B$,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.gH(wa,a))||c(new $APP.n(null,4,[A$,$APP.gF,y$,["Required option: ",$APP.t.h(a)].join(""),$APP.gF,m,B$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break;if($APP.r(I))for(var Da=$APP.x(I),Aa=null,Oa=0,Ua=0;;)if(Ua<Oa){var db=Aa.ba(null,Ua),ub=$APP.B.j(db,0,null),Bb=$APP.B.j(db,1,null),Yb=function(){var vb=(vb=$APP.Vd(Bb))?D$.h(Bb):vb;return $APP.r(vb)? | ||
vb:Bb}(),qc=$APP.gH(wa,ub);if($APP.r(qc)){var $c=qc,Sb=$APP.B.j($c,0,null),of=$APP.B.j($c,1,null);if(!$APP.r(Yb.h?Yb.h(of):Yb.call(null,of))){var lk=function(){var vb=E$.h(Bb);return $APP.r(vb)?vb:function(){return function(Zb){var Jc=$APP.jf(Zb);Zb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,$c,Sb,of,qc,Yb,db,ub,Bb,d,e,f,k,l,m,h,p,q,v,D,I,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null, | ||
5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,ub,C$,of],null);return lk.h?lk.h(vb):lk.call(null,vb)}(),f$,I,B$,ub,C$,of],null))}}Ua+=1}else{var zl=$APP.x(Da);if(zl){var vi=zl;if($APP.Zd(vi))ya=$APP.uc(vi),a=$APP.vc(vi),b=ya,ya=$APP.xd(ya),Da=a,Aa=b,Oa=ya;else{var mk=$APP.y(vi),nk=$APP.B.j(mk,0,null),rj=$APP.B.j(mk,1,null),ok=function(){var vb=(vb=$APP.Vd(rj))?D$.h(rj):vb;return $APP.r(vb)?vb:rj}(),Al=$APP.gH(wa,nk);if($APP.r(Al)){var Ic=Al,sj=$APP.B.j(Ic,0,null),wi=$APP.B.j(Ic,1,null);if(!$APP.r(ok.h? | ||
ok.h(wi):ok.call(null,wi))){var Bl=function(){var vb=E$.h(rj);return $APP.r(vb)?vb:function(){return function(Zb){var Jc=$APP.jf(Zb);Zb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,Ic,sj,wi,Al,ok,mk,nk,rj,vi,zl,d,e,f,k,l,m,h,p,q,v,D,I,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null,5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,nk,C$,wi],null);return Bl.h?Bl.h(vb):Bl.call(null,vb)}(), | ||
5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,ub,C$,of],null);return lk.h?lk.h(vb):lk.call(null,vb)}(),f$,I,B$,ub,C$,of],null))}}Ua+=1}else{var zl=$APP.x(Da);if(zl){var vi=zl;if($APP.Zd(vi))ya=$APP.uc(vi),a=$APP.vc(vi),b=ya,ya=$APP.xd(ya),Da=a,Aa=b,Oa=ya;else{var mk=$APP.y(vi),nk=$APP.B.j(mk,0,null),sj=$APP.B.j(mk,1,null),ok=function(){var vb=(vb=$APP.Vd(sj))?D$.h(sj):vb;return $APP.r(vb)?vb:sj}(),Al=$APP.gH(wa,nk);if($APP.r(Al)){var Ic=Al,tj=$APP.B.j(Ic,0,null),wi=$APP.B.j(Ic,1,null);if(!$APP.r(ok.h? | ||
ok.h(wi):ok.call(null,wi))){var Bl=function(){var vb=E$.h(sj);return $APP.r(vb)?vb:function(){return function(Zb){var Jc=$APP.jf(Zb);Zb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,Ic,tj,wi,Al,ok,mk,nk,sj,vi,zl,d,e,f,k,l,m,h,p,q,v,D,I,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null,5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,nk,C$,wi],null);return Bl.h?Bl.h(vb):Bl.call(null,vb)}(), | ||
f$,I,B$,nk,C$,wi],null))}}Da=$APP.z(vi);Aa=null;Oa=0}Ua=0}else break}return wa},Yha=function(a,b){a=Xha(a,b);b=w$.h($APP.Nd(a));return $APP.Rh.j(b,$APP.QH,$APP.Rk.g(a,w$))},Zha=function(a,b){var c=$APP.Of($APP.xd(a),b);b=$APP.B.j(c,0,null);c=$APP.B.j(c,1,null);return $APP.A.g(b,a)?c:null},J$=function(a,b){$APP.Jf(F$,!1);a.setPrompt([$APP.t.h($APP.u(G$)),"\x3d\x3e "].join(""));a.prompt();return $APP.gk($APP.u(H$))?null:I$.g?I$.g(b,a):I$.call(null,b,a)},K$=function(a){var b=$APP.Bk(a);a=$APP.Ck(a); | ||
@@ -36,20 +36,20 @@ var c=$APP.mH($APP.u(H$));b=$APP.Nf.g(b-1,c);c=$APP.x(b);b=$APP.y(c);c=$APP.z(c);a=$APP.r(b)?$APP.ji.g(b,a):null;$APP.Jf(H$,$APP.Jp.g("\n",$APP.He(a,c)))},$ha=function(a,b,c){var d=function(){var k=$APP.pr;$APP.pr=$APP.u(G$);try{a:{var l=$APP.La;$APP.La=!0;try{var m=$APP.Ri.l($APP.F([a]));break a}finally{$APP.La=l}m=void 0}return $APP.yu(m,new $APP.n(null,2,[$APP.Kp,$APP.Pp,$APP.ou,!0],null),$APP.u(L$))}finally{$APP.pr=k}}(),e=$APP.jf(d),f=$APP.fe.g(e,$APP.xu);d=$APP.fe.g(e,$APP.T);$APP.Jf(L$,e); | ||
d=$APP.Qk.l($APP.F([c,a])),e=$APP.pH.h(c),f=S$.h(c),k=$APP.GH.g(c,".");a=$APP.Qd(b)?$APP.lg($APP.Zp.l(T$,$APP.F([e]))):b;b=$APP.GH.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.NH.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.NH(),$APP.NH.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.ne.j(function(l,m){return Promise.resolve(l).then(function(){return $APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(m))?($APP.NH.l($APP.F(["[squint] Compiling CLJS file:",m])),$APP.HH($APP.Rh.l(d,$APP.CH,m,$APP.F([$APP.xr,function(h){return Q$(d,m,h)}])))):R$(f,m,k,e)}).then(function(h){h=$APP.jf(h);h=$APP.fe.g(h,$APP.EH);$APP.r(h)&&$APP.NH.l($APP.F(["[squint] Wrote file:",h]));return h})},null,a)},s$=new $APP.H(null,"kwd-opt","kwd-opt", | ||
1313309243),n$=new $APP.H(null,"hyphens","hyphens",2113533609),v$=new $APP.H(null,"spec","spec",347520401),d$=new $APP.H(null,"coerce","coerce",1917884504),x$=new $APP.H(null,"restrict","restrict",-1071101511),p$=new $APP.H(null,"keywords","keywords",1526959054),N$=new $APP.H("squint.repl.node","continue","squint.repl.node/continue",1558138730),y$=new $APP.H(null,"msg","msg",-1386103444),bia=new $APP.H(null,"show","show",-576705889),o$=new $APP.H(null,"boolean","boolean",-1919418404),Pha=new $APP.H(null, | ||
"input","input",556931961),W$=new $APP.H(null,"rest-cmds","rest-cmds",-423198324),w$=new $APP.H("org.babashka","cli","org.babashka/cli",1162430315),l$=new $APP.H(null,"args-\x3eopts","args-\x3eopts",964391046),e$=new $APP.H(null,"alias","alias",-2039751630),Uha=new $APP.H(null,"collect","collect",-284321549),f$=new $APP.H(null,"validate","validate",-201300827),r$=new $APP.H(null,"composite-opt","composite-opt",-2021292928),cia=new $APP.H(null,"run","run",-1821166653),q$=new $APP.H(null,"hyphen-opt", | ||
"hyphen-opt",1836909464),U$=new $APP.H(null,"help","help",-439233446),A$=new $APP.H(null,"cause","cause",231901252),t$=new $APP.H(null,"fst-colon","fst-colon",1618567071),Qha=new $APP.H(null,"coerce-fn","coerce-fn",-821146515),j$=new $APP.H(null,"args","args",1315556576),h$=new $APP.H(null,"no-keyword-opts","no-keyword-opts",761286018),C$=new $APP.H(null,"value","value",305978217),S$=new $APP.H(null,"copy-resources","copy-resources",-1367155536),D$=new $APP.H(null,"pred","pred",1927423397),Vha=new $APP.H(null, | ||
"closed","closed",-919675359),M$=new $APP.H("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),Wha=new $APP.H(null,"error-fn","error-fn",-171437615),B$=new $APP.H(null,"option","option",65132272),g$=new $APP.H(null,"exec-args","exec-args",-1860766354),E$=new $APP.H(null,"ex-msg","ex-msg",-1111774387),Lha=new $APP.H(null,"s","s",1705939918),z$=new $APP.H(null,"cmds-opts","cmds-opts",-390130362),dia=new $APP.H(null,"h","h",1109658740),i$=new $APP.H(null,"cmds","cmds", | ||
-1841503952);var H$=$APP.Vi.h(""),F$=$APP.Vi.h(!1),G$=$APP.Vi.h($APP.pr),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var L$=$APP.Vi.h(null),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.pr=$APP.sy;$APP.dr=$APP.or=!0;var b=function(){var d=$APP.PH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(aia);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.NH.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1; | ||
$APP.ne.j(function(l,m){return Promise.resolve(l).then(function(){return $APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(m))?($APP.NH.l($APP.F(["[squint] Compiling CLJS file:",m])),$APP.HH($APP.Rh.l(d,$APP.CH,m,$APP.F([$APP.xr,function(h){return Q$(d,m,h)}])))):R$(f,m,k,e)}).then(function(h){h=$APP.jf(h);h=$APP.fe.g(h,$APP.EH);$APP.r(h)&&$APP.NH.l($APP.F(["[squint] Wrote file:",h]));return h})},null,a)},bia=function(a){var b=$APP.u($APP.qH), | ||
c=$APP.Qk.l($APP.F([b,a])),d=$APP.pH.h(b),e=$APP.GH.g(b,"."),f=S$.h(b);return shadow_esm_import("chokidar").catch(function(k){return console.error(k)}).then(function(k){k=k.watch;$APP.NH.l($APP.F(["[squint] Watching paths:",$APP.Jp.g(", ",d)]));for(var l=$APP.x(d),m=null,h=0,p=0;;)if(p<h){var q=m.ba(null,p);(k.h?k.h(q):k.call(null,q)).on("all",function(I,O,P,W,ca,ha,oa,pa,fa,E,C){return function(ea,K){return $APP.r(esm_import$fs.existsSync(K))?$APP.r(esm_import$fs.lstatSync(K).isDirectory())?null: | ||
$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),ea)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(K))?V$(pa,new $APP.J(null,1,5,$APP.N,[K],null)).catch(function(){return function(M){return console.error(M)}}(I,O,P,W,ca,ha,oa,pa,fa,E,C)):R$(C,K,E,fa):null}}(l,m,h,p,q,k,b,c,d,e,f));p+=1}else{var v=$APP.x(l);if(v){var D=v;$APP.Zd(D)?(l=$APP.uc(D),h=$APP.vc(D),m=l,D=$APP.xd(l),l=h,h=D):(q=$APP.y(D),(k.h?k.h(q): | ||
k.call(null,q)).on("all",function(I,O,P,W,ca,ha,oa,pa,fa,E,C,ea,K){return function(M,da){return $APP.r(esm_import$fs.existsSync(da))?$APP.r(esm_import$fs.lstatSync(da).isDirectory())?null:$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),M)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(da))?V$(E,new $APP.J(null,1,5,$APP.N,[da],null)).catch(function(){return function(ia){return console.error(ia)}}(I,O,P,W, | ||
ca,ha,oa,pa,fa,E,C,ea,K)):R$(K,da,ea,C):null}}(l,m,h,p,q,D,v,k,b,c,d,e,f)),l=$APP.z(D),m=null,h=0);p=0}else return null}})},s$=new $APP.H(null,"kwd-opt","kwd-opt",1313309243),n$=new $APP.H(null,"hyphens","hyphens",2113533609),v$=new $APP.H(null,"spec","spec",347520401),d$=new $APP.H(null,"coerce","coerce",1917884504),x$=new $APP.H(null,"restrict","restrict",-1071101511),p$=new $APP.H(null,"keywords","keywords",1526959054),N$=new $APP.H("squint.repl.node","continue","squint.repl.node/continue",1558138730), | ||
y$=new $APP.H(null,"msg","msg",-1386103444),cia=new $APP.H(null,"show","show",-576705889),o$=new $APP.H(null,"boolean","boolean",-1919418404),Pha=new $APP.H(null,"input","input",556931961),W$=new $APP.H(null,"rest-cmds","rest-cmds",-423198324),w$=new $APP.H("org.babashka","cli","org.babashka/cli",1162430315),l$=new $APP.H(null,"args-\x3eopts","args-\x3eopts",964391046),e$=new $APP.H(null,"alias","alias",-2039751630),Uha=new $APP.H(null,"collect","collect",-284321549),f$=new $APP.H(null,"validate", | ||
"validate",-201300827),r$=new $APP.H(null,"composite-opt","composite-opt",-2021292928),dia=new $APP.H(null,"run","run",-1821166653),q$=new $APP.H(null,"hyphen-opt","hyphen-opt",1836909464),U$=new $APP.H(null,"help","help",-439233446),A$=new $APP.H(null,"cause","cause",231901252),t$=new $APP.H(null,"fst-colon","fst-colon",1618567071),Qha=new $APP.H(null,"coerce-fn","coerce-fn",-821146515),j$=new $APP.H(null,"args","args",1315556576),h$=new $APP.H(null,"no-keyword-opts","no-keyword-opts",761286018), | ||
C$=new $APP.H(null,"value","value",305978217),S$=new $APP.H(null,"copy-resources","copy-resources",-1367155536),D$=new $APP.H(null,"pred","pred",1927423397),Vha=new $APP.H(null,"closed","closed",-919675359),M$=new $APP.H("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),Wha=new $APP.H(null,"error-fn","error-fn",-171437615),B$=new $APP.H(null,"option","option",65132272),g$=new $APP.H(null,"exec-args","exec-args",-1860766354),E$=new $APP.H(null,"ex-msg","ex-msg", | ||
-1111774387),Lha=new $APP.H(null,"s","s",1705939918),z$=new $APP.H(null,"cmds-opts","cmds-opts",-390130362),eia=new $APP.H(null,"h","h",1109658740),i$=new $APP.H(null,"cmds","cmds",-1841503952);var H$=$APP.Vi.h(""),F$=$APP.Vi.h(!1),G$=$APP.Vi.h($APP.pr),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var L$=$APP.Vi.h(null),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.pr=$APP.ry;$APP.dr=$APP.or=!0;var b=function(){var d=$APP.PH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(aia);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.NH.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.pr=$APP.sy;$APP.dr=$APP.or=!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});O$(b,null);b.setPrompt([$APP.t.h($APP.u(G$)),"\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.lg($APP.Zp.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])))},eia=new $APP.J(null,7,5,$APP.N,[new $APP.n(null,3,[i$,new $APP.J(null,1,5,$APP.N,["run"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.QH);var b=$APP.u($APP.qH),c=$APP.Qk.l($APP.F([b,a]));a=$APP.jf(c);var d=$APP.fe.g(a,$APP.$k); | ||
$$.h=function(){$APP.pr=$APP.ry;$APP.dr=$APP.or=!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});O$(b,null);b.setPrompt([$APP.t.h($APP.u(G$)),"\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.lg($APP.Zp.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])))},fia=new $APP.J(null,7,5,$APP.N,[new $APP.n(null,3,[i$,new $APP.J(null,1,5,$APP.N,["run"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.QH);var b=$APP.u($APP.qH),c=$APP.Qk.l($APP.F([b,a]));a=$APP.jf(c);var d=$APP.fe.g(a,$APP.$k); | ||
a=$APP.fe.g(a,U$);if($APP.r(a))return null;$APP.NH.l($APP.F(["[squint] Running",d]));return $APP.HH($APP.Rh.l(c,$APP.CH,d,$APP.F([$APP.xr,function(e){return Q$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.EH);e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return shadow_esm_import(e)})},z$,new $APP.J(null,1,5,$APP.N,[$APP.$k],null)],null),new $APP.n(null,2,[i$,new $APP.J(null,1,5,$APP.N,["compile"],null), | ||
$APP.yo,function(a){var b=$APP.jf(a);a=$APP.fe.g(b,W$);b=$APP.fe.g(b,$APP.QH);return V$(b,a)}],null),new $APP.n(null,2,[i$,new $APP.J(null,1,5,$APP.N,["repl"],null),$APP.yo,$$],null),new $APP.n(null,2,[i$,new $APP.J(null,1,5,$APP.N,["socket-repl"],null),$APP.yo,Z$],null),new $APP.n(null,2,[i$,new $APP.J(null,1,5,$APP.N,["nrepl-server"],null),$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.QH);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,[i$,new $APP.J(null,1,5,$APP.N,["watch"],null),$APP.yo,function(a){var b=$APP.u($APP.qH),c=$APP.Qk.l($APP.F([b,a])),d=$APP.pH.h(b),e=$APP.GH.g(b,"."),f=S$.h(b);return shadow_esm_import("chokidar").catch(function(k){return console.error(k)}).then(function(k){k=k.watch;$APP.NH.l($APP.F(["[squint] Watching paths:",$APP.Jp.g(", ",d)]));for(var l=$APP.x(d),m=null,h=0,p=0;;)if(p<h){var q=m.ba(null,p);(k.h?k.h(q):k.call(null,q)).on("all",function(I,O,P,W,ca,ha, | ||
oa,pa,fa,E,C){return function(ea,K){return $APP.r(esm_import$fs.existsSync(K))?$APP.r(esm_import$fs.lstatSync(K).isDirectory())?null:$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),ea)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(K))?V$(pa,new $APP.J(null,1,5,$APP.N,[K],null)).catch(function(){return function(M){return console.error(M)}}(I,O,P,W,ca,ha,oa,pa,fa,E,C)):R$(C,K,E,fa):null}}(l,m,h,p,q,k,b,c, | ||
d,e,f));p+=1}else{var v=$APP.x(l);if(v){var D=v;$APP.Zd(D)?(l=$APP.uc(D),h=$APP.vc(D),m=l,D=$APP.xd(l),l=h,h=D):(q=$APP.y(D),(k.h?k.h(q):k.call(null,q)).on("all",function(I,O,P,W,ca,ha,oa,pa,fa,E,C,ea,K){return function(M,da){return $APP.r(esm_import$fs.existsSync(da))?$APP.r(esm_import$fs.lstatSync(da).isDirectory())?null:$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),M)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(da))? | ||
V$(E,new $APP.J(null,1,5,$APP.N,[da],null)).catch(function(){return function(ia){return console.error(ia)}}(I,O,P,W,ca,ha,oa,pa,fa,E,C,ea,K)):R$(K,da,ea,C):null}}(l,m,h,p,q,D,v,k,b,c,d,e,f)),l=$APP.z(D),m=null,h=0);p=0}else return null}})}],null),new $APP.n(null,2,[i$,$APP.kg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.QH);a=$APP.NE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.NH.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.$p.h(c))?$APP.Zj("(do %s\n)","%s",a):a;a=$APP.WG.g(a,$APP.Rh.l(c,$APP.$p,$APP.$p.h(c),$APP.F([$APP.Jr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.sy],null)),$APP.Kp,$APP.r($APP.$p.h(c))?$APP.Pp:$APP.Qp,$APP.ou,function(){var f=$APP.$p.h(c);return $APP.r(f)?!1!==$APP.ou.h(c):f}()])));a=$APP.r($APP.$p.h(c))?$APP.Zj("(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(bia.h(c))&& | ||
$APP.NH.l($APP.F([a]));if(!1===cia.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return($APP.r($APP.$p.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.$p.h(c))?$APP.MH.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.Qd(b)}())? | ||
$APP.NH.l($APP.F(["Squint v0.8.114\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.Mr,new $APP.n(null,1,[dia,U$],null),d$,new $APP.n(null,4,[$APP.ou,o$,$APP.Nr,o$,$APP.GH,$APP.nl,$APP.$p,o$],null)],null),b=k$(process.argv.slice(2),a),c=$APP.jf(b),d=$APP.fe.g(c,i$),e=$APP.fe.g(c,j$);return $APP.ne.j(function(f,k){f=$APP.jf(k);var l=$APP.fe.g(f,i$),m=$APP.fe.g(f,$APP.yo),h=Zha(l,d);if($APP.r(h)){k=function(){var v=null==h?null:$APP.x(h);return null==v?null:$APP.lg(v)}();k=$APP.R.g(k,e);f=Yha(k,U9(a,$APP.F([f])));k=$APP.jf(f);var p=$APP.fe.g(k, | ||
$APP.QH);f=$APP.fe.g(k,j$);k=$APP.fe.g(k,i$);var q=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.Rh.l(c,j$,q,$APP.F([W$,q,$APP.QH,p,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,eia)})(); | ||
c.call(null,b)})}],null),new $APP.n(null,2,[i$,new $APP.J(null,1,5,$APP.N,["watch"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.QH);return bia(a)}],null),new $APP.n(null,2,[i$,$APP.kg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.QH);a=$APP.OE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.NH.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.$p.h(c))? | ||
$APP.Zj("(do %s\n)","%s",a):a;a=$APP.WG.g(a,$APP.Rh.l(c,$APP.$p,$APP.$p.h(c),$APP.F([$APP.Jr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ry],null)),$APP.Kp,$APP.r($APP.$p.h(c))?$APP.Pp:$APP.Qp,$APP.ou,function(){var f=$APP.$p.h(c);return $APP.r(f)?!1!==$APP.ou.h(c):f}()])));a=$APP.r($APP.$p.h(c))?$APP.Zj("(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(cia.h(c))&&$APP.NH.l($APP.F([a])); | ||
if(!1===dia.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return($APP.r($APP.$p.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.$p.h(c))?$APP.MH.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.Qd(b)}())?$APP.NH.l($APP.F(["Squint v0.8.115\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.Mr,new $APP.n(null,1,[eia,U$],null),d$,new $APP.n(null,4,[$APP.ou,o$,$APP.Nr,o$,$APP.GH,$APP.nl,$APP.$p,o$],null)],null),b=k$(process.argv.slice(2),a),c=$APP.jf(b),d=$APP.fe.g(c,i$),e=$APP.fe.g(c,j$);return $APP.ne.j(function(f,k){f=$APP.jf(k);var l=$APP.fe.g(f,i$),m=$APP.fe.g(f,$APP.yo),h=Zha(l,d);if($APP.r(h)){k=function(){var v=null==h?null:$APP.x(h);return null==v?null:$APP.lg(v)}();k=$APP.R.g(k,e);f=Yha(k,U9(a,$APP.F([f])));k=$APP.jf(f);var p=$APP.fe.g(k, | ||
$APP.QH);f=$APP.fe.g(k,j$);k=$APP.fe.g(k,i$);var q=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.Rh.l(c,j$,q,$APP.F([W$,q,$APP.QH,p,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,fia)})(); |
@@ -11,5 +11,5 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
yH=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Jr);a=$APP.jp($APP.hp(a),$APP.lu);if($APP.be(a)&&$APP.A.g($APP.Dj,$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.B.j(k,0,null);k=$APP.B.j(k,1,null);return $APP.be(l)&&$APP.A.g(sH,$APP.y(l))?new $APP.J(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.tH.j(2,1,a));var e=$APP.B.j(a,0,null),f=$APP.B.j(a,1,null);return $APP.r(e)?shadow_esm_import("./compiler.sci.js").then(function(){var k=$APP.uH.h($APP.u($APP.vH)); | ||
return $APP.ne.j(function(l,m){return l.then(function(){var h=$APP.x(m),p=$APP.y(h);h=$APP.z(h);h=$APP.jf(h);var q=$APP.fe.g(h,$APP.Er),v=$APP.fe.g(h,$APP.Fr);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.jF,new $APP.G(null,new $APP.G(null,$APP.Mj,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.wH],null)):O}();k.h?k.h(D):k.call(null,D);var I=function(){var O=$APP.S.h($APP.x($APP.R.g(new $APP.G(null, | ||
return $APP.ne.j(function(l,m){return l.then(function(){var h=$APP.x(m),p=$APP.y(h);h=$APP.z(h);h=$APP.jf(h);var q=$APP.fe.g(h,$APP.Er),v=$APP.fe.g(h,$APP.Fr);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.lF,new $APP.G(null,new $APP.G(null,$APP.Mj,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.wH],null)):O}();k.h?k.h(D):k.call(null,D);var I=function(){var O=$APP.S.h($APP.x($APP.R.g(new $APP.G(null, | ||
xH,null,1,null),new $APP.G(null,$APP.S.h($APP.x($APP.R.g(new $APP.G(null,$APP.Mj,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.Kh(I);I=$APP.Oh(I);I=$APP.ui.g($APP.od,I);return $APP.bi(D,I)}()).then(function(D){return $APP.Wi.g(c,function(I){I=$APP.av(I,new $APP.J(null,2,5,$APP.N,[$APP.Qt,p],null),D);I=$APP.r(v)?$APP.av(I,new $APP.J(null,3,5,$APP.N,[d,$APP.Mr,v],null),p):I;return $APP.r(q)?$APP.av(I,new $APP.J(null,2,5,$APP.N,[d,$APP.Kr], | ||
null),$APP.bi(q,$APP.Lr.h(p))):I})})})},Promise.resolve(null),e)}):null}return null};zH=function(a){var b=$APP.Rh.j;var c=$APP.Jr.h(a);c=$APP.r(c)?c:$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.sy],null));return b.call($APP.Rh,a,$APP.Jr,c)};AH=function(a,b){var c=zH(b);return Promise.resolve(yH(a,c)).then(function(){return $APP.yu(a,c,null)})}; | ||
null),$APP.bi(q,$APP.Lr.h(p))):I})})})},Promise.resolve(null),e)}):null}return null};zH=function(a){var b=$APP.Rh.j;var c=$APP.Jr.h(a);c=$APP.r(c)?c:$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ry],null));return b.call($APP.Rh,a,$APP.Jr,c)};AH=function(a,b){var c=zH(b);return Promise.resolve(yH(a,c)).then(function(){return $APP.yu(a,c,null)})}; | ||
$APP.BH=function(a,b){return $APP.ne.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.Qd(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)}; | ||
@@ -25,5 +25,5 @@ $APP.HH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.CH),c=$APP.fe.g(a,DH),d=$APP.fe.g(a,$APP.EH),e=$APP.fe.g(a,$APP.FH),f=$APP.fe.j(a,$APP.GH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");a=zH(a);return AH(c,a).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.xu),m=$APP.fe.g(k,$APP.zq),h=$APP.pH.g($APP.u($APP.qH),new $APP.J(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?h=d:(h=$APP.BH(b,h),$APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.Zj(e,/^\./,"")].join(""): | ||
arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.tH.g=function(a,b){return $APP.tH.j(a,a,b)};$APP.tH.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.tH.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.tH.m=3;$APP.iH.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.iH.prototype.$c=function(){return $APP.Za(this.f)}; | ||
$APP.iH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.ED,null==this.f?$APP.Mw:$APP.qB,$APP.sv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.OH=function OH(a){switch(arguments.length){case 1:return OH.h(arguments[0]);case 2:return OH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.iH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.DD,null==this.f?$APP.Jw:$APP.rB,$APP.sv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.OH=function OH(a){switch(arguments.length){case 1:return OH.h(arguments[0]);case 2:return OH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.OH.h=function(a){return nH(new $APP.n(null,3,[$APP.Cm,$APP.u($APP.YF),$APP.Dm,$APP.u($APP.XF),$APP.il,null],null),a)};$APP.OH.g=function(a,b){return nH($APP.Tm.j($APP.Qk.l($APP.F([new $APP.n(null,1,[$APP.Dm,$APP.u($APP.XF)],null),a])),$APP.Cm,function(c){return $APP.Qk.l($APP.F([$APP.u($APP.YF),c]))}),b)};$APP.OH.m=2;$APP.PH=new $APP.H(null,"port","port",1534937262);$APP.wH=new $APP.H(null,"reload","reload",863702807);$APP.QH=new $APP.H(null,"opts","opts",155075701); | ||
$APP.GH=new $APP.H(null,"output-dir","output-dir",-290956991);sH=new $APP.H(null,"require-macros","require-macros",707947416);$APP.RH=new $APP.H(null,"message","message",-406056002);$APP.CH=new $APP.H(null,"in-file","in-file",-1682176692);$APP.SH=new $APP.H(null,"id","id",-1388402092);xH=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.pH=new $APP.H(null,"paths","paths",-1807389588);$APP.TH=new $APP.H(null,"eval","eval",-1103567905); | ||
$APP.uH=new $APP.H(null,"eval-form","eval-form",-1934118476);$APP.EH=new $APP.H(null,"out-file","out-file",-1187066405);DH=new $APP.H(null,"in-str","in-str",-1014658121);$APP.FH=new $APP.H(null,"extension","extension",1453374065);$APP.qH=new $APP.iH(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.OH.h(a)}else a=null;return a},null);var UH;$APP.vH=$APP.Vi.h(null);UH=JH(AH);export const compileFile=JH($APP.HH);export const compileString=UH; |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "0.8.114", | ||
"version": "0.8.115", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "core.js", |
@@ -206,4 +206,18 @@ <img src="./logo/logo.svg" width="100%"> | ||
will set the `my-html` variable to a string equal to `<div>Hello</div>`. | ||
will set the `my-html` variable to an HTML object equal to | ||
`<div>Hello</div>`. To produce a string from the HTML object, call `str` on it. | ||
HTML objects can be nested: | ||
``` clojure | ||
(defn my-html [x] #html [:<> [:div "Hello"] x]) | ||
(my-html #html [:div "Goodbye"]) ;;=> Html {s: "<div>Hello</div><div>Goodbye</div>"} | ||
``` | ||
HTML content is escaped by default: | ||
``` clojure | ||
(my-html #html [:div "<>"]) ;;=> Html {s: "<div>Hello</div><div><></div>"} | ||
``` | ||
Using metadata you can modify the tag function, e.g. to use this together with lit-html: | ||
@@ -210,0 +224,0 @@ |
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
1389447
8374
460