diff --git a/.haxerc b/.haxerc index 037188c..6e5e0c6 100644 --- a/.haxerc +++ b/.haxerc @@ -1,4 +1,4 @@ { - "version": "4.2.5", + "version": "4.3.0", "resolveLibs": "scoped" } diff --git a/bin/mc2it_card.js b/bin/mc2it_card.js index f5b02ab..f81f1f9 100755 --- a/bin/mc2it_card.js +++ b/bin/mc2it_card.js @@ -1,26 +1,26 @@ #!/usr/bin/env node -(function(ue){"use strict";var y=function(){return O.__string_rec(this,"")},M=M||{},c,Pe=require("child_process");class w{static string(e){return O.__string_rec(e,"")}static parseInt(e){if(e!=null){let t=0,r=e.length;for(;t=14&&s!=32&&s!=45){let u=e.charCodeAt(n+1),l=parseInt(e,u==120||u==88?16:10);return isNaN(l)?null:l}}}return null}}w.__name__=!0;class J{static environment(){let e=new he,t=0,r=ce.fields(process.env);for(;t=0&&e=e.length);){if(!this.matchSub(e,r)){n+=w.string(o.substr(e,r,null));break}let s=this.matchedPos();if(n+=w.string(o.substr(e,r,s.pos-r)),n+=w.string(t(this)),s.len==0?(n+=w.string(o.substr(e,s.pos,1)),r=s.pos+1):r=s.pos+s.len,!this.r.global)break}return!this.r.global&&r>0&&r0){let f=n[n.length-1]+1,S="",I=0;for(;I2)return 0}let t=J.environment().h.TERM;return t!=null&&new z("cygwin|xterm|vt100","").match(t)?0:2}static exec(e,t){let r=Pe.spawnSync(e,t??[],{}),n=r.stdout==null?"":r.stdout.toString();return n==null&&(n=""),{exit:r.status,stdout:n}}}g.__name__=!0;class ne{static fromString(e){if(e=e.toLowerCase(),e.charAt(0)=="#"||o.substr(e,0,3)=="bg#"){let t=e.indexOf("#"),r=o.substr(e,t+1,null);if(r.length==3){let s=r.split("");r=[s[0],s[0],s[1],s[1],s[2],s[2]].join("")}return new z("[^0-9a-f]","i").match(r)||r.length<6?"":e.substring(0,t)+"#"+r}switch(e){case"!":return"invert";case"/":return"reset";case"b":return"bold";case"bg_gray":return"bg_light_black";case"gray":return"light_black";case"i":return"italic";case"u":return"underline";default:return e}}}class o{static cca(e,t){let r=e.charCodeAt(t);if(r==r)return r}static substr(e,t,r){if(r==null)r=e.length;else if(r<0)if(t==0)r=e.length+r;else return"";return e.substr(t,r)}static now(){return Date.now()}}o.__name__=!0;class K{static fold(e,t,r){let n=Re(e);for(;n.hasNext();)r=t(n.next(),r);return r}static find(e,t){let r=Re(e);for(;r.hasNext();){let n=r.next();if(t(n))return n}return null}}K.__name__=!0,Math.__name__=!0;class _e{constructor(){this.b=""}toString(){return this.b}}_e.__name__=!0;class B{static isSpace(e,t){let r=o.cca(e,t);return r>8&&r<14?!0:r==32}static ltrim(e){let t=e.length,r=0;for(;r0?o.substr(e,r,t-r):e}static rtrim(e){let t=e.length,r=0;for(;r0?o.substr(e,0,t-r):e}static trim(e){return B.ltrim(B.rtrim(e))}static lpad(e,t,r){if(t.length<=0)return e;let n="";for(r-=e.length;n.lengthe.length)throw F.thrown(D.OutsideBounds);let n=e.b,s=r;for(;s>0;)this.writeByte(n[t]),++t,--s;return r}writeFullBytes(e,t,r){for(;r>0;){let n=this.writeBytes(e,t,r);t+=n,r-=n}}writeString(e,t){let r=H.ofString(e,t);this.writeFullBytes(r,0,r.length)}}oe.__name__=!0;class se extends oe{constructor(e){super(),this.fd=e}writeByte(e){le.writeSync(this.fd,String.fromCodePoint(e))}writeBytes(e,t,r){let n=e.b;return le.writeSync(this.fd,me.from(n.buffer,n.byteOffset,e.length),t,r)}writeString(e,t){le.writeSync(this.fd,e)}}se.__name__=!0;var C=M["haxe.StackItem"]={__ename__:!0,__constructs__:null,CFunction:{_hx_name:"CFunction",_hx_index:0,__enum__:"haxe.StackItem",toString:y},Module:(c=function(i){return{_hx_index:1,m:i,__enum__:"haxe.StackItem",toString:y}},c._hx_name="Module",c.__params__=["m"],c),FilePos:(c=function(i,e,t,r){return{_hx_index:2,s:i,file:e,line:t,column:r,__enum__:"haxe.StackItem",toString:y}},c._hx_name="FilePos",c.__params__=["s","file","line","column"],c),Method:(c=function(i,e){return{_hx_index:3,classname:i,method:e,__enum__:"haxe.StackItem",toString:y}},c._hx_name="Method",c.__params__=["classname","method"],c),LocalFunction:(c=function(i){return{_hx_index:4,v:i,__enum__:"haxe.StackItem",toString:y}},c._hx_name="LocalFunction",c.__params__=["v"],c)};C.__constructs__=[C.CFunction,C.Module,C.FilePos,C.Method,C.LocalFunction];class F extends Error{constructor(e,t,r){super(e),this.message=e,this.__previousException=t,this.__nativeException=r??this}unwrap(){return this.__nativeException}toString(){return this.get_message()}get_message(){return this.message}get_native(){return this.__nativeException}static caught(e){return e instanceof F?e:e instanceof Error?new F(e.message,null,e):new ie(e,null,e)}static thrown(e){return e instanceof F?e.get_native():e instanceof Error?e:new ie(e)}}F.__name__=!0;class ie extends F{constructor(e,t,r){super(String(e),t,r),this.value=e}unwrap(){return this.value}}ie.__name__=!0;class he{constructor(){this.h=Object.create(null)}}he.__name__=!0;class ge extends F{constructor(e,t,r){super(e,t),r==null?this.posInfos={fileName:"(unknown)",lineNumber:0,className:"(unknown)",methodName:"(unknown)"}:this.posInfos=r}toString(){return""+super.toString()+" in "+this.posInfos.className+"."+this.posInfos.methodName+" at "+this.posInfos.fileName+":"+this.posInfos.lineNumber}}ge.__name__=!0;class de extends ge{constructor(e,t,r){e==null&&(e="Not implemented"),super(e,t,r)}}de.__name__=!0;class H{constructor(e){this.length=e.byteLength,this.b=new Uint8Array(e),this.b.bufferValue=e,e.hxBytes=this,e.bytes=this.b}static ofString(e,t){if(t==Q.RawNative){let s=new Uint8Array(e.length<<1),u=0,l=e.length;for(;u>8}return new H(s.buffer)}let r=[],n=0;for(;n>6),r.push(128|s&63)):s<=65535?(r.push(224|s>>12),r.push(128|s>>6&63),r.push(128|s&63)):(r.push(240|s>>18),r.push(128|s>>12&63),r.push(128|s>>6&63),r.push(128|s&63))}return new H(new Uint8Array(r).buffer)}}H.__name__=!0;var Q=M["haxe.io.Encoding"]={__ename__:!0,__constructs__:null,UTF8:{_hx_name:"UTF8",_hx_index:0,__enum__:"haxe.io.Encoding",toString:y},RawNative:{_hx_name:"RawNative",_hx_index:1,__enum__:"haxe.io.Encoding",toString:y}};Q.__constructs__=[Q.UTF8,Q.RawNative];var D=M["haxe.io.Error"]={__ename__:!0,__constructs__:null,Blocked:{_hx_name:"Blocked",_hx_index:0,__enum__:"haxe.io.Error",toString:y},Overflow:{_hx_name:"Overflow",_hx_index:1,__enum__:"haxe.io.Error",toString:y},OutsideBounds:{_hx_name:"OutsideBounds",_hx_index:2,__enum__:"haxe.io.Error",toString:y},Custom:(c=function(i){return{_hx_index:3,e:i,__enum__:"haxe.io.Error",toString:y}},c._hx_name="Custom",c.__params__=["e"],c)};D.__constructs__=[D.Blocked,D.Overflow,D.OutsideBounds,D.Custom];class fe{constructor(e){this.current=0,this.array=e}hasNext(){return this.current=5)return"<...>";let r=typeof e;switch(r=="function"&&(e.__name__||e.__ename__)&&(r="object"),r){case"function":return"";case"object":if(e.__enum__){let a=M[e.__enum__].__constructs__[e._hx_index],h=a._hx_name;return a.__params__?(t=t+" ",h+"("+function(d){var m;let b=[];{let p=0,f=a.__params__;for(;p0?",":"")+O.__string_rec(e[d],t)}return _+="]",_}let n;try{n=e.toString}catch{return"???"}if(n!=null&&n!=Object.toString&&typeof n=="function"){let _=e.toString();if(_!="[object Object]")return _}let s=`{ -`;t+=" ";let u=e.hasOwnProperty!=null,l=null;for(l in e)u&&!e.hasOwnProperty(l)||l=="prototype"||l=="__class__"||l=="__super__"||l=="__interfaces__"||l=="__properties__"||(s.length!=2&&(s+=`, -`),s+=t+l+" : "+O.__string_rec(e[l],t));return t=t.substring(1),s+=` -`+t+"}",s;case"string":return e;default:return String(e)}}}O.__name__=!0;var le=require("fs"),me=require("buffer").Buffer;class x{static _new(){return new _e}static center(e,t){return x.line(e,""+x.repeat(e," ",Math.floor((39-x.getLength(e,t))/2))+t)}static footer(e){return x.addLine(e,"\u2570"+x.repeat(e,"\u2500")+"\u256F")}static header(e){return x.addLine(e,"\u256D"+x.repeat(e,"\u2500")+"\u256E")}static label(e,t,r){return x.line(e,B.lpad(""+t+": "," ",9+3+16)+r)}static line(e,t){return t==null&&(t=""),x.addLine(e,"\u2502"+t+x.repeat(e," ",39-x.getLength(e,t))+"\u2502")}static addLine(e,t){return e.b+=w.string(" "+t+L.newLine),e}static getLength(e,t){let r=new RegExp("<[^<]*>","g".split("u").join(""));return t.replace(r,"").length}static repeat(e,t,r){r==null&&(r=39);let n=[],s=0;for(;sMC2IT - Distribution & Services")),"GitHub","https://github.com/mc2it")),"Card","npx @mc2it/card"),"Email","dev@mc2it.com"),"Website","https://www.mc2it.com")));g.formatMode=0,g.logPrefix="";let r=g.logPrefix+(""+L.newLine+w.string(t));return r==null&&(r=""),g.printFormatted(r+` -`,0),G.NOISE}static main(){new we(new L,new Se(5)).process(process.argv.slice(2)).handle(pe.exit)}}L.__name__=!0;class T{static get_packageVersion(){return T.packageVersion==null&&(T.packageVersion="4.0.0"),T.packageVersion}}T.__name__=!0;class pe{static exit(e){switch(e._hx_index){case 0:process.exit(0);break;case 1:let t=e.failure,r=t.message;t.data!=null&&(r+=", "+(t.data==null?"null":w.string(t.data))),process.stdout.write(w.string(r)),process.stdout.write(` -`);let n=t.code;process.exit(n);break}}}pe.__name__=!0;class be{constructor(e){this.buffer=e}}be.__name__=!0;class W{static get(){return W.doc==null&&(W.doc={doc:" Print the business card of MC2IT, distribution and services. ",commands:[{isDefault:!0,isSub:!1,names:[],doc:null}],flags:[{names:["--help"],aliases:["h"],doc:" Display this help. "},{names:["--version"],aliases:["v"],doc:" Output the version number. "}]}),W.doc}}W.__name__=!0;class X{constructor(e,t,r){this.command=e,this.prompt=t,this.hasFlags=r}processArgs(e){let t=this;return this.hasFlags?N.catchExceptions(function(){let r=X.expandAssignments(e),n=[],s=0,u=!1;for(;s=0&&e=e.length)break;if(!this.matchSub(e,r)){n+=p.string(g.substr(e,r,null));break}let s=this.matchedPos();n+=p.string(g.substr(e,r,s.pos-r)),n+=p.string(t(this)),s.len==0?(n+=p.string(g.substr(e,s.pos,1)),r=s.pos+1):r=s.pos+s.len}while(this.r.global);return!this.r.global&&r>0&&r0){let y=n[n.length-1]+1,A="",j=0;for(;j2)return 0}let r=Q.environment().h.TERM;return r!=null&&new H("cygwin|xterm|vt100","").match(r)?0:2}static exec(e,t){let r=Le.spawnSync(e,t??[],{}),n=r.stdout==null?"":r.stdout.toString();return n==null&&(n=""),{exit:r.status,stdout:n}}}f.__name__=!0;class ne{static fromString(e){if(e=e.toLowerCase(),e.charAt(0)=="#"||g.substr(e,0,3)=="bg#"){let t=e.indexOf("#"),r=g.substr(e,t+1,null);if(r.length==3){let s=r.split("");r=[s[0],s[0],s[1],s[1],s[2],s[2]].join("")}return new H("[^0-9a-f]","i").match(r)||r.length<6?"":e.substring(0,t)+"#"+r}switch(e){case"!":return"invert";case"/":return"reset";case"b":return"bold";case"bg_gray":return"bg_light_black";case"gray":return"light_black";case"i":return"italic";case"u":return"underline";default:return e}}}class g{static cca(e,t){let r=e.charCodeAt(t);if(r==r)return r}static substr(e,t,r){if(r==null)r=e.length;else if(r<0)if(t==0)r=e.length+r;else return"";return e.substr(t,r)}static now(){return Date.now()}}g.__name__=!0;class X{static fold(e,t,r){let n=Re(e);for(;n.hasNext();)r=t(n.next(),r);return r}static find(e,t){let r=Re(e);for(;r.hasNext();){let n=r.next();if(t(n))return n}return null}}X.__name__=!0,Math.__name__=!0;class _e{constructor(){this.b=""}toString(){return this.b}}_e.__name__=!0;class B{static isSpace(e,t){let r=g.cca(e,t);return r>8&&r<14?!0:r==32}static ltrim(e){let t=e.length,r=0;for(;r0?g.substr(e,r,t-r):e}static rtrim(e){let t=e.length,r=0;for(;r0?g.substr(e,0,t-r):e}static trim(e){return B.ltrim(B.rtrim(e))}static lpad(e,t,r){if(t.length<=0)return e;let n="";for(r-=e.length;n.lengthe.length)throw F.thrown(D.OutsideBounds);let n=e.b,s=r;for(;s>0;)this.writeByte(n[t]),++t,--s;return r}writeFullBytes(e,t,r){for(;r>0;){let n=this.writeBytes(e,t,r);t+=n,r-=n}}writeString(e,t){let r=V.ofString(e,t);this.writeFullBytes(r,0,r.length)}}he.__name__=!0;class se extends he{constructor(e){super(),this.fd=e}writeByte(e){le.writeSync(this.fd,String.fromCodePoint(e))}writeBytes(e,t,r){let n=e.b;return le.writeSync(this.fd,pe.from(n.buffer,n.byteOffset,e.length),t,r)}writeString(e,t){le.writeSync(this.fd,e)}}se.__name__=!0;var W=O["haxe.StackItem"]={__ename__:!0,__constructs__:null,CFunction:{_hx_name:"CFunction",_hx_index:0,__enum__:"haxe.StackItem",toString:S},Module:(u=function(i){return{_hx_index:1,m:i,__enum__:"haxe.StackItem",toString:S}},u._hx_name="Module",u.__params__=["m"],u),FilePos:(u=function(i,e,t,r){return{_hx_index:2,s:i,file:e,line:t,column:r,__enum__:"haxe.StackItem",toString:S}},u._hx_name="FilePos",u.__params__=["s","file","line","column"],u),Method:(u=function(i,e){return{_hx_index:3,classname:i,method:e,__enum__:"haxe.StackItem",toString:S}},u._hx_name="Method",u.__params__=["classname","method"],u),LocalFunction:(u=function(i){return{_hx_index:4,v:i,__enum__:"haxe.StackItem",toString:S}},u._hx_name="LocalFunction",u.__params__=["v"],u)};W.__constructs__=[W.CFunction,W.Module,W.FilePos,W.Method,W.LocalFunction];class F extends Error{constructor(e,t,r){super(e),this.message=e,this.__previousException=t,this.__nativeException=r??this}unwrap(){return this.__nativeException}toString(){return this.get_message()}get_message(){return this.message}get_native(){return this.__nativeException}static caught(e){return e instanceof F?e:e instanceof Error?new F(e.message,null,e):new ie(e,null,e)}static thrown(e){return e instanceof F?e.get_native():e instanceof Error?e:new ie(e)}}F.__name__=!0;class ie extends F{constructor(e,t,r){super(String(e),t,r),this.value=e}unwrap(){return this.value}}ie.__name__=!0;class ge{constructor(){this.h=Object.create(null)}}ge.__name__=!0;class de extends F{constructor(e,t,r){super(e,t),r==null?this.posInfos={fileName:"(unknown)",lineNumber:0,className:"(unknown)",methodName:"(unknown)"}:this.posInfos=r}toString(){return""+super.toString()+" in "+this.posInfos.className+"."+this.posInfos.methodName+" at "+this.posInfos.fileName+":"+this.posInfos.lineNumber}}de.__name__=!0;class fe extends de{constructor(e,t,r){e==null&&(e="Not implemented"),super(e,t,r)}}fe.__name__=!0;class V{constructor(e){this.length=e.byteLength,this.b=new Uint8Array(e),this.b.bufferValue=e,e.hxBytes=this,e.bytes=this.b}static ofString(e,t){if(t==Z.RawNative){let s=new Uint8Array(e.length<<1),c=0,l=e.length;for(;c>8}return new V(s.buffer)}let r=[],n=0;for(;n>6),r.push(128|s&63)):s<=65535?(r.push(224|s>>12),r.push(128|s>>6&63),r.push(128|s&63)):(r.push(240|s>>18),r.push(128|s>>12&63),r.push(128|s>>6&63),r.push(128|s&63))}return new V(new Uint8Array(r).buffer)}}V.__name__=!0;var Z=O["haxe.io.Encoding"]={__ename__:!0,__constructs__:null,UTF8:{_hx_name:"UTF8",_hx_index:0,__enum__:"haxe.io.Encoding",toString:S},RawNative:{_hx_name:"RawNative",_hx_index:1,__enum__:"haxe.io.Encoding",toString:S}};Z.__constructs__=[Z.UTF8,Z.RawNative];var D=O["haxe.io.Error"]={__ename__:!0,__constructs__:null,Blocked:{_hx_name:"Blocked",_hx_index:0,__enum__:"haxe.io.Error",toString:S},Overflow:{_hx_name:"Overflow",_hx_index:1,__enum__:"haxe.io.Error",toString:S},OutsideBounds:{_hx_name:"OutsideBounds",_hx_index:2,__enum__:"haxe.io.Error",toString:S},Custom:(u=function(i){return{_hx_index:3,e:i,__enum__:"haxe.io.Error",toString:S}},u._hx_name="Custom",u.__params__=["e"],u)};D.__constructs__=[D.Blocked,D.Overflow,D.OutsideBounds,D.Custom];class me{constructor(e){this.current=0,this.array=e}hasNext(){return this.current=5)return"<...>";let r=typeof e;switch(r=="function"&&(e.__name__||e.__ename__)&&(r="object"),r){case"function":return"";case"object":if(e.__enum__){let a=O[e.__enum__].__constructs__[e._hx_index],m=a._hx_name;return a.__params__?(t=t+" ",m+"("+function(_){var h;let b=[];{let d=0,k=a.__params__;for(;d0?",":"")+R.__string_rec(e[_],t)}return o+="]",o}let n;try{n=e.toString}catch{return"???"}if(n!=null&&n!=Object.toString&&typeof n=="function"){let o=e.toString();if(o!="[object Object]")return o}let s=`{ +`;t+=" ";let c=e.hasOwnProperty!=null,l=null;for(l in e)c&&!e.hasOwnProperty(l)||l=="prototype"||l=="__class__"||l=="__super__"||l=="__interfaces__"||l=="__properties__"||(s.length!=2&&(s+=`, +`),s+=t+l+" : "+R.__string_rec(e[l],t));return t=t.substring(1),s+=` +`+t+"}",s;case"string":return e;default:return String(e)}}}R.__name__=!0;var le=require("fs"),pe=require("buffer").Buffer;class w{static _new(){return new _e}static center(e,t){return w.line(e,""+w.repeat(e," ",Math.floor((39-w.getLength(e,t))/2))+t)}static footer(e){return w.addLine(e,"\u2570"+w.repeat(e,"\u2500")+"\u256F")}static header(e){return w.addLine(e,"\u256D"+w.repeat(e,"\u2500")+"\u256E")}static label(e,t,r){return w.line(e,B.lpad(""+t+": "," ",9+3+16)+r)}static line(e,t){return t==null&&(t=""),w.addLine(e,"\u2502"+t+w.repeat(e," ",39-w.getLength(e,t))+"\u2502")}static addLine(e,t){return e.b+=p.string(" "+t+P.newLine),e}static getLength(e,t){let r=new RegExp("<[^<]*>","g".split("u").join(""));return t.replace(r,"").length}static repeat(e,t,r){r==null&&(r=39);let n=[],s=0;for(;sMC2IT - Distribution & Services")),"GitHub","https://github.com/mc2it")),"Card","npx @mc2it/card"),"Email","dev@mc2it.com"),"Website","https://www.mc2it.com")));f.formatMode=0,f.logPrefix="";let r=f.logPrefix+(""+P.newLine+p.string(t));return r==null&&(r=""),f.printFormatted(r+` +`,0),Y.NOISE}static main(){new xe(new P,new ve(5)).process(process.argv.slice(2)).handle(be.exit)}}P.__name__=!0;class q{static get_packageVersion(){return q.packageVersion==null&&(q.packageVersion="4.1.0"),q.packageVersion}}q.__name__=!0;class be{static exit(e){switch(e._hx_index){case 0:process.exit(0);break;case 1:let t=e.failure,r=t.message;t.data!=null&&(r+=", "+(t.data==null?"null":p.string(t.data))),process.stdout.write(p.string(r)),process.stdout.write(` +`);let n=t.code;process.exit(n);break}}}be.__name__=!0;class we{constructor(e){this.buffer=e}}we.__name__=!0;class z{static get(){return z.doc==null&&(z.doc={doc:" Print the business card of MC2IT, distribution and services. ",commands:[{isDefault:!0,isSub:!1,names:[],doc:null}],flags:[{names:["--help"],aliases:["h"],doc:" Display this help. "},{names:["--version"],aliases:["v"],doc:" Output the version number. "}]}),z.doc}}z.__name__=!0;class ee{constructor(e,t,r){this.command=e,this.prompt=t,this.hasFlags=r}processArgs(e){let t=this;return this.hasFlags?I.catchExceptions(function(){let r=ee.expandAssignments(e),n=[],s=0,c=!1;for(;s0){let a=K.fold(s,function(m,b){let p=0,f=m.names;for(;pb&&(b=S.length)}return b},0);this.root!=null&&(t+=w.string(" Usage: "+this.root+` -`)),t+=w.string(` Subcommands: -`);let h=function(m,b){b==null&&(b="(doc missing)"),t+=w.string(_.indent(B.lpad(m," ",a)+" : "+B.trim(_.indent(b,a+3)),6)+` -`)},d=0;for(;d1){let p=1,f=m.names.length;for(;p0){let a=function(p){let f=p.names.join(", ");if(p.aliases.length>0){let S=p.aliases,I=new Array(S.length),te=0,re=S.length;for(;tef&&(f=S.length),f},0),d=function(p,f){f==null&&(f=""),t+=w.string(_.indent(B.lpad(p," ",h)+" : "+B.trim(_.indent(f,h+3)),6)+` +`))}let o=this;if(s.length>0){let a=X.fold(s,function(h,b){let d=0,k=h.names;for(;db&&(b=y.length)}return b},0);this.root!=null&&(t+=p.string(" Usage: "+this.root+` +`)),t+=p.string(` Subcommands: +`);let m=function(h,b){b==null&&(b="(doc missing)"),t+=p.string(o.indent(B.lpad(h," ",a)+" : "+B.trim(o.indent(b,a+3)),6)+` +`)},_=0;for(;_1){let d=1,k=h.names.length;for(;d0){let a=function(d){let k=d.names.join(", ");if(d.aliases.length>0){let y=d.aliases,A=new Array(y.length),j=0,ue=y.length;for(;jk&&(k=y.length),k},0),_=function(d,k){k==null&&(k=""),t+=p.string(o.indent(B.lpad(d," ",m)+" : "+B.trim(o.indent(k,m+3)),6)+` `)};t=(t+=` -`)+w.string(` Flags: -`);let m=0,b=e.flags;for(;m>1&&e.compact()}}}Fe.__name__=!0;class R{constructor(e){R._hx_skip_constructor||this._hx_constructor(e)}_hx_constructor(e){this.disposeHandlers=[],this.f=e}dispose(){let e=this.disposeHandlers;if(e!=null){this.disposeHandlers=null;let t=this.f;this.f=R.noop,t();let r=0;for(;r0){this.used=0;let r=this.ondrain;k.depth<500?(k.depth++,r(),k.depth--):k.defer(r)}}invoke(e){let t=this;if(k.depth<500){if(k.depth++,t.disposeHandlers!=null)if(t.busy){if(t.destructive!=!0){let r=Le(t,t.invoke),n=e,s=function(){r(n)};t.queue.push(s)}}else{t.busy=!0,t.destructive&&t.dispose();let r=t.cells.length,n=0;for(;n0&&t.queue.shift()())}k.depth--}else k.defer(function(){if(t.disposeHandlers!=null)if(t.busy){if(t.destructive!=!0){let r=Le(t,t.invoke),n=e,s=function(){r(n)};t.queue.push(s)}}else{t.busy=!0,t.destructive&&t.dispose();let r=t.cells.length,n=0;for(;n0&&t.queue.shift()())}})}compact(){if(!this.busy)if(this.used==0){this.resize(0);let e=this.ondrain;k.depth<500?(k.depth++,e(),k.depth--):k.defer(e)}else{let e=0,t=0,r=this.cells.length;for(;t>10)+55232)+String.fromCharCode((i&1023)+56320)}),String.__name__=!0,Array.__name__=!0,typeof performance<"u"&&typeof performance.now=="function"&&(o.now=performance.now.bind(performance)),O.__toStr={}.toString,g.formatMode=g.determineConsoleFormatMode(),g.logPrefix="> ",g.unicodeCompatibilityMode=J.systemName()=="Windows"?1:0,g.unicodeCompatibilityEnabled=!1,g.formatTagPattern=new z("(\\\\)?<(/)?([^><{}\\s]*|{[^}<>]*})>","g"),L.newLine=J.systemName()=="Windows"?`\r +`),r=B.trim,n=new Array(t.length),s=0,c=t.length;for(;s>1&&e.compact()}}}Ne.__name__=!0;class L{constructor(e){L._hx_skip_constructor||this._hx_constructor(e)}_hx_constructor(e){this.disposeHandlers=[],this.f=e}dispose(){let e=this.disposeHandlers;if(e!=null){this.disposeHandlers=null;let t=this.f;this.f=L.noop,t();let r=0;for(;r0){this.used=0;let r=this.ondrain;x.depth<500?(x.depth++,r(),x.depth--):x.defer(r)}}invoke(e){let t=this;if(x.depth<500){if(x.depth++,t.disposeHandlers!=null)if(t.busy){if(t.destructive!=!0){let r=t,n=e,s=function(){r.invoke(n)};t.queue.push(s)}}else{t.busy=!0,t.destructive&&t.dispose();let r=t.cells.length,n=0;for(;n0&&t.queue.shift()())}x.depth--}else x.defer(function(){if(t.disposeHandlers!=null)if(t.busy){if(t.destructive!=!0){let r=t,n=e,s=function(){r.invoke(n)};t.queue.push(s)}}else{t.busy=!0,t.destructive&&t.dispose();let r=t.cells.length,n=0;for(;n0&&t.queue.shift()())}})}compact(){if(!this.busy)if(this.used==0){this.resize(0);let e=this.ondrain;x.depth<500?(x.depth++,e(),x.depth--):x.defer(e)}else{let e=0,t=0,r=this.cells.length;for(;t>10)+55232)+String.fromCharCode((i&1023)+56320)}),String.__name__=!0,Array.__name__=!0,typeof performance<"u"&&typeof performance.now=="function"&&(g.now=performance.now.bind(performance)),R.__toStr={}.toString,f.formatMode=f.determineConsoleFormatMode(),f.logPrefix="> ",f.unicodeCompatibilityMode=Q.systemName()=="Windows"?1:0,f.unicodeCompatibilityEnabled=!1,f.formatTagPattern=new H("(\\\\)?<(/)?([^><{}\\s]*|{[^}<>]*})>","g"),P.newLine=Q.systemName()=="Windows"?`\r `:` -`,k.depth=0,R._hx_skip_constructor=!1,E.NEVER=new Be,G.NOISE=new q(new P(v.Success(null))),L.main()})(global); +`,x.depth=0,L._hx_skip_constructor=!1,M._hx_skip_constructor=!1,E.NEVER_INST=new M,Y.NOISE=new U(new T(v.Success(null))),P.main()})(global); diff --git a/haxe_libraries/tink_core.hxml b/haxe_libraries/tink_core.hxml index f93efcd..2b904d7 100644 --- a/haxe_libraries/tink_core.hxml +++ b/haxe_libraries/tink_core.hxml @@ -1,3 +1,3 @@ -# @install: lix --silent download "haxelib:/tink_core#2.1.0" into tink_core/2.1.0/haxelib --cp ${HAXE_LIBCACHE}/tink_core/2.1.0/haxelib/src --D tink_core=2.1.0 +# @install: lix --silent download "haxelib:/tink_core#2.1.1" into tink_core/2.1.1/haxelib +-cp ${HAXE_LIBCACHE}/tink_core/2.1.1/haxelib/src +-D tink_core=2.1.1 diff --git a/scripts/Watch.hx b/scripts/Watch.hx index ac8e084..28f0677 100644 --- a/scripts/Watch.hx +++ b/scripts/Watch.hx @@ -16,5 +16,5 @@ private function measureCallback(?done: Callback>, ?prompt: String final timestamp = Timer.stamp(); callback.invoke(Noise); Sys.println('> ${Tools.formatDuration(Timer.stamp() - timestamp)}'); - if (done != null) done.invoke(null); + done?.invoke(null); } catch (e) { done != null ? done.invoke(new JsError(e.message)) : throw e; } diff --git a/src/mc2it_card/CardBuilder.hx b/src/mc2it_card/CardBuilder.hx index cc366d9..95d348d 100644 --- a/src/mc2it_card/CardBuilder.hx +++ b/src/mc2it_card/CardBuilder.hx @@ -38,7 +38,7 @@ abstract CardBuilder(StringBuf) from StringBuf { /** Appends a line of plain text. **/ function addLine(text: String) { this.add('$indent$text${Program.newLine}'); - return (this: CardBuilder); + return abstract; } /** Gets the length in characters of the specified text, excluding formatting tags. **/