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

squint-cljs

Package Overview
Dependencies
Maintainers
1
Versions
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.2.29 to 0.2.30

lib/squint.core.umd.js

70

lib/cli.js

@@ -5,36 +5,36 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.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$path from"path";
var S8=function(a,b){return $APP.Zd(a)&&$APP.Zd(b)?$APP.Kk.j($APP.B([a,b])):$APP.Td(a)&&($APP.Yd(a)||$APP.Ud(a))&&$APP.Td(b)&&($APP.Yd(b)||$APP.Ud(b))?$APP.Qg.g(a,b):b},T8=function(a,b){return $APP.qe.l(function(c,d){return $APP.TD.j(S8,$APP.B([c,d]))},a,b)},V8=function(a){throw $APP.Yk.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.q(null,1,[U8,a],null));},W8=function(a){var b=JSON.parse(a);return $APP.de(b)?b:V8(a)},X8=function(a){var b=JSON.parse(a);return $APP.lD(b)?b:V8(a)},Y8=function(a){var b=
JSON.parse(a);return $APP.mD(b)?b:V8(a)},Z8=function(a){var b=JSON.parse(a);return"number"===typeof b?b:V8(a)},$8=function(a){return"string"===typeof a?$APP.A.l(a,0,null):null},a9=function(a){return $APP.yd.g(":",$8(a))?$APP.ui.h($APP.ii.g(a,1)):$APP.ui.h(a)},b9=function(a){return $APP.Td(a)?$APP.x(a):a},c9=function(a){if("string"===typeof a)try{var b=$8(a);if($APP.yd.g("true",a)||$APP.yd.g("false",a))var c=W8(a);else{if($APP.yd.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e=Z8(a);else{var f=
$APP.yd.g(":",b);var k=f?$APP.gi(/:[a-zA-Z][a-zA-Z0-9_\/\.-]*/,a):f;e=$APP.r(k)?a9(a):a}d=e}c=d}return c}catch(l){return a}else return a},f9=function(a,b,c,d){throw $APP.Yk.l(["Coerce failure: cannot transform ",$APP.r(b)?"(implicit) true":["input ",$APP.As.j($APP.B([a]))].join(""),c instanceof $APP.F?" to ":" with ",$APP.t.h(c instanceof $APP.F?$APP.Yh(c):c)].join(""),new $APP.q(null,2,[d9,a,e9,c],null),d);},g9=function(a,b,c){var d=function(){switch(b instanceof $APP.F?b.wa:null){case "boolean":case "bool":return W8;
case "int":case "long":return X8;case "double":return Y8;case "number":return Z8;case "symbol":return $APP.Di;case "keyword":return a9;case "string":return $APP.ve;case "edn":return $APP.WD;case "auto":return c9;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=f9(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?f9(a,c,b,null):d},h9=function(a,b,c){a=$APP.ie.g(a,b);c=$APP.r(a)?a:$APP.Td(c)?$APP.Id(c):null;return $APP.r(c)?$APP.Td(c)?$APP.Mp.g($APP.Ge,
c):c:null},i9=function(a,b,c,d){return $APP.Ao.g(b,c)?(c=$APP.qD(a,b),$APP.r(c)?($APP.A.l(c,0,null),c=$APP.A.l(c,1,null),$APP.yi.l(a,b,$APP.r(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.yi.l(a,b,$APP.r(d)?d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},j9=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Td(d):d)?g9(e,d,f):c9(e);return $APP.r(c)?$APP.Fm.B(a,b,c,d):$APP.yi.l(a,b,d)},o9=function(a){return $APP.qe.l(function(b,c){var d=$APP.A.l(c,0,null);c=$APP.A.l(c,1,null);var e=$APP.nf(c),f=$APP.ie.g(e,
k9),k=$APP.ie.g(e,l9);c=$APP.ie.g(e,$APP.pm);var l=$APP.ie.g(e,$APP.NB);e=$APP.ie.g(e,m9);b=$APP.r(f)?$APP.Fm.G(b,k9,$APP.yi,d,f):b;b=$APP.r(k)?$APP.Fm.l(b,l9,function(m){if($APP.ke(m,k))throw $APP.Yk.g(["Conflicting alias ",$APP.t.h(k)," between ",$APP.t.h($APP.ie.g(m,k))," and ",$APP.t.h(d)].join(""),new $APP.q(null,1,[l9,k],null));return $APP.yi.l(m,k,d)}):b;b=$APP.r(l)?$APP.Fm.l(b,$APP.NB,$APP.Mp.g(function(m){return $APP.Ge.g(m,d)},$APP.Sh)):b;b=$APP.r(e)?$APP.Fm.G(b,m9,$APP.yi,d,e):b;return $APP.r(c)?
$APP.Fm.G(b,n9,$APP.yi,d,c):b},$APP.mf,a)},s9=function(a,b){b=$APP.nf(b);var c=$APP.ie.g(b,p9);b=$APP.rD(function(d){var e=$APP.r(c)?null:$APP.sa(d,":");return!($APP.r(e)?e:$APP.sa(d,"-"))},a);a=$APP.A.l(b,0,null);b=$APP.A.l(b,1,null);return new $APP.q(null,2,[q9,a,r9,b],null)},u9=function(a,b){if($APP.r(b))if($APP.w(a)){var c=$APP.xd(a),d=$APP.cf(c,b);c=c<d?c:d;a=new $APP.G(null,2,5,$APP.I,[$APP.N.g($APP.qq.g(b,a),$APP.fr.g(c,a)),$APP.fr.g(c,b)],null)}else a=new $APP.G(null,2,5,$APP.I,[a,b],null);
else a=new $APP.G(null,2,5,$APP.I,[a,b],null);b=a;a=$APP.A.l(b,0,null);b=$APP.A.l(b,1,null);return new $APP.q(null,2,[r9,a,t9,b],null)},D9=function(a,b,c,d,e){var f=$8(a),k="string"===typeof a?$APP.A.l(a,1,null):null,l;if(l=$APP.yd.g(f,"-")){try{var m=Z8($APP.t.h(k))}catch(h){m=null}l=$APP.Za(m)}b=$APP.r(b)?b:l?v9:null;f=$APP.yd.g(":",f);c=$APP.Ao.g(v9,b)&&f&&($APP.yd.g(w9,d)||$APP.Za(c)||$APP.yd.g(e,c));d=$APP.r(b)?b:c?x9:null;a=l?$APP.r(k)?$APP.Ao.g("-",k)&&2<$APP.xd(a):k:null;return new $APP.q(null,
5,[y9,d,z9,l,A9,a,B9,c,C9,f],null)},R9=function(a,b){function c(ib){ib=$APP.Kk.j($APP.B([new $APP.q(null,2,[E9,d,$APP.Sk,F9],null),ib]));return O.h?O.h(ib):O.call(null,ib)}var d=E9.h(b),e=$APP.r(d)?T8(b,$APP.B([o9(d)])):b,f=k9.h(e),k=function(){var ib=l9.h(e);return $APP.r(ib)?ib:$APP.YD.h(e)}(),l=G9.h(e),m=$APP.NB.h(e),h=n9.h(e),p=p9.h(e),n=function(){var ib=H9.h(e);return $APP.r(ib)?ib:I9.h(e)}(),v=$APP.Wh($APP.N.j($APP.Nh($APP.Zd(d)?d:$APP.Qg.g($APP.mf,d)),$APP.Ph(k),$APP.B([$APP.Nh(f)]))),C=$APP.yd.g(!0,
n)?v:null==n?null:$APP.Wh(n),H=m9.h(e),O=function(){var ib=J9.h(e);return $APP.r(ib)?ib:function(Kb){Kb=$APP.nf(Kb);var oc=$APP.ie.g(Kb,K9);throw $APP.Yk.g(oc,Kb);}}(),P=s9(a,null),V=$APP.nf(P),aa=$APP.ie.g(V,q9),da=$APP.ie.g(V,r9),ja=function(){var ib=t9.h(e);ib=$APP.r(ib)?ib:L9.h(e);return $APP.r(ib)?u9(aa,ib):new $APP.q(null,2,[t9,null,r9,da],null)}(),oa=$APP.nf(ja),ca=$APP.ie.g(oa,r9),E=$APP.ie.g(oa,t9),z=$APP.Ao.g(ca,da)?new $APP.G(null,2,5,$APP.I,[null,$APP.N.g(ca,da)],null):new $APP.G(null,
2,5,$APP.I,[aa,da],null),ba=$APP.A.l(z,0,null),J=$APP.A.l(z,1,null),K=function(){for(var ib=$APP.mf,Kb=null,oc=null,Vd=$APP.r(p)?v9:null,Hc=$APP.w(J),zf=E;;){if($APP.Za(Hc))return new $APP.G(null,3,5,$APP.I,[ib,Kb,oc],null);var hf=$APP.x(Hc),tc=hf instanceof $APP.F;if(tc){Kb=i9(ib,Kb,oc,null);var Bd=hf;Hc=$APP.y(Hc);ib=Kb;Kb=Bd}else{var Tj=!0===hf,Se=$APP.t.h(hf);Bd=h9(l,Kb,$APP.ie.g(f,Kb));var fh=$APP.ie.g(f,Kb),Uj=D9(Se,Vd,Kb,fh,oc),tg=$APP.nf(Uj),Vj=$APP.ie.g(tg,z9),ug=$APP.ie.g(tg,A9),Wj=$APP.ie.g(tg,
B9),Te=$APP.ie.g(tg,y9),Pi=$APP.ie.g(tg,C9);if($APP.r(function(){var Xd=Vj;return $APP.r(Xd)?Xd:Wj}())){var xc=$APP.sa(Se,"--"),Qi=xc&&$APP.yd.g("--",Se);if(Qi){var Xj=$APP.y(Hc);return new $APP.G(null,3,5,$APP.I,[function(){var Xd=ib;return Xj?$APP.Vn.B(Xd,$APP.St,new $APP.G(null,2,5,$APP.I,[F9,r9],null),$APP.lg(Xj)):Xd}(),Kb,oc],null)}var Ri=xc?$APP.ii.g(Se,2):$APP.dk(Se,/^(:|-|)/,""),Ie=xc?$APP.nq.g(Ri,/=/):new $APP.G(null,1,5,$APP.I,[Ri],null),id=$APP.A.l(Ie,0,null),Od=$APP.A.l(Ie,1,null),Gb=
$APP.ui.h(id),mc=$APP.ie.l(k,Gb,Gb);if($APP.r(Od))oc=i9(ib,Kb,oc,Bd),Kb=mc,Vd=Te,Hc=$APP.Le(Od,$APP.bd(Hc)),ib=oc,oc=null;else{var lb=$APP.y(Hc),Wd=$APP.x(lb),dt=D9(Wd,Te,Kb,fh,oc);if($APP.r(function(){var Xd=z9.h(dt);return $APP.r(Xd)?Xd:$APP.Sd(lb)}()))if($APP.r(ug)){var et=$APP.Yh(mc);oc=$APP.cr.j(function(){return function(Xd){return new $APP.G(null,2,5,$APP.I,[["-",$APP.t.h(Xd)].join(""),!0],null)}}(ib,Kb,oc,Vd,Hc,zf,et,lb,Wd,dt,Ri,Ie,id,Od,Gb,mc,xc,Qi,Tj,Se,Bd,fh,Uj,tg,Vj,ug,Wj,Te,Pi,hf,tc,
d,e,f,k,l,m,h,p,n,v,C,H,O,c,P,V,aa,da,ja,oa,ca,E,z,ba,J),$APP.B([et]));Hc=$APP.N.g(oc,lb);Vd=Te;oc=Kb=null}else Hc=$APP.ke(v,mc)?null:$APP.iD($APP.t.h(mc),":no-"),Vd=$APP.r(Hc)?$APP.ui.h($APP.dk($APP.t.h(mc),":no-","")):mc,Hc=$APP.Le($APP.Za(Hc),lb),Kb=i9(ib,Kb,oc,Bd),Bd=Vd,Vd=Te,ib=Kb,Kb=Bd;else Kb=i9(ib,Kb,oc,Bd),Bd=mc,Vd=Te,Hc=lb,ib=Kb,Kb=Bd}}else if(Qi=$APP.yd.g(w9,fh)&&$APP.Ao.g(Se,"true")&&$APP.Ao.g(Se,"false")||$APP.yd.g(oc,Kb)&&$APP.Za(Bd))if(zf=$APP.r(Hc)?$APP.r(zf)?u9(Hc,zf):new $APP.q(null,
1,[r9,Hc],null):new $APP.q(null,1,[r9,Hc],null),Vd=$APP.nf(zf),zf=$APP.ie.g(Vd,r9),Vd=$APP.ie.g(Vd,t9),$APP.Ao.g(Hc,zf))Bd=Vd,Vd=Te,Hc=zf,zf=Bd;else return new $APP.G(null,3,5,$APP.I,[$APP.Vn.B(ib,$APP.St,new $APP.G(null,2,5,$APP.I,[F9,r9],null),$APP.lg(Hc)),Kb,oc],null);else{try{var od=j9(ib,Kb,Bd,b9(fh),Se,Tj)}catch(Xd){c(new $APP.q(null,4,[M9,k9,K9,$APP.xD(Xd),N9,Kb,O9,Se],null)),od=ib}oc=$APP.r(function(){var Xd=$APP.yd.g(x9,Te);return Xd?Pi:Xd}())?null:Kb;Bd=$APP.r(function(){var Xd=$APP.yd.g(x9,
Te);return Xd?Pi:Xd}())?null:Kb;Vd=Te;Hc=$APP.y(Hc);ib=od;Kb=oc;oc=Bd}}}}(),ea=$APP.A.l(K,0,null),ia=$APP.A.l(K,1,null),ha=$APP.A.l(K,2,null),qa=h9(l,ia,$APP.ie.g(f,ia)),ra=function(){var ib=i9(ea,ia,ha,qa);return $APP.w(ba)?$APP.Vn.B(ib,$APP.Hk,new $APP.G(null,2,5,$APP.I,[F9,r9],null),function(Kb){return $APP.Qg.g($APP.lg(ba),Kb)}):ib}(),ua=$APP.r(h)?$APP.Nd($APP.Kk.j($APP.B([h,ra])),$APP.Pd(ra)):ra;if($APP.r(C)){a=$APP.w($APP.Nh(ua));b=null;for(var va=0,xa=0;;)if(xa<va){var Da=b.V(null,xa);$APP.ke(C,
Da)||c(new $APP.q(null,4,[M9,H9,K9,["Unknown option: ",$APP.t.h(Da)].join(""),H9,C,N9,Da],null));xa+=1}else if(a=$APP.w(a))b=a,$APP.be(b)?(a=$APP.wc(b),xa=$APP.yc(b),b=a,va=$APP.xd(a),a=xa):(a=$APP.x(b),$APP.ke(C,a)||c(new $APP.q(null,4,[M9,H9,K9,["Unknown option: ",$APP.t.h(a)].join(""),H9,C,N9,a],null)),a=$APP.y(b),b=null,va=0),xa=0;else break}if($APP.r(m))for(a=$APP.w(m),b=null,xa=va=0;;)if(xa<va)Da=b.V(null,xa),$APP.r($APP.qD(ua,Da))||c(new $APP.q(null,4,[M9,$APP.NB,K9,["Required option: ",$APP.t.h(Da)].join(""),
$APP.NB,m,N9,Da],null)),xa+=1;else if(a=$APP.w(a))b=a,$APP.be(b)?(a=$APP.wc(b),xa=$APP.yc(b),b=a,va=$APP.xd(a),a=xa):(a=$APP.x(b),$APP.r($APP.qD(ua,a))||c(new $APP.q(null,4,[M9,$APP.NB,K9,["Required option: ",$APP.t.h(a)].join(""),$APP.NB,m,N9,a],null)),a=$APP.y(b),b=null,va=0),xa=0;else break;if($APP.r(H))for(var ya=$APP.w(H),wa=null,La=0,Qa=0;;)if(Qa<La){var Xa=wa.V(null,Qa),gb=$APP.A.l(Xa,0,null),mb=$APP.A.l(Xa,1,null),Jb=function(){var ib=(ib=$APP.Zd(mb))?P9.h(mb):ib;return $APP.r(ib)?ib:mb}(),
Wb=$APP.qD(ua,gb);if($APP.r(Wb)){var zc=Wb,Db=$APP.A.l(zc,0,null),se=$APP.A.l(zc,1,null);if(!$APP.r(Jb.h?Jb.h(se):Jb.call(null,se))){var Li=function(){var ib=Q9.h(mb);return $APP.r(ib)?ib:function(){return function(Kb){var oc=$APP.nf(Kb);Kb=$APP.ie.g(oc,N9);oc=$APP.ie.g(oc,O9);return["Invalid value for option ",$APP.t.h(Kb),": ",$APP.t.h(oc)].join("")}}(ya,wa,La,Qa,ib,zc,Db,se,Wb,Jb,Xa,gb,mb,d,e,f,k,l,m,h,p,n,v,C,H,O,c,P,V,aa,da,ja,oa,ca,E,z,ba,J,K,ea,ia,ha,qa,ra,ua)}();c(new $APP.q(null,5,[M9,m9,
K9,function(){var ib=new $APP.q(null,2,[N9,gb,O9,se],null);return Li.h?Li.h(ib):Li.call(null,ib)}(),m9,H,N9,gb,O9,se],null))}}Qa+=1}else{var Qj=$APP.w(ya);if(Qj){var dh=Qj;if($APP.be(dh))va=$APP.wc(dh),a=$APP.yc(dh),b=va,va=$APP.xd(va),ya=a,wa=b,La=va;else{var Mi=$APP.x(dh),Ni=$APP.A.l(Mi,0,null),ai=$APP.A.l(Mi,1,null),Oi=function(){var ib=(ib=$APP.Zd(ai))?P9.h(ai):ib;return $APP.r(ib)?ib:ai}(),Rj=$APP.qD(ua,Ni);if($APP.r(Rj)){var nc=Rj,bi=$APP.A.l(nc,0,null),eh=$APP.A.l(nc,1,null);if(!$APP.r(Oi.h?
Oi.h(eh):Oi.call(null,eh))){var Sj=function(){var ib=Q9.h(ai);return $APP.r(ib)?ib:function(){return function(Kb){var oc=$APP.nf(Kb);Kb=$APP.ie.g(oc,N9);oc=$APP.ie.g(oc,O9);return["Invalid value for option ",$APP.t.h(Kb),": ",$APP.t.h(oc)].join("")}}(ya,wa,La,Qa,ib,nc,bi,eh,Rj,Oi,Mi,Ni,ai,dh,Qj,d,e,f,k,l,m,h,p,n,v,C,H,O,c,P,V,aa,da,ja,oa,ca,E,z,ba,J,K,ea,ia,ha,qa,ra,ua)}();c(new $APP.q(null,5,[M9,m9,K9,function(){var ib=new $APP.q(null,2,[N9,Ni,O9,eh],null);return Sj.h?Sj.h(ib):Sj.call(null,ib)}(),
m9,H,N9,Ni,O9,eh],null))}}ya=$APP.y(dh);wa=null;La=0}Qa=0}else break}return ua},S9=function(a,b){a=R9(a,b);b=F9.h($APP.Pd(a));return $APP.yi.l(b,$APP.XD,$APP.Lk.g(a,F9))},T9=function(a,b){var c=$APP.sD($APP.xd(a),b);b=$APP.A.l(c,0,null);c=$APP.A.l(c,1,null);return $APP.yd.g(b,a)?c:null},X9=function(a,b){$APP.Of(U9,!1);a.setPrompt([$APP.t.h($APP.$p),"\x3d\x3e "].join(""));a.prompt();return $APP.zD($APP.Rb(V9))?null:W9.g?W9.g(b,a):W9.call(null,b,a)},Y9=function(a){var b=$APP.vk(a);a=$APP.wk(a);var c=
$APP.yD($APP.Rb(V9));b=$APP.fr.g(b-1,c);c=$APP.w(b);b=$APP.x(c);c=$APP.y(c);a=$APP.r(b)?$APP.ii.g(b,a):null;$APP.Of(V9,$APP.fp.g("\n",$APP.Le(a,c)))},$9=function(a,b,c){var d=function(){var f=$APP.$p;$APP.$p=$APP.Rb(Z9);try{a:{var k=$APP.Ka;$APP.Ka=!0;try{var l=$APP.As.j($APP.B([a]));break a}finally{$APP.Ka=k}l=void 0}return $APP.wt(l,new $APP.q(null,2,[$APP.ap,$APP.$o,$APP.at,!0],null))}finally{$APP.$p=f}}(),e=$APP.nf(d);d=$APP.ie.g(e,$APP.vt);e=$APP.ie.g(e,$APP.Q);d=$APP.dk("(async function () {\n%s\n}) ()",
"%s",d);$APP.Of(Z9,e);return Promise.resolve(eval(d)).then(function(f){esm_import$squint_cljs$core.println(f);return W9.g?W9.g(c,b):W9.call(null,c,b)}).catch(function(f){esm_import$squint_cljs$core.println(f);return X9(b,c)})},W9=function(a,b){if($APP.r(function(){var e=$APP.Rb(U9);return $APP.r(e)?e:!$APP.zD($APP.Rb(V9))}())){$APP.Of(U9,!0);var c=$APP.Vo($APP.Rb(V9)),d=function(){try{return $APP.Xo(c,$APP.jt)}catch(f){var e=f;if(-1!=$APP.xD(e).indexOf("EOF while reading"))return a$;Y9(c);$APP.UD.j($APP.B([$APP.t.h(e)]));
return b$}}();if($APP.yd.g(b$,d))return X9(b,a);if($APP.yd.g(a$,d))return $APP.Of(U9,!1);Y9(c);return $APP.yd.g($APP.Wo,d)?X9(b,a):$9(d,b,a)}return null},c$=function(a){a.on("line",function(b){$APP.ej.B(V9,$APP.t,b,"\n");return W9(null,a)})},e$=function(a,b){var c=$APP.OD.h(a);if($APP.r(c)&&"string"!==typeof c)throw Error("output-dir must be a string");return $APP.r(d$.h(a))?($APP.VD.j($APP.B(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.VD(),$APP.VD.j($APP.B(["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.qe.l(function(d,e){return Promise.resolve(d).then(function(){$APP.VD.j($APP.B(["[squint] Compiling CLJS file:",e]));return $APP.PD($APP.yi.l(a,$APP.KD,e))}).then(function(f){f=$APP.nf(f);f=$APP.ie.g(f,$APP.MD);$APP.VD.j($APP.B(["[squint] Wrote JS file:",f]));return f})},null,b)},B9=new $APP.F(null,"kwd-opt","kwd-opt",1313309243),v9=new $APP.F(null,"hyphens","hyphens",2113533609),E9=new $APP.F(null,"spec","spec",347520401),k9=new $APP.F(null,"coerce","coerce",1917884504),H9=new $APP.F(null,"restrict",
"restrict",-1071101511),x9=new $APP.F(null,"keywords","keywords",1526959054),y9=new $APP.F(null,"mode","mode",654403691),b$=new $APP.F("squint.repl.node","continue","squint.repl.node/continue",1558138730),K9=new $APP.F(null,"msg","msg",-1386103444),f$=new $APP.F(null,"show","show",-576705889),w9=new $APP.F(null,"boolean","boolean",-1919418404),d9=new $APP.F(null,"input","input",556931961),g$=new $APP.F(null,"rest-cmds","rest-cmds",-423198324),F9=new $APP.F("org.babashka","cli","org.babashka/cli",
1162430315),t9=new $APP.F(null,"args-\x3eopts","args-\x3eopts",964391046),l9=new $APP.F(null,"alias","alias",-2039751630),G9=new $APP.F(null,"collect","collect",-284321549),h$=new $APP.F(null,"no-run","no-run",-1534313596),m9=new $APP.F(null,"validate","validate",-201300827),A9=new $APP.F(null,"composite-opt","composite-opt",-2021292928),z9=new $APP.F(null,"hyphen-opt","hyphen-opt",1836909464),d$=new $APP.F(null,"help","help",-439233446),M9=new $APP.F(null,"cause","cause",231901252),C9=new $APP.F(null,
"fst-colon","fst-colon",1618567071),e9=new $APP.F(null,"coerce-fn","coerce-fn",-821146515),r9=new $APP.F(null,"args","args",1315556576),p9=new $APP.F(null,"no-keyword-opts","no-keyword-opts",761286018),O9=new $APP.F(null,"value","value",305978217),P9=new $APP.F(null,"pred","pred",1927423397),I9=new $APP.F(null,"closed","closed",-919675359),a$=new $APP.F("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),J9=new $APP.F(null,"error-fn","error-fn",-171437615),N9=new $APP.F(null,
"option","option",65132272),n9=new $APP.F(null,"exec-args","exec-args",-1860766354),Q9=new $APP.F(null,"ex-msg","ex-msg",-1111774387),U8=new $APP.F(null,"s","s",1705939918),L9=new $APP.F(null,"cmds-opts","cmds-opts",-390130362),i$=new $APP.F(null,"h","h",1109658740),j$=new $APP.F(null,"e","e",1381269198),q9=new $APP.F(null,"cmds","cmds",-1841503952);var V9=$APP.$i.h(""),U9=$APP.$i.h(!1),k$,l$=process.stdout.isTTY;k$=$APP.r(l$)?process.stdin.setRawMode:l$;var Z9=$APP.$i.h($APP.$p),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.$p=$APP.yw;$APP.Qp=$APP.Vp=!0;$APP.r(k$)&&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});c$(b);b.setPrompt([$APP.t.h($APP.$p),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};m$.m=1;var n$=new $APP.G(null,4,5,$APP.I,[new $APP.q(null,3,[q9,new $APP.G(null,1,5,$APP.I,["run"],null),$APP.ko,function(a){a=$APP.nf(a);a=$APP.ie.g(a,$APP.XD);var b=$APP.nf(a),c=$APP.ie.g(b,$APP.Vk);b=$APP.ie.g(b,d$);if($APP.r(b))return null;$APP.VD.j($APP.B(["[squint] Running",c]));return $APP.PD($APP.yi.l(a,$APP.KD,c)).then(function(d){d=$APP.nf(d);d=$APP.ie.g(d,$APP.MD);d=$APP.r(esm_import$path.isAbsolute(d))?d:[$APP.t.h(process.cwd()),"/",$APP.t.h(d)].join("");return shadow_esm_import(d)})},L9,new $APP.G(null,
1,5,$APP.I,[$APP.Vk],null)],null),new $APP.q(null,3,[q9,new $APP.G(null,1,5,$APP.I,["compile"],null),k9,new $APP.q(null,3,[$APP.at,w9,$APP.bt,w9,$APP.OD,$APP.il],null),$APP.ko,function(a){var b=$APP.nf(a);a=$APP.ie.g(b,g$);b=$APP.ie.g(b,$APP.XD);return e$(b,a)}],null),new $APP.q(null,2,[q9,new $APP.G(null,1,5,$APP.I,["repl"],null),$APP.ko,m$],null),new $APP.q(null,2,[q9,$APP.kg,$APP.ko,function(a){a=$APP.nf(a);var b=$APP.ie.g(a,g$),c=$APP.ie.g(a,$APP.XD);a=j$.h(c);if($APP.r(a)){if($APP.r(d$.h(c)))return $APP.VD.j($APP.B(["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.hD.g(a,new $APP.q(null,1,[$APP.gt,$APP.$i.h(new $APP.q(null,1,[$APP.fo,$APP.yw],null))],null));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(f$.h(c))&&$APP.VD.j($APP.B([a]));if($APP.r(h$.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=
d$.h(c);return $APP.r(f)?f:$APP.yd.g("help",$APP.x(b))||$APP.Sd(b)}())?$APP.VD.j($APP.B(["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."])):e$(c,b)}],null)],null);(function(){var a=new $APP.q(null,1,[$APP.YD,new $APP.q(null,1,[i$,d$],null)],null),b=s9(process.argv.slice(2),a),c=$APP.nf(b),d=$APP.ie.g(c,q9),e=$APP.ie.g(c,r9);return $APP.qe.l(function(f,k){f=$APP.nf(k);var l=$APP.ie.g(f,q9),m=$APP.ie.g(f,$APP.ko),h=T9(l,d);if($APP.r(h)){k=function(){var v=null==h?null:$APP.w(h);return null==v?null:$APP.lg(v)}();k=$APP.N.g(k,e);f=S9(k,T8(a,$APP.B([f])));k=$APP.nf(f);var p=$APP.ie.g(k,$APP.XD);f=$APP.ie.g(k,r9);k=$APP.ie.g(k,q9);var n=$APP.N.g(k,f);return $APP.kd(function(){var v=
$APP.yi.j(c,r9,n,$APP.B([g$,n,$APP.XD,p,$APP.Oo,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,n$)})();
var R8=function(a,b){return $APP.Zd(a)&&$APP.Zd(b)?$APP.Kk.j($APP.B([a,b])):$APP.Td(a)&&($APP.Yd(a)||$APP.Ud(a))&&$APP.Td(b)&&($APP.Yd(b)||$APP.Ud(b))?$APP.Qg.g(a,b):b},S8=function(a,b){return $APP.qe.l(function(c,d){return $APP.TD.j(R8,$APP.B([c,d]))},a,b)},U8=function(a){throw $APP.Yk.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.q(null,1,[T8,a],null));},V8=function(a){var b=JSON.parse(a);return $APP.de(b)?b:U8(a)},W8=function(a){var b=JSON.parse(a);return $APP.lD(b)?b:U8(a)},X8=function(a){var b=
JSON.parse(a);return $APP.mD(b)?b:U8(a)},Y8=function(a){var b=JSON.parse(a);return"number"===typeof b?b:U8(a)},Z8=function(a){return"string"===typeof a?$APP.A.l(a,0,null):null},$8=function(a){return $APP.yd.g(":",Z8(a))?$APP.ui.h($APP.ii.g(a,1)):$APP.ui.h(a)},a9=function(a){return $APP.Td(a)?$APP.x(a):a},b9=function(a){if("string"===typeof a)try{var b=Z8(a);if($APP.yd.g("true",a)||$APP.yd.g("false",a))var c=V8(a);else{if($APP.yd.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e=Y8(a);else{var f=
$APP.yd.g(":",b);var k=f?$APP.gi(/:[a-zA-Z][a-zA-Z0-9_\/\.-]*/,a):f;e=$APP.r(k)?$8(a):a}d=e}c=d}return c}catch(l){return a}else return a},e9=function(a,b,c,d){throw $APP.Yk.l(["Coerce failure: cannot transform ",$APP.r(b)?"(implicit) true":["input ",$APP.As.j($APP.B([a]))].join(""),c instanceof $APP.F?" to ":" with ",$APP.t.h(c instanceof $APP.F?$APP.Yh(c):c)].join(""),new $APP.q(null,2,[c9,a,d9,c],null),d);},f9=function(a,b,c){var d=function(){switch(b instanceof $APP.F?b.wa:null){case "boolean":case "bool":return V8;
case "int":case "long":return W8;case "double":return X8;case "number":return Y8;case "symbol":return $APP.Di;case "keyword":return $8;case "string":return $APP.ve;case "edn":return $APP.WD;case "auto":return b9;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=e9(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?e9(a,c,b,null):d},g9=function(a,b,c){a=$APP.ie.g(a,b);c=$APP.r(a)?a:$APP.Td(c)?$APP.Id(c):null;return $APP.r(c)?$APP.Td(c)?$APP.Mp.g($APP.Ge,
c):c:null},h9=function(a,b,c,d){return $APP.Ao.g(b,c)?(c=$APP.qD(a,b),$APP.r(c)?($APP.A.l(c,0,null),c=$APP.A.l(c,1,null),$APP.yi.l(a,b,$APP.r(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.yi.l(a,b,$APP.r(d)?d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},i9=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Td(d):d)?f9(e,d,f):b9(e);return $APP.r(c)?$APP.Fm.B(a,b,c,d):$APP.yi.l(a,b,d)},n9=function(a){return $APP.qe.l(function(b,c){var d=$APP.A.l(c,0,null);c=$APP.A.l(c,1,null);var e=$APP.nf(c),f=$APP.ie.g(e,
j9),k=$APP.ie.g(e,k9);c=$APP.ie.g(e,$APP.pm);var l=$APP.ie.g(e,$APP.NB);e=$APP.ie.g(e,l9);b=$APP.r(f)?$APP.Fm.G(b,j9,$APP.yi,d,f):b;b=$APP.r(k)?$APP.Fm.l(b,k9,function(m){if($APP.ke(m,k))throw $APP.Yk.g(["Conflicting alias ",$APP.t.h(k)," between ",$APP.t.h($APP.ie.g(m,k))," and ",$APP.t.h(d)].join(""),new $APP.q(null,1,[k9,k],null));return $APP.yi.l(m,k,d)}):b;b=$APP.r(l)?$APP.Fm.l(b,$APP.NB,$APP.Mp.g(function(m){return $APP.Ge.g(m,d)},$APP.Sh)):b;b=$APP.r(e)?$APP.Fm.G(b,l9,$APP.yi,d,e):b;return $APP.r(c)?
$APP.Fm.G(b,m9,$APP.yi,d,c):b},$APP.mf,a)},r9=function(a,b){b=$APP.nf(b);var c=$APP.ie.g(b,o9);b=$APP.rD(function(d){var e=$APP.r(c)?null:$APP.sa(d,":");return!($APP.r(e)?e:$APP.sa(d,"-"))},a);a=$APP.A.l(b,0,null);b=$APP.A.l(b,1,null);return new $APP.q(null,2,[p9,a,q9,b],null)},t9=function(a,b){if($APP.r(b))if($APP.w(a)){var c=$APP.xd(a),d=$APP.cf(c,b);c=c<d?c:d;a=new $APP.G(null,2,5,$APP.I,[$APP.N.g($APP.qq.g(b,a),$APP.fr.g(c,a)),$APP.fr.g(c,b)],null)}else a=new $APP.G(null,2,5,$APP.I,[a,b],null);
else a=new $APP.G(null,2,5,$APP.I,[a,b],null);b=a;a=$APP.A.l(b,0,null);b=$APP.A.l(b,1,null);return new $APP.q(null,2,[q9,a,s9,b],null)},C9=function(a,b,c,d,e){var f=Z8(a),k="string"===typeof a?$APP.A.l(a,1,null):null,l;if(l=$APP.yd.g(f,"-")){try{var m=Y8($APP.t.h(k))}catch(h){m=null}l=$APP.Za(m)}b=$APP.r(b)?b:l?u9:null;f=$APP.yd.g(":",f);c=$APP.Ao.g(u9,b)&&f&&($APP.yd.g(v9,d)||$APP.Za(c)||$APP.yd.g(e,c));d=$APP.r(b)?b:c?w9:null;a=l?$APP.r(k)?$APP.Ao.g("-",k)&&2<$APP.xd(a):k:null;return new $APP.q(null,
5,[x9,d,y9,l,z9,a,A9,c,B9,f],null)},Q9=function(a,b){function c(ib){ib=$APP.Kk.j($APP.B([new $APP.q(null,2,[D9,d,$APP.Sk,E9],null),ib]));return O.h?O.h(ib):O.call(null,ib)}var d=D9.h(b),e=$APP.r(d)?S8(b,$APP.B([n9(d)])):b,f=j9.h(e),k=function(){var ib=k9.h(e);return $APP.r(ib)?ib:$APP.YD.h(e)}(),l=F9.h(e),m=$APP.NB.h(e),h=m9.h(e),p=o9.h(e),n=function(){var ib=G9.h(e);return $APP.r(ib)?ib:H9.h(e)}(),v=$APP.Wh($APP.N.j($APP.Nh($APP.Zd(d)?d:$APP.Qg.g($APP.mf,d)),$APP.Ph(k),$APP.B([$APP.Nh(f)]))),C=$APP.yd.g(!0,
n)?v:null==n?null:$APP.Wh(n),H=l9.h(e),O=function(){var ib=I9.h(e);return $APP.r(ib)?ib:function(Kb){Kb=$APP.nf(Kb);var oc=$APP.ie.g(Kb,J9);throw $APP.Yk.g(oc,Kb);}}(),P=r9(a,null),V=$APP.nf(P),aa=$APP.ie.g(V,p9),da=$APP.ie.g(V,q9),ja=function(){var ib=s9.h(e);ib=$APP.r(ib)?ib:K9.h(e);return $APP.r(ib)?t9(aa,ib):new $APP.q(null,2,[s9,null,q9,da],null)}(),oa=$APP.nf(ja),ca=$APP.ie.g(oa,q9),E=$APP.ie.g(oa,s9),z=$APP.Ao.g(ca,da)?new $APP.G(null,2,5,$APP.I,[null,$APP.N.g(ca,da)],null):new $APP.G(null,
2,5,$APP.I,[aa,da],null),ba=$APP.A.l(z,0,null),J=$APP.A.l(z,1,null),K=function(){for(var ib=$APP.mf,Kb=null,oc=null,Vd=$APP.r(p)?u9:null,Hc=$APP.w(J),zf=E;;){if($APP.Za(Hc))return new $APP.G(null,3,5,$APP.I,[ib,Kb,oc],null);var hf=$APP.x(Hc),tc=hf instanceof $APP.F;if(tc){Kb=h9(ib,Kb,oc,null);var Bd=hf;Hc=$APP.y(Hc);ib=Kb;Kb=Bd}else{var Sj=!0===hf,Se=$APP.t.h(hf);Bd=g9(l,Kb,$APP.ie.g(f,Kb));var fh=$APP.ie.g(f,Kb),Tj=C9(Se,Vd,Kb,fh,oc),tg=$APP.nf(Tj),Uj=$APP.ie.g(tg,y9),ug=$APP.ie.g(tg,z9),Vj=$APP.ie.g(tg,
A9),Te=$APP.ie.g(tg,x9),Pi=$APP.ie.g(tg,B9);if($APP.r(function(){var Xd=Uj;return $APP.r(Xd)?Xd:Vj}())){var xc=$APP.sa(Se,"--"),Qi=xc&&$APP.yd.g("--",Se);if(Qi){var Wj=$APP.y(Hc);return new $APP.G(null,3,5,$APP.I,[function(){var Xd=ib;return Wj?$APP.Vn.B(Xd,$APP.St,new $APP.G(null,2,5,$APP.I,[E9,q9],null),$APP.lg(Wj)):Xd}(),Kb,oc],null)}var Ri=xc?$APP.ii.g(Se,2):$APP.dk(Se,/^(:|-|)/,""),Ie=xc?$APP.nq.g(Ri,/=/):new $APP.G(null,1,5,$APP.I,[Ri],null),id=$APP.A.l(Ie,0,null),Od=$APP.A.l(Ie,1,null),Gb=
$APP.ui.h(id),mc=$APP.ie.l(k,Gb,Gb);if($APP.r(Od))oc=h9(ib,Kb,oc,Bd),Kb=mc,Vd=Te,Hc=$APP.Le(Od,$APP.bd(Hc)),ib=oc,oc=null;else{var lb=$APP.y(Hc),Wd=$APP.x(lb),dt=C9(Wd,Te,Kb,fh,oc);if($APP.r(function(){var Xd=y9.h(dt);return $APP.r(Xd)?Xd:$APP.Sd(lb)}()))if($APP.r(ug)){var et=$APP.Yh(mc);oc=$APP.cr.j(function(){return function(Xd){return new $APP.G(null,2,5,$APP.I,[["-",$APP.t.h(Xd)].join(""),!0],null)}}(ib,Kb,oc,Vd,Hc,zf,et,lb,Wd,dt,Ri,Ie,id,Od,Gb,mc,xc,Qi,Sj,Se,Bd,fh,Tj,tg,Uj,ug,Vj,Te,Pi,hf,tc,
d,e,f,k,l,m,h,p,n,v,C,H,O,c,P,V,aa,da,ja,oa,ca,E,z,ba,J),$APP.B([et]));Hc=$APP.N.g(oc,lb);Vd=Te;oc=Kb=null}else Hc=$APP.ke(v,mc)?null:$APP.iD($APP.t.h(mc),":no-"),Vd=$APP.r(Hc)?$APP.ui.h($APP.dk($APP.t.h(mc),":no-","")):mc,Hc=$APP.Le($APP.Za(Hc),lb),Kb=h9(ib,Kb,oc,Bd),Bd=Vd,Vd=Te,ib=Kb,Kb=Bd;else Kb=h9(ib,Kb,oc,Bd),Bd=mc,Vd=Te,Hc=lb,ib=Kb,Kb=Bd}}else if(Qi=$APP.yd.g(v9,fh)&&$APP.Ao.g(Se,"true")&&$APP.Ao.g(Se,"false")||$APP.yd.g(oc,Kb)&&$APP.Za(Bd))if(zf=$APP.r(Hc)?$APP.r(zf)?t9(Hc,zf):new $APP.q(null,
1,[q9,Hc],null):new $APP.q(null,1,[q9,Hc],null),Vd=$APP.nf(zf),zf=$APP.ie.g(Vd,q9),Vd=$APP.ie.g(Vd,s9),$APP.Ao.g(Hc,zf))Bd=Vd,Vd=Te,Hc=zf,zf=Bd;else return new $APP.G(null,3,5,$APP.I,[$APP.Vn.B(ib,$APP.St,new $APP.G(null,2,5,$APP.I,[E9,q9],null),$APP.lg(Hc)),Kb,oc],null);else{try{var od=i9(ib,Kb,Bd,a9(fh),Se,Sj)}catch(Xd){c(new $APP.q(null,4,[L9,j9,J9,$APP.xD(Xd),M9,Kb,N9,Se],null)),od=ib}oc=$APP.r(function(){var Xd=$APP.yd.g(w9,Te);return Xd?Pi:Xd}())?null:Kb;Bd=$APP.r(function(){var Xd=$APP.yd.g(w9,
Te);return Xd?Pi:Xd}())?null:Kb;Vd=Te;Hc=$APP.y(Hc);ib=od;Kb=oc;oc=Bd}}}}(),ea=$APP.A.l(K,0,null),ia=$APP.A.l(K,1,null),ha=$APP.A.l(K,2,null),qa=g9(l,ia,$APP.ie.g(f,ia)),ra=function(){var ib=h9(ea,ia,ha,qa);return $APP.w(ba)?$APP.Vn.B(ib,$APP.Hk,new $APP.G(null,2,5,$APP.I,[E9,q9],null),function(Kb){return $APP.Qg.g($APP.lg(ba),Kb)}):ib}(),ua=$APP.r(h)?$APP.Nd($APP.Kk.j($APP.B([h,ra])),$APP.Pd(ra)):ra;if($APP.r(C)){a=$APP.w($APP.Nh(ua));b=null;for(var va=0,xa=0;;)if(xa<va){var Da=b.V(null,xa);$APP.ke(C,
Da)||c(new $APP.q(null,4,[L9,G9,J9,["Unknown option: ",$APP.t.h(Da)].join(""),G9,C,M9,Da],null));xa+=1}else if(a=$APP.w(a))b=a,$APP.be(b)?(a=$APP.wc(b),xa=$APP.yc(b),b=a,va=$APP.xd(a),a=xa):(a=$APP.x(b),$APP.ke(C,a)||c(new $APP.q(null,4,[L9,G9,J9,["Unknown option: ",$APP.t.h(a)].join(""),G9,C,M9,a],null)),a=$APP.y(b),b=null,va=0),xa=0;else break}if($APP.r(m))for(a=$APP.w(m),b=null,xa=va=0;;)if(xa<va)Da=b.V(null,xa),$APP.r($APP.qD(ua,Da))||c(new $APP.q(null,4,[L9,$APP.NB,J9,["Required option: ",$APP.t.h(Da)].join(""),
$APP.NB,m,M9,Da],null)),xa+=1;else if(a=$APP.w(a))b=a,$APP.be(b)?(a=$APP.wc(b),xa=$APP.yc(b),b=a,va=$APP.xd(a),a=xa):(a=$APP.x(b),$APP.r($APP.qD(ua,a))||c(new $APP.q(null,4,[L9,$APP.NB,J9,["Required option: ",$APP.t.h(a)].join(""),$APP.NB,m,M9,a],null)),a=$APP.y(b),b=null,va=0),xa=0;else break;if($APP.r(H))for(var ya=$APP.w(H),wa=null,La=0,Qa=0;;)if(Qa<La){var Xa=wa.V(null,Qa),gb=$APP.A.l(Xa,0,null),mb=$APP.A.l(Xa,1,null),Jb=function(){var ib=(ib=$APP.Zd(mb))?O9.h(mb):ib;return $APP.r(ib)?ib:mb}(),
Wb=$APP.qD(ua,gb);if($APP.r(Wb)){var zc=Wb,Db=$APP.A.l(zc,0,null),se=$APP.A.l(zc,1,null);if(!$APP.r(Jb.h?Jb.h(se):Jb.call(null,se))){var Li=function(){var ib=P9.h(mb);return $APP.r(ib)?ib:function(){return function(Kb){var oc=$APP.nf(Kb);Kb=$APP.ie.g(oc,M9);oc=$APP.ie.g(oc,N9);return["Invalid value for option ",$APP.t.h(Kb),": ",$APP.t.h(oc)].join("")}}(ya,wa,La,Qa,ib,zc,Db,se,Wb,Jb,Xa,gb,mb,d,e,f,k,l,m,h,p,n,v,C,H,O,c,P,V,aa,da,ja,oa,ca,E,z,ba,J,K,ea,ia,ha,qa,ra,ua)}();c(new $APP.q(null,5,[L9,l9,
J9,function(){var ib=new $APP.q(null,2,[M9,gb,N9,se],null);return Li.h?Li.h(ib):Li.call(null,ib)}(),l9,H,M9,gb,N9,se],null))}}Qa+=1}else{var Pj=$APP.w(ya);if(Pj){var dh=Pj;if($APP.be(dh))va=$APP.wc(dh),a=$APP.yc(dh),b=va,va=$APP.xd(va),ya=a,wa=b,La=va;else{var Mi=$APP.x(dh),Ni=$APP.A.l(Mi,0,null),ai=$APP.A.l(Mi,1,null),Oi=function(){var ib=(ib=$APP.Zd(ai))?O9.h(ai):ib;return $APP.r(ib)?ib:ai}(),Qj=$APP.qD(ua,Ni);if($APP.r(Qj)){var nc=Qj,bi=$APP.A.l(nc,0,null),eh=$APP.A.l(nc,1,null);if(!$APP.r(Oi.h?
Oi.h(eh):Oi.call(null,eh))){var Rj=function(){var ib=P9.h(ai);return $APP.r(ib)?ib:function(){return function(Kb){var oc=$APP.nf(Kb);Kb=$APP.ie.g(oc,M9);oc=$APP.ie.g(oc,N9);return["Invalid value for option ",$APP.t.h(Kb),": ",$APP.t.h(oc)].join("")}}(ya,wa,La,Qa,ib,nc,bi,eh,Qj,Oi,Mi,Ni,ai,dh,Pj,d,e,f,k,l,m,h,p,n,v,C,H,O,c,P,V,aa,da,ja,oa,ca,E,z,ba,J,K,ea,ia,ha,qa,ra,ua)}();c(new $APP.q(null,5,[L9,l9,J9,function(){var ib=new $APP.q(null,2,[M9,Ni,N9,eh],null);return Rj.h?Rj.h(ib):Rj.call(null,ib)}(),
l9,H,M9,Ni,N9,eh],null))}}ya=$APP.y(dh);wa=null;La=0}Qa=0}else break}return ua},R9=function(a,b){a=Q9(a,b);b=E9.h($APP.Pd(a));return $APP.yi.l(b,$APP.XD,$APP.Lk.g(a,E9))},S9=function(a,b){var c=$APP.sD($APP.xd(a),b);b=$APP.A.l(c,0,null);c=$APP.A.l(c,1,null);return $APP.yd.g(b,a)?c:null},W9=function(a,b){$APP.Of(T9,!1);a.setPrompt([$APP.t.h($APP.$p),"\x3d\x3e "].join(""));a.prompt();return $APP.zD($APP.Rb(U9))?null:V9.g?V9.g(b,a):V9.call(null,b,a)},X9=function(a){var b=$APP.vk(a);a=$APP.wk(a);var c=
$APP.yD($APP.Rb(U9));b=$APP.fr.g(b-1,c);c=$APP.w(b);b=$APP.x(c);c=$APP.y(c);a=$APP.r(b)?$APP.ii.g(b,a):null;$APP.Of(U9,$APP.fp.g("\n",$APP.Le(a,c)))},Z9=function(a,b,c){var d=function(){var f=$APP.$p;$APP.$p=$APP.Rb(Y9);try{a:{var k=$APP.Ka;$APP.Ka=!0;try{var l=$APP.As.j($APP.B([a]));break a}finally{$APP.Ka=k}l=void 0}return $APP.wt(l,new $APP.q(null,2,[$APP.ap,$APP.$o,$APP.at,!0],null))}finally{$APP.$p=f}}(),e=$APP.nf(d);d=$APP.ie.g(e,$APP.vt);e=$APP.ie.g(e,$APP.Q);d=$APP.dk("(async function () {\n%s\n}) ()",
"%s",d);$APP.Of(Y9,e);return Promise.resolve(eval(d)).then(function(f){esm_import$squint_cljs$core.println(f);return V9.g?V9.g(c,b):V9.call(null,c,b)}).catch(function(f){esm_import$squint_cljs$core.println(f);return W9(b,c)})},V9=function(a,b){if($APP.r(function(){var e=$APP.Rb(T9);return $APP.r(e)?e:!$APP.zD($APP.Rb(U9))}())){$APP.Of(T9,!0);var c=$APP.Vo($APP.Rb(U9)),d=function(){try{return $APP.Xo(c,$APP.jt)}catch(f){var e=f;if(-1!=$APP.xD(e).indexOf("EOF while reading"))return $9;X9(c);$APP.UD.j($APP.B([$APP.t.h(e)]));
return a$}}();if($APP.yd.g(a$,d))return W9(b,a);if($APP.yd.g($9,d))return $APP.Of(T9,!1);X9(c);return $APP.yd.g($APP.Wo,d)?W9(b,a):Z9(d,b,a)}return null},b$=function(a){a.on("line",function(b){$APP.ej.B(U9,$APP.t,b,"\n");return V9(null,a)})},d$=function(a,b){var c=$APP.OD.h(a);if($APP.r(c)&&"string"!==typeof c)throw Error("output-dir must be a string");return $APP.r(c$.h(a))?($APP.VD.j($APP.B(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.VD(),$APP.VD.j($APP.B(["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.qe.l(function(d,e){return Promise.resolve(d).then(function(){$APP.VD.j($APP.B(["[squint] Compiling CLJS file:",e]));return $APP.PD($APP.yi.l(a,$APP.KD,e))}).then(function(f){f=$APP.nf(f);f=$APP.ie.g(f,$APP.MD);$APP.VD.j($APP.B(["[squint] Wrote JS file:",f]));return f})},null,b)},A9=new $APP.F(null,"kwd-opt","kwd-opt",1313309243),u9=new $APP.F(null,"hyphens","hyphens",2113533609),D9=new $APP.F(null,"spec","spec",347520401),j9=new $APP.F(null,"coerce","coerce",1917884504),G9=new $APP.F(null,"restrict",
"restrict",-1071101511),w9=new $APP.F(null,"keywords","keywords",1526959054),x9=new $APP.F(null,"mode","mode",654403691),a$=new $APP.F("squint.repl.node","continue","squint.repl.node/continue",1558138730),J9=new $APP.F(null,"msg","msg",-1386103444),e$=new $APP.F(null,"show","show",-576705889),v9=new $APP.F(null,"boolean","boolean",-1919418404),c9=new $APP.F(null,"input","input",556931961),f$=new $APP.F(null,"rest-cmds","rest-cmds",-423198324),E9=new $APP.F("org.babashka","cli","org.babashka/cli",
1162430315),s9=new $APP.F(null,"args-\x3eopts","args-\x3eopts",964391046),k9=new $APP.F(null,"alias","alias",-2039751630),F9=new $APP.F(null,"collect","collect",-284321549),g$=new $APP.F(null,"no-run","no-run",-1534313596),l9=new $APP.F(null,"validate","validate",-201300827),z9=new $APP.F(null,"composite-opt","composite-opt",-2021292928),y9=new $APP.F(null,"hyphen-opt","hyphen-opt",1836909464),c$=new $APP.F(null,"help","help",-439233446),L9=new $APP.F(null,"cause","cause",231901252),B9=new $APP.F(null,
"fst-colon","fst-colon",1618567071),d9=new $APP.F(null,"coerce-fn","coerce-fn",-821146515),q9=new $APP.F(null,"args","args",1315556576),o9=new $APP.F(null,"no-keyword-opts","no-keyword-opts",761286018),N9=new $APP.F(null,"value","value",305978217),O9=new $APP.F(null,"pred","pred",1927423397),H9=new $APP.F(null,"closed","closed",-919675359),$9=new $APP.F("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),I9=new $APP.F(null,"error-fn","error-fn",-171437615),M9=new $APP.F(null,
"option","option",65132272),m9=new $APP.F(null,"exec-args","exec-args",-1860766354),P9=new $APP.F(null,"ex-msg","ex-msg",-1111774387),T8=new $APP.F(null,"s","s",1705939918),K9=new $APP.F(null,"cmds-opts","cmds-opts",-390130362),h$=new $APP.F(null,"h","h",1109658740),i$=new $APP.F(null,"e","e",1381269198),p9=new $APP.F(null,"cmds","cmds",-1841503952);var U9=$APP.$i.h(""),T9=$APP.$i.h(!1),j$,k$=process.stdout.isTTY;j$=$APP.r(k$)?process.stdin.setRawMode:k$;var Y9=$APP.$i.h($APP.$p),l$=function l$(a){switch(arguments.length){case 0:return l$.v();case 1:return l$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};l$.v=function(){return l$.h(null)};
l$.h=function(){$APP.$p=$APP.uw;$APP.Qp=$APP.Vp=!0;$APP.r(j$)&&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});b$(b);b.setPrompt([$APP.t.h($APP.$p),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};l$.m=1;var m$=new $APP.G(null,4,5,$APP.I,[new $APP.q(null,3,[p9,new $APP.G(null,1,5,$APP.I,["run"],null),$APP.ko,function(a){a=$APP.nf(a);a=$APP.ie.g(a,$APP.XD);var b=$APP.nf(a),c=$APP.ie.g(b,$APP.Vk);b=$APP.ie.g(b,c$);if($APP.r(b))return null;$APP.VD.j($APP.B(["[squint] Running",c]));return $APP.PD($APP.yi.l(a,$APP.KD,c)).then(function(d){d=$APP.nf(d);d=$APP.ie.g(d,$APP.MD);d=$APP.r(esm_import$path.isAbsolute(d))?d:[$APP.t.h(process.cwd()),"/",$APP.t.h(d)].join("");return shadow_esm_import(d)})},K9,new $APP.G(null,
1,5,$APP.I,[$APP.Vk],null)],null),new $APP.q(null,3,[p9,new $APP.G(null,1,5,$APP.I,["compile"],null),j9,new $APP.q(null,3,[$APP.at,v9,$APP.bt,v9,$APP.OD,$APP.il],null),$APP.ko,function(a){var b=$APP.nf(a);a=$APP.ie.g(b,f$);b=$APP.ie.g(b,$APP.XD);return d$(b,a)}],null),new $APP.q(null,2,[p9,new $APP.G(null,1,5,$APP.I,["repl"],null),$APP.ko,l$],null),new $APP.q(null,2,[p9,$APP.kg,$APP.ko,function(a){a=$APP.nf(a);var b=$APP.ie.g(a,f$),c=$APP.ie.g(a,$APP.XD);a=i$.h(c);if($APP.r(a)){if($APP.r(c$.h(c)))return $APP.VD.j($APP.B(["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.hD.g(a,new $APP.q(null,1,[$APP.gt,$APP.$i.h(new $APP.q(null,1,[$APP.fo,$APP.uw],null))],null));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(e$.h(c))&&$APP.VD.j($APP.B([a]));if($APP.r(g$.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=
c$.h(c);return $APP.r(f)?f:$APP.yd.g("help",$APP.x(b))||$APP.Sd(b)}())?$APP.VD.j($APP.B(["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."])):d$(c,b)}],null)],null);(function(){var a=new $APP.q(null,1,[$APP.YD,new $APP.q(null,1,[h$,c$],null)],null),b=r9(process.argv.slice(2),a),c=$APP.nf(b),d=$APP.ie.g(c,p9),e=$APP.ie.g(c,q9);return $APP.qe.l(function(f,k){f=$APP.nf(k);var l=$APP.ie.g(f,p9),m=$APP.ie.g(f,$APP.ko),h=S9(l,d);if($APP.r(h)){k=function(){var v=null==h?null:$APP.w(h);return null==v?null:$APP.lg(v)}();k=$APP.N.g(k,e);f=R9(k,S8(a,$APP.B([f])));k=$APP.nf(f);var p=$APP.ie.g(k,$APP.XD);f=$APP.ie.g(k,q9);k=$APP.ie.g(k,p9);var n=$APP.N.g(k,f);return $APP.kd(function(){var v=
$APP.yi.j(c,q9,n,$APP.B([f$,n,$APP.XD,p,$APP.Oo,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,m$)})();
import { $APP, shadow$provide, $jscomp } from "./compiler.js";
const shadow_esm_import = function(x) { return import(x) };
import*as esm_import$fs from"fs";import*as esm_import$path from"path";var jD,uD,vD,wD,AD,ID,JD,QD,SD,BD,HD,LD,ND;$APP.iD=function(a,b){return $APP.sa(a,b)};jD=function(){};$APP.kD=function(a){return null!=a?a.C&512||$APP.Qc===a.be?!0:a.C?!1:$APP.cb($APP.zb,a):$APP.cb($APP.zb,a)};$APP.lD=function(a){return $APP.he(a)||!1};$APP.mD=function(a){return"number"===typeof a};$APP.nD=function(){this.A=[]};$APP.oD=function(a){$APP.oi("\n");return $APP.ie.g(a,$APP.Ga),null};
$APP.pD=function(a,b){var c=$APP.mf;for(b=$APP.w(b);;)if(b){var d=$APP.x(b),e=$APP.ie.l(a,d,$APP.Qz);c=$APP.Ao.g(e,$APP.Qz)?$APP.yi.l(c,d,e):c;b=$APP.y(b)}else return $APP.Vb(c,$APP.Pd(a))};$APP.qD=function(a,b){return(null!=a?$APP.Qc===a.oc||(a.Zc?0:$APP.cb(jD,a)):$APP.cb(jD,a))?$APP.Cb(a,b):null!=a&&$APP.kD(a)&&$APP.ke(a,b)?new $APP.Jg(b,$APP.ie.g(a,b),null):null};$APP.rD=function(a,b){return new $APP.G(null,2,5,$APP.I,[$APP.kr.g(a,b),$APP.lr.g(a,b)],null)};
$APP.pD=function(a,b){var c=$APP.mf;for(b=$APP.w(b);;)if(b){var d=$APP.x(b),e=$APP.ie.l(a,d,$APP.Oz);c=$APP.Ao.g(e,$APP.Oz)?$APP.yi.l(c,d,e):c;b=$APP.y(b)}else return $APP.Vb(c,$APP.Pd(a))};$APP.qD=function(a,b){return(null!=a?$APP.Qc===a.oc||(a.Zc?0:$APP.cb(jD,a)):$APP.cb(jD,a))?$APP.Cb(a,b):null!=a&&$APP.kD(a)&&$APP.ke(a,b)?new $APP.Jg(b,$APP.ie.g(a,b),null):null};$APP.rD=function(a,b){return new $APP.G(null,2,5,$APP.I,[$APP.kr.g(a,b),$APP.lr.g(a,b)],null)};
$APP.sD=function(a,b){return new $APP.G(null,2,5,$APP.I,[$APP.Pk.g(a,b),$APP.fr.g(a,b)],null)};$APP.tD=function(a,b){this.f=a;this.value=b;this.C=2147516416;this.K=1};uD=function(){};vD=function(a){if(null!=a&&null!=a.De)a=a.De(a);else{var b=vD[$APP.la(null==a?null:a)];if(null!=b)a=b.h?b.h(a):b.call(null,a);else if(b=vD._,null!=b)a=b.h?b.h(a):b.call(null,a);else throw $APP.eb("IEncodeJS.-clj-\x3ejs",a);}return a};

@@ -19,3 +19,3 @@ wD=function(a,b){return(null!=a?$APP.Qc===a.Ce||(a.Zc?0:$APP.cb(uD,a)):$APP.cb(uD,a))?vD(a):"string"===typeof a||"number"===typeof a||a instanceof $APP.F||a instanceof $APP.u?b.h?b.h(a):b.call(null,a):$APP.As.j($APP.B([a]))};$APP.xD=function(a){return a instanceof Error?a.message:null};$APP.yD=function(a){return $APP.nq.g(a,/\n|\r\n/)};$APP.zD=function(a){return/^[\s\xa0]*$/.test(null==a?"":String(a))};AD=function(a,b){return $APP.r($APP.r(b)?$APP.Ao.g(b,""):b)?$APP.qm(a,$APP.Ek(b)):null};

arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.CD.g=function(a,b){return $APP.CD.l(a,a,b)};$APP.CD.l=function(a,b,c){return new $APP.Re(null,function(){var d=$APP.w(c);return d?$APP.Le($APP.Pk.g(a,d),$APP.CD.l(a,b,$APP.fr.g(b,d))):null},null,null)};$APP.CD.m=3;$APP.tD.prototype.jb=function(){$APP.r(this.f)&&(this.value=this.f.v?this.f.v():this.f.call(null),this.f=null);return this.value};$APP.tD.prototype.Lb=$APP.ka(6);
$APP.tD.prototype.P=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.si(new $APP.q(null,2,[$APP.CA,null==this.f?$APP.fv:$APP.Py,$APP.hu,this.value],null),b,c);return $APP.ic(b,"]")};$APP.RD=function RD(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return RD.j(arguments[0],1<c.length?new $APP.Yc(c.slice(1),0,null):null)};
$APP.tD.prototype.P=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.si(new $APP.q(null,2,[$APP.CA,null==this.f?$APP.dv:$APP.Ny,$APP.hu,this.value],null),b,c);return $APP.ic(b,"]")};$APP.RD=function RD(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return RD.j(arguments[0],1<c.length?new $APP.Yc(c.slice(1),0,null):null)};
$APP.RD.j=function(a,b){b=$APP.nf(b);var c=$APP.ie.l(b,$APP.KB,$APP.Yh),d=function k(f){if(null==f)return null;if(null!=f?$APP.Qc===f.Ce||(f.Zc?0:$APP.cb(uD,f)):$APP.cb(uD,f))return vD(f);if(f instanceof $APP.F)return c.h?c.h(f):c.call(null,f);if(f instanceof $APP.u)return $APP.t.h(f);if($APP.Zd(f)){var l={};f=$APP.w(f);for(var m=null,h=0,p=0;;)if(p<h){var n=m.V(null,p),v=$APP.A.l(n,0,null);n=$APP.A.l(n,1,null);v=wD(v,d);n=k(n);l[v]=n;p+=1}else if(f=$APP.w(f))$APP.be(f)?(h=$APP.wc(f),f=$APP.yc(f),

@@ -22,0 +22,0 @@ m=h,h=$APP.xd(h)):(h=$APP.x(f),m=$APP.A.l(h,0,null),h=$APP.A.l(h,1,null),m=wD(m,d),h=k(h),l[m]=h,f=$APP.y(f),m=null,h=0),p=0;else break;return l}if($APP.Td(f)){l=[];f=$APP.w($APP.ti.g(k,f));m=null;for(p=h=0;;)if(p<h)v=m.V(null,p),l.push(v),p+=1;else if(f=$APP.w(f))m=f,$APP.be(m)?(f=$APP.wc(m),p=$APP.yc(m),m=f,h=$APP.xd(f),f=p):(f=$APP.x(m),l.push(f),f=$APP.y(m),m=null,h=0),p=0;else break;return l}return f};return d(a)};$APP.RD.m=1;

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

"sideEffects": false,
"version": "0.2.29",
"version": "0.2.30",
"files": [

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

@@ -217,2 +217,17 @@ ## Squint

## Macros
To load macros, add a `squint.edn` file in the root of your project with
`{:paths ["src-squint"]}` that describes where to find your macro files. Macros
are written in `.cljs` or `.cljc` files and are executed using
[SCI](https://github.com/babashka/sci).
The following searches for a `foo/macros.cljc` file in the `:paths` described in `squint.edn`.
``` clojure
(ns foo (:require-macros [foo.macros :refer [my-macro]]))
(my-macro 1 2 3)
```
## Svelte

@@ -219,0 +234,0 @@

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