Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

squint-cljs

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

squint-cljs - npm Package Compare versions

Comparing version 0.7.106 to 0.7.107

88

lib/cli.js

@@ -6,48 +6,48 @@ 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 Cha=function(a,b){return $APP.Vd(a)&&$APP.Vd(b)?$APP.Qk.l($APP.F([a,b])):$APP.Rd(a)&&($APP.Ud(a)||$APP.Td(a))&&$APP.Rd(b)&&($APP.Ud(b)||$APP.Td(b))?$APP.Rg.g(a,b):b},V9=function(a,b){return $APP.oe.j(function(c,d){return $APP.gv.l(Cha,$APP.F([c,d]))},a,b)},W9=function(a){throw $APP.cl.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.n(null,1,[Dha,a],null));},X9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:W9(a)},Eha=function(a){var b=JSON.parse(a);return $APP.WG(b)?b:W9(a)},Fha=
function(a){var b=JSON.parse(a);return $APP.XG(b)?b:W9(a)},Y9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:W9(a)},Z9=function(a){return"string"===typeof a?$APP.B.j(a,0,null):null},$9=function(a){return $APP.A.g(":",Z9(a))?$APP.zi.h($APP.ji.g(a,1)):$APP.zi.h(a)},Gha=function(a){return $APP.Rd(a)?$APP.y(a):a},a$=function(a){if("string"===typeof a)try{var b=Z9(a);if($APP.A.g("true",a)||$APP.A.g("false",a))var c=X9(a);else{if($APP.A.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e=
Y9(a);else{var f=$APP.A.g(":",b);var k=f?$APP.hi(/:[a-zA-Z][a-zA-Z0-9_\/\.-]*/,a):f;e=$APP.r(k)?$9(a):a}d=e}c=d}return c}catch(l){return a}else return a},b$=function(a,b,c,d){throw $APP.cl.j(["Coerce failure: cannot transform ",$APP.r(b)?"(implicit) true":["input ",$APP.Ri.l($APP.F([a]))].join(""),c instanceof $APP.H?" to ":" with ",$APP.t.h(c instanceof $APP.H?$APP.ai(c):c)].join(""),new $APP.n(null,2,[Hha,a,Iha,c],null),d);},Jha=function(a,b,c){var d=function(){switch(b instanceof $APP.H?b.da:null){case "boolean":case "bool":return X9;
case "int":case "long":return Eha;case "double":return Fha;case "number":return Y9;case "symbol":return $APP.Hi;case "keyword":return $9;case "string":return $APP.se;case "edn":return $APP.HH;case "auto":return a$;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=b$(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?b$(a,c,b,null):d},c$=function(a,b,c){a=$APP.fe.g(a,b);c=$APP.r(a)?a:$APP.Rd(c)?$APP.Hd(c):null;return $APP.r(c)?$APP.Rd(c)?$APP.Xq.g($APP.Ee,
c):c:null},d$=function(a,b,c,d){return $APP.Qh.g(b,c)?(c=$APP.aH(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},Kha=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Rd(d):d)?Jha(e,d,f):a$(e);return $APP.r(c)?$APP.Tm.A(a,b,c,d):$APP.Rh.j(a,b,d)},Lha=function(a){return $APP.oe.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,
e$),k=$APP.fe.g(e,f$);c=$APP.fe.g(e,$APP.Dm);var l=$APP.fe.g(e,$APP.aF);e=$APP.fe.g(e,g$);b=$APP.r(f)?$APP.Tm.J(b,e$,$APP.Rh,d,f):b;b=$APP.r(k)?$APP.Tm.j(b,f$,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,[f$,k],null));return $APP.Rh.j(m,k,d)}):b;b=$APP.r(l)?$APP.Tm.j(b,$APP.aF,$APP.Xq.g(function(m){return $APP.Ee.g(m,d)},$APP.Vh)):b;b=$APP.r(e)?$APP.Tm.J(b,g$,$APP.Rh,d,e):b;return $APP.r(c)?
$APP.Tm.J(b,h$,$APP.Rh,d,c):b},$APP.hf,a)},l$=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,i$);b=$APP.bH(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,[j$,a,k$,b],null)},n$=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.I(null,2,5,$APP.N,[$APP.R.g($APP.Su.g(b,a),$APP.Nf.g(c,a)),$APP.Nf.g(c,b)],null)}else a=new $APP.I(null,2,5,$APP.N,[a,b],null);
else a=new $APP.I(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,[k$,a,m$,b],null)},v$=function(a,b,c,d,e){var f=Z9(a),k="string"===typeof a?$APP.B.j(a,1,null):null,l;if(l=$APP.A.g(f,"-")){try{var m=Y9($APP.t.h(k))}catch(h){m=null}l=$APP.Za(m)}b=$APP.r(b)?b:l?o$:null;f=$APP.A.g(":",f);c=$APP.Qh.g(o$,b)&&f&&($APP.A.g(p$,d)||$APP.Za(c)||$APP.A.g(e,c));d=$APP.r(b)?b:c?q$:null;a=l?$APP.r(k)?$APP.Qh.g("-",k)&&2<$APP.xd(a):k:null;return new $APP.n(null,
5,[$APP.dx,d,r$,l,s$,a,t$,c,u$,f],null)},Pha=function(a,b){function c(vb){vb=$APP.Qk.l($APP.F([new $APP.n(null,2,[w$,d,$APP.Xk,x$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=w$.h(b),e=$APP.r(d)?V9(b,$APP.F([Lha(d)])):b,f=e$.h(e),k=function(){var vb=f$.h(e);return $APP.r(vb)?vb:$APP.Jr.h(e)}(),l=Mha.h(e),m=$APP.aF.h(e),h=h$.h(e),p=i$.h(e),q=function(){var vb=y$.h(e);return $APP.r(vb)?vb:Nha.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),J=g$.h(e),O=function(){var vb=Oha.h(e);return $APP.r(vb)?vb:function(Yb){Yb=$APP.jf(Yb);var Ic=$APP.fe.g(Yb,z$);throw $APP.cl.g(Ic,Yb);}}(),P=l$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,j$),ia=$APP.fe.g(W,k$),na=function(){var vb=m$.h(e);vb=$APP.r(vb)?vb:A$.h(e);return $APP.r(vb)?n$(ca,vb):new $APP.n(null,2,[m$,null,k$,ia],null)}(),pa=$APP.jf(na),fa=$APP.fe.g(pa,k$),E=$APP.fe.g(pa,m$),C=$APP.Qh.g(fa,ia)?new $APP.I(null,2,5,$APP.N,[null,$APP.R.g(fa,ia)],null):
new $APP.I(null,2,5,$APP.N,[ca,ia],null),ea=$APP.B.j(C,0,null),K=$APP.B.j(C,1,null),M=function(){for(var vb=$APP.hf,Yb=null,Ic=null,Ne=$APP.r(p)?o$:null,hd=$APP.x(K),Kg=E;;){if($APP.Za(hd))return new $APP.I(null,3,5,$APP.N,[vb,Yb,Ic],null);var og=$APP.y(hd),Uc=og instanceof $APP.H;if(Uc){Yb=d$(vb,Yb,Ic,null);var ne=og;hd=$APP.z(hd);vb=Yb;Yb=ne}else{var Bl=!0===og,Tf=$APP.t.h(og);ne=c$(l,Yb,$APP.fe.g(f,Yb));var xi=$APP.fe.g(f,Yb),Cl=v$(Tf,Ne,Yb,xi,Ic),Lh=$APP.jf(Cl),Dl=$APP.fe.g(Lh,r$),Mh=$APP.fe.g(Lh,
s$),El=$APP.fe.g(Lh,t$),Uf=$APP.fe.g(Lh,$APP.dx),nk=$APP.fe.g(Lh,u$);if($APP.r(function(){var Pe=Dl;return $APP.r(Pe)?Pe:El}())){var Yc=$APP.qa(Tf,"--"),ok=Yc&&$APP.A.g("--",Tf);if(ok){var Fl=$APP.z(hd);return new $APP.I(null,3,5,$APP.N,[function(){var Pe=vb;return Fl?$APP.jo.A(Pe,$APP.Uu,new $APP.I(null,2,5,$APP.N,[x$,k$],null),$APP.lg(Fl)):Pe}(),Yb,Ic],null)}var pk=Yc?$APP.ji.g(Tf,2):$APP.Zj(Tf,/^(:|-|)/,""),zf=Yc?$APP.Fr.g(pk,/=/):new $APP.I(null,1,5,$APP.N,[pk],null),Sd=$APP.B.j(zf,0,null),Ce=
$APP.B.j(zf,1,null),Tb=$APP.zi.h(Sd),Ec=$APP.fe.j(k,Tb,Tb);if($APP.r(Ce))Ic=d$(vb,Yb,Ic,ne),Yb=Ec,Ne=Uf,hd=$APP.He(Ce,$APP.cd(hd)),vb=Ic,Ic=null;else{var Ab=$APP.z(hd),Oe=$APP.y(Ab),qw=v$(Oe,Uf,Yb,xi,Ic);if($APP.r(function(){var Pe=r$.h(qw);return $APP.r(Pe)?Pe:$APP.Qd(Ab)}()))if($APP.r(Mh)){var rw=$APP.ai(Ec);Ic=$APP.Yp.l(function(){return function(Pe){return new $APP.I(null,2,5,$APP.N,[["-",$APP.t.h(Pe)].join(""),!0],null)}}(vb,Yb,Ic,Ne,hd,Kg,rw,Ab,Oe,qw,pk,zf,Sd,Ce,Tb,Ec,Yc,ok,Bl,Tf,ne,xi,Cl,Lh,
Dl,Mh,El,Uf,nk,og,Uc,d,e,f,k,l,m,h,p,q,v,D,J,O,c,P,W,ca,ia,na,pa,fa,E,C,ea,K),$APP.F([rw]));hd=$APP.R.g(Ic,Ab);Ne=Uf;Ic=Yb=null}else hd=$APP.he(v,Ec)?null:$APP.RG($APP.t.h(Ec),":no-"),Ne=$APP.r(hd)?$APP.zi.h($APP.Zj($APP.t.h(Ec),":no-","")):Ec,hd=$APP.He($APP.Za(hd),Ab),Yb=d$(vb,Yb,Ic,ne),ne=Ne,Ne=Uf,vb=Yb,Yb=ne;else Yb=d$(vb,Yb,Ic,ne),ne=Ec,Ne=Uf,hd=Ab,vb=Yb,Yb=ne}}else if(ok=$APP.A.g(p$,xi)&&$APP.Qh.g(Tf,"true")&&$APP.Qh.g(Tf,"false")||$APP.A.g(Ic,Yb)&&$APP.Za(ne))if(Kg=$APP.r(hd)?$APP.r(Kg)?n$(hd,
Kg):new $APP.n(null,1,[k$,hd],null):new $APP.n(null,1,[k$,hd],null),Ne=$APP.jf(Kg),Kg=$APP.fe.g(Ne,k$),Ne=$APP.fe.g(Ne,m$),$APP.Qh.g(hd,Kg))ne=Ne,Ne=Uf,hd=Kg,Kg=ne;else return new $APP.I(null,3,5,$APP.N,[$APP.jo.A(vb,$APP.Uu,new $APP.I(null,2,5,$APP.N,[x$,k$],null),$APP.lg(hd)),Yb,Ic],null);else{try{var Zd=Kha(vb,Yb,ne,Gha(xi),Tf,Bl)}catch(Pe){c(new $APP.n(null,4,[B$,e$,z$,$APP.fH(Pe),C$,Yb,D$,Tf],null)),Zd=vb}Ic=$APP.r(function(){var Pe=$APP.A.g(q$,Uf);return Pe?nk:Pe}())?null:Yb;ne=$APP.r(function(){var Pe=
$APP.A.g(q$,Uf);return Pe?nk:Pe}())?null:Yb;Ne=Uf;hd=$APP.z(hd);vb=Zd;Yb=Ic;Ic=ne}}}}(),da=$APP.B.j(M,0,null),ha=$APP.B.j(M,1,null),ja=$APP.B.j(M,2,null),sa=c$(l,ha,$APP.fe.g(f,ha)),ta=function(){var vb=d$(da,ha,ja,sa);return $APP.x(ea)?$APP.jo.A(vb,$APP.Nk,new $APP.I(null,2,5,$APP.N,[x$,k$],null),function(Yb){return $APP.Rg.g($APP.lg(ea),Yb)}):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,[B$,y$,z$,["Unknown option: ",$APP.t.h(Ha)].join(""),y$,D,C$,Ha],null));Ca+=1}else if(a=$APP.x(a))b=a,$APP.Yd(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,[B$,y$,z$,["Unknown option: ",$APP.t.h(a)].join(""),y$,D,C$,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.aH(wa,Ha))||c(new $APP.n(null,4,[B$,$APP.aF,z$,["Required option: ",
$APP.t.h(Ha)].join(""),$APP.aF,m,C$,Ha],null)),Ca+=1;else if(a=$APP.x(a))b=a,$APP.Yd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.r($APP.aH(wa,a))||c(new $APP.n(null,4,[B$,$APP.aF,z$,["Required option: ",$APP.t.h(a)].join(""),$APP.aF,m,C$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break;if($APP.r(J))for(var Da=$APP.x(J),Aa=null,Oa=0,Sa=0;;)if(Sa<Oa){var db=Aa.ba(null,Sa),ub=$APP.B.j(db,0,null),Bb=$APP.B.j(db,1,null),Xb=function(){var vb=(vb=$APP.Vd(Bb))?E$.h(Bb):vb;return $APP.r(vb)?
vb:Bb}(),qc=$APP.aH(wa,ub);if($APP.r(qc)){var $c=qc,Sb=$APP.B.j($c,0,null),nf=$APP.B.j($c,1,null);if(!$APP.r(Xb.h?Xb.h(nf):Xb.call(null,nf))){var jk=function(){var vb=F$.h(Bb);return $APP.r(vb)?vb:function(){return function(Yb){var Ic=$APP.jf(Yb);Yb=$APP.fe.g(Ic,C$);Ic=$APP.fe.g(Ic,D$);return["Invalid value for option ",$APP.t.h(Yb),": ",$APP.t.h(Ic)].join("")}}(Da,Aa,Oa,Sa,vb,$c,Sb,nf,qc,Xb,db,ub,Bb,d,e,f,k,l,m,h,p,q,v,D,J,O,c,P,W,ca,ia,na,pa,fa,E,C,ea,K,M,da,ha,ja,sa,ta,wa)}();c(new $APP.n(null,
5,[B$,g$,z$,function(){var vb=new $APP.n(null,2,[C$,ub,D$,nf],null);return jk.h?jk.h(vb):jk.call(null,vb)}(),g$,J,C$,ub,D$,nf],null))}}Sa+=1}else{var yl=$APP.x(Da);if(yl){var vi=yl;if($APP.Yd(vi))ya=$APP.uc(vi),a=$APP.vc(vi),b=ya,ya=$APP.xd(ya),Da=a,Aa=b,Oa=ya;else{var kk=$APP.y(vi),lk=$APP.B.j(kk,0,null),rj=$APP.B.j(kk,1,null),mk=function(){var vb=(vb=$APP.Vd(rj))?E$.h(rj):vb;return $APP.r(vb)?vb:rj}(),zl=$APP.aH(wa,lk);if($APP.r(zl)){var Hc=zl,sj=$APP.B.j(Hc,0,null),wi=$APP.B.j(Hc,1,null);if(!$APP.r(mk.h?
mk.h(wi):mk.call(null,wi))){var Al=function(){var vb=F$.h(rj);return $APP.r(vb)?vb:function(){return function(Yb){var Ic=$APP.jf(Yb);Yb=$APP.fe.g(Ic,C$);Ic=$APP.fe.g(Ic,D$);return["Invalid value for option ",$APP.t.h(Yb),": ",$APP.t.h(Ic)].join("")}}(Da,Aa,Oa,Sa,vb,Hc,sj,wi,zl,mk,kk,lk,rj,vi,yl,d,e,f,k,l,m,h,p,q,v,D,J,O,c,P,W,ca,ia,na,pa,fa,E,C,ea,K,M,da,ha,ja,sa,ta,wa)}();c(new $APP.n(null,5,[B$,g$,z$,function(){var vb=new $APP.n(null,2,[C$,lk,D$,wi],null);return Al.h?Al.h(vb):Al.call(null,vb)}(),
g$,J,C$,lk,D$,wi],null))}}Da=$APP.z(vi);Aa=null;Oa=0}Sa=0}else break}return wa},Qha=function(a,b){a=Pha(a,b);b=x$.h($APP.Nd(a));return $APP.Rh.j(b,$APP.JH,$APP.Rk.g(a,x$))},Rha=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},K$=function(a,b){$APP.Jf(G$,!1);a.setPrompt([$APP.t.h($APP.u(H$)),"\x3d\x3e "].join(""));a.prompt();return $APP.gk($APP.u(I$))?null:J$.g?J$.g(b,a):J$.call(null,b,a)},L$=function(a){var b=$APP.Bk(a);a=$APP.Ck(a);
var c=$APP.gH($APP.u(I$));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(I$,$APP.Jp.g("\n",$APP.He(a,c)))},Tha=function(a,b,c){var d=function(){var f=$APP.mr;$APP.mr=$APP.u(H$);try{a:{var k=$APP.La;$APP.La=!0;try{var l=$APP.Ri.l($APP.F([a]));break a}finally{$APP.La=k}l=void 0}return $APP.ru(l,new $APP.n(null,3,[$APP.Lp,$APP.Op,$APP.Gr,Sha,$APP.gu,!0],null),null)}finally{$APP.mr=f}}(),e=$APP.jf(d);d=$APP.fe.g(e,$APP.qu);e=$APP.fe.g(e,$APP.T);d=$APP.Zj("(async function () {\n%s\n}) ()",
"%s",d);$APP.Jf(H$,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 J$.g?J$.g(c,b):J$.call(null,c,b)}).catch(function(f){esm_import$squint_cljs$core.println(f);return K$(b,c)})},J$=function(a,b){if($APP.r(function(){var e=$APP.u(G$);return $APP.r(e)?e:!$APP.gk($APP.u(I$))}())){$APP.Jf(G$,!0);var c=$APP.hp($APP.u(I$)),d=function(){try{return $APP.jp(c,$APP.du)}catch(f){var e=f;if(-1!=$APP.fH(e).indexOf("EOF while reading"))return M$;
L$(c);$APP.FH.l($APP.F([$APP.t.h(e)]));return N$}}();if($APP.A.g(N$,d))return K$(b,a);if($APP.A.g(M$,d))return $APP.Jf(G$,!1);L$(c);return $APP.A.g($APP.ip,d)?K$(b,a):Tha(d,b,a)}return null},O$=function(a,b){a.on("line",function(c){$APP.Wi.A(I$,$APP.t,c,"\n");return J$(b,a)})},Uha=function(a){var b=esm_import$readline.createInterface({input:a,output:a});O$(b,a);a.setNoDelay(!0);return a.on("close",function(){return $APP.GH.l($APP.F(["Client closed connection."]))})},P$=function(a,b,c){return $APP.r(c)?
esm_import$path.resolve(c,$APP.uH(a,b)):a},Q$=function(a,b,c){var d=$APP.zH.h(a),e=$APP.jH.h(a);b=P$(b,e,d);c=$APP.lH(c);d=null==c?null:P$(c,e,d);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.yH.g(a,".mjs"),a=$APP.qa(a,".")?a:[".",$APP.t.h(a)].join(""),e=esm_import$path.extname(d),["./",$APP.Zj(d,$APP.ki([$APP.t.h(e),"$"].join("")),a)].join("")):null},R$=function(a,b,c,d){if($APP.r(a)){var e=esm_import$path.resolve(c,$APP.uH(b,
d));c=esm_import$path.dirname(e);if($APP.r($APP.Ef(function(f){return f instanceof $APP.H?$APP.ii($APP.ki(["\\.",$APP.ai(f),"$"].join("")),e):"string"===typeof f?$APP.ii($APP.ki(f),e):null},a)))return $APP.r(esm_import$fs.existsSync(c))||($APP.GH.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0})),$APP.GH.l($APP.F(["[squint] zCopying resource",b,"to",c])),esm_import$fs.copyFileSync(b,e)}return null},V$=function(a,b){var c=$APP.u($APP.kH),d=$APP.Qk.l($APP.F([c,
a])),e=$APP.jH.h(c),f=S$.h(c),k=$APP.zH.g(c,".");a=$APP.Qd(b)?$APP.lg($APP.Yp.l(T$,$APP.F([e]))):b;b=$APP.zH.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.GH.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.GH(),$APP.GH.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(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.GH.l($APP.F(["[squint] Compiling CLJS file:",m])),$APP.AH($APP.Rh.l(d,$APP.vH,m,$APP.F([$APP.ur,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.xH);$APP.r(h)&&$APP.GH.l($APP.F(["[squint] Wrote file:",h]));return h})},null,a)},t$=new $APP.H(null,"kwd-opt","kwd-opt",
1313309243),o$=new $APP.H(null,"hyphens","hyphens",2113533609),w$=new $APP.H(null,"spec","spec",347520401),e$=new $APP.H(null,"coerce","coerce",1917884504),y$=new $APP.H(null,"restrict","restrict",-1071101511),q$=new $APP.H(null,"keywords","keywords",1526959054),N$=new $APP.H("squint.repl.node","continue","squint.repl.node/continue",1558138730),z$=new $APP.H(null,"msg","msg",-1386103444),Vha=new $APP.H(null,"show","show",-576705889),p$=new $APP.H(null,"boolean","boolean",-1919418404),Hha=new $APP.H(null,
"input","input",556931961),W$=new $APP.H(null,"rest-cmds","rest-cmds",-423198324),x$=new $APP.H("org.babashka","cli","org.babashka/cli",1162430315),m$=new $APP.H(null,"args-\x3eopts","args-\x3eopts",964391046),f$=new $APP.H(null,"alias","alias",-2039751630),Mha=new $APP.H(null,"collect","collect",-284321549),g$=new $APP.H(null,"validate","validate",-201300827),s$=new $APP.H(null,"composite-opt","composite-opt",-2021292928),Wha=new $APP.H(null,"run","run",-1821166653),r$=new $APP.H(null,"hyphen-opt",
"hyphen-opt",1836909464),U$=new $APP.H(null,"help","help",-439233446),B$=new $APP.H(null,"cause","cause",231901252),u$=new $APP.H(null,"fst-colon","fst-colon",1618567071),Iha=new $APP.H(null,"coerce-fn","coerce-fn",-821146515),k$=new $APP.H(null,"args","args",1315556576),i$=new $APP.H(null,"no-keyword-opts","no-keyword-opts",761286018),D$=new $APP.H(null,"value","value",305978217),S$=new $APP.H(null,"copy-resources","copy-resources",-1367155536),E$=new $APP.H(null,"pred","pred",1927423397),Nha=new $APP.H(null,
"closed","closed",-919675359),M$=new $APP.H("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),Oha=new $APP.H(null,"error-fn","error-fn",-171437615),C$=new $APP.H(null,"option","option",65132272),h$=new $APP.H(null,"exec-args","exec-args",-1860766354),F$=new $APP.H(null,"ex-msg","ex-msg",-1111774387),Dha=new $APP.H(null,"s","s",1705939918),A$=new $APP.H(null,"cmds-opts","cmds-opts",-390130362),Xha=new $APP.H(null,"h","h",1109658740),j$=new $APP.H(null,"cmds","cmds",
-1841503952);var I$=$APP.Vi.h(""),G$=$APP.Vi.h(!1),H$=$APP.Vi.h($APP.mr),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var Sha=$APP.Vi.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.mr=$APP.ly;$APP.ar=$APP.lr=!0;var b=function(){var d=$APP.IH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(Uha);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.GH.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1;
var Dha=function(a,b){return $APP.Vd(a)&&$APP.Vd(b)?$APP.Qk.l($APP.F([a,b])):$APP.Rd(a)&&($APP.Ud(a)||$APP.Td(a))&&$APP.Rd(b)&&($APP.Ud(b)||$APP.Td(b))?$APP.Rg.g(a,b):b},U9=function(a,b){return $APP.ne.j(function(c,d){return $APP.gv.l(Dha,$APP.F([c,d]))},a,b)},V9=function(a){throw $APP.cl.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.n(null,1,[Eha,a],null));},W9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:V9(a)},Fha=function(a){var b=JSON.parse(a);return $APP.WG(b)?b:V9(a)},Gha=
function(a){var b=JSON.parse(a);return $APP.XG(b)?b:V9(a)},X9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:V9(a)},Y9=function(a){return"string"===typeof a?$APP.B.j(a,0,null):null},Z9=function(a){return $APP.A.g(":",Y9(a))?$APP.zi.h($APP.ji.g(a,1)):$APP.zi.h(a)},Hha=function(a){return $APP.Rd(a)?$APP.y(a):a},$9=function(a){if("string"===typeof a)try{var b=Y9(a);if($APP.A.g("true",a)||$APP.A.g("false",a))var c=W9(a);else{if($APP.A.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e=
X9(a);else{var f=$APP.A.g(":",b);var k=f?$APP.hi(/:[a-zA-Z][a-zA-Z0-9_\/\.-]*/,a):f;e=$APP.r(k)?Z9(a):a}d=e}c=d}return c}catch(l){return a}else return a},a$=function(a,b,c,d){throw $APP.cl.j(["Coerce failure: cannot transform ",$APP.r(b)?"(implicit) true":["input ",$APP.Ri.l($APP.F([a]))].join(""),c instanceof $APP.H?" to ":" with ",$APP.t.h(c instanceof $APP.H?$APP.ai(c):c)].join(""),new $APP.n(null,2,[Iha,a,Jha,c],null),d);},Kha=function(a,b,c){var d=function(){switch(b instanceof $APP.H?b.da:null){case "boolean":case "bool":return W9;
case "int":case "long":return Fha;case "double":return Gha;case "number":return X9;case "symbol":return $APP.Hi;case "keyword":return Z9;case "string":return $APP.se;case "edn":return $APP.HH;case "auto":return $9;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=a$(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?a$(a,c,b,null):d},b$=function(a,b,c){a=$APP.fe.g(a,b);c=$APP.r(a)?a:$APP.Rd(c)?$APP.Hd(c):null;return $APP.r(c)?$APP.Rd(c)?$APP.Xq.g($APP.Ee,
c):c:null},c$=function(a,b,c,d){return $APP.Qh.g(b,c)?(c=$APP.aH(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},Lha=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Rd(d):d)?Kha(e,d,f):$9(e);return $APP.r(c)?$APP.Tm.A(a,b,c,d):$APP.Rh.j(a,b,d)},Mha=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.bF);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.bF,$APP.Xq.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.bH(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.I(null,2,5,$APP.N,[$APP.R.g($APP.Su.g(b,a),$APP.Nf.g(c,a)),$APP.Nf.g(c,b)],null)}else a=new $APP.I(null,2,5,$APP.N,[a,b],null);
else a=new $APP.I(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.bx,d,q$,l,r$,a,s$,c,t$,f],null)},Qha=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([Mha(d)])):b,f=d$.h(e),k=function(){var vb=e$.h(e);return $APP.r(vb)?vb:$APP.Jr.h(e)}(),l=Nha.h(e),m=$APP.bF.h(e),h=g$.h(e),p=h$.h(e),q=function(){var vb=x$.h(e);return $APP.r(vb)?vb:Oha.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),J=f$.h(e),O=function(){var vb=Pha.h(e);return $APP.r(vb)?vb:function(Yb){Yb=$APP.jf(Yb);var Jc=$APP.fe.g(Yb,y$);throw $APP.cl.g(Jc,Yb);}}(),P=k$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,i$),ia=$APP.fe.g(W,j$),na=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$,ia],null)}(),pa=$APP.jf(na),fa=$APP.fe.g(pa,j$),E=$APP.fe.g(pa,l$),C=$APP.Qh.g(fa,ia)?new $APP.I(null,2,5,$APP.N,[null,$APP.R.g(fa,ia)],null):
new $APP.I(null,2,5,$APP.N,[ca,ia],null),ea=$APP.B.j(C,0,null),K=$APP.B.j(C,1,null),M=function(){for(var vb=$APP.hf,Yb=null,Jc=null,Ne=$APP.r(p)?n$:null,hd=$APP.x(K),Kg=E;;){if($APP.Za(hd))return new $APP.I(null,3,5,$APP.N,[vb,Yb,Jc],null);var ng=$APP.y(hd),Uc=ng instanceof $APP.H;if(Uc){Yb=c$(vb,Yb,Jc,null);var oe=ng;hd=$APP.z(hd);vb=Yb;Yb=oe}else{var Bl=!0===ng,Sf=$APP.t.h(ng);oe=b$(l,Yb,$APP.fe.g(f,Yb));var xi=$APP.fe.g(f,Yb),Cl=u$(Sf,Ne,Yb,xi,Jc),Lh=$APP.jf(Cl),Dl=$APP.fe.g(Lh,q$),Mh=$APP.fe.g(Lh,
r$),El=$APP.fe.g(Lh,s$),Tf=$APP.fe.g(Lh,$APP.bx),nk=$APP.fe.g(Lh,t$);if($APP.r(function(){var Pe=Dl;return $APP.r(Pe)?Pe:El}())){var Yc=$APP.qa(Sf,"--"),ok=Yc&&$APP.A.g("--",Sf);if(ok){var Fl=$APP.z(hd);return new $APP.I(null,3,5,$APP.N,[function(){var Pe=vb;return Fl?$APP.jo.A(Pe,$APP.Uu,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(Fl)):Pe}(),Yb,Jc],null)}var pk=Yc?$APP.ji.g(Sf,2):$APP.Zj(Sf,/^(:|-|)/,""),zf=Yc?$APP.Fr.g(pk,/=/):new $APP.I(null,1,5,$APP.N,[pk],null),Sd=$APP.B.j(zf,0,null),Ce=
$APP.B.j(zf,1,null),Tb=$APP.zi.h(Sd),Fc=$APP.fe.j(k,Tb,Tb);if($APP.r(Ce))Jc=c$(vb,Yb,Jc,oe),Yb=Fc,Ne=Tf,hd=$APP.He(Ce,$APP.cd(hd)),vb=Jc,Jc=null;else{var Ab=$APP.z(hd),Oe=$APP.y(Ab),qw=u$(Oe,Tf,Yb,xi,Jc);if($APP.r(function(){var Pe=q$.h(qw);return $APP.r(Pe)?Pe:$APP.Qd(Ab)}()))if($APP.r(Mh)){var rw=$APP.ai(Fc);Jc=$APP.Yp.l(function(){return function(Pe){return new $APP.I(null,2,5,$APP.N,[["-",$APP.t.h(Pe)].join(""),!0],null)}}(vb,Yb,Jc,Ne,hd,Kg,rw,Ab,Oe,qw,pk,zf,Sd,Ce,Tb,Fc,Yc,ok,Bl,Sf,oe,xi,Cl,Lh,
Dl,Mh,El,Tf,nk,ng,Uc,d,e,f,k,l,m,h,p,q,v,D,J,O,c,P,W,ca,ia,na,pa,fa,E,C,ea,K),$APP.F([rw]));hd=$APP.R.g(Jc,Ab);Ne=Tf;Jc=Yb=null}else hd=$APP.he(v,Fc)?null:$APP.RG($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),Yb=c$(vb,Yb,Jc,oe),oe=Ne,Ne=Tf,vb=Yb,Yb=oe;else Yb=c$(vb,Yb,Jc,oe),oe=Fc,Ne=Tf,hd=Ab,vb=Yb,Yb=oe}}else if(ok=$APP.A.g(o$,xi)&&$APP.Qh.g(Sf,"true")&&$APP.Qh.g(Sf,"false")||$APP.A.g(Jc,Yb)&&$APP.Za(oe))if(Kg=$APP.r(hd)?$APP.r(Kg)?m$(hd,
Kg):new $APP.n(null,1,[j$,hd],null):new $APP.n(null,1,[j$,hd],null),Ne=$APP.jf(Kg),Kg=$APP.fe.g(Ne,j$),Ne=$APP.fe.g(Ne,l$),$APP.Qh.g(hd,Kg))oe=Ne,Ne=Tf,hd=Kg,Kg=oe;else return new $APP.I(null,3,5,$APP.N,[$APP.jo.A(vb,$APP.Uu,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(hd)),Yb,Jc],null);else{try{var Zd=Lha(vb,Yb,oe,Hha(xi),Sf,Bl)}catch(Pe){c(new $APP.n(null,4,[A$,d$,y$,$APP.fH(Pe),B$,Yb,C$,Sf],null)),Zd=vb}Jc=$APP.r(function(){var Pe=$APP.A.g(p$,Tf);return Pe?nk:Pe}())?null:Yb;oe=$APP.r(function(){var Pe=
$APP.A.g(p$,Tf);return Pe?nk:Pe}())?null:Yb;Ne=Tf;hd=$APP.z(hd);vb=Zd;Yb=Jc;Jc=oe}}}}(),da=$APP.B.j(M,0,null),ha=$APP.B.j(M,1,null),ja=$APP.B.j(M,2,null),sa=b$(l,ha,$APP.fe.g(f,ha)),ta=function(){var vb=c$(da,ha,ja,sa);return $APP.x(ea)?$APP.jo.A(vb,$APP.Nk,new $APP.I(null,2,5,$APP.N,[w$,j$],null),function(Yb){return $APP.Rg.g($APP.lg(ea),Yb)}):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.Yd(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.aH(wa,Ha))||c(new $APP.n(null,4,[A$,$APP.bF,y$,["Required option: ",
$APP.t.h(Ha)].join(""),$APP.bF,m,B$,Ha],null)),Ca+=1;else if(a=$APP.x(a))b=a,$APP.Yd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.r($APP.aH(wa,a))||c(new $APP.n(null,4,[A$,$APP.bF,y$,["Required option: ",$APP.t.h(a)].join(""),$APP.bF,m,B$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break;if($APP.r(J))for(var Da=$APP.x(J),Aa=null,Oa=0,Sa=0;;)if(Sa<Oa){var db=Aa.ba(null,Sa),ub=$APP.B.j(db,0,null),Bb=$APP.B.j(db,1,null),Xb=function(){var vb=(vb=$APP.Vd(Bb))?D$.h(Bb):vb;return $APP.r(vb)?
vb:Bb}(),qc=$APP.aH(wa,ub);if($APP.r(qc)){var $c=qc,Sb=$APP.B.j($c,0,null),nf=$APP.B.j($c,1,null);if(!$APP.r(Xb.h?Xb.h(nf):Xb.call(null,nf))){var jk=function(){var vb=E$.h(Bb);return $APP.r(vb)?vb:function(){return function(Yb){var Jc=$APP.jf(Yb);Yb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Yb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Sa,vb,$c,Sb,nf,qc,Xb,db,ub,Bb,d,e,f,k,l,m,h,p,q,v,D,J,O,c,P,W,ca,ia,na,pa,fa,E,C,ea,K,M,da,ha,ja,sa,ta,wa)}();c(new $APP.n(null,
5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,ub,C$,nf],null);return jk.h?jk.h(vb):jk.call(null,vb)}(),f$,J,B$,ub,C$,nf],null))}}Sa+=1}else{var yl=$APP.x(Da);if(yl){var vi=yl;if($APP.Yd(vi))ya=$APP.uc(vi),a=$APP.vc(vi),b=ya,ya=$APP.xd(ya),Da=a,Aa=b,Oa=ya;else{var kk=$APP.y(vi),lk=$APP.B.j(kk,0,null),rj=$APP.B.j(kk,1,null),mk=function(){var vb=(vb=$APP.Vd(rj))?D$.h(rj):vb;return $APP.r(vb)?vb:rj}(),zl=$APP.aH(wa,lk);if($APP.r(zl)){var Ic=zl,sj=$APP.B.j(Ic,0,null),wi=$APP.B.j(Ic,1,null);if(!$APP.r(mk.h?
mk.h(wi):mk.call(null,wi))){var Al=function(){var vb=E$.h(rj);return $APP.r(vb)?vb:function(){return function(Yb){var Jc=$APP.jf(Yb);Yb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Yb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Sa,vb,Ic,sj,wi,zl,mk,kk,lk,rj,vi,yl,d,e,f,k,l,m,h,p,q,v,D,J,O,c,P,W,ca,ia,na,pa,fa,E,C,ea,K,M,da,ha,ja,sa,ta,wa)}();c(new $APP.n(null,5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,lk,C$,wi],null);return Al.h?Al.h(vb):Al.call(null,vb)}(),
f$,J,B$,lk,C$,wi],null))}}Da=$APP.z(vi);Aa=null;Oa=0}Sa=0}else break}return wa},Rha=function(a,b){a=Qha(a,b);b=w$.h($APP.Nd(a));return $APP.Rh.j(b,$APP.JH,$APP.Rk.g(a,w$))},Sha=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);
var c=$APP.gH($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)))},Tha=function(a,b,c){var d=function(){var k=$APP.mr;$APP.mr=$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.ru(m,new $APP.n(null,2,[$APP.Lp,$APP.Op,$APP.gu,!0],null),$APP.u(L$))}finally{$APP.mr=k}}(),e=$APP.jf(d),f=$APP.fe.g(e,$APP.qu);d=$APP.fe.g(e,$APP.T);$APP.Jf(L$,e);
e=$APP.Zj("(async function () {\n%s\n}) ()","%s",f);$APP.Jf(G$,d);return Promise.resolve(eval(e)).then(function(k){$APP.r(c)?c.write(esm_import$node_util.inspect(k),"\n"):console.log(k);return I$.g?I$.g(c,b):I$.call(null,c,b)}).catch(function(k){esm_import$squint_cljs$core.println(k);return J$(b,c)})},I$=function(a,b){if($APP.r(function(){var e=$APP.u(F$);return $APP.r(e)?e:!$APP.gk($APP.u(H$))}())){$APP.Jf(F$,!0);var c=$APP.hp($APP.u(H$)),d=function(){try{return $APP.jp(c,$APP.du)}catch(f){var e=
f;if(-1!=$APP.fH(e).indexOf("EOF while reading"))return M$;K$(c);$APP.FH.l($APP.F([$APP.t.h(e)]));return N$}}();if($APP.A.g(N$,d))return J$(b,a);if($APP.A.g(M$,d))return $APP.Jf(F$,!1);K$(c);if($APP.A.g($APP.ip,d))return J$(b,a);$APP.Va.call(null,"the-val",$APP.Ri.l($APP.F([d])));return Tha(d,b,a)}return null},O$=function(a,b){a.on("line",function(c){$APP.Wi.A(H$,$APP.t,c,"\n");return I$(b,a)})},Uha=function(a){var b=esm_import$readline.createInterface({input:a,output:a});O$(b,a);a.setNoDelay(!0);
return a.on("close",function(){return $APP.GH.l($APP.F(["Client closed connection."]))})},P$=function(a,b,c){return $APP.r(c)?esm_import$path.resolve(c,$APP.uH(a,b)):a},Q$=function(a,b,c){var d=$APP.zH.h(a),e=$APP.jH.h(a);b=P$(b,e,d);c=$APP.lH(c);d=null==c?null:P$(c,e,d);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.yH.g(a,".mjs"),a=$APP.qa(a,".")?a:[".",$APP.t.h(a)].join(""),e=esm_import$path.extname(d),["./",$APP.Zj(d,$APP.ki([$APP.t.h(e),
"$"].join("")),a)].join("")):null},R$=function(a,b,c,d){if($APP.r(a)){var e=esm_import$path.resolve(c,$APP.uH(b,d));c=esm_import$path.dirname(e);if($APP.r($APP.Ef(function(f){return f instanceof $APP.H?$APP.ii($APP.ki(["\\.",$APP.ai(f),"$"].join("")),e):"string"===typeof f?$APP.ii($APP.ki(f),e):null},a)))return $APP.r(esm_import$fs.existsSync(c))||($APP.GH.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0})),$APP.GH.l($APP.F(["[squint] zCopying resource",b,"to",
c])),esm_import$fs.copyFileSync(b,e)}return null},V$=function(a,b){var c=$APP.u($APP.kH),d=$APP.Qk.l($APP.F([c,a])),e=$APP.jH.h(c),f=S$.h(c),k=$APP.zH.g(c,".");a=$APP.Qd(b)?$APP.lg($APP.Yp.l(T$,$APP.F([e]))):b;b=$APP.zH.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.GH.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.GH(),$APP.GH.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.GH.l($APP.F(["[squint] Compiling CLJS file:",m])),$APP.AH($APP.Rh.l(d,$APP.vH,m,$APP.F([$APP.ur,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.xH);$APP.r(h)&&$APP.GH.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),Vha=new $APP.H(null,"show","show",-576705889),o$=new $APP.H(null,"boolean","boolean",-1919418404),Iha=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),Nha=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),Wha=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),Jha=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),Oha=new $APP.H(null,
"closed","closed",-919675359),M$=new $APP.H("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),Pha=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),Eha=new $APP.H(null,"s","s",1705939918),z$=new $APP.H(null,"cmds-opts","cmds-opts",-390130362),Xha=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.mr),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.mr=$APP.hy;$APP.ar=$APP.lr=!0;var b=function(){var d=$APP.IH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(Uha);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.GH.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.mr=$APP.ly;$APP.ar=$APP.lr=!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(H$)),"\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.Yp.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.I(null,1,5,$APP.N,[d],null)},$APP.F([c])))},Yha=new $APP.I(null,7,5,$APP.N,[new $APP.n(null,3,[j$,new $APP.I(null,1,5,$APP.N,["run"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.JH);var b=$APP.u($APP.kH),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.GH.l($APP.F(["[squint] Running",d]));return $APP.AH($APP.Rh.l(c,$APP.vH,d,$APP.F([$APP.ur,function(e){return Q$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.xH);e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",$APP.t.h(e)].join("");return shadow_esm_import(e)})},A$,new $APP.I(null,1,5,$APP.N,[$APP.$k],null)],null),new $APP.n(null,2,[j$,new $APP.I(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.JH);return V$(b,a)}],null),new $APP.n(null,2,[j$,new $APP.I(null,1,5,$APP.N,["repl"],null),$APP.yo,$$],null),new $APP.n(null,2,[j$,new $APP.I(null,1,5,$APP.N,["socket-repl"],null),$APP.yo,Z$],null),new $APP.n(null,2,[j$,new $APP.I(null,1,5,$APP.N,["nrepl-server"],null),$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.JH);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,[j$,new $APP.I(null,1,5,$APP.N,["watch"],null),$APP.yo,function(a){var b=$APP.u($APP.kH),c=$APP.Qk.l($APP.F([b,a])),d=$APP.jH.h(b),e=$APP.zH.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.GH.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(J,O,P,W,ca,ia,na,pa,fa,E,C){return function(ea,K){return $APP.r(esm_import$fs.existsSync(K))?
$$.h=function(){$APP.mr=$APP.hy;$APP.ar=$APP.lr=!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.Yp.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.I(null,1,5,$APP.N,[d],null)},$APP.F([c])))},Yha=new $APP.I(null,7,5,$APP.N,[new $APP.n(null,3,[i$,new $APP.I(null,1,5,$APP.N,["run"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.JH);var b=$APP.u($APP.kH),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.GH.l($APP.F(["[squint] Running",d]));return $APP.AH($APP.Rh.l(c,$APP.vH,d,$APP.F([$APP.ur,function(e){return Q$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.xH);e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",$APP.t.h(e)].join("");return shadow_esm_import(e)})},z$,new $APP.I(null,1,5,$APP.N,[$APP.$k],null)],null),new $APP.n(null,2,[i$,new $APP.I(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.JH);return V$(b,a)}],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["repl"],null),$APP.yo,$$],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["socket-repl"],null),$APP.yo,Z$],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["nrepl-server"],null),$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.JH);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.I(null,1,5,$APP.N,["watch"],null),$APP.yo,function(a){var b=$APP.u($APP.kH),c=$APP.Qk.l($APP.F([b,a])),d=$APP.jH.h(b),e=$APP.zH.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.GH.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(J,O,P,W,ca,ia,na,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.I(null,1,5,$APP.N,[K],null)).catch(function(){return function(M){return console.error(M)}}(J,O,P,W,ca,ia,na,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.Yd(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(J,O,P,W,ca,ia,na,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.I(null,1,5,$APP.N,[da],null)).catch(function(){return function(ha){return console.error(ha)}}(J,
O,P,W,ca,ia,na,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,[j$,$APP.kg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.JH);a=$APP.IE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.GH.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.Zp.h(c))?$APP.Zj("(do %s\n)",
"%s",a):a;a=$APP.QG.g(a,$APP.Rh.l(c,$APP.Zp,$APP.Zp.h(c),$APP.F([$APP.Gr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ly],null)),$APP.Lp,$APP.r($APP.Zp.h(c))?$APP.Op:$APP.Pp,$APP.gu,function(){var f=$APP.Zp.h(c);return $APP.r(f)?!1!==$APP.gu.h(c):f}()])));a=$APP.r($APP.Zp.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(Vha.h(c))&&$APP.GH.l($APP.F([a]));if(!1===Wha.h(c))return null;
e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");return($APP.r($APP.Zp.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.Zp.h(c))?$APP.FH.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.GH.l($APP.F(["Squint v0.7.106\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.Jr,new $APP.n(null,1,[Xha,U$],null),e$,new $APP.n(null,4,[$APP.gu,p$,$APP.Kr,p$,$APP.zH,$APP.nl,$APP.Zp,p$],null)],null),b=l$(process.argv.slice(2),a),c=$APP.jf(b),d=$APP.fe.g(c,j$),e=$APP.fe.g(c,k$);return $APP.oe.j(function(f,k){f=$APP.jf(k);var l=$APP.fe.g(f,j$),m=$APP.fe.g(f,$APP.yo),h=Rha(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=Qha(k,V9(a,$APP.F([f])));k=$APP.jf(f);var p=$APP.fe.g(k,
$APP.JH);f=$APP.fe.g(k,k$);k=$APP.fe.g(k,j$);var q=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.Rh.l(c,k$,q,$APP.F([W$,q,$APP.JH,p,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,Yha)})();
O,P,W,ca,ia,na,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.JH);a=$APP.KE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.GH.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.Zp.h(c))?$APP.Zj("(do %s\n)",
"%s",a):a;a=$APP.QG.g(a,$APP.Rh.l(c,$APP.Zp,$APP.Zp.h(c),$APP.F([$APP.Gr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.hy],null)),$APP.Lp,$APP.r($APP.Zp.h(c))?$APP.Op:$APP.Pp,$APP.gu,function(){var f=$APP.Zp.h(c);return $APP.r(f)?!1!==$APP.gu.h(c):f}()])));a=$APP.r($APP.Zp.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(Vha.h(c))&&$APP.GH.l($APP.F([a]));if(!1===Wha.h(c))return null;
e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");return($APP.r($APP.Zp.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.Zp.h(c))?$APP.FH.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.GH.l($APP.F(["Squint v0.7.107\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.Jr,new $APP.n(null,1,[Xha,U$],null),d$,new $APP.n(null,4,[$APP.gu,o$,$APP.Kr,o$,$APP.zH,$APP.nl,$APP.Zp,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=Sha(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=Rha(k,U9(a,$APP.F([f])));k=$APP.jf(f);var p=$APP.fe.g(k,
$APP.JH);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.JH,p,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,Yha)})();

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

sH=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Gr);a=$APP.jp($APP.hp(a),$APP.du);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(mH,$APP.y(l))?new $APP.I(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.nH.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.oH.h($APP.u($APP.pH));
return $APP.oe.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.Br),v=$APP.fe.g(h,$APP.Cr);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.gF,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.I(null,1,5,$APP.N,[$APP.qH],null)):O}();k.h?k.h(D):k.call(null,D);var J=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.Br),v=$APP.fe.g(h,$APP.Cr);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.gF,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.I(null,1,5,$APP.N,[$APP.qH],null)):O}();k.h?k.h(D):k.call(null,D);var J=function(){var O=$APP.S.h($APP.x($APP.R.g(new $APP.G(null,
rH,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(J);J=$APP.Oh(J);J=$APP.ui.g($APP.od,J);return $APP.bi(D,J)}()).then(function(D){return $APP.Wi.g(c,function(J){J=$APP.Uu(J,new $APP.I(null,2,5,$APP.N,[$APP.Bt,p],null),D);J=$APP.r(v)?$APP.Uu(J,new $APP.I(null,3,5,$APP.N,[d,$APP.Jr,v],null),p):J;return $APP.r(q)?$APP.Uu(J,new $APP.I(null,2,5,$APP.N,[d,$APP.Hr],
null),$APP.bi(q,$APP.Ir.h(p))):J})})})},Promise.resolve(null),e)}):null}return null};tH=function(a,b){return Promise.resolve(sH(a,b)).then(function(){return $APP.ru(a,b,null)})};
$APP.uH=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.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)};
$APP.AH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.vH),c=$APP.fe.g(a,wH),d=$APP.fe.g(a,$APP.xH),e=$APP.fe.g(a,$APP.yH),f=$APP.fe.j(a,$APP.zH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return tH(c,$APP.Rh.j(a,$APP.Gr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ly],null)))).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.qu),m=$APP.fe.g(k,$APP.xq),h=$APP.jH.g($APP.u($APP.kH),new $APP.I(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?h=d:(h=$APP.uH(b,h),
$APP.uH=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)};
$APP.AH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.vH),c=$APP.fe.g(a,wH),d=$APP.fe.g(a,$APP.xH),e=$APP.fe.g(a,$APP.yH),f=$APP.fe.j(a,$APP.zH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return tH(c,$APP.Rh.j(a,$APP.Gr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.hy],null)))).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.qu),m=$APP.fe.g(k,$APP.xq),h=$APP.jH.g($APP.u($APP.kH),new $APP.I(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?h=d:(h=$APP.uH(b,h),
$APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.Zj(e,/^\./,"")].join(""):null,m=$APP.r(m)?m:".mjs"),h=$APP.Zj(h,/.clj(s|c)$/,m));p=q.call(p,f,h);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.zH,f,$APP.xH,p],null));esm_import$fs.writeFileSync(p,l,"utf-8");return $APP.Rh.j(k,$APP.xH,p)})};

@@ -26,5 +26,5 @@ BH=function(a){return $APP.su.l(a,$APP.F([$APP.tu,!0]))};CH=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.Xc(f,0,null)}return c.call(this,e)}function c(d){d=$APP.Tu.g(BH,d);d=$APP.Gf.g(a,d);return d instanceof Promise?d.then($APP.nv):$APP.nv(d)}b.m=0;b.o=function(d){d=$APP.x(d);return c(d)};b.l=c;return b}()};$APP.YG.prototype.add=function(a){return this.C.push(a)};

arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.nH.g=function(a,b){return $APP.nH.j(a,a,b)};$APP.nH.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.nH.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.nH.m=3;$APP.cH.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.cH.prototype.$c=function(){return $APP.Za(this.f)};
$APP.cH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.zD,null==this.f?$APP.Fw:$APP.kB,$APP.lv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.HH=function HH(a){switch(arguments.length){case 1:return HH.h(arguments[0]);case 2:return HH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};
$APP.cH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.BD,null==this.f?$APP.Ew:$APP.iB,$APP.lv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.HH=function HH(a){switch(arguments.length){case 1:return HH.h(arguments[0]);case 2:return HH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};
$APP.HH.h=function(a){return hH(new $APP.n(null,3,[$APP.Cm,$APP.u($APP.SF),$APP.Dm,$APP.u($APP.RF),$APP.il,null],null),a)};$APP.HH.g=function(a,b){return hH($APP.Tm.j($APP.Qk.l($APP.F([new $APP.n(null,1,[$APP.Dm,$APP.u($APP.RF)],null),a])),$APP.Cm,function(c){return $APP.Qk.l($APP.F([$APP.u($APP.SF),c]))}),b)};$APP.HH.m=2;$APP.IH=new $APP.H(null,"port","port",1534937262);$APP.qH=new $APP.H(null,"reload","reload",863702807);$APP.JH=new $APP.H(null,"opts","opts",155075701);
$APP.zH=new $APP.H(null,"output-dir","output-dir",-290956991);mH=new $APP.H(null,"require-macros","require-macros",707947416);$APP.KH=new $APP.H(null,"message","message",-406056002);$APP.vH=new $APP.H(null,"in-file","in-file",-1682176692);$APP.LH=new $APP.H(null,"id","id",-1388402092);rH=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.jH=new $APP.H(null,"paths","paths",-1807389588);$APP.MH=new $APP.H(null,"eval","eval",-1103567905);
$APP.oH=new $APP.H(null,"eval-form","eval-form",-1934118476);$APP.xH=new $APP.H(null,"out-file","out-file",-1187066405);wH=new $APP.H(null,"in-str","in-str",-1014658121);$APP.yH=new $APP.H(null,"extension","extension",1453374065);$APP.kH=new $APP.cH(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.HH.h(a)}else a=null;return a},null);var NH;$APP.pH=$APP.Vi.h(null);NH=CH(tH);export const compileFile=CH($APP.AH);export const compileString=NH;

@@ -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 I9=function(a,b){a=a.indexOf(b);if(0>a)throw Error("out of input");return a},J9=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},K9=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},L9=function(a){return console.debug($APP.Jp.g(" ",a))},aha=function(a){return function(b,c){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.LH),e=$APP.fe.g(b,$ga);c=$APP.Rh.j(c,"id",d);c=$APP.r(e)?$APP.Rh.j(c,"session",e):c;return a.g?a.g(b,c):a.call(null,b,c)}},cha=function(){var a=
bha;return function(b,c){b=$APP.Tm.j(b,M9,$APP.zi);return a.g?a.g(b,c):a.call(null,b,c)}},eha=function(){var a=dha();return function(b,c){L9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},fha=function(a){return function(b,c){L9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},dha=function(){var a=cha();return function(b,c){return a.g?a.g(b,c):a.call(null,b,c)}},N9=function(a){return $APP.Rh.j($APP.bi(new $APP.I(null,3,5,$APP.N,["major","minor","incremental"],null),$APP.su.h(a.split("."))),
"version-string",a)},gha=function(a,b,c){if($APP.r(a))if(a=O9.h?O9.h(a):O9.call(null,a),$APP.r(a)){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.q9),e=$APP.fe.g(b,$APP.i9),f=$APP.fe.g(b,$APP.s9);b=$APP.Qa;var k=$APP.li,l=$APP.R6;$APP.Qa=e;$APP.li=f;$APP.R6=d;try{var m=new $APP.Fa;d=$APP.Ta;e=$APP.Ua;$APP.Ta=!0;$APP.Ua=function(h){return m.append(h)};try{a.h?a.h(c):a.call(null,c)}finally{$APP.Ua=e,$APP.Ta=d}return $APP.t.h(m)}finally{$APP.R6=l,$APP.li=k,$APP.Qa=b}}else return L9($APP.F(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"])),
$APP.Ri.l($APP.F([c]));else return $APP.Ri.l($APP.F([c]))},iha=function(a){a:{var b=$APP.mr;$APP.mr=$APP.u(P9);try{var c=$APP.ru(a,new $APP.n(null,5,[$APP.Lp,$APP.Op,$APP.Gr,hha,$APP.gu,!0,$APP.Zp,!0,$APP.Rp,!0],null),null);break a}finally{$APP.mr=b}c=void 0}c=$APP.jf(c);a=$APP.fe.g(c,$APP.qu);c=$APP.fe.g(c,$APP.T);a=$APP.Zj("(async function () {\n%s\n}) ()","%s",a);$APP.Jf(P9,c);return a},oha=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.T);a=$APP.fe.g(c,jha);$APP.fe.g(c,$APP.$k);$APP.fe.g(c,kha);
$APP.fe.g(c,lha);return Promise.resolve(a).then(iha).then(function(d){$APP.GH.l($APP.F(["About to eval:"]));$APP.GH.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(P9)),"value",gha(mha.h(c),nha.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.KH.h($APP.pj(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.mr)],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(P9)),"status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(c,d):b.call(null,c,d)})},Q9=function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.T);return null},bha=function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,M9),d=$APP.fe.g(R9,c);if($APP.r(d))return d.g?d.g(a,b):d.call(null,a,b);console.warn($APP.Jp.g(" ",$APP.F(["Unhandled operation",c])));
c=new $APP.n(null,1,["status",new $APP.I(null,3,5,$APP.N,["error","unknown-op","done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},pha=function(a){return function(b,c){return a.write(S9(c))}},qha=function(a,b){L9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=eha(),d=aha(fha(pha(b))),e=$APP.Vi.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.tu,!0]),k=$APP.kg;;){var m=$APP.Gf.j(T9,
l,f);l=$APP.B.j(m,0,null);m=$APP.B.j(m,1,null);if(null==l){k=new $APP.I(null,2,5,$APP.N,[k,m],null);break a}k=$APP.Ee.g(k,l);l=m}f=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);$APP.gk(k)||$APP.Jf(e,k);f=$APP.x(f);k=null;for(var h=m=0;;)if(h<m)l=k.ba(null,h),c(l,d),h+=1;else if(f=$APP.x(f))k=f,$APP.Yd(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),h=0;else return null});return b.on("close",function(f){return $APP.r(f)?L9($APP.F(["Connection lost"])):
L9($APP.F(["Connection closed"]))})},lha=new $APP.H(null,"_line","_line",232847719),nha=new $APP.H("nrepl.middleware.print","options","nrepl.middleware.print/options",868480159),$ga=new $APP.H(null,"session","session",1008279103),rha=new $APP.H(null,"lookup","lookup",1225356838),sha=new $APP.H(null,"load-file","load-file",-424586670),kha=new $APP.H(null,"_load-file?","_load-file?",-1198848711),M9=new $APP.H(null,"op","op",-1882987955),tha=new $APP.H(null,"describe","describe",1369790582),jha=new $APP.H(null,
"code","code",1586293142),uha=new $APP.H(null,"eldoc","eldoc",-1321421900),vha=new $APP.H(null,"log_level","log_level",-1756736313),mha=new $APP.H("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),wha=new $APP.H(null,"clone","clone",711747572),xha=new $APP.H(null,"close","close",1835149582),yha=new $APP.H(null,"info","info",-317069002),zha=new $APP.H(null,"host","host",-1558485167),Aha=new $APP.H(null,"complete","complete",-500388775);var U9=function U9(a,b){switch($APP.t.h(K9(a,1))){case "i":return a=J9(a,1),b=I9(a,"e"),new $APP.I(null,2,5,$APP.N,[parseInt(K9(a,b)),J9(a,b+1)],null);case "l":var d=a=J9(a,1);for(a=$APP.mc($APP.kg);;){if($APP.A.g($APP.t.h(K9(d,1)),"e"))return new $APP.I(null,2,5,$APP.N,[$APP.oc(a),J9(d,1)],null);var e=U9.g?U9.g(d,b):U9.call(null,d,b),f=$APP.B.j(e,0,null),k=$APP.B.j(e,1,null);e=k;a=$APP.fg.g(a,f);d=e}case "d":for(a=J9(a,1),f=$APP.jf(b),f=$APP.fe.g(f,$APP.tu),d=a,e=$APP.mc($APP.hf);;){if($APP.A.g($APP.t.h(K9(d,
1)),"e"))return new $APP.I(null,2,5,$APP.N,[$APP.oc(e),J9(d,1)],null);a=U9.g?U9.g(d,b):U9.call(null,d,b);d=$APP.B.j(a,0,null);k=$APP.B.j(a,1,null);k=U9.g?U9.g(k,b):U9.call(null,k,b);a=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);d=$APP.r(f)?$APP.zi.h(d):d;a=$APP.Ug.j(e,d,a);d=k;e=a}default:return b=I9(a,":"),f=parseInt(K9(a,b)),a=J9(a,b+1),new $APP.I(null,2,5,$APP.N,[$APP.t.h(K9(a,f)),J9(a,f)],null)}},T9=function T9(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return T9.l(arguments[0],
1<c.length?new $APP.Xc(c.slice(1),0,null):null)};T9.l=function(a,b){try{return U9(a,b)}catch(c){if(c instanceof Error)return new $APP.I(null,2,5,$APP.N,[null,a],null);throw c;}};T9.m=1;T9.o=function(a){var b=$APP.y(a);a=$APP.z(a);return this.l(b,a)};
var S9=function S9(a){for(;;){if("string"===typeof a)return[$APP.t.h(Buffer.from(a).length),":",a].join("");if(a instanceof $APP.H||a instanceof $APP.w)a=[function(){var c=$APP.Le(a);return $APP.r(c)?[c,"/"].join(""):null}(),$APP.ai(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.ui.g(S9,a))),"e"].join(""):$APP.Vd(a)?["d",$APP.t.h($APP.Gf.g($APP.t,$APP.ui.g(function(){return function(c){var d=$APP.B.j(c,
0,null);c=$APP.B.j(c,1,null);return[$APP.t.h(S9.h?S9.h(d):S9.call(null,d)),$APP.t.h(S9.h?S9.h(c):S9.call(null,c))].join("")}}(a),$APP.EH.g($APP.y,a)))),"e"].join(""):null}};var P9=$APP.Vi.h($APP.mr),O9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.z9],null);$APP.Vi.h(!1);
var hha=$APP.Vi.h($APP.hf),R9=$APP.vh([rha,xha,sha,uha,wha,tha,yha,Aha,$APP.MH],[Q9,function(a,b){var c=new $APP.n(null,1,["status",new $APP.I(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.$k);return null},Q9,function(a,b){var c=new $APP.n(null,2,["new-session",$APP.t.h($APP.eH()),"status",new $APP.I(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",N9("TODO"),"node",N9(process.version)],null),"aux",$APP.hf,"ops",$APP.bi($APP.ui.g($APP.ai,$APP.Kh(R9)),$APP.Ir.h($APP.hf)),"status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},Q9,function(){return null},function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,$APP.T);$APP.FH.l($APP.F([$APP.T,c]));return oha($APP.Rh.j(a,$APP.T,$APP.u(P9)),b)}]),Bha=$APP.Vi.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.IH.h(a);return $APP.r(e)?e:0}(),c=function(){var e=zha.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:vha.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Tk.g(qha,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.GH.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.Jp.g(" ",$APP.F(["Could not write .nrepl-port",k])))}});return $APP.Jf(Bha,d)})};
var G9=function(a,b){a=a.indexOf(b);if(0>a)throw Error("out of input");return a},H9=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},I9=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},J9=function(a){return console.debug($APP.Jp.g(" ",a))},cha=function(a){return function(b,c){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.LH),e=$APP.fe.g(b,bha);c=$APP.Rh.j(c,"id",d);c=$APP.r(e)?$APP.Rh.j(c,"session",e):c;return a.g?a.g(b,c):a.call(null,b,c)}},eha=function(){var a=
dha;return function(b,c){b=$APP.Tm.j(b,K9,$APP.zi);return a.g?a.g(b,c):a.call(null,b,c)}},gha=function(){var a=fha();return function(b,c){J9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},hha=function(a){return function(b,c){J9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},fha=function(){var a=eha();return function(b,c){return a.g?a.g(b,c):a.call(null,b,c)}},L9=function(a){return $APP.Rh.j($APP.bi(new $APP.I(null,3,5,$APP.N,["major","minor","incremental"],null),$APP.su.h(a.split("."))),
"version-string",a)},iha=function(a,b,c){if($APP.r(a))if(a=M9.h?M9.h(a):M9.call(null,a),$APP.r(a)){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.n9),e=$APP.fe.g(b,$APP.g9),f=$APP.fe.g(b,$APP.p9);b=$APP.Qa;var k=$APP.li,l=$APP.P6;$APP.Qa=e;$APP.li=f;$APP.P6=d;try{var m=new $APP.Fa;d=$APP.Ta;e=$APP.Ua;$APP.Ta=!0;$APP.Ua=function(h){return m.append(h)};try{a.h?a.h(c):a.call(null,c)}finally{$APP.Ua=e,$APP.Ta=d}return $APP.t.h(m)}finally{$APP.P6=l,$APP.li=k,$APP.Qa=b}}else return J9($APP.F(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"])),
$APP.Ri.l($APP.F([c]));else return $APP.Ri.l($APP.F([c]))},jha=function(a){a=$APP.ru(a,new $APP.n(null,4,[$APP.Lp,$APP.Op,$APP.gu,!0,$APP.Zp,!0,$APP.Rp,!0],null),$APP.u(N9));var b=$APP.jf(a),c=$APP.fe.g(b,$APP.qu);a=$APP.fe.g(b,$APP.T);$APP.Jf(N9,b);b=$APP.Zj("(async function () {\n%s\n}) ()","%s",c);$APP.Jf(O9,a);return b},pha=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.T);a=$APP.fe.g(c,kha);$APP.fe.g(c,$APP.$k);$APP.fe.g(c,lha);$APP.fe.g(c,mha);return Promise.resolve(a).then(jha).then(function(d){$APP.GH.l($APP.F(["About to eval:"]));
$APP.GH.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(O9)),"value",iha(nha.h(c),oha.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.KH.h($APP.pj(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.mr)],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(O9)),"status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(c,d):b.call(null,c,d)})},P9=function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.T);return null},dha=function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,K9),d=$APP.fe.g(Q9,c);if($APP.r(d))return d.g?d.g(a,b):d.call(null,a,b);console.warn($APP.Jp.g(" ",$APP.F(["Unhandled operation",c])));c=new $APP.n(null,1,["status",new $APP.I(null,3,5,$APP.N,["error","unknown-op","done"],null)],null);return b.g?b.g(a,
c):b.call(null,a,c)},qha=function(a){return function(b,c){return a.write(R9(c))}},rha=function(a,b){J9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=gha(),d=cha(hha(qha(b))),e=$APP.Vi.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.tu,!0]),k=$APP.kg;;){var m=$APP.Gf.j(S9,l,f);l=$APP.B.j(m,0,null);m=$APP.B.j(m,1,null);if(null==l){k=new $APP.I(null,2,5,$APP.N,[k,m],null);break a}k=$APP.Ee.g(k,
l);l=m}f=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);$APP.gk(k)||$APP.Jf(e,k);f=$APP.x(f);k=null;for(var h=m=0;;)if(h<m)l=k.ba(null,h),c(l,d),h+=1;else if(f=$APP.x(f))k=f,$APP.Yd(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),h=0;else return null});return b.on("close",function(f){return $APP.r(f)?J9($APP.F(["Connection lost"])):J9($APP.F(["Connection closed"]))})},mha=new $APP.H(null,"_line","_line",232847719),oha=new $APP.H("nrepl.middleware.print",
"options","nrepl.middleware.print/options",868480159),bha=new $APP.H(null,"session","session",1008279103),sha=new $APP.H(null,"lookup","lookup",1225356838),tha=new $APP.H(null,"load-file","load-file",-424586670),lha=new $APP.H(null,"_load-file?","_load-file?",-1198848711),K9=new $APP.H(null,"op","op",-1882987955),uha=new $APP.H(null,"describe","describe",1369790582),kha=new $APP.H(null,"code","code",1586293142),vha=new $APP.H(null,"eldoc","eldoc",-1321421900),wha=new $APP.H(null,"log_level","log_level",
-1756736313),nha=new $APP.H("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),xha=new $APP.H(null,"clone","clone",711747572),yha=new $APP.H(null,"close","close",1835149582),zha=new $APP.H(null,"info","info",-317069002),Aha=new $APP.H(null,"host","host",-1558485167),Bha=new $APP.H(null,"complete","complete",-500388775);var T9=function T9(a,b){switch($APP.t.h(I9(a,1))){case "i":return a=H9(a,1),b=G9(a,"e"),new $APP.I(null,2,5,$APP.N,[parseInt(I9(a,b)),H9(a,b+1)],null);case "l":var d=a=H9(a,1);for(a=$APP.mc($APP.kg);;){if($APP.A.g($APP.t.h(I9(d,1)),"e"))return new $APP.I(null,2,5,$APP.N,[$APP.oc(a),H9(d,1)],null);var e=T9.g?T9.g(d,b):T9.call(null,d,b),f=$APP.B.j(e,0,null),k=$APP.B.j(e,1,null);e=k;a=$APP.fg.g(a,f);d=e}case "d":for(a=H9(a,1),f=$APP.jf(b),f=$APP.fe.g(f,$APP.tu),d=a,e=$APP.mc($APP.hf);;){if($APP.A.g($APP.t.h(I9(d,
1)),"e"))return new $APP.I(null,2,5,$APP.N,[$APP.oc(e),H9(d,1)],null);a=T9.g?T9.g(d,b):T9.call(null,d,b);d=$APP.B.j(a,0,null);k=$APP.B.j(a,1,null);k=T9.g?T9.g(k,b):T9.call(null,k,b);a=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);d=$APP.r(f)?$APP.zi.h(d):d;a=$APP.Ug.j(e,d,a);d=k;e=a}default:return b=G9(a,":"),f=parseInt(I9(a,b)),a=H9(a,b+1),new $APP.I(null,2,5,$APP.N,[$APP.t.h(I9(a,f)),H9(a,f)],null)}},S9=function S9(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return S9.l(arguments[0],
1<c.length?new $APP.Xc(c.slice(1),0,null):null)};S9.l=function(a,b){try{return T9(a,b)}catch(c){if(c instanceof Error)return new $APP.I(null,2,5,$APP.N,[null,a],null);throw c;}};S9.m=1;S9.o=function(a){var b=$APP.y(a);a=$APP.z(a);return this.l(b,a)};
var R9=function R9(a){for(;;){if("string"===typeof a)return[$APP.t.h(Buffer.from(a).length),":",a].join("");if(a instanceof $APP.H||a instanceof $APP.w)a=[function(){var c=$APP.Le(a);return $APP.r(c)?[c,"/"].join(""):null}(),$APP.ai(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.ui.g(R9,a))),"e"].join(""):$APP.Vd(a)?["d",$APP.t.h($APP.Gf.g($APP.t,$APP.ui.g(function(){return function(c){var d=$APP.B.j(c,
0,null);c=$APP.B.j(c,1,null);return[$APP.t.h(R9.h?R9.h(d):R9.call(null,d)),$APP.t.h(R9.h?R9.h(c):R9.call(null,c))].join("")}}(a),$APP.EH.g($APP.y,a)))),"e"].join(""):null}};var O9=$APP.Vi.h($APP.mr),M9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.x9],null);$APP.Vi.h(!1);
var N9=$APP.Vi.h(null),Q9=$APP.vh([sha,yha,tha,vha,xha,uha,zha,Bha,$APP.MH],[P9,function(a,b){var c=new $APP.n(null,1,["status",new $APP.I(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.$k);return null},P9,function(a,b){var c=new $APP.n(null,2,["new-session",$APP.t.h($APP.eH()),"status",new $APP.I(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",L9("TODO"),"node",L9(process.version)],null),"aux",$APP.hf,"ops",$APP.bi($APP.ui.g($APP.ai,$APP.Kh(Q9)),$APP.Ir.h($APP.hf)),"status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},P9,function(){return null},function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,$APP.T);$APP.FH.l($APP.F([$APP.T,c]));return pha($APP.Rh.j(a,$APP.T,$APP.u(O9)),b)}]),Cha=$APP.Vi.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.IH.h(a);return $APP.r(e)?e:0}(),c=function(){var e=Aha.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:wha.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Tk.g(rha,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.GH.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.Jp.g(" ",$APP.F(["Could not write .nrepl-port",k])))}});return $APP.Jf(Cha,d)})};

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

"sideEffects": false,
"version": "0.7.106",
"version": "0.7.107",
"files": [

@@ -8,0 +8,0 @@ "core.js",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc