squint-cljs
Advanced tools
Comparing version 0.1.22 to 0.1.23
@@ -5,11 +5,11 @@ 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$process from"process";import*as esm_import$url from"url";import*as esm_import$path from"path"; | ||
var H8=function(a,b){return $APP.Zd(a)&&$APP.Zd(b)?$APP.Ik.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},I8=function(a,b){return $APP.qe.l(function(c,d){return $APP.ID.j(H8,$APP.B([c,d]))},a,b)},K8=function(a){throw $APP.Wk.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.q(null,1,[J8,a],null));},L8=function(a){var b=JSON.parse(a);return $APP.de(b)?b:K8(a)},M8=function(a){var b=JSON.parse(a);return $APP.$C(b)?b:K8(a)},N8=function(a){var b= | ||
JSON.parse(a);return $APP.aD(b)?b:K8(a)},O8=function(a){var b=JSON.parse(a);return"number"===typeof b?b:K8(a)},P8=function(a){return"string"===typeof a?$APP.A.l(a,0,null):null},Q8=function(a){return $APP.yd.g(":",P8(a))?$APP.ui.h($APP.ii.g(a,1)):$APP.ui.h(a)},R8=function(a){return $APP.Td(a)?$APP.x(a):a},S8=function(a){if("string"===typeof a)try{var b=P8(a);if($APP.yd.g("true",a)||$APP.yd.g("false",a))var c=L8(a);else{if($APP.yd.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e=O8(a);else{var f= | ||
var H8=function(a,b){return $APP.Zd(a)&&$APP.Zd(b)?$APP.Ik.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},I8=function(a,b){return $APP.qe.l(function(c,d){return $APP.JD.j(H8,$APP.B([c,d]))},a,b)},K8=function(a){throw $APP.Wk.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.q(null,1,[J8,a],null));},L8=function(a){var b=JSON.parse(a);return $APP.de(b)?b:K8(a)},M8=function(a){var b=JSON.parse(a);return $APP.aD(b)?b:K8(a)},N8=function(a){var b= | ||
JSON.parse(a);return $APP.bD(b)?b:K8(a)},O8=function(a){var b=JSON.parse(a);return"number"===typeof b?b:K8(a)},P8=function(a){return"string"===typeof a?$APP.A.l(a,0,null):null},Q8=function(a){return $APP.yd.g(":",P8(a))?$APP.ui.h($APP.ii.g(a,1)):$APP.ui.h(a)},R8=function(a){return $APP.Td(a)?$APP.x(a):a},S8=function(a){if("string"===typeof a)try{var b=P8(a);if($APP.yd.g("true",a)||$APP.yd.g("false",a))var c=L8(a);else{if($APP.yd.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e=O8(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)?Q8(a):a}d=e}c=d}return c}catch(l){return a}else return a},V8=function(a,b,c,d){throw $APP.Wk.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,[T8,a,U8,c],null),d);},W8=function(a,b,c){var d=function(){switch(b instanceof $APP.F?b.wa:null){case "boolean":case "bool":return L8; | ||
case "int":case "long":return M8;case "double":return N8;case "number":return O8;case "symbol":return $APP.Di;case "keyword":return Q8;case "string":return $APP.ve;case "edn":return $APP.LD;case "auto":return S8;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=V8(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?V8(a,c,b,null):d},X8=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},Y8=function(a,b,c,d){return $APP.yo.g(b,c)?(c=$APP.eD(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},Z8=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Td(d):d)?W8(e,d,f):S8(e);return $APP.r(c)?$APP.Dm.B(a,b,c,d):$APP.yi.l(a,b,d)},d9=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, | ||
$8),k=$APP.ie.g(e,a9);c=$APP.ie.g(e,$APP.nm);var l=$APP.ie.g(e,$APP.BB);e=$APP.ie.g(e,b9);b=$APP.r(f)?$APP.Dm.G(b,$8,$APP.yi,d,f):b;b=$APP.r(k)?$APP.Dm.l(b,a9,function(m){if($APP.ke(m,k))throw $APP.Wk.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,[a9,k],null));return $APP.yi.l(m,k,d)}):b;b=$APP.r(l)?$APP.Dm.l(b,$APP.BB,$APP.Mp.g(function(m){return $APP.Ge.g(m,d)},$APP.Sh)):b;b=$APP.r(e)?$APP.Dm.G(b,b9,$APP.yi,d,e):b;return $APP.r(c)? | ||
$APP.Dm.G(b,c9,$APP.yi,d,c):b},$APP.mf,a)},h9=function(a,b){b=$APP.nf(b);var c=$APP.ie.g(b,e9);b=$APP.fD(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,[f9,a,g9,b],null)},j9=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.H(null,2,5,$APP.I,[$APP.N.g($APP.pq.g(b,a),$APP.Aq.g(c,a)),$APP.Aq.g(c,b)],null)}else a=new $APP.H(null,2,5,$APP.I,[a,b],null); | ||
case "int":case "long":return M8;case "double":return N8;case "number":return O8;case "symbol":return $APP.Di;case "keyword":return Q8;case "string":return $APP.ve;case "edn":return $APP.MD;case "auto":return S8;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=V8(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?V8(a,c,b,null):d},X8=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},Y8=function(a,b,c,d){return $APP.yo.g(b,c)?(c=$APP.fD(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},Z8=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Td(d):d)?W8(e,d,f):S8(e);return $APP.r(c)?$APP.Dm.B(a,b,c,d):$APP.yi.l(a,b,d)},d9=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, | ||
$8),k=$APP.ie.g(e,a9);c=$APP.ie.g(e,$APP.nm);var l=$APP.ie.g(e,$APP.EB);e=$APP.ie.g(e,b9);b=$APP.r(f)?$APP.Dm.G(b,$8,$APP.yi,d,f):b;b=$APP.r(k)?$APP.Dm.l(b,a9,function(m){if($APP.ke(m,k))throw $APP.Wk.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,[a9,k],null));return $APP.yi.l(m,k,d)}):b;b=$APP.r(l)?$APP.Dm.l(b,$APP.EB,$APP.Mp.g(function(m){return $APP.Ge.g(m,d)},$APP.Sh)):b;b=$APP.r(e)?$APP.Dm.G(b,b9,$APP.yi,d,e):b;return $APP.r(c)? | ||
$APP.Dm.G(b,c9,$APP.yi,d,c):b},$APP.mf,a)},h9=function(a,b){b=$APP.nf(b);var c=$APP.ie.g(b,e9);b=$APP.gD(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,[f9,a,g9,b],null)},j9=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.H(null,2,5,$APP.I,[$APP.N.g($APP.pq.g(b,a),$APP.Aq.g(c,a)),$APP.Aq.g(c,b)],null)}else a=new $APP.H(null,2,5,$APP.I,[a,b],null); | ||
else a=new $APP.H(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,[g9,a,i9,b],null)},s9=function(a,b,c,d,e){var f=P8(a),k="string"===typeof a?$APP.A.l(a,1,null):null,l;if(l=$APP.yd.g(f,"-")){try{var m=O8($APP.t.h(k))}catch(h){m=null}l=$APP.Za(m)}b=$APP.r(b)?b:l?k9:null;f=$APP.yd.g(":",f);c=$APP.yo.g(k9,b)&&f&&($APP.yd.g(l9,d)||$APP.Za(c)||$APP.yd.g(e,c));d=$APP.r(b)?b:c?m9:null;a=l?$APP.r(k)?$APP.yo.g("-",k)&&2<$APP.xd(a):k:null;return new $APP.q(null, | ||
5,[n9,d,o9,l,p9,a,q9,c,r9,f],null)},G9=function(a,b){function c(ib){ib=$APP.Ik.j($APP.B([new $APP.q(null,2,[t9,d,$APP.Qk,u9],null),ib]));return O.h?O.h(ib):O.call(null,ib)}var d=t9.h(b),e=$APP.r(d)?I8(b,$APP.B([d9(d)])):b,f=$8.h(e),k=function(){var ib=a9.h(e);return $APP.r(ib)?ib:$APP.ND.h(e)}(),l=v9.h(e),m=$APP.BB.h(e),h=c9.h(e),p=e9.h(e),n=function(){var ib=w9.h(e);return $APP.r(ib)?ib:x9.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, | ||
5,[n9,d,o9,l,p9,a,q9,c,r9,f],null)},G9=function(a,b){function c(ib){ib=$APP.Ik.j($APP.B([new $APP.q(null,2,[t9,d,$APP.Qk,u9],null),ib]));return O.h?O.h(ib):O.call(null,ib)}var d=t9.h(b),e=$APP.r(d)?I8(b,$APP.B([d9(d)])):b,f=$8.h(e),k=function(){var ib=a9.h(e);return $APP.r(ib)?ib:$APP.OD.h(e)}(),l=v9.h(e),m=$APP.EB.h(e),h=c9.h(e),p=e9.h(e),n=function(){var ib=w9.h(e);return $APP.r(ib)?ib:x9.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),G=b9.h(e),O=function(){var ib=y9.h(e);return $APP.r(ib)?ib:function(Jb){Jb=$APP.nf(Jb);var oc=$APP.ie.g(Jb,z9);throw $APP.Wk.g(oc,Jb);}}(),P=h9(a,null),V=$APP.nf(P),aa=$APP.ie.g(V,f9),da=$APP.ie.g(V,g9),ja=function(){var ib=i9.h(e);ib=$APP.r(ib)?ib:A9.h(e);return $APP.r(ib)?j9(aa,ib):new $APP.q(null,2,[i9,null,g9,da],null)}(),oa=$APP.nf(ja),ca=$APP.ie.g(oa,g9),E=$APP.ie.g(oa,i9),z=$APP.yo.g(ca,da)?new $APP.H(null,2,5,$APP.I,[null,$APP.N.g(ca,da)],null):new $APP.H(null, | ||
@@ -19,16 +19,16 @@ 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,Jb=null,oc=null,Vd=$APP.r(p)?k9:null,Ic=$APP.w(J),Af=E;;){if($APP.Za(Ic))return new $APP.H(null,3,5,$APP.I,[ib,Jb,oc],null);var hf=$APP.x(Ic),tc=hf instanceof $APP.F;if(tc){Jb=Y8(ib,Jb,oc,null);var zd=hf;Ic=$APP.y(Ic);ib=Jb;Jb=zd}else{var Oj=!0===hf,Se=$APP.t.h(hf);zd=X8(l,Jb,$APP.ie.g(f,Jb));var eh=$APP.ie.g(f,Jb),Pj=s9(Se,Vd,Jb,eh,oc),ug=$APP.nf(Pj),Qj=$APP.ie.g(ug,o9),vg=$APP.ie.g(ug,p9),Rj=$APP.ie.g(ug, | ||
$APP.ui.h(jd),mc=$APP.ie.l(k,Eb,Eb);if($APP.r(Nd))oc=Y8(ib,Jb,oc,zd),Jb=mc,Vd=Te,Ic=$APP.Le(Nd,$APP.bd(Ic)),ib=oc,oc=null;else{var lb=$APP.y(Ic),Wd=$APP.x(lb),ct=s9(Wd,Te,Jb,eh,oc);if($APP.r(function(){var Xd=o9.h(ct);return $APP.r(Xd)?Xd:$APP.Sd(lb)}()))if($APP.r(vg)){var dt=$APP.Yh(mc);oc=$APP.xr.j(function(){return function(Xd){return new $APP.H(null,2,5,$APP.I,[["-",$APP.t.h(Xd)].join(""),!0],null)}}(ib,Jb,oc,Vd,Ic,Af,dt,lb,Wd,ct,Oi,Ie,jd,Nd,Eb,mc,wc,Ni,Oj,Se,zd,eh,Pj,ug,Qj,vg,Rj,Te,Mi,hf,tc, | ||
d,e,f,k,l,m,h,p,n,v,C,G,O,c,P,V,aa,da,ja,oa,ca,E,z,ba,J),$APP.B([dt]));Ic=$APP.N.g(oc,lb);Vd=Te;oc=Jb=null}else Ic=$APP.ke(v,mc)?null:$APP.XC($APP.t.h(mc),":no-"),Vd=$APP.r(Ic)?$APP.ui.h($APP.bk($APP.t.h(mc),":no-","")):mc,Ic=$APP.Le($APP.Za(Ic),lb),Jb=Y8(ib,Jb,oc,zd),zd=Vd,Vd=Te,ib=Jb,Jb=zd;else Jb=Y8(ib,Jb,oc,zd),zd=mc,Vd=Te,Ic=lb,ib=Jb,Jb=zd}}else if(Ni=$APP.yd.g(l9,eh)&&$APP.yo.g(Se,"true")&&$APP.yo.g(Se,"false")||$APP.yd.g(oc,Jb)&&$APP.Za(zd))if(Af=$APP.r(Ic)?$APP.r(Af)?j9(Ic,Af):new $APP.q(null, | ||
1,[g9,Ic],null):new $APP.q(null,1,[g9,Ic],null),Vd=$APP.nf(Af),Af=$APP.ie.g(Vd,g9),Vd=$APP.ie.g(Vd,i9),$APP.yo.g(Ic,Af))zd=Vd,Vd=Te,Ic=Af,Af=zd;else return new $APP.H(null,3,5,$APP.I,[$APP.Tn.B(ib,$APP.St,new $APP.H(null,2,5,$APP.I,[u9,g9],null),$APP.lg(Ic)),Jb,oc],null);else{try{var pd=Z8(ib,Jb,zd,R8(eh),Se,Oj)}catch(Xd){c(new $APP.q(null,4,[B9,$8,z9,$APP.mD(Xd),C9,Jb,D9,Se],null)),pd=ib}oc=$APP.r(function(){var Xd=$APP.yd.g(m9,Te);return Xd?Mi:Xd}())?null:Jb;zd=$APP.r(function(){var Xd=$APP.yd.g(m9, | ||
d,e,f,k,l,m,h,p,n,v,C,G,O,c,P,V,aa,da,ja,oa,ca,E,z,ba,J),$APP.B([dt]));Ic=$APP.N.g(oc,lb);Vd=Te;oc=Jb=null}else Ic=$APP.ke(v,mc)?null:$APP.YC($APP.t.h(mc),":no-"),Vd=$APP.r(Ic)?$APP.ui.h($APP.bk($APP.t.h(mc),":no-","")):mc,Ic=$APP.Le($APP.Za(Ic),lb),Jb=Y8(ib,Jb,oc,zd),zd=Vd,Vd=Te,ib=Jb,Jb=zd;else Jb=Y8(ib,Jb,oc,zd),zd=mc,Vd=Te,Ic=lb,ib=Jb,Jb=zd}}else if(Ni=$APP.yd.g(l9,eh)&&$APP.yo.g(Se,"true")&&$APP.yo.g(Se,"false")||$APP.yd.g(oc,Jb)&&$APP.Za(zd))if(Af=$APP.r(Ic)?$APP.r(Af)?j9(Ic,Af):new $APP.q(null, | ||
1,[g9,Ic],null):new $APP.q(null,1,[g9,Ic],null),Vd=$APP.nf(Af),Af=$APP.ie.g(Vd,g9),Vd=$APP.ie.g(Vd,i9),$APP.yo.g(Ic,Af))zd=Vd,Vd=Te,Ic=Af,Af=zd;else return new $APP.H(null,3,5,$APP.I,[$APP.Tn.B(ib,$APP.St,new $APP.H(null,2,5,$APP.I,[u9,g9],null),$APP.lg(Ic)),Jb,oc],null);else{try{var pd=Z8(ib,Jb,zd,R8(eh),Se,Oj)}catch(Xd){c(new $APP.q(null,4,[B9,$8,z9,$APP.nD(Xd),C9,Jb,D9,Se],null)),pd=ib}oc=$APP.r(function(){var Xd=$APP.yd.g(m9,Te);return Xd?Mi:Xd}())?null:Jb;zd=$APP.r(function(){var Xd=$APP.yd.g(m9, | ||
Te);return Xd?Mi:Xd}())?null:Jb;Vd=Te;Ic=$APP.y(Ic);ib=pd;Jb=oc;oc=zd}}}}(),ea=$APP.A.l(K,0,null),ia=$APP.A.l(K,1,null),ha=$APP.A.l(K,2,null),qa=X8(l,ia,$APP.ie.g(f,ia)),ra=function(){var ib=Y8(ea,ia,ha,qa);return $APP.w(ba)?$APP.Tn.B(ib,$APP.Fk,new $APP.H(null,2,5,$APP.I,[u9,g9],null),function(Jb){return $APP.Qg.g($APP.lg(ba),Jb)}):ib}(),ua=$APP.r(h)?$APP.Od($APP.Ik.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,[B9,w9,z9,["Unknown option: ",$APP.t.h(Da)].join(""),w9,C,C9,Da],null));xa+=1}else if(a=$APP.w(a))b=a,$APP.be(b)?(a=$APP.xc(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,[B9,w9,z9,["Unknown option: ",$APP.t.h(a)].join(""),w9,C,C9,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.eD(ua,Da))||c(new $APP.q(null,4,[B9,$APP.BB,z9,["Required option: ",$APP.t.h(Da)].join(""), | ||
$APP.BB,m,C9,Da],null)),xa+=1;else if(a=$APP.w(a))b=a,$APP.be(b)?(a=$APP.xc(b),xa=$APP.yc(b),b=a,va=$APP.xd(a),a=xa):(a=$APP.x(b),$APP.r($APP.eD(ua,a))||c(new $APP.q(null,4,[B9,$APP.BB,z9,["Required option: ",$APP.t.h(a)].join(""),$APP.BB,m,C9,a],null)),a=$APP.y(b),b=null,va=0),xa=0;else break;if($APP.r(G))for(var ya=$APP.w(G),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),Ib=function(){var ib=(ib=$APP.Zd(mb))?E9.h(mb):ib;return $APP.r(ib)?ib:mb}(), | ||
Wb=$APP.eD(ua,gb);if($APP.r(Wb)){var zc=Wb,Db=$APP.A.l(zc,0,null),te=$APP.A.l(zc,1,null);if(!$APP.r(Ib.h?Ib.h(te):Ib.call(null,te))){var Ii=function(){var ib=F9.h(mb);return $APP.r(ib)?ib:function(){return function(Jb){var oc=$APP.nf(Jb);Jb=$APP.ie.g(oc,C9);oc=$APP.ie.g(oc,D9);return["Invalid value for option ",$APP.t.h(Jb),": ",$APP.t.h(oc)].join("")}}(ya,wa,La,Qa,ib,zc,Db,te,Wb,Ib,Xa,gb,mb,d,e,f,k,l,m,h,p,n,v,C,G,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,[B9,b9, | ||
z9,function(){var ib=new $APP.q(null,2,[C9,gb,D9,te],null);return Ii.h?Ii.h(ib):Ii.call(null,ib)}(),b9,G,C9,gb,D9,te],null))}}Qa+=1}else{var Lj=$APP.w(ya);if(Lj){var ch=Lj;if($APP.be(ch))va=$APP.xc(ch),a=$APP.yc(ch),b=va,va=$APP.xd(va),ya=a,wa=b,La=va;else{var Ji=$APP.x(ch),Ki=$APP.A.l(Ji,0,null),ai=$APP.A.l(Ji,1,null),Li=function(){var ib=(ib=$APP.Zd(ai))?E9.h(ai):ib;return $APP.r(ib)?ib:ai}(),Mj=$APP.eD(ua,Ki);if($APP.r(Mj)){var nc=Mj,bi=$APP.A.l(nc,0,null),dh=$APP.A.l(nc,1,null);if(!$APP.r(Li.h? | ||
Da)||c(new $APP.q(null,4,[B9,w9,z9,["Unknown option: ",$APP.t.h(Da)].join(""),w9,C,C9,Da],null));xa+=1}else if(a=$APP.w(a))b=a,$APP.be(b)?(a=$APP.xc(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,[B9,w9,z9,["Unknown option: ",$APP.t.h(a)].join(""),w9,C,C9,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.fD(ua,Da))||c(new $APP.q(null,4,[B9,$APP.EB,z9,["Required option: ",$APP.t.h(Da)].join(""), | ||
$APP.EB,m,C9,Da],null)),xa+=1;else if(a=$APP.w(a))b=a,$APP.be(b)?(a=$APP.xc(b),xa=$APP.yc(b),b=a,va=$APP.xd(a),a=xa):(a=$APP.x(b),$APP.r($APP.fD(ua,a))||c(new $APP.q(null,4,[B9,$APP.EB,z9,["Required option: ",$APP.t.h(a)].join(""),$APP.EB,m,C9,a],null)),a=$APP.y(b),b=null,va=0),xa=0;else break;if($APP.r(G))for(var ya=$APP.w(G),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),Ib=function(){var ib=(ib=$APP.Zd(mb))?E9.h(mb):ib;return $APP.r(ib)?ib:mb}(), | ||
Wb=$APP.fD(ua,gb);if($APP.r(Wb)){var zc=Wb,Db=$APP.A.l(zc,0,null),te=$APP.A.l(zc,1,null);if(!$APP.r(Ib.h?Ib.h(te):Ib.call(null,te))){var Ii=function(){var ib=F9.h(mb);return $APP.r(ib)?ib:function(){return function(Jb){var oc=$APP.nf(Jb);Jb=$APP.ie.g(oc,C9);oc=$APP.ie.g(oc,D9);return["Invalid value for option ",$APP.t.h(Jb),": ",$APP.t.h(oc)].join("")}}(ya,wa,La,Qa,ib,zc,Db,te,Wb,Ib,Xa,gb,mb,d,e,f,k,l,m,h,p,n,v,C,G,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,[B9,b9, | ||
z9,function(){var ib=new $APP.q(null,2,[C9,gb,D9,te],null);return Ii.h?Ii.h(ib):Ii.call(null,ib)}(),b9,G,C9,gb,D9,te],null))}}Qa+=1}else{var Lj=$APP.w(ya);if(Lj){var ch=Lj;if($APP.be(ch))va=$APP.xc(ch),a=$APP.yc(ch),b=va,va=$APP.xd(va),ya=a,wa=b,La=va;else{var Ji=$APP.x(ch),Ki=$APP.A.l(Ji,0,null),ai=$APP.A.l(Ji,1,null),Li=function(){var ib=(ib=$APP.Zd(ai))?E9.h(ai):ib;return $APP.r(ib)?ib:ai}(),Mj=$APP.fD(ua,Ki);if($APP.r(Mj)){var nc=Mj,bi=$APP.A.l(nc,0,null),dh=$APP.A.l(nc,1,null);if(!$APP.r(Li.h? | ||
Li.h(dh):Li.call(null,dh))){var Nj=function(){var ib=F9.h(ai);return $APP.r(ib)?ib:function(){return function(Jb){var oc=$APP.nf(Jb);Jb=$APP.ie.g(oc,C9);oc=$APP.ie.g(oc,D9);return["Invalid value for option ",$APP.t.h(Jb),": ",$APP.t.h(oc)].join("")}}(ya,wa,La,Qa,ib,nc,bi,dh,Mj,Li,Ji,Ki,ai,ch,Lj,d,e,f,k,l,m,h,p,n,v,C,G,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,[B9,b9,z9,function(){var ib=new $APP.q(null,2,[C9,Ki,D9,dh],null);return Nj.h?Nj.h(ib):Nj.call(null,ib)}(), | ||
b9,G,C9,Ki,D9,dh],null))}}ya=$APP.y(ch);wa=null;La=0}Qa=0}else break}return ua},H9=function(a,b){a=G9(a,b);b=u9.h($APP.Pd(a));return $APP.yi.l(b,$APP.MD,$APP.Jk.g(a,u9))},I9=function(a,b){var c=$APP.gD($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},M9=function(a,b){$APP.Of(J9,!1);a.setPrompt([$APP.t.h($APP.Zp),"\x3d\x3e "].join(""));a.prompt();return $APP.oD($APP.Rb(K9))?null:L9.g?L9.g(b,a):L9.call(null,b,a)},N9=function(a){var b=$APP.tk(a);a=$APP.uk(a);var c= | ||
$APP.nD($APP.Rb(K9));b=$APP.Aq.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(K9,$APP.dp.g("\n",$APP.Le(a,c)))},O9=function(a){var b=[".repl/",$APP.t.h($APP.Um.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)})}, | ||
Q9=function(a,b,c){var d=function(){var f=$APP.Zp;$APP.Zp=$APP.Rb(P9);try{return $APP.wt($APP.As.j($APP.B([a])),null)}finally{$APP.Zp=f}}(),e=$APP.nf(d);d=$APP.ie.g(e,$APP.vt);e=$APP.ie.g(e,$APP.Q);$APP.Of(P9,e);return O9(d).then(function(){esm_import$squint_cljs$core.println(globalThis._repl);return M9(b,c)}).catch(function(f){esm_import$squint_cljs$core.println(f);return M9(b,c)})},L9=function(a,b){if($APP.r(function(){var e=$APP.Rb(J9);return $APP.r(e)?e:$APP.oD($APP.Rb(K9))}()))return null;$APP.Of(J9, | ||
!0);var c=$APP.To($APP.Rb(K9)),d=function(){try{return $APP.Vo(c,$APP.So($APP.mf))}catch(f){var e=f;if(-1!=$APP.mD(e).indexOf("EOF while reading"))return R9;N9(c);$APP.JD.j($APP.B([$APP.t.h(e)]));return S9}}();if($APP.yd.g(S9,d))return M9(b,a);if($APP.yd.g(R9,d))return $APP.Of(J9,!1);N9(c);return $APP.yd.g($APP.Uo,d)?$APP.Of(J9,!1):Q9(d,b,a)},T9=function(a){a.on("line",function(b){$APP.cj.B(K9,$APP.t,b,"\n");return L9(null,a)})},V9=function(a,b){var c=$APP.CD.h(a);if($APP.r(c)&&"string"!==typeof c)throw Error("output-dir must be a string"); | ||
return $APP.r(U9.h(a))?($APP.KD.j($APP.B(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.KD(),$APP.KD.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.KD.j($APP.B(["[squint] Compiling CLJS file:",e]));return $APP.DD($APP.yi.l(a,$APP.yD,e))}).then(function(f){f=$APP.nf(f); | ||
f=$APP.ie.g(f,$APP.AD);$APP.KD.j($APP.B(["[squint] Wrote JS file:",f]));return f})},null,b)},q9=new $APP.F(null,"kwd-opt","kwd-opt",1313309243),k9=new $APP.F(null,"hyphens","hyphens",2113533609),t9=new $APP.F(null,"spec","spec",347520401),$8=new $APP.F(null,"coerce","coerce",1917884504),w9=new $APP.F(null,"restrict","restrict",-1071101511),m9=new $APP.F(null,"keywords","keywords",1526959054),n9=new $APP.F(null,"mode","mode",654403691),S9=new $APP.F("squint.repl.node","continue","squint.repl.node/continue", | ||
b9,G,C9,Ki,D9,dh],null))}}ya=$APP.y(ch);wa=null;La=0}Qa=0}else break}return ua},H9=function(a,b){a=G9(a,b);b=u9.h($APP.Pd(a));return $APP.yi.l(b,$APP.ND,$APP.Jk.g(a,u9))},I9=function(a,b){var c=$APP.hD($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},M9=function(a,b){$APP.Of(J9,!1);a.setPrompt([$APP.t.h($APP.Zp),"\x3d\x3e "].join(""));a.prompt();return $APP.pD($APP.Rb(K9))?null:L9.g?L9.g(b,a):L9.call(null,b,a)},N9=function(a){var b=$APP.tk(a);a=$APP.uk(a);var c= | ||
$APP.oD($APP.Rb(K9));b=$APP.Aq.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(K9,$APP.dp.g("\n",$APP.Le(a,c)))},O9=function(a){var b=[".repl/",$APP.t.h($APP.Um.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)})}, | ||
Q9=function(a,b,c){var d=function(){var f=$APP.Zp;$APP.Zp=$APP.Rb(P9);try{return $APP.wt($APP.As.j($APP.B([a])),null)}finally{$APP.Zp=f}}(),e=$APP.nf(d);d=$APP.ie.g(e,$APP.vt);e=$APP.ie.g(e,$APP.Q);$APP.Of(P9,e);return O9(d).then(function(){esm_import$squint_cljs$core.println(globalThis._repl);return M9(b,c)}).catch(function(f){esm_import$squint_cljs$core.println(f);return M9(b,c)})},L9=function(a,b){if($APP.r(function(){var e=$APP.Rb(J9);return $APP.r(e)?e:$APP.pD($APP.Rb(K9))}()))return null;$APP.Of(J9, | ||
!0);var c=$APP.To($APP.Rb(K9)),d=function(){try{return $APP.Vo(c,$APP.So($APP.mf))}catch(f){var e=f;if(-1!=$APP.nD(e).indexOf("EOF while reading"))return R9;N9(c);$APP.KD.j($APP.B([$APP.t.h(e)]));return S9}}();if($APP.yd.g(S9,d))return M9(b,a);if($APP.yd.g(R9,d))return $APP.Of(J9,!1);N9(c);return $APP.yd.g($APP.Uo,d)?$APP.Of(J9,!1):Q9(d,b,a)},T9=function(a){a.on("line",function(b){$APP.cj.B(K9,$APP.t,b,"\n");return L9(null,a)})},V9=function(a,b){var c=$APP.DD.h(a);if($APP.r(c)&&"string"!==typeof c)throw Error("output-dir must be a string"); | ||
return $APP.r(U9.h(a))?($APP.LD.j($APP.B(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.LD(),$APP.LD.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.LD.j($APP.B(["[squint] Compiling CLJS file:",e]));return $APP.ED($APP.yi.l(a,$APP.zD,e))}).then(function(f){f=$APP.nf(f); | ||
f=$APP.ie.g(f,$APP.BD);$APP.LD.j($APP.B(["[squint] Wrote JS file:",f]));return f})},null,b)},q9=new $APP.F(null,"kwd-opt","kwd-opt",1313309243),k9=new $APP.F(null,"hyphens","hyphens",2113533609),t9=new $APP.F(null,"spec","spec",347520401),$8=new $APP.F(null,"coerce","coerce",1917884504),w9=new $APP.F(null,"restrict","restrict",-1071101511),m9=new $APP.F(null,"keywords","keywords",1526959054),n9=new $APP.F(null,"mode","mode",654403691),S9=new $APP.F("squint.repl.node","continue","squint.repl.node/continue", | ||
1558138730),z9=new $APP.F(null,"msg","msg",-1386103444),W9=new $APP.F(null,"show","show",-576705889),l9=new $APP.F(null,"boolean","boolean",-1919418404),T8=new $APP.F(null,"input","input",556931961),X9=new $APP.F(null,"rest-cmds","rest-cmds",-423198324),u9=new $APP.F("org.babashka","cli","org.babashka/cli",1162430315),i9=new $APP.F(null,"args-\x3eopts","args-\x3eopts",964391046),a9=new $APP.F(null,"alias","alias",-2039751630),v9=new $APP.F(null,"collect","collect",-284321549),Y9=new $APP.F(null,"no-run", | ||
@@ -38,6 +38,6 @@ "no-run",-1534313596),b9=new $APP.F(null,"validate","validate",-201300827),p9=new $APP.F(null,"composite-opt","composite-opt",-2021292928),o9=new $APP.F(null,"hyphen-opt","hyphen-opt",1836909464),U9=new $APP.F(null,"help","help",-439233446),B9=new $APP.F(null,"cause","cause",231901252),r9=new $APP.F(null,"fst-colon","fst-colon",1618567071),U8=new $APP.F(null,"coerce-fn","coerce-fn",-821146515),g9=new $APP.F(null,"args","args",1315556576),e9=new $APP.F(null,"no-keyword-opts","no-keyword-opts",761286018), | ||
"cmds-opts","cmds-opts",-390130362),Z9=new $APP.F(null,"h","h",1109658740),$9=new $APP.F(null,"e","e",1381269198),f9=new $APP.F(null,"cmds","cmds",-1841503952);var K9=$APP.Yi.h(""),J9=$APP.Yi.h(!1),a$,b$=process.stdout.isTTY;a$=$APP.r(b$)?process.stdin.setRawMode:b$;var P9=$APP.Yi.h($APP.Zp),c$=function c$(a){switch(arguments.length){case 0:return c$.v();case 1:return c$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};c$.v=function(){return c$.h(null)}; | ||
c$.h=function(){$APP.Zp=$APP.rw;$APP.Qp=$APP.pp=!0;$APP.r(a$)&&process.stdin.setRawMode(!0);return O9("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});T9(b);b.setPrompt([$APP.t.h($APP.Zp),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};c$.m=1;var d$=new $APP.H(null,4,5,$APP.I,[new $APP.q(null,3,[f9,new $APP.H(null,1,5,$APP.I,["run"],null),$APP.io,function(a){a=$APP.nf(a);a=$APP.ie.g(a,$APP.MD);var b=$APP.nf(a),c=$APP.ie.g(b,$APP.Tk);b=$APP.ie.g(b,U9);if($APP.r(b))return null;$APP.KD.j($APP.B(["[squint] Running",c]));return $APP.DD($APP.yi.l(a,$APP.yD,c)).then(function(d){d=$APP.nf(d);d=$APP.ie.g(d,$APP.AD);d=$APP.r(esm_import$path.isAbsolute(d))?d:[$APP.t.h(process.cwd()),"/",$APP.t.h(d)].join("");return shadow_esm_import(d)})},A9,new $APP.H(null, | ||
1,5,$APP.I,[$APP.Tk],null)],null),new $APP.q(null,3,[f9,new $APP.H(null,1,5,$APP.I,["compile"],null),$8,new $APP.q(null,3,[$APP.at,l9,$APP.bt,l9,$APP.CD,$APP.gl],null),$APP.io,function(a){var b=$APP.nf(a);a=$APP.ie.g(b,X9);b=$APP.ie.g(b,$APP.MD);return V9(b,a)}],null),new $APP.q(null,2,[f9,new $APP.H(null,1,5,$APP.I,["repl"],null),$APP.io,c$],null),new $APP.q(null,2,[f9,$APP.kg,$APP.io,function(a){a=$APP.nf(a);var b=$APP.ie.g(a,X9),c=$APP.ie.g(a,$APP.MD);a=$9.h(c);if($APP.r(a)){if($APP.r(U9.h(c)))return $APP.KD.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.WC.g(a,new $APP.q(null,1,[$APP.gt,$APP.Yi.h(new $APP.q(null,1,[$APP.co,$APP.rw],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(W9.h(c))&&$APP.KD.j($APP.B([a]));if($APP.r(Y9.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= | ||
U9.h(c);return $APP.r(f)?f:$APP.yd.g("help",$APP.x(b))||$APP.Sd(b)}())?$APP.KD.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."])):V9(c,b)}],null)],null);(function(){var a=new $APP.q(null,1,[$APP.ND,new $APP.q(null,1,[Z9,U9],null)],null),b=h9(process.argv.slice(2),a),c=$APP.nf(b),d=$APP.ie.g(c,f9),e=$APP.ie.g(c,g9);return $APP.qe.l(function(f,k){f=$APP.nf(k);var l=$APP.ie.g(f,f9),m=$APP.ie.g(f,$APP.io),h=I9(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=H9(k,I8(a,$APP.B([f])));k=$APP.nf(f);var p=$APP.ie.g(k,$APP.MD);f=$APP.ie.g(k,g9);k=$APP.ie.g(k,f9);var n=$APP.N.g(k,f);return $APP.kd(function(){var v= | ||
$APP.yi.j(c,g9,n,$APP.B([X9,n,$APP.MD,p,$APP.Mo,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,d$)})(); | ||
c$.h=function(){$APP.Zp=$APP.tw;$APP.Qp=$APP.pp=!0;$APP.r(a$)&&process.stdin.setRawMode(!0);return O9("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});T9(b);b.setPrompt([$APP.t.h($APP.Zp),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};c$.m=1;var d$=new $APP.H(null,4,5,$APP.I,[new $APP.q(null,3,[f9,new $APP.H(null,1,5,$APP.I,["run"],null),$APP.io,function(a){a=$APP.nf(a);a=$APP.ie.g(a,$APP.ND);var b=$APP.nf(a),c=$APP.ie.g(b,$APP.Tk);b=$APP.ie.g(b,U9);if($APP.r(b))return null;$APP.LD.j($APP.B(["[squint] Running",c]));return $APP.ED($APP.yi.l(a,$APP.zD,c)).then(function(d){d=$APP.nf(d);d=$APP.ie.g(d,$APP.BD);d=$APP.r(esm_import$path.isAbsolute(d))?d:[$APP.t.h(process.cwd()),"/",$APP.t.h(d)].join("");return shadow_esm_import(d)})},A9,new $APP.H(null, | ||
1,5,$APP.I,[$APP.Tk],null)],null),new $APP.q(null,3,[f9,new $APP.H(null,1,5,$APP.I,["compile"],null),$8,new $APP.q(null,3,[$APP.at,l9,$APP.bt,l9,$APP.DD,$APP.gl],null),$APP.io,function(a){var b=$APP.nf(a);a=$APP.ie.g(b,X9);b=$APP.ie.g(b,$APP.ND);return V9(b,a)}],null),new $APP.q(null,2,[f9,new $APP.H(null,1,5,$APP.I,["repl"],null),$APP.io,c$],null),new $APP.q(null,2,[f9,$APP.kg,$APP.io,function(a){a=$APP.nf(a);var b=$APP.ie.g(a,X9),c=$APP.ie.g(a,$APP.ND);a=$9.h(c);if($APP.r(a)){if($APP.r(U9.h(c)))return $APP.LD.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.XC.g(a,new $APP.q(null,1,[$APP.gt,$APP.Yi.h(new $APP.q(null,1,[$APP.co,$APP.tw],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(W9.h(c))&&$APP.LD.j($APP.B([a]));if($APP.r(Y9.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= | ||
U9.h(c);return $APP.r(f)?f:$APP.yd.g("help",$APP.x(b))||$APP.Sd(b)}())?$APP.LD.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."])):V9(c,b)}],null)],null);(function(){var a=new $APP.q(null,1,[$APP.OD,new $APP.q(null,1,[Z9,U9],null)],null),b=h9(process.argv.slice(2),a),c=$APP.nf(b),d=$APP.ie.g(c,f9),e=$APP.ie.g(c,g9);return $APP.qe.l(function(f,k){f=$APP.nf(k);var l=$APP.ie.g(f,f9),m=$APP.ie.g(f,$APP.io),h=I9(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=H9(k,I8(a,$APP.B([f])));k=$APP.nf(f);var p=$APP.ie.g(k,$APP.ND);f=$APP.ie.g(k,g9);k=$APP.ie.g(k,f9);var n=$APP.N.g(k,f);return $APP.kd(function(){var v= | ||
$APP.yi.j(c,g9,n,$APP.B([X9,n,$APP.ND,p,$APP.Mo,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,d$)})(); |
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 YC,hD,iD,jD,kD,lD,pD,wD,xD,FD,HD,qD,vD,zD,BD;$APP.XC=function(a,b){return $APP.sa(a,b)};YC=function(){};$APP.ZC=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.$C=function(a){return $APP.he(a)||!1};$APP.aD=function(a){return"number"===typeof a};$APP.bD=function(){this.A=[]};$APP.cD=function(a){$APP.oi("\n");return $APP.ie.g(a,$APP.Ga),null}; | ||
$APP.dD=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.Fz);c=$APP.yo.g(e,$APP.Fz)?$APP.yi.l(c,d,e):c;b=$APP.y(b)}else return $APP.Vb(c,$APP.Pd(a))};$APP.eD=function(a,b){return(null!=a?$APP.Qc===a.oc||(a.Zc?0:$APP.cb(YC,a)):$APP.cb(YC,a))?$APP.Cb(a,b):null!=a&&$APP.ZC(a)&&$APP.ke(a,b)?new $APP.Jg(b,$APP.ie.g(a,b),null):null};$APP.fD=function(a,b){return new $APP.H(null,2,5,$APP.I,[$APP.Fq.g(a,b),$APP.Gq.g(a,b)],null)}; | ||
$APP.gD=function(a,b){return new $APP.H(null,2,5,$APP.I,[$APP.Nk.g(a,b),$APP.Aq.g(a,b)],null)};hD=function(){};iD=function(a){if(null!=a&&null!=a.De)a=a.De(a);else{var b=iD[$APP.la(null==a?null:a)];if(null!=b)a=b.h?b.h(a):b.call(null,a);else if(b=iD._,null!=b)a=b.h?b.h(a):b.call(null,a);else throw $APP.eb("IEncodeJS.-clj-\x3ejs",a);}return a}; | ||
jD=function(a,b){return(null!=a?$APP.Qc===a.Ce||(a.Zc?0:$APP.cb(hD,a)):$APP.cb(hD,a))?iD(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]))};kD=function(){};lD=function(a,b){if(null!=a&&null!=a.Be)a=a.Be(a,b);else{var c=lD[$APP.la(null==a?null:a)];if(null!=c)a=c.g?c.g(a,b):c.call(null,a,b);else if(c=lD._,null!=c)a=c.g?c.g(a,b):c.call(null,a,b);else throw $APP.eb("IEncodeClojure.-js-\x3eclj",a);}return a}; | ||
$APP.mD=function(a){return a instanceof Error?a.message:null};$APP.nD=function(a){return $APP.mq.g(a,/\n|\r\n/)};$APP.oD=function(a){return/^[\s\xa0]*$/.test(null==a?"":String(a))};pD=function(a,b){return $APP.r($APP.r(b)?$APP.yo.g(b,""):b)?$APP.om(a,$APP.Ck(b)):null}; | ||
wD=function(a){a=$APP.Vo($APP.To(a),$APP.jt);if($APP.ee(a)&&$APP.yd.g($APP.wj,$APP.x(a))){a=$APP.w(a);$APP.x(a);a=$APP.y(a);$APP.x(a);a=$APP.y(a);a=$APP.Jf(function(d){var e=$APP.A.l(d,0,null);d=$APP.A.l(d,1,null);return $APP.ee(e)&&$APP.yd.g(qD,$APP.x(e))?new $APP.H(null,2,5,$APP.I,[$APP.bd(e),d],null):null},$APP.rD.l(2,1,a));var b=$APP.A.l(a,0,null),c=$APP.A.l(a,1,null);return $APP.r(b)?shadow_esm_import("./compiler.sci.js").then(function(){var d=$APP.sD.h($APP.Rb($APP.tD));return $APP.qe.l(function(e, | ||
f){return e.then(function(){var k=$APP.w(f),l=$APP.x(k);k=$APP.y(k);k=$APP.nf(k);var m=$APP.ie.g(k,$APP.iq);return Promise.resolve(function(){var h=function(){var n=new $APP.D(null,$APP.FB,new $APP.D(null,new $APP.D(null,$APP.Fj,new $APP.D(null,l,null,1,null),2,null),null,1,null),2,null);return $APP.r(c)?$APP.N.g(n,new $APP.H(null,1,5,$APP.I,[$APP.uD],null)):n}();d.h?d.h(h):d.call(null,h);var p=function(){var n=$APP.U.h($APP.w($APP.N.g(new $APP.D(null,vD,null,1,null),new $APP.D(null,$APP.U.h($APP.w($APP.N.g(new $APP.D(null, | ||
$APP.Fj,null,1,null),new $APP.D(null,l,null,1,null)))),null,1,null))));return d.h?d.h(n):d.call(null,n)}();h=$APP.Nh(p);p=$APP.Ph(p);p=$APP.ti.g($APP.nd,p);h=$APP.Zh(h,p);return $APP.r(m)?$APP.dD(h,m):h}()).then(function(h){return $APP.Ls=$APP.Ik.j($APP.B([$APP.Ls,h]))})})},Promise.resolve(null),b)}):null}return null};xD=function(a,b){return Promise.resolve(wD(a)).then(function(){return $APP.wt(a,b)})}; | ||
$APP.DD=function(a){a=$APP.nf(a);var b=$APP.ie.g(a,$APP.yD),c=$APP.ie.g(a,zD),d=$APP.ie.g(a,$APP.AD),e=$APP.ie.g(a,BD),f=$APP.ie.l(a,$APP.CD,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return xD(c,$APP.yi.l(a,$APP.gt,$APP.Yi.h(new $APP.q(null,1,[$APP.co,b],null)))).then(function(k){k=$APP.nf(k);var l=$APP.ie.g(k,$APP.vt),m=$APP.ie.g(k,$APP.rp),h=esm_import$path,p=h.resolve;$APP.r(d)?m=d:($APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.bk(e,/^\./,"")].join(""):null,m=$APP.r(m)?m:".mjs"),m=$APP.bk(b, | ||
/.clj(s|c)$/,m));h=p.call(h,f,m);p=esm_import$path.dirname(h);$APP.r(esm_import$fs.existsSync(p))||esm_import$fs.mkdirSync(p,{recursive:!0});if(!$APP.r(esm_import$fs.existsSync(p)))throw Error("File not found, make sure output-dir is a valid path: ",new $APP.q(null,2,[$APP.CD,f,$APP.AD,h],null));esm_import$fs.writeFileSync(h,l,"utf-8");return $APP.yi.l(k,$APP.AD,h)})};FD=function(a){return $APP.ED.j(a,$APP.B([$APP.xv,!0]))}; | ||
HD=function(a){return function(){function b(d){var e=null;if(0<arguments.length){e=0;for(var f=Array(arguments.length-0);e<f.length;)f[e]=arguments[e+0],++e;e=new $APP.Yc(f,0,null)}return c.call(this,e)}function c(d){d=$APP.Rt.g(FD,d);d=$APP.Lf.g(a,d);return d instanceof Promise?d.then($APP.GD):$APP.GD(d)}b.m=0;b.o=function(d){d=$APP.w(d);return c(d)};b.j=c;return b}()};$APP.bD.prototype.add=function(a){return this.A.push(a)};$APP.bD.prototype.size=function(){return this.A.length}; | ||
$APP.bD.prototype.clear=function(){return this.A=[]};$APP.bD.prototype.Kc=function(){return 0===this.A.length};$APP.ID=function ID(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return ID.j(arguments[0],1<c.length?new $APP.Yc(c.slice(1),0,null):null)}; | ||
$APP.ID.j=function(a,b){if($APP.r($APP.Jf($APP.ve,b))){var c=function(d,e){var f=$APP.Hb(e),k=$APP.Kb(e);if($APP.ke(d,f)){e=$APP.yi.l;var l=$APP.ie.g(d,f);k=a.g?a.g(l,k):a.call(null,l,k);d=e.call($APP.yi,d,f,k)}else d=$APP.yi.l(d,f,k);return d};return $APP.qe.g(function(d,e){return $APP.qe.l(c,$APP.r(d)?d:$APP.mf,$APP.w(e))},b)}return null};$APP.ID.m=1;$APP.ID.o=function(a){var b=$APP.x(a);a=$APP.y(a);return this.j(b,a)}; | ||
$APP.JD=function JD(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return JD.j(0<c.length?new $APP.Yc(c.slice(0),0,null):null)};$APP.JD.j=function(a){$APP.Ci(a,$APP.Ra());return $APP.r($APP.Sa)?$APP.cD($APP.Ra()):null};$APP.JD.m=0;$APP.JD.o=function(a){return this.j($APP.w(a))};$APP.KD=function KD(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return KD.j(0<c.length?new $APP.Yc(c.slice(0),0,null):null)}; | ||
$APP.KD.j=function(a){$APP.Ci(a,$APP.yi.l($APP.Ra(),$APP.Ha,!1));return $APP.r($APP.Sa)?$APP.cD($APP.Ra()):null};$APP.KD.m=0;$APP.KD.o=function(a){return this.j($APP.w(a))};$APP.rD=function rD(a){switch(arguments.length){case 1:return rD.h(arguments[0]);case 2:return rD.g(arguments[0],arguments[1]);case 3:return rD.l(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.rD.h=function(a){return function(b){var c=new $APP.bD;return function(){function d(l,m){c.add(m);return a===c.size()?(m=$APP.lg(c.A),c.clear(),b.g?b.g(l,m):b.call(null,l,m)):l}function e(l){if(!$APP.r(c.Kc())){var m=$APP.lg(c.A);c.clear();l=$APP.od(b.g?b.g(l,m):b.call(null,l,m))}return b.h?b.h(l):b.call(null,l)}function f(){return b.v?b.v():b.call(null)}var k=null;k=function(l,m){switch(arguments.length){case 0:return f.call(this);case 1:return e.call(this,l);case 2:return d.call(this,l,m)}throw Error("Invalid arity: "+ | ||
arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.rD.g=function(a,b){return $APP.rD.l(a,a,b)};$APP.rD.l=function(a,b,c){return new $APP.Re(null,function(){var d=$APP.w(c);return d?$APP.Le($APP.Nk.g(a,d),$APP.rD.l(a,b,$APP.Aq.g(b,d))):null},null,null)};$APP.rD.m=3;$APP.GD=function GD(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return GD.j(arguments[0],1<c.length?new $APP.Yc(c.slice(1),0,null):null)}; | ||
$APP.GD.j=function(a,b){b=$APP.nf(b);var c=$APP.ie.l(b,$APP.yB,$APP.Yh),d=function k(f){if(null==f)return null;if(null!=f?$APP.Qc===f.Ce||(f.Zc?0:$APP.cb(hD,f)):$APP.cb(hD,f))return iD(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=jD(v,d);n=k(n);l[v]=n;p+=1}else if(f=$APP.w(f))$APP.be(f)?(h=$APP.xc(f),f=$APP.yc(f), | ||
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=jD(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.xc(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.GD.m=1; | ||
$APP.GD.o=function(a){var b=$APP.x(a);a=$APP.y(a);return this.j(b,a)};$APP.ED=function ED(a){switch(arguments.length){case 1:return ED.h(arguments[0]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return ED.j(arguments[0],new $APP.Yc(c.slice(1),0,null))}};$APP.ED.h=function(a){return $APP.ED.j(a,$APP.B([$APP.xv,!1]))}; | ||
$APP.ED.j=function(a,b){var c=$APP.nf(b);c=$APP.ie.g(c,$APP.xv);var d=$APP.r(c)?$APP.ui:$APP.t;return function k(f){return(null!=f?$APP.Qc===f.ff||(f.Zc?0:$APP.cb(kD,f)):$APP.cb(kD,f))?lD(f,$APP.Lf.g($APP.po,b)):$APP.ee(f)?$APP.ym.h($APP.ti.g(k,f)):$APP.hg(f)?new $APP.Jg(k($APP.Hb(f)),k($APP.Kb(f)),null):$APP.Td(f)?$APP.Qg.l($APP.Id(f),$APP.ti.h(k),f):$APP.Wa(f)?$APP.qc($APP.qe.l(function(l,m){return $APP.fg.g(l,k(m))},$APP.lc($APP.kg),f)):$APP.db(f)===Object?$APP.qc($APP.qe.l(function(l,m){return $APP.Tg.l(l, | ||
d.h?d.h(m):d.call(null,m),k($APP.Aa(f,m)))},$APP.lc($APP.mf),$APP.za(f))):f}(a)};$APP.ED.o=function(a){var b=$APP.x(a);a=$APP.y(a);return this.j(b,a)};$APP.ED.m=1;$APP.LD=function LD(a){switch(arguments.length){case 1:return LD.h(arguments[0]);case 2:return LD.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.LD.h=function(a){return pD(new $APP.q(null,3,[$APP.mm,$APP.Rb($APP.kC),$APP.nm,$APP.Rb($APP.jC),$APP.bl,null],null),a)}; | ||
$APP.LD.g=function(a,b){return pD($APP.Dm.l($APP.Ik.j($APP.B([new $APP.q(null,1,[$APP.nm,$APP.Rb($APP.jC)],null),a])),$APP.mm,function(c){return $APP.Ik.j($APP.B([$APP.Rb($APP.kC),c]))}),b)};$APP.LD.m=2;$APP.uD=new $APP.F(null,"reload","reload",863702807);$APP.MD=new $APP.F(null,"opts","opts",155075701);$APP.CD=new $APP.F(null,"output-dir","output-dir",-290956991);qD=new $APP.F(null,"require-macros","require-macros",707947416);$APP.yD=new $APP.F(null,"in-file","in-file",-1682176692); | ||
vD=new $APP.u("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.sD=new $APP.F(null,"eval-form","eval-form",-1934118476);$APP.ND=new $APP.F(null,"aliases","aliases",1346874714);$APP.AD=new $APP.F(null,"out-file","out-file",-1187066405);zD=new $APP.F(null,"in-str","in-str",-1014658121);BD=new $APP.F(null,"extension","extension",1453374065);var OD;$APP.tD=$APP.Yi.h(null);OD=HD(xD);export let compileFile=HD($APP.DD);export let compileString=OD; | ||
import*as esm_import$fs from"fs";import*as esm_import$path from"path";var ZC,iD,jD,kD,lD,mD,qD,xD,yD,GD,ID,rD,wD,AD,CD;$APP.YC=function(a,b){return $APP.sa(a,b)};ZC=function(){};$APP.$C=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.aD=function(a){return $APP.he(a)||!1};$APP.bD=function(a){return"number"===typeof a};$APP.cD=function(){this.A=[]};$APP.dD=function(a){$APP.oi("\n");return $APP.ie.g(a,$APP.Ga),null}; | ||
$APP.eD=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.Iz);c=$APP.yo.g(e,$APP.Iz)?$APP.yi.l(c,d,e):c;b=$APP.y(b)}else return $APP.Vb(c,$APP.Pd(a))};$APP.fD=function(a,b){return(null!=a?$APP.Qc===a.oc||(a.Zc?0:$APP.cb(ZC,a)):$APP.cb(ZC,a))?$APP.Cb(a,b):null!=a&&$APP.$C(a)&&$APP.ke(a,b)?new $APP.Jg(b,$APP.ie.g(a,b),null):null};$APP.gD=function(a,b){return new $APP.H(null,2,5,$APP.I,[$APP.Fq.g(a,b),$APP.Gq.g(a,b)],null)}; | ||
$APP.hD=function(a,b){return new $APP.H(null,2,5,$APP.I,[$APP.Nk.g(a,b),$APP.Aq.g(a,b)],null)};iD=function(){};jD=function(a){if(null!=a&&null!=a.De)a=a.De(a);else{var b=jD[$APP.la(null==a?null:a)];if(null!=b)a=b.h?b.h(a):b.call(null,a);else if(b=jD._,null!=b)a=b.h?b.h(a):b.call(null,a);else throw $APP.eb("IEncodeJS.-clj-\x3ejs",a);}return a}; | ||
kD=function(a,b){return(null!=a?$APP.Qc===a.Ce||(a.Zc?0:$APP.cb(iD,a)):$APP.cb(iD,a))?jD(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]))};lD=function(){};mD=function(a,b){if(null!=a&&null!=a.Be)a=a.Be(a,b);else{var c=mD[$APP.la(null==a?null:a)];if(null!=c)a=c.g?c.g(a,b):c.call(null,a,b);else if(c=mD._,null!=c)a=c.g?c.g(a,b):c.call(null,a,b);else throw $APP.eb("IEncodeClojure.-js-\x3eclj",a);}return a}; | ||
$APP.nD=function(a){return a instanceof Error?a.message:null};$APP.oD=function(a){return $APP.mq.g(a,/\n|\r\n/)};$APP.pD=function(a){return/^[\s\xa0]*$/.test(null==a?"":String(a))};qD=function(a,b){return $APP.r($APP.r(b)?$APP.yo.g(b,""):b)?$APP.om(a,$APP.Ck(b)):null}; | ||
xD=function(a){a=$APP.Vo($APP.To(a),$APP.jt);if($APP.ee(a)&&$APP.yd.g($APP.wj,$APP.x(a))){a=$APP.w(a);$APP.x(a);a=$APP.y(a);$APP.x(a);a=$APP.y(a);a=$APP.Jf(function(d){var e=$APP.A.l(d,0,null);d=$APP.A.l(d,1,null);return $APP.ee(e)&&$APP.yd.g(rD,$APP.x(e))?new $APP.H(null,2,5,$APP.I,[$APP.bd(e),d],null):null},$APP.sD.l(2,1,a));var b=$APP.A.l(a,0,null),c=$APP.A.l(a,1,null);return $APP.r(b)?shadow_esm_import("./compiler.sci.js").then(function(){var d=$APP.tD.h($APP.Rb($APP.uD));return $APP.qe.l(function(e, | ||
f){return e.then(function(){var k=$APP.w(f),l=$APP.x(k);k=$APP.y(k);k=$APP.nf(k);var m=$APP.ie.g(k,$APP.iq);return Promise.resolve(function(){var h=function(){var n=new $APP.D(null,$APP.IB,new $APP.D(null,new $APP.D(null,$APP.Fj,new $APP.D(null,l,null,1,null),2,null),null,1,null),2,null);return $APP.r(c)?$APP.N.g(n,new $APP.H(null,1,5,$APP.I,[$APP.vD],null)):n}();d.h?d.h(h):d.call(null,h);var p=function(){var n=$APP.U.h($APP.w($APP.N.g(new $APP.D(null,wD,null,1,null),new $APP.D(null,$APP.U.h($APP.w($APP.N.g(new $APP.D(null, | ||
$APP.Fj,null,1,null),new $APP.D(null,l,null,1,null)))),null,1,null))));return d.h?d.h(n):d.call(null,n)}();h=$APP.Nh(p);p=$APP.Ph(p);p=$APP.ti.g($APP.nd,p);h=$APP.Zh(h,p);return $APP.r(m)?$APP.eD(h,m):h}()).then(function(h){return $APP.Ls=$APP.Ik.j($APP.B([$APP.Ls,h]))})})},Promise.resolve(null),b)}):null}return null};yD=function(a,b){return Promise.resolve(xD(a)).then(function(){return $APP.wt(a,b)})}; | ||
$APP.ED=function(a){a=$APP.nf(a);var b=$APP.ie.g(a,$APP.zD),c=$APP.ie.g(a,AD),d=$APP.ie.g(a,$APP.BD),e=$APP.ie.g(a,CD),f=$APP.ie.l(a,$APP.DD,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return yD(c,$APP.yi.l(a,$APP.gt,$APP.Yi.h(new $APP.q(null,1,[$APP.co,b],null)))).then(function(k){k=$APP.nf(k);var l=$APP.ie.g(k,$APP.vt),m=$APP.ie.g(k,$APP.rp),h=esm_import$path,p=h.resolve;$APP.r(d)?m=d:($APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.bk(e,/^\./,"")].join(""):null,m=$APP.r(m)?m:".mjs"),m=$APP.bk(b, | ||
/.clj(s|c)$/,m));h=p.call(h,f,m);p=esm_import$path.dirname(h);$APP.r(esm_import$fs.existsSync(p))||esm_import$fs.mkdirSync(p,{recursive:!0});if(!$APP.r(esm_import$fs.existsSync(p)))throw Error("File not found, make sure output-dir is a valid path: ",new $APP.q(null,2,[$APP.DD,f,$APP.BD,h],null));esm_import$fs.writeFileSync(h,l,"utf-8");return $APP.yi.l(k,$APP.BD,h)})};GD=function(a){return $APP.FD.j(a,$APP.B([$APP.yv,!0]))}; | ||
ID=function(a){return function(){function b(d){var e=null;if(0<arguments.length){e=0;for(var f=Array(arguments.length-0);e<f.length;)f[e]=arguments[e+0],++e;e=new $APP.Yc(f,0,null)}return c.call(this,e)}function c(d){d=$APP.Rt.g(GD,d);d=$APP.Lf.g(a,d);return d instanceof Promise?d.then($APP.HD):$APP.HD(d)}b.m=0;b.o=function(d){d=$APP.w(d);return c(d)};b.j=c;return b}()};$APP.cD.prototype.add=function(a){return this.A.push(a)};$APP.cD.prototype.size=function(){return this.A.length}; | ||
$APP.cD.prototype.clear=function(){return this.A=[]};$APP.cD.prototype.Kc=function(){return 0===this.A.length};$APP.JD=function JD(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return JD.j(arguments[0],1<c.length?new $APP.Yc(c.slice(1),0,null):null)}; | ||
$APP.JD.j=function(a,b){if($APP.r($APP.Jf($APP.ve,b))){var c=function(d,e){var f=$APP.Hb(e),k=$APP.Kb(e);if($APP.ke(d,f)){e=$APP.yi.l;var l=$APP.ie.g(d,f);k=a.g?a.g(l,k):a.call(null,l,k);d=e.call($APP.yi,d,f,k)}else d=$APP.yi.l(d,f,k);return d};return $APP.qe.g(function(d,e){return $APP.qe.l(c,$APP.r(d)?d:$APP.mf,$APP.w(e))},b)}return null};$APP.JD.m=1;$APP.JD.o=function(a){var b=$APP.x(a);a=$APP.y(a);return this.j(b,a)}; | ||
$APP.KD=function KD(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return KD.j(0<c.length?new $APP.Yc(c.slice(0),0,null):null)};$APP.KD.j=function(a){$APP.Ci(a,$APP.Ra());return $APP.r($APP.Sa)?$APP.dD($APP.Ra()):null};$APP.KD.m=0;$APP.KD.o=function(a){return this.j($APP.w(a))};$APP.LD=function LD(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return LD.j(0<c.length?new $APP.Yc(c.slice(0),0,null):null)}; | ||
$APP.LD.j=function(a){$APP.Ci(a,$APP.yi.l($APP.Ra(),$APP.Ha,!1));return $APP.r($APP.Sa)?$APP.dD($APP.Ra()):null};$APP.LD.m=0;$APP.LD.o=function(a){return this.j($APP.w(a))};$APP.sD=function sD(a){switch(arguments.length){case 1:return sD.h(arguments[0]);case 2:return sD.g(arguments[0],arguments[1]);case 3:return sD.l(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.sD.h=function(a){return function(b){var c=new $APP.cD;return function(){function d(l,m){c.add(m);return a===c.size()?(m=$APP.lg(c.A),c.clear(),b.g?b.g(l,m):b.call(null,l,m)):l}function e(l){if(!$APP.r(c.Kc())){var m=$APP.lg(c.A);c.clear();l=$APP.od(b.g?b.g(l,m):b.call(null,l,m))}return b.h?b.h(l):b.call(null,l)}function f(){return b.v?b.v():b.call(null)}var k=null;k=function(l,m){switch(arguments.length){case 0:return f.call(this);case 1:return e.call(this,l);case 2:return d.call(this,l,m)}throw Error("Invalid arity: "+ | ||
arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.sD.g=function(a,b){return $APP.sD.l(a,a,b)};$APP.sD.l=function(a,b,c){return new $APP.Re(null,function(){var d=$APP.w(c);return d?$APP.Le($APP.Nk.g(a,d),$APP.sD.l(a,b,$APP.Aq.g(b,d))):null},null,null)};$APP.sD.m=3;$APP.HD=function HD(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return HD.j(arguments[0],1<c.length?new $APP.Yc(c.slice(1),0,null):null)}; | ||
$APP.HD.j=function(a,b){b=$APP.nf(b);var c=$APP.ie.l(b,$APP.BB,$APP.Yh),d=function k(f){if(null==f)return null;if(null!=f?$APP.Qc===f.Ce||(f.Zc?0:$APP.cb(iD,f)):$APP.cb(iD,f))return jD(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=kD(v,d);n=k(n);l[v]=n;p+=1}else if(f=$APP.w(f))$APP.be(f)?(h=$APP.xc(f),f=$APP.yc(f), | ||
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=kD(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.xc(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.HD.m=1; | ||
$APP.HD.o=function(a){var b=$APP.x(a);a=$APP.y(a);return this.j(b,a)};$APP.FD=function FD(a){switch(arguments.length){case 1:return FD.h(arguments[0]);default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return FD.j(arguments[0],new $APP.Yc(c.slice(1),0,null))}};$APP.FD.h=function(a){return $APP.FD.j(a,$APP.B([$APP.yv,!1]))}; | ||
$APP.FD.j=function(a,b){var c=$APP.nf(b);c=$APP.ie.g(c,$APP.yv);var d=$APP.r(c)?$APP.ui:$APP.t;return function k(f){return(null!=f?$APP.Qc===f.ff||(f.Zc?0:$APP.cb(lD,f)):$APP.cb(lD,f))?mD(f,$APP.Lf.g($APP.po,b)):$APP.ee(f)?$APP.ym.h($APP.ti.g(k,f)):$APP.hg(f)?new $APP.Jg(k($APP.Hb(f)),k($APP.Kb(f)),null):$APP.Td(f)?$APP.Qg.l($APP.Id(f),$APP.ti.h(k),f):$APP.Wa(f)?$APP.qc($APP.qe.l(function(l,m){return $APP.fg.g(l,k(m))},$APP.lc($APP.kg),f)):$APP.db(f)===Object?$APP.qc($APP.qe.l(function(l,m){return $APP.Tg.l(l, | ||
d.h?d.h(m):d.call(null,m),k($APP.Aa(f,m)))},$APP.lc($APP.mf),$APP.za(f))):f}(a)};$APP.FD.o=function(a){var b=$APP.x(a);a=$APP.y(a);return this.j(b,a)};$APP.FD.m=1;$APP.MD=function MD(a){switch(arguments.length){case 1:return MD.h(arguments[0]);case 2:return MD.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.MD.h=function(a){return qD(new $APP.q(null,3,[$APP.mm,$APP.Rb($APP.lC),$APP.nm,$APP.Rb($APP.kC),$APP.bl,null],null),a)}; | ||
$APP.MD.g=function(a,b){return qD($APP.Dm.l($APP.Ik.j($APP.B([new $APP.q(null,1,[$APP.nm,$APP.Rb($APP.kC)],null),a])),$APP.mm,function(c){return $APP.Ik.j($APP.B([$APP.Rb($APP.lC),c]))}),b)};$APP.MD.m=2;$APP.vD=new $APP.F(null,"reload","reload",863702807);$APP.ND=new $APP.F(null,"opts","opts",155075701);$APP.DD=new $APP.F(null,"output-dir","output-dir",-290956991);rD=new $APP.F(null,"require-macros","require-macros",707947416);$APP.zD=new $APP.F(null,"in-file","in-file",-1682176692); | ||
wD=new $APP.u("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.tD=new $APP.F(null,"eval-form","eval-form",-1934118476);$APP.OD=new $APP.F(null,"aliases","aliases",1346874714);$APP.BD=new $APP.F(null,"out-file","out-file",-1187066405);AD=new $APP.F(null,"in-str","in-str",-1014658121);CD=new $APP.F(null,"extension","extension",1453374065);var PD;$APP.uD=$APP.Yi.h(null);PD=ID(yD);export let compileFile=ID($APP.ED);export let compileString=PD; |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "0.1.22", | ||
"version": "0.1.23", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "core.js", |
@@ -1334,4 +1334,34 @@ // @ts-check | ||
} | ||
} else { | ||
// opiniated choice, next realizes underlying sequence | ||
return next(vec(x)); | ||
} | ||
throw new Error('next not implement for non-arrays yet'); | ||
} | ||
export function compare(x, y) { | ||
if (x === y) { | ||
return 0; | ||
} else { | ||
if (x == null) { | ||
return -1; | ||
} | ||
if (y == null) { | ||
return 1; | ||
} | ||
if (typeof x === 'number') { | ||
if (typeof y === 'number') { | ||
if (x === y) { | ||
return 0; | ||
} | ||
if (x < y) { | ||
return -1; | ||
} | ||
return 1; | ||
} else { | ||
throw new Error('comparing number to other type'); | ||
} | ||
} else { | ||
throw new Error('comparing number to other type'); | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1126999
5944