/** Cooked with Flambe, https://getflambe.com */
'use strict';(function(){function n(a,b){function c(){}c.prototype=a;var d=new c,e;for(e in b)d[e]=b[e];b.toString!==Object.prototype.toString&&(d.toString=b.toString);return d}function sb(a){return a instanceof Array?function(){return z.iter(a)}:"function"==typeof a.iterator?R(a,a.iterator):a.iterator}function R(a,b){if(null==b)return null;null==b.__id__&&(b.__id__=Gb++);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 j=function(){return A.__string_rec(this,"")},ba=function(a,b){b=b.split("u").join("");this.r=RegExp(a,b)};ba.__name__=!0;ba.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},__class__:ba};var z=function(){};z.__name__=!0;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 Ba=function(){};Ba.__name__=!0;Ba.array=function(a){for(var b=[],a=sb(a)();a.hasNext();){var c=a.next();b.push(c)}return b};Ba.count=function(a,b){var c=0;if(null==b)for(var d=sb(a)();d.hasNext();)d.next(),
c++;else for(d=sb(a)();d.hasNext();){var e=d.next();b(e)&&c++}return c};var Ya=function(){};Ya.__name__=!0;Math.__name__=!0;var J=function(){};J.__name__=!0;J.field=function(a,b){try{return a[b]}catch(c){return null}};var S=function(){};S.__name__=!0;S.is=function(a,b){return A.__instanceof(a,b)};S.string=function(a){return A.__string_rec(a,"")};var Za=function(){};Za.__name__=!0;Za.startsWith=function(a,b){return a.length>=b.length&&z.substr(a,0,b.length)==b};var Y=function(){};Y.__name__=!0;var r=
function(){this._flags=0;this.owner=this.next=null};r.__name__=!0;r.__interfaces__=[Y];r.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__:r};var B=function(){this.parent=this.firstChild=this.next=this.firstComponent=null;this._compMap={}};B.__name__=!0;B.__interfaces__=[Y];B.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 d=c.next;if(c==a)return null==b?this.firstComponent=d:(b.owner=this,b.next=d),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=d}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,d=this.firstChild;null!=d;)c=d,d=d.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 d=c.next;if(c==a){null==b?this.firstChild=d:b.next=d;c.parent=null;c.next=null;break}b=c;c=d}},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()},toString:function(){return this.toStringImpl("")},toStringImpl:function(a){for(var b="",c=this.firstComponent;null!=c;)b+=c.get_name(),null!=c.next&&(b+=", "),c=c.next;for(var b=b+"\n",c=String.fromCharCode(9492),d=String.fromCharCode(9500),e=String.fromCharCode(9472),f=String.fromCharCode(9474),v=this.firstChild;null!=v;)var g=null==v.next,b=b+(a+(g?c:d)+e+e+" "),b=b+v.toStringImpl(a+
(g?" ":f)+"   "),v=v.next;return b},__class__:B};var tb=function(){};tb.__name__=!0;var $a=function(){};$a.__name__=!0;$a.prototype={__class__:$a};var ca=function(){};ca.__name__=!0;ca.__interfaces__=[$a];ca.prototype={init:function(){var a=this;i.fixAndroidMath();var b=null;try{b=window.flambe.canvas}catch(c){}b.setAttribute("tabindex","0");b.style.outlineStyle="none";b.style.webkitTapHighlightColor="transparent";b.setAttribute("moz-opaque","true");this._stage=new da(b);this._pointer=new w;this._mouse=
new Ca(this._pointer,b);this._renderer=this.createRenderer(b);this.mainLoop=new ea;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 d=0,e=function(c){if(!(1E3>c.timeStamp-d)){var e=b.getBoundingClientRect(),f=a.getX(c,e),e=a.getY(c,e);switch(c.type){case "mousedown":c.target==b&&(c.preventDefault(),a._mouse.submitDown(f,e,c.button),b.focus());break;case "mousemove":a._mouse.submitMove(f,
e);break;case "mouseup":a._mouse.submitUp(f,e,c.button);break;case "mousewheel":case "DOMMouseScroll":a._mouse.submitScroll(f,e,"mousewheel"==c.type?c.wheelDelta/40:-c.detail)&&c.preventDefault()}}};window.addEventListener("mousedown",e,!1);window.addEventListener("mousemove",e,!1);window.addEventListener("mouseup",e,!1);b.addEventListener("mousewheel",e,!1);b.addEventListener("DOMMouseScroll",e,!1);b.addEventListener("contextmenu",function(a){a.preventDefault()},!1);var f="undefined"!=typeof window.ontouchstart,
e="msMaxTouchPoints"in window.navigator&&1<window.navigator.msMaxTouchPoints;if(f||e){var v=new Da(this._pointer,f?4:window.navigator.msMaxTouchPoints);this._touch=v;e=function(b){var c;c=f?b.changedTouches:[b];var e=b.target.getBoundingClientRect();d=b.timeStamp;switch(b.type){case "touchstart":case "MSPointerDown":case "pointerdown":b.preventDefault();i.SHOULD_HIDE_MOBILE_BROWSER&&i.hideMobileBrowser();for(b=0;b<c.length;){var g=c[b];++b;var N=a.getX(g,e),h=a.getY(g,e);v.submitDown((f?g.identifier:
g.pointerId)|0,N,h)}break;case "touchmove":case "MSPointerMove":case "pointermove":b.preventDefault();for(b=0;b<c.length;)g=c[b],++b,N=a.getX(g,e),h=a.getY(g,e),v.submitMove((f?g.identifier:g.pointerId)|0,N,h);break;case "touchend":case "touchcancel":case "MSPointerUp":case "pointerup":for(b=0;b<c.length;)g=c[b],++b,N=a.getX(g,e),h=a.getY(g,e),v.submitUp((f?g.identifier:g.pointerId)|0,N,h)}};f?(b.addEventListener("touchstart",e,!1),b.addEventListener("touchmove",e,!1),b.addEventListener("touchend",
e,!1),b.addEventListener("touchcancel",e,!1)):(b.addEventListener("MSPointerDown",e,!1),b.addEventListener("MSPointerMove",e,!1),b.addEventListener("MSPointerUp",e,!1))}else this._touch=new Ea;var g=window.onerror;window.onerror=function(a,b,c){k.uncaughtError.emit(a);return null!=g?g(a,b,c):!1};var h=i.loadExtension("hidden",window.document);null!=h.value?(e=function(){k.hidden.set__(J.field(window.document,h.field))},e(null),window.document.addEventListener(h.prefix+"visibilitychange",e,!1)):(e=
function(a){k.hidden.set__("pagehide"==a.type)},window.addEventListener("pageshow",e,!1),window.addEventListener("pagehide",e,!1));k.hidden.get_changed().connect(function(b){b||(a._skipFrame=!0)});this._skipFrame=!1;this._lastUpdate=Date.now();var j=i.loadExtension("requestAnimationFrame").value;if(null!=j){var l=window.performance,n=null!=l&&i.polyfill("now",l);n?this._lastUpdate=l.now():null;var m=null,m=function(c){a.update(n?l.now():c);j(m,b)};j(m,b)}else window.setInterval(function(){a.update(Date.now())},
16);ma.info("Initialized HTML platform",["renderer",this._renderer.get_type()])},loadAssetPack:function(a){return(new l(this,a)).promise},getStage:function(){return this._stage},update:function(a){var b=(a-this._lastUpdate)/1E3;this._lastUpdate=a;k.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},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){try{var b=ub.getContextWebGL(a,{alpha:!1,depth:!1,failIfMajorPerformanceCaveat:!0});if(null!=b)if(i.detectSlowDriver(b))null;else return new Fa(this._stage,b)}catch(c){}return new fa(a)},__class__:ca};var G=function(a,b){this._value=a;this._changed=null!=b?new na(b):null};G.__name__=!0;G.prototype={watch:function(a){a(this._value,this._value);
return this.get_changed().connect(a)},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 na);return this._changed},__class__:G};var ga=function(a,b){this._next=null;this._signal=a;this._listener=b;this.stayInList=!0};ga.__name__=!0;ga.__interfaces__=[Y];ga.prototype={once:function(){this.stayInList=!1;return this},dispose:function(){null!=this._signal&&(this._signal.disconnect(this),
this._signal=null)},__class__:ga};var s=function(a){this._head=null!=a?new ga(this,a):null;this._deferredTasks=null};s.__name__=!0;s.prototype={connectImpl:function(a,b){var c=this,d=new ga(this,a);this._head==s.DISPATCHING_SENTINEL?this.defer(function(){c.listAdd(d,b)}):this.listAdd(d,b);return d},disconnect:function(a){var b=this;this._head==s.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 ab(a);null!=b?b.next=a:this._deferredTasks=a},willEmit:function(){var a=this._head;this._head=s.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,d=this._head;null!=d;)c=d,d=d._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__:s};var na=function(a){s.call(this,a)};na.__name__=!0;na.__super__=s;na.prototype=n(s.prototype,{connect:function(a,b){null==b&&(b=!1);return this.connectImpl(a,b)},emit:function(a,b){var c=this;this._head==s.DISPATCHING_SENTINEL?this.defer(function(){c.emitImpl(a,b)}):this.emitImpl(a,b)},emitImpl:function(a,b){for(var c=this.willEmit(),d=c;null!=d;)d._listener(a,b),d.stayInList||d.dispose(),d=d._next;this.didEmit(c)},__class__:na});var m=function(a){s.call(this,a)};
m.__name__=!0;m.__super__=s;m.prototype=n(s.prototype,{connect:function(a,b){null==b&&(b=!1);return this.connectImpl(a,b)},emit:function(a){var b=this;this._head==s.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__:m});var C=function(a,b){this._behavior=null;G.call(this,a,b)};C.__name__=!0;C.__super__=G;C.prototype=n(G.prototype,{set__:function(a){this._behavior=
null;return G.prototype.set__.call(this,a)},update:function(a){null!=this._behavior&&(G.prototype.set__.call(this,this._behavior.update(a)),this._behavior.isComplete()&&(this._behavior=null))},animateTo:function(a,b,c){this.set_behavior(new Ga(this._value,a,b,c))},set_behavior:function(a){this._behavior=a;this.update(0);return a},__class__:C});var k=function(){};k.__name__=!0;k.init=function(){k._calledInit||(k._platform.init(),k._calledInit=!0)};k.loadAssetPack=function(a){return k._platform.loadAssetPack(a)};
var ma=function(){};ma.__name__=!0;ma.info=function(){null};ma.__super__=tb;ma.prototype=n(tb.prototype,{__class__:ma});var bb=function(){this._realDt=0};bb.__name__=!0;bb.__super__=r;bb.prototype=n(r.prototype,{get_name:function(){return"SpeedAdjuster_3"},onUpdate:function(a){0<this._realDt&&(a=this._realDt,this._realDt=0);this.scale.update(a)},__class__:bb});var cb=function(){};cb.__name__=!0;cb.prototype={__class__:cb};var D=function(){};D.__name__=!0;D.linear=function(a){return a};D.quintOut=
function(a){return(a-=1)*a*a*a*a+1};D.quintInOut=function(a){return 1>(a*=2)?a*a*a*a*a/2:((a-=2)*a*a*a*a+2)/2};var Ga=function(a,b,c,d){this._from=a;this._to=b;this._duration=c;this.elapsed=0;this._easing=null!=d?d:D.linear};Ga.__name__=!0;Ga.__interfaces__=[cb];Ga.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__:Ga};
var oa=function(){};oa.__name__=!0;oa.__interfaces__=[Y];var g={__ename__:!0,__constructs__:"WEBP,JXR,PNG,JPG,GIF,DDS,PVR,PKM,MP3,M4A,OPUS,OGG,WAV,Data".split(","),WEBP:["WEBP",0]};g.WEBP.toString=j;g.WEBP.__enum__=g;g.JXR=["JXR",1];g.JXR.toString=j;g.JXR.__enum__=g;g.PNG=["PNG",2];g.PNG.toString=j;g.PNG.__enum__=g;g.JPG=["JPG",3];g.JPG.toString=j;g.JPG.__enum__=g;g.GIF=["GIF",4];g.GIF.toString=j;g.GIF.__enum__=g;g.DDS=["DDS",5];g.DDS.toString=j;g.DDS.__enum__=g;g.PVR=["PVR",6];g.PVR.toString=j;g.PVR.__enum__=
g;g.PKM=["PKM",7];g.PKM.toString=j;g.PKM.__enum__=g;g.MP3=["MP3",8];g.MP3.toString=j;g.MP3.__enum__=g;g.M4A=["M4A",9];g.M4A.toString=j;g.M4A.__enum__=g;g.OPUS=["OPUS",10];g.OPUS.toString=j;g.OPUS.__enum__=g;g.OGG=["OGG",11];g.OGG.toString=j;g.OGG.__enum__=g;g.WAV=["WAV",12];g.WAV.toString=j;g.WAV.__enum__=g;g.Data=["Data",13];g.Data.toString=j;g.Data.__enum__=g;var db=function(a,b,c,d){this.name=a;this.url=b;this.format=c;this.bytes=d};db.__name__=!0;db.prototype={__class__:db};var Ha=function(){};
Ha.__name__=!0;Ha.__interfaces__=[Y];Ha.prototype={__class__:Ha};var Ia=function(){};Ia.__name__=!0;Ia.__interfaces__=[oa];Ia.prototype={__class__:Ia};var H=function(){this._localBase=this._remoteBase=null;this._entries=[]};H.__name__=!0;H.fromAssets=function(a,b){null==b&&(b=!0);var c=J.field(vb.getType(H).assets[0],a);if(null==c){if(b)throw I.withFields("Missing asset pack",["name",a]);return null}var d=new H;d.set_localBase("assets");for(var e=0;e<c.length;){var f=c[e];++e;var v=f.name,N=a+"/"+
v+"?v="+S.string(f.md5),h=H.inferFormat(v);h!=g.Data&&(v=I.removeFileExtension(v));d.add(v,N,f.bytes,h)}return d};H.inferFormat=function(a){a=I.getUrlExtension(a);if(null!=a)switch(a.toLowerCase()){case "gif":return g.GIF;case "jpg":case "jpeg":return g.JPG;case "jxr":case "wdp":return g.JXR;case "png":return g.PNG;case "webp":return g.WEBP;case "dds":return g.DDS;case "pvr":return g.PVR;case "pkm":return g.PKM;case "m4a":return g.M4A;case "mp3":return g.MP3;case "ogg":return g.OGG;case "opus":return g.OPUS;
case "wav":return g.WAV}else null;return g.Data};H.prototype={add:function(a,b,c,d){null==c&&(c=0);null==d&&(d=H.inferFormat(b));a=new db(a,b,d,c);this._entries.push(a);return a},iterator:function(){return z.iter(this._entries)},getFullURL:function(a){var b;b=null!=this.get_remoteBase()&&H._supportsCrossOrigin?this.get_remoteBase():this.get_localBase();return null!=b?I.joinPath(b,a.url):a.url},get_localBase:function(){return this._localBase},set_localBase:function(a){null!=a&&wb.that(!Za.startsWith(a,
"http://")&&!Za.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__:H};var p={__ename__:!0,__constructs__:"Normal,Add,Multiply,Screen,Mask,Copy".split(","),Normal:["Normal",0]};p.Normal.toString=j;p.Normal.__enum__=p;p.Add=["Add",1];p.Add.toString=j;p.Add.__enum__=p;p.Multiply=["Multiply",2];p.Multiply.toString=j;p.Multiply.__enum__=p;p.Screen=["Screen",3];
p.Screen.toString=j;p.Screen.__enum__=p;p.Mask=["Mask",4];p.Mask.toString=j;p.Mask.__enum__=p;p.Copy=["Copy",5];p.Copy.toString=j;p.Copy.__enum__=p;var pa=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};pa.__name__=!0;pa.prototype={__class__:pa};var h=function(){this.blendMode=this.scissor=null;var a=this;r.call(this);this._flags|=54;this._localMatrix=new O;var b=function(){a._flags|=24};this.x=new C(0,b);this.y=new C(0,b);this.rotation=new C(0,b);this.scaleX=new C(1,b);this.scaleY=
new C(1,b);this.anchorX=new C(0,b);this.anchorY=new C(0,b);this.alpha=new C(1)};h.__name__=!0;h.hitTest=function(a,b,c){var d=a._compMap.Sprite_1;if(null!=d){if(6!=(d._flags&6))return null;d.getLocalMatrix().inverseTransform(b,c,h._scratchPoint)&&(b=h._scratchPoint.x,c=h._scratchPoint.y);var e=d.scissor;if(null!=e&&!e.contains(b,c))return null}a=h.hitTestBackwards(a.firstChild,b,c);return null!=a?a:null!=d&&d.containsLocal(b,c)?d:null};h.getBounds=function(a,b){null==b&&(b=new qa);b.set(1.79769313486231E308,
1.79769313486231E308,-1.79769313486231E308,-1.79769313486231E308);h.getBoundsImpl(a,null,b);b.width-=b.x;b.height-=b.y;return b};h.render=function(a,b){var c=a._compMap.Sprite_1;if(null!=c){var d=c.alpha._value;if(0==(c._flags&2)||0>=d)return;b.save();1>d&&b.multiplyAlpha(d);null!=c.blendMode&&b.setBlendMode(c.blendMode);var d=c.getLocalMatrix(),e=d.m02,f=d.m12;0!=(c._flags&32)&&(e=Math.round(e),f=Math.round(f));b.transform(d.m00,d.m10,d.m01,d.m11,e,f);d=c.scissor;null!=d&&b.applyScissor(d.x,d.y,
d.width,d.height);c.draw(b)}d=a._compMap.Director_2;if(null!=d){d=d.occludedScenes;for(e=0;e<d.length;)f=d[e],++e,h.render(f,b)}for(d=a.firstChild;null!=d;)e=d.next,h.render(d,b),d=e;null!=c&&b.restore()};h.hitTestBackwards=function(a,b,c){if(null!=a){var d=h.hitTestBackwards(a.next,b,c);return null!=d?d:h.hitTest(a,b,c)}return null};h.getBoundsImpl=function(a,b,c){var d=a._compMap.Sprite_1;if(null!=d){var b=null!=b?O.multiply(b,d.getLocalMatrix()):d.getLocalMatrix(),e=d.getNaturalWidth(),d=d.getNaturalHeight();
0<e&&0<d&&(h.extendRect(b,0,0,c),h.extendRect(b,e,0,c),h.extendRect(b,e,d,c),h.extendRect(b,0,d,c))}e=a._compMap.Director_2;if(null!=e)for(var e=e.occludedScenes,d=0,f=e.length;d<f;)h.getBoundsImpl(e[d],b,c),++d;for(a=a.firstChild;null!=a;)e=a.next,h.getBoundsImpl(a,b,c),a=e};h.extendRect=function(a,b,c,d){a=a.transform(b,c,h._scratchPoint);b=a.x;c=a.y;b<d.x&&(d.x=b);c<d.y&&(d.y=c);b>d.width&&(d.width=b);c>d.height&&(d.height=c)};h.__super__=r;h.prototype=n(r.prototype,{get_name:function(){return"Sprite_1"},
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},setXY:function(a,b){this.x.set__(a);
this.y.set__(b);return this},setAlpha:function(a){this.alpha.set__(a);return this},setScale:function(a){this.scaleX.set__(a);this.scaleY.set__(a);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_1;if(null!=b)return b;a=a.parent}return null},get_pointerDown:function(){null==this._pointerDown&&(this._pointerDown=new m);return this._pointerDown},get_pointerMove:function(){null==this._pointerMove&&(this._pointerMove=new m);return this._pointerMove},get_pointerIn:function(){null==this._pointerIn&&(this._pointerIn=new m);return this._pointerIn},get_pointerOut:function(){null==
this._pointerOut&&(this._pointerOut=new m);return this._pointerOut},connectHover:function(){var a=this;null==this._hoverConnection&&(this._hoverConnection=k._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}))},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__:h});var Ja=function(a,b,c){h.call(this);this.color=a;this.width=new C(b);this.height=new C(c)};Ja.__name__=!0;Ja.__super__=h;Ja.prototype=n(h.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){h.prototype.onUpdate.call(this,a);this.width.update(a);this.height.update(a)},__class__:Ja});var eb=function(){};eb.__name__=!0;
eb.prototype={__class__:eb};var V=function(a){h.call(this);this.texture=a};V.__name__=!0;V.__super__=h;V.prototype=n(h.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__:V});var W={__ename__:!0,__constructs__:["Portrait","Landscape"],Portrait:["Portrait",0]};W.Portrait.toString=j;W.Portrait.__enum__=
W;W.Landscape=["Landscape",1];W.Landscape.toString=j;W.Landscape.__enum__=W;var Ka=function(){};Ka.__name__=!0;Ka.__interfaces__=[oa];Ka.prototype={__class__:Ka};var xb=function(){};xb.__name__=!0;xb.__interfaces__=[Ka];var x={__ename__:!0,__constructs__:["Left","Middle","Right","Unknown"],Left:["Left",0]};x.Left.toString=j;x.Left.__enum__=x;x.Middle=["Middle",1];x.Middle.toString=j;x.Middle.__enum__=x;x.Right=["Right",2];x.Right.toString=j;x.Right.__enum__=x;x.Unknown=function(a){a=["Unknown",3,
a];a.__enum__=x;a.toString=j;return a};var y={__ename__:!0,__constructs__:["Default","Button","None"],Default:["Default",0]};y.Default.toString=j;y.Default.__enum__=y;y.Button=["Button",1];y.Button.toString=j;y.Button.__enum__=y;y.None=["None",2];y.None.toString=j;y.None.__enum__=y;var fb=function(){this.init(0,0,0,null)};fb.__name__=!0;fb.prototype={init:function(a,b,c,d){this.id=a;this.viewX=b;this.viewY=c;this.button=d},__class__:fb};var ra={__ename__:!0,__constructs__:["Mouse","Touch"]};ra.Mouse=
function(a){a=["Mouse",0,a];a.__enum__=ra;a.toString=j;return a};ra.Touch=function(a){a=["Touch",1,a];a.__enum__=ra;a.toString=j;return a};var gb=function(){this.init(0,0,0,null,null)};gb.__name__=!0;gb.prototype={init:function(a,b,c,d,e){this.id=a;this.viewX=b;this.viewY=c;this.hit=d;this.source=e;this._stopped=!1},__class__:gb};var hb=function(a){this.id=a;this._source=ra.Touch(this)};hb.__name__=!0;hb.prototype={init:function(a,b){this.viewX=a;this.viewY=b},__class__:hb};var K=function(){};K.__name__=
!0;K.max=function(a,b){return a>b?a:b};K.min=function(a,b){return a<b?a:b};var O=function(){this.identity()};O.__name__=!0;O.multiply=function(a,b,c){null==c&&(c=new O);var d=a.m00*b.m00+a.m01*b.m10,e=a.m00*b.m01+a.m01*b.m11,f=a.m00*b.m02+a.m01*b.m12+a.m02;c.m00=d;c.m01=e;c.m02=f;d=a.m10*b.m00+a.m11*b.m10;e=a.m10*b.m01+a.m11*b.m11;f=a.m10*b.m02+a.m11*b.m12+a.m12;c.m10=d;c.m11=e;c.m12=f;return c};O.prototype={set:function(a,b,c,d,e,f){this.m00=a;this.m01=c;this.m02=e;this.m10=b;this.m11=d;this.m12=
f},identity:function(){this.set(1,0,0,1,0,0)},compose:function(a,b,c,d,e){var f=Math.sin(e),e=Math.cos(e);this.set(e*c,f*c,-f*d,e*d,a,b)},translate:function(a,b){this.m02+=this.m00*a+this.m01*b;this.m12+=this.m11*b+this.m10*a},invert:function(){var a=this.determinant();if(0==a)return!1;this.set(this.m11/a,-this.m01/a,-this.m10/a,this.m00/a,(this.m01*this.m12-this.m11*this.m02)/a,(this.m10*this.m02-this.m00*this.m12)/a);return!0},transform:function(a,b,c){null==c&&(c=new pa);c.x=a*this.m00+b*this.m01+
this.m02;c.y=a*this.m10+b*this.m11+this.m12;return c},transformArray:function(a,b,c){for(var d=0;d<b;){var e=a[d],f=a[d+1];c[d++]=e*this.m00+f*this.m01+this.m02;c[d++]=e*this.m10+f*this.m11+this.m12}},determinant:function(){return this.m00*this.m11-this.m01*this.m10},inverseTransform:function(a,b,c){var d=this.determinant();if(0==d)return!1;a-=this.m02;b-=this.m12;c.x=(a*this.m11-b*this.m01)/d;c.y=(b*this.m00-a*this.m10)/d;return!0},clone:function(a){null==a&&(a=new O);a.set(this.m00,this.m10,this.m01,
this.m11,this.m02,this.m12);return a},__class__:O};var qa=function(a,b,c,d){null==d&&(d=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.set(a,b,c,d)};qa.__name__=!0;qa.prototype={set:function(a,b,c,d){this.x=a;this.y=b;this.width=c;this.height=d},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},intersects:function(a,b){var c=
K.max(this.x,a.x),d=K.min(this.get_right(),a.get_right());if(c>d)return!1;var e=K.max(this.y,a.y),f=K.min(this.get_bottom(),a.get_bottom());if(e>f)return!1;null!=b&&b.set(c,e,d-c,f-e);return!0},clone:function(a){null==a&&(a=new qa);a.set(this.x,this.y,this.width,this.height);return a},equals:function(a){return this.x==a.x&&this.y==a.y&&this.width==a.width&&this.height==a.height},get_right:function(){return this.x+this.width},get_bottom:function(){return this.y+this.height},__class__:qa};var t=function(){};
t.__name__=!0;t.__interfaces__=[oa];t.prototype={__class__:t};var Z=function(a,b){var c=this;this.manifest=b;this._platform=a;this.promise=new La;this._bytesLoaded=new P;this._pack=new Ma(b,this);var d=Ba.array(b);if(0==d.length)this.handleSuccess();else{for(var e=new P,f=0;f<d.length;){var g=d[f];++f;var N=e.get(g.name);null==N&&(N=[],e.set(g.name,N));N.push(g)}this._assetsRemaining=Ba.count(e);for(d=e.iterator();d.hasNext();)e=[d.next()],this.pickBestEntry(e[0],function(a){return function(d){if(null!=
d){var e=b.getFullURL(d);try{c.loadEntry(e,d)}catch(f){c.handleError(d,"Unexpected error: "+S.string(f))}e=c.promise;e.set_total(e._total+d.bytes)}else d=a[0][0],Z.isAudio(d.format)?c.handleLoad(d,L.getInstance()):c.handleError(d,"Could not find a supported format to load")}}(e))}};Z.__name__=!0;Z.isAudio=function(a){switch(a[1]){case 8:case 9:case 10:case 11:case 12:return!0;default:return!1}};Z.prototype={pickBestEntry:function(a,b){this.getAssetFormats(function(c){for(var d=0;d<c.length;){var e=
c[d];++d;for(var f=0;f<a.length;){var g=a[f];++f;if(g.format==e){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,d=this._bytesLoaded.iterator();d.hasNext();)var e=d.next(),c=c+e;this.promise.set_progress(c)},handleSuccess:function(){this.promise.set_result(this._pack)},handleError:function(a,b){this.promise.error.emit(I.withFields(b,["url",a.url]))},handleTextureError:function(a){this.handleError(a,"Failed to create texture. Is the GPU context unavailable?")},__class__:Z};var Ma=function(a,b){this.disposed=!1;this._manifest=a;this.loader=
b;this.textures=new P;this.sounds=new P;this.files=new P};Ma.__name__=!0;Ma.__interfaces__=[Ha];Ma.prototype={getTexture:function(a,b){null==b&&(b=!0);var c=this.textures.get(a);if(null==c&&b)throw I.withFields("Missing texture",["name",a]);return c},getFile:function(a,b){null==b&&(b=!0);var c=this.files.get(a);if(null==c&&b)throw I.withFields("Missing file",["name",a]);return c},__class__:Ma};var sa=function(a){this._content=a};sa.__name__=!0;sa.__interfaces__=[Ia];sa.__super__=t;sa.prototype=n(t.prototype,
{toString:function(){return this._content},__class__:sa});var ib=function(){};ib.__name__=!0;ib.prototype={__class__:ib};var E=function(a){this._pointer=a;this._source=ra.Mouse(E._sharedEvent);this.down=new m;this.move=new m;this.up=new m;this.scroll=new m;this._y=this._x=0;this._cursor=y.Default;this._buttonStates=new ha};E.__name__=!0;E.__interfaces__=[ib];E.prototype={set_cursor:function(a){return this._cursor=a},submitDown:function(a,b,c){this._buttonStates.exists(c)||(this._buttonStates.set(c,
!0),this.prepare(a,b,jb.toButton(c)),this._pointer.submitDown(a,b,this._source),this.down.emit(E._sharedEvent))},submitMove:function(a,b){this.prepare(a,b,null);this._pointer.submitMove(a,b,this._source);this.move.emit(E._sharedEvent)},submitUp:function(a,b,c){this._buttonStates.exists(c)&&(this._buttonStates.remove(c),this.prepare(a,b,jb.toButton(c)),this._pointer.submitUp(a,b,this._source),this.up.emit(E._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;E._sharedEvent.init(E._sharedEvent.id+1,a,b,c)},__class__:E};var kb=function(){};kb.__name__=!0;kb.prototype={__class__:kb};var w=function(a,b,c){null==c&&(c=!1);null==b&&(b=0);null==a&&(a=0);this.down=new m;this.move=new m;this.up=new m;this._x=a;this._y=b;this._isDown=c};w.__name__=!0;w.__interfaces__=[kb];w.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 d=[],e=h.hitTest(k.root,a,b);if(null!=e){var f=e.owner;do{var g=f._compMap.Sprite_1;null!=g&&d.push(g);f=f.parent}while(null!=f)}this.prepare(a,b,e,c);for(a=0;a<d.length;)if(b=d[a],++a,b.onPointerDown(w._sharedEvent),w._sharedEvent._stopped)return;this.down.emit(w._sharedEvent)}},submitMove:function(a,b,c){if(!(a==this._x&&b==this._y)){var d=[],e=h.hitTest(k.root,a,b);if(null!=e){var f=e.owner;do{var g=f._compMap.Sprite_1;
null!=g&&d.push(g);f=f.parent}while(null!=f)}this.prepare(a,b,e,c);for(a=0;a<d.length;)if(b=d[a],++a,b.onPointerMove(w._sharedEvent),w._sharedEvent._stopped)return;this.move.emit(w._sharedEvent)}},submitUp:function(a,b,c){if(this._isDown){this.submitMove(a,b,c);this._isDown=!1;var d=[],e=h.hitTest(k.root,a,b);if(null!=e){var f=e.owner;do{var g=f._compMap.Sprite_1;null!=g&&d.push(g);f=f.parent}while(null!=f)}this.prepare(a,b,e,c);for(a=0;a<d.length;)if(b=d[a],++a,b.onPointerUp(w._sharedEvent),w._sharedEvent._stopped)return;
this.up.emit(w._sharedEvent)}},prepare:function(a,b,c,d){this._x=a;this._y=b;w._sharedEvent.init(w._sharedEvent.id+1,a,b,c,d)},__class__:w};var T=function(a,b,c){this.rootX=this.rootY=0;this.root=a;this._width=b;this._height=c};T.__name__=!0;T.__interfaces__=[xb];T.__super__=t;T.prototype=n(t.prototype,{get_width:function(){return this._width},get_height:function(){return this._height},__class__:T});var yb=function(){};yb.__name__=!0;var Da=function(a,b){null==b&&(b=4);this._pointer=a;this._maxPoints=
b;this._pointMap=new ha;this._points=[];this.down=new m;this.move=new m;this.up=new m};Da.__name__=!0;Da.__interfaces__=[yb];Da.prototype={submitDown:function(a,b,c){if(!this._pointMap.exists(a)){var d=new hb(a);d.init(b,c);this._pointMap.set(a,d);this._points.push(d);null==this._pointerTouch&&(this._pointerTouch=d,this._pointer.submitDown(b,c,d._source));this.down.emit(d)}},submitMove:function(a,b,c){a=this._pointMap.get(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 d=this._pointMap.get(a);null!=d&&(d.init(b,c),this._pointMap.remove(a),z.remove(this._points,d),this._pointerTouch==d&&(this._pointerTouch=null,this._pointer.submitUp(b,c,d._source)),this.up.emit(d))},__class__:Da};var Na=function(){};Na.__name__=!0;Na.__interfaces__=[oa];var L=function(){this._playback=new Oa(this)};L.__name__=!0;L.__interfaces__=[Na];L.getInstance=function(){null==L._instance&&(L._instance=new L);return L._instance};
L.__super__=t;L.prototype=n(t.prototype,{__class__:L});var zb=function(){};zb.__name__=!0;zb.__interfaces__=[Y];var Oa=function(a){this._sound=a;this.volume=new C(0);this._complete=new G(!0)};Oa.__name__=!0;Oa.__interfaces__=[zb];Oa.prototype={__class__:Oa};var Ea=function(){this.down=new m;this.move=new m;this.up=new m};Ea.__name__=!0;Ea.__interfaces__=[yb];Ea.prototype={__class__:Ea};var ta=function(){this._entries=[]};ta.__name__=!0;ta.__interfaces__=[Y];ta.prototype={addListener:function(a,b,
c){a.addEventListener(b,c,!1);this._entries.push(new lb(a,b,c))},addDisposingListener:function(a,b,c){var d=this;this.addListener(a,b,function(a){d.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__:ta};var lb=function(a,b,c){this.dispatcher=a;this.type=b;this.listener=c};lb.__name__=!0;lb.prototype={__class__:lb};var ua=function(){};ua.__name__=!0;ua.__interfaces__=[eb];ua.prototype=
{__class__:ua};var mb=function(){};mb.__name__=!0;mb.prototype={__class__:mb};var va=function(){};va.__name__=!0;va.__interfaces__=[mb];va.prototype={__class__:va};var ea=function(){this._tickables=[]};ea.__name__=!0;ea.updateEntity=function(a,b){var c=a._compMap.SpeedAdjuster_3;if(null!=c&&(c._realDt=b,b*=c.scale._value,0>=b)){c.onUpdate(b);return}for(c=a.firstComponent;null!=c;){var d=c.next;0==(c._flags&1)&&(c._flags|=1,c.onStart());c.onUpdate(b);c=d}for(c=a.firstChild;null!=c;)d=c.next,ea.updateEntity(c,
b),c=d};ea.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}k.volume.update(a);ea.updateEntity(k.root,a)}},render:function(a){var b=a.graphics;null!=b&&(a.willRender(),h.render(k.root,b),a.didRender())},__class__:ea};var nb=function(){};nb.__name__=!0;nb.nextPowerOfTwo=function(a){for(var b=1;b<a;)b<<=1;return b};var jb=function(){};jb.__name__=!0;jb.toButton=function(a){switch(a){case 0:return x.Left;
case 1:return x.Middle;case 2:return x.Right}return x.Unknown(a)};var Ab=function(){};Ab.__name__=!0;var Pa=function(a,b){this._firstDraw=!1;this._canvasCtx=a.getContext("2d",{alpha:b})};Pa.__name__=!0;Pa.__interfaces__=[ua];Pa.prototype={save:function(){this._canvasCtx.save()},transform:function(a,b,c,d,e,f){this._canvasCtx.transform(a,b,c,d,e,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,d,e,f,g){this._firstDraw?(this._firstDraw=!1,this._canvasCtx.globalCompositeOperation="copy",this.drawSubTexture(a,b,c,d,e,f,g),this._canvasCtx.globalCompositeOperation="source-over"):this._canvasCtx.drawImage(a.root.image,a.rootX+d|0,a.rootY+e|0,f|0,g|0,b|0,c|0,f|0,g|0)},fillRect:function(a,b,c,d,e){if(this._firstDraw)this._firstDraw=!1,this._canvasCtx.globalCompositeOperation="copy",this.fillRect(a,b,c,d,e),this._canvasCtx.globalCompositeOperation="source-over";else{for(a=(16777215&a).toString(16);6>
a.length;)a="0"+S.string(a);this._canvasCtx.fillStyle="#"+S.string(a);this._canvasCtx.fillRect(b|0,c|0,d|0,e|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,d){this._canvasCtx.beginPath();this._canvasCtx.rect(a|0,b|0,c|
0,d|0);this._canvasCtx.clip()},willRender:function(){this._firstDraw=!0},didRender:function(){},onResize:function(){},__class__:Pa};var fa=function(a){this.graphics=new Pa(a,!1);this._hasGPU=new G(!0)};fa.__name__=!0;fa.__interfaces__=[va];fa.prototype={get_type:function(){return M.Canvas},createTextureFromImage:function(a){a=new wa(fa.CANVAS_TEXTURES?i.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__:fa};var Qa=function(a,b,c){T.call(this,a,b,c)};Qa.__name__=!0;Qa.__super__=T;Qa.prototype=n(T.prototype,{__class__:Qa});var wa=function(a){this.image=a;this.width=a.width;this.height=a.height};wa.__name__=!0;wa.__interfaces__=[Ab];wa.__super__=t;wa.prototype=n(t.prototype,{createTexture:function(a,b){return new Qa(this,a,b)},__class__:wa});var l=function(a,b){Z.call(this,a,b)};l.__name__=!0;
l.detectImageFormats=function(a){var b=[g.PNG,g.JPG,g.GIF],c=2,d;d=window.document.createElement("img");d.onload=d.onerror=function(){1==d.width&&b.unshift(g.WEBP);--c;0==c&&a(b)};d.src="data:image/webp;base64,UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==";var e;e=window.document.createElement("img");e.onload=e.onerror=function(){1==e.width&&b.unshift(g.JXR);--c;0==c&&a(b)};e.src="data:image/vnd.ms-photo;base64,SUm8AQgAAAAFAAG8AQAQAAAASgAAAIC8BAABAAAAAQAAAIG8BAABAAAAAQAAAMC8BAABAAAAWgAAAMG8BAABAAAAHwAAAAAAAAAkw91vA07+S7GFPXd2jckNV01QSE9UTwAZAYBxAAAAABP/gAAEb/8AAQAAAQAAAA=="};
l.detectAudioFormats=function(){var a;a=window.document.createElement("audio");if(null==a||null==R(a,a.canPlayType))return[];var b=new ba("\\b(iPhone|iPod|iPad|Android|Windows Phone)\\b",""),c=window.navigator.userAgent;if(!q.get_supported()&&b.match(c))return[];for(var b=[{format:g.M4A,mimeType:"audio/mp4; codecs=mp4a"},{format:g.MP3,mimeType:"audio/mpeg"},{format:g.OPUS,mimeType:"audio/ogg; codecs=opus"},{format:g.OGG,mimeType:"audio/ogg; codecs=vorbis"},{format:g.WAV,mimeType:"audio/wav"}],c=[],
d=0;d<b.length;){var e=b[d];++d;var f="";try{f=a.canPlayType(e.mimeType)}catch(v){}""!=f&&c.push(e.format)}return c};l.supportsBlob=function(){if(l._detectBlobSupport){l._detectBlobSupport=!1;if((new ba("\\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;l._URL=i.loadExtension("URL").value}return null!=l._URL&&null!=l._URL.createObjectURL};
l.__super__=Z;l.prototype=n(Z.prototype,{loadEntry:function(a,b){var c=this;switch(b.format[1]){case 0:case 1:case 2:case 3:case 4:var d;d=window.document.createElement("img");var e=new ta;e.addDisposingListener(d,"load",function(){l.supportsBlob()&&l._URL.revokeObjectURL(d.src);var a=c._platform.getRenderer().createTextureFromImage(d);null!=a?c.handleLoad(b,a):c.handleTextureError(b)});e.addDisposingListener(d,"error",function(){c.handleError(b,"Failed to load image")});l.supportsBlob()?this.download(a,
b,"blob",function(a){d.src=l._URL.createObjectURL(a)}):d.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(q.get_supported())this.download(a,b,"arraybuffer",function(a){q.ctx.decodeAudioData(a,function(a){c.handleLoad(b,new q(a))},function(){c.handleLoad(b,L.getInstance())})});else{var f;f=window.document.createElement("audio");
f.preload="auto";var g=++l._mediaRefCount;null==l._mediaElements&&(l._mediaElements=new ha);l._mediaElements.set(g,f);e=new ta;e.addDisposingListener(f,"canplaythrough",function(){l._mediaElements.remove(g);c.handleLoad(b,new xa(f))});e.addDisposingListener(f,"error",function(){l._mediaElements.remove(g);var a=f.error.code;3==a||4==a?c.handleLoad(b,L.getInstance()):c.handleError(b,"Failed to load audio: "+f.error.code)});e.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 sa(a))})}},getAssetFormats:function(a){var b=this;null==l._supportedFormats&&(l._supportedFormats=new La,l.detectImageFormats(function(a){l._supportedFormats.set_result(b._platform.getRenderer().getCompressedTextureFormats().concat(a).concat(l.detectAudioFormats()).concat([g.Data]))}));l._supportedFormats.get(a)},download:function(a,b,c,d){var e=this,
f=null,g=null,h=0,i=!1,j=function(){i&&(i=!1,window.clearInterval(h))},k=3,l=function(){--k;return 0<=k?(g(),!0):!1},g=function(){j();null!=f&&f.abort();f=new XMLHttpRequest;f.open("GET",a,!0);f.responseType=c;var g=0;f.onprogress=function(a){i||(i=!0,h=window.setInterval(function(){4!=f.readyState&&5E3<Date.now()-g&&!l()&&(j(),e.handleError(b,"Download stalled"))},1E3));g=Date.now();e.handleProgress(b,a.loaded)};f.onerror=function(){if(0!=f.status||!l())j(),e.handleError(b,"HTTP error "+f.status)};
f.onload=function(){var a=f.response;null==a&&(a=f.responseText);j();d(a)};f.send()};g()},__class__:l});var Ca=function(a,b){E.call(this,a);this._canvas=b};Ca.__name__=!0;Ca.__super__=E;Ca.prototype=n(E.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 E.prototype.set_cursor.call(this,a)},__class__:Ca});var xa=function(a){this.audioElement=a};xa.__name__=!0;xa.__interfaces__=[Na];xa.__super__=t;xa.prototype=
n(t.prototype,{__class__:xa});var ob=function(){};ob.__name__=!0;ob.prototype={__class__:ob};var da=function(a){var b=this;this._canvas=a;this.resize=new $;this.scaleFactor=da.computeScaleFactor();1!=this.scaleFactor&&(i.setVendorStyle(this._canvas,"transform-origin","top left"),i.setVendorStyle(this._canvas,"transform","scale("+1/this.scaleFactor+")"));i.SHOULD_HIDE_MOBILE_BROWSER&&(window.addEventListener("orientationchange",function(){i.callLater(R(b,b.hideMobileBrowser),200)},!1),this.hideMobileBrowser());
window.addEventListener("resize",R(this,this.onWindowResize),!1);this.onWindowResize(null);this.orientation=new G(null);null!=window.orientation&&(window.addEventListener("orientationchange",R(this,this.onOrientationChange),!1),this.onOrientationChange(null));this.fullscreen=new G(!1);i.addVendorListener(window.document,"fullscreenchange",function(){b.updateFullscreen()},!1);this.updateFullscreen()};da.__name__=!0;da.__interfaces__=[ob];da.computeScaleFactor=function(){var a=window.devicePixelRatio;
null==a&&(a=1);var b=window.document.createElement("canvas").getContext("2d"),b=i.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};da.prototype={get_width:function(){return this._canvas.width},get_height:function(){return this._canvas.height},onWindowResize:function(){var a=this._canvas.parentElement.getBoundingClientRect();this.resizeCanvas(a.width,a.height)},resizeCanvas:function(a,b){var c=this.scaleFactor*
a,d=this.scaleFactor*b;if(this._canvas.width==c&&this._canvas.height==d)return!1;this._canvas.width=c|0;this._canvas.height=d|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";i.callLater(function(){i.hideMobileBrowser();i.callLater(function(){b.height=window.innerHeight+"px";a.onWindowResize(null)},100)})},onOrientationChange:function(){this.orientation.set__(i.orientation(window.orientation))},
updateFullscreen:function(){this.fullscreen.set__(!0==i.loadFirstExtension(["fullscreen","fullScreen","isFullScreen"],window.document).value)},__class__:da};var i=function(){};i.__name__=!0;i.callLater=function(a,b){null==b&&(b=0);window.setTimeout(a,b)};i.hideMobileBrowser=function(){window.scrollTo(1,0)};i.loadExtension=function(a,b){null==b&&(b=window);var c=J.field(b,a);if(null!=c)return{prefix:"",field:a,value:c};for(var c=a.charAt(0).toUpperCase()+z.substr(a,1,null),d=0,e=i.VENDOR_PREFIXES;d<
e.length;){var f=e[d];++d;var g=f+c,h=J.field(b,g);if(null!=h)return{prefix:f,field:g,value:h}}return{prefix:null,field:null,value:null}};i.loadFirstExtension=function(a,b){for(var c=0;c<a.length;){var d=a[c];++c;d=i.loadExtension(d,b);if(null!=d.field)return d}return{prefix:null,field:null,value:null}};i.polyfill=function(a,b){null==b&&(b=window);var c=i.loadExtension(a,b).value;if(null==c)return!1;b[a]=c;return!0};i.setVendorStyle=function(a,b,c){for(var a=a.style,d=0,e=i.VENDOR_PREFIXES;d<e.length;){var f=
e[d];++d;a.setProperty("-"+f+"-"+b,c)}a.setProperty(b,c)};i.addVendorListener=function(a,b,c,d){for(var e=0,f=i.VENDOR_PREFIXES;e<f.length;){var g=f[e];++e;a.addEventListener(g+b,c,d)}a.addEventListener(b,c,d)};i.orientation=function(a){switch(a){case -90:case 90:return W.Landscape;default:return W.Portrait}};i.createEmptyCanvas=function(a,b){var c;c=window.document.createElement("canvas");c.width=a;c.height=b;return c};i.createCanvas=function(a){var b=i.createEmptyCanvas(a.width,a.height),c=b.getContext("2d");
c.save();c.globalCompositeOperation="copy";c.drawImage(a,0,0);c.restore();return b};i.detectSlowDriver=function(a){if(0<=window.navigator.platform.indexOf("Win")&&null!=window.chrome){for(var b=0,a=a.getSupportedExtensions();b<a.length;){var c=a[b];++b;if(0<=c.indexOf("WEBGL_compressed_texture"))return!1}return!0}return!1};i.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 q=function(a){this.buffer=a};q.__name__=!0;q.__interfaces__=[Na];q.get_supported=function(){if(q._detectSupport){q._detectSupport=!1;var a=i.loadExtension("AudioContext").value;null!=a&&(q.ctx=new a,q.gain=q.createGain(),q.gain.connect(q.ctx.destination),k.volume.watch(function(a){q.gain.gain.value=a}))}return null!=q.ctx};q.createGain=function(){return null!=q.ctx.createGain?q.ctx.createGain():q.ctx.createGainNode()};q.__super__=t;q.prototype=n(t.prototype,{__class__:q});var pb=function(a){this._quads=
this._maxQuads=this._dataOffset=this._backbufferWidth=this._backbufferHeight=0;this._pendingSetScissor=!1;this._lastBlendMode=this._lastRenderTarget=this._lastShader=this._lastTexture=this._lastScissor=this._currentBlendMode=this._currentShader=this._currentTexture=this._currentRenderTarget=null;this._gl=a;a.clearColor(0,0,0,0);a.enable(3042);a.pixelStorei(37441,1);this._vertexBuffer=a.createBuffer();a.bindBuffer(34962,this._vertexBuffer);this._quadIndexBuffer=a.createBuffer();a.bindBuffer(34963,
this._quadIndexBuffer);this._drawTextureShader=new Ra(a);this._drawPatternShader=new Sa(a);this._fillRectShader=new Ta(a);this.resize(16)};pb.__name__=!0;pb.prototype={resizeBackbuffer:function(a,b){this._gl.viewport(0,0,a,b);this._backbufferWidth=a;this._backbufferHeight=b},willRender:function(){},didRender:function(){this.flush()},bindTexture:function(a){this.flush();this._currentTexture=this._lastTexture=null;this._gl.bindTexture(3553,a)},prepareDrawTexture:function(a,b,c,d){d!=this._lastTexture&&
(this.flush(),this._lastTexture=d);return this.prepareQuad(5,a,b,c,this._drawTextureShader)},prepareFillRect:function(a,b,c){return this.prepareQuad(6,a,b,c,this._fillRectShader)},prepareQuad:function(a,b,c,d,e){b!=this._lastRenderTarget&&(this.flush(),this._lastRenderTarget=b);c!=this._lastBlendMode&&(this.flush(),this._lastBlendMode=c);e!=this._lastShader&&(this.flush(),this._lastShader=e);if(null!=d||null!=this._lastScissor)if(null==d||null==this._lastScissor||!this._lastScissor.equals(d))this.flush(),
this._lastScissor=null!=d?d.clone(this._lastScissor):null,this._pendingSetScissor=!0;this._quads>=this._maxQuads&&this.resize(2*this._maxQuads);++this._quads;b=this._dataOffset;this._dataOffset+=4*a;return b},flush:function(){if(!(1>this._quads)){this._lastRenderTarget!=this._currentRenderTarget&&this.bindRenderTarget(this._lastRenderTarget);if(this._lastBlendMode!=this._currentBlendMode){switch(this._lastBlendMode[1]){case 0:this._gl.blendFunc(1,771);break;case 1:this._gl.blendFunc(1,1);break;case 2:this._gl.blendFunc(774,
771);break;case 3:this._gl.blendFunc(1,769);break;case 4:this._gl.blendFunc(0,770);break;case 5:this._gl.blendFunc(1,0)}this._currentBlendMode=this._lastBlendMode}this._pendingSetScissor&&(null!=this._lastScissor?(this._gl.enable(3089),this._gl.scissor(this._lastScissor.x|0,this._lastScissor.y|0,this._lastScissor.width|0,this._lastScissor.height|0)):this._gl.disable(3089),this._pendingSetScissor=!1);this._lastTexture!=this._currentTexture&&(this._gl.bindTexture(3553,this._lastTexture.root.nativeTexture),
this._currentTexture=this._lastTexture);this._lastShader!=this._currentShader&&(this._lastShader.useProgram(),this._lastShader.prepare(),this._currentShader=this._lastShader);if(this._lastShader==this._drawPatternShader){var a=this._lastTexture,b=a.root;this._drawPatternShader.setRegion(a.rootX/b.width,a.rootY/b.height,a._width/b.width,a._height/b.height)}this._gl.bufferData(34962,this.data.subarray(0,this._dataOffset),35040);this._gl.drawElements(4,6*this._quads,5123,0);this._dataOffset=this._quads=
0}},resize:function(a){this.flush();if(!(1024<a)){this._maxQuads=a;this.data=new Float32Array(24*a);this._gl.bufferData(34962,4*this.data.length,35040);for(var b=new Uint16Array(6*a),c=0;c<a;){var d=c++;b[6*d]=4*d;b[6*d+1]=4*d+1;b[6*d+2]=4*d+2;b[6*d+3]=4*d+2;b[6*d+4]=4*d+3;b[6*d+5]=4*d}this._gl.bufferData(34963,b,35044)}},bindRenderTarget:function(a){null!=a?(this._gl.bindFramebuffer(36160,a.framebuffer),this._gl.viewport(0,0,a.width,a.height)):(this._gl.bindFramebuffer(36160,null),this._gl.viewport(0,
0,this._backbufferWidth,this._backbufferHeight));this._lastRenderTarget=this._currentRenderTarget=a},__class__:pb};var Q=function(a,b){this._inverseProjection=this._stateList=null;null==Q._scratchQuadArray&&(Q._scratchQuadArray=new Float32Array(8));this._batcher=a;this._renderTarget=b};Q.__name__=!0;Q.__interfaces__=[ua];Q.prototype={save:function(){var a=this._stateList,b=this._stateList.next;null==b&&(b=new Ua,b.prev=a,a.next=b);a.matrix.clone(b.matrix);b.alpha=a.alpha;b.blendMode=a.blendMode;b.scissor=
null!=a.scissor?a.scissor.clone(b.scissor):null;this._stateList=b},transform:function(a,b,c,d,e,f){var g=this._stateList;Q._scratchMatrix.set(a,b,c,d,e,f);O.multiply(g.matrix,Q._scratchMatrix,g.matrix)},restore:function(){this._stateList=this._stateList.prev},drawTexture:function(a,b,c){this.drawSubTexture(a,b,c,0,0,a.get_width(),a.get_height())},drawSubTexture:function(a,b,c,d,e,f,g){var h=this._stateList,i=a.root,b=this.transformQuad(b,c,f,g),c=i.width,i=i.height,d=(a.rootX+d)/c,e=(a.rootY+e)/i,
f=d+f/c,g=e+g/i,c=h.alpha,a=this._batcher.prepareDrawTexture(this._renderTarget,h.blendMode,h.scissor,a),h=this._batcher.data;h[a]=b[0];h[++a]=b[1];h[++a]=d;h[++a]=e;h[++a]=c;h[++a]=b[2];h[++a]=b[3];h[++a]=f;h[++a]=e;h[++a]=c;h[++a]=b[4];h[++a]=b[5];h[++a]=f;h[++a]=g;h[++a]=c;h[++a]=b[6];h[++a]=b[7];h[++a]=d;h[++a]=g;h[++a]=c},fillRect:function(a,b,c,d,e){var f=this._stateList,b=this.transformQuad(b,c,d,e),c=(a&16711680)/16711680,d=(a&65280)/65280,a=(a&255)/255,e=f.alpha,f=this._batcher.prepareFillRect(this._renderTarget,
f.blendMode,f.scissor),g=this._batcher.data;g[f]=b[0];g[++f]=b[1];g[++f]=c;g[++f]=d;g[++f]=a;g[++f]=e;g[++f]=b[2];g[++f]=b[3];g[++f]=c;g[++f]=d;g[++f]=a;g[++f]=e;g[++f]=b[4];g[++f]=b[5];g[++f]=c;g[++f]=d;g[++f]=a;g[++f]=e;g[++f]=b[6];g[++f]=b[7];g[++f]=c;g[++f]=d;g[++f]=a;g[++f]=e},multiplyAlpha:function(a){this._stateList.alpha*=a},setBlendMode:function(a){this._stateList.blendMode=a},applyScissor:function(a,b,c,d){var e=this._stateList,f=Q._scratchQuadArray;f[0]=a;f[1]=b;f[2]=a+c;f[3]=b+d;e.matrix.transformArray(f,
4,f);this._inverseProjection.transformArray(f,4,f);a=f[0];b=f[1];c=f[2]-a;d=f[3]-b;0>c&&(a+=c,c=-c);0>d&&(b+=d,d=-d);e.applyScissor(a,b,c,d)},willRender:function(){this._batcher.willRender()},didRender:function(){this._batcher.didRender()},onResize:function(a,b){this._stateList=new Ua;var c;c=null!=this._renderTarget?-1:1;this._stateList.matrix.set(2/a,0,0,-2*c/b,-1,c);this._inverseProjection=new O;this._inverseProjection.set(2/a,0,0,2/b,-1,-1);this._inverseProjection.invert()},transformQuad:function(a,
b,c,d){var c=a+c,d=b+d,e=Q._scratchQuadArray;e[0]=a;e[1]=b;e[2]=c;e[3]=b;e[4]=c;e[5]=d;e[6]=a;e[7]=d;this._stateList.matrix.transformArray(e,8,e);return e},__class__:Q};var Ua=function(){this.scissor=this.prev=this.next=null;this.matrix=new O;this.alpha=1;this.blendMode=p.Normal};Ua.__name__=!0;Ua.prototype={applyScissor:function(a,b,c,d){if(null!=this.scissor)var e=K.max(this.scissor.x,a),f=K.max(this.scissor.y,b),c=K.min(this.scissor.x+this.scissor.width,a+c),d=K.min(this.scissor.y+this.scissor.height,
b+d),a=e,b=f,c=c-e,d=d-f;else this.scissor=new qa;this.scissor.set(Math.round(a),Math.round(b),Math.round(c),Math.round(d))},__class__:Ua};var Fa=function(a,b){var c=this;this._hasGPU=new G(!0);this.gl=b;b.canvas.addEventListener("webglcontextlost",function(a){a.preventDefault();c._hasGPU.set__(!1)},!1);b.canvas.addEventListener("webglcontextrestore",function(){c.init();c._hasGPU.set__(!0)},!1);a.resize.connect(R(this,this.onResize));this.init()};Fa.__name__=!0;Fa.__interfaces__=[va];Fa.prototype=
{get_type:function(){return M.WebGL},createTextureFromImage:function(a){if(this.gl.isContextLost())return null;var b=new aa(this,a.width,a.height);b.uploadImageData(a);return b.createTexture(a.width,a.height)},getCompressedTextureFormats:function(){return[]},createCompressedTexture:function(){this.gl.isContextLost();return null},willRender:function(){this.graphics.willRender()},didRender:function(){this.graphics.didRender()},onResize:function(){var a=this.gl.canvas.width,b=this.gl.canvas.height;this.batcher.resizeBackbuffer(a,
b);this.graphics.onResize(a,b)},init:function(){this.batcher=new pb(this.gl);this.graphics=new Q(this.batcher,null);this.onResize()},__class__:Fa};var Va=function(a,b,c){T.call(this,a,b,c)};Va.__name__=!0;Va.__super__=T;Va.prototype=n(T.prototype,{__class__:Va});var aa=function(a,b,c){this.framebuffer=null;this._renderer=a;this.width=K.max(2,nb.nextPowerOfTwo(b));this.height=K.max(2,nb.nextPowerOfTwo(c));b=a.gl;this.nativeTexture=b.createTexture();a.batcher.bindTexture(this.nativeTexture);b.texParameteri(3553,
10242,33071);b.texParameteri(3553,10243,33071);b.texParameteri(3553,10240,9729);b.texParameteri(3553,10241,9728)};aa.__name__=!0;aa.__interfaces__=[Ab];aa.drawBorder=function(a,b,c){var d=a.getContext("2d");d.drawImage(a,b-1,0,1,c,b,0,1,c);d.drawImage(a,0,c-1,b,1,0,c,b,1)};aa.__super__=t;aa.prototype=n(t.prototype,{createTexture:function(a,b){return new Va(this,a,b)},uploadImageData:function(a){if(this.width!=a.width||this.height!=a.height){var b=i.createEmptyCanvas(this.width,this.height);b.getContext("2d").drawImage(a,
0,0);aa.drawBorder(b,a.width,a.height);a=b}this._renderer.batcher.bindTexture(this.nativeTexture);this._renderer.gl.texImage2D(3553,0,6408,6408,5121,a)},__class__:aa});var F=function(a,b,c){c="#ifdef GL_ES\nprecision mediump float;\n#endif\n"+c;this._gl=a;this._program=a.createProgram();a.attachShader(this._program,F.createShader(a,35633,b));a.attachShader(this._program,F.createShader(a,35632,c));a.linkProgram(this._program);a.useProgram(this._program)};F.__name__=!0;F.createShader=function(a,b,c){b=
a.createShader(b);a.shaderSource(b,c);a.compileShader(b);return b};F.prototype={useProgram:function(){this._gl.useProgram(this._program)},prepare:function(){null},getAttribLocation:function(a){return this._gl.getAttribLocation(this._program,a)},getUniformLocation:function(a){return this._gl.getUniformLocation(this._program,a)},__class__:F};var Sa=function(a){F.call(this,a,"attribute highp vec2 a_pos;\nattribute mediump vec2 a_uv;\nattribute lowp float a_alpha;\nvarying mediump vec2 v_uv;\nvarying lowp float v_alpha;\nvoid main (void) {\nv_uv = a_uv;\nv_alpha = a_alpha;\ngl_Position = vec4(a_pos, 0, 1);\n}",
"varying mediump vec2 v_uv;\nvarying lowp float v_alpha;\nuniform lowp sampler2D u_texture;\nuniform mediump vec4 u_region;\nvoid main (void) {\ngl_FragColor = texture2D(u_texture, u_region.xy + mod(v_uv, u_region.zw)) * v_alpha;\n}");this.a_pos=this.getAttribLocation("a_pos");this.a_uv=this.getAttribLocation("a_uv");this.a_alpha=this.getAttribLocation("a_alpha");this.u_texture=this.getUniformLocation("u_texture");this.u_region=this.getUniformLocation("u_region");this.setTexture(0)};Sa.__name__=!0;
Sa.__super__=F;Sa.prototype=n(F.prototype,{setTexture:function(a){this._gl.uniform1i(this.u_texture,a)},setRegion:function(a,b,c,d){this._gl.uniform4f(this.u_region,a,b,c,d)},prepare:function(){this._gl.enableVertexAttribArray(this.a_pos);this._gl.enableVertexAttribArray(this.a_uv);this._gl.enableVertexAttribArray(this.a_alpha);this._gl.vertexAttribPointer(this.a_pos,2,5126,!1,20,0);this._gl.vertexAttribPointer(this.a_uv,2,5126,!1,20,8);this._gl.vertexAttribPointer(this.a_alpha,1,5126,!1,20,16)},
__class__:Sa});var Ra=function(a){F.call(this,a,"attribute highp vec2 a_pos;\nattribute mediump vec2 a_uv;\nattribute lowp float a_alpha;\nvarying mediump vec2 v_uv;\nvarying lowp float v_alpha;\nvoid main (void) {\nv_uv = a_uv;\nv_alpha = a_alpha;\ngl_Position = vec4(a_pos, 0, 1);\n}","varying mediump vec2 v_uv;\nvarying lowp float v_alpha;\nuniform lowp sampler2D u_texture;\nvoid main (void) {\ngl_FragColor = texture2D(u_texture, v_uv) * v_alpha;\n}");this.a_pos=this.getAttribLocation("a_pos");
this.a_uv=this.getAttribLocation("a_uv");this.a_alpha=this.getAttribLocation("a_alpha");this.u_texture=this.getUniformLocation("u_texture");this.setTexture(0)};Ra.__name__=!0;Ra.__super__=F;Ra.prototype=n(F.prototype,{setTexture:function(a){this._gl.uniform1i(this.u_texture,a)},prepare:function(){this._gl.enableVertexAttribArray(this.a_pos);this._gl.enableVertexAttribArray(this.a_uv);this._gl.enableVertexAttribArray(this.a_alpha);this._gl.vertexAttribPointer(this.a_pos,2,5126,!1,20,0);this._gl.vertexAttribPointer(this.a_uv,
2,5126,!1,20,8);this._gl.vertexAttribPointer(this.a_alpha,1,5126,!1,20,16)},__class__:Ra});var Ta=function(a){F.call(this,a,"attribute highp vec2 a_pos;\nattribute lowp vec3 a_rgb;\nattribute lowp float a_alpha;\nvarying lowp vec4 v_color;\nvoid main (void) {\nv_color = vec4(a_rgb*a_alpha, a_alpha);\ngl_Position = vec4(a_pos, 0, 1);\n}","varying lowp vec4 v_color;\nvoid main (void) {\ngl_FragColor = v_color;\n}");this.a_pos=this.getAttribLocation("a_pos");this.a_rgb=this.getAttribLocation("a_rgb");
this.a_alpha=this.getAttribLocation("a_alpha")};Ta.__name__=!0;Ta.__super__=F;Ta.prototype=n(F.prototype,{prepare:function(){this._gl.enableVertexAttribArray(this.a_pos);this._gl.enableVertexAttribArray(this.a_rgb);this._gl.enableVertexAttribArray(this.a_alpha);this._gl.vertexAttribPointer(this.a_pos,2,5126,!1,24,0);this._gl.vertexAttribPointer(this.a_rgb,3,5126,!1,24,8);this._gl.vertexAttribPointer(this.a_alpha,1,5126,!1,24,20)},__class__:Ta});var Wa=function(){this._width=this._height=-1;this._transitor=
null;r.call(this);this.scenes=[];this.occludedScenes=[];this._root=new B};Wa.__name__=!0;Wa.__super__=r;Wa.prototype=n(r.prototype,{get_name:function(){return"Director_2"},pushScene:function(a,b){var c=this;this.completeTransition();var d=this.get_topScene();null!=d?this.playTransition(d,a,b,function(){c.hide(d)}):(this.add(a),this.invalidateVisibility())},unwindToScene:function(a,b){var c=this;this.completeTransition();var d=this.get_topScene();if(null!=d){if(d!=a){for(this.scenes.pop();0<this.scenes.length&&
this.scenes[this.scenes.length-1]!=a;)this.scenes.pop().dispose();this.playTransition(d,a,b,function(){c.hideAndDispose(d)})}}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_0;null!=a&&a.hidden.emit()},hideAndDispose:function(a){this.hide(a);a.dispose()},show:function(a){a=a._compMap.Scene_0;null!=a&&a.shown.emit()},invalidateVisibility:function(){for(var a=this.scenes.length;0<a;){var b=this.scenes[--a]._compMap.Scene_0;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,d){this.completeTransition();this.add(b);null!=c?(this.occludedScenes.push(a),this._transitor=new qb(a,b,c,d),this._transitor.init(this)):(d(),this.invalidateVisibility())},get_width:function(){return 0>this._width?k._platform.getStage().get_width():
this._width},get_height:function(){return 0>this._height?k._platform.getStage().get_height():this._height},__class__:Wa});var qb=function(a,b,c,d){this._from=a;this._to=b;this._transition=c;this._onComplete=d};qb.__name__=!0;qb.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__:qb};var ia=function(a){null==a&&(a=!0);r.call(this);this.opaque=a;this.shown=
new $;this.hidden=new $};ia.__name__=!0;ia.__super__=r;ia.prototype=n(r.prototype,{get_name:function(){return"Scene_0"},__class__:ia});var ya=function(){};ya.__name__=!0;ya.prototype={init:function(a,b,c){this._director=a;this._from=b;this._to=c},update:function(){return!0},complete:function(){},__class__:ya};var X=function(a,b){this._duration=a;this._ease=null!=b?b:D.linear};X.__name__=!0;X.__super__=ya;X.prototype=n(ya.prototype,{init:function(a,b,c){ya.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__:X});var Xa=function(a,b){this._direction=2;X.call(this,a,b)};Xa.__name__=!0;Xa.__super__=X;Xa.prototype=n(X.prototype,{left:function(){this._direction=2;return this},init:function(a,b,c){X.prototype.init.call(this,a,b,c);switch(this._direction){case 0:this._x=0;this._y=-this._director.get_height();break;case 1:this._x=0;this._y=this._director.get_height();
break;case 2:this._x=-this._director.get_width();this._y=0;break;case 3:this._x=this._director.get_width(),this._y=0}a=this._from._compMap.Sprite_1;null==a&&this._from.add(a=new h);a.setXY(0,0);a=this._to._compMap.Sprite_1;null==a&&this._to.add(a=new h);a.setXY(-this._x,-this._y)},update:function(a){a=X.prototype.update.call(this,a);this._from._compMap.Sprite_1.setXY(this.interp(0,this._x),this.interp(0,this._y));this._to._compMap.Sprite_1.setXY(this.interp(-this._x,0),this.interp(-this._y,0));return a},
complete:function(){this._from._compMap.Sprite_1.setXY(0,0);this._to._compMap.Sprite_1.setXY(0,0)},__class__:Xa});var M={__ename__:!0,__constructs__:["Stage3D","WebGL","Canvas"],Stage3D:["Stage3D",0]};M.Stage3D.toString=j;M.Stage3D.__enum__=M;M.WebGL=["WebGL",1];M.WebGL.toString=j;M.WebGL.__enum__=M;M.Canvas=["Canvas",2];M.Canvas.toString=j;M.Canvas.__enum__=M;var wb=function(){};wb.__name__=!0;wb.that=function(){};var o={__ename__:!0,__constructs__:["Info","Warn","Error"],Info:["Info",0]};o.Info.toString=
j;o.Info.__enum__=o;o.Warn=["Warn",1];o.Warn.toString=j;o.Warn.__enum__=o;o.Error=["Error",2];o.Error.toString=j;o.Error.__enum__=o;var Db=function(){};Db.__name__=!0;var La=function(){this.success=new m;this.error=new m;this.progressChanged=new $;this.hasResult=!1;this._total=this._progress=0};La.__name__=!0;La.prototype={set_result:function(a){if(this.hasResult)throw"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__:La};var $=function(a){s.call(this,a)};$.__name__=!0;$.__super__=s;$.prototype=n(s.prototype,{connect:function(a,b){null==b&&(b=!1);return this.connectImpl(a,b)},emit:function(){var a=this;this._head==s.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__:$});var ab=function(a){this.next=null;this.fn=a};ab.__name__=!0;ab.prototype={__class__:ab};var I=function(){};I.__name__=!0;I.getFileExtension=function(a){var b=a.lastIndexOf(".");return 0<b?z.substr(a,b+1,null):null};I.removeFileExtension=function(a){var b=a.lastIndexOf(".");return 0<b?z.substr(a,0,b):a};I.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 I.getFileExtension(a)};I.joinPath=function(a,b){0<a.length&&47!=a.charCodeAt(a.length-1)&&(a+="/");return a+b};I.withFields=function(a,b){var c=b.length;if(0<c){for(var a=0<a.length?a+" [":a+"[",d=0;d<c;){0<d&&(a+=", ");var e=b[d],f=b[d+1];if(S.is(f,Error)){var g=f.stack;null!=g&&(f=g)}a+=e+"="+S.string(f);d+=2}a+="]"}return a};var ja=function(a){this._tagPrefix=a+": "};ja.__name__=!0;ja.__interfaces__=[Db];ja.prototype=
{log:function(){},__class__:ja};var za=function(){this.dropSignal=new m;this.dragSignal=new m;this.updateSignal=new m;r.call(this)};za.__name__=!0;za.__super__=r;za.prototype=n(r.prototype,{get_name:function(){return"Draggable_5"},onPointerDown:function(a){var b=this.owner._compMap.Sprite_1;this._offset=new pa(a.viewX-b.x._value,a.viewY-b.y._value);this._start=this._dragging=!0;k._platform.getMouse().set_cursor(y.Button)},onUpdate:function(){if(this._dragging)if(k._platform.getPointer().isDown()){var a=
this.owner._compMap.Sprite_1;a.setXY(k._platform.getPointer().get_x()-this._offset.x,k._platform.getPointer().get_y()-this._offset.y);this.updateSignal.emit(a);this._start&&(this.dragSignal.emit(this.owner),this._start=!1)}else this._dragging=this._start=!1,k._platform.getMouse().set_cursor(y.Default),this.dropSignal.emit(this.owner)},onAdded:function(){this._connection=this.owner._compMap.Sprite_1.get_pointerDown().connect(R(this,this.onPointerDown))},onRemoved:function(){this._connection.dispose()},
__class__:za});var rb=function(a,b){this.slotsCounter={fruits:0,vegetables:0,cereal:0,fats:0,proteins:0,dairy:0};this.counter=0;this.dragConnectionCache=new P;this.dropConnectionCache=new P;this.restartButtonDown=new m;this.startButtonDown=new m;var c=this;this.gameEntity=a;this.gameLayer=new B;this.msgLayer=new B;this.gameEntity.addChild(this.gameLayer);this.gameEntity.addChild(this.msgLayer);this.logger=new ja("context-logger");this.logger.log(o.Info,"GameContext created.");this.model=JSON.parse(b.getFile("model.json").toString());
this.pack=b;this.entityByNameCache=new P;this.nameByEntityCache=new ka;this.startButtonDown.connect(function(a){u.hide(a)});this.restartButtonDown.connect(function(a){u.hide(a);c.restartGame()});this.createOverlays();this.createScene();u.show(this.startMsg,!1)};rb.__name__=!0;rb.prototype={createOverlays:function(){this.startMsg=u.create({buttonX:305,buttonY:384,msgTexture:"msgStart",buttonTexture:"btnStart"},this.pack,this.startButtonDown);this.msgLayer.addChild(this.startMsg);this.eogMsg=u.create({buttonX:250,
buttonY:390,msgTexture:"msgEnd",buttonTexture:"btnEnd"},this.pack,this.restartButtonDown);this.msgLayer.addChild(this.eogMsg)},createScene:function(){this.productsContainer=new B;this.gameLayer.addChild(this.productsContainer);for(var a=0,b=this.model.fruits;a<b.length;){var c=b[a];++a;J.field(this.model.trolleyByProduct,c.id);var d=this.createSprite(c.id,!0);this.productsContainer.addChild(d);this.entityByNameCache.set(c.id,d);d;c=c.id;this.nameByEntityCache.set(d,c);c}a=0;for(b=this.model.trolleys;a<
b.length;)c=b[a],++a,d=this.createSprite(c.id),this.productsContainer.addChild(d),this.entityByNameCache.set(c.id,d),d,c=c.id,this.nameByEntityCache.set(d,c),c},handleDrag:function(a){a.parent.addChild(a)},handleDrop:function(a){var b=this.check(a);null!=b?this.dropSuccess(a,b):this.dropFailed(a)},createSprite:function(a,b){null==b&&(b=!1);var c=new B,d=J.field(this.model.positionById,a),d=(new V(this.pack.getTexture(a))).setXY(d.x,d.y);c.add(d);if(b){var d=new za,e=d.dragSignal.connect(R(this,this.handleDrag));
this.dragConnectionCache.set(a,e);e;e=d.dropSignal.connect(R(this,this.handleDrop));this.dropConnectionCache.set(a,e);e;c.add(d);c.add(new Aa)}return c},dropSuccess:function(a,b){this.logger.log(o.Info,"Success! "+this.nameByEntityCache.h[a.__id__]+" "+this.nameByEntityCache.h[b.__id__]);var c=this.nameByEntityCache.h[a.__id__],d=a._compMap.Sprite_1;a.remove(a._compMap.Draggable_5);a.remove(a._compMap.UseHandCursor_4);this.dragConnectionCache.get(c).dispose();this.dropConnectionCache.get(c).dispose();
this.logger.log(o.Info,"1");this.counter++;var c=this.nameByEntityCache.h[b.__id__],e=J.field(this.slotsCounter,c);this.slotsCounter[c]=e+1;c=J.field(this.model.slotsPerTrolley,c)[e];this.logger.log(o.Info,"2");d.x.animateTo(c.x,0.5,D.quintOut);d.y.animateTo(c.y,0.5,D.quintOut);d.anchorX.set__(Math.round(d.getNaturalWidth()/2));d.anchorY.set__(Math.round(d.getNaturalHeight()));d.scaleX.animateTo(0.5,0.5,D.quintOut);d.scaleY.animateTo(0.5,0.5,D.quintOut);this.logger.log(o.Info,"3");b.parent.addChild(b);
this.counter==this.model.fruits.length&&this.endOfGame();this.logger.log(o.Info,"4")},dropFailed:function(a){var b=J.field(this.model.positionById,this.nameByEntityCache.h[a.__id__]),a=a._compMap.Sprite_1;a.x.animateTo(b.x,0.5,D.quintOut);a.y.animateTo(b.y,0.5,D.quintOut)},endOfGame:function(){var a=this;la.delay(function(){u.show(a.eogMsg)},1E3)},check:function(a){var b=this.nameByEntityCache.h[a.__id__],a=J.field(this.model.trolleyByProduct,b),b=this.entityByNameCache.get(b),a=this.entityByNameCache.get(a),
b=h.getBounds(b),c=h.getBounds(a);return b.intersects(c)?a:null},restartGame:function(){this.logger.log(o.Info,"restarting game...");this.counter=0;this.slotsCounter={fruits:0,vegetables:0,cereal:0,fats:0,proteins:0,dairy:0};for(var a=0,b=this.model.fruits;a<b.length;){var c=b[a];++a;var d;d=this.entityByNameCache.get(c.id);var e=J.field(this.model.positionById,c.id);d._compMap.Sprite_1.anchorX.set__(0);d._compMap.Sprite_1.anchorY.set__(0);d._compMap.Sprite_1.setXY(e.x,e.y).setScale(1).setAlpha(1);
var e=new za,f=c.id,g=e.dragSignal.connect(R(this,this.handleDrag));this.dragConnectionCache.set(f,g);g;c=c.id;f=e.dropSignal.connect(R(this,this.handleDrop));this.dropConnectionCache.set(c,f);f;d.add(e).add(new Aa)}},__class__:rb};var Bb=function(){};Bb.__name__=!0;Bb.create=function(a){return(new B).add(new ia).add(new V(a.getTexture("game")))};var U=function(){var a=this;U.logger.log(o.Info,"Hello!");k.init();k.root.add(this.director=new Wa);this["goto"]((new B).add(new ia).add(new Ja(16777215,
800,600)));la.delay(function(){k.loadAssetPack(H.fromAssets("bootstrap")).get(function(b){U.logger.log(o.Info,"Loading bootstrap pack...");b=Cb.create(b);b._compMap.Scene_0.shown.connect(function(){U.logger.log(o.Info,"Loading game pack...");k.loadAssetPack(H.fromAssets("game")).get(function(b){U.logger.log(o.Info,"Loading done!");var d=Bb.create(b);new rb(d,b);d._compMap.Scene_0.shown.connect(function(){});a["goto"](d)})});a["goto"](b)})},50)};U.__name__=!0;U.main=function(){new U};U.prototype={"goto":function(a){this.director.unwindToScene(a,
(new Xa(1,D.quintInOut)).left())},__class__:U};var u=function(){};u.__name__=!0;u.create=function(a,b,c){var d=(new B).add(new h),e=new V(b.getTexture(a.msgTexture)),e=(new B).add(e),b=(new B).add(new V(b.getTexture(a.buttonTexture))),f=b._compMap.Sprite_1;f.setXY(a.buttonX,a.buttonY);f.get_pointerDown().connect(function(){c.emit(u.active);u.logger.log(o.Info,S.string(u.active)+"")});d.addChild(e);d.addChild(b);d._compMap.Sprite_1.x.set__(800);return d};u.show=function(a,b){null==b&&(b=!0);u.logger.log(o.Info,
"show");a._compMap.Sprite_1.x.set__(800);a._compMap.Sprite_1.x.animateTo(0,b?0.5:0,D.quintOut);u.active=a};u.hide=function(a){u.logger.log(o.Info,"hide "+S.string(u.active));a._compMap.Sprite_1.x.animateTo(800,0.5,D.quintOut)};var Cb=function(){};Cb.__name__=!0;Cb.create=function(a){return(new B).add(new ia).add(new V(a.getTexture("splash")))};var Aa=function(){r.call(this)};Aa.__name__=!0;Aa.__super__=r;Aa.prototype=n(r.prototype,{get_name:function(){return"UseHandCursor_4"},onAdded:function(){var a=
this.owner._compMap.Sprite_1;this._connectionIn=a.get_pointerIn().connect(function(){k._platform.getMouse().set_cursor(y.Button)});this._connectionOut=a.get_pointerOut().connect(function(){k._platform.getMouse().set_cursor(y.Default)});this._connectionMove=a.get_pointerMove().connect(function(){k._platform.getMouse().set_cursor(y.Button)})},onRemoved:function(){var a=this.owner._compMap.Sprite_1;a.get_pointerIn().disconnect(this._connectionIn);a.get_pointerOut().disconnect(this._connectionOut);a.get_pointerMove().disconnect(this._connectionMove)},
__class__:Aa});var la=function(a){var b=this;this.id=setInterval(function(){b.run()},a)};la.__name__=!0;la.delay=function(a,b){var c=new la(b);c.run=function(){c.stop();a()};return c};la.prototype={stop:function(){null!=this.id&&(clearInterval(this.id),this.id=null)},run:function(){},__class__:la};var ha=function(){this.h={}};ha.__name__=!0;ha.__interfaces__=[Ya];ha.prototype={set:function(a,b){this.h[a]=b},get:function(a){return this.h[a]},exists:function(a){return this.h.hasOwnProperty(a)},remove:function(a){if(!this.h.hasOwnProperty(a))return!1;
delete this.h[a];return!0},__class__:ha};var ka=function(){this.h={};this.h.__keys__={}};ka.__name__=!0;ka.__interfaces__=[Ya];ka.prototype={set:function(a,b){var c=a.__id__||(a.__id__=++ka.count);this.h[c]=b;this.h.__keys__[c]=a},__class__:ka};var P=function(){this.h={}};P.__name__=!0;P.__interfaces__=[Ya];P.prototype={set:function(a,b){this.h["$"+a]=b},get:function(a){return this.h["$"+a]},keys:function(){var a=[],b;for(b in this.h)this.h.hasOwnProperty(b)&&a.push(b.substr(1));return z.iter(a)},
iterator:function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){return this.ref["$"+this.it.next()]}}},__class__:P};var vb=function(){};vb.__name__=!0;vb.getType=function(a){a=a.__meta__;return null==a||null==a.obj?{}:a.obj};var A=function(){};A.__name__=!0;A.getClass=function(a){return a instanceof Array&&null==a.__enum__?Array:a.__class__};A.__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",d=2,e=a.length;d<e;)var f=d++,c=2!=f?c+(","+A.__string_rec(a[f],b)):c+A.__string_rec(a[f],b);return c+")"}c=a.length;d="[";b+="\t";for(e=0;e<c;)f=e++,d+=(0<f?",":"")+A.__string_rec(a[f],b);return d+"]"}try{d=a.toString}catch(g){return"???"}if(null!=d&&d!=Object.toString&&(c=a.toString(),"[object Object]"!=c))return c;c=null;d="{\n";b+="\t";e=
null!=a.hasOwnProperty;for(c in a)if(!e||a.hasOwnProperty(c))"prototype"==c||"__class__"==c||"__super__"==c||"__interfaces__"==c||"__properties__"==c||(2!=d.length&&(d+=", \n"),d+=b+c+" : "+A.__string_rec(a[c],b));b=b.substring(1);return d+("\n"+b+"}");case "function":return"<function>";case "string":return a;default:return""+a}};A.__interfLoop=function(a,b){if(null==a)return!1;if(a==b)return!0;var c=a.__interfaces__;if(null!=c)for(var d=0,e=c.length;d<e;){var f=d++,f=c[f];if(f==b||A.__interfLoop(f,
b))return!0}return A.__interfLoop(a.__super__,b)};A.__instanceof=function(a,b){if(null==b)return!1;switch(b){case Hb:return(a|0)===a;case Eb:return"number"==typeof a;case Fb:return"boolean"==typeof a;case String:return"string"==typeof a;case Array:return a instanceof Array&&null==a.__enum__;case Ib:return!0;default:if(null!=a){if("function"==typeof b&&(a instanceof b||A.__interfLoop(A.getClass(a),b)))return!0}else return!1;return b==Jb&&null!=a.__name__||b==Kb&&null!=a.__ename__?!0:a.__enum__==b}};
var ub=function(){};ub.__name__=!0;ub.getContextWebGL=function(a,b){for(var c=0,d=["webgl","experimental-webgl"];c<d.length;){var e=d[c];++c;e=a.getContext(e,b);if(null!=e)return e}return null};var Gb=0;Math.NaN=Number.NaN;Math.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY;Math.POSITIVE_INFINITY=Number.POSITIVE_INFINITY;Math.isFinite=function(a){return isFinite(a)};Math.isNaN=function(a){return isNaN(a)};String.prototype.__class__=String;String.__name__=!0;Array.__name__=!0;Date.prototype.__class__=
Date;Date.__name__=["Date"];var Hb={__name__:["Int"]},Ib={__name__:["Dynamic"]},Eb=Number;Eb.__name__=["Float"];var Fb=Boolean;Fb.__ename__=["Bool"];var Jb={__name__:["Class"]},Kb={};ca.instance=new ca;s.DISPATCHING_SENTINEL=new ga(null,null);k.root=new B;k.uncaughtError=new m;k.hidden=new G(!1);k.volume=new C(1);k._platform=ca.instance;k._calledInit=!1;H.__meta__={obj:{assets:[{bootstrap:[{bytes:5031,md5:"6ce6bfd1a8dc619872697a7d53f7155e",name:"splash.png"}],game:[{bytes:5554,md5:"622789200d2b9ff653580ba7133a3482",
name:"btnEnd.png"},{bytes:4471,md5:"06e02a34db8a24cb272d0541bc493b6a",name:"btnStart.png"},{bytes:6050,md5:"225f3b04594503aa3343162926596776",name:"bulka.png"},{bytes:30255,md5:"6b00600e496c47f918c2cd953ce4b4c8",name:"cart.png"},{bytes:30255,md5:"6b00600e496c47f918c2cd953ce4b4c8",name:"cereal.png"},{bytes:12936,md5:"ab038e0b7b0e5e1e631f97af8397d23f",name:"chleb.png"},{bytes:24239,md5:"487da4b618242476111b66021926068c",name:"dairy.png"},{bytes:17220,md5:"0b96e0e8640c9a8d0afae6595346ba7b",name:"fats.png"},
{bytes:17220,md5:"0b96e0e8640c9a8d0afae6595346ba7b",name:"fruits.png"},{bytes:101763,md5:"2525f85a7adea06eba181b5adfcdc450",name:"game.png"},{bytes:7184,md5:"d8e784c7fdfe7333ea48ef161573db46",name:"jablko.png"},{bytes:11367,md5:"1937657908d783b522462c2f5e07c5c6",name:"jajka.png"},{bytes:14878,md5:"6477ebfe93fe2aa58b2ff88e137d2801",name:"kasza.png"},{bytes:5752,md5:"79932ed131aba3b9b43dc873049e1d86",name:"kefir.png"},{bytes:4249,md5:"e05349bc61dbb0d5634363cca681edc0",name:"kiwi.png"},{bytes:13880,
md5:"b5a1d1f251d616bc5a6401bbe7a51413",name:"makaron.png"},{bytes:11077,md5:"65e17b4ee4a9dd33f002d7d4999ce358",name:"mieso.png"},{bytes:3879,md5:"d53d9605c093a3513adf2b8609291237",name:"mleko.png"},{bytes:3435,md5:"1046ca3a3a2b297c07a4b9511cc75f47",name:"model.json"},{bytes:118036,md5:"655b2f2c5226e0c4722e8226d530112f",name:"msgEnd.png"},{bytes:157884,md5:"51098060b2c1898a2a5a8b8dbc25f48d",name:"msgStart.png"},{bytes:9756,md5:"7fa090e72f9d6edb6ecd342a40fcdd68",name:"ogorek.png"},{bytes:7743,md5:"380a6db62c3aac512e944b80d99a8dfd",
name:"olej.png"},{bytes:14099,md5:"dcf5acdefcf2199a3357438a879e543b",name:"platki.png"},{bytes:7126,md5:"4ed2669099426bb2a1d7dc43feeac850",name:"pomidor.png"},{bytes:17220,md5:"0b96e0e8640c9a8d0afae6595346ba7b",name:"proteins.png"},{bytes:11294,md5:"23682214afff01d25b2bb15f175a277e",name:"ryby.png"},{bytes:14286,md5:"9c0e8e60d0f4c95daeeb55b9c4572d54",name:"ryz.png"},{bytes:6989,md5:"727b86381c98ba00c5baaf6c1eee1241",name:"ser.png"},{bytes:10359,md5:"a606d0828705d5f2001158fbdc88e6a6",name:"smietana.png"},
{bytes:7663,md5:"85f23845a9ecbdc95bd4261444461151",name:"sok_pomaranczowy.png"},{bytes:6715,md5:"7531d0968070182e3267b7de91d4f677",name:"soku_marchewkowy.png"},{bytes:24239,md5:"487da4b618242476111b66021926068c",name:"vegetables.png"},{bytes:16498,md5:"e71aec656c5c166e9ef7c2f2f98fb8b6",name:"zielona_salata.png"}]}]}};H._supportsCrossOrigin=function(){var a;a=0<=window.navigator.userAgent.indexOf("Linux; U; Android")?!1:null!=(new XMLHttpRequest).withCredentials;a||null;return a}();h._scratchPoint=
new pa;E._sharedEvent=new fb;w._sharedEvent=new gb;fa.CANVAS_TEXTURES=(new ba("(iPhone|iPod|iPad)","")).match(window.navigator.userAgent);l._mediaRefCount=0;l._detectBlobSupport=!0;i.VENDOR_PREFIXES=["webkit","moz","ms","o","khtml"];i.SHOULD_HIDE_MOBILE_BROWSER=window.top==window&&(new ba("Mobile(/.*)? Safari","")).match(window.navigator.userAgent);q._detectSupport=!0;Q._scratchMatrix=new O;U.logger=new ja("main-logger");u.logger=new ja("overlay");ka.count=0;U.main()})();
