Файловый менеджер - Редактировать - /home/jogoso94/public_html/jogos/freecellclassic/targets/main-html.js
�азад
'use strict';(function(){function s(a,b){function c(){}c.prototype=a;var e=new c,n;for(n in b)e[n]=b[n];b.toString!==Object.prototype.toString&&(e.toString=b.toString);return e}function Le(a){return a instanceof Array?function(){return z.iter(a)}:"function"==typeof a.iterator?$(a,a.iterator):a.iterator}function $(a,b){if(null==b)return null;null==b.__id__&&(b.__id__=jg++);var c;null==a.hx__closures__?a.hx__closures__={}:c=a.hx__closures__[b.__id__];null==c&&(c=function(){return c.method.apply(c.scope,arguments)},c.scope=a,c.method=b,a.hx__closures__[b.__id__]=c);return c}var f={},za=function(){};f.DateTools=za;za.__name__=["DateTools"];za.__format_get=function(a,b){switch(b){case "%":return"%";case "C":return M.lpad(w.string(w["int"](a.getFullYear()/100)),"0",2);case "d":return M.lpad(w.string(a.getDate()),"0",2);case "D":return za.__format(a,"%m/%d/%y");case "e":return w.string(a.getDate());case "F":return za.__format(a,"%Y-%m-%d");case "H":case "k":return M.lpad(w.string(a.getHours()),"H"==b?"0":" ",2);case "I":case "l":var c=a.getHours()%12;return M.lpad(w.string(0==c?12:c),"I"==b?"0":" ",2);case "m":return M.lpad(w.string(a.getMonth()+1),"0",2);case "M":return M.lpad(w.string(a.getMinutes()),"0",2);case "n":return"\n";case "p":return 11<a.getHours()?"PM":"AM";case "r":return za.__format(a,"%I:%M:%S %p");case "R":return za.__format(a,"%H:%M");case "s":return w.string(w["int"](a.getTime()/1E3));case "S":return M.lpad(w.string(a.getSeconds()),"0",2);case "t":return"\t";case "T":return za.__format(a,"%H:%M:%S");case "u":return c=a.getDay(),0==c?"7":null==c?"null":""+c;case "w":return w.string(a.getDay());case "y":return M.lpad(w.string(a.getFullYear()%100),"0",2);case "Y":return w.string(a.getFullYear());default:throw new p("Date.format %"+b+"- not implemented yet.");}};za.__format=function(a,b){for(var c=new Aa,e=0;;){var n=b.indexOf("%",e);if(0>n)break;c.addSub(b,e,n-e);c.add(za.__format_get(a,z.substr(b,n+1,1)));e=n+2}c.addSub(b,e,b.length-e);return c.b};za.format=function(a,b){return za.__format(a,b)};var Fa=function(a,b){b=b.split("u").join("");this.r=RegExp(a,b)};f.EReg=Fa;Fa.__name__=["EReg"];Fa.prototype={match:function(a){this.r.global&&(this.r.lastIndex=0);this.r.m=this.r.exec(a);this.r.s=a;return null!=this.r.m},matched:function(a){if(null!=this.r.m&&0<=a&&a<this.r.m.length)return this.r.m[a];throw new p("EReg::matched");},matchedPos:function(){if(null==this.r.m)throw new p("No string matched");return{pos:this.r.m.index,len:this.r.m[0].length}},__class__:Fa};var z=function(){};f.HxOverrides=z;z.__name__=["HxOverrides"];z.dateStr=function(a){var b=a.getMonth()+1,c=a.getDate(),e=a.getHours(),n=a.getMinutes(),d=a.getSeconds();return a.getFullYear()+"-"+(10>b?"0"+b:""+b)+"-"+(10>c?"0"+c:""+c)+" "+(10>e?"0"+e:""+e)+":"+(10>n?"0"+n:""+n)+":"+(10>d?"0"+d:""+d)};z.strDate=function(a){switch(a.length){case 8:var a=a.split(":"),b=new Date;b.setTime(0);b.setUTCHours(a[0]);b.setUTCMinutes(a[1]);b.setUTCSeconds(a[2]);return b;case 10:return a=a.split("-"),new Date(a[0],a[1]-1,a[2],0,0,0);case 19:return b=a.split(" "),a=b[0].split("-"),b=b[1].split(":"),new Date(a[0],a[1]-1,a[2],b[0],b[1],b[2]);default:throw new p("Invalid date format : "+a);}};z.cca=function(a,b){var c=a.charCodeAt(b);return c!=c?void 0:c};z.substr=function(a,b,c){if(null!=b&&0!=b&&null!=c&&0>c)return"";null==c&&(c=a.length);0>b?(b=a.length+b,0>b&&(b=0)):0>c&&(c=a.length+c-b);return a.substr(b,c)};z.remove=function(a,b){var c=a.indexOf(b);if(-1==c)return!1;a.splice(c,1);return!0};z.iter=function(a){return{cur:0,arr:a,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}};var Fb=function(){};f.Lambda=Fb;Fb.__name__=["Lambda"];Fb.array=function(a){for(var b=[],a=Le(a)();a.hasNext();){var c=a.next();b.push(c)}return b};Fb.exists=function(a,b){for(var c=Le(a)();c.hasNext();){var e=c.next();if(b(e))return!0}return!1};Fb.count=function(a,b){var c=0;if(null==b)for(var e=Le(a)();e.hasNext();)e.next(),c++;else for(e=Le(a)();e.hasNext();){var n=e.next();b(n)&&c++}return c};var rb=function(){this.length=0};f.List=rb;rb.__name__=["List"];rb.prototype={add:function(a){a=[a];null==this.h?this.h=a:this.q[1]=a;this.q=a;this.length++},push:function(a){this.h=a=[a,this.h];null==this.q&&(this.q=a);this.length++},iterator:function(){return new vd(this.h)},__class__:rb};var vd=function(a){this.head=a;this.val=null};f["_List.ListIterator"]=vd;vd.__name__=["_List","ListIterator"];vd.prototype={hasNext:function(){return null!=this.head},next:function(){this.val=this.head[0];this.head=this.head[1];return this.val},__class__:vd};Math.__name__=["Math"];var P=function(){};f.Reflect=P;P.__name__=["Reflect"];P.field=function(a,b){try{return a[b]}catch(c){return c instanceof p&&(c=c.val),null}};P.setField=function(a,b,c){a[b]=c};P.callMethod=function(a,b,c){return b.apply(a,c)};P.fields=function(a){var b=[];if(null!=a){var c=Object.prototype.hasOwnProperty,e;for(e in a)"__id__"!=e&&"hx__closures__"!=e&&c.call(a,e)&&b.push(e)}return b};P.isFunction=function(a){return"function"==typeof a&&!(a.__name__||a.__ename__)};P.deleteField=function(a,b){if(!Object.prototype.hasOwnProperty.call(a,b))return!1;delete a[b];return!0};var w=function(){};f.Std=w;w.__name__=["Std"];w.is=function(a,b){return S.__instanceof(a,b)};w.string=function(a){return S.__string_rec(a,"")};w["int"]=function(a){return a|0};w.parseInt=function(a){var b=parseInt(a,10);if(0==b&&(120==z.cca(a,1)||88==z.cca(a,1)))b=parseInt(a);return isNaN(b)?null:b};w.parseFloat=function(a){return parseFloat(a)};var Aa=function(){this.b=""};f.StringBuf=Aa;Aa.__name__=["StringBuf"];Aa.prototype={add:function(a){this.b+=w.string(a)},addSub:function(a,b,c){this.b=null==c?this.b+z.substr(a,b,null):this.b+z.substr(a,b,c)},__class__:Aa};var M=function(){};f.StringTools=M;M.__name__=["StringTools"];M.startsWith=function(a,b){return a.length>=b.length&&z.substr(a,0,b.length)==b};M.isSpace=function(a,b){var c=z.cca(a,b);return 8<c&&14>c||32==c};M.ltrim=function(a){for(var b=a.length,c=0;c<b&&M.isSpace(a,c);)c++;return 0<c?z.substr(a,c,b-c):a};M.rtrim=function(a){for(var b=a.length,c=0;c<b&&M.isSpace(a,b-c-1);)c++;return 0<c?z.substr(a,0,b-c):a};M.trim=function(a){return M.ltrim(M.rtrim(a))};M.lpad=function(a,b,c){if(0>=b.length)return a;for(;a.length<c;)a=b+a;return a};M.fastCodeAt=function(a,b){return a.charCodeAt(b)};var I=f.ValueType={__ename__:["ValueType"],__constructs__:"TNull,TInt,TFloat,TBool,TObject,TFunction,TClass,TEnum,TUnknown".split(",")};I.TNull=["TNull",0];I.TNull.__enum__=I;I.TInt=["TInt",1];I.TInt.__enum__=I;I.TFloat=["TFloat",2];I.TFloat.__enum__=I;I.TBool=["TBool",3];I.TBool.__enum__=I;I.TObject=["TObject",4];I.TObject.__enum__=I;I.TFunction=["TFunction",5];I.TFunction.__enum__=I;I.TClass=function(a){a=["TClass",6,a];a.__enum__=I;return a};I.TEnum=function(a){a=["TEnum",7,a];a.__enum__=I;return a};I.TUnknown=["TUnknown",8];I.TUnknown.__enum__=I;var V=function(){};f.Type=V;V.__name__=["Type"];V.getClassName=function(a){a=a.__name__;return null==a?null:a.join(".")};V.getEnumName=function(a){return a.__ename__.join(".")};V.resolveClass=function(a){a=f[a];return null==a||!a.__name__?null:a};V.resolveEnum=function(a){a=f[a];return null==a||!a.__ename__?null:a};V.createEmptyInstance=function(a){function b(){}b.prototype=a.prototype;return new b};V.createEnum=function(a,b,c){var e=P.field(a,b);if(null==e)throw new p("No such constructor "+b);if(P.isFunction(e)){if(null==c)throw new p("Constructor "+b+" need parameters");return P.callMethod(a,e,c)}if(null!=c&&0!=c.length)throw new p("Constructor "+b+" does not need parameters");return e};V.getEnumConstructs=function(a){return a.__constructs__.slice()};V["typeof"]=function(a){switch(typeof a){case "boolean":return I.TBool;case "string":return I.TClass(String);case "number":return Math.ceil(a)==a%2147483648?I.TInt:I.TFloat;case "object":if(null==a)return I.TNull;var b=a.__enum__;if(null!=b)return I.TEnum(b);a=S.getClass(a);return null!=a?I.TClass(a):I.TObject;case "function":return a.__name__||a.__ename__?I.TObject:I.TFunction;case "undefined":return I.TNull;default:return I.TUnknown}};var r=function(a){this.nodeType=a;this.children=[];this.attributeMap=new qa};f.Xml=r;r.__name__=["Xml"];r.parse=function(a){return hb.parse(a)};r.createElement=function(a){var b=new r(r.Element);if(b.nodeType!=r.Element)throw new p("Bad node type, expected Element but found "+b.nodeType);b.nodeName=a;return b};r.createPCData=function(a){var b=new r(r.PCData);if(b.nodeType==r.Document||b.nodeType==r.Element)throw new p("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};r.createCData=function(a){var b=new r(r.CData);if(b.nodeType==r.Document||b.nodeType==r.Element)throw new p("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};r.createComment=function(a){var b=new r(r.Comment);if(b.nodeType==r.Document||b.nodeType==r.Element)throw new p("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};r.createDocType=function(a){var b=new r(r.DocType);if(b.nodeType==r.Document||b.nodeType==r.Element)throw new p("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};r.createProcessingInstruction=function(a){var b=new r(r.ProcessingInstruction);if(b.nodeType==r.Document||b.nodeType==r.Element)throw new p("Bad node type, unexpected "+b.nodeType);b.nodeValue=a;return b};r.createDocument=function(){return new r(r.Document)};r.prototype={get_nodeName:function(){if(this.nodeType!=r.Element)throw new p("Bad node type, expected Element but found "+this.nodeType);return this.nodeName},get:function(a){if(this.nodeType!=r.Element)throw new p("Bad node type, expected Element but found "+this.nodeType);return this.attributeMap.get(a)},set:function(a,b){if(this.nodeType!=r.Element)throw new p("Bad node type, expected Element but found "+this.nodeType);this.attributeMap.set(a,b)},exists:function(a){if(this.nodeType!=r.Element)throw new p("Bad node type, expected Element but found "+this.nodeType);return this.attributeMap.exists(a)},iterator:function(){if(this.nodeType!=r.Document&&this.nodeType!=r.Element)throw new p("Bad node type, expected Element or Document but found "+this.nodeType);return z.iter(this.children)},elementsNamed:function(a){if(this.nodeType!=r.Document&&this.nodeType!=r.Element)throw new p("Bad node type, expected Element or Document but found "+this.nodeType);for(var b=[],c=0,e=this.children;c<e.length;){var n=e[c];++c;var d;if(d=n.nodeType==r.Element){if(n.nodeType!=r.Element)throw new p("Bad node type, expected Element but found "+n.nodeType);d=n.nodeName==a}d&&b.push(n)}return z.iter(b)},firstElement:function(){if(this.nodeType!=r.Document&&this.nodeType!=r.Element)throw new p("Bad node type, expected Element or Document but found "+ this.nodeType);for(var a=0,b=this.children;a<b.length;){var c=b[a];++a;if(c.nodeType==r.Element)return c}return null},addChild:function(a){if(this.nodeType!=r.Document&&this.nodeType!=r.Element)throw new p("Bad node type, expected Element or Document but found "+this.nodeType);null!=a.parent&&a.parent.removeChild(a);this.children.push(a);a.parent=this},removeChild:function(a){if(this.nodeType!=r.Document&&this.nodeType!=r.Element)throw new p("Bad node type, expected Element or Document but found "+ this.nodeType);return z.remove(this.children,a)?(a.parent=null,!0):!1},__class__:r};var t=function(){};f["com.EntityHelper"]=t;t.__name__=["com","EntityHelper"];t.attachToNewEntity=function(a,b,c){null==c&&(c=!0);a=(new N).add(a);null!=b&&b.addChild(a,c);return a};t.delayedCall=function(a,b,c){null==c&&(null==t.sciptEnt&&(t.sciptEnt=new N,l.root.addChild(t.sciptEnt)),c=t.sciptEnt);null==t.allTweensArray&&(t.allTweensArray=[]);var e=new yc,n=new N;t.allTweensArray.push(n);c.addChild(n);n.add(e);e.run(new zc([new Ac(a),new Tb(b),new Tb(function(){null!=e.owner&&e.owner.dispose()})]));return e};var Ga=function(){};f["flambe.util.Disposable"]=Ga;Ga.__name__=["flambe","util","Disposable"];Ga.prototype={__class__:Ga};var A=function(){this._flags=0;this.owner=this.next=null};f["flambe.Component"]=A;A.__name__=["flambe","Component"];A.__interfaces__=[Ga];A.prototype={onAdded:function(){},onRemoved:function(){},onStart:function(){},onStop:function(){},onUpdate:function(){},dispose:function(){null!=this.owner&&this.owner.remove(this)},get_name:function(){return null},__class__:A};var db=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};f["flambe.math.Point"]=db;db.__name__=["flambe","math","Point"];db.prototype={distanceTo:function(a,b){return Math.sqrt(this.distanceToSquared(a,b))},distanceToSquared:function(a,b){var c=this.x-a,e=this.y-b;return c*c+e*e},__class__:db};var L=function(){this.blendMode=this.scissor=null;var a=this;A.call(this);this._flags|=54;this._localMatrix=new wd;var b=function(){a._flags|=24};this.x=new W(0,b);this.y=new W(0,b);this.rotation=new W(0,b);this.scaleX=new W(1,b);this.scaleY=new W(1,b);this.anchorX=new W(0,b);this.anchorY=new W(0,b);this.alpha=new W(1)};f["flambe.display.Sprite"]=L;L.__name__=["flambe","display","Sprite"];L.hitTest=function(a,b,c,e){null==e&&(e=0);e++;var n=a._compMap.Sprite_0;if(null!=n){if(6!=(n._flags&6))return null;n.getLocalMatrix().inverseTransform(b,c,L._scratchPoint)&&(b=L._scratchPoint.x,c=L._scratchPoint.y);var d=n.scissor;if(null!=d&&!d.contains(b,c))return null}a=L.hitTestBackwards(a.firstChild,b,c,e);return null!=a?a:null!=n&&n.containsLocal(b,c)?n:null};L.render=function(a,b){var c=a._compMap.Sprite_0;if(null!=c){var e=c.alpha._value;if(0==(c._flags&2)||0>=e)return;b.save();1>e&&b.multiplyAlpha(e);null!=c.blendMode&&b.setBlendMode(c.blendMode);var e=c.getLocalMatrix(),n=e.m02,d=e.m12;0!=(c._flags&32)&&(n=Math.round(n),d=Math.round(d));b.transform(e.m00,e.m10,e.m01,e.m11,n,d);e=c.scissor;null!=e&&b.applyScissor(e.x,e.y,e.width,e.height);c.draw(b)}e=a._compMap.Director_3;if(null!=e){e=e.occludedScenes;for(n=0;n<e.length;)d=e[n],++n,L.render(d,b)}for(e=a.firstChild;null!=e;)n=e.next,L.render(e,b),e=n;null!=c&&b.restore()};L.hitTestBackwards=function(a,b,c,e){if(null!=a){var n=L.hitTestBackwards(a.next,b,c,e);return null!=n?n:L.hitTest(a,b,c,e)}return null};L.__super__=A;L.prototype=s(A.prototype,{get_name:function(){return"Sprite_0"},getNaturalWidth:function(){return 0},getNaturalHeight:function(){return 0},containsLocal:function(a,b){return 0<=a&&a<this.getNaturalWidth()&&0<=b&&b<this.getNaturalHeight()},getLocalMatrix:function(){0!=(this._flags&8)&&(this._flags&=-9,this._localMatrix.compose(this.x._value,this.y._value,this.scaleX._value,this.scaleY._value,3.141592653589793*this.rotation._value/180),this._localMatrix.translate(-this.anchorX._value,-this.anchorY._value));return this._localMatrix},centerAnchor:function(){this.anchorX.set__(this.getNaturalWidth()/2);this.anchorY.set__(this.getNaturalHeight()/2);return this},setXY:function(a,b){this.x.set__(a);this.y.set__(b);return this},setAlpha:function(a){this.alpha.set__(a);return this},setRotation:function(a){this.rotation.set__(a);return this},setScale:function(a){this.scaleX.set__(a);this.scaleY.set__(a);return this},disablePointer:function(){this.set_pointerEnabled(!1);return this},onAdded:function(){0!=(this._flags&64)&&this.connectHover()},onRemoved:function(){null!=this._hoverConnection&&(this._hoverConnection.dispose(),this._hoverConnection=null)},onUpdate:function(a){this.x.update(a);this.y.update(a);this.rotation.update(a);this.scaleX.update(a);this.scaleY.update(a);this.alpha.update(a);this.anchorX.update(a);this.anchorY.update(a)},draw:function(){},getParentSprite:function(){if(null==this.owner)return null;for(var a=this.owner.parent;null!=a;){var b=a._compMap.Sprite_0;if(null!=b)return b;a=a.parent}return null},get_pointerDown:function(){null==this._pointerDown&&(this._pointerDown=new U);return this._pointerDown},get_pointerIn:function(){null==this._pointerIn&&(this._pointerIn=new U);return this._pointerIn},get_pointerOut:function(){null==this._pointerOut&&(this._pointerOut=new U);return this._pointerOut},connectHover:function(){var a=this;null==this._hoverConnection&&(this._hoverConnection=l._platform.getPointer().move.connect(function(b){for(var c=b.hit;null!=c;){if(c==a)return;c=c.getParentSprite()}null!=a._pointerOut&&0!=(a._flags&64)&&a._pointerOut.emit(b);a._flags&=-65;a._hoverConnection.dispose();a._hoverConnection=null}))},set_visible:function(a){this._flags=xd.set(this._flags,2,a);return a},set_pointerEnabled:function(a){this._flags=xd.set(this._flags,4,a);return a},onPointerDown:function(a){this.onHover(a);null!=this._pointerDown&&this._pointerDown.emit(a)},onPointerMove:function(a){this.onHover(a);null!=this._pointerMove&&this._pointerMove.emit(a)},onHover:function(a){if(0==(this._flags&64)&&(this._flags|=64,null!=this._pointerIn||null!=this._pointerOut))null!=this._pointerIn&&this._pointerIn.emit(a),this.connectHover()},onPointerUp:function(a){switch(a.source[1]){case 1:null!=this._pointerOut&&0!=(this._flags&64)&&this._pointerOut.emit(a),this._flags&=-65,null!=this._hoverConnection&&(this._hoverConnection.dispose(),this._hoverConnection=null)}null!=this._pointerUp&&this._pointerUp.emit(a)},__class__:L});var X=function(a,b){null==b&&(b="");this._layout=null;var c=this;L.call(this);this._font=a;this._text=b;this._align=T.Left;this._flags|=128;var e=function(){c._flags|=128};this.wrapWidth=new W(0,e);this.letterSpacing=new W(0,e);this.lineSpacing=new W(0,e)};f["flambe.display.TextSprite"]=X;X.__name__=["flambe","display","TextSprite"];X.__super__=L;X.prototype=s(L.prototype,{draw:function(a){this.updateLayout();this._layout.draw(a)},getNaturalWidth:function(){this.updateLayout();return 0<this.wrapWidth._value?this.wrapWidth._value:this._layout.bounds.width},getNaturalHeight:function(){this.updateLayout();var a=this._layout.lines*(this._font.lineHeight+this.lineSpacing._value),b=this._layout.bounds.height;return a>b?a:b},containsLocal:function(a,b){this.updateLayout();return this._layout.bounds.contains(a,b)},setWrapWidth:function(a){this.wrapWidth.set__(a);return this},setLetterSpacing:function(a){this.letterSpacing.set__(a);return this},setLineSpacing:function(a){this.lineSpacing.set__(a);return this},setAlign:function(a){this.set_align(a);return this},set_text:function(a){a!=this._text&&(this._text=a,this._flags|=128);return a},set_align:function(a){a!=this._align&&(this._align=a,this._flags|=128);return a},updateLayout:function(){0!=(this._flags&128)&&(this._flags&=-129,this._layout=this._font.layoutText(this._text,this._align,this.wrapWidth._value,this.letterSpacing._value,this.lineSpacing._value))},onUpdate:function(a){L.prototype.onUpdate.call(this,a);this.wrapWidth.update(a);this.letterSpacing.update(a);this.lineSpacing.update(a)},__class__:X});var wa=f["com.funtomic.GameOpsStatus"]={__ename__:["com","funtomic","GameOpsStatus"],__constructs__:["UNINITIALIZED","INITIALIZING","INITIALIZED","QUITTING"]};wa.UNINITIALIZED=["UNINITIALIZED",0];wa.UNINITIALIZED.__enum__=wa;wa.INITIALIZING=["INITIALIZING",1];wa.INITIALIZING.__enum__=wa;wa.INITIALIZED=["INITIALIZED",2];wa.INITIALIZED.__enum__=wa;wa.QUITTING=["QUITTING",3];wa.QUITTING.__enum__=wa;var o=function(){};f["com.funtomic.GameOps"]=o;o.__name__=["com","funtomic","GameOps"];o.IOErrorHandler=function(a){ea.error(["Error caught ",a])};o.getEventsStaticParams=function(a){a={domain:o.domain,uuid:o.userID,platform:o.platform,is_native:o.isNative,is_synced:o.localStorage.isSynced,install_date:o.localStorage.installDate,original_version:o.localStorage.originalVersion,partial_data:o.localStorage.partialData,is_in_kizi_app:o.isInKiziApp(),events:a};null!=o.localStorage.isConverted&&(a.is_converted=o.localStorage.isConverted);null!=o.mediaSource&&(a.media_source=o.mediaSource);null!=o.campaignName&&(a.campaign_name=o.campaignName);return a};o.reportEvents=function(a){if(o.status!=wa.INITIALIZED)o.queueEvents(a);else{var b=o.getEventsStaticParams(a),c=o.apiURLPrefix+o.apiEventsLocation,e=new yd(c);e.addParameter("data",JSON.stringify(b));ea.verbose(["Posting event to:",c]);e.onData=o.eventReportSucceeded;e.onStatus=function(b){o.onEventReportReturned(b,a)};e.onError=o.IOErrorHandler;e.request(!0);o.sessionEnd()}};o.onEventReportReturned=function(a,b){switch(a){case 500:o.eventReportFailed();break;case 0:o.eventReportTimeout(b)}};o.eventReportTimeout=function(a){ea.error(["Report event timeout"]);o.queueEvents(a)};o.eventReportFailed=function(){ea.error(["Report event failed"]);o.localStorage.unsentEvents=[];o.writeLocalStorage()};o.eventReportSucceeded=function(a){ea.verbose(["Event Posted "+a]);o.reportUnsentEvents()};o.reportEvent=function(a,b){if(!o.isEventsTraceOnly)switch(o.status[1]){case 1:o.deferredReportEvents.push(function(){o.reportEvent(a,b)});break;default:var c=o.prepareEventObject(a,b);o.reportEvents([c])}};o.prepareEventObject=function(a,b){var c=za.format(new Date,"%Y-%m-%d %H:%M:%S"),e=w.string(new Date),n=e.indexOf("+"),e=z.substr(e,n,5),c={event_type:a,date:c+e};null!=o.experimentId&&(c.experiment_id=o.experimentId);null!=o.alternativeId&&(c.alternative_id=o.alternativeId);c.elapsed_play_time=Math.round(o.elapsedPlayTimeAtInit+o.sampleTimer("session")/1E3);c.session_id=o.sessionId;c.game_ops_version=o.gameOpsVersion;c.game_version=o.gameVersion;null!=o.url&&(c.url=o.url);o.firstSession&&(c.first_session=!0);null!=o.fbId&&(c.fb_id=o.fbId);return c=o.extendObject(c,b)};o.queueEvents=function(a){ea.verbose(["Queuing events:"+JSON.stringify(a)]);null==o.localStorage.unsentEvents&&(o.localStorage.unsentEvents=[]);for(var b=0;b<a.length;){var c=a[b];++b;o.localStorage.unsentEvents.push(c)}o.localStorage.unsentEvents.length>o.MAX_SAVED_UNSENT_EVENTS&&(o.localStorage.unsentEvents=[],o.localStorage.partialData=!0);o.writeLocalStorage();ea.verbose(["There are now "+w.string(o.localStorage.unsentEvents.length)+" unsent events."])};o.reportUnsentEvents=function(){null!=o.localStorage.unsentEvents&&0<o.localStorage.unsentEvents.length&&(ea.verbose(["reporting unsent events",o.localStorage.unsentEvents.length]),o.reportEvents(o.localStorage.unsentEvents),o.localStorage.unsentEvents=[],o.writeLocalStorage())};o.sessionEnd=function(a,b){null==a&&(a=!0);var c=o.sampleTimer("session");if(-1==c)ea.error(["sessionEnd was called without a matching sessionStart!"]);else{for(var e=[],n=0,d=o.levelsNumbers;n<d.length;){var f=d[n];++n;-1==e.indexOf(f)&&e.push(f)}e={session_duration:Math.round(c/1E3),levels_numbers:e.toString(),won_percent:0,levels_count:o.levelsNumbers.length,levels_won:o.levelsWon,sent_by:"application"};null!=b&&(e=o.extendObject(b,e));0<e.levels_count&&(e.won_percent=100*(o.levelsWon/o.levelsNumbers.length));o.updateTotalElapsedTime(c/1E3);c=o.prepareEventObject("session_end",e);a?(ea.verbose(["writing session end event to local storage"]),o.storageSet("FuntomicGameOps-SessionEndEvent",c)):o.reportEvents([c])}};o.updateTotalElapsedTime=function(a){o.storageSet("FuntomicGameOps-ElapsedGameTime",o.elapsedPlayTimeAtInit+a)};o.sampleTimer=function(a,b){null==b&&(b=!1);if(null==P.field(o.timers,a))return-1;var c=P.field(o.timers,a)[1];0!=P.field(o.timers,a)[0]&&(c+=o.getTimestamp()-P.field(o.timers,a)[0]);b&&P.deleteField(o.timers,a);ea.verbose(["Timer '"+a+"' sampled. Current elapsed time is "+c]);return c};o.getTimestamp=function(){return(new Date).getTime()};o.extendObject=function(a,b){for(var c=0,e=P.fields(b);c<e.length;){var n=e[c];++c;var d=P.field(b,n);a[null==n?"null":""+n]=d}return a};o.storageSet=function(a,b){return null!=o.gameOpsStorage?P.field(o.gameOpsStorage,"set")(o.domain+a,b):l._platform.getStorage().set(o.domain+a,b)};o.writeLocalStorage=function(){o.storageSet("FuntomicGameOps",o.localStorage)};o.isInKiziApp=function(){return null!=P.field(window,"jsinterface")};var ea=function(){};f["com.funtomic.GameOpsLogger"]=ea;ea.__name__=["com","funtomic","GameOpsLogger"];ea.verbose=function(a){ea.log(2,a.join(" "))};ea.error=function(a){ea.log(0,"ERROR - "+a.join(" "));null};ea.log=function(a){a<=ea.logLevel&&(a=new Date,a.getDay(),a.getMonth(),a.getFullYear(),a.getHours(),a.getMinutes(),a.getSeconds(),null)};var J=function(){};f["com.funtomic.GameOpsStorage"]=J;J.__name__=["com","funtomic","GameOpsStorage"];J.init=function(){null!=V.resolveClass("flambe.System")&&(J._prefix="flambe:");J._storage=window.localStorage;J._isInitialized=!0};J.validateInitialized=function(){if(!J._isInitialized)throw new p("GameOpsStorage Is Not Initialized!");};J.reportErrorEvent=function(a){3<J._isErrorEventsSent||(J._isErrorEventsSent+=1,o.reportEvent("local_storage_error",a))};J.get_supported=function(){return!0};J.set=function(a,b){J.validateInitialized();var c;try{var e=new Ha;e.useCache=!0;e.useEnumIndex=!1;e.serialize(b);c=e.toString()}catch(n){return n instanceof p&&(n=n.val),console.warn("Storage serialization failed:",n),J.reportErrorEvent({error_message:"Storage serialization failed: "+w.string(n)}),!1}try{J._storage.setItem(J._prefix+a,c)}catch(d){d instanceof p&&(d=d.val);console.warn("localStorage.setItem failed:",d.message);c=-2;e=!0==P.field(window,"isStorageRedirected");try{c=JSON.stringify(window.parent.localStorage).length/1024}catch(f){f instanceof p&&(f=f.val),c=-1}J.reportErrorEvent({error_message:"localStorage.setItem failed: "+ w.string(d.message),local_storage_size:c,is_storage_redirected:e});J.clear();return!1}return!0};J.get=function(a,b){J.validateInitialized();var c=null;try{c=J._storage.getItem(J._prefix+a)}catch(e){e instanceof p&&(e=e.val),console.warn("localStorage.getItem failed:",e.message),J.reportErrorEvent({error_message:"localStorage.getItem failed: "+w.string(e.message)})}if(null!=c)try{return ja.run(c)}catch(n){n instanceof p&&(n=n.val),console.warn("Storage unserialization failed:",n),J.reportErrorEvent({error_message:"Storage unserialization failed: "+ w.string(n)})}return b};J.remove=function(a){J.validateInitialized();try{J._storage.removeItem(J._prefix+a)}catch(b){b instanceof p&&(b=b.val),console.warn("localStorage.removeItem failed:",b.message),J.reportErrorEvent({error_message:"localStorage.removeItem failed: "+w.string(b.message)})}};J.clear=function(){J.validateInitialized();try{J._storage.clear()}catch(a){a instanceof p&&(a=a.val),console.warn("localStorage.clear failed:",a.message),J.reportErrorEvent({error_message:"localStorage.clear failed: "+ w.string(a.message)})}};var E=function(){this.currentScore=0;this.freecellPile=[];this.foundationPile=[];this.foundationPile[0]=[];this.foundationPile[1]=[];this.foundationPile[2]=[];this.foundationPile[3]=[];this.tableuPile=[];this.tableuPile[0]=[];this.tableuPile[1]=[];this.tableuPile[2]=[];this.tableuPile[3]=[];this.tableuPile[4]=[];this.tableuPile[5]=[];this.tableuPile[6]=[];this.tableuPile[7]=[]};f["farmgame.BoardData"]=E;E.__name__=["farmgame","BoardData"];E.isBdataChanged=function(a,b){return!1==E.isArrayIdentical(a.foundationPile[0],b.foundationPile[0])||!1==E.isArrayIdentical(a.foundationPile[1],b.foundationPile[1])||!1==E.isArrayIdentical(a.foundationPile[2],b.foundationPile[2])||!1==E.isArrayIdentical(a.foundationPile[3],b.foundationPile[3])||!1==E.isArrayIdentical(a.tableuPile[0],b.tableuPile[0])||!1==E.isArrayIdentical(a.tableuPile[1],b.tableuPile[1])||!1==E.isArrayIdentical(a.tableuPile[2],b.tableuPile[2])||!1==E.isArrayIdentical(a.tableuPile[3],b.tableuPile[3])||!1==E.isArrayIdentical(a.tableuPile[4],b.tableuPile[4])||!1==E.isArrayIdentical(a.tableuPile[5],b.tableuPile[5])||!1==E.isArrayIdentical(a.tableuPile[6],b.tableuPile[6])||!1==E.isFreeCellArrayIdentical(a.freecellPile,b.freecellPile)?!0:!1};E.isFreeCellArrayIdentical=function(a,b){if(a.length!=b.length)return!1;for(var c=a.length;0<c--;)if(null==a[c]||null==b[c]||a[c].cardIdx!=b[c].cardIdx||a[c].suitIdx!=b[c].suitIdx||a[c].turned!=b[c].turned)return!1;return!0};E.isArrayIdentical=function(a,b){if(a.length!=b.length)return!1;for(var c=a.length;0<c--;)if(null==a[c]||null==b[c]||a[c].cardIdx!=b[c].cardIdx||a[c].suitIdx!=b[c].suitIdx||a[c].turned!=b[c].turned)return!1;return!0};E.prototype={addToBdata:function(a){var b=new zd(a.suitIdx,a.cardIdx,a.turned);a.myState==k.STATE_FREECELL?this.freecellPile[a.freecellIdx]=b:a.myState==k.STATE_TABLEU?this.tableuPile[a.tableouIdx][a.tableouPosition]=b:a.myState==k.STATE_FOUNDATION&&(this.foundationPile[a.foundationIdx][a.foundationPosition]=b)},fromSnapshotToBoard:function(a){this.justUndoedArray=[];this.manageFreecell();this.manageTableu();this.manageFoundation();a||this.fixPostUndoLayering();q.currentScore=this.currentScore},manageFoundation:function(){for(var a=this.foundationPile.length;0<a--;)for(var b=this.foundationPile[a].length;0<b--;){var c=this.foundationPile[a][b],e=i.getByCardAndSuitIdx(c.suitIdx,c.cardIdx);e.myState==k.STATE_FOUNDATION&&e.foundationIdx==a&&e.foundationPosition==b&&e.turned==c.turned||this.justUndoedArray.push(e);e.myState=k.STATE_FOUNDATION;e.foundationIdx=a;e.foundationPosition=b;e.AssignTurned(c.turned);j.layerTiles.addChild(e.owner,!1)}},manageFreecell:function(){for(var a=this.freecellPile.length;0<a--;){var b=this.freecellPile[a];if(null!=b){var c=i.getByCardAndSuitIdx(b.suitIdx,b.cardIdx);c.myState==k.STATE_FREECELL&&c.freecellIdx==a&&c.turned==b.turned||this.justUndoedArray.push(c);c.myState=k.STATE_FREECELL;c.freecellIdx=a;c.AssignTurned(b.turned);j.layerTiles.addChild(c.owner,!1)}}},manageTableu:function(){for(var a=this.tableuPile.length;0<a--;)for(var b=this.tableuPile[a].length;0<b--;){var c=this.tableuPile[a][b],e=i.getByCardAndSuitIdx(c.suitIdx,c.cardIdx);e.myState==k.STATE_TABLEU&&e.tableouIdx==a&&e.tableouPosition==b&&e.turned==c.turned||this.justUndoedArray.push(e);e.myState=k.STATE_TABLEU;e.tableouIdx=a;e.tableouPosition=b;e.AssignTurned(c.turned);j.layerTiles.addChild(e.owner,!1)}},fixPostUndoLayering:function(){this.justUndoedArray.sort(function(a,c){return a.foundationPosition>c.foundationPosition?1:a.foundationPosition==c.foundationPosition?0:-1});for(var a=this.justUndoedArray.length;0<a--;)j.layerTiles.addChild(this.justUndoedArray[a].owner)},__class__:E};var u=function(){};f["farmgame.BoardManager"]=u;u.__name__=["farmgame","BoardManager"];u.InitializeBoard=function(){Ba.isAvailable=!1;u.preAutofinishInProgress=!1;u.resetBoardSnapshot();u.generateCards();u.generateBoardSnapshot(!0);fa.delay(function(){q.restartTimer()},1500);u.autoCompleteInProgress=!1;u.gameOverFlag=!1;q.totalMoves=-1;q.gameInProgress=!1;fa.delay(function(){q.gameInProgress=!0},1500)};u.RestartBoard=function(){Ba.isAvailable=!1;u.fromSnapshotToBoard(E.boardDataArray[0],!0);fa.delay(function(){q.gameStartedStamp=fa.stamp()},1500);E.boardDataIdx=-1;E.boardDataArray=[];u.resetBoardSnapshot();u.generateBoardSnapshot();u.autoCompleteInProgress=!1;u.gameOverFlag=!1;q.totalMoves=-1;q.currentSeconds=0;q.currentScore=0;q.baseScore=0;q.bonusScore=0;q.currentScore=0;q.skipScoreManage=!1;q.restartTimer();q.gameInProgress=!1;fa.delay(function(){q.gameInProgress=!0},1500);for(var a=k.cardArray,b=a.length;0<b--;){var c=a[b];c.setXY(400,800,!0);c.initAnimationState=!0;c.preInitState=!0;c.selectedFlag=!1;c.counter=0;c.initAnimationStart(c.initAnimationIdx)}};u.resetBoardSnapshot=function(){E.boardDataArray=[];E.boardDataIdx=-1};u.generateBoardSnapshot=function(a){null==a&&(a=!1);t.delayedCall(0.1,u.actuallyGenerateSnapshot);!1==a&&(Ba.isAvailable=!0)};u.actuallyGenerateSnapshot=function(){null==E.boardDataArray&&(E.boardDataArray=[],E.boardDataIdx=0);for(var a=new E,b=k.cardArray.length;0<b--;)a.addToBdata(k.cardArray[b]);a.currentScore=q.currentScore;2<=E.boardDataArray.length?u.isBdataChanged(a,E.boardDataArray[E.boardDataArray.length-1])&&(E.boardDataArray.push(a),E.boardDataIdx=E.boardDataArray.length-1,q.totalMoves++):(E.boardDataArray.push(a),E.boardDataIdx=E.boardDataArray.length-1,q.totalMoves++);!1==O.isBoardPlayable()&&new Ca};u.isBdataChanged=function(a,b){return E.isBdataChanged(a,b)};u.Undo=function(){!1!=q.gameInProgress&&(1<E.boardDataArray.length?(E.boardDataArray.pop(),u.fromSnapshotToBoard(E.boardDataArray[E.boardDataArray.length- 1])):u.fromSnapshotToBoard(E.boardDataArray[0]))};u.fromSnapshotToBoard=function(a,b){null==b&&(b=!1);a.fromSnapshotToBoard(b)};u.generateCards=function(){k.cardArray=[];for(var a=i.NUM_SUITS;0<a--;)for(var b=i.NUM_CARDS_PER_SUIT;0<b--;)new k(a,b);a=[];a.push(i.getByCardAndSuitIdx(i.SUIT_CLUBS,i.CARD_IDX_A));a.push(i.getByCardAndSuitIdx(i.SUIT_DIAMONDS,i.CARD_IDX_A));a.push(i.getByCardAndSuitIdx(i.SUIT_HEARTS,i.CARD_IDX_A));a.push(i.getByCardAndSuitIdx(i.SUIT_SPADES,i.CARD_IDX_A));for(b=-1;12>++b;)a.push(i.getByCardAndSuitIdx(i.SUIT_CLUBS,b)),a.push(i.getByCardAndSuitIdx(i.SUIT_DIAMONDS,b)),a.push(i.getByCardAndSuitIdx(i.SUIT_HEARTS,b)),a.push(i.getByCardAndSuitIdx(i.SUIT_SPADES,b));i.ShuffleArray(a,j.gameNumber)};u.tryToAutofinishGame=function(){u.preAutofinishInProgress||(u.preAutofinishInProgress=!0,fa.delay(function(){u.preAutofinishInProgress=!1;var a=!0,b=k.cardArray;if(null!=b){for(b=b.length;0<b--;)if(k.cardArray[b].myState!=k.STATE_TABLEU){a=!0;break}a&&(u.autoFinishInProgress=!0,u.autoCompleteCalled(),u.autoFinishInProgress=!1,null)}},200))};u.autoCompleteCalled=function(){for(var a=k.cardArray.length;0<a--;){var b=k.cardArray[a];if((b.myState==k.STATE_TABLEU||b.myState==k.STATE_FREECELL)&&b.doubleClickCall(!0)){j.layerTiles.addChild(b.owner);break}}};u.removeAllCardsFromBoard=function(){if(!(null==k.cardArray||0>=k.cardArray.length))for(var a=k.cardArray,b=a.length;0<b--;)null!=a[b]&&null!=a[b].owner&&a[b].owner.dispose()};u.checkIfGameOver=function(){if(!(null==k.cardArray||u.gameOverFlag)){u.gameOverFlag=!0;for(var a=k.cardArray.length;0<a--;)k.cardArray[a].myState!=k.STATE_FOUNDATION&&(u.gameOverFlag=!1);u.gameOverFlag&&q.myRef.gameOverStarted()}};u.getTotalFreecellCount=function(){for(var a=4,b=k.cardArray,c=b.length;0<c--;)b[c].myState==k.STATE_FREECELL&&a--;return a};u.getTotalFreecellColumns=function(){for(var a=8,b=0;0<a--;)null==i.getByTableuPosition(a,0)&&b++;return b};u.cardsNotOnFoundation=function(){for(var a=k.cardArray,b=0,c=a.length;0<c--;)a[c].myState!=k.STATE_FOUNDATION&&b++;return b};var Q=function(a,b,c){A.call(this);this.owner=new N;a.addChild(this.owner);this.container=a;this.owner.add(this);this.imgNormal=new ia(j.pack.getTexture(b));this.imgNormalEnt=t.attachToNewEntity(this.imgNormal,this.owner);this.imgover=new ia(j.pack.getTexture(c));t.attachToNewEntity(this.imgover,this.owner);this.imgover.get_pointerOut().connect($(this,this.onMouseOut));this.imgover.get_pointerIn().connect($(this,this.onMouseOver));this.imgNormal.get_pointerDown().connect($(this,this.onClick));this.imgover.get_pointerDown().connect($(this,this.onClick));this.imgNormal.set_visible(!0);this.imgover.alpha.set__(0)};f["farmgame.ButtonWithOverState"]=Q;Q.__name__=["farmgame","ButtonWithOverState"];Q.__super__=A;Q.prototype=s(A.prototype,{get_name:function(){return"ButtonWithOverState_9"},onUpdate:function(){},onClick:function(){l._platform.getMouse().set_cursor(aa.Default);B.play("SOUNDS/click")},onMouseOut:function(){this.imgNormal.set_visible(!0);this.imgNormal.alpha.set__(1);this.imgover.alpha.animateTo(0,0.125);l._platform.getMouse().set_cursor(aa.Default)},onMouseOver:function(){this.imgover.set_visible(!0);this.imgover.alpha.set__(0.01);this.imgover.alpha.animateTo(1,0.125);l._platform.getMouse().set_cursor(aa.Button)},setXY:function(a,b){this.imgNormal.setXY(a,b);this.imgover.setXY(a,b)},setVisible:function(){this.container.addChild(this.owner)},setInvisible:function(){null!=this.owner&&null!=this.owner.parent&&this.owner.parent.removeChild(this.owner)},__class__:Q});var k=function(a,b){this.counter=0;this.initAnimationState=this.preInitState=!0;this.selectedFlag=!1;this.myState=-1;A.call(this);this.owner=new N;j.layerTiles.addChild(this.owner);this.owner.add(this);this.cardIdx=b;this.suitIdx=a;this.cardImgBack=new ia(j.pack.getTexture("CARDS/back"+Ub.cardIdxGlobal1));this.cardImgFront=new ia(j.pack.getTexture("CARDS/"+i.getCardImageName(a,b)));this.cardImgOverlay=new ia(j.pack.getTexture("CARDS/card-overlay"));t.attachToNewEntity(this.cardImgFront,this.owner);t.attachToNewEntity(this.cardImgBack,this.owner);t.attachToNewEntity(this.cardImgOverlay,this.owner);this.cardImgBack.set_visible(!1);k.cardArray.push(this);this.cardImgFront.get_pointerDown().connect($(this,this.onPointerDownFront));this.cardImgBack.centerAnchor();this.cardImgFront.centerAnchor();this.cardImgOverlay.centerAnchor();this.cardImgPosition=new db;this.cardImgFront.setXY(440,800);this.cardImgBack.setXY(400,-200)};f["farmgame.Card"]=k;k.__name__=["farmgame","Card"];k.onPointerUpFront=function(){null!=k.cardClicked&&(k.cardClicked.unpressClickedCard(),k.cardClicked=null);k.banAllCardsFromSelection=!0;fa.delay(function(){k.banAllCardsFromSelection=!1},75)};k.__super__=A;k.prototype=s(A.prototype,{get_name:function(){return"Card_10"},unpressClickedCard:function(){k.readyForDoubleclick?(t.delayedCall(0.01,$(this,this.doubleClicked)),this.dragMode=k.readyForDoubleclick=!1):(this.dragMode=!0,!1!=this.selectedFlag&&(this.deselect()||B.playInvalid()))},onPointerDownFront:function(){k.firstTapSinceLoading&&(k.firstTapSinceLoading=!1);k.banAllCardsFromSelection||this.myState==k.STATE_FOUNDATION||(k.readyForDoubleclick=!0,k.originalSpotWhenSelected=new db(G.returnNormalizedMouseCoords().x,G.returnNormalizedMouseCoords().y),null!=this.doubleclickScr&&(this.doubleclickScr.stopAll(),this.doubleclickScr.dispose()),this.doubleclickScr=t.delayedCall(0.4,function(){k.readyForDoubleclick=!1},this.owner),this.getoOffSetAndSelect(),k.cardClicked=this,B.play("SOUNDS/grabcard"))},deselect:function(){if(!1==this.selectedFlag)return!1;this.selectedFlag=!1;var a=this.tableouIdx,b=this.tableouPosition;if(G.checkIfCardPlacedAtValidSpot(this)){var c=0,e=null,n=!0;do n=!0,c++,e=i.getByTableuPosition(a,b+1),null!=e&&!0==e.selectedFlag&&(n=!1,e.myState=this.myState,e.tableouIdx=this.tableouIdx,e.tableouPosition=this.tableouPosition+c,e.selectedFlag=!1,b++);while(!1==n);return!0}for(a=k.cardArray.length;0<a--;)k.cardArray[a].selectedFlag=!1;return!1},flipCard:function(){var a=this;if(!0==this.turned)return!1;t.delayedCall(0.06,function(){a.turned=!0;a.cardImgFront.scaleX.animate(0.2,1,0.06);a.cardImgBack.scaleX.animateTo(1,0.2)});this.cardImgBack.scaleX.animate(1,0.2,0.06);return!0},doubleClicked:function(){this.doubleclickScr.stopAll();this.doubleclickScr.dispose();k.readyForDoubleclick=!1;var a=i.getByTableuPosition(this.tableouIdx,this.tableouPosition-1);null!=a&&a.turned&&this.myState==k.STATE_TABLEU&&a.selectedFlag?a.doubleClickCall():this.doubleClickCall()},doubleClickCall:function(a){null==a&&(a=!1);return i.doubleClicked(this,a)},getoOffSetAndSelect:function(){if(!1!=i.isValidMoveStack(this)&&(this.dragOffset=new db(G.returnNormalizedMouseCoords().x- this.cardImgFront.x._value,G.returnNormalizedMouseCoords().y-this.cardImgFront.y._value+4),j.layerTiles.addChild(this.owner),this.selectCard(),this.myState==k.STATE_TABLEU)){var a=i.getByTableuPosition(this.tableouIdx,this.tableouPosition+1);null!=a&&a.getoOffSetAndSelect()}},onUpdate:function(a){var b=this;A.prototype.onUpdate.call(this,a);this.cardImgOverlay.setXY(this.cardImgFront.x._value,this.cardImgFront.y._value);!0==i.isValidMoveStack(this)?this.cardImgOverlay.set_visible(!1):this.cardImgOverlay.set_visible(!0);if(this.myState!=k.STATE_ANIMATION&&(this.turned?(this.cardImgFront.set_visible(!0),this.cardImgBack.set_visible(!1)):(this.cardImgFront.set_visible(!1),this.cardImgBack.set_visible(!0)),!this.preInitState))if(this.initAnimationState)this.manageInitialAnimation();else if(this.selectedFlag)!1==l._platform.getPointer().isDown()&&fa.delay(function(){b.deselect()},50),this.cardImgFront.setXY(G.returnNormalizedMouseCoords().x-this.dragOffset.x,G.returnNormalizedMouseCoords().y-this.dragOffset.y),this.cardImgPosition.x=this.cardImgFront.x._value,this.cardImgPosition.y=this.cardImgFront.y._value,null!=k.originalSpotWhenSelected&&50<k.originalSpotWhenSelected.distanceTo(G.returnNormalizedMouseCoords().x,G.returnNormalizedMouseCoords().y)&&(k.readyForDoubleclick=!1);else{this.myState==k.STATE_TABLEU?i.SetToTableu(this):this.myState==k.STATE_FREECELL?i.SetToFreeCell(this):this.myState==k.STATE_FOUNDATION&&i.SetToFoundation(this);var a=0.28*(this.cardImgPosition.y-this.cardImgFront.y._value),c=this.cardImgFront.x;c.set__(c._value+ 0.28*(this.cardImgPosition.x-this.cardImgFront.x._value));c=this.cardImgFront.y;c.set__(c._value+a);this.cardImgBack.setXY(this.cardImgFront.x._value,this.cardImgFront.y._value)}},manageInitialAnimation:function(){this.myState==k.STATE_TABLEU?i.SetToTableu(this):this.myState==k.STATE_FOUNDATION&&i.SetToFoundation(this);var a=this.cardImgFront.x;a.set__(a._value+0.24*(this.cardImgPosition.x-this.cardImgFront.x._value));a=this.cardImgFront.y;a.set__(a._value+0.24*(this.cardImgPosition.y-this.cardImgFront.y._value));this.cardImgBack.setXY(this.cardImgFront.x._value,this.cardImgFront.y._value)},setXY:function(a,b,c){null==c&&(c=!1);this.cardImgPosition.x=a+0.5*this.cardImgFront.getNaturalWidth();this.cardImgPosition.y=b+0.5*this.cardImgFront.getNaturalHeight();c&&(this.cardImgFront.setXY(this.cardImgPosition.x,this.cardImgPosition.y),this.cardImgBack.setXY(this.cardImgPosition.x,this.cardImgPosition.y))},addToTableu:function(a,b,c){this.turned=c;this.tableouPosition=b;this.tableouIdx=a;this.myState=k.STATE_TABLEU},selectCard:function(){this.selectedFlag=!0},AssignTurned:function(a){this.turned=a},initAnimationStart:function(a){var b=this;this.initAnimationIdx=a;t.delayedCall(0.05*a,function(){b.preInitState=!1;b.initAnimationState=!0;t.delayedCall(1,function(){b.initAnimationState=!1})})},__class__:k});var zd=function(a,b,c){this.turned=c;this.cardIdx=b;this.suitIdx=a};f["farmgame.CardData"]=zd;zd.__name__=["farmgame","CardData"];zd.prototype={__class__:zd};var Ub=function(){};f["farmgame.CardPicker"]=Ub;Ub.__name__=["farmgame","CardPicker"];Ub.__super__=A;Ub.prototype=s(A.prototype,{get_name:function(){return"CardPicker_18"},__class__:Ub});var i=function(){};f["farmgame.CardUtil"]=i;i.__name__=["farmgame","CardUtil"];i.getCardImageName=function(a,b){return i.cardNameArray[a*i.NUM_CARDS_PER_SUIT+b]};i.ShuffleArray=function(a,b){ib.initSeed(b);for(var c=[],e=a.length;0<e--;)c[e]=a[e];for(e=-1;0<c.length;){e++;var n=ib.next()%c.length,d=c[c.length-1];c[c.length-1]=c[n];c[n]=d;n=c.pop();n.addToTableu(e%8,Math.floor(e/8),!0);n.initAnimationStart(e);j.layerTiles.addChild(n.owner)}};i.isValidMoveStack=function(a,b,c){null==c&&(c=!0);null==b&&(b=!1);if(a.myState!=k.STATE_TABLEU)return!0;var e=0,n=null;do{e++;n=i.getByTableuPosition(a.tableouIdx,a.tableouPosition+1);if(!1==i.isNextCardValidMoveStack(a))return!1;a=n}while(null!=n);if(c)return!0;a=u.getTotalFreecellCount();c=u.getTotalFreecellColumns();b&&c--;return e<=(1+a)*Math.pow(2,c)?!0:!1};i.isNextCardValidMoveStack=function(a){var b=!1,c=i.getByTableuPosition(a.tableouIdx,a.tableouPosition+1);if(null!=c){if(a.cardIdx!=i.CARD_IDX_A&&(a.cardIdx==i.CARD_IDX_02&&c.cardIdx==i.CARD_IDX_A||a.cardIdx!=i.CARD_IDX_02&&a.cardIdx-1==c.cardIdx))if(c.suitIdx==i.SUIT_HEARTS||c.suitIdx==i.SUIT_DIAMONDS){if(a.suitIdx==i.SUIT_CLUBS||a.suitIdx==i.SUIT_SPADES)b=!0}else if(a.suitIdx==i.SUIT_HEARTS||a.suitIdx==i.SUIT_DIAMONDS)b=!0}else b=!0;return b};i.SetToFoundation=function(a){a.setXY(96+(4+a.foundationIdx)*x.CARD_X_DELTA_FREECELL+x.CARD_X_INITIAL_FOUNDATION_DELTA,63)};i.overlapsEmptyFreeCell=function(a){var b=Math.ceil((a.x._value-a.getNaturalWidth()-x.CARD_X_INITIAL_FREECELL)/x.CARD_X_DELTA_FREECELL);if(0<=b&&3>=b&&a.y._value<170+0.5*a.getNaturalHeight()){for(a=k.cardArray.length;0<a--;){var c=k.cardArray[a];if(c.myState==k.STATE_FREECELL&&b==c.freecellIdx)return!1}return!0}return!1};i.droppedOnEmptyTableu=function(a){var b=Math.ceil((a.cardImgFront.x._value-a.cardImgFront.getNaturalWidth()-69)/x.CARD_X_DELTA_TABLEU);G.uncoverTableu(a);a.tableouIdx=b;a.tableouPosition=0;a.myState=k.STATE_TABLEU;B.play("SOUNDS/valid");a.onUpdate(0);u.generateBoardSnapshot();u.tryToAutofinishGame()};i.overlapsEmptyTableu=function(a){var b=Math.ceil((a.x._value-a.getNaturalWidth()-69)/x.CARD_X_DELTA_TABLEU);if(140>a.y._value||0>b||7<b)return!1;for(var a=k.cardArray,c=a.length;0<c--;)if(a[c].tableouIdx==b&&a[c].myState==k.STATE_TABLEU)return!1;return!0};i.SetToTableu=function(a){var b=50+a.tableouIdx*x.CARD_X_DELTA_TABLEU,c=-1,e=!1;do{var e=!1,n=i.getByTableuPosition(a.tableouIdx,++c);if(null==n||n.turned)e=!0}while(!1==e);e=-1;n=!1;do n=!1,null==i.getByTableuPosition(a.tableouIdx,++e)&&(n=!0);while(!1==n);var d=e-c,n=28;10<d&&(n=28-Math.round(2*(d-10)));d=0;18<e&&(d=e-18);a.setXY(b,c>a.tableouPosition?193+8*a.tableouPosition:193+8*c+(a.tableouPosition-c)*(n-0.5*d))};i.SetToFreeCell=function(a){a.setXY(22+x.CARD_X_DELTA_FREECELL*a.freecellIdx,63)};i.getByTableuPosition=function(a,b){for(var c=k.cardArray.length;0<c--;){var e=k.cardArray[c];if(e.myState==k.STATE_TABLEU&&e.tableouIdx==a&&e.tableouPosition==b)return e}return null};i.overlapsFoundation=function(a){var b=Math.ceil((a.x._value-76)/x.CARD_X_DELTA_FREECELL)-5;return 0<=b&&3>=b&&a.y._value<170+0.5*a.getNaturalHeight()?!0:!1};i.droppedOnFreeCell=function(a,b){null==b&&(b=-1);if(null!=i.getByFreeCellIdx(b)||a.myState==k.STATE_TABLEU&&null!=i.getByTableuPosition(a.tableouIdx,a.tableouPosition+1))return!1;var c;c=-1==b?Math.ceil((a.cardImgFront.x._value-a.cardImgFront.getNaturalWidth()-x.CARD_X_INITIAL_FREECELL)/x.CARD_X_DELTA_FREECELL):b;a.freecellIdx=c;a.myState=k.STATE_FREECELL;a.selectedFlag=!1;a.doubleclickInProgress=!1;u.generateBoardSnapshot();u.tryToAutofinishGame();B.play("SOUNDS/valid");return!0};i.getByFreeCellIdx=function(a){for(var b=k.cardArray.length;0<b--;)if(k.cardArray[b].freecellIdx==a&&k.cardArray[b].myState==k.STATE_FREECELL)return k.cardArray[b];return null};i.droppedOnFoundation=function(a,b,c){null==c&&(c=!1);null==b&&(b=-1);if(a.myState==k.STATE_TABLEU&&null!=i.getByTableuPosition(a.tableouIdx,a.tableouPosition+1))return!1;b=-1==b?Math.floor((a.cardImgFront.x._value-80)/x.CARD_X_DELTA_FREECELL)-4:b;a.suitIdx==i.SUIT_CLUBS&&(b=1);a.suitIdx==i.SUIT_HEARTS&&(b=0);a.suitIdx==i.SUIT_DIAMONDS&&(b=2);a.suitIdx==i.SUIT_SPADES&&(b=3);i.cardExistsOnFoundation(b)?i.tryToPlaceCardonNonEmptyFoundation(a,b,c):!1==i.tryToPlaceCardOnEmptyFoundation(a,b,c)&&!1==c&&B.playInvalid();return a.myState==k.STATE_FOUNDATION?!0:!1};i.tryToPlaceCardonNonEmptyFoundation=function(a,b,c){if(i.areThereLowerCardsOnTableu(a)&&u.autoFinishInProgress)return!1;for(var e=k.cardArray,n=e.length,d=0,f=null;0<n--;){var g=e[n];g.myState==k.STATE_FOUNDATION&&g.foundationIdx==b&&g.foundationPosition>=d&&(d=g.foundationPosition,f=g)}if(null!=f&&f.suitIdx==a.suitIdx&&a.cardIdx!=i.CARD_IDX_A){if(f.cardIdx==i.CARD_IDX_A&&a.cardIdx==i.CARD_IDX_02||f.cardIdx+1==a.cardIdx)return i.placeCardOnNonEmptyFoundation(a,f),!0;!1==c&&B.playInvalid()}else null!=f&&a.cardIdx!=i.CARD_IDX_A?!1==c&&B.playInvalid():null==f&&!1==c&&B.playInvalid();return!1};i.areThereLowerCardsOnTableu=function(a){for(var b=k.cardArray,c=b.length;0<c--;){var e=b[c];if((e.myState==k.STATE_TABLEU||e.myState==k.STATE_FREECELL)&&i.isLowerCard(e,a))return!0}return!1};i.isLowerCard=function(a,b){if(b.suitIdx==i.SUIT_CLUBS||b.suitIdx==i.SUIT_SPADES)if((a.suitIdx==i.SUIT_DIAMONDS||a.suitIdx==i.SUIT_HEARTS)&&a.cardIdx<b.cardIdx)return!0;if(b.suitIdx==i.SUIT_DIAMONDS||b.suitIdx==i.SUIT_HEARTS)if((a.suitIdx==i.SUIT_CLUBS||a.suitIdx==i.SUIT_SPADES)&&a.cardIdx<b.cardIdx)return!0;return!1};i.placeCardOnNonEmptyFoundation=function(a,b){a.myState==k.STATE_TABLEU&&(q.currentScore+=5);B.play("SOUNDS/cardtofoundation");a.myState=k.STATE_FOUNDATION;a.foundationIdx=b.foundationIdx;a.foundationPosition=b.foundationPosition+1;a.selectedFlag=!1;a.doubleclickInProgress=!1;u.generateBoardSnapshot();u.tryToAutofinishGame()};i.tryToPlaceCardOnEmptyFoundation=function(a,b){return a.cardIdx==i.CARD_IDX_A?(a.myState==k.STATE_TABLEU&&(q.currentScore+=5,B.play("SOUNDS/cardtofoundation")),a.myState=k.STATE_FOUNDATION,a.foundationIdx=b,a.foundationPosition=0,a.selectedFlag=!1,a.doubleclickInProgress=!1,u.generateBoardSnapshot(),u.tryToAutofinishGame(),!0):!1};i.cardExistsOnFoundation=function(a){for(var b=k.cardArray,c=b.length;0<c--;)if(b[c].myState==k.STATE_FOUNDATION&&b[c].foundationIdx==a)return!0;return!1};i.doubleClicked=function(a,b){if(!1==i.isValidMoveStack(a))return!1;a.doubleclickInProgress=!0;if(!1==a.doubleclickInProgress)return!0;i.droppedOnFoundation(a,0,!0);if(!1==a.doubleclickInProgress)return!0;i.droppedOnFoundation(a,1,!0);if(!1==a.doubleclickInProgress)return!0;i.droppedOnFoundation(a,2,!0);if(!1==a.doubleclickInProgress)return!0;i.droppedOnFoundation(a,3,!0);if(!1==a.doubleclickInProgress)return!0;if(b)return!1;var c=new db(a.cardImgPosition.x-0.5*a.cardImgFront.getNaturalWidth(),a.cardImgPosition.y-0.5*a.cardImgFront.getNaturalHeight()),e=[0,1,2,3,4,5,6,7];c.x<a.cardImgFront.x._value&&(e=[7,6,5,4,3,2,1,0]);for(var n=e.length;0<n--;){var d=e[n];if(!1==i.isTabEmpty(d)&&(i.tryToAutoclickToTableu(a,d),!1==a.doubleclickInProgress))return!0}i.tryToAutoclickToTableu(a,e[0]);if(!1==a.doubleclickInProgress)return!0;i.tryToAutoclickToTableu(a,e[1]);if(!1==a.doubleclickInProgress)return!0;i.tryToAutoclickToTableu(a,e[2]);if(!1==a.doubleclickInProgress)return!0;i.tryToAutoclickToTableu(a,e[3]);if(!1==a.doubleclickInProgress)return!0;i.tryToAutoclickToTableu(a,e[4]);if(!1==a.doubleclickInProgress)return!0;i.tryToAutoclickToTableu(a,e[5]);if(!1==a.doubleclickInProgress)return!0;i.tryToAutoclickToTableu(a,e[6]);if(!1==a.doubleclickInProgress)return!0;i.tryToAutoclickToTableu(a,e[7]);if(!1==a.doubleclickInProgress)return!0;if(!1==i.isValidAutoclickCard(a))return B.playInvalid(),!1;i.droppedOnFreeCell(a,0);if(!1==a.doubleclickInProgress)return!0;i.droppedOnFreeCell(a,1);if(!1==a.doubleclickInProgress)return!0;i.droppedOnFreeCell(a,2);if(!1==a.doubleclickInProgress)return!0;i.droppedOnFreeCell(a,3);if(!1==a.doubleclickInProgress)return!0;a.setXY(c.x,c.y,!0);a.doubleclickInProgress=!1;B.playInvalid();return!1};i.isTabEmpty=function(a){for(var b=[!1,!1,!1,!1,!1,!1,!1,!1],c=k.cardArray.length;0<c--;){var e=k.cardArray[c];e.myState==k.STATE_TABLEU&&(b[e.tableouIdx]=!0)}return!1==b[a]?!0:!1};i.isValidAutoclickCard=function(a){return a.myState==k.STATE_TABLEU&&null==i.getByTableuPosition(a.tableouIdx,a.tableouPosition+1)||a.myState==k.STATE_FREECELL?!0:!1};i.tryToAutoclickToTableu=function(a,b){if(!(a.myState==k.STATE_FOUNDATION||a.myState==k.STATE_TABLEU&&a.tableouIdx==b)){a.getoOffSetAndSelect();for(var c=null,e=k.cardArray,n=e.length;0<n--;){var d=e[n];if(d.myState==k.STATE_TABLEU&&d.tableouIdx==b&&G.isOnTableuTop(d)){c=d;break}}n=[];for(d=e.length;0<d--;){var f=e[d];f.selectedFlag&&(n.push(f),f.oldPosition=new db(f.cardImgPosition.x-0.5*f.cardImgFront.getNaturalWidth(),f.cardImgPosition.y-0.5*f.cardImgFront.getNaturalHeight()),null!=c?f.setXY(c.cardImgFront.x._value,c.cardImgFront.y._value,!0):f.setXY(69+b*x.CARD_X_DELTA_TABLEU,210,!0))}a.deselect();for(c=n.length;0<c--;)n[c].setXY(n[c].oldPosition.x,n[c].oldPosition.y,!0)}};i.Undo=function(){u.Undo()};i.getByCardAndSuitIdx=function(a,b){for(var c=k.cardArray,e=c.length;0<e--;){var n=c[e];if(n.suitIdx==a&&n.cardIdx==b)return n}return null};var Y=function(){};f["farmgame.FinishingAnimation"]=Y;Y.__name__=["farmgame","FinishingAnimation"];Y.start=function(){Y.endAnimation=!1;Y.currentFoundIdx=-1;Y.currentCardAnimationCounter=0;Y.allImgArr=[];l._platform.getPointer().down.connect(Y.startNewGame).once();Y.inProgress=!0;q.gameInProgress=!1};Y.startNewGame=function(){!0!=Y.endAnimation&&Y.endAnimationSet()};Y.endAnimationSet=function(){Y.endAnimation=!0;for(var a=k.cardArray,b=a.length;0<b--;)a[b].cardImgFront.setScale(1);Y.inProgress=!1};var x=function(){};f["farmgame.GameConsts"]=x;x.__name__=["farmgame","GameConsts"];var j=function(a){j.ctx=this;null==a._compMap.Director_3&&a.add((new Bc).setSize(x.WIDTH,x.HEIGHT));this._viewport=a};f["farmgame.GameContext"]=j;j.__name__=["farmgame","GameContext"];j.randomizeGameNumber=function(){null!=j.gameNumber&&(j.oldBGameNumber=j.gameNumber);j.gameNumber=Math.ceil(1E7*Math.random())};j.increaseGameCount=function(){l._platform.getStorage().set("gameCount",1+l._platform.getStorage().get("gameCount",0))};j.getGameCount=function(){return l._platform.getStorage().get("gameCount",0)};j.increaseGameWonCount=function(){l._platform.getStorage().set("gameWonCount",1+l._platform.getStorage().get("gameWonCount",0))};j.getGameWonCount=function(){return l._platform.getStorage().get("gameWonCount",0)};j.prototype={unwindToScene:function(a,b){this._viewport._compMap.Director_3.unwindToScene(a,b)},__class__:j};var m=function(){};f["farmgame.Language"]=m;m.__name__=["farmgame","Language"];m.initLanguage=function(){var a=l._platform.getExternal().call("location.href.toString").split("lang=")[1];null==a&&(a="en");var a=a.toUpperCase(),b=r.parse(j.pack.getFile("language.xml").toString()),b=new Vb(b.firstElement());m.LanguageAbbrevations=[];m.DRAW_1_CARD=[];m.DRAW_3_CARDS=[];m.MENU=[];m.TIME=[];m.BEST=[];m.YOULOSTTHISGAMEIN=[];m.PLAY_SHORT=[];m.HOW_TO_PLAY_FULL=[];m.HOW_TO_PLAY=[];m.YOU_WIN=[];m.BONUS=[];m.SCORE=[];m.TOTAL=[];m.GAME_OVER=[];m.RESET_THIS_GAME=[];m.NEW_GAME=[];m.KEEP_PLAYING=[];m.RESTART_GAME=[];m.SOUND_ON=[];m.SOUND_OFF=[];m.MORE_GAMES=[];m.ARE_YOU_SURE_NEW=[];m.ARE_YOU_SURE_SHORT=[];m.ARE_YOU_SURE_RESTART=[];m.TIME_BONUS=[];m.YES=[];m.NO=[];m.UNDO=[];m.DECK=[];m.SELECT_DECK_CARD=[];m.RESUME=[];m.NEW_GAME_DRAW1=[];m.NEW_GAME_DRAW3=[];m.RESET_THIS_GAME=[];m.CURRENT_RESULT=[];m.MOVES=[];m.REPLAY=[];m.YOUWONGAME=[];m.GAMESELECT=[];m.NOMOVESLEFT=[];m.UNDOLASTMOVE=[];m.TIMEPLAYED=[];m.MOVESMADE=[];m.TOTALGAMESPLAYED=[];m.TOTALGAMESWON=[];m.BESTTIME=[];m.YOULOSTGAME=[];m.START_NEW=[];m.CONGRATS=[];m.OUTOFTIME=[];for(b=b.nodes.resolve("language").iterator();null!=b.head;){var c;b.val=b.head[0];b.head=b.head[1];c=b.val;m.LanguageAbbrevations.push(c.att.resolve("name").toString());m.PLAY_SHORT.push(c.node.resolve("play").get_innerData().toString());m.GAME_OVER.push(c.node.resolve("GAME_OVER").get_innerData().toString());m.MENU.push(c.node.resolve("menu").get_innerData().toString());m.NEW_GAME.push(c.node.resolve("new_game").get_innerData().toString());m.RESTART_GAME.push(c.node.resolve("restart").get_innerData().toString());m.SOUND_ON.push(c.node.resolve("sound_on").get_innerData().toString());m.SOUND_OFF.push(c.node.resolve("sound_off").get_innerData().toString());m.MORE_GAMES.push(c.node.resolve("MORE_GAMES").get_innerData().toString());m.ARE_YOU_SURE_NEW.push(c.node.resolve("are_you_sure_new").get_innerData().toString());m.ARE_YOU_SURE_SHORT.push(c.node.resolve("are_you_sure_short").get_innerData().toString());m.YES.push(c.node.resolve("yes").get_innerData().toString());m.NO.push(c.node.resolve("no").get_innerData().toString());m.RESUME.push(c.node.resolve("resume").get_innerData().toString());m.MOVES.push(c.node.resolve("MOVES").get_innerData().toString());m.REPLAY.push(c.node.resolve("replay").get_innerData().toString());m.YOUWONGAME.push(c.node.resolve("youwongame").get_innerData().toString());m.YOULOSTGAME.push(c.node.resolve("youlostgame").get_innerData().toString());m.NOMOVESLEFT.push(c.node.resolve("nomoremoves").get_innerData().toString());m.TIMEPLAYED.push(c.node.resolve("timeplayed").get_innerData().toString());m.CONGRATS.push(c.node.resolve("congratulations").get_innerData().toString());m.OUTOFTIME.push(c.node.resolve("outoftime").get_innerData().toString())}m.langIdx=m.LanguageAbbrevations.indexOf(a.toLowerCase());null};var h=function(){};f["farmgame.Main"]=h;h.__name__=["farmgame","Main"];h.main=function(){l.init();F.SHOULD_HIDE_MOBILE_BROWSER=!1;l._platform.getPointer().down.connect(function(){B.canPlaySounds=!0});h.layerBackground=new N;h.layerGame=new N;h.layerRotate=new N;h.layerPrompts=new N;h.layerPreBg=new N;l.root.addChild(h.layerPreBg);l.root.addChild(h.layerBackground);l.root.addChild(h.layerGame);l.root.addChild(h.layerPrompts);l.root.addChild(h.layerRotate);x.MOBILE_BROWSER=G.isMobileBrowser(l._platform.getExternal().call("getUserAgent"))?!0:!1;l._platform.getExternal().call("addClickListener");h.determineScreenSizeMode();h.borderN=new na(16711680,0,0);h.borderE=new na(16711680,0,0);h.borderS=new na(16711680,0,0);h.borderW=new na(16711680,0,0);h.imageN=null;h.imageE=null;h.imageS=null;h.imageW=null;h.borderN.set_visible(h.borderE.set_visible(h.borderS.set_visible(h.borderW.set_visible(!1))));h.onConfigLoaded(!1);l._platform.getStage().resize.connect(h.onResize,!0)};h.determineScreenSizeMode=function(){!1==l._platform.getStage().fullscreen.get__()&&1<l._platform.getExternal().call("eligibleForResize")&&x.MOBILE_BROWSER&&(x.SMALL_DEVICE_MODE=!0,null)};h.addBackgroundSprite=function(){null!=j.pack&&(h.backgroundState2?(h.preBg=new na(0,l._platform.getStage().get_width(),l._platform.getStage().get_height()),t.attachToNewEntity(h.preBg,h.layerBackground),h.preBg.setXY(0,0),h.backgroundSprite=new ia(j.pack.getTexture("game_bg_hd")),h.bgSpriteEnt.add(h.backgroundSprite)):(h.backgroundSprite=new ia(j.pack.getTexture("game_bg_hd")),h.bgSpriteEnt=t.attachToNewEntity(h.backgroundSprite,h.layerBackground,!1),h.bgWhiteFill=new na(0,l._platform.getStage().get_width(),l._platform.getStage().get_height()),t.attachToNewEntity(h.bgWhiteFill,h.layerBackground)),h.backgroundSprite.centerAnchor(),h.backgroundSprite.scaleX.set__(l._platform.getStage().get_width()/h.backgroundSprite.getNaturalWidth()),h.backgroundSprite.scaleY.set__(l._platform.getStage().get_height()/h.backgroundSprite.getNaturalHeight()),h.backgroundSprite.setScale(Math.max(h.backgroundSprite.scaleX._value,h.backgroundSprite.scaleY._value)),h.backgroundSprite.setXY(l._platform.getStage().get_width()/2,l._platform.getStage().get_height()/2),h.backgroundSprite.set_visible(!1),h.bgWhiteFill.centerAnchor(),h.bgWhiteFill.scaleX.set__(l._platform.getStage().get_width()/h.bgWhiteFill.getNaturalWidth()),h.bgWhiteFill.scaleY.set__(l._platform.getStage().get_height()/h.bgWhiteFill.getNaturalHeight()),h.bgWhiteFill.setScale(Math.max(h.bgWhiteFill.scaleX._value,h.bgWhiteFill.scaleY._value)),h.bgWhiteFill.setXY(l._platform.getStage().get_width()/2,l._platform.getStage().get_height()/2))};h.addRotateImg=function(){h.rotateImg=new ia(j.pack.getTexture("TURN"));t.attachToNewEntity(h.rotateImg,h.layerRotate,!1);h.rotateImg.centerAnchor();null!=l._platform.getStage()&&(h.rotateImg.setXY(l._platform.getStage().get_width()/2,l._platform.getStage().get_height()/2),h.rotateImg.scaleX.set__(l._platform.getStage().get_width()/h.rotateImg.getNaturalWidth()),h.rotateImg.scaleY.set__(l._platform.getStage().get_height()/h.rotateImg.getNaturalHeight()),h.rotateImg.set_visible(!1),h.rotateImg.setScale(Math.max(h.rotateImg.scaleX._value,h.rotateImg.scaleY._value)))};h.onResize=function(){h.resizeCalled=!0;h.layoutBorders()};h.onConfigLoaded=function(){var a=ua.fromAssets("bootstrap"),a=l._platform.loadAssetPack(a);h.viewport=(new N).add(new L);h.mainSprite=new L;(new N).add(h.mainSprite);h.layerGame.addChild(h.mainSprite.owner);h.mainSprite.owner.addChild(h.viewport);h.layoutBorders();a.get(h.onBootstrapFinish)};h.resizeHtml=function(){null};h.layoutBorders=function(){h.determineScreenSizeMode();var a=l._platform.getStage().get_width(),b=l._platform.getStage().get_height();h.theWidth=l._platform.getExternal().call("getWidth");h.theHeight=l._platform.getExternal().call("getHeight");if(b>a){var c=b,b=a,a=c;h.mainSprite.setRotation(90).setXY(b,0);h.isRotated=!0}else h.mainSprite.setRotation(0).setXY(0,0),h.isRotated=!1,b=h.theHeight*a/h.theWidth;var e=a/x.WIDTH,n=b/x.HEIGHT,c=Math.min(e,n);x.scaleX=e;x.scaleY=n;x.scale=c;e=h.viewport._compMap.Sprite_0;e.x.set__(0.5*a-0.5*c*x.WIDTH);e.y.set__(0.5*b-0.5*c*x.HEIGHT);e.setScale(c);j.viewPortSprite=e;h.borderN.setXY(0,0);h.borderN.width.set__(a);h.borderN.height.set__(e.y._value);h.borderN.disablePointer();h.borderE.setXY(a-e.x._value-1,e.y._value);h.borderE.width.set__(1+e.x._value);h.borderE.height.set__(b-2*e.y._value);h.borderE.disablePointer();h.borderS.setXY(0,b-e.y._value);h.borderS.width.set__(a);h.borderS.height.set__(e.y._value);h.borderS.disablePointer();h.borderW.setXY(0,e.y._value);h.borderW.width.set__(1+e.x._value);h.borderW.height.set__(b-2*e.y._value);h.borderW.disablePointer();null!=h.rotateImg&&(h.theHeight>h.theWidth?(h.rotateImg.set_visible(!0),h.rotateImg.centerAnchor(),h.rotateImg.setXY(l._platform.getStage().get_width()/2,l._platform.getStage().get_height()/2),h.rotateImg.scaleX.set__(l._platform.getStage().get_width()/h.rotateImg.getNaturalWidth()),h.rotateImg.scaleY.set__(l._platform.getStage().get_height()/h.rotateImg.getNaturalHeight()),h.rotateImg.setScale(Math.max(h.rotateImg.scaleX._value,h.rotateImg.scaleY._value))):h.rotateImg.set_visible(!1));l._platform.getExternal().call("hideIosBar");h.addBackgroundSprite();t.delayedCall(1.5,h.checkIfNeedsToBeResized)};h.checkIfNeedsToBeResized=function(){l._platform.getStage().orientation.get__()==sb.Landscape&&(h.theWidth!=l._platform.getStage().get_width()||h.theHeight!=l._platform.getStage().get_height())&&l._platform.getStage().requestResize(h.theWidth,h.theHeight)};h.gotoFullScreenMode=function(){l._platform.getStage().requestFullscreen();B.play("SOUNDS/click");l._platform.getStage().requestResize(l._platform.getExternal().call("getWidth"),l._platform.getExternal().call("getHeight"));t.delayedCall(0.5,h.resizeHtml);t.delayedCall(0.55,h.onResize)};h.onBootstrapFinish=function(a){var b=new j(h.viewport);j.pack=a;j.preloaderPack=a;h.addBackgroundSprite();h.addRotateImg();l._platform.getStage().resize.connect(h.layoutBorders);t.delayedCall(1,h.layoutBorders);b.unwindToScene(y.create(b))};var D=function(){};f["farmgame.MainScene"]=D;D.__name__=["farmgame","MainScene"];D.create=function(){l.root.add(new Cc(1));D.scene=new N;D.scene.add(new ba);j.randomizeGameNumber();j.mainScene=D.scene;x.SMALL_DEVICE_MODE?t.delayedCall(1.0E-4,D.initScene):D.initScene();q.startTimer();l._platform.getPointer().down.connect(D.onMouseScroll);l._platform.getPointer().up.connect(D.onMouseUp);return D.scene};D.onMouseUp=function(){k.onPointerUpFront()};D.onMouseScroll=function(){var a=k.cardArray;if(null!=a)for(var b=a.length;0<b--;){var c=a[b];if(c.selectedFlag)c.onUpdate(0)}};D.initScene=function(){D.backgroundSprite=new ia(j.pack.getTexture("game_bg_hd"));t.attachToNewEntity(D.backgroundSprite,D.scene);D.backgroundSprite.setXY(0,0);D.turnOverCard=new na(16777215,90,140);t.attachToNewEntity(D.turnOverCard,D.scene);D.turnOverCard.setXY(60,50);D.turnOverCard.setAlpha(0.001);h.backgroundState2=!0;h.backgroundSprite=null;h.addBackgroundSprite();D.createLayers(D.scene);l._platform.getKeyboard().down.connect(D.onKeyDown);l._platform.getKeyboard().up.connect(D.onKeyUp);D.addInitScreen()};D.addInitScreen=function(){D.newGame()};D.onKeyUp=function(a){a.key==d.Control&&(D.controlPressed=!1)};D.onKeyDown=function(a){D.controlPressed&&a.key==d.Z&&Ba.isAvailable&&i.Undo();a.key==d.Control&&(D.controlPressed=!0)};D.createLayers=function(a){var b=new N,c=new N,e=new N,n=new N,d=new N,f=new N;j.layerBG=b;j.layerTiles=c;j.layerAnimation=new N;j.layerUI=n;x.layerRotate=d;j.layerUIBelow=f;a.addChild(b);a.addChild(c);a.addChild(f);a.addChild(n);a.addChild(e);a.addChild(d);new na(16777215,1,1)};D.newGame=function(){u.removeAllCardsFromBoard();null!=q.myRef&&null!=q.myRef.owner&&q.myRef.owner.dispose();new q;x.MOBILE_BROWSER&&l._platform.getStage().requestFullscreen();D.startGame();l._platform.getStage().requestResize(l._platform.getExternal().call("getWidth"),l._platform.getExternal().call("getHeight"));t.delayedCall(0.5,h.resizeHtml);t.delayedCall(0.55,h.onResize)};D.startGame=function(){u.InitializeBoard()};var q=function(){this.countExtraTime=!1;this.counter=0;this.highScoreReached=!1;this.maxScore=this.maxScore3=0;var a=this;A.call(this);q.myRef=this;this.owner=new N;j.layerUI.addChild(this.owner);this.owner.add(this);q.baseScore=0;q.bonusScore=0;q.currentScore=0;q.gameStartedStamp=0;q.currentSeconds=0;q.skipScoreManage=!1;this.scoreTxt=new X(j.white_semi_20,"0");this.scoreTxt.setXY(742,9);t.attachToNewEntity(this.scoreTxt,this.owner);this.scoreTxt.setAlign(T.Right);this.scoreTxt.set_visible(!1);this.timeTxt=new X(j.white_semi_20,"Time: ");this.timeTxt.setXY(753,11);t.attachToNewEntity(this.timeTxt,this.owner);this.timeTxt.setAlign(T.Right);this.timeTxt._text.toUpperCase();this.movesTxt=new X(j.white_semi_20,"0");this.movesTxt.set_text("123");t.attachToNewEntity(this.movesTxt,this.owner);this.movesTxt.setXY(864,11);this.movesTxt._text.toUpperCase();this.movesTxt.setAlign(T.Right);this.bestScoreTxt=new X(j.font_light_bold_18,"Best: ");this.bestScoreTxt.setXY(778,20);this.bestScoreTxt.setAlign(T.Right);this.bestScoreTxt.set_visible(!1);this.cardLeftTxt=new X(j.white_semi_20,"Cards Left:52");this.cardLeftTxt.setXY(640,11);this.cardLeftTxt.setAlign(T.Right);t.attachToNewEntity(this.cardLeftTxt,this.owner);var b=new na(16777215,280,50);b.alpha.set__(1.0E-9);b.setXY(300,570);b.get_pointerDown().connect($(this,this.onFooterClicked));b.get_pointerIn().connect(function(){l._platform.getMouse().set_cursor(aa.Button)});b.get_pointerOut().connect(function(){l._platform.getMouse().set_cursor(aa.Default)});t.attachToNewEntity(b,this.owner);l._platform.getExternal().bind("onBodyClicked",function(){a.justClickedGameboss&&(l._platform.getWeb().openBrowser("https://gameboss.com"),a.justClickedGameboss=!1)});l._platform.getExternal().call("addBindListener");this.manageHighScore();b=new Ba(this.owner);b.setXY(822,541);b.setXY(x.WIDTH-b.imgNormal.getNaturalWidth(),x.HEIGHT-b.imgNormal.getNaturalHeight());(new tb(this.owner)).setXY(0,x.HEIGHT-b.imgNormal.getNaturalHeight());new Dc(this.owner);fa.delay(function(){},7E3)};f["farmgame.MainUI"]=q;q.__name__=["farmgame","MainUI"];q.convertToHHMMSS=function(a){var b=a%60,c=Math.floor(a%3600/60);q.doubleDigitFormat(Math.floor(a/3600));a=q.doubleDigitFormat(c)+":";b=q.doubleDigitFormat(b);return a+b};q.doubleDigitFormat=function(a){return 10>a?"0"+a:""+a};q.startTimer=function(){fa.delay(q.countTime,1E3)};q.countTime=function(){null==j.layerUIBelow.firstChild&&q.gameInProgress&&(q.currentSeconds++,q.currentSeconds>=x.GAME_TIME-10&&B.play("SOUNDS/beep"),q.currentSeconds>=x.GAME_TIME&&new ra);fa.delay(q.countTime,1E3)};q.restartTimer=function(){q.gameInProgress=!0;q.currentSeconds=0};q.__super__=A;q.prototype=s(A.prototype,{get_name:function(){return"MainUI_16"},onFooterClicked:function(){var a=this;this.justClickedGameboss=!0;t.delayedCall(0.5,function(){a.justClickedGameboss=!1});l._platform.getExternal().call("openGameBoss")},onUpdate:function(a){var b=x.GAME_TIME-q.currentSeconds;this.cardLeftTxt.set_text(""+u.cardsNotOnFoundation());if(this.countExtraTime){var c=Math.floor(b/this.countExtraTimeFrames);0==this.countExtraTimeFrames%90&&B.play("SOUNDS/counter-points");this.countExtraTimeFrames--;q.currentSeconds+=c;q.bonusScore+=c;l._platform.getStorage().get("bestscorefreecell",0)<q.currentScore&&l._platform.getStorage().set("bestscorefreecell",q.currentScore);0>=this.countExtraTimeFrames&&(this.countExtraTime=!1,t.delayedCall(0.1,function(){new Z}))}for(var c=0,e=k.cardArray.length;0<e--;)k.cardArray[e].myState==k.STATE_FOUNDATION&&c++;q.baseScore=5*c;q.currentScore=q.baseScore+q.bonusScore;this.scoreTxt.set_text(""+q.currentScore);this.timeTxt.set_text(""+this.formatTime(Math.floor(b)));this.movesTxt.set_text(""+q.totalMoves);this.timeTxt._text.toUpperCase();this.movesTxt._text.toUpperCase();A.prototype.onUpdate.call(this,a);0==this.counter++%8&&u.checkIfGameOver();!1==q.skipScoreManage&&this.manageHighScore();l._platform.getStorage().get("bestscorefreecell",0)<q.currentScore&&l._platform.getStorage().set("bestscorefreecell",q.currentScore)},formatTime:function(a){return q.convertToHHMMSS(a)},createBestResultString:function(){return""},manageHighScore:function(){var a=0,a=0;1==j.drawCardNum?(l._platform.getStorage().get("bigmaxScore2",0)>this.maxScore&&(this.maxScore=l._platform.getStorage().get("bigmaxScore2",0)),a=q.currentScore+a,q.currentScore=a,this.scoreTxt.set_text(""+a),a>=this.maxScore&&!0!=this.highScoreReached?(this.highScoreReached=!0,this.maxScore=a,l._platform.getStorage().set("bigmaxScore2",this.maxScore),l._platform.getStorage().set("bestresult1card",this.createBestResultString())):a>=this.maxScore&&(l._platform.getStorage().set("bigmaxScore2",a),l._platform.getStorage().set("bestresult1card",this.createBestResultString())),this.bestScoreTxt.set_text(""+this.maxScore)):(l._platform.getStorage().get("bigmaxScore2345",0)>this.maxScore3&&(this.maxScore3=l._platform.getStorage().get("bigmaxScore2345",0)),a=q.currentScore+a,q.currentScore=a,this.scoreTxt.set_text(""+a),a>=this.maxScore3&&!0!=this.highScoreReached?(this.highScoreReached=!0,this.maxScore=a,l._platform.getStorage().set("bigmaxScore2345",this.maxScore3),l._platform.getStorage().set("bestresult3card",this.createBestResultString())):a>=this.maxScore3&&(l._platform.getStorage().set("bigmaxScore2345",a),l._platform.getStorage().set("bestresult3card",this.createBestResultString())),this.bestScoreTxt.set_text(""+this.maxScore3))},gameOverStarted:function(){var a=this;Y.start();q.skipScoreManage=!0;this.manageHighScore(!0);t.delayedCall(0.5,function(){j.lastGameTime=q.currentSeconds;a.countExtraTime=!0;a.countExtraTimeFrames=180})},__class__:q});var y=function(){};f["farmgame.PreloaderScene"]=y;y.__name__=["farmgame","PreloaderScene"];y.create=function(a){m.initLanguage();y.deltaY=150;y.ctx=a;y.scene=new N;a=ua.fromAssets("hd_assets");a=l._platform.loadAssetPack(a);l._platform.getTouch().get_supported()&&(y.mobileBrowser=!0);y.imgSpr=new ia(j.pack.getTexture("SPLASH"));t.attachToNewEntity(y.imgSpr,y.scene);y.imgSpr.setXY(x.WIDTH/2,x.HEIGHT/2);y.imgSpr.centerAnchor();y.imgSpr.setScale(1);y.logo=new ia(j.pack.getTexture("m_poollogo",!1));y.logo.setXY(x.WIDTH/2,x.HEIGHT/2-50-y.deltaY);y.logo.centerAnchor();y.logo.setScale(1);y.logo.disablePointer();y.logo.set_visible(!1);y.mobileBrowser||t.delayedCall(0.1,y.tryToStartNextScene);a.get(function(a){j.pack=a;y.allowNextScreen=!0;y.imgSpr.set_visible(!0);B.Init();y.mobileBrowser&&(y.imgSpr.dispose(),y.imgSpr=new ia(j.pack.getTexture("play")),t.attachToNewEntity(y.imgSpr,y.scene),y.imgSpr.setXY(x.WIDTH/2,x.HEIGHT/2),y.imgSpr.centerAnchor(),y.imgSpr.setScale(1),y.imgSpr.get_pointerDown().connect(y.firstTapMobile).once());j.font_blue_bold_24=new ca(j.pack,"pink_20_regular/font");j.font_dark_bold_21=new ca(j.pack,"pink_20_regular/font");j.font_light_bold_18=new ca(j.pack,"pink_20_regular/font");j.font_white_bold_18=new ca(j.pack,"pink_20_regular/font");j.font_white_bold_22=new ca(j.pack,"pink_20_regular/font");j.black_bold_20=new ca(j.pack,"pink_20_regular/font");j.white_bold_65=new ca(j.pack,"pink_20_regular/font");j.white_light_23=new ca(j.pack,"pink_20_regular/font");j.white_semi_20=new ca(j.pack,"pink_20_regular/font");j.white_semi_24=new ca(j.pack,"pink_20_regular/font");j.white_semi_28=new ca(j.pack,"pink_20_regular/font");j.pink_20_regular=new ca(j.pack,"pink_20_regular/font");j.white_22_bold=new ca(j.pack,"white_22_bold/font");j.white_30_bold=new ca(j.pack,"white_30_bold/font");j.white_semi_20._glyphs.h[58].xAdvance=10;j.white_semi_20._glyphs.h[58].xOffset=3;j.white_semi_20._glyphs.h[58].yOffset=6;j.white_semi_24._glyphs.h[58].xAdvance=10;j.white_semi_24._glyphs.h[58].xOffset=3;j.white_semi_24._glyphs.h[58].yOffset=7;j.white_semi_28._glyphs.h[58].xAdvance=10;j.white_semi_28._glyphs.h[58].xOffset=3;j.white_semi_28._glyphs.h[58].yOffset=9;j.white_semi_24._glyphs.h[57].yOffset=4;t.delayedCall(0.5,function(){null});t.delayedCall(2,function(){null});t.delayedCall(4,function(){null})});return y.scene};y.firstTapMobile=function(){h.gotoFullScreenMode();y.tryToStartNextScene()};y.tryToStartNextScene=function(){y.allowNextScreen?t.delayedCall(1.02,y.startNextScene):t.delayedCall(1.01,y.tryToStartNextScene)};y.startNextScene=function(){y.imgSpr.alpha.animateTo(0,0.0025);h.bgWhiteFill.alpha.animateTo(0,0.0025);t.delayedCall(0.0025,y.showPlayBut)};y.showPlayBut=function(){y.actuallyStartNextScene()};y.actuallyStartNextScene=function(){y.scene.disposeChildren();y.scene.dispose();y.ctx.unwindToScene(D.create(y.ctx),new Ec(0.01))};var ib=function(){};f["farmgame.RNG"]=ib;ib.__name__=["farmgame","RNG"];ib.initSeed=function(a){ib.seed=a};ib.next=function(){ib.seed=214013*ib.seed+2531011&2147483647;return ib.seed>>16};var ba=function(){this.counter=0;A.call(this);ba.imageFiller=new na(0,l._platform.getStage().get_width(),l._platform.getStage().get_height());t.attachToNewEntity(ba.imageFiller,h.layerGame,!0);ba.imageFiller.setAlpha(0.9);ba.imageFiller.set_visible(!1);ba.imageFiller.get_pointerDown().connect($(this,this.onImageFillerPointerDown))};f["farmgame.SceneManager"]=ba;ba.__name__=["farmgame","SceneManager"];ba.__super__=A;ba.prototype=s(A.prototype,{get_name:function(){return"SceneManager_13"},onImageFillerPointerDown:function(){null!=H.myRef&&null!=H.myRef.owner&&null!=H.myRef.owner.parent&&H.myRef.remove();null!=da.myref&&null!=da.myref.owner&&null!=da.myref.owner.parent&&da.myref.remove()},onUpdate:function(a){null!=h.layerPrompts.firstChild?ba.imageFiller.set_visible(!0):ba.imageFiller.set_visible(!1);if(0==this.counter++%2&&(ba.imageFiller.getNaturalWidth()!=l._platform.getStage().get_width()||ba.imageFiller.getNaturalHeight()!=l._platform.getStage().get_height()))ba.imageFiller.dispose(),ba.imageFiller=new na(0,l._platform.getStage().get_width(),l._platform.getStage().get_height()),ba.imageFiller.set_visible(!1),t.attachToNewEntity(ba.imageFiller,h.layerGame,!0),ba.imageFiller.setAlpha(0.9),ba.imageFiller.get_pointerDown().connect($(this,this.onImageFillerPointerDown));0==this.counter%80&&(this.theWidth=l._platform.getExternal().call("getWidth"),this.theHeight=l._platform.getExternal().call("getHeight"),(this.theWidth!=l._platform.getStage().get_width()||this.theHeight!=l._platform.getStage().get_height())&&l._platform.getStage().requestResize(this.theWidth,this.theHeight),this.theWidth>this.theHeight?h.rotateImg.set_visible(!1):(h.rotateImg.set_visible(!0),h.rotateImg.centerAnchor(),h.rotateImg.setXY(0.5*this.theWidth,0.5*this.theHeight),h.rotateImg.scaleX.set__(this.theWidth/h.rotateImg.getNaturalWidth()),h.rotateImg.scaleY.set__(this.theHeight/h.rotateImg.getNaturalHeight())));A.prototype.onUpdate.call(this,a)},__class__:ba});var Ad=function(){A.call(this);this.owner=(new N).add(this);l.root.addChild(this.owner)};f["farmgame.SoundIndexHolder"]=Ad;Ad.__name__=["farmgame","SoundIndexHolder"];Ad.__super__=A;Ad.prototype=s(A.prototype,{get_name:function(){return"SoundIndexHolder_7"},onUpdate:function(a){var b=B.allPlaybacks[this.soundIdx][this.counterIdx];!1==b.get_paused()&&0==this.soundIdx&&b.get_position();A.prototype.onUpdate.call(this,a)},playSoundStarted:function(a){this.playSoundTween=t.delayedCall(a+0.1,$(this,this.playSoundEnded))},playSoundEnded:function(){null!=this.playSoundTween&&null!=this.playSoundTween.owner&&this.playSoundTween.owner.dispose();var a=B.allPlaybacks[this.soundIdx][this.counterIdx],a=j.pack.getSound(B.allSoundArrayNames[this.soundIdx]).play();a.set_paused(!0);a.volume.set__(0);B.allPlaybacks[this.soundIdx][this.counterIdx]=a;null},__class__:Ad});var B=function(){};f["farmgame.SoundPlayer2"]=B;B.__name__=["farmgame","SoundPlayer2"];B.Init=function(){if(K.get_supported())x.WebAudioSupported=!0;else{B.allPlaybacks=[];B.playbackIndexes=[];for(var a=B.allSoundArrayNames.length;0<a--;){B.playbackIndexes[a]=0;B.allPlaybacks[a]=[];for(var b=B.MAX_CACHED[a];0<b--;){var c=j.pack.getSound(B.allSoundArrayNames[a]).play();c.set_paused(!0);c.volume.set__(0);B.allPlaybacks[a][b]=c;null}}null}};B.play=function(a,b){null==b&&(b=1);K.ctx&&K.ctx.resume();!1==B.canPlaySounds||!1==eb.soundFlag||K.get_supported()&&j.pack.getSound(a).play(b)};B.playInvalid=function(){B.canPlayInvalid&&(fa.delay(function(){B.canPlayInvalid=!0},200),B.canPlayInvalid=!1)};var G=function(){};f["farmgame.Util"]=G;G.__name__=["farmgame","Util"];G.isMobileBrowser=function(a){return 0<=a.lastIndexOf("Mobile")||0<=a.lastIndexOf("Android")?!0:!1};G.returnNormalizedMouseCoords=function(){l._platform.getStage().get_width();var a=(l._platform.getPointer().get_x()-h.borderE.width._value)/x.scale,b=600*(l._platform.getPointer().get_y()/l._platform.getStage().get_height());return new db(a,b)};G.overlapping=function(a,b){return a==b?!1:a.x._value<b.x._value+b.getNaturalWidth()+1&&a.x._value+a.getNaturalWidth()+1>b.x._value&&a.y._value<b.y._value+b.getNaturalHeight()+1&&a.getNaturalHeight()+1+a.y._value>b.y._value?!0:!1};G.checkIfCardPlacedAtValidSpot=function(a){return!1==i.isValidMoveStack(a,!1,!1)?!1:!1==a.dragMode?G.checkifCardPlacedAtValidSpotDoubleclick(a):G.checkifCardPlacedAtValidSpotDrag(a)};G.checkifCardPlacedAtValidSpotDrag=function(a){for(var b=!1,c=a.cardImgFront.x._value,e=k.cardArray,n=e.length;0<n--;)if(G.overlapping(e[n].cardImgFront,a.cardImgFront)&&e[n].myState==k.STATE_TABLEU&&G.droppedOnTableu(a,e[n]))return a.cardImgFront.x.set__(c),a.doubleclickInProgress=!1,b=!0;e=a.cardImgFront.x;e.set__(e._value+30);if(i.overlapsFoundation(a.cardImgFront)&&i.droppedOnFoundation(a,-1,!0))return a.cardImgFront.x.set__(c),!0;e=a.cardImgFront.x;e.set__(e._value-30);if(i.overlapsFoundation(a.cardImgFront)&&i.droppedOnFoundation(a,-1,!0))return a.cardImgFront.x.set__(c),!0;e=a.cardImgFront.x;e.set__(e._value+30);e=a.cardImgFront.x;e.set__(e._value+10);if(i.overlapsEmptyTableu(a.cardImgFront)){b=!1;if(!1==i.isValidMoveStack(a,!0,!1))return!1;a.myState==k.STATE_TABLEU&&(b=!0);i.droppedOnEmptyTableu(a);a.cardImgFront.x.set__(c);a.myState==k.STATE_TABLEU&&(b=!0);a.doubleclickInProgress=!1;return b}null;e=a.cardImgFront.x;e.set__(e._value-10);e=a.cardImgFront.x;e.set__(e._value-60);if(i.overlapsEmptyTableu(a.cardImgFront)){b=!1;if(!1==i.isValidMoveStack(a,!0,!1))return!1;a.myState==k.STATE_TABLEU&&(b=!0);i.droppedOnEmptyTableu(a);a.cardImgFront.x.set__(c);a.myState==k.STATE_TABLEU&&(b=!0);a.doubleclickInProgress=!1;return b}null;e=a.cardImgFront.x;e.set__(e._value+60);e=a.cardImgFront.x;e.set__(e._value-40);e=a.cardImgFront.x;e.set__(e._value+40);if(i.overlapsEmptyFreeCell(a.cardImgFront)&&i.droppedOnFreeCell(a))return b=a.cardImgFront.x,b.set__(b._value-40),a.cardImgFront.x.set__(c),!0;e=a.cardImgFront.x;e.set__(e._value- 40);e=a.cardImgFront.x;e.set__(e._value+80);if(i.overlapsEmptyFreeCell(a.cardImgFront)&&i.droppedOnFreeCell(a))return b=a.cardImgFront.x,b.set__(b._value-80),a.cardImgFront.x.set__(c),!0;e=a.cardImgFront.x;e.set__(e._value-80);e=a.cardImgFront.x;e.set__(e._value+10);if(i.overlapsEmptyFreeCell(a.cardImgFront)&&i.droppedOnFreeCell(a))return b=a.cardImgFront.x,b.set__(b._value-10),a.cardImgFront.x.set__(c),!0;e=a.cardImgFront.x;e.set__(e._value-10);a.cardImgFront.x.set__(c);e=k.cardArray;for(n=e.length;0<n--;)if(G.overlapping(e[n].cardImgFront,a.cardImgFront)&&e[n].myState==k.STATE_TABLEU&&G.droppedOnTableu(a,e[n]))return a.cardImgFront.x.set__(c),a.doubleclickInProgress=!1,b=!0;a.cardImgFront.x.set__(c);return b};G.checkifCardPlacedAtValidSpotDoubleclick=function(a){var b=!1,c=a.cardImgFront.x;c.set__(c._value);if(i.overlapsFoundation(a.cardImgFront)&&(c=a.cardImgFront.x,c.set__(c._value),i.droppedOnFoundation(a,-1,!0)))return!0;c=a.cardImgFront.x;c.set__(c._value);c=a.cardImgFront.x;c.set__(c._value);if(i.overlapsEmptyTableu(a.cardImgFront)){b=!1;if(!1==i.isValidMoveStack(a,!0,!1))return!1;a.myState==k.STATE_TABLEU&&(b=!0);i.droppedOnEmptyTableu(a);a.myState==k.STATE_TABLEU&&(b=!0);a.doubleclickInProgress=!1;return b}null;c=a.cardImgFront.x;c.set__(c._value);if(i.overlapsEmptyFreeCell(a.cardImgFront)&&i.droppedOnFreeCell(a))return!0;for(var c=k.cardArray,e=c.length;0<e--;)if(G.overlapping(c[e].cardImgFront,a.cardImgFront)&&c[e].myState==k.STATE_TABLEU&&G.droppedOnTableu(a,c[e])){a.doubleclickInProgress=!1;b=!0;break}return b};G.droppedOnTableu=function(a,b){return G.isOnTableuTop(b)&&b.turned?G.tryToPlaceOnTableu(a,b):!1};G.tryToPlaceOnTableu=function(a,b){if(b.cardIdx!=i.CARD_IDX_A&&(a.cardIdx==i.CARD_IDX_A&&b.cardIdx==i.CARD_IDX_02||a.cardIdx+1==b.cardIdx))if(b.suitIdx==i.SUIT_CLUBS||b.suitIdx==i.SUIT_SPADES){if(a.suitIdx==i.SUIT_HEARTS||a.suitIdx==i.SUIT_DIAMONDS)return G.placeOnTableu(a,b)}else if(a.suitIdx==i.SUIT_CLUBS||a.suitIdx==i.SUIT_SPADES)return G.placeOnTableu(a,b);return!1};G.placeOnTableu=function(a,b){G.uncoverTableu(a);a.myState==k.STATE_FOUNDATION&&(q.currentScore-=15);B.play("SOUNDS/valid");a.myState=k.STATE_TABLEU;a.tableouIdx=b.tableouIdx;a.tableouPosition=b.tableouPosition+1;a.selectedFlag=!1;u.generateBoardSnapshot();u.lastTableuoSuccessPlacementIdx=a.tableouIdx;u.tryToAutofinishGame();return!0};G.uncoverTableu=function(a){if(!(a.myState!=k.STATE_TABLEU&&a.myState!=k.STATE_FOUNDATION))for(var b=k.cardArray,c=b.length;0<c--;)b[c].myState==k.STATE_TABLEU&&b[c].tableouIdx==a.tableouIdx&&b[c].tableouPosition+1==a.tableouPosition&&b[c].flipCard()};G.isOnTableuTop=function(a){for(var b=a.tableouIdx,c=k.cardArray,e=c.length;0<e--;){var n=c[e];if(n.myState==k.STATE_TABLEU&&n.tableouIdx==b&&n.tableouPosition>a.tableouPosition)return!1}return!0};var O=function(){};f["farmgame.ValidMoveUtil"]=O;O.__name__=["farmgame","ValidMoveUtil"];O.isBoardPlayable=function(){return O.areThereFreeCells()||O.areThereEmptyTableu()||O.fromFreeCellToTableu()||O.fromTableuToTableu()||O.fromFreeCellToFoundation()||O.fromTableuToFoundation()?!0:!1};O.fromFreeCellToFoundation=function(){for(var a=k.cardArray,b=a.length;0<b--;){var c=a[b];if(c.myState==k.STATE_FREECELL&&O.tryToPlaceOnAnyFoundation(c))return!0}return!1};O.fromTableuToFoundation=function(){for(var a=k.cardArray,b=a.length;0<b--;){var c=a[b];if(c.myState==k.STATE_TABLEU&&G.isOnTableuTop(c)&&O.tryToPlaceOnAnyFoundation(c))return!0}return!1};O.tryToPlaceOnAnyFoundation=function(a){return O.tryToPlaceOnFoundation(a,0)||O.tryToPlaceOnFoundation(a,1)||O.tryToPlaceOnFoundation(a,2)||O.tryToPlaceOnFoundation(a,3)?!0:!1};O.tryToPlaceOnFoundation=function(a,b){if(i.cardExistsOnFoundation(b)){if(O.tryToPlaceOnNonEmptyFoundation(a,b))return!0}else if(O.tryToPlaceOnEmptyFoundation(a,b))return!0;return!1};O.tryToPlaceOnEmptyFoundation=function(a){return a.cardIdx==i.CARD_IDX_A?!0:!1};O.tryToPlaceOnNonEmptyFoundation=function(a,b){for(var c=k.cardArray,e=c.length,n=0,d=null;0<e--;){var f=c[e];f.myState==k.STATE_FOUNDATION&&f.foundationIdx==b&&f.foundationPosition>=n&&(n=f.foundationPosition,d=f)}return null!=d&&d.suitIdx==a.suitIdx&&a.cardIdx!=i.CARD_IDX_A&&(d.cardIdx==i.CARD_IDX_A&&a.cardIdx==i.CARD_IDX_02||d.cardIdx+1==a.cardIdx)?!0:!1};O.fromTableuToTableu=function(){for(var a=k.cardArray,b=a.length;0<b--;){var c=a[b];if(c.myState==k.STATE_TABLEU&&G.isOnTableuTop(c)&&O.tryToPlaceOnAnyTableu(c))return!0}return!1};O.fromFreeCellToTableu=function(){for(var a=k.cardArray,b=a.length;0<b--;){var c=a[b];if(c.myState==k.STATE_FREECELL&&O.tryToPlaceOnAnyTableu(c))return!0}return!1};O.tryToPlaceOnAnyTableu=function(a){for(var b=8;0<b--;)if(O.tryToPlaceOnTableu(b,a))return!0;return!1};O.tryToPlaceOnTableu=function(a,b){if(b.myState==k.STATE_TABLEU&&b.tableouIdx==a)return!1;for(var c=null,e=k.cardArray,n=e.length;0<n--;){var d=e[n];if(d.myState==k.STATE_TABLEU&&d.tableouIdx==a&&G.isOnTableuTop(d)){c=d;break}}if(c.cardIdx!=i.CARD_IDX_A&&(b.cardIdx==i.CARD_IDX_A&&c.cardIdx==i.CARD_IDX_02||b.cardIdx+1==c.cardIdx))if(c.suitIdx==i.SUIT_CLUBS||c.suitIdx==i.SUIT_SPADES){if(b.suitIdx==i.SUIT_HEARTS||b.suitIdx==i.SUIT_DIAMONDS)return!0}else if(b.suitIdx==i.SUIT_CLUBS||b.suitIdx==i.SUIT_SPADES)return!0;return!1};O.areThereEmptyTableu=function(){for(var a=[!1,!1,!1,!1,!1,!1,!1,!1],b=k.cardArray.length;0<b--;){var c=k.cardArray[b];c.myState==k.STATE_TABLEU&&(a[c.tableouIdx]=!0)}for(b=a.length;0<b--;)if(!1==a[b])return!0;return!1};O.areThereFreeCells=function(){for(var a=k.cardArray.length,b=4;0<a--;)k.cardArray[a].myState==k.STATE_FREECELL&&b--;return 0>=b?!1:!0};var C=function(a,b,c,e,d){null==d&&(d="button_prompt_over");null==e&&(e="button_prompt");this.textY=0;Q.call(this,b,e,d);this.textSpr=new X(a,""+c);t.attachToNewEntity(this.textSpr,this.owner);this.textSpr.setAlign(T.Center);this.textSpr.setXY(0.5*this.imgNormal.getNaturalWidth(),0.2*this.imgNormal.getNaturalHeight());this.textSpr.disablePointer();this.textSpr.setLetterSpacing(0.15)};f["farmgame.buttons.ButtonWithOverAndText"]=C;C.__name__=["farmgame","buttons","ButtonWithOverAndText"];C.__super__=Q;C.prototype=s(Q.prototype,{setXY:function(a,b){this.textY=b;this.textSpr.setXY(a,this.textY-0.25*this.imgNormal.getNaturalHeight());Q.prototype.setXY.call(this,a,b)},onUpdate:function(a){Q.prototype.onUpdate.call(this,a)},onMouseOut:function(a){Q.prototype.onMouseOut.call(this,a)},onMouseOver:function(a){Q.prototype.onMouseOver.call(this,a)},__class__:C});var Fc=function(a){C.call(this,j.white_22_bold,a,m.MORE_GAMES[m.langIdx],"ui/prompt_button","ui/prompt_button_over")};f["farmgame.buttons.MoreGamesButton"]=Fc;Fc.__name__=["farmgame","buttons","MoreGamesButton"];Fc.__super__=C;Fc.prototype=s(C.prototype,{onClick:function(a){q.myRef.onFooterClicked(null);C.prototype.onClick.call(this,a)},setXY:function(a,b){this.textSpr.setXY(a+0.5*this.imgNormal.getNaturalWidth(),b+0.25*this.imgNormal.getNaturalHeight());this.imgNormal.setXY(a,b);this.imgover.setXY(a,b)},__class__:Fc});var ub=function(a,b,c,e){null==e&&(e="ui/prompt/BUTTON_PROMPTMAIN_HOVER");null==c&&(c="ui/prompt/BUTTON_PROMPTMAIN");null==b&&(b=!0);C.call(this,j.white_22_bold,a,m.NEW_GAME[m.langIdx].toUpperCase(),c,e);this.newGameDirectly=b};f["farmgame.buttons.NewGameButton"]=ub;ub.__name__=["farmgame","buttons","NewGameButton"];ub.__super__=C;ub.prototype=s(C.prototype,{onClick:function(a){this.newGameDirectly?(null!=Z.myRef&&null!=Z.myRef.owner&&Z.myRef.owner.dispose(),null!=ra.myRef&&null!=ra.myRef.owner&&ra.myRef.owner.dispose(),null!=H.myRef&&null!=H.myRef.owner&&H.myRef.owner.dispose(),j.randomizeGameNumber(),j.increaseGameCount(),D.newGame()):(null!=H.myRef&&null!=H.myRef.owner&&H.myRef.owner.dispose(),new da(this.owner,$(this,this.yesF)));null!=Ca.myRef&&null!=Ca.myRef.owner&&Ca.myRef.owner.dispose();C.prototype.onClick.call(this,a)},yesF:function(){null!=Z.myRef&&null!=Z.myRef.owner&&Z.myRef.owner.dispose();null!=da.myref&&null!=da.myref.owner&&da.myref.owner.dispose();null!=H.myRef&&null!=H.myRef.owner&&H.myRef.owner.dispose();null!=ra.myRef&&null!=ra.myRef.owner&&ra.myRef.owner.dispose();j.randomizeGameNumber();j.increaseGameCount();D.newGame()},setXY:function(a,b){this.textSpr.setXY(a+0.5*this.imgNormal.getNaturalWidth(),b+0.25*this.imgNormal.getNaturalHeight());!0==this.newGameDirectly&&this.textSpr.setXY(a+0.5*this.imgNormal.getNaturalWidth(),b+0.25*this.imgNormal.getNaturalHeight()+2);this.imgNormal.setXY(a,b);this.imgover.setXY(a,b)},onMouseOver:function(a){C.prototype.onMouseOver.call(this,a)},onMouseOut:function(a){C.prototype.onMouseOut.call(this,a)},onUpdate:function(a){C.prototype.onUpdate.call(this,a)},__class__:ub});var tb=function(a){Q.call(this,a,"ui/NEW-GAME","ui/NEW-GAME-HOVER")};f["farmgame.buttons.NewGameButtonBottom"]=tb;tb.__name__=["farmgame","buttons","NewGameButtonBottom"];tb.__super__=Q;tb.prototype=s(Q.prototype,{onMouseOut:function(a){tb.isAvailable&&Q.prototype.onMouseOut.call(this,a)},onMouseOver:function(a){tb.isAvailable&&(l._platform.getMouse().set_cursor(aa.Button),Q.prototype.onMouseOver.call(this,a))},setXY:function(a,b){Q.prototype.setXY.call(this,a,b)},onClick:function(a){null!=H.myRef&&null!=H.myRef.owner?(H.myRef.remove(),B.play("SOUNDS/click")):!u.autoCompleteInProgress&&!Y.inProgress&&!1!=q.gameInProgress&&null==j.layerUIBelow.firstChild&&(new H,Q.prototype.onClick.call(this,a))},onUpdate:function(a){Q.prototype.onUpdate.call(this,a)},__class__:tb});var Dc=function(a){Q.call(this,a,"ui/game_menu_icon","ui/game_menu_icon");this.imgNormal.alpha.set__(1.0E-11);this.imgover.alpha.set__(1.0E-11);this.imgNormal.setScale(2);this.imgover.setScale(2);this.setXY(10,10);this.imgNormal.get_pointerIn().connect($(this,this.onMouseOver))};f["farmgame.buttons.NewGameButtonUI"]=Dc;Dc.__name__=["farmgame","buttons","NewGameButtonUI"];Dc.__super__=Q;Dc.prototype=s(Q.prototype,{onClick:function(a){u.autoCompleteInProgress||(null==j.layerUIBelow.firstChild?new H:null!=H.myRef&&null!=H.myRef.owner&&H.myRef.remove(),Q.prototype.onClick.call(this,a))},onMouseOver:function(){l._platform.getMouse().set_cursor(aa.Button);this.imgNormal.set_visible(!1);this.imgover.set_visible(!0)},onMouseOut:function(){this.imgNormal.set_visible(!0);this.imgover.set_visible(!1);l._platform.getMouse().set_cursor(aa.Default)},__class__:Dc});var Gc=function(a,b){C.call(this,j.white_22_bold,a,m.NO[m.langIdx].toUpperCase(),"ui/prompt/BUTTON_PROMPTMAIN","ui/prompt/BUTTON_PROMPTMAIN_HOVER");this.noFunction=b};f["farmgame.buttons.NoButton"]=Gc;Gc.__name__=["farmgame","buttons","NoButton"];Gc.__super__=C;Gc.prototype=s(C.prototype,{onClick:function(a){this.noFunction();C.prototype.onClick.call(this,a)},setXY:function(a,b){C.prototype.setXY.call(this,a,b);this.textSpr.setXY(a+0.5*this.imgNormal.getNaturalWidth(),b+0.3*this.imgNormal.getNaturalHeight());this.imgNormal.setXY(a,b);this.imgover.setXY(a,b)},__class__:Gc});var Gb=function(a){C.call(this,j.white_22_bold,a,m.REPLAY[m.langIdx],"ui/prompt/BUTTON_PROMPTMAIN","ui/prompt/BUTTON_PROMPTMAIN_HOVER");this.setXY(0,0)};f["farmgame.buttons.ReplayButton"]=Gb;Gb.__name__=["farmgame","buttons","ReplayButton"];Gb.__super__=C;Gb.prototype=s(C.prototype,{onClick:function(a){null!=Z.myRef&&null!=Z.myRef.owner&&Z.myRef.owner.dispose();null!=H.myRef&&null!=H.myRef.owner&&H.myRef.owner.dispose();null!=Ca.myRef&&null!=Ca.myRef.owner&&Ca.myRef.owner.dispose();null!=ra.myRef&&null!=ra.myRef.owner&&ra.myRef.owner.dispose();u.RestartBoard();C.prototype.onClick.call(this,a)},setXY:function(a,b){this.textSpr.setXY(a+0.5*this.imgNormal.getNaturalWidth(),b+0.3*this.imgNormal.getNaturalHeight());this.imgNormal.setXY(a,b);this.imgover.setXY(a,b)},__class__:Gb});var Hc=function(a,b){null==b&&(b=!0);C.call(this,j.white_22_bold,a,m.RESTART_GAME[m.langIdx],"ui/prompt_button","ui/prompt_button_over");this.restartDirectly=b;this.setXY(10,590-this.imgNormal.getNaturalHeight())};f["farmgame.buttons.RestartButton"]=Hc;Hc.__name__=["farmgame","buttons","RestartButton"];Hc.__super__=C;Hc.prototype=s(C.prototype,{onClick:function(a){this.restartDirectly?(null!=Z.myRef&&null!=Z.myRef.owner&&Z.myRef.owner.dispose(),null!=H.myRef&&null!=H.myRef.owner&&H.myRef.owner.dispose(),j.increaseGameCount(),D.newGame()):(new da(this.owner,$(this,this.yesF)),null!=H.myRef&&H.myRef.owner.dispose());C.prototype.onClick.call(this,a)},yesF:function(){null!=Z.myRef&&null!=Z.myRef.owner&&Z.myRef.owner.dispose();null!=H.myRef&&null!=H.myRef.owner&&H.myRef.owner.dispose();null!=da.myref&&null!=da.myref.owner&&da.myref.owner.dispose();j.increaseGameCount();D.newGame()},setXY:function(a,b){this.textSpr.setXY(a+0.5*this.imgNormal.getNaturalWidth(),b+0.25*this.imgNormal.getNaturalHeight());this.imgNormal.setXY(a,b);this.imgover.setXY(a,b)},__class__:Hc});var eb=function(a){A.call(this);this.owner=(new N).add(this);a.addChild(this.owner);this.soundButtonOn=new Ic(a);this.soundButtonOff=new Jc(a);this.soundButtonOn.parentbutton=this;this.soundButtonOff.parentbutton=this};f["farmgame.buttons.SoundButton"]=eb;eb.__name__=["farmgame","buttons","SoundButton"];eb.__super__=A;eb.prototype=s(A.prototype,{get_name:function(){return"SoundButton_8"},onUpdate:function(a){eb.soundFlag?(this.soundButtonOn.setVisible(),this.soundButtonOff.setInvisible()):(this.soundButtonOn.setInvisible(),this.soundButtonOff.setVisible());A.prototype.onUpdate.call(this,a)},setXY:function(a,b){this.soundButtonOn.setXY(a,b);this.soundButtonOff.setXY(a,b)},__class__:eb});var Jc=function(a){C.call(this,j.white_22_bold,a,m.SOUND_OFF[m.langIdx],"ui/prompt_button","ui/prompt_button_over");this.imgNormal.centerAnchor();this.imgover.centerAnchor()};f["farmgame.buttons.SoundButtonOff"]=Jc;Jc.__name__=["farmgame","buttons","SoundButtonOff"];Jc.__super__=C;Jc.prototype=s(C.prototype,{onClick:function(a){eb.soundFlag=!0;this.parentbutton.soundButtonOn.imgNormal.setScale(this.imgNormal.scaleX._value);C.prototype.onClick.call(this,a)},setXY:function(a,b){this.textSpr.setXY(a,b-0.25*this.imgNormal.getNaturalHeight());this.imgNormal.setXY(a,b);this.imgover.setXY(a,b)},__class__:Jc});var Ic=function(a){C.call(this,j.white_22_bold,a,m.SOUND_ON[m.langIdx],"ui/prompt_button","ui/prompt_button_over");this.imgNormal.centerAnchor();this.imgover.centerAnchor()};f["farmgame.buttons.SoundButtonOn"]=Ic;Ic.__name__=["farmgame","buttons","SoundButtonOn"];Ic.__super__=C;Ic.prototype=s(C.prototype,{onClick:function(a){eb.soundFlag=!1;this.parentbutton.soundButtonOff.imgNormal.setScale(this.imgNormal.scaleX._value);C.prototype.onClick.call(this,a)},onMouseOver:function(a){C.prototype.onMouseOver.call(this,a)},setXY:function(a,b){this.textSpr.setXY(a,b-0.25*this.imgNormal.getNaturalHeight());this.imgNormal.setXY(a,b);this.imgover.setXY(a,b)},__class__:Ic});var Ba=function(a){Q.call(this,a,"ui/UNDO","ui/UNDO-HOVER")};f["farmgame.buttons.UndoButton"]=Ba;Ba.__name__=["farmgame","buttons","UndoButton"];Ba.__super__=Q;Ba.prototype=s(Q.prototype,{onMouseOut:function(a){l._platform.getMouse().set_cursor(aa.Default);Ba.isAvailable&&Q.prototype.onMouseOut.call(this,a)},onMouseOver:function(a){!1!=q.gameInProgress&&Ba.isAvailable&&(l._platform.getMouse().set_cursor(aa.Button),Q.prototype.onMouseOver.call(this,a))},setXY:function(a,b){Q.prototype.setXY.call(this,a,b)},onClick:function(a){!u.autoCompleteInProgress&&!Y.inProgress&&!1!=q.gameInProgress&&(u.Undo(),Q.prototype.onClick.call(this,a))},onUpdate:function(a){Q.prototype.onUpdate.call(this,a)},__class__:Ba});var Kc=function(a,b){C.call(this,j.white_22_bold,a,m.YES[m.langIdx].toUpperCase(),"ui/prompt/BUTTON_PROMPTMAIN","ui/prompt/BUTTON_PROMPTMAIN_HOVER");this.yesFunction=b};f["farmgame.buttons.YesButton"]=Kc;Kc.__name__=["farmgame","buttons","YesButton"];Kc.__super__=C;Kc.prototype=s(C.prototype,{onClick:function(a){this.yesFunction();C.prototype.onClick.call(this,a)},setXY:function(a,b){C.prototype.setXY.call(this,a,b);this.textSpr.setXY(a+0.5*this.imgNormal.getNaturalWidth(),b+0.3*this.imgNormal.getNaturalHeight());this.imgNormal.setXY(a,b);this.imgover.setXY(a,b)},__class__:Kc});var Lc=function(a){C.call(this,j.white_22_bold,a,m.RESUME[m.langIdx],"ui/prompt_button","ui/prompt_button_over")};f["farmgame.buttons.menu_prompt.ResumeBut"]=Lc;Lc.__name__=["farmgame","buttons","menu_prompt","ResumeBut"];Lc.__super__=C;Lc.prototype=s(C.prototype,{onClick:function(a){null!=H.myRef&&H.myRef.remove();C.prototype.onClick.call(this,a)},setXY:function(a,b){this.textSpr.setXY(a+0.5*this.imgNormal.getNaturalWidth(),b+0.25*this.imgNormal.getNaturalHeight());this.imgNormal.setXY(a,b);this.imgover.setXY(a,b)},__class__:Lc});var da=function(a,b){A.call(this);this.owner=new N;h.layerPrompts.addChild(this.owner);this.owner.add(this);da.myref=this;this.topImg=new ia(j.pack.getTexture(da.promptMenuPath+"PROMPT-MAIN-BG"));var c=t.attachToNewEntity(this.topImg,this.owner);this.topImg.centerAnchor();this.topImg.setXY(0.5*x.WIDTH,250);this.percYPosition=new W(0.35);this.percYPosition.animateTo(0.45,0.1);var e=new X(j.white_30_bold,m.ARE_YOU_SURE_SHORT[m.langIdx]);t.attachToNewEntity(e,c);e.setAlign(T.Center);e.setWrapWidth(300);e.setXY(0.5*this.topImg.getNaturalWidth(),0.075*this.topImg.getNaturalHeight());e.centerAnchor();e=new X(j.white_22_bold,m.ARE_YOU_SURE_NEW[m.langIdx]);t.attachToNewEntity(e,c);e.setAlign(T.Center);e.setWrapWidth(460);e.setXY(0.5*this.topImg.getNaturalWidth(),0.45*this.topImg.getNaturalHeight());e.centerAnchor();(new Kc(c,b)).setXY(0.12*this.topImg.getNaturalWidth(),0.7*this.topImg.getNaturalHeight());(new Gc(c,$(this,this.noFunction))).setXY(0.54*this.topImg.getNaturalWidth(),0.7*this.topImg.getNaturalHeight())};f["farmgame.prompt.AreYouSurePrompt"]=da;da.__name__=["farmgame","prompt","AreYouSurePrompt"];da.__super__=A;da.prototype=s(A.prototype,{get_name:function(){return"AreYouSurePrompt_15"},onUpdate:function(a){this.percYPosition.update(a);this.topImg.setXY(0.5*l._platform.getStage().get_width(),l._platform.getStage().get_height()*this.percYPosition._value);this.topImg.setScale(Math.min(l._platform.getStage().get_width()/800,l._platform.getStage().get_height()/600));A.prototype.onUpdate.call(this,a)},noFunction:function(){this.owner.dispose()},remove:function(){null!=this.owner&&this.owner.dispose();da.myref=null},__class__:da});var ga=function(a,b,c,e){null==e&&(e="ui/prompt/PROMPT-MENU-BG");null==c&&(c=355);null==b&&(b=450);null==a&&(a=!1);var d=this;A.call(this);this.owner=new N;j.layerUIBelow.addChild(this.owner);this.owner.add(this);var f=new na(0,x.WIDTH,x.HEIGHT-40);f.alpha.set__(0.9);t.attachToNewEntity(f,this.owner);f.setXY(0,40);this.promptBaseImg=new ia(j.pack.getTexture(e));this.promptBaseImgEnt=t.attachToNewEntity(this.promptBaseImg,this.owner);this.promptBaseImg.centerAnchor();this.promptBaseImg.setXY(0.5*x.WIDTH,0.5*x.HEIGHT);!1==a&&t.delayedCall(0.05,function(){f.get_pointerDown().connect($(d,d.onPointerDown))})};f["farmgame.prompt.PromptBase"]=ga;ga.__name__=["farmgame","prompt","PromptBase"];ga.__super__=A;ga.prototype=s(A.prototype,{get_name:function(){return"PromptBase_11"},onPointerDown:function(){this.remove()},remove:function(){null!=this.owner&&this.owner.dispose();l._platform.getMouse().set_cursor(aa.Default)},onUpdate:function(a){A.prototype.onUpdate.call(this,a)},__class__:ga});var H=function(){this.removalInProgress=!1;ga.call(this,!1,346,355);H.myRef=this;var a=new X(j.white_30_bold,m.MENU[m.langIdx].toUpperCase());t.attachToNewEntity(a,this.promptBaseImgEnt);a.setXY(0.5*this.promptBaseImg.getNaturalWidth(),30);a.centerAnchor();this.resumeBut=new Lc(this.promptBaseImgEnt);this.resumeBut.setXY(0.5*this.promptBaseImg.getNaturalWidth()-0.5*this.resumeBut.imgNormal.getNaturalWidth(),85);this.newgameBut=new ub(this.promptBaseImgEnt,!1,"ui/prompt/BUTTON_PROMPTMENU","ui/prompt/BUTTON_PROMPTMENU_HOVER");this.newgameBut.setXY(0.5*this.promptBaseImg.getNaturalWidth()-0.5*this.newgameBut.imgNormal.getNaturalWidth(),145);this.resetGameBut=new Hc(this.promptBaseImgEnt,!1);this.resetGameBut.setXY(0.5*this.promptBaseImg.getNaturalWidth()-0.5*this.resetGameBut.imgNormal.getNaturalWidth(),205);this.soundBut=new eb(this.promptBaseImgEnt);this.soundBut.setXY(0.5*this.promptBaseImg.getNaturalWidth(),287);this.moregamesBut=new Fc(this.promptBaseImgEnt);this.moregamesBut.setXY(0.5*this.promptBaseImg.getNaturalWidth()-0.5*this.moregamesBut.imgNormal.getNaturalWidth(),325);this.promptBaseImg.get_pointerIn().connect($(this,this.onPromptBaseEnt))};f["farmgame.prompt.MenuPrompt"]=H;H.__name__=["farmgame","prompt","MenuPrompt"];H.__super__=ga;H.prototype=s(ga.prototype,{onPromptBaseEnt:function(){},onUpdate:function(a){ga.prototype.onUpdate.call(this,a)},remove:function(){var a=this;this.removalInProgress||(this.removalInProgress=!0,fa.delay(function(){null!=a.owner&&a.owner.dispose()},10))},__class__:H});var Ca=function(){ga.call(this,!0,493,311,"ui/prompt/PROMPT-MAIN-BG");Ca.myRef=this;var a=new X(j.white_30_bold,m.GAME_OVER[m.langIdx].toUpperCase());a.setWrapWidth(400);t.attachToNewEntity(a,this.promptBaseImgEnt);a.setXY(0.5*this.promptBaseImg.getNaturalWidth(),31);a.centerAnchor();a.setAlign(T.Center);a=new X(j.white_22_bold,m.NOMOVESLEFT[m.langIdx].toUpperCase());a.setWrapWidth(430);t.attachToNewEntity(a,this.promptBaseImgEnt);a.setXY(0.5*this.promptBaseImg.getNaturalWidth(),161);a.centerAnchor();a.setScale(1);a.setAlign(T.Center);a=new ub(this.promptBaseImgEnt,!0);a.setXY(0.3*this.promptBaseImg.getNaturalWidth()-0.5*a.imgNormal.getNaturalWidth(),0.72*this.promptBaseImg.getNaturalHeight());(new Gb(this.promptBaseImgEnt)).setXY(0.7*this.promptBaseImg.getNaturalWidth()-0.5*a.imgNormal.getNaturalWidth(),0.72*this.promptBaseImg.getNaturalHeight());B.play("SOUNDS/lost")};f["farmgame.prompt.NoMoreMovesPrompt"]=Ca;Ca.__name__=["farmgame","prompt","NoMoreMovesPrompt"];Ca.__super__=ga;Ca.prototype=s(ga.prototype,{__class__:Ca});var ra=function(){ga.call(this,!0,493,311,"ui/prompt/PROMPT-MAIN-BG");ra.myRef=this;var a=new X(j.white_30_bold,m.GAME_OVER[m.langIdx].toUpperCase());a.setWrapWidth(400);t.attachToNewEntity(a,this.promptBaseImgEnt);a.setXY(0.5*this.promptBaseImg.getNaturalWidth(),31);a.centerAnchor();a.setAlign(T.Center);a=new X(j.white_22_bold,m.OUTOFTIME[m.langIdx].toUpperCase());a.setWrapWidth(430);t.attachToNewEntity(a,this.promptBaseImgEnt);a.setXY(0.5*this.promptBaseImg.getNaturalWidth(),161);a.centerAnchor();a.setScale(1);a.setAlign(T.Center);a=new ub(this.promptBaseImgEnt,!0);a.setXY(0.3*this.promptBaseImg.getNaturalWidth()-0.5*a.imgNormal.getNaturalWidth(),0.72*this.promptBaseImg.getNaturalHeight());(new Gb(this.promptBaseImgEnt)).setXY(0.7*this.promptBaseImg.getNaturalWidth()-0.5*a.imgNormal.getNaturalWidth(),0.72*this.promptBaseImg.getNaturalHeight());B.play("SOUNDS/lost")};f["farmgame.prompt.OutOfTimePrompt"]=ra;ra.__name__=["farmgame","prompt","OutOfTimePrompt"];ra.__super__=ga;ra.prototype=s(ga.prototype,{__class__:ra});var Z=function(a){null==a&&(a=!1);a&&(j.lastGameTime=q.currentSeconds);ga.call(this,!1,493,301,"ui/prompt/PROMPT-WON-BG");j.increaseGameCount();a||j.increaseGameWonCount();var b=j.lastGameTime;null==b&&(b=50);var c=q.convertToHHMMSS(b),e=""+q.totalMoves;0>=l._platform.getStorage().get("besttime",9999999)&&l._platform.getStorage().set("besttime",99999999);var d=l._platform.getStorage().get("besttime",9999999);d>b&&l._platform.getStorage().set("besttime",b);d=l._platform.getStorage().get("besttime",9999999);B.play("SOUNDS/won");this.mainText=a?new X(j.white_bold_65,m.YOULOSTGAME[m.langIdx]):new X(j.white_bold_65,m.YOUWONGAME[m.langIdx]);t.attachToNewEntity(this.mainText,this.promptBaseImgEnt);this.mainText.setWrapWidth(750);this.mainText.setAlign(T.Center);this.mainText.centerAnchor();this.mainText.setXY(0,-180);j.randomizeGameNumber();b=new X(j.white_30_bold,m.YOUWONGAME[m.langIdx]);t.attachToNewEntity(b,this.promptBaseImgEnt);b.setAlign(T.Center);b.setXY(0.5*this.promptBaseImg.getNaturalWidth(),70);b.set_text(b._text.toUpperCase());b=new X(j.white_22_bold,m.CONGRATS[m.langIdx]);t.attachToNewEntity(b,this.promptBaseImgEnt);b.setAlign(T.Center);b.setXY(0.5*this.promptBaseImg.getNaturalWidth(),170);b.set_text(b._text.toUpperCase());b=m.TIMEPLAYED[m.langIdx];a&&(b=m.YOULOSTTHISGAMEIN[m.langIdx]);a=new X(j.white_22_bold,""+b+": "+c+"\n"+m.MOVES[m.langIdx]+ ": "+e);t.attachToNewEntity(a,this.promptBaseImgEnt);a.setAlign(T.Center);a.setWrapWidth(600);a.setXY(0.5*this.promptBaseImg.getNaturalWidth(),260);a.setLineSpacing(2);a.centerAnchor();a.set_text(a._text.toUpperCase());Z.myRef=this;a=j.getGameCount();c=j.getGameWonCount();d=": "+a+"\n: "+c+"\n: "+q.convertToHHMMSS(d)+"\n: "+l._platform.getStorage().get("bestscorefreecell",0);d=new X(j.white_semi_28,d);d.setAlign(T.Center);d.setWrapWidth(450);d.setXY(-185,-30);d.setLineSpacing(2);d.set_visible(!1);d.setScale(0.85);d=new ub(this.promptBaseImgEnt,!0);d.setXY(0.3*this.promptBaseImg.getNaturalWidth()-0.5*d.imgNormal.getNaturalWidth(),0.74*this.promptBaseImg.getNaturalHeight());(new Gb(this.promptBaseImgEnt)).setXY(0.7*this.promptBaseImg.getNaturalWidth()-0.5*d.imgNormal.getNaturalWidth(),0.74*this.promptBaseImg.getNaturalHeight())};f["farmgame.prompt.YouWinPrompt"]=Z;Z.__name__=["farmgame","prompt","YouWinPrompt"];Z.__super__=ga;Z.prototype=s(ga.prototype,{remove:function(){D.newGame();ga.prototype.remove.call(this)},onUpdate:function(a){ga.prototype.onUpdate.call(this,a)},__class__:Z});var N=function(){this.parent=this.firstChild=this.next=this.firstComponent=null;this._compMap={}};f["flambe.Entity"]=N;N.__name__=["flambe","Entity"];N.__interfaces__=[Ga];N.prototype={add:function(a){null!=a.owner&&a.owner.remove(a);var b=a.get_name(),c=this._compMap[b];null!=c&&this.remove(c);this._compMap[b]=a;b=null;for(c=this.firstComponent;null!=c;)b=c,c=c.next;null!=b?b.next=a:this.firstComponent=a;a.owner=this;a.next=null;a.onAdded();return this},remove:function(a){for(var b=null,c=this.firstComponent;null!=c;){var e=c.next;if(c==a)return null==b?this.firstComponent=e:(b.owner=this,b.next=e),delete this._compMap[c.get_name()],0!=(c._flags&1)&&(c.onStop(),c._flags&=-2),c.onRemoved(),c.owner=null,c.next=null,!0;b=c;c=e}return!1},addChild:function(a,b){null==b&&(b=!0);null!=a.parent&&a.parent.removeChild(a);a.parent=this;if(b){for(var c=null,e=this.firstChild;null!=e;)c=e,e=e.next;null!=c?c.next=a:this.firstChild=a}else a.next=this.firstChild,this.firstChild=a;return this},removeChild:function(a){for(var b=null,c=this.firstChild;null!=c;){var e=c.next;if(c==a){null==b?this.firstChild=e:b.next=e;c.parent=null;c.next=null;break}b=c;c=e}},disposeChildren:function(){for(;null!=this.firstChild;)this.firstChild.dispose()},dispose:function(){for(null!=this.parent&&this.parent.removeChild(this);null!=this.firstComponent;)this.firstComponent.dispose();this.disposeChildren()},__class__:N};var Me=function(){};f["flambe.util.PackageLog"]=Me;Me.__name__=["flambe","util","PackageLog"];var Bd=function(){};f["flambe.platform.Platform"]=Bd;Bd.__name__=["flambe","platform","Platform"];Bd.prototype={__class__:Bd};var jb=function(){};f["flambe.platform.html.HtmlPlatform"]=jb;jb.__name__=["flambe","platform","html","HtmlPlatform"];jb.__interfaces__=[Bd];jb.prototype={init:function(){var a=this;F.fixAndroidMath();var b=null;try{b=window.flambe.canvas}catch(c){c instanceof p&&(c=c.val)}b.setAttribute("tabindex","0");b.style.outlineStyle="none";b.style.webkitTapHighlightColor="transparent";b.setAttribute("moz-opaque","true");this._stage=new Hb(b);this._pointer=new ka;this._mouse=new Mc(this._pointer,b);this._renderer=this.createRenderer(b);this.mainLoop=new Ib;this.musicPlaying=!1;this._canvas=b;this._container=b.parentElement;this._container.style.overflow="hidden";this._container.style.position="relative";this._container.style.msTouchAction="none";var e=0,d=function(c){if(!(1E3>c.timeStamp-e)){var d=b.getBoundingClientRect(),f=a.getX(c,d),d=a.getY(c,d);switch(c.type){case "mousedown":c.target==b&&(c.preventDefault(),a._mouse.submitDown(f,d,c.button),b.focus());break;case "mousemove":a._mouse.submitMove(f,d);break;case "mouseup":a._mouse.submitUp(f,d,c.button);break;case "mousewheel":case "DOMMouseScroll":a._mouse.submitScroll(f,d,"mousewheel"==c.type?c.wheelDelta/40:-c.detail)&&c.preventDefault()}}};window.addEventListener("mousedown",d,!1);window.addEventListener("mousemove",d,!1);window.addEventListener("mouseup",d,!1);b.addEventListener("mousewheel",d,!1);b.addEventListener("DOMMouseScroll",d,!1);b.addEventListener("contextmenu",function(a){a.preventDefault()},!1);var f="undefined"!=typeof window.ontouchstart,d="msMaxTouchPoints"in window.navigator&&1<window.navigator.msMaxTouchPoints;if(f||d){var g=new Nc(this._pointer,f?4:window.navigator.msMaxTouchPoints);this._touch=g;d=function(b){var c;c=f?b.changedTouches:[b];var d=b.target.getBoundingClientRect();e=b.timeStamp;switch(b.type){case "touchstart":case "MSPointerDown":case "pointerdown":b.preventDefault();F.SHOULD_HIDE_MOBILE_BROWSER&&F.hideMobileBrowser();for(b=0;b<c.length;){var n=c[b];++b;var i=a.getX(n,d),h=a.getY(n,d);g.submitDown((f?n.identifier:n.pointerId)|0,i,h)}break;case "touchmove":case "MSPointerMove":case "pointermove":b.preventDefault();for(b=0;b<c.length;)n=c[b],++b,i=a.getX(n,d),h=a.getY(n,d),g.submitMove((f?n.identifier:n.pointerId)|0,i,h);break;case "touchend":case "touchcancel":case "MSPointerUp":case "pointerup":for(b=0;b<c.length;)n=c[b],++b,i=a.getX(n,d),h=a.getY(n,d),g.submitUp((f?n.identifier:n.pointerId)|0,i,h)}};f?(b.addEventListener("touchstart",d,!1),b.addEventListener("touchmove",d,!1),b.addEventListener("touchend",d,!1),b.addEventListener("touchcancel",d,!1)):(b.addEventListener("MSPointerDown",d,!1),b.addEventListener("MSPointerMove",d,!1),b.addEventListener("MSPointerUp",d,!1))}else this._touch=new Oc;var i=window.onerror;window.onerror=function(a,b,c){l.uncaughtError.emit(a);return null!=i?i(a,b,c):!1};var h=F.loadExtension("hidden",window.document);null!=h.value?(d=function(){l.hidden.set__(P.field(window.document,h.field))},d(null),window.document.addEventListener(h.prefix+"visibilitychange",d,!1)):(d=function(a){l.hidden.set__("pagehide"==a.type)},window.addEventListener("pageshow",d,!1),window.addEventListener("pagehide",d,!1));l.hidden.get_changed().connect(function(b){b||(a._skipFrame=!0)});this._skipFrame=!1;this._lastUpdate=Date.now();var k=F.loadExtension("requestAnimationFrame").value;if(null!=k){var j=window.performance,m=null!=j&&F.polyfill("now",j);m?this._lastUpdate=j.now():null;var o=null,o=function(c){a.update(m?j.now():c);k(o,b)};k(o,b)}else window.setInterval(function(){a.update(Date.now())},16);d=new Wb;d.success.connect(function(){Xb.info("Initialized HTML platform",["renderer",a._renderer.get_type()])});d.set_result(!0);return d},loadAssetPack:function(a){return(new R(this,a)).promise},getStage:function(){return this._stage},getStorage:function(){if(null==this._storage){var a=Pc.getLocalStorage();this._storage=null!=a?new Qc(a):new Rc}return this._storage},update:function(a){var b=(a-this._lastUpdate)/1E3;this._lastUpdate=a;l.hidden._value||(this._skipFrame?this._skipFrame=!1:(this.mainLoop.update(b),this.mainLoop.render(this._renderer)))},getPointer:function(){return this._pointer},getMouse:function(){return this._mouse},getTouch:function(){return this._touch},getKeyboard:function(){var a=this;if(null==this._keyboard){this._keyboard=new Da;var b=function(b){switch(b.type){case "keydown":a._keyboard.submitDown(b.keyCode)&&b.preventDefault();break;case "keyup":a._keyboard.submitUp(b.keyCode)}};this._canvas.addEventListener("keydown",b,!1);this._canvas.addEventListener("keyup",b,!1)}return this._keyboard},getWeb:function(){null==this._web&&(this._web=new Sc(this._container));return this._web},getExternal:function(){null==this._external&&(this._external=new Tc);return this._external},getRenderer:function(){return this._renderer},getX:function(a,b){return(a.clientX-b.left)*this._stage.get_width()/b.width},getY:function(a,b){return(a.clientY-b.top)*this._stage.get_height()/b.height},createRenderer:function(a){return new Jb(a)},__class__:jb};var sa=function(a,b){this._value=a;this._changed=null!=b?new Yb(b):null};f["flambe.util.Value"]=sa;sa.__name__=["flambe","util","Value"];sa.prototype={watch:function(a){a(this._value,this._value);return this.get_changed().connect(a)},get__:function(){return this._value},set__:function(a){var b=this._value;a!=b&&(this._value=a,null!=this._changed&&this._changed.emit(a,b));return a},get_changed:function(){null==this._changed&&(this._changed=new Yb);return this._changed},__class__:sa};var Kb=function(a,b){this._next=null;this._signal=a;this._listener=b;this.stayInList=!0};f["flambe.util.SignalConnection"]=Kb;Kb.__name__=["flambe","util","SignalConnection"];Kb.__interfaces__=[Ga];Kb.prototype={once:function(){this.stayInList=!1;return this},dispose:function(){null!=this._signal&&(this._signal.disconnect(this),this._signal=null)},__class__:Kb};var ha=function(a){this._head=null!=a?new Kb(this,a):null;this._deferredTasks=null};f["flambe.util.SignalBase"]=ha;ha.__name__=["flambe","util","SignalBase"];ha.prototype={connectImpl:function(a,b){var c=this,e=new Kb(this,a);this._head==ha.DISPATCHING_SENTINEL?this.defer(function(){c.listAdd(e,b)}):this.listAdd(e,b);return e},disconnect:function(a){var b=this;this._head==ha.DISPATCHING_SENTINEL?this.defer(function(){b.listRemove(a)}):this.listRemove(a)},defer:function(a){for(var b=null,c=this._deferredTasks;null!=c;)b=c,c=c.next;a=new Cd(a);null!=b?b.next=a:this._deferredTasks=a},willEmit:function(){var a=this._head;this._head=ha.DISPATCHING_SENTINEL;return a},didEmit:function(a){this._head=a;a=this._deferredTasks;for(this._deferredTasks=null;null!=a;)a.fn(),a=a.next},listAdd:function(a,b){if(b)a._next=this._head,this._head=a;else{for(var c=null,e=this._head;null!=e;)c=e,e=e._next;null!=c?c._next=a:this._head=a}},listRemove:function(a){for(var b=null,c=this._head;null!=c;){if(c==a){a=c._next;null==b?this._head=a:b._next=a;break}b=c;c=c._next}},__class__:ha};var Yb=function(a){ha.call(this,a)};f["flambe.util.Signal2"]=Yb;Yb.__name__=["flambe","util","Signal2"];Yb.__super__=ha;Yb.prototype=s(ha.prototype,{connect:function(a,b){null==b&&(b=!1);return this.connectImpl(a,b)},emit:function(a,b){var c=this;this._head==ha.DISPATCHING_SENTINEL?this.defer(function(){c.emitImpl(a,b)}):this.emitImpl(a,b)},emitImpl:function(a,b){for(var c=this.willEmit(),e=c;null!=e;)e._listener(a,b),e.stayInList||e.dispose(),e=e._next;this.didEmit(c)},__class__:Yb});var U=function(a){ha.call(this,a)};f["flambe.util.Signal1"]=U;U.__name__=["flambe","util","Signal1"];U.__super__=ha;U.prototype=s(ha.prototype,{connect:function(a,b){null==b&&(b=!1);return this.connectImpl(a,b)},emit:function(a){var b=this;this._head==ha.DISPATCHING_SENTINEL?this.defer(function(){b.emitImpl(a)}):this.emitImpl(a)},emitImpl:function(a){for(var b=this.willEmit(),c=b;null!=c;)c._listener(a),c.stayInList||c.dispose(),c=c._next;this.didEmit(b)},__class__:U});var W=function(a,b){this._behavior=null;sa.call(this,a,b)};f["flambe.animation.AnimatedFloat"]=W;W.__name__=["flambe","animation","AnimatedFloat"];W.__super__=sa;W.prototype=s(sa.prototype,{set__:function(a){this._behavior=null;return sa.prototype.set__.call(this,a)},update:function(a){null!=this._behavior&&(sa.prototype.set__.call(this,this._behavior.update(a)),this._behavior.isComplete()&&(this._behavior=null))},animate:function(a,b,c,e){this.set__(a);this.animateTo(b,c,e)},animateTo:function(a,b,c){this.set_behavior(new Uc(this._value,a,b,c))},set_behavior:function(a){this._behavior=a;this.update(0);return a},__class__:W});var l=function(){};f["flambe.System"]=l;l.__name__=["flambe","System"];l.init=function(){l._calledInit||(l.promise=l._platform.init(),l._calledInit=!0);return l.promise};var Xb=function(){};f["flambe.Log"]=Xb;Xb.__name__=["flambe","Log"];Xb.info=function(){null};Xb.__super__=Me;Xb.prototype=s(Me.prototype,{__class__:Xb});var Cc=function(a){null==a&&(a=1);this._realDt=0;A.call(this);this.scale=new W(a)};f["flambe.SpeedAdjuster"]=Cc;Cc.__name__=["flambe","SpeedAdjuster"];Cc.__super__=A;Cc.prototype=s(A.prototype,{get_name:function(){return"SpeedAdjuster_5"},onUpdate:function(a){0<this._realDt&&(a=this._realDt,this._realDt=0);this.scale.update(a)},__class__:Cc});var Dd=function(){};f["flambe.animation.Behavior"]=Dd;Dd.__name__=["flambe","animation","Behavior"];Dd.prototype={__class__:Dd};var Ed=function(){};f["flambe.animation.Ease"]=Ed;Ed.__name__=["flambe","animation","Ease"];Ed.linear=function(a){return a};var Uc=function(a,b,c,e){this._from=a;this._to=b;this._duration=c;this.elapsed=0;this._easing=null!=e?e:Ed.linear};f["flambe.animation.Tween"]=Uc;Uc.__name__=["flambe","animation","Tween"];Uc.__interfaces__=[Dd];Uc.prototype={update:function(a){this.elapsed+=a;return this.elapsed>=this._duration?this._to:this._from+(this._to-this._from)*this._easing(this.elapsed/this._duration)},isComplete:function(){return this.elapsed>=this._duration},__class__:Uc};var vb=function(){};f["flambe.asset.Asset"]=vb;vb.__name__=["flambe","asset","Asset"];vb.__interfaces__=[Ga];vb.prototype={__class__:vb};var v=f["flambe.asset.AssetFormat"]={__ename__:["flambe","asset","AssetFormat"],__constructs__:"WEBP,JXR,PNG,JPG,GIF,DDS,PVR,PKM,MP3,M4A,OPUS,OGG,WAV,Data".split(",")};v.WEBP=["WEBP",0];v.WEBP.__enum__=v;v.JXR=["JXR",1];v.JXR.__enum__=v;v.PNG=["PNG",2];v.PNG.__enum__=v;v.JPG=["JPG",3];v.JPG.__enum__=v;v.GIF=["GIF",4];v.GIF.__enum__=v;v.DDS=["DDS",5];v.DDS.__enum__=v;v.PVR=["PVR",6];v.PVR.__enum__=v;v.PKM=["PKM",7];v.PKM.__enum__=v;v.MP3=["MP3",8];v.MP3.__enum__=v;v.M4A=["M4A",9];v.M4A.__enum__=v;v.OPUS=["OPUS",10];v.OPUS.__enum__=v;v.OGG=["OGG",11];v.OGG.__enum__=v;v.WAV=["WAV",12];v.WAV.__enum__=v;v.Data=["Data",13];v.Data.__enum__=v;var Fd=function(a,b,c,e){this.name=a;this.url=b;this.format=c;this.bytes=e};f["flambe.asset.AssetEntry"]=Fd;Fd.__name__=["flambe","asset","AssetEntry"];Fd.prototype={__class__:Fd};var Vc=function(){};f["flambe.asset.AssetPack"]=Vc;Vc.__name__=["flambe","asset","AssetPack"];Vc.__interfaces__=[Ga];Vc.prototype={__class__:Vc};var Wc=function(){};f["flambe.asset.File"]=Wc;Wc.__name__=["flambe","asset","File"];Wc.__interfaces__=[vb];Wc.prototype={__class__:Wc};var ua=function(){this._localBase=this._remoteBase=null;this._entries=[]};f["flambe.asset.Manifest"]=ua;ua.__name__=["flambe","asset","Manifest"];ua.fromAssets=function(a,b){null==b&&(b=!0);var c=P.field(Xc.getType(ua).assets[0],a);if(null==c){if(b)throw new p(oa.withFields("Missing asset pack",["name",a]));return null}var e=new ua;e.set_localBase("assets");for(var d=0;d<c.length;){var f=c[d];++d;var g=f.name,i=a+"/"+g+"?v="+w.string(f.md5),h=ua.inferFormat(g);h!=v.Data&&(g=oa.removeFileExtension(g));e.add(g,i,f.bytes,h)}return e};ua.inferFormat=function(a){a=oa.getUrlExtension(a);if(null!=a)switch(a.toLowerCase()){case "gif":return v.GIF;case "jpg":case "jpeg":return v.JPG;case "jxr":case "wdp":return v.JXR;case "png":return v.PNG;case "webp":return v.WEBP;case "dds":return v.DDS;case "pvr":return v.PVR;case "pkm":return v.PKM;case "m4a":return v.M4A;case "mp3":return v.MP3;case "ogg":return v.OGG;case "opus":return v.OPUS;case "wav":return v.WAV}else null;return v.Data};ua.prototype={add:function(a,b,c,e){null==c&&(c=0);null==e&&(e=ua.inferFormat(b));a=new Fd(a,b,e,c);this._entries.push(a);return a},iterator:function(){return z.iter(this._entries)},getFullURL:function(a){var b;b=null!=this.get_remoteBase()&&ua._supportsCrossOrigin?this.get_remoteBase():this.get_localBase();return null!=b?oa.joinPath(b,a.url):a.url},get_localBase:function(){return this._localBase},set_localBase:function(a){null!=a&&Ne.that(!M.startsWith(a,"http://")&&!M.startsWith(a,"https://"),"localBase must be a path on the same domain, NOT starting with http(s)://",null);return this._localBase=a},get_remoteBase:function(){return this._remoteBase},__class__:ua};var la=f["flambe.display.BlendMode"]={__ename__:["flambe","display","BlendMode"],__constructs__:"Normal,Add,Multiply,Screen,Mask,Copy".split(",")};la.Normal=["Normal",0];la.Normal.__enum__=la;la.Add=["Add",1];la.Add.__enum__=la;la.Multiply=["Multiply",2];la.Multiply.__enum__=la;la.Screen=["Screen",3];la.Screen.__enum__=la;la.Mask=["Mask",4];la.Mask.__enum__=la;la.Copy=["Copy",5];la.Copy.__enum__=la;var na=function(a,b,c){L.call(this);this.color=a;this.width=new W(b);this.height=new W(c)};f["flambe.display.FillSprite"]=na;na.__name__=["flambe","display","FillSprite"];na.__super__=L;na.prototype=s(L.prototype,{draw:function(a){a.fillRect(this.color,0,0,this.width._value,this.height._value)},getNaturalWidth:function(){return this.width._value},getNaturalHeight:function(){return this.height._value},onUpdate:function(a){L.prototype.onUpdate.call(this,a);this.width.update(a);this.height.update(a)},__class__:na});var Yc=function(a){this._kernings=null;this.xOffset=this.yOffset=this.xAdvance=0;this.page=null;this.x=this.y=this.width=this.height=0;this.charCode=a};f["flambe.display.Glyph"]=Yc;Yc.__name__=["flambe","display","Glyph"];Yc.prototype={draw:function(a,b,c){0<this.width&&a.drawSubTexture(this.page,b+this.xOffset,c+this.yOffset,this.x,this.y,this.width,this.height)},getKerning:function(a){return null!=this._kernings?w["int"](this._kernings.h[a]):0},setKerning:function(a,b){null==this._kernings&&(this._kernings=new xa);this._kernings.h[a]=b},__class__:Yc};var ca=function(a,b){this.name=b;this._pack=a;this._file=a.getFile(b+".fnt");this.reload()};f["flambe.display.Font"]=ca;ca.__name__=["flambe","display","Font"];ca.prototype={layoutText:function(a,b,c,e,d){null==d&&(d=0);null==e&&(e=0);null==c&&(c=0);null==b&&(b=T.Left);return new wb(this,a,b,c,e,d)},reload:function(){this._glyphs=new xa;this._glyphs.h[ca.NEWLINE.charCode]=ca.NEWLINE;for(var a=new Lb(this._file.toString()),b=new xa,c=this.name.lastIndexOf("/"),c=0<=c?z.substr(this.name,0,c+1):"",e=a.keywords();e.hasNext();)switch(e.next()){case "info":for(var d=a.pairs();d.hasNext();){var f=d.next();switch(f.key){case "size":this.size=f.getInt()}}break;case "common":for(d=a.pairs();d.hasNext();)switch(f=d.next(),f.key){case "lineHeight":this.lineHeight=f.getInt()}break;case "page":for(var d=0,f=null,g=a.pairs();g.hasNext();){var i=g.next();switch(i.key){case "id":d=i.getInt();break;case "file":f=i.getString()}}f=this._pack.getTexture(c+oa.removeFileExtension(f));b.h[d]=f;break;case "char":d=null;for(f=a.pairs();f.hasNext();)switch(g=f.next(),g.key){case "id":d=new Yc(g.getInt());break;case "x":d.x=g.getInt();break;case "y":d.y=g.getInt();break;case "width":d.width=g.getInt();break;case "height":d.height=g.getInt();break;case "page":g=g.getInt();d.page=b.h[g];break;case "xoffset":d.xOffset=g.getInt();break;case "yoffset":d.yOffset=g.getInt();break;case "xadvance":d.xAdvance=g.getInt()}this._glyphs.h[d.charCode]=d;break;case "kerning":d=null;g=f=0;for(i=a.pairs();i.hasNext();){var h=i.next();switch(h.key){case "first":d=this._glyphs.h[h.getInt()];break;case "second":f=h.getInt();break;case "amount":g=h.getInt()}}null!=d&&0!=g&&d.setKerning(f,g)}},__class__:ca};var T=f["flambe.display.TextAlign"]={__ename__:["flambe","display","TextAlign"],__constructs__:["Left","Center","Right"]};T.Left=["Left",0];T.Left.__enum__=T;T.Center=["Center",1];T.Center.__enum__=T;T.Right=["Right",2];T.Right.__enum__=T;var wb=function(a,b,c,e,d,f){this.lines=0;var g=this;this._font=a;this._glyphs=[];this._offsets=[];this._lineOffset=Math.round(a.lineHeight+f);this.bounds=new Gd;for(var i=[],f=b.length,h=0;h<f;){var k=h++,k=b.charCodeAt(k),k=a._glyphs.h[k];null!=k?this._glyphs.push(k):null}for(var b=-1,l=0,j=0,a=a._glyphs.h[10],f=function(){g.bounds.width=Zc.max(g.bounds.width,l);g.bounds.height+=j;i[g.lines]=l;j=l=0;++g.lines},h=0;h<this._glyphs.length;){k=this._glyphs[h];this._offsets[h]=Math.round(l);var m=0<e&&l+k.width>e;m||k==a?(m&&(0<=b?(this._glyphs[b]=a,l=this._offsets[b],h=b):this._glyphs.splice(h,0,a)),b=-1,j=this._lineOffset,f()):(32==k.charCode&&(b=h),l+=k.xAdvance+d,j=Zc.max(j,k.height+k.yOffset),h+1<this._glyphs.length&&(l+=k.getKerning(this._glyphs[h+1].charCode)));++h}f();d=0;a=wb.getAlignOffset(c,i[0],e);b=1.79769313486231E308;f=-1.79769313486231E308;k=h=0;for(m=this._glyphs.length;k<m;){var o=this._glyphs[k];10==o.charCode&&(d+=this._lineOffset,++h,a=wb.getAlignOffset(c,i[h],e));this._offsets[k]+=a;var p=d+o.yOffset,b=b<p?b:p,f=Zc.max(f,p+o.height);++k}this.bounds.x=wb.getAlignOffset(c,this.bounds.width,e);this.bounds.y=b;this.bounds.height=f-b};f["flambe.display.TextLayout"]=wb;wb.__name__=["flambe","display","TextLayout"];wb.getAlignOffset=function(a,b,c){switch(a[1]){case 0:return 0;case 2:return c-b;case 1:return Math.round((c-b)/2)}};wb.prototype={draw:function(a){for(var b=0,c=0,e=this._glyphs.length;c<e;){var d=this._glyphs[c];10==d.charCode?b+=this._lineOffset:d.draw(a,this._offsets[c],b);++c}},__class__:wb};var Lb=function(a){this._configText=a;this._keywordPattern=new Fa("([A-Za-z]+)(.*)","");this._pairPattern=new Fa('([A-Za-z]+)=("[^"]*"|[^\\s]+)',"")};f["flambe.display._Font.ConfigParser"]=Lb;Lb.__name__=["flambe","display","_Font","ConfigParser"];Lb.advance=function(a,b){var c=b.matchedPos();return z.substr(a,c.pos+c.len,a.length)};Lb.prototype={keywords:function(){var a=this,b=this._configText;return{next:function(){b=Lb.advance(b,a._keywordPattern);a._pairText=a._keywordPattern.matched(2);return a._keywordPattern.matched(1)},hasNext:function(){return a._keywordPattern.match(b)}}},pairs:function(){var a=this,b=this._pairText;return{next:function(){b=Lb.advance(b,a._pairPattern);return new Hd(a._pairPattern.matched(1),a._pairPattern.matched(2))},hasNext:function(){return a._pairPattern.match(b)}}},__class__:Lb};var Hd=function(a,b){this.key=a;this._value=b};f["flambe.display._Font.ConfigPair"]=Hd;Hd.__name__=["flambe","display","_Font","ConfigPair"];Hd.prototype={getInt:function(){return w.parseInt(this._value)},getString:function(){return 34!=this._value.charCodeAt(0)?null:z.substr(this._value,1,this._value.length-2)},__class__:Hd};var Id=function(){};f["flambe.display.Graphics"]=Id;Id.__name__=["flambe","display","Graphics"];Id.prototype={__class__:Id};var ia=function(a){L.call(this);this.texture=a};f["flambe.display.ImageSprite"]=ia;ia.__name__=["flambe","display","ImageSprite"];ia.__super__=L;ia.prototype=s(L.prototype,{draw:function(a){null!=this.texture&&a.drawTexture(this.texture,0,0)},getNaturalWidth:function(){return null!=this.texture?this.texture.get_width():0},getNaturalHeight:function(){return null!=this.texture?this.texture.get_height():0},__class__:ia});var sb=f["flambe.display.Orientation"]={__ename__:["flambe","display","Orientation"],__constructs__:["Portrait","Landscape"]};sb.Portrait=["Portrait",0];sb.Portrait.__enum__=sb;sb.Landscape=["Landscape",1];sb.Landscape.__enum__=sb;var $c=function(){};f["flambe.display.Texture"]=$c;$c.__name__=["flambe","display","Texture"];$c.__interfaces__=[vb];$c.prototype={__class__:$c};var Oe=function(){};f["flambe.display.SubTexture"]=Oe;Oe.__name__=["flambe","display","SubTexture"];Oe.__interfaces__=[$c];var d=f["flambe.input.Key"]={__ename__:["flambe","input","Key"],__constructs__:"A,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,Number0,Number1,Number2,Number3,Number4,Number5,Number6,Number7,Number8,Number9,Numpad0,Numpad1,Numpad2,Numpad3,Numpad4,Numpad5,Numpad6,Numpad7,Numpad8,Numpad9,NumpadAdd,NumpadDecimal,NumpadDivide,NumpadEnter,NumpadMultiply,NumpadSubtract,F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11,F12,F13,F14,F15,Left,Up,Right,Down,Alt,Backquote,Backslash,Backspace,CapsLock,Comma,Command,Control,Delete,End,Enter,Equals,Escape,Home,Insert,LeftBracket,Minus,PageDown,PageUp,Period,Quote,RightBracket,Semicolon,Shift,Slash,Space,Tab,Menu,Search,Unknown".split(",")};d.A=["A",0];d.A.__enum__=d;d.B=["B",1];d.B.__enum__=d;d.C=["C",2];d.C.__enum__=d;d.D=["D",3];d.D.__enum__=d;d.E=["E",4];d.E.__enum__=d;d.F=["F",5];d.F.__enum__=d;d.G=["G",6];d.G.__enum__=d;d.H=["H",7];d.H.__enum__=d;d.I=["I",8];d.I.__enum__=d;d.J=["J",9];d.J.__enum__=d;d.K=["K",10];d.K.__enum__=d;d.L=["L",11];d.L.__enum__=d;d.M=["M",12];d.M.__enum__=d;d.N=["N",13];d.N.__enum__=d;d.O=["O",14];d.O.__enum__=d;d.P=["P",15];d.P.__enum__=d;d.Q=["Q",16];d.Q.__enum__=d;d.R=["R",17];d.R.__enum__=d;d.S=["S",18];d.S.__enum__=d;d.T=["T",19];d.T.__enum__=d;d.U=["U",20];d.U.__enum__=d;d.V=["V",21];d.V.__enum__=d;d.W=["W",22];d.W.__enum__=d;d.X=["X",23];d.X.__enum__=d;d.Y=["Y",24];d.Y.__enum__=d;d.Z=["Z",25];d.Z.__enum__=d;d.Number0=["Number0",26];d.Number0.__enum__=d;d.Number1=["Number1",27];d.Number1.__enum__=d;d.Number2=["Number2",28];d.Number2.__enum__=d;d.Number3=["Number3",29];d.Number3.__enum__=d;d.Number4=["Number4",30];d.Number4.__enum__=d;d.Number5=["Number5",31];d.Number5.__enum__=d;d.Number6=["Number6",32];d.Number6.__enum__=d;d.Number7=["Number7",33];d.Number7.__enum__=d;d.Number8=["Number8",34];d.Number8.__enum__=d;d.Number9=["Number9",35];d.Number9.__enum__=d;d.Numpad0=["Numpad0",36];d.Numpad0.__enum__=d;d.Numpad1=["Numpad1",37];d.Numpad1.__enum__=d;d.Numpad2=["Numpad2",38];d.Numpad2.__enum__=d;d.Numpad3=["Numpad3",39];d.Numpad3.__enum__=d;d.Numpad4=["Numpad4",40];d.Numpad4.__enum__=d;d.Numpad5=["Numpad5",41];d.Numpad5.__enum__=d;d.Numpad6=["Numpad6",42];d.Numpad6.__enum__=d;d.Numpad7=["Numpad7",43];d.Numpad7.__enum__=d;d.Numpad8=["Numpad8",44];d.Numpad8.__enum__=d;d.Numpad9=["Numpad9",45];d.Numpad9.__enum__=d;d.NumpadAdd=["NumpadAdd",46];d.NumpadAdd.__enum__=d;d.NumpadDecimal=["NumpadDecimal",47];d.NumpadDecimal.__enum__=d;d.NumpadDivide=["NumpadDivide",48];d.NumpadDivide.__enum__=d;d.NumpadEnter=["NumpadEnter",49];d.NumpadEnter.__enum__=d;d.NumpadMultiply=["NumpadMultiply",50];d.NumpadMultiply.__enum__=d;d.NumpadSubtract=["NumpadSubtract",51];d.NumpadSubtract.__enum__=d;d.F1=["F1",52];d.F1.__enum__=d;d.F2=["F2",53];d.F2.__enum__=d;d.F3=["F3",54];d.F3.__enum__=d;d.F4=["F4",55];d.F4.__enum__=d;d.F5=["F5",56];d.F5.__enum__=d;d.F6=["F6",57];d.F6.__enum__=d;d.F7=["F7",58];d.F7.__enum__=d;d.F8=["F8",59];d.F8.__enum__=d;d.F9=["F9",60];d.F9.__enum__=d;d.F10=["F10",61];d.F10.__enum__=d;d.F11=["F11",62];d.F11.__enum__=d;d.F12=["F12",63];d.F12.__enum__=d;d.F13=["F13",64];d.F13.__enum__=d;d.F14=["F14",65];d.F14.__enum__=d;d.F15=["F15",66];d.F15.__enum__=d;d.Left=["Left",67];d.Left.__enum__=d;d.Up=["Up",68];d.Up.__enum__=d;d.Right=["Right",69];d.Right.__enum__=d;d.Down=["Down",70];d.Down.__enum__=d;d.Alt=["Alt",71];d.Alt.__enum__=d;d.Backquote=["Backquote",72];d.Backquote.__enum__=d;d.Backslash=["Backslash",73];d.Backslash.__enum__=d;d.Backspace=["Backspace",74];d.Backspace.__enum__=d;d.CapsLock=["CapsLock",75];d.CapsLock.__enum__=d;d.Comma=["Comma",76];d.Comma.__enum__=d;d.Command=["Command",77];d.Command.__enum__=d;d.Control=["Control",78];d.Control.__enum__=d;d.Delete=["Delete",79];d.Delete.__enum__=d;d.End=["End",80];d.End.__enum__=d;d.Enter=["Enter",81];d.Enter.__enum__=d;d.Equals=["Equals",82];d.Equals.__enum__=d;d.Escape=["Escape",83];d.Escape.__enum__=d;d.Home=["Home",84];d.Home.__enum__=d;d.Insert=["Insert",85];d.Insert.__enum__=d;d.LeftBracket=["LeftBracket",86];d.LeftBracket.__enum__=d;d.Minus=["Minus",87];d.Minus.__enum__=d;d.PageDown=["PageDown",88];d.PageDown.__enum__=d;d.PageUp=["PageUp",89];d.PageUp.__enum__=d;d.Period=["Period",90];d.Period.__enum__=d;d.Quote=["Quote",91];d.Quote.__enum__=d;d.RightBracket=["RightBracket",92];d.RightBracket.__enum__=d;d.Semicolon=["Semicolon",93];d.Semicolon.__enum__=d;d.Shift=["Shift",94];d.Shift.__enum__=d;d.Slash=["Slash",95];d.Slash.__enum__=d;d.Space=["Space",96];d.Space.__enum__=d;d.Tab=["Tab",97];d.Tab.__enum__=d;d.Menu=["Menu",98];d.Menu.__enum__=d;d.Search=["Search",99];d.Search.__enum__=d;d.Unknown=function(a){a=["Unknown",100,a];a.__enum__=d;return a};var Jd=function(){this.init(0,null)};f["flambe.input.KeyboardEvent"]=Jd;Jd.__name__=["flambe","input","KeyboardEvent"];Jd.prototype={init:function(a,b){this.id=a;this.key=b},__class__:Jd};var va=f["flambe.input.MouseButton"]={__ename__:["flambe","input","MouseButton"],__constructs__:["Left","Middle","Right","Unknown"]};va.Left=["Left",0];va.Left.__enum__=va;va.Middle=["Middle",1];va.Middle.__enum__=va;va.Right=["Right",2];va.Right.__enum__=va;va.Unknown=function(a){a=["Unknown",3,a];a.__enum__=va;return a};var aa=f["flambe.input.MouseCursor"]={__ename__:["flambe","input","MouseCursor"],__constructs__:["Default","Button","None"]};aa.Default=["Default",0];aa.Default.__enum__=aa;aa.Button=["Button",1];aa.Button.__enum__=aa;aa.None=["None",2];aa.None.__enum__=aa;var Kd=function(){this.init(0,0,0,null)};f["flambe.input.MouseEvent"]=Kd;Kd.__name__=["flambe","input","MouseEvent"];Kd.prototype={init:function(a,b,c,e){this.id=a;this.viewX=b;this.viewY=c;this.button=e},__class__:Kd};var ad=f["flambe.input.EventSource"]={__ename__:["flambe","input","EventSource"],__constructs__:["Mouse","Touch"]};ad.Mouse=function(a){a=["Mouse",0,a];a.__enum__=ad;return a};ad.Touch=function(a){a=["Touch",1,a];a.__enum__=ad;return a};var Ld=function(){this.init(0,0,0,null,null)};f["flambe.input.PointerEvent"]=Ld;Ld.__name__=["flambe","input","PointerEvent"];Ld.prototype={init:function(a,b,c,e,d){this.id=a;this.viewX=b;this.viewY=c;this.hit=e;this.source=d;this._stopped=!1},__class__:Ld};var Md=function(a){this.id=a;this._source=ad.Touch(this)};f["flambe.input.TouchPoint"]=Md;Md.__name__=["flambe","input","TouchPoint"];Md.prototype={init:function(a,b){this.viewX=a;this.viewY=b},__class__:Md};var Zc=function(){};f["flambe.math.FMath"]=Zc;Zc.__name__=["flambe","math","FMath"];Zc.max=function(a,b){return a>b?a:b};var wd=function(){this.identity()};f["flambe.math.Matrix"]=wd;wd.__name__=["flambe","math","Matrix"];wd.prototype={set:function(a,b,c,e,d,f){this.m00=a;this.m01=c;this.m02=d;this.m10=b;this.m11=e;this.m12=f},identity:function(){this.set(1,0,0,1,0,0)},compose:function(a,b,c,e,d){var f=Math.sin(d),d=Math.cos(d);this.set(d*c,f*c,-f*e,d*e,a,b)},translate:function(a,b){this.m02+=this.m00*a+this.m01*b;this.m12+=this.m11*b+this.m10*a},determinant:function(){return this.m00*this.m11-this.m01*this.m10},inverseTransform:function(a,b,c){var e=this.determinant();if(0==e)return!1;a-=this.m02;b-=this.m12;c.x=(a*this.m11-b*this.m01)/e;c.y=(b*this.m00-a*this.m10)/e;return!0},__class__:wd};var Gd=function(a,b,c,e){null==e&&(e=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.set(a,b,c,e)};f["flambe.math.Rectangle"]=Gd;Gd.__name__=["flambe","math","Rectangle"];Gd.prototype={set:function(a,b,c,e){this.x=a;this.y=b;this.width=c;this.height=e},contains:function(a,b){a-=this.x;if(0<=this.width){if(0>a||a>this.width)return!1}else if(0<a||a<this.width)return!1;b-=this.y;if(0<=this.height){if(0>b||b>this.height)return!1}else if(0<b||b<this.height)return!1;return!0},__class__:Gd};var pa=function(){this._disposed=!1};f["flambe.platform.BasicAsset"]=pa;pa.__name__=["flambe","platform","BasicAsset"];pa.__interfaces__=[vb];pa.prototype={dispose:function(){this._disposed||(this._disposed=!0,this.onDisposed())},onDisposed:function(){null},__class__:pa};var xb=function(a,b){var c=this;this.manifest=b;this._platform=a;this.promise=new Wb;this._bytesLoaded=new qa;this._pack=new bd(b,this);var e=Fb.array(b);if(0==e.length)this.handleSuccess();else{for(var d=new qa,f=0;f<e.length;){var g=e[f];++f;var i=d.get(g.name);null==i&&(i=[],d.set(g.name,i));i.push(g)}this._assetsRemaining=Fb.count(d);for(e=new cd(d,d.arrayKeys());e.hasNext();)d=[e.next()],this.pickBestEntry(d[0],function(a){return function(e){if(null!=e){var d=b.getFullURL(e);try{c.loadEntry(d,e)}catch(f){f instanceof p&&(f=f.val),c.handleError(e,"Unexpected error: "+w.string(f))}d=c.promise;d.set_total(d._total+e.bytes)}else e=a[0][0],xb.isAudio(e.format)?c.handleLoad(e,ya.getInstance()):c.handleError(e,"Could not find a supported format to load")}}(d))}};f["flambe.platform.BasicAssetPackLoader"]=xb;xb.__name__=["flambe","platform","BasicAssetPackLoader"];xb.isAudio=function(a){switch(a[1]){case 8:case 9:case 10:case 11:case 12:return!0;default:return!1}};xb.prototype={onDisposed:function(){},pickBestEntry:function(a,b){this.getAssetFormats(function(c){for(var e=0;e<c.length;){var d=c[e];++e;for(var f=0;f<a.length;){var g=a[f];++f;if(g.format==d){b(g);return}}}b(null)})},loadEntry:function(){null},getAssetFormats:function(){null},handleLoad:function(a,b){if(!this._pack.disposed){this.handleProgress(a,a.bytes);var c;switch(a.format[1]){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:c=this._pack.textures;break;case 8:case 9:case 10:case 11:case 12:c=this._pack.sounds;break;case 13:c=this._pack.files}c.set(a.name,b);this._assetsRemaining-=1;0==this._assetsRemaining&&this.handleSuccess()}},handleProgress:function(a,b){this._bytesLoaded.set(a.name,b);for(var c=0,e=this._bytesLoaded.iterator();e.hasNext();)var d=e.next(),c=c+d;this.promise.set_progress(c)},handleSuccess:function(){this.promise.set_result(this._pack)},handleError:function(a,b){this.promise.error.emit(oa.withFields(b,["url",a.url]))},handleTextureError:function(a){this.handleError(a,"Failed to create texture. Is the GPU context unavailable?")},__class__:xb};var bd=function(a,b){this.disposed=!1;this._manifest=a;this.loader=b;this.textures=new qa;this.sounds=new qa;this.files=new qa};f["flambe.platform._BasicAssetPackLoader.BasicAssetPack"]=bd;bd.__name__=["flambe","platform","_BasicAssetPackLoader","BasicAssetPack"];bd.__interfaces__=[Vc];bd.prototype={getTexture:function(a,b){null==b&&(b=!0);var c=this.textures.get(a);if(null==c&&b)throw new p(oa.withFields("Missing texture",["name",a]));return c},getSound:function(a,b){null==b&&(b=!0);var c=this.sounds.get(a);if(null==c&&b)throw new p(oa.withFields("Missing sound",["name",a]));return c},getFile:function(a,b){null==b&&(b=!0);var c=this.files.get(a);if(null==c&&b)throw new p(oa.withFields("Missing file",["name",a]));return c},dispose:function(){if(!this.disposed){this.disposed=!0;for(var a=this.textures.iterator();a.hasNext();)a.next().dispose();this.textures=null;for(a=this.sounds.iterator();a.hasNext();)a.next().dispose();this.sounds=null;for(a=this.files.iterator();a.hasNext();)a.next().dispose();this.files=null;this.loader.onDisposed()}},__class__:bd};var Zb=function(a){this._disposed=!1;this._content=a};f["flambe.platform.BasicFile"]=Zb;Zb.__name__=["flambe","platform","BasicFile"];Zb.__interfaces__=[Wc];Zb.__super__=pa;Zb.prototype=s(pa.prototype,{toString:function(){return this._content},onDisposed:function(){this._content=null},__class__:Zb});var Nd=function(){};f["flambe.subsystem.KeyboardSystem"]=Nd;Nd.__name__=["flambe","subsystem","KeyboardSystem"];Nd.prototype={__class__:Nd};var Da=function(){this.down=new U;this.up=new U;this.backButton=new yb;this._keyStates=new xa};f["flambe.platform.BasicKeyboard"]=Da;Da.__name__=["flambe","platform","BasicKeyboard"];Da.__interfaces__=[Nd];Da.prototype={submitDown:function(a){if(16777238==a)return null!=this.backButton._head?(this.backButton.emit(),!0):!1;this._keyStates.h.hasOwnProperty(a)||(this._keyStates.h[a]=!0,Da._sharedEvent.init(Da._sharedEvent.id+1,Od.toKey(a)),this.down.emit(Da._sharedEvent));return!0},submitUp:function(a){this._keyStates.h.hasOwnProperty(a)&&(this._keyStates.remove(a),Da._sharedEvent.init(Da._sharedEvent.id+1,Od.toKey(a)),this.up.emit(Da._sharedEvent))},__class__:Da};var Pd=function(){};f["flambe.subsystem.MouseSystem"]=Pd;Pd.__name__=["flambe","subsystem","MouseSystem"];Pd.prototype={__class__:Pd};var ta=function(a){this._pointer=a;this._source=ad.Mouse(ta._sharedEvent);this.down=new U;this.move=new U;this.up=new U;this.scroll=new U;this._y=this._x=0;this._cursor=aa.Default;this._buttonStates=new xa};f["flambe.platform.BasicMouse"]=ta;ta.__name__=["flambe","platform","BasicMouse"];ta.__interfaces__=[Pd];ta.prototype={set_cursor:function(a){return this._cursor=a},submitDown:function(a,b,c){this._buttonStates.h.hasOwnProperty(c)||(this._buttonStates.h[c]=!0,this.prepare(a,b,Qd.toButton(c)),this._pointer.submitDown(a,b,this._source),this.down.emit(ta._sharedEvent))},submitMove:function(a,b){this.prepare(a,b,null);this._pointer.submitMove(a,b,this._source);this.move.emit(ta._sharedEvent)},submitUp:function(a,b,c){this._buttonStates.h.hasOwnProperty(c)&&(this._buttonStates.remove(c),this.prepare(a,b,Qd.toButton(c)),this._pointer.submitUp(a,b,this._source),this.up.emit(ta._sharedEvent))},submitScroll:function(a,b,c){this._x=a;this._y=b;if(null==this.scroll._head)return!1;this.scroll.emit(c);return!0},prepare:function(a,b,c){this._x=a;this._y=b;ta._sharedEvent.init(ta._sharedEvent.id+ 1,a,b,c)},__class__:ta};var Rd=function(){};f["flambe.subsystem.PointerSystem"]=Rd;Rd.__name__=["flambe","subsystem","PointerSystem"];Rd.prototype={__class__:Rd};var ka=function(a,b,c){null==c&&(c=!1);null==b&&(b=0);null==a&&(a=0);this.down=new U;this.move=new U;this.up=new U;this._x=a;this._y=b;this._isDown=c};f["flambe.platform.BasicPointer"]=ka;ka.__name__=["flambe","platform","BasicPointer"];ka.__interfaces__=[Rd];ka.prototype={get_x:function(){return this._x},get_y:function(){return this._y},isDown:function(){return this._isDown},submitDown:function(a,b,c){if(!this._isDown){this.submitMove(a,b,c);this._isDown=!0;var e=[],d=L.hitTest(l.root,a,b);if(null!=d){var f=d.owner;do{var g=f._compMap.Sprite_0;null!=g&&e.push(g);f=f.parent}while(null!=f)}this.prepare(a,b,d,c);for(a=0;a<e.length;)if(b=e[a],++a,b.onPointerDown(ka._sharedEvent),ka._sharedEvent._stopped)return;this.down.emit(ka._sharedEvent)}},submitMove:function(a,b,c){if(!(a==this._x&&b==this._y)){var e=[],d=L.hitTest(l.root,a,b);if(null!=d){var f=d.owner;do{var g=f._compMap.Sprite_0;null!=g&&e.push(g);f=f.parent}while(null!=f)}this.prepare(a,b,d,c);for(a=0;a<e.length;)if(b=e[a],++a,b.onPointerMove(ka._sharedEvent),ka._sharedEvent._stopped)return;this.move.emit(ka._sharedEvent)}},submitUp:function(a,b,c){if(this._isDown){this.submitMove(a,b,c);this._isDown=!1;var e=[],d=L.hitTest(l.root,a,b);if(null!=d){var f=d.owner;do{var g=f._compMap.Sprite_0;null!=g&&e.push(g);f=f.parent}while(null!=f)}this.prepare(a,b,d,c);for(a=0;a<e.length;)if(b=e[a],++a,b.onPointerUp(ka._sharedEvent),ka._sharedEvent._stopped)return;this.up.emit(ka._sharedEvent)}},prepare:function(a,b,c,e){this._x=a;this._y=b;ka._sharedEvent.init(ka._sharedEvent.id+1,a,b,c,e)},__class__:ka};var zb=function(a,b,c){this._parent=null;this.rootX=this.rootY=0;this._disposed=!1;this.root=a;this._width=b;this._height=c};f["flambe.platform.BasicTexture"]=zb;zb.__name__=["flambe","platform","BasicTexture"];zb.__interfaces__=[Oe];zb.__super__=pa;zb.prototype=s(pa.prototype,{onDisposed:function(){null==this._parent&&this.root.dispose()},get_width:function(){return this._width},get_height:function(){return this._height},__class__:zb});var dd=function(){};f["flambe.subsystem.TouchSystem"]=dd;dd.__name__=["flambe","subsystem","TouchSystem"];dd.prototype={__class__:dd};var Nc=function(a,b){null==b&&(b=4);this._pointer=a;this._maxPoints=b;this._pointMap=new xa;this._points=[];this.down=new U;this.move=new U;this.up=new U};f["flambe.platform.BasicTouch"]=Nc;Nc.__name__=["flambe","platform","BasicTouch"];Nc.__interfaces__=[dd];Nc.prototype={get_supported:function(){return!0},submitDown:function(a,b,c){if(!this._pointMap.h.hasOwnProperty(a)){var e=new Md(a);e.init(b,c);this._pointMap.h[a]=e;this._points.push(e);null==this._pointerTouch&&(this._pointerTouch=e,this._pointer.submitDown(b,c,e._source));this.down.emit(e)}},submitMove:function(a,b,c){a=this._pointMap.h[a];null!=a&&(a.init(b,c),this._pointerTouch==a&&this._pointer.submitMove(b,c,a._source),this.move.emit(a))},submitUp:function(a,b,c){var e=this._pointMap.h[a];null!=e&&(e.init(b,c),this._pointMap.remove(a),z.remove(this._points,e),this._pointerTouch==e&&(this._pointerTouch=null,this._pointer.submitUp(b,c,e._source)),this.up.emit(e))},__class__:Nc};var Mb=function(){};f["flambe.sound.Sound"]=Mb;Mb.__name__=["flambe","sound","Sound"];Mb.__interfaces__=[vb];Mb.prototype={__class__:Mb};var ya=function(){this._disposed=!1;this._playback=new ed(this)};f["flambe.platform.DummySound"]=ya;ya.__name__=["flambe","platform","DummySound"];ya.__interfaces__=[Mb];ya.getInstance=function(){null==ya._instance&&(ya._instance=new ya);return ya._instance};ya.__super__=pa;ya.prototype=s(pa.prototype,{play:function(){return this._playback},get_duration:function(){return 0},onDisposed:function(){},__class__:ya});var Nb=function(){};f["flambe.sound.Playback"]=Nb;Nb.__name__=["flambe","sound","Playback"];Nb.__interfaces__=[Ga];Nb.prototype={__class__:Nb};var ed=function(a){this._sound=a;this.volume=new W(0);this._complete=new sa(!0)};f["flambe.platform.DummyPlayback"]=ed;ed.__name__=["flambe","platform","DummyPlayback"];ed.__interfaces__=[Nb];ed.prototype={get_sound:function(){return this._sound},get_paused:function(){return!0},set_paused:function(){return!0},get_position:function(){return 0},dispose:function(){},__class__:ed};var fd=function(){};f["flambe.subsystem.StorageSystem"]=fd;fd.__name__=["flambe","subsystem","StorageSystem"];fd.prototype={__class__:fd};var Rc=function(){this.clear()};f["flambe.platform.DummyStorage"]=Rc;Rc.__name__=["flambe","platform","DummyStorage"];Rc.__interfaces__=[fd];Rc.prototype={set:function(a,b){this._hash.set(a,b);return!0},get:function(a,b){return this._hash.exists(a)?this._hash.get(a):b},clear:function(){this._hash=new qa},__class__:Rc};var Oc=function(){this.down=new U;this.move=new U;this.up=new U};f["flambe.platform.DummyTouch"]=Oc;Oc.__name__=["flambe","platform","DummyTouch"];Oc.__interfaces__=[dd];Oc.prototype={get_supported:function(){return!1},__class__:Oc};var $b=function(){this._entries=[]};f["flambe.platform.EventGroup"]=$b;$b.__name__=["flambe","platform","EventGroup"];$b.__interfaces__=[Ga];$b.prototype={addListener:function(a,b,c){a.addEventListener(b,c,!1);this._entries.push(new Sd(a,b,c))},addDisposingListener:function(a,b,c){var e=this;this.addListener(a,b,function(a){e.dispose();c(a)})},dispose:function(){for(var a=0,b=this._entries;a<b.length;){var c=b[a];++a;c.dispatcher.removeEventListener(c.type,c.listener,!1)}this._entries=[]},__class__:$b};var Sd=function(a,b,c){this.dispatcher=a;this.type=b;this.listener=c};f["flambe.platform._EventGroup.Entry"]=Sd;Sd.__name__=["flambe","platform","_EventGroup","Entry"];Sd.prototype={__class__:Sd};var gd=function(){};f["flambe.platform.InternalGraphics"]=gd;gd.__name__=["flambe","platform","InternalGraphics"];gd.__interfaces__=[Id];gd.prototype={__class__:gd};var Td=function(){};f["flambe.subsystem.RendererSystem"]=Td;Td.__name__=["flambe","subsystem","RendererSystem"];Td.prototype={__class__:Td};var hd=function(){};f["flambe.platform.InternalRenderer"]=hd;hd.__name__=["flambe","platform","InternalRenderer"];hd.__interfaces__=[Td];hd.prototype={__class__:hd};var Od=function(){};f["flambe.platform.KeyCodes"]=Od;Od.__name__=["flambe","platform","KeyCodes"];Od.toKey=function(a){switch(a){case 65:return d.A;case 66:return d.B;case 67:return d.C;case 68:return d.D;case 69:return d.E;case 70:return d.F;case 71:return d.G;case 72:return d.H;case 73:return d.I;case 74:return d.J;case 75:return d.K;case 76:return d.L;case 77:return d.M;case 78:return d.N;case 79:return d.O;case 80:return d.P;case 81:return d.Q;case 82:return d.R;case 83:return d.S;case 84:return d.T;case 85:return d.U;case 86:return d.V;case 87:return d.W;case 88:return d.X;case 89:return d.Y;case 90:return d.Z;case 48:return d.Number0;case 49:return d.Number1;case 50:return d.Number2;case 51:return d.Number3;case 52:return d.Number4;case 53:return d.Number5;case 54:return d.Number6;case 55:return d.Number7;case 56:return d.Number8;case 57:return d.Number9;case 96:return d.Numpad0;case 97:return d.Numpad1;case 98:return d.Numpad2;case 99:return d.Numpad3;case 100:return d.Numpad4;case 101:return d.Numpad5;case 102:return d.Numpad6;case 103:return d.Numpad7;case 104:return d.Numpad8;case 105:return d.Numpad9;case 107:return d.NumpadAdd;case 110:return d.NumpadDecimal;case 111:return d.NumpadDivide;case 108:return d.NumpadEnter;case 106:return d.NumpadMultiply;case 109:return d.NumpadSubtract;case 112:return d.F1;case 113:return d.F2;case 114:return d.F3;case 115:return d.F4;case 116:return d.F5;case 117:return d.F6;case 118:return d.F7;case 119:return d.F8;case 120:return d.F9;case 121:return d.F10;case 122:return d.F11;case 123:return d.F12;case 37:return d.Left;case 38:return d.Up;case 39:return d.Right;case 40:return d.Down;case 18:return d.Alt;case 192:return d.Backquote;case 220:return d.Backslash;case 8:return d.Backspace;case 20:return d.CapsLock;case 188:return d.Comma;case 15:return d.Command;case 17:return d.Control;case 46:return d.Delete;case 35:return d.End;case 13:return d.Enter;case 187:return d.Equals;case 27:return d.Escape;case 36:return d.Home;case 45:return d.Insert;case 219:return d.LeftBracket;case 189:return d.Minus;case 34:return d.PageDown;case 33:return d.PageUp;case 190:return d.Period;case 222:return d.Quote;case 221:return d.RightBracket;case 186:return d.Semicolon;case 16:return d.Shift;case 191:return d.Slash;case 32:return d.Space;case 9:return d.Tab;case 16777234:return d.Menu;case 16777247:return d.Search}return d.Unknown(a)};var Ib=function(){this._tickables=[]};f["flambe.platform.MainLoop"]=Ib;Ib.__name__=["flambe","platform","MainLoop"];Ib.updateEntity=function(a,b){var c=a._compMap.SpeedAdjuster_5;if(null!=c&&(c._realDt=b,b*=c.scale._value,0>=b)){c.onUpdate(b);return}for(c=a.firstComponent;null!=c;){var e=c.next;0==(c._flags&1)&&(c._flags|=1,c.onStart());c.onUpdate(b);c=e}for(c=a.firstChild;null!=c;)e=c.next,Ib.updateEntity(c,b),c=e};Ib.prototype={update:function(a){if(!(0>=a)){1<a&&(a=1);for(var b=0;b<this._tickables.length;){var c=this._tickables[b];null==c||c.update(a)?this._tickables.splice(b,1):++b}l.volume.update(a);Ib.updateEntity(l.root,a)}},render:function(a){var b=a.graphics;null!=b&&(a.willRender(),L.render(l.root,b),a.didRender())},addTickable:function(a){this._tickables.push(a)},__class__:Ib};var Qd=function(){};f["flambe.platform.MouseCodes"]=Qd;Qd.__name__=["flambe","platform","MouseCodes"];Qd.toButton=function(a){switch(a){case 0:return va.Left;case 1:return va.Middle;case 2:return va.Right}return va.Unknown(a)};var dg=function(){};f["flambe.platform.TextureRoot"]=dg;dg.__name__=["flambe","platform","TextureRoot"];var id=function(){};f["flambe.platform.Tickable"]=id;id.__name__=["flambe","platform","Tickable"];id.prototype={__class__:id};var jd=function(a,b){this._firstDraw=!1;this._canvasCtx=a.getContext("2d",{alpha:b})};f["flambe.platform.html.CanvasGraphics"]=jd;jd.__name__=["flambe","platform","html","CanvasGraphics"];jd.__interfaces__=[gd];jd.prototype={save:function(){this._canvasCtx.save()},transform:function(a,b,c,e,d,f){this._canvasCtx.transform(a,b,c,e,d,f)},restore:function(){this._canvasCtx.restore()},drawTexture:function(a,b,c){this.drawSubTexture(a,b,c,0,0,a.get_width(),a.get_height())},drawSubTexture:function(a,b,c,e,d,f,g){this._firstDraw?(this._firstDraw=!1,this._canvasCtx.globalCompositeOperation="copy",this.drawSubTexture(a,b,c,e,d,f,g),this._canvasCtx.globalCompositeOperation="source-over"):this._canvasCtx.drawImage(a.root.image,a.rootX+e|0,a.rootY+d|0,f|0,g|0,b|0,c|0,f|0,g|0)},fillRect:function(a,b,c,e,d){if(this._firstDraw)this._firstDraw=!1,this._canvasCtx.globalCompositeOperation="copy",this.fillRect(a,b,c,e,d),this._canvasCtx.globalCompositeOperation="source-over";else{for(a=(16777215&a).toString(16);6>a.length;)a="0"+w.string(a);this._canvasCtx.fillStyle="#"+w.string(a);this._canvasCtx.fillRect(b|0,c|0,e|0,d|0)}},multiplyAlpha:function(a){this._canvasCtx.globalAlpha*=a},setBlendMode:function(a){var b;switch(a[1]){case 0:b="source-over";break;case 1:b="lighter";break;case 2:b="multiply";break;case 3:b="screen";break;case 4:b="destination-in";break;case 5:b="copy"}this._canvasCtx.globalCompositeOperation=b},applyScissor:function(a,b,c,e){this._canvasCtx.beginPath();this._canvasCtx.rect(a|0,b|0,c|0,e|0);this._canvasCtx.clip()},willRender:function(){this._firstDraw=!0},didRender:function(){},__class__:jd};var Jb=function(a){this.graphics=new jd(a,!1);this._hasGPU=new sa(!0)};f["flambe.platform.html.CanvasRenderer"]=Jb;Jb.__name__=["flambe","platform","html","CanvasRenderer"];Jb.__interfaces__=[hd];Jb.prototype={get_type:function(){return kb.Canvas},createTextureFromImage:function(a){a=new ac(Jb.CANVAS_TEXTURES?F.createCanvas(a):a);return a.createTexture(a.width,a.height)},getCompressedTextureFormats:function(){return[]},createCompressedTexture:function(){return null},willRender:function(){this.graphics.willRender()},didRender:function(){this.graphics.didRender()},__class__:Jb};var kd=function(a,b,c){zb.call(this,a,b,c)};f["flambe.platform.html.CanvasTexture"]=kd;kd.__name__=["flambe","platform","html","CanvasTexture"];kd.__super__=zb;kd.prototype=s(zb.prototype,{__class__:kd});var ac=function(a){this._graphics=null;this._disposed=!1;this.image=a;this.width=a.width;this.height=a.height};f["flambe.platform.html.CanvasTextureRoot"]=ac;ac.__name__=["flambe","platform","html","CanvasTextureRoot"];ac.__interfaces__=[dg];ac.__super__=pa;ac.prototype=s(pa.prototype,{createTexture:function(a,b){return new kd(this,a,b)},onDisposed:function(){this._graphics=this.image=null},__class__:ac});var R=function(a,b){xb.call(this,a,b)};f["flambe.platform.html.HtmlAssetPackLoader"]=R;R.__name__=["flambe","platform","html","HtmlAssetPackLoader"];R.detectImageFormats=function(a){var b=[v.PNG,v.JPG,v.GIF],c=2,e;e=window.document.createElement("img");e.onload=e.onerror=function(){1==e.width&&b.unshift(v.WEBP);--c;0==c&&a(b)};e.src="data:image/webp;base64,UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==";var d;d=window.document.createElement("img");d.onload=d.onerror=function(){1==d.width&&b.unshift(v.JXR);--c;0==c&&a(b)};d.src="data:image/vnd.ms-photo;base64,SUm8AQgAAAAFAAG8AQAQAAAASgAAAIC8BAABAAAAAQAAAIG8BAABAAAAAQAAAMC8BAABAAAAWgAAAMG8BAABAAAAHwAAAAAAAAAkw91vA07+S7GFPXd2jckNV01QSE9UTwAZAYBxAAAAABP/gAAEb/8AAQAAAQAAAA=="};R.detectAudioFormats=function(){var a;a=window.document.createElement("audio");if(null==a||null==$(a,a.canPlayType))return[];var b=new Fa("\\b(iPhone|iPod|iPad|Android|Windows Phone)\\b",""),c=new Fa("\\bCrosswalk\\b",""),e=window.navigator.userAgent;if(!K.get_supported()&&b.match(e)&&!c.match(e))return[];b=[{format:v.M4A,mimeType:"audio/mp4; codecs=mp4a"},{format:v.MP3,mimeType:"audio/mpeg"},{format:v.OPUS,mimeType:"audio/ogg; codecs=opus"},{format:v.OGG,mimeType:"audio/ogg; codecs=vorbis"},{format:v.WAV,mimeType:"audio/wav"}];c=[];for(e=0;e<b.length;){var d=b[e];++e;var f="";try{f=a.canPlayType(d.mimeType)}catch(g){g instanceof p&&(g=g.val)}""!=f&&c.push(d.format)}return c};R.supportsBlob=function(){if(R._detectBlobSupport){R._detectBlobSupport=!1;if((new Fa("\\bSilk\\b","")).match(window.navigator.userAgent)||null==window.Blob)return!1;var a=new XMLHttpRequest;a.open("GET",".",!0);if(""!=a.responseType)return!1;a.responseType="blob";if("blob"!=a.responseType)return!1;R._URL=F.loadExtension("URL").value}return null!=R._URL&&null!=R._URL.createObjectURL};R.__super__=xb;R.prototype=s(xb.prototype,{loadEntry:function(a,b){var c=this;switch(b.format[1]){case 0:case 1:case 2:case 3:case 4:var e;e=window.document.createElement("img");var d=new $b;d.addDisposingListener(e,"load",function(){R.supportsBlob()&&R._URL.revokeObjectURL(e.src);var a=c._platform.getRenderer().createTextureFromImage(e);null!=a?c.handleLoad(b,a):c.handleTextureError(b)});d.addDisposingListener(e,"error",function(){c.handleError(b,"Failed to load image")});R.supportsBlob()?this.download(a,b,"blob",function(a){e.src=R._URL.createObjectURL(a)}):e.src=a;break;case 5:case 6:case 7:this.download(a,b,"arraybuffer",function(){var a=c._platform.getRenderer().createCompressedTexture(b.format,null);null!=a?c.handleLoad(b,a):c.handleTextureError(b)});break;case 8:case 9:case 10:case 11:case 12:if(K.get_supported())this.download(a,b,"arraybuffer",function(a){K.ctx.decodeAudioData(a,function(a){c.handleLoad(b,new K(a))},function(){c.handleLoad(b,ya.getInstance())})});else{var f;f=window.document.createElement("audio");f.preload="auto";var g=++R._mediaRefCount;null==R._mediaElements&&(R._mediaElements=new xa);R._mediaElements.h[g]=f;d=new $b;d.addDisposingListener(f,"canplaythrough",function(){R._mediaElements.remove(g);c.handleLoad(b,new bc(f))});d.addDisposingListener(f,"error",function(){R._mediaElements.remove(g);var a=f.error.code;3==a||4==a?c.handleLoad(b,ya.getInstance()):c.handleError(b,"Failed to load audio: "+f.error.code)});d.addListener(f,"progress",function(){if(0<f.buffered.length&&0<f.duration){var a=f.buffered.end(0)/f.duration;c.handleProgress(b,a*b.bytes|0)}});f.src=a;f.load()}break;case 13:this.download(a,b,"text",function(a){c.handleLoad(b,new Zb(a))})}},getAssetFormats:function(a){var b=this;null==R._supportedFormats&&(R._supportedFormats=new Wb,R.detectImageFormats(function(a){R._supportedFormats.set_result(b._platform.getRenderer().getCompressedTextureFormats().concat(a).concat(R.detectAudioFormats()).concat([v.Data]))}));R._supportedFormats.get(a)},download:function(a,b,c,e){var d=this,f=null,g=null,i=0,h=!1,k=function(){h&&(h=!1,window.clearInterval(i))},l=3,j=function(){--l;return 0<=l?(g(),!0):!1},g=function(){k();null!=f&&f.abort();f=new XMLHttpRequest;f.open("GET",a,!0);f.responseType=c;var g=0;f.onprogress=function(a){h||(h=!0,i=window.setInterval(function(){4!=f.readyState&&5E3<Date.now()-g&&!j()&&(k(),d.handleError(b,"Download stalled"))},1E3));g=Date.now();d.handleProgress(b,a.loaded)};f.onerror=function(){if(0!=f.status||!j())k(),d.handleError(b,"HTTP error "+f.status)};f.onload=function(){var a=f.response;null==a&&(a=f.responseText);k();e(a)};f.send()};g()},__class__:R});var Ud=function(){};f["flambe.subsystem.ExternalSystem"]=Ud;Ud.__name__=["flambe","subsystem","ExternalSystem"];Ud.prototype={__class__:Ud};var Tc=function(){};f["flambe.platform.html.HtmlExternal"]=Tc;Tc.__name__=["flambe","platform","html","HtmlExternal"];Tc.__interfaces__=[Ud];Tc.prototype={call:function(a,b){null==b&&(b=[]);for(var c=window,e=c,d=0,f=a.split(".");d<f.length;){var g=f[d];++d;c=e;e=P.field(c,g)}return e.apply(c,b)},bind:function(a,b){P.setField(window,a,b)},__class__:Tc};var Mc=function(a,b){ta.call(this,a);this._canvas=b};f["flambe.platform.html.HtmlMouse"]=Mc;Mc.__name__=["flambe","platform","html","HtmlMouse"];Mc.__super__=ta;Mc.prototype=s(ta.prototype,{set_cursor:function(a){var b;switch(a[1]){case 0:b="";break;case 1:b="pointer";break;case 2:b="none"}this._canvas.style.cursor=b;return ta.prototype.set_cursor.call(this,a)},__class__:Mc});var bc=function(a){this._disposed=!1;this.audioElement=a};f["flambe.platform.html.HtmlSound"]=bc;bc.__name__=["flambe","platform","html","HtmlSound"];bc.__interfaces__=[Mb];bc.__super__=pa;bc.prototype=s(pa.prototype,{play:function(a){null==a&&(a=1);return new ld(this,a,!1)},get_duration:function(){return this.audioElement.duration},onDisposed:function(){this.audioElement=null},__class__:bc});var ld=function(a,b,c){var e=this;this._sound=a;this._tickableAdded=!1;this._clonedElement=window.document.createElement("audio");this._clonedElement.loop=c;this._clonedElement.src=a.audioElement.src;this.volume=new W(b,function(){e.updateVolume()});this.updateVolume();this._complete=new sa(!1);this.playAudio();l.hidden._value&&this.set_paused(!0)};f["flambe.platform.html._HtmlSound.HtmlPlayback"]=ld;ld.__name__=["flambe","platform","html","_HtmlSound","HtmlPlayback"];ld.__interfaces__=[id,Nb];ld.prototype={get_sound:function(){return this._sound},get_paused:function(){return this._clonedElement.paused},set_paused:function(a){this._clonedElement.paused!=a&&(a?this._clonedElement.pause():this.playAudio());return a},get_position:function(){return this._clonedElement.currentTime},update:function(a){this.volume.update(a);this._complete.set__(this._clonedElement.ended);return this._complete._value||this._clonedElement.paused?(this._tickableAdded=!1,this._volumeBinding.dispose(),this._hideBinding.dispose(),!0):!1},dispose:function(){this.set_paused(!0);this._complete.set__(!0)},playAudio:function(){var a=this;this._clonedElement.play();this._tickableAdded||(jb.instance.mainLoop.addTickable(this),this._tickableAdded=!0,this._volumeBinding=l.volume.get_changed().connect(function(){a.updateVolume()}),this._hideBinding=l.hidden.get_changed().connect(function(b){b?(a._wasPaused=a._clonedElement.paused,a.set_paused(!0)):a.set_paused(a._wasPaused)}))},updateVolume:function(){this._clonedElement.volume=l.volume._value*this.volume._value},__class__:ld};var Vd=function(){};f["flambe.subsystem.StageSystem"]=Vd;Vd.__name__=["flambe","subsystem","StageSystem"];Vd.prototype={__class__:Vd};var Hb=function(a){var b=this;this._canvas=a;this.resize=new yb;this.preResize=new yb;this.scaleFactor=Hb.computeScaleFactor();1!=this.scaleFactor&&(F.setVendorStyle(this._canvas,"transform-origin","top left"),F.setVendorStyle(this._canvas,"transform","scale("+1/this.scaleFactor+")"));F.SHOULD_HIDE_MOBILE_BROWSER&&(window.addEventListener("orientationchange",function(){F.callLater($(b,b.hideMobileBrowser),200)},!1),this.hideMobileBrowser());window.addEventListener("resize",$(this,this.onWindowResize),!1);this.onWindowResize(null);this.orientation=new sa(null);null!=window.orientation&&(window.addEventListener("orientationchange",$(this,this.onOrientationChange),!1),this.onOrientationChange(null));this.fullscreen=new sa(!1);F.addVendorListener(window.document,"fullscreenchange",function(){b.updateFullscreen()},!1);this.updateFullscreen()};f["flambe.platform.html.HtmlStage"]=Hb;Hb.__name__=["flambe","platform","html","HtmlStage"];Hb.__interfaces__=[Vd];Hb.computeScaleFactor=function(){var a=window.devicePixelRatio;null==a&&(a=1);var b=window.document.createElement("canvas").getContext("2d",null),b=F.loadExtension("backingStorePixelRatio",b).value;null==b&&(b=1);a/=b;b=window.screen.height;return 1136<a*window.screen.width||1136<a*b?1:a};Hb.prototype={get_width:function(){return this._canvas.width},get_height:function(){return this._canvas.height},requestResize:function(a,b){if(this.resizeCanvas(a,b)){var c=this._canvas.parentElement;c.style.width=a+"px";c.style.height=b+"px"}},requestFullscreen:function(a){null==a&&(a=!0);if(a){var a=window.document.documentElement,b=F.loadFirstExtension(["requestFullscreen","requestFullScreen"],a).value;null!=b&&b.apply(a,[])}else a=F.loadFirstExtension(["cancelFullscreen","cancelFullScreen"],window.document).value,null!=a&&P.callMethod(window.document,a,[])},onWindowResize:function(){this.preResize.emit();var a=this._canvas.parentElement.getBoundingClientRect();this.resizeCanvas(a.width,a.height)},resizeCanvas:function(a,b){var c=this.scaleFactor*a,e=this.scaleFactor*b;if(this._canvas.width==c&&this._canvas.height==e)return!1;this._canvas.width=c|0;this._canvas.height=e|0;this.resize.emit();return!0},hideMobileBrowser:function(){var a=this,b=window.document.documentElement.style;b.height=window.innerHeight+100+"px";b.width=window.innerWidth+"px";b.overflow="visible";F.callLater(function(){F.hideMobileBrowser();F.callLater(function(){b.height=window.innerHeight+"px";a.onWindowResize(null)},100)})},onOrientationChange:function(){this.orientation.set__(F.orientation(window.orientation))},updateFullscreen:function(){this.fullscreen.set__(!0==F.loadFirstExtension(["fullscreen","fullScreen","isFullScreen"],window.document).value)},__class__:Hb};var Qc=function(a){this._storage=a};f["flambe.platform.html.HtmlStorage"]=Qc;Qc.__name__=["flambe","platform","html","HtmlStorage"];Qc.__interfaces__=[fd];Qc.prototype={set:function(a,b){var c;try{var e=new Ha;e.useCache=!0;e.useEnumIndex=!1;e.serialize(b);c=e.toString()}catch(d){return d instanceof p&&(d=d.val),!1}try{this._storage.setItem("flambe:"+ a,c)}catch(f){return f instanceof p&&(f=f.val),!1}return!0},get:function(a,b){var c=null;try{c=this._storage.getItem("flambe:"+a)}catch(e){e instanceof p&&(e=e.val),null}if(null!=c)try{return ja.run(c)}catch(d){d instanceof p&&(d=d.val),null}return b},__class__:Qc};var F=function(){};f["flambe.platform.html.HtmlUtil"]=F;F.__name__=["flambe","platform","html","HtmlUtil"];F.callLater=function(a,b){null==b&&(b=0);window.setTimeout(a,b)};F.hideMobileBrowser=function(){window.scrollTo(1,0)};F.loadExtension=function(a,b){null==b&&(b=window);var c=P.field(b,a);if(null!=c)return{prefix:"",field:a,value:c};for(var c=a.charAt(0).toUpperCase()+z.substr(a,1,null),e=0,d=F.VENDOR_PREFIXES;e<d.length;){var f=d[e];++e;var g=f+c,i=P.field(b,g);if(null!=i)return{prefix:f,field:g,value:i}}return{prefix:null,field:null,value:null}};F.loadFirstExtension=function(a,b){for(var c=0;c<a.length;){var e=a[c];++c;e=F.loadExtension(e,b);if(null!=e.field)return e}return{prefix:null,field:null,value:null}};F.polyfill=function(a,b){null==b&&(b=window);var c=F.loadExtension(a,b).value;if(null==c)return!1;b[a]=c;return!0};F.setVendorStyle=function(a,b,c){for(var a=a.style,e=0,d=F.VENDOR_PREFIXES;e<d.length;){var f=d[e];++e;a.setProperty("-"+f+"-"+b,c)}a.setProperty(b,c)};F.addVendorListener=function(a,b,c,e){for(var d=0,f=F.VENDOR_PREFIXES;d<f.length;){var g=f[d];++d;a.addEventListener(g+b,c,e)}a.addEventListener(b,c,e)};F.orientation=function(a){switch(a){case-90:case 90:return sb.Landscape;default:return sb.Portrait}};F.createEmptyCanvas=function(a,b){var c;c=window.document.createElement("canvas");c.width=a;c.height=b;return c};F.createCanvas=function(a){var b=F.createEmptyCanvas(a.width,a.height),c=b.getContext("2d",null);c.save();c.globalCompositeOperation="copy";c.drawImage(a,0,0);c.restore();return b};F.fixAndroidMath=function(){if(0<=window.navigator.userAgent.indexOf("Linux; U; Android 4")){var a=Math.sin,b=Math.cos;Math.sin=function(b){return 0==b?0:a(b)};Math.cos=function(a){return 0==a?1:b(a)}}};var Wd=function(){};f["flambe.subsystem.WebSystem"]=Wd;Wd.__name__=["flambe","subsystem","WebSystem"];Wd.prototype={__class__:Wd};var Sc=function(a){this._container=a};f["flambe.platform.html.HtmlWeb"]=Sc;Sc.__name__=["flambe","platform","html","HtmlWeb"];Sc.__interfaces__=[Wd];Sc.prototype={openBrowser:function(a){window.open(a,"_blank")},__class__:Sc};var K=function(a){this._disposed=!1;this.buffer=a};f["flambe.platform.html.WebAudioSound"]=K;K.__name__=["flambe","platform","html","WebAudioSound"];K.__interfaces__=[Mb];K.get_supported=function(){if(K._detectSupport){K._detectSupport=!1;var a=F.loadExtension("AudioContext").value;null!=a&&(K.ctx=new a,K.gain=K.createGain(),K.gain.connect(K.ctx.destination),l.volume.watch(function(a){K.gain.gain.value=a}))}return null!=K.ctx};K.createGain=function(){return null!=K.ctx.createGain?K.ctx.createGain():K.ctx.createGainNode()};K.start=function(a,b){null!=a.start?a.start(b):a.noteOn(b)};K.__super__=pa;K.prototype=s(pa.prototype,{play:function(a){null==a&&(a=1);return new md(this,a,!1)},get_duration:function(){return this.buffer.duration},onDisposed:function(){this.buffer=null},__class__:K});var md=function(a,b,c){var e=this;this._sound=a;this._head=K.gain;this._complete=new sa(!1);this._sourceNode=K.ctx.createBufferSource();this._sourceNode.buffer=a.buffer;this._sourceNode.loop=c;this._sourceNode.onended=function(){e._complete.set__(!0)};K.start(this._sourceNode,0);this.playAudio();this.volume=new W(b,function(a){e.setVolume(a)});1!=b&&this.setVolume(b);l.hidden._value&&this.set_paused(!0)};f["flambe.platform.html._WebAudioSound.WebAudioPlayback"]=md;md.__name__=["flambe","platform","html","_WebAudioSound","WebAudioPlayback"];md.__interfaces__=[id,Nb];md.prototype={get_sound:function(){return this._sound},get_paused:function(){return 0<=this._pausedAt},set_paused:function(a){a!=0<=this._pausedAt&&(a?(this._sourceNode.disconnect(),this._pausedAt=this.get_position()):this.playAudio());return a},get_position:function(){return this._complete._value?this._sound.get_duration():0<=this._pausedAt?this._pausedAt:(K.ctx.currentTime-this._startedAt)%this._sound.get_duration()},update:function(a){this.volume.update(a);3==this._sourceNode.playbackState&&this._complete.set__(!0);return this._complete._value||0<=this._pausedAt?(this._tickableAdded=!1,this._hideBinding.dispose(),!0):!1},dispose:function(){this.set_paused(!0);this._complete.set__(!0)},setVolume:function(a){null==this._gainNode&&(this._gainNode=K.createGain(),this.insertNode(this._gainNode));this._gainNode.gain.value=a},insertNode:function(a){0<=this._pausedAt||(this._sourceNode.disconnect(),this._sourceNode.connect(a));a.connect(this._head);this._head=a},playAudio:function(){var a=this;this._sourceNode.connect(this._head);this._startedAt=K.ctx.currentTime;this._pausedAt=-1;this._tickableAdded||(jb.instance.mainLoop.addTickable(this),this._tickableAdded=!0,this._hideBinding=l.hidden.get_changed().connect(function(b){b?(a._wasPaused=0<=a._pausedAt,a.set_paused(!0)):a.set_paused(a._wasPaused)}))},__class__:md};var Bc=function(){this._width=this._height=-1;this._transitor=null;A.call(this);this.scenes=[];this.occludedScenes=[];this._root=new N};f["flambe.scene.Director"]=Bc;Bc.__name__=["flambe","scene","Director"];Bc.__super__=A;Bc.prototype=s(A.prototype,{get_name:function(){return"Director_3"},setSize:function(a,b){this._width=a;this._height=b;return this},pushScene:function(a,b){var c=this;this.completeTransition();var e=this.get_topScene();null!=e?this.playTransition(e,a,b,function(){c.hide(e)}):(this.add(a),this.invalidateVisibility())},unwindToScene:function(a,b){var c=this;this.completeTransition();var e=this.get_topScene();if(null!=e){if(e!=a){for(this.scenes.pop();0<this.scenes.length&&this.scenes[this.scenes.length-1]!=a;)this.scenes.pop().dispose();this.playTransition(e,a,b,function(){c.hideAndDispose(e)})}}else this.pushScene(a,b)},onAdded:function(){this.owner.addChild(this._root)},onRemoved:function(){this.completeTransition();for(var a=0,b=this.scenes;a<b.length;){var c=b[a];++a;c.dispose()}this.scenes=[];this.occludedScenes=[];this._root.dispose()},onUpdate:function(a){null!=this._transitor&&this._transitor.update(a)&&this.completeTransition()},get_topScene:function(){var a=this.scenes.length;return 0<a?this.scenes[a-1]:null},add:function(a){var b=this.get_topScene();null!=b&&this._root.removeChild(b);z.remove(this.scenes,a);this.scenes.push(a);this._root.addChild(a)},hide:function(a){a=a._compMap.Scene_6;null!=a&&a.hidden.emit()},hideAndDispose:function(a){this.hide(a);a.dispose()},show:function(a){a=a._compMap.Scene_6;null!=a&&a.shown.emit()},invalidateVisibility:function(){for(var a=this.scenes.length;0<a;){var b=this.scenes[--a]._compMap.Scene_6;if(null==b||b.opaque)break}this.occludedScenes=0<this.scenes.length?this.scenes.slice(a,this.scenes.length-1):[];a=this.get_topScene();null!=a&&this.show(a)},completeTransition:function(){null!=this._transitor&&(this._transitor.complete(),this._transitor=null,this.invalidateVisibility())},playTransition:function(a,b,c,e){this.completeTransition();this.add(b);null!=c?(this.occludedScenes.push(a),this._transitor=new Xd(a,b,c,e),this._transitor.init(this)):(e(),this.invalidateVisibility())},__class__:Bc});var Xd=function(a,b,c,e){this._from=a;this._to=b;this._transition=c;this._onComplete=e};f["flambe.scene._Director.Transitor"]=Xd;Xd.__name__=["flambe","scene","_Director","Transitor"];Xd.prototype={init:function(a){this._transition.init(a,this._from,this._to)},update:function(a){return this._transition.update(a)},complete:function(){this._transition.complete();this._onComplete()},__class__:Xd};var cc=function(){};f["flambe.scene.Transition"]=cc;cc.__name__=["flambe","scene","Transition"];cc.prototype={init:function(a,b,c){this._director=a;this._from=b;this._to=c},update:function(){return!0},complete:function(){},__class__:cc};var lb=function(a,b){this._duration=a;this._ease=null!=b?b:Ed.linear};f["flambe.scene.TweenTransition"]=lb;lb.__name__=["flambe","scene","TweenTransition"];lb.__super__=cc;lb.prototype=s(cc.prototype,{init:function(a,b,c){cc.prototype.init.call(this,a,b,c);this._elapsed=0},update:function(a){this._elapsed+=a;return this._elapsed>=this._duration},interp:function(a,b){return a+(b-a)*this._ease(this._elapsed/this._duration)},__class__:lb});var Ec=function(a,b){lb.call(this,a,b)};f["flambe.scene.FadeTransition"]=Ec;Ec.__name__=["flambe","scene","FadeTransition"];Ec.__super__=lb;Ec.prototype=s(lb.prototype,{init:function(a,b,c){lb.prototype.init.call(this,a,b,c);a=this._to._compMap.Sprite_0;null==a&&this._to.add(a=new L);a.alpha.set__(0)},update:function(a){a=lb.prototype.update.call(this,a);this._to._compMap.Sprite_0.alpha.set__(this.interp(0,1));return a},complete:function(){this._to._compMap.Sprite_0.alpha.set__(1)},__class__:Ec});var Yd=function(){};f["flambe.scene.Scene"]=Yd;Yd.__name__=["flambe","scene","Scene"];Yd.__super__=A;Yd.prototype=s(A.prototype,{get_name:function(){return"Scene_6"},__class__:Yd});var dc=function(){};f["flambe.script.Action"]=dc;dc.__name__=["flambe","script","Action"];dc.prototype={__class__:dc};var Tb=function(a){this._fn=a};f["flambe.script.CallFunction"]=Tb;Tb.__name__=["flambe","script","CallFunction"];Tb.__interfaces__=[dc];Tb.prototype={update:function(){this._fn();return 0},__class__:Tb};var Ac=function(a){this._duration=a;this._elapsed=0};f["flambe.script.Delay"]=Ac;Ac.__name__=["flambe","script","Delay"];Ac.__interfaces__=[dc];Ac.prototype={update:function(a){this._elapsed+=a;if(this._elapsed>=this._duration){var b=this._elapsed-this._duration;this._elapsed=0;return a-b}return-1},__class__:Ac};var yc=function(){A.call(this);this.stopAll()};f["flambe.script.Script"]=yc;yc.__name__=["flambe","script","Script"];yc.__super__=A;yc.prototype=s(A.prototype,{get_name:function(){return"Script_4"},run:function(a){a=new nd(a);this._handles.push(a);return a},stopAll:function(){this._handles=[]},onUpdate:function(a){for(var b=0;b<this._handles.length;){var c=this._handles[b];c.removed||0<=c.action.update(a,this.owner)?this._handles.splice(b,1):++b}},__class__:yc});var nd=function(a){this.removed=!1;this.action=a};f["flambe.script._Script.Handle"]=nd;nd.__name__=["flambe","script","_Script","Handle"];nd.__interfaces__=[Ga];nd.prototype={dispose:function(){this.removed=!0;this.action=null},__class__:nd};var zc=function(a){this._idx=0;this._runningActions=null!=a?a.slice():[]};f["flambe.script.Sequence"]=zc;zc.__name__=["flambe","script","Sequence"];zc.__interfaces__=[dc];zc.prototype={update:function(a,b){for(var c=0;;){var e=this._runningActions[this._idx];if(null!=e)if(e=e.update(a-c,b),0<=e)c+=e;else return-1;++this._idx;if(this._idx>=this._runningActions.length){this._idx=0;break}else if(c>a)return-1}return c},__class__:zc};var kb=f["flambe.subsystem.RendererType"]={__ename__:["flambe","subsystem","RendererType"],__constructs__:["Stage3D","WebGL","Canvas"]};kb.Stage3D=["Stage3D",0];kb.Stage3D.__enum__=kb;kb.WebGL=["WebGL",1];kb.WebGL.__enum__=kb;kb.Canvas=["Canvas",2];kb.Canvas.__enum__=kb;var Ne=function(){};f["flambe.util.Assert"]=Ne;Ne.__name__=["flambe","util","Assert"];Ne.that=function(){};var xd=function(){};f["flambe.util.BitSets"]=xd;xd.__name__=["flambe","util","BitSets"];xd.set=function(a,b,c){return c?a|b:a&~b};var Wb=function(){this.success=new U;this.error=new U;this.progressChanged=new yb;this.hasResult=!1;this._total=this._progress=0};f["flambe.util.Promise"]=Wb;Wb.__name__=["flambe","util","Promise"];Wb.prototype={set_result:function(a){if(this.hasResult)throw new p("Promise result already assigned");this._result=a;this.hasResult=!0;this.success.emit(a);return a},get:function(a){return this.hasResult?(a(this._result),null):this.success.connect(a).once()},set_progress:function(a){this._progress!=a&&(this._progress=a,this.progressChanged.emit());return a},set_total:function(a){this._total!=a&&(this._total=a,this.progressChanged.emit());return a},__class__:Wb};var yb=function(a){ha.call(this,a)};f["flambe.util.Signal0"]=yb;yb.__name__=["flambe","util","Signal0"];yb.__super__=ha;yb.prototype=s(ha.prototype,{connect:function(a,b){null==b&&(b=!1);return this.connectImpl(a,b)},emit:function(){var a=this;this._head==ha.DISPATCHING_SENTINEL?this.defer(function(){a.emitImpl()}):this.emitImpl()},emitImpl:function(){for(var a=this.willEmit(),b=a;null!=b;)b._listener(),b.stayInList||b.dispose(),b=b._next;this.didEmit(a)},__class__:yb});var Cd=function(a){this.next=null;this.fn=a};f["flambe.util._SignalBase.Task"]=Cd;Cd.__name__=["flambe","util","_SignalBase","Task"];Cd.prototype={__class__:Cd};var oa=function(){};f["flambe.util.Strings"]=oa;oa.__name__=["flambe","util","Strings"];oa.getFileExtension=function(a){var b=a.lastIndexOf(".");return 0<b?z.substr(a,b+1,null):null};oa.removeFileExtension=function(a){var b=a.lastIndexOf(".");return 0<b?z.substr(a,0,b):a};oa.getUrlExtension=function(a){var b=a.lastIndexOf("?");0<=b&&(a=z.substr(a,0,b));b=a.lastIndexOf("/");0<=b&&(a=z.substr(a,b+1,null));return oa.getFileExtension(a)};oa.joinPath=function(a,b){0<a.length&&47!=a.charCodeAt(a.length-1)&&(a+="/");return a+b};oa.withFields=function(a,b){var c=b.length;if(0<c){for(var a=0<a.length?a+" [":a+"[",e=0;e<c;){0<e&&(a+=", ");var d=b[e],f=b[e+1];if(w.is(f,Error)){var g=f.stack;null!=g&&(f=g)}a+=d+"="+w.string(f);e+=2}a+="]"}return a};var Zd=function(){};f["haxe.IMap"]=Zd;Zd.__name__=["haxe","IMap"];var yd=function(a){this.url=a;this.headers=new rb;this.params=new rb;this.async=!0};f["haxe.Http"]=yd;yd.__name__=["haxe","Http"];yd.prototype={addParameter:function(a,b){this.params.push({param:a,value:b});return this},request:function(a){var b=this;b.responseData=null;var c=this.req=Pc.createXMLHttpRequest(),e=function(){if(4==c.readyState){var a;try{a=c.status}catch(e){e instanceof p&&(e=e.val),a=null}if(null!=a){var d=window.location.protocol.toLowerCase();(new Fa("^(?:about|app|app-storage|.+-extension|file|res|widget):$","")).match(d)&&(a=null!=c.responseText?200:404)}void 0==a&&(a=null);if(null!=a)b.onStatus(a);if(null!=a&&200<=a&&400>a)b.req=null,b.onData(b.responseData=c.responseText);else if(null==a)b.req=null,b.onError("Failed to connect or resolve host");else switch(a){case 12029:b.req=null;b.onError("Failed to connect to host");break;case 12007:b.req=null;b.onError("Unknown host");break;default:b.req=null,b.responseData=c.responseText,b.onError("Http Error #"+ c.status)}}};this.async&&(c.onreadystatechange=e);var d=this.postData;if(null!=d)a=!0;else for(var f=this.params.h,g=null;null!=f;)g=f[0],f=f[1],d=null==d?"":d+"&",d+=encodeURIComponent(g.param)+"="+encodeURIComponent(g.value);try{if(a)c.open("POST",this.url,this.async);else if(null!=d){var i=1>=this.url.split("?").length;c.open("GET",this.url+(i?"?":"&")+d,this.async);d=null}else c.open("GET",this.url,this.async)}catch(h){h instanceof p&&(h=h.val);b.req=null;this.onError(h.toString());return}!Fb.exists(this.headers,function(a){return"Content-Type"==a.header})&&a&&null==this.postData&&c.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a=this.headers.h;for(f=null;null!=a;)f=a[0],a=a[1],c.setRequestHeader(f.header,f.value);c.send(d);this.async||e(null)},onData:function(){},onError:function(){},onStatus:function(){},__class__:yd};var $d=function(a,b){this.high=a;this.low=b};f["haxe._Int64.___Int64"]=$d;$d.__name__=["haxe","_Int64","___Int64"];$d.prototype={__class__:$d};var Ha=function(){this.buf=new Aa;this.cache=[];this.useCache=Ha.USE_CACHE;this.useEnumIndex=Ha.USE_ENUM_INDEX;this.shash=new qa;this.scount=0};f["haxe.Serializer"]=Ha;Ha.__name__=["haxe","Serializer"];Ha.prototype={toString:function(){return this.buf.b},serializeString:function(a){var b=this.shash.get(a);null!=b?(this.buf.b+="R",this.buf.b=null==b?this.buf.b+"null":this.buf.b+(""+b)):(this.shash.set(a,this.scount++),this.buf.b+="y",a=encodeURIComponent(a),this.buf.b=null==a.length?this.buf.b+"null":this.buf.b+(""+a.length),this.buf.b+=":",this.buf.b=null==a?this.buf.b+"null":this.buf.b+(""+a))},serializeRef:function(a){for(var b=typeof a,c=0,e=this.cache.length;c<e;){var d=c++,f=this.cache[d];if(typeof f==b&&f==a)return this.buf.b+="r",this.buf.b=null==d?this.buf.b+"null":this.buf.b+(""+d),!0}this.cache.push(a);return!1},serializeFields:function(a){for(var b=0,c=P.fields(a);b<c.length;){var e=c[b];++b;this.serializeString(e);this.serialize(P.field(a,e))}this.buf.b+="g"},serialize:function(a){var b=V["typeof"](a);switch(b[1]){case 0:this.buf.b+="n";break;case 1:if(0==a){this.buf.b+="z";break}this.buf.b+="i";this.buf.b=null==a?this.buf.b+"null":this.buf.b+(""+a);break;case 2:isNaN(a)?this.buf.b+="k":isFinite(a)?(this.buf.b+="d",this.buf.b=null==a?this.buf.b+"null":this.buf.b+(""+a)):this.buf.b=0>a?this.buf.b+"m":this.buf.b+"p";break;case 3:this.buf.b=a?this.buf.b+"t":this.buf.b+"f";break;case 6:b=b[2];if(b==String){this.serializeString(a);break}if(this.useCache&&this.serializeRef(a))break;switch(b){case Array:b=0;this.buf.b+="a";for(var c=a.length,e=0;e<c;){var d=e++;null==a[d]?b++:(0<b&&(1==b?this.buf.b+="n":(this.buf.b+="u",this.buf.b=null==b?this.buf.b+"null":this.buf.b+(""+b)),b=0),this.serialize(a[d]))}0<b&&(1==b?this.buf.b+="n":(this.buf.b+="u",this.buf.b=null==b?this.buf.b+"null":this.buf.b+(""+b)));this.buf.b+="h";break;case rb:this.buf.b+="l";a=a.h;for(b=null;null!=a;)b=a[0],a=a[1],this.serialize(b);this.buf.b+="h";break;case Date:this.buf.b+="v";this.buf.add(a.getTime());break;case qa:this.buf.b+="b";for(b=a.keys();b.hasNext();)c=b.next(),this.serializeString(c),this.serialize(null!=Ab[c]?a.getReserved(c):a.h[c]);this.buf.b+="h";break;case xa:this.buf.b+="q";for(b=a.keys();b.hasNext();)c=b.next(),this.buf.b+=":",this.buf.b=null==c?this.buf.b+"null":this.buf.b+(""+c),this.serialize(a.h[c]);this.buf.b+="h";break;case Bb:this.buf.b+="M";for(b=a.keys();b.hasNext();)c=b.next(),e=P.field(c,"__id__"),P.deleteField(c,"__id__"),this.serialize(c),c.__id__=e,this.serialize(a.h[c.__id__]);this.buf.b+="h";break;case Ob:e=0;d=a.length- 2;b=new Aa;for(c=Ha.BASE64;e<d;){var f=a.get(e++),g=a.get(e++),i=a.get(e++);b.add(c.charAt(f>>2));b.add(c.charAt((f<<4|g>>4)&63));b.add(c.charAt((g<<2|i>>6)&63));b.add(c.charAt(i&63))}e==d?(d=a.get(e++),a=a.get(e++),b.add(c.charAt(d>>2)),b.add(c.charAt((d<<4|a>>4)&63)),b.add(c.charAt(a<<2&63))):e==d+1&&(a=a.get(e++),b.add(c.charAt(a>>2)),b.add(c.charAt(a<<4&63)));a=b.b;this.buf.b+="s";this.buf.b=null==a.length?this.buf.b+"null":this.buf.b+(""+a.length);this.buf.b+=":";this.buf.b=null==a?this.buf.b+ "null":this.buf.b+(""+a);break;default:this.useCache&&this.cache.pop(),null!=a.hxSerialize?(this.buf.b+="C",this.serializeString(V.getClassName(b)),this.useCache&&this.cache.push(a),a.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(V.getClassName(b)),this.useCache&&this.cache.push(a),this.serializeFields(a))}break;case 4:if(S.__instanceof(a,fg))a=V.getClassName(a),this.buf.b+="A",this.serializeString(a);else if(S.__instanceof(a,gg))this.buf.b+="B",this.serializeString(V.getEnumName(a));else{if(this.useCache&&this.serializeRef(a))break;this.buf.b+="o";this.serializeFields(a)}break;case 7:b=b[2];if(this.useCache){if(this.serializeRef(a))break;this.cache.pop()}this.buf.b=this.useEnumIndex?this.buf.b+"j":this.buf.b+"w";this.serializeString(V.getEnumName(b));this.useEnumIndex?(this.buf.b+=":",this.buf.b+=w.string(a[1])):this.serializeString(a[0]);this.buf.b+=":";b=a.length;this.buf.b+=w.string(b-2);for(c=2;c<b;)e=c++,this.serialize(a[e]);this.useCache&&this.cache.push(a);break;case 5:throw new p("Cannot serialize function");default:throw new p("Cannot serialize "+w.string(a));}},__class__:Ha};var fa=function(a){var b=this;this.id=setInterval(function(){b.run()},a)};f["haxe.Timer"]=fa;fa.__name__=["haxe","Timer"];fa.delay=function(a,b){var c=new fa(b);c.run=function(){c.stop();a()};return c};fa.stamp=function(){return(new Date).getTime()/1E3};fa.prototype={stop:function(){null!=this.id&&(clearInterval(this.id),this.id=null)},run:function(){},__class__:fa};var ja=function(a){this.buf=a;this.length=a.length;this.pos=0;this.scache=[];this.cache=[];a=ja.DEFAULT_RESOLVER;null==a&&(a=V,ja.DEFAULT_RESOLVER=a);this.setResolver(a)};f["haxe.Unserializer"]=ja;ja.__name__=["haxe","Unserializer"];ja.initCodes=function(){for(var a=[],b=0,c=ja.BASE64.length;b<c;){var e=b++;a[ja.BASE64.charCodeAt(e)]=e}return a};ja.run=function(a){return(new ja(a)).unserialize()};ja.prototype={setResolver:function(a){this.resolver=null==a?{resolveClass:function(){return null},resolveEnum:function(){return null}}:a},get:function(a){return this.buf.charCodeAt(a)},readDigits:function(){for(var a=0,b=!1,c=this.pos;;){var e=this.buf.charCodeAt(this.pos);if(e!=e)break;if(45==e){if(this.pos!=c)break;b=!0}else{if(48>e||57<e)break;a=10*a+(e-48)}this.pos++}b&&(a*=-1);return a},readFloat:function(){for(var a=this.pos;;){var b=this.buf.charCodeAt(this.pos);if(43<=b&&58>b||101==b||69==b)this.pos++;else break}return w.parseFloat(z.substr(this.buf,a,this.pos-a))},unserializeObject:function(a){for(;;){if(this.pos>=this.length)throw new p("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var b=this.unserialize();if("string"!=typeof b)throw new p("Invalid object key");var c=this.unserialize();a[b]=c}this.pos++},unserializeEnum:function(a,b){if(58!=this.get(this.pos++))throw new p("Invalid enum format");var c=this.readDigits();if(0==c)return V.createEnum(a,b);for(var e=[];0<c--;)e.push(this.unserialize());return V.createEnum(a,b,e)},unserialize:function(){switch(this.get(this.pos++)){case 110:return null;case 116:return!0;case 102:return!1;case 122:return 0;case 105:return this.readDigits();case 100:return this.readFloat();case 121:var a=this.readDigits();if(58!=this.get(this.pos++)||this.length-this.pos<a)throw new p("Invalid string length");var b=z.substr(this.buf,this.pos,a);this.pos+=a;b=decodeURIComponent(b.split("+").join(" "));this.scache.push(b);return b;case 107:return NaN;case 109:return-Infinity;case 112:return Infinity;case 97:a=[];for(this.cache.push(a);;){b=this.buf.charCodeAt(this.pos);if(104==b){this.pos++;break}117==b?(this.pos++,b=this.readDigits(),a[a.length+b-1]=null):a.push(this.unserialize())}return a;case 111:return a={},this.cache.push(a),this.unserializeObject(a),a;case 114:a=this.readDigits();if(0>a||a>=this.cache.length)throw new p("Invalid reference");return this.cache[a];case 82:a=this.readDigits();if(0>a||a>=this.scache.length)throw new p("Invalid string reference");return this.scache[a];case 120:throw new p(this.unserialize());case 99:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw new p("Class not found "+a);a=V.createEmptyInstance(b);this.cache.push(a);this.unserializeObject(a);return a;case 119:a=this.unserialize();b=this.resolver.resolveEnum(a);if(null==b)throw new p("Enum not found "+a);a=this.unserializeEnum(b,this.unserialize());this.cache.push(a);return a;case 106:a=this.unserialize();b=this.resolver.resolveEnum(a);if(null==b)throw new p("Enum not found "+a);this.pos++;var c=this.readDigits(),e=V.getEnumConstructs(b)[c];if(null==e)throw new p("Unknown enum index "+a+"@"+c);a=this.unserializeEnum(b,e);this.cache.push(a);return a;case 108:a=new rb;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)a.add(this.unserialize());this.pos++;return a;case 98:a=new qa;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)b=this.unserialize(),a.set(b,this.unserialize());this.pos++;return a;case 113:a=new xa;this.cache.push(a);for(b=this.get(this.pos++);58==b;)b=this.readDigits(),a.set(b,this.unserialize()),b=this.get(this.pos++);if(104!=b)throw new p("Invalid IntMap format");return a;case 77:a=new Bb;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)b=this.unserialize(),a.set(b,this.unserialize());this.pos++;return a;case 118:return 48<=this.buf.charCodeAt(this.pos)&&57>=this.buf.charCodeAt(this.pos)&&48<=this.buf.charCodeAt(this.pos+1)&&57>=this.buf.charCodeAt(this.pos+1)&&48<=this.buf.charCodeAt(this.pos+2)&&57>=this.buf.charCodeAt(this.pos+2)&&48<=this.buf.charCodeAt(this.pos+3)&&57>=this.buf.charCodeAt(this.pos+3)&&45==this.buf.charCodeAt(this.pos+4)?(a=z.substr(this.buf,this.pos,19),a=z.strDate(a),this.pos+=19):(a=this.readFloat(),b=new Date,b.setTime(a),a=b),this.cache.push(a),a;case 115:a=this.readDigits();e=this.buf;if(58!=this.get(this.pos++)||this.length-this.pos<a)throw new p("Invalid bytes length");var d=ja.CODES;null==d&&(d=ja.initCodes(),ja.CODES=d);for(var f=this.pos,g=a&3,i=f+(a-g),b=Ob.alloc(3*(a>>2)+(2<=g?g-1:0)),c=0;f<i;){var h=d[M.fastCodeAt(e,f++)],k=d[M.fastCodeAt(e,f++)];b.set(c++,h<<2|k>>4);h=d[M.fastCodeAt(e,f++)];b.set(c++,k<<4|h>>2);k=d[M.fastCodeAt(e,f++)];b.set(c++,h<<6|k)}2<=g&&(k=d[M.fastCodeAt(e,f++)],i=d[M.fastCodeAt(e,f++)],b.set(c++,k<<2|i>>4),3==g&&(e=d[M.fastCodeAt(e,f++)],b.set(c++,i<<4|e>>2)));this.pos+=a;this.cache.push(b);return b;case 67:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw new p("Class not found "+a);a=V.createEmptyInstance(b);this.cache.push(a);a.hxUnserialize(this);if(103!=this.get(this.pos++))throw new p("Invalid custom data");return a;case 65:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw new p("Class not found "+ a);return b;case 66:a=this.unserialize();b=this.resolver.resolveEnum(a);if(null==b)throw new p("Enum not found "+a);return b}this.pos--;throw new p("Invalid char "+this.buf.charAt(this.pos)+" at position "+this.pos);},__class__:ja};var xa=function(){this.h={}};f["haxe.ds.IntMap"]=xa;xa.__name__=["haxe","ds","IntMap"];xa.__interfaces__=[Zd];xa.prototype={set:function(a,b){this.h[a]=b},remove:function(a){if(!this.h.hasOwnProperty(a))return!1;delete this.h[a];return!0},keys:function(){var a=[],b;for(b in this.h)this.h.hasOwnProperty(b)&&a.push(b|0);return z.iter(a)},__class__:xa};var Bb=function(){this.h={};this.h.__keys__={}};f["haxe.ds.ObjectMap"]=Bb;Bb.__name__=["haxe","ds","ObjectMap"];Bb.__interfaces__=[Zd];Bb.prototype={set:function(a,b){var c=a.__id__||(a.__id__=++Bb.count);this.h[c]=b;this.h.__keys__[c]=a},keys:function(){var a=[],b;for(b in this.h.__keys__)this.h.hasOwnProperty(b)&&a.push(this.h.__keys__[b]);return z.iter(a)},__class__:Bb};var cd=function(a,b){this.map=a;this.keys=b;this.index=0;this.count=b.length};f["haxe.ds._StringMap.StringMapIterator"]=cd;cd.__name__=["haxe","ds","_StringMap","StringMapIterator"];cd.prototype={hasNext:function(){return this.index<this.count},next:function(){return this.map.get(this.keys[this.index++])},__class__:cd};var qa=function(){this.h={}};f["haxe.ds.StringMap"]=qa;qa.__name__=["haxe","ds","StringMap"];qa.__interfaces__=[Zd];qa.prototype={set:function(a,b){null!=Ab[a]?this.setReserved(a,b):this.h[a]=b},get:function(a){return null!=Ab[a]?this.getReserved(a):this.h[a]},exists:function(a){return null!=Ab[a]?this.existsReserved(a):this.h.hasOwnProperty(a)},setReserved:function(a,b){null==this.rh&&(this.rh={});this.rh["$"+a]=b},getReserved:function(a){return null==this.rh?null:this.rh["$"+a]},existsReserved:function(a){return null==this.rh?!1:this.rh.hasOwnProperty("$"+a)},keys:function(){var a=this.arrayKeys();return z.iter(a)},arrayKeys:function(){var a=[],b;for(b in this.h)this.h.hasOwnProperty(b)&&a.push(b);if(null!=this.rh)for(b in this.rh)36==b.charCodeAt(0)&&a.push(b.substr(1));return a},iterator:function(){return new cd(this,this.arrayKeys())},__class__:qa};var Ob=function(a){this.length=a.byteLength;this.b=new eg(a);this.b.bufferValue=a;a.hxBytes=this;a.bytes=this.b};f["haxe.io.Bytes"]=Ob;Ob.__name__=["haxe","io","Bytes"];Ob.alloc=function(a){return new Ob(new Pe(a))};Ob.prototype={get:function(a){return this.b[a]},set:function(a,b){this.b[a]=b&255},__class__:Ob};var Ia=f["haxe.io.Error"]={__ename__:["haxe","io","Error"],__constructs__:["Blocked","Overflow","OutsideBounds","Custom"]};Ia.Blocked=["Blocked",0];Ia.Blocked.__enum__=Ia;Ia.Overflow=["Overflow",1];Ia.Overflow.__enum__=Ia;Ia.OutsideBounds=["OutsideBounds",2];Ia.OutsideBounds.__enum__=Ia;Ia.Custom=function(a){a=["Custom",3,a];a.__enum__=Ia;return a};var Ja=function(){};f["haxe.io.FPHelper"]=Ja;Ja.__name__=["haxe","io","FPHelper"];Ja.i32ToFloat=function(a){var b=a>>>23&255,c=a&8388607;return 0==c&&0==b?0:(1-(a>>>31<<1))*(1+Math.pow(2,-23)*c)*Math.pow(2,b-127)};Ja.floatToI32=function(a){if(0==a)return 0;var b;b=0>a?-a:a;var c=Math.floor(Math.log(b)/0.6931471805599453);-127>c?c=-127:128<c&&(c=128);b=Math.round(8388608*(b/Math.pow(2,c)-1))&8388607;return(0>a?-2147483648:0)|c+127<<23|b};Ja.i64ToDouble=function(a,b){var c=(b>>20&2047)-1023,e=4294967296*(b&1048575)+2147483648*(a>>>31)+(a&2147483647);return 0==e&&-1023==c?0:(1-(b>>>31<<1))*(1+Math.pow(2,-52)*e)*Math.pow(2,c)};Ja.doubleToI64=function(a){var b=Ja.i64tmp;if(0==a)b.low=0,b.high=0;else{var c;c=0>a?-a:a;var e=Math.floor(Math.log(c)/0.6931471805599453);c=4503599627370496*(c/Math.pow(2,e)-1);c=Math.round(c);b.low=c|0;b.high=(0>a?-2147483648:0)|e+1023<<20|c/4294967296|0}return b};var Xc=function(){};f["haxe.rtti.Meta"]=Xc;Xc.__name__=["haxe","rtti","Meta"];Xc.getType=function(a){a=Xc.getMeta(a);return null==a||null==a.obj?{}:a.obj};Xc.getMeta=function(a){return a.__meta__};var ae=function(a){this.__x=a};f["haxe.xml._Fast.NodeAccess"]=ae;ae.__name__=["haxe","xml","_Fast","NodeAccess"];ae.prototype={resolve:function(a){var b=this.__x.elementsNamed(a).next();if(null==b)throw b=this.__x.nodeType==r.Document?"Document":this.__x.get_nodeName(),new p(b+" is missing element "+a);return new Vb(b)},__class__:ae};var be=function(a){this.__x=a};f["haxe.xml._Fast.AttribAccess"]=be;be.__name__=["haxe","xml","_Fast","AttribAccess"];be.prototype={resolve:function(a){if(this.__x.nodeType==r.Document)throw new p("Cannot access document attribute "+a);var b=this.__x.get(a);if(null==b)throw new p(this.__x.get_nodeName()+" is missing attribute "+a);return b},__class__:be};var ce=function(a){this.__x=a};f["haxe.xml._Fast.HasAttribAccess"]=ce;ce.__name__=["haxe","xml","_Fast","HasAttribAccess"];ce.prototype={__class__:ce};var de=function(a){this.__x=a};f["haxe.xml._Fast.HasNodeAccess"]=de;de.__name__=["haxe","xml","_Fast","HasNodeAccess"];de.prototype={__class__:de};var ee=function(a){this.__x=a};f["haxe.xml._Fast.NodeListAccess"]=ee;ee.__name__=["haxe","xml","_Fast","NodeListAccess"];ee.prototype={resolve:function(a){for(var b=new rb,a=this.__x.elementsNamed(a);a.hasNext();){var c=a.next();b.add(new Vb(c))}return b},__class__:ee};var Vb=function(a){if(a.nodeType!=r.Document&&a.nodeType!=r.Element)throw new p("Invalid nodeType "+a.nodeType);this.x=a;this.node=new ae(a);this.nodes=new ee(a);this.att=new be(a);this.has=new ce(a);this.hasNode=new de(a)};f["haxe.xml.Fast"]=Vb;Vb.__name__=["haxe","xml","Fast"];Vb.prototype={get_name:function(){return this.x.nodeType==r.Document?"Document":this.x.get_nodeName()},get_innerData:function(){var a=this.x.iterator();if(!a.hasNext())throw new p(this.get_name()+" does not have data");var b=a.next(),c=a.next();if(null!=c){if(b.nodeType==r.PCData&&c.nodeType==r.CData&&""==M.trim(function(){if(b.nodeType==r.Document||b.nodeType==r.Element)throw new p("Bad node type, unexpected "+b.nodeType);return b.nodeValue}(this))){var e=a.next();if(null==e||e.nodeType==r.PCData&&""==M.trim(function(){if(e.nodeType==r.Document||e.nodeType==r.Element)throw new p("Bad node type, unexpected "+e.nodeType);return e.nodeValue}(this))&&null==a.next()){if(c.nodeType==r.Document||c.nodeType==r.Element)throw new p("Bad node type, unexpected "+ c.nodeType);return c.nodeValue}}throw new p(this.get_name()+" does not only have data");}if(b.nodeType!=r.PCData&&b.nodeType!=r.CData)throw new p(this.get_name()+" does not have data");if(b.nodeType==r.Document||b.nodeType==r.Element)throw new p("Bad node type, unexpected "+b.nodeType);return b.nodeValue},__class__:Vb};var hb=function(){};f["haxe.xml.Parser"]=hb;hb.__name__=["haxe","xml","Parser"];hb.parse=function(a,b){null==b&&(b=!1);var c=r.createDocument();hb.doParse(a,b,0,c);return c};hb.doParse=function(a,b,c,e){null==c&&(c=0);for(var d=null,f=1,g=1,i=null,h=0,k=0,l=0,j=a.charCodeAt(c),m=new Aa,o=1,q=-1;j==j;){switch(f){case 0:switch(j){case 10:case 13:case 9:case 32:break;default:f=g;continue}break;case 1:switch(j){case 60:f=0;g=2;break;default:h=c;f=13;continue}break;case 13:60==j?(m.addSub(a,h,c-h),g=r.createPCData(m.b),m=new Aa,e.addChild(g),k++,f=0,g=2):38==j&&(m.addSub(a,h,c-h),f=18,o=13,h=c+1);break;case 17:93==j&&93==a.charCodeAt(c+1)&&62==a.charCodeAt(c+2)&&(j=r.createCData(z.substr(a,h,c-h)),e.addChild(j),k++,c+=2,f=1);break;case 2:switch(j){case 33:if(91==a.charCodeAt(c+1)){c+=2;if("CDATA["!=z.substr(a,c,6).toUpperCase())throw new p("Expected <![CDATA[");c+=5;f=17}else if(68==a.charCodeAt(c+1)||100==a.charCodeAt(c+1)){if("OCTYPE"!=z.substr(a,c+2,6).toUpperCase())throw new p("Expected <!DOCTYPE");c+=8;f=16}else{if(45!=a.charCodeAt(c+1)||45!=a.charCodeAt(c+2))throw new p("Expected <\!--");c+=2;f=15}h=c+1;break;case 63:f=14;h=c;break;case 47:if(null==e)throw new p("Expected node name");h=c+1;f=0;g=10;break;default:f=3;h=c;continue}break;case 3:if(!(97<=j&&122>=j||65<=j&&90>=j||48<=j&&57>=j||58==j||46==j||95==j||45==j)){if(c==h)throw new p("Expected node name");d=r.createElement(z.substr(a,h,c-h));e.addChild(d);k++;f=0;g=4;continue}break;case 4:switch(j){case 47:f=11;break;case 62:f=9;break;default:f=5;h=c;continue}break;case 5:if(!(97<=j&&122>=j||65<=j&&90>=j||48<=j&&57>=j||58==j||46==j||95==j||45==j)){if(h==c)throw new p("Expected attribute name");i=z.substr(a,h,c-h);if(d.exists(i))throw new p("Duplicate attribute");f=0;g=6;continue}break;case 6:switch(j){case 61:f=0;g=7;break;default:throw new p("Expected =");}break;case 7:switch(j){case 34:case 39:m=new Aa;f=8;h=c+1;q=j;break;default:throw new p('Expected "');}break;case 8:switch(j){case 38:m.addSub(a,h,c-h);f=18;o=8;h=c+1;break;case 62:if(b)throw new p("Invalid unescaped "+String.fromCharCode(j)+" in attribute value");j==q&&(m.addSub(a,h,c-h),g=m.b,m=new Aa,d.set(i,g),f=0,g=4);break;case 60:if(b)throw new p("Invalid unescaped "+String.fromCharCode(j)+" in attribute value");j==q&&(m.addSub(a,h,c-h),g=m.b,m=new Aa,d.set(i,g),f=0,g=4);break;default:j==q&&(m.addSub(a,h,c-h),g=m.b,m=new Aa,d.set(i,g),f=0,g=4)}break;case 9:h=c=hb.doParse(a,b,c,d);f=1;break;case 11:switch(j){case 62:f=1;break;default:throw new p("Expected >");}break;case 12:switch(j){case 62:return 0==k&&e.addChild(r.createPCData("")),c;default:throw new p("Expected >");}case 10:if(!(97<=j&&122>=j||65<=j&&90>=j||48<=j&&57>=j||58==j||46==j||95==j||45==j)){if(h==c)throw new p("Expected node name");g=z.substr(a,h,c-h);if(e.nodeType!=r.Element)throw new p("Bad node type, expected Element but found "+e.nodeType);if(g!=e.nodeName)throw new p("Expected </"+function(){if(e.nodeType!=r.Element)throw"Bad node type, expected Element but found "+e.nodeType;return e.nodeName}(this)+">");f=0;g=12;continue}break;case 15:45==j&&45==a.charCodeAt(c+1)&&62==a.charCodeAt(c+2)&&(j=r.createComment(z.substr(a,h,c-h)),e.addChild(j),k++,c+=2,f=1);break;case 16:91==j?l++:93==j?l--:62==j&&0==l&&(j=r.createDocType(z.substr(a,h,c-h)),e.addChild(j),k++,f=1);break;case 14:63==j&&62==a.charCodeAt(c+1)&&(c++,j=z.substr(a,h+1,c-h-2),j=r.createProcessingInstruction(j),e.addChild(j),k++,f=1);break;case 18:if(59==j){h=z.substr(a,h,c-h);if(35==h.charCodeAt(0))h=120==h.charCodeAt(1)?w.parseInt("0"+z.substr(h,1,h.length-1)):w.parseInt(z.substr(h,1,h.length-1)),m.b+=String.fromCharCode(h);else if(hb.escapes.exists(h))m.add(hb.escapes.get(h));else{if(b)throw new p("Undefined entity: "+h);m.b+=w.string("&"+h+";")}h=c+1;f=o}else if(!(97<=j&&122>=j||65<=j&&90>=j||48<=j&&57>=j||58==j||46==j||95==j||45==j)&&35!=j){if(b)throw new p("Invalid character in entity: "+String.fromCharCode(j));m.b+="&";m.addSub(a,h,c-h);c--;h=c+1;f=o}}j=M.fastCodeAt(a,++c)}1==f&&(h=c,f=13);if(13==f){if(c!=h||0==k)m.addSub(a,h,c-h),a=r.createPCData(m.b),e.addChild(a),k++;return c}if(!b&&18==f&&13==o)return m.b+="&",m.addSub(a,h,c-h),a=r.createPCData(m.b),e.addChild(a),k++,c;throw new p("Unexpected end");};var p=function(a){Error.call(this);this.val=a;this.message=""+a;Error.captureStackTrace&&Error.captureStackTrace(this,p)};f["js._Boot.HaxeError"]=p;p.__name__=["js","_Boot","HaxeError"];p.__super__=Error;p.prototype=s(Error.prototype,{__class__:p});var S=function(){};f["js.Boot"]=S;S.__name__=["js","Boot"];S.getClass=function(a){if(a instanceof Array&&null==a.__enum__)return Array;var b=a.__class__;if(null!=b)return b;a=S.__nativeClassName(a);return null!=a?S.__resolveNativeClass(a):null};S.__string_rec=function(a,b){if(null==a)return"null";if(5<=b.length)return"<...>";var c=typeof a;if("function"==c&&(a.__name__||a.__ename__))c="object";switch(c){case "object":if(a instanceof Array){if(a.__enum__){if(2==a.length)return a[0];for(var c=a[0]+"(",b=b+"\t",e=2,d=a.length;e<d;)var f=e++,c=2!=f?c+(","+S.__string_rec(a[f],b)):c+S.__string_rec(a[f],b);return c+")"}c=a.length;e="[";b+="\t";for(d=0;d<c;)f=d++,e+=(0<f?",":"")+S.__string_rec(a[f],b);return e+"]"}try{e=a.toString}catch(g){return g instanceof p&&(g=g.val),"???"}if(null!=e&&e!=Object.toString&&"function"==typeof e&&(c=a.toString(),"[object Object]"!=c))return c;c=null;e="{\n";b+="\t";d=null!=a.hasOwnProperty;for(c in a)if(!d||a.hasOwnProperty(c))"prototype"==c||"__class__"==c||"__super__"==c||"__interfaces__"==c||"__properties__"==c||(2!=e.length&&(e+=", \n"),e+=b+c+" : "+S.__string_rec(a[c],b));b=b.substring(1);return e+("\n"+b+"}");case "function":return"<function>";case "string":return a;default:return""+a}};S.__interfLoop=function(a,b){if(null==a)return!1;if(a==b)return!0;var c=a.__interfaces__;if(null!=c)for(var e=0,d=c.length;e<d;){var f=e++,f=c[f];if(f==b||S.__interfLoop(f,b))return!0}return S.__interfLoop(a.__super__,b)};S.__instanceof=function(a,b){if(null==b)return!1;switch(b){case kg:return(a|0)===a;case hg:return"number"==typeof a;case ig:return"boolean"==typeof a;case String:return"string"==typeof a;case Array:return a instanceof Array&&null==a.__enum__;case lg:return!0;default:if(null!=a)if("function"==typeof b){if(a instanceof b||S.__interfLoop(S.getClass(a),b))return!0}else{if("object"==typeof b&&S.__isNativeObj(b)&&a instanceof b)return!0}else return!1;return b==fg&&null!=a.__name__||b==gg&&null!=a.__ename__?!0:a.__enum__==b}};S.__nativeClassName=function(a){a=S.__toStr.call(a).slice(8,-1);return"Object"==a||"Function"==a||"Math"==a||"JSON"==a?null:a};S.__isNativeObj=function(a){return null!=S.__nativeClassName(a)};S.__resolveNativeClass=function(a){return Function("return typeof "+a+' != "undefined" ? '+a+" : null")()};var Pc=function(){};f["js.Browser"]=Pc;Pc.__name__=["js","Browser"];Pc.getLocalStorage=function(){try{var a=window.localStorage;a.getItem("");return a}catch(b){return b instanceof p&&(b=b.val),null}};Pc.createXMLHttpRequest=function(){if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)return new ActiveXObject("Microsoft.XMLHTTP");throw new p("Unable to create XMLHttpRequest object.");};var Ka=function(a){if(a instanceof Array&&null==a.__enum__)this.a=a,this.byteLength=a.length;else{this.a=[];for(var b=0;b<a;)this.a[b++]=0;this.byteLength=a}};f["js.html.compat.ArrayBuffer"]=Ka;Ka.__name__=["js","html","compat","ArrayBuffer"];Ka.sliceImpl=function(a,b){var c=new eg(this,a,null==b?null:b-a),e=new Pe(c.byteLength);(new eg(e)).set(c);return e};Ka.prototype={slice:function(a,b){return new Ka(this.a.slice(a,b))},__class__:Ka};var Qe=function(a,b,c){this.buf=a;this.offset=null==b?0:b;this.length=null==c?a.byteLength-this.offset:c;if(0>this.offset||0>this.length||this.offset+this.length>a.byteLength)throw new p(Ia.OutsideBounds);};f["js.html.compat.DataView"]=Qe;Qe.__name__=["js","html","compat","DataView"];Qe.prototype={getInt8:function(a){a=this.buf.a[this.offset+a];return 128<=a?a-256:a},getUint8:function(a){return this.buf.a[this.offset+a]},getInt16:function(a,b){var c=this.getUint16(a,b);return 32768<=c?c-65536:c},getUint16:function(a,b){return b?this.buf.a[this.offset+a]|this.buf.a[this.offset+a+1]<<8:this.buf.a[this.offset+a]<<8|this.buf.a[this.offset+a+1]},getInt32:function(a,b){var c=this.offset+a,e=this.buf.a[c++],d=this.buf.a[c++],f=this.buf.a[c++],c=this.buf.a[c++];return b?e|d<<8|f<<16|c<<24:c|f<<8|d<<16|e<<24},getUint32:function(a,b){var c=this.getInt32(a,b);return 0>c?c+4294967296:c},getFloat32:function(a,b){return Ja.i32ToFloat(this.getInt32(a,b))},getFloat64:function(a,b){var c=this.getInt32(a,b),e=this.getInt32(a+4,b);return Ja.i64ToDouble(b?c:e,b?e:c)},setInt8:function(a,b){this.buf.a[a+this.offset]=0>b?b+128&255:b&255},setUint8:function(a,b){this.buf.a[a+this.offset]=b&255},setInt16:function(a,b,c){this.setUint16(a,0>b?b+65536:b,c)},setUint16:function(a,b,c){a+=this.offset;c?(this.buf.a[a]=b&255,this.buf.a[a++]=b>>8&255):(this.buf.a[a++]=b>>8&255,this.buf.a[a]=b&255)},setInt32:function(a,b,c){this.setUint32(a,b,c)},setUint32:function(a,b,c){a+=this.offset;c?(this.buf.a[a++]=b&255,this.buf.a[a++]=b>>8&255,this.buf.a[a++]=b>>16&255,this.buf.a[a++]=b>>>24):(this.buf.a[a++]=b>>>24,this.buf.a[a++]=b>>16&255,this.buf.a[a++]=b>>8&255,this.buf.a[a++]=b&255)},setFloat32:function(a,b,c){this.setUint32(a,Ja.floatToI32(b),c)},setFloat64:function(a,b,c){b=Ja.doubleToI64(b);c?(this.setUint32(a,b.low),this.setUint32(a,b.high)):(this.setUint32(a,b.high),this.setUint32(a,b.low))},__class__:Qe};var mb=function(){};f["js.html.compat.Uint8Array"]=mb;mb.__name__=["js","html","compat","Uint8Array"];mb._new=function(a,b,c){if("number"==typeof a){c=[];for(b=0;b<a;){var e=b++;c[e]=0}c.byteLength=c.length;c.byteOffset=0;c.buffer=new Ka(c)}else if(S.__instanceof(a,Ka))null==b&&(b=0),null==c&&(c=a.byteLength-b),c=0==b?a.a:a.a.slice(b,b+c),c.byteLength=c.length,c.byteOffset=b,c.buffer=a;else if(a instanceof Array&&null==a.__enum__)c=a.slice(),c.byteLength=c.length,c.byteOffset=0,c.buffer=new Ka(c);else throw new p("TODO "+w.string(a));c.subarray=mb._subarray;c.set=mb._set;return c};mb._set=function(a,b){if(S.__instanceof(a.buffer,Ka)){if(a.byteLength+b>this.byteLength)throw new p("set() outside of range");for(var c=0,e=a.byteLength;c<e;){var d=c++;this[d+b]=a[d]}}else if(a instanceof Array&&null==a.__enum__){if(a.length+ b>this.byteLength)throw new p("set() outside of range");c=0;for(e=a.length;c<e;)d=c++,this[d+b]=a[d]}else throw new p("TODO");};mb._subarray=function(a,b){var c=mb._new(this.slice(a,b));c.byteOffset=a;return c};var La=function(){this.zpp_inner=null};f["nape.callbacks.Callback"]=La;La.__name__=["nape","callbacks","Callback"];La.prototype={toString:function(){return""},__class__:La};var fe=function(){};f["nape.callbacks.BodyCallback"]=fe;fe.__name__=["nape","callbacks","BodyCallback"];fe.__super__=La;fe.prototype=s(La.prototype,{toString:function(){var a;a="Cb:"+["WAKE","SLEEP"][this.zpp_inner.event-2];a+=":"+this.zpp_inner.body.outer.toString();return a+=" : listener: "+w.string(this.zpp_inner.listener.outer)},__class__:fe});var Ma=function(){this.zpp_inner=null};f["nape.callbacks.Listener"]=Ma;Ma.__name__=["nape","callbacks","Listener"];Ma.prototype={toString:function(){var a="BEGIN,END,WAKE,SLEEP,BREAK,PRE,ONGOING".split(",")[this.zpp_inner.event];if(0==this.zpp_inner.type)return"BodyListener{"+ a+"::"+w.string(this.zpp_inner.body.outer_zn.zpp_inner_zn.options.outer)+"}";if(1==this.zpp_inner.type)return"ConstraintListener{"+a+"::"+w.string(this.zpp_inner.constraint.outer_zn.zpp_inner_zn.options.outer)+"}";var b=this.zpp_inner.interaction,c;switch(b.itype){case 1:c="COLLISION";break;case 2:c="SENSOR";break;case 4:c="FLUID";break;default:c="ALL"}return(2==this.zpp_inner.type?"InteractionListener{"+a+"#"+c+"::"+w.string(b.outer_zni.zpp_inner_zn.options1.outer)+":"+w.string(b.outer_zni.zpp_inner_zn.options2.outer)+ "}":"PreListener{"+c+"::"+w.string(b.outer_znp.zpp_inner_zn.options1.outer)+":"+w.string(b.outer_znp.zpp_inner_zn.options2.outer)+"}")+" precedence="+this.zpp_inner.precedence},__class__:Ma};var ge=function(){this.zpp_inner_zn=null};f["nape.callbacks.BodyListener"]=ge;ge.__name__=["nape","callbacks","BodyListener"];ge.__super__=Ma;ge.prototype=s(Ma.prototype,{__class__:ge});var fb=function(){};f["nape.callbacks.CbEvent"]=fb;fb.__name__=["nape","callbacks","CbEvent"];fb.prototype={toString:function(){var a;null==g.CbEvent_PRE&&(g.internal=!0,g.CbEvent_PRE=new fb,g.internal=!1);this==g.CbEvent_PRE?a="PRE":(null==g.CbEvent_BEGIN&&(g.internal=!0,g.CbEvent_BEGIN=new fb,g.internal=!1),this==g.CbEvent_BEGIN?a="BEGIN":(null==g.CbEvent_ONGOING&&(g.internal=!0,g.CbEvent_ONGOING=new fb,g.internal=!1),this==g.CbEvent_ONGOING?a="ONGOING":(null==g.CbEvent_END&&(g.internal=!0,g.CbEvent_END=new fb,g.internal=!1),this==g.CbEvent_END?a="END":(null==g.CbEvent_WAKE&&(g.internal=!0,g.CbEvent_WAKE=new fb,g.internal=!1),this==g.CbEvent_WAKE?a="WAKE":(null==g.CbEvent_SLEEP&&(g.internal=!0,g.CbEvent_SLEEP=new fb,g.internal=!1),this==g.CbEvent_SLEEP?a="SLEEP":(null==g.CbEvent_BREAK&&(g.internal=!0,g.CbEvent_BREAK=new fb,g.internal=!1),a=this==g.CbEvent_BREAK?"BREAK":""))))));return a},__class__:fb};var Pb=function(){this.zpp_inner=null;this.zpp_inner=new Ea;this.zpp_inner.outer=this};f["nape.callbacks.CbType"]=Pb;Pb.__name__=["nape","callbacks","CbType"];Pb.prototype={toString:function(){return this==Ea.ANY_BODY?"ANY_BODY":this==Ea.ANY_SHAPE?"ANY_SHAPE":this==Ea.ANY_COMPOUND?"ANY_COMPOUND":this==Ea.ANY_CONSTRAINT?"ANY_CONSTRAINT":"CbType#"+this.zpp_inner.id},__class__:Pb};var Na=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.callbacks.CbTypeIterator"]=Na;Na.__name__=["nape","callbacks","CbTypeIterator"];Na.get=function(a){var b;null==Na.zpp_pool?(gb.internal=!0,b=new Na,gb.internal=!1):(b=Na.zpp_pool,Na.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};Na.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=Na.zpp_pool;Na.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:Na};var he=function(){this.zpp_inner=null;this.zpp_inner=new gb;this.zpp_inner.outer=this};f["nape.callbacks.CbTypeList"]=he;he.__name__=["nape","callbacks","CbTypeList"];he.prototype={get_length:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&(a=this.get_length()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt.outer},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=Na.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:he};var ie=function(){};f["nape.callbacks.ConstraintCallback"]=ie;ie.__name__=["nape","callbacks","ConstraintCallback"];ie.__super__=La;ie.prototype=s(La.prototype,{toString:function(){var a;a="Cb:"+["WAKE","SLEEP","BREAK"][this.zpp_inner.event-2];a+=":"+this.zpp_inner.constraint.outer.toString();return a+=" : listener: "+w.string(this.zpp_inner.listener.outer)},__class__:ie});var je=function(){this.zpp_inner_zn=null};f["nape.callbacks.ConstraintListener"]=je;je.__name__=["nape","callbacks","ConstraintListener"];je.__super__=Ma;je.prototype=s(Ma.prototype,{__class__:je});var ke=function(){};f["nape.callbacks.InteractionCallback"]=ke;ke.__name__=["nape","callbacks","InteractionCallback"];ke.__super__=La;ke.prototype=s(La.prototype,{toString:function(){var a;a="Cb:"+"BEGIN,END,,,,,ONGOING".split(",")[this.zpp_inner.event];a+=":"+this.zpp_inner.int1.outer_i.toString()+"/"+this.zpp_inner.int2.outer_i.toString();a+=" : "+this.zpp_inner.wrap_arbiters.toString();return a+=" : listener: "+w.string(this.zpp_inner.listener.outer)},__class__:ke});var le=function(){this.zpp_inner_zn=null};f["nape.callbacks.InteractionListener"]=le;le.__name__=["nape","callbacks","InteractionListener"];le.__super__=Ma;le.prototype=s(Ma.prototype,{__class__:le});var Qb=function(){};f["nape.callbacks.InteractionType"]=Qb;Qb.__name__=["nape","callbacks","InteractionType"];Qb.prototype={toString:function(){var a;null==g.InteractionType_COLLISION&&(g.internal=!0,g.InteractionType_COLLISION=new Qb,g.internal=!1);this==g.InteractionType_COLLISION?a="COLLISION":(null==g.InteractionType_SENSOR&&(g.internal=!0,g.InteractionType_SENSOR=new Qb,g.internal=!1),this==g.InteractionType_SENSOR?a="SENSOR":(null==g.InteractionType_FLUID&&(g.internal=!0,g.InteractionType_FLUID=new Qb,g.internal=!1),this==g.InteractionType_FLUID?a="FLUID":(null==g.InteractionType_ANY&&(g.internal=!0,g.InteractionType_ANY=new Qb,g.internal=!1),a=this==g.InteractionType_ANY?"ANY":"")));return a},__class__:Qb};var Oa=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.callbacks.ListenerIterator"]=Oa;Oa.__name__=["nape","callbacks","ListenerIterator"];Oa.get=function(a){var b;null==Oa.zpp_pool?(ec.internal=!0,b=new Oa,ec.internal=!1):(b=Oa.zpp_pool,Oa.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};Oa.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=Oa.zpp_pool;Oa.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:Oa};var Re=function(){this.zpp_inner=null};f["nape.callbacks.ListenerList"]=Re;Re.__name__=["nape","callbacks","ListenerList"];Re.prototype={get_length:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&(a=this.get_length()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt.outer},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=Oa.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:Re};var Rb=function(){};f["nape.callbacks.ListenerType"]=Rb;Rb.__name__=["nape","callbacks","ListenerType"];Rb.prototype={toString:function(){var a;null==g.ListenerType_BODY&&(g.internal=!0,g.ListenerType_BODY=new Rb,g.internal=!1);this==g.ListenerType_BODY?a="BODY":(null==g.ListenerType_CONSTRAINT&&(g.internal=!0,g.ListenerType_CONSTRAINT=new Rb,g.internal=!1),this==g.ListenerType_CONSTRAINT?a="CONSTRAINT":(null==g.ListenerType_INTERACTION&&(g.internal=!0,g.ListenerType_INTERACTION=new Rb,g.internal=!1),this==g.ListenerType_INTERACTION?a="INTERACTION":(null==g.ListenerType_PRE&&(g.internal=!0,g.ListenerType_PRE=new Rb,g.internal=!1),a=this==g.ListenerType_PRE?"PRE":"")));return a},__class__:Rb};var Se=function(){this.zpp_inner=null};f["nape.callbacks.OptionType"]=Se;Se.__name__=["nape","callbacks","OptionType"];Se.prototype={toString:function(){null==this.zpp_inner.wrap_includes&&this.zpp_inner.setup_includes();var a=this.zpp_inner.wrap_includes.toString();null==this.zpp_inner.wrap_excludes&&this.zpp_inner.setup_excludes();return"@{"+a+" excluding "+this.zpp_inner.wrap_excludes.toString()+"}"},__class__:Se};var me=function(){};f["nape.callbacks.PreCallback"]=me;me.__name__=["nape","callbacks","PreCallback"];me.__super__=La;me.prototype=s(La.prototype,{toString:function(){var a;a="Cb:PRE:"+(":"+this.zpp_inner.int1.outer_i.toString()+"/"+this.zpp_inner.int2.outer_i.toString());a+=" : "+this.zpp_inner.pre_arbiter.wrapper().toString();return a+=" : listnener: "+w.string(this.zpp_inner.listener.outer)},__class__:me});var Pa=function(){};f["nape.callbacks.PreFlag"]=Pa;Pa.__name__=["nape","callbacks","PreFlag"];Pa.prototype={toString:function(){var a;null==g.PreFlag_ACCEPT&&(g.internal=!0,g.PreFlag_ACCEPT=new Pa,g.internal=!1);this==g.PreFlag_ACCEPT?a="ACCEPT":(null==g.PreFlag_IGNORE&&(g.internal=!0,g.PreFlag_IGNORE=new Pa,g.internal=!1),this==g.PreFlag_IGNORE?a="IGNORE":(null==g.PreFlag_ACCEPT_ONCE&&(g.internal=!0,g.PreFlag_ACCEPT_ONCE=new Pa,g.internal=!1),this==g.PreFlag_ACCEPT_ONCE?a="ACCEPT_ONCE":(null==g.PreFlag_IGNORE_ONCE&&(g.internal=!0,g.PreFlag_IGNORE_ONCE=new Pa,g.internal=!1),a=this==g.PreFlag_IGNORE_ONCE?"IGNORE_ONCE":"")));return a},__class__:Pa};var ne=function(){this.zpp_inner_zn=null};f["nape.callbacks.PreListener"]=ne;ne.__name__=["nape","callbacks","PreListener"];ne.__super__=Ma;ne.prototype=s(Ma.prototype,{__class__:ne});var Te=function(){};f["nape.constraint.Constraint"]=Te;Te.__name__=["nape","constraint","Constraint"];Te.prototype={toString:function(){return"{Constraint}"},__class__:Te};var Qa=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.constraint.ConstraintIterator"]=Qa;Qa.__name__=["nape","constraint","ConstraintIterator"];Qa.get=function(a){var b;null==Qa.zpp_pool?(fc.internal=!0,b=new Qa,fc.internal=!1):(b=Qa.zpp_pool,Qa.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};Qa.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=Qa.zpp_pool;Qa.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:Qa};var Ue=function(){this.zpp_inner=null};f["nape.constraint.ConstraintList"]=Ue;Ue.__name__=["nape","constraint","ConstraintList"];Ue.prototype={get_length:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&(a=this.get_length()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt.outer},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=Qa.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:Ue};var Cb=function(){this.zpp_inner=null};f["nape.dynamics.Arbiter"]=Cb;Cb.__name__=["nape","dynamics","Arbiter"];Cb.prototype={get_state:function(){var a=this.zpp_inner.immState;if(5==a)return null==g.PreFlag_ACCEPT&&(g.internal=!0,g.PreFlag_ACCEPT=new Pa,g.internal=!1),g.PreFlag_ACCEPT;switch(a){case 1:return null==g.PreFlag_ACCEPT_ONCE&&(g.internal=!0,g.PreFlag_ACCEPT_ONCE=new Pa,g.internal=!1),g.PreFlag_ACCEPT_ONCE;default:if(6==a)return null==g.PreFlag_IGNORE&&(g.internal=!0,g.PreFlag_IGNORE=new Pa,g.internal=!1),g.PreFlag_IGNORE;null==g.PreFlag_IGNORE_ONCE&&(g.internal=!0,g.PreFlag_IGNORE_ONCE=new Pa,g.internal=!1);return g.PreFlag_IGNORE_ONCE}},toString:function(){var a;a=this.zpp_inner.type==ma.COL?"CollisionArbiter":this.zpp_inner.type==ma.FLUID?"FluidArbiter":"SensorArbiter";return this.zpp_inner.cleared?a+"(object-pooled)":a+"("+(this.zpp_inner.ws1.id>this.zpp_inner.ws2.id?this.zpp_inner.ws2.outer:this.zpp_inner.ws1.outer).toString()+"|"+(this.zpp_inner.ws1.id>this.zpp_inner.ws2.id?this.zpp_inner.ws1.outer:this.zpp_inner.ws2.outer).toString()+")"+(this.zpp_inner.type==ma.COL?"["+["SD","DD"][this.zpp_inner.colarb.stat?0:1]+"]":"")+"<-"+this.get_state().toString()},__class__:Cb};var Ra=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.dynamics.ArbiterIterator"]=Ra;Ra.__name__=["nape","dynamics","ArbiterIterator"];Ra.get=function(a){var b;null==Ra.zpp_pool?(gc.internal=!0,b=new Ra,gc.internal=!1):(b=Ra.zpp_pool,Ra.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};Ra.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.zpp_gl();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=Ra.zpp_pool;Ra.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:Ra};var Ve=function(){this.zpp_inner=null};f["nape.dynamics.ArbiterList"]=Ve;Ve.__name__=["nape","dynamics","ArbiterList"];Ve.prototype={zpp_gl:function(){this.zpp_inner.valmod();if(this.zpp_inner.zip_length){this.zpp_inner.zip_length=!1;this.zpp_inner.user_length=0;for(var a=this.zpp_inner.inner.head;null!=a;)a.elt.active&&this.zpp_inner.user_length++,a=a.next}return this.zpp_inner.user_length},zpp_vm:function(){this.zpp_inner.valmod()},at:function(a){this.zpp_vm();this.zpp_inner.reverse_flag&&(a=this.zpp_gl()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite){this.zpp_inner.at_index=0;for(this.zpp_inner.at_ite=this.zpp_inner.inner.head;!this.zpp_inner.at_ite.elt.active;)this.zpp_inner.at_ite=this.zpp_inner.at_ite.next}for(;this.zpp_inner.at_index!=a;){this.zpp_inner.at_index++;for(this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;!this.zpp_inner.at_ite.elt.active;)this.zpp_inner.at_ite=this.zpp_inner.at_ite.next}return this.zpp_inner.at_ite.elt.wrapper()},iterator:function(){this.zpp_vm();return Ra.get(this)},toString:function(){for(var a="[",b=!0,c=this.iterator();c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:Ve};var hc=function(){};f["nape.dynamics.ArbiterType"]=hc;hc.__name__=["nape","dynamics","ArbiterType"];hc.prototype={toString:function(){var a;null==g.ArbiterType_COLLISION&&(g.internal=!0,g.ArbiterType_COLLISION=new hc,g.internal=!1);this==g.ArbiterType_COLLISION?a="COLLISION":(null==g.ArbiterType_SENSOR&&(g.internal=!0,g.ArbiterType_SENSOR=new hc,g.internal=!1),this==g.ArbiterType_SENSOR?a="SENSOR":(null==g.ArbiterType_FLUID&&(g.internal=!0,g.ArbiterType_FLUID=new hc,g.internal=!1),a=this==g.ArbiterType_FLUID?"FLUID":""));return a},__class__:hc};var od=function(){this.zpp_inner=null};f["nape.dynamics.CollisionArbiter"]=od;od.__name__=["nape","dynamics","CollisionArbiter"];od.__super__=Cb;od.prototype=s(Cb.prototype,{__class__:od});var oe=function(){this.zpp_inner=null};f["nape.dynamics.Contact"]=oe;oe.__name__=["nape","dynamics","Contact"];oe.prototype={toString:function(){return null==this.zpp_inner.arbiter||this.zpp_inner.arbiter.cleared?"{object-pooled}":"{Contact}"},__class__:oe};var Sa=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.dynamics.ContactIterator"]=Sa;Sa.__name__=["nape","dynamics","ContactIterator"];Sa.get=function(a){var b;null==Sa.zpp_pool?(ic.internal=!0,b=new Sa,ic.internal=!1):(b=Sa.zpp_pool,Sa.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};Sa.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=Sa.zpp_pool;Sa.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:Sa};var We=function(){this.zpp_inner=null};f["nape.dynamics.ContactList"]=We;We.__name__=["nape","dynamics","ContactList"];We.prototype={get_length:function(){this.zpp_inner.valmod();if(this.zpp_inner.zip_length){this.zpp_inner.zip_length=!1;this.zpp_inner.user_length=0;for(var a=this.zpp_inner.inner.next;null!=a;){var b=a;b.active&&b.arbiter.active&&this.zpp_inner.user_length++;a=a.next}}return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&(a=this.get_length()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite){this.zpp_inner.at_index=0;for(this.zpp_inner.at_ite=this.zpp_inner.inner.next;;){var b=this.zpp_inner.at_ite;if(b.active&&b.arbiter.active)break;this.zpp_inner.at_ite=this.zpp_inner.at_ite.next}}for(;this.zpp_inner.at_index!=a;){this.zpp_inner.at_index++;for(this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;;){b=this.zpp_inner.at_ite;if(b.active&&b.arbiter.active)break;this.zpp_inner.at_ite=this.zpp_inner.at_ite.next}}return this.zpp_inner.at_ite.wrapper()},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=Sa.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:We};var pd=function(){this.zpp_inner=null};f["nape.dynamics.FluidArbiter"]=pd;pd.__name__=["nape","dynamics","FluidArbiter"];pd.__super__=Cb;pd.prototype=s(Cb.prototype,{__class__:pd});var Xe=function(){};f["nape.dynamics.InteractionFilter"]=Xe;Xe.__name__=["nape","dynamics","InteractionFilter"];Xe.prototype={__class__:Xe};var Ye=function(){this.zpp_inner=null};f["nape.dynamics.InteractionGroup"]=Ye;Ye.__name__=["nape","dynamics","InteractionGroup"];Ye.prototype={toString:function(){var a="InteractionGroup";this.zpp_inner.ignore&&(a+=":ignore");return a},__class__:Ye};var Ta=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.dynamics.InteractionGroupIterator"]=Ta;Ta.__name__=["nape","dynamics","InteractionGroupIterator"];Ta.get=function(a){var b;null==Ta.zpp_pool?(jc.internal=!0,b=new Ta,jc.internal=!1):(b=Ta.zpp_pool,Ta.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};Ta.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=Ta.zpp_pool;Ta.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:Ta};var Ze=function(){this.zpp_inner=null};f["nape.dynamics.InteractionGroupList"]=Ze;Ze.__name__=["nape","dynamics","InteractionGroupList"];Ze.prototype={get_length:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&(a=this.get_length()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt.outer},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=Ta.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:Ze};var $e=function(){this.zpp_inner=null};f["nape.geom.AABB"]=$e;$e.__name__=["nape","geom","AABB"];$e.prototype={toString:function(){this.zpp_inner.validate();return this.zpp_inner.toString()},__class__:$e};var af=function(){this.zpp_inner=null};f["nape.geom.ConvexResult"]=af;af.__name__=["nape","geom","ConvexResult"];af.prototype={toString:function(){return"{ shape: "+w.string(this.zpp_inner.shape)+" toi: "+this.zpp_inner.toiDistance+" }"},__class__:af};var Ua=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.geom.ConvexResultIterator"]=Ua;Ua.__name__=["nape","geom","ConvexResultIterator"];Ua.get=function(a){var b;null==Ua.zpp_pool?(kc.internal=!0,b=new Ua,kc.internal=!1):(b=Ua.zpp_pool,Ua.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};Ua.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=Ua.zpp_pool;Ua.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:Ua};var bf=function(){this.zpp_inner=null};f["nape.geom.ConvexResultList"]=bf;bf.__name__=["nape","geom","ConvexResultList"];bf.prototype={get_length:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&(a=this.get_length()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=Ua.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:bf};var cf=function(){this.zpp_inner=null};f["nape.geom.GeomPoly"]=cf;cf.__name__=["nape","geom","GeomPoly"];cf.prototype={toString:function(){var a="GeomPoly[",b=this.zpp_inner.vertices,c=this.zpp_inner.vertices;if(null!=b){do{var e=b;e!=this.zpp_inner.vertices&&(a+=",");a+="{"+ e.x+","+e.y+"}";b=b.next}while(b!=c)}return a+"]"},__class__:cf};var Va=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.geom.GeomPolyIterator"]=Va;Va.__name__=["nape","geom","GeomPolyIterator"];Va.get=function(a){var b;null==Va.zpp_pool?(lc.internal=!0,b=new Va,lc.internal=!1):(b=Va.zpp_pool,Va.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};Va.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=Va.zpp_pool;Va.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:Va};var df=function(){this.zpp_inner=null};f["nape.geom.GeomPolyList"]=df;df.__name__=["nape","geom","GeomPolyList"];df.prototype={get_length:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&(a=this.get_length()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt.outer},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=Va.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:df};var ef=function(){this.zpp_inner=null};f["nape.geom.Mat23"]=ef;ef.__name__=["nape","geom","Mat23"];ef.prototype={toString:function(){return"{ a: "+this.zpp_inner.a+" b: "+this.zpp_inner.b+" c: "+this.zpp_inner.c+" d: "+this.zpp_inner.d+" tx: "+this.zpp_inner.tx+" ty: "+this.zpp_inner.ty+" }"},__class__:ef};var ff=function(){this.zpp_inner=null};f["nape.geom.MatMN"]=ff;ff.__name__=["nape","geom","MatMN"];ff.prototype={toString:function(){for(var a="{ ",b=!0,c=0,e=this.zpp_inner.m;c<e;){var d=c++;b||(a+="; ");for(var b=!1,f=0,g=this.zpp_inner.n;f<g;)var h=f++,a=a+(this.zpp_inner.x[d*this.zpp_inner.n+h]+" ")}return a+"}"},__class__:ff};var gf=function(){this.zpp_inner=null};f["nape.geom.RayResult"]=gf;gf.__name__=["nape","geom","RayResult"];gf.prototype={toString:function(){return"{ shape: "+w.string(this.zpp_inner.shape)+" distance: "+this.zpp_inner.toiDistance+" ?inner: "+w.string(this.zpp_inner.inner)+ " }"},__class__:gf};var Wa=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.geom.RayResultIterator"]=Wa;Wa.__name__=["nape","geom","RayResultIterator"];Wa.get=function(a){var b;null==Wa.zpp_pool?(mc.internal=!0,b=new Wa,mc.internal=!1):(b=Wa.zpp_pool,Wa.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};Wa.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=Wa.zpp_pool;Wa.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:Wa};var hf=function(){this.zpp_inner=null};f["nape.geom.RayResultList"]=hf;hf.__name__=["nape","geom","RayResultList"];hf.prototype={get_length:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&(a=this.get_length()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=Wa.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:hf};var pe=function(a,b){null==b&&(b=0);null==a&&(a=0);this.zpp_inner=null;this.zpp_inner=Xa.get(a,b,null);this.zpp_inner.outer=this};f["nape.geom.Vec2"]=pe;pe.__name__=["nape","geom","Vec2"];pe.prototype={toString:function(){this.zpp_inner.validate();return this.zpp_inner.toString()},__class__:pe};var Ya=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.geom.Vec2Iterator"]=Ya;Ya.__name__=["nape","geom","Vec2Iterator"];Ya.get=function(a){var b;null==Ya.zpp_pool?(nc.internal=!0,b=new Ya,nc.internal=!1):(b=Ya.zpp_pool,Ya.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};Ya.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.zpp_gl();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=Ya.zpp_pool;Ya.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:Ya};var jf=function(){this.zpp_inner=null};f["nape.geom.Vec2List"]=jf;jf.__name__=["nape","geom","Vec2List"];jf.prototype={zpp_gl:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},zpp_vm:function(){this.zpp_inner.valmod()},at:function(a){this.zpp_vm();this.zpp_inner.reverse_flag&&(a=this.zpp_gl()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt.wrapper()},iterator:function(){this.zpp_vm();return Ya.get(this)},toString:function(){for(var a="[",b=!0,c=this.iterator();c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:jf};var kf=function(){this.zpp_inner=null};f["nape.geom.Vec3"]=kf;kf.__name__=["nape","geom","Vec3"];kf.prototype={toString:function(){this.zpp_inner.validate();var a="{ x: "+this.zpp_inner.x+" y: ";this.zpp_inner.validate();a=a+this.zpp_inner.y+" z: ";this.zpp_inner.validate();return a+this.zpp_inner.z+" }"},__class__:kf};var oc=function(){};f["nape.geom.Winding"]=oc;oc.__name__=["nape","geom","Winding"];oc.prototype={toString:function(){var a;null==g.Winding_UNDEFINED&&(g.internal=!0,g.Winding_UNDEFINED=new oc,g.internal=!1);this==g.Winding_UNDEFINED?a="UNDEFINED":(null==g.Winding_CLOCKWISE&&(g.internal=!0,g.Winding_CLOCKWISE=new oc,g.internal=!1),this==g.Winding_CLOCKWISE?a="CLOCKWISE":(null==g.Winding_ANTICLOCKWISE&&(g.internal=!0,g.Winding_ANTICLOCKWISE=new oc,g.internal=!1),a=this==g.Winding_ANTICLOCKWISE?"ANTICLOCKWISE":""));return a},__class__:oc};var nb=function(){this.zpp_inner_i=null};f["nape.phys.Interactor"]=nb;nb.__name__=["nape","phys","Interactor"];nb.prototype={toString:function(){return""},__class__:nb};var qe=function(){this.zpp_inner=null};f["nape.phys.Body"]=qe;qe.__name__=["nape","phys","Body"];qe.__super__=nb;qe.prototype=s(nb.prototype,{toString:function(){return(this.zpp_inner.world?"(space::world":"("+(2==this.zpp_inner.type?"dynamic":1==this.zpp_inner.type?"static":"kinematic"))+")#"+this.zpp_inner_i.id},__class__:qe});var Za=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.phys.BodyIterator"]=Za;Za.__name__=["nape","phys","BodyIterator"];Za.get=function(a){var b;null==Za.zpp_pool?(pc.internal=!0,b=new Za,pc.internal=!1):(b=Za.zpp_pool,Za.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};Za.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=Za.zpp_pool;Za.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:Za};var lf=function(){this.zpp_inner=null};f["nape.phys.BodyList"]=lf;lf.__name__=["nape","phys","BodyList"];lf.prototype={get_length:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&(a=this.get_length()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt.outer},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=Za.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:lf};var qc=function(){};f["nape.phys.BodyType"]=qc;qc.__name__=["nape","phys","BodyType"];qc.prototype={toString:function(){var a;null==g.BodyType_STATIC&&(g.internal=!0,g.BodyType_STATIC=new qc,g.internal=!1);this==g.BodyType_STATIC?a="STATIC":(null==g.BodyType_DYNAMIC&&(g.internal=!0,g.BodyType_DYNAMIC=new qc,g.internal=!1),this==g.BodyType_DYNAMIC?a="DYNAMIC":(null==g.BodyType_KINEMATIC&&(g.internal=!0,g.BodyType_KINEMATIC=new qc,g.internal=!1),a=this==g.BodyType_KINEMATIC?"KINEMATIC":""));return a},__class__:qc};var re=function(){};f["nape.phys.Compound"]=re;re.__name__=["nape","phys","Compound"];re.__super__=nb;re.prototype=s(nb.prototype,{toString:function(){return"Compound"+ this.zpp_inner_i.id},__class__:re});var $a=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.phys.CompoundIterator"]=$a;$a.__name__=["nape","phys","CompoundIterator"];$a.get=function(a){var b;null==$a.zpp_pool?(rc.internal=!0,b=new $a,rc.internal=!1):(b=$a.zpp_pool,$a.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};$a.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=$a.zpp_pool;$a.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:$a};var mf=function(){this.zpp_inner=null};f["nape.phys.CompoundList"]=mf;mf.__name__=["nape","phys","CompoundList"];mf.prototype={get_length:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&(a=this.get_length()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt.outer},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=$a.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:mf};var nf=function(){this.zpp_inner=null};f["nape.phys.FluidProperties"]=nf;nf.__name__=["nape","phys","FluidProperties"];nf.prototype={toString:function(){return"{ density: "+1E3*this.zpp_inner.density+" viscosity: "+this.zpp_inner.viscosity+" gravity: "+w.string(this.zpp_inner.wrap_gravity)+" }"},__class__:nf};var sc=function(){};f["nape.phys.GravMassMode"]=sc;sc.__name__=["nape","phys","GravMassMode"];sc.prototype={toString:function(){var a;null==g.GravMassMode_DEFAULT&&(g.internal=!0,g.GravMassMode_DEFAULT=new sc,g.internal=!1);this==g.GravMassMode_DEFAULT?a="DEFAULT":(null==g.GravMassMode_FIXED&&(g.internal=!0,g.GravMassMode_FIXED=new sc,g.internal=!1),this==g.GravMassMode_FIXED?a="FIXED":(null==g.GravMassMode_SCALED&&(g.internal=!0,g.GravMassMode_SCALED=new sc,g.internal=!1),a=this==g.GravMassMode_SCALED?"SCALED":""));return a},__class__:sc};var qd=function(){};f["nape.phys.InertiaMode"]=qd;qd.__name__=["nape","phys","InertiaMode"];qd.prototype={toString:function(){var a;null==g.InertiaMode_DEFAULT&&(g.internal=!0,g.InertiaMode_DEFAULT=new qd,g.internal=!1);this==g.InertiaMode_DEFAULT?a="DEFAULT":(null==g.InertiaMode_FIXED&&(g.internal=!0,g.InertiaMode_FIXED=new qd,g.internal=!1),a=this==g.InertiaMode_FIXED?"FIXED":"");return a},__class__:qd};var ab=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.phys.InteractorIterator"]=ab;ab.__name__=["nape","phys","InteractorIterator"];ab.get=function(a){var b;null==ab.zpp_pool?(tc.internal=!0,b=new ab,tc.internal=!1):(b=ab.zpp_pool,ab.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};ab.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=ab.zpp_pool;ab.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:ab};var of=function(){this.zpp_inner=null};f["nape.phys.InteractorList"]=of;of.__name__=["nape","phys","InteractorList"];of.prototype={get_length:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&(a=this.get_length()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt.outer_i},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=ab.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:of};var rd=function(){};f["nape.phys.MassMode"]=rd;rd.__name__=["nape","phys","MassMode"];rd.prototype={toString:function(){var a;null==g.MassMode_DEFAULT&&(g.internal=!0,g.MassMode_DEFAULT=new rd,g.internal=!1);this==g.MassMode_DEFAULT?a="DEFAULT":(null==g.MassMode_FIXED&&(g.internal=!0,g.MassMode_FIXED=new rd,g.internal=!1),a=this==g.MassMode_FIXED?"FIXED":"");return a},__class__:rd};var pf=function(){this.zpp_inner=null};f["nape.phys.Material"]=pf;pf.__name__=["nape","phys","Material"];pf.prototype={toString:function(){return"{ elasticity: "+this.zpp_inner.elasticity+ " dynamicFriction: "+this.zpp_inner.dynamicFriction+" staticFriction: "+this.zpp_inner.staticFriction+" density: "+1E3*this.zpp_inner.density+" rollingFriction: "+this.zpp_inner.rollingFriction+" }"},__class__:pf};var Db=function(){this.zpp_inner=null};f["nape.shape.Shape"]=Db;Db.__name__=["nape","shape","Shape"];Db.__super__=nb;Db.prototype=s(nb.prototype,{toString:function(){return(0==this.zpp_inner.type?"Circle":"Polygon")+"#"+this.zpp_inner_i.id},__class__:Db});var se=function(){};f["nape.shape.Circle"]=se;se.__name__=["nape","shape","Circle"];se.__super__=Db;se.prototype=s(Db.prototype,{__class__:se});var te=function(){this.zpp_inner=null};f["nape.shape.Edge"]=te;te.__name__=["nape","shape","Edge"];te.prototype={toString:function(){if(null==this.zpp_inner.polygon)return"Edge(object-pooled)";if(null==this.zpp_inner.polygon.body)return this.zpp_inner.polygon.validate_laxi(),"{ localNormal : "+("{ x: "+this.zpp_inner.lnormx+" y: "+this.zpp_inner.lnormy+" }")+" }";this.zpp_inner.polygon.validate_gaxi();return"{ localNormal : "+("{ x: "+this.zpp_inner.lnormx+" y: "+this.zpp_inner.lnormy+" }")+" worldNormal : "+("{ x: "+this.zpp_inner.gnormx+" y: "+this.zpp_inner.gnormy+" }")+" }"},__class__:te};var bb=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.shape.EdgeIterator"]=bb;bb.__name__=["nape","shape","EdgeIterator"];bb.get=function(a){var b;null==bb.zpp_pool?(uc.internal=!0,b=new bb,uc.internal=!1):(b=bb.zpp_pool,bb.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};bb.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=bb.zpp_pool;bb.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:bb};var qf=function(){this.zpp_inner=null};f["nape.shape.EdgeList"]=qf;qf.__name__=["nape","shape","EdgeList"];qf.prototype={get_length:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&a!=this.get_length()-1&&(a=this.get_length()-2-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt.wrapper()},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=bb.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:qf};var ue=function(){};f["nape.shape.Polygon"]=ue;ue.__name__=["nape","shape","Polygon"];ue.__super__=Db;ue.prototype=s(Db.prototype,{__class__:ue});var cb=function(){this.zpp_next=null;this.zpp_critical=!1;this.zpp_i=0;this.zpp_inner=null};f["nape.shape.ShapeIterator"]=cb;cb.__name__=["nape","shape","ShapeIterator"];cb.get=function(a){var b;null==cb.zpp_pool?(vc.internal=!0,b=new cb,vc.internal=!1):(b=cb.zpp_pool,cb.zpp_pool=b.zpp_next);b.zpp_i=0;b.zpp_inner=a;b.zpp_critical=!1;return b};cb.prototype={hasNext:function(){this.zpp_inner.zpp_inner.valmod();var a=this.zpp_inner.get_length();this.zpp_critical=!0;if(this.zpp_i<a)return!0;this.zpp_next=cb.zpp_pool;cb.zpp_pool=this;this.zpp_inner=null;return!1},next:function(){this.zpp_critical=!1;return this.zpp_inner.at(this.zpp_i++)},__class__:cb};var rf=function(){this.zpp_inner=null};f["nape.shape.ShapeList"]=rf;rf.__name__=["nape","shape","ShapeList"];rf.prototype={get_length:function(){this.zpp_inner.valmod();this.zpp_inner.zip_length&&(this.zpp_inner.zip_length=!1,this.zpp_inner.user_length=this.zpp_inner.inner.length);return this.zpp_inner.user_length},at:function(a){this.zpp_inner.valmod();this.zpp_inner.reverse_flag&&(a=this.get_length()-1-a);if(a<this.zpp_inner.at_index||null==this.zpp_inner.at_ite)this.zpp_inner.at_index=a,this.zpp_inner.at_ite=this.zpp_inner.inner.iterator_at(a);else for(;this.zpp_inner.at_index!=a;)this.zpp_inner.at_index++,this.zpp_inner.at_ite=this.zpp_inner.at_ite.next;return this.zpp_inner.at_ite.elt.outer},toString:function(){var a="[",b=!0,c;this.zpp_inner.valmod();for(c=cb.get(this);c.hasNext();){var e;c.zpp_critical=!1;e=c.zpp_inner.at(c.zpp_i++);b||(a+=",");a=null==e?a+"NULL":a+e.toString();b=!1}return a+"]"},__class__:rf};var sd=function(){};f["nape.shape.ShapeType"]=sd;sd.__name__=["nape","shape","ShapeType"];sd.prototype={toString:function(){var a;null==g.ShapeType_CIRCLE&&(g.internal=!0,g.ShapeType_CIRCLE=new sd,g.internal=!1);this==g.ShapeType_CIRCLE?a="CIRCLE":(null==g.ShapeType_POLYGON&&(g.internal=!0,g.ShapeType_POLYGON=new sd,g.internal=!1),a=this==g.ShapeType_POLYGON?"POLYGON":"");return a},__class__:sd};var Sb=function(){};f["nape.shape.ValidationResult"]=Sb;Sb.__name__=["nape","shape","ValidationResult"];Sb.prototype={toString:function(){var a;null==g.ValidationResult_VALID&&(g.internal=!0,g.ValidationResult_VALID=new Sb,g.internal=!1);this==g.ValidationResult_VALID?a="VALID":(null==g.ValidationResult_DEGENERATE&&(g.internal=!0,g.ValidationResult_DEGENERATE=new Sb,g.internal=!1),this==g.ValidationResult_DEGENERATE?a="DEGENERATE":(null==g.ValidationResult_CONCAVE&&(g.internal=!0,g.ValidationResult_CONCAVE=new Sb,g.internal=!1),this==g.ValidationResult_CONCAVE?a="CONCAVE":(null==g.ValidationResult_SELF_INTERSECTING&&(g.internal=!0,g.ValidationResult_SELF_INTERSECTING=new Sb,g.internal=!1),a=this==g.ValidationResult_SELF_INTERSECTING?"SELF_INTERSECTING":"")));return a},__class__:Sb};var td=function(){};f["nape.space.Broadphase"]=td;td.__name__=["nape","space","Broadphase"];td.prototype={toString:function(){var a;null==g.Broadphase_DYNAMIC_AABB_TREE&&(g.internal=!0,g.Broadphase_DYNAMIC_AABB_TREE=new td,g.internal=!1);this==g.Broadphase_DYNAMIC_AABB_TREE?a="DYNAMIC_AABB_TREE":(null==g.Broadphase_SWEEP_AND_PRUNE&&(g.internal=!0,g.Broadphase_SWEEP_AND_PRUNE=new td,g.internal=!1),a=this==g.Broadphase_SWEEP_AND_PRUNE?"SWEEP_AND_PRUNE":"");return a},__class__:td};var sf=function(){};f["nape.space.Space"]=sf;sf.__name__=["nape","space","Space"];sf.prototype={__class__:sf};var ud=function(){};f["zpp_nape.ZPP_ID"]=ud;ud.__name__=["zpp_nape","ZPP_ID"];ud.CbType=function(){return ud._CbType++};var tf=function(){this.listener=this.int1=this.int2=this.wrap_arbiters=this.pre_arbiter=this.body=this.constraint=null;this.event=0};f["zpp_nape.callbacks.ZPP_Callback"]=tf;tf.__name__=["zpp_nape","callbacks","ZPP_Callback"];tf.prototype={__class__:tf};var ve=function(){};f["zpp_nape.util.ZNPList_ZPP_InteractionListener"]=ve;ve.__name__=["zpp_nape","util","ZNPList_ZPP_InteractionListener"];ve.prototype={__class__:ve};var we=function(){};f["zpp_nape.util.ZNPList_ZPP_BodyListener"]=we;we.__name__=["zpp_nape","util","ZNPList_ZPP_BodyListener"];we.prototype={__class__:we};var xe=function(){};f["zpp_nape.util.ZNPList_ZPP_ConstraintListener"]=xe;xe.__name__=["zpp_nape","util","ZNPList_ZPP_ConstraintListener"];xe.prototype={__class__:xe};var ye=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ZPP_Constraint"]=ye;ye.__name__=["zpp_nape","util","ZNPList_ZPP_Constraint"];ye.prototype={iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:ye};var ze=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ZPP_Interactor"]=ze;ze.__name__=["zpp_nape","util","ZNPList_ZPP_Interactor"];ze.prototype={iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:ze};var Ae=function(){};f["zpp_nape.util.ZNPList_ZPP_CbSet"]=Ae;Ae.__name__=["zpp_nape","util","ZNPList_ZPP_CbSet"];Ae.prototype={__class__:Ae};var Ea=function(){this.cbsets=this.listeners=this.bodylisteners=this.conlisteners=null;this.id=0;this.outer=null;this.id=ud.CbType();this.listeners=new ve;this.bodylisteners=new we;this.conlisteners=new xe;this.constraints=new ye;this.interactors=new ze;this.cbsets=new Ae};f["zpp_nape.callbacks.ZPP_CbType"]=Ea;Ea.__name__=["zpp_nape","callbacks","ZPP_CbType"];Ea.prototype={__class__:Ea};var g=function(){};f["zpp_nape.util.ZPP_Flags"]=g;g.__name__=["zpp_nape","util","ZPP_Flags"];var ob=function(){this.body=this.constraint=this.interaction=null;this.type=this.event=this.precedence=0;this.outer=null};f["zpp_nape.callbacks.ZPP_Listener"]=ob;ob.__name__=["zpp_nape","callbacks","ZPP_Listener"];ob.prototype={__class__:ob};var Be=function(){this.outer_zn=this.options=null};f["zpp_nape.callbacks.ZPP_BodyListener"]=Be;Be.__name__=["zpp_nape","callbacks","ZPP_BodyListener"];Be.__super__=ob;Be.prototype=s(ob.prototype,{__class__:Be});var Ce=function(){this.outer_zn=this.options=null};f["zpp_nape.callbacks.ZPP_ConstraintListener"]=Ce;Ce.__name__=["zpp_nape","callbacks","ZPP_ConstraintListener"];Ce.__super__=ob;Ce.prototype=s(ob.prototype,{__class__:Ce});var De=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ZPP_CbType"]=De;De.__name__=["zpp_nape","util","ZNPList_ZPP_CbType"];De.prototype={iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:De};var Ee=function(){this.options1=this.options2=null;this.itype=0;this.outer_zni=this.outer_znp=null};f["zpp_nape.callbacks.ZPP_InteractionListener"]=Ee;Ee.__name__=["zpp_nape","callbacks","ZPP_InteractionListener"];Ee.__super__=ob;Ee.prototype=s(ob.prototype,{__class__:Ee});var uf=function(){this.outer=this.includes=this.excludes=this.wrap_includes=this.wrap_excludes=null};f["zpp_nape.callbacks.ZPP_OptionType"]=uf;uf.__name__=["zpp_nape","callbacks","ZPP_OptionType"];uf.prototype={setup_includes:function(){this.wrap_includes=gb.get(this.includes,!0)},setup_excludes:function(){this.wrap_excludes=gb.get(this.excludes,!0)},__class__:uf};var vf=function(){this.outer=null};f["zpp_nape.constraint.ZPP_Constraint"]=vf;vf.__name__=["zpp_nape","constraint","ZPP_Constraint"];vf.prototype={__class__:vf};var ma=function(){this.colarb=this.fluidarb=null;this.type=0;this.ws1=this.ws2=null;this.immState=0;this.active=this.cleared=!1;this.outer=null};f["zpp_nape.dynamics.ZPP_Arbiter"]=ma;ma.__name__=["zpp_nape","dynamics","ZPP_Arbiter"];ma.prototype={wrapper:function(){null==this.outer&&(ma.internal=!0,this.type==ma.COL?(this.colarb.outer_zn=new od,this.outer=this.colarb.outer_zn):this.type==ma.FLUID?(this.fluidarb.outer_zn=new pd,this.outer=this.fluidarb.outer_zn):this.outer=new Cb,this.outer.zpp_inner=this,ma.internal=!1);return this.outer},__class__:ma};var Fe=function(){this.outer_zn=null};f["zpp_nape.dynamics.ZPP_FluidArbiter"]=Fe;Fe.__name__=["zpp_nape","dynamics","ZPP_FluidArbiter"];Fe.__super__=ma;Fe.prototype=s(ma.prototype,{__class__:Fe});var Ge=function(){this.stat=!1;this.outer_zn=null};f["zpp_nape.dynamics.ZPP_ColArbiter"]=Ge;Ge.__name__=["zpp_nape","dynamics","ZPP_ColArbiter"];Ge.__super__=ma;Ge.prototype=s(ma.prototype,{__class__:Ge});var wc=function(){this.modified=this.pushmod=!1;this.next=null;this.active=!1;this.outer=this.arbiter=null};f["zpp_nape.dynamics.ZPP_Contact"]=wc;wc.__name__=["zpp_nape","dynamics","ZPP_Contact"];wc.prototype={wrapper:function(){null==this.outer&&(wc.internal=!0,this.outer=new oe,wc.internal=!1,this.outer.zpp_inner=this);return this.outer},__class__:wc};var wf=function(){this.ignore=!1;this.outer=null};f["zpp_nape.dynamics.ZPP_InteractionGroup"]=wf;wf.__name__=["zpp_nape","dynamics","ZPP_InteractionGroup"];wf.prototype={__class__:wf};var xf=function(){this.minx=this.miny=this.maxx=this.maxy=0;this._validate=null};f["zpp_nape.geom.ZPP_AABB"]=xf;xf.__name__=["zpp_nape","geom","ZPP_AABB"];xf.prototype={validate:function(){null!=this._validate&&this._validate()},toString:function(){return"{ x: "+this.minx+" y: "+this.miny+" w: "+(this.maxx-this.minx)+" h: "+(this.maxy-this.miny)+" }"},__class__:xf};var yf=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ZPP_Vec2"]=yf;yf.__name__=["zpp_nape","util","ZNPList_ZPP_Vec2"];yf.prototype={iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:yf};var zf=function(){this.toiDistance=0;this.inner=!1;this.shape=null};f["zpp_nape.geom.ZPP_ConvexRayResult"]=zf;zf.__name__=["zpp_nape","geom","ZPP_ConvexRayResult"];zf.prototype={__class__:zf};var Af=function(){this.next=null;this.x=this.y=0};f["zpp_nape.geom.ZPP_GeomVert"]=Af;Af.__name__=["zpp_nape","geom","ZPP_GeomVert"];Af.prototype={__class__:Af};var Bf=function(){this.outer=this.vertices=null};f["zpp_nape.geom.ZPP_GeomPoly"]=Bf;Bf.__name__=["zpp_nape","geom","ZPP_GeomPoly"];Bf.prototype={__class__:Bf};var Cf=function(){this.a=this.b=this.c=this.d=this.tx=this.ty=0};f["zpp_nape.geom.ZPP_Mat23"]=Cf;Cf.__name__=["zpp_nape","geom","ZPP_Mat23"];Cf.prototype={__class__:Cf};var Df=function(){this.x=null;this.m=this.n=0};f["zpp_nape.geom.ZPP_MatMN"]=Df;Df.__name__=["zpp_nape","geom","ZPP_MatMN"];Df.prototype={__class__:Df};var Xa=function(){this.length=this.x=this.y=0;this.modified=this.pushmod=!1;this.next=null;this.weak=!1;this._isimmutable=this.outer=null;this._immutable=!1;this._invalidate=this._validate=null};f["zpp_nape.geom.ZPP_Vec2"]=Xa;Xa.__name__=["zpp_nape","geom","ZPP_Vec2"];Xa.get=function(a,b,c){null==c&&(c=!1);var e;null==Xa.zpp_pool?e=new Xa:(e=Xa.zpp_pool,Xa.zpp_pool=e.next,e.next=null);e.weak=!1;e._immutable=c;e.x=a;e.y=b;return e};Xa.prototype={validate:function(){null!=this._validate&&this._validate()},wrapper:function(){if(null==this.outer){this.outer=new pe;var a=this.outer.zpp_inner;null!=a.outer&&(a.outer.zpp_inner=null,a.outer=null);a._isimmutable=null;a._validate=null;a._invalidate=null;a.next=Xa.zpp_pool;Xa.zpp_pool=a;this.outer.zpp_inner=this}return this.outer},reverse:function(){for(var a=this.next,b=null;null!=a;){var c=a.next;a.next=b;b=this.next=a;a=c}this.pushmod=this.modified=!0},toString:function(){return"{ x: "+this.x+" y: "+this.y+" }"},__class__:Xa};var Ef=function(){this._validate=null;this.x=this.y=this.z=0};f["zpp_nape.geom.ZPP_Vec3"]=Ef;Ef.__name__=["zpp_nape","geom","ZPP_Vec3"];Ef.prototype={validate:function(){null!=this._validate&&this._validate()},__class__:Ef};var pb=function(){this.id=0;this.outer_i=null};f["zpp_nape.phys.ZPP_Interactor"]=pb;pb.__name__=["zpp_nape","phys","ZPP_Interactor"];pb.prototype={__class__:pb};var He=function(){this.zip_axis=!1;this.type=this.posx=this.posy=this.rot=this.axisx=this.axisy=0;this.world=!1;this.outer=null};f["zpp_nape.phys.ZPP_Body"]=He;He.__name__=["zpp_nape","phys","ZPP_Body"];He.__super__=pb;He.prototype=s(pb.prototype,{validate_axis:function(){this.zip_axis&&(this.zip_axis=!1,this.axisx=Math.sin(this.rot),this.axisy=Math.cos(this.rot),null)},__class__:He});var Ie=function(){this.outer=null};f["zpp_nape.phys.ZPP_Compound"]=Ie;Ie.__name__=["zpp_nape","phys","ZPP_Compound"];Ie.__super__=pb;Ie.prototype=s(pb.prototype,{__class__:Ie});var Ff=function(){this.wrap_gravity=null;this.viscosity=this.density=0};f["zpp_nape.phys.ZPP_FluidProperties"]=Ff;Ff.__name__=["zpp_nape","phys","ZPP_FluidProperties"];Ff.prototype={__class__:Ff};var Gf=function(){this.dynamicFriction=this.staticFriction=this.density=this.elasticity=this.rollingFriction=0};f["zpp_nape.phys.ZPP_Material"]=Gf;Gf.__name__=["zpp_nape","phys","ZPP_Material"];Gf.prototype={__class__:Gf};var Eb=function(){this.circle=this.polygon=null;this.inertia=this.localCOMx=this.localCOMy=0;this.zip_area_inertia=!1;this.type=this.area=0;this.outer=this.body=null};f["zpp_nape.shape.ZPP_Shape"]=Eb;Eb.__name__=["zpp_nape","shape","ZPP_Shape"];Eb.__super__=pb;Eb.prototype=s(pb.prototype,{validate_area_inertia:function(){this.zip_area_inertia&&(this.zip_area_inertia=!1,0==this.type?this.circle.__validate_area_inertia():this.polygon.__validate_area_inertia())},__class__:Eb});var Je=function(){this.radius=0};f["zpp_nape.shape.ZPP_Circle"]=Je;Je.__name__=["zpp_nape","shape","ZPP_Circle"];Je.__super__=Eb;Je.prototype=s(Eb.prototype,{__validate_area_inertia:function(){var a=this.radius*this.radius;this.area=a*Math.PI;this.inertia=0.5*a+(this.localCOMx*this.localCOMx+this.localCOMy*this.localCOMy)},__class__:Je});var xc=function(){this.tp0=this.tp1=0;this.lp0=this.gp0=this.lp1=this.gp1=null;this.length=this.lprojection=this.gprojection=0;this.wrap_gnorm=null;this.gnormx=this.gnormy=0;this.wrap_lnorm=null;this.lnormx=this.lnormy=0;this.polygon=this.outer=null};f["zpp_nape.shape.ZPP_Edge"]=xc;xc.__name__=["zpp_nape","shape","ZPP_Edge"];xc.prototype={wrapper:function(){null==this.outer&&(xc.internal=!0,this.outer=new te,xc.internal=!1,this.outer.zpp_inner=this);return this.outer},__class__:xc};var Ke=function(){this.reverse_flag=this.zip_lverts=this.zip_laxi=this.zip_gverts=this.zip_gaxi=!1;this.edgeCnt=0;this.lverts=this.wrap_lverts=this.gverts=this.wrap_gverts=this.edges=this.wrap_edges=null};f["zpp_nape.shape.ZPP_Polygon"]=Ke;Ke.__name__=["zpp_nape","shape","ZPP_Polygon"];Ke.__super__=Eb;Ke.prototype=s(Eb.prototype,{validate_lverts:function(){this.zip_lverts&&(this.zip_lverts=!1,2<this.lverts.length&&(this.validate_area_inertia(),0>this.area&&(this.reverse_vertices(),this.area=-this.area)))},reverse_vertices:function(){this.lverts.reverse();this.gverts.reverse();this.edges.reverse();var a=this.edges.iterator_at(this.edgeCnt-1),b=this.edges.pop_unsafe();this.edges.insert(a,b);this.reverse_flag=!this.reverse_flag;null!=this.wrap_lverts&&(this.wrap_lverts.zpp_inner.reverse_flag=this.reverse_flag);null!=this.wrap_gverts&&(this.wrap_gverts.zpp_inner.reverse_flag=this.reverse_flag);null!=this.wrap_edges&&(this.wrap_edges.zpp_inner.reverse_flag=this.reverse_flag)},validate_laxi:function(){if(this.zip_laxi){this.zip_laxi=!1;this.validate_lverts();for(var a=this.edges.head,b=this.lverts.next,c=b,b=b.next;null!=b;){var e=b,d=a.elt,a=a.next;d.lp0=c;d.lp1=e;var f=0,g=0,f=c.x-e.x,g=c.y-e.y,h=Math.sqrt(f*f+g*g);d.length=h;h=1/h;f*=h;g*=h;h=f;f=-g;g=h;d.lprojection=f*c.x+g*c.y;d.lnormx=f;d.lnormy=g;null!=d.wrap_lnorm&&(d.wrap_lnorm.zpp_inner.x=f,d.wrap_lnorm.zpp_inner.y=g);c=e;b=b.next}d=this.lverts.next;a=a.elt;a.lp0=c;a.lp1=d;e=b=0;b=c.x-d.x;e=c.y-d.y;d=Math.sqrt(b*b+e*e);a.length=d;d=1/d;f=b*d;b=-(e*d);e=f;a.lprojection=b*c.x+e*c.y;a.lnormx=b;a.lnormy=e;null!=a.wrap_lnorm&&(a.wrap_lnorm.zpp_inner.x=b,a.wrap_lnorm.zpp_inner.y=e)}},validate_gverts:function(){if(this.zip_gverts&&null!=this.body){this.zip_gverts=!1;this.validate_lverts();this.body.validate_axis();for(var a=this.lverts.next,b=this.gverts.next;null!=b;){var c=b,e=a,a=a.next;c.x=this.body.posx+(this.body.axisy*e.x-this.body.axisx*e.y);c.y=this.body.posy+(e.x*this.body.axisx+e.y*this.body.axisy);b=b.next}}},validate_gaxi:function(){if(this.zip_gaxi&&null!=this.body){this.zip_gaxi=!1;this.validate_laxi();this.body.validate_axis();this.validate_gverts();for(var a=this.edges.head,b=this.gverts.next,c=b,b=b.next;null!=b;){var e=b,d=a.elt,a=a.next;d.gp0=c;d.gp1=e;d.gnormx=this.body.axisy*d.lnormx-this.body.axisx*d.lnormy;d.gnormy=d.lnormx*this.body.axisx+d.lnormy*this.body.axisy;d.gprojection=this.body.posx*d.gnormx+this.body.posy*d.gnormy+d.lprojection;null!=d.wrap_gnorm&&(d.wrap_gnorm.zpp_inner.x=d.gnormx,d.wrap_gnorm.zpp_inner.y=d.gnormy);d.tp0=d.gp0.y*d.gnormx-d.gp0.x*d.gnormy;d.tp1=d.gp1.y*d.gnormx-d.gp1.x*d.gnormy;c=e;b=b.next}b=this.gverts.next;a=a.elt;a.gp0=c;a.gp1=b;a.gnormx=this.body.axisy*a.lnormx-this.body.axisx*a.lnormy;a.gnormy=a.lnormx*this.body.axisx+a.lnormy*this.body.axisy;a.gprojection=this.body.posx*a.gnormx+this.body.posy*a.gnormy+a.lprojection;null!=a.wrap_gnorm&&(a.wrap_gnorm.zpp_inner.x=a.gnormx,a.wrap_gnorm.zpp_inner.y=a.gnormy);a.tp0=a.gp0.y*a.gnormx-a.gp0.x*a.gnormy;a.tp1=a.gp1.y*a.gnormx-a.gp1.x*a.gnormy}},__validate_area_inertia:function(){if(null==this.lverts.next||null==this.lverts.next.next||null==this.lverts.next.next.next)this.inertia=this.area=0;else{for(var a=this.area=0,b=0,c=this.lverts.next,e=c,d=c=c.next,c=c.next;null!=c;){var f=c,g=d.y*e.x-d.x*e.y,a=a+g*(d.x*d.x+d.y*d.y+(d.x*e.x+d.y*e.y)+(e.x*e.x+e.y*e.y)),b=b+g;this.area+=d.x*(f.y-e.y);e=d;d=f;c=c.next}g=c=this.lverts.next;f=d.y*e.x-d.x*e.y;a+=f*(d.x*d.x+d.y*d.y+(d.x*e.x+d.y*e.y)+(e.x*e.x+e.y*e.y));this.area+=d.x*(g.y-e.y);e=d;d=g;c=c.next;g=d.y*e.x-d.x*e.y;a+=g*(d.x*d.x+d.y*d.y+ (d.x*e.x+d.y*e.y)+(e.x*e.x+e.y*e.y));this.area+=d.x*(c.y-e.y);this.inertia=a/(6*(b+f+g));this.area*=0.5;0>this.area&&(this.area=-this.area,this.reverse_vertices())}},__class__:Ke});var Hf=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ZPP_Shape"]=Hf;Hf.__name__=["zpp_nape","util","ZNPList_ZPP_Shape"];Hf.prototype={iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:Hf};var If=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ZPP_Body"]=If;If.__name__=["zpp_nape","util","ZNPList_ZPP_Body"];If.prototype={iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:If};var Jf=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ZPP_Compound"]=Jf;Jf.__name__=["zpp_nape","util","ZNPList_ZPP_Compound"];Jf.prototype={iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:Jf};var Kf=function(){this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ZPP_Arbiter"]=Kf;Kf.__name__=["zpp_nape","util","ZNPList_ZPP_Arbiter"];Kf.prototype={__class__:Kf};var Lf=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ZPP_Edge"]=Lf;Lf.__name__=["zpp_nape","util","ZNPList_ZPP_Edge"];Lf.prototype={insert:function(a,b){return this.inlined_insert(a,b)},inlined_insert:function(a,b){var c;null==qb.zpp_pool?c=new qb:(c=qb.zpp_pool,qb.zpp_pool=c.next,c.next=null);null;c.elt=b;null==a?(c.next=this.head,this.head=c):(c.next=a.next,a.next=c);this.pushmod=this.modified=!0;this.length++;return c},pop:function(){this.inlined_pop()},inlined_pop:function(){var a=this.head;this.head=a.next;a.elt=null;a.next=qb.zpp_pool;qb.zpp_pool=a;null==this.head&&(this.pushmod=!0);this.modified=!0;this.length--},pop_unsafe:function(){return this.inlined_pop_unsafe()},inlined_pop_unsafe:function(){var a=this.head.elt;this.pop();return a},reverse:function(){for(var a=this.head,b=null;null!=a;){var c=a.next;a.next=b;b=this.head=a;a=c}this.pushmod=this.modified=!0},iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:Lf};var Mf=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ZPP_Listener"]=Mf;Mf.__name__=["zpp_nape","util","ZNPList_ZPP_Listener"];Mf.prototype={iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:Mf};var Nf=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ZPP_InteractionGroup"]=Nf;Nf.__name__=["zpp_nape","util","ZNPList_ZPP_InteractionGroup"];Nf.prototype={iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:Nf};var Of=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ConvexResult"]=Of;Of.__name__=["zpp_nape","util","ZNPList_ConvexResult"];Of.prototype={iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:Of};var Pf=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_ZPP_GeomPoly"]=Pf;Pf.__name__=["zpp_nape","util","ZNPList_ZPP_GeomPoly"];Pf.prototype={iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:Pf};var Qf=function(){this.length=0;this.modified=this.pushmod=!1;this.head=null};f["zpp_nape.util.ZNPList_RayResult"]=Qf;Qf.__name__=["zpp_nape","util","ZNPList_RayResult"];Qf.prototype={iterator_at:function(a){for(var b=this.head;0<a--&&null!=b;)b=b.next;return b},__class__:Qf};var Rf=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ZPP_CbType"]=Rf;Rf.__name__=["zpp_nape","util","ZNPNode_ZPP_CbType"];Rf.prototype={__class__:Rf};var Sf=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ZPP_Shape"]=Sf;Sf.__name__=["zpp_nape","util","ZNPNode_ZPP_Shape"];Sf.prototype={__class__:Sf};var Tf=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ZPP_Body"]=Tf;Tf.__name__=["zpp_nape","util","ZNPNode_ZPP_Body"];Tf.prototype={__class__:Tf};var Uf=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ZPP_Constraint"]=Uf;Uf.__name__=["zpp_nape","util","ZNPNode_ZPP_Constraint"];Uf.prototype={__class__:Uf};var Vf=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ZPP_Compound"]=Vf;Vf.__name__=["zpp_nape","util","ZNPNode_ZPP_Compound"];Vf.prototype={__class__:Vf};var Wf=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ZPP_Arbiter"]=Wf;Wf.__name__=["zpp_nape","util","ZNPNode_ZPP_Arbiter"];Wf.prototype={__class__:Wf};var Xf=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ZPP_Interactor"]=Xf;Xf.__name__=["zpp_nape","util","ZNPNode_ZPP_Interactor"];Xf.prototype={__class__:Xf};var Yf=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ZPP_Vec2"]=Yf;Yf.__name__=["zpp_nape","util","ZNPNode_ZPP_Vec2"];Yf.prototype={__class__:Yf};var qb=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ZPP_Edge"]=qb;qb.__name__=["zpp_nape","util","ZNPNode_ZPP_Edge"];qb.prototype={__class__:qb};var Zf=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ZPP_Listener"]=Zf;Zf.__name__=["zpp_nape","util","ZNPNode_ZPP_Listener"];Zf.prototype={__class__:Zf};var $f=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ZPP_InteractionGroup"]=$f;$f.__name__=["zpp_nape","util","ZNPNode_ZPP_InteractionGroup"];$f.prototype={__class__:$f};var ag=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ConvexResult"]=ag;ag.__name__=["zpp_nape","util","ZNPNode_ConvexResult"];ag.prototype={__class__:ag};var bg=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_ZPP_GeomPoly"]=bg;bg.__name__=["zpp_nape","util","ZNPNode_ZPP_GeomPoly"];bg.prototype={__class__:bg};var cg=function(){this.next=this.elt=null};f["zpp_nape.util.ZNPNode_RayResult"]=cg;cg.__name__=["zpp_nape","util","ZNPNode_RayResult"];cg.prototype={__class__:cg};var fc=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_ConstraintList"]=fc;fc.__name__=["zpp_nape","util","ZPP_ConstraintList"];fc.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:fc};var pc=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_BodyList"]=pc;pc.__name__=["zpp_nape","util","ZPP_BodyList"];pc.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:pc};var tc=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_InteractorList"]=tc;tc.__name__=["zpp_nape","util","ZPP_InteractorList"];tc.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:tc};var rc=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_CompoundList"]=rc;rc.__name__=["zpp_nape","util","ZPP_CompoundList"];rc.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:rc};var ec=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_ListenerList"]=ec;ec.__name__=["zpp_nape","util","ZPP_ListenerList"];ec.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:ec};var gb=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this.immutable=this._invalidated=!1;this.outer=this.inner=null;this.inner=new De;this._invalidated=!0};f["zpp_nape.util.ZPP_CbTypeList"]=gb;gb.__name__=["zpp_nape","util","ZPP_CbTypeList"];gb.get=function(a,b){null==b&&(b=!1);var c=new he;c.zpp_inner.inner=a;b&&(c.zpp_inner.immutable=!0);c.zpp_inner.zip_length=!0;return c};gb.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:gb};var nc=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_Vec2List"]=nc;nc.__name__=["zpp_nape","util","ZPP_Vec2List"];nc.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:nc};var lc=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_GeomPolyList"]=lc;lc.__name__=["zpp_nape","util","ZPP_GeomPolyList"];lc.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:lc};var mc=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_RayResultList"]=mc;mc.__name__=["zpp_nape","util","ZPP_RayResultList"];mc.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:mc};var kc=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_ConvexResultList"]=kc;kc.__name__=["zpp_nape","util","ZPP_ConvexResultList"];kc.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:kc};var uc=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_EdgeList"]=uc;uc.__name__=["zpp_nape","util","ZPP_EdgeList"];uc.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:uc};var vc=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_ShapeList"]=vc;vc.__name__=["zpp_nape","util","ZPP_ShapeList"];vc.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:vc};var jc=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_InteractionGroupList"]=jc;jc.__name__=["zpp_nape","util","ZPP_InteractionGroupList"];jc.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:jc};var gc=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_ArbiterList"]=gc;gc.__name__=["zpp_nape","util","ZPP_ArbiterList"];gc.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:gc};var ic=function(){this.user_length=0;this.zip_length=!1;this.at_ite=this.push_ite=null;this.at_index=0;this.reverse_flag=!1;this._validate=null;this._invalidated=!1;this.inner=null};f["zpp_nape.util.ZPP_ContactList"]=ic;ic.__name__=["zpp_nape","util","ZPP_ContactList"];ic.prototype={valmod:function(){this.validate();this.inner.modified&&(this.inner.pushmod&&(this.push_ite=null),this.at_ite=null,this.inner.modified=!1,this.inner.pushmod=!1,this.zip_length=!0)},validate:function(){this._invalidated&&(this._invalidated=!1,null!=this._validate&&this._validate())},__class__:ic};var jg=0;f.Math=Math;String.prototype.__class__=f.String=String;String.__name__=["String"];f.Array=Array;Array.__name__=["Array"];Date.prototype.__class__=f.Date=Date;Date.__name__=["Date"];var kg=f.Int={__name__:["Int"]},lg=f.Dynamic={__name__:["Dynamic"]},hg=f.Float=Number;hg.__name__=["Float"];var ig=f.Bool=Boolean;ig.__ename__=["Bool"];var fg=f.Class={__name__:["Class"]},gg={},Ab={},Pe=Function("return typeof ArrayBuffer != 'undefined' ? ArrayBuffer : null")()||Ka;null==Pe.prototype.slice&&(Pe.prototype.slice=Ka.sliceImpl);Function("return typeof DataView != 'undefined' ? DataView : null")();var eg=Function("return typeof Uint8Array != 'undefined' ? Uint8Array : null")()||mb._new;r.Element=0;r.PCData=1;r.CData=2;r.Comment=3;r.DocType=4;r.ProcessingInstruction=5;r.Document=6;L._scratchPoint=new db;o.isEventsTraceOnly=!1;o.apiURLPrefix="http://tools.funtomic.com/";o.gameOpsVersion="0.7.1";o.apiEventsLocation="v2/events/";o.status=wa.UNINITIALIZED;o.MAX_SAVED_UNSENT_EVENTS=1E3;o.localStorage={};o.firstSession=!1;o.levelsNumbers=[];o.deferredReportEvents=[];o.timers={};ea.logLevel=0;J._prefix="";J._isErrorEventsSent=0;E.boardDataIdx=-1;u.lastTableuoSuccessPlacementIdx=0;u.autoCompleteInProgress=!1;u.autoFinishInProgress=!1;k.STATE_TABLEU=0;k.STATE_FREECELL=1;k.STATE_FOUNDATION=3;k.STATE_ANIMATION=4;k.firstTapSinceLoading=!0;Ub.cardIdxGlobal1=1;i.cardNameArray="clubs-2,clubs-3,clubs-4,clubs-5,clubs-6,clubs-7,clubs-8,clubs-9,clubs-10,clubs-jck,clubs-queen,clubs-king,clubs-ace,diamonds-2,diamonds-3,diamonds-4,diamonds-5,diamonds-6,diamonds-7,diamonds-8,diamonds-9,diamonds-10,diamonds-jack,diamonds-queen,diamonds-king,diamonds-ace,hearts-2,hearts-3,hearts-4,hearts-5,hearts-6,hearts-7,hearts-8,hearts-9,hearts-10,hearts-jack,hearts-queen,hearts-king,hearts-ace,spades-2,spades-3,spades-4,spades-5,spades-6,spades-7,spades-8,9,spades-10,spades-jack,spades-queen,spades-king,spades-ace".split(",");i.SUIT_CLUBS=0;i.SUIT_DIAMONDS=1;i.SUIT_HEARTS=2;i.SUIT_SPADES=3;i.CARD_IDX_02=0;i.CARD_IDX_A=12;i.NUM_SUITS=4;i.NUM_CARDS_PER_SUIT=13;Y.currentFoundIdx=-1;Y.currentCardAnimationCounter=0;Y.inProgress=!1;Y.endAnimation=!1;x.WIDTH=880;x.HEIGHT=600;x.SMALL_DEVICE_MODE=!1;x.WebAudioSupported=!1;x.MOBILE_BROWSER=!0;x.CARD_X_DELTA_TABLEU=100;x.CARD_X_DELTA_FREECELL=100;x.CARD_X_INITIAL_FREECELL=60;x.CARD_X_INITIAL_FOUNDATION_DELTA=-19;x.GAME_TIME=600;j.drawCardNum=1;j.gameNumber=164;m.LanguageAbbrevations="EN,NL,FR,DE,IT,PL".split(",");m.PLAY_SHORT="Play,STARTEN,JOUER,Spielen,Jugar,Jucati".split(",");m.HOW_TO_PLAY_FULL=["The goal in this Solitaire game is to move all the cards to the four empty stacks in order from ace to king. You can choose to deal 1 card at a time or 3."];m.DRAW_1_CARD=["DRAW 1 CARD"];m.DRAW_3_CARDS=["DRAW 3 CARDS"];m.HOW_TO_PLAY=["HOW TO PLAY"];m.YOU_WIN=["YOU WIN!"];m.BONUS=["BONUS: "];m.SCORE=["SCORE: "];m.TOTAL=["TOTAL: "];m.GAME_OVER=["YOU LOST!"];h.backgroundState2=!1;q.currentScore=0;q.gameStartedStamp=0;q.currentSeconds=0;q.gameInProgress=!1;q.skipScoreManage=!1;q.baseScore=0;y.allowNextScreen=!1;y.mobileBrowser=!1;B.allSoundArrayNames="SOUNDS/click,SOUNDS/beep,SOUNDS/fail,SOUNDS/cardtofoundation,SOUNDS/dealcards,SOUNDS/lost,SOUNDS/grabcard,SOUNDS/valid,SOUNDS/won,SOUNDS/lost,SOUNDS/dealcards1,SOUNDS/counter-points".split(",");B.MAX_CACHED=[2,2,2,1,1,4,1,4,2,3,3,2,2,4,4,4];B.canPlayInvalid=!0;B.canPlaySounds=!1;tb.isAvailable=!0;eb.soundFlag=!0;Ba.isAvailable=!1;da.promptMenuPath="ui/prompt/";jb.instance=new jb;ha.DISPATCHING_SENTINEL=new Kb(null,null);l.root=new N;l.uncaughtError=new U;l.hidden=new sa(!1);l.volume=new W(1);l._platform=jb.instance;l._calledInit=!1;ua.__meta__={obj:{assets:[{bootstrap:[{bytes:184466,md5:"d64869dc1df0d1b0f27f38835250e4d1",name:"buttonfont/font.fnt"},{bytes:29571,md5:"6c598ce10f2bdaf6bcdd721cd6b0b4d0",name:"buttonfont/font.png"},{bytes:389029,md5:"fac8237747b869e960655be0ea62a6ab",name:"game_bg_hd.png"},{bytes:7366,md5:"53edd709ef75828e5e99411052f10f09",name:"language.xml"},{bytes:5094,md5:"7d4baa5e9e925d5803a597fea2d7dd5a",name:"play.gif"},{bytes:8410,md5:"5881966dc67520a94456024d31df6c86",name:"SPLASH.gif"},{bytes:8374,md5:"2ef66164f665021e6a31e334bcf4422f",name:"TURN.png"}],hd_assets:[{bytes:8334,md5:"459d482bec382454dc43f7d7e02bf70b",name:"CARDS/9.png"},{bytes:6282,md5:"5733ffbf150795ce4dc19abaa5b3bbe0",name:"CARDS/back1.png"},{bytes:210,md5:"ee8e393008792cd1aa7ba5f3ac577c98",name:"CARDS/card-overlay.png"},{bytes:8467,md5:"28178eac0c846af72385ec0a55441854",name:"CARDS/clubs-10.png"},{bytes:8E3,md5:"20a2eb4f4dd1ee8b53d01ac4f0fd8e02",name:"CARDS/clubs-2.png"},{bytes:8098,md5:"e96f74621c17a38aa75fab6b5158273e",name:"CARDS/clubs-3.png"},{bytes:8020,md5:"12cbaa230609954627bb94a1bfe8a13b",name:"CARDS/clubs-4.png"},{bytes:8339,md5:"1dee7d9c864a0e066278e05b7e741a5d",name:"CARDS/clubs-5.png"},{bytes:8381,md5:"2629aa6647e4b3a453b2606b3805f2a3",name:"CARDS/clubs-6.png"},{bytes:8075,md5:"4a4a7ad27002e95ce27c042782ddfd75",name:"CARDS/clubs-7.png"},{bytes:8337,md5:"f415a2b68dfcc42bf430fa7be595944b",name:"CARDS/clubs-8.png"},{bytes:8142,md5:"f5e223e0c95b6873975840cb54dceb0b",name:"CARDS/clubs-9.png"},{bytes:8009,md5:"7ad828e0e765693b25e044e5e5d6be27",name:"CARDS/clubs-ace.png"},{bytes:8612,md5:"32eb4eb3eb5ad65af23e4e0e88c50f97",name:"CARDS/clubs-jck.png"},{bytes:8723,md5:"2867247933189ea92c25a41e2759e38d",name:"CARDS/clubs-king.png"},{bytes:8882,md5:"6e891adec418ee01a6d22a2d98078d75",name:"CARDS/clubs-queen.png"},{bytes:8509,md5:"edf38a9b2d44f4e7bfd32200399524d1",name:"CARDS/diamonds-10.png"},{bytes:7701,md5:"b976c8ff41c5ea34dfe7c41d959bfd6e",name:"CARDS/diamonds-2.png"},{bytes:7963,md5:"a1408764cc47bf43ac382d83e691dd0d",name:"CARDS/diamonds-3.png"},{bytes:7937,md5:"101cad91e71d0a4284ae369b2411bd5b",name:"CARDS/diamonds-4.png"},{bytes:8069,md5:"3522f52cf9cd2002ac56f834c7f3c8ff",name:"CARDS/diamonds-5.png"},{bytes:8295,md5:"8efaa1fe37a0211fea2d521524580aab",name:"CARDS/diamonds-6.png"},{bytes:7566,md5:"c051c0b604c9ad783d6fa5e814a0d013",name:"CARDS/diamonds-7.png"},{bytes:8086,md5:"58eec95894ae9ff4b5af194c75f70873",name:"CARDS/diamonds-8.png"},{bytes:8270,md5:"d89657e1a90b76c493885c4d8a359b6d",name:"CARDS/diamonds-9.png"},{bytes:8108,md5:"dfa548512cf5459ae2d270cd01544edc",name:"CARDS/diamonds-ace.png"},{bytes:8560,md5:"c85f8974d690b08863852d74c4b35f85",name:"CARDS/diamonds-jack.png"},{bytes:8484,md5:"91e5b3b2a0ed05f37df62d0ce450aae9",name:"CARDS/diamonds-king.png"},{bytes:8502,md5:"6284471a3aea2f9c358570c1633302ce",name:"CARDS/diamonds-queen.png"},{bytes:8246,md5:"61547fd1601d0770147b43e00dc0f566",name:"CARDS/hearts-10.png"},{bytes:7964,md5:"3d45d5f838a58c9674ef5d9df9b82fbb",name:"CARDS/hearts-2.png"},{bytes:8141,md5:"2ac0c7e23210100018d8bb16ee267441",name:"CARDS/hearts-3.png"},{bytes:8072,md5:"7bb24a9e278a8a10003aaacc045dda64",name:"CARDS/hearts-4.png"},{bytes:8202,md5:"fca36ea890b31e32ee5bcedfa465bda5",name:"CARDS/hearts-5.png"},{bytes:8061,md5:"a6b2111de95b03bc6d5c1dd8fdefca39",name:"CARDS/hearts-6.png"},{bytes:7817,md5:"36e97ce2aa778494855633982cd499bb",name:"CARDS/hearts-7.png"},{bytes:7673,md5:"752d1f4395eb48601c70aba4665d125a",name:"CARDS/hearts-8.png"},{bytes:8024,md5:"583177c637062e61e448b1b5d0ac80ea",name:"CARDS/hearts-9.png"},{bytes:7669,md5:"7fab961f33ed1e7dd4965651548d9fd3",name:"CARDS/hearts-ace.png"},{bytes:8624,md5:"1ac9fcac90e2c93ee43c3899fdd3b543",name:"CARDS/hearts-jack.png"},{bytes:8603,md5:"acefb6e54c5db914e1379623b2dea48e",name:"CARDS/hearts-king.png"},{bytes:8537,md5:"592dd61e1fe1d60bff31a7e90fcf0582",name:"CARDS/hearts-queen.png"},{bytes:8497,md5:"bca91486f04b45515d1d80fb5d56da36",name:"CARDS/spades-10.png"},{bytes:7641,md5:"cf2fb4f59a9ac3ae78bec3b04ae2b947",name:"CARDS/spades-2.png"},{bytes:8014,md5:"7a3167b3b99c741a827d753c80e0de11",name:"CARDS/spades-3.png"},{bytes:8113,md5:"048c3f6a16bd25f562c97c7dedd6944b",name:"CARDS/spades-4.png"},{bytes:8332,md5:"e70fdd83195f24795d70c56940b6539a",name:"CARDS/spades-5.png"},{bytes:8377,md5:"eb19a66dd117d13a0e55506c0953867b",name:"CARDS/spades-6.png"},{bytes:8210,md5:"68ff1f108bc20f54c7bfbfa9a0b8d6bc",name:"CARDS/spades-7.png"},{bytes:8234,md5:"23bd220a206ae9359d3f49ae4f98d95d",name:"CARDS/spades-8.png"},{bytes:8600,md5:"e9a2e1c8ae5c673c6a7e54cb7be12c94",name:"CARDS/spades-ace.png"},{bytes:8534,md5:"a4af5e84b75f6fd076a322739bdc74be",name:"CARDS/spades-jack.png"},{bytes:8643,md5:"090ec5eafef29d614c21503d55c92ad4",name:"CARDS/spades-king.png"},{bytes:8647,md5:"0a5e8c82c8a0bd03b67604332fb94d9a",name:"CARDS/spades-queen.png"},{bytes:1086464,md5:"f7985acea94e1ec69b6938630eedcd90",name:"CARDS/Thumbs.db"},{bytes:389029,md5:"fac8237747b869e960655be0ea62a6ab",name:"game_bg_hd.png"},{bytes:86436,md5:"a645e64142fe31abd81a5785403cc72e",name:"pink_20_regular/font.fnt"},{bytes:18254,md5:"51b7527f2012b7ce0461b1a2e162c262",name:"pink_20_regular/font.png"},{bytes:5094,md5:"7d4baa5e9e925d5803a597fea2d7dd5a",name:"play.gif"},{bytes:5724,md5:"2bd8ecf3be1d838d41975c2e30c15e55",name:"SOUNDS/beep.m4a"},{bytes:22012,md5:"d48083b6f5baa0681ea85845944f7075",name:"SOUNDS/beep.mp3"},{bytes:7785,md5:"2bf3b76388eb26c38d32962c50b79774",name:"SOUNDS/beep.ogg"},{bytes:40034,md5:"23e155b0fd34f51edb5c9b92469edc4c",name:"SOUNDS/cardtofoundation.m4a"},{bytes:53344,md5:"d88938c36021762c5cb6d51f2d9b80ae",name:"SOUNDS/cardtofoundation.mp3"},{bytes:26049,md5:"dcfa63dd7d94a7dc5b36b8c635e73651",name:"SOUNDS/cardtofoundation.ogg"},{bytes:2979,md5:"ce13634bff18b543a73953d8c6c63f30",name:"SOUNDS/click.m4a"},{bytes:2924,md5:"515cab11ea5d0ae0686a4898a7674e52",name:"SOUNDS/click.mp3"},{bytes:5074,md5:"10569e45dc318e37a1cfb87db2af471d",name:"SOUNDS/click.ogg"},{bytes:39748,md5:"bbecb92fc7787366e43c2fa2a1e5c0f6",name:"SOUNDS/counter-points.m4a"},{bytes:62726,md5:"bccf7071f6c3a8abbf5d9268a5d91493",name:"SOUNDS/counter-points.mp3"},{bytes:32469,md5:"38795c38db00dcf889c46f7ed6a8b5fc",name:"SOUNDS/counter-points.ogg"},{bytes:19940,md5:"8692a08571fa199e26d9f30705074214",name:"SOUNDS/deal1card.mp3"},{bytes:10571,md5:"a674f197a12ae903a047cbcd6dd9195a",name:"SOUNDS/dealcards.m4a"},{bytes:14616,md5:"492d51ea7ed14f555b6562462cfb0da3",name:"SOUNDS/dealcards.mp3"},{bytes:12300,md5:"93f059f9fd90cc5457125a99540ba7d6",name:"SOUNDS/dealcards.ogg"},{bytes:32308,md5:"439ecf5f54b3a55a037b4bf3b79dabfc",name:"SOUNDS/dealcards1.m4a"},{bytes:20150,md5:"d0a54e269ae67a9acd9a316a88d18b60",name:"SOUNDS/dealcards1.mp3"},{bytes:18261,md5:"ba3b1031cf8810ef3bcd2380c5aef3bd",name:"SOUNDS/dealcards1.ogg"},{bytes:21434,md5:"e4c8959140f2456d4840dc84eb9e6d46",name:"SOUNDS/fail.m4a"},{bytes:24585,md5:"f5423b38b224bef852dbcf7dba66f775",name:"SOUNDS/fail.mp3"},{bytes:14298,md5:"198d051fe8db0c2aa740f83b9ca4aabe",name:"SOUNDS/fail.ogg"},{bytes:12286,md5:"ac44f19fcfb8659d210def472e6de08c",name:"SOUNDS/grabcard.m4a"},{bytes:17748,md5:"26a24395b3c565060b5bb547b7ef57df",name:"SOUNDS/grabcard.mp3"},{bytes:13577,md5:"81eac49a768526ea0f05f46cf8858bbf",name:"SOUNDS/grabcard.ogg"},{bytes:34914,md5:"bb7fc26bbaa181b9361d22cd8cdf4da1",name:"SOUNDS/lost.m4a"},{bytes:19320,md5:"5cea47e3627b321bee881b2351533771",name:"SOUNDS/lost.mp3"},{bytes:21960,md5:"b0ceb5b40a4c535dbf1ccc439f0bb74c",name:"SOUNDS/lost.ogg"},{bytes:13427,md5:"8a47b54b5a05b1708ec9a0e84c9f6d0e",name:"SOUNDS/valid.m4a"},{bytes:7941,md5:"6609f708ffd9e856676e359c86195f79",name:"SOUNDS/valid.mp3"},{bytes:10035,md5:"e1f2ec4796999b594803f11907e502f1",name:"SOUNDS/valid.ogg"},{bytes:70053,md5:"503b71075ff089eb17036ddf9b8182cc",name:"SOUNDS/won.m4a"},{bytes:114983,md5:"05ff0964d8e5acaec21114650ce60e90",name:"SOUNDS/won.mp3"},{bytes:55899,md5:"6bf399e3213e2c717a4ec3f9f2a75cad",name:"SOUNDS/won.ogg"},{bytes:8374,md5:"2ef66164f665021e6a31e334bcf4422f",name:"TURN.png"},{bytes:1051,md5:"e70c15440878a473609d364891740ff8",name:"ui/game_menu_icon.png"},{bytes:3039,md5:"aad3ccea9c36d7214402f07d56746073",name:"ui/NEW-GAME-HOVER.png"},{bytes:2914,md5:"102ee603ec40ee4928ee8c77b3785b94",name:"ui/NEW-GAME.png"},{bytes:422,md5:"4adec2b9918b0627bd0ead9807943b98",name:"ui/prompt/BUTTON_PROMPTMAIN.png"},{bytes:453,md5:"37697650c2cd28fcfcc277e872eac685",name:"ui/prompt/BUTTON_PROMPTMAIN_HOVER.png"},{bytes:424,md5:"5e244bfc0934b8452b3bc9004b35a829",name:"ui/prompt/BUTTON_PROMPTMENU.png"},{bytes:448,md5:"69ae8a2059a3e5f88b81b6d7084ef8bb",name:"ui/prompt/BUTTON_PROMPTMENU_HOVER.png"},{bytes:25962,md5:"560b4d7f20a559bee3bc0c00b7b158ac",name:"ui/prompt/PROMPT-MAIN-BG.png"},{bytes:24268,md5:"a0bb35fffb7e3a87f269d678ff36bf9c",name:"ui/prompt/PROMPT-MENU-BG.png"},{bytes:39537,md5:"fdf20353f91b26e58d143d53ecaf45aa",name:"ui/prompt/PROMPT-WON-BG.png"},{bytes:424,md5:"5e244bfc0934b8452b3bc9004b35a829",name:"ui/prompt_button.png"},{bytes:448,md5:"69ae8a2059a3e5f88b81b6d7084ef8bb",name:"ui/prompt_button_over.png"},{bytes:3400,md5:"608d5ee1a5cf489be1e3e9a0bdbf9e63",name:"ui/UNDO-HOVER.png"},{bytes:3321,md5:"4e8ffea83a0d9f82761e4059fac45955",name:"ui/UNDO.png"},{bytes:88346,md5:"790e2085ed4d03c7a45761af725023bb",name:"white_22_bold/font.fnt"},{bytes:19027,md5:"579a011944559b6d8a623e03fccb5b4e",name:"white_22_bold/font.png"},{bytes:87694,md5:"41b5ce773b9662a507cea0859790f63e",name:"white_30_bold/font.fnt"},{bytes:24527,md5:"1f28c9e7051a7a836c312cf32f32325f",name:"white_30_bold/font.png"}]}]}};ua._supportsCrossOrigin=function(){var a;a=0<=window.navigator.userAgent.indexOf("Linux; U; Android")?!1:null!=(new XMLHttpRequest).withCredentials;a||null;return a}();ca.NEWLINE=new Yc(10);Da._sharedEvent=new Jd;ta._sharedEvent=new Kd;ka._sharedEvent=new Ld;Jb.CANVAS_TEXTURES=(new Fa("(iPhone|iPod|iPad)","")).match(window.navigator.userAgent);R._mediaRefCount=0;R._detectBlobSupport=!0;F.VENDOR_PREFIXES=["webkit","moz","ms","o","khtml"];F.SHOULD_HIDE_MOBILE_BROWSER=window.top==window&&(new Fa("Mobile(/.*)? Safari","")).match(window.navigator.userAgent);K._detectSupport=!0;Ha.USE_CACHE=!1;Ha.USE_ENUM_INDEX=!1;Ha.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";ja.DEFAULT_RESOLVER=V;ja.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";Bb.count=0;Ja.i64tmp=new $d(0,0);hb.escapes=function(){var a=new qa;null!=Ab.lt?a.setReserved("lt","<"):a.h.lt="<";null!=Ab.gt?a.setReserved("gt",">"):a.h.gt=">";null!=Ab.amp?a.setReserved("amp","&"):a.h.amp="&";null!=Ab.quot?a.setReserved("quot",'"'):a.h.quot='"';null!=Ab.apos?a.setReserved("apos","'"):a.h.apos="'";return a}(this);S.__toStr={}.toString;mb.BYTES_PER_ELEMENT=1;ud._CbType=0;Ea.ANY_SHAPE=new Pb;Ea.ANY_BODY=new Pb;Ea.ANY_COMPOUND=new Pb;Ea.ANY_CONSTRAINT=new Pb;g.internal=!1;ma.internal=!1;ma.COL=1;ma.FLUID=4;wc.internal=!1;xc.internal=!1;fc.internal=!1;pc.internal=!1;tc.internal=!1;rc.internal=!1;ec.internal=!1;gb.internal=!1;nc.internal=!1;lc.internal=!1;mc.internal=!1;kc.internal=!1;uc.internal=!1;vc.internal=!1;jc.internal=!1;gc.internal=!1;ic.internal=!1;h.main()})();
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генераци� �траницы: 0.01 |
proxy
|
phpinfo
|
�а�тройка