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.0.10 to 0.0.11

2

core.js

@@ -462,3 +462,3 @@ // @ts-check

function lazy(f) {
export function lazy(f) {
return new LazyIterable(f);

@@ -465,0 +465,0 @@ }

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

import*as esm_import$fs from"fs";import*as esm_import$readline from"readline";import*as esm_import$squint_cljs$core from"squint-cljs/core.js";import*as esm_import$process from"process";import*as esm_import$url from"url";import*as esm_import$path from"path";
var $8=function(a,b){return $APP.Je(a)&&$APP.Je(b)?$APP.np.j($APP.J.g([a,b],0)):$APP.Ae(a)&&($APP.He(a)||$APP.Be(a))&&$APP.Ae(b)&&($APP.He(b)||$APP.Be(b))?$APP.xj.g(a,b):b},a9=function(a,b){return $APP.qf.l(function(c,d){return $APP.op.j($8,$APP.J.g([c,d],0))},a,b)},c9=function(a){throw $APP.vq.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.p(null,1,[b9,a],null));},d9=function(a){var b=JSON.parse(a);return $APP.Te(b)?b:c9(a)},e9=function(a){var b=JSON.parse(a);return $APP.Ze(b)?b:c9(a)},
f9=function(a){var b=JSON.parse(a);return $APP.df(b)?b:c9(a)},g9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:c9(a)},h9=function(a){return $APP.ee.g(":",0<a.length?a.charAt(0):null)?$APP.nl.h($APP.cl.g(a,1)):$APP.nl.h(a)},i9=function(a){return $APP.Ae(a)?$APP.x(a):a},j9=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.ee.g("true",a)||$APP.ee.g("false",a))var c=d9(a);else{if($APP.bb(isNaN(a)))var d=g9(a);else{var e=$APP.ee.g(":",b);var f=e?$APP.Zk(/:?[a-zA-Z0-9]+/,
a):e;d=$APP.r(f)?h9(a):a}c=d}return c}catch(l){return a}else return a},n9=function(a,b){var c=function(){switch(b instanceof $APP.D?b.xa:null){case "boolean":return d9;case "int":case "long":return e9;case "double":return f9;case "number":return g9;case "symbol":return $APP.yl;case "keyword":return h9;case "string":return $APP.xf;case "edn":return $APP.OM;case "auto":return j9;default:return b}}();if("string"===typeof a){try{var d=c.h?c.h(a):c.call(null,a)}catch(e){d=k9}if($APP.ee.g(k9,d))throw $APP.vq.g(["Coerce failure: cannot transform input ",
$APP.Pp.j($APP.J.g([a],0)),b instanceof $APP.D?" to ":" with ",$APP.t.h(b instanceof $APP.D?$APP.Lk(b):b)].join(""),new $APP.p(null,2,[l9,a,m9,b],null));return d}return a},o9=function(a,b,c){a=$APP.ef.g(a,b);c=$APP.r(a)?a:$APP.Ae(c)?$APP.pe(c):null;return $APP.r(c)?$APP.Ae(c)?$APP.wo.g($APP.Bg,c):c:null},p9=function(a,b,c,d){return $APP.Ak.g(b,c)?(c=$APP.jf(a,b),$APP.r(c)?($APP.A.l(c,0,null),c=$APP.A.l(c,1,null),$APP.Bk.l(a,b,$APP.r(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.Bk.l(a,b,$APP.r(d)?
d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},q9=function(a,b,c,d,e){d=$APP.r($APP.r(d)?!$APP.Ae(d):d)?n9(e,d):j9(e);return $APP.r(c)?$APP.Qo.B(a,b,c,d):$APP.Bk.l(a,b,d)},v9=function(a){return $APP.qf.l(function(b,c){var d=$APP.A.l(c,0,null);c=$APP.A.l(c,1,null);var e=$APP.uh(c),f=$APP.ef.g(e,r9),l=$APP.ef.g(e,s9);c=$APP.ef.g(e,$APP.Bt);var k=$APP.ef.g(e,$APP.KE);e=$APP.ef.g(e,t9);b=$APP.r(f)?$APP.Qo.G(b,r9,$APP.Bk,d,f):b;b=$APP.r(l)?$APP.Qo.l(b,s9,function(m){if($APP.gf(m,l))throw $APP.vq.g(["Conflicting alias ",
$APP.t.h(l)," between ",$APP.t.h($APP.ef.g(m,l))," and ",$APP.t.h(d)].join(""),new $APP.p(null,1,[s9,l],null));return $APP.Bk.l(m,l,d)}):b;b=$APP.r(k)?$APP.Qo.l(b,$APP.KE,$APP.wo.g(function(m){return $APP.Bg.g(m,d)},$APP.Fk)):b;b=$APP.r(e)?$APP.Qo.G(b,t9,$APP.Bk,d,e):b;return $APP.r(c)?$APP.Qo.G(b,u9,$APP.Bk,d,c):b},$APP.th,a)},z9=function(a,b){b=$APP.uh(b);var c=$APP.ef.g(b,w9);b=$APP.Wk(function(d){var e=$APP.r(c)?null:$APP.nr(d,":");return!($APP.r(e)?e:$APP.nr(d,"-"))},a);a=$APP.A.l(b,0,null);
b=$APP.A.l(b,1,null);return new $APP.p(null,2,[x9,a,y9,b],null)},B9=function(a,b){if($APP.r(b))if($APP.w(a)){var c=$APP.de(a),d=$APP.ih(c,b);c=c<d?c:d;a=new $APP.F(null,2,5,$APP.G,[$APP.N.g($APP.Io.g(b,a),$APP.hi.g(c,a)),$APP.hi.g(c,b)],null)}else a=new $APP.F(null,2,5,$APP.G,[a,b],null);else a=new $APP.F(null,2,5,$APP.G,[a,b],null);b=a;a=$APP.A.l(b,0,null);b=$APP.A.l(b,1,null);return new $APP.p(null,2,[y9,a,A9,b],null)},S9=function(a,b){function c(eb){eb=$APP.np.j($APP.J.g([new $APP.p(null,2,[C9,
d,$APP.hs,D9],null),eb],0));return H.h?H.h(eb):H.call(null,eb)}var d=C9.h(b),e=$APP.r(d)?a9(b,$APP.J.g([v9(d)],0)):b,f=r9.h(e),l=function(){var eb=s9.h(e);return $APP.r(eb)?eb:$APP.XI.h(e)}(),k=E9.h(e),m=$APP.KE.h(e),h=u9.h(e),q=w9.h(e),n=function(){var eb=F9.h(e);return $APP.r(eb)?eb:G9.h(e)}(),v=$APP.ee.g(!0,n)?function(){var eb=null==d?null:$APP.wk(d);eb=null==eb?null:$APP.N.g(eb,$APP.wk(f));return null==eb?null:$APP.Jk(eb)}():null==n?null:$APP.Jk(n),C=t9.h(e),H=function(){var eb=H9.h(e);return $APP.r(eb)?
eb:function(bc){bc=$APP.uh(bc);var yc=$APP.ef.g(bc,I9);throw $APP.vq.g(yc,bc);}}(),O=z9(a,null),P=$APP.uh(O),V=$APP.ef.g(P,x9),aa=$APP.ef.g(P,y9),da=function(){var eb=A9.h(e);eb=$APP.r(eb)?eb:J9.h(e);return $APP.r(eb)?B9(V,eb):new $APP.p(null,2,[A9,null,y9,aa],null)}(),ia=$APP.uh(da),na=$APP.ef.g(ia,y9),ca=$APP.ef.g(ia,A9),E=$APP.Ak.g(na,aa)?new $APP.F(null,2,5,$APP.G,[null,$APP.N.g(na,aa)],null):new $APP.F(null,2,5,$APP.G,[V,aa],null),z=$APP.A.l(E,0,null),ba=$APP.A.l(E,1,null),I=function(){for(var eb=
$APP.r(h)?h:$APP.th,bc=null,yc=null,Wf=$APP.r(q)?K9:null,sd=$APP.w(ba),Xf=ca;;){if($APP.bb(sd))return new $APP.F(null,3,5,$APP.G,[eb,bc,yc],null);var Bc=$APP.x(sd),Og=Bc instanceof $APP.D;if(Og){var Qc=p9(eb,bc,yc,null),Cb=yc,Yf=Wf;sd=$APP.y(sd);eb=Qc;bc=Bc;yc=Cb;Wf=Yf}else{Qc=Og?null:o9(k,bc,$APP.ef.g(f,bc));Cb=Og?null:0<Bc.length?Bc.charAt(0):null;var dk=Og?null:$APP.ee.g(Cb,"-"),ek=function(){var zc=Wf;return $APP.r(zc)?zc:$APP.r(dk)?K9:null}(),gj=Og?null:$APP.ee.g(":",Cb),fk=Og?null:function(){var zc=
$APP.Ak.g(K9,ek);return zc?(zc=gj,$APP.r(zc)?$APP.bb(bc)||$APP.ee.g(yc,bc):zc):zc}(),Pg=function(){var zc=ek;return $APP.r(zc)?zc:Og?null:$APP.r(fk)?L9:null}();if($APP.r(function(){var zc=dk;return $APP.r(zc)?zc:fk}())){if(Yf=(Cb=$APP.nr(Bc,"--"))&&$APP.ee.g("--",Bc)){var gk=$APP.y(sd);return new $APP.F(null,3,5,$APP.G,[function(){var zc=eb;return gk?$APP.ro.B(zc,$APP.Oo,new $APP.F(null,2,5,$APP.G,[D9,y9],null),$APP.sf(gk)):zc}(),bc,yc],null)}Bc=Cb?$APP.cl.g(Bc,2):$APP.Cr(Bc,/^(:|-|)/,"");Bc=Cb?$APP.Pw.g(Bc,
/=/):new $APP.F(null,1,5,$APP.G,[Bc],null);Cb=$APP.A.l(Bc,0,null);Bc=$APP.A.l(Bc,1,null);Cb=$APP.nl.h(Cb);Cb=$APP.ef.l(l,Cb,Cb);$APP.r(Bc)?(Qc=p9(eb,bc,yc,Qc),Yf=Pg,sd=$APP.Eg(Bc,$APP.Dd(sd)),eb=Qc,bc=Cb,yc=null,Wf=Yf):(Qc=p9(eb,bc,yc,Qc),Bc=Cb,Cb=yc,Yf=Pg,sd=$APP.y(sd),eb=Qc,bc=Bc,yc=Cb,Wf=Yf)}else if(Cb=$APP.ef.g(f,bc),Yf=$APP.ee.g(M9,Cb)&&$APP.Ak.g(Bc,"true")&&$APP.Ak.g(Bc,"false")||$APP.ee.g(yc,bc)&&$APP.bb(Qc))if(Xf=$APP.r(sd)?$APP.r(Xf)?B9(sd,Xf):new $APP.p(null,1,[y9,sd],null):new $APP.p(null,
1,[y9,sd],null),Qc=$APP.uh(Xf),Xf=$APP.ef.g(Qc,y9),Qc=$APP.ef.g(Qc,A9),$APP.Ak.g(sd,Xf))sd=Xf,Xf=Qc,Wf=Pg;else return new $APP.F(null,3,5,$APP.G,[$APP.ro.B(eb,$APP.Oo,new $APP.F(null,2,5,$APP.G,[D9,y9],null),$APP.sf(sd)),bc,yc],null);else{try{var Qg=q9(eb,bc,Qc,i9(Cb),Bc)}catch(zc){c(new $APP.p(null,4,[N9,r9,I9,$APP.xm(zc),O9,bc,P9,Bc],null)),Qg=eb}Qc=$APP.r(function(){var zc=$APP.ee.g(L9,Pg);return zc?gj:zc}())?null:bc;Bc=$APP.r(function(){var zc=$APP.ee.g(L9,Pg);return zc?gj:zc}())?null:bc;Cb=Pg;
sd=$APP.y(sd);eb=Qg;bc=Qc;yc=Bc;Wf=Cb}}}}(),K=$APP.A.l(I,0,null),ea=$APP.A.l(I,1,null),ja=$APP.A.l(I,2,null),ha=o9(k,ea,$APP.ef.g(n9,ea)),pa=function(){var eb=p9(K,ea,ja,ha);return $APP.w(z)?$APP.ro.B(eb,$APP.Po,new $APP.F(null,2,5,$APP.G,[D9,y9],null),function(bc){return $APP.xj.g($APP.sf(z),bc)}):eb}();if($APP.r(v)){a=$APP.w($APP.wk(pa));b=null;for(var ra=0,ua=0;;)if(ua<ra){var va=b.S(null,ua);$APP.gf(v,va)||c(new $APP.p(null,4,[N9,F9,I9,["Unknown option: ",$APP.t.h(va)].join(""),F9,v,O9,va],null));
ua+=1}else if(a=$APP.w(a))b=a,$APP.Me(b)?(a=$APP.Yc(b),ua=$APP.Zc(b),b=a,ra=$APP.de(a),a=ua):(a=$APP.x(b),$APP.gf(v,a)||c(new $APP.p(null,4,[N9,F9,I9,["Unknown option: ",$APP.t.h(a)].join(""),F9,v,O9,a],null)),a=$APP.y(b),b=null,ra=0),ua=0;else break}if($APP.r(m))for(a=$APP.w(m),b=null,ua=ra=0;;)if(ua<ra)va=b.S(null,ua),$APP.r($APP.jf(pa,va))||c(new $APP.p(null,4,[N9,$APP.KE,I9,["Required option: ",$APP.t.h(va)].join(""),$APP.KE,m,O9,va],null)),ua+=1;else if(a=$APP.w(a))b=a,$APP.Me(b)?(a=$APP.Yc(b),
ua=$APP.Zc(b),b=a,ra=$APP.de(a),a=ua):(a=$APP.x(b),$APP.r($APP.jf(pa,a))||c(new $APP.p(null,4,[N9,$APP.KE,I9,["Required option: ",$APP.t.h(a)].join(""),$APP.KE,m,O9,a],null)),a=$APP.y(b),b=null,ra=0),ua=0;else break;if($APP.r(C))for(var Aa=$APP.w(C),Ea=null,xa=0,wa=0;;)if(wa<xa){var Ka=Ea.S(null,wa),Pa=$APP.A.l(Ka,0,null),Wa=$APP.A.l(Ka,1,null),hb=function(){var eb=(eb=$APP.Je(Wa))?Q9.h(Wa):eb;return $APP.r(eb)?eb:Wa}(),mb=$APP.jf(pa,Pa);if($APP.r(mb)){var Jb=mb,Xb=$APP.A.l(Jb,0,null),rc=$APP.A.l(Jb,
1,null);if(!$APP.r(hb.h?hb.h(rc):hb.call(null,rc))){var zb=function(){var eb=R9.h(Wa);return $APP.r(eb)?eb:function(){return function(bc){var yc=$APP.uh(bc);bc=$APP.ef.g(yc,O9);yc=$APP.ef.g(yc,P9);return["Invalid value for option ",$APP.t.h(bc),": ",$APP.t.h(yc)].join("")}}(Aa,Ea,xa,wa,eb,Jb,Xb,rc,mb,hb,Ka,Pa,Wa,d,e,f,l,k,m,h,q,n,v,C,H,c,O,P,V,aa,da,ia,na,ca,E,z,ba,I,K,ea,ja,ha,pa)}();c(new $APP.p(null,5,[N9,t9,I9,function(){var eb=new $APP.p(null,2,[O9,Pa,P9,rc],null);return zb.h?zb.h(eb):zb.call(null,
eb)}(),t9,C,O9,Pa,P9,rc],null))}}wa+=1}else{var Ne=$APP.w(Aa);if(Ne){var Mg=Ne;if($APP.Me(Mg))ra=$APP.Yc(Mg),a=$APP.Zc(Mg),b=ra,ra=$APP.de(ra),Aa=a,Ea=b,xa=ra;else{var ak=$APP.x(Mg),ej=$APP.A.l(ak,0,null),xh=$APP.A.l(ak,1,null),fj=function(){var eb=(eb=$APP.Je(xh))?Q9.h(xh):eb;return $APP.r(eb)?eb:xh}(),bk=$APP.jf(pa,ej);if($APP.r(bk)){var ck=bk,Um=$APP.A.l(ck,0,null),hc=$APP.A.l(ck,1,null);if(!$APP.r(fj.h?fj.h(hc):fj.call(null,hc))){var Ng=function(){var eb=R9.h(xh);return $APP.r(eb)?eb:function(){return function(bc){var yc=
$APP.uh(bc);bc=$APP.ef.g(yc,O9);yc=$APP.ef.g(yc,P9);return["Invalid value for option ",$APP.t.h(bc),": ",$APP.t.h(yc)].join("")}}(Aa,Ea,xa,wa,eb,ck,Um,hc,bk,fj,ak,ej,xh,Mg,Ne,d,e,f,l,k,m,h,q,n,v,C,H,c,O,P,V,aa,da,ia,na,ca,E,z,ba,I,K,ea,ja,ha,pa)}();c(new $APP.p(null,5,[N9,t9,I9,function(){var eb=new $APP.p(null,2,[O9,ej,P9,hc],null);return Ng.h?Ng.h(eb):Ng.call(null,eb)}(),t9,C,O9,ej,P9,hc],null))}}Aa=$APP.y(Mg);Ea=null;xa=0}wa=0}else break}return pa},T9=function(a,b){a=S9(a,b);b=D9.h($APP.we(a));
return $APP.Bk.l(b,$APP.kJ,$APP.In.g(a,D9))},U9=function(a,b){var c=$APP.ni($APP.de(a),b);b=$APP.A.l(c,0,null);c=$APP.A.l(c,1,null);return $APP.ee.g(b,a)?c:null},Y9=function(a,b){$APP.bi(V9,!1);a.setPrompt([$APP.t.h($APP.uy),"\x3d\x3e "].join(""));a.prompt();return $APP.oG($APP.ec(W9))?null:X9.g?X9.g(b,a):X9.call(null,b,a)},Z9=function(a){var b=$APP.Sr(a);a=$APP.Tr(a);var c=$APP.nG($APP.ec(W9));b=$APP.hi.g(b-1,c);c=$APP.w(b);b=$APP.x(c);c=$APP.y(c);a=$APP.r(b)?$APP.cl.g(b,a):null;$APP.bi(W9,$APP.dw.g("\n",
$APP.Eg(a,c)))},$9=function(a){var b=[".repl/",$APP.t.h($APP.$p.v()),".mjs"].join("");$APP.r(esm_import$fs.existsSync(".repl"))||esm_import$fs.mkdirSync(".repl");esm_import$fs.writeFileSync(b,a);return shadow_esm_import($APP.t.h(esm_import$url.pathToFileURL(esm_import$path.resolve(esm_import$process.cwd(),b)))).finally(function(){return esm_import$fs.unlinkSync(b)})},b$=function(a,b,c){var d=function(){var f=$APP.uy;$APP.uy=$APP.ec(a$);try{return $APP.zy($APP.Pp.j($APP.J.g([a],0)),null)}finally{$APP.uy=
f}}(),e=$APP.uh(d);d=$APP.ef.g(e,$APP.yy);e=$APP.ef.g(e,$APP.R);$APP.bi(a$,e);return $9(d).then(function(){esm_import$squint_cljs$core.println(globalThis._repl);return Y9(b,c)}).catch(function(f){esm_import$squint_cljs$core.println(f);return Y9(b,c)})},X9=function(a,b){if($APP.r(function(){var e=$APP.ec(V9);return $APP.r(e)?e:$APP.oG($APP.ec(W9))}()))return null;$APP.bi(V9,!0);var c=$APP.Tv($APP.ec(W9)),d=function(){try{return $APP.Vv(c,$APP.Sv($APP.th))}catch(f){var e=f;if(-1!=$APP.xm(e).indexOf("EOF while reading"))return c$;
Z9(c);$APP.Wp.j($APP.J.g([$APP.t.h(e)],0));return d$}}();if($APP.ee.g(d$,d))return Y9(b,a);if($APP.ee.g(c$,d))return $APP.bi(V9,!1);Z9(c);return $APP.ee.g($APP.Uv,d)?$APP.bi(V9,!1):b$(d,b,a)},e$=function(a){a.on("line",function(b){$APP.Tl.B(W9,$APP.t,b,"\n");return X9(null,a)})},g$=function(a,b){return $APP.r(f$.h(a))?($APP.Up.j($APP.J.g(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"],0)),$APP.Up(),$APP.Up.j($APP.J.g(["Options:\n\n--elide-imports: do not include imports\n--elide-exports: do not include exports\n--extension: default extension for JS files"],
0))):$APP.qf.l(function(c,d){return Promise.resolve(c).then(function(){$APP.Up.j($APP.J.g(["[squint] Compiling CLJS file:",d],0));return $APP.HM($APP.Bk.l(a,$APP.DM,d))}).then(function(e){e=$APP.uh(e);e=$APP.ef.g(e,$APP.FM);$APP.Up.j($APP.J.g(["[squint] Wrote JS file:",e],0));return e})},null,b)},K9=new $APP.D(null,"hyphens","hyphens",2113533609),C9=new $APP.D(null,"spec","spec",347520401),r9=new $APP.D(null,"coerce","coerce",1917884504),F9=new $APP.D(null,"restrict","restrict",-1071101511),L9=new $APP.D(null,
"keywords","keywords",1526959054),d$=new $APP.D("squint.repl.node","continue","squint.repl.node/continue",1558138730),I9=new $APP.D(null,"msg","msg",-1386103444),h$=new $APP.D(null,"show","show",-576705889),M9=new $APP.D(null,"boolean","boolean",-1919418404),l9=new $APP.D(null,"input","input",556931961),i$=new $APP.D(null,"rest-cmds","rest-cmds",-423198324),D9=new $APP.D("org.babashka","cli","org.babashka/cli",1162430315),A9=new $APP.D(null,"args-\x3eopts","args-\x3eopts",964391046),s9=new $APP.D(null,
"alias","alias",-2039751630),E9=new $APP.D(null,"collect","collect",-284321549),k9=new $APP.D("babashka.cli","error","babashka.cli/error",-939678701),j$=new $APP.D(null,"no-run","no-run",-1534313596),t9=new $APP.D(null,"validate","validate",-201300827),f$=new $APP.D(null,"help","help",-439233446),N9=new $APP.D(null,"cause","cause",231901252),m9=new $APP.D(null,"coerce-fn","coerce-fn",-821146515),y9=new $APP.D(null,"args","args",1315556576),w9=new $APP.D(null,"no-keyword-opts","no-keyword-opts",761286018),
P9=new $APP.D(null,"value","value",305978217),Q9=new $APP.D(null,"pred","pred",1927423397),G9=new $APP.D(null,"closed","closed",-919675359),c$=new $APP.D("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),H9=new $APP.D(null,"error-fn","error-fn",-171437615),O9=new $APP.D(null,"option","option",65132272),u9=new $APP.D(null,"exec-args","exec-args",-1860766354),R9=new $APP.D(null,"ex-msg","ex-msg",-1111774387),b9=new $APP.D(null,"s","s",1705939918),J9=new $APP.D(null,
"cmds-opts","cmds-opts",-390130362),k$=new $APP.D(null,"h","h",1109658740),l$=new $APP.D(null,"e","e",1381269198),x9=new $APP.D(null,"cmds","cmds",-1841503952);var W9=$APP.Sl.h(""),V9=$APP.Sl.h(!1),m$,n$=process.stdout.isTTY;m$=$APP.r(n$)?process.stdin.setRawMode:n$;process.binding("contextify");var a$=$APP.Sl.h($APP.uy),o$=function o$(a){switch(arguments.length){case 0:return o$.v();case 1:return o$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};o$.v=function(){return o$.h(null)};
o$.h=function(){$APP.uy=$APP.hA;$APP.zw=$APP.gw=!0;$APP.r(m$)&&process.stdin.setRawMode(!0);return $9("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});e$(b);b.setPrompt([$APP.t.h($APP.uy),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};o$.m=1;var p$=new $APP.F(null,4,5,$APP.G,[new $APP.p(null,3,[x9,new $APP.F(null,1,5,$APP.G,["run"],null),$APP.nv,function(a){a=$APP.uh(a);a=$APP.ef.g(a,$APP.kJ);var b=$APP.uh(a),c=$APP.ef.g(b,$APP.ks);b=$APP.ef.g(b,f$);if($APP.r(b))return null;$APP.Up.j($APP.J.g(["[squint] Running",c],0));return $APP.HM($APP.Bk.l(a,$APP.DM,c)).then(function(d){d=$APP.uh(d);d=$APP.ef.g(d,$APP.FM);d=$APP.r(esm_import$path.isAbsolute(d))?d:[$APP.t.h(process.cwd()),"/",$APP.t.h(d)].join("");return shadow_esm_import(d)})},J9,
new $APP.F(null,1,5,$APP.G,[$APP.ks],null)],null),new $APP.p(null,3,[x9,new $APP.F(null,1,5,$APP.G,["compile"],null),r9,new $APP.p(null,2,[$APP.qy,M9,$APP.ry,M9],null),$APP.nv,function(a){var b=$APP.uh(a);a=$APP.ef.g(b,i$);b=$APP.ef.g(b,$APP.kJ);return g$(b,a)}],null),new $APP.p(null,2,[x9,new $APP.F(null,1,5,$APP.G,["repl"],null),$APP.nv,o$],null),new $APP.p(null,2,[x9,$APP.wi,$APP.nv,function(a){a=$APP.uh(a);var b=$APP.ef.g(a,i$),c=$APP.ef.g(a,$APP.kJ);a=l$.h(c);if($APP.r(a)){if($APP.r(f$.h(c)))return $APP.Up.j($APP.J.g(["Usage: squint -e \x3cexpr\x3e \x3copts\x3e\n\nOptions:\n\n--no-run: do not run compiled expression\n--show: print compiled expression"],
0));a=$APP.hG.h(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(h$.h(c))&&$APP.Up.j($APP.J.g([a],0));if($APP.r(j$.h(c)))return null;a=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");return shadow_esm_import(a).finally(function(){return esm_import$fs.rmSync(d,{force:!0,recursive:!0})})}return $APP.r(function(){var f=f$.h(c);return $APP.r(f)?f:$APP.ee.g("help",$APP.x(b))||$APP.ze(b)}())?
$APP.Up.j($APP.J.g(["Squint v0.0.0\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\ncompile \x3cfile.cljs\x3e ... Compile file(s)\nrepl Start repl\nhelp Print this help\n\nUse squint \x3csubcommand\x3e --help to show more info."],0)):g$(c,b)}],null)],null);(function(){var a=new $APP.p(null,1,[$APP.XI,new $APP.p(null,1,[k$,f$],null)],null),b=z9(process.argv.slice(2),a),c=$APP.uh(b),d=$APP.ef.g(c,x9),e=$APP.ef.g(c,y9);return $APP.qf.l(function(f,l){f=$APP.uh(l);var k=$APP.ef.g(f,x9),m=$APP.ef.g(f,$APP.nv),h=U9(k,d);if($APP.r(h)){l=function(){var v=null==h?null:$APP.w(h);return null==v?null:$APP.sf(v)}();l=$APP.N.g(l,e);f=T9(l,a9(a,$APP.J.g([f],0)));l=$APP.uh(f);var q=$APP.ef.g(l,$APP.kJ);f=$APP.ef.g(l,y9);l=$APP.ef.g(l,x9);var n=$APP.N.g(l,f);return $APP.Rd(function(){var v=
$APP.Bk.j(c,y9,n,$APP.J.g([i$,n,$APP.kJ,q,$APP.Nv,k],0));return m.h?m.h(v):m.call(null,v)}())}return null},null,p$)})();
var Y8=function(a,b){return $APP.Je(a)&&$APP.Je(b)?$APP.np.j($APP.J.g([a,b],0)):$APP.Ae(a)&&($APP.He(a)||$APP.Be(a))&&$APP.Ae(b)&&($APP.He(b)||$APP.Be(b))?$APP.xj.g(a,b):b},Z8=function(a,b){return $APP.qf.l(function(c,d){return $APP.op.j(Y8,$APP.J.g([c,d],0))},a,b)},a9=function(a){throw $APP.vq.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.p(null,1,[$8,a],null));},b9=function(a){var b=JSON.parse(a);return $APP.Te(b)?b:a9(a)},c9=function(a){var b=JSON.parse(a);return $APP.Ze(b)?b:a9(a)},
d9=function(a){var b=JSON.parse(a);return $APP.df(b)?b:a9(a)},e9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:a9(a)},f9=function(a){return $APP.ee.g(":",0<a.length?a.charAt(0):null)?$APP.nl.h($APP.cl.g(a,1)):$APP.nl.h(a)},g9=function(a){return $APP.Ae(a)?$APP.x(a):a},h9=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.ee.g("true",a)||$APP.ee.g("false",a))var c=b9(a);else{if($APP.bb(isNaN(a)))var d=e9(a);else{var e=$APP.ee.g(":",b);var f=e?$APP.Zk(/:?[a-zA-Z0-9]+/,
a):e;d=$APP.q(f)?f9(a):a}c=d}return c}catch(k){return a}else return a},l9=function(a,b){var c=function(){switch(b instanceof $APP.D?b.xa:null){case "boolean":return b9;case "int":case "long":return c9;case "double":return d9;case "number":return e9;case "symbol":return $APP.yl;case "keyword":return f9;case "string":return $APP.xf;case "edn":return $APP.JM;case "auto":return h9;default:return b}}();if("string"===typeof a){try{var d=c.h?c.h(a):c.call(null,a)}catch(e){d=i9}if($APP.ee.g(i9,d))throw $APP.vq.g(["Coerce failure: cannot transform input ",
$APP.Pp.j($APP.J.g([a],0)),b instanceof $APP.D?" to ":" with ",$APP.t.h(b instanceof $APP.D?$APP.Lk(b):b)].join(""),new $APP.p(null,2,[j9,a,k9,b],null));return d}return a},m9=function(a,b,c){a=$APP.ef.g(a,b);c=$APP.q(a)?a:$APP.Ae(c)?$APP.pe(c):null;return $APP.q(c)?$APP.Ae(c)?$APP.wo.g($APP.Bg,c):c:null},n9=function(a,b,c,d){return $APP.Ak.g(b,c)?(c=$APP.jf(a,b),$APP.q(c)?($APP.A.l(c,0,null),c=$APP.A.l(c,1,null),$APP.Bk.l(a,b,$APP.q(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.Bk.l(a,b,$APP.q(d)?
d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},o9=function(a,b,c,d,e){d=$APP.q($APP.q(d)?!$APP.Ae(d):d)?l9(e,d):h9(e);return $APP.q(c)?$APP.Qo.B(a,b,c,d):$APP.Bk.l(a,b,d)},t9=function(a){return $APP.qf.l(function(b,c){var d=$APP.A.l(c,0,null);c=$APP.A.l(c,1,null);var e=$APP.uh(c),f=$APP.ef.g(e,p9),k=$APP.ef.g(e,q9);c=$APP.ef.g(e,$APP.Bt);var l=$APP.ef.g(e,$APP.HE);e=$APP.ef.g(e,r9);b=$APP.q(f)?$APP.Qo.G(b,p9,$APP.Bk,d,f):b;b=$APP.q(k)?$APP.Qo.l(b,q9,function(m){if($APP.gf(m,k))throw $APP.vq.g(["Conflicting alias ",
$APP.t.h(k)," between ",$APP.t.h($APP.ef.g(m,k))," and ",$APP.t.h(d)].join(""),new $APP.p(null,1,[q9,k],null));return $APP.Bk.l(m,k,d)}):b;b=$APP.q(l)?$APP.Qo.l(b,$APP.HE,$APP.wo.g(function(m){return $APP.Bg.g(m,d)},$APP.Fk)):b;b=$APP.q(e)?$APP.Qo.G(b,r9,$APP.Bk,d,e):b;return $APP.q(c)?$APP.Qo.G(b,s9,$APP.Bk,d,c):b},$APP.th,a)},x9=function(a,b){b=$APP.uh(b);var c=$APP.ef.g(b,u9);b=$APP.Wk(function(d){var e=$APP.q(c)?null:$APP.nr(d,":");return!($APP.q(e)?e:$APP.nr(d,"-"))},a);a=$APP.A.l(b,0,null);
b=$APP.A.l(b,1,null);return new $APP.p(null,2,[v9,a,w9,b],null)},z9=function(a,b){if($APP.q(b))if($APP.w(a)){var c=$APP.de(a),d=$APP.ih(c,b);c=c<d?c:d;a=new $APP.F(null,2,5,$APP.G,[$APP.N.g($APP.Io.g(b,a),$APP.hi.g(c,a)),$APP.hi.g(c,b)],null)}else a=new $APP.F(null,2,5,$APP.G,[a,b],null);else a=new $APP.F(null,2,5,$APP.G,[a,b],null);b=a;a=$APP.A.l(b,0,null);b=$APP.A.l(b,1,null);return new $APP.p(null,2,[w9,a,y9,b],null)},Q9=function(a,b){function c(db){db=$APP.np.j($APP.J.g([new $APP.p(null,2,[A9,
d,$APP.hs,B9],null),db],0));return H.h?H.h(db):H.call(null,db)}var d=A9.h(b),e=$APP.q(d)?Z8(b,$APP.J.g([t9(d)],0)):b,f=p9.h(e),k=function(){var db=q9.h(e);return $APP.q(db)?db:$APP.TI.h(e)}(),l=C9.h(e),m=$APP.HE.h(e),h=s9.h(e),r=u9.h(e),n=function(){var db=D9.h(e);return $APP.q(db)?db:E9.h(e)}(),v=$APP.ee.g(!0,n)?function(){var db=null==d?null:$APP.wk(d);db=null==db?null:$APP.N.g(db,$APP.wk(f));return null==db?null:$APP.Jk(db)}():null==n?null:$APP.Jk(n),C=r9.h(e),H=function(){var db=F9.h(e);return $APP.q(db)?
db:function(bc){bc=$APP.uh(bc);var yc=$APP.ef.g(bc,G9);throw $APP.vq.g(yc,bc);}}(),O=x9(a,null),P=$APP.uh(O),V=$APP.ef.g(P,v9),aa=$APP.ef.g(P,w9),da=function(){var db=y9.h(e);db=$APP.q(db)?db:H9.h(e);return $APP.q(db)?z9(V,db):new $APP.p(null,2,[y9,null,w9,aa],null)}(),ia=$APP.uh(da),na=$APP.ef.g(ia,w9),ca=$APP.ef.g(ia,y9),E=$APP.Ak.g(na,aa)?new $APP.F(null,2,5,$APP.G,[null,$APP.N.g(na,aa)],null):new $APP.F(null,2,5,$APP.G,[V,aa],null),y=$APP.A.l(E,0,null),ba=$APP.A.l(E,1,null),I=function(){for(var db=
$APP.q(h)?h:$APP.th,bc=null,yc=null,Xf=$APP.q(r)?I9:null,sd=$APP.w(ba),Yf=ca;;){if($APP.bb(sd))return new $APP.F(null,3,5,$APP.G,[db,bc,yc],null);var Bc=$APP.x(sd),Og=Bc instanceof $APP.D;if(Og){var Rc=n9(db,bc,yc,null),Eb=yc,Zf=Xf;sd=$APP.z(sd);db=Rc;bc=Bc;yc=Eb;Xf=Zf}else{Rc=Og?null:m9(l,bc,$APP.ef.g(f,bc));Eb=Og?null:0<Bc.length?Bc.charAt(0):null;var dk=Og?null:$APP.ee.g(Eb,"-"),ek=function(){var zc=Xf;return $APP.q(zc)?zc:$APP.q(dk)?I9:null}(),fj=Og?null:$APP.ee.g(":",Eb),fk=Og?null:function(){var zc=
$APP.Ak.g(I9,ek);return zc?(zc=fj,$APP.q(zc)?$APP.bb(bc)||$APP.ee.g(yc,bc):zc):zc}(),Pg=function(){var zc=ek;return $APP.q(zc)?zc:Og?null:$APP.q(fk)?J9:null}();if($APP.q(function(){var zc=dk;return $APP.q(zc)?zc:fk}())){if(Zf=(Eb=$APP.nr(Bc,"--"))&&$APP.ee.g("--",Bc)){var gk=$APP.z(sd);return new $APP.F(null,3,5,$APP.G,[function(){var zc=db;return gk?$APP.ro.B(zc,$APP.Oo,new $APP.F(null,2,5,$APP.G,[B9,w9],null),$APP.sf(gk)):zc}(),bc,yc],null)}Bc=Eb?$APP.cl.g(Bc,2):$APP.Cr(Bc,/^(:|-|)/,"");Bc=Eb?$APP.Pw.g(Bc,
/=/):new $APP.F(null,1,5,$APP.G,[Bc],null);Eb=$APP.A.l(Bc,0,null);Bc=$APP.A.l(Bc,1,null);Eb=$APP.nl.h(Eb);Eb=$APP.ef.l(k,Eb,Eb);$APP.q(Bc)?(Rc=n9(db,bc,yc,Rc),Zf=Pg,sd=$APP.Eg(Bc,$APP.Dd(sd)),db=Rc,bc=Eb,yc=null,Xf=Zf):(Rc=n9(db,bc,yc,Rc),Bc=Eb,Eb=yc,Zf=Pg,sd=$APP.z(sd),db=Rc,bc=Bc,yc=Eb,Xf=Zf)}else if(Eb=$APP.ef.g(f,bc),Zf=$APP.ee.g(K9,Eb)&&$APP.Ak.g(Bc,"true")&&$APP.Ak.g(Bc,"false")||$APP.ee.g(yc,bc)&&$APP.bb(Rc))if(Yf=$APP.q(sd)?$APP.q(Yf)?z9(sd,Yf):new $APP.p(null,1,[w9,sd],null):new $APP.p(null,
1,[w9,sd],null),Rc=$APP.uh(Yf),Yf=$APP.ef.g(Rc,w9),Rc=$APP.ef.g(Rc,y9),$APP.Ak.g(sd,Yf))sd=Yf,Yf=Rc,Xf=Pg;else return new $APP.F(null,3,5,$APP.G,[$APP.ro.B(db,$APP.Oo,new $APP.F(null,2,5,$APP.G,[B9,w9],null),$APP.sf(sd)),bc,yc],null);else{try{var Qg=o9(db,bc,Rc,g9(Eb),Bc)}catch(zc){c(new $APP.p(null,4,[L9,p9,G9,$APP.xm(zc),M9,bc,N9,Bc],null)),Qg=db}Rc=$APP.q(function(){var zc=$APP.ee.g(J9,Pg);return zc?fj:zc}())?null:bc;Bc=$APP.q(function(){var zc=$APP.ee.g(J9,Pg);return zc?fj:zc}())?null:bc;Eb=Pg;
sd=$APP.z(sd);db=Qg;bc=Rc;yc=Bc;Xf=Eb}}}}(),K=$APP.A.l(I,0,null),ea=$APP.A.l(I,1,null),ja=$APP.A.l(I,2,null),ha=m9(l,ea,$APP.ef.g(l9,ea)),pa=function(){var db=n9(K,ea,ja,ha);return $APP.w(y)?$APP.ro.B(db,$APP.Po,new $APP.F(null,2,5,$APP.G,[B9,w9],null),function(bc){return $APP.xj.g($APP.sf(y),bc)}):db}();if($APP.q(v)){a=$APP.w($APP.wk(pa));b=null;for(var ra=0,ua=0;;)if(ua<ra){var va=b.S(null,ua);$APP.gf(v,va)||c(new $APP.p(null,4,[L9,D9,G9,["Unknown option: ",$APP.t.h(va)].join(""),D9,v,M9,va],null));
ua+=1}else if(a=$APP.w(a))b=a,$APP.Me(b)?(a=$APP.Yc(b),ua=$APP.Zc(b),b=a,ra=$APP.de(a),a=ua):(a=$APP.x(b),$APP.gf(v,a)||c(new $APP.p(null,4,[L9,D9,G9,["Unknown option: ",$APP.t.h(a)].join(""),D9,v,M9,a],null)),a=$APP.z(b),b=null,ra=0),ua=0;else break}if($APP.q(m))for(a=$APP.w(m),b=null,ua=ra=0;;)if(ua<ra)va=b.S(null,ua),$APP.q($APP.jf(pa,va))||c(new $APP.p(null,4,[L9,$APP.HE,G9,["Required option: ",$APP.t.h(va)].join(""),$APP.HE,m,M9,va],null)),ua+=1;else if(a=$APP.w(a))b=a,$APP.Me(b)?(a=$APP.Yc(b),
ua=$APP.Zc(b),b=a,ra=$APP.de(a),a=ua):(a=$APP.x(b),$APP.q($APP.jf(pa,a))||c(new $APP.p(null,4,[L9,$APP.HE,G9,["Required option: ",$APP.t.h(a)].join(""),$APP.HE,m,M9,a],null)),a=$APP.z(b),b=null,ra=0),ua=0;else break;if($APP.q(C))for(var Ba=$APP.w(C),Ea=null,xa=0,wa=0;;)if(wa<xa){var Ka=Ea.S(null,wa),Pa=$APP.A.l(Ka,0,null),Wa=$APP.A.l(Ka,1,null),hb=function(){var db=(db=$APP.Je(Wa))?O9.h(Wa):db;return $APP.q(db)?db:Wa}(),mb=$APP.jf(pa,Pa);if($APP.q(mb)){var Jb=mb,Xb=$APP.A.l(Jb,0,null),rc=$APP.A.l(Jb,
1,null);if(!$APP.q(hb.h?hb.h(rc):hb.call(null,rc))){var zb=function(){var db=P9.h(Wa);return $APP.q(db)?db:function(){return function(bc){var yc=$APP.uh(bc);bc=$APP.ef.g(yc,M9);yc=$APP.ef.g(yc,N9);return["Invalid value for option ",$APP.t.h(bc),": ",$APP.t.h(yc)].join("")}}(Ba,Ea,xa,wa,db,Jb,Xb,rc,mb,hb,Ka,Pa,Wa,d,e,f,k,l,m,h,r,n,v,C,H,c,O,P,V,aa,da,ia,na,ca,E,y,ba,I,K,ea,ja,ha,pa)}();c(new $APP.p(null,5,[L9,r9,G9,function(){var db=new $APP.p(null,2,[M9,Pa,N9,rc],null);return zb.h?zb.h(db):zb.call(null,
db)}(),r9,C,M9,Pa,N9,rc],null))}}wa+=1}else{var Pe=$APP.w(Ba);if(Pe){var Mg=Pe;if($APP.Me(Mg))ra=$APP.Yc(Mg),a=$APP.Zc(Mg),b=ra,ra=$APP.de(ra),Ba=a,Ea=b,xa=ra;else{var ak=$APP.x(Mg),dj=$APP.A.l(ak,0,null),xh=$APP.A.l(ak,1,null),ej=function(){var db=(db=$APP.Je(xh))?O9.h(xh):db;return $APP.q(db)?db:xh}(),bk=$APP.jf(pa,dj);if($APP.q(bk)){var ck=bk,Tm=$APP.A.l(ck,0,null),hc=$APP.A.l(ck,1,null);if(!$APP.q(ej.h?ej.h(hc):ej.call(null,hc))){var Ng=function(){var db=P9.h(xh);return $APP.q(db)?db:function(){return function(bc){var yc=
$APP.uh(bc);bc=$APP.ef.g(yc,M9);yc=$APP.ef.g(yc,N9);return["Invalid value for option ",$APP.t.h(bc),": ",$APP.t.h(yc)].join("")}}(Ba,Ea,xa,wa,db,ck,Tm,hc,bk,ej,ak,dj,xh,Mg,Pe,d,e,f,k,l,m,h,r,n,v,C,H,c,O,P,V,aa,da,ia,na,ca,E,y,ba,I,K,ea,ja,ha,pa)}();c(new $APP.p(null,5,[L9,r9,G9,function(){var db=new $APP.p(null,2,[M9,dj,N9,hc],null);return Ng.h?Ng.h(db):Ng.call(null,db)}(),r9,C,M9,dj,N9,hc],null))}}Ba=$APP.z(Mg);Ea=null;xa=0}wa=0}else break}return pa},R9=function(a,b){a=Q9(a,b);b=B9.h($APP.we(a));
return $APP.Bk.l(b,$APP.gJ,$APP.In.g(a,B9))},S9=function(a,b){var c=$APP.ni($APP.de(a),b);b=$APP.A.l(c,0,null);c=$APP.A.l(c,1,null);return $APP.ee.g(b,a)?c:null},W9=function(a,b){$APP.bi(T9,!1);a.setPrompt([$APP.t.h($APP.uy),"\x3d\x3e "].join(""));a.prompt();return $APP.kG($APP.ec(U9))?null:V9.g?V9.g(b,a):V9.call(null,b,a)},X9=function(a){var b=$APP.Sr(a);a=$APP.Tr(a);var c=$APP.jG($APP.ec(U9));b=$APP.hi.g(b-1,c);c=$APP.w(b);b=$APP.x(c);c=$APP.z(c);a=$APP.q(b)?$APP.cl.g(b,a):null;$APP.bi(U9,$APP.dw.g("\n",
$APP.Eg(a,c)))},Y9=function(a){var b=[".repl/",$APP.t.h($APP.$p.v()),".mjs"].join("");$APP.q(esm_import$fs.existsSync(".repl"))||esm_import$fs.mkdirSync(".repl");esm_import$fs.writeFileSync(b,a);return shadow_esm_import($APP.t.h(esm_import$url.pathToFileURL(esm_import$path.resolve(esm_import$process.cwd(),b)))).finally(function(){return esm_import$fs.unlinkSync(b)})},$9=function(a,b,c){var d=function(){var f=$APP.uy;$APP.uy=$APP.ec(Z9);try{return $APP.zy($APP.Pp.j($APP.J.g([a],0)),null)}finally{$APP.uy=
f}}(),e=$APP.uh(d);d=$APP.ef.g(e,$APP.yy);e=$APP.ef.g(e,$APP.R);$APP.bi(Z9,e);return Y9(d).then(function(){esm_import$squint_cljs$core.println(globalThis._repl);return W9(b,c)}).catch(function(f){esm_import$squint_cljs$core.println(f);return W9(b,c)})},V9=function(a,b){if($APP.q(function(){var e=$APP.ec(T9);return $APP.q(e)?e:$APP.kG($APP.ec(U9))}()))return null;$APP.bi(T9,!0);var c=$APP.Tv($APP.ec(U9)),d=function(){try{return $APP.Vv(c,$APP.Sv($APP.th))}catch(f){var e=f;if(-1!=$APP.xm(e).indexOf("EOF while reading"))return a$;
X9(c);$APP.Wp.j($APP.J.g([$APP.t.h(e)],0));return b$}}();if($APP.ee.g(b$,d))return W9(b,a);if($APP.ee.g(a$,d))return $APP.bi(T9,!1);X9(c);return $APP.ee.g($APP.Uv,d)?$APP.bi(T9,!1):$9(d,b,a)},c$=function(a){a.on("line",function(b){$APP.Tl.B(U9,$APP.t,b,"\n");return V9(null,a)})},e$=function(a,b){return $APP.q(d$.h(a))?($APP.Up.j($APP.J.g(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"],0)),$APP.Up(),$APP.Up.j($APP.J.g(["Options:\n\n--elide-imports: do not include imports\n--elide-exports: do not include exports\n--extension: default extension for JS files"],
0))):$APP.qf.l(function(c,d){return Promise.resolve(c).then(function(){$APP.Up.j($APP.J.g(["[squint] Compiling CLJS file:",d],0));return $APP.CM($APP.Bk.l(a,$APP.yM,d))}).then(function(e){e=$APP.uh(e);e=$APP.ef.g(e,$APP.AM);$APP.Up.j($APP.J.g(["[squint] Wrote JS file:",e],0));return e})},null,b)},I9=new $APP.D(null,"hyphens","hyphens",2113533609),A9=new $APP.D(null,"spec","spec",347520401),p9=new $APP.D(null,"coerce","coerce",1917884504),D9=new $APP.D(null,"restrict","restrict",-1071101511),J9=new $APP.D(null,
"keywords","keywords",1526959054),b$=new $APP.D("squint.repl.node","continue","squint.repl.node/continue",1558138730),G9=new $APP.D(null,"msg","msg",-1386103444),f$=new $APP.D(null,"show","show",-576705889),K9=new $APP.D(null,"boolean","boolean",-1919418404),j9=new $APP.D(null,"input","input",556931961),g$=new $APP.D(null,"rest-cmds","rest-cmds",-423198324),B9=new $APP.D("org.babashka","cli","org.babashka/cli",1162430315),y9=new $APP.D(null,"args-\x3eopts","args-\x3eopts",964391046),q9=new $APP.D(null,
"alias","alias",-2039751630),C9=new $APP.D(null,"collect","collect",-284321549),i9=new $APP.D("babashka.cli","error","babashka.cli/error",-939678701),h$=new $APP.D(null,"no-run","no-run",-1534313596),r9=new $APP.D(null,"validate","validate",-201300827),d$=new $APP.D(null,"help","help",-439233446),L9=new $APP.D(null,"cause","cause",231901252),k9=new $APP.D(null,"coerce-fn","coerce-fn",-821146515),w9=new $APP.D(null,"args","args",1315556576),u9=new $APP.D(null,"no-keyword-opts","no-keyword-opts",761286018),
N9=new $APP.D(null,"value","value",305978217),O9=new $APP.D(null,"pred","pred",1927423397),E9=new $APP.D(null,"closed","closed",-919675359),a$=new $APP.D("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),F9=new $APP.D(null,"error-fn","error-fn",-171437615),M9=new $APP.D(null,"option","option",65132272),s9=new $APP.D(null,"exec-args","exec-args",-1860766354),P9=new $APP.D(null,"ex-msg","ex-msg",-1111774387),$8=new $APP.D(null,"s","s",1705939918),H9=new $APP.D(null,
"cmds-opts","cmds-opts",-390130362),i$=new $APP.D(null,"h","h",1109658740),j$=new $APP.D(null,"e","e",1381269198),v9=new $APP.D(null,"cmds","cmds",-1841503952);var U9=$APP.Sl.h(""),T9=$APP.Sl.h(!1),k$,l$=process.stdout.isTTY;k$=$APP.q(l$)?process.stdin.setRawMode:l$;process.binding("contextify");var Z9=$APP.Sl.h($APP.uy),m$=function m$(a){switch(arguments.length){case 0:return m$.v();case 1:return m$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};m$.v=function(){return m$.h(null)};
m$.h=function(){$APP.uy=$APP.fA;$APP.zw=$APP.gw=!0;$APP.q(k$)&&process.stdin.setRawMode(!0);return Y9("globalThis.user \x3d globalThis.user || {};").then(function(){return new Promise(function(a){var b=$APP.q(null)?esm_import$readline.createInterface({input:null,output:null}):esm_import$readline.createInterface({input:process.stdin,output:process.stdout});c$(b);b.setPrompt([$APP.t.h($APP.uy),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};m$.m=1;var n$=new $APP.F(null,4,5,$APP.G,[new $APP.p(null,3,[v9,new $APP.F(null,1,5,$APP.G,["run"],null),$APP.nv,function(a){a=$APP.uh(a);a=$APP.ef.g(a,$APP.gJ);var b=$APP.uh(a),c=$APP.ef.g(b,$APP.ks);b=$APP.ef.g(b,d$);if($APP.q(b))return null;$APP.Up.j($APP.J.g(["[squint] Running",c],0));return $APP.CM($APP.Bk.l(a,$APP.yM,c)).then(function(d){d=$APP.uh(d);d=$APP.ef.g(d,$APP.AM);d=$APP.q(esm_import$path.isAbsolute(d))?d:[$APP.t.h(process.cwd()),"/",$APP.t.h(d)].join("");return shadow_esm_import(d)})},H9,
new $APP.F(null,1,5,$APP.G,[$APP.ks],null)],null),new $APP.p(null,3,[v9,new $APP.F(null,1,5,$APP.G,["compile"],null),p9,new $APP.p(null,2,[$APP.qy,K9,$APP.ry,K9],null),$APP.nv,function(a){var b=$APP.uh(a);a=$APP.ef.g(b,g$);b=$APP.ef.g(b,$APP.gJ);return e$(b,a)}],null),new $APP.p(null,2,[v9,new $APP.F(null,1,5,$APP.G,["repl"],null),$APP.nv,m$],null),new $APP.p(null,2,[v9,$APP.wi,$APP.nv,function(a){a=$APP.uh(a);var b=$APP.ef.g(a,g$),c=$APP.ef.g(a,$APP.gJ);a=j$.h(c);if($APP.q(a)){if($APP.q(d$.h(c)))return $APP.Up.j($APP.J.g(["Usage: squint -e \x3cexpr\x3e \x3copts\x3e\n\nOptions:\n\n--no-run: do not run compiled expression\n--show: print compiled expression"],
0));a=$APP.dG.h(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.q(f$.h(c))&&$APP.Up.j($APP.J.g([a],0));if($APP.q(h$.h(c)))return null;a=$APP.q(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");return shadow_esm_import(a).finally(function(){return esm_import$fs.rmSync(d,{force:!0,recursive:!0})})}return $APP.q(function(){var f=d$.h(c);return $APP.q(f)?f:$APP.ee.g("help",$APP.x(b))||$APP.ze(b)}())?
$APP.Up.j($APP.J.g(["Squint v0.0.0\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\ncompile \x3cfile.cljs\x3e ... Compile file(s)\nrepl Start repl\nhelp Print this help\n\nUse squint \x3csubcommand\x3e --help to show more info."],0)):e$(c,b)}],null)],null);(function(){var a=new $APP.p(null,1,[$APP.TI,new $APP.p(null,1,[i$,d$],null)],null),b=x9(process.argv.slice(2),a),c=$APP.uh(b),d=$APP.ef.g(c,v9),e=$APP.ef.g(c,w9);return $APP.qf.l(function(f,k){f=$APP.uh(k);var l=$APP.ef.g(f,v9),m=$APP.ef.g(f,$APP.nv),h=S9(l,d);if($APP.q(h)){k=function(){var v=null==h?null:$APP.w(h);return null==v?null:$APP.sf(v)}();k=$APP.N.g(k,e);f=R9(k,Z8(a,$APP.J.g([f],0)));k=$APP.uh(f);var r=$APP.ef.g(k,$APP.gJ);f=$APP.ef.g(k,w9);k=$APP.ef.g(k,v9);var n=$APP.N.g(k,f);return $APP.Rd(function(){var v=
$APP.Bk.j(c,w9,n,$APP.J.g([g$,n,$APP.gJ,r,$APP.Nv,l],0));return m.h?m.h(v):m.call(null,v)}())}return null},null,n$)})();

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

"sideEffects": false,
"version": "0.0.10",
"version": "0.0.11",
"files": [

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

@@ -76,3 +76,3 @@ ## Squint

If you are looking for ClojureScrip semantics, take a look at [cherry](https://github.com/squint-cljs/cherry).
If you are looking for ClojureScript semantics, take a look at [Cherry 🍒](https://github.com/squint-cljs/cherry).

@@ -79,0 +79,0 @@ ### Seqs

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