mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-28 12:48:54 +01:00
61 lines
1.1 MiB
JavaScript
61 lines
1.1 MiB
JavaScript
|
"use strict";
|
||
|
(function() {
|
||
|
|
||
|
Error.stackTraceLimit=Infinity;var $global,$module;if(typeof window!=="undefined"){$global=window;}else if(typeof self!=="undefined"){$global=self;}else if(typeof global!=="undefined"){$global=global;$global.require=require;}else{$global=this;}if($global===undefined||$global.Array===undefined){throw new Error("no global object found");}if(typeof module!=="undefined"){$module=module;}var $packages={},$idCounter=0;var $keys=function(m){return m?Object.keys(m):[];};var $flushConsole=function(){};var $throwRuntimeError;var $throwNilPointerError=function(){$throwRuntimeError("invalid memory address or nil pointer dereference");};var $call=function(fn,rcvr,args){return fn.apply(rcvr,args);};var $makeFunc=function(fn){return function(){return fn(new($sliceType($jsObjectPtr))($global.Array.prototype.slice.call(arguments,[])));}};var $mapArray=function(array,f){var newArray=new array.constructor(array.length);for(var i=0;i<array.length;i++){newArray[i]=f(array[i]);}return newArray;};var $methodVal=function(recv,name){var vals=recv.$methodVals||{};recv.$methodVals=vals;var f=vals[name];if(f!==undefined){return f;}var method=recv[name];f=function(){$stackDepthOffset--;try{return method.apply(recv,arguments);}finally{$stackDepthOffset++;}};vals[name]=f;return f;};var $methodExpr=function(typ,name){var method=typ.prototype[name];if(method.$expr===undefined){method.$expr=function(){$stackDepthOffset--;try{if(typ.wrapped){arguments[0]=new typ(arguments[0]);}return Function.call.apply(method,arguments);}finally{$stackDepthOffset++;}};}return method.$expr;};var $ifaceMethodExprs={};var $ifaceMethodExpr=function(name){var expr=$ifaceMethodExprs["$"+name];if(expr===undefined){expr=$ifaceMethodExprs["$"+name]=function(){$stackDepthOffset--;try{return Function.call.apply(arguments[0][name],arguments);}finally{$stackDepthOffset++;}};}return expr;};var $subslice=function(slice,low,high,max){if(low<0||high<low||max<high||high>slice.$capacity||max>slice.$capacity){$throwRuntimeError("slice bounds out of range");}var s=new slice.constructor(slice.$array);s.$offset=slice.$offset+low;s.$length=slice.$length-low;s.$capacity=slice.$capacity-low;if(high!==undefined){s.$length=high-low;}if(max!==undefined){s.$capacity=max-low;}return s;};var $sliceToArray=function(slice){if(slice.$length===0){return[];}if(slice.$array.constructor!==Array){return slice.$array.subarray(slice.$offset,slice.$offset+slice.$length);}return slice.$array.slice(slice.$offset,slice.$offset+slice.$length);};var $decodeRune=function(str,pos){var c0=str.charCodeAt(pos);if(c0<0x80){return[c0,1];}if(c0!==c0||c0<0xC0){return[0xFFFD,1];}var c1=str.charCodeAt(pos+1);if(c1!==c1||c1<0x80||0xC0<=c1){return[0xFFFD,1];}if(c0<0xE0){var r=(c0&0x1F)<<6|(c1&0x3F);if(r<=0x7F){return[0xFFFD,1];}return[r,2];}var c2=str.charCodeAt(pos+2);if(c2!==c2||c2<0x80||0xC0<=c2){return[0xFFFD,1];}if(c0<0xF0){var r=(c0&0x0F)<<12|(c1&0x3F)<<6|(c2&0x3F);if(r<=0x7FF){return[0xFFFD,1];}if(0xD800<=r&&r<=0xDFFF){return[0xFFFD,1];}return[r,3];}var c3=str.charCodeAt(pos+3);if(c3!==c3||c3<0x80||0xC0<=c3){return[0xFFFD,1];}if(c0<0xF8){var r=(c0&0x07)<<18|(c1&0x3F)<<12|(c2&0x3F)<<6|(c3&0x3F);if(r<=0xFFFF||0x10FFFF<r){return[0xFFFD,1];}return[r,4];}return[0xFFFD,1];};var $encodeRune=function(r){if(r<0||r>0x10FFFF||(0xD800<=r&&r<=0xDFFF)){r=0xFFFD;}if(r<=0x7F){return String.fromCharCode(r);}if(r<=0x7FF){return String.fromCharCode(0xC0|r>>6,0x80|(r&0x3F));}if(r<=0xFFFF){return String.fromCharCode(0xE0|r>>12,0x80|(r>>6&0x3F),0x80|(r&0x3F));}return String.fromCharCode(0xF0|r>>18,0x80|(r>>12&0x3F),0x80|(r>>6&0x3F),0x80|(r&0x3F));};var $stringToBytes=function(str){var array=new Uint8Array(str.length);for(var i=0;i<str.length;i++){array[i]=str.charCodeAt(i);}return array;};var $bytesToString=function(slice){if(slice.$length===0){return"";}var str="";for(var i=0;i<slice.$length;i+=10000){str+=String.fromCharCode.apply(undefined,slice.$array.subarray(slice.$offset+i,slice.$offset+Math.min(slice.$length,i+10000)));}return str;};var $stringToRunes=function(str){var array=new Int32Array(str.length);var rune,j=0;for(var i=0;i<str.leng
|
||
|
$packages["github.com/gopherjs/gopherjs/js"]=(function(){var $pkg={},$init,A,B,L,N,Q,K;A=$pkg.Object=$newType(0,$kindStruct,"js.Object","Object","github.com/gopherjs/gopherjs/js",function(object_){this.$val=this;if(arguments.length===0){this.object=null;return;}this.object=object_;});B=$pkg.Error=$newType(0,$kindStruct,"js.Error","Error","github.com/gopherjs/gopherjs/js",function(Object_){this.$val=this;if(arguments.length===0){this.Object=null;return;}this.Object=Object_;});L=$sliceType($emptyInterface);N=$ptrType(A);Q=$ptrType(B);A.ptr.prototype.Get=function(a){var $ptr,a,b;b=this;return b.object[$externalize(a,$String)];};A.prototype.Get=function(a){return this.$val.Get(a);};A.ptr.prototype.Set=function(a,b){var $ptr,a,b,c;c=this;c.object[$externalize(a,$String)]=$externalize(b,$emptyInterface);};A.prototype.Set=function(a,b){return this.$val.Set(a,b);};A.ptr.prototype.Delete=function(a){var $ptr,a,b;b=this;delete b.object[$externalize(a,$String)];};A.prototype.Delete=function(a){return this.$val.Delete(a);};A.ptr.prototype.Length=function(){var $ptr,a;a=this;return $parseInt(a.object.length);};A.prototype.Length=function(){return this.$val.Length();};A.ptr.prototype.Index=function(a){var $ptr,a,b;b=this;return b.object[a];};A.prototype.Index=function(a){return this.$val.Index(a);};A.ptr.prototype.SetIndex=function(a,b){var $ptr,a,b,c;c=this;c.object[a]=$externalize(b,$emptyInterface);};A.prototype.SetIndex=function(a,b){return this.$val.SetIndex(a,b);};A.ptr.prototype.Call=function(a,b){var $ptr,a,b,c,d;c=this;return(d=c.object,d[$externalize(a,$String)].apply(d,$externalize(b,L)));};A.prototype.Call=function(a,b){return this.$val.Call(a,b);};A.ptr.prototype.Invoke=function(a){var $ptr,a,b;b=this;return b.object.apply(undefined,$externalize(a,L));};A.prototype.Invoke=function(a){return this.$val.Invoke(a);};A.ptr.prototype.New=function(a){var $ptr,a,b;b=this;return new($global.Function.prototype.bind.apply(b.object,[undefined].concat($externalize(a,L))));};A.prototype.New=function(a){return this.$val.New(a);};A.ptr.prototype.Bool=function(){var $ptr,a;a=this;return!!(a.object);};A.prototype.Bool=function(){return this.$val.Bool();};A.ptr.prototype.String=function(){var $ptr,a;a=this;return $internalize(a.object,$String);};A.prototype.String=function(){return this.$val.String();};A.ptr.prototype.Int=function(){var $ptr,a;a=this;return $parseInt(a.object)>>0;};A.prototype.Int=function(){return this.$val.Int();};A.ptr.prototype.Int64=function(){var $ptr,a;a=this;return $internalize(a.object,$Int64);};A.prototype.Int64=function(){return this.$val.Int64();};A.ptr.prototype.Uint64=function(){var $ptr,a;a=this;return $internalize(a.object,$Uint64);};A.prototype.Uint64=function(){return this.$val.Uint64();};A.ptr.prototype.Float=function(){var $ptr,a;a=this;return $parseFloat(a.object);};A.prototype.Float=function(){return this.$val.Float();};A.ptr.prototype.Interface=function(){var $ptr,a;a=this;return $internalize(a.object,$emptyInterface);};A.prototype.Interface=function(){return this.$val.Interface();};A.ptr.prototype.Unsafe=function(){var $ptr,a;a=this;return a.object;};A.prototype.Unsafe=function(){return this.$val.Unsafe();};B.ptr.prototype.Error=function(){var $ptr,a;a=this;return"JavaScript error: "+$internalize(a.Object.message,$String);};B.prototype.Error=function(){return this.$val.Error();};B.ptr.prototype.Stack=function(){var $ptr,a;a=this;return $internalize(a.Object.stack,$String);};B.prototype.Stack=function(){return this.$val.Stack();};K=function(){var $ptr,a;a=new B.ptr(null);};N.methods=[{prop:"Get",name:"Get",pkg:"",typ:$funcType([$String],[N],false)},{prop:"Set",name:"Set",pkg:"",typ:$funcType([$String,$emptyInterface],[],false)},{prop:"Delete",name:"Delete",pkg:"",typ:$funcType([$String],[],false)},{prop:"Length",name:"Length",pkg:"",typ:$funcType([],[$Int],false)},{prop:"Index",name:"Index",pkg:"",typ:$funcType([$Int],[N],false)},{prop:"SetIndex",name:"SetIndex",pkg:"",typ:$funcType([$Int,$emptyInterface],[],false)},{prop:"Call",name:"Call",pkg:"",typ:$funcType([$String,L],[N],true)},{prop:"Invoke",n
|
||
|
$packages["runtime"]=(function(){var $pkg={},$init,A,AB,AC,AT,C,F,I,P;A=$packages["github.com/gopherjs/gopherjs/js"];AB=$pkg.TypeAssertionError=$newType(0,$kindStruct,"runtime.TypeAssertionError","TypeAssertionError","runtime",function(interfaceString_,concreteString_,assertedString_,missingMethod_){this.$val=this;if(arguments.length===0){this.interfaceString="";this.concreteString="";this.assertedString="";this.missingMethod="";return;}this.interfaceString=interfaceString_;this.concreteString=concreteString_;this.assertedString=assertedString_;this.missingMethod=missingMethod_;});AC=$pkg.errorString=$newType(8,$kindString,"runtime.errorString","errorString","runtime",null);AT=$ptrType(AB);C=function(){var $ptr,a,b;a=$packages[$externalize("github.com/gopherjs/gopherjs/js",$String)];$jsObjectPtr=a.Object.ptr;$jsErrorPtr=a.Error.ptr;$throwRuntimeError=(function(b){var $ptr,b;$panic(new AC(b));});b=$ifaceNil;b=new AB.ptr("","","","");};F=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o;b=0;c="";d=0;e=false;f=new($global.Error)().stack.split($externalize("\n",$String))[(a+2>>0)];if(f===undefined){g=0;h="";i=0;j=false;b=g;c=h;d=i;e=j;return[b,c,d,e];}k=f.substring(($parseInt(f.indexOf($externalize("(",$String)))>>0)+1>>0,$parseInt(f.indexOf($externalize(")",$String)))>>0).split($externalize(":",$String));l=0;m=$internalize(k[0],$String);n=$parseInt(k[1])>>0;o=true;b=l;c=m;d=n;e=o;return[b,c,d,e];};$pkg.Caller=F;I=function(){var $ptr;$curGoroutine.exit=$externalize(true,$Bool);$throw(null);};$pkg.Goexit=I;P=function(a,b){var $ptr,a,b;};$pkg.SetFinalizer=P;AB.ptr.prototype.RuntimeError=function(){var $ptr;};AB.prototype.RuntimeError=function(){return this.$val.RuntimeError();};AB.ptr.prototype.Error=function(){var $ptr,a,b;a=this;b=a.interfaceString;if(b===""){b="interface";}if(a.concreteString===""){return"interface conversion: "+b+" is nil, not "+a.assertedString;}if(a.missingMethod===""){return"interface conversion: "+b+" is "+a.concreteString+", not "+a.assertedString;}return"interface conversion: "+a.concreteString+" is not "+a.assertedString+": missing method "+a.missingMethod;};AB.prototype.Error=function(){return this.$val.Error();};AC.prototype.RuntimeError=function(){var $ptr,a;a=this.$val;};$ptrType(AC).prototype.RuntimeError=function(){return new AC(this.$get()).RuntimeError();};AC.prototype.Error=function(){var $ptr,a;a=this.$val;return"runtime error: "+a;};$ptrType(AC).prototype.Error=function(){return new AC(this.$get()).Error();};AT.methods=[{prop:"RuntimeError",name:"RuntimeError",pkg:"",typ:$funcType([],[],false)},{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)}];AC.methods=[{prop:"RuntimeError",name:"RuntimeError",pkg:"",typ:$funcType([],[],false)},{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)}];AB.init([{prop:"interfaceString",name:"interfaceString",pkg:"runtime",typ:$String,tag:""},{prop:"concreteString",name:"concreteString",pkg:"runtime",typ:$String,tag:""},{prop:"assertedString",name:"assertedString",pkg:"runtime",typ:$String,tag:""},{prop:"missingMethod",name:"missingMethod",pkg:"runtime",typ:$String,tag:""}]);$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}C();}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["errors"]=(function(){var $pkg={},$init,B,C,A;B=$pkg.errorString=$newType(0,$kindStruct,"errors.errorString","errorString","errors",function(s_){this.$val=this;if(arguments.length===0){this.s="";return;}this.s=s_;});C=$ptrType(B);A=function(a){var $ptr,a;return new B.ptr(a);};$pkg.New=A;B.ptr.prototype.Error=function(){var $ptr,a;a=this;return a.s;};B.prototype.Error=function(){return this.$val.Error();};C.methods=[{prop:"Error",name:"Error",pkg:"",typ:$funcType([],[$String],false)}];B.init([{prop:"s",name:"s",pkg:"errors",typ:$String,tag:""}]);$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["sync/atomic"]=(function(){var $pkg={},$init,A,H,N,U,Y,AA;A=$packages["github.com/gopherjs/gopherjs/js"];H=function(ad,ae,af){var $ptr,ad,ae,af;if(ad.$get()===ae){ad.$set(af);return true;}return false;};$pkg.CompareAndSwapInt32=H;N=function(ad,ae){var $ptr,ad,ae,af;af=ad.$get()+ae>>0;ad.$set(af);return af;};$pkg.AddInt32=N;U=function(ad){var $ptr,ad;return ad.$get();};$pkg.LoadUint32=U;Y=function(ad,ae){var $ptr,ad,ae;ad.$set(ae);};$pkg.StoreInt32=Y;AA=function(ad,ae){var $ptr,ad,ae;ad.$set(ae);};$pkg.StoreUint32=AA;$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["sync"]=(function(){var $pkg={},$init,B,A,E,N,O,P,Q,AF,AK,AL,AM,AN,AO,AP,AQ,AU,AX,AY,AZ,BA,BD,BI,BJ,BK,BL,G,T,D,F,H,I,J,R,U,V,AC,AI,AJ;B=$packages["runtime"];A=$packages["sync/atomic"];E=$pkg.Pool=$newType(0,$kindStruct,"sync.Pool","Pool","sync",function(local_,localSize_,store_,New_){this.$val=this;if(arguments.length===0){this.local=0;this.localSize=0;this.store=AY.nil;this.New=$throwNilPointerError;return;}this.local=local_;this.localSize=localSize_;this.store=store_;this.New=New_;});N=$pkg.Mutex=$newType(0,$kindStruct,"sync.Mutex","Mutex","sync",function(state_,sema_){this.$val=this;if(arguments.length===0){this.state=0;this.sema=0;return;}this.state=state_;this.sema=sema_;});O=$pkg.Locker=$newType(8,$kindInterface,"sync.Locker","Locker","sync",null);P=$pkg.Once=$newType(0,$kindStruct,"sync.Once","Once","sync",function(m_,done_){this.$val=this;if(arguments.length===0){this.m=new N.ptr(0,0);this.done=0;return;}this.m=m_;this.done=done_;});Q=$pkg.poolLocal=$newType(0,$kindStruct,"sync.poolLocal","poolLocal","sync",function(private$0_,shared_,Mutex_,pad_){this.$val=this;if(arguments.length===0){this.private$0=$ifaceNil;this.shared=AY.nil;this.Mutex=new N.ptr(0,0);this.pad=BL.zero();return;}this.private$0=private$0_;this.shared=shared_;this.Mutex=Mutex_;this.pad=pad_;});AF=$pkg.syncSema=$newType(0,$kindStruct,"sync.syncSema","syncSema","sync",function(lock_,head_,tail_){this.$val=this;if(arguments.length===0){this.lock=0;this.head=0;this.tail=0;return;}this.lock=lock_;this.head=head_;this.tail=tail_;});AK=$pkg.RWMutex=$newType(0,$kindStruct,"sync.RWMutex","RWMutex","sync",function(w_,writerSem_,readerSem_,readerCount_,readerWait_){this.$val=this;if(arguments.length===0){this.w=new N.ptr(0,0);this.writerSem=0;this.readerSem=0;this.readerCount=0;this.readerWait=0;return;}this.w=w_;this.writerSem=writerSem_;this.readerSem=readerSem_;this.readerCount=readerCount_;this.readerWait=readerWait_;});AL=$pkg.rlocker=$newType(0,$kindStruct,"sync.rlocker","rlocker","sync",function(w_,writerSem_,readerSem_,readerCount_,readerWait_){this.$val=this;if(arguments.length===0){this.w=new N.ptr(0,0);this.writerSem=0;this.readerSem=0;this.readerCount=0;this.readerWait=0;return;}this.w=w_;this.writerSem=writerSem_;this.readerSem=readerSem_;this.readerCount=readerCount_;this.readerWait=readerWait_;});AM=$ptrType(E);AN=$sliceType(AM);AO=$ptrType($Uint32);AP=$chanType($Bool,false,false);AQ=$sliceType(AP);AU=$ptrType($Int32);AX=$ptrType(Q);AY=$sliceType($emptyInterface);AZ=$ptrType(AL);BA=$ptrType(AK);BD=$funcType([],[$emptyInterface],false);BI=$ptrType(N);BJ=$funcType([],[],false);BK=$ptrType(P);BL=$arrayType($Uint8,128);D=function(i){var $ptr,i;};E.ptr.prototype.Get=function(){var $ptr,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:i=this;if(i.store.$length===0){$s=1;continue;}$s=2;continue;case 1:if(!(i.New===$throwNilPointerError)){$s=3;continue;}$s=4;continue;case 3:j=i.New();$s=5;case 5:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}$s=6;case 6:return j;case 4:return $ifaceNil;case 2:m=(k=i.store,l=i.store.$length-1>>0,((l<0||l>=k.$length)?$throwRuntimeError("index out of range"):k.$array[k.$offset+l]));i.store=$subslice(i.store,0,(i.store.$length-1>>0));return m;}return;}if($f===undefined){$f={$blk:E.ptr.prototype.Get};}$f.$ptr=$ptr;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.$s=$s;$f.$r=$r;return $f;};E.prototype.Get=function(){return this.$val.Get();};E.ptr.prototype.Put=function(i){var $ptr,i,j;j=this;if($interfaceIsEqual(i,$ifaceNil)){return;}j.store=$append(j.store,i);};E.prototype.Put=function(i){return this.$val.Put(i);};F=function(i){var $ptr,i;};H=function(i){var $ptr,i,j,k,l,m,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:if(i.$get()===0){$s=1;continue;}$s=2;continue;case 1:j=new $Chan($Bool,0);k=i;(G||$throwRuntimeError("assi
|
||
|
$packages["io"]=(function(){var $pkg={},$init,A,B,C,D,H,N,O,R,U,AX,AI,AJ,Y,Z;A=$packages["errors"];B=$packages["sync"];C=$pkg.Reader=$newType(8,$kindInterface,"io.Reader","Reader","io",null);D=$pkg.Writer=$newType(8,$kindInterface,"io.Writer","Writer","io",null);H=$pkg.ReadCloser=$newType(8,$kindInterface,"io.ReadCloser","ReadCloser","io",null);N=$pkg.ReaderFrom=$newType(8,$kindInterface,"io.ReaderFrom","ReaderFrom","io",null);O=$pkg.WriterTo=$newType(8,$kindInterface,"io.WriterTo","WriterTo","io",null);R=$pkg.ByteReader=$newType(8,$kindInterface,"io.ByteReader","ByteReader","io",null);U=$pkg.RuneReader=$newType(8,$kindInterface,"io.RuneReader","RuneReader","io",null);AX=$sliceType($Uint8);Y=function(a,b,c){var $ptr,a,b,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:d=0;e=$ifaceNil;if(b.$length<c){f=0;g=$pkg.ErrShortBuffer;d=f;e=g;return[d,e];}case 1:if(!(d<c&&$interfaceIsEqual(e,$ifaceNil))){$s=2;continue;}h=0;j=a.Read($subslice(b,d));$s=3;case 3:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}i=j;h=i[0];e=i[1];d=d+(h)>>0;$s=1;continue;case 2:if(d>=c){e=$ifaceNil;}else if(d>0&&$interfaceIsEqual(e,$pkg.EOF)){e=$pkg.ErrUnexpectedEOF;}return[d,e];}return;}if($f===undefined){$f={$blk:Y};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$r=$r;return $f;};$pkg.ReadAtLeast=Y;Z=function(a,b){var $ptr,a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=0;d=$ifaceNil;f=Y(a,b,b.$length);$s=1;case 1:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}e=f;c=e[0];d=e[1];$s=2;case 2:return[c,d];}return;}if($f===undefined){$f={$blk:Z};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};$pkg.ReadFull=Z;C.init([{prop:"Read",name:"Read",pkg:"",typ:$funcType([AX],[$Int,$error],false)}]);D.init([{prop:"Write",name:"Write",pkg:"",typ:$funcType([AX],[$Int,$error],false)}]);H.init([{prop:"Close",name:"Close",pkg:"",typ:$funcType([],[$error],false)},{prop:"Read",name:"Read",pkg:"",typ:$funcType([AX],[$Int,$error],false)}]);N.init([{prop:"ReadFrom",name:"ReadFrom",pkg:"",typ:$funcType([C],[$Int64,$error],false)}]);O.init([{prop:"WriteTo",name:"WriteTo",pkg:"",typ:$funcType([D],[$Int64,$error],false)}]);R.init([{prop:"ReadByte",name:"ReadByte",pkg:"",typ:$funcType([],[$Uint8,$error],false)}]);U.init([{prop:"ReadRune",name:"ReadRune",pkg:"",typ:$funcType([],[$Int32,$Int,$error],false)}]);$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$pkg.ErrShortWrite=A.New("short write");$pkg.ErrShortBuffer=A.New("short buffer");$pkg.EOF=A.New("EOF");$pkg.ErrUnexpectedEOF=A.New("unexpected EOF");$pkg.ErrNoProgress=A.New("multiple Read calls return no data or error");AI=A.New("Seek: invalid whence");AJ=A.New("Seek: invalid offset");$pkg.ErrClosedPipe=A.New("io: read/write on closed pipe");}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["math"]=(function(){var $pkg={},$init,A,FH,FI,FJ,FK,FL,B,C,D,E,AQ,EO,N,W,AL,AM,AN,AR,AS,AU,EQ;A=$packages["github.com/gopherjs/gopherjs/js"];FH=$arrayType($Uint32,2);FI=$arrayType($Float32,2);FJ=$arrayType($Float64,1);FK=$structType([{prop:"uint32array",name:"uint32array",pkg:"math",typ:FH,tag:""},{prop:"float32array",name:"float32array",pkg:"math",typ:FI,tag:""},{prop:"float64array",name:"float64array",pkg:"math",typ:FJ,tag:""}]);FL=$arrayType($Float64,70);N=function(ao){var $ptr,ao;return $parseFloat(B.cos(ao));};$pkg.Cos=N;W=function(ao,ap){var $ptr,ao,ap;if(ao===D){return ap>=0;}if(ao===E){return ap<=0;}return false;};$pkg.IsInf=W;AL=function(ao){var $ptr,ao;return $parseFloat(B.sin(ao));};$pkg.Sin=AL;AM=function(ao){var $ptr,ao,ap,aq,ar,as;ap=0;aq=0;ar=AL(ao);as=N(ao);ap=ar;aq=as;return[ap,aq];};$pkg.Sincos=AM;AN=function(ao){var $ptr,ao;return $parseFloat(B.sqrt(ao));};$pkg.Sqrt=AN;AR=function(){var $ptr,ao;ao=new($global.ArrayBuffer)(8);AQ.uint32array=new($global.Uint32Array)(ao);AQ.float32array=new($global.Float32Array)(ao);AQ.float64array=new($global.Float64Array)(ao);};AS=function(ao){var $ptr,ao;AQ.float32array[0]=ao;return AQ.uint32array[0];};$pkg.Float32bits=AS;AU=function(ao){var $ptr,ao,ap,aq;AQ.float64array[0]=ao;return(ap=$shiftLeft64(new $Uint64(0,AQ.uint32array[1]),32),aq=new $Uint64(0,AQ.uint32array[0]),new $Uint64(ap.$high+aq.$high,ap.$low+aq.$low));};$pkg.Float64bits=AU;EQ=function(){var $ptr,ao,ap,aq,ar;EO[0]=1;EO[1]=10;ao=2;while(true){if(!(ao<70)){break;}aq=(ap=ao/2,(ap===ap&&ap!==1/0&&ap!==-1/0)?ap>>0:$throwRuntimeError("integer divide by zero"));((ao<0||ao>=EO.length)?$throwRuntimeError("index out of range"):EO[ao]=((aq<0||aq>=EO.length)?$throwRuntimeError("index out of range"):EO[aq])*(ar=ao-aq>>0,((ar<0||ar>=EO.length)?$throwRuntimeError("index out of range"):EO[ar])));ao=ao+(1)>>0;}};$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}AQ=new FK.ptr(FH.zero(),FI.zero(),FJ.zero());EO=FL.zero();B=$global.Math;C=0;D=1/C;E=-1/C;AR();EQ();}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["unicode"]=(function(){var $pkg={},$init;$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["unicode/utf8"]=(function(){var $pkg={},$init,A,B,C,E,F,G,I,J,K,L,M;A=function(a){var $ptr,a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;b=0;c=0;d=false;e=a.$length;if(e<1){f=65533;g=0;h=true;b=f;c=g;d=h;return[b,c,d];}i=(0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0]);if(i<128){j=(i>>0);k=1;l=false;b=j;c=k;d=l;return[b,c,d];}if(i<192){m=65533;n=1;o=false;b=m;c=n;d=o;return[b,c,d];}if(e<2){p=65533;q=1;r=true;b=p;c=q;d=r;return[b,c,d];}s=(1>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+1]);if(s<128||192<=s){t=65533;u=1;v=false;b=t;c=u;d=v;return[b,c,d];}if(i<224){b=((((i&31)>>>0)>>0)<<6>>0)|(((s&63)>>>0)>>0);if(b<=127){w=65533;x=1;y=false;b=w;c=x;d=y;return[b,c,d];}z=b;aa=2;ab=false;b=z;c=aa;d=ab;return[b,c,d];}if(e<3){ac=65533;ad=1;ae=true;b=ac;c=ad;d=ae;return[b,c,d];}af=(2>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+2]);if(af<128||192<=af){ag=65533;ah=1;ai=false;b=ag;c=ah;d=ai;return[b,c,d];}if(i<240){b=(((((i&15)>>>0)>>0)<<12>>0)|((((s&63)>>>0)>>0)<<6>>0))|(((af&63)>>>0)>>0);if(b<=2047){aj=65533;ak=1;al=false;b=aj;c=ak;d=al;return[b,c,d];}if(55296<=b&&b<=57343){am=65533;an=1;ao=false;b=am;c=an;d=ao;return[b,c,d];}ap=b;aq=3;ar=false;b=ap;c=aq;d=ar;return[b,c,d];}if(e<4){as=65533;at=1;au=true;b=as;c=at;d=au;return[b,c,d];}av=(3>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+3]);if(av<128||192<=av){aw=65533;ax=1;ay=false;b=aw;c=ax;d=ay;return[b,c,d];}if(i<248){b=((((((i&7)>>>0)>>0)<<18>>0)|((((s&63)>>>0)>>0)<<12>>0))|((((af&63)>>>0)>>0)<<6>>0))|(((av&63)>>>0)>>0);if(b<=65535||1114111<b){az=65533;ba=1;bb=false;b=az;c=ba;d=bb;return[b,c,d];}bc=b;bd=4;be=false;b=bc;c=bd;d=be;return[b,c,d];}bf=65533;bg=1;bh=false;b=bf;c=bg;d=bh;return[b,c,d];};B=function(a){var $ptr,a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;b=0;c=0;d=false;e=a.length;if(e<1){f=65533;g=0;h=true;b=f;c=g;d=h;return[b,c,d];}i=a.charCodeAt(0);if(i<128){j=(i>>0);k=1;l=false;b=j;c=k;d=l;return[b,c,d];}if(i<192){m=65533;n=1;o=false;b=m;c=n;d=o;return[b,c,d];}if(e<2){p=65533;q=1;r=true;b=p;c=q;d=r;return[b,c,d];}s=a.charCodeAt(1);if(s<128||192<=s){t=65533;u=1;v=false;b=t;c=u;d=v;return[b,c,d];}if(i<224){b=((((i&31)>>>0)>>0)<<6>>0)|(((s&63)>>>0)>>0);if(b<=127){w=65533;x=1;y=false;b=w;c=x;d=y;return[b,c,d];}z=b;aa=2;ab=false;b=z;c=aa;d=ab;return[b,c,d];}if(e<3){ac=65533;ad=1;ae=true;b=ac;c=ad;d=ae;return[b,c,d];}af=a.charCodeAt(2);if(af<128||192<=af){ag=65533;ah=1;ai=false;b=ag;c=ah;d=ai;return[b,c,d];}if(i<240){b=(((((i&15)>>>0)>>0)<<12>>0)|((((s&63)>>>0)>>0)<<6>>0))|(((af&63)>>>0)>>0);if(b<=2047){aj=65533;ak=1;al=false;b=aj;c=ak;d=al;return[b,c,d];}if(55296<=b&&b<=57343){am=65533;an=1;ao=false;b=am;c=an;d=ao;return[b,c,d];}ap=b;aq=3;ar=false;b=ap;c=aq;d=ar;return[b,c,d];}if(e<4){as=65533;at=1;au=true;b=as;c=at;d=au;return[b,c,d];}av=a.charCodeAt(3);if(av<128||192<=av){aw=65533;ax=1;ay=false;b=aw;c=ax;d=ay;return[b,c,d];}if(i<248){b=((((((i&7)>>>0)>>0)<<18>>0)|((((s&63)>>>0)>>0)<<12>>0))|((((af&63)>>>0)>>0)<<6>>0))|(((av&63)>>>0)>>0);if(b<=65535||1114111<b){az=65533;ba=1;bb=false;b=az;c=ba;d=bb;return[b,c,d];}bc=b;bd=4;be=false;b=bc;c=bd;d=be;return[b,c,d];}bf=65533;bg=1;bh=false;b=bf;c=bg;d=bh;return[b,c,d];};C=function(a){var $ptr,a,b,c;b=A(a);c=b[2];return!c;};$pkg.FullRune=C;E=function(a){var $ptr,a,b,c,d;b=0;c=0;d=A(a);b=d[0];c=d[1];return[b,c];};$pkg.DecodeRune=E;F=function(a){var $ptr,a,b,c,d;b=0;c=0;d=B(a);b=d[0];c=d[1];return[b,c];};$pkg.DecodeRuneInString=F;G=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o;b=0;c=0;d=a.$length;if(d===0){e=65533;f=0;b=e;c=f;return[b,c];}g=d-1>>0;b=(((g<0||g>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+g])>>0);if(b<128){h=b;i=1;b=h;c=i;return[b,c];}j=d-4>>0;if(j<0){j=0;}g=g-(1)>>0;while(true){if(!(g>=j)){break;}if(M(((g<0||g>=a.$length)?$throwRuntimeError("index out of
|
||
|
$packages["bytes"]=(function(){var $pkg={},$init,A,B,D,C,H,I,BK,BL,BM,BN,E,J,K;A=$packages["errors"];B=$packages["io"];D=$packages["unicode"];C=$packages["unicode/utf8"];H=$pkg.Buffer=$newType(0,$kindStruct,"bytes.Buffer","Buffer","bytes",function(buf_,off_,runeBytes_,bootstrap_,lastRead_){this.$val=this;if(arguments.length===0){this.buf=BL.nil;this.off=0;this.runeBytes=BM.zero();this.bootstrap=BN.zero();this.lastRead=0;return;}this.buf=buf_;this.off=off_;this.runeBytes=runeBytes_;this.bootstrap=bootstrap_;this.lastRead=lastRead_;});I=$pkg.readOp=$newType(4,$kindInt,"bytes.readOp","readOp","bytes",null);BK=$ptrType(H);BL=$sliceType($Uint8);BM=$arrayType($Uint8,4);BN=$arrayType($Uint8,64);E=function(d,e){var $ptr,d,e,f,g,h,i;f=d;g=0;while(true){if(!(g<f.$length)){break;}h=g;i=((g<0||g>=f.$length)?$throwRuntimeError("index out of range"):f.$array[f.$offset+g]);if(i===e){return h;}g++;}return-1;};$pkg.IndexByte=E;H.ptr.prototype.Bytes=function(){var $ptr,d;d=this;return $subslice(d.buf,d.off);};H.prototype.Bytes=function(){return this.$val.Bytes();};H.ptr.prototype.String=function(){var $ptr,d;d=this;if(d===BK.nil){return"<nil>";}return $bytesToString($subslice(d.buf,d.off));};H.prototype.String=function(){return this.$val.String();};H.ptr.prototype.Len=function(){var $ptr,d;d=this;return d.buf.$length-d.off>>0;};H.prototype.Len=function(){return this.$val.Len();};H.ptr.prototype.Cap=function(){var $ptr,d;d=this;return d.buf.$capacity;};H.prototype.Cap=function(){return this.$val.Cap();};H.ptr.prototype.Truncate=function(d){var $ptr,d,e;e=this;e.lastRead=0;if(d<0||d>e.Len()){$panic(new $String("bytes.Buffer: truncation out of range"));}else if(d===0){e.off=0;}e.buf=$subslice(e.buf,0,(e.off+d>>0));};H.prototype.Truncate=function(d){return this.$val.Truncate(d);};H.ptr.prototype.Reset=function(){var $ptr,d;d=this;d.Truncate(0);};H.prototype.Reset=function(){return this.$val.Reset();};H.ptr.prototype.grow=function(d){var $ptr,d,e,f,g,h;e=this;f=e.Len();if((f===0)&&!((e.off===0))){e.Truncate(0);}if((e.buf.$length+d>>0)>e.buf.$capacity){g=BL.nil;if(e.buf===BL.nil&&d<=64){g=$subslice(new BL(e.bootstrap),0);}else if((f+d>>0)<=(h=e.buf.$capacity/2,(h===h&&h!==1/0&&h!==-1/0)?h>>0:$throwRuntimeError("integer divide by zero"))){$copySlice(e.buf,$subslice(e.buf,e.off));g=$subslice(e.buf,0,f);}else{g=J(($imul(2,e.buf.$capacity))+d>>0);$copySlice(g,$subslice(e.buf,e.off));}e.buf=g;e.off=0;}e.buf=$subslice(e.buf,0,((e.off+f>>0)+d>>0));return e.off+f>>0;};H.prototype.grow=function(d){return this.$val.grow(d);};H.ptr.prototype.Grow=function(d){var $ptr,d,e,f;e=this;if(d<0){$panic(new $String("bytes.Buffer.Grow: negative count"));}f=e.grow(d);e.buf=$subslice(e.buf,0,f);};H.prototype.Grow=function(d){return this.$val.Grow(d);};H.ptr.prototype.Write=function(d){var $ptr,d,e,f,g,h,i,j;e=0;f=$ifaceNil;g=this;g.lastRead=0;h=g.grow(d.$length);i=$copySlice($subslice(g.buf,h),d);j=$ifaceNil;e=i;f=j;return[e,f];};H.prototype.Write=function(d){return this.$val.Write(d);};H.ptr.prototype.WriteString=function(d){var $ptr,d,e,f,g,h,i,j;e=0;f=$ifaceNil;g=this;g.lastRead=0;h=g.grow(d.length);i=$copyString($subslice(g.buf,h),d);j=$ifaceNil;e=i;f=j;return[e,f];};H.prototype.WriteString=function(d){return this.$val.WriteString(d);};H.ptr.prototype.ReadFrom=function(d){var $ptr,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:e=new $Int64(0,0);f=$ifaceNil;g=this;g.lastRead=0;if(g.off>=g.buf.$length){g.Truncate(0);}case 1:h=g.buf.$capacity-g.buf.$length>>0;if(h<512){i=g.buf;if((g.off+h>>0)<512){i=J(($imul(2,g.buf.$capacity))+512>>0);}$copySlice(i,$subslice(g.buf,g.off));g.buf=$subslice(i,0,(g.buf.$length-g.off>>0));g.off=0;}k=d.Read($subslice(g.buf,g.buf.$length,g.buf.$capacity));$s=3;case 3:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}j=k;l=j[0];m=j[1];g.buf=$subslice(g.buf,0,(g.buf.$length+l>>0));e=(n=new $I
|
||
|
$packages["syscall"]=(function(){var $pkg={},$init,A,E,B,C,D,EW,EX,KP,KS,KY,LG,MN,MP,MW,MZ,NQ,NR,NZ,OI,OJ,OK,ON,OW,OX,OY,OZ,PD,PE,F,G,N,O,P,AP,AQ,AR,AS,BY,DZ,EY,EZ,FA,GC,H,I,J,K,L,Q,R,S,V,AU,AW,BZ,CW,CX,CZ,DE,DU,EE,EF,FB,FD,FE,GW,HK,HO,HP,HR,HS,HV,HX,HY,HZ,IS,JD,JE,JF,JK,KI,KJ,KK;A=$packages["bytes"];E=$packages["errors"];B=$packages["github.com/gopherjs/gopherjs/js"];C=$packages["runtime"];D=$packages["sync"];EW=$pkg.mmapper=$newType(0,$kindStruct,"syscall.mmapper","mmapper","syscall",function(Mutex_,active_,mmap_,munmap_){this.$val=this;if(arguments.length===0){this.Mutex=new D.Mutex.ptr(0,0);this.active=false;this.mmap=$throwNilPointerError;this.munmap=$throwNilPointerError;return;}this.Mutex=Mutex_;this.active=active_;this.mmap=mmap_;this.munmap=munmap_;});EX=$pkg.Errno=$newType(4,$kindUintptr,"syscall.Errno","Errno","syscall",null);KP=$pkg._C_int=$newType(4,$kindInt32,"syscall._C_int","_C_int","syscall",null);KS=$pkg.Timespec=$newType(0,$kindStruct,"syscall.Timespec","Timespec","syscall",function(Sec_,Nsec_){this.$val=this;if(arguments.length===0){this.Sec=new $Int64(0,0);this.Nsec=new $Int64(0,0);return;}this.Sec=Sec_;this.Nsec=Nsec_;});KY=$pkg.Stat_t=$newType(0,$kindStruct,"syscall.Stat_t","Stat_t","syscall",function(Dev_,Mode_,Nlink_,Ino_,Uid_,Gid_,Rdev_,Pad_cgo_0_,Atimespec_,Mtimespec_,Ctimespec_,Birthtimespec_,Size_,Blocks_,Blksize_,Flags_,Gen_,Lspare_,Qspare_){this.$val=this;if(arguments.length===0){this.Dev=0;this.Mode=0;this.Nlink=0;this.Ino=new $Uint64(0,0);this.Uid=0;this.Gid=0;this.Rdev=0;this.Pad_cgo_0=MZ.zero();this.Atimespec=new KS.ptr(new $Int64(0,0),new $Int64(0,0));this.Mtimespec=new KS.ptr(new $Int64(0,0),new $Int64(0,0));this.Ctimespec=new KS.ptr(new $Int64(0,0),new $Int64(0,0));this.Birthtimespec=new KS.ptr(new $Int64(0,0),new $Int64(0,0));this.Size=new $Int64(0,0);this.Blocks=new $Int64(0,0);this.Blksize=0;this.Flags=0;this.Gen=0;this.Lspare=0;this.Qspare=PE.zero();return;}this.Dev=Dev_;this.Mode=Mode_;this.Nlink=Nlink_;this.Ino=Ino_;this.Uid=Uid_;this.Gid=Gid_;this.Rdev=Rdev_;this.Pad_cgo_0=Pad_cgo_0_;this.Atimespec=Atimespec_;this.Mtimespec=Mtimespec_;this.Ctimespec=Ctimespec_;this.Birthtimespec=Birthtimespec_;this.Size=Size_;this.Blocks=Blocks_;this.Blksize=Blksize_;this.Flags=Flags_;this.Gen=Gen_;this.Lspare=Lspare_;this.Qspare=Qspare_;});LG=$pkg.Dirent=$newType(0,$kindStruct,"syscall.Dirent","Dirent","syscall",function(Ino_,Seekoff_,Reclen_,Namlen_,Type_,Name_,Pad_cgo_0_){this.$val=this;if(arguments.length===0){this.Ino=new $Uint64(0,0);this.Seekoff=new $Uint64(0,0);this.Reclen=0;this.Namlen=0;this.Type=0;this.Name=OJ.zero();this.Pad_cgo_0=OK.zero();return;}this.Ino=Ino_;this.Seekoff=Seekoff_;this.Reclen=Reclen_;this.Namlen=Namlen_;this.Type=Type_;this.Name=Name_;this.Pad_cgo_0=Pad_cgo_0_;});MN=$sliceType($Uint8);MP=$sliceType($String);MW=$ptrType($Uint8);MZ=$arrayType($Uint8,4);NQ=$sliceType(KP);NR=$ptrType($Uintptr);NZ=$arrayType($Uint8,32);OI=$arrayType(KP,14);OJ=$arrayType($Int8,1024);OK=$arrayType($Uint8,3);ON=$structType([{prop:"addr",name:"addr",pkg:"syscall",typ:$Uintptr,tag:""},{prop:"len",name:"len",pkg:"syscall",typ:$Int,tag:""},{prop:"cap",name:"cap",pkg:"syscall",typ:$Int,tag:""}]);OW=$ptrType(EW);OX=$mapType(MW,MN);OY=$funcType([$Uintptr,$Uintptr,$Int,$Int,$Int,$Int64],[$Uintptr,$error],false);OZ=$funcType([$Uintptr,$Uintptr],[$error],false);PD=$ptrType(KS);PE=$arrayType($Int64,2);H=function(){var $ptr;$flushConsole=(function(){var $ptr;if(!((G.$length===0))){$global.console.log($externalize($bytesToString(G),$String));G=MN.nil;}});};I=function(){var $ptr;if(!F){$global.console.error($externalize("warning: system calls not available, see https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md",$String));}F=true;};J=function(i){var $ptr,i,j,k;j=$global.goPrintToConsole;if(!(j===undefined)){j(i);return;}G=$appendSlice(G,i);while(true){k=A.IndexByte(G,10);if(k===-1){break;}$global.console.log($externalize($bytesToString($subslice(G,0,k)),$String));G=$subslice(G,(k+1>>0));}};K=function(i){var $ptr,i;};L=function(){var $ptr,i,j,k,l,m,n;i=$global.process;if(i===undefined){
|
||
|
$packages["github.com/gopherjs/gopherjs/nosync"]=(function(){var $pkg={},$init,A,D,F,I,J;A=$pkg.Mutex=$newType(0,$kindStruct,"nosync.Mutex","Mutex","github.com/gopherjs/gopherjs/nosync",function(locked_){this.$val=this;if(arguments.length===0){this.locked=false;return;}this.locked=locked_;});D=$pkg.Once=$newType(0,$kindStruct,"nosync.Once","Once","github.com/gopherjs/gopherjs/nosync",function(doing_,done_){this.$val=this;if(arguments.length===0){this.doing=false;this.done=false;return;}this.doing=doing_;this.done=done_;});F=$ptrType(A);I=$funcType([],[],false);J=$ptrType(D);A.ptr.prototype.Lock=function(){var $ptr,a;a=this;if(a.locked){$panic(new $String("nosync: mutex is already locked"));}a.locked=true;};A.prototype.Lock=function(){return this.$val.Lock();};A.ptr.prototype.Unlock=function(){var $ptr,a;a=this;if(!a.locked){$panic(new $String("nosync: unlock of unlocked mutex"));}a.locked=false;};A.prototype.Unlock=function(){return this.$val.Unlock();};D.ptr.prototype.Do=function(a){var $ptr,a,b,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);b=[b];b[0]=this;if(b[0].done){return;}if(b[0].doing){$panic(new $String("nosync: Do called within f"));}b[0].doing=true;$deferred.push([(function(b){return function(){var $ptr;b[0].doing=false;b[0].done=true;};})(b),[]]);$r=a();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;case-1:}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:D.ptr.prototype.Do};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};D.prototype.Do=function(a){return this.$val.Do(a);};F.methods=[{prop:"Lock",name:"Lock",pkg:"",typ:$funcType([],[],false)},{prop:"Unlock",name:"Unlock",pkg:"",typ:$funcType([],[],false)}];J.methods=[{prop:"Do",name:"Do",pkg:"",typ:$funcType([I],[],false)}];A.init([{prop:"locked",name:"locked",pkg:"github.com/gopherjs/gopherjs/nosync",typ:$Bool,tag:""}]);D.init([{prop:"doing",name:"doing",pkg:"github.com/gopherjs/gopherjs/nosync",typ:$Bool,tag:""},{prop:"done",name:"done",pkg:"github.com/gopherjs/gopherjs/nosync",typ:$Bool,tag:""}]);$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["strings"]=(function(){var $pkg={},$init,C,B,D,E,A,CA,F,G,I,BW;C=$packages["errors"];B=$packages["github.com/gopherjs/gopherjs/js"];D=$packages["io"];E=$packages["unicode"];A=$packages["unicode/utf8"];CA=$sliceType($Uint8);F=function(e,f){var $ptr,e,f;return $parseInt(e.indexOf($global.String.fromCharCode(f)))>>0;};$pkg.IndexByte=F;G=function(e,f){var $ptr,e,f;return $parseInt(e.indexOf(f))>>0;};$pkg.Index=G;I=function(e,f){var $ptr,e,f,g,h;g=0;if(f.length===0){return A.RuneCountInString(e)+1>>0;}else if(f.length>e.length){return 0;}else if(f.length===e.length){if(f===e){return 1;}return 0;}while(true){h=G(e,f);if(h===-1){break;}g=g+(1)>>0;e=e.substring((h+f.length>>0));}return g;};$pkg.Count=I;BW=function(e,f,g,h){var $ptr,e,f,g,h,i,j,k,l,m,n,o,p;if(f===g||(h===0)){return e;}i=I(e,f);if(i===0){return e;}else if(h<0||i<h){h=i;}j=$makeSlice(CA,(e.length+($imul(h,((g.length-f.length>>0))))>>0));k=0;l=0;m=0;while(true){if(!(m<h)){break;}n=l;if(f.length===0){if(m>0){o=A.DecodeRuneInString(e.substring(l));p=o[1];n=n+(p)>>0;}}else{n=n+(G(e.substring(l),f))>>0;}k=k+($copyString($subslice(j,k),e.substring(l,n)))>>0;k=k+($copyString($subslice(j,k),g))>>0;l=n+f.length>>0;m=m+(1)>>0;}k=k+($copyString($subslice(j,k),e.substring(l)))>>0;return $bytesToString($subslice(j,0,k));};$pkg.Replace=BW;$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=C.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=A.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["time"]=(function(){var $pkg={},$init,D,C,F,A,B,E,AF,BL,BM,BO,BS,CF,CG,CH,CY,CZ,DA,DB,DD,DE,DF,DG,DH,DL,DP,DT,R,U,V,W,X,AB,AE,AR,BN,BP,BX,CI,CW,CJ,CX,CK,CM,CQ,g,h,G,I,J,K,S,T,Y,Z,AA,AC,AD,AG,AH,AI,AJ,AK,AL,AN,AO,AP,AQ,AS,BQ,BR,BT,BU,BW,BZ,CA,CB,CC,CD,CE,CL;D=$packages["errors"];C=$packages["github.com/gopherjs/gopherjs/js"];F=$packages["github.com/gopherjs/gopherjs/nosync"];A=$packages["runtime"];B=$packages["strings"];E=$packages["syscall"];AF=$pkg.ParseError=$newType(0,$kindStruct,"time.ParseError","ParseError","time",function(Layout_,Value_,LayoutElem_,ValueElem_,Message_){this.$val=this;if(arguments.length===0){this.Layout="";this.Value="";this.LayoutElem="";this.ValueElem="";this.Message="";return;}this.Layout=Layout_;this.Value=Value_;this.LayoutElem=LayoutElem_;this.ValueElem=ValueElem_;this.Message=Message_;});BL=$pkg.Time=$newType(0,$kindStruct,"time.Time","Time","time",function(sec_,nsec_,loc_){this.$val=this;if(arguments.length===0){this.sec=new $Int64(0,0);this.nsec=0;this.loc=DH.nil;return;}this.sec=sec_;this.nsec=nsec_;this.loc=loc_;});BM=$pkg.Month=$newType(4,$kindInt,"time.Month","Month","time",null);BO=$pkg.Weekday=$newType(4,$kindInt,"time.Weekday","Weekday","time",null);BS=$pkg.Duration=$newType(8,$kindInt64,"time.Duration","Duration","time",null);CF=$pkg.Location=$newType(0,$kindStruct,"time.Location","Location","time",function(name_,zone_,tx_,cacheStart_,cacheEnd_,cacheZone_){this.$val=this;if(arguments.length===0){this.name="";this.zone=CY.nil;this.tx=CZ.nil;this.cacheStart=new $Int64(0,0);this.cacheEnd=new $Int64(0,0);this.cacheZone=DA.nil;return;}this.name=name_;this.zone=zone_;this.tx=tx_;this.cacheStart=cacheStart_;this.cacheEnd=cacheEnd_;this.cacheZone=cacheZone_;});CG=$pkg.zone=$newType(0,$kindStruct,"time.zone","zone","time",function(name_,offset_,isDST_){this.$val=this;if(arguments.length===0){this.name="";this.offset=0;this.isDST=false;return;}this.name=name_;this.offset=offset_;this.isDST=isDST_;});CH=$pkg.zoneTrans=$newType(0,$kindStruct,"time.zoneTrans","zoneTrans","time",function(when_,index_,isstd_,isutc_){this.$val=this;if(arguments.length===0){this.when=new $Int64(0,0);this.index=0;this.isstd=false;this.isutc=false;return;}this.when=when_;this.index=index_;this.isstd=isstd_;this.isutc=isutc_;});CY=$sliceType(CG);CZ=$sliceType(CH);DA=$ptrType(CG);DB=$sliceType($String);DD=$arrayType($Uint8,20);DE=$sliceType($Uint8);DF=$arrayType($Uint8,9);DG=$arrayType($Uint8,64);DH=$ptrType(CF);DL=$arrayType($Uint8,32);DP=$ptrType(AF);DT=$ptrType(BL);G=function(){var $ptr;CA(new $Int64(0,0),new $Int64(0,0));};I=function(){var $ptr,i,j,k,l;i=new($global.Date)();j=$internalize(i,$String);k=B.IndexByte(j,40);l=B.IndexByte(j,41);if((k===-1)||(l===-1)){CJ.name="UTC";return;}CJ.name=j.substring((k+1>>0),l);CJ.zone=new CY([new CG.ptr(CJ.name,$imul(($parseInt(i.getTimezoneOffset())>>0),-60),false)]);};J=function(){var $ptr;return $mul64($internalize(new($global.Date)().getTime(),$Int64),new $Int64(0,1000000));};K=function(){var $ptr,i,j,k,l,m,n;i=new $Int64(0,0);j=0;k=J();l=$div64(k,new $Int64(0,1000000000),false);m=((n=$div64(k,new $Int64(0,1000000000),true),n.$low+((n.$high>>31)*4294967296))>>0);i=l;j=m;return[i,j];};S=function(i){var $ptr,i,j;if(i.length===0){return false;}j=i.charCodeAt(0);return 97<=j&&j<=122;};T=function(i){var $ptr,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,cv,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;j="";k=0;l="";m=0;while(true){if(!(m<i.length)){break;}n=(i.charCodeAt(m)>>0);o=n;if(o===74){if(i.length>=(m+3>>0)&&i.substring(m,(m+3>>0))==="Jan"){if(i.length>=(m+7>>0)&&i.substring(m,(m+7>>0))==="January"){p=i.substring(0,m);q=257;r=i.substring((m+7>>0));j=p;k=q;l=r;return[j,k,l];}if(!S(i.substring((m+3>>0)))){s=i.substring(0,m);t=258;u=i.substring((m+3>>0));j=s;k=t;l=u;return[j,k,l];}}}else if(o===77){if(i.length>=(m+3>>0)){if(i.substring(m,(m+3>>0))==="Mon"){if(i.length>=(m+6>>0)&&i.substring(m,(m+6>>0))=
|
||
|
$packages["os"]=(function(){var $pkg={},$init,E,A,B,F,H,G,C,D,Z,AA,AS,BI,BJ,BL,CW,CX,CZ,DB,DC,DD,DF,DG,DH,DI,DP,DU,DV,DW,DX,EB,ED,EE,EF,AQ,AX,BX,CT,I,J,K,AB,AD,AG,AZ,BA,BC,BK,BM,BP,BS,BZ,CA,CF,CL,CN,CO,CU;E=$packages["errors"];A=$packages["github.com/gopherjs/gopherjs/js"];B=$packages["io"];F=$packages["runtime"];H=$packages["sync"];G=$packages["sync/atomic"];C=$packages["syscall"];D=$packages["time"];Z=$pkg.PathError=$newType(0,$kindStruct,"os.PathError","PathError","os",function(Op_,Path_,Err_){this.$val=this;if(arguments.length===0){this.Op="";this.Path="";this.Err=$ifaceNil;return;}this.Op=Op_;this.Path=Path_;this.Err=Err_;});AA=$pkg.SyscallError=$newType(0,$kindStruct,"os.SyscallError","SyscallError","os",function(Syscall_,Err_){this.$val=this;if(arguments.length===0){this.Syscall="";this.Err=$ifaceNil;return;}this.Syscall=Syscall_;this.Err=Err_;});AS=$pkg.LinkError=$newType(0,$kindStruct,"os.LinkError","LinkError","os",function(Op_,Old_,New_,Err_){this.$val=this;if(arguments.length===0){this.Op="";this.Old="";this.New="";this.Err=$ifaceNil;return;}this.Op=Op_;this.Old=Old_;this.New=New_;this.Err=Err_;});BI=$pkg.File=$newType(0,$kindStruct,"os.File","File","os",function(file_){this.$val=this;if(arguments.length===0){this.file=DU.nil;return;}this.file=file_;});BJ=$pkg.file=$newType(0,$kindStruct,"os.file","file","os",function(fd_,name_,dirinfo_,nepipe_){this.$val=this;if(arguments.length===0){this.fd=0;this.name="";this.dirinfo=DC.nil;this.nepipe=0;return;}this.fd=fd_;this.name=name_;this.dirinfo=dirinfo_;this.nepipe=nepipe_;});BL=$pkg.dirInfo=$newType(0,$kindStruct,"os.dirInfo","dirInfo","os",function(buf_,nbuf_,bufp_){this.$val=this;if(arguments.length===0){this.buf=DD.nil;this.nbuf=0;this.bufp=0;return;}this.buf=buf_;this.nbuf=nbuf_;this.bufp=bufp_;});CW=$pkg.FileInfo=$newType(8,$kindInterface,"os.FileInfo","FileInfo","os",null);CX=$pkg.FileMode=$newType(4,$kindUint32,"os.FileMode","FileMode","os",null);CZ=$pkg.fileStat=$newType(0,$kindStruct,"os.fileStat","fileStat","os",function(name_,size_,mode_,modTime_,sys_){this.$val=this;if(arguments.length===0){this.name="";this.size=new $Int64(0,0);this.mode=0;this.modTime=new D.Time.ptr(new $Int64(0,0),0,EB.nil);this.sys=$ifaceNil;return;}this.name=name_;this.size=size_;this.mode=mode_;this.modTime=modTime_;this.sys=sys_;});DB=$sliceType($String);DC=$ptrType(BL);DD=$sliceType($Uint8);DF=$sliceType(CW);DG=$ptrType(BI);DH=$ptrType(Z);DI=$ptrType(AS);DP=$arrayType($Uint8,4);DU=$ptrType(BJ);DV=$funcType([DU],[$error],false);DW=$ptrType($Int32);DX=$arrayType($Int64,2);EB=$ptrType(D.Location);ED=$arrayType($Uint8,32);EE=$ptrType(CZ);EF=$ptrType(AA);I=function(){var $ptr;return $pkg.Args;};J=function(){var $ptr,c,d,e;c=$global.process;if(!(c===undefined)){d=c.argv;$pkg.Args=$makeSlice(DB,($parseInt(d.length)-1>>0));e=0;while(true){if(!(e<($parseInt(d.length)-1>>0))){break;}((e<0||e>=$pkg.Args.$length)?$throwRuntimeError("index out of range"):$pkg.Args.$array[$pkg.Args.$offset+e]=$internalize(d[(e+1>>0)],$String));e=e+(1)>>0;}}if($pkg.Args.$length===0){$pkg.Args=new DB(["?"]);}};K=function(){var $ptr;};BI.ptr.prototype.readdirnames=function(c){var $ptr,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;d=DB.nil;e=$ifaceNil;f=this;if(f.file.dirinfo===DC.nil){f.file.dirinfo=new BL.ptr(DD.nil,0,0);f.file.dirinfo.buf=$makeSlice(DD,4096);}g=f.file.dirinfo;h=c;if(h<=0){h=100;c=-1;}d=$makeSlice(DB,0,h);while(true){if(!(!((c===0)))){break;}if(g.bufp>=g.nbuf){g.bufp=0;i=$ifaceNil;k=C.ReadDirent(f.file.fd,g.buf);j=AZ(k[0],k[1]);g.nbuf=j[0];i=j[1];if(!($interfaceIsEqual(i,$ifaceNil))){l=d;m=AB("readdirent",i);d=l;e=m;return[d,e];}if(g.nbuf<=0){break;}}n=0;o=0;p=n;q=o;r=C.ParseDirent($subslice(g.buf,g.bufp,g.nbuf),c,d);p=r[0];q=r[1];d=r[2];g.bufp=g.bufp+(p)>>0;c=c-(q)>>0;}if(c>=0&&(d.$length===0)){s=d;t=B.EOF;d=s;e=t;return[d,e];}u=d;v=$ifaceNil;d=u;e=v;return[d,e];};BI.prototype.readdirnames=function(c){return this.$val.readdirnames(c);};BI.ptr.prototype.Readdir=function(c){var $ptr,c,d,e,f,g,h,i,j,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;c=
|
||
|
$packages["strconv"]=(function(){var $pkg={},$init,B,A,C,Y,AC,AH,AO,AX,CK,CL,CM,CN,CP,CQ,CR,CS,CT,CU,CV,CW,CX,G,AD,AI,AJ,AK,AP,CF,AQ,CG,BD,BE,BF,BG,BM,Z,AA,AB,AE,AF,AG,AL,AM,AN,AS,AT,AU,AV,AW,AY,AZ,BA,BB,BC,BI,BJ,BN,BO,BP,BR,BT,BU,BV,BW,BX,BY,BZ,CA,CB,CC,CD,CE;B=$packages["errors"];A=$packages["math"];C=$packages["unicode/utf8"];Y=$pkg.decimal=$newType(0,$kindStruct,"strconv.decimal","decimal","strconv",function(d_,nd_,dp_,neg_,trunc_){this.$val=this;if(arguments.length===0){this.d=CN.zero();this.nd=0;this.dp=0;this.neg=false;this.trunc=false;return;}this.d=d_;this.nd=nd_;this.dp=dp_;this.neg=neg_;this.trunc=trunc_;});AC=$pkg.leftCheat=$newType(0,$kindStruct,"strconv.leftCheat","leftCheat","strconv",function(delta_,cutoff_){this.$val=this;if(arguments.length===0){this.delta=0;this.cutoff="";return;}this.delta=delta_;this.cutoff=cutoff_;});AH=$pkg.extFloat=$newType(0,$kindStruct,"strconv.extFloat","extFloat","strconv",function(mant_,exp_,neg_){this.$val=this;if(arguments.length===0){this.mant=new $Uint64(0,0);this.exp=0;this.neg=false;return;}this.mant=mant_;this.exp=exp_;this.neg=neg_;});AO=$pkg.floatInfo=$newType(0,$kindStruct,"strconv.floatInfo","floatInfo","strconv",function(mantbits_,expbits_,bias_){this.$val=this;if(arguments.length===0){this.mantbits=0;this.expbits=0;this.bias=0;return;}this.mantbits=mantbits_;this.expbits=expbits_;this.bias=bias_;});AX=$pkg.decimalSlice=$newType(0,$kindStruct,"strconv.decimalSlice","decimalSlice","strconv",function(d_,nd_,dp_,neg_){this.$val=this;if(arguments.length===0){this.d=CP.nil;this.nd=0;this.dp=0;this.neg=false;return;}this.d=d_;this.nd=nd_;this.dp=dp_;this.neg=neg_;});CK=$sliceType(AC);CL=$sliceType($Uint16);CM=$sliceType($Uint32);CN=$arrayType($Uint8,800);CP=$sliceType($Uint8);CQ=$arrayType($Uint8,24);CR=$arrayType($Uint8,32);CS=$ptrType(AO);CT=$arrayType($Uint8,65);CU=$arrayType($Uint8,4);CV=$ptrType(Y);CW=$ptrType(AX);CX=$ptrType(AH);Y.ptr.prototype.String=function(){var $ptr,a,b,c,d;a=this;b=10+a.nd>>0;if(a.dp>0){b=b+(a.dp)>>0;}if(a.dp<0){b=b+(-a.dp)>>0;}c=$makeSlice(CP,b);d=0;if(a.nd===0){return"0";}else if(a.dp<=0){((d<0||d>=c.$length)?$throwRuntimeError("index out of range"):c.$array[c.$offset+d]=48);d=d+(1)>>0;((d<0||d>=c.$length)?$throwRuntimeError("index out of range"):c.$array[c.$offset+d]=46);d=d+(1)>>0;d=d+(Z($subslice(c,d,(d+-a.dp>>0))))>>0;d=d+($copySlice($subslice(c,d),$subslice(new CP(a.d),0,a.nd)))>>0;}else if(a.dp<a.nd){d=d+($copySlice($subslice(c,d),$subslice(new CP(a.d),0,a.dp)))>>0;((d<0||d>=c.$length)?$throwRuntimeError("index out of range"):c.$array[c.$offset+d]=46);d=d+(1)>>0;d=d+($copySlice($subslice(c,d),$subslice(new CP(a.d),a.dp,a.nd)))>>0;}else{d=d+($copySlice($subslice(c,d),$subslice(new CP(a.d),0,a.nd)))>>0;d=d+(Z($subslice(c,d,((d+a.dp>>0)-a.nd>>0))))>>0;}return $bytesToString($subslice(c,0,d));};Y.prototype.String=function(){return this.$val.String();};Z=function(a){var $ptr,a,b,c,d;b=a;c=0;while(true){if(!(c<b.$length)){break;}d=c;((d<0||d>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+d]=48);c++;}return a.$length;};AA=function(a){var $ptr,a,b,c;while(true){if(!(a.nd>0&&((b=a.d,c=a.nd-1>>0,((c<0||c>=b.length)?$throwRuntimeError("index out of range"):b[c]))===48))){break;}a.nd=a.nd-(1)>>0;}if(a.nd===0){a.dp=0;}};Y.ptr.prototype.Assign=function(a){var $ptr,a,b,c,d,e,f,g,h;b=this;c=CQ.zero();d=0;while(true){if(!((a.$high>0||(a.$high===0&&a.$low>0)))){break;}e=$div64(a,new $Uint64(0,10),false);a=(f=$mul64(new $Uint64(0,10),e),new $Uint64(a.$high-f.$high,a.$low-f.$low));((d<0||d>=c.length)?$throwRuntimeError("index out of range"):c[d]=(new $Uint64(a.$high+0,a.$low+48).$low<<24>>>24));d=d+(1)>>0;a=e;}b.nd=0;d=d-(1)>>0;while(true){if(!(d>=0)){break;}(g=b.d,h=b.nd,((h<0||h>=g.length)?$throwRuntimeError("index out of range"):g[h]=((d<0||d>=c.length)?$throwRuntimeError("index out of range"):c[d])));b.nd=b.nd+(1)>>0;d=d-(1)>>0;}b.dp=b.nd;AA(b);};Y.prototype.Assign=function(a){return this.$val.Assign(a);};AB=function(a,b){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;c=0;d=0;e=0;while(true){if(!(((f=b,f<32?(e>>>f):0)>>>0)=
|
||
|
$packages["reflect"]=(function(){var $pkg={},$init,A,C,F,D,B,E,AK,BM,BN,BO,BP,BQ,BR,BS,BT,BU,BV,BW,BX,BY,BZ,CA,CB,CC,CD,CF,CG,CH,DI,DJ,DM,DO,FW,GC,GI,GJ,GK,GL,GM,GN,GO,GP,GQ,GR,GS,GT,GU,GV,GW,GX,GY,GZ,HA,HD,HE,HF,HG,HH,HI,HJ,HO,HQ,HT,HU,HV,HW,HX,G,L,AW,AX,BB,CE,DV,H,I,J,K,M,N,O,P,Q,R,S,X,Y,Z,AA,AC,AG,AH,AI,AJ,AL,AM,AN,AO,AP,AR,AS,AT,AU,AV,AY,AZ,BA,BC,BD,CJ,CL,CM,CN,DA,DF,DW,EP,ER,ES,ET,EU,EV,EW,EX,EY,EZ,FA,FB,FC,FD,FE,FF,FG,FH,FI,FJ,FK,FL,FM;A=$packages["errors"];C=$packages["github.com/gopherjs/gopherjs/js"];F=$packages["math"];D=$packages["runtime"];B=$packages["strconv"];E=$packages["sync"];AK=$pkg.mapIter=$newType(0,$kindStruct,"reflect.mapIter","mapIter","reflect",function(t_,m_,keys_,i_){this.$val=this;if(arguments.length===0){this.t=$ifaceNil;this.m=null;this.keys=null;this.i=0;return;}this.t=t_;this.m=m_;this.keys=keys_;this.i=i_;});BM=$pkg.Type=$newType(8,$kindInterface,"reflect.Type","Type","reflect",null);BN=$pkg.Kind=$newType(4,$kindUint,"reflect.Kind","Kind","reflect",null);BO=$pkg.rtype=$newType(0,$kindStruct,"reflect.rtype","rtype","reflect",function(size_,ptrdata_,hash_,_$3_,align_,fieldAlign_,kind_,alg_,gcdata_,string_,uncommonType_,ptrToThis_,zero_){this.$val=this;if(arguments.length===0){this.size=0;this.ptrdata=0;this.hash=0;this._$3=0;this.align=0;this.fieldAlign=0;this.kind=0;this.alg=GM.nil;this.gcdata=GN.nil;this.string=GO.nil;this.uncommonType=GP.nil;this.ptrToThis=FW.nil;this.zero=0;return;}this.size=size_;this.ptrdata=ptrdata_;this.hash=hash_;this._$3=_$3_;this.align=align_;this.fieldAlign=fieldAlign_;this.kind=kind_;this.alg=alg_;this.gcdata=gcdata_;this.string=string_;this.uncommonType=uncommonType_;this.ptrToThis=ptrToThis_;this.zero=zero_;});BP=$pkg.typeAlg=$newType(0,$kindStruct,"reflect.typeAlg","typeAlg","reflect",function(hash_,equal_){this.$val=this;if(arguments.length===0){this.hash=$throwNilPointerError;this.equal=$throwNilPointerError;return;}this.hash=hash_;this.equal=equal_;});BQ=$pkg.method=$newType(0,$kindStruct,"reflect.method","method","reflect",function(name_,pkgPath_,mtyp_,typ_,ifn_,tfn_){this.$val=this;if(arguments.length===0){this.name=GO.nil;this.pkgPath=GO.nil;this.mtyp=FW.nil;this.typ=FW.nil;this.ifn=0;this.tfn=0;return;}this.name=name_;this.pkgPath=pkgPath_;this.mtyp=mtyp_;this.typ=typ_;this.ifn=ifn_;this.tfn=tfn_;});BR=$pkg.uncommonType=$newType(0,$kindStruct,"reflect.uncommonType","uncommonType","reflect",function(name_,pkgPath_,methods_){this.$val=this;if(arguments.length===0){this.name=GO.nil;this.pkgPath=GO.nil;this.methods=GQ.nil;return;}this.name=name_;this.pkgPath=pkgPath_;this.methods=methods_;});BS=$pkg.ChanDir=$newType(4,$kindInt,"reflect.ChanDir","ChanDir","reflect",null);BT=$pkg.arrayType=$newType(0,$kindStruct,"reflect.arrayType","arrayType","reflect",function(rtype_,elem_,slice_,len_){this.$val=this;if(arguments.length===0){this.rtype=new BO.ptr(0,0,0,0,0,0,0,GM.nil,GN.nil,GO.nil,GP.nil,FW.nil,0);this.elem=FW.nil;this.slice=FW.nil;this.len=0;return;}this.rtype=rtype_;this.elem=elem_;this.slice=slice_;this.len=len_;});BU=$pkg.chanType=$newType(0,$kindStruct,"reflect.chanType","chanType","reflect",function(rtype_,elem_,dir_){this.$val=this;if(arguments.length===0){this.rtype=new BO.ptr(0,0,0,0,0,0,0,GM.nil,GN.nil,GO.nil,GP.nil,FW.nil,0);this.elem=FW.nil;this.dir=0;return;}this.rtype=rtype_;this.elem=elem_;this.dir=dir_;});BV=$pkg.funcType=$newType(0,$kindStruct,"reflect.funcType","funcType","reflect",function(rtype_,dotdotdot_,in$2_,out_){this.$val=this;if(arguments.length===0){this.rtype=new BO.ptr(0,0,0,0,0,0,0,GM.nil,GN.nil,GO.nil,GP.nil,FW.nil,0);this.dotdotdot=false;this.in$2=GC.nil;this.out=GC.nil;return;}this.rtype=rtype_;this.dotdotdot=dotdotdot_;this.in$2=in$2_;this.out=out_;});BW=$pkg.imethod=$newType(0,$kindStruct,"reflect.imethod","imethod","reflect",function(name_,pkgPath_,typ_){this.$val=this;if(arguments.length===0){this.name=GO.nil;this.pkgPath=GO.nil;this.typ=FW.nil;return;}this.name=name_;this.pkgPath=pkgPath_;this.typ=typ_;});BX=$pkg.interfaceType=$newType(0,$kindStruct,"reflect.interfaceType","interfaceType","reflect",function(rtype_,m
|
||
|
$packages["fmt"]=(function(){var $pkg={},$init,D,E,A,F,G,B,H,C,L,M,AF,AG,AH,AI,AJ,AK,BF,BS,BT,BU,CG,CH,CI,CJ,CK,CL,CM,CN,CO,CR,DL,DM,I,J,N,O,Q,R,S,T,U,V,W,X,Y,Z,AA,AB,AC,AD,AE,AL,BA,BB,BC,BV,BZ,CB,CC,a,b,K,P,AM,AP,AQ,AT,AW,AX,AY,AZ,BD,BE,BW,BX,CD;D=$packages["errors"];E=$packages["io"];A=$packages["math"];F=$packages["os"];G=$packages["reflect"];B=$packages["strconv"];H=$packages["sync"];C=$packages["unicode/utf8"];L=$pkg.fmtFlags=$newType(0,$kindStruct,"fmt.fmtFlags","fmtFlags","fmt",function(widPresent_,precPresent_,minus_,plus_,sharp_,space_,unicode_,uniQuote_,zero_,plusV_,sharpV_){this.$val=this;if(arguments.length===0){this.widPresent=false;this.precPresent=false;this.minus=false;this.plus=false;this.sharp=false;this.space=false;this.unicode=false;this.uniQuote=false;this.zero=false;this.plusV=false;this.sharpV=false;return;}this.widPresent=widPresent_;this.precPresent=precPresent_;this.minus=minus_;this.plus=plus_;this.sharp=sharp_;this.space=space_;this.unicode=unicode_;this.uniQuote=uniQuote_;this.zero=zero_;this.plusV=plusV_;this.sharpV=sharpV_;});M=$pkg.fmt=$newType(0,$kindStruct,"fmt.fmt","fmt","fmt",function(intbuf_,buf_,wid_,prec_,fmtFlags_){this.$val=this;if(arguments.length===0){this.intbuf=CK.zero();this.buf=CL.nil;this.wid=0;this.prec=0;this.fmtFlags=new L.ptr(false,false,false,false,false,false,false,false,false,false,false);return;}this.intbuf=intbuf_;this.buf=buf_;this.wid=wid_;this.prec=prec_;this.fmtFlags=fmtFlags_;});AF=$pkg.State=$newType(8,$kindInterface,"fmt.State","State","fmt",null);AG=$pkg.Formatter=$newType(8,$kindInterface,"fmt.Formatter","Formatter","fmt",null);AH=$pkg.Stringer=$newType(8,$kindInterface,"fmt.Stringer","Stringer","fmt",null);AI=$pkg.GoStringer=$newType(8,$kindInterface,"fmt.GoStringer","GoStringer","fmt",null);AJ=$pkg.buffer=$newType(12,$kindSlice,"fmt.buffer","buffer","fmt",null);AK=$pkg.pp=$newType(0,$kindStruct,"fmt.pp","pp","fmt",function(n_,panicking_,erroring_,buf_,arg_,value_,reordered_,goodArgNum_,runeBuf_,fmt_){this.$val=this;if(arguments.length===0){this.n=0;this.panicking=false;this.erroring=false;this.buf=AJ.nil;this.arg=$ifaceNil;this.value=new G.Value.ptr(CI.nil,0,0);this.reordered=false;this.goodArgNum=false;this.runeBuf=CJ.zero();this.fmt=new M.ptr(CK.zero(),CL.nil,0,0,new L.ptr(false,false,false,false,false,false,false,false,false,false,false));return;}this.n=n_;this.panicking=panicking_;this.erroring=erroring_;this.buf=buf_;this.arg=arg_;this.value=value_;this.reordered=reordered_;this.goodArgNum=goodArgNum_;this.runeBuf=runeBuf_;this.fmt=fmt_;});BF=$pkg.runeUnreader=$newType(8,$kindInterface,"fmt.runeUnreader","runeUnreader","fmt",null);BS=$pkg.scanError=$newType(0,$kindStruct,"fmt.scanError","scanError","fmt",function(err_){this.$val=this;if(arguments.length===0){this.err=$ifaceNil;return;}this.err=err_;});BT=$pkg.ss=$newType(0,$kindStruct,"fmt.ss","ss","fmt",function(rr_,buf_,peekRune_,prevRune_,count_,atEOF_,ssave_){this.$val=this;if(arguments.length===0){this.rr=$ifaceNil;this.buf=AJ.nil;this.peekRune=0;this.prevRune=0;this.count=0;this.atEOF=false;this.ssave=new BU.ptr(false,false,false,0,0,0);return;}this.rr=rr_;this.buf=buf_;this.peekRune=peekRune_;this.prevRune=prevRune_;this.count=count_;this.atEOF=atEOF_;this.ssave=ssave_;});BU=$pkg.ssave=$newType(0,$kindStruct,"fmt.ssave","ssave","fmt",function(validSave_,nlIsEnd_,nlIsSpace_,argLimit_,limit_,maxWid_){this.$val=this;if(arguments.length===0){this.validSave=false;this.nlIsEnd=false;this.nlIsSpace=false;this.argLimit=0;this.limit=0;this.maxWid=0;return;}this.validSave=validSave_;this.nlIsEnd=nlIsEnd_;this.nlIsSpace=nlIsSpace_;this.argLimit=argLimit_;this.limit=limit_;this.maxWid=maxWid_;});CG=$sliceType($Uint8);CH=$sliceType($emptyInterface);CI=$ptrType(G.rtype);CJ=$arrayType($Uint8,4);CK=$arrayType($Uint8,65);CL=$ptrType(AJ);CM=$arrayType($Uint16,2);CN=$sliceType(CM);CO=$ptrType(AK);CR=$ptrType(BT);DL=$ptrType(M);DM=$funcType([$Int32],[$Bool],false);K=function(){var $ptr,c;c=0;while(true){if(!(c<65)){break;}((c<0||c>=I.$length)?$throwRuntimeError("index out of range"):I.$array[I.$offset+c]=48);((
|
||
|
$packages["sort"]=(function(){var $pkg={},$init;$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["path/filepath"]=(function(){var $pkg={},$init,G,A,B,C,D,E,F;G=$packages["bytes"];A=$packages["errors"];B=$packages["os"];C=$packages["runtime"];D=$packages["sort"];E=$packages["strings"];F=$packages["unicode/utf8"];$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=G.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=A.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=F.$init();$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$pkg.ErrBadPattern=A.New("syntax error in pattern");$pkg.SkipDir=A.New("skip this directory");}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["io/ioutil"]=(function(){var $pkg={},$init,A,B,C,F,D,G,E,H,Y,Z,AA,R;A=$packages["bytes"];B=$packages["io"];C=$packages["os"];F=$packages["path/filepath"];D=$packages["sort"];G=$packages["strconv"];E=$packages["sync"];H=$packages["time"];Y=$sliceType($emptyInterface);Z=$sliceType($Uint8);AA=$ptrType(Z);$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=F.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=G.$init();$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=H.$init();$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}R=new E.Pool.ptr(0,0,Y.nil,(function(){var $ptr,a,b;a=$makeSlice(Z,8192);return(b||(b=new AA(function(){return a;},function($v){a=$subslice(new Z($v.$array),$v.$offset,$v.$offset+$v.$length);})));}));}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["github.com/hajimehoshi/ebiten/internal/audio"]=(function(){var $pkg={},$init,C,A,B,D,H,F,L;C=$packages["github.com/gopherjs/gopherjs/js"];A=$packages["io"];B=$packages["io/ioutil"];F=function(){var $ptr;L();};$pkg.Init=F;L=function(){var $ptr,a;if(!($global.require===undefined)){return;}a=$global.AudioContext;if(a===undefined){a=$global.webkitAudioContext;}if(a===undefined){return;}H=new(a)();D=true;};$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=C.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=A.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}H=null;D=false;}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["github.com/gopherjs/webgl"]=(function(){var $pkg={},$init,A,B,C,E,G,H,I,J,K,L,M,D,F;A=$packages["errors"];B=$packages["github.com/gopherjs/gopherjs/js"];C=$pkg.ContextAttributes=$newType(0,$kindStruct,"webgl.ContextAttributes","ContextAttributes","github.com/gopherjs/webgl",function(Alpha_,Depth_,Stencil_,Antialias_,PremultipliedAlpha_,PreserveDrawingBuffer_){this.$val=this;if(arguments.length===0){this.Alpha=false;this.Depth=false;this.Stencil=false;this.Antialias=false;this.PremultipliedAlpha=false;this.PreserveDrawingBuffer=false;return;}this.Alpha=Alpha_;this.Depth=Depth_;this.Stencil=Stencil_;this.Antialias=Antialias_;this.PremultipliedAlpha=PremultipliedAlpha_;this.PreserveDrawingBuffer=PreserveDrawingBuffer_;});E=$pkg.Context=$newType(0,$kindStruct,"webgl.Context","Context","github.com/gopherjs/webgl",function(Object_,ARRAY_BUFFER_,ARRAY_BUFFER_BINDING_,ATTACHED_SHADERS_,BACK_,BLEND_,BLEND_COLOR_,BLEND_DST_ALPHA_,BLEND_DST_RGB_,BLEND_EQUATION_,BLEND_EQUATION_ALPHA_,BLEND_EQUATION_RGB_,BLEND_SRC_ALPHA_,BLEND_SRC_RGB_,BLUE_BITS_,BOOL_,BOOL_VEC2_,BOOL_VEC3_,BOOL_VEC4_,BROWSER_DEFAULT_WEBGL_,BUFFER_SIZE_,BUFFER_USAGE_,BYTE_,CCW_,CLAMP_TO_EDGE_,COLOR_ATTACHMENT0_,COLOR_BUFFER_BIT_,COLOR_CLEAR_VALUE_,COLOR_WRITEMASK_,COMPILE_STATUS_,COMPRESSED_TEXTURE_FORMATS_,CONSTANT_ALPHA_,CONSTANT_COLOR_,CONTEXT_LOST_WEBGL_,CULL_FACE_,CULL_FACE_MODE_,CURRENT_PROGRAM_,CURRENT_VERTEX_ATTRIB_,CW_,DECR_,DECR_WRAP_,DELETE_STATUS_,DEPTH_ATTACHMENT_,DEPTH_BITS_,DEPTH_BUFFER_BIT_,DEPTH_CLEAR_VALUE_,DEPTH_COMPONENT_,DEPTH_COMPONENT16_,DEPTH_FUNC_,DEPTH_RANGE_,DEPTH_STENCIL_,DEPTH_STENCIL_ATTACHMENT_,DEPTH_TEST_,DEPTH_WRITEMASK_,DITHER_,DONT_CARE_,DST_ALPHA_,DST_COLOR_,DYNAMIC_DRAW_,ELEMENT_ARRAY_BUFFER_,ELEMENT_ARRAY_BUFFER_BINDING_,EQUAL_,FASTEST_,FLOAT_,FLOAT_MAT2_,FLOAT_MAT3_,FLOAT_MAT4_,FLOAT_VEC2_,FLOAT_VEC3_,FLOAT_VEC4_,FRAGMENT_SHADER_,FRAMEBUFFER_,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_,FRAMEBUFFER_BINDING_,FRAMEBUFFER_COMPLETE_,FRAMEBUFFER_INCOMPLETE_ATTACHMENT_,FRAMEBUFFER_INCOMPLETE_DIMENSIONS_,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_,FRAMEBUFFER_UNSUPPORTED_,FRONT_,FRONT_AND_BACK_,FRONT_FACE_,FUNC_ADD_,FUNC_REVERSE_SUBTRACT_,FUNC_SUBTRACT_,GENERATE_MIPMAP_HINT_,GEQUAL_,GREATER_,GREEN_BITS_,HIGH_FLOAT_,HIGH_INT_,INCR_,INCR_WRAP_,INFO_LOG_LENGTH_,INT_,INT_VEC2_,INT_VEC3_,INT_VEC4_,INVALID_ENUM_,INVALID_FRAMEBUFFER_OPERATION_,INVALID_OPERATION_,INVALID_VALUE_,INVERT_,KEEP_,LEQUAL_,LESS_,LINEAR_,LINEAR_MIPMAP_LINEAR_,LINEAR_MIPMAP_NEAREST_,LINES_,LINE_LOOP_,LINE_STRIP_,LINE_WIDTH_,LINK_STATUS_,LOW_FLOAT_,LOW_INT_,LUMINANCE_,LUMINANCE_ALPHA_,MAX_COMBINED_TEXTURE_IMAGE_UNITS_,MAX_CUBE_MAP_TEXTURE_SIZE_,MAX_FRAGMENT_UNIFORM_VECTORS_,MAX_RENDERBUFFER_SIZE_,MAX_TEXTURE_IMAGE_UNITS_,MAX_TEXTURE_SIZE_,MAX_VARYING_VECTORS_,MAX_VERTEX_ATTRIBS_,MAX_VERTEX_TEXTURE_IMAGE_UNITS_,MAX_VERTEX_UNIFORM_VECTORS_,MAX_VIEWPORT_DIMS_,MEDIUM_FLOAT_,MEDIUM_INT_,MIRRORED_REPEAT_,NEAREST_,NEAREST_MIPMAP_LINEAR_,NEAREST_MIPMAP_NEAREST_,NEVER_,NICEST_,NONE_,NOTEQUAL_,NO_ERROR_,NUM_COMPRESSED_TEXTURE_FORMATS_,ONE_,ONE_MINUS_CONSTANT_ALPHA_,ONE_MINUS_CONSTANT_COLOR_,ONE_MINUS_DST_ALPHA_,ONE_MINUS_DST_COLOR_,ONE_MINUS_SRC_ALPHA_,ONE_MINUS_SRC_COLOR_,OUT_OF_MEMORY_,PACK_ALIGNMENT_,POINTS_,POLYGON_OFFSET_FACTOR_,POLYGON_OFFSET_FILL_,POLYGON_OFFSET_UNITS_,RED_BITS_,RENDERBUFFER_,RENDERBUFFER_ALPHA_SIZE_,RENDERBUFFER_BINDING_,RENDERBUFFER_BLUE_SIZE_,RENDERBUFFER_DEPTH_SIZE_,RENDERBUFFER_GREEN_SIZE_,RENDERBUFFER_HEIGHT_,RENDERBUFFER_INTERNAL_FORMAT_,RENDERBUFFER_RED_SIZE_,RENDERBUFFER_STENCIL_SIZE_,RENDERBUFFER_WIDTH_,RENDERER_,REPEAT_,REPLACE_,RGB_,RGB5_A1_,RGB565_,RGBA_,RGBA4_,SAMPLER_2D_,SAMPLER_CUBE_,SAMPLES_,SAMPLE_ALPHA_TO_COVERAGE_,SAMPLE_BUFFERS_,SAMPLE_COVERAGE_,SAMPLE_COVERAGE_INVERT_,SAMPLE_COVERAGE_VALUE_,SCISSOR_BOX_,SCISSOR_TEST_,SHADER_COMPILER_,SHADER_SOURCE_LENGTH_,SHADER_TYPE_,SHADING_LANGUAGE_VERSION_,SHORT_,SRC_ALPHA_,SRC_ALPHA_SATURATE_,SRC_COLOR_,STATIC_DRAW_,STENCIL_ATTACHMENT_,STENCIL_BACK_FAIL_,STENCIL_BACK_FUNC_,STE
|
||
|
$packages["github.com/hajimehoshi/ebiten/internal/graphics/opengl"]=(function(){var $pkg={},$init,A,B,C,D,E,F,G,H,I,J,K,L,N,X,Y,Z,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,Q,R,S,M,O,U,W;A=$packages["errors"];B=$packages["fmt"];C=$packages["github.com/gopherjs/gopherjs/js"];D=$packages["github.com/gopherjs/webgl"];E=$pkg.Texture=$newType(0,$kindStruct,"opengl.Texture","Texture","github.com/hajimehoshi/ebiten/internal/graphics/opengl",function(Object_){this.$val=this;if(arguments.length===0){this.Object=null;return;}this.Object=Object_;});F=$pkg.Framebuffer=$newType(0,$kindStruct,"opengl.Framebuffer","Framebuffer","github.com/hajimehoshi/ebiten/internal/graphics/opengl",function(Object_){this.$val=this;if(arguments.length===0){this.Object=null;return;}this.Object=Object_;});G=$pkg.Shader=$newType(0,$kindStruct,"opengl.Shader","Shader","github.com/hajimehoshi/ebiten/internal/graphics/opengl",function(Object_){this.$val=this;if(arguments.length===0){this.Object=null;return;}this.Object=Object_;});H=$pkg.Program=$newType(0,$kindStruct,"opengl.Program","Program","github.com/hajimehoshi/ebiten/internal/graphics/opengl",function(Object_){this.$val=this;if(arguments.length===0){this.Object=null;return;}this.Object=Object_;});I=$pkg.Buffer=$newType(0,$kindStruct,"opengl.Buffer","Buffer","github.com/hajimehoshi/ebiten/internal/graphics/opengl",function(Object_){this.$val=this;if(arguments.length===0){this.Object=null;return;}this.Object=Object_;});J=$pkg.UniformLocation=$newType(0,$kindStruct,"opengl.UniformLocation","UniformLocation","github.com/hajimehoshi/ebiten/internal/graphics/opengl",function(Object_){this.$val=this;if(arguments.length===0){this.Object=null;return;}this.Object=Object_;});K=$pkg.AttribLocation=$newType(4,$kindInt,"opengl.AttribLocation","AttribLocation","github.com/hajimehoshi/ebiten/internal/graphics/opengl",null);L=$pkg.ProgramID=$newType(4,$kindInt,"opengl.ProgramID","ProgramID","github.com/hajimehoshi/ebiten/internal/graphics/opengl",null);N=$pkg.context=$newType(0,$kindStruct,"opengl.context","context","github.com/hajimehoshi/ebiten/internal/graphics/opengl",function(gl_,lastFramebuffer_){this.$val=this;if(arguments.length===0){this.gl=AD.nil;this.lastFramebuffer=new F.ptr(null);return;}this.gl=gl_;this.lastFramebuffer=lastFramebuffer_;});X=$pkg.Filter=$newType(4,$kindInt,"opengl.Filter","Filter","github.com/hajimehoshi/ebiten/internal/graphics/opengl",null);Y=$pkg.ShaderType=$newType(4,$kindInt,"opengl.ShaderType","ShaderType","github.com/hajimehoshi/ebiten/internal/graphics/opengl",null);Z=$pkg.BufferType=$newType(4,$kindInt,"opengl.BufferType","BufferType","github.com/hajimehoshi/ebiten/internal/graphics/opengl",null);AA=$pkg.BufferUsage=$newType(4,$kindInt,"opengl.BufferUsage","BufferUsage","github.com/hajimehoshi/ebiten/internal/graphics/opengl",null);AB=$pkg.Mode=$newType(4,$kindInt,"opengl.Mode","Mode","github.com/hajimehoshi/ebiten/internal/graphics/opengl",null);AC=$pkg.Context=$newType(0,$kindStruct,"opengl.Context","Context","github.com/hajimehoshi/ebiten/internal/graphics/opengl",function(Nearest_,Linear_,VertexShader_,FragmentShader_,ArrayBuffer_,ElementArrayBuffer_,DynamicDraw_,StaticDraw_,Triangles_,Lines_,context_){this.$val=this;if(arguments.length===0){this.Nearest=0;this.Linear=0;this.VertexShader=0;this.FragmentShader=0;this.ArrayBuffer=0;this.ElementArrayBuffer=0;this.DynamicDraw=0;this.StaticDraw=0;this.Triangles=0;this.Lines=0;this.context=new N.ptr(AD.nil,new F.ptr(null));return;}this.Nearest=Nearest_;this.Linear=Linear_;this.VertexShader=VertexShader_;this.FragmentShader=FragmentShader_;this.ArrayBuffer=ArrayBuffer_;this.ElementArrayBuffer=ElementArrayBuffer_;this.DynamicDraw=DynamicDraw_;this.StaticDraw=StaticDraw_;this.Triangles=Triangles_;this.Lines=Lines_;this.context=context_;});AD=$ptrType(D.Context);AE=$mapType($String,$Bool);AF=$sliceType($emptyInterface);AG=$sliceType($Uint8);AH=$sliceType($Float32);AI=$ptrType(C.Object);AJ=$sliceType(G);AK=$sliceType($Int16);AL=$ptrType(AC);H.ptr.prototype.Equals=function(a){var $ptr,a,b;a=$clone(a,H);b=$clone(this,H);return b.Object===a.Obj
|
||
|
$packages["bufio"]=(function(){var $pkg={},$init,A,B,C,D,E,Y,Z,AA,H,I,F,G;A=$packages["bytes"];B=$packages["errors"];C=$packages["io"];D=$packages["unicode/utf8"];E=$pkg.Reader=$newType(0,$kindStruct,"bufio.Reader","Reader","bufio",function(buf_,rd_,r_,w_,err_,lastByte_,lastRuneSize_){this.$val=this;if(arguments.length===0){this.buf=Y.nil;this.rd=$ifaceNil;this.r=0;this.w=0;this.err=$ifaceNil;this.lastByte=0;this.lastRuneSize=0;return;}this.buf=buf_;this.rd=rd_;this.r=r_;this.w=w_;this.err=err_;this.lastByte=lastByte_;this.lastRuneSize=lastRuneSize_;});Y=$sliceType($Uint8);Z=$ptrType(E);AA=$sliceType(Y);F=function(a,b){var $ptr,a,b,c,d,e,f;c=$assertType(a,Z,true);d=c[0];e=c[1];if(e&&d.buf.$length>=b){return d;}if(b<16){b=16;}f=new E.ptr(Y.nil,$ifaceNil,0,0,$ifaceNil,0,0);f.reset($makeSlice(Y,b),a);return f;};$pkg.NewReaderSize=F;G=function(a){var $ptr,a;return F(a,4096);};$pkg.NewReader=G;E.ptr.prototype.Reset=function(a){var $ptr,a,b;b=this;b.reset(b.buf,a);};E.prototype.Reset=function(a){return this.$val.Reset(a);};E.ptr.prototype.reset=function(a,b){var $ptr,a,b,c;c=this;E.copy(c,new E.ptr(a,b,0,0,$ifaceNil,-1,-1));};E.prototype.reset=function(a,b){return this.$val.reset(a,b);};E.ptr.prototype.fill=function(){var $ptr,a,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=this;if(a.r>0){$copySlice(a.buf,$subslice(a.buf,a.r,a.w));a.w=a.w-(a.r)>>0;a.r=0;}if(a.w>=a.buf.$length){$panic(new $String("bufio: tried to fill full buffer"));}b=100;case 1:if(!(b>0)){$s=2;continue;}d=a.rd.Read($subslice(a.buf,a.w));$s=3;case 3:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}c=d;e=c[0];f=c[1];if(e<0){$panic(H);}a.w=a.w+(e)>>0;if(!($interfaceIsEqual(f,$ifaceNil))){a.err=f;return;}if(e>0){return;}b=b-(1)>>0;$s=1;continue;case 2:a.err=C.ErrNoProgress;$s=-1;case-1:}return;}if($f===undefined){$f={$blk:E.ptr.prototype.fill};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};E.prototype.fill=function(){return this.$val.fill();};E.ptr.prototype.readErr=function(){var $ptr,a,b;a=this;b=a.err;a.err=$ifaceNil;return b;};E.prototype.readErr=function(){return this.$val.readErr();};E.ptr.prototype.Peek=function(a){var $ptr,a,b,c,d,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;if(a<0){return[Y.nil,$pkg.ErrNegativeCount];}if(a>b.buf.$length){return[Y.nil,$pkg.ErrBufferFull];}case 1:if(!((b.w-b.r>>0)<a&&$interfaceIsEqual(b.err,$ifaceNil))){$s=2;continue;}$r=b.fill();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=1;continue;case 2:c=$ifaceNil;d=b.w-b.r>>0;if(d<a){a=d;c=b.readErr();if($interfaceIsEqual(c,$ifaceNil)){c=$pkg.ErrBufferFull;}}return[$subslice(b.buf,b.r,(b.r+a>>0)),c];}return;}if($f===undefined){$f={$blk:E.ptr.prototype.Peek};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.$s=$s;$f.$r=$r;return $f;};E.prototype.Peek=function(a){return this.$val.Peek(a);};E.ptr.prototype.Discard=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=0;c=$ifaceNil;d=this;if(a<0){e=0;f=$pkg.ErrNegativeCount;b=e;c=f;return[b,c];}if(a===0){return[b,c];}g=a;case 1:h=d.Buffered();if(h===0){$s=3;continue;}$s=4;continue;case 3:$r=d.fill();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}h=d.Buffered();case 4:if(h>g){h=g;}d.r=d.r+(h)>>0;g=g-(h)>>0;if(g===0){i=a;j=$ifaceNil;b=i;c=j;return[b,c];}if(!($interfaceIsEqual(d.err,$ifaceNil))){k=a-g>>0;l=d.readErr();b=k;c=l;return[b,c];}$s=1;continue;case 2:$s=-1;case-1:}return;}if($f===undefined){$f={$blk:E.ptr.prototype.Discard};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i
|
||
|
$packages["image/color"]=(function(){var $pkg={},$init,A,B,C,D,E,F,G,H,I,J,L,U,Y,AC,AE,AF,K,M,N,O,P,Q,R,S,T,V,W,Z,AA,AB,AD;A=$pkg.Color=$newType(8,$kindInterface,"color.Color","Color","image/color",null);B=$pkg.RGBA=$newType(0,$kindStruct,"color.RGBA","RGBA","image/color",function(R_,G_,B_,A_){this.$val=this;if(arguments.length===0){this.R=0;this.G=0;this.B=0;this.A=0;return;}this.R=R_;this.G=G_;this.B=B_;this.A=A_;});C=$pkg.RGBA64=$newType(0,$kindStruct,"color.RGBA64","RGBA64","image/color",function(R_,G_,B_,A_){this.$val=this;if(arguments.length===0){this.R=0;this.G=0;this.B=0;this.A=0;return;}this.R=R_;this.G=G_;this.B=B_;this.A=A_;});D=$pkg.NRGBA=$newType(0,$kindStruct,"color.NRGBA","NRGBA","image/color",function(R_,G_,B_,A_){this.$val=this;if(arguments.length===0){this.R=0;this.G=0;this.B=0;this.A=0;return;}this.R=R_;this.G=G_;this.B=B_;this.A=A_;});E=$pkg.NRGBA64=$newType(0,$kindStruct,"color.NRGBA64","NRGBA64","image/color",function(R_,G_,B_,A_){this.$val=this;if(arguments.length===0){this.R=0;this.G=0;this.B=0;this.A=0;return;}this.R=R_;this.G=G_;this.B=B_;this.A=A_;});F=$pkg.Alpha=$newType(0,$kindStruct,"color.Alpha","Alpha","image/color",function(A_){this.$val=this;if(arguments.length===0){this.A=0;return;}this.A=A_;});G=$pkg.Alpha16=$newType(0,$kindStruct,"color.Alpha16","Alpha16","image/color",function(A_){this.$val=this;if(arguments.length===0){this.A=0;return;}this.A=A_;});H=$pkg.Gray=$newType(0,$kindStruct,"color.Gray","Gray","image/color",function(Y_){this.$val=this;if(arguments.length===0){this.Y=0;return;}this.Y=Y_;});I=$pkg.Gray16=$newType(0,$kindStruct,"color.Gray16","Gray16","image/color",function(Y_){this.$val=this;if(arguments.length===0){this.Y=0;return;}this.Y=Y_;});J=$pkg.Model=$newType(8,$kindInterface,"color.Model","Model","image/color",null);L=$pkg.modelFunc=$newType(0,$kindStruct,"color.modelFunc","modelFunc","image/color",function(f_){this.$val=this;if(arguments.length===0){this.f=$throwNilPointerError;return;}this.f=f_;});U=$pkg.Palette=$newType(12,$kindSlice,"color.Palette","Palette","image/color",null);Y=$pkg.YCbCr=$newType(0,$kindStruct,"color.YCbCr","YCbCr","image/color",function(Y_,Cb_,Cr_){this.$val=this;if(arguments.length===0){this.Y=0;this.Cb=0;this.Cr=0;return;}this.Y=Y_;this.Cb=Cb_;this.Cr=Cr_;});AC=$pkg.CMYK=$newType(0,$kindStruct,"color.CMYK","CMYK","image/color",function(C_,M_,Y_,K_){this.$val=this;if(arguments.length===0){this.C=0;this.M=0;this.Y=0;this.K=0;return;}this.C=C_;this.M=M_;this.Y=Y_;this.K=K_;});AE=$ptrType(L);AF=$funcType([A],[A],false);B.ptr.prototype.RGBA=function(){var $ptr,a,b,c,d,e;a=0;b=0;c=0;d=0;e=$clone(this,B);a=(e.R>>>0);a=(a|((a<<8>>>0)))>>>0;b=(e.G>>>0);b=(b|((b<<8>>>0)))>>>0;c=(e.B>>>0);c=(c|((c<<8>>>0)))>>>0;d=(e.A>>>0);d=(d|((d<<8>>>0)))>>>0;return[a,b,c,d];};B.prototype.RGBA=function(){return this.$val.RGBA();};C.ptr.prototype.RGBA=function(){var $ptr,a,b,c,d,e,f,g,h,i;a=0;b=0;c=0;d=0;e=$clone(this,C);f=(e.R>>>0);g=(e.G>>>0);h=(e.B>>>0);i=(e.A>>>0);a=f;b=g;c=h;d=i;return[a,b,c,d];};C.prototype.RGBA=function(){return this.$val.RGBA();};D.ptr.prototype.RGBA=function(){var $ptr,a,b,c,d,e,f,g,h;a=0;b=0;c=0;d=0;e=$clone(this,D);a=(e.R>>>0);a=(a|((a<<8>>>0)))>>>0;a=$imul(a,((e.A>>>0)))>>>0;a=(f=a/(255),(f===f&&f!==1/0&&f!==-1/0)?f>>>0:$throwRuntimeError("integer divide by zero"));b=(e.G>>>0);b=(b|((b<<8>>>0)))>>>0;b=$imul(b,((e.A>>>0)))>>>0;b=(g=b/(255),(g===g&&g!==1/0&&g!==-1/0)?g>>>0:$throwRuntimeError("integer divide by zero"));c=(e.B>>>0);c=(c|((c<<8>>>0)))>>>0;c=$imul(c,((e.A>>>0)))>>>0;c=(h=c/(255),(h===h&&h!==1/0&&h!==-1/0)?h>>>0:$throwRuntimeError("integer divide by zero"));d=(e.A>>>0);d=(d|((d<<8>>>0)))>>>0;return[a,b,c,d];};D.prototype.RGBA=function(){return this.$val.RGBA();};E.ptr.prototype.RGBA=function(){var $ptr,a,b,c,d,e,f,g,h;a=0;b=0;c=0;d=0;e=$clone(this,E);a=(e.R>>>0);a=$imul(a,((e.A>>>0)))>>>0;a=(f=a/(65535),(f===f&&f!==1/0&&f!==-1/0)?f>>>0:$throwRuntimeError("integer divide by zero"));b=(e.G>>>0);b=$imul(b,((e.A>>>0)))>>>0;b=(g=b/(65535),(g===g&&g!==1/0&&g!==-1/0)?g>>>0:$throwRuntimeError("integer divide by zero"));c=(e.B>>>0);c=$
|
||
|
$packages["image"]=(function(){var $pkg={},$init,A,B,D,C,E,F,I,O,Q,S,T,V,X,Z,AB,AD,AF,AH,AJ,AL,AN,AP,AR,AS,AU,AV,AW,AX,AY,AZ,BA,BB,BC,BD,BE,BF,BG,BH,BI,BJ,BK,G,a,b,c,d,H,J,K,L,M,R,W,Y,AA,AC,AI,AK,AM,AO,AQ,AT;A=$packages["bufio"];B=$packages["errors"];D=$packages["image/color"];C=$packages["io"];E=$packages["strconv"];F=$pkg.format=$newType(0,$kindStruct,"image.format","format","image",function(name_,magic_,decode_,decodeConfig_){this.$val=this;if(arguments.length===0){this.name="";this.magic="";this.decode=$throwNilPointerError;this.decodeConfig=$throwNilPointerError;return;}this.name=name_;this.magic=magic_;this.decode=decode_;this.decodeConfig=decodeConfig_;});I=$pkg.reader=$newType(8,$kindInterface,"image.reader","reader","image",null);O=$pkg.Point=$newType(0,$kindStruct,"image.Point","Point","image",function(X_,Y_){this.$val=this;if(arguments.length===0){this.X=0;this.Y=0;return;}this.X=X_;this.Y=Y_;});Q=$pkg.Rectangle=$newType(0,$kindStruct,"image.Rectangle","Rectangle","image",function(Min_,Max_){this.$val=this;if(arguments.length===0){this.Min=new O.ptr(0,0);this.Max=new O.ptr(0,0);return;}this.Min=Min_;this.Max=Max_;});S=$pkg.Config=$newType(0,$kindStruct,"image.Config","Config","image",function(ColorModel_,Width_,Height_){this.$val=this;if(arguments.length===0){this.ColorModel=$ifaceNil;this.Width=0;this.Height=0;return;}this.ColorModel=ColorModel_;this.Width=Width_;this.Height=Height_;});T=$pkg.Image=$newType(8,$kindInterface,"image.Image","Image","image",null);V=$pkg.RGBA=$newType(0,$kindStruct,"image.RGBA","RGBA","image",function(Pix_,Stride_,Rect_){this.$val=this;if(arguments.length===0){this.Pix=AV.nil;this.Stride=0;this.Rect=new Q.ptr(new O.ptr(0,0),new O.ptr(0,0));return;}this.Pix=Pix_;this.Stride=Stride_;this.Rect=Rect_;});X=$pkg.RGBA64=$newType(0,$kindStruct,"image.RGBA64","RGBA64","image",function(Pix_,Stride_,Rect_){this.$val=this;if(arguments.length===0){this.Pix=AV.nil;this.Stride=0;this.Rect=new Q.ptr(new O.ptr(0,0),new O.ptr(0,0));return;}this.Pix=Pix_;this.Stride=Stride_;this.Rect=Rect_;});Z=$pkg.NRGBA=$newType(0,$kindStruct,"image.NRGBA","NRGBA","image",function(Pix_,Stride_,Rect_){this.$val=this;if(arguments.length===0){this.Pix=AV.nil;this.Stride=0;this.Rect=new Q.ptr(new O.ptr(0,0),new O.ptr(0,0));return;}this.Pix=Pix_;this.Stride=Stride_;this.Rect=Rect_;});AB=$pkg.NRGBA64=$newType(0,$kindStruct,"image.NRGBA64","NRGBA64","image",function(Pix_,Stride_,Rect_){this.$val=this;if(arguments.length===0){this.Pix=AV.nil;this.Stride=0;this.Rect=new Q.ptr(new O.ptr(0,0),new O.ptr(0,0));return;}this.Pix=Pix_;this.Stride=Stride_;this.Rect=Rect_;});AD=$pkg.Alpha=$newType(0,$kindStruct,"image.Alpha","Alpha","image",function(Pix_,Stride_,Rect_){this.$val=this;if(arguments.length===0){this.Pix=AV.nil;this.Stride=0;this.Rect=new Q.ptr(new O.ptr(0,0),new O.ptr(0,0));return;}this.Pix=Pix_;this.Stride=Stride_;this.Rect=Rect_;});AF=$pkg.Alpha16=$newType(0,$kindStruct,"image.Alpha16","Alpha16","image",function(Pix_,Stride_,Rect_){this.$val=this;if(arguments.length===0){this.Pix=AV.nil;this.Stride=0;this.Rect=new Q.ptr(new O.ptr(0,0),new O.ptr(0,0));return;}this.Pix=Pix_;this.Stride=Stride_;this.Rect=Rect_;});AH=$pkg.Gray=$newType(0,$kindStruct,"image.Gray","Gray","image",function(Pix_,Stride_,Rect_){this.$val=this;if(arguments.length===0){this.Pix=AV.nil;this.Stride=0;this.Rect=new Q.ptr(new O.ptr(0,0),new O.ptr(0,0));return;}this.Pix=Pix_;this.Stride=Stride_;this.Rect=Rect_;});AJ=$pkg.Gray16=$newType(0,$kindStruct,"image.Gray16","Gray16","image",function(Pix_,Stride_,Rect_){this.$val=this;if(arguments.length===0){this.Pix=AV.nil;this.Stride=0;this.Rect=new Q.ptr(new O.ptr(0,0),new O.ptr(0,0));return;}this.Pix=Pix_;this.Stride=Stride_;this.Rect=Rect_;});AL=$pkg.CMYK=$newType(0,$kindStruct,"image.CMYK","CMYK","image",function(Pix_,Stride_,Rect_){this.$val=this;if(arguments.length===0){this.Pix=AV.nil;this.Stride=0;this.Rect=new Q.ptr(new O.ptr(0,0),new O.ptr(0,0));return;}this.Pix=Pix_;this.Stride=Stride_;this.Rect=Rect_;});AN=$pkg.Paletted=$newType(0,$kindStruct,"image.Paletted","Paletted","image",function(Pix_,S
|
||
|
$packages["image/internal/imageutil"]=(function(){var $pkg={},$init,A,B;A=$packages["image"];B=function(a,b,c,d){var $ptr,a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,cq,cr,cs,ct,cu,cv,cw,cx,cy,cz,d,da,db,dc,dd,de,df,dg,dh,di,dj,dk,dl,dm,dn,dp,dq,dr,ds,dt,du,dv,dw,dx,dy,dz,e,ea,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;e=false;d=$clone(d,A.Point);b=$clone(b,A.Rectangle);f=$imul(((b.Min.X-a.Rect.Min.X>>0)),4);g=$imul(((b.Max.X-a.Rect.Min.X>>0)),4);h=b.Min.Y-a.Rect.Min.Y>>0;i=b.Max.Y-a.Rect.Min.Y>>0;j=c.SubsampleRatio;if(j===0){k=h;l=d.Y;m=k;n=l;while(true){if(!(!((m===i)))){break;}o=$subslice(a.Pix,($imul(m,a.Stride)));p=($imul(((n-c.Rect.Min.Y>>0)),c.YStride))+((d.X-c.Rect.Min.X>>0))>>0;q=($imul(((n-c.Rect.Min.Y>>0)),c.CStride))+((d.X-c.Rect.Min.X>>0))>>0;r=f;while(true){if(!(!((r===g)))){break;}t=$imul(((s=c.Y,((p<0||p>=s.$length)?$throwRuntimeError("index out of range"):s.$array[s.$offset+p]))>>0),65792);v=((u=c.Cb,((q<0||q>=u.$length)?$throwRuntimeError("index out of range"):u.$array[u.$offset+q]))>>0)-128>>0;x=((w=c.Cr,((q<0||q>=w.$length)?$throwRuntimeError("index out of range"):w.$array[w.$offset+q]))>>0)-128>>0;y=((t+($imul(91881,x))>>0))>>16>>0;z=(((t-($imul(22554,v))>>0)-($imul(46802,x))>>0))>>16>>0;aa=((t+($imul(116130,v))>>0))>>16>>0;if(y<0){y=0;}else if(y>255){y=255;}if(z<0){z=0;}else if(z>255){z=255;}if(aa<0){aa=0;}else if(aa>255){aa=255;}(ab=r+0>>0,((ab<0||ab>=o.$length)?$throwRuntimeError("index out of range"):o.$array[o.$offset+ab]=(y<<24>>>24)));(ac=r+1>>0,((ac<0||ac>=o.$length)?$throwRuntimeError("index out of range"):o.$array[o.$offset+ac]=(z<<24>>>24)));(ad=r+2>>0,((ad<0||ad>=o.$length)?$throwRuntimeError("index out of range"):o.$array[o.$offset+ad]=(aa<<24>>>24)));(ae=r+3>>0,((ae<0||ae>=o.$length)?$throwRuntimeError("index out of range"):o.$array[o.$offset+ae]=255));af=r+4>>0;ag=p+1>>0;ah=q+1>>0;r=af;p=ag;q=ah;}ai=m+1>>0;aj=n+1>>0;m=ai;n=aj;}}else if(j===1){ak=h;al=d.Y;am=ak;an=al;while(true){if(!(!((am===i)))){break;}ao=$subslice(a.Pix,($imul(am,a.Stride)));ap=($imul(((an-c.Rect.Min.Y>>0)),c.YStride))+((d.X-c.Rect.Min.X>>0))>>0;ar=($imul(((an-c.Rect.Min.Y>>0)),c.CStride))-(aq=c.Rect.Min.X/2,(aq===aq&&aq!==1/0&&aq!==-1/0)?aq>>0:$throwRuntimeError("integer divide by zero"))>>0;as=f;at=d.X;au=as;av=at;while(true){if(!(!((au===g)))){break;}ax=ar+(aw=av/2,(aw===aw&&aw!==1/0&&aw!==-1/0)?aw>>0:$throwRuntimeError("integer divide by zero"))>>0;az=$imul(((ay=c.Y,((ap<0||ap>=ay.$length)?$throwRuntimeError("index out of range"):ay.$array[ay.$offset+ap]))>>0),65792);bb=((ba=c.Cb,((ax<0||ax>=ba.$length)?$throwRuntimeError("index out of range"):ba.$array[ba.$offset+ax]))>>0)-128>>0;bd=((bc=c.Cr,((ax<0||ax>=bc.$length)?$throwRuntimeError("index out of range"):bc.$array[bc.$offset+ax]))>>0)-128>>0;be=((az+($imul(91881,bd))>>0))>>16>>0;bf=(((az-($imul(22554,bb))>>0)-($imul(46802,bd))>>0))>>16>>0;bg=((az+($imul(116130,bb))>>0))>>16>>0;if(be<0){be=0;}else if(be>255){be=255;}if(bf<0){bf=0;}else if(bf>255){bf=255;}if(bg<0){bg=0;}else if(bg>255){bg=255;}(bh=au+0>>0,((bh<0||bh>=ao.$length)?$throwRuntimeError("index out of range"):ao.$array[ao.$offset+bh]=(be<<24>>>24)));(bi=au+1>>0,((bi<0||bi>=ao.$length)?$throwRuntimeError("index out of range"):ao.$array[ao.$offset+bi]=(bf<<24>>>24)));(bj=au+2>>0,((bj<0||bj>=ao.$length)?$throwRuntimeError("index out of range"):ao.$array[ao.$offset+bj]=(bg<<24>>>24)));(bk=au+3>>0,((bk<0||bk>=ao.$length)?$throwRuntimeError("index out of range"):ao.$array[ao.$offset+bk]=255));bl=au+4>>0;bm=av+1>>0;bn=ap+1>>0;au=bl;av=bm;ap=bn;}bo=am+1>>0;bp=an+1>>0;am=bo;an=bp;}}else if(j===2){bq=h;br=d.Y;bs=bq;bt=br;while(true){if(!(!((bs===i)))){break;}bu=$subslice(a.Pix,($imul(bs,a.Stride)));bv=($imul(((bt-c.Rect.Min.Y>>0)),c.YStride))+((d.X-c.Rect.Min.X>>0))>>0;bz=($imul((((bw=bt/2,(bw===bw&&bw!==1/0&&bw!==-1/0)?bw>>0:$throwRuntimeError("integer divide by zero"))-(bx=c.Rect.Min.Y/2,(bx===bx&&bx!==1/0&&bx!==-1/0)?bx>>0:$throwRuntimeError("int
|
||
|
$packages["image/draw"]=(function(){var $pkg={},$init,A,B,C,Z,AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y;A=$packages["image"];B=$packages["image/color"];C=$packages["image/internal/imageutil"];Z=$ptrType(A.Point);AA=$ptrType(A.RGBA);AB=$ptrType(A.Paletted);AC=$ptrType(A.Uniform);AD=$ptrType(A.NRGBA);AE=$ptrType(A.YCbCr);AF=$ptrType(A.Gray);AG=$ptrType(A.CMYK);AH=$ptrType(A.Alpha);AI=$arrayType($Int32,4);AJ=$sliceType(AI);AK=$sliceType($Uint8);I=function(b,c,d,e,f,g){var $ptr,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:h=$clone(c.Min,A.Point);i=b.Bounds();$s=1;case 1:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=c.Intersect(i);$s=2;case 2:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}A.Rectangle.copy(c,j);k=d.Bounds();$s=3;case 3:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}l=k.Add(h.Sub(e));$s=4;case 4:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}m=c.Intersect(l);$s=5;case 5:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}A.Rectangle.copy(c,m);if(!($interfaceIsEqual(f,$ifaceNil))){$s=6;continue;}$s=7;continue;case 6:n=f.Bounds();$s=8;case 8:if($c){$c=false;n=n.$blk();}if(n&&n.$blk!==undefined){break s;}o=n.Add(h.Sub(g));$s=9;case 9:if($c){$c=false;o=o.$blk();}if(o&&o.$blk!==undefined){break s;}p=c.Intersect(o);$s=10;case 10:if($c){$c=false;p=p.$blk();}if(p&&p.$blk!==undefined){break s;}A.Rectangle.copy(c,p);case 7:q=c.Min.X-h.X>>0;r=c.Min.Y-h.Y>>0;if((q===0)&&(r===0)){return;}e.X=e.X+(q)>>0;e.Y=e.Y+(r)>>0;if(!(g===Z.nil)){g.X=g.X+(q)>>0;g.Y=g.Y+(r)>>0;}$s=-1;case-1:}return;}if($f===undefined){$f={$blk:I};}$f.$ptr=$ptr;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.$s=$s;$f.$r=$r;return $f;};J=function(b,c,d,e){var $ptr,b,c,d,e;e=$clone(e,A.Point);c=$clone(c,A.Rectangle);return $interfaceIsEqual(b,d)&&c.Overlaps(c.Add(e.Sub(c.Min)))&&(e.Y<c.Min.Y||((e.Y===c.Min.Y)&&e.X<c.Min.X));};K=function(b,c,d,e,f){var $ptr,b,c,d,e,f,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:e=$clone(e,A.Point);c=$clone(c,A.Rectangle);$r=L(b,c,d,e,$ifaceNil,new A.Point.ptr(0,0),f);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=-1;case-1:}return;}if($f===undefined){$f={$blk:K};}$f.$ptr=$ptr;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.$s=$s;$f.$r=$r;return $f;};$pkg.Draw=K;L=function(b,c,d,e,f,g,h){var $ptr,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,au,av,aw,ax,ay,az,b,ba,bb,bc,bd,be,bf,bg,bh,bi,bj,bk,bl,bm,bn,bo,bp,bq,br,bs,bt,bu,bv,bw,bx,by,bz,c,ca,cb,cc,cd,ce,cf,cg,ch,ci,cj,ck,cl,cm,cn,co,cp,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;au=$f.au;av=$f.av;aw=$f.aw;ax=$f.ax;ay=$f.ay;az=$f.az;b=$f.b;ba=$f.ba;bb=$f.bb;bc=$f.bc;bd=$f.bd;be=$f.be;bf=$f.bf;bg=$f.bg;bh=$f.bh;bi=$f.bi;bj=$f.bj;bk=$f.bk;bl=$f.bl;bm=$f.bm;bn=$f.bn;bo=$f.bo;bp=$f.bp;bq=$f.bq;br=$f.br;bs=$f.bs;bt=$f.bt;bu=$f.bu;bv=$f.bv;bw=$f.bw;bx=$f.bx;by=$f.by;bz=$f.bz;c=$f.c;ca=$f.ca;cb=$f.cb;cc=$f.cc;cd=$f.cd;ce=$f.ce;cf=$f.cf;cg=$f.cg;ch=$f.ch;ci=$f.ci;cj=$f.cj;ck=$f.ck;cl=$f.cl;cm=$f.cm;cn=$f.cn;co=$f.co;cp=$f.cp;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=[c];e=[e];g=[g];i=[i];g[0]=$clone(g[0],A.Point);e[0]=$clone(e[0],A.P
|
||
|
$packages["github.com/hajimehoshi/ebiten/internal/graphics"]=(function(){var $pkg={},$init,A,B,C,G,D,H,E,F,J,N,R,AE,AF,AJ,AM,AN,AO,AP,AQ,AR,AS,AT,AU,AV,AW,AX,AY,AZ,BA,BB,K,L,V,W,X,AA,AB,AC,AD,AH,I,M,Q,S,T,U,Y,Z,AG,AI,AK,AL;A=$packages["errors"];B=$packages["fmt"];C=$packages["github.com/hajimehoshi/ebiten/internal/graphics/opengl"];G=$packages["image"];D=$packages["image/color"];H=$packages["image/draw"];E=$packages["math"];F=$packages["strings"];J=$pkg.Matrix=$newType(8,$kindInterface,"graphics.Matrix","Matrix","github.com/hajimehoshi/ebiten/internal/graphics",null);N=$pkg.TextureQuads=$newType(8,$kindInterface,"graphics.TextureQuads","TextureQuads","github.com/hajimehoshi/ebiten/internal/graphics",null);R=$pkg.Framebuffer=$newType(0,$kindStruct,"graphics.Framebuffer","Framebuffer","github.com/hajimehoshi/ebiten/internal/graphics",function(native$0_,width_,height_,flipY_,proMatrix_){this.$val=this;if(arguments.length===0){this.native$0=new C.Framebuffer.ptr(null);this.width=0;this.height=0;this.flipY=false;this.proMatrix=AS.nil;return;}this.native$0=native$0_;this.width=width_;this.height=height_;this.flipY=flipY_;this.proMatrix=proMatrix_;});AE=$pkg.programContext=$newType(0,$kindStruct,"graphics.programContext","programContext","github.com/hajimehoshi/ebiten/internal/graphics",function(program_,context_,projectionMatrix_,texture_,geoM_,colorM_){this.$val=this;if(arguments.length===0){this.program=new C.Program.ptr(null);this.context=AP.nil;this.projectionMatrix=AM.nil;this.texture=new C.Texture.ptr(null);this.geoM=$ifaceNil;this.colorM=$ifaceNil;return;}this.program=program_;this.context=context_;this.projectionMatrix=projectionMatrix_;this.texture=texture_;this.geoM=geoM_;this.colorM=colorM_;});AF=$pkg.shaderId=$newType(4,$kindInt,"graphics.shaderId","shaderId","github.com/hajimehoshi/ebiten/internal/graphics",null);AJ=$pkg.Texture=$newType(0,$kindStruct,"graphics.Texture","Texture","github.com/hajimehoshi/ebiten/internal/graphics",function(native$0_,width_,height_){this.$val=this;if(arguments.length===0){this.native$0=new C.Texture.ptr(null);this.width=0;this.height=0;return;}this.native$0=native$0_;this.width=width_;this.height=height_;});AM=$sliceType($Float32);AN=$sliceType($Int16);AO=$sliceType($emptyInterface);AP=$ptrType(C.Context);AQ=$arrayType($Float64,4);AR=$arrayType(AQ,4);AS=$ptrType(AR);AT=$ptrType(R);AU=$sliceType(C.Shader);AV=$sliceType($Uint16);AW=$arrayType($Float32,5);AX=$arrayType(AW,4);AY=$ptrType(G.RGBA);AZ=$ptrType(AJ);BA=$sliceType($Uint8);BB=$ptrType(AE);I=function(a){var $ptr,a;return new AM([$fround((a.nilCheck,a[0])[0]),$fround((a.nilCheck,a[1])[0]),$fround((a.nilCheck,a[2])[0]),$fround((a.nilCheck,a[3])[0]),$fround((a.nilCheck,a[0])[1]),$fround((a.nilCheck,a[1])[1]),$fround((a.nilCheck,a[2])[1]),$fround((a.nilCheck,a[3])[1]),$fround((a.nilCheck,a[0])[2]),$fround((a.nilCheck,a[1])[2]),$fround((a.nilCheck,a[2])[2]),$fround((a.nilCheck,a[3])[2]),$fround((a.nilCheck,a[0])[3]),$fround((a.nilCheck,a[1])[3]),$fround((a.nilCheck,a[2])[3]),$fround((a.nilCheck,a[3])[3])]);};M=function(a,b,c,d,e,f){var $ptr,a,aa,ab,ac,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);b=$clone(b,C.Texture);if(!L){$s=1;continue;}$s=2;continue;case 1:g=Y(a);$s=3;case 3:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;if(!($interfaceIsEqual(h,$ifaceNil))){$s=4;continue;}$s=5;continue;case 4:return h;case 5:L=true;case 2:i=d.Len();$s=8;case 8:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}if(i===0){$s=6;continue;}$s=7;continue;case 6:return $ifaceNil;case 7:j=d.Len();$s=11;case 11:if(
|
||
|
$packages["github.com/hajimehoshi/ebiten/internal/ui"]=(function(){var $pkg={},$init,A,B,C,M,N,AC,AK,AL,AM,AN,AO,AP,AQ,AR,AS,L,AJ,Q,AB,AD,S,T,U,V,W,X,Y,Z,AA,AE,AF,AG,AH,AI;A=$packages["github.com/gopherjs/gopherjs/js"];B=$packages["strconv"];C=$packages["time"];M=$pkg.input=$newType(0,$kindStruct,"ui.input","input","github.com/hajimehoshi/ebiten/internal/ui",function(keyPressed_,mouseButtonPressed_,cursorX_,cursorY_,gamepads_){this.$val=this;if(arguments.length===0){this.keyPressed=AK.zero();this.mouseButtonPressed=AK.zero();this.cursorX=0;this.cursorY=0;this.gamepads=AM.zero();return;}this.keyPressed=keyPressed_;this.mouseButtonPressed=mouseButtonPressed_;this.cursorX=cursorX_;this.cursorY=cursorY_;this.gamepads=gamepads_;});N=$pkg.gamePad=$newType(0,$kindStruct,"ui.gamePad","gamePad","github.com/hajimehoshi/ebiten/internal/ui",function(axisNum_,axes_,buttonNum_,buttonPressed_){this.$val=this;if(arguments.length===0){this.axisNum=0;this.axes=AL.zero();this.buttonNum=0;this.buttonPressed=AK.zero();return;}this.axisNum=axisNum_;this.axes=axes_;this.buttonNum=buttonNum_;this.buttonPressed=buttonPressed_;});AC=$pkg.userInterface=$newType(0,$kindStruct,"ui.userInterface","userInterface","github.com/hajimehoshi/ebiten/internal/ui",function(){this.$val=this;if(arguments.length===0){return;}});AK=$arrayType($Bool,256);AL=$arrayType($Float64,16);AM=$arrayType(N,16);AN=$structType([]);AO=$funcType([],[],false);AP=$ptrType(A.Object);AQ=$funcType([AP],[],false);AR=$ptrType(M);AS=$ptrType(AC);M.ptr.prototype.KeyDown=function(a){var $ptr,a,b,c,d,e,f,g;b=this;c=(d=Q[$Int.keyFor(a)],d!==undefined?[d.v,true]:[0,false]);e=c[0];f=c[1];if(!f){return;}(g=b.keyPressed,((e<0||e>=g.length)?$throwRuntimeError("index out of range"):g[e]=true));};M.prototype.KeyDown=function(a){return this.$val.KeyDown(a);};M.ptr.prototype.KeyUp=function(a){var $ptr,a,b,c,d,e,f,g;b=this;c=(d=Q[$Int.keyFor(a)],d!==undefined?[d.v,true]:[0,false]);e=c[0];f=c[1];if(!f){return;}(g=b.keyPressed,((e<0||e>=g.length)?$throwRuntimeError("index out of range"):g[e]=false));};M.prototype.KeyUp=function(a){return this.$val.KeyUp(a);};M.ptr.prototype.MouseDown=function(a){var $ptr,a,b,c,d;b=this;c=b.mouseButtonPressed;d=a;if(d===0){c.nilCheck,c[0]=true;}else if(d===1){c.nilCheck,c[2]=true;}else if(d===2){c.nilCheck,c[1]=true;}};M.prototype.MouseDown=function(a){return this.$val.MouseDown(a);};M.ptr.prototype.MouseUp=function(a){var $ptr,a,b,c,d;b=this;c=b.mouseButtonPressed;d=a;if(d===0){c.nilCheck,c[0]=false;}else if(d===1){c.nilCheck,c[2]=false;}else if(d===2){c.nilCheck,c[1]=false;}};M.prototype.MouseUp=function(a){return this.$val.MouseUp(a);};M.ptr.prototype.SetMouseCursor=function(a,b){var $ptr,a,b,c,d,e;c=this;d=a;e=b;c.cursorX=d;c.cursorY=e;};M.prototype.SetMouseCursor=function(a,b){return this.$val.SetMouseCursor(a,b);};M.ptr.prototype.UpdateGamepads=function(){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;a=this;b=$global.navigator;if(b.getGamepads===undefined){return;}c=b.getGamepads();d=$parseInt(c.length)>>0;e=0;while(true){if(!(e<d)){break;}f=c[e];if(f===undefined||f===null){e=e+(1)>>0;continue;}g=f.axes;h=$parseInt(g.length)>>0;(i=a.gamepads,((e<0||e>=i.length)?$throwRuntimeError("index out of range"):i[e])).axisNum=h;j=0;while(true){if(!(j<16)){break;}if(h<=j){(k=(l=a.gamepads,((e<0||e>=l.length)?$throwRuntimeError("index out of range"):l[e])).axes,((j<0||j>=k.length)?$throwRuntimeError("index out of range"):k[j]=0));j=j+(1)>>0;continue;}(m=(n=a.gamepads,((e<0||e>=n.length)?$throwRuntimeError("index out of range"):n[e])).axes,((j<0||j>=m.length)?$throwRuntimeError("index out of range"):m[j]=$parseFloat(g[j])));j=j+(1)>>0;}o=f.buttons;p=$parseInt(o.length)>>0;(q=a.gamepads,((e<0||e>=q.length)?$throwRuntimeError("index out of range"):q[e])).buttonNum=p;r=0;while(true){if(!(r<256)){break;}if(p<=r){(s=(t=a.gamepads,((e<0||e>=t.length)?$throwRuntimeError("index out of range"):t[e])).buttonPressed,((r<0||r>=s.length)?$throwRuntimeError("index out of range"):s[r]=false));r=r+(1)>>0;continue;}(u=(v=a.gamepads,((e<0||e>=v.length)?$throwRuntimeError("index out of
|
||
|
$packages["github.com/hajimehoshi/ebiten"]=(function(){var $pkg={},$init,E,F,J,D,C,B,G,H,A,I,K,P,V,AD,AE,AF,AI,AJ,AK,AL,AO,BF,BG,BH,BI,BJ,BK,BL,BM,BN,BO,BP,BQ,BR,BS,BT,BU,BV,BW,BX,AP,BA,N,O,AA,AB,AC,AH,AM,AN,AQ,BC;E=$packages["errors"];F=$packages["fmt"];J=$packages["github.com/hajimehoshi/ebiten/internal/audio"];D=$packages["github.com/hajimehoshi/ebiten/internal/graphics"];C=$packages["github.com/hajimehoshi/ebiten/internal/graphics/opengl"];B=$packages["github.com/hajimehoshi/ebiten/internal/ui"];G=$packages["image"];H=$packages["image/color"];A=$packages["math"];I=$packages["runtime"];K=$packages["time"];P=$pkg.ColorM=$newType(0,$kindStruct,"ebiten.ColorM","ColorM","github.com/hajimehoshi/ebiten",function(initialized_,es_){this.$val=this;if(arguments.length===0){this.initialized=false;this.es=BI.zero();return;}this.initialized=initialized_;this.es=es_;});V=$pkg.GeoM=$newType(0,$kindStruct,"ebiten.GeoM","GeoM","github.com/hajimehoshi/ebiten",function(initialized_,es_){this.$val=this;if(arguments.length===0){this.initialized=false;this.es=BK.zero();return;}this.initialized=initialized_;this.es=es_;});AD=$pkg.graphicsContext=$newType(0,$kindStruct,"ebiten.graphicsContext","graphicsContext","github.com/hajimehoshi/ebiten",function(screen_,defaultRenderTarget_,screenScale_){this.$val=this;if(arguments.length===0){this.screen=BL.nil;this.defaultRenderTarget=BL.nil;this.screenScale=0;return;}this.screen=screen_;this.defaultRenderTarget=defaultRenderTarget_;this.screenScale=screenScale_;});AE=$pkg.Image=$newType(0,$kindStruct,"ebiten.Image","Image","github.com/hajimehoshi/ebiten",function(framebuffer_,texture_,pixels_,width_,height_){this.$val=this;if(arguments.length===0){this.framebuffer=BO.nil;this.texture=BP.nil;this.pixels=BQ.nil;this.width=0;this.height=0;return;}this.framebuffer=framebuffer_;this.texture=texture_;this.pixels=pixels_;this.width=width_;this.height=height_;});AF=$pkg.DrawImageOptions=$newType(0,$kindStruct,"ebiten.DrawImageOptions","DrawImageOptions","github.com/hajimehoshi/ebiten",function(ImageParts_,GeoM_,ColorM_,Parts_){this.$val=this;if(arguments.length===0){this.ImageParts=$ifaceNil;this.GeoM=new V.ptr(false,BK.zero());this.ColorM=new P.ptr(false,BI.zero());this.Parts=BN.nil;return;}this.ImageParts=ImageParts_;this.GeoM=GeoM_;this.ColorM=ColorM_;this.Parts=Parts_;});AI=$pkg.ImagePart=$newType(0,$kindStruct,"ebiten.ImagePart","ImagePart","github.com/hajimehoshi/ebiten",function(Dst_,Src_){this.$val=this;if(arguments.length===0){this.Dst=new G.Rectangle.ptr(new G.Point.ptr(0,0),new G.Point.ptr(0,0));this.Src=new G.Rectangle.ptr(new G.Point.ptr(0,0),new G.Point.ptr(0,0));return;}this.Dst=Dst_;this.Src=Src_;});AJ=$pkg.ImageParts=$newType(8,$kindInterface,"ebiten.ImageParts","ImageParts","github.com/hajimehoshi/ebiten",null);AK=$pkg.imageParts=$newType(12,$kindSlice,"ebiten.imageParts","imageParts","github.com/hajimehoshi/ebiten",null);AL=$pkg.wholeImage=$newType(0,$kindStruct,"ebiten.wholeImage","wholeImage","github.com/hajimehoshi/ebiten",function(width_,height_){this.$val=this;if(arguments.length===0){this.width=0;this.height=0;return;}this.width=width_;this.height=height_;});AO=$pkg.textureQuads=$newType(0,$kindStruct,"ebiten.textureQuads","textureQuads","github.com/hajimehoshi/ebiten",function(parts_,width_,height_){this.$val=this;if(arguments.length===0){this.parts=$ifaceNil;this.width=0;this.height=0;return;}this.parts=parts_;this.width=width_;this.height=height_;});BF=$ptrType(C.Context);BG=$structType([{prop:"running",name:"running",pkg:"github.com/hajimehoshi/ebiten",typ:$Bool,tag:""},{prop:"fps",name:"fps",pkg:"github.com/hajimehoshi/ebiten",typ:$Float64,tag:""},{prop:"newScreenWidth",name:"newScreenWidth",pkg:"github.com/hajimehoshi/ebiten",typ:$Int,tag:""},{prop:"newScreenHeight",name:"newScreenHeight",pkg:"github.com/hajimehoshi/ebiten",typ:$Int,tag:""},{prop:"newScreenScale",name:"newScreenScale",pkg:"github.com/hajimehoshi/ebiten",typ:$Int,tag:""}]);BH=$arrayType($Float64,5);BI=$arrayType(BH,4);BJ=$arrayType($Float64,3);BK=$arrayType(BJ,2);BL=$ptrType(AE);BM=$ptrType(AD);BN=$sliceType(A
|
||
|
$packages["compress/flate"]=(function(){var $pkg={},$init,E,A,B,C,D,F,Y,Z,AK,AL,AM,AO,AP,AQ,AR,BL,BM,BN,BO,BW,BX,BY,CC,CD,CE,CF,CG,CH,CI,CJ,CK,CL,CM,CN,CR,CT,Q,BI,AF,AG,AS,AW,G,AC,AD,AE,AT,AU,AV,AX,AY;E=$packages["bufio"];A=$packages["fmt"];B=$packages["io"];C=$packages["math"];D=$packages["sort"];F=$packages["strconv"];Y=$pkg.huffmanEncoder=$newType(0,$kindStruct,"flate.huffmanEncoder","huffmanEncoder","compress/flate",function(codeBits_,code_){this.$val=this;if(arguments.length===0){this.codeBits=BN.nil;this.code=BY.nil;return;}this.codeBits=codeBits_;this.code=code_;});Z=$pkg.literalNode=$newType(0,$kindStruct,"flate.literalNode","literalNode","compress/flate",function(literal_,freq_){this.$val=this;if(arguments.length===0){this.literal=0;this.freq=0;return;}this.literal=literal_;this.freq=freq_;});AK=$pkg.CorruptInputError=$newType(8,$kindInt64,"flate.CorruptInputError","CorruptInputError","compress/flate",null);AL=$pkg.InternalError=$newType(8,$kindString,"flate.InternalError","InternalError","compress/flate",null);AM=$pkg.ReadError=$newType(0,$kindStruct,"flate.ReadError","ReadError","compress/flate",function(Offset_,Err_){this.$val=this;if(arguments.length===0){this.Offset=new $Int64(0,0);this.Err=$ifaceNil;return;}this.Offset=Offset_;this.Err=Err_;});AO=$pkg.Resetter=$newType(8,$kindInterface,"flate.Resetter","Resetter","compress/flate",null);AP=$pkg.huffmanDecoder=$newType(0,$kindStruct,"flate.huffmanDecoder","huffmanDecoder","compress/flate",function(min_,chunks_,links_,linkMask_){this.$val=this;if(arguments.length===0){this.min=0;this.chunks=CD.zero();this.links=BM.nil;this.linkMask=0;return;}this.min=min_;this.chunks=chunks_;this.links=links_;this.linkMask=linkMask_;});AQ=$pkg.Reader=$newType(8,$kindInterface,"flate.Reader","Reader","compress/flate",null);AR=$pkg.decompressor=$newType(0,$kindStruct,"flate.decompressor","decompressor","compress/flate",function(r_,roffset_,woffset_,b_,nb_,h1_,h2_,bits_,codebits_,hist_,hp_,hw_,hfull_,buf_,step_,final$15_,err_,toRead_,hl_,hd_,copyLen_,copyDist_){this.$val=this;if(arguments.length===0){this.r=$ifaceNil;this.roffset=new $Int64(0,0);this.woffset=new $Int64(0,0);this.b=0;this.nb=0;this.h1=new AP.ptr(0,CD.zero(),BM.nil,0);this.h2=new AP.ptr(0,CD.zero(),BM.nil,0);this.bits=CI.nil;this.codebits=CK.nil;this.hist=CM.nil;this.hp=0;this.hw=0;this.hfull=false;this.buf=CN.zero();this.step=$throwNilPointerError;this.final$15=false;this.err=$ifaceNil;this.toRead=BN.nil;this.hl=CG.nil;this.hd=CG.nil;this.copyLen=0;this.copyDist=0;return;}this.r=r_;this.roffset=roffset_;this.woffset=woffset_;this.b=b_;this.nb=nb_;this.h1=h1_;this.h2=h2_;this.bits=bits_;this.codebits=codebits_;this.hist=hist_;this.hp=hp_;this.hw=hw_;this.hfull=hfull_;this.buf=buf_;this.step=step_;this.final$15=final$15_;this.err=err_;this.toRead=toRead_;this.hl=hl_;this.hd=hd_;this.copyLen=copyLen_;this.copyDist=copyDist_;});BL=$sliceType($Uint32);BM=$sliceType(BL);BN=$sliceType($Uint8);BO=$sliceType($Int);BW=$sliceType($Int32);BX=$ptrType(Y);BY=$sliceType($Uint16);CC=$sliceType(Z);CD=$arrayType($Uint32,512);CE=$arrayType($Int,16);CF=$ptrType(AR);CG=$ptrType(AP);CH=$arrayType($Int,316);CI=$ptrType(CH);CJ=$arrayType($Int,19);CK=$ptrType(CJ);CL=$arrayType($Uint8,32768);CM=$ptrType(CL);CN=$arrayType($Uint8,4);CR=$ptrType(AM);CT=$funcType([CF],[],false);G=function(a,b,c,d){var $ptr,a,b,c,d,e;if(b<=c){$copySlice($subslice(a,b,(b+d>>0)),$subslice(a,c,(c+d>>0)));return;}while(true){if(b>=(c+d>>0)){$copySlice($subslice(a,b,(b+d>>0)),$subslice(a,c,(c+d>>0)));return;}e=b-c>>0;$copySlice($subslice(a,b,(b+e>>0)),$subslice(a,c,(c+e>>0)));d=d-(e)>>0;b=b+(e)>>0;}};AC=function(a){var $ptr,a;return new Y.ptr($makeSlice(BN,a),$makeSlice(BY,a));};AD=function(){var $ptr,a,b,c,d,e,f;a=AC(286);b=a.codeBits;c=a.code;d=0;d=0;while(true){if(!(d<286)){break;}e=0;f=0;switch(0){default:if(d<144){e=d+48<<16>>>16;f=8;break;}else if(d<256){e=(d+400<<16>>>16)-144<<16>>>16;f=9;break;}else if(d<280){e=d-256<<16>>>16;f=7;break;}else{e=(d+192<<16>>>16)-280<<16>>>16;f=8;}}((d<0||d>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offs
|
||
|
$packages["hash"]=(function(){var $pkg={},$init,A,C,E;A=$packages["io"];C=$pkg.Hash32=$newType(8,$kindInterface,"hash.Hash32","Hash32","hash",null);E=$sliceType($Uint8);C.init([{prop:"BlockSize",name:"BlockSize",pkg:"",typ:$funcType([],[$Int],false)},{prop:"Reset",name:"Reset",pkg:"",typ:$funcType([],[],false)},{prop:"Size",name:"Size",pkg:"",typ:$funcType([],[$Int],false)},{prop:"Sum",name:"Sum",pkg:"",typ:$funcType([E],[E],false)},{prop:"Sum32",name:"Sum32",pkg:"",typ:$funcType([],[$Uint32],false)},{prop:"Write",name:"Write",pkg:"",typ:$funcType([E],[$Int,$error],false)}]);$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["hash/adler32"]=(function(){var $pkg={},$init,A,B,F,G,C,D,E;A=$packages["hash"];B=$pkg.digest=$newType(4,$kindUint32,"adler32.digest","digest","hash/adler32",null);F=$ptrType(B);G=$sliceType($Uint8);$ptrType(B).prototype.Reset=function(){var $ptr,a;a=this;a.$set(1);};C=function(){var $ptr,a;a=$newDataPointer(0,F);a.Reset();return a;};$pkg.New=C;$ptrType(B).prototype.Size=function(){var $ptr,a;a=this;return 4;};$ptrType(B).prototype.BlockSize=function(){var $ptr,a;a=this;return 1;};D=function(a,b){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n;c=(((a&65535)>>>0)>>>0);d=((a>>>16>>>0)>>>0);e=c;f=d;while(true){if(!(b.$length>0)){break;}g=G.nil;if(b.$length>5552){h=$subslice(b,0,5552);i=$subslice(b,5552);b=h;g=i;}j=b;k=0;while(true){if(!(k<j.$length)){break;}l=((k<0||k>=j.$length)?$throwRuntimeError("index out of range"):j.$array[j.$offset+k]);e=e+((l>>>0))>>>0;f=f+(e)>>>0;k++;}e=(m=e%(65521),m===m?m:$throwRuntimeError("integer divide by zero"));f=(n=f%(65521),n===n?n:$throwRuntimeError("integer divide by zero"));b=g;}return((((f<<16>>>0)|e)>>>0)>>>0);};$ptrType(B).prototype.Write=function(a){var $ptr,a,b,c,d,e,f;b=0;c=$ifaceNil;d=this;d.$set(D(d.$get(),a));e=a.$length;f=$ifaceNil;b=e;c=f;return[b,c];};$ptrType(B).prototype.Sum32=function(){var $ptr,a;a=this;return(a.$get()>>>0);};$ptrType(B).prototype.Sum=function(a){var $ptr,a,b,c;b=this;c=(b.$get()>>>0);return $append(a,((c>>>24>>>0)<<24>>>24),((c>>>16>>>0)<<24>>>24),((c>>>8>>>0)<<24>>>24),(c<<24>>>24));};E=function(a){var $ptr,a;return(D(1,a)>>>0);};$pkg.Checksum=E;F.methods=[{prop:"Reset",name:"Reset",pkg:"",typ:$funcType([],[],false)},{prop:"Size",name:"Size",pkg:"",typ:$funcType([],[$Int],false)},{prop:"BlockSize",name:"BlockSize",pkg:"",typ:$funcType([],[$Int],false)},{prop:"Write",name:"Write",pkg:"",typ:$funcType([G],[$Int,$error],false)},{prop:"Sum32",name:"Sum32",pkg:"",typ:$funcType([],[$Uint32],false)},{prop:"Sum",name:"Sum",pkg:"",typ:$funcType([G],[G],false)}];$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["compress/zlib"]=(function(){var $pkg={},$init,A,B,C,G,D,E,F,H,P,Q,U,J,K;A=$packages["bufio"];B=$packages["compress/flate"];C=$packages["errors"];G=$packages["fmt"];D=$packages["hash"];E=$packages["hash/adler32"];F=$packages["io"];H=$pkg.reader=$newType(0,$kindStruct,"zlib.reader","reader","compress/zlib",function(r_,decompressor_,digest_,err_,scratch_){this.$val=this;if(arguments.length===0){this.r=$ifaceNil;this.decompressor=$ifaceNil;this.digest=$ifaceNil;this.err=$ifaceNil;this.scratch=Q.zero();return;}this.r=r_;this.decompressor=decompressor_;this.digest=digest_;this.err=err_;this.scratch=scratch_;});P=$sliceType($Uint8);Q=$arrayType($Uint8,4);U=$ptrType(H);J=function(a){var $ptr,a,b,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=K(a,P.nil);$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}$s=2;case 2:return b;}return;}if($f===undefined){$f={$blk:J};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.$s=$s;$f.$r=$r;return $f;};$pkg.NewReader=J;K=function(a,b){var $ptr,a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=new H.ptr($ifaceNil,$ifaceNil,$ifaceNil,$ifaceNil,Q.zero());d=c.Reset(a,b);$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(!($interfaceIsEqual(e,$ifaceNil))){return[$ifaceNil,e];}return[c,$ifaceNil];}return;}if($f===undefined){$f={$blk:K};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};$pkg.NewReaderDict=K;H.ptr.prototype.Read=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=0;c=$ifaceNil;d=this;if(!($interfaceIsEqual(d.err,$ifaceNil))){e=0;f=d.err;b=e;c=f;return[b,c];}if(a.$length===0){g=0;h=$ifaceNil;b=g;c=h;return[b,c];}j=d.decompressor.Read(a);$s=1;case 1:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}i=j;b=i[0];c=i[1];k=d.digest.Write($subslice(a,0,b));$s=2;case 2:if($c){$c=false;k=k.$blk();}if(k&&k.$blk!==undefined){break s;}k;if(!((b===0))||!($interfaceIsEqual(c,F.EOF))){d.err=c;return[b,c];}m=F.ReadFull(d.r,$subslice(new P(d.scratch),0,4));$s=3;case 3:if($c){$c=false;m=m.$blk();}if(m&&m.$blk!==undefined){break s;}l=m;n=l[1];if(!($interfaceIsEqual(n,$ifaceNil))){$s=4;continue;}$s=5;continue;case 4:d.err=n;o=0;p=n;b=o;c=p;return[b,c];case 5:q=(((((((d.scratch[0]>>>0)<<24>>>0)|((d.scratch[1]>>>0)<<16>>>0))>>>0)|((d.scratch[2]>>>0)<<8>>>0))>>>0)|(d.scratch[3]>>>0))>>>0;r=d.digest.Sum32();$s=8;case 8:if($c){$c=false;r=r.$blk();}if(r&&r.$blk!==undefined){break s;}if(!((q===r))){$s=6;continue;}$s=7;continue;case 6:d.err=$pkg.ErrChecksum;s=0;t=d.err;b=s;c=t;return[b,c];case 7:return[b,c];}return;}if($f===undefined){$f={$blk:H.ptr.prototype.Read};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.s=s;$f.t=t;$f.$s=$s;$f.$r=$r;return $f;};H.prototype.Read=function(a){return this.$val.Read(a);};H.ptr.prototype.Close=function(){var $ptr,a,b,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=this;if(!($interfaceIsEqual(a.err,$ifaceNil))){return a.err;}b=a.decompressor.Close();$s=1;case 1:if($c){$c=false;b=b.$blk();}if(b&&b.$blk!==undefined){break s;}a.err=b;return a.err;}return;}if($f===undefined){$f={$blk:H.ptr.prototype.Close};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.$s=$s;$f.$r=$r;return $f;};H.prototype.Close=function(){return this.$val.Close();};H.ptr.prototype.Reset=function(a,b){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,$s,$r;$s=0;var $f,$c=false;if(thi
|
||
|
$packages["encoding/binary"]=(function(){var $pkg={},$init,A,B,C,D,G,Y,U;A=$packages["errors"];B=$packages["io"];C=$packages["math"];D=$packages["reflect"];G=$pkg.bigEndian=$newType(0,$kindStruct,"binary.bigEndian","bigEndian","encoding/binary",function(){this.$val=this;if(arguments.length===0){return;}});Y=$sliceType($Uint8);G.ptr.prototype.Uint16=function(a){var $ptr,a;return(((1>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+1])<<16>>>16)|(((0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0])<<16>>>16)<<8<<16>>>16))>>>0;};G.prototype.Uint16=function(a){return this.$val.Uint16(a);};G.ptr.prototype.PutUint16=function(a,b){var $ptr,a,b;(0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0]=((b>>>8<<16>>>16)<<24>>>24));(1>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+1]=(b<<24>>>24));};G.prototype.PutUint16=function(a,b){return this.$val.PutUint16(a,b);};G.ptr.prototype.Uint32=function(a){var $ptr,a;return(((((((3>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+3])>>>0)|(((2>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+2])>>>0)<<8>>>0))>>>0)|(((1>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+1])>>>0)<<16>>>0))>>>0)|(((0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0])>>>0)<<24>>>0))>>>0;};G.prototype.Uint32=function(a){return this.$val.Uint32(a);};G.ptr.prototype.PutUint32=function(a,b){var $ptr,a,b;(0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0]=((b>>>24>>>0)<<24>>>24));(1>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+1]=((b>>>16>>>0)<<24>>>24));(2>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+2]=((b>>>8>>>0)<<24>>>24));(3>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+3]=(b<<24>>>24));};G.prototype.PutUint32=function(a,b){return this.$val.PutUint32(a,b);};G.ptr.prototype.Uint64=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o;return(b=(c=(d=(e=(f=(g=(h=new $Uint64(0,(7>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+7])),i=$shiftLeft64(new $Uint64(0,(6>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+6])),8),new $Uint64(h.$high|i.$high,(h.$low|i.$low)>>>0)),j=$shiftLeft64(new $Uint64(0,(5>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+5])),16),new $Uint64(g.$high|j.$high,(g.$low|j.$low)>>>0)),k=$shiftLeft64(new $Uint64(0,(4>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+4])),24),new $Uint64(f.$high|k.$high,(f.$low|k.$low)>>>0)),l=$shiftLeft64(new $Uint64(0,(3>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+3])),32),new $Uint64(e.$high|l.$high,(e.$low|l.$low)>>>0)),m=$shiftLeft64(new $Uint64(0,(2>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+2])),40),new $Uint64(d.$high|m.$high,(d.$low|m.$low)>>>0)),n=$shiftLeft64(new $Uint64(0,(1>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+1])),48),new $Uint64(c.$high|n.$high,(c.$low|n.$low)>>>0)),o=$shiftLeft64(new $Uint64(0,(0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0])),56),new $Uint64(b.$high|o.$high,(b.$low|o.$low)>>>0));};G.prototype.Uint64=function(a){return this.$val.Uint64(a);};G.ptr.prototype.PutUint64=function(a,b){var $ptr,a,b;(0>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+0]=($shiftRightUint64(b,56).$low<<24>>>24));(1>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+1]=($shiftRightUint64(b,48).$low<<24>>>24));(2>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+2]=($shiftRightUint64(b,40).$low<<24>>>24));(3>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+3]=($shiftRightUint64(b,32).$low<<24>>>24));(4>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+4]=($shiftRightUint64(b,24).$low<<24>>>24));(5>=a.$length?$throwRuntimeError("index out of range"):a.$array[a.$offset+5]=($
|
||
|
$packages["hash/crc32"]=(function(){var $pkg={},$init,A,B,C,G,M,V,W,X,Y,Z,AA,D,H,I,K,L,N,O,P,Q,R,U;A=$packages["hash"];B=$packages["sync"];C=$pkg.Table=$newType(1024,$kindArray,"crc32.Table","Table","hash/crc32",null);G=$pkg.slicing8Table=$newType(8192,$kindArray,"crc32.slicing8Table","slicing8Table","hash/crc32",null);M=$pkg.digest=$newType(0,$kindStruct,"crc32.digest","digest","hash/crc32",function(crc_,tab_){this.$val=this;if(arguments.length===0){this.crc=0;this.tab=V.nil;return;}this.crc=crc_;this.tab=tab_;});V=$ptrType(C);W=$ptrType(G);X=$arrayType($Uint32,256);Y=$arrayType(C,8);Z=$sliceType($Uint8);AA=$ptrType(M);K=function(a){var $ptr,a,b,c,d,e,f;b=X.zero();c=0;while(true){if(!(c<256)){break;}d=(c>>>0);e=0;while(true){if(!(e<8)){break;}if(((d&1)>>>0)===1){d=(((d>>>1>>>0))^a)>>>0;}else{d=(f=(1),f<32?(d>>>f):0)>>>0;}e=e+(1)>>0;}b.nilCheck,((c<0||c>=b.length)?$throwRuntimeError("index out of range"):b[c]=d);c=c+(1)>>0;}return b;};L=function(a){var $ptr,a,b,c,d,e,f,g,h,i;b=Y.zero();C.copy((b.nilCheck,b[0]),K(a));c=0;while(true){if(!(c<256)){break;}e=(d=(b.nilCheck,b[0]),((c<0||c>=d.length)?$throwRuntimeError("index out of range"):d[c]));f=1;while(true){if(!(f<8)){break;}e=((g=(b.nilCheck,b[0]),h=(e&255)>>>0,((h<0||h>=g.length)?$throwRuntimeError("index out of range"):g[h]))^((e>>>8>>>0)))>>>0;(i=(b.nilCheck,((f<0||f>=b.length)?$throwRuntimeError("index out of range"):b[f])),((c<0||c>=i.length)?$throwRuntimeError("index out of range"):i[c]=e));f=f+(1)>>0;}c=c+(1)>>0;}return b;};N=function(a){var $ptr,a;return new M.ptr(0,a);};$pkg.New=N;O=function(){var $ptr;return N($pkg.IEEETable);};$pkg.NewIEEE=O;M.ptr.prototype.Size=function(){var $ptr,a;a=this;return 4;};M.prototype.Size=function(){return this.$val.Size();};M.ptr.prototype.BlockSize=function(){var $ptr,a;a=this;return 1;};M.prototype.BlockSize=function(){return this.$val.BlockSize();};M.ptr.prototype.Reset=function(){var $ptr,a;a=this;a.crc=0;};M.prototype.Reset=function(){return this.$val.Reset();};P=function(a,b,c){var $ptr,a,b,c,d,e,f,g;a=~a>>>0;d=c;e=0;while(true){if(!(e<d.$length)){break;}f=((e<0||e>=d.$length)?$throwRuntimeError("index out of range"):d.$array[d.$offset+e]);a=((g=((a<<24>>>24)^f)<<24>>>24,(b.nilCheck,((g<0||g>=b.length)?$throwRuntimeError("index out of range"):b[g])))^((a>>>8>>>0)))>>>0;e++;}return~a>>>0;};Q=function(a,b,c){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;a=~a>>>0;while(true){if(!(c.$length>8)){break;}a=(a^(((((((((0>=c.$length?$throwRuntimeError("index out of range"):c.$array[c.$offset+0])>>>0)|(((1>=c.$length?$throwRuntimeError("index out of range"):c.$array[c.$offset+1])>>>0)<<8>>>0))>>>0)|(((2>=c.$length?$throwRuntimeError("index out of range"):c.$array[c.$offset+2])>>>0)<<16>>>0))>>>0)|(((3>=c.$length?$throwRuntimeError("index out of range"):c.$array[c.$offset+3])>>>0)<<24>>>0))>>>0)))>>>0;a=((((((((((((((d=(b.nilCheck,b[0]),e=(7>=c.$length?$throwRuntimeError("index out of range"):c.$array[c.$offset+7]),((e<0||e>=d.length)?$throwRuntimeError("index out of range"):d[e]))^(f=(b.nilCheck,b[1]),g=(6>=c.$length?$throwRuntimeError("index out of range"):c.$array[c.$offset+6]),((g<0||g>=f.length)?$throwRuntimeError("index out of range"):f[g])))>>>0)^(h=(b.nilCheck,b[2]),i=(5>=c.$length?$throwRuntimeError("index out of range"):c.$array[c.$offset+5]),((i<0||i>=h.length)?$throwRuntimeError("index out of range"):h[i])))>>>0)^(j=(b.nilCheck,b[3]),k=(4>=c.$length?$throwRuntimeError("index out of range"):c.$array[c.$offset+4]),((k<0||k>=j.length)?$throwRuntimeError("index out of range"):j[k])))>>>0)^(l=(b.nilCheck,b[4]),m=a>>>24>>>0,((m<0||m>=l.length)?$throwRuntimeError("index out of range"):l[m])))>>>0)^(n=(b.nilCheck,b[5]),o=(((a>>>16>>>0))&255)>>>0,((o<0||o>=n.length)?$throwRuntimeError("index out of range"):n[o])))>>>0)^(p=(b.nilCheck,b[6]),q=(((a>>>8>>>0))&255)>>>0,((q<0||q>=p.length)?$throwRuntimeError("index out of range"):p[q])))>>>0)^(r=(b.nilCheck,b[7]),s=(a&255)>>>0,((s<0||s>=r.length)?$throwRuntimeError("index out of range"):r[s])))>>>0;c=$subslice(c,8);}a=~a>>>0;return P(a,(b.nilCheck,b[0]),c);};R=function(a,b,c){var $ptr
|
||
|
$packages["image/png"]=(function(){var $pkg={},$init,I,A,B,C,D,E,F,G,H,J,O,Q,R,T,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AU,AV,AW,BD,P,S,K,M,N,U,V,W,X;I=$packages["bufio"];A=$packages["compress/zlib"];B=$packages["encoding/binary"];C=$packages["fmt"];D=$packages["hash"];E=$packages["hash/crc32"];F=$packages["image"];G=$packages["image/color"];H=$packages["io"];J=$packages["strconv"];O=$pkg.interlaceScan=$newType(0,$kindStruct,"png.interlaceScan","interlaceScan","image/png",function(xFactor_,yFactor_,xOffset_,yOffset_){this.$val=this;if(arguments.length===0){this.xFactor=0;this.yFactor=0;this.xOffset=0;this.yOffset=0;return;}this.xFactor=xFactor_;this.yFactor=yFactor_;this.xOffset=xOffset_;this.yOffset=yOffset_;});Q=$pkg.decoder=$newType(0,$kindStruct,"png.decoder","decoder","image/png",function(r_,img_,crc_,width_,height_,depth_,palette_,cb_,stage_,idatLength_,tmp_,interlace_){this.$val=this;if(arguments.length===0){this.r=$ifaceNil;this.img=$ifaceNil;this.crc=$ifaceNil;this.width=0;this.height=0;this.depth=0;this.palette=G.Palette.nil;this.cb=0;this.stage=0;this.idatLength=0;this.tmp=AW.zero();this.interlace=0;return;}this.r=r_;this.img=img_;this.crc=crc_;this.width=width_;this.height=height_;this.depth=depth_;this.palette=palette_;this.cb=cb_;this.stage=stage_;this.idatLength=idatLength_;this.tmp=tmp_;this.interlace=interlace_;});R=$pkg.FormatError=$newType(8,$kindString,"png.FormatError","FormatError","image/png",null);T=$pkg.UnsupportedError=$newType(8,$kindString,"png.UnsupportedError","UnsupportedError","image/png",null);AJ=$sliceType(O);AK=$sliceType($Uint8);AL=$sliceType($emptyInterface);AM=$ptrType(F.Gray);AN=$ptrType(F.RGBA);AO=$ptrType(F.Paletted);AP=$ptrType(F.NRGBA);AQ=$ptrType(F.Gray16);AR=$ptrType(F.RGBA64);AS=$ptrType(F.NRGBA64);AT=$ptrType(F.Alpha);AU=$ptrType(F.Alpha16);AV=$arrayType($Uint8,4096);AW=$arrayType($Uint8,768);BD=$ptrType(Q);K=function(a){var $ptr,a,b;b=a>>31>>0;return(((a^b)>>0))-b>>0;};M=function(a,b,c){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s;d=0;e=0;f=0;g=0;h=0;i=0;j=d;k=e;l=f;m=g;n=h;o=i;p=0;while(true){if(!(p<c)){break;}q=0;r=0;j=q;l=r;s=p;while(true){if(!(s<a.$length)){break;}k=(((s<0||s>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+s])>>0);m=k-l>>0;n=j-l>>0;o=K(m+n>>0);m=K(m);n=K(n);if(m<=n&&m<=o){}else if(n<=o){j=k;}else{j=l;}j=j+((((s<0||s>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+s])>>0))>>0;j=j&(255);((s<0||s>=a.$length)?$throwRuntimeError("index out of range"):a.$array[a.$offset+s]=(j<<24>>>24));l=k;s=s+(c)>>0;}p=p+(1)>>0;}};N=function(a){var $ptr,a;return 7<=a&&a<=10;};R.prototype.Error=function(){var $ptr,a;a=this.$val;return"png: invalid format: "+a;};$ptrType(R).prototype.Error=function(){return new R(this.$get()).Error();};T.prototype.Error=function(){var $ptr,a;a=this.$val;return"png: unsupported feature: "+a;};$ptrType(T).prototype.Error=function(){return new T(this.$get()).Error();};U=function(a,b){var $ptr,a,b;if(a<b){return a;}return b;};Q.ptr.prototype.parseIHDR=function(a){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;if(!((a===13))){return new R("bad IHDR length");}d=H.ReadFull(b.r,$subslice(new AK(b.tmp),0,13));$s=1;case 1:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}c=d;e=c[1];if(!($interfaceIsEqual(e,$ifaceNil))){$s=2;continue;}$s=3;continue;case 2:return e;case 3:f=b.crc.Write($subslice(new AK(b.tmp),0,13));$s=4;case 4:if($c){$c=false;f=f.$blk();}if(f&&f.$blk!==undefined){break s;}f;if(!((b.tmp[10]===0))){return new T("compression method");}if(!((b.tmp[11]===0))){return new T("filter method");}if(!((b.tmp[12]===0))&&!((b.tmp[12]===1))){return new R("invalid interlace method");}b.interlace=(b.tmp[12]>>0);g=(B.BigEndian.Uint32($subslice(new AK(b.tmp),0,4))>>0);h=(B.BigEndian.Uint32($subslice(new
|
||
|
$packages["path"]=(function(){var $pkg={},$init,A,B,C;A=$packages["errors"];B=$packages["strings"];C=$packages["unicode/utf8"];$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$pkg.ErrBadPattern=A.New("syntax error in pattern");}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["github.com/hajimehoshi/ebiten/ebitenutil/internal/assets"]=(function(){var $pkg={},$init,A,D,B,C,E,F,G,H,I,J;A=$packages["bytes"];D=$packages["fmt"];B=$packages["image"];C=$packages["image/png"];E=$packages["io/ioutil"];F=$packages["os"];G=$packages["path"];H=$packages["path/filepath"];I=$packages["strings"];J=$packages["time"];$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=F.$init();$s=6;case 6:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=G.$init();$s=7;case 7:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=H.$init();$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=I.$init();$s=9;case 9:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=J.$init();$s=10;case 10:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["image/color/palette"]=(function(){var $pkg={},$init,A;A=$packages["image/color"];$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$packages["compress/lzw"]=(function(){var $pkg={},$init,A,B,C,D,F,N,O,P,Q,R,S,V,G,L,H;A=$packages["bufio"];B=$packages["errors"];C=$packages["fmt"];D=$packages["io"];F=$pkg.decoder=$newType(0,$kindStruct,"lzw.decoder","decoder","compress/lzw",function(r_,bits_,nBits_,width_,read_,litWidth_,err_,clear_,eof_,hi_,overflow_,last_,suffix_,prefix_,output_,o_,toRead_){this.$val=this;if(arguments.length===0){this.r=$ifaceNil;this.bits=0;this.nBits=0;this.width=0;this.read=$throwNilPointerError;this.litWidth=0;this.err=$ifaceNil;this.clear=0;this.eof=0;this.hi=0;this.overflow=0;this.last=0;this.suffix=O.zero();this.prefix=P.zero();this.output=Q.zero();this.o=0;this.toRead=N.nil;return;}this.r=r_;this.bits=bits_;this.nBits=nBits_;this.width=width_;this.read=read_;this.litWidth=litWidth_;this.err=err_;this.clear=clear_;this.eof=eof_;this.hi=hi_;this.overflow=overflow_;this.last=last_;this.suffix=suffix_;this.prefix=prefix_;this.output=output_;this.o=o_;this.toRead=toRead_;});N=$sliceType($Uint8);O=$arrayType($Uint8,4096);P=$arrayType($Uint16,4096);Q=$arrayType($Uint8,8192);R=$ptrType(F);S=$sliceType($emptyInterface);V=$funcType([R],[$Uint16,$error],false);F.ptr.prototype.readLSB=function(){var $ptr,a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=this;case 1:if(!(a.nBits<a.width)){$s=2;continue;}c=a.r.ReadByte();$s=3;case 3:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}b=c;d=b[0];e=b[1];if(!($interfaceIsEqual(e,$ifaceNil))){return[0,e];}a.bits=(a.bits|(((f=a.nBits,f<32?((d>>>0)<<f):0)>>>0)))>>>0;a.nBits=a.nBits+(8)>>>0;$s=1;continue;case 2:h=(((a.bits&((((g=a.width,g<32?(1<<g):0)>>>0)-1>>>0)))>>>0)<<16>>>16);a.bits=(i=(a.width),i<32?(a.bits>>>i):0)>>>0;a.nBits=a.nBits-(a.width)>>>0;return[h,$ifaceNil];}return;}if($f===undefined){$f={$blk:F.ptr.prototype.readLSB};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};F.prototype.readLSB=function(){return this.$val.readLSB();};F.ptr.prototype.readMSB=function(){var $ptr,a,b,c,d,e,f,g,h,i,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=this;case 1:if(!(a.nBits<a.width)){$s=2;continue;}c=a.r.ReadByte();$s=3;case 3:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}b=c;d=b[0];e=b[1];if(!($interfaceIsEqual(e,$ifaceNil))){return[0,e];}a.bits=(a.bits|(((f=((24-a.nBits>>>0)),f<32?((d>>>0)<<f):0)>>>0)))>>>0;a.nBits=a.nBits+(8)>>>0;$s=1;continue;case 2:h=(((g=((32-a.width>>>0)),g<32?(a.bits>>>g):0)>>>0)<<16>>>16);a.bits=(i=(a.width),i<32?(a.bits<<i):0)>>>0;a.nBits=a.nBits-(a.width)>>>0;return[h,$ifaceNil];}return;}if($f===undefined){$f={$blk:F.ptr.prototype.readMSB};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$r=$r;return $f;};F.prototype.readMSB=function(){return this.$val.readMSB();};F.ptr.prototype.Read=function(a){var $ptr,a,b,c,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;case 1:if(b.toRead.$length>0){c=$copySlice(a,b.toRead);b.toRead=$subslice(b.toRead,c);return[c,$ifaceNil];}if(!($interfaceIsEqual(b.err,$ifaceNil))){return[0,b.err];}$r=b.decode();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$s=1;continue;case 2:$s=-1;case-1:}return;}if($f===undefined){$f={$blk:F.ptr.prototype.Read};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.$s=$s;$f.$r=$r;return $f;};F.prototype.Read=function(a){return this.$val.Read(a);};F.ptr.prototype.decode=function(){var $ptr,a,aa,ab,ac,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;b=$f.b;c=$f.c;d=
|
||
|
$packages["image/gif"]=(function(){var $pkg={},$init,A,H,B,C,D,E,F,I,J,G,N,O,P,Q,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AV,AW,K,L,M,R,S,T,W,X;A=$packages["bufio"];H=$packages["bytes"];B=$packages["compress/lzw"];C=$packages["errors"];D=$packages["fmt"];E=$packages["image"];F=$packages["image/color"];I=$packages["image/color/palette"];J=$packages["image/draw"];G=$packages["io"];N=$pkg.reader=$newType(8,$kindInterface,"gif.reader","reader","image/gif",null);O=$pkg.decoder=$newType(0,$kindStruct,"gif.decoder","decoder","image/gif",function(r_,vers_,width_,height_,loopCount_,delayTime_,backgroundIndex_,disposalMethod_,imageFields_,transparentIndex_,hasTransparentIndex_,globalColorTable_,delay_,disposal_,image_,tmp_){this.$val=this;if(arguments.length===0){this.r=$ifaceNil;this.vers="";this.width=0;this.height=0;this.loopCount=0;this.delayTime=0;this.backgroundIndex=0;this.disposalMethod=0;this.imageFields=0;this.transparentIndex=0;this.hasTransparentIndex=false;this.globalColorTable=F.Palette.nil;this.delay=AO.nil;this.disposal=AJ.nil;this.image=AP.nil;this.tmp=AQ.zero();return;}this.r=r_;this.vers=vers_;this.width=width_;this.height=height_;this.loopCount=loopCount_;this.delayTime=delayTime_;this.backgroundIndex=backgroundIndex_;this.disposalMethod=disposalMethod_;this.imageFields=imageFields_;this.transparentIndex=transparentIndex_;this.hasTransparentIndex=hasTransparentIndex_;this.globalColorTable=globalColorTable_;this.delay=delay_;this.disposal=disposal_;this.image=image_;this.tmp=tmp_;});P=$pkg.blockReader=$newType(0,$kindStruct,"gif.blockReader","blockReader","image/gif",function(r_,slice_,err_,tmp_){this.$val=this;if(arguments.length===0){this.r=$ifaceNil;this.slice=AJ.nil;this.err=$ifaceNil;this.tmp=AM.zero();return;}this.r=r_;this.slice=slice_;this.err=err_;this.tmp=tmp_;});Q=$pkg.interlaceScan=$newType(0,$kindStruct,"gif.interlaceScan","interlaceScan","image/gif",function(skip_,start_){this.$val=this;if(arguments.length===0){this.skip=0;this.start=0;return;}this.skip=skip_;this.start=start_;});AI=$sliceType(Q);AJ=$sliceType($Uint8);AK=$sliceType(F.Color);AL=$sliceType($emptyInterface);AM=$arrayType($Uint8,256);AN=$ptrType(E.Paletted);AO=$sliceType($Int);AP=$sliceType(AN);AQ=$arrayType($Uint8,1024);AV=$ptrType(O);AW=$ptrType(P);P.ptr.prototype.Read=function(a){var $ptr,a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=this;if(!($interfaceIsEqual(b.err,$ifaceNil))){return[0,b.err];}if(a.$length===0){return[0,$ifaceNil];}if(b.slice.$length===0){$s=1;continue;}$s=2;continue;case 1:c=0;e=b.r.ReadByte();$s=3;case 3:if($c){$c=false;e=e.$blk();}if(e&&e.$blk!==undefined){break s;}d=e;c=d[0];b.err=d[1];if(!($interfaceIsEqual(b.err,$ifaceNil))){return[0,b.err];}if(c===0){b.err=G.EOF;return[0,b.err];}b.slice=$subslice(new AJ(b.tmp),0,c);g=G.ReadFull(b.r,b.slice);$s=4;case 4:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;b.err=f[1];if(!($interfaceIsEqual(b.err,$ifaceNil))){$s=5;continue;}$s=6;continue;case 5:return[0,b.err];case 6:case 2:h=$copySlice(a,b.slice);b.slice=$subslice(b.slice,h);return[h,$ifaceNil];}return;}if($f===undefined){$f={$blk:P.ptr.prototype.Read};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};P.prototype.Read=function(a){return this.$val.Read(a);};O.ptr.prototype.decode=function(a,b){var $ptr,a,aa,ab,ac,ad,ae,af,ag,ah,ai,aj,ak,al,am,an,ao,ap,aq,ar,as,at,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;aa=$f.aa;ab=$f.ab;ac=$f.ac;ad=$f.ad;ae=$f.ae;af=$f.af;ag=$f.ag;ah=$f.ah;ai=$f.ai;aj=$f.aj;ak=$f.ak;al=$f.al;am=$f.am;an=$f.an;ao=$f.ao;ap=$f.ap;aq=$f.aq;ar=$f.ar;as=$f.as;at=$f.at;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;s=$f.s;t=$f.t;u=$f.u;v=$f.v;w=$f.w;x=$f.x;y=$f.y;z=$f.z;$s=$f.$s
|
||
|
$packages["github.com/hajimehoshi/ebiten/ebitenutil"]=(function(){var $pkg={},$init,L,M,N,O,A,B,F,C,G,H,I,J,D,E,K,Y,AE,AF,AL,AM,AN,U,V,X;L=$packages["bytes"];M=$packages["errors"];N=$packages["fmt"];O=$packages["github.com/gopherjs/gopherjs/js"];A=$packages["github.com/hajimehoshi/ebiten"];B=$packages["github.com/hajimehoshi/ebiten/ebitenutil/internal/assets"];F=$packages["image"];C=$packages["image/color"];G=$packages["image/color/palette"];H=$packages["image/draw"];I=$packages["image/gif"];J=$packages["io"];D=$packages["math"];E=$packages["strings"];K=$packages["sync"];Y=$ptrType(A.Image);AE=$sliceType(C.Color);AF=$sliceType($Uint8);AL=$structType([]);AM=$sliceType($emptyInterface);AN=$funcType([],[],false);V=function(){var $ptr,a,b,c,d,e,f,g,h,i,j,k;a=new AE([]);b=new AF([0,128,255]);c=0;while(true){if(!(c<b.$length)){break;}d=((c<0||c>=b.$length)?$throwRuntimeError("index out of range"):b.$array[b.$offset+c]);e=new AF([0,128,255]);f=0;while(true){if(!(f<e.$length)){break;}g=((f<0||f>=e.$length)?$throwRuntimeError("index out of range"):e.$array[e.$offset+f]);h=new AF([0,128,255]);i=0;while(true){if(!(i<h.$length)){break;}j=((i<0||i>=h.$length)?$throwRuntimeError("index out of range"):h.$array[h.$offset+i]);a=$append(a,(k=new C.RGBA.ptr(d,g,j,255),new k.constructor.elem(k)));i++;}f++;}c++;}U=$subslice(new C.Palette(a.$array),a.$offset,a.$offset+a.$length);};X=function(a,b){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:c=[c];d=[d];e=[e];f=[f];f[0]=$ifaceNil;e[0]=null;c[0]=new $Chan(AL,0);d[0]=new($global.XMLHttpRequest)();d[0].open($externalize("GET",$String),$externalize(a,$String),$externalize(true,$Bool));d[0].responseType=$externalize("arraybuffer",$String);d[0].addEventListener($externalize("load",$String),$externalize((function(c,d,e,f){return function $b(){var $ptr,g,h,i,j,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;g=$f.g;h=$f.h;i=$f.i;j=$f.j;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);$deferred.push([function(g){$close(g);},[c[0]]]);h=$parseInt(d[0].status)>>0;if(200<=h&&h<400){e[0]=d[0].response;return;}i=N.Sprintf("http error: %d",new AM([new $Int(h)]));$s=1;case 1:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}j=M.New(i);$s=2;case 2:if($c){$c=false;j=j.$blk();}if(j&&j.$blk!==undefined){break s;}f[0]=j;$s=-1;case-1:}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:$b};}$f.$ptr=$ptr;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};})(c,d,e,f),AN));d[0].addEventListener($externalize("error",$String),$externalize((function(c,d,e,f){return function $b(){var $ptr,g,h,i,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;g=$f.g;h=$f.h;i=$f.i;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);$deferred.push([function(g){$close(g);},[c[0]]]);h=N.Sprintf("XMLHttpRequest error: %s",new AM([new $String($internalize(d[0].statusText,$String))]));$s=1;case 1:if($c){$c=false;h=h.$blk();}if(h&&h.$blk!==undefined){break s;}i=M.New(h);$s=2;case 2:if($c){$c=false;i=i.$blk();}if(i&&i.$blk!==undefined){break s;}f[0]=i;$s=-1;case-1:}return;}}catch(err){$err=err;$s=-1;}finally{$callDeferred($deferred,$err);if($curGoroutine.asleep){if($f===undefined){$f={$blk:$b};}$f.$ptr=$ptr;$f.g=g;$f.h=h;$f.i=i;$f.$s=$s;$f.$deferred=$deferred;$f.$r=$r;return $f;}}};})(c,d,e,f),AN));d[0].send();g=$recv(c[0]);$s=1;case 1:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undef
|
||
|
$packages["image/jpeg"]=(function(){var $pkg={},$init,E,F,B,C,D,A,H,J,L,M,O,R,S,AD,AF,AS,AU,AV,AW,AX,AY,AZ,BA,BB,BC,BD,BE,BF,BG,BH,BI,BJ,BK,BL,BM,BN,BO,BP,BQ,BR,BW,BX,BY,I,N,P,T,AE,AG,K,U,V,W,AH;E=$packages["bufio"];F=$packages["errors"];B=$packages["image"];C=$packages["image/color"];D=$packages["image/internal/imageutil"];A=$packages["io"];H=$pkg.huffman=$newType(0,$kindStruct,"jpeg.huffman","huffman","image/jpeg",function(nCodes_,lut_,vals_,minCodes_,maxCodes_,valsIndices_){this.$val=this;if(arguments.length===0){this.nCodes=0;this.lut=BF.zero();this.vals=BG.zero();this.minCodes=AW.zero();this.maxCodes=AW.zero();this.valsIndices=AW.zero();return;}this.nCodes=nCodes_;this.lut=lut_;this.vals=vals_;this.minCodes=minCodes_;this.maxCodes=maxCodes_;this.valsIndices=valsIndices_;});J=$pkg.block=$newType(256,$kindArray,"jpeg.block","block","image/jpeg",null);L=$pkg.FormatError=$newType(8,$kindString,"jpeg.FormatError","FormatError","image/jpeg",null);M=$pkg.UnsupportedError=$newType(8,$kindString,"jpeg.UnsupportedError","UnsupportedError","image/jpeg",null);O=$pkg.component=$newType(0,$kindStruct,"jpeg.component","component","image/jpeg",function(h_,v_,c_,tq_){this.$val=this;if(arguments.length===0){this.h=0;this.v=0;this.c=0;this.tq=0;return;}this.h=h_;this.v=v_;this.c=c_;this.tq=tq_;});R=$pkg.bits=$newType(0,$kindStruct,"jpeg.bits","bits","image/jpeg",function(a_,m_,n_){this.$val=this;if(arguments.length===0){this.a=0;this.m=0;this.n=0;return;}this.a=a_;this.m=m_;this.n=n_;});S=$pkg.decoder=$newType(0,$kindStruct,"jpeg.decoder","decoder","image/jpeg",function(r_,bits_,bytes_,width_,height_,img1_,img3_,blackPix_,blackStride_,ri_,nComp_,progressive_,jfif_,adobeTransformValid_,adobeTransform_,eobRun_,comp_,progCoeffs_,huff_,quant_,tmp_){this.$val=this;if(arguments.length===0){this.r=$ifaceNil;this.bits=new R.ptr(0,0,0);this.bytes=new BB.ptr(BA.zero(),0,0,0);this.width=0;this.height=0;this.img1=AX.nil;this.img3=AY.nil;this.blackPix=AV.nil;this.blackStride=0;this.ri=0;this.nComp=0;this.progressive=false;this.jfif=false;this.adobeTransformValid=false;this.adobeTransform=0;this.eobRun=0;this.comp=BC.zero();this.progCoeffs=BE.zero();this.huff=BI.zero();this.quant=BK.zero();this.tmp=BL.zero();return;}this.r=r_;this.bits=bits_;this.bytes=bytes_;this.width=width_;this.height=height_;this.img1=img1_;this.img3=img3_;this.blackPix=blackPix_;this.blackStride=blackStride_;this.ri=ri_;this.nComp=nComp_;this.progressive=progressive_;this.jfif=jfif_;this.adobeTransformValid=adobeTransformValid_;this.adobeTransform=adobeTransform_;this.eobRun=eobRun_;this.comp=comp_;this.progCoeffs=progCoeffs_;this.huff=huff_;this.quant=quant_;this.tmp=tmp_;});AD=$pkg.huffmanSpec=$newType(0,$kindStruct,"jpeg.huffmanSpec","huffmanSpec","image/jpeg",function(count_,value_){this.$val=this;if(arguments.length===0){this.count=AU.zero();this.value=AV.nil;return;}this.count=count_;this.value=value_;});AF=$pkg.huffmanLUT=$newType(12,$kindSlice,"jpeg.huffmanLUT","huffmanLUT","image/jpeg",null);AS=$arrayType(AF,4);AU=$arrayType($Uint8,16);AV=$sliceType($Uint8);AW=$arrayType($Int32,16);AX=$ptrType(B.Gray);AY=$ptrType(B.YCbCr);AZ=$structType([{prop:"src",name:"src",pkg:"image/jpeg",typ:AV,tag:""},{prop:"stride",name:"stride",pkg:"image/jpeg",typ:$Int,tag:""}]);BA=$arrayType($Uint8,4096);BB=$structType([{prop:"buf",name:"buf",pkg:"image/jpeg",typ:BA,tag:""},{prop:"i",name:"i",pkg:"image/jpeg",typ:$Int,tag:""},{prop:"j",name:"j",pkg:"image/jpeg",typ:$Int,tag:""},{prop:"nUnreadable",name:"nUnreadable",pkg:"image/jpeg",typ:$Int,tag:""}]);BC=$arrayType(O,4);BD=$sliceType(J);BE=$arrayType(BD,4);BF=$arrayType($Uint16,256);BG=$arrayType($Uint8,256);BH=$arrayType(H,4);BI=$arrayType(BH,2);BJ=$arrayType($Int32,64);BK=$arrayType(J,4);BL=$arrayType($Uint8,128);BM=$structType([{prop:"compIndex",name:"compIndex",pkg:"image/jpeg",typ:$Uint8,tag:""},{prop:"td",name:"td",pkg:"image/jpeg",typ:$Uint8,tag:""},{prop:"ta",name:"ta",pkg:"image/jpeg",typ:$Uint8,tag:""}]);BN=$arrayType(BM,4);BO=$sliceType(O);BP=$arrayType($Int32,4);BQ=$sliceType($Uint32);BR=$ptrType(AF);BW=$ptrType(H);BX=$ptrType
|
||
|
$packages["log"]=(function(){var $pkg={},$init,A,E,B,C,D,F,G,Z,AA,AB,AC,AD,I,H,J,S;A=$packages["fmt"];E=$packages["github.com/gopherjs/gopherjs/nosync"];B=$packages["io"];C=$packages["os"];D=$packages["runtime"];F=$packages["time"];G=$pkg.Logger=$newType(0,$kindStruct,"log.Logger","Logger","log",function(mu_,prefix_,flag_,out_,buf_){this.$val=this;if(arguments.length===0){this.mu=new E.Mutex.ptr(false);this.prefix="";this.flag=0;this.out=$ifaceNil;this.buf=Z.nil;return;}this.mu=mu_;this.prefix=prefix_;this.flag=flag_;this.out=out_;this.buf=buf_;});Z=$sliceType($Uint8);AA=$arrayType($Uint8,20);AB=$ptrType(Z);AC=$sliceType($emptyInterface);AD=$ptrType(G);H=function(a,b,c){var $ptr,a,b,c;return new G.ptr(new E.Mutex.ptr(false),b,c,a,Z.nil);};$pkg.New=H;G.ptr.prototype.SetOutput=function(a){var $ptr,a,b,$deferred;var $err=null;try{$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);b=this;b.mu.Lock();$deferred.push([$methodVal(b.mu,"Unlock"),[]]);b.out=a;}catch(err){$err=err;}finally{$callDeferred($deferred,$err);}};G.prototype.SetOutput=function(a){return this.$val.SetOutput(a);};J=function(a,b,c){var $ptr,a,b,c,d,e,f,g;d=AA.zero();e=19;while(true){if(!(b>=10||c>1)){break;}c=c-(1)>>0;g=(f=b/10,(f===f&&f!==1/0&&f!==-1/0)?f>>0:$throwRuntimeError("integer divide by zero"));((e<0||e>=d.length)?$throwRuntimeError("index out of range"):d[e]=(((48+b>>0)-($imul(g,10))>>0)<<24>>>24));e=e-(1)>>0;b=g;}((e<0||e>=d.length)?$throwRuntimeError("index out of range"):d[e]=((48+b>>0)<<24>>>24));a.$set($appendSlice(a.$get(),$subslice(new Z(d),e)));};G.ptr.prototype.formatHeader=function(a,b,c,d){var $ptr,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;l=$f.l;m=$f.m;n=$f.n;o=$f.o;p=$f.p;q=$f.q;r=$f.r;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:b=$clone(b,F.Time);e=this;a.$set($appendSlice(a.$get(),e.prefix));if(!(((e.flag&32)===0))){F.Time.copy(b,b.UTC());}if(!(((e.flag&7)===0))){$s=1;continue;}$s=2;continue;case 1:if(!(((e.flag&1)===0))){$s=3;continue;}$s=4;continue;case 3:g=b.Date();$s=5;case 5:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}f=g;h=f[0];i=f[1];j=f[2];J(a,h,4);a.$set($append(a.$get(),47));J(a,(i>>0),2);a.$set($append(a.$get(),47));J(a,j,2);a.$set($append(a.$get(),32));case 4:if(!(((e.flag&6)===0))){$s=6;continue;}$s=7;continue;case 6:l=b.Clock();$s=8;case 8:if($c){$c=false;l=l.$blk();}if(l&&l.$blk!==undefined){break s;}k=l;m=k[0];n=k[1];o=k[2];J(a,m,2);a.$set($append(a.$get(),58));J(a,n,2);a.$set($append(a.$get(),58));J(a,o,2);if(!(((e.flag&4)===0))){a.$set($append(a.$get(),46));J(a,(p=b.Nanosecond()/1000,(p===p&&p!==1/0&&p!==-1/0)?p>>0:$throwRuntimeError("integer divide by zero")),6);}a.$set($append(a.$get(),32));case 7:case 2:if(!(((e.flag&24)===0))){if(!(((e.flag&16)===0))){q=c;r=c.length-1>>0;while(true){if(!(r>0)){break;}if(c.charCodeAt(r)===47){q=c.substring((r+1>>0));break;}r=r-(1)>>0;}c=q;}a.$set($appendSlice(a.$get(),c));a.$set($append(a.$get(),58));J(a,d,-1);a.$set($appendSlice(a.$get(),": "));}$s=-1;case-1:}return;}if($f===undefined){$f={$blk:G.ptr.prototype.formatHeader};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.i=i;$f.j=j;$f.k=k;$f.l=l;$f.m=m;$f.n=n;$f.o=o;$f.p=p;$f.q=q;$f.r=r;$f.$s=$s;$f.$r=$r;return $f;};G.prototype.formatHeader=function(a,b,c,d){return this.$val.formatHeader(a,b,c,d);};G.ptr.prototype.Output=function(a,b){var $ptr,a,b,c,d,e,f,g,h,i,j,k,$s,$deferred,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;i=$f.i;j=$f.j;k=$f.k;$s=$f.$s;$deferred=$f.$deferred;$r=$f.$r;}var $err=null;try{s:while(true){switch($s){case 0:$deferred=[];$deferred.index=$curGoroutine.deferStack.length;$curGoroutine.deferStack.push($deferred);c=this;d=$clone(F.Now(),F.Time);e="";f=0;c.mu.Lock();$deferred.push([$methodVal(c.mu,"Unlock"),[]]);if(!(((c.flag&24)===0))
|
||
|
$packages["github.com/hajimehoshi/ebiten/examples/rotate"]=(function(){var $pkg={},$init,A,B,C,D,E,J,K,L,M,N,O,P,F,G,H,I;A=$packages["github.com/hajimehoshi/ebiten"];B=$packages["github.com/hajimehoshi/ebiten/ebitenutil"];C=$packages["image/jpeg"];D=$packages["log"];E=$packages["math"];J=$ptrType(A.Image);K=$arrayType($Float64,3);L=$arrayType(K,2);M=$arrayType($Float64,5);N=$arrayType(M,4);O=$sliceType(A.ImagePart);P=$sliceType($emptyInterface);H=function(a){var $ptr,a,b,c,d,e,f,g,h,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;f=$f.f;g=$f.g;h=$f.h;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:F=F+(1)>>0;b=G.Size();c=b[0];d=b[1];e=new A.DrawImageOptions.ptr($ifaceNil,new A.GeoM.ptr(false,L.zero()),new A.ColorM.ptr(false,N.zero()),O.nil);e.GeoM.Translate(-c/2,-d/2);$r=e.GeoM.Rotate((f=F%360,f===f?f:$throwRuntimeError("integer divide by zero"))*2*3.141592653589793/360);$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}e.GeoM.Translate(160,120);g=a.DrawImage(G,e);$s=2;case 2:if($c){$c=false;g=g.$blk();}if(g&&g.$blk!==undefined){break s;}h=g;if(!($interfaceIsEqual(h,$ifaceNil))){$s=3;continue;}$s=4;continue;case 3:return h;case 4:return $ifaceNil;}return;}if($f===undefined){$f={$blk:H};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.f=f;$f.g=g;$f.h=h;$f.$s=$s;$f.$r=$r;return $f;};I=function(){var $ptr,a,b,c,d,e,$s,$r;$s=0;var $f,$c=false;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$ptr=$f.$ptr;a=$f.a;b=$f.b;c=$f.c;d=$f.d;e=$f.e;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:a=$ifaceNil;c=B.NewImageFromFile("images/gophers.jpg",0);$s=1;case 1:if($c){$c=false;c=c.$blk();}if(c&&c.$blk!==undefined){break s;}b=c;G=b[0];a=b[2];if(!($interfaceIsEqual(a,$ifaceNil))){$s=2;continue;}$s=3;continue;case 2:$r=D.Fatal(new P([a]));$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 3:d=A.Run(H,320,240,2,"Rotate (Ebiten Demo)");$s=5;case 5:if($c){$c=false;d=d.$blk();}if(d&&d.$blk!==undefined){break s;}e=d;if(!($interfaceIsEqual(e,$ifaceNil))){$s=6;continue;}$s=7;continue;case 6:$r=D.Fatal(new P([e]));$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}case 7:$s=-1;case-1:}return;}if($f===undefined){$f={$blk:I};}$f.$ptr=$ptr;$f.a=a;$f.b=b;$f.c=c;$f.d=d;$f.e=e;$f.$s=$s;$f.$r=$r;return $f;};$init=function(){$pkg.$init=function(){};var $f,$c=false,$s=0,$r;if(this!==undefined&&this.$blk!==undefined){$f=this;$c=true;$s=$f.$s;$r=$f.$r;}s:while(true){switch($s){case 0:$r=A.$init();$s=1;case 1:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=B.$init();$s=2;case 2:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=C.$init();$s=3;case 3:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=D.$init();$s=4;case 4:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=E.$init();$s=5;case 5:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}F=0;G=J.nil;if($pkg===$mainPkg){$s=6;continue;}$s=7;continue;case 6:$r=I();$s=8;case 8:if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$mainFinished=true;case 7:}return;}if($f===undefined){$f={$blk:$init};}$f.$s=$s;$f.$r=$r;return $f;};$pkg.$init=$init;return $pkg;})();
|
||
|
$synthesizeMethods();
|
||
|
var $mainPkg = $packages["github.com/hajimehoshi/ebiten/examples/rotate"];
|
||
|
$packages["runtime"].$init();
|
||
|
$go($mainPkg.$init, [], true);
|
||
|
$flushConsole();
|
||
|
|
||
|
}).call(this);
|
||
|
//# sourceMappingURL=rotate.js.map
|