!function(e,t){"use strict";e.openfl=e.openfl||{},e.lime=e.lime||{};var s={},c=function(){return Lp.__string_rec(this,"")};function n(e,t){function s(){}s.prototype=e;var n=new s;for(var i in t)n[i]=t[i];return t.toString!==Object.prototype.toString&&(n.toString=t.toString),n}var qr=function(){};(s.ApplicationMain=qr).__name__=["ApplicationMain"],qr.config=null,qr.preloader=null,qr.create=function(){var e=new $g;e.create(qr.config);var t=new Be;qr.preloader=new Dw(t),e.setPreloader(qr.preloader),qr.preloader.onComplete.add(qr.init),qr.preloader.create(qr.config);var s=[],n=[];if(s.push("assets/sounds/2.m4a"),n.push("SOUND"),s.push("assets/sounds/8_Pop3.mp3"),n.push("MUSIC"),s.push("assets/sounds/14_FireRingSnd.m4a"),n.push("SOUND"),s.push("assets/sounds/6_SelltowerSnd.mp3"),n.push("MUSIC"),s.push("assets/sounds/0.wav"),n.push("SOUND"),s.push("assets/sounds/18_metalclink.m4a"),n.push("SOUND"),s.push("assets/sounds/5_IceSnd.mp3"),n.push("MUSIC"),s.push("assets/sounds/18_metalclink.mp3"),n.push("MUSIC"),s.push("assets/sounds/1907.m4a"),n.push("SOUND"),s.push("assets/sounds/7_Pop4.m4a"),n.push("SOUND"),s.push("assets/sounds/2_Btd4Music.m4a"),n.push("MUSIC"),s.push("assets/sounds/3_CollectUnlockSnd.mp3"),n.push("MUSIC"),s.push("assets/sounds/2135.mp3"),n.push("MUSIC"),s.push("assets/sounds/16_CeramicSnd.m4a"),n.push("SOUND"),s.push("assets/sounds/4_TornadoSnd.m4a"),n.push("SOUND"),s.push("assets/sounds/9_Pop2.m4a"),n.push("SOUND"),s.push("assets/sounds/19_BombSnd.m4a"),n.push("SOUND"),s.push("assets/sounds/11_TowerPlaceSnd.m4a"),n.push("SOUND"),s.push("assets/sounds/19_BombSnd.mp3"),n.push("MUSIC"),s.push("assets/sounds/3_CollectUnlockSnd.m4a"),n.push("SOUND"),s.push("assets/sounds/4_TornadoSnd.mp3"),n.push("MUSIC"),s.push("assets/sounds/13_RankUpSnd.mp3"),n.push("MUSIC"),s.push("assets/sounds/7_Pop4.mp3"),n.push("MUSIC"),s.push("assets/sounds/17_splat.m4a"),n.push("SOUND"),s.push("assets/sounds/1_ZeppHitSnd.m4a"),n.push("SOUND"),s.push("assets/sounds/13_RankUpSnd.m4a"),n.push("SOUND"),s.push("assets/sounds/8_Pop3.m4a"),n.push("SOUND"),s.push("assets/sounds/0.m4a"),n.push("SOUND"),s.push("assets/sounds/1_ZeppHitSnd.mp3"),n.push("MUSIC"),s.push("assets/sounds/2_Btd4Music.mp3"),n.push("MUSIC"),s.push("assets/sounds/2135.m4a"),n.push("SOUND"),s.push("assets/sounds/6_SelltowerSnd.m4a"),n.push("SOUND"),s.push("assets/sounds/9_Pop2.mp3"),n.push("MUSIC"),s.push("assets/sounds/1907.mp3"),n.push("MUSIC"),s.push("assets/sounds/15_ZeppSmash.m4a"),n.push("SOUND"),s.push("assets/sounds/14_FireRingSnd.mp3"),n.push("MUSIC"),s.push("assets/sounds/15_ZeppSmash.mp3"),n.push("MUSIC"),s.push("assets/sounds/2179.mp3"),n.push("MUSIC"),s.push("assets/sounds/12_PineSnd.mp3"),n.push("MUSIC"),s.push("assets/sounds/687.mp3"),n.push("MUSIC"),s.push("assets/sounds/10_Pop1.m4a"),n.push("SOUND"),s.push("assets/sounds/12_PineSnd.m4a"),n.push("SOUND"),s.push("assets/sounds/17_splat.mp3"),n.push("MUSIC"),s.push("assets/sounds/11_TowerPlaceSnd.mp3"),n.push("MUSIC"),s.push("assets/sounds/687.m4a"),n.push("SOUND"),s.push("assets/sounds/10_Pop1.mp3"),n.push("MUSIC"),s.push("assets/sounds/5_IceSnd.m4a"),n.push("SOUND"),s.push("assets/sounds/16_CeramicSnd.mp3"),n.push("MUSIC"),s.push("assets/sounds/2179.m4a"),n.push("SOUND"),s.push("assets/fonts/743_Trebuchet MS.svg"),n.push("TEXT"),s.push("assets/fonts/1582_Trebuchet MS.woff"),n.push("BINARY"),s.push("assets/fonts/526_Arial Black.woff2"),n.push("BINARY"),s.push("assets/fonts/849_Yikes!.json"),n.push("TEXT"),s.push("assets/fonts/164_Yikes!.svg"),n.push("TEXT"),s.push("assets/fonts/1546_Visitor TT2 BRK.svg"),n.push("TEXT"),s.push("assets/fonts/899_McBoing Boing.eot"),n.push("BINARY"),s.push("assets/fonts/899_McBoing Boing.woff"),n.push("BINARY"),s.push("assets/fonts/526_Arial Black.svg"),n.push("TEXT"),s.push("assets/fonts/831_Verdana.eot"),n.push("BINARY"),s.push("assets/fonts/899_McBoing Boing.svg"),n.push("TEXT"),s.push("assets/fonts/1404_Cartoonist.svg"),n.push("TEXT"),s.push("assets/fonts/1865_Arial.svg"),n.push("TEXT"),s.push("Trebuchet MS"),n.push("FONT"),s.push("assets/fonts/1582_Trebuchet MS.svg"),n.push("TEXT"),s.push("assets/fonts/1546_Visitor TT2 BRK.woff"),n.push("BINARY"),s.push("assets/fonts/743_Trebuchet MS.eot"),n.push("BINARY"),s.push("assets/fonts/1404_Cartoonist.json"),n.push("TEXT"),s.push("assets/fonts/2103_Tahoma.woff2"),n.push("BINARY"),s.push("assets/fonts/717_Tahoma.woff2"),n.push("BINARY"),s.push("assets/fonts/1582_Trebuchet MS.eot"),n.push("BINARY"),s.push("Arial"),n.push("FONT"),s.push("assets/fonts/1455_Cartoonist.json"),n.push("TEXT"),s.push("assets/fonts/164_Yikes!.json"),n.push("TEXT"),s.push("assets/fonts/849_Yikes!.woff2"),n.push("BINARY"),s.push("assets/fonts/899_McBoing Boing.json"),n.push("TEXT"),s.push("assets/fonts/1404_Cartoonist.eot"),n.push("BINARY"),s.push("assets/fonts/1546_Visitor TT2 BRK.json"),n.push("TEXT"),s.push("assets/fonts/743_Trebuchet MS.json"),n.push("TEXT"),s.push("assets/fonts/1455_Cartoonist.eot"),n.push("BINARY"),s.push("assets/fonts/526_Arial Black.json"),n.push("TEXT"),s.push("assets/fonts/831_Verdana.woff2"),n.push("BINARY"),s.push("Arial Black"),n.push("FONT"),s.push("assets/fonts/1546_Visitor TT2 BRK.woff2"),n.push("BINARY"),s.push("assets/fonts/164_Yikes!.woff2"),n.push("BINARY"),s.push("Yikes!"),n.push("FONT"),s.push("Cartoonist"),n.push("FONT"),s.push("assets/fonts/2103_Tahoma.eot"),n.push("BINARY"),s.push("assets/fonts/164_Yikes!.woff"),n.push("BINARY"),s.push("assets/fonts/1404_Cartoonist.woff2"),n.push("BINARY"),s.push("assets/fonts/849_Yikes!.woff"),n.push("BINARY"),s.push("Tahoma"),n.push("FONT"),s.push("assets/fonts/1865_Arial.woff"),n.push("BINARY"),s.push("assets/fonts/717_Tahoma.json"),n.push("TEXT"),s.push("assets/fonts/849_Yikes!.svg"),n.push("TEXT"),s.push("assets/fonts/1582_Trebuchet MS.woff2"),n.push("BINARY"),s.push("assets/fonts/164_Yikes!.eot"),n.push("BINARY"),s.push("assets/fonts/743_Trebuchet MS.woff"),n.push("BINARY"),s.push("assets/fonts/1865_Arial.eot"),n.push("BINARY"),s.push("assets/fonts/717_Tahoma.woff"),n.push("BINARY"),s.push("assets/fonts/831_Verdana.json"),n.push("TEXT"),s.push("assets/fonts/2103_Tahoma.woff"),n.push("BINARY"),s.push("assets/fonts/743_Trebuchet MS.woff2"),n.push("BINARY"),s.push("Yikes!"),n.push("FONT"),s.push("assets/fonts/831_Verdana.svg"),n.push("TEXT"),s.push("assets/fonts/1455_Cartoonist.woff2"),n.push("BINARY"),s.push("Visitor TT2 BRK"),n.push("FONT"),s.push("Trebuchet MS"),n.push("FONT"),s.push("assets/fonts/2103_Tahoma.svg"),n.push("TEXT"),s.push("assets/fonts/717_Tahoma.eot"),n.push("BINARY"),s.push("Verdana"),n.push("FONT"),s.push("assets/fonts/717_Tahoma.svg"),n.push("TEXT"),s.push("assets/fonts/849_Yikes!.eot"),n.push("BINARY"),s.push("assets/fonts/899_McBoing Boing.woff2"),n.push("BINARY"),s.push("McBoing Boing"),n.push("FONT"),s.push("assets/fonts/1455_Cartoonist.svg"),n.push("TEXT"),s.push("assets/fonts/1546_Visitor TT2 BRK.eot"),n.push("BINARY"),s.push("assets/fonts/526_Arial Black.woff"),n.push("BINARY"),s.push("assets/fonts/1404_Cartoonist.woff"),n.push("BINARY"),s.push("assets/fonts/2103_Tahoma.json"),n.push("TEXT"),s.push("Cartoonist"),n.push("FONT"),s.push("assets/fonts/1455_Cartoonist.woff"),n.push("BINARY"),s.push("assets/fonts/831_Verdana.woff"),n.push("BINARY"),s.push("assets/fonts/1865_Arial.woff2"),n.push("BINARY"),s.push("assets/fonts/526_Arial Black.eot"),n.push("BINARY"),s.push("assets/fonts/1582_Trebuchet MS.json"),n.push("TEXT"),s.push("assets/fonts/1865_Arial.json"),n.push("TEXT"),s.push("Tahoma"),n.push("FONT"),s.push("lib/intro/intro.dat"),n.push("BINARY"),s.push("lib/intro.json"),n.push("TEXT"),s.push("lib/bloontowerdefense4/1203.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1273.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1357.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1371.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1188.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1355.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1369.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1200.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1185.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1255.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1269.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1353.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1367.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1197.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1351.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1365.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1251.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1363.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1194.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1264.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1348.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1207.png"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1361.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1346.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1191.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1359.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/1260.jpg"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/826.png"),n.push("IMAGE"),s.push("lib/bloontowerdefense4/bloontowerdefense4.dat"),n.push("BINARY"),s.push("lib/bloontowerdefense4.json"),n.push("TEXT"),null!=qr.config.assetsPrefix)for(var i=0,r=s.length;it.priority?-1:1},g.prototype={addEventListener:function(e,t,s,n,i){null==i&&(i=!1),null==n&&(n=0),null==s&&(s=!1),null==this.__eventMap&&(this.__dispatching=new up,this.__eventMap=new up,this.__newEventMap=new up);var r=this.__eventMap;if(null!=NT[e]?r.existsReserved(e):r.h.hasOwnProperty(e)){var o,a=this.__dispatching;if(1==(null!=NT[e]?a.getReserved(e):a.h[e])){var l=this.__newEventMap;if(null!=NT[e]?l.existsReserved(e):l.h.hasOwnProperty(e)){var h=this.__newEventMap;o=null!=NT[e]?h.getReserved(e):h.h[e]}else{var _=this.__eventMap;o=(null!=NT[e]?_.getReserved(e):_.h[e]).slice();var u=this.__newEventMap;null!=NT[e]?u.setReserved(e,o):u.h[e]=o}}else{var d=this.__eventMap;o=null!=NT[e]?d.getReserved(e):d.h[e]}for(var c=0,f=o.length;cW.__lastMouseListenerBranchDepth)||!r.__visible)||this.__isMask)return!1;if(null!=this.__mask&&!this.__mask.__hitTestMask(e,t))return!1;var o=this.getSymbol();if(s=!!s&&(null==o||o.pixelPerfectHitTest),this.__graphics.__hitTest(e,t,s,this.__getWorldTransform()))return null==n||i||(n._items[n._length++]=r),!0}return!1},__hitTestMask:function(e,t){return null!=this.__graphics&&!!this.__graphics.__hitTest(e,t,!0,this.__getWorldTransform())},__renderCanvas:function(e){throw new Mp(":TODO: remove me")},__renderCanvasMask:function(e){throw new Mp(":TODO: remove me")},__renderGL:function(e){if(this.isRenderable()&&!(this.__worldAlpha<=0))if(this.__resolvedCacheAsBitmap){if(this.__isCachingAsBitmap=!0,!this.__updateCachedBitmap&&!this.__updateFilters||this.forbidCachedBitmapUpdate&&null!=this.__cachedBitmap||this.__updateCachedBitmapFn(e),0W.__lastMouseListenerBranchDepth},__hasMouseListener:function(){return 0W.__lastMouseListenerBranchDepth)||!r.__visible)||this.__isMask)||!!i&&!this.mouseEnabled)&&W.prototype.__hitTest.call(this,e,t,s,n,i,r)},get_tabEnabled:function(){return this.__tabEnabled},set_tabEnabled:function(e){return this.__tabEnabled=e},__class__:yt,__properties__:n(W.prototype.__properties__,{set_tabIndex:"set_tabIndex",get_tabIndex:"get_tabIndex",set_tabEnabled:"set_tabEnabled",get_tabEnabled:"get_tabEnabled"})});var Ge=function(){this._length=0};(s["openfl.utils.UnshrinkableArrayData"]=Ge).__name__=["openfl","utils","UnshrinkableArrayData"],Ge.prototype={__class__:Ge};var j=function(){yt.call(this),this.mouseChildren=!0;var e=new Ge;e._items=[],e._length=e._items.length,this.__children=e};(s["openfl.display.DisplayObjectContainer"]=j).__name__=["openfl","display","DisplayObjectContainer"],j.__super__=yt,j.prototype=n(yt.prototype,{addChild:function(e){return this.addChildAt(e,this.__children._length)},addChildAt:function(e,t){if(t<0||t>this.__children._length)throw new Mp("Invalid index position "+t);this.__useSeparateRenderScaleTransform||(e.__useSeparateRenderScaleTransform=!1);var s=-1;if(e.parent==this){var n=this.__children,i=n._items.indexOf(e,null);s=i>=n._length?-1:i;var r=this.__children;s>=r._length&&(r._length=s+1),r._items[s]=null;for(var o=this.__children,a=o._length-1;t<=a;)o._items[a+1]=o._items[a],--a;o._items[t]=e,o._length=t>o._length?t:o._length,++o._length}else{if(null!=e.parent){var l=e.stage;e.stage=null,e.parent.removeChild(e),e.stage=l}for(var h=this.__children,_=h._length-1;t<=_;)h._items[_+1]=h._items[_],--_;h._items[t]=e,h._length=t>h._length?t:h._length,++h._length,null!=e.__name&&""!=e.__name&&(this[e.__name]=e),this.initParent(e)}return this.__branchDirty=!0,W.__worldBranchDirty++,this.__updateRecursiveMouseListenerCount(e.__recursiveMouseListenerCount),-1=t._length?null:t._items[e]}return null},getChildByName:function(e){for(var t=0,s=this.__children;t=s._length?null:s._items[t];if(++t,n.__name==e)return n}return null},getChildIndex:function(e){var t=this.__children,s=t._items.indexOf(e,null);return s>=t._length?-1:s},hitTestPoint:function(e,t,s){null==s&&(s=!1);var n=yt.prototype.hitTestPoint.call(this,e,t,s);if(n)return n;for(var i=0,r=this.__children;i=r._length?null:r._items[i];if(++i,o.hitTestPoint(e,t,s))return!0}return!1},getObjectsUnderPoint:function(e){var t=new Ge;t._items=[],t._length=t._items.length;var s=t;this.__hitTest(e.x,e.y,!1,s,!1,this);for(var n=0,i=s._length-1;n=t._length?null:t._items[e];if(null!=s)return this.removeChild(s);iT.splice(this.__children,e,1),this.__branchDirty=!0,W.__worldBranchDirty++}return null},removeChildren:function(e,t){if(null==t&&(t=2147483647),null==e&&(e=0),!(2147483647==t&&(t=this.__children._length-1)<0||e>this.__children._length-1)){if(tthis.__children._length)throw new Mp(new fv("The supplied index is out of bounds."));for(var s=t-e;0<=s;)this.removeChildAt(e),--s}},resolve:function(e){var t=De.field(this,e);return null!=t?t:this.getChildByName(e)},setChildIndex:function(e,t){if(0<=t&&t<=this.__children._length&&e.parent==this){var s=this.__children;if(null==(t>=s._length?null:s._items[t])){var n=this.__children,i=n._items.indexOf(e,null),r=i>=n._length?-1:i,o=this.__children;r>=o._length&&(o._length=r+1),o._items[r]=null;var a=this.__children;t>=a._length&&(a._length=t+1),a._items[t]=e}else{iT.remove(this.__children,e);for(var l=this.__children,h=l._length-1;t<=h;)l._items[h+1]=l._items[h],--h;l._items[t]=e,l._length=t>l._length?t:l._length,++l._length}this.__branchDirty=!0,W.__worldBranchDirty++}},swapChildren:function(e,t){if(e.parent==this&&t.parent==this){var s=this.__children,n=s._items.indexOf(e,null),i=n>=s._length?-1:n,r=this.__children,o=r._items.indexOf(t,null),a=o>=r._length?-1:o;this.swapChildrenAt(i,a)}},swapChildrenAt:function(e,t){var s=this.__children,n=e>=s._length?null:s._items[e],i=this.__children,r=this.__children,o=t>=r._length?null:r._items[t];e>=i._length&&(i._length=e+1),i._items[e]=o;var a=this.__children;t>=a._length&&(a._length=t+1),a._items[t]=n,this.__branchDirty=!0,W.__worldBranchDirty++},updateCachedParent:function(e){if(e=yt.prototype.updateCachedParent.call(this,e),null!=this.__children)for(var t=0,s=this.__children;t=s._length?null:s._items[t];++t,n.updateCachedParent(e)}return e},__broadcast:function(e,t){null==e.target&&(e.target=this);var s=yt.prototype.__broadcast.call(this,e,t);if(!e.__isCanceled&&t)for(var n=0,i=this.__children;n=i._length?null:i._items[n];if(++n,r.__broadcast(e,!0),e.__isCanceled)return!0}return s},__getBounds:function(e){if(yt.prototype.__getBounds.call(this,e),0!=this.__children._length){for(var t=cy.pool.get(),s=0,n=this.__children;s=n._length?null:n._items[s];if(++s,i.isRenderable()){var r=i.__transform;i.__getBounds(t),t.isEmpty()||t.transform(t,r),e.__expand(t.x,t.y,t.width,t.height)}}cy.pool.put(t)}},__getChildrenRenderBounds:function(e){if(0!=this.__children._length){for(var t=cy.pool.get(),s=0,n=this.__children;s=n._length?null:n._items[s];++s,i.isRenderable()&&(i.__getRenderBounds(t),e.__expand(t.x,t.y,t.width,t.height))}cy.pool.put(t)}},__hitTest:function(e,t,s,n,i,r){if(!!(!!(!(0W.__lastMouseListenerBranchDepth)||!r.__visible)||this.__isMask)||!(!i||this.mouseChildren)&&!this.mouseEnabled)return!1;if(null!=this.__mask&&!this.__mask.__hitTestMask(e,t))return!1;var o=qm.pool.get();if(o.setTo(e,t),null!=this.__scrollRect&&!this.__scrollRect.containsPoint(this.globalToLocal(o)))return qm.pool.put(o),!1;qm.pool.put(o);var a=this.getSymbol();s=!!s&&(null==a||a.pixelPerfectHitTest);var l=0=b._length?null:b._items[d],g=m.__clippedAt;if(-1!=g){var w,v=this.__children;if(null!=(g>=v._length?null:v._items[g])){var y=this.__children;w=!(g>=y._length?null:y._items[g]).__hitTestMask(e,t)}else w=!1;if(w){d=g;continue}}if(((f=m.__getInteractive(null))||this.mouseEnabled&&!p)&&m.__hitTest(e,t,s,n,!0,m)&&(this.mouseEnabled&&(p=!0),f)){if(p)break;if(l){var T=j.__mouseListenerBranchDepthStack;T._items[--T._length];T._items[T._length]=null;var S=j.__mouseListenerBranchDepthStack,x=S._items[S._length-1];W.__lastMouseListenerBranchDepth=0!=x?x:9999}return!0}}if(p){for(var E=n._length-1;c<=E;)n._items[E+1]=n._items[E],--E;if(n._items[c]=r,n._length=c>n._length?c:n._length,++n._length,l){var P=j.__mouseListenerBranchDepthStack;P._items[--P._length];P._items[P._length]=null;var R=j.__mouseListenerBranchDepthStack,A=R._items[R._length-1];W.__lastMouseListenerBranchDepth=0!=A?A:9999}return!0}}}else for(;0<=--d;){var I=this.__children,C=d>=I._length?null:I._items[d],B=C.__clippedAt;if(-1!=B){var D,k=this.__children;if(null!=(B>=k._length?null:k._items[B])){var F=this.__children;D=!(B>=F._length?null:F._items[B]).__hitTestMask(e,t)}else D=!1;if(D){d=B;continue}}if(null!=C&&C.__hitTest(e,t,s,null,this.mouseChildren,C)){if(null!=n&&(n._items[n._length++]=r),l){var M=j.__mouseListenerBranchDepthStack;M._items[--M._length];M._items[M._length]=null;var L=j.__mouseListenerBranchDepthStack,N=L._items[L._length-1];W.__lastMouseListenerBranchDepth=0!=N?N:9999}return!0}}else for(;0<=--d;){var O=this.__children,U=this.__children;if((d>=O._length?null:O._items[d]).__hitTest(e,t,s,n,!1,d>=U._length?null:U._items[d])){if(null!=n&&(n._items[n._length++]=r),l){var G=j.__mouseListenerBranchDepthStack;G._items[--G._length];G._items[G._length]=null;var z=j.__mouseListenerBranchDepthStack,X=z._items[z._length-1];W.__lastMouseListenerBranchDepth=0!=X?X:9999}return!0}}if(l){var H=j.__mouseListenerBranchDepthStack;H._items[--H._length];H._items[H._length]=null;var V=j.__mouseListenerBranchDepthStack,Y=V._items[V._length-1];W.__lastMouseListenerBranchDepth=0!=Y?Y:9999}return!1},__hitTestMask:function(e,t){for(var s=this.__children._length;0<=--s;){var n=this.__children;if(null!=(s>=n._length?null:n._items[s])){var i=this.__children;if((s>=i._length?null:i._items[s]).__hitTestMask(e,t))return!0}}return!1},__renderCanvas:function(e){if(this.isRenderable()&&!(this.__worldAlpha<=0)){yt.prototype.__renderCanvas.call(this,e),null!=this.__scrollRect&&e.maskManager.pushRect(this.__scrollRect,this.__worldTransform),null!=this.__mask&&e.maskManager.pushMask(this.__mask);for(var t=0,s=this.__children;t=s._length?null:s._items[t];++t,n.__renderCanvas(e)}null!=this.__mask&&e.maskManager.popMask(),null!=this.__scrollRect&&e.maskManager.popRect()}},__renderCanvasMask:function(e){throw new Mp(":TODO: Remove")},__renderGL:function(e){if(this.isRenderable()&&!(this.__worldAlpha<=0))if(this.__resolvedCacheAsBitmap){if(this.__isCachingAsBitmap=!0,!this.__updateCachedBitmap&&!this.__updateFilters||this.forbidCachedBitmapUpdate&&null!=this.__cachedBitmap||this.__updateCachedBitmapFn(e),0=_._length?null:_._items[h];++h,-1==--l&&e.maskManager.popMask(),0!=u.__clipDepth?(u.__maskCached||(null!=u.__cachedBitmap&&(u.__cachedBitmap.dispose(),u.__cachedBitmap=null),u.__isMask=!0,u.__update(!0,!0),u.__maskCached=!0),e.maskManager.pushMask(u),l=u.__clipDepth):u.__renderGL(e)}0<=l&&e.maskManager.popMask(),null!=this.__mask&&e.maskManager.popMask(),null!=this.__scrollRect&&e.maskManager.popRect()}},__fireRemovedFromStageEvent:function(e){if(yt.prototype.__fireRemovedFromStageEvent.call(this,e),null!=this.__children)for(var t=0,s=this.__children;t=s._length?null:s._items[t];++t,n.__fireRemovedFromStageEvent(e)}},__updateStageInternal:function(e){if(yt.prototype.__updateStageInternal.call(this,e),null!=this.__children)for(var t=0,s=this.__children;t=s._length?null:s._items[t];++t,n.__updateStageInternal(e)}},__fireAddedToStageEvent:function(e){if(yt.prototype.__fireAddedToStageEvent.call(this,e),null!=this.__children)for(var t=0,s=this.__children;t=s._length?null:s._items[t];++t,n.__fireAddedToStageEvent(e)}},__releaseResources:function(){if(yt.prototype.__releaseResources.call(this)){if(null!=this.__children)for(var e=0,t=this.__children;e=t._length?null:t._items[e];++e,s.__releaseResources()}return!0}return!1},__cleanupIntermediateTextures:function(){yt.prototype.__cleanupIntermediateTextures.call(this);for(var e=0,t=this.__children;e=t._length?null:t._items[e];++e,s.__cleanupIntermediateTextures()}},__update:function(e,t){if(yt.prototype.__update.call(this,e,t),(this.isRenderable()||this.__isMask)&&t)for(var s=0,n=this.__children;s=n._length?null:n._items[s];++s,i.__update(e,!0)}},__updateChildren:function(e){yt.prototype.__updateChildren.call(this,e);for(var t=0,s=this.__children;t=s._length?null:s._items[t];++t,n.__update(e,!0)}},isRenderable:function(){return!!yt.prototype.isRenderable.call(this)&&(null!=this.__graphics||null!=this.__children&&0=s._length?null:s._items[t];++t,n.updateCachedParent(e)}},__class__:j,__properties__:n(yt.prototype.__properties__,{get_numChildren:"get_numChildren"})});var o=function(){j.call(this),this.buttonMode=!1,this.useHandCursor=!0};(s["openfl.display.Sprite"]=o).__name__=["openfl","display","Sprite"],o.__super__=j,o.prototype=n(j.prototype,{startDrag:function(e,t){null==e&&(e=!1),null!=this.stage&&this.stage.__startDrag(this,e,t)},stopDrag:function(){null!=this.stage&&this.stage.__stopDrag(this)},__getCursor:function(){return this.buttonMode&&this.useHandCursor?Bm.POINTER:null},__hitTest:function(e,t,s,n,i,r){var o=this.getSymbol();if(s=!!s&&(null==o||o.pixelPerfectHitTest),null!=this.hitArea){if(!this.hitArea.mouseEnabled){var a=0this.__totalFrames&&(e=this.__totalFrames),this.__currentFrame=e,this.__updateFrame()},play:function(){!this.__playing&&1this.__totalFrames;)this.__currentFrame-=this.__totalFrames;this.__updateFrame()}d.prototype.__enterFrame.call(this,e)},__getFrame:function(e){var t=0;if("number"==typeof e&&(0|e)===e)t=e;else if("string"==typeof e){var s=e;if(null!=this.__symbol){for(var n=!1,i=0,r=this.__symbol.frames.length;ithis.__totalFrames&&(t=this.__totalFrames),t},__goto:function(e,t){if(null!=this.__targetFrame)return!1;var s=this.__getFrame(e);if(s==this.__currentFrame)return!0;for(this.__targetFrame=s,this.play();this.__playing=!0,this.__currentFrame=this.__targetFrame,this.__updateFrame(),this.__targetFrame!=this.__currentFrame;);return this.__targetFrame=null,this.__playing},__placeObject:function(e,t){var s;if(null!=t.matrix&&(e.get_transform().set_matrix(t.matrix),Lp.__instanceof(e,xa))){s=e;var n=t.matrix,i=s.symbol.x,r=s.symbol.y;e.set_x(Math.round(e.__transform.tx+n.a*i+n.c*r)),e.set_y(Math.round(e.__transform.ty+n.b*i+n.d*r))}Lp.__instanceof(e,Pa)&&null!=t.ratio&&e.set_ratio(t.ratio);if(null!=t.colorTransform&&e.get_transform().set_colorTransform(t.colorTransform),null!=t.blendMode&&e.set_blendMode(t.blendMode),e.set_cacheAsBitmap(e.__resolvedCacheAsBitmap||t.cacheAsBitmap),null!=t.filters){for(var o=[],a=0,l=t.filters;a=o._length?null:o._items[r];if(++r,a.renderScaleX!=n||a.renderScaleY!=i)throw new Mp(":TODO: 9 sliced child has different render scale than parent");a.renderScaleX=e,a.renderScaleY=t}var l=Zm.current.stage.__renderer.renderSession,h=sw.__asRenderTexture();h.__resize(s.width,s.height,Math.ceil(s.width*e),Math.ceil(s.height*t));var _=Km.pool.get();_.identity(),_.a=e,_.d=t,_.translate(-s.x*e,-s.y*t),l.maskManager.pushMask(null),h.__pushFrameBuffer(l,!1,!1,!0),Cg.drawBitmapDrawable(l,null,this,_,null,null,null),Cg.popFramebuffer(l,null),h.__imageShouldBeSynced=!0;var u=h.__pingPongTexture,d=(u.__swapped?u.__texture1:u.__texture0).__uvData;h.__createUVs(d.x0,d.y0,d.x1,d.y1,d.x2,d.y2,d.x3,d.y3),h.__isValid=!0,h.__usingPingPongTexture=!0,l.maskManager.popMask(),Km.pool.put(_),cy.pool.put(s),this.__9SliceBitmap=h,this.__updating9SliceBitmap=!1,this.renderScaleX=n,this.renderScaleY=i;for(var c=0,f=this.__children;c=f._length?null:f._items[c];++c,p.renderScaleX=n,p.renderScaleY=i}}},drawScale9Bitmap:function(e){if(this.__resolvedCacheAsBitmap){if(this.__isCachingAsBitmap=!0,!this.__updateCachedBitmap&&!this.__updateFilters||this.forbidCachedBitmapUpdate&&null!=this.__cachedBitmap||this.__updateCachedBitmapFn(e),0=s._length?null:s._items[t];++t,n.__clippedAt=-1}this.__childrenHaveClippedAtProperty=!1}if(0l){h=d;break}c.__clippedAt=a}}o.__clipDepth=h-a-1}}}this.__maskDataDirty=!1},getNextHighestDepthExternal:function(){if(0this.money.get_value()?Lp.__cast(this.towerinfo.resolve("cantafford_txt"),Sa).set_text("CAN'T AFFORD"):Lp.__cast(this.towerinfo.resolve("cantafford_txt"),Sa).set_text("")},loadSavedGame:function(){var e=null;null!=this.savedGameObj?(this.setTrack(this.savedGameObj.trackNum),this.SetDiff(this.savedGameObj.diff),(e=new tT(40,1)).addEventListener("timerComplete",CT(this,this.continueLoadingSave)),e.start(),this.spinintro.set_visible(!1),this.mainmenu.set_visible(!1),this.chooseDiffBox.set_visible(!1)):Zf.trace("no save to load",{fileName:"BTD4.hx",lineNumber:1210,className:"BTD4",methodName:"loadSavedGame"})},RemoveTower:function(e){for(var t=0;tthis.money.get_value()||(this.DeselectCurrent(),this.towerplace.gotoAndStop("tack"),this.towerplace.gotoAndStop(e),this.currentTool=e,this.output.resolve("cancelbuybtn").set_visible(!0)):this.DeselectCurrent()},updateBloons:function(){this.bloonsTemp=[].concat(this.bloons);for(var e=0,t=this.bloonsTemp;ethis.userProfile.data.userRank){for(this.output.resolve("myrank_mc").play(),this.userProfile.data.userRank=e,Zf.trace("YOU WENT UP A RANK: "+e,{fileName:"BTD4.hx",lineNumber:1593,className:"BTD4",methodName:"checkRank"}),t=1;t<=e;)this.userProfile.data.towerUnlocks[t-1]=1,++t;this.userProfile.flush(),e<=31&&this.checkForTowerUnlocks(!0)}},BuildLevels:function(){var e=0,t=0,s=0,n=0,i=0,r=0;for(e=1,this.ABSTL(14,1,e),e=2,this.ABSTL(30,1,e),e=3,this.ABSTL(10,1,e),this.ABSTL(5,2,e),this.ABSTL(10,1,e),e=4,this.ABSTL(20,1,e),this.ABSTL(15,2,e),this.ABSTL(10,1,e),e=5,this.ABSTL(10,2,e),this.ABSTL(5,1,e),this.ABSTL(10,2,e),e=6,this.ABSTL(4,3,e),this.ABSTL(15,1,e),this.ABSTL(15,2,e),e=7,this.ABSTL(10,2,e),this.ABSTL(5,3,e),this.ABSTL(20,1,e),this.ABSTL(15,2,e),e=8,this.ABSTL(20,2,e),this.ABSTL(2,3,e),this.ABSTL(10,1,e),this.ABSTL(15,3,e),e=9,this.ABSTL(10,3,e),this.ABSTL(12,2,e),this.ABSTL(10,1,e),this.ABSTL(5,3,e),e=10,this.ABSTL(100,2,e),e=11,this.ABSTL(2,4,e),this.ABSTL(12,3,e),this.ABSTL(10,2,e),this.ABSTL(5,1,e),e=12,this.ABSTL(10,3,e),this.ABSTL(15,2,e),this.ABSTL(5,4,e),e=13,this.ABSTL(20,1,e),this.ABSTL(10,4,e),this.ABSTL(25,3,e),e=14,this.ABSTL(5,1,e),this.ABSTL(5,2,e),this.ABSTL(5,3,e),this.ABSTL(5,4,e),this.ABSTL(10,1,e),this.ABSTL(10,2,e),this.ABSTL(10,3,e),this.ABSTL(10,4,e),e=15,this.ABSTL(20,1,e),this.ABSTL(3,5,e),this.ABSTL(15,3,e),this.ABSTL(10,4,e),e=16,this.ABSTL(20,3,e),this.ABSTL(13,4,e),this.ABSTL(5,5,e),e=17,this.ABSTL(15,3,e),this.ABSTL(20,4,e),this.ABSTL(5,5,e),this.ABSTL(8,4,e),e=18,this.ABSTL(80,3,e),e=19,this.ABSTL(5,3,e),this.ABSTL(5,4,e),this.ABSTL(11,5,e),this.ABSTL(5,4,e),this.ABSTL(3,5,e),e=20,this.ABSTL(8,6,e),e=21,this.ABSTL(10,5,e),this.ABSTL(6,5,e),e=22,this.ABSTL(9,7,e),e=23,this.ABSTL(6,6,e),this.ABSTL(5,7,e),e=24,this.ABSTL(1,11,e),e=25,this.ABSTL(6,9,e),e=26,this.ABSTL(5,4,e),this.ABSTL(6,5,e),this.ABSTL(4,6,e),this.ABSTL(4,5,e),this.ABSTL(5,4,e),this.ABSTL(3,7,e),e=27,this.ABSTL(100,4,e),e=28,this.ABSTL(7,8,e),this.ABSTL(3,9,e),e=29,this.ABSTL(70,5,e),e=30,this.ABSTL(10,8,e),e=31,this.ABSTL(18,9,e),e=32,this.ABSTL(25,6,e),this.ABSTL(30,7,e),this.ABSTL(8,8,e),e=33,this.ABSTL(50,11,e),e=34,this.ABSTL(14,9,e),e=35,this.ABSTL(25,7,e),this.ABSTL(5,10,e),this.ABSTL(35,5,e),this.ABSTL(3,10,e),e=36,this.ABSTL(90,5,e),e=37,this.ABSTL(20,6,e),this.ABSTL(20,7,e),this.ABSTL(15,8,e),this.ABSTL(15,9,e),e=38,this.ABSTL(20,7,e),this.ABSTL(20,8,e),this.ABSTL(16,9,e),this.ABSTL(12,10,e),e=39,this.ABSTL(10,6,e),this.ABSTL(10,7,e),this.ABSTL(20,8,e),this.ABSTL(20,9,e),this.ABSTL(22,10,e),e=40,this.ABSTL(10,10,e),this.ABSTL(20,1,e),this.ABSTL(4,12,e),e=41,this.ABSTL(80,6,e),this.ABSTL(80,7,e),e=42,this.ABSTL(40,8,e),this.ABSTL(30,10,e),e=43,this.ABSTL(10,10,e),this.ABSTL(10,12,e),e=44,this.ABSTL(5,12,e),this.ABSTL(40,9,e),this.ABSTL(30,7,e),e=45,this.ABSTL(25,10,e),this.ABSTL(200,5,e),this.ABSTL(8,8,e),e=46,this.ABSTL(1,13,e),e=47,this.ABSTL(20,12,e),this.ABSTL(70,11,e),e=48,this.ABSTL(120,11,e),this.ABSTL(50,10,e),e=49,this.ABSTL(10,10,e),this.ABSTL(10,11,e),this.ABSTL(18,12,e),this.ABSTL(20,9,e),this.ABSTL(22,10,e),e=50,this.ABSTL(1,13,e),this.ABSTL(8,8,e),this.ABSTL(20,1,e),this.ABSTL(20,12,e),this.ABSTL(1,13,e),e=51,this.ABSTL(28,12,e),this.ABSTL(10,10,e),e=52,this.ABSTL(25,10,e),this.ABSTL(1,13,e),this.ABSTL(5,12,e),this.ABSTL(1,13,e),this.ABSTL(5,12,e),e=53,this.ABSTL(50,11,e),this.ABSTL(1,13,e),this.ABSTL(5,1,e),this.ABSTL(1,13,e),this.ABSTL(5,1,e),this.ABSTL(1,13,e),this.ABSTL(1,1,e),this.ABSTL(1,13,e),e=54,this.ABSTL(15,12,e),this.ABSTL(1,13,e),this.ABSTL(5,12,e),this.ABSTL(1,13,e),this.ABSTL(15,12,e),e=55,this.ABSTL(40,10,e),this.ABSTL(12,8,e),this.ABSTL(19,12,e),this.ABSTL(1,13,e),e=56,this.ABSTL(120,10,e),this.ABSTL(1,13,e),this.ABSTL(25,12,e),e=57,this.ABSTL(2,13,e),this.ABSTL(20,10,e),this.ABSTL(2,13,e),this.ABSTL(20,10,e),this.ABSTL(15,12,e),e=58,this.ABSTL(1,13,e),this.ABSTL(25,10,e),this.ABSTL(2,13,e),this.ABSTL(20,12,e),e=59,this.ABSTL(50,12,e),e=60,this.ABSTL(1,14,e),e=61,this.ABSTL(20,12,e),this.ABSTL(20,10,e),this.ABSTL(10,12,e),this.ABSTL(20,10,e),e=62,this.ABSTL(2,13,e),this.ABSTL(200,11,e),e=63,this.ABSTL(50,10,e),this.ABSTL(37,12,e),this.ABSTL(18,8,e),e=64,this.ABSTL(7,13,e),e=65,this.ABSTL(100,9,e),this.ABSTL(50,10,e),this.ABSTL(20,12,e),this.ABSTL(2,13,e),e=66,this.ABSTL(9,13,e),e=67,this.ABSTL(5,13,e),this.ABSTL(14,1,e),this.ABSTL(15,12,e),this.ABSTL(14,1,e),this.ABSTL(5,13,e),e=68,this.ABSTL(4,13,e),this.ABSTL(14,1,e),this.ABSTL(1,14,e),e=69,this.ABSTL(30,8,e),this.ABSTL(100,12,e),e=70,this.ABSTL(200,10,e),this.ABSTL(3,13,e),e=71,this.ABSTL(10,13,e),this.ABSTL(30,12,e),e=72,this.ABSTL(1,14,e),this.ABSTL(30,1,e),this.ABSTL(1,14,e),e=73,this.ABSTL(5,13,e),this.ABSTL(30,1,e),this.ABSTL(1,14,e),this.ABSTL(14,1,e),this.ABSTL(2,13,e),e=74,this.ABSTL(100,12,e),this.ABSTL(1,14,e),this.ABSTL(100,12,e),e=75,this.ABSTL(1,14,e),this.ABSTL(14,8,e),this.ABSTL(2,13,e),this.ABSTL(1,14,e),this.ABSTL(14,8,e),this.ABSTL(2,13,e),this.ABSTL(14,1,e),this.ABSTL(1,14,e),t=76;t<250;){for(s=7+t-75|0,n=0;nthis.poppedThisFrameMax&&(this.poppedThisFrameMax=this.poppedThisFrame),this.render(),this.ingame){if(5e3this.bloonInterval&&(this.counter=0,null!=this.levelsArray[this.curLevel-1][this.bloonIndex]?(this.NewBloon(this.levelsArray[this.curLevel-1][this.bloonIndex],0,0),this.bloonIndex++,this.doXPBar()):null==this.levelsArray[this.curLevel-1][this.bloonIndex]&&"sandboxmode"!=this.gameMode&&(Zf.trace("no more bloons",{fileName:"BTD4.hx",lineNumber:2184,className:"BTD4",methodName:"EnterFrame"}),this.noMore=!0))),this.UpdateTowers(),this.UpdateBullets()}},render:function(){var e=null;Lp.__cast(this.bloonBitmap.bitmapData,sw).fillRect(this.viewPort,0);for(var t=this.bloons.length;0=this.GetPrice(this.COST_BEACON_RANGE_UPGRADE))return!0;break;case"beacon2":if(this.money.get_value()>=this.GetPrice(this.COST_BEACON_DRUMS_UPGRADE))return!0;break;case"beacon3":if(this.money.get_value()>=this.GetPrice(this.COST_BEACON_SEEINVIS_UPGRADE))return!0;break;case"beacon4":if(this.money.get_value()>=this.GetPrice(this.COST_BEACON_STORM_UPGRADE))return!0;break;case"bomb1":if(this.money.get_value()>=this.GetPrice(this.COST_BOMB_SIZE_UPGRADE))return!0;break;case"bomb2":if(this.money.get_value()>=this.GetPrice(this.COST_BOMB_RANGE_UPGRADE))return!0;break;case"bomb3":if(this.money.get_value()>=this.GetPrice(this.COST_BOMB_MISSILE_UPGRADE))return!0;break;case"bomb4":if(this.money.get_value()>=this.GetPrice(this.COST_BOMB_MOABBUSTER_UPGRADE))return!0;break;case"boomerang1":if(this.money.get_value()>=this.GetPrice(this.COST_BOOMERANG_PIERCE_UPGRADE))return!0;break;case"boomerang2":if(this.money.get_value()>=this.GetPrice(this.COST_BOOMERANG_SONIC_UPGRADE))return!0;break;case"boomerang3":if(this.money.get_value()>=this.GetPrice(this.COST_BOOMERANG_GLAIVE_UPGRADE))return!0;break;case"boomerang4":if(this.money.get_value()>=this.GetPrice(this.COST_BOOMERANG_SABRE_UPGRADE))return!0;break;case"dart1":if(this.money.get_value()>=this.GetPrice(this.COST_DART_PIERCE_UPGRADE))return!0;break;case"dart2":if(this.money.get_value()>=this.GetPrice(this.COST_DART_RANGE_UPGRADE))return!0;break;case"dart3":if(this.money.get_value()>=this.GetPrice(this.COST_DART_SPIKE_UPGRADE))return!0;break;case"dart4":if(this.money.get_value()>=this.GetPrice(this.COST_DART_TRIPLE_UPGRADE))return!0;break;case"gluetower1":if(this.money.get_value()>=this.GetPrice(this.COST_GLUE_STICKY_UPGRADE))return!0;break;case"gluetower2":if(this.money.get_value()>=this.GetPrice(this.COST_GLUE_SOAK_UPGRADE))return!0;break;case"gluetower3":if(this.money.get_value()>=this.GetPrice(this.COST_GLUE_CORROSIVE_UPGRADE))return!0;break;case"gluetower4":if(this.money.get_value()>=this.GetPrice(this.COST_GLUE_SPLATTER_UPGRADE))return!0;break;case"ice1":if(this.money.get_value()>=this.GetPrice(this.COST_ICE_ENHANCE_UPGRADE))return!0;break;case"ice2":if(this.money.get_value()>=this.GetPrice(this.COST_ICE_PERMAFROST_UPGRADE))return!0;break;case"ice3":if(this.money.get_value()>=this.GetPrice(this.COST_ICE_SNAP_UPGRADE))return!0;break;case"ice4":if(this.money.get_value()>=this.GetPrice(this.COST_ICE_AURA_UPGRADE))return!0;break;case"money1":if(this.money.get_value()>=this.GetPrice(this.COST_MONEY_MORENANAS_UPGRADE))return!0;break;case"money2":if(this.money.get_value()>=this.GetPrice(this.COST_MONEY_PLANTATION_UPGRADE))return!0;break;case"money3":if(this.money.get_value()>=this.GetPrice(this.COST_MONEY_REPUBLIC_UPGRADE))return!0;break;case"money4":if(this.money.get_value()>=this.GetPrice(this.COST_MONEY_BRF_UPGRADE))return!0;break;case"monkeyace1":if(this.money.get_value()>=this.GetPrice(this.COST_PLANE_PINEAPPLE_UPGRADE))return!0;break;case"monkeyace2":if(this.money.get_value()>=this.GetPrice(this.COST_PLANE_SPY_UPGRADE))return!0;break;case"monkeyace3":if(this.money.get_value()>=this.GetPrice(this.COST_PLANE_RATE_UPGRADE))return!0;break;case"monkeyace4":if(this.money.get_value()>=this.GetPrice(this.COST_PLANE_DARTSTORM_UPGRADE))return!0;break;case"mortar1":if(this.money.get_value()>=this.GetPrice(this.COST_MORTAR_ACCURACY_UPGRADE))return!0;break;case"mortar2":if(this.money.get_value()>=this.GetPrice(this.COST_MORTAR_RATE_UPGRADE))return!0;break;case"mortar3":if(this.money.get_value()>=this.GetPrice(this.COST_MORTAR_BLOONBUSTER_UPGRADE))return!0;break;case"mortar4":if(this.money.get_value()>=this.GetPrice(this.COST_MORTAR_BATTERY_UPGRADE))return!0;break;case"ship1":if(this.money.get_value()>=this.GetPrice(this.COST_SHIP_GRAPESHOT_UPGRADE))return!0;break;case"ship2":if(this.money.get_value()>=this.GetPrice(this.COST_SHIP_CROWSNEST_UPGRADE))return!0;break;case"ship3":if(this.money.get_value()>=this.GetPrice(this.COST_SHIP_RANGE_UPGRADE))return!0;break;case"ship4":if(this.money.get_value()>=this.GetPrice(this.COST_SHIP_BATTLESHIP_UPGRADE))return!0;break;case"super1":if(this.money.get_value()>=this.GetPrice(this.COST_SUPER_RANGE_UPGRADE))return!0;break;case"super2":if(this.money.get_value()>=this.GetPrice(this.COST_SUPER_LASER_UPGRADE))return!0;break;case"super3":if(this.money.get_value()>=this.GetPrice(this.COST_SUPER_PLASMA_UPGRADE))return!0;break;case"super4":if(this.money.get_value()>=this.GetPrice(this.COST_SUPER_SUNGOD_UPGRADE))return!0;break;case"tack1":if(this.money.get_value()>=this.GetPrice(this.COST_TACK_RATE_UPGRADE))return!0;break;case"tack2":if(this.money.get_value()>=this.GetPrice(this.COST_TACK_RANGE_UPGRADE))return!0;break;case"tack3":if(this.money.get_value()>=this.GetPrice(this.COST_TACK_BLADE_UPGRADE))return!0;break;case"tack4":if(this.money.get_value()>=this.GetPrice(this.COST_TACK_FIRE_UPGRADE))return!0;break;case"wizard1":if(this.money.get_value()>=this.GetPrice(this.COST_WIZARD_INTENSESHOT_UPGRADE))return!0;break;case"wizard2":if(this.money.get_value()>=this.GetPrice(this.COST_WIZARD_FIREBALL_UPGRADE))return!0;break;case"wizard3":if(this.money.get_value()>=this.GetPrice(this.COST_WIZARD_TORNADO_UPGRADE))return!0;break;case"wizard4":if(this.money.get_value()>=this.GetPrice(this.COST_WIZARD_TEMPEST_UPGRADE))return!0}return!1},hideRect:function(e){this.set_x(0),this.bigbadrect.set_x(this.bigbadrect.__transform.tx-1e3),this.resolve("fps_mc").set_x(this.resolve("fps_mc").__transform.tx-1e3)},ABSTL:function(e,t,s){var n=0;for(n=0;n=s?Zf.trace("already bought this upgrade for this tower.",{fileName:"BTD4.hx",lineNumber:3757,className:"BTD4",methodName:"clickUpgradeBtn"}):(Zf.trace("buy it: "+Ue.string(e.target.parent.upgrade),{fileName:"BTD4.hx",lineNumber:3760,className:"BTD4",methodName:"clickUpgradeBtn"}),this.CanAfford(e.target.parent.upgrade)&&(Zf.trace("buy it: "+Ue.string(e.target.parent.upgrade),{fileName:"BTD4.hx",lineNumber:3763,className:"BTD4",methodName:"clickUpgradeBtn"}),this.GetUpgrade(e.target.parent.upgrade),this.toweroptions.Refresh()))},ABTL:function(e,t){var s=null;null==this.levelsArray[e-1]&&(s=[],this.levelsArray[e-1]=s),this.levelsArray[e-1].push(t)},gotoNK:function(e){var t=new Py("http://www.ninjakiwi.com");Zm.getURL(t,"_blank")},showRect:function(e){this.set_x(this.__transform.tx-1e3),this.bigbadrect.set_x(this.bigbadrect.__transform.tx+1e3),this.resolve("fps_mc").set_x(this.resolve("fps_mc").__transform.tx+1e3)},CreateNewTower:function(e,t,s,n){null==n&&(n=!1);var i=null,r=0;switch(e){case"beacon":r=this.GetPrice(this.COST_BEACON),i=new h_;break;case"bomb":r=this.GetPrice(this.COST_BOMB),i=new Lh;break;case"boomerang":r=this.GetPrice(this.COST_BOOMERANG),i=new Fh;break;case"dart":r=this.GetPrice(this.COST_DART),i=new Uh;break;case"gluetower":r=this.GetPrice(this.COST_GLUETOWER),i=new Jh;break;case"ice":r=this.GetPrice(this.COST_ICE),i=new s_;break;case"money":r=this.GetPrice(this.COST_MONEYTOWER),i=new bh;break;case"monkeyace":r=this.GetPrice(this.COST_PLANE),i=new l_;break;case"mortar":r=this.GetPrice(this.COST_MORTAR),i=new d_;break;case"ship":r=this.GetPrice(this.COST_SHIP),i=new m_;break;case"spikeopult":throw new Mp("");case"super":r=this.GetPrice(this.COST_SUPER),i=new S_;break;case"tack":r=this.GetPrice(this.COST_TACK),i=new E_;break;case"wizard":r=this.GetPrice(this.COST_WIZARD),i=new __}if(n&&(r=0),r>this.money.get_value())return null;n||this.towerPlaceSnd.play(),this.money.set_value(this.money.get_value()-r),this.UpdateMoney();var o=this.towerholder;return o.addChildAt(i,o.__children._length),i.set_x(t),i.set_y(s),i.type=e,i.game=this,i.Init(n),this.towerlist.push(i),n?i:null},UpdateBullets:function(){for(var e=0;ethis.money.get_value())return void this.Output("not enough money.");this.money.set_value(this.money.get_value()-t),this.UpdateMoney(),this.ShootBullet(null,null)}}else this.haveCurTower&&"mortar"==this.currentTower.type&&this.mortarAim?(this.currentTower.mortaraim.set_x(this.get_mouseX()-this.currentTower.__transform.tx),this.currentTower.mortaraim.set_y(this.get_mouseY()-this.currentTower.__transform.ty),s=this.get_mouseX()-this.currentTower.__transform.tx,n=this.get_mouseY()-this.currentTower.__transform.ty,s/=i=Math.sqrt(s*s+n*n),n/=i,r=Math.atan2(n,s),r=180/Math.PI*r,this.currentTower.inner.set_rotation(r+90),this.currentTower.innerRotation=this.currentTower.inner.__rotation,this.mortarAim=!1):this.DeselectCurrent()},RemoveBullet:function(e){for(var t=0;t=this.levelHints.length?"":null!=this.levelHints[this.curLevel]?this.levelHints[this.curLevel]:""},GetUpgradeCost:function(e){switch(this.currentTower.type+Ue.string(e)){case"beacon1":return this.GetPrice(this.COST_BEACON_RANGE_UPGRADE);case"beacon2":return this.GetPrice(this.COST_BEACON_DRUMS_UPGRADE);case"beacon3":return this.GetPrice(this.COST_BEACON_SEEINVIS_UPGRADE);case"beacon4":return this.GetPrice(this.COST_BEACON_STORM_UPGRADE);case"bomb1":return this.GetPrice(this.COST_BOMB_SIZE_UPGRADE);case"bomb2":return this.GetPrice(this.COST_BOMB_RANGE_UPGRADE);case"bomb3":return this.GetPrice(this.COST_BOMB_MISSILE_UPGRADE);case"bomb4":return this.GetPrice(this.COST_BOMB_MOABBUSTER_UPGRADE);case"boomerang1":return this.GetPrice(this.COST_BOOMERANG_PIERCE_UPGRADE);case"boomerang2":return this.GetPrice(this.COST_BOOMERANG_SONIC_UPGRADE);case"boomerang3":return this.GetPrice(this.COST_BOOMERANG_GLAIVE_UPGRADE);case"boomerang4":return this.GetPrice(this.COST_BOOMERANG_SABRE_UPGRADE);case"dart1":return this.GetPrice(this.COST_DART_PIERCE_UPGRADE);case"dart2":return this.GetPrice(this.COST_DART_RANGE_UPGRADE);case"dart3":return this.GetPrice(this.COST_DART_SPIKE_UPGRADE);case"dart4":return this.GetPrice(this.COST_DART_TRIPLE_UPGRADE);case"gluetower1":return this.GetPrice(this.COST_GLUE_STICKY_UPGRADE);case"gluetower2":return this.GetPrice(this.COST_GLUE_SOAK_UPGRADE);case"gluetower3":return this.GetPrice(this.COST_GLUE_CORROSIVE_UPGRADE);case"gluetower4":return this.GetPrice(this.COST_GLUE_SPLATTER_UPGRADE);case"ice1":return this.GetPrice(this.COST_ICE_ENHANCE_UPGRADE);case"ice2":return this.GetPrice(this.COST_ICE_PERMAFROST_UPGRADE);case"ice3":return this.GetPrice(this.COST_ICE_SNAP_UPGRADE);case"ice4":return this.GetPrice(this.COST_ICE_AURA_UPGRADE);case"money1":return this.GetPrice(this.COST_MONEY_MORENANAS_UPGRADE);case"money2":return this.GetPrice(this.COST_MONEY_PLANTATION_UPGRADE);case"money3":return this.GetPrice(this.COST_MONEY_REPUBLIC_UPGRADE);case"money4":return this.GetPrice(this.COST_MONEY_BRF_UPGRADE);case"monkeyace1":return this.GetPrice(this.COST_PLANE_PINEAPPLE_UPGRADE);case"monkeyace2":return this.GetPrice(this.COST_PLANE_SPY_UPGRADE);case"monkeyace3":return this.GetPrice(this.COST_PLANE_RATE_UPGRADE);case"monkeyace4":return this.GetPrice(this.COST_PLANE_DARTSTORM_UPGRADE);case"mortar1":return this.GetPrice(this.COST_MORTAR_ACCURACY_UPGRADE);case"mortar2":return this.GetPrice(this.COST_MORTAR_RATE_UPGRADE);case"mortar3":return this.GetPrice(this.COST_MORTAR_BLOONBUSTER_UPGRADE);case"mortar4":return this.GetPrice(this.COST_MORTAR_BATTERY_UPGRADE);case"ship1":return this.GetPrice(this.COST_SHIP_GRAPESHOT_UPGRADE);case"ship2":return this.GetPrice(this.COST_SHIP_CROWSNEST_UPGRADE);case"ship3":return this.GetPrice(this.COST_SHIP_RANGE_UPGRADE);case"ship4":return this.GetPrice(this.COST_SHIP_BATTLESHIP_UPGRADE);case"spikeopult1":case"spikeopult2":case"spikeopult3":case"spikeopult4":throw new Mp("");case"super1":return this.GetPrice(this.COST_SUPER_RANGE_UPGRADE);case"super2":return this.GetPrice(this.COST_SUPER_LASER_UPGRADE);case"super3":return this.GetPrice(this.COST_SUPER_PLASMA_UPGRADE);case"super4":return this.GetPrice(this.COST_SUPER_SUNGOD_UPGRADE);case"tack1":return this.GetPrice(this.COST_TACK_RATE_UPGRADE);case"tack2":return this.GetPrice(this.COST_TACK_RANGE_UPGRADE);case"tack3":return this.GetPrice(this.COST_TACK_BLADE_UPGRADE);case"tack4":return this.GetPrice(this.COST_TACK_FIRE_UPGRADE);case"wizard1":return this.GetPrice(this.COST_WIZARD_INTENSESHOT_UPGRADE);case"wizard2":return this.GetPrice(this.COST_WIZARD_FIREBALL_UPGRADE);case"wizard3":return this.GetPrice(this.COST_WIZARD_TORNADO_UPGRADE);case"wizard4":return this.GetPrice(this.COST_WIZARD_TEMPEST_UPGRADE);default:return null}},startMusic:function(){var e=null;null!=this.musChannel||this.userProfile.data.musicMute||(this.musChannel=this.music.play(0,9999),(e=new vy(1,0)).volume=.3,this.musChannel.set_soundTransform(e))},musToggle:function(e){1==Lp.__cast(this.output.resolve("sndbtn"),u).get_currentFrame()&&(1==Lp.__cast(this.output.resolve("musbtn"),u).get_currentFrame()?this.userProfile.data.musicMute=!0:this.userProfile.data.musicMute=!1,Lp.__cast(this.output.resolve("musbtn"),u).play())},doRightMouse:function(e){this.DeselectCurrent()},saveGame:function(){var e=null;this.DeselectCurrent(),Zf.trace("save game function",{fileName:"BTD4.hx",lineNumber:4329,className:"BTD4",methodName:"saveGame"});for(var t=[],s=0,n=this.towerlist;sthis.max_level&&this.savegame_btn.set_visible(!1)}else this.curLevel==this.max_level&&this.GameOver(!0)},buildTrack:function(){var e=!1,t=0,s=null,n=null,i=null,r=null,o=0,a=null;for(e=!1,t=0;t=this.GetPrice(this.COST_MONKEYSTORM)&&this.ingame&&(this.money.set_value(this.money.get_value()-this.GetPrice(this.COST_MONKEYSTORM)),this.stormReady=!1,this.monkeystorm.play(),Lp.__cast(this.toweroptions.upgrade_group.resolve("monkeystormbtn").resolve("cooldown_mc"),u).gotoAndPlay(2))},checkForTowerUnlocks:function(e){null==e&&(e=!1);var t=0;for(t=0;t<31;)1==this.userProfile.data.towerUnlocks[t]&&(Zf.trace("i: "+t,{fileName:"BTD4.hx",lineNumber:4698,className:"BTD4",methodName:"checkForTowerUnlocks"}),this.doTowerUnlock(t,e)),++t},GetPrice:function(e){var t=NaN;return t=e*this.costmult,t/=5,5*(t=Math.round(t))|0},getTotalRBE:function(e){var t=0,s=0;for(s=t=0;sr&&(r=l.prog,e=l);continue}if("last"==this.AImode){l.progr&&(r=l.rank,e=l);continue}l.ranke&&this.Shoot()}},CalcRadius:function(){this.arsq=this.attackRadius*this.attackRadius,"monkeyace"!=this.type?this.beaconRadius?this.radiusmc.set_width(this.radiusmc.set_height(2*this.attackRadius*this.BEACON_RANGE_FACTOR)):this.radiusmc.set_width(this.radiusmc.set_height(2*this.attackRadius)):this.radiusmc.set_width(this.radiusmc.set_height(0))},deleteBeacon:function(){for(var e=0,t=this.game.towerlist;ethis.lifespan?this.DeleteMe():(this.set_x(this.__transform.tx+this.vx),this.set_y(this.__transform.ty+this.vy))):this.Init()},Init:function(){switch(this.set_cacheAsBitmap(!0),this.set_visible(!0),"dart"!=this.type&&"super"!=this.type||"laser"==this.type||this.inner.set_x(this.inner.__transform.tx+6),"ship"==this.type&&null!=this.inner&&this.inner.set_x(this.inner.__transform.tx+10),this.timealive=0,"mortar"!=this.type&&(this.exploded=!1),null!=this.shooter&&(this.hitRadius=this.shooter.bulHitRadius),this.type){case"bomb":this.lifespan=18;break;case"boomerang":this.lifespan=26,3|:;_-+=?,. "),null},getGlyphMetrics:function(e){return null},renderGlyph:function(e,t){return null},renderGlyphs:function(e,t){return null},__fromBytes:function(e){this.__fontPath=null},__fromFile:function(e){this.__fontPath=e},get_ascender:function(){return 0},get_descender:function(){return 0},get_height:function(){return 0},get_numGlyphs:function(){return 0},get_underlinePosition:function(){return 0},get_underlineThickness:function(){return 0},get_unitsPerEM:function(){return 0},__class__:H,__properties__:{get_unitsPerEM:"get_unitsPerEM",get_underlineThickness:"get_underlineThickness",get_underlinePosition:"get_underlinePosition",get_numGlyphs:"get_numGlyphs",get_height:"get_height",get_descender:"get_descender",get_ascender:"get_ascender"}};var Jr=function(){H.call(this),this.name="Trebuchet MS"};(s.__ASSET__assets_fonts_743_trebuchet_ms_ttf=Jr).__name__=["__ASSET__assets_fonts_743_trebuchet_ms_ttf"],Jr.__super__=H,Jr.prototype=n(H.prototype,{__class__:Jr});var Qr=function(){H.call(this),this.name="Arial"};(s.__ASSET__assets_fonts_1865_arial_ttf=Qr).__name__=["__ASSET__assets_fonts_1865_arial_ttf"],Qr.__super__=H,Qr.prototype=n(H.prototype,{__class__:Qr});var $r=function(){H.call(this),this.name="Arial Black"};(s.__ASSET__assets_fonts_526_arial_black_ttf=$r).__name__=["__ASSET__assets_fonts_526_arial_black_ttf"],$r.__super__=H,$r.prototype=n(H.prototype,{__class__:$r});var eo=function(){H.call(this),this.name="Yikes!"};(s.__ASSET__assets_fonts_849_yikes__ttf=eo).__name__=["__ASSET__assets_fonts_849_yikes__ttf"],eo.__super__=H,eo.prototype=n(H.prototype,{__class__:eo});var to=function(){H.call(this),this.name="Cartoonist"};(s.__ASSET__assets_fonts_1404_cartoonist_ttf=to).__name__=["__ASSET__assets_fonts_1404_cartoonist_ttf"],to.__super__=H,to.prototype=n(H.prototype,{__class__:to});var so=function(){H.call(this),this.name="Tahoma"};(s.__ASSET__assets_fonts_2103_tahoma_ttf=so).__name__=["__ASSET__assets_fonts_2103_tahoma_ttf"],so.__super__=H,so.prototype=n(H.prototype,{__class__:so});var no=function(){H.call(this),this.name="Yikes!"};(s.__ASSET__assets_fonts_164_yikes__ttf=no).__name__=["__ASSET__assets_fonts_164_yikes__ttf"],no.__super__=H,no.prototype=n(H.prototype,{__class__:no});var io=function(){H.call(this),this.name="Visitor TT2 BRK"};(s.__ASSET__assets_fonts_1546_visitor_tt2_brk_ttf=io).__name__=["__ASSET__assets_fonts_1546_visitor_tt2_brk_ttf"],io.__super__=H,io.prototype=n(H.prototype,{__class__:io});var ro=function(){H.call(this),this.name="Trebuchet MS"};(s.__ASSET__assets_fonts_1582_trebuchet_ms_ttf=ro).__name__=["__ASSET__assets_fonts_1582_trebuchet_ms_ttf"],ro.__super__=H,ro.prototype=n(H.prototype,{__class__:ro});var oo=function(){H.call(this),this.name="Verdana"};(s.__ASSET__assets_fonts_831_verdana_ttf=oo).__name__=["__ASSET__assets_fonts_831_verdana_ttf"],oo.__super__=H,oo.prototype=n(H.prototype,{__class__:oo});var ao=function(){H.call(this),this.name="McBoing Boing"};(s.__ASSET__assets_fonts_899_mcboing_boing_ttf=ao).__name__=["__ASSET__assets_fonts_899_mcboing_boing_ttf"],ao.__super__=H,ao.prototype=n(H.prototype,{__class__:ao});var lo=function(){H.call(this),this.name="Cartoonist"};(s.__ASSET__assets_fonts_1455_cartoonist_ttf=lo).__name__=["__ASSET__assets_fonts_1455_cartoonist_ttf"],lo.__super__=H,lo.prototype=n(H.prototype,{__class__:lo});var ho=function(){H.call(this),this.name="Tahoma"};(s.__ASSET__assets_fonts_717_tahoma_ttf=ho).__name__=["__ASSET__assets_fonts_717_tahoma_ttf"],ho.__super__=H,ho.prototype=n(H.prototype,{__class__:ho});var _o=function(e){H.call(this,e)};(s["openfl.text.Font"]=_o).__name__=["openfl","text","Font"],_o.enumerateFonts=function(e){return null==e&&(e=!1),_o.__registeredFonts},_o.fromBytes=function(e){var t=new _o;return t.__fromBytes(jy.toBytes(e)),t},_o.fromFile=function(e){var t=new _o;return t.__fromFile(e),t},_o.registerFont=function(e){var t=Lp.__cast(ms.createInstance(e,[]),_o);null!=t&&_o.__registeredFonts.push(t)},_o.__fromLimeFont=function(e){var t=new _o;return t.name=e.name,t.src=e.src,t},_o.__super__=H,_o.prototype=n(H.prototype,{get_fontName:function(){return this.name},set_fontName:function(e){return this.name=e},__class__:_o,__properties__:n(H.prototype.__properties__,{set_fontName:"set_fontName",get_fontName:"get_fontName"})});var uo=function(){var e=new Jr;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_743_trebuchet_ms_ttf=uo).__name__=["__ASSET__OPENFL__assets_fonts_743_trebuchet_ms_ttf"],uo.__super__=_o,uo.prototype=n(_o.prototype,{__class__:uo});var co=function(){var e=new Qr;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_1865_arial_ttf=co).__name__=["__ASSET__OPENFL__assets_fonts_1865_arial_ttf"],co.__super__=_o,co.prototype=n(_o.prototype,{__class__:co});var fo=function(){var e=new $r;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_526_arial_black_ttf=fo).__name__=["__ASSET__OPENFL__assets_fonts_526_arial_black_ttf"],fo.__super__=_o,fo.prototype=n(_o.prototype,{__class__:fo});var po=function(){var e=new eo;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_849_yikes__ttf=po).__name__=["__ASSET__OPENFL__assets_fonts_849_yikes__ttf"],po.__super__=_o,po.prototype=n(_o.prototype,{__class__:po});var bo=function(){var e=new to;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_1404_cartoonist_ttf=bo).__name__=["__ASSET__OPENFL__assets_fonts_1404_cartoonist_ttf"],bo.__super__=_o,bo.prototype=n(_o.prototype,{__class__:bo});var mo=function(){var e=new so;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_2103_tahoma_ttf=mo).__name__=["__ASSET__OPENFL__assets_fonts_2103_tahoma_ttf"],mo.__super__=_o,mo.prototype=n(_o.prototype,{__class__:mo});var go=function(){var e=new no;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_164_yikes__ttf=go).__name__=["__ASSET__OPENFL__assets_fonts_164_yikes__ttf"],go.__super__=_o,go.prototype=n(_o.prototype,{__class__:go});var wo=function(){var e=new io;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_1546_visitor_tt2_brk_ttf=wo).__name__=["__ASSET__OPENFL__assets_fonts_1546_visitor_tt2_brk_ttf"],wo.__super__=_o,wo.prototype=n(_o.prototype,{__class__:wo});var vo=function(){var e=new ro;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_1582_trebuchet_ms_ttf=vo).__name__=["__ASSET__OPENFL__assets_fonts_1582_trebuchet_ms_ttf"],vo.__super__=_o,vo.prototype=n(_o.prototype,{__class__:vo});var yo=function(){var e=new oo;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_831_verdana_ttf=yo).__name__=["__ASSET__OPENFL__assets_fonts_831_verdana_ttf"],yo.__super__=_o,yo.prototype=n(_o.prototype,{__class__:yo});var To=function(){var e=new ao;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_899_mcboing_boing_ttf=To).__name__=["__ASSET__OPENFL__assets_fonts_899_mcboing_boing_ttf"],To.__super__=_o,To.prototype=n(_o.prototype,{__class__:To});var So=function(){var e=new lo;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_1455_cartoonist_ttf=So).__name__=["__ASSET__OPENFL__assets_fonts_1455_cartoonist_ttf"],So.__super__=_o,So.prototype=n(_o.prototype,{__class__:So});var xo=function(){var e=new ho;this.src=e.src,this.name=e.name,_o.call(this)};(s.__ASSET__OPENFL__assets_fonts_717_tahoma_ttf=xo).__name__=["__ASSET__OPENFL__assets_fonts_717_tahoma_ttf"],xo.__super__=_o,xo.prototype=n(_o.prototype,{__class__:xo});var V=function(e,t){this.r=new RegExp(e,t.split("u").join(""))};(s.EReg=V).__name__=["EReg"],V.prototype={match:function(e){return this.r.global&&(this.r.lastIndex=0),this.r.m=this.r.exec(e),this.r.s=e,null!=this.r.m},matched:function(e){if(null!=this.r.m&&0<=e&&e>16&255)+.587*(e>>8&255)+.114*(255&e)<70&&(t=16777215);var s=this.getHeight()/2-3.5,n=this.getWidth()-60;this.outline=new o,this.outline.get_graphics().beginFill(t,.07),this.outline.get_graphics().drawRect(0,0,n,7),this.outline.set_x(30),this.outline.set_y(s),this.addChildAt(this.outline,this.__children._length),this.progress=new o,this.progress.get_graphics().beginFill(t,.35),this.progress.get_graphics().drawRect(0,0,n-4,3),this.progress.set_x(32),this.progress.set_y(s+2),this.progress.set_scaleX(0),this.addChildAt(this.progress,this.__children._length)};(s.NMEPreloader=Re).__name__=["NMEPreloader"],Re.__super__=o,Re.prototype=n(o.prototype,{getBackgroundColor:function(){return 16777215},getHeight:function(){return 640},getWidth:function(){return 640},onInit:function(){},onLoaded:function(){this.dispatchEvent(new _a("complete"))},onUpdate:function(e,t,s){var n=e/t;1Be.minDuration&&this.attemptFinish())},attemptFinish:function(){1==this.loaded&&this.time>Be.minDuration&&(Zm.current.stage.set_color(this.initialStageColor),this.dispatchEvent(new _a("complete")))},attemptIntro:function(){var e=this;if(null!=this.swfLite&&this.dataLoaded){var t=new u(this.swfLite,this.swfLite.root);this.addChildAt(t,0),this.introLoaded=!0;var s=1;this.getWidth()<500&&(s=.75,t.set_scaleX(s),t.set_scaleY(s)),t.set_x(this.getWidth()/2-Be.introWidth*s/2),t.set_y(this.getHeight()/2-Be.introHeight*s/2),this.addEventListener("click",function(){window.open("http://www.addictinggames.com","_blank")});var n=t.getChildAt(0);n.addFrameScript(131,function(){e.displayMessage(),n.stop()})}},getBackgroundColor:function(){return 0},displayMessage:function(){},__class__:Be});var De=function(){};(s.Reflect=De).__name__=["Reflect"],De.field=function(e,t){try{return e[t]}catch(e){return jf.lastException=e,null}},De.getProperty=function(e,t){var s;return null==e?null:!!e.__properties__&&(s=e.__properties__["get_"+t])?e[s]():e[t]},De.fields=function(e){var t=[];if(null!=e){var s=Object.prototype.hasOwnProperty;for(var n in e)"__id__"!=n&&"hx__closures__"!=n&&s.call(e,n)&&t.push(n)}return t},De.isFunction=function(e){return"function"==typeof e&&!(e.__name__||e.__ename__)},De.compare=function(e,t){return e==t?0:t").join(">"),t?e.split('"').join(""").split("'").join("'"):e},Ri.startsWith=function(e,t){return e.length>=t.length&&he.substr(e,0,t.length)==t},Ri.isSpace=function(e,t){var s=he.cca(e,t);return 8>>=4););if(null!=t)for(;s.length=Yt.TWOPI;)t-=Yt.TWOPI;return this.rotIndex=t/this._rotationStepSize+.5|0,this.rotIndex==this._rotationStepsNum&&(this.rotIndex=0),this.frames[e-1][this.rotIndex]},get_loaded:function(){return this._loaded},setLoaded:function(){this._loaded=!0},__class__:Yt,__properties__:{get_loaded:"get_loaded"}};var Wt=function(e,t){null==t&&(t=0),this.y=0,this.x=0,this.playing=!0,this.deleteMe=!1,this.angle=0;var s=null;if(null!=e&&(null==this.clip?this.clip=e:Zf.trace("misused bitclip!",{fileName:"BitClip.hx",lineNumber:57,className:"bitClip.BitClip",methodName:"new"})),0!=t&&(this.rotationStepsNum=t),null==Wt.animations&&(Wt.animations={}),null!=this.clip){this.totalFrames=this.clip.get_totalFrames(),this.currentFrame=1;try{s=Lp.__cast(De.field(Wt.animations,Ue.string(this.clip)),Yt)}catch(e){jf.lastException=e,s=null}null!=s?this.animation=s:(this.setSource(),Zf.trace("created new animation bitmaps",{fileName:"BitClip.hx",lineNumber:80,className:"bitClip.BitClip",methodName:"new"}))}};(s["bitClip.BitClip"]=Wt).__name__=["bitClip","BitClip"],Wt.animations=null,Wt.prototype={get_bmd:function(){var e=this.animation.getBMD(this.currentFrame,this.angle),t=new Kt;return t.data=e.data,t.pos=e.pos.clone(),t.pos.offset(this.x,this.y),t},setFrameAction:function(e,t){null==this.animation.actions&&(this.animation.actions=[]),null==this.animation.actions[e]&&(this.animation.actions[e]=t)},stop:function(){this.playing=!1},get_recto:function(){var e=this.get_bmd();return new cy(e.pos.x,e.pos.y,e.data.width,e.data.height)},gotoAndPlayLabel:function(e){null!=De.field(this.animation.labels,e)&&(this.currentFrame=De.field(this.animation.labels,e)),this.playing=!0,this.didGotoAction=!0},gotoAndPlay:function(e){0this.totalFrames&&(this.currentFrame=1)))},step:function(){this.playing&&(this.currentFrame++,this.currentFrame>this.totalFrames&&(this.currentFrame=1))},setSource:function(){var e=new Yt(this.clip,this.rotationStepsNum);Wt.animations[Ue.string(this.clip)]=e,this.animation=e},set_rotateSteps:function(e){return null!=this.clip?Zf.trace("to late to change rotation steps!",{fileName:"BitClip.hx",lineNumber:225,className:"bitClip.BitClip",methodName:"set_rotateSteps"}):this.rotationStepsNum=e,e},gotoAndStop:function(e){0=e?(t.resolve("hasbought").set_visible(!0),t.resolve("cost_txt").set_visible(!1)):(t.resolve("hasbought").set_visible(!1),t.resolve("cost_txt").set_visible(!0),Lp.__cast(t.resolve("cost_txt"),Sa).set_text(""+Ue.string(this.parent.GetUpgradeCost(e))),t.CheckAfford()),++e}this.upgrade_group.resolve("upgrade4lock").set_visible(!0),Lp.__cast(this.upgrade_group.resolve("upgrade4lock").resolve("minrank_txt"),Sa).set_text(Ue.string(this.parent.resolve("currentTower").resolve("ug4_unlock_order"))),this.upgrade_group.resolve("upgrade4lock").addEventListener("click",CT(this,this.buymaxrankClick)),this.upgrade_group.resolve("upgrade4lock").buttonMode=!0,1==this.parent.userProfile.data.towerUnlocks[this.parent.resolve("currentTower").ug4_unlock_order-1|0]&&this.upgrade_group.resolve("upgrade4lock").set_visible(!1),"beacon"==this.parent.resolve("currentTower").type&&4==this.parent.resolve("currentTower").upgradeNum?this.upgrade_group.resolve("monkeystormbtn").set_visible(!0):this.upgrade_group.resolve("monkeystormbtn").set_visible(!1)},frame1:function(){this.upgrade_group.resolve("upgrade1").upgrade="na",this.upgrade_group.resolve("upgrade2").upgrade="na",this.upgrade_group.resolve("upgrade3").upgrade="na",this.upgrade_group.resolve("upgrade4").upgrade="na",this.sellTowerBtn.addEventListener("mouseDown",CT(this,this.sellTower)),this.sellTowerBtn.addEventListener("rollOver",CT(this,this.sellTowerOver)),this.sellTowerBtn.addEventListener("rollOut",CT(this,this.sellTowerOut))},sellTowerOver:function(e){this.sellTowerBtn.gotoAndStop(2)},buymaxrankClick:function(e){this.parent.showItemStore("maxrank")},sellTowerOut:function(e){this.sellTowerBtn.gotoAndStop(1)},sellTower:function(e){this.parent.SellCurrentTower()},__class__:Li});var nf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[1898];Li.call(this,r,o)};(s["bloonstd4_fla.Toweroptions_414"]=nf).__name__=["bloonstd4_fla","Toweroptions_414"],nf.__super__=Li,nf.prototype=n(Li.prototype,{__class__:nf});var Ni=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(2,CT(this,this.frame3)),this.addFrameScript(3,CT(this,this.frame4)),this.addFrameScript(4,CT(this,this.frame5)),this.addFrameScript(5,CT(this,this.frame6)),this.addFrameScript(6,CT(this,this.frame7)),this.addFrameScript(7,CT(this,this.frame8)),this.addFrameScript(8,CT(this,this.frame9)),this.addFrameScript(9,CT(this,this.frame10)),this.addFrameScript(10,CT(this,this.frame11)),this.addFrameScript(11,CT(this,this.frame12)),this.addFrameScript(12,CT(this,this.frame13)),this.addFrameScript(13,CT(this,this.frame14)),this.addFrameScript(14,CT(this,this.frame15)),this.addFrameScript(15,CT(this,this.frame16))};(s["swf.bloonstd4_fla.Towerplace336"]=Ni).__name__=["swf","bloonstd4_fla","Towerplace336"],Ni.__super__=u,Ni.prototype=n(u.prototype,{frame1:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_width(this.radiusmc.set_height(2*Lp.__cast(this.parent,a).RANGE_DART)),Zf.trace("tehdart",{fileName:"Towerplace336.hx",lineNumber:41,className:"swf.bloonstd4_fla.Towerplace336",methodName:"frame1"})},frame2:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_width(this.radiusmc.set_height(2*Lp.__cast(this.parent,a).RANGE_TACK))},frame3:function(){this.stop(),this.radiusmc.set_width(this.radiusmc.set_height(2*Lp.__cast(this.parent,a).RANGE_BOOMERANG))},frame4:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_width(this.radiusmc.set_height(2*Lp.__cast(this.parent,a).RANGE_BOMB))},frame6:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_width(this.radiusmc.set_height(2*Lp.__cast(this.parent,a).RANGE_ICE))},frame7:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_width(this.radiusmc.set_height(2*Lp.__cast(this.parent,a).RANGE_SUPER))},frame8:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_height(40),this.radiusmc.set_width(40)},frame9:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_height(40),this.radiusmc.set_width(40)},frame11:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_height(100),this.radiusmc.set_width(100)},frame12:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_width(this.radiusmc.set_height(2*Lp.__cast(this.parent,a).RANGE_BEACON))},frame5:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_height(20),this.radiusmc.set_width(20)},frame15:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_width(this.radiusmc.set_height(2*Lp.__cast(this.parent,a).RANGE_SHIP))},frame10:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_height(40),this.radiusmc.set_width(40)},frame13:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_width(this.radiusmc.set_height(2*Lp.__cast(this.parent,a).RANGE_GLUE))},frame14:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_height(1),this.radiusmc.set_width(1)},frame16:function(){this.stop(),this.radiusmc.set_visible(!0),this.radiusmc.set_width(this.radiusmc.set_height(2*Lp.__cast(this.parent,a).RANGE_WIZARD))},__class__:Ni});var rf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[1384];Ni.call(this,r,o)};(s["bloonstd4_fla.Towerplace_336"]=rf).__name__=["bloonstd4_fla","Towerplace_336"],rf.__super__=Ni,rf.prototype=n(Ni.prototype,{__class__:rf});var Oi=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(2,CT(this,this.frame3))};(s["swf.bloonstd4_fla.Track16btn232"]=Oi).__name__=["swf","bloonstd4_fla","Track16btn232"],Oi.__super__=u,Oi.prototype=n(u.prototype,{frame1:function(){this.stop()},frame2:function(){this.stop()},frame3:function(){this.stop()},__class__:Oi});var of=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[1127];Oi.call(this,r,o)};(s["bloonstd4_fla.Track16btn_232"]=of).__name__=["bloonstd4_fla","Track16btn_232"],of.__super__=Oi,of.prototype=n(Oi.prototype,{__class__:of});var Ui=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(2,CT(this,this.frame3))};(s["swf.bloonstd4_fla.Track17btn235"]=Ui).__name__=["swf","bloonstd4_fla","Track17btn235"],Ui.__super__=u,Ui.prototype=n(u.prototype,{frame1:function(){this.stop()},frame2:function(){this.stop()},frame3:function(){this.stop()},__class__:Ui});var af=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[1132];Ui.call(this,r,o)};(s["bloonstd4_fla.Track17btn_235"]=af).__name__=["bloonstd4_fla","Track17btn_235"],af.__super__=Ui,af.prototype=n(Ui.prototype,{__class__:af});var Gi=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(2,CT(this,this.frame3))};(s["swf.bloonstd4_fla.Track18btn238"]=Gi).__name__=["swf","bloonstd4_fla","Track18btn238"],Gi.__super__=u,Gi.prototype=n(u.prototype,{frame1:function(){this.stop()},frame2:function(){this.stop()},frame3:function(){this.stop()},__class__:Gi});var lf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[1136];Gi.call(this,r,o)};(s["bloonstd4_fla.Track18btn_238"]=lf).__name__=["bloonstd4_fla","Track18btn_238"],lf.__super__=Gi,lf.prototype=n(Gi.prototype,{__class__:lf});var zi=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(2,CT(this,this.frame3))};(s["swf.bloonstd4_fla.Track19btn240"]=zi).__name__=["swf","bloonstd4_fla","Track19btn240"],zi.__super__=u,zi.prototype=n(u.prototype,{frame1:function(){this.stop()},frame2:function(){this.stop()},frame3:function(){this.stop()},__class__:zi});var hf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[1144];zi.call(this,r,o)};(s["bloonstd4_fla.Track19btn_240"]=hf).__name__=["bloonstd4_fla","Track19btn_240"],hf.__super__=zi,hf.prototype=n(zi.prototype,{__class__:hf});var Xi=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(2,CT(this,this.frame3))};(s["swf.bloonstd4_fla.Track20btn244"]=Xi).__name__=["swf","bloonstd4_fla","Track20btn244"],Xi.__super__=u,Xi.prototype=n(u.prototype,{frame1:function(){this.stop()},frame2:function(){this.stop()},frame3:function(){this.stop()},__class__:Xi});var _f=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[1146];Xi.call(this,r,o)};(s["bloonstd4_fla.Track20btn_244"]=_f).__name__=["bloonstd4_fla","Track20btn_244"],_f.__super__=Xi,_f.prototype=n(Xi.prototype,{__class__:_f});var Hi=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(2,CT(this,this.frame3))};(s["swf.bloonstd4_fla.Track21btn245"]=Hi).__name__=["swf","bloonstd4_fla","Track21btn245"],Hi.__super__=u,Hi.prototype=n(u.prototype,{frame1:function(){this.stop()},frame2:function(){this.stop()},frame3:function(){this.stop()},__class__:Hi});var uf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[1148];Hi.call(this,r,o)};(s["bloonstd4_fla.Track21btn_245"]=uf).__name__=["bloonstd4_fla","Track21btn_245"],uf.__super__=Hi,uf.prototype=n(Hi.prototype,{__class__:uf});var Vi=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(2,CT(this,this.frame3))};(s["swf.bloonstd4_fla.Track22btn246"]=Vi).__name__=["swf","bloonstd4_fla","Track22btn246"],Vi.__super__=u,Vi.prototype=n(u.prototype,{frame1:function(){this.stop()},frame2:function(){this.stop()},frame3:function(){this.stop()},__class__:Vi});var df=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[1151];Vi.call(this,r,o)};(s["bloonstd4_fla.Track22btn_246"]=df).__name__=["bloonstd4_fla","Track22btn_246"],df.__super__=Vi,df.prototype=n(Vi.prototype,{__class__:df});var Yi=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(2,CT(this,this.frame3))};(s["swf.bloonstd4_fla.Track23btn248"]=Yi).__name__=["swf","bloonstd4_fla","Track23btn248"],Yi.__super__=u,Yi.prototype=n(u.prototype,{frame1:function(){this.stop()},frame2:function(){this.stop()},frame3:function(){this.stop()},__class__:Yi});var cf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[1153];Yi.call(this,r,o)};(s["bloonstd4_fla.Track23btn_248"]=cf).__name__=["bloonstd4_fla","Track23btn_248"],cf.__super__=Yi,cf.prototype=n(Yi.prototype,{__class__:cf});var Wi=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(2,CT(this,this.frame3)),this.addFrameScript(3,CT(this,this.frame4)),this.addFrameScript(4,CT(this,this.frame5)),this.addFrameScript(5,CT(this,this.frame6)),this.addFrameScript(6,CT(this,this.frame7)),this.addFrameScript(7,CT(this,this.frame8)),this.addFrameScript(8,CT(this,this.frame9)),this.addFrameScript(9,CT(this,this.frame10)),this.addFrameScript(10,CT(this,this.frame11)),this.addFrameScript(11,CT(this,this.frame12)),this.addFrameScript(12,CT(this,this.frame13))};(s["swf.bloonstd4_fla.TrackPreview556"]=Wi).__name__=["swf","bloonstd4_fla","TrackPreview556"],Wi.__super__=u,Wi.prototype=n(u.prototype,{frame1:function(){this.stop(),this.closeBtn.addEventListener("click",CT(this,this.clickClose))},frame2:function(){this.stop()},frame3:function(){this.stop()},frame4:function(){this.stop()},frame6:function(){this.stop()},frame7:function(){this.stop()},frame8:function(){this.stop()},frame9:function(){this.stop()},frame11:function(){this.stop()},frame12:function(){this.stop()},frame5:function(){this.stop()},clickClose:function(e){this.set_visible(!1)},frame13:function(){this.stop(),Zf.trace("choose this track",{fileName:"TrackPreview556.hx",lineNumber:96,className:"swf.bloonstd4_fla.TrackPreview556",methodName:"frame13"})},frame10:function(){this.stop()},__class__:Wi});var ff=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[2029];Wi.call(this,r,o)};(s["bloonstd4_fla.TrackPreview_556"]=ff).__name__=["bloonstd4_fla","TrackPreview_556"],ff.__super__=Wi,ff.prototype=n(Wi.prototype,{__class__:ff});var ji=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(2,CT(this,this.frame3))};(s["swf.bloonstd4_fla.UpgradeDartRange425"]=ji).__name__=["swf","bloonstd4_fla","UpgradeDartRange425"],ji.__super__=u,ji.prototype=n(u.prototype,{frame1:function(){this.stop()},frame2:function(){this.stop()},frame3:function(){this.stop()},__class__:ji});var pf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[1598];ji.call(this,r,o)};(s["bloonstd4_fla.Upgrade_dart_range_425"]=pf).__name__=["bloonstd4_fla","Upgrade_dart_range_425"],pf.__super__=ji,pf.prototype=n(ji.prototype,{__class__:pf});var Ki=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(2,CT(this,this.frame3)),this.addFrameScript(3,CT(this,this.frame4)),this.addFrameScript(4,CT(this,this.frame5)),this.addFrameScript(5,CT(this,this.frame6)),this.addFrameScript(6,CT(this,this.frame7)),this.addFrameScript(7,CT(this,this.frame8)),this.addFrameScript(8,CT(this,this.frame9)),this.addFrameScript(9,CT(this,this.frame10)),this.addFrameScript(10,CT(this,this.frame11)),this.addFrameScript(11,CT(this,this.frame12)),this.addFrameScript(12,CT(this,this.frame13)),this.addFrameScript(13,CT(this,this.frame14)),this.addFrameScript(14,CT(this,this.frame15)),this.addFrameScript(15,CT(this,this.frame16)),this.addFrameScript(16,CT(this,this.frame17)),this.addFrameScript(17,CT(this,this.frame18)),this.addFrameScript(18,CT(this,this.frame19)),this.addFrameScript(19,CT(this,this.frame20)),this.addFrameScript(20,CT(this,this.frame21)),this.addFrameScript(21,CT(this,this.frame22)),this.addFrameScript(22,CT(this,this.frame23)),this.addFrameScript(23,CT(this,this.frame24)),this.addFrameScript(24,CT(this,this.frame25)),this.addFrameScript(25,CT(this,this.frame26)),this.addFrameScript(26,CT(this,this.frame27)),this.addFrameScript(27,CT(this,this.frame28)),this.addFrameScript(28,CT(this,this.frame29)),this.addFrameScript(29,CT(this,this.frame30)),this.addFrameScript(30,CT(this,this.frame31)),this.addFrameScript(31,CT(this,this.frame32)),this.addFrameScript(32,CT(this,this.frame33)),this.addFrameScript(33,CT(this,this.frame34)),this.addFrameScript(34,CT(this,this.frame35)),this.addFrameScript(35,CT(this,this.frame36)),this.addFrameScript(36,CT(this,this.frame37)),this.addFrameScript(37,CT(this,this.frame38)),this.addFrameScript(38,CT(this,this.frame39)),this.addFrameScript(39,CT(this,this.frame40)),this.addFrameScript(40,CT(this,this.frame41)),this.addFrameScript(41,CT(this,this.frame42)),this.addFrameScript(42,CT(this,this.frame43)),this.addFrameScript(43,CT(this,this.frame44)),this.addFrameScript(44,CT(this,this.frame45)),this.addFrameScript(45,CT(this,this.frame46)),this.addFrameScript(46,CT(this,this.frame47)),this.addFrameScript(47,CT(this,this.frame48)),this.addFrameScript(48,CT(this,this.frame49)),this.addFrameScript(49,CT(this,this.frame50)),this.addFrameScript(50,CT(this,this.frame51)),this.addFrameScript(51,CT(this,this.frame52))};(s["swf.bloonstd4_fla.UpgradeIcons418"]=Ki).__name__=["swf","bloonstd4_fla","UpgradeIcons418"],Ki.__super__=u,Ki.prototype=n(u.prototype,{frame31:function(){this.stop()},frame32:function(){this.stop()},frame33:function(){this.stop()},frame34:function(){this.stop()},frame35:function(){this.stop()},frame36:function(){this.stop()},frame37:function(){this.stop()},frame38:function(){this.stop()},frame39:function(){this.stop()},frame30:function(){this.stop()},frame40:function(){this.stop()},frame41:function(){this.stop()},frame42:function(){this.stop()},frame43:function(){this.stop()},frame44:function(){this.stop()},frame45:function(){this.stop()},frame46:function(){this.stop()},frame47:function(){this.stop()},frame48:function(){this.stop()},frame49:function(){this.stop()},frame50:function(){this.stop()},frame51:function(){this.stop()},frame52:function(){this.stop()},frame10:function(){this.stop()},frame11:function(){this.stop()},frame12:function(){this.stop()},frame13:function(){this.stop()},frame14:function(){this.stop()},frame15:function(){this.stop()},frame16:function(){this.stop()},frame17:function(){this.stop()},frame18:function(){this.stop()},frame19:function(){this.stop()},frame1:function(){this.stop()},frame2:function(){this.stop()},frame3:function(){this.stop()},frame4:function(){this.stop()},frame5:function(){this.stop()},frame6:function(){this.stop()},frame7:function(){this.stop()},frame8:function(){this.stop()},frame9:function(){this.stop()},frame22:function(){this.stop()},frame23:function(){this.stop()},CheckAfford:function(){this.parent.parent.parent.CanAfford(this.resolve("upgrade"))?this.cantafford.set_visible(!1):this.cantafford.set_visible(!0)},frame25:function(){this.stop()},frame26:function(){this.stop()},frame20:function(){this.stop()},frame21:function(){this.stop()},frame29:function(){this.stop()},frame24:function(){this.stop()},frame27:function(){this.stop()},frame28:function(){this.stop()},__class__:Ki});var bf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[1840];Ki.call(this,r,o)};(s["bloonstd4_fla.Upgrade_icons_418"]=bf).__name__=["bloonstd4_fla","Upgrade_icons_418"],bf.__super__=Ki,bf.prototype=n(Ki.prototype,{__class__:bf});var qi=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1))};(s["swf.bloonstd4_fla.Winbar545"]=qi).__name__=["swf","bloonstd4_fla","Winbar545"],qi.__super__=u,qi.prototype=n(u.prototype,{keepgoing:function(e){this.parent.parent.set_visible(!1),this.parent.parent.parent.freePlayMode()},frame1:function(){this.okbtn.addEventListener("click",CT(this,this.clickBtn)),this.submitbtn.addEventListener("click",CT(this,this.clickSubmitBtn)),this.keepgoingbtn.addEventListener("click",CT(this,this.keepgoing))},clickBtn:function(e){this.parent.parent.gotoAndPlay("drawOff")},clickSubmitBtn:function(e){this.parent.parent.parent.submitRank()},__class__:qi});var mf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[2013];qi.call(this,r,o)};(s["bloonstd4_fla.Winbar_545"]=mf).__name__=["bloonstd4_fla","Winbar_545"],mf.__super__=qi,mf.prototype=n(qi.prototype,{__class__:mf});var Zi=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1))};(s["swf.bloonstd4_fla.Wingameinner543"]=Zi).__name__=["swf","bloonstd4_fla","Wingameinner543"],Zi.__super__=u,Zi.prototype=n(u.prototype,{frame1:function(){this.stop(),this.nohitbtn.addEventListener("click",CT(this,this.nohitplz))},nohitplz:function(e){},__class__:Zi});var gf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[2014];Zi.call(this,r,o)};(s["bloonstd4_fla.Wingameinner_543"]=gf).__name__=["bloonstd4_fla","Wingameinner_543"],gf.__super__=Zi,gf.prototype=n(Zi.prototype,{__class__:gf});var Ji=function(e,t){u.call(this,e,t),this.addEventListener("addedToStage",CT(this,this.frame1)),this.addFrameScript(0,CT(this,this.frame1)),this.addFrameScript(1,CT(this,this.frame2)),this.addFrameScript(46,CT(this,this.frame47)),this.addFrameScript(92,CT(this,this.frame93))};(s["swf.bloonstd4_fla.Winpanel542"]=Ji).__name__=["swf","bloonstd4_fla","Winpanel542"],Ji.__super__=u,Ji.prototype=n(u.prototype,{frame47:function(){this.stop()},frame1:function(){this.stop(),this.set_visible(!1)},frame2:function(){this.set_visible(!0),this.inner.resolve("inner").resolve("medal").gotoAndStop(this.parent.resolve("diff")),this.inner.resolve("inner").resolve("medal").resolve("strap").gotoAndStop(this.parent.resolve("trackNum")),Lp.__cast(this.inner.resolve("inner").resolve("msg_txt"),Sa).set_text("You passed this track on "+Ue.string(this.parent.diff))},frame93:function(){this.parent.resolve("mainmenu").set_visible(!0),this.parent.Init(),this.set_visible(!1)},__class__:Ji});var wf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[2015];Ji.call(this,r,o)};(s["bloonstd4_fla.Winpanel_542"]=wf).__name__=["bloonstd4_fla","Winpanel_542"],wf.__super__=Ji,wf.prototype=n(Ji.prototype,{__class__:wf});var Qi=function(e,t){u.call(this,e,t)};(s["swf.com.google.analytics.components.FlashTracker"]=Qi).__name__=["swf","com","google","analytics","components","FlashTracker"],Qi.__super__=u,Qi.prototype=n(u.prototype,{__class__:Qi});var vf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[829];Qi.call(this,r,o)};(s["com.google.analytics.components.FlashTracker"]=vf).__name__=["com","google","analytics","components","FlashTracker"],vf.__super__=Qi,vf.prototype=n(Qi.prototype,{__class__:vf});var $i=function(e,t){u.call(this,e,t)};(s["swf.com.google.analytics.components.Icon"]=$i).__name__=["swf","com","google","analytics","components","Icon"],$i.__super__=u,$i.prototype=n(u.prototype,{__class__:$i});var yf=function(){var e=Ca.instances;if(!(null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat"))){var t=Ca.instances,s=Ca.unserializeLibrary(jy.toBytes(Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat"))),n=t;null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat",s):n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]=s}var i=Ca.instances,r=null!=NT["lib/bloontowerdefense4/bloontowerdefense4.dat"]?i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat"):i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"],o=r.symbols.h[828];$i.call(this,r,o)};(s["com.google.analytics.components.Icon"]=yf).__name__=["com","google","analytics","components","Icon"],yf.__super__=$i,yf.prototype=n($i.prototype,{__class__:yf});var er=function(e,t,s,n){null==t&&(t=10),this._paused=!0,this.autoRotation=!1,this.autoVisible=!0,this.reflect=!1,this.snapping=!1,this._tweenPosition=0,this.repeat=0,this.duration=1,this._delay=0,this._position=0,this.autoPlay=!0,this.ease=er.linearEase,g.call(this),this.ticker=er.get_activeTicker(),this.set_target(e),this.duration=t,this.ease=null==er.defaultEase?er.linearEase:er.defaultEase,this.setProperties(s),this.setTweenProperties(n)};(s["com.gskinner.motion.GTween"]=er).__name__=["com","gskinner","motion","GTween"],er.__properties__={set_timingMode:"set_timingMode",get_timingMode:"get_timingMode",get_activeTicker:"get_activeTicker"},er.activeTweens=null,er._activeTicker=null,er.defaultEase=null,er._timingMode=null,er.set_timeInterval=function(e){er._timeInterval=e,Lp.__instanceof(er._activeTicker,rr)&&Lp.__cast(er._activeTicker,rr).set_interval(er._timeInterval/1e3)},er.get_timingMode=function(){return er._timingMode},er.get_activeTicker=function(){return null==er._timingMode&&er.set_timingMode("hybrid"),er._activeTicker},er.set_timingMode=function(e){return(e="frame"==e||"time"==e?e:"hybrid")==er._timingMode||(er._timingMode=e,"time"==er._timingMode?(er._activeTicker=new rr,Lp.__cast(er._activeTicker,rr).set_interval(er._timeInterval/1e3)):"frame"==er._timingMode?er._activeTicker=new sr:er._activeTicker=new ir),e},er.linearEase=function(e,t,s,n){return e},er.get_timeInterval=function(){return er._timeInterval},er.__super__=g,er.prototype=n(g.prototype,{setGCLock:function(e){if(!e)throw Lp.__instanceof(this._target,i)&&this._target.removeEventListener("GDS__NONEXISTENT_EVENT",CT(this,this.nullListener)),new Mp("");Lp.__instanceof(this._target,i)?this._target.addEventListener("GDS__NONEXISTENT_EVENT",CT(this,this.nullListener),!1,0,!1):er.activeTweens.set(this,!0)},get_target:function(){return this._target},get_delay:function(){return this._delay},set_delay:function(e){this._position==-this._delay&&this.setPosition(-e),this._delay=e},init:function(){if(this.inited=!0,!this._lockStartProperties)throw this.startValues={},null!=this.assignmentTarget&&null!=this.assignmentProperty&&(this._propertyTarget=De.field(this.assignmentTarget,this.assignmentProperty)),new Mp("")},get_state:function(){return this._position==-this._delay&&this._paused?"start":this._position<0?"delay":-1!=this.repeat&&this._position>=(this.repeat+1)*this.duration?"end":"tween"},get_lockStartProperties:function(){return this._lockStartProperties},deleteProperty:function(e){throw new Mp("")},set_target:function(e){return this._propertyTarget=this._target=null==e?{}:e,this.inited=!1,e},set_reversed:function(e){return e==this._reversed||(this._reversed=e,this.inited||this.init(),this.setPosition(this._position,!0)),e},get_position:function(){return this._position},setPosition:function(e,t){null==t&&(t=!0);var s=NaN;this._previousPosition=this._position,this._position=e,this.inTick||this.get_paused()||this.updatePositionOffset();var n=(this.repeat+1)*this.duration;e<0?s=this._reversed?this.duration:0:-1==this.repeat||e=this.duration*(this.repeat+1)?this.set_position(0):this.updatePositionOffset()),this.setGCLock(!e),e)},beginning:function(){this.setPosition(-this._delay)},setProperty:function(e,t){isNaN(t)||(this.endValues[e]=t,this._lockStartProperties&&null==De.field(this.startValues,e)&&(this.startValues[e]=De.field(this._propertyTarget,e)),this.invalidate())},updatePositionOffset:function(){this.positionOffset=this.ticker.get_position()-this._position},copyDynamic:function(e){throw new Mp("")},setTweenProperties:function(e){var t=NaN;if(e){if(Object.prototype.hasOwnProperty.call(e,"position"))throw t=e.position,new Mp("");if(Object.prototype.hasOwnProperty.call(e,"initListener"))throw this.addEventListener("init",e.initListener,!1,0,!0),new Mp("");if(Object.prototype.hasOwnProperty.call(e,"completeListener"))throw this.addEventListener("complete",e.completeListener,!1,0,!0),new Mp("");if(Object.prototype.hasOwnProperty.call(e,"changeListener"))throw this.addEventListener("change",e.changeListener,!1,0,!0),new Mp("");for(var s=0,n=De.fields(e);s>16)},or.readUI32=function(e){return e.resetBitsPending(),e.readUnsignedInt()},or.writeUI32=function(e,t){e.resetBitsPending(),e.writeUnsignedInt(t)},or.readFIXED=function(e){return e.resetBitsPending(),e.readInt()/65536},or.writeFIXED=function(e,t){e.resetBitsPending(),e.writeInt(65536*t|0)},or.readFIXED8=function(e){return e.resetBitsPending(),e.readShort()/256},or.writeFIXED8=function(e,t){e.resetBitsPending(),e.writeShort(256*t|0)},or.readFLOAT=function(e){return e.resetBitsPending(),e.readFloat()},or.writeFLOAT=function(e,t){e.resetBitsPending(),e.writeFloat(t)},or.readDOUBLE=function(e){return e.resetBitsPending(),e.readDouble()},or.writeDOUBLE=function(e,t){e.resetBitsPending(),e.writeDouble(t)},or.readFLOAT16=function(e){e.resetBitsPending();var t=e.readUnsignedShort(),s=0!=(32768&t)?-1:1,n=t>>10&31,i=1023&t;return 0==n?0==i?0:s*Math.pow(2,-14)*(i/1024):31==n?0==i?s<0?-1/0:1/0:NaN:s*Math.pow(2,n-15)*(1+i/1024)},or.writeFLOAT16=function(e,t){Xf.write(t,e)},or.readEncodedU32=function(e){e.resetBitsPending();var t=e.readUnsignedByte();return 0<(128&t)&&0<(16384&(t=127&t|e.readUnsignedByte()<<7))&&0<(2097152&(t=16383&t|e.readUnsignedByte()<<14))&&0<(268435456&(t=2097151&t|e.readUnsignedByte()<<21))&&(t=268435455&t|e.readUnsignedByte()<<28),t},or.writeEncodedU32=function(e,t){var s=127&t;0!=(t>>=7)?or.writeUI8(e,128|s):or.writeUI8(e,s)},or.readUB=function(e,t){return e.readBits(t)},or.writeUB=function(e,t,s){e.writeBits(t,s)},or.readSB=function(e,t){var s=32-t;return(e.readBits(t)<>s},or.writeSB=function(e,t,s){e.writeBits(t,s)},or.readFB=function(e,t){return or.readSB(e,t)/65536},or.writeFB=function(e,t,s){or.writeSB(e,t,65536*s|0)},or.readSTRING=function(e){for(var t=e.position;0>16&255),e.writeByte(t>>8&255),e.writeByte(255&t)},or.readRGBA=function(e){e.resetBitsPending();var t=16777215&or.readRGB(e);return e.readUnsignedByte()<<24|t},or.writeRGBA=function(e,t){e.resetBitsPending(),or.writeRGB(e,t),e.writeByte(t>>24&255)},or.readARGB=function(e){return e.resetBitsPending(),e.readUnsignedByte()<<24|16777215&or.readRGB(e)},or.writeARGB=function(e,t){e.resetBitsPending(),e.writeByte(t>>24&255),or.writeRGB(e,t)},or.readRECT=function(e){return new Lr(e)},or.writeRECT=function(e,t){t.publish(e)},or.readMATRIX=function(e){return new Rr(e)},or.writeMATRIX=function(e,t){e.resetBitsPending();var s,n=1!=t.scaleX||1!=t.scaleY,i=0!=t.rotateSkew0||0!=t.rotateSkew1;(e.writeBits(1,n?1:0),n)&&(s=0==t.scaleX&&0==t.scaleY?1:e.calculateMaxBits(!0,[65536*t.scaleX|0,65536*t.scaleY|0]),or.writeUB(e,5,s),or.writeFB(e,s,t.scaleX),or.writeFB(e,s,t.scaleY));if(e.writeBits(1,i?1:0),i){var r=e.calculateMaxBits(!0,[65536*t.rotateSkew0|0,65536*t.rotateSkew1|0]);or.writeUB(e,5,r),or.writeFB(e,r,t.rotateSkew0),or.writeFB(e,r,t.rotateSkew1)}var o=e.calculateMaxBits(!0,[t.translateX,t.translateY]);or.writeUB(e,5,o),or.writeSB(e,o,t.translateX),or.writeSB(e,o,t.translateY)},or.readCXFORM=function(e){return new fr(e)},or.writeCXFORM=function(e,t){t.publish(e)},or.readCXFORMWITHALPHA=function(e){return new pr(e)},or.writeCXFORMWITHALPHA=function(e,t){t.publish(e)},or.readSHAPE=function(e,t){return null==t&&(t=20),new Ur(e,1,t)},or.writeSHAPE=function(e,t){t.publish(e)},or.readSHAPEWITHSTYLE=function(e,t,s){return null==s&&(s=20),null==t&&(t=1),new Yr(e,t,s)},or.writeSHAPEWITHSTYLE=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readSTRAIGHTEDGERECORD=function(e,t){return new Hr(e,t)},or.writeSTRAIGHTEDGERECORD=function(e,t){t.publish(e)},or.readCURVEDEDGERECORD=function(e,t){return new zr(e,t)},or.writeCURVEDEDGERECORD=function(e,t){t.publish(e)},or.readSTYLECHANGERECORD=function(e,t,s,n,i){return null==i&&(i=1),new Vr(e,t,s,n,i)},or.writeSTYLECHANGERECORD=function(e,t,s,n,i){null==i&&(i=1),t.numFillBits=s,t.numLineBits=n,t.publish(e,i)},or.readFILLSTYLE=function(e,t){return null==t&&(t=1),new gr(e,t)},or.writeFILLSTYLE=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readLINESTYLE=function(e,t){return null==t&&(t=1),new Er(e,t)},or.writeLINESTYLE=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readLINESTYLE2=function(e,t){return null==t&&(t=1),new Pr(e,t)},or.writeLINESTYLE2=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readBUTTONRECORD=function(e,t){return null==t&&(t=1),0==or.readUI8(e)?null:(e.position--,new _r(e,t))},or.writeBUTTONRECORD=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readBUTTONCONDACTION=function(e){return new hr(e)},or.writeBUTTONCONDACTION=function(e,t){t.publish(e)},or.readFILTER=function(e){var t=or.readUI8(e),s=ya.create(t);return s.parse(e),s},or.writeFILTER=function(e,t){or.writeUI8(e,t.id),t.publish(e)},or.readTEXTRECORD=function(e,t,s,n,i){return null==i&&(i=1),0==or.readUI8(e)?null:(e.position--,new Eo(e,t,s,n,i))},or.writeTEXTRECORD=function(e,t,s,n,i,r){null==r&&(r=1),t.publish(e,s,n,i,r)},or.readGLYPHENTRY=function(e,t,s){return new Tr(e,t,s)},or.writeGLYPHENTRY=function(e,t,s,n){t.publish(e,s,n)},or.readZONERECORD=function(e){return new Ro(e)},or.writeZONERECORD=function(e,t){t.publish(e)},or.readZONEDATA=function(e){return new Po(e)},or.writeZONEDATA=function(e,t){t.publish(e)},or.readKERNINGRECORD=function(e,t){return new xr(e,t)},or.writeKERNINGRECORD=function(e,t,s){t.publish(e,s)},or.readGRADIENT=function(e,t){return null==t&&(t=1),new wr(e,t)},or.writeGRADIENT=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readFOCALGRADIENT=function(e,t){return null==t&&(t=1),new vr(e,t)},or.writeFOCALGRADIENT=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readGRADIENTRECORD=function(e,t){return null==t&&(t=1),new Sr(e,t)},or.writeGRADIENTRECORD=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readMORPHFILLSTYLE=function(e,t){return null==t&&(t=1),new Ar(e,t)},or.writeMORPHFILLSTYLE=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readMORPHLINESTYLE=function(e,t){return null==t&&(t=1),new Dr(e,t)},or.writeMORPHLINESTYLE=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readMORPHLINESTYLE2=function(e,t){return null==t&&(t=1),new kr(e,t)},or.writeMORPHLINESTYLE2=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readMORPHGRADIENT=function(e,t){return null==t&&(t=1),new Ir(e,t)},or.writeMORPHGRADIENT=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readMORPHFOCALGRADIENT=function(e,t){return null==t&&(t=1),new Cr(e,t)},or.writeMORPHFOCALGRADIENT=function(e,t,s){null==s&&(s=1),t.publish(e,s)},or.readMORPHGRADIENTRECORD=function(e){return new Br(e)},or.writeMORPHGRADIENTRECORD=function(e,t){t.publish(e)},or.readACTIONRECORD=function(e){var t=e.position,s=null,n=or.readUI8(e);if(0!=n){var i=128<=n?or.readUI16(e):0;(s=va.create(n,i,t)).parse(e)}return s},or.writeACTIONRECORD=function(e,t){t.publish(e)},or.readREGISTERPARAM=function(e){return new Nr(e)},or.writeREGISTERPARAM=function(e,t){t.publish(e)},or.readSYMBOL=function(e){return new Kr(e)},or.writeSYMBOL=function(e,t){t.publish(e)},or.readSOUNDINFO=function(e){return new jr(e)},or.writeSOUNDINFO=function(e,t){t.publish(e)},or.readSOUNDENVELOPE=function(e){return new Wr(e)},or.writeSOUNDENVELOPE=function(e,t){t.publish(e)},or.readCLIPACTIONS=function(e,t){return new dr(e,t)},or.writeCLIPACTIONS=function(e,t,s){t.publish(e,s)},or.readCLIPACTIONRECORD=function(e,t){var s=e.position;return 0==(6<=t?or.readUI32(e):or.readUI16(e))?null:(e.position=s,new ur(e,t))},or.writeCLIPACTIONRECORD=function(e,t,s){t.publish(e,s)},or.readCLIPEVENTFLAGS=function(e,t){return new cr(e,t)},or.writeCLIPEVENTFLAGS=function(e,t,s){t.publish(e,s)},or.readTagHeader=function(e){var t=e.position,s=or.readUI16(e),n=63&s;return 63==n&&(n=or.readSI32(e)),new Mr(s>>6,n,e.position-t)},or.writeTagHeader=function(e,t,s,n){null==n&&(n=!1),s<63&&!n?or.writeUI16(e,t<<6|s):(or.writeUI16(e,t<<6|63),or.writeSI32(e,s))},or.swfUncompress=function(e,t,s){null==s&&(s=0);var n=e.position,i=new Uf(0);if(2==t)e.readBytes(i),i.position=0,i.uncompress();else{if(1!=t)throw new Mp(new _v("Unknown compression method: "+Ky.toString(t)));for(var r=0;r<5;){var o=r++;i.writeByte(e.b[o+12])}i.__endian=1,i.writeUnsignedInt(s-8),i.writeUnsignedInt(0),e.position=17,e.readBytes(i,13),i.position=0,i.uncompress(t)}or.set_length(e,e.position=n),e.writeBytes(i),e.position=n},or.swfCompress=function(e,t){var s=e.position,n=new Uf(0);if(2!=t)throw new Mp(new _v(1==t?"Can't publish LZMA compressed SWFs":"Unknown compression method: "+Ky.toString(t)));e.readBytes(n),n.position=0,n.compress(),or.set_length(e,e.position=s),e.writeBytes(n)},or.readRawTag=function(e){return new Fr(e)},or.skipBytes=function(e,t){e.position+=t},or.dump=function(e,t,s){null==s&&(s=0);for(var n=e.position,i=e.position=0|Math.min(Math.max(n+s,0),jy.get_length(e)-t),r="[Dump] total length: "+jy.get_length(e)+", original position: "+n,o=0,a=t;o=or.get_length(e),this.eof)return Zf.trace("WARNING: end of file encountered, no end tag.",{fileName:"SWFTimelineContainer.hx",lineNumber:191,className:"format.swf.SWFTimelineContainer",methodName:"parseTag"}),null;var n=or.readRawTag(e),i=n.header,r=this.tagFactory.create(i.type);try{if(Lp.__instanceof(r,lr)){var o=r;o.tagFactory=this.tagFactory,o.rootTimelineContainer=this}r.parse(e,i.contentLength,this._tmpVersion,t)}catch(e){throw(jf.lastException=e)instanceof Mp&&(e=e.val),Lp.__instanceof(e,_v)?(Zf.trace("WARNING: parse error: "+e.message+", Tag: "+r.name+", Index: "+this.tags.length,{fileName:"SWFTimelineContainer.hx",lineNumber:213,className:"format.swf.SWFTimelineContainer",methodName:"parseTag"}),new Mp(e)):e}this.tags.push(r),this.tagsRaw.push(n),this.processTag(r);var a=s+i.get_tagLength();if(e.position!=a){var l=this.tags.length-1,h=e.position-(s+i.get_tagLength()),_=h<0?"underflow":"overflow",u={pos:s,bytes:h<0?-h:h};this.rootTimelineContainer==this?Zf.trace("WARNING: excess bytes: "+h+", Tag: "+r.name+", Index: "+l,{fileName:"SWFTimelineContainer.hx",lineNumber:233,className:"format.swf.SWFTimelineContainer",methodName:"parseTag"}):(u.indexRoot=this.rootTimelineContainer.tags.length,Zf.trace("WARNING: excess bytes: "+h+", Tag: "+r.name+", Index: "+l+", IndexRoot: "+Ue.string(u.indexRoot),{fileName:"SWFTimelineContainer.hx",lineNumber:239,className:"format.swf.SWFTimelineContainer",methodName:"parseTag"}));var d=new ca(_,l,u,!1,!0);this.dispatchEvent(d),e.position=s+i.get_tagLength()}return r},parseTagsFinalize:function(){null!=this.soundStream&&0==jy.get_length(this.soundStream.data)&&(this.soundStream=null),lr.AUTOBUILD_LAYERS&&this.buildLayers()},publishTags:function(e,t){for(var s,n,i=0,r=this.tags.length;i>1;null!=(t=or.readACTIONRECORD(e));){var n=this.actions;if(!n.fixed){if(n.length++,n.data.length>8),this.out.b.push(255&e)},getCLID:function(){return this.input.b[this.inPos++]<<8|this.input.b[this.inPos++]},addObjRef:function(e){var t=e.__uid;0<=t&&t<128?this.out.b.push(t):(this.out.b.push(128),this.out.addInt32(t))},getObjRef:function(){var e=this.input.b[this.inPos++];return 128==e&&(e=this.input.getInt32(this.inPos),this.inPos+=4),e},addAnyRef:function(e){if(null!=e){if(null!=this.remapObjs&&this.remap(e),this.addObjRef(e),null==this.refs.h[e.__uid]){var t=(this.refs.h[e.__uid]=e).getCLID();this.usedClasses[t]=!0,this.out.b.push(t>>8),this.out.b.push(255&t),e.serialize(this)}}else this.out.b.push(0)},addKnownRef:function(e){if(null!=e){if(null!=this.remapObjs&&this.remap(e),this.addObjRef(e),null==this.refs.h[e.__uid]){var t=(this.refs.h[e.__uid]=e).getCLID();this.usedClasses[t]=!0;var s=mr.CLIDS[t];0!=s&&(this.out.b.push(s>>8),this.out.b.push(255&s)),e.serialize(this)}}else this.out.b.push(0)},getAnyRef:function(){var e=this.getObjRef();if(0==e)return null;if(null!=this.refs.h[e])return this.refs.h[e];var t=16777215&e;mr.UID>8),this.out.b.push(255&v);var I=s[w].get_checkSum();this.out.addInt32(I)}this.out.b.push(0);var C=h.length;0<=C&&C<128?this.out.b.push(C):(this.out.b.push(128),this.out.addInt32(C));for(var B=this.out,D=(B.b,h.b),k=0,F=h.length;ke&&(e=r.fillStyle0),r.fillStyle1>e&&(e=r.fillStyle1),r.stateNewStyles)break}}return e},getMaxLineStyleIndex:function(){for(var e=0,t=0,s=this.records.length;te&&(e=r.lineStyle),r.stateNewStyles)break}}return e},parse:function(e,t){null==t&&(t=1),e.resetBitsPending();var s=or.readUB(e,4),n=or.readUB(e,4);this.readShapeRecords(e,s,n,t)},publish:function(e,t){null==t&&(t=1);var s=e.calculateMaxBits(!1,[this.getMaxFillStyleIndex()]),n=e.calculateMaxBits(!1,[this.getMaxLineStyleIndex()]);e.resetBitsPending(),or.writeUB(e,4,s),or.writeUB(e,4,n),this.writeShapeRecords(e,s,n,t)},readShapeRecords:function(e,t,s,n){null==n&&(n=1);for(var i=null;!Lp.__instanceof(i,Xr);){if(1==or.readUB(e,1)){var r=1==or.readUB(e,1),o=or.readUB(e,4)+2;i=r?or.readSTRAIGHTEDGERECORD(e,o):or.readCURVEDEDGERECORD(e,o)}else{var a=or.readUB(e,5);if(0==a)i=new Xr;else{var l=or.readSTYLECHANGERECORD(e,a,t,s,n);l.stateNewStyles&&(t=l.numFillBits,s=l.numLineBits),i=l}}this.records.push(i)}},writeShapeRecords:function(e,t,s,n){null==n&&(n=1),0!=this.records.length&&Lp.__instanceof(this.records[this.records.length-1],Xr)||this.records.push(new Xr);for(var i=0,r=this.records.length;ir-1?this.subLineStyles[r-1]:null,this.addLineStyleToHandler(e,s)),l.from.equals(i)||e.moveTo(l.from.x,l.from.y),Lp.__instanceof(l,Zo)){var h=l;e.curveTo(h.control.x,h.control.y,h.to.x,h.to.y)}else e.lineTo(l.to.x,l.to.y);i=l.to}e.endLines()}},exportLinePath:function(e,t){var s,n=this.createPathFromEdgeMap(this.lineEdgeMaps[t]),i=new qm(or.MAX_FLOAT_VALUE,or.MAX_FLOAT_VALUE),r=0|or.MAX_FLOAT_VALUE;if(0r-1?this.lineStyles[r-1]:null,this.addLineStyleToHandler(e,s)),l.from.equals(i)||e.moveTo(l.from.x,l.from.y),Lp.__instanceof(l,Zo)){var h=l;e.curveTo(h.control.x,h.control.y,h.to.x,h.to.y)}else e.lineTo(l.to.x,l.to.y);i=l.to}e.endLines()}},addLineStyleToHandler:function(e,t){if(null!=t){var s=2;if(t.noHScaleFlag&&t.noVScaleFlag?s=1:t.noHScaleFlag?s=0:t.noVScaleFlag&&(s=3),t.hasFillFlag){var n=t.fillType;switch(n.type){case 0:e.lineStyle(t.width/20,zf.rgb(n.rgb),zf.alpha(n.rgb),t.pixelHintingFlag,s,Uo.toEnum(t.startCapsStyle),Uo.toEnum(t.endCapsStyle),Go.toEnum(t.jointStyle),t.miterLimitFactor);break;case 16:case 18:case 19:var i,r=n.gradient,o=[],a=[],l=[],h=n.gradientMatrix.get_matrix().clone();h.tx/=20,h.ty/=20;for(var _=0,u=n.gradient.records.length;_>7,this.hasFont=0!=(8&r),this.hasColor=0!=(4&r),this.hasYOffset=0!=(2&r),this.hasXOffset=0!=(1&r),this.hasFont?this.fontId=or.readUI16(e):null!=n&&(this.fontId=n.fontId),this.hasColor?this.textColor=i<2?or.readRGB(e):or.readRGBA(e):null!=n&&(this.textColor=n.textColor),this.hasXOffset?this.xOffset=or.readSI16(e):null!=n&&(this.xOffset=n.xOffset),this.hasYOffset?this.yOffset=or.readSI16(e):null!=n&&(this.yOffset=n.yOffset),this.hasFont?this.textHeight=or.readUI16(e):null!=n&&(this.textHeight=n.textHeight);for(var o=0,a=or.readUI8(e);o>3){case 2:this.version=1;break;case 3:this.version=0;break;default:throw new Mp(new _v("Unsupported MPEG version."))}if(1!=(6&t)>>1)throw new Mp(new _v("Unsupported MPEG layer."));this.layer=2,this.hasCRC=0==(1&t);break;case 2:var s=(240&t)>>4;if(0==s||15==s)throw new Mp(new _v("Unsupported bitrate index."));this.bitrate=Jo.mpegBitrates[this.version][this.layer][s];var n=(12&t)>>2;if(3==n)throw new Mp(new _v("Unsupported samplingrate index."));this.samplingrate=Jo.mpegsamplingrates[this.version][n],this.padding=2==(2&t);break;case 3:this.channelMode=(192&t)>>6,this.channelModeExt=(48&t)>>4,this.copyright=8==(8&t),this.original=4==(4&t),this.emphasis=2&t;break;default:throw new Mp(new _v("Index out of bounds."))}this._header.b[e]=255&t},setCRCByteAt:function(e,t){if(1>3},publish:function(e){or.writeFIXED(e,this.blurX),or.writeFIXED(e,this.blurY),or.writeUI8(e,this.passes<<3)},clone:function(){var e=new ta(this.id);return e.blurX=this.blurX,e.blurY=this.blurY,e.passes=this.passes,e},toString:function(e){return null==e&&(e=0),"[BlurFilter] BlurX: "+this.blurX+", BlurY: "+this.blurY+", Passes: "+this.passes},__class__:ta});var sa=function(e){$o.call(this,e),this.colorMatrix=[]};(s["format.swf.data.filters.FilterColorMatrix"]=sa).__name__=["format","swf","data","filters","FilterColorMatrix"],sa.__interfaces__=[Qo],sa.__super__=$o,sa.prototype=n($o.prototype,{get_filter:function(){return new Uv(this.multipliers.value,this.offsets.value)},get_type:function(){return ma.ColorMatrixFilter(this.multipliers,this.offsets)},parse:function(e){for(var t=0;t<20;){t++;this.colorMatrix.push(or.readFLOAT(e))}var s,n=[this.colorMatrix[0],this.colorMatrix[1],this.colorMatrix[2],this.colorMatrix[3],this.colorMatrix[5],this.colorMatrix[6],this.colorMatrix[7],this.colorMatrix[8],this.colorMatrix[10],this.colorMatrix[11],this.colorMatrix[12],this.colorMatrix[13],this.colorMatrix[15],this.colorMatrix[16],this.colorMatrix[17],this.colorMatrix[18]];s=null!=n?new GT(n):null,this.multipliers=new Jy(s);var i,r=[this.colorMatrix[4]/255,this.colorMatrix[9]/255,this.colorMatrix[14]/255,this.colorMatrix[19]/255];i=null!=r?new GT(r):null,this.offsets=new Jy(i)},publish:function(e){for(var t=0;t<20;){var s=t++;or.writeFLOAT(e,this.colorMatrix[s])}},clone:function(){for(var e=new sa(this.id),t=0;t<20;){var s=t++;e.colorMatrix.push(this.colorMatrix[s])}return e},toString:function(e){null==e&&(e=0);var t=Yf.repeat(e+2);return"[ColorMatrixFilter]\n"+t+"[R] "+this.colorMatrix[0]+", "+this.colorMatrix[1]+", "+this.colorMatrix[2]+", "+this.colorMatrix[3]+", "+this.colorMatrix[4]+"\n"+t+"[G] "+this.colorMatrix[5]+", "+this.colorMatrix[6]+", "+this.colorMatrix[7]+", "+this.colorMatrix[8]+", "+this.colorMatrix[9]+"\n"+t+"[B] "+this.colorMatrix[10]+", "+this.colorMatrix[11]+", "+this.colorMatrix[12]+", "+this.colorMatrix[13]+", "+this.colorMatrix[14]+"\n"+t+"[A] "+this.colorMatrix[15]+", "+this.colorMatrix[16]+", "+this.colorMatrix[17]+", "+this.colorMatrix[18]+", "+this.colorMatrix[19]},__class__:sa});var na=function(e){$o.call(this,e),this.matrix=[]};(s["format.swf.data.filters.FilterConvolution"]=na).__name__=["format","swf","data","filters","FilterConvolution"],na.__interfaces__=[Qo],na.__super__=$o,na.prototype=n($o.prototype,{get_filter:function(){for(var e=[],t=0,s=this.matrix.length;t=a.length&&(a.length=o+1),a.data.length=t.length&&(t.length=s+1),t.data.lengtht.length){var s=new Array(e);dp.blit(t.data,0,s,0,0|Math.min(t.data.length,e)),t.data=s}t.length=e}this.mCapacity=e},__class__:la};var ha=function(){this.length=0};(s["openfl.VectorData"]=ha).__name__=["openfl","VectorData"],ha.prototype={__class__:ha};var _a=function(e,t,s){null==s&&(s=!1),null==t&&(t=!1),this.type=e,this.bubbles=t,this.cancelable=s,this.__fromPool=!1,this.__refcount=0,this.eventPhase=2};(s["openfl.events.Event"]=_a).__name__=["openfl","events","Event"],_a.__create=function(e,t,s){null==s&&(s=!1),null==t&&(t=!1);var n=_a.pool.get();return n.type=e,n.bubbles=t,n.cancelable=s,n.target=null,n.currentTarget=null,n.__isCanceled=!1,n.__isCanceledNow=!1,n.__preventDefault=!1,n.__fromPool=!0,n.__refcount=0,n.eventPhase=2,n},_a.prototype={clone:function(){var e=new _a(this.type,this.bubbles,this.cancelable);return e.eventPhase=this.eventPhase,e.target=this.target,e.currentTarget=this.currentTarget,e},__resetPooledEvent:function(){this.target=null,this.currentTarget=null,this.__isCanceled=!1,this.__isCanceledNow=!1,this.__preventDefault=!1,this.__fromPool=!0,this.__refcount=0,this.eventPhase=2},formatToString:function(e,t,s,n,i,r,o){var a=[];return null!=t&&a.push(t),null!=s&&a.push(s),null!=n&&a.push(n),null!=i&&a.push(i),null!=r&&a.push(r),null!=o&&a.push(o),CT(this,this.__formatToString).apply(this,[e,a])},isDefaultPrevented:function(){return this.__preventDefault},preventDefault:function(){this.cancelable&&(this.__preventDefault=!0)},stopImmediatePropagation:function(){this.__isCanceled=!0,this.__isCanceledNow=!0},stopPropagation:function(){this.__isCanceled=!0},toString:function(){return this.__formatToString("Event",["type","bubbles","cancelable"])},__formatToString:function(e,t){for(var s="["+e,n=null,i=0;ithis.__textEngine.text.length)return null;this.__updateLayout();for(var t=0,s=this.__textEngine.layoutGroups;t=n.startIndex&&e<=n.endIndex){for(var i=n.offsetX,r=0,o=e-n.startIndex;rthis.__textEngine.text.length-1)return null;if(this.__updateLayout(),et.endIndex)return null;for(var s=t.offsetX,n=0,i=e-t.startIndex;nthis.get_width()+4||t<=0||t>this.get_height()+4)return-1;this.__updateLayout(),e+=this.get_scrollH();for(var s=0,n=this.get_scrollV()-1;s=a.offsetY&&t<=a.offsetY+a.height&&e>=a.offsetX&&e<=a.offsetX+a.width){for(var l=0,h=0,_=a.advances.length;h<_;){var u=h++;if(l+=a.advances[u],e<=a.offsetX+l)return a.startIndex+u}return a.endIndex}}return-1},getFirstCharInParagraph:function(e){if(e<0||e>this.__textEngine.text.length-1)return 0;for(var t=this.__textEngine.text.indexOf("\n"),s=0;-1this.get_width()+4||t<=0||t>this.get_height()+4)return-1;for(var s=0,n=this.get_scrollV()-1;s=a.offsetY&&t<=a.offsetY+a.height)return a.lineIndex}return-1},getLineIndexOfChar:function(e){if(e<0||e>this.__textEngine.text.length)return-1;this.__updateLayout();for(var t=0,s=this.__textEngine.layoutGroups;t=e)return n.lineIndex}return-1},getLineLength:function(e){if(this.__updateLayout(),e<0||e>this.__textEngine.numLines-1)return 0;for(var t=-1,s=-1,n=0,i=this.__textEngine.layoutGroups;nthis.__textEngine.numLines-1)return-1;for(var t=0,s=this.__textEngine.layoutGroups;tthis.__textEngine.numLines-1)return null;for(var t=-1,s=-1,n=0,i=this.__textEngine.layoutGroups;nthis.__textEngine.text.length-1)return 0;var t=this.getFirstCharInParagraph(e),s=this.__textEngine.text.indexOf("\n",e)+1;return 0==s&&(s=this.__textEngine.text.length),s-t},getTextFormat:function(e,t){null==t&&(t=0),null==e&&(e=0);for(var s=null,n=0,i=this.__textEngine.textFormatRanges;n=e||r.start<=t&&r.end>=t)&&(null==s?s=r.format.clone():(r.format.font!=s.font&&(s.font=null),r.format.size!=s.size&&(s.size=null),r.format.color!=s.color&&(s.color=null),r.format.bold!=s.bold&&(s.bold=null),r.format.italic!=s.italic&&(s.italic=null),r.format.underline!=s.underline&&(s.underline=null),r.format.url!=s.url&&(s.url=null),r.format.target!=s.target&&(s.target=null),r.format.align!=s.align&&(s.align=null),r.format.leftMargin!=s.leftMargin&&(s.leftMargin=null),r.format.rightMargin!=s.rightMargin&&(s.rightMargin=null),r.format.indent!=s.indent&&(s.indent=null),r.format.leading!=s.leading&&(s.leading=null),r.format.blockIndent!=s.blockIndent&&(s.blockIndent=null),r.format.bullet!=s.bullet&&(s.bullet=null),r.format.kerning!=s.kerning&&(s.kerning=null),r.format.letterSpacing!=s.letterSpacing&&(s.letterSpacing=null),r.format.tabStops!=s.tabStops&&(s.tabStops=null)))}return s},replaceSelectedText:function(e){if(""!=e||this.__selectionIndex!=this.__caretIndex){var t=this.__caretIndexthis.__selectionIndex?this.__caretIndex:this.__selectionIndex;e=this.replaceText(t,s,e),this.__caretIndex=t+e.length,this.__selectionIndex=this.__caretIndex}},replaceText:function(e,t,s){if(tthis.__textEngine.text.length||null==s)return"";if(0this.get_maxChars()){var n=this.get_maxChars()-(this.__textEngine.text.length-(t-e));if(n<=0)return"";s=he.substr(s,0,n)}var i=this.__textEngine.text.substring(0,e)+s,r=this.__textEngine.text.substring(t);this.__textEngine.text=i+r;for(var o,a=s.length-(t-e),l=0;l=t?(o.end+=a,++l):o.start>=e&&o.end<=t?(this.__textEngine.textFormatRanges.splice(l,1),a-=o.end-o.start):(o.start>e&&o.start<=t&&(o.start+=a),++l);return this.set_dirty(!0),this.__layoutDirty=!0,s},setSelection:function(e,t){this.__selectionIndex=e,this.__caretIndex=t},setTextFormat:function(e,t,s){null==s&&(s=0),null==t&&(t=0),null!=e.font&&(this.__textFormat.font=e.font),null!=e.size&&(this.__textFormat.size=e.size),null!=e.color&&(this.__textFormat.color=e.color),null!=e.bold&&(this.__textFormat.bold=e.bold),null!=e.italic&&(this.__textFormat.italic=e.italic),null!=e.underline&&(this.__textFormat.underline=e.underline),null!=e.url&&(this.__textFormat.url=e.url),null!=e.target&&(this.__textFormat.target=e.target),null!=e.align&&(this.__textFormat.align=e.align),null!=e.leftMargin&&(this.__textFormat.leftMargin=e.leftMargin),null!=e.rightMargin&&(this.__textFormat.rightMargin=e.rightMargin),null!=e.indent&&(this.__textFormat.indent=e.indent),null!=e.leading&&(this.__textFormat.leading=e.leading),null!=e.blockIndent&&(this.__textFormat.blockIndent=e.blockIndent),null!=e.bullet&&(this.__textFormat.bullet=e.bullet),null!=e.kerning&&(this.__textFormat.kerning=e.kerning),null!=e.letterSpacing&&(this.__textFormat.letterSpacing=e.letterSpacing),null!=e.tabStops&&(this.__textFormat.tabStops=e.tabStops),this.set_dirty(!0),this.__layoutDirty=!0},__getBounds:function(e){this.__updateLayout(),e.setTo(this.__textEngine.bounds.x,this.__textEngine.bounds.y,this.__textEngine.bounds.width,this.__textEngine.bounds.height)},__getCursor:function(){return this.__textEngine.selectable?Bm.TEXT:null},__getPosition:function(e,t){if(!this.__textEngine.selectable)return-1;this.__updateLayout(),e+=this.get_scrollH();for(var s=0,n=this.get_scrollV()-1;sthis.__textEngine.textHeight&&(t=this.__textEngine.textHeight,e=this.__textEngine.textWidth);for(var r,o,a=!0,l=0,h=this.__textEngine.layoutGroups.length;l=r.offsetY&&t=r.offsetX&&eW.__lastMouseListenerBranchDepth)||!r.__visible)||this.__isMask)||!!i&&!this.mouseEnabled)return!1;if(null!=this.__mask&&!this.__mask.__hitTestMask(e,t))return!1;this.__getWorldTransform(),this.__updateLayout();var o=this.__worldTransform,a=o.a*o.d-o.b*o.c,l=0==a?-o.tx:1/a*(o.c*(o.ty-t)+o.d*(e-o.tx)),h=this.__worldTransform,_=h.a*h.d-h.b*h.c,u=0==_?-h.ty:1/_*(h.a*(t-h.ty)+h.b*(h.tx-e));return!!this.__textEngine.bounds.contains(l,u)&&(null!=n&&(n._items[n._length++]=r),!0)},__hitTestMask:function(e,t){this.__getWorldTransform(),this.__updateLayout();var s=this.__worldTransform,n=s.a*s.d-s.b*s.c,i=0==n?-s.tx:1/n*(s.c*(s.ty-t)+s.d*(e-s.tx)),r=this.__worldTransform,o=r.a*r.d-r.b*r.c,a=0==o?-r.ty:1/o*(r.a*(t-r.ty)+r.b*(r.tx-e));return!!this.__textEngine.bounds.contains(i,a)},__renderCanvas:function(e){var t=this.__graphics;if(this.__dirty||null==t||t.get_dirty()||null==t.__bitmap){var s=this.__textEngine;if(this.__updateLayout(),(this.__showCursor||null!=s.text&&""!=s.text||s.background||s.border||s.__hasFocus)&&(!(s.width<=0||s.height<=0)||2==s.autoSize)){var n=cy.pool.get(),i=cy.pool.get(),r=this.__renderTransform;this.__getBounds(i),i.transform(n,r),null!=t&&null!=t.__canvas||(null==t&&(this.__graphics=new hw(!1),t=this.__graphics),t.__canvas=Eg.pool.get(),t.__context=t.__canvas.getContext("2d"),t.__bounds=new cy(0,0,i.width,i.height));var o=t.__context;t.__canvas.width=Math.ceil(n.width),t.__canvas.height=Math.ceil(n.height);var a=Km.pool.get();if(a.copyFrom(r),a.translate(-Math.floor(n.x),-Math.floor(n.y)),o.setTransform(a.a,a.b,a.c,a.d,a.tx,a.ty),null!=s.text&&""!=s.text||s.__hasFocus){var l=s.text;if(s.displayAsPassword){var h=l.length;l=Yf.repeat(h,"*")}0!=s.antiAliasType||1!=s.gridFitType?(t.__context.mozImageSmoothingEnabled=!0,t.__context.msImageSmoothingEnabled=!0,t.__context.imageSmoothingEnabled=!0):(t.__context.mozImageSmoothingEnabled=!1,t.__context.msImageSmoothingEnabled=!1,t.__context.imageSmoothingEnabled=!1),(s.border||s.background)&&(o.rect(.5,.5,n.width-1,n.height-1),s.background&&(o.fillStyle="#"+Ri.hex(s.backgroundColor,6),o.fill()),s.border&&(o.lineWidth=1,o.strokeStyle="#"+Ri.hex(s.borderColor,6),o.stroke())),o.textBaseline="alphabetic",o.textAlign="start";for(var _,u=-this.get_scrollH(),d=0,c=0,f=this.get_scrollV()-1;cthis.get_scrollV()+s.bottomScrollV-2)break;var S=Zg.getFont(T.format);b=S.ascent*T.format.size,o.font=S.name,o.fillStyle="#"+Ri.hex(T.format.color,6);var x=l.substring(T.startIndex,T.endIndex),E=new RegExp("\n","g".split("u").join(""));if(x=x.replace(E,""),o.fillText(x,T.offsetX+u,T.offsetY+b+d),-1this.__caretIndex||T.endIndex==s.text.length&&s.text.length==this.__caretIndex)){for(var P=_=0,R=this.__caretIndex-T.startIndex;PMath.max(this.__caretIndex,this.__selectionIndex))){var I,C,B=0|Math.min(this.__selectionIndex,this.__caretIndex),D=0|Math.max(this.__selectionIndex,this.__caretIndex);T.startIndex>B&&(B=T.startIndex),T.endIndex=s.text.length?(C=this.getCharBoundariesInGroup(s.text.length-1,T)).x+=C.width+2:C=this.getCharBoundariesInGroup(D,T),null!=I&&null!=C&&(o.fillStyle="#000000",o.fillRect(I.x,I.y,C.x-I.x,T.height),o.fillStyle="#FFFFFF",o.fillText(l.substring(B,D),u+I.x,T.offsetY+b+d))}}}}else(s.border||s.background)&&(s.border?o.rect(.5,.5,n.width-1,n.height-1):o.rect(0,0,n.width,n.height),s.background&&(o.fillStyle="#"+Ri.hex(s.backgroundColor,6),o.fill()),s.border&&(o.lineWidth=1,o.lineCap="square",o.strokeStyle="#"+Ri.hex(s.borderColor,6),o.stroke()));var k=Km.pool.get();k.copyFrom(a),k.invert(),t.set___bitmap(sw.fromGraphics(t,null,k)),t.__canvas=null,this.__graphicsSavedScale.x=this.renderScaleX,this.__graphicsSavedScale.y=this.renderScaleY,this.__dirty=!1,t.set_dirty(!1),Km.pool.put(a),Km.pool.put(k),cy.pool.put(n),cy.pool.put(i)}else t.__canvas=null,t.__context=null,t.set_dirty(!1),null!=t.__bitmap&&t.__bitmap.dispose(),this.__dirty=!1}if(0==this.__textEngine.antiAliasType&&1==this.__textEngine.gridFitType){var F=e.context.imageSmoothingEnabled;F&&(e.context.mozImageSmoothingEnabled=!1,e.context.msImageSmoothingEnabled=!1,e.context.imageSmoothingEnabled=!1),yt.prototype.__renderCanvas.call(this,e),F&&(e.context.mozImageSmoothingEnabled=!0,e.context.msImageSmoothingEnabled=!0,e.context.imageSmoothingEnabled=!0)}else yt.prototype.__renderCanvas.call(this,e)},__drawGraphicsGL:function(e){var t=this.__graphics;if(this.__dirty||null==t||t.get_dirty()||null==t.__bitmap){var s=this.__textEngine;if(this.__updateLayout(),(this.__showCursor||null!=s.text&&""!=s.text||s.background||s.border||s.__hasFocus)&&(!(s.width<=0||s.height<=0)||2==s.autoSize)){var n=cy.pool.get(),i=cy.pool.get(),r=this.__renderTransform;this.__getBounds(i),i.transform(n,r),null!=t&&null!=t.__canvas||(null==t&&(this.__graphics=new hw(!1),t=this.__graphics),t.__canvas=Eg.pool.get(),t.__context=t.__canvas.getContext("2d"),t.__bounds=new cy(0,0,i.width,i.height));var o=t.__context;t.__canvas.width=Math.ceil(n.width),t.__canvas.height=Math.ceil(n.height);var a=Km.pool.get();if(a.copyFrom(r),a.translate(-Math.floor(n.x),-Math.floor(n.y)),o.setTransform(a.a,a.b,a.c,a.d,a.tx,a.ty),null!=s.text&&""!=s.text||s.__hasFocus){var l=s.text;if(s.displayAsPassword){var h=l.length;l=Yf.repeat(h,"*")}0!=s.antiAliasType||1!=s.gridFitType?(t.__context.mozImageSmoothingEnabled=!0,t.__context.msImageSmoothingEnabled=!0,t.__context.imageSmoothingEnabled=!0):(t.__context.mozImageSmoothingEnabled=!1,t.__context.msImageSmoothingEnabled=!1,t.__context.imageSmoothingEnabled=!1),(s.border||s.background)&&(o.rect(.5,.5,n.width-1,n.height-1),s.background&&(o.fillStyle="#"+Ri.hex(s.backgroundColor,6),o.fill()),s.border&&(o.lineWidth=1,o.strokeStyle="#"+Ri.hex(s.borderColor,6),o.stroke())),o.textBaseline="alphabetic",o.textAlign="start";for(var _,u=-this.get_scrollH(),d=0,c=0,f=this.get_scrollV()-1;cthis.get_scrollV()+s.bottomScrollV-2)break;var S=Zg.getFont(T.format);b=S.ascent*T.format.size,o.font=S.name,o.fillStyle="#"+Ri.hex(T.format.color,6);var x=l.substring(T.startIndex,T.endIndex),E=new RegExp("\n","g".split("u").join(""));if(x=x.replace(E,""),o.fillText(x,T.offsetX+u,T.offsetY+b+d),-1this.__caretIndex||T.endIndex==s.text.length&&s.text.length==this.__caretIndex)){for(var P=_=0,R=this.__caretIndex-T.startIndex;PMath.max(this.__caretIndex,this.__selectionIndex))){var I,C,B=0|Math.min(this.__selectionIndex,this.__caretIndex),D=0|Math.max(this.__selectionIndex,this.__caretIndex);T.startIndex>B&&(B=T.startIndex),T.endIndex=s.text.length?(C=this.getCharBoundariesInGroup(s.text.length-1,T)).x+=C.width+2:C=this.getCharBoundariesInGroup(D,T),null!=I&&null!=C&&(o.fillStyle="#000000",o.fillRect(I.x,I.y,C.x-I.x,T.height),o.fillStyle="#FFFFFF",o.fillText(l.substring(B,D),u+I.x,T.offsetY+b+d))}}}}else(s.border||s.background)&&(s.border?o.rect(.5,.5,n.width-1,n.height-1):o.rect(0,0,n.width,n.height),s.background&&(o.fillStyle="#"+Ri.hex(s.backgroundColor,6),o.fill()),s.border&&(o.lineWidth=1,o.lineCap="square",o.strokeStyle="#"+Ri.hex(s.borderColor,6),o.stroke()));var k=Km.pool.get();k.copyFrom(a),k.invert(),t.set___bitmap(sw.fromGraphics(t,null,k)),t.__canvas=null,this.__graphicsSavedScale.x=this.renderScaleX,this.__graphicsSavedScale.y=this.renderScaleY,this.__dirty=!1,t.set_dirty(!1),Km.pool.put(a),Km.pool.put(k),cy.pool.put(n),cy.pool.put(i)}else t.__canvas=null,t.__context=null,t.set_dirty(!1),null!=t.__bitmap&&t.__bitmap.dispose(),this.__dirty=!1}Bg.renderBitmap(this,e,0this.__textEngine.text.length&&(this.__caretIndex=this.__textEngine.text.length),this.__selectionIndex>this.__textEngine.text.length&&(this.__selectionIndex=this.__textEngine.text.length),this.__layoutDirty=!1}},delayGraphicsRefresh:function(e,t){if(yt.prototype.delayGraphicsRefresh.call(this,e,t),t&&!this.delayScaleRotationGraphicsRefresh)if(Math.abs(this.__graphicsSavedScale.x-this.renderScaleX)>Sa.__maxScaleDifferenceBetweenRefreshGraphics||Math.abs(this.__graphicsSavedScale.y-this.renderScaleY)>Sa.__maxScaleDifferenceBetweenRefreshGraphics)this.__graphics.mustRefreshGraphicsCounter=1;else{var s=this.__graphics;s.mustRefreshGraphicsCounter=hw.__dirtyGraphicsDelay,s.set_dirty(!1)}},_onWorldTransformScaleRotationChanged:function(){yt.prototype._onWorldTransformScaleRotationChanged.call(this),this.__layoutDirty=!0},__update:function(e,t){this.__updateLayout(),yt.prototype.__update.call(this,e,t)},get_antiAliasType:function(){return this.__textEngine.antiAliasType},set_antiAliasType:function(e){return this.__textEngine.antiAliasType=e},get_autoSize:function(){return this.__textEngine.autoSize},set_autoSize:function(e){return e!=this.__textEngine.autoSize&&(this.set_dirty(!0),this.__layoutDirty=!0),this.__textEngine.autoSize=e},get_background:function(){return this.__textEngine.background},set_background:function(e){return e!=this.__textEngine.background&&this.set_dirty(!0),this.__textEngine.background=e},get_backgroundColor:function(){return this.__textEngine.backgroundColor},set_backgroundColor:function(e){return e!=this.__textEngine.backgroundColor&&this.set_dirty(!0),this.__textEngine.backgroundColor=e},get_border:function(){return this.__textEngine.border},set_border:function(e){return e!=this.__textEngine.border&&this.set_dirty(!0),this.__textEngine.border=e},get_borderColor:function(){return this.__textEngine.borderColor},set_borderColor:function(e){return e!=this.__textEngine.borderColor&&this.set_dirty(!0),this.__textEngine.borderColor=e},get_bottomScrollV:function(){return this.__updateLayout(),this.__textEngine.bottomScrollV},get_caretIndex:function(){return this.__caretIndex},get_defaultTextFormat:function(){return this.__textFormat.clone()},set_defaultTextFormat:function(e){return this.__textFormat.__merge(e),this.__layoutDirty=!0,this.set_dirty(!0),e},get_displayAsPassword:function(){return this.__textEngine.displayAsPassword},set_displayAsPassword:function(e){return e!=this.__textEngine.displayAsPassword&&(this.set_dirty(!0),this.__layoutDirty=!0),this.__textEngine.displayAsPassword=e},get_embedFonts:function(){return this.__textEngine.embedFonts},set_embedFonts:function(e){return this.__textEngine.embedFonts=e},get_gridFitType:function(){return this.__textEngine.gridFitType},set_gridFitType:function(e){return this.__textEngine.gridFitType=e},get_height:function(){return this.__updateLayout(),yt.prototype.get_height.call(this)},set_height:function(e){return 1==this.get_scaleY()&&e==this.__textEngine.height||(this.__transformDirty||(this.__transformDirty=!0,this.__isMask&&(this.__maskCached=!1),this.__renderDirty||(this.__renderDirty=!0,W.__worldRenderDirty++,null!=this.__cachedParent&&this.__cachedParent.__setRenderDirty()),this.__updateDirty||null==this.stage||this==this.stage||(this.__updateDirty=!0),W.__worldTransformDirty++),this.set_dirty(!0),this.__layoutDirty=!0),this.set_scaleY(1),this.__textEngine.height=e},get_htmlText:function(){return this.__textEngine.text},parseTags:function(e,t,s,n){null==n&&(n=[]);var i="";if(e.nodeType!=Vt.Document&&e.nodeType!=Vt.Element)throw new Mp("Bad node type, expected Element or Document but found "+e.nodeType);for(var r=he.iter(e.children);r.hasNext();){var o,a=r.next();if(0==a.nodeType){if(a.nodeType!=Vt.Document&&a.nodeType!=Vt.Element)throw new Mp("Bad node type, expected Element or Document but found "+a.nodeType);o=null==a.children[0]}else o=!0;if(o){if(a.nodeType==Vt.Document||a.nodeType==Vt.Element)throw new Mp("Bad node type, unexpected "+a.nodeType);if(n.push(new Jg(t,s,s+a.nodeValue.length)),a.nodeType==Vt.Document||a.nodeType==Vt.Element)throw new Mp("Bad node type, unexpected "+a.nodeType);if(i+=a.nodeValue,a.nodeType==Vt.Document||a.nodeType==Vt.Element)throw new Mp("Bad node type, unexpected "+a.nodeType);s+=a.nodeValue.length}else{if(a.nodeType!=Vt.Element)throw new Mp("Bad node type, expected Element but found "+a.nodeType);var l=a.nodeName,h=t.clone();switch(l.toLowerCase()){case"b":h.bold=!0;break;case"font":for(var _=a.attributes();_.hasNext();){var u=_.next();switch(u.toLowerCase()){case"color":h.color=Ue.parseInt("0x"+this.stripHexPrefix(a.get(u)));break;case"face":var d=a.get(u);h.font=Ca.fontAliases.get(d),null==h.font&&(h.font=d);break;case"kerning":h.kerning=0!=Ue.parseInt(a.get(u));break;case"letterSpacing":h.letterSpacing=parseFloat(a.get(u));break;case"size":h.size=Ue.parseInt(a.get(u))}}break;case"i":h.italic=!0;break;case"indent":h.leftMargin+=20;break;case"li":h.bullet=!0;break;case"p":for(var c=a.attributes();c.hasNext();){var f=c.next();if("align"==f.toLowerCase())switch(a.get(f).toLowerCase()){case"center":h.align=0;break;case"justify":h.align=2;break;case"left":h.align=3;break;case"right":h.align=4}}}var p=this.parseTags(a,h,s,n);i+=p.text,s=p.start_index}}return{text:i,start_index:s,format_ranges:n}},stripHexPrefix:function(e){return 0==e.indexOf("#")?e.substring(1):0==e.indexOf("0x")?e.substring(2):e},set_htmlText:function(t){if(this.__isHTML&&this.__cachedHtmlText==t||(this.set_dirty(!0),this.__layoutDirty=!0),this.__isHTML=!0,this.__cachedHtmlText=t,null!=this.__div)return this.__textEngine.text=t;var e=new RegExp("","g".split("u").join("")),n=(t=t.replace(s,"

")).lastIndexOf("

");if(0","g".split("u").join(""));t=(i=i.replace(o,"

\n"))+r}var a=new RegExp("
","g".split("u").join(""));t=t.replace(a,"\n");var l=new RegExp("
","g".split("u").join(""));t=t.replace(l,"\n");var h=new RegExp("
","g".split("u").join(""));t=t.replace(h,"\n");var _=new RegExp("","g".split("u").join(""));t=t.replace(_,"\n");for(var u=1;0<(u=t.indexOf("
  • ",u));){"\n"!=t.charAt(u-1)&&(t=he.substr(t,0,u)+"\n"+he.substr(t,u,null),++u),++u}var d,c=new RegExp("
  • ","g".split("u").join(""));t=t.replace(c,"●\t\t");try{d=Vt.parse(t)}catch(e){(jf.lastException=e)instanceof Mp&&(e=e.val),Zf.trace("Unable to parse html: "+Ue.string(e),{fileName:"TextField.hx",lineNumber:1353,className:"openfl.text.TextField",methodName:"set_htmlText"});var f=new RegExp("<.*?>","g".split("u").join(""));t=t.replace(f,""),d=Vt.parse(t)}this.__textEngine.textFormatRanges.splice(0,this.__textEngine.textFormatRanges.length),this.__textFormat.bold=!1,this.__textFormat.italic=!1,this.__textFormat.leftMargin=null;var p=this.parseTags(d,this.__textFormat.clone(),0);return t=p.text,this.__textEngine.textFormatRanges=p.format_ranges,0this.__textEngine.maxScrollH&&(e=this.__textEngine.maxScrollH),e<0&&(e=0),e!=this.__textEngine.scrollH&&this.set_dirty(!0),this.__textEngine.scrollH=e},get_scrollV:function(){return this.__textEngine.scrollV},set_scrollV:function(e){return e>this.__textEngine.maxScrollV&&(e=this.__textEngine.maxScrollV),e<1&&(e=1),e!=this.__textEngine.scrollV&&this.set_dirty(!0),this.__textEngine.scrollV=e},get_selectable:function(){return this.__textEngine.selectable},set_selectable:function(e){return e!=this.__textEngine.selectable&&1==this.get_type()&&(null!=this.stage&&this.stage.get_focus()==this?this.__startTextInput():e||this.__stopTextInput()),this.__textEngine.selectable=e},get_selectionBeginIndex:function(){return 0|Math.min(this.__caretIndex,this.__selectionIndex)},get_selectionEndIndex:function(){return 0|Math.max(this.__caretIndex,this.__selectionIndex)},get_sharpness:function(){return this.__textEngine.sharpness},set_sharpness:function(e){return e!=this.__textEngine.sharpness&&this.set_dirty(!0),this.__textEngine.sharpness=e},get_text:function(){return this.__textEngine.text},set_text:function(e){if(!this.__isHTML&&this.__textEngine.text==e)return e;this.set_dirty(!0),this.__layoutDirty=!0,1Sa.__moveDelta||Math.abs(this.__firstDownPos.y-this.get_mouseY())>Sa.__moveDelta)&&(null!=this.__clickTimer&&this.__clickTimer.stop(),this.__clicks=0,qm.pool.put(this.__firstDownPos),this.__firstDownPos=null),this.__clicks++,1==this.__clicks&&(null!=this.__firstDownPos&&qm.pool.put(this.__firstDownPos),this.__firstDownPos=qm.pool.get(),this.__firstDownPos.x=this.get_mouseX(),this.__firstDownPos.y=this.get_mouseY()),this.stage.addEventListener("mouseMove",CT(this,this.stage_onMouseMove)),this.stage.addEventListener("mouseUp",CT(this,this.stage_onMouseUp)))},__findFirstSpace:function(e,t,s){null==s&&(s=!0);var n=this.__textEngine.text.charAt(t);if(e){if(s)for(;0>24&255)/255,this.addChildAt(d,this.__children._length),this.glyphs.push(d)}}},__class__:La});var Na=function(){this.__uid=mr.SEQ<<24|++mr.UID,this.forbidCachedBitmapUpdate=!1,this.pixelPerfectHitTest=!0,this.uniqueSharedCachedBitmap=null,this.useUniqueSharedBitmapCache=!1,this.poolable=!1,this.id=-1,this.className=""};(s["format.swf.lite.symbols.SWFSymbol"]=Na).__name__=["format","swf","lite","symbols","SWFSymbol"],Na.__interfaces__=[br],Na.prototype={set_poolable:function(e){return e&&null==this.pool&&(this.pool=new la(function(){throw new Mp("Forbidden")})),this.poolable=e},initPool:function(e,t){this.pool=new la(function(){throw new Mp("Forbidden")});for(var s=0,n=t;s>16&255)*u),f=n((d>>8&255)*u),p=n((255&d)*u);s.setPixel32(h,o,(_<<24)+(c<<16)+(f<<8)+p)}this.instance=s,this.onCompleteCallback(s)},toString:function(e){return null==e&&(e=0),nl.toStringCommon(this.type,this.name,e)+"ID: "+this.characterId+", Type: "+Fo.toString(this.bitmapType)+", HasAlphaData: "+Ue.string(0t.placeDepth?1:0},toString:function(e){null==e&&(e=0);var t=nl.toStringCommon(this.type,this.name,e)+"ID: "+this.characterId;if(0t.placeDepth?1:0},toString:function(e){null==e&&(e=0);var t=nl.toStringCommon(this.type,this.name,e)+"ID: "+this.characterId+", TrackAsMenu: "+Ue.string(this.trackAsMenu);if(0>1;or.skipBytes(e,i-1<<1);for(var r=0,o=i;r(0|e.position)-i&&e.readBytes(this.fontData,0,t-(e.position-i))},publish:function(e,t){var s=or._new();or.writeUI16(s,this.characterId);var n=0;this.hasFontData&&(n|=4),this.italic&&(n|=2),this.bold&&(n|=1),or.writeUI8(s,n),or.writeSTRING(s,this.fontName),this.hasFontData&&0>6;for(var i=e.position+t-3;(0|e.position)>=1);for(var l=0,h=a;l=this.frameStripMap.length||t=this.frameStripMap.length?this.strips.length-1:this.frameStripMap[t];return this.strips.slice(s,n+1)},toString:function(e){null==e&&(e=0);var t="Depth: "+this.depth+", Frames: "+this.frameCount;if(0>6):(n<=65535?t.push(224|n>>12):(t.push(240|n>>18),t.push(128|n>>12&63)),t.push(128|n>>6&63)),t.push(128|63&n))}return new Lf(new zT(t).buffer)},Lf.ofData=function(e){var t=e.hxBytes;return null!=t?t:new Lf(e)},Lf.fastGet=function(e,t){return e.bytes[t]},Lf.prototype={blit:function(e,t,s,n){if(e<0||s<0||n<0||e+n>this.length||s+n>t.length)throw new Mp(pp.OutsideBounds);0==s&&n==t.b.byteLength?this.b.set(t.b,e):this.b.set(t.b.subarray(s,s+n),e)},sub:function(e,t){if(e<0||t<0||e+t>this.length)throw new Mp(pp.OutsideBounds);return new Lf(this.b.buffer.slice(e+this.b.byteOffset,e+this.b.byteOffset+t))},getDouble:function(e){return null==this.data&&(this.data=new UT(this.b.buffer,this.b.byteOffset,this.b.byteLength)),this.data.getFloat64(e,!0)},getFloat:function(e){return null==this.data&&(this.data=new UT(this.b.buffer,this.b.byteOffset,this.b.byteLength)),this.data.getFloat32(e,!0)},setDouble:function(e,t){null==this.data&&(this.data=new UT(this.b.buffer,this.b.byteOffset,this.b.byteLength)),this.data.setFloat64(e,t,!0)},setFloat:function(e,t){null==this.data&&(this.data=new UT(this.b.buffer,this.b.byteOffset,this.b.byteLength)),this.data.setFloat32(e,t,!0)},setUInt16:function(e,t){null==this.data&&(this.data=new UT(this.b.buffer,this.b.byteOffset,this.b.byteLength)),this.data.setUint16(e,t,!0)},getInt32:function(e){return null==this.data&&(this.data=new UT(this.b.buffer,this.b.byteOffset,this.b.byteLength)),this.data.getInt32(e,!0)},setInt32:function(e,t){null==this.data&&(this.data=new UT(this.b.buffer,this.b.byteOffset,this.b.byteLength)),this.data.setInt32(e,t,!0)},getInt64:function(e){return new qf(this.getInt32(e+4),this.getInt32(e))},getString:function(e,t){if(e<0||t<0||e+t>this.length)throw new Mp(pp.OutsideBounds);for(var s="",n=this.b,i=String.fromCharCode,r=e,o=e+t;r>10)),s+=i(1023&l|56320)}}return s},toString:function(){return this.getString(0,this.length)},__class__:Lf};var Nf=function(){};(s["openfl.utils.IDataOutput"]=Nf).__name__=["openfl","utils","IDataOutput"],Nf.prototype={__class__:Nf,__properties__:{set_endian:"set_endian",get_endian:"get_endian"}};var Of=function(){};(s["openfl.utils.IDataInput"]=Of).__name__=["openfl","utils","IDataInput"],Of.prototype={__class__:Of,__properties__:{set_endian:"set_endian",get_endian:"get_endian",get_bytesAvailable:"get_bytesAvailable"}};var Uf=function(e){null==e&&(e=0);var t=new Lf(new OT(e));Lf.call(this,t.b.buffer),this.__length=e,this.__endian=0,this.position=0};(s["openfl.utils.ByteArrayData"]=Uf).__name__=["openfl","utils","ByteArrayData"],Uf.__interfaces__=[Nf,Of],Uf.fromBytes=function(e){var t=new Uf;return t.__fromBytes(e),t},Uf.__super__=Lf,Uf.prototype=n(Lf.prototype,{clear:function(){this.__length=0,this.position=0},compress:function(e){this.__length=this.length,this.position=this.__length},deflate:function(){this.compress(0)},inflate:function(){this.uncompress(0)},readBoolean:function(){if(this.positionthis.__length)throw new Mp(new cv);e.__lengththis.__length)throw new Mp(new cv);return this.position+=8,this.getDouble(this.position-8)},readFloat:function(){if(this.position+4>this.__length)throw new Mp(new cv);return this.position+=4,this.getFloat(this.position-4)},readInt:function(){var e=this.readUnsignedByte(),t=this.readUnsignedByte(),s=this.readUnsignedByte(),n=this.readUnsignedByte();return 1==this.__endian?n<<24|s<<16|t<<8|e:e<<24|t<<16|s<<8|n},readMultiByte:function(e,t){return this.readUTFBytes(e)},readShort:function(){var e,t=this.readUnsignedByte(),s=this.readUnsignedByte();return 0!=(32768&(e=1==this.__endian?s<<8|t:t<<8|s))?e-65536:e},readUnsignedByte:function(){if(this.positionthis.__length)throw new Mp(new cv);return this.position+=e,this.getString(this.position-e,e)},uncompress:function(e){this.__length=this.length,this.position=0},writeBoolean:function(e){this.writeByte(e?1:0)},writeByte:function(e){this.__resize(this.position+1),this.b[this.position++]=255&e},writeBytes:function(e,t,s){null==s&&(s=0),null==t&&(t=0),0!=jy.get_length(e)&&(0==s&&(s=jy.get_length(e)-t),this.__resize(this.position+s),this.blit(this.position,e,t,s),this.position=this.position+s)},writeDouble:function(e){this.__resize(this.position+8),this.setDouble(this.position,e),this.position+=8},writeFloat:function(e){this.__resize(this.position+4),this.setFloat(this.position,e),this.position+=4},writeInt:function(e){this.__resize(this.position+4),1==this.__endian?(this.b[this.position++]=255&e,this.b[this.position++]=e>>8&255,this.b[this.position++]=e>>16&255,this.b[this.position++]=e>>24&255):(this.b[this.position++]=e>>24&255,this.b[this.position++]=e>>16&255,this.b[this.position++]=e>>8&255,this.b[this.position++]=255&e)},writeMultiByte:function(e,t){this.writeUTFBytes(e)},writeShort:function(e){this.__resize(this.position+2),1==this.__endian?(this.b[this.position++]=255&e,this.b[this.position++]=e>>8&255):(this.b[this.position++]=e>>8&255,this.b[this.position++]=255&e)},writeUnsignedInt:function(e){this.writeInt(e)},writeUTF:function(e){var t=Lf.ofString(e);this.writeShort(t.length),this.writeBytes(jy.fromBytes(t))},writeUTFBytes:function(e){var t=Lf.ofString(e);this.writeBytes(jy.fromBytes(t))},__fromBytes:function(e){this.b=e.b,this.length=e.length,this.data=e.data,this.__length=e.length},__resize:function(e){if(e>this.length){var t=new Lf(new OT(3*(e+1)>>1));t.blit(0,this,0,this.length),this.b=t.b,this.length=t.length,this.data=t.data}this.__length>8-this.bitsPending;n=0|Math.min(this.bitsPending,e),this.bitsPending-=n,s=i>>this.bitsPending}else n=0|Math.min(8,e),this.bitsPending=8-n,s=this.readUnsignedByte()>>this.bitsPending;return t=t<>>32-e,0e?(this.b[this.position-1]=255&(this.b[this.position-1]|t<>e-this.bitsPending),this.bitsPending),this.bitsPending=0):(s=0|Math.min(8,e),this.bitsPending=8-s,this.writeByte(t>>e-s<=l&&++l),l},__class__:Gf});var zf=function(){};(s["format.swf.utils.ColorUtils"]=zf).__name__=["format","swf","utils","ColorUtils"],zf.alpha=function(e){return(e>>>24)/255},zf.rgb=function(e){return 16777215&e},zf.r=function(e){return(zf.rgb(e)>>16&255)/255},zf.g=function(e){return(zf.rgb(e)>>8&255)/255},zf.b=function(e){return(255&zf.rgb(e))/255},zf.interpolate=function(e,t,s){var n=zf.r(e),i=zf.g(e),r=zf.b(e),o=zf.alpha(e),a=255*(n+(zf.r(t)-n)*s)|0,l=255*(i+(zf.g(t)-i)*s)|0;return 255*(r+(zf.b(t)-r)*s)|0|l<<8|a<<16|(255*(o+(zf.alpha(t)-o)*s)|0)<<24},zf.rgbToString=function(e){return Yf.printf("#%06x",[16777215&e])},zf.rgbaToString=function(e){return Yf.printf("#%06x(%02x)",[16777215&e,e>>>24])},zf.argbToString=function(e){return Yf.printf("#(%02x)%06x",[e>>>24,16777215&e])};var Xf=function(){};(s["format.swf.utils.HalfPrecisionWriter"]=Xf).__name__=["format","swf","utils","HalfPrecisionWriter"],Xf.write=function(e,t){var s,n,i,r,o,a;t.resetBitsPending();var l=0,h=t.position;t.writeDouble(e),t.position-=4,s=t.readUnsignedInt(),t.position=h,l=0==(2147483647&s)?s>>16:(n=-2147483648&s,r=1048575&s,0==(i=2146435072&s)?n>>16:2146435072==i?0==r?n>>16|31744:65024:(n>>=16,31<=(a=(i>>20)-1023+15)?r>>16|31744:a<=0?(21<10-a?o=0:(o=(r|=1048576)>>11-a,0<(r>>10-a&1)&&++o),n|o):(i=a<<10,o=r>>10,0<(512&r)?1+(n|i|o):n|i|o))),t.writeShort(l)};var Hf=function(){};(s["format.swf.utils.MatrixUtils"]=Hf).__name__=["format","swf","utils","MatrixUtils"],Hf.interpolate=function(e,t,s){var n=new Rr;return n.scaleX=e.scaleX+(t.scaleX-e.scaleX)*s,n.scaleY=e.scaleY+(t.scaleY-e.scaleY)*s,n.rotateSkew0=e.rotateSkew0+(t.rotateSkew0-e.rotateSkew0)*s,n.rotateSkew1=e.rotateSkew1+(t.rotateSkew1-e.rotateSkew1)*s,n.translateX=e.translateX+(t.translateX-e.translateX)*s|0,n.translateY=e.translateY+(t.translateY-e.translateY)*s|0,n};var Vf=function(){};(s["format.swf.utils.NumberUtils"]=Vf).__name__=["format","swf","utils","NumberUtils"],Vf.roundPixels20=function(e){return Math.round(100*e)/100},Vf.roundPixels400=function(e){return Math.round(1e4*e)/1e4};var Yf=function(){};(s["format.swf.utils.StringUtils"]=Yf).__name__=["format","swf","utils","StringUtils"],Yf.trim=function(e){return Yf.ltrim(Yf.rtrim(e))},Yf.ltrim=function(e){if(null!=e)for(var t=0,s=e.length;tb&&0<=b))throw Zf.trace("ERR index out of bounds while parsing width",{fileName:"StringUtils.hx",lineNumber:172,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__";if(d=0|t[b],isNaN(d))throw d=-1,Zf.trace("ERR NaN while parsing width",{fileName:"StringUtils.hx",lineNumber:168,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__";o=e.charAt(r)}else{for(;"0"<=o&&o<="9"&&(-1==d&&(d=0),d=10*d+Ue.parseInt(o),++r!=e.length);)o=e.charAt(r);if(-1!=d&&r==e.length)throw Zf.trace("ERR eof while parsing width",{fileName:"StringUtils.hx",lineNumber:184,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__"}if("."==o){if(++r==e.length)throw"__break__";if("*"==(o=e.charAt(r))){var m=0;if(++r==e.length)throw"__break__";if((p=Yf.getIndex(e))<-1||0==p)throw Zf.trace("ERR parsing index for precision",{fileName:"StringUtils.hx",lineNumber:200,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__";if(-1==p){if(1==i)throw Zf.trace("ERR: indexed placeholder expected for precision",{fileName:"StringUtils.hx",lineNumber:203,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__";-1==i&&(i=0),m=n++}else{if(0==i)throw Zf.trace("ERR: non-indexed placeholder expected for precision",{fileName:"StringUtils.hx",lineNumber:207,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__";-1==i&&(i=1),m=p}if(--m,!(t.length>m&&0<=m))throw Zf.trace("ERR index out of bounds while parsing precision",{fileName:"StringUtils.hx",lineNumber:220,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__";if(c=0|t[m],isNaN(c))throw c=-1,Zf.trace("ERR NaN while parsing precision",{fileName:"StringUtils.hx",lineNumber:216,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__";o=e.charAt(r)}else{for(;"0"<=o&&o<="9"&&(-1==c&&(c=0),c=10*c+Ue.parseInt(o),++r!=e.length);)o=e.charAt(r);if(-1!=c&&r==e.length)throw Zf.trace("ERR eof while parsing precision",{fileName:"StringUtils.hx",lineNumber:232,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__"}}switch(o){case"h":case"l":if(++r==e.length)throw Zf.trace("ERR eof after length",{fileName:"StringUtils.hx",lineNumber:243,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__";var g=e.charAt(r);if("h"==o&&"h"==g||"l"==o&&"l"==g){if(++r==e.length)throw Zf.trace("ERR eof after length",{fileName:"StringUtils.hx",lineNumber:246,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__";o=e.charAt(r)}else o=g;break;case"L":case"j":case"t":case"z":if(++r==e.length)throw Zf.trace("ERR eof after length",{fileName:"StringUtils.hx",lineNumber:252,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__";o=e.charAt(r)}if(!(0<="diufFeEgGxXoscpn".indexOf(o)))throw Zf.trace("ERR unknown type: "+o,{fileName:"StringUtils.hx",lineNumber:262,className:"format.swf.utils.StringUtils",methodName:"printf"}),"__break__";if(f=o,!(t.length>=n&&0>2]),this.buf.b+=String.fromCharCode(R[63&(D<<4|k>>4)]),this.buf.b+=String.fromCharCode(R[63&(k<<2|F>>6)]),this.buf.b+=String.fromCharCode(R[63&F])}if(E==P){var M=x.b[E++],L=x.b[E++];this.buf.b+=String.fromCharCode(R[M>>2]),this.buf.b+=String.fromCharCode(R[63&(M<<4|L>>4)]),this.buf.b+=String.fromCharCode(R[L<<2&63])}else if(E==P+1){var N=x.b[E++];this.buf.b+=String.fromCharCode(R[N>>2]),this.buf.b+=String.fromCharCode(R[N<<4&63])}break;default:this.useCache&&this.cache.pop(),null!=e.hxSerialize?(this.buf.b+="C",this.serializeString(ms.getClassName(r)),this.useCache&&this.cache.push(e),e.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(ms.getClassName(r)),this.useCache&&this.cache.push(e),this.serializeFields(e))}break;case 7:var O=t[2];if(this.useCache){if(this.serializeRef(e))return;this.cache.pop()}this.buf.b+=Ue.string(this.useEnumIndex?"j":"w"),this.serializeString(ms.getEnumName(O)),this.useEnumIndex?(this.buf.b+=":",this.buf.b+=Ue.string(e[1])):this.serializeString(e[0]),this.buf.b+=":";var U=e.length;this.buf.b+=Ue.string(U-2);for(var G=2,z=U;G=this.length)throw new Mp("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var t=this.unserialize();if("string"!=typeof t)throw new Mp("Invalid object key");var s=this.unserialize();e[t]=s}this.pos++},unserializeEnum:function(e,t){if(58!=this.buf.charCodeAt(this.pos++))throw new Mp("Invalid enum format");var s=this.readDigits();if(0==s)return ms.createEnum(e,t);for(var n=[];0=this.scache.length)throw new Mp("Invalid string reference");return this.scache[h];case 97:this.buf;var _=[];for(this.cache.push(_);;){var u=this.buf.charCodeAt(this.pos);if(104==u){this.pos++;break}if(117==u){this.pos++;var d=this.readDigits();_[_.length+d-1]=null}else _.push(this.unserialize())}return _;case 98:var c=new up;this.cache.push(c);for(this.buf;104!=this.buf.charCodeAt(this.pos);){var f=this.unserialize(),p=this.unserialize();null!=NT[f]?c.setReserved(f,p):c.h[f]=p}return this.pos++,c;case 99:var b=this.unserialize(),m=this.resolver.resolveClass(b);if(null==m)throw new Mp("Class not found "+b);var g=ms.createEmptyInstance(m);return this.cache.push(g),this.unserializeObject(g),g;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();case 106:var w=this.unserialize(),v=this.resolver.resolveEnum(w);if(null==v)throw new Mp("Enum not found "+w);this.pos++;var y=this.readDigits(),T=v.__constructs__.slice()[y];if(null==T)throw new Mp("Unknown enum index "+w+"@"+y);var S=this.unserializeEnum(v,T);return this.cache.push(S),S;case 107:return NaN;case 108:var x=new pe;this.cache.push(x);for(this.buf;104!=this.buf.charCodeAt(this.pos);)x.add(this.unserialize());return this.pos++,x;case 109:return-1/0;case 110:return null;case 111:var E={};return this.cache.push(E),this.unserializeObject(E),E;case 112:return 1/0;case 113:var P=new lp;this.cache.push(P);this.buf;for(var R=this.buf.charCodeAt(this.pos++);58==R;){var A=this.readDigits(),I=this.unserialize();P.h[A]=I,R=this.buf.charCodeAt(this.pos++)}if(104!=R)throw new Mp("Invalid IntMap format");return P;case 114:var C=this.readDigits();if(C<0||C>=this.cache.length)throw new Mp("Invalid reference");return this.cache[C];case 115:var B=this.readDigits(),D=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>2)+(2<=M?M-1:0))),O=0;F>4);var z=k[D.charCodeAt(F++)];N.b[O++]=255&(G<<4|z>>2);var X=k[D.charCodeAt(F++)];N.b[O++]=255&(z<<6|X)}if(2<=M){var H=k[D.charCodeAt(F++)],V=k[D.charCodeAt(F++)];if(N.b[O++]=255&(H<<2|V>>4),3==M){var Y=k[D.charCodeAt(F++)];N.b[O++]=255&(V<<4|Y>>2)}}return this.pos+=B,this.cache.push(N),N;case 116:return!0;case 118:var W;if(48<=this.buf.charCodeAt(this.pos)&&this.buf.charCodeAt(this.pos)<=57&&48<=this.buf.charCodeAt(this.pos+1)&&this.buf.charCodeAt(this.pos+1)<=57&&48<=this.buf.charCodeAt(this.pos+2)&&this.buf.charCodeAt(this.pos+2)<=57&&48<=this.buf.charCodeAt(this.pos+3)&&this.buf.charCodeAt(this.pos+3)<=57&&45==this.buf.charCodeAt(this.pos+4))W=he.strDate(he.substr(this.buf,this.pos,19)),this.pos+=19;else{var j=this.readFloat();W=new Date(j)}return this.cache.push(W),W;case 119:var K=this.unserialize(),q=this.resolver.resolveEnum(K);if(null==q)throw new Mp("Enum not found "+K);var Z=this.unserializeEnum(q,this.unserialize());return this.cache.push(Z),Z;case 120:throw Mp.wrap(this.unserialize());case 121:var J=this.readDigits();if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>o&a]}return 0>>1^-306674912:o>>>=1}t=t>>>8^o}return-1^t};var ip=function(){};(s["haxe.crypto.Md5"]=ip).__name__=["haxe","crypto","Md5"],ip.encode=function(e){var t=new ip,s=t.doEncode(ip.str2blks(e));return t.hex(s)},ip.str2blks=function(e){for(var t=Lf.ofString(e),s=1+(t.length+8>>6),n=[],i=0,r=16*s;i>2]|=t.b[o]<<(l+o)%4*8,++o;n[o>>2]|=128<<(l+o)%4*8;var h=16*s-2;return n[h]=255&l,n[h]|=(l>>>8&255)<<8,n[h]|=(l>>>16&255)<<16,n[h]|=(l>>>24&255)<<24,n},ip.prototype={bitOR:function(e,t){return(e>>>1|t>>>1)<<1|(1&e|1&t)},bitXOR:function(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t},bitAND:function(e,t){return(e>>>1&t>>>1)<<1|1&e&t},addme:function(e,t){var s=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(s>>16)<<16|65535&s},hex:function(e){for(var t="",s="0123456789abcdef",n=0;n>8*o+4&15)+s.charAt(i>>8*o&15)}}return t},rol:function(e,t){return e<>>32-t},cmn:function(e,t,s,n,i,r){return this.addme(this.rol(this.addme(this.addme(t,e),this.addme(n,r)),i),s)},ff:function(e,t,s,n,i,r,o){return this.cmn(this.bitOR(this.bitAND(t,s),this.bitAND(~t,n)),e,t,i,r,o)},gg:function(e,t,s,n,i,r,o){return this.cmn(this.bitOR(this.bitAND(t,n),this.bitAND(s,~n)),e,t,i,r,o)},hh:function(e,t,s,n,i,r,o){return this.cmn(this.bitXOR(this.bitXOR(t,s),n),e,t,i,r,o)},ii:function(e,t,s,n,i,r,o){return this.cmn(this.bitXOR(s,this.bitOR(t,~n)),e,t,i,r,o)},doEncode:function(e){for(var t=1732584193,s=-271733879,n=-1732584194,i=271733878,r=0;r=(null==a?0:a._height)?new op(e.left,e.key,e.value,new op(e.right,t,s,n)):new op(new op(e.left,e.key,e.value,e.right.left),e.right.key,e.right.value,new op(e.right.right,t,s,n))}if(i+2(null==h?0:h._height)?new op(new op(e,t,s,n.left),n.key,n.value,n.right):new op(new op(e,t,s,n.left.left),n.left.key,n.left.value,new op(n.left.right,n.key,n.value,n.right))}return new op(e,t,s,n,(r(null==a?0:a._height)){var l=this.left;r=null==l?0:l._height}else{var h=this.right;r=null==h?0:h._height}this._height=r+1}else this._height=i};(s["haxe.ds.TreeNode"]=op).__name__=["haxe","ds","TreeNode"],op.prototype={__class__:op};var ap=function(){rp.call(this)};(s["haxe.ds.EnumValueMap"]=ap).__name__=["haxe","ds","EnumValueMap"],ap.__interfaces__=[Kf],ap.__super__=rp,ap.prototype=n(rp.prototype,{compare:function(e,t){var s=e[1]-t[1];if(0!=s)return s;var n=e.slice(2),i=t.slice(2);return 0==n.length&&0==i.length?0:this.compareArgs(n,i)},compareArgs:function(e,t){var s=e.length-t.length;if(0!=s)return s;for(var n=0,i=e.length;n>8&255),this.b.push(e>>16&255),this.b.push(e>>>24)},addInt64:function(e){this.addInt32(e.low),this.addInt32(e.high)},getBytes:function(){var e=new Lf(new zT(this.b).buffer);return this.b=null,e},__class__:cp};var fp=function(){};(s["haxe.io.Eof"]=fp).__name__=["haxe","io","Eof"],fp.prototype={toString:function(){return"Eof"},__class__:fp};var pp=s["haxe.io.Error"]={__ename__:["haxe","io","Error"],__constructs__:["Blocked","Overflow","OutsideBounds","Custom"]};pp.Blocked=["Blocked",0],pp.Blocked.toString=c,(pp.Blocked.__enum__=pp).Overflow=["Overflow",1],pp.Overflow.toString=c,(pp.Overflow.__enum__=pp).OutsideBounds=["OutsideBounds",2],pp.OutsideBounds.toString=c,(pp.OutsideBounds.__enum__=pp).Custom=function(e){var t=["Custom",3,e];return t.__enum__=pp,t.toString=c,t};var bp=function(){};(s["haxe.io.FPHelper"]=bp).__name__=["haxe","io","FPHelper"],bp.i32ToFloat=function(e){var t=e>>>23&255,s=8388607&e;return 0==s&&0==t?0:(1-(e>>>31<<1))*(1+Math.pow(2,-23)*s)*Math.pow(2,t-127)},bp.floatToI32=function(e){if(0==e)return 0;var t=e<0?-e:e,s=Math.floor(Math.log(t)/.6931471805599453);s<-127?s=-127:128>20&2047)-1023,n=4294967296*(1048575&t)+2147483648*(e>>>31)+(2147483647&e);return 0==n&&-1023==s?0:(1-(t>>>31<<1))*(1+Math.pow(2,-52)*n)*Math.pow(2,s)},bp.doubleToI64=function(e){var t=bp.i64tmp;if(0==e)t.low=0,t.high=0;else if(isFinite(e)){var s=e<0?-e:e,n=Math.floor(Math.log(s)/.6931471805599453),i=Math.round(4503599627370496*(s/Math.pow(2,n)-1)),r=0|i,o=i/4294967296|0;t.low=r,t.high=(e<0?-2147483648:0)|n+1023<<20|o}else t.high=0e.length)throw new Mp(pp.OutsideBounds);if(0==t&&s==e.length)return new Int32Array(e);for(var n=new Int32Array(e.length),i=0,r=s;i>2),new Int32Array(e.b.bufferValue,t,s)};var gp=function(e){switch(e){case".":case"..":return this.dir=e,void(this.file="")}var t=e.lastIndexOf("/"),s=e.lastIndexOf("\\");t>1),new Uint16Array(e.b.bufferValue,t,s)};var vp={};(s["haxe.io._UInt8Array.UInt8Array_Impl_"]=vp).__name__=["haxe","io","_UInt8Array","UInt8Array_Impl_"],vp.fromArray=function(e,t,s){if(null==t&&(t=0),null==s&&(s=e.length-t),t<0||s<0||t+s>e.length)throw new Mp(pp.OutsideBounds);if(0==t&&s==e.length)return new zT(e);for(var n=new zT(e.length),i=0,r=s;i",e,s))}r=0,o=12;continue;case 11:if(62!=u)throw new Mp(new Tp("Expected >",e,s));r=1;break;case 12:if(62==u)return 0==h&&n.addChild(Vt.createPCData("")),s;throw new Mp(new Tp("Expected >",e,s));case 13:if(60==u){var y=s-l;d.b+=null==y?he.substr(e,l,null):he.substr(e,l,y);var T=Vt.createPCData(d.b);d=new ze,n.addChild(T),++h,r=0,o=2}else if(38==u){var S=s-l;d.b+=null==S?he.substr(e,l,null):he.substr(e,l,S),r=18,c=13,l=s+1}break;case 14:if(63==u&&62==e.charCodeAt(s+1)){++s;var x=he.substr(e,l+1,s-l-2);n.addChild(Vt.createProcessingInstruction(x)),++h,r=1}break;case 15:45==u&&45==e.charCodeAt(s+1)&&62==e.charCodeAt(s+2)&&(n.addChild(Vt.createComment(he.substr(e,l,s-l))),++h,s+=2,r=1);break;case 16:91==u?++_:93==u?--_:62==u&&0==_&&(n.addChild(Vt.createDocType(he.substr(e,l,s-l))),++h,r=1);break;case 17:if(93==u&&93==e.charCodeAt(s+1)&&62==e.charCodeAt(s+2)){var E=Vt.createCData(he.substr(e,l,s-l));n.addChild(E),++h,s+=2,r=1}break;case 18:if(59==u){var P=he.substr(e,l,s-l);if(35==P.charCodeAt(0)){var R=120==P.charCodeAt(1)?Ue.parseInt("0"+he.substr(P,1,P.length-1)):Ue.parseInt(he.substr(P,1,P.length-1));d.b+=String.fromCharCode(R)}else{var A=Sp.escapes;if(null!=NT[P]?A.existsReserved(P):A.h.hasOwnProperty(P)){var I=Sp.escapes,C=null!=NT[P]?I.getReserved(P):I.h[P];d.b+=Ue.string(C)}else{if(t)throw new Mp(new Tp("Undefined entity: "+P,e,s));d.b+=Ue.string("&"+P+";")}}l=s+1,r=c}else if(!(97<=u&&u<=122||65<=u&&u<=90||48<=u&&u<=57||58==u||46==u||95==u||45==u)&&35!=u){if(t)throw new Mp(new Tp("Invalid character in entity: "+String.fromCharCode(u),e,s));d.b+="&";var B=s-l;d.b+=null==B?he.substr(e,l,null):he.substr(e,l,B),l=s--,r=c}}u=e.charCodeAt(++s)}if(1==r&&(l=s,r=13),13==r){if(s!=l||0==h){var D=s-l;d.b+=null==D?he.substr(e,l,null):he.substr(e,l,D),n.addChild(Vt.createPCData(d.b)),++h}return s}if(t||18!=r||13!=c)throw new Mp(new Tp("Unexpected end",e,s));d.b+="&";var k=s-l;return d.b+=null==k?he.substr(e,l,null):he.substr(e,l,k),n.addChild(Vt.createPCData(d.b)),++h,s};var xp=function(e){this.output=new ze,this.pretty=e};(s["haxe.xml.Printer"]=xp).__name__=["haxe","xml","Printer"],xp.print=function(e,t){null==t&&(t=!1);var s=new xp(t);return s.writeNode(e,""),s.output.b},xp.prototype={writeNode:function(e,t){switch(e.nodeType){case 0:if(this.output.b+=Ue.string(t+"<"),e.nodeType!=Vt.Element)throw new Mp("Bad node type, expected Element but found "+e.nodeType);this.output.b+=Ue.string(e.nodeName);for(var s=e.attributes();s.hasNext();){var n=s.next();this.output.b+=Ue.string(" "+n+'="');var i=Ri.htmlEscape(e.get(n),!0);this.output.b+=Ue.string(i),this.output.b+='"'}if(this.hasChildren(e)){if(this.output.b+=">",this.pretty&&(this.output.b+="\n"),e.nodeType!=Vt.Document&&e.nodeType!=Vt.Element)throw new Mp("Bad node type, expected Element or Document but found "+e.nodeType);for(var r=he.iter(e.children);r.hasNext();){var o=r.next();this.writeNode(o,this.pretty?t+"\t":t)}if(this.output.b+=Ue.string(t+"",this.pretty&&(this.output.b+="\n")}else this.output.b+="/>",this.pretty&&(this.output.b+="\n");break;case 1:if(e.nodeType==Vt.Document||e.nodeType==Vt.Element)throw new Mp("Bad node type, unexpected "+e.nodeType);var a=e.nodeValue;if(0!=a.length){var l=t+Ri.htmlEscape(a);this.output.b+=Ue.string(l),this.pretty&&(this.output.b+="\n")}break;case 2:if(this.output.b+=Ue.string(t+"",this.pretty&&(this.output.b+="\n");break;case 3:if(e.nodeType==Vt.Document||e.nodeType==Vt.Element)throw new Mp("Bad node type, unexpected "+e.nodeType);var _=e.nodeValue,u=new RegExp("[\n\r\t]+","g".split("u").join(""));_="\x3c!--"+(_=_.replace(u,""))+"--\x3e",this.output.b+=null==t?"null":""+t;var d=Ri.trim(_);this.output.b+=Ue.string(d),this.pretty&&(this.output.b+="\n");break;case 4:if(e.nodeType==Vt.Document||e.nodeType==Vt.Element)throw new Mp("Bad node type, unexpected "+e.nodeType);this.output.b+=Ue.string(""),this.pretty&&(this.output.b+="\n");break;case 5:if(e.nodeType==Vt.Document||e.nodeType==Vt.Element)throw new Mp("Bad node type, unexpected "+e.nodeType);this.output.b+=Ue.string(""),this.pretty&&(this.output.b+="\n");break;case 6:if(e.nodeType!=Vt.Document&&e.nodeType!=Vt.Element)throw new Mp("Bad node type, expected Element or Document but found "+e.nodeType);for(var c=he.iter(e.children);c.hasNext();){var f=c.next();this.writeNode(f,t)}}},hasChildren:function(e){if(e.nodeType!=Vt.Document&&e.nodeType!=Vt.Element)throw new Mp("Bad node type, expected Element or Document but found "+e.nodeType);for(var t=he.iter(e.children);t.hasNext();){var s=t.next();switch(s.nodeType){case 0:case 1:return!0;case 2:case 3:if(s.nodeType==Vt.Document||s.nodeType==Vt.Element)throw new Mp("Bad node type, unexpected "+s.nodeType);if(0!=Ri.ltrim(s.nodeValue).length)return!0}}return!1},__class__:xp};var Ep=function(e,t){this.from=e,this.to=t};(s["hxbit.ConvertField"]=Ep).__name__=["hxbit","ConvertField"],Ep.prototype={__class__:Ep};var Pp=function(e,t){for(var s=new up,n=0,i=e.fieldsNames.length;n").join(">")},Lp.__trace=function(e,t){var s,n=null!=t?t.fileName+":"+t.lineNumber+": ":"";if(n+=Lp.__string_rec(e,""),null!=t&&null!=t.customParams)for(var i=0,r=t.customParams;i":"undefined"!=typeof console&&null!=console.log&&console.log(n)},Lp.getClass=function(e){if(e instanceof Array&&null==e.__enum__)return Array;var t=e.__class__;if(null!=t)return t;var s=Lp.__nativeClassName(e);return null!=s?Lp.__resolveNativeClass(s):null},Lp.__string_rec=function(e,t){if(null==e)return"null";if(5<=t.length)return"<...>";var s=typeof e;switch("function"==s&&(e.__name__||e.__ename__)&&(s="object"),s){case"function":return"";case"object":if(e instanceof Array){if(e.__enum__){if(2==e.length)return e[0];var n=e[0]+"(";t+="\t";for(var i=2,r=e.length;ie.byteLength)throw new Mp(pp.OutsideBounds);this.byteLength=this.length,this.byteOffset=this.offset,this.buffer=this.buf};(s["js.html.compat.DataView"]=Gp).__name__=["js","html","compat","DataView"],Gp.prototype={getInt8:function(e){var t=this.buf.a[this.offset+e];return 128<=t?t-256:t},getUint8:function(e){return this.buf.a[this.offset+e]},getInt16:function(e,t){var s=this.getUint16(e,t);return 32768<=s?s-65536:s},getUint16:function(e,t){return t?this.buf.a[this.offset+e]|this.buf.a[this.offset+e+1]<<8:this.buf.a[this.offset+e]<<8|this.buf.a[this.offset+e+1]},getInt32:function(e,t){var s=this.offset+e,n=this.buf.a[s++],i=this.buf.a[s++],r=this.buf.a[s++],o=this.buf.a[s++];return t?n|i<<8|r<<16|o<<24:o|r<<8|i<<16|n<<24},getUint32:function(e,t){var s=this.getInt32(e,t);return s<0?s+4294967296:s},getFloat32:function(e,t){return bp.i32ToFloat(this.getInt32(e,t))},getFloat64:function(e,t){var s=this.getInt32(e,t),n=this.getInt32(e+4,t);return bp.i64ToDouble(t?s:n,t?n:s)},setInt8:function(e,t){this.buf.a[e+this.offset]=t<0?t+128&255:255&t},setUint8:function(e,t){this.buf.a[e+this.offset]=255&t},setInt16:function(e,t,s){this.setUint16(e,t<0?t+65536:t,s)},setUint16:function(e,t,s){var n=e+this.offset;s?(this.buf.a[n]=255&t,this.buf.a[n++]=t>>8&255):(this.buf.a[n++]=t>>8&255,this.buf.a[n]=255&t)},setInt32:function(e,t,s){this.setUint32(e,t,s)},setUint32:function(e,t,s){var n=e+this.offset;this.buf.a[n++]=s?(this.buf.a[n++]=255&t,this.buf.a[n++]=t>>8&255,this.buf.a[n++]=t>>16&255,t>>>24):(this.buf.a[n++]=t>>>24,this.buf.a[n++]=t>>16&255,this.buf.a[n++]=t>>8&255,255&t)},setFloat32:function(e,t,s){this.setUint32(e,bp.floatToI32(t),s)},setFloat64:function(e,t,s){var n=bp.doubleToI64(t);s?(this.setUint32(e,n.low),this.setUint32(e,n.high)):(this.setUint32(e,n.high),this.setUint32(e,n.low))},__class__:Gp};var zp=function(){};(s["js.html.compat.Float32Array"]=zp).__name__=["js","html","compat","Float32Array"],zp._new=function(e,t,s){var n;if("number"==typeof e){n=[];for(var i=0,r=e;i>2),n=[];for(var _=0,u=s;_>8&255),c.push(b>>16&255),c.push(b>>>24)}n.byteLength=n.length<<2,n.byteOffset=0,n.buffer=new Up(c)}return n.subarray=zp._subarray,n.set=zp._set,n},zp._set=function(e,t){if(Lp.__instanceof(e.buffer,Up)){var s=e;if(e.byteLength+t>this.byteLength)throw new Mp("set() outside of range");for(var n=0,i=e.byteLength;nthis.byteLength)throw new Mp("set() outside of range");for(var a=0,l=o.length;athis.byteLength)throw new Mp("set() outside of range");for(var n=0,i=e.byteLength;nthis.byteLength)throw new Mp("set() outside of range");for(var a=0,l=o.length;athis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;t=this.nextUpdate){if(this.deltaTime=this.currentUpdate-this.lastUpdate,this.parent.onUpdate.dispatch(0|this.deltaTime),null!=this.parent.renderers[0]&&(this.parent.render(this.parent.renderers[0]),this.parent.renderers[0].flip()),this.framePeriod<0)this.nextUpdate=this.currentUpdate;else for(;this.nextUpdate+=this.framePeriod,this.nextUpdatethis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;tthis.__priorities[r])return this.__listeners.splice(r,0,e),this.__priorities.splice(r,0,s),void this.__repeat.splice(r,0,!t)}this.__listeners.push(e),this.__priorities.push(s),this.__repeat.push(!t)},cancel:function(){this.canceled=!0},has:function(e){for(var t=0,s=this.__listeners;te.width&&(t.width=e.width-t.x),t.y+t.height>e.height&&(t.height=e.height-t.y),this.type[1]){case 0:Yb.copyChannel(this,e,t,s,n,i);break;case 1:Yb.convertToData(this),Yb.convertToData(e),Wb.copyChannel(this,e,t,s,n,i);break;case 2:var r,o;switch(n[1]){case 0:r=1;break;case 1:r=2;break;case 2:r=4;break;case 3:r=8}switch(i[1]){case 0:o=1;break;case 1:o=2;break;case 2:o=4;break;case 3:o=8}t.offset(e.offsetX,e.offsetY),s.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.copyChannel(e.buffer.get_src(),t.__toFlashRectangle(),s.__toFlashPoint(),r,o)}},copyPixels:function(e,t,s,n,i,r){if((null==r&&(r=!1),null!=this.buffer&&null!=e)&&!(t.width<=0||t.height<=0||this.width<=0||this.height<=0))switch(t.x+t.width>e.width&&(t.width=e.width-t.x),t.y+t.height>e.height&&(t.height=e.height-t.y),t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0),s.x+t.width>this.width&&(t.width=this.width-s.x),s.y+t.height>this.height&&(t.height=this.height-s.y),s.x<0&&(t.width+=s.x,t.x=-s.x,s.x=0),s.y<0&&(t.height+=s.y,t.y=-s.y,s.y=0),this.type[1]){case 0:Yb.convertToCanvas(this),Yb.copyPixels(this,e,t,s,n,i,r);break;case 1:Yb.convertToData(this),Yb.convertToData(e),Wb.copyPixels(this,e,t,s,n,i,r);break;case 2:t.offset(e.offsetX,e.offsetY),s.offset(this.offsetX,this.offsetY),null!=n&&null!=i&&i.offset(n.offsetX,n.offsetY),this.buffer.__srcBitmapData.copyPixels(e.buffer.__srcBitmapData,t.__toFlashRectangle(),s.__toFlashPoint(),null!=n?n.buffer.get_src():null,null!=i?i.__toFlashPoint():null,r)}},encode:function(e,t){switch(null==t&&(t=90),null==e&&(e="png"),e){case"bmp":return Gb.encode(this);case"jpeg":case"jpg":return Xb.encode(this,t);case"png":return Hb.encode(this)}return null},fillRect:function(e,t,s){if(e=this.__clipRect(e),null!=this.buffer&&null!=e){switch(this.type[1]){case 0:Yb.fillRect(this,e,t,s);break;case 1:if(Yb.convertToData(this),0==this.buffer.data.length)return;Wb.fillRect(this,e,t,s);break;case 2:var n;if(e.offset(this.offsetX,this.offsetY),null==s){n=(255&t)<<24|(255&t>>24)<<16|(255&t>>16)<<8|255&t>>8}else switch(s){case 1:n=t;break;case 2:n=(255&t)<<24|(255&t>>8)<<16|(255&t>>16)<<8|255&t>>24;break;default:n=(255&t)<<24|(255&t>>24)<<16|(255&t>>16)<<8|255&t>>8}this.buffer.__srcBitmapData.fillRect(e.__toFlashRectangle(),n)}this.dirty=!0}},floodFill:function(e,t,s,n){if(null!=this.buffer)switch(this.type[1]){case 0:Yb.floodFill(this,e,t,s,n);break;case 1:Yb.convertToData(this),Wb.floodFill(this,e,t,s,n);break;case 2:var i;if(null==n){i=(255&s)<<24|(255&s>>24)<<16|(255&s>>16)<<8|255&s>>8}else switch(n){case 1:i=s;break;case 2:i=(255&s)<<24|(255&s>>8)<<16|(255&s>>16)<<8|255&s>>24;break;default:i=(255&s)<<24|(255&s>>24)<<16|(255&s>>16)<<8|255&s>>8}this.buffer.__srcBitmapData.floodFill(e+this.offsetX,t+this.offsetY,i)}},getColorBoundsRect:function(e,t,s,n){if(null==s&&(s=!0),null==this.buffer)return null;switch(this.type[1]){case 0:return Yb.convertToData(this),Wb.getColorBoundsRect(this,e,t,s,n);case 1:return Wb.getColorBoundsRect(this,e,t,s,n);case 2:var i=this.buffer.__srcBitmapData.getColorBoundsRect(e,t,s);return new Jb(i.x,i.y,i.width,i.height);default:return null}},getPixel:function(e,t,s){if(null==this.buffer||e<0||t<0||e>=this.width||t>=this.height)return 0;switch(this.type[1]){case 0:return Yb.getPixel(this,e,t,s);case 1:return Yb.convertToData(this),Wb.getPixel(this,e,t,s);case 2:var n=this.buffer.__srcBitmapData.getPixel(e+this.offsetX,t+this.offsetY);if(null==s){return(255&n>>16)<<24|(255&n>>8)<<16|(255&n)<<8|255&n>>24}switch(s){case 1:return n;case 2:return(255&n)<<24|(255&n>>8)<<16|(255&n>>16)<<8|255&n>>24;default:return(255&n>>16)<<24|(255&n>>8)<<16|(255&n)<<8|255&n>>24}break;default:return 0}},getPixel32:function(e,t,s){if(null==this.buffer||e<0||t<0||e>=this.width||t>=this.height)return 0;switch(this.type[1]){case 0:return Yb.getPixel32(this,e,t,s);case 1:return Yb.convertToData(this),Wb.getPixel32(this,e,t,s);case 2:var n=this.buffer.__srcBitmapData.getPixel32(e+this.offsetX,t+this.offsetY);if(null==s){return(255&n>>16)<<24|(255&n>>8)<<16|(255&n)<<8|255&n>>24}switch(s){case 1:return n;case 2:return(255&n)<<24|(255&n>>8)<<16|(255&n>>16)<<8|255&n>>24;default:return(255&n>>16)<<24|(255&n>>8)<<16|(255&n)<<8|255&n>>24}break;default:return 0}},getPixels:function(e,t){if(null==this.buffer)return null;switch(this.type[1]){case 0:return Yb.getPixels(this,e,t);case 1:return Yb.convertToData(this),Wb.getPixels(this,e,t);case 2:default:return null}},merge:function(e,t,s,n,i,r,o){if(null!=this.buffer&&null!=e)switch(this.type[1]){case 0:Yb.convertToCanvas(this),Yb.merge(this,e,t,s,n,i,r,o);break;case 1:Yb.convertToData(this),Yb.convertToData(e),Wb.merge(this,e,t,s,n,i,r,o);break;case 2:t.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.merge(e.buffer.__srcBitmapData,t.__toFlashRectangle(),s.__toFlashPoint(),n,i,r,o);break;default:return}},resize:function(e,t){switch(this.type[1]){case 0:Yb.resize(this,e,t);break;case 1:Wb.resize(this,e,t)}this.buffer.width=e,this.buffer.height=t,this.offsetX=0,this.offsetY=0,this.width=e,this.height=t},scroll:function(e,t){if(null!=this.buffer)switch(this.type[1]){case 0:Yb.scroll(this,e,t);break;case 1:this.copyPixels(this,this.get_rect(),new Qb(e,t));break;case 2:this.buffer.__srcBitmapData.scroll(e+this.offsetX,t+this.offsetX)}},setPixel:function(e,t,s,n){if(!(null==this.buffer||e<0||t<0||e>=this.width||t>=this.height))switch(this.type[1]){case 0:Yb.setPixel(this,e,t,s,n);break;case 1:Yb.convertToData(this),Wb.setPixel(this,e,t,s,n);break;case 2:var i;if(null==n){i=(255&s)<<24|(255&s>>24)<<16|(255&s>>16)<<8|255&s>>8}else switch(n){case 1:i=s;break;case 2:i=(255&s)<<24|(255&s>>8)<<16|(255&s>>16)<<8|255&s>>24;break;default:i=(255&s)<<24|(255&s>>24)<<16|(255&s>>16)<<8|255&s>>8}this.buffer.__srcBitmapData.setPixel(e+this.offsetX,t+this.offsetX,i)}},setPixel32:function(e,t,s,n){if(!(null==this.buffer||e<0||t<0||e>=this.width||t>=this.height))switch(this.type[1]){case 0:Yb.setPixel32(this,e,t,s,n);break;case 1:Yb.convertToData(this),Wb.setPixel32(this,e,t,s,n);break;case 2:var i;if(null==n){i=(255&s)<<24|(255&s>>24)<<16|(255&s>>16)<<8|255&s>>8}else switch(n){case 1:i=s;break;case 2:i=(255&s)<<24|(255&s>>8)<<16|(255&s>>16)<<8|255&s>>24;break;default:i=(255&s)<<24|(255&s>>24)<<16|(255&s>>16)<<8|255&s>>8}this.buffer.__srcBitmapData.setPixel32(e+this.offsetX,t+this.offsetY,i)}},setPixels:function(e,t,s){if(e=this.__clipRect(e),null!=this.buffer&&null!=e)switch(this.type[1]){case 0:Yb.setPixels(this,e,t,s);break;case 1:Yb.convertToData(this),Wb.setPixels(this,e,t,s)}},threshold:function(e,t,s,n,i,r,o,a,l){if(null==a&&(a=!1),null==o&&(o=-1),null==r&&(r=0),null==this.buffer||null==e||null==t)return 0;switch(this.type[1]){case 0:case 1:return Yb.convertToData(this),Wb.threshold(this,e,t,s,n,i,r,o,a,l);case 2:var h,_;if(null==l){h=(255&r)<<24|(255&r>>24)<<16|(255&r>>16)<<8|255&r>>8}else switch(l){case 1:h=r;break;case 2:h=(255&r)<<24|(255&r>>8)<<16|(255&r>>16)<<8|255&r>>24;break;default:h=(255&r)<<24|(255&r>>24)<<16|(255&r>>16)<<8|255&r>>8}if(null==l){_=(255&o)<<24|(255&o>>24)<<16|(255&o>>16)<<8|255&o>>8}else switch(l){case 1:_=o;break;case 2:_=(255&o)<<24|(255&o>>8)<<16|(255&o>>16)<<8|255&o>>24;break;default:_=(255&o)<<24|(255&o>>24)<<16|(255&o>>16)<<8|255&o>>8}return t.offset(e.offsetX,e.offsetY),s.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.threshold(e.buffer.get_src(),t.__toFlashRectangle(),s.__toFlashPoint(),n,i,h,_,a)}return 0},__clipRect:function(e){return null==e?null:e.x<0&&(e.width-=-e.x,e.x=0,e.x+e.width<=0)?null:e.y<0&&(e.height-=-e.y,e.y=0,e.y+e.height<=0)?null:e.x+e.width>=this.width&&(e.width-=e.x+e.width-this.width,e.width<=0)?null:e.y+e.height>=this.height&&(e.height-=e.y+e.height-this.height,e.height<=0)?null:e},__fromBase64:function(e,t,s){var n=this,i=new Image;i.crossOrigin="Anonymous";i.addEventListener("load",function(e){n.buffer=new Fb(null,i.width,i.height),n.buffer.__srcImage=i,n.offsetX=0,n.offsetY=0,n.width=n.buffer.width,n.height=n.buffer.height,null!=s&&s(n)},!1),i.src="data:"+t+";base64,"+e},__fromBytes:function(e,t){var s="";if(kb.__isPNG(e))s="image/png";else if(kb.__isJPG(e))s="image/jpeg";else{if(!kb.__isGIF(e))throw new Mp("Image tried to read PNG/JPG Bytes, but found an invalid header.");s="image/gif"}this.__fromBase64(kb.__base64Encode(e),s,t)},__fromFile:function(e,t,s){var n=this,i=new Image;i.crossOrigin="Anonymous",i.onload=function(e){n.buffer=new Fb(null,i.width,i.height),n.buffer.__srcImage=i,n.width=i.width,n.height=i.height,null!=t&&t(n)},i.onerror=function(e){null!=s&&s()},i.src=e;i.complete},__fromImageBuffer:function(e){null!=(this.buffer=e)&&(-1==this.width&&(this.width=e.width),-1==this.height&&(this.height=e.height))},get_data:function(){return null==this.buffer.data&&0=e.width||n.y>=e.height||null==s||s.width<1||s.height<1)){if(null!=i&&i.get_transparent()){null==r&&(r=new Qb);var a=e.clone();a.copyChannel(i,new Jb(r.x,r.y,s.width,s.height),new Qb(s.x,s.y),Mb.ALPHA,Mb.ALPHA),t=a}Yb.sync(e,!0),o||e.get_transparent()&&t.get_transparent()&&e.buffer.__srcContext.clearRect(n.x+e.offsetX,n.y+e.offsetY,s.width+e.offsetX,s.height+e.offsetY),Yb.sync(t,!1),Yb.convertToCanvas(t),null!=t.buffer.get_src()&&(e.buffer.__srcContext.drawImage(t.buffer.get_src(),s.x+t.offsetX|0,s.y+t.offsetY|0,0|s.width,0|s.height,n.x+e.offsetX|0,n.y+e.offsetY|0,0|s.width,0|s.height),e.dirty=!0)}},Yb.createCanvas=function(e,t,s){var n=e.buffer;null==n.__srcCanvas&&(n.__srcCanvas=window.document.createElement("canvas"),n.__srcCanvas.width=t,n.__srcCanvas.height=s,e.get_transparent()?n.__srcContext=n.__srcCanvas.getContext("2d"):(e.get_transparent()||n.__srcCanvas.setAttribute("moz-opaque","true"),n.__srcContext=n.__srcCanvas.getContext("2d",{alpha:!1})),n.__srcContext.mozImageSmoothingEnabled=!1,n.__srcContext.msImageSmoothingEnabled=!1,n.__srcContext.imageSmoothingEnabled=!1)},Yb.createImageData=function(e){var t=e.buffer;if(null==t.__srcImageData){null==t.data?t.__srcImageData=t.__srcContext.getImageData(0,0,t.width,t.height):(t.__srcImageData=t.__srcContext.createImageData(t.width,t.height),t.__srcImageData.data.set(t.data));var s,n=t.__srcImageData.data.buffer;s=null!=n?new zT(n):null,t.data=s}},Yb.fillRect=function(e,t,s,n){var i,r,o,a;(Yb.convertToCanvas(e),Yb.sync(e,!0),0==t.x&&0==t.y&&t.width==e.width&&t.height==e.height&&e.get_transparent()&&0==(255&s))?e.buffer.__srcCanvas.width=e.buffer.width:(a=1==n?(i=s>>16&255,r=s>>8&255,o=255&s,e.get_transparent()?s>>24&255:255):(i=s>>24&255,r=s>>16&255,o=s>>8&255,e.get_transparent()?255&s:255),e.buffer.__srcContext.fillStyle="rgba("+i+", "+r+", "+o+", "+a/255+")",e.buffer.__srcContext.fillRect(t.x+e.offsetX,t.y+e.offsetY,t.width+e.offsetX,t.height+e.offsetY))},Yb.floodFill=function(e,t,s,n,i){Yb.convertToCanvas(e),Yb.createImageData(e),Wb.floodFill(e,t,s,n,i)},Yb.getPixel=function(e,t,s,n){return Yb.convertToCanvas(e),Yb.createImageData(e),Wb.getPixel(e,t,s,n)},Yb.getPixel32=function(e,t,s,n){return Yb.convertToCanvas(e),Yb.createImageData(e),Wb.getPixel32(e,t,s,n)},Yb.getPixels=function(e,t,s){return Yb.convertToCanvas(e),Yb.createImageData(e),Wb.getPixels(e,t,s)},Yb.merge=function(e,t,s,n,i,r,o,a){Yb.convertToCanvas(t),Yb.createImageData(t),Yb.convertToCanvas(e),Yb.createImageData(e),Wb.merge(e,t,s,n,i,r,o,a)},Yb.resize=function(e,t,s){var n=e.buffer;if(null==n.__srcCanvas)Yb.createCanvas(e,t,s),n.__srcContext.drawImage(n.get_src(),0,0,t,s);else{Yb.sync(e,!0);var i=n.__srcCanvas;n.__srcCanvas=null,Yb.createCanvas(e,t,s),n.__srcContext.drawImage(i,0,0,t,s)}},Yb.scroll=function(e,t,s){t%e.width==0&&s%e.height==0||(Yb.convertToCanvas(e),Yb.sync(e,!0),e.buffer.__srcContext.clearRect(t,s,e.width,e.height),e.buffer.__srcContext.drawImage(e.buffer.__srcCanvas,t,s))},Yb.setPixel=function(e,t,s,n,i){Yb.convertToCanvas(e),Yb.createImageData(e),Wb.setPixel(e,t,s,n,i)},Yb.setPixel32=function(e,t,s,n,i){Yb.convertToCanvas(e),Yb.createImageData(e),Wb.setPixel32(e,t,s,n,i)},Yb.setPixels=function(e,t,s,n){Yb.convertToCanvas(e),Yb.createImageData(e),Wb.setPixels(e,t,s,n)},Yb.sync=function(e,t){e.dirty&&null!=e.buffer.__srcImageData&&e.type!=Lb.DATA&&(e.buffer.__srcContext.putImageData(e.buffer.__srcImageData,0,0),e.buffer.data=null,e.dirty=!1),t&&(e.buffer.__srcImageData=null,e.buffer.data=null)};var Wb=function(){};(s["lime.graphics.utils.ImageDataUtil"]=Wb).__name__=["lime","graphics","utils","ImageDataUtil"],Wb.colorTransform=function(e,t,s){var n=e.buffer.data;if(null!=n){for(var i,r,o,a=e.buffer.format,l=e.buffer.premultiplied,h=new jb(e,t),_=Kb.getAlphaTable(s),u=Kb.getRedTable(s),d=Kb.getGreenTable(s),c=Kb.getBlueTable(s),f=0,p=h.height;f>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((o>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((o>>8&255)*sm.unmult)])<<8|255&o),o=(255&u[o>>24&255])<<24|(255&d[o>>16&255])<<16|(255&c[o>>8&255])<<8|255&_[255&o],l&&(0==(255&o)?0!=o&&(o=0):255!=(255&o)&&(sm.a16=sm.__alpha16[255&o],o=((o>>24&255)*sm.a16>>16&255)<<24|((o>>16&255)*sm.a16>>16&255)<<16|((o>>8&255)*sm.a16>>16&255)<<8|255&o)),a){case 0:n[r]=o>>24&255,n[r+1]=o>>16&255,n[r+2]=o>>8&255,n[r+3]=255&o;break;case 1:n[r]=255&o,n[r+1]=o>>24&255,n[r+2]=o>>16&255,n[r+3]=o>>8&255;break;case 2:n[r]=o>>8&255,n[r+1]=o>>16&255,n[r+2]=o>>24&255,n[r+3]=255&o}}}e.dirty=!0}},Wb.copyChannel=function(e,t,s,n,i,r){var o,a;switch(r[1]){case 0:o=0;break;case 1:o=1;break;case 2:o=2;break;case 3:o=3}switch(i[1]){case 0:a=0;break;case 1:a=1;break;case 2:a=2;break;case 3:a=3}var l=t.buffer.data,h=e.buffer.data;if(null!=l&&null!=h){for(var _,u,d,c,f=new jb(t,s),p=new jb(e,new Jb(n.x,n.y,f.width,f.height)),b=t.buffer.format,m=e.buffer.format,g=t.buffer.premultiplied,w=e.buffer.premultiplied,v=0,y=0,T=p.height;y>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((d>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((d>>8&255)*sm.unmult)])<<8|255&d),m){case 0:c=(255&h[u])<<24|(255&h[u+1])<<16|(255&h[u+2])<<8|255&h[u+3];break;case 1:c=(255&h[u+1])<<24|(255&h[u+2])<<16|(255&h[u+3])<<8|255&h[u];break;case 2:c=(255&h[u+2])<<24|(255&h[u+1])<<16|(255&h[u])<<8|255&h[u+3]}switch(w&&0!=(255&c)&&255!=(255&c)&&(sm.unmult=255/(255&c),c=(255&sm.__clamp[Math.round((c>>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((c>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((c>>8&255)*sm.unmult)])<<8|255&c),a){case 0:v=d>>24&255;break;case 1:v=d>>16&255;break;case 2:v=d>>8&255;break;case 3:v=255&d}switch(o){case 0:c=(255&v)<<24|(255&c>>16)<<16|(255&c>>8)<<8|255&c;break;case 1:c=(255&c>>24)<<24|(255&v)<<16|(255&c>>8)<<8|255&c;break;case 2:c=(255&c>>24)<<24|(255&c>>16)<<16|(255&v)<<8|255&c;break;case 3:c=(255&c>>24)<<24|(255&c>>16)<<16|(255&c>>8)<<8|255&v}switch(w&&(0==(255&c)?0!=c&&(c=0):255!=(255&c)&&(sm.a16=sm.__alpha16[255&c],c=((c>>24&255)*sm.a16>>16&255)<<24|((c>>16&255)*sm.a16>>16&255)<<16|((c>>8&255)*sm.a16>>16&255)<<8|255&c)),m){case 0:h[u]=c>>24&255,h[u+1]=c>>16&255,h[u+2]=c>>8&255,h[u+3]=255&c;break;case 1:h[u]=255&c,h[u+1]=c>>24&255,h[u+2]=c>>16&255,h[u+3]=c>>8&255;break;case 2:h[u]=c>>8&255,h[u+1]=c>>16&255,h[u+2]=c>>24&255,h[u+3]=255&c}_+=4,u+=4}}e.dirty=!0}},Wb.copyPixels=function(e,t,s,n,i,r,o){null==o&&(o=!1);var a=t.buffer.data,l=e.buffer.data;if(null!=a&&null!=l){var h,_,u,d,c,f,p,b,m=new jb(t,s),g=new jb(e,new Jb(n.x,n.y,m.width,m.height)),w=t.buffer.format,v=e.buffer.format,y=t.buffer.premultiplied,T=e.buffer.premultiplied;if(o&&t.get_transparent())if(null==i)for(var S=0,x=g.height;S>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((u>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((u>>8&255)*sm.unmult)])<<8|255&u),v){case 0:b=(255&l[_])<<24|(255&l[_+1])<<16|(255&l[_+2])<<8|255&l[_+3];break;case 1:b=(255&l[_+1])<<24|(255&l[_+2])<<16|(255&l[_+3])<<8|255&l[_];break;case 2:b=(255&l[_+2])<<24|(255&l[_+1])<<16|(255&l[_])<<8|255&l[_+3]}if(T&&0!=(255&b)&&255!=(255&b)&&(sm.unmult=255/(255&b),b=(255&sm.__clamp[Math.round((b>>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((b>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((b>>8&255)*sm.unmult)])<<8|255&b),0==(p=(d=(255&u)/255)+(c=(255&b)/255)*(f=1-d)))b=0;else b=(255&(b=(255&(b=(255&(b=(255&sm.__clamp[Math.round(((u>>24&255)*d+(b>>24&255)*c*f)/p)])<<24|(255&b>>16)<<16|(255&b>>8)<<8|255&b)>>24)<<24|(255&sm.__clamp[Math.round(((u>>16&255)*d+(b>>16&255)*c*f)/p)])<<16|(255&b>>8)<<8|255&b)>>24)<<24|(255&b>>16)<<16|(255&sm.__clamp[Math.round(((u>>8&255)*d+(b>>8&255)*c*f)/p)])<<8|255&b)>>24)<<24|(255&b>>16)<<16|(255&b>>8)<<8|255&sm.__clamp[Math.round(255*p)];switch(T&&(0==(255&b)?0!=b&&(b=0):255!=(255&b)&&(sm.a16=sm.__alpha16[255&b],b=((b>>24&255)*sm.a16>>16&255)<<24|((b>>16&255)*sm.a16>>16&255)<<16|((b>>8&255)*sm.a16>>16&255)<<8|255&b)),v){case 0:l[_]=b>>24&255,l[_+1]=b>>16&255,l[_+2]=b>>8&255,l[_+3]=255&b;break;case 1:l[_]=255&b,l[_+1]=b>>24&255,l[_+2]=b>>16&255,l[_+3]=b>>8&255;break;case 2:l[_]=b>>8&255,l[_+1]=b>>16&255,l[_+2]=b>>24&255,l[_+3]=255&b}h+=4,_+=4}}else{null==r&&(r=new Qb);for(var A,I,C=i.buffer.data,B=i.buffer.format,D=i.buffer.premultiplied,k=new jb(i,new Jb(r.x,r.y,g.width,g.height)),F=0,M=k.height;F>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((u>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((u>>8&255)*sm.unmult)])<<8|255&u),v){case 0:b=(255&l[_])<<24|(255&l[_+1])<<16|(255&l[_+2])<<8|255&l[_+3];break;case 1:b=(255&l[_+1])<<24|(255&l[_+2])<<16|(255&l[_+3])<<8|255&l[_];break;case 2:b=(255&l[_+2])<<24|(255&l[_+1])<<16|(255&l[_])<<8|255&l[_+3]}switch(T&&0!=(255&b)&&255!=(255&b)&&(sm.unmult=255/(255&b),b=(255&sm.__clamp[Math.round((b>>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((b>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((b>>8&255)*sm.unmult)])<<8|255&b),B){case 0:I=(255&C[A])<<24|(255&C[A+1])<<16|(255&C[A+2])<<8|255&C[A+3];break;case 1:I=(255&C[A+1])<<24|(255&C[A+2])<<16|(255&C[A+3])<<8|255&C[A];break;case 2:I=(255&C[A+2])<<24|(255&C[A+1])<<16|(255&C[A])<<8|255&C[A+3]}if(D&&0!=(255&I)&&255!=(255&I)&&(sm.unmult=255/(255&I),I=(255&sm.__clamp[Math.round((I>>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((I>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((I>>8&255)*sm.unmult)])<<8|255&I),0==(p=(d=(255&I)/255)+(c=(255&b)/255)*(f=1-d)))b=0;else b=(255&(b=(255&(b=(255&(b=(255&sm.__clamp[Math.round(((u>>24&255)*d+(b>>24&255)*c*f)/p)])<<24|(255&b>>16)<<16|(255&b>>8)<<8|255&b)>>24)<<24|(255&sm.__clamp[Math.round(((u>>16&255)*d+(b>>16&255)*c*f)/p)])<<16|(255&b>>8)<<8|255&b)>>24)<<24|(255&b>>16)<<16|(255&sm.__clamp[Math.round(((u>>8&255)*d+(b>>8&255)*c*f)/p)])<<8|255&b)>>24)<<24|(255&b>>16)<<16|(255&b>>8)<<8|255&sm.__clamp[Math.round(255*p)];switch(T&&(0==(255&b)?0!=b&&(b=0):255!=(255&b)&&(sm.a16=sm.__alpha16[255&b],b=((b>>24&255)*sm.a16>>16&255)<<24|((b>>16&255)*sm.a16>>16&255)<<16|((b>>8&255)*sm.a16>>16&255)<<8|255&b)),v){case 0:l[_]=b>>24&255,l[_+1]=b>>16&255,l[_+2]=b>>8&255,l[_+3]=255&b;break;case 1:l[_]=255&b,l[_+1]=b>>24&255,l[_+2]=b>>16&255,l[_+3]=b>>8&255;break;case 2:l[_]=b>>8&255,l[_+1]=b>>16&255,l[_+2]=b>>24&255,l[_+3]=255&b}h+=4,_+=4}}}else for(var U=0,G=g.height;U>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((u>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((u>>8&255)*sm.unmult)])<<8|255&u),T&&(0==(255&u)?0!=u&&(u=0):255!=(255&u)&&(sm.a16=sm.__alpha16[255&u],u=((u>>24&255)*sm.a16>>16&255)<<24|((u>>16&255)*sm.a16>>16&255)<<16|((u>>8&255)*sm.a16>>16&255)<<8|255&u)),v){case 0:l[_]=u>>24&255,l[_+1]=u>>16&255,l[_+2]=u>>8&255,l[_+3]=255&u;break;case 1:l[_]=255&u,l[_+1]=u>>24&255,l[_+2]=u>>16&255,l[_+3]=u>>8&255;break;case 2:l[_]=u>>8&255,l[_+1]=u>>16&255,l[_+2]=u>>24&255,l[_+3]=255&u}h+=4,_+=4}}e.dirty=!0}},Wb.fillRect=function(e,t,s,n){var i;switch(n){case 1:i=(255&s>>16)<<24|(255&s>>8)<<16|(255&s)<<8|255&s>>24;break;case 2:i=(255&s>>8)<<24|(255&s>>16)<<16|(255&s>>24)<<8|255&s;break;default:i=s}e.get_transparent()||(i=(255&i>>24)<<24|(255&i>>16)<<16|(255&i>>8)<<8|255);var r=e.buffer.data;if(null!=r){for(var o,a=e.buffer.format,l=e.buffer.premultiplied,h=new jb(e,t),_=0,u=h.height;_>24&255)*sm.a16>>16&255)<<24|((i>>16&255)*sm.a16>>16&255)<<16|((i>>8&255)*sm.a16>>16&255)<<8|255&i)),a){case 0:r[p]=i>>24&255,r[p+1]=i>>16&255,r[p+2]=i>>8&255,r[p+3]=255&i;break;case 1:r[p]=255&i,r[p+1]=i>>24&255,r[p+2]=i>>16&255,r[p+3]=i>>8&255;break;case 2:r[p]=i>>8&255,r[p+1]=i>>16&255,r[p+2]=i>>24&255,r[p+3]=255&i}}}e.dirty=!0}},Wb.floodFill=function(e,t,s,n,i){var r=e.buffer.data;if(null!=r){1==i&&(n=(16777215&n)<<8|n>>24&255);var o,a=e.buffer.format,l=e.buffer.premultiplied,h=n,_=(s+e.offsetY)*(4*e.buffer.width)+4*(t+e.offsetX);switch(a){case 0:o=(255&r[_])<<24|(255&r[_+1])<<16|(255&r[_+2])<<8|255&r[_+3];break;case 1:o=(255&r[_+1])<<24|(255&r[_+2])<<16|(255&r[_+3])<<8|255&r[_];break;case 2:o=(255&r[_+2])<<24|(255&r[_+1])<<16|(255&r[_])<<8|255&r[_+3]}if(l&&0!=(255&o)&&255!=(255&o)&&(sm.unmult=255/(255&o),o=(255&sm.__clamp[Math.round((o>>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((o>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((o>>8&255)*sm.unmult)])<<8|255&o),e.get_transparent()||(h=(255&h>>24)<<24|(255&h>>16)<<16|(255&h>>8)<<8|255,o=(255&o>>24)<<24|(255&o>>16)<<16|(255&o>>8)<<8|255),h!=o){var u,d,c,f,p,b,m=[0,-1,1,0],g=[-1,0,0,1],w=-e.offsetX,v=-e.offsetY,y=w+e.width,T=v+e.height,S=[];for(S.push(t),S.push(s);0>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((b>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((b>>8&255)*sm.unmult)])<<8|255&b),b==o){switch(l&&(0==(255&h)?0!=h&&(h=0):255!=(255&h)&&(sm.a16=sm.__alpha16[255&h],h=((h>>24&255)*sm.a16>>16&255)<<24|((h>>16&255)*sm.a16>>16&255)<<16|((h>>8&255)*sm.a16>>16&255)<<8|255&h)),a){case 0:r[p]=h>>24&255,r[p+1]=h>>16&255,r[p+2]=h>>8&255,r[p+3]=255&h;break;case 1:r[p]=255&h,r[p+1]=h>>24&255,r[p+2]=h>>16&255,r[p+3]=h>>8&255;break;case 2:r[p]=h>>8&255,r[p+1]=h>>16&255,r[p+2]=h>>24&255,r[p+3]=255&h}S.push(c),S.push(f)}}}}e.dirty=!0}}},Wb.getColorBoundsRect=function(e,t,s,n,i){null==n&&(n=!0);var r,o,a,l,h=e.width+1,_=0,u=e.height+1,d=0;switch(i){case 1:r=(255&s>>16)<<24|(255&s>>8)<<16|(255&s)<<8|255&s>>24;o=(255&t>>16)<<24|(255&t>>8)<<16|(255&t)<<8|255&t>>24;break;case 2:r=(255&s>>8)<<24|(255&s>>16)<<16|(255&s>>24)<<8|255&s;o=(255&t>>8)<<24|(255&t>>16)<<16|(255&t>>24)<<8|255&t;break;default:r=s,o=t}e.get_transparent()||(r=(255&r>>24)<<24|(255&r>>16)<<16|(255&r>>8)<<8|255,o=(255&o>>24)<<24|(255&o>>16)<<16|(255&o>>8)<<8|255);for(var c,f=0,p=e.width;fe.width&&(h=0),u>e.height&&(u=0),new Jb(h,u,U,G)},Wb.getPixel=function(e,t,s,n){var i,r=e.buffer.data,o=4*(s+e.offsetY)*e.buffer.width+4*(t+e.offsetX),a=e.buffer.premultiplied;switch(e.buffer.format){case 0:i=(255&r[o])<<24|(255&r[o+1])<<16|(255&r[o+2])<<8|255&r[o+3];break;case 1:i=(255&r[o+1])<<24|(255&r[o+2])<<16|(255&r[o+3])<<8|255&r[o];break;case 2:i=(255&r[o+2])<<24|(255&r[o+1])<<16|(255&r[o])<<8|255&r[o+3]}switch(a&&0!=(255&i)&&255!=(255&i)&&(sm.unmult=255/(255&i),i=(255&sm.__clamp[Math.round((i>>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((i>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((i>>8&255)*sm.unmult)])<<8|255&i),i=(255&i>>24)<<24|(255&i>>16)<<16|(255&i>>8)<<8|0,n){case 1:return(255&i)<<24|(255&i>>24)<<16|(255&i>>16)<<8|255&i>>8;case 2:return(255&i>>8)<<24|(255&i>>16)<<16|(255&i>>24)<<8|255&i;default:return i}},Wb.getPixel32=function(e,t,s,n){var i,r=e.buffer.data,o=4*(s+e.offsetY)*e.buffer.width+4*(t+e.offsetX),a=e.buffer.premultiplied;switch(e.buffer.format){case 0:i=(255&r[o])<<24|(255&r[o+1])<<16|(255&r[o+2])<<8|255&r[o+3];break;case 1:i=(255&r[o+1])<<24|(255&r[o+2])<<16|(255&r[o+3])<<8|255&r[o];break;case 2:i=(255&r[o+2])<<24|(255&r[o+1])<<16|(255&r[o])<<8|255&r[o+3]}switch(a&&0!=(255&i)&&255!=(255&i)&&(sm.unmult=255/(255&i),i=(255&sm.__clamp[Math.round((i>>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((i>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((i>>8&255)*sm.unmult)])<<8|255&i),n){case 1:return(255&i)<<24|(255&i>>24)<<16|(255&i>>16)<<8|255&i>>8;case 2:return(255&i>>8)<<24|(255&i>>16)<<16|(255&i>>24)<<8|255&i;default:return i}},Wb.getPixels=function(e,t,s){if(null==e.buffer.data)return null;for(var n,i,r=t.width*t.height|0,o=new Lf(new OT(4*r)),a=e.buffer.data,l=e.buffer.format,h=e.buffer.premultiplied,_=new jb(e,t),u=0,d=0,c=_.height;d>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((i>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((i>>8&255)*sm.unmult)])<<8|255&i),s){case 1:i=(255&i)<<24|(255&i>>24)<<16|(255&i>>16)<<8|255&i>>8;break;case 2:i=(255&i>>8)<<24|(255&i>>16)<<16|(255&i>>24)<<8|255&i}o.b[u++]=255&i>>24,o.b[u++]=255&i>>16,o.b[u++]=255&i>>8,o.b[u++]=255&i,n+=4}}return o},Wb.merge=function(e,t,s,n,i,r,o,a){if(null!=e.buffer.data&&null!=t.buffer.data){for(var l,h,_,u,d=new jb(t,s),c=new jb(e,new Jb(n.x,n.y,d.width,d.height)),f=t.buffer.data,p=e.buffer.data,b=t.buffer.format,m=e.buffer.format,g=t.buffer.premultiplied,w=e.buffer.premultiplied,v=0,y=c.height;v>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((_>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((_>>8&255)*sm.unmult)])<<8|255&_),m){case 0:u=(255&p[h])<<24|(255&p[h+1])<<16|(255&p[h+2])<<8|255&p[h+3];break;case 1:u=(255&p[h+1])<<24|(255&p[h+2])<<16|(255&p[h+3])<<8|255&p[h];break;case 2:u=(255&p[h+2])<<24|(255&p[h+1])<<16|(255&p[h])<<8|255&p[h+3]}switch(w&&0!=(255&u)&&255!=(255&u)&&(sm.unmult=255/(255&u),u=(255&sm.__clamp[Math.round((u>>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((u>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((u>>8&255)*sm.unmult)])<<8|255&u),u=(255&(u=(255&(u=(255&(u=(255&(((_>>24&255)*i+(u>>24&255)*(256-i))/256|0))<<24|(255&u>>16)<<16|(255&u>>8)<<8|255&u)>>24)<<24|(255&(((_>>16&255)*r+(u>>16&255)*(256-r))/256|0))<<16|(255&u>>8)<<8|255&u)>>24)<<24|(255&u>>16)<<16|(255&(((_>>8&255)*o+(u>>8&255)*(256-o))/256|0))<<8|255&u)>>24)<<24|(255&u>>16)<<16|(255&u>>8)<<8|255&(((255&_)*a+(255&u)*(256-a))/256|0),w&&(0==(255&u)?0!=u&&(u=0):255!=(255&u)&&(sm.a16=sm.__alpha16[255&u],u=((u>>24&255)*sm.a16>>16&255)<<24|((u>>16&255)*sm.a16>>16&255)<<16|((u>>8&255)*sm.a16>>16&255)<<8|255&u)),m){case 0:p[h]=u>>24&255,p[h+1]=u>>16&255,p[h+2]=u>>8&255,p[h+3]=255&u;break;case 1:p[h]=255&u,p[h+1]=u>>24&255,p[h+2]=u>>16&255,p[h+3]=u>>8&255;break;case 2:p[h]=u>>8&255,p[h+1]=u>>16&255,p[h+2]=u>>24&255,p[h+3]=255&u}l+=4,h+=4}}e.dirty=!0}},Wb.multiplyAlpha=function(e){var t=e.buffer.data;if(null!=t&&e.buffer.transparent){for(var s,n=e.buffer.format,i=0,r=t.length/4|0;i>24&255)*sm.a16>>16&255)<<24|((s>>16&255)*sm.a16>>16&255)<<16|((s>>8&255)*sm.a16>>16&255)<<8|255&s),n){case 0:t[l]=s>>24&255,t[l+1]=s>>16&255,t[l+2]=s>>8&255,t[l+3]=255&s;break;case 1:t[l]=255&s,t[l+1]=s>>24&255,t[l+2]=s>>16&255,t[l+3]=s>>8&255;break;case 2:t[l]=s>>8&255,t[l+1]=s>>16&255,t[l+2]=s>>24&255,t[l+3]=255&s}}e.buffer.premultiplied=!0,e.dirty=!0}},Wb.resize=function(e,t,s){var n=e.buffer;if(n.width!=t||n.height!=s){var i,r=t*s*4;i=null!=r?new zT(r):null;for(var o,a,l,h,_,u,d,c,f,p,b,m,g,w=new Fb(i,t,s),v=e.width,y=e.height,T=e.get_data(),S=w.data,x=0,E=s;x>16)<<24|(255&n>>8)<<16|(255&n)<<8|255&n>>24;break;case 2:r=(255&n>>8)<<24|(255&n>>16)<<16|(255&n>>24)<<8|255&n;break;default:r=n}var o=0,a=e.buffer.data,l=4*(s+e.offsetY)*e.buffer.width+4*(t+e.offsetX),h=e.buffer.premultiplied;switch(e.buffer.format){case 0:o=(255&a[l])<<24|(255&a[l+1])<<16|(255&a[l+2])<<8|255&a[l+3];break;case 1:o=(255&a[l+1])<<24|(255&a[l+2])<<16|(255&a[l+3])<<8|255&a[l];break;case 2:o=(255&a[l+2])<<24|(255&a[l+1])<<16|(255&a[l])<<8|255&a[l+3]}h&&0!=(255&o)&&255!=(255&o)&&(sm.unmult=255/(255&o),o=(255&sm.__clamp[Math.round((o>>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((o>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((o>>8&255)*sm.unmult)])<<8|255&o),r=(255&r>>24)<<24|(255&r>>16)<<16|(255&r>>8)<<8|255&(255&o);var _=e.buffer.data,u=4*(s+e.offsetY)*e.buffer.width+4*(t+e.offsetX);switch(e.buffer.premultiplied&&(0==(255&r)?0!=r&&(r=0):255!=(255&r)&&(sm.a16=sm.__alpha16[255&r],r=((r>>24&255)*sm.a16>>16&255)<<24|((r>>16&255)*sm.a16>>16&255)<<16|((r>>8&255)*sm.a16>>16&255)<<8|255&r)),e.buffer.format){case 0:_[u]=r>>24&255,_[u+1]=r>>16&255,_[u+2]=r>>8&255,_[u+3]=255&r;break;case 1:_[u]=255&r,_[u+1]=r>>24&255,_[u+2]=r>>16&255,_[u+3]=r>>8&255;break;case 2:_[u]=r>>8&255,_[u+1]=r>>16&255,_[u+2]=r>>24&255,_[u+3]=255&r}e.dirty=!0},Wb.setPixel32=function(e,t,s,n,i){var r;switch(i){case 1:r=(255&n>>16)<<24|(255&n>>8)<<16|(255&n)<<8|255&n>>24;break;case 2:r=(255&n>>8)<<24|(255&n>>16)<<16|(255&n>>24)<<8|255&n;break;default:r=n}e.get_transparent()||(r=(255&r>>24)<<24|(255&r>>16)<<16|(255&r>>8)<<8|255);var o=e.buffer.data,a=4*(s+e.offsetY)*e.buffer.width+4*(t+e.offsetX);switch(e.buffer.premultiplied&&(0==(255&r)?0!=r&&(r=0):255!=(255&r)&&(sm.a16=sm.__alpha16[255&r],r=((r>>24&255)*sm.a16>>16&255)<<24|((r>>16&255)*sm.a16>>16&255)<<16|((r>>8&255)*sm.a16>>16&255)<<8|255&r)),e.buffer.format){case 0:o[a]=r>>24&255,o[a+1]=r>>16&255,o[a+2]=r>>8&255,o[a+3]=255&r;break;case 1:o[a]=255&r,o[a+1]=r>>24&255,o[a+2]=r>>16&255,o[a+3]=r>>8&255;break;case 2:o[a]=r>>8&255,o[a+1]=r>>16&255,o[a+2]=r>>24&255,o[a+3]=255&r}e.dirty=!0},Wb.setPixels=function(e,t,s,n){if(null!=e.buffer.data){for(var i,r,o,a=e.buffer.data,l=e.buffer.format,h=e.buffer.premultiplied,_=new jb(e,t),u=e.get_transparent(),d=0,c=0,f=_.height;c>16)<<24|(255&r>>8)<<16|(255&r)<<8|255&r>>24;break;case 2:o=(255&r>>8)<<24|(255&r>>16)<<16|(255&r>>24)<<8|255&r;break;default:o=r}u||(o=(255&o>>24)<<24|(255&o>>16)<<16|(255&o>>8)<<8|255);var w=i+4*g;switch(h&&(0==(255&o)?0!=o&&(o=0):255!=(255&o)&&(sm.a16=sm.__alpha16[255&o],o=((o>>24&255)*sm.a16>>16&255)<<24|((o>>16&255)*sm.a16>>16&255)<<16|((o>>8&255)*sm.a16>>16&255)<<8|255&o)),l){case 0:a[w]=o>>24&255,a[w+1]=o>>16&255,a[w+2]=o>>8&255,a[w+3]=255&o;break;case 1:a[w]=255&o,a[w+1]=o>>24&255,a[w+2]=o>>16&255,a[w+3]=o>>8&255;break;case 2:a[w]=o>>8&255,a[w+1]=o>>16&255,a[w+2]=o>>24&255,a[w+3]=255&o}}}e.dirty=!0}},Wb.threshold=function(e,t,s,n,i,r,o,a,l,h){var _,u,d,c;switch(h){case 1:_=(255&o>>16)<<24|(255&o>>8)<<16|(255&o)<<8|255&o>>24;u=(255&a>>16)<<24|(255&a>>8)<<16|(255&a)<<8|255&a>>24;d=(255&r>>16)<<24|(255&r>>8)<<16|(255&r)<<8|255&r>>24;break;case 2:_=(255&o>>8)<<24|(255&o>>16)<<16|(255&o>>24)<<8|255&o;u=(255&a>>8)<<24|(255&a>>16)<<16|(255&a>>24)<<8|255&a;d=(255&r>>8)<<24|(255&r>>16)<<16|(255&r>>24)<<8|255&r;break;default:_=o,u=a,d=r}switch(i){case"!=":c=0;break;case"<":c=2;break;case"<=":c=3;break;case"==":c=1;break;case">":c=4;break;case">=":c=5;break;default:c=-1}if(-1==c)return 0;var f=t.buffer.data,p=e.buffer.data;if(null==f||null==p)return 0;for(var b,m,g,w,v,y,T=0,S=new jb(t,s),x=new jb(e,new Jb(n.x,n.y,S.width,S.height)),E=t.buffer.format,P=e.buffer.format,R=t.buffer.premultiplied,A=e.buffer.premultiplied,I=0,C=x.height;I>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((g>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((g>>8&255)*sm.unmult)])<<8|255&g),y=(F=(w=g&u)>>24&255)!=(M=d>>24&255)?M>16&255)!=(M=d>>16&255)?M>8&255)!=(M=d>>8&255)?M>24&255)*sm.a16>>16&255)<<24|((_>>16&255)*sm.a16>>16&255)<<16|((_>>8&255)*sm.a16>>16&255)<<8|255&_)),P){case 0:p[m]=_>>24&255,p[m+1]=_>>16&255,p[m+2]=_>>8&255,p[m+3]=255&_;break;case 1:p[m]=255&_,p[m+1]=_>>24&255,p[m+2]=_>>16&255,p[m+3]=_>>8&255;break;case 2:p[m]=_>>8&255,p[m+1]=_>>16&255,p[m+2]=_>>24&255,p[m+3]=255&_}++T}else if(l)switch(A&&(0==(255&g)?0!=g&&(g=0):255!=(255&g)&&(sm.a16=sm.__alpha16[255&g],g=((g>>24&255)*sm.a16>>16&255)<<24|((g>>16&255)*sm.a16>>16&255)<<16|((g>>8&255)*sm.a16>>16&255)<<8|255&g)),P){case 0:p[m]=g>>24&255,p[m+1]=g>>16&255,p[m+2]=g>>8&255,p[m+3]=255&g;break;case 1:p[m]=255&g,p[m+1]=g>>24&255,p[m+2]=g>>16&255,p[m+3]=g>>8&255;break;case 2:p[m]=g>>8&255,p[m+1]=g>>16&255,p[m+2]=g>>24&255,p[m+3]=255&g}b+=4,m+=4}}return 0>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((s>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((s>>8&255)*sm.unmult)])<<8|255&s);var l=4*o;switch(n){case 0:t[l]=s>>24&255,t[l+1]=s>>16&255,t[l+2]=s>>8&255,t[l+3]=255&s;break;case 1:t[l]=255&s,t[l+1]=s>>24&255,t[l+2]=s>>16&255,t[l+3]=s>>8&255;break;case 2:t[l]=s>>8&255,t[l+1]=s>>16&255,t[l+2]=s>>24&255,t[l+3]=255&s}}e.buffer.premultiplied=!1,e.dirty=!0}},Wb.__pixelCompare=function(e,t){var s,n;return(s=e>>24&255)!=(n=t>>24&255)?n>16&255)!=(n=t>>16&255)?n>8&255)!=(n=t>>8&255)?ne.width&&(t.width=e.width-t.x),t.y+t.height>e.height&&(t.height=e.height-t.y),t.width<0&&(t.width=0),t.height<0&&(t.height=0),t),this.stride=e.buffer.get_stride(),this.x=Math.ceil(this.rect.x),this.y=Math.ceil(this.rect.y),this.width=Math.floor(this.rect.width),this.height=Math.floor(this.rect.height),this.offset=this.stride*(this.y+e.offsetY)+4*(this.x+e.offsetX)};(s["lime.graphics.utils._ImageDataUtil.ImageDataView"]=jb).__name__=["lime","graphics","utils","_ImageDataUtil","ImageDataView"],jb.prototype={clip:function(e,t,s,n){this.rect.__contract(e,t,s,n),this.x=Math.ceil(this.rect.x),this.y=Math.ceil(this.rect.y),this.width=Math.floor(this.rect.width),this.height=Math.floor(this.rect.height),this.offset=this.stride*(this.y+this.image.offsetY)+4*(this.x+this.image.offsetX)},row:function(e){return this.offset+this.stride*e},__class__:jb};var Kb={};(s["lime.math._ColorMatrix.ColorMatrix_Impl_"]=Kb).__name__=["lime","math","_ColorMatrix","ColorMatrix_Impl_"],Kb.__properties__={set_redOffset:"set_redOffset",get_redOffset:"get_redOffset",set_redMultiplier:"set_redMultiplier",get_redMultiplier:"get_redMultiplier",set_greenOffset:"set_greenOffset",get_greenOffset:"get_greenOffset",set_greenMultiplier:"set_greenMultiplier",get_greenMultiplier:"get_greenMultiplier",set_color:"set_color",get_color:"get_color",set_blueOffset:"set_blueOffset",get_blueOffset:"get_blueOffset",set_blueMultiplier:"set_blueMultiplier",get_blueMultiplier:"get_blueMultiplier",set_alphaOffset:"set_alphaOffset",get_alphaOffset:"get_alphaOffset",set_alphaMultiplier:"set_alphaMultiplier",get_alphaMultiplier:"get_alphaMultiplier"},Kb._new=function(e){var t;if(null!=e&&20==e.length)t=e;else{var s=Kb.__identity;t=null!=s?new GT(s):null}return t},Kb.clone=function(e){var t;return t=null!=e?new GT(e):null,Kb._new(t)},Kb.concat=function(e,t){e[0]+=t[0],e[6]+=t[6],e[12]+=t[12],e[18]+=t[18]},Kb.copyFrom=function(e,t){e.set(t)},Kb.identity=function(e){e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=0,e[6]=1,e[7]=0,e[8]=0,e[9]=0,e[10]=0,e[11]=0,e[12]=1,e[13]=0,e[14]=0,e[15]=0,e[16]=0,e[17]=0,e[18]=1,e[19]=0},Kb.getAlphaTable=function(e){for(var t,s=new zT(256),n=e[18],i=255*e[19],r=0;r<256;){var o=r++;255<(t=Math.floor(o*n+i))&&(t=255),t<0&&(t=0),s[o]=t}return s},Kb.getBlueTable=function(e){for(var t,s=new zT(256),n=e[12],i=255*e[14],r=0;r<256;){var o=r++;255<(t=Math.floor(o*n+i))&&(t=255),t<0&&(t=0),s[o]=t}return s},Kb.getGreenTable=function(e){for(var t,s=new zT(256),n=e[6],i=255*e[9],r=0;r<256;){var o=r++;255<(t=Math.floor(o*n+i))&&(t=255),t<0&&(t=0),s[o]=t}return s},Kb.getRedTable=function(e){for(var t,s=new zT(256),n=e[0],i=255*e[4],r=0;r<256;){var o=r++;255<(t=Math.floor(o*n+i))&&(t=255),t<0&&(t=0),s[o]=t}return s},Kb.__toFlashColorTransform=function(e){return null},Kb.get_alphaMultiplier=function(e){return e[18]},Kb.set_alphaMultiplier=function(e,t){return e[18]=t},Kb.get_alphaOffset=function(e){return 255*e[19]},Kb.set_alphaOffset=function(e,t){return e[19]=t/255},Kb.get_blueMultiplier=function(e){return e[12]},Kb.set_blueMultiplier=function(e,t){return e[12]=t},Kb.get_blueOffset=function(e){return 255*e[14]},Kb.set_blueOffset=function(e,t){return e[14]=t/255},Kb.get_color=function(e){return(255*e[4]|0)<<16|(255*e[9]|0)<<8|255*e[14]|0},Kb.set_color=function(e,t){return e[4]=(t>>16&255)/255,e[9]=(t>>8&255)/255,e[14]=(255&t)/255,e[0]=0,e[6]=0,e[12]=0,Kb.get_color(e)},Kb.get_greenMultiplier=function(e){return e[6]},Kb.set_greenMultiplier=function(e,t){return e[6]=t},Kb.get_greenOffset=function(e){return 255*e[9]},Kb.set_greenOffset=function(e,t){return e[9]=t/255},Kb.get_redMultiplier=function(e){return e[0]},Kb.set_redMultiplier=function(e,t){return e[0]=t},Kb.get_redOffset=function(e){return 255*e[4]},Kb.set_redOffset=function(e,t){return e[4]=t/255},Kb.get=function(e,t){return e[t]},Kb.set=function(e,t,s){return e[t]=s};var qb=function(e,t,s,n,i,r){null==r&&(r=0),null==i&&(i=0),null==n&&(n=1),null==s&&(s=0),null==t&&(t=0),null==e&&(e=1),this.a=e,this.b=t,this.c=s,this.d=n,this.tx=i,this.ty=r};(s["lime.math.Matrix3"]=qb).__name__=["lime","math","Matrix3"],qb.prototype={clone:function(){return new qb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(e){var t=this.a*e.a+this.b*e.c;this.b=this.a*e.b+this.b*e.d,this.a=t;var s=this.c*e.a+this.d*e.c;this.d=this.c*e.b+this.d*e.d,this.c=s;var n=this.tx*e.a+this.ty*e.c+e.tx;this.ty=this.tx*e.b+this.ty*e.d+e.ty,this.tx=n},copyColumnFrom:function(e,t){if(2=this.x&&t>=this.y&&ethis.x&&e.y>this.y&&e.get_right()=this.x&&e.y>=this.y&&e.get_right()<=this.get_right()&&e.get_bottom()<=this.get_bottom()},copyFrom:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},equals:function(e){return null!=e&&this.x==e.x&&this.y==e.y&&this.width==e.width&&this.height==e.height},inflate:function(e,t){this.x-=e,this.width+=2*e,this.y-=t,this.height+=2*t},inflatePoint:function(e){this.inflate(e.x,e.y)},intersection:function(e){var t=this.xe.get_right()?e.get_right():this.get_right();if(s<=t)return new Jb;var n=this.ye.get_bottom()?e.get_bottom():this.get_bottom();return i<=n?new Jb:new Jb(t,n,s-t,i-n)},intersects:function(e){var t=this.xe.get_right()?e.get_right():this.get_right())<=t)&&(this.ye.get_bottom()?e.get_bottom():this.get_bottom())},isEmpty:function(){return this.width<=0||this.height<=0},offset:function(e,t){this.x+=e,this.y+=t},offsetPoint:function(e){this.x+=e.x,this.y+=e.y},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(e,t,s,n){this.x=e,this.y=t,this.width=s,this.height=n},transform:function(e){var t=e.a*this.x+e.c*this.y,s=t,n=e.b*this.x+e.d*this.y,i=n,r=e.a*(this.x+this.width)+e.c*this.y,o=e.b*(this.x+this.width)+e.d*this.y;return re.x?e.x:this.x,s=this.get_right()e.y?e.y:this.y,i=this.get_bottom()e+s&&(this.width=e+s-this.x),this.get_bottom()>t+n&&(this.height=t+n-this.y))},__expand:function(e,t,s,n){if(0==this.width&&0==this.height)return this.x=e,this.y=t,this.width=s,void(this.height=n);var i=this.get_right(),r=this.get_bottom();this.x>e&&(this.x=e),this.y>t&&(this.y=t),i>24&255)?e=0:255!=(e>>24&255)&&(em.a16=sm.__alpha16[e>>24&255],e=(255&e>>24)<<24|((e>>16&255)*em.a16>>16&255)<<16|((e>>8&255)*em.a16>>16&255)<<8|(255&e)*em.a16>>16&255)},em.readUInt8=function(e,t,s,n,i){switch(null==i&&(i=!1),null==n&&(n=0),n){case 0:e=(255&t[s+1])<<24|(255&t[s+2])<<16|(255&t[s+3])<<8|255&t[s];break;case 1:e=(255&t[s+2])<<24|(255&t[s+3])<<16|(255&t[s])<<8|255&t[s+1];break;case 2:e=(255&t[s+1])<<24|(255&t[s])<<16|(255&t[s+3])<<8|255&t[s+2]}i&&0!=(e>>24&255)&&255!=(e>>24&255)&&(em.unmult=255/(e>>24&255),e=(255&e>>24)<<24|(255&sm.__clamp[Math.floor((e>>16&255)*em.unmult)])<<16|(255&sm.__clamp[Math.floor((e>>8&255)*em.unmult)])<<8|255&sm.__clamp[Math.floor((255&e)*em.unmult)])},em.set=function(e,t,s,n,i){(255&t)<<24|(255&s)<<16|(255&n)<<8|255&i},em.unmultiplyAlpha=function(e){0!=(e>>24&255)&&255!=(e>>24&255)&&(em.unmult=255/(e>>24&255),e=(255&e>>24)<<24|(255&sm.__clamp[Math.floor((e>>16&255)*em.unmult)])<<16|(255&sm.__clamp[Math.floor((e>>8&255)*em.unmult)])<<8|255&sm.__clamp[Math.floor((255&e)*em.unmult)])},em.writeUInt8=function(e,t,s,n,i){switch(null==i&&(i=!1),null==n&&(n=0),i&&(0==(e>>24&255)?e=0:255!=(e>>24&255)&&(em.a16=sm.__alpha16[e>>24&255],e=(255&e>>24)<<24|((e>>16&255)*em.a16>>16&255)<<16|((e>>8&255)*em.a16>>16&255)<<8|(255&e)*em.a16>>16&255)),n){case 0:t[s]=e>>16&255,t[s+1]=e>>8&255,t[s+2]=255&e,t[s+3]=e>>24&255;break;case 1:t[s]=e>>24&255,t[s+1]=e>>16&255,t[s+2]=e>>8&255,t[s+3]=255&e;break;case 2:t[s]=255&e,t[s+1]=e>>8&255,t[s+2]=e>>16&255,t[s+3]=e>>24&255}},em.__fromBGRA=function(e){return(255&e)<<24|(255&e>>8)<<16|(255&e>>16)<<8|255&e>>24},em.__fromRGBA=function(e){return(255&e)<<24|(255&e>>24)<<16|(255&e>>16)<<8|255&e>>8},em.get_a=function(e){return e>>24&255},em.set_a=function(e,t){return e=(255&t)<<24|(255&e>>16)<<16|(255&e>>8)<<8|255&e,t},em.get_b=function(e){return 255&e},em.set_b=function(e,t){return e=(255&e>>24)<<24|(255&e>>16)<<16|(255&e>>8)<<8|255&t,t},em.get_g=function(e){return e>>8&255},em.set_g=function(e,t){return e=(255&e>>24)<<24|(255&e>>16)<<16|(255&t)<<8|255&e,t},em.get_r=function(e){return e>>16&255},em.set_r=function(e,t){return e=(255&e>>24)<<24|(255&t)<<16|(255&e>>8)<<8|255&e,t};var tm={};(s["lime.math.color._BGRA.BGRA_Impl_"]=tm).__name__=["lime","math","color","_BGRA","BGRA_Impl_"],tm.__properties__={set_r:"set_r",get_r:"get_r",set_g:"set_g",get_g:"get_g",set_b:"set_b",get_b:"get_b",set_a:"set_a",get_a:"get_a"},tm.a16=null,tm.unmult=null,tm._new=function(e){return null==e&&(e=0),e},tm.create=function(e,t,s,n){return(255&e)<<24|(255&t)<<16|(255&s)<<8|255&n},tm.multiplyAlpha=function(e){0==(255&e)?e=0:255!=(255&e)&&(tm.a16=sm.__alpha16[255&e],e=((e>>24&255)*tm.a16>>16&255)<<24|((e>>16&255)*tm.a16>>16&255)<<16|((e>>8&255)*tm.a16>>16&255)<<8|255&e)},tm.readUInt8=function(e,t,s,n,i){switch(null==i&&(i=!1),null==n&&(n=0),n){case 0:e=(255&t[s+2])<<24|(255&t[s+1])<<16|(255&t[s])<<8|255&t[s+3];break;case 1:e=(255&t[s+3])<<24|(255&t[s+2])<<16|(255&t[s+1])<<8|255&t[s];break;case 2:e=(255&t[s])<<24|(255&t[s+1])<<16|(255&t[s+2])<<8|255&t[s+3]}i&&0!=(255&e)&&255!=(255&e)&&(tm.unmult=255/(255&e),e=(255&sm.__clamp[Math.floor((e>>24&255)*tm.unmult)])<<24|(255&sm.__clamp[Math.floor((e>>16&255)*tm.unmult)])<<16|(255&sm.__clamp[Math.floor((e>>8&255)*tm.unmult)])<<8|255&e)},tm.set=function(e,t,s,n,i){(255&t)<<24|(255&s)<<16|(255&n)<<8|255&i},tm.unmultiplyAlpha=function(e){0!=(255&e)&&255!=(255&e)&&(tm.unmult=255/(255&e),e=(255&sm.__clamp[Math.floor((e>>24&255)*tm.unmult)])<<24|(255&sm.__clamp[Math.floor((e>>16&255)*tm.unmult)])<<16|(255&sm.__clamp[Math.floor((e>>8&255)*tm.unmult)])<<8|255&e)},tm.writeUInt8=function(e,t,s,n,i){switch(null==i&&(i=!1),null==n&&(n=0),i&&(0==(255&e)?e=0:255!=(255&e)&&(tm.a16=sm.__alpha16[255&e],e=((e>>24&255)*tm.a16>>16&255)<<24|((e>>16&255)*tm.a16>>16&255)<<16|((e>>8&255)*tm.a16>>16&255)<<8|255&e)),n){case 0:t[s]=e>>8&255,t[s+1]=e>>16&255,t[s+2]=e>>24&255,t[s+3]=255&e;break;case 1:t[s]=255&e,t[s+1]=e>>8&255,t[s+2]=e>>16&255,t[s+3]=e>>24&255;break;case 2:t[s]=e>>24&255,t[s+1]=e>>16&255,t[s+2]=e>>8&255,t[s+3]=255&e}},tm.__fromARGB=function(e){return(255&e)<<24|(255&e>>8)<<16|(255&e>>16)<<8|255&e>>24},tm.__fromRGBA=function(e){return(255&e>>8)<<24|(255&e>>16)<<16|(255&e>>24)<<8|255&e},tm.get_a=function(e){return 255&e},tm.set_a=function(e,t){return e=(255&e>>24)<<24|(255&e>>16)<<16|(255&e>>8)<<8|255&t,t},tm.get_b=function(e){return e>>24&255},tm.set_b=function(e,t){return e=(255&t)<<24|(255&e>>16)<<16|(255&e>>8)<<8|255&e,t},tm.get_g=function(e){return e>>16&255},tm.set_g=function(e,t){return e=(255&e>>24)<<24|(255&t)<<16|(255&e>>8)<<8|255&e,t},tm.get_r=function(e){return e>>8&255},tm.set_r=function(e,t){return e=(255&e>>24)<<24|(255&e>>16)<<16|(255&t)<<8|255&e,t};var sm={};(s["lime.math.color._RGBA.RGBA_Impl_"]=sm).__name__=["lime","math","color","_RGBA","RGBA_Impl_"],sm.__properties__={set_r:"set_r",get_r:"get_r",set_g:"set_g",get_g:"get_g",set_b:"set_b",get_b:"get_b",set_a:"set_a",get_a:"get_a"},sm.__alpha16=null,sm.__clamp=null,sm.a16=null,sm.unmult=null,sm._new=function(e){return null==e&&(e=0),e},sm.create=function(e,t,s,n){return(255&e)<<24|(255&t)<<16|(255&s)<<8|255&n},sm.multiplyAlpha=function(e){0==(255&e)?0!=e&&(e=0):255!=(255&e)&&(sm.a16=sm.__alpha16[255&e],e=((e>>24&255)*sm.a16>>16&255)<<24|((e>>16&255)*sm.a16>>16&255)<<16|((e>>8&255)*sm.a16>>16&255)<<8|255&e)},sm.readUInt8=function(e,t,s,n,i){switch(null==i&&(i=!1),null==n&&(n=0),n){case 0:e=(255&t[s])<<24|(255&t[s+1])<<16|(255&t[s+2])<<8|255&t[s+3];break;case 1:e=(255&t[s+1])<<24|(255&t[s+2])<<16|(255&t[s+3])<<8|255&t[s];break;case 2:e=(255&t[s+2])<<24|(255&t[s+1])<<16|(255&t[s])<<8|255&t[s+3]}i&&0!=(255&e)&&255!=(255&e)&&(sm.unmult=255/(255&e),e=(255&sm.__clamp[Math.round((e>>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((e>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((e>>8&255)*sm.unmult)])<<8|255&e)},sm.set=function(e,t,s,n,i){(255&t)<<24|(255&s)<<16|(255&n)<<8|255&i},sm.unmultiplyAlpha=function(e){0!=(255&e)&&255!=(255&e)&&(sm.unmult=255/(255&e),e=(255&sm.__clamp[Math.round((e>>24&255)*sm.unmult)])<<24|(255&sm.__clamp[Math.round((e>>16&255)*sm.unmult)])<<16|(255&sm.__clamp[Math.round((e>>8&255)*sm.unmult)])<<8|255&e)},sm.writeUInt8=function(e,t,s,n,i){switch(null==i&&(i=!1),null==n&&(n=0),i&&(0==(255&e)?0!=e&&(e=0):255!=(255&e)&&(sm.a16=sm.__alpha16[255&e],e=((e>>24&255)*sm.a16>>16&255)<<24|((e>>16&255)*sm.a16>>16&255)<<16|((e>>8&255)*sm.a16>>16&255)<<8|255&e)),n){case 0:t[s]=e>>24&255,t[s+1]=e>>16&255,t[s+2]=e>>8&255,t[s+3]=255&e;break;case 1:t[s]=255&e,t[s+1]=e>>24&255,t[s+2]=e>>16&255,t[s+3]=e>>8&255;break;case 2:t[s]=e>>8&255,t[s+1]=e>>16&255,t[s+2]=e>>24&255,t[s+3]=255&e}},sm.__fromARGB=function(e){return(255&e>>16)<<24|(255&e>>8)<<16|(255&e)<<8|255&e>>24},sm.__fromBGRA=function(e){return(255&e>>8)<<24|(255&e>>16)<<16|(255&e>>24)<<8|255&e},sm.get_a=function(e){return 255&e},sm.set_a=function(e,t){return e=(255&e>>24)<<24|(255&e>>16)<<16|(255&e>>8)<<8|255&t,t},sm.get_b=function(e){return e>>8&255},sm.set_b=function(e,t){return e=(255&e>>24)<<24|(255&e>>16)<<16|(255&t)<<8|255&e,t},sm.get_g=function(e){return e>>16&255},sm.set_g=function(e,t){return e=(255&e>>24)<<24|(255&t)<<16|(255&e>>8)<<8|255&e,t},sm.get_r=function(e){return e>>24&255},sm.set_r=function(e,t){return e=(255&t)<<24|(255&e>>16)<<16|(255&e>>8)<<8|255&e,t};var nm=function(){this.responseType="arraybuffer",this.response={bytes:null,text:null},this.promise=new gb};(s["lime.net.HTTPRequest"]=nm).__name__=["lime","net","HTTPRequest"],nm.prototype={load:function(e){var t=this;this.bytesLoaded=0,this.bytesTotal=0;var s=new XMLHttpRequest;return s.addEventListener("progress",CT(this,this.request_onProgress),!1),s.onreadystatechange=function(){4==s.readyState&&(null!=s.status&&200<=s.status&&s.status<=400?("arraybuffer"==s.responseType?t.response.bytes=Mm.ofData(s.response):t.response.text=s.response,t.promise.complete(t.response)):t.promise.error(s.responseURL))},s.open("GET",e,!0),s.responseType=this.responseType,s.send(""),this.promise.future},curl_onProgress:function(e,t,s,n){return(n>this.bytesLoaded||t>this.bytesLoaded||s>this.bytesTotal||e>this.bytesTotal)&&(n>this.bytesLoaded&&(this.bytesLoaded=0|n),t>this.bytesLoaded&&(this.bytesLoaded=0|t),s>this.bytesTotal&&(this.bytesTotal=0|s),e>this.bytesTotal&&(this.bytesTotal=0|e),this.promise.progress(this.bytesLoaded/this.bytesTotal)),0},curl_onWrite:function(e,t,s){var n=this.response.bytes;return this.response.bytes=Mm.alloc(this.response.bytes.length+e.length),this.response.bytes.blit(0,n,0,n.length),this.response.bytes.blit(n.length,e,0,e.length),t*s},request_onProgress:function(e){this.promise.progress(e.loaded/e.total)},__class__:nm};var im={};(s["lime.net.curl._CURL.CURL_Impl_"]=im).__name__=["lime","net","curl","_CURL","CURL_Impl_"],im.getDate=function(e,t){return 0},im.globalCleanup=function(){},im.globalInit=function(e){return 0},im.version=function(){return null},im.versionInfo=function(e){return null},im.intGt=function(e,t){return tt},lm.greaterThanPointer=function(e,t){return lm.get(e)>lm.get(t)},lm.greaterThanOrEqual=function(e,t){return lm.get(e)>=t},lm.greaterThanOrEqualPointer=function(e,t){return lm.get(e)>=lm.get(t)},lm.lessThan=function(e,t){return lm.get(e)>16&255,this.greenOffset=e>>8&255,this.blueOffset=255&e,this.redMultiplier=0,this.greenMultiplier=0,this.blueMultiplier=0,this.get_color()},__toLimeColorMatrix:function(){var e=[this.redMultiplier,0,0,0,this.redOffset/255,0,this.greenMultiplier,0,0,this.greenOffset/255,0,0,this.blueMultiplier,0,this.blueOffset/255,0,0,0,this.alphaMultiplier,this.alphaOffset/255];return null!=e?new GT(e):null},getCLID:function(){return jm.__clid},serialize:function(e){e.out.addInt32(bp.floatToI32(this.alphaMultiplier)),e.out.addInt32(bp.floatToI32(this.alphaOffset)),e.out.addInt32(bp.floatToI32(this.blueMultiplier)),e.out.addInt32(bp.floatToI32(this.blueOffset)),e.out.addInt32(bp.floatToI32(this.greenMultiplier)),e.out.addInt32(bp.floatToI32(this.greenOffset)),e.out.addInt32(bp.floatToI32(this.redMultiplier)),e.out.addInt32(bp.floatToI32(this.redOffset))},getSerializeSchema:function(){var e=new Cp;return e.fieldsNames.push("alphaMultiplier"),e.fieldsTypes.push(Ap.PFloat),e.fieldsNames.push("alphaOffset"),e.fieldsTypes.push(Ap.PFloat),e.fieldsNames.push("blueMultiplier"),e.fieldsTypes.push(Ap.PFloat),e.fieldsNames.push("blueOffset"),e.fieldsTypes.push(Ap.PFloat),e.fieldsNames.push("greenMultiplier"),e.fieldsTypes.push(Ap.PFloat),e.fieldsNames.push("greenOffset"),e.fieldsTypes.push(Ap.PFloat),e.fieldsNames.push("redMultiplier"),e.fieldsTypes.push(Ap.PFloat),e.fieldsNames.push("redOffset"),e.fieldsTypes.push(Ap.PFloat),e.isFinal=mr.isClassFinal(jm.__clid),e},unserializeInit:function(){},unserialize:function(e){var t=e.input.getFloat(e.inPos);e.inPos+=4,this.alphaMultiplier=t;var s=e.input.getFloat(e.inPos);e.inPos+=4,this.alphaOffset=s;var n=e.input.getFloat(e.inPos);e.inPos+=4,this.blueMultiplier=n;var i=e.input.getFloat(e.inPos);e.inPos+=4,this.blueOffset=i;var r=e.input.getFloat(e.inPos);e.inPos+=4,this.greenMultiplier=r;var o=e.input.getFloat(e.inPos);e.inPos+=4,this.greenOffset=o;var a=e.input.getFloat(e.inPos);e.inPos+=4,this.redMultiplier=a;var l=e.input.getFloat(e.inPos);e.inPos+=4,this.redOffset=l},__class__:jm,__properties__:{set_color:"set_color",get_color:"get_color"}};var Km=function(e,t,s,n,i,r){null==r&&(r=0),null==i&&(i=0),null==n&&(n=1),null==s&&(s=0),null==t&&(t=0),null==e&&(e=1),this.__uid=mr.SEQ<<24|++mr.UID,this.a=e,this.b=t,this.c=s,this.d=n,this.tx=i,this.ty=r};(s["openfl.geom.Matrix"]=Km).__name__=["openfl","geom","Matrix"],Km.__interfaces__=[br],Km.prototype={clone:function(){return new Km(this.a,this.b,this.c,this.d,this.tx,this.ty)},preTransform:function(e){this.tx=e.tx*this.a+e.ty*this.c+this.tx,this.ty=e.tx*this.b+e.ty*this.d+this.ty;var t=e.a*this.a+e.b*this.c;this.c=e.c*this.a+e.d*this.c,this.a=t;var s=e.a*this.b+e.b*this.d;this.d=e.c*this.b+e.d*this.d,this.b=s},concat:function(e){var t=this.a*e.a+this.b*e.c;this.b=this.a*e.b+this.b*e.d,this.a=t;var s=this.c*e.a+this.d*e.c;this.d=this.c*e.b+this.d*e.d,this.c=s;var n=this.tx*e.a+this.ty*e.c+e.tx;this.ty=this.tx*e.b+this.ty*e.d+e.ty,this.tx=n},copyColumnFrom:function(e,t){if(2e.length&&(s=e.length);var n=s-t;(n<=0||n>e.length)&&(n=e.length);var i=new ha;i.length=s-t,i.fixed=!0;var r=new Array(n);return i.data=r,dp.blit(e.data,t,i.data,0,n),i},Jm.sort=function(e,t){var s=e.data.slice(0);s.sort(t),e.data=s.slice(0)},Jm.splice=function(e,t,s){t<0&&(t+=e.length),t+s>e.length&&(s=e.length-t),s<0&&(s=0);var n=new ha;n.length=s,n.fixed=!1;var i=new Array(s);return n.data=i,dp.blit(e.data,t,n.data,0,s),0=e.length&&(e.length=t+1),e.data.lengthe.length){var s=new Array(t);dp.blit(e.data,0,s,0,0|Math.min(e.data.length,t)),e.data=s}e.length=t}return t},Jm.get_fixed=function(e){return e.fixed},Jm.set_fixed=function(e,t){return e.fixed=t};var Qm=function(e){this.index=0,this.vectorData=e};(s["openfl.VectorDataIterator"]=Qm).__name__=["openfl","VectorDataIterator"],Qm.prototype={hasNext:function(){return this.index=n._length?null:n._items[s];switch(++s,i){case 0:t.advance(),t.prev=0;var r=t,o=r.buffer.bd,a=r.bdPos,l=r.buffer.m,h=r.mPos,_=r.buffer.b,u=r.bPos,d=r.buffer.b,c=r.bPos+1;this.beginBitmapFill(a>=o._length?null:o._items[a],h>=l._length?null:l._items[h],u>=_._length?null:_._items[u],c>=d._length?null:d._items[c]);break;case 1:t.advance(),t.prev=1;var f=t,p=f.buffer.i,b=f.iPos;this.beginFill(b>=p._length?null:p._items[b],f.buffer.clampedFloats[f.cfPos]/255);break;case 2:t.advance(),t.prev=2;var m=t,g=m.buffer.i,w=m.iPos,v=m.buffer.ii,y=m.iiPos,T=m.buffer.ff,S=m.ffPos,x=m.buffer.ii,E=m.iiPos+1,P=m.buffer.m,R=m.mPos,A=m.buffer.i,I=m.iPos+1,C=m.buffer.i,B=m.iPos+2;this.beginGradientFill(w>=g._length?null:g._items[w],y>=v._length?null:v._items[y],S>=T._length?null:T._items[S],E>=x._length?null:x._items[E],R>=P._length?null:P._items[R],I>=A._length?null:A._items[I],B>=C._length?null:C._items[B],m.buffer.twips[m.fPos]/20);break;case 3:t.advance(),t.prev=3;var D=t;this.cubicCurveTo(D.buffer.twips[D.fPos]/20,D.buffer.twips[D.fPos+1]/20,D.buffer.twips[D.fPos+2]/20,D.buffer.twips[D.fPos+3]/20,D.buffer.twips[D.fPos+4]/20,D.buffer.twips[D.fPos+5]/20);break;case 4:t.advance(),t.prev=4;var k=t;this.curveTo(k.buffer.twips[k.fPos]/20,k.buffer.twips[k.fPos+1]/20,k.buffer.twips[k.fPos+2]/20,k.buffer.twips[k.fPos+3]/20);break;case 5:t.advance(),t.prev=5;var F=t;this.drawCircle(F.buffer.twips[F.fPos]/20,F.buffer.twips[F.fPos+1]/20,F.buffer.twips[F.fPos+2]/20);break;case 6:t.advance(),t.prev=6;var M=t;this.drawArc(M.buffer.twips[M.fPos]/20,M.buffer.twips[M.fPos+1]/20,M.buffer.twips[M.fPos+2]/20,M.buffer.twips[M.fPos+3]/20,M.buffer.twips[M.fPos+4]/20);break;case 7:t.advance(),t.prev=7;var L=t;this.drawEllipse(L.buffer.twips[L.fPos]/20,L.buffer.twips[L.fPos+1]/20,L.buffer.twips[L.fPos+2]/20,L.buffer.twips[L.fPos+3]/20);break;case 8:t.advance(),t.prev=8;var N=t,O=N.buffer.bd,U=N.bdPos,G=N.buffer.m,z=N.mPos,X=N.buffer.b,H=N.bPos;this.drawImage(U>=O._length?null:O._items[U],z>=G._length?null:G._items[z],H>=X._length?null:X._items[H]);break;case 9:t.advance(),t.prev=9;var V=t,Y=V.buffer.vi,W=V.viPos,j=V.buffer.vf,K=V.vfPos,q=V.buffer.i,Z=V.iPos;this.drawPath(W>=Y._length?null:Y._items[W],K>=j._length?null:j._items[K],Z>=q._length?null:q._items[Z]);break;case 10:t.advance(),t.prev=10;var J=t;this.drawRect(J.buffer.twips[J.fPos]/20,J.buffer.twips[J.fPos+1]/20,J.buffer.twips[J.fPos+2]/20,J.buffer.twips[J.fPos+3]/20);break;case 11:t.advance(),t.prev=11;var Q=t;this.drawRoundRect(Q.buffer.twips[Q.fPos]/20,Q.buffer.twips[Q.fPos+1]/20,Q.buffer.twips[Q.fPos+2]/20,Q.buffer.twips[Q.fPos+3]/20,Q.buffer.twips[Q.fPos+4]/20,Q.buffer.twips[Q.fPos+5]/20);break;case 13:t.advance(),t.prev=13;var $=t,ee=$.buffer.vf,te=$.vfPos,se=$.buffer.vi,ne=$.viPos+1,ie=$.buffer.vf,re=$.vfPos+2,oe=$.buffer.i,ae=$.iPos+3;this.drawTriangles(te>=ee._length?null:ee._items[te],ne>=se._length?null:se._items[ne],re>=ie._length?null:ie._items[re],ae>=oe._length?null:oe._items[ae]);break;case 14:t.advance(),t.prev=14;this.endFill();break;case 15:t.advance(),t.prev=15;var le=t,he=le.buffer.bd,_e=le.bdPos,ue=le.buffer.m,de=le.mPos,ce=le.buffer.b,fe=le.bPos,pe=le.buffer.b,be=le.bPos+1;this.lineBitmapStyle(_e>=he._length?null:he._items[_e],de>=ue._length?null:ue._items[de],fe>=ce._length?null:ce._items[fe],be>=pe._length?null:pe._items[be]);break;case 16:t.advance(),t.prev=16;var me=t,ge=me.buffer.i,we=me.iPos,ve=me.buffer.ii,ye=me.iiPos,Te=me.buffer.ff,Se=me.ffPos,xe=me.buffer.ii,Ee=me.iiPos+1,Pe=me.buffer.m,Re=me.mPos,Ae=me.buffer.i,Ie=me.iPos+1,Ce=me.buffer.i,Be=me.iPos+2;this.lineGradientStyle(we>=ge._length?null:ge._items[we],ye>=ve._length?null:ve._items[ye],Se>=Te._length?null:Te._items[Se],Ee>=xe._length?null:xe._items[Ee],Re>=Pe._length?null:Pe._items[Re],Ie>=Ae._length?null:Ae._items[Ie],Be>=Ce._length?null:Ce._items[Be],me.buffer.twips[me.fPos]/20);break;case 17:t.advance(),t.prev=17;var De=t,ke=De.buffer.i,Fe=De.iPos,Me=De.buffer.b,Le=De.bPos,Ne=De.buffer.i,Oe=De.iPos+1,Ue=De.buffer.i,Ge=De.iPos+2,ze=De.buffer.i,Xe=De.iPos+3;this.lineStyle(De.buffer.twips[De.fPos]/20,Fe>=ke._length?null:ke._items[Fe],De.buffer.clampedFloats[De.cfPos]/255,Le>=Me._length?null:Me._items[Le],Oe>=Ne._length?null:Ne._items[Oe],Ge>=Ue._length?null:Ue._items[Ge],Xe>=ze._length?null:ze._items[Xe],De.buffer.twips[De.fPos+1]/20);break;case 18:t.advance(),t.prev=18;var He=t;this.lineTo(He.buffer.twips[He.fPos]/20,He.buffer.twips[He.fPos+1]/20);break;case 19:t.advance(),t.prev=19;var Ve=t;this.moveTo(Ve.buffer.twips[Ve.fPos]/20,Ve.buffer.twips[Ve.fPos+1]/20);break;case 20:t.advance(),t.prev=20;var Ye=t,We=Ye.buffer.m,je=Ye.mPos;this.overrideMatrix(je>=We._length?null:We._items[je])}}return t.destroy(),e},beginBitmapFill:function(e,t,s,n){var i=this.types;i._items[i._length++]=0;var r=this.bd;r._items[r._length++]=e;var o=this.m;o._items[o._length++]=t;var a=this.b;a._items[a._length++]=s;var l=this.b;l._items[l._length++]=n},beginBitmapFillWithId:function(e,t,s,n){var i=this.types;i._items[i._length++]=0;var r=this.bd_ids;r._items[r._length++]=e;var o=this.m;o._items[o._length++]=t;var a=this.b;a._items[a._length++]=s;var l=this.b;l._items[l._length++]=n},beginFill:function(e,t){var s=this.types;s._items[s._length++]=1;var n=this.i;n._items[n._length++]=e;var i=this.cf;i._items[i._length++]=255*t|0},beginGradientFill:function(e,t,s,n,i,r,o,a){var l=this.types;l._items[l._length++]=2;var h=this.i;h._items[h._length++]=e;var _=this.ii;_._items[_._length++]=t;var u=this.ff;u._items[u._length++]=s;var d=this.ii;d._items[d._length++]=n;var c=this.m;c._items[c._length++]=i;var f=this.i;f._items[f._length++]=r;var p=this.i;p._items[p._length++]=o;var b=this.t;b._items[b._length++]=20*a|0},clear:function(){for(var e=this.types,t=0,s=e._length;t=o._length?null:o._items[r])}else i=!1;if(i){var a=this.bd,l=this.bd_ids,h=Wm.getBitmapData(tg.bitmapOverride.h[r>=l._length?null:l._items[r]]);a._items[a._length++]=h}else{var _=this.bd_ids,u=e.symbols.h[r>=_._length?null:_._items[r]];if(null!=u){var d=this.bd,c=sw.getFromSymbol(u);d._items[d._length++]=c}else{var f=this.bd;f._items[f._length++]=null}}}},validate:function(){null==this.drawCommandTypes&&(this.drawCommandTypes=vp.fromArray(this.types._items),this.clampedFloats=vp.fromArray(this.cf._items),this.twips=mp.fromArray(this.t._items))},needsHighPrecision:function(){for(var e=0,t=this.twips.length;e=t._length?null:t._items[s]},fArr:function(e){var t=this.buffer.ff,s=this.ffPos+e;return s>=t._length?null:t._items[s]},float:function(e){return this.buffer.twips[this.fPos+e]/20},clampedFloat:function(e){return this.buffer.clampedFloats[this.cfPos+e]/255},iArr:function(e){var t=this.buffer.ii,s=this.iiPos+e;return s>=t._length?null:t._items[s]},int:function(e){var t=this.buffer.i,s=this.iPos+e;return s>=t._length?null:t._items[s]},matrix:function(e){var t=this.buffer.m,s=this.mPos+e;return s>=t._length?null:t._items[s]},iVec:function(e){var t=this.buffer.vi,s=this.viPos+e;return s>=t._length?null:t._items[s]},fVec:function(e){var t=this.buffer.vf,s=this.vfPos+e;return s>=t._length?null:t._items[s]},bitmapData:function(e){var t=this.buffer.bd,s=this.bdPos+e;return s>=t._length?null:t._items[s]},readBeginBitmapFill:function(){this.advance(),this.prev=0;return this},readBeginFill:function(){this.advance(),this.prev=1;return this},readBeginGradientFill:function(){this.advance(),this.prev=2;return this},readCubicCurveTo:function(){this.advance(),this.prev=3;return this},readCurveTo:function(){this.advance(),this.prev=4;return this},readDrawCircle:function(){this.advance(),this.prev=5;return this},readDrawArc:function(){this.advance(),this.prev=6;return this},readDrawEllipse:function(){this.advance(),this.prev=7;return this},readDrawImage:function(){this.advance(),this.prev=8;return this},readDrawPath:function(){this.advance(),this.prev=9;return this},readDrawRect:function(){this.advance(),this.prev=10;return this},readDrawRoundRect:function(){this.advance(),this.prev=11;return this},readDrawTriangles:function(){this.advance(),this.prev=13;return this},readEndFill:function(){this.advance(),this.prev=14;return this},readLineBitmapStyle:function(){this.advance(),this.prev=15;return this},readLineGradientStyle:function(){this.advance(),this.prev=16;return this},readLineStyle:function(){this.advance(),this.prev=17;return this},readLineTo:function(){this.advance(),this.prev=18;return this},readMoveTo:function(){this.advance(),this.prev=19;return this},readOverrideMatrix:function(){this.advance(),this.prev=20;return this},reset:function(e){this.buffer=e,this.bPos=this.iPos=this.fPos=this.mPos=this.viPos=this.vfPos=this.ffPos=this.iiPos=this.bdPos=this.cfPos=0,this.prev=21,null!=e&&e.validate()},skip:function(e){this.advance(),this.prev=e},__class__:sg};var ng={};(s["openfl._internal.renderer._DrawCommandReader.BeginBitmapFillView_Impl_"]=ng).__name__=["openfl","_internal","renderer","_DrawCommandReader","BeginBitmapFillView_Impl_"],ng.__properties__={get_smooth:"get_smooth",get_repeat:"get_repeat",get_matrix:"get_matrix",get_bitmap:"get_bitmap"},ng._new=function(e){return e},ng.get_bitmap=function(e){var t=e.buffer.bd,s=e.bdPos;return s>=t._length?null:t._items[s]},ng.get_matrix=function(e){var t=e.buffer.m,s=e.mPos;return s>=t._length?null:t._items[s]},ng.get_repeat=function(e){var t=e.buffer.b,s=e.bPos;return s>=t._length?null:t._items[s]},ng.get_smooth=function(e){var t=e.buffer.b,s=e.bPos+1;return s>=t._length?null:t._items[s]};var ig={};(s["openfl._internal.renderer._DrawCommandReader.BeginFillView_Impl_"]=ig).__name__=["openfl","_internal","renderer","_DrawCommandReader","BeginFillView_Impl_"],ig.__properties__={get_alpha:"get_alpha",get_color:"get_color"},ig._new=function(e){return e},ig.get_color=function(e){var t=e.buffer.i,s=e.iPos;return s>=t._length?null:t._items[s]},ig.get_alpha=function(e){return e.buffer.clampedFloats[e.cfPos]/255};var rg={};(s["openfl._internal.renderer._DrawCommandReader.BeginGradientFillView_Impl_"]=rg).__name__=["openfl","_internal","renderer","_DrawCommandReader","BeginGradientFillView_Impl_"],rg.__properties__={get_focalPointRatio:"get_focalPointRatio",get_interpolationMethod:"get_interpolationMethod",get_spreadMethod:"get_spreadMethod",get_matrix:"get_matrix",get_ratios:"get_ratios",get_alphas:"get_alphas",get_colors:"get_colors",get_type:"get_type"},rg._new=function(e){return e},rg.get_type=function(e){var t=e.buffer.i,s=e.iPos;return s>=t._length?null:t._items[s]},rg.get_colors=function(e){var t=e.buffer.ii,s=e.iiPos;return s>=t._length?null:t._items[s]},rg.get_alphas=function(e){var t=e.buffer.ff,s=e.ffPos;return s>=t._length?null:t._items[s]},rg.get_ratios=function(e){var t=e.buffer.ii,s=e.iiPos+1;return s>=t._length?null:t._items[s]},rg.get_matrix=function(e){var t=e.buffer.m,s=e.mPos;return s>=t._length?null:t._items[s]},rg.get_spreadMethod=function(e){var t=e.buffer.i,s=e.iPos+1;return s>=t._length?null:t._items[s]},rg.get_interpolationMethod=function(e){var t=e.buffer.i,s=e.iPos+2;return s>=t._length?null:t._items[s]},rg.get_focalPointRatio=function(e){return e.buffer.twips[e.fPos]/20};var og={};(s["openfl._internal.renderer._DrawCommandReader.CubicCurveToView_Impl_"]=og).__name__=["openfl","_internal","renderer","_DrawCommandReader","CubicCurveToView_Impl_"],og.__properties__={get_anchorY:"get_anchorY",get_anchorX:"get_anchorX",get_controlY2:"get_controlY2",get_controlX2:"get_controlX2",get_controlY1:"get_controlY1",get_controlX1:"get_controlX1"},og._new=function(e){return e},og.get_controlX1=function(e){return e.buffer.twips[e.fPos]/20},og.get_controlY1=function(e){return e.buffer.twips[e.fPos+1]/20},og.get_controlX2=function(e){return e.buffer.twips[e.fPos+2]/20},og.get_controlY2=function(e){return e.buffer.twips[e.fPos+3]/20},og.get_anchorX=function(e){return e.buffer.twips[e.fPos+4]/20},og.get_anchorY=function(e){return e.buffer.twips[e.fPos+5]/20};var ag={};(s["openfl._internal.renderer._DrawCommandReader.CurveToView_Impl_"]=ag).__name__=["openfl","_internal","renderer","_DrawCommandReader","CurveToView_Impl_"],ag.__properties__={get_anchorY:"get_anchorY",get_anchorX:"get_anchorX",get_controlY:"get_controlY",get_controlX:"get_controlX"},ag._new=function(e){return e},ag.get_controlX=function(e){return e.buffer.twips[e.fPos]/20},ag.get_controlY=function(e){return e.buffer.twips[e.fPos+1]/20},ag.get_anchorX=function(e){return e.buffer.twips[e.fPos+2]/20},ag.get_anchorY=function(e){return e.buffer.twips[e.fPos+3]/20};var lg={};(s["openfl._internal.renderer._DrawCommandReader.DrawCircleView_Impl_"]=lg).__name__=["openfl","_internal","renderer","_DrawCommandReader","DrawCircleView_Impl_"],lg.__properties__={get_radius:"get_radius",get_y:"get_y",get_x:"get_x"},lg._new=function(e){return e},lg.get_x=function(e){return e.buffer.twips[e.fPos]/20},lg.get_y=function(e){return e.buffer.twips[e.fPos+1]/20},lg.get_radius=function(e){return e.buffer.twips[e.fPos+2]/20};var hg={};(s["openfl._internal.renderer._DrawCommandReader.DrawArcView_Impl_"]=hg).__name__=["openfl","_internal","renderer","_DrawCommandReader","DrawArcView_Impl_"],hg.__properties__={get_endAngle:"get_endAngle",get_startAngle:"get_startAngle",get_radius:"get_radius",get_y:"get_y",get_x:"get_x"},hg._new=function(e){return e},hg.get_x=function(e){return e.buffer.twips[e.fPos]/20},hg.get_y=function(e){return e.buffer.twips[e.fPos+1]/20},hg.get_radius=function(e){return e.buffer.twips[e.fPos+2]/20},hg.get_startAngle=function(e){return e.buffer.twips[e.fPos+3]/20},hg.get_endAngle=function(e){return e.buffer.twips[e.fPos+4]/20};var _g={};(s["openfl._internal.renderer._DrawCommandReader.DrawEllipseView_Impl_"]=_g).__name__=["openfl","_internal","renderer","_DrawCommandReader","DrawEllipseView_Impl_"],_g.__properties__={get_height:"get_height",get_width:"get_width",get_y:"get_y",get_x:"get_x"},_g._new=function(e){return e},_g.get_x=function(e){return e.buffer.twips[e.fPos]/20},_g.get_y=function(e){return e.buffer.twips[e.fPos+1]/20},_g.get_width=function(e){return e.buffer.twips[e.fPos+2]/20},_g.get_height=function(e){return e.buffer.twips[e.fPos+3]/20};var ug={};(s["openfl._internal.renderer._DrawCommandReader.DrawImageView_Impl_"]=ug).__name__=["openfl","_internal","renderer","_DrawCommandReader","DrawImageView_Impl_"],ug.__properties__={get_smooth:"get_smooth",get_matrix:"get_matrix",get_bitmap:"get_bitmap"},ug._new=function(e){return e},ug.get_bitmap=function(e){var t=e.buffer.bd,s=e.bdPos;return s>=t._length?null:t._items[s]},ug.get_matrix=function(e){var t=e.buffer.m,s=e.mPos;return s>=t._length?null:t._items[s]},ug.get_smooth=function(e){var t=e.buffer.b,s=e.bPos;return s>=t._length?null:t._items[s]};var dg={};(s["openfl._internal.renderer._DrawCommandReader.DrawPathView_Impl_"]=dg).__name__=["openfl","_internal","renderer","_DrawCommandReader","DrawPathView_Impl_"],dg.__properties__={get_winding:"get_winding",get_data:"get_data",get_commands:"get_commands"},dg._new=function(e){return e},dg.get_commands=function(e){var t=e.buffer.vi,s=e.viPos;return s>=t._length?null:t._items[s]},dg.get_data=function(e){var t=e.buffer.vf,s=e.vfPos;return s>=t._length?null:t._items[s]},dg.get_winding=function(e){var t=e.buffer.i,s=e.iPos;return s>=t._length?null:t._items[s]};var cg={};(s["openfl._internal.renderer._DrawCommandReader.DrawRectView_Impl_"]=cg).__name__=["openfl","_internal","renderer","_DrawCommandReader","DrawRectView_Impl_"],cg.__properties__={get_height:"get_height",get_width:"get_width",get_y:"get_y",get_x:"get_x"},cg._new=function(e){return e},cg.get_x=function(e){return e.buffer.twips[e.fPos]/20},cg.get_y=function(e){return e.buffer.twips[e.fPos+1]/20},cg.get_width=function(e){return e.buffer.twips[e.fPos+2]/20},cg.get_height=function(e){return e.buffer.twips[e.fPos+3]/20};var fg={};(s["openfl._internal.renderer._DrawCommandReader.DrawRoundRectView_Impl_"]=fg).__name__=["openfl","_internal","renderer","_DrawCommandReader","DrawRoundRectView_Impl_"],fg.__properties__={get_ellipseHeight:"get_ellipseHeight",get_ellipseWidth:"get_ellipseWidth",get_height:"get_height",get_width:"get_width",get_y:"get_y",get_x:"get_x"},fg._new=function(e){return e},fg.get_x=function(e){return e.buffer.twips[e.fPos]/20},fg.get_y=function(e){return e.buffer.twips[e.fPos+1]/20},fg.get_width=function(e){return e.buffer.twips[e.fPos+2]/20},fg.get_height=function(e){return e.buffer.twips[e.fPos+3]/20},fg.get_ellipseWidth=function(e){return e.buffer.twips[e.fPos+4]/20},fg.get_ellipseHeight=function(e){return e.buffer.twips[e.fPos+5]/20};var pg={};(s["openfl._internal.renderer._DrawCommandReader.DrawTrianglesView_Impl_"]=pg).__name__=["openfl","_internal","renderer","_DrawCommandReader","DrawTrianglesView_Impl_"],pg.__properties__={get_culling:"get_culling",get_uvtData:"get_uvtData",get_indices:"get_indices",get_vertices:"get_vertices"},pg._new=function(e){return e},pg.get_vertices=function(e){var t=e.buffer.vf,s=e.vfPos;return s>=t._length?null:t._items[s]},pg.get_indices=function(e){var t=e.buffer.vi,s=e.viPos+1;return s>=t._length?null:t._items[s]},pg.get_uvtData=function(e){var t=e.buffer.vf,s=e.vfPos+2;return s>=t._length?null:t._items[s]},pg.get_culling=function(e){var t=e.buffer.i,s=e.iPos+3;return s>=t._length?null:t._items[s]};var bg={};(s["openfl._internal.renderer._DrawCommandReader.EndFillView_Impl_"]=bg).__name__=["openfl","_internal","renderer","_DrawCommandReader","EndFillView_Impl_"],bg._new=function(e){return e};var mg={};(s["openfl._internal.renderer._DrawCommandReader.LineBitmapStyleView_Impl_"]=mg).__name__=["openfl","_internal","renderer","_DrawCommandReader","LineBitmapStyleView_Impl_"],mg.__properties__={get_smooth:"get_smooth",get_repeat:"get_repeat",get_matrix:"get_matrix",get_bitmap:"get_bitmap"},mg._new=function(e){return e},mg.get_bitmap=function(e){var t=e.buffer.bd,s=e.bdPos;return s>=t._length?null:t._items[s]},mg.get_matrix=function(e){var t=e.buffer.m,s=e.mPos;return s>=t._length?null:t._items[s]},mg.get_repeat=function(e){var t=e.buffer.b,s=e.bPos;return s>=t._length?null:t._items[s]},mg.get_smooth=function(e){var t=e.buffer.b,s=e.bPos+1;return s>=t._length?null:t._items[s]};var gg={};(s["openfl._internal.renderer._DrawCommandReader.LineGradientStyleView_Impl_"]=gg).__name__=["openfl","_internal","renderer","_DrawCommandReader","LineGradientStyleView_Impl_"],gg.__properties__={get_focalPointRatio:"get_focalPointRatio",get_interpolationMethod:"get_interpolationMethod",get_spreadMethod:"get_spreadMethod",get_matrix:"get_matrix",get_ratios:"get_ratios",get_alphas:"get_alphas",get_colors:"get_colors",get_type:"get_type"},gg._new=function(e){return e},gg.get_type=function(e){var t=e.buffer.i,s=e.iPos;return s>=t._length?null:t._items[s]},gg.get_colors=function(e){var t=e.buffer.ii,s=e.iiPos;return s>=t._length?null:t._items[s]},gg.get_alphas=function(e){var t=e.buffer.ff,s=e.ffPos;return s>=t._length?null:t._items[s]},gg.get_ratios=function(e){var t=e.buffer.ii,s=e.iiPos+1;return s>=t._length?null:t._items[s]},gg.get_matrix=function(e){var t=e.buffer.m,s=e.mPos;return s>=t._length?null:t._items[s]},gg.get_spreadMethod=function(e){var t=e.buffer.i,s=e.iPos+1;return s>=t._length?null:t._items[s]},gg.get_interpolationMethod=function(e){var t=e.buffer.i,s=e.iPos+2;return s>=t._length?null:t._items[s]},gg.get_focalPointRatio=function(e){return e.buffer.twips[e.fPos]/20};var wg={};(s["openfl._internal.renderer._DrawCommandReader.LineStyleView_Impl_"]=wg).__name__=["openfl","_internal","renderer","_DrawCommandReader","LineStyleView_Impl_"],wg.__properties__={get_miterLimit:"get_miterLimit",get_joints:"get_joints",get_caps:"get_caps",get_scaleMode:"get_scaleMode",get_pixelHinting:"get_pixelHinting",get_alpha:"get_alpha",get_color:"get_color",get_thickness:"get_thickness"},wg._new=function(e){return e},wg.get_thickness=function(e){return e.buffer.twips[e.fPos]/20},wg.get_color=function(e){var t=e.buffer.i,s=e.iPos;return s>=t._length?null:t._items[s]},wg.get_alpha=function(e){return e.buffer.clampedFloats[e.cfPos]/255},wg.get_pixelHinting=function(e){var t=e.buffer.b,s=e.bPos;return s>=t._length?null:t._items[s]},wg.get_scaleMode=function(e){var t=e.buffer.i,s=e.iPos+1;return s>=t._length?null:t._items[s]},wg.get_caps=function(e){var t=e.buffer.i,s=e.iPos+2;return s>=t._length?null:t._items[s]},wg.get_joints=function(e){var t=e.buffer.i,s=e.iPos+3;return s>=t._length?null:t._items[s]},wg.get_miterLimit=function(e){return e.buffer.twips[e.fPos+1]/20};var vg={};(s["openfl._internal.renderer._DrawCommandReader.LineToView_Impl_"]=vg).__name__=["openfl","_internal","renderer","_DrawCommandReader","LineToView_Impl_"],vg.__properties__={get_y:"get_y",get_x:"get_x"},vg._new=function(e){return e},vg.get_x=function(e){return e.buffer.twips[e.fPos]/20},vg.get_y=function(e){return e.buffer.twips[e.fPos+1]/20};var yg={};(s["openfl._internal.renderer._DrawCommandReader.MoveToView_Impl_"]=yg).__name__=["openfl","_internal","renderer","_DrawCommandReader","MoveToView_Impl_"],yg.__properties__={get_y:"get_y",get_x:"get_x"},yg._new=function(e){return e},yg.get_x=function(e){return e.buffer.twips[e.fPos]/20},yg.get_y=function(e){return e.buffer.twips[e.fPos+1]/20};var Tg={};(s["openfl._internal.renderer._DrawCommandReader.OverrideMatrixView_Impl_"]=Tg).__name__=["openfl","_internal","renderer","_DrawCommandReader","OverrideMatrixView_Impl_"],Tg.__properties__={get_matrix:"get_matrix"},Tg._new=function(e){return e},Tg.get_matrix=function(e){var t=e.buffer.m,s=e.mPos;return s>=t._length?null:t._items[s]};var Sg=function(){};(s["openfl._internal.renderer.DrawCommandType"]=Sg).__name__=["openfl","_internal","renderer","DrawCommandType"];var xg=function(){this.activeTextures=0;var e=new Ge;e._items=[],e._length=e._items.length,this.renderTargetBaseTransformStack=e,this.pushRenderTargetBaseTransform(null,null)};(s["openfl._internal.renderer.RenderSession"]=xg).__name__=["openfl","_internal","renderer","RenderSession"],xg.prototype={pushRenderTargetBaseTransform:function(e,t){var s=Km.pool.get(),n=De.field(e,"__renderTransform");null!=n?(s.copyFrom(n),s.invert()):s.identity(),null!=t&&s.concat(t);var i=this.renderTargetBaseTransformStack;i._items[i._length++]=s},popRenderTargetBaseTransform:function(){var e=this.renderTargetBaseTransformStack,t=e._items[--e._length];e._items[e._length]=null;var s=t;Km.pool.put(s)},getRenderTargetBaseTransform:function(){var e=this.renderTargetBaseTransformStack;return e._items[e._length-1]},get_usesMainSpriteBatch:function(){var e=this.renderer;return this.spriteBatch==e.mainSpriteBatch},__class__:xg,__properties__:{get_usesMainSpriteBatch:"get_usesMainSpriteBatch"}};var Eg=function(){};(s["openfl._internal.renderer.canvas.CanvasGraphics"]=Eg).__name__=["openfl","_internal","renderer","canvas","CanvasGraphics"],Eg.hasFill=null,Eg.hasStroke=null,Eg.hitTesting=null,Eg.inversePendingMatrix=null,Eg.pendingMatrix=null,Eg.context=null,Eg.__hitTestContext=null,Eg.__hitTestCanvas=null,Eg.closePath=function(){var e=Eg.context;null!=e.strokeStyle&&(e.closePath(),e.stroke(),e.beginPath())},Eg.createBitmapFill=function(e,t){return e.get_bd().__sync(),0==e.get_src().width?null:Eg.context.createPattern(e.get_src(),t?"repeat":"no-repeat")},Eg.createGradientPattern=function(e,t,s,n,i,r,o,a){var l=null,h=Eg.context;switch(0!=a&&(a=Math.min(Math.max(a,-1),1)),e){case 0:l=h.createLinearGradient(-819.2,0,819.2,0);break;case 1:l=h.createRadialGradient(819.2*a,0,0,0,0,819.2)}for(var _=0,u=t.length;_>>16,b=(65280&c)>>>8,m=255&c,g=n[d]/255;g<0&&(g=0),1=P._length?null:P._items[R]).a,(I>=A._length?null:A._items[I]).b,(B>=C._length?null:C._items[B]).c,(k>=D._length?null:D._items[k]).d,(M>=F._length?null:F._items[M]).tx,(N>=L._length?null:L._items[N]).ty);var O=E.buffer.bd,U=E.bdPos;if(null!=(U>=O._length?null:O._items[U])&&!Eg.hitTesting){var G=E.buffer.bd,z=E.bdPos,X=z>=G._length?null:G._items[z],H=X.get_uvData(),V=X.get_bd().get_image().get_src();if(null==H)Eg.context.drawImage(V,0,0,1,1);else{var Y=V.width,W=V.height;Eg.context.drawImage(V,H.x0*Y,H.y0*W,(H.x1-H.x0)*Y,(H.y2-H.y0)*W,0,0,1,1)}}else Eg.context.rect(0,0,1,1);if(Eg.context.restore(),r.isPointInPath(t,s,Eg.canvasWindingRule))return Eg.drawCommandReaderPool.put(o),!0;break;case 10:o.advance(),o.prev=10;var j=o;Eg.context.rect(j.buffer.twips[j.fPos]/20,j.buffer.twips[j.fPos+1]/20,j.buffer.twips[j.fPos+2]/20,j.buffer.twips[j.fPos+3]/20);break;case 11:o.advance(),o.prev=11;var K=o;Eg.drawRoundRect(K.buffer.twips[K.fPos]/20,K.buffer.twips[K.fPos+1]/20,K.buffer.twips[K.fPos+2]/20,K.buffer.twips[K.fPos+3]/20,K.buffer.twips[K.fPos+4]/20,K.buffer.twips[K.fPos+5]/20);break;case 14:o.advance(),o.prev=14;if(Eg.endRenderStep(),i.hasFill&&r.isPointInPath(t,s,i.canvasWindingRule))return Eg.drawCommandReaderPool.put(o),!0;if(i.hasStroke&&r.isPointInStroke(t,s))return Eg.drawCommandReaderPool.put(o),!0;Eg.beginRenderStep();break;case 15:o.advance(),o.prev=15;Eg.hasStroke&&Eg.closePath(),Eg.context.moveTo(Eg.positionX,Eg.positionY),Eg.context.strokeStyle="white",Eg.hasStroke=!0;break;case 16:o.advance(),o.prev=16;var q=o;Eg.hasStroke&&Eg.closePath(),Eg.context.moveTo(Eg.positionX,Eg.positionY),Eg.context.strokeStyle="white";var Z=q.buffer.m,J=q.mPos;Eg.pendingMatrix=J>=Z._length?null:Z._items[J],Eg.hasStroke=!0;break;case 17:o.advance(),o.prev=17;var Q=o;if((Eg.hasStroke||Eg.hasFill)&&(Eg.hitTesting?Eg.context.closePath():(Eg.hasStroke&&Eg.context.stroke(),Eg.context.closePath(),Eg.hasFill&&Eg.context.fill(Eg.canvasWindingRule)),Eg.context.beginPath()),Eg.context.moveTo(Eg.positionX,Eg.positionY),Q.buffer.twips[Q.fPos]/20==null||Q.buffer.twips[Q.fPos]/20==-1)Eg.hasStroke=!1;else{Eg.context.lineWidth=0=$._length?null:$._items[ee]).toLowerCase();var te,se=Q.buffer.i,ne=Q.iPos+2;if(0==(ne>=se._length?null:se._items[ne]))te="butt";else{var ie=Q.buffer.i,re=Q.iPos+2;te=iw.toString(re>=ie._length?null:ie._items[re]).toLowerCase()}Eg.context.lineCap=te,Eg.context.miterLimit=Q.buffer.twips[Q.fPos+1]/20,Eg.context.strokeStyle="white",Eg.hasStroke=0Eg.glMaxTextureSize||_.height>Eg.glMaxTextureSize;)h*=.9,_.width*=.9,_.height*=.9;if(o.scale(h,h),cy.pool.put(_),!i&&null!=(a=l.getCachedBitmapData(o)))return e.set___bitmap(a),void e.set_dirty(!1)}else{var u=cy.pool.get(),d=1;for(r.transform(u,o);u.width>Eg.glMaxTextureSize||u.height>Eg.glMaxTextureSize;)d*=.9,u.width*=.9,u.height*=.9;o.scale(d,d),cy.pool.put(u)}null==e.__canvas&&(e.__canvas=Eg.pool.get(),e.__context=e.__canvas.getContext("2d")),Eg.context=e.__context;var c=Eg.context,f=cy.pool.get();r.transform(f,o);var p=Math.floor(f.x),b=Math.floor(f.y),m=Math.ceil(f.width+f.x-p)+2*Eg.padding,g=Math.ceil(f.height+f.y-b)+2*Eg.padding;e.__canvas.width=m,e.__canvas.height=g,Eg.snapCoordinates=null!=e.__symbol&&Lp.__instanceof(e.__symbol,Va)&&Lp.__cast(e.__symbol,Va).snapCoordinates;var w=Km.pool.get();w.copyFrom(o),w.translate(Eg.padding-p,Eg.padding-b),cy.pool.put(f),Eg.snapCoordinates?Eg.currentTransform.setTo(w.a,w.b,w.c,w.d,Math.round(w.tx),Math.round(w.ty)):c.setTransform(w.a,w.b,w.c,w.d,w.tx,w.ty),Eg.beginRenderStep();var v=Eg.drawCommandReaderPool.get();if(v.reset(e.__commands),Eg.snapCoordinates)for(var y=0,T=e.__commands.drawCommandTypes;y=P._length?null:P._items[R])}if(x)Eg.context.fillStyle="white";else{var A=E.buffer.bd,I=E.bdPos,C=E.buffer.b,B=E.bPos;Eg.context.fillStyle=Eg.createBitmapFill(I>=A._length?null:A._items[I],B>=C._length?null:C._items[B]),Eg.hasFill=!0;var D=E.buffer.m,k=E.mPos;if(null!=(k>=D._length?null:D._items[k])){var F=E.buffer.m,M=E.mPos;Eg.pendingMatrix=M>=F._length?null:F._items[M],null==Eg.inversePendingMatrix&&(Eg.inversePendingMatrix=Km.pool.get());var L=E.buffer.m,N=E.mPos;Eg.inversePendingMatrix.copyFrom(N>=L._length?null:L._items[N]),Eg.inversePendingMatrix.invert()}else(Eg.pendingMatrix=null)!=Eg.inversePendingMatrix&&(Km.pool.put(Eg.inversePendingMatrix),Eg.inversePendingMatrix=null)}break;case 1:Eg.endRenderStep(),Eg.beginRenderStep(),v.advance(),v.prev=1;var O=v;if(O.buffer.clampedFloats[O.cfPos]/255<.005&&!n)Eg.hasFill=!1;else{if(n)Eg.context.fillStyle="white";else if(O.buffer.clampedFloats[O.cfPos]/255==1){var U=O.buffer.i,G=O.iPos,z=Ri.hex(G>=U._length?null:U._items[G],6);Eg.context.fillStyle="#"+z}else{var X=O.buffer.i,H=O.iPos,V=(16711680&(H>=X._length?null:X._items[H]))>>>16,Y=O.buffer.i,W=O.iPos,j=(65280&(W>=Y._length?null:Y._items[W]))>>>8,K=O.buffer.i,q=O.iPos,Z=255&(q>=K._length?null:K._items[q]);Eg.context.fillStyle="rgba("+V+", "+j+", "+Z+", "+O.buffer.clampedFloats[O.cfPos]/255+")"}Eg.hasFill=!0}break;case 2:Eg.endRenderStep(),Eg.beginRenderStep(),v.advance(),v.prev=2;var J=v;if(n)Eg.context.fillStyle="white";else{var Q=J.buffer.i,$=J.iPos,ee=J.buffer.ii,te=J.iiPos,se=J.buffer.ff,ne=J.ffPos,ie=J.buffer.ii,re=J.iiPos+1,oe=J.buffer.m,ae=J.mPos,le=J.buffer.i,he=J.iPos+1,_e=J.buffer.i,ue=J.iPos+2;Eg.context.fillStyle=Eg.createGradientPattern($>=Q._length?null:Q._items[$],te>=ee._length?null:ee._items[te],ne>=se._length?null:se._items[ne],re>=ie._length?null:ie._items[re],ae>=oe._length?null:oe._items[ae],he>=le._length?null:le._items[he],ue>=_e._length?null:_e._items[ue],J.buffer.twips[J.fPos]/20)}var de=J.buffer.m,ce=J.mPos;Eg.pendingMatrix=ce>=de._length?null:de._items[ce],Eg.hasFill=!0;break;case 4:v.advance(),v.prev=4;var fe=v,pe=Eg.currentTransform,be=fe.buffer.twips[fe.fPos+2]/20*pe.a+fe.buffer.twips[fe.fPos+3]/20*pe.c+pe.tx,me=Eg.currentTransform,ge=fe.buffer.twips[fe.fPos+2]/20*me.b+fe.buffer.twips[fe.fPos+3]/20*me.d+me.ty,we=Math.round(be),ve=Math.round(ge),ye=we-be,Te=ve-ge,Se=Eg.currentTransform,xe=fe.buffer.twips[fe.fPos]/20*Se.a+fe.buffer.twips[fe.fPos+1]/20*Se.c+Se.tx+ye,Ee=Eg.currentTransform,Pe=fe.buffer.twips[fe.fPos]/20*Ee.b+fe.buffer.twips[fe.fPos+1]/20*Ee.d+Ee.ty+Te;Eg.context.quadraticCurveTo(xe,Pe,we,ve);break;case 8:v.advance(),v.prev=8;var Re=v;Eg.context.save();var Ae=Km.pool.get(),Ie=Re.buffer.m,Ce=Re.mPos;if(Ae.copyFrom(Ce>=Ie._length?null:Ie._items[Ce]),Ae.concat(Eg.currentTransform),0!=Ae.b||0!=Ae.c)throw Km.pool.put(Ae),new Mp("can't use snapping on rotated images");if(Eg.context.setTransform(Math.round(Ae.a),Math.round(Ae.b),Math.round(Ae.c),Math.round(Ae.d),Math.round(Ae.tx),Math.round(Ae.ty)),Km.pool.put(Ae),Eg.hitTesting)Eg.context.fillStyle="white",Eg.context.fillRect(0,0,1,1);else{var Be=Re.buffer.bd,De=Re.bdPos,ke=De>=Be._length?null:Be._items[De],Fe=ke.get_uvData(),Me=ke.get_bd().get_image().get_src();if(null==Fe)Eg.context.drawImage(Me,0,0,1,1);else{var Le=Me.width,Ne=Me.height;Eg.context.drawImage(Me,Fe.x0*Le,Fe.y0*Ne,(Fe.x1-Fe.x0)*Le,(Fe.y2-Fe.y0)*Ne,0,0,1,1)}}Eg.context.restore();break;case 14:v.advance(),v.prev=14;Eg.endRenderStep(),Eg.beginRenderStep();break;case 17:v.advance(),v.prev=17;var Oe=v;if((Eg.hasStroke||Eg.hasFill)&&(Eg.hitTesting?Eg.context.closePath():(Eg.hasStroke&&Eg.context.stroke(),Eg.context.closePath(),Eg.hasFill&&Eg.context.fill(Eg.canvasWindingRule)),Eg.context.beginPath()),Eg.context.moveTo(Eg.positionX,Eg.positionY),Oe.buffer.twips[Oe.fPos]/20==null||Oe.buffer.twips[Oe.fPos]/20==-1)Eg.hasStroke=!1;else{Eg.context.lineWidth=0=Ue._length?null:Ue._items[Ge]).toLowerCase();var ze,Xe=Oe.buffer.i,He=Oe.iPos+2;if(0==(He>=Xe._length?null:Xe._items[He]))ze="butt";else{var Ve=Oe.buffer.i,Ye=Oe.iPos+2;ze=iw.toString(Ye>=Ve._length?null:Ve._items[Ye]).toLowerCase()}if(Eg.context.lineCap=ze,Eg.context.miterLimit=Oe.buffer.twips[Oe.fPos+1]/20,n)Eg.context.strokeStyle="white";else if(Oe.buffer.clampedFloats[Oe.cfPos]/255==1){var We=Oe.buffer.i,je=Oe.iPos,Ke=Ri.hex(16777215&(je>=We._length?null:We._items[je]),6);Eg.context.strokeStyle="#"+Ke}else{var qe=Oe.buffer.i,Ze=Oe.iPos,Je=(16711680&(Ze>=qe._length?null:qe._items[Ze]))>>>16,Qe=Oe.buffer.i,$e=Oe.iPos,et=(65280&($e>=Qe._length?null:Qe._items[$e]))>>>8,tt=Oe.buffer.i,st=Oe.iPos,nt=255&(st>=tt._length?null:tt._items[st]);Eg.context.strokeStyle="rgba("+Je+", "+et+", "+nt+", "+Oe.buffer.clampedFloats[Oe.cfPos]/255+")"}Eg.hasStroke=0=wt._length?null:wt._items[vt])}if(mt)Eg.context.fillStyle="white";else{var yt=gt.buffer.bd,Tt=gt.bdPos,St=gt.buffer.b,xt=gt.bPos;Eg.context.fillStyle=Eg.createBitmapFill(Tt>=yt._length?null:yt._items[Tt],xt>=St._length?null:St._items[xt]),Eg.hasFill=!0;var Et=gt.buffer.m,Pt=gt.mPos;if(null!=(Pt>=Et._length?null:Et._items[Pt])){var Rt=gt.buffer.m,At=gt.mPos;Eg.pendingMatrix=At>=Rt._length?null:Rt._items[At],null==Eg.inversePendingMatrix&&(Eg.inversePendingMatrix=Km.pool.get());var It=gt.buffer.m,Ct=gt.mPos;Eg.inversePendingMatrix.copyFrom(Ct>=It._length?null:It._items[Ct]),Eg.inversePendingMatrix.invert()}else(Eg.pendingMatrix=null)!=Eg.inversePendingMatrix&&(Km.pool.put(Eg.inversePendingMatrix),Eg.inversePendingMatrix=null)}break;case 1:Eg.endRenderStep(),Eg.beginRenderStep(),v.advance(),v.prev=1;var Bt=v;if(Bt.buffer.clampedFloats[Bt.cfPos]/255<.005&&!n)Eg.hasFill=!1;else{if(n)Eg.context.fillStyle="white";else if(Bt.buffer.clampedFloats[Bt.cfPos]/255==1){var Dt=Bt.buffer.i,kt=Bt.iPos,Ft=Ri.hex(kt>=Dt._length?null:Dt._items[kt],6);Eg.context.fillStyle="#"+Ft}else{var Mt=Bt.buffer.i,Lt=Bt.iPos,Nt=(16711680&(Lt>=Mt._length?null:Mt._items[Lt]))>>>16,Ot=Bt.buffer.i,Ut=Bt.iPos,Gt=(65280&(Ut>=Ot._length?null:Ot._items[Ut]))>>>8,zt=Bt.buffer.i,Xt=Bt.iPos,Ht=255&(Xt>=zt._length?null:zt._items[Xt]);Eg.context.fillStyle="rgba("+Nt+", "+Gt+", "+Ht+", "+Bt.buffer.clampedFloats[Bt.cfPos]/255+")"}Eg.hasFill=!0}break;case 2:Eg.endRenderStep(),Eg.beginRenderStep(),v.advance(),v.prev=2;var Vt=v;if(n)Eg.context.fillStyle="white";else{var Yt=Vt.buffer.i,Wt=Vt.iPos,jt=Vt.buffer.ii,Kt=Vt.iiPos,qt=Vt.buffer.ff,Zt=Vt.ffPos,Jt=Vt.buffer.ii,Qt=Vt.iiPos+1,$t=Vt.buffer.m,es=Vt.mPos,ts=Vt.buffer.i,ss=Vt.iPos+1,ns=Vt.buffer.i,is=Vt.iPos+2;Eg.context.fillStyle=Eg.createGradientPattern(Wt>=Yt._length?null:Yt._items[Wt],Kt>=jt._length?null:jt._items[Kt],Zt>=qt._length?null:qt._items[Zt],Qt>=Jt._length?null:Jt._items[Qt],es>=$t._length?null:$t._items[es],ss>=ts._length?null:ts._items[ss],is>=ns._length?null:ns._items[is],Vt.buffer.twips[Vt.fPos]/20)}var rs=Vt.buffer.m,os=Vt.mPos;Eg.pendingMatrix=os>=rs._length?null:rs._items[os],Eg.hasFill=!0;break;case 3:v.advance(),v.prev=3;var as=v;Eg.context.bezierCurveTo(as.buffer.twips[as.fPos]/20,as.buffer.twips[as.fPos+1]/20,as.buffer.twips[as.fPos+2]/20,as.buffer.twips[as.fPos+3]/20,as.buffer.twips[as.fPos+4]/20,as.buffer.twips[as.fPos+5]/20);break;case 4:v.advance(),v.prev=4;var ls=v;Eg.context.quadraticCurveTo(ls.buffer.twips[ls.fPos]/20,ls.buffer.twips[ls.fPos+1]/20,ls.buffer.twips[ls.fPos+2]/20,ls.buffer.twips[ls.fPos+3]/20);break;case 5:v.advance(),v.prev=5;var hs=v;Eg.context.moveTo(hs.buffer.twips[hs.fPos]/20,hs.buffer.twips[hs.fPos+1]/20),Eg.context.arc(hs.buffer.twips[hs.fPos]/20,hs.buffer.twips[hs.fPos+1]/20,hs.buffer.twips[hs.fPos+2]/20,0,2*Math.PI,!0);break;case 6:v.advance(),v.prev=6;var _s=v;Eg.context.moveTo(_s.buffer.twips[_s.fPos]/20,_s.buffer.twips[_s.fPos+1]/20),Eg.context.arc(_s.buffer.twips[_s.fPos]/20,_s.buffer.twips[_s.fPos+1]/20,_s.buffer.twips[_s.fPos+2]/20,_s.buffer.twips[_s.fPos+3]/20,_s.buffer.twips[_s.fPos+4]/20,!0);break;case 7:v.advance(),v.prev=7;var us=v,ds=us.buffer.twips[us.fPos]/20,cs=us.buffer.twips[us.fPos+1]/20,fs=us.buffer.twips[us.fPos+2]/20,ps=us.buffer.twips[us.fPos+3]/20,bs=fs/2*.5522848,ms=ps/2*.5522848,gs=ds+fs,ws=cs+ps,vs=ds+fs/2,ys=cs+ps/2;Eg.context.moveTo(ds,ys),Eg.context.bezierCurveTo(ds,ys-ms,vs-bs,cs,vs,cs),Eg.context.bezierCurveTo(vs+bs,cs,gs,ys-ms,gs,ys),Eg.context.bezierCurveTo(gs,ys+ms,vs+bs,ws,vs,ws),Eg.context.bezierCurveTo(vs-bs,ws,ds,ys+ms,ds,ys);break;case 8:v.advance(),v.prev=8;var Ts=v;Eg.context.save();var Ss=Ts.buffer.m,xs=Ts.mPos,Es=Ts.buffer.m,Ps=Ts.mPos,Rs=Ts.buffer.m,As=Ts.mPos,Is=Ts.buffer.m,Cs=Ts.mPos,Bs=Ts.buffer.m,Ds=Ts.mPos,ks=Ts.buffer.m,Fs=Ts.mPos;Eg.context.transform((xs>=Ss._length?null:Ss._items[xs]).a,(Ps>=Es._length?null:Es._items[Ps]).b,(As>=Rs._length?null:Rs._items[As]).c,(Cs>=Is._length?null:Is._items[Cs]).d,(Ds>=Bs._length?null:Bs._items[Ds]).tx,(Fs>=ks._length?null:ks._items[Fs]).ty);var Ms=Ts.buffer.bd,Ls=Ts.bdPos;if(null!=(Ls>=Ms._length?null:Ms._items[Ls])&&!Eg.hitTesting){var Ns=Ts.buffer.bd,Os=Ts.bdPos,Us=Os>=Ns._length?null:Ns._items[Os],Gs=Us.get_uvData(),zs=Us.get_bd().get_image().get_src();if(null==Gs)Eg.context.drawImage(zs,0,0,1,1);else{var Xs=zs.width,Hs=zs.height;Eg.context.drawImage(zs,Gs.x0*Xs,Gs.y0*Hs,(Gs.x1-Gs.x0)*Xs,(Gs.y2-Gs.y0)*Hs,0,0,1,1)}}else Eg.context.rect(0,0,1,1);Eg.context.restore();break;case 10:v.advance(),v.prev=10;var Vs=v;Eg.context.rect(Vs.buffer.twips[Vs.fPos]/20,Vs.buffer.twips[Vs.fPos+1]/20,Vs.buffer.twips[Vs.fPos+2]/20,Vs.buffer.twips[Vs.fPos+3]/20);break;case 11:v.advance(),v.prev=11;var Ys=v;Eg.drawRoundRect(Ys.buffer.twips[Ys.fPos]/20,Ys.buffer.twips[Ys.fPos+1]/20,Ys.buffer.twips[Ys.fPos+2]/20,Ys.buffer.twips[Ys.fPos+3]/20,Ys.buffer.twips[Ys.fPos+4]/20,Ys.buffer.twips[Ys.fPos+5]/20);break;case 13:Eg.endRenderStep(),Eg.beginRenderStep(),v.advance(),v.prev=13;for(var Ws,js,Ks,qs,Zs,Js,Qs,$s,en,tn,sn,nn,rn,on,an,ln,hn,_n,un,dn,cn,fn,pn,bn,mn,gn,wn,vn,yn=v,Tn=yn.buffer.vf,Sn=yn.vfPos,xn=Sn>=Tn._length?null:Tn._items[Sn],En=yn.buffer.vi,Pn=yn.viPos+1,Rn=Pn>=En._length?null:En._items[Pn],An=yn.buffer.vf,In=yn.vfPos+2,Cn=In>=An._length?null:An._items[In],Bn=0,Dn=Rn.length;Bn=kn._length?null:kn._items[Fn]){case 0:if((nn-tn)*(an-sn)-(rn-sn)*(on-tn)<0){Bn+=3;continue}break;case 2:if((nn-tn)*(an-sn)-(rn-sn)*(on-tn)<0)break;Bn+=3;continue}var Mn=c;Mn.save(),Mn.beginPath(),Mn.moveTo(tn,sn),Mn.lineTo(nn,rn),Mn.lineTo(on,an),Mn.closePath(),Mn.clip(),ln=Cn.data[qs]*null.width,_n=Cn.data[Js]*null.width,dn=Cn.data[$s]*null.width,hn=Cn.data[Zs]*null.height,un=Cn.data[Qs]*null.height,0!=(fn=ln*((cn=Cn.data[en]*null.height)-un)-_n*cn+dn*un+(_n-dn)*hn)?(pn=-(hn*(on-nn)-un*on+cn*nn+(un-cn)*tn)/fn,bn=(un*an+hn*(rn-an)-cn*rn+(cn-un)*sn)/fn,mn=(ln*(on-nn)-_n*on+dn*nn+(_n-dn)*tn)/fn,gn=-(_n*an+ln*(rn-an)-dn*rn+(dn-_n)*sn)/fn,wn=(ln*(cn*nn-un*on)+hn*(_n*on-dn*nn)+(dn*un-_n*cn)*tn)/fn,vn=(ln*(cn*rn-un*an)+hn*(_n*an-dn*rn)+(dn*un-_n*cn)*sn)/fn,Mn.transform(pn,bn,mn,gn,wn,vn),Mn.drawImage(null,0,0),Mn.restore(),Bn+=3):Bn+=3}break;case 14:v.advance(),v.prev=14;Eg.endRenderStep(),Eg.beginRenderStep();break;case 15:v.advance(),v.prev=15;var Ln=v;if(Eg.hasStroke&&Eg.closePath(),Eg.context.moveTo(Eg.positionX,Eg.positionY),n)Eg.context.strokeStyle="white";else{var Nn=Ln.buffer.bd,On=Ln.bdPos,Un=Ln.buffer.b,Gn=Ln.bPos;Eg.context.strokeStyle=Eg.createBitmapFill(On>=Nn._length?null:Nn._items[On],Gn>=Un._length?null:Un._items[Gn])}Eg.hasStroke=!0;break;case 16:v.advance(),v.prev=16;var zn=v;if(Eg.hasStroke&&Eg.closePath(),Eg.context.moveTo(Eg.positionX,Eg.positionY),n)Eg.context.strokeStyle="white";else{var Xn=zn.buffer.i,Hn=zn.iPos,Vn=zn.buffer.ii,Yn=zn.iiPos,Wn=zn.buffer.ff,jn=zn.ffPos,Kn=zn.buffer.ii,qn=zn.iiPos+1,Zn=zn.buffer.m,Jn=zn.mPos,Qn=zn.buffer.i,$n=zn.iPos+1,ei=zn.buffer.i,ti=zn.iPos+2;Eg.context.strokeStyle=Eg.createGradientPattern(Hn>=Xn._length?null:Xn._items[Hn],Yn>=Vn._length?null:Vn._items[Yn],jn>=Wn._length?null:Wn._items[jn],qn>=Kn._length?null:Kn._items[qn],Jn>=Zn._length?null:Zn._items[Jn],$n>=Qn._length?null:Qn._items[$n],ti>=ei._length?null:ei._items[ti],zn.buffer.twips[zn.fPos]/20)}var si=zn.buffer.m,ni=zn.mPos;Eg.pendingMatrix=ni>=si._length?null:si._items[ni],Eg.hasStroke=!0;break;case 17:v.advance(),v.prev=17;var ii=v;if((Eg.hasStroke||Eg.hasFill)&&(Eg.hitTesting?Eg.context.closePath():(Eg.hasStroke&&Eg.context.stroke(),Eg.context.closePath(),Eg.hasFill&&Eg.context.fill(Eg.canvasWindingRule)),Eg.context.beginPath()),Eg.context.moveTo(Eg.positionX,Eg.positionY),ii.buffer.twips[ii.fPos]/20==null||ii.buffer.twips[ii.fPos]/20==-1)Eg.hasStroke=!1;else{Eg.context.lineWidth=0=ri._length?null:ri._items[oi]).toLowerCase();var ai,li=ii.buffer.i,hi=ii.iPos+2;if(0==(hi>=li._length?null:li._items[hi]))ai="butt";else{var _i=ii.buffer.i,ui=ii.iPos+2;ai=iw.toString(ui>=_i._length?null:_i._items[ui]).toLowerCase()}if(Eg.context.lineCap=ai,Eg.context.miterLimit=ii.buffer.twips[ii.fPos+1]/20,n)Eg.context.strokeStyle="white";else if(ii.buffer.clampedFloats[ii.cfPos]/255==1){var di=ii.buffer.i,ci=ii.iPos,fi=Ri.hex(16777215&(ci>=di._length?null:di._items[ci]),6);Eg.context.strokeStyle="#"+fi}else{var pi=ii.buffer.i,bi=ii.iPos,mi=(16711680&(bi>=pi._length?null:pi._items[bi]))>>>16,gi=ii.buffer.i,wi=ii.iPos,vi=(65280&(wi>=gi._length?null:gi._items[wi]))>>>8,yi=ii.buffer.i,Ti=ii.iPos,Si=255&(Ti>=yi._length?null:yi._items[Ti]);Eg.context.strokeStyle="rgba("+mi+", "+vi+", "+Si+", "+ii.buffer.clampedFloats[ii.cfPos]/255+")"}Eg.hasStroke=0=s._length?null:s._items[n]).a,(r>=i._length?null:i._items[r]).b,(a>=o._length?null:o._items[a]).c,(h>=l._length?null:l._items[h]).d,(u>=_._length?null:_._items[u]).tx,(c>=d._length?null:d._items[c]).ty);var f=t.buffer.bd,p=t.bdPos;if(null!=(p>=f._length?null:f._items[p])&&!Eg.hitTesting){var b=t.buffer.bd,m=t.bdPos,g=m>=b._length?null:b._items[m],w=g.get_uvData(),v=g.get_bd().get_image().get_src();if(null==w)Eg.context.drawImage(v,0,0,1,1);else{var y=v.width,T=v.height;Eg.context.drawImage(v,w.x0*y,w.y0*T,(w.x1-w.x0)*y,(w.y2-w.y0)*T,0,0,1,1)}}else Eg.context.rect(0,0,1,1);Eg.context.restore()},Eg.snappedDrawImage=function(e){e.advance(),e.prev=8;var t=e;Eg.context.save();var s=Km.pool.get(),n=t.buffer.m,i=t.mPos;if(s.copyFrom(i>=n._length?null:n._items[i]),s.concat(Eg.currentTransform),0!=s.b||0!=s.c)throw Km.pool.put(s),new Mp("can't use snapping on rotated images");if(Eg.context.setTransform(Math.round(s.a),Math.round(s.b),Math.round(s.c),Math.round(s.d),Math.round(s.tx),Math.round(s.ty)),Km.pool.put(s),Eg.hitTesting)Eg.context.fillStyle="white",Eg.context.fillRect(0,0,1,1);else{var r=t.buffer.bd,o=t.bdPos,a=o>=r._length?null:r._items[o],l=a.get_uvData(),h=a.get_bd().get_image().get_src();if(null==l)Eg.context.drawImage(h,0,0,1,1);else{var _=h.width,u=h.height;Eg.context.drawImage(h,l.x0*_,l.y0*u,(l.x1-l.x0)*_,(l.y2-l.y0)*u,0,0,1,1)}}Eg.context.restore()},Eg.drawRoundRect2=function(e){e.advance(),e.prev=11;var t=e;Eg.drawRoundRect(t.buffer.twips[t.fPos]/20,t.buffer.twips[t.fPos+1]/20,t.buffer.twips[t.fPos+2]/20,t.buffer.twips[t.fPos+3]/20,t.buffer.twips[t.fPos+4]/20,t.buffer.twips[t.fPos+5]/20)},Eg.lineTo=function(e){e.advance(),e.prev=18;var t=e;Eg.context.lineTo(t.buffer.twips[t.fPos]/20,t.buffer.twips[t.fPos+1]/20),Eg.positionX=t.buffer.twips[t.fPos]/20,Eg.positionY=t.buffer.twips[t.fPos+1]/20},Eg.snappedLineTo=function(e){e.advance(),e.prev=18;var t=e,s=Eg.currentTransform,n=Math.round(t.buffer.twips[t.fPos]/20*s.a+t.buffer.twips[t.fPos+1]/20*s.c+s.tx),i=Eg.currentTransform,r=Math.round(t.buffer.twips[t.fPos]/20*i.b+t.buffer.twips[t.fPos+1]/20*i.d+i.ty);Eg.context.lineTo(n,r),Eg.positionX=n,Eg.positionY=r},Eg.moveTo=function(e){e.advance(),e.prev=19;var t=e;Eg.context.moveTo(t.buffer.twips[t.fPos]/20,t.buffer.twips[t.fPos+1]/20),Eg.positionX=t.buffer.twips[t.fPos]/20,Eg.positionY=t.buffer.twips[t.fPos+1]/20,Eg.closeGap=!0,Eg.startX=t.buffer.twips[t.fPos]/20,Eg.startY=t.buffer.twips[t.fPos+1]/20},Eg.snappedMoveTo=function(e){e.advance(),e.prev=19;var t=e,s=Eg.currentTransform,n=Math.round(t.buffer.twips[t.fPos]/20*s.a+t.buffer.twips[t.fPos+1]/20*s.c+s.tx),i=Eg.currentTransform,r=Math.round(t.buffer.twips[t.fPos]/20*i.b+t.buffer.twips[t.fPos+1]/20*i.d+i.ty);Eg.context.moveTo(n,r),Eg.positionX=n,Eg.positionY=r,Eg.closeGap=!0,Eg.startX=n,Eg.startY=r},Eg.lineStyle=function(e,t){e.advance(),e.prev=17;var s=e;if((Eg.hasStroke||Eg.hasFill)&&(Eg.hitTesting?Eg.context.closePath():(Eg.hasStroke&&Eg.context.stroke(),Eg.context.closePath(),Eg.hasFill&&Eg.context.fill(Eg.canvasWindingRule)),Eg.context.beginPath()),Eg.context.moveTo(Eg.positionX,Eg.positionY),s.buffer.twips[s.fPos]/20==null||s.buffer.twips[s.fPos]/20==-1)Eg.hasStroke=!1;else{Eg.context.lineWidth=0=n._length?null:n._items[i]).toLowerCase();var r,o=s.buffer.i,a=s.iPos+2;if(0==(a>=o._length?null:o._items[a]))r="butt";else{var l=s.buffer.i,h=s.iPos+2;r=iw.toString(h>=l._length?null:l._items[h]).toLowerCase()}if(Eg.context.lineCap=r,Eg.context.miterLimit=s.buffer.twips[s.fPos+1]/20,t)Eg.context.strokeStyle="white";else if(s.buffer.clampedFloats[s.cfPos]/255==1){var _=s.buffer.i,u=s.iPos,d=Ri.hex(16777215&(u>=_._length?null:_._items[u]),6);Eg.context.strokeStyle="#"+d}else{var c=s.buffer.i,f=s.iPos,p=(16711680&(f>=c._length?null:c._items[f]))>>>16,b=s.buffer.i,m=s.iPos,g=(65280&(m>=b._length?null:b._items[m]))>>>8,w=s.buffer.i,v=s.iPos,y=255&(v>=w._length?null:w._items[v]);Eg.context.strokeStyle="rgba("+p+", "+g+", "+y+", "+s.buffer.clampedFloats[s.cfPos]/255+")"}Eg.hasStroke=0=n._length?null:n._items[i],o>=r._length?null:r._items[o],l>=a._length?null:a._items[l],_>=h._length?null:h._items[_],d>=u._length?null:u._items[d],f>=c._length?null:c._items[f],b>=p._length?null:p._items[b],s.buffer.twips[s.fPos]/20)}var m=s.buffer.m,g=s.mPos;Eg.pendingMatrix=g>=m._length?null:m._items[g],Eg.hasStroke=!0},Eg.lineBitmapStyle=function(e,t){e.advance(),e.prev=15;var s=e;if(Eg.hasStroke&&Eg.closePath(),Eg.context.moveTo(Eg.positionX,Eg.positionY),t)Eg.context.strokeStyle="white";else{var n=s.buffer.bd,i=s.bdPos,r=s.buffer.b,o=s.bPos;Eg.context.strokeStyle=Eg.createBitmapFill(i>=n._length?null:n._items[i],o>=r._length?null:r._items[o])}Eg.hasStroke=!0},Eg.beginBitmapFill=function(e,t){e.advance(),e.prev=0;var s,n=e;if(t)s=!0;else{var i=n.buffer.bd,r=n.bdPos;s=null==(r>=i._length?null:i._items[r])}if(s)Eg.context.fillStyle="white";else{var o=n.buffer.bd,a=n.bdPos,l=n.buffer.b,h=n.bPos;Eg.context.fillStyle=Eg.createBitmapFill(a>=o._length?null:o._items[a],h>=l._length?null:l._items[h]),Eg.hasFill=!0;var _=n.buffer.m,u=n.mPos;if(null!=(u>=_._length?null:_._items[u])){var d=n.buffer.m,c=n.mPos;Eg.pendingMatrix=c>=d._length?null:d._items[c],null==Eg.inversePendingMatrix&&(Eg.inversePendingMatrix=Km.pool.get());var f=n.buffer.m,p=n.mPos;Eg.inversePendingMatrix.copyFrom(p>=f._length?null:f._items[p]),Eg.inversePendingMatrix.invert()}else(Eg.pendingMatrix=null)!=Eg.inversePendingMatrix&&(Km.pool.put(Eg.inversePendingMatrix),Eg.inversePendingMatrix=null)}},Eg.beginFill=function(e,t){e.advance(),e.prev=1;var s=e;if(s.buffer.clampedFloats[s.cfPos]/255<.005&&!t)Eg.hasFill=!1;else{if(t)Eg.context.fillStyle="white";else if(s.buffer.clampedFloats[s.cfPos]/255==1){var n=s.buffer.i,i=s.iPos,r=Ri.hex(i>=n._length?null:n._items[i],6);Eg.context.fillStyle="#"+r}else{var o=s.buffer.i,a=s.iPos,l=(16711680&(a>=o._length?null:o._items[a]))>>>16,h=s.buffer.i,_=s.iPos,u=(65280&(_>=h._length?null:h._items[_]))>>>8,d=s.buffer.i,c=s.iPos,f=255&(c>=d._length?null:d._items[c]);Eg.context.fillStyle="rgba("+l+", "+u+", "+f+", "+s.buffer.clampedFloats[s.cfPos]/255+")"}Eg.hasFill=!0}},Eg.beginGradientFill=function(e,t){e.advance(),e.prev=2;var s=e;if(t)Eg.context.fillStyle="white";else{var n=s.buffer.i,i=s.iPos,r=s.buffer.ii,o=s.iiPos,a=s.buffer.ff,l=s.ffPos,h=s.buffer.ii,_=s.iiPos+1,u=s.buffer.m,d=s.mPos,c=s.buffer.i,f=s.iPos+1,p=s.buffer.i,b=s.iPos+2;Eg.context.fillStyle=Eg.createGradientPattern(i>=n._length?null:n._items[i],o>=r._length?null:r._items[o],l>=a._length?null:a._items[l],_>=h._length?null:h._items[_],d>=u._length?null:u._items[d],f>=c._length?null:c._items[f],b>=p._length?null:p._items[b],s.buffer.twips[s.fPos]/20)}var m=s.buffer.m,g=s.mPos;Eg.pendingMatrix=g>=m._length?null:m._items[g],Eg.hasFill=!0},Eg.drawRect=function(e){e.advance(),e.prev=10;var t=e;Eg.context.rect(t.buffer.twips[t.fPos]/20,t.buffer.twips[t.fPos+1]/20,t.buffer.twips[t.fPos+2]/20,t.buffer.twips[t.fPos+3]/20)};var Pg=function(e){$m.call(this,e)};(s["openfl._internal.renderer.canvas.CanvasMaskManager"]=Pg).__name__=["openfl","_internal","renderer","canvas","CanvasMaskManager"],Pg.__super__=$m,Pg.prototype=n($m.prototype,{pushMask:function(e){var t=this.renderSession.context;t.save();var s=e.__getWorldTransform();t.setTransform(s.a,s.b,s.c,s.d,s.tx,s.ty),t.beginPath(),e.__renderCanvasMask(this.renderSession),t.clip()},pushRect:function(e,t){var s=this.renderSession.context;s.save(),s.setTransform(t.a,t.b,t.c,t.d,t.tx,t.ty),s.beginPath(),s.rect(e.x,e.y,e.width,e.height),s.clip()},popMask:function(){this.renderSession.context.restore()},popRect:function(){this.renderSession.context.restore()},__class__:Pg});var Rg=function(e,t,s){eg.call(this,e,t),this.context=s,this.renderSession=new xg,this.renderSession.context=s,(this.renderSession.renderer=this).renderSession.maskManager=new Pg(this.renderSession)};(s["openfl._internal.renderer.canvas.CanvasRenderer"]=Rg).__name__=["openfl","_internal","renderer","canvas","CanvasRenderer"],Rg.__super__=eg,Rg.prototype=n(eg.prototype,{render:function(e){this.context.setTransform(1,0,0,1,0,0),this.context.globalAlpha=1,!e.__transparent&&e.__clearBeforeRender?(this.context.fillStyle=e.__colorString,this.context.fillRect(0,0,e.stageWidth,e.stageHeight)):e.__transparent&&e.__clearBeforeRender&&this.context.clearRect(0,0,e.stageWidth,e.stageHeight),e.__renderCanvas(this.renderSession)},__class__:Rg});var Ag=function(){};(s["openfl._internal.renderer.canvas.CanvasTextField"]=Ag).__name__=["openfl","_internal","renderer","canvas","CanvasTextField"],Ag.disableInputMode=function(e){},Ag.enableInputMode=function(e){if(e.__cursorPosition=-1,null==e.__hiddenInput){e.__hiddenInput=window.document.createElement("input");var t=e.__hiddenInput;t.type="text",t.style.position="absolute",t.style.opacity="0",t.style.color="transparent",t.style.left="0px",t.style.top="50%",new V("(iPad|iPhone|iPod).*OS 8_","gi").match(window.navigator.userAgent)?(t.style.fontSize="0px",t.style.width="0px",t.style.height="0px"):(t.style.width="1px",t.style.height="1px"),t.style.pointerEvents="none",t.style.zIndex="-10000000",0e.get_scrollV()+n.bottomScrollV-2)break;var x=Zg.getFont(S.format);m=x.ascent*S.format.size,a.font=x.name,a.fillStyle="#"+Ri.hex(S.format.color,6);var E=h.substring(S.startIndex,S.endIndex),P=new RegExp("\n","g".split("u").join(""));if(E=E.replace(P,""),a.fillText(E,S.offsetX+d,S.offsetY+m+c),-1e.__caretIndex||S.endIndex==n.text.length&&n.text.length==e.__caretIndex)){for(var R=u=0,A=e.__caretIndex-S.startIndex;RMath.max(e.__caretIndex,e.__selectionIndex))){var C,B,D=0|Math.min(e.__selectionIndex,e.__caretIndex),k=0|Math.max(e.__selectionIndex,e.__caretIndex);S.startIndex>D&&(D=S.startIndex),S.endIndex=n.text.length?(B=e.getCharBoundariesInGroup(n.text.length-1,S)).x+=B.width+2:B=e.getCharBoundariesInGroup(k,S),null!=C&&null!=B&&(a.fillStyle="#000000",a.fillRect(C.x,C.y,B.x-C.x,S.height),a.fillStyle="#FFFFFF",a.fillText(h.substring(D,k),d+C.x,S.offsetY+m+c))}}}}else(n.border||n.background)&&(n.border?a.rect(.5,.5,i.width-1,i.height-1):a.rect(0,0,i.width,i.height),n.background&&(a.fillStyle="#"+Ri.hex(n.backgroundColor,6),a.fill()),n.border&&(a.lineWidth=1,a.lineCap="square",a.strokeStyle="#"+Ri.hex(n.borderColor,6),a.stroke()));var F=Km.pool.get();F.copyFrom(l),F.invert(),s.set___bitmap(sw.fromGraphics(s,null,F)),s.__canvas=null,e.__graphicsSavedScale.x=e.renderScaleX,e.__graphicsSavedScale.y=e.renderScaleY,e.__dirty=!1,s.set_dirty(!1),Km.pool.put(l),Km.pool.put(F),cy.pool.put(i),cy.pool.put(r)}else s.__canvas=null,s.__context=null,s.set_dirty(!1),null!=s.__bitmap&&s.__bitmap.dispose(),e.__dirty=!1}};var Ig=function(){};(s["openfl._internal.renderer.opengl.FrameBufferDataItem"]=Ig).__name__=["openfl","_internal","renderer","opengl","FrameBufferDataItem"],Ig.prototype={set:function(e,t,s){this.texture=e,this.viewPort=t,this.transparent=s},__class__:Ig};var Cg=function(){};(s["openfl._internal.renderer.opengl.GLBitmap"]=Cg).__name__=["openfl","_internal","renderer","opengl","GLBitmap"],Cg.render=function(e,t){if(e.isRenderable()&&!(e.__worldAlpha<=0)&&null!=e.bitmapData&&e.bitmapData.get_valid()){var s=Km.pool.get();s.copyFrom(e.__renderTransform);var n=e.bitmapData,i=e.smoothing,r=e.__renderColorTransform,o=e.__renderAlpha,a=e.__blendMode,l=e.__shader,h=e.pixelSnapping;null!=n&&t.spriteBatch.renderBitmapDataEx(n,n.physicalWidth,n.physicalHeight,n.get_uvData(),i,s,r,o,a,l,h),Km.pool.put(s)}},Cg.pushFramebuffer=function(e,t,s,n,i,r,o){null==o&&(o=!0),null==r&&(r=!1),null==i&&(i=!0);var a=e.gl;if(null==a)return null;var l=e.renderer;e.spriteBatch!=l.mainSpriteBatch&&e.spriteBatch.stop();var h=e.renderer,_=0|s.x,u=0|s.y,d=0|s.width,c=0|s.height;if(Cg.fbData.length<=0){var f=Cg.fbDataPool.get();f.texture=null,f.viewPort=null,f.transparent=h.transparent,Cg.fbData.push(f)}null==t&&(t=new Xg(a,d,c,n,o)),t.resize(d,c),h.transparent=i,e.maskManager.saveState(),Vb.context.bindFramebuffer(a.FRAMEBUFFER,(t.__swapped?t.__texture1:t.__texture0).frameBuffer),Lp.__cast(h,Bg).set_renderToTexture(!0),h.setViewport(_,u,d,c),Vb.context.colorMask(!0,!0,!0,!0),e.blendModeManager.setBlendMode(10),r&&(t.__swapped?t.__texture1:t.__texture0).clear(0,0,0,0,null);var p=Cg.fbDataPool.get();return p.texture=t,p.viewPort=s,p.transparent=i,Cg.fbData.push(p),t},Cg.drawBitmapDrawable=function(e,t,s,n,i,r,o){var a=Cg.fbData[Cg.fbData.length-1];if(null==a)throw new Mp("No data to draw to");if(null!=e.gl){if(Lp.__instanceof(s,W)){var l=Lp.__cast(s,W);if(null==l.stage){if(null!=Cg.dataToClean.h.__keys__[l.__id__])Cg.dataToClean.h[l.__id__].stop();var h=Cg.dataToClean,_=Qf.delay(function(){null==l.stage&&l.__releaseResources(),Cg.dataToClean.remove(l)},1);h.set(l,_)}}var u=a.viewPort,d=e.spriteBatch,c=null!=t,f=cy.pool.get();if(null!=i?f.copyFrom(i):f.setTo(u.x,u.y,u.width,u.height),d.begin(e,c?null:f,r,o),c){t.__worldTransform.identity();var p=t.__worldTransform,b=u.height,m=p.tx,g=p.ty;if(p.tx=0,p.ty=0,p.scale(1,-1),p.translate(0,b),p.tx+=m,p.ty-=g,t.__renderGL(e),d.stop(),null!=t.__texture){var w=t.__texture;Vb.textureStateCache.remove(w),Vb.context.deleteTexture(w)}t.__texture=null,d.start(f,null,null)}var v=s.__resolvedCacheAsBitmap,y=s.__blendMode;e.pushRenderTargetBaseTransform(s,n),s.__resolvedCacheAsBitmap=!1,s.__blendMode=null,s.__renderGL(e),s.__blendMode=y,s.__resolvedCacheAsBitmap=v,e.popRenderTargetBaseTransform(),d.finish(),cy.pool.put(f)}},Cg.popFramebuffer=function(e,t){var s=e.gl;if(null!=s){if(e.spriteBatch.finish(),null!=t){var n,i,r,o,a=Cg.fbData[Cg.fbData.length-1];o=null==a.viewPort?(n=i=0,r=e.renderer.width,e.renderer.height):(n=Math.floor(a.viewPort.x),i=Math.floor(a.viewPort.y),r=Math.ceil(a.viewPort.width),Math.ceil(a.viewPort.height)),t.width==r&&t.height==o||t.resize(r,o),Vb.context.readPixels(n,i,r,o,s.RGBA,s.UNSIGNED_BYTE,t.buffer.data),t.dirty=!1,t.set_premultiplied(!0)}Cg.fbDataPool.put(Cg.fbData.pop());var l,h,_,u,d,c=Cg.fbData[Cg.fbData.length-1];if(null==c)throw new Mp("oh");if(u=null==c.viewPort?(l=h=0,_=e.renderer.width,e.renderer.height):(l=Math.floor(c.viewPort.x),h=Math.floor(c.viewPort.y),_=Math.ceil(c.viewPort.width),Math.ceil(c.viewPort.height)),null==c.texture)d=e.defaultFramebuffer;else{var f=c.texture;d=(f.__swapped?f.__texture1:f.__texture0).frameBuffer}Vb.context.bindFramebuffer(s.FRAMEBUFFER,d),Lp.__cast(e.renderer,Bg).set_renderToTexture(1Hg.glMaxTextureSize&&(this.__width=Hg.glMaxTextureSize),this.__height>Hg.glMaxTextureSize&&(this.__height=Hg.glMaxTextureSize);this.gl;var l=this.texture;Vb.currentBoundTexture[Vb.currentActiveTexture]!=l&&(Vb.context.bindTexture(this.gl.TEXTURE_2D,l),null==(Vb.currentBoundTexture[Vb.currentActiveTexture]=l)||Vb.textureStateCache.exists(l)||Vb.textureStateCache.set(l,new lp));this.gl;Vb.context.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.__width,this.__height,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,null)}}},createUVs:function(){null==this.__uvData&&(this.__uvData=new vw);var e=this.width/this.__width,t=this.height/this.__height;this.__uvData.x0=0,this.__uvData.y0=0,this.__uvData.x1=e,this.__uvData.y1=0,this.__uvData.x2=e,this.__uvData.y2=t,this.__uvData.x3=0,this.__uvData.y3=t},powOfTwo:function(e){for(var t=1;t=this.maxSprites&&this.flush(),null!=n){if(null!=h){h.__init(this.gl),h.__shader.wrapS=h.repeatX,h.__shader.wrapT=h.repeatY,h.__shader.smooth=h.smooth,h.__shader.blendMode=h.blendMode;var d=h.data.get(kw.uObjectSize),c=h.data.get(kw.uTextureSize);if(null!=e)if(d.value[0]=e.width,d.value[1]=e.height,null!=e.get_bd().__pingPongTexture){var f=c.value,p=e.get_bd().__pingPongTexture;f[0]=(p.__swapped?p.__texture1:p.__texture0).__width;var b=c.value,m=e.get_bd().__pingPongTexture;b[1]=(m.__swapped?m.__texture1:m.__texture0).__height}else c.value[0]=e.width,c.value[1]=e.height;else d.value[0]=0,d.value[1]=0,c.value[0]=0,c.value[1]=0}var g=(255&(255*a|0))<<24|16777215;this.enableColor=!0,this.enableColor!=this.lastEnableColor&&(this.flush(),this.lastEnableColor=this.enableColor),this.attributes[2].enabled=this.lastEnableColor;for(var w=0,v=0,y=this.attributes;vthis.lineBreaks.length+1?null:0==this.lineBreaks.length?this.text:this.text.substring(0this.numLines-1;)this.lineAscents.push(e),this.lineDescents.push(t),this.lineLeadings.push(null!=s?s:0),this.lineHeights.push(n),this.lineWidths.push(i),s=null,i=n=t=e=0,this.numLines++,this.textHeight<=this.height-2&&this.bottomScrollV++;e=Math.max(e,l.ascent),t=Math.max(t,l.descent),s=null==s?l.leading:0|Math.max(s,l.leading),n=Math.max(n,l.height),this.textHeight=l.offsetY-2+l.ascent+l.descent;for(var h=i=0;hthis.textWidth&&(this.textWidth=i)}}}this.lineAscents.push(e),this.lineDescents.push(t),this.lineLeadings.push(null!=s?s:0),this.lineHeights.push(n),this.lineWidths.push(i),1==this.numLines?(this.bottomScrollV=1,0this.width-4?this.maxScrollH=this.textWidth-this.width+4|0:this.maxScrollH=0,this.maxScrollV=this.numLines-this.bottomScrollV+1},getLayoutGroups:function(){var e=this;this.layoutGroups.splice(0,this.layoutGroups.length),this.lineLayoutGroups.splice(0,this.lineLayoutGroups.length);var t,s=-1,n=null,i=this.textField.get_defaultTextFormat(),r=0,o=0,a=0,l=0,h=[],_=0,u=2,d=2,c=0,f=0,p=this.text.length;if(sthis.width-4){var N=this.text,O=null==c&&null==y?Zg.__context.measureText(N).width:Zg.__context.measureText(N.substring(c,y)).width;if(2==t.offsetX&&Math.floor(t.offsetX+O)>this.width-4){if(null==h||0==h.length){for(var U=this.text,G=[],z=t.startIndex,X=y;zthis.width-4){c=t.startIndex+K,h.splice(c-t.startIndex,y-c);break}++K}K==h.length&&(c=t.startIndex+K),l=this.width-4}var q=c;if(t.startIndex!=q){for(t.endIndex=q,t.width=l,t.advances=h,h=null,e.layoutGroups.push(t);e.lineLayoutGroups.length<=f;)e.lineLayoutGroups.push([]);e.lineLayoutGroups[f].push(t)}for(;" "==e.text.charAt(q);)++q;d+=_,u=2,++f;var Z=n.format;t=new Qg(Z,q,-1);var J=u,Q=2==u;if(Q&&0=n.end){c=n.end;var ie=this.text,re=t.startIndex;if(l=null==re&&null==c?Zg.__context.measureText(ie).width:Zg.__context.measureText(ie.substring(re,c)).width,e.selectable||e.computeAdvances){for(var oe=this.text,ae=[],le=t.startIndex,he=c;leW.__lastMouseListenerBranchDepth)||!r.__visible)||this.__isMask)||null==this.bitmapData)return!1;if(null!=this.__mask&&!this.__mask.__hitTestMask(e,t))return!1;this.__getWorldTransform();var o=this.__worldTransform,a=o.a*o.d-o.b*o.c,l=0==a?-o.tx:1/a*(o.c*(o.ty-t)+o.d*(e-o.tx)),h=this.__worldTransform,_=h.a*h.d-h.b*h.c,u=0==_?-h.ty:1/_*(h.a*(t-h.ty)+h.b*(h.tx-e));return 0>>24&255,this.__image=new kb(null,0,0,e,t,n,i),this.__image.set_transparent(s),this.__isValid=!0),this.__createUVs(),this.__worldTransform=new Km,this.__renderColorTransform=new jm};(s["openfl.display.BitmapData"]=sw).__name__=["openfl","display","BitmapData"],sw.__interfaces__=[tw,r],sw.spritesheet=null,sw.fromBase64=function(e,t,s){var n=new sw(0,0,!0),i=s,r=n;return kb.fromBase64(e,t,function(e){r.__fromImage(e,e.width,e.height),null!=i&&i(r)}),n},sw.fromBytes=function(e,t,s){var n=new sw(0,0,!0),i=t,r=s,o=n;return kb.fromBytes(jy.toBytes(e),function(e){if(o.__fromImage(e,e.width,e.height),null!=i){Yb.convertToCanvas(e),Yb.createImageData(e);for(var t=e.buffer.data,s=0,n=jy.get_length(i);s>16&255)-(h>>16&255))<0&&(u*=-1),(d=(l>>8&255)-(h>>8&255))<0&&(d*=-1),(c=(255&l)-(255&h))<0&&(c*=-1),0==u&&0==d&&0==c?0!=(f=(l>>24&255)-(h>>24&255))&&(_=(255&f)<<24|(255&(_=(255&(_=(255&(_=(255&_>>24)<<24|16711680|(255&_>>8)<<8|255&_)>>24)<<24|(255&_>>16)<<16|65280|255&_)>>24)<<24|(255&_>>16)<<16|(255&_>>8)<<8|255)>>16)<<16|(255&_>>8)<<8|255&_,a=!0):(_=-16777216|(255&(_=(255&(_=(255&(_=(255&_>>24)<<24|(255&u)<<16|(255&_>>8)<<8|255&_)>>24)<<24|(255&_>>16)<<16|(255&d)<<8|255&_)>>24)<<24|(255&_>>16)<<16|(255&_>>8)<<8|255&c)>>16)<<16|(255&_>>8)<<8|255&_,a=!0)),a&&(null==p&&(p=new sw(this.physicalWidth,this.physicalHeight,this.transparent||e.transparent,0)),p.setPixel32(y,g,_))}return null==p?0:p},copyChannel:function(e,t,s,n,i){if(this.__isValid){var r,o;switch(n){case 1:r=Mb.RED;break;case 2:r=Mb.GREEN;break;case 4:r=Mb.BLUE;break;case 8:r=Mb.ALPHA;break;default:return}switch(i){case 1:o=Mb.RED;break;case 2:o=Mb.GREEN;break;case 4:o=Mb.BLUE;break;case 8:o=Mb.ALPHA;break;default:return}this.get_image().copyChannel(e.get_image(),t.__toLimeRectangle(),s.__toLimeVector2(),r,o),this.__usingPingPongTexture=!1}},copyPixels:function(e,t,s,n,i,r){null==r&&(r=!1),this.__isValid&&null!=e&&(this.get_image().copyPixels(e.get_image(),t.__toLimeRectangle(),s.__toLimeVector2(),null!=n?n.get_image():null,null!=i?i.__toLimeVector2():null,r),this.__usingPingPongTexture=!1)},dispose:function(){this.__image=null,this.width=0,this.height=0,this.__isValid=!1;var e=Zm.current.stage.__renderer;if(null!=e&&null!=e.renderSession.gl){if(null!=this.__texture){var t=this.__texture;Vb.textureStateCache.remove(t),Vb.context.deleteTexture(t),this.__texture=null}null!=this.__buffer&&(Vb.context.deleteBuffer(this.__buffer),this.__buffer=null)}null!=this.__pingPongTexture&&(this.__pingPongTexture.destroy(),this.__pingPongTexture=null),null!=this.__uvData&&(vw.pool.put(this.__uvData),this.__uvData=null)},disposeBackBuffer:function(){null!=this.__pingPongTexture&&this.__pingPongTexture.destroyOldRenderTexture()},draw:function(e,t,s,n,i,r,o){if(null==o&&(o=!1),null==r&&(r=!1),this.__isValid){if(null!=s&&!s.__isDefault()||null!=n)throw new Mp(":TODO: Not supported");var a=Zm.current.stage.__renderer.renderSession,l=!0;if(Lp.__instanceof(e,W)){var h=Lp.__cast(e,W);(l=!!h.__visible&&h.isRenderable())||(h.set_visible(!0),h.__update(!1,!0))}e.__updateTransforms(),e.__updateChildren(!0);var _=!this.__usingPingPongTexture;this.__pushFrameBuffer(a,r,!0,!0),Cg.drawBitmapDrawable(a,_?this:null,e,t,i,null,null),Cg.popFramebuffer(a,o?this.__image:null),o||(this.__imageShouldBeSynced=!0);var u=this.__pingPongTexture,d=(u.__swapped?u.__texture1:u.__texture0).__uvData;this.__createUVs(d.x0,d.y0,d.x1,d.y1,d.x2,d.y2,d.x3,d.y3),this.__isValid=!0,this.__usingPingPongTexture=!0,Lp.__instanceof(e,W)&&!l&&Lp.__cast(e,W).set_visible(l)}},encode:function(e,t,s){return this.__isValid&&null!=e?Lp.__instanceof(t,Cw)?jy.fromBytes(this.get_image().encode("png")):Lp.__instanceof(t,xw)?jy.fromBytes(this.get_image().encode("jpg",Lp.__cast(t,xw).quality)):null:null},fillRect:function(e,t){this.__isValid&&null!=e&&(this.transparent&&0==(-16777216&t)&&(t=0),this.get_image().fillRect(e.__toLimeRectangle(),t,1),this.__usingPingPongTexture=!1)},floodFill:function(e,t,s){this.__isValid&&(this.get_image().floodFill(e,t,s,1),this.__usingPingPongTexture=!1)},generateFilterRect:function(e,t){return e.clone()},getBuffer:function(e){if(null==this.__buffer){var t=[this.width,this.height,0,1,1,0,this.height,0,0,1,this.width,0,0,1,0,0,0,0,0,0];this.__buffer=Vb.context.createBuffer(),Vb.context.bindBuffer(e.ARRAY_BUFFER,this.__buffer);var s,n=e.ARRAY_BUFFER;s=null!=t?new GT(t):null,Vb.context.bufferData(n,s,e.STATIC_DRAW),Vb.context.bindBuffer(e.ARRAY_BUFFER,null)}return this.__buffer},getColorBoundsRect:function(e,t,s){if(null==s&&(s=!0),!this.__isValid)return new cy(0,0,this.width,this.height);if(!this.transparent||0<(e>>24&255)){0==(t>>24&255)&&0}var n=this.get_image().getColorBoundsRect(e,t,s,1);return new cy(n.x,n.y,n.width,n.height)},getPixel:function(e,t){return this.__isValid?this.get_image().getPixel(e,t,1):0},getPixel32:function(e,t){return this.__isValid?this.get_image().getPixel32(e,t,1):0},getPixels:function(e){return this.__isValid?(null==e&&(e=cy.__temp,this.getPhysicalRect(e)),jy.fromBytes(this.get_image().getPixels(e.__toLimeRectangle(),1))):null},getTexture:function(e){if(!this.__isValid)return null;if(this.__usingPingPongTexture&&null!=this.__pingPongTexture){var t=this.__pingPongTexture;return t.useOldTexture?(t.__swapped?t.__texture0:t.__texture1).texture:(t.__swapped?t.__texture1:t.__texture0).texture}if(null==this.__texture){this.__texture=Vb.context.createTexture();var s=this.__texture;Vb.currentBoundTexture[Vb.currentActiveTexture]!=s&&(Vb.context.bindTexture(e.TEXTURE_2D,s),null==(Vb.currentBoundTexture[Vb.currentActiveTexture]=s)||Vb.textureStateCache.exists(s)||Vb.textureStateCache.set(s,new lp));var n=e.TEXTURE_2D,i=e.TEXTURE_WRAP_S,r=e.CLAMP_TO_EDGE,o=Vb.currentBoundTexture[Vb.currentActiveTexture],a=Vb.textureStateCache.get(o);a.h[i]!=r&&(Vb.context.texParameteri(n,i,r),a.h[i]=r);var l=e.TEXTURE_2D,h=e.TEXTURE_WRAP_T,_=e.CLAMP_TO_EDGE,u=Vb.currentBoundTexture[Vb.currentActiveTexture],d=Vb.textureStateCache.get(u);d.h[h]!=_&&(Vb.context.texParameteri(l,h,_),d.h[h]=_);var c=e.TEXTURE_2D,f=e.TEXTURE_MAG_FILTER,p=e.LINEAR,b=Vb.currentBoundTexture[Vb.currentActiveTexture],m=Vb.textureStateCache.get(b);m.h[f]!=p&&(Vb.context.texParameteri(c,f,p),m.h[f]=p);var g=e.TEXTURE_2D,w=e.TEXTURE_MIN_FILTER,v=e.LINEAR,y=Vb.currentBoundTexture[Vb.currentActiveTexture],T=Vb.textureStateCache.get(y);T.h[w]!=v&&(Vb.context.texParameteri(g,w,v),T.h[w]=v),this.__image.dirty=!0}if(null!=this.__image&&this.__image.dirty){var S,x;x=1==this.__image.buffer.bitsPerPixel?(S=e.ALPHA,e.ALPHA):(S=e.RGBA,e.RGBA);var E=this.__texture;Vb.currentBoundTexture[Vb.currentActiveTexture]!=E&&(Vb.context.bindTexture(e.TEXTURE_2D,E),null==(Vb.currentBoundTexture[Vb.currentActiveTexture]=E)||Vb.textureStateCache.exists(E)||Vb.textureStateCache.set(E,new lp));var P=this.__image,R=e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,A=!P.get_premultiplied()&&P.get_transparent()?1:0;Vb.context.pixelStorei(R,A);var I=P.buffer.get_glCompatibleBuffer();if(null==I){var C=e.TEXTURE_2D,B=this.physicalWidth,D=this.physicalHeight,k=e.UNSIGNED_BYTE,F=P.get_data();Vb.context.texImage2D(C,0,S,B,D,0,x,k,F)}else Vb.context.texImage2D(e.TEXTURE_2D,0,S,x,e.UNSIGNED_BYTE,I);this.__image.dirty=!1,this.__keepSource||null==this.__image.buffer.__srcCanvas||(Eg.pool.put(this.__image.buffer.__srcCanvas),this.__image.buffer.__srcCanvas=null,this.__image=null)}return this.__texture},getVector:function(e){var t=this.getPixels(e),s=jy.get_length(t)/4|0,n=new ha,i=new Array(s);n.data=i,n.length=s,n.fixed=!0;for(var r=n,o=0,a=s;o=r.length&&(r.length=l+1),r.data.length>24&255))return!0}}return!1},lock:function(){},merge:function(e,t,s,n,i,r,o){this.__isValid&&null!=e&&e.__isValid&&null!=t&&null!=s&&(this.get_image().merge(e.get_image(),t.__toLimeRectangle(),s.__toLimeVector2(),n,i,r,o),this.__usingPingPongTexture=!1)},noise:function(e,t,s,n,i){if(null==i&&(i=!1),null==n&&(n=7),null==s&&(s=255),null==t&&(t=0),this.__isValid){var r=function(){return e=1103515245*e+12345,(0|Math.abs(e/65536))%32768};r();for(var o=s-t,a=1==(1&n),l=(2&n)>>1==1,h=(4&n)>>2==1,_=(8&n)>>3==1,u=0,d=this.physicalHeight;u>24&255])>>24&255)+((f=null==n?16711680&a:n[a>>16&255])>>24&255)+((p=null==i?65280&a:i[a>>8&255])>>24&255)+((b=null==r?255&a:r[255&a])>>24&255))&&(u=255),255<(l=(c>>16&255)+(f>>16&255)+(p>>16&255)+(b>>16&255))&&(l=255),255<(h=(c>>8&255)+(f>>8&255)+(p>>8&255)+(b>>8&255))&&(h=255),255<(_=(255&c)+(255&f)+(255&p)+(255&b))&&(_=255),d=u<<24|l<<16|h<<8|_,w.position=4*T,w.writeUnsignedInt(d)}w.position=0;var S=new cy(s.x,s.y,m,g);this.setPixels(S,w)},perlinNoise:function(e,t,s,n,i,r,o,a,l){null==a&&(a=!1),null==o&&(o=7),Zm.notImplemented("BitmapData.perlinNoise")},scroll:function(e,t){this.__isValid&&(this.get_image().scroll(e,t),this.__usingPingPongTexture=!1)},setPixel:function(e,t,s){this.__isValid&&(this.get_image().setPixel(e,t,s,1),this.__usingPingPongTexture=!1)},setPixel32:function(e,t,s){this.__isValid&&(this.get_image().setPixel32(e,t,s,1),this.__usingPingPongTexture=!1)},setPixels:function(e,t){this.__isValid&&null!=e&&(this.get_image().setPixels(e.__toLimeRectangle(),jy.toBytes(t),1),this.__usingPingPongTexture=!1)},setVector:function(e,t){var s=new Uf(0);jy.set_length(s,4*t.length);for(var n=0;ne.width||t.y>e.height||s.x>this.width||s.y>this.height?0:this.get_image().threshold(e.get_image(),t.__toLimeRectangle(),s.__toLimeVector2(),n,i,r,o,a,1)},unlock:function(e){},__createUVs:function(e,t,s,n,i,r,o,a){null==a&&(a=1),null==o&&(o=0),null==r&&(r=1),null==i&&(i=1),null==n&&(n=0),null==s&&(s=1),null==t&&(t=0),null==e&&(e=0),null==this.__uvData&&(this.__uvData=vw.pool.get()),this.__uvData.x0=e,this.__uvData.y0=t,this.__uvData.x1=s,this.__uvData.y1=n,this.__uvData.x2=i,this.__uvData.y2=r,this.__uvData.x3=o,this.__uvData.y3=a},__pushFrameBuffer:function(e,t,s,n){null==n&&(n=!0),null==s&&(s=!1),null==t&&(t=!1);var i=cy.pool.get();this.getPhysicalRect(i),this.__pingPongTexture=Cg.pushFramebuffer(e,this.__pingPongTexture,i,t,this.transparent,s,n),cy.pool.put(i)},__drawGL:function(e,t,s,n,i,r,o,a,l,h,_){null==l&&(l=!0),null==a&&(a=!1),null==o&&(o=!1),null==r&&(r=!1),null==i&&(i=!1),this.__pushFrameBuffer(e,i,o,l),Cg.drawBitmapDrawable(e,r?this:null,t,s,n,h,_),Cg.popFramebuffer(e,a?this.__image:null),a||(this.__imageShouldBeSynced=!0);var u=this.__pingPongTexture,d=(u.__swapped?u.__texture1:u.__texture0).__uvData;this.__createUVs(d.x0,d.y0,d.x1,d.y1,d.x2,d.y2,d.x3,d.y3),this.__isValid=!0,this.__usingPingPongTexture=!0},__popFrameBuffer:function(e,t){null==t&&(t=!1),Cg.popFramebuffer(e,t?this.__image:null),t||(this.__imageShouldBeSynced=!0);var s=this.__pingPongTexture,n=(s.__swapped?s.__texture1:s.__texture0).__uvData;this.__createUVs(n.x0,n.y0,n.x1,n.y1,n.x2,n.y2,n.x3,n.y3),this.__isValid=!0,this.__usingPingPongTexture=!0},__fromBase64:function(e,t,s){var n=this;kb.fromBase64(e,t,function(e){n.__fromImage(e,e.width,e.height),null!=s&&s(n)})},__fromBytes:function(e,i,r){var o=this;kb.fromBytes(jy.toBytes(e),function(e){if(o.__fromImage(e,e.width,e.height),null!=i){Yb.convertToCanvas(e),Yb.createImageData(e);for(var t=e.buffer.data,s=0,n=jy.get_length(i);sthis.__positionX||ithis.__positionX||ithis.__positionX||rthis.__positionX||rthis.__positionX||sthis.__positionY||nthis.__strokePadding&&(this.__strokePadding=e):e/2>this.__strokePadding&&(this.__strokePadding=e/2)),this.__commands.lineStyle(e,t,s,n,i,r,o,a),null!=e&&(this.__visible=!0)},lineTo:function(e,t){this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding),this.__positionX=e,this.__positionY=t,this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+2*this.__strokePadding,this.__positionY+this.__strokePadding),this.__commands.lineTo(e,t),this.set_dirty(!0)},moveTo:function(e,t){this.__positionX=e,this.__positionY=t,this.__commands.moveTo(e,t)},createTextures:function(e){for(var t=this.__commands.bd,s=0;s=t._length?null:t._items[s];++s,n.getTexture(e)}},__calculateBezierCubicPoint:function(e,t,s,n,i){var r=1-e;return t*(r*r*r)+3*s*e*(r*r)+3*n*r*(e*e)+i*(e*e*e)},__calculateBezierQuadPoint:function(e,t,s,n){var i=1-e;return i*i*t+2*i*e*s+e*e*n},__getBounds:function(e){null!=this.__bounds?e.copyFrom(this.__bounds):e.setEmpty()},__hitTest:function(e,t,s,n){if(null==this.__bounds)return!1;var i=n.a*n.d-n.b*n.c,r=0==i?-n.tx:1/i*(n.c*(n.ty-t)+n.d*(e-n.tx)),o=n.a*n.d-n.b*n.c,a=0==o?-n.ty:1/o*(n.a*(t-n.ty)+n.b*(n.tx-e));return!!this.__bounds.contains(r,a)&&(!s||Eg.hitTest(this,r,a))},__inflateBounds:function(e,t){null!=this.__bounds?(ethis.__bounds.x+this.__bounds.width&&(this.__bounds.width=e-this.__bounds.x),t>this.__bounds.y+this.__bounds.height&&(this.__bounds.height=t-this.__bounds.y)):this.__bounds=new cy(e,t,0,0)},dispose:function(e){null==e&&(e=!0),this.set___bitmap(null),this.__dirty=!0,this.set_dirty(!0),e&&null!=this.__symbol&&Lp.__instanceof(this.__symbol,Va)&&this.__symbol.unregisterGraphics(this)},__disposeBitmap:function(){this.set___bitmap(null),this.__dirty=!0},set_dirty:function(e){if(e&&null!=this.__owner){var t=this.__owner;t.__updateCachedBitmap=!0,t.__updateFilters=null!=t.__filters&&0=t._length?null:t._items[n],e.acquire();for(var i=0,r=s-1;i=t._length?null:t._items[o]).__broadcast(e,!1),e.__isCanceled)return void e.release()}if(e.eventPhase=2,e.target.__broadcast(e,!1),e.__isCanceled)return void e.release();if(e.bubbles){e.eventPhase=3;for(var a=s-2;0<=a;){if((a>=t._length?null:t._items[a]).__broadcast(e,!1),e.__isCanceled)return void e.release();--a}}e.release()}},Lw.__super__=j,Lw.prototype=n(j.prototype,{invalidate:function(){this.__invalidated=!0},onGamepadAxisMove:function(e,t,s){Xy.__onGamepadAxisMove(e,t,s)},onGamepadButtonDown:function(e,t){Xy.__onGamepadButtonDown(e,t)},onGamepadButtonUp:function(e,t){Xy.__onGamepadButtonUp(e,t)},onGamepadConnect:function(e){Xy.__onGamepadConnect(e)},onGamepadDisconnect:function(e){Xy.__onGamepadDisconnect(e)},onJoystickAxisMove:function(e,t,s){},onJoystickButtonDown:function(e,t){},onJoystickButtonUp:function(e,t){},onJoystickConnect:function(e){},onJoystickDisconnect:function(e){},onJoystickHatMove:function(e,t,s){},onJoystickTrackballMove:function(e,t,s){},onKeyDown:function(e,t,s){null!=this.window&&this.window==e&&this.__onKey("keyDown",t,s)},onKeyUp:function(e,t,s){null!=this.window&&this.window==e&&this.__onKey("keyUp",t,s)},onModuleExit:function(e){null!=this.window&&this.__broadcastFromStage(_a.__create("deactivate"),!0)},onMouseDown:function(e,t,s,n){if(null!=this.window&&this.window==e){var i;switch(n){case 1:i="middleMouseDown";break;case 2:i="rightMouseDown";break;default:i="mouseDown"}this.__onMouse(i,t*e.__scale|0,s*e.__scale|0,n)}},onMouseMove:function(e,t,s){null!=this.window&&this.window==e&&this.__onMouse("mouseMove",t*e.__scale|0,s*e.__scale|0,0)},onMouseMoveRelative:function(e,t,s){},onMouseUp:function(e,t,s,n){if(null!=this.window&&this.window==e){var i;switch(n){case 1:i="middleMouseUp";break;case 2:i="rightMouseUp";break;default:i="mouseUp"}this.__onMouse(i,t*e.__scale|0,s*e.__scale|0,n)}},onMouseWheel:function(e,t,s){null!=this.window&&this.window==e&&this.__onMouseWheel(t*e.__scale|0,s*e.__scale|0)},onPreloadComplete:function(){},onPreloadProgress:function(e,t,s){},onRenderContextLost:function(e){},onRenderContextRestored:function(e,t){},onTextEdit:function(e,t,s,n){},onTextInput:function(e,t){if(null!=this.window&&this.window==e){for(var s=this.__stack,n=0,i=s._length;n=t.__children._length){var r=this.__allChildrenTempStack;r._items[--r._length];if(r._items[r._length]=null,0=h._length?null:h._items[i])&&(t.__branchDirty=!1,t.__branchDepth=null!=t.parent?t.parent.__branchDepth+1:0,e._items[e._length++]=t);var _=this.__allChildrenTempStack;_._items[_._length++]=0}}},__updateAllChildrenStack:function(){if(0!=W.__worldBranchDirty){W.__worldBranchDirty=0;var e=this.__pingPongIndex;this.__pingPongIndex^=1;for(var t=this.__pingPongChildrenStack[e],s=this.__pingPongChildrenStack[this.__pingPongIndex],n=0;n=t._length?null:t._items[n];if(i.__branchDirty){this.__concatDepthFirstChildren(s,i);for(var r=i.__branchDepth,o=n;++o=t._length?null:t._items[o]).__branchDepth<=r)break}n=o}else++n,s._items[s._length++]=i}for(var a=0,l=t._length;a=n._length?null:n._items[s]).stage&&t.__enterFrame(e),++s}},__broadcastFromStage:function(e,t){var s;if(null==e.target&&(e.target=this),e.acquire(),null!=this.__eventMap&&this.hasEventListener(e.type)){var n;if(e.acquire(),null==this.__eventMap||null==e)e.release(),n=!1;else{var i,r=e.type;if(this.__dispatching.get(r)?(null==(i=this.__newEventMap.get(r))&&(i=this.__eventMap.get(r)),null!=i&&(i=i.slice())):null!=(i=this.__eventMap.get(r))&&this.__dispatching.set(r,!0),null!=i){var o=null;o=null==e.target?null!=this.__targetDispatcher?this.__targetDispatcher:this:e.target;for(var a,l=1==e.eventPhase,h=0;h=c._length?null:c._items[d]).stage==this&&null!=u.__eventMap&&u.hasEventListener(e.type)){if(e.acquire(),null==u.__eventMap||null==e)e.release(),!1;else{var f,p=e.type;if(u.__dispatching.get(p)?(null==(f=u.__newEventMap.get(p))&&(f=u.__eventMap.get(p)),null!=f&&(f=f.slice())):null!=(f=u.__eventMap.get(p))&&u.__dispatching.set(p,!0),null!=f){var b=null;b=null==e.target?null!=u.__targetDispatcher?u.__targetDispatcher:u:e.target;for(var m,g=1==e.eventPhase,w=0;wthis.__dragBounds.get_right()&&(s=this.__dragBounds.get_right()),nthis.__dragBounds.get_bottom()&&(n=this.__dragBounds.get_bottom())),this.__dragObject.set_x(s),this.__dragObject.set_y(n)},__getInteractive:function(e){return null!=e&&(e._items[e._length++]=this),!0},__onKey:function(e,t,s){Pv.__altKey=Im.get_altKey(s),Pv.__commandKey=Im.get_metaKey(s),Pv.__ctrlKey=Im.get_ctrlKey(s),Pv.__shiftKey=Im.get_shiftKey(s);for(var n=this.__stack,i=0,r=n._length;i=f._length?null:f._items[p]}else{for(var b=(a=this).__stack,m=0,g=b._length;m=M._length?null:M._items[F]).__getCursor())){Cm.set_cursor(B);break}}if(null==B&&Cm.set_cursor(Bm.ARROW),0=L._length?null:L._items[N])!=(U>=O._length?null:O._items[U])}else C=!1;else C=!0;else C=!1;if(C){for(var G=this.__outElements,z=0,X=G._length;z=q._length?null:q._items[ee]}for(var te=K._length,se=Z;te=ae._length?null:ae._items[oe])!=(oe>=le._length?null:le._items[oe])){var he=i.__outElements,_e=i.__mouseOutStack,ue=he._length;he._length=_e._length-oe;for(var de=0,ce=he._length;de=_e._length?null:_e._items[pe]}for(var be=he._length,me=ue;be=ve._length?null:ve._items[Ee]}for(var Pe=we._length,Re=ye;Pe=Ie._length?null:Ie._items[Ce];if(h.copyFrom(l),null!=Be.stage){var De=Be.stage.__getWorldTransform(),ke=h.x,Fe=h.y;h.x=ke*De.a+Fe*De.c+De.tx,h.y=ke*De.b+Fe*De.d+De.ty}var Me=Be.__getWorldTransform(),Le=Me.a*Me.d-Me.b*Me.c;if(0==Le)h.x=-Me.tx,h.y=-Me.ty;else{var Ne=1/Le*(Me.c*(Me.ty-h.y)+Me.d*(h.x-Me.tx));h.y=1/Le*(Me.a*(h.y-Me.ty)+Me.b*(Me.tx-h.x)),h.x=Ne}(I=Pv.__create("mouseOut",r,o,h,Be,i)).bubbles=!0,Be.__dispatchEvent(I)}for(var Oe=this.__outElements._length-1;0<=Oe;){var Ue=this.__outElements,Ge=Oe>=Ue._length?null:Ue._items[Oe];if(Ge.hasEventListener("rollOut")){if(h.copyFrom(l),null!=Ge.stage){var ze=Ge.stage.__getWorldTransform(),Xe=h.x,He=h.y;h.x=Xe*ze.a+He*ze.c+ze.tx,h.y=Xe*ze.b+He*ze.d+ze.ty}var Ve=Ge.__getWorldTransform(),Ye=Ve.a*Ve.d-Ve.b*Ve.c;if(0==Ye)h.x=-Ve.tx,h.y=-Ve.ty;else{var We=1/Ye*(Ve.c*(Ve.ty-h.y)+Ve.d*(h.x-Ve.tx));h.y=1/Ye*(Ve.a*(h.y-Ve.ty)+Ve.b*(Ve.tx-h.x)),h.x=We}(I=Pv.__create("rollOut",r,o,h,Ge,i)).bubbles=!1,Ge.__dispatchEvent(I)}--Oe}for(var je=0,Ke=this.__inElements;je=Ke._length?null:Ke._items[je];if(++je,qe.hasEventListener("rollOver")){if(h.copyFrom(l),null!=qe.stage){var Ze=qe.stage.__getWorldTransform(),Je=h.x,Qe=h.y;h.x=Je*Ze.a+Qe*Ze.c+Ze.tx,h.y=Je*Ze.b+Qe*Ze.d+Ze.ty}var $e=qe.__getWorldTransform(),et=$e.a*$e.d-$e.b*$e.c;if(0==et)h.x=-$e.tx,h.y=-$e.ty;else{var tt=1/et*($e.c*($e.ty-h.y)+$e.d*(h.x-$e.tx));h.y=1/et*($e.a*(h.y-$e.ty)+$e.b*($e.tx-h.x)),h.x=tt}(I=Pv.__create("rollOver",r,o,h,qe,i)).bubbles=!1,qe.__dispatchEvent(I)}}var st=this.__stack,nt=this.__stack._length-1,it=nt>=st._length?null:st._items[nt];if(h.copyFrom(l),null!=it.stage){var rt=it.stage.__getWorldTransform(),ot=h.x,at=h.y;h.x=ot*rt.a+at*rt.c+rt.tx,h.y=ot*rt.b+at*rt.d+rt.ty}var lt=it.__getWorldTransform(),ht=lt.a*lt.d-lt.b*lt.c;if(0==ht)h.x=-lt.tx,h.y=-lt.ty;else{var _t=1/ht*(lt.c*(lt.ty-h.y)+lt.d*(h.x-lt.tx));h.y=1/ht*(lt.a*(h.y-lt.ty)+lt.b*(lt.tx-h.x)),h.x=_t}(I=Pv.__create("mouseOver",r,o,h,it,i)).bubbles=!0,it.__dispatchEvent(I)}null!=this.__dragObject&&this.__drag(l);var ut=this.__mouseOutStack,dt=this.__stack,ct=ut._length;ut._length=dt._length;for(var ft=0,pt=ut._length;ft=dt._length?null:dt._items[mt]}for(var gt=ut._length,wt=ct;gt=c._length?null:c._items[f],b=qm.pool.get();b.setTo(s,n);var m=0|t;Lw.fireEvent(Pv.__create("mouseWheel",this.__mouseX,this.__mouseY,p==this?b:p.globalToLocal(b),p,this,m),this.__stack),qm.pool.put(b)},__onTouch:function(e,t){this.__mouseX=t.x*this.stageWidth,this.__mouseY=t.y*this.stageHeight;var s=this.__mouseX/this.get_scaleX(),n=this.__mouseY/this.get_scaleY(),i=null,r=qm.pool.get(),o=qm.pool.get();r.setTo(this.get_mouseX(),this.get_mouseY());for(var a=this.__stack,l=0,h=a._length;l=u._length?null:u._items[d]}else{for(var c=(i=this).__stack,f=0,p=c._length;f=n._length?null:n._items[s];i.__updateDirty&&i.__update(e,t),++s}t&&(W.__worldTransformDirty=0,e||(W.__worldRenderDirty=0),this.__dirty=e)}},canvas_onContextLost:function(e){},canvas_onContextRestored:function(e){},get_color:function(){return this.__color},set_color:function(e){var t=(16711680&e)>>>16,s=(65280&e)>>>8,n=255&e;return this.__colorSplit=[t/255,s/255,n/255],this.__colorString="#"+Ri.hex(e,6),this.__color=e},get_displayState:function(){return this.__displayState},set_displayState:function(e){return null!=this.window&&(2==e?this.window.__fullscreen&&(this.window.set_fullscreen(!1),this.dispatchEvent(new yv("fullScreen",!1,!1,!1,!0))):this.window.__fullscreen||(this.window.set_fullscreen(!0),this.dispatchEvent(new yv("fullScreen",!1,!1,!0,!0)))),this.__displayState=e},get_focus:function(){return this.__focus},set_focus:function(e){if(e!=this.__focus){var t=this.__focus;if(this.__focus=e,null!=t){for(var s=new vv("focusOut",!0,!1,this.__focus,!1,0),n=this.__focusStack,i=0,r=n._length;i>>16)<<16|(255&(16777215&this.colors[0])>>>8)<<8|255&this.colors[0],r=(255&Math.round(255*this.alphas[0]))<<24|(255&(16777215&this.colors[0])>>>16)<<16|(255&(16777215&this.colors[0])>>>8)<<8|255&this.colors[0],o=this.__lookupTexture.physicalWidth,a=0,l=o;a>>16)<<16|(255&(16777215&this.colors[t])>>>8)<<8|255&this.colors[t],i=(255&Math.round(255*this.alphas[u]))<<24|(255&(16777215&this.colors[u])>>>16)<<16|(255&(16777215&this.colors[u])>>>8)<<8|255&this.colors[u],s=Math.max(Math.min(this.ratios[u]/255,1),0)}for(var d=(_-s)/(n-s),c=Gt.toFloat((16777215&i)>>>16&255)/Gt.toFloat(255),f=Gt.toFloat((16777215&i)>>>8&255)/Gt.toFloat(255),p=Gt.toFloat(255&i)/Gt.toFloat(255),b=Gt.toFloat(i>>>24)/Gt.toFloat(255),m=255*(c+(Gt.toFloat((16777215&r)>>>16&255)/Gt.toFloat(255)-c)*d)|0,g=255*(f+(Gt.toFloat((16777215&r)>>>8&255)/Gt.toFloat(255)-f)*d)|0,w=255*(p+(Gt.toFloat(255&r)/Gt.toFloat(255)-p)*d)|0|g<<8|m<<16|(255*(b+(Gt.toFloat(r>>>24)/Gt.toFloat(255)-b)*d)|0)<<24,v=0,y=this.__lookupTexture.physicalHeight;v= fetch_count) break;"," result += texture2D("+kw.uSampler+", "+kw.vTexCoord+" + texcoord_delta * float(i)) * uWeightTable[i];","}","\tgl_FragColor = clamp(result, 0.0, 1.0);","}"],this.vertex=["uniform vec2 openfl_uScaleVector;","uniform vec2 uTexCoordOffset;","void main(void)","{","vec2 texcoord_offset = uTexCoordOffset / "+kw.uTextureSize+";",kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+" - texcoord_offset;",kw.vColor+" = "+kw.aColor+";","gl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);","}"],kw.call(this),Vv.addShader(this),this.data.set("openfl_uScaleVector",this.__openfl_uScaleVector),this.data.set("uTexCoordOffset",this.__uTexCoordOffset),this.data.set("uTexCoordDelta",this.__uTexCoordDelta),this.data.set("uFetchCount",this.__uFetchCount),this.__buildVertexCode("uniform vec2 openfl_uScaleVector;\nuniform vec2 uTexCoordOffset;\nvoid main(void)\n{\nvec2 texcoord_offset = uTexCoordOffset / "+kw.uTextureSize+";\n"+kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+" - texcoord_offset;\n"+kw.vColor+" = "+kw.aColor+";\ngl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);\n}"),this.__buildFragmentCode("uniform vec2 uTexCoordDelta;\nuniform float uFetchCount;\nuniform float uWeightTable[32];\nvoid main(void)\n{\nvec2 texcoord_delta = uTexCoordDelta / "+kw.uTextureSize+";\nint fetch_count = int(uFetchCount);\nvec4 result = vec4(0.0);\nfor(int i = 0; i < 32; ++i){\n if (i >= fetch_count) break;\n result += texture2D("+kw.uSampler+", "+kw.vTexCoord+" + texcoord_delta * float(i)) * uWeightTable[i];\n}\n\tgl_FragColor = clamp(result, 0.0, 1.0);\n}")};(s["openfl.filters.commands._Blur1DCommand.BlurShader"]=Hv).__name__=["openfl","filters","commands","_Blur1DCommand","BlurShader"],Hv.__super__=kw,Hv.prototype=n(kw.prototype,{get_openfl_uScaleVector:function(){return this.__openfl_uScaleVector.value},set_openfl_uScaleVector:function(e){var t=this.__openfl_uScaleVector;if(4==t.internalType)throw new Mp("This parameter doesn't accept a value, use bitmap instead");return t.value=e},get_uTexCoordOffset:function(){return this.__uTexCoordOffset.value},set_uTexCoordOffset:function(e){var t=this.__uTexCoordOffset;if(4==t.internalType)throw new Mp("This parameter doesn't accept a value, use bitmap instead");return t.value=e},get_uTexCoordDelta:function(){return this.__uTexCoordDelta.value},set_uTexCoordDelta:function(e){var t=this.__uTexCoordDelta;if(4==t.internalType)throw new Mp("This parameter doesn't accept a value, use bitmap instead");return t.value=e},get_uFetchCount:function(){return this.__uFetchCount.value[0]},set_uFetchCount:function(e){return this.__uFetchCount.value[0]=e},__class__:Hv,__properties__:{set_uFetchCount:"set_uFetchCount",get_uFetchCount:"get_uFetchCount",set_uTexCoordDelta:"set_uTexCoordDelta",get_uTexCoordDelta:"get_uTexCoordDelta",set_uTexCoordOffset:"set_uTexCoordOffset",get_uTexCoordOffset:"get_uTexCoordOffset",set_openfl_uScaleVector:"set_openfl_uScaleVector",get_openfl_uScaleVector:"get_openfl_uScaleVector"}});var Vv=function(){};(s["openfl.filters.commands.CommandHelper"]=Vv).__name__=["openfl","filters","commands","CommandHelper"],Vv.vertexArray=null,Vv.shaderTable=null,Vv.addShader=function(e){null==Vv.shaderTable&&(Vv.shaderTable=[]),Vv.shaderTable.push(e)},Vv.initialize=function(e){var t=[];t.push(new qg(2,5126,!1,"openfl_aPosition")),t.push(new qg(2,5126,!1,"openfl_aTexCoord0")),Vv.vertexArray=new Kg(t,64,!0);var s=Vv.vertexArray.buffer,n=null!=s?new GT(s,0):null;if(n[0]=0,n[1]=0,n[4]=1,n[5]=0,n[8]=0,n[9]=1,n[12]=1,n[13]=1,n[2]=0,n[3]=0,n[6]=1,n[7]=0,n[10]=0,n[11]=1,n[14]=1,n[15]=1,Vv.vertexArray.setContext(e.gl,n),null!=Vv.shaderTable)for(var i=0,r=Vv.shaderTable;i>1,k=0,F=0,M=(_=_.subarray(D,C-D)).length;F>16&255)/255,Jv.__shader.__uColor.value[1]=(n>>8&255)/255,Jv.__shader.__uColor.value[2]=(255&n)/255,Jv.__shader.__uColor.value[3]=i,Vv.apply(e,t,s,Jv.__shader,s==t)};var Qv=function(){this.__uSource1Sampler=new Fw("sampler2D",0),this.__openfl_uScaleVector=new Fw("vec2",0),this.fragment=["uniform sampler2D uSource1Sampler;","void main(void)","{","vec4 src2 = texture2D("+kw.uSampler+", "+kw.vTexCoord+");","vec4 src1 = texture2D(uSource1Sampler, "+kw.vTexCoord+");","gl_FragColor = src2 + src1 * (1.0 - src2.a);","}"],this.vertex=["uniform vec2 openfl_uScaleVector;","void main(void)","{",kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+";","gl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);","}"],kw.call(this),Vv.addShader(this),this.data.set("openfl_uScaleVector",this.__openfl_uScaleVector),this.data.set("uSource1Sampler",this.__uSource1Sampler),this.__buildVertexCode("uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n"+kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+";\ngl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);\n}"),this.__buildFragmentCode("uniform sampler2D uSource1Sampler;\nvoid main(void)\n{\nvec4 src2 = texture2D("+kw.uSampler+", "+kw.vTexCoord+");\nvec4 src1 = texture2D(uSource1Sampler, "+kw.vTexCoord+");\ngl_FragColor = src2 + src1 * (1.0 - src2.a);\n}")};(s["openfl.filters.commands._CombineCommand.CombineShader"]=Qv).__name__=["openfl","filters","commands","_CombineCommand","CombineShader"],Qv.__super__=kw,Qv.prototype=n(kw.prototype,{get_openfl_uScaleVector:function(){return this.__openfl_uScaleVector.value},set_openfl_uScaleVector:function(e){var t=this.__openfl_uScaleVector;if(4==t.internalType)throw new Mp("This parameter doesn't accept a value, use bitmap instead");return t.value=e},get_uSource1Sampler:function(){return this.__uSource1Sampler.bitmap},set_uSource1Sampler:function(e){var t=this.__uSource1Sampler;if(4!=t.internalType)throw new Mp("This parameter doesn't accept a bitmap, use value instead");return t.bitmap=e},__class__:Qv,__properties__:{set_uSource1Sampler:"set_uSource1Sampler",get_uSource1Sampler:"get_uSource1Sampler",set_openfl_uScaleVector:"set_openfl_uScaleVector",get_openfl_uScaleVector:"get_openfl_uScaleVector"}});var $v=function(){};(s["openfl.filters.commands.CombineCommand"]=$v).__name__=["openfl","filters","commands","CombineCommand"],$v.apply=function(e,t,s,n){var i=$v.__shader.__uSource1Sampler;if(4!=i.internalType)throw new Mp("This parameter doesn't accept a bitmap, use value instead");i.bitmap=s,Vv.apply(e,t,n,$v.__shader,s==t||n==t)};var ey=function(){this.__uSource1Sampler=new Fw("sampler2D",0),this.__openfl_uScaleVector=new Fw("vec2",0),this.fragment=["uniform sampler2D uSource1Sampler;","void main(void)","{","vec4 src2 = texture2D("+kw.uSampler+", "+kw.vTexCoord+");","vec4 src1 = texture2D(uSource1Sampler, "+kw.vTexCoord+");","gl_FragColor = clamp(src1 * (1.0 - src2.a) + src1.a * src2, 0.0, 1.0);","}"],this.vertex=["uniform vec2 openfl_uScaleVector;","void main(void)","{",kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+";","gl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);","}"],kw.call(this),Vv.addShader(this),this.data.set("openfl_uScaleVector",this.__openfl_uScaleVector),this.data.set("uSource1Sampler",this.__uSource1Sampler),this.__buildVertexCode("uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n"+kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+";\ngl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);\n}"),this.__buildFragmentCode("uniform sampler2D uSource1Sampler;\nvoid main(void)\n{\nvec4 src2 = texture2D("+kw.uSampler+", "+kw.vTexCoord+");\nvec4 src1 = texture2D(uSource1Sampler, "+kw.vTexCoord+");\ngl_FragColor = clamp(src1 * (1.0 - src2.a) + src1.a * src2, 0.0, 1.0);\n}")};(s["openfl.filters.commands._CombineInnerCommand.CombineInnerShader"]=ey).__name__=["openfl","filters","commands","_CombineInnerCommand","CombineInnerShader"],ey.__super__=kw,ey.prototype=n(kw.prototype,{get_openfl_uScaleVector:function(){return this.__openfl_uScaleVector.value},set_openfl_uScaleVector:function(e){var t=this.__openfl_uScaleVector;if(4==t.internalType)throw new Mp("This parameter doesn't accept a value, use bitmap instead");return t.value=e},get_uSource1Sampler:function(){return this.__uSource1Sampler.bitmap},set_uSource1Sampler:function(e){var t=this.__uSource1Sampler;if(4!=t.internalType)throw new Mp("This parameter doesn't accept a bitmap, use value instead");return t.bitmap=e},__class__:ey,__properties__:{set_uSource1Sampler:"set_uSource1Sampler",get_uSource1Sampler:"get_uSource1Sampler",set_openfl_uScaleVector:"set_openfl_uScaleVector",get_openfl_uScaleVector:"get_openfl_uScaleVector"}});var ty=function(){};(s["openfl.filters.commands.CombineInnerCommand"]=ty).__name__=["openfl","filters","commands","CombineInnerCommand"],ty.apply=function(e,t,s,n){var i=ty.__shader.__uSource1Sampler;if(4!=i.internalType)throw new Mp("This parameter doesn't accept a bitmap, use value instead");i.bitmap=s,Vv.apply(e,t,n,ty.__shader,s==t||n==t)};var sy=s["openfl.filters.commands.CommandType"]={__ename__:["openfl","filters","commands","CommandType"],__constructs__:["Blur1D","Offset","Colorize","ColorLookup","ColorTransform","CombineInner","Combine","InnerKnockout","OuterKnockout","OuterKnockoutTransparency","DestOut"]};sy.Blur1D=function(e,t,s,n,i,r,o,a){var l=["Blur1D",0,e,t,s,n,i,r,o,a];return l.__enum__=sy,l.toString=c,l},sy.Offset=function(e,t,s,n,i){var r=["Offset",1,e,t,s,n,i];return r.__enum__=sy,r.toString=c,r},sy.Colorize=function(e,t,s,n){var i=["Colorize",2,e,t,s,n];return i.__enum__=sy,i.toString=c,i},sy.ColorLookup=function(e,t,s){var n=["ColorLookup",3,e,t,s];return n.__enum__=sy,n.toString=c,n},sy.ColorTransform=function(e,t,s,n){var i=["ColorTransform",4,e,t,s,n];return i.__enum__=sy,i.toString=c,i},sy.CombineInner=function(e,t,s){var n=["CombineInner",5,e,t,s];return n.__enum__=sy,n.toString=c,n},sy.Combine=function(e,t,s){var n=["Combine",6,e,t,s];return n.__enum__=sy,n.toString=c,n},sy.InnerKnockout=function(e,t,s){var n=["InnerKnockout",7,e,t,s];return n.__enum__=sy,n.toString=c,n},sy.OuterKnockout=function(e,t,s){var n=["OuterKnockout",8,e,t,s];return n.__enum__=sy,n.toString=c,n},sy.OuterKnockoutTransparency=function(e,t,s,n){var i=["OuterKnockoutTransparency",9,e,t,s,n];return i.__enum__=sy,i.toString=c,i},sy.DestOut=function(e,t,s,n){var i=["DestOut",10,e,t,s,n];return i.__enum__=sy,i.toString=c,i};var ny=function(){this.__uStrength=new Fw("float",0),this.__uShadowSourceSampler=new Fw("sampler2D",0),this.__openfl_uScaleVector=new Fw("vec2",0),this.fragment=["uniform sampler2D uShadowSourceSampler;","uniform float uStrength;","void main(void)","{","float highlight = texture2D("+kw.uSampler+", "+kw.vTexCoord+").a;","float shadow = texture2D(uShadowSourceSampler, "+kw.vTexCoord+").a;","float high = clamp((highlight - shadow) * uStrength, 0., 1.);","float low = clamp((shadow - highlight) * uStrength, 0., 1.);","gl_FragColor = vec4(0.5 * ( 1. + high - low ));","}"],this.vertex=["uniform vec2 openfl_uScaleVector;","void main(void)","{",kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+";","gl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);","}"],kw.call(this),Vv.addShader(this),this.data.set("openfl_uScaleVector",this.__openfl_uScaleVector),this.data.set("uShadowSourceSampler",this.__uShadowSourceSampler),this.data.set("uStrength",this.__uStrength),this.__buildVertexCode("uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n"+kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+";\ngl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);\n}"),this.__buildFragmentCode("uniform sampler2D uShadowSourceSampler;\nuniform float uStrength;\nvoid main(void)\n{\nfloat highlight = texture2D("+kw.uSampler+", "+kw.vTexCoord+").a;\nfloat shadow = texture2D(uShadowSourceSampler, "+kw.vTexCoord+").a;\nfloat high = clamp((highlight - shadow) * uStrength, 0., 1.);\nfloat low = clamp((shadow - highlight) * uStrength, 0., 1.);\ngl_FragColor = vec4(0.5 * ( 1. + high - low ));\n}")};(s["openfl.filters.commands._DestOutCommand.DestOutShader"]=ny).__name__=["openfl","filters","commands","_DestOutCommand","DestOutShader"],ny.__super__=kw,ny.prototype=n(kw.prototype,{get_openfl_uScaleVector:function(){return this.__openfl_uScaleVector.value},set_openfl_uScaleVector:function(e){var t=this.__openfl_uScaleVector;if(4==t.internalType)throw new Mp("This parameter doesn't accept a value, use bitmap instead");return t.value=e},get_uShadowSourceSampler:function(){return this.__uShadowSourceSampler.bitmap},set_uShadowSourceSampler:function(e){var t=this.__uShadowSourceSampler;if(4!=t.internalType)throw new Mp("This parameter doesn't accept a bitmap, use value instead");return t.bitmap=e},get_uStrength:function(){return this.__uStrength.value[0]},set_uStrength:function(e){return this.__uStrength.value[0]=e},__class__:ny,__properties__:{set_uStrength:"set_uStrength",get_uStrength:"get_uStrength",set_uShadowSourceSampler:"set_uShadowSourceSampler",get_uShadowSourceSampler:"get_uShadowSourceSampler",set_openfl_uScaleVector:"set_openfl_uScaleVector",get_openfl_uScaleVector:"get_openfl_uScaleVector"}});var iy=function(){};(s["openfl.filters.commands.DestOutCommand"]=iy).__name__=["openfl","filters","commands","DestOutCommand"],iy.apply=function(e,t,s,n,i){var r=iy.__shader.__uShadowSourceSampler;if(4!=r.internalType)throw new Mp("This parameter doesn't accept a bitmap, use value instead");r.bitmap=n,iy.__shader.__uStrength.value[0]=i,Vv.apply(e,t,s,iy.__shader,s==t||n==t)};var ry=function(){this.__outer=new Fw("float",0),this.__uSource1Sampler=new Fw("sampler2D",0),this.__openfl_uScaleVector=new Fw("vec2",0),this.fragment=["uniform sampler2D uSource1Sampler;","uniform float outer;","void main(void)","{","vec4 src2 = texture2D("+kw.uSampler+", "+kw.vTexCoord+");","vec4 src1 = texture2D(uSource1Sampler, "+kw.vTexCoord+");","src2 *= src1.a;","gl_FragColor = src2;","}"],this.vertex=["uniform vec2 openfl_uScaleVector;","void main(void)","{",kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+";","gl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);","}"],kw.call(this),Vv.addShader(this),this.data.set("openfl_uScaleVector",this.__openfl_uScaleVector),this.data.set("uSource1Sampler",this.__uSource1Sampler),this.data.set("outer",this.__outer),this.__buildVertexCode("uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n"+kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+";\ngl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);\n}"),this.__buildFragmentCode("uniform sampler2D uSource1Sampler;\nuniform float outer;\nvoid main(void)\n{\nvec4 src2 = texture2D("+kw.uSampler+", "+kw.vTexCoord+");\nvec4 src1 = texture2D(uSource1Sampler, "+kw.vTexCoord+");\nsrc2 *= src1.a;\ngl_FragColor = src2;\n}")};(s["openfl.filters.commands._InnerKnockoutCommand.InnerKnockoutShader"]=ry).__name__=["openfl","filters","commands","_InnerKnockoutCommand","InnerKnockoutShader"],ry.__super__=kw,ry.prototype=n(kw.prototype,{get_openfl_uScaleVector:function(){return this.__openfl_uScaleVector.value},set_openfl_uScaleVector:function(e){var t=this.__openfl_uScaleVector;if(4==t.internalType)throw new Mp("This parameter doesn't accept a value, use bitmap instead");return t.value=e},get_uSource1Sampler:function(){return this.__uSource1Sampler.bitmap},set_uSource1Sampler:function(e){var t=this.__uSource1Sampler;if(4!=t.internalType)throw new Mp("This parameter doesn't accept a bitmap, use value instead");return t.bitmap=e},get_outer:function(){return this.__outer.value[0]},set_outer:function(e){return this.__outer.value[0]=e},__class__:ry,__properties__:{set_outer:"set_outer",get_outer:"get_outer",set_uSource1Sampler:"set_uSource1Sampler",get_uSource1Sampler:"get_uSource1Sampler",set_openfl_uScaleVector:"set_openfl_uScaleVector",get_openfl_uScaleVector:"get_openfl_uScaleVector"}});var oy=function(){};(s["openfl.filters.commands.InnerKnockoutCommand"]=oy).__name__=["openfl","filters","commands","InnerKnockoutCommand"],oy.apply=function(e,t,s,n){var i=oy.__shader.__uSource1Sampler;if(4!=i.internalType)throw new Mp("This parameter doesn't accept a bitmap, use value instead");i.bitmap=s,Vv.apply(e,t,n,oy.__shader,s==t||n==t)};var ay=function(){this.__uStrength=new Fw("float",0),this.__uTexCoordOffset=new Fw("vec2",0),this.__openfl_uScaleVector=new Fw("vec2",0),this.fragment=["uniform float uStrength;","void main(void)","{","vec4 result = texture2D("+kw.uSampler+", "+kw.vTexCoord+");","gl_FragColor = clamp(result * uStrength, 0.0, 1.0);","}"],this.vertex=["uniform vec2 openfl_uScaleVector;","uniform vec2 uTexCoordOffset;","void main(void)","{","vec2 texcoord_offset = uTexCoordOffset / "+kw.uTextureSize+";",kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+" - texcoord_offset;",kw.vColor+" = "+kw.aColor+";","gl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);","}"],kw.call(this),Vv.addShader(this),this.data.set("openfl_uScaleVector",this.__openfl_uScaleVector),this.data.set("uTexCoordOffset",this.__uTexCoordOffset),this.data.set("uStrength",this.__uStrength),this.__buildVertexCode("uniform vec2 openfl_uScaleVector;\nuniform vec2 uTexCoordOffset;\nvoid main(void)\n{\nvec2 texcoord_offset = uTexCoordOffset / "+kw.uTextureSize+";\n"+kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+" - texcoord_offset;\n"+kw.vColor+" = "+kw.aColor+";\ngl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);\n}"),this.__buildFragmentCode("uniform float uStrength;\nvoid main(void)\n{\nvec4 result = texture2D("+kw.uSampler+", "+kw.vTexCoord+");\ngl_FragColor = clamp(result * uStrength, 0.0, 1.0);\n}")};(s["openfl.filters.commands._OffsetCommand.OffsetShader"]=ay).__name__=["openfl","filters","commands","_OffsetCommand","OffsetShader"],ay.__super__=kw,ay.prototype=n(kw.prototype,{get_openfl_uScaleVector:function(){return this.__openfl_uScaleVector.value},set_openfl_uScaleVector:function(e){var t=this.__openfl_uScaleVector;if(4==t.internalType)throw new Mp("This parameter doesn't accept a value, use bitmap instead");return t.value=e},get_uTexCoordOffset:function(){return this.__uTexCoordOffset.value},set_uTexCoordOffset:function(e){var t=this.__uTexCoordOffset;if(4==t.internalType)throw new Mp("This parameter doesn't accept a value, use bitmap instead");return t.value=e},get_uStrength:function(){return this.__uStrength.value[0]},set_uStrength:function(e){return this.__uStrength.value[0]=e},__class__:ay,__properties__:{set_uStrength:"set_uStrength",get_uStrength:"get_uStrength",set_uTexCoordOffset:"set_uTexCoordOffset",get_uTexCoordOffset:"get_uTexCoordOffset",set_openfl_uScaleVector:"set_openfl_uScaleVector",get_openfl_uScaleVector:"get_openfl_uScaleVector"}});var ly=function(){};(s["openfl.filters.commands.OffsetCommand"]=ly).__name__=["openfl","filters","commands","OffsetCommand"],ly.apply=function(e,t,s,n,i){ly.__shader.__uTexCoordOffset.value[0]=i.x,ly.__shader.__uTexCoordOffset.value[1]=i.y,ly.__shader.__uStrength.value[0]=n,Vv.apply(e,t,s,ly.__shader,s==t)};var hy=function(){this.__allow_transparency=new Fw("float",0),this.__uSource1Sampler=new Fw("sampler2D",0),this.__openfl_uScaleVector=new Fw("vec2",0),this.fragment=["uniform sampler2D uSource1Sampler;","uniform float allow_transparency;","void main(void)","{","vec4 src2 = texture2D("+kw.uSampler+", "+kw.vTexCoord+");","vec4 src1 = texture2D(uSource1Sampler, "+kw.vTexCoord+");","src2 *= 1. - ( allow_transparency * src1.a + ( 1. - allow_transparency ) * step(0.0001, src1.a) );","gl_FragColor = src2;","}"],this.vertex=["uniform vec2 openfl_uScaleVector;","void main(void)","{",kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+";","gl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);","}"],kw.call(this),Vv.addShader(this),this.data.set("openfl_uScaleVector",this.__openfl_uScaleVector),this.data.set("uSource1Sampler",this.__uSource1Sampler),this.data.set("allow_transparency",this.__allow_transparency),this.__buildVertexCode("uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n"+kw.vTexCoord+" = openfl_uScaleVector * "+kw.aTexCoord+";\ngl_Position = vec4("+kw.aPosition+" * 2.0 - 1.0, 0.0, 1.0);\n}"),this.__buildFragmentCode("uniform sampler2D uSource1Sampler;\nuniform float allow_transparency;\nvoid main(void)\n{\nvec4 src2 = texture2D("+kw.uSampler+", "+kw.vTexCoord+");\nvec4 src1 = texture2D(uSource1Sampler, "+kw.vTexCoord+");\nsrc2 *= 1. - ( allow_transparency * src1.a + ( 1. - allow_transparency ) * step(0.0001, src1.a) );\ngl_FragColor = src2;\n}")};(s["openfl.filters.commands._OuterKnockoutCommand.OuterKnockoutShader"]=hy).__name__=["openfl","filters","commands","_OuterKnockoutCommand","OuterKnockoutShader"],hy.__super__=kw,hy.prototype=n(kw.prototype,{get_openfl_uScaleVector:function(){return this.__openfl_uScaleVector.value},set_openfl_uScaleVector:function(e){var t=this.__openfl_uScaleVector;if(4==t.internalType)throw new Mp("This parameter doesn't accept a value, use bitmap instead");return t.value=e},get_uSource1Sampler:function(){return this.__uSource1Sampler.bitmap},set_uSource1Sampler:function(e){var t=this.__uSource1Sampler;if(4!=t.internalType)throw new Mp("This parameter doesn't accept a bitmap, use value instead");return t.bitmap=e},get_allow_transparency:function(){return this.__allow_transparency.value[0]},set_allow_transparency:function(e){return this.__allow_transparency.value[0]=e},__class__:hy,__properties__:{set_allow_transparency:"set_allow_transparency",get_allow_transparency:"get_allow_transparency",set_uSource1Sampler:"set_uSource1Sampler",get_uSource1Sampler:"get_uSource1Sampler",set_openfl_uScaleVector:"set_openfl_uScaleVector",get_openfl_uScaleVector:"get_openfl_uScaleVector"}});var _y=function(){};(s["openfl.filters.commands.OuterKnockoutCommand"]=_y).__name__=["openfl","filters","commands","OuterKnockoutCommand"],_y.apply=function(e,t,s,n,i){null==i&&(i=!0);var r=_y.__shader.__uSource1Sampler;if(4!=r.internalType)throw new Mp("This parameter doesn't accept a bitmap, use value instead");r.bitmap=s,_y.__shader.__allow_transparency.value[0]=i?1:0,Vv.apply(e,t,n,_y.__shader,s==t||n==t)};var uy=function(e){if(null!=e&&16==e.length)this.rawData=e;else{var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],s=new ha;s.length=t.length,s.fixed=!0,s.data=t.slice(0),this.rawData=s}};(s["openfl.geom.Matrix3D"]=uy).__name__=["openfl","geom","Matrix3D"],uy.create2D=function(e,t,s,n){null==n&&(n=0),null==s&&(s=1);var i=n*Math.PI/180,r=Math.cos(i),o=Math.sin(i),a=[r*s,-o*s,0,0,o*s,r*s,0,0,0,0,1,0,e,t,0,1],l=new ha;return l.length=a.length,l.fixed=!0,l.data=a.slice(0),new uy(l)},uy.createABCD=function(e,t,s,n,i,r){var o=[e,t,0,0,s,n,0,0,0,0,1,0,i,r,0,1],a=new ha;return a.length=o.length,a.fixed=!0,a.data=o.slice(0),new uy(a)},uy.createOrtho=function(e,t,s,n,i,r){var o=1/(t-e),a=1/(n-s),l=1/(r-i),h=[2*o,0,0,0,0,2*a,0,0,0,0,-2*l,0,-(e+t)*o,-(s+n)*a,-(i+r)*l,1],_=new ha;return _.length=h.length,_.fixed=!0,_.data=h.slice(0),new uy(_)},uy.interpolate=function(e,t,s){for(var n=new uy,i=0;i<16;){var r=i++,o=n.rawData,a=e.rawData.data[r]+(t.rawData.data[r]-e.rawData.data[r])*s;if(!o.fixed&&(r>=o.length&&(o.length=r+1),o.data.length=o.length&&(o.length=r+1),o.data.length=e.length&&(e.length=o+1),e.data.lengthl.data[5]&&l.data[0]>l.data[10]?($.x=Math.sqrt(1+l.data[0]-l.data[5]-l.data[10])/2,$.w=(l.data[6]-l.data[9])/(4*$.x),$.y=(l.data[1]+l.data[4])/(4*$.x),$.z=(l.data[8]+l.data[2])/(4*$.x)):l.data[5]>l.data[10]?($.y=Math.sqrt(1+l.data[5]-l.data[0]-l.data[10])/2,$.x=(l.data[1]+l.data[4])/(4*$.y),$.w=(l.data[8]-l.data[2])/(4*$.y),$.z=(l.data[6]+l.data[9])/(4*$.y)):($.z=Math.sqrt(1+l.data[10]-l.data[0]-l.data[5])/2,$.x=(l.data[8]+l.data[2])/(4*$.z),$.y=(l.data[6]+l.data[9])/(4*$.z),$.w=(l.data[1]-l.data[4])/(4*$.z))}if(!n.fixed){if(n.length++,n.data.length=i.length&&(i.length=n+1),i.data.length=t.length&&(t.length=r+1),t.data.length=t.length&&(t.length=h+1),t.data.length=t.length&&(t.length=c+1),t.data.length=this.x&&t>=this.y&&ethis.x&&e.y>this.y&&e.get_right()=this.x&&e.y>=this.y&&e.get_right()<=this.get_right()&&e.get_bottom()<=this.get_bottom()},copyFrom:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},equals:function(e){return null!=e&&this.x==e.x&&this.y==e.y&&this.width==e.width&&this.height==e.height},inflate:function(e,t){this.x-=e,this.width+=2*e,this.y-=t,this.height+=2*t},inflatePoint:function(e){this.inflate(e.x,e.y)},intersection:function(e){var t=this.xe.get_right()?e.get_right():this.get_right();if(s<=t)return new cy;var n=this.ye.get_bottom()?e.get_bottom():this.get_bottom();return i<=n?new cy:new cy(t,n,s-t,i-n)},intersects:function(e){var t=this.xe.get_right()?e.get_right():this.get_right())<=t)&&(this.ye.get_bottom()?e.get_bottom():this.get_bottom())},isEmpty:function(){return this.width<=0||this.height<=0},offset:function(e,t){this.x+=e,this.y+=t},offsetPoint:function(e){this.x+=e.x,this.y+=e.y},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(e,t,s,n){this.x=e,this.y=t,this.width=s,this.height=n},toString:function(){return"(x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"},union:function(e){if(0==this.width||0==this.height)return e.clone();if(0==e.width||0==e.height)return this.clone();var t=this.x>e.x?e.x:this.x,s=this.get_right()e.y?e.y:this.y,i=this.get_bottom()e+s&&(this.width=e+s-this.x),this.get_bottom()>t+n&&(this.height=t+n-this.y))},__expand:function(e,t,s,n){if(0!=s||0!=n){if(0==this.width&&0==this.height)return this.x=e,this.y=t,this.width=s,void(this.height=n);var i=this.get_right(),r=this.get_bottom();this.x>e&&(this.x=e,this.width=i-e),this.y>t&&(this.y=t,this.height=r-t),i=this.repeatCount?(this.stop(),this.dispatchEvent(new Cv("timer")),this.dispatchEvent(new Cv("timerComplete"))):this.dispatchEvent(new Cv("timer"))},__class__:tT,__properties__:{set_repeatCount:"set_repeatCount",set_delay:"set_delay",get_delay:"get_delay"}});var sT=function(e,t){this.map=e,this.keys=t,this.index=0,this.count=t.length};(s["openfl.utils._UnsafeStringMap.UnsafeStringMapIterator"]=sT).__name__=["openfl","utils","_UnsafeStringMap","UnsafeStringMapIterator"],sT.prototype={hasNext:function(){return this.index ",e+=Ue.string(Ue.string(this.h[r])),ie._length?t:e._length,++e._length},iT.concat=function(e,t){for(var s=e._items.length-e._length,n=0,i=s;n=t._length?null:t._items[r]}return e._items=e._items.concat(t._items.slice(s)),e._length+=t._length,e},iT.clear=function(e){for(var t=0,s=e._length;t=e._length?-1:s;if(0<=n){for(var i=n,r=e._length-1;i=t._length?null:t._items[a]}for(var l=e._length,h=n;l=t._length?null:t._items[r]}e._length+=t._length},iT.indexOf=function(e,t,s){var n=e._items.indexOf(t,s);return n>=e._length?-1:n},iT.last=function(e){return e._items[e._length-1]},iT.get=function(e,t){return t>=e._length?null:e._items[t]},iT.set=function(e,t,s){return t>=e._length&&(e._length=t+1),e._items[t]=s},iT.get_length=function(e){return e._length};var rT=function(){};(s["swagapi.Lib"]=rT).__name__=["swagapi","Lib"],rT.client=null,rT.initialize=function(){try{var e="5cf583a0c79e903a0e65d08e";rT.client=SWAGAPI.getInstance({wrapper:window.document.querySelector("#root"),api_key:e,theme:"shockwave",debug:!0}),rT.client.startSession().then(function(e){Zf.trace("SWAG API session started.",{fileName:"Lib.hx",lineNumber:19,className:"swagapi.Lib",methodName:"initialize"})}),rT.client.on("DIALOG_CLOSED",function(){rT.dialogIsShown=!1})}catch(e){jf.lastException=e,Zf.trace("SWAG API not started.",{fileName:"Lib.hx",lineNumber:26,className:"swagapi.Lib",methodName:"initialize"})}},rT.showDialog=function(e){null==e&&(e="scores");try{rT.client.showDialog(e),rT.dialogIsShown=!0}catch(e){jf.lastException=e,Zf.trace("SWAG API error while showDialog.",{fileName:"Lib.hx",lineNumber:35,className:"swagapi.Lib",methodName:"showDialog"})}},rT.isDialogShown=function(){return rT.dialogIsShown};var oT=function(e){null==e&&(e=1);var t=null,s=0,n=e;switch(this.rotSpeed=0,this.bloonBusted=!1,null==oT.bloon1Clip&&(oT.bloon1Clip=new gh,oT.bloon2Clip=new xh,oT.bloon3Clip=new Eh,oT.bloon4Clip=new Ph,oT.bloon5Clip=new Rh,oT.bloon6Clip=new Ah,oT.bloon7Clip=new Ih,oT.bloon8Clip=new Ch,oT.bloon9Clip=new Bh,oT.bloon10Clip=new wh,oT.bloon11Clip=new vh,oT.bloon12Clip=new yh,oT.bloon13Clip=new Th,oT.bloon14Clip=new Sh,oT.glueClip12=oT.bloon12Clip.resolve("glue"),oT.freezeClip12=oT.bloon12Clip.resolve("freeze"),oT.bloon12Clip.removeChild(oT.glueClip12),oT.bloon12Clip.removeChild(oT.freezeClip12),oT.glueClip13=oT.bloon13Clip.resolve("glue"),oT.freezeClip13=oT.bloon13Clip.resolve("freeze"),oT.bloon13Clip.removeChild(oT.glueClip13),oT.bloon13Clip.removeChild(oT.freezeClip13),oT.glueClip14=oT.bloon14Clip.resolve("glue"),oT.freezeClip14=oT.bloon14Clip.resolve("freeze"),oT.bloon14Clip.removeChild(oT.glueClip14),oT.bloon14Clip.removeChild(oT.freezeClip14)),n){case 1:this.set_definitionClip(oT.bloon1Clip);break;case 2:this.set_definitionClip(oT.bloon2Clip);break;case 3:this.set_definitionClip(oT.bloon3Clip);break;case 4:this.set_definitionClip(oT.bloon4Clip);break;case 5:this.set_definitionClip(oT.bloon5Clip);break;case 6:this.set_definitionClip(oT.bloon6Clip);break;case 7:this.set_definitionClip(oT.bloon7Clip);break;case 8:this.set_definitionClip(oT.bloon8Clip);break;case 9:this.set_definitionClip(oT.bloon9Clip);break;case 10:this.set_definitionClip(oT.bloon10Clip);break;case 11:this.set_definitionClip(oT.bloon11Clip);break;case 12:this.set_definitionClip(oT.bloon12Clip);break;case 13:this.set_rotateSteps(20),this.set_definitionClip(oT.bloon13Clip),this.rotSpeed=.18;break;case 14:this.set_rotateSteps(20),this.set_definitionClip(oT.bloon14Clip),this.rotSpeed=.08}this.radius=.6*this.clip.get_width(),12Math.PI?this.angle-=2*Math.PI:this.angle<=-Math.PI&&(this.angle+=2*Math.PI),(e=this.destAngle-this.angle)>Math.PI?e-=2*Math.PI:-e>Math.PI&&(e+=2*Math.PI),e>this.rotSpeed?this.angle+=this.rotSpeed:-e>this.rotSpeed?this.angle-=this.rotSpeed:this.angle=this.destAngle;else if(7!=this.rank&&9!=this.rank)for(var h=0,_=this.game.towerlist;h<_.length;){var u=_[h];if(++h,"ice"==u.type&&4==u.upgradeNum)if((u.x-this.x)*(u.x-this.x)+(u.y-this.y)*(u.y-this.y)this.gluer.glueLen||1e3this.freezer.freezeLen||100=f.pierceMax&&f.DeleteMe(),this.glueMe(f));else{if(8==this.rank&&!f.leadbreak&&"ice"!=f.type)return f.pierceCount+=5,this.game.soundeffects.metalclink.play(),void(f.pierceCount>=f.pierceMax&&f.DeleteMe());if(f.pierceCount++,f.pierceCount>=f.pierceMax?f.DeleteMe():"spikes"==f.type&&f.gotoAndStop(11-(f.pierceMax-f.pierceCount)),("bomb"==f.type||"fireball"==f.type||"gluetower"==f.type&&3"):qT.h.gt=">",null!=NT.amp?qT.setReserved("amp","&"):qT.h.amp="&",null!=NT.quot?qT.setReserved("quot",'"'):qT.h.quot='"',null!=NT.apos?qT.setReserved("apos","'"):qT.h.apos="'",qT),Ip.IN_ENUM_SER=!1,Cp.__clid=mr.registerClass(Cp),Lp.__toStr={}.toString,zp.BYTES_PER_ELEMENT=4,Xp.BYTES_PER_ELEMENT=1,Yp.cache=new Hp,Yp.libraries=new up,Yp.onChange=new Vp,Yp.initialized=!1,Yp.extraSoundOptions=new up,Wp.stopUpdating=!1,Zp.windowID=0,mb.images=new up,mb.loaders=new up,Ab.NONE=0,Ab.FALSE=0,Ab.TRUE=1,Ab.SOURCE_RELATIVE=514,Ab.CONE_INNER_ANGLE=4097,Ab.CONE_OUTER_ANGLE=4098,Ab.PITCH=4099,Ab.POSITION=4100,Ab.DIRECTION=4101,Ab.VELOCITY=4102,Ab.LOOPING=4103,Ab.BUFFER=4105,Ab.GAIN=4106,Ab.MIN_GAIN=4109,Ab.MAX_GAIN=4110,Ab.ORIENTATION=4111,Ab.SOURCE_STATE=4112,Ab.INITIAL=4113,Ab.PLAYING=4114,Ab.PAUSED=4115,Ab.STOPPED=4116,Ab.BUFFERS_QUEUED=4117,Ab.BUFFERS_PROCESSED=4118,Ab.REFERENCE_DISTANCE=4128,Ab.ROLLOFF_FACTOR=4129,Ab.CONE_OUTER_GAIN=4130,Ab.MAX_DISTANCE=4131,Ab.SEC_OFFSET=4132,Ab.SAMPLE_OFFSET=4133,Ab.BYTE_OFFSET=4134,Ab.SOURCE_TYPE=4135,Ab.STATIC=4136,Ab.STREAMING=4137,Ab.UNDETERMINED=4144,Ab.FORMAT_MONO8=4352,Ab.FORMAT_MONO16=4353,Ab.FORMAT_STEREO8=4354,Ab.FORMAT_STEREO16=4355,Ab.FREQUENCY=8193,Ab.BITS=8194,Ab.CHANNELS=8195,Ab.SIZE=8196,Ab.NO_ERROR=0,Ab.INVALID_NAME=40961,Ab.INVALID_ENUM=40962,Ab.INVALID_VALUE=40963,Ab.INVALID_OPERATION=40964,Ab.OUT_OF_MEMORY=40965,Ab.VENDOR=45057,Ab.VERSION=45058,Ab.RENDERER=45059,Ab.EXTENSIONS=45060,Ab.DOPPLER_FACTOR=49152,Ab.SPEED_OF_SOUND=49155,Ab.DOPPLER_VELOCITY=49153,Ab.DISTANCE_MODEL=53248,Ab.INVERSE_DISTANCE=53249,Ab.INVERSE_DISTANCE_CLAMPED=53250,Ab.LINEAR_DISTANCE=53251,Ab.LINEAR_DISTANCE_CLAMPED=53252,Ab.EXPONENT_DISTANCE=53253,Ab.EXPONENT_DISTANCE_CLAMPED=53254,Ib.FALSE=0,Ib.TRUE=1,Ib.FREQUENCY=4103,Ib.REFRESH=4104,Ib.SYNC=4105,Ib.MONO_SOURCES=4112,Ib.STEREO_SOURCES=4113,Ib.NO_ERROR=0,Ib.INVALID_DEVICE=40961,Ib.INVALID_CONTEXT=40962,Ib.INVALID_ENUM=40963,Ib.INVALID_VALUE=40964,Ib.OUT_OF_MEMORY=40965,Ib.ATTRIBUTES_SIZE=4098,Ib.ALL_ATTRIBUTES=4099,Ib.DEFAULT_DEVICE_SPECIFIER=4100,Ib.DEVICE_SPECIFIER=4101,Ib.EXTENSIONS=4102,Ib.ENUMERATE_ALL_EXT=1,Ib.DEFAULT_ALL_DEVICES_SPECIFIER=4114,Ib.ALL_DEVICES_SPECIFIER=4115,kb.__base64Chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vb.DEPTH_BUFFER_BIT=256,Vb.STENCIL_BUFFER_BIT=1024,Vb.COLOR_BUFFER_BIT=16384,Vb.POINTS=0,Vb.LINES=1,Vb.LINE_LOOP=2,Vb.LINE_STRIP=3,Vb.TRIANGLES=4,Vb.TRIANGLE_STRIP=5,Vb.TRIANGLE_FAN=6,Vb.ZERO=0,Vb.ONE=1,Vb.SRC_COLOR=768,Vb.ONE_MINUS_SRC_COLOR=769,Vb.SRC_ALPHA=770,Vb.ONE_MINUS_SRC_ALPHA=771,Vb.DST_ALPHA=772,Vb.ONE_MINUS_DST_ALPHA=773,Vb.DST_COLOR=774,Vb.ONE_MINUS_DST_COLOR=775,Vb.SRC_ALPHA_SATURATE=776,Vb.FUNC_ADD=32774,Vb.BLEND_EQUATION=32777,Vb.BLEND_EQUATION_RGB=32777,Vb.BLEND_EQUATION_ALPHA=34877,Vb.FUNC_SUBTRACT=32778,Vb.FUNC_REVERSE_SUBTRACT=32779,Vb.BLEND_DST_RGB=32968,Vb.BLEND_SRC_RGB=32969,Vb.BLEND_DST_ALPHA=32970,Vb.BLEND_SRC_ALPHA=32971,Vb.CONSTANT_COLOR=32769,Vb.ONE_MINUS_CONSTANT_COLOR=32770,Vb.CONSTANT_ALPHA=32771,Vb.ONE_MINUS_CONSTANT_ALPHA=32772,Vb.BLEND_COLOR=32773,Vb.ARRAY_BUFFER=34962,Vb.ELEMENT_ARRAY_BUFFER=34963,Vb.ARRAY_BUFFER_BINDING=34964,Vb.ELEMENT_ARRAY_BUFFER_BINDING=34965,Vb.STREAM_DRAW=35040,Vb.STATIC_DRAW=35044,Vb.DYNAMIC_DRAW=35048,Vb.BUFFER_SIZE=34660,Vb.BUFFER_USAGE=34661,Vb.CURRENT_VERTEX_ATTRIB=34342,Vb.FRONT=1028,Vb.BACK=1029,Vb.FRONT_AND_BACK=1032,Vb.CULL_FACE=2884,Vb.BLEND=3042,Vb.DITHER=3024,Vb.STENCIL_TEST=2960,Vb.DEPTH_TEST=2929,Vb.SCISSOR_TEST=3089,Vb.POLYGON_OFFSET_FILL=32823,Vb.SAMPLE_ALPHA_TO_COVERAGE=32926,Vb.SAMPLE_COVERAGE=32928,Vb.NO_ERROR=0,Vb.INVALID_ENUM=1280,Vb.INVALID_VALUE=1281,Vb.INVALID_OPERATION=1282,Vb.OUT_OF_MEMORY=1285,Vb.CW=2304,Vb.CCW=2305,Vb.LINE_WIDTH=2849,Vb.ALIASED_POINT_SIZE_RANGE=33901,Vb.ALIASED_LINE_WIDTH_RANGE=33902,Vb.CULL_FACE_MODE=2885,Vb.FRONT_FACE=2886,Vb.DEPTH_RANGE=2928,Vb.DEPTH_WRITEMASK=2930,Vb.DEPTH_CLEAR_VALUE=2931,Vb.DEPTH_FUNC=2932,Vb.STENCIL_CLEAR_VALUE=2961,Vb.STENCIL_FUNC=2962,Vb.STENCIL_FAIL=2964,Vb.STENCIL_PASS_DEPTH_FAIL=2965,Vb.STENCIL_PASS_DEPTH_PASS=2966,Vb.STENCIL_REF=2967,Vb.STENCIL_VALUE_MASK=2963,Vb.STENCIL_WRITEMASK=2968,Vb.STENCIL_BACK_FUNC=34816,Vb.STENCIL_BACK_FAIL=34817,Vb.STENCIL_BACK_PASS_DEPTH_FAIL=34818,Vb.STENCIL_BACK_PASS_DEPTH_PASS=34819,Vb.STENCIL_BACK_REF=36003,Vb.STENCIL_BACK_VALUE_MASK=36004,Vb.STENCIL_BACK_WRITEMASK=36005,Vb.VIEWPORT=2978,Vb.SCISSOR_BOX=3088,Vb.COLOR_CLEAR_VALUE=3106,Vb.COLOR_WRITEMASK=3107,Vb.UNPACK_ALIGNMENT=3317,Vb.PACK_ALIGNMENT=3333,Vb.MAX_TEXTURE_SIZE=3379,Vb.MAX_VIEWPORT_DIMS=3386,Vb.SUBPIXEL_BITS=3408,Vb.RED_BITS=3410,Vb.GREEN_BITS=3411,Vb.BLUE_BITS=3412,Vb.ALPHA_BITS=3413,Vb.DEPTH_BITS=3414,Vb.STENCIL_BITS=3415,Vb.POLYGON_OFFSET_UNITS=10752,Vb.POLYGON_OFFSET_FACTOR=32824,Vb.TEXTURE_BINDING_2D=32873,Vb.SAMPLE_BUFFERS=32936,Vb.SAMPLES=32937,Vb.SAMPLE_COVERAGE_VALUE=32938,Vb.SAMPLE_COVERAGE_INVERT=32939,Vb.COMPRESSED_TEXTURE_FORMATS=34467,Vb.DONT_CARE=4352,Vb.FASTEST=4353,Vb.NICEST=4354,Vb.GENERATE_MIPMAP_HINT=33170,Vb.BYTE=5120,Vb.UNSIGNED_BYTE=5121,Vb.SHORT=5122,Vb.UNSIGNED_SHORT=5123,Vb.INT=5124,Vb.UNSIGNED_INT=5125,Vb.FLOAT=5126,Vb.DEPTH_COMPONENT=6402,Vb.ALPHA=6406,Vb.RGB=6407,Vb.RGBA=6408,Vb.BGR_EXT=32992,Vb.BGRA_EXT=32993,Vb.LUMINANCE=6409,Vb.LUMINANCE_ALPHA=6410,Vb.UNSIGNED_SHORT_4_4_4_4=32819,Vb.UNSIGNED_SHORT_5_5_5_1=32820,Vb.UNSIGNED_SHORT_5_6_5=33635,Vb.FRAGMENT_SHADER=35632,Vb.VERTEX_SHADER=35633,Vb.MAX_VERTEX_ATTRIBS=34921,Vb.MAX_VERTEX_UNIFORM_VECTORS=36347,Vb.MAX_VARYING_VECTORS=36348,Vb.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661,Vb.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660,Vb.MAX_TEXTURE_IMAGE_UNITS=34930,Vb.MAX_FRAGMENT_UNIFORM_VECTORS=36349,Vb.SHADER_TYPE=35663,Vb.DELETE_STATUS=35712,Vb.LINK_STATUS=35714,Vb.VALIDATE_STATUS=35715,Vb.ATTACHED_SHADERS=35717,Vb.ACTIVE_UNIFORMS=35718,Vb.ACTIVE_ATTRIBUTES=35721,Vb.SHADING_LANGUAGE_VERSION=35724,Vb.CURRENT_PROGRAM=35725,Vb.NEVER=512,Vb.LESS=513,Vb.EQUAL=514,Vb.LEQUAL=515,Vb.GREATER=516,Vb.NOTEQUAL=517,Vb.GEQUAL=518,Vb.ALWAYS=519,Vb.KEEP=7680,Vb.REPLACE=7681,Vb.INCR=7682,Vb.DECR=7683,Vb.INVERT=5386,Vb.INCR_WRAP=34055,Vb.DECR_WRAP=34056,Vb.VENDOR=7936,Vb.RENDERER=7937,Vb.VERSION=7938,Vb.NEAREST=9728,Vb.LINEAR=9729,Vb.NEAREST_MIPMAP_NEAREST=9984,Vb.LINEAR_MIPMAP_NEAREST=9985,Vb.NEAREST_MIPMAP_LINEAR=9986,Vb.LINEAR_MIPMAP_LINEAR=9987,Vb.TEXTURE_MAG_FILTER=10240,Vb.TEXTURE_MIN_FILTER=10241,Vb.TEXTURE_WRAP_S=10242,Vb.TEXTURE_WRAP_T=10243,Vb.TEXTURE_2D=3553,Vb.TEXTURE=5890,Vb.TEXTURE_CUBE_MAP=34067,Vb.TEXTURE_BINDING_CUBE_MAP=34068,Vb.TEXTURE_CUBE_MAP_POSITIVE_X=34069,Vb.TEXTURE_CUBE_MAP_NEGATIVE_X=34070,Vb.TEXTURE_CUBE_MAP_POSITIVE_Y=34071,Vb.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072,Vb.TEXTURE_CUBE_MAP_POSITIVE_Z=34073,Vb.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074,Vb.MAX_CUBE_MAP_TEXTURE_SIZE=34076,Vb.TEXTURE0=33984,Vb.TEXTURE1=33985,Vb.TEXTURE2=33986,Vb.TEXTURE3=33987,Vb.TEXTURE4=33988,Vb.TEXTURE5=33989,Vb.TEXTURE6=33990,Vb.TEXTURE7=33991,Vb.TEXTURE8=33992,Vb.TEXTURE9=33993,Vb.TEXTURE10=33994,Vb.TEXTURE11=33995,Vb.TEXTURE12=33996,Vb.TEXTURE13=33997,Vb.TEXTURE14=33998,Vb.TEXTURE15=33999,Vb.TEXTURE16=34e3,Vb.TEXTURE17=34001,Vb.TEXTURE18=34002,Vb.TEXTURE19=34003,Vb.TEXTURE20=34004,Vb.TEXTURE21=34005,Vb.TEXTURE22=34006,Vb.TEXTURE23=34007,Vb.TEXTURE24=34008,Vb.TEXTURE25=34009,Vb.TEXTURE26=34010,Vb.TEXTURE27=34011,Vb.TEXTURE28=34012,Vb.TEXTURE29=34013,Vb.TEXTURE30=34014,Vb.TEXTURE31=34015,Vb.ACTIVE_TEXTURE=34016,Vb.REPEAT=10497,Vb.CLAMP_TO_EDGE=33071,Vb.MIRRORED_REPEAT=33648,Vb.FLOAT_VEC2=35664,Vb.FLOAT_VEC3=35665,Vb.FLOAT_VEC4=35666,Vb.INT_VEC2=35667,Vb.INT_VEC3=35668,Vb.INT_VEC4=35669,Vb.BOOL=35670,Vb.BOOL_VEC2=35671,Vb.BOOL_VEC3=35672,Vb.BOOL_VEC4=35673,Vb.FLOAT_MAT2=35674,Vb.FLOAT_MAT3=35675,Vb.FLOAT_MAT4=35676,Vb.SAMPLER_2D=35678,Vb.SAMPLER_CUBE=35680,Vb.VERTEX_ATTRIB_ARRAY_ENABLED=34338,Vb.VERTEX_ATTRIB_ARRAY_SIZE=34339,Vb.VERTEX_ATTRIB_ARRAY_STRIDE=34340,Vb.VERTEX_ATTRIB_ARRAY_TYPE=34341,Vb.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922,Vb.VERTEX_ATTRIB_ARRAY_POINTER=34373,Vb.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975,Vb.VERTEX_PROGRAM_POINT_SIZE=34370,Vb.POINT_SPRITE=34913,Vb.COMPILE_STATUS=35713,Vb.LOW_FLOAT=36336,Vb.MEDIUM_FLOAT=36337,Vb.HIGH_FLOAT=36338,Vb.LOW_INT=36339,Vb.MEDIUM_INT=36340,Vb.HIGH_INT=36341,Vb.FRAMEBUFFER=36160,Vb.RENDERBUFFER=36161,Vb.RGBA4=32854,Vb.RGB5_A1=32855,Vb.RGB565=36194,Vb.DEPTH_COMPONENT16=33189,Vb.STENCIL_INDEX=6401,Vb.STENCIL_INDEX8=36168,Vb.DEPTH_STENCIL=34041,Vb.RENDERBUFFER_WIDTH=36162,Vb.RENDERBUFFER_HEIGHT=36163,Vb.RENDERBUFFER_INTERNAL_FORMAT=36164,Vb.RENDERBUFFER_RED_SIZE=36176,Vb.RENDERBUFFER_GREEN_SIZE=36177,Vb.RENDERBUFFER_BLUE_SIZE=36178,Vb.RENDERBUFFER_ALPHA_SIZE=36179,Vb.RENDERBUFFER_DEPTH_SIZE=36180,Vb.RENDERBUFFER_STENCIL_SIZE=36181,Vb.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048,Vb.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049,Vb.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050,Vb.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051,Vb.COLOR_ATTACHMENT0=36064,Vb.DEPTH_ATTACHMENT=36096,Vb.STENCIL_ATTACHMENT=36128,Vb.DEPTH_STENCIL_ATTACHMENT=33306,Vb.NONE=0,Vb.FRAMEBUFFER_COMPLETE=36053,Vb.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054,Vb.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055,Vb.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057,Vb.FRAMEBUFFER_UNSUPPORTED=36061,Vb.FRAMEBUFFER_BINDING=36006,Vb.RENDERBUFFER_BINDING=36007,Vb.MAX_RENDERBUFFER_SIZE=34024,Vb.INVALID_FRAMEBUFFER_OPERATION=1286,Vb.UNPACK_FLIP_Y_WEBGL=37440,Vb.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441,Vb.CONTEXT_LOST_WEBGL=37442,Vb.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443,Vb.BROWSER_DEFAULT_WEBGL=37444,Vb.currentBoundTexture=new Array(8),Vb.textureStateCache=new hp,Kb.__identity=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],qb.__identity=new qb,Zb.__identity=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],im.GLOBAL_SSL=1,im.GLOBAL_WIN32=2,im.GLOBAL_ALL=3,im.GLOBAL_NOTHING=0,im.GLOBAL_DEFAULT=3,im.GLOBAL_ACK_EINTR=4,om.MESSAGE_COMPLETE="__COMPLETE__",om.MESSAGE_ERROR="__ERROR__",am.__moduleNames=null,vm.INVALID=0,vm.LEFT_TO_RIGHT=4,vm.RIGHT_TO_LEFT=5,vm.TOP_TO_BOTTOM=6,vm.BOTTOM_TO_TOP=7,Tm.COMMON="Zyyy",Tm.INHERITED="Zinh",Tm.UNKNOWN="Zzzz",Tm.ARABIC="Arab",Tm.ARMENIAN="Armn",Tm.BENGALI="Beng",Tm.CYRILLIC="Cyrl",Tm.DEVANAGARI="Deva",Tm.GEORGIAN="Geor",Tm.GREEK="Grek",Tm.GUJARATI="Gujr",Tm.GURMUKHI="Guru",Tm.HANGUL="Hang",Tm.HAN="Hani",Tm.HEBREW="Hebr",Tm.HIRAGANA="Hira",Tm.KANNADA="Knda",Tm.KATAKANA="Kana",Tm.LAO="Laoo",Tm.LATIN="Latn",Tm.MALAYALAM="Mlym",Tm.ORIYA="Orya",Tm.TAMIL="Taml",Tm.TELUGA="Telu",Tm.THAI="Thai",Tm.TIBETAN="Tibt",Tm.BOPOMOFO="Bopo",Tm.BRAILLE="Brai",Tm.CANADIAN_SYLLABICS="Cans",Tm.CHEROKEE="Cher",Tm.ETHIOPIC="Ethi",Tm.KHMER="Khmr",Tm.MONGOLIAN="Mong",Tm.MYANMAR="Mymr",Tm.OGHAM="Ogam",Tm.RUNIC="Runr",Tm.SINHALA="Sinh",Tm.SYRIAC="Syrc",Tm.THAANA="Thaa",Tm.YI="Yiii",Tm.DESERET="Dsrt",Tm.GOTHIC="Goth",Tm.OLD_ITALIC="Ital",Tm.BUHID="Buhd",Tm.HANUNOO="Hano",Tm.TAGALOG="Tglg",Tm.TAGBANWA="Tagb",Tm.CYPRIOT="Cprt",Tm.LIMBU="Limb",Tm.LINEAR_B="Linb",Tm.OSMANYA="Osma",Tm.SHAVIAN="Shaw",Tm.TAI_LE="Tale",Tm.UGARITIC="Ugar",Tm.BUGINESE="Bugi",Tm.COPTIC="Copt",Tm.GLAGOLITIC="Glag",Tm.KHAROSHTHI="Khar",Tm.NEW_TAI_LUE="Talu",Tm.OLD_PERSIAN="Xpeo",Tm.SYLOTI_NAGRI="Sylo",Tm.TIFINAGH="Tfng",Tm.BALINESE="Bali",Tm.CUNEIFORM="Xsux",Tm.NKO="Nkoo",Tm.PHAGS_PA="Phag",Tm.PHOENICIAN="Phnx",Tm.CARIAN="Cari",Tm.CHAM="Cham",Tm.KAYAH_LI="Kali",Tm.LEPCHA="Lepc",Tm.LYCIAN="Lyci";Tm.LYDIAN="Lydi",Tm.OL_CHIKI="Olck",Tm.REJANG="Rjng",Tm.SAURASHTRA="Saur",Tm.SUNDANESE="Sund",Tm.VAI="Vaii",Tm.AVESTAN="Avst",Tm.BAMUM="Bamu",Tm.EGYPTIAN_HIEROGLYPHS="Egyp",Tm.IMPERIAL_ARAMAIC="Armi",Tm.INSCRIPTIONAL_PAHLAVI="Phli",Tm.INSCRIPTIONAL_PARTHIAN="Prti",Tm.JAVANESE="Java",Tm.KAITHI="Kthi",Tm.LISU="Lisu",Tm.MEETEI_MAYEK="Mtei",Tm.OLD_SOUTH_ARABIAN="Sarb",Tm.OLD_TURKIC="Orkh",Tm.SAMARITAN="Samr",Tm.TAI_THAM="Lana",Tm.TAI_VIET="Tavt",Tm.BATAK="Batk",Tm.BRAHMI="Brah",Tm.MANDAIC="Mand",Tm.CHAKMA="Cakm",Tm.MEROITIC_CURSIVE="Merc",Tm.MEROITIC_HIEROGLYPHS="Mero",Tm.MIAO="Plrd",Tm.SHARADA="Shrd",Tm.SORA_SOMPENG="Sora",Tm.TAKRI="Takr",Tm.BASSA_VAH="Bass",Tm.CAUCASIAN_ALBANIAN="Aghb",Tm.DUPLOYAN="Dupl",Tm.ELBASAN="Elba",Tm.GRANTHA="Gran",Tm.KHOJKI="Khoj",Tm.KHUDAWADI="Sind",Tm.LINEAR_A="Lina",Tm.MAHAJANI="Mahj",Tm.MANICHAEAN="Mani",Tm.MENDE_KIKAKUI="Mend",Tm.MODI="Modi",Tm.MRO="Mroo",Tm.NABATAEAN="Nbat",Tm.OLD_NORTH_ARABIAN="Narb",Tm.OLD_PERMIC="Perm",Tm.PAHAWH_HMONG="Hmng",Tm.PALMYRENE="Palm",Tm.PAU_CIN_HAU="Pauc",Tm.PSALTER_PAHLAVI="Phlp",Tm.SIDDHAM="Sidd",Tm.TIRHUTA="Tirh",Tm.WARANG_CITI="Wara",Sm.devices=new lp,Sm.onConnect=new db,xm.LEFT_X=0,xm.LEFT_Y=1,xm.RIGHT_X=2,xm.RIGHT_Y=3,xm.TRIGGER_LEFT=4,xm.TRIGGER_RIGHT=5,Em.A=0,Em.B=1,Em.X=2,Em.Y=3,Em.BACK=4,Em.GUIDE=5,Em.START=6,Em.LEFT_STICK=7,Em.RIGHT_STICK=8,Em.LEFT_SHOULDER=9,Em.RIGHT_SHOULDER=10,Em.DPAD_UP=11,Em.DPAD_DOWN=12,Em.DPAD_LEFT=13,Em.DPAD_RIGHT=14,Pm.devices=new lp,Pm.onConnect=new cb,Rm.CENTER=0,Rm.DOWN=4,Rm.LEFT=8,Rm.RIGHT=2,Rm.UP=1,Rm.DOWN_LEFT=12,Rm.DOWN_RIGHT=6,Rm.UP_LEFT=9,Rm.UP_RIGHT=3,Am.UNKNOWN=0,Am.BACKSPACE=8,Am.TAB=9,Am.RETURN=13,Am.ESCAPE=27,Am.SPACE=32,Am.EXCLAMATION=33,Am.QUOTE=34,Am.HASH=35,Am.DOLLAR=36,Am.PERCENT=37,Am.AMPERSAND=38,Am.SINGLE_QUOTE=39,Am.LEFT_PARENTHESIS=40,Am.RIGHT_PARENTHESIS=41,Am.ASTERISK=42,Am.PLUS=43,Am.COMMA=44,Am.MINUS=45,Am.PERIOD=46,Am.SLASH=47,Am.NUMBER_0=48,Am.NUMBER_1=49,Am.NUMBER_2=50,Am.NUMBER_3=51,Am.NUMBER_4=52,Am.NUMBER_5=53,Am.NUMBER_6=54,Am.NUMBER_7=55,Am.NUMBER_8=56,Am.NUMBER_9=57,Am.COLON=58,Am.SEMICOLON=59,Am.LESS_THAN=60,Am.EQUALS=61,Am.GREATER_THAN=62,Am.QUESTION=63,Am.AT=64,Am.LEFT_BRACKET=91,Am.BACKSLASH=92,Am.RIGHT_BRACKET=93,Am.CARET=94,Am.UNDERSCORE=95,Am.GRAVE=96,Am.A=97,Am.B=98,Am.C=99,Am.D=100,Am.E=101,Am.F=102,Am.G=103,Am.H=104,Am.I=105,Am.J=106,Am.K=107,Am.L=108,Am.M=109,Am.N=110,Am.O=111,Am.P=112,Am.Q=113,Am.R=114,Am.S=115,Am.T=116,Am.U=117,Am.V=118,Am.W=119,Am.X=120,Am.Y=121,Am.Z=122,Am.DELETE=127,Am.CAPS_LOCK=1073741881,Am.F1=1073741882,Am.F2=1073741883,Am.F3=1073741884,Am.F4=1073741885,Am.F5=1073741886,Am.F6=1073741887,Am.F7=1073741888,Am.F8=1073741889,Am.F9=1073741890,Am.F10=1073741891,Am.F11=1073741892,Am.F12=1073741893,Am.PRINT_SCREEN=1073741894,Am.SCROLL_LOCK=1073741895,Am.PAUSE=1073741896,Am.INSERT=1073741897,Am.HOME=1073741898,Am.PAGE_UP=1073741899,Am.END=1073741901,Am.PAGE_DOWN=1073741902,Am.RIGHT=1073741903,Am.LEFT=1073741904,Am.DOWN=1073741905,Am.UP=1073741906,Am.NUM_LOCK=1073741907,Am.NUMPAD_DIVIDE=1073741908,Am.NUMPAD_MULTIPLY=1073741909,Am.NUMPAD_MINUS=1073741910,Am.NUMPAD_PLUS=1073741911,Am.NUMPAD_ENTER=1073741912,Am.NUMPAD_1=1073741913,Am.NUMPAD_2=1073741914,Am.NUMPAD_3=1073741915,Am.NUMPAD_4=1073741916,Am.NUMPAD_5=1073741917,Am.NUMPAD_6=1073741918,Am.NUMPAD_7=1073741919,Am.NUMPAD_8=1073741920,Am.NUMPAD_9=1073741921,Am.NUMPAD_0=1073741922,Am.NUMPAD_PERIOD=1073741923,Am.APPLICATION=1073741925,Am.POWER=1073741926,Am.NUMPAD_EQUALS=1073741927,Am.F13=1073741928,Am.F14=1073741929,Am.F15=1073741930,Am.F16=1073741931,Am.F17=1073741932,Am.F18=1073741933,Am.F19=1073741934,Am.F20=1073741935,Am.F21=1073741936,Am.F22=1073741937,Am.F23=1073741938,Am.F24=1073741939,Am.EXECUTE=1073741940,Am.HELP=1073741941,Am.MENU=1073741942,Am.SELECT=1073741943,Am.STOP=1073741944,Am.AGAIN=1073741945,Am.UNDO=1073741946,Am.CUT=1073741947,Am.COPY=1073741948,Am.PASTE=1073741949,Am.FIND=1073741950,Am.MUTE=1073741951,Am.VOLUME_UP=1073741952,Am.VOLUME_DOWN=1073741953,Am.NUMPAD_COMMA=1073741957,Am.ALT_ERASE=1073741977,Am.SYSTEM_REQUEST=1073741978,Am.CANCEL=1073741979,Am.CLEAR=1073741980,Am.PRIOR=1073741981,Am.RETURN2=1073741982,Am.SEPARATOR=1073741983,Am.OUT=1073741984,Am.OPER=1073741985,Am.CLEAR_AGAIN=1073741986,Am.CRSEL=1073741987,Am.EXSEL=1073741988,Am.NUMPAD_00=1073742e3,Am.NUMPAD_000=1073742001,Am.THOUSAND_SEPARATOR=1073742002,Am.DECIMAL_SEPARATOR=1073742003,Am.CURRENCY_UNIT=1073742004,Am.CURRENCY_SUBUNIT=1073742005,Am.NUMPAD_LEFT_PARENTHESIS=1073742006,Am.NUMPAD_RIGHT_PARENTHESIS=1073742007,Am.NUMPAD_LEFT_BRACE=1073742008,Am.NUMPAD_RIGHT_BRACE=1073742009,Am.NUMPAD_TAB=1073742010,Am.NUMPAD_BACKSPACE=1073742011,Am.NUMPAD_A=1073742012,Am.NUMPAD_B=1073742013,Am.NUMPAD_C=1073742014,Am.NUMPAD_D=1073742015,Am.NUMPAD_E=1073742016,Am.NUMPAD_F=1073742017,Am.NUMPAD_XOR=1073742018,Am.NUMPAD_POWER=1073742019,Am.NUMPAD_PERCENT=1073742020,Am.NUMPAD_LESS_THAN=1073742021,Am.NUMPAD_GREATER_THAN=1073742022,Am.NUMPAD_AMPERSAND=1073742023,Am.NUMPAD_DOUBLE_AMPERSAND=1073742024,Am.NUMPAD_VERTICAL_BAR=1073742025,Am.NUMPAD_DOUBLE_VERTICAL_BAR=1073742026,Am.NUMPAD_COLON=1073742027,Am.NUMPAD_HASH=1073742028,Am.NUMPAD_SPACE=1073742029,Am.NUMPAD_AT=1073742030,Am.NUMPAD_EXCLAMATION=1073742031,Am.NUMPAD_MEM_STORE=1073742032,Am.NUMPAD_MEM_RECALL=1073742033,Am.NUMPAD_MEM_CLEAR=1073742034,Am.NUMPAD_MEM_ADD=1073742035,Am.NUMPAD_MEM_SUBTRACT=1073742036,Am.NUMPAD_MEM_MULTIPLY=1073742037,Am.NUMPAD_MEM_DIVIDE=1073742038,Am.NUMPAD_PLUS_MINUS=1073742039,Am.NUMPAD_CLEAR=1073742040,Am.NUMPAD_CLEAR_ENTRY=1073742041,Am.NUMPAD_BINARY=1073742042,Am.NUMPAD_OCTAL=1073742043,Am.NUMPAD_DECIMAL=1073742044,Am.NUMPAD_HEXADECIMAL=1073742045,Am.LEFT_CTRL=1073742048,Am.LEFT_SHIFT=1073742049,Am.LEFT_ALT=1073742050,Am.LEFT_META=1073742051,Am.RIGHT_CTRL=1073742052,Am.RIGHT_SHIFT=1073742053,Am.RIGHT_ALT=1073742054,Am.RIGHT_META=1073742055,Am.MODE=1073742081,Am.AUDIO_NEXT=1073742082,Am.AUDIO_PREVIOUS=1073742083,Am.AUDIO_STOP=1073742084,Am.AUDIO_PLAY=1073742085,Am.AUDIO_MUTE=1073742086,Am.MEDIA_SELECT=1073742087,Am.WWW=1073742088,Am.MAIL=1073742089,Am.CALCULATOR=1073742090,Am.COMPUTER=1073742091,Am.APP_CONTROL_SEARCH=1073742092,Am.APP_CONTROL_HOME=1073742093,Am.APP_CONTROL_BACK=1073742094,Am.APP_CONTROL_FORWARD=1073742095,Am.APP_CONTROL_STOP=1073742096,Am.APP_CONTROL_REFRESH=1073742097,Am.APP_CONTROL_BOOKMARKS=1073742098,Am.BRIGHTNESS_DOWN=1073742099,Am.BRIGHTNESS_UP=1073742100,Am.DISPLAY_SWITCH=1073742101,Am.BACKLIGHT_TOGGLE=1073742102,Am.BACKLIGHT_DOWN=1073742103,Am.BACKLIGHT_UP=1073742104,Am.EJECT=1073742105,Am.SLEEP=1073742106,Im.NONE=0,Im.LEFT_SHIFT=1,Im.RIGHT_SHIFT=2,Im.LEFT_CTRL=64,Im.RIGHT_CTRL=128,Im.LEFT_ALT=256,Im.RIGHT_ALT=512,Im.LEFT_META=1024,Im.RIGHT_META=2048,Im.NUM_LOCK=4096,Im.CAPS_LOCK=8192,Im.MODE=16384,Im.CTRL=192,Im.SHIFT=3,Im.ALT=768,Im.META=3072,Dm.onEnd=new pb,Dm.onMove=new pb,Dm.onStart=new pb,Mm.cffi_lime_bytes_from_data_pointer=am.load("lime","lime_bytes_from_data_pointer",2,!1),Mm.cffi_lime_bytes_get_data_pointer=am.load("lime","lime_bytes_get_data_pointer",1,!1),Mm.cffi_lime_bytes_read_file=am.load("lime","lime_bytes_read_file",1,!1),Lm.BYTES_PER_ELEMENT=4,Om.BYTES_PER_ELEMENT=2,Um.BYTES_PER_ELEMENT=4,zm.BYTES_PER_ELEMENT=2,Xm.BYTES_PER_ELEMENT=4,Hm.BYTES_PER_ELEMENT=1,Wm.cache=new Ym,Wm.dispatcher=new g,jm.pool=new la(function(){return new jm}),jm.__clid=mr.registerClass(jm),Km.pool=new la(function(){return new Km}),Km.__identity=new Km,Km.__temp=new Km,Km.__clid=mr.registerClass(Km),qm.pool=new la(function(){return new qm}),qm.__clid=mr.registerClass(qm),Zm.current=new d,Zm.__sentWarnings=new up,tg.__clid=mr.registerClass(tg),Sg.BEGIN_BITMAP_FILL=0,Sg.BEGIN_FILL=1,Sg.BEGIN_GRADIENT_FILL=2,Sg.CUBIC_CURVE_TO=3,Sg.CURVE_TO=4,Sg.DRAW_CIRCLE=5,Sg.DRAW_ARC=6,Sg.DRAW_ELLIPSE=7,Sg.DRAW_IMAGE=8,Sg.DRAW_PATH=9,Sg.DRAW_RECT=10,Sg.DRAW_ROUND_RECT=11,Sg.DRAW_TILES=12,Sg.DRAW_TRIANGLES=13,Sg.END_FILL=14,Sg.LINE_BITMAP_STYLE=15,Sg.LINE_GRADIENT_STYLE=16,Sg.LINE_STYLE=17,Sg.LINE_TO=18,Sg.MOVE_TO=19,Sg.OVERRIDE_MATRIX=20,Sg.UNKNOWN=21,Eg.pool=new la(function(){return window.document.createElement("canvas")}),Eg.SIN45=.7071067811865476,Eg.TAN22=.41421356237309503,Eg.padding=1,Eg.canvasWindingRule="evenodd",Eg.positionX=0,Eg.positionY=0,Eg.closeGap=!1,Eg.startX=0,Eg.startY=0,Eg.currentTransform=new Km,Eg.snapCoordinates=!1,Eg.drawCommandReaderPool=new la(function(){return new sg(null)}),Eg.glMaxTextureSize=0,Cg.fbDataPool=new la(function(){return new Ig}),Cg.fbData=[],Cg.dataToClean=new hp,Bg.glContextId=0,Bg.glContexts=[],Dg.UID=0,Dg.currentVertexArray=null,kg.VERTEX_SRC=["attribute vec2 openfl_aPosition;","attribute vec2 openfl_aTexCoord0;","attribute vec4 openfl_aColor;","uniform mat3 openfl_uProjectionMatrix;","uniform mat3 openfl_uMaskMatrix;","uniform bool openfl_uUseColorTransform;","varying vec2 openfl_vTexCoord;","varying vec2 openfl_vMaskTexCoord;","varying vec4 openfl_vColor;","void main(void) {"," gl_Position = vec4((openfl_uProjectionMatrix * vec3(openfl_aPosition, 1.0)).xy, 0.0, 1.0);"," openfl_vTexCoord = openfl_aTexCoord0;"," openfl_vMaskTexCoord = (openfl_uMaskMatrix * vec3(openfl_aPosition, 1.0)).xy;"," if(openfl_uUseColorTransform)"," \topenfl_vColor = openfl_aColor;"," else"," \topenfl_vColor = vec4(openfl_aColor.rgb * openfl_aColor.a, openfl_aColor.a);","}"],Fg.VERTEX_SRC=["attribute vec2 openfl_aPosition;","attribute vec2 openfl_aTexCoord0;","attribute vec4 openfl_aColor;","uniform mat3 openfl_uProjectionMatrix;","uniform bool openfl_uUseColorTransform;","varying vec2 openfl_vTexCoord;","varying vec4 openfl_vColor;","void main(void) {","\tgl_Position = vec4((openfl_uProjectionMatrix * vec3(openfl_aPosition, 1.0)).xy, 0.0, 1.0);","\topenfl_vTexCoord = openfl_aTexCoord0;","\tif(openfl_uUseColorTransform)","\t\topenfl_vColor = openfl_aColor;","\telse","\t\topenfl_vColor = vec4(openfl_aColor.rgb * openfl_aColor.a, openfl_aColor.a);","}"],Hg.glMaxTextureSize=0,Vg.compiledShadersCache=new up,Wg.VERTS_PER_SPRITE=4,Zg.UTF8_TAB=9,Zg.UTF8_ENDLINE=10,Zg.UTF8_SPACE=32,Zg.UTF8_HYPHEN=45,Zg.OFFSET_START=2,Zg.__defaultFonts=new up,sw.__isGLES=null,nw.ADD=0,nw.ALPHA=1,nw.DARKEN=2,nw.DIFFERENCE=3,nw.ERASE=4,nw.HARDLIGHT=5,nw.INVERT=6,nw.LAYER=7,nw.LIGHTEN=8,nw.MULTIPLY=9,nw.NORMAL=10,nw.OVERLAY=11,nw.SCREEN=12,nw.SHADER=13,nw.SUBTRACT=14,iw.NONE=0,iw.ROUND=1,iw.SQUARE=2,lw.LINEAR=0,lw.RADIAL=1,hw.__dirtyGraphicsDelay=2,hw.TILE_SCALE=1,hw.TILE_ROTATION=2,hw.TILE_RGB=4,hw.TILE_ALPHA=8,hw.TILE_TRANS_2x2=16,hw.TILE_RECT=32,hw.TILE_ORIGIN=64,hw.TILE_BLEND_NORMAL=0,hw.TILE_BLEND_ADD=65536,hw.TILE_BLEND_MULTIPLY=131072,hw.TILE_BLEND_SCREEN=262144,hw.TILE_BLEND_SUBTRACT=524288,hw.TILE_BLEND_DARKEN=1048576,hw.TILE_BLEND_LIGHTEN=2097152,hw.TILE_BLEND_OVERLAY=4194304,hw.TILE_BLEND_HARDLIGHT=8388608,hw.TILE_BLEND_DIFFERENCE=16777216,hw.TILE_BLEND_INVERT=33554432,hw.__clid=mr.registerClass(hw),vw.pool=new la(function(){return new vw}),Sw.LINEAR_RGB=0,Sw.RGB=1,Ew.BEVEL=0,Ew.MITER=1,Ew.ROUND=2,Pw.HORIZONTAL=0,Pw.NONE=1,Pw.NORMAL=2,Pw.VERTICAL=3,Aw.__rootURL=window.document.URL,Iw.CONTEXT_LOST="glcontextlost",Iw.CONTEXT_RESTORED="glcontextrestored",Bw.ALWAYS=0,Bw.AUTO=1,Bw.NEVER=2,kw.uniformRegex=new V("^\\s*uniform\\s+(sampler(?:2D|Cube)|[bi]?vec[234]|float|int|bool|mat[234])\\s+(\\w+)\\s*(?:\\[(\\d+)\\])?\\s*;.*$","gmi"),kw.aPosition="openfl_aPosition",kw.aTexCoord="openfl_aTexCoord0",kw.aColor="openfl_aColor",kw.uSampler="openfl_uSampler0",kw.uProjectionMatrix="openfl_uProjectionMatrix",kw.uColorMultiplier="openfl_uColorMultiplier",kw.uColorOffset="openfl_uColorOffset",kw.uObjectSize="openfl_uObjectSize",kw.uTextureSize="openfl_uTextureSize",kw.vTexCoord="openfl_vTexCoord",kw.vColor="openfl_vColor",kw.vertexHeader=["attribute vec2 "+kw.aPosition+";","attribute vec2 "+kw.aTexCoord+";","attribute vec4 "+kw.aColor+";","uniform mat3 "+kw.uProjectionMatrix+";","uniform vec2 "+kw.uObjectSize+";","uniform vec2 "+kw.uTextureSize+";","varying vec2 "+kw.vTexCoord+";","varying vec4 "+kw.vColor+";"],kw.fragmentHeader=["uniform sampler2D "+kw.uSampler+";","uniform vec4 "+kw.uColorMultiplier+";","uniform vec4 "+kw.uColorOffset+";","uniform vec2 "+kw.uObjectSize+";","uniform vec2 "+kw.uTextureSize+";","varying vec2 "+kw.vTexCoord+";","varying vec4 "+kw.vColor+";","vec4 colorTransform(const vec4 color, const vec4 tint, const vec4 multiplier, const vec4 offset) {"," vec4 unmultiply = vec4(color.rgb / color.a, color.a);"," vec4 result = unmultiply * tint * multiplier;"," result = result + offset;"," result = clamp(result, 0., 1.);"," result = vec4(result.rgb * result.a, result.a);"," return result;","}"],Mw.PAD=0,Mw.REFLECT=1,Mw.REPEAT=2,Lw.__calledOnMouseThisFrame=!1,Ow.BOTTOM=0,Ow.BOTTOM_LEFT=1,Ow.BOTTOM_RIGHT=2,Ow.LEFT=3,Ow.RIGHT=4,Ow.TOP=5,Ow.TOP_LEFT=6,Ow.TOP_RIGHT=7,Uw.FULL_SCREEN=0,Uw.FULL_SCREEN_INTERACTIVE=1,Uw.NORMAL=2,Gw.BEST=0,Gw.HIGH=1,Gw.LOW=2,Gw.MEDIUM=3,zw.EXACT_FIT=0,zw.NO_BORDER=1,zw.NO_SCALE=2,zw.SHOW_ALL=3,Xw.NEGATIVE=0,Xw.NONE=1,Xw.POSITIVE=2,Yw.TEXTURE_MAX_ANISOTROPY_EXT=34046,Yw.MAX_SAMPLERS=8,Yw.MAX_TEXTURE_MAX_ANISOTROPY_EXT=34047,Yw.anisotropySupportTested=!1,Yw.supportsAnisotropy=!1,Yw.maxSupportedAnisotropy=256,Kw.ALL=17664,Kw.COLOR=16384,Kw.DEPTH=256,Kw.STENCIL=1024,qw.ALWAYS=519,qw.EQUAL=514,qw.GREATER=516,qw.GREATER_EQUAL=518,qw.LESS=513,qw.LESS_EQUAL=515,qw.NEVER=512,qw.NOT_EQUAL=517,ev.BACK=1028,ev.FRONT=1029,ev.FRONT_AND_BACK=1032,ev.NONE=0,hv.internalFormat=-1,_v.DEFAULT_TO_STRING="Error",bv.ACTIVITY="activity",mv.LINK="link",mv.TEXT_INPUT="textInput",gv.ERROR="error",vv.FOCUS_IN="focusIn",vv.FOCUS_OUT="focusOut",vv.KEY_FOCUS_CHANGE="keyFocusChange",vv.MOUSE_FOCUS_CHANGE="mouseFocusChange",yv.FULL_SCREEN="fullScreen",yv.FULL_SCREEN_INTERACTIVE_ACCEPTED="fullScreenInteractiveAccepted",Tv.DEVICE_ADDED="deviceAdded",Tv.DEVICE_REMOVED="deviceRemoved",Tv.DEVICE_UNUSABLE="deviceUnusable",Sv.HTTP_RESPONSE_STATUS="httpResponseStatus",Sv.HTTP_STATUS="httpStatus",xv.IO_ERROR="ioError",Ev.KEY_DOWN="keyDown",Ev.KEY_UP="keyUp",Pv.pool=new la(function(){return new Pv}),Pv.CLICK="click",Pv.DOUBLE_CLICK="doubleClick",Pv.MIDDLE_CLICK="middleClick",Pv.MIDDLE_MOUSE_DOWN="middleMouseDown",Pv.MIDDLE_MOUSE_UP="middleMouseUp",Pv.MOUSE_DOWN="mouseDown",Pv.MOUSE_MOVE="mouseMove",Pv.MOUSE_OUT="mouseOut",Pv.MOUSE_OVER="mouseOver",Pv.MOUSE_UP="mouseUp",Pv.MOUSE_WHEEL="mouseWheel",Pv.RIGHT_CLICK="rightClick",Pv.RIGHT_MOUSE_DOWN="rightMouseDown",Pv.RIGHT_MOUSE_UP="rightMouseUp",Pv.ROLL_OUT="rollOut",Pv.ROLL_OVER="rollOver",Rv.NET_STATUS="netStatus",Av.PROGRESS="progress",Av.SOCKET_DATA="socketData",Iv.SECURITY_ERROR="securityError",Cv.TIMER="timer",Cv.TIMER_COMPLETE="timerComplete",Bv.TOUCH_BEGIN="touchBegin",Bv.TOUCH_END="touchEnd",Bv.TOUCH_MOVE="touchMove",Bv.TOUCH_OUT="touchOut",Bv.TOUCH_OVER="touchOver",Bv.TOUCH_ROLL_OUT="touchRollOut",Bv.TOUCH_ROLL_OVER="touchRollOver",Bv.TOUCH_TAP="touchTap",kv.__inverseAlphaMultipliers=null!=(ZT=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,-1])?new GT(ZT):null,kv.__inverseAlphaOffsets=null!=(JT=[0,0,0,1])?new GT(JT):null,Fv.__textureCacheMap=new lp,Nv.FULL=0,Nv.INNER=1,Nv.OUTER=2,Hv.__meta__={fields:{vertex:{vertex:null},fragment:{fragment:null},get_openfl_uScaleVector:{noCompletion:null},set_openfl_uScaleVector:{noCompletion:null},get_uTexCoordOffset:{noCompletion:null},set_uTexCoordOffset:{noCompletion:null},get_uTexCoordDelta:{noCompletion:null},set_uTexCoordDelta:{noCompletion:null},get_uFetchCount:{noCompletion:null},set_uFetchCount:{noCompletion:null}}},Yv.MAXIMUM_FETCH_COUNT=32,Yv.__shader=new Hv,Wv.__meta__={fields:{vertex:{vertex:null},fragment:{fragment:null},get_openfl_uScaleVector:{noCompletion:null},set_openfl_uScaleVector:{noCompletion:null},get_uColorLookupSampler:{noCompletion:null},set_uColorLookupSampler:{noCompletion:null}}},jv.__shader=new Wv,Kv.__meta__={fields:{vertex:{vertex:null},fragment:{fragment:null},get_openfl_uScaleVector:{noCompletion:null},set_openfl_uScaleVector:{noCompletion:null},get_uMultipliers:{noCompletion:null},set_uMultipliers:{noCompletion:null},get_uOffsets:{noCompletion:null},set_uOffsets:{noCompletion:null}}},qv.__shader=new Kv,Zv.__meta__={fields:{vertex:{vertex:null},fragment:{fragment:null},get_openfl_uScaleVector:{noCompletion:null},set_openfl_uScaleVector:{noCompletion:null},get_uColor:{noCompletion:null},set_uColor:{noCompletion:null}}},Jv.__shader=new Zv,Qv.__meta__={fields:{vertex:{vertex:null},fragment:{fragment:null},get_openfl_uScaleVector:{noCompletion:null},set_openfl_uScaleVector:{noCompletion:null},get_uSource1Sampler:{noCompletion:null},set_uSource1Sampler:{noCompletion:null}}},$v.__shader=new Qv,ey.__meta__={fields:{vertex:{vertex:null},fragment:{fragment:null},get_openfl_uScaleVector:{noCompletion:null},set_openfl_uScaleVector:{noCompletion:null},get_uSource1Sampler:{noCompletion:null},set_uSource1Sampler:{noCompletion:null}}},ty.__shader=new ey,ny.__meta__={fields:{vertex:{vertex:null},fragment:{fragment:null},get_openfl_uScaleVector:{noCompletion:null},set_openfl_uScaleVector:{noCompletion:null},get_uShadowSourceSampler:{noCompletion:null},set_uShadowSourceSampler:{noCompletion:null},get_uStrength:{noCompletion:null},set_uStrength:{noCompletion:null}}},iy.__shader=new ny,ry.__meta__={fields:{vertex:{vertex:null},fragment:{fragment:null},get_openfl_uScaleVector:{noCompletion:null},set_openfl_uScaleVector:{noCompletion:null},get_uSource1Sampler:{noCompletion:null},set_uSource1Sampler:{noCompletion:null},get_outer:{noCompletion:null},set_outer:{noCompletion:null}}},oy.__shader=new ry,ay.__meta__={fields:{vertex:{vertex:null},fragment:{fragment:null},get_openfl_uScaleVector:{noCompletion:null},set_openfl_uScaleVector:{noCompletion:null},get_uTexCoordOffset:{noCompletion:null},set_uTexCoordOffset:{noCompletion:null},get_uStrength:{noCompletion:null},set_uStrength:{noCompletion:null}}},ly.__shader=new ay,hy.__meta__={fields:{vertex:{vertex:null},fragment:{fragment:null},get_openfl_uScaleVector:{noCompletion:null},set_openfl_uScaleVector:{noCompletion:null},get_uSource1Sampler:{noCompletion:null},set_uSource1Sampler:{noCompletion:null},get_allow_transparency:{noCompletion:null},set_allow_transparency:{noCompletion:null}}},_y.__shader=new hy,dy.AXIS_ANGLE=0,dy.EULER_ANGLES=1,dy.QUATERNION=2,cy.pool=new la(function(){return new cy}),cy.__temp=new cy,cy.__clid=mr.registerClass(cy),fy.pool=new la(function(){return new fy(null)}),my.__registeredSounds=new up,gy.pool=new la(function(){return new gy}),yy.CONNECT_SUCCESS="connectSuccess",Ty.defaultObjectEncoding=3,Sy.FLUSHED=0,Sy.PENDING=1,Ey.BINARY=0,Ey.TEXT=1,Ey.VARIABLES=2,Ay.DELETE=0,Ay.GET=1,Ay.HEAD=2,Ay.OPTIONS=3,Ay.POST=4,Ay.PUT=5,Cy.currentDomain=new Cy(null),Dy.currentDomain=new Dy,ky.ADVANCED=0,ky.NORMAL=1,Fy.BOLD=0,Fy.BOLD_ITALIC=1,Fy.ITALIC=2,Fy.REGULAR=3,My.DEVICE=0,My.EMBEDDED=1,My.EMBEDDED_CFF=2,Ly.NONE=0,Ly.PIXEL=1,Ly.SUBPIXEL=2,Ny.CENTER=0,Ny.LEFT=1,Ny.NONE=2,Ny.RIGHT=3,Oy.DYNAMIC=0,Oy.INPUT=1,Gy.CENTER=0,Gy.END=1,Gy.JUSTIFY=2,Gy.LEFT=3,Gy.RIGHT=4,Gy.START=5,Xy.isSupported=!0,Xy.numDevices=0,Xy.__deviceList=[],Xy.__devices=new hp,Xy.__instances=[],Vy.MAX_BUFFER_SIZE=32e3,Yy.NUMBER_0=48,Yy.NUMBER_1=49,Yy.NUMBER_2=50,Yy.NUMBER_3=51,Yy.NUMBER_4=52,Yy.NUMBER_5=53,Yy.NUMBER_6=54,Yy.NUMBER_7=55,Yy.NUMBER_8=56,Yy.NUMBER_9=57,Yy.A=65,Yy.B=66,Yy.C=67,Yy.D=68,Yy.E=69,Yy.F=70,Yy.G=71,Yy.H=72,Yy.I=73,Yy.J=74,Yy.K=75,Yy.L=76,Yy.M=77,Yy.N=78,Yy.O=79,Yy.P=80,Yy.Q=81,Yy.R=82,Yy.S=83,Yy.T=84,Yy.U=85,Yy.V=86,Yy.W=87,Yy.X=88,Yy.Y=89,Yy.Z=90,Yy.NUMPAD_0=96,Yy.NUMPAD_1=97,Yy.NUMPAD_2=98,Yy.NUMPAD_3=99,Yy.NUMPAD_4=100,Yy.NUMPAD_5=101,Yy.NUMPAD_6=102,Yy.NUMPAD_7=103,Yy.NUMPAD_8=104,Yy.NUMPAD_9=105,Yy.NUMPAD_MULTIPLY=106,Yy.NUMPAD_ADD=107,Yy.NUMPAD_ENTER=108,Yy.NUMPAD_SUBTRACT=109,Yy.NUMPAD_DECIMAL=110,Yy.NUMPAD_DIVIDE=111,Yy.F1=112,Yy.F2=113,Yy.F3=114,Yy.F4=115,Yy.F5=116,Yy.F6=117,Yy.F7=118,Yy.F8=119,Yy.F9=120,Yy.F10=121,Yy.F11=122,Yy.F12=123,Yy.F13=124,Yy.F14=125,Yy.F15=126,Yy.BACKSPACE=8,Yy.TAB=9,Yy.ALTERNATE=18,Yy.ENTER=13,Yy.COMMAND=15,Yy.SHIFT=16,Yy.CONTROL=17,Yy.BREAK=19,Yy.CAPS_LOCK=20,Yy.NUMPAD=21,Yy.ESCAPE=27,Yy.SPACE=32,Yy.PAGE_UP=33,Yy.PAGE_DOWN=34,Yy.END=35,Yy.HOME=36,Yy.LEFT=37,Yy.RIGHT=39,Yy.UP=38,Yy.DOWN=40,Yy.INSERT=45,Yy.DELETE=46,Yy.NUMLOCK=144,Yy.SEMICOLON=186,Yy.EQUAL=187,Yy.COMMA=188,Yy.MINUS=189,Yy.PERIOD=190,Yy.SLASH=191,Yy.BACKQUOTE=192,Yy.LEFTBRACKET=219,Yy.BACKSLASH=220,Yy.RIGHTBRACKET=221,Yy.QUOTE=222,Ky.DEFLATE=0,Ky.LZMA=1,Ky.ZLIB=2,Zy.BIG_ENDIAN=0,Zy.LITTLE_ENDIAN=1,Jy.__clid=mr.registerClass(Jy),rT.dialogIsShown=!1,qr.main()}("undefined"!=typeof exports?exports:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this,"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this);