var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(G,Ga,v){G!=Array.prototype&&G!=Object.prototype&&(G[Ga]=v.value)};$jscomp.getGlobal=function(G){return"undefined"!=typeof window&&window===G?G:"undefined"!=typeof global&&null!=global?global:G};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var G=0;return function(Ga){return $jscomp.SYMBOL_PREFIX+(Ga||"")+G++}}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var G=$jscomp.global.Symbol.iterator;G||(G=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[G]&&$jscomp.defineProperty(Array.prototype,G,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};
$jscomp.arrayIterator=function(G){var Ga=0;return $jscomp.iteratorPrototype(function(){return Ga<G.length?{done:!1,value:G[Ga++]}:{done:!0}})};$jscomp.iteratorPrototype=function(G){$jscomp.initSymbolIterator();G={next:G};G[$jscomp.global.Symbol.iterator]=function(){return this};return G};
$jscomp.iteratorFromArray=function(G,Ga){$jscomp.initSymbolIterator();G instanceof String&&(G+="");var v=0,bb={next:function(){if(v<G.length){var u=v++;return{value:Ga(u,G[u]),done:!1}}bb.next=function(){return{done:!0,value:void 0}};return bb.next()}};bb[Symbol.iterator]=function(){return bb};return bb};
$jscomp.polyfill=function(G,Ga,v,bb){if(Ga){v=$jscomp.global;G=G.split(".");for(bb=0;bb<G.length-1;bb++){var u=G[bb];u in v||(v[u]={});v=v[u]}G=G[G.length-1];bb=v[G];Ga=Ga(bb);Ga!=bb&&null!=Ga&&$jscomp.defineProperty(v,G,{configurable:!0,writable:!0,value:Ga})}};$jscomp.polyfill("Array.prototype.keys",function(G){return G?G:function(){return $jscomp.iteratorFromArray(this,function(G){return G})}},"es6","es3");
$jscomp.polyfill("String.fromCodePoint",function(G){return G?G:function(G){for(var v="",Ga=0;Ga<arguments.length;Ga++){var u=Number(arguments[Ga]);if(0>u||1114111<u||u!==Math.floor(u))throw new RangeError("invalid_code_point "+u);65535>=u?v+=String.fromCharCode(u):(u-=65536,v+=String.fromCharCode(u>>>10&1023|55296),v+=String.fromCharCode(u&1023|56320))}return v}},"es6","es3");
$jscomp.checkStringArgs=function(G,Ga,v){if(null==G)throw new TypeError("The 'this' value for String.prototype."+v+" must not be null or undefined");if(Ga instanceof RegExp)throw new TypeError("First argument to String.prototype."+v+" must not be a regular expression");return G+""};
$jscomp.polyfill("String.prototype.repeat",function(G){return G?G:function(G){var v=$jscomp.checkStringArgs(this,null,"repeat");if(0>G||1342177279<G)throw new RangeError("Invalid count value");G|=0;for(var Ga="";G;)if(G&1&&(Ga+=v),G>>>=1)v+=v;return Ga}},"es6","es3");
$jscomp.polyfill("String.prototype.startsWith",function(G){return G?G:function(G,v){var Ga=$jscomp.checkStringArgs(this,G,"startsWith");G+="";var u=Ga.length,m=G.length;v=Math.max(0,Math.min(v|0,Ga.length));for(var r=0;r<m&&v<u;)if(Ga[v++]!=G[r++])return!1;return r>=m}},"es6","es3");
$jscomp.polyfill("Array.prototype.fill",function(G){return G?G:function(G,v,bb){var u=this.length||0;0>v&&(v=Math.max(0,u+v));if(null==bb||bb>u)bb=u;bb=Number(bb);0>bb&&(bb=Math.max(0,u+bb));for(v=Number(v||0);v<bb;v++)this[v]=G;return this}},"es6","es3");
$jscomp.polyfill("String.prototype.codePointAt",function(G){return G?G:function(G){var v=$jscomp.checkStringArgs(this,null,"codePointAt"),Ga=v.length;G=Number(G)||0;if(0<=G&&G<Ga){G|=0;var u=v.charCodeAt(G);if(55296>u||56319<u||G+1===Ga)return u;G=v.charCodeAt(G+1);return 56320>G||57343<G?u:1024*(u-55296)+G+9216}}},"es6","es3");
$jscomp.polyfill("String.prototype.endsWith",function(G){return G?G:function(G,v){var Ga=$jscomp.checkStringArgs(this,G,"endsWith");G+="";void 0===v&&(v=Ga.length);v=Math.max(0,Math.min(v|0,Ga.length));for(var u=G.length;0<u&&0<v;)if(Ga[--v]!=G[--u])return!1;return 0>=u}},"es6","es3");
(function(G,Ga){function v(a,b){a=Object.create(a);for(var d in b)a[d]=b[d];b.toString!==Object.prototype.toString&&(a.toString=b.toString);return a}function bb(a){return a instanceof Array?L.iter(a):a.iterator()}function u(a,b){if(null==b)return null;null==b.__id__&&(b.__id__=kl++);var d;null==a.hx__closures__?a.hx__closures__={}:d=a.hx__closures__[b.__id__];null==d&&(d=b.bind(a),a.hx__closures__[b.__id__]=d);return d}G.lime=G.lime||{};var m={},r=function(){return U.__string_rec(this,"")},sa=sa||
{},p,Zf=function(){};m["lime.app.IModule"]=Zf;Zf.__name__="lime.app.IModule";Zf.prototype={__registerLimeModule:null,__class__:Zf};var Ye=function(){this.onExit=new Qd};m["lime.app.Module"]=Ye;Ye.__name__="lime.app.Module";Ye.__interfaces__=[Zf];Ye.prototype={onExit:null,__registerLimeModule:function(a){},__class__:Ye};var ei=function(a){this.gameDeviceCache=new Y;this.parent=a;this.nextUpdate=this.lastUpdate=this.currentUpdate=0;this.framePeriod=-1;re.init();this.accelerometer=cd.registerSensor(ll.ACCELEROMETER,
0)};m["lime._internal.backend.html5.HTML5Application"]=ei;ei.__name__="lime._internal.backend.html5.HTML5Application";ei.prototype={gameDeviceCache:null,accelerometer:null,currentUpdate:null,deltaTime:null,framePeriod:null,lastUpdate:null,nextUpdate:null,parent:null,convertKeyCode:function(a){if(65<=a&&90>=a)return a+32;switch(a){case 16:return 1073742049;case 17:return 1073742048;case 18:return 1073742050;case 20:return 1073741881;case 33:return 1073741899;case 34:return 1073741902;case 35:return 1073741901;
case 36:return 1073741898;case 37:return 1073741904;case 38:return 1073741906;case 39:return 1073741903;case 40:return 1073741905;case 45:return 1073741897;case 46:return 127;case 96:return 1073741922;case 97:return 1073741913;case 98:return 1073741914;case 99:return 1073741915;case 100:return 1073741916;case 101:return 1073741917;case 102:return 1073741918;case 103:return 1073741919;case 104:return 1073741920;case 105:return 1073741921;case 106:return 1073741909;case 107:return 1073741911;case 109:return 1073741910;
case 110:return 1073741923;case 111:return 1073741908;case 112:return 1073741882;case 113:return 1073741883;case 114:return 1073741884;case 115:return 1073741885;case 116:return 1073741886;case 117:return 1073741887;case 118:return 1073741888;case 119:return 1073741889;case 120:return 1073741890;case 121:return 1073741891;case 122:return 1073741892;case 123:return 1073741893;case 124:return 1073741928;case 125:return 1073741929;case 126:return 1073741930;case 144:return 1073741907;case 186:return 59;
case 187:return 61;case 188:return 44;case 189:return 45;case 190:return 46;case 191:return 47;case 192:return 96;case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39}return a},exec:function(){window.addEventListener("keydown",u(this,this.handleKeyEvent),!1);window.addEventListener("keyup",u(this,this.handleKeyEvent),!1);window.addEventListener("focus",u(this,this.handleWindowEvent),!1);window.addEventListener("blur",u(this,this.handleWindowEvent),!1);window.addEventListener("resize",
u(this,this.handleWindowEvent),!1);window.addEventListener("beforeunload",u(this,this.handleWindowEvent),!1);window.addEventListener("devicemotion",u(this,this.handleSensorEvent),!1);CanvasRenderingContext2D.prototype.isPointInStroke||(CanvasRenderingContext2D.prototype.isPointInStroke=function(a,b,c){return!1});CanvasRenderingContext2D.prototype.isPointInPath||(CanvasRenderingContext2D.prototype.isPointInPath=function(a,b,c){return!1});0=="performance"in window&&(window.performance={});if(0=="now"in
window.performance){var a=Date.now();performance.timing&&performance.timing.navigationStart&&(a=performance.timing.navigationStart);window.performance.now=function(){return Date.now()-a}}for(var b=0,d=["ms","moz","webkit","o"],c=0;c<d.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[d[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[d[c]+"CancelAnimationFrame"]||window[d[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=
function(a,c){var d=(new Date).getTime(),e=Math.max(0,16-(d-b));c=window.setTimeout(function(){a(d+e)},e);b=d+e;return c});window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)});window.requestAnimFrame=window.requestAnimationFrame;this.lastUpdate=(new Date).getTime();this.handleApplicationEvent();return 0},exit:function(){},handleApplicationEvent:function(a){a=0;for(var b=this.parent.__windows;a<b.length;){var d=b[a];++a;d.__backend.updateSize()}this.updateGameDevices();
this.currentUpdate=(new Date).getTime();if(this.currentUpdate>=this.nextUpdate){this.deltaTime=this.currentUpdate-this.lastUpdate;a=0;for(b=this.parent.__windows;a<b.length;)d=b[a],++a,this.parent.onUpdate.dispatch(this.deltaTime|0),null!=d.context&&d.onRender.dispatch(d.context);this.nextUpdate=0>this.framePeriod?this.currentUpdate:this.currentUpdate-this.currentUpdate%this.framePeriod+this.framePeriod;this.lastUpdate=this.currentUpdate}window.requestAnimationFrame(u(this,this.handleApplicationEvent))},
handleKeyEvent:function(a){if(null!=this.parent.__window){var b=this.convertKeyCode(null!=a.keyCode?a.keyCode:a.which),d=(a.shiftKey?3:0)|(a.ctrlKey?192:0)|(a.altKey?768:0)|(a.metaKey?3072:0);"keydown"==a.type?(this.parent.__window.onKeyDown.dispatch(b,d),this.parent.__window.onKeyDown.canceled&&a.preventDefault()):(this.parent.__window.onKeyUp.dispatch(b,d),this.parent.__window.onKeyUp.canceled&&a.preventDefault())}},handleSensorEvent:function(a){this.accelerometer.onUpdate.dispatch(a.accelerationIncludingGravity.x,
a.accelerationIncludingGravity.y,a.accelerationIncludingGravity.z)},handleWindowEvent:function(a){if(null!=this.parent.__window)switch(a.type){case "beforeunload":a.defaultPrevented||(this.parent.__window.onClose.dispatch(),null!=this.parent.__window&&this.parent.__window.onClose.canceled&&a.preventDefault());break;case "blur":this.parent.__window.onFocusOut.dispatch();this.parent.__window.onDeactivate.dispatch();break;case "focus":this.parent.__window.onFocusIn.dispatch();this.parent.__window.onActivate.dispatch();
break;case "resize":this.parent.__window.__backend.handleResizeEvent(a)}},updateGameDevices:function(){var a=lb.__getDeviceData();if(null!=a)for(var b,d,c,e,f,h=0,k=a.length;h<k;)if(b=h++,e=a[b],null!=e){if(!this.gameDeviceCache.h.hasOwnProperty(b)){f=new fi;f.id=b;f.connected=e.connected;d=0;for(c=e.buttons.length;d<c;){var n=d++;f.buttons.push(e.buttons[n].value)}d=0;for(c=e.axes.length;d<c;)n=d++,f.axes.push(e.axes[n]);"standard"==e.mapping&&(f.isGamepad=!0);this.gameDeviceCache.h[b]=f;e.connected&&
(lb.__connect(b),f.isGamepad&&gb.__connect(b))}f=this.gameDeviceCache.h[b];c=lb.devices.h[b];d=gb.devices.h[b];if(e.connected){for(var C=0,l=e.buttons.length;C<l;){var g=C++;n=e.buttons[g].value;if(n!=f.buttons[g]){if(6==g)c.onAxisMove.dispatch(e.axes.length,n),null!=d&&d.onAxisMove.dispatch(4,n);else if(7==g)c.onAxisMove.dispatch(e.axes.length+1,n),null!=d&&d.onAxisMove.dispatch(5,n);else if(0<n?c.onButtonDown.dispatch(g):c.onButtonUp.dispatch(g),null!=d){switch(g){case 0:b=0;break;case 1:b=1;break;
case 2:b=2;break;case 3:b=3;break;case 4:b=9;break;case 5:b=10;break;case 8:b=4;break;case 9:b=6;break;case 10:b=7;break;case 11:b=8;break;case 12:b=11;break;case 13:b=12;break;case 14:b=13;break;case 15:b=14;break;case 16:b=5;break;default:continue}0<n?d.onButtonDown.dispatch(b):d.onButtonUp.dispatch(b)}f.buttons[g]=n}}b=0;for(n=e.axes.length;b<n;)C=b++,e.axes[C]!=f.axes[C]&&(c.onAxisMove.dispatch(C,e.axes[C]),null!=d&&d.onAxisMove.dispatch(C,e.axes[C]),f.axes[C]=e.axes[C])}else f.connected&&(f.connected=
!1,lb.__disconnect(b),gb.__disconnect(b))}},__class__:ei};var Gb=function(){this.onCreateWindow=new gi;this.onUpdate=new Qd;this.onExit=new Qd;null==Gb.current&&(Gb.current=this);this.meta=new ea;this.modules=[];this.__windowByID=new Y;this.__windows=[];this.__backend=new ei(this);this.__registerLimeModule(this);this.__preloader=new se;this.__preloader.onProgress.add(u(this,this.onPreloadProgress));this.__preloader.onComplete.add(u(this,this.onPreloadComplete))};m["lime.app.Application"]=Gb;Gb.__name__=
"lime.app.Application";Gb.__super__=Ye;Gb.prototype=v(Ye.prototype,{meta:null,modules:null,onUpdate:null,onCreateWindow:null,__backend:null,__preloader:null,__window:null,__windowByID:null,__windows:null,addModule:function(a){a.__registerLimeModule(this);this.modules.push(a)},exec:function(){Gb.current=this;return this.__backend.exec()},onGamepadAxisMove:function(a,b,d){},onGamepadButtonDown:function(a,b){},onGamepadButtonUp:function(a,b){},onGamepadConnect:function(a){},onGamepadDisconnect:function(a){},
onJoystickAxisMove:function(a,b,d){},onJoystickButtonDown:function(a,b){},onJoystickButtonUp:function(a,b){},onJoystickConnect:function(a){},onJoystickDisconnect:function(a){},onJoystickHatMove:function(a,b,d){},onJoystickTrackballMove:function(a,b,d,c){},onKeyDown:function(a,b){},onKeyUp:function(a,b){},onModuleExit:function(a){},onMouseDown:function(a,b,d){},onMouseMove:function(a,b){},onMouseMoveRelative:function(a,b){},onMouseUp:function(a,b,d){},onMouseWheel:function(a,b,d){},onPreloadComplete:function(){},
onPreloadProgress:function(a,b){},onRenderContextLost:function(){},onRenderContextRestored:function(a){},onTextEdit:function(a,b,d){},onTextInput:function(a){},onTouchCancel:function(a){},onTouchEnd:function(a){},onTouchMove:function(a){},onTouchStart:function(a){},onWindowActivate:function(){},onWindowClose:function(){},onWindowCreate:function(){},onWindowDeactivate:function(){},onWindowDropFile:function(a){},onWindowEnter:function(){},onWindowExpose:function(){},onWindowFocusIn:function(){},onWindowFocusOut:function(){},
onWindowFullscreen:function(){},onWindowLeave:function(){},onWindowMove:function(a,b){},onWindowMinimize:function(){},onWindowResize:function(a,b){},onWindowRestore:function(){},render:function(a){},update:function(a){},__registerLimeModule:function(a){a.onUpdate.add(u(this,this.update));a.onExit.add(u(this,this.onModuleExit),!1,0);a.onExit.add(u(this,this.__onModuleExit),!1,0);for(a=gb.devices.iterator();a.hasNext();){var b=a.next();this.__onGamepadConnect(b)}gb.onConnect.add(u(this,this.__onGamepadConnect));
for(a=lb.devices.iterator();a.hasNext();)b=a.next(),this.__onJoystickConnect(b);lb.onConnect.add(u(this,this.__onJoystickConnect));nb.onCancel.add(u(this,this.onTouchCancel));nb.onStart.add(u(this,this.onTouchStart));nb.onMove.add(u(this,this.onTouchMove));nb.onEnd.add(u(this,this.onTouchEnd))},__removeWindow:function(a){null!=a&&this.__windowByID.h.hasOwnProperty(a.id)&&(this.__window==a&&(this.__window=null),L.remove(this.__windows,a),this.__windowByID.remove(a.id),a.close(),0==this.__windows.length&&
Na.exit(0))},__onGamepadConnect:function(a){this.onGamepadConnect(a);var b=u(this,this.onGamepadAxisMove);a.onAxisMove.add(function(c,d){b(a,c,d)});var d=u(this,this.onGamepadButtonDown);a.onButtonDown.add(function(b){d(a,b)});var c=u(this,this.onGamepadButtonUp);a.onButtonUp.add(function(b){c(a,b)});var e=u(this,this.onGamepadDisconnect);a.onDisconnect.add(function(){e(a)})},__onJoystickConnect:function(a){this.onJoystickConnect(a);var b=u(this,this.onJoystickAxisMove);a.onAxisMove.add(function(c,
d){b(a,c,d)});var d=u(this,this.onJoystickButtonDown);a.onButtonDown.add(function(b){d(a,b)});var c=u(this,this.onJoystickButtonUp);a.onButtonUp.add(function(b){c(a,b)});var e=u(this,this.onJoystickDisconnect);a.onDisconnect.add(function(){e(a)});var f=u(this,this.onJoystickHatMove);a.onHatMove.add(function(b,c){f(a,b,c)});var h=u(this,this.onJoystickTrackballMove);a.onTrackballMove.add(function(b,c,d){h(a,b,c,d)})},__onModuleExit:function(a){this.__backend.exit()},__onWindowClose:function(a){if(this.__window==
a)this.onWindowClose();this.__removeWindow(a)},__class__:Gb});var te=function(){};m.ApplicationMain=te;te.__name__="ApplicationMain";te.main=function(){Na.__registerEntryPoint("SWFTYExporter",te.create)};te.create=function(a){var b=new $f;nd.init(a);var d=b.meta;null!=t.build?d.setReserved("build","291"):d.h.build="291";d=b.meta;null!=t.company?d.setReserved("company","Jean-Denis Boivin"):d.h.company="Jean-Denis Boivin";d=b.meta;null!=t.file?d.setReserved("file","SWFTYExporter"):d.h.file="SWFTYExporter";
d=b.meta;null!=t.name?d.setReserved("name","SWFTY"):d.h.name="SWFTY";d=b.meta;null!=t.packageName?d.setReserved("packageName","jd.boivin.swfty_exporter"):d.h.packageName="jd.boivin.swfty_exporter";d={allowHighDPI:!0,alwaysOnTop:!1,borderless:!1,element:null,frameRate:60,height:300,hidden:!1,maximized:!1,minimized:!1,parameters:{},resizable:!1,title:"SWFTY",width:400,x:null,y:null,context:{antialiasing:0,background:0,colorDepth:32,depth:!0,hardware:!0,stencil:!0,type:null,vsync:!1}};if(null==b.__window&&
null!=a)for(var c=0,e=V.fields(a);c<e.length;){var f=e[c];++c;Object.prototype.hasOwnProperty.call(d,f)?d[f]=V.field(a,f):Object.prototype.hasOwnProperty.call(d.context,f)&&(d.context[f]=V.field(a,f))}b.createWindow(d);var h=new ag(new bg);b.__preloader.onProgress.add(function(a,b){h.update(a,b)});b.__preloader.onComplete.add(function(){h.start()});var k=U.__cast(b.__window,Ze).stage;h.onComplete.add(function(){te.start(k)});a=0;for(d=nd.preloadLibraries;a<d.length;)c=d[a],++a,b.__preloader.addLibrary(c);
a=0;for(d=nd.preloadLibraryNames;a<d.length;)c=d[a],++a,b.__preloader.addLibraryName(c);b.__preloader.load();b.exec()};te.start=function(a){try{var b=a.getChildAt(0);null!=b&&b instanceof oa||(b=new Xa,a.addChild(b));new cg(b);a.dispatchEvent(new R("resize",!1,!1));a.window.__fullscreen&&a.dispatchEvent(new Rd("fullScreen",!1,!1,!0,!0))}catch(d){fa.lastException=d,a.__handleError(d instanceof w?d.val:d)}};var Uj=function(){};m["openfl.events.IEventDispatcher"]=Uj;Uj.__name__="openfl.events.IEventDispatcher";
var ba=function(a){null!=a&&(this.__targetDispatcher=a)};m["openfl.events.EventDispatcher"]=ba;ba.__name__="openfl.events.EventDispatcher";ba.__interfaces__=[Uj];ba.prototype={__eventMap:null,__iterators:null,__targetDispatcher:null,addEventListener:function(a,b,d,c,e){null==c&&(c=0);null==d&&(d=!1);if(null!=b)if(null==this.__eventMap&&(this.__eventMap=new ea,this.__iterators=new ea),e=this.__eventMap,null!=t[a]?e.existsReserved(a):e.h.hasOwnProperty(a)){e=this.__eventMap;e=null!=t[a]?e.getReserved(a):
e.h[a];for(var f=0,h=e.length;f<h;){var k=f++;if(e[k].match(b,d))return}f=this.__iterators;a=null!=t[a]?f.getReserved(a):f.h[a];for(f=0;f<a.length;)h=a[f],++f,h.active&&h.copy();this.__addListenerByPriority(e,new dg(b,d,c))}else e=[],e.push(new dg(b,d,c)),b=new eg(e),d=this.__eventMap,null!=t[a]?d.setReserved(a,e):d.h[a]=e,d=this.__iterators,b=[b],null!=t[a]?d.setReserved(a,b):d.h[a]=b},dispatchEvent:function(a){a.target=null!=this.__targetDispatcher?this.__targetDispatcher:this;return this.__dispatchEvent(a)},
hasEventListener:function(a){if(null==this.__eventMap)return!1;var b=this.__eventMap;return null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a)},removeEventListener:function(a,b,d){null==d&&(d=!1);if(null!=this.__eventMap&&null!=b){var c=this.__eventMap;c=null!=t[a]?c.getReserved(a):c.h[a];if(null!=c){var e=this.__iterators;e=null!=t[a]?e.getReserved(a):e.h[a];for(var f=0,h=c.length;f<h;){var k=f++;if(c[k].match(b,d)){for(b=0;b<e.length;)d=e[b],++b,d.remove(c[k],k);c.splice(k,1);break}}0==c.length&&
(this.__eventMap.remove(a),this.__iterators.remove(a));a=this.__eventMap;(new hi(a,a.arrayKeys())).hasNext()||(this.__iterators=this.__eventMap=null)}}},__dispatchEvent:function(a){if(null==this.__eventMap||null==a)return!0;var b=a.type,d=this.__eventMap;d=null!=t[b]?d.getReserved(b):d.h[b];if(null==d)return!0;null==a.target&&(a.target=null!=this.__targetDispatcher?this.__targetDispatcher:this);a.currentTarget=this;var c=1==a.eventPhase,e=this.__iterators;b=null!=t[b]?e.getReserved(b):e.h[b];e=b[0];
e.active&&(e=new eg(d),b.push(e));e.start();for(var f=e;f.hasNext();){var h=f.next();if(null!=h&&h.useCapture==c&&(h.callback(a),a.__isCanceledNow))break}e.stop();e!=b[0]?L.remove(b,e):e.reset(d);return!a.isDefaultPrevented()},__addListenerByPriority:function(a,b){for(var d=a.length,c=d,e=0;e<d;){var f=e++;if(a[f].priority<b.priority){c=f;break}}a.splice(c,0,b)},__class__:ba};var fg=function(){};m["openfl.display.IBitmapDrawable"]=fg;fg.__name__="openfl.display.IBitmapDrawable";fg.prototype={__renderTransform:null,
__worldAlpha:null,__worldColorTransform:null,__getBounds:null,__renderCairo:null,__renderCanvas:null,__renderDOM:null,__renderGL:null,__update:null,__mask:null,__scrollRect:null,__class__:fg};var Ca=function(a,b,d,c,e,f,h,k){null==k&&(k=0);null==h&&(h=0);null==f&&(f=0);null==e&&(e=0);null==c&&(c=1);null==d&&(d=1);null==b&&(b=1);null==a&&(a=1);this.redMultiplier=a;this.greenMultiplier=b;this.blueMultiplier=d;this.alphaMultiplier=c;this.redOffset=e;this.greenOffset=f;this.blueOffset=h;this.alphaOffset=
k};m["openfl.geom.ColorTransform"]=Ca;Ca.__name__="openfl.geom.ColorTransform";Ca.prototype={alphaMultiplier:null,alphaOffset:null,blueMultiplier:null,blueOffset:null,greenMultiplier:null,greenOffset:null,redMultiplier:null,redOffset:null,__copyFrom:function(a){this.redMultiplier=a.redMultiplier;this.greenMultiplier=a.greenMultiplier;this.blueMultiplier=a.blueMultiplier;this.alphaMultiplier=a.alphaMultiplier;this.redOffset=a.redOffset;this.greenOffset=a.greenOffset;this.blueOffset=a.blueOffset;this.alphaOffset=
a.alphaOffset},__combine:function(a){this.redMultiplier*=a.redMultiplier;this.greenMultiplier*=a.greenMultiplier;this.blueMultiplier*=a.blueMultiplier;this.alphaMultiplier*=a.alphaMultiplier;this.redOffset+=a.redOffset;this.greenOffset+=a.greenOffset;this.blueOffset+=a.blueOffset;this.alphaOffset+=a.alphaOffset},__identity:function(){this.alphaMultiplier=this.blueMultiplier=this.greenMultiplier=this.redMultiplier=1;this.alphaOffset=this.blueOffset=this.greenOffset=this.redOffset=0},__invert:function(){this.redMultiplier=
1/this.redMultiplier;this.greenMultiplier=1/this.greenMultiplier;this.blueMultiplier=1/this.blueMultiplier;this.alphaMultiplier=1/this.alphaMultiplier;this.redOffset=-this.redOffset;this.greenOffset=-this.greenOffset;this.blueOffset=-this.blueOffset;this.alphaOffset=-this.alphaOffset},__equals:function(a,b){null==b&&(b=!1);return null==a||this.redMultiplier!=a.redMultiplier||this.greenMultiplier!=a.greenMultiplier||this.blueMultiplier!=a.blueMultiplier||!b&&this.alphaMultiplier!=a.alphaMultiplier||
this.redOffset!=a.redOffset||this.greenOffset!=a.greenOffset||this.blueOffset!=a.blueOffset?!1:this.alphaOffset==a.alphaOffset},__isDefault:function(){return 1==this.redMultiplier&&1==this.greenMultiplier&&1==this.blueMultiplier&&1==this.alphaMultiplier&&0==this.redOffset&&0==this.greenOffset&&0==this.blueOffset?0==this.alphaOffset:!1},__setArrays:function(a,b){a[0]=this.redMultiplier;a[1]=this.greenMultiplier;a[2]=this.blueMultiplier;a[3]=this.alphaMultiplier;b[0]=this.redOffset;b[1]=this.greenOffset;
b[2]=this.blueOffset;b[3]=this.alphaOffset},__toLimeColorMatrix:function(){if(null==Ca.__limeColorMatrix){var a=new Float32Array(20);Ca.__limeColorMatrix=a}Ca.__limeColorMatrix[0]=this.redMultiplier;Ca.__limeColorMatrix[4]=this.redOffset/255;Ca.__limeColorMatrix[6]=this.greenMultiplier;Ca.__limeColorMatrix[9]=this.greenOffset/255;Ca.__limeColorMatrix[12]=this.blueMultiplier;Ca.__limeColorMatrix[14]=this.blueOffset/255;Ca.__limeColorMatrix[18]=this.alphaMultiplier;Ca.__limeColorMatrix[19]=this.alphaOffset/
255;return Ca.__limeColorMatrix},__class__:Ca};var tb={};m["openfl._Vector.Vector_Impl_"]=tb;tb.__name__="openfl._Vector.Vector_Impl_";tb.toIntVector=function(a,b,d,c){return new gg(b,d,c)};tb.toFloatVector=function(a,b,d,c){return new hg(b,d,c,!0)};tb.toObjectVector=function(a,b,d,c){return new $e(b,d,c,!0)};var yd=function(a,b,d){this.__pool=new fc;this.inactiveObjects=this.activeObjects=0;this.__inactiveObject1=this.__inactiveObject0=null;this.__inactiveObjectList=new hb;null!=a&&(this.create=
a);null!=b&&(this.clean=b);null!=d&&this.set_size(d)};m["lime.utils.ObjectPool"]=yd;yd.__name__="lime.utils.ObjectPool";yd.prototype={activeObjects:null,inactiveObjects:null,__inactiveObject0:null,__inactiveObject1:null,__inactiveObjectList:null,__pool:null,__size:null,clean:function(a){},create:function(){return null},get:function(){var a=null;if(0<this.inactiveObjects)null!=this.__inactiveObject0?(a=this.__inactiveObject0,this.__inactiveObject0=null):null!=this.__inactiveObject1?(a=this.__inactiveObject1,
this.__inactiveObject1=null):(a=this.__inactiveObjectList.pop(),0<this.__inactiveObjectList.length&&(this.__inactiveObject0=this.__inactiveObjectList.pop()),0<this.__inactiveObjectList.length&&(this.__inactiveObject1=this.__inactiveObjectList.pop())),this.inactiveObjects--,this.activeObjects++;else if(null==this.__size||this.activeObjects<this.__size)a=this.create(),null!=a&&(this.__pool.set(a,!0),this.activeObjects++);return a},release:function(a){this.activeObjects--;null==this.__size||this.activeObjects+
this.inactiveObjects<this.__size?(this.clean(a),null==this.__inactiveObject0?this.__inactiveObject0=a:null==this.__inactiveObject1?this.__inactiveObject1=a:this.__inactiveObjectList.add(a),this.inactiveObjects++):this.__pool.remove(a)},__removeInactive:function(a){if(!(0>=a||0==this.inactiveObjects)&&(null!=this.__inactiveObject0&&(this.__pool.remove(this.__inactiveObject0),this.__inactiveObject0=null,this.inactiveObjects--,--a),0!=a&&0!=this.inactiveObjects&&(null!=this.__inactiveObject1&&(this.__pool.remove(this.__inactiveObject1),
this.__inactiveObject1=null,this.inactiveObjects--,--a),0!=a&&0!=this.inactiveObjects)))for(var b=this.__inactiveObjectList.h;null!=b;){var d=b.item;b=b.next;this.__pool.remove(d);this.__inactiveObjectList.remove(d);this.inactiveObjects--;--a;if(0==a||0==this.inactiveObjects)break}},set_size:function(a){if(null==a)this.__size=null;else{var b=this.inactiveObjects+this.activeObjects;this.__size=a;if(b>a)this.__removeInactive(b-a);else if(a>b)for(var d=0,c=a-b;d<c;)if(d++,b=this.create(),null!=b)this.__pool.set(b,
!1),this.__inactiveObjectList.add(b),this.inactiveObjects++;else break}return a},__class__:yd};var Sd=function(){};m["haxe.IMap"]=Sd;Sd.__name__="haxe.IMap";Sd.prototype={set:null,remove:null,__class__:Sd};var fc=function(){this.h={__keys__:{}}};m["haxe.ds.ObjectMap"]=fc;fc.__name__="haxe.ds.ObjectMap";fc.__interfaces__=[Sd];fc.prototype={h:null,set:function(a,b){var d=a.__id__||(a.__id__=++fc.count);this.h[d]=b;this.h.__keys__[d]=a},remove:function(a){a=a.__id__;if(null==this.h.__keys__[a])return!1;
delete this.h[a];delete this.h.__keys__[a];return!0},keys:function(){var a=[],b;for(b in this.h.__keys__)this.h.hasOwnProperty(b)&&a.push(this.h.__keys__[b]);return L.iter(a)},__class__:fc};var hb=function(){this.length=0};m["haxe.ds.List"]=hb;hb.__name__="haxe.ds.List";hb.prototype={h:null,q:null,length:null,add:function(a){a=new ig(a,null);null==this.h?this.h=a:this.q.next=a;this.q=a;this.length++},push:function(a){this.h=a=new ig(a,this.h);null==this.q&&(this.q=a);this.length++},pop:function(){if(null==
this.h)return null;var a=this.h.item;this.h=this.h.next;null==this.h&&(this.q=null);this.length--;return a},isEmpty:function(){return null==this.h},clear:function(){this.q=this.h=null;this.length=0},remove:function(a){for(var b=null,d=this.h;null!=d;){if(d.item==a)return null==b?this.h=d.next:b.next=d.next,this.q==d&&(this.q=b),this.length--,!0;b=d;d=d.next}return!1},iterator:function(){return new ii(this.h)},__class__:hb};var ha=function(){ba.call(this);this.__alpha=1;this.__blendMode=10;this.__cacheAsBitmap=
!1;this.__transform=new P;this.__visible=!0;this.__rotationSine=this.__rotation=0;this.__worldAlpha=this.__scaleY=this.__scaleX=this.__rotationCosine=1;this.__worldBlendMode=10;this.__worldTransform=new P;this.__worldColorTransform=new Ca;this.__renderTransform=new P;this.__worldVisible=!0;this.set_name("instance"+ ++ha.__instanceCount);null!=ha.__initStage&&(this.stage=ha.__initStage,ha.__initStage=null,this.stage.addChild(this))};m["openfl.display.DisplayObject"]=ha;ha.__name__="openfl.display.DisplayObject";
ha.__interfaces__=[fg];ha.__super__=ba;ha.prototype=v(ba.prototype,{opaqueBackground:null,parent:null,stage:null,__alpha:null,__blendMode:null,__cacheAsBitmap:null,__cacheAsBitmapMatrix:null,__cacheBitmap:null,__cacheBitmapBackground:null,__cacheBitmapColorTransform:null,__cacheBitmapData:null,__cacheBitmapData2:null,__cacheBitmapData3:null,__cacheBitmapMatrix:null,__cacheBitmapRenderer:null,__cairo:null,__children:null,__customRenderClear:null,__customRenderEvent:null,__filters:null,__graphics:null,
__isCacheBitmapRender:null,__isMask:null,__loaderInfo:null,__mask:null,__maskTarget:null,__name:null,__objectTransform:null,__renderable:null,__renderDirty:null,__renderParent:null,__renderTransform:null,__renderTransformCache:null,__renderTransformChanged:null,__rotation:null,__rotationCosine:null,__rotationSine:null,__scaleX:null,__scaleY:null,__scrollRect:null,__shader:null,__tempPoint:null,__transform:null,__transformDirty:null,__visible:null,__worldAlpha:null,__worldAlphaChanged:null,__worldBlendMode:null,
__worldClip:null,__worldClipChanged:null,__worldColorTransform:null,__worldShader:null,__worldTransform:null,__worldVisible:null,__worldVisibleChanged:null,__worldTransformInvalid:null,__worldZ:null,__canvas:null,__context:null,__style:null,addEventListener:function(a,b,d,c,e){null==e&&(e=!1);null==c&&(c=0);null==d&&(d=!1);switch(a){case "activate":case "deactivate":case "enterFrame":case "exitFrame":case "frameConstructed":case "render":var f=ha.__broadcastEvents;if(null!=t[a]?!f.existsReserved(a):
!f.h.hasOwnProperty(a)){f=ha.__broadcastEvents;var h=[];null!=t[a]?f.setReserved(a,h):f.h[a]=h}f=ha.__broadcastEvents;f=null!=t[a]?f.getReserved(a):f.h[a];-1==f.indexOf(this)&&f.push(this);break;case "clearDOM":case "renderCairo":case "renderCanvas":case "renderDOM":case "renderOpenGL":null==this.__customRenderEvent&&(this.__customRenderEvent=new jg(null),this.__customRenderEvent.objectColorTransform=new Ca,this.__customRenderEvent.objectMatrix=new P,this.__customRenderClear=!0)}ba.prototype.addEventListener.call(this,
a,b,d,c,e)},dispatchEvent:function(a){if(a instanceof Va){var b=this.__getRenderTransform();a.stageX=a.localX*b.a+a.localY*b.c+b.tx;b=this.__getRenderTransform();a.stageY=a.localX*b.b+a.localY*b.d+b.ty}else a instanceof rc&&(b=this.__getRenderTransform(),a.stageX=a.localX*b.a+a.localY*b.c+b.tx,b=this.__getRenderTransform(),a.stageY=a.localX*b.b+a.localY*b.d+b.ty);return this.__dispatchWithCapture(a)},getBounds:function(a){var b=P.__pool.get();if(null!=a&&a!=this){b.copyFrom(this.__getWorldTransform());
var d=P.__pool.get();d.copyFrom(a.__getWorldTransform());d.invert();b.concat(d);P.__pool.release(d)}else b.identity();a=new M;this.__getBounds(a,b);P.__pool.release(b);return a},removeEventListener:function(a,b,d){null==d&&(d=!1);ba.prototype.removeEventListener.call(this,a,b,d);switch(a){case "activate":case "deactivate":case "enterFrame":case "exitFrame":case "frameConstructed":case "render":!this.hasEventListener(a)&&(b=ha.__broadcastEvents,null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))&&
(b=ha.__broadcastEvents,L.remove(null!=t[a]?b.getReserved(a):b.h[a],this));break;case "clearDOM":case "renderCairo":case "renderCanvas":case "renderDOM":case "renderOpenGL":this.hasEventListener("clearDOM")||this.hasEventListener("renderCairo")||this.hasEventListener("renderCanvas")||this.hasEventListener("renderDOM")||this.hasEventListener("renderOpenGL")||(this.__customRenderEvent=null)}},__cleanup:function(){this.__context=this.__canvas=this.__cairo=null;null!=this.__graphics&&this.__graphics.__cleanup();
null!=this.__cacheBitmap&&(this.__cacheBitmap.__cleanup(),this.__cacheBitmap=null);null!=this.__cacheBitmapData&&(this.__cacheBitmapData.dispose(),this.__cacheBitmapData=null)},__dispatch:function(a){if(null!=this.__eventMap&&this.hasEventListener(a.type)){var b=ba.prototype.__dispatchEvent.call(this,a);return a.__isCanceled?!0:b}return!0},__dispatchChildren:function(a){},__dispatchEvent:function(a){var b=a.bubbles?this.parent:null,d=ba.prototype.__dispatchEvent.call(this,a);if(a.__isCanceled)return!0;
null!=b&&b!=this&&(a.eventPhase=3,null==a.target&&(a.target=this),b.__dispatchEvent(a));return d},__dispatchWithCapture:function(a){null==a.target&&(a.target=this);if(null!=this.parent)if(a.eventPhase=1,this.parent==this.stage)this.parent.__dispatch(a);else{for(var b=ha.__tempStack.get(),d=this.parent,c=0;null!=d;)b.set(c,d),d=d.parent,++c;d=0;for(var e=c;d<e;){var f=d++;b.get(c-f-1).__dispatch(a)}ha.__tempStack.release(b)}a.eventPhase=2;return this.__dispatchEvent(a)},__enterFrame:function(a){},
__getBounds:function(a,b){null!=this.__graphics&&this.__graphics.__getBounds(a,b)},__getCursor:function(){return null},__getFilterBounds:function(a,b){this.__getBounds(a,b);if(null!=this.__filters){b=M.__pool.get();for(var d=0,c=this.__filters;d<c.length;){var e=c[d];++d;b.__expand(-e.__leftExtension,-e.__topExtension,e.__leftExtension+e.__rightExtension,e.__topExtension+e.__bottomExtension)}a.width+=b.width;a.height+=b.height;a.x+=b.x;a.y+=b.y;M.__pool.release(b)}},__getInteractive:function(a){return!1},
__getLocalBounds:function(a){this.__getBounds(a,this.__transform);a.x-=this.__transform.tx;a.y-=this.__transform.ty},__getRenderTransform:function(){this.__getWorldTransform();return this.__renderTransform},__getWorldTransform:function(){if(this.__transformDirty||this.__worldTransformInvalid){var a=[],b=this;if(null==this.parent)this.__update(!0,!1);else for(;b!=this.stage&&(a.push(b),b=b.parent,null!=b););for(var d=a.length;0<=--d;)b=a[d],b.__update(!0,!1)}return this.__worldTransform},__globalToLocal:function(a,
b){this.__getRenderTransform();if(a==b){var d=this.__renderTransform,c=d.a*d.d-d.b*d.c;if(0==c)a.x=-d.tx,a.y=-d.ty;else{var e=1/c*(d.c*(d.ty-a.y)+d.d*(a.x-d.tx));a.y=1/c*(d.a*(a.y-d.ty)+d.b*(d.tx-a.x));a.x=e}}else d=this.__renderTransform,c=d.a*d.d-d.b*d.c,b.x=0==c?-d.tx:1/c*(d.c*(d.ty-a.y)+d.d*(a.x-d.tx)),d=this.__renderTransform,c=d.a*d.d-d.b*d.c,b.y=0==c?-d.ty:1/c*(d.a*(a.y-d.ty)+d.b*(d.tx-a.x));return b},__hitTest:function(a,b,d,c,e,f){if(null!=this.__graphics){if(!f.__visible||this.__isMask||
null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;if(this.__graphics.__hitTest(a,b,d,this.__getRenderTransform()))return null==c||e||c.push(f),!0}return!1},__hitTestMask:function(a,b){return null!=this.__graphics&&this.__graphics.__hitTest(a,b,!0,this.__getRenderTransform())?!0:!1},__renderCairo:function(a){},__renderCairoMask:function(a){},__renderCanvas:function(a){if(null==this.get_mask()||0<this.get_mask().get_width()&&0<this.get_mask().get_height())if(this.__updateCacheBitmap(a,
!1),null!=this.__cacheBitmap&&!this.__isCacheBitmapRender){var b=this.__cacheBitmap;if(b.__renderable&&!(0>=b.__worldAlpha)){var d=a.context;if(null!=b.__bitmapData&&b.__bitmapData.__isValid&&b.__bitmapData.readable){a.__setBlendMode(b.__worldBlendMode);a.__pushMaskObject(b,!1);N.convertToCanvas(b.__bitmapData.image);d.globalAlpha=b.__worldAlpha;var c=b.__scrollRect;a.setTransform(b.__renderTransform,d);a.__allowSmoothing&&b.smoothing||(d.mozImageSmoothingEnabled=!1,d.msImageSmoothingEnabled=!1,d.imageSmoothingEnabled=
!1);null==c?d.drawImage(b.__bitmapData.image.get_src(),0,0,b.__bitmapData.image.width,b.__bitmapData.image.height):d.drawImage(b.__bitmapData.image.get_src(),c.x,c.y,c.width,c.height);a.__allowSmoothing&&b.smoothing||(d.mozImageSmoothingEnabled=!0,d.msImageSmoothingEnabled=!0,d.imageSmoothingEnabled=!0);a.__popMaskObject(b,!1)}}}else if(!(null==this.opaqueBackground&&null==this.__graphics||!this.__renderable||0>=this.__worldAlpha||(null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&0<this.get_width()&&
0<this.get_height()&&(a.__setBlendMode(this.__worldBlendMode),a.__pushMaskObject(this),b=a.context,a.setTransform(this.__renderTransform,b),d=this.opaqueBackground,b.fillStyle="rgb("+(d>>>16&255)+","+(d>>>8&255)+","+(d&255)+")",b.fillRect(0,0,this.get_width(),this.get_height()),a.__popMaskObject(this)),null==this.__graphics||!this.__renderable||0>=this.__worldAlpha||(b=this.__graphics,null==b||(q.render(b,a),d=b.__width,c=b.__height,null==b.__canvas))))){var e=a.context,f=this.__scrollRect;0<d&&0<
c&&(null==f||0<f.width&&0<f.height)&&(a.__setBlendMode(this.__worldBlendMode),a.__pushMaskObject(this),e.globalAlpha=this.__worldAlpha,a.setTransform(b.__worldTransform,e),a.__isDOM&&(f=1/a.pixelRatio,e.scale(f,f)),e.drawImage(b.__canvas,0,0,d,c),a.__popMaskObject(this))}this.__renderEvent(a)},__renderCanvasMask:function(a){null!=this.__graphics&&q.renderMask(this.__graphics,a)},__renderDOM:function(a){this.__updateCacheBitmap(a,!1);if(null==this.__cacheBitmap||this.__isCacheBitmapRender){null!=this.opaqueBackground&&
!this.__isCacheBitmapRender&&0<this.get_width()&&this.get_height();var b=this.__graphics;if(null!=this.stage&&this.__worldVisible&&this.__renderable&&null!=b){q.render(b,a.__canvasRenderer);if(b.__dirty||this.__worldAlphaChanged||this.__canvas!=b.__canvas)null!=b.__canvas?this.__canvas!=b.__canvas&&(null!=this.__canvas&&a.element.removeChild(this.__canvas),this.__canvas=b.__canvas,this.__context=b.__context,a.__initializeElement(this,this.__canvas)):zd.clear(this,a);if(null!=this.__canvas){a.__pushMaskObject(this);
var d=this.__renderTransform;this.__renderTransform=b.__worldTransform;b.__transformDirty&&(b.__transformDirty=!1,this.__renderTransformChanged=!0);a.__updateClip(this);a.__applyStyle(this,!0,!0,!0);this.__renderTransform=d;a.__popMaskObject(this)}}else zd.clear(this,a)}else this.__renderDOMClear(a),this.__cacheBitmap.stage=this.stage,b=this.__cacheBitmap,null!=b.stage&&b.__worldVisible&&b.__renderable&&null!=b.__bitmapData&&b.__bitmapData.__isValid&&b.__bitmapData.readable?(a.__pushMaskObject(b),
null!=b.__bitmapData.image.buffer.__srcImage?La.renderImage(b,a):La.renderCanvas(b,a),a.__popMaskObject(b)):La.clear(b,a);this.__renderEvent(a)},__renderDOMClear:function(a){Vj.clear(this,a)},__renderEvent:function(a){if(null!=this.__customRenderEvent&&this.__renderable){this.__customRenderEvent.allowSmoothing=a.__allowSmoothing;this.__customRenderEvent.objectMatrix.copyFrom(this.__renderTransform);this.__customRenderEvent.objectColorTransform.__copyFrom(this.__worldColorTransform);this.__customRenderEvent.renderer=
a;switch(a.__type){case "cairo":this.__customRenderEvent.type="renderCairo";break;case "canvas":this.__customRenderEvent.type="renderCanvas";break;case "dom":this.__customRenderEvent.type=null!=this.stage&&this.__worldVisible?"renderDOM":"clearDOM";break;case "opengl":a.setShader(this.__worldShader);this.__customRenderEvent.type="renderOpenGL";break;default:return}a.__setBlendMode(this.__worldBlendMode);a.__pushMaskObject(this);this.dispatchEvent(this.__customRenderEvent);a.__popMaskObject(this);
"opengl"==a.__type&&a.setViewport()}},__renderGL:function(a){this.__updateCacheBitmap(a,!1);if(null!=this.__cacheBitmap&&!this.__isCacheBitmapRender)od.render(this.__cacheBitmap,a);else if(!(null==this.opaqueBackground&&null==this.__graphics||!this.__renderable||0>=this.__worldAlpha)){if(null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&0<this.get_width()&&0<this.get_height()){a.__setBlendMode(this.__worldBlendMode);a.__pushMaskObject(this);var b=a.__context.webgl,d=M.__pool.get();d.setTo(0,
0,this.get_width(),this.get_height());a.__pushMaskRect(d,this.__renderTransform);var c=this.opaqueBackground;b.clearColor((c>>>16&255)/255,(c>>>8&255)/255,(c&255)/255,1);b.clear(b.COLOR_BUFFER_BIT);a.__popMaskRect();a.__popMaskObject(this);M.__pool.release(d)}null!=this.__graphics&&pd.render(this,a)}this.__renderEvent(a)},__renderGLMask:function(a){null!=this.__graphics&&pd.renderMask(this,a)},__setParentRenderDirty:function(){var a=null!=this.__renderParent?this.__renderParent:this.parent;null==
a||a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty())},__setStageReference:function(a){this.stage=a},__setTransformDirty:function(){this.__transformDirty||(this.__transformDirty=!0,this.__setWorldTransformInvalid(),this.__setParentRenderDirty())},__setWorldTransformInvalid:function(){this.__worldTransformInvalid=!0},__shouldCacheHardware:function(a){return 1==a||null!=this.__filters?!0:0==a||null!=this.__graphics&&!Da.isCompatible(this.__graphics)?!1:null},__update:function(a,b){var d=
null!=this.__renderParent?this.__renderParent:this.parent;this.__isMask&&null==d&&(d=this.__maskTarget);this.__renderable=this.__visible&&0!=this.__scaleX&&0!=this.__scaleY&&!this.__isMask&&(null==d||!d.__isMask);this.__updateTransforms();this.__worldTransformInvalid=this.__transformDirty=!1;if(!a)if(ha.__supportDOM&&(this.__renderTransformChanged=!this.__renderTransform.equals(this.__renderTransformCache),null==this.__renderTransformCache?this.__renderTransformCache=this.__renderTransform.clone():
this.__renderTransformCache.copyFrom(this.__renderTransform)),null!=d){if(ha.__supportDOM){var c=d.__worldVisible&&this.__visible;this.__worldVisibleChanged=this.__worldVisible!=c;this.__worldVisible=c;c=this.get_alpha()*d.__worldAlpha;this.__worldAlphaChanged=this.__worldAlpha!=c;this.__worldAlpha=c}else this.__worldAlpha=this.get_alpha()*d.__worldAlpha;null!=this.__objectTransform?(this.__worldColorTransform.__copyFrom(this.__objectTransform.get_colorTransform()),this.__worldColorTransform.__combine(d.__worldColorTransform)):
this.__worldColorTransform.__copyFrom(d.__worldColorTransform);this.__worldBlendMode=null==this.__blendMode||10==this.__blendMode?d.__blendMode:this.__blendMode;this.__worldShader=null==this.__shader?d.__shader:this.__shader}else this.__worldAlpha=this.get_alpha(),ha.__supportDOM&&(this.__worldVisibleChanged=this.__worldVisible!=this.__visible,this.__worldVisible=this.__visible,this.__worldAlphaChanged=this.__worldAlpha!=this.get_alpha()),null!=this.__objectTransform?this.__worldColorTransform.__copyFrom(this.__objectTransform.get_colorTransform()):
this.__worldColorTransform.__identity();b&&null!=this.get_mask()&&this.get_mask().__update(a,!0)},__updateCacheBitmap:function(a,b){if(this.__isCacheBitmapRender)return!1;var d=ha.__tempColorTransform;d.__copyFrom(this.__worldColorTransform);null!=a.__worldColorTransform&&d.__combine(a.__worldColorTransform);if(this.get_cacheAsBitmap()||"opengl"!=a.__type&&!d.__isDefault()){var c=null,e=(b=null==this.__cacheBitmap||this.__renderDirty&&(b||null!=this.__children&&0<this.__children.length||null!=this.__graphics&&
this.__graphics.__dirty)||this.opaqueBackground!=this.__cacheBitmapBackground||"opengl"!=a.__type&&!this.__cacheBitmapColorTransform.__equals(d))||"opengl"==a.__type&&!this.__cacheBitmap.__worldTransform.equals(this.__worldTransform),f=null!=this.__filters;if(f&&!b)for(var h=0,k=this.__filters;h<k.length;){var n=k[h];++h;if(n.__renderDirty){b=!0;break}}null==this.__cacheBitmapMatrix&&(this.__cacheBitmapMatrix=new P);var C=null!=this.__cacheAsBitmapMatrix?this.__cacheAsBitmapMatrix:this.__renderTransform;
b||C.a==this.__cacheBitmapMatrix.a&&C.b==this.__cacheBitmapMatrix.b&&C.c==this.__cacheBitmapMatrix.c&&C.d==this.__cacheBitmapMatrix.d||(b=!0);!b&&"opengl"!=a.__type&&null!=this.__cacheBitmapData&&null!=this.__cacheBitmapData.image&&this.__cacheBitmapData.image.version<this.__cacheBitmapData.__textureVersion&&(b=!0);this.__cacheBitmapMatrix.copyFrom(C);this.__cacheBitmapMatrix.tx=0;var l=n=this.__cacheBitmapMatrix.ty=0,g=k=h=0,m=0;if(e||b)c=M.__pool.get(),this.__getFilterBounds(c,this.__cacheBitmapMatrix),
h=Math.ceil(c.width),k=Math.ceil(c.height),g=0<c.x?Math.ceil(c.x):Math.floor(c.x),m=0<c.y?Math.ceil(c.y):Math.floor(c.y),null!=this.__cacheBitmapData?h>this.__cacheBitmapData.width||k>this.__cacheBitmapData.height?(n=Math.ceil(Math.max(1.25*h,this.__cacheBitmapData.width)),l=Math.ceil(Math.max(1.25*k,this.__cacheBitmapData.height)),b=!0):(n=this.__cacheBitmapData.width,l=this.__cacheBitmapData.height):(n=h,l=k);if(b)if(e=!0,this.__cacheBitmapBackground=this.opaqueBackground,.5<=h&&.5<=k){var T=null!=
this.opaqueBackground&&(n!=h||l!=k),A=null!=this.opaqueBackground?-16777216|this.opaqueBackground:0,q=T?0:A,p="opengl"==a.__type;null==this.__cacheBitmapData||n>this.__cacheBitmapData.width||l>this.__cacheBitmapData.height?(this.__cacheBitmapData=new ja(n,l,!0,q),null==this.__cacheBitmap&&(this.__cacheBitmap=new Lb),this.__cacheBitmap.__bitmapData=this.__cacheBitmapData,this.__cacheBitmapRenderer=null):this.__cacheBitmapData.__fillRect(this.__cacheBitmapData.rect,q,p);T&&(c.setTo(0,0,h,k),this.__cacheBitmapData.__fillRect(c,
A,p))}else return this.__cacheBitmapRenderer=this.__cacheBitmapData3=this.__cacheBitmapData2=this.__cacheBitmapData=this.__cacheBitmap=null,!0;else this.__cacheBitmapData=this.__cacheBitmap.get_bitmapData(),this.__cacheBitmapData3=this.__cacheBitmapData2=null;if(e||b)this.__cacheBitmap.__worldTransform.copyFrom(this.__worldTransform),C==this.__renderTransform?(this.__cacheBitmap.__renderTransform.identity(),this.__cacheBitmap.__renderTransform.tx=this.__renderTransform.tx+g,this.__cacheBitmap.__renderTransform.ty=
this.__renderTransform.ty+m):(this.__cacheBitmap.__renderTransform.copyFrom(this.__cacheBitmapMatrix),this.__cacheBitmap.__renderTransform.invert(),this.__cacheBitmap.__renderTransform.concat(this.__renderTransform),this.__cacheBitmap.__renderTransform.tx+=g,this.__cacheBitmap.__renderTransform.ty+=m);this.__cacheBitmap.smoothing=a.__allowSmoothing;this.__cacheBitmap.__renderable=this.__renderable;this.__cacheBitmap.__worldAlpha=this.__worldAlpha;this.__cacheBitmap.__worldBlendMode=this.__worldBlendMode;
this.__cacheBitmap.__worldShader=this.__worldShader;this.__cacheBitmap.__scrollRect=this.__scrollRect;this.__cacheBitmap.set_mask(this.__mask);if(b){C=a.__type;"opengl"==C&&0==this.__shouldCacheHardware(null)&&(C="canvas");if(null==this.__cacheBitmapRenderer||C!=this.__cacheBitmapRenderer.__type)"opengl"==C?this.__cacheBitmapRenderer=new za(a.__context,this.__cacheBitmapData):(null==this.__cacheBitmapData.image&&(this.__cacheBitmapData=new ja(n,l,!0,null!=this.opaqueBackground?-16777216|this.opaqueBackground:
0),this.__cacheBitmap.__bitmapData=this.__cacheBitmapData),N.convertToCanvas(this.__cacheBitmapData.image),this.__cacheBitmapRenderer=new qd(this.__cacheBitmapData.image.buffer.__srcContext)),this.__cacheBitmapRenderer.__worldTransform=new P,this.__cacheBitmapRenderer.__worldColorTransform=new Ca;null==this.__cacheBitmapColorTransform&&(this.__cacheBitmapColorTransform=new Ca);this.__cacheBitmapRenderer.__stage=this.stage;this.__cacheBitmapRenderer.__allowSmoothing=a.__allowSmoothing;this.__cacheBitmapRenderer.__setBlendMode(10);
this.__cacheBitmapRenderer.__worldAlpha=1/this.__worldAlpha;this.__cacheBitmapRenderer.__worldTransform.copyFrom(this.__renderTransform);this.__cacheBitmapRenderer.__worldTransform.invert();this.__cacheBitmapRenderer.__worldTransform.concat(this.__cacheBitmapMatrix);this.__cacheBitmapRenderer.__worldTransform.tx-=g;this.__cacheBitmapRenderer.__worldTransform.ty-=m;this.__cacheBitmapRenderer.__worldColorTransform.__copyFrom(d);this.__cacheBitmapRenderer.__worldColorTransform.__invert();this.__isCacheBitmapRender=
!0;if("opengl"==this.__cacheBitmapRenderer.__type){g=this.__cacheBitmapRenderer;m=a.__blendMode;a.__suspendClipAndMask();g.__copyShader(a);this.__cacheBitmapData.__setUVRect(g.__context,0,0,h,k);g.__setRenderTarget(this.__cacheBitmapData);null!=this.__cacheBitmapData.image&&(this.__cacheBitmapData.__textureVersion=this.__cacheBitmapData.image.version+1);this.__cacheBitmapData.__drawGL(this,g);if(f){A=!1;f=0;for(C=this.__filters;f<C.length;)T=C[f],++f,T.__preserveObject&&(A=!0);f=this.__cacheBitmapData;
T=null;null==this.__cacheBitmapData2||n>this.__cacheBitmapData2.width||l>this.__cacheBitmapData2.height?this.__cacheBitmapData2=new ja(n,l,!0,0):null!=this.__cacheBitmapData2.image&&(this.__cacheBitmapData2.__textureVersion=this.__cacheBitmapData2.image.version+1);this.__cacheBitmapData2.__setUVRect(g.__context,0,0,h,k);C=this.__cacheBitmapData2;A&&(null==this.__cacheBitmapData3||n>this.__cacheBitmapData3.width||l>this.__cacheBitmapData3.height?this.__cacheBitmapData3=new ja(n,l,!0,0):null!=this.__cacheBitmapData3.image&&
(this.__cacheBitmapData3.__textureVersion=this.__cacheBitmapData3.image.version+1),this.__cacheBitmapData3.__setUVRect(g.__context,0,0,h,k),T=this.__cacheBitmapData3);g.__setBlendMode(10);g.__worldAlpha=1;g.__worldTransform.identity();g.__worldColorTransform.__identity();h=0;for(k=this.__filters;h<k.length;){n=k[h];++h;n.__preserveObject&&(g.__setRenderTarget(T),g.__renderFilterPass(f,g.__defaultDisplayShader));l=0;for(A=n.__numShaderPasses;l<A;)q=l++,q=n.__initShader(g,q),g.__setBlendMode(n.__shaderBlendMode),
g.__setRenderTarget(C),g.__renderFilterPass(f,q),q=f,f=C,C=q;n.__preserveObject&&(g.__setBlendMode(10),g.__setRenderTarget(f),g.__renderFilterPass(T,g.__defaultDisplayShader,!1));n.__renderDirty=!1}this.__cacheBitmap.__bitmapData=f}a.__blendMode=10;a.__setBlendMode(m);a.__copyShader(g);a.__resumeClipAndMask(g);a.setViewport();this.__cacheBitmapColorTransform.__copyFrom(d)}else{this.__cacheBitmapData.__drawCanvas(this,this.__cacheBitmapRenderer);if(f){C=a=!1;g=0;for(m=this.__filters;g<m.length;)f=
m[g],++g,f.__needSecondBitmapData&&(a=!0),f.__preserveObject&&(C=!0);g=this.__cacheBitmapData;f=null;a?(null==this.__cacheBitmapData2||null==this.__cacheBitmapData2.image||n>this.__cacheBitmapData2.width||l>this.__cacheBitmapData2.height?this.__cacheBitmapData2=new ja(n,l,!0,0):this.__cacheBitmapData2.fillRect(this.__cacheBitmapData2.rect,0),m=this.__cacheBitmapData2):m=g;C&&(null==this.__cacheBitmapData3||null==this.__cacheBitmapData3.image||n>this.__cacheBitmapData3.width||l>this.__cacheBitmapData3.height?
this.__cacheBitmapData3=new ja(n,l,!0,0):this.__cacheBitmapData3.fillRect(this.__cacheBitmapData3.rect,0),f=this.__cacheBitmapData3);n=M.__pool.get();n.setTo(0,0,h,k);null==this.__tempPoint&&(this.__tempPoint=new qa);h=this.__tempPoint;k=0;for(l=this.__filters;k<l.length;)T=l[k],++k,T.__preserveObject&&f.copyPixels(g,g.rect,h),C=T.__applyFilter(m,g,n,h),T.__preserveObject&&C.draw(f,null,null!=this.__objectTransform?this.__objectTransform.get_colorTransform():null),T.__renderDirty=!1,a&&C==m&&(C=g,
g=m,m=C);this.__cacheBitmapData!=g&&this.__cacheBitmapData.copyPixels(g,g.rect,h);M.__pool.release(n);this.__cacheBitmap.__imageVersion=this.__cacheBitmapData.__textureVersion}this.__cacheBitmapColorTransform.__copyFrom(d);this.__cacheBitmapColorTransform.__isDefault()||this.__cacheBitmapData.colorTransform(this.__cacheBitmapData.rect,this.__cacheBitmapColorTransform)}this.__isCacheBitmapRender=!1}(e||b)&&M.__pool.release(c);return e}return null!=this.__cacheBitmap?("dom"==a.__type&&this.__cacheBitmap.__renderDOMClear(a),
this.__cacheBitmapRenderer=this.__cacheBitmapColorTransform=this.__cacheBitmapData3=this.__cacheBitmapData2=this.__cacheBitmapData=this.__cacheBitmap=null,!0):!1},__updateTransforms:function(a){var b=null!=a;a=b?a:this.__transform;null==this.__worldTransform&&(this.__worldTransform=new P);null==this.__renderTransform&&(this.__renderTransform=new P);var d=null!=this.__renderParent?this.__renderParent:this.parent;if(b||null==this.parent)this.__worldTransform.copyFrom(a);else{var c=this.parent.__worldTransform,
e=this.__worldTransform;e.a=a.a*c.a+a.b*c.c;e.b=a.a*c.b+a.b*c.d;e.c=a.c*c.a+a.d*c.c;e.d=a.c*c.b+a.d*c.d;e.tx=a.tx*c.a+a.ty*c.c+c.tx;e.ty=a.tx*c.b+a.ty*c.d+c.ty}b||null==d?this.__renderTransform.copyFrom(a):(b=d.__renderTransform,d=this.__renderTransform,d.a=a.a*b.a+a.b*b.c,d.b=a.a*b.b+a.b*b.d,d.c=a.c*b.a+a.d*b.c,d.d=a.c*b.b+a.d*b.d,d.tx=a.tx*b.a+a.ty*b.c+b.tx,d.ty=a.tx*b.b+a.ty*b.d+b.ty);null!=this.__scrollRect&&(a=this.__renderTransform,b=-this.__scrollRect.x,d=-this.__scrollRect.y,a.tx=b*a.a+d*
a.c+a.tx,a.ty=b*a.b+d*a.d+a.ty)},get_alpha:function(){return this.__alpha},set_alpha:function(a){1<a&&(a=1);a==this.__alpha||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__alpha=a},set_blendMode:function(a){null==a&&(a=10);a==this.__blendMode||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__blendMode=a},get_cacheAsBitmap:function(){return null==this.__filters?this.__cacheAsBitmap:!0},set_cacheAsBitmap:function(a){this.__renderDirty||
(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__cacheAsBitmap=a},set_filters:function(a){this.__filters=null!=a&&0<a.length?a:null;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return a},get_height:function(){var a=M.__pool.get();this.__getLocalBounds(a);var b=a.height;M.__pool.release(a);return b},set_height:function(a){var b=M.__pool.get(),d=P.__pool.get();d.identity();this.__getBounds(b,d);a!=b.height?this.set_scaleY(a/b.height):this.set_scaleY(1);
M.__pool.release(b);P.__pool.release(d);return a},get_loaderInfo:function(){return null!=this.stage?Vb.current.__loaderInfo:null},get_mask:function(){return this.__mask},set_mask:function(a){if(a==this.__mask)return a;a!=this.__mask&&(this.__setTransformDirty(),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));if(null!=this.__mask){this.__mask.__isMask=!1;this.__mask.__maskTarget=null;this.__mask.__setTransformDirty();var b=this.__mask;b.__renderDirty||(b.__renderDirty=!0,
b.__setParentRenderDirty())}null!=a&&(a.__isMask=!0,a.__maskTarget=this,a.__setWorldTransformInvalid());null!=this.__cacheBitmap&&this.__cacheBitmap.get_mask()!=a&&this.__cacheBitmap.set_mask(a);return this.__mask=a},get_mouseX:function(){var a=null!=this.stage?this.stage.__mouseX:Vb.current.stage.__mouseX,b=null!=this.stage?this.stage.__mouseY:Vb.current.stage.__mouseY,d=this.__getRenderTransform(),c=d.a*d.d-d.b*d.c;return 0==c?-d.tx:1/c*(d.c*(d.ty-b)+d.d*(a-d.tx))},get_mouseY:function(){var a=null!=
this.stage?this.stage.__mouseX:Vb.current.stage.__mouseX,b=null!=this.stage?this.stage.__mouseY:Vb.current.stage.__mouseY,d=this.__getRenderTransform(),c=d.a*d.d-d.b*d.c;return 0==c?-d.ty:1/c*(d.a*(b-d.ty)+d.b*(d.tx-a))},get_name:function(){return this.__name},set_name:function(a){return this.__name=a},get_rotation:function(){return this.__rotation},set_rotation:function(a){if(a!=this.__rotation){this.__rotation=a;var b=Math.PI/180*this.__rotation;this.__rotationSine=Math.sin(b);this.__rotationCosine=
Math.cos(b);this.__transform.a=this.__rotationCosine*this.__scaleX;this.__transform.b=this.__rotationSine*this.__scaleX;this.__transform.c=-this.__rotationSine*this.__scaleY;this.__transform.d=this.__rotationCosine*this.__scaleY;this.__setTransformDirty()}return a},get_scaleX:function(){return this.__scaleX},set_scaleX:function(a){if(a!=this.__scaleX)if(this.__scaleX=a,0==this.__transform.b)a!=this.__transform.a&&this.__setTransformDirty(),this.__transform.a=a;else{var b=this.__rotationCosine*a,d=
this.__rotationSine*a;this.__transform.a==b&&this.__transform.b==d||this.__setTransformDirty();this.__transform.a=b;this.__transform.b=d}return a},get_scaleY:function(){return this.__scaleY},set_scaleY:function(a){if(a!=this.__scaleY)if(this.__scaleY=a,0==this.__transform.c)a!=this.__transform.d&&this.__setTransformDirty(),this.__transform.d=a;else{var b=-this.__rotationSine*a,d=this.__rotationCosine*a;this.__transform.d==d&&this.__transform.c==b||this.__setTransformDirty();this.__transform.c=b;this.__transform.d=
d}return a},get_transform:function(){null==this.__objectTransform&&(this.__objectTransform=new kg(this));return this.__objectTransform},set_transform:function(a){if(null==a)throw new w(new af("Parameter transform must be non-null."));null==this.__objectTransform&&(this.__objectTransform=new kg(this));this.__setTransformDirty();this.__objectTransform.set_matrix(a.get_matrix());this.__objectTransform.get_colorTransform().__equals(a.get_colorTransform())||(this.__objectTransform.get_colorTransform().__copyFrom(a.get_colorTransform()),
this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__objectTransform},get_visible:function(){return this.__visible},set_visible:function(a){a==this.__visible||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return this.__visible=a},get_width:function(){var a=M.__pool.get();this.__getLocalBounds(a);var b=a.width;M.__pool.release(a);return b},set_width:function(a){var b=M.__pool.get(),d=P.__pool.get();d.identity();this.__getBounds(b,d);a!=
b.width?this.set_scaleX(a/b.width):this.set_scaleX(1);M.__pool.release(b);P.__pool.release(d);return a},get_x:function(){return this.__transform.tx},set_x:function(a){a!=this.__transform.tx&&this.__setTransformDirty();return this.__transform.tx=a},get_y:function(){return this.__transform.ty},set_y:function(a){a!=this.__transform.ty&&this.__setTransformDirty();return this.__transform.ty=a},__class__:ha});var Ma=function(){ha.call(this);this.doubleClickEnabled=!1;this.mouseEnabled=!0;this.needsSoftKeyboard=
!1;this.__tabEnabled=null;this.__tabIndex=-1};m["openfl.display.InteractiveObject"]=Ma;Ma.__name__="openfl.display.InteractiveObject";Ma.__super__=ha;Ma.prototype=v(ha.prototype,{doubleClickEnabled:null,mouseEnabled:null,needsSoftKeyboard:null,__tabEnabled:null,__tabIndex:null,__allowMouseFocus:function(){return this.get_tabEnabled()},__getInteractive:function(a){null!=a&&(a.push(this),null!=this.parent&&this.parent.__getInteractive(a));return!0},__hitTest:function(a,b,d,c,e,f){return!f.get_visible()||
this.__isMask||e&&!this.mouseEnabled?!1:ha.prototype.__hitTest.call(this,a,b,d,c,e,f)},get_tabEnabled:function(){return 1==this.__tabEnabled?!0:!1},__class__:Ma});var oa=function(){Ma.call(this);this.mouseChildren=!0;this.__children=[];this.__removedChildren=tb.toObjectVector(null)};m["openfl.display.DisplayObjectContainer"]=oa;oa.__name__="openfl.display.DisplayObjectContainer";oa.__super__=Ma;oa.prototype=v(Ma.prototype,{mouseChildren:null,__removedChildren:null,addChild:function(a){return this.addChildAt(a,
this.get_numChildren())},addChildAt:function(a,b){if(null==a)throw a=new af("Error #2007: Parameter child must be non-null."),a.errorID=2007,new w(a);if(a.stage==a)throw a=new bf("Error #3783: A Stage object cannot be added as the child of another object."),a.errorID=3783,new w(a);if(b>this.__children.length||0>b)throw new w("Invalid index position "+b);if(a.parent==this)this.__children[b]!=a&&(L.remove(this.__children,a),this.__children.splice(b,0,a),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));
else{null!=a.parent&&a.parent.removeChild(a);this.__children.splice(b,0,a);a.parent=this;(b=null!=this.stage&&null==a.stage)&&this.__setStageReference(this.stage);a.__setTransformDirty();a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty());this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());var d=new R("added",!0);d.target=a;a.__dispatchWithCapture(d);b&&(b=new R("addedToStage",!1,!1),a.__dispatchWithCapture(b),a.__dispatchChildren(b))}return a},getChildAt:function(a){return 0<=
a&&a<this.__children.length?this.__children[a]:null},removeChild:function(a){if(null!=a&&a.parent==this){a.__setTransformDirty();a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty());this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());var b=new R("removed",!0);a.__dispatchWithCapture(b);null!=this.stage&&(null!=a.stage&&this.stage.get_focus()==a&&this.stage.set_focus(null),b=new R("removedFromStage",!1,!1),a.__dispatchWithCapture(b),a.__dispatchChildren(b),a.__setStageReference(null));
a.parent=null;L.remove(this.__children,a);this.__removedChildren.push(a);a.__setTransformDirty()}return a},removeChildAt:function(a){return 0<=a&&a<this.__children.length?this.removeChild(this.__children[a]):null},__cleanup:function(){Ma.prototype.__cleanup.call(this);for(var a=0,b=this.__children;a<b.length;){var d=b[a];++a;d.__cleanup()}a=0;for(b=this.__removedChildren;a<b.get_length();)d=b.get(a),++a,null==d.stage&&d.__cleanup();this.__removedChildren.set_length(0)},__dispatchChildren:function(a){if(null!=
this.__children)for(var b=0,d=this.__children;b<d.length;){var c=d[b];++b;a.target=c;if(!c.__dispatchWithCapture(a))break;c.__dispatchChildren(a)}},__enterFrame:function(a){for(var b=0,d=this.__children;b<d.length;){var c=d[b];++b;c.__enterFrame(a)}},__getBounds:function(a,b){Ma.prototype.__getBounds.call(this,a,b);if(0!=this.__children.length){for(var d=P.__pool.get(),c=0,e=this.__children;c<e.length;){var f=e[c];++c;if(0!=f.__scaleX&&0!=f.__scaleY){var h=f.__transform;d.a=h.a*b.a+h.b*b.c;d.b=h.a*
b.b+h.b*b.d;d.c=h.c*b.a+h.d*b.c;d.d=h.c*b.b+h.d*b.d;d.tx=h.tx*b.a+h.ty*b.c+b.tx;d.ty=h.tx*b.b+h.ty*b.d+b.ty;f.__getBounds(a,d)}}P.__pool.release(d)}},__getFilterBounds:function(a,b){Ma.prototype.__getFilterBounds.call(this,a,b);if(0!=this.__children.length){for(var d=P.__pool.get(),c=0,e=this.__children;c<e.length;){var f=e[c];++c;if(0!=f.__scaleX&&0!=f.__scaleY&&!f.__isMask){var h=f.__transform;d.a=h.a*b.a+h.b*b.c;d.b=h.a*b.b+h.b*b.d;d.c=h.c*b.a+h.d*b.c;d.d=h.c*b.b+h.d*b.d;d.tx=h.tx*b.a+h.ty*b.c+
b.tx;d.ty=h.tx*b.b+h.ty*b.d+b.ty;f.__getFilterBounds(a,d)}}P.__pool.release(d)}},__hitTest:function(a,b,d,c,e,f){if(!f.get_visible()||this.__isMask||e&&!this.mouseEnabled&&!this.mouseChildren||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;if(null!=this.__scrollRect){var h=qa.__pool.get();h.setTo(a,b);var k=this.__getRenderTransform(),n=k.a*k.d-k.b*k.c;if(0==n)h.x=-k.tx,h.y=-k.ty;else{var C=1/n*(k.c*(k.ty-h.y)+k.d*(h.x-k.tx));h.y=1/n*(k.a*(h.y-k.ty)+k.b*(k.tx-h.x));h.x=C}if(!this.__scrollRect.containsPoint(h))return qa.__pool.release(h),
!1;qa.__pool.release(h)}h=this.__children.length;if(e)if(null==c||!this.mouseChildren)for(;0<=--h;){if(this.__children[h].__hitTest(a,b,d,null,!0,this.__children[h]))return null!=c&&c.push(f),!0}else{if(null!=c){e=c.length;for(n=!1;0<=--h&&!(((k=this.__children[h].__getInteractive(null))||this.mouseEnabled&&!n)&&this.__children[h].__hitTest(a,b,d,c,!0,this.__children[h])&&(n=!0,k&&c.length>e)););if(n)return c.splice(e,0,f),!0}}else for(;0<=--h;)this.__children[h].__hitTest(a,b,d,c,!1,this.__children[h]);
return!1},__hitTestMask:function(a,b){for(var d=this.__children.length;0<=--d;)if(this.__children[d].__hitTestMask(a,b))return!0;return!1},__renderCairo:function(a){},__renderCairoMask:function(a){},__renderCanvas:function(a){for(var b=0,d=this.__removedChildren;b<d.get_length();){var c=d.get(b);++b;null==c.stage&&c.__cleanup()}this.__removedChildren.set_length(0);if(!(!this.__renderable||0>=this.__worldAlpha||null!=this.get_mask()&&(0>=this.get_mask().get_width()||0>=this.get_mask().get_height()))&&
(Ma.prototype.__renderCanvas.call(this,a),null==this.__cacheBitmap||this.__isCacheBitmapRender)){a.__pushMaskObject(this);if(null!=a.__stage){b=0;for(d=this.__children;b<d.length;)c=d[b],++b,c.__renderCanvas(a),c.__renderDirty=!1;this.__renderDirty=!1}else for(b=0,d=this.__children;b<d.length;)c=d[b],++b,c.__renderCanvas(a);a.__popMaskObject(this)}},__renderCanvasMask:function(a){for(var b=0,d=this.__removedChildren;b<d.get_length();){var c=d.get(b);++b;null==c.stage&&c.__cleanup()}this.__removedChildren.set_length(0);
null!=this.__graphics&&q.renderMask(this.__graphics,a);b=0;for(d=this.__children;b<d.length;)c=d[b],++b,c.__renderCanvasMask(a)},__renderDOM:function(a){for(var b=0,d=this.__removedChildren;b<d.get_length();){var c=d.get(b);++b;null==c.stage&&c.__cleanup()}this.__removedChildren.set_length(0);Ma.prototype.__renderDOM.call(this,a);if(null==this.__cacheBitmap||this.__isCacheBitmapRender){a.__pushMaskObject(this);if(null!=a.__stage){b=0;for(d=this.__children;b<d.length;)c=d[b],++b,c.__renderDOM(a),c.__renderDirty=
!1;this.__renderDirty=!1}else for(b=0,d=this.__children;b<d.length;)c=d[b],++b,c.__renderDOM(a);a.__popMaskObject(this)}},__renderDOMClear:function(a){for(var b=0,d=this.__removedChildren;b<d.get_length();){var c=d.get(b);++b;null==c.stage&&c.__cleanup()}this.__removedChildren.set_length(0);b=0;for(d=this.__children;b<d.length;)c=d[b],++b,c.__renderDOMClear(a)},__renderGL:function(a){for(var b=0,d=this.__removedChildren;b<d.get_length();){var c=d.get(b);++b;null==c.stage&&c.__cleanup()}this.__removedChildren.set_length(0);
if(this.__renderable&&!(0>=this.__worldAlpha)&&(Ma.prototype.__renderGL.call(this,a),null==this.__cacheBitmap||this.__isCacheBitmapRender)){if(0<this.__children.length)if(a.__pushMaskObject(this),null!=a.__stage){b=0;for(d=this.__children;b<d.length;)c=d[b],++b,c.__renderGL(a),c.__renderDirty=!1;this.__renderDirty=!1}else for(b=0,d=this.__children;b<d.length;)c=d[b],++b,c.__renderGL(a);0<this.__children.length&&a.__popMaskObject(this)}},__renderGLMask:function(a){for(var b=0,d=this.__removedChildren;b<
d.get_length();){var c=d.get(b);++b;null==c.stage&&c.__cleanup()}this.__removedChildren.set_length(0);null!=this.__graphics&&pd.renderMask(this,a);b=0;for(d=this.__children;b<d.length;)c=d[b],++b,c.__renderGLMask(a)},__setStageReference:function(a){Ma.prototype.__setStageReference.call(this,a);if(null!=this.__children)for(var b=0,d=this.__children;b<d.length;){var c=d[b];++b;c.__setStageReference(a)}},__setWorldTransformInvalid:function(){if(!this.__worldTransformInvalid&&(this.__worldTransformInvalid=
!0,null!=this.__children))for(var a=0,b=this.__children;a<b.length;){var d=b[a];++a;d.__setWorldTransformInvalid()}},__shouldCacheHardware:function(a){if(1==a)return!0;a=Ma.prototype.__shouldCacheHardware.call(this,a);if(1==a)return!0;if(null!=this.__children)for(var b=0,d=this.__children;b<d.length;){var c=d[b];++b;a=c.__shouldCacheHardware(a);if(1==a)return!0}return a},__update:function(a,b){Ma.prototype.__update.call(this,a,b);if(b){b=0;for(var d=this.__children;b<d.length;){var c=d[b];++b;c.__update(a,
!0)}}},get_numChildren:function(){return this.__children.length},__class__:oa});var cb=function(){oa.call(this);this.__buttonMode=!1;this.useHandCursor=!0};m["openfl.display.Sprite"]=cb;cb.__name__="openfl.display.Sprite";cb.__super__=oa;cb.prototype=v(oa.prototype,{dropTarget:null,hitArea:null,useHandCursor:null,__buttonMode:null,__getCursor:function(){return this.__buttonMode&&this.useHandCursor?ji.POINTER:null},__hitTest:function(a,b,d,c,e,f){if(e&&!this.mouseEnabled&&!this.mouseChildren)return!1;
if(!f.get_visible()||this.__isMask||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return this.__hitTestHitArea(a,b,d,c,e,f);if(null!=this.__scrollRect){var h=qa.__pool.get();h.setTo(a,b);var k=this.__getRenderTransform(),n=k.a*k.d-k.b*k.c;if(0==n)h.x=-k.tx,h.y=-k.ty;else{var C=1/n*(k.c*(k.ty-h.y)+k.d*(h.x-k.tx));h.y=1/n*(k.a*(h.y-k.ty)+k.b*(k.tx-h.x));h.x=C}if(!this.__scrollRect.containsPoint(h))return qa.__pool.release(h),this.__hitTestHitArea(a,b,d,c,!0,f);qa.__pool.release(h)}return oa.prototype.__hitTest.call(this,
a,b,d,c,e,f)?e:null==this.hitArea&&null!=this.__graphics&&this.__graphics.__hitTest(a,b,d,this.__getRenderTransform())?(null==c||e&&!this.mouseEnabled||c.push(f),!0):this.__hitTestHitArea(a,b,d,c,e,f)},__hitTestHitArea:function(a,b,d,c,e,f){return null==this.hitArea||this.hitArea.mouseEnabled?!1:(this.hitArea.mouseEnabled=!0,a=this.hitArea.__hitTest(a,b,d,null,!0,f),this.hitArea.mouseEnabled=!1,null!=c&&a&&(c[c.length]=f),a)},__hitTestMask:function(a,b){return oa.prototype.__hitTestMask.call(this,
a,b)||null!=this.__graphics&&this.__graphics.__hitTest(a,b,!0,this.__getRenderTransform())?!0:!1},get_graphics:function(){null==this.__graphics&&(this.__graphics=new Db(this));return this.__graphics},get_tabEnabled:function(){return null==this.__tabEnabled?this.__buttonMode:this.__tabEnabled},__class__:cb});var gc=function(){this.stressing=!1;this.dt=this.timer=0;gc.instance=this;cb.call(this);this.layers=[];var a=new lg;a.set_width(200);a.set_defaultTextFormat(new dd(null,40));a.set_textColor(16777215);
this.addChild(a);Ba.get_current().get_graphics().beginFill(6710886,1);Ba.get_current().get_graphics().drawRect(0,0,this.stage.stageWidth,this.stage.stageHeight);Ba.get_current().get_graphics().endFill();this.stage.addEventListener("enterFrame",u(this,this.render))};m.Main=gc;gc.__name__="Main";gc.__super__=cb;gc.prototype=v(cb.prototype,{layers:null,dt:null,timer:null,renderSWFTY:function(a,b,d){var c=this;d=0;for(var e=this.layers;d<e.length;){var f=e[d];++d;this.removeChild(f);f.dispose()}this.layers=
[];var h=function(a){c.layers.push(a);c.addChildAt(a,0);null!=b&&b()},k=new mg(this.stage.stageWidth,this.stage.stageHeight);null!=a&&k.loadBytes(a,function(){null!=h&&h(k)},null)},renderMC:function(a){for(var b=0,d=this.layers;b<d.length;){var c=d[b];++b;c.removeAll();var e=c.get(a);c.addSprite(e);var f=c=null,h=e.calcBounds(e._parent);null==c&&(c=e.layer._width);null==f&&(f=e.layer._height);if(h.width<h.height){var k=f/h.height;var n=h.width*k;if(0>c?n>c-.001:n>c+.001)k=c/h.width}else if(k=c/h.width,
n=h.height*k,0>f?n>f-.001:n>f+.001)k=f/h.height;n=e;n.set_scaleX(n.set_scaleY(k));f=-h.y*k-(h.height*k-f)/2;e.set_x(-h.x*k-(h.width*k-c)/2);e.set_y(f)}},stressing:null,stress:function(){var a=this;if(this.stressing)this.stressing=!1;else if(0!=this.layers.length){for(var b=this.layers[0],d=[],c=b.mcs.keys();c.hasNext();){var e=c.next();d.push(e)}this.stressing=!0;var f=null;f=function(){Td.delay(function(){var c=b.get(d[Math.random()*d.length|0]),e=50*Math.random()-25,n=50*Math.random()-25,C=(50*
Math.random()-25)/180*Math.PI*5,l=.75*Math.random()+.25;C=C/Math.PI*180;c.set_x(Math.random()*a.stage.stageWidth*.75);c.set_y(Math.random()*a.stage.stageHeight*.75);var g=.25*Math.random()+.35;c.set_scaleX(g);c.set_scaleY(g);g=Xk.BounceOut;var m=function(){var a=Xk.BackIn,b=c.get_scaleX();if(null==a)var d=function(a){return b*(1-a)+.25*a};else switch(a._hx_index){case 0:d=function(a){return b*(1-a)+.25*a};break;case 1:d=function(a){a=0==a?0:1==a?1:1-Math.cos(1.5707963267948966*a);return b*(1-a)+.25*
a};break;case 2:d=function(a){a=0==a?0:1==a?1:Math.sin(1.5707963267948966*a);return b*(1-a)+.25*a};break;case 3:d=function(a){a=0==a?0:1==a?1:-.5*(Math.cos(3.141592653589793*a)-1);return b*(1-a)+.25*a};break;case 4:d=function(a){a=0==a?0:1==a?1:.5>a?.5*Math.sin(3.141592653589793*a):-.5*Math.cos(1.5707963267948966*(2*a-1))+1;return b*(1-a)+.25*a};break;case 5:d=function(a){a*=a;return b*(1-a)+.25*a};break;case 6:d=function(a){a=-a*(a-2);return b*(1-a)+.25*a};break;case 7:d=function(a){a=.5>a?2*a*a:
-2*--a*a+1;return b*(1-a)+.25*a};break;case 8:d=function(a){if(.5>a)var c=-.5*(a*=2)*(a-2);else a=2*a-1,c=.5*a*a+.5;return b*(1-c)+.25*c};break;case 9:d=function(a){a*=a*a;return b*(1-a)+.25*a};break;case 10:d=function(a){a=--a*a*a+1;return b*(1-a)+.25*a};break;case 11:d=function(a){var c=1>(a*=2)?.5*a*a*a:.5*((a-=2)*a*a+2);return b*(1-c)+.25*c};break;case 12:d=function(a){a=2*a-1;a=.5*(a*a*a+1);return b*(1-a)+.25*a};break;case 13:d=function(a){var c=(a*=a)*a;return b*(1-c)+.25*c};break;case 14:d=
function(a){a*=--a;a=1-a*a;return b*(1-a)+.25*a};break;case 15:d=function(a){if(1>(a*=2))var c=.5*(a*=a)*a;else a*=a-=2,c=-.5*(a*a-2);return b*(1-c)+.25*c};break;case 16:d=function(a){if(.5>a){a=2*a-1;var c=-.5*(a*=a)*a+.5}else a=2*a-1,c=.5*(a*=a)*a+.5;return b*(1-c)+.25*c};break;case 17:d=function(a){var c=a*(a*=a)*a;return b*(1-c)+.25*c};break;case 18:d=function(a){var c=--a*(a*=a)*a+1;return b*(1-c)+.25*c};break;case 19:d=function(a){var c=1>(a*=2)?.5*a*(a*=a)*a:.5*(a-=2)*(a*=a)*a+1;return b*(1-
c)+.25*c};break;case 20:d=function(a){a=2*a-1;var c=.5*(a*(a*=a)*a+1);return b*(1-c)+.25*c};break;case 21:d=function(a){a=0==a?0:Math.exp(6.931471805599453*(a-1));return b*(1-a)+.25*a};break;case 22:d=function(a){a=1==a?1:1-Math.exp(-6.931471805599453*a);return b*(1-a)+.25*a};break;case 23:d=function(a){var c=0==a?0:1==a?1:1>(a*=2)?.5*Math.exp(6.931471805599453*(a-1)):.5*(2-Math.exp(-6.931471805599453*(a-1)));return b*(1-c)+.25*c};break;case 24:d=function(a){a=.5>a?.5*(1-Math.exp(-13.862943611198906*
a)):.5==a?.5:.5*(Math.exp(13.862943611198906*(a-1))+1);return b*(1-a)+.25*a};break;case 25:d=function(a){a=-1>a||1<a?0:1-Math.sqrt(1-a*a);return b*(1-a)+.25*a};break;case 26:d=function(a){a=0>a||2<a?0:Math.sqrt(a*(2-a));return b*(1-a)+.25*a};break;case 27:d=function(a){var c=-.5>a||1.5<a?.5:1>(a*=2)?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1);return b*(1-c)+.25*c};break;case 28:d=function(a){0>a?a=0:1<a?a=1:.5>a?(a=2*a-1,a=.5*Math.sqrt(1-a*a)):(a=2*a-1,a=-.5*(Math.sqrt(1-a*a)-1-1));return b*
(1-a)+.25*a};break;case 29:d=function(a){a=1-a;var c=.36363636363636365>a?1-7.5625*a*a:.7272727272727273>a?1-(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?1-(7.5625*(a-=.8181818181818182)*a+.9375):1-(7.5625*(a-=.9545454545454546)*a+.984375);return b*(1-c)+.25*c};break;case 30:d=function(a){var c=.36363636363636365>a?7.5625*a*a:.7272727272727273>a?7.5625*(a-=.5454545454545454)*a+.75:.9090909090909091>a?7.5625*(a-=.8181818181818182)*a+.9375:7.5625*(a-=.9545454545454546)*a+.984375;return b*
(1-c)+.25*c};break;case 31:d=function(a){if(.5>a){a=1-2*a;var c=.36363636363636365>a?.5*(1-7.5625*a*a):.7272727272727273>a?.5*(1-(7.5625*(a-=.5454545454545454)*a+.75)):.9090909090909091>a?.5*(1-(7.5625*(a-=.8181818181818182)*a+.9375)):.5*(1-(7.5625*(a-=.9545454545454546)*a+.984375))}else a=2*a-1,c=.36363636363636365>a?7.5625*a*a*.5+.5:.7272727272727273>a?.5*(7.5625*(a-=.5454545454545454)*a+.75)+.5:.9090909090909091>a?.5*(7.5625*(a-=.8181818181818182)*a+.9375)+.5:.5*(7.5625*(a-=.9545454545454546)*
a+.984375)+.5;return b*(1-c)+.25*c};break;case 32:d=function(a){if(.5>a)var c=.36363636363636365>(a*=2)?3.78125*a*a:.7272727272727273>a?.5*(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?.5*(7.5625*(a-=.8181818181818182)*a+.9375):.5*(7.5625*(a-=.9545454545454546)*a+.984375);else a=1-(2*a-1),c=.36363636363636365>a?.5-3.78125*a*a+.5:.7272727272727273>a?.5-.5*(7.5625*(a-=.5454545454545454)*a+.75)+.5:.9090909090909091>a?.5-.5*(7.5625*(a-=.8181818181818182)*a+.9375)+.5:.5-.5*(7.5625*(a-=.9545454545454546)*
a+.984375)+.5;return b*(1-c)+.25*c};break;case 33:d=function(a){a=0==a?0:1==a?1:a*a*(2.70158*a-1.70158);return b*(1-a)+.25*a};break;case 34:d=function(a){a=0==a?0:1==a?1:--a*a*(2.70158*a+1.70158)+1;return b*(1-a)+.25*a};break;case 35:d=function(a){var c=0==a?0:1==a?1:1>(a*=2)?.5*a*a*(3.5949095*a-2.5949095):.5*((a-=2)*a*(3.5949095*a+2.5949095)+2);return b*(1-c)+.25*c};break;case 36:d=function(a){0==a?a=0:1==a?a=1:.5>a?(a=2*a-1,a=.5*(a*a*(2.70158*a+1.70158)+1)):(a=2*a-1,a=.5*a*a*(2.70158*a-1.70158)+
.5);return b*(1-a)+.25*a};break;case 37:d=function(a){a=0==a?0:1==a?1:-(Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4));return b*(1-a)+.25*a};break;case 38:d=function(a){a=0==a?0:1==a?1:Math.exp(-6.931471805599453*a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)+1;return b*(1-a)+.25*a};break;case 39:d=function(a){var c=0==a?0:1==a?1:1>(a*=2)?-.5*Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4):Math.exp(-6.931471805599453*--a)*Math.sin(6.283185307179586*
(.001*a-7.5E-5)/3E-4)*.5+1;return b*(1-c)+.25*c};break;case 40:d=function(a){if(.5>a)var c=0==(a*=2)?0:.5*Math.exp(-6.931471805599453*a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)+.5;else.5==a?c=.5:1==a?c=1:(a=2*a-1,c=-(.5*Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4))+.5);return b*(1-c)+.25*c};break;case 41:d=function(a){a=0>=a?0:1;return b*(1-a)+.25*a};break;case 42:d=function(a){a=1>a?0:1;return b*(1-a)+.25*a};break;case 43:d=function(a){a=.5>a?0:1;return b*
(1-a)+.25*a};break;case 44:d=function(a){a=0>=a?0:1>a?.5:1;return b*(1-a)+.25*a}}var e=0,f=null;a=f=function(a){if(.5<=e)if(e=.5,null!=f){c._pruneRenders.push(f);var b=c._rendersMap;if(null!=t.tween?b.existsReserved("tween"):b.h.hasOwnProperty("tween"))b=c._rendersMap,L.remove(null!=t.tween?b.getReserved("tween"):b.h.tween,f)}else if(b=c._rendersMap,null!=t.tween?b.existsReserved("tween"):b.h.hasOwnProperty("tween")){b=0;var g=c._rendersMap;for(g=null!=t.tween?g.getReserved("tween"):g.h.tween;b<g.length;){var h=
g[b];++b;c._pruneRenders.push(h)}c._rendersMap.remove("tween")}0<=e&&(b=d(e/.5),b=c.set_scaleY(b),c.set_scaleX(b));e+=a};c._renders.push(a);var g=c._rendersMap;if(null!=t.tween?!g.existsReserved("tween"):!g.h.hasOwnProperty("tween")){g=c._rendersMap;var h=[];null!=t.tween?g.setReserved("tween",h):g.h.tween=h}g=c._rendersMap;(null!=t.tween?g.getReserved("tween"):g.h.tween).push(a)},T=c.get_scaleX();if(null==g)var A=function(a){return T*(1-a)+1.5*a};else switch(g._hx_index){case 0:A=function(a){return T*
(1-a)+1.5*a};break;case 1:A=function(a){a=0==a?0:1==a?1:1-Math.cos(1.5707963267948966*a);return T*(1-a)+1.5*a};break;case 2:A=function(a){a=0==a?0:1==a?1:Math.sin(1.5707963267948966*a);return T*(1-a)+1.5*a};break;case 3:A=function(a){a=0==a?0:1==a?1:-.5*(Math.cos(3.141592653589793*a)-1);return T*(1-a)+1.5*a};break;case 4:A=function(a){a=0==a?0:1==a?1:.5>a?.5*Math.sin(3.141592653589793*a):-.5*Math.cos(1.5707963267948966*(2*a-1))+1;return T*(1-a)+1.5*a};break;case 5:A=function(a){a*=a;return T*(1-a)+
1.5*a};break;case 6:A=function(a){a=-a*(a-2);return T*(1-a)+1.5*a};break;case 7:A=function(a){a=.5>a?2*a*a:-2*--a*a+1;return T*(1-a)+1.5*a};break;case 8:A=function(a){if(.5>a)var b=-.5*(a*=2)*(a-2);else a=2*a-1,b=.5*a*a+.5;return T*(1-b)+1.5*b};break;case 9:A=function(a){a*=a*a;return T*(1-a)+1.5*a};break;case 10:A=function(a){a=--a*a*a+1;return T*(1-a)+1.5*a};break;case 11:A=function(a){var b=1>(a*=2)?.5*a*a*a:.5*((a-=2)*a*a+2);return T*(1-b)+1.5*b};break;case 12:A=function(a){a=2*a-1;a=.5*(a*a*
a+1);return T*(1-a)+1.5*a};break;case 13:A=function(a){var b=(a*=a)*a;return T*(1-b)+1.5*b};break;case 14:A=function(a){a*=--a;a=1-a*a;return T*(1-a)+1.5*a};break;case 15:A=function(a){if(1>(a*=2))var b=.5*(a*=a)*a;else a*=a-=2,b=-.5*(a*a-2);return T*(1-b)+1.5*b};break;case 16:A=function(a){if(.5>a){a=2*a-1;var b=-.5*(a*=a)*a+.5}else a=2*a-1,b=.5*(a*=a)*a+.5;return T*(1-b)+1.5*b};break;case 17:A=function(a){var b=a*(a*=a)*a;return T*(1-b)+1.5*b};break;case 18:A=function(a){var b=--a*(a*=a)*a+1;return T*
(1-b)+1.5*b};break;case 19:A=function(a){var b=1>(a*=2)?.5*a*(a*=a)*a:.5*(a-=2)*(a*=a)*a+1;return T*(1-b)+1.5*b};break;case 20:A=function(a){a=2*a-1;var b=.5*(a*(a*=a)*a+1);return T*(1-b)+1.5*b};break;case 21:A=function(a){a=0==a?0:Math.exp(6.931471805599453*(a-1));return T*(1-a)+1.5*a};break;case 22:A=function(a){a=1==a?1:1-Math.exp(-6.931471805599453*a);return T*(1-a)+1.5*a};break;case 23:A=function(a){var b=0==a?0:1==a?1:1>(a*=2)?.5*Math.exp(6.931471805599453*(a-1)):.5*(2-Math.exp(-6.931471805599453*
(a-1)));return T*(1-b)+1.5*b};break;case 24:A=function(a){a=.5>a?.5*(1-Math.exp(-13.862943611198906*a)):.5==a?.5:.5*(Math.exp(13.862943611198906*(a-1))+1);return T*(1-a)+1.5*a};break;case 25:A=function(a){a=-1>a||1<a?0:1-Math.sqrt(1-a*a);return T*(1-a)+1.5*a};break;case 26:A=function(a){a=0>a||2<a?0:Math.sqrt(a*(2-a));return T*(1-a)+1.5*a};break;case 27:A=function(a){var b=-.5>a||1.5<a?.5:1>(a*=2)?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1);return T*(1-b)+1.5*b};break;case 28:A=function(a){0>
a?a=0:1<a?a=1:.5>a?(a=2*a-1,a=.5*Math.sqrt(1-a*a)):(a=2*a-1,a=-.5*(Math.sqrt(1-a*a)-1-1));return T*(1-a)+1.5*a};break;case 29:A=function(a){a=1-a;var b=.36363636363636365>a?1-7.5625*a*a:.7272727272727273>a?1-(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?1-(7.5625*(a-=.8181818181818182)*a+.9375):1-(7.5625*(a-=.9545454545454546)*a+.984375);return T*(1-b)+1.5*b};break;case 30:A=function(a){var b=.36363636363636365>a?7.5625*a*a:.7272727272727273>a?7.5625*(a-=.5454545454545454)*a+.75:.9090909090909091>
a?7.5625*(a-=.8181818181818182)*a+.9375:7.5625*(a-=.9545454545454546)*a+.984375;return T*(1-b)+1.5*b};break;case 31:A=function(a){if(.5>a){a=1-2*a;var b=.36363636363636365>a?.5*(1-7.5625*a*a):.7272727272727273>a?.5*(1-(7.5625*(a-=.5454545454545454)*a+.75)):.9090909090909091>a?.5*(1-(7.5625*(a-=.8181818181818182)*a+.9375)):.5*(1-(7.5625*(a-=.9545454545454546)*a+.984375))}else a=2*a-1,b=.36363636363636365>a?7.5625*a*a*.5+.5:.7272727272727273>a?.5*(7.5625*(a-=.5454545454545454)*a+.75)+.5:.9090909090909091>
a?.5*(7.5625*(a-=.8181818181818182)*a+.9375)+.5:.5*(7.5625*(a-=.9545454545454546)*a+.984375)+.5;return T*(1-b)+1.5*b};break;case 32:A=function(a){if(.5>a)var b=.36363636363636365>(a*=2)?3.78125*a*a:.7272727272727273>a?.5*(7.5625*(a-=.5454545454545454)*a+.75):.9090909090909091>a?.5*(7.5625*(a-=.8181818181818182)*a+.9375):.5*(7.5625*(a-=.9545454545454546)*a+.984375);else a=1-(2*a-1),b=.36363636363636365>a?.5-3.78125*a*a+.5:.7272727272727273>a?.5-.5*(7.5625*(a-=.5454545454545454)*a+.75)+.5:.9090909090909091>
a?.5-.5*(7.5625*(a-=.8181818181818182)*a+.9375)+.5:.5-.5*(7.5625*(a-=.9545454545454546)*a+.984375)+.5;return T*(1-b)+1.5*b};break;case 33:A=function(a){a=0==a?0:1==a?1:a*a*(2.70158*a-1.70158);return T*(1-a)+1.5*a};break;case 34:A=function(a){a=0==a?0:1==a?1:--a*a*(2.70158*a+1.70158)+1;return T*(1-a)+1.5*a};break;case 35:A=function(a){var b=0==a?0:1==a?1:1>(a*=2)?.5*a*a*(3.5949095*a-2.5949095):.5*((a-=2)*a*(3.5949095*a+2.5949095)+2);return T*(1-b)+1.5*b};break;case 36:A=function(a){0==a?a=0:1==a?a=
1:.5>a?(a=2*a-1,a=.5*(a*a*(2.70158*a+1.70158)+1)):(a=2*a-1,a=.5*a*a*(2.70158*a-1.70158)+.5);return T*(1-a)+1.5*a};break;case 37:A=function(a){a=0==a?0:1==a?1:-(Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4));return T*(1-a)+1.5*a};break;case 38:A=function(a){a=0==a?0:1==a?1:Math.exp(-6.931471805599453*a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)+1;return T*(1-a)+1.5*a};break;case 39:A=function(a){var b=0==a?0:1==a?1:1>(a*=2)?-.5*Math.exp(6.931471805599453*--a)*
Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4):Math.exp(-6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)*.5+1;return T*(1-b)+1.5*b};break;case 40:A=function(a){if(.5>a)var b=0==(a*=2)?0:.5*Math.exp(-6.931471805599453*a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4)+.5;else.5==a?b=.5:1==a?b=1:(a=2*a-1,b=-(.5*Math.exp(6.931471805599453*--a)*Math.sin(6.283185307179586*(.001*a-7.5E-5)/3E-4))+.5);return T*(1-b)+1.5*b};break;case 41:A=function(a){a=0>=a?0:1;return T*(1-a)+1.5*
a};break;case 42:A=function(a){a=1>a?0:1;return T*(1-a)+1.5*a};break;case 43:A=function(a){a=.5>a?0:1;return T*(1-a)+1.5*a};break;case 44:A=function(a){a=0>=a?0:1>a?.5:1;return T*(1-a)+1.5*a}}var q=-.5,p=!1,r=null;g=r=function(a){if(.5<=q)if(q=.5,p=!0,null!=r){c._pruneRenders.push(r);var b=c._rendersMap;if(null!=t.tween?b.existsReserved("tween"):b.h.hasOwnProperty("tween"))b=c._rendersMap,L.remove(null!=t.tween?b.getReserved("tween"):b.h.tween,r)}else if(b=c._rendersMap,null!=t.tween?b.existsReserved("tween"):
b.h.hasOwnProperty("tween")){b=0;var d=c._rendersMap;for(d=null!=t.tween?d.getReserved("tween"):d.h.tween;b<d.length;){var e=d[b];++b;c._pruneRenders.push(e)}c._rendersMap.remove("tween")}0<=q&&(b=A(q/.5),b=c.set_scaleY(b),c.set_scaleX(b));q+=a;p&&null!=m&&m()};c._renders.push(g);var u=c._rendersMap;if(null!=t.tween?!u.existsReserved("tween"):!u.h.hasOwnProperty("tween")){u=c._rendersMap;var Fd=[];null!=t.tween?u.setReserved("tween",Fd):u.h.tween=Fd}u=c._rendersMap;(null!=t.tween?u.getReserved("tween"):
u.h.tween).push(g);c._renders.push(function(a){c.set_x(c.get_x()+e*a);c.set_y(c.get_y()+n*a);c.set_rotation(c.get_rotation()+C*a);c.set_alpha(c.get_alpha()-l*a);0>=c.get_alpha()&&b.removeSprite(c)});b.addSprite(c);a.stressing&&f()},2)};f()}},render:function(a){this.dt=(new Date).getTime()/1E3-this.timer;this.timer=(new Date).getTime()/1E3;a=0;for(var b=this.layers;a<b.length;){var d=b[a];++a;d.update(this.dt)}},__class__:gc});var cg=function(a){a.addChild(this);gc.call(this);this.dispatchEvent(new R("addedToStage",
!1,!1))};m.DocumentClass=cg;cg.__name__="DocumentClass";cg.__super__=gc;cg.prototype=v(gc.prototype,{__class__:cg});var wa=function(a,b){this.r=new RegExp(a,b.split("u").join(""))};m.EReg=wa;wa.__name__="EReg";wa.prototype={r:null,match:function(a){this.r.global&&(this.r.lastIndex=0);this.r.m=this.r.exec(a);this.r.s=a;return null!=this.r.m},matched:function(a){if(null!=this.r.m&&0<=a&&a<this.r.m.length)return this.r.m[a];throw new w("EReg::matched");},matchedRight:function(){if(null==this.r.m)throw new w("No string matched");
var a=this.r.m.index+this.r.m[0].length;return L.substr(this.r.s,a,this.r.s.length-a)},matchedPos:function(){if(null==this.r.m)throw new w("No string matched");return{pos:this.r.m.index,len:this.r.m[0].length}},matchSub:function(a,b,d){null==d&&(d=-1);if(this.r.global){this.r.lastIndex=b;this.r.m=this.r.exec(0>d?a:L.substr(a,0,b+d));if(b=null!=this.r.m)this.r.s=a;return b}if(d=this.match(0>d?L.substr(a,b,null):L.substr(a,b,d)))this.r.s=a,this.r.m.index+=b;return d},split:function(a){return a.replace(this.r,
"#__delim__#").split("#__delim__#")},__class__:wa};var L=function(){};m.HxOverrides=L;L.__name__="HxOverrides";L.strDate=function(a){switch(a.length){case 8:a=a.split(":");var b=new Date;b.setTime(0);b.setUTCHours(a[0]);b.setUTCMinutes(a[1]);b.setUTCSeconds(a[2]);return b;case 10:return a=a.split("-"),new Date(a[0],a[1]-1,a[2],0,0,0);case 19:return b=a.split(" "),a=b[0].split("-"),b=b[1].split(":"),new Date(a[0],a[1]-1,a[2],b[0],b[1],b[2]);default:throw new w("Invalid date format : "+a);}};L.cca=
function(a,b){a=a.charCodeAt(b);if(a==a)return a};L.substr=function(a,b,d){if(null==d)d=a.length;else if(0>d)if(0==b)d=a.length+d;else return"";return a.substr(b,d)};L.remove=function(a,b){b=a.indexOf(b);if(-1==b)return!1;a.splice(b,1);return!0};L.iter=function(a){return{cur:0,arr:a,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}};var Wb=function(){};m.Lambda=Wb;Wb.__name__="Lambda";Wb.array=function(a){var b=[];for(a=bb(a);a.hasNext();){var d=a.next();
b.push(d)}return b};Wb.iter=function(a,b){for(a=bb(a);a.hasNext();){var d=a.next();b(d)}};Wb.count=function(a,b){var d=0;if(null==b)for(b=bb(a);b.hasNext();)b.next(),++d;else for(a=bb(a);a.hasNext();){var c=a.next();b(c)&&++d}return d};var nd=function(){};m.ManifestResources=nd;nd.__name__="ManifestResources";nd.init=function(a){nd.preloadLibraries=[];nd.preloadLibraryNames=[];var b=null;null!=a&&Object.prototype.hasOwnProperty.call(a,"rootPath")&&(b=V.field(a,"rootPath"));null==b&&(b="");Z.defaultRootPath=
b;a=Eb.parse('{"name":null,"assets":"ah","rootPath":null,"version":2,"libraryArgs":[],"libraryType":null}',b);a=Ya.fromManifest(a);Z.registerLibrary("default",a);a=Z.getLibrary("default");null!=a?nd.preloadLibraries.push(a):nd.preloadLibraryNames.push("default")};Math.__name__="Math";var V=function(){};m.Reflect=V;V.__name__="Reflect";V.field=function(a,b){try{return a[b]}catch(d){return fa.lastException=d,null}};V.fields=function(a){var b=[];if(null!=a){var d=Object.prototype.hasOwnProperty,c;for(c in a)"__id__"!=
c&&"hx__closures__"!=c&&d.call(a,c)&&b.push(c)}return b};V.isFunction=function(a){return"function"==typeof a?!(a.__name__||a.__ename__):!1};V.compare=function(a,b){return a==b?0:a>b?1:-1};V.compareMethods=function(a,b){return a==b?!0:V.isFunction(a)&&V.isFunction(b)?a.scope==b.scope&&a.method==b.method?null!=a.method:!1:!1};V.isEnumValue=function(a){return null!=a?null!=a.__enum__:!1};V.deleteField=function(a,b){if(!Object.prototype.hasOwnProperty.call(a,b))return!1;delete a[b];return!0};var sc=G.SWFTY=
function(){};m.SWFTY=sc;sc.__name__="SWFTY";sc.processSWF=function(a,b,d,c){var e=(new Date).getTime()/1E3;rd.create(ya.fromBytes(H.ofData(a)),(new ue(b)).file,function(a){ra.trace("Parsed SWF: "+((new Date).getTime()/1E3-e),{fileName:"src/SWFTY.hx",lineNumber:19,className:"SWFTY",methodName:"processSWF"});null!=d&&d(a)},c)};sc.convertSWF=function(a,b,d,c,e,f){null==f&&(f=!0);null==e&&(e=!1);sc.processSWF(a,b,function(a){sc.exportSWF(a,d,e,f)},c)};sc.getTilemap=function(a,b){a=a.getTilemapInfo();
null!=b&&b(a.src,a.width,a.height,a.size)};sc.exportSWF=function(a,b,d,c){null==c&&(c=!0);null==d&&(d=!1);a=a.getSwfty(d,c);null!=b&&b(a.b.bufferValue)};sc.exportAbstracts=function(a){return a.getAbstracts()};sc.exportNames=function(a){return a.getAllNames()};sc.renderSWFTY=function(a,b,d){null!=gc.instance&&gc.instance.renderSWFTY(H.ofData(a),b,d)};sc.renderMC=function(a){null!=gc.instance&&gc.instance.renderMC(a)};sc.stress=function(){null!=gc.instance&&gc.instance.stress()};sc.prototype={__class__:sc};
var S=function(){};m.Std=S;S.__name__="Std";S.string=function(a){return U.__string_rec(a,"")};S.parseInt=function(a){a=parseInt(a,!a||"0"!=a[0]||"x"!=a[1]&&"X"!=a[1]?10:16);return isNaN(a)?null:a};var Wj=function(){};m["_String.String_Impl_"]=Wj;Wj.__name__="_String.String_Impl_";Wj.fromCharCode=function(a){return String.fromCodePoint(a)};var og=function(){this.b=""};m.StringBuf=og;og.__name__="StringBuf";og.prototype={b:null,__class__:og};var Q=function(){};m.StringTools=Q;Q.__name__="StringTools";
Q.htmlEscape=function(a,b){for(var d="",c=0;c<a.length;){var e=a.charCodeAt(c++);55296<=e&&56319>e&&(e=e-55232<<10|a.charCodeAt(c++)&1023);switch(e){case 34:d=b?d+"&quot;":d+String.fromCodePoint(e);break;case 38:d+="&amp;";break;case 39:d=b?d+"&#039;":d+String.fromCodePoint(e);break;case 60:d+="&lt;";break;case 62:d+="&gt;";break;default:d+=String.fromCodePoint(e)}}return d};Q.startsWith=function(a,b){return a.length>=b.length?L.substr(a,0,b.length)==b:!1};Q.endsWith=function(a,b){var d=b.length,
c=a.length;return c>=d?L.substr(a,c-d,d)==b:!1};Q.isSpace=function(a,b){a=L.cca(a,b);return 8<a&&14>a?!0:32==a};Q.ltrim=function(a){for(var b=a.length,d=0;d<b&&Q.isSpace(a,d);)++d;return 0<d?L.substr(a,d,b-d):a};Q.rtrim=function(a){for(var b=a.length,d=0;d<b&&Q.isSpace(a,b-d-1);)++d;return 0<d?L.substr(a,0,b-d):a};Q.trim=function(a){return Q.ltrim(Q.rtrim(a))};Q.replace=function(a,b,d){return a.split(b).join(d)};Q.hex=function(a,b){for(var d="";d="0123456789ABCDEF".charAt(a&15)+d,a>>>=4,0<a;);if(null!=
b)for(;d.length<b;)d="0"+d;return d};var Ec=sa.ValueType={__ename__:"ValueType",__constructs__:"TNull TInt TFloat TBool TObject TFunction TClass TEnum TUnknown".split(" "),TNull:{_hx_index:0,__enum__:"ValueType",toString:r},TInt:{_hx_index:1,__enum__:"ValueType",toString:r},TFloat:{_hx_index:2,__enum__:"ValueType",toString:r},TBool:{_hx_index:3,__enum__:"ValueType",toString:r},TObject:{_hx_index:4,__enum__:"ValueType",toString:r},TFunction:{_hx_index:5,__enum__:"ValueType",toString:r},TClass:(p=function(a){return{_hx_index:6,
c:a,__enum__:"ValueType",toString:r}},p.__params__=["c"],p),TEnum:(p=function(a){return{_hx_index:7,e:a,__enum__:"ValueType",toString:r}},p.__params__=["e"],p),TUnknown:{_hx_index:8,__enum__:"ValueType",toString:r}},Ea=function(){};m.Type=Ea;Ea.__name__="Type";Ea.createInstance=function(a,b){return new (Function.prototype.bind.apply(a,[null].concat(b)))};Ea.createEnum=function(a,b,d){var c=V.field(a,b);if(null==c)throw new w("No such constructor "+b);if(V.isFunction(c)){if(null==d)throw new w("Constructor "+
b+" need parameters");return c.apply(a,d)}if(null!=d&&0!=d.length)throw new w("Constructor "+b+" does not need parameters");return c};Ea.getInstanceFields=function(a){var b=[],d;for(d in a.prototype)b.push(d);L.remove(b,"__class__");L.remove(b,"__properties__");return b};Ea["typeof"]=function(a){switch(typeof a){case "boolean":return Ec.TBool;case "function":return a.__name__||a.__ename__?Ec.TObject:Ec.TFunction;case "number":return Math.ceil(a)==a%2147483648?Ec.TInt:Ec.TFloat;case "object":if(null==
a)return Ec.TNull;var b=a.__enum__;if(null!=b)return Ec.TEnum(sa[b]);a=U.getClass(a);return null!=a?Ec.TClass(a):Ec.TObject;case "string":return Ec.TClass(String);case "undefined":return Ec.TNull;default:return Ec.TUnknown}};Ea.enumEq=function(a,b){if(a==b)return!0;try{var d=a.__enum__;if(null==d||d!=b.__enum__||a._hx_index!=b._hx_index)return!1;var c=sa[d],e=c[c.__constructs__[a._hx_index]].__params__;for(d=0;d<e.length;){var f=e[d];++d;if(!Ea.enumEq(a[f],b[f]))return!1}}catch(h){return fa.lastException=
h,!1}return!0};Ea.enumParameters=function(a){var b=sa[a.__enum__];b=b[b.__constructs__[a._hx_index]].__params__;if(null!=b){for(var d=[],c=0;c<b.length;){var e=b[c];++c;d.push(a[e])}return d}return[]};var tc={};m["_UInt.UInt_Impl_"]=tc;tc.__name__="_UInt.UInt_Impl_";tc.gt=function(a,b){var d=0>a;return d!=0>b?d:a>b};tc.toFloat=function(a){return 0>a?4294967296+a:a+0};var Uk=function(){};m["binpacking.IOccupancy"]=Uk;Uk.__name__="binpacking.IOccupancy";var Ad=function(a,b,d,c,e){null==e&&(e=!1);null==
c&&(c=0);null==d&&(d=0);null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.width=d;this.height=c;this.flipped=e};m["binpacking.Rect"]=Ad;Ad.__name__="binpacking.Rect";Ad.prototype={x:null,y:null,width:null,height:null,flipped:null,__class__:Ad};var pg=function(a,b){this.binWidth=a;this.binHeight=b;this.freeRectangles=[];this.freeRectangles.push(new Ad(0,0,a,b));this.areaUsed=0};m["binpacking.SimplifiedMaxRectsPacker"]=pg;pg.__name__="binpacking.SimplifiedMaxRectsPacker";pg.__interfaces__=[Uk];pg.prototype=
{binWidth:null,binHeight:null,freeRectangles:null,areaUsed:null,insert:function(a,b){for(var d=Infinity,c,e=new Ad,f=0,h=this.freeRectangles;f<h.length;){var k=h[f];++f;k.width>=a&&k.height>=b&&(c=k.width*k.height-a*b,c<d&&(e.x=k.x,e.y=k.y,e.width=a,e.height=b,d=c))}0!=e.height?(this.areaUsed+=e.width*e.height,a=e):a=null;if(null==a)return a;b=this.freeRectangles.length;for(d=0;d<b;)this.splitFreeNode(this.freeRectangles[d],a)&&(this.freeRectangles.splice(d,1),--b,--d),++d;this.pruneFreeList();return a},
splitFreeNode:function(a,b){if(b.x>=a.x+a.width||b.x+b.width<=a.x||b.y>=a.y+a.height||b.y+b.height<=a.y)return!1;if(b.x<a.x+a.width&&b.x+b.width>a.x){if(b.y>a.y&&b.y<a.y+a.height){var d=new Ad(a.x,a.y,a.width,a.height);d.height=b.y-d.y;this.freeRectangles.push(d)}b.y+b.height<a.y+a.height&&(d=new Ad(a.x,a.y,a.width,a.height),d.y=b.y+b.height,d.height=a.y+a.height-(b.y+b.height),this.freeRectangles.push(d))}b.y<a.y+a.height&&b.y+b.height>a.y&&(b.x>a.x&&b.x<a.x+a.width&&(d=new Ad(a.x,a.y,a.width,a.height),
d.width=b.x-d.x,this.freeRectangles.push(d)),b.x+b.width<a.x+a.width&&(d=new Ad(a.x,a.y,a.width,a.height),d.x=b.x+b.width,d.width=a.x+a.width-(b.x+b.width),this.freeRectangles.push(d)));return!0},pruneFreeList:function(){for(var a=0,b,d=this.freeRectangles.length,c,e;a<d;){b=a+1;for(c=this.freeRectangles[a];b<d;){e=this.freeRectangles[b];if(c.x>=e.x&&c.y>=e.y&&c.x+c.width<=e.x+e.width&&c.y+c.height<=e.y+e.height){this.freeRectangles.splice(a,1);--a;--d;break}e.x>=c.x&&e.y>=c.y&&e.x+e.width<=c.x+c.width&&
e.y+e.height<=c.y+c.height&&(this.freeRectangles.splice(b,1),--d,--b);++b}++a}},__class__:pg};var sg=function(a){ba.call(this);this.data=new qg(a);this.backgroundColor=this.data.backgroundColor;this.frameRate=this.data.frameRate;this.width=this.data.frameSize.get_rect().width|0;this.height=this.data.frameSize.get_rect().height|0;this.symbols=this.data.symbols;a=new rg(1,1);a.addEventListener("timerComplete",u(this,this.dispatchComplete));a.start()};m["format.SWF"]=sg;sg.__name__="format.SWF";sg.__super__=
ba;sg.prototype=v(ba.prototype,{data:null,backgroundColor:null,frameRate:null,height:null,symbols:null,width:null,complete:null,dispatchComplete:function(a){this.complete=!0;this.dispatchEvent(new R("complete"))},addEventListener:function(a,b,d,c,e){null==e&&(e=!1);null==c&&(c=0);null==d&&(d=!1);ba.prototype.addEventListener.call(this,a,b,d,c,e);this.complete&&this.dispatchEvent(new R("complete"))},__class__:sg});var ka=sa["format.abc.Index"]={__ename__:"format.abc.Index",__constructs__:["Idx"],Idx:(p=
function(a){return{_hx_index:0,v:a,__enum__:"format.abc.Index",toString:r}},p.__params__=["v"],p)},cf=sa["format.abc.Namespace"]={__ename__:"format.abc.Namespace",__constructs__:"NPrivate NNamespace NPublic NInternal NProtected NExplicit NStaticProtected".split(" "),NPrivate:(p=function(a){return{_hx_index:0,ns:a,__enum__:"format.abc.Namespace",toString:r}},p.__params__=["ns"],p),NNamespace:(p=function(a){return{_hx_index:1,ns:a,__enum__:"format.abc.Namespace",toString:r}},p.__params__=["ns"],p),
NPublic:(p=function(a){return{_hx_index:2,ns:a,__enum__:"format.abc.Namespace",toString:r}},p.__params__=["ns"],p),NInternal:(p=function(a){return{_hx_index:3,ns:a,__enum__:"format.abc.Namespace",toString:r}},p.__params__=["ns"],p),NProtected:(p=function(a){return{_hx_index:4,ns:a,__enum__:"format.abc.Namespace",toString:r}},p.__params__=["ns"],p),NExplicit:(p=function(a){return{_hx_index:5,ns:a,__enum__:"format.abc.Namespace",toString:r}},p.__params__=["ns"],p),NStaticProtected:(p=function(a){return{_hx_index:6,
ns:a,__enum__:"format.abc.Namespace",toString:r}},p.__params__=["ns"],p)},Fc=sa["format.abc.Name"]={__ename__:"format.abc.Name",__constructs__:"NName NMulti NRuntime NRuntimeLate NMultiLate NAttrib NParams".split(" "),NName:(p=function(a,b){return{_hx_index:0,name:a,ns:b,__enum__:"format.abc.Name",toString:r}},p.__params__=["name","ns"],p),NMulti:(p=function(a,b){return{_hx_index:1,name:a,ns:b,__enum__:"format.abc.Name",toString:r}},p.__params__=["name","ns"],p),NRuntime:(p=function(a){return{_hx_index:2,
name:a,__enum__:"format.abc.Name",toString:r}},p.__params__=["name"],p),NRuntimeLate:{_hx_index:3,__enum__:"format.abc.Name",toString:r},NMultiLate:(p=function(a){return{_hx_index:4,nset:a,__enum__:"format.abc.Name",toString:r}},p.__params__=["nset"],p),NAttrib:(p=function(a){return{_hx_index:5,n:a,__enum__:"format.abc.Name",toString:r}},p.__params__=["n"],p),NParams:(p=function(a,b){return{_hx_index:6,n:a,params:b,__enum__:"format.abc.Name",toString:r}},p.__params__=["n","params"],p)},ve=sa["format.abc.Value"]=
{__ename__:"format.abc.Value",__constructs__:"VNull VBool VString VInt VUInt VFloat VNamespace".split(" "),VNull:{_hx_index:0,__enum__:"format.abc.Value",toString:r},VBool:(p=function(a){return{_hx_index:1,b:a,__enum__:"format.abc.Value",toString:r}},p.__params__=["b"],p),VString:(p=function(a){return{_hx_index:2,i:a,__enum__:"format.abc.Value",toString:r}},p.__params__=["i"],p),VInt:(p=function(a){return{_hx_index:3,i:a,__enum__:"format.abc.Value",toString:r}},p.__params__=["i"],p),VUInt:(p=function(a){return{_hx_index:4,
i:a,__enum__:"format.abc.Value",toString:r}},p.__params__=["i"],p),VFloat:(p=function(a){return{_hx_index:5,f:a,__enum__:"format.abc.Value",toString:r}},p.__params__=["f"],p),VNamespace:(p=function(a,b){return{_hx_index:6,kind:a,ns:b,__enum__:"format.abc.Value",toString:r}},p.__params__=["kind","ns"],p)},Vk=sa["format.abc.MethodKind"]={__ename__:"format.abc.MethodKind",__constructs__:["KNormal","KGetter","KSetter"],KNormal:{_hx_index:0,__enum__:"format.abc.MethodKind",toString:r},KGetter:{_hx_index:1,
__enum__:"format.abc.MethodKind",toString:r},KSetter:{_hx_index:2,__enum__:"format.abc.MethodKind",toString:r}},Xj=sa["format.abc.FieldKind"]={__ename__:"format.abc.FieldKind",__constructs__:["FVar","FMethod","FClass","FFunction"],FVar:(p=function(a,b,d){return{_hx_index:0,type:a,value:b,$const:d,__enum__:"format.abc.FieldKind",toString:r}},p.__params__=["type","value","$const"],p),FMethod:(p=function(a,b,d,c){return{_hx_index:1,type:a,k:b,isFinal:d,isOverride:c,__enum__:"format.abc.FieldKind",toString:r}},
p.__params__=["type","k","isFinal","isOverride"],p),FClass:(p=function(a){return{_hx_index:2,c:a,__enum__:"format.abc.FieldKind",toString:r}},p.__params__=["c"],p),FFunction:(p=function(a){return{_hx_index:3,f:a,__enum__:"format.abc.FieldKind",toString:r}},p.__params__=["f"],p)},ki=function(){};m["format.abc.ABCData"]=ki;ki.__name__="format.abc.ABCData";ki.prototype={ints:null,uints:null,floats:null,strings:null,namespaces:null,nssets:null,names:null,methodTypes:null,metadatas:null,classes:null,inits:null,
functions:null,__class__:ki};var B=sa["format.abc.OpCode"]={__ename__:"format.abc.OpCode",__constructs__:"OBreakPoint ONop OThrow OGetSuper OSetSuper ODxNs ODxNsLate ORegKill OLabel OJump OSwitch OPushWith OPopScope OForIn OHasNext ONull OUndefined OForEach OSmallInt OInt OTrue OFalse ONaN OPop ODup OSwap OString OIntRef OUIntRef OFloat OScope ONamespace ONext OFunction OCallStack OConstruct OCallMethod OCallStatic OCallSuper OCallProperty ORetVoid ORet OConstructSuper OConstructProperty OCallPropLex OCallSuperVoid OCallPropVoid OApplyType OObject OArray ONewBlock OClassDef OGetDescendants OCatch OFindPropStrict OFindProp OFindDefinition OGetLex OSetProp OReg OSetReg OGetGlobalScope OGetScope OGetProp OInitProp ODeleteProp OGetSlot OSetSlot OToString OToXml OToXmlAttr OToInt OToUInt OToNumber OToBool OToObject OCheckIsXml OCast OAsAny OAsString OAsType OAsObject OIncrReg ODecrReg OTypeof OInstanceOf OIsType OIncrIReg ODecrIReg OThis OSetThis ODebugReg ODebugLine ODebugFile OBreakPointLine OTimestamp OOp OUnknown".split(" "),
OBreakPoint:{_hx_index:0,__enum__:"format.abc.OpCode",toString:r},ONop:{_hx_index:1,__enum__:"format.abc.OpCode",toString:r},OThrow:{_hx_index:2,__enum__:"format.abc.OpCode",toString:r},OGetSuper:(p=function(a){return{_hx_index:3,v:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["v"],p),OSetSuper:(p=function(a){return{_hx_index:4,v:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["v"],p),ODxNs:(p=function(a){return{_hx_index:5,v:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=
["v"],p),ODxNsLate:{_hx_index:6,__enum__:"format.abc.OpCode",toString:r},ORegKill:(p=function(a){return{_hx_index:7,r:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["r"],p),OLabel:{_hx_index:8,__enum__:"format.abc.OpCode",toString:r},OJump:(p=function(a,b){return{_hx_index:9,j:a,delta:b,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["j","delta"],p),OSwitch:(p=function(a,b){return{_hx_index:10,def:a,deltas:b,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["def","deltas"],
p),OPushWith:{_hx_index:11,__enum__:"format.abc.OpCode",toString:r},OPopScope:{_hx_index:12,__enum__:"format.abc.OpCode",toString:r},OForIn:{_hx_index:13,__enum__:"format.abc.OpCode",toString:r},OHasNext:{_hx_index:14,__enum__:"format.abc.OpCode",toString:r},ONull:{_hx_index:15,__enum__:"format.abc.OpCode",toString:r},OUndefined:{_hx_index:16,__enum__:"format.abc.OpCode",toString:r},OForEach:{_hx_index:17,__enum__:"format.abc.OpCode",toString:r},OSmallInt:(p=function(a){return{_hx_index:18,v:a,__enum__:"format.abc.OpCode",
toString:r}},p.__params__=["v"],p),OInt:(p=function(a){return{_hx_index:19,v:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["v"],p),OTrue:{_hx_index:20,__enum__:"format.abc.OpCode",toString:r},OFalse:{_hx_index:21,__enum__:"format.abc.OpCode",toString:r},ONaN:{_hx_index:22,__enum__:"format.abc.OpCode",toString:r},OPop:{_hx_index:23,__enum__:"format.abc.OpCode",toString:r},ODup:{_hx_index:24,__enum__:"format.abc.OpCode",toString:r},OSwap:{_hx_index:25,__enum__:"format.abc.OpCode",toString:r},
OString:(p=function(a){return{_hx_index:26,v:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["v"],p),OIntRef:(p=function(a){return{_hx_index:27,v:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["v"],p),OUIntRef:(p=function(a){return{_hx_index:28,v:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["v"],p),OFloat:(p=function(a){return{_hx_index:29,v:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["v"],p),OScope:{_hx_index:30,__enum__:"format.abc.OpCode",toString:r},
ONamespace:(p=function(a){return{_hx_index:31,v:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["v"],p),ONext:(p=function(a,b){return{_hx_index:32,r1:a,r2:b,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["r1","r2"],p),OFunction:(p=function(a){return{_hx_index:33,f:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["f"],p),OCallStack:(p=function(a){return{_hx_index:34,nargs:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["nargs"],p),OConstruct:(p=function(a){return{_hx_index:35,
nargs:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["nargs"],p),OCallMethod:(p=function(a,b){return{_hx_index:36,slot:a,nargs:b,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["slot","nargs"],p),OCallStatic:(p=function(a,b){return{_hx_index:37,meth:a,nargs:b,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["meth","nargs"],p),OCallSuper:(p=function(a,b){return{_hx_index:38,name:a,nargs:b,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["name","nargs"],p),OCallProperty:(p=
function(a,b){return{_hx_index:39,name:a,nargs:b,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["name","nargs"],p),ORetVoid:{_hx_index:40,__enum__:"format.abc.OpCode",toString:r},ORet:{_hx_index:41,__enum__:"format.abc.OpCode",toString:r},OConstructSuper:(p=function(a){return{_hx_index:42,nargs:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["nargs"],p),OConstructProperty:(p=function(a,b){return{_hx_index:43,name:a,nargs:b,__enum__:"format.abc.OpCode",toString:r}},p.__params__=
["name","nargs"],p),OCallPropLex:(p=function(a,b){return{_hx_index:44,name:a,nargs:b,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["name","nargs"],p),OCallSuperVoid:(p=function(a,b){return{_hx_index:45,name:a,nargs:b,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["name","nargs"],p),OCallPropVoid:(p=function(a,b){return{_hx_index:46,name:a,nargs:b,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["name","nargs"],p),OApplyType:(p=function(a){return{_hx_index:47,nargs:a,__enum__:"format.abc.OpCode",
toString:r}},p.__params__=["nargs"],p),OObject:(p=function(a){return{_hx_index:48,nfields:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["nfields"],p),OArray:(p=function(a){return{_hx_index:49,nvalues:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["nvalues"],p),ONewBlock:{_hx_index:50,__enum__:"format.abc.OpCode",toString:r},OClassDef:(p=function(a){return{_hx_index:51,c:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["c"],p),OGetDescendants:(p=function(a){return{_hx_index:52,
c:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["c"],p),OCatch:(p=function(a){return{_hx_index:53,c:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["c"],p),OFindPropStrict:(p=function(a){return{_hx_index:54,p:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["p"],p),OFindProp:(p=function(a){return{_hx_index:55,p:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["p"],p),OFindDefinition:(p=function(a){return{_hx_index:56,d:a,__enum__:"format.abc.OpCode",toString:r}},
p.__params__=["d"],p),OGetLex:(p=function(a){return{_hx_index:57,p:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["p"],p),OSetProp:(p=function(a){return{_hx_index:58,p:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["p"],p),OReg:(p=function(a){return{_hx_index:59,r:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["r"],p),OSetReg:(p=function(a){return{_hx_index:60,r:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["r"],p),OGetGlobalScope:{_hx_index:61,__enum__:"format.abc.OpCode",
toString:r},OGetScope:(p=function(a){return{_hx_index:62,n:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["n"],p),OGetProp:(p=function(a){return{_hx_index:63,p:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["p"],p),OInitProp:(p=function(a){return{_hx_index:64,p:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["p"],p),ODeleteProp:(p=function(a){return{_hx_index:65,p:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["p"],p),OGetSlot:(p=function(a){return{_hx_index:66,
s:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["s"],p),OSetSlot:(p=function(a){return{_hx_index:67,s:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["s"],p),OToString:{_hx_index:68,__enum__:"format.abc.OpCode",toString:r},OToXml:{_hx_index:69,__enum__:"format.abc.OpCode",toString:r},OToXmlAttr:{_hx_index:70,__enum__:"format.abc.OpCode",toString:r},OToInt:{_hx_index:71,__enum__:"format.abc.OpCode",toString:r},OToUInt:{_hx_index:72,__enum__:"format.abc.OpCode",toString:r},OToNumber:{_hx_index:73,
__enum__:"format.abc.OpCode",toString:r},OToBool:{_hx_index:74,__enum__:"format.abc.OpCode",toString:r},OToObject:{_hx_index:75,__enum__:"format.abc.OpCode",toString:r},OCheckIsXml:{_hx_index:76,__enum__:"format.abc.OpCode",toString:r},OCast:(p=function(a){return{_hx_index:77,t:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["t"],p),OAsAny:{_hx_index:78,__enum__:"format.abc.OpCode",toString:r},OAsString:{_hx_index:79,__enum__:"format.abc.OpCode",toString:r},OAsType:(p=function(a){return{_hx_index:80,
t:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["t"],p),OAsObject:{_hx_index:81,__enum__:"format.abc.OpCode",toString:r},OIncrReg:(p=function(a){return{_hx_index:82,r:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["r"],p),ODecrReg:(p=function(a){return{_hx_index:83,r:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["r"],p),OTypeof:{_hx_index:84,__enum__:"format.abc.OpCode",toString:r},OInstanceOf:{_hx_index:85,__enum__:"format.abc.OpCode",toString:r},OIsType:(p=function(a){return{_hx_index:86,
t:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["t"],p),OIncrIReg:(p=function(a){return{_hx_index:87,r:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["r"],p),ODecrIReg:(p=function(a){return{_hx_index:88,r:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["r"],p),OThis:{_hx_index:89,__enum__:"format.abc.OpCode",toString:r},OSetThis:{_hx_index:90,__enum__:"format.abc.OpCode",toString:r},ODebugReg:(p=function(a,b,d){return{_hx_index:91,name:a,r:b,line:d,__enum__:"format.abc.OpCode",
toString:r}},p.__params__=["name","r","line"],p),ODebugLine:(p=function(a){return{_hx_index:92,line:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["line"],p),ODebugFile:(p=function(a){return{_hx_index:93,file:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["file"],p),OBreakPointLine:(p=function(a){return{_hx_index:94,n:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["n"],p),OTimestamp:{_hx_index:95,__enum__:"format.abc.OpCode",toString:r},OOp:(p=function(a){return{_hx_index:96,
op:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["op"],p),OUnknown:(p=function(a){return{_hx_index:97,byte:a,__enum__:"format.abc.OpCode",toString:r}},p.__params__=["byte"],p)},Nb=sa["format.abc.JumpStyle"]={__ename__:"format.abc.JumpStyle",__constructs__:"JNotLt JNotLte JNotGt JNotGte JAlways JTrue JFalse JEq JNeq JLt JLte JGt JGte JPhysEq JPhysNeq".split(" "),JNotLt:{_hx_index:0,__enum__:"format.abc.JumpStyle",toString:r},JNotLte:{_hx_index:1,__enum__:"format.abc.JumpStyle",toString:r},
JNotGt:{_hx_index:2,__enum__:"format.abc.JumpStyle",toString:r},JNotGte:{_hx_index:3,__enum__:"format.abc.JumpStyle",toString:r},JAlways:{_hx_index:4,__enum__:"format.abc.JumpStyle",toString:r},JTrue:{_hx_index:5,__enum__:"format.abc.JumpStyle",toString:r},JFalse:{_hx_index:6,__enum__:"format.abc.JumpStyle",toString:r},JEq:{_hx_index:7,__enum__:"format.abc.JumpStyle",toString:r},JNeq:{_hx_index:8,__enum__:"format.abc.JumpStyle",toString:r},JLt:{_hx_index:9,__enum__:"format.abc.JumpStyle",toString:r},
JLte:{_hx_index:10,__enum__:"format.abc.JumpStyle",toString:r},JGt:{_hx_index:11,__enum__:"format.abc.JumpStyle",toString:r},JGte:{_hx_index:12,__enum__:"format.abc.JumpStyle",toString:r},JPhysEq:{_hx_index:13,__enum__:"format.abc.JumpStyle",toString:r},JPhysNeq:{_hx_index:14,__enum__:"format.abc.JumpStyle",toString:r}},ma=sa["format.abc.Operation"]={__ename__:"format.abc.Operation",__constructs__:"OpAs OpNeg OpIncr OpDecr OpNot OpBitNot OpAdd OpSub OpMul OpDiv OpMod OpShl OpShr OpUShr OpAnd OpOr OpXor OpEq OpPhysEq OpLt OpLte OpGt OpGte OpIs OpIn OpIIncr OpIDecr OpINeg OpIAdd OpISub OpIMul OpMemGet8 OpMemGet16 OpMemGet32 OpMemGetFloat OpMemGetDouble OpMemSet8 OpMemSet16 OpMemSet32 OpMemSetFloat OpMemSetDouble OpSign1 OpSign8 OpSign16".split(" "),
OpAs:{_hx_index:0,__enum__:"format.abc.Operation",toString:r},OpNeg:{_hx_index:1,__enum__:"format.abc.Operation",toString:r},OpIncr:{_hx_index:2,__enum__:"format.abc.Operation",toString:r},OpDecr:{_hx_index:3,__enum__:"format.abc.Operation",toString:r},OpNot:{_hx_index:4,__enum__:"format.abc.Operation",toString:r},OpBitNot:{_hx_index:5,__enum__:"format.abc.Operation",toString:r},OpAdd:{_hx_index:6,__enum__:"format.abc.Operation",toString:r},OpSub:{_hx_index:7,__enum__:"format.abc.Operation",toString:r},
OpMul:{_hx_index:8,__enum__:"format.abc.Operation",toString:r},OpDiv:{_hx_index:9,__enum__:"format.abc.Operation",toString:r},OpMod:{_hx_index:10,__enum__:"format.abc.Operation",toString:r},OpShl:{_hx_index:11,__enum__:"format.abc.Operation",toString:r},OpShr:{_hx_index:12,__enum__:"format.abc.Operation",toString:r},OpUShr:{_hx_index:13,__enum__:"format.abc.Operation",toString:r},OpAnd:{_hx_index:14,__enum__:"format.abc.Operation",toString:r},OpOr:{_hx_index:15,__enum__:"format.abc.Operation",toString:r},
OpXor:{_hx_index:16,__enum__:"format.abc.Operation",toString:r},OpEq:{_hx_index:17,__enum__:"format.abc.Operation",toString:r},OpPhysEq:{_hx_index:18,__enum__:"format.abc.Operation",toString:r},OpLt:{_hx_index:19,__enum__:"format.abc.Operation",toString:r},OpLte:{_hx_index:20,__enum__:"format.abc.Operation",toString:r},OpGt:{_hx_index:21,__enum__:"format.abc.Operation",toString:r},OpGte:{_hx_index:22,__enum__:"format.abc.Operation",toString:r},OpIs:{_hx_index:23,__enum__:"format.abc.Operation",toString:r},
OpIn:{_hx_index:24,__enum__:"format.abc.Operation",toString:r},OpIIncr:{_hx_index:25,__enum__:"format.abc.Operation",toString:r},OpIDecr:{_hx_index:26,__enum__:"format.abc.Operation",toString:r},OpINeg:{_hx_index:27,__enum__:"format.abc.Operation",toString:r},OpIAdd:{_hx_index:28,__enum__:"format.abc.Operation",toString:r},OpISub:{_hx_index:29,__enum__:"format.abc.Operation",toString:r},OpIMul:{_hx_index:30,__enum__:"format.abc.Operation",toString:r},OpMemGet8:{_hx_index:31,__enum__:"format.abc.Operation",
toString:r},OpMemGet16:{_hx_index:32,__enum__:"format.abc.Operation",toString:r},OpMemGet32:{_hx_index:33,__enum__:"format.abc.Operation",toString:r},OpMemGetFloat:{_hx_index:34,__enum__:"format.abc.Operation",toString:r},OpMemGetDouble:{_hx_index:35,__enum__:"format.abc.Operation",toString:r},OpMemSet8:{_hx_index:36,__enum__:"format.abc.Operation",toString:r},OpMemSet16:{_hx_index:37,__enum__:"format.abc.Operation",toString:r},OpMemSet32:{_hx_index:38,__enum__:"format.abc.Operation",toString:r},
OpMemSetFloat:{_hx_index:39,__enum__:"format.abc.Operation",toString:r},OpMemSetDouble:{_hx_index:40,__enum__:"format.abc.Operation",toString:r},OpSign1:{_hx_index:41,__enum__:"format.abc.Operation",toString:r},OpSign8:{_hx_index:42,__enum__:"format.abc.Operation",toString:r},OpSign16:{_hx_index:43,__enum__:"format.abc.Operation",toString:r}},we=function(a){this.i=a};m["format.abc.OpReader"]=we;we.__name__="format.abc.OpReader";we.decode=function(a){for(var b=new we(a),d=[];;){try{var c=a.readByte()}catch(e){if(fa.lastException=
e,(e instanceof w?e.val:e)instanceof xe)break;else throw e;}d.push(b.readOp(c))}return d};we.prototype={i:null,readInt:function(){var a=this.i.readByte();if(128>a)return a;a&=127;var b=this.i.readByte();if(128>b)return b<<7|a;b&=127;var d=this.i.readByte();if(128>d)return d<<14|b<<7|a;d&=127;var c=this.i.readByte();if(128>c)return c<<21|d<<14|b<<7|a;c&=127;var e=this.i.readByte();if(15<e)throw new w("assert");if(0==(e&8)!=(0==(e&4)))throw new w(Gc.Overflow);return e<<28|c<<21|d<<14|b<<7|a},readInt32:function(){var a=
this.i.readByte();if(128>a)return a;a&=127;var b=this.i.readByte();if(128>b)return b<<7|a;b&=127;var d=this.i.readByte();if(128>d)return d<<14|b<<7|a;d&=127;var c=this.i.readByte();if(128>c)return c<<21|d<<14|b<<7|a;c&=127;var e=this.i.readByte();if(15<e)throw new w("assert");return e<<28|c<<21|d<<14|b<<7|a},readOp:function(a){switch(a){case 1:return B.OBreakPoint;case 2:return B.ONop;case 3:return B.OThrow;case 4:return B.OGetSuper(ka.Idx(this.readInt()));case 5:return B.OSetSuper(ka.Idx(this.readInt()));
case 6:return B.ODxNs(ka.Idx(this.readInt()));case 7:return B.ODxNsLate;case 8:return B.ORegKill(this.i.readByte());case 9:return B.OLabel;case 12:return B.OJump(Nb.JNotLt,this.i.readInt24());case 13:return B.OJump(Nb.JNotLte,this.i.readInt24());case 14:return B.OJump(Nb.JNotGt,this.i.readInt24());case 15:return B.OJump(Nb.JNotGte,this.i.readInt24());case 16:return B.OJump(Nb.JAlways,this.i.readInt24());case 17:return B.OJump(Nb.JTrue,this.i.readInt24());case 18:return B.OJump(Nb.JFalse,this.i.readInt24());
case 19:return B.OJump(Nb.JEq,this.i.readInt24());case 20:return B.OJump(Nb.JNeq,this.i.readInt24());case 21:return B.OJump(Nb.JLt,this.i.readInt24());case 22:return B.OJump(Nb.JLte,this.i.readInt24());case 23:return B.OJump(Nb.JGt,this.i.readInt24());case 24:return B.OJump(Nb.JGte,this.i.readInt24());case 25:return B.OJump(Nb.JPhysEq,this.i.readInt24());case 26:return B.OJump(Nb.JPhysNeq,this.i.readInt24());case 27:a=this.i.readInt24();for(var b=[],d=0,c=this.readInt()+1;d<c;)d++,b.push(this.i.readInt24());
return B.OSwitch(a,b);case 28:return B.OPushWith;case 29:return B.OPopScope;case 30:return B.OForIn;case 31:return B.OHasNext;case 32:return B.ONull;case 33:return B.OUndefined;case 35:return B.OForEach;case 36:return B.OSmallInt(this.i.readInt8());case 37:return B.OInt(this.readInt());case 38:return B.OTrue;case 39:return B.OFalse;case 40:return B.ONaN;case 41:return B.OPop;case 42:return B.ODup;case 43:return B.OSwap;case 44:return B.OString(ka.Idx(this.readInt()));case 45:return B.OIntRef(ka.Idx(this.readInt()));
case 46:return B.OUIntRef(ka.Idx(this.readInt()));case 47:return B.OFloat(ka.Idx(this.readInt()));case 48:return B.OScope;case 49:return B.ONamespace(ka.Idx(this.readInt()));case 50:return a=this.readInt(),b=this.readInt(),B.ONext(a,b);case 53:return B.OOp(ma.OpMemGet8);case 54:return B.OOp(ma.OpMemGet16);case 55:return B.OOp(ma.OpMemGet32);case 56:return B.OOp(ma.OpMemGetFloat);case 57:return B.OOp(ma.OpMemGetDouble);case 58:return B.OOp(ma.OpMemSet8);case 59:return B.OOp(ma.OpMemSet16);case 60:return B.OOp(ma.OpMemSet32);
case 61:return B.OOp(ma.OpMemSetFloat);case 62:return B.OOp(ma.OpMemSetDouble);case 64:return B.OFunction(ka.Idx(this.readInt()));case 65:return B.OCallStack(this.readInt());case 66:return B.OConstruct(this.readInt());case 67:return a=this.readInt(),b=this.readInt(),B.OCallMethod(a,b);case 68:return a=ka.Idx(this.readInt()),b=this.readInt(),B.OCallStatic(a,b);case 69:return a=ka.Idx(this.readInt()),b=this.readInt(),B.OCallSuper(a,b);case 70:return a=ka.Idx(this.readInt()),b=this.readInt(),B.OCallProperty(a,
b);case 71:return B.ORetVoid;case 72:return B.ORet;case 73:return B.OConstructSuper(this.readInt());case 74:return a=ka.Idx(this.readInt()),b=this.readInt(),B.OConstructProperty(a,b);case 76:return a=ka.Idx(this.readInt()),b=this.readInt(),B.OCallPropLex(a,b);case 78:return a=ka.Idx(this.readInt()),b=this.readInt(),B.OCallSuperVoid(a,b);case 79:return a=ka.Idx(this.readInt()),b=this.readInt(),B.OCallPropVoid(a,b);case 80:return B.OOp(ma.OpSign1);case 81:return B.OOp(ma.OpSign8);case 82:return B.OOp(ma.OpSign16);
case 83:return B.OApplyType(this.readInt());case 85:return B.OObject(this.readInt());case 86:return B.OArray(this.readInt());case 87:return B.ONewBlock;case 88:return B.OClassDef(ka.Idx(this.readInt()));case 89:return B.OGetDescendants(ka.Idx(this.readInt()));case 90:return B.OCatch(this.readInt());case 93:return B.OFindPropStrict(ka.Idx(this.readInt()));case 94:return B.OFindProp(ka.Idx(this.readInt()));case 95:return B.OFindDefinition(ka.Idx(this.readInt()));case 96:return B.OGetLex(ka.Idx(this.readInt()));
case 97:return B.OSetProp(ka.Idx(this.readInt()));case 98:return B.OReg(this.i.readByte());case 99:return B.OSetReg(this.i.readByte());case 100:return B.OGetGlobalScope;case 101:return B.OGetScope(this.i.readByte());case 102:return B.OGetProp(ka.Idx(this.readInt()));case 104:return B.OInitProp(ka.Idx(this.readInt()));case 106:return B.ODeleteProp(ka.Idx(this.readInt()));case 108:return B.OGetSlot(this.readInt());case 109:return B.OSetSlot(this.readInt());case 112:return B.OToString;case 113:return B.OToXml;
case 114:return B.OToXmlAttr;case 115:return B.OToInt;case 116:return B.OToUInt;case 117:return B.OToNumber;case 118:return B.OToBool;case 119:return B.OToObject;case 120:return B.OCheckIsXml;case 128:return B.OCast(ka.Idx(this.readInt()));case 130:return B.OAsAny;case 133:return B.OAsString;case 134:return B.OAsType(ka.Idx(this.readInt()));case 135:return B.OOp(ma.OpAs);case 137:return B.OAsObject;case 144:return B.OOp(ma.OpNeg);case 145:return B.OOp(ma.OpIncr);case 146:return B.OIncrReg(this.i.readByte());
case 147:return B.OOp(ma.OpDecr);case 148:return B.ODecrReg(this.i.readByte());case 149:return B.OTypeof;case 150:return B.OOp(ma.OpNot);case 151:return B.OOp(ma.OpBitNot);case 160:return B.OOp(ma.OpAdd);case 161:return B.OOp(ma.OpSub);case 162:return B.OOp(ma.OpMul);case 163:return B.OOp(ma.OpDiv);case 164:return B.OOp(ma.OpMod);case 165:return B.OOp(ma.OpShl);case 166:return B.OOp(ma.OpShr);case 167:return B.OOp(ma.OpUShr);case 168:return B.OOp(ma.OpAnd);case 169:return B.OOp(ma.OpOr);case 170:return B.OOp(ma.OpXor);
case 171:return B.OOp(ma.OpEq);case 172:return B.OOp(ma.OpPhysEq);case 173:return B.OOp(ma.OpLt);case 174:return B.OOp(ma.OpLte);case 175:return B.OOp(ma.OpGt);case 176:return B.OOp(ma.OpGte);case 177:return B.OInstanceOf;case 178:return B.OIsType(ka.Idx(this.readInt()));case 179:return B.OOp(ma.OpIs);case 180:return B.OOp(ma.OpIn);case 192:return B.OOp(ma.OpIIncr);case 193:return B.OOp(ma.OpIDecr);case 194:return B.OIncrIReg(this.i.readByte());case 195:return B.ODecrIReg(this.i.readByte());case 196:return B.OOp(ma.OpINeg);
case 197:return B.OOp(ma.OpIAdd);case 198:return B.OOp(ma.OpISub);case 199:return B.OOp(ma.OpIMul);case 208:return B.OThis;case 209:return B.OReg(1);case 210:return B.OReg(2);case 211:return B.OReg(3);case 212:return B.OSetThis;case 213:return B.OSetReg(1);case 214:return B.OSetReg(2);case 215:return B.OSetReg(3);case 239:if(1!=this.i.readByte())throw new w("assert");a=ka.Idx(this.readInt());b=this.i.readByte();d=this.readInt();return B.ODebugReg(a,b,d);case 240:return B.ODebugLine(this.readInt());
case 241:return B.ODebugFile(ka.Idx(this.readInt()));case 242:return B.OBreakPointLine(this.readInt());case 243:return B.OTimestamp;default:return B.OUnknown(a)}},__class__:we};var li=function(a){this.i=a;this.opr=new we(a)};m["format.abc.Reader"]=li;li.__name__="format.abc.Reader";li.prototype={i:null,opr:null,readIndex:function(){return ka.Idx(this.opr.readInt())},readIndexOpt:function(){var a=this.opr.readInt();return 0==a?null:ka.Idx(a)},readList:function(a){var b=[],d=this.opr.readInt();if(0==
d)return b;var c=0;for(--d;c<d;)c++,b.push(a());return b},readList2:function(a){for(var b=[],d=0,c=this.opr.readInt();d<c;)d++,b.push(a());return b},readString:function(){return this.i.readString(this.opr.readInt())},readNamespace:function(){var a=this.i.readByte(),b=ka.Idx(this.opr.readInt());switch(a){case 5:return cf.NPrivate(b);case 8:return cf.NNamespace(b);case 22:return cf.NPublic(b);case 23:return cf.NInternal(b);case 24:return cf.NProtected(b);case 25:return cf.NExplicit(b);case 26:return cf.NStaticProtected(b);
default:throw new w("assert");}},readNsSet:function(){for(var a=[],b=0,d=this.i.readByte();b<d;)b++,a.push(ka.Idx(this.opr.readInt()));return a},readName:function(a){null==a&&(a=-1);-1==a&&(a=this.i.readByte());switch(a){case 7:a=ka.Idx(this.opr.readInt());var b=ka.Idx(this.opr.readInt());return Fc.NName(b,a);case 9:return a=ka.Idx(this.opr.readInt()),b=ka.Idx(this.opr.readInt()),Fc.NMulti(a,b);case 13:return Fc.NAttrib(this.readName(7));case 14:return Fc.NAttrib(this.readName(9));case 15:return Fc.NRuntime(ka.Idx(this.opr.readInt()));
case 16:return Fc.NAttrib(this.readName(15));case 17:return Fc.NRuntimeLate;case 18:return Fc.NAttrib(this.readName(17));case 27:return Fc.NMultiLate(ka.Idx(this.opr.readInt()));case 28:return Fc.NAttrib(this.readName(27));case 29:return a=ka.Idx(this.opr.readInt()),b=this.readList2(u(this,this.readIndex)),Fc.NParams(a,b);default:throw new w("assert");}},readValue:function(a){var b=this.opr.readInt();if(0==b){if(a&&0!=this.i.readByte())throw new w("assert");return null}a=this.i.readByte();switch(a){case 1:return ve.VString(ka.Idx(b));
case 3:return ve.VInt(ka.Idx(b));case 4:return ve.VUInt(ka.Idx(b));case 6:return ve.VFloat(ka.Idx(b));case 10:if(10!=b)throw new w("assert");return ve.VBool(!1);case 11:if(11!=b)throw new w("assert");return ve.VBool(!0);case 12:if(12!=b)throw new w("assert");return ve.VNull;case 5:case 8:case 22:case 23:case 24:case 25:case 26:return ve.VNamespace(a,ka.Idx(b));default:throw new w("assert");}},readMethodType:function(){for(var a=this,b=this.i.readByte(),d=this.readIndexOpt(),c=[],e=0;e<b;)e++,c.push(this.readIndexOpt());
e=this.readIndexOpt();var f=this.i.readByte();if(0==f&&null==e)return{args:c,ret:d,extra:null};var h=null,k=null;0!=(f&8)&&(h=this.readList2(function(){return a.readValue(!0)}));if(0!=(f&128)){k=[];for(var n=0;n<b;)n++,k.push(this.readIndexOpt())}return{args:c,ret:d,extra:{native:0!=(f&32),variableArgs:0!=(f&4),argumentsDefined:0!=(f&1),usesDXNS:0!=(f&64),newBlock:0!=(f&2),unused:0!=(f&16),debugName:e,defaultParameters:h,paramNames:k}}},readMetadata:function(){for(var a=ka.Idx(this.opr.readInt()),
b=this.readList2(u(this,this.readIndexOpt)),d=[],c=0;c<b.length;){var e=b[c];++c;d.push({n:e,v:ka.Idx(this.opr.readInt())})}return{name:a,data:d}},readField:function(){var a=ka.Idx(this.opr.readInt()),b=this.i.readByte(),d=this.opr.readInt();switch(b&15){case 1:case 2:case 3:var c=ka.Idx(this.opr.readInt());var e=0!=(b&16),f=0!=(b&32);switch(b&15){case 1:var h=Vk.KNormal;break;case 2:h=Vk.KGetter;break;case 3:h=Vk.KSetter;break;default:throw new w("assert");}c=Xj.FMethod(c,h,e,f);break;case 4:c=Xj.FClass(ka.Idx(this.opr.readInt()));
break;case 5:c=Xj.FFunction(ka.Idx(this.opr.readInt()));break;case 0:case 6:c=this.readIndexOpt();e=this.readValue(!1);c=Xj.FVar(c,e,6==b);break;default:throw new w("assert");}e=null;0!=(b&64)&&(e=this.readList2(u(this,this.readIndex)));return{name:a,slot:d,kind:c,metadatas:e}},readClass:function(){var a=ka.Idx(this.opr.readInt()),b=this.readIndexOpt(),d=this.i.readByte(),c=null;0!=(d&8)&&(c=ka.Idx(this.opr.readInt()));var e=this.readList2(u(this,this.readIndex)),f=ka.Idx(this.opr.readInt()),h=this.readList2(u(this,
this.readField));return{name:a,superclass:b,interfaces:e,constructor:f,fields:h,namespace:c,isSealed:0!=(d&1),isFinal:0!=(d&2),isInterface:0!=(d&4),statics:null,staticFields:null}},readInit:function(){return{method:ka.Idx(this.opr.readInt()),fields:this.readList2(u(this,this.readField))}},readTryCatch:function(){return{start:this.opr.readInt(),end:this.opr.readInt(),handle:this.opr.readInt(),type:this.readIndexOpt(),variable:this.readIndexOpt()}},readFunction:function(){var a=ka.Idx(this.opr.readInt()),
b=this.opr.readInt(),d=this.opr.readInt(),c=this.opr.readInt(),e=this.opr.readInt(),f=this.i.read(this.opr.readInt()),h=this.readList2(u(this,this.readTryCatch)),k=this.readList2(u(this,this.readField));return{type:a,maxStack:b,nRegs:d,initScope:c,maxScope:e,code:f,trys:h,locals:k}},read:function(){var a=this;if(3014672!=this.i.readInt32())throw new w("invalid header");var b=new ki;b.ints=this.readList((p=this.opr,u(p,p.readInt32)));b.uints=this.readList((p=this.opr,u(p,p.readInt32)));b.floats=this.readList((p=
this.i,u(p,p.readDouble)));b.strings=this.readList(u(this,this.readString));b.namespaces=this.readList(u(this,this.readNamespace));b.nssets=this.readList(u(this,this.readNsSet));b.names=this.readList(function(){return a.readName()});b.methodTypes=this.readList2(u(this,this.readMethodType));b.metadatas=this.readList2(u(this,this.readMetadata));b.classes=this.readList2(u(this,this.readClass));for(var d=0,c=b.classes;d<c.length;){var e=c[d];++d;e.statics=ka.Idx(this.opr.readInt());e.staticFields=this.readList2(u(this,
this.readField))}b.inits=this.readList2(u(this,this.readInit));b.functions=this.readList2(u(this,this.readFunction));return b},__class__:li};var Yk=sa["format.png.Color"]={__ename__:"format.png.Color",__constructs__:["ColGrey","ColTrue","ColIndexed"],ColGrey:(p=function(a){return{_hx_index:0,alpha:a,__enum__:"format.png.Color",toString:r}},p.__params__=["alpha"],p),ColTrue:(p=function(a){return{_hx_index:1,alpha:a,__enum__:"format.png.Color",toString:r}},p.__params__=["alpha"],p),ColIndexed:{_hx_index:2,
__enum__:"format.png.Color",toString:r}},Ud=sa["format.png.Chunk"]={__ename__:"format.png.Chunk",__constructs__:["CEnd","CHeader","CData","CPalette","CUnknown"],CEnd:{_hx_index:0,__enum__:"format.png.Chunk",toString:r},CHeader:(p=function(a){return{_hx_index:1,h:a,__enum__:"format.png.Chunk",toString:r}},p.__params__=["h"],p),CData:(p=function(a){return{_hx_index:2,b:a,__enum__:"format.png.Chunk",toString:r}},p.__params__=["b"],p),CPalette:(p=function(a){return{_hx_index:3,b:a,__enum__:"format.png.Chunk",
toString:r}},p.__params__=["b"],p),CUnknown:(p=function(a,b){return{_hx_index:4,id:a,data:b,__enum__:"format.png.Chunk",toString:r}},p.__params__=["id","data"],p)},tg=function(a){this.o=a;a.set_bigEndian(!0)};m["format.png.Writer"]=tg;tg.__name__="format.png.Writer";tg.prototype={o:null,write:function(a){this.o.writeByte(137);this.o.writeByte(80);this.o.writeByte(78);this.o.writeByte(71);this.o.writeByte(13);this.o.writeByte(10);this.o.writeByte(26);this.o.writeByte(10);for(a=a.h;null!=a;){var b=
a.item;a=a.next;switch(b._hx_index){case 0:this.writeChunk("IEND",new H(new ArrayBuffer(0)));break;case 1:b=b.h;var d=new Sc;d.set_bigEndian(!0);d.writeInt32(b.width);d.writeInt32(b.height);d.writeByte(b.colbits);var c=b.color;switch(c._hx_index){case 0:var e=c.alpha?4:0;break;case 1:e=c.alpha?6:2;break;case 2:e=3}d.writeByte(e);d.writeByte(0);d.writeByte(0);d.writeByte(b.interlaced?1:0);this.writeChunk("IHDR",d.getBytes());break;case 2:this.writeChunk("IDAT",b.b);break;case 3:this.writeChunk("PLTE",
b.b);break;case 4:this.writeChunk(b.id,b.data)}}},writeChunk:function(a,b){this.o.writeInt32(b.length);this.o.writeString(a);this.o.write(b);var d=new Vd;d.byte(L.cca(a,0));d.byte(L.cca(a,1));d.byte(L.cca(a,2));d.byte(L.cca(a,3));d.update(b,0,b.length);this.o.writeInt32(d.get())},__class__:tg};var l={};m["format.swf._SWFData.SWFData_Impl_"]=l;l.__name__="format.swf._SWFData.SWFData_Impl_";l._new=function(){var a=new ug;a.__endian=1;return a};l.readSI16=function(a){a.resetBitsPending();return a.readShort()};
l.readSI32=function(a){a.resetBitsPending();return a.readInt()};l.readUI8=function(a){a.resetBitsPending();return a.readUnsignedByte()};l.readUI16=function(a){a.resetBitsPending();return a.readUnsignedShort()};l.readUI32=function(a){a.resetBitsPending();return a.readUnsignedInt()};l.readFIXED=function(a){a.resetBitsPending();return a.readInt()/65536};l.readFIXED8=function(a){a.resetBitsPending();return a.readShort()/256};l.readFLOAT=function(a){a.resetBitsPending();return a.readFloat()};l.readFLOAT16=
function(a){a.resetBitsPending();var b=a.readUnsignedShort();a=0!=(b&32768)?-1:1;var d=b>>10&31;b&=1023;return 0==d?0==b?0:b/1024*Math.pow(2,-14)*a:31==d?0==b?0>a?-Infinity:Infinity:NaN:a*Math.pow(2,d-15)*(1+b/1024)};l.readEncodedU32=function(a){a.resetBitsPending();var b=a.readUnsignedByte();0<(b&128)&&(b=b&127|a.readUnsignedByte()<<7,0<(b&16384)&&(b=b&16383|a.readUnsignedByte()<<14,0<(b&2097152)&&(b=b&2097151|a.readUnsignedByte()<<21,0<(b&268435456)&&(b=b&268435455|a.readUnsignedByte()<<28))));
return b};l.readUB=function(a,b){return a.readBits(b)};l.readSB=function(a,b){var d=32-b;return(a.readBits(b)<<d|0)>>d};l.readFB=function(a,b){return l.readSB(a,b)/65536};l.readSTRING=function(a){for(var b=a.position;0<a.b[b++];);a.resetBitsPending();return a.readUTFBytes(b-a.position)};l.readLANGCODE=function(a){a.resetBitsPending();return a.readUnsignedByte()};l.readRGB=function(a){a.resetBitsPending();var b=a.readUnsignedByte(),d=a.readUnsignedByte();a=a.readUnsignedByte();return-16777216|b<<16|
d<<8|a};l.readRGBA=function(a){a.resetBitsPending();var b=l.readRGB(a)&16777215;return a.readUnsignedByte()<<24|b};l.readRECT=function(a){return new vg(a)};l.readMATRIX=function(a){return new df(a)};l.readCXFORM=function(a){return new ye(a)};l.readCXFORMWITHALPHA=function(a){return new wg(a)};l.readSHAPE=function(a,b){null==b&&(b=20);return new Bd(a,1,b)};l.readSHAPEWITHSTYLE=function(a,b,d){null==d&&(d=20);null==b&&(b=1);return new xg(a,b,d)};l.readSTRAIGHTEDGERECORD=function(a,b){return new sd(a,
b)};l.readCURVEDEDGERECORD=function(a,b){return new Wd(a,b)};l.readSTYLECHANGERECORD=function(a,b,d,c,e){null==e&&(e=1);return new Xd(a,b,d,c,e)};l.readFILLSTYLE=function(a,b){null==b&&(b=1);return new ef(a,b)};l.readLINESTYLE=function(a,b){null==b&&(b=1);return new td(a,b)};l.readLINESTYLE2=function(a,b){null==b&&(b=1);return new yg(a,b)};l.readBUTTONRECORD=function(a,b){null==b&&(b=1);if(0==l.readUI8(a))return null;a.position--;return new mi(a,b)};l.readBUTTONCONDACTION=function(a){return new ni(a)};
l.readFILTER=function(a){var b=l.readUI8(a);b=Yj.create(b);b.parse(a);return b};l.readTEXTRECORD=function(a,b,d,c,e){null==e&&(e=1);if(0==l.readUI8(a))return null;a.position--;return new oi(a,b,d,c,e)};l.readGLYPHENTRY=function(a,b,d){return new pi(a,b,d)};l.readZONERECORD=function(a){return new qi(a)};l.readZONEDATA=function(a){return new ri(a)};l.readKERNINGRECORD=function(a,b){return new si(a,b)};l.readGRADIENT=function(a,b){null==b&&(b=1);return new ed(a,b)};l.readFOCALGRADIENT=function(a,b){null==
b&&(b=1);return new zg(a,b)};l.readGRADIENTRECORD=function(a,b){null==b&&(b=1);return new ff(a,b)};l.readMORPHFILLSTYLE=function(a,b){null==b&&(b=1);return new ti(a,b)};l.readMORPHLINESTYLE=function(a,b){null==b&&(b=1);return new ze(a,b)};l.readMORPHLINESTYLE2=function(a,b){null==b&&(b=1);return new Ag(a,b)};l.readMORPHGRADIENT=function(a,b){null==b&&(b=1);return new Yd(a,b)};l.readMORPHFOCALGRADIENT=function(a,b){null==b&&(b=1);return new Bg(a,b)};l.readMORPHGRADIENTRECORD=function(a){return new ui(a)};
l.readACTIONRECORD=function(a){var b=a.position,d=null,c=l.readUI8(a);0!=c&&(d=128<=c?l.readUI16(a):0,d=Zj.create(c,d,b),d.parse(a));return d};l.readSYMBOL=function(a){return new vi(a)};l.readSOUNDINFO=function(a){return new wi(a)};l.readSOUNDENVELOPE=function(a){return new xi(a)};l.readCLIPACTIONS=function(a,b){return new yi(a,b)};l.readCLIPACTIONRECORD=function(a,b){var d=a.position;if(0==(6<=b?l.readUI32(a):l.readUI16(a)))return null;a.position=d;return new zi(a,b)};l.readCLIPEVENTFLAGS=function(a,
b){return new Ai(a,b)};l.readTagHeader=function(a){var b=a.position,d=l.readUI16(a),c=d&63;63==c&&(c=l.readSI32(a));return new Bi(d>>6,c,a.position-b)};l.swfUncompress=function(a,b,d){null==d&&(d=0);var c=a.position,e=new ta(0);if(2==b)a.readBytes(e),e.position=0,e.uncompress();else if(1==b)e.writeByte(a.b[12]),e.writeByte(a.b[13]),e.writeByte(a.b[14]),e.writeByte(a.b[15]),e.writeByte(a.b[16]),e.__endian=1,e.writeUnsignedInt(d-8),e.writeUnsignedInt(0),a.position=17,a.readBytes(e,13),e.position=0,
e.uncompress(b);else throw new w(new Oa("Unknown compression method: "+ak.toString(b)));l.set_length(a,a.position=c);a.writeBytes(e);a.position=c};l.readRawTag=function(a){return new Ci(a)};l.skipBytes=function(a,b){a.position+=b};l.get_length=function(a){return a.__length};l.set_length=function(a,b){0<b&&a.__resize(b);return a.__length=b};var Ae=function(){this.dispatcher=new ba(this)};m["format.swf.events.SWFEventDispatcher"]=Ae;Ae.__name__="format.swf.events.SWFEventDispatcher";Ae.__interfaces__=
[Uj];Ae.prototype={dispatcher:null,dispatchEvent:function(a){return this.dispatcher.dispatchEvent(a)},__class__:Ae};var Pa=function(){Ae.call(this);null==Pa.scalingGrids&&(Pa.scalingGrids=new Y);this.backgroundColor=16777215;this.tags=[];this.tagsRaw=[];this.dictionary=new Y;this.scenes=[];this.frames=[];this.layers=[];this.tagFactory=new Cg;this.rootTimelineContainer=this;this.enterFrameProvider=new cb};m["format.swf.SWFTimelineContainer"]=Pa;Pa.__name__="format.swf.SWFTimelineContainer";Pa.__super__=
Ae;Pa.prototype=v(Ae.prototype,{tags:null,tagsRaw:null,dictionary:null,scenes:null,frames:null,layers:null,soundStream:null,frameLabels:null,frameIndexes:null,currentFrame:null,hasSoundStream:null,enterFrameProvider:null,eof:null,_tmpData:null,_tmpVersion:null,tagFactory:null,rootTimelineContainer:null,backgroundColor:null,jpegTablesTag:null,abcTag:null,abcData:null,pcode:null,getCharacter:function(a){a=this.rootTimelineContainer.dictionary.h[a];return 0<=a&&a<this.rootTimelineContainer.tags.length?
this.rootTimelineContainer.tags[a]:null},getScalingGrid:function(a){return Pa.scalingGrids.h.hasOwnProperty(a)?this.rootTimelineContainer.tags[Pa.scalingGrids.h[a]]:null},parseTags:function(a,b){for(this.parseTagsInit(a,b);b=this.parseTag(a),null!=b&&0!=b.type;);this.parseTagsFinalize()},parseTagsInit:function(a,b){this.tags=[];this.frames=[];this.layers=[];this.dictionary=new Y;this.currentFrame=new Dg;this.frameLabels=new Y;this.frameIndexes=new ea;this.hasSoundStream=!1;this._tmpData=a;this._tmpVersion=
b},parseTag:function(a,b){null==b&&(b=!1);var d=a.position;if(this.eof=d>=l.get_length(a))return ra.trace("WARNING: end of file encountered, no end tag.",{fileName:"../../submodules/openfl/scripts/format/swf/SWFTimelineContainer.hx",lineNumber:198,className:"format.swf.SWFTimelineContainer",methodName:"parseTag"}),null;var c=l.readRawTag(a),e=c.header,f=this.tagFactory.create(e.type);try{if(f instanceof Pa){var h=f;h.tagFactory=this.tagFactory;h.rootTimelineContainer=this}f.parse(a,e.contentLength,
this._tmpVersion,b)}catch(n){fa.lastException=n;a=n instanceof w?n.val:n;if(a instanceof Oa)throw ra.trace("WARNING: parse error: "+a.message+", Tag: "+f.name+", Index: "+this.tags.length,{fileName:"../../submodules/openfl/scripts/format/swf/SWFTimelineContainer.hx",lineNumber:220,className:"format.swf.SWFTimelineContainer",methodName:"parseTag"}),new w(a);throw n;}this.tags.push(f);this.tagsRaw.push(c);this.processTag(f);b=d+e.get_tagLength();if(a.position!=b){b=this.tags.length-1;c=a.position-(d+
e.get_tagLength());h=0>c?"underflow":"overflow";var k={pos:d,bytes:0>c?-c:c};this.rootTimelineContainer==this?ra.trace("WARNING: excess bytes: "+c+", Tag: "+f.name+", Index: "+b,{fileName:"../../submodules/openfl/scripts/format/swf/SWFTimelineContainer.hx",lineNumber:240,className:"format.swf.SWFTimelineContainer",methodName:"parseTag"}):(k.indexRoot=this.rootTimelineContainer.tags.length,ra.trace("WARNING: excess bytes: "+c+", Tag: "+f.name+", Index: "+b+", IndexRoot: "+S.string(k.indexRoot),{fileName:"../../submodules/openfl/scripts/format/swf/SWFTimelineContainer.hx",
lineNumber:246,className:"format.swf.SWFTimelineContainer",methodName:"parseTag"}));b=new Eg(h,b,k,!1,!0);this.dispatchEvent(b)||(f=null);a.position=d+e.get_tagLength()}return f},parseTagsFinalize:function(){null!=this.soundStream&&0==ya.get_length(this.soundStream.data)&&(this.soundStream=null);Pa.AUTOBUILD_LAYERS&&this.buildLayers()},processTag:function(a){var b=this.tags.length-1;if(U.__instanceof(a,Ha))this.processDefinitionTag(a,b);else if(U.__instanceof(a,ud))this.processDisplayListTag(a,b);
else switch(U.__cast(a.type,Di)){case 8:this.processJPEGTablesTag(a,b);break;case 9:this.processBackgroundColorTag(a,b);break;case 18:case 19:case 45:Pa.EXTRACT_SOUND_STREAM&&this.processSoundStreamTag(a,b);break;case 78:this.processScalingGridTag(a,b);break;case 82:this.processAS3Tag(a,b);break;case 43:case 86:this.processFrameLabelTag(a,b)}},processDefinitionTag:function(a,b){0<a.characterId&&(this.dictionary.h[a.characterId]=b,this.currentFrame.characters.push(a.characterId))},processDisplayListTag:function(a,
b){switch(U.__cast(a.type,Di)){case 1:this.currentFrame.tagIndexEnd=b;null==this.currentFrame.label&&this.frameLabels.h.hasOwnProperty(this.currentFrame.frameNumber)&&(this.currentFrame.label=this.frameLabels.h[this.currentFrame.frameNumber]);this.frames.push(this.currentFrame);this.currentFrame=this.currentFrame.clone();this.currentFrame.frameNumber=this.frames.length;this.currentFrame.tagIndexStart=b+1;break;case 4:case 26:case 70:this.currentFrame.placeObject(b,a);break;case 5:case 28:this.currentFrame.removeObject(a)}},
processFrameLabelTag:function(a,b){switch(U.__cast(a.type,Di)){case 43:this.currentFrame.label=a.frameName;a=this.frameLabels.h[this.currentFrame.frameNumber]=a.frameName;b=this.currentFrame.frameNumber+1;var d=this.frameIndexes;null!=t[a]?d.setReserved(a,b):d.h[a]=b;break;case 86:b=0;for(d=a.frameLabels.length;b<d;){var c=b++,e=a.frameLabels[c];c=this.frameLabels.h[e.frameNumber]=e.name;e=e.frameNumber+1;var f=this.frameIndexes;null!=t[c]?f.setReserved(c,e):f.h[c]=e}b=0;for(d=a.scenes.length;b<d;)c=
b++,c=a.scenes[c],this.scenes.push(new Ei(c.offset,c.name))}},processSoundStreamTag:function(a,b){switch(U.__cast(a.type,Di)){case 18:case 45:this.soundStream=new Fi;this.soundStream.compression=a.streamSoundCompression;this.soundStream.rate=a.streamSoundRate;this.soundStream.size=a.streamSoundSize;this.soundStream.type=a.streamSoundType;this.soundStream.numFrames=0;this.soundStream.numSamples=0;break;case 19:if(null!=this.soundStream){this.hasSoundStream||(this.hasSoundStream=!0,this.soundStream.startFrame=
this.currentFrame.frameNumber);a=a.soundData;a.__endian=1;a.position=0;switch(this.soundStream.compression){case 2:b=a.readUnsignedShort(),a.readShort(),0<b&&(this.soundStream.numSamples+=b,this.soundStream.data.writeBytes(a,4))}this.soundStream.numFrames++}}},processBackgroundColorTag:function(a,b){this.backgroundColor=a.color},processJPEGTablesTag:function(a,b){this.jpegTablesTag=a},processScalingGridTag:function(a,b){Pa.scalingGrids.h[a.characterId]=b},processAS3Tag:function(a,b){this.abcTag=a;
a=new Be(ya.toBytes(a.bytes));this.abcData=(new li(a)).read();this.pcode=[];a=0;for(b=this.abcData.functions;a<b.length;){var d=b[a];++a;this.pcode.push(we.decode(new Be(d.code)))}},buildLayers:function(){for(var a,b={},d=[],c=0,e=this.frames.length;c<e;){a=c++;for(var f=this.frames[a],h=f.objects.keys();h.hasNext();){var k=h.next();a=k|0;for(var n=!1;0<d.length;){d[0]==a&&(n=!0);break}n?b[k].push(f.frameNumber):(b[k]=[f.frameNumber],d.push(a))}}d.sort(u(this,this.sortNumeric));c=0;for(e=d.length;c<
e;){f=c++;a=new Gi(d[f],this.frames.length);f=b[d[f]];var C=f.length;if(0<C){h=0;k=l.MAX_FLOAT_VALUE|0;n=l.MAX_FLOAT_VALUE|0;for(var m=0;m<C;){var g=m++;g=f[g];var q=this.frames[g].objects.h[a.depth];q.isKeyframe?(a.appendStrip(h,k,n),k=g,h=this.getCharacter(q.characterId)instanceof uc?4:2):2==h&&0<q.lastModifiedAtIndex&&(h=3);n=g}a.appendStrip(h,k,n)}this.layers.push(a)}b=0;for(c=this.frames.length;b<c;)for(e=b++,e=this.frames[e].objects,a=e.keys();a.hasNext();)for(f=a.next(),h=0,k=d.length;h<k;)n=
h++,f==d[n]&&(e.h[f].layer=n)},sortNumeric:function(a,b){return a-b},__class__:Pa});var qg=function(a){Pa.call(this);this.bytes=l._new();null!=a?this.loadBytes(a):(this.version=10,this.fileLengthCompressed=this.fileLength=0,this.frameSize=new vg,this.frameRate=50,this.frameCount=1,this.compressed=!0,this.compressionMethod=2);this.symbols=new ea;a=0;for(var b=this.tags;a<b.length;){var d=b[a];++a;if(d instanceof vd){var c=0;for(d=U.__cast(d,vd).symbols;c<d.length;){var e=d[c];++c;var f=e.name;e=e.tagId;
var h=this.symbols;null!=t[f]?h.setReserved(f,e):h.h[f]=e}}}};m["format.swf.SWFRoot"]=qg;qg.__name__="format.swf.SWFRoot";qg.__super__=Pa;qg.prototype=v(Pa.prototype,{signature:null,version:null,fileLength:null,fileLengthCompressed:null,frameSize:null,frameRate:null,frameCount:null,compressed:null,compressionMethod:null,symbols:null,bytes:null,loadBytes:function(a){this.bytes=l._new();a.position=0;a.readBytes(ya.fromBytes(this.bytes));this.parse(this.bytes)},parse:function(a){this.bytes=a;this.parseHeader();
this.parseTags(a,this.version)},parseHeader:function(){this.signature="";this.compressed=!1;this.compressionMethod=2;this.bytes.position=0;var a=l.readUI8(this.bytes);if(67==a)this.compressed=!0;else if(90==a)this.compressed=!0,this.compressionMethod=1;else if(70!=a)throw new w(new Oa("Not a SWF. First signature byte is 0x"+Q.hex(a)+" (expected: 0x43 or 0x5A or 0x46)"));this.signature+=String.fromCodePoint(a);a=l.readUI8(this.bytes);if(87!=a)throw new w(new Oa("Not a SWF. Second signature byte is 0x"+
Q.hex(a)+" (expected: 0x57)"));this.signature+=String.fromCodePoint(a);a=l.readUI8(this.bytes);if(83!=a)throw new w(new Oa("Not a SWF. Third signature byte is 0x"+Q.hex(a)+" (expected: 0x53)"));this.signature+=String.fromCodePoint(a);this.version=l.readUI8(this.bytes);this.fileLength=l.readUI32(this.bytes);this.fileLengthCompressed=l.get_length(this.bytes);this.compressed&&l.swfUncompress(this.bytes,this.compressionMethod,this.fileLength);this.frameSize=l.readRECT(this.bytes);this.frameRate=l.readFIXED8(this.bytes);
this.frameCount=l.readUI16(this.bytes)},__class__:qg});var ni=function(a){this.actions=tb.toObjectVector(null);null!=a&&this.parse(a)};m["format.swf.data.SWFButtonCondAction"]=ni;ni.__name__="format.swf.data.SWFButtonCondAction";ni.prototype={condIdleToOverDown:null,condOutDownToIdle:null,condOutDownToOverDown:null,condOverDownToOutDown:null,condOverDownToOverUp:null,condOverUpToOverDown:null,condOverUpToIdle:null,condIdleToOverUp:null,condOverDownToIdle:null,condKeyPress:null,actions:null,parse:function(a){var b=
l.readUI8(a)<<8|l.readUI8(a);this.condIdleToOverDown=0!=(b&32768);this.condOutDownToIdle=0!=(b&16384);this.condOutDownToOverDown=0!=(b&8192);this.condOverDownToOutDown=0!=(b&4096);this.condOverDownToOverUp=0!=(b&2048);this.condOverUpToOverDown=0!=(b&1024);this.condOverUpToIdle=0!=(b&512);this.condIdleToOverUp=0!=(b&256);this.condOverDownToIdle=0!=(b&1);for(this.condKeyPress=(b&255)>>1;;){b=l.readACTIONRECORD(a);if(null==b)break;this.actions.push(b)}Hc.resolveOffsets(this.actions)},__class__:ni};var mi=
function(a,b){null==b&&(b=1);this.filterList=[];null!=a&&this.parse(a,b)};m["format.swf.data.SWFButtonRecord"]=mi;mi.__name__="format.swf.data.SWFButtonRecord";mi.prototype={hasBlendMode:null,hasFilterList:null,stateHitTest:null,stateDown:null,stateOver:null,stateUp:null,characterId:null,placeDepth:null,placeMatrix:null,colorTransform:null,blendMode:null,filterList:null,parse:function(a,b){null==b&&(b=1);var d=l.readUI8(a);this.stateHitTest=0!=(d&8);this.stateDown=0!=(d&4);this.stateOver=0!=(d&2);
this.stateUp=0!=(d&1);this.characterId=l.readUI16(a);this.placeDepth=l.readUI16(a);this.placeMatrix=l.readMATRIX(a);if(2<=b){this.colorTransform=l.readCXFORMWITHALPHA(a);if(this.hasFilterList=0!=(d&16)){b=0;for(var c=l.readUI8(a);b<c;)b++,this.filterList.push(l.readFILTER(a))}if(this.hasBlendMode=0!=(d&32))this.blendMode=l.readUI8(a)}},__class__:mi};var zi=function(a,b){null==b&&(b=0);this.actions=tb.toObjectVector(null);null!=a&&this.parse(a,b)};m["format.swf.data.SWFClipActionRecord"]=zi;zi.__name__=
"format.swf.data.SWFClipActionRecord";zi.prototype={eventFlags:null,keyCode:null,actions:null,parse:function(a,b){this.eventFlags=l.readCLIPEVENTFLAGS(a,b);l.readUI32(a);this.eventFlags.keyPressEvent&&(this.keyCode=l.readUI8(a));for(;;){b=l.readACTIONRECORD(a);if(null==b)break;this.actions.push(b)}Hc.resolveOffsets(this.actions)},__class__:zi};var yi=function(a,b){null==b&&(b=0);this.records=[];null!=a&&this.parse(a,b)};m["format.swf.data.SWFClipActions"]=yi;yi.__name__="format.swf.data.SWFClipActions";
yi.prototype={eventFlags:null,records:null,parse:function(a,b){l.readUI16(a);this.eventFlags=l.readCLIPEVENTFLAGS(a,b);for(var d;;){d=l.readCLIPACTIONRECORD(a,b);if(null==d)break;this.records.push(d)}},__class__:yi};var Ai=function(a,b){null==b&&(b=0);null!=a&&this.parse(a,b)};m["format.swf.data.SWFClipEventFlags"]=Ai;Ai.__name__="format.swf.data.SWFClipEventFlags";Ai.prototype={keyUpEvent:null,keyDownEvent:null,mouseUpEvent:null,mouseDownEvent:null,mouseMoveEvent:null,unloadEvent:null,enterFrameEvent:null,
loadEvent:null,dragOverEvent:null,rollOutEvent:null,rollOverEvent:null,releaseOutsideEvent:null,releaseEvent:null,pressEvent:null,initializeEvent:null,dataEvent:null,constructEvent:null,keyPressEvent:null,dragOutEvent:null,parse:function(a,b){var d=l.readUI8(a);this.keyUpEvent=0!=(d&128);this.keyDownEvent=0!=(d&64);this.mouseUpEvent=0!=(d&32);this.mouseDownEvent=0!=(d&16);this.mouseMoveEvent=0!=(d&8);this.unloadEvent=0!=(d&4);this.enterFrameEvent=0!=(d&2);this.loadEvent=0!=(d&1);d=l.readUI8(a);this.dragOverEvent=
0!=(d&128);this.rollOutEvent=0!=(d&64);this.rollOverEvent=0!=(d&32);this.releaseOutsideEvent=0!=(d&16);this.releaseEvent=0!=(d&8);this.pressEvent=0!=(d&4);this.initializeEvent=0!=(d&2);this.dataEvent=0!=(d&1);6<=b&&(b=l.readUI8(a),this.constructEvent=0!=(b&4),this.keyPressEvent=0!=(b&2),this.dragOutEvent=0!=(b&1),l.readUI8(a))},__class__:Ai};var ye=function(a){this.aAdd=0;this.aMult=255;this.rAdd=this.gAdd=this.bAdd=0;this.rMult=this.gMult=this.bMult=255;null!=a&&this.parse(a)};m["format.swf.data.SWFColorTransform"]=
ye;ye.__name__="format.swf.data.SWFColorTransform";ye.prototype={rMult:null,gMult:null,bMult:null,rAdd:null,gAdd:null,bAdd:null,aMult:null,aAdd:null,hasMultTerms:null,hasAddTerms:null,get_colorTransform:function(){return new Ca(this.rMult/255,this.gMult/255,this.bMult/255,this.aMult/255,this.rAdd,this.gAdd,this.bAdd,this.aAdd)},parse:function(a){a.resetBitsPending();this.hasAddTerms=1==l.readUB(a,1);this.hasMultTerms=1==l.readUB(a,1);var b=l.readUB(a,4);this.bMult=this.gMult=this.rMult=255;this.hasMultTerms&&
(this.rMult=l.readSB(a,b),this.gMult=l.readSB(a,b),this.bMult=l.readSB(a,b));this.bAdd=this.gAdd=this.rAdd=0;this.hasAddTerms&&(this.rAdd=l.readSB(a,b),this.gAdd=l.readSB(a,b),this.bAdd=l.readSB(a,b))},__class__:ye};var wg=function(a){ye.call(this,a)};m["format.swf.data.SWFColorTransformWithAlpha"]=wg;wg.__name__="format.swf.data.SWFColorTransformWithAlpha";wg.__super__=ye;wg.prototype=v(ye.prototype,{parse:function(a){a.resetBitsPending();this.hasAddTerms=1==l.readUB(a,1);this.hasMultTerms=1==l.readUB(a,
1);var b=l.readUB(a,4);this.aMult=this.bMult=this.gMult=this.rMult=255;this.hasMultTerms&&(this.rMult=l.readSB(a,b),this.gMult=l.readSB(a,b),this.bMult=l.readSB(a,b),this.aMult=l.readSB(a,b));this.aAdd=this.bAdd=this.gAdd=this.rAdd=0;this.hasAddTerms&&(this.rAdd=l.readSB(a,b),this.gAdd=l.readSB(a,b),this.bAdd=l.readSB(a,b),this.aAdd=l.readSB(a,b))},__class__:wg});var ef=function(a,b){null==b&&(b=1);null!=a&&this.parse(a,b)};m["format.swf.data.SWFFillStyle"]=ef;ef.__name__="format.swf.data.SWFFillStyle";
ef.prototype={type:null,rgb:null,gradient:null,gradientMatrix:null,bitmapId:null,bitmapMatrix:null,_level:null,parse:function(a,b){null==b&&(b=1);this._level=b;this.type=l.readUI8(a);switch(this.type){case 0:this.rgb=2>=b?l.readRGB(a):l.readRGBA(a);break;case 16:case 18:case 19:this.gradientMatrix=l.readMATRIX(a);this.gradient=19==this.type?l.readFOCALGRADIENT(a,b):l.readGRADIENT(a,b);break;case 64:case 65:case 66:case 67:this.bitmapId=l.readUI16(a);this.bitmapMatrix=l.readMATRIX(a);break;default:throw new w(new Oa("Unknown fill style type: 0x"+
Q.hex(this.type)));}},clone:function(){var a=new ef;a.type=this.type;a.rgb=this.rgb;a.gradient=this.gradient.clone();a.gradientMatrix=this.gradientMatrix.clone();a.bitmapId=this.bitmapId;a.bitmapMatrix=this.bitmapMatrix.clone();return a},toString:function(){var a="[SWFFillStyle] Type: "+Ob.printf("%02x",[this.type]);switch(this.type){case 0:a+=" (solid), Color: "+(2>=this._level?da.rgbToString(this.rgb):da.rgbaToString(this.rgb));break;case 16:a+=" (linear gradient), Gradient: "+S.string(this.gradient)+
", Matrix: "+S.string(this.gradientMatrix);break;case 18:a+=" (radial gradient), Gradient: "+S.string(this.gradient)+", Matrix: "+S.string(this.gradientMatrix);break;case 19:a+=" (focal radial gradient), Gradient: "+S.string(this.gradient)+", Matrix: "+S.string(this.gradientMatrix)+", FocalPoint: "+this.gradient.focalPoint;break;case 64:a+=" (repeating bitmap), BitmapID: "+this.bitmapId;break;case 65:a+=" (clipped bitmap), BitmapID: "+this.bitmapId;break;case 66:a+=" (non-smoothed repeating bitmap), BitmapID: "+
this.bitmapId;break;case 67:a+=" (non-smoothed clipped bitmap), BitmapID: "+this.bitmapId}return a},__class__:ef};var ed=function(a,b){null==b&&(b=1);this.focalPoint=0;this.records=[];null!=a&&this.parse(a,b)};m["format.swf.data.SWFGradient"]=ed;ed.__name__="format.swf.data.SWFGradient";ed.prototype={spreadMode:null,interpolationMode:null,focalPoint:null,records:null,parse:function(a,b){a.resetBitsPending();this.spreadMode=l.readUB(a,2);this.interpolationMode=l.readUB(a,2);for(var d=0,c=l.readUB(a,
4);d<c;)d++,this.records.push(l.readGRADIENTRECORD(a,b))},clone:function(){var a=new ed;a.spreadMode=this.spreadMode;a.interpolationMode=this.interpolationMode;a.focalPoint=this.focalPoint;for(var b=0,d=this.records.length;b<d;){var c=b++;a.records.push(this.records[c].clone())}return a},toString:function(){return"("+this.records.join(",")+"), SpreadMode: "+this.spreadMode+", InterpolationMode: "+this.interpolationMode},__class__:ed};var zg=function(a,b){null==b&&(b=1);ed.call(this,a,b)};m["format.swf.data.SWFFocalGradient"]=
zg;zg.__name__="format.swf.data.SWFFocalGradient";zg.__super__=ed;zg.prototype=v(ed.prototype,{parse:function(a,b){ed.prototype.parse.call(this,a,b);this.focalPoint=l.readFIXED8(a)},toString:function(){return"("+this.records.join(",")+")"},__class__:zg});var Hi=function(a,b){this.frameNumber=a;this.name=b};m["format.swf.data.SWFFrameLabel"]=Hi;Hi.__name__="format.swf.data.SWFFrameLabel";Hi.prototype={frameNumber:null,name:null,__class__:Hi};var pi=function(a,b,d){null==d&&(d=0);null==b&&(b=0);null!=
a&&this.parse(a,b,d)};m["format.swf.data.SWFGlyphEntry"]=pi;pi.__name__="format.swf.data.SWFGlyphEntry";pi.prototype={index:null,advance:null,parse:function(a,b,d){this.index=l.readUB(a,b);this.advance=l.readSB(a,d)},__class__:pi};var ff=function(a,b){null==b&&(b=1);null!=a&&this.parse(a,b)};m["format.swf.data.SWFGradientRecord"]=ff;ff.__name__="format.swf.data.SWFGradientRecord";ff.prototype={ratio:null,color:null,_level:null,parse:function(a,b){this._level=b;this.ratio=l.readUI8(a);this.color=2>=
b?l.readRGB(a):l.readRGBA(a)},clone:function(){var a=new ff;a.ratio=this.ratio;a.color=this.color;return a},toString:function(){return"["+this.ratio+","+(2>=this._level?da.rgbToString(this.color):da.rgbaToString(this.color))+"]"},__class__:ff};var si=function(a,b){null==b&&(b=!1);null!=a&&this.parse(a,b)};m["format.swf.data.SWFKerningRecord"]=si;si.__name__="format.swf.data.SWFKerningRecord";si.prototype={code1:null,code2:null,adjustment:null,parse:function(a,b){this.code1=b?l.readUI16(a):l.readUI8(a);
this.code2=b?l.readUI16(a):l.readUI8(a);this.adjustment=l.readSI16(a)},__class__:si};var td=function(a,b){null==b&&(b=1);this.jointStyle=this.endCapsStyle=this.startCapsStyle=0;this.noClose=this.pixelHintingFlag=this.noVScaleFlag=this.noHScaleFlag=this.hasFillFlag=!1;this.miterLimitFactor=3;this.color=0;null!=a&&this.parse(a,b)};m["format.swf.data.SWFLineStyle"]=td;td.__name__="format.swf.data.SWFLineStyle";td.prototype={width:null,color:null,_level:null,startCapsStyle:null,endCapsStyle:null,jointStyle:null,
hasFillFlag:null,noHScaleFlag:null,noVScaleFlag:null,pixelHintingFlag:null,noClose:null,miterLimitFactor:null,fillType:null,parse:function(a,b){null==b&&(b=1);this._level=b;this.width=l.readUI16(a);this.color=2>=b?l.readRGB(a):l.readRGBA(a)},clone:function(){var a=new td;a.width=this.width;a.color=this.color;a.startCapsStyle=this.startCapsStyle;a.endCapsStyle=this.endCapsStyle;a.jointStyle=this.jointStyle;a.hasFillFlag=this.hasFillFlag;a.noHScaleFlag=this.noHScaleFlag;a.noVScaleFlag=this.noVScaleFlag;
a.pixelHintingFlag=this.pixelHintingFlag;a.noClose=this.noClose;a.miterLimitFactor=this.miterLimitFactor;a.fillType=this.fillType.clone();return a},__class__:td};var yg=function(a,b){null==b&&(b=1);td.call(this,a,b)};m["format.swf.data.SWFLineStyle2"]=yg;yg.__name__="format.swf.data.SWFLineStyle2";yg.__super__=td;yg.prototype=v(td.prototype,{parse:function(a,b){null==b&&(b=1);this.width=l.readUI16(a);this.startCapsStyle=l.readUB(a,2);this.jointStyle=l.readUB(a,2);this.hasFillFlag=1==l.readUB(a,1);
this.noHScaleFlag=1==l.readUB(a,1);this.noVScaleFlag=1==l.readUB(a,1);this.pixelHintingFlag=1==l.readUB(a,1);l.readUB(a,5);this.noClose=1==l.readUB(a,1);this.endCapsStyle=l.readUB(a,2);2==this.jointStyle&&(this.miterLimitFactor=l.readFIXED8(a));this.hasFillFlag?this.fillType=l.readFILLSTYLE(a,b):this.color=l.readRGBA(a)},__class__:yg});var df=function(a){this.rotateSkew0=this.rotateSkew1=this.translateX=this.translateY=0;this.scaleX=this.scaleY=1;null!=a&&this.parse(a)};m["format.swf.data.SWFMatrix"]=
df;df.__name__="format.swf.data.SWFMatrix";df.prototype={scaleX:null,scaleY:null,rotateSkew0:null,rotateSkew1:null,translateX:null,translateY:null,xscale:null,yscale:null,rotation:null,get_matrix:function(){return new P(this.scaleX,this.rotateSkew0,this.rotateSkew1,this.scaleY,this.translateX,this.translateY)},parse:function(a){a.resetBitsPending();this.scaleY=this.scaleX=1;if(1==l.readUB(a,1)){var b=l.readUB(a,5);this.scaleX=l.readFB(a,b);this.scaleY=l.readFB(a,b)}this.rotateSkew1=this.rotateSkew0=
0;1==l.readUB(a,1)&&(b=l.readUB(a,5),this.rotateSkew0=l.readFB(a,b),this.rotateSkew1=l.readFB(a,b));b=l.readUB(a,5);this.translateX=l.readSB(a,b);this.translateY=l.readSB(a,b);a=this.get_matrix().deltaTransformPoint(new qa(0,1));this.rotation=180/Math.PI*Math.atan2(a.y,a.x)-90;0>this.rotation&&(this.rotation=360+this.rotation);this.xscale=Math.sqrt(this.scaleX*this.scaleX+this.rotateSkew0*this.rotateSkew0)*(0>this.scaleX?-1:1);this.yscale=Math.sqrt(this.rotateSkew1*this.rotateSkew1+this.scaleY*this.scaleY)*
(0>this.scaleY?-1:1)},clone:function(){var a=new df;a.scaleX=this.scaleX;a.scaleY=this.scaleY;a.rotateSkew0=this.rotateSkew0;a.rotateSkew1=this.rotateSkew1;a.translateX=this.translateX;a.translateY=this.translateY;return a},toString:function(){return"("+this.scaleX+","+this.rotateSkew0+","+this.rotateSkew1+","+this.scaleY+","+this.translateX+","+this.translateY+")"},__class__:df};var ti=function(a,b){null==b&&(b=1);null!=a&&this.parse(a,b)};m["format.swf.data.SWFMorphFillStyle"]=ti;ti.__name__="format.swf.data.SWFMorphFillStyle";
ti.prototype={type:null,startColor:null,endColor:null,startGradientMatrix:null,endGradientMatrix:null,gradient:null,bitmapId:null,startBitmapMatrix:null,endBitmapMatrix:null,parse:function(a,b){null==b&&(b=1);this.type=l.readUI8(a);switch(this.type){case 0:this.startColor=l.readRGBA(a);this.endColor=l.readRGBA(a);break;case 16:case 18:case 19:this.startGradientMatrix=l.readMATRIX(a);this.endGradientMatrix=l.readMATRIX(a);this.gradient=19==this.type?l.readMORPHFOCALGRADIENT(a,b):l.readMORPHGRADIENT(a,
b);break;case 64:case 65:case 66:case 67:this.bitmapId=l.readUI16(a);this.startBitmapMatrix=l.readMATRIX(a);this.endBitmapMatrix=l.readMATRIX(a);break;default:throw new w(new Oa("Unknown fill style type: 0x"+Q.hex(this.type)));}},getMorphedFillStyle:function(a){null==a&&(a=0);var b=new ef;b.type=this.type;switch(this.type){case 0:b.rgb=da.interpolate(this.startColor,this.endColor,a);break;case 16:case 18:b.gradientMatrix=Ii.interpolate(this.startGradientMatrix,this.endGradientMatrix,a);b.gradient=
this.gradient.getMorphedGradient(a);break;case 64:case 65:case 66:case 67:b.bitmapId=this.bitmapId,b.bitmapMatrix=Ii.interpolate(this.startBitmapMatrix,this.endBitmapMatrix,a)}return b},toString:function(){var a="[SWFMorphFillStyle] Type: "+Q.hex(this.type);switch(this.type){case 0:a+=" (solid), StartColor: "+da.rgbaToString(this.startColor)+", EndColor: "+da.rgbaToString(this.endColor);break;case 16:a+=" (linear gradient), Gradient: "+S.string(this.gradient);break;case 18:a+=" (radial gradient), Gradient: "+
S.string(this.gradient);break;case 19:a+=" (focal radial gradient), Gradient: "+S.string(this.gradient);break;case 64:a+=" (repeating bitmap), BitmapID: "+this.bitmapId;break;case 65:a+=" (clipped bitmap), BitmapID: "+this.bitmapId;break;case 66:a+=" (non-smoothed repeating bitmap), BitmapID: "+this.bitmapId;break;case 67:a+=" (non-smoothed clipped bitmap), BitmapID: "+this.bitmapId}return a},__class__:ti};var Yd=function(a,b){null==b&&(b=1);this.records=[];null!=a&&this.parse(a,b)};m["format.swf.data.SWFMorphGradient"]=
Yd;Yd.__name__="format.swf.data.SWFMorphGradient";Yd.prototype={spreadMode:null,interpolationMode:null,startFocalPoint:null,endFocalPoint:null,records:null,parse:function(a,b){a.resetBitsPending();this.spreadMode=l.readUB(a,2);this.interpolationMode=l.readUB(a,2);b=0;for(var d=l.readUB(a,4);b<d;)b++,this.records.push(l.readMORPHGRADIENTRECORD(a))},getMorphedGradient:function(a){null==a&&(a=0);for(var b=new ed,d=0,c=this.records.length;d<c;){var e=d++;b.records.push(this.records[e].getMorphedGradientRecord(a))}return b},
toString:function(){return"("+this.records.join(",")+"), spread:"+this.spreadMode+", interpolation:"+this.interpolationMode},__class__:Yd};var Bg=function(a,b){null==b&&(b=1);Yd.call(this,a,b)};m["format.swf.data.SWFMorphFocalGradient"]=Bg;Bg.__name__="format.swf.data.SWFMorphFocalGradient";Bg.__super__=Yd;Bg.prototype=v(Yd.prototype,{parse:function(a,b){Yd.prototype.parse.call(this,a,b);this.startFocalPoint=l.readFIXED8(a);this.endFocalPoint=l.readFIXED8(a)},getMorphedGradient:function(a){null==
a&&(a=0);for(var b=new ed,d=0,c=this.records.length;d<c;){var e=d++;b.records.push(this.records[e].getMorphedGradientRecord(a))}return b},toString:function(){return"FocalPoint: "+this.startFocalPoint+","+this.endFocalPoint+" ("+this.records.join(",")+")"},__class__:Bg});var ui=function(a){null!=a&&this.parse(a)};m["format.swf.data.SWFMorphGradientRecord"]=ui;ui.__name__="format.swf.data.SWFMorphGradientRecord";ui.prototype={startRatio:null,startColor:null,endRatio:null,endColor:null,parse:function(a){this.startRatio=
l.readUI8(a);this.startColor=l.readRGBA(a);this.endRatio=l.readUI8(a);this.endColor=l.readRGBA(a)},getMorphedGradientRecord:function(a){null==a&&(a=0);var b=new ff;b.color=da.interpolate(this.startColor,this.endColor,a);b.ratio=this.startRatio+(this.endRatio-this.startRatio)*a|0;return b},toString:function(){return"["+this.startRatio+","+da.rgbaToString(this.startColor)+","+this.endRatio+","+da.rgbaToString(this.endColor)+"]"},__class__:ui};var ze=function(a,b){null==b&&(b=1);this.jointStyle=this.endCapsStyle=
this.startCapsStyle=0;this.miterLimitFactor=3;null!=a&&this.parse(a,b)};m["format.swf.data.SWFMorphLineStyle"]=ze;ze.__name__="format.swf.data.SWFMorphLineStyle";ze.prototype={startWidth:null,endWidth:null,startColor:null,endColor:null,startCapsStyle:null,endCapsStyle:null,jointStyle:null,hasFillFlag:null,noHScaleFlag:null,noVScaleFlag:null,pixelHintingFlag:null,noClose:null,miterLimitFactor:null,fillType:null,parse:function(a,b){this.startWidth=l.readUI16(a);this.endWidth=l.readUI16(a);this.startColor=
l.readRGBA(a);this.endColor=l.readRGBA(a)},getMorphedLineStyle:function(a){null==a&&(a=0);var b=new td;this.hasFillFlag?b.fillType=this.fillType.getMorphedFillStyle(a):(b.color=da.interpolate(this.startColor,this.endColor,a),b.width=this.startWidth+(this.endWidth-this.startWidth)*a|0);b.startCapsStyle=this.startCapsStyle;b.endCapsStyle=this.endCapsStyle;b.jointStyle=this.jointStyle;b.hasFillFlag=this.hasFillFlag;b.noHScaleFlag=this.noHScaleFlag;b.noVScaleFlag=this.noVScaleFlag;b.pixelHintingFlag=
this.pixelHintingFlag;b.noClose=this.noClose;b.miterLimitFactor=this.miterLimitFactor;return b},__class__:ze};var Ag=function(a,b){null==b&&(b=1);ze.call(this,a,b)};m["format.swf.data.SWFMorphLineStyle2"]=Ag;Ag.__name__="format.swf.data.SWFMorphLineStyle2";Ag.__super__=ze;Ag.prototype=v(ze.prototype,{parse:function(a,b){null==b&&(b=1);this.startWidth=l.readUI16(a);this.endWidth=l.readUI16(a);this.startCapsStyle=l.readUB(a,2);this.jointStyle=l.readUB(a,2);this.hasFillFlag=1==l.readUB(a,1);this.noHScaleFlag=
1==l.readUB(a,1);this.noVScaleFlag=1==l.readUB(a,1);this.pixelHintingFlag=1==l.readUB(a,1);l.readUB(a,5);this.noClose=1==l.readUB(a,1);this.endCapsStyle=l.readUB(a,2);2==this.jointStyle&&(this.miterLimitFactor=l.readFIXED8(a));this.hasFillFlag?this.fillType=l.readMORPHFILLSTYLE(a,b):(this.startColor=l.readRGBA(a),this.endColor=l.readRGBA(a))},__class__:Ag});var Ci=function(a){null!=a&&this.parse(a)};m["format.swf.data.SWFRawTag"]=Ci;Ci.__name__="format.swf.data.SWFRawTag";Ci.prototype={header:null,
bytes:null,parse:function(a){var b=a.position;this.header=l.readTagHeader(a);this.bytes=l._new();var d=a.position;a.position=b;a.readBytes(ya.fromBytes(this.bytes),0,this.header.get_tagLength());a.position=d},__class__:Ci};var Bi=function(a,b,d){this.type=a;this.contentLength=b;this.headerLength=d};m["format.swf.data.SWFRecordHeader"]=Bi;Bi.__name__="format.swf.data.SWFRecordHeader";Bi.prototype={type:null,contentLength:null,headerLength:null,get_tagLength:function(){return this.headerLength+this.contentLength},
__class__:Bi};var vg=function(a){this.xmax=11E3;this.ymax=8E3;this._rectangle=new M;null!=a&&this.parse(a)};m["format.swf.data.SWFRectangle"]=vg;vg.__name__="format.swf.data.SWFRectangle";vg.prototype={xmin:null,xmax:null,ymin:null,ymax:null,_rectangle:null,parse:function(a){a.resetBitsPending();var b=l.readUB(a,5);this.xmin=l.readSB(a,b);this.xmax=l.readSB(a,b);this.ymin=l.readSB(a,b);this.ymax=l.readSB(a,b)},get_rect:function(){this._rectangle.set_left(Bb.roundPixels20(this.xmin/20));this._rectangle.set_right(Bb.roundPixels20(this.xmax/
20));this._rectangle.set_top(Bb.roundPixels20(this.ymin/20));this._rectangle.set_bottom(Bb.roundPixels20(this.ymax/20));return this._rectangle},__class__:vg};var Ji=function(a,b){this.offset=a;this.name=b};m["format.swf.data.SWFScene"]=Ji;Ji.__name__="format.swf.data.SWFScene";Ji.prototype={offset:null,name:null,__class__:Ji};var Bd=function(a,b,d){null==d&&(d=20);null==b&&(b=1);this.edgeMapsCreated=!1;this.records=[];this.fillStyles=[];this.lineStyles=[];this.referencePoint=new qa(0,0);this.unitDivisor=
d;null!=a&&this.parse(a,b)};m["format.swf.data.SWFShape"]=Bd;Bd.__name__="format.swf.data.SWFShape";Bd.prototype={records:null,fillStyles:null,lineStyles:null,referencePoint:null,fillEdgeMaps:null,lineEdgeMaps:null,currentFillEdgeMap:null,currentLineEdgeMap:null,numGroups:null,coordMap:null,unitDivisor:null,edgeMapsCreated:null,parse:function(a,b){null==b&&(b=1);a.resetBitsPending();var d=l.readUB(a,4),c=l.readUB(a,4);this.readShapeRecords(a,d,c,b);this.determineReferencePoint()},readShapeRecords:function(a,
b,d,c){null==c&&(c=1);for(var e=null;!(e instanceof Ce);){if(1==l.readUB(a,1)){e=1==l.readUB(a,1);var f=l.readUB(a,4)+2;e=e?l.readSTRAIGHTEDGERECORD(a,f):l.readCURVEDEDGERECORD(a,f)}else e=l.readUB(a,5),0==e?e=new Ce:(e=l.readSTYLECHANGERECORD(a,e,b,d,c),e.stateNewStyles&&(b=e.numFillBits,d=e.numLineBits));this.records.push(e)}},determineReferencePoint:function(){if(this.records[0]instanceof Xd){var a=this.records[0];null!=a&&a.stateMoveTo&&(this.referencePoint.x=Bb.roundPixels400(a.moveDeltaX/this.unitDivisor),
this.referencePoint.y=Bb.roundPixels400(a.moveDeltaY/this.unitDivisor))}},"export":function(a){this.edgeMapsCreated=!1;this.createEdgeMaps();null==a&&(a=new De(null));a.beginShape();for(var b=0,d=this.numGroups;b<d;){var c=b++;this.exportFillPath(a,c);this.exportLinePath(a,c)}a.endShape()},createEdgeMaps:function(){if(!this.edgeMapsCreated){var a=0,b=0,d=0,c=0,e=0,f=0,h=0,k=[];this.numGroups=0;this.fillEdgeMaps=[];this.lineEdgeMaps=[];this.currentFillEdgeMap=new Y;this.currentLineEdgeMap=new Y;for(var n=
0,C=this.records.length;n<C;){var l=n++;l=this.records[l];switch(l.get_type()){case 1:this.processSubPath(k,h,e,f);this.cleanEdgeMap(this.currentFillEdgeMap);this.cleanEdgeMap(this.currentLineEdgeMap);this.fillEdgeMaps.push(this.currentFillEdgeMap);this.lineEdgeMaps.push(this.currentLineEdgeMap);this.numGroups++;break;case 2:l=U.__cast(l,Xd);if(l.stateLineStyle||l.stateFillStyle0||l.stateFillStyle1)this.processSubPath(k,h,e,f),k=[];l.stateNewStyles&&(d=this.fillStyles.length,c=this.lineStyles.length,
this.appendFillStyles(this.fillStyles,l.fillStyles),this.appendLineStyles(this.lineStyles,l.lineStyles));l.stateLineStyle&&0==l.lineStyle&&l.stateFillStyle0&&0==l.fillStyle0&&l.stateFillStyle1&&0==l.fillStyle1?(this.cleanEdgeMap(this.currentFillEdgeMap),this.cleanEdgeMap(this.currentLineEdgeMap),this.fillEdgeMaps.push(this.currentFillEdgeMap),this.lineEdgeMaps.push(this.currentLineEdgeMap),this.currentFillEdgeMap=new Y,this.currentLineEdgeMap=new Y,f=e=h=0,this.numGroups++):(l.stateLineStyle&&(h=
l.lineStyle,0<h&&(h+=c)),l.stateFillStyle0&&(e=l.fillStyle0,0<e&&(e+=d)),l.stateFillStyle1&&(f=l.fillStyle1,0<f&&(f+=d)));l.stateMoveTo&&(a=l.moveDeltaX/this.unitDivisor,b=l.moveDeltaY/this.unitDivisor);break;case 3:var g=U.__cast(l,sd);l=new qa(Bb.roundPixels400(a),Bb.roundPixels400(b));g.generalLineFlag?(a+=g.deltaX/this.unitDivisor,b+=g.deltaY/this.unitDivisor):g.vertLineFlag?b+=g.deltaY/this.unitDivisor:a+=g.deltaX/this.unitDivisor;g=new qa(Bb.roundPixels400(a),Bb.roundPixels400(b));k.push(new fd(l,
g,h,f));break;case 4:g=U.__cast(l,Wd);l=new qa(Bb.roundPixels400(a),Bb.roundPixels400(b));var m=a+g.controlDeltaX/this.unitDivisor;var T=b+g.controlDeltaY/this.unitDivisor;a=m+g.anchorDeltaX/this.unitDivisor;b=T+g.anchorDeltaY/this.unitDivisor;m=new qa(m,T);g=new qa(Bb.roundPixels400(a),Bb.roundPixels400(b));k.push(new Cd(l,m,g,h,f))}}this.edgeMapsCreated=!0}},processSubPath:function(a,b,d,c){if(0!=d){var e=this.currentFillEdgeMap.h[d];null==e&&(this.currentFillEdgeMap.h[d]=[],e=this.currentFillEdgeMap.h[d]);
for(var f=a.length-1;0<=f;)e.push(a[f].reverseWithNewFillStyle(d)),--f}0!=c&&(e=this.currentFillEdgeMap.h[c],null==e&&(this.currentFillEdgeMap.h[c]=[],e=this.currentFillEdgeMap.h[c]),this.appendEdges(e,a));0!=b&&(e=this.currentLineEdgeMap.h[b],null==e&&(this.currentLineEdgeMap.h[b]=[],e=this.currentLineEdgeMap.h[b]),this.appendEdges(e,a))},exportFillPath:function(a,b){b=this.createPathFromEdgeMap(this.fillEdgeMaps[b]);var d=new qa(l.MAX_FLOAT_VALUE,l.MAX_FLOAT_VALUE),c=l.MAX_FLOAT_VALUE|0;if(0<b.length){a.beginFills();
for(var e=0,f=b.length;e<f;){var h=e++;h=b[h];if(c!=h.fillStyleIdx){c!=l.MAX_FLOAT_VALUE&&a.endFill();c=h.fillStyleIdx;d=new qa(l.MAX_FLOAT_VALUE,l.MAX_FLOAT_VALUE);try{var k=this.fillStyles[c-1];if(null!=k)switch(k.type){case 0:a.beginFill(da.rgb(k.rgb),da.alpha(k.rgb));break;case 16:case 18:case 19:var n=[],C=[],m=[];var g=k.gradientMatrix.get_matrix().clone();g.tx/=20;g.ty/=20;for(var q=0,T=k.gradient.records.length;q<T;){var A=q++;var p=k.gradient.records[A];n.push(da.rgb(p.color));C.push(da.alpha(p.color));
m.push(p.ratio)}a.beginGradientFill(16==k.type?0:1,n,C,m,g,Ki.toEnum(k.gradient.spreadMode),Li.toEnum(k.gradient.interpolationMode),k.gradient.focalPoint);break;case 64:case 65:case 66:case 67:var r=k.bitmapMatrix;g=new P(r.scaleX/20,r.rotateSkew0/20,r.rotateSkew1/20,r.scaleY/20,r.translateX/20,r.translateY/20);a.beginBitmapFill(k.bitmapId,g,64==k.type||66==k.type,64==k.type||65==k.type)}else a.beginFill(16777215)}catch(Ed){if(fa.lastException=Ed,(Ed instanceof w?Ed.val:Ed)instanceof Oa)a.beginFill(0);
else throw Ed;}}d.equals(h.from)||a.moveTo(h.from.x,h.from.y);h instanceof Cd?(d=h,a.curveTo(d.control.x,d.control.y,d.to.x,d.to.y)):a.lineTo(h.to.x,h.to.y);d=h.to}c!=l.MAX_FLOAT_VALUE&&a.endFill();a.endFills()}},exportLinePath:function(a,b){b=this.createPathFromEdgeMap(this.lineEdgeMaps[b]);var d=new qa(l.MAX_FLOAT_VALUE,l.MAX_FLOAT_VALUE),c=l.MAX_FLOAT_VALUE|0;if(0<b.length){a.beginLines();for(var e=0,f=b.length;e<f;){var h=e++;h=b[h];if(c!=h.lineStyleIdx){c=h.lineStyleIdx;d=new qa(l.MAX_FLOAT_VALUE,
l.MAX_FLOAT_VALUE);try{var k=this.lineStyles[c-1]}catch(J){if(fa.lastException=J,(J instanceof w?J.val:J)instanceof Oa)k=null;else throw J;}if(null!=k){var n=2;k.noHScaleFlag&&k.noVScaleFlag?n=1:k.noHScaleFlag?n=0:k.noVScaleFlag&&(n=3);a.lineStyle(k.width/20,da.rgb(k.color),da.alpha(k.color),k.pixelHintingFlag,n,Mi.toEnum(k.startCapsStyle),Mi.toEnum(k.endCapsStyle),bk.toEnum(k.jointStyle),k.miterLimitFactor);if(k.hasFillFlag)switch(n=k.fillType,n.type){case 16:case 18:case 19:var C=[],m=[],g=[],q=
n.gradientMatrix.get_matrix().clone();q.tx/=20;q.ty/=20;for(var T=0,A=n.gradient.records.length;T<A;){var p=T++;p=n.gradient.records[p];C.push(da.rgb(p.color));m.push(da.alpha(p.color));g.push(p.ratio)}a.lineGradientStyle(16==n.type?0:1,C,m,g,q,Ki.toEnum(n.gradient.spreadMode),Li.toEnum(n.gradient.interpolationMode),n.gradient.focalPoint)}}else a.lineStyle(0)}h.from.equals(d)||a.moveTo(h.from.x,h.from.y);h instanceof Cd?(d=h,a.curveTo(d.control.x,d.control.y,d.to.x,d.to.y)):a.lineTo(h.to.x,h.to.y);
d=h.to}a.endLines()}},createPathFromEdgeMap:function(a){for(var b=[],d=[],c=a.keys();c.hasNext();){var e=c.next();d.push(e|0)}d.sort(function(a,b){return a-b});c=0;for(e=d.length;c<e;){var f=c++;this.appendEdges(b,a.h[d[f]])}return b},cleanEdgeMap:function(a){for(var b=a.keys();b.hasNext();){var d=b.next(),c=a.h[d];if(null!=c&&0<c.length){var e,f=null,h=[];for(this.createCoordMap(c);0<c.length;)for(e=0;e<c.length;)if(null==f||f.to.equals(c[e].from))f=c.splice(e,1)[0],h.push(f),this.removeEdgeFromCoordMap(f);
else{var k=this.findNextEdgeInCoordMap(f);if(null!=k)for(var n=0,C=c.length;n<C;){var l=n++;c[l]==k&&(e=l)}else e=0,f=null}a.h[d]=h}}},createCoordMap:function(a){this.coordMap=new ea;for(var b=0,d=a.length;b<d;){var c=b++,e=a[c].from;e=e.x+"_"+e.y;var f=this.coordMap;f=null!=t[e]?f.getReserved(e):f.h[e];null==f?(f=this.coordMap,c=[a[c]],null!=t[e]?f.setReserved(e,c):f.h[e]=c):f.push(a[c])}},removeEdgeFromCoordMap:function(a){a=a.from.x+"_"+a.from.y;var b=this.coordMap;null!=(null!=t[a]?b.getReserved(a):
b.h[a])&&this.coordMap.remove(a)},findNextEdgeInCoordMap:function(a){a=a.to.x+"_"+a.to.y;var b=this.coordMap;a=null!=t[a]?b.getReserved(a):b.h[a];return null!=a&&0<a.length?a[0]:null},appendFillStyles:function(a,b){for(var d=0,c=b.length;d<c;){var e=d++;a.push(b[e])}},appendLineStyles:function(a,b){for(var d=0,c=b.length;d<c;){var e=d++;a.push(b[e])}},appendEdges:function(a,b){for(var d=0,c=b.length;d<c;){var e=d++;a.push(b[e])}},__class__:Bd};var Xb=function(a,b){null==b&&(b=1);null!=a&&this.parse(a,
b)};m["format.swf.data.SWFShapeRecord"]=Xb;Xb.__name__="format.swf.data.SWFShapeRecord";Xb.prototype={get_type:function(){return 0},parse:function(a,b){},clone:function(){return null},__class__:Xb};var Wd=function(a,b,d){null==d&&(d=1);null==b&&(b=0);this.numBits=b;Xb.call(this,a,d)};m["format.swf.data.SWFShapeRecordCurvedEdge"]=Wd;Wd.__name__="format.swf.data.SWFShapeRecordCurvedEdge";Wd.__super__=Xb;Wd.prototype=v(Xb.prototype,{controlDeltaX:null,controlDeltaY:null,anchorDeltaX:null,anchorDeltaY:null,
numBits:null,parse:function(a,b){this.controlDeltaX=l.readSB(a,this.numBits);this.controlDeltaY=l.readSB(a,this.numBits);this.anchorDeltaX=l.readSB(a,this.numBits);this.anchorDeltaY=l.readSB(a,this.numBits)},clone:function(){var a=new Wd;a.anchorDeltaX=this.anchorDeltaX;a.anchorDeltaY=this.anchorDeltaY;a.controlDeltaX=this.controlDeltaX;a.controlDeltaY=this.controlDeltaY;a.numBits=this.numBits;return a},get_type:function(){return 4},__class__:Wd});var Ce=function(){Xb.call(this)};m["format.swf.data.SWFShapeRecordEnd"]=
Ce;Ce.__name__="format.swf.data.SWFShapeRecordEnd";Ce.__super__=Xb;Ce.prototype=v(Xb.prototype,{clone:function(){return new Ce},get_type:function(){return 1},__class__:Ce});var sd=function(a,b,d){null==d&&(d=1);null==b&&(b=0);this.numBits=b;Xb.call(this,a,d)};m["format.swf.data.SWFShapeRecordStraightEdge"]=sd;sd.__name__="format.swf.data.SWFShapeRecordStraightEdge";sd.__super__=Xb;sd.prototype=v(Xb.prototype,{generalLineFlag:null,vertLineFlag:null,deltaY:null,deltaX:null,numBits:null,parse:function(a,
b){this.generalLineFlag=1==l.readUB(a,1);this.vertLineFlag=!this.generalLineFlag&&1==l.readUB(a,1);this.deltaX=this.generalLineFlag||!this.vertLineFlag?l.readSB(a,this.numBits):0;this.deltaY=this.generalLineFlag||this.vertLineFlag?l.readSB(a,this.numBits):0},clone:function(){var a=new sd;a.deltaX=this.deltaX;a.deltaY=this.deltaY;a.generalLineFlag=this.generalLineFlag;a.vertLineFlag=this.vertLineFlag;a.numBits=this.numBits;return a},get_type:function(){return 3},__class__:sd});var Xd=function(a,b,
d,c,e){null==e&&(e=1);null==c&&(c=0);null==d&&(d=0);null==b&&(b=0);this.fillStyles=[];this.lineStyles=[];this.stateNewStyles=0!=(b&16);this.stateLineStyle=0!=(b&8);this.stateFillStyle1=0!=(b&4);this.stateFillStyle0=0!=(b&2);this.stateMoveTo=0!=(b&1);this.numFillBits=d;this.numLineBits=c;Xb.call(this,a,e)};m["format.swf.data.SWFShapeRecordStyleChange"]=Xd;Xd.__name__="format.swf.data.SWFShapeRecordStyleChange";Xd.__super__=Xb;Xd.prototype=v(Xb.prototype,{stateNewStyles:null,stateLineStyle:null,stateFillStyle1:null,
stateFillStyle0:null,stateMoveTo:null,moveDeltaX:null,moveDeltaY:null,fillStyle0:null,fillStyle1:null,lineStyle:null,numFillBits:null,numLineBits:null,fillStyles:null,lineStyles:null,get_type:function(){return 2},parse:function(a,b){null==b&&(b=1);if(this.stateMoveTo){var d=l.readUB(a,5);this.moveDeltaX=l.readSB(a,d);this.moveDeltaY=l.readSB(a,d)}this.fillStyle0=this.stateFillStyle0?l.readUB(a,this.numFillBits):0;this.fillStyle1=this.stateFillStyle1?l.readUB(a,this.numFillBits):0;this.lineStyle=this.stateLineStyle?
l.readUB(a,this.numLineBits):0;if(this.stateNewStyles){a.resetBitsPending();d=0;for(var c=this.readStyleArrayLength(a,b);d<c;)d++,this.fillStyles.push(l.readFILLSTYLE(a,b));d=0;for(c=this.readStyleArrayLength(a,b);d<c;)d++,this.lineStyles.push(3>=b?l.readLINESTYLE(a,b):l.readLINESTYLE2(a,b));a.resetBitsPending();this.numFillBits=l.readUB(a,4);this.numLineBits=l.readUB(a,4)}},readStyleArrayLength:function(a,b){null==b&&(b=1);var d=l.readUI8(a);2<=b&&255==d&&(d=l.readUI16(a));return d},clone:function(){var a=
new Xd;a.stateNewStyles=this.stateNewStyles;a.stateLineStyle=this.stateLineStyle;a.stateFillStyle1=this.stateFillStyle1;a.stateFillStyle0=this.stateFillStyle0;a.stateMoveTo=this.stateMoveTo;a.moveDeltaX=this.moveDeltaX;a.moveDeltaY=this.moveDeltaY;a.fillStyle0=this.fillStyle0;a.fillStyle1=this.fillStyle1;a.lineStyle=this.lineStyle;a.numFillBits=this.numFillBits;a.numLineBits=this.numLineBits;for(var b=0,d=this.fillStyles.length;b<d;){var c=b++;a.fillStyles.push(this.fillStyles[c].clone())}b=0;for(d=
this.lineStyles.length;b<d;)c=b++,a.lineStyles.push(this.lineStyles[c].clone());return a},__class__:Xd});var xg=function(a,b,d){null==d&&(d=20);null==b&&(b=1);this.initialFillStyles=[];this.initialLineStyles=[];Bd.call(this,a,b,d)};m["format.swf.data.SWFShapeWithStyle"]=xg;xg.__name__="format.swf.data.SWFShapeWithStyle";xg.__super__=Bd;xg.prototype=v(Bd.prototype,{initialFillStyles:null,initialLineStyles:null,parse:function(a,b){null==b&&(b=1);a.resetBitsPending();for(var d=0,c=this.readStyleArrayLength(a,
b);d<c;)d++,this.initialFillStyles.push(l.readFILLSTYLE(a,b));d=0;for(c=this.readStyleArrayLength(a,b);d<c;)d++,this.initialLineStyles.push(3>=b?l.readLINESTYLE(a,b):l.readLINESTYLE2(a,b));a.resetBitsPending();d=l.readUB(a,4);c=l.readUB(a,4);this.readShapeRecords(a,d,c,b)},"export":function(a){this.fillStyles=this.initialFillStyles.slice();this.lineStyles=this.initialLineStyles.slice();Bd.prototype["export"].call(this,a)},readStyleArrayLength:function(a,b){null==b&&(b=1);var d=l.readUI8(a);2<=b&&
255==d&&(d=l.readUI16(a));return d},__class__:xg});var xi=function(a){null!=a&&this.parse(a)};m["format.swf.data.SWFSoundEnvelope"]=xi;xi.__name__="format.swf.data.SWFSoundEnvelope";xi.prototype={pos44:null,leftLevel:null,rightLevel:null,parse:function(a){this.pos44=l.readUI32(a);this.leftLevel=l.readUI16(a);this.rightLevel=l.readUI16(a)},__class__:xi};var wi=function(a){this.envelopeRecords=[];null!=a&&this.parse(a)};m["format.swf.data.SWFSoundInfo"]=wi;wi.__name__="format.swf.data.SWFSoundInfo";
wi.prototype={syncStop:null,syncNoMultiple:null,hasEnvelope:null,hasLoops:null,hasOutPoint:null,hasInPoint:null,outPoint:null,inPoint:null,loopCount:null,envelopeRecords:null,parse:function(a){var b=l.readUI8(a);this.syncStop=0!=(b&32);this.syncNoMultiple=0!=(b&16);this.hasEnvelope=0!=(b&8);this.hasLoops=0!=(b&4);this.hasOutPoint=0!=(b&2);if(this.hasInPoint=0!=(b&1))this.inPoint=l.readUI32(a);this.hasOutPoint&&(this.outPoint=l.readUI32(a));this.hasLoops&&(this.loopCount=l.readUI16(a));if(this.hasEnvelope){b=
0;for(var d=l.readUI8(a);b<d;)b++,this.envelopeRecords.push(l.readSOUNDENVELOPE(a))}},__class__:wi};var vi=function(a){null!=a&&this.parse(a)};m["format.swf.data.SWFSymbol"]=vi;vi.__name__="format.swf.data.SWFSymbol";vi.prototype={tagId:null,name:null,parse:function(a){this.tagId=l.readUI16(a);this.name=l.readSTRING(a)},__class__:vi};var oi=function(a,b,d,c,e){null==e&&(e=1);null==d&&(d=0);null==b&&(b=0);this.glyphEntries=[];null!=a&&this.parse(a,b,d,c,e)};m["format.swf.data.SWFTextRecord"]=oi;oi.__name__=
"format.swf.data.SWFTextRecord";oi.prototype={type:null,hasFont:null,hasColor:null,hasXOffset:null,hasYOffset:null,fontId:null,textColor:null,textHeight:null,xOffset:null,yOffset:null,glyphEntries:null,_level:null,parse:function(a,b,d,c,e){null==e&&(e=1);this._level=e;var f=l.readUI8(a);this.type=f>>7;this.hasFont=0!=(f&8);this.hasColor=0!=(f&4);this.hasYOffset=0!=(f&2);this.hasXOffset=0!=(f&1);this.hasFont?this.fontId=l.readUI16(a):null!=c&&(this.fontId=c.fontId);this.hasColor?this.textColor=2>e?
l.readRGB(a):l.readRGBA(a):null!=c&&(this.textColor=c.textColor);this.hasXOffset?this.xOffset=l.readSI16(a):null!=c&&(this.xOffset=c.xOffset);this.hasYOffset?this.yOffset=l.readSI16(a):null!=c&&(this.yOffset=c.yOffset);this.hasFont?this.textHeight=l.readUI16(a):null!=c&&(this.textHeight=c.textHeight);c=0;for(e=l.readUI8(a);c<e;)c++,this.glyphEntries.push(l.readGLYPHENTRY(a,b,d))},__class__:oi};var ri=function(a){null!=a&&this.parse(a)};m["format.swf.data.SWFZoneData"]=ri;ri.__name__="format.swf.data.SWFZoneData";
ri.prototype={alignmentCoordinate:null,range:null,parse:function(a){this.alignmentCoordinate=l.readFLOAT16(a);this.range=l.readFLOAT16(a)},__class__:ri};var qi=function(a){this.zoneData=[];null!=a&&this.parse(a)};m["format.swf.data.SWFZoneRecord"]=qi;qi.__name__="format.swf.data.SWFZoneRecord";qi.prototype={maskX:null,maskY:null,zoneData:null,parse:function(a){for(var b=0,d=l.readUI8(a);b<d;)b++,this.zoneData.push(l.readZONEDATA(a));a=l.readUI8(a);this.maskX=0!=(a&1);this.maskY=0!=(a&2)},__class__:qi};
var Ee=function(){};m["format.swf.data.actions.IAction"]=Ee;Ee.__name__="format.swf.data.actions.IAction";Ee.prototype={get_lengthWithHeader:null,pos:null,parse:null,__class__:Ee};var Hc=function(a,b,d){this.code=a;this.length=b;this.pos=d};m["format.swf.data.actions.Action"]=Hc;Hc.__name__="format.swf.data.actions.Action";Hc.__interfaces__=[Ee];Hc.resolveOffsets=function(a){for(var b,d=a.get_length(),c=0;c<d;){var e=c++;b=a.get(e);if(U.__instanceof(b,Fg)){var f=0,h=!1,k=b,n=k.pos+k.get_lengthWithHeader()+
k.branchOffset;if(n<=k.pos)for(f=e;0<=f;){if(n==a.get(f).pos){h=!0;break}--f}else{for(;f<d;){if(n==a.get(f).pos){h=!0;break}++f}h||(b=a.get(f-1),n==b.pos+b.get_lengthWithHeader()&&(f=-1,h=!0))}k.branchIndex=h?f:-2}}};Hc.prototype={code:null,length:null,pos:null,get_lengthWithHeader:function(){return this.length+(128<=this.code?3:1)},parse:function(a){},__class__:Hc};var gf=function(a,b,d){Hc.call(this,a,b,d)};m["format.swf.data.actions.ActionUnknown"]=gf;gf.__name__="format.swf.data.actions.ActionUnknown";
gf.__interfaces__=[Ee];gf.__super__=Hc;gf.prototype=v(Hc.prototype,{parse:function(a){0<this.length&&l.skipBytes(a,this.length)},__class__:gf});var Fg=function(){};m["format.swf.data.actions.IActionBranch"]=Fg;Fg.__name__="format.swf.data.actions.IActionBranch";Fg.__interfaces__=[Ee];Fg.prototype={branchOffset:null,branchIndex:null,__class__:Fg};var hf=function(a,b,d){Hc.call(this,a,b,d)};m["format.swf.data.actions.swf3.ActionStop"]=hf;hf.__name__="format.swf.data.actions.swf3.ActionStop";hf.__interfaces__=
[Ee];hf.__super__=Hc;hf.prototype=v(Hc.prototype,{__class__:hf});var ck=function(){};m["format.swf.data.consts.BlendMode"]=ck;ck.__name__="format.swf.data.consts.BlendMode";ck.toString=function(a){switch(a){case 0:case 1:return"normal";case 2:return"layer";case 3:return"multiply";case 4:return"screen";case 5:return"lighten";case 6:return"darken";case 7:return"difference";case 8:return"add";case 9:return"subtract";case 10:return"invert";case 11:return"alpha";case 12:return"erase";case 13:return"overlay";
case 14:return"hardlight";default:return"unknown"}};var Li=function(){};m["format.swf.data.consts.GradientInterpolationMode"]=Li;Li.__name__="format.swf.data.consts.GradientInterpolationMode";Li.toEnum=function(a){switch(a){case 0:return 1;case 1:return 0;default:return 1}};var Ki=function(){};m["format.swf.data.consts.GradientSpreadMode"]=Ki;Ki.__name__="format.swf.data.consts.GradientSpreadMode";Ki.toEnum=function(a){switch(a){case 0:return 0;case 1:return 1;case 2:return 2;default:return 0}};var Mi=
function(){};m["format.swf.data.consts.LineCapsStyle"]=Mi;Mi.__name__="format.swf.data.consts.LineCapsStyle";Mi.toEnum=function(a){return 1};var bk=function(){};m["format.swf.data.consts.LineJointStyle"]=bk;bk.__name__="format.swf.data.consts.LineJointStyle";bk.toEnum=function(a){switch(a){case 0:return 2;case 1:return 0;case 2:return 1;default:return 2}};var Gg=function(){};m["format.swf.data.etc.IEdge"]=Gg;Gg.__name__="format.swf.data.etc.IEdge";Gg.prototype={from:null,to:null,lineStyleIdx:null,
fillStyleIdx:null,reverseWithNewFillStyle:null,__class__:Gg};var fd=function(a,b,d,c){null==c&&(c=0);null==d&&(d=0);this.from=a;this.to=b;this.lineStyleIdx=d;this.fillStyleIdx=c};m["format.swf.data.etc.StraightEdge"]=fd;fd.__name__="format.swf.data.etc.StraightEdge";fd.__interfaces__=[Gg];fd.prototype={from:null,to:null,lineStyleIdx:null,fillStyleIdx:null,reverseWithNewFillStyle:function(a){return new fd(this.to,this.from,this.lineStyleIdx,a)},__class__:fd};var Cd=function(a,b,d,c,e){null==e&&(e=
0);null==c&&(c=0);fd.call(this,a,d,c,e);this.control=b};m["format.swf.data.etc.CurvedEdge"]=Cd;Cd.__name__="format.swf.data.etc.CurvedEdge";Cd.__interfaces__=[Gg];Cd.__super__=fd;Cd.prototype=v(fd.prototype,{control:null,reverseWithNewFillStyle:function(a){return new Cd(this.to,this.control,this.from,this.lineStyleIdx,a)},__class__:Cd});var hc=function(){};m["format.swf.data.filters.IFilter"]=hc;hc.__name__="format.swf.data.filters.IFilter";hc.prototype={get_type:null,get_filter:null,parse:null,__class__:hc};
var Ra=function(a){this.id=a};m["format.swf.data.filters.Filter"]=Ra;Ra.__name__="format.swf.data.filters.Filter";Ra.__interfaces__=[hc];Ra.prototype={id:null,get_filter:function(){throw new w(new Oa("Implement in subclasses!"));},get_type:function(){return null},parse:function(a){throw new w(new Oa("Implement in subclasses!"));},__class__:Ra};var jf=function(a){this.id=a};m["format.swf.data.filters.FilterBevel"]=jf;jf.__name__="format.swf.data.filters.FilterBevel";jf.__interfaces__=[hc];jf.__super__=
Ra;jf.prototype=v(Ra.prototype,{shadowColor:null,highlightColor:null,blurX:null,blurY:null,angle:null,distance:null,strength:null,innerShadow:null,knockout:null,compositeSource:null,onTop:null,passes:null,get_filter:function(){this.onTop?gd.toString(0):this.innerShadow?gd.toString(1):gd.toString(2);return new ib},parse:function(a){this.shadowColor=l.readRGBA(a);this.highlightColor=l.readRGBA(a);this.blurX=l.readFIXED(a);this.blurY=l.readFIXED(a);this.angle=l.readFIXED(a);this.distance=l.readFIXED(a);
this.strength=l.readFIXED8(a);a=l.readUI8(a);this.innerShadow=0!=(a&128);this.knockout=0!=(a&64);this.compositeSource=0!=(a&32);this.onTop=0!=(a&16);this.passes=a&15},__class__:jf});var kf=function(a){this.id=a};m["format.swf.data.filters.FilterBlur"]=kf;kf.__name__="format.swf.data.filters.FilterBlur";kf.__interfaces__=[hc];kf.__super__=Ra;kf.prototype=v(Ra.prototype,{blurX:null,blurY:null,passes:null,get_filter:function(){return new vc(this.blurX,this.blurY,this.passes)},get_type:function(){return dk.BlurFilter(this.blurX,
this.blurY,this.passes)},parse:function(a){this.blurX=l.readFIXED(a);this.blurY=l.readFIXED(a);this.passes=l.readUI8(a)>>3},__class__:kf});var lf=function(a){this.id=a;this.colorMatrix=[]};m["format.swf.data.filters.FilterColorMatrix"]=lf;lf.__name__="format.swf.data.filters.FilterColorMatrix";lf.__interfaces__=[hc];lf.__super__=Ra;lf.prototype=v(Ra.prototype,{colorMatrix:null,get_filter:function(){return new hd([this.colorMatrix[0],this.colorMatrix[1],this.colorMatrix[2],this.colorMatrix[3],this.colorMatrix[4],
this.colorMatrix[5],this.colorMatrix[6],this.colorMatrix[7],this.colorMatrix[8],this.colorMatrix[9],this.colorMatrix[10],this.colorMatrix[11],this.colorMatrix[12],this.colorMatrix[13],this.colorMatrix[14],this.colorMatrix[15],this.colorMatrix[16],this.colorMatrix[17],this.colorMatrix[18],this.colorMatrix[19]])},get_type:function(){return dk.ColorMatrixFilter([this.colorMatrix[0],this.colorMatrix[1],this.colorMatrix[2],this.colorMatrix[3],this.colorMatrix[4],this.colorMatrix[5],this.colorMatrix[6],
this.colorMatrix[7],this.colorMatrix[8],this.colorMatrix[9],this.colorMatrix[10],this.colorMatrix[11],this.colorMatrix[12],this.colorMatrix[13],this.colorMatrix[14],this.colorMatrix[15],this.colorMatrix[16],this.colorMatrix[17],this.colorMatrix[18],this.colorMatrix[19]])},parse:function(a){this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));
this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a));this.colorMatrix.push(l.readFLOAT(a))},
__class__:lf});var mf=function(a){this.id=a;this.matrix=[]};m["format.swf.data.filters.FilterConvolution"]=mf;mf.__name__="format.swf.data.filters.FilterConvolution";mf.__interfaces__=[hc];mf.__super__=Ra;mf.prototype=v(Ra.prototype,{matrixX:null,matrixY:null,divisor:null,bias:null,defaultColor:null,clamp:null,preserveAlpha:null,matrix:null,get_filter:function(){for(var a=[],b=0,d=this.matrix.length;b<d;){var c=b++;a.push(this.matrix[c])}return new ib},parse:function(a){this.matrixX=l.readUI8(a);
this.matrixY=l.readUI8(a);this.divisor=l.readFLOAT(a);this.bias=l.readFLOAT(a);for(var b=0,d=this.matrixX*this.matrixY;b<d;)b++,this.matrix.push(l.readFLOAT(a));this.defaultColor=l.readRGBA(a);a=l.readUI8(a);this.clamp=0!=(a&2);this.preserveAlpha=0!=(a&1)},__class__:mf});var nf=function(a){this.id=a};m["format.swf.data.filters.FilterDropShadow"]=nf;nf.__name__="format.swf.data.filters.FilterDropShadow";nf.__interfaces__=[hc];nf.__super__=Ra;nf.prototype=v(Ra.prototype,{dropShadowColor:null,blurX:null,
blurY:null,angle:null,distance:null,strength:null,innerShadow:null,knockout:null,compositeSource:null,passes:null,get_filter:function(){return new Fe(this.distance,180*this.angle/Math.PI,da.rgb(this.dropShadowColor),da.alpha(this.dropShadowColor),this.blurX,this.blurY,this.strength,this.passes,this.innerShadow,this.knockout)},get_type:function(){return dk.DropShadowFilter(this.distance,180*this.angle/Math.PI,da.rgb(this.dropShadowColor),da.alpha(this.dropShadowColor),this.blurX,this.blurY,this.strength,
this.passes,this.innerShadow,this.knockout,!1)},parse:function(a){this.dropShadowColor=l.readRGBA(a);this.blurX=l.readFIXED(a);this.blurY=l.readFIXED(a);this.angle=l.readFIXED(a);this.distance=l.readFIXED(a);this.strength=l.readFIXED8(a);a=l.readUI8(a);this.innerShadow=0!=(a&128);this.knockout=0!=(a&64);this.compositeSource=0!=(a&32);this.passes=a&31},__class__:nf});var of=function(a){this.id=a};m["format.swf.data.filters.FilterGlow"]=of;of.__name__="format.swf.data.filters.FilterGlow";of.__interfaces__=
[hc];of.__super__=Ra;of.prototype=v(Ra.prototype,{glowColor:null,blurX:null,blurY:null,strength:null,innerGlow:null,knockout:null,compositeSource:null,passes:null,get_filter:function(){return new yb(da.rgb(this.glowColor),da.alpha(this.glowColor),this.blurX,this.blurY,this.strength,this.passes,this.innerGlow,this.knockout)},get_type:function(){return dk.GlowFilter(da.rgb(this.glowColor),da.alpha(this.glowColor),this.blurX,this.blurY,this.strength,this.passes,this.innerGlow,this.knockout)},parse:function(a){this.glowColor=
l.readRGBA(a);this.blurX=l.readFIXED(a);this.blurY=l.readFIXED(a);this.strength=l.readFIXED8(a);a=l.readUI8(a);this.innerGlow=0!=(a&128);this.knockout=0!=(a&64);this.compositeSource=0!=(a&32);this.passes=a&31},__class__:of});var wd=function(a){this.id=a;this.gradientColors=[];this.gradientRatios=[]};m["format.swf.data.filters.FilterGradientGlow"]=wd;wd.__name__="format.swf.data.filters.FilterGradientGlow";wd.__interfaces__=[hc];wd.__super__=Ra;wd.prototype=v(Ra.prototype,{numColors:null,blurX:null,
blurY:null,angle:null,distance:null,strength:null,innerShadow:null,knockout:null,compositeSource:null,onTop:null,passes:null,gradientColors:null,gradientRatios:null,get_filter:function(){for(var a=[],b=[],d=[],c=0,e=this.numColors;c<e;){var f=c++;a.push(da.rgb(this.gradientColors[f]));b.push(da.alpha(this.gradientColors[f]));d.push(this.gradientRatios[f])}this.onTop?gd.toString(0):this.innerShadow?gd.toString(1):gd.toString(2);return new ib},parse:function(a){this.numColors=l.readUI8(a);for(var b=
0,d=this.numColors;b<d;)b++,this.gradientColors.push(l.readRGBA(a));b=0;for(d=this.numColors;b<d;)b++,this.gradientRatios.push(l.readUI8(a));this.blurX=l.readFIXED(a);this.blurY=l.readFIXED(a);this.angle=l.readFIXED(a);this.distance=l.readFIXED(a);this.strength=l.readFIXED8(a);a=l.readUI8(a);this.innerShadow=0!=(a&128);this.knockout=0!=(a&64);this.compositeSource=0!=(a&32);this.onTop=0!=(a&16);this.passes=a&15},__class__:wd});var pf=function(a){wd.call(this,a)};m["format.swf.data.filters.FilterGradientBevel"]=
pf;pf.__name__="format.swf.data.filters.FilterGradientBevel";pf.__interfaces__=[hc];pf.__super__=wd;pf.prototype=v(wd.prototype,{get_filter:function(){for(var a=[],b=[],d=[],c=0,e=this.numColors;c<e;){var f=c++;a.push(da.rgb(this.gradientColors[f]));b.push(da.alpha(this.gradientColors[f]));d.push(this.gradientRatios[f])}this.onTop?gd.toString(0):this.innerShadow?gd.toString(1):gd.toString(2);return new ib},__class__:pf});var R=function(a,b,d){null==d&&(d=!1);null==b&&(b=!1);this.type=a;this.bubbles=
b;this.cancelable=d;this.eventPhase=2};m["openfl.events.Event"]=R;R.__name__="openfl.events.Event";R.prototype={bubbles:null,cancelable:null,currentTarget:null,eventPhase:null,target:null,type:null,__isCanceled:null,__isCanceledNow:null,__preventDefault:null,isDefaultPrevented:function(){return this.__preventDefault},preventDefault:function(){this.cancelable&&(this.__preventDefault=!0)},__class__:R};var Eg=function(a,b,d,c,e){null==e&&(e=!1);null==c&&(c=!1);R.call(this,a,c,e);this.index=b;this.data=
d};m["format.swf.events.SWFWarningEvent"]=Eg;Eg.__name__="format.swf.events.SWFWarningEvent";Eg.__super__=R;Eg.prototype=v(R.prototype,{index:null,data:null,__class__:Eg});var Hg=function(){};m["format.swf.exporters.ShapeBitmapExporter"]=Hg;Hg.__name__="format.swf.exporters.ShapeBitmapExporter";Hg.process=function(a){var b=[];a=a.commands.slice();if(!(null!=a&&0<a.length&&0==a.length%9))return null;for(;0<a.length;){var d=Hg.processNextBitmap(a.splice(0,9));switch(d._hx_index){case 0:b.push(d.v);
break;case 1:return null}}return b};Hg.processNextBitmap=function(a){for(var b=0,d=0,c=0,e=0,f=null,h=!0,k=0;k<a.length;){var n=a[k];++k;switch(n._hx_index){case 0:h=n.smooth;f=n.matrix;d=n.bitmap;if(2!=b)return Tc.None;break;case 4:if(1!=b&&8!=b)return Tc.None;break;case 5:if(null!=n.thickness||null!=n.color||null!=n.alpha||null!=n.pixelHinting||null!=n.scaleMode||null!=n.caps||null!=n.joints||null!=n.miterLimit||0!=b)return Tc.None;break;case 6:if(4!=b&&5!=b&&6!=b&&7!=b)return Tc.None;break;case 7:e=
n.y;c=n.x;if(3!=b)return Tc.None;break;default:return Tc.None}++b}null==f&&(f=new P,f.translate(c,e));return Tc.Some({id:d,transform:f,smooth:h})};var Ni=function(){};m["format.swf.exporters.core.IShapeExporter"]=Ni;Ni.__name__="format.swf.exporters.core.IShapeExporter";Ni.prototype={beginShape:null,endShape:null,beginFills:null,endFills:null,beginLines:null,endLines:null,beginFill:null,beginGradientFill:null,beginBitmapFill:null,endFill:null,lineStyle:null,lineGradientStyle:null,moveTo:null,lineTo:null,
curveTo:null,__class__:Ni};var De=function(a){this.swf=a};m["format.swf.exporters.core.DefaultShapeExporter"]=De;De.__name__="format.swf.exporters.core.DefaultShapeExporter";De.__interfaces__=[Ni];De.prototype={swf:null,beginShape:function(){},endShape:function(){},beginFills:function(){},endFills:function(){},beginLines:function(){},endLines:function(){},beginFill:function(a,b){},beginGradientFill:function(a,b,d,c,e,f,h,k){},beginBitmapFill:function(a,b,d,c){},endFill:function(){},lineStyle:function(a,
b,d,c,e,f,h,k,n){},lineGradientStyle:function(a,b,d,c,e,f,h,k){},moveTo:function(a,b){},lineTo:function(a,b){},curveTo:function(a,b,d,c){},__class__:De};var Uc=function(a){this.swf=a;this.commands=[]};m["format.swf.exporters.ShapeCommandExporter"]=Uc;Uc.__name__="format.swf.exporters.ShapeCommandExporter";Uc.__super__=De;Uc.prototype=v(De.prototype,{commands:null,beginShape:function(){this.commands=[]},beginFills:function(){this.commands.push(Zd.LineStyle(null,null,null,null,null,null,null,null))},
beginLines:function(){},beginFill:function(a,b){null==b&&(b=1);this.commands.push(Zd.BeginFill(a,b))},beginGradientFill:function(a,b,d,c,e,f,h,k){null==k&&(k=0);this.commands.push(Zd.BeginGradientFill(a,b,d,c,e,f,h,k))},beginBitmapFill:function(a,b,d,c){null==c&&(c=!1);null==d&&(d=!0);this.commands.push(Zd.BeginBitmapFill(a,b,d,c))},endFill:function(){this.commands.push(Zd.EndFill)},lineStyle:function(a,b,d,c,e,f,h,k,n){null==n&&(n=3);null==c&&(c=!1);null==d&&(d=1);null==b&&(b=0);null==a&&(a=0);this.commands.push(Zd.LineStyle(a,
b,d,c,e,f,k,n))},moveTo:function(a,b){this.commands.push(Zd.MoveTo(a,b))},lineTo:function(a,b){this.commands.push(Zd.LineTo(a,b))},curveTo:function(a,b,d,c){this.commands.push(Zd.CurveTo(a,b,d,c))},__class__:Uc});var Oi=function(){};m["format.swf.factories.ISWFTagFactory"]=Oi;Oi.__name__="format.swf.factories.ISWFTagFactory";Oi.prototype={create:null,__class__:Oi};var Zj=function(){};m["format.swf.factories.SWFActionFactory"]=Zj;Zj.__name__="format.swf.factories.SWFActionFactory";Zj.create=function(a,
b,d){return 7==a?new hf(a,b,d):new gf(a,b,d)};var Yj=function(){};m["format.swf.factories.SWFFilterFactory"]=Yj;Yj.__name__="format.swf.factories.SWFFilterFactory";Yj.create=function(a){switch(a){case 0:return new nf(a);case 1:return new kf(a);case 2:return new of(a);case 3:return new jf(a);case 4:return new wd(a);case 5:return new mf(a);case 6:return new lf(a);case 7:return new pf(a);default:throw new w(new Oa("Unknown filter ID: "+a));}};var Cg=function(){};m["format.swf.factories.SWFTagFactory"]=
Cg;Cg.__name__="format.swf.factories.SWFTagFactory";Cg.__interfaces__=[Oi];Cg.prototype={create:function(a){switch(a){case 0:return this.createTagEnd();case 1:return this.createTagShowFrame();case 2:return this.createTagDefineShape();case 4:return this.createTagPlaceObject();case 5:return this.createTagRemoveObject();case 6:return this.createTagDefineBits();case 7:return this.createTagDefineButton();case 8:return this.createTagJPEGTables();case 9:return this.createTagSetBackgroundColor();case 10:return this.createTagDefineFont();
case 11:return this.createTagDefineText();case 12:return this.createTagDoAction();case 13:return this.createTagDefineFontInfo();case 14:return this.createTagDefineSound();case 15:return this.createTagStartSound();case 17:return this.createTagDefineButtonSound();case 18:return this.createTagSoundStreamHead();case 19:return this.createTagSoundStreamBlock();case 20:return this.createTagDefineBitsLossless();case 21:return this.createTagDefineBitsJPEG2();case 22:return this.createTagDefineShape2();case 23:return this.createTagDefineButtonCxform();
case 24:return this.createTagProtect();case 26:return this.createTagPlaceObject2();case 28:return this.createTagRemoveObject2();case 32:return this.createTagDefineShape3();case 33:return this.createTagDefineText2();case 34:return this.createTagDefineButton2();case 35:return this.createTagDefineBitsJPEG3();case 36:return this.createTagDefineBitsLossless2();case 37:return this.createTagDefineEditText();case 39:return this.createTagDefineSprite();case 40:return this.createTagNameCharacter();case 41:return this.createTagProductInfo();
case 43:return this.createTagFrameLabel();case 45:return this.createTagSoundStreamHead2();case 46:return this.createTagDefineMorphShape();case 48:return this.createTagDefineFont2();case 56:return this.createTagExportAssets();case 57:return this.createTagImportAssets();case 58:return this.createTagEnableDebugger();case 59:return this.createTagDoInitAction();case 60:return this.createTagDefineVideoStream();case 61:return this.createTagVideoFrame();case 62:return this.createTagDefineFontInfo2();case 63:return this.createTagDebugID();
case 64:return this.createTagEnableDebugger2();case 65:return this.createTagScriptLimits();case 66:return this.createTagSetTabIndex();case 69:return this.createTagFileAttributes();case 70:return this.createTagPlaceObject3();case 71:return this.createTagImportAssets2();case 72:return this.createTagDoABCDeprecated();case 73:return this.createTagDefineFontAlignZones();case 74:return this.createTagCSMTextSettings();case 75:return this.createTagDefineFont3();case 76:return this.createTagSymbolClass();
case 77:return this.createTagMetadata();case 78:return this.createTagDefineScalingGrid();case 82:return this.createTagDoABC();case 83:return this.createTagDefineShape4();case 84:return this.createTagDefineMorphShape2();case 86:return this.createTagDefineSceneAndFrameLabelData();case 87:return this.createTagDefineBinaryData();case 88:return this.createTagDefineFontName();case 89:return this.createTagStartSound2();case 90:return this.createTagDefineBitsJPEG4();case 91:return this.createTagDefineFont4();
case 93:return this.createTagEnableTelemetry();case 94:return this.createTagPlaceObject4();case 253:return this.createTagSWFEncryptActions();case 255:return this.createTagSWFEncryptSignature();default:return this.createTagUnknown(a)}},createTagEnd:function(){return new Ig},createTagShowFrame:function(){return new Jg},createTagDefineShape:function(){return new Pb},createTagPlaceObject:function(){return new $d},createTagRemoveObject:function(){return new ae},createTagDefineBits:function(){return new Sa},
createTagDefineButton:function(){return new qf},createTagJPEGTables:function(){return new Kg},createTagSetBackgroundColor:function(){return new Lg},createTagDefineFont:function(){return new Vc},createTagDefineText:function(){return new Yb},createTagDoAction:function(){return new be},createTagDefineFontInfo:function(){return new ce},createTagDefineSound:function(){return new Mg},createTagStartSound:function(){return new Ng},createTagDefineButtonSound:function(){return new Og},createTagSoundStreamHead:function(){return new de},
createTagSoundStreamBlock:function(){return new Pg},createTagDefineBitsLossless:function(){return new vb},createTagDefineBitsJPEG2:function(){return new Zb},createTagDefineShape2:function(){return new Gd},createTagDefineButtonCxform:function(){return new Qg},createTagProtect:function(){return new Rg},createTagPlaceObject2:function(){return new Hd},createTagRemoveObject2:function(){return new rf},createTagDefineShape3:function(){return new Id},createTagDefineText2:function(){return new sf},createTagDefineButton2:function(){return new wc},
createTagDefineBitsJPEG3:function(){return new Ic},createTagDefineBitsLossless2:function(){return new Sg},createTagDefineEditText:function(){return new $b},createTagDefineSprite:function(){return new ic},createTagNameCharacter:function(){return new Tg},createTagProductInfo:function(){return new Ug},createTagFrameLabel:function(){return new Vg},createTagSoundStreamHead2:function(){return new tf},createTagDefineMorphShape:function(){return new uc},createTagDefineFont2:function(){return new Jc},createTagExportAssets:function(){return new Wg},
createTagImportAssets:function(){return new ee},createTagEnableDebugger:function(){return new fe},createTagDoInitAction:function(){return new uf},createTagDefineVideoStream:function(){return new Xg},createTagVideoFrame:function(){return new Yg},createTagDefineFontInfo2:function(){return new vf},createTagDebugID:function(){return new Zg},createTagEnableDebugger2:function(){return new wf},createTagScriptLimits:function(){return new $g},createTagSetTabIndex:function(){return new ah},createTagFileAttributes:function(){return new bh},
createTagPlaceObject3:function(){return new id},createTagImportAssets2:function(){return new xf},createTagDefineFontAlignZones:function(){return new ch},createTagCSMTextSettings:function(){return new dh},createTagDefineFont3:function(){return new Ge},createTagSymbolClass:function(){return new vd},createTagMetadata:function(){return new eh},createTagDefineScalingGrid:function(){return new fh},createTagDoABC:function(){return new gh},createTagDoABCDeprecated:function(){return new hh},createTagDefineShape4:function(){return new yf},
createTagDefineMorphShape2:function(){return new zf},createTagDefineSceneAndFrameLabelData:function(){return new ih},createTagDefineBinaryData:function(){return new jh},createTagDefineFontName:function(){return new kh},createTagStartSound2:function(){return new lh},createTagDefineBitsJPEG4:function(){return new Af},createTagDefineFont4:function(){return new Bf},createTagEnableTelemetry:function(){return new mh},createTagPlaceObject4:function(){return new Cf},createTagSWFEncryptActions:function(){return new Df},
createTagSWFEncryptSignature:function(){return new Ef},createTagUnknown:function(a){return new Kc(a)},__class__:Cg};var Lb=function(a,b,d){null==d&&(d=!1);ha.call(this);this.__bitmapData=a;this.pixelSnapping=b;this.smoothing=d;null==b&&(this.pixelSnapping=1)};m["openfl.display.Bitmap"]=Lb;Lb.__name__="openfl.display.Bitmap";Lb.__super__=ha;Lb.prototype=v(ha.prototype,{pixelSnapping:null,smoothing:null,__image:null,__bitmapData:null,__imageVersion:null,__enterFrame:function(a){null==this.__bitmapData||
null==this.__bitmapData.image||this.__bitmapData.image.version==this.__imageVersion||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},__getBounds:function(a,b){if(null!=this.__bitmapData){var d=M.__pool.get();d.setTo(0,0,this.__bitmapData.width,this.__bitmapData.height);d.__transform(d,b);a.__expand(d.x,d.y,d.width,d.height);M.__pool.release(d)}},__hitTest:function(a,b,d,c,e,f){if(!f.get_visible()||this.__isMask||null==this.__bitmapData||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,
b))return!1;this.__getRenderTransform();d=this.__renderTransform;var h=d.a*d.d-d.b*d.c;d=0==h?-d.tx:1/h*(d.c*(d.ty-b)+d.d*(a-d.tx));h=this.__renderTransform;var k=h.a*h.d-h.b*h.c;a=0==k?-h.ty:1/k*(h.a*(b-h.ty)+h.b*(h.tx-a));if(0<d&&0<a&&d<=this.__bitmapData.width&&a<=this.__bitmapData.height){if(null!=this.__scrollRect&&!this.__scrollRect.contains(d,a))return!1;null==c||e||c.push(f);return!0}return!1},__hitTestMask:function(a,b){if(null==this.__bitmapData)return!1;this.__getRenderTransform();var d=
this.__renderTransform,c=d.a*d.d-d.b*d.c;d=0==c?-d.tx:1/c*(d.c*(d.ty-b)+d.d*(a-d.tx));c=this.__renderTransform;var e=c.a*c.d-c.b*c.c;a=0==e?-c.ty:1/e*(c.a*(b-c.ty)+c.b*(c.tx-a));return 0<d&&0<a&&d<=this.__bitmapData.width&&a<=this.__bitmapData.height?!0:!1},__renderCairo:function(a){null!=this.__bitmapData&&null!=this.__bitmapData.image&&(this.__imageVersion=this.__bitmapData.image.version)},__renderCairoMask:function(a){a.cairo.rectangle(0,0,this.get_width(),this.get_height())},__renderCanvas:function(a){null!=
this.__bitmapData&&null!=this.__bitmapData.image&&(this.__imageVersion=this.__bitmapData.image.version);this.__updateCacheBitmap(a,!1);if(null==this.__cacheBitmap||this.__isCacheBitmapRender){if(!(null==this.opaqueBackground&&null==this.__graphics||!this.__renderable||0>=this.__worldAlpha)){if(null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&0<this.get_width()&&0<this.get_height()){a.__setBlendMode(this.__worldBlendMode);a.__pushMaskObject(this);var b=a.context;a.setTransform(this.__renderTransform,
b);var d=this.opaqueBackground;b.fillStyle="rgb("+(d>>>16&255)+","+(d>>>8&255)+","+(d&255)+")";b.fillRect(0,0,this.get_width(),this.get_height());a.__popMaskObject(this)}if(null!=this.__graphics&&this.__renderable&&!(0>=this.__worldAlpha)&&(b=this.__graphics,null!=b)){q.render(b,a);d=b.__width;var c=b.__height;if(null!=b.__canvas){var e=a.context,f=this.__scrollRect;0<d&&0<c&&(null==f||0<f.width&&0<f.height)&&(a.__setBlendMode(this.__worldBlendMode),a.__pushMaskObject(this),e.globalAlpha=this.__worldAlpha,
a.setTransform(b.__worldTransform,e),a.__isDOM&&(f=1/a.pixelRatio,e.scale(f,f)),e.drawImage(b.__canvas,0,0,d,c),a.__popMaskObject(this))}}}!this.__renderable||0>=this.__worldAlpha||(b=a.context,null!=this.__bitmapData&&this.__bitmapData.__isValid&&this.__bitmapData.readable&&(a.__setBlendMode(this.__worldBlendMode),a.__pushMaskObject(this,!1),N.convertToCanvas(this.__bitmapData.image),b.globalAlpha=this.__worldAlpha,d=this.__scrollRect,a.setTransform(this.__renderTransform,b),a.__allowSmoothing&&
this.smoothing||(b.mozImageSmoothingEnabled=!1,b.msImageSmoothingEnabled=!1,b.imageSmoothingEnabled=!1),null==d?b.drawImage(this.__bitmapData.image.get_src(),0,0,this.__bitmapData.image.width,this.__bitmapData.image.height):b.drawImage(this.__bitmapData.image.get_src(),d.x,d.y,d.width,d.height),a.__allowSmoothing&&this.smoothing||(b.mozImageSmoothingEnabled=!0,b.msImageSmoothingEnabled=!0,b.imageSmoothingEnabled=!0),a.__popMaskObject(this,!1)))}else b=this.__cacheBitmap,!b.__renderable||0>=b.__worldAlpha||
(d=a.context,null!=b.__bitmapData&&b.__bitmapData.__isValid&&b.__bitmapData.readable&&(a.__setBlendMode(b.__worldBlendMode),a.__pushMaskObject(b,!1),N.convertToCanvas(b.__bitmapData.image),d.globalAlpha=b.__worldAlpha,c=b.__scrollRect,a.setTransform(b.__renderTransform,d),a.__allowSmoothing&&b.smoothing||(d.mozImageSmoothingEnabled=!1,d.msImageSmoothingEnabled=!1,d.imageSmoothingEnabled=!1),null==c?d.drawImage(b.__bitmapData.image.get_src(),0,0,b.__bitmapData.image.width,b.__bitmapData.image.height):
d.drawImage(b.__bitmapData.image.get_src(),c.x,c.y,c.width,c.height),a.__allowSmoothing&&b.smoothing||(d.mozImageSmoothingEnabled=!0,d.msImageSmoothingEnabled=!0,d.imageSmoothingEnabled=!0),a.__popMaskObject(b,!1)));this.__renderEvent(a)},__renderCanvasMask:function(a){a.context.rect(0,0,this.get_width(),this.get_height())},__renderDOM:function(a){this.__updateCacheBitmap(a,!1);if(null==this.__cacheBitmap||this.__isCacheBitmapRender){null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&0<this.get_width()&&
this.get_height();var b=this.__graphics;if(null!=this.stage&&this.__worldVisible&&this.__renderable&&null!=b){q.render(b,a.__canvasRenderer);if(b.__dirty||this.__worldAlphaChanged||this.__canvas!=b.__canvas)null!=b.__canvas?this.__canvas!=b.__canvas&&(null!=this.__canvas&&a.element.removeChild(this.__canvas),this.__canvas=b.__canvas,this.__context=b.__context,a.__initializeElement(this,this.__canvas)):zd.clear(this,a);if(null!=this.__canvas){a.__pushMaskObject(this);var d=this.__renderTransform;this.__renderTransform=
b.__worldTransform;b.__transformDirty&&(b.__transformDirty=!1,this.__renderTransformChanged=!0);a.__updateClip(this);a.__applyStyle(this,!0,!0,!0);this.__renderTransform=d;a.__popMaskObject(this)}}else zd.clear(this,a);null!=this.stage&&this.__worldVisible&&this.__renderable&&null!=this.__bitmapData&&this.__bitmapData.__isValid&&this.__bitmapData.readable?(a.__pushMaskObject(this),null!=this.__bitmapData.image.buffer.__srcImage?La.renderImage(this,a):La.renderCanvas(this,a),a.__popMaskObject(this)):
La.clear(this,a)}else this.__renderDOMClear(a),this.__cacheBitmap.stage=this.stage,b=this.__cacheBitmap,null!=b.stage&&b.__worldVisible&&b.__renderable&&null!=b.__bitmapData&&b.__bitmapData.__isValid&&b.__bitmapData.readable?(a.__pushMaskObject(b),null!=b.__bitmapData.image.buffer.__srcImage?La.renderImage(b,a):La.renderCanvas(b,a),a.__popMaskObject(b)):La.clear(b,a);this.__renderEvent(a)},__renderDOMClear:function(a){La.clear(this,a)},__renderGL:function(a){null!=this.__bitmapData&&null!=this.__bitmapData.image&&
(this.__imageVersion=this.__bitmapData.image.version);this.__updateCacheBitmap(a,!1);if(null==this.__cacheBitmap||this.__isCacheBitmapRender){if(!(null==this.opaqueBackground&&null==this.__graphics||!this.__renderable||0>=this.__worldAlpha)){if(null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&0<this.get_width()&&0<this.get_height()){a.__setBlendMode(this.__worldBlendMode);a.__pushMaskObject(this);var b=a.__context.webgl,d=M.__pool.get();d.setTo(0,0,this.get_width(),this.get_height());a.__pushMaskRect(d,
this.__renderTransform);var c=this.opaqueBackground;b.clearColor((c>>>16&255)/255,(c>>>8&255)/255,(c&255)/255,1);b.clear(b.COLOR_BUFFER_BIT);a.__popMaskRect();a.__popMaskObject(this);M.__pool.release(d)}null!=this.__graphics&&pd.render(this,a)}od.render(this,a)}else od.render(this.__cacheBitmap,a);this.__renderEvent(a)},__renderGLMask:function(a){od.renderMask(this,a)},__updateCacheBitmap:function(a,b){return null==this.__filters&&"opengl"==a.__type&&null==this.__cacheBitmap?!1:ha.prototype.__updateCacheBitmap.call(this,
a,b)},get_bitmapData:function(){return this.__bitmapData},set_bitmapData:function(a){this.__bitmapData=a;this.smoothing=!1;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());this.__imageVersion=-1;return this.__bitmapData},get_height:function(){return null!=this.__bitmapData?this.__bitmapData.height*Math.abs(this.get_scaleY()):0},set_height:function(a){return null!=this.__bitmapData?(a!=this.__bitmapData.height&&(this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),
this.set_scaleY(a/this.__bitmapData.height)),a):0},get_width:function(){return null!=this.__bitmapData?this.__bitmapData.width*Math.abs(this.__scaleX):0},set_width:function(a){return null!=this.__bitmapData?(a!=this.__bitmapData.width&&(this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.set_scaleX(a/this.__bitmapData.width)),a):0},__class__:Lb});var Wc=function(a){Lb.call(this);if(a instanceof vb)if(null!=a.instance)this.set_bitmapData(a.instance);else{var b=1<a.level,
d=a.zlibBitmapData;d.uncompress();d.position=0;if(3==a.bitmapFormat){for(var c=[],e=0,f=a.bitmapColorTableSize;e<f;){e++;var h=d.readUnsignedByte(),k=d.readUnsignedByte(),n=d.readUnsignedByte();if(b){var C=d.readUnsignedByte();c.push((C<<24)+(h<<16)+(k<<8)+n)}else c.push((h<<16)+(k<<8)+n)}e=new ta(0);f=(4-a.bitmapWidth%4)%4;k=0;for(n=a.bitmapHeight;k<n;){k++;C=0;for(var l=a.bitmapWidth;C<l;)C++,h=d.readUnsignedByte(),0<=h&&h<c.length?e.writeUnsignedInt(c[h]):e.writeUnsignedInt(0);d.position+=f}d=
e;d.position=0}this.set_bitmapData(new ja(a.bitmapWidth,a.bitmapHeight,b));this.get_bitmapData().image.buffer.premultiplied=!1;this.get_bitmapData().setPixels(this.get_bitmapData().rect,d);this.get_bitmapData().image.buffer.premultiplied=!0;a.instance=this.get_bitmapData()}else a instanceof Zb?null!=a.instance?this.set_bitmapData(a.instance):(a instanceof Ic?(b=U.__cast(a,Ic).bitmapAlphaData,b.uncompress(),this.set_bitmapData(ja.fromBytes(a.bitmapData,b)),this.get_bitmapData().image.buffer.premultiplied=
!0):this.set_bitmapData(ja.fromBytes(a.bitmapData,null)),a.instance=this.get_bitmapData()):a instanceof Sa&&this.set_bitmapData(ja.fromBytes(a.bitmapData,null))};m["format.swf.instance.Bitmap"]=Wc;Wc.__name__="format.swf.instance.Bitmap";Wc.__super__=Lb;Wc.prototype=v(Lb.prototype,{__class__:Wc});var pb=function(){this.__renderedOnCanvasWhileOnDOM=this.__forceCachedBitmapUpdate=!1;Ma.call(this);this.__caretIndex=-1;this.__displayAsPassword=!1;this.__graphics=new Db(this);this.__textEngine=new X(this);
this.__layoutDirty=!0;this.__offsetY=this.__offsetX=0;this.__mouseWheelEnabled=!0;this.__text="";null==pb.__defaultTextFormat&&(pb.__defaultTextFormat=new dd("Times New Roman",12,0,!1,!1,!1,"","",3,0,0,0,0),pb.__defaultTextFormat.blockIndent=0,pb.__defaultTextFormat.bullet=!1,pb.__defaultTextFormat.letterSpacing=0,pb.__defaultTextFormat.kerning=!1);this.__textFormat=pb.__defaultTextFormat.clone();this.__textEngine.textFormatRanges.push(new ge(this.__textFormat,0,0));this.addEventListener("mouseDown",
u(this,this.this_onMouseDown));this.addEventListener("focusIn",u(this,this.this_onFocusIn));this.addEventListener("focusOut",u(this,this.this_onFocusOut));this.addEventListener("keyDown",u(this,this.this_onKeyDown))};m["openfl.text.TextField"]=pb;pb.__name__="openfl.text.TextField";pb.__super__=Ma;pb.prototype=v(Ma.prototype,{__caretIndex:null,__cursorTimer:null,__dirty:null,__displayAsPassword:null,__domRender:null,__inputEnabled:null,__isHTML:null,__layoutDirty:null,__mouseWheelEnabled:null,__offsetX:null,
__offsetY:null,__selectionIndex:null,__showCursor:null,__symbol:null,__text:null,__textEngine:null,__textFormat:null,__div:null,__renderedOnCanvasWhileOnDOM:null,__rawHtmlText:null,__forceCachedBitmapUpdate:null,getCharBoundaries:function(a){if(0>a||a>F.get_length(this.__text)-1)return null;var b=new M;return this.__getCharBoundaries(a,b)?b:null},getLineIndexOfChar:function(a){if(0>a||a>F.get_length(this.__text))return-1;this.__updateLayout();for(var b=0,d=this.__textEngine.layoutGroups;b<d.get_length();){var c=
d.get(b);++b;if(c.startIndex<=a&&c.endIndex>=a)return c.lineIndex}return-1},getLineOffset:function(a){this.__updateLayout();if(0>a||a>this.__textEngine.numLines-1)return-1;for(var b=0,d=this.__textEngine.layoutGroups;b<d.get_length();){var c=d.get(b);++b;if(c.lineIndex==a)return c.startIndex}return 0},replaceSelectedText:function(a){this.__replaceSelectedText(a,!1)},replaceText:function(a,b,d){this.__replaceText(a,b,d,!1)},setSelection:function(a,b){this.__selectionIndex=a;this.__caretIndex=b;this.__stopCursorTimer();
this.__startCursorTimer()},__allowMouseFocus:function(){return 1==this.__textEngine.type||this.get_tabEnabled()?!0:this.get_selectable()},__caretBeginningOfLine:function(){this.__selectionIndex==this.__caretIndex||this.__caretIndex<this.__selectionIndex?this.__caretIndex=this.getLineOffset(this.getLineIndexOfChar(this.__caretIndex)):this.__selectionIndex=this.getLineOffset(this.getLineIndexOfChar(this.__selectionIndex))},__caretEndOfLine:function(){var a=this.__selectionIndex==this.__caretIndex?this.getLineIndexOfChar(this.__caretIndex):
this.getLineIndexOfChar(Math.max(this.__caretIndex,this.__selectionIndex)|0);this.__caretIndex=a<this.__textEngine.numLines-1?this.getLineOffset(a+1)-1:F.get_length(this.__text)},__caretNextCharacter:function(){this.__caretIndex<F.get_length(this.__text)&&this.__caretIndex++},__caretNextLine:function(a,b){null==a&&(a=this.getLineIndexOfChar(this.__caretIndex));a<this.__textEngine.numLines-1?(null==b&&(b=this.__caretIndex),this.__caretIndex=this.__getCharIndexOnDifferentLine(b,a+1)):this.__caretIndex=
F.get_length(this.__text)},__caretPreviousCharacter:function(){0<this.__caretIndex&&this.__caretIndex--},__caretPreviousLine:function(a,b){null==a&&(a=this.getLineIndexOfChar(this.__caretIndex));0<a?(null==b&&(b=this.__caretIndex),this.__caretIndex=this.__getCharIndexOnDifferentLine(b,a-1)):this.__caretIndex=0},__disableInput:function(){this.__inputEnabled&&null!=this.stage&&(this.stage.window.__backend.setTextInputEnabled(!1),this.stage.window.onTextInput.remove(u(this,this.window_onTextInput)),
this.stage.window.onKeyDown.remove(u(this,this.window_onKeyDown)),this.__inputEnabled=!1,this.__stopCursorTimer())},__dispatch:function(a){if(2==a.eventPhase&&"mouseUp"==a.type){var b=this.__getGroup(this.get_mouseX(),this.get_mouseY(),!0);null!=b&&(b=b.format.url,null!=b&&""!=b&&(Q.startsWith(b,"event:")?this.dispatchEvent(new xd("link",!1,!1,L.substr(b,6,null))):Ba.getURL(new nh(b))))}return Ma.prototype.__dispatch.call(this,a)},__enableInput:function(){null!=this.stage&&(this.stage.window.__backend.setTextInputEnabled(!0),
this.__inputEnabled||(this.stage.window.__backend.setTextInputEnabled(!0),this.stage.window.onTextInput.has(u(this,this.window_onTextInput))||(this.stage.window.onTextInput.add(u(this,this.window_onTextInput)),this.stage.window.onKeyDown.add(u(this,this.window_onKeyDown))),this.__inputEnabled=!0,this.__startCursorTimer()))},__fromSymbol:function(a,b){this.__symbol=b;this.set_width(b.width);this.set_height(b.height);this.__offsetX=b.x;this.__offsetY=b.y;this.set_multiline(b.multiline);this.set_wordWrap(b.wordWrap);
this.set_displayAsPassword(b.password);b.border&&(this.set_border(!0),this.set_background(!0));this.set_selectable(b.selectable);b.input&&this.set_type(1);var d=new dd;null!=b.color&&(d.color=b.color&16777215);d.size=Math.round(b.fontHeight/20);a=a.symbols.h[b.fontID];null!=a&&(d.__ascent=a.ascent/20/1024,d.__descent=a.descent/20/1024);d.font=b.fontName;a=!1;var c=d.font;if(null==c)a=!0;else switch(c){case "":case "_sans":case "_serif":case "_typewriter":a=!0;break;default:c=0;for(var e=zb.enumerateFonts();c<
e.length;){var f=e[c];++c;if(f.name==d.font){a=!0;break}}}if(!a)for(c=/[^a-zA-Z]+/g,e=0,f=zb.enumerateFonts();e<f.length;){var h=f[e];++e;if(L.substr(h.name.replace(c,""),0,b.fontName.length)==b.fontName){d.font=h.name;a=!0;break}}a?this.set_embedFonts(!0):(a=d.font,c=pb.__missingFontWarning,(null!=t[a]?c.existsReserved(a):c.h.hasOwnProperty(a))||(a=d.font,c=pb.__missingFontWarning,null!=t[a]?c.setReserved(a,!0):c.h[a]=!0,Ja.warn('Could not find required font "'+d.font+'", it has not been embedded',
{fileName:"openfl/text/TextField.hx",lineNumber:1671,className:"openfl.text.TextField",methodName:"__fromSymbol"})));null!=b.align&&("center"==b.align?d.align=0:"right"==b.align?d.align=4:"justify"==b.align&&(d.align=2),d.leftMargin=b.leftMargin/20|0,d.rightMargin=b.rightMargin/20|0,d.indent=b.indent/20|0,d.leading=b.leading/20|0);this.set_defaultTextFormat(d);null!=b.text&&(b.html?this.set_htmlText(b.text):this.set_text(b.text))},__getBounds:function(a,b){this.__updateLayout();var d=M.__pool.get();
d.copyFrom(this.__textEngine.bounds);b.tx+=this.__offsetX;b.ty+=this.__offsetY;d.__transform(d,b);a.__expand(d.x,d.y,d.width,d.height);M.__pool.release(d)},__getCharBoundaries:function(a,b){if(0>a||a>F.get_length(this.__text)-1)return!1;this.__updateLayout();for(var d=0,c=this.__textEngine.layoutGroups;d<c.get_length();){var e=c.get(d);++d;if(a>=e.startIndex&&a<=e.endIndex)try{for(var f=e.offsetX,h=0,k=a-e.startIndex;h<k;){var n=h++;f+=e.positions[n]}b.setTo(f,e.offsetY,e.positions[a-e.startIndex],
e.ascent+e.descent);return!0}catch(C){fa.lastException=C}}return!1},__getCharIndexOnDifferentLine:function(a,b){if(0>a||a>F.get_length(this.__text)||0>b||b>this.__textEngine.numLines-1)return-1;for(var d=null,c=null,e=0,f=this.__textEngine.layoutGroups;e<f.get_length();){var h=f.get(e);++e;if(a>=h.startIndex&&a<=h.endIndex){d=h.offsetX;for(var k=0,n=a-h.startIndex;k<n;){var C=k++;d+=h.positions[C]}if(null!=c)return this.__getPosition(d,c)}if(h.lineIndex==b){c=h.offsetY+h.height/2;h=0;for(k=this.get_scrollV()-
1;h<k;)n=h++,c-=this.__textEngine.lineHeights.get(n);if(null!=d)return this.__getPosition(d,c)}}return-1},__getCursor:function(){var a=this.__getGroup(this.get_mouseX(),this.get_mouseY(),!0);return null!=a&&""!=a.format.url?ji.POINTER:this.__textEngine.selectable?ji.TEXT:null},__getGroup:function(a,b,d){null==d&&(d=!1);this.__updateLayout();a+=this.get_scrollH();for(var c=0,e=this.get_scrollV()-1;c<e;){var f=c++;b+=this.__textEngine.lineHeights.get(f)}!d&&b>this.__textEngine.textHeight&&(b=this.__textEngine.textHeight);
c=!0;f=0;for(var h=this.__textEngine.layoutGroups.get_length();f<h;){var k=f++;e=this.__textEngine.layoutGroups.get(k);k=k<this.__textEngine.layoutGroups.get_length()-1?this.__textEngine.layoutGroups.get(k+1):null;c&&(b<e.offsetY&&(b=e.offsetY),a<e.offsetX&&(a=e.offsetX),c=!1);if(b>=e.offsetY&&b<=e.offsetY+e.height||!d&&null==k)if(a>=e.offsetX&&a<=e.offsetX+e.width||!d&&(null==k||k.lineIndex!=e.lineIndex))return e}return null},__getPosition:function(a,b){b=this.__getGroup(a,b);if(null==b)return F.get_length(this.__text);
for(var d=0,c=0,e=b.positions.length;c<e;){var f=c++;d+=b.positions[f];if(a<=b.offsetX+d){if(a<=b.offsetX+(d-b.positions[f])+b.positions[f]/2)return b.startIndex+f;if(b.startIndex+f<b.endIndex)return b.startIndex+f+1;break}}return b.endIndex},__hitTest:function(a,b,d,c,e,f){if(!f.get_visible()||this.__isMask||e&&!this.mouseEnabled||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;this.__getRenderTransform();this.__updateLayout();d=this.__renderTransform;e=d.a*d.d-d.b*d.c;var h=
this.__renderTransform,k=h.a*h.d-h.b*h.c;return this.__textEngine.bounds.contains(0==e?-d.tx:1/e*(d.c*(d.ty-b)+d.d*(a-d.tx)),0==k?-h.ty:1/k*(h.a*(b-h.ty)+h.b*(h.tx-a)))?(null!=c&&c.push(f),!0):!1},__hitTestMask:function(a,b){this.__getRenderTransform();this.__updateLayout();var d=this.__renderTransform,c=d.a*d.d-d.b*d.c,e=this.__renderTransform,f=e.a*e.d-e.b*e.c;return this.__textEngine.bounds.contains(0==c?-d.tx:1/c*(d.c*(d.ty-b)+d.d*(a-d.tx)),0==f?-e.ty:1/f*(e.a*(b-e.ty)+e.b*(e.tx-a)))?!0:!1},__renderCairo:function(a){},
__renderCanvas:function(a){a.__isDOM&&!this.__renderedOnCanvasWhileOnDOM&&(this.__renderedOnCanvasWhileOnDOM=!0,1==this.get_type()&&this.replaceText(0,F.get_length(this.__text),this.__text),this.__isHTML&&this.__updateText(ia.parse(this.__text,this.__textFormat,this.__textEngine.textFormatRanges)),this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));if(null==this.get_mask()||0<this.get_mask().get_width()&&0<this.get_mask().get_height())if(this.__updateCacheBitmap(a,
!1),null==this.__cacheBitmap||this.__isCacheBitmapRender){var b=this.__textEngine,d=b.background||b.border?b.bounds:b.textBounds,c=this.__graphics;this.__dirty&&(this.__updateLayout(),null==c.__bounds&&(c.__bounds=new M),c.__bounds.copyFrom(d));c.__update(a.__worldTransform);if(this.__dirty||c.__dirty){var e=c.__width,f=c.__height;if(!(null!=b.text&&!F.equals(b.text,"")||b.background||b.border||b.__hasFocus||1==b.type&&b.selectable)||(0>=b.width||0>=b.height)&&2!=b.autoSize)this.__graphics.__canvas=
null,this.__graphics.__context=null,this.__graphics.__bitmap=null,this.__graphics.set___dirty(!1),this.__dirty=!1;else{null==this.__graphics.__canvas&&(this.__graphics.__canvas=window.document.createElement("canvas"),this.__graphics.__context=this.__graphics.__canvas.getContext("2d"));K.context=c.__context;var h=c.__renderTransform;if(a.__isDOM){var k=a.pixelRatio;c.__canvas.width=e*k|0;c.__canvas.height=f*k|0;c.__canvas.style.width=e+"px";c.__canvas.style.height=f+"px";e=P.__pool.get();e.copyFrom(h);
e.scale(k,k);a.setTransform(e,K.context);P.__pool.release(e)}else c.__canvas.width=e,c.__canvas.height=f,K.context.setTransform(h.a,h.b,h.c,h.d,h.tx,h.ty);null==K.clearRect&&(K.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);K.clearRect&&K.context.clearRect(0,0,c.__canvas.width,c.__canvas.height);if(null!=b.text&&""!=b.text||b.__hasFocus){h=b.text;!a.__allowSmoothing||0==b.antiAliasType&&400==b.sharpness?(c.__context.mozImageSmoothingEnabled=!1,c.__context.msImageSmoothingEnabled=
!1,c.__context.imageSmoothingEnabled=!1):(c.__context.mozImageSmoothingEnabled=!0,c.__context.msImageSmoothingEnabled=!0,c.__context.imageSmoothingEnabled=!0);if(b.border||b.background)K.context.rect(.5,.5,d.width-1,d.height-1),b.background&&(k=Q.hex(b.backgroundColor&16777215,6),K.context.fillStyle="#"+k,K.context.fill()),b.border&&(K.context.lineWidth=1,k=Q.hex(b.borderColor&16777215,6),K.context.strokeStyle="#"+k,K.context.stroke());K.context.textBaseline="top";K.context.textAlign="start";k=-this.get_scrollH();
f=e=0;for(var n=this.get_scrollV()-1;f<n;){var C=f++;e-=b.lineHeights.get(C)}f=0;n=(new wa("(iPad|iPhone|iPod|Firefox)","g")).match(window.navigator.userAgent);C=0;for(var l=b.layoutGroups;C<l.get_length();){var g=l.get(C);++C;if(!(g.lineIndex<this.get_scrollV()-1)){if(g.lineIndex>this.get_scrollV()+b.bottomScrollV-2)break;if(g.format.underline){K.context.beginPath();K.context.strokeStyle="#000000";K.context.lineWidth=.5;var m=g.offsetX+k-d.x;var T=g.offsetY+f+e+g.ascent-d.y;K.context.moveTo(m,T);
K.context.lineTo(m+g.width,T);K.context.stroke()}K.context.font=X.getFont(g.format);m=Q.hex(g.format.color&16777215,6);K.context.fillStyle="#"+m;n&&(f=.185*g.format.size);K.context.fillText(F.substring(h,g.startIndex,g.endIndex),g.offsetX+k-d.x,g.offsetY+f+e-d.y);if(-1<this.__caretIndex&&b.selectable)if(this.__selectionIndex==this.__caretIndex){if(this.__showCursor&&g.startIndex<=this.__caretIndex&&g.endIndex>=this.__caretIndex){T=m=0;for(var A=this.__caretIndex-g.startIndex;T<A;){var p=T++;if(g.positions.length<=
p)break;m+=g.positions[p]}T=0;A=this.get_scrollV();for(p=g.lineIndex+1;A<p;){var r=A++;T+=b.lineHeights.get(r-1)}K.context.beginPath();A=Q.hex(g.format.color&16777215,6);K.context.strokeStyle="#"+A;K.context.moveTo(g.offsetX+m-this.get_scrollH()-d.x,T+2-d.y);K.context.lineWidth=1;K.context.lineTo(g.offsetX+m-this.get_scrollH()-d.x,T+X.getFormatHeight(this.get_defaultTextFormat())-1-d.y);K.context.stroke();K.context.closePath()}}else if(g.startIndex<=this.__caretIndex&&g.endIndex>=this.__caretIndex||
g.startIndex<=this.__selectionIndex&&g.endIndex>=this.__selectionIndex||g.startIndex>this.__caretIndex&&g.endIndex<this.__selectionIndex||g.startIndex>this.__selectionIndex&&g.endIndex<this.__caretIndex)m=Math.min(this.__selectionIndex,this.__caretIndex)|0,T=Math.max(this.__selectionIndex,this.__caretIndex)|0,g.startIndex>m&&(m=g.startIndex),g.endIndex<T&&(T=g.endIndex),p=this.getCharBoundaries(m),T>=F.get_length(b.text)?(A=this.getCharBoundaries(F.get_length(b.text)-1),A.x+=A.width+2):A=this.getCharBoundaries(T),
null!=p&&null!=A&&(K.context.fillStyle="#000000",K.context.fillRect(p.x+k,p.y+e,A.x-p.x,g.height),K.context.fillStyle="#FFFFFF",K.context.fillText(F.substring(h,m,T),k+p.x,g.offsetY+f+e))}}}else{if(b.border||b.background)b.border?K.context.rect(.5,.5,d.width-1,d.height-1):K.context.rect(0,0,d.width,d.height),b.background&&(d=Q.hex(b.backgroundColor&16777215,6),K.context.fillStyle="#"+d,K.context.fill()),b.border&&(K.context.lineWidth=1,K.context.lineCap="square",d=Q.hex(b.borderColor&16777215,6),
K.context.strokeStyle="#"+d,K.context.stroke());if(-1<this.__caretIndex&&b.selectable&&this.__showCursor){d=-this.get_scrollH();k=h=0;for(e=this.get_scrollV()-1;k<e;)f=k++,h+=b.lineHeights.get(f);K.context.beginPath();b=Q.hex(this.get_defaultTextFormat().color&16777215,6);K.context.strokeStyle="#"+b;K.context.moveTo(d+2.5,h+2.5);K.context.lineWidth=1;K.context.lineTo(d+2.5,h+X.getFormatHeight(this.get_defaultTextFormat())-1);K.context.stroke();K.context.closePath()}}c.__bitmap=ja.fromCanvas(this.__graphics.__canvas);
c.__visible=!0;this.__dirty=!1;c.set___dirty(!1)}}c=!1;0==this.__textEngine.antiAliasType&&1==this.__textEngine.gridFitType&&(c=a.context.imageSmoothingEnabled)&&(a.context.mozImageSmoothingEnabled=!1,a.context.msImageSmoothingEnabled=!1,a.context.imageSmoothingEnabled=!1);null==this.opaqueBackground&&null==this.__graphics||!this.__renderable||0>=this.__worldAlpha||(null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&0<this.get_width()&&0<this.get_height()&&(a.__setBlendMode(this.__worldBlendMode),
a.__pushMaskObject(this),b=a.context,a.setTransform(this.__renderTransform,b),d=this.opaqueBackground,b.fillStyle="rgb("+(d>>>16&255)+","+(d>>>8&255)+","+(d&255)+")",b.fillRect(0,0,this.get_width(),this.get_height()),a.__popMaskObject(this)),null==this.__graphics||!this.__renderable||0>=this.__worldAlpha||(b=this.__graphics,null!=b&&(q.render(b,a),d=b.__width,h=b.__height,null!=b.__canvas&&(k=a.context,e=this.__scrollRect,0<d&&0<h&&(null==e||0<e.width&&0<e.height)&&(a.__setBlendMode(this.__worldBlendMode),
a.__pushMaskObject(this),k.globalAlpha=this.__worldAlpha,a.setTransform(b.__worldTransform,k),a.__isDOM&&(e=1/a.pixelRatio,k.scale(e,e)),k.drawImage(b.__canvas,0,0,d,h),a.__popMaskObject(this))))));c&&(a.context.mozImageSmoothingEnabled=!0,a.context.msImageSmoothingEnabled=!0,a.context.imageSmoothingEnabled=!0)}else c=this.__cacheBitmap,!c.__renderable||0>=c.__worldAlpha||(b=a.context,null!=c.__bitmapData&&c.__bitmapData.__isValid&&c.__bitmapData.readable&&(a.__setBlendMode(c.__worldBlendMode),a.__pushMaskObject(c,
!1),N.convertToCanvas(c.__bitmapData.image),b.globalAlpha=c.__worldAlpha,d=c.__scrollRect,a.setTransform(c.__renderTransform,b),a.__allowSmoothing&&c.smoothing||(b.mozImageSmoothingEnabled=!1,b.msImageSmoothingEnabled=!1,b.imageSmoothingEnabled=!1),null==d?b.drawImage(c.__bitmapData.image.get_src(),0,0,c.__bitmapData.image.width,c.__bitmapData.image.height):b.drawImage(c.__bitmapData.image.get_src(),d.x,d.y,d.width,d.height),a.__allowSmoothing&&c.smoothing||(b.mozImageSmoothingEnabled=!0,b.msImageSmoothingEnabled=
!0,b.imageSmoothingEnabled=!0),a.__popMaskObject(c,!1)))},__renderDOM:function(a){this.__domRender=!0;this.__updateCacheBitmap(a,this.__forceCachedBitmapUpdate);this.__domRender=this.__forceCachedBitmapUpdate=!1;if(null==this.__cacheBitmap||this.__isCacheBitmapRender){this.__renderedOnCanvasWhileOnDOM&&(this.__renderedOnCanvasWhileOnDOM=!1,this.__isHTML&&null!=this.__rawHtmlText&&(this.__updateText(this.__rawHtmlText),this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())));
var b=this,d=b.__textEngine;if(null!=b.stage&&b.__worldVisible&&b.__renderable){if(b.__dirty||b.__renderTransformChanged||null==b.__div)if(""!=d.text||d.background||d.border||1==d.type){null==b.__div&&(b.__div=window.document.createElement("div"),a.__initializeElement(b,b.__div),b.__style.setProperty("outline","none",null),b.__div.addEventListener("input",function(a){a.preventDefault();b.get_htmlText()!=b.__div.innerHTML&&(b.set_htmlText(b.__div.innerHTML),b.__dirty=!1)},!0));d.wordWrap?b.__style.setProperty("word-wrap",
"break-word",null):b.__style.setProperty("white-space","nowrap",null);b.__style.setProperty("overflow","hidden",null);d.selectable?(b.__style.setProperty("cursor","text",null),b.__style.setProperty("-webkit-user-select","text",null),b.__style.setProperty("-moz-user-select","text",null),b.__style.setProperty("-ms-user-select","text",null),b.__style.setProperty("-o-user-select","text",null)):b.__style.setProperty("cursor","inherit",null);b.__div.contentEditable=1==d.type;var c=b.__style;d.background?
c.setProperty("background-color","#"+Q.hex(d.backgroundColor&16777215,6),null):c.removeProperty("background-color");var e=d.width,f=d.height,h=1,k=b.__textFormat.size,n=k,C=b.__renderTransform;if(1!=C.a||1!=C.d)C.a==C.d?(h=C.a,C.a=C.d=1):C.a>C.d?(h=C.a,C.d/=C.a,C.a=1):(h=C.d,C.a/=C.d,C.d=1),n*=h,e=Math.ceil(e*h),f=Math.ceil(f*h);b.__textFormat.size=n;C=d.text;var l=0;if(b.__isHTML){for(var g=C;jb.__regexFont.match(g);){g=jb.__regexFont.matched(0);var m="";jb.__regexFace.match(g)&&(m+="font-family:'"+
jb.__getAttributeMatch(jb.__regexFace)+"';");jb.__regexColor.match(g)&&(m+="color:#"+jb.__getAttributeMatch(jb.__regexColor)+";");if(jb.__regexSize.match(g)){l=jb.__getAttributeMatch(jb.__regexSize);var q=L.cca(l,0);l=parseFloat(l)*h;m+="font-size:"+(43==q||45==q?n+l:l)+"px;"}C=Q.replace(C,g,"<span style='"+m+"'>");g=jb.__regexFont.matchedRight()}C=C.replace(jb.__regexCloseFont.r,"</span>")}else C=Q.htmlEscape(C);C=Q.replace(C,"<p ","<p style='margin-top:0; margin-bottom:0;' ");h=b.__textFormat.leading;
b.__textFormat.leading+=l|0;n=C.replace(/\r\n/g,"<br>");b.__div.innerHTML=n;n=b.__div.innerHTML.replace(/\n/g,"<br>");b.__div.innerHTML=n;n=b.__div.innerHTML.replace(/\r/g,"<br>");b.__div.innerHTML=n;c.setProperty("font",X.getFont(b.__textFormat),null);b.__textFormat.size=k;b.__textFormat.leading=h;c.setProperty("top","3px",null);d.border?(c.setProperty("border","solid 1px #"+Q.hex(d.borderColor&16777215,6),null),b.__renderTransform.translate(-1,-1),b.__renderTransformChanged=!0,b.__transformDirty=
!0):""!=c.border&&(c.removeProperty("border"),b.__renderTransformChanged=!0);c.setProperty("color","#"+Q.hex(b.__textFormat.color&16777215,6),null);c.setProperty("width",e+"px",null);c.setProperty("height",f+"px",null);switch(b.__textFormat.align){case 0:c.setProperty("text-align","center",null);break;case 4:c.setProperty("text-align","right",null);break;default:c.setProperty("text-align","left",null)}b.__dirty=!1}else null!=b.__div&&(a.element.removeChild(b.__div),b.__div=null);null!=b.__div&&(d=
a.__roundPixels,a.__roundPixels=!0,a.__updateClip(b),a.__applyStyle(b,!0,!0,!0),a.__roundPixels=d)}else jb.clear(b,a)}else this.__renderDOMClear(a),this.__cacheBitmap.stage=this.stage,d=this.__cacheBitmap,null!=d.stage&&d.__worldVisible&&d.__renderable&&null!=d.__bitmapData&&d.__bitmapData.__isValid&&d.__bitmapData.readable?(a.__pushMaskObject(d),null!=d.__bitmapData.image.buffer.__srcImage?La.renderImage(d,a):La.renderCanvas(d,a),a.__popMaskObject(d)):La.clear(d,a);this.__renderEvent(a)},__renderDOMClear:function(a){jb.clear(this,
a)},__renderGL:function(a){this.__updateCacheBitmap(a,!1);if(null==this.__cacheBitmap||this.__isCacheBitmapRender){if(Pi.render(this,a,this.__worldTransform),!(null==this.opaqueBackground&&null==this.__graphics||!this.__renderable||0>=this.__worldAlpha)){if(null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&0<this.get_width()&&0<this.get_height()){a.__setBlendMode(this.__worldBlendMode);a.__pushMaskObject(this);var b=a.__context.webgl,d=M.__pool.get();d.setTo(0,0,this.get_width(),this.get_height());
a.__pushMaskRect(d,this.__renderTransform);var c=this.opaqueBackground;b.clearColor((c>>>16&255)/255,(c>>>8&255)/255,(c&255)/255,1);b.clear(b.COLOR_BUFFER_BIT);a.__popMaskRect();a.__popMaskObject(this);M.__pool.release(d)}null!=this.__graphics&&pd.render(this,a)}}else od.render(this.__cacheBitmap,a);this.__renderEvent(a)},__renderGLMask:function(a){Pi.render(this,a,this.__worldTransform);Ma.prototype.__renderGLMask.call(this,a)},__replaceSelectedText:function(a,b){null==b&&(b=!0);null==a&&(a="");
if(""!=a||this.__selectionIndex!=this.__caretIndex){var d=this.__caretIndex<this.__selectionIndex?this.__caretIndex:this.__selectionIndex,c=this.__caretIndex>this.__selectionIndex?this.__caretIndex:this.__selectionIndex;if(!(d==c&&0<this.__textEngine.maxChars&&F.get_length(this.__text)==this.__textEngine.maxChars)){d>F.get_length(this.__text)&&(d=F.get_length(this.__text));c>F.get_length(this.__text)&&(c=F.get_length(this.__text));if(c<d){var e=c;c=d;d=e}0>d&&(d=0);this.__replaceText(d,c,a,b);a=d+
F.get_length(U.__cast(a,String));a>F.get_length(this.__text)&&(a=F.get_length(this.__text));this.setSelection(a,a);this.__updateScrollH()}}},__replaceText:function(a,b,d,c){if(!(b<a||0>a||b>F.get_length(this.__text)||null==d)){c&&(d=this.__textEngine.restrictText(d),0<this.__textEngine.maxChars&&(c=b-a,c=this.__textEngine.maxChars-F.get_length(this.__text)+c,0>=c?d="":c<d.length&&(d=L.substr(d,0,c))));this.__updateText(F.substring(this.__text,0,a)+d+F.substring(this.__text,b));b>F.get_length(this.__text)&&
(b=F.get_length(this.__text));c=d.length-(b-a);for(var e=0,f;e<this.__textEngine.textFormatRanges.get_length();)f=this.__textEngine.textFormatRanges.get(e),f.start<=a&&f.end>=b?(f.end+=c,++e):f.start>=a&&f.end<=b?(0<e?this.__textEngine.textFormatRanges.splice(e,1):(f.start=0,f.end=a+d.length,++e),c-=f.end-f.start):(f.start>a&&f.start<=b&&(f.start+=c),++e);this.__updateScrollH();this.__layoutDirty=this.__dirty=!0;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())}},__shouldCacheHardware:function(a){return 1==
a?!0:!1},__startCursorTimer:function(){this.__cursorTimer=Td.delay(u(this,this.__startCursorTimer),600);this.__showCursor=!this.__showCursor;this.__dirty=!0;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},__startTextInput:function(){0>this.__caretIndex&&(this.__selectionIndex=this.__caretIndex=F.get_length(this.__text));(ha.__supportDOM?this.__renderedOnCanvasWhileOnDOM:1)&&this.__enableInput()},__stopCursorTimer:function(){null!=this.__cursorTimer&&(this.__cursorTimer.stop(),
this.__cursorTimer=null);this.__showCursor&&(this.__showCursor=!1,this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()))},__stopTextInput:function(){(ha.__supportDOM?this.__renderedOnCanvasWhileOnDOM:1)&&this.__disableInput()},__updateCacheBitmap:function(a,b){return null!=this.__filters||"opengl"!=a.__type||null!=this.__cacheBitmap||this.__domRender?Ma.prototype.__updateCacheBitmap.call(this,a,b||this.__dirty)?(null!=this.__cacheBitmap&&(this.__cacheBitmap.__renderTransform.tx-=
this.__offsetX,this.__cacheBitmap.__renderTransform.ty-=this.__offsetY),!0):!1:!1},__updateLayout:function(){if(this.__layoutDirty){var a=this.__textEngine.width;this.__textEngine.update();if(2!=this.__textEngine.autoSize){if(this.__textEngine.width!=a)switch(this.__textEngine.autoSize){case 0:this.set_x(this.get_x()+(a-this.__textEngine.width)/2);break;case 3:this.set_x(this.get_x()+(a-this.__textEngine.width))}this.__textEngine.getBounds()}this.__layoutDirty=!1}},__updateScrollH:function(){if(!this.get_multiline()&&
1==this.get_type()){this.__layoutDirty=!0;this.__updateLayout();var a=this.__textEngine.textWidth-this.__textEngine.width+4;0<a?this.__caretIndex>=F.get_length(this.get_text())?this.set_scrollH(Math.ceil(a)):(a=M.__pool.get(),this.__getCharBoundaries(this.__caretIndex,a),a.x<this.get_scrollH()?this.set_scrollH(Math.floor(a.x-2)):a.x>this.get_scrollH()+this.__textEngine.width&&this.set_scrollH(Math.ceil(a.x-this.__textEngine.width-2)),M.__pool.release(a)):this.set_scrollH(0)}},__updateText:function(a){ha.__supportDOM&&
this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=this.__text!=a);this.__textEngine.set_text(a);this.__text=this.__textEngine.text;F.get_length(this.__text)<this.__caretIndex&&(this.__selectionIndex=this.__caretIndex=F.get_length(this.__text));if(!this.__displayAsPassword||ha.__supportDOM&&!this.__renderedOnCanvasWhileOnDOM)this.__textEngine.set_text(this.__text);else{a="";for(var b=0,d=F.get_length(this.get_text());b<d;)b++,a+="*";this.__textEngine.set_text(a)}},__updateTransforms:function(a){Ma.prototype.__updateTransforms.call(this,
a);a=this.__renderTransform;var b=this.__offsetX,d=this.__offsetY;a.tx=b*a.a+d*a.c+a.tx;a.ty=b*a.b+d*a.d+a.ty},set_autoSize:function(a){a!=this.__textEngine.autoSize&&(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.autoSize=a},set_background:function(a){a!=this.__textEngine.background&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.background=
a},set_border:function(a){a!=this.__textEngine.border&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.border=a},get_defaultTextFormat:function(){return this.__textFormat.clone()},set_defaultTextFormat:function(a){this.__textFormat.__merge(a);this.__dirty=this.__layoutDirty=!0;this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());return a},set_displayAsPassword:function(a){a!=this.__displayAsPassword&&(this.__layoutDirty=
this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__displayAsPassword=a,this.__updateText(this.__text));return a},get_embedFonts:function(){return this.__textEngine.embedFonts},set_embedFonts:function(a){return this.__textEngine.embedFonts=a},get_height:function(){this.__updateLayout();return this.__textEngine.height*Math.abs(this.get_scaleY())},set_height:function(a){a!=this.__textEngine.height&&(this.__setTransformDirty(),this.__layoutDirty=this.__dirty=
!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__textEngine.height=a);return this.__textEngine.height*Math.abs(this.get_scaleY())},get_htmlText:function(){return this.__isHTML?this.__rawHtmlText:this.__text},set_htmlText:function(a){this.__isHTML&&this.__text==a||(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));this.__isHTML=!0;this.__rawHtmlText=a;a=ia.parse(a,this.__textFormat,this.__textEngine.textFormatRanges);
if(ha.__supportDOM){1<this.__textEngine.textFormatRanges.get_length()&&this.__textEngine.textFormatRanges.splice(1,this.__textEngine.textFormatRanges.get_length()-1);var b=this.__textEngine.textFormatRanges.get(0);b.format=this.__textFormat;b.start=0;this.__renderedOnCanvasWhileOnDOM?(b.end=a.length,this.__updateText(a)):(b.end=this.__rawHtmlText.length,this.__updateText(this.__rawHtmlText))}else this.__updateText(a);return a},get_multiline:function(){return this.__textEngine.multiline},set_multiline:function(a){a!=
this.__textEngine.multiline&&(this.__layoutDirty=this.__dirty=!0,this.__updateText(this.__text),this.__updateScrollH(),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.multiline=a},get_scrollH:function(){return this.__textEngine.scrollH},set_scrollH:function(a){this.__updateLayout();a>this.__textEngine.maxScrollH&&(a=this.__textEngine.maxScrollH);0>a&&(a=0);a!=this.__textEngine.scrollH&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,
this.__setParentRenderDirty()),this.dispatchEvent(new R("scroll")));return this.__textEngine.scrollH=a},get_scrollV:function(){return this.__textEngine.scrollV},get_selectable:function(){return this.__textEngine.selectable},set_selectable:function(a){a!=this.__textEngine.selectable&&1==this.get_type()&&(null!=this.stage&&this.stage.get_focus()==this?this.__startTextInput():a||this.__stopTextInput());return this.__textEngine.selectable=a},get_tabEnabled:function(){return null==this.__tabEnabled?1==
this.__textEngine.type:this.__tabEnabled},get_text:function(){return this.__text},set_text:function(a){if(this.__isHTML||this.__text!=a)this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());else return a;1<this.__textEngine.textFormatRanges.get_length()&&this.__textEngine.textFormatRanges.splice(1,this.__textEngine.textFormatRanges.get_length()-1);var b=this.__textEngine.textFormatRanges.get(0);b.format=this.__textFormat;b.start=0;b.end=F.get_length(a);
this.__isHTML=!1;this.__updateText(a);return a},set_textColor:function(a){a!=this.__textFormat.color&&(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));for(var b=0,d=this.__textEngine.textFormatRanges;b<d.get_length();){var c=d.get(b);++b;c.format.color=a}return this.__textFormat.color=a},get_type:function(){return this.__textEngine.type},set_type:function(a){a!=this.__textEngine.type&&(1==a?(this.addEventListener("addedToStage",u(this,this.this_onAddedToStage)),
this.this_onFocusIn(null),this.__textEngine.__useIntAdvances=!0):(this.removeEventListener("addedToStage",u(this,this.this_onAddedToStage)),this.__stopTextInput(),this.__textEngine.__useIntAdvances=null),this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.type=a},get_width:function(){this.__updateLayout();return this.__textEngine.width*Math.abs(this.__scaleX)},set_width:function(a){a!=this.__textEngine.width&&(this.__setTransformDirty(),
this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__textEngine.width=a);return this.__textEngine.width*Math.abs(this.__scaleX)},set_wordWrap:function(a){a!=this.__textEngine.wordWrap&&(this.__layoutDirty=this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return this.__textEngine.wordWrap=a},get_x:function(){return this.__transform.tx+this.__offsetX},set_x:function(a){a!=this.__transform.tx+this.__offsetX&&
this.__setTransformDirty();return this.__transform.tx=a-this.__offsetX},get_y:function(){return this.__transform.ty+this.__offsetY},set_y:function(a){a!=this.__transform.ty+this.__offsetY&&this.__setTransformDirty();return this.__transform.ty=a-this.__offsetY},stage_onMouseMove:function(a){null!=this.stage&&this.__textEngine.selectable&&0<=this.__selectionIndex&&(this.__updateLayout(),a=this.__getPosition(this.get_mouseX()+this.get_scrollH(),this.get_mouseY()),a!=this.__caretIndex&&(this.__caretIndex=
a,ha.__supportDOM?this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=!0):(this.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()))))},stage_onMouseUp:function(a){if(null!=this.stage&&(this.stage.removeEventListener("mouseMove",u(this,this.stage_onMouseMove)),this.stage.removeEventListener("mouseUp",u(this,this.stage_onMouseUp)),this.stage.get_focus()==this)){this.__getWorldTransform();this.__updateLayout();this.get_x();this.get_y();this.get_x();this.get_y();
a=this.__getPosition(this.get_mouseX()+this.get_scrollH(),this.get_mouseY());var b=Math.max(this.__selectionIndex,a)|0;this.__selectionIndex=Math.min(this.__selectionIndex,a)|0;this.__caretIndex=b;this.__inputEnabled&&(this.this_onFocusIn(null),this.__stopCursorTimer(),this.__startCursorTimer(),ha.__supportDOM&&this.__renderedOnCanvasWhileOnDOM&&(this.__forceCachedBitmapUpdate=!0))}},this_onAddedToStage:function(a){this.this_onFocusIn(null)},this_onFocusIn:function(a){1==this.get_type()&&null!=this.stage&&
this.stage.get_focus()==this&&this.__startTextInput()},this_onFocusOut:function(a){this.__stopCursorTimer();null!=a.relatedObject&&a.relatedObject instanceof pb?(null!=this.stage&&(this.stage.window.onTextInput.remove(u(this,this.window_onTextInput)),this.stage.window.onKeyDown.remove(u(this,this.window_onKeyDown))),this.__inputEnabled=!1):this.__stopTextInput();this.__selectionIndex!=this.__caretIndex&&(this.__selectionIndex=this.__caretIndex,this.__dirty=!0,this.__renderDirty||(this.__renderDirty=
!0,this.__setParentRenderDirty()))},this_onKeyDown:function(a){this.get_selectable()&&1!=this.get_type()&&67==a.keyCode&&(a.commandKey||a.ctrlKey)&&this.__caretIndex!=this.__selectionIndex&&Ta.set_text(F.substring(this.__text,this.__caretIndex,this.__selectionIndex))},this_onMouseDown:function(a){if(this.get_selectable()||1==this.get_type())this.__updateLayout(),this.__selectionIndex=this.__caretIndex=this.__getPosition(this.get_mouseX()+this.get_scrollH(),this.get_mouseY()),ha.__supportDOM||(this.__dirty=
!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())),this.stage.addEventListener("mouseMove",u(this,this.stage_onMouseMove)),this.stage.addEventListener("mouseUp",u(this,this.stage_onMouseUp))},window_onKeyDown:function(a,b){switch(a){case 8:this.__selectionIndex==this.__caretIndex&&0<this.__caretIndex&&(this.__selectionIndex=this.__caretIndex-1);this.__selectionIndex!=this.__caretIndex&&(this.replaceSelectedText(""),this.__selectionIndex=this.__caretIndex,this.dispatchEvent(new R("change",
!0)));break;case 97:this.get_selectable()&&(ua.get_metaKey(b)||ua.get_ctrlKey(b))&&(this.__caretIndex=F.get_length(this.__text),this.__selectionIndex=0);break;case 99:(ua.get_metaKey(b)||ua.get_ctrlKey(b))&&this.__caretIndex!=this.__selectionIndex&&Ta.set_text(F.substring(this.__text,this.__caretIndex,this.__selectionIndex));break;case 120:(ua.get_metaKey(b)||ua.get_ctrlKey(b))&&this.__caretIndex!=this.__selectionIndex&&(Ta.set_text(F.substring(this.__text,this.__caretIndex,this.__selectionIndex)),
this.replaceSelectedText(""),this.dispatchEvent(new R("change",!0)));break;case 127:this.__selectionIndex==this.__caretIndex&&this.__caretIndex<F.get_length(this.__text)&&(this.__selectionIndex=this.__caretIndex+1);this.__selectionIndex!=this.__caretIndex&&(this.replaceSelectedText(""),this.__selectionIndex=this.__caretIndex,this.dispatchEvent(new R("change",!0)));break;case 1073741898:this.get_selectable()&&(this.__caretBeginningOfLine(),this.__stopCursorTimer(),this.__startCursorTimer());break;
case 1073741901:this.get_selectable()&&(this.__caretEndOfLine(),this.__stopCursorTimer(),this.__startCursorTimer());break;case 1073741903:this.get_selectable()&&(ua.get_metaKey(b)?(this.__caretEndOfLine(),ua.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex)):ua.get_shiftKey(b)?this.__caretNextCharacter():(this.__selectionIndex==this.__caretIndex?this.__caretNextCharacter():this.__caretIndex=Math.max(this.__caretIndex,this.__selectionIndex)|0,this.__selectionIndex=this.__caretIndex),this.__updateScrollH(),
this.__stopCursorTimer(),this.__startCursorTimer());break;case 1073741904:this.get_selectable()&&(ua.get_metaKey(b)?(this.__caretBeginningOfLine(),ua.get_shiftKey(b)||(this.__selectionIndex=this.__caretIndex)):ua.get_shiftKey(b)?this.__caretPreviousCharacter():(this.__selectionIndex==this.__caretIndex?this.__caretPreviousCharacter():this.__caretIndex=Math.min(this.__caretIndex,this.__selectionIndex)|0,this.__selectionIndex=this.__caretIndex),this.__updateScrollH(),this.__stopCursorTimer(),this.__startCursorTimer());
break;case 1073741905:this.get_selectable()&&this.__textEngine.multiline&&(ua.get_shiftKey(b)?this.__caretNextLine():(this.__selectionIndex==this.__caretIndex?this.__caretNextLine():(a=this.getLineIndexOfChar(Math.max(this.__caretIndex,this.__selectionIndex)|0),this.__caretNextLine(a,Math.min(this.__caretIndex,this.__selectionIndex)|0)),this.__selectionIndex=this.__caretIndex),this.__stopCursorTimer(),this.__startCursorTimer());break;case 1073741906:this.get_selectable()&&this.__textEngine.multiline&&
(ua.get_shiftKey(b)?this.__caretPreviousLine():(this.__selectionIndex==this.__caretIndex?this.__caretPreviousLine():(a=this.getLineIndexOfChar(Math.min(this.__caretIndex,this.__selectionIndex)|0),this.__caretPreviousLine(a,Math.min(this.__caretIndex,this.__selectionIndex)|0)),this.__selectionIndex=this.__caretIndex),this.__stopCursorTimer(),this.__startCursorTimer());break;case 13:case 1073741912:this.__textEngine.multiline&&(a=new xd("textInput",!0,!0,"\n"),this.dispatchEvent(a),a.isDefaultPrevented()||
(this.__replaceSelectedText("\n",!0),this.dispatchEvent(new R("change",!0))))}},window_onTextInput:function(a){this.__replaceSelectedText(a,!0);this.dispatchEvent(new R("change",!0))},__class__:pb});var xc=function(a,b){pb.call(this);var d=b.bounds.get_rect();this.offset=new P(1,0,0,1,d.x,d.y-2);this.set_width(d.width);this.set_height(d.height);this.set_multiline(b.multiline);this.set_wordWrap(b.wordWrap);this.set_displayAsPassword(b.password);this.set_border(b.border);this.set_selectable(!b.noSelect);
d=new dd;b.hasTextColor&&(d.color=b.textColor&16777215);d.size=Math.round(b.fontHeight/20);b.hasFont&&(a=a.getCharacter(b.fontId),a instanceof Jc&&(d.font=U.__cast(a,Jc).fontName,this.set_embedFonts(!0)));if(b.hasLayout){switch(b.align){case 0:d.align=3;break;case 1:d.align=4;break;case 2:d.align=0;break;case 3:d.align=2}d.leftMargin=b.leftMargin/20|0;d.rightMargin=b.rightMargin/20|0;d.indent=b.indent/20|0;d.leading=b.leading/20|0;this.get_embedFonts()&&(d.leading+=4)}this.set_defaultTextFormat(d);
b.hasText&&(b.html?this.set_htmlText(b.initialText):this.set_text(b.initialText));this.set_autoSize(b.autoSize?1:2)};m["format.swf.instance.DynamicText"]=xc;xc.__name__="format.swf.instance.DynamicText";xc.__super__=pb;xc.prototype=v(pb.prototype,{offset:null,__class__:xc});var Hb=function(){ha.call(this)};m["openfl.display.Shape"]=Hb;Hb.__name__="openfl.display.Shape";Hb.__super__=ha;Hb.prototype=v(ha.prototype,{get_graphics:function(){null==this.__graphics&&(this.__graphics=new Db(this));return this.__graphics},
__class__:Hb});var he=function(a,b){ha.call(this);this.handler=new Uc(a);this.tag=b;this.tag.exportHandler=this.handler;this.data=a};m["format.swf.instance.MorphShape"]=he;he.__name__="format.swf.instance.MorphShape";he.__super__=Hb;he.prototype=v(Hb.prototype,{tag:null,handler:null,data:null,render:function(a){null==a&&(a=0);this.tag["export"](a/65536);this.get_graphics().clear();a=0;for(var b=this.handler.commands;a<b.length;){var d=b[a];++a;switch(d._hx_index){case 0:var c=d.smooth,e=d.repeat,
f=d.matrix;d=new Wc(this.data.getCharacter(d.bitmap));null!=d.get_bitmapData()&&this.get_graphics().beginBitmapFill(d.get_bitmapData(),f,e,c);break;case 1:c=d.alpha;d=d.color;this.get_graphics().beginFill(d,c);break;case 2:c=d.focalPointRatio;e=d.interpolationMethod;f=d.spreadMethod;var h=d.matrix,k=d.ratios,n=d.alphas,C=d.colors;d=d.fillType;this.get_graphics().beginGradientFill(d,C,n,k,h,f,e,c);break;case 3:c=d.anchorY;e=d.anchorX;f=d.controlY;d=d.controlX;this.get_graphics().curveTo(d,f,e,c);break;
case 4:this.get_graphics().endFill();break;case 5:c=d.miterLimit;e=d.joints;f=d.caps;h=d.scaleMode;k=d.pixelHinting;n=d.alpha;C=d.color;d=d.thickness;null!=d?this.get_graphics().lineStyle(d,C,n,k,h,f,e,c):this.get_graphics().lineStyle();break;case 6:c=d.y;d=d.x;this.get_graphics().lineTo(d,c);break;case 7:c=d.y,d=d.x,this.get_graphics().moveTo(d,c)}}},__class__:he});var Xa=function(){cb.call(this);this.__currentFrame=1;this.__currentLabels=[];this.__totalFrames=0;this.enabled=!0;null!=Xa.__initSymbol&&
(this.__swf=Xa.__initSWF,this.__symbol=Xa.__initSymbol,Xa.__initSWF=null,Xa.__initSymbol=null,this.__fromSymbol(this.__swf,this.__symbol))};m["openfl.display.MovieClip"]=Xa;Xa.__name__="openfl.display.MovieClip";Xa.__super__=cb;Xa.prototype=v(cb.prototype,{enabled:null,__activeInstances:null,__activeInstancesByFrameObjectID:null,__currentFrame:null,__currentFrameLabel:null,__currentLabel:null,__currentLabels:null,__frameScripts:null,__frameTime:null,__lastFrameScriptEval:null,__lastFrameUpdate:null,
__playing:null,__swf:null,__symbol:null,__timeElapsed:null,__totalFrames:null,gotoAndPlay:function(a,b){this.play();this.__goto(this.__resolveFrameReference(a))},play:function(){null==this.__symbol||this.__playing||2>this.__totalFrames||(this.__playing=!0,this.__frameTime=1E3/this.__swf.frameRate|0,this.__timeElapsed=0)},__enterFrame:function(a){if(null!=this.__symbol&&this.__playing){var b=this.__getNextFrame(a);if(this.__lastFrameScriptEval==b){cb.prototype.__enterFrame.call(this,a);return}if(null!=
this.__frameScripts){if(b<this.__currentFrame){if(!this.__evaluateFrameScripts(this.__totalFrames)){cb.prototype.__enterFrame.call(this,a);return}this.__currentFrame=1}if(!this.__evaluateFrameScripts(b)){cb.prototype.__enterFrame.call(this,a);return}}else this.__currentFrame=b}if(null!=this.__symbol&&this.__currentFrame!=this.__lastFrameUpdate){this.__updateFrameLabel();var d=new Y;b=0;for(var c=this.__currentFrame;b<c;){var e=b++;e=this.__symbol.frames[e];if(null!=e.objects)for(var f=0,h=e.objects;f<
h.length;){var k=h[f];++f;switch(k.type._hx_index){case 0:e=this.__activeInstancesByFrameObjectID.h[k.id];null!=e&&(d.h[k.id]=e,this.__updateDisplayObject(e.displayObject,k,!0));break;case 1:e=d.h[k.id];null!=e&&null!=e.displayObject&&this.__updateDisplayObject(e.displayObject,k);break;case 2:d.remove(k.id)}}}b=[];c=[];for(e=d.iterator();e.hasNext();)d=e.next(),-1==b.indexOf(d)&&(b.push(d),0<d.clipDepth&&c.push(d));b.sort(u(this,this.__sortDepths));f=0;for(h=b.length;f<h;){k=f++;var n=this.__children[k];
e=b[k];d=e.depth;var C=e.displayObject;n!=C?(e=C,this.addChildAt(C,k)):e=this.__children[k];k=!1;for(n=0;n<c.length;)if(C=c[n],++n,d>C.depth&&d<=C.clipDepth){e.set_mask(C.displayObject);k=!0;break}0<c.length&&!k&&null!=e.get_mask()&&e.set_mask(null)}c=b.length;for(e=this.__children.length;c<e;){b=this.__children[c];d=0;for(f=this.__activeInstances;d<f.length;)h=f[d],++d,h.displayObject==b&&(b instanceof Xa&&b.gotoAndPlay(1),this.removeChild(b),--c,--e);++c}this.__lastFrameUpdate=this.__currentFrame}cb.prototype.__enterFrame.call(this,
a)},__evaluateFrameScripts:function(a){var b=this.__currentFrame;for(a+=1;b<a;){var d=b++;if(d!=this.__lastFrameScriptEval){this.__currentFrame=this.__lastFrameScriptEval=d;if(this.__frameScripts.h.hasOwnProperty(d)&&((0,this.__frameScripts.h[d])(),this.__currentFrame!=d))return!1;if(!this.__playing)break}}return!0},__fromSymbol:function(a,b){var d=this;if(null==this.__activeInstances){this.__swf=a;this.__symbol=b;this.__activeInstances=[];this.__activeInstancesByFrameObjectID=new Y;this.__currentFrame=
1;this.__lastFrameUpdate=this.__lastFrameScriptEval=-1;this.__totalFrames=this.__symbol.frames.length;for(var c=0,e=this.__symbol.frames.length;c<e;){var f=c++;a=f+1;b=this.__symbol.frames[f];null!=b.label&&this.__currentLabels.push(new Ff(b.label,f+1));if(null!=b.script)null==this.__frameScripts&&(this.__frameScripts=new Y),this.__frameScripts.h[a]=b.script;else if(null!=b.scriptSource){null==this.__frameScripts&&(this.__frameScripts=new Y);try{var h=function(a){return function(){try{a[0].call(d)}catch(A){fa.lastException=
A;var b=A instanceof w?A.val:A;ra.trace("Error evaluating frame script\n "+S.string(b)+"\n"+fa.exceptionStack().map(function(){return function(a){return a[2]}}()).join("\n")+"\n"+S.string(b.stack)+"\n"+a[0].toString(),{fileName:"openfl/display/MovieClip.hx",lineNumber:699,className:"openfl.display.MovieClip",methodName:"__fromSymbol"})}}}([eval("(function(){"+b.scriptSource+"})")]);this.__frameScripts.h[a]=h}catch(ca){fa.lastException=ca,null!=this.__symbol.className?Ja.warn('Unable to evaluate frame script source for symbol "'+
this.__symbol.className+'" frame '+a+"\n"+b.scriptSource,{fileName:"openfl/display/MovieClip.hx",lineNumber:715,className:"openfl.display.MovieClip",methodName:"__fromSymbol"}):Ja.warn("Unable to evaluate frame script source:\n"+b.scriptSource,{fileName:"openfl/display/MovieClip.hx",lineNumber:719,className:"openfl.display.MovieClip",methodName:"__fromSymbol"})}}}a=0;for(b=this.__totalFrames;a<b;)if(c=a++,h=c+1,e=this.__symbol.frames[c],null!=e.objects){c=0;for(var k=e.objects;c<k.length;){var n=
k[c];++c;if(n.type==ml.CREATE&&!this.__activeInstancesByFrameObjectID.h.hasOwnProperty(n.id)){e=null;f=!1;var C=0;for(var l=this.__activeInstances;C<l.length;){var g=l[C];++C;if(null!=g.displayObject&&g.characterID==n.symbol&&g.depth==n.depth){e=g;f=!0;break}}null==e&&(C=this.__swf.symbols.h[n.symbol],null!=C&&(C=C.__createObject(this.__swf),null!=C&&(C.parent=this,C.stage=this.stage,null!=this.stage&&C.dispatchEvent(new R("addedToStage",!1,!1)),e=new Qi(h,n.id,n.symbol,n.depth,C,n.clipDepth))));
null!=e&&(this.__activeInstancesByFrameObjectID.h[n.id]=e,f||(this.__activeInstances.push(e),this.__updateDisplayObject(e.displayObject,n)))}}}1<this.__totalFrames&&this.play();this.__enterFrame(0);h=0;for(a=Ea.getInstanceFields(U.getClass(this));h<a.length;)for(b=a[h],++h,c=0,e=this.__children;c<e.length;)f=e[c],++c,f.get_name()==b&&(this[b]=f)}},__getNextFrame:function(a){this.__timeElapsed+=a;a=this.__currentFrame+Math.floor(this.__timeElapsed/this.__frameTime);1>a&&(a=1);a>this.__totalFrames&&
(a=Math.floor((a-1)%this.__totalFrames)+1);this.__timeElapsed%=this.__frameTime;return a},__goto:function(a){null!=this.__symbol&&(1>a?a=1:a>this.__totalFrames&&(a=this.__totalFrames),this.__currentFrame=a,this.__enterFrame(0))},__resolveFrameReference:function(a){if("number"==typeof a&&(a|0)===a)return a;if("string"==typeof a){for(var b=0,d=this.__currentLabels;b<d.length;){var c=d[b];++b;if(c.get_name()==a)return c.get_frame()}throw new w(new bf("Error #2109: Frame label "+a+" not found in scene."));
}throw new w("Invalid type for frame "+a.__name__);},__sortDepths:function(a,b){return a.depth-b.depth},__updateDisplayObject:function(a,b,d){null==d&&(d=!1);if(null!=a){null!=b.name&&a.set_name(b.name);null!=b.matrix&&a.get_transform().set_matrix(b.matrix);null!=b.colorTransform?a.get_transform().set_colorTransform(b.colorTransform):d&&!a.get_transform().get_colorTransform().__isDefault()&&a.get_transform().set_colorTransform(new Ca);if(null!=b.filters){d=[];for(var c=0,e=b.filters;c<e.length;){var f=
e[c];++c;switch(f._hx_index){case 0:d.push(new vc(f.blurX,f.blurY,f.quality));break;case 1:d.push(new hd(f.matrix));break;case 2:d.push(new Fe(f.distance,f.angle,f.color,f.alpha,f.blurX,f.blurY,f.strength,f.quality,f.inner,f.knockout,f.hideObject));break;case 3:d.push(new yb(f.color,f.alpha,f.blurX,f.blurY,f.strength,f.quality,f.inner,f.knockout))}}a.set_filters(d)}else a.set_filters(null);null!=b.visible&&a.set_visible(b.visible);null!=b.blendMode&&a.set_blendMode(b.blendMode)}},__updateFrameLabel:function(){this.__currentFrameLabel=
this.__symbol.frames[this.__currentFrame-1].label;if(null!=this.__currentFrameLabel)this.__currentLabel=this.__currentFrameLabel;else{this.__currentLabel=null;for(var a=0,b=this.__currentLabels;a<b.length;){var d=b[a];++a;if(d.get_frame()<this.__currentFrame)this.__currentLabel=d.get_name();else break}}},__class__:Xa});var Ia=function(a){this._scale9ScaleX=this._scale9ScaleY=1;Xa.call(this);this.data=a;Ia.initialized||(Ia.clips=[],Ia.initialized=!0);this.__currentFrame=1;this.__totalFrames=a.frames.length;
this.__currentLabels=[];for(var b=a.frameLabels.keys();b.hasNext();){var d=b.next();this.__currentLabels.push(new Ff(a.frameLabels.h[d],d+1))}0<this.__currentLabels.length&&this.__currentLabels.sort(function(a,b){return a.get_frame()-b.get_frame()});this.objectPool=new Y;this.activeObjects=[];this.update();1<this.__totalFrames&&this.play()};m["format.swf.instance.MovieClip"]=Ia;Ia.__name__="format.swf.instance.MovieClip";Ia.stage_onEnterFrame=function(a){a=0;for(var b=Ia.clips;a<b.length;){var d=
b[a];++a;d.enterFrame()}};Ia.__super__=Xa;Ia.prototype=v(Xa.prototype,{data:null,lastUpdate:null,playing:null,objectPool:null,activeObjects:null,_scale9BitmapGrid:null,_scale9BitmapData:null,_scale9ScaleX:null,_scale9ScaleY:null,enterFrame:function(){this.lastUpdate==this.__currentFrame&&(this.__currentFrame++,this.__currentFrame>this.__totalFrames&&(this.__currentFrame=1));this.update()},flatten:function(){var a=this.getBounds(this),b=null;if(0<a.width&&0<a.height){b=new ja(a.width|0,a.height|0,
!0,0);var d=new P;d.translate(-a.get_left(),-a.get_top());b.draw(this,d)}d=0;for(var c=this.get_numChildren();d<c;){d++;var e=this.getChildAt(0);e instanceof Ia&&e.stop();this.removeChildAt(0)}0<a.width&&0<a.height&&(b=new Lb(b),b.smoothing=!0,b.set_x(a.get_left()),b.set_y(a.get_top()),this.addChild(b));this.stop()},getFrame:function(a){var b=1;"number"==typeof a&&(a|0)===a?(b=a,1>b&&(b=1),b>this.__totalFrames&&(b=this.__totalFrames)):"string"==typeof a&&(b=this.data.frameIndexes,(null!=t[a]?b.existsReserved(a):
b.h.hasOwnProperty(a))?(b=this.data.frameIndexes,b=null!=t[a]?b.getReserved(a):b.h[a]):b=1);return b},gotoAndPlay:function(a,b){this.__currentFrame=this.getFrame(a);this.update();this.play()},play:function(){!this.playing&&1<this.__totalFrames&&(this.playing=!0,Ia.clips.push(this),Ba.get_current().stage.removeEventListener("enterFrame",Ia.stage_onEnterFrame),Ba.get_current().stage.addEventListener("enterFrame",Ia.stage_onEnterFrame))},getDisplayObject:function(a){var b=null,d=this.data.getCharacter(a);
d instanceof ic?(b=new Ia(d),a=this.data.getScalingGrid(a),null!=a&&(a=a.splitter.get_rect().clone(),U.__cast(b,Ia).set_scale9BitmapGrid(a))):d instanceof vb||d instanceof Sa?b=new Lb(d):d instanceof Pb?b=new Jd(this.data,d):d instanceof Yb?b=new jd(this.data,d):d instanceof $b?b=new xc(this.data,d):d instanceof wc?b=new jc(this.data,d):d instanceof uc&&(b=new he(this.data,d));return b},stop:function(){this.playing&&(this.playing=!1,L.remove(Ia.clips,this),0==Ia.clips.length&&Ba.get_current().stage.removeEventListener("enterFrame",
Ia.stage_onEnterFrame))},unflatten:function(){var a=this.getChildAt(0);null!=a&&a instanceof Lb&&(this.removeChild(a),a.set_bitmapData(null));this.lastUpdate=-1;this.update()},update:function(){if(this.__currentFrame!=this.lastUpdate){var a=this.__currentFrame-1;if(-1<a){this.__currentFrameLabel=this.data.frames[a].label;null!=this.__currentFrameLabel&&(this.__currentLabel=this.__currentFrameLabel);var b=this.data.frames[a];if(null!=b){a=[];for(var d=0,c=this.activeObjects;d<c.length;){var e=c[d];
++d;var f=b.objects.h[e.frameObject.depth];null==f||f.characterId!=e.frameObject.characterId?(f=this.objectPool.h[e.frameObject.characterId],null==f&&(f=new hb,this.objectPool.h[e.frameObject.characterId]=f),f.push(e),this.removeChild(e.object),null!=e.object.get_name()?(f=e.object.get_name(),f=Object.prototype.hasOwnProperty.call(this,f)):f=!1,f&&V.deleteField(this,e.object.get_name())):a.push(e)}this.activeObjects=a;a=null;d=0;for(c=b.getObjectsSortedByDepth();d<c.length;){e=c[d];++d;b=null;f=this.activeObjects.length-
1;if(-1<f)for(;-1<f&&(this.activeObjects[f].frameObject.characterId!=e.characterId||this.activeObjects[f].frameObject.characterId==e.characterId&&this.activeObjects[f].frameObject.depth!=e.depth);)--f;-1<f?(b=this.activeObjects[f],b.frameObject=e,f=b.object):(f=this.objectPool.h[e.characterId],null==f||f.isEmpty()?(f=this.getDisplayObject(e.characterId),null!=f&&(b={object:f,frameObject:e},this.activeObjects.push(b))):(b=f.pop(),b.frameObject=e,this.activeObjects.push(b),f=b.object));if(null!=f){var h=
this.data.tags[e.placedAtIndex],k=null;0<e.lastModifiedAtIndex&&(k=this.data.tags[e.lastModifiedAtIndex]);null!=k&&k.hasName?f.set_name(k.instanceName):h.hasName&&f.set_name(h.instanceName);var n=f.get_scaleX(),C=f.get_scaleY();if(null!=k){if(k.hasMatrix){var l=k.matrix.get_matrix();l.tx*=.05;l.ty*=.05;if(f instanceof xc){var g=U.__cast(f,xc).offset.clone();g.concat(l);l=g}f.get_transform().set_matrix(l)}}else h.hasMatrix&&(l=h.matrix.get_matrix(),l.tx*=.05,l.ty*=.05,f instanceof xc&&(g=U.__cast(f,
xc).offset.clone(),g.concat(l),l=g),f.get_transform().set_matrix(l));f instanceof Ia&&(l=U.__cast(f,Ia),null==l.get_scale9BitmapGrid()||l.get_transform().get_matrix().a==n&&l.get_transform().get_matrix().d==C||(l._scale9ScaleX=l.get_transform().get_matrix().a,l._scale9ScaleY=l.get_transform().get_matrix().d,n=l.get_transform().get_matrix(),n.a=1,n.d=1,l.get_transform().set_matrix(n),null!=l._scale9BitmapData&&l.drawScale9Bitmap(l._scale9BitmapData,l._scale9BitmapData.width*l._scale9ScaleX,l._scale9BitmapData.height*
l._scale9ScaleY,l._scale9BitmapGrid)));null!=k?k.hasColorTransform&&f.get_transform().set_colorTransform(k.colorTransform.get_colorTransform()):h.hasColorTransform&&f.get_transform().set_colorTransform(h.colorTransform.get_colorTransform());if(null!=k){if(k.hasFilterList){h=[];n=0;for(C=k.surfaceFilterList.length;n<C;)l=n++,h[l]=k.surfaceFilterList[l].get_filter();f.set_filters(h)}}else if(h.hasFilterList){n=[];C=0;for(l=h.surfaceFilterList.length;C<l;)g=C++,n[g]=h.surfaceFilterList[g].get_filter();
f.set_filters(n)}f instanceof he&&null!=k&&U.__cast(f,he).render(k.ratio);null!=a?a.frameObject.clipDepth<e.depth?a=null:f.set_mask(a.object):f.set_mask(null);0!=e.clipDepth&&null!=e.clipDepth&&(a=b,f.set_visible(!1));this.addChild(f)}}}}}this.lastUpdate=this.__currentFrame},drawScale9Bitmap:function(a,b,d,c){this.get_graphics().clear();var e=new P,f=[0,c.get_left(),c.get_right(),a.width];c=[0,c.get_top(),c.get_bottom(),a.height];var h=a.width-(f[2]-f[1]),k=a.height-(c[2]-c[1]);b=(b-h)/(a.width-h);
d=(d-k)/(a.height-k);h=k=0;for(var n,C=0,l=0;3>l;){for(var g=l++,m=0;3>m;){var q=m++,A=f[q],p=c[g];n=f[q+1]-f[q];C=c[g+1]-c[g];e.identity();e.translate(k-A,h-p);1==g&&(C*=d,e.scale(1,d),e.translate(0,h-p*d));1==q&&(n*=b,e.scale(b,1),e.translate(k-A*b,0));this.get_graphics().beginBitmapFill(a,e,!1,!0);this.get_graphics().drawRect(k,h,n,C);this.get_graphics().endFill();k+=n}k=0;h+=C}},set_scaleX:function(a){null==this._scale9BitmapGrid?Xa.prototype.set_scaleX.call(this,a):(Xa.prototype.set_scaleX.call(this,
1),this._scale9ScaleX=a,null!=this._scale9BitmapData&&this.drawScale9Bitmap(this._scale9BitmapData,this._scale9BitmapData.width*this._scale9ScaleX,this._scale9BitmapData.height*this._scale9ScaleY,this._scale9BitmapGrid));return a},get_scaleX:function(){return null==this._scale9BitmapGrid?Xa.prototype.get_scaleX.call(this):this._scale9ScaleX},set_scaleY:function(a){null==this._scale9BitmapGrid?Xa.prototype.set_scaleY.call(this,a):(Xa.prototype.set_scaleY.call(this,1),this._scale9ScaleY=a,null!=this._scale9BitmapData&&
this.drawScale9Bitmap(this._scale9BitmapData,this._scale9BitmapData.width*this._scale9ScaleX,this._scale9BitmapData.height*this._scale9ScaleY,this._scale9BitmapGrid));return a},get_scaleY:function(){return null==this._scale9BitmapGrid?Xa.prototype.get_scaleY.call(this):this._scale9ScaleY},set_width:function(a){null==this._scale9BitmapGrid?Xa.prototype.set_width.call(this,a):(this._scale9ScaleX=a/this._scale9BitmapData.width,null!=this._scale9BitmapData&&this.drawScale9Bitmap(this._scale9BitmapData,
this._scale9BitmapData.width*this._scale9ScaleX,this._scale9BitmapData.height*this._scale9ScaleY,this._scale9BitmapGrid));return a},set_height:function(a){null==this._scale9BitmapGrid?Xa.prototype.set_height.call(this,a):(this._scale9ScaleY=a/this._scale9BitmapData.height,null!=this._scale9BitmapData&&this.drawScale9Bitmap(this._scale9BitmapData,this._scale9BitmapData.width*this._scale9ScaleX,this._scale9BitmapData.height*this._scale9ScaleY,this._scale9BitmapGrid));return a},get_scale9BitmapGrid:function(){return this._scale9BitmapGrid},
set_scale9BitmapGrid:function(a){this._scale9BitmapGrid=a;if(null!=this._scale9BitmapGrid){this.flatten();var b=U.__cast(this.getChildAt(0),Lb);this._scale9BitmapData=b.get_bitmapData();null!=this._scale9BitmapData&&this.drawScale9Bitmap(this._scale9BitmapData,this._scale9BitmapData.width*this._scale9ScaleX,this._scale9BitmapData.height*this._scale9ScaleY,this._scale9BitmapGrid);this.removeChild(b)}else this.unflatten();return a},__class__:Ia});var Jd=function(a,b){ha.call(this);if(null!=b){var d=
new Uc(a);b["export"](d);b=0;for(d=d.commands;b<d.length;){var c=d[b];++b;switch(c._hx_index){case 0:var e=c.smooth,f=c.repeat,h=c.matrix;c=new Wc(a.getCharacter(c.bitmap));null!=c.get_bitmapData()&&this.get_graphics().beginBitmapFill(c.get_bitmapData(),h,f,e);break;case 1:e=c.alpha;c=c.color;this.get_graphics().beginFill(c,e);break;case 2:e=c.focalPointRatio;f=c.interpolationMethod;h=c.spreadMethod;var k=c.matrix,n=c.ratios,C=c.alphas,l=c.colors;c=c.fillType;this.get_graphics().beginGradientFill(c,
l,C,n,k,h,f,e);break;case 3:e=c.anchorY;f=c.anchorX;h=c.controlY;c=c.controlX;this.get_graphics().curveTo(c,h,f,e);break;case 4:this.get_graphics().endFill();break;case 5:e=c.miterLimit;f=c.joints;h=c.caps;k=c.scaleMode;n=c.pixelHinting;C=c.alpha;l=c.color;c=c.thickness;null!=c?this.get_graphics().lineStyle(c,l,C,n,k,h,f,e):this.get_graphics().lineStyle();break;case 6:e=c.y;c=c.x;this.get_graphics().lineTo(c,e);break;case 7:e=c.y,c=c.x,this.get_graphics().moveTo(c,e)}}}};m["format.swf.instance.Shape"]=
Jd;Jd.__name__="format.swf.instance.Shape";Jd.__super__=Hb;Jd.prototype=v(Hb.prototype,{__class__:Jd});var ac=function(a,b,d,c){Ma.call(this);this.enabled=!0;this.trackAsMenu=!1;this.useHandCursor=!0;this.__upState=null!=a?a:new ha;this.__overState=b;this.__downState=d;this.set_hitTestState(null!=c?c:new ha);this.addEventListener("mouseDown",u(this,this.__this_onMouseDown));this.addEventListener("mouseOut",u(this,this.__this_onMouseOut));this.addEventListener("mouseOver",u(this,this.__this_onMouseOver));
this.addEventListener("mouseUp",u(this,this.__this_onMouseUp));this.__tabEnabled=!0;this.set___currentState(this.__upState);null!=ac.__initSymbol&&(a=ac.__initSWF,this.__symbol=ac.__initSymbol,ac.__initSWF=null,ac.__initSymbol=null,this.__fromSymbol(a,this.__symbol))};m["openfl.display.SimpleButton"]=ac;ac.__name__="openfl.display.SimpleButton";ac.__super__=Ma;ac.prototype=v(Ma.prototype,{enabled:null,trackAsMenu:null,useHandCursor:null,__currentState:null,__downState:null,__hitTestState:null,__ignoreEvent:null,
__overState:null,__previousStates:null,__symbol:null,__upState:null,__fromSymbol:function(a,b){this.__symbol=b;null!=b.downState&&this.set_downState(b.downState.__createObject(a));null!=b.hitState&&this.set_hitTestState(b.hitState.__createObject(a));null!=b.overState&&this.set_overState(b.overState.__createObject(a));null!=b.upState&&this.set_upState(b.upState.__createObject(a))},__getBounds:function(a,b){Ma.prototype.__getBounds.call(this,a,b);var d=P.__pool.get(),c=this.__currentState.__transform;
d.a=c.a*b.a+c.b*b.c;d.b=c.a*b.b+c.b*b.d;d.c=c.c*b.a+c.d*b.c;d.d=c.c*b.b+c.d*b.d;d.tx=c.tx*b.a+c.ty*b.c+b.tx;d.ty=c.tx*b.b+c.ty*b.d+b.ty;this.__currentState.__getBounds(a,d);P.__pool.release(d)},__getCursor:function(){return this.useHandCursor&&!this.__ignoreEvent?ji.POINTER:null},__hitTest:function(a,b,d,c,e,f){var h=!1;if(null!=this.get_hitTestState())this.get_hitTestState().__hitTest(a,b,d,c,e,f)&&(null!=c&&(0==c.length?c[0]=f:c[c.length-1]=f),h=!0);else if(null!=this.__currentState){if(!f.get_visible()||
this.__isMask||e&&!this.mouseEnabled||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;this.__currentState.__hitTest(a,b,d,c,e,f)&&(h=e)}if(null!=c)for(;1<c.length&&c[c.length-1]==c[c.length-2];)c.pop();return h},__hitTestMask:function(a,b){var d=!1;this.__currentState.__hitTestMask(a,b)&&(d=!0);return d},__renderCairo:function(a){!this.__renderable||0>=this.__worldAlpha||null==this.__currentState||(a.__pushMaskObject(this),this.__currentState.__renderCairo(a),a.__popMaskObject(this),
this.__renderEvent(a))},__renderCairoMask:function(a){this.__currentState.__renderCairoMask(a)},__renderCanvas:function(a){!this.__renderable||0>=this.__worldAlpha||null==this.__currentState||(a.__pushMaskObject(this),this.__currentState.__renderCanvas(a),a.__popMaskObject(this),this.__renderEvent(a))},__renderCanvasMask:function(a){this.__currentState.__renderCanvasMask(a)},__renderDOM:function(a){a.__pushMaskObject(this);for(var b=0,d=this.__previousStates;b<d.get_length();){var c=d.get(b);++b;
c.__renderDOM(a)}this.__previousStates.set_length(0);null!=this.__currentState&&(this.__currentState.stage!=this.stage&&this.__currentState.__setStageReference(this.stage),this.__currentState.__renderDOM(a));a.__popMaskObject(this);this.__renderEvent(a)},__renderGL:function(a){!this.__renderable||0>=this.__worldAlpha||null==this.__currentState||(a.__pushMaskObject(this),this.__currentState.__renderGL(a),a.__popMaskObject(this),this.__renderEvent(a))},__renderGLMask:function(a){null!=this.__currentState&&
this.__currentState.__renderGLMask(a)},__setStageReference:function(a){Ma.prototype.__setStageReference.call(this,a);null!=this.__currentState&&this.__currentState.__setStageReference(a);null!=this.get_hitTestState()&&this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__setStageReference(a)},__setTransformDirty:function(){Ma.prototype.__setTransformDirty.call(this);null!=this.__currentState&&this.__currentState.__setTransformDirty();null!=this.get_hitTestState()&&this.get_hitTestState()!=
this.__currentState&&this.get_hitTestState().__setTransformDirty()},__update:function(a,b){Ma.prototype.__update.call(this,a,b);b&&(null!=this.__currentState&&this.__currentState.__update(a,!0),null!=this.get_hitTestState()&&this.get_hitTestState()!=this.__currentState&&this.get_hitTestState().__update(a,!0))},__updateTransforms:function(a){Ma.prototype.__updateTransforms.call(this,a);null!=this.__currentState&&this.__currentState.__updateTransforms();null!=this.get_hitTestState()&&this.get_hitTestState()!=
this.__currentState&&this.get_hitTestState().__updateTransforms()},get_downState:function(){return this.__downState},set_downState:function(a){null!=this.__downState&&this.__currentState==this.__downState&&this.set___currentState(this.__downState);return this.__downState=a},get_hitTestState:function(){return this.__hitTestState},set_hitTestState:function(a){null!=this.__hitTestState&&this.__hitTestState!=a&&this.__hitTestState!=this.get_downState()&&this.__hitTestState!=this.get_upState()&&this.__hitTestState!=
this.get_overState()&&(this.__hitTestState.__renderParent=null);null!=a&&(a.__renderParent=this,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));return this.__hitTestState=a},get_overState:function(){return this.__overState},set_overState:function(a){null!=this.__overState&&this.__currentState==this.__overState&&this.set___currentState(a);return this.__overState=a},get_upState:function(){return this.__upState},set_upState:function(a){null!=this.__upState&&this.__currentState==this.__upState&&
this.set___currentState(a);return this.__upState=a},set___currentState:function(a){null!=this.__currentState&&this.__currentState!=this.get_hitTestState()&&(this.__currentState.__renderParent=null);null!=a&&null!=a.parent&&a.parent.removeChild(a);ha.__supportDOM&&null==this.__previousStates&&(this.__previousStates=tb.toObjectVector(null));if(a!=this.__currentState){if(ha.__supportDOM){null!=this.__currentState&&(this.__currentState.__setStageReference(null),this.__previousStates.push(this.__currentState));
var b=this.__previousStates.indexOf(a,0);-1<b&&this.__previousStates.splice(b,1)}null!=a&&(a.__renderParent=this,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())}return this.__currentState=a},__this_onMouseDown:function(a){this.set___currentState(this.get_downState())},__this_onMouseOut:function(a){this.__ignoreEvent=!1;this.get_upState()!=this.__currentState&&this.set___currentState(this.get_upState())},__this_onMouseOver:function(a){a.buttonDown&&
(this.__ignoreEvent=!0);this.get_overState()==this.__currentState||null==this.get_overState()||this.__ignoreEvent||this.set___currentState(this.get_overState())},__this_onMouseUp:function(a){this.__ignoreEvent=!1;null!=this.get_overState()?this.set___currentState(this.get_overState()):this.set___currentState(this.get_upState())},__class__:ac});var jc=function(a,b){ac.call(this);this.data=a;this.tag=b;a=0;for(var d=b.characters.length;a<d;){var c=a++;c=b.characters[c];if(c.stateUp){this.set_upState(new cb);
var e=this.data.getCharacter(c.characterId);var f=null;e instanceof ic?f=new Ia(e):e instanceof vb||e instanceof Sa?f=new Wc(e):e instanceof Pb?f=new Jd(this.data,e):e instanceof Yb?f=new jd(this.data,e):e instanceof $b?f=new xc(this.data,e):e instanceof wc&&(f=new jc(this.data,e));e=f;ra.trace(e,{fileName:"../../submodules/openfl/scripts/format/swf/instance/SimpleButton.hx",lineNumber:54,className:"format.swf.instance.SimpleButton",methodName:"new"});if(null!=e){f=this.get_upState();null!=c.placeMatrix&&
e.get_transform().set_matrix(new P(c.placeMatrix.get_matrix().a,c.placeMatrix.get_matrix().b,c.placeMatrix.get_matrix().c,c.placeMatrix.get_matrix().d,c.placeMatrix.get_matrix().tx/20,c.placeMatrix.get_matrix().ty/20));if(c.hasFilterList){for(var h=[],k=0,n=c.filterList.length;k<n;){var C=k++;h.push(c.filterList[C].get_filter())}e.set_filters(h)}c.hasBlendMode&&e.set_blendMode(jc.blendModes[c.blendMode]);null!=c.colorTransform&&e.get_transform().set_colorTransform(c.colorTransform.get_colorTransform());
f=U.__cast(f,cb);f.addChildAt(e,f.get_numChildren()<c.placeDepth?f.get_numChildren():c.placeDepth-1)}}if(c.stateOver&&(this.set_overState(new cb),e=this.data.getCharacter(c.characterId),f=null,e instanceof ic?f=new Ia(e):e instanceof vb||e instanceof Sa?f=new Wc(e):e instanceof Pb?f=new Jd(this.data,e):e instanceof Yb?f=new jd(this.data,e):e instanceof $b?f=new xc(this.data,e):e instanceof wc&&(f=new jc(this.data,e)),e=f,null!=e)){f=this.get_overState();null!=c.placeMatrix&&e.get_transform().set_matrix(new P(c.placeMatrix.get_matrix().a,
c.placeMatrix.get_matrix().b,c.placeMatrix.get_matrix().c,c.placeMatrix.get_matrix().d,c.placeMatrix.get_matrix().tx/20,c.placeMatrix.get_matrix().ty/20));if(c.hasFilterList){h=[];k=0;for(n=c.filterList.length;k<n;)C=k++,h.push(c.filterList[C].get_filter());e.set_filters(h)}c.hasBlendMode&&e.set_blendMode(jc.blendModes[c.blendMode]);null!=c.colorTransform&&e.get_transform().set_colorTransform(c.colorTransform.get_colorTransform());f=U.__cast(f,cb);f.addChildAt(e,f.get_numChildren()<c.placeDepth?f.get_numChildren():
c.placeDepth-1)}if(c.stateDown&&(this.set_downState(new cb),e=this.data.getCharacter(c.characterId),f=null,e instanceof ic?f=new Ia(e):e instanceof vb||e instanceof Sa?f=new Wc(e):e instanceof Pb?f=new Jd(this.data,e):e instanceof Yb?f=new jd(this.data,e):e instanceof $b?f=new xc(this.data,e):e instanceof wc&&(f=new jc(this.data,e)),e=f,null!=e)){f=this.get_downState();null!=c.placeMatrix&&e.get_transform().set_matrix(new P(c.placeMatrix.get_matrix().a,c.placeMatrix.get_matrix().b,c.placeMatrix.get_matrix().c,
c.placeMatrix.get_matrix().d,c.placeMatrix.get_matrix().tx/20,c.placeMatrix.get_matrix().ty/20));if(c.hasFilterList){h=[];k=0;for(n=c.filterList.length;k<n;)C=k++,h.push(c.filterList[C].get_filter());e.set_filters(h)}c.hasBlendMode&&e.set_blendMode(jc.blendModes[c.blendMode]);null!=c.colorTransform&&e.get_transform().set_colorTransform(c.colorTransform.get_colorTransform());f=U.__cast(f,cb);f.addChildAt(e,f.get_numChildren()<c.placeDepth?f.get_numChildren():c.placeDepth-1)}if(c.stateHitTest&&(this.set_hitTestState(new cb),
e=this.data.getCharacter(c.characterId),f=null,e instanceof ic?f=new Ia(e):e instanceof vb||e instanceof Sa?f=new Wc(e):e instanceof Pb?f=new Jd(this.data,e):e instanceof Yb?f=new jd(this.data,e):e instanceof $b?f=new xc(this.data,e):e instanceof wc&&(f=new jc(this.data,e)),e=f,null!=e)){f=this.get_hitTestState();null!=c.placeMatrix&&e.get_transform().set_matrix(new P(c.placeMatrix.get_matrix().a,c.placeMatrix.get_matrix().b,c.placeMatrix.get_matrix().c,c.placeMatrix.get_matrix().d,c.placeMatrix.get_matrix().tx/
20,c.placeMatrix.get_matrix().ty/20));if(c.hasFilterList){h=[];k=0;for(n=c.filterList.length;k<n;)C=k++,h.push(c.filterList[C].get_filter());e.set_filters(h)}c.hasBlendMode&&e.set_blendMode(jc.blendModes[c.blendMode]);null!=c.colorTransform&&e.get_transform().set_colorTransform(c.colorTransform.get_colorTransform());f=U.__cast(f,cb);f.addChildAt(e,f.get_numChildren()<c.placeDepth?f.get_numChildren():c.placeDepth-1)}}};m["format.swf.instance.SimpleButton"]=jc;jc.__name__="format.swf.instance.SimpleButton";
jc.__super__=ac;jc.prototype=v(ac.prototype,{data:null,tag:null,__class__:jc});var jd=function(a,b){ha.call(this);for(var d=null,c,e=.05*b.textMatrix.get_matrix().tx,f=.05*b.textMatrix.get_matrix().ty,h=0,k=0,n=b.records;k<n.length;){var C=n[k];++k;var l=C.textHeight/1024*.05;c=d;d=b.textMatrix.get_matrix().clone();d.scale(l,l);C.hasColor&&(h=C.textColor&16777215);null==c||!C.hasColor&&!C.hasFont||C.hasXOffset||C.hasYOffset?(d.tx=C.hasXOffset?e+.05*C.xOffset:e,d.ty=C.hasYOffset?f+.05*C.yOffset:f):
(d.tx=c.tx,d.ty=c.ty);c=0;for(l=C.glyphEntries.length;c<l;){var g=c++;this.get_graphics().lineStyle();this.get_graphics().beginFill(h,1);this.renderGlyph(a.getCharacter(C.fontId),C.glyphEntries[g].index,d.a,d.tx,d.ty);this.get_graphics().endFill();d.tx+=.05*C.glyphEntries[g].advance}}};m["format.swf.instance.StaticText"]=jd;jd.__name__="format.swf.instance.StaticText";jd.__super__=Hb;jd.prototype=v(Hb.prototype,{data:null,renderGlyph:function(a,b,d,c,e){var f=new Uc(this.data);a["export"](f,b);a=
0;for(f=f.commands;a<f.length;)switch(b=f[a],++a,b._hx_index){case 3:var h=b.anchorY,k=b.anchorX,n=b.controlY;b=b.controlX;this.set_cacheAsBitmap(!0);this.get_graphics().curveTo(b*d+c,n*d+e,k*d+c,h*d+e);break;case 5:h=b.miterLimit;k=b.joints;n=b.caps;var l=b.scaleMode,m=b.pixelHinting,g=b.alpha,q=b.color;b=b.thickness;null!=b?this.get_graphics().lineStyle(b,q,g,m,l,n,k,h):this.get_graphics().lineStyle();break;case 6:h=b.y;b=b.x;this.get_graphics().lineTo(b*d+c,h*d+e);break;case 7:h=b.y,b=b.x,this.get_graphics().moveTo(b*
d+c,h*d+e)}},__class__:jd});var va=function(){};m["format.swf.tags.ITag"]=va;va.__name__="format.swf.tags.ITag";va.prototype={type:null,name:null,parse:null,__class__:va};var Ha=function(){};m["format.swf.tags.IDefinitionTag"]=Ha;Ha.__name__="format.swf.tags.IDefinitionTag";Ha.__interfaces__=[va];Ha.prototype={characterId:null,__class__:Ha};var ud=function(){};m["format.swf.tags.IDisplayListTag"]=ud;ud.__name__="format.swf.tags.IDisplayListTag";ud.__interfaces__=[va];var dh=function(){this.type=74;
this.name="CSMTextSettings";this.version=8;this.level=1};m["format.swf.tags.TagCSMTextSettings"]=dh;dh.__name__="format.swf.tags.TagCSMTextSettings";dh.__interfaces__=[va];dh.prototype={type:null,name:null,version:null,level:null,textId:null,useFlashType:null,gridFit:null,thickness:null,sharpness:null,parse:function(a,b,d,c){this.textId=l.readUI16(a);this.useFlashType=l.readUB(a,2);this.gridFit=l.readUB(a,3);l.readUB(a,3);this.thickness=l.readFIXED(a);this.sharpness=l.readFIXED(a);l.readUI8(a)},__class__:dh};
var Zg=function(){this.type=63;this.name="DebugID";this.version=6;this.level=1;this.uuid=new ta(0);this.uuid.__endian=0};m["format.swf.tags.TagDebugID"]=Zg;Zg.__name__="format.swf.tags.TagDebugID";Zg.__interfaces__=[va];Zg.prototype={type:null,name:null,version:null,level:null,uuid:null,parse:function(a,b,d,c){0<b&&a.readBytes(this.uuid,0,b)},__class__:Zg};var jh=function(){this.type=87;this.name="DefineBinaryData";this.version=9;this.level=1;this.binaryData=new ta(0);this.binaryData.__endian=0};
m["format.swf.tags.TagDefineBinaryData"]=jh;jh.__name__="format.swf.tags.TagDefineBinaryData";jh.__interfaces__=[Ha];jh.prototype={type:null,name:null,version:null,level:null,characterId:null,binaryData:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);l.readUI32(a);6<b&&a.readBytes(this.binaryData,0,b-6)},__class__:jh};var Sa=function(){this.bitmapType=1;this.type=6;this.name="DefineBits";this.level=this.version=1;this.bitmapData=new ta(0);this.bitmapData.__endian=0};m["format.swf.tags.TagDefineBits"]=
Sa;Sa.__name__="format.swf.tags.TagDefineBits";Sa.__interfaces__=[Ha];Sa.prototype={type:null,name:null,version:null,level:null,bitmapType:null,characterId:null,bitmapData:null,instance:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);2<b&&a.readBytes(this.bitmapData,0,b-2)},__class__:Sa};var Zb=function(){Sa.call(this);this.type=21;this.name="DefineBitsJPEG2";this.level=this.version=2};m["format.swf.tags.TagDefineBitsJPEG2"]=Zb;Zb.__name__="format.swf.tags.TagDefineBitsJPEG2";Zb.__interfaces__=
[Ha];Zb.__super__=Sa;Zb.prototype=v(Sa.prototype,{parse:function(a,b,d,c){Sa.prototype.parse.call(this,a,b,d);255!=this.bitmapData.b[0]||216!=this.bitmapData.b[1]&&217!=this.bitmapData.b[1]?137==this.bitmapData.b[0]&&80==this.bitmapData.b[1]&&78==this.bitmapData.b[2]&&71==this.bitmapData.b[3]&&13==this.bitmapData.b[4]&&10==this.bitmapData.b[5]&&26==this.bitmapData.b[6]&&10==this.bitmapData.b[7]?this.bitmapType=3:71==this.bitmapData.b[0]&&73==this.bitmapData.b[1]&&70==this.bitmapData.b[2]&&56==this.bitmapData.b[3]&&
57==this.bitmapData.b[4]&&97==this.bitmapData.b[5]&&(this.bitmapType=2):(this.bitmapType=1,255==this.bitmapData.b[0]&&217==this.bitmapData.b[1]&&255==this.bitmapData.b[2]&&216==this.bitmapData.b[3]&&255==this.bitmapData.b[4]&&216==this.bitmapData.b[5]&&this.bitmapData.writeBytes(this.bitmapData,4))},__class__:Zb});var Ic=function(){Zb.call(this);this.type=35;this.name="DefineBitsJPEG3";this.level=this.version=3;this.bitmapAlphaData=new ta(0);this.bitmapAlphaData.__endian=0};m["format.swf.tags.TagDefineBitsJPEG3"]=
Ic;Ic.__name__="format.swf.tags.TagDefineBitsJPEG3";Ic.__interfaces__=[Ha];Ic.__super__=Zb;Ic.prototype=v(Zb.prototype,{bitmapAlphaData:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);d=l.readUI32(a);a.readBytes(this.bitmapData,0,d);255!=this.bitmapData.b[0]||216!=this.bitmapData.b[1]&&217!=this.bitmapData.b[1]?137==this.bitmapData.b[0]&&80==this.bitmapData.b[1]&&78==this.bitmapData.b[2]&&71==this.bitmapData.b[3]&&13==this.bitmapData.b[4]&&10==this.bitmapData.b[5]&&26==this.bitmapData.b[6]&&
10==this.bitmapData.b[7]?this.bitmapType=3:71==this.bitmapData.b[0]&&73==this.bitmapData.b[1]&&70==this.bitmapData.b[2]&&56==this.bitmapData.b[3]&&57==this.bitmapData.b[4]&&97==this.bitmapData.b[5]&&(this.bitmapType=2):(this.bitmapType=1,255==this.bitmapData.b[0]&&217==this.bitmapData.b[1]&&255==this.bitmapData.b[2]&&216==this.bitmapData.b[3]&&255==this.bitmapData.b[4]&&216==this.bitmapData.b[5]&&this.bitmapData.writeBytes(this.bitmapData,4));b=b-d-6;0<b&&a.readBytes(this.bitmapAlphaData,0,b)},__class__:Ic});
var Af=function(){Ic.call(this);this.type=90;this.name="DefineBitsJPEG4";this.version=10;this.level=4};m["format.swf.tags.TagDefineBitsJPEG4"]=Af;Af.__name__="format.swf.tags.TagDefineBitsJPEG4";Af.__interfaces__=[Ha];Af.__super__=Ic;Af.prototype=v(Ic.prototype,{deblockParam:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);d=l.readUI32(a);this.deblockParam=l.readFIXED8(a);a.readBytes(this.bitmapData,0,d);255!=this.bitmapData.b[0]||216!=this.bitmapData.b[1]&&217!=this.bitmapData.b[1]?137==
this.bitmapData.b[0]&&80==this.bitmapData.b[1]&&78==this.bitmapData.b[2]&&71==this.bitmapData.b[3]&&13==this.bitmapData.b[4]&&10==this.bitmapData.b[5]&&26==this.bitmapData.b[6]&&10==this.bitmapData.b[7]?this.bitmapType=3:71==this.bitmapData.b[0]&&73==this.bitmapData.b[1]&&70==this.bitmapData.b[2]&&56==this.bitmapData.b[3]&&57==this.bitmapData.b[4]&&97==this.bitmapData.b[5]&&(this.bitmapType=2):this.bitmapType=1;b=b-d-6;0<b&&a.readBytes(this.bitmapAlphaData,0,b)},__class__:Af});var vb=function(){this.type=
20;this.name="DefineBitsLossless";this.version=2;this.level=1;this.zlibBitmapData=new ta(0);this.zlibBitmapData.__endian=0};m["format.swf.tags.TagDefineBitsLossless"]=vb;vb.__name__="format.swf.tags.TagDefineBitsLossless";vb.__interfaces__=[Ha];vb.prototype={type:null,name:null,version:null,level:null,bitmapFormat:null,bitmapWidth:null,bitmapHeight:null,bitmapColorTableSize:null,characterId:null,zlibBitmapData:null,instance:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.bitmapFormat=
l.readUI8(a);this.bitmapWidth=l.readUI16(a);this.bitmapHeight=l.readUI16(a);3==this.bitmapFormat&&(this.bitmapColorTableSize=l.readUI8(a)+1);a.readBytes(this.zlibBitmapData,0,b-(3==this.bitmapFormat?8:7))},__class__:vb};var Sg=function(){vb.call(this);this.type=36;this.name="DefineBitsLossless2";this.version=3;this.level=2};m["format.swf.tags.TagDefineBitsLossless2"]=Sg;Sg.__name__="format.swf.tags.TagDefineBitsLossless2";Sg.__super__=vb;Sg.prototype=v(vb.prototype,{__class__:Sg});var qf=function(){this.type=
7;this.name="DefineButton";this.level=this.version=1;this.characters=[];this.actions=[];this.frames=new ea};m["format.swf.tags.TagDefineButton"]=qf;qf.__name__="format.swf.tags.TagDefineButton";qf.__interfaces__=[Ha];qf.prototype={type:null,name:null,version:null,level:null,characterId:null,characters:null,actions:null,frames:null,parse:function(a,b,d,c){for(this.characterId=l.readUI16(a);;){b=l.readBUTTONRECORD(a);if(null==b)break;this.characters.push(b)}for(;;){b=l.readACTIONRECORD(a);if(null==
b)break;this.actions.push(b)}this.processRecords()},processRecords:function(){for(var a=[],b=[],d=[],c=[],e=0,f=this.characters.length;e<f;){var h=e++;h=this.characters[h];h.stateUp&&a.push(h);h.stateOver&&b.push(h);h.stateDown&&d.push(h);h.stateHitTest&&c.push(h)}a.sort(u(this,this.sortByDepthCompareFunction));b.sort(u(this,this.sortByDepthCompareFunction));d.sort(u(this,this.sortByDepthCompareFunction));c.sort(u(this,this.sortByDepthCompareFunction));e=this.frames;null!=t.up?e.setReserved("up",
a):e.h.up=a;a=this.frames;null!=t.over?a.setReserved("over",b):a.h.over=b;b=this.frames;null!=t.down?b.setReserved("down",d):b.h.down=d;d=this.frames;null!=t.hit?d.setReserved("hit",c):d.h.hit=c},sortByDepthCompareFunction:function(a,b){return a.placeDepth<b.placeDepth?-1:a.placeDepth>b.placeDepth?1:0},__class__:qf};var wc=function(){this.type=34;this.name="DefineButton2";this.version=3;this.level=2;this.characters=[];this.condActions=[];this.frames=new ea};m["format.swf.tags.TagDefineButton2"]=wc;
wc.__name__="format.swf.tags.TagDefineButton2";wc.__interfaces__=[Ha];wc.prototype={type:null,name:null,version:null,level:null,trackAsMenu:null,characterId:null,characters:null,condActions:null,frames:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.trackAsMenu=0!=(l.readUI8(a)&1);for(b=l.readUI16(a);;){d=l.readBUTTONRECORD(a,2);if(null==d)break;this.characters.push(d)}if(0!=b)for(;b=l.readUI16(a),this.condActions.push(l.readBUTTONCONDACTION(a)),0!=b;);this.processRecords()},processRecords:function(){for(var a=
[],b=[],d=[],c=[],e=0,f=this.characters.length;e<f;){var h=e++;h=this.characters[h];h.stateUp&&a.push(h);h.stateOver&&b.push(h);h.stateDown&&d.push(h);h.stateHitTest&&c.push(h)}a.sort(u(this,this.sortByDepthCompareFunction));b.sort(u(this,this.sortByDepthCompareFunction));d.sort(u(this,this.sortByDepthCompareFunction));c.sort(u(this,this.sortByDepthCompareFunction));e=this.frames;null!=t.up?e.setReserved("up",a):e.h.up=a;a=this.frames;null!=t.over?a.setReserved("over",b):a.h.over=b;b=this.frames;
null!=t.down?b.setReserved("down",d):b.h.down=d;d=this.frames;null!=t.hit?d.setReserved("hit",c):d.h.hit=c},sortByDepthCompareFunction:function(a,b){return a.placeDepth<b.placeDepth?-1:a.placeDepth>b.placeDepth?1:0},__class__:wc};var Qg=function(){this.type=23;this.name="DefineButtonCxform";this.version=2;this.level=1};m["format.swf.tags.TagDefineButtonCxform"]=Qg;Qg.__name__="format.swf.tags.TagDefineButtonCxform";Qg.__interfaces__=[Ha];Qg.prototype={type:null,name:null,version:null,level:null,buttonColorTransform:null,
characterId:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.buttonColorTransform=l.readCXFORM(a)},__class__:Qg};var Og=function(){this.type=17;this.name="DefineButtonSound";this.version=2;this.level=1};m["format.swf.tags.TagDefineButtonSound"]=Og;Og.__name__="format.swf.tags.TagDefineButtonSound";Og.__interfaces__=[Ha];Og.prototype={type:null,name:null,version:null,level:null,buttonSoundChar0:null,buttonSoundChar1:null,buttonSoundChar2:null,buttonSoundChar3:null,buttonSoundInfo0:null,
buttonSoundInfo1:null,buttonSoundInfo2:null,buttonSoundInfo3:null,characterId:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.buttonSoundChar0=l.readUI16(a);0!=this.buttonSoundChar0&&(this.buttonSoundInfo0=l.readSOUNDINFO(a));this.buttonSoundChar1=l.readUI16(a);0!=this.buttonSoundChar1&&(this.buttonSoundInfo1=l.readSOUNDINFO(a));this.buttonSoundChar2=l.readUI16(a);0!=this.buttonSoundChar2&&(this.buttonSoundInfo2=l.readSOUNDINFO(a));this.buttonSoundChar3=l.readUI16(a);0!=this.buttonSoundChar3&&
(this.buttonSoundInfo3=l.readSOUNDINFO(a))},__class__:Og};var $b=function(){this.type=37;this.name="DefineEditText";this.version=4;this.level=1};m["format.swf.tags.TagDefineEditText"]=$b;$b.__name__="format.swf.tags.TagDefineEditText";$b.__interfaces__=[Ha];$b.prototype={type:null,name:null,version:null,level:null,bounds:null,variableName:null,hasText:null,wordWrap:null,multiline:null,password:null,readOnly:null,hasTextColor:null,hasMaxLength:null,hasFont:null,hasFontClass:null,autoSize:null,hasLayout:null,
noSelect:null,border:null,wasStatic:null,html:null,useOutlines:null,fontId:null,fontClass:null,fontHeight:null,textColor:null,maxLength:null,align:null,leftMargin:null,rightMargin:null,indent:null,leading:null,initialText:null,characterId:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.bounds=l.readRECT(a);b=l.readUI8(a);this.hasText=0!=(b&128);this.wordWrap=0!=(b&64);this.multiline=0!=(b&32);this.password=0!=(b&16);this.readOnly=0!=(b&8);this.hasTextColor=0!=(b&4);this.hasMaxLength=
0!=(b&2);this.hasFont=0!=(b&1);b=l.readUI8(a);this.hasFontClass=0!=(b&128);this.autoSize=0!=(b&64);this.hasLayout=0!=(b&32);this.noSelect=0!=(b&16);this.border=0!=(b&8);this.wasStatic=0!=(b&4);this.html=0!=(b&2);this.useOutlines=0!=(b&1);this.hasFont&&(this.fontId=l.readUI16(a));this.hasFontClass&&(this.fontClass=l.readSTRING(a));if(this.hasFont||this.hasFontClass)this.fontHeight=l.readUI16(a);this.hasTextColor&&(this.textColor=l.readRGBA(a));this.hasMaxLength&&(this.maxLength=l.readUI16(a));this.hasLayout&&
(this.align=l.readUI8(a),this.leftMargin=l.readUI16(a),this.rightMargin=l.readUI16(a),this.indent=l.readUI16(a),this.leading=l.readSI16(a));this.variableName=l.readSTRING(a);this.hasText&&(this.initialText=l.readSTRING(a))},__class__:$b};var Vc=function(){this.type=10;this.name="DefineFont";this.level=this.version=1;this.glyphShapeTable=[]};m["format.swf.tags.TagDefineFont"]=Vc;Vc.__name__="format.swf.tags.TagDefineFont";Vc.__interfaces__=[Ha];Vc.prototype={type:null,name:null,version:null,level:null,
characterId:null,glyphShapeTable:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);b=l.readUI16(a)>>1;l.skipBytes(a,b-1<<1);for(d=0;d<b;)d++,this.glyphShapeTable.push(l.readSHAPE(a,Vc.unitDivisor))},"export":function(a,b){this.glyphShapeTable[b]["export"](a)},__class__:Vc};var Jc=function(){Vc.call(this);this.type=48;this.name="DefineFont2";this.version=3;this.level=2;this.codeTable=[];this.fontAdvanceTable=[];this.fontBoundsTable=[];this.fontKerningTable=[]};m["format.swf.tags.TagDefineFont2"]=
Jc;Jc.__name__="format.swf.tags.TagDefineFont2";Jc.__interfaces__=[Ha];Jc.__super__=Vc;Jc.prototype=v(Vc.prototype,{hasLayout:null,shiftJIS:null,smallText:null,ansi:null,wideOffsets:null,wideCodes:null,italic:null,bold:null,languageCode:null,fontName:null,ascent:null,descent:null,leading:null,codeTable:null,fontAdvanceTable:null,fontBoundsTable:null,fontKerningTable:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);b=l.readUI8(a);this.hasLayout=0!=(b&128);this.shiftJIS=0!=(b&64);this.smallText=
0!=(b&32);this.ansi=0!=(b&16);this.wideOffsets=0!=(b&8);this.wideCodes=0!=(b&4);this.italic=0!=(b&2);this.bold=0!=(b&1);this.languageCode=l.readLANGCODE(a);b=l.readUI8(a);d=new ta(0);d.__endian=0;a.readBytes(d,0,b);this.fontName=d.readUTFBytes(b);b=l.readUI16(a);if(0<b){l.skipBytes(a,b<<(this.wideOffsets?2:1));this.wideOffsets?l.readUI32(a):l.readUI16(a);for(d=0;d<b;)d++,this.glyphShapeTable.push(l.readSHAPE(a));for(d=0;d<b;)d++,this.codeTable.push(this.wideCodes?l.readUI16(a):l.readUI8(a))}if(this.hasLayout){this.ascent=
l.readUI16(a);this.descent=l.readUI16(a);this.leading=l.readSI16(a);for(d=0;d<b;)d++,this.fontAdvanceTable.push(l.readSI16(a));for(d=0;d<b;)d++,this.fontBoundsTable.push(l.readRECT(a));b=0;for(d=l.readUI16(a);b<d;)b++,this.fontKerningTable.push(l.readKERNINGRECORD(a,this.wideCodes))}},__class__:Jc});var Ge=function(){Jc.call(this);this.type=75;this.name="DefineFont3";this.version=8;this.level=2};m["format.swf.tags.TagDefineFont3"]=Ge;Ge.__name__="format.swf.tags.TagDefineFont3";Ge.__interfaces__=
[Ha];Ge.__super__=Jc;Ge.prototype=v(Jc.prototype,{__class__:Ge});var Bf=function(){this.type=91;this.name="DefineFont4";this.version=10;this.level=1;this.fontData=new ta(0);this.fontData.__endian=0};m["format.swf.tags.TagDefineFont4"]=Bf;Bf.__name__="format.swf.tags.TagDefineFont4";Bf.__interfaces__=[Ha];Bf.prototype={type:null,name:null,version:null,level:null,hasFontData:null,italic:null,bold:null,fontName:null,characterId:null,fontData:null,parse:function(a,b,d,c){d=a.position;this.characterId=
l.readUI16(a);c=l.readUI8(a);this.hasFontData=0!=(c&4);this.italic=0!=(c&2);this.bold=0!=(c&1);this.fontName=l.readSTRING(a);this.hasFontData&&b>(a.position|0)-d&&a.readBytes(this.fontData,0,b-(a.position-d))},__class__:Bf};var ch=function(){this.type=73;this.name="DefineFontAlignZones";this.version=8;this.level=1;this.zoneTable=[]};m["format.swf.tags.TagDefineFontAlignZones"]=ch;ch.__name__="format.swf.tags.TagDefineFontAlignZones";ch.__interfaces__=[va];ch.prototype={type:null,name:null,version:null,
level:null,fontId:null,csmTableHint:null,zoneTable:null,parse:function(a,b,d,c){this.fontId=l.readUI16(a);this.csmTableHint=l.readUI8(a)>>6;for(b=a.position+b-3;(a.position|0)<b;)this.zoneTable.push(l.readZONERECORD(a))},__class__:ch};var ce=function(){this.langCode=this.langCodeLength=0;this.type=13;this.name="DefineFontInfo";this.level=this.version=1;this.codeTable=[]};m["format.swf.tags.TagDefineFontInfo"]=ce;ce.__name__="format.swf.tags.TagDefineFontInfo";ce.__interfaces__=[va];ce.prototype={type:null,
name:null,version:null,level:null,fontId:null,fontName:null,smallText:null,shiftJIS:null,ansi:null,italic:null,bold:null,wideCodes:null,langCode:null,codeTable:null,langCodeLength:null,parse:function(a,b,d,c){this.fontId=l.readUI16(a);d=l.readUI8(a);c=new ta(0);c.__endian=0;a.readBytes(c,0,d);this.fontName=c.readUTFBytes(d);c=l.readUI8(a);this.smallText=0!=(c&32);this.shiftJIS=0!=(c&16);this.ansi=0!=(c&8);this.italic=0!=(c&4);this.bold=0!=(c&2);this.wideCodes=0!=(c&1);this.parseLangCode(a);c=0;for(b=
b-d-this.langCodeLength-4;c<b;)c++,this.codeTable.push(this.wideCodes?l.readUI16(a):l.readUI8(a))},parseLangCode:function(a){},__class__:ce};var vf=function(){ce.call(this);this.type=62;this.name="DefineFontInfo2";this.version=6;this.level=2};m["format.swf.tags.TagDefineFontInfo2"]=vf;vf.__name__="format.swf.tags.TagDefineFontInfo2";vf.__interfaces__=[va];vf.__super__=ce;vf.prototype=v(ce.prototype,{parseLangCode:function(a){this.langCode=l.readUI8(a);this.langCodeLength=1},__class__:vf});var kh=
function(){this.type=88;this.name="DefineFontName";this.version=9;this.level=1};m["format.swf.tags.TagDefineFontName"]=kh;kh.__name__="format.swf.tags.TagDefineFontName";kh.__interfaces__=[va];kh.prototype={type:null,name:null,version:null,level:null,fontId:null,fontName:null,fontCopyright:null,parse:function(a,b,d,c){this.fontId=l.readUI16(a);this.fontName=l.readSTRING(a);this.fontCopyright=l.readSTRING(a)},__class__:kh};var uc=function(){this.type=46;this.name="DefineMorphShape";this.version=3;
this.level=1;this.morphFillStyles=[];this.morphLineStyles=[];this.exportShape=new Bd};m["format.swf.tags.TagDefineMorphShape"]=uc;uc.__name__="format.swf.tags.TagDefineMorphShape";uc.__interfaces__=[Ha];uc.prototype={startBounds:null,endBounds:null,startEdges:null,endEdges:null,type:null,name:null,version:null,level:null,characterId:null,morphFillStyles:null,morphLineStyles:null,exportHandler:null,exportShape:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.startBounds=l.readRECT(a);
this.endBounds=l.readRECT(a);l.readUI32(a);d=l.readUI8(a);255==d&&(d=l.readUI16(a));for(b=0;b<d;)b++,this.morphFillStyles.push(l.readMORPHFILLSTYLE(a));d=l.readUI8(a);255==d&&(d=l.readUI16(a));for(b=0;b<d;)b++,this.morphLineStyles.push(l.readMORPHLINESTYLE(a));this.startEdges=l.readSHAPE(a);this.endEdges=l.readSHAPE(a)},"export":function(a){null==a&&(a=0);var b=0;this.exportShape.records.splice(0,this.exportShape.records.length);this.exportShape.fillStyles.splice(0,this.exportShape.fillStyles.length);
this.exportShape.lineStyles.splice(0,this.exportShape.lineStyles.length);for(var d=0,c=this.startEdges.records.length;d<c;){var e=d++,f=this.startEdges.records[e];e=this.endEdges.records[b++];var h=null;4==f.get_type()&&3==e.get_type()?e=this.convertToCurvedEdge(U.__cast(e,sd)):3==f.get_type()&&4==e.get_type()&&(f=this.convertToCurvedEdge(U.__cast(f,sd)));switch(f.get_type()){case 1:h=f.clone();break;case 2:f=f.clone();f.stateMoveTo=!0;2==e.get_type()?(f.moveDeltaX+=(e.moveDeltaX-f.moveDeltaX)*a|
0,f.moveDeltaY+=(e.moveDeltaY-f.moveDeltaY)*a|0):(f.moveDeltaX+=-f.moveDeltaX*a|0,f.moveDeltaY+=-f.moveDeltaY*a|0,--b);h=f;break;case 3:f=f.clone();f.deltaX+=(e.deltaX-f.deltaX)*a|0;f.deltaY+=(e.deltaY-f.deltaY)*a|0;0!=f.deltaX&&0!=f.deltaY?(f.generalLineFlag=!0,f.vertLineFlag=!1):(f.generalLineFlag=!1,f.vertLineFlag=0==f.deltaX);h=f;break;case 4:f=f.clone(),f.controlDeltaX+=(e.controlDeltaX-f.controlDeltaX)*a|0,f.controlDeltaY+=(e.controlDeltaY-f.controlDeltaY)*a|0,f.anchorDeltaX+=(e.anchorDeltaX-
f.anchorDeltaX)*a|0,f.anchorDeltaY+=(e.anchorDeltaY-f.anchorDeltaY)*a|0,h=f}this.exportShape.records.push(h)}b=0;for(d=this.morphFillStyles.length;b<d;)c=b++,this.exportShape.fillStyles.push(this.morphFillStyles[c].getMorphedFillStyle(a));b=0;for(d=this.morphLineStyles.length;b<d;)c=b++,this.exportShape.lineStyles.push(this.morphLineStyles[c].getMorphedLineStyle(a));this.exportShape["export"](this.exportHandler)},convertToCurvedEdge:function(a){var b=new Wd;b.controlDeltaX=a.deltaX/2|0;b.controlDeltaY=
a.deltaY/2|0;b.anchorDeltaX=a.deltaX/2|0;b.anchorDeltaY=a.deltaY/2|0;return b},__class__:uc};var zf=function(){uc.call(this);this.type=84;this.name="DefineMorphShape2";this.version=8;this.level=2};m["format.swf.tags.TagDefineMorphShape2"]=zf;zf.__name__="format.swf.tags.TagDefineMorphShape2";zf.__interfaces__=[va];zf.__super__=uc;zf.prototype=v(uc.prototype,{startEdgeBounds:null,endEdgeBounds:null,usesNonScalingStrokes:null,usesScalingStrokes:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);
this.startBounds=l.readRECT(a);this.endBounds=l.readRECT(a);this.startEdgeBounds=l.readRECT(a);this.endEdgeBounds=l.readRECT(a);b=l.readUI8(a);this.usesNonScalingStrokes=0!=(b&2);this.usesScalingStrokes=0!=(b&1);l.readUI32(a);d=l.readUI8(a);255==d&&(d=l.readUI16(a));for(b=0;b<d;)b++,this.morphFillStyles.push(l.readMORPHFILLSTYLE(a));d=l.readUI8(a);255==d&&(d=l.readUI16(a));for(b=0;b<d;)b++,this.morphLineStyles.push(l.readMORPHLINESTYLE2(a));this.startEdges=l.readSHAPE(a);this.endEdges=l.readSHAPE(a)},
__class__:zf});var fh=function(){this.type=78;this.name="DefineScalingGrid";this.version=8;this.level=1};m["format.swf.tags.TagDefineScalingGrid"]=fh;fh.__name__="format.swf.tags.TagDefineScalingGrid";fh.__interfaces__=[va];fh.prototype={type:null,name:null,version:null,level:null,splitter:null,characterId:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.splitter=l.readRECT(a)},__class__:fh};var ih=function(){this.type=86;this.name="DefineSceneAndFrameLabelData";this.version=9;this.level=
1;this.scenes=[];this.frameLabels=[]};m["format.swf.tags.TagDefineSceneAndFrameLabelData"]=ih;ih.__name__="format.swf.tags.TagDefineSceneAndFrameLabelData";ih.__interfaces__=[va];ih.prototype={type:null,name:null,version:null,level:null,scenes:null,frameLabels:null,parse:function(a,b,d,c){b=0;for(d=l.readEncodedU32(a);b<d;){b++;c=l.readEncodedU32(a);var e=l.readSTRING(a);this.scenes.push(new Ji(c,e))}b=0;for(d=l.readEncodedU32(a);b<d;)b++,c=l.readEncodedU32(a),e=l.readSTRING(a),this.frameLabels.push(new Hi(c,
e))},__class__:ih};var Pb=function(){this.type=2;this.name="DefineShape";this.level=this.version=1};m["format.swf.tags.TagDefineShape"]=Pb;Pb.__name__="format.swf.tags.TagDefineShape";Pb.__interfaces__=[Ha];Pb.prototype={type:null,name:null,version:null,level:null,shapeBounds:null,shapes:null,characterId:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.shapeBounds=l.readRECT(a);this.shapes=l.readSHAPEWITHSTYLE(a,this.level)},"export":function(a){this.shapes["export"](a)},__class__:Pb};
var Gd=function(){Pb.call(this);this.type=22;this.name="DefineShape2";this.level=this.version=2};m["format.swf.tags.TagDefineShape2"]=Gd;Gd.__name__="format.swf.tags.TagDefineShape2";Gd.__interfaces__=[Ha];Gd.__super__=Pb;Gd.prototype=v(Pb.prototype,{__class__:Gd});var Id=function(){Gd.call(this);this.type=32;this.name="DefineShape3";this.level=this.version=3};m["format.swf.tags.TagDefineShape3"]=Id;Id.__name__="format.swf.tags.TagDefineShape3";Id.__interfaces__=[Ha];Id.__super__=Gd;Id.prototype=
v(Gd.prototype,{__class__:Id});var yf=function(){Id.call(this);this.type=83;this.name="DefineShape4";this.version=8;this.level=4};m["format.swf.tags.TagDefineShape4"]=yf;yf.__name__="format.swf.tags.TagDefineShape4";yf.__interfaces__=[Ha];yf.__super__=Id;yf.prototype=v(Id.prototype,{edgeBounds:null,usesFillWindingRule:null,usesNonScalingStrokes:null,usesScalingStrokes:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.shapeBounds=l.readRECT(a);this.edgeBounds=l.readRECT(a);b=l.readUI8(a);
this.usesFillWindingRule=0!=(b&4);this.usesNonScalingStrokes=0!=(b&2);this.usesScalingStrokes=0!=(b&1);this.shapes=l.readSHAPEWITHSTYLE(a,this.level)},__class__:yf});var Mg=function(){this.type=14;this.name="DefineSound";this.level=this.version=1;this.soundData=new ta(0);this.soundData.__endian=0};m["format.swf.tags.TagDefineSound"]=Mg;Mg.__name__="format.swf.tags.TagDefineSound";Mg.__interfaces__=[Ha];Mg.prototype={type:null,name:null,version:null,level:null,soundFormat:null,soundRate:null,soundSize:null,
soundType:null,soundSampleCount:null,characterId:null,soundData:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.soundFormat=l.readUB(a,4);this.soundRate=l.readUB(a,2);this.soundSize=l.readUB(a,1);this.soundType=l.readUB(a,1);this.soundSampleCount=l.readUI32(a);a.readBytes(this.soundData,0,b-7)},__class__:Mg};var ic=function(){Pa.call(this);this.type=39;this.name="DefineSprite";this.version=3;this.level=1};m["format.swf.tags.TagDefineSprite"]=ic;ic.__name__="format.swf.tags.TagDefineSprite";
ic.__interfaces__=[Ha];ic.__super__=Pa;ic.prototype=v(Pa.prototype,{type:null,name:null,version:null,level:null,frameCount:null,characterId:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.frameCount=l.readUI16(a);this.parseTags(a,d)},__class__:ic});var Yb=function(){this.type=11;this.name="DefineText";this.level=this.version=1;this.records=[]};m["format.swf.tags.TagDefineText"]=Yb;Yb.__name__="format.swf.tags.TagDefineText";Yb.__interfaces__=[Ha];Yb.prototype={type:null,name:null,
version:null,level:null,textBounds:null,textMatrix:null,characterId:null,records:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.textBounds=l.readRECT(a);this.textMatrix=l.readMATRIX(a);b=l.readUI8(a);d=l.readUI8(a);for(c=null;;){c=l.readTEXTRECORD(a,b,d,c,this.level);if(null==c)break;this.records.push(c)}},__class__:Yb};var sf=function(){Yb.call(this);this.type=33;this.name="DefineText2";this.version=3;this.level=2};m["format.swf.tags.TagDefineText2"]=sf;sf.__name__="format.swf.tags.TagDefineText2";
sf.__interfaces__=[Ha];sf.__super__=Yb;sf.prototype=v(Yb.prototype,{__class__:sf});var Xg=function(){this.type=60;this.name="DefineVideoStream";this.version=6;this.level=1};m["format.swf.tags.TagDefineVideoStream"]=Xg;Xg.__name__="format.swf.tags.TagDefineVideoStream";Xg.__interfaces__=[Ha];Xg.prototype={type:null,name:null,version:null,level:null,numFrames:null,width:null,height:null,deblocking:null,smoothing:null,codecId:null,characterId:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);
this.numFrames=l.readUI16(a);this.width=l.readUI16(a);this.height=l.readUI16(a);l.readUB(a,4);this.deblocking=l.readUB(a,3);this.smoothing=1==l.readUB(a,1);this.codecId=l.readUI8(a)},__class__:Xg};var gh=function(){this.abcName="";this.type=82;this.name="DoABC";this.version=9;this.level=1;this.bytes=new ta(0);this.bytes.__endian=0};m["format.swf.tags.TagDoABC"]=gh;gh.__name__="format.swf.tags.TagDoABC";gh.__interfaces__=[va];gh.prototype={type:null,name:null,version:null,level:null,lazyInitializeFlag:null,
abcName:null,bytes:null,parse:function(a,b,d,c){d=a.position;this.lazyInitializeFlag=0!=(l.readUI32(a)&1);this.abcName=l.readSTRING(a);a.readBytes(this.bytes,0,b-(a.position-d))},__class__:gh};var hh=function(){this.type=72;this.name="DoABCDeprecated";this.version=9;this.level=1;this.bytes=new ta(0);this.bytes.__endian=0};m["format.swf.tags.TagDoABCDeprecated"]=hh;hh.__name__="format.swf.tags.TagDoABCDeprecated";hh.__interfaces__=[va];hh.prototype={type:null,name:null,version:null,level:null,bytes:null,
parse:function(a,b,d,c){a.readBytes(this.bytes,0,b-(a.position-a.position))},__class__:hh};var be=function(){this.type=12;this.name="DoAction";this.version=3;this.level=1;this.actions=[]};m["format.swf.tags.TagDoAction"]=be;be.__name__="format.swf.tags.TagDoAction";be.__interfaces__=[va];be.prototype={type:null,name:null,version:null,level:null,actions:null,parse:function(a,b,d,c){for(;;){b=l.readACTIONRECORD(a);if(null==b)break;this.actions.push(b)}},__class__:be};var uf=function(){be.call(this);
this.type=59;this.name="DoInitAction";this.version=6;this.level=1};m["format.swf.tags.TagDoInitAction"]=uf;uf.__name__="format.swf.tags.TagDoInitAction";uf.__interfaces__=[va];uf.__super__=be;uf.prototype=v(be.prototype,{spriteId:null,parse:function(a,b,d,c){for(this.spriteId=l.readUI16(a);;){b=l.readACTIONRECORD(a);if(null==b)break;this.actions.push(b)}},__class__:uf});var fe=function(){this.type=58;this.name="EnableDebugger";this.version=5;this.level=1;this.password=new ta(0);this.password.__endian=
0};m["format.swf.tags.TagEnableDebugger"]=fe;fe.__name__="format.swf.tags.TagEnableDebugger";fe.__interfaces__=[va];fe.prototype={type:null,name:null,version:null,level:null,password:null,parse:function(a,b,d,c){0<b&&a.readBytes(this.password,0,b)},__class__:fe};var wf=function(){fe.call(this);this.reserved=0;this.type=64;this.name="EnableDebugger2";this.version=6;this.level=2};m["format.swf.tags.TagEnableDebugger2"]=wf;wf.__name__="format.swf.tags.TagEnableDebugger2";wf.__interfaces__=[va];wf.__super__=
fe;wf.prototype=v(fe.prototype,{reserved:null,parse:function(a,b,d,c){this.reserved=l.readUI16(a);2<b&&a.readBytes(this.password,0,b-2)},__class__:wf});var mh=function(){this.name="EnableTelemetry";this.type=93;this.password=new ta(0);this.password.__endian=0};m["format.swf.tags.TagEnableTelemetry"]=mh;mh.__name__="format.swf.tags.TagEnableTelemetry";mh.__interfaces__=[va];mh.prototype={password:null,type:null,name:null,parse:function(a,b,d,c){2<b&&(a.readByte(),a.readByte(),a.readBytes(this.password,
0,b-2))},__class__:mh};var Ig=function(){this.type=0;this.name="End";this.level=this.version=1};m["format.swf.tags.TagEnd"]=Ig;Ig.__name__="format.swf.tags.TagEnd";Ig.__interfaces__=[va];Ig.prototype={type:null,name:null,version:null,level:null,parse:function(a,b,d,c){},__class__:Ig};var Wg=function(){this.type=56;this.name="ExportAssets";this.version=5;this.level=1;this.symbols=[]};m["format.swf.tags.TagExportAssets"]=Wg;Wg.__name__="format.swf.tags.TagExportAssets";Wg.__interfaces__=[va];Wg.prototype=
{type:null,name:null,version:null,level:null,symbols:null,parse:function(a,b,d,c){b=0;for(d=l.readUI16(a);b<d;)b++,this.symbols.push(l.readSYMBOL(a))},__class__:Wg};var bh=function(){this.useNetwork=!1;this.actionscript3=!0;this.useDirectBlit=this.useGPU=this.hasMetadata=!1;this.type=69;this.name="FileAttributes";this.version=8;this.level=1};m["format.swf.tags.TagFileAttributes"]=bh;bh.__name__="format.swf.tags.TagFileAttributes";bh.__interfaces__=[va];bh.prototype={type:null,name:null,version:null,
level:null,useDirectBlit:null,useGPU:null,hasMetadata:null,actionscript3:null,useNetwork:null,parse:function(a,b,d,c){b=l.readUI8(a);this.useDirectBlit=0!=(b&64);this.useGPU=0!=(b&32);this.hasMetadata=0!=(b&16);this.actionscript3=0!=(b&8);this.useNetwork=0!=(b&1);l.skipBytes(a,3)},__class__:bh};var Vg=function(){this.type=43;this.name="FrameLabel";this.version=3;this.level=1};m["format.swf.tags.TagFrameLabel"]=Vg;Vg.__name__="format.swf.tags.TagFrameLabel";Vg.__interfaces__=[va];Vg.prototype={type:null,
name:null,version:null,level:null,frameName:null,namedAnchorFlag:null,parse:function(a,b,d,c){d=a.position;this.frameName=l.readSTRING(a);(a.position|0)-d<b&&(l.readUI8(a),this.namedAnchorFlag=!0)},__class__:Vg};var ee=function(){this.type=57;this.name="ImportAssets";this.version=5;this.level=1;this.symbols=[]};m["format.swf.tags.TagImportAssets"]=ee;ee.__name__="format.swf.tags.TagImportAssets";ee.__interfaces__=[va];ee.prototype={type:null,name:null,version:null,level:null,url:null,symbols:null,
parse:function(a,b,d,c){this.url=l.readSTRING(a);b=0;for(d=l.readUI16(a);b<d;)b++,this.symbols.push(l.readSYMBOL(a))},__class__:ee};var xf=function(){ee.call(this);this.type=71;this.name="ImportAssets2";this.version=8;this.level=2};m["format.swf.tags.TagImportAssets2"]=xf;xf.__name__="format.swf.tags.TagImportAssets2";xf.__interfaces__=[va];xf.__super__=ee;xf.prototype=v(ee.prototype,{parse:function(a,b,d,c){this.url=l.readSTRING(a);l.readUI8(a);l.readUI8(a);b=0;for(d=l.readUI16(a);b<d;)b++,this.symbols.push(l.readSYMBOL(a))},
__class__:xf});var Kg=function(){this.type=8;this.name="JPEGTables";this.level=this.version=1;this.jpegTables=new ta(0);this.jpegTables.__endian=0};m["format.swf.tags.TagJPEGTables"]=Kg;Kg.__name__="format.swf.tags.TagJPEGTables";Kg.__interfaces__=[va];Kg.prototype={type:null,name:null,version:null,level:null,jpegTables:null,parse:function(a,b,d,c){0<b&&a.readBytes(this.jpegTables,0,b)},__class__:Kg};var eh=function(){this.type=77;this.name="Metadata";this.level=this.version=1};m["format.swf.tags.TagMetadata"]=
eh;eh.__name__="format.swf.tags.TagMetadata";eh.__interfaces__=[va];eh.prototype={type:null,name:null,version:null,level:null,xmlString:null,parse:function(a,b,d,c){this.xmlString=l.readSTRING(a)},__class__:eh};var Tg=function(){this.name="NameCharacter";this.type=40;this.binaryData=new ta(0);this.binaryData.__endian=0};m["format.swf.tags.TagNameCharacter"]=Tg;Tg.__name__="format.swf.tags.TagNameCharacter";Tg.__interfaces__=[va];Tg.prototype={type:null,name:null,binaryData:null,characterId:null,parse:function(a,
b,d,c){this.characterId=l.readUI16(a);2<b&&a.readBytes(this.binaryData,0,b-2)},__class__:Tg};var $d=function(){this.type=4;this.name="PlaceObject";this.level=this.version=1;this.surfaceFilterList=[]};m["format.swf.tags.TagPlaceObject"]=$d;$d.__name__="format.swf.tags.TagPlaceObject";$d.__interfaces__=[ud];$d.prototype={type:null,name:null,version:null,level:null,hasClipActions:null,hasClipDepth:null,hasName:null,hasRatio:null,hasColorTransform:null,hasMatrix:null,hasCharacter:null,hasMove:null,hasOpaqueBackground:null,
hasVisible:null,hasImage:null,hasClassName:null,hasCacheAsBitmap:null,hasBlendMode:null,hasFilterList:null,characterId:null,depth:null,matrix:null,colorTransform:null,ratio:null,instanceName:null,clipDepth:null,clipActions:null,className:null,blendMode:null,bitmapCache:null,bitmapBackgroundColor:null,visible:null,surfaceFilterList:null,parse:function(a,b,d,c){d=a.position;this.characterId=l.readUI16(a);this.depth=l.readUI16(a);this.matrix=l.readMATRIX(a);this.hasMatrix=this.hasCharacter=!0;(a.position|
0)-d<b&&(this.colorTransform=l.readCXFORM(a),this.hasColorTransform=!0)},__class__:$d};var Hd=function(){$d.call(this);this.type=26;this.name="PlaceObject2";this.version=3;this.level=2};m["format.swf.tags.TagPlaceObject2"]=Hd;Hd.__name__="format.swf.tags.TagPlaceObject2";Hd.__interfaces__=[ud];Hd.__super__=$d;Hd.prototype=v($d.prototype,{parse:function(a,b,d,c){b=l.readUI8(a);this.hasClipActions=0!=(b&128);this.hasClipDepth=0!=(b&64);this.hasName=0!=(b&32);this.hasRatio=0!=(b&16);this.hasColorTransform=
0!=(b&8);this.hasMatrix=0!=(b&4);this.hasCharacter=0!=(b&2);this.hasMove=0!=(b&1);this.depth=l.readUI16(a);this.hasCharacter&&(this.characterId=l.readUI16(a));this.hasMatrix&&(this.matrix=l.readMATRIX(a));this.hasColorTransform&&(this.colorTransform=l.readCXFORMWITHALPHA(a));this.hasRatio&&(this.ratio=l.readUI16(a));this.hasName&&(this.instanceName=l.readSTRING(a));this.hasClipDepth&&(this.clipDepth=l.readUI16(a));this.hasClipActions&&(this.clipActions=l.readCLIPACTIONS(a,d))},__class__:Hd});var id=
function(){Hd.call(this);this.type=70;this.name="PlaceObject3";this.version=8;this.level=3};m["format.swf.tags.TagPlaceObject3"]=id;id.__name__="format.swf.tags.TagPlaceObject3";id.__interfaces__=[ud];id.__super__=Hd;id.prototype=v(Hd.prototype,{parse:function(a,b,d,c){b=l.readUI8(a);this.hasClipActions=0!=(b&128);this.hasClipDepth=0!=(b&64);this.hasName=0!=(b&32);this.hasRatio=0!=(b&16);this.hasColorTransform=0!=(b&8);this.hasMatrix=0!=(b&4);this.hasCharacter=0!=(b&2);this.hasMove=0!=(b&1);b=l.readUI8(a);
this.hasOpaqueBackground=0!=(b&64);this.hasVisible=0!=(b&32);this.hasImage=0!=(b&16);this.hasClassName=0!=(b&8);this.hasCacheAsBitmap=0!=(b&4);this.hasBlendMode=0!=(b&2);this.hasFilterList=0!=(b&1);this.depth=l.readUI16(a);this.hasClassName&&(this.className=l.readSTRING(a));this.hasCharacter&&(this.characterId=l.readUI16(a));this.hasMatrix&&(this.matrix=l.readMATRIX(a));this.hasColorTransform&&(this.colorTransform=l.readCXFORMWITHALPHA(a));this.hasRatio&&(this.ratio=l.readUI16(a));this.hasName&&(this.instanceName=
l.readSTRING(a));this.hasClipDepth&&(this.clipDepth=l.readUI16(a));if(this.hasFilterList)for(b=0,c=l.readUI8(a);b<c;)b++,this.surfaceFilterList.push(l.readFILTER(a));this.hasBlendMode&&(this.blendMode=l.readUI8(a));this.hasCacheAsBitmap&&(this.bitmapCache=l.readUI8(a));this.hasVisible&&(this.visible=l.readUI8(a));this.hasOpaqueBackground&&(this.bitmapBackgroundColor=l.readRGBA(a));this.hasClipActions&&(this.clipActions=l.readCLIPACTIONS(a,d))},__class__:id});var Cf=function(){id.call(this);this.type=
94;this.name="PlaceObject4";this.version=19;this.level=4};m["format.swf.tags.TagPlaceObject4"]=Cf;Cf.__name__="format.swf.tags.TagPlaceObject4";Cf.__interfaces__=[ud];Cf.__super__=id;Cf.prototype=v(id.prototype,{parse:function(a,b,d,c){null==c&&(c=!1);id.prototype.parse.call(this,a,b,d,c);tc.gt(a.length-a.position,0)},__class__:Cf});var Ug=function(){this.type=41;this.name="ProductInfo";this.version=3;this.level=1};m["format.swf.tags.TagProductInfo"]=Ug;Ug.__name__="format.swf.tags.TagProductInfo";
Ug.__interfaces__=[va];Ug.prototype={type:null,name:null,version:null,level:null,productId:null,edition:null,majorVersion:null,minorVersion:null,build:null,compileDate:null,parse:function(a,b,d,c){this.productId=l.readUI32(a);this.edition=l.readUI32(a);this.majorVersion=l.readUI8(a);this.minorVersion=l.readUI8(a);this.build=l.readUI32(a)+l.readUI32(a)*(l.MAX_FLOAT_VALUE+1);a=l.readUI32(a)+l.readUI32(a)*(l.MAX_FLOAT_VALUE+1);this.compileDate=new Date(a)},__class__:Ug};var Rg=function(){this.type=24;
this.name="Protect";this.version=2;this.level=1;this.password=new ta(0);this.password.__endian=0};m["format.swf.tags.TagProtect"]=Rg;Rg.__name__="format.swf.tags.TagProtect";Rg.__interfaces__=[va];Rg.prototype={type:null,name:null,version:null,level:null,password:null,parse:function(a,b,d,c){0<b&&a.readBytes(this.password,0,b)},__class__:Rg};var ae=function(){this.characterId=0;this.type=5;this.name="RemoveObject";this.level=this.version=1};m["format.swf.tags.TagRemoveObject"]=ae;ae.__name__="format.swf.tags.TagRemoveObject";
ae.__interfaces__=[ud];ae.prototype={type:null,name:null,version:null,level:null,characterId:null,depth:null,parse:function(a,b,d,c){this.characterId=l.readUI16(a);this.depth=l.readUI16(a)},__class__:ae};var rf=function(){ae.call(this);this.type=28;this.name="RemoveObject2";this.version=3;this.level=2};m["format.swf.tags.TagRemoveObject2"]=rf;rf.__name__="format.swf.tags.TagRemoveObject2";rf.__interfaces__=[ud];rf.__super__=ae;rf.prototype=v(ae.prototype,{parse:function(a,b,d,c){this.depth=l.readUI16(a)},
__class__:rf});var $g=function(){this.type=65;this.name="ScriptLimits";this.version=7;this.level=1};m["format.swf.tags.TagScriptLimits"]=$g;$g.__name__="format.swf.tags.TagScriptLimits";$g.__interfaces__=[va];$g.prototype={type:null,name:null,version:null,level:null,maxRecursionDepth:null,scriptTimeoutSeconds:null,parse:function(a,b,d,c){this.maxRecursionDepth=l.readUI16(a);this.scriptTimeoutSeconds=l.readUI16(a)},__class__:$g};var Lg=function(){this.color=16777215;this.type=9;this.name="SetBackgroundColor";
this.level=this.version=1};m["format.swf.tags.TagSetBackgroundColor"]=Lg;Lg.__name__="format.swf.tags.TagSetBackgroundColor";Lg.__interfaces__=[va];Lg.prototype={type:null,name:null,version:null,level:null,color:null,parse:function(a,b,d,c){this.color=l.readRGB(a)},__class__:Lg};var ah=function(){this.type=66;this.name="SetTabIndex";this.version=7;this.level=1};m["format.swf.tags.TagSetTabIndex"]=ah;ah.__name__="format.swf.tags.TagSetTabIndex";ah.__interfaces__=[va];ah.prototype={type:null,name:null,
version:null,level:null,depth:null,tabIndex:null,parse:function(a,b,d,c){this.depth=l.readUI16(a);this.tabIndex=l.readUI16(a)},__class__:ah};var Jg=function(){this.type=1;this.name="ShowFrame";this.level=this.version=1};m["format.swf.tags.TagShowFrame"]=Jg;Jg.__name__="format.swf.tags.TagShowFrame";Jg.__interfaces__=[ud];Jg.prototype={type:null,name:null,version:null,level:null,parse:function(a,b,d,c){},__class__:Jg};var Pg=function(){this.type=19;this.name="SoundStreamBlock";this.level=this.version=
1;this.soundData=new ta(0);this.soundData.__endian=0};m["format.swf.tags.TagSoundStreamBlock"]=Pg;Pg.__name__="format.swf.tags.TagSoundStreamBlock";Pg.__interfaces__=[va];Pg.prototype={type:null,name:null,version:null,level:null,soundData:null,parse:function(a,b,d,c){a.readBytes(this.soundData,0,b)},__class__:Pg};var de=function(){this.type=18;this.name="SoundStreamHead";this.level=this.version=1};m["format.swf.tags.TagSoundStreamHead"]=de;de.__name__="format.swf.tags.TagSoundStreamHead";de.__interfaces__=
[va];de.prototype={type:null,name:null,version:null,level:null,playbackSoundRate:null,playbackSoundSize:null,playbackSoundType:null,streamSoundCompression:null,streamSoundRate:null,streamSoundSize:null,streamSoundType:null,streamSoundSampleCount:null,latencySeek:null,parse:function(a,b,d,c){l.readUB(a,4);this.playbackSoundRate=l.readUB(a,2);this.playbackSoundSize=l.readUB(a,1);this.playbackSoundType=l.readUB(a,1);this.streamSoundCompression=l.readUB(a,4);this.streamSoundRate=l.readUB(a,2);this.streamSoundSize=
l.readUB(a,1);this.streamSoundType=l.readUB(a,1);this.streamSoundSampleCount=l.readUI16(a);2==this.streamSoundCompression&&(this.latencySeek=l.readSI16(a))},__class__:de};var tf=function(){de.call(this);this.type=45;this.name="SoundStreamHead2";this.version=3;this.level=2};m["format.swf.tags.TagSoundStreamHead2"]=tf;tf.__name__="format.swf.tags.TagSoundStreamHead2";tf.__interfaces__=[va];tf.__super__=de;tf.prototype=v(de.prototype,{__class__:tf});var Ng=function(){this.type=15;this.name="StartSound";
this.level=this.version=1};m["format.swf.tags.TagStartSound"]=Ng;Ng.__name__="format.swf.tags.TagStartSound";Ng.__interfaces__=[va];Ng.prototype={type:null,name:null,version:null,level:null,soundId:null,soundInfo:null,parse:function(a,b,d,c){this.soundId=l.readUI16(a);this.soundInfo=l.readSOUNDINFO(a)},__class__:Ng};var lh=function(){this.type=89;this.name="StartSound2";this.version=9;this.level=2};m["format.swf.tags.TagStartSound2"]=lh;lh.__name__="format.swf.tags.TagStartSound2";lh.__interfaces__=
[va];lh.prototype={type:null,name:null,version:null,level:null,soundClassName:null,soundInfo:null,parse:function(a,b,d,c){this.soundClassName=l.readSTRING(a);this.soundInfo=l.readSOUNDINFO(a)},__class__:lh};var vd=function(){this.type=76;this.name="SymbolClass";this.version=9;this.level=1;this.symbols=[]};m["format.swf.tags.TagSymbolClass"]=vd;vd.__name__="format.swf.tags.TagSymbolClass";vd.__interfaces__=[va];vd.prototype={type:null,name:null,version:null,level:null,symbols:null,parse:function(a,
b,d,c){b=0;for(d=l.readUI16(a);b<d;)b++,this.symbols.push(l.readSYMBOL(a))},__class__:vd};var Kc=function(a){null==a&&(a=0);this.type=a;this.name="????";this.version=0;this.level=1};m["format.swf.tags.TagUnknown"]=Kc;Kc.__name__="format.swf.tags.TagUnknown";Kc.__interfaces__=[va];Kc.prototype={type:null,name:null,version:null,level:null,parse:function(a,b,d,c){l.skipBytes(a,b)},__class__:Kc};var Yg=function(){this.type=61;this.name="VideoFrame";this.version=6;this.level=1;this.videoData=new ta(0);
this.videoData.__endian=0};m["format.swf.tags.TagVideoFrame"]=Yg;Yg.__name__="format.swf.tags.TagVideoFrame";Yg.__interfaces__=[va];Yg.prototype={type:null,name:null,version:null,level:null,streamId:null,frameNum:null,videoData:null,parse:function(a,b,d,c){this.streamId=l.readUI16(a);this.frameNum=l.readUI16(a);a.readBytes(this.videoData,0,b-4)},__class__:Yg};var Df=function(a){Kc.call(this);this.type=253;this.name="SWFEncryptActions"};m["format.swf.tags.etc.TagSWFEncryptActions"]=Df;Df.__name__=
"format.swf.tags.etc.TagSWFEncryptActions";Df.__interfaces__=[va];Df.__super__=Kc;Df.prototype=v(Kc.prototype,{__class__:Df});var Ef=function(a){Kc.call(this,a)};m["format.swf.tags.etc.TagSWFEncryptSignature"]=Ef;Ef.__name__="format.swf.tags.etc.TagSWFEncryptSignature";Ef.__interfaces__=[va];Ef.__super__=Kc;Ef.prototype=v(Kc.prototype,{__class__:Ef});var Dg=function(a,b){null==b&&(b=0);null==a&&(a=0);this.tagIndexStart=this.tagIndexEnd=0;this.frameNumber=a;this.tagIndexStart=b;this.objects=new Y;
this.characters=[]};m["format.swf.timeline.Frame"]=Dg;Dg.__name__="format.swf.timeline.Frame";Dg.prototype={frameNumber:null,tagIndexStart:null,tagIndexEnd:null,label:null,objects:null,_objectsSortedByDepth:null,characters:null,getObjectsSortedByDepth:function(){var a=[];if(null==this._objectsSortedByDepth){for(var b=this.objects.keys();b.hasNext();){var d=b.next();a.push(d)}a.sort(u(this,this.sortNumeric));this._objectsSortedByDepth=[];b=0;for(d=a.length;b<d;){var c=b++;this._objectsSortedByDepth.push(this.objects.h[a[c]])}}return this._objectsSortedByDepth},
sortNumeric:function(a,b){return a-b},placeObject:function(a,b){var d=this.objects.h[b.depth];if(null!=d)if(0==b.characterId||null==b.characterId)d.lastModifiedAtIndex=a,d.isKeyframe=!1;else{if(b.hasName||b.hasMatrix||b.hasColorTransform||b.hasFilterList)d.lastModifiedAtIndex=a;d.isKeyframe=!0;b.characterId!=d.characterId&&(d.lastModifiedAtIndex=0,d.placedAtIndex=a,d.characterId=b.characterId)}else{d=this.objects;var c=b.depth;a=new oh(b.depth,b.clipDepth,b.characterId,b.className,a,0,!0);d.h[c]=
a}this._objectsSortedByDepth=null},removeObject:function(a){this.objects.remove(a.depth);this._objectsSortedByDepth=null},clone:function(){for(var a=new Dg,b=this.objects.keys();b.hasNext();){var d=b.next(),c=a.objects,e=this.objects.h[d].clone();c.h[d]=e}return a},__class__:Dg};var oh=function(a,b,d,c,e,f,h){null==h&&(h=!1);null==f&&(f=0);this.layer=-1;this.depth=a;this.clipDepth=b;this.characterId=d;this.className=c;this.placedAtIndex=e;this.lastModifiedAtIndex=f;this.isKeyframe=h;this.layer=-1};
m["format.swf.timeline.FrameObject"]=oh;oh.__name__="format.swf.timeline.FrameObject";oh.prototype={clipDepth:null,depth:null,characterId:null,className:null,placedAtIndex:null,lastModifiedAtIndex:null,isKeyframe:null,layer:null,clone:function(){return new oh(this.depth,this.clipDepth,this.characterId,this.className,this.placedAtIndex,this.lastModifiedAtIndex,!1)},__class__:oh};var Gi=function(a,b){this.depth=this.frameCount=0;this.depth=a;this.frameCount=b;this.frameStripMap=[];this.strips=[]};m["format.swf.timeline.Layer"]=
Gi;Gi.__name__="format.swf.timeline.Layer";Gi.prototype={depth:null,frameCount:null,frameStripMap:null,strips:null,appendStrip:function(a,b,d){if(0!=a){var c=this.strips.length;if(0==c&&0<b){for(var e=0;e<b;){var f=e++;this.frameStripMap[f]=c}this.strips[c++]=new Gf(1,0,b-1)}else if(0<c&&(e=this.strips[c-1],e.endFrameIndex+1<b)){for(f=e.endFrameIndex+1;f<b;){var h=f++;this.frameStripMap[h]=c}this.strips[c++]=new Gf(1,e.endFrameIndex+1,b-1)}e=b;for(f=d+1;e<f;)h=e++,this.frameStripMap[h]=c;this.strips[c]=
new Gf(a,b,d)}},__class__:Gi};var Gf=function(a,b,d){this.type=this.startFrameIndex=this.endFrameIndex=0;this.type=a;this.startFrameIndex=b;this.endFrameIndex=d};m["format.swf.timeline.LayerStrip"]=Gf;Gf.__name__="format.swf.timeline.LayerStrip";Gf.prototype={type:null,startFrameIndex:null,endFrameIndex:null,__class__:Gf};var Ei=function(a,b){this.frameNumber=a;this.name=b};m["format.swf.timeline.Scene"]=Ei;Ei.__name__="format.swf.timeline.Scene";Ei.prototype={frameNumber:null,name:null,__class__:Ei};
var Fi=function(){this.data=new ta(0);this.data.__endian=0};m["format.swf.timeline.SoundStream"]=Fi;Fi.__name__="format.swf.timeline.SoundStream";Fi.prototype={startFrame:null,numFrames:null,numSamples:null,compression:null,rate:null,size:null,type:null,data:null,__class__:Fi};var H=function(a){this.length=a.byteLength;this.b=new Uint8Array(a);this.b.bufferValue=a;a.hxBytes=this;a.bytes=this.b};m["haxe.io.Bytes"]=H;H.__name__="haxe.io.Bytes";H.ofString=function(a,b){b=[];for(var d=0;d<a.length;){var c=
a.charCodeAt(d++);55296<=c&&56319>=c&&(c=c-55232<<10|a.charCodeAt(d++)&1023);127>=c?b.push(c):(2047>=c?b.push(192|c>>6):(65535>=c?b.push(224|c>>12):(b.push(240|c>>18),b.push(128|c>>12&63)),b.push(128|c>>6&63)),b.push(128|c&63))}return new H((new Uint8Array(b)).buffer)};H.ofData=function(a){var b=a.hxBytes;return null!=b?b:new H(a)};H.prototype={length:null,b:null,data:null,blit:function(a,b,d,c){if(0>a||0>d||0>c||a+c>this.length||d+c>b.length)throw new w(Gc.OutsideBounds);0==d&&c==b.b.byteLength?
this.b.set(b.b,a):this.b.set(b.b.subarray(d,d+c),a)},sub:function(a,b){if(0>a||0>b||a+b>this.length)throw new w(Gc.OutsideBounds);return new H(this.b.buffer.slice(a+this.b.byteOffset,a+this.b.byteOffset+b))},getFloat:function(a){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));return this.data.getFloat32(a,!0)},setUInt16:function(a,b){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));this.data.setUint16(a,b,!0)},
getInt32:function(a){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));return this.data.getInt32(a,!0)},setInt32:function(a,b){null==this.data&&(this.data=new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength));this.data.setInt32(a,b,!0)},getInt64:function(a){return new ph(this.getInt32(a+4),this.getInt32(a))},getString:function(a,b,d){if(0>a||0>b||a+b>this.length)throw new w(Gc.OutsideBounds);d="";var c=this.b,e=Wj.fromCharCode,f=a;for(a+=b;f<a;)if(b=
c[f++],128>b){if(0==b)break;d+=e(b)}else if(224>b)d+=e((b&63)<<6|c[f++]&127);else if(240>b){var h=c[f++];d+=e((b&31)<<12|(h&127)<<6|c[f++]&127)}else{h=c[f++];var k=c[f++];b=(b&15)<<18|(h&127)<<12|(k&127)<<6|c[f++]&127;d+=e((b>>10)+55232);d+=e(b&1023|56320)}return d},toString:function(){return this.getString(0,this.length)},__class__:H};var Ri=function(){};m["openfl.utils.IDataOutput"]=Ri;Ri.__name__="openfl.utils.IDataOutput";Ri.prototype={__class__:Ri};var Si=function(){};m["openfl.utils.IDataInput"]=
Si;Si.__name__="openfl.utils.IDataInput";Si.prototype={__class__:Si};var ta=function(a){null==a&&(a=0);var b=new H(new ArrayBuffer(a));H.call(this,b.b.buffer);this.__length=a;null==ta.__defaultEndian&&(Na.get_endianness()==Hf.LITTLE_ENDIAN?ta.__defaultEndian=1:ta.__defaultEndian=0);this.__endian=ta.__defaultEndian;this.position=0};m["openfl.utils.ByteArrayData"]=ta;ta.__name__="openfl.utils.ByteArrayData";ta.__interfaces__=[Ri,Si];ta.fromBytes=function(a){var b=new ta;b.__fromBytes(a);return b};ta.__super__=
H;ta.prototype=v(H.prototype,{position:null,__endian:null,__length:null,readByte:function(){var a=this.readUnsignedByte();return 0!=(a&128)?a-256:a},readBytes:function(a,b,d){null==d&&(d=0);null==b&&(b=0);0==d&&(d=this.length-this.position);if(this.position+d>this.length)throw new w(new ie);a.length<b+d&&a.__resize(b+d);a.blit(b,this,this.position,d);this.position+=d},readFloat:function(){if(1==this.__endian){if(this.position+4>this.length)throw new w(new ie);this.position+=4;return this.getFloat(this.position-
4)}return yc.i32ToFloat(this.readInt())},readInt:function(){var a=this.readUnsignedByte(),b=this.readUnsignedByte(),d=this.readUnsignedByte(),c=this.readUnsignedByte();return 1==this.__endian?c<<24|d<<16|b<<8|a:a<<24|b<<16|d<<8|c},readShort:function(){var a=this.readUnsignedByte(),b=this.readUnsignedByte();a=1==this.__endian?b<<8|a:a<<8|b;return 0!=(a&32768)?a-65536:a},readUnsignedByte:function(){if(this.position<this.length)return this.b[this.position++];throw new w(new ie);},readUnsignedInt:function(){var a=
this.readUnsignedByte(),b=this.readUnsignedByte(),d=this.readUnsignedByte(),c=this.readUnsignedByte();return 1==this.__endian?c<<24|d<<16|b<<8|a:a<<24|b<<16|d<<8|c},readUnsignedShort:function(){var a=this.readUnsignedByte(),b=this.readUnsignedByte();return 1==this.__endian?(b<<8)+a:a<<8|b},readUTFBytes:function(a){if(this.position+a>this.length)throw new w(new ie);this.position+=a;return this.getString(this.position-a,a)},uncompress:function(a){null==a&&(a=2);if(this.__length>this.length){var b=this.length;
this.length=this.__length;var d=new H(new ArrayBuffer(b));d.blit(0,this,0,b);this.b=d.b;this.__length=d.length;this.data=d.data;this.length=b}switch(a){case 0:a=xb.decompress(this,Wk.DEFLATE);break;case 1:a=xb.decompress(this,Wk.LZMA);break;default:a=xb.decompress(this,Wk.ZLIB)}null!=a&&(this.b=a.b,this.__length=a.length,this.data=a.data,this.length=this.__length);this.position=0},writeByte:function(a){this.__resize(this.position+1);this.b[this.position++]=a&255},writeBytes:function(a,b,d){null==
d&&(d=0);null==b&&(b=0);0!=ya.get_length(a)&&(0==d&&(d=ya.get_length(a)-b),this.__resize(this.position+d),this.blit(this.position,a,b,d),this.position+=d)},writeInt:function(a){this.__resize(this.position+4);1==this.__endian?(this.b[this.position++]=a&255,this.b[this.position++]=a>>8&255,this.b[this.position++]=a>>16&255,this.b[this.position++]=a>>24&255):(this.b[this.position++]=a>>24&255,this.b[this.position++]=a>>16&255,this.b[this.position++]=a>>8&255,this.b[this.position++]=a&255)},writeUnsignedInt:function(a){this.writeInt(a)},
__fromBytes:function(a){this.b=a.b;this.__length=a.length;this.data=a.data;this.length=a.length},__resize:function(a){if(a>this.__length){var b=new H(new ArrayBuffer(3*(a+1)>>1));if(0<this.__length){var d=this.length;this.length=this.__length;b.blit(0,this,0,this.__length);this.length=d}this.b=b.b;this.__length=b.length;this.data=b.data}this.length<a&&(this.length=a)},__class__:ta});var ug=function(a){this.bitsPending=0;ta.call(this,a)};m["format.swf.utils.BitArray"]=ug;ug.__name__="format.swf.utils.BitArray";
ug.__super__=ta;ug.prototype=v(ta.prototype,{bitsPending:null,readBits:function(a,b){null==b&&(b=0);if(0==a)return b;if(0<this.bitsPending){var d=this.b[this.position-1]&255>>8-this.bitsPending;var c=Math.min(this.bitsPending,a)|0;this.bitsPending-=c;d>>=this.bitsPending}else c=Math.min(8,a)|0,this.bitsPending=8-c,d=this.readUnsignedByte()>>this.bitsPending;a-=c;b=b<<c|d;return 0<a?this.readBits(a,b):b},resetBitsPending:function(){this.bitsPending=0},__class__:ug});var da=function(){};m["format.swf.utils.ColorUtils"]=
da;da.__name__="format.swf.utils.ColorUtils";da.alpha=function(a){return(a>>>24)/255};da.rgb=function(a){return a&16777215};da.r=function(a){return(da.rgb(a)>>16&255)/255};da.g=function(a){return(da.rgb(a)>>8&255)/255};da.b=function(a){return(da.rgb(a)&255)/255};da.interpolate=function(a,b,d){var c=da.r(a),e=da.g(a),f=da.b(a);a=da.alpha(a);c=255*(c+(da.r(b)-c)*d)|0;e=255*(e+(da.g(b)-e)*d)|0;f=255*(f+(da.b(b)-f)*d)|0;b=255*(a+(da.alpha(b)-a)*d)|0;return f|e<<8|c<<16|b<<24};da.rgbToString=function(a){return Ob.printf("#%06x",
[a&16777215])};da.rgbaToString=function(a){return Ob.printf("#%06x(%02x)",[a&16777215,a>>>24])};var Ii=function(){};m["format.swf.utils.MatrixUtils"]=Ii;Ii.__name__="format.swf.utils.MatrixUtils";Ii.interpolate=function(a,b,d){var c=new df;c.scaleX=a.scaleX+(b.scaleX-a.scaleX)*d;c.scaleY=a.scaleY+(b.scaleY-a.scaleY)*d;c.rotateSkew0=a.rotateSkew0+(b.rotateSkew0-a.rotateSkew0)*d;c.rotateSkew1=a.rotateSkew1+(b.rotateSkew1-a.rotateSkew1)*d;c.translateX=a.translateX+(b.translateX-a.translateX)*d|0;c.translateY=
a.translateY+(b.translateY-a.translateY)*d|0;return c};var Bb=function(){};m["format.swf.utils.NumberUtils"]=Bb;Bb.__name__="format.swf.utils.NumberUtils";Bb.roundPixels20=function(a){return Math.round(100*a)/100};Bb.roundPixels400=function(a){return Math.round(1E4*a)/1E4};var Ob=function(){};m["format.swf.utils.StringUtils"]=Ob;Ob.__name__="format.swf.utils.StringUtils";Ob.printf=function(a,b){var d="",c=0,e=-1,f=0;a:for(;f<a.length;){var h=a.charAt(f);if("%"==h&&++f<a.length&&(h=a.charAt(f),"%"!=
h)){var k=!1,n=!1,l=!1,m=!1,g=-1,q=-1;h=Ob.getIndex(a);if(-1>h||0==h){ra.trace("ERR parsing index",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:118,className:"format.swf.utils.StringUtils",methodName:"printf"});break}else if(-1==h){if(1==e){ra.trace("ERR: indexed placeholder expected",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:121,className:"format.swf.utils.StringUtils",methodName:"printf"});break}-1==e&&(e=0);
++c}else{if(0==e){ra.trace("ERR: non-indexed placeholder expected",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:125,className:"format.swf.utils.StringUtils",methodName:"printf"});break}-1==e&&(e=1);c=h}for(h=a.charAt(f);"+"==h||"-"==h||"#"==h||" "==h||"0"==h;){switch(h){case " ":l=!0;break;case "+":k=!0;break;case "-":n=!0;break;case "0":m=!0}if(++f==a.length)break;h=a.charAt(f)}if(f==a.length)break;if("*"==h){if(++f==a.length)break;h=Ob.getIndex(a);if(-1>
h||0==h){ra.trace("ERR parsing index for width",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:155,className:"format.swf.utils.StringUtils",methodName:"printf"});break}else if(-1==h){if(1==e){ra.trace("ERR: indexed placeholder expected for width",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:158,className:"format.swf.utils.StringUtils",methodName:"printf"});break}-1==e&&(e=0);h=c++}else{if(0==e){ra.trace("ERR: non-indexed placeholder expected for width",
{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:162,className:"format.swf.utils.StringUtils",methodName:"printf"});break}-1==e&&(e=1)}--h;if(b.length>h&&0<=h){if(g=b[h]|0,isNaN(g)){ra.trace("ERR NaN while parsing width",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:171,className:"format.swf.utils.StringUtils",methodName:"printf"});break}}else{ra.trace("ERR index out of bounds while parsing width",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",
lineNumber:175,className:"format.swf.utils.StringUtils",methodName:"printf"});break}h=a.charAt(f)}else{for(;"0"<=h&&"9">=h;){-1==g&&(g=0);g=10*g+S.parseInt(h);if(++f==a.length)break;h=a.charAt(f)}if(-1!=g&&f==a.length){ra.trace("ERR eof while parsing width",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:188,className:"format.swf.utils.StringUtils",methodName:"printf"});break}}if("."==h){if(++f==a.length)break;h=a.charAt(f);if("*"==h){if(++f==a.length)break;
h=Ob.getIndex(a);if(-1>h||0==h){ra.trace("ERR parsing index for precision",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:204,className:"format.swf.utils.StringUtils",methodName:"printf"});break}else if(-1==h){if(1==e){ra.trace("ERR: indexed placeholder expected for precision",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:207,className:"format.swf.utils.StringUtils",methodName:"printf"});break}-1==e&&(e=0);h=c++}else{if(0==
e){ra.trace("ERR: non-indexed placeholder expected for precision",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:211,className:"format.swf.utils.StringUtils",methodName:"printf"});break}-1==e&&(e=1)}--h;if(b.length>h&&0<=h){if(q=b[h]|0,isNaN(q)){ra.trace("ERR NaN while parsing precision",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:220,className:"format.swf.utils.StringUtils",methodName:"printf"});break}}else{ra.trace("ERR index out of bounds while parsing precision",
{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:224,className:"format.swf.utils.StringUtils",methodName:"printf"});break}h=a.charAt(f)}else{for(;"0"<=h&&"9">=h;){-1==q&&(q=0);q=10*q+S.parseInt(h);if(++f==a.length)break;h=a.charAt(f)}if(-1!=q&&f==a.length){ra.trace("ERR eof while parsing precision",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:236,className:"format.swf.utils.StringUtils",methodName:"printf"});break}}}switch(h){case "l":if(++f==
a.length){ra.trace("ERR eof after length",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:248,className:"format.swf.utils.StringUtils",methodName:"printf"});break a}b=a.charAt(f);if("h"==h&&"h"==b||"l"==h&&"l"==b){if(++f==a.length){ra.trace("ERR eof after length",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:251,className:"format.swf.utils.StringUtils",methodName:"printf"});break a}a.charAt(f)}break a;case "t":if(++f==
a.length){ra.trace("ERR eof after length",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:261,className:"format.swf.utils.StringUtils",methodName:"printf"});break a}a.charAt(f);break a}if(0<="diufFeEgGxXoscpn".indexOf(h))var p=h;else{ra.trace("ERR unknown type: "+h,{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:272,className:"format.swf.utils.StringUtils",methodName:"printf"});break}if(b.length>=c&&0<c)var A=b[c-1];else{ra.trace("ERR value index out of bounds ("+
c+")",{fileName:"../../submodules/openfl/scripts/format/swf/utils/StringUtils.hx",lineNumber:279,className:"format.swf.utils.StringUtils",methodName:"printf"});break}h="";switch(p){case "G":-1==q&&(q=6);a=Math.pow(10,q);f="number"==typeof A?A:parseFloat(S.string(A));h=S.string(Math.round(Math.abs(f)*a)/a);if(0<q)for(a=h.indexOf("."),-1==a?(h+=".",f=q):f=q-(h.length-a-1),a=0;a<f;)a++,h+="0";break a;case "c":S.string(A).charAt(0);break a;case "i":a="number"==typeof A?A:S.parseInt(S.string(A));S.string(Math.abs(a));
break a;case "o":je.encode(S.string(A|0),"01234567");break a;case "p":h="number"==typeof A?S.string(A|0):Q.hex(S.parseInt(A));"X"==p&&h.toUpperCase();break a;case "s":h=S.string(A);-1!=q&&L.substr(h,0,q);break a;case "u":S.string("number"==typeof A?A:S.parseInt(S.string(A)));break a}q=k||l;if(-1<g&&(k=g-h.length,q&&--k,0<k))if(m=m&&!n?"0":" ",n)for(n=0;n<k;)n++,h+=m;else for(n=0;n<k;)n++,h=m+h;q&&(h="-"+h)}d+=h;++f}return d};Ob.getIndex=function(a){for(var b=0,d=!1,c,e=Ob.i;;){c=a.charAt(Ob.i);if(!("0"<=
c&&"9">=c))break;d=!0;b=10*b+S.parseInt(c);if(++Ob.i==a.length)return-2}return d?"$"!=c?(Ob.i=e,-1):++Ob.i==a.length?-2:b:-1};var qh=sa["haxe.StackItem"]={__ename__:"haxe.StackItem",__constructs__:["CFunction","Module","FilePos","Method","LocalFunction"],CFunction:{_hx_index:0,__enum__:"haxe.StackItem",toString:r},Module:(p=function(a){return{_hx_index:1,m:a,__enum__:"haxe.StackItem",toString:r}},p.__params__=["m"],p),FilePos:(p=function(a,b,d,c){return{_hx_index:2,s:a,file:b,line:d,column:c,__enum__:"haxe.StackItem",
toString:r}},p.__params__=["s","file","line","column"],p),Method:(p=function(a,b){return{_hx_index:3,classname:a,method:b,__enum__:"haxe.StackItem",toString:r}},p.__params__=["classname","method"],p),LocalFunction:(p=function(a){return{_hx_index:4,v:a,__enum__:"haxe.StackItem",toString:r}},p.__params__=["v"],p)},fa=function(){};m["haxe.CallStack"]=fa;fa.__name__="haxe.CallStack";fa.getStack=function(a){if(null==a)return[];var b=Error.prepareStackTrace;Error.prepareStackTrace=function(a,b){a=[];for(var c=
0;c<b.length;){var d=b[c];++c;null!=fa.wrapCallSite&&(d=fa.wrapCallSite(d));var h=null,k=d.getFunctionName();if(null!=k){var n=k.lastIndexOf(".");0<=n&&(h=L.substr(k,0,n),k=L.substr(k,n+1,null),h=qh.Method(h,k))}k=d.getFileName();n=null==k?-1:k.indexOf("file:");null!=fa.wrapCallSite&&0<n&&(k=L.substr(k,n+6,null));a.push(qh.FilePos(h,k,d.getLineNumber(),d.getColumnNumber()))}return a};a=fa.makeStack(a.stack);Error.prepareStackTrace=b;return a};fa.callStack=function(){try{throw Error();}catch(b){fa.lastException=
b;var a=fa.getStack(b);a.shift();return a}};fa.exceptionStack=function(){return fa.getStack(fa.lastException)};fa.toString=function(a){for(var b=new og,d=0;d<a.length;){var c=a[d];++d;b.b+="\nCalled from ";fa.itemToString(b,c)}return b.b};fa.itemToString=function(a,b){switch(b._hx_index){case 0:a.b+="a C function";break;case 1:b=b.m;a.b+="module ";a.b+=null==b?"null":""+b;break;case 2:var d=b.column,c=b.line,e=b.file;b=b.s;null!=b&&(fa.itemToString(a,b),a.b+=" (");a.b+=null==e?"null":""+e;a.b+=" line ";
a.b+=null==c?"null":""+c;null!=d&&(a.b+=" column ",a.b+=null==d?"null":""+d);null!=b&&(a.b+=")");break;case 3:d=b.method;b=b.classname;a.b+=null==b?"null":""+b;a.b+=".";a.b+=null==d?"null":""+d;break;case 4:b=b.v,a.b+="local function #",a.b+=null==b?"null":""+b}};fa.makeStack=function(a){if(null==a)return[];if("string"==typeof a){a=a.split("\n");"Error"==a[0]&&a.shift();for(var b=[],d=new wa("^   at ([A-Za-z0-9_. ]+) \\(([^)]+):([0-9]+):([0-9]+)\\)$",""),c=0;c<a.length;){var e=a[c];++c;if(d.match(e)){e=
d.matched(1).split(".");var f=e.pop(),h=d.matched(2),k=S.parseInt(d.matched(3)),n=S.parseInt(d.matched(4));b.push(qh.FilePos("Anonymous function"==f?qh.LocalFunction():"Global code"==f?null:qh.Method(e.join("."),f),h,k,n))}else b.push(qh.Module(Q.trim(e)))}return b}return a};var ph=function(a,b){this.high=a;this.low=b};m["haxe._Int64.___Int64"]=ph;ph.__name__="haxe._Int64.___Int64";ph.prototype={high:null,low:null,__class__:ph};var ra=function(){};m["haxe.Log"]=ra;ra.__name__="haxe.Log";ra.formatOutput=
function(a,b){a=S.string(a);if(null==b)return a;var d=b.fileName+":"+b.lineNumber;if(null!=b&&null!=b.customParams){var c=0;for(b=b.customParams;c<b.length;){var e=b[c];++c;a+=", "+S.string(e)}}return d+": "+a};ra.trace=function(a,b){a=ra.formatOutput(a,b);"undefined"!=typeof console&&null!=console.log&&console.log(a)};var wb=function(){this.buf=new og;this.cache=[];this.useCache=wb.USE_CACHE;this.useEnumIndex=wb.USE_ENUM_INDEX;this.shash=new ea;this.scount=0};m["haxe.Serializer"]=wb;wb.__name__=
"haxe.Serializer";wb.prototype={buf:null,cache:null,shash:null,scount:null,useCache:null,useEnumIndex:null,toString:function(){return this.buf.b},serializeString:function(a){var b=this.shash;b=null!=t[a]?b.getReserved(a):b.h[a];if(null!=b)this.buf.b+="R",this.buf.b+=null==b?"null":""+b;else{b=this.shash;var d=this.scount++;null!=t[a]?b.setReserved(a,d):b.h[a]=d;this.buf.b+="y";a=encodeURIComponent(a);this.buf.b+=S.string(a.length);this.buf.b+=":";this.buf.b+=null==a?"null":""+a}},serializeRef:function(a){for(var b=
typeof a,d=0,c=this.cache.length;d<c;){var e=d++,f=this.cache[e];if(typeof f==b&&f==a)return this.buf.b+="r",this.buf.b+=null==e?"null":""+e,!0}this.cache.push(a);return!1},serializeFields:function(a){for(var b=0,d=V.fields(a);b<d.length;){var c=d[b];++b;this.serializeString(c);this.serialize(V.field(a,c))}this.buf.b+="g"},serialize:function(a){var b=Ea["typeof"](a);switch(b._hx_index){case 0:this.buf.b+="n";break;case 1:if(0==a){this.buf.b+="z";break}this.buf.b+="i";this.buf.b+=null==a?"null":""+
a;break;case 2:isNaN(a)?this.buf.b+="k":isFinite(a)?(this.buf.b+="d",this.buf.b+=null==a?"null":""+a):this.buf.b+=0>a?"m":"p";break;case 3:this.buf.b+=a?"t":"f";break;case 4:U.__instanceof(a,Zk)?(a=a.__name__,this.buf.b+="A",this.serializeString(a)):U.__instanceof(a,$k)?(this.buf.b+="B",this.serializeString(a.__ename__)):this.useCache&&this.serializeRef(a)||(this.buf.b+="o",this.serializeFields(a));break;case 5:throw new w("Cannot serialize function");case 6:b=b.c;if(b==String){this.serializeString(a);
break}if(this.useCache&&this.serializeRef(a))break;switch(b){case Array:b=0;this.buf.b+="a";for(var d=0,c=a.length;d<c;){var e=d++;null==a[e]?++b:(0<b&&(1==b?this.buf.b+="n":(this.buf.b+="u",this.buf.b+=null==b?"null":""+b),b=0),this.serialize(a[e]))}0<b&&(1==b?this.buf.b+="n":(this.buf.b+="u",this.buf.b+=null==b?"null":""+b));this.buf.b+="h";break;case Date:this.buf.b+="v";this.buf.b+=S.string(a.getTime());break;case Y:this.buf.b+="q";for(b=a.keys();b.hasNext();)d=b.next(),this.buf.b+=":",this.buf.b+=
null==d?"null":""+d,this.serialize(a.h[d]);this.buf.b+="h";break;case hb:this.buf.b+="l";for(a=a.h;null!=a;)b=a.item,a=a.next,this.serialize(b);this.buf.b+="h";break;case fc:this.buf.b+="M";for(b=a.keys();b.hasNext();)d=b.next(),c=V.field(d,"__id__"),V.deleteField(d,"__id__"),this.serialize(d),d.__id__=c,this.serialize(a.h[d.__id__]);this.buf.b+="h";break;case ea:this.buf.b+="b";for(b=a.keys();b.hasNext();)d=b.next(),this.serializeString(d),this.serialize(null!=t[d]?a.getReserved(d):a.h[d]);this.buf.b+=
"h";break;case H:this.buf.b+="s";this.buf.b+=S.string(Math.ceil(8*a.length/6));this.buf.b+=":";d=0;c=a.length-2;b=wb.BASE64_CODES;if(null==b){b=Array(wb.BASE64.length);e=0;for(var f=wb.BASE64.length;e<f;){var h=e++;b[h]=L.cca(wb.BASE64,h)}wb.BASE64_CODES=b}for(;d<c;)e=a.b[d++],f=a.b[d++],h=a.b[d++],this.buf.b+=String.fromCodePoint(b[e>>2]),this.buf.b+=String.fromCodePoint(b[(e<<4|f>>4)&63]),this.buf.b+=String.fromCodePoint(b[(f<<2|h>>6)&63]),this.buf.b+=String.fromCodePoint(b[h&63]);d==c?(c=a.b[d++],
a=a.b[d++],this.buf.b+=String.fromCodePoint(b[c>>2]),this.buf.b+=String.fromCodePoint(b[(c<<4|a>>4)&63]),this.buf.b+=String.fromCodePoint(b[a<<2&63])):d==c+1&&(a=a.b[d++],this.buf.b+=String.fromCodePoint(b[a>>2]),this.buf.b+=String.fromCodePoint(b[a<<4&63]));break;default:this.useCache&&this.cache.pop(),null!=a.hxSerialize?(this.buf.b+="C",this.serializeString(b.__name__),this.useCache&&this.cache.push(a),a.hxSerialize(this),this.buf.b+="g"):(this.buf.b+="c",this.serializeString(b.__name__),this.useCache&&
this.cache.push(a),this.serializeFields(a))}break;case 7:b=b.e;if(this.useCache){if(this.serializeRef(a))break;this.cache.pop()}this.buf.b+=S.string(this.useEnumIndex?"j":"w");this.serializeString(b.__ename__);this.useEnumIndex?(this.buf.b+=":",this.buf.b+=S.string(a._hx_index)):this.serializeString(sa[a.__enum__].__constructs__[a._hx_index]);this.buf.b+=":";b=Ea.enumParameters(a);this.buf.b+=S.string(b.length);for(d=0;d<b.length;)c=b[d],++d,this.serialize(c);this.useCache&&this.cache.push(a);break;
default:throw new w("Cannot serialize "+S.string(a));}},__class__:wb};var Td=function(a){var b=this;this.id=setInterval(function(){b.run()},a)};m["haxe.Timer"]=Td;Td.__name__="haxe.Timer";Td.delay=function(a,b){var d=new Td(b);d.run=function(){d.stop();a()};return d};Td.prototype={id:null,stop:function(){null!=this.id&&(clearInterval(this.id),this.id=null)},run:function(){},__class__:Td};var rh=function(){};m["haxe._Unserializer.DefaultResolver"]=rh;rh.__name__="haxe._Unserializer.DefaultResolver";
rh.prototype={resolveClass:function(a){return m[a]},resolveEnum:function(a){return sa[a]},__class__:rh};var mb=function(a){this.buf=a;this.length=a.length;this.pos=0;this.scache=[];this.cache=[];a=mb.DEFAULT_RESOLVER;null==a&&(a=new rh,mb.DEFAULT_RESOLVER=a);this.resolver=a};m["haxe.Unserializer"]=mb;mb.__name__="haxe.Unserializer";mb.initCodes=function(){for(var a=[],b=0,d=mb.BASE64.length;b<d;){var c=b++;a[mb.BASE64.charCodeAt(c)]=c}return a};mb.run=function(a){return(new mb(a)).unserialize()};
mb.prototype={buf:null,pos:null,length:null,cache:null,scache:null,resolver:null,setResolver:function(a){null==a?(null==He.instance&&(He.instance=new He),this.resolver=He.instance):this.resolver=a},readDigits:function(){for(var a=0,b=!1,d=this.pos;;){var c=this.buf.charCodeAt(this.pos);if(c!=c)break;if(45==c){if(this.pos!=d)break;b=!0}else{if(48>c||57<c)break;a=10*a+(c-48)}this.pos++}b&&(a*=-1);return a},readFloat:function(){for(var a=this.pos;;){var b=this.buf.charCodeAt(this.pos);if(b!=b)break;
if(43<=b&&58>b||101==b||69==b)this.pos++;else break}return parseFloat(L.substr(this.buf,a,this.pos-a))},unserializeObject:function(a){for(;;){if(this.pos>=this.length)throw new w("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var b=this.unserialize();if("string"!=typeof b)throw new w("Invalid object key");var d=this.unserialize();a[b]=d}this.pos++},unserializeEnum:function(a,b){if(58!=this.buf.charCodeAt(this.pos++))throw new w("Invalid enum format");var d=this.readDigits();if(0==d)return Ea.createEnum(a,
b);for(var c=[];0<d--;)c.push(this.unserialize());return Ea.createEnum(a,b,c)},unserialize:function(){switch(this.buf.charCodeAt(this.pos++)){case 65:var a=this.unserialize(),b=this.resolver.resolveClass(a);if(null==b)throw new w("Class not found "+a);return b;case 66:a=this.unserialize();b=this.resolver.resolveEnum(a);if(null==b)throw new w("Enum not found "+a);return b;case 67:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw new w("Class not found "+a);a=Object.create(b.prototype);
this.cache.push(a);a.hxUnserialize(this);if(103!=this.buf.charCodeAt(this.pos++))throw new w("Invalid custom data");return a;case 77:a=new fc;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)b=this.unserialize(),a.set(b,this.unserialize());this.pos++;return a;case 82:a=this.readDigits();if(0>a||a>=this.scache.length)throw new w("Invalid string reference");return this.scache[a];case 97:a=[];for(this.cache.push(a);;){b=this.buf.charCodeAt(this.pos);if(104==b){this.pos++;break}117==b?(this.pos++,
b=this.readDigits(),a[a.length+b-1]=null):a.push(this.unserialize())}return a;case 98:a=new ea;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);){b=this.unserialize();var d=this.unserialize();null!=t[b]?a.setReserved(b,d):a.h[b]=d}this.pos++;return a;case 99:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw new w("Class not found "+a);a=Object.create(b.prototype);this.cache.push(a);this.unserializeObject(a);return a;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();
case 106:a=this.unserialize();b=this.resolver.resolveEnum(a);if(null==b)throw new w("Enum not found "+a);this.pos++;d=this.readDigits();var c=b.__constructs__.slice()[d];if(null==c)throw new w("Unknown enum index "+a+"@"+d);a=this.unserializeEnum(b,c);this.cache.push(a);return a;case 107:return NaN;case 108:a=new hb;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)a.add(this.unserialize());this.pos++;return a;case 109:return-Infinity;case 110:return null;case 111:return a={},this.cache.push(a),
this.unserializeObject(a),a;case 112:return Infinity;case 113:a=new Y;this.cache.push(a);for(b=this.buf.charCodeAt(this.pos++);58==b;)b=this.readDigits(),d=this.unserialize(),a.h[b]=d,b=this.buf.charCodeAt(this.pos++);if(104!=b)throw new w("Invalid IntMap format");return a;case 114:a=this.readDigits();if(0>a||a>=this.cache.length)throw new w("Invalid reference");return this.cache[a];case 115:a=this.readDigits();c=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos<a)throw new w("Invalid bytes length");
var e=mb.CODES;null==e&&(e=mb.initCodes(),mb.CODES=e);var f=this.pos,h=a&3,k=f+(a-h);b=new H(new ArrayBuffer(3*(a>>2)+(2<=h?h-1:0)));for(d=0;f<k;){var n=e[c.charCodeAt(f++)],l=e[c.charCodeAt(f++)];b.b[d++]=(n<<2|l>>4)&255;n=e[c.charCodeAt(f++)];b.b[d++]=(l<<4|n>>2)&255;l=e[c.charCodeAt(f++)];b.b[d++]=(n<<6|l)&255}2<=h&&(l=e[c.charCodeAt(f++)],k=e[c.charCodeAt(f++)],b.b[d++]=(l<<2|k>>4)&255,3==h&&(c=e[c.charCodeAt(f++)],b.b[d++]=(k<<4|c>>2)&255));this.pos+=a;this.cache.push(b);return b;case 116:return!0;
case 118:return 48<=this.buf.charCodeAt(this.pos)&&57>=this.buf.charCodeAt(this.pos)&&48<=this.buf.charCodeAt(this.pos+1)&&57>=this.buf.charCodeAt(this.pos+1)&&48<=this.buf.charCodeAt(this.pos+2)&&57>=this.buf.charCodeAt(this.pos+2)&&48<=this.buf.charCodeAt(this.pos+3)&&57>=this.buf.charCodeAt(this.pos+3)&&45==this.buf.charCodeAt(this.pos+4)?(a=L.strDate(L.substr(this.buf,this.pos,19)),this.pos+=19):a=new Date(this.readFloat()),this.cache.push(a),a;case 119:a=this.unserialize();b=this.resolver.resolveEnum(a);
if(null==b)throw new w("Enum not found "+a);a=this.unserializeEnum(b,this.unserialize());this.cache.push(a);return a;case 120:throw w.wrap(this.unserialize());case 121:a=this.readDigits();if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos<a)throw new w("Invalid string length");b=L.substr(this.buf,this.pos,a);this.pos+=a;b=decodeURIComponent(b.split("+").join(" "));this.scache.push(b);return b;case 122:return 0}this.pos--;throw new w("Invalid char "+this.buf.charAt(this.pos)+" at position "+
this.pos);},__class__:mb};var He=function(){};m["haxe._Unserializer.NullResolver"]=He;He.__name__="haxe._Unserializer.NullResolver";He.prototype={resolveClass:function(a){return null},resolveEnum:function(a){return null},__class__:He};var Ti=function(a){this.__b=""};m["haxe.Utf8"]=Ti;Ti.__name__="haxe.Utf8";Ti.prototype={__b:null,__class__:Ti};var Ie=function(){this.a1=1;this.a2=0};m["haxe.crypto.Adler32"]=Ie;Ie.__name__="haxe.crypto.Adler32";Ie.read=function(a){var b=new Ie,d=a.readByte(),c=a.readByte(),
e=a.readByte();a=a.readByte();b.a1=e<<8|a;b.a2=d<<8|c;return b};Ie.prototype={a1:null,a2:null,update:function(a,b,d){var c=this.a1,e=this.a2,f=b;for(b+=d;f<b;)d=f++,c=(c+a.b[d])%65521,e=(e+c)%65521;this.a1=c;this.a2=e},equals:function(a){return a.a1==this.a1?a.a2==this.a2:!1},__class__:Ie};var ke=function(){};m["haxe.crypto.Base64"]=ke;ke.__name__="haxe.crypto.Base64";ke.encode=function(a,b){null==b&&(b=!0);var d=(new je(ke.BYTES)).encodeBytes(a).toString();if(b)switch(a.length%3){case 1:d+="==";
break;case 2:d+="="}return d};var je=function(a){for(var b=a.length,d=1;b>1<<d;)++d;if(8<d||b!=1<<d)throw new w("BaseCode : base length must be a power of two.");this.base=a;this.nbits=d};m["haxe.crypto.BaseCode"]=je;je.__name__="haxe.crypto.BaseCode";je.encode=function(a,b){return(new je(H.ofString(b))).encodeString(a)};je.prototype={base:null,nbits:null,encodeBytes:function(a){for(var b=this.nbits,d=this.base,c=8*a.length/b|0,e=new H(new ArrayBuffer(c+(0==8*a.length%b?0:1))),f=0,h=0,k=(1<<b)-1,
n=0,l=0;l<c;){for(;h<b;)h+=8,f<<=8,f|=a.b[n++];h-=b;e.b[l++]=d.b[f>>h&k]&255}0<h&&(e.b[l++]=d.b[f<<b-h&k]&255);return e},encodeString:function(a){return this.encodeBytes(H.ofString(a)).toString()},__class__:je};var Vd=function(){this.crc=-1};m["haxe.crypto.Crc32"]=Vd;Vd.__name__="haxe.crypto.Crc32";Vd.make=function(a){var b=-1,d=a.b.bufferValue,c=0;for(a=a.length;c<a;){var e=c++;e=(b^d.bytes[e])&255;e=1==(e&1)?e>>>1^-306674912:e>>>1;e=1==(e&1)?e>>>1^-306674912:e>>>1;e=1==(e&1)?e>>>1^-306674912:e>>>
1;e=1==(e&1)?e>>>1^-306674912:e>>>1;e=1==(e&1)?e>>>1^-306674912:e>>>1;e=1==(e&1)?e>>>1^-306674912:e>>>1;e=1==(e&1)?e>>>1^-306674912:e>>>1;e=1==(e&1)?e>>>1^-306674912:e>>>1;b=b>>>8^e}return b^-1};Vd.prototype={crc:null,byte:function(a){a=(this.crc^a)&255;a=1==(a&1)?a>>>1^-306674912:a>>>1;a=1==(a&1)?a>>>1^-306674912:a>>>1;a=1==(a&1)?a>>>1^-306674912:a>>>1;a=1==(a&1)?a>>>1^-306674912:a>>>1;a=1==(a&1)?a>>>1^-306674912:a>>>1;a=1==(a&1)?a>>>1^-306674912:a>>>1;a=1==(a&1)?a>>>1^-306674912:a>>>1;this.crc=
this.crc>>>8^(1==(a&1)?a>>>1^-306674912:a>>>1)},update:function(a,b,d){a=a.b.bufferValue;var c=b;for(b+=d;c<b;)d=c++,d=(this.crc^a.bytes[d])&255,d=1==(d&1)?d>>>1^-306674912:d>>>1,d=1==(d&1)?d>>>1^-306674912:d>>>1,d=1==(d&1)?d>>>1^-306674912:d>>>1,d=1==(d&1)?d>>>1^-306674912:d>>>1,d=1==(d&1)?d>>>1^-306674912:d>>>1,d=1==(d&1)?d>>>1^-306674912:d>>>1,d=1==(d&1)?d>>>1^-306674912:d>>>1,d=1==(d&1)?d>>>1^-306674912:d>>>1,this.crc=this.crc>>>8^d},get:function(){return this.crc^-1},__class__:Vd};var qb=function(){};
m["haxe.ds.ArraySort"]=qb;qb.__name__="haxe.ds.ArraySort";qb.sort=function(a,b){qb.rec(a,b,0,a.length)};qb.rec=function(a,b,d,c){var e=d+c>>1;if(12>c-d){if(!(c<=d))for(e=d+1;e<c;)for(var f=e++;f>d;){if(0>b(a[f],a[f-1]))qb.swap(a,f-1,f);else break;--f}}else qb.rec(a,b,d,e),qb.rec(a,b,e,c),qb.doMerge(a,b,d,e,c,e-d,c-e)};qb.doMerge=function(a,b,d,c,e,f,h){if(0!=f&&0!=h)if(2==f+h)0>b(a[c],a[d])&&qb.swap(a,c,d);else{if(f>h){var k=f>>1;var n=d+k;var l=qb.lower(a,b,c,e,n);var m=l-c}else m=h>>1,l=c+m,n=qb.upper(a,
b,d,c,l),k=n-d;qb.rotate(a,b,n,c,l);c=n+m;qb.doMerge(a,b,d,n,c,k,m);qb.doMerge(a,b,c,l,e,f-k,h-m)}};qb.rotate=function(a,b,d,c,e){if(d!=c&&c!=e)for(b=qb.gcd(e-d,c-d);0!=b--;){for(var f=a[d+b],h=c-d,k=d+b,n=d+b+h;n!=d+b;)a[k]=a[n],k=n,n=e-n>h?n+h:d+(h-(e-n));a[k]=f}};qb.gcd=function(a,b){for(;0!=b;){var d=a%b;a=b;b=d}return a};qb.upper=function(a,b,d,c,e){c-=d;for(var f,h;0<c;)f=c>>1,h=d+f,0>b(a[e],a[h])?c=f:(d=h+1,c=c-f-1);return d};qb.lower=function(a,b,d,c,e){c-=d;for(var f,h;0<c;)f=c>>1,h=d+f,
0>b(a[h],a[e])?(d=h+1,c=c-f-1):c=f;return d};qb.swap=function(a,b,d){var c=a[b];a[b]=a[d];a[d]=c};var If=function(){};m["haxe.ds.BalancedTree"]=If;If.__name__="haxe.ds.BalancedTree";If.__interfaces__=[Sd];If.prototype={root:null,set:function(a,b){this.root=this.setLoop(a,b,this.root)},get:function(a){for(var b=this.root;null!=b;){var d=this.compare(a,b.key);if(0==d)return b.value;b=0>d?b.left:b.right}return null},remove:function(a){try{return this.root=this.removeLoop(a,this.root),!0}catch(b){fa.lastException=
b;if("string"==typeof(b instanceof w?b.val:b))return!1;throw b;}},iterator:function(){var a=[];this.iteratorLoop(this.root,a);return L.iter(a)},keys:function(){var a=[];this.keysLoop(this.root,a);return L.iter(a)},setLoop:function(a,b,d){if(null==d)return new bc(null,a,b,null);var c=this.compare(a,d.key);if(0==c)return new bc(d.left,a,b,d.right,null==d?0:d._height);if(0>c)return a=this.setLoop(a,b,d.left),this.balance(a,d.key,d.value,d.right);a=this.setLoop(a,b,d.right);return this.balance(d.left,
d.key,d.value,a)},removeLoop:function(a,b){if(null==b)throw new w("Not_found");var d=this.compare(a,b.key);return 0==d?this.merge(b.left,b.right):0>d?this.balance(this.removeLoop(a,b.left),b.key,b.value,b.right):this.balance(b.left,b.key,b.value,this.removeLoop(a,b.right))},iteratorLoop:function(a,b){null!=a&&(this.iteratorLoop(a.left,b),b.push(a.value),this.iteratorLoop(a.right,b))},keysLoop:function(a,b){null!=a&&(this.keysLoop(a.left,b),b.push(a.key),this.keysLoop(a.right,b))},merge:function(a,
b){if(null==a)return b;if(null==b)return a;var d=this.minBinding(b);return this.balance(a,d.key,d.value,this.removeMinBinding(b))},minBinding:function(a){if(null==a)throw new w("Not_found");return null==a.left?a:this.minBinding(a.left)},removeMinBinding:function(a){return null==a.left?a.right:this.balance(this.removeMinBinding(a.left),a.key,a.value,a.right)},balance:function(a,b,d,c){var e=null==a?0:a._height,f=null==c?0:c._height;return e>f+2?(e=a.left,f=a.right,(null==e?0:e._height)>=(null==f?0:
f._height)?new bc(a.left,a.key,a.value,new bc(a.right,b,d,c)):new bc(new bc(a.left,a.key,a.value,a.right.left),a.right.key,a.right.value,new bc(a.right.right,b,d,c))):f>e+2?(e=c.right,f=c.left,(null==e?0:e._height)>(null==f?0:f._height)?new bc(new bc(a,b,d,c.left),c.key,c.value,c.right):new bc(new bc(a,b,d,c.left.left),c.left.key,c.left.value,new bc(c.left.right,c.key,c.value,c.right))):new bc(a,b,d,c,(e>f?e:f)+1)},compare:function(a,b){return V.compare(a,b)},__class__:If};var bc=function(a,b,d,c,
e){null==e&&(e=-1);this.left=a;this.key=b;this.value=d;this.right=c;-1==e?(a=this.left,b=this.right,a=(null==a?0:a._height)>(null==b?0:b._height)?this.left:this.right,a=null==a?0:a._height,this._height=a+1):this._height=e};m["haxe.ds.TreeNode"]=bc;bc.__name__="haxe.ds.TreeNode";bc.prototype={left:null,right:null,key:null,value:null,_height:null,__class__:bc};var Jf=function(){};m["haxe.ds.EnumValueMap"]=Jf;Jf.__name__="haxe.ds.EnumValueMap";Jf.__interfaces__=[Sd];Jf.__super__=If;Jf.prototype=v(If.prototype,
{compare:function(a,b){var d=a._hx_index-b._hx_index;if(0!=d)return d;a=Ea.enumParameters(a);b=Ea.enumParameters(b);return 0==a.length&&0==b.length?0:this.compareArgs(a,b)},compareArgs:function(a,b){var d=a.length-b.length;if(0!=d)return d;d=0;for(var c=a.length;d<c;){var e=d++;e=this.compareArg(a[e],b[e]);if(0!=e)return e}return 0},compareArg:function(a,b){return V.isEnumValue(a)&&V.isEnumValue(b)?this.compare(a,b):a instanceof Array&&null==a.__enum__&&b instanceof Array&&null==b.__enum__?this.compareArgs(a,
b):V.compare(a,b)},__class__:Jf});var Y=function(){this.h={}};m["haxe.ds.IntMap"]=Y;Y.__name__="haxe.ds.IntMap";Y.__interfaces__=[Sd];Y.prototype={h:null,set:function(a,b){this.h[a]=b},remove:function(a){if(!this.h.hasOwnProperty(a))return!1;delete this.h[a];return!0},keys:function(){var a=[],b;for(b in this.h)this.h.hasOwnProperty(b)&&a.push(b|0);return L.iter(a)},iterator:function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var a=this.it.next();
return this.ref[a]}}},__class__:Y};var ig=function(a,b){this.item=a;this.next=b};m["haxe.ds._List.ListNode"]=ig;ig.__name__="haxe.ds._List.ListNode";ig.prototype={item:null,next:null,__class__:ig};var ii=function(a){this.head=a};m["haxe.ds._List.ListIterator"]=ii;ii.__name__="haxe.ds._List.ListIterator";ii.prototype={head:null,hasNext:function(){return null!=this.head},next:function(){var a=this.head.item;this.head=this.head.next;return a},__class__:ii};var Tc=sa["haxe.ds.Option"]={__ename__:"haxe.ds.Option",
__constructs__:["Some","None"],Some:(p=function(a){return{_hx_index:0,v:a,__enum__:"haxe.ds.Option",toString:r}},p.__params__=["v"],p),None:{_hx_index:1,__enum__:"haxe.ds.Option",toString:r}},hi=function(a,b){this.map=a;this.keys=b;this.index=0;this.count=b.length};m["haxe.ds._StringMap.StringMapIterator"]=hi;hi.__name__="haxe.ds._StringMap.StringMapIterator";hi.prototype={map:null,keys:null,index:null,count:null,hasNext:function(){return this.index<this.count},next:function(){var a=this.map,b=this.keys[this.index++];
return null!=t[b]?a.getReserved(b):a.h[b]},__class__:hi};var ea=function(){this.h={}};m["haxe.ds.StringMap"]=ea;ea.__name__="haxe.ds.StringMap";ea.__interfaces__=[Sd];ea.prototype={h:null,rh:null,set:function(a,b){null!=t[a]?this.setReserved(a,b):this.h[a]=b},setReserved:function(a,b){null==this.rh&&(this.rh={});this.rh["$"+a]=b},getReserved:function(a){return null==this.rh?null:this.rh["$"+a]},existsReserved:function(a){return null==this.rh?!1:this.rh.hasOwnProperty("$"+a)},remove:function(a){if(null!=
t[a]){a="$"+a;if(null==this.rh||!this.rh.hasOwnProperty(a))return!1;delete this.rh[a]}else{if(!this.h.hasOwnProperty(a))return!1;delete this.h[a]}return!0},keys:function(){return L.iter(this.arrayKeys())},arrayKeys:function(){var a=[],b;for(b in this.h)this.h.hasOwnProperty(b)&&a.push(b);if(null!=this.rh)for(b in this.rh)36==b.charCodeAt(0)&&a.push(b.substr(1));return a},__class__:ea};var sh=function(){};m["haxe.io.Input"]=sh;sh.__name__="haxe.io.Input";sh.prototype={bigEndian:null,readByte:function(){throw new w("Not implemented");
},readBytes:function(a,b,d){var c=d,e=a.b;if(0>b||0>d||b+d>a.length)throw new w(Gc.OutsideBounds);try{for(;0<c;)e[b]=this.readByte(),++b,--c}catch(f){if(fa.lastException=f,!((f instanceof w?f.val:f)instanceof xe))throw f;}return d-c},readFullBytes:function(a,b,d){for(;0<d;){var c=this.readBytes(a,b,d);if(0==c)throw new w(Gc.Blocked);b+=c;d-=c}},read:function(a){for(var b=new H(new ArrayBuffer(a)),d=0;0<a;){var c=this.readBytes(b,d,a);if(0==c)throw new w(Gc.Blocked);d+=c;a-=c}return b},readDouble:function(){var a=
this.readInt32(),b=this.readInt32();return this.bigEndian?yc.i64ToDouble(b,a):yc.i64ToDouble(a,b)},readInt8:function(){var a=this.readByte();return 128<=a?a-256:a},readInt16:function(){var a=this.readByte(),b=this.readByte();a=this.bigEndian?b|a<<8:a|b<<8;return 0!=(a&32768)?a-65536:a},readUInt16:function(){var a=this.readByte(),b=this.readByte();return this.bigEndian?b|a<<8:a|b<<8},readInt24:function(){var a=this.readByte(),b=this.readByte(),d=this.readByte();a=this.bigEndian?d|b<<8|a<<16:a|b<<8|
d<<16;return 0!=(a&8388608)?a-16777216:a},readInt32:function(){var a=this.readByte(),b=this.readByte(),d=this.readByte(),c=this.readByte();return this.bigEndian?c|d<<8|b<<16|a<<24:a|b<<8|d<<16|c<<24},readString:function(a,b){var d=new H(new ArrayBuffer(a));this.readFullBytes(d,0,a);return d.getString(0,a,b)},__class__:sh};var le=function(){this.size=this.pos=0};m["haxe.io.BytesBuffer"]=le;le.__name__="haxe.io.BytesBuffer";le.prototype={buffer:null,view:null,u8:null,pos:null,size:null,addByte:function(a){this.pos==
this.size&&this.grow(1);this.view.setUint8(this.pos++,a)},add:function(a){this.pos+a.length>this.size&&this.grow(a.length);if(0!=this.size){var b=new Uint8Array(a.b.buffer,a.b.byteOffset,a.length);this.u8.set(b,this.pos);this.pos+=a.length}},addInt32:function(a){this.pos+4>this.size&&this.grow(4);this.view.setInt32(this.pos,a,!0);this.pos+=4},addInt64:function(a){this.pos+8>this.size&&this.grow(8);this.view.setInt32(this.pos,a.low,!0);this.view.setInt32(this.pos+4,a.high,!0);this.pos+=8},addFloat:function(a){this.pos+
4>this.size&&this.grow(4);this.view.setFloat32(this.pos,a,!0);this.pos+=4},addBytes:function(a,b,d){if(0>b||0>d||b+d>a.length)throw new w(Gc.OutsideBounds);this.pos+d>this.size&&this.grow(d);0!=this.size&&(a=new Uint8Array(a.b.buffer,a.b.byteOffset+b,d),this.u8.set(a,this.pos),this.pos+=d)},grow:function(a){var b=this.pos+a;for(a=0==this.size?16:this.size;a<b;)a=3*a>>1;b=new ArrayBuffer(a);var d=new Uint8Array(b);0<this.size&&d.set(this.u8);this.size=a;this.buffer=b;this.u8=d;this.view=new DataView(this.buffer)},
getBytes:function(){if(0==this.size)return new H(new ArrayBuffer(0));var a=new H(this.buffer);a.length=this.pos;return a},__class__:le};var Be=function(a,b,d){null==b&&(b=0);null==d&&(d=a.length-b);if(0>b||0>d||b+d>a.length)throw new w(Gc.OutsideBounds);this.b=a.b;this.pos=b;this.totlen=this.len=d};m["haxe.io.BytesInput"]=Be;Be.__name__="haxe.io.BytesInput";Be.__super__=sh;Be.prototype=v(sh.prototype,{b:null,pos:null,len:null,totlen:null,set_position:function(a){0>a?a=0:a>this.totlen&&(a=this.totlen);
this.len=this.totlen-a;return this.pos=a},readByte:function(){if(0==this.len)throw new w(new xe);this.len--;return this.b[this.pos++]},readBytes:function(a,b,d){if(0>b||0>d||b+d>a.length)throw new w(Gc.OutsideBounds);if(0==this.len&&0<d)throw new w(new xe);this.len<d&&(d=this.len);var c=this.b;a=a.b;for(var e=0,f=d;e<f;){var h=e++;a[b+h]=c[this.pos+h]}this.pos+=d;this.len-=d;return d},__class__:Be});var th=function(){};m["haxe.io.Output"]=th;th.__name__="haxe.io.Output";th.prototype={bigEndian:null,
writeByte:function(a){throw new w("Not implemented");},writeBytes:function(a,b,d){if(0>b||0>d||b+d>a.length)throw new w(Gc.OutsideBounds);a=a.b;for(var c=d;0<c;)this.writeByte(a[b]),++b,--c;return d},set_bigEndian:function(a){return this.bigEndian=a},write:function(a){for(var b=a.length,d=0;0<b;){var c=this.writeBytes(a,d,b);if(0==c)throw new w(Gc.Blocked);d+=c;b-=c}},writeFullBytes:function(a,b,d){for(;0<d;){var c=this.writeBytes(a,b,d);b+=c;d-=c}},writeUInt16:function(a){if(0>a||65536<=a)throw new w(Gc.Overflow);
this.bigEndian?(this.writeByte(a>>8),this.writeByte(a&255)):(this.writeByte(a&255),this.writeByte(a>>8))},writeInt32:function(a){this.bigEndian?(this.writeByte(a>>>24),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(a&255)):(this.writeByte(a&255),this.writeByte(a>>8&255),this.writeByte(a>>16&255),this.writeByte(a>>>24))},writeString:function(a,b){a=H.ofString(a,b);this.writeFullBytes(a,0,a.length)},__class__:th};var Sc=function(){this.b=new le};m["haxe.io.BytesOutput"]=Sc;Sc.__name__=
"haxe.io.BytesOutput";Sc.__super__=th;Sc.prototype=v(th.prototype,{b:null,writeByte:function(a){this.b.addByte(a)},writeBytes:function(a,b,d){this.b.addBytes(a,b,d);return d},getBytes:function(){return this.b.getBytes()},__class__:Sc});sa["haxe.io.Encoding"]={__ename__:"haxe.io.Encoding",__constructs__:["UTF8","RawNative"],UTF8:{_hx_index:0,__enum__:"haxe.io.Encoding",toString:r},RawNative:{_hx_index:1,__enum__:"haxe.io.Encoding",toString:r}};var xe=function(){};m["haxe.io.Eof"]=xe;xe.__name__="haxe.io.Eof";
xe.prototype={toString:function(){return"Eof"},__class__:xe};var Gc=sa["haxe.io.Error"]={__ename__:"haxe.io.Error",__constructs__:["Blocked","Overflow","OutsideBounds","Custom"],Blocked:{_hx_index:0,__enum__:"haxe.io.Error",toString:r},Overflow:{_hx_index:1,__enum__:"haxe.io.Error",toString:r},OutsideBounds:{_hx_index:2,__enum__:"haxe.io.Error",toString:r},Custom:(p=function(a){return{_hx_index:3,e:a,__enum__:"haxe.io.Error",toString:r}},p.__params__=["e"],p)},yc=function(){};m["haxe.io.FPHelper"]=
yc;yc.__name__="haxe.io.FPHelper";yc.i32ToFloat=function(a){yc.helper.setInt32(0,a,!0);return yc.helper.getFloat32(0,!0)};yc.i64ToDouble=function(a,b){yc.helper.setInt32(0,a,!0);yc.helper.setInt32(4,b,!0);return yc.helper.getFloat64(0,!0)};var ue=function(a){switch(a){case ".":case "..":this.dir=a;this.file="";return}var b=a.lastIndexOf("/"),d=a.lastIndexOf("\\");b<d?(this.dir=L.substr(a,0,d),a=L.substr(a,d+1,null),this.backslash=!0):d<b?(this.dir=L.substr(a,0,b),a=L.substr(a,b+1,null)):this.dir=
null;b=a.lastIndexOf(".");-1!=b?(this.ext=L.substr(a,b+1,null),this.file=L.substr(a,0,b)):(this.ext=null,this.file=a)};m["haxe.io.Path"]=ue;ue.__name__="haxe.io.Path";ue.directory=function(a){a=new ue(a);return null==a.dir?"":a.dir};ue.prototype={dir:null,file:null,ext:null,backslash:null,__class__:ue};var uh=function(){};m["haxe.rtti.Meta"]=uh;uh.__name__="haxe.rtti.Meta";uh.getType=function(a){a=uh.getMeta(a);return null==a||null==a.obj?{}:a.obj};uh.getMeta=function(a){return a.__meta__};sa["haxe.zip.ExtraField"]=
{__ename__:"haxe.zip.ExtraField",__constructs__:["FUnknown","FInfoZipUnicodePath","FUtf8"],FUnknown:(p=function(a,b){return{_hx_index:0,tag:a,bytes:b,__enum__:"haxe.zip.ExtraField",toString:r}},p.__params__=["tag","bytes"],p),FInfoZipUnicodePath:(p=function(a,b){return{_hx_index:1,name:a,crc:b,__enum__:"haxe.zip.ExtraField",toString:r}},p.__params__=["name","crc"],p),FUtf8:{_hx_index:2,__enum__:"haxe.zip.ExtraField",toString:r}};var vh=sa["haxe.zip.Huffman"]={__ename__:"haxe.zip.Huffman",__constructs__:["Found",
"NeedBit","NeedBits"],Found:(p=function(a){return{_hx_index:0,i:a,__enum__:"haxe.zip.Huffman",toString:r}},p.__params__=["i"],p),NeedBit:(p=function(a,b){return{_hx_index:1,left:a,right:b,__enum__:"haxe.zip.Huffman",toString:r}},p.__params__=["left","right"],p),NeedBits:(p=function(a,b){return{_hx_index:2,n:a,table:b,__enum__:"haxe.zip.Huffman",toString:r}},p.__params__=["n","table"],p)},Ui=function(){};m["haxe.zip.HuffTools"]=Ui;Ui.__name__="haxe.zip.HuffTools";Ui.prototype={treeDepth:function(a){switch(a._hx_index){case 0:return 0;
case 1:var b=a.right;a=this.treeDepth(a.left);b=this.treeDepth(b);return 1+(a<b?a:b);case 2:throw new w("assert");}},treeCompress:function(a){var b=this.treeDepth(a);if(0==b)return a;if(1==b){if(1==a._hx_index)return b=a.right,vh.NeedBit(this.treeCompress(a.left),this.treeCompress(b));throw new w("assert");}for(var d=[],c=0,e=1<<b;c<e;)c++,d.push(vh.Found(-1));this.treeWalk(d,0,0,b,a);return vh.NeedBits(b,d)},treeWalk:function(a,b,d,c,e){if(1==e._hx_index){var f=e.right,h=e.left;0<c?(this.treeWalk(a,
b,d+1,c-1,h),this.treeWalk(a,b|1<<d,d+1,c-1,f)):a[b]=this.treeCompress(e)}else a[b]=this.treeCompress(e)},treeMake:function(a,b,d,c){if(c>b)throw new w("Invalid huffman");var e=d<<5|c;if(a.h.hasOwnProperty(e))return vh.Found(a.h[e]);d<<=1;++c;return vh.NeedBit(this.treeMake(a,b,d,c),this.treeMake(a,b,d|1,c))},make:function(a,b,d,c){var e=[],f=[];if(32<c)throw new w("Invalid huffman");for(var h=0;h<c;)h++,e.push(0),f.push(0);for(h=0;h<d;){var k=h++;k=a[k+b];if(k>=c)throw new w("Invalid huffman");e[k]++}h=
0;k=1;for(var n=c-1;k<n;){var l=k++;h=h+e[l]<<1;f[l]=h}e=new Y;for(h=0;h<d;)k=h++,n=a[k+b],0!=n&&(l=f[n-1],f[n-1]=l+1,e.h[l<<5|n]=k);return this.treeCompress(vh.NeedBit(this.treeMake(e,c,0,1),this.treeMake(e,c,1,1)))},__class__:Ui};var Vi=function(a){this.buffer=new H(new ArrayBuffer(65536));this.pos=0;a&&(this.crc=new Ie)};m["haxe.zip._InflateImpl.Window"]=Vi;Vi.__name__="haxe.zip._InflateImpl.Window";Vi.prototype={buffer:null,pos:null,crc:null,slide:function(){null!=this.crc&&this.crc.update(this.buffer,
0,32768);var a=new H(new ArrayBuffer(65536));this.pos-=32768;a.blit(0,this.buffer,32768,this.pos);this.buffer=a},addBytes:function(a,b,d){65536<this.pos+d&&this.slide();this.buffer.blit(this.pos,a,b,d);this.pos+=d},addByte:function(a){65536==this.pos&&this.slide();this.buffer.b[this.pos]=a&255;this.pos++},getLastChar:function(){return this.buffer.b[this.pos-1]},available:function(){return this.pos},checksum:function(){null!=this.crc&&this.crc.update(this.buffer,0,this.pos);return this.crc},__class__:Vi};
var kc=sa["haxe.zip._InflateImpl.State"]={__ename__:"haxe.zip._InflateImpl.State",__constructs__:"Head Block CData Flat Crc Dist DistOne Done".split(" "),Head:{_hx_index:0,__enum__:"haxe.zip._InflateImpl.State",toString:r},Block:{_hx_index:1,__enum__:"haxe.zip._InflateImpl.State",toString:r},CData:{_hx_index:2,__enum__:"haxe.zip._InflateImpl.State",toString:r},Flat:{_hx_index:3,__enum__:"haxe.zip._InflateImpl.State",toString:r},Crc:{_hx_index:4,__enum__:"haxe.zip._InflateImpl.State",toString:r},Dist:{_hx_index:5,
__enum__:"haxe.zip._InflateImpl.State",toString:r},DistOne:{_hx_index:6,__enum__:"haxe.zip._InflateImpl.State",toString:r},Done:{_hx_index:7,__enum__:"haxe.zip._InflateImpl.State",toString:r}},Wa=function(a,b,d){null==d&&(d=!0);null==b&&(b=!0);this.isFinal=!1;this.htools=new Ui;this.huffman=this.buildFixedHuffman();this.huffdist=null;this.dist=this.len=0;this.state=b?kc.Head:kc.Block;this.input=a;this.needed=this.nbits=this.bits=0;this.output=null;this.outpos=0;this.lengths=[];this.lengths.push(-1);
this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.lengths.push(-1);this.window=new Vi(d)};m["haxe.zip.InflateImpl"]=Wa;Wa.__name__="haxe.zip.InflateImpl";Wa.prototype={nbits:null,
bits:null,state:null,isFinal:null,huffman:null,huffdist:null,htools:null,len:null,dist:null,needed:null,output:null,outpos:null,input:null,lengths:null,window:null,buildFixedHuffman:function(){if(null!=Wa.FIXED_HUFFMAN)return Wa.FIXED_HUFFMAN;for(var a=[],b=0;288>b;){var d=b++;a.push(143>=d?8:255>=d?9:279>=d?7:8)}Wa.FIXED_HUFFMAN=this.htools.make(a,0,288,10);return Wa.FIXED_HUFFMAN},readBytes:function(a,b,d){this.needed=d;this.outpos=b;this.output=a;if(0<d)for(;this.inflateLoop(););return d-this.needed},
getBits:function(a){for(;this.nbits<a;)this.bits|=this.input.readByte()<<this.nbits,this.nbits+=8;var b=this.bits&(1<<a)-1;this.nbits-=a;this.bits>>=a;return b},getBit:function(){0==this.nbits&&(this.nbits=8,this.bits=this.input.readByte());var a=1==(this.bits&1);this.nbits--;this.bits>>=1;return a},getRevBits:function(a){return 0==a?0:this.getBit()?1<<a-1|this.getRevBits(a-1):this.getRevBits(a-1)},resetBits:function(){this.nbits=this.bits=0},addBytes:function(a,b,d){this.window.addBytes(a,b,d);this.output.blit(this.outpos,
a,b,d);this.needed-=d;this.outpos+=d},addByte:function(a){this.window.addByte(a);this.output.b[this.outpos]=a&255;this.needed--;this.outpos++},addDistOne:function(a){for(var b=this.window.getLastChar(),d=0;d<a;)d++,this.addByte(b)},addDist:function(a,b){this.addBytes(this.window.buffer,this.window.pos-a,b)},applyHuffman:function(a){switch(a._hx_index){case 0:return a.i;case 1:var b=a.right;a=a.left;return this.applyHuffman(this.getBit()?b:a);case 2:return this.applyHuffman(a.table[this.getBits(a.n)])}},
inflateLengths:function(a,b){for(var d=0,c=0;d<b;){var e=this.applyHuffman(this.huffman);switch(e){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:c=e;a[d]=e;++d;break;case 16:e=d+3+this.getBits(2);if(e>b)throw new w("Invalid data");for(;d<e;)a[d]=c,++d;break;case 17:d+=3+this.getBits(3);if(d>b)throw new w("Invalid data");break;case 18:d+=11+this.getBits(7);if(d>b)throw new w("Invalid data");break;default:throw new w("Invalid data");
}}},inflateLoop:function(){switch(this.state._hx_index){case 0:var a=this.input.readByte();if(8!=(a&15))throw new w("Invalid data");var b=this.input.readByte(),d=0!=(b&32);if(0!=((a<<8)+b)%31)throw new w("Invalid data");if(d)throw new w("Unsupported dictionary");this.state=kc.Block;return!0;case 1:switch(this.isFinal=this.getBit(),this.getBits(2)){case 0:this.len=this.input.readUInt16();if(this.input.readUInt16()!=65535-this.len)throw new w("Invalid data");this.state=kc.Flat;a=this.inflateLoop();
this.resetBits();return a;case 1:return this.huffman=this.buildFixedHuffman(),this.huffdist=null,this.state=kc.CData,!0;case 2:a=this.getBits(5)+257;b=this.getBits(5)+1;d=this.getBits(4)+4;for(var c=0;c<d;){var e=c++;this.lengths[Wa.CODE_LENGTHS_POS[e]]=this.getBits(3)}for(;19>d;)c=d++,this.lengths[Wa.CODE_LENGTHS_POS[c]]=0;this.huffman=this.htools.make(this.lengths,0,19,8);d=[];c=0;for(e=a+b;c<e;)c++,d.push(0);this.inflateLengths(d,a+b);this.huffdist=this.htools.make(d,a,b,16);this.huffman=this.htools.make(d,
0,a,16);this.state=kc.CData;return!0;default:throw new w("Invalid data");}case 2:b=this.applyHuffman(this.huffman);if(256>b)return this.addByte(b),0<this.needed;if(256==b)this.state=this.isFinal?kc.Crc:kc.Block;else{b-=257;a=Wa.LEN_EXTRA_BITS_TBL[b];if(-1==a)throw new w("Invalid data");this.len=Wa.LEN_BASE_VAL_TBL[b]+this.getBits(a);b=null==this.huffdist?this.getRevBits(5):this.applyHuffman(this.huffdist);a=Wa.DIST_EXTRA_BITS_TBL[b];if(-1==a)throw new w("Invalid data");this.dist=Wa.DIST_BASE_VAL_TBL[b]+
this.getBits(a);if(this.dist>this.window.available())throw new w("Invalid data");this.state=1==this.dist?kc.DistOne:kc.Dist}return!0;case 3:return a=this.len<this.needed?this.len:this.needed,b=this.input.read(a),this.len-=a,this.addBytes(b,0,a),0==this.len&&(this.state=this.isFinal?kc.Crc:kc.Block),0<this.needed;case 4:a=this.window.checksum();if(null==a)return this.state=kc.Done,!0;b=Ie.read(this.input);if(!a.equals(b))throw new w("Invalid CRC");this.state=kc.Done;return!0;case 5:for(;0<this.len&&
0<this.needed;)a=this.len<this.dist?this.len:this.dist,a=this.needed<a?this.needed:a,this.addDist(this.dist,a),this.len-=a;0==this.len&&(this.state=kc.CData);return 0<this.needed;case 6:return a=this.len<this.needed?this.len:this.needed,this.addDistOne(a),this.len-=a,0==this.len&&(this.state=kc.CData),0<this.needed;case 7:return!1}},__class__:Wa};var wh=function(a){this.i=a};m["haxe.zip.Reader"]=wh;wh.__name__="haxe.zip.Reader";wh.prototype={i:null,readZipDate:function(){var a=this.i.readUInt16(),
b=a>>11&31,d=a>>5&63;a&=31;var c=this.i.readUInt16();return new Date((c>>9)+1980,(c>>5&15)-1,c&31,b,d,a<<1)},__class__:wh};var Kf=function(a){this.o=a;this.files=new hb};m["haxe.zip.Writer"]=Kf;Kf.__name__="haxe.zip.Writer";Kf.prototype={o:null,files:null,writeZipDate:function(a){var b=a.getHours(),d=a.getMinutes(),c=a.getSeconds()>>1;this.o.writeUInt16(b<<11|d<<5|c);b=a.getFullYear()-1980;d=a.getMonth()+1;a=a.getDate();this.o.writeUInt16(b<<9|d<<5|a)},writeCDR:function(){for(var a=0,b=0,d=this.files.h;null!=
d;){var c=d.item;d=d.next;var e=c.name.length,f=c.fields.length;this.o.writeInt32(33639248);this.o.writeUInt16(20);this.o.writeUInt16(20);this.o.writeUInt16(0);this.o.writeUInt16(c.compressed?8:0);this.writeZipDate(c.date);this.o.writeInt32(c.crc);this.o.writeInt32(c.clen);this.o.writeInt32(c.size);this.o.writeUInt16(e);this.o.writeUInt16(f);this.o.writeUInt16(0);this.o.writeUInt16(0);this.o.writeUInt16(0);this.o.writeInt32(0);this.o.writeInt32(b);this.o.writeString(c.name);this.o.write(c.fields);
a+=46+e+f;b+=30+e+f+c.clen}this.o.writeInt32(101010256);this.o.writeUInt16(0);this.o.writeUInt16(0);this.o.writeUInt16(this.files.length);this.o.writeUInt16(this.files.length);this.o.writeInt32(a);this.o.writeInt32(b);this.o.writeUInt16(0)},__class__:Kf};var xh=function(a,b,d){this.path=a;this.from=b;this.to=d};m["hxbit.ConvertField"]=xh;xh.__name__="hxbit.ConvertField";xh.prototype={path:null,index:null,same:null,defaultValue:null,from:null,to:null,conv:null,__class__:xh};var Fa=function(a,b,d){for(var c=
new ea,e=0,f=b.fieldsNames.length;e<f;){var h=e++,k=b.fieldsNames[h];h=b.fieldsTypes[h];null!=t[k]?c.setReserved(k,h):c.h[k]=h}this.read=[];if(b.isFinal!=d.isFinal)throw new w("TODO : handle final flag change");e=new ea;f=0;for(k=d.fieldsNames.length;f<k;){h=f++;var n=d.fieldsTypes[h],l=d.fieldsNames[h],m=null!=t[l]?c.getReserved(l):c.h[l];l=new xh(a+"."+d.fieldsNames[h],n,m);if(null!=m)if(Fa.sameType(n,m))l.same=!0;else{n=l.path;var g=Fa.convFuns;l.conv=null!=t[n]?g.getReserved(n):g.h[n];l.defaultValue=
Fa.getDefault(m)}l.index=this.read.length;this.read.push(l);h=d.fieldsNames[h];null!=t[h]?e.setReserved(h,l):e.h[h]=l}this.write=[];a=0;for(d=b.fieldsNames.length;a<d;)f=a++,c=b.fieldsTypes[f],f=b.fieldsNames[f],f=null!=t[f]?e.getReserved(f):e.h[f],null==f&&(f=new xh(null,null,c),f.defaultValue=Fa.getDefault(c)),this.write.push(f)};m["hxbit.Convert"]=Fa;Fa.__name__="hxbit.Convert";Fa.sameType=function(a,b){switch(a._hx_index){case 0:switch(b._hx_index){case 10:return Fa.sameType(a,b.k);case 16:return!0;
default:return Ea.enumEq(a,b)}case 7:switch(b._hx_index){case 7:var d=a.v,c=b.v;return Fa.sameType(a.k,b.k)?Fa.sameType(d,c):!1;case 10:return Fa.sameType(a,b.k);default:return Ea.enumEq(a,b)}case 8:switch(b._hx_index){case 8:return Fa.sameType(a.k,b.k);case 10:return Fa.sameType(a,b.k);default:return Ea.enumEq(a,b)}case 9:switch(b._hx_index){case 9:a=a.fields;b=b.fields;if(a.length!=b.length)return!1;d=0;for(c=a.length;d<c;){var e=d++,f=a[e];e=b[e];if(f.name!=e.name||f.opt!=e.opt||!Fa.sameType(f.type,
e.type))return!1}return!0;case 10:return Fa.sameType(a,b.k);default:return Ea.enumEq(a,b)}case 10:return 10==b._hx_index?Fa.sameType(a.k,b.k):Fa.sameType(a.k,b);case 11:switch(b._hx_index){case 10:return Fa.sameType(a,b.k);case 11:return Fa.sameType(a.k,b.k);default:return Ea.enumEq(a,b)}case 12:switch(b._hx_index){case 10:return Fa.sameType(a,b.k);case 12:return Fa.sameType(a.t,b.t);default:return Ea.enumEq(a,b)}case 16:switch(b._hx_index){case 0:return!0;case 10:return Fa.sameType(a,b.k);default:return Ea.enumEq(a,
b)}default:return 10==b._hx_index?Fa.sameType(a,b.k):Ea.enumEq(a,b)}};Fa.getDefault=function(a){switch(a._hx_index){case 1:return 0;case 2:return!1;case 7:switch(a.k._hx_index){case 0:return new Y;case 3:return new ea;default:return new fc}case 8:return[];case 3:case 4:case 5:case 6:case 9:case 12:case 13:case 14:case 17:return null;case 10:return Fa.getDefault(a.k);case 11:return[];case 15:return new ph(0,0);case 0:case 16:return 0}};Fa.prototype={read:null,write:null,__class__:Fa};var x=sa["hxbit.PropTypeDesc"]=
{__ename__:"hxbit.PropTypeDesc",__constructs__:"PInt PFloat PBool PString PBytes PSerializable PEnum PMap PArray PObj PAlias PVector PNull PUnknown PDynamic PInt64 PFlags PStruct".split(" "),PInt:{_hx_index:0,__enum__:"hxbit.PropTypeDesc",toString:r},PFloat:{_hx_index:1,__enum__:"hxbit.PropTypeDesc",toString:r},PBool:{_hx_index:2,__enum__:"hxbit.PropTypeDesc",toString:r},PString:{_hx_index:3,__enum__:"hxbit.PropTypeDesc",toString:r},PBytes:{_hx_index:4,__enum__:"hxbit.PropTypeDesc",toString:r},PSerializable:(p=
function(a){return{_hx_index:5,name:a,__enum__:"hxbit.PropTypeDesc",toString:r}},p.__params__=["name"],p),PEnum:(p=function(a){return{_hx_index:6,name:a,__enum__:"hxbit.PropTypeDesc",toString:r}},p.__params__=["name"],p),PMap:(p=function(a,b){return{_hx_index:7,k:a,v:b,__enum__:"hxbit.PropTypeDesc",toString:r}},p.__params__=["k","v"],p),PArray:(p=function(a){return{_hx_index:8,k:a,__enum__:"hxbit.PropTypeDesc",toString:r}},p.__params__=["k"],p),PObj:(p=function(a){return{_hx_index:9,fields:a,__enum__:"hxbit.PropTypeDesc",
toString:r}},p.__params__=["fields"],p),PAlias:(p=function(a){return{_hx_index:10,k:a,__enum__:"hxbit.PropTypeDesc",toString:r}},p.__params__=["k"],p),PVector:(p=function(a){return{_hx_index:11,k:a,__enum__:"hxbit.PropTypeDesc",toString:r}},p.__params__=["k"],p),PNull:(p=function(a){return{_hx_index:12,t:a,__enum__:"hxbit.PropTypeDesc",toString:r}},p.__params__=["t"],p),PUnknown:{_hx_index:13,__enum__:"hxbit.PropTypeDesc",toString:r},PDynamic:{_hx_index:14,__enum__:"hxbit.PropTypeDesc",toString:r},
PInt64:{_hx_index:15,__enum__:"hxbit.PropTypeDesc",toString:r},PFlags:(p=function(a){return{_hx_index:16,t:a,__enum__:"hxbit.PropTypeDesc",toString:r}},p.__params__=["t"],p),PStruct:{_hx_index:17,__enum__:"hxbit.PropTypeDesc",toString:r}},zc=function(){};m["hxbit.Serializable"]=zc;zc.__name__="hxbit.Serializable";zc.prototype={__uid:null,getCLID:null,serialize:null,unserializeInit:null,unserialize:null,getSerializeSchema:null,__class__:zc};var D=function(){this.usedClasses=[];null==D.CLIDS&&D.initClassIDS()};
m["hxbit.Serializer"]=D;D.__name__="hxbit.Serializer";D.registerClass=function(a){if(null!=D.CLIDS)throw new w("Too late to register class");var b=D.CLASSES.length;D.CLASSES.push(a);return b};D.initClassIDS=function(){for(var a=D.CLASSES,b=[],d=0;d<a.length;)++d,b.push([]);d=[];for(var c=0,e=a.length;c<e;)for(var f=c++,h=a[f];;){h=h.__super__;if(null==h)break;var k=a.indexOf(h);if(0>k)break;b[k].push(f);d[f]=!0}c=[];e=0;for(f=D.CLASSES.length;e<f;){h=e++;if(0!=b[h].length||d[h]){h=a[h].__name__;k=
1;for(var n=0,l=h.length;n<l;){var m=n++;k=223*k+h.charCodeAt(m)|0}h=k=1+(k&1073741823)%65423}else h=0;c.push(h)}D.CLIDS=c;D.CL_BYID=[];b=0;for(d=D.CLIDS.length;b<d;)if(c=b++,e=D.CLIDS[c],0!=e){if(null!=D.CL_BYID[e])throw new w("Conflicting CLID between "+D.CL_BYID[e].__name__+" and "+a[c].__name__);D.CL_BYID[e]=a[c]}};D.isClassFinal=function(a){return 0==D.CLIDS[a]};D.save=function(a){var b=new D;b.beginSave();b.addKnownRef(a);return b.endSave()};D.load=function(a,b){var d=new D;d.beginLoad(a);a=
d.getRef(b,b.__clid);d.endLoad();return a};D.prototype={refs:null,remapObjs:null,newObjects:null,out:null,input:null,inPos:null,usedClasses:null,convert:null,mapIndexes:null,knownStructs:null,remap:function(a){null==this.remapObjs.h.__keys__[a.__id__]&&(this.remapObjs.set(a,a.__uid),a.__uid=D.SEQ<<24|++D.UID)},begin:function(){this.out=new le;this.refs=new Y;this.knownStructs=[]},end:function(){var a=this.out.pos,b=this.out.getBytes(),d=new H(new ArrayBuffer(a));d.blit(0,b,0,a);this.knownStructs=
this.refs=this.out=null;return d},setInput:function(a,b){this.input=a;this.inPos=b;null==this.refs&&(this.refs=new Y);null==this.knownStructs&&(this.knownStructs=[])},getDynamic:function(){var a=this.input.b[this.inPos++];switch(a){case 0:return null;case 1:return!1;case 2:return!0;case 3:return a=this.input.b[this.inPos++],128==a&&(a=this.input.getInt32(this.inPos),this.inPos+=4),a;case 4:return a=this.input.getFloat(this.inPos),this.inPos+=4,a;case 5:a={};var b=0,d=this.input.b[this.inPos++];128==
d&&(d=this.input.getInt32(this.inPos),this.inPos+=4);for(;b<d;){b++;var c=this.input.b[this.inPos++];128==c&&(c=this.input.getInt32(this.inPos),this.inPos+=4);if(0==c)c=null;else{--c;var e=this.input.getString(this.inPos,c);this.inPos+=c;c=e}a[c]=this.getDynamic()}return a;case 6:a=this.input.b[this.inPos++];128==a&&(a=this.input.getInt32(this.inPos),this.inPos+=4);if(0==a)return null;--a;b=this.input.getString(this.inPos,a);this.inPos+=a;return b;case 7:a=[];b=0;d=this.input.b[this.inPos++];128==
d&&(d=this.input.getInt32(this.inPos),this.inPos+=4);for(;b<d;)b++,a.push(this.getDynamic());return a;case 8:a=this.input.b[this.inPos++];128==a&&(a=this.input.getInt32(this.inPos),this.inPos+=4);if(0==a)return null;--a;b=this.input.sub(this.inPos,a);this.inPos+=a;return b;default:throw new w("Invalid dynamic prefix "+a);}},addDynamic:function(a){if(null==a)this.out.addByte(0);else{var b=Ea["typeof"](a);switch(b._hx_index){case 1:this.out.addByte(3);0<=a&&128>a?this.out.addByte(a):(this.out.addByte(128),
this.out.addInt32(a));break;case 2:this.out.addByte(4);this.out.addFloat(a);break;case 3:this.out.addByte(a?2:1);break;case 4:b=V.fields(a);this.out.addByte(5);var d=b.length;0<=d&&128>d?this.out.addByte(d):(this.out.addByte(128),this.out.addInt32(d));for(d=0;d<b.length;){var c=b[d];++d;if(null==c)this.out.addByte(0);else{var e=H.ofString(c),f=e.length+1;0<=f&&128>f?this.out.addByte(f):(this.out.addByte(128),this.out.addInt32(f));this.out.add(e)}this.addDynamic(V.field(a,c))}break;case 6:b=b.c;switch(b){case Array:this.out.addByte(7);
b=a.length;0<=b&&128>b?this.out.addByte(b):(this.out.addByte(128),this.out.addInt32(b));for(b=0;b<a.length;)d=a[b],++b,this.addDynamic(d);break;case String:this.out.addByte(6);null==a?this.out.addByte(0):(a=H.ofString(a),b=a.length+1,0<=b&&128>b?this.out.addByte(b):(this.out.addByte(128),this.out.addInt32(b)),this.out.add(a));break;case H:this.out.addByte(8);null==a?this.out.addByte(0):(b=a.length+1,0<=b&&128>b?this.out.addByte(b):(this.out.addByte(128),this.out.addInt32(b)),this.out.add(a));break;
default:throw new w("Unsupported dynamic "+S.string(b));}break;default:throw new w("Unsupported dynamic "+S.string(b));}}},addStruct:function(a){if(null==a)this.out.addByte(0);else{var b=U.__instanceof(a,zc)?a:null;if(null!=b)this.out.addByte(1),this.addAnyRef(b);else if(b=this.knownStructs.indexOf(a),0<=b)this.out.addByte(2),0<=b&&128>b?this.out.addByte(b):(this.out.addByte(128),this.out.addInt32(b));else{this.knownStructs.push(a);this.out.addByte(3);b=null==a?null:U.getClass(a);if(null==b)throw new w(S.string(a)+
" does not have a class ?");b=b.__name__;if(null==b)this.out.addByte(0);else{b=H.ofString(b);var d=b.length+1;0<=d&&128>d?this.out.addByte(d):(this.out.addByte(128),this.out.addInt32(d));this.out.add(b)}a.customSerialize(this);this.out.addByte(255)}}},getStruct:function(){switch(this.input.b[this.inPos++]){case 0:return null;case 1:return this.getAnyRef();case 2:var a=this.knownStructs,b=this.input.b[this.inPos++];128==b&&(b=this.input.getInt32(this.inPos),this.inPos+=4);return a[b];case 3:a=this.input.b[this.inPos++];
128==a&&(a=this.input.getInt32(this.inPos),this.inPos+=4);0==a?a=null:(--a,b=this.input.getString(this.inPos,a),this.inPos+=a,a=b);b=m[a];if(null==b)throw new w("Missing struct class "+a);a=Object.create(b.prototype);this.knownStructs.push(a);a.customUnserialize(this);if(255!=this.input.b[this.inPos++])throw new w("Invalid customUnserialize for "+S.string(a));return a;default:throw new w("assert");}},addObjRef:function(a){a=a.__uid;0<=a&&128>a?this.out.addByte(a):(this.out.addByte(128),this.out.addInt32(a))},
getObjRef:function(){var a=this.input.b[this.inPos++];128==a&&(a=this.input.getInt32(this.inPos),this.inPos+=4);return a},addAnyRef:function(a){if(null==a)this.out.addByte(0);else if(null!=this.remapObjs&&this.remap(a),this.addObjRef(a),null==this.refs.h[a.__uid]){this.refs.h[a.__uid]=a;var b=a.getCLID();this.usedClasses[b]=!0;this.out.addByte(b>>8);this.out.addByte(b&255);a.serialize(this)}},addKnownRef:function(a){if(null==a)this.out.addByte(0);else if(null!=this.remapObjs&&this.remap(a),this.addObjRef(a),
null==this.refs.h[a.__uid]){this.refs.h[a.__uid]=a;var b=a.getCLID();this.usedClasses[b]=!0;b=D.CLIDS[b];0!=b&&(this.out.addByte(b>>8),this.out.addByte(b&255));a.serialize(this)}},getAnyRef:function(){var a=this.getObjRef();if(0==a)return null;if(null!=this.refs.h[a])return this.refs.h[a];var b=a&16777215;D.UID<b&&(D.UID=b);b=this.input.b[this.inPos++]<<8|this.input.b[this.inPos++];null!=this.mapIndexes&&(b=this.mapIndexes[b]);var d=Object.create(D.CLASSES[b].prototype);null!=this.newObjects&&this.newObjects.push(d);
d.__uid=a;d.unserializeInit();this.refs.h[a]=d;null!=this.convert&&null!=this.convert[b]?this.convertRef(d,this.convert[b]):d.unserialize(this);return d},getRef:function(a,b){var d=this.getObjRef();if(0==d)return null;if(null!=this.refs.h[d])return this.refs.h[d];var c=d&16777215;D.UID<c&&(D.UID=c);0!=D.CLIDS[b]&&(a=this.input.b[this.inPos++]<<8|this.input.b[this.inPos++],a=D.CL_BYID[a],null!=this.convert&&(b=a.__clid));a=Object.create(a.prototype);null!=this.newObjects&&this.newObjects.push(a);a.__uid=
d;a.unserializeInit();this.refs.h[d]=a;null!=this.convert&&null!=this.convert[b]?this.convertRef(a,this.convert[b]):a.unserialize(this);return a},beginSave:function(){this.begin();this.usedClasses=[]},endSave:function(a){null==a&&(a=0);var b=this.end();this.begin();for(var d=[],c=[],e=D.CLASSES.indexOf(Ua),f=0,h=this.usedClasses.length;f<h;){var k=f++;if(this.usedClasses[k]&&k!=e){var n=Object.create(D.CLASSES[k].prototype).getSerializeSchema();c.push(n);d.push(k);this.addKnownRef(n);this.refs.remove(n.__uid)}}e=
this.end();this.begin();this.out.addBytes(b,0,a);f=H.ofString("HXS");h=f.length+1;0<=h&&128>h?this.out.addByte(h):(this.out.addByte(128),this.out.addInt32(h));this.out.add(f);this.out.addByte(1);f=0;for(h=d.length;f<h;){k=f++;n=d[k];var l=D.CLASSES[n].__name__;if(null==l)this.out.addByte(0);else{l=H.ofString(l);var m=l.length+1;0<=m&&128>m?this.out.addByte(m):(this.out.addByte(128),this.out.addInt32(m));this.out.add(l)}this.out.addByte(n>>8);this.out.addByte(n&255);k=c[k].get_checkSum();this.out.addInt32(k)}this.out.addByte(0);
d=e.length;0<=d&&128>d?this.out.addByte(d):(this.out.addByte(128),this.out.addInt32(d));this.out.add(e);this.out.addBytes(b,a,b.length-a);return this.end()},beginLoad:function(a,b){null==b&&(b=0);this.setInput(a,b);var d=new ea;a=[];b=[];for(var c=[],e=!1,f=!1,h=0,k=D.CLASSES.length;h<k;){var n=h++,l=D.CLASSES[n].__name__;null!=t[l]?d.setReserved(l,n):d.h[l]=n;b[n]=n}h=this.input.b[this.inPos++];128==h&&(h=this.input.getInt32(this.inPos),this.inPos+=4);0==h?h=null:(--h,k=this.input.getString(this.inPos,
h),this.inPos+=h,h=k);if("HXS"!=h)throw new w("Invalid HXS data");h=this.input.b[this.inPos++];if(1!=h)throw new w("Unsupported HXS version "+h);for(;;){h=this.input.b[this.inPos++];128==h&&(h=this.input.getInt32(this.inPos),this.inPos+=4);0==h?k=null:(--h,k=this.input.getString(this.inPos,h),this.inPos+=h);if(null==k)break;h=this.input.b[this.inPos++]<<8|this.input.b[this.inPos++];n=this.input.getInt32(this.inPos);this.inPos+=4;l=null!=t[k]?d.getReserved(k):d.h[k];if(null==l)throw new w("Missing class "+
k+" found in HXS data");k=Object.create(D.CLASSES[l].prototype).getSerializeSchema();k.get_checkSum()!=n&&(e=!0,a[h]=k);h!=l&&(f=!0,b[h]=l);c.push(h)}d=this.input.b[this.inPos++];128==d&&(d=this.input.getInt32(this.inPos),this.inPos+=4);if(e)for(this.convert=[],e=0;e<c.length;)d=c[e],++e,h=a[d],k=Ua,k=this.getRef(k,k.__clid),this.refs.remove(k.__uid),null!=h&&(this.convert[b[d]]=new Fa(D.CLASSES[b[d]].__name__,h,k));else this.inPos+=d;f&&(this.mapIndexes=b)},endLoad:function(){this.mapIndexes=this.convert=
null;this.setInput(null,0)},convertRef:function(a,b){for(var d=Array(b.read.length),c=0,e=b.read;c<e.length;){var f=e[c];++c;d[f.index]=this.readValue(f.from)}c=this.out;this.out=new le;e=0;for(b=b.write;e<b.length;){f=b[e];++e;if(null==f.from)var h=f.defaultValue;else h=d[f.index],f.same||(h=null==h?f.defaultValue:null!=f.conv?f.conv(h):this.convertValue(f.path,h,f.from,f.to));this.writeValue(h,f.to)}d=this.out.getBytes();this.out=c;c=this.input;b=this.inPos;this.setInput(d,0);a.unserialize(this);
this.setInput(c,b)},isNullable:function(a){switch(a._hx_index){case 0:case 1:case 2:return!1;default:return!0}},convertValue:function(a,b,d,c){if(null==b)return Fa.getDefault(c);if(Fa.sameType(d,c))return b;switch(d._hx_index){case 0:switch(c._hx_index){case 1:return 1*b;case 10:return this.convertValue(a,b,d,c.k);case 12:return this.convertValue(a,b,d,c.t)}break;case 1:switch(c._hx_index){case 0:return b|0;case 10:return this.convertValue(a,b,d,c.k);case 12:return this.convertValue(a,b,d,c.t)}break;
case 5:switch(c._hx_index){case 5:var e=b instanceof m[c.name]?b:null;if(null!=e)return e;break;case 10:return this.convertValue(a,b,d,c.k);case 12:return this.convertValue(a,b,d,c.t)}break;case 8:switch(c._hx_index){case 8:d=d.k;c=c.k;e=[];for(var f=0;f<b.length;){var h=b[f];++f;e.push(this.convertValue(a+"[]",h,d,c))}return e;case 10:return this.convertValue(a,b,d,c.k);case 12:return this.convertValue(a,b,d,c.t)}break;case 9:switch(c._hx_index){case 9:d=d.fields;c=c.fields;e={};for(f=0;f<c.length;){h=
c[f];++f;for(var k=!1,n=null,l=0;l<d.length;){var q=d[l];++l;if(q.name==h.name){k=!0;n=this.convertValue(a+"."+q.name,V.field(b,q.name),q.type,h.type);break}}if(!k){if(h.opt)continue;n=Fa.getDefault(h.type)}else if(null==n&&h.opt)continue;e[h.name]=n}return e;case 10:return this.convertValue(a,b,d,c.k);case 12:return this.convertValue(a,b,d,c.t)}break;case 10:switch(c._hx_index){case 10:return this.convertValue(a,b,d.k,c);case 12:return this.convertValue(a,b,d,c.t);default:return this.convertValue(a,
b,d.k,c)}case 12:return this.convertValue(a,b,d.t,c);default:switch(c._hx_index){case 10:return this.convertValue(a,b,d,c.k);case 12:return this.convertValue(a,b,d,c.t)}}e=Fa.convFuns;e=null!=t[a]?e.getReserved(a):e.h[a];if(null!=e)return e(b);throw new w("Cannot convert "+a+"("+S.string(b)+") from "+S.string(d)+" to "+S.string(c));},readValue:function(a){switch(a._hx_index){case 0:var b=this.input.b[this.inPos++];128==b&&(b=this.input.getInt32(this.inPos),this.inPos+=4);return b;case 1:return b=
this.input.getFloat(this.inPos),this.inPos+=4,b;case 2:return 0!=this.input.b[this.inPos++];case 3:b=this.input.b[this.inPos++];128==b&&(b=this.input.getInt32(this.inPos),this.inPos+=4);if(0==b)return null;--b;a=this.input.getString(this.inPos,b);this.inPos+=b;return a;case 4:b=this.input.b[this.inPos++];128==b&&(b=this.input.getInt32(this.inPos),this.inPos+=4);if(0==b)return null;--b;a=this.input.sub(this.inPos,b);this.inPos+=b;return a;case 5:return b=m[a.name],this.getRef(b,b.__clid);case 6:b=
a.name;a="hxbit.enumSer."+b.split(".").join("_");a=m[a];if(null==a){a=sa[b];null!=a?(a=uh.getType(a),a=Object.prototype.hasOwnProperty.call(a,"skipSerialize")):a=!1;if(a)return 128==this.input.b[this.inPos++]&&(this.input.getInt32(this.inPos),this.inPos+=4),null;throw new w("No enum unserializer found for "+b);}return a.doUnserialize(this);case 7:switch(b=a.v,a=a.k,a._hx_index){case 0:var d=this.input.b[this.inPos++];128==d&&(d=this.input.getInt32(this.inPos),this.inPos+=4);if(0==d)b=null;else{for(var c=
new Y;0<--d;){var e=this.readValue(a),f=this.readValue(b);c.h[e]=f}b=c}return b;case 3:d=this.input.b[this.inPos++];128==d&&(d=this.input.getInt32(this.inPos),this.inPos+=4);if(0==d)b=null;else{for(c=new ea;0<--d;)e=this.readValue(a),f=this.readValue(b),null!=t[e]?c.setReserved(e,f):c.h[e]=f;b=c}return b;case 6:d=this.input.b[this.inPos++];128==d&&(d=this.input.getInt32(this.inPos),this.inPos+=4);if(0==d)return null;for(c=new Jf;0<--d;)e=this.readValue(a),f=this.readValue(b),c.set(e,f);return c;default:d=
this.input.b[this.inPos++];128==d&&(d=this.input.getInt32(this.inPos),this.inPos+=4);if(0==d)b=null;else{for(c=new fc;0<--d;)e=this.readValue(a),f=this.readValue(b),c.set(e,f);b=c}return b}case 8:b=a.k;a=this.input.b[this.inPos++];128==a&&(a=this.input.getInt32(this.inPos),this.inPos+=4);c=a;if(0==c)return null;--c;a=[];for(d=0;d<c;)e=d++,a[e]=this.readValue(b);return a;case 9:b=a.fields;a=this.input.b[this.inPos++];128==a&&(a=this.input.getInt32(this.inPos),this.inPos+=4);if(0==a)return null;d={};
--a;c=[];for(e=0;e<b.length;)f=b[e],++e,this.isNullable(f.type)&&c.push(f);for(e=0;e<b.length;){f=b[e];++e;var h=c.indexOf(f);0<=h&&0==(a&1<<h)||(d[f.name]=this.readValue(f.type))}return d;case 10:return this.readValue(a.k);case 11:b=a.k;a=this.input.b[this.inPos++];128==a&&(a=this.input.getInt32(this.inPos),this.inPos+=4);c=a;if(0==c)return null;--c;a=Array(c);for(d=0;d<c;)e=d++,a[e]=this.readValue(b);return a;case 12:return b=a.t,0==this.input.b[this.inPos++]?null:this.readValue(b);case 13:throw new w("assert");
case 14:return this.getDynamic();case 15:return b=this.input.getInt64(this.inPos),this.inPos+=8,b;case 16:return b=this.input.b[this.inPos++],128==b&&(b=this.input.getInt32(this.inPos),this.inPos+=4),b;case 17:return this.getStruct()}},writeValue:function(a,b){switch(b._hx_index){case 0:0<=a&&128>a?this.out.addByte(a):(this.out.addByte(128),this.out.addInt32(a));break;case 1:this.out.addFloat(a);break;case 2:this.out.addByte(a?1:0);break;case 3:if(null==a)this.out.addByte(0);else{var d=H.ofString(a);
b=d.length+1;0<=b&&128>b?this.out.addByte(b):(this.out.addByte(128),this.out.addInt32(b));this.out.add(d)}break;case 4:null==a?this.out.addByte(0):(d=a.length+1,0<=d&&128>d?this.out.addByte(d):(this.out.addByte(128),this.out.addInt32(d)),this.out.add(a));break;case 5:this.addKnownRef(a);break;case 6:d=b.name;b="hxbit.enumSer."+d.split(".").join("_");if(null==b)throw new w("No enum unserializer found for "+d);m[b].doSerialize(this,a);break;case 7:d=b.v;b=b.k;switch(b._hx_index){case 0:if(null==a)this.out.addByte(0);
else{var c=Wb.array({iterator:function(){return a.keys()}}),e=c.length+1;0<=e&&128>e?this.out.addByte(e):(this.out.addByte(128),this.out.addInt32(e));for(e=0;e<c.length;){var f=c[e];++e;this.writeValue(f,b);this.writeValue(a.h[f],d)}}break;case 3:if(null==a)this.out.addByte(0);else for(c=Wb.array({iterator:function(){return a.keys()}}),e=c.length+1,0<=e&&128>e?this.out.addByte(e):(this.out.addByte(128),this.out.addInt32(e)),e=0;e<c.length;)f=c[e],++e,this.writeValue(f,b),this.writeValue(null!=t[f]?
a.getReserved(f):a.h[f],d);break;case 6:if(null==a){this.out.addByte(0);return}c=Wb.array({iterator:u(a,a.keys)});e=c.length+1;0<=e&&128>e?this.out.addByte(e):(this.out.addByte(128),this.out.addInt32(e));for(e=0;e<c.length;)f=c[e],++e,this.writeValue(f,b),this.writeValue(a.get(f),d);break;default:if(null==a)this.out.addByte(0);else for(c=Wb.array({iterator:function(){return a.keys()}}),e=c.length+1,0<=e&&128>e?this.out.addByte(e):(this.out.addByte(128),this.out.addInt32(e)),e=0;e<c.length;)f=c[e],
++e,this.writeValue(f,b),this.writeValue(a.h[f.__id__],d)}break;case 8:d=b.k;if(null==a)this.out.addByte(0);else for(b=a.length+1,0<=b&&128>b?this.out.addByte(b):(this.out.addByte(128),this.out.addInt32(b)),b=0;b<a.length;)c=a[b],++b,this.writeValue(c,d);break;case 9:d=b.fields;if(null==a)this.out.addByte(0);else{b=0;c=[];for(e=0;e<d.length;)f=d[e],++e,this.isNullable(f.type)&&c.push(f);e=0;for(f=c.length;e<f;){var h=e++;null!=V.field(a,c[h].name)&&(b|=1<<h)}e=b+1;0<=e&&128>e?this.out.addByte(e):
(this.out.addByte(128),this.out.addInt32(e));for(e=0;e<d.length;)f=d[e],++e,h=c.indexOf(f),0<=h&&0==(b&1<<h)||this.writeValue(V.field(a,f.name),f.type)}break;case 10:this.writeValue(a,b.k);break;case 11:d=b.k;if(null==a)this.out.addByte(0);else for(b=a.length+1,0<=b&&128>b?this.out.addByte(b):(this.out.addByte(128),this.out.addInt32(b)),b=0;b<a.length;)c=a[b],++b,this.writeValue(c,d);break;case 12:d=b.t;null==a?this.out.addByte(0):(this.out.addByte(1),this.writeValue(a,d));break;case 13:throw new w("assert");
case 14:this.addDynamic(a);break;case 15:this.out.addInt64(a);break;case 16:0<=a&&128>a?this.out.addByte(a):(this.out.addByte(128),this.out.addInt32(a));break;case 17:this.addStruct(a)}},__class__:D};var Ua=function(){this.__uid=D.SEQ<<24|++D.UID;this.fieldsNames=[];this.fieldsTypes=[]};m["hxbit.Schema"]=Ua;Ua.__name__="hxbit.Schema";Ua.__interfaces__=[zc];Ua.prototype={isFinal:null,fieldsNames:null,fieldsTypes:null,get_checkSum:function(){var a=new D;a.begin();var b=this.__uid;this.__uid=0;a.addKnownRef(this);
this.__uid=b;a=a.end();return Vd.make(a)},__uid:null,getCLID:function(){return Ua.__clid},serialize:function(a){a.out.addByte(this.isFinal?1:0);var b=this.fieldsNames;if(null==b)a.out.addByte(0);else{var d=b.length+1;0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d));for(d=0;d<b.length;){var c=b[d];++d;if(null==c)a.out.addByte(0);else{c=H.ofString(c);var e=c.length+1;0<=e&&128>e?a.out.addByte(e):(a.out.addByte(128),a.out.addInt32(e));a.out.add(c)}}}b=this.fieldsTypes;if(null==b)a.out.addByte(0);
else for(d=b.length+1,0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d)),d=0;d<b.length;)c=b[d],++d,ob.doSerialize(a,c)},getSerializeSchema:function(){var a=new Ua;a.fieldsNames.push("isFinal");a.fieldsTypes.push(x.PBool);a.fieldsNames.push("fieldsNames");a.fieldsTypes.push(x.PArray(x.PString));a.fieldsNames.push("fieldsTypes");a.fieldsTypes.push(x.PArray(x.PEnum("hxbit.PropTypeDesc")));a.isFinal=D.isClassFinal(Ua.__clid);return a},unserializeInit:function(){},unserialize:function(a){this.isFinal=
0!=a.input.b[a.inPos++];var b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);var d=b;if(0==d)b=null;else{--d;b=[];for(var c=0;c<d;){var e=c++;var f=a.input.b[a.inPos++];128==f&&(f=a.input.getInt32(a.inPos),a.inPos+=4);if(0==f)f=null;else{--f;var h=a.input.getString(a.inPos,f);a.inPos+=f;f=h}b[e]=f}}this.fieldsNames=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);d=b;if(0==d)a=null;else{--d;b=[];c=0;for(e=d;c<e;)f=c++,d=ob.doUnserialize(a),b[f]=d;a=
b}this.fieldsTypes=a},__class__:Ua};var ek=function(){};m["hxbit.StructSerializable"]=ek;ek.__name__="hxbit.StructSerializable";ek.prototype={customSerialize:null,customUnserialize:null,__class__:ek};var ob=function(){};m["hxbit.enumSer.hxbit_PropTypeDesc"]=ob;ob.__name__="hxbit.enumSer.hxbit_PropTypeDesc";ob.doSerialize=function(a,b){if(null==b)a.out.addByte(0);else switch(b._hx_index){case 0:a.out.addByte(1);break;case 1:a.out.addByte(2);break;case 2:a.out.addByte(3);break;case 3:a.out.addByte(4);
break;case 4:a.out.addByte(5);break;case 5:var d=b.name;a.out.addByte(6);null==d?a.out.addByte(0):(d=H.ofString(d),b=d.length+1,0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b)),a.out.add(d));break;case 6:d=b.name;a.out.addByte(7);null==d?a.out.addByte(0):(d=H.ofString(d),b=d.length+1,0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b)),a.out.add(d));break;case 7:d=b.v;b=b.k;a.out.addByte(8);ob.doSerialize(a,b);ob.doSerialize(a,d);break;case 8:d=b.k;a.out.addByte(9);
ob.doSerialize(a,d);break;case 9:d=b.fields;a.out.addByte(10);if(null==d)a.out.addByte(0);else for(b=d.length+1,0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b)),b=0;b<d.length;){var c=d[b];++b;if(null==c)a.out.addByte(0);else{var e=0;null!=c.name&&(e|=1);null!=c.type&&(e|=2);var f=e+1;0<=f&&128>f?a.out.addByte(f):(a.out.addByte(128),a.out.addInt32(f));if(0!=(e&1))if(f=c.name,null==f)a.out.addByte(0);else{f=H.ofString(f);var h=f.length+1;0<=h&&128>h?a.out.addByte(h):(a.out.addByte(128),
a.out.addInt32(h));a.out.add(f)}a.out.addByte(c.opt?1:0);0!=(e&2)&&ob.doSerialize(a,c.type)}}break;case 10:d=b.k;a.out.addByte(11);ob.doSerialize(a,d);break;case 11:d=b.k;a.out.addByte(12);ob.doSerialize(a,d);break;case 12:d=b.t;a.out.addByte(13);ob.doSerialize(a,d);break;case 13:a.out.addByte(14);break;case 14:a.out.addByte(15);break;case 15:a.out.addByte(16);break;case 16:d=b.t;a.out.addByte(17);ob.doSerialize(a,d);break;case 17:a.out.addByte(18)}};ob.doUnserialize=function(a){var b=a.input.b[a.inPos++];
if(0==b)return null;switch(b){case 1:return x.PInt;case 2:return x.PFloat;case 3:return x.PBool;case 4:return x.PString;case 5:return x.PBytes;case 6:b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);if(0==b)a=null;else{--b;var d=a.input.getString(a.inPos,b);a.inPos+=b;a=d}return x.PSerializable(a);case 7:return b=a.input.b[a.inPos++],128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4),0==b?a=null:(--b,d=a.input.getString(a.inPos,b),a.inPos+=b,a=d),x.PEnum(a);case 8:return b=ob.doUnserialize(a),
a=ob.doUnserialize(a),x.PMap(b,a);case 9:return a=ob.doUnserialize(a),x.PArray(a);case 10:b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);var c=b;if(0==c)a=null;else{--c;b=[];for(d=0;d<c;){var e=d++;var f=a.input.b[a.inPos++];128==f&&(f=a.input.getInt32(a.inPos),a.inPos+=4);if(0==f)f=null;else{--f;var h=null,k=null;if(0!=(f&1))if(k=a.input.b[a.inPos++],128==k&&(k=a.input.getInt32(a.inPos),a.inPos+=4),0==k)k=null;else{--k;var n=a.input.getString(a.inPos,k);a.inPos+=k;k=n}n=
0!=a.input.b[a.inPos++];0!=(f&2)&&(h=ob.doUnserialize(a));f={name:k,opt:n,type:h}}b[e]=f}a=b}return x.PObj(a);case 11:return a=ob.doUnserialize(a),x.PAlias(a);case 12:return a=ob.doUnserialize(a),x.PVector(a);case 13:return a=ob.doUnserialize(a),x.PNull(a);case 14:return x.PUnknown;case 15:return x.PDynamic;case 16:return x.PInt64;case 17:return a=ob.doUnserialize(a),x.PFlags(a);case 18:return x.PStruct;default:throw new w("Invalid enum index "+b);}};ob.getSchema=function(){var a=new Ua;a.fieldsTypes.push(null);
a.fieldsNames.push("PInt");a.fieldsTypes.push(null);a.fieldsNames.push("PFloat");a.fieldsTypes.push(null);a.fieldsNames.push("PBool");a.fieldsTypes.push(null);a.fieldsNames.push("PString");a.fieldsTypes.push(null);a.fieldsNames.push("PBytes");var b=a.fieldsTypes,d=[];d.push({name:"",type:x.PString,opt:!1});b.push(x.PObj(d));a.fieldsNames.push("PSerializable");b=a.fieldsTypes;d=[];d.push({name:"",type:x.PString,opt:!1});b.push(x.PObj(d));a.fieldsNames.push("PEnum");b=a.fieldsTypes;d=[];var c=x.PEnum("hxbit.PropTypeDesc");
d.push({name:"",type:c,opt:!1});b.push(x.PObj(d));a.fieldsNames.push("PMap");b=a.fieldsTypes;d=[];c=x.PEnum("hxbit.PropTypeDesc");d.push({name:"",type:c,opt:!1});b.push(x.PObj(d));a.fieldsNames.push("PArray");b=a.fieldsTypes;d=[];c=x.PArray(x.PObj([{name:"name",opt:!1,type:x.PString},{name:"opt",opt:!1,type:x.PBool},{name:"type",opt:!1,type:x.PEnum("hxbit.PropTypeDesc")}]));d.push({name:"",type:c,opt:!1});b.push(x.PObj(d));a.fieldsNames.push("PObj");b=a.fieldsTypes;d=[];c=x.PEnum("hxbit.PropTypeDesc");
d.push({name:"",type:c,opt:!1});b.push(x.PObj(d));a.fieldsNames.push("PAlias");b=a.fieldsTypes;d=[];c=x.PEnum("hxbit.PropTypeDesc");d.push({name:"",type:c,opt:!1});b.push(x.PObj(d));a.fieldsNames.push("PVector");b=a.fieldsTypes;d=[];c=x.PEnum("hxbit.PropTypeDesc");d.push({name:"",type:c,opt:!1});b.push(x.PObj(d));a.fieldsNames.push("PNull");a.fieldsTypes.push(null);a.fieldsNames.push("PUnknown");a.fieldsTypes.push(null);a.fieldsNames.push("PDynamic");a.fieldsTypes.push(null);a.fieldsNames.push("PInt64");
b=a.fieldsTypes;d=[];c=x.PEnum("hxbit.PropTypeDesc");d.push({name:"",type:c,opt:!1});b.push(x.PObj(d));a.fieldsNames.push("PFlags");a.fieldsTypes.push(null);a.fieldsNames.push("PStruct");return a};var w=function(a){Error.call(this);this.val=a;Error.captureStackTrace&&Error.captureStackTrace(this,w)};m["js._Boot.HaxeError"]=w;w.__name__="js._Boot.HaxeError";w.wrap=function(a){return a instanceof Error?a:new w(a)};w.__super__=Error;w.prototype=v(Error.prototype,{val:null,__class__:w});var U=function(){};
m["js.Boot"]=U;U.__name__="js.Boot";U.getClass=function(a){if(a instanceof Array&&null==a.__enum__)return Array;var b=a.__class__;if(null!=b)return b;a=U.__nativeClassName(a);return null!=a?U.__resolveNativeClass(a):null};U.__string_rec=function(a,b){if(null==a)return"null";if(5<=b.length)return"<...>";var d=typeof a;"function"==d&&(a.__name__||a.__ename__)&&(d="object");switch(d){case "function":return"<function>";case "object":if(a.__enum__){var c=sa[a.__enum__];d=c.__constructs__[a._hx_index];
var e=c[d];if(e.__params__){b+="\t";d+="(";c=[];var f=0;for(e=e.__params__;f<e.length;){var h=e[f];++f;c.push(U.__string_rec(a[h],b))}return d+c.join(",")+")"}return d}if(a instanceof Array){d=a.length;c="[";b+="\t";for(f=0;f<d;)e=f++,c+=(0<e?",":"")+U.__string_rec(a[e],b);return c+"]"}try{c=a.toString}catch(k){return fa.lastException=k,"???"}if(null!=c&&c!=Object.toString&&"function"==typeof c&&(d=a.toString(),"[object Object]"!=d))return d;d=null;c="{\n";b+="\t";f=null!=a.hasOwnProperty;for(d in a)f&&
!a.hasOwnProperty(d)||"prototype"==d||"__class__"==d||"__super__"==d||"__interfaces__"==d||"__properties__"==d||(2!=c.length&&(c+=", \n"),c+=b+d+" : "+U.__string_rec(a[d],b));b=b.substring(1);return c+("\n"+b+"}");case "string":return a;default:return String(a)}};U.__interfLoop=function(a,b){if(null==a)return!1;if(a==b)return!0;var d=a.__interfaces__;if(null!=d)for(var c=0,e=d.length;c<e;){var f=c++;f=d[f];if(f==b||U.__interfLoop(f,b))return!0}return U.__interfLoop(a.__super__,b)};U.__instanceof=
function(a,b){if(null==b)return!1;switch(b){case Array:return a instanceof Array?null==a.__enum__:!1;case nl:return"boolean"==typeof a;case ol:return!0;case pl:return"number"==typeof a;case Di:return"number"==typeof a?(a|0)===a:!1;case String:return"string"==typeof a;default:if(null!=a)if("function"==typeof b){if(a instanceof b||U.__interfLoop(U.getClass(a),b))return!0}else{if("object"==typeof b&&U.__isNativeObj(b)&&a instanceof b)return!0}else return!1;return b==Zk&&null!=a.__name__||b==$k&&null!=
a.__ename__?!0:sa[a.__enum__]==b}};U.__cast=function(a,b){if(U.__instanceof(a,b))return a;throw new w("Cannot cast "+S.string(a)+" to "+S.string(b));};U.__nativeClassName=function(a){a=U.__toStr.call(a).slice(8,-1);return"Object"==a||"Function"==a||"Math"==a||"JSON"==a?null:a};U.__isNativeObj=function(a){return null!=U.__nativeClassName(a)};U.__resolveNativeClass=function(a){return Ga[a]};var fk=function(){};m["js.html._ArrayBuffer.ArrayBufferCompat"]=fk;fk.__name__="js.html._ArrayBuffer.ArrayBufferCompat";
fk.sliceImpl=function(a,b){a=new Uint8Array(this,a,null==b?null:b-a);b=new Uint8Array(a.byteLength);b.set(a);return b.buffer};var gk=function(){};m["js.html._CanvasElement.CanvasUtil"]=gk;gk.__name__="js.html._CanvasElement.CanvasUtil";gk.getContextWebGL=function(a,b){var d=a.getContext("webgl",b);if(null!=d)return d;a=a.getContext("experimental-webgl",b);return null!=a?a:null};var fi=function(){this.connected=!0;this.buttons=[];this.axes=[]};m["lime._internal.backend.html5.GameDeviceData"]=fi;fi.__name__=
"lime._internal.backend.html5.GameDeviceData";fi.prototype={connected:null,id:null,isGamepad:null,buttons:null,axes:null,__class__:fi};var Xi=function(a){this.parent=a;this.id=-1;this.gain=1;this.position=new Wi};m["lime._internal.backend.html5.HTML5AudioSource"]=Xi;Xi.__name__="lime._internal.backend.html5.HTML5AudioSource";Xi.prototype={completed:null,gain:null,id:null,length:null,loops:null,parent:null,playing:null,position:null,dispose:function(){},init:function(){},play:function(){if(!this.playing&&
null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl){this.playing=!0;var a=this.getCurrentTime();this.completed=!1;var b=this.parent.buffer.__srcHowl._volume;this.parent.buffer.__srcHowl._volume=this.parent.get_gain();this.id=this.parent.buffer.__srcHowl.play();this.parent.buffer.__srcHowl._volume=b;this.setPosition(this.parent.get_position());this.parent.buffer.__srcHowl.on("end",u(this,this.howl_onEnd),this.id);this.setCurrentTime(a)}},stop:function(){this.playing=!1;null!=this.parent.buffer&&
null!=this.parent.buffer.__srcHowl&&this.parent.buffer.__srcHowl.stop(this.id)},howl_onEnd:function(){this.playing=!1;0<this.loops?(this.loops--,this.stop(),this.play()):(null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&&this.parent.buffer.__srcHowl.stop(this.id),this.completed=!0,this.parent.onComplete.dispatch())},getCurrentTime:function(){if(-1==this.id)return 0;if(this.completed)return this.getLength();if(null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl){var a=(1E3*this.parent.buffer.__srcHowl.seek(this.id)|
0)-this.parent.offset;return 0>a?0:a}return 0},setCurrentTime:function(a){if(null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl){var b=(a+this.parent.offset)/1E3;0>b&&(b=0);this.parent.buffer.__srcHowl.seek(b,this.id)}return a},getGain:function(){return this.gain},setGain:function(a){null!=this.parent.buffer&&null!=this.parent.buffer.__srcHowl&&-1!=this.id&&this.parent.buffer.__srcHowl.volume(a,this.id);return this.gain=a},getLength:function(){return 0!=this.length?this.length:null!=this.parent.buffer&&
null!=this.parent.buffer.__srcHowl?1E3*this.parent.buffer.__srcHowl.duration()|0:0},setLength:function(a){return this.length=a},setLoops:function(a){return this.loops=a},getPosition:function(){return this.position},setPosition:function(a){this.position.x=a.x;this.position.y=a.y;this.position.z=a.z;this.position.w=a.w;return this.position},__class__:Xi};var aa=function(){this.validStatus0=(new wa("Tizen","gi")).match(window.navigator.userAgent)};m["lime._internal.backend.html5.HTML5HTTPRequest"]=aa;
aa.__name__="lime._internal.backend.html5.HTML5HTTPRequest";aa.loadImage=function(a){var b=new Ab;aa.activeRequests<aa.requestLimit?(aa.activeRequests++,aa.__loadImage(a,b)):aa.requestQueue.add({instance:null,uri:a,promise:b,type:"IMAGE"});return b.future};aa.processQueue=function(){if(aa.activeRequests<aa.requestLimit&&0<aa.requestQueue.length){aa.activeRequests++;var a=aa.requestQueue.pop();switch(a.type){case "BINARY":a.instance.__loadData(a.uri,a.promise);break;case "IMAGE":aa.__loadImage(a.uri,
a.promise);break;case "TEXT":a.instance.__loadText(a.uri,a.promise);break;default:aa.activeRequests--}}};aa.__fixHostname=function(a){return null==a?"":a};aa.__fixPort=function(a,b){if(null==a||""==a)switch(b){case "ftp:":return"21";case "gopher:":return"70";case "http:":return"80";case "https:":return"443";case "ws:":return"80";case "wss:":return"443";default:return""}return a};aa.__fixProtocol=function(a){return null==a||""==a?"http:":a};aa.__isSameOrigin=function(a){null==aa.originElement&&(aa.originElement=
window.document.createElement("a"),aa.originHostname=aa.__fixHostname(window.location.hostname),aa.originProtocol=aa.__fixProtocol(window.location.protocol),aa.originPort=aa.__fixPort(window.location.port,aa.originProtocol));var b=aa.originElement;b.href=a;""==b.hostname&&(b.href=b.href);var d=aa.__fixHostname(b.hostname);a=aa.__fixProtocol(b.protocol);b=aa.__fixPort(b.port,a);d=""==d||d==aa.originHostname;b=""==b||b==aa.originPort;return"file:"!=a&&d?b:!1};aa.__loadImage=function(a,b){var d=new Image;
aa.__isSameOrigin(a)||(d.crossOrigin="Anonymous");null==aa.supportsImageProgress&&(aa.supportsImageProgress="onprogress"in d);if(aa.supportsImageProgress||Q.startsWith(a,"data:"))d.addEventListener("load",function(a){a=new Ac(null,d.width,d.height);a.__srcImage=d;aa.activeRequests--;aa.processQueue();b.complete(new pa(a))},!1),d.addEventListener("progress",function(a){b.progress(a.loaded,a.total)},!1),d.addEventListener("error",function(a){aa.activeRequests--;aa.processQueue();b.error(a.detail)},
!1),d.src=a;else{var c=new XMLHttpRequest;c.onload=function(a){aa.activeRequests--;aa.processQueue();(new pa).__fromBytes(H.ofData(c.response),function(a){b.complete(a)})};c.onerror=function(a){b.error(a.message)};c.onprogress=function(a){a.lengthComputable&&b.progress(a.loaded,a.total)};c.open("GET",a,!0);c.responseType="arraybuffer";c.overrideMimeType("text/plain; charset=x-user-defined");c.send(null)}};aa.prototype={binary:null,parent:null,request:null,validStatus0:null,init:function(a){this.parent=
a},load:function(a,b,d){this.request=new XMLHttpRequest;"POST"==this.parent.method?this.request.upload.addEventListener("progress",b,!1):this.request.addEventListener("progress",b,!1);this.request.onreadystatechange=d;b="";if(null==this.parent.data){for(d=this.parent.formData.keys();d.hasNext();){var c=d.next();0<b.length&&(b+="&");var e=encodeURIComponent(c)+"=",f=this.parent.formData;c=S.string(null!=t[c]?f.getReserved(c):f.h[c]);b+=e+encodeURIComponent(c)}"GET"==this.parent.method&&""!=b&&(a=-1<
a.indexOf("?")?a+("&"+b):a+("?"+b),b="")}this.request.open(S.string(this.parent.method),a,!0);0<this.parent.timeout&&(this.request.timeout=this.parent.timeout);this.binary&&(this.request.responseType="arraybuffer");a=null;d=0;for(e=this.parent.headers;d<e.length;)c=e[d],++d,"Content-Type"==c.name?a=c.value:this.request.setRequestHeader(c.name,c.value);null!=this.parent.contentType&&(a=this.parent.contentType);null==a&&(null!=this.parent.data?a="application/octet-stream":""!=b&&(a="application/x-www-form-urlencoded"));
null!=a&&this.request.setRequestHeader("Content-Type",a);this.parent.withCredentials&&(this.request.withCredentials=!0);null!=this.parent.data?this.request.send(this.parent.data.b.bufferValue):this.request.send(b)},loadData:function(a){var b=new Ab;aa.activeRequests<aa.requestLimit?(aa.activeRequests++,this.__loadData(a,b)):aa.requestQueue.add({instance:this,uri:a,promise:b,type:"BINARY"});return b.future},loadText:function(a){var b=new Ab;aa.activeRequests<aa.requestLimit?(aa.activeRequests++,this.__loadText(a,
b)):aa.requestQueue.add({instance:this,uri:a,promise:b,type:"TEXT"});return b.future},processResponse:function(){if(this.parent.enableResponseHeaders){this.parent.responseHeaders=[];for(var a,b,d=0,c=this.request.getAllResponseHeaders().split("\n");d<c.length;)b=c[d],++d,a=Q.trim(L.substr(b,0,b.indexOf(":"))),b=Q.trim(L.substr(b,b.indexOf(":")+1,null)),""!=a&&this.parent.responseHeaders.push(new yh(a,b))}this.parent.responseStatus=this.request.status},__loadData:function(a,b){var d=this;this.binary=
!0;this.load(a,function(a){b.progress(a.loaded,a.total)},function(a){4==d.request.readyState&&(null!=d.request.status&&(200<=d.request.status&&400>d.request.status||d.validStatus0&&0==d.request.status)?(a=null,""==d.request.responseType?null!=d.request.responseText&&(a=H.ofString(d.request.responseText)):null!=d.request.response&&(a=H.ofData(d.request.response)),d.processResponse(),b.complete(a)):(d.processResponse(),b.error(d.request.status)),d.request=null,aa.activeRequests--,aa.processQueue())})},
__loadText:function(a,b){var d=this;this.binary=!1;this.load(a,function(a){b.progress(a.loaded,a.total)},function(a){4==d.request.readyState&&(null!=d.request.status&&(200<=d.request.status&&400>=d.request.status||d.validStatus0&&0==d.request.status)?(d.processResponse(),b.complete(d.request.responseText)):(d.processResponse(),b.error(d.request.status)),d.request=null,aa.activeRequests--,aa.processQueue())})},__class__:aa};var na=function(a){this.unusedTouchesPool=new hb;this.scale=1;this.currentTouches=
new Y;this.parent=a;this.cacheMouseY=this.cacheMouseX=0;var b=a.__attributes;Object.prototype.hasOwnProperty.call(b,"context")||(b.context={});this.renderType=b.context.type;Object.prototype.hasOwnProperty.call(b,"element")&&(a.element=b.element);var d=a.element;Object.prototype.hasOwnProperty.call(b,"allowHighDPI")&&b.allowHighDPI&&"dom"!=this.renderType&&(this.scale=window.devicePixelRatio);a.__scale=this.scale;this.setWidth=Object.prototype.hasOwnProperty.call(b,"width")?b.width:0;this.setHeight=
Object.prototype.hasOwnProperty.call(b,"height")?b.height:0;a.__width=this.setWidth;a.__height=this.setHeight;a.id=na.windowID++;d instanceof HTMLCanvasElement?this.canvas=d:"dom"==this.renderType?this.div=window.document.createElement("div"):this.canvas=window.document.createElement("canvas");if(null!=this.canvas){var c=this.canvas.style;c.setProperty("-webkit-transform","translateZ(0)",null);c.setProperty("transform","translateZ(0)",null)}else null!=this.div&&(c=this.div.style,c.setProperty("-webkit-transform",
"translate3D(0,0,0)",null),c.setProperty("transform","translate3D(0,0,0)",null),c.position="relative",c.overflow="hidden",c.setProperty("-webkit-user-select","none",null),c.setProperty("-moz-user-select","none",null),c.setProperty("-ms-user-select","none",null),c.setProperty("-o-user-select","none",null));0==a.__width&&0==a.__height&&(null!=d?(a.__width=d.clientWidth,a.__height=d.clientHeight):(a.__width=window.innerWidth,a.__height=window.innerHeight),this.cacheElementWidth=a.__width,this.cacheElementHeight=
a.__height,this.resizeElement=!0);null!=this.canvas?(this.canvas.width=Math.round(a.__width*this.scale),this.canvas.height=Math.round(a.__height*this.scale),this.canvas.style.width=a.__width+"px",this.canvas.style.height=a.__height+"px"):(this.div.style.width=a.__width+"px",this.div.style.height=a.__height+"px");if(Object.prototype.hasOwnProperty.call(b,"resizable")&&b.resizable||!Object.prototype.hasOwnProperty.call(b,"width")&&0==this.setWidth&&0==this.setHeight)a.__resizable=!0;this.updateSize();
if(null!=d){null!=this.canvas?d!=this.canvas&&d.appendChild(this.canvas):d.appendChild(this.div);b="mousedown mouseenter mouseleave mousemove mouseup wheel".split(" ");for(c=0;c<b.length;){var e=b[c];++c;d.addEventListener(e,u(this,this.handleMouseEvent),!0)}window.document.addEventListener("dragstart",function(a){return"img"==a.target.nodeName.toLowerCase()?(a.preventDefault(),!1):!0},!1);d.addEventListener("contextmenu",u(this,this.handleContextMenuEvent),!0);d.addEventListener("touchstart",u(this,
this.handleTouchEvent),!0);d.addEventListener("touchmove",u(this,this.handleTouchEvent),!0);d.addEventListener("touchend",u(this,this.handleTouchEvent),!0);d.addEventListener("touchcancel",u(this,this.handleTouchEvent),!0);d.addEventListener("gamepadconnected",u(this,this.handleGamepadEvent),!0);d.addEventListener("gamepaddisconnected",u(this,this.handleGamepadEvent),!0)}this.createContext();"webgl"==a.context.type&&(this.canvas.addEventListener("webglcontextlost",u(this,this.handleContextEvent),
!1),this.canvas.addEventListener("webglcontextrestored",u(this,this.handleContextEvent),!1))};m["lime._internal.backend.html5.HTML5Window"]=na;na.__name__="lime._internal.backend.html5.HTML5Window";na.prototype={canvas:null,div:null,cacheElementHeight:null,cacheElementWidth:null,cacheMouseX:null,cacheMouseY:null,cursor:null,currentTouches:null,parent:null,primaryTouch:null,renderType:null,resizeElement:null,scale:null,setHeight:null,setWidth:null,textInputEnabled:null,unusedTouchesPool:null,close:function(){this.parent.application.__removeWindow(this.parent)},
createContext:function(){var a=new Yi,b=this.parent.__attributes.context;a.window=this.parent;a.attributes=b;if(null!=this.div)a.dom=this.div,a.type="dom",a.version="";else if(null!=this.canvas){var d=null,c="canvas"==this.renderType,e="opengl"==this.renderType||"opengles"==this.renderType||"webgl"==this.renderType,f=e&&(!Object.prototype.hasOwnProperty.call(b,"version")||"1"!=b.version),h=!1;if(e||!c&&(!Object.prototype.hasOwnProperty.call(b,"hardware")||b.hardware)){c=Object.prototype.hasOwnProperty.call(b,
"background")&&null==b.background;e=Object.prototype.hasOwnProperty.call(b,"colorDepth")?b.colorDepth:16;var k=Object.prototype.hasOwnProperty.call(b,"antialiasing")&&0<b.antialiasing,n=Object.prototype.hasOwnProperty.call(b,"depth")?b.depth:!0;b=Object.prototype.hasOwnProperty.call(b,"stencil")&&b.stencil;b={alpha:c||16<e,antialias:k,depth:n,premultipliedAlpha:!0,stencil:b,preserveDrawingBuffer:!1};c=["webgl","experimental-webgl"];f&&c.unshift("webgl2");for(f=0;f<c.length&&(e=c[f],++f,d=this.canvas.getContext(e,
b),null!=d&&"webgl2"==e&&(h=!0),null==d););}null==d?(a.canvas2D=this.canvas.getContext("2d"),a.type="canvas",a.version=""):(a.webgl=kb.fromWebGL2RenderContext(d),h&&(a.webgl2=d),null==me.context&&(me.context=d,me.type="webgl",me.version=h?2:1),a.type="webgl",a.version=h?"2":"1")}this.parent.context=a},handleContextEvent:function(a){switch(a.type){case "webglcontextlost":a.preventDefault();this.parent.context=null;this.parent.onRenderContextLost.dispatch();break;case "webglcontextrestored":this.createContext(),
this.parent.onRenderContextRestored.dispatch(this.parent.context)}},handleContextMenuEvent:function(a){this.parent.onMouseUp.canceled&&a.preventDefault()},handleCutOrCopyEvent:function(a){a.clipboardData.setData("text/plain",Ta.get_text());a.preventDefault()},handleFocusEvent:function(a){var b=this;this.textInputEnabled&&(null==a.relatedTarget||this.isDescendent(a.relatedTarget))&&Td.delay(function(){b.textInputEnabled&&na.textInput.focus()},20)},handleGamepadEvent:function(a){switch(a.type){case "gamepadconnected":lb.__connect(a.gamepad.index);
"standard"==a.gamepad.mapping&&gb.__connect(a.gamepad.index);break;case "gamepaddisconnected":lb.__disconnect(a.gamepad.index),gb.__disconnect(a.gamepad.index)}},handleInputEvent:function(a){na.textInput.value!=na.dummyCharacter&&(a=Q.replace(na.textInput.value,na.dummyCharacter,""),0<a.length&&this.parent.onTextInput.dispatch(a),na.textInput.value=na.dummyCharacter)},handleMouseEvent:function(a){if("wheel"!=a.type){if(null!=this.parent.element)if(null!=this.canvas){var b=this.canvas.getBoundingClientRect();
var d=this.parent.__width/b.width*(a.clientX-b.left);b=this.parent.__height/b.height*(a.clientY-b.top)}else null!=this.div?(b=this.div.getBoundingClientRect(),d=a.clientX-b.left,b=a.clientY-b.top):(b=this.parent.element.getBoundingClientRect(),d=this.parent.__width/b.width*(a.clientX-b.left),b=this.parent.__height/b.height*(a.clientY-b.top));else d=a.clientX,b=a.clientY;switch(a.type){case "mousedown":a.currentTarget==this.parent.element&&window.addEventListener("mouseup",u(this,this.handleMouseEvent));
this.parent.onMouseDown.dispatch(d,b,a.button);this.parent.onMouseDown.canceled&&a.preventDefault();break;case "mouseenter":a.target==this.parent.element&&(this.parent.onEnter.dispatch(),this.parent.onEnter.canceled&&a.preventDefault());break;case "mouseleave":a.target==this.parent.element&&(this.parent.onLeave.dispatch(),this.parent.onLeave.canceled&&a.preventDefault());break;case "mousemove":if(d!=this.cacheMouseX||b!=this.cacheMouseY)this.parent.onMouseMove.dispatch(d,b),this.parent.onMouseMoveRelative.dispatch(d-
this.cacheMouseX,b-this.cacheMouseY),(this.parent.onMouseMove.canceled||this.parent.onMouseMoveRelative.canceled)&&a.preventDefault();break;case "mouseup":window.removeEventListener("mouseup",u(this,this.handleMouseEvent)),a.currentTarget==this.parent.element&&a.stopPropagation(),this.parent.onMouseUp.dispatch(d,b,a.button),this.parent.onMouseUp.canceled&&a.preventDefault()}this.cacheMouseX=d;this.cacheMouseY=b}else{switch(a.deltaMode){case 0:d=Zi.PIXELS;break;case 1:d=Zi.LINES;break;case 2:d=Zi.PAGES;
break;default:d=Zi.UNKNOWN}this.parent.onMouseWheel.dispatch(a.deltaX,-a.deltaY,d);this.parent.onMouseWheel.canceled&&a.preventDefault()}},handlePasteEvent:function(a){if(-1<a.clipboardData.types.indexOf("text/plain")){var b=a.clipboardData.getData("text/plain");Ta.set_text(b);this.textInputEnabled&&this.parent.onTextInput.dispatch(b);a.preventDefault()}},handleResizeEvent:function(a){this.primaryTouch=null;this.updateSize()},handleTouchEvent:function(a){a.preventDefault();var b=null;null!=this.parent.element&&
(b=null!=this.canvas?this.canvas.getBoundingClientRect():null!=this.div?this.div.getBoundingClientRect():this.parent.element.getBoundingClientRect());var d=this.setWidth,c=this.setHeight;if(0==d||0==c)null!=b?(d=b.width,c=b.height):c=d=1;for(var e,f,h,k,n,l=0,m=a.changedTouches;l<m.length;){var g=m[l];++l;null!=b?(f=d/b.width*(g.clientX-b.left),h=c/b.height*(g.clientY-b.top)):(f=g.clientX,h=g.clientY);if("touchstart"==a.type)e=this.unusedTouchesPool.pop(),null==e?e=new nb(f/d,h/c,g.identifier,0,0,
g.force,this.parent.id):(e.x=f/d,e.y=h/c,e.id=g.identifier,e.dx=0,e.dy=0,e.pressure=g.force,e.device=this.parent.id),this.currentTouches.h[g.identifier]=e,nb.onStart.dispatch(e),null==this.primaryTouch&&(this.primaryTouch=e),e==this.primaryTouch&&this.parent.onMouseDown.dispatch(f,h,0);else if(e=this.currentTouches.h[g.identifier],null!=e)switch(k=e.x,n=e.y,e.x=f/d,e.y=h/c,e.dx=e.x-k,e.dy=e.y-n,e.pressure=g.force,a.type){case "touchcancel":nb.onCancel.dispatch(e);this.currentTouches.remove(g.identifier);
this.unusedTouchesPool.add(e);e==this.primaryTouch&&(this.primaryTouch=null);break;case "touchend":nb.onEnd.dispatch(e);this.currentTouches.remove(g.identifier);this.unusedTouchesPool.add(e);e==this.primaryTouch&&(this.parent.onMouseUp.dispatch(f,h,0),this.primaryTouch=null);break;case "touchmove":nb.onMove.dispatch(e),e==this.primaryTouch&&this.parent.onMouseMove.dispatch(f,h)}}},isDescendent:function(a){if(a==this.parent.element)return!0;for(;null!=a;){if(a.parentNode==this.parent.element)return!0;
a=a.parentNode}return!1},setClipboard:function(a){var b=this.textInputEnabled;this.setTextInputEnabled(!0);var d=na.textInput.value;na.textInput.value=a;na.textInput.select();window.document.queryCommandEnabled("copy")&&window.document.execCommand("copy");na.textInput.value=d;this.setTextInputEnabled(b)},setCursor:function(a){if(this.cursor!=a){if(null==a)this.parent.element.style.cursor=null;else{switch(a._hx_index){case 0:var b="default";break;case 1:b="crosshair";break;case 3:b="move";break;case 4:b=
"pointer";break;case 5:b="nesw-resize";break;case 6:b="ns-resize";break;case 7:b="nwse-resize";break;case 8:b="ew-resize";break;case 9:b="text";break;case 10:b="wait";break;case 11:b="wait";break;default:b="auto"}this.parent.element.style.cursor=b}this.cursor=a}return this.cursor},setTextInputEnabled:function(a){a?(null==na.textInput&&(na.textInput=window.document.createElement("input"),na.textInput.type="text",na.textInput.style.position="absolute",na.textInput.style.opacity="0",na.textInput.style.color=
"transparent",na.textInput.value=na.dummyCharacter,na.textInput.autocapitalize="off",na.textInput.autocorrect="off",na.textInput.autocomplete="off",na.textInput.style.left="0px",na.textInput.style.top="50%",(new wa("(iPad|iPhone|iPod).*OS 8_","gi")).match(window.navigator.userAgent)?(na.textInput.style.fontSize="0px",na.textInput.style.width="0px",na.textInput.style.height="0px"):(na.textInput.style.width="1px",na.textInput.style.height="1px"),na.textInput.style.pointerEvents="none",na.textInput.style.zIndex=
"-10000000"),null==na.textInput.parentNode&&this.parent.element.appendChild(na.textInput),this.textInputEnabled||(na.textInput.addEventListener("input",u(this,this.handleInputEvent),!0),na.textInput.addEventListener("blur",u(this,this.handleFocusEvent),!0),na.textInput.addEventListener("cut",u(this,this.handleCutOrCopyEvent),!0),na.textInput.addEventListener("copy",u(this,this.handleCutOrCopyEvent),!0),na.textInput.addEventListener("paste",u(this,this.handlePasteEvent),!0)),na.textInput.focus(),na.textInput.select()):
null!=na.textInput&&(na.textInput.removeEventListener("input",u(this,this.handleInputEvent),!0),na.textInput.removeEventListener("blur",u(this,this.handleFocusEvent),!0),na.textInput.removeEventListener("cut",u(this,this.handleCutOrCopyEvent),!0),na.textInput.removeEventListener("copy",u(this,this.handleCutOrCopyEvent),!0),na.textInput.removeEventListener("paste",u(this,this.handlePasteEvent),!0),na.textInput.blur());return this.textInputEnabled=a},updateSize:function(){if(this.parent.__resizable){if(null!=
this.parent.element){var a=this.parent.element.clientWidth;var b=this.parent.element.clientHeight}else a=window.innerWidth,b=window.innerHeight;if(a!=this.cacheElementWidth||b!=this.cacheElementHeight){this.cacheElementWidth=a;this.cacheElementHeight=b;var d=this.resizeElement||0==this.setWidth&&0==this.setHeight;if(null!=this.parent.element&&(null==this.div||null!=this.div&&d))if(d){if(this.parent.__width!=a||this.parent.__height!=b)this.parent.__width=a,this.parent.__height=b,null!=this.canvas?
this.parent.element!=this.canvas&&(this.canvas.width=Math.round(a*this.scale),this.canvas.height=Math.round(b*this.scale),this.canvas.style.width=a+"px",this.canvas.style.height=b+"px"):(this.div.style.width=a+"px",this.div.style.height=b+"px"),this.parent.onResize.dispatch(a,b)}else{d=0!=this.setWidth?a/this.setWidth:1;var c=0!=this.setHeight?b/this.setHeight:1,e=a,f=b,h=0,k=0;d<c?(f=Math.floor(this.setHeight*d),k=Math.floor((b-f)/2)):(e=Math.floor(this.setWidth*c),h=Math.floor((a-e)/2));null!=this.canvas?
this.parent.element!=this.canvas&&(this.canvas.style.width=e+"px",this.canvas.style.height=f+"px",this.canvas.style.marginLeft=h+"px",this.canvas.style.marginTop=k+"px"):(this.div.style.width=e+"px",this.div.style.height=f+"px",this.div.style.marginLeft=h+"px",this.div.style.marginTop=k+"px")}}}},__class__:na};var hk=function(){};m["lime._internal.format.BMP"]=hk;hk.__name__="lime._internal.format.BMP";hk.encode=function(a,b){if(a.get_premultiplied()||0!=a.get_format())a=a.clone(),a.set_premultiplied(!1),
a.set_format(0);null==b&&(b=$i.RGB);var d=14,c=40,e=a.width*a.height*4;if(null!=b)switch(b._hx_index){case 0:e=3*a.width+3*a.width%4+3*a.height+3*a.height;break;case 1:c=108;break;case 2:d=0,e+=a.width*a.height}var f=new H(new ArrayBuffer(d+c+e)),h=0;0<d&&(f.b[h++]=66,f.b[h++]=77,f.setInt32(h,f.length),h+=4,f.setUInt16(h,0),h+=2,f.setUInt16(h,0),h+=2,f.setInt32(h,d+c),h+=4);f.setInt32(h,c);h+=4;f.setInt32(h,a.width);h+=4;f.setInt32(h,b==$i.ICO?2*a.height:a.height);h+=4;f.setUInt16(h,1);h+=2;f.setUInt16(h,
b==$i.RGB?24:32);h+=2;f.setInt32(h,b==$i.BITFIELD?3:0);h+=4;f.setInt32(h,e);h+=4;f.setInt32(h,11824);h+=4;f.setInt32(h,11824);h+=4;f.setInt32(h,0);h+=4;f.setInt32(h,0);h+=4;if(b==$i.BITFIELD)for(f.setInt32(h,16711680),h+=4,f.setInt32(h,65280),h+=4,f.setInt32(h,255),h+=4,f.setInt32(h,-16777216),h+=4,f.b[h++]=32,f.b[h++]=110,f.b[h++]=105,f.b[h++]=87,d=0;48>d;)d++,f.b[h++]=0;d=a.getPixels(new Qb(0,0,a.width,a.height),1);if(null!=b)switch(b._hx_index){case 0:var k=0;for(var n=a.height;k<n;){b=k++;b=4*
(a.height-1-b)*a.width;for(var l=0,m=a.width;l<m;){l++;b++;c=d.b[b++];e=d.b[b++];var g=d.b[b++];f.b[h++]=g&255;f.b[h++]=e&255;f.b[h++]=c&255}b=0;for(c=3*a.width%4;b<c;)b++,f.b[h++]=0}break;case 1:n=0;for(l=a.height;n<l;){b=n++;b=4*(a.height-1-b)*a.width;m=0;for(var q=a.width;m<q;)m++,k=d.b[b++],c=d.b[b++],e=d.b[b++],g=d.b[b++],f.b[h++]=g&255,f.b[h++]=e&255,f.b[h++]=c&255,f.b[h++]=k&255}break;case 2:n=new H(new ArrayBuffer(a.width*a.height));m=l=0;for(q=a.height;m<q;){b=m++;b=4*(a.height-1-b)*a.width;
for(var p=0,A=a.width;p<A;)p++,k=d.b[b++],c=d.b[b++],e=d.b[b++],g=d.b[b++],f.b[h++]=g&255,f.b[h++]=e&255,f.b[h++]=c&255,f.b[h++]=k&255,n.b[l++]=0}f.blit(h,n,0,a.width*a.height)}return f};var $i=sa["lime._internal.format.BMPType"]={__ename__:"lime._internal.format.BMPType",__constructs__:["RGB","BITFIELD","ICO"],RGB:{_hx_index:0,__enum__:"lime._internal.format.BMPType",toString:r},BITFIELD:{_hx_index:1,__enum__:"lime._internal.format.BMPType",toString:r},ICO:{_hx_index:2,__enum__:"lime._internal.format.BMPType",
toString:r}},zh=function(){};m["lime._internal.format.Deflate"]=zh;zh.__name__="lime._internal.format.Deflate";zh.decompress=function(a){a=pako.inflateRaw(a.b.bufferValue);return H.ofData(a)};var ik=function(){};m["lime._internal.format.GZip"]=ik;ik.__name__="lime._internal.format.GZip";ik.decompress=function(a){a=pako.ungzip(a.b.bufferValue);return H.ofData(a)};var jk=function(){};m["lime._internal.format.JPEG"]=jk;jk.__name__="lime._internal.format.JPEG";jk.encode=function(a,b){if(a.get_premultiplied()||
0!=a.get_format())a=a.clone(),a.set_premultiplied(!1),a.set_format(0);N.convertToCanvas(a,!1);if(null!=a.buffer.__srcCanvas){a=a.buffer.__srcCanvas.toDataURL("image/jpeg",b/100);a=window.atob(a.split(";base64,")[1]);b=new H(new ArrayBuffer(a.length));for(var d=0,c=a.length;d<c;){var e=d++;b.b[e]=L.cca(a,e)&255}return b}return null};var kk=function(){};m["lime._internal.format.LZMA"]=kk;kk.__name__="lime._internal.format.LZMA";kk.decompress=function(a){return null};var aj=function(){};m["lime._internal.format.PNG"]=
aj;aj.__name__="lime._internal.format.PNG";aj.encode=function(a){if(a.get_premultiplied()||0!=a.get_format())a=a.clone(),a.set_premultiplied(!1),a.set_format(0);N.convertToCanvas(a,!1);if(null!=a.buffer.__srcCanvas){a=a.buffer.__srcCanvas.toDataURL("image/png");a=window.atob(a.split(";base64,")[1]);for(var b=new H(new ArrayBuffer(a.length)),d=0,c=a.length;d<c;){var e=d++;b.b[e]=L.cca(a,e)&255}return b}return null};var lk=function(){};m["lime._internal.format.Zlib"]=lk;lk.__name__="lime._internal.format.Zlib";
lk.decompress=function(a){a=pako.inflate(a.b.bufferValue);return H.ofData(a)};var N=function(){};m["lime._internal.graphics.ImageCanvasUtil"]=N;N.__name__="lime._internal.graphics.ImageCanvasUtil";N.colorTransform=function(a,b,d){N.convertToData(a);xa.colorTransform(a,b,d)};N.convertToCanvas=function(a,b){null==b&&(b=!1);var d=a.buffer;null!=d.__srcImage?(null==d.__srcCanvas&&(N.createCanvas(a,d.__srcImage.width,d.__srcImage.height),d.__srcContext.drawImage(d.__srcImage,0,0)),d.__srcImage=null):null==
d.__srcCanvas&&null!=d.data?(a.set_transparent(!0),N.createCanvas(a,d.width,d.height),N.createImageData(a),d.__srcContext.putImageData(d.__srcImageData,0,0)):a.type==lc.DATA&&null!=d.__srcImageData&&a.dirty&&(d.__srcContext.putImageData(d.__srcImageData,0,0),a.dirty=!1);b?(d.data=null,d.__srcImageData=null):null==d.data&&null!=d.__srcImageData&&(d.data=d.__srcImageData.data);a.type=lc.CANVAS};N.convertToData=function(a,b){null==b&&(b=!1);var d=a.buffer;null!=d.__srcImage&&N.convertToCanvas(a);if(null!=
d.__srcCanvas&&null==d.data)N.createImageData(a),a.type==lc.CANVAS&&(a.dirty=!1);else if(a.type==lc.CANVAS&&null!=d.__srcCanvas&&a.dirty){if(null==d.__srcImageData)N.createImageData(a);else{d.__srcImageData=d.__srcContext.getImageData(0,0,d.width,d.height);var c=d.__srcImageData.data.buffer;c=null!=c?new Uint8Array(c):null;d.data=c}a.dirty=!1}b&&(a.buffer.__srcCanvas=null,a.buffer.__srcContext=null);a.type=lc.DATA};N.copyChannel=function(a,b,d,c,e,f){N.convertToData(b);N.convertToData(a);xa.copyChannel(a,
b,d,c,e,f)};N.copyPixels=function(a,b,d,c,e,f,h){null==h&&(h=!1);null==c||c.x>=a.width||c.y>=a.height||null==d||1>d.width||1>d.height||(null!=e&&e.get_transparent()&&(null==f&&(f=new kd),b=a.clone(),b.copyChannel(e,new Qb(f.x,f.y,d.width,d.height),new kd(d.x,d.y),Lf.ALPHA,Lf.ALPHA)),N.convertToCanvas(a,!0),h||a.get_transparent()&&b.get_transparent()&&a.buffer.__srcContext.clearRect(c.x+a.offsetX,c.y+a.offsetY,d.width+a.offsetX,d.height+a.offsetY),N.convertToCanvas(b),null!=b.buffer.get_src()&&(a.buffer.__srcContext.globalCompositeOperation=
"source-over",a.buffer.__srcContext.drawImage(b.buffer.get_src(),d.x+b.offsetX|0,d.y+b.offsetY|0,d.width|0,d.height|0,c.x+a.offsetX|0,c.y+a.offsetY|0,d.width|0,d.height|0)),a.dirty=!0,a.version++)};N.createCanvas=function(a,b,d){var c=a.buffer;null==c.__srcCanvas&&(c.__srcCanvas=window.document.createElement("canvas"),c.__srcCanvas.width=b,c.__srcCanvas.height=d,a.get_transparent()?c.__srcContext=c.__srcCanvas.getContext("2d"):(a.get_transparent()||c.__srcCanvas.setAttribute("moz-opaque","true"),
c.__srcContext=c.__srcCanvas.getContext("2d",{alpha:!1})),c.__srcContext.mozImageSmoothingEnabled=!1,c.__srcContext.msImageSmoothingEnabled=!1,c.__srcContext.imageSmoothingEnabled=!1)};N.createImageData=function(a){a=a.buffer;if(null==a.__srcImageData){null==a.data?a.__srcImageData=a.__srcContext.getImageData(0,0,a.width,a.height):(a.__srcImageData=a.__srcContext.createImageData(a.width,a.height),a.__srcImageData.data.set(a.data));var b=a.__srcImageData.data.buffer;b=null!=b?new Uint8Array(b):null;
a.data=b}};N.fillRect=function(a,b,d,c){N.convertToCanvas(a);if(1==c){c=d>>16&255;var e=d>>8&255;var f=d&255;d=a.get_transparent()?d>>24&255:255}else c=d>>24&255,e=d>>16&255,f=d>>8&255,d=a.get_transparent()?d&255:255;0==b.x&&0==b.y&&b.width==a.width&&b.height==a.height&&a.get_transparent()&&0==d?a.buffer.__srcCanvas.width=a.buffer.width:(255>d&&a.buffer.__srcContext.clearRect(b.x+a.offsetX,b.y+a.offsetY,b.width+a.offsetX,b.height+a.offsetY),0<d&&(a.buffer.__srcContext.fillStyle="rgba("+c+", "+e+", "+
f+", "+d/255+")",a.buffer.__srcContext.fillRect(b.x+a.offsetX,b.y+a.offsetY,b.width+a.offsetX,b.height+a.offsetY)),a.dirty=!0,a.version++)};N.getPixel32=function(a,b,d,c){N.convertToData(a);return xa.getPixel32(a,b,d,c)};N.getPixels=function(a,b,d){N.convertToData(a);return xa.getPixels(a,b,d)};N.setPixel32=function(a,b,d,c,e){N.convertToData(a);xa.setPixel32(a,b,d,c,e)};N.setPixels=function(a,b,d,c,e){N.convertToData(a);xa.setPixels(a,b,d,c,e)};N.sync=function(a,b){null!=a&&(a.type!=lc.CANVAS||null==
a.buffer.__srcCanvas&&null==a.buffer.data?a.type==lc.DATA&&N.convertToData(a,b):N.convertToCanvas(a,b))};var xa=function(){};m["lime._internal.graphics.ImageDataUtil"]=xa;xa.__name__="lime._internal.graphics.ImageDataUtil";xa.colorTransform=function(a,b,d){var c=a.buffer.data;if(null!=c){var e=a.buffer.format,f=a.buffer.premultiplied;b=new Lc(a,b);var h=Za.getAlphaTable(d),k=Za.getRedTable(d),n=Za.getGreenTable(d);d=Za.getBlueTable(d);for(var l,m,g,q=0,p=b.height;q<p;){l=q++;l=b.byteOffset+b.stride*
l;for(var A=0,r=b.width;A<r;){m=A++;m=l+4*m;switch(e){case 0:g=(c[m]&255)<<24|(c[m+1]&255)<<16|(c[m+2]&255)<<8|c[m+3]&255;break;case 1:g=(c[m+1]&255)<<24|(c[m+2]&255)<<16|(c[m+3]&255)<<8|c[m]&255;break;case 2:g=(c[m+2]&255)<<24|(c[m+1]&255)<<16|(c[m]&255)<<8|c[m+3]&255}f&&0!=(g&255)&&255!=(g&255)&&(y.unmult=255/(g&255),g=(y.__clamp[Math.round((g>>>24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((g>>>16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((g>>>8&255)*y.unmult)]&255)<<8|g&255);g=(k[g>>>
24&255]&255)<<24|(n[g>>>16&255]&255)<<16|(d[g>>>8&255]&255)<<8|h[g&255]&255;f&&(0==(g&255)?0!=g&&(g=0):255!=(g&255)&&(y.a16=y.__alpha16[g&255],g=((g>>>24&255)*y.a16>>16&255)<<24|((g>>>16&255)*y.a16>>16&255)<<16|((g>>>8&255)*y.a16>>16&255)<<8|g&255));switch(e){case 0:c[m]=g>>>24&255;c[m+1]=g>>>16&255;c[m+2]=g>>>8&255;c[m+3]=g&255;break;case 1:c[m]=g&255;c[m+1]=g>>>24&255;c[m+2]=g>>>16&255;c[m+3]=g>>>8&255;break;case 2:c[m]=g>>>8&255,c[m+1]=g>>>16&255,c[m+2]=g>>>24&255,c[m+3]=g&255}}}a.dirty=!0;a.version++}};
xa.copyChannel=function(a,b,d,c,e,f){switch(f._hx_index){case 0:var h=0;break;case 1:h=1;break;case 2:h=2;break;case 3:h=3}switch(e._hx_index){case 0:var k=0;break;case 1:k=1;break;case 2:k=2;break;case 3:k=3}e=b.buffer.data;f=a.buffer.data;if(null!=e&&null!=f){d=new Lc(b,d);c=new Lc(a,new Qb(c.x,c.y,d.width,d.height));var n=b.buffer.format,l=a.buffer.format;b=b.buffer.premultiplied;for(var m=a.buffer.premultiplied,g,q,p,A,r=0,J=0,Ed=c.height;J<Ed;){q=J++;g=d.byteOffset+d.stride*q;q=c.byteOffset+
c.stride*q;for(var u=0,t=c.width;u<t;){u++;switch(n){case 0:p=(e[g]&255)<<24|(e[g+1]&255)<<16|(e[g+2]&255)<<8|e[g+3]&255;break;case 1:p=(e[g+1]&255)<<24|(e[g+2]&255)<<16|(e[g+3]&255)<<8|e[g]&255;break;case 2:p=(e[g+2]&255)<<24|(e[g+1]&255)<<16|(e[g]&255)<<8|e[g+3]&255}b&&0!=(p&255)&&255!=(p&255)&&(y.unmult=255/(p&255),p=(y.__clamp[Math.round((p>>>24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((p>>>16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((p>>>8&255)*y.unmult)]&255)<<8|p&255);switch(l){case 0:A=
(f[q]&255)<<24|(f[q+1]&255)<<16|(f[q+2]&255)<<8|f[q+3]&255;break;case 1:A=(f[q+1]&255)<<24|(f[q+2]&255)<<16|(f[q+3]&255)<<8|f[q]&255;break;case 2:A=(f[q+2]&255)<<24|(f[q+1]&255)<<16|(f[q]&255)<<8|f[q+3]&255}m&&0!=(A&255)&&255!=(A&255)&&(y.unmult=255/(A&255),A=(y.__clamp[Math.round((A>>>24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((A>>>16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((A>>>8&255)*y.unmult)]&255)<<8|A&255);switch(k){case 0:r=p>>>24&255;break;case 1:r=p>>>16&255;break;case 2:r=
p>>>8&255;break;case 3:r=p&255}switch(h){case 0:A=(r&255)<<24|(A>>>16&255)<<16|(A>>>8&255)<<8|A&255;break;case 1:A=(A>>>24&255)<<24|(r&255)<<16|(A>>>8&255)<<8|A&255;break;case 2:A=(A>>>24&255)<<24|(A>>>16&255)<<16|(r&255)<<8|A&255;break;case 3:A=(A>>>24&255)<<24|(A>>>16&255)<<16|(A>>>8&255)<<8|r&255}m&&(0==(A&255)?0!=A&&(A=0):255!=(A&255)&&(y.a16=y.__alpha16[A&255],A=((A>>>24&255)*y.a16>>16&255)<<24|((A>>>16&255)*y.a16>>16&255)<<16|((A>>>8&255)*y.a16>>16&255)<<8|A&255));switch(l){case 0:f[q]=A>>>
24&255;f[q+1]=A>>>16&255;f[q+2]=A>>>8&255;f[q+3]=A&255;break;case 1:f[q]=A&255;f[q+1]=A>>>24&255;f[q+2]=A>>>16&255;f[q+3]=A>>>8&255;break;case 2:f[q]=A>>>8&255,f[q+1]=A>>>16&255,f[q+2]=A>>>24&255,f[q+3]=A&255}g+=4;q+=4}}a.dirty=!0;a.version++}};xa.copyPixels=function(a,b,d,c,e,f,h){null==h&&(h=!1);if(a.width==b.width&&a.height==b.height&&d.width==b.width&&d.height==b.height&&0==d.x&&0==d.y&&0==c.x&&0==c.y&&null==e&&null==f&&0==h&&a.get_format()==b.get_format())a.buffer.data.set(b.buffer.data);else{var k=
b.buffer.data,n=a.buffer.data;if(null==k||null==n)return;d=new Lc(b,d);var l=new Qb(c.x,c.y,d.width,d.height);l=new Lc(a,l);var m=b.buffer.format,g=a.buffer.format,q=b.buffer.premultiplied,p=a.buffer.premultiplied;var A=b.buffer.bitsPerPixel/8|0;b=a.buffer.bitsPerPixel/8|0;var r=null!=e&&e.get_transparent();var J=h||r&&!a.get_transparent();if(r)if(null==f&&(f=new kd),b=e.buffer.data,h=e.buffer.format,f=new Lc(e,new Qb(f.x,f.y,e.width,e.height)),f.offset(d.x,d.y),l.clip(c.x|0,c.y|0,f.width,f.height),
J)for(var Ed=0,u=l.height;Ed<u;){J=Ed++;c=d.byteOffset+d.stride*J;e=l.byteOffset+l.stride*J;var t=f.byteOffset+f.stride*J;for(var v=0,ng=l.width;v<ng;){v++;switch(m){case 0:var O=(k[c]&255)<<24|(k[c+1]&255)<<16|(k[c+2]&255)<<8|k[c+3]&255;break;case 1:O=(k[c+1]&255)<<24|(k[c+2]&255)<<16|(k[c+3]&255)<<8|k[c]&255;break;case 2:O=(k[c+2]&255)<<24|(k[c+1]&255)<<16|(k[c]&255)<<8|k[c+3]&255}q&&0!=(O&255)&&255!=(O&255)&&(y.unmult=255/(O&255),O=(y.__clamp[Math.round((O>>>24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((O>>>
16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((O>>>8&255)*y.unmult)]&255)<<8|O&255);switch(g){case 0:var I=(n[e]&255)<<24|(n[e+1]&255)<<16|(n[e+2]&255)<<8|n[e+3]&255;break;case 1:I=(n[e+1]&255)<<24|(n[e+2]&255)<<16|(n[e+3]&255)<<8|n[e]&255;break;case 2:I=(n[e+2]&255)<<24|(n[e+1]&255)<<16|(n[e]&255)<<8|n[e+3]&255}p&&0!=(I&255)&&255!=(I&255)&&(y.unmult=255/(I&255),I=(y.__clamp[Math.round((I>>>24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((I>>>16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((I>>>
8&255)*y.unmult)]&255)<<8|I&255);switch(h){case 0:var w=(b[t]&255)<<24|(b[t+1]&255)<<16|(b[t+2]&255)<<8|b[t+3]&255;break;case 1:w=(b[t+1]&255)<<24|(b[t+2]&255)<<16|(b[t+3]&255)<<8|b[t]&255;break;case 2:w=(b[t+2]&255)<<24|(b[t+1]&255)<<16|(b[t]&255)<<8|b[t+3]&255}J=(w&255)/255*((O&255)/255);if(0<J){A=(I&255)/255;r=1-J;var Mb=J+A*r;I=(y.__clamp[Math.round(((O>>>24&255)*J+(I>>>24&255)*A*r)/Mb)]&255)<<24|(I>>>16&255)<<16|(I>>>8&255)<<8|I&255;I=(I>>>24&255)<<24|(y.__clamp[Math.round(((O>>>16&255)*J+(I>>>
16&255)*A*r)/Mb)]&255)<<16|(I>>>8&255)<<8|I&255;I=(I>>>24&255)<<24|(I>>>16&255)<<16|(y.__clamp[Math.round(((O>>>8&255)*J+(I>>>8&255)*A*r)/Mb)]&255)<<8|I&255;I=(I>>>24&255)<<24|(I>>>16&255)<<16|(I>>>8&255)<<8|y.__clamp[Math.round(255*Mb)]&255;p&&(0==(I&255)?0!=I&&(I=0):255!=(I&255)&&(y.a16=y.__alpha16[I&255],I=((I>>>24&255)*y.a16>>16&255)<<24|((I>>>16&255)*y.a16>>16&255)<<16|((I>>>8&255)*y.a16>>16&255)<<8|I&255));switch(g){case 0:n[e]=I>>>24&255;n[e+1]=I>>>16&255;n[e+2]=I>>>8&255;n[e+3]=I&255;break;
case 1:n[e]=I&255;n[e+1]=I>>>24&255;n[e+2]=I>>>16&255;n[e+3]=I>>>8&255;break;case 2:n[e]=I>>>8&255,n[e+1]=I>>>16&255,n[e+2]=I>>>24&255,n[e+3]=I&255}}c+=4;e+=4;t+=4}}else for(I=0,J=l.height;I<J;)for(A=I++,c=d.byteOffset+d.stride*A,e=l.byteOffset+l.stride*A,t=f.byteOffset+f.stride*A,A=0,r=l.width;A<r;){A++;switch(m){case 0:O=(k[c]&255)<<24|(k[c+1]&255)<<16|(k[c+2]&255)<<8|k[c+3]&255;break;case 1:O=(k[c+1]&255)<<24|(k[c+2]&255)<<16|(k[c+3]&255)<<8|k[c]&255;break;case 2:O=(k[c+2]&255)<<24|(k[c+1]&255)<<
16|(k[c]&255)<<8|k[c+3]&255}q&&0!=(O&255)&&255!=(O&255)&&(y.unmult=255/(O&255),O=(y.__clamp[Math.round((O>>>24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((O>>>16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((O>>>8&255)*y.unmult)]&255)<<8|O&255);switch(h){case 0:w=(b[t]&255)<<24|(b[t+1]&255)<<16|(b[t+2]&255)<<8|b[t+3]&255;break;case 1:w=(b[t+1]&255)<<24|(b[t+2]&255)<<16|(b[t+3]&255)<<8|b[t]&255;break;case 2:w=(b[t+2]&255)<<24|(b[t+1]&255)<<16|(b[t]&255)<<8|b[t+3]&255}O=(O>>>24&255)<<24|(O>>>
16&255)<<16|(O>>>8&255)<<8|Math.round((w&255)/255*(O&255))&255;p&&(0==(O&255)?0!=O&&(O=0):255!=(O&255)&&(y.a16=y.__alpha16[O&255],O=((O>>>24&255)*y.a16>>16&255)<<24|((O>>>16&255)*y.a16>>16&255)<<16|((O>>>8&255)*y.a16>>16&255)<<8|O&255));switch(g){case 0:n[e]=O>>>24&255;n[e+1]=O>>>16&255;n[e+2]=O>>>8&255;n[e+3]=O&255;break;case 1:n[e]=O&255;n[e+1]=O>>>24&255;n[e+2]=O>>>16&255;n[e+3]=O>>>8&255;break;case 2:n[e]=O>>>8&255,n[e+1]=O>>>16&255,n[e+2]=O>>>24&255,n[e+3]=O&255}c+=4;e+=4;t+=4}else if(J)for(w=
0,b=l.height;w<b;)for(e=w++,c=d.byteOffset+d.stride*e,e=l.byteOffset+l.stride*e,h=0,f=l.width;h<f;){h++;switch(m){case 0:O=(k[c]&255)<<24|(k[c+1]&255)<<16|(k[c+2]&255)<<8|k[c+3]&255;break;case 1:O=(k[c+1]&255)<<24|(k[c+2]&255)<<16|(k[c+3]&255)<<8|k[c]&255;break;case 2:O=(k[c+2]&255)<<24|(k[c+1]&255)<<16|(k[c]&255)<<8|k[c+3]&255}q&&0!=(O&255)&&255!=(O&255)&&(y.unmult=255/(O&255),O=(y.__clamp[Math.round((O>>>24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((O>>>16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((O>>>
8&255)*y.unmult)]&255)<<8|O&255);switch(g){case 0:I=(n[e]&255)<<24|(n[e+1]&255)<<16|(n[e+2]&255)<<8|n[e+3]&255;break;case 1:I=(n[e+1]&255)<<24|(n[e+2]&255)<<16|(n[e+3]&255)<<8|n[e]&255;break;case 2:I=(n[e+2]&255)<<24|(n[e+1]&255)<<16|(n[e]&255)<<8|n[e+3]&255}p&&0!=(I&255)&&255!=(I&255)&&(y.unmult=255/(I&255),I=(y.__clamp[Math.round((I>>>24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((I>>>16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((I>>>8&255)*y.unmult)]&255)<<8|I&255);J=(O&255)/255;A=(I&
255)/255;r=1-J;Mb=J+A*r;0==Mb?I=0:(I=(y.__clamp[Math.round(((O>>>24&255)*J+(I>>>24&255)*A*r)/Mb)]&255)<<24|(I>>>16&255)<<16|(I>>>8&255)<<8|I&255,I=(I>>>24&255)<<24|(y.__clamp[Math.round(((O>>>16&255)*J+(I>>>16&255)*A*r)/Mb)]&255)<<16|(I>>>8&255)<<8|I&255,I=(I>>>24&255)<<24|(I>>>16&255)<<16|(y.__clamp[Math.round(((O>>>8&255)*J+(I>>>8&255)*A*r)/Mb)]&255)<<8|I&255,I=(I>>>24&255)<<24|(I>>>16&255)<<16|(I>>>8&255)<<8|y.__clamp[Math.round(255*Mb)]&255);p&&(0==(I&255)?0!=I&&(I=0):255!=(I&255)&&(y.a16=y.__alpha16[I&
255],I=((I>>>24&255)*y.a16>>16&255)<<24|((I>>>16&255)*y.a16>>16&255)<<16|((I>>>8&255)*y.a16>>16&255)<<8|I&255));switch(g){case 0:n[e]=I>>>24&255;n[e+1]=I>>>16&255;n[e+2]=I>>>8&255;n[e+3]=I&255;break;case 1:n[e]=I&255;n[e+1]=I>>>24&255;n[e+2]=I>>>16&255;n[e+3]=I>>>8&255;break;case 2:n[e]=I>>>8&255,n[e+1]=I>>>16&255,n[e+2]=I>>>24&255,n[e+3]=I&255}c+=4;e+=4}else if(m==g&&q==p&&A==b)for(O=0,m=l.height;O<m;)g=O++,c=d.byteOffset+d.stride*g,e=l.byteOffset+l.stride*g,n.set(k.subarray(c,c+l.width*b),e);else for(I=
0,w=l.height;I<w;)for(e=I++,c=d.byteOffset+d.stride*e,e=l.byteOffset+l.stride*e,b=0,h=l.width;b<h;){b++;switch(m){case 0:O=(k[c]&255)<<24|(k[c+1]&255)<<16|(k[c+2]&255)<<8|k[c+3]&255;break;case 1:O=(k[c+1]&255)<<24|(k[c+2]&255)<<16|(k[c+3]&255)<<8|k[c]&255;break;case 2:O=(k[c+2]&255)<<24|(k[c+1]&255)<<16|(k[c]&255)<<8|k[c+3]&255}q&&0!=(O&255)&&255!=(O&255)&&(y.unmult=255/(O&255),O=(y.__clamp[Math.round((O>>>24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((O>>>16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((O>>>
8&255)*y.unmult)]&255)<<8|O&255);p&&(0==(O&255)?0!=O&&(O=0):255!=(O&255)&&(y.a16=y.__alpha16[O&255],O=((O>>>24&255)*y.a16>>16&255)<<24|((O>>>16&255)*y.a16>>16&255)<<16|((O>>>8&255)*y.a16>>16&255)<<8|O&255));switch(g){case 0:n[e]=O>>>24&255;n[e+1]=O>>>16&255;n[e+2]=O>>>8&255;n[e+3]=O&255;break;case 1:n[e]=O&255;n[e+1]=O>>>24&255;n[e+2]=O>>>16&255;n[e+3]=O>>>8&255;break;case 2:n[e]=O>>>8&255,n[e+1]=O>>>16&255,n[e+2]=O>>>24&255,n[e+3]=O&255}c+=4;e+=4}}a.dirty=!0;a.version++};xa.fillRect=function(a,b,
d,c){switch(c){case 1:d=(d>>>16&255)<<24|(d>>>8&255)<<16|(d&255)<<8|d>>>24&255;break;case 2:d=(d>>>8&255)<<24|(d>>>16&255)<<16|(d>>>24&255)<<8|d&255}a.get_transparent()||(d=(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|255);c=a.buffer.data;if(null!=c){var e=a.buffer.format;a.buffer.premultiplied&&(0==(d&255)?0!=d&&(d=0):255!=(d&255)&&(y.a16=y.__alpha16[d&255],d=((d>>>24&255)*y.a16>>16&255)<<24|((d>>>16&255)*y.a16>>16&255)<<16|((d>>>8&255)*y.a16>>16&255)<<8|d&255));b=new Lc(a,b);for(var f,h=0,k=
b.height;h<k;){f=h++;f=b.byteOffset+b.stride*f;for(var n=0,l=b.width;n<l;){var m=n++;m=f+4*m;switch(e){case 0:c[m]=d>>>24&255;c[m+1]=d>>>16&255;c[m+2]=d>>>8&255;c[m+3]=d&255;break;case 1:c[m]=d&255;c[m+1]=d>>>24&255;c[m+2]=d>>>16&255;c[m+3]=d>>>8&255;break;case 2:c[m]=d>>>8&255,c[m+1]=d>>>16&255,c[m+2]=d>>>24&255,c[m+3]=d&255}}}a.dirty=!0;a.version++}};xa.gaussianBlur=function(a,b,d,c,e,f,h,k){null==k&&(k=1);null==h&&(h=1);null==f&&(f=4);null==e&&(e=4);var n=a.get_premultiplied(),l=b.get_premultiplied();
n&&a.set_premultiplied(!1);l&&b.set_premultiplied(!1);var m=function(a,b){var c=Math.floor(Math.sqrt(12*a*a/b+1));0==c%2&&--c;var d=c+2;a=Math.round((12*a*a-b*c*c-4*b*c-3*b)/(-4*c-4));for(var e=[],f=0;f<b;){var g=f++;e.push(g<a?c:d)}return e},g=function(a,b,c,d,e,f){for(var g=1/(e+e+1),h=0;h<d;){for(var k=h++*c,n=k,l=k+e,m=a[4*k+f],C=a[4*(k+c-1)+f],q=(e+1)*m,p=0,r=e;p<r;){var A=p++;q+=a[4*(k+A)+f]}p=0;for(r=e+1;p<r;)p++,q+=a[4*l+f]-m,b[4*k+f]=Math.round(tc.toFloat(q)*g),++l,++k;m=e+1;for(p=c-e;m<
p;)m++,q+=a[4*l+f]-a[4*n+f],b[4*k+f]=Math.round(tc.toFloat(q)*g),++l,++n,++k;l=c-e;for(m=c;l<m;)l++,q+=C-a[4*n+f],b[4*k+f]=Math.round(tc.toFloat(q)*g),++n,++k}},q=function(a,b,c,d,e,f){for(var g=1/(e+e+1),h=4*c,k=0;k<c;){for(var n=4*k++ +f,l=n,m=n+e*h,C=a[n],q=a[n+h*(d-1)],p=(e+1)*C,r=0,A=e;r<A;){var T=r++;p+=a[n+T*h]}r=0;for(A=e+1;r<A;)r++,p+=a[m]-C,b[n]=Math.round(tc.toFloat(p)*g),m+=h,n+=h;C=e+1;for(r=d-e;C<r;)C++,p+=a[m]-a[l],b[n]=Math.round(tc.toFloat(p)*g),l+=h,m+=h,n+=h;m=d-e;for(C=d;m<C;)m++,
p+=q-a[l],b[n]=Math.round(tc.toFloat(p)*g),l+=h,n+=h}},p=function(a,b,c,d,e,f){for(var h=0,k=a.length;h<k;){var n=h++;b[n]=a[n]}g(b,a,c,d,e|0,0);g(b,a,c,d,e|0,1);g(b,a,c,d,e|0,2);g(b,a,c,d,e|0,3);q(a,b,c,d,f|0,0);q(a,b,c,d,f|0,1);q(a,b,c,d,f|0,2);q(a,b,c,d,f|0,3)},A=a.get_data(),r=b.get_data(),J=d.width|0;d=d.height|0;var u=f|0,t=c.x|0,v=c.y|0;f=2*h-1;h=.125*Math.pow(2,h);e=m((e|0)*h,f);m=m(u*h,f);t=4*(J*v+t)|0;p(r,A,J,d,(e[0]-1)/2,(m[0]-1)/2);v=1;h=0;for(f=f/2|0;h<f;)h++,p(A,r,J,d,(e[v]-1)/2,(m[v]-
1)/2),p(r,A,J,d,(e[v+1]-1)/2,(m[v+1]-1)/2),v+=2;if(0>=t)for(r=0;r<d;){for(p=0;p<J;)e=b.get_rect(),f=4*(r*(a.get_rect().width|0)+p),m=p-(c.x|0),t=r-(c.y|0),e=0>m||0>t||m>=e.width||t>=e.height?-1:4*(t*(e.width|0)+m),0>e?A[f]=A[f+1]=A[f+2]=A[f+3]=0:(A[f]=A[e],A[f+1]=A[e+1],A[f+2]=A[e+2],e=tc.toFloat(A[e+3])*k|0,A[f+3]=0>e?0:255<e?255:e),++p;++r}else for(r=d-1;0<=r;){for(p=J-1;0<=p;)f=b.get_rect(),d=4*(r*(a.get_rect().width|0)+p),e=p-(c.x|0),m=r-(c.y|0),f=0>e||0>m||e>=f.width||m>=f.height?-1:4*(m*(f.width|
0)+e),0>f?A[d]=A[d+1]=A[d+2]=A[d+3]=0:(A[d]=A[f],A[d+1]=A[f+1],A[d+2]=A[f+2],f=tc.toFloat(A[f+3])*k|0,A[d+3]=0>f?0:255<f?255:f),--p;--r}a.dirty=!0;a.version++;b.dirty=!0;b.version++;n&&a.set_premultiplied(!0);l&&b.set_premultiplied(!0);return A==a.get_data()?a:b};xa.getColorBoundsRect=function(a,b,d,c,e){var f=a.width+1,h=0,k=a.height+1,n=0;switch(e){case 1:d=(d>>>16&255)<<24|(d>>>8&255)<<16|(d&255)<<8|d>>>24&255;b=(b>>>16&255)<<24|(b>>>8&255)<<16|(b&255)<<8|b>>>24&255;break;case 2:d=(d>>>8&255)<<
24|(d>>>16&255)<<16|(d>>>24&255)<<8|d&255,b=(b>>>8&255)<<24|(b>>>16&255)<<16|(b>>>24&255)<<8|b&255}a.get_transparent()||(d=(d>>>24&255)<<24|(d>>>16&255)<<16|(d>>>8&255)<<8|255,b=(b>>>24&255)<<24|(b>>>16&255)<<16|(b>>>8&255)<<8|255);for(var l=0,m=a.width;l<m;){var g=l++;e=!1;for(var q=0,p=a.height;q<p;)if(e=q++,e=a.getPixel32(g,e,0),e=c?(e&b)==d:(e&b)!=d){g<f&&(f=g);break}if(e)break}l=0;for(m=a.width;l<m;){e=l++;g=a.width-1-e;e=!1;q=0;for(p=a.height;q<p;)if(e=q++,e=a.getPixel32(g,e,0),e=c?(e&b)==d:
(e&b)!=d){g>h&&(h=g);break}if(e)break}l=0;for(m=a.height;l<m;){g=l++;e=!1;q=0;for(p=a.width;q<p;)if(e=q++,e=a.getPixel32(e,g,0),e=c?(e&b)==d:(e&b)!=d){g<k&&(k=g);break}if(e)break}l=0;for(m=a.height;l<m;){e=l++;g=a.height-1-e;e=!1;q=0;for(p=a.width;q<p;)if(e=q++,e=a.getPixel32(e,g,0),e=c?(e&b)==d:(e&b)!=d){g>n&&(n=g);break}if(e)break}c=h-f;d=n-k;0<c&&++c;0<d&&++d;0>c&&(c=0);0>d&&(d=0);f==h&&(c=1);k==n&&(d=1);f>a.width&&(f=0);k>a.height&&(k=0);return new Qb(f,k,c,d)};xa.getPixel32=function(a,b,d,c){var e=
a.buffer.data;b=4*(d+a.offsetY)*a.buffer.width+4*(b+a.offsetX);d=a.buffer.premultiplied;switch(a.buffer.format){case 0:var f=(e[b]&255)<<24|(e[b+1]&255)<<16|(e[b+2]&255)<<8|e[b+3]&255;break;case 1:f=(e[b+1]&255)<<24|(e[b+2]&255)<<16|(e[b+3]&255)<<8|e[b]&255;break;case 2:f=(e[b+2]&255)<<24|(e[b+1]&255)<<16|(e[b]&255)<<8|e[b+3]&255}d&&0!=(f&255)&&255!=(f&255)&&(y.unmult=255/(f&255),f=(y.__clamp[Math.round((f>>>24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((f>>>16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((f>>>
8&255)*y.unmult)]&255)<<8|f&255);switch(c){case 1:return(f&255)<<24|(f>>>24&255)<<16|(f>>>16&255)<<8|f>>>8&255;case 2:return(f>>>8&255)<<24|(f>>>16&255)<<16|(f>>>24&255)<<8|f&255;default:return f}};xa.getPixels=function(a,b,d){if(null==a.buffer.data)return null;var c=new H(new ArrayBuffer(4*(b.width*b.height|0))),e=a.buffer.data,f=a.buffer.format,h=a.buffer.premultiplied;a=new Lc(a,b);for(var k,n,l=b=0,m=a.height;l<m;){k=l++;k=a.byteOffset+a.stride*k;for(var g=0,q=a.width;g<q;){g++;switch(f){case 0:n=
(e[k]&255)<<24|(e[k+1]&255)<<16|(e[k+2]&255)<<8|e[k+3]&255;break;case 1:n=(e[k+1]&255)<<24|(e[k+2]&255)<<16|(e[k+3]&255)<<8|e[k]&255;break;case 2:n=(e[k+2]&255)<<24|(e[k+1]&255)<<16|(e[k]&255)<<8|e[k+3]&255}h&&0!=(n&255)&&255!=(n&255)&&(y.unmult=255/(n&255),n=(y.__clamp[Math.round((n>>>24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((n>>>16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((n>>>8&255)*y.unmult)]&255)<<8|n&255);switch(d){case 1:n=(n&255)<<24|(n>>>24&255)<<16|(n>>>16&255)<<8|n>>>8&255;
break;case 2:n=(n>>>8&255)<<24|(n>>>16&255)<<16|(n>>>24&255)<<8|n&255}c.b[b++]=n>>>24&255;c.b[b++]=n>>>16&255;c.b[b++]=n>>>8&255;c.b[b++]=n&255;k+=4}}return c};xa.multiplyAlpha=function(a){var b=a.buffer.data;if(null!=b&&a.buffer.transparent){for(var d=a.buffer.format,c,e=0,f=b.length/4|0;e<f;){var h=e++,k=4*h;switch(d){case 0:c=(b[k]&255)<<24|(b[k+1]&255)<<16|(b[k+2]&255)<<8|b[k+3]&255;break;case 1:c=(b[k+1]&255)<<24|(b[k+2]&255)<<16|(b[k+3]&255)<<8|b[k]&255;break;case 2:c=(b[k+2]&255)<<24|(b[k+
1]&255)<<16|(b[k]&255)<<8|b[k+3]&255}h*=4;0==(c&255)?0!=c&&(c=0):255!=(c&255)&&(y.a16=y.__alpha16[c&255],c=((c>>>24&255)*y.a16>>16&255)<<24|((c>>>16&255)*y.a16>>16&255)<<16|((c>>>8&255)*y.a16>>16&255)<<8|c&255);switch(d){case 0:b[h]=c>>>24&255;b[h+1]=c>>>16&255;b[h+2]=c>>>8&255;b[h+3]=c&255;break;case 1:b[h]=c&255;b[h+1]=c>>>24&255;b[h+2]=c>>>16&255;b[h+3]=c>>>8&255;break;case 2:b[h]=c>>>8&255,b[h+1]=c>>>16&255,b[h+2]=c>>>24&255,b[h+3]=c&255}}a.buffer.premultiplied=!0;a.dirty=!0;a.version++}};xa.setFormat=
function(a,b){var d=a.buffer.data;if(null!=d){var c=d.length/4|0;switch(a.get_format()){case 0:var e=0;var f=1;var h=2;var k=3;break;case 1:e=1;f=2;h=3;k=0;break;case 2:e=2,f=1,h=0,k=3}switch(b){case 0:var n=0;var l=1;var m=2;var g=3;break;case 1:n=1;l=2;m=3;g=0;break;case 2:n=2,l=1,m=0,g=3}for(var q=0;q<c;){var p=4*q++;var r=d[p+e];var t=d[p+f];var J=d[p+h];var u=d[p+k];d[p+n]=r;d[p+l]=t;d[p+m]=J;d[p+g]=u}a.buffer.format=b;a.dirty=!0;a.version++}};xa.setPixel32=function(a,b,d,c,e){switch(e){case 1:c=
(c>>>16&255)<<24|(c>>>8&255)<<16|(c&255)<<8|c>>>24&255;break;case 2:c=(c>>>8&255)<<24|(c>>>16&255)<<16|(c>>>24&255)<<8|c&255}a.get_transparent()||(c=(c>>>24&255)<<24|(c>>>16&255)<<16|(c>>>8&255)<<8|255);e=a.buffer.data;b=4*(d+a.offsetY)*a.buffer.width+4*(b+a.offsetX);a.buffer.premultiplied&&(0==(c&255)?0!=c&&(c=0):255!=(c&255)&&(y.a16=y.__alpha16[c&255],c=((c>>>24&255)*y.a16>>16&255)<<24|((c>>>16&255)*y.a16>>16&255)<<16|((c>>>8&255)*y.a16>>16&255)<<8|c&255));switch(a.buffer.format){case 0:e[b]=c>>>
24&255;e[b+1]=c>>>16&255;e[b+2]=c>>>8&255;e[b+3]=c&255;break;case 1:e[b]=c&255;e[b+1]=c>>>24&255;e[b+2]=c>>>16&255;e[b+3]=c>>>8&255;break;case 2:e[b]=c>>>8&255,e[b+1]=c>>>16&255,e[b+2]=c>>>24&255,e[b+3]=c&255}a.dirty=!0;a.version++};xa.setPixels=function(a,b,d,c,e){if(null!=a.buffer.data){var f=a.buffer.data,h=a.buffer.format,k=a.buffer.premultiplied;b=new Lc(a,b);var n=a.get_transparent(),l=d.bytes;d=d.offset;e=e!=Hf.BIG_ENDIAN;for(var m=0,g=b.height;m<g;){var q=m++;q=b.byteOffset+b.stride*q;for(var p=
0,r=b.width;p<r;){var t=p++;var J=e?l.getInt32(d):l.b[d+3]|l.b[d+2]<<8|l.b[d+1]<<16|l.b[d]<<24;d+=4;switch(c){case 1:J=(J>>>16&255)<<24|(J>>>8&255)<<16|(J&255)<<8|J>>>24&255;break;case 2:J=(J>>>8&255)<<24|(J>>>16&255)<<16|(J>>>24&255)<<8|J&255}n||(J=(J>>>24&255)<<24|(J>>>16&255)<<16|(J>>>8&255)<<8|255);t=q+4*t;k&&(0==(J&255)?0!=J&&(J=0):255!=(J&255)&&(y.a16=y.__alpha16[J&255],J=((J>>>24&255)*y.a16>>16&255)<<24|((J>>>16&255)*y.a16>>16&255)<<16|((J>>>8&255)*y.a16>>16&255)<<8|J&255));switch(h){case 0:f[t]=
J>>>24&255;f[t+1]=J>>>16&255;f[t+2]=J>>>8&255;f[t+3]=J&255;break;case 1:f[t]=J&255;f[t+1]=J>>>24&255;f[t+2]=J>>>16&255;f[t+3]=J>>>8&255;break;case 2:f[t]=J>>>8&255,f[t+1]=J>>>16&255,f[t+2]=J>>>24&255,f[t+3]=J&255}}}a.dirty=!0;a.version++}};xa.unmultiplyAlpha=function(a){var b=a.buffer.data;if(null!=b){for(var d=a.buffer.format,c,e=0,f=b.length/4|0;e<f;){var h=e++,k=4*h;switch(d){case 0:c=(b[k]&255)<<24|(b[k+1]&255)<<16|(b[k+2]&255)<<8|b[k+3]&255;break;case 1:c=(b[k+1]&255)<<24|(b[k+2]&255)<<16|(b[k+
3]&255)<<8|b[k]&255;break;case 2:c=(b[k+2]&255)<<24|(b[k+1]&255)<<16|(b[k]&255)<<8|b[k+3]&255}0!=(c&255)&&255!=(c&255)&&(y.unmult=255/(c&255),c=(y.__clamp[Math.round((c>>>24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((c>>>16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((c>>>8&255)*y.unmult)]&255)<<8|c&255);h*=4;switch(d){case 0:b[h]=c>>>24&255;b[h+1]=c>>>16&255;b[h+2]=c>>>8&255;b[h+3]=c&255;break;case 1:b[h]=c&255;b[h+1]=c>>>24&255;b[h+2]=c>>>16&255;b[h+3]=c>>>8&255;break;case 2:b[h]=c>>>8&
255,b[h+1]=c>>>16&255,b[h+2]=c>>>24&255,b[h+3]=c&255}}a.buffer.premultiplied=!1;a.dirty=!0;a.version++}};var Lc=function(a,b){this.image=a;null==b?this.rect=a.get_rect():(0>b.x&&(b.x=0),0>b.y&&(b.y=0),b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),0>b.width&&(b.width=0),0>b.height&&(b.height=0),this.rect=b);this.stride=a.buffer.get_stride();this.__update()};m["lime._internal.graphics._ImageDataUtil.ImageDataView"]=Lc;Lc.__name__="lime._internal.graphics._ImageDataUtil.ImageDataView";
Lc.prototype={x:null,y:null,height:null,width:null,byteOffset:null,image:null,rect:null,stride:null,tempRect:null,clip:function(a,b,d,c){null==this.tempRect&&(this.tempRect=new Qb);this.tempRect.setTo(a,b,d,c);this.rect.intersection(this.tempRect,this.rect);this.__update()},offset:function(a,b){0>a?(this.rect.x+=a,0>this.rect.x&&(this.rect.x=0)):(this.rect.x+=a,this.rect.width-=a);0>b?(this.rect.y+=b,0>this.rect.y&&(this.rect.y=0)):(this.rect.y+=b,this.rect.height-=b);this.__update()},__update:function(){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.byteOffset=this.stride*(this.y+this.image.offsetY)+4*(this.x+this.image.offsetX)},__class__:Lc};var Ah=function(){};m["lime._internal.unifill.Exception"]=Ah;Ah.__name__="lime._internal.unifill.Exception";Ah.prototype={__class__:Ah};var ne=function(a){this.index=a};m["lime._internal.unifill.InvalidCodeUnitSequence"]=ne;ne.__name__="lime._internal.unifill.InvalidCodeUnitSequence";
ne.__super__=Ah;ne.prototype=v(Ah.prototype,{index:null,toString:function(){return"InvalidCodeUnitSequence(index: "+this.index+")"},__class__:ne});var mk=function(){};m["lime._internal.unifill.Unifill"]=mk;mk.__name__="lime._internal.unifill.Unifill";mk.uCompare=function(a,b){for(var d,c=0,e=a.length,f,h=0,k=b.length;c<e&&h<k;){d=c;f=a.charCodeAt(c);c+=55296<=f&&56319>=f?2:1;d=oe.codePointAt(a,d);f=h;var n=b.charCodeAt(h);h+=55296<=n&&56319>=n?2:1;f=oe.codePointAt(b,f);if(d<f)return-1;if(d>f)return 1}return h<
k?-1:c<e?1:0};var oe={};m["lime._internal.unifill._Utf16.Utf16_Impl_"]=oe;oe.__name__="lime._internal.unifill._Utf16.Utf16_Impl_";oe.codePointAt=function(a,b){return nk.decode_code_point(a.length,function(b){return a.charCodeAt(b)},b)};oe.codePointCount=function(a,b,d){for(var c=0;b<d;){var e=a.charCodeAt(b);b+=55296<=e&&56319>=e?2:1;++c}return c};var nk=function(){};m["lime._internal.unifill._Utf16.Utf16Impl"]=nk;nk.__name__="lime._internal.unifill._Utf16.Utf16Impl";nk.decode_code_point=function(a,
b,d){if(0>d||a<=d)throw new w(new ne(d));var c=b(d);if(55296<=c&&56319>=c){if(0>d+1||a<=d+1)throw new w(new ne(d));a=b(d+1);if(56320<=a&&57343>=a)return c-55232<<10|a&1023;throw new w(new ne(d));}if(56320<=c&&57343>=c)throw new w(new ne(d));return c};var db=function(a,b){null==b&&(b=!1);if(null!=a)if(b)b=new Ab,b.future=this,Cb.queue({promise:b,work:a});else try{this.value=a(),this.isComplete=!0}catch(d){fa.lastException=d,this.error=d instanceof w?d.val:d,this.isError=!0}};m["lime.app.Future"]=db;
db.__name__="lime.app.Future";db.withValue=function(a){var b=new db;b.isComplete=!0;b.value=a;return b};db.prototype={error:null,isComplete:null,isError:null,value:null,__completeListeners:null,__errorListeners:null,__progressListeners:null,onComplete:function(a){null!=a&&(this.isComplete?a(this.value):this.isError||(null==this.__completeListeners&&(this.__completeListeners=[]),this.__completeListeners.push(a)));return this},onError:function(a){null!=a&&(this.isError?a(this.error):this.isComplete||
(null==this.__errorListeners&&(this.__errorListeners=[]),this.__errorListeners.push(a)));return this},onProgress:function(a){null!=a&&(null==this.__progressListeners&&(this.__progressListeners=[]),this.__progressListeners.push(a));return this},then:function(a){if(this.isComplete)return a(this.value);if(this.isError){var b=new db;b.isError=!0;b.error=this.error;return b}var d=new Ab;this.onError(u(d,d.error));this.onProgress(u(d,d.progress));this.onComplete(function(b){b=a(b);b.onError(u(d,d.error));
b.onComplete(u(d,d.complete))});return d.future},__class__:db};var Cb=function(){};m["lime.app._Future.FutureWork"]=Cb;Cb.__name__="lime.app._Future.FutureWork";Cb.queue=function(a){null==Cb.threadPool&&(Cb.threadPool=new bj,Cb.threadPool.doWork.add(Cb.threadPool_doWork),Cb.threadPool.onComplete.add(Cb.threadPool_onComplete),Cb.threadPool.onError.add(Cb.threadPool_onError));Cb.threadPool.queue(a)};Cb.threadPool_doWork=function(a){try{var b=a.work();Cb.threadPool.sendComplete({promise:a.promise,result:b})}catch(d){fa.lastException=
d,Cb.threadPool.sendError({promise:a.promise,error:d instanceof w?d.val:d})}};Cb.threadPool_onComplete=function(a){a.promise.complete(a.result)};Cb.threadPool_onError=function(a){a.promise.error(a.error)};var Ab=function(){this.future=new db};m["lime.app.Promise"]=Ab;Ab.__name__="lime.app.Promise";Ab.prototype={future:null,complete:function(a){if(!this.future.isError&&(this.future.isComplete=!0,this.future.value=a,null!=this.future.__completeListeners)){for(var b=0,d=this.future.__completeListeners;b<
d.length;){var c=d[b];++b;c(a)}this.future.__completeListeners=null}return this},completeWith:function(a){a.onComplete(u(this,this.complete));a.onError(u(this,this.error));a.onProgress(u(this,this.progress));return this},error:function(a){if(!this.future.isComplete&&(this.future.isError=!0,this.future.error=a,null!=this.future.__errorListeners)){for(var b=0,d=this.future.__errorListeners;b<d.length;){var c=d[b];++b;c(a)}this.future.__errorListeners=null}return this},progress:function(a,b){if(!this.future.isError&&
!this.future.isComplete&&null!=this.future.__progressListeners)for(var d=0,c=this.future.__progressListeners;d<c.length;){var e=c[d];++d;e(a,b)}return this},__class__:Ab};var cj=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_Float_Float_Float_Void"]=cj;cj.__name__="lime.app._Event_Float_Float_Float_Void";cj.prototype={canceled:null,__repeat:null,__priorities:null,remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],
a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a,b,d){this.canceled=!1;for(var c=this.__listeners,e=this.__repeat,f=0;f<c.length&&(c[f](a,b,d),e[f]?++f:this.remove(c[f]),!this.canceled););},__class__:cj};var dj=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_Float_Float_Int_Void"]=dj;dj.__name__="lime.app._Event_Float_Float_Int_Void";dj.prototype={canceled:null,
__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,
1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a,b,d){this.canceled=!1;for(var c=this.__listeners,e=this.__repeat,f=0;f<c.length&&(c[f](a,b,d),e[f]?++f:this.remove(c[f]),!this.canceled););},__class__:dj};var Mf=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_Float_Float_Void"]=Mf;Mf.__name__="lime.app._Event_Float_Float_Void";Mf.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,
b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a,
b){this.canceled=!1;for(var d=this.__listeners,c=this.__repeat,e=0;e<d.length&&(d[e](a,b),c[e]?++e:this.remove(d[e]),!this.canceled););},__class__:Mf};var ej=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_Float_Float_lime_ui_MouseButton_Void"]=ej;ej.__name__="lime.app._Event_Float_Float_lime_ui_MouseButton_Void";ej.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<
e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a,b,d){this.canceled=!1;for(var c=this.__listeners,e=this.__repeat,
f=0;f<c.length&&(c[f](a,b,d),e[f]?++f:this.remove(c[f]),!this.canceled););},__class__:ej};var fj=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_Float_Float_lime_ui_MouseWheelMode_Void"]=fj;fj.__name__="lime.app._Event_Float_Float_lime_ui_MouseWheelMode_Void";fj.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,
0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a,b,d){this.canceled=!1;for(var c=this.__listeners,e=this.__repeat,f=0;f<c.length&&(c[f](a,b,d),e[f]?++f:this.remove(c[f]),!this.canceled););
},__class__:fj};var gj=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_Int_Float_Float_Void"]=gj;gj.__name__="lime.app._Event_Int_Float_Float_Void";gj.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);
this.__priorities.push(d);this.__repeat.push(!b)},__listeners:null,__class__:gj};var hj=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_Int_Float_Void"]=hj;hj.__name__="lime.app._Event_Int_Float_Void";hj.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,
0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var d=this.__listeners,c=this.__repeat,e=0;e<d.length&&(d[e](a,b),c[e]?++e:this.remove(d[e]),!this.canceled););},__class__:hj};var Bh=
function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_Int_Int_Void"]=Bh;Bh.__name__="lime.app._Event_Int_Int_Void";Bh.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);
this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var d=this.__listeners,c=this.__repeat,e=0;e<d.length&&(d[e](a,b),c[e]?++e:this.remove(d[e]),!this.canceled););},__class__:Bh};var Qd=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_Int_Void"]=
Qd;Qd.__name__="lime.app._Event_Int_Void";Qd.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],
a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,d=this.__repeat,c=0;c<b.length&&(b[c](a),d[c]?++c:this.remove(b[c]),!this.canceled););},__class__:Qd};var ij=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_Int_lime_ui_JoystickHatPosition_Void"]=ij;ij.__name__="lime.app._Event_Int_lime_ui_JoystickHatPosition_Void";ij.prototype=
{canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},__listeners:null,__class__:ij};var jj=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_String_Int_Int_Void"]=
jj;jj.__name__="lime.app._Event_String_Int_Int_Void";jj.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},__listeners:null,__class__:jj};var Ch=function(){this.canceled=!1;this.__listeners=
[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_String_Void"]=Ch;Ch.__name__="lime.app._Event_String_Void";Ch.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},cancel:function(){this.canceled=
!0},has:function(a){for(var b=0,d=this.__listeners;b<d.length;){var c=d[b];++b;if(V.compareMethods(c,a))return!0}return!1},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,d=this.__repeat,c=0;c<b.length&&(b[c](a),d[c]?++c:this.remove(b[c]),!this.canceled););},__class__:Ch};var rb=
function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_Void_Void"]=rb;rb.__name__="lime.app._Event_Void_Void";rb.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);
this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(){this.canceled=!1;for(var a=this.__listeners,b=this.__repeat,d=0;d<a.length&&(a[d](),b[d]?++d:this.remove(a[d]),!this.canceled););},__class__:rb};var Je=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_haxe_Function_Void"]=
Je;Je.__name__="lime.app._Event_haxe_Function_Void";Je.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],
a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,d=this.__repeat,c=0;c<b.length&&(b[c](a),d[c]?++c:this.remove(b[c]),!this.canceled););},__class__:Je};var Dh=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_lime_graphics_RenderContext_Void"]=Dh;Dh.__name__="lime.app._Event_lime_graphics_RenderContext_Void";Dh.prototype=
{canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,
1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,d=this.__repeat,c=0;c<b.length&&(b[c](a),d[c]?++c:this.remove(b[c]),!this.canceled););},__class__:Dh};var kj=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_lime_ui_GamepadAxis_Float_Void"]=kj;kj.__name__="lime.app._Event_lime_ui_GamepadAxis_Float_Void";kj.prototype={canceled:null,__repeat:null,__priorities:null,
add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,
dispatch:function(a,b){this.canceled=!1;for(var d=this.__listeners,c=this.__repeat,e=0;e<d.length&&(d[e](a,b),c[e]?++e:this.remove(d[e]),!this.canceled););},__class__:kj};var Eh=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_lime_ui_GamepadButton_Void"]=Eh;Eh.__name__="lime.app._Event_lime_ui_GamepadButton_Void";Eh.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<
e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,d=this.__repeat,
c=0;c<b.length&&(b[c](a),d[c]?++c:this.remove(b[c]),!this.canceled););},__class__:Eh};var lj=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_lime_ui_Gamepad_Void"]=lj;lj.__name__="lime.app._Event_lime_ui_Gamepad_Void";lj.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,
0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,d=this.__repeat,c=0;c<b.length&&(b[c](a),d[c]?++c:this.remove(b[c]),!this.canceled););},__class__:lj};var mj=function(){this.canceled=
!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_lime_ui_Joystick_Void"]=mj;mj.__name__="lime.app._Event_lime_ui_Joystick_Void";mj.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);
this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,d=this.__repeat,c=0;c<b.length&&(b[c](a),d[c]?++c:this.remove(b[c]),!this.canceled););},__class__:mj};var Fh=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_lime_ui_KeyCode_lime_ui_KeyModifier_Void"]=
Fh;Fh.__name__="lime.app._Event_lime_ui_KeyCode_lime_ui_KeyModifier_Void";Fh.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},cancel:function(){this.canceled=!0},remove:function(a){for(var b=
this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a,b){this.canceled=!1;for(var d=this.__listeners,c=this.__repeat,e=0;e<d.length&&(d[e](a,b),c[e]?++e:this.remove(d[e]),!this.canceled););},__class__:Fh};var Ke=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_lime_ui_Touch_Void"]=Ke;Ke.__name__="lime.app._Event_lime_ui_Touch_Void";
Ke.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,
1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a){this.canceled=!1;for(var b=this.__listeners,d=this.__repeat,c=0;c<b.length&&(b[c](a),d[c]?++c:this.remove(b[c]),!this.canceled););},__class__:Ke};var gi=function(){this.canceled=!1;this.__listeners=[];this.__priorities=[];this.__repeat=[]};m["lime.app._Event_lime_ui_Window_Void"]=gi;gi.__name__="lime.app._Event_lime_ui_Window_Void";gi.prototype={canceled:null,__repeat:null,__priorities:null,add:function(a,b,d){null==d&&(d=0);null==
b&&(b=!1);for(var c=0,e=this.__priorities.length;c<e;){var f=c++;if(d>this.__priorities[f]){this.__listeners.splice(f,0,a);this.__priorities.splice(f,0,d);this.__repeat.splice(f,0,!b);return}}this.__listeners.push(a);this.__priorities.push(d);this.__repeat.push(!b)},remove:function(a){for(var b=this.__listeners.length;0<=--b;)V.compareMethods(this.__listeners[b],a)&&(this.__listeners.splice(b,1),this.__priorities.splice(b,1),this.__repeat.splice(b,1))},__listeners:null,dispatch:function(a){this.canceled=
!1;for(var b=this.__listeners,d=this.__repeat,c=0;c<b.length&&(b[c](a),d[c]?++c:this.remove(b[c]),!this.canceled););},__class__:gi};var pa=function(a,b,d,c,e,f,h){null==e&&(e=-1);null==c&&(c=-1);null==d&&(d=0);null==b&&(b=0);this.offsetX=b;this.offsetY=d;this.width=c;this.height=e;this.version=0;null==h&&(h=lc.CANVAS);this.type=h;if(null==a){if(0<c&&0<e)switch(this.type._hx_index){case 0:this.buffer=new Ac(null,c,e);N.createCanvas(this,c,e);null!=f&&0!=f&&this.fillRect(new Qb(0,0,c,e),f);break;case 1:a=
c*e*4,a=null!=a?new Uint8Array(a):null,this.buffer=new Ac(a,c,e),null!=f&&0!=f&&this.fillRect(new Qb(0,0,c,e),f)}}else this.__fromImageBuffer(a)};m["lime.graphics.Image"]=pa;pa.__name__="lime.graphics.Image";pa.fromBitmapData=function(a){return null==a?null:a.image};pa.fromCanvas=function(a){if(null==a)return null;var b=new Ac(null,a.width,a.height);b.set_src(a);a=new pa(b);a.type=lc.CANVAS;return a};pa.fromFile=function(a){if(null==a)return null;var b=new pa;b.__fromFile(a);return b};pa.loadFromBase64=
function(a,b){return null==a||null==b?db.withValue(null):aa.loadImage("data:"+b+";base64,"+a)};pa.loadFromBytes=function(a){if(null==a)return db.withValue(null);if(pa.__isPNG(a))var b="image/png";else if(pa.__isJPG(a))b="image/jpeg";else if(pa.__isGIF(a))b="image/gif";else if(pa.__isWebP(a))b="image/webp";else return db.withValue(null);return pa.loadFromBase64(pa.__base64Encode(a),b)};pa.loadFromFile=function(a){return null==a?db.withValue(null):aa.loadImage(a)};pa.__base64Encode=function(a){switch(a.length%
3){case 1:var b="==";break;case 2:b="=";break;default:b=""}null==pa.__base64Encoder&&(pa.__base64Encoder=new je(H.ofString(pa.__base64Chars)));return pa.__base64Encoder.encodeBytes(a).toString()+b};pa.__isGIF=function(a){if(null==a||6>a.length)return!1;a=a.getString(0,6);return"GIF87a"!=a?"GIF89a"==a:!0};pa.__isJPG=function(a){return null==a||4>a.length?!1:255==a.b[0]&&216==a.b[1]&&255==a.b[a.length-2]?217==a.b[a.length-1]:!1};pa.__isPNG=function(a){return null==a||8>a.length?!1:137==a.b[0]&&80==
a.b[1]&&78==a.b[2]&&71==a.b[3]&&13==a.b[4]&&10==a.b[5]&&26==a.b[6]?10==a.b[7]:!1};pa.__isWebP=function(a){return null==a||16>a.length?!1:"RIFF"==a.getString(0,4)?"WEBP"==a.getString(8,4):!1};pa.prototype={buffer:null,dirty:null,height:null,offsetX:null,offsetY:null,type:null,version:null,width:null,clone:function(){if(null!=this.buffer){this.type==lc.CANVAS?N.convertToCanvas(this):N.convertToData(this);var a=new pa(this.buffer.clone(),this.offsetX,this.offsetY,this.width,this.height,null,this.type);
a.version=this.version;return a}return new pa(null,this.offsetX,this.offsetY,this.width,this.height,null,this.type)},colorTransform:function(a,b){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(this.type._hx_index){case 0:N.colorTransform(this,a,b);break;case 1:N.convertToData(this);xa.colorTransform(this,a,b);break;case 2:a.offset(this.offsetX,this.offsetY),this.buffer.__srcBitmapData.colorTransform(a.__toFlashRectangle(),Za.__toFlashColorTransform(b))}},copyChannel:function(a,b,d,c,e){b=
this.__clipRect(b);if(null!=this.buffer&&null!=b&&!(e==Lf.ALPHA&&!this.get_transparent()||0>=b.width||0>=b.height))switch(b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),this.type._hx_index){case 0:N.copyChannel(this,a,b,d,c,e);break;case 1:N.convertToData(this);N.convertToData(a);xa.copyChannel(this,a,b,d,c,e);break;case 2:switch(c._hx_index){case 0:var f=1;break;case 1:f=2;break;case 2:f=4;break;case 3:f=8}switch(e._hx_index){case 0:var h=1;break;case 1:h=
2;break;case 2:h=4;break;case 3:h=8}b.offset(a.offsetX,a.offsetY);d.offset(this.offsetX,this.offsetY);this.buffer.__srcBitmapData.copyChannel(a.buffer.get_src(),b.__toFlashRectangle(),d.__toFlashPoint(),f,h)}},copyPixels:function(a,b,d,c,e,f){null==f&&(f=!1);if(null!=this.buffer&&null!=a&&!(0>=b.width||0>=b.height||0>=this.width||0>=this.height))switch(b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),0>b.x&&(b.width+=b.x,b.x=0),0>b.y&&(b.height+=b.y,b.y=0),
d.x+b.width>this.width&&(b.width=this.width-d.x),d.y+b.height>this.height&&(b.height=this.height-d.y),0>d.x&&(b.width+=d.x,b.x-=d.x,d.x=0),0>d.y&&(b.height+=d.y,b.y-=d.y,d.y=0),a==this&&d.x<b.get_right()&&d.y<b.get_bottom()&&(a=this.clone()),this.type._hx_index){case 0:null!=c||a.type!=lc.CANVAS?(N.convertToData(this),N.convertToData(a),null!=c&&N.convertToData(c),xa.copyPixels(this,a,b,d,c,e,f)):(N.convertToCanvas(this),N.convertToCanvas(a),N.copyPixels(this,a,b,d,c,e,f));break;case 1:N.convertToData(this);
N.convertToData(a);null!=c&&N.convertToData(c);xa.copyPixels(this,a,b,d,c,e,f);break;case 2:b.offset(a.offsetX,a.offsetY),d.offset(this.offsetX,this.offsetY),null!=c&&null!=e&&e.offset(c.offsetX,c.offsetY),this.buffer.__srcBitmapData.copyPixels(a.buffer.__srcBitmapData,b.__toFlashRectangle(),d.__toFlashPoint(),null!=c?c.buffer.get_src():null,null!=e?e.__toFlashPoint():null,f)}},encode:function(a,b){null==b&&(b=90);if(null==a)return aj.encode(this);switch(a._hx_index){case 0:return hk.encode(this);
case 1:return jk.encode(this,b);case 2:return aj.encode(this)}},fillRect:function(a,b,d){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(this.type._hx_index){case 0:N.fillRect(this,a,b,d);break;case 1:N.convertToData(this);if(0==this.buffer.data.length)break;xa.fillRect(this,a,b,d);break;case 2:a.offset(this.offsetX,this.offsetY);if(null==d)b=(b&255)<<24|(b>>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255;else switch(d){case 1:break;case 2:b=(b&255)<<24|(b>>>8&255)<<16|(b>>>16&255)<<8|b>>>24&255;
break;default:b=(b&255)<<24|(b>>>24&255)<<16|(b>>>16&255)<<8|b>>>8&255}this.buffer.__srcBitmapData.fillRect(a.__toFlashRectangle(),b)}},getColorBoundsRect:function(a,b,d,c){null==d&&(d=!0);if(null==this.buffer)return null;switch(this.type._hx_index){case 0:return N.convertToData(this),xa.getColorBoundsRect(this,a,b,d,c);case 1:return xa.getColorBoundsRect(this,a,b,d,c);case 2:return a=this.buffer.__srcBitmapData.getColorBoundsRect(a,b,d),new Qb(a.x,a.y,a.width,a.height);default:return null}},getPixel32:function(a,
b,d){if(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height)return 0;switch(this.type._hx_index){case 0:return N.getPixel32(this,a,b,d);case 1:return N.convertToData(this),xa.getPixel32(this,a,b,d);case 2:a=this.buffer.__srcBitmapData.getPixel32(a+this.offsetX,b+this.offsetY);if(null==d)return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<8|a>>>24&255;switch(d){case 1:return a;case 2:return(a&255)<<24|(a>>>8&255)<<16|(a>>>16&255)<<8|a>>>24&255;default:return(a>>>16&255)<<24|(a>>>8&255)<<16|(a&255)<<
8|a>>>24&255}default:return 0}},getPixels:function(a,b){if(null==this.buffer)return null;switch(this.type._hx_index){case 0:return N.getPixels(this,a,b);case 1:return N.convertToData(this),xa.getPixels(this,a,b);case 2:return null;default:return null}},setPixel32:function(a,b,d,c){if(!(null==this.buffer||0>a||0>b||a>=this.width||b>=this.height))switch(this.type._hx_index){case 0:N.setPixel32(this,a,b,d,c);break;case 1:N.convertToData(this);xa.setPixel32(this,a,b,d,c);break;case 2:if(null==c)d=(d&
255)<<24|(d>>>24&255)<<16|(d>>>16&255)<<8|d>>>8&255;else switch(c){case 1:break;case 2:d=(d&255)<<24|(d>>>8&255)<<16|(d>>>16&255)<<8|d>>>24&255;break;default:d=(d&255)<<24|(d>>>24&255)<<16|(d>>>16&255)<<8|d>>>8&255}this.buffer.__srcBitmapData.setPixel32(a+this.offsetX,b+this.offsetY,d)}},setPixels:function(a,b,d,c){a=this.__clipRect(a);if(null!=this.buffer&&null!=a)switch(null==c&&(c=Hf.BIG_ENDIAN),this.type._hx_index){case 0:N.setPixels(this,a,b,d,c);break;case 1:N.convertToData(this),xa.setPixels(this,
a,b,d,c)}},__clipRect:function(a){return null==a||0>a.x&&(a.width-=-a.x,a.x=0,0>=a.x+a.width)||0>a.y&&(a.height-=-a.y,a.y=0,0>=a.y+a.height)||a.x+a.width>=this.width&&(a.width-=a.x+a.width-this.width,0>=a.width)||a.y+a.height>=this.height&&(a.height-=a.y+a.height-this.height,0>=a.height)?null:a},__fromBase64:function(a,b,d){var c=this,e=new Image;e.addEventListener("load",function(a){c.buffer=new Ac(null,e.width,e.height);c.buffer.__srcImage=e;c.offsetX=0;c.offsetY=0;c.width=c.buffer.width;c.height=
c.buffer.height;null!=d&&d(c)},!1);e.src="data:"+b+";base64,"+a},__fromBytes:function(a,b){if(pa.__isPNG(a))var d="image/png";else if(pa.__isJPG(a))d="image/jpeg";else if(pa.__isGIF(a))d="image/gif";else return;this.__fromBase64(pa.__base64Encode(a),d,b)},__fromFile:function(a,b,d){var c=this,e=new Image;aa.__isSameOrigin(a)||(e.crossOrigin="Anonymous");e.onload=function(a){c.buffer=new Ac(null,e.width,e.height);c.buffer.__srcImage=e;c.width=e.width;c.height=e.height;null!=b&&b(c)};e.onerror=function(a){null!=
d&&d()};e.src=a},__fromImageBuffer:function(a){this.buffer=a;null!=a&&(-1==this.width&&(this.width=a.width),-1==this.height&&(this.height=a.height))},get_data:function(){null==this.buffer.data&&0<this.buffer.width&&0<this.buffer.height&&N.convertToData(this);return this.buffer.data},get_format:function(){return this.buffer.format},set_format:function(a){this.buffer.format!=a&&1==this.type._hx_index&&xa.setFormat(this,a);return this.buffer.format=a},get_premultiplied:function(){return this.buffer.premultiplied},
set_premultiplied:function(a){if(a&&!this.buffer.premultiplied)switch(this.type._hx_index){case 0:case 1:N.convertToData(this),xa.multiplyAlpha(this)}else!a&&this.buffer.premultiplied&&1==this.type._hx_index&&(N.convertToData(this),xa.unmultiplyAlpha(this));return a},get_rect:function(){return new Qb(0,0,this.width,this.height)},get_src:function(){null!=this.buffer.__srcCanvas||null==this.buffer.data&&this.type!=lc.DATA||N.convertToCanvas(this);return this.buffer.get_src()},get_transparent:function(){return null==
this.buffer?!1:this.buffer.transparent},set_transparent:function(a){return null==this.buffer?!1:this.buffer.transparent=a},__class__:pa};var Ac=function(a,b,d,c,e){null==c&&(c=32);null==d&&(d=0);null==b&&(b=0);this.data=a;this.width=b;this.height=d;this.bitsPerPixel=c;this.format=null==e?0:e;this.premultiplied=!1;this.transparent=!0};m["lime.graphics.ImageBuffer"]=Ac;Ac.__name__="lime.graphics.ImageBuffer";Ac.prototype={bitsPerPixel:null,data:null,format:null,height:null,premultiplied:null,transparent:null,
width:null,__srcBitmapData:null,__srcCanvas:null,__srcContext:null,__srcImage:null,__srcImageData:null,clone:function(){var a=new Ac(this.data,this.width,this.height,this.bitsPerPixel);if(null!=this.data){var b=this.data.byteLength;b=null!=b?new Uint8Array(b):null;a.data=b;b=this.data;b=null!=b?new Uint8Array(b):null;a.data.set(b)}else null!=this.__srcImageData?(a.__srcCanvas=window.document.createElement("canvas"),a.__srcContext=a.__srcCanvas.getContext("2d"),a.__srcCanvas.width=this.__srcImageData.width,
a.__srcCanvas.height=this.__srcImageData.height,a.__srcImageData=a.__srcContext.createImageData(this.__srcImageData.width,this.__srcImageData.height),b=new Uint8ClampedArray(this.__srcImageData.data),a.__srcImageData.data.set(b)):null!=this.__srcCanvas?(a.__srcCanvas=window.document.createElement("canvas"),a.__srcContext=a.__srcCanvas.getContext("2d"),a.__srcCanvas.width=this.__srcCanvas.width,a.__srcCanvas.height=this.__srcCanvas.height,a.__srcContext.drawImage(this.__srcCanvas,0,0)):a.__srcImage=
this.__srcImage;a.bitsPerPixel=this.bitsPerPixel;a.format=this.format;a.premultiplied=this.premultiplied;a.transparent=this.transparent;return a},get_src:function(){return null!=this.__srcImage?this.__srcImage:this.__srcCanvas},set_src:function(a){a instanceof Image?this.__srcImage=a:a instanceof HTMLCanvasElement&&(this.__srcCanvas=a,this.__srcContext=this.__srcCanvas.getContext("2d"));return a},get_stride:function(){return 4*this.width},__class__:Ac};var Lf=sa["lime.graphics.ImageChannel"]={__ename__:"lime.graphics.ImageChannel",
__constructs__:["RED","GREEN","BLUE","ALPHA"],RED:{_hx_index:0,__enum__:"lime.graphics.ImageChannel",toString:r},GREEN:{_hx_index:1,__enum__:"lime.graphics.ImageChannel",toString:r},BLUE:{_hx_index:2,__enum__:"lime.graphics.ImageChannel",toString:r},ALPHA:{_hx_index:3,__enum__:"lime.graphics.ImageChannel",toString:r}},al=sa["lime.graphics.ImageFileFormat"]={__ename__:"lime.graphics.ImageFileFormat",__constructs__:["BMP","JPEG","PNG"],BMP:{_hx_index:0,__enum__:"lime.graphics.ImageFileFormat",toString:r},
JPEG:{_hx_index:1,__enum__:"lime.graphics.ImageFileFormat",toString:r},PNG:{_hx_index:2,__enum__:"lime.graphics.ImageFileFormat",toString:r}},lc=sa["lime.graphics.ImageType"]={__ename__:"lime.graphics.ImageType",__constructs__:["CANVAS","DATA","FLASH","CUSTOM"],CANVAS:{_hx_index:0,__enum__:"lime.graphics.ImageType",toString:r},DATA:{_hx_index:1,__enum__:"lime.graphics.ImageType",toString:r},FLASH:{_hx_index:2,__enum__:"lime.graphics.ImageType",toString:r},CUSTOM:{_hx_index:3,__enum__:"lime.graphics.ImageType",
toString:r}},Yi=function(){};m["lime.graphics.RenderContext"]=Yi;Yi.__name__="lime.graphics.RenderContext";Yi.prototype={attributes:null,canvas2D:null,dom:null,type:null,version:null,webgl:null,webgl2:null,window:null,__class__:Yi};var ok={};m["lime.graphics._WebGL2RenderContext.WebGL2RenderContext_Impl_"]=ok;ok.__name__="lime.graphics._WebGL2RenderContext.WebGL2RenderContext_Impl_";ok.fromRenderContext=function(a){return a.webgl2};var kb={};m["lime.graphics._WebGLRenderContext.WebGLRenderContext_Impl_"]=
kb;kb.__name__="lime.graphics._WebGLRenderContext.WebGLRenderContext_Impl_";kb.bufferData=function(a,b,d,c){a.bufferData(b,d,c)};kb.texImage2D=function(a,b,d,c,e,f,h,k,n,l){null!=k?a.texImage2D(b,d,c,e,f,h,k,n,l):a.texImage2D(b,d,c,e,f,h)};kb.uniformMatrix2fv=function(a,b,d,c){a.uniformMatrix2fv(b,d,c)};kb.uniformMatrix3fv=function(a,b,d,c){a.uniformMatrix3fv(b,d,c)};kb.uniformMatrix4fv=function(a,b,d,c){a.uniformMatrix4fv(b,d,c)};kb.fromWebGL2RenderContext=function(a){return a};var pk=function(a){};
m["lime.graphics.cairo.Cairo"]=pk;pk.__name__="lime.graphics.cairo.Cairo";pk.prototype={clip:function(){},identityMatrix:function(){},newPath:function(){},paint:function(){},rectangle:function(a,b,d,c){},restore:function(){},save:function(){},setOperator:function(a){return a},setSourceRGB:function(a,b,d){},set_matrix:function(a){return a},__class__:pk};var qk={};m["lime.graphics.cairo._CairoSurface.CairoSurface_Impl_"]=qk;qk.__name__="lime.graphics.cairo._CairoSurface.CairoSurface_Impl_";qk.flush=
function(a){};var me=function(){};m["lime.graphics.opengl.GL"]=me;me.__name__="lime.graphics.opengl.GL";var rk=function(){this.STACK_UNDERFLOW=1284;this.STACK_OVERFLOW=1283;this.CONTEXT_FLAG_DEBUG_BIT=2;this.DEBUG_OUTPUT=37600;this.DEBUG_SEVERITY_LOW=37192;this.DEBUG_SEVERITY_MEDIUM=37191;this.DEBUG_SEVERITY_HIGH=37190;this.DEBUG_LOGGED_MESSAGES=37189;this.MAX_DEBUG_LOGGED_MESSAGES=37188;this.MAX_DEBUG_MESSAGE_LENGTH=37187;this.MAX_LABEL_LENGTH=33512;this.SAMPLER=33510;this.QUERY=33507;this.PROGRAM=
33506;this.SHADER=33505;this.BUFFER=33504;this.DEBUG_GROUP_STACK_DEPTH=33389;this.MAX_DEBUG_GROUP_STACK_DEPTH=33388;this.DEBUG_SEVERITY_NOTIFICATION=33387;this.DEBUG_TYPE_POP_GROUP=33386;this.DEBUG_TYPE_PUSH_GROUP=33385;this.DEBUG_TYPE_MARKER=33384;this.DEBUG_TYPE_OTHER=33361;this.DEBUG_TYPE_PERFORMANCE=33360;this.DEBUG_TYPE_PORTABILITY=33359;this.DEBUG_TYPE_UNDEFINED_BEHAVIOR=33358;this.DEBUG_TYPE_DEPRECATED_BEHAVIOR=33357;this.DEBUG_TYPE_ERROR=33356;this.DEBUG_SOURCE_OTHER=33355;this.DEBUG_SOURCE_APPLICATION=
33354;this.DEBUG_SOURCE_THIRD_PARTY=33353;this.DEBUG_SOURCE_SHADER_COMPILER=33352;this.DEBUG_SOURCE_WINDOW_SYSTEM=33351;this.DEBUG_SOURCE_API=33350;this.DEBUG_CALLBACK_USER_PARAM=33349;this.DEBUG_CALLBACK_FUNCTION=33348;this.DEBUG_NEXT_LOGGED_MESSAGE_LENGTH=33347;this.DEBUG_OUTPUT_SYNCHRONOUS=33346};m["lime.graphics.opengl.ext.KHR_debug"]=rk;rk.__name__="lime.graphics.opengl.ext.KHR_debug";rk.prototype={DEBUG_OUTPUT_SYNCHRONOUS:null,DEBUG_NEXT_LOGGED_MESSAGE_LENGTH:null,DEBUG_CALLBACK_FUNCTION:null,
DEBUG_CALLBACK_USER_PARAM:null,DEBUG_SOURCE_API:null,DEBUG_SOURCE_WINDOW_SYSTEM:null,DEBUG_SOURCE_SHADER_COMPILER:null,DEBUG_SOURCE_THIRD_PARTY:null,DEBUG_SOURCE_APPLICATION:null,DEBUG_SOURCE_OTHER:null,DEBUG_TYPE_ERROR:null,DEBUG_TYPE_DEPRECATED_BEHAVIOR:null,DEBUG_TYPE_UNDEFINED_BEHAVIOR:null,DEBUG_TYPE_PORTABILITY:null,DEBUG_TYPE_PERFORMANCE:null,DEBUG_TYPE_OTHER:null,DEBUG_TYPE_MARKER:null,DEBUG_TYPE_PUSH_GROUP:null,DEBUG_TYPE_POP_GROUP:null,DEBUG_SEVERITY_NOTIFICATION:null,MAX_DEBUG_GROUP_STACK_DEPTH:null,
DEBUG_GROUP_STACK_DEPTH:null,BUFFER:null,SHADER:null,PROGRAM:null,QUERY:null,SAMPLER:null,MAX_LABEL_LENGTH:null,MAX_DEBUG_MESSAGE_LENGTH:null,MAX_DEBUG_LOGGED_MESSAGES:null,DEBUG_LOGGED_MESSAGES:null,DEBUG_SEVERITY_HIGH:null,DEBUG_SEVERITY_MEDIUM:null,DEBUG_SEVERITY_LOW:null,DEBUG_OUTPUT:null,CONTEXT_FLAG_DEBUG_BIT:null,STACK_OVERFLOW:null,STACK_UNDERFLOW:null,__class__:rk};var Za={};m["lime.math._ColorMatrix.ColorMatrix_Impl_"]=Za;Za.__name__="lime.math._ColorMatrix.ColorMatrix_Impl_";Za.getAlphaTable=
function(a){if(null==Za.__alphaTable){var b=new Uint8Array(256);Za.__alphaTable=b}Za.__alphaTable[0]=0;for(var d=1;256>d;){var c=d++;b=Math.floor(c*a[18]+255*a[19]);255<b&&(b=255);0>b&&(b=0);Za.__alphaTable[c]=b}return Za.__alphaTable};Za.getBlueTable=function(a){if(null==Za.__blueTable){var b=new Uint8Array(256);Za.__blueTable=b}for(var d=0;256>d;){var c=d++;b=Math.floor(c*a[12]+255*a[14]);255<b&&(b=255);0>b&&(b=0);Za.__blueTable[c]=b}return Za.__blueTable};Za.getGreenTable=function(a){if(null==
Za.__greenTable){var b=new Uint8Array(256);Za.__greenTable=b}for(var d=0;256>d;){var c=d++;b=Math.floor(c*a[6]+255*a[9]);255<b&&(b=255);0>b&&(b=0);Za.__greenTable[c]=b}return Za.__greenTable};Za.getRedTable=function(a){if(null==Za.__redTable){var b=new Uint8Array(256);Za.__redTable=b}for(var d=0;256>d;){var c=d++;b=Math.floor(c*a[0]+255*a[4]);255<b&&(b=255);0>b&&(b=0);Za.__redTable[c]=b}return Za.__redTable};Za.__toFlashColorTransform=function(a){return null};var sk=function(a,b,d,c,e,f){null==f&&
(f=0);null==e&&(e=0);null==c&&(c=1);null==d&&(d=0);null==b&&(b=0);null==a&&(a=1);this.a=a;this.b=b;this.c=d;this.d=c;this.tx=e;this.ty=f};m["lime.math.Matrix3"]=sk;sk.__name__="lime.math.Matrix3";sk.prototype={a:null,b:null,c:null,d:null,tx:null,ty:null,__class__:sk};var la={};m["lime.math._Matrix4.Matrix4_Impl_"]=la;la.__name__="lime.math._Matrix4.Matrix4_Impl_";la._new=function(a){if(null==a||16!=a.length)a=la.__identity,a=null!=a?new Float32Array(a):null;return a};la.append=function(a,b){var d=
a[0],c=a[4],e=a[8],f=a[12],h=a[1],k=a[5],n=a[9],l=a[13],m=a[2],g=a[6],q=a[10],p=a[14],r=a[3],t=a[7],J=a[11],u=a[15],v=la.get(b,0),Fd=la.get(b,4),w=la.get(b,8),ng=la.get(b,12),z=la.get(b,1),I=la.get(b,5),B=la.get(b,9),y=la.get(b,13),x=la.get(b,2),F=la.get(b,6),E=la.get(b,10),K=la.get(b,14),G=la.get(b,3),D=la.get(b,7),P=la.get(b,11);b=la.get(b,15);a[0]=d*v+h*Fd+m*w+r*ng;a[1]=d*z+h*I+m*B+r*y;a[2]=d*x+h*F+m*E+r*K;a[3]=d*G+h*D+m*P+r*b;a[4]=c*v+k*Fd+g*w+t*ng;a[5]=c*z+k*I+g*B+t*y;a[6]=c*x+k*F+g*E+t*K;a[7]=
c*G+k*D+g*P+t*b;a[8]=e*v+n*Fd+q*w+J*ng;a[9]=e*z+n*I+q*B+J*y;a[10]=e*x+n*F+q*E+J*K;a[11]=e*G+n*D+q*P+J*b;a[12]=f*v+l*Fd+p*w+u*ng;a[13]=f*z+l*I+p*B+u*y;a[14]=f*x+l*F+p*E+u*K;a[15]=f*G+l*D+p*P+u*b};la.createOrtho=function(a,b,d,c,e,f,h){var k=1/(d-b),n=1/(e-c),l=1/(h-f);a[0]=2*k;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=2*n;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[10]=-2*l;a[11]=0;a[12]=-(b+d)*k;a[13]=-(c+e)*n;a[14]=-(f+h)*l;a[15]=1};la.identity=function(a){a[0]=1;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=1;a[6]=0;a[7]=0;a[8]=0;
a[9]=0;a[10]=1;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};la.get=function(a,b){return a[b]};la.set=function(a,b,d){return a[b]=d};var y={};m["lime.math._RGBA.RGBA_Impl_"]=y;y.__name__="lime.math._RGBA.RGBA_Impl_";var Qb=function(a,b,d,c){null==c&&(c=0);null==d&&(d=0);null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.width=d;this.height=c};m["lime.math.Rectangle"]=Qb;Qb.__name__="lime.math.Rectangle";Qb.prototype={height:null,width:null,x:null,y:null,intersection:function(a,b){null==b&&(b=new Qb);
var d=this.x<a.x?a.x:this.x,c=this.get_right()>a.get_right()?a.get_right():this.get_right();if(c<=d)return b.setEmpty(),b;var e=this.y<a.y?a.y:this.y;a=this.get_bottom()>a.get_bottom()?a.get_bottom():this.get_bottom();if(a<=e)return b.setEmpty(),b;b.x=d;b.y=e;b.width=c-d;b.height=a-e;return b},offset:function(a,b){this.x+=a;this.y+=b},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(a,b,d,c){this.x=a;this.y=b;this.width=d;this.height=c},__toFlashRectangle:function(){return null},
get_bottom:function(){return this.y+this.height},get_right:function(){return this.x+this.width},__class__:Qb};var kd=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};m["lime.math.Vector2"]=kd;kd.__name__="lime.math.Vector2";kd.prototype={x:null,y:null,offset:function(a,b){this.x+=a;this.y+=b},__toFlashPoint:function(){return null},__class__:kd};var Wi=function(a,b,d,c){null==c&&(c=0);null==d&&(d=0);null==b&&(b=0);null==a&&(a=0);this.w=c;this.x=a;this.y=b;this.z=d};m["lime.math.Vector4"]=
Wi;Wi.__name__="lime.math.Vector4";Wi.prototype={w:null,x:null,y:null,z:null,__class__:Wi};var Qa=function(){};m["lime.media.AudioBuffer"]=Qa;Qa.__name__="lime.media.AudioBuffer";Qa.fromBytes=function(a){if(null==a)return null;var b=new Qa;b.set_src(new Howl({src:["data:"+Qa.__getCodec(a)+";base64,"+ke.encode(a)],html5:!0,preload:!1}));return b};Qa.fromFile=function(a){if(null==a)return null;var b=new Qa;b.__srcHowl=new Howl({src:[a],preload:!1});return b};Qa.fromFiles=function(a){var b=new Qa;b.__srcHowl=
new Howl({src:a,preload:!1});return b};Qa.loadFromFile=function(a){var b=new Ab,d=Qa.fromFile(a);null!=d?null!=d&&(d.__srcHowl.on("load",function(){b.complete(d)}),d.__srcHowl.on("loaderror",function(a,d){b.error(d)}),d.__srcHowl.load()):b.error(null);return b.future};Qa.loadFromFiles=function(a){var b=new Ab,d=Qa.fromFiles(a);null!=d?(d.__srcHowl.on("load",function(){b.complete(d)}),d.__srcHowl.on("loaderror",function(){b.error(null)}),d.__srcHowl.load()):b.error(null);return b.future};Qa.__getCodec=
function(a){switch(a.getString(0,4)){case "OggS":return"audio/ogg";case "RIFF":if("WAVE"==a.getString(8,4))return"audio/wav";var b=a.b[2],d=a.b[1];switch(a.b[0]){case 73:if(68==d&&51==b)return"audio/mp3";break;case 255:switch(d){case 250:case 251:return"audio/mp3"}}break;case "fLaC":return"audio/flac";default:switch(b=a.b[2],d=a.b[1],a.b[0]){case 73:if(68==d&&51==b)return"audio/mp3";break;case 255:switch(d){case 250:case 251:return"audio/mp3"}}}Ja.error("Unsupported sound format",{fileName:"lime/media/AudioBuffer.hx",
lineNumber:443,className:"lime.media.AudioBuffer",methodName:"__getCodec"});return null};Qa.prototype={__srcHowl:null,set_src:function(a){return this.__srcHowl=a},__class__:Qa};var oj=function(a){if("custom"!=a){if(null==a||"web"==a)try{window.AudioContext=window.AudioContext||window.webkitAudioContext,this.web=new window.AudioContext,this.type="web"}catch(b){fa.lastException=b}null==this.web&&"web"!=a&&(this.html5=new nj,this.type="html5")}else this.type="custom"};m["lime.media.AudioContext"]=oj;
oj.__name__="lime.media.AudioContext";oj.prototype={html5:null,openal:null,type:null,web:null,__class__:oj};var re=function(){};m["lime.media.AudioManager"]=re;re.__name__="lime.media.AudioManager";re.init=function(a){if(null==re.context){if(null==a&&(re.context=new oj,a=re.context,"openal"==a.type)){var b=a.openal,d=b.openDevice();d=b.createContext(d);b.makeContextCurrent(d);b.processContext(d)}re.context=a}};var tk=function(a,b,d,c){null==c&&(c=0);null==b&&(b=0);this.onComplete=new rb;this.buffer=
a;this.offset=b;this.__backend=new Xi(this);null!=d&&0!=d&&this.set_length(d);this.set_loops(c);null!=a&&this.init()};m["lime.media.AudioSource"]=tk;tk.__name__="lime.media.AudioSource";tk.prototype={onComplete:null,buffer:null,offset:null,__backend:null,dispose:function(){this.__backend.dispose()},init:function(){this.__backend.init()},play:function(){this.__backend.play()},stop:function(){this.__backend.stop()},get_currentTime:function(){return this.__backend.getCurrentTime()},set_currentTime:function(a){return this.__backend.setCurrentTime(a)},
get_gain:function(){return this.__backend.getGain()},set_gain:function(a){return this.__backend.setGain(a)},set_length:function(a){return this.__backend.setLength(a)},set_loops:function(a){return this.__backend.setLoops(a)},get_position:function(){return this.__backend.getPosition()},set_position:function(a){return this.__backend.setPosition(a)},__class__:tk};var nj=function(){};m["lime.media.HTML5AudioContext"]=nj;nj.__name__="lime.media.HTML5AudioContext";nj.prototype={__class__:nj};var uk=function(){};
m["lime.media.OpenALAudioContext"]=uk;uk.__name__="lime.media.OpenALAudioContext";uk.prototype={createContext:function(a,b){return Kd.createContext(a,b)},makeContextCurrent:function(a){return Kd.makeContextCurrent(a)},openDevice:function(a){return Kd.openDevice(a)},processContext:function(a){Kd.processContext(a)},__class__:uk};var Kd=function(){};m["lime.media.openal.ALC"]=Kd;Kd.__name__="lime.media.openal.ALC";Kd.createContext=function(a,b){return null};Kd.makeContextCurrent=function(a){return!1};
Kd.openDevice=function(a){return null};Kd.processContext=function(a){};var pj=function(){};m["lime.net._IHTTPRequest"]=pj;pj.__name__="lime.net._IHTTPRequest";pj.prototype={contentType:null,data:null,enableResponseHeaders:null,followRedirects:null,formData:null,headers:null,method:null,responseHeaders:null,responseStatus:null,timeout:null,uri:null,userAgent:null,withCredentials:null,__class__:pj};var Xc=function(a){this.uri=a;this.contentType="application/x-www-form-urlencoded";this.followRedirects=
!0;this.enableResponseHeaders=!1;this.formData=new ea;this.headers=[];this.method="GET";this.timeout=3E4;this.withCredentials=!1;this.__backend=new aa;this.__backend.init(this)};m["lime.net._HTTPRequest.AbstractHTTPRequest"]=Xc;Xc.__name__="lime.net._HTTPRequest.AbstractHTTPRequest";Xc.__interfaces__=[pj];Xc.prototype={contentType:null,data:null,enableResponseHeaders:null,followRedirects:null,formData:null,headers:null,method:null,responseData:null,responseHeaders:null,responseStatus:null,timeout:null,
uri:null,userAgent:null,withCredentials:null,__backend:null,__class__:Xc};var pe=function(a){Xc.call(this,a)};m["lime.net._HTTPRequest_Bytes"]=pe;pe.__name__="lime.net._HTTPRequest_Bytes";pe.__super__=Xc;pe.prototype=v(Xc.prototype,{fromBytes:function(a){return a},load:function(a){var b=this;null!=a&&(this.uri=a);var d=new Ab;a=this.__backend.loadData(this.uri);a.onProgress(u(d,d.progress));a.onError(u(d,d.error));a.onComplete(function(a){b.responseData=b.fromBytes(a);d.complete(b.responseData)});
return d.future},__class__:pe});var Nf=function(a){Xc.call(this,a)};m["lime.net._HTTPRequest_String"]=Nf;Nf.__name__="lime.net._HTTPRequest_String";Nf.__super__=Xc;Nf.prototype=v(Xc.prototype,{load:function(a){var b=this;null!=a&&(this.uri=a);var d=new Ab;a=this.__backend.loadText(this.uri);a.onProgress(u(d,d.progress));a.onError(u(d,d.error));a.onComplete(function(a){b.responseData=a;d.complete(b.responseData)});return d.future},__class__:Nf});var yh=function(a,b){null==b&&(b="");this.name=a;this.value=
b};m["lime.net.HTTPRequestHeader"]=yh;yh.__name__="lime.net.HTTPRequestHeader";yh.prototype={name:null,value:null,__class__:yh};var Gh=function(a){Xc.call(this,a)};m["lime.net._HTTPRequest_lime_utils_Bytes"]=Gh;Gh.__name__="lime.net._HTTPRequest_lime_utils_Bytes";Gh.__super__=pe;Gh.prototype=v(pe.prototype,{fromBytes:function(a){return xb.fromBytes(a)},__class__:Gh});var Hh=function(a){Xc.call(this,a)};m["lime.net._HTTPRequest_openfl_utils_ByteArray"]=Hh;Hh.__name__="lime.net._HTTPRequest_openfl_utils_ByteArray";
Hh.__super__=pe;Hh.prototype=v(pe.prototype,{fromBytes:function(a){return ya.fromBytes(a)},__class__:Hh});var Ta=function(){};m["lime.system.Clipboard"]=Ta;Ta.__name__="lime.system.Clipboard";Ta.__update=function(){Ta._text!=Ta._text&&Ta.onUpdate.dispatch()};Ta.get_text=function(){Ta.__update();return Ta._text};Ta.set_text=function(a){var b=Ta._text;Ta._text=a;var d=Gb.current.__window;null!=d&&d.__backend.setClipboard(a);Ta._text!=b&&Ta.onUpdate.dispatch();return a};var bl=function(){};m["lime.system.DisplayMode"]=
bl;bl.__name__="lime.system.DisplayMode";var Hf=sa["lime.system.Endian"]={__ename__:"lime.system.Endian",__constructs__:["LITTLE_ENDIAN","BIG_ENDIAN"],LITTLE_ENDIAN:{_hx_index:0,__enum__:"lime.system.Endian",toString:r},BIG_ENDIAN:{_hx_index:1,__enum__:"lime.system.Endian",toString:r}},cd=function(a,b){this.onUpdate=new cj;this.type=a;this.id=b};m["lime.system.Sensor"]=cd;cd.__name__="lime.system.Sensor";cd.registerSensor=function(a,b){a=new cd(a,b);cd.sensors.push(a);return cd.sensorByID.h[b]=a};
cd.prototype={id:null,onUpdate:null,type:null,__class__:cd};var ll=sa["lime.system.SensorType"]={__ename__:"lime.system.SensorType",__constructs__:["ACCELEROMETER"],ACCELEROMETER:{_hx_index:0,__enum__:"lime.system.SensorType",toString:r}},Na=function(){};m["lime.system.System"]=Na;Na.__name__="lime.system.System";Na.embed=G.lime.embed=function(a,b,d,c,e){if(null!=Na.__applicationEntryPoint){var f=Na.__applicationEntryPoint;if(null!=t[a]?f.existsReserved(a):f.h.hasOwnProperty(a))f="string"==typeof b?
window.document.getElementById(b):null==b?window.document.createElement("div"):b,null==f?window.console.log("[lime.embed] ERROR: Cannot find target element: "+S.string(b)):(null==d&&(d=0),null==c&&(c=0),null==e&&(e={}),Object.prototype.hasOwnProperty.call(e,"background")&&"string"==typeof e.background&&(b=Q.replace(S.string(e.background),"#",""),-1<b.indexOf("0x")?e.background=S.parseInt(b):e.background=S.parseInt("0x"+b)),e.element=f,e.width=d,e.height=c,d=Na.__applicationEntryPoint,(null!=t[a]?
d.getReserved(a):d.h[a])(e))}};Na.exit=function(a){};Na.getTimer=function(){return window.performance.now()|0};Na.openURL=function(a,b){null==b&&(b="_blank");null!=a&&window.open(a,b)};Na.__registerEntryPoint=function(a,b){null==Na.__applicationEntryPoint&&(Na.__applicationEntryPoint=new ea);var d=Na.__applicationEntryPoint;null!=t[a]?d.setReserved(a,b):d.h[a]=b};Na.get_endianness=function(){if(null==Na.__endianness){var a=new ArrayBuffer(2),b=null!=a?new Uint8Array(a,0):null;a=null!=a?new Uint16Array(a,
0):null;b[0]=170;b[1]=187;Na.__endianness=43707==a[0]?Hf.BIG_ENDIAN:Hf.LITTLE_ENDIAN}return Na.__endianness};var bj=function(a,b){null==b&&(b=1);null==a&&(a=0);this.onRun=new Je;this.onError=new Je;this.onComplete=new Je;this.doWork=new Je;this.minThreads=a;this.maxThreads=b;this.currentThreads=0};m["lime.system.ThreadPool"]=bj;bj.__name__="lime.system.ThreadPool";bj.prototype={currentThreads:null,doWork:null,maxThreads:null,minThreads:null,onComplete:null,onError:null,onRun:null,queue:function(a){this.runWork(a)},
sendComplete:function(a){this.onComplete.dispatch(a)},sendError:function(a){this.onError.dispatch(a)},runWork:function(a){this.onRun.dispatch(a);this.doWork.dispatch(a)},__class__:bj};var Fb=function(a){null!=a&&(this.name=a);null!=this.__fontID?Z.isLocal(this.__fontID)&&this.__fromBytes(Z.getBytes(this.__fontID)):null!=this.__fontPath&&this.__fromFile(this.__fontPath)};m["lime.text.Font"]=Fb;Fb.__name__="lime.text.Font";Fb.fromFile=function(a){if(null==a)return null;var b=new Fb;b.__fromFile(a);
return b};Fb.loadFromName=function(a){return(new Fb).__loadFromName(a)};Fb.__measureFontNode=function(a){var b=window.document.createElement("span");b.setAttribute("aria-hidden","true");var d=window.document.createTextNode("BESbswy");b.appendChild(d);d=b.style;d.display="block";d.position="absolute";d.top="-9999px";d.left="-9999px";d.fontSize="300px";d.width="auto";d.height="auto";d.lineHeight="normal";d.margin="0";d.padding="0";d.fontVariant="normal";d.whiteSpace="nowrap";d.fontFamily=a;window.document.body.appendChild(b);
return b};Fb.prototype={ascender:null,descender:null,height:null,name:null,numGlyphs:null,src:null,underlinePosition:null,underlineThickness:null,unitsPerEM:null,__fontID:null,__fontPath:null,__copyFrom:function(a){null!=a&&(this.ascender=a.ascender,this.descender=a.descender,this.height=a.height,this.name=a.name,this.numGlyphs=a.numGlyphs,this.src=a.src,this.underlinePosition=a.underlinePosition,this.underlineThickness=a.underlineThickness,this.unitsPerEM=a.unitsPerEM,this.__fontID=a.__fontID,this.__fontPath=
a.__fontPath)},__fromBytes:function(a){this.__fontPath=null},__fromFile:function(a){this.__fontPath=a},__loadFromName:function(a){var b=this,d=new Ab;this.name=a;var c=window.navigator.userAgent.toLowerCase(),e=0<=c.indexOf(" safari/")&&0>c.indexOf(" chrome/");c=(new wa("(iPhone|iPod|iPad).*AppleWebKit(?!.*Version)","i")).match(c);if(!e&&!c&&window.document.fonts&&(p=window.document.fonts,u(p,p.load)))window.document.fonts.load("1em '"+a+"'").then(function(a){d.complete(b)},function(c){Ja.warn('Could not load web font "'+
a+'"',{fileName:"lime/text/Font.hx",lineNumber:530,className:"lime.text.Font",methodName:"__loadFromName"});d.complete(b)});else{var f=Fb.__measureFontNode("'"+a+"', sans-serif"),h=Fb.__measureFontNode("'"+a+"', serif"),k=f.offsetWidth,n=h.offsetWidth,l=-1,m=0,g,q;l=window.setInterval(function(){m+=1;g=f.offsetWidth!=k||h.offsetWidth!=n;q=3E3<=50*m;if(g||q)window.clearInterval(l),f.parentNode.removeChild(f),h.parentNode.removeChild(h),h=f=null,q&&Ja.warn('Could not load web font "'+a+'"',{fileName:"lime/text/Font.hx",
lineNumber:566,className:"lime.text.Font",methodName:"__loadFromName"}),d.complete(b)},50)}return d.future},__class__:Fb};var F={};m["lime.text._UTF8String.UTF8String_Impl_"]=F;F.__name__="lime.text._UTF8String.UTF8String_Impl_";F.charAt=function(a,b){if(0<=b)for(var d=0,c=a.length,e=0;e<b&&d<c;){var f=a.charCodeAt(d);d+=55296<=f&&56319>=f?2:1;++e}else for(c=d=0;c<-b&&0<d;)e=a.charCodeAt(d-1),d-=56320<=e&&57343>=e?2:1,++c;b=d;d=a.charCodeAt(b);return L.substr(a,b,55296<=d&&56319>=d?2:1)};F.charCodeAt=
function(a,b){if(0<=b?b>=oe.codePointCount(a,0,a.length):1)return null;if(0<=b)for(var d=0,c=a.length,e=0;e<b&&d<c;){var f=a.charCodeAt(d);d+=55296<=f&&56319>=f?2:1;++e}else for(c=d=0;c<-b&&0<d;)e=a.charCodeAt(d-1),d-=56320<=e&&57343>=e?2:1,++c;b=d;return oe.codePointAt(a,b)};F.indexOf=function(a,b,d){null==d&&(d=0);if(0<=d)for(var c=0,e=a.length,f=0;f<d&&c<e;){var h=a.charCodeAt(c);c+=55296<=h&&56319>=h?2:1;++f}else for(e=c=0;e<-d&&0<c;)f=a.charCodeAt(c-1),c-=56320<=f&&57343>=f?2:1,++e;d=c;b=a.indexOf(b,
d);return 0<=b?oe.codePointCount(a,0,b):-1};F.substr=function(a,b,d){null==d&&(d=F.get_length(a)-b);return L.substr(a,b,d)};F.substring=function(a,b,d){if(0>b)b=0;else{if(0<=b)for(var c=0,e=a.length,f=0;f<b&&c<e;){var h=a.charCodeAt(c);c+=55296<=h&&56319>=h?2:1;++f}else for(e=c=0;e<-b&&0<c;)f=a.charCodeAt(c-1),c-=56320<=f&&57343>=f?2:1,++e;b=c}if(null==d)d=a.length;else if(0>d)d=0;else{if(0<=d)for(c=0,e=a.length,f=0;f<d&&c<e;)h=a.charCodeAt(c),c+=55296<=h&&56319>=h?2:1,++f;else for(e=c=0;e<-d&&0<
c;)f=a.charCodeAt(c-1),c-=56320<=f&&57343>=f?2:1,++e;d=c}return a.substring(b,d)};F.equals=function(a,b){return null==a||null==b?a==b:0==mk.uCompare(a,b)};F.get_length=function(a){return null==a?0:a.length};var cl=function(){};m["lime.text.harfbuzz.HBSegmentProperties"]=cl;cl.__name__="lime.text.harfbuzz.HBSegmentProperties";var gb=function(a){this.onDisconnect=new rb;this.onButtonUp=new Eh;this.onButtonDown=new Eh;this.onAxisMove=new kj;this.id=a;this.connected=!0};m["lime.ui.Gamepad"]=gb;gb.__name__=
"lime.ui.Gamepad";gb.__connect=function(a){if(!gb.devices.h.hasOwnProperty(a)){var b=new gb(a);gb.devices.h[a]=b;gb.onConnect.dispatch(b)}};gb.__disconnect=function(a){var b=gb.devices.h[a];null!=b&&(b.connected=!1);gb.devices.remove(a);null!=b&&b.onDisconnect.dispatch()};gb.prototype={connected:null,id:null,onAxisMove:null,onButtonDown:null,onButtonUp:null,onDisconnect:null,__class__:gb};var lb=function(a){this.onTrackballMove=new gj;this.onHatMove=new ij;this.onDisconnect=new rb;this.onButtonUp=
new Qd;this.onButtonDown=new Qd;this.onAxisMove=new hj;this.id=a;this.connected=!0};m["lime.ui.Joystick"]=lb;lb.__name__="lime.ui.Joystick";lb.__connect=function(a){if(!lb.devices.h.hasOwnProperty(a)){var b=new lb(a);lb.devices.h[a]=b;lb.onConnect.dispatch(b)}};lb.__disconnect=function(a){var b=lb.devices.h[a];null!=b&&(b.connected=!1);lb.devices.remove(a);null!=b&&b.onDisconnect.dispatch()};lb.__getDeviceData=function(){return navigator.getGamepads?navigator.getGamepads():navigator.webkitGetGamepads?
navigator.webkitGetGamepads():null};lb.prototype={connected:null,id:null,onAxisMove:null,onButtonDown:null,onButtonUp:null,onDisconnect:null,onHatMove:null,onTrackballMove:null,__class__:lb};var ua={};m["lime.ui._KeyModifier.KeyModifier_Impl_"]=ua;ua.__name__="lime.ui._KeyModifier.KeyModifier_Impl_";ua.get_altKey=function(a){return 0>=(a&256)?0<(a&512):!0};ua.get_ctrlKey=function(a){return 0>=(a&64)?0<(a&128):!0};ua.get_metaKey=function(a){return 0>=(a&1024)?0<(a&2048):!0};ua.get_shiftKey=function(a){return 0>=
(a&1)?0<(a&2):!0};var ji=sa["lime.ui.MouseCursor"]={__ename__:"lime.ui.MouseCursor",__constructs__:"ARROW CROSSHAIR DEFAULT MOVE POINTER RESIZE_NESW RESIZE_NS RESIZE_NWSE RESIZE_WE TEXT WAIT WAIT_ARROW CUSTOM".split(" "),ARROW:{_hx_index:0,__enum__:"lime.ui.MouseCursor",toString:r},CROSSHAIR:{_hx_index:1,__enum__:"lime.ui.MouseCursor",toString:r},DEFAULT:{_hx_index:2,__enum__:"lime.ui.MouseCursor",toString:r},MOVE:{_hx_index:3,__enum__:"lime.ui.MouseCursor",toString:r},POINTER:{_hx_index:4,__enum__:"lime.ui.MouseCursor",
toString:r},RESIZE_NESW:{_hx_index:5,__enum__:"lime.ui.MouseCursor",toString:r},RESIZE_NS:{_hx_index:6,__enum__:"lime.ui.MouseCursor",toString:r},RESIZE_NWSE:{_hx_index:7,__enum__:"lime.ui.MouseCursor",toString:r},RESIZE_WE:{_hx_index:8,__enum__:"lime.ui.MouseCursor",toString:r},TEXT:{_hx_index:9,__enum__:"lime.ui.MouseCursor",toString:r},WAIT:{_hx_index:10,__enum__:"lime.ui.MouseCursor",toString:r},WAIT_ARROW:{_hx_index:11,__enum__:"lime.ui.MouseCursor",toString:r},CUSTOM:{_hx_index:12,__enum__:"lime.ui.MouseCursor",
toString:r}},Zi=sa["lime.ui.MouseWheelMode"]={__ename__:"lime.ui.MouseWheelMode",__constructs__:["PIXELS","LINES","PAGES","UNKNOWN"],PIXELS:{_hx_index:0,__enum__:"lime.ui.MouseWheelMode",toString:r},LINES:{_hx_index:1,__enum__:"lime.ui.MouseWheelMode",toString:r},PAGES:{_hx_index:2,__enum__:"lime.ui.MouseWheelMode",toString:r},UNKNOWN:{_hx_index:3,__enum__:"lime.ui.MouseWheelMode",toString:r}},nb=function(a,b,d,c,e,f,h){this.x=a;this.y=b;this.id=d;this.dx=c;this.dy=e;this.pressure=f;this.device=h};
m["lime.ui.Touch"]=nb;nb.__name__="lime.ui.Touch";nb.prototype={device:null,dx:null,dy:null,id:null,pressure:null,x:null,y:null,__class__:nb};var Of=function(a,b){this.onTextInput=new Ch;this.onTextEdit=new jj;this.onRestore=new rb;this.onResize=new Bh;this.onRenderContextRestored=new Dh;this.onRenderContextLost=new rb;this.onRender=new Dh;this.onMove=new Mf;this.onMouseWheel=new fj;this.onMouseUp=new dj;this.onMouseMoveRelative=new Mf;this.onMouseMove=new Mf;this.onMouseDown=new ej;this.onMinimize=
new rb;this.onLeave=new rb;this.onKeyUp=new Fh;this.onKeyDown=new Fh;this.onFullscreen=new rb;this.onFocusOut=new rb;this.onFocusIn=new rb;this.onExpose=new rb;this.onEnter=new rb;this.onDropFile=new Ch;this.onDeactivate=new rb;this.onClose=new rb;this.onActivate=new rb;this.application=a;this.__attributes=null!=b?b:{};this.__height=this.__width=0;this.__fullscreen=!1;this.__scale=1;this.__y=this.__x=0;this.__title="";this.id=-1;this.__backend=new na(this)};m["lime.ui.Window"]=Of;Of.__name__="lime.ui.Window";
Of.prototype={application:null,context:null,element:null,id:null,onActivate:null,onClose:null,onDeactivate:null,onDropFile:null,onEnter:null,onExpose:null,onFocusIn:null,onFocusOut:null,onFullscreen:null,onKeyDown:null,onKeyUp:null,onLeave:null,onMinimize:null,onMouseDown:null,onMouseMove:null,onMouseMoveRelative:null,onMouseUp:null,onMouseWheel:null,onMove:null,onRender:null,onRenderContextLost:null,onRenderContextRestored:null,onResize:null,onRestore:null,onTextEdit:null,onTextInput:null,stage:null,
__attributes:null,__backend:null,__fullscreen:null,__height:null,__resizable:null,__scale:null,__title:null,__width:null,__x:null,__y:null,close:function(){this.__backend.close()},set_cursor:function(a){return this.__backend.setCursor(a)},__class__:Of};var qj=function(){this.enabled=!0;this.audio=new ea;this.font=new ea;this.image=new ea;this.version=1E6*Math.random()|0};m["lime.utils.AssetCache"]=qj;qj.__name__="lime.utils.AssetCache";qj.prototype={audio:null,enabled:null,image:null,font:null,version:null,
exists:function(a,b){if("IMAGE"==b||null==b){var d=this.image;if(null!=t[a]?d.existsReserved(a):d.h.hasOwnProperty(a))return!0}if("FONT"==b||null==b)if(d=this.font,null!=t[a]?d.existsReserved(a):d.h.hasOwnProperty(a))return!0;if("SOUND"==b||"MUSIC"==b||null==b)if(b=this.audio,null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return!0;return!1},set:function(a,b,d){switch(b){case "FONT":b=this.font;null!=t[a]?b.setReserved(a,d):b.h[a]=d;break;case "IMAGE":if(!(d instanceof pa))throw new w("Cannot cache non-Image asset: "+
S.string(d)+" as Image");b=this.image;null!=t[a]?b.setReserved(a,d):b.h[a]=d;break;case "MUSIC":case "SOUND":if(!(d instanceof Qa))throw new w("Cannot cache non-AudioBuffer asset: "+S.string(d)+" as AudioBuffer");b=this.audio;null!=t[a]?b.setReserved(a,d):b.h[a]=d;break;default:throw new w(b+" assets are not cachable");}},clear:function(a){if(null==a)this.audio=new ea,this.font=new ea,this.image=new ea;else{for(var b=this.audio.keys();b.hasNext();){var d=b.next();Q.startsWith(d,a)&&this.audio.remove(d)}for(b=
this.font.keys();b.hasNext();)d=b.next(),Q.startsWith(d,a)&&this.font.remove(d);for(b=this.image.keys();b.hasNext();)d=b.next(),Q.startsWith(d,a)&&this.image.remove(d)}},__class__:qj};var Ya=function(){this.types=new ea;this.sizes=new ea;this.preload=new ea;this.paths=new ea;this.pathGroups=new ea;this.classTypes=new ea;this.cachedText=new ea;this.cachedImages=new ea;this.cachedFonts=new ea;this.cachedBytes=new ea;this.cachedAudioBuffers=new ea;this.onChange=new rb;this.bytesTotal=this.bytesLoaded=
0};m["lime.utils.AssetLibrary"]=Ya;Ya.__name__="lime.utils.AssetLibrary";Ya.fromManifest=function(a){if(null==a)return null;if(null==a.libraryType)var b=new Ya;else if(b=m[a.libraryType],null!=b)b=Ea.createInstance(b,a.libraryArgs);else return Ja.warn("Could not find library type: "+a.libraryType,{fileName:"lime/utils/AssetLibrary.hx",lineNumber:140,className:"lime.utils.AssetLibrary",methodName:"fromManifest"}),null;b.__fromManifest(a);return b};Ya.prototype={onChange:null,assetsLoaded:null,assetsTotal:null,
bytesLoaded:null,bytesLoadedCache:null,bytesTotal:null,cachedAudioBuffers:null,cachedBytes:null,cachedFonts:null,cachedImages:null,cachedText:null,classTypes:null,loaded:null,pathGroups:null,paths:null,preload:null,promise:null,sizes:null,types:null,exists:function(a,b){b=null!=b?U.__cast(b,String):null;var d=this.types;a=null!=t[a]?d.getReserved(a):d.h[a];return null==a||a!=b&&("SOUND"!=b&&"MUSIC"!=b||"MUSIC"!=a&&"SOUND"!=a)&&"BINARY"!=b&&null!=b&&("BINARY"!=a||"TEXT"!=b)?!1:!0},getAsset:function(a,
b){switch(b){case "BINARY":return this.getBytes(a);case "FONT":return this.getFont(a);case "IMAGE":return this.getImage(a);case "MUSIC":case "SOUND":return this.getAudioBuffer(a);case "TEMPLATE":throw new w("Not sure how to get template: "+a);case "TEXT":return this.getText(a);default:throw new w("Unknown asset type: "+b);}},getAudioBuffer:function(a){var b=this.cachedAudioBuffers;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.cachedAudioBuffers,null!=t[a]?b.getReserved(a):
b.h[a];b=this.classTypes;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.classTypes,Qa.fromBytes(U.__cast(Ea.createInstance(null!=t[a]?b.getReserved(a):b.h[a],[]),H));b=this.paths;return Qa.fromFile(null!=t[a]?b.getReserved(a):b.h[a])},getBytes:function(a){var b=this.cachedBytes;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.cachedBytes,null!=t[a]?b.getReserved(a):b.h[a];b=this.cachedText;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a)){b=this.cachedText;
b=xb.ofString(null!=t[a]?b.getReserved(a):b.h[a]);var d=this.cachedBytes;null!=t[a]?d.setReserved(a,b):d.h[a]=b;return b}b=this.classTypes;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.classTypes,U.__cast(Ea.createInstance(null!=t[a]?b.getReserved(a):b.h[a],[]),H);b=this.paths;return xb.fromFile(null!=t[a]?b.getReserved(a):b.h[a])},getFont:function(a){var b=this.cachedFonts;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.cachedFonts,null!=t[a]?b.getReserved(a):
b.h[a];b=this.classTypes;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.classTypes,U.__cast(Ea.createInstance(null!=t[a]?b.getReserved(a):b.h[a],[]),Fb);b=this.paths;return Fb.fromFile(null!=t[a]?b.getReserved(a):b.h[a])},getImage:function(a){var b=this.cachedImages;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.cachedImages,null!=t[a]?b.getReserved(a):b.h[a];b=this.classTypes;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.classTypes,
U.__cast(Ea.createInstance(null!=t[a]?b.getReserved(a):b.h[a],[]),pa);b=this.paths;return pa.fromFile(null!=t[a]?b.getReserved(a):b.h[a])},getText:function(a){var b=this.cachedText;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.cachedText,null!=t[a]?b.getReserved(a):b.h[a];a=this.getBytes(a);return null==a?null:a.getString(0,a.length)},isLocal:function(a,b){var d=this.classTypes;if(null!=t[a]?d.existsReserved(a):d.h.hasOwnProperty(a))return!0;switch(null!=b?U.__cast(b,String):
null){case "FONT":return b=this.cachedFonts,null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a);case "IMAGE":return b=this.cachedImages,null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a);case "MUSIC":case "SOUND":return b=this.cachedAudioBuffers,null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a);default:b=this.cachedBytes;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return!0;b=this.cachedText;return null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a)}},load:function(){if(this.loaded)return db.withValue(this);
if(null==this.promise){this.promise=new Ab;this.bytesLoadedCache=new ea;this.assetsLoaded=0;this.assetsTotal=1;for(var a=this.preload.keys();a.hasNext();){var b=a.next(),d=this.preload;if(null!=t[b]?d.getReserved(b):d.h[b])if(d=this.types,Ja.verbose("Preloading asset: "+b+" ["+(null!=t[b]?d.getReserved(b):d.h[b])+"]",{fileName:"lime/utils/AssetLibrary.hx",lineNumber:452,className:"lime.utils.AssetLibrary",methodName:"load"}),d=this.types,d=null!=t[b]?d.getReserved(b):d.h[b],null!=d)switch(d){case "BINARY":this.assetsTotal++;
d=this.loadBytes(b);d.onProgress(function(a,b){return function(c,d){b[0](a[0],c,d)}}([b],[u(this,this.load_onProgress)]));d.onError(function(a,b){return function(c){b[0](a[0],c)}}([b],[u(this,this.load_onError)]));d.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([b],[u(this,this.loadBytes_onComplete)]));break;case "FONT":this.assetsTotal++;d=this.loadFont(b);d.onProgress(function(a,b){return function(c,d){b[0](a[0],c,d)}}([b],[u(this,this.load_onProgress)]));d.onError(function(a,b){return function(c){b[0](a[0],
c)}}([b],[u(this,this.load_onError)]));d.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([b],[u(this,this.loadFont_onComplete)]));break;case "IMAGE":this.assetsTotal++;d=this.loadImage(b);d.onProgress(function(a,b){return function(c,d){b[0](a[0],c,d)}}([b],[u(this,this.load_onProgress)]));d.onError(function(a,b){return function(c){b[0](a[0],c)}}([b],[u(this,this.load_onError)]));d.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([b],[u(this,this.loadImage_onComplete)]));break;
case "MUSIC":case "SOUND":this.assetsTotal++;d=this.loadAudioBuffer(b);d.onProgress(function(a,b){return function(c,d){b[0](a[0],c,d)}}([b],[u(this,this.load_onProgress)]));d.onError(function(a,b){return function(c){b[0](a[0],c)}}([b],[u(this,this.loadAudioBuffer_onError)]));d.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([b],[u(this,this.loadAudioBuffer_onComplete)]));break;case "TEXT":this.assetsTotal++,d=this.loadText(b),d.onProgress(function(a,b){return function(c,d){b[0](a[0],c,
d)}}([b],[u(this,this.load_onProgress)])),d.onError(function(a,b){return function(c){b[0](a[0],c)}}([b],[u(this,this.load_onError)])),d.onComplete(function(a,b){return function(c){b[0](a[0],c)}}([b],[u(this,this.loadText_onComplete)]))}}this.__assetLoaded(null)}return this.promise.future},loadAudioBuffer:function(a){var b=this.cachedAudioBuffers;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.cachedAudioBuffers,db.withValue(null!=t[a]?b.getReserved(a):b.h[a]);b=this.classTypes;
if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.classTypes,db.withValue(Ea.createInstance(null!=t[a]?b.getReserved(a):b.h[a],[]));b=this.pathGroups;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.pathGroups,Qa.loadFromFiles(null!=t[a]?b.getReserved(a):b.h[a]);b=this.paths;return Qa.loadFromFile(null!=t[a]?b.getReserved(a):b.h[a])},loadBytes:function(a){var b=this.cachedBytes;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.cachedBytes,
db.withValue(null!=t[a]?b.getReserved(a):b.h[a]);b=this.classTypes;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.classTypes,db.withValue(Ea.createInstance(null!=t[a]?b.getReserved(a):b.h[a],[]));b=this.paths;return xb.loadFromFile(null!=t[a]?b.getReserved(a):b.h[a])},loadFont:function(a){var b=this.cachedFonts;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.cachedFonts,db.withValue(null!=t[a]?b.getReserved(a):b.h[a]);b=this.classTypes;if(null!=t[a]?b.existsReserved(a):
b.h.hasOwnProperty(a))return b=this.classTypes,a=Ea.createInstance(null!=t[a]?b.getReserved(a):b.h[a],[]),a.__loadFromName(a.name);b=this.paths;return Fb.loadFromName(null!=t[a]?b.getReserved(a):b.h[a])},loadImage:function(a){var b=this.cachedImages;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.cachedImages,db.withValue(null!=t[a]?b.getReserved(a):b.h[a]);b=this.classTypes;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.classTypes,db.withValue(Ea.createInstance(null!=
t[a]?b.getReserved(a):b.h[a],[]));b=this.paths;return pa.loadFromFile(null!=t[a]?b.getReserved(a):b.h[a])},loadText:function(a){var b=this.cachedText;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.cachedText,db.withValue(null!=t[a]?b.getReserved(a):b.h[a]);b=this.cachedBytes;(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))?b=!0:(b=this.classTypes,b=null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a));if(b){b=this.getBytes(a);if(null==b)return db.withValue(null);b=b.getString(0,
b.length);var d=this.cachedText;null!=t[a]?d.setReserved(a,b):d.h[a]=b;return db.withValue(b)}b=new Nf;d=this.paths;return b.load(null!=t[a]?d.getReserved(a):d.h[a])},unload:function(){},__assetLoaded:function(a){this.assetsLoaded++;if(null!=a){var b=this.types;Ja.verbose("Loaded asset: "+a+" ["+(null!=t[a]?b.getReserved(a):b.h[a])+"] ("+(this.assetsLoaded-1)+"/"+(this.assetsTotal-1)+")",{fileName:"lime/utils/AssetLibrary.hx",lineNumber:698,className:"lime.utils.AssetLibrary",methodName:"__assetLoaded"})}if(null!=
a){b=this.sizes;b=null!=t[a]?b.getReserved(a):b.h[a];var d=this.bytesLoadedCache;(null!=t[a]?d.existsReserved(a):d.h.hasOwnProperty(a))?(d=this.bytesLoadedCache,d=null!=t[a]?d.getReserved(a):d.h[a],d<b&&(this.bytesLoaded+=b-d)):this.bytesLoaded+=b;d=this.bytesLoadedCache;null!=t[a]?d.setReserved(a,b):d.h[a]=b}this.assetsLoaded<this.assetsTotal?this.promise.progress(this.bytesLoaded,this.bytesTotal):(this.loaded=!0,this.promise.progress(this.bytesTotal,this.bytesTotal),this.promise.complete(this))},
__cacheBreak:function(a){return a=-1<a.indexOf("?")?a+("&"+Z.cache.version):a+("?"+Z.cache.version)},__fromManifest:function(a){var b=2<=a.version,d=a.rootPath;null==d&&(d="");""!=d&&(d+="/");for(var c=0,e=a.assets;c<e.length;){var f=e[c];++c;var h=b&&Object.prototype.hasOwnProperty.call(f,"size")?f.size:100;var k=f.id;if(Object.prototype.hasOwnProperty.call(f,"path")){var n=this.paths;var l=this.__cacheBreak(d+S.string(V.field(f,"path")));null!=t[k]?n.setReserved(k,l):n.h[k]=l}if(Object.prototype.hasOwnProperty.call(f,
"pathGroup")){l=V.field(f,"pathGroup");n=0;for(var q=l.length;n<q;){var g=n++;l[g]=this.__cacheBreak(d+l[g])}n=this.pathGroups;null!=t[k]?n.setReserved(k,l):n.h[k]=l}l=this.sizes;null!=t[k]?l.setReserved(k,h):l.h[k]=h;h=f.type;l=this.types;null!=t[k]?l.setReserved(k,h):l.h[k]=h;Object.prototype.hasOwnProperty.call(f,"preload")&&(h=V.field(f,"preload"),l=this.preload,null!=t[k]?l.setReserved(k,h):l.h[k]=h);Object.prototype.hasOwnProperty.call(f,"className")&&(f=V.field(f,"className"),f=m[f],h=this.classTypes,
null!=t[k]?h.setReserved(k,f):h.h[k]=f)}b=this.bytesTotal=0;for(a=a.assets;b<a.length;)k=a[b],++b,k=k.id,d=this.preload,(null!=t[k]?d.existsReserved(k):d.h.hasOwnProperty(k))?(d=this.preload,d=null!=t[k]?d.getReserved(k):d.h[k]):d=!1,d&&(d=this.sizes,this.bytesTotal+=null!=t[k]?d.getReserved(k):d.h[k])},loadAudioBuffer_onComplete:function(a,b){var d=this.cachedAudioBuffers;null!=t[a]?d.setReserved(a,b):d.h[a]=b;d=this.pathGroups;if(null!=t[a]?d.existsReserved(a):d.h.hasOwnProperty(a)){d=this.pathGroups;
d=null!=t[a]?d.getReserved(a):d.h[a];for(var c=this.pathGroups.keys();c.hasNext();){var e=c.next();if(e!=a)for(var f=0;f<d.length;){var h=d[f];++f;var k=this.pathGroups;if(-1<(null!=t[e]?k.getReserved(e):k.h[e]).indexOf(h)){f=this.cachedAudioBuffers;null!=t[e]?f.setReserved(e,b):f.h[e]=b;break}}}}this.__assetLoaded(a)},loadAudioBuffer_onError:function(a,b){null!=b&&""!=b?Ja.warn('Could not load "'+a+'": '+S.string(b),{fileName:"lime/utils/AssetLibrary.hx",lineNumber:883,className:"lime.utils.AssetLibrary",
methodName:"loadAudioBuffer_onError"}):Ja.warn('Could not load "'+a+'"',{fileName:"lime/utils/AssetLibrary.hx",lineNumber:887,className:"lime.utils.AssetLibrary",methodName:"loadAudioBuffer_onError"});this.loadAudioBuffer_onComplete(a,new Qa)},loadBytes_onComplete:function(a,b){var d=this.cachedBytes;null!=t[a]?d.setReserved(a,b):d.h[a]=b;this.__assetLoaded(a)},loadFont_onComplete:function(a,b){var d=this.cachedFonts;null!=t[a]?d.setReserved(a,b):d.h[a]=b;this.__assetLoaded(a)},loadImage_onComplete:function(a,
b){var d=this.cachedImages;null!=t[a]?d.setReserved(a,b):d.h[a]=b;this.__assetLoaded(a)},loadText_onComplete:function(a,b){var d=this.cachedText;null!=t[a]?d.setReserved(a,b):d.h[a]=b;this.__assetLoaded(a)},load_onError:function(a,b){null!=b&&""!=b?this.promise.error('Error loading asset "'+a+'": '+S.string(b)):this.promise.error('Error loading asset "'+a+'"')},load_onProgress:function(a,b,d){if(0<b){var c=this.sizes;c=null!=t[a]?c.getReserved(a):c.h[a];0<d?(b/=d,1<b&&(b=1),b=Math.floor(b*c)):b>c&&
(b=c);d=this.bytesLoadedCache;(null!=t[a]?d.existsReserved(a):d.h.hasOwnProperty(a))?(d=this.bytesLoadedCache,d=null!=t[a]?d.getReserved(a):d.h[a],b!=d&&(this.bytesLoaded+=b-d)):this.bytesLoaded+=b;d=this.bytesLoadedCache;null!=t[a]?d.setReserved(a,b):d.h[a]=b;this.promise.progress(this.bytesLoaded,this.bytesTotal)}},__class__:Ya};var Eb=function(){this.assets=[];this.libraryArgs=[];this.version=2};m["lime.utils.AssetManifest"]=Eb;Eb.__name__="lime.utils.AssetManifest";Eb.fromBytes=function(a,b){return null!=
a?Eb.parse(a.getString(0,a.length),b):null};Eb.loadFromFile=function(a,b){a=Eb.__resolvePath(a);b=Eb.__resolveRootPath(b,a);return null==a?null:xb.loadFromFile(a).then(function(a){return db.withValue(Eb.fromBytes(a,b))})};Eb.parse=function(a,b){if(null==a||""==a)return null;a=JSON.parse(a);var d=new Eb;d.name=a.name;d.libraryType=a.libraryType;d.libraryArgs=a.libraryArgs;d.assets=mb.run(a.assets);Object.prototype.hasOwnProperty.call(a,"rootPath")&&(d.rootPath=a.rootPath);null!=b&&""!=b&&(d.rootPath=
null==d.rootPath||""==d.rootPath?b:b+"/"+d.rootPath);return d};Eb.__resolvePath=function(a){if(null==a)return null;var b=a.indexOf("?");var d=-1<b?L.substr(a,0,b):a;for(Q.replace(d,"\\","/");Q.endsWith(d,"/");)d=L.substr(d,0,d.length-1);return Q.endsWith(d,".bundle")?-1<b?d+"/library.json"+L.substr(a,b,null):d+"/library.json":a};Eb.__resolveRootPath=function(a,b){if(null!=a)return a;a=b.indexOf("?");a=-1<a?L.substr(b,0,a):b;for(Q.replace(a,"\\","/");Q.endsWith(a,"/");){if("/"==a)return a;a=L.substr(a,
0,a.length-1)}return Q.endsWith(a,".bundle")?a:ue.directory(a)};Eb.prototype={assets:null,libraryArgs:null,libraryType:null,name:null,rootPath:null,version:null,__class__:Eb};var Z=function(){};m["lime.utils.Assets"]=Z;Z.__name__="lime.utils.Assets";Z.exists=function(a,b){null==b&&(b="BINARY");var d=a.indexOf(":"),c=a.substring(0,d);a=a.substring(d+1);c=Z.getLibrary(c);return null!=c?c.exists(a,b):!1};Z.getAsset=function(a,b,d){if(d&&Z.cache.enabled)switch(b){case "BINARY":case "TEXT":d=!1;break;
case "FONT":var c=Z.cache.font;c=null!=t[a]?c.getReserved(a):c.h[a];if(null!=c)return c;break;case "IMAGE":c=Z.cache.image;c=null!=t[a]?c.getReserved(a):c.h[a];if(Z.isValidImage(c))return c;break;case "MUSIC":case "SOUND":c=Z.cache.audio;c=null!=t[a]?c.getReserved(a):c.h[a];if(Z.isValidAudio(c))return c;break;case "TEMPLATE":throw new w("Not sure how to get template: "+a);default:return null}var e=a.indexOf(":");c=a.substring(0,e);e=a.substring(e+1);var f=Z.getLibrary(c);if(null!=f)if(f.exists(e,
b)){if(f.isLocal(e,b))return c=f.getAsset(e,b),d&&Z.cache.enabled&&Z.cache.set(a,b,c),c;Ja.error(b+' asset "'+a+'" exists, but only asynchronously',{fileName:"lime/utils/Assets.hx",lineNumber:160,className:"lime.utils.Assets",methodName:"getAsset"})}else Ja.error("There is no "+b+' asset with an ID of "'+a+'"',{fileName:"lime/utils/Assets.hx",lineNumber:166,className:"lime.utils.Assets",methodName:"getAsset"});else Ja.error(Z.__libraryNotFound(c),{fileName:"lime/utils/Assets.hx",lineNumber:172,className:"lime.utils.Assets",
methodName:"getAsset"});return null};Z.getBytes=function(a){return Z.getAsset(a,"BINARY",!1)};Z.getImage=function(a,b){null==b&&(b=!0);return Z.getAsset(a,"IMAGE",b)};Z.getLibrary=function(a){if(null==a||""==a)a="default";var b=Z.libraries;return null!=t[a]?b.getReserved(a):b.h[a]};Z.isLocal=function(a,b,d){null==d&&(d=!0);if(d&&Z.cache.enabled&&Z.cache.exists(a,b))return!0;var c=a.indexOf(":");d=a.substring(0,c);a=a.substring(c+1);d=Z.getLibrary(d);return null!=d?d.isLocal(a,b):!1};Z.isValidAudio=
function(a){return null!=a};Z.isValidImage=function(a){return null!=a?null!=a.buffer:!1};Z.loadLibrary=function(a){var b=new Ab,d=Z.getLibrary(a);if(null!=d)return d.load();d=a;var c=null,e=Z.libraryPaths;(null!=t[a]?e.existsReserved(a):e.h.hasOwnProperty(a))?(d=Z.libraryPaths,d=null!=t[a]?d.getReserved(a):d.h[a],c=Z.defaultRootPath):Q.endsWith(d,".bundle")&&(d+="/library.json");Eb.loadFromFile(d,c).onComplete(function(c){if(null==c)b.error('Cannot parse asset manifest for library "'+a+'"');else if(c=
Ya.fromManifest(c),null==c)b.error('Cannot open library "'+a+'"');else{var d=Z.libraries;null!=t[a]?d.setReserved(a,c):d.h[a]=c;c.onChange.add((p=Z.onChange,u(p,p.dispatch)));c=c.load();b.completeWith(c)}}).onError(function(c){b.error('There is no asset library with an ID of "'+a+'"')});return b.future};Z.registerLibrary=function(a,b){var d=Z.libraries;if(null!=t[a]?d.existsReserved(a):d.h.hasOwnProperty(a)){d=Z.libraries;if((null!=t[a]?d.getReserved(a):d.h[a])==b)return;Z.unloadLibrary(a)}null!=
b&&b.onChange.add(Z.library_onChange);d=Z.libraries;null!=t[a]?d.setReserved(a,b):d.h[a]=b};Z.unloadLibrary=function(a){var b=Z.libraries;b=null!=t[a]?b.getReserved(a):b.h[a];null!=b&&(Z.cache.clear(a+":"),b.onChange.remove(Z.library_onChange),b.unload());Z.libraries.remove(a)};Z.__libraryNotFound=function(a){if(null==a||""==a)a="default";return null==Gb.current||null==Gb.current.__preloader||Gb.current.__preloader.complete?'There is no asset library named "'+a+'"':'There is no asset library named "'+
a+'", or it is not yet preloaded'};Z.library_onChange=function(){Z.cache.clear();Z.onChange.dispatch()};var vk={};m["lime.utils._BytePointer.BytePointer_Impl_"]=vk;vk.__name__="lime.utils._BytePointer.BytePointer_Impl_";vk.set=function(a,b,d,c,e){null!=c&&(b=H.ofData(c));null!=b||null==d?(a.bytes=b,a.offset=null!=e?e:0):(a.bytes=H.ofData(d.buffer),a.offset=null!=e?d.byteOffset+e:d.byteOffset)};var Ih=function(a,b){this.bytes=a;this.offset=b};m["lime.utils.BytePointerData"]=Ih;Ih.__name__="lime.utils.BytePointerData";
Ih.prototype={bytes:null,offset:null,__class__:Ih};var xb={};m["lime.utils._Bytes.Bytes_Impl_"]=xb;xb.__name__="lime.utils._Bytes.Bytes_Impl_";xb._new=function(a,b){return new H(b)};xb.decompress=function(a,b){switch(b._hx_index){case 0:return zh.decompress(a);case 1:return ik.decompress(a);case 2:return kk.decompress(a);case 3:return lk.decompress(a)}};xb.fromBytes=function(a){return null==a?null:xb._new(a.length,a.b.bufferValue)};xb.fromFile=function(a){return null};xb.loadFromFile=function(a){return(new Gh).load(a)};
xb.ofString=function(a){a=H.ofString(a);return xb._new(a.length,a.b.bufferValue)};var Wk=sa["lime.utils.CompressionAlgorithm"]={__ename__:"lime.utils.CompressionAlgorithm",__constructs__:["DEFLATE","GZIP","LZMA","ZLIB"],DEFLATE:{_hx_index:0,__enum__:"lime.utils.CompressionAlgorithm",toString:r},GZIP:{_hx_index:1,__enum__:"lime.utils.CompressionAlgorithm",toString:r},LZMA:{_hx_index:2,__enum__:"lime.utils.CompressionAlgorithm",toString:r},ZLIB:{_hx_index:3,__enum__:"lime.utils.CompressionAlgorithm",
toString:r}},Ja=function(){};m["lime.utils.Log"]=Ja;Ja.__name__="lime.utils.Log";Ja.error=function(a,b){if(1<=Ja.level){a="["+b.className+"] ERROR: "+S.string(a);if(Ja.throwErrors)throw new w(a);console.error(a)}};Ja.verbose=function(a,b){5<=Ja.level&&console.log("["+b.className+"] "+S.string(a))};Ja.warn=function(a,b){2<=Ja.level&&console.warn("["+b.className+"] WARNING: "+S.string(a))};var se=function(){this.bytesTotalCache=new ea;this.bytesLoadedCache2=new ea;this.bytesLoadedCache=new fc;this.onProgress=
new Bh;this.onComplete=new rb;this.bytesTotal=this.bytesLoaded=0;this.libraries=[];this.libraryNames=[];this.onProgress.add(u(this,this.update))};m["lime.utils.Preloader"]=se;se.__name__="lime.utils.Preloader";se.prototype={complete:null,onComplete:null,onProgress:null,bytesLoaded:null,bytesLoadedCache:null,bytesLoadedCache2:null,bytesTotal:null,bytesTotalCache:null,initLibraryNames:null,libraries:null,libraryNames:null,loadedLibraries:null,preloadComplete:null,preloadStarted:null,simulateProgress:null,
addLibrary:function(a){this.libraries.push(a)},addLibraryName:function(a){-1==this.libraryNames.indexOf(a)&&this.libraryNames.push(a)},load:function(){for(var a=this,b=0,d=this.libraries;b<d.length;){var c=d[b];++b;this.bytesTotal+=c.bytesTotal}this.loadedLibraries=-1;this.preloadStarted=!1;b=0;for(d=this.libraries;b<d.length;)c=[d[b]],++b,Ja.verbose("Preloading asset library",{fileName:"lime/utils/Preloader.hx",lineNumber:150,className:"lime.utils.Preloader",methodName:"load"}),c[0].load().onProgress(function(b){return function(c,
d){a.bytesLoaded=null==a.bytesLoadedCache.h.__keys__[b[0].__id__]?a.bytesLoaded+c:a.bytesLoaded+(c-a.bytesLoadedCache.h[b[0].__id__]);a.bytesLoadedCache.set(b[0],c);a.simulateProgress||a.onProgress.dispatch(a.bytesLoaded,a.bytesTotal)}}(c)).onComplete(function(b){return function(c){a.bytesLoaded=null==a.bytesLoadedCache.h.__keys__[b[0].__id__]?a.bytesLoaded+b[0].bytesTotal:a.bytesLoaded+(b[0].bytesTotal-a.bytesLoadedCache.h[b[0].__id__]);a.loadedAssetLibrary()}}(c)).onError(function(){return function(a){Ja.error(a,
{fileName:"lime/utils/Preloader.hx",lineNumber:188,className:"lime.utils.Preloader",methodName:"load"})}}());b=0;for(d=this.libraryNames;b<d.length;)++b,this.bytesTotal+=200;this.loadedLibraries++;this.preloadStarted=!0;this.updateProgress()},loadedAssetLibrary:function(a){this.loadedLibraries++;var b=this.loadedLibraries;this.preloadStarted||++b;var d=this.libraries.length+this.libraryNames.length;null!=a?Ja.verbose("Loaded asset library: "+a+" ["+b+"/"+d+"]",{fileName:"lime/utils/Preloader.hx",
lineNumber:220,className:"lime.utils.Preloader",methodName:"loadedAssetLibrary"}):Ja.verbose("Loaded asset library ["+b+"/"+d+"]",{fileName:"lime/utils/Preloader.hx",lineNumber:224,className:"lime.utils.Preloader",methodName:"loadedAssetLibrary"});this.updateProgress()},start:function(){this.complete||this.simulateProgress||!this.preloadComplete||(this.complete=!0,this.onComplete.dispatch())},update:function(a,b){},updateProgress:function(){var a=this;this.simulateProgress||this.onProgress.dispatch(this.bytesLoaded,
this.bytesTotal);if(this.loadedLibraries==this.libraries.length&&!this.initLibraryNames){this.initLibraryNames=!0;for(var b=0,d=this.libraryNames;b<d.length;){var c=[d[b]];++b;Ja.verbose("Preloading asset library: "+c[0],{fileName:"lime/utils/Preloader.hx",lineNumber:273,className:"lime.utils.Preloader",methodName:"updateProgress"});Z.loadLibrary(c[0]).onProgress(function(b){return function(c,d){if(0<d){var e=a.bytesTotalCache;(null!=t[b[0]]?e.existsReserved(b[0]):e.h.hasOwnProperty(b[0]))||(e=a.bytesTotalCache,
null!=t[b[0]]?e.setReserved(b[0],d):e.h[b[0]]=d,a.bytesTotal+=d-200);c>d&&(c=d);d=a.bytesLoadedCache2;(null!=t[b[0]]?d.existsReserved(b[0]):d.h.hasOwnProperty(b[0]))?(d=a.bytesLoadedCache2,a.bytesLoaded+=c-(null!=t[b[0]]?d.getReserved(b[0]):d.h[b[0]])):a.bytesLoaded+=c;d=a.bytesLoadedCache2;null!=t[b[0]]?d.setReserved(b[0],c):d.h[b[0]]=c;a.simulateProgress||a.onProgress.dispatch(a.bytesLoaded,a.bytesTotal)}}}(c)).onComplete(function(b){return function(c){c=200;var d=a.bytesTotalCache;if(null!=t[b[0]]?
d.existsReserved(b[0]):d.h.hasOwnProperty(b[0]))c=a.bytesTotalCache,c=null!=t[b[0]]?c.getReserved(b[0]):c.h[b[0]];d=a.bytesLoadedCache2;(null!=t[b[0]]?d.existsReserved(b[0]):d.h.hasOwnProperty(b[0]))?(d=a.bytesLoadedCache2,a.bytesLoaded+=c-(null!=t[b[0]]?d.getReserved(b[0]):d.h[b[0]])):a.bytesLoaded+=c;a.loadedAssetLibrary(b[0])}}(c)).onError(function(){return function(a){Ja.error(a,{fileName:"lime/utils/Preloader.hx",lineNumber:332,className:"lime.utils.Preloader",methodName:"updateProgress"})}}())}}this.simulateProgress||
this.loadedLibraries!=this.libraries.length+this.libraryNames.length||(this.preloadComplete||(this.preloadComplete=!0,Ja.verbose("Preload complete",{fileName:"lime/utils/Preloader.hx",lineNumber:346,className:"lime.utils.Preloader",methodName:"updateProgress"})),this.start())},__class__:se};var Ba=function(){};m["openfl.Lib"]=Ba;Ba.__name__="openfl.Lib";Ba.getTimer=function(){return Na.getTimer()};Ba.getURL=function(a,b){Ba.navigateToURL(a,b)};Ba.navigateToURL=function(a,b){null==b&&(b="_blank");
var d=a.url;if(Ea["typeof"](a.data)==Ec.TObject){for(var c="",e=V.fields(a.data),f=0;f<e.length;){var h=e[f];++f;0<c.length&&(c+="&");var k=encodeURIComponent(h)+"=";h=S.string(V.field(a.data,h));c+=k+encodeURIComponent(h)}d=-1<d.indexOf("?")?d+("&"+c):d+("?"+c)}Na.openURL(d,b)};Ba.get_current=function(){null==Vb.current&&(Vb.current=new Xa);return Vb.current};var qe=function(){};m["openfl._Vector.IVector"]=qe;qe.__name__="openfl._Vector.IVector";qe.prototype={__class__:qe};var rj=function(a,b,d){null==
d&&(d=[]);this.__array=d;null!=a&&0<a&&this.set_length(a);this.fixed=1==b};m["openfl._Vector.BoolVector"]=rj;rj.__name__="openfl._Vector.BoolVector";rj.__interfaces__=[qe];rj.prototype={fixed:null,__array:null,toJSON:function(){return this.__array},set_length:function(a){if(!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;){var d=b++;this.__array[d]=!1}else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:rj};var hg=function(a,b,d,c){null==c&&(c=
!1);if(c){if(this.__array=[],null!=d){c=0;for(var e=d.length;c<e;){var f=c++;this.__array[f]=d[f]}}}else null==d&&(d=[]),this.__array=d;null!=a&&0<a&&this.set_length(a);this.fixed=1==b};m["openfl._Vector.FloatVector"]=hg;hg.__name__="openfl._Vector.FloatVector";hg.__interfaces__=[qe];hg.prototype={fixed:null,__array:null,get:function(a){return this.__array[a]},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},set:function(a,b){return!this.fixed||a<this.__array.length?this.__array[a]=
b:b},toJSON:function(){return this.__array},get_length:function(){return this.__array.length},set_length:function(a){if(a!=this.__array.length&&!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;){var d=b++;this.__array[d]=0}else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:hg};var sj=function(a,b,d){null==d&&(d=[]);this.__array=d;null!=a&&0<a&&this.set_length(a);this.fixed=1==b};m["openfl._Vector.FunctionVector"]=sj;sj.__name__="openfl._Vector.FunctionVector";
sj.__interfaces__=[qe];sj.prototype={fixed:null,__array:null,toJSON:function(){return this.__array},set_length:function(a){if(!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;){var d=b++;this.__array[d]=null}else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:sj};var gg=function(a,b,d){null==d&&(d=[]);this.__array=d;null!=a&&0<a&&this.set_length(a);this.fixed=1==b};m["openfl._Vector.IntVector"]=gg;gg.__name__="openfl._Vector.IntVector";gg.__interfaces__=
[qe];gg.prototype={fixed:null,__array:null,get:function(a){return this.__array[a]},toJSON:function(){return this.__array},get_length:function(){return this.__array.length},set_length:function(a){if(!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;){var d=b++;this.__array[d]=0}else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:gg};var $e=function(a,b,d,c){null==c&&(c=!1);if(c){if(this.__array=[],null!=d){c=0;for(var e=d.length;c<e;){var f=c++;
this.__array[f]=d[f]}}}else null==d&&(d=[]),this.__array=d;null!=a&&0<a&&this.set_length(a);this.fixed=1==b};m["openfl._Vector.ObjectVector"]=$e;$e.__name__="openfl._Vector.ObjectVector";$e.__interfaces__=[qe];$e.prototype={fixed:null,__array:null,get:function(a){return this.__array[a]},indexOf:function(a,b){null==b&&(b=0);for(var d=this.__array.length;b<d;){var c=b++;if(this.__array[c]==a)return c}return-1},push:function(a){return this.fixed?this.__array.length:this.__array.push(a)},set:function(a,
b){return!this.fixed||a<this.__array.length?this.__array[a]=b:b},splice:function(a,b){return new $e(null,null,this.__array.splice(a,b))},toJSON:function(){return this.__array},get_length:function(){return this.__array.length},set_length:function(a){if(!this.fixed){var b=this.__array.length;0>a&&(a=0);if(a>b)for(;b<a;)b++,this.__array.push(null);else for(;this.__array.length>a;)this.__array.pop()}return this.__array.length},__class__:$e};var Vb=function(){};m["openfl._internal.Lib"]=Vb;Vb.__name__=
"openfl._internal.Lib";var Le=function(){this.rollOutStack=[]};m["openfl._internal.TouchData"]=Le;Le.__name__="openfl._internal.TouchData";Le.prototype={rollOutStack:null,touch:null,touchDownTarget:null,touchOverTarget:null,reset:function(){this.touchOverTarget=this.touchDownTarget=this.touch=null;this.rollOutStack.splice(0,this.rollOutStack.length)},__class__:Le};var sb=function(){null==sb.empty?(this.types=[],this.b=[],this.i=[],this.f=[],this.o=[],this.ff=[],this.ii=[],this.copyOnWrite=!0):this.clear()};
m["openfl._internal.renderer.DrawCommandBuffer"]=sb;sb.__name__="openfl._internal.renderer.DrawCommandBuffer";sb.prototype={types:null,b:null,copyOnWrite:null,f:null,ff:null,i:null,ii:null,o:null,append:function(a){if(0==this.get_length())return this.types=a.types,this.b=a.b,this.i=a.i,this.f=a.f,this.o=a.o,this.ff=a.ff,this.ii=a.ii,this.copyOnWrite=a.copyOnWrite=!0,a;for(var b=new ld(a),d=0,c=a.types;d<c.length;){var e=c[d];++d;switch(e._hx_index){case 0:switch(b.prev._hx_index){case 0:b.oPos+=2;
b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=
2;break;case 19:b.oPos+=1}b.prev=E.BEGIN_BITMAP_FILL;e=b;this.beginBitmapFill(e.buffer.o[e.oPos],e.buffer.o[e.oPos+1],e.buffer.b[e.bPos],e.buffer.b[e.bPos+1]);break;case 1:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=
1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.BEGIN_FILL;e=b;this.beginFill(e.buffer.i[e.iPos],e.buffer.f[e.fPos]);break;case 2:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;
case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.BEGIN_GRADIENT_FILL;e=b;this.beginGradientFill(e.buffer.o[e.oPos],e.buffer.ii[e.iiPos],
e.buffer.ff[e.ffPos],e.buffer.ii[e.iiPos+1],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2],e.buffer.o[e.oPos+3],e.buffer.f[e.fPos]);break;case 3:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;
case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.BEGIN_SHADER_FILL;e=b;this.beginShaderFill(e.buffer.o[e.oPos]);break;case 4:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=
4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.CUBIC_CURVE_TO;e=b;this.cubicCurveTo(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3],e.buffer.f[e.fPos+
4],e.buffer.f[e.fPos+5]);break;case 5:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=
4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.CURVE_TO;e=b;this.curveTo(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3]);break;case 6:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=
3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.DRAW_CIRCLE;e=b;this.drawCircle(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2]);break;case 7:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;
case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.DRAW_ELLIPSE;
e=b;this.drawEllipse(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3]);break;case 8:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=
2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.DRAW_QUADS;e=b;this.drawQuads(e.buffer.o[e.oPos],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2]);break;case 9:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=
4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.DRAW_RECT;e=b;this.drawRect(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3]);break;case 10:switch(b.prev._hx_index){case 0:b.oPos+=
2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=
2;break;case 19:b.oPos+=1}b.prev=E.DRAW_ROUND_RECT;e=b;this.drawRoundRect(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1],e.buffer.f[e.fPos+2],e.buffer.f[e.fPos+3],e.buffer.f[e.fPos+4],e.buffer.o[e.oPos]);break;case 12:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=
4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.DRAW_TRIANGLES;e=b;this.drawTriangles(e.buffer.o[e.oPos],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2],e.buffer.o[e.oPos+3]);break;case 13:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=
1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.END_FILL;
this.endFill();break;case 14:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;
b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.LINE_BITMAP_STYLE;e=b;this.lineBitmapStyle(e.buffer.o[e.oPos],e.buffer.o[e.oPos+1],e.buffer.b[e.bPos],e.buffer.b[e.bPos+1]);break;case 15:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=
4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.LINE_GRADIENT_STYLE;e=b;this.lineGradientStyle(e.buffer.o[e.oPos],e.buffer.ii[e.iiPos],e.buffer.ff[e.ffPos],e.buffer.ii[e.iiPos+1],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+
2],e.buffer.o[e.oPos+3],e.buffer.f[e.fPos]);break;case 16:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=
1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.LINE_STYLE;e=b;this.lineStyle(e.buffer.o[e.oPos],e.buffer.i[e.iPos],e.buffer.f[e.fPos],e.buffer.b[e.bPos],e.buffer.o[e.oPos+1],e.buffer.o[e.oPos+2],e.buffer.o[e.oPos+3],e.buffer.f[e.fPos+1]);break;case 17:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=
1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.LINE_TO;e=b;this.lineTo(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1]);break;case 18:switch(b.prev._hx_index){case 0:b.oPos+=
2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=
2;break;case 19:b.oPos+=1}b.prev=E.MOVE_TO;e=b;this.moveTo(e.buffer.f[e.fPos],e.buffer.f[e.fPos+1]);break;case 19:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=
2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.OVERRIDE_MATRIX;e=b;this.overrideMatrix(e.buffer.o[e.oPos]);break;case 20:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;
case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.WINDING_EVEN_ODD;this.windingEvenOdd();break;case 21:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=
4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.WINDING_NON_ZERO;this.windingNonZero()}}b.destroy();
return a},beginBitmapFill:function(a,b,d,c){this.prepareWrite();this.types.push(E.BEGIN_BITMAP_FILL);this.o.push(a);this.o.push(b);this.b.push(d);this.b.push(c)},beginFill:function(a,b){this.prepareWrite();this.types.push(E.BEGIN_FILL);this.i.push(a);this.f.push(b)},beginGradientFill:function(a,b,d,c,e,f,h,k){this.prepareWrite();this.types.push(E.BEGIN_GRADIENT_FILL);this.o.push(a);this.ii.push(b);this.ff.push(d);this.ii.push(c);this.o.push(e);this.o.push(f);this.o.push(h);this.f.push(k)},beginShaderFill:function(a){this.prepareWrite();
this.types.push(E.BEGIN_SHADER_FILL);this.o.push(a)},clear:function(){this.types=sb.empty.types;this.b=sb.empty.b;this.i=sb.empty.i;this.f=sb.empty.f;this.o=sb.empty.o;this.ff=sb.empty.ff;this.ii=sb.empty.ii;this.copyOnWrite=!0},copy:function(){var a=new sb;a.append(this);return a},cubicCurveTo:function(a,b,d,c,e,f){this.prepareWrite();this.types.push(E.CUBIC_CURVE_TO);this.f.push(a);this.f.push(b);this.f.push(d);this.f.push(c);this.f.push(e);this.f.push(f)},curveTo:function(a,b,d,c){this.prepareWrite();
this.types.push(E.CURVE_TO);this.f.push(a);this.f.push(b);this.f.push(d);this.f.push(c)},drawCircle:function(a,b,d){this.prepareWrite();this.types.push(E.DRAW_CIRCLE);this.f.push(a);this.f.push(b);this.f.push(d)},drawEllipse:function(a,b,d,c){this.prepareWrite();this.types.push(E.DRAW_ELLIPSE);this.f.push(a);this.f.push(b);this.f.push(d);this.f.push(c)},drawQuads:function(a,b,d){this.prepareWrite();this.types.push(E.DRAW_QUADS);this.o.push(a);this.o.push(b);this.o.push(d)},drawRect:function(a,b,d,
c){this.prepareWrite();this.types.push(E.DRAW_RECT);this.f.push(a);this.f.push(b);this.f.push(d);this.f.push(c)},drawRoundRect:function(a,b,d,c,e,f){this.prepareWrite();this.types.push(E.DRAW_ROUND_RECT);this.f.push(a);this.f.push(b);this.f.push(d);this.f.push(c);this.f.push(e);this.o.push(f)},drawTriangles:function(a,b,d,c){this.prepareWrite();this.types.push(E.DRAW_TRIANGLES);this.o.push(a);this.o.push(b);this.o.push(d);this.o.push(c)},endFill:function(){this.prepareWrite();this.types.push(E.END_FILL)},
lineBitmapStyle:function(a,b,d,c){this.prepareWrite();this.types.push(E.LINE_BITMAP_STYLE);this.o.push(a);this.o.push(b);this.b.push(d);this.b.push(c)},lineGradientStyle:function(a,b,d,c,e,f,h,k){this.prepareWrite();this.types.push(E.LINE_GRADIENT_STYLE);this.o.push(a);this.ii.push(b);this.ff.push(d);this.ii.push(c);this.o.push(e);this.o.push(f);this.o.push(h);this.f.push(k)},lineStyle:function(a,b,d,c,e,f,h,k){this.prepareWrite();this.types.push(E.LINE_STYLE);this.o.push(a);this.i.push(b);this.f.push(d);
this.b.push(c);this.o.push(e);this.o.push(f);this.o.push(h);this.f.push(k)},lineTo:function(a,b){this.prepareWrite();this.types.push(E.LINE_TO);this.f.push(a);this.f.push(b)},moveTo:function(a,b){this.prepareWrite();this.types.push(E.MOVE_TO);this.f.push(a);this.f.push(b)},prepareWrite:function(){this.copyOnWrite&&(this.types=this.types.slice(),this.b=this.b.slice(),this.i=this.i.slice(),this.f=this.f.slice(),this.o=this.o.slice(),this.ff=this.ff.slice(),this.ii=this.ii.slice(),this.copyOnWrite=!1)},
overrideMatrix:function(a){this.prepareWrite();this.types.push(E.OVERRIDE_MATRIX);this.o.push(a)},windingEvenOdd:function(){this.prepareWrite();this.types.push(E.WINDING_EVEN_ODD)},windingNonZero:function(){this.prepareWrite();this.types.push(E.WINDING_NON_ZERO)},get_length:function(){return this.types.length},__class__:sb};var ld=function(a){this.buffer=a;this.bPos=this.iPos=this.fPos=this.oPos=this.ffPos=this.iiPos=this.tsPos=0;this.prev=E.UNKNOWN};m["openfl._internal.renderer.DrawCommandReader"]=
ld;ld.__name__="openfl._internal.renderer.DrawCommandReader";ld.prototype={buffer:null,bPos:null,iiPos:null,iPos:null,ffPos:null,fPos:null,oPos:null,prev:null,tsPos:null,destroy:function(){this.buffer=null;this.reset()},reset:function(){this.bPos=this.iPos=this.fPos=this.oPos=this.ffPos=this.iiPos=this.tsPos=0},__class__:ld};var E=sa["openfl._internal.renderer.DrawCommandType"]={__ename__:"openfl._internal.renderer.DrawCommandType",__constructs__:"BEGIN_BITMAP_FILL BEGIN_FILL BEGIN_GRADIENT_FILL BEGIN_SHADER_FILL CUBIC_CURVE_TO CURVE_TO DRAW_CIRCLE DRAW_ELLIPSE DRAW_QUADS DRAW_RECT DRAW_ROUND_RECT DRAW_TILES DRAW_TRIANGLES END_FILL LINE_BITMAP_STYLE LINE_GRADIENT_STYLE LINE_STYLE LINE_TO MOVE_TO OVERRIDE_MATRIX WINDING_EVEN_ODD WINDING_NON_ZERO UNKNOWN".split(" "),
BEGIN_BITMAP_FILL:{_hx_index:0,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},BEGIN_FILL:{_hx_index:1,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},BEGIN_GRADIENT_FILL:{_hx_index:2,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},BEGIN_SHADER_FILL:{_hx_index:3,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},CUBIC_CURVE_TO:{_hx_index:4,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},CURVE_TO:{_hx_index:5,__enum__:"openfl._internal.renderer.DrawCommandType",
toString:r},DRAW_CIRCLE:{_hx_index:6,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},DRAW_ELLIPSE:{_hx_index:7,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},DRAW_QUADS:{_hx_index:8,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},DRAW_RECT:{_hx_index:9,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},DRAW_ROUND_RECT:{_hx_index:10,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},DRAW_TILES:{_hx_index:11,__enum__:"openfl._internal.renderer.DrawCommandType",
toString:r},DRAW_TRIANGLES:{_hx_index:12,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},END_FILL:{_hx_index:13,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},LINE_BITMAP_STYLE:{_hx_index:14,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},LINE_GRADIENT_STYLE:{_hx_index:15,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},LINE_STYLE:{_hx_index:16,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},LINE_TO:{_hx_index:17,
__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},MOVE_TO:{_hx_index:18,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},OVERRIDE_MATRIX:{_hx_index:19,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},WINDING_EVEN_ODD:{_hx_index:20,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},WINDING_NON_ZERO:{_hx_index:21,__enum__:"openfl._internal.renderer.DrawCommandType",toString:r},UNKNOWN:{_hx_index:22,__enum__:"openfl._internal.renderer.DrawCommandType",
toString:r}},tj=function(){this.inputRefs=[];this.inputFilter=[];this.inputMipFilter=[];this.inputs=[];this.inputWrap=[];this.overrideNames=[];this.overrideValues=[];this.paramLengths=[];this.paramPositions=[];this.paramRefs_Bool=[];this.paramRefs_Float=[];this.paramRefs_Int=[];this.paramTypes=[]};m["openfl._internal.renderer.ShaderBuffer"]=tj;tj.__name__="openfl._internal.renderer.ShaderBuffer";tj.prototype={inputCount:null,inputRefs:null,inputFilter:null,inputMipFilter:null,inputs:null,inputWrap:null,
overrideCount:null,overrideNames:null,overrideValues:null,paramBoolCount:null,paramCount:null,paramData:null,paramDataBuffer:null,paramDataLength:null,paramFloatCount:null,paramLengths:null,paramPositions:null,paramRefs_Bool:null,paramRefs_Float:null,paramRefs_Int:null,paramTypes:null,shader:null,addOverride:function(a,b){this.overrideNames[this.overrideCount]=a;this.overrideValues[this.overrideCount]=b;this.overrideCount++},clearOverride:function(){this.overrideCount=0},__class__:tj};var q=function(){};
m["openfl._internal.renderer.canvas.CanvasGraphics"]=q;q.__name__="openfl._internal.renderer.canvas.CanvasGraphics";q.closePath=function(a){null==a&&(a=!1);null!=q.context.strokeStyle&&(a||q.context.closePath(),q.context.stroke(),a&&q.context.closePath(),q.context.beginPath())};q.createBitmapFill=function(a,b,d){N.convertToCanvas(a.image);q.setSmoothing(d);return q.context.createPattern(a.image.get_src(),b?"repeat":"no-repeat")};q.createGradientPattern=function(a,b,d,c,e,f,h,k){var n=null;k=f=null;
h=!1;null==e&&(e=P.__pool.get(),h=!0);switch(a){case 0:f=qa.__pool.get();f.setTo(-819.2,0);k=f.x;n=f.y;f.x=k*e.a+n*e.c+e.tx;f.y=k*e.b+n*e.d+e.ty;k=qa.__pool.get();k.setTo(819.2,0);n=k.x;a=k.y;k.x=n*e.a+a*e.c+e.tx;k.y=n*e.b+a*e.d+e.ty;n=q.context.createLinearGradient(f.x,f.y,k.x,k.y);break;case 1:f=qa.__pool.get(),f.setTo(1638.4,0),n=f.x,a=f.y,f.x=n*e.a+a*e.c+e.tx,f.y=n*e.b+a*e.d+e.ty,n=q.context.createRadialGradient(e.tx,e.ty,0,e.tx,e.ty,Math.abs((f.x-e.tx)/2))}for(var l,m,g,p,r=0,A=b.length;r<A;)p=
r++,l=b[p],a=d[p],m=(l&16711680)>>>16,g=(l&65280)>>>8,l&=255,p=c[p]/255,0>p&&(p=0),1<p&&(p=1),n.addColorStop(p,"rgba("+m+", "+g+", "+l+", "+a+")");null!=f&&qa.__pool.release(f);null!=k&&qa.__pool.release(k);h&&P.__pool.release(e);return n};q.createTempPatternCanvas=function(a,b,d,c){var e=window.document.createElement("canvas"),f=e.getContext("2d");e.width=d;e.height=c;a=a.image.get_src();f.fillStyle=f.createPattern(a,b?"repeat":"no-repeat");f.beginPath();f.moveTo(0,0);f.lineTo(0,c);f.lineTo(d,c);
f.lineTo(d,0);f.lineTo(0,0);f.closePath();q.hitTesting||f.fill(q.windingRule);return e};q.drawRoundRect=function(a,b,d,c,e,f){null==f&&(f=e);e*=.5;f*=.5;e>d/2&&(e=d/2);f>c/2&&(f=c/2);d=a+d;c=b+c;var h=-e+e*q.SIN45,k=-e+e*q.TAN22,n=-f+f*q.SIN45,l=-f+f*q.TAN22;q.context.moveTo(d,c-f);q.context.quadraticCurveTo(d,c+l,d+h,c+n);q.context.quadraticCurveTo(d+k,c,d-e,c);q.context.lineTo(a+e,c);q.context.quadraticCurveTo(a-k,c,a-h,c+n);q.context.quadraticCurveTo(a,c+l,a,c-f);q.context.lineTo(a,b+f);q.context.quadraticCurveTo(a,
b-l,a-h,b-n);q.context.quadraticCurveTo(a-k,b,a+e,b);q.context.lineTo(d-e,b);q.context.quadraticCurveTo(d+k,b,d+h,b-n);q.context.quadraticCurveTo(d,b-l,d,b+f);q.context.lineTo(d,c-f)};q.endFill=function(){q.context.beginPath();q.playCommands(q.fillCommands,!1);q.fillCommands.clear()};q.endStroke=function(){q.context.beginPath();q.playCommands(q.strokeCommands,!0);q.context.closePath();q.strokeCommands.clear()};q.hitTest=function(a,b,d){q.bounds=a.__bounds;q.graphics=a;if(0==a.__commands.get_length()||
null==q.bounds||0>=q.bounds.width||0>=q.bounds.height)return!1;q.hitTesting=!0;var c=a.__renderTransform,e=b*c.b+d*c.d+c.ty;b=b*c.a+d*c.c+c.tx-(q.bounds.x*c.a+q.bounds.y*c.c+c.tx);d=e-(q.bounds.x*c.b+q.bounds.y*c.d+c.ty);e=a.__canvas;var f=a.__context;a.__canvas=q.hitTestCanvas;a.__context=q.hitTestContext;q.context=a.__context;q.context.setTransform(c.a,c.b,c.c,c.d,c.tx,c.ty);q.fillCommands.clear();q.strokeCommands.clear();q.hasFill=!1;q.hasStroke=!1;q.bitmapFill=null;q.bitmapRepeat=!1;q.windingRule=
"evenodd";c=new ld(a.__commands);for(var h=0,k=a.__commands.types;h<k.length;){var n=k[h];++h;switch(n._hx_index){case 0:case 1:case 2:case 3:q.endFill();if(q.hasFill&&q.context.isPointInPath(b,d,q.windingRule))return c.destroy(),a.__canvas=e,a.__context=f,!0;q.endStroke();if(q.hasStroke&&q.context.isPointInStroke(b,d))return c.destroy(),a.__canvas=e,a.__context=f,!0;if(n==E.BEGIN_BITMAP_FILL){switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=
4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.BEGIN_BITMAP_FILL;n=c;q.fillCommands.beginBitmapFill(n.buffer.o[n.oPos],
n.buffer.o[n.oPos+1],n.buffer.b[n.bPos],n.buffer.b[n.bPos+1]);q.strokeCommands.beginBitmapFill(n.buffer.o[n.oPos],n.buffer.o[n.oPos+1],n.buffer.b[n.bPos],n.buffer.b[n.bPos+1])}else if(n==E.BEGIN_GRADIENT_FILL){switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=
4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.BEGIN_GRADIENT_FILL;n=c;q.fillCommands.beginGradientFill(n.buffer.o[n.oPos],n.buffer.ii[n.iiPos],n.buffer.ff[n.ffPos],n.buffer.ii[n.iiPos+1],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.f[n.fPos]);
q.strokeCommands.beginGradientFill(n.buffer.o[n.oPos],n.buffer.ii[n.iiPos],n.buffer.ff[n.ffPos],n.buffer.ii[n.iiPos+1],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.f[n.fPos])}else if(n==E.BEGIN_SHADER_FILL){switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=
3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.BEGIN_SHADER_FILL;n=c;q.fillCommands.beginShaderFill(n.buffer.o[n.oPos]);q.strokeCommands.beginShaderFill(n.buffer.o[n.oPos])}else{switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=
1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=
E.BEGIN_FILL;n=c;q.fillCommands.beginFill(n.buffer.i[n.iPos],1);q.strokeCommands.beginFill(n.buffer.i[n.iPos],1)}break;case 4:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=
2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.CUBIC_CURVE_TO;n=c;q.fillCommands.cubicCurveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3],n.buffer.f[n.fPos+4],n.buffer.f[n.fPos+5]);q.strokeCommands.cubicCurveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3],n.buffer.f[n.fPos+
4],n.buffer.f[n.fPos+5]);break;case 5:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=
4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.CURVE_TO;n=c;q.fillCommands.curveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);q.strokeCommands.curveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);break;case 6:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=
1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.DRAW_CIRCLE;n=c;q.fillCommands.drawCircle(n.buffer.f[n.fPos],n.buffer.f[n.fPos+
1],n.buffer.f[n.fPos+2]);q.strokeCommands.drawCircle(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2]);break;case 7:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=
2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.DRAW_ELLIPSE;n=c;q.fillCommands.drawEllipse(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);q.strokeCommands.drawEllipse(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);break;case 9:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=
2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;
break;case 19:c.oPos+=1}c.prev=E.DRAW_RECT;n=c;q.fillCommands.drawRect(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);q.strokeCommands.drawRect(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3]);break;case 10:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=
3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.DRAW_ROUND_RECT;n=c;q.fillCommands.drawRoundRect(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3],n.buffer.f[n.fPos+
4],n.buffer.o[n.oPos]);q.strokeCommands.drawRoundRect(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1],n.buffer.f[n.fPos+2],n.buffer.f[n.fPos+3],n.buffer.f[n.fPos+4],n.buffer.o[n.oPos]);break;case 13:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=
5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.END_FILL;q.endFill();if(q.hasFill&&q.context.isPointInPath(b,d,q.windingRule))return c.destroy(),a.__canvas=e,a.__context=f,!0;q.endStroke();if(q.hasStroke&&q.context.isPointInStroke(b,d))return c.destroy(),a.__canvas=e,a.__context=f,!0;q.hasFill=
!1;q.bitmapFill=null;break;case 14:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=
4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.LINE_BITMAP_STYLE;n=c;q.strokeCommands.lineBitmapStyle(n.buffer.o[n.oPos],n.buffer.o[n.oPos+1],n.buffer.b[n.bPos],n.buffer.b[n.bPos+1]);break;case 15:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;
case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.LINE_GRADIENT_STYLE;n=c;q.strokeCommands.lineGradientStyle(n.buffer.o[n.oPos],n.buffer.ii[n.iiPos],n.buffer.ff[n.ffPos],n.buffer.ii[n.iiPos+1],n.buffer.o[n.oPos+
1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.f[n.fPos]);break;case 16:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=
2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.LINE_STYLE;n=c;q.strokeCommands.lineStyle(n.buffer.o[n.oPos],n.buffer.i[n.iPos],1,n.buffer.b[n.bPos],n.buffer.o[n.oPos+1],n.buffer.o[n.oPos+2],n.buffer.o[n.oPos+3],n.buffer.f[n.fPos+1]);break;case 17:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;
case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.LINE_TO;n=c;q.fillCommands.lineTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+
1]);q.strokeCommands.lineTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1]);break;case 18:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=
2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.MOVE_TO;n=c;q.fillCommands.moveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1]);q.strokeCommands.moveTo(n.buffer.f[n.fPos],n.buffer.f[n.fPos+1]);break;case 20:q.windingRule="evenodd";break;case 21:q.windingRule="nonzero";break;default:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=
2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=n}}h=!1;0<q.fillCommands.get_length()&&
q.endFill();q.hasFill&&q.context.isPointInPath(b,d,q.windingRule)&&(h=!0);0<q.strokeCommands.get_length()&&q.endStroke();q.hasStroke&&q.context.isPointInStroke(b,d)&&(h=!0);c.destroy();a.__canvas=e;a.__context=f;return h};q.normalizeUVT=function(a,b){null==b&&(b=!1);for(var d=-Infinity,c,e=a.get_length(),f=1,h=e+1;f<h;)c=f++,b&&0==c%3||(c=a.get(c-1),d<c&&(d=c));if(!b)return{max:d,uvt:a};f=tb.toFloatVector(null);h=1;for(e+=1;h<e;)c=h++,b&&0==c%3||f.push(a.get(c-1));return{max:d,uvt:f}};q.playCommands=
function(a,b){null==b&&(b=!1);q.bounds=q.graphics.__bounds;var d=q.bounds.x,c=q.bounds.y,e=0,f=0,h=!1,k=0,n=0,l=!1;q.windingRule="evenodd";q.setSmoothing(!0);var m=!1,g=new ld(a),p,r,A,t=null,J=null,u=0,v=a.types;a:for(;u<v.length;){var Fd=v[u];++u;switch(Fd._hx_index){case 0:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=
3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.BEGIN_BITMAP_FILL;var w=g;q.bitmapFill=w.buffer.o[w.oPos];q.context.fillStyle=q.createBitmapFill(w.buffer.o[w.oPos],w.buffer.b[w.bPos],w.buffer.b[w.bPos+
1]);q.hasFill=!0;null!=w.buffer.o[w.oPos+1]?(q.pendingMatrix=w.buffer.o[w.oPos+1],q.inversePendingMatrix=w.buffer.o[w.oPos+1].clone(),q.inversePendingMatrix.invert()):(q.pendingMatrix=null,q.inversePendingMatrix=null);break;case 1:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=
3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.BEGIN_FILL;var z=g;if(.005>z.buffer.f[z.fPos])q.hasFill=!1;else{if(1==z.buffer.f[z.fPos]){var B=Q.hex(z.buffer.i[z.iPos]&16777215,6);q.context.fillStyle="#"+B}else{var I=(z.buffer.i[z.iPos]&16711680)>>>
16;var y=(z.buffer.i[z.iPos]&65280)>>>8;var Mb=z.buffer.i[z.iPos]&255;q.context.fillStyle="rgba("+I+", "+y+", "+Mb+", "+z.buffer.f[z.fPos]+")"}q.bitmapFill=null;q.setSmoothing(!0);q.hasFill=!0}break;case 2:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=
4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.BEGIN_GRADIENT_FILL;var x=g;q.context.fillStyle=q.createGradientPattern(x.buffer.o[x.oPos],x.buffer.ii[x.iiPos],x.buffer.ff[x.ffPos],x.buffer.ii[x.iiPos+1],x.buffer.o[x.oPos+1],x.buffer.o[x.oPos+2],x.buffer.o[x.oPos+
3],x.buffer.f[x.fPos]);q.bitmapFill=null;q.setSmoothing(!0);q.hasFill=!0;break;case 3:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=
4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.BEGIN_SHADER_FILL;var F=g,K=F.buffer.o[F.oPos];0<K.inputCount&&(q.bitmapFill=K.inputs[0],q.context.fillStyle=q.createBitmapFill(q.bitmapFill,0!=K.inputWrap[0],5!=K.inputFilter[0]),q.hasFill=!0,q.pendingMatrix=null,q.inversePendingMatrix=null);break;case 4:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=
1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.CUBIC_CURVE_TO;
var G=g;m=!0;q.context.bezierCurveTo(G.buffer.f[G.fPos]-d,G.buffer.f[G.fPos+1]-c,G.buffer.f[G.fPos+2]-d,G.buffer.f[G.fPos+3]-c,G.buffer.f[G.fPos+4]-d,G.buffer.f[G.fPos+5]-c);break;case 5:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=
5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.CURVE_TO;var D=g;m=!0;q.context.quadraticCurveTo(D.buffer.f[D.fPos]-d,D.buffer.f[D.fPos+1]-c,D.buffer.f[D.fPos+2]-d,D.buffer.f[D.fPos+3]-c);break;case 6:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;
case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.DRAW_CIRCLE;
var L=g;m=!0;q.context.moveTo(L.buffer.f[L.fPos]-d+L.buffer.f[L.fPos+2],L.buffer.f[L.fPos+1]-c);q.context.arc(L.buffer.f[L.fPos]-d,L.buffer.f[L.fPos+1]-c,L.buffer.f[L.fPos+2],0,2*Math.PI,!0);break;case 7:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=
4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.DRAW_ELLIPSE;var H=g;m=!0;var N=H.buffer.f[H.fPos];var R=H.buffer.f[H.fPos+1];var S=H.buffer.f[H.fPos+2];var U=H.buffer.f[H.fPos+3];N-=d;R-=c;var W=S/2*.5522848;var X=U/2*.5522848;var Y=N+S;var ea=R+U;var aa=N+S/2;var Z=
R+U/2;q.context.moveTo(N,Z);q.context.bezierCurveTo(N,Z-X,aa-W,R,aa,R);q.context.bezierCurveTo(aa+W,R,Y,Z-X,Y,Z);q.context.bezierCurveTo(Y,Z+X,aa+W,ea,aa,ea);q.context.bezierCurveTo(aa-W,ea,N,Z+X,N,Z);break;case 8:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=
4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.DRAW_QUADS;var ba=g,ha=ba.buffer.o[ba.oPos],ia=ba.buffer.o[ba.oPos+1],V=ba.buffer.o[ba.oPos+2],ja=null!=ia,ka=!1,na=!1,la=ja?ia.get_length():Math.floor(ha.get_length()/4);if(0==la)return;null!=V&&(V.get_length()>=6*la?
na=ka=!0:V.get_length()>=4*la?ka=!0:V.get_length()>=2*la&&(na=!0));var fa=M.__pool.get(),da=P.__pool.get(),sa=q.graphics.__renderTransform;q.context.save();for(var wa=0,va=la;wa<va;){var pa=wa++;var ra=ja?4*ia.get(pa):4*pa;if(!(0>ra||(fa.setTo(ha.get(ra),ha.get(ra+1),ha.get(ra+2),ha.get(ra+3)),0>=fa.width||0>=fa.height))){if(ka&&na){var ma=6*pa;da.setTo(V.get(ma),V.get(ma+1),V.get(ma+2),V.get(ma+3),V.get(ma+4),V.get(ma+5))}else ka?(ma=4*pa,da.setTo(V.get(ma),V.get(ma+1),V.get(ma+2),V.get(ma+3),fa.x,
fa.y)):na?(ma=2*pa,da.tx=V.get(ma),da.ty=V.get(ma+1)):(da.tx=fa.x,da.ty=fa.y);da.tx+=e-d;da.ty+=f-c;da.concat(sa);q.context.setTransform(da.a,da.b,da.c,da.d,da.tx,da.ty);null!=q.bitmapFill?q.context.drawImage(q.bitmapFill.image.get_src(),fa.x,fa.y,fa.width,fa.height,0,0,fa.width,fa.height):q.context.fillRect(0,0,fa.width,fa.height)}}M.__pool.release(fa);P.__pool.release(da);q.context.restore();break;case 9:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;
case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.DRAW_RECT;
var Ka=g;var Aa=!1;if(null!=q.bitmapFill&&!q.hitTesting){var ta=A=r=p=0;var Ea=!0;if(null!=q.pendingMatrix)if(0!=q.pendingMatrix.b||0!=q.pendingMatrix.c)Ea=!1;else{null==t&&(t=qa.__pool.get());null==J&&(J=qa.__pool.get());t.setTo(Ka.buffer.f[Ka.fPos],Ka.buffer.f[Ka.fPos+1]);var xa=q.inversePendingMatrix,Ga=t.x,Ca=t.y;t.x=Ga*xa.a+Ca*xa.c+xa.tx;t.y=Ga*xa.b+Ca*xa.d+xa.ty;J.setTo(Ka.buffer.f[Ka.fPos]+Ka.buffer.f[Ka.fPos+2],Ka.buffer.f[Ka.fPos+1]+Ka.buffer.f[Ka.fPos+3]);var za=q.inversePendingMatrix,Ja=
J.x,Ma=J.y;J.x=Ja*za.a+Ma*za.c+za.tx;J.y=Ja*za.b+Ma*za.d+za.ty;p=t.y;ta=t.x;A=J.y;r=J.x}else p=Ka.buffer.f[Ka.fPos+1],ta=Ka.buffer.f[Ka.fPos],A=Ka.buffer.f[Ka.fPos+1]+Ka.buffer.f[Ka.fPos+3],r=Ka.buffer.f[Ka.fPos]+Ka.buffer.f[Ka.fPos+2];Ea&&0<=p&&0<=ta&&r<=q.bitmapFill.width&&A<=q.bitmapFill.height&&(Aa=!0,q.hitTesting||q.context.drawImage(q.bitmapFill.image.get_src(),ta,p,r-ta,A-p,Ka.buffer.f[Ka.fPos]-d,Ka.buffer.f[Ka.fPos+1]-c,Ka.buffer.f[Ka.fPos+2],Ka.buffer.f[Ka.fPos+3]))}Aa||(m=!0,q.context.rect(Ka.buffer.f[Ka.fPos]-
d,Ka.buffer.f[Ka.fPos+1]-c,Ka.buffer.f[Ka.fPos+2],Ka.buffer.f[Ka.fPos+3]));break;case 10:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=
4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.DRAW_ROUND_RECT;var ya=g;m=!0;q.drawRoundRect(ya.buffer.f[ya.fPos]-d,ya.buffer.f[ya.fPos+1]-c,ya.buffer.f[ya.fPos+2],ya.buffer.f[ya.fPos+3],ya.buffer.f[ya.fPos+4],ya.buffer.o[ya.oPos]);break;case 12:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=
1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.DRAW_TRIANGLES;var Fa=g,Ba=Fa.buffer.o[Fa.oPos],Ha=Fa.buffer.o[Fa.oPos+
1],ua=Fa.buffer.o[Fa.oPos+2],Da=null,Oa=null==q.bitmapFill;if(Oa&&null!=ua)break a;if(!Oa){if(null==ua){ua=tb.toFloatVector(null);for(var Va=0,cb=Ba.get_length()/2|0;Va<cb;){var Za=Va++;ua.push(Ba.get(2*Za)-d/q.bitmapFill.width);ua.push(Ba.get(2*Za+1)-c/q.bitmapFill.height)}}var bb=ua.get_length()!=Ba.get_length(),Xa=q.normalizeUVT(ua,bb),Ya=Xa.max;ua=Xa.uvt;Da=1<Ya?q.createTempPatternCanvas(q.bitmapFill,q.bitmapRepeat,q.bounds.width|0,q.bounds.height|0):q.createTempPatternCanvas(q.bitmapFill,q.bitmapRepeat,
q.bitmapFill.width,q.bitmapFill.height)}for(var Ia=0,kb=Ha.get_length(),fb,db,lb,pb,jb,gb,qb,ob,rb,Qa,Na,Ua,oa,La,Pa,nb,ib,Ta,Wa,$a,Ra,Sa,hb,Bb,yb,vb,zb,xb;Ia<kb;){fb=Ia;db=Ia+1;lb=Ia+2;pb=2*Ha.get(fb);jb=2*Ha.get(fb)+1;gb=2*Ha.get(db);qb=2*Ha.get(db)+1;ob=2*Ha.get(lb);rb=2*Ha.get(lb)+1;Qa=Ba.get(pb)-d;Na=Ba.get(jb)-c;Ua=Ba.get(gb)-d;oa=Ba.get(qb)-c;La=Ba.get(ob)-d;Pa=Ba.get(rb)-c;switch(Fa.buffer.o[Fa.oPos+3]){case 0:if(0>(Ua-Qa)*(Pa-Na)-(oa-Na)*(La-Qa)){Ia+=3;continue}break;case 2:if(!(0>(Ua-Qa)*
(Pa-Na)-(oa-Na)*(La-Qa))){Ia+=3;continue}}Oa?(q.context.beginPath(),q.context.moveTo(Qa,Na),q.context.lineTo(Ua,oa),q.context.lineTo(La,Pa),q.context.closePath(),q.hitTesting||q.context.fill(q.windingRule),Ia+=3):(nb=ua.get(pb)*Da.width,Ta=ua.get(gb)*Da.width,$a=ua.get(ob)*Da.width,ib=ua.get(jb)*Da.height,Wa=ua.get(qb)*Da.height,Ra=ua.get(rb)*Da.height,Sa=nb*(Ra-Wa)-Ta*Ra+$a*Wa+(Ta-$a)*ib,0==Sa?(Ia+=3,q.context.restore()):(q.context.save(),q.context.beginPath(),q.context.moveTo(Qa,Na),q.context.lineTo(Ua,
oa),q.context.lineTo(La,Pa),q.context.closePath(),q.context.clip(),hb=-(ib*(La-Ua)-Wa*La+Ra*Ua+(Wa-Ra)*Qa)/Sa,Bb=(Wa*Pa+ib*(oa-Pa)-Ra*oa+(Ra-Wa)*Na)/Sa,yb=(nb*(La-Ua)-Ta*La+$a*Ua+(Ta-$a)*Qa)/Sa,vb=-(Ta*Pa+nb*(oa-Pa)-$a*oa+($a-Ta)*Na)/Sa,zb=(nb*(Ra*Ua-Wa*La)+ib*(Ta*La-$a*Ua)+($a*Wa-Ta*Ra)*Qa)/Sa,xb=(nb*(Ra*oa-Wa*Pa)+ib*(Ta*Pa-$a*oa)+($a*Wa-Ta*Ra)*Na)/Sa,q.context.transform(hb,Bb,yb,vb,zb,xb),q.context.drawImage(Da,0,0,Da.width,Da.height),q.context.restore(),Ia+=3))}break;case 14:switch(g.prev._hx_index){case 0:g.oPos+=
2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=
2;break;case 19:g.oPos+=1}g.prev=E.LINE_BITMAP_STYLE;var mb=g;b&&q.hasStroke&&q.closePath();q.context.moveTo(e-d,f-c);q.context.strokeStyle=q.createBitmapFill(mb.buffer.o[mb.oPos],mb.buffer.b[mb.bPos],mb.buffer.b[mb.bPos+1]);q.hasStroke=!0;break;case 15:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=
4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.LINE_GRADIENT_STYLE;var Mc=g;b&&q.hasStroke&&q.closePath();q.context.moveTo(e-d,f-c);q.context.strokeStyle=q.createGradientPattern(Mc.buffer.o[Mc.oPos],Mc.buffer.ii[Mc.iiPos],
Mc.buffer.ff[Mc.ffPos],Mc.buffer.ii[Mc.iiPos+1],Mc.buffer.o[Mc.oPos+1],Mc.buffer.o[Mc.oPos+2],Mc.buffer.o[Mc.oPos+3],Mc.buffer.f[Mc.fPos]);q.setSmoothing(!0);q.hasStroke=!0;break;case 16:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=
5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.LINE_STYLE;var eb=g;b&&q.hasStroke&&q.closePath(!0);q.context.moveTo(e-d,f-c);if(null==eb.buffer.o[eb.oPos])q.hasStroke=!1;else{q.context.lineWidth=0<eb.buffer.o[eb.oPos]?eb.buffer.o[eb.oPos]:1;var Ab=null==eb.buffer.o[eb.oPos+3]?"round":wk.toString(eb.buffer.o[eb.oPos+
3]).toLowerCase();q.context.lineJoin=Ab;var Cb=null==eb.buffer.o[eb.oPos+2]?"round":0==eb.buffer.o[eb.oPos+2]?"butt":xk.toString(eb.buffer.o[eb.oPos+2]).toLowerCase();q.context.lineCap=Cb;q.context.miterLimit=eb.buffer.f[eb.fPos+1];if(1==eb.buffer.f[eb.fPos]){var Fb=Q.hex(eb.buffer.i[eb.iPos]&16777215,6);q.context.strokeStyle="#"+Fb}else I=(eb.buffer.i[eb.iPos]&16711680)>>>16,y=(eb.buffer.i[eb.iPos]&65280)>>>8,Mb=eb.buffer.i[eb.iPos]&255,q.context.strokeStyle="rgba("+I+", "+y+", "+Mb+", "+eb.buffer.f[eb.fPos]+
")";q.setSmoothing(!0);q.hasStroke=!0}break;case 17:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;
break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.LINE_TO;var sb=g;m=!0;q.context.lineTo(sb.buffer.f[sb.fPos]-d,sb.buffer.f[sb.fPos+1]-c);e=sb.buffer.f[sb.fPos];f=sb.buffer.f[sb.fPos+1];e==k&&f==n&&(h=!0);break;case 18:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=
4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=E.MOVE_TO;var ab=g;q.context.moveTo(ab.buffer.f[ab.fPos]-d,ab.buffer.f[ab.fPos+1]-c);e=ab.buffer.f[ab.fPos];f=ab.buffer.f[ab.fPos+
1];l&&(h=!0);k=ab.buffer.f[ab.fPos];n=ab.buffer.f[ab.fPos+1];l=!0;break;case 20:q.windingRule="evenodd";break;case 21:q.windingRule="nonzero";break;default:switch(g.prev._hx_index){case 0:g.oPos+=2;g.bPos+=2;break;case 1:g.iPos+=1;g.fPos+=1;break;case 2:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 3:g.oPos+=1;break;case 4:g.fPos+=6;break;case 5:g.fPos+=4;break;case 6:g.fPos+=3;break;case 7:g.fPos+=4;break;case 8:g.oPos+=3;break;case 9:g.fPos+=4;break;case 10:g.fPos+=5;g.oPos+=1;break;case 12:g.oPos+=
4;break;case 14:g.oPos+=2;g.bPos+=2;break;case 15:g.oPos+=4;g.iiPos+=2;g.ffPos+=1;g.fPos+=1;break;case 16:g.oPos+=4;g.iPos+=1;g.fPos+=2;g.bPos+=1;break;case 17:g.fPos+=2;break;case 18:g.fPos+=2;break;case 19:g.oPos+=1}g.prev=Fd}}null!=t&&qa.__pool.release(t);null!=J&&qa.__pool.release(J);g.destroy();m&&(b&&q.hasStroke&&(q.hasFill&&h?(q.context.lineTo(k-d,n-c),q.closePath(!1)):h&&e==k&&f==n&&q.closePath(!1),q.hitTesting||q.context.stroke()),b||!q.hasFill&&null==q.bitmapFill||(q.context.translate(-q.bounds.x,
-q.bounds.y),null!=q.pendingMatrix?(q.context.transform(q.pendingMatrix.a,q.pendingMatrix.b,q.pendingMatrix.c,q.pendingMatrix.d,q.pendingMatrix.tx,q.pendingMatrix.ty),q.hitTesting||q.context.fill(q.windingRule),q.context.transform(q.inversePendingMatrix.a,q.inversePendingMatrix.b,q.inversePendingMatrix.c,q.inversePendingMatrix.d,q.inversePendingMatrix.tx,q.inversePendingMatrix.ty)):q.hitTesting||q.context.fill(q.windingRule),q.context.translate(q.bounds.x,q.bounds.y),q.context.closePath()))};q.render=
function(a,b){a.__update(b.__worldTransform);if(a.__dirty){q.hitTesting=!1;q.graphics=a;q.allowSmoothing=b.__allowSmoothing;q.bounds=a.__bounds;var d=a.__width,c=a.__height;if(!a.__visible||0==a.__commands.get_length()||null==q.bounds||1>d||1>c)a.__canvas=null,a.__context=null,a.__bitmap=null;else{null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"));q.context=a.__context;var e=a.__renderTransform,f=a.__canvas,h=b.pixelRatio,k=d*h|0,n=c*h|0;
b.__isDOM?(f.width==k&&f.height==n?q.context.clearRect(0,0,k,n):(f.width=k,f.height=n,f.style.width=d+"px",f.style.height=c+"px"),b=a.__renderTransform,q.context.setTransform(b.a*h,b.b*h,b.c*h,b.d*h,b.tx*h,b.ty*h)):(f.width==k&&f.height==n?(q.context.closePath(),q.context.setTransform(1,0,0,1,0,0),q.context.clearRect(0,0,k,n)):(f.width=d,f.height=c),q.context.setTransform(e.a,e.b,e.c,e.d,e.tx,e.ty));q.fillCommands.clear();q.strokeCommands.clear();q.hasFill=!1;q.hasStroke=!1;q.bitmapFill=null;h=q.bitmapRepeat=
!1;d=b=0;q.windingRule="evenodd";c=new ld(a.__commands);e=0;for(f=a.__commands.types;e<f.length;)switch(k=f[e],++e,k._hx_index){case 0:case 1:case 2:case 3:q.endFill();q.endStroke();if(k==E.BEGIN_BITMAP_FILL){switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=
4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.BEGIN_BITMAP_FILL;k=c;q.fillCommands.beginBitmapFill(k.buffer.o[k.oPos],k.buffer.o[k.oPos+1],k.buffer.b[k.bPos],k.buffer.b[k.bPos+1]);q.strokeCommands.beginBitmapFill(k.buffer.o[k.oPos],k.buffer.o[k.oPos+1],k.buffer.b[k.bPos],
k.buffer.b[k.bPos+1])}else if(k==E.BEGIN_GRADIENT_FILL){switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=
1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.BEGIN_GRADIENT_FILL;k=c;q.fillCommands.beginGradientFill(k.buffer.o[k.oPos],k.buffer.ii[k.iiPos],k.buffer.ff[k.ffPos],k.buffer.ii[k.iiPos+1],k.buffer.o[k.oPos+1],k.buffer.o[k.oPos+2],k.buffer.o[k.oPos+3],k.buffer.f[k.fPos]);q.strokeCommands.beginGradientFill(k.buffer.o[k.oPos],k.buffer.ii[k.iiPos],k.buffer.ff[k.ffPos],k.buffer.ii[k.iiPos+1],k.buffer.o[k.oPos+1],
k.buffer.o[k.oPos+2],k.buffer.o[k.oPos+3],k.buffer.f[k.fPos])}else if(k==E.BEGIN_SHADER_FILL){switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=
4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.BEGIN_SHADER_FILL;k=c;q.fillCommands.beginShaderFill(k.buffer.o[k.oPos]);q.strokeCommands.beginShaderFill(k.buffer.o[k.oPos])}else{switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=
4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.BEGIN_FILL;k=c;q.fillCommands.beginFill(k.buffer.i[k.iPos],k.buffer.f[k.fPos]);q.strokeCommands.beginFill(k.buffer.i[k.iPos],
k.buffer.f[k.fPos])}break;case 4:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=
4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.CUBIC_CURVE_TO;k=c;q.fillCommands.cubicCurveTo(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1],k.buffer.f[k.fPos+2],k.buffer.f[k.fPos+3],k.buffer.f[k.fPos+4],k.buffer.f[k.fPos+5]);h?q.strokeCommands.cubicCurveTo(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1],k.buffer.f[k.fPos+2],k.buffer.f[k.fPos+3],k.buffer.f[k.fPos+4],k.buffer.f[k.fPos+5]):(b=k.buffer.f[k.fPos+4],d=k.buffer.f[k.fPos+5]);break;case 5:switch(c.prev._hx_index){case 0:c.oPos+=
2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=
2;break;case 19:c.oPos+=1}c.prev=E.CURVE_TO;k=c;q.fillCommands.curveTo(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1],k.buffer.f[k.fPos+2],k.buffer.f[k.fPos+3]);h?q.strokeCommands.curveTo(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1],k.buffer.f[k.fPos+2],k.buffer.f[k.fPos+3]):(b=k.buffer.f[k.fPos+2],d=k.buffer.f[k.fPos+3]);break;case 6:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=
6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.DRAW_CIRCLE;k=c;q.fillCommands.drawCircle(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1],k.buffer.f[k.fPos+2]);
h&&q.strokeCommands.drawCircle(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1],k.buffer.f[k.fPos+2]);break;case 7:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;
case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.DRAW_ELLIPSE;k=c;q.fillCommands.drawEllipse(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1],k.buffer.f[k.fPos+2],k.buffer.f[k.fPos+3]);h&&q.strokeCommands.drawEllipse(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1],k.buffer.f[k.fPos+2],k.buffer.f[k.fPos+3]);break;case 8:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=
1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=
E.DRAW_QUADS;k=c;q.fillCommands.drawQuads(k.buffer.o[k.oPos],k.buffer.o[k.oPos+1],k.buffer.o[k.oPos+2]);break;case 9:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=
2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.DRAW_RECT;k=c;q.fillCommands.drawRect(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1],k.buffer.f[k.fPos+2],k.buffer.f[k.fPos+3]);h&&q.strokeCommands.drawRect(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1],k.buffer.f[k.fPos+2],k.buffer.f[k.fPos+3]);break;case 10:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=
1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=
E.DRAW_ROUND_RECT;k=c;q.fillCommands.drawRoundRect(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1],k.buffer.f[k.fPos+2],k.buffer.f[k.fPos+3],k.buffer.f[k.fPos+4],k.buffer.o[k.oPos]);h&&q.strokeCommands.drawRoundRect(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1],k.buffer.f[k.fPos+2],k.buffer.f[k.fPos+3],k.buffer.f[k.fPos+4],k.buffer.o[k.oPos]);break;case 12:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=
1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.DRAW_TRIANGLES;k=c;q.fillCommands.drawTriangles(k.buffer.o[k.oPos],k.buffer.o[k.oPos+
1],k.buffer.o[k.oPos+2],k.buffer.o[k.oPos+3]);break;case 13:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=
1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.END_FILL;q.endFill();q.endStroke();h=q.hasFill=!1;q.bitmapFill=null;d=b=0;break;case 14:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=
3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.LINE_BITMAP_STYLE;k=c;h||0==b&&0==d||(q.strokeCommands.moveTo(b,d),d=b=0);h=!0;q.strokeCommands.lineBitmapStyle(k.buffer.o[k.oPos],k.buffer.o[k.oPos+1],k.buffer.b[k.bPos],k.buffer.b[k.bPos+1]);
break;case 15:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=
2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.LINE_GRADIENT_STYLE;k=c;h||0==b&&0==d||(q.strokeCommands.moveTo(b,d),d=b=0);h=!0;q.strokeCommands.lineGradientStyle(k.buffer.o[k.oPos],k.buffer.ii[k.iiPos],k.buffer.ff[k.ffPos],k.buffer.ii[k.iiPos+1],k.buffer.o[k.oPos+1],k.buffer.o[k.oPos+2],k.buffer.o[k.oPos+3],k.buffer.f[k.fPos]);break;case 16:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=
2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.LINE_STYLE;k=c;h||null==k.buffer.o[k.oPos]||
0==b&&0==d||(q.strokeCommands.moveTo(b,d),d=b=0);h=null!=k.buffer.o[k.oPos];q.strokeCommands.lineStyle(k.buffer.o[k.oPos],k.buffer.i[k.iPos],k.buffer.f[k.fPos],k.buffer.b[k.bPos],k.buffer.o[k.oPos+1],k.buffer.o[k.oPos+2],k.buffer.o[k.oPos+3],k.buffer.f[k.fPos+1]);break;case 17:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=
3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.LINE_TO;k=c;q.fillCommands.lineTo(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1]);h?q.strokeCommands.lineTo(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1]):(b=k.buffer.f[k.fPos],
d=k.buffer.f[k.fPos+1]);break;case 18:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=
4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.MOVE_TO;k=c;q.fillCommands.moveTo(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1]);h?q.strokeCommands.moveTo(k.buffer.f[k.fPos],k.buffer.f[k.fPos+1]):(b=k.buffer.f[k.fPos],d=k.buffer.f[k.fPos+1]);break;case 20:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;
break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.WINDING_EVEN_ODD;q.fillCommands.windingEvenOdd();q.windingRule="evenodd";break;case 21:switch(c.prev._hx_index){case 0:c.oPos+=
2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=
2;break;case 19:c.oPos+=1}c.prev=E.WINDING_NON_ZERO;q.fillCommands.windingNonZero();q.windingRule="nonzero";break;default:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=
2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=k}0<q.fillCommands.get_length()&&q.endFill();0<q.strokeCommands.get_length()&&q.endStroke();c.destroy();a.__bitmap=ja.fromCanvas(a.__canvas)}a.set___dirty(!1)}};q.renderMask=function(a,b){if(0!=a.__commands.get_length()){q.context=b.context;b=new ld(a.__commands);var d=0;for(a=a.__commands.types;d<a.length;){var c=
a[d];++d;switch(c._hx_index){case 4:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=
4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.CUBIC_CURVE_TO;c=b;q.context.bezierCurveTo(c.buffer.f[c.fPos]-0,c.buffer.f[c.fPos+1]-0,c.buffer.f[c.fPos+2]-0,c.buffer.f[c.fPos+3]-0,c.buffer.f[c.fPos+4]-0,c.buffer.f[c.fPos+5]-0);break;case 5:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=
4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.CURVE_TO;c=b;q.context.quadraticCurveTo(c.buffer.f[c.fPos]-0,c.buffer.f[c.fPos+1]-0,c.buffer.f[c.fPos+2]-0,c.buffer.f[c.fPos+
3]-0);break;case 6:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;
b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.DRAW_CIRCLE;c=b;q.context.arc(c.buffer.f[c.fPos]-0,c.buffer.f[c.fPos+1]-0,c.buffer.f[c.fPos+2],0,2*Math.PI,!0);break;case 7:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=
3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.DRAW_ELLIPSE;var e=b;c=e.buffer.f[e.fPos];var f=e.buffer.f[e.fPos+1];var h=e.buffer.f[e.fPos+2];var k=e.buffer.f[e.fPos+3];c-=0;f-=0;e=h/2*.5522848;var n=k/2*.5522848;var l=c+h;var m=f+k;h=c+h/
2;k=f+k/2;q.context.moveTo(c,k);q.context.bezierCurveTo(c,k-n,h-e,f,h,f);q.context.bezierCurveTo(h+e,f,l,k-n,l,k);q.context.bezierCurveTo(l,k+n,h+e,m,h,m);q.context.bezierCurveTo(h-e,m,c,k+n,c,k);break;case 9:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=
4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.DRAW_RECT;c=b;q.context.beginPath();q.context.rect(c.buffer.f[c.fPos]-0,c.buffer.f[c.fPos+1]-0,c.buffer.f[c.fPos+2],c.buffer.f[c.fPos+3]);q.context.closePath();break;case 10:switch(b.prev._hx_index){case 0:b.oPos+=2;
b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=
2;break;case 19:b.oPos+=1}b.prev=E.DRAW_ROUND_RECT;c=b;q.drawRoundRect(c.buffer.f[c.fPos]-0,c.buffer.f[c.fPos+1]-0,c.buffer.f[c.fPos+2],c.buffer.f[c.fPos+3],c.buffer.f[c.fPos+4],c.buffer.o[c.oPos]);break;case 17:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=
4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.LINE_TO;c=b;q.context.lineTo(c.buffer.f[c.fPos]-0,c.buffer.f[c.fPos+1]-0);break;case 18:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=
1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=E.MOVE_TO;c=b;q.context.moveTo(c.buffer.f[c.fPos]-
0,c.buffer.f[c.fPos+1]-0);break;default:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=
4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=c}}b.destroy()}};q.setSmoothing=function(a){q.allowSmoothing||(a=!1);q.context.imageSmoothingEnabled!=a&&(q.context.mozImageSmoothingEnabled=a,q.context.msImageSmoothingEnabled=a,q.context.imageSmoothingEnabled=a)};var K=function(){};m["openfl._internal.renderer.canvas.CanvasTextField"]=K;K.__name__="openfl._internal.renderer.canvas.CanvasTextField";var Jh=function(){};m["openfl._internal.renderer.canvas.CanvasTilemap"]=
Jh;Jh.__name__="openfl._internal.renderer.canvas.CanvasTilemap";Jh.renderTileContainer=function(a,b,d,c,e,f,h,k,n,l,m,g){var C=b.context,q=b.__roundPixels,p=P.__pool.get(),r=a.__tiles,J,t=null,u=0;for(a=a.__length;u<a;){var ub=u++;var v=r[ub];p.setTo(1,0,0,1,-v.get_originX(),-v.get_originY());p.concat(v.get_matrix());p.concat(d);q&&(p.tx=Math.round(p.tx),p.ty=Math.round(p.ty));var w=null!=v.get_tileset()?v.get_tileset():c;ub=v.get_alpha()*h;if((J=v.get_visible())&&!(0>=ub))if(f||(ub=1),k&&(t=null!=
v.__blendMode?v.__blendMode:n),0<v.__length)Jh.renderTileContainer(v,b,p,w,e,f,ub,k,t,l,m,g);else if(null!=w){J=v.get_id();if(-1==J){if(v=v.get_rect(),null==v||0>=v.width||0>=v.height)continue}else{v=w.__data[J];if(null==v)continue;g.setTo(v.x,v.y,v.width,v.height);v=g}w=w.__bitmapData;null!=w&&(w!=l&&(null==w.image.buffer.__srcImage&&N.convertToCanvas(w.image),m=w.image.get_src(),l=w),C.globalAlpha=ub,k&&b.__setBlendMode(t),b.setTransform(p,C),C.drawImage(m,v.x,v.y,v.width,v.height,0,0,v.width,v.height))}}P.__pool.release(p)};
var La=function(){};m["openfl._internal.renderer.dom.DOMBitmap"]=La;La.__name__="openfl._internal.renderer.dom.DOMBitmap";La.clear=function(a,b){null!=a.__image&&(b.element.removeChild(a.__image),a.__image=null,a.__style=null);null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};La.renderCanvas=function(a,b){null!=a.__image&&(b.element.removeChild(a.__image),a.__image=null);null==a.__canvas&&(a.__canvas=window.document.createElement("canvas"),a.__context=a.__canvas.getContext("2d"),
a.__imageVersion=-1,b.__allowSmoothing&&a.smoothing||(a.__context.mozImageSmoothingEnabled=!1,a.__context.msImageSmoothingEnabled=!1,a.__context.imageSmoothingEnabled=!1),b.__initializeElement(a,a.__canvas));a.__imageVersion!=a.__bitmapData.image.version&&(N.convertToCanvas(a.__bitmapData.image),a.__canvas.width=a.__bitmapData.width+1,a.__canvas.width=a.__bitmapData.width,a.__canvas.height=a.__bitmapData.height,a.__context.drawImage(a.__bitmapData.image.buffer.__srcCanvas,0,0),a.__imageVersion=a.__bitmapData.image.version);
b.__updateClip(a);b.__applyStyle(a,!0,!0,!0)};La.renderImage=function(a,b){null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null);null==a.__image&&(a.__image=window.document.createElement("img"),a.__image.crossOrigin="Anonymous",a.__image.src=a.__bitmapData.image.buffer.__srcImage.src,b.__initializeElement(a,a.__image));b.__updateClip(a);b.__applyStyle(a,!0,!0,!0)};var Vj=function(){};m["openfl._internal.renderer.dom.DOMDisplayObject"]=Vj;Vj.__name__="openfl._internal.renderer.dom.DOMDisplayObject";
Vj.clear=function(a,b){zd.clear(a,b)};var zd=function(){};m["openfl._internal.renderer.dom.DOMShape"]=zd;zd.__name__="openfl._internal.renderer.dom.DOMShape";zd.clear=function(a,b){null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};var jb=function(){};m["openfl._internal.renderer.dom.DOMTextField"]=jb;jb.__name__="openfl._internal.renderer.dom.DOMTextField";jb.clear=function(a,b){null!=a.__div&&(b.element.removeChild(a.__div),a.__div=null,a.__style=null)};jb.__getAttributeMatch=
function(a){return null!=a.matched(2)?a.matched(2):a.matched(3)};var uj=function(){};m["openfl._internal.renderer.dom.DOMTilemap"]=uj;uj.__name__="openfl._internal.renderer.dom.DOMTilemap";uj.clear=function(a,b){null!=a.__canvas&&(b.element.removeChild(a.__canvas),a.__canvas=null,a.__style=null)};var P=function(a,b,d,c,e,f){null==f&&(f=0);null==e&&(e=0);null==c&&(c=1);null==d&&(d=0);null==b&&(b=0);null==a&&(a=1);this.a=a;this.b=b;this.c=d;this.d=c;this.tx=e;this.ty=f};m["openfl.geom.Matrix"]=P;P.__name__=
"openfl.geom.Matrix";P.prototype={a:null,b:null,c:null,d:null,tx:null,ty:null,clone:function(){return new P(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a*a.a+this.b*a.c;this.b=this.a*a.b+this.b*a.d;this.a=b;b=this.c*a.a+this.d*a.c;this.d=this.c*a.b+this.d*a.d;this.c=b;b=this.tx*a.a+this.ty*a.c+a.tx;this.ty=this.tx*a.b+this.ty*a.d+a.ty;this.tx=b},copyFrom:function(a){this.a=a.a;this.b=a.b;this.c=a.c;this.d=a.d;this.tx=a.tx;this.ty=a.ty},deltaTransformPoint:function(a){return new qa(a.x*
this.a+a.y*this.c,a.x*this.b+a.y*this.d)},equals:function(a){return null!=a&&this.tx==a.tx&&this.ty==a.ty&&this.a==a.a&&this.b==a.b&&this.c==a.c?this.d==a.d:!1},identity:function(){this.a=1;this.c=this.b=0;this.d=1;this.ty=this.tx=0},invert:function(){var a=this.a*this.d-this.b*this.c;if(0==a)this.a=this.b=this.c=this.d=0,this.tx=-this.tx,this.ty=-this.ty;else{a=1/a;var b=this.d*a;this.d=this.a*a;this.a=b;this.b*=-a;this.c*=-a;a=-this.a*this.tx-this.c*this.ty;this.ty=-this.b*this.tx-this.d*this.ty;
this.tx=a}return this},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b},setTo:function(a,b,d,c,e,f){this.a=a;this.b=b;this.c=d;this.d=c;this.tx=e;this.ty=f},translate:function(a,b){this.tx+=a;this.ty+=b},__class__:P};var qa=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};m["openfl.geom.Point"]=qa;qa.__name__="openfl.geom.Point";qa.prototype={x:null,y:null,copyFrom:function(a){this.x=a.x;this.y=a.y},equals:function(a){return null!=a&&a.x==this.x?a.y==
this.y:!1},setTo:function(a,b){this.x=a;this.y=b},__toLimeVector2:function(){null==qa.__limeVector2&&(qa.__limeVector2=new kd);var a=qa.__limeVector2;a.x=this.x;a.y=this.y;return qa.__limeVector2},__class__:qa};var M=function(a,b,d,c){null==c&&(c=0);null==d&&(d=0);null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.width=d;this.height=c};m["openfl.geom.Rectangle"]=M;M.__name__="openfl.geom.Rectangle";M.prototype={height:null,width:null,x:null,y:null,clone:function(){return new M(this.x,this.y,this.width,
this.height)},contains:function(a,b){return a>=this.x&&b>=this.y&&a<this.get_right()?b<this.get_bottom():!1},containsPoint:function(a){return this.contains(a.x,a.y)},copyFrom:function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height},equals:function(a){return a==this?!0:null!=a&&this.x==a.x&&this.y==a.y&&this.width==a.width?this.height==a.height:!1},setTo:function(a,b,d,c){this.x=a;this.y=b;this.width=d;this.height=c},__contract:function(a,b,d,c){if(0!=this.width||0!=this.height){var e=
0,f=0,h=0,k=0;this.x<a&&(e=a-this.x);this.y<b&&(f=b-this.y);this.get_right()>a+d&&(h=a+d-this.get_right());this.get_bottom()>b+c&&(k=b+c-this.get_bottom());this.x+=e;this.y+=f;this.width+=h-e;this.height+=k-f}},__expand:function(a,b,d,c){if(0==this.width&&0==this.height)this.x=a,this.y=b,this.width=d,this.height=c;else{var e=this.get_right(),f=this.get_bottom();this.x>a&&(this.x=a,this.width=e-a);this.y>b&&(this.y=b,this.height=f-b);e<a+d&&(this.width=a+d-this.x);f<b+c&&(this.height=b+c-this.y)}},
__toLimeRectangle:function(){null==M.__limeRectangle&&(M.__limeRectangle=new Qb);M.__limeRectangle.setTo(this.x,this.y,this.width,this.height);return M.__limeRectangle},__transform:function(a,b){var d=b.a*this.x+b.c*this.y,c=d,e=b.b*this.x+b.d*this.y,f=e,h=b.a*(this.x+this.width)+b.c*this.y,k=b.b*(this.x+this.width)+b.d*this.y;h<d&&(d=h);k<e&&(e=k);h>c&&(c=h);k>f&&(f=k);h=b.a*(this.x+this.width)+b.c*(this.y+this.height);k=b.b*(this.x+this.width)+b.d*(this.y+this.height);h<d&&(d=h);k<e&&(e=k);h>c&&
(c=h);k>f&&(f=k);h=b.a*this.x+b.c*(this.y+this.height);k=b.b*this.x+b.d*(this.y+this.height);h<d&&(d=h);k<e&&(e=k);h>c&&(c=h);k>f&&(f=k);a.setTo(d+b.tx,e+b.ty,c-d,f-e)},get_bottom:function(){return this.y+this.height},set_bottom:function(a){this.height=a-this.y;return a},get_left:function(){return this.x},set_left:function(a){this.width-=a-this.x;return this.x=a},get_right:function(){return this.x+this.width},set_right:function(a){this.width=a-this.x;return a},get_top:function(){return this.y},set_top:function(a){this.height-=
a-this.y;return this.y=a},__class__:M};var od=function(){};m["openfl._internal.renderer.opengl.GLBitmap"]=od;od.__name__="openfl._internal.renderer.opengl.GLBitmap";od.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)&&null!=a.__bitmapData&&a.__bitmapData.__isValid){var d=b.__context.webgl;b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);var c=b.__initDisplayShader(a.__worldShader);b.setShader(c);b.applyBitmapData(a.__bitmapData,b.__allowSmoothing&&(a.smoothing||b.__upscaled));
b.applyMatrix(b.__getMatrix(a.__renderTransform));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();d.bindBuffer(d.ARRAY_BUFFER,a.__bitmapData.getBuffer(b.__context));null!=c.__position&&d.vertexAttribPointer(c.__position.index,3,d.FLOAT,!1,56,0);null!=c.__textureCoord&&d.vertexAttribPointer(c.__textureCoord.index,2,d.FLOAT,!1,56,12);d.drawArrays(d.TRIANGLE_STRIP,0,4);b.__clearShader();b.__popMaskObject(a)}};od.renderMask=function(a,b){if(null!=a.__bitmapData&&
a.__bitmapData.__isValid){var d=b.__context.webgl,c=b.__maskShader;b.setShader(c);b.applyBitmapData(Me.opaqueBitmapData,!0);b.applyMatrix(b.__getMatrix(a.__renderTransform));b.updateShader();d.bindBuffer(d.ARRAY_BUFFER,a.__bitmapData.getBuffer(b.__context));d.vertexAttribPointer(c.__position.index,3,d.FLOAT,!1,56,0);d.vertexAttribPointer(c.__textureCoord.index,2,d.FLOAT,!1,56,12);d.drawArrays(d.TRIANGLE_STRIP,0,4);b.__clearShader()}};var ja=function(a,b,d,c){null==c&&(c=-1);null==d&&(d=!0);this.transparent=
d;a=null==a?0:a;b=null==b?0:b;a=0>a?0:a;b=0>b?0:b;this.width=a;this.height=b;this.rect=new M(0,0,a,b);this.__textureWidth=a;this.__textureHeight=b;0<a&&0<b&&(d?0==(c&-16777216)&&(c=0):c=-16777216|c&16777215,this.image=new pa(null,0,0,a,b,c<<8|c>>>24&255),this.image.set_transparent(d),this.readable=this.__isValid=!0);this.__renderTransform=new P;this.__worldAlpha=1;this.__worldTransform=new P;this.__worldColorTransform=new Ca;this.__renderable=!0};m["openfl.display.BitmapData"]=ja;ja.__name__="openfl.display.BitmapData";
ja.__interfaces__=[fg];ja.fromBytes=function(a,b){return null};ja.fromCanvas=function(a,b){null==b&&(b=!0);if(null==a)return null;var d=new ja(0,0,b,0);d.__fromImage(pa.fromCanvas(a));d.image.set_transparent(b);return d};ja.fromImage=function(a,b){null==b&&(b=!0);if(null==a||null==a.buffer)return null;var d=new ja(0,0,b,0);d.__fromImage(a);d.image.set_transparent(b);return d};ja.loadFromBytes=function(a,b){return pa.loadFromBytes(ya.toBytes(a)).then(function(a){a=ja.fromImage(a);null!=b&&a.__applyAlpha(b);
return db.withValue(a)})};ja.prototype={height:null,image:null,readable:null,rect:null,transparent:null,width:null,__buffer:null,__bufferContext:null,__bufferData:null,__framebuffer:null,__framebufferContext:null,__isValid:null,__mask:null,__renderable:null,__renderTransform:null,__scrollRect:null,__stencilBuffer:null,__surface:null,__texture:null,__textureContext:null,__textureHeight:null,__textureVersion:null,__textureWidth:null,__uvRect:null,__worldAlpha:null,__worldColorTransform:null,__worldTransform:null,
colorTransform:function(a,b){this.readable&&this.image.colorTransform(a.__toLimeRectangle(),b.__toLimeColorMatrix())},copyPixels:function(a,b,d,c,e,f){null==f&&(f=!1);this.readable&&null!=a&&(null!=e&&(ja.__tempVector.x=e.x,ja.__tempVector.y=e.y),this.image.copyPixels(a.image,b.__toLimeRectangle(),d.__toLimeVector2(),null!=c?c.image:null,null!=e?ja.__tempVector:null,f))},dispose:function(){this.image=null;this.height=this.width=0;this.rect=null;this.readable=this.__isValid=!1;this.__textureContext=
this.__texture=this.__framebufferContext=this.__framebuffer=this.__buffer=this.__surface=null},draw:function(a,b,d,c,e,f){null==f&&(f=!1);if(null!=a){a.__update(!1,!0);var h=P.__pool.get();h.copyFrom(a.__renderTransform);h.invert();null!=b&&h.concat(b);b=null;null!=e&&(b=P.__pool.get(),b.copyFrom(h),b.invert());var k=new Ca;k.__copyFrom(a.__worldColorTransform);k.__invert();if(this.readable){if(null!=d){var n=M.__pool.get(),l=P.__pool.get();a.__getBounds(n,l);var m=Math.ceil(n.width),g=Math.ceil(n.height);
l.tx=-n.x;l.ty=-n.y;m=new ja(m,g,!0,0);m.draw(a,l);m.colorTransform(m.rect,d);m.__renderTransform.identity();m.__renderTransform.tx=n.x;m.__renderTransform.ty=n.y;m.__renderTransform.concat(a.__renderTransform);m.__worldAlpha=a.__worldAlpha;m.__worldColorTransform.__copyFrom(a.__worldColorTransform);a=m;M.__pool.release(n);P.__pool.release(l)}N.convertToCanvas(this.image);d=new qd(this.image.buffer.__srcContext);d.__allowSmoothing=f;d.__setBlendMode(c);d.__worldTransform=h;d.__worldAlpha=1/a.__worldAlpha;
d.__worldColorTransform=k;null!=e&&d.__pushMaskRect(e,b);this.__drawCanvas(a,d)}else null==this.__textureContext&&(this.__textureContext=Gb.current.__window.context),null!=d&&k.__combine(d),d=new za(this.__textureContext,this),d.__allowSmoothing=f,d.__setBlendMode(c),d.__worldTransform=h,d.__worldAlpha=1/a.__worldAlpha,d.__worldColorTransform=k,d.__resize(this.width,this.height),null!=e&&d.__pushMaskRect(e,b),this.__drawGL(a,d);null!=e&&(d.__popMaskRect(),P.__pool.release(b));P.__pool.release(h)}},
encode:function(a,b,d){if(!this.readable||null==a)return null;null==d&&(d=new ta(0));var c=this.image;if(!a.equals(this.rect)){var e=P.__pool.get();e.tx=Math.round(-a.x);e.ty=Math.round(-a.y);a=new ja(Math.ceil(a.width),Math.ceil(a.height),!0,0);a.draw(this,e);c=a.image;P.__pool.release(e)}return b instanceof Kh?(d.writeBytes(ya.fromBytes(c.encode(al.PNG))),d):b instanceof Lh?(d.writeBytes(ya.fromBytes(c.encode(al.JPEG,U.__cast(b,Lh).quality))),d):null},fillRect:function(a,b){this.__fillRect(a,b,
!0)},getBuffer:function(a){var b=a.webgl;null==this.__buffer||this.__bufferContext!=a?(this.__uvRect=new M(0,0,this.width,this.height),this.__bufferData=new Float32Array(56),this.__bufferData[0]=this.width,this.__bufferData[1]=this.height,this.__bufferData[3]=1,this.__bufferData[4]=1,this.__bufferData[15]=this.height,this.__bufferData[18]=1,this.__bufferData[28]=this.width,this.__bufferData[31]=1,this.__bufferContext=a,this.__buffer=b.createBuffer(),b.bindBuffer(b.ARRAY_BUFFER,this.__buffer),kb.bufferData(b,
b.ARRAY_BUFFER,this.__bufferData,b.STATIC_DRAW)):b.bindBuffer(b.ARRAY_BUFFER,this.__buffer);return this.__buffer},getColorBoundsRect:function(a,b,d){null==d&&(d=!0);if(!this.readable)return new M(0,0,this.width,this.height);a=this.image.getColorBoundsRect(a,b,d,1);return new M(a.x,a.y,a.width,a.height)},getTexture:function(a){if(!this.__isValid)return null;var b=a.webgl;if(null==this.__texture||this.__textureContext!=a)this.__textureContext=a,this.__texture=b.createTexture(),b.bindTexture(b.TEXTURE_2D,
this.__texture),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.NEAREST),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.NEAREST),this.__textureVersion=-1;N.sync(this.image,!1);if(null!=this.image&&this.image.version>this.__textureVersion){null!=this.__surface&&qk.flush(this.__surface);if(1==this.image.buffer.bitsPerPixel)var d=a=b.ALPHA;else null==ja.__supportsBGRA&&
(ja.__textureInternalFormat=b.RGBA,ja.__supportsBGRA=!1,ja.__textureFormat=b.RGBA),a=ja.__textureInternalFormat,d=ja.__textureFormat;b.bindTexture(b.TEXTURE_2D,this.__texture);var c=this.image;c.type==lc.DATA||c.get_premultiplied()?!c.get_premultiplied()&&c.get_transparent()&&b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1):b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1);ja.__supportsBGRA||0==c.get_format()||(c=c.clone(),c.set_format(0));c.type==lc.DATA?kb.texImage2D(b,b.TEXTURE_2D,0,a,c.buffer.width,
c.buffer.height,0,d,b.UNSIGNED_BYTE,c.get_data()):kb.texImage2D(b,b.TEXTURE_2D,0,a,d,b.UNSIGNED_BYTE,c.get_src());b.bindTexture(b.TEXTURE_2D,null);this.__textureVersion=this.image.version;this.__textureWidth=c.buffer.width;this.__textureHeight=c.buffer.height}this.readable||null==this.image||(this.image=this.__surface=null);return this.__texture},setPixel32:function(a,b,d){this.readable&&this.image.setPixel32(a,b,d,1)},setPixels:function(a,b){if(this.readable&&null!=a){var d=a.width*a.height*4;if(tc.toFloat(b.length-
b.position)<d)throw new w(new Oa("End of file was encountered.",2030));this.image.setPixels(a.__toLimeRectangle(),ya.toBytePointer(b),1,yk.toLimeEndian(b.__endian))}},__applyAlpha:function(a){N.convertToCanvas(this.image);N.createImageData(this.image);for(var b=this.image.buffer.data,d=0,c=ya.get_length(a);d<c;){var e=d++;b[4*e+3]=a.readUnsignedByte()}this.image.version++},__drawCanvas:function(a,b){var d=this.image.buffer;b.__allowSmoothing||b.applySmoothing(d.__srcContext,!1);b.__render(a);b.__allowSmoothing||
b.applySmoothing(d.__srcContext,!0);d.__srcContext.setTransform(1,0,0,1,0,0);d.__srcImageData=null;d.data=null;this.image.dirty=!0;this.image.version++},__drawGL:function(a,b){var d=b.__gl;d.bindFramebuffer(d.FRAMEBUFFER,this.__getFramebuffer(b.__context,!0));b.__render(a);d.bindFramebuffer(d.FRAMEBUFFER,null)},__fillRect:function(a,b,d){if(null!=a)if(this.transparent&&0==(b&-16777216)&&(b=0),d&&null!=this.__framebuffer){d=me.context;var c=!this.rect.equals(a);d.bindFramebuffer(d.FRAMEBUFFER,this.__framebuffer);
c&&(d.enable(d.SCISSOR_TEST),d.scissor(Math.round(a.x),Math.round(a.y),Math.round(a.width),Math.round(a.height)));d.clearColor((b>>>16&255)/255,(b>>>8&255)/255,(b&255)/255,(b>>>24&255)/255);d.clear(d.COLOR_BUFFER_BIT);c&&d.disable(d.SCISSOR_TEST);d.bindFramebuffer(d.FRAMEBUFFER,null)}else this.readable&&this.image.fillRect(a.__toLimeRectangle(),b,1)},__fromImage:function(a){null!=a&&null!=a.buffer&&(this.image=a,this.width=a.width,this.height=a.height,this.rect=new M(0,0,a.width,a.height),this.__isValid=
this.readable=!0)},__getBounds:function(a,b){var d=M.__pool.get();this.rect.__transform(d,b);a.__expand(d.x,d.y,d.width,d.height);M.__pool.release(d)},__getFramebuffer:function(a,b){if(null==this.__framebuffer||this.__framebufferContext!=a){var d=a.webgl;this.getTexture(a);this.__framebufferContext=a;this.__framebuffer=d.createFramebuffer();d.bindFramebuffer(d.FRAMEBUFFER,this.__framebuffer);d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_2D,this.__texture,0);d.checkFramebufferStatus(d.FRAMEBUFFER)!=
d.FRAMEBUFFER_COMPLETE&&ra.trace(d.getError(),{fileName:"openfl/display/BitmapData.hx",lineNumber:2596,className:"openfl.display.BitmapData",methodName:"__getFramebuffer"})}b&&null==this.__stencilBuffer&&(a=a.webgl,this.__stencilBuffer=a.createRenderbuffer(),a.bindRenderbuffer(a.RENDERBUFFER,this.__stencilBuffer),a.renderbufferStorage(a.RENDERBUFFER,a.STENCIL_INDEX8,this.__textureWidth,this.__textureHeight),a.bindFramebuffer(a.FRAMEBUFFER,this.__framebuffer),a.framebufferRenderbuffer(a.FRAMEBUFFER,
a.STENCIL_ATTACHMENT,a.RENDERBUFFER,this.__stencilBuffer),a.checkFramebufferStatus(a.FRAMEBUFFER)!=a.FRAMEBUFFER_COMPLETE&&ra.trace(a.getError(),{fileName:"openfl/display/BitmapData.hx",lineNumber:2619,className:"openfl.display.BitmapData",methodName:"__getFramebuffer"}),a.bindRenderbuffer(a.RENDERBUFFER,null));return this.__framebuffer},__renderCairo:function(a){},__renderCanvas:function(a){if(this.readable){this.image.type==lc.DATA&&N.convertToCanvas(this.image);var b=a.context;b.globalAlpha=1;
a.setTransform(this.__renderTransform,b);b.drawImage(this.image.get_src(),0,0,this.image.width,this.image.height)}},__renderDOM:function(a){},__renderGL:function(a){var b=a.__gl;a.__setBlendMode(10);var d=a.__defaultDisplayShader;a.setShader(d);a.applyBitmapData(this,a.__allowSmoothing&&a.__upscaled);a.applyMatrix(a.__getMatrix(this.__worldTransform));a.applyAlpha(this.__worldAlpha);a.applyColorTransform(this.__worldColorTransform);a.updateShader();b.bindBuffer(b.ARRAY_BUFFER,this.getBuffer(a.__context));
null!=d.__position&&b.vertexAttribPointer(d.__position.index,3,b.FLOAT,!1,20,0);null!=d.__textureCoord&&b.vertexAttribPointer(d.__textureCoord.index,2,b.FLOAT,!1,20,12);b.drawArrays(b.TRIANGLE_STRIP,0,4);a.__clearShader()},__setUVRect:function(a,b,d,c,e){if(null!=this.getBuffer(a)&&(c!=this.__uvRect.width||e!=this.__uvRect.height||b!=this.__uvRect.x||d!=this.__uvRect.y)){a=a.webgl;null==this.__uvRect&&(this.__uvRect=new M);this.__uvRect.setTo(b,d,c,e);b=0<this.__textureWidth?b/this.__textureWidth:
0;d=0<this.__textureHeight?d/this.__textureHeight:0;var f=0<this.__textureWidth?c/this.__textureWidth:0,h=0<this.__textureHeight?e/this.__textureHeight:0;this.__bufferData[0]=c;this.__bufferData[1]=e;this.__bufferData[3]=b+f;this.__bufferData[4]=d+h;this.__bufferData[15]=e;this.__bufferData[17]=b;this.__bufferData[18]=d+h;this.__bufferData[28]=c;this.__bufferData[31]=b+f;this.__bufferData[32]=d;this.__bufferData[45]=b;this.__bufferData[46]=d;kb.bufferData(a,a.ARRAY_BUFFER,this.__bufferData,a.STATIC_DRAW)}},
__update:function(a,b){this.__updateTransforms()},__updateTransforms:function(a){null==a?this.__worldTransform.identity():this.__worldTransform.copyFrom(a);this.__renderTransform.copyFrom(this.__worldTransform)},__class__:ja};var Da=function(){};m["openfl._internal.renderer.opengl.GLGraphics"]=Da;Da.__name__="openfl._internal.renderer.opengl.GLGraphics";Da.buildBuffer=function(a,b){b=0;for(var d=new ld(a.__commands),c=M.__pool.get(),e=P.__pool.get(),f=null,h=0,k=a.__commands.types;h<k.length;){var n=
k[h];++h;switch(n._hx_index){case 0:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=
4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1}d.prev=E.BEGIN_BITMAP_FILL;f=d;f=f.buffer.o[f.oPos];break;case 1:f=null;switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;
d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1}d.prev=n;break;case 3:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=
3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1}d.prev=E.BEGIN_SHADER_FILL;f=d;n=f.buffer.o[f.oPos];f=null==n||null==n.shader||null==n.shader.__bitmap?null:f.buffer.o[f.oPos].shader.__bitmap.input;break;case 8:if(null!=
f){switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=
1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1}d.prev=E.DRAW_QUADS;var l=d;n=l.buffer.o[l.oPos];var m=l.buffer.o[l.oPos+1];l=l.buffer.o[l.oPos+2];var g=null!=m,q=!1,p=!1,r=g?m.get_length():Math.floor(n.get_length()/4);if(0==r)return;null!=l&&(l.get_length()>=6*r?p=q=!0:l.get_length()>=4*r?q=!0:l.get_length()>=2*r&&(p=!0));Da.resizeBuffer(a,b+24*r);for(var t,J,u,v,w,z,y,B,I,x,Mb,F,G,K,D=a.__bufferData,L=f.width,H=f.height,N=0,Q=r;N<Q;)v=N++,t=b+24*v,J=g?4*m.get(v):4*v,0>
J||(c.setTo(n.get(J),n.get(J+1),n.get(J+2),n.get(J+3)),J=c.width,u=c.height,0>=J||0>=u||(q&&p?(v*=6,e.setTo(l.get(v),l.get(v+1),l.get(v+2),l.get(v+3),l.get(v+4),l.get(v+5))):q?(v*=4,e.setTo(l.get(v),l.get(v+1),l.get(v+2),l.get(v+3),c.x,c.y)):p?(v*=2,e.tx=l.get(v),e.ty=l.get(v+1)):(e.tx=c.x,e.ty=c.y),v=c.x/L,w=c.y/H,z=c.get_right()/L,y=c.get_bottom()/H,B=0*e.a+0*e.c+e.tx,I=0*e.b+0*e.d+e.ty,x=J*e.a+0*e.c+e.tx,Mb=J*e.b+0*e.d+e.ty,F=0*e.a+u*e.c+e.tx,G=0*e.b+u*e.d+e.ty,K=J*e.a+u*e.c+e.tx,J=J*e.b+u*e.d+
e.ty,D[t]=B,D[t+1]=I,D[t+2]=v,D[t+3]=w,D[t+4]=x,D[t+4+1]=Mb,D[t+4+2]=z,D[t+4+3]=w,D[t+8]=F,D[t+8+1]=G,D[t+8+2]=v,D[t+8+3]=y,D[t+12]=F,D[t+12+1]=G,D[t+12+2]=v,D[t+12+3]=y,D[t+16]=x,D[t+16+1]=Mb,D[t+16+2]=z,D[t+16+3]=w,D[t+20]=K,D[t+20+1]=J,D[t+20+2]=z,D[t+20+3]=y));b+=24*r}break;case 12:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;
case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1}d.prev=E.DRAW_TRIANGLES;l=d;n=l.buffer.o[l.oPos];m=l.buffer.o[l.oPos+1];l=l.buffer.o[l.oPos+2];g=null!=m;r=Math.floor(n.get_length()/2);q=g?m.get_length():
r;t=(r=(p=null!=l)&&l.get_length()>=3*r)?4:2;D=r?3:2;L=t+2;Da.resizeBuffer(a,b+q*L);N=a.__bufferData;J=0;for(u=q;J<u;)v=J++,H=b+v*L,Q=g?2*m.get(v):2*v,v=g?m.get(v)*D:v*D,r?(w=l.get(v+2),N[H]=n.get(Q)/w,N[H+1]=n.get(Q+1)/w,N[H+2]=0,N[H+3]=1/w):(N[H]=n.get(Q),N[H+1]=n.get(Q+1)),N[H+t]=p?l.get(v):0,N[H+t+1]=p?l.get(v+1):0;b+=q*L;break;case 13:f=null;break;default:switch(d.prev._hx_index){case 0:d.oPos+=2;d.bPos+=2;break;case 1:d.iPos+=1;d.fPos+=1;break;case 2:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=
1;break;case 3:d.oPos+=1;break;case 4:d.fPos+=6;break;case 5:d.fPos+=4;break;case 6:d.fPos+=3;break;case 7:d.fPos+=4;break;case 8:d.oPos+=3;break;case 9:d.fPos+=4;break;case 10:d.fPos+=5;d.oPos+=1;break;case 12:d.oPos+=4;break;case 14:d.oPos+=2;d.bPos+=2;break;case 15:d.oPos+=4;d.iiPos+=2;d.ffPos+=1;d.fPos+=1;break;case 16:d.oPos+=4;d.iPos+=1;d.fPos+=2;d.bPos+=1;break;case 17:d.fPos+=2;break;case 18:d.fPos+=2;break;case 19:d.oPos+=1}d.prev=n}}M.__pool.release(c);P.__pool.release(e)};Da.isCompatible=
function(a){var b=new ld(a.__commands),d=!1,c=!1,e=!1,f=0;for(a=a.__commands.types;f<a.length;){var h=a[f];++f;switch(h._hx_index){case 0:c=!0;e=d=!1;switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=
4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=h;break;case 1:c=!1;d=!0;e=!1;switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=
4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=h;break;case 3:d=c=!1;e=!0;switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;
case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=h;break;case 8:if(c||e){switch(b.prev._hx_index){case 0:b.oPos+=2;
b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=
2;break;case 19:b.oPos+=1}b.prev=h}else return b.destroy(),!1;break;case 9:if(d){switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=
2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=h}else return b.destroy(),!1;break;case 12:if(c||e){switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=
4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=h}else return b.destroy(),!1;break;case 13:e=d=c=!1;switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;
case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=h;break;case 18:switch(b.prev._hx_index){case 0:b.oPos+=2;b.bPos+=2;break;case 1:b.iPos+=
1;b.fPos+=1;break;case 2:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 3:b.oPos+=1;break;case 4:b.fPos+=6;break;case 5:b.fPos+=4;break;case 6:b.fPos+=3;break;case 7:b.fPos+=4;break;case 8:b.oPos+=3;break;case 9:b.fPos+=4;break;case 10:b.fPos+=5;b.oPos+=1;break;case 12:b.oPos+=4;break;case 14:b.oPos+=2;b.bPos+=2;break;case 15:b.oPos+=4;b.iiPos+=2;b.ffPos+=1;b.fPos+=1;break;case 16:b.oPos+=4;b.iPos+=1;b.fPos+=2;b.bPos+=1;break;case 17:b.fPos+=2;break;case 18:b.fPos+=2;break;case 19:b.oPos+=1}b.prev=
h;break;default:return b.destroy(),!1}}b.destroy();return!0};Da.render=function(a,b){if(a.__visible&&0!=a.__commands.get_length())if(null!=a.__bitmap&&!a.__dirty||!Da.isCompatible(a)){null!=a.__buffer&&(a.__bufferData=null,a.__buffer=null);var d=b.__softwareRenderer.__worldTransform;b.__softwareRenderer.__worldTransform=b.__worldTransform;q.render(a,b.__softwareRenderer);b.__softwareRenderer.__worldTransform=d}else{a.__bitmap=null;a.__update(b.__worldTransform);d=a.__width;var c=a.__height;if(null!=
a.__bounds&&1<=d&&1<=c){d=!1;if(a.__dirty||null==a.__bufferData)Da.buildBuffer(a,b),d=!0;c=new ld(a.__commands);for(var e=b.__context.webgl,f=P.__pool.get(),h=null,k=null,n=!1,l=!1,m=null,g=0,p=0,r=a.__commands.types;p<r.length;){var A=r[p];++p;switch(A._hx_index){case 0:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=
3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.BEGIN_BITMAP_FILL;l=c;k=l.buffer.o[l.oPos];n=l.buffer.b[l.bPos];l=l.buffer.b[l.bPos+1];m=h=null;break;case 1:switch(c.prev._hx_index){case 0:c.oPos+=
2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=
2;break;case 19:c.oPos+=1}c.prev=E.BEGIN_FILL;k=c;m=(k.buffer.i[k.iPos]|0)&16777215|(255*k.buffer.f[k.fPos]|0)<<24;k=h=null;break;case 3:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;
case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.BEGIN_SHADER_FILL;k=c;h=k.buffer.o[k.oPos];k=null==h||null==h.shader||null==h.shader.__bitmap?null:h.shader.__bitmap.input;m=null;break;case 8:if(null!=k){switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=
1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.DRAW_QUADS;var t=c;A=t.buffer.o[t.oPos];t=t.buffer.o[t.oPos+
1];A=null!=t?t.get_length():Math.floor(A.get_length()/4);t=b.__getMatrix(a.__owner.__renderTransform);if(null==h||Da.maskRender){var J=Da.maskRender?b.__maskShader:b.__initGraphicsShader(null);b.setShader(J);b.applyMatrix(t);b.applyBitmapData(k,b.__allowSmoothing&&l,n);b.applyAlpha(a.__owner.__worldAlpha);b.applyColorTransform(a.__owner.__worldColorTransform);b.updateShader()}else J=b.__initShaderBuffer(h),b.__setShaderBuffer(h),b.applyMatrix(t),b.applyBitmapData(k,!1,n),b.applyAlpha(a.__owner.__worldAlpha),
b.applyColorTransform(a.__owner.__worldColorTransform),b.__updateShaderBuffer();if(null==a.__buffer||a.__bufferContext!=b.__context)a.__bufferContext=b.__context,a.__buffer=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,a.__buffer);d&&kb.bufferData(e,e.ARRAY_BUFFER,a.__bufferData,e.DYNAMIC_DRAW);null!=J.__position&&e.vertexAttribPointer(J.__position.index,2,e.FLOAT,!1,16,4*g);null!=J.__textureCoord&&e.vertexAttribPointer(J.__textureCoord.index,2,e.FLOAT,!1,16,4*(g+2));e.drawArrays(e.TRIANGLES,0,6*A);
g+=24*A;b.__clearShader()}break;case 9:if(null!=m){switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;
case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.DRAW_RECT;var u=c;A=u.buffer.f[u.fPos];t=u.buffer.f[u.fPos+1];J=u.buffer.f[u.fPos+2];var v=u.buffer.f[u.fPos+3];u=m;Da.tempColorTransform.redOffset=u>>>16&255;Da.tempColorTransform.greenOffset=u>>>8&255;Da.tempColorTransform.blueOffset=u&255;Da.tempColorTransform.__combine(a.__owner.__worldColorTransform);f.identity();f.scale(J,v);f.tx=A;f.ty=t;f.concat(a.__owner.__renderTransform);
A=Da.maskRender?b.__maskShader:b.__initGraphicsShader(null);b.setShader(A);b.applyMatrix(b.__getMatrix(f));b.applyBitmapData(Da.blankBitmapData,b.__allowSmoothing,n);b.applyAlpha((u>>>24&255)/255*a.__owner.__worldAlpha);b.applyColorTransform(Da.tempColorTransform);b.updateShader();e.bindBuffer(e.ARRAY_BUFFER,Da.blankBitmapData.getBuffer(b.__context));null!=A.__position&&e.vertexAttribPointer(A.__position.index,3,e.FLOAT,!1,56,0);null!=A.__textureCoord&&e.vertexAttribPointer(A.__textureCoord.index,
2,e.FLOAT,!1,56,12);e.drawArrays(e.TRIANGLE_STRIP,0,4);b.__clearShader()}break;case 12:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=
4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.DRAW_TRIANGLES;v=c;t=v.buffer.o[v.oPos+1];J=v.buffer.o[v.oPos+2];A=v.buffer.o[v.oPos+3];u=null!=t;v=Math.floor(v.buffer.o[v.oPos].get_length()/2);t=u?t.get_length():v;J=null!=J&&J.get_length()>=3*v?4:2;u=J+2;v=b.__getMatrix(a.__owner.__renderTransform);if(null==h||Da.maskRender){var w=Da.maskRender?b.__maskShader:b.__initGraphicsShader(null);
b.setShader(w);b.applyMatrix(v);b.applyBitmapData(k,b.__allowSmoothing&&l,n);b.applyAlpha(a.__owner.__worldAlpha);b.applyColorTransform(a.__owner.__worldColorTransform);b.updateShader()}else w=b.__initShaderBuffer(h),b.__setShaderBuffer(h),b.applyMatrix(v),b.applyBitmapData(k,!1,n),b.applyAlpha(1),b.applyColorTransform(null),b.__updateShaderBuffer();if(null==a.__buffer||a.__bufferContext!=b.__context)a.__bufferContext=b.__context,a.__buffer=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,a.__buffer);
d&&kb.bufferData(e,e.ARRAY_BUFFER,a.__bufferData,e.DYNAMIC_DRAW);null!=w.__position&&e.vertexAttribPointer(w.__position.index,J,e.FLOAT,!1,4*u,4*g);null!=w.__textureCoord&&e.vertexAttribPointer(w.__textureCoord.index,2,e.FLOAT,!1,4*u,4*(g+J));switch(A){case 0:e.enable(e.CULL_FACE);e.cullFace(e.BACK);break;case 2:e.enable(e.CULL_FACE),e.cullFace(e.FRONT)}e.drawArrays(e.TRIANGLES,0,t);g+=u*t;1!=A&&(e.disable(e.CULL_FACE),e.cullFace(e.BACK));b.__clearShader();break;case 13:h=m=k=null;switch(c.prev._hx_index){case 0:c.oPos+=
2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=
2;break;case 19:c.oPos+=1}c.prev=A;break;case 18:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;
case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=E.MOVE_TO;break;default:switch(c.prev._hx_index){case 0:c.oPos+=2;c.bPos+=2;break;case 1:c.iPos+=1;c.fPos+=1;break;case 2:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 3:c.oPos+=1;break;case 4:c.fPos+=6;break;case 5:c.fPos+=4;break;case 6:c.fPos+=3;break;case 7:c.fPos+=4;break;case 8:c.oPos+=3;break;case 9:c.fPos+=4;break;case 10:c.fPos+=5;c.oPos+=1;break;case 12:c.oPos+=
4;break;case 14:c.oPos+=2;c.bPos+=2;break;case 15:c.oPos+=4;c.iiPos+=2;c.ffPos+=1;c.fPos+=1;break;case 16:c.oPos+=4;c.iPos+=1;c.fPos+=2;c.bPos+=1;break;case 17:c.fPos+=2;break;case 18:c.fPos+=2;break;case 19:c.oPos+=1}c.prev=A}}P.__pool.release(f)}a.set___dirty(!1)}};Da.renderMask=function(a,b){Da.maskRender=!0;Da.render(a,b);Da.maskRender=!1};Da.resizeBuffer=function(a,b){if(null==a.__bufferData){var d=null!=b?new Float32Array(b):null;a.__bufferData=d}else b>a.__bufferData.length&&(d=null!=b?new Float32Array(b):
null,d.set(a.__bufferData),a.__bufferData=d);a.__bufferLength=b};var $a=function(a){this.byteCode=a;this.precisionHint=1;this.__glSourceDirty=!0;this.__numPasses=1;this.__data=vj._new(a)};m["openfl.display.Shader"]=$a;$a.__name__="openfl.display.Shader";$a.prototype={byteCode:null,glProgram:null,precisionHint:null,__alpha:null,__bitmap:null,__colorMultiplier:null,__colorOffset:null,__context:null,__data:null,__glFragmentSource:null,__glSourceDirty:null,__glVertexSource:null,__hasColorTransform:null,
__inputBitmapData:null,__isGenerated:null,__matrix:null,__numPasses:null,__paramBool:null,__paramFloat:null,__paramInt:null,__position:null,__textureCoord:null,__texture:null,__textureSize:null,__clearUseArray:function(){for(var a=0,b=this.__paramBool;a<b.length;){var d=b[a];++a;d.__useArray=!1}a=0;for(b=this.__paramFloat;a<b.length;)d=b[a],++a,d.__useArray=!1;a=0;for(b=this.__paramInt;a<b.length;)d=b[a],++a,d.__useArray=!1},__createGLShader:function(a,b){var d=this.__context.webgl,c=d.createShader(b);
d.shaderSource(c,a);d.compileShader(c);0==d.getShaderParameter(c,d.COMPILE_STATUS)&&(b=b==d.VERTEX_SHADER?"Error compiling vertex shader":"Error compiling fragment shader",b+="\n"+d.getShaderInfoLog(c),Ja.error(b+("\n"+a),{fileName:"openfl/display/Shader.hx",lineNumber:188,className:"openfl.display.Shader",methodName:"__createGLShader"}));return c},__createGLProgram:function(a,b){var d=this.__context.webgl;a=this.__createGLShader(a,d.VERTEX_SHADER);var c=this.__createGLShader(b,d.FRAGMENT_SHADER);
b=d.createProgram();for(var e=0,f=this.__paramFloat;e<f.length;){var h=f[e];++e;if(-1<h.name.indexOf("Position")&&Q.startsWith(h.name,"openfl_")){d.bindAttribLocation(b,0,h.name);break}}d.attachShader(b,a);d.attachShader(b,c);d.linkProgram(b);0==d.getProgramParameter(b,d.LINK_STATUS)&&(d="Unable to initialize the shader program\n"+d.getProgramInfoLog(b),Ja.error(d,{fileName:"openfl/display/Shader.hx",lineNumber:230,className:"openfl.display.Shader",methodName:"__createGLProgram"}));return b},__disable:function(){null!=
this.glProgram&&this.__disableGL()},__disableGL:function(){for(var a=this.__context.webgl,b=0,d=0,c=this.__inputBitmapData;d<c.length;){var e=c[d];++d;e.__disableGL(this.__context,b);++b}b=0;for(d=this.__paramBool;b<d.length;)c=d[b],++b,c.__disableGL(this.__context);b=0;for(d=this.__paramFloat;b<d.length;)c=d[b],++b,c.__disableGL(this.__context);b=0;for(d=this.__paramInt;b<d.length;)c=d[b],++b,c.__disableGL(this.__context);a.bindBuffer(a.ARRAY_BUFFER,null);"opengl"==this.__context.type&&a.disable(a.TEXTURE_2D)},
__enable:function(){this.__init();null!=this.glProgram&&this.__enableGL()},__enableGL:function(){for(var a=0,b=this.__context.webgl,d=0,c=this.__inputBitmapData;d<c.length;){var e=c[d];++d;b.uniform1i(e.index,a);++a}"opengl"==this.__context.type&&0<a&&b.enable(b.TEXTURE_2D)},__init:function(){null==this.__data&&(this.__data=vj._new(null));null==this.__glFragmentSource||null==this.__glVertexSource||null!=this.glProgram&&!this.__glSourceDirty||this.__initGL()},__initGL:function(){if(this.__glSourceDirty||
null==this.__paramBool)this.__glSourceDirty=!1,this.glProgram=null,this.__inputBitmapData=[],this.__paramBool=[],this.__paramFloat=[],this.__paramInt=[],this.__processGLData(this.get_glVertexSource(),"attribute"),this.__processGLData(this.get_glVertexSource(),"uniform"),this.__processGLData(this.get_glFragmentSource(),"uniform");if(null!=this.__context&&null==this.glProgram){var a=this.__context.webgl,b="#ifdef GL_ES\n\t\t\t\tprecision "+(1==this.precisionHint?"mediump":"lowp")+" float;\n\t\t\t\t#endif\n\t\t\t\t",
d=b+this.get_glVertexSource(),c=b+this.get_glFragmentSource();b=d+c;var e=$a.__glPrograms;(null!=t[b]?e.existsReserved(b):e.h.hasOwnProperty(b))?(d=$a.__glPrograms,this.glProgram=null!=t[b]?d.getReserved(b):d.h[b]):(d=this.glProgram=this.__createGLProgram(d,c),c=$a.__glPrograms,null!=t[b]?c.setReserved(b,d):c.h[b]=d);if(null!=this.glProgram){b=0;for(d=this.__inputBitmapData;b<d.length;)c=d[b],++b,c.index=c.__isUniform?a.getUniformLocation(this.glProgram,c.name):a.getAttribLocation(this.glProgram,
c.name);b=0;for(d=this.__paramBool;b<d.length;)c=d[b],++b,c.index=c.__isUniform?a.getUniformLocation(this.glProgram,c.name):a.getAttribLocation(this.glProgram,c.name);b=0;for(d=this.__paramFloat;b<d.length;)c=d[b],++b,c.index=c.__isUniform?a.getUniformLocation(this.glProgram,c.name):a.getAttribLocation(this.glProgram,c.name);b=0;for(d=this.__paramInt;b<d.length;)c=d[b],++b,c.index=c.__isUniform?a.getUniformLocation(this.glProgram,c.name):a.getAttribLocation(this.glProgram,c.name)}}},__processGLData:function(a,
b){var d=0,c;for(c="uniform"==b?new wa("uniform ([A-Za-z0-9]+) ([A-Za-z0-9_]+)",""):new wa("attribute ([A-Za-z0-9]+) ([A-Za-z0-9_]+)","");c.matchSub(a,d);){var e=c.matched(1);var f=c.matched(2);if(!Q.startsWith(f,"gl_")){d="uniform"==b;if(Q.startsWith(e,"sampler")){e=new wj;e.name=f;e.__isUniform=d;this.__inputBitmapData.push(e);switch(f){case "bitmap":this.__bitmap=e;break;case "openfl_Texture":this.__texture=e}this.__data[f]=e;this.__isGenerated&&(this[f]=e)}else if(!Object.prototype.hasOwnProperty.call(this.__data,
f)||null==V.field(this.__data,f)){switch(e){case "bool":var h=0;break;case "bvec2":h=1;break;case "bvec3":h=2;break;case "bvec4":h=3;break;case "dvec2":case "vec2":h=5;break;case "dvec3":case "vec3":h=6;break;case "double":case "float":h=4;break;case "ivec3":case "uvec3":h=10;break;case "ivec4":case "uvec4":h=11;break;case "mat2":case "mat2x2":h=12;break;case "mat2x3":h=13;break;case "mat2x4":h=14;break;case "mat3x2":h=15;break;case "mat3":case "mat3x3":h=16;break;case "mat3x4":h=17;break;case "mat4":case "mat4x4":h=
20;break;case "mat4x2":h=18;break;case "mat4x3":h=19;break;case "int":case "uint":h=8;break;case "ivec2":case "uvec2":h=9;break;case "dvec4":case "vec4":h=7;break;default:h=null}switch(h){case 1:case 5:case 9:e=2;break;case 3:case 7:case 11:case 12:e=4;break;case 2:case 6:case 10:e=3;break;case 16:e=9;break;case 20:e=16;break;default:e=1}switch(h){case 12:var k=2;break;case 16:k=3;break;case 20:k=4;break;default:k=1}switch(h){case 0:case 1:case 2:case 3:var n=new Pf;n.name=f;n.type=h;n.__arrayLength=
k;n.__isBool=!0;n.__isUniform=d;n.__length=e;this.__paramBool.push(n);"openfl_HasColorTransform"==f&&(this.__hasColorTransform=n);this.__data[f]=n;this.__isGenerated&&(this[f]=n);break;case 8:case 9:case 10:case 11:n=new Pf;n.name=f;n.type=h;n.__arrayLength=k;n.__isInt=!0;n.__isUniform=d;n.__length=e;this.__paramInt.push(n);this.__data[f]=n;this.__isGenerated&&(this[f]=n);break;default:n=new Pf;n.name=f;n.type=h;n.__arrayLength=k;0<k&&(h=k*k,h=null!=h?new Float32Array(h):null,n.__uniformMatrix=h);
n.__isFloat=!0;n.__isUniform=d;n.__length=e;this.__paramFloat.push(n);if(Q.startsWith(f,"openfl_"))switch(f){case "openfl_Alpha":this.__alpha=n;break;case "openfl_ColorMultiplier":this.__colorMultiplier=n;break;case "openfl_ColorOffset":this.__colorOffset=n;break;case "openfl_Matrix":this.__matrix=n;break;case "openfl_Position":this.__position=n;break;case "openfl_TextureCoord":this.__textureCoord=n;break;case "openfl_TextureSize":this.__textureSize=n}this.__data[f]=n;this.__isGenerated&&(this[f]=
n)}}f=c.matchedPos();d=f.pos+f.len}}},__update:function(){null!=this.glProgram&&this.__updateGL()},__updateFromBuffer:function(a){null!=this.glProgram&&this.__updateGLFromBuffer(a)},__updateGL:function(){for(var a=0,b=0,d=this.__inputBitmapData;b<d.length;){var c=d[b];++b;c.__updateGL(this.__context,a);++a}a=0;for(b=this.__paramBool;a<b.length;)d=b[a],++a,d.__updateGL(this.__context);a=0;for(b=this.__paramFloat;a<b.length;)d=b[a],++a,d.__updateGL(this.__context);a=0;for(b=this.__paramInt;a<b.length;)d=
b[a],++a,d.__updateGL(this.__context)},__updateGLFromBuffer:function(a){for(var b=0,d,c,e,f,h,k=0,n=a.inputCount;k<n;)h=k++,d=a.inputRefs[h],c=a.inputs[h],e=a.inputFilter[h],f=a.inputMipFilter[h],h=a.inputWrap[h],null!=c&&(d.__updateGL(this.__context,b,c,e,f,h),++b);b=this.__context.webgl;0<a.paramDataLength?(null==a.paramDataBuffer&&(a.paramDataBuffer=b.createBuffer()),b.bindBuffer(b.ARRAY_BUFFER,a.paramDataBuffer),kb.bufferData(b,b.ARRAY_BUFFER,a.paramData,b.DYNAMIC_DRAW)):b.bindBuffer(b.ARRAY_BUFFER,
null);c=d=b=0;e=a.paramBoolCount;f=a.paramFloatCount;k=a.paramData;for(var l,m=h=null,g=null,q=0,p=a.paramCount;q<p;){var r=q++;n=!1;if(r<e){l=a.paramRefs_Bool[b];for(var t=0,J=a.overrideCount;t<J;){var u=t++;if(l.name==a.overrideNames[u]){h=a.overrideValues[u];n=!0;break}}n?l.__updateGL(this.__context,h):l.__updateGLFromBuffer(this.__context,k,a.paramPositions[r],a.paramLengths[r]);++b}else if(r<e+f){l=a.paramRefs_Float[d];t=0;for(J=a.overrideCount;t<J;)if(u=t++,l.name==a.overrideNames[u]){m=a.overrideValues[u];
n=!0;break}n?l.__updateGL(this.__context,m):l.__updateGLFromBuffer(this.__context,k,a.paramPositions[r],a.paramLengths[r]);++d}else{l=a.paramRefs_Int[c];t=0;for(J=a.overrideCount;t<J;)if(u=t++,l.name==a.overrideNames[u]){g=a.overrideValues[u];n=!0;break}n?l.__updateGL(this.__context,g):l.__updateGLFromBuffer(this.__context,k,a.paramPositions[r],a.paramLengths[r]);++c}}},get_glFragmentSource:function(){return this.__glFragmentSource},get_glVertexSource:function(){return this.__glVertexSource},__class__:$a};
var Me=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 openfl_TextureCoordv;\n\t\t\n\t\tuniform sampler2D openfl_Texture;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvec4 color = texture2D (openfl_Texture, openfl_TextureCoordv);\n\t\t\t\n\t\t\tif (color.a == 0.0) {\n\t\t\t\t\n\t\t\t\tdiscard;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tgl_FragColor = color;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}");null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\tvarying vec2 openfl_TextureCoordv;\n\t\t\n\t\tuniform mat4 openfl_Matrix;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\t\t\t\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\t\n\t\t}");
$a.call(this);this.__isGenerated=!0;this.__initGL()};m["openfl._internal.renderer.opengl.GLMaskShader"]=Me;Me.__name__="openfl._internal.renderer.opengl.GLMaskShader";Me.__super__=$a;Me.prototype=v($a.prototype,{openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_Texture:null,__class__:Me});var pd=function(){};m["openfl._internal.renderer.opengl.GLShape"]=pd;pd.__name__="openfl._internal.renderer.opengl.GLShape";pd.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)){var d=
a.__graphics;if(null!=d){b.__setBlendMode(a.__worldBlendMode);b.__pushMaskObject(a);Da.render(d,b);if(null!=d.__bitmap&&d.__visible){var c=b.__context.webgl,e=b.__initDisplayShader(a.__worldShader);b.setShader(e);b.applyBitmapData(d.__bitmap,b.__allowSmoothing);b.applyMatrix(b.__getMatrix(d.__worldTransform));b.applyAlpha(a.__worldAlpha);b.applyColorTransform(a.__worldColorTransform);b.updateShader();c.bindBuffer(c.ARRAY_BUFFER,d.__bitmap.getBuffer(b.__context));null!=e.__position&&c.vertexAttribPointer(e.__position.index,
3,c.FLOAT,!1,56,0);null!=e.__textureCoord&&c.vertexAttribPointer(e.__textureCoord.index,2,c.FLOAT,!1,56,12);c.drawArrays(c.TRIANGLE_STRIP,0,4);b.__clearShader()}b.__popMaskObject(a)}}};pd.renderMask=function(a,b){a=a.__graphics;if(null!=a&&(Da.renderMask(a,b),null!=a.__bitmap)){var d=b.__context.webgl,c=b.__maskShader;b.setShader(c);b.applyBitmapData(a.__bitmap,b.__allowSmoothing);b.applyMatrix(b.__getMatrix(a.__worldTransform));b.updateShader();d.bindBuffer(d.ARRAY_BUFFER,a.__bitmap.getBuffer(b.__context));
d.vertexAttribPointer(c.__position.index,3,d.FLOAT,!1,56,0);d.vertexAttribPointer(c.__textureCoord.index,2,d.FLOAT,!1,56,12);d.drawArrays(d.TRIANGLE_STRIP,0,4);b.__clearShader()}};var Pi=function(){};m["openfl._internal.renderer.opengl.GLTextField"]=Pi;Pi.__name__="openfl._internal.renderer.opengl.GLTextField";Pi.render=function(a,b,d){var c=b.__softwareRenderer;d=a.__textEngine;var e=d.background||d.border?d.bounds:d.textBounds;b=a.__graphics;a.__dirty&&(a.__updateLayout(),null==b.__bounds&&(b.__bounds=
new M),b.__bounds.copyFrom(e));b.__update(c.__worldTransform);if(a.__dirty||b.__dirty){var f=b.__width,h=b.__height;if(!(null!=d.text&&!F.equals(d.text,"")||d.background||d.border||d.__hasFocus||1==d.type&&d.selectable)||(0>=d.width||0>=d.height)&&2!=d.autoSize)a.__graphics.__canvas=null,a.__graphics.__context=null,a.__graphics.__bitmap=null,a.__graphics.set___dirty(!1),a.__dirty=!1;else{null==a.__graphics.__canvas&&(a.__graphics.__canvas=window.document.createElement("canvas"),a.__graphics.__context=
a.__graphics.__canvas.getContext("2d"));K.context=b.__context;var k=b.__renderTransform;if(c.__isDOM){var n=c.pixelRatio;b.__canvas.width=f*n|0;b.__canvas.height=h*n|0;b.__canvas.style.width=f+"px";b.__canvas.style.height=h+"px";f=P.__pool.get();f.copyFrom(k);f.scale(n,n);c.setTransform(f,K.context);P.__pool.release(f)}else b.__canvas.width=f,b.__canvas.height=h,K.context.setTransform(k.a,k.b,k.c,k.d,k.tx,k.ty);null==K.clearRect&&(K.clearRect="undefined"!==typeof navigator&&"undefined"!==typeof navigator.isCocoonJS);
K.clearRect&&K.context.clearRect(0,0,b.__canvas.width,b.__canvas.height);if(null!=d.text&&""!=d.text||d.__hasFocus){k=d.text;!c.__allowSmoothing||0==d.antiAliasType&&400==d.sharpness?(b.__context.mozImageSmoothingEnabled=!1,b.__context.msImageSmoothingEnabled=!1,b.__context.imageSmoothingEnabled=!1):(b.__context.mozImageSmoothingEnabled=!0,b.__context.msImageSmoothingEnabled=!0,b.__context.imageSmoothingEnabled=!0);if(d.border||d.background)K.context.rect(.5,.5,e.width-1,e.height-1),d.background&&
(c=Q.hex(d.backgroundColor&16777215,6),K.context.fillStyle="#"+c,K.context.fill()),d.border&&(K.context.lineWidth=1,c=Q.hex(d.borderColor&16777215,6),K.context.strokeStyle="#"+c,K.context.stroke());K.context.textBaseline="top";K.context.textAlign="start";c=-a.get_scrollH();f=n=0;for(h=a.get_scrollV()-1;f<h;){var l=f++;n-=d.lineHeights.get(l)}f=0;h=(new wa("(iPad|iPhone|iPod|Firefox)","g")).match(window.navigator.userAgent);l=0;for(var m=d.layoutGroups;l<m.get_length();){var g=m.get(l);++l;if(!(g.lineIndex<
a.get_scrollV()-1)){if(g.lineIndex>a.get_scrollV()+d.bottomScrollV-2)break;if(g.format.underline){K.context.beginPath();K.context.strokeStyle="#000000";K.context.lineWidth=.5;var q=g.offsetX+c-e.x;var p=g.offsetY+f+n+g.ascent-e.y;K.context.moveTo(q,p);K.context.lineTo(q+g.width,p);K.context.stroke()}K.context.font=X.getFont(g.format);q=Q.hex(g.format.color&16777215,6);K.context.fillStyle="#"+q;h&&(f=.185*g.format.size);K.context.fillText(F.substring(k,g.startIndex,g.endIndex),g.offsetX+c-e.x,g.offsetY+
f+n-e.y);if(-1<a.__caretIndex&&d.selectable)if(a.__selectionIndex==a.__caretIndex){if(a.__showCursor&&g.startIndex<=a.__caretIndex&&g.endIndex>=a.__caretIndex){p=q=0;for(var r=a.__caretIndex-g.startIndex;p<r;){var t=p++;if(g.positions.length<=t)break;q+=g.positions[t]}p=0;r=a.get_scrollV();for(t=g.lineIndex+1;r<t;){var J=r++;p+=d.lineHeights.get(J-1)}K.context.beginPath();r=Q.hex(g.format.color&16777215,6);K.context.strokeStyle="#"+r;K.context.moveTo(g.offsetX+q-a.get_scrollH()-e.x,p+2-e.y);K.context.lineWidth=
1;K.context.lineTo(g.offsetX+q-a.get_scrollH()-e.x,p+X.getFormatHeight(a.get_defaultTextFormat())-1-e.y);K.context.stroke();K.context.closePath()}}else if(g.startIndex<=a.__caretIndex&&g.endIndex>=a.__caretIndex||g.startIndex<=a.__selectionIndex&&g.endIndex>=a.__selectionIndex||g.startIndex>a.__caretIndex&&g.endIndex<a.__selectionIndex||g.startIndex>a.__selectionIndex&&g.endIndex<a.__caretIndex)q=Math.min(a.__selectionIndex,a.__caretIndex)|0,p=Math.max(a.__selectionIndex,a.__caretIndex)|0,g.startIndex>
q&&(q=g.startIndex),g.endIndex<p&&(p=g.endIndex),t=a.getCharBoundaries(q),p>=F.get_length(d.text)?(r=a.getCharBoundaries(F.get_length(d.text)-1),r.x+=r.width+2):r=a.getCharBoundaries(p),null!=t&&null!=r&&(K.context.fillStyle="#000000",K.context.fillRect(t.x+c,t.y+n,r.x-t.x,g.height),K.context.fillStyle="#FFFFFF",K.context.fillText(F.substring(k,q,p),c+t.x,g.offsetY+f+n))}}}else{if(d.border||d.background)d.border?K.context.rect(.5,.5,e.width-1,e.height-1):K.context.rect(0,0,e.width,e.height),d.background&&
(e=Q.hex(d.backgroundColor&16777215,6),K.context.fillStyle="#"+e,K.context.fill()),d.border&&(K.context.lineWidth=1,K.context.lineCap="square",e=Q.hex(d.borderColor&16777215,6),K.context.strokeStyle="#"+e,K.context.stroke());if(-1<a.__caretIndex&&d.selectable&&a.__showCursor){e=-a.get_scrollH();c=k=0;for(n=a.get_scrollV()-1;c<n;)f=c++,k+=d.lineHeights.get(f);K.context.beginPath();d=Q.hex(a.get_defaultTextFormat().color&16777215,6);K.context.strokeStyle="#"+d;K.context.moveTo(e+2.5,k+2.5);K.context.lineWidth=
1;K.context.lineTo(e+2.5,k+X.getFormatHeight(a.get_defaultTextFormat())-1);K.context.stroke();K.context.closePath()}}b.__bitmap=ja.fromCanvas(a.__graphics.__canvas);b.__visible=!0;a.__dirty=!1;b.set___dirty(!1)}}};var W=function(){};m["openfl._internal.renderer.opengl.GLTilemap"]=W;W.__name__="openfl._internal.renderer.opengl.GLTilemap";W.buildBuffer=function(a,b){if(a.__renderable&&0!=a.__group.__tiles.length&&!(0>=a.__worldAlpha)){W.bufferLength=0;W.bufferPosition=0;var d=M.__pool.get(),c=P.__pool.get(),
e=P.__pool.get(),f=4;a.tileAlphaEnabled&&++f;a.tileColorTransformEnabled&&(f+=8);W.buildBufferTileContainer(a,a.__group,b,e,f,a.__tileset,a.tileAlphaEnabled,a.__worldAlpha,a.tileColorTransformEnabled,a.__worldColorTransform,null,d,c);a.__bufferLength=W.bufferLength;M.__pool.release(d);P.__pool.release(c);P.__pool.release(e)}};W.buildBufferTileContainer=function(a,b,d,c,e,f,h,k,n,l,m,g,q){var p=P.__pool.get(),r=d.__roundPixels,C=b.__tiles;W.resizeBuffer(a,W.bufferPosition+b.__length*e*6);for(var t=
a.__bufferData,u,v,ub,w=null,ca,z,I,y,B,x,F,D,E,G,K,H=h?5:4,L=0;L<C.length;)if(y=C[L],++L,p.setTo(1,0,0,1,-y.get_originX(),-y.get_originY()),p.concat(y.get_matrix()),p.concat(c),r&&(p.tx=Math.round(p.tx),p.ty=Math.round(p.ty)),v=null!=y.get_tileset()?y.get_tileset():f,ub=y.get_alpha()*k,u=y.get_visible(),y.__dirty=!1,u&&!(0>=ub))if(n&&(null!=y.get_colorTransform()?null==l?w=y.get_colorTransform():(null==W.cacheColorTransform&&(W.cacheColorTransform=new Ca),w=W.cacheColorTransform,w.redMultiplier=
l.redMultiplier*y.get_colorTransform().redMultiplier,w.greenMultiplier=l.greenMultiplier*y.get_colorTransform().greenMultiplier,w.blueMultiplier=l.blueMultiplier*y.get_colorTransform().blueMultiplier,w.alphaMultiplier=l.alphaMultiplier*y.get_colorTransform().alphaMultiplier,w.redOffset=l.redOffset+y.get_colorTransform().redOffset,w.greenOffset=l.greenOffset+y.get_colorTransform().greenOffset,w.blueOffset=l.blueOffset+y.get_colorTransform().blueOffset,w.alphaOffset=l.alphaOffset+y.get_colorTransform().alphaOffset):
w=l),h||(ub=1),0<y.__length)t=W.bufferLength,u=W.bufferPosition,W.buildBufferTileContainer(a,y,d,p,e,v,h,ub,n,w,m,g,q),W.resizeBuffer(a,t+(W.bufferPosition-u)),t=a.__bufferData;else if(null!=v&&(u=y.get_id(),ca=v.__bitmapData,null!=ca)){if(-1==u){z=y.get_rect();if(null==z||0>=z.width||0>=z.height)continue;v=z.x/ca.width;y=z.y/ca.height;u=z.get_right()/ca.width;B=z.get_bottom()/ca.height}else{ca=v.__data[u];if(null==ca)continue;g.setTo(ca.x,ca.y,ca.width,ca.height);z=g;v=ca.__uvX;y=ca.__uvY;u=ca.__uvWidth;
B=ca.__uvHeight}ca=z.width;I=z.height;z=0*p.a+0*p.c+p.tx;x=0*p.b+0*p.d+p.ty;F=ca*p.a+0*p.c+p.tx;D=ca*p.b+0*p.d+p.ty;E=0*p.a+I*p.c+p.tx;G=0*p.b+I*p.d+p.ty;K=ca*p.a+I*p.c+p.tx;I=ca*p.b+I*p.d+p.ty;ca=W.bufferPosition;t[ca]=z;t[ca+1]=x;t[ca+2]=v;t[ca+3]=y;t[ca+e]=F;t[ca+e+1]=D;t[ca+e+2]=u;t[ca+e+3]=y;t[ca+2*e]=E;t[ca+2*e+1]=G;t[ca+2*e+2]=v;t[ca+2*e+3]=B;t[ca+3*e]=E;t[ca+3*e+1]=G;t[ca+3*e+2]=v;t[ca+3*e+3]=B;t[ca+4*e]=F;t[ca+4*e+1]=D;t[ca+4*e+2]=u;t[ca+4*e+3]=y;t[ca+5*e]=K;t[ca+5*e+1]=I;t[ca+5*e+2]=u;t[ca+
5*e+3]=B;h&&(t[ca+0*e+4]=ub,t[ca+e+4]=ub,t[ca+2*e+4]=ub,t[ca+3*e+4]=ub,t[ca+4*e+4]=ub,t[ca+5*e+4]=ub);if(n)if(null!=w)for(ub=0;6>ub;)v=ub++,t[ca+e*v+H]=w.redMultiplier,t[ca+e*v+H+1]=w.greenMultiplier,t[ca+e*v+H+2]=w.blueMultiplier,t[ca+e*v+H+3]=w.alphaMultiplier,t[ca+e*v+H+4]=w.redOffset,t[ca+e*v+H+5]=w.greenOffset,t[ca+e*v+H+6]=w.blueOffset,t[ca+e*v+H+7]=w.alphaOffset;else for(ub=0;6>ub;)v=ub++,t[ca+e*v+H]=1,t[ca+e*v+H+1]=1,t[ca+e*v+H+2]=1,t[ca+e*v+H+3]=1,t[ca+e*v+H+4]=0,t[ca+e*v+H+5]=0,t[ca+e*v+
H+6]=0,t[ca+e*v+H+7]=0;W.bufferPosition+=6*e}b.__dirty=!1;a.__bufferDirty=!0;W.bufferLength=W.bufferPosition;P.__pool.release(p)};W.flush=function(a,b,d){null==W.currentShader&&(W.currentShader=b.__defaultDisplayShader);if(W.bufferPosition>W.lastFlushedPosition&&null!=W.currentBitmapData&&null!=W.currentShader){var c=b.__context.webgl,e=b.__initDisplayShader(W.currentShader);b.setShader(e);b.applyBitmapData(W.currentBitmapData,b.__allowSmoothing&&a.smoothing);b.applyMatrix(b.__getMatrix(a.__renderTransform));
a.tileAlphaEnabled?b.useAlphaArray():b.applyAlpha(a.__worldAlpha);a.tileBlendModeEnabled&&b.__setBlendMode(d);a.tileColorTransformEnabled?(b.applyHasColorTransform(!0),b.useColorTransformArray()):b.applyColorTransform(a.__worldColorTransform);b.updateShader();d=4;a.tileAlphaEnabled&&++d;a.tileColorTransformEnabled&&(d+=8);if(null==a.__buffer||a.__bufferContext!=b.__context)a.__bufferContext=b.__context,a.__buffer=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,a.__buffer);a.__bufferDirty&&(kb.bufferData(c,
c.ARRAY_BUFFER,a.__bufferData,c.DYNAMIC_DRAW),a.__bufferDirty=!1);null!=e.__position&&c.vertexAttribPointer(e.__position.index,2,c.FLOAT,!1,4*d,0);null!=e.__textureCoord&&c.vertexAttribPointer(e.__textureCoord.index,2,c.FLOAT,!1,4*d,8);a.tileAlphaEnabled&&null!=e.__alpha&&c.vertexAttribPointer(e.__alpha.index,1,c.FLOAT,!1,4*d,16);a.tileColorTransformEnabled&&(a=a.tileAlphaEnabled?5:4,null!=e.__colorMultiplier&&c.vertexAttribPointer(e.__colorMultiplier.index,4,c.FLOAT,!1,4*d,4*a),null!=e.__colorOffset&&
c.vertexAttribPointer(e.__colorOffset.index,4,c.FLOAT,!1,4*d,4*(a+4)));c.drawArrays(c.TRIANGLES,0==W.lastFlushedPosition?0:W.lastFlushedPosition/d|0,(W.bufferPosition-W.lastFlushedPosition)/d|0);b.__clearShader()}W.lastFlushedPosition=W.bufferPosition;W.lastUsedBitmapData=W.currentBitmapData;W.lastUsedShader=W.currentShader};W.render=function(a,b){if(a.__renderable&&!(0>=a.__worldAlpha)&&(W.buildBuffer(a,b),0!=a.__bufferLength)){W.bufferLength=a.__bufferLength;W.bufferPosition=0;W.lastFlushedPosition=
0;W.lastUsedBitmapData=null;W.lastUsedShader=null;W.currentBitmapData=null;W.currentShader=null;var d=4;a.tileAlphaEnabled&&++d;a.tileColorTransformEnabled&&(d+=8);W.currentBlendMode=a.__worldBlendMode;a.tileBlendModeEnabled||b.__setBlendMode(W.currentBlendMode);b.__pushMaskObject(a);var c=M.__pool.get();c.setTo(0,0,a.__width,a.__height);b.__pushMaskRect(c,a.__renderTransform);W.renderTileContainer(a,b,a.__group,a.__worldShader,d,a.__tileset,a.__worldAlpha,a.tileBlendModeEnabled,W.currentBlendMode,
null);W.flush(a,b,W.currentBlendMode);b.__popMaskRect();b.__popMaskObject(a);M.__pool.release(c)}};W.renderTileContainer=function(a,b,d,c,e,f,h,k,n,l){d=d.__tiles;for(var m,g,p,q=null,r,C=0;C<d.length;){var t=d[C];++C;m=null!=t.get_tileset()?t.get_tileset():f;g=t.get_alpha()*h;if((p=t.get_visible())&&!(0>=g))if(p=null!=t.get_shader()?t.get_shader():c,k&&(q=null!=t.__blendMode?t.__blendMode:n),0<t.__length)W.renderTileContainer(a,b,t,p,e,m,g,k,q,l);else if(null!=m&&(r=t.get_id(),g=m.__bitmapData,null!=
g)){if(-1==r){if(m=t.get_rect(),null==m||0>=m.width||0>=m.height)continue}else if(m=m.__data[r],null==m)continue;(p!=W.currentShader&&null!=W.currentShader||g!=W.currentBitmapData&&null!=W.currentBitmapData||W.currentBlendMode!=q)&&W.flush(a,b,W.currentBlendMode);W.currentBitmapData=g;W.currentShader=p;W.currentBlendMode=q;W.bufferPosition+=6*e}}};W.renderMask=function(a,b){};W.resizeBuffer=function(a,b){if(null==a.__bufferData){var d=null!=b?new Float32Array(b):null;a.__bufferData=d}else b>a.__bufferData.length&&
(d=null!=b?new Float32Array(b):null,d.set(a.__bufferData),a.__bufferData=d);a.__bufferLength=b};var xj=function(){this._registers=tb.toFloatVector(null,4096);this.clearSettings()};m["openfl._internal.stage3D.Context3DStateCache"]=xj;xj.__name__="openfl._internal.stage3D.Context3DStateCache";xj.prototype={_activeTexture:null,_activeVertexArray:null,_cullingMode:null,_depthTestCompareMode:null,_depthTestEnabled:null,_depthTestMask:null,_destBlendFactor:null,_program:null,_registers:null,_srcBlendFactor:null,
_viewportHeight:null,_viewportOriginX:null,_viewportOriginY:null,_viewportWidth:null,clearRegisters:function(){for(var a=0;4096>a;){var b=a++;this._registers.set(b,-999999999)}},clearSettings:function(){this._destBlendFactor=this._srcBlendFactor=null;this._depthTestMask=this._depthTestEnabled=!1;this._cullingMode=this._program=this._depthTestCompareMode=null;this._viewportHeight=this._viewportWidth=this._viewportOriginY=this._viewportOriginX=this._activeVertexArray=this._activeTexture=-1;this.clearRegisters()},
updateCullingMode:function(a){this._cullingMode=a;return!0},updateViewport:function(a,b,d,c){this._viewportOriginX=a;this._viewportOriginY=b;this._viewportWidth=d;this._viewportHeight=c;return!0},__class__:xj};var yj=function(a){this.__formatMapAlpha=new Y;this.__formatMap=new Y;this.checkDXT(a);this.checkETC1(a);this.checkPVRTC(a)};m["openfl._internal.stage3D.GLCompressedTextureFormats"]=yj;yj.__name__="openfl._internal.stage3D.GLCompressedTextureFormats";yj.prototype={__formatMap:null,__formatMapAlpha:null,
checkDXT:function(a){a=a.webgl.getExtension("WEBGL_compressed_texture_s3tc");null!=a&&(this.__formatMap.h[0]=a.COMPRESSED_RGBA_S3TC_DXT1_EXT,this.__formatMapAlpha.h[0]=a.COMPRESSED_RGBA_S3TC_DXT5_EXT)},checkETC1:function(a){a=a.webgl.getExtension("WEBGL_compressed_texture_etc1");null!=a&&(this.__formatMap.h[2]=a.COMPRESSED_RGB_ETC1_WEBGL,this.__formatMapAlpha.h[2]=a.COMPRESSED_RGB_ETC1_WEBGL)},checkPVRTC:function(a){a=a.webgl.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");null!=a&&(this.__formatMap.h[1]=
a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG,this.__formatMapAlpha.h[1]=a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG)},__class__:yj};var fb=function(){};m["openfl._internal.stage3D.GLUtils"]=fb;fb.__name__="openfl._internal.stage3D.GLUtils";fb.CheckGLError=function(){if(fb.debug){var a=me.context.getError();if(0!=a){switch(a){case 0:a="GL_NO_ERROR";break;case 1280:a="GL_INVALID_ENUM";break;case 1281:a="GL_INVALID_VALUE";break;case 1282:a="GL_INVALID_OPERATION";break;case 1285:a="GL_OUT_OF_MEMORY";break;case 1286:a="GL_INVALID_FRAMEBUFFER_OPERATION";
break;default:a=null==a?"null":""+a}throw new w(new Yc("Error calling openGL api. Error: "+a+"\n"));}}};var mc=function(a,b,d,c,e,f,h,k,n,l){null==l&&(l=!1);null==n&&(n=!1);null==k&&(k=!1);null==h&&(h=!1);null==f&&(f=0);null==e&&(e=0);this.set_minFilter(a);this.set_magFilter(b);this.set_wrapModeS(d);this.set_wrapModeT(c);this.set_lodBias(e);this.set_maxAniso(f);this.ignoreSampler=h;this.centroid=k;this.mipmapGenerated=n;this.textureAlpha=l;this.__samplerDirty=!0};m["openfl._internal.stage3D.SamplerState"]=
mc;mc.__name__="openfl._internal.stage3D.SamplerState";mc.prototype={lodBias:null,magFilter:null,maxAniso:null,minFilter:null,wrapModeS:null,wrapModeT:null,centroid:null,ignoreSampler:null,mipmapGenerated:null,textureAlpha:null,__samplerDirty:null,set_lodBias:function(a){this.lodBias!=a&&(this.__samplerDirty=!0);return this.lodBias=a},set_magFilter:function(a){this.magFilter!=a&&(this.__samplerDirty=!0);return this.magFilter=a},set_maxAniso:function(a){this.maxAniso!=a&&(this.__samplerDirty=!0);return this.maxAniso=
a},set_minFilter:function(a){this.minFilter!=a&&(this.__samplerDirty=!0);return this.minFilter=a},set_wrapModeS:function(a){this.wrapModeS!=a&&(this.__samplerDirty=!0);return this.wrapModeS=a},set_wrapModeT:function(a){this.wrapModeT!=a&&(this.__samplerDirty=!0);return this.wrapModeT=a},__class__:mc};var z=function(){};m["openfl._internal.stage3D.opengl.GLContext3D"]=z;z.__name__="openfl._internal.stage3D.opengl.GLContext3D";z.create=function(a){z.context=a;z.gl=a.__renderer.__context.webgl;var b=
new Float32Array(512);a.__vertexConstants=b;b=new Float32Array(512);a.__fragmentConstants=b;b=[1,1,1,1];b=null!=b?new Float32Array(b):null;a.__positionScale=b;a.__samplerDirty=0;a.__samplerTextures=tb.toObjectVector(null,8);a.__samplerStates=[];a.__samplerStates[0]=new mc(z.gl.LINEAR,z.gl.LINEAR,z.gl.CLAMP_TO_EDGE,z.gl.CLAMP_TO_EDGE);a.__samplerStates[1]=new mc(z.gl.LINEAR,z.gl.LINEAR,z.gl.CLAMP_TO_EDGE,z.gl.CLAMP_TO_EDGE);a.__samplerStates[2]=new mc(z.gl.LINEAR,z.gl.LINEAR,z.gl.CLAMP_TO_EDGE,z.gl.CLAMP_TO_EDGE);
a.__samplerStates[3]=new mc(z.gl.LINEAR,z.gl.LINEAR,z.gl.CLAMP_TO_EDGE,z.gl.CLAMP_TO_EDGE);a.__samplerStates[4]=new mc(z.gl.LINEAR,z.gl.LINEAR,z.gl.CLAMP_TO_EDGE,z.gl.CLAMP_TO_EDGE);a.__samplerStates[5]=new mc(z.gl.LINEAR,z.gl.LINEAR,z.gl.CLAMP_TO_EDGE,z.gl.CLAMP_TO_EDGE);a.__samplerStates[6]=new mc(z.gl.LINEAR,z.gl.LINEAR,z.gl.CLAMP_TO_EDGE,z.gl.CLAMP_TO_EDGE);a.__samplerStates[7]=new mc(z.gl.LINEAR,z.gl.LINEAR,z.gl.CLAMP_TO_EDGE,z.gl.CLAMP_TO_EDGE);a.maxBackBufferHeight=a.maxBackBufferWidth=z.gl.getParameter(z.gl.MAX_VIEWPORT_DIMS);
a.__backBufferAntiAlias=0;a.__backBufferEnableDepthAndStencil=!0;a.__backBufferWantsBestResolution=!1;a.__frameCount=0;a.__rttDepthAndStencil=!1;a.__samplerDirty=0;a.__stencilCompareMode=0;a.__stencilRef=0;a.__stencilReadMask=255;b=z.gl.getExtension("EXT_texture_filter_anisotropic");null!=b&&Object.prototype.hasOwnProperty.call(b,"MAX_TEXTURE_MAX_ANISOTROPY_EXT")||(b=z.gl.getExtension("MOZ_EXT_texture_filter_anisotropic"));null!=b&&Object.prototype.hasOwnProperty.call(b,"MAX_TEXTURE_MAX_ANISOTROPY_EXT")||
(b=z.gl.getExtension("WEBKIT_EXT_texture_filter_anisotropic"));a.__supportsPackedDepthStencil=!0;Rb.DEPTH_STENCIL=z.gl.DEPTH_STENCIL;a.__supportsAnisotropicFiltering=null!=b;a.__supportsAnisotropicFiltering&&(Rb.TEXTURE_MAX_ANISOTROPY_EXT=b.TEXTURE_MAX_ANISOTROPY_EXT,b=z.gl.getParameter(b.MAX_TEXTURE_MAX_ANISOTROPY_EXT),a.__maxAnisotropyTexture2D=b);fb.CheckGLError();b=z.gl.getParameter(z.gl.VENDOR);fb.CheckGLError();var d=z.gl.getParameter(z.gl.VERSION);fb.CheckGLError();var c=z.gl.getParameter(z.gl.RENDERER);
fb.CheckGLError();var e=z.gl.getParameter(z.gl.SHADING_LANGUAGE_VERSION);fb.CheckGLError();a.driverInfo="OpenGL Vendor="+b+" Version="+d+" Renderer="+c+" GLSL="+e};z.setCulling=function(a,b){z.context=a;z.gl=a.__renderer.__context.webgl;if(Rb.__stateCache.updateCullingMode(b)){switch(b){case 0:z.gl.enable(z.gl.CULL_FACE);z.gl.cullFace(z.gl.FRONT);break;case 1:z.gl.enable(z.gl.CULL_FACE);z.gl.cullFace(z.gl.BACK);break;case 2:z.gl.enable(z.gl.CULL_FACE);z.gl.cullFace(z.gl.FRONT_AND_BACK);break;case 3:z.gl.disable(z.gl.CULL_FACE);
break;default:return new Yc}a.__culling=b}return null};z.__setViewport=function(a,b,d,c){null!=z.context.__renderToTexture&&(b*=-1);Rb.__stateCache.updateViewport(a,b,d,c)&&(z.gl.viewport(a,b,d,c),fb.CheckGLError())};z.__updateBackbufferViewportTEMP=function(a){z.context=a;z.gl=a.__renderer.__context.webgl;z.__updateBackbufferViewport()};z.__updateBackbufferViewport=function(){Ld.__active||(Ld.__active=!0,z.context.__renderer.__clear());if(null==z.context.__renderToTexture&&0<z.context.backBufferWidth&&
0<z.context.backBufferHeight){var a=z.context.__stage3D.__stage.window,b=z.context.__stage3D.get_x()|0;a=a.__height*a.__scale-z.context.backBufferHeight-z.context.__stage3D.get_y()|0;z.__setViewport(0<b?b:0,0<a?a:0,z.context.backBufferWidth,z.context.backBufferHeight)}};z.__updateBlendFactorsTEMP=function(a){z.context=a;z.gl=a.__renderer.__context.webgl;z.__updateBlendFactors()};z.__updateBlendFactors=function(){if(null!=Rb.__stateCache._srcBlendFactor&&null!=Rb.__stateCache._destBlendFactor){switch(Rb.__stateCache._srcBlendFactor){case 0:var a=
z.gl.DST_ALPHA;break;case 1:a=z.gl.DST_COLOR;break;case 2:a=z.gl.ONE;break;case 3:a=z.gl.ONE_MINUS_DST_ALPHA;break;case 4:a=z.gl.ONE_MINUS_DST_COLOR;break;case 5:a=z.gl.ONE_MINUS_SRC_ALPHA;break;case 6:a=z.gl.ONE_MINUS_SRC_COLOR;break;case 7:a=z.gl.SRC_ALPHA;break;case 8:a=z.gl.SRC_COLOR;break;case 9:a=z.gl.ZERO;break;default:throw new w(new Yc);}switch(Rb.__stateCache._destBlendFactor){case 0:var b=z.gl.DST_ALPHA;break;case 1:b=z.gl.DST_COLOR;break;case 2:b=z.gl.ONE;break;case 3:b=z.gl.ONE_MINUS_DST_ALPHA;
break;case 4:b=z.gl.ONE_MINUS_DST_COLOR;break;case 5:b=z.gl.ONE_MINUS_SRC_ALPHA;break;case 6:b=z.gl.ONE_MINUS_SRC_COLOR;break;case 7:b=z.gl.SRC_ALPHA;break;case 8:b=z.gl.SRC_COLOR;break;case 9:b=z.gl.ZERO;break;default:throw new w(new Yc);}z.gl.enable(z.gl.BLEND);fb.CheckGLError();z.gl.blendFunc(a,b);fb.CheckGLError()}};z.__updateDepthAndStencilState=function(){(null!=z.context.__renderToTexture?z.context.__rttDepthAndStencil:z.context.__backBufferEnableDepthAndStencil)?(z.gl.enable(z.gl.DEPTH_TEST),
fb.CheckGLError(),z.gl.enable(z.gl.STENCIL_TEST)):(z.gl.disable(z.gl.DEPTH_TEST),fb.CheckGLError(),z.gl.disable(z.gl.STENCIL_TEST));fb.CheckGLError()};z.__updateDepthAndStencilStateTEMP=function(a){z.context=a;z.gl=a.__renderer.__context.webgl;z.__updateDepthAndStencilState()};z.__updateScissorRectangle=function(){if(null==z.context.__scissorRectangle)z.gl.disable(z.gl.SCISSOR_TEST);else{z.gl.enable(z.gl.SCISSOR_TEST);fb.CheckGLError();var a=0,b=0,d=0;null!=z.context.__renderToTexture?z.context.__renderToTexture instanceof
Mh?a=z.context.__renderToTexture.__height:z.context.__renderToTexture instanceof Nh&&(a=z.context.__renderToTexture.__height):(d=z.context.__stage3D.__stage.window,a=z.context.backBufferHeight,b=z.context.__stage3D.get_x()|0,d=(d.__height*d.__scale|0)-a-(z.context.__stage3D.get_y()|0));z.gl.scissor((z.context.__scissorRectangle.x|0)+b,a-(z.context.__scissorRectangle.y|0)-(z.context.__scissorRectangle.height|0)+d,z.context.__scissorRectangle.width|0,z.context.__scissorRectangle.height|0)}fb.CheckGLError()};
z.__updateScissorRectangleTEMP=function(a){z.context=a;z.gl=a.__renderer.__context.webgl;z.__updateScissorRectangle()};var zk=function(){};m["openfl._internal.stage3D.opengl.GLCubeTexture"]=zk;zk.__name__="openfl._internal.stage3D.opengl.GLCubeTexture";zk.create=function(a,b){a.__textureTarget=b.__context.webgl.TEXTURE_CUBE_MAP;a.__uploadedSides=0};var Ak=function(){};m["openfl._internal.stage3D.opengl.GLProgram3D"]=Ak;Ak.__name__="openfl._internal.stage3D.opengl.GLProgram3D";Ak.use=function(a,b){b=
b.__context.webgl;b.useProgram(a.__programID);fb.CheckGLError();a.__vertexUniformMap.markAllDirty();a.__fragmentUniformMap.markAllDirty();for(var d=a.__samplerUniforms.h;null!=d;){var c=d.item;d=d.next;if(1==c.regCount)b.uniform1i(c.location,c.regIndex),fb.CheckGLError();else throw new w(new Yc("!!! TODO: uniform location on webgl"));}for(a=a.__alphaSamplerUniforms.h;null!=a;)if(d=a.item,a=a.next,1==d.regCount)b.uniform1i(d.location,d.regIndex),fb.CheckGLError();else throw new w(new Yc("!!! TODO: uniform location on webgl"));
};var Oh=function(){};m["openfl._internal.stage3D.opengl.GLRectangleTexture"]=Oh;Oh.__name__="openfl._internal.stage3D.opengl.GLRectangleTexture";Oh.create=function(a,b){a.__textureTarget=b.__context.webgl.TEXTURE_2D;Oh.uploadFromTypedArray(a,b,null)};Oh.uploadFromTypedArray=function(a,b,d){b=b.__context.webgl;b.bindTexture(a.__textureTarget,a.__textureID);fb.CheckGLError();kb.texImage2D(b,a.__textureTarget,0,a.__internalFormat,a.__width,a.__height,0,a.__format,b.UNSIGNED_BYTE,d);fb.CheckGLError();
b.bindTexture(a.__textureTarget,null);fb.CheckGLError()};var Bk=function(){};m["openfl._internal.stage3D.opengl.GLTexture"]=Bk;Bk.__name__="openfl._internal.stage3D.opengl.GLTexture";Bk.create=function(a,b){b=b.__context.webgl;a.__textureTarget=b.TEXTURE_2D;b.bindTexture(a.__textureTarget,a.__textureID);fb.CheckGLError();kb.texImage2D(b,a.__textureTarget,0,a.__internalFormat,a.__width,a.__height,0,a.__format,b.UNSIGNED_BYTE,null);fb.CheckGLError();b.bindTexture(a.__textureTarget,null)};var Zc=function(){};
m["openfl._internal.stage3D.opengl.GLTextureBase"]=Zc;Zc.__name__="openfl._internal.stage3D.opengl.GLTextureBase";Zc.create=function(a,b){var d=b.__context.webgl;a.__textureID=d.createTexture();a.__textureContext=b.__context;null==Zc.__supportsBGRA&&(Zc.__textureInternalFormat=d.RGBA,Zc.__supportsBGRA=!1,Zc.__textureFormat=d.RGBA);null==Zc.__compressedTextureFormats&&(Zc.__compressedTextureFormats=new yj(b.__context));a.__internalFormat=Zc.__textureInternalFormat;a.__format=Zc.__textureFormat};var Ck=
function(){};m["openfl._internal.stage3D.opengl.GLVideoTexture"]=Ck;Ck.__name__="openfl._internal.stage3D.opengl.GLVideoTexture";Ck.create=function(a,b){a.__textureTarget=b.__context.webgl.TEXTURE_2D};var dk=sa["openfl._internal.swf.FilterType"]={__ename__:"openfl._internal.swf.FilterType",__constructs__:["BlurFilter","ColorMatrixFilter","DropShadowFilter","GlowFilter"],BlurFilter:(p=function(a,b,d){return{_hx_index:0,blurX:a,blurY:b,quality:d,__enum__:"openfl._internal.swf.FilterType",toString:r}},
p.__params__=["blurX","blurY","quality"],p),ColorMatrixFilter:(p=function(a){return{_hx_index:1,matrix:a,__enum__:"openfl._internal.swf.FilterType",toString:r}},p.__params__=["matrix"],p),DropShadowFilter:(p=function(a,b,d,c,e,f,h,k,n,l,m){return{_hx_index:2,distance:a,angle:b,color:d,alpha:c,blurX:e,blurY:f,strength:h,quality:k,inner:n,knockout:l,hideObject:m,__enum__:"openfl._internal.swf.FilterType",toString:r}},p.__params__="distance angle color alpha blurX blurY strength quality inner knockout hideObject".split(" "),
p),GlowFilter:(p=function(a,b,d,c,e,f,h,k){return{_hx_index:3,color:a,alpha:b,blurX:d,blurY:c,strength:e,quality:f,inner:h,knockout:k,__enum__:"openfl._internal.swf.FilterType",toString:r}},p.__params__="color alpha blurX blurY strength quality inner knockout".split(" "),p)},Ib=function(){this.symbols=new Y};m["openfl._internal.swf.SWFLite"]=Ib;Ib.__name__="openfl._internal.swf.SWFLite";Ib.resolveClass=function(a){var b=m[a];null==b&&(b=Q.replace(a,"openfl._legacy","openfl"),b=m[b]);null==b&&(a=Q.replace(a,
"openfl._v2","openfl"),b=m[a]);return b};Ib.resolveEnum=function(a){var b=sa[a];null==b&&(b=Q.replace(a,"openfl._legacy","openfl"),b=sa[b]);null==b&&(a=Q.replace(a,"openfl._v2","openfl"),b=sa[a]);return b};Ib.unserialize=function(a){if(null==a)return null;a=new mb(a);a.setResolver({resolveClass:Ib.resolveClass,resolveEnum:Ib.resolveEnum});return a.unserialize()};Ib.prototype={frameRate:null,library:null,root:null,symbols:null,createButton:function(a){return null},createMovieClip:function(a){null==
a&&(a="");if(""==a)return this.root.__createObject(this);for(var b=this.symbols.iterator();b.hasNext();){var d=b.next();if(d.className==a&&d instanceof Qf)return U.__cast(d,Qf).__createObject(this)}return null},getBitmapData:function(a){for(var b=this.symbols.iterator();b.hasNext();){var d=b.next();if(d.className==a&&d instanceof Nc)return nc.getBitmapData(d.path)}return null},hasSymbol:function(a){for(var b=this.symbols.iterator();b.hasNext();)if(b.next().className==a)return!0;return!1},serialize:function(){var a=
new wb;a.serialize(this);return a.toString()},__class__:Ib};var Sb=function(){Ya.call(this)};m["openfl.utils.AssetLibrary"]=Sb;Sb.__name__="openfl.utils.AssetLibrary";Sb.fromManifest=function(a){a=Ya.fromManifest(a);if(null!=a){if(a instanceof Sb)return a;var b=new Sb;b.__proxy=a;return b}return null};Sb.__super__=Ya;Sb.prototype=v(Ya.prototype,{__proxy:null,exists:function(a,b){return null!=this.__proxy?this.__proxy.exists(a,b):Ya.prototype.exists.call(this,a,b)},getAsset:function(a,b){return null!=
this.__proxy?this.__proxy.getAsset(a,b):Ya.prototype.getAsset.call(this,a,b)},getAudioBuffer:function(a){return null!=this.__proxy?this.__proxy.getAudioBuffer(a):Ya.prototype.getAudioBuffer.call(this,a)},getBytes:function(a){return null!=this.__proxy?this.__proxy.getBytes(a):Ya.prototype.getBytes.call(this,a)},getFont:function(a){return null!=this.__proxy?this.__proxy.getFont(a):Ya.prototype.getFont.call(this,a)},getImage:function(a){return null!=this.__proxy?this.__proxy.getImage(a):Ya.prototype.getImage.call(this,
a)},getText:function(a){return null!=this.__proxy?this.__proxy.getText(a):Ya.prototype.getText.call(this,a)},isLocal:function(a,b){return null!=this.__proxy?this.__proxy.isLocal(a,b):Ya.prototype.isLocal.call(this,a,b)},load:function(){return null!=this.__proxy?this.__proxy.load():Ya.prototype.load.call(this)},loadAudioBuffer:function(a){return null!=this.__proxy?this.__proxy.loadAudioBuffer(a):Ya.prototype.loadAudioBuffer.call(this,a)},loadBytes:function(a){return null!=this.__proxy?this.__proxy.loadBytes(a):
Ya.prototype.loadBytes.call(this,a)},loadFont:function(a){return null!=this.__proxy?this.__proxy.loadFont(a):Ya.prototype.loadFont.call(this,a)},loadImage:function(a){return null!=this.__proxy?this.__proxy.loadImage(a):Ya.prototype.loadImage.call(this,a)},loadText:function(a){return null!=this.__proxy?this.__proxy.loadText(a):Ya.prototype.loadText.call(this,a)},unload:function(){null!=this.__proxy?this.__proxy.unload():Ya.prototype.unload.call(this)},__class__:Sb});var zj=function(a,b){Ya.call(this);
this.id=a;this.instanceID=null!=b?b:a;this.alphaCheck=new ea;this.imageClassNames=new ea;this.rootPath=""};m["openfl._internal.swf.SWFLiteLibrary"]=zj;zj.__name__="openfl._internal.swf.SWFLiteLibrary";zj.__super__=Sb;zj.prototype=v(Sb.prototype,{alphaCheck:null,id:null,imageClassNames:null,instanceID:null,preloading:null,rootPath:null,swf:null,exists:function(a,b){return null==this.swf?!1:""==a&&"MOVIE_CLIP"==b?!0:"IMAGE"!=b&&"MOVIE_CLIP"!=b||null==this.swf?!1:this.swf.hasSymbol(a)},getImage:function(a){var b=
this.imageClassNames;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))b=this.imageClassNames,a=null!=t[a]?b.getReserved(a):b.h[a];b=this.alphaCheck;if(null!=t[a]?!b.existsReserved(a):!b.h.hasOwnProperty(a))for(var d=this.swf.symbols.iterator();d.hasNext();)if(b=d.next(),b instanceof Nc&&U.__cast(b,Nc).path==a&&null!=b.alpha){d=Sb.prototype.getImage.call(this,a);var c=Sb.prototype.getImage.call(this,b.alpha);this.__copyChannel(d,c);c=this.cachedImages;null!=t[a]?c.setReserved(a,d):c.h[a]=d;
this.cachedImages.remove(b.alpha);b=this.alphaCheck;null!=t[a]?b.setReserved(a,!0):b.h[a]=!0;return d}return Sb.prototype.getImage.call(this,a)},getMovieClip:function(a){return null!=this.swf?this.swf.createMovieClip(a):null},isLocal:function(a,b){return!0},load:function(){var a=this;if(null!=this.id){var b=this.id,d=this.preload;null!=t[b]?d.setReserved(b,!0):d.h[b]=!0}var c=new Ab;this.preloading=!0;var e=function(b){var d=a.id,e=a.cachedText;null!=t[d]?e.setReserved(d,b):e.h[d]=b;a.swf=Ib.unserialize(b);
a.swf.library=a;for(b=a.swf.symbols.iterator();b.hasNext();)if(d=b.next(),d instanceof Nc&&(e=d,null!=e.className)){d=e.className;e=e.path;var f=a.imageClassNames;null!=t[d]?f.setReserved(d,e):f.h[d]=e}b=a.instanceID;d=a.swf;e=Ib.instances;null!=t[b]?e.setReserved(b,d):e.h[b]=d;a.__load().onProgress(u(c,c.progress)).onError(u(c,c.error)).onComplete(function(b){a.preloading=!1;c.complete(a)})};if(nc.exists(this.id)){for(b=this.paths.keys();b.hasNext();){d=b.next();var f=this.preload;null!=t[d]?f.setReserved(d,
!0):f.h[d]=!0}this.loadText(this.id).onError(u(c,c.error)).onComplete(e)}else{for(b=this.paths.keys();b.hasNext();)d=b.next(),f=this.preload,null!=t[d]?f.setReserved(d,!0):f.h[d]=!0;b=null;b=this.id;d=this.paths;(null!=t[b]?d.existsReserved(b):d.h.hasOwnProperty(b))?(b=this.id,d=this.paths,b=null!=t[b]?d.getReserved(b):d.h[b]):b=null!=this.rootPath&&""!=this.rootPath?this.rootPath+"/"+this.id:this.id;var h=new Ph;h.addEventListener("complete",function(a){e(h.data)});h.addEventListener("ioError",function(a){c.error(a)});
h.load(new nh(b))}return c.future},loadImage:function(a){var b=this,d=this.imageClassNames;if(null!=t[a]?d.existsReserved(a):d.h.hasOwnProperty(a))d=this.imageClassNames,a=null!=t[a]?d.getReserved(a):d.h[a];this.preloading?d=!1:(d=this.alphaCheck,d=!(null!=t[a]?d.existsReserved(a):d.h.hasOwnProperty(a)));if(d)for(d=this.swf.symbols.iterator();d.hasNext();){var c=d.next();if(c instanceof Nc&&U.__cast(c,Nc).path==a&&(c=[c],null!=c[0].alpha))return d=[new Ab],this.__loadImage(a).onError((p=d[0],u(p,
p.error))).onComplete(function(c,d){return function(e){b.__loadImage(d[0].alpha).onError((p=c[0],u(p,p.error))).onComplete(function(c,d){return function(f){b.__copyChannel(e,f);f=b.cachedImages;null!=t[a]?f.setReserved(a,e):f.h[a]=e;b.cachedImages.remove(d[0].alpha);f=b.alphaCheck;null!=t[a]?f.setReserved(a,!0):f.h[a]=!0;c[0].complete(e)}}(c,d))}}(d,c)),d[0].future}return Sb.prototype.loadImage.call(this,a)},unload:function(){if(null!=this.swf){var a=this.instanceID;var b=Ib.instances;(null!=t[a]?
b.existsReserved(a):b.h.hasOwnProperty(a))?(a=this.instanceID,b=Ib.instances,a=(null!=t[a]?b.getReserved(a):b.h[a])==this.swf):a=!1;a&&Ib.instances.remove(this.instanceID);for(a=this.swf.symbols.iterator();a.hasNext();)b=a.next(),b instanceof Nc&&nc.cache.removeBitmapData(b.path)}},__copyChannel:function(a,b){null!=b&&a.copyChannel(b,b.get_rect(),new kd,Lf.RED,Lf.ALPHA);a.buffer.premultiplied=!0;a.set_premultiplied(!1)},__fromManifest:function(a){this.rootPath=a.rootPath;Sb.prototype.__fromManifest.call(this,
a);this.bytesTotal=0;for(a=this.paths.keys();a.hasNext();){var b=a.next(),d=this.sizes;this.bytesTotal+=null!=t[b]?d.getReserved(b):d.h[b]}},__load:function(){return Sb.prototype.load.call(this)},__loadImage:function(a){return Sb.prototype.loadImage.call(this,a)},__class__:zj});var Zd=sa["openfl._internal.swf.ShapeCommand"]={__ename__:"openfl._internal.swf.ShapeCommand",__constructs__:"BeginBitmapFill BeginFill BeginGradientFill CurveTo EndFill LineStyle LineTo MoveTo".split(" "),BeginBitmapFill:(p=
function(a,b,d,c){return{_hx_index:0,bitmap:a,matrix:b,repeat:d,smooth:c,__enum__:"openfl._internal.swf.ShapeCommand",toString:r}},p.__params__=["bitmap","matrix","repeat","smooth"],p),BeginFill:(p=function(a,b){return{_hx_index:1,color:a,alpha:b,__enum__:"openfl._internal.swf.ShapeCommand",toString:r}},p.__params__=["color","alpha"],p),BeginGradientFill:(p=function(a,b,d,c,e,f,h,k){return{_hx_index:2,fillType:a,colors:b,alphas:d,ratios:c,matrix:e,spreadMethod:f,interpolationMethod:h,focalPointRatio:k,
__enum__:"openfl._internal.swf.ShapeCommand",toString:r}},p.__params__="fillType colors alphas ratios matrix spreadMethod interpolationMethod focalPointRatio".split(" "),p),CurveTo:(p=function(a,b,d,c){return{_hx_index:3,controlX:a,controlY:b,anchorX:d,anchorY:c,__enum__:"openfl._internal.swf.ShapeCommand",toString:r}},p.__params__=["controlX","controlY","anchorX","anchorY"],p),EndFill:{_hx_index:4,__enum__:"openfl._internal.swf.ShapeCommand",toString:r},LineStyle:(p=function(a,b,d,c,e,f,h,k){return{_hx_index:5,
thickness:a,color:b,alpha:d,pixelHinting:c,scaleMode:e,caps:f,joints:h,miterLimit:k,__enum__:"openfl._internal.swf.ShapeCommand",toString:r}},p.__params__="thickness color alpha pixelHinting scaleMode caps joints miterLimit".split(" "),p),LineTo:(p=function(a,b){return{_hx_index:6,x:a,y:b,__enum__:"openfl._internal.swf.ShapeCommand",toString:r}},p.__params__=["x","y"],p),MoveTo:(p=function(a,b){return{_hx_index:7,x:a,y:b,__enum__:"openfl._internal.swf.ShapeCommand",toString:r}},p.__params__=["x",
"y"],p)},ab=function(){};m["openfl._internal.symbols.SWFSymbol"]=ab;ab.__name__="openfl._internal.symbols.SWFSymbol";ab.prototype={className:null,id:null,__createObject:function(a){return null},__class__:ab};var Nc=function(){};m["openfl._internal.symbols.BitmapSymbol"]=Nc;Nc.__name__="openfl._internal.symbols.BitmapSymbol";Nc.__super__=ab;Nc.prototype=v(ab.prototype,{alpha:null,path:null,smooth:null,__createObject:function(a){return new Lb(ja.fromImage(a.library.getImage(this.path)),1,0!=this.smooth)},
__class__:Nc});var Aj=function(){};m["openfl._internal.symbols.ButtonSymbol"]=Aj;Aj.__name__="openfl._internal.symbols.ButtonSymbol";Aj.__super__=ab;Aj.prototype=v(ab.prototype,{downState:null,hitState:null,overState:null,upState:null,__createObject:function(a){var b=null;ac.__initSWF=a;ac.__initSymbol=this;null!=this.className&&(a=m[this.className],null!=a&&(b=Ea.createInstance(a,[])));null==b&&(b=new ac);return b},__class__:Aj});var Bj=function(){};m["openfl._internal.symbols.DynamicTextSymbol"]=
Bj;Bj.__name__="openfl._internal.symbols.DynamicTextSymbol";Bj.__super__=ab;Bj.prototype=v(ab.prototype,{align:null,border:null,color:null,fontHeight:null,fontID:null,fontName:null,height:null,html:null,indent:null,input:null,leading:null,leftMargin:null,multiline:null,password:null,rightMargin:null,selectable:null,text:null,width:null,wordWrap:null,x:null,y:null,__createObject:function(a){var b=new pb;b.__fromSymbol(a,this);return b},__class__:Bj});var Cj=function(){};m["openfl._internal.symbols.FontSymbol"]=
Cj;Cj.__name__="openfl._internal.symbols.FontSymbol";Cj.__super__=ab;Cj.prototype=v(ab.prototype,{advances:null,ascent:null,bold:null,codes:null,descent:null,glyphs:null,italic:null,leading:null,name:null,__class__:Cj});var Dj=function(){};m["openfl._internal.symbols.ShapeSymbol"]=Dj;Dj.__name__="openfl._internal.symbols.ShapeSymbol";Dj.__super__=ab;Dj.prototype=v(ab.prototype,{commands:null,rendered:null,__createObject:function(a){var b=new Hb,d=b.get_graphics();if(null!=this.rendered)return d.copyFrom(this.rendered.get_graphics()),
b;for(var c=0,e=this.commands;c<e.length;){var f=e[c];++c;switch(f._hx_index){case 0:var h=f.smooth,k=f.repeat,n=f.matrix;f=a.library.getImage(a.symbols.h[f.bitmap].path);null!=f&&d.beginBitmapFill(ja.fromImage(f),n,k,h);break;case 1:d.beginFill(f.color,f.alpha);break;case 2:d.beginGradientFill(f.fillType,f.colors,f.alphas,f.ratios,f.matrix,f.spreadMethod,f.interpolationMethod,f.focalPointRatio);break;case 3:d.curveTo(f.controlX,f.controlY,f.anchorX,f.anchorY);break;case 4:d.endFill();break;case 5:h=
f.miterLimit;k=f.joints;n=f.caps;var l=f.scaleMode,m=f.pixelHinting,g=f.alpha,p=f.color;f=f.thickness;null!=f?d.lineStyle(f,p,g,m,l,n,k,h):d.lineStyle();break;case 6:d.lineTo(f.x,f.y);break;case 7:d.moveTo(f.x,f.y)}}this.commands=null;this.rendered=new Hb;this.rendered.get_graphics().copyFrom(b.get_graphics());return b},__class__:Dj});var Qf=function(){this.frames=[]};m["openfl._internal.symbols.SpriteSymbol"]=Qf;Qf.__name__="openfl._internal.symbols.SpriteSymbol";Qf.__super__=ab;Qf.prototype=v(ab.prototype,
{baseClassName:null,frames:null,__createObject:function(a){Xa.__initSWF=a;Xa.__initSymbol=this;a=null;null!=this.className&&(a=m[this.className]);null==a&&null!=this.baseClassName&&(a=m[this.baseClassName]);return null!=a?Ea.createInstance(a,[]):new Xa},__class__:Qf});var Ej=function(){};m["openfl._internal.symbols.StaticTextSymbol"]=Ej;Ej.__name__="openfl._internal.symbols.StaticTextSymbol";Ej.__super__=ab;Ej.prototype=v(ab.prototype,{matrix:null,records:null,rendered:null,__createObject:function(a){var b=
new Rf,d=b.__graphics;if(null!=this.rendered)return b.text=this.rendered.text,d.copyFrom(this.rendered.__graphics),b;var c="";if(null!=this.records)for(var e=null,f=16777215,h=this.matrix.tx,k=this.matrix.ty,n,l,m=0,g=this.records;m<g.length;){var p=g[m];++m;null!=p.fontID&&(e=a.symbols.h[p.fontID]);null!=p.offsetX&&(h=this.matrix.tx+.05*p.offsetX);null!=p.offsetY&&(k=this.matrix.ty+.05*p.offsetY);null!=p.color&&(f=p.color);if(null!=e){n=p.fontHeight/1024*.05;for(var q=0,r=p.glyphs.length;q<r;){var t=
q++;l=p.glyphs[t];c+=String.fromCodePoint(e.codes[l]);var u=0;for(l=e.glyphs[l];u<l.length;){var v=l[u];++u;switch(v._hx_index){case 1:d.beginFill(f&16777215,(f>>24&255)/255);break;case 3:d.curveTo(v.controlX*n+h,v.controlY*n+k,v.anchorX*n+h,v.anchorY*n+k);break;case 4:d.endFill();break;case 5:var w=v.miterLimit,y=v.joints,z=v.caps,B=v.scaleMode,x=v.pixelHinting,I=v.alpha,F=v.color;v=v.thickness;null!=v?d.lineStyle(v,F,I,x,B,z,y,w):d.lineStyle();break;case 6:d.lineTo(v.x*n+h,v.y*n+k);break;case 7:d.moveTo(v.x*
n+h,v.y*n+k)}}h+=.05*p.advances[t]}}}b.text=c;this.records=null;this.rendered=new Rf;this.rendered.text=c;this.rendered.__graphics.copyFrom(b.__graphics);return b},__class__:Ej});var Dk=function(){};m["openfl._internal.symbols.StaticTextRecord"]=Dk;Dk.__name__="openfl._internal.symbols.StaticTextRecord";Dk.prototype={advances:null,color:null,fontHeight:null,fontID:null,glyphs:null,offsetX:null,offsetY:null,__class__:Dk};var ia=function(){};m["openfl._internal.text.HTMLParser"]=ia;ia.__name__="openfl._internal.text.HTMLParser";
ia.parse=function(a,b,d){a=a.replace(ia.__regexBreakTag.r,"\n");a=a.replace(ia.__regexEntities[0].r,'"');a=a.replace(ia.__regexEntities[1].r,"'");a=a.replace(ia.__regexEntities[2].r,"&");a=a.replace(ia.__regexEntities[5].r," ");var c=a.split("<");if(1==c.length)a=a.replace(ia.__regexHTMLTag.r,""),1<d.get_length()&&d.splice(1,d.get_length()-1),a=a.replace(ia.__regexEntities[3].r,"<"),a=a.replace(ia.__regexEntities[4].r,">"),d=d.get(0),d.format=b,d.start=0,d.end=a.length;else{d.splice(0,d.get_length());
a="";for(var e,f=0,h=c.length;f<h;){var k=f++;e=c[k];e=e.replace(ia.__regexEntities[3].r,"<");e=e.replace(ia.__regexEntities[4].r,">");c[k]=e}e=[b.clone()];f=[];k=!1;for(h=0;h<c.length;){var n=c[h];++h;if(""!=n){var l="/"==L.substr(n,0,1),m=n.indexOf(">"),g=m+1,p=n.indexOf(" ");p=n.substring(l?1:0,-1<p&&p<m?p:m);if(l)p.toLowerCase()!=f[f.length-1].toLowerCase()?ra.trace("Invalid HTML, unexpected closing tag ignored: "+p,{fileName:"openfl/_internal/text/HTMLParser.hx",lineNumber:99,className:"openfl._internal.text.HTMLParser",
methodName:"parse"}):(f.pop(),e.pop(),l=e[e.length-1].clone(),"p"==p.toLowerCase()&&0<d.get_length()&&(a+="\n",k=!0),g<n.length&&(k=L.substr(n,g,null),d.push(new ge(l,a.length,a.length+k.length)),a+=k,k=!1));else if(l=e[e.length-1].clone(),-1<m){switch(p.toLowerCase()){case "a":ia.__regexHref.match(n)&&(l.url=ia.__getAttributeMatch(ia.__regexHref));break;case "b":l.bold=!0;break;case "em":case "i":l.italic=!0;break;case "font":ia.__regexFace.match(n)&&(l.font=ia.__getAttributeMatch(ia.__regexFace));
ia.__regexColor.match(n)&&(l.color=S.parseInt("0x"+ia.__getAttributeMatch(ia.__regexColor)));if(ia.__regexSize.match(n)){m=ia.__getAttributeMatch(ia.__regexSize);var q=L.cca(m,0);l.size=43==q||45==q?(2<=e.length?e[e.length-2]:b).size+S.parseInt(m):S.parseInt(m)}break;case "p":0<d.get_length()&&!k&&(a+="\n");ia.__regexAlign.match(n)&&(m=ia.__getAttributeMatch(ia.__regexAlign).toLowerCase(),l.align=Ek.fromString(m));break;case "textformat":ia.__regexBlockIndent.match(n)&&(l.blockIndent=S.parseInt(ia.__getAttributeMatch(ia.__regexBlockIndent)));
ia.__regexIndent.match(n)&&(l.indent=S.parseInt(ia.__getAttributeMatch(ia.__regexIndent)));ia.__regexLeading.match(n)&&(l.leading=S.parseInt(ia.__getAttributeMatch(ia.__regexLeading)));ia.__regexLeftMargin.match(n)&&(l.leftMargin=S.parseInt(ia.__getAttributeMatch(ia.__regexLeftMargin)));ia.__regexRightMargin.match(n)&&(l.rightMargin=S.parseInt(ia.__getAttributeMatch(ia.__regexRightMargin)));if(ia.__regexTabStops.match(n)){m=ia.__getAttributeMatch(ia.__regexTabStops).split(" ");q=[];for(var r=0;r<
m.length;){var t=m[r];++r;q.push(S.parseInt(t))}l.tabStops=q}break;case "u":l.underline=!0}e.push(l);f.push(p);g<n.length&&(k=n.substring(g),d.push(new ge(l,a.length,a.length+k.length)),a+=k,k=!1)}else d.push(new ge(l,a.length,a.length+n.length)),a+=n,k=!1}}0==d.get_length()&&d.push(new ge(e[0],0,0))}return a};ia.__getAttributeMatch=function(a){return null!=a.matched(2)?a.matched(2):a.matched(3)};var X=function(a){this.textField=a;this.height=this.width=100;this.set_text("");this.bounds=new M(0,0,
0,0);this.textBounds=new M(0,0,0,0);this.type=0;this.autoSize=2;this.embedFonts=!1;this.selectable=!0;this.borderColor=0;this.border=!1;this.backgroundColor=16777215;this.background=!1;this.gridFitType=1;this.maxChars=0;this.multiline=!1;this.scrollH=this.sharpness=0;this.scrollV=1;this.wordWrap=!1;this.lineAscents=tb.toFloatVector(null);this.lineBreaks=tb.toIntVector(null);this.lineDescents=tb.toFloatVector(null);this.lineLeadings=tb.toFloatVector(null);this.lineHeights=tb.toFloatVector(null);this.lineWidths=
tb.toFloatVector(null);this.layoutGroups=tb.toObjectVector(null);this.textFormatRanges=tb.toObjectVector(null);X.__canvas=window.document.createElement("canvas");X.__context=X.__canvas.getContext("2d")};m["openfl._internal.text.TextEngine"]=X;X.__name__="openfl._internal.text.TextEngine";X.getFormatHeight=function(a){X.__context.font=X.getFont(a);if(null!=a.__ascent){var b=a.size*a.__ascent;var d=a.size*a.__descent}else b=a.size,d=.185*a.size;return b+d+a.leading};X.getFont=function(a){var b=a.font,
d=a.bold,c=a.italic;null==b&&(b="_serif");var e=Q.replace(Q.replace(b," Normal","")," Regular","");if(d&&c){var f=zb.__fontByName;var h=e+" Bold Italic";f=null!=t[h]?f.existsReserved(h):f.h.hasOwnProperty(h)}else f=!1;f?(b=e+" Bold Italic",c=d=!1):(d?(f=zb.__fontByName,h=e+" Bold",f=null!=t[h]?f.existsReserved(h):f.h.hasOwnProperty(h)):f=!1,f?(b=e+" Bold",d=!1):(c?(f=zb.__fontByName,h=e+" Italic",f=null!=t[h]?f.existsReserved(h):f.h.hasOwnProperty(h)):f=!1,f?(b=e+" Italic",c=!1):(d&&(-1<b.indexOf(" Bold ")||
Q.endsWith(b," Bold"))&&(d=!1),c&&(-1<b.indexOf(" Italic ")||Q.endsWith(b," Italic"))&&(c=!1))));d=(c?"italic ":"normal ")+"normal "+(d?"bold ":"normal ");d+=a.size+"px";d+="/"+(a.leading+a.size+3)+"px ";switch(b){case "_sans":a="sans-serif";break;case "_serif":a="serif";break;case "_typewriter":a="monospace";break;default:a="'"+b.replace(/^[\s'"]+(.*)[\s'"]+$/,"$1")+"'"}return d+=""+a};X.prototype={antiAliasType:null,autoSize:null,background:null,backgroundColor:null,border:null,borderColor:null,
bottomScrollV:null,bounds:null,embedFonts:null,gridFitType:null,height:null,layoutGroups:null,lineAscents:null,lineBreaks:null,lineDescents:null,lineLeadings:null,lineHeights:null,lineWidths:null,maxChars:null,maxScrollH:null,maxScrollV:null,multiline:null,numLines:null,scrollH:null,scrollV:null,selectable:null,sharpness:null,text:null,textBounds:null,textHeight:null,textFormatRanges:null,textWidth:null,type:null,width:null,wordWrap:null,textField:null,__hasFocus:null,__restrictRegexp:null,__useIntAdvances:null,
getBounds:function(){var a=this.border?1:0;this.bounds.width=this.width+a;this.bounds.height=this.height+a;for(var b=a=this.width,d=0,c=this.layoutGroups;d<c.get_length();){var e=c.get(d);++d;e.offsetX<a&&(a=e.offsetX);e.offsetY<b&&(b=e.offsetY)}a>=this.width&&(a=2);b>=this.height&&(b=2);this.textBounds.setTo(Math.max(a-2,0),Math.max(b-2,0),this.textWidth+4,this.textHeight+4)},getLineBreakIndex:function(a){null==a&&(a=0);var b=F.indexOf(this.text,"<br>",a),d=F.indexOf(this.text,"\n",a);a=F.indexOf(this.text,
"\r",a);return-1==d&&-1==b?a:-1==a&&-1==b?d:-1==a&&-1==d?b:-1==d?Math.min(b,a)|0:-1==a?Math.min(b,d)|0:-1==b?Math.min(d,a)|0:Math.min(Math.min(d,a),b)|0},getLineMeasurements:function(){this.lineAscents.set_length(0);this.lineDescents.set_length(0);this.lineLeadings.set_length(0);this.lineHeights.set_length(0);this.lineWidths.set_length(0);var a=0,b=0,d=null,c=0,e=0;this.textHeight=this.textWidth=0;this.numLines=1;for(var f=this.maxScrollH=this.bottomScrollV=0,h=this.layoutGroups;f<h.get_length();){var k=
h.get(f);for(++f;k.lineIndex>this.numLines-1;)this.lineAscents.push(a),this.lineDescents.push(b),this.lineLeadings.push(null!=d?d:0),this.lineHeights.push(c),this.lineWidths.push(e),b=a=0,d=null,e=c=0,this.numLines++,this.textHeight<=this.height-2&&this.bottomScrollV++;a=Math.max(a,k.ascent);b=Math.max(b,k.descent);d=null==d?k.leading:Math.max(d,k.leading)|0;c=Math.max(c,k.height);e=k.offsetX-2+k.width;e>this.textWidth&&(this.textWidth=e);k=k.offsetY-2+k.ascent+k.descent;k>this.textHeight&&(this.textHeight=
k)}0==this.textHeight&&null!=this.textField&&1==this.textField.get_type()&&(a=this.textField.__textFormat,null!=a.__ascent?(f=a.size*a.__ascent,h=a.size*a.__descent):(f=a.size,h=.185*a.size),d=a.leading,a=f,b=h,this.textHeight=f+h);this.lineAscents.push(a);this.lineDescents.push(b);this.lineLeadings.push(null!=d?d:0);this.lineHeights.push(c);this.lineWidths.push(e);1==this.numLines?(this.bottomScrollV=1,0<d&&(this.textHeight+=d)):this.textHeight<=this.height-2&&this.bottomScrollV++;if(2!=this.autoSize)switch(this.autoSize){case 0:case 1:case 3:this.wordWrap||
(this.width=this.textWidth+4),this.height=this.textHeight+4,this.bottomScrollV=this.numLines}this.maxScrollH=this.textWidth>this.width-4?this.textWidth-this.width+4|0:0;this.maxScrollV=this.numLines-this.bottomScrollV+1;this.scrollV>this.maxScrollV&&(this.scrollV=this.maxScrollV);this.scrollH>this.maxScrollH&&(this.scrollH=this.maxScrollH)},getLayoutGroups:function(){this.layoutGroups.set_length(0);if(null!=this.text&&!F.equals(this.text,"")){var a=-1,b=null,d=pb.__defaultTextFormat.clone(),c=0,e=
0,f=0,h=0,k=null,n=null,l=0,m=0,g=0,p=-2,q=F.indexOf(this.text," "),r=this.getLineBreakIndex(),t=2,v=2,u=0,w=0,y=null;a<this.textFormatRanges.get_length()-1&&(++a,b=this.textFormatRanges.get(a),d.__merge(b.format),X.__context.font=X.getFont(d),null!=d.__ascent?(e=d.size*d.__ascent,h=d.size*d.__descent):(e=d.size,h=.185*d.size),c=d.leading,m=e+h+c);m>g&&(g=m);e>f&&(f=e);y=b.format;for(var z,B=F.get_length(this.text)+1;u<B;)if(-1<r&&(-1==q||r<q)&&b.end>=r){if(u<=r){if(this.wordWrap&&p<=u&&4<=this.width)for(var x=
F.substring(this.text,u,r),I=X.__context.measureText(x).width;t+I>this.width-2;){for(var D=1;u+D<r+1;){var Mb=F.substr(this.text,u,D);I=X.__context.measureText(Mb).width;if(t+I>this.width-2){--D;break}++D}0==D&&I>this.width-4&&(D=F.get_length(this.text));if(0==D){t=2;v+=k.height;++w;break}else{var E=u+D;null==k||k.startIndex!=k.endIndex?(k=new Dd(b.format,u,E),this.layoutGroups.push(k)):(k.format=b.format,k.startIndex=u,k.endIndex=E);var G=this.text,H=u+D,K=[];null==this.__useIntAdvances&&(this.__useIntAdvances=
(new wa("Trident/7.0","")).match(window.navigator.userAgent));if(this.__useIntAdvances)for(var L=0,N,Q=u,P=H;Q<P;){var R=Q++;N=X.__context.measureText(F.substring(G,u,R+1)).width;K.push(N-L);L=N}else for(var M=u,S=H;M<S;){var U=M++;if(U<F.get_length(G)-1){var W=X.__context.measureText(F.charAt(G,U+1)).width;var V=X.__context.measureText(F.substr(G,U,2)).width-W}else V=X.__context.measureText(F.charAt(G,U)).width;K.push(V)}k.positions=K;k.offsetX=t;k.ascent=e;k.descent=h;k.leading=c;k.lineIndex=w;
k.offsetY=v;for(var Y=k.positions,aa=0,Z=0;Z<Y.length;){var ea=Y[Z];++Z;aa+=ea}k.width=aa;k.height=m;k=null;e>f&&(f=e);m>g&&(g=m);for(var fa=this.layoutGroups.get_length();-1<--fa;){var da=this.layoutGroups.get(fa);if(da.lineIndex<w)break;da.lineIndex>w||(da.ascent=f,da.height=g)}v+=g;g=f=0;++w;t=2;u+=D;var ba=this.text,ha=[];null==this.__useIntAdvances&&(this.__useIntAdvances=(new wa("Trident/7.0","")).match(window.navigator.userAgent));if(this.__useIntAdvances)for(var ia=0,ja,ka=u,la=r;ka<la;){var na=
ka++;ja=X.__context.measureText(F.substring(ba,u,na+1)).width;ha.push(ja-ia);ia=ja}else for(var ma=u,qa=r;ma<qa;){var pa=ma++;if(pa<F.get_length(ba)-1){var sa=X.__context.measureText(F.charAt(ba,pa+1)).width;var ra=X.__context.measureText(F.substr(ba,pa,2)).width-sa}else ra=X.__context.measureText(F.charAt(ba,pa)).width;ha.push(ra)}n=ha;for(var va=0,ua=0;ua<n.length;){var ya=n[ua];++ua;va+=ya}I=l=va}}null==k||k.startIndex!=k.endIndex?(k=new Dd(b.format,u,r),this.layoutGroups.push(k)):(k.format=b.format,
k.startIndex=u,k.endIndex=r);var ta=this.text,xa=[];null==this.__useIntAdvances&&(this.__useIntAdvances=(new wa("Trident/7.0","")).match(window.navigator.userAgent));if(this.__useIntAdvances)for(var Aa=0,za,Ba=u,Da=r;Ba<Da;){var Fa=Ba++;za=X.__context.measureText(F.substring(ta,u,Fa+1)).width;xa.push(za-Aa);Aa=za}else for(var Ea=u,Ga=r;Ea<Ga;){var Ca=Ea++;if(Ca<F.get_length(ta)-1){var Ha=X.__context.measureText(F.charAt(ta,Ca+1)).width;var Ia=X.__context.measureText(F.substr(ta,Ca,2)).width-Ha}else Ia=
X.__context.measureText(F.charAt(ta,Ca)).width;xa.push(Ia)}k.positions=xa;k.offsetX=t;k.ascent=e;k.descent=h;k.leading=c;k.lineIndex=w;k.offsetY=v;for(var Ja=k.positions,Ma=0,Oa=0;Oa<Ja.length;){var Ua=Ja[Oa];++Oa;Ma+=Ua}k.width=Ma;k.height=m;k=null}else null!=k&&k.startIndex!=k.endIndex&&(k.endIndex==q&&(k.width-=k.positions[k.positions.length-1]),k=null);b.end==r&&(a<this.textFormatRanges.get_length()-1&&(++a,b=this.textFormatRanges.get(a),d.__merge(b.format),X.__context.font=X.getFont(d),null!=
d.__ascent?(e=d.size*d.__ascent,h=d.size*d.__descent):(e=d.size,h=.185*d.size),c=d.leading,m=e+h+c),m>g&&(g=m),e>f&&(f=e),y=b.format);r>=F.get_length(this.text)-1&&(v-=g);e>f&&(f=e);m>g&&(g=m);for(var Qa=this.layoutGroups.get_length();-1<--Qa;){var Na=this.layoutGroups.get(Qa);if(Na.lineIndex<w)break;Na.lineIndex>w||(Na.ascent=f,Na.height=g)}v+=g;g=f=0;++w;t=2;u=r+1;r=this.getLineBreakIndex(u)}else if(b.end>=q&&-1<q&&u<b.end)for(null!=k&&k.startIndex!=k.endIndex&&(k=null),z=!1;u!=b.end;){var oa=-1;
-1==q?oa=r:(oa=q+1,-1<r&&r<oa&&(oa=r));if(-1==oa||oa>b.end)oa=b.end;var La=this.text,Pa=[];null==this.__useIntAdvances&&(this.__useIntAdvances=(new wa("Trident/7.0","")).match(window.navigator.userAgent));if(this.__useIntAdvances)for(var Va=0,Ta,Wa=u,Za=oa;Wa<Za;){var $a=Wa++;Ta=X.__context.measureText(F.substring(La,u,$a+1)).width;Pa.push(Ta-Va);Va=Ta}else for(var Xa=u,cb=oa;Xa<cb;){var Ra=Xa++;if(Ra<F.get_length(La)-1){var fb=X.__context.measureText(F.charAt(La,Ra+1)).width;var ab=X.__context.measureText(F.substr(La,
Ra,2)).width-fb}else ab=X.__context.measureText(F.charAt(La,Ra)).width;Pa.push(ab)}n=Pa;for(var bb=0,Ya=0;Ya<n.length;){var kb=n[Ya];++Ya;bb+=kb}l=bb;if(2==y.align){if(0<n.length&&u==p){++u;var db=n.shift();l-=db;t+=db}if(0<n.length&&oa==q+1){--oa;var lb=n.pop();l-=lb}}this.wordWrap&&t+l>this.width-2&&(z=!0,0<n.length&&oa==q+1&&t+l-n[n.length-1]<=this.width-2&&(z=!1));if(z){if(2!=y.align&&(null!=k||0<this.layoutGroups.get_length())){var Sa=k;null==Sa&&(Sa=this.layoutGroups.get(this.layoutGroups.get_length()-
1));Sa.width-=Sa.positions[Sa.positions.length-1];Sa.endIndex--}for(var jb=this.layoutGroups.get_length()-1,gb=0;;){k=this.layoutGroups.get(jb);if(0<jb&&k.startIndex>p)++gb;else break;--jb}if(u==p+1){e>f&&(f=e);m>g&&(g=m);for(var nb=this.layoutGroups.get_length();-1<--nb;){var ib=this.layoutGroups.get(nb);if(ib.lineIndex<w)break;ib.lineIndex>w||(ib.ascent=f,ib.height=g)}v+=g;g=f=0;++w;t=2}t=2;if(0<gb)for(var qb=this.layoutGroups.get(this.layoutGroups.get_length()-gb).offsetX,ob=this.layoutGroups.get_length()-
gb,rb=this.layoutGroups.get_length();ob<rb;){var sb=ob++;k=this.layoutGroups.get(sb);k.offsetX-=qb;k.offsetY=v;k.lineIndex=w;t+=k.width}if(4<=this.width)for(var tb=F.substring(this.text,u,oa),mb=X.__context.measureText(tb).width;t+mb>this.width-2;){for(var hb=1;u+hb<oa+1;){var Bb=F.substr(this.text,u,hb);mb=X.__context.measureText(Bb).width;if(t+mb>this.width-2){--hb;break}++hb}0==hb&&mb>this.width-4&&(hb=F.get_length(this.text));if(0==hb){t=2;v+=k.height;++w;break}else{var yb=u+hb;null==k||k.startIndex!=
k.endIndex?(k=new Dd(b.format,u,yb),this.layoutGroups.push(k)):(k.format=b.format,k.startIndex=u,k.endIndex=yb);var vb=this.text,zb=u+hb,xb=[];null==this.__useIntAdvances&&(this.__useIntAdvances=(new wa("Trident/7.0","")).match(window.navigator.userAgent));if(this.__useIntAdvances)for(var eb=0,Ab,Cb=u,Fb=zb;Cb<Fb;){var Tb=Cb++;Ab=X.__context.measureText(F.substring(vb,u,Tb+1)).width;xb.push(Ab-eb);eb=Ab}else for(var Lb=u,Vb=zb;Lb<Vb;){var Db=Lb++;if(Db<F.get_length(vb)-1){var bc=X.__context.measureText(F.charAt(vb,
Db+1)).width;var Qb=X.__context.measureText(F.substr(vb,Db,2)).width-bc}else Qb=X.__context.measureText(F.charAt(vb,Db)).width;xb.push(Qb)}k.positions=xb;k.offsetX=t;k.ascent=e;k.descent=h;k.leading=c;k.lineIndex=w;k.offsetY=v;for(var Rb=k.positions,Sb=0,Jb=0;Jb<Rb.length;){var dc=Rb[Jb];++Jb;Sb+=dc}k.width=Sb;k.height=m;k=null;e>f&&(f=e);m>g&&(g=m);for(var Ub=this.layoutGroups.get_length();-1<--Ub;){var Gb=this.layoutGroups.get(Ub);if(Gb.lineIndex<w)break;Gb.lineIndex>w||(Gb.ascent=f,Gb.height=g)}v+=
g;g=f=0;++w;t=2;u+=hb;var Eb=this.text,Ob=[];null==this.__useIntAdvances&&(this.__useIntAdvances=(new wa("Trident/7.0","")).match(window.navigator.userAgent));if(this.__useIntAdvances)for(var Xb=0,Pb,Yb=u,ic=oa;Yb<ic;){var jc=Yb++;Pb=X.__context.measureText(F.substring(Eb,u,jc+1)).width;Ob.push(Pb-Xb);Xb=Pb}else for(var ac=u,kc=oa;ac<kc;){var Kb=ac++;if(Kb<F.get_length(Eb)-1){var qc=X.__context.measureText(F.charAt(Eb,Kb+1)).width;var fc=X.__context.measureText(F.substr(Eb,Kb,2)).width-qc}else fc=
X.__context.measureText(F.charAt(Eb,Kb)).width;Ob.push(fc)}n=Ob;for(var gc=0,Wb=0;Wb<n.length;){var sc=n[Wb];++Wb;gc+=sc}mb=l=gc}}null==k||k.startIndex!=k.endIndex?(k=new Dd(b.format,u,oa),this.layoutGroups.push(k)):(k.format=b.format,k.startIndex=u,k.endIndex=oa);k.positions=n;k.offsetX=t;k.ascent=e;k.descent=h;k.leading=c;k.lineIndex=w;k.offsetY=v;k.width=l;k.height=m;t+=l;u=oa;z=!1}else null!=k&&u==q?2!=y.align&&(k.endIndex=q,k.positions=k.positions.concat(n),k.width+=l):null==k||2==y.align?(null==
k||k.startIndex!=k.endIndex?(k=new Dd(b.format,u,oa),this.layoutGroups.push(k)):(k.format=b.format,k.startIndex=u,k.endIndex=oa),k.positions=n,k.offsetX=t,k.ascent=e,k.descent=h,k.leading=c,k.lineIndex=w,k.offsetY=v,k.width=l,k.height=m):(k.endIndex=oa,k.positions=k.positions.concat(n),k.width+=l,r==oa&&++oa),t+=l,u=oa;var tc=F.indexOf(this.text," ",u);b.end<=p?(k=null,u=b.end,a<this.textFormatRanges.get_length()-1&&(++a,b=this.textFormatRanges.get(a),d.__merge(b.format),X.__context.font=X.getFont(d),
null!=d.__ascent?(e=d.size*d.__ascent,h=d.size*d.__descent):(e=d.size,h=.185*d.size),c=d.leading,m=e+h+c),m>g&&(g=m),e>f&&(f=e)):(r==p&&(k.endIndex=r,0>r-k.startIndex-k.positions.length&&k.positions.push(0),u=r+1),p=q,q=tc);if(-1<r&&r<=u&&(q>r||-1==q)||u>F.get_length(this.text)||q>b.end)break}else{if(u>b.end)break;else if(u<b.end||u==F.get_length(this.text)){if(this.wordWrap&&4<=this.width)for(var Nb=b.end,xc=F.substring(this.text,u,Nb),Hb=X.__context.measureText(xc).width;t+Hb>this.width-2;){for(var wb=
1;u+wb<Nb+1;){var zc=F.substr(this.text,u,wb);Hb=X.__context.measureText(zc).width;if(t+Hb>this.width-2){--wb;break}++wb}0==wb&&Hb>this.width-4&&(wb=F.get_length(this.text));if(0==wb){t=2;v+=k.height;++w;break}else{var lc=u+wb;null==k||k.startIndex!=k.endIndex?(k=new Dd(b.format,u,lc),this.layoutGroups.push(k)):(k.format=b.format,k.startIndex=u,k.endIndex=lc);var Ib=this.text,nc=u+wb,cc=[];null==this.__useIntAdvances&&(this.__useIntAdvances=(new wa("Trident/7.0","")).match(window.navigator.userAgent));
if(this.__useIntAdvances)for(var oc=0,ec,rc=u,Ec=nc;rc<Ec;){var Hc=rc++;ec=X.__context.measureText(F.substring(Ib,u,Hc+1)).width;cc.push(ec-oc);oc=ec}else for(var vc=u,Ic=nc;vc<Ic;){var $b=vc++;if($b<F.get_length(Ib)-1){var Oc=X.__context.measureText(F.charAt(Ib,$b+1)).width;var Bc=X.__context.measureText(F.substr(Ib,$b,2)).width-Oc}else Bc=X.__context.measureText(F.charAt(Ib,$b)).width;cc.push(Bc)}k.positions=cc;k.offsetX=t;k.ascent=e;k.descent=h;k.leading=c;k.lineIndex=w;k.offsetY=v;for(var Cc=
k.positions,Dc=0,pc=0;pc<Cc.length;){var Qc=Cc[pc];++pc;Dc+=Qc}k.width=Dc;k.height=m;k=null;e>f&&(f=e);m>g&&(g=m);for(var Gc=this.layoutGroups.get_length();-1<--Gc;){var hc=this.layoutGroups.get(Gc);if(hc.lineIndex<w)break;hc.lineIndex>w||(hc.ascent=f,hc.height=g)}v+=g;g=f=0;++w;t=2;u+=wb;var Zb=this.text,wc=[];null==this.__useIntAdvances&&(this.__useIntAdvances=(new wa("Trident/7.0","")).match(window.navigator.userAgent));if(this.__useIntAdvances)for(var Jc=0,yc,Lc=u,Xc=Nb;Lc<Xc;){var ad=Lc++;yc=
X.__context.measureText(F.substring(Zb,u,ad+1)).width;wc.push(yc-Jc);Jc=yc}else for(var Pc=u,ed=Nb;Pc<ed;){var uc=Pc++;if(uc<F.get_length(Zb)-1){var gd=X.__context.measureText(F.charAt(Zb,uc+1)).width;var Tc=X.__context.measureText(F.substr(Zb,uc,2)).width-gd}else Tc=X.__context.measureText(F.charAt(Zb,uc)).width;wc.push(Tc)}n=wc;for(var Vc=0,Kc=0;Kc<n.length;){var ld=n[Kc];++Kc;Vc+=ld}Hb=l=Vc}}var mc=this.text,Zc=b.end,Nc=[];null==this.__useIntAdvances&&(this.__useIntAdvances=(new wa("Trident/7.0",
"")).match(window.navigator.userAgent));if(this.__useIntAdvances)for(var $c=0,Rc,cd=u,pd=Zc;cd<pd;){var qd=cd++;Rc=X.__context.measureText(F.substring(mc,u,qd+1)).width;Nc.push(Rc-$c);$c=Rc}else for(var dd=u,rd=Zc;dd<rd;){var Fc=dd++;if(Fc<F.get_length(mc)-1){var ud=X.__context.measureText(F.charAt(mc,Fc+1)).width;var hd=X.__context.measureText(F.substr(mc,Fc,2)).width-ud}else hd=X.__context.measureText(F.charAt(mc,Fc)).width;Nc.push(hd)}n=Nc;for(var id=0,Wc=0;Wc<n.length;){var xd=n[Wc];++Wc;id+=
xd}l=id;var jd=b.end;null==k||k.startIndex!=k.endIndex?(k=new Dd(b.format,u,jd),this.layoutGroups.push(k)):(k.format=b.format,k.startIndex=u,k.endIndex=jd);var Ac=this.text,kd=b.end,Yc=[];null==this.__useIntAdvances&&(this.__useIntAdvances=(new wa("Trident/7.0","")).match(window.navigator.userAgent));if(this.__useIntAdvances)for(var md=0,bd,nd=u,yd=kd;nd<yd;){var zd=nd++;bd=X.__context.measureText(F.substring(Ac,u,zd+1)).width;Yc.push(bd-md);md=bd}else for(var od=u,Ad=kd;od<Ad;){var Sc=od++;if(Sc<
F.get_length(Ac)-1){var Bd=X.__context.measureText(F.charAt(Ac,Sc+1)).width;var sd=X.__context.measureText(F.substr(Ac,Sc,2)).width-Bd}else sd=X.__context.measureText(F.charAt(Ac,Sc)).width;Yc.push(sd)}k.positions=Yc;k.offsetX=t;k.ascent=e;k.descent=h;k.leading=c;k.lineIndex=w;k.offsetY=v;for(var td=k.positions,vd=0,fd=0;fd<td.length;){var Cd=td[fd];++fd;vd+=Cd}k.width=vd;k.height=m;t+=l;u=b.end}a<this.textFormatRanges.get_length()-1&&(++a,b=this.textFormatRanges.get(a),d.__merge(b.format),X.__context.font=
X.getFont(d),null!=d.__ascent?(e=d.size*d.__ascent,h=d.size*d.__descent):(e=d.size,h=.185*d.size),c=d.leading,m=e+h+c);m>g&&(g=m);e>f&&(f=e);if(u==b.end){e>f&&(f=e);m>g&&(g=m);for(var wd=this.layoutGroups.get_length();-1<--wd;){var Uc=this.layoutGroups.get(wd);if(Uc.lineIndex<w)break;Uc.lineIndex>w||(Uc.ascent=f,Uc.height=g)}v+=g;g=f=0;++w;t=2;++u;break}}}},restrictText:function(a){if(null==a)return a;null!=this.__restrictRegexp&&(a=this.__restrictRegexp.split(a).join(""));return a},setTextAlignment:function(){for(var a=
-1,b=0,d=this.width-4,c,e,f=!1,h=0,k=this.layoutGroups.get_length();h<k;){var n=h++;c=this.layoutGroups.get(n);if(c.lineIndex!=a)switch(a=c.lineIndex,c.format.align){case 0:b=this.lineWidths.get(a)<d?Math.round((d-this.lineWidths.get(a))/2):0;break;case 2:if(this.lineWidths.get(a)<d){e=1;b=n+1;for(var l=this.layoutGroups.get_length();b<l;){var m=b++;if(this.layoutGroups.get(m).lineIndex==a)0!=m&&32!=F.charCodeAt(this.text,this.layoutGroups.get(m).startIndex-1)||++e;else break}if(1<e&&(c=this.layoutGroups.get(n+
e-1),b=F.charCodeAt(this.text,c.endIndex),c.endIndex<F.get_length(this.text)&&10!=b&&13!=b))for(b=(d-this.lineWidths.get(a))/(e-1),f=!0,l=1;this.layoutGroups.get(n+l).offsetX+=b*l,++l<e;);}b=0;break;case 4:b=this.lineWidths.get(a)<d?Math.round(d-this.lineWidths.get(a)):0;break;default:b=0}0<b&&(c.offsetX+=b)}f&&this.getLineMeasurements()},update:function(){null==this.text||0==this.textFormatRanges.get_length()?(this.lineAscents.set_length(0),this.lineBreaks.set_length(0),this.lineDescents.set_length(0),
this.lineLeadings.set_length(0),this.lineHeights.set_length(0),this.lineWidths.set_length(0),this.layoutGroups.set_length(0),this.textHeight=this.textWidth=0,this.numLines=1,this.maxScrollH=0,this.bottomScrollV=this.maxScrollV=1):(this.getLayoutGroups(),this.getLineMeasurements(),this.setTextAlignment());this.getBounds()},set_text:function(a){return this.text=a},__class__:X};var ge=function(a,b,d){this.format=a;this.start=b;this.end=d};m["openfl._internal.text.TextFormatRange"]=ge;ge.__name__="openfl._internal.text.TextFormatRange";
ge.prototype={end:null,format:null,start:null,__class__:ge};var Dd=function(a,b,d){this.format=a;this.startIndex=b;this.endIndex=d};m["openfl._internal.text.TextLayoutGroup"]=Dd;Dd.__name__="openfl._internal.text.TextLayoutGroup";Dd.prototype={ascent:null,descent:null,endIndex:null,format:null,height:null,leading:null,lineIndex:null,offsetX:null,offsetY:null,positions:null,startIndex:null,width:null,__class__:Dd};var Fk=function(){};m["openfl._internal.timeline.Frame"]=Fk;Fk.__name__="openfl._internal.timeline.Frame";
Fk.prototype={label:null,objects:null,script:null,scriptSource:null,__class__:Fk};var Gk=function(){};m["openfl._internal.timeline.FrameObject"]=Gk;Gk.__name__="openfl._internal.timeline.FrameObject";Gk.prototype={blendMode:null,cacheAsBitmap:null,clipDepth:null,colorTransform:null,depth:null,filters:null,id:null,matrix:null,name:null,symbol:null,type:null,visible:null,__class__:Gk};var ml=sa["openfl._internal.timeline.FrameObjectType"]={__ename__:"openfl._internal.timeline.FrameObjectType",__constructs__:["CREATE",
"UPDATE","DESTROY"],CREATE:{_hx_index:0,__enum__:"openfl._internal.timeline.FrameObjectType",toString:r},UPDATE:{_hx_index:1,__enum__:"openfl._internal.timeline.FrameObjectType",toString:r},DESTROY:{_hx_index:2,__enum__:"openfl._internal.timeline.FrameObjectType",toString:r}},$f=function(){Gb.call(this);null==Vb.application&&(Vb.application=this);null==Vb.current&&(Vb.current=new Xa);Vb.current.__loaderInfo=md.create(null);Vb.current.__loaderInfo.content=Vb.current};m["openfl.display.Application"]=
$f;$f.__name__="openfl.display.Application";$f.__super__=Gb;$f.prototype=v(Gb.prototype,{createWindow:function(a){var b=new Ze(this,a);this.__windows.push(b);this.__windowByID.h[b.id]=b;var d=u(this,this.__onWindowClose);b.onClose.add(function(){d(b)},!1,-1E4);null==this.__window&&(this.__window=b,b.onActivate.add(u(this,this.onWindowActivate)),b.onRenderContextLost.add(u(this,this.onRenderContextLost)),b.onRenderContextRestored.add(u(this,this.onRenderContextRestored)),b.onDeactivate.add(u(this,
this.onWindowDeactivate)),b.onDropFile.add(u(this,this.onWindowDropFile)),b.onEnter.add(u(this,this.onWindowEnter)),b.onExpose.add(u(this,this.onWindowExpose)),b.onFocusIn.add(u(this,this.onWindowFocusIn)),b.onFocusOut.add(u(this,this.onWindowFocusOut)),b.onFullscreen.add(u(this,this.onWindowFullscreen)),b.onKeyDown.add(u(this,this.onKeyDown)),b.onKeyUp.add(u(this,this.onKeyUp)),b.onLeave.add(u(this,this.onWindowLeave)),b.onMinimize.add(u(this,this.onWindowMinimize)),b.onMouseDown.add(u(this,this.onMouseDown)),
b.onMouseMove.add(u(this,this.onMouseMove)),b.onMouseMoveRelative.add(u(this,this.onMouseMoveRelative)),b.onMouseUp.add(u(this,this.onMouseUp)),b.onMouseWheel.add(u(this,this.onMouseWheel)),b.onMove.add(u(this,this.onWindowMove)),b.onRender.add(u(this,this.render)),b.onResize.add(u(this,this.onWindowResize)),b.onRestore.add(u(this,this.onWindowRestore)),b.onTextEdit.add(u(this,this.onTextEdit)),b.onTextInput.add(u(this,this.onTextInput)),this.onWindowCreate());this.onCreateWindow.dispatch(b);return b},
__class__:$f});var Jb=function(){ba.call(this);this.__allowSmoothing=!0;this.__tempColorTransform=new Ca;this.__worldAlpha=1};m["openfl.display.DisplayObjectRenderer"]=Jb;Jb.__name__="openfl.display.DisplayObjectRenderer";Jb.__super__=ba;Jb.prototype=v(ba.prototype,{__allowSmoothing:null,__blendMode:null,__context:null,__roundPixels:null,__stage:null,__tempColorTransform:null,__type:null,__worldAlpha:null,__worldColorTransform:null,__worldTransform:null,__clear:function(){},__popMaskObject:function(a,
b){},__pushMaskObject:function(a,b){},__render:function(a){},__renderStage3D:function(a){},__resize:function(a,b){},__setBlendMode:function(a){},__class__:Jb});var Fj=function(a){Jb.call(this)};m["openfl.display.CairoRenderer"]=Fj;Fj.__name__="openfl.display.CairoRenderer";Fj.__super__=Jb;Fj.prototype=v(Jb.prototype,{cairo:null,__matrix:null,__matrix3:null,applyMatrix:function(a,b){null==b&&(b=this.cairo);this.__matrix.copyFrom(a);this.cairo==b&&null!=this.__worldTransform&&this.__matrix.concat(this.__worldTransform);
this.__matrix3.a=this.__matrix.a;this.__matrix3.b=this.__matrix.b;this.__matrix3.c=this.__matrix.c;this.__matrix3.d=this.__matrix.d;this.__roundPixels?(this.__matrix3.tx=Math.round(this.__matrix.tx),this.__matrix3.ty=Math.round(this.__matrix.ty)):(this.__matrix3.tx=this.__matrix.tx,this.__matrix3.ty=this.__matrix.ty);b.set_matrix(this.__matrix3)},__clear:function(){if(null!=this.cairo&&(this.cairo.identityMatrix(),null!=this.__stage&&this.__stage.__clearBeforeRender)){var a=this.__blendMode;this.__setBlendMode(10);
this.cairo.setSourceRGB(this.__stage.__colorSplit[0],this.__stage.__colorSplit[1],this.__stage.__colorSplit[2]);this.cairo.paint();this.__setBlendMode(a)}},__popMask:function(){this.cairo.restore()},__popMaskObject:function(a,b){null==b&&(b=!0);a.__isCacheBitmapRender||null==a.__mask||this.__popMask();b&&null!=a.__scrollRect&&this.__popMaskRect()},__popMaskRect:function(){this.cairo.restore()},__pushMask:function(a){this.cairo.save();this.applyMatrix(a.__renderTransform,this.cairo);this.cairo.newPath();
a.__renderCairoMask(this);this.cairo.clip()},__pushMaskObject:function(a,b){null==b&&(b=!0);b&&null!=a.__scrollRect&&this.__pushMaskRect(a.__scrollRect,a.__renderTransform);a.__isCacheBitmapRender||null==a.__mask||this.__pushMask(a.__mask)},__pushMaskRect:function(a,b){this.cairo.save();this.applyMatrix(b,this.cairo);this.cairo.newPath();this.cairo.rectangle(a.x,a.y,a.width,a.height);this.cairo.clip()},__render:function(a){null!=this.cairo&&a.__renderCairo(this)},__renderStage3D:function(a){if(null!=
this.cairo)for(var b=0,d=a.stage3Ds;b<d.get_length();){var c=d.get(b);++b;c.__renderCairo(a,this)}},__setBlendMode:function(a){if(this.__blendMode!=a)switch(this.__blendMode=a,a){case 0:this.cairo.setOperator(12);break;case 2:this.cairo.setOperator(17);break;case 3:this.cairo.setOperator(23);break;case 5:this.cairo.setOperator(21);break;case 7:this.cairo.setOperator(2);break;case 8:this.cairo.setOperator(18);break;case 9:this.cairo.setOperator(14);break;case 11:this.cairo.setOperator(16);break;case 12:this.cairo.setOperator(15);
break;default:this.cairo.setOperator(2)}},__class__:Fj});var qd=function(a){this.pixelRatio=1;Jb.call(this);this.context=a;this.__tempMatrix=new P;this.__type="canvas"};m["openfl.display.CanvasRenderer"]=qd;qd.__name__="openfl.display.CanvasRenderer";qd.__super__=Jb;qd.prototype=v(Jb.prototype,{context:null,pixelRatio:null,__isDOM:null,__tempMatrix:null,applySmoothing:function(a,b){a.mozImageSmoothingEnabled=b;a.msImageSmoothingEnabled=b;a.imageSmoothingEnabled=b},setTransform:function(a,b){null==
b?b=this.context:this.context==b&&null!=this.__worldTransform&&(this.__tempMatrix.copyFrom(a),this.__tempMatrix.concat(this.__worldTransform),a=this.__tempMatrix);this.__roundPixels?b.setTransform(a.a,a.b,a.c,a.d,a.tx|0,a.ty|0):b.setTransform(a.a,a.b,a.c,a.d,a.tx,a.ty)},__clear:function(){if(null!=this.__stage){var a=this.__blendMode;this.__blendMode=null;this.__setBlendMode(10);this.context.setTransform(1,0,0,1,0,0);this.context.globalAlpha=1;!this.__stage.__transparent&&this.__stage.__clearBeforeRender?
(this.context.fillStyle=this.__stage.__colorString,this.context.fillRect(0,0,this.__stage.stageWidth*this.__stage.window.__scale,this.__stage.stageHeight*this.__stage.window.__scale)):this.__stage.__transparent&&this.__stage.__clearBeforeRender&&this.context.clearRect(0,0,this.__stage.stageWidth*this.__stage.window.__scale,this.__stage.stageHeight*this.__stage.window.__scale);this.__setBlendMode(a)}},__popMask:function(){this.context.restore()},__popMaskObject:function(a,b){null==b&&(b=!0);a.__isCacheBitmapRender||
null==a.__mask||this.__popMask();b&&null!=a.__scrollRect&&this.__popMaskRect()},__popMaskRect:function(){this.context.restore()},__pushMask:function(a){this.context.save();this.setTransform(a.__renderTransform,this.context);this.context.beginPath();a.__renderCanvasMask(this);this.context.closePath();this.context.clip()},__pushMaskObject:function(a,b){null==b&&(b=!0);b&&null!=a.__scrollRect&&this.__pushMaskRect(a.__scrollRect,a.__renderTransform);a.__isCacheBitmapRender||null==a.__mask||this.__pushMask(a.__mask)},
__pushMaskRect:function(a,b){this.context.save();this.setTransform(b,this.context);this.context.beginPath();this.context.rect(a.x,a.y,a.width,a.height);this.context.clip()},__render:function(a){a.__renderCanvas(this)},__renderStage3D:function(a){for(var b=0,d=a.stage3Ds;b<d.get_length();){var c=d.get(b);++b;c.__renderCanvas(a,this)}},__setBlendMode:function(a){if(this.__blendMode!=a)switch(this.__blendMode=a,a){case 0:this.context.globalCompositeOperation="lighter";break;case 1:this.context.globalCompositeOperation=
"destination-in";break;case 2:this.context.globalCompositeOperation="darken";break;case 3:this.context.globalCompositeOperation="difference";break;case 4:this.context.globalCompositeOperation="destination-out";break;case 5:this.context.globalCompositeOperation="hard-light";break;case 7:this.context.globalCompositeOperation="source-over";break;case 8:this.context.globalCompositeOperation="lighten";break;case 9:this.context.globalCompositeOperation="multiply";break;case 11:this.context.globalCompositeOperation=
"overlay";break;case 12:this.context.globalCompositeOperation="screen";break;default:this.context.globalCompositeOperation="source-over"}},__class__:qd});var xk={};m["openfl.display._CapsStyle.CapsStyle_Impl_"]=xk;xk.__name__="openfl.display._CapsStyle.CapsStyle_Impl_";xk.toString=function(a){switch(a){case 0:return"none";case 1:return"round";case 2:return"square";default:return null}};var Sf=function(a){this.pixelRatio=1;Jb.call(this);this.element=a;ha.__supportDOM=!0;a=window.getComputedStyle(document.documentElement,
"");a=(Array.prototype.slice.call(a).join("").match(/-(moz|webkit|ms)-/)||""===a.OLink&&["","o"])[1];"WebKit|Moz|MS|O".match(new RegExp("("+a+")","i"));a[0].toUpperCase();a.substr(1);this.__vendorPrefix=a;this.__transformProperty="webkit"==a?"-webkit-transform":"transform";this.__transformOriginProperty="webkit"==a?"-webkit-transform-origin":"transform-origin";this.__clipRects=[];this.__z=this.__numClipRects=0;this.__type="dom";this.__canvasRenderer=new qd(null);this.__canvasRenderer.__isDOM=!0};
m["openfl.display.DOMRenderer"]=Sf;Sf.__name__="openfl.display.DOMRenderer";Sf.__super__=Jb;Sf.prototype=v(Jb.prototype,{element:null,pixelRatio:null,__canvasRenderer:null,__clipRects:null,__currentClipRect:null,__numClipRects:null,__transformOriginProperty:null,__transformProperty:null,__vendorPrefix:null,__z:null,__applyStyle:function(a,b,d,c){var e=a.__style;b&&a.__renderTransformChanged&&(b=a.__renderTransform,e.setProperty(this.__transformProperty,this.__roundPixels?"matrix3d("+b.a+", "+b.b+
", 0, 0, "+b.c+", "+b.d+", 0, 0, 0, 0, 1, 0, "+(b.tx|0)+", "+(b.ty|0)+", 0, 1)":"matrix3d("+b.a+", "+b.b+", 0, 0, "+b.c+", "+b.d+", 0, 0, 0, 0, 1, 0, "+b.tx+", "+b.ty+", 0, 1)",null));a.__worldZ!=++this.__z&&(a.__worldZ=this.__z,e.setProperty("z-index",null==a.__worldZ?"null":""+a.__worldZ,null));d&&a.__worldAlphaChanged&&(1>a.__worldAlpha?e.setProperty("opacity",null==a.__worldAlpha?"null":""+a.__worldAlpha,null):e.removeProperty("opacity"));c&&a.__worldClipChanged&&(null==a.__worldClip?e.removeProperty("clip"):
(a=a.__worldClip,e.setProperty("clip","rect("+a.y+"px, "+a.get_right()+"px, "+a.get_bottom()+"px, "+a.x+"px)",null)))},__initializeElement:function(a,b){var d=a.__style=b.style;d.setProperty("position","absolute",null);d.setProperty("top","0",null);d.setProperty("left","0",null);d.setProperty(this.__transformOriginProperty,"0 0 0",null);this.element.appendChild(b);a.__worldAlphaChanged=!0;a.__renderTransformChanged=!0;a.__worldVisibleChanged=!0;a.__worldClipChanged=!0;a.__worldClip=null;a.__worldZ=
-1},__popMask:function(){this.__popMaskRect()},__popMaskObject:function(a,b){null==b&&(b=!0);null!=a.__mask&&this.__popMask();b&&null!=a.__scrollRect&&this.__popMaskRect()},__popMaskRect:function(){0<this.__numClipRects&&(this.__numClipRects--,this.__currentClipRect=0<this.__numClipRects?this.__clipRects[this.__numClipRects-1]:null)},__pushMask:function(a){this.__pushMaskRect(a.getBounds(a),a.__renderTransform)},__pushMaskObject:function(a,b){null==b&&(b=!0);b&&null!=a.__scrollRect&&this.__pushMaskRect(a.__scrollRect,
a.__renderTransform);null!=a.__mask&&this.__pushMask(a.__mask)},__pushMaskRect:function(a,b){this.__numClipRects==this.__clipRects.length&&(this.__clipRects[this.__numClipRects]=new M);var d=this.__clipRects[this.__numClipRects];a.__transform(d,b);0<this.__numClipRects&&(a=this.__clipRects[this.__numClipRects-1],d.__contract(a.x,a.y,a.width,a.height));0>d.height&&(d.height=0);0>d.width&&(d.width=0);this.__currentClipRect=d;this.__numClipRects++},__render:function(a){this.element.style.background=
this.__stage.__transparent?"none":this.__stage.__colorString;this.__z=1;a.__renderDOM(this)},__renderStage3D:function(a){for(var b=0,d=a.stage3Ds;b<d.get_length();){var c=d.get(b);++b;c.__renderDOM(a,this)}},__setBlendMode:function(a){this.__blendMode!=a&&(this.__blendMode=a)},__updateClip:function(a){if(null==this.__currentClipRect)a.__worldClipChanged=null!=a.__worldClip,a.__worldClip=null;else{null==a.__worldClip&&(a.__worldClip=new M);var b=M.__pool.get(),d=P.__pool.get();d.copyFrom(a.__renderTransform);
d.invert();this.__currentClipRect.__transform(b,d);b.equals(a.__worldClip)?a.__worldClipChanged=!1:(a.__worldClip.copyFrom(b),a.__worldClipChanged=!0);M.__pool.release(b);P.__pool.release(d)}},__class__:Sf});var Qh=function(a){null==this.__glFragmentSource&&(this.__glFragmentSource="varying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\t\t\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform vec2 openfl_TextureSize;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvec4 color = texture2D (openfl_Texture, openfl_TextureCoordv);\n\t\t\n\t\tif (color.a == 0.0) {\n\t\t\t\n\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\t\t\t\n\t\t} else if (openfl_HasColorTransform) {\n\t\t\t\n\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\t\t\t\n\t\t\tmat4 colorMultiplier = mat4 (0);\n\t\t\tcolorMultiplier[0][0] = openfl_ColorMultiplierv.x;\n\t\t\tcolorMultiplier[1][1] = openfl_ColorMultiplierv.y;\n\t\t\tcolorMultiplier[2][2] = openfl_ColorMultiplierv.z;\n\t\t\tcolorMultiplier[3][3] = openfl_ColorMultiplierv.w;\n\t\t\t\n\t\t\tcolor = clamp (openfl_ColorOffsetv + (color * colorMultiplier), 0.0, 1.0);\n\t\t\t\n\t\t\tif (color.a > 0.0) {\n\t\t\t\t\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * openfl_Alphav, color.a * openfl_Alphav);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tgl_FragColor = color * openfl_Alphav;\n\t\t\t\n\t\t}\n\t\t\t\n\t\t}");
null==this.__glVertexSource&&(this.__glVertexSource="attribute float openfl_Alpha;\n\t\tattribute vec4 openfl_ColorMultiplier;\n\t\tattribute vec4 openfl_ColorOffset;\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\t\n\t\tvarying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\t\t\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\topenfl_Alphav = openfl_Alpha;\n\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\t\t\n\t\tif (openfl_HasColorTransform) {\n\t\t\t\n\t\t\topenfl_ColorMultiplierv = openfl_ColorMultiplier;\n\t\t\topenfl_ColorOffsetv = openfl_ColorOffset / 255.0;\n\t\t\t\n\t\t}\n\t\t\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\t\n\t\t}");
$a.call(this,a);this.__isGenerated=!0;this.__initGL()};m["openfl.display.DisplayObjectShader"]=Qh;Qh.__name__="openfl.display.DisplayObjectShader";Qh.__super__=$a;Qh.prototype=v($a.prototype,{openfl_Alpha:null,openfl_ColorMultiplier:null,openfl_ColorOffset:null,openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_HasColorTransform:null,openfl_TextureSize:null,openfl_Texture:null,__class__:Qh});var lg=function(a,b,d){null==d&&(d=0);null==b&&(b=10);null==a&&(a=10);pb.call(this);this.set_x(a);
this.set_y(b);this.currentFPS=0;this.set_selectable(!1);this.mouseEnabled=!1;this.set_defaultTextFormat(new dd("_sans",12,d));this.set_text("FPS: ");this.cacheCount=0;this.times=[];this.addEventListener("enterFrame",u(this,this.this_onEnterFrame))};m["openfl.display.FPS"]=lg;lg.__name__="openfl.display.FPS";lg.__super__=pb;lg.prototype=v(pb.prototype,{currentFPS:null,cacheCount:null,times:null,this_onEnterFrame:function(a){a=(new Date).getTime()/1E3;for(this.times.push(a);this.times[0]<a-1;)this.times.shift();
a=this.times.length;this.currentFPS=Math.round((a+this.cacheCount)/2);a!=this.cacheCount&&this.set_text("FPS: "+this.currentFPS);this.cacheCount=a},__class__:lg});var Ff=function(a,b){ba.call(this);this.__name=a;this.__frame=b};m["openfl.display.FrameLabel"]=Ff;Ff.__name__="openfl.display.FrameLabel";Ff.__super__=ba;Ff.prototype=v(ba.prototype,{__frame:null,__name:null,get_frame:function(){return this.__frame},get_name:function(){return this.__name},__class__:Ff});var Db=function(a){this.__dirty=
!0;this.__owner=a;this.__commands=new sb;this.__shaderBufferPool=new yd(function(){return new tj});this.__positionY=this.__positionX=this.__strokePadding=0;this.__renderTransform=new P;this.__usedShaderBuffers=new hb;this.__worldTransform=new P;this.__height=this.__width=0;this.moveTo(0,0)};m["openfl.display.Graphics"]=Db;Db.__name__="openfl.display.Graphics";Db.prototype={__bounds:null,__buffer:null,__bufferContext:null,__bufferData:null,__bufferLength:null,__commands:null,__dirty:null,__height:null,
__positionX:null,__positionY:null,__renderTransform:null,__shaderBufferPool:null,__strokePadding:null,__transformDirty:null,__usedShaderBuffers:null,__visible:null,__owner:null,__width:null,__worldTransform:null,__canvas:null,__context:null,__bitmap:null,beginBitmapFill:function(a,b,d,c){null==c&&(c=!1);null==d&&(d=!0);this.__commands.beginBitmapFill(a,null!=b?b.clone():null,d,c);this.__visible=!0},beginFill:function(a,b){null==b&&(b=1);null==a&&(a=0);this.__commands.beginFill(a&16777215,b);0<b&&
(this.__visible=!0)},beginGradientFill:function(a,b,d,c,e,f,h,k){null==k&&(k=0);null==h&&(h=1);null==f&&(f=0);if(null!=b&&0!=b.length){if(null==d){d=[];for(var n=0,l=b.length;n<l;)n++,d.push(1)}if(null==c)for(c=[],n=0,l=b.length;n<l;){var m=n++;c.push(Math.ceil(m/b.length*255))}if(!(d.length<b.length||c.length<b.length))for(this.__commands.beginGradientFill(a,b,d,c,e,f,h,k),a=0;a<d.length;)if(b=d[a],++a,0<b){this.__visible=!0;break}}},clear:function(){for(var a=this.__usedShaderBuffers.h;null!=a;){var b=
a.item;a=a.next;this.__shaderBufferPool.release(b)}this.__usedShaderBuffers.clear();this.__commands.clear();this.__strokePadding=0;null!=this.__bounds&&(this.set___dirty(!0),this.__transformDirty=!0,this.__bounds=null);this.__visible=!1;this.__positionY=this.__positionX=0;this.moveTo(0,0)},copyFrom:function(a){this.__bounds=null!=a.__bounds?a.__bounds.clone():null;this.__commands=a.__commands.copy();this.set___dirty(!0);this.__strokePadding=a.__strokePadding;this.__positionX=a.__positionX;this.__positionY=
a.__positionY;this.__transformDirty=!0;this.__visible=a.__visible},curveTo:function(a,b,d,c){this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding);this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding);var e=a<d&&a>this.__positionX||a>d&&a<this.__positionX?d:this.__calculateBezierQuadPoint((this.__positionX-a)/(this.__positionX-2*a+d),this.__positionX,a,d);var f=b<c&&b>this.__positionY||b>c&&b<this.__positionY?
c:this.__calculateBezierQuadPoint((this.__positionY-b)/(this.__positionY-2*b+c),this.__positionY,b,c);this.__inflateBounds(e-this.__strokePadding,f-this.__strokePadding);this.__inflateBounds(e+this.__strokePadding,f+this.__strokePadding);this.__positionX=d;this.__positionY=c;this.__commands.curveTo(a,b,d,c);this.set___dirty(!0)},drawRect:function(a,b,d,c){if(0!=d||0!=c){var e=0>d?-1:1,f=0>c?-1:1;this.__inflateBounds(a-this.__strokePadding*e,b-this.__strokePadding*f);this.__inflateBounds(a+d+this.__strokePadding*
e,b+c+this.__strokePadding*f);this.__commands.drawRect(a,b,d,c);this.set___dirty(!0)}},endFill:function(){this.__commands.endFill()},lineStyle:function(a,b,d,c,e,f,h,k){null==k&&(k=3);null==e&&(e=2);null==c&&(c=!1);null==d&&(d=1);null==b&&(b=0);null!=a&&(1==h?a>this.__strokePadding&&(this.__strokePadding=a):a/2>this.__strokePadding&&(this.__strokePadding=a/2));this.__commands.lineStyle(a,b,d,c,e,f,h,k);null!=a&&(this.__visible=!0)},lineTo:function(a,b){isFinite(a)&&isFinite(b)&&(this.__inflateBounds(this.__positionX-
this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+this.__strokePadding,this.__positionY+this.__strokePadding),this.__positionX=a,this.__positionY=b,this.__inflateBounds(this.__positionX-this.__strokePadding,this.__positionY-this.__strokePadding),this.__inflateBounds(this.__positionX+2*this.__strokePadding,this.__positionY+this.__strokePadding),this.__commands.lineTo(a,b),this.set___dirty(!0))},moveTo:function(a,b){this.__positionX=a;this.__positionY=
b;this.__commands.moveTo(a,b)},__calculateBezierQuadPoint:function(a,b,d,c){var e=1-a;return e*e*b+2*e*a*d+a*a*c},__cleanup:function(){null!=this.__bounds&&(this.set___dirty(!0),this.__transformDirty=!0);this.__context=this.__canvas=this.__bitmap=null},__getBounds:function(a,b){if(null!=this.__bounds){var d=M.__pool.get();this.__bounds.__transform(d,b);a.__expand(d.x,d.y,d.width,d.height);M.__pool.release(d)}},__hitTest:function(a,b,d,c){if(null==this.__bounds)return!1;var e=c.a*c.d-c.b*c.c;e=0==
e?-c.tx:1/e*(c.c*(c.ty-b)+c.d*(a-c.tx));var f=c.a*c.d-c.b*c.c;a=0==f?-c.ty:1/f*(c.a*(b-c.ty)+c.b*(c.tx-a));return e>this.__bounds.x&&a>this.__bounds.y&&this.__bounds.contains(e,a)?d?q.hitTest(this,e,a):!0:!1},__inflateBounds:function(a,b){null==this.__bounds?(this.__bounds=new M(a,b,0,0),this.__transformDirty=!0):(a<this.__bounds.x&&(this.__bounds.width+=this.__bounds.x-a,this.__bounds.x=a,this.__transformDirty=!0),b<this.__bounds.y&&(this.__bounds.height+=this.__bounds.y-b,this.__bounds.y=b,this.__transformDirty=
!0),a>this.__bounds.x+this.__bounds.width&&(this.__bounds.width=a-this.__bounds.x),b>this.__bounds.y+this.__bounds.height&&(this.__bounds.height=b-this.__bounds.y))},__update:function(a){if(!(null==this.__bounds||0>=this.__bounds.width||0>=this.__bounds.height)){var b=this.__owner.__renderTransform;if(null!=b){var d=0==b.b?Math.abs(b.a):Math.sqrt(b.a*b.a+b.b*b.b);var c=0==b.c?Math.abs(b.d):Math.sqrt(b.c*b.c+b.d*b.d);null!=a&&(d=0==a.b?d*a.a:d*Math.sqrt(a.a*a.a+a.b*a.b),c=0==a.c?c*a.d:c*Math.sqrt(a.c*
a.c+a.d*a.d));a=this.__bounds.width*d;c*=this.__bounds.height;if(1>a||1>c)(1<=this.__width||1<=this.__height)&&this.set___dirty(!0),this.__height=this.__width=0;else{null!=Db.maxTextureWidth&&a>Db.maxTextureWidth&&(a=Db.maxTextureWidth);null!=Db.maxTextureWidth&&c>Db.maxTextureHeight&&(c=Db.maxTextureHeight);this.__renderTransform.a=a/this.__bounds.width;this.__renderTransform.d=c/this.__bounds.height;d=1/this.__renderTransform.a;var e=1/this.__renderTransform.d;this.__worldTransform.a=d*b.a;this.__worldTransform.b=
d*b.b;this.__worldTransform.c=e*b.c;this.__worldTransform.d=e*b.d;e=this.__bounds.x;var f=this.__bounds.y;d=e*b.a+f*b.c+b.tx;b=e*b.b+f*b.d+b.ty;this.__worldTransform.tx=Math.floor(d);this.__worldTransform.ty=Math.floor(b);e=this.__worldTransform;f=e.a*e.d-e.b*e.c;this.__renderTransform.tx=0==f?-e.tx:1/f*(e.c*(e.ty-b)+e.d*(d-e.tx));e=this.__worldTransform;f=e.a*e.d-e.b*e.c;this.__renderTransform.ty=0==f?-e.ty:1/f*(e.a*(b-e.ty)+e.b*(e.tx-d));a=Math.ceil(a+this.__renderTransform.tx);c=Math.ceil(c+this.__renderTransform.ty);
a==this.__width&&c==this.__height||this.set___dirty(!0);this.__width=a;this.__height=c}}}},set___dirty:function(a){if(a&&null!=this.__owner){var b=this.__owner;b.__renderDirty||(b.__renderDirty=!0,b.__setParentRenderDirty())}return this.__dirty=a},__class__:Db};var Rh=function(a){null==this.__glFragmentSource&&(this.__glFragmentSource="varying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\t\t\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\t\tuniform sampler2D bitmap;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvec4 color = texture2D (bitmap, openfl_TextureCoordv);\n\t\t\n\t\tif (color.a == 0.0) {\n\t\t\t\n\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\t\t\t\n\t\t} else if (openfl_HasColorTransform) {\n\t\t\t\n\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\t\t\t\n\t\t\tmat4 colorMultiplier = mat4 (0);\n\t\t\tcolorMultiplier[0][0] = openfl_ColorMultiplierv.x;\n\t\t\tcolorMultiplier[1][1] = openfl_ColorMultiplierv.y;\n\t\t\tcolorMultiplier[2][2] = openfl_ColorMultiplierv.z;\n\t\t\tcolorMultiplier[3][3] = openfl_ColorMultiplierv.w;\n\t\t\t\n\t\t\tcolor = clamp (openfl_ColorOffsetv + (color * colorMultiplier), 0.0, 1.0);\n\t\t\t\n\t\t\tif (color.a > 0.0) {\n\t\t\t\t\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * openfl_Alphav, color.a * openfl_Alphav);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tgl_FragColor = color * openfl_Alphav;\n\t\t\t\n\t\t}\n\t\t\t\n\t\t}");
null==this.__glVertexSource&&(this.__glVertexSource="attribute float openfl_Alpha;\n\t\tattribute vec4 openfl_ColorMultiplier;\n\t\tattribute vec4 openfl_ColorOffset;\n\t\tattribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\t\n\t\tvarying float openfl_Alphav;\n\t\tvarying vec4 openfl_ColorMultiplierv;\n\t\tvarying vec4 openfl_ColorOffsetv;\n\t\tvarying vec2 openfl_TextureCoordv;\n\t\t\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform bool openfl_HasColorTransform;\n\t\tuniform vec2 openfl_TextureSize;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\topenfl_Alphav = openfl_Alpha;\n\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\t\t\n\t\tif (openfl_HasColorTransform) {\n\t\t\t\n\t\t\topenfl_ColorMultiplierv = openfl_ColorMultiplier;\n\t\t\topenfl_ColorOffsetv = openfl_ColorOffset / 255.0;\n\t\t\t\n\t\t}\n\t\t\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\t\n\t\t}");
$a.call(this,a);this.__isGenerated=!0;this.__initGL()};m["openfl.display.GraphicsShader"]=Rh;Rh.__name__="openfl.display.GraphicsShader";Rh.__super__=$a;Rh.prototype=v($a.prototype,{openfl_Alpha:null,openfl_ColorMultiplier:null,openfl_ColorOffset:null,openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_HasColorTransform:null,openfl_TextureSize:null,bitmap:null,__class__:Rh});var Sh=function(){};m["openfl.display.ITileContainer"]=Sh;Sh.__name__="openfl.display.ITileContainer";Sh.prototype=
{__class__:Sh};var Lh=function(a){null==a&&(a=80);this.quality=a};m["openfl.display.JPEGEncoderOptions"]=Lh;Lh.__name__="openfl.display.JPEGEncoderOptions";Lh.prototype={quality:null,__class__:Lh};var wk={};m["openfl.display._JointStyle.JointStyle_Impl_"]=wk;wk.__name__="openfl.display._JointStyle.JointStyle_Impl_";wk.toString=function(a){switch(a){case 0:return"bevel";case 1:return"miter";case 2:return"round";default:return null}};var Gj=function(){oa.call(this);this.contentLoaderInfo=md.create(this);
this.uncaughtErrorEvents=this.contentLoaderInfo.uncaughtErrorEvents};m["openfl.display.Loader"]=Gj;Gj.__name__="openfl.display.Loader";Gj.__super__=oa;Gj.prototype=v(oa.prototype,{contentLoaderInfo:null,uncaughtErrorEvents:null,__class__:Gj});var md=function(){ba.call(this);this.applicationDomain=Ne.currentDomain;this.bytesTotal=this.bytesLoaded=0;this.childAllowsParent=!0;this.parameters={}};m["openfl.display.LoaderInfo"]=md;md.__name__="openfl.display.LoaderInfo";md.create=function(a){var b=new md;
b.uncaughtErrorEvents=new Th;null!=a?b.loader=a:b.url=md.__rootURL;return b};md.__super__=ba;md.prototype=v(ba.prototype,{applicationDomain:null,bytesLoaded:null,bytesTotal:null,childAllowsParent:null,content:null,loader:null,parameters:null,uncaughtErrorEvents:null,url:null,__completed:null,__complete:function(){this.__completed||(this.bytesLoaded<this.bytesTotal&&(this.bytesLoaded=this.bytesTotal),this.__update(this.bytesLoaded,this.bytesTotal),this.__completed=!0,this.dispatchEvent(new R("complete")))},
__update:function(a,b){this.bytesLoaded=a;this.bytesTotal=b;this.dispatchEvent(new Oe("progress",!1,!1,a,b))},__class__:md});var Qi=function(a,b,d,c,e,f){this.initFrame=a;this.initFrameObjectID=b;this.characterID=d;this.depth=c;this.displayObject=e;this.clipDepth=f};m["openfl.display._MovieClip.FrameSymbolInstance"]=Qi;Qi.__name__="openfl.display._MovieClip.FrameSymbolInstance";Qi.prototype={characterID:null,clipDepth:null,depth:null,displayObject:null,initFrame:null,initFrameObjectID:null,__class__:Qi};
var za=function(a,b){Jb.call(this);this.__gl=this.gl=a.webgl;this.__context=a;this.__defaultRenderTarget=b;this.__flipped=null==this.__defaultRenderTarget;null==Db.maxTextureWidth&&(Db.maxTextureWidth=Db.maxTextureHeight=this.__gl.getParameter(this.__gl.MAX_TEXTURE_SIZE));this.__matrix=la._new();this.__values=[];this.__softwareRenderer=new qd(null);this.__type="opengl";this.__setBlendMode(10);this.__gl.enable(this.__gl.BLEND);this.__clipRects=[];this.__maskObjects=[];this.__numClipRects=0;this.__projection=
la._new();this.__projectionFlipped=la._new();this.__stencilReference=0;this.__tempRect=new M;this.__defaultDisplayShader=new Qh;this.__defaultGraphicsShader=new Rh;this.__defaultShader=this.__defaultDisplayShader;this.__initShader(this.__defaultShader);this.__maskShader=new Me};m["openfl.display.OpenGLRenderer"]=za;za.__name__="openfl.display.OpenGLRenderer";za.__super__=Jb;za.prototype=v(Jb.prototype,{gl:null,__clipRects:null,__currentDisplayShader:null,__currentGraphicsShader:null,__currentShader:null,
__currentShaderBuffer:null,__defaultDisplayShader:null,__defaultGraphicsShader:null,__defaultRenderTarget:null,__defaultShader:null,__displayHeight:null,__displayWidth:null,__flipped:null,__gl:null,__height:null,__maskShader:null,__matrix:null,__maskObjects:null,__numClipRects:null,__offsetX:null,__offsetY:null,__projection:null,__projectionFlipped:null,__softwareRenderer:null,__stencilReference:null,__tempRect:null,__updatedStencil:null,__upscaled:null,__values:null,__width:null,applyAlpha:function(a){za.__alphaValue[0]=
a;null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addOverride("openfl_Alpha",za.__alphaValue):null!=this.__currentShader&&null!=this.__currentShader.__alpha&&(this.__currentShader.__alpha.value=za.__alphaValue)},applyBitmapData:function(a,b,d){null==d&&(d=!1);null!=this.__currentShaderBuffer?null!=a&&(za.__textureSizeValue[0]=a.__textureWidth,za.__textureSizeValue[1]=a.__textureHeight,this.__currentShaderBuffer.addOverride("openfl_TextureSize",za.__textureSizeValue)):null!=this.__currentShader&&
(null!=this.__currentShader.__bitmap&&(this.__currentShader.__bitmap.input=a,this.__currentShader.__bitmap.filter=b?4:5,this.__currentShader.__bitmap.mipFilter=2,this.__currentShader.__bitmap.wrap=d?2:0),null!=this.__currentShader.__texture&&(this.__currentShader.__texture.input=a,this.__currentShader.__texture.filter=b?4:5,this.__currentShader.__texture.mipFilter=2,this.__currentShader.__texture.wrap=d?2:0),null!=this.__currentShader.__textureSize&&(null!=a?(za.__textureSizeValue[0]=a.__textureWidth,
za.__textureSizeValue[1]=a.__textureHeight,this.__currentShader.__textureSize.value=za.__textureSizeValue):this.__currentShader.__textureSize.value=null))},applyColorTransform:function(a){var b=null!=a&&!a.__isDefault();this.applyHasColorTransform(b);b?(a.__setArrays(za.__colorMultipliersValue,za.__colorOffsetsValue),null!=this.__currentShaderBuffer?(this.__currentShaderBuffer.addOverride("openfl_ColorMultiplier",za.__colorMultipliersValue),this.__currentShaderBuffer.addOverride("openfl_ColorOffset",
za.__colorOffsetsValue)):null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.value=za.__colorMultipliersValue),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.value=za.__colorOffsetsValue))):null!=this.__currentShaderBuffer?(this.__currentShaderBuffer.addOverride("openfl_ColorMultiplier",za.__emptyColorValue),this.__currentShaderBuffer.addOverride("openfl_ColorOffset",za.__emptyColorValue)):null!=this.__currentShader&&
(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.value=za.__emptyColorValue),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.value=za.__emptyColorValue))},applyHasColorTransform:function(a){za.__hasColorTransformValue[0]=a;null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addOverride("openfl_HasColorTransform",za.__hasColorTransformValue):null!=this.__currentShader&&null!=this.__currentShader.__hasColorTransform&&(this.__currentShader.__hasColorTransform.value=
za.__hasColorTransformValue)},applyMatrix:function(a){null!=this.__currentShaderBuffer?this.__currentShaderBuffer.addOverride("openfl_Matrix",a):null!=this.__currentShader&&null!=this.__currentShader.__matrix&&(this.__currentShader.__matrix.value=a)},setShader:function(a){this.__currentShaderBuffer=null;this.__currentShader!=a&&(null!=this.__currentShader&&this.__currentShader.__disable(),null==a?(this.__currentShader=null,this.__gl.useProgram(null)):(this.__currentShader=a,this.__initShader(a),this.__gl.useProgram(a.glProgram),
this.__currentShader.__enable()))},setViewport:function(){this.__gl.viewport(this.__offsetX,this.__offsetY,this.__displayWidth,this.__displayHeight)},updateShader:function(){null!=this.__currentShader&&(null!=this.__currentShader.__position&&(this.__currentShader.__position.__useArray=!0),null!=this.__currentShader.__textureCoord&&(this.__currentShader.__textureCoord.__useArray=!0),this.__currentShader.__update())},useAlphaArray:function(){null!=this.__currentShader&&null!=this.__currentShader.__alpha&&
(this.__currentShader.__alpha.__useArray=!0)},useColorTransformArray:function(){null!=this.__currentShader&&(null!=this.__currentShader.__colorMultiplier&&(this.__currentShader.__colorMultiplier.__useArray=!0),null!=this.__currentShader.__colorOffset&&(this.__currentShader.__colorOffset.__useArray=!0))},__clear:function(){null==this.__stage||this.__stage.__transparent?this.__gl.clearColor(0,0,0,0):this.__gl.clearColor(this.__stage.__colorSplit[0],this.__stage.__colorSplit[1],this.__stage.__colorSplit[2],
1);this.__gl.clear(this.__gl.COLOR_BUFFER_BIT)},__clearShader:function(){null!=this.__currentShader&&(null==this.__currentShaderBuffer?null!=this.__currentShader.__bitmap&&(this.__currentShader.__bitmap.input=null):this.__currentShaderBuffer.clearOverride(),null!=this.__currentShader.__texture&&(this.__currentShader.__texture.input=null),null!=this.__currentShader.__textureSize&&(this.__currentShader.__textureSize.value=null),null!=this.__currentShader.__hasColorTransform&&(this.__currentShader.__hasColorTransform.value=
null),null!=this.__currentShader.__position&&(this.__currentShader.__position.value=null),null!=this.__currentShader.__matrix&&(this.__currentShader.__matrix.value=null),this.__currentShader.__clearUseArray())},__copyShader:function(a){this.__currentShader=a.__currentShader;this.__currentShaderBuffer=a.__currentShaderBuffer;this.__currentDisplayShader=a.__currentDisplayShader;this.__currentGraphicsShader=a.__currentGraphicsShader},__getMatrix:function(a){var b=P.__pool.get();b.copyFrom(a);b.concat(this.__worldTransform);
this.__roundPixels&&(b.tx=Math.round(b.tx),b.ty=Math.round(b.ty));la.identity(this.__matrix);la.set(this.__matrix,0,b.a);la.set(this.__matrix,1,b.b);la.set(this.__matrix,4,b.c);la.set(this.__matrix,5,b.d);la.set(this.__matrix,12,b.tx);la.set(this.__matrix,13,b.ty);la.append(this.__matrix,this.__flipped?this.__projectionFlipped:this.__projection);this.__values[0]=la.get(this.__matrix,0);this.__values[1]=la.get(this.__matrix,1);this.__values[2]=la.get(this.__matrix,2);this.__values[3]=la.get(this.__matrix,
3);this.__values[4]=la.get(this.__matrix,4);this.__values[5]=la.get(this.__matrix,5);this.__values[6]=la.get(this.__matrix,6);this.__values[7]=la.get(this.__matrix,7);this.__values[8]=la.get(this.__matrix,8);this.__values[9]=la.get(this.__matrix,9);this.__values[10]=la.get(this.__matrix,10);this.__values[11]=la.get(this.__matrix,11);this.__values[12]=la.get(this.__matrix,12);this.__values[13]=la.get(this.__matrix,13);this.__values[14]=la.get(this.__matrix,14);this.__values[15]=la.get(this.__matrix,
15);P.__pool.release(b);return this.__values},__initShader:function(a){return null!=a?(null==a.__context&&(a.__context=this.__context,a.__init()),a):this.__defaultShader},__initDisplayShader:function(a){return null!=a?(null==a.__context&&(a.__context=this.__context,a.__init()),a):this.__defaultDisplayShader},__initGraphicsShader:function(a){return null!=a?(null==a.__context&&(a.__context=this.__context,a.__init()),a):this.__defaultGraphicsShader},__initShaderBuffer:function(a){return null!=a?this.__initGraphicsShader(a.shader):
this.__defaultGraphicsShader},__popMask:function(){if(0!=this.__stencilReference){var a=this.__maskObjects.pop();1<this.__stencilReference?(this.__gl.stencilOp(this.__gl.KEEP,this.__gl.KEEP,this.__gl.DECR),this.__gl.stencilFunc(this.__gl.EQUAL,this.__stencilReference,255),this.__gl.colorMask(!1,!1,!1,!1),a.__renderGLMask(this),this.__stencilReference--,this.__gl.stencilOp(this.__gl.KEEP,this.__gl.KEEP,this.__gl.KEEP),this.__gl.stencilFunc(this.__gl.EQUAL,this.__stencilReference,255),this.__gl.colorMask(!0,
!0,!0,!0)):(this.__stencilReference=0,this.__gl.disable(this.__gl.STENCIL_TEST))}},__popMaskObject:function(a,b){null==b&&(b=!0);null!=a.__mask&&this.__popMask();b&&null!=a.__scrollRect&&this.__popMaskRect()},__popMaskRect:function(){0<this.__numClipRects&&(this.__numClipRects--,0<this.__numClipRects?this.__scissorRect(this.__clipRects[this.__numClipRects-1]):this.__scissorRect())},__pushMask:function(a){0==this.__stencilReference&&(this.__gl.enable(this.__gl.STENCIL_TEST),this.__gl.stencilMask(255),
this.__gl.clear(this.__gl.STENCIL_BUFFER_BIT),this.__updatedStencil=!0);this.__gl.stencilOp(this.__gl.KEEP,this.__gl.KEEP,this.__gl.INCR);this.__gl.stencilFunc(this.__gl.EQUAL,this.__stencilReference,255);this.__gl.colorMask(!1,!1,!1,!1);a.__renderGLMask(this);this.__maskObjects.push(a);this.__stencilReference++;this.__gl.stencilOp(this.__gl.KEEP,this.__gl.KEEP,this.__gl.KEEP);this.__gl.stencilFunc(this.__gl.EQUAL,this.__stencilReference,255);this.__gl.colorMask(!0,!0,!0,!0)},__pushMaskObject:function(a,
b){null==b&&(b=!0);b&&null!=a.__scrollRect&&this.__pushMaskRect(a.__scrollRect,a.__renderTransform);null!=a.__mask&&this.__pushMask(a.__mask)},__pushMaskRect:function(a,b){this.__numClipRects==this.__clipRects.length&&(this.__clipRects[this.__numClipRects]=new M);var d=P.__pool.get();d.copyFrom(b);d.concat(this.__worldTransform);b=this.__clipRects[this.__numClipRects];a.__transform(b,d);0<this.__numClipRects&&(a=this.__clipRects[this.__numClipRects-1],b.__contract(a.x,a.y,a.width,a.height));0>b.height&&
(b.height=0);0>b.width&&(b.width=0);P.__pool.release(d);this.__scissorRect(b);this.__numClipRects++},__render:function(a){this.__gl.disable(this.__gl.CULL_FACE);this.__gl.disable(this.__gl.DEPTH_TEST);this.__gl.disable(this.__gl.STENCIL_TEST);this.__gl.disable(this.__gl.SCISSOR_TEST);if(null==this.__defaultRenderTarget){if(this.__gl.viewport(this.__offsetX,this.__offsetY,this.__displayWidth,this.__displayHeight),this.__upscaled=1!=this.__worldTransform.a||1!=this.__worldTransform.d,a.__renderGL(this),
0<this.__offsetX||0<this.__offsetY)this.__gl.clearColor(0,0,0,1),this.__gl.enable(this.__gl.SCISSOR_TEST),0<this.__offsetX&&(this.__gl.scissor(0,0,this.__offsetX,this.__height),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT),this.__gl.scissor(this.__offsetX+this.__displayWidth,0,this.__width,this.__height),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT)),0<this.__offsetY&&(this.__gl.scissor(0,0,this.__width,this.__offsetY),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT),this.__gl.scissor(0,this.__offsetY+this.__displayHeight,
this.__width,this.__height),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT)),this.__gl.disable(this.__gl.SCISSOR_TEST)}else{this.__gl.viewport(this.__offsetX,this.__offsetY,this.__displayWidth,this.__displayHeight);var b=a.__mask,d=a.__scrollRect;a.__mask=null;a.__scrollRect=null;a.__renderGL(this);a.__mask=b;a.__scrollRect=d}},__renderFilterPass:function(a,b,d){null==d&&(d=!0);null!=a&&null!=b&&null!=this.__defaultRenderTarget&&(this.__gl.bindFramebuffer(this.__gl.FRAMEBUFFER,this.__defaultRenderTarget.__getFramebuffer(this.__context,
!1)),d&&(this.__gl.clearColor(0,0,0,0),this.__gl.clear(this.__gl.COLOR_BUFFER_BIT)),b=this.__initShader(b),this.setShader(b),this.applyAlpha(1),this.applyBitmapData(a,!1),this.applyColorTransform(null),this.applyMatrix(this.__getMatrix(a.__renderTransform)),this.updateShader(),this.__gl.bindBuffer(this.__gl.ARRAY_BUFFER,a.getBuffer(this.__context)),null!=b.__position&&this.__gl.vertexAttribPointer(b.__position.index,3,this.__gl.FLOAT,!1,56,0),null!=b.__textureCoord&&this.__gl.vertexAttribPointer(b.__textureCoord.index,
2,this.__gl.FLOAT,!1,56,12),this.__gl.drawArrays(this.__gl.TRIANGLE_STRIP,0,4),this.__gl.bindFramebuffer(this.__gl.FRAMEBUFFER,null),this.__clearShader())},__renderStage3D:function(a){for(var b=0,d=a.stage3Ds;b<d.get_length();){var c=d.get(b);++b;c.__renderGL(a,this)}},__resize:function(a,b){this.__width=a;this.__height=b;b=null==this.__defaultRenderTarget?this.__stage.stageWidth:this.__defaultRenderTarget.width;a=null==this.__defaultRenderTarget?this.__stage.stageHeight:this.__defaultRenderTarget.height;
if(null==this.__defaultRenderTarget){var d=this.__worldTransform;d=Math.round(0*d.a+0*d.c+d.tx)}else d=0;this.__offsetX=d;null==this.__defaultRenderTarget?(d=this.__worldTransform,d=Math.round(0*d.b+0*d.d+d.ty)):d=0;this.__offsetY=d;null==this.__defaultRenderTarget&&(d=this.__worldTransform,b=Math.round(b*d.a+0*d.c+d.tx-this.__offsetX));this.__displayWidth=b;null==this.__defaultRenderTarget&&(b=this.__worldTransform,a=Math.round(0*b.b+a*b.d+b.ty-this.__offsetY));this.__displayHeight=a;la.createOrtho(this.__projection,
this.__offsetX,this.__displayWidth+this.__offsetX,this.__offsetY,this.__displayHeight+this.__offsetY,-1E3,1E3);la.createOrtho(this.__projectionFlipped,this.__offsetX,this.__displayWidth+this.__offsetX,this.__displayHeight+this.__offsetY,this.__offsetY,-1E3,1E3)},__resumeClipAndMask:function(a){0<this.__stencilReference?this.__gl.enable(this.__gl.STENCIL_TEST):this.__gl.disable(this.__gl.STENCIL_TEST);0<this.__numClipRects?this.__scissorRect(this.__clipRects[this.__numClipRects-1]):this.__scissorRect()},
__scissorRect:function(a){if(null!=a){this.__gl.enable(this.__gl.SCISSOR_TEST);var b=Math.floor(a.x),d=Math.floor(a.y),c=Math.ceil(a.get_right())-b;a=Math.ceil(a.get_bottom())-d;0>c&&(c=0);0>a&&(a=0);this.__gl.scissor(b,this.__flipped?this.__height-d-a:d,c,a)}else this.__gl.disable(this.__gl.SCISSOR_TEST)},__setBlendMode:function(a){if(this.__blendMode!=a)switch(this.__blendMode=a,a){case 0:this.__gl.blendEquation(this.__gl.FUNC_ADD);this.__gl.blendFunc(this.__gl.ONE,this.__gl.ONE);break;case 9:this.__gl.blendEquation(this.__gl.FUNC_ADD);
this.__gl.blendFunc(this.__gl.DST_COLOR,this.__gl.ONE_MINUS_SRC_ALPHA);break;case 12:this.__gl.blendEquation(this.__gl.FUNC_ADD);this.__gl.blendFunc(this.__gl.ONE,this.__gl.ONE_MINUS_SRC_COLOR);break;case 14:this.__gl.blendEquation(this.__gl.FUNC_REVERSE_SUBTRACT);this.__gl.blendFunc(this.__gl.ONE,this.__gl.ONE);break;default:this.__gl.blendEquation(this.__gl.FUNC_ADD),this.__gl.blendFunc(this.__gl.ONE,this.__gl.ONE_MINUS_SRC_ALPHA)}},__setRenderTarget:function(a){this.__defaultRenderTarget=a;this.__flipped=
null==a;null!=a&&this.__resize(a.width,a.height)},__setShaderBuffer:function(a){this.setShader(a.shader);this.__currentShaderBuffer=a},__suspendClipAndMask:function(){0<this.__stencilReference&&this.__gl.disable(this.__gl.STENCIL_TEST);0<this.__numClipRects&&this.__scissorRect()},__updateShaderBuffer:function(){null!=this.__currentShader&&null!=this.__currentShaderBuffer&&this.__currentShader.__updateFromBuffer(this.__currentShaderBuffer)},__class__:za});var Kh=function(a){null==a&&(a=!1);this.fastCompression=
a};m["openfl.display.PNGEncoderOptions"]=Kh;Kh.__name__="openfl.display.PNGEncoderOptions";Kh.prototype={fastCompression:null,__class__:Kh};var ag=function(a){se.call(this);this.display=a;null!=a&&(a.addEventListener("unload",u(this,this.display_onUnload)),Ba.get_current().addChild(a))};m["openfl.display.Preloader"]=ag;ag.__name__="openfl.display.Preloader";ag.__super__=se;ag.prototype=v(se.prototype,{display:null,ready:null,start:function(){if(!this.simulateProgress)if(this.ready=!0,Ba.get_current().get_loaderInfo().__complete(),
null!=this.display){var a=new R("complete",!0,!0);this.display.dispatchEvent(a);a.isDefaultPrevented()||this.display.dispatchEvent(new R("unload"))}else this.onComplete.dispatch()},update:function(a,b){Ba.get_current().get_loaderInfo().__update(a,b);null!=this.display&&this.display.dispatchEvent(new Oe("progress",!0,!0,a,b))},display_onUnload:function(a){null!=this.display&&(this.display.removeEventListener("unload",u(this,this.display_onUnload)),this.display.parent==Ba.get_current()&&Ba.get_current().removeChild(this.display),
Ba.get_current().stage.set_focus(null),this.display=null);this.ready&&!this.simulateProgress&&this.onComplete.dispatch()},__class__:ag});var bg=function(){cb.call(this);var a=this.getBackgroundColor(),b=0;70>.299*(a>>16&255)+.587*(a>>8&255)+.114*(a&255)&&(b=16777215);a=this.getHeight()/2-3.5;var d=this.getWidth()-60;this.outline=new cb;this.outline.get_graphics().beginFill(b,.07);this.outline.get_graphics().drawRect(0,0,d,7);this.outline.set_x(30);this.outline.set_y(a);this.outline.set_alpha(0);this.addChild(this.outline);
this.progress=new cb;this.progress.get_graphics().beginFill(b,.35);this.progress.get_graphics().drawRect(0,0,d-4,3);this.progress.set_x(32);this.progress.set_y(a+2);this.progress.set_scaleX(0);this.progress.set_alpha(0);this.addChild(this.progress);this.startAnimation=Ba.getTimer()+100;this.endAnimation=this.startAnimation+1E3;this.addEventListener("addedToStage",u(this,this.this_onAddedToStage))};m["openfl.display.DefaultPreloader"]=bg;bg.__name__="openfl.display.DefaultPreloader";bg.__super__=cb;
bg.prototype=v(cb.prototype,{endAnimation:null,outline:null,progress:null,startAnimation:null,getBackgroundColor:function(){var a=Ba.get_current().stage.window.context.attributes;return Object.prototype.hasOwnProperty.call(a,"background")&&null!=a.background?a.background:0},getHeight:function(){var a=Ba.get_current().stage.window.__height;return 0<a?a:Ba.get_current().stage.stageHeight},getWidth:function(){var a=Ba.get_current().stage.window.__width;return 0<a?a:Ba.get_current().stage.stageWidth},
onInit:function(){this.addEventListener("enterFrame",u(this,this.this_onEnterFrame))},onLoaded:function(){this.removeEventListener("enterFrame",u(this,this.this_onEnterFrame));this.dispatchEvent(new R("unload"))},onUpdate:function(a,b){var d=0;0<b&&(d=a/b,1<d&&(d=1));this.progress.set_scaleX(d)},this_onAddedToStage:function(a){this.removeEventListener("addedToStage",u(this,this.this_onAddedToStage));this.onInit();this.onUpdate(this.get_loaderInfo().bytesLoaded,this.get_loaderInfo().bytesTotal);this.addEventListener("progress",
u(this,this.this_onProgress));this.addEventListener("complete",u(this,this.this_onComplete))},this_onComplete:function(a){a.preventDefault();this.removeEventListener("progress",u(this,this.this_onProgress));this.removeEventListener("complete",u(this,this.this_onComplete));this.onLoaded()},this_onEnterFrame:function(a){a=(Ba.getTimer()-this.startAnimation)/(this.endAnimation-this.startAnimation);0>a&&(a=0);1<a&&(a=1);this.outline.set_alpha(a);this.progress.set_alpha(a)},this_onProgress:function(a){this.onUpdate(a.bytesLoaded|
0,a.bytesTotal|0)},__class__:bg});var vj={};m["openfl.display._ShaderData.ShaderData_Impl_"]=vj;vj.__name__="openfl.display._ShaderData.ShaderData_Impl_";vj._new=function(a){return{}};var wj=function(){this.channels=0;this.filter=5;this.index=this.height=0;this.mipFilter=2;this.wrap=this.width=0};m["openfl.display.ShaderInput"]=wj;wj.__name__="openfl.display.ShaderInput";wj.prototype={channels:null,filter:null,height:null,index:null,input:null,mipFilter:null,name:null,width:null,wrap:null,__isUniform:null,
__disableGL:function(a,b){a=a.webgl;a.activeTexture(a.TEXTURE0+b);a.bindTexture(a.TEXTURE_2D,null)},__updateGL:function(a,b,d,c,e,f){var h=a.webgl;d=null!=d?d:this.input;c=null!=c?c:this.filter;e=null!=e?e:this.mipFilter;f=null!=f?f:this.wrap;if(null!=d){h.activeTexture(h.TEXTURE0+b);h.bindTexture(h.TEXTURE_2D,d.getTexture(a));a=4==c;switch(e){case 0:h.generateMipmap(h.TEXTURE_2D);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,a?h.LINEAR_MIPMAP_LINEAR:h.NEAREST_MIPMAP_LINEAR);break;case 1:h.generateMipmap(h.TEXTURE_2D);
h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,a?h.LINEAR_MIPMAP_NEAREST:h.NEAREST_MIPMAP_NEAREST);break;default:h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MIN_FILTER,a?h.LINEAR:h.NEAREST)}h.texParameteri(h.TEXTURE_2D,h.TEXTURE_MAG_FILTER,a?h.LINEAR:h.NEAREST);a=2==f||1==f;h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_S,2==f||3==f?h.REPEAT:h.CLAMP_TO_EDGE);h.texParameteri(h.TEXTURE_2D,h.TEXTURE_WRAP_T,a?h.REPEAT:h.CLAMP_TO_EDGE)}else h.activeTexture(h.TEXTURE0+b),h.bindTexture(h.TEXTURE_2D,null)},__class__:wj};
var Pf=function(){this.index=0};m["openfl.display.ShaderParameter"]=Pf;Pf.__name__="openfl.display.ShaderParameter";Pf.prototype={index:null,name:null,type:null,value:null,__arrayLength:null,__isBool:null,__isFloat:null,__isInt:null,__isUniform:null,__length:null,__uniformMatrix:null,__useArray:null,__disableGL:function(a){a=a.webgl;if(!this.__isUniform)for(var b=0,d=this.__arrayLength;b<d;){var c=b++;a.disableVertexAttribArray(this.index+c)}},__updateGL:function(a,b){a=a.webgl;b=null!=b?b:this.value;
var d=this.__isBool?b:null,c=this.__isFloat?b:null,e=this.__isInt?b:null;if(this.__isUniform)if(null!=b&&b.length>=this.__length)switch(this.type){case 0:a.uniform1i(this.index,d[0]?1:0);break;case 1:a.uniform2i(this.index,d[0]?1:0,d[1]?1:0);break;case 2:a.uniform3i(this.index,d[0]?1:0,d[1]?1:0,d[2]?1:0);break;case 3:a.uniform4i(this.index,d[0]?1:0,d[1]?1:0,d[2]?1:0,d[3]?1:0);break;case 4:a.uniform1f(this.index,c[0]);break;case 5:a.uniform2f(this.index,c[0],c[1]);break;case 6:a.uniform3f(this.index,
c[0],c[1],c[2]);break;case 7:a.uniform4f(this.index,c[0],c[1],c[2],c[3]);break;case 8:a.uniform1i(this.index,e[0]);break;case 9:a.uniform2i(this.index,e[0],e[1]);break;case 10:a.uniform3i(this.index,e[0],e[1],e[2]);break;case 11:a.uniform4i(this.index,e[0],e[1],e[2],e[3]);break;case 12:this.__uniformMatrix[0]=c[0];this.__uniformMatrix[1]=c[1];this.__uniformMatrix[2]=c[2];this.__uniformMatrix[3]=c[3];kb.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=c[0];
this.__uniformMatrix[1]=c[1];this.__uniformMatrix[2]=c[2];this.__uniformMatrix[3]=c[3];this.__uniformMatrix[4]=c[4];this.__uniformMatrix[5]=c[5];this.__uniformMatrix[6]=c[6];this.__uniformMatrix[7]=c[7];this.__uniformMatrix[8]=c[8];kb.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=c[0],this.__uniformMatrix[1]=c[1],this.__uniformMatrix[2]=c[2],this.__uniformMatrix[3]=c[3],this.__uniformMatrix[4]=c[4],this.__uniformMatrix[5]=c[5],this.__uniformMatrix[6]=
c[6],this.__uniformMatrix[7]=c[7],this.__uniformMatrix[8]=c[8],this.__uniformMatrix[9]=c[9],this.__uniformMatrix[10]=c[10],this.__uniformMatrix[11]=c[11],this.__uniformMatrix[12]=c[12],this.__uniformMatrix[13]=c[13],this.__uniformMatrix[14]=c[14],this.__uniformMatrix[15]=c[15],kb.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}else switch(this.type){case 1:case 9:a.uniform2i(this.index,0,0);break;case 3:case 11:a.uniform4i(this.index,0,0,0,0);break;case 4:a.uniform1f(this.index,0);break;case 5:a.uniform2f(this.index,
0,0);break;case 6:a.uniform3f(this.index,0,0,0);break;case 7:a.uniform4f(this.index,0,0,0,0);break;case 0:case 8:a.uniform1i(this.index,0);break;case 2:case 10:a.uniform3i(this.index,0,0,0);break;case 12:this.__uniformMatrix[0]=0;this.__uniformMatrix[1]=0;this.__uniformMatrix[2]=0;this.__uniformMatrix[3]=0;kb.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=0;this.__uniformMatrix[1]=0;this.__uniformMatrix[2]=0;this.__uniformMatrix[3]=0;this.__uniformMatrix[4]=
0;this.__uniformMatrix[5]=0;this.__uniformMatrix[6]=0;this.__uniformMatrix[7]=0;this.__uniformMatrix[8]=0;kb.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=0,this.__uniformMatrix[1]=0,this.__uniformMatrix[2]=0,this.__uniformMatrix[3]=0,this.__uniformMatrix[4]=0,this.__uniformMatrix[5]=0,this.__uniformMatrix[6]=0,this.__uniformMatrix[7]=0,this.__uniformMatrix[8]=0,this.__uniformMatrix[9]=0,this.__uniformMatrix[10]=0,this.__uniformMatrix[11]=0,this.__uniformMatrix[12]=
0,this.__uniformMatrix[13]=0,this.__uniformMatrix[14]=0,this.__uniformMatrix[15]=0,kb.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}else if(this.__useArray||null!=b&&b.length!=this.__length)for(b=0,d=this.__arrayLength;b<d;)c=b++,a.enableVertexAttribArray(this.index+c);else{for(var f=0,h=this.__arrayLength;f<h;){var k=f++;a.disableVertexAttribArray(this.index+k)}if(null!=b)switch(this.type){case 0:a.vertexAttrib1f(this.index,d[0]?1:0);break;case 1:a.vertexAttrib2f(this.index,d[0]?1:0,d[1]?
1:0);break;case 2:a.vertexAttrib3f(this.index,d[0]?1:0,d[1]?1:0,d[2]?1:0);break;case 3:a.vertexAttrib4f(this.index,d[0]?1:0,d[1]?1:0,d[2]?1:0,d[3]?1:0);break;case 4:a.vertexAttrib1f(this.index,c[0]);break;case 5:a.vertexAttrib2f(this.index,c[0],c[1]);break;case 6:a.vertexAttrib3f(this.index,c[0],c[1],c[2]);break;case 7:a.vertexAttrib4f(this.index,c[0],c[1],c[2],c[3]);break;case 8:a.vertexAttrib1f(this.index,e[0]);break;case 9:a.vertexAttrib2f(this.index,e[0],e[1]);break;case 10:a.vertexAttrib3f(this.index,
e[0],e[1],e[2]);break;case 11:a.vertexAttrib4f(this.index,e[0],e[1],e[2],e[3]);break;case 12:a.vertexAttrib2f(this.index+0,c[0],c[1]);a.vertexAttrib2f(this.index+1,c[2],c[3]);break;case 16:a.vertexAttrib3f(this.index+0,c[0],c[1],c[2]);a.vertexAttrib3f(this.index+1,c[3],c[4],c[5]);a.vertexAttrib3f(this.index+2,c[6],c[7],c[8]);break;case 20:a.vertexAttrib4f(this.index+0,c[0],c[1],c[2],c[3]),a.vertexAttrib4f(this.index+1,c[4],c[5],c[6],c[7]),a.vertexAttrib4f(this.index+2,c[8],c[9],c[10],c[11]),a.vertexAttrib4f(this.index+
3,c[12],c[13],c[14],c[15])}else switch(this.type){case 1:case 5:case 9:a.vertexAttrib2f(this.index,0,0);break;case 3:case 7:case 11:a.vertexAttrib4f(this.index,0,0,0,0);break;case 0:case 4:case 8:a.vertexAttrib1f(this.index,0);break;case 2:case 6:case 10:a.vertexAttrib3f(this.index,0,0,0);break;case 12:a.vertexAttrib2f(this.index+0,0,0);a.vertexAttrib2f(this.index+1,0,0);break;case 16:a.vertexAttrib3f(this.index+0,0,0,0);a.vertexAttrib3f(this.index+1,0,0,0);a.vertexAttrib3f(this.index+2,0,0,0);break;
case 20:a.vertexAttrib4f(this.index+0,0,0,0,0),a.vertexAttrib4f(this.index+1,0,0,0,0),a.vertexAttrib4f(this.index+2,0,0,0,0),a.vertexAttrib4f(this.index+3,0,0,0,0)}}},__updateGLFromBuffer:function(a,b,d,c){a=a.webgl;if(this.__isUniform){if(c>=this.__length)switch(this.type){case 1:case 9:a.uniform2i(this.index,b[d]|0,b[d+1]|0);break;case 3:case 11:a.uniform4i(this.index,b[d]|0,b[d+1]|0,b[d+2]|0,b[d+3]|0);break;case 4:a.uniform1f(this.index,b[d]);break;case 5:a.uniform2f(this.index,b[d],b[d+1]);break;
case 6:a.uniform3f(this.index,b[d],b[d+1],b[d+2]);break;case 7:a.uniform4f(this.index,b[d],b[d+1],b[d+2],b[d+3]);break;case 0:case 8:a.uniform1i(this.index,b[d]|0);break;case 2:case 10:a.uniform3i(this.index,b[d]|0,b[d+1]|0,b[d+2]|0);break;case 12:this.__uniformMatrix[0]=b[d];this.__uniformMatrix[1]=b[d+1];this.__uniformMatrix[2]=b[d+2];this.__uniformMatrix[3]=b[d+3];kb.uniformMatrix2fv(a,this.index,!1,this.__uniformMatrix);break;case 16:this.__uniformMatrix[0]=b[d];this.__uniformMatrix[1]=b[d+1];
this.__uniformMatrix[2]=b[d+2];this.__uniformMatrix[3]=b[d+3];this.__uniformMatrix[4]=b[d+4];this.__uniformMatrix[5]=b[d+5];this.__uniformMatrix[6]=b[d+6];this.__uniformMatrix[7]=b[d+7];this.__uniformMatrix[8]=b[d+8];kb.uniformMatrix3fv(a,this.index,!1,this.__uniformMatrix);break;case 20:this.__uniformMatrix[0]=b[d],this.__uniformMatrix[1]=b[d+1],this.__uniformMatrix[2]=b[d+2],this.__uniformMatrix[3]=b[d+3],this.__uniformMatrix[4]=b[d+4],this.__uniformMatrix[5]=b[d+5],this.__uniformMatrix[6]=b[d+
6],this.__uniformMatrix[7]=b[d+7],this.__uniformMatrix[8]=b[d+8],this.__uniformMatrix[9]=b[d+9],this.__uniformMatrix[10]=b[d+10],this.__uniformMatrix[11]=b[d+11],this.__uniformMatrix[12]=b[d+12],this.__uniformMatrix[13]=b[d+13],this.__uniformMatrix[14]=b[d+14],this.__uniformMatrix[15]=b[d+15],kb.uniformMatrix4fv(a,this.index,!1,this.__uniformMatrix)}}else if(Q.startsWith(this.name,"openfl_")||0!=c&&c!=this.__length){b=a.FLOAT;this.__isBool?b=a.INT:this.__isInt&&(b=a.INT);for(var e=0,f=this.__arrayLength;e<
f;){var h=e++;a.enableVertexAttribArray(this.index+h)}if(0<c)for(c=0,e=this.__arrayLength;c<e;)f=c++,a.vertexAttribPointer(this.index+f,this.__length,b,!1,4*this.__length,4*(d+f*this.__arrayLength))}else{e=0;for(f=this.__arrayLength;e<f;)h=e++,a.disableVertexAttribArray(this.index+h);if(0<c)switch(this.type){case 1:case 5:case 9:a.vertexAttrib2f(this.index,b[d],b[d+1]);break;case 3:case 7:case 11:a.vertexAttrib4f(this.index,b[d],b[d+1],b[d+2],b[d+3]);break;case 0:case 4:case 8:a.vertexAttrib1f(this.index,
b[d]);break;case 2:case 6:case 10:a.vertexAttrib3f(this.index,b[d],b[d+1],b[d+2]);break;case 12:a.vertexAttrib2f(this.index+0,b[d],b[d+1]);a.vertexAttrib2f(this.index+1,b[d+2],b[d+2+1]);break;case 16:a.vertexAttrib3f(this.index+0,b[d],b[d+1],b[d+2]);a.vertexAttrib3f(this.index+1,b[d+3],b[d+3+1],b[d+3+2]);a.vertexAttrib3f(this.index+2,b[d+6],b[d+6+1],b[d+6+2]);break;case 20:a.vertexAttrib4f(this.index+0,b[d],b[d+1],b[d+2],b[d+3]),a.vertexAttrib4f(this.index+1,b[d+4],b[d+4+1],b[d+4+2],b[d+4+3]),a.vertexAttrib4f(this.index+
2,b[d+8],b[d+8+1],b[d+8+2],b[d+8+3]),a.vertexAttrib4f(this.index+3,b[d+12],b[d+12+1],b[d+12+2],b[d+12+3])}else switch(this.type){case 1:case 5:case 9:a.vertexAttrib2f(this.index,0,0);break;case 3:case 7:case 11:a.vertexAttrib4f(this.index,0,0,0,0);break;case 0:case 4:case 8:a.vertexAttrib1f(this.index,0);break;case 2:case 6:case 10:a.vertexAttrib3f(this.index,0,0,0);break;case 12:a.vertexAttrib2f(this.index+0,0,0);a.vertexAttrib2f(this.index+1,0,0);break;case 16:a.vertexAttrib3f(this.index+0,0,0,
0);a.vertexAttrib3f(this.index+1,0,0,0);a.vertexAttrib3f(this.index+2,0,0,0);break;case 20:a.vertexAttrib4f(this.index+0,0,0,0,0),a.vertexAttrib4f(this.index+1,0,0,0,0),a.vertexAttrib4f(this.index+2,0,0,0,0),a.vertexAttrib4f(this.index+3,0,0,0,0)}}},__class__:Pf};var Tf=function(a,b){oa.call(this);this.set_name(null);this.__color=16777215;this.__colorSplit=[255,255,255];this.__colorString="#FFFFFF";this.__contentsScaleFactor=1;this.__deltaTime=0;this.__displayState=2;this.__logicalHeight=this.__logicalWidth=
this.__lastClickTime=this.__mouseY=this.__mouseX=0;this.__displayMatrix=new P;this.__renderDirty=!0;this.stage3Ds=tb.toObjectVector(null);this.stage3Ds.push(new Ld);this.stage=this;this.align=6;this.allowsFullScreenInteractive=this.allowsFullScreen=!0;this.__quality=1;this.__scaleMode=2;this.showDefaultContextMenu=!0;this.softKeyboardRect=new M;this.stageFocusRect=!0;this.__macKeyboard=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent)||/Mac/.test(navigator.platform);
this.__clearBeforeRender=!0;this.__forceRender=!1;this.__stack=[];this.__rollOutStack=[];this.__mouseOutStack=[];this.__touchData=new Y;this.application=a.application;this.window=a;this.set_color(b);this.__contentsScaleFactor=a.__scale;this.__wasFullscreen=a.__fullscreen;this.__resize();null==Ba.get_current().stage&&this.stage.addChild(Ba.get_current())};m["openfl.display.Stage"]=Tf;Tf.__name__="openfl.display.Stage";Tf.__interfaces__=[Zf];Tf.__super__=oa;Tf.prototype=v(oa.prototype,{align:null,allowsFullScreen:null,
allowsFullScreenInteractive:null,application:null,showDefaultContextMenu:null,softKeyboardRect:null,stage3Ds:null,stageFocusRect:null,stageHeight:null,stageWidth:null,window:null,__cacheFocus:null,__clearBeforeRender:null,__color:null,__colorSplit:null,__colorString:null,__contentsScaleFactor:null,__deltaTime:null,__displayMatrix:null,__displayState:null,__dragBounds:null,__dragObject:null,__dragOffsetX:null,__dragOffsetY:null,__focus:null,__forceRender:null,__invalidated:null,__lastClickTime:null,
__logicalWidth:null,__logicalHeight:null,__macKeyboard:null,__mouseDownLeft:null,__mouseDownMiddle:null,__mouseDownRight:null,__mouseOutStack:null,__mouseOverTarget:null,__mouseX:null,__mouseY:null,__pendingMouseEvent:null,__pendingMouseX:null,__pendingMouseY:null,__primaryTouch:null,__quality:null,__renderer:null,__rendering:null,__rollOutStack:null,__scaleMode:null,__stack:null,__touchData:null,__transparent:null,__wasDirty:null,__wasFullscreen:null,onGamepadAxisMove:function(a,b,d){try{Aa.__onGamepadAxisMove(a,
b,d)}catch(c){fa.lastException=c,this.__handleError(c instanceof w?c.val:c)}},onGamepadButtonDown:function(a,b){try{Aa.__onGamepadButtonDown(a,b)}catch(d){fa.lastException=d,this.__handleError(d instanceof w?d.val:d)}},onGamepadButtonUp:function(a,b){try{Aa.__onGamepadButtonUp(a,b)}catch(d){fa.lastException=d,this.__handleError(d instanceof w?d.val:d)}},onGamepadConnect:function(a){try{Aa.__onGamepadConnect(a)}catch(b){fa.lastException=b,this.__handleError(b instanceof w?b.val:b)}},onGamepadDisconnect:function(a){try{Aa.__onGamepadDisconnect(a)}catch(b){fa.lastException=
b,this.__handleError(b instanceof w?b.val:b)}},onKeyDown:function(a,b,d){null!=this.window&&this.window==a&&this.__onKey("keyDown",b,d)},onKeyUp:function(a,b,d){null!=this.window&&this.window==a&&this.__onKey("keyUp",b,d)},onModuleExit:function(a){null!=this.window&&this.__broadcastEvent(new R("deactivate"))},onMouseDown:function(a,b,d,c){if(null!=this.window&&this.window==a){this.__dispatchPendingMouseEvent();switch(c){case 1:var e="middleMouseDown";break;case 2:e="rightMouseDown";break;default:e=
"mouseDown"}this.__onMouse(e,b*a.__scale|0,d*a.__scale|0,c)}},onMouseMove:function(a,b,d){null!=this.window&&this.window==a&&(this.__pendingMouseEvent=!0,this.__pendingMouseX=b*a.__scale|0,this.__pendingMouseY=d*a.__scale|0)},onMouseMoveRelative:function(a,b,d){},onMouseUp:function(a,b,d,c){if(null!=this.window&&this.window==a){this.__dispatchPendingMouseEvent();switch(c){case 1:var e="middleMouseUp";break;case 2:e="rightMouseUp";break;default:e="mouseUp"}this.__onMouse(e,b*a.__scale|0,d*a.__scale|
0,c);this.showDefaultContextMenu||2!=c||a.onMouseUp.cancel()}},onMouseWheel:function(a,b,d,c){null!=this.window&&this.window==a&&(this.__dispatchPendingMouseEvent(),c==Zi.PIXELS?this.__onMouseWheel(b*a.__scale|0,d*a.__scale|0,c):this.__onMouseWheel(b|0,d|0,c))},onRenderContextLost:function(){this.__renderer=null},onRenderContextRestored:function(a){this.__createRenderer()},onTextEdit:function(a,b,d,c){},onTextInput:function(a,b){if(null!=this.window&&this.window==a){var d=[];null==this.__focus?this.__getInteractive(d):
this.__focus.__getInteractive(d);b=new xd("textInput",!0,!0,b);0<d.length?(d.reverse(),this.__dispatchStack(b,d)):this.__dispatchEvent(b);b.isDefaultPrevented()&&a.onTextInput.cancel()}},onTouchMove:function(a){this.__onTouch("touchMove",a)},onTouchEnd:function(a){this.__primaryTouch==a&&(this.__primaryTouch=null);this.__onTouch("touchEnd",a)},onTouchStart:function(a){null==this.__primaryTouch&&(this.__primaryTouch=a);this.__onTouch("touchBegin",a)},onWindowActivate:function(a){},onWindowClose:function(a){this.window==
a&&(this.window=null);this.__primaryTouch=null;this.__broadcastEvent(new R("deactivate"))},onWindowCreate:function(a){null!=this.window&&this.window==a&&null!=a.context&&this.__createRenderer()},onWindowDeactivate:function(a){},onWindowDropFile:function(a,b){},onWindowEnter:function(a){},onWindowExpose:function(a){null!=this.window&&this.window==a&&(this.__renderDirty=!0)},onWindowFocusIn:function(a){null!=this.window&&this.window==a&&(this.__renderDirty=!0,this.__broadcastEvent(new R("activate")),
this.set_focus(this.__cacheFocus))},onWindowFocusOut:function(a){null!=this.window&&this.window==a&&(this.__primaryTouch=null,this.__broadcastEvent(new R("deactivate")),a=this.get_focus(),this.set_focus(null),this.__cacheFocus=a)},onWindowFullscreen:function(a){null!=this.window&&this.window==a&&(this.__resize(),this.__wasFullscreen||(this.__wasFullscreen=!0,2==this.__displayState&&(this.__displayState=1),this.__dispatchEvent(new Rd("fullScreen",!1,!1,!0,!0))))},onWindowLeave:function(a){null==this.window||
this.window!=a||Va.__buttonDown||this.__dispatchEvent(new R("mouseLeave"))},onWindowMinimize:function(a){},onWindowMove:function(a,b,d){},onWindowResize:function(a,b,d){null!=this.window&&this.window==a&&(this.__resize(),this.__wasFullscreen&&!a.__fullscreen&&(this.__wasFullscreen=!1,this.__displayState=2,this.__dispatchEvent(new Rd("fullScreen",!1,!1,!1,!0))))},onWindowRestore:function(a){null!=this.window&&this.window==a&&this.__wasFullscreen&&!a.__fullscreen&&(this.__wasFullscreen=!1,this.__displayState=
2,this.__dispatchEvent(new Rd("fullScreen",!1,!1,!1,!0)))},render:function(a){this.__rendering||(this.__rendering=!0,null!=this.__renderer&&(Ld.__active||this.stage3Ds.get(0).__contextRequested)&&(this.__renderer.__clear(),this.__renderer.__renderStage3D(this),this.__renderDirty=!0),this.__broadcastEvent(new R("enterFrame")),this.__broadcastEvent(new R("frameConstructed")),this.__broadcastEvent(new R("exitFrame")),this.__invalidated&&(this.__invalidated=!1,this.__broadcastEvent(new R("render"))),
this.__renderable=!0,this.__enterFrame(this.__deltaTime),this.__deltaTime=0,this.__update(!1,!0),null!=this.__renderer&&(this.__renderDirty||this.__forceRender)?(Ld.__active||this.__renderer.__clear(),this.__renderer.__render(this)):this.window.onRender.cancel(),this.__rendering=!1)},update:function(a){this.__deltaTime=a;this.__dispatchPendingMouseEvent()},__addWindow:function(a){if(this.window==a){var b=u(this,this.onWindowActivate);a.onActivate.add(function(){b(a)});var d=u(this,this.onWindowClose);
a.onClose.add(function(){d(a)},!1,-9E3);var c=u(this,this.onWindowDeactivate);a.onDeactivate.add(function(){c(a)});var e=u(this,this.onWindowDropFile);a.onDropFile.add(function(b){e(a,b)});var f=u(this,this.onWindowEnter);a.onEnter.add(function(){f(a)});var h=u(this,this.onWindowExpose);a.onExpose.add(function(){h(a)});var k=u(this,this.onWindowFocusIn);a.onFocusIn.add(function(){k(a)});var n=u(this,this.onWindowFocusOut);a.onFocusOut.add(function(){n(a)});var l=u(this,this.onWindowFullscreen);a.onFullscreen.add(function(){l(a)});
var m=u(this,this.onKeyDown);a.onKeyDown.add(function(b,c){m(a,b,c)});var g=u(this,this.onKeyUp);a.onKeyUp.add(function(b,c){g(a,b,c)});var p=u(this,this.onWindowLeave);a.onLeave.add(function(){p(a)});var q=u(this,this.onWindowMinimize);a.onMinimize.add(function(){q(a)});var r=u(this,this.onMouseDown);a.onMouseDown.add(function(b,c,d){r(a,b,c,d)});var t=u(this,this.onMouseMove);a.onMouseMove.add(function(b,c){t(a,b,c)});var v=u(this,this.onMouseMoveRelative);a.onMouseMoveRelative.add(function(b,c){v(a,
b,c)});var w=u(this,this.onMouseUp);a.onMouseUp.add(function(b,c,d){w(a,b,c,d)});var y=u(this,this.onMouseWheel);a.onMouseWheel.add(function(b,c,d){y(a,b,c,d)});var z=u(this,this.onWindowMove);a.onMove.add(function(b,c){z(a,b,c)});a.onRender.add(u(this,this.render));a.onRenderContextLost.add(u(this,this.onRenderContextLost));a.onRenderContextRestored.add(u(this,this.onRenderContextRestored));var B=u(this,this.onWindowResize);a.onResize.add(function(b,c){B(a,b,c)});var x=u(this,this.onWindowRestore);
a.onRestore.add(function(){x(a)});var D=u(this,this.onTextEdit);a.onTextEdit.add(function(b,c,d){D(a,b,c,d)});var I=u(this,this.onTextInput);a.onTextInput.add(function(b){I(a,b)});this.onWindowCreate(a)}},__broadcastEvent:function(a){var b=a.type,d=ha.__broadcastEvents;if(null!=t[b]?d.existsReserved(b):d.h.hasOwnProperty(b))for(b=a.type,d=ha.__broadcastEvents,b=null!=t[b]?d.getReserved(b):d.h[b],d=0;d<b.length;){var c=b[d];++d;if(c.stage==this||null==c.stage)try{c.__dispatch(a)}catch(e){fa.lastException=
e,this.__handleError(e instanceof w?e.val:e)}}},__createRenderer:function(){var a=1;1<this.window.__scale&&(a=this.window.devicePixelRatio||1);switch(this.window.context.type){case "canvas":this.__renderer=new qd(this.window.context.canvas2D);U.__cast(this.__renderer,qd).pixelRatio=a;break;case "dom":this.__renderer=new Sf(this.window.context.dom);U.__cast(this.__renderer,Sf).pixelRatio=a;break;case "opengl":case "opengles":case "webgl":this.__renderer=new za(this.window.context),null==this.stage3Ds.get(0).context3D&&
this.stage3Ds.get(0).__createContext(this,this.__renderer)}null!=this.__renderer&&(a=this.get_quality(),this.__renderer.__allowSmoothing=2!=a,this.__renderer.__worldTransform=this.__displayMatrix,this.__renderer.__stage=this,this.__renderer.__resize(this.window.__width*this.window.__scale|0,this.window.__height*this.window.__scale|0))},__dispatchEvent:function(a){try{return oa.prototype.__dispatchEvent.call(this,a)}catch(b){return fa.lastException=b,this.__handleError(b instanceof w?b.val:b),!1}},
__dispatchPendingMouseEvent:function(){this.__pendingMouseEvent&&(this.__onMouse("mouseMove",this.__pendingMouseX,this.__pendingMouseY,0),this.__pendingMouseEvent=!1)},__dispatchStack:function(a,b){try{var d=b.length;if(0==d){a.eventPhase=2;var c=a.target;c.__dispatch(a)}else{a.eventPhase=1;a.target=b[b.length-1];for(var e=0,f=d-1;e<f;){var h=e++;b[h].__dispatch(a);if(a.__isCanceled)return}a.eventPhase=2;c=a.target;c.__dispatch(a);if(!a.__isCanceled&&a.bubbles)for(a.eventPhase=3,c=d-2;0<=c;){b[c].__dispatch(a);
if(a.__isCanceled)break;--c}}}catch(k){fa.lastException=k,this.__handleError(k instanceof w?k.val:k)}},__dispatchTarget:function(a,b){try{return a.__dispatchEvent(b)}catch(d){return fa.lastException=d,this.__handleError(d instanceof w?d.val:d),!1}},__drag:function(a){var b=this.__dragObject.parent;if(null!=b){b=b.__getWorldTransform();var d=b.a*b.d-b.b*b.c;if(0==d)a.x=-b.tx,a.y=-b.ty;else{var c=1/d*(b.c*(b.ty-a.y)+b.d*(a.x-b.tx));a.y=1/d*(b.a*(a.y-b.ty)+b.b*(b.tx-a.x));a.x=c}}b=a.x+this.__dragOffsetX;
a=a.y+this.__dragOffsetY;null!=this.__dragBounds&&(b<this.__dragBounds.x?b=this.__dragBounds.x:b>this.__dragBounds.get_right()&&(b=this.__dragBounds.get_right()),a<this.__dragBounds.y?a=this.__dragBounds.y:a>this.__dragBounds.get_bottom()&&(a=this.__dragBounds.get_bottom()));this.__dragObject.set_x(b);this.__dragObject.set_y(a)},__getInteractive:function(a){null!=a&&a.push(this);return!0},__globalToLocal:function(a,b){a!=b&&b.copyFrom(a);return b},__handleError:function(a){var b=new Uh("uncaughtError",
!0,!0,a);try{Ba.get_current().__loaderInfo.uncaughtErrorEvents.dispatchEvent(b)}catch(e){fa.lastException=e}if(!b.__preventDefault){try{var d=fa.lastException;if(null!=d&&Object.prototype.hasOwnProperty.call(d,"stack")&&null!=d.stack&&""!=d.stack)console.log(d.stack),a.stack=d.stack;else{var c=fa.toString(fa.callStack());console.log(c)}}catch(e){fa.lastException=e}throw a;}},__onKey:function(a,b,d){this.__dispatchPendingMouseEvent();Va.__altKey=ua.get_altKey(d);Va.__commandKey=ua.get_metaKey(d);Va.__ctrlKey=
ua.get_ctrlKey(d);Va.__shiftKey=ua.get_shiftKey(d);var c=[];null==this.__focus?this.__getInteractive(c):this.__focus.__getInteractive(c);if(0<c.length){switch(b){case 1073741908:case 1073741909:case 1073741910:case 1073741911:case 1073741912:case 1073741913:case 1073741914:case 1073741915:case 1073741916:case 1073741917:case 1073741918:case 1073741919:case 1073741920:case 1073741921:case 1073741922:case 1073741923:case 1073742044:var e=3;break;case 1073742048:case 1073742049:case 1073742050:case 1073742051:e=
1;break;case 1073742052:case 1073742053:case 1073742054:case 1073742055:e=2;break;default:e=0}switch(b){case 8:b=8;break;case 9:b=9;break;case 13:b=13;break;case 27:b=27;break;case 32:b=32;break;case 33:b=49;break;case 34:b=222;break;case 35:b=51;break;case 36:b=52;break;case 37:b=53;break;case 38:b=55;break;case 39:b=222;break;case 40:b=57;break;case 41:b=48;break;case 42:b=56;break;case 44:b=188;break;case 45:b=189;break;case 46:b=190;break;case 47:b=191;break;case 48:b=48;break;case 49:b=49;break;
case 50:b=50;break;case 51:b=51;break;case 52:b=52;break;case 53:b=53;break;case 54:b=54;break;case 55:b=55;break;case 56:b=56;break;case 57:b=57;break;case 58:b=186;break;case 59:b=186;break;case 60:b=60;break;case 61:b=187;break;case 62:b=190;break;case 63:b=191;break;case 64:b=50;break;case 91:b=219;break;case 92:b=220;break;case 93:b=221;break;case 94:b=54;break;case 95:b=189;break;case 96:b=192;break;case 97:b=65;break;case 98:b=66;break;case 99:b=67;break;case 100:b=68;break;case 101:b=69;break;
case 102:b=70;break;case 103:b=71;break;case 104:b=72;break;case 105:b=73;break;case 106:b=74;break;case 107:b=75;break;case 108:b=76;break;case 109:b=77;break;case 110:b=78;break;case 111:b=79;break;case 112:b=80;break;case 113:b=81;break;case 114:b=82;break;case 115:b=83;break;case 116:b=84;break;case 117:b=85;break;case 118:b=86;break;case 119:b=87;break;case 120:b=88;break;case 121:b=89;break;case 122:b=90;break;case 127:b=46;break;case 1073741881:b=20;break;case 1073741882:b=112;break;case 1073741883:b=
113;break;case 1073741884:b=114;break;case 1073741885:b=115;break;case 1073741886:b=116;break;case 1073741887:b=117;break;case 1073741888:b=118;break;case 1073741889:b=119;break;case 1073741890:b=120;break;case 1073741891:b=121;break;case 1073741892:b=122;break;case 1073741893:b=123;break;case 1073741894:b=301;break;case 1073741895:b=145;break;case 1073741896:b=19;break;case 1073741897:b=45;break;case 1073741898:b=36;break;case 1073741899:b=33;break;case 1073741901:b=35;break;case 1073741902:b=34;
break;case 1073741903:b=39;break;case 1073741904:b=37;break;case 1073741905:b=40;break;case 1073741906:b=38;break;case 1073741907:b=144;break;case 1073741908:b=111;break;case 1073741909:b=106;break;case 1073741910:b=109;break;case 1073741911:b=107;break;case 1073741912:b=13;break;case 1073741913:b=97;break;case 1073741914:b=98;break;case 1073741915:b=99;break;case 1073741916:b=100;break;case 1073741917:b=101;break;case 1073741918:b=102;break;case 1073741919:b=103;break;case 1073741920:b=104;break;
case 1073741921:b=105;break;case 1073741922:b=96;break;case 1073741923:b=110;break;case 1073741925:b=302;break;case 1073741928:b=124;break;case 1073741929:b=125;break;case 1073741930:b=126;break;case 1073741982:b=13;break;case 1073742044:b=110;break;case 1073742048:b=17;break;case 1073742049:b=16;break;case 1073742050:b=18;break;case 1073742051:b=15;break;case 1073742052:b=17;break;case 1073742053:b=16;break;case 1073742054:b=18;break;case 1073742055:b=15}var f=Hk.__getCharCode(b,ua.get_shiftKey(d));
d=new Vh(a,!0,!0,f,b,e,this.__macKeyboard?ua.get_ctrlKey(d)||ua.get_metaKey(d):ua.get_ctrlKey(d),ua.get_altKey(d),ua.get_shiftKey(d),ua.get_ctrlKey(d),ua.get_metaKey(d));c.reverse();this.__dispatchStack(d,c);d.__preventDefault&&("keyDown"==a?this.window.onKeyDown.cancel():this.window.onKeyUp.cancel())}},__onGamepadConnect:function(a){this.onGamepadConnect(a);var b=u(this,this.onGamepadAxisMove);a.onAxisMove.add(function(c,d){b(a,c,d)});var d=u(this,this.onGamepadButtonDown);a.onButtonDown.add(function(b){d(a,
b)});var c=u(this,this.onGamepadButtonUp);a.onButtonUp.add(function(b){c(a,b)});var e=u(this,this.onGamepadDisconnect);a.onDisconnect.add(function(){e(a)})},__onMouse:function(a,b,d,c){if(!(2<c)){var e=qa.__pool.get();e.setTo(b,d);b=this.__displayMatrix;d=b.a*b.d-b.b*b.c;if(0==d)e.x=-b.tx,e.y=-b.ty;else{var f=1/d*(b.c*(b.ty-e.y)+b.d*(e.x-b.tx));e.y=1/d*(b.a*(e.y-b.ty)+b.b*(b.tx-e.x));e.x=f}this.__mouseX=e.x;this.__mouseY=e.y;d=[];this.__hitTest(this.__mouseX,this.__mouseY,!0,d,!0,this)?f=d[d.length-
1]:(f=this,d=[this]);null==f&&(f=this);var h=null;switch(a){case "middleMouseDown":this.__mouseDownMiddle=f;break;case "middleMouseUp":this.__mouseDownMiddle==f&&(h="middleClick");this.__mouseDownMiddle=null;break;case "mouseDown":f.__allowMouseFocus()?this.set_focus(f):this.set_focus(null);this.__mouseDownLeft=f;Va.__buttonDown=!0;break;case "mouseUp":null!=this.__mouseDownLeft&&(Va.__buttonDown=!1,0>this.__mouseX||0>this.__mouseY||this.__mouseX>this.stageWidth||this.__mouseY>this.stageHeight?this.__dispatchEvent(Va.__create("releaseOutside",
1,this.__mouseX,this.__mouseY,new qa(this.__mouseX,this.__mouseY),this)):this.__mouseDownLeft==f&&(h="click"),this.__mouseDownLeft=null);break;case "rightMouseDown":this.__mouseDownRight=f;break;case "rightMouseUp":this.__mouseDownRight==f&&(h="rightClick"),this.__mouseDownRight=null}b=qa.__pool.get();this.__dispatchStack(Va.__create(a,c,this.__mouseX,this.__mouseY,f.__globalToLocal(e,b),f),d);null!=h&&(this.__dispatchStack(Va.__create(h,c,this.__mouseX,this.__mouseY,f.__globalToLocal(e,b),f),d),
"mouseUp"==a&&U.__cast(f,Ma).doubleClickEnabled&&(a=Ba.getTimer(),500>a-this.__lastClickTime?(this.__dispatchStack(Va.__create("doubleClick",c,this.__mouseX,this.__mouseY,f.__globalToLocal(e,b),f),d),this.__lastClickTime=0):this.__lastClickTime=a));if("auto"==Ik.__cursor){h=null;if(null!=this.__mouseDownLeft)h=this.__mouseDownLeft.__getCursor();else for(a=0;a<d.length;)if(h=d[a],++a,h=h.__getCursor(),null!=h){this.window.set_cursor(h);break}null==h&&this.window.set_cursor(ji.ARROW)}f!=this.__mouseOverTarget&&
null!=this.__mouseOverTarget&&(a=Va.__create("mouseOut",c,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(e,b),this.__mouseOverTarget),this.__dispatchStack(a,this.__mouseOutStack));h=0;for(var k=this.__rollOutStack;h<k.length;){var n=k[h];++h;-1==d.indexOf(n)&&(L.remove(this.__rollOutStack,n),a=Va.__create("rollOut",c,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(e,b),this.__mouseOverTarget),a.bubbles=!1,this.__dispatchTarget(n,a))}for(h=0;h<d.length;)k=d[h],
++h,-1==this.__rollOutStack.indexOf(k)&&null!=this.__mouseOverTarget&&(k.hasEventListener("rollOver")&&(a=Va.__create("rollOver",c,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(e,b),k),a.bubbles=!1,this.__dispatchTarget(k,a)),(k.hasEventListener("rollOut")||k.hasEventListener("rollOver"))&&this.__rollOutStack.push(k));f!=this.__mouseOverTarget&&(null!=f&&(a=Va.__create("mouseOver",c,this.__mouseX,this.__mouseY,f.__globalToLocal(e,b),f),this.__dispatchStack(a,d)),this.__mouseOverTarget=
f,this.__mouseOutStack=d);null!=this.__dragObject&&(this.__drag(e),c=null,this.__mouseOverTarget==this.__dragObject?(d=this.__dragObject.mouseEnabled,f=this.__dragObject.mouseChildren,this.__dragObject.mouseEnabled=!1,this.__dragObject.mouseChildren=!1,a=[],this.__hitTest(this.__mouseX,this.__mouseY,!0,a,!0,this)&&(c=a[a.length-1]),this.__dragObject.mouseEnabled=d,this.__dragObject.mouseChildren=f):this.__mouseOverTarget!=this&&(c=this.__mouseOverTarget),this.__dragObject.dropTarget=c);qa.__pool.release(e);
qa.__pool.release(b)}},__onMouseWheel:function(a,b,d){var c=this.__mouseX,e=this.__mouseY;a=[];this.__hitTest(this.__mouseX,this.__mouseY,!0,a,!0,this)?d=a[a.length-1]:(d=this,a=[this]);null==d&&(d=this);var f=qa.__pool.get();f.setTo(c,e);c=this.__displayMatrix;e=c.a*c.d-c.b*c.c;if(0==e)f.x=-c.tx,f.y=-c.ty;else{var h=1/e*(c.c*(c.ty-f.y)+c.d*(f.x-c.tx));f.y=1/e*(c.a*(f.y-c.ty)+c.b*(c.tx-f.x));f.x=h}b|=0;this.__dispatchStack(Va.__create("mouseWheel",0,this.__mouseX,this.__mouseY,d.__globalToLocal(f,
f),d,b),a);qa.__pool.release(f)},__onTouch:function(a,b){var d=qa.__pool.get();d.setTo(Math.round(b.x*this.window.__width*this.window.__scale),Math.round(b.y*this.window.__height*this.window.__scale));var c=this.__displayMatrix,e=c.a*c.d-c.b*c.c;if(0==e)d.x=-c.tx,d.y=-c.ty;else{var f=1/e*(c.c*(c.ty-d.y)+c.d*(d.x-c.tx));d.y=1/e*(c.a*(d.y-c.ty)+c.b*(c.tx-d.x));d.x=f}c=d.x;e=d.y;f=[];if(this.__hitTest(c,e,!1,f,!0,this))var h=f[f.length-1];else h=this,f=[this];null==h&&(h=this);var k=b.id;if(this.__touchData.h.hasOwnProperty(k))var n=
this.__touchData.h[k];else n=Le.__pool.get(),n.reset(),n.touch=b,this.__touchData.h[k]=n;var l=null,m=!1;switch(a){case "touchBegin":n.touchDownTarget=h;break;case "touchEnd":n.touchDownTarget==h&&(l="touchTap"),n.touchDownTarget=null,m=!0}var g=qa.__pool.get();b=this.__primaryTouch==b;a=rc.__create(a,null,c,e,h.__globalToLocal(d,g),h);a.touchPointID=k;a.isPrimaryTouchPoint=b;this.__dispatchStack(a,f);null!=l&&(a=rc.__create(l,null,c,e,h.__globalToLocal(d,g),h),a.touchPointID=k,a.isPrimaryTouchPoint=
b,this.__dispatchStack(a,f));l=n.touchOverTarget;h!=l&&null!=l&&(a=rc.__create("touchOut",null,c,e,l.__globalToLocal(d,g),l),a.touchPointID=k,a.isPrimaryTouchPoint=b,this.__dispatchTarget(l,a));for(var p=n.rollOutStack,q=0;q<p.length;){var r=p[q];++q;-1==f.indexOf(r)&&(L.remove(p,r),a=rc.__create("touchRollOut",null,c,e,l.__globalToLocal(d,g),l),a.touchPointID=k,a.isPrimaryTouchPoint=b,a.bubbles=!1,this.__dispatchTarget(r,a))}for(q=0;q<f.length;)r=f[q],++q,-1==p.indexOf(r)&&(r.hasEventListener("touchRollOver")&&
(a=rc.__create("touchRollOver",null,c,e,l.__globalToLocal(d,g),r),a.touchPointID=k,a.isPrimaryTouchPoint=b,a.bubbles=!1,this.__dispatchTarget(r,a)),r.hasEventListener("touchRollOut")&&p.push(r));h!=l&&(null!=h&&(a=rc.__create("touchOver",null,c,e,h.__globalToLocal(d,g),h),a.touchPointID=k,a.isPrimaryTouchPoint=b,a.bubbles=!0,this.__dispatchTarget(h,a)),n.touchOverTarget=h);qa.__pool.release(d);qa.__pool.release(g);m&&(this.__touchData.remove(k),n.reset(),Le.__pool.release(n))},__registerLimeModule:function(a){a.onCreateWindow.add(u(this,
this.__addWindow));a.onUpdate.add(u(this,this.update));a.onExit.add(u(this,this.onModuleExit),!1,0);for(a=gb.devices.iterator();a.hasNext();){var b=a.next();this.__onGamepadConnect(b)}gb.onConnect.add(u(this,this.__onGamepadConnect));nb.onStart.add(u(this,this.onTouchStart));nb.onMove.add(u(this,this.onTouchMove));nb.onEnd.add(u(this,this.onTouchEnd))},__resize:function(){var a=this.stageWidth,b=this.stageHeight,d=this.window.__width*this.window.__scale|0,c=this.window.__height*this.window.__scale|
0;this.__logicalWidth=d;this.__logicalHeight=c;this.__displayMatrix.identity();if(0==this.__logicalWidth&&0==this.__logicalHeight)this.stageWidth=d,this.stageHeight=c;else{this.stageWidth=this.__logicalWidth;this.stageHeight=this.__logicalHeight;var e=Math.min(d/this.stageWidth,c/this.stageHeight),f=Math.round((d-this.stageWidth*e)/2),h=Math.round((c-this.stageHeight*e)/2);this.__displayMatrix.scale(e,e);this.__displayMatrix.translate(f,h)}e=0;for(f=this.stage3Ds;e<f.get_length();)h=f.get(e),++e,
h.__resize(this.stageWidth,this.stageHeight);null!=this.__renderer&&this.__renderer.__resize(d,c);if(this.stageWidth!=a||this.stageHeight!=b)this.__renderDirty=!0,this.__setTransformDirty(),this.__dispatchEvent(new R("resize"))},__setLogicalSize:function(a,b){this.__logicalWidth=a;this.__logicalHeight=b;this.__resize()},__update:function(a,b){a?this.__transformDirty&&(oa.prototype.__update.call(this,!0,b),b&&(this.__transformDirty=!1)):this.__transformDirty||this.__renderDirty?(oa.prototype.__update.call(this,
!1,b),b&&ha.__supportDOM&&(this.__wasDirty=!0)):!this.__renderDirty&&this.__wasDirty&&(oa.prototype.__update.call(this,!1,b),b&&(this.__wasDirty=!1))},set_color:function(a){null==a?(this.__transparent=!0,a=0):this.__transparent=!1;this.__color!=a&&(this.__colorSplit[0]=((a&16711680)>>>16)/255,this.__colorSplit[1]=((a&65280)>>>8)/255,this.__colorSplit[2]=(a&255)/255,this.__colorString="#"+Q.hex(a&16777215,6),this.__renderDirty=!0,this.__color=a);return a},get_focus:function(){return this.__focus},
set_focus:function(a){if(a!=this.__focus){var b=this.__focus;this.__cacheFocus=this.__focus=a;if(null!=b){var d=new Uf("focusOut",!0,!1,a,!1,0),c=[];b.__getInteractive(c);c.reverse();this.__dispatchStack(d,c)}null!=a&&(b=new Uf("focusIn",!0,!1,b,!1,0),d=[],a.__getInteractive(d),d.reverse(),this.__dispatchStack(b,d))}return a},set_height:function(a){return this.get_height()},get_mouseX:function(){return this.__mouseX},get_mouseY:function(){return this.__mouseY},get_quality:function(){return this.__quality},
set_rotation:function(a){return 0},set_scaleX:function(a){return 0},set_scaleY:function(a){return 0},set_transform:function(a){return this.get_transform()},set_width:function(a){return this.get_width()},set_x:function(a){return 0},set_y:function(a){return 0},__class__:Tf});var Ld=function(){ba.call(this);this.__y=this.__x=0;this.visible=!0};m["openfl.display.Stage3D"]=Ld;Ld.__name__="openfl.display.Stage3D";Ld.__super__=ba;Ld.prototype=v(ba.prototype,{context3D:null,visible:null,__contextRequested:null,
__stage:null,__x:null,__y:null,__canvas:null,__renderContext:null,__webgl:null,__createContext:function(a,b){this.__stage=a;if("opengl"==b.__type)this.context3D=new Rb(this,b),this.__dispatchCreate();else if("dom"==b.__type){this.__canvas=window.document.createElement("canvas");this.__canvas.width=a.stageWidth;this.__canvas.height=a.stageHeight;var d=b.__context.attributes;a=Object.prototype.hasOwnProperty.call(d,"background")&&null==d.background;b=Object.prototype.hasOwnProperty.call(d,"colorDepth")?
d.colorDepth:32;d=Object.prototype.hasOwnProperty.call(d,"antialiasing")&&0<d.antialiasing;this.__webgl=gk.getContextWebGL(this.__canvas,{alpha:a||16<b,antialias:d,depth:!0,premultipliedAlpha:!0,stencil:!1,preserveDrawingBuffer:!1});null==this.__webgl&&this.__dispatchError()}},__dispatchError:function(){this.__contextRequested=!1;this.dispatchEvent(new cc("error",!1,!1,"Context3D not available"))},__dispatchCreate:function(){this.__contextRequested&&(this.__contextRequested=!1,this.dispatchEvent(new R("context3DCreate")))},
__renderCairo:function(a,b){this.visible&&this.__contextRequested&&(this.__dispatchError(),this.__contextRequested=!1)},__renderCanvas:function(a,b){this.visible&&this.__contextRequested&&(this.__dispatchError(),this.__contextRequested=!1)},__renderDOM:function(a,b){this.visible&&(this.__contextRequested&&null==this.context3D&&this.__createContext(a,b),null!=this.context3D&&(me.context=ok.fromRenderContext(this.__renderContext),this.__resetContext3DStates()))},__renderGL:function(a,b){this.visible&&
(this.__contextRequested&&null==this.context3D&&this.__createContext(a,b),null!=this.context3D&&(this.__resetContext3DStates(),null!=this.context3D&&(b.__setBlendMode(null),null!=b.__currentShader&&(b.setShader(null),null!=this.context3D.__program&&this.context3D.__program.__use())),fb.debug&&b.gl.getError()))},__resize:function(a,b){null!=this.__canvas&&(this.__canvas.width=a,this.__canvas.height=b)},__resetContext3DStates:function(){this.context3D.__updateBlendFactors();this.context3D.__updateBackbufferViewport();
this.context3D.__updateScissorRectangle();this.context3D.__updateDepthAndStencilState();this.context3D.__updateCulling()},get_x:function(){return this.__x},get_y:function(){return this.__y},__class__:Ld});var $c=function(a,b,d,c,e,f,h,k){null==k&&(k=0);null==h&&(h=0);null==f&&(f=0);null==e&&(e=1);null==c&&(c=1);null==d&&(d=0);null==b&&(b=0);null==a&&(a=0);this.__id=a;this.__matrix=new P;0!=b&&this.set_x(b);0!=d&&this.set_y(d);1!=c&&this.set_scaleX(c);1!=e&&this.set_scaleY(e);0!=f&&this.set_rotation(f);
this.__dirty=!0;this.__length=0;this.__originX=h;this.__originY=k;this.__alpha=1;this.__blendMode=null;this.__visible=!0};m["openfl.display.Tile"]=$c;$c.__name__="openfl.display.Tile";$c.prototype={parent:null,__alpha:null,__blendMode:null,__colorTransform:null,__dirty:null,__id:null,__length:null,__matrix:null,__originX:null,__originY:null,__rect:null,__rotation:null,__rotationCosine:null,__rotationSine:null,__scaleX:null,__scaleY:null,__shader:null,__tileset:null,__visible:null,getBounds:function(a){if(null==
this.get_tileset()){var b=this.parent.__findTileset();if(null==b)return new M;b=b.getRect(this.get_id());if(null==b)return new M}else b=this.get_tileset().getRect(this.get_id());b.x=0;b.y=0;var d=P.__pool.get();if(null!=a&&a!=this){d.copyFrom(this.__getWorldTransform());var c=P.__pool.get();c.copyFrom(a.__getWorldTransform());c.invert();d.concat(c);P.__pool.release(c)}else d.copyFrom(this.__getWorldTransform());b.__transform(b,d);P.__pool.release(d);return b},__findTileset:function(){return null!=
this.get_tileset()?this.get_tileset():this.parent instanceof Md?this.parent.get_tileset():null==this.parent?null:this.parent.__findTileset()},__setRenderDirty:function(){this.__dirty||(this.__dirty=!0,null!=this.parent&&this.parent.__setRenderDirty())},__getWorldTransform:function(){var a=this.get_matrix().clone();null!=this.parent&&a.concat(this.parent.__getWorldTransform());return a},get_alpha:function(){return this.__alpha},set_alpha:function(a){a!=this.__alpha&&(this.__alpha=a,this.__setRenderDirty());
return a},get_colorTransform:function(){return this.__colorTransform},set_colorTransform:function(a){a!=this.__colorTransform&&(this.__colorTransform=a,this.__setRenderDirty());return a},get_id:function(){return this.__id},get_matrix:function(){return this.__matrix},get_originX:function(){return this.__originX},get_originY:function(){return this.__originY},get_rect:function(){return this.__rect},get_rotation:function(){if(null==this.__rotation)if(0==this.__matrix.b&&0==this.__matrix.c)this.__rotationSine=
this.__rotation=0,this.__rotationCosine=1;else{var a=Math.atan2(this.__matrix.d,this.__matrix.c)-Math.PI/2;this.__rotation=180/Math.PI*a;this.__rotationSine=Math.sin(a);this.__rotationCosine=Math.cos(a)}return this.__rotation},set_rotation:function(a){if(a!=this.__rotation){this.__rotation=a;var b=Math.PI/180*a;this.__rotationSine=Math.sin(b);this.__rotationCosine=Math.cos(b);b=this.get_scaleX();var d=this.get_scaleY();this.__matrix.a=this.__rotationCosine*b;this.__matrix.b=this.__rotationSine*b;
this.__matrix.c=-this.__rotationSine*d;this.__matrix.d=this.__rotationCosine*d;this.__setRenderDirty()}return a},get_scaleX:function(){null==this.__scaleX&&(0==this.get_matrix().b?this.__scaleX=this.__matrix.a:this.__scaleX=Math.sqrt(this.__matrix.a*this.__matrix.a+this.__matrix.b*this.__matrix.b));return this.__scaleX},set_scaleX:function(a){if(a!=this.__scaleX){this.__scaleX=a;if(0==this.__matrix.b)this.__matrix.a=a;else{this.get_rotation();var b=this.__rotationSine*a;this.__matrix.a=this.__rotationCosine*
a;this.__matrix.b=b}this.__setRenderDirty()}return a},get_scaleY:function(){null==this.__scaleY&&(this.__scaleY=0==this.__matrix.c?this.get_matrix().d:Math.sqrt(this.__matrix.c*this.__matrix.c+this.__matrix.d*this.__matrix.d));return this.__scaleY},set_scaleY:function(a){if(a!=this.__scaleY){this.__scaleY=a;if(0==this.__matrix.c)this.__matrix.d=a;else{this.get_rotation();var b=this.__rotationCosine*a;this.__matrix.c=-this.__rotationSine*a;this.__matrix.d=b}this.__setRenderDirty()}return a},get_shader:function(){return this.__shader},
get_tileset:function(){return this.__tileset},set_tileset:function(a){a!=this.__tileset&&(this.__tileset=a,this.__setRenderDirty());return a},get_visible:function(){return this.__visible},set_visible:function(a){a!=this.__visible&&(this.__visible=a,this.__setRenderDirty());return a},get_x:function(){return this.__matrix.tx},set_x:function(a){a!=this.__matrix.tx&&(this.__matrix.tx=a,this.__setRenderDirty());return a},get_y:function(){return this.__matrix.ty},set_y:function(a){a!=this.__matrix.ty&&
(this.__matrix.ty=a,this.__setRenderDirty());return a},__class__:$c};var Nd=function(a,b,d,c,e,f,h){null==h&&(h=0);null==f&&(f=0);null==e&&(e=0);null==c&&(c=1);null==d&&(d=1);null==b&&(b=0);null==a&&(a=0);$c.call(this,-1,a,b,d,c,e,f,h);this.__tiles=[];this.__length=0};m["openfl.display.TileContainer"]=Nd;Nd.__name__="openfl.display.TileContainer";Nd.__interfaces__=[Sh];Nd.__super__=$c;Nd.prototype=v($c.prototype,{__tiles:null,addTile:function(a){if(null==a)return null;a.parent==this&&(L.remove(this.__tiles,
a),this.__length--);this.__tiles[this.get_numTiles()]=a;a.parent=this;this.__length++;this.__setRenderDirty();return a},getBounds:function(a){for(var b=new M,d,c=0,e=this.__tiles;c<e.length;)d=e[c],++c,d=d.getBounds(a),b.__expand(d.x,d.y,d.width,d.height);return b},removeTile:function(a){null!=a&&a.parent==this&&(a.parent=null,L.remove(this.__tiles,a),this.__length--,this.__setRenderDirty());return a},removeTileAt:function(a){return 0<=a&&a<this.get_numTiles()?this.removeTile(this.__tiles[a]):null},
setTileIndex:function(a,b){0<=b&&b<=this.get_numTiles()&&a.parent==this&&(L.remove(this.__tiles,a),this.__tiles.splice(b,0,a),this.__setRenderDirty())},get_numTiles:function(){return this.__length},__class__:Nd});var Md=function(a,b,d,c){null==c&&(c=!0);ha.call(this);this.__tileset=d;this.smoothing=c;this.tileColorTransformEnabled=this.tileBlendModeEnabled=this.tileAlphaEnabled=!0;this.__group=new Nd;this.__group.set_tileset(d);this.__width=a;this.__height=b};m["openfl.display.Tilemap"]=Md;Md.__name__=
"openfl.display.Tilemap";Md.__interfaces__=[Sh];Md.__super__=ha;Md.prototype=v(ha.prototype,{tileAlphaEnabled:null,tileBlendModeEnabled:null,tileColorTransformEnabled:null,smoothing:null,__group:null,__tileset:null,__buffer:null,__bufferContext:null,__bufferData:null,__bufferDirty:null,__bufferLength:null,__height:null,__width:null,addTile:function(a){return this.__group.addTile(a)},__enterFrame:function(a){this.__group.__dirty&&!this.__renderDirty&&(this.__renderDirty=!0,this.__setParentRenderDirty())},
__getBounds:function(a,b){var d=M.__pool.get();d.setTo(0,0,this.__width,this.__height);d.__transform(d,b);a.__expand(d.x,d.y,d.width,d.height);M.__pool.release(d)},__hitTest:function(a,b,d,c,e,f){if(!f.get_visible()||this.__isMask||null!=this.get_mask()&&!this.get_mask().__hitTestMask(a,b))return!1;this.__getRenderTransform();d=this.__renderTransform;var h=d.a*d.d-d.b*d.c;d=0==h?-d.tx:1/h*(d.c*(d.ty-b)+d.d*(a-d.tx));h=this.__renderTransform;var k=h.a*h.d-h.b*h.c;a=0==k?-h.ty:1/k*(h.a*(b-h.ty)+h.b*
(h.tx-a));return 0<d&&0<a&&d<=this.__width&&a<=this.__height?(null==c||e||c.push(f),!0):!1},__renderCairo:function(a){},__renderCanvas:function(a){this.__updateCacheBitmap(a,!1);if(null==this.__cacheBitmap||this.__isCacheBitmapRender){if(!(null==this.opaqueBackground&&null==this.__graphics||!this.__renderable||0>=this.__worldAlpha)){if(null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&0<this.get_width()&&0<this.get_height()){a.__setBlendMode(this.__worldBlendMode);a.__pushMaskObject(this);
var b=a.context;a.setTransform(this.__renderTransform,b);var d=this.opaqueBackground;b.fillStyle="rgb("+(d>>>16&255)+","+(d>>>8&255)+","+(d&255)+")";b.fillRect(0,0,this.get_width(),this.get_height());a.__popMaskObject(this)}if(null!=this.__graphics&&this.__renderable&&!(0>=this.__worldAlpha)&&(b=this.__graphics,null!=b)){q.render(b,a);d=b.__width;var c=b.__height;if(null!=b.__canvas){var e=a.context,f=this.__scrollRect;0<d&&0<c&&(null==f||0<f.width&&0<f.height)&&(a.__setBlendMode(this.__worldBlendMode),
a.__pushMaskObject(this),e.globalAlpha=this.__worldAlpha,a.setTransform(b.__worldTransform,e),a.__isDOM&&(f=1/a.pixelRatio,e.scale(f,f)),e.drawImage(b.__canvas,0,0,d,c),a.__popMaskObject(this))}}}!this.__renderable||0==this.__group.__tiles.length||0>=this.__worldAlpha||(b=a.context,a.__setBlendMode(this.__worldBlendMode),a.__pushMaskObject(this),d=M.__pool.get(),d.setTo(0,0,this.__width,this.__height),a.__pushMaskRect(d,this.__renderTransform),a.__allowSmoothing&&this.smoothing||(b.mozImageSmoothingEnabled=
!1,b.msImageSmoothingEnabled=!1,b.imageSmoothingEnabled=!1),Jh.renderTileContainer(this.__group,a,this.__renderTransform,this.__tileset,a.__allowSmoothing&&this.smoothing,this.tileAlphaEnabled,this.__worldAlpha,this.tileBlendModeEnabled,this.__worldBlendMode,null,null,d),a.__allowSmoothing&&this.smoothing||(b.mozImageSmoothingEnabled=!0,b.msImageSmoothingEnabled=!0,b.imageSmoothingEnabled=!0),a.__popMaskRect(),a.__popMaskObject(this),M.__pool.release(d))}else b=this.__cacheBitmap,!b.__renderable||
0>=b.__worldAlpha||(d=a.context,null!=b.__bitmapData&&b.__bitmapData.__isValid&&b.__bitmapData.readable&&(a.__setBlendMode(b.__worldBlendMode),a.__pushMaskObject(b,!1),N.convertToCanvas(b.__bitmapData.image),d.globalAlpha=b.__worldAlpha,c=b.__scrollRect,a.setTransform(b.__renderTransform,d),a.__allowSmoothing&&b.smoothing||(d.mozImageSmoothingEnabled=!1,d.msImageSmoothingEnabled=!1,d.imageSmoothingEnabled=!1),null==c?d.drawImage(b.__bitmapData.image.get_src(),0,0,b.__bitmapData.image.width,b.__bitmapData.image.height):
d.drawImage(b.__bitmapData.image.get_src(),c.x,c.y,c.width,c.height),a.__allowSmoothing&&b.smoothing||(d.mozImageSmoothingEnabled=!0,d.msImageSmoothingEnabled=!0,d.imageSmoothingEnabled=!0),a.__popMaskObject(b,!1)));this.__renderEvent(a)},__renderDOM:function(a){this.__updateCacheBitmap(a,!1);if(null==this.__cacheBitmap||this.__isCacheBitmapRender){null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&0<this.get_width()&&this.get_height();var b=this.__graphics;if(null!=this.stage&&this.__worldVisible&&
this.__renderable&&null!=b){q.render(b,a.__canvasRenderer);if(b.__dirty||this.__worldAlphaChanged||this.__canvas!=b.__canvas)null!=b.__canvas?this.__canvas!=b.__canvas&&(null!=this.__canvas&&a.element.removeChild(this.__canvas),this.__canvas=b.__canvas,this.__context=b.__context,a.__initializeElement(this,this.__canvas)):zd.clear(this,a);if(null!=this.__canvas){a.__pushMaskObject(this);var d=this.__renderTransform;this.__renderTransform=b.__worldTransform;b.__transformDirty&&(b.__transformDirty=!1,
this.__renderTransformChanged=!0);a.__updateClip(this);a.__applyStyle(this,!0,!0,!0);this.__renderTransform=d;a.__popMaskObject(this)}}else zd.clear(this,a);if(null!=this.stage&&this.__worldVisible&&this.__renderable&&0<this.__group.__tiles.length){null==this.__canvas&&(this.__canvas=window.document.createElement("canvas"),this.__context=this.__canvas.getContext("2d"),a.__initializeElement(this,this.__canvas));this.__canvas.width=this.__width;this.__canvas.height=this.__height;a.__canvasRenderer.context=
this.__context;b=a.__canvasRenderer;if(this.__renderable&&0!=this.__group.__tiles.length&&!(0>=this.__worldAlpha)){d=b.context;b.__setBlendMode(this.__worldBlendMode);b.__pushMaskObject(this);var c=M.__pool.get();c.setTo(0,0,this.__width,this.__height);b.__pushMaskRect(c,this.__renderTransform);b.__allowSmoothing&&this.smoothing||(d.mozImageSmoothingEnabled=!1,d.msImageSmoothingEnabled=!1,d.imageSmoothingEnabled=!1);Jh.renderTileContainer(this.__group,b,this.__renderTransform,this.__tileset,b.__allowSmoothing&&
this.smoothing,this.tileAlphaEnabled,this.__worldAlpha,this.tileBlendModeEnabled,this.__worldBlendMode,null,null,c);b.__allowSmoothing&&this.smoothing||(d.mozImageSmoothingEnabled=!0,d.msImageSmoothingEnabled=!0,d.imageSmoothingEnabled=!0);b.__popMaskRect();b.__popMaskObject(this);M.__pool.release(c)}a.__canvasRenderer.context=null;a.__updateClip(this);a.__applyStyle(this,!0,!1,!0)}else uj.clear(this,a)}else this.__renderDOMClear(a),this.__cacheBitmap.stage=this.stage,b=this.__cacheBitmap,null!=b.stage&&
b.__worldVisible&&b.__renderable&&null!=b.__bitmapData&&b.__bitmapData.__isValid&&b.__bitmapData.readable?(a.__pushMaskObject(b),null!=b.__bitmapData.image.buffer.__srcImage?La.renderImage(b,a):La.renderCanvas(b,a),a.__popMaskObject(b)):La.clear(b,a);this.__renderEvent(a)},__renderDOMClear:function(a){uj.clear(this,a)},__renderGL:function(a){this.__updateCacheBitmap(a,!1);if(null==this.__cacheBitmap||this.__isCacheBitmapRender){if(!(null==this.opaqueBackground&&null==this.__graphics||!this.__renderable||
0>=this.__worldAlpha)){if(null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&0<this.get_width()&&0<this.get_height()){a.__setBlendMode(this.__worldBlendMode);a.__pushMaskObject(this);var b=a.__context.webgl,d=M.__pool.get();d.setTo(0,0,this.get_width(),this.get_height());a.__pushMaskRect(d,this.__renderTransform);var c=this.opaqueBackground;b.clearColor((c>>>16&255)/255,(c>>>8&255)/255,(c&255)/255,1);b.clear(b.COLOR_BUFFER_BIT);a.__popMaskRect();a.__popMaskObject(this);M.__pool.release(d)}null!=
this.__graphics&&pd.render(this,a)}W.render(this,a)}else od.render(this.__cacheBitmap,a);this.__renderEvent(a)},__renderGLMask:function(a){if(null!=this.opaqueBackground||null!=this.__graphics)null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&0<this.get_width()&&this.get_height(),null!=this.__graphics&&pd.renderMask(this,a);W.renderMask(this,a)},__shouldCacheHardware:function(a){return!0},__updateCacheBitmap:function(a,b){return null==this.__filters&&"opengl"==a.__type&&null==this.__cacheBitmap?
!1:ha.prototype.__updateCacheBitmap.call(this,a,b)},get_height:function(){return this.__height*Math.abs(this.get_scaleY())},set_height:function(a){this.__height=a|0;return this.__height*Math.abs(this.get_scaleY())},get_tileset:function(){return this.__tileset},set_tileset:function(a){a!=this.__tileset&&(this.__tileset=a,this.__group.set_tileset(a),this.__group.__dirty=!0,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));return a},get_width:function(){return this.__width*Math.abs(this.__scaleX)},
set_width:function(a){this.__width=a|0;return this.__width*Math.abs(this.__scaleX)},__class__:Md});var Hj=function(a,b){this.__bitmapData=a;this.rectData=tb.toFloatVector(null);this.__data=[];if(null!=b)for(a=0;a<b.length;){var d=b[a];++a;this.addRect(d)}};m["openfl.display.Tileset"]=Hj;Hj.__name__="openfl.display.Tileset";Hj.prototype={rectData:null,__bitmapData:null,__data:null,addRect:function(a){if(null==a)return-1;this.rectData.push(a.x);this.rectData.push(a.y);this.rectData.push(a.width);this.rectData.push(a.height);
a=new Ij(a);a.__update(this.__bitmapData);this.__data.push(a);return this.__data.length-1},getRect:function(a){return a<this.__data.length&&0<=a?new M(this.__data[a].x,this.__data[a].y,this.__data[a].width,this.__data[a].height):null},__class__:Hj};var Ij=function(a){null!=a&&(this.x=a.x|0,this.y=a.y|0,this.width=a.width|0,this.height=a.height|0)};m["openfl.display._Tileset.TileData"]=Ij;Ij.__name__="openfl.display._Tileset.TileData";Ij.prototype={height:null,width:null,x:null,y:null,__uvHeight:null,
__uvWidth:null,__uvX:null,__uvY:null,__update:function(a){if(null!=a){var b=a.width;a=a.height;this.__uvX=this.x/b;this.__uvY=this.y/a;this.__uvWidth=(this.x+this.width)/b;this.__uvHeight=(this.y+this.height)/a}},__class__:Ij};var Ze=function(a,b){Of.call(this,a,b);this.stage=new Tf(this,Object.prototype.hasOwnProperty.call(b.context,"background")?b.context.background:16777215);if(Object.prototype.hasOwnProperty.call(b,"parameters"))try{this.stage.get_loaderInfo().parameters=b.parameters}catch(d){fa.lastException=
d}Object.prototype.hasOwnProperty.call(b,"resizable")&&!b.resizable&&this.stage.__setLogicalSize(b.width,b.height);a.addModule(this.stage)};m["openfl.display.Window"]=Ze;Ze.__name__="openfl.display.Window";Ze.__super__=Of;Ze.prototype=v(Of.prototype,{__class__:Ze});var Rb=function(a,b){this.__culling=3;this.driverInfo="OpenGL (Direct blitting)";this.backBufferHeight=this.backBufferWidth=0;ba.call(this);this.__stage3D=a;this.__renderer=b;z.create(this)};m["openfl.display3D.Context3D"]=Rb;Rb.__name__=
"openfl.display3D.Context3D";Rb.__super__=ba;Rb.prototype=v(ba.prototype,{backBufferHeight:null,backBufferWidth:null,driverInfo:null,maxBackBufferHeight:null,maxBackBufferWidth:null,__backBufferAntiAlias:null,__backBufferEnableDepthAndStencil:null,__backBufferWantsBestResolution:null,__culling:null,__fragmentConstants:null,__frameCount:null,__maxAnisotropyTexture2D:null,__positionScale:null,__program:null,__renderer:null,__renderToTexture:null,__rttDepthAndStencil:null,__samplerDirty:null,__samplerTextures:null,
__samplerStates:null,__scissorRectangle:null,__stage3D:null,__stencilCompareMode:null,__stencilRef:null,__stencilReadMask:null,__supportsAnisotropicFiltering:null,__supportsPackedDepthStencil:null,__vertexConstants:null,setCulling:function(a){z.setCulling(this,a)},__updateBackbufferViewport:function(){z.__updateBackbufferViewportTEMP(this)},__updateBlendFactors:function(){z.__updateBlendFactorsTEMP(this)},__updateCulling:function(){this.setCulling(this.__culling)},__updateDepthAndStencilState:function(){z.__updateDepthAndStencilStateTEMP(this)},
__updateScissorRectangle:function(){z.__updateScissorRectangleTEMP(this)},__class__:Rb});var Jk=function(a){this.__context=a;this.__samplerUsageMask=this.__memUsage=0;this.__uniforms=new hb;this.__samplerUniforms=new hb;this.__alphaSamplerUniforms=new hb;this.__alphaSamplerEnabled=[];this.__samplerStates=tb.toObjectVector(null,8)};m["openfl.display3D.Program3D"]=Jk;Jk.__name__="openfl.display3D.Program3D";Jk.prototype={__alphaSamplerEnabled:null,__alphaSamplerUniforms:null,__context:null,__fragmentUniformMap:null,
__memUsage:null,__programID:null,__samplerStates:null,__samplerUniforms:null,__samplerUsageMask:null,__uniforms:null,__vertexUniformMap:null,__use:function(){Ak.use(this,this.__context.__renderer)},__class__:Jk};var Kk=function(a){this.context=a;this.isDirty=!0;this.regDataPointer=new Ih(null,0)};m["openfl.display3D.Uniform"]=Kk;Kk.__name__="openfl.display3D.Uniform";Kk.prototype={location:null,regIndex:null,regCount:null,isDirty:null,context:null,regDataPointer:null,__class__:Kk};var Lk=function(a){this.__uniforms=
a;this.__uniforms.sort(function(a,b){return V.compare(a.regIndex,b.regIndex)});for(var b=a=0,d=this.__uniforms;b<d.length;){var c=d[b];++b;c.regIndex+c.regCount>a&&(a=c.regIndex+c.regCount)}this.__registerLookup=tb.toObjectVector(null,a);a=0;for(b=this.__uniforms;a<b.length;){d=b[a];++a;c=0;for(var e=d.regCount;c<e;){var f=c++;this.__registerLookup.set(d.regIndex+f,d)}}this.__anyDirty=this.__allDirty=!0};m["openfl.display3D.UniformMap"]=Lk;Lk.__name__="openfl.display3D.UniformMap";Lk.prototype={__allDirty:null,
__anyDirty:null,__registerLookup:null,__uniforms:null,markAllDirty:function(){this.__anyDirty=this.__allDirty=!0},__class__:Lk};var dc=function(a){ba.call(this);this.__context=a;Zc.create(this,this.__context.__renderer)};m["openfl.display3D.textures.TextureBase"]=dc;dc.__name__="openfl.display3D.textures.TextureBase";dc.__super__=ba;dc.prototype=v(ba.prototype,{__context:null,__format:null,__height:null,__internalFormat:null,__optimizeForRenderToTexture:null,__streamingLevels:null,__textureContext:null,
__textureID:null,__textureTarget:null,__width:null,__class__:dc});var Jj=function(a,b,d,c,e){dc.call(this,a);this.__size=b;this.__optimizeForRenderToTexture=c;this.__streamingLevels=e;zk.create(this,this.__context.__renderer)};m["openfl.display3D.textures.CubeTexture"]=Jj;Jj.__name__="openfl.display3D.textures.CubeTexture";Jj.__super__=dc;Jj.prototype=v(dc.prototype,{__size:null,__uploadedSides:null,__class__:Jj});var Nh=function(a,b,d,c,e){dc.call(this,a);this.__width=b;this.__height=d;this.__optimizeForRenderToTexture=
e;Oh.create(this,this.__context.__renderer)};m["openfl.display3D.textures.RectangleTexture"]=Nh;Nh.__name__="openfl.display3D.textures.RectangleTexture";Nh.__super__=dc;Nh.prototype=v(dc.prototype,{__class__:Nh});var Mh=function(a,b,d,c,e,f){dc.call(this,a);this.__width=b;this.__height=d;this.__optimizeForRenderToTexture=e;this.__streamingLevels=f;Bk.create(this,this.__context.__renderer)};m["openfl.display3D.textures.Texture"]=Mh;Mh.__name__="openfl.display3D.textures.Texture";Mh.__super__=dc;Mh.prototype=
v(dc.prototype,{__class__:Mh});var Kj=function(a){dc.call(this,a);Ck.create(this,this.__context.__renderer)};m["openfl.display3D.textures.VideoTexture"]=Kj;Kj.__name__="openfl.display3D.textures.VideoTexture";Kj.__super__=dc;Kj.prototype=v(dc.prototype,{__class__:Kj});var Oa=function(a,b){null==b&&(b=0);null==a&&(a="");this.message=a;this.errorID=b;this.name="Error"};m["openfl.errors.Error"]=Oa;Oa.__name__="openfl.errors.Error";Oa.prototype={errorID:null,message:null,name:null,toString:function(){return null!=
this.message?this.message:"Error"},__class__:Oa};var bf=function(a){null==a&&(a="");Oa.call(this,a);this.name="ArgumentError"};m["openfl.errors.ArgumentError"]=bf;bf.__name__="openfl.errors.ArgumentError";bf.__super__=Oa;bf.prototype=v(Oa.prototype,{__class__:bf});var Pe=function(a){null==a&&(a="");Oa.call(this,a);this.name="IOError"};m["openfl.errors.IOError"]=Pe;Pe.__name__="openfl.errors.IOError";Pe.__super__=Oa;Pe.prototype=v(Oa.prototype,{__class__:Pe});var ie=function(a,b){Pe.call(this,"End of file was encountered");
this.name="EOFError";this.errorID=2030};m["openfl.errors.EOFError"]=ie;ie.__name__="openfl.errors.EOFError";ie.__super__=Pe;ie.prototype=v(Pe.prototype,{__class__:ie});var Yc=function(a){null==a&&(a="");Oa.call(this,a,0);this.name="IllegalOperationError"};m["openfl.errors.IllegalOperationError"]=Yc;Yc.__name__="openfl.errors.IllegalOperationError";Yc.__super__=Oa;Yc.prototype=v(Oa.prototype,{__class__:Yc});var af=function(a){null==a&&(a="");Oa.call(this,a,0);this.name="TypeError"};m["openfl.errors.TypeError"]=
af;af.__name__="openfl.errors.TypeError";af.__super__=Oa;af.prototype=v(Oa.prototype,{__class__:af});var Qe=function(a,b,d,c){null==c&&(c=!1);null==d&&(d=!1);null==b&&(b=!1);R.call(this,a,b,d);this.activating=c};m["openfl.events.ActivityEvent"]=Qe;Qe.__name__="openfl.events.ActivityEvent";Qe.__super__=R;Qe.prototype=v(R.prototype,{activating:null,__class__:Qe});var xd=function(a,b,d,c){null==c&&(c="");null==d&&(d=!1);null==b&&(b=!1);R.call(this,a,b,d);this.text=c};m["openfl.events.TextEvent"]=xd;
xd.__name__="openfl.events.TextEvent";xd.__super__=R;xd.prototype=v(R.prototype,{text:null,__class__:xd});var cc=function(a,b,d,c,e){null==e&&(e=0);null==c&&(c="");null==d&&(d=!1);null==b&&(b=!1);xd.call(this,a,b,d,c);this.errorID=e};m["openfl.events.ErrorEvent"]=cc;cc.__name__="openfl.events.ErrorEvent";cc.__super__=xd;cc.prototype=v(xd.prototype,{errorID:null,__class__:cc});var eg=function(a){this.active=!1;this.reset(a)};m["openfl.events._EventDispatcher.DispatchIterator"]=eg;eg.__name__="openfl.events._EventDispatcher.DispatchIterator";
eg.prototype={active:null,index:null,isCopy:null,list:null,copy:function(){this.isCopy||(this.list=this.list.slice(),this.isCopy=!0)},hasNext:function(){return this.index<this.list.length},next:function(){return this.list[this.index++]},remove:function(a,b){if(this.active)if(this.isCopy){b=this.index;for(var d=this.list.length;b<d;){var c=b++;if(this.list[c]==a){this.list.splice(c,1);break}}}else b<this.index&&this.index--},reset:function(a){this.list=a;this.isCopy=!1;this.index=0},start:function(){this.active=
!0},stop:function(){this.active=!1},__class__:eg};var dg=function(a,b,d){this.callback=a;this.useCapture=b;this.priority=d};m["openfl.events._EventDispatcher.Listener"]=dg;dg.__name__="openfl.events._EventDispatcher.Listener";dg.prototype={callback:null,priority:null,useCapture:null,match:function(a,b){return V.compareMethods(this.callback,a)?this.useCapture==b:!1},__class__:dg};var Uf=function(a,b,d,c,e,f){null==f&&(f=0);null==e&&(e=!1);null==d&&(d=!1);null==b&&(b=!1);R.call(this,a,b,d);this.keyCode=
f;this.shiftKey=e;this.relatedObject=c};m["openfl.events.FocusEvent"]=Uf;Uf.__name__="openfl.events.FocusEvent";Uf.__super__=R;Uf.prototype=v(R.prototype,{keyCode:null,relatedObject:null,shiftKey:null,__class__:Uf});var Rd=function(a,b,d,c,e){null==e&&(e=!1);null==c&&(c=!1);null==d&&(d=!1);null==b&&(b=!1);Qe.call(this,a,b,d);this.fullScreen=c;this.interactive=e};m["openfl.events.FullScreenEvent"]=Rd;Rd.__name__="openfl.events.FullScreenEvent";Rd.__super__=Qe;Rd.prototype=v(Qe.prototype,{fullScreen:null,
interactive:null,__class__:Rd});var Re=function(a,b,d,c){null==d&&(d=!1);null==b&&(b=!0);R.call(this,a,b,d);this.device=c};m["openfl.events.GameInputEvent"]=Re;Re.__name__="openfl.events.GameInputEvent";Re.__super__=R;Re.prototype=v(R.prototype,{device:null,__class__:Re});var Wh=function(a,b,d,c,e){null==e&&(e=!1);null==c&&(c=0);null==d&&(d=!1);null==b&&(b=!1);this.status=c;this.redirected=e;R.call(this,a,b,d)};m["openfl.events.HTTPStatusEvent"]=Wh;Wh.__name__="openfl.events.HTTPStatusEvent";Wh.__super__=
R;Wh.prototype=v(R.prototype,{redirected:null,responseHeaders:null,responseURL:null,status:null,__class__:Wh});var Vf=function(a,b,d,c,e){null==e&&(e=0);null==c&&(c="");null==d&&(d=!1);null==b&&(b=!0);cc.call(this,a,b,d,c,e)};m["openfl.events.IOErrorEvent"]=Vf;Vf.__name__="openfl.events.IOErrorEvent";Vf.__super__=cc;Vf.prototype=v(cc.prototype,{__class__:Vf});var Vh=function(a,b,d,c,e,f,h,k,n,l,m){null==m&&(m=!1);null==l&&(l=!1);null==n&&(n=!1);null==k&&(k=!1);null==h&&(h=!1);null==e&&(e=0);null==
c&&(c=0);null==d&&(d=!1);null==b&&(b=!1);R.call(this,a,b,d);this.charCode=c;this.keyCode=e;this.keyLocation=null!=f?f:0;this.ctrlKey=h;this.altKey=k;this.shiftKey=n;this.controlKey=l;this.commandKey=m};m["openfl.events.KeyboardEvent"]=Vh;Vh.__name__="openfl.events.KeyboardEvent";Vh.__super__=R;Vh.prototype=v(R.prototype,{altKey:null,charCode:null,ctrlKey:null,commandKey:null,controlKey:null,keyCode:null,keyLocation:null,shiftKey:null,__class__:Vh});var Va=function(a,b,d,c,e,f,h,k,n,l,m,g,p){null==
p&&(p=0);null==g&&(g=!1);null==m&&(m=0);null==l&&(l=!1);null==n&&(n=!1);null==k&&(k=!1);null==h&&(h=!1);null==e&&(e=0);null==c&&(c=0);null==d&&(d=!1);null==b&&(b=!0);R.call(this,a,b,d);this.shiftKey=n;this.altKey=k;this.ctrlKey=h;this.bubbles=b;this.relatedObject=f;this.delta=m;this.localX=c;this.localY=e;this.buttonDown=l;this.commandKey=g;this.clickCount=p;this.isRelatedObjectInaccessible=!1;this.stageY=this.stageX=NaN};m["openfl.events.MouseEvent"]=Va;Va.__name__="openfl.events.MouseEvent";Va.__create=
function(a,b,d,c,e,f,h){null==h&&(h=0);a=new Va(a,!0,!1,e.x,e.y,null,Va.__ctrlKey,Va.__altKey,Va.__shiftKey,Va.__buttonDown,h,Va.__commandKey);a.stageX=d;a.stageY=c;a.target=f;return a};Va.__super__=R;Va.prototype=v(R.prototype,{altKey:null,buttonDown:null,commandKey:null,clickCount:null,ctrlKey:null,delta:null,isRelatedObjectInaccessible:null,localX:null,localY:null,relatedObject:null,shiftKey:null,stageX:null,stageY:null,__class__:Va});var Se=function(a,b,d,c){null==d&&(d=!1);null==b&&(b=!1);this.info=
c;R.call(this,a,b,d)};m["openfl.events.NetStatusEvent"]=Se;Se.__name__="openfl.events.NetStatusEvent";Se.__super__=R;Se.prototype=v(R.prototype,{info:null,__class__:Se});var Oe=function(a,b,d,c,e){null==e&&(e=0);null==c&&(c=0);null==d&&(d=!1);null==b&&(b=!1);R.call(this,a,b,d);this.bytesLoaded=c;this.bytesTotal=e};m["openfl.events.ProgressEvent"]=Oe;Oe.__name__="openfl.events.ProgressEvent";Oe.__super__=R;Oe.prototype=v(R.prototype,{bytesLoaded:null,bytesTotal:null,__class__:Oe});var jg=function(a,
b,d,c,e,f){null==f&&(f=!0);null==d&&(d=!1);null==b&&(b=!1);R.call(this,a,b,d);this.objectMatrix=c;this.objectColorTransform=e;this.allowSmoothing=f};m["openfl.events.RenderEvent"]=jg;jg.__name__="openfl.events.RenderEvent";jg.__super__=R;jg.prototype=v(R.prototype,{allowSmoothing:null,objectColorTransform:null,objectMatrix:null,renderer:null,__class__:jg});var Xh=function(a,b,d,c,e){null==e&&(e=0);null==c&&(c="");null==d&&(d=!1);null==b&&(b=!1);cc.call(this,a,b,d,c,e)};m["openfl.events.SecurityErrorEvent"]=
Xh;Xh.__name__="openfl.events.SecurityErrorEvent";Xh.__super__=cc;Xh.prototype=v(cc.prototype,{__class__:Xh});var Te=function(a,b,d){null==d&&(d=!1);null==b&&(b=!1);R.call(this,a,b,d)};m["openfl.events.TimerEvent"]=Te;Te.__name__="openfl.events.TimerEvent";Te.__super__=R;Te.prototype=v(R.prototype,{__class__:Te});var rc=function(a,b,d,c,e,f,h,k,n,l,m,g,p,q,r,t,u,v,w,y){null==t&&(t=!1);null==r&&(r=!1);null==q&&(q=!1);null==p&&(p=!1);null==g&&(g=!1);null==l&&(l=0);null==n&&(n=0);null==k&&(k=0);null==
h&&(h=0);null==f&&(f=0);null==e&&(e=!1);null==c&&(c=0);null==d&&(d=!1);null==b&&(b=!0);R.call(this,a,b,d);this.touchPointID=c;this.isPrimaryTouchPoint=e;this.localX=f;this.localY=h;this.sizeX=k;this.sizeY=n;this.pressure=l;this.relatedObject=m;this.ctrlKey=g;this.altKey=p;this.shiftKey=q;this.commandKey=r;this.controlKey=t;this.stageY=this.stageX=NaN};m["openfl.events.TouchEvent"]=rc;rc.__name__="openfl.events.TouchEvent";rc.__create=function(a,b,d,c,e,f){a=new rc(a,!0,!1,0,!0,e.x,e.y,1,1,1);a.stageX=
d;a.stageY=c;a.target=f;return a};rc.__super__=R;rc.prototype=v(R.prototype,{altKey:null,commandKey:null,controlKey:null,ctrlKey:null,isPrimaryTouchPoint:null,localX:null,localY:null,pressure:null,relatedObject:null,shiftKey:null,sizeX:null,sizeY:null,stageX:null,stageY:null,touchPointID:null,__class__:rc});var Uh=function(a,b,d,c){null==d&&(d=!0);null==b&&(b=!0);cc.call(this,a,b,d);this.error=c};m["openfl.events.UncaughtErrorEvent"]=Uh;Uh.__name__="openfl.events.UncaughtErrorEvent";Uh.__super__=
cc;Uh.prototype=v(cc.prototype,{error:null,__class__:Uh});var Th=function(){ba.call(this)};m["openfl.events.UncaughtErrorEvents"]=Th;Th.__name__="openfl.events.UncaughtErrorEvents";Th.__super__=ba;Th.prototype=v(ba.prototype,{__class__:Th});var ib=function(){this.__leftExtension=this.__bottomExtension=0;this.__needSecondBitmapData=!0;this.__numShaderPasses=0;this.__preserveObject=!1;this.__rightExtension=0;this.__shaderBlendMode=10;this.__topExtension=0};m["openfl.filters.BitmapFilter"]=ib;ib.__name__=
"openfl.filters.BitmapFilter";ib.prototype={__bottomExtension:null,__leftExtension:null,__needSecondBitmapData:null,__numShaderPasses:null,__preserveObject:null,__renderDirty:null,__rightExtension:null,__shaderBlendMode:null,__topExtension:null,__applyFilter:function(a,b,d,c){return b},__initShader:function(a,b){return null},__class__:ib};var oc=function(a){null==this.__glFragmentSource&&(this.__glFragmentSource="varying vec2 openfl_TextureCoordv;\n\t\t\n\t\tuniform sampler2D openfl_Texture;\n\t\tuniform vec2 openfl_TextureSize;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tgl_FragColor = texture2D (openfl_Texture, openfl_TextureCoordv);\n\t\t\t\n\t\t}");
null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\t\n\t\tvarying vec2 openfl_TextureCoordv;\n\t\t\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\t\t\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\t\n\t\t}");$a.call(this,a);this.__isGenerated=!0;this.__initGL()};m["openfl.filters.BitmapFilterShader"]=
oc;oc.__name__="openfl.filters.BitmapFilterShader";oc.__super__=$a;oc.prototype=v($a.prototype,{openfl_Position:null,openfl_TextureCoord:null,openfl_Matrix:null,openfl_TextureSize:null,openfl_Texture:null,__class__:oc});var gd={};m["openfl.filters._BitmapFilterType.BitmapFilterType_Impl_"]=gd;gd.__name__="openfl.filters._BitmapFilterType.BitmapFilterType_Impl_";gd.toString=function(a){switch(a){case 0:return"full";case 1:return"inner";case 2:return"outer";default:return null}};var Yh=function(){null==
this.__glFragmentSource&&(this.__glFragmentSource="uniform sampler2D openfl_Texture;\n\t\t\n\t\tvarying vec2 vBlurCoords[7];\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvec4 sum = vec4(0.0);\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[0]) * 0.00443;\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[1]) * 0.05399;\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[2]) * 0.24197;\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[3]) * 0.39894;\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[4]) * 0.24197;\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[5]) * 0.05399;\n\t\t\tsum += texture2D(openfl_Texture, vBlurCoords[6]) * 0.00443;\n\t\t\t\n\t\t\tgl_FragColor = sum;\n\t\t\t\n\t\t}");
null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\t\n\t\tuniform mat4 openfl_Matrix;\n\t\t\n\t\tuniform vec2 uRadius;\n\t\tvarying vec2 vBlurCoords[7];\n\t\tuniform vec2 uTextureSize;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\t\n\t\t\tvec2 r = uRadius / uTextureSize;\n\t\t\tvBlurCoords[0] = openfl_TextureCoord - r * 1.0;\n\t\t\tvBlurCoords[1] = openfl_TextureCoord - r * 0.75;\n\t\t\tvBlurCoords[2] = openfl_TextureCoord - r * 0.5;\n\t\t\tvBlurCoords[3] = openfl_TextureCoord;\n\t\t\tvBlurCoords[4] = openfl_TextureCoord + r * 0.5;\n\t\t\tvBlurCoords[5] = openfl_TextureCoord + r * 0.75;\n\t\t\tvBlurCoords[6] = openfl_TextureCoord + r * 1.0;\n\t\t\t\n\t\t}");
oc.call(this);this.uRadius.value=[0,0];this.__isGenerated=!0;this.__initGL()};m["openfl.filters._BlurFilter.BlurShader"]=Yh;Yh.__name__="openfl.filters._BlurFilter.BlurShader";Yh.__super__=oc;Yh.prototype=v(oc.prototype,{__update:function(){this.uTextureSize.value=[this.__texture.input.width,this.__texture.input.height];oc.prototype.__update.call(this)},uRadius:null,uTextureSize:null,__class__:Yh});var vc=function(a,b,d){null==d&&(d=1);null==b&&(b=4);null==a&&(a=4);ib.call(this);this.set_blurX(a);
this.set_blurY(b);this.set_quality(d);this.__needSecondBitmapData=!0;this.__preserveObject=!1;this.__renderDirty=!0};m["openfl.filters.BlurFilter"]=vc;vc.__name__="openfl.filters.BlurFilter";vc.__super__=ib;vc.prototype=v(ib.prototype,{__blurX:null,__blurY:null,__horizontalPasses:null,__quality:null,__verticalPasses:null,__applyFilter:function(a,b,d,c){return xa.gaussianBlur(a.image,b.image,d.__toLimeRectangle(),c.__toLimeVector2(),this.__blurX,this.__blurY,this.__quality)==a.image?a:b},__initShader:function(a,
b){b<=this.__horizontalPasses?(a=Math.pow(.5,b>>1),vc.__blurShader.uRadius.value[0]=this.get_blurX()*a,vc.__blurShader.uRadius.value[1]=0):(a=Math.pow(.5,b-this.__horizontalPasses>>1),vc.__blurShader.uRadius.value[0]=0,vc.__blurShader.uRadius.value[1]=this.get_blurY()*a);return vc.__blurShader},get_blurX:function(){return this.__blurX},set_blurX:function(a){a!=this.__blurX&&(this.__blurX=a,this.__renderDirty=!0,this.__rightExtension=this.__leftExtension=0<a?Math.ceil(a):0);return a},get_blurY:function(){return this.__blurY},
set_blurY:function(a){a!=this.__blurY&&(this.__blurY=a,this.__renderDirty=!0,this.__bottomExtension=this.__topExtension=0<a?Math.ceil(a):0);return a},set_quality:function(a){this.__horizontalPasses=0>=this.__blurX?0:Math.round(a/4*this.__blurX)+1;this.__verticalPasses=0>=this.__blurY?0:Math.round(a/4*this.__blurY)+1;this.__numShaderPasses=this.__horizontalPasses+this.__verticalPasses;a!=this.__quality&&(this.__renderDirty=!0);return this.__quality=a},__class__:vc});var Zh=function(){null==this.__glFragmentSource&&
(this.__glFragmentSource="varying vec2 openfl_TextureCoordv;\n\t\tuniform sampler2D openfl_Texture;\n\t\t\n\t\tuniform mat4 uMultipliers;\n\t\tuniform vec4 uOffsets;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvec4 color = texture2D (openfl_Texture, openfl_TextureCoordv);\n\t\t\t\n\t\t\tif (color.a == 0.0) {\n\t\t\t\t\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\t\t\t\tcolor = uOffsets + color * uMultipliers;\n\t\t\t\t\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a, color.a);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}");
null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\t\n\t\tvarying vec2 openfl_TextureCoordv;\n\t\t\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\topenfl_TextureCoordv = openfl_TextureCoord;\n\t\t\n\t\tgl_Position = openfl_Matrix * openfl_Position;\n\n\t\t\t\n\t\t}");oc.call(this);this.uMultipliers.value=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this.uOffsets.value=
[0,0,0,0];this.__isGenerated=!0;this.__initGL()};m["openfl.filters._ColorMatrixFilter.ColorMatrixShader"]=Zh;Zh.__name__="openfl.filters._ColorMatrixFilter.ColorMatrixShader";Zh.__super__=oc;Zh.prototype=v(oc.prototype,{init:function(a){var b=this.uMultipliers.value,d=this.uOffsets.value;b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];b[4]=a[5];b[5]=a[6];b[6]=a[7];b[7]=a[8];b[8]=a[10];b[9]=a[11];b[10]=a[12];b[11]=a[13];b[12]=a[15];b[13]=a[16];b[14]=a[17];b[15]=a[18];d[0]=a[4]/255;d[1]=a[9]/255;d[2]=a[14]/
255;d[3]=a[19]/255},uMultipliers:null,uOffsets:null,__class__:Zh});var hd=function(a){ib.call(this);this.set_matrix(a);this.__numShaderPasses=1;this.__needSecondBitmapData=!1};m["openfl.filters.ColorMatrixFilter"]=hd;hd.__name__="openfl.filters.ColorMatrixFilter";hd.__super__=ib;hd.prototype=v(ib.prototype,{__matrix:null,__applyFilter:function(a,b,d,c){var e=b.image,f=a.image;N.convertToData(e);N.convertToData(f);var h=e.get_data(),k=f.get_data(),n=c.x-d.x|0;c=c.y-d.y|0;b=4*b.width;var l=4*a.width,
m=e.buffer.format,g=f.buffer.format;e=e.buffer.premultiplied;f=f.buffer.premultiplied;for(var p,q=0,r,t,u=d.y|0,v=d.height|0;u<v;)for(var w=u++,z=d.x|0,B=d.width|0;z<B;){t=z++;r=w*b+4*t;t=(w+n)*l+4*(t+c);switch(m){case 0:p=(h[r]&255)<<24|(h[r+1]&255)<<16|(h[r+2]&255)<<8|h[r+3]&255;break;case 1:p=(h[r+1]&255)<<24|(h[r+2]&255)<<16|(h[r+3]&255)<<8|h[r]&255;break;case 2:p=(h[r+2]&255)<<24|(h[r+1]&255)<<16|(h[r]&255)<<8|h[r+3]&255}e&&0!=(p&255)&&255!=(p&255)&&(y.unmult=255/(p&255),p=(y.__clamp[Math.round((p>>>
24&255)*y.unmult)]&255)<<24|(y.__clamp[Math.round((p>>>16&255)*y.unmult)]&255)<<16|(y.__clamp[Math.round((p>>>8&255)*y.unmult)]&255)<<8|p&255);0==(p&255)?q=0:(q=((Math.max(0,Math.min(this.__matrix[0]*(p>>>24&255)+this.__matrix[1]*(p>>>16&255)+this.__matrix[2]*(p>>>8&255)+this.__matrix[3]*(p&255)+this.__matrix[4],255))|0)&255)<<24|(q>>>16&255)<<16|(q>>>8&255)<<8|q&255,q=(q>>>24&255)<<24|((Math.max(0,Math.min(this.__matrix[5]*(p>>>24&255)+this.__matrix[6]*(p>>>16&255)+this.__matrix[7]*(p>>>8&255)+this.__matrix[8]*
(p&255)+this.__matrix[9],255))|0)&255)<<16|(q>>>8&255)<<8|q&255,q=(q>>>24&255)<<24|(q>>>16&255)<<16|((Math.max(0,Math.min(this.__matrix[10]*(p>>>24&255)+this.__matrix[11]*(p>>>16&255)+this.__matrix[12]*(p>>>8&255)+this.__matrix[13]*(p&255)+this.__matrix[14],255))|0)&255)<<8|q&255,q=(q>>>24&255)<<24|(q>>>16&255)<<16|(q>>>8&255)<<8|(Math.max(0,Math.min(this.__matrix[15]*(p>>>24&255)+this.__matrix[16]*(p>>>16&255)+this.__matrix[17]*(p>>>8&255)+this.__matrix[18]*(p&255)+this.__matrix[19],255))|0)&255);
f&&(0==(q&255)?0!=q&&(q=0):255!=(q&255)&&(y.a16=y.__alpha16[q&255],q=((q>>>24&255)*y.a16>>16&255)<<24|((q>>>16&255)*y.a16>>16&255)<<16|((q>>>8&255)*y.a16>>16&255)<<8|q&255));switch(g){case 0:k[t]=q>>>24&255;k[t+1]=q>>>16&255;k[t+2]=q>>>8&255;k[t+3]=q&255;break;case 1:k[t]=q&255;k[t+1]=q>>>24&255;k[t+2]=q>>>16&255;k[t+3]=q>>>8&255;break;case 2:k[t]=q>>>8&255,k[t+1]=q>>>16&255,k[t+2]=q>>>24&255,k[t+3]=q&255}}a.image.dirty=!0;return a},__initShader:function(a,b){hd.__colorMatrixShader.init(this.get_matrix());
return hd.__colorMatrixShader},get_matrix:function(){return this.__matrix},set_matrix:function(a){null==a&&(a=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);return this.__matrix=a},__class__:hd});var Fe=function(a,b,d,c,e,f,h,k,n,l,m){null==m&&(m=!1);null==l&&(l=!1);null==n&&(n=!1);null==k&&(k=1);null==h&&(h=1);null==f&&(f=4);null==e&&(e=4);null==c&&(c=1);null==d&&(d=0);null==b&&(b=45);null==a&&(a=4);ib.call(this);this.__offsetY=this.__offsetX=0;this.__distance=a;this.__angle=b;this.__color=d;this.__alpha=
c;this.__blurX=e;this.__blurY=f;this.__strength=h;this.__quality=k;this.__inner=n;this.__knockout=l;this.__hideObject=m;this.__updateSize();this.__needSecondBitmapData=!0;this.__preserveObject=!this.__hideObject;this.__renderDirty=!0};m["openfl.filters.DropShadowFilter"]=Fe;Fe.__name__="openfl.filters.DropShadowFilter";Fe.__super__=ib;Fe.prototype=v(ib.prototype,{__alpha:null,__angle:null,__blurX:null,__blurY:null,__color:null,__distance:null,__hideObject:null,__inner:null,__knockout:null,__offsetX:null,
__offsetY:null,__quality:null,__strength:null,__applyFilter:function(a,b,d,c){b.colorTransform(b.rect,new Ca(0,0,0,this.__alpha,this.__color>>16&255,this.__color>>8&255,this.__color&255,0));c.x+=this.__offsetX;c.y+=this.__offsetY;return xa.gaussianBlur(a.image,b.image,d.__toLimeRectangle(),c.__toLimeVector2(),this.__blurX,this.__blurY,this.__quality,this.__strength)==a.image?a:b},__updateSize:function(){this.__offsetX=this.__distance*Math.cos(this.__angle*Math.PI/180)|0;this.__offsetY=this.__distance*
Math.sin(this.__angle*Math.PI/180)|0;this.__topExtension=Math.ceil((0>this.__offsetY?-this.__offsetY:0)+this.__blurY);this.__bottomExtension=Math.ceil((0<this.__offsetY?this.__offsetY:0)+this.__blurY);this.__leftExtension=Math.ceil((0>this.__offsetX?-this.__offsetX:0)+this.__blurX);this.__rightExtension=Math.ceil((0<this.__offsetX?this.__offsetX:0)+this.__blurX)},__class__:Fe});var $h=function(){null==this.__glFragmentSource&&(this.__glFragmentSource="uniform sampler2D openfl_Texture;\n\t\t\n\t\tuniform vec4 uColor;\n\t\t\n\t\tvarying vec2 vBlurCoords[7];\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tfloat a = 0.0;\n\t\t\ta += texture2D(openfl_Texture, vBlurCoords[0]).a * 0.00443;\n\t\t\ta += texture2D(openfl_Texture, vBlurCoords[1]).a * 0.05399;\n\t\t\ta += texture2D(openfl_Texture, vBlurCoords[2]).a * 0.24197;\n\t\t\ta += texture2D(openfl_Texture, vBlurCoords[3]).a * 0.39894;\n\t\t\ta += texture2D(openfl_Texture, vBlurCoords[4]).a * 0.24197;\n\t\t\ta += texture2D(openfl_Texture, vBlurCoords[5]).a * 0.05399;\n\t\t\ta += texture2D(openfl_Texture, vBlurCoords[6]).a * 0.00443;\n\t\t\ta *= uColor.a;\n\t\t\t\n\t\t\tgl_FragColor = vec4(uColor.rgb * a, a);\n\t\t\t\n\t\t}");
null==this.__glVertexSource&&(this.__glVertexSource="attribute vec4 openfl_Position;\n\t\tattribute vec2 openfl_TextureCoord;\n\t\t\n\t\tuniform mat4 openfl_Matrix;\n\t\tuniform vec2 openfl_TextureSize;\n\t\t\n\t\tuniform vec2 uRadius;\n\t\tvarying vec2 vBlurCoords[7];\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tgl_Position = openfl_Matrix * openfl_Position;\n\t\t\t\n\t\t\tvec2 r = uRadius / openfl_TextureSize;\n\t\t\tvBlurCoords[0] = openfl_TextureCoord - r * 1.0;\n\t\t\tvBlurCoords[1] = openfl_TextureCoord - r * 0.75;\n\t\t\tvBlurCoords[2] = openfl_TextureCoord - r * 0.5;\n\t\t\tvBlurCoords[3] = openfl_TextureCoord;\n\t\t\tvBlurCoords[4] = openfl_TextureCoord + r * 0.5;\n\t\t\tvBlurCoords[5] = openfl_TextureCoord + r * 0.75;\n\t\t\tvBlurCoords[6] = openfl_TextureCoord + r * 1.0;\n\t\t\t\n\t\t}");
oc.call(this);this.uRadius.value=[0,0];this.uColor.value=[0,0,0,0];this.__isGenerated=!0;this.__initGL()};m["openfl.filters._GlowFilter.GlowShader"]=$h;$h.__name__="openfl.filters._GlowFilter.GlowShader";$h.__super__=oc;$h.prototype=v(oc.prototype,{uRadius:null,uColor:null,__class__:$h});var yb=function(a,b,d,c,e,f,h,k){null==k&&(k=!1);null==h&&(h=!1);null==f&&(f=1);null==e&&(e=2);null==c&&(c=6);null==d&&(d=6);null==b&&(b=1);null==a&&(a=16711680);ib.call(this);this.__color=a;this.__alpha=b;this.set_blurX(d);
this.set_blurY(c);this.__strength=e;this.set_quality(f);this.__inner=h;this.__knockout=k;this.__renderDirty=this.__preserveObject=this.__needSecondBitmapData=!0};m["openfl.filters.GlowFilter"]=yb;yb.__name__="openfl.filters.GlowFilter";yb.__super__=ib;yb.prototype=v(ib.prototype,{__alpha:null,__blurX:null,__blurY:null,__color:null,__horizontalPasses:null,__inner:null,__knockout:null,__quality:null,__strength:null,__verticalPasses:null,__applyFilter:function(a,b,d,c){b.colorTransform(b.rect,new Ca(0,
0,0,this.__alpha,this.__color>>16&255,this.__color>>8&255,this.__color&255,0));return xa.gaussianBlur(a.image,b.image,d.__toLimeRectangle(),c.__toLimeVector2(),this.__blurX,this.__blurY,this.__quality,this.__strength)==a.image?a:b},__initShader:function(a,b){b<=this.__horizontalPasses?(a=Math.pow(.5,b>>1),yb.__glowShader.uRadius.value[0]=this.get_blurX()*a,yb.__glowShader.uRadius.value[1]=0):(a=Math.pow(.5,b-this.__horizontalPasses>>1),yb.__glowShader.uRadius.value[0]=0,yb.__glowShader.uRadius.value[1]=
this.get_blurY()*a);yb.__glowShader.uColor.value[0]=(this.get_color()>>16&255)/255;yb.__glowShader.uColor.value[1]=(this.get_color()>>8&255)/255;yb.__glowShader.uColor.value[2]=(this.get_color()&255)/255;yb.__glowShader.uColor.value[3]=this.get_alpha();return yb.__glowShader},get_alpha:function(){return this.__alpha},get_blurX:function(){return this.__blurX},set_blurX:function(a){a!=this.__blurX&&(this.__blurX=a,this.__renderDirty=!0,this.__rightExtension=this.__leftExtension=0<a?Math.ceil(1.5*a):
0);return a},get_blurY:function(){return this.__blurY},set_blurY:function(a){a!=this.__blurY&&(this.__blurY=a,this.__renderDirty=!0,this.__bottomExtension=this.__topExtension=0<a?Math.ceil(1.5*a):0);return a},get_color:function(){return this.__color},set_quality:function(a){this.__horizontalPasses=0>=this.__blurX?0:Math.round(a/4*this.__blurX)+1;this.__verticalPasses=0>=this.__blurY?0:Math.round(a/4*this.__blurY)+1;this.__numShaderPasses=this.__horizontalPasses+this.__verticalPasses;a!=this.__quality&&
(this.__renderDirty=!0);return this.__quality=a},__class__:yb});var Mk=function(){};m["openfl.geom.Matrix3D"]=Mk;Mk.__name__="openfl.geom.Matrix3D";Mk.prototype={__class__:Mk};var kg=function(a){this.__colorTransform=new Ca;this.concatenatedColorTransform=new Ca;this.pixelBounds=new M;this.__displayObject=a;this.__hasMatrix=!0};m["openfl.geom.Transform"]=kg;kg.__name__="openfl.geom.Transform";kg.prototype={concatenatedColorTransform:null,pixelBounds:null,__colorTransform:null,__displayObject:null,
__hasMatrix:null,__hasMatrix3D:null,get_colorTransform:function(){return this.__colorTransform},set_colorTransform:function(a){this.__colorTransform.__equals(a)||(this.__colorTransform.__copyFrom(a),a=this.__displayObject,a.__renderDirty||(a.__renderDirty=!0,a.__setParentRenderDirty()));return this.__colorTransform},get_matrix:function(){return this.__hasMatrix?this.__displayObject.__transform.clone():null},set_matrix:function(a){if(null==a)return this.__hasMatrix=!1,null;this.__hasMatrix=!0;this.__hasMatrix3D=
!1;null!=this.__displayObject&&this.__setTransform(a.a,a.b,a.c,a.d,a.tx,a.ty);return a},__setTransform:function(a,b,d,c,e,f){if(null!=this.__displayObject){var h=0==b?a:Math.sqrt(a*a+b*b);var k=0==d?a:Math.sqrt(d*d+c*c);this.__displayObject.__scaleX=h;this.__displayObject.__scaleY=k;h=180/Math.PI*Math.atan2(c,d)-90;h!=this.__displayObject.__rotation&&(this.__displayObject.__rotation=h,h*=Math.PI/180,this.__displayObject.__rotationSine=Math.sin(h),this.__displayObject.__rotationCosine=Math.cos(h));
this.__displayObject.__transform.a=a;this.__displayObject.__transform.b=b;this.__displayObject.__transform.c=d;this.__displayObject.__transform.d=c;this.__displayObject.__transform.tx=e;this.__displayObject.__transform.ty=f;this.__displayObject.__setTransformDirty()}},__class__:kg};var Nk=function(){};m["openfl.geom.Vector3D"]=Nk;Nk.__name__="openfl.geom.Vector3D";Nk.prototype={__class__:Nk};var dl=function(){};m["openfl.media.ID3Info"]=dl;dl.__name__="openfl.media.ID3Info";var Lj=function(a,b){ba.call(this,
this);this.bytesTotal=this.bytesLoaded=0;this.isBuffering=!1;this.url=null;null!=a&&this.load(a,b)};m["openfl.media.Sound"]=Lj;Lj.__name__="openfl.media.Sound";Lj.__super__=ba;Lj.prototype=v(ba.prototype,{bytesLoaded:null,bytesTotal:null,isBuffering:null,url:null,__buffer:null,load:function(a,b){var d=this;this.url=a.url;a=Z.getLibrary("default");if(null!=a){b=this.url;var c=a.cachedAudioBuffers;b=null!=t[b]?c.existsReserved(b):c.h.hasOwnProperty(b)}else b=!1;if(b)b=this.url,a=a.cachedAudioBuffers,
this.AudioBuffer_onURLLoad(null!=t[b]?a.getReserved(b):a.h[b]);else Qa.loadFromFile(this.url).onComplete(u(this,this.AudioBuffer_onURLLoad)).onError(function(a){d.AudioBuffer_onURLLoad(null)})},AudioBuffer_onURLLoad:function(a){null==a?this.dispatchEvent(new Vf("ioError")):(this.__buffer=a,this.dispatchEvent(new R("complete")))},__class__:Lj});var Mj=function(a,b){ba.call(this,this);this.rightPeak=this.leftPeak=1;this.__soundTransform=null!=b?b:new Wf;null!=a&&(this.__source=a,this.__source.onComplete.add(u(this,
this.source_onComplete)),this.__isValid=!0,this.__source.play());ad.__registerSoundChannel(this)};m["openfl.media.SoundChannel"]=Mj;Mj.__name__="openfl.media.SoundChannel";Mj.__super__=ba;Mj.prototype=v(ba.prototype,{leftPeak:null,rightPeak:null,__isValid:null,__soundTransform:null,__source:null,stop:function(){ad.__unregisterSoundChannel(this);this.__isValid&&(this.__source.stop(),this.__dispose())},__dispose:function(){this.__isValid&&(this.__source.onComplete.remove(u(this,this.source_onComplete)),
this.__source.dispose(),this.__isValid=!1)},__updateTransform:function(){this.set_soundTransform(this.get_soundTransform())},get_position:function(){return this.__isValid?this.__source.get_currentTime()+this.__source.offset:0},set_position:function(a){if(!this.__isValid)return 0;this.__source.set_currentTime((a|0)-this.__source.offset);return a},get_soundTransform:function(){return this.__soundTransform.clone()},set_soundTransform:function(a){if(null!=a){this.__soundTransform.pan=a.pan;this.__soundTransform.volume=
a.volume;var b=ad.__soundTransform.pan+this.__soundTransform.pan;-1>b&&(b=-1);1<b&&(b=1);var d=ad.__soundTransform.volume*this.__soundTransform.volume;this.__isValid&&(this.__source.set_gain(d),d=this.__source.get_position(),d.x=b,d.z=-1*Math.sqrt(1-Math.pow(b,2)),this.__source.set_position(d))}return a},source_onComplete:function(){ad.__unregisterSoundChannel(this);this.__dispose();this.dispatchEvent(new R("soundComplete"))},__class__:Mj});var el=function(){};m["openfl.media.SoundLoaderContext"]=
el;el.__name__="openfl.media.SoundLoaderContext";var Wf=function(a,b){null==b&&(b=0);null==a&&(a=1);this.volume=a;this.pan=b;this.rightToRight=this.rightToLeft=this.leftToRight=this.leftToLeft=0};m["openfl.media.SoundTransform"]=Wf;Wf.__name__="openfl.media.SoundTransform";Wf.prototype={leftToLeft:null,leftToRight:null,pan:null,rightToLeft:null,rightToRight:null,volume:null,clone:function(){return new Wf(this.volume,this.pan)},__class__:Wf};var ad=function(){};m["openfl.media.SoundMixer"]=ad;ad.__name__=
"openfl.media.SoundMixer";ad.__registerSoundChannel=function(a){ad.__soundChannels.push(a)};ad.__unregisterSoundChannel=function(a){L.remove(ad.__soundChannels,a)};var Nj=function(){ba.call(this)};m["openfl.net.NetConnection"]=Nj;Nj.__name__="openfl.net.NetConnection";Nj.__super__=ba;Nj.prototype=v(ba.prototype,{__class__:Nj});var Oj=function(a,b){ba.call(this);this.__connection=a;this.__video=window.document.createElement("video");this.__video.setAttribute("playsinline","");this.__video.setAttribute("webkit-playsinline",
"");this.__video.addEventListener("error",u(this,this.video_onError),!1);this.__video.addEventListener("waiting",u(this,this.video_onWaiting),!1);this.__video.addEventListener("ended",u(this,this.video_onEnd),!1);this.__video.addEventListener("pause",u(this,this.video_onPause),!1);this.__video.addEventListener("seeking",u(this,this.video_onSeeking),!1);this.__video.addEventListener("playing",u(this,this.video_onPlaying),!1);this.__video.addEventListener("timeupdate",u(this,this.video_onTimeUpdate),
!1);this.__video.addEventListener("loadstart",u(this,this.video_onLoadStart),!1);this.__video.addEventListener("stalled",u(this,this.video_onStalled),!1);this.__video.addEventListener("durationchanged",u(this,this.video_onDurationChanged),!1);this.__video.addEventListener("canplay",u(this,this.video_onCanPlay),!1);this.__video.addEventListener("canplaythrough",u(this,this.video_onCanPlayThrough),!1);this.__video.addEventListener("loadedmetadata",u(this,this.video_onLoadMetaData),!1)};m["openfl.net.NetStream"]=
Oj;Oj.__name__="openfl.net.NetStream";Oj.__super__=ba;Oj.prototype=v(ba.prototype,{client:null,time:null,__connection:null,__video:null,__playStatus:function(a){if(null!=this.__video&&null!=this.client)try{var b=this.client.onPlayStatus;b({code:a,duration:this.__video.duration,position:this.__video.currentTime,speed:this.__video.playbackRate,start:this.__video.startTime})}catch(d){fa.lastException=d}},video_onCanPlay:function(a){this.__playStatus("NetStream.Play.canplay")},video_onCanPlayThrough:function(a){this.__playStatus("NetStream.Play.canplaythrough")},
video_onDurationChanged:function(a){this.__playStatus("NetStream.Play.durationchanged")},video_onEnd:function(a){this.__connection.dispatchEvent(new Se("netStatus",!1,!1,{code:"NetStream.Play.Stop"}));this.__playStatus("NetStream.Play.Complete")},video_onError:function(a){this.__connection.dispatchEvent(new Se("netStatus",!1,!1,{code:"NetStream.Play.Stop"}));this.__playStatus("NetStream.Play.error")},video_onLoadMetaData:function(a){if(null!=this.__video&&null!=this.client)try{var b=this.client.onMetaData;
b({width:this.__video.videoWidth,height:this.__video.videoHeight,duration:this.__video.duration})}catch(d){fa.lastException=d}},video_onLoadStart:function(a){this.__playStatus("NetStream.Play.loadstart")},video_onPause:function(a){this.__playStatus("NetStream.Play.pause")},video_onPlaying:function(a){this.__connection.dispatchEvent(new Se("netStatus",!1,!1,{code:"NetStream.Play.Start"}));this.__playStatus("NetStream.Play.playing")},video_onSeeking:function(a){this.__playStatus("NetStream.Play.seeking")},
video_onStalled:function(a){this.__playStatus("NetStream.Play.stalled")},video_onTimeUpdate:function(a){null!=this.__video&&(this.time=this.__video.currentTime,this.__playStatus("NetStream.Play.timeupdate"))},video_onWaiting:function(a){this.__playStatus("NetStream.Play.waiting")},__class__:Oj});var Ph=function(a){ba.call(this);this.bytesTotal=this.bytesLoaded=0;this.dataFormat=1;null!=a&&this.load(a)};m["openfl.net.URLLoader"]=Ph;Ph.__name__="openfl.net.URLLoader";Ph.__super__=ba;Ph.prototype=v(ba.prototype,
{bytesLoaded:null,bytesTotal:null,data:null,dataFormat:null,__httpRequest:null,load:function(a){var b=this;if(0==this.dataFormat){var d=new Hh;this.__prepareRequest(d,a);d.load().onProgress(u(this,this.httpRequest_onProgress)).onError(u(this,this.httpRequest_onError)).onComplete(function(a){b.__dispatchStatus();b.data=a;a=new R("complete");b.dispatchEvent(a)})}else d=new Nf,this.__prepareRequest(d,a),d.load().onProgress(u(this,this.httpRequest_onProgress)).onError(u(this,this.httpRequest_onError)).onComplete(function(a){b.__dispatchStatus();
b.data=a;a=new R("complete");b.dispatchEvent(a)})},__dispatchStatus:function(){var a=new Wh("httpStatus",!1,!1,this.__httpRequest.responseStatus);a.responseURL=this.__httpRequest.uri;var b=[];if(this.__httpRequest.enableResponseHeaders&&null!=this.__httpRequest.responseHeaders)for(var d=0,c=this.__httpRequest.responseHeaders;d<c.length;){var e=c[d];++d;b.push(new Pj(e.name,e.value))}a.responseHeaders=b;this.dispatchEvent(a)},__prepareRequest:function(a,b){this.__httpRequest=a;this.__httpRequest.uri=
b.url;switch(b.method){case "DELETE":a="DELETE";break;case "HEAD":a="HEAD";break;case "OPTIONS":a="OPTIONS";break;case "POST":a="POST";break;case "PUT":a="PUT";break;default:a="GET"}this.__httpRequest.method=a;if(null!=b.data)if(Ea["typeof"](b.data)==Ec.TObject){a=V.fields(b.data);for(var d=0;d<a.length;){var c=a[d];++d;var e=this.__httpRequest.formData,f=V.field(b.data,c);null!=t[c]?e.setReserved(c,f):e.h[c]=f}}else this.__httpRequest.data=b.data instanceof H?b.data:H.ofString(S.string(b.data));
this.__httpRequest.contentType=b.contentType;if(null!=b.requestHeaders)for(a=0,d=b.requestHeaders;a<d.length;)c=d[a],++a,this.__httpRequest.headers.push(new yh(c.name,c.value));this.__httpRequest.followRedirects=b.followRedirects;this.__httpRequest.timeout=b.idleTimeout|0;this.__httpRequest.withCredentials=b.manageCookies;this.__httpRequest.userAgent=b.userAgent;this.__httpRequest.enableResponseHeaders=!0},httpRequest_onError:function(a){this.__dispatchStatus();var b=403==a?new Xh("securityError"):
new Vf("ioError");b.text=S.string(a);this.dispatchEvent(b)},httpRequest_onProgress:function(a,b){var d=new Oe("progress");d.bytesLoaded=a;d.bytesTotal=b;this.dispatchEvent(d)},__class__:Ph});var nh=function(a){null!=a&&(this.url=a);this.contentType=null;this.followRedirects=Od.followRedirects;this.idleTimeout=0<Od.idleTimeout?Od.idleTimeout:3E4;this.manageCookies=Od.manageCookies;this.method="GET";this.requestHeaders=[];this.userAgent=Od.userAgent};m["openfl.net.URLRequest"]=nh;nh.__name__="openfl.net.URLRequest";
nh.prototype={contentType:null,data:null,followRedirects:null,idleTimeout:null,manageCookies:null,method:null,requestHeaders:null,url:null,userAgent:null,__class__:nh};var Od=function(){};m["openfl.net.URLRequestDefaults"]=Od;Od.__name__="openfl.net.URLRequestDefaults";var Pj=function(a,b){null==b&&(b="");null==a&&(a="");this.name=a;this.value=b};m["openfl.net.URLRequestHeader"]=Pj;Pj.__name__="openfl.net.URLRequestHeader";Pj.prototype={name:null,value:null,__class__:Pj};var ai=function(a,b){Lb.call(this);
this.set_bitmapData(a.bitmapDatas.h[b.characterId])};m["openfl.swfty.exporter.Bitmap"]=ai;ai.__name__="openfl.swfty.exporter.Bitmap";ai.__super__=Lb;ai.prototype=v(Lb.prototype,{__class__:ai});var Ok=function(){};m["openfl.swfty.exporter.ClassExporter"]=Ok;Ok.__name__="openfl.swfty.exporter.ClassExporter";Ok["export"]=function(a,b,d,c){null==c&&(c="");null==d&&(d="");var e=null==b||""==b?"":b.charAt(0).toUpperCase()+L.substr(b,1,null),f=0,h=new fc,k=new ea,n=null,l=n=function(a,b){null==b&&(b=!1);
if(null==h.h.__keys__[a.__id__]&&(b||0!=Wb.count(a.children,function(a){var b=a.name;return null!=b&&""!=b?null==a.mc?null!=a.text:!0:!1}))){b=a.name;null==b||""==b?(f+=1,b="Instance"+(f-1)):(b=a.name,b=Q.replace(null==b||""==b?"":b.charAt(0).toUpperCase()+L.substr(b,1,null),".","_"));var c=0;if(null!=t[b]?k.existsReserved(b):k.h.hasOwnProperty(b))c=(null!=t[b]?k.getReserved(b):k.h[b])+1;null!=t[b]?k.setReserved(b,c):k.h[b]=c;for(var d=0;d<c;)d++,b+="_";h.set(a,b);b=0;for(a=a.children;b<a.length;)d=
a[b],++b,c=d.name,null!=c&&""!=c&&null!=d.mc&&n(d.mc)}};for(a=a.definitions.iterator();a.hasNext();){var m=a.next(),g=m.name;null!=g&&""!=g&&l(m,!0)}a=l="";for(m=h.keys();m.hasNext();){var p=m.next();g=h.h[p.__id__];for(var q="",r=0,u=p.children;r<u.length;){var v=u[r];++r;var w=v.name;null!=w&&""!=w&&(null!=v.text?q+="\r\n    public var "+v.name+"(get, never):Text;\r\n    public inline function get_"+v.name+'():Text {\r\n        return this.getText("'+v.name+'");\r\n    }\r\n                        ':
null!=v.mc&&(w=null!=h.h.__keys__[v.mc.__id__]?e+"_"+h.h[v.mc.__id__]:"Sprite",q+="\r\n    public var "+v.name+"(get, never):"+w+";\r\n    public inline function get_"+v.name+"():"+w+' {\r\n        return this.get("'+v.name+'");\r\n    }\r\n                        '))}r=p.name;null!=r&&""!=r&&(l+="\r\n    public inline function create"+g+"():"+e+"_"+g+' {\r\n        return this.create("'+p.name+'");\r\n    }\r\n            ');p=p.name;a=null==p||""==p?a+("\r\n@:forward(x, y, scaleX, scaleY, rotation, alpha, loaded, add, remove, width, height, addRender, removeRender, get, getText)\r\nabstract "+
e+"_"+g+"(Sprite) from Sprite to Sprite {\r\n    "+q+"\r\n}\r\n                "):a+("\r\n@:forward(x, y, scaleX, scaleY, rotation, alpha, loaded, add, remove, width, height, addRender, removeRender, get, getText)\r\nabstract "+e+"_"+g+"(Sprite) from Sprite to Sprite {\r\n    "+q+"\r\n    public static inline function create(layer:"+e+"):"+e+"_"+g+" {\r\n        return layer.create"+g+"();\r\n    }\r\n}\r\n                ")}return"package swfty"+d+";\r\n\r\nimport haxe.io.Bytes;\r\n\r\nimport swfty.SWFTY;\r\nimport swfty.utils.File;\r\nimport swfty.renderer.Sprite;\r\nimport swfty.renderer.Text;\r\nimport swfty.renderer.Layer;\r\n\r\n/** This file is auto-generated! **/\r\n"+
("\r\n@:forward(x, y, scaleX, scaleY, rotation, alpha, dispose, pause, layout, mouse, base, baseLayout, width, height, getAllNames, update, create, add, remove, addRender, removeRender, addMouseDown, removeMouseDown, addMouseUp, removeMouseUp, mouseX, mouseY)\r\nabstract "+e+"(Layer) from Layer to Layer {\r\n    "+l+'\r\n    public inline function reload(?bytes:Bytes, ?onComplete:Void->Void, ?onError:Dynamic->Void) {\r\n        function complete() {\r\n            this.reload();\r\n            if (onComplete != null) onComplete();\r\n        }\r\n\r\n        if (bytes != null) {\r\n            this.loadBytes(bytes, complete, onError);\r\n        } else {\r\n            _load(this.path, complete, onError);\r\n        }\r\n    }\r\n\r\n    inline function _load(?path:String = "", ?onComplete:Void->Void, ?onError:Dynamic->Void) {\r\n        this.path = path;\r\n        File.loadBytes("'+
c+'" + path + "'+b+'.swfty", function(bytes) {\r\n            this.loadBytes(bytes, onComplete, onError);\r\n        }, onError);\r\n    }\r\n\r\n\r\n    inline function _loadBytes(?bytes:Bytes, ?onComplete:Void->Void, ?onError:Dynamic->Void) {\r\n        this.loadBytes(bytes, onComplete, onError);\r\n    }\r\n\r\n    public static inline function load(?quality:Quality, ?width:Int, ?height:Int, ?bytes:Bytes, ?onComplete:'+e+"->Void, ?onError:Dynamic->Void):"+e+" {\r\n        if (quality == null) quality = Normal;\r\n        var layer:"+
e+" = Layer.empty(width, height);\r\n        if (bytes != null) {\r\n            layer._loadBytes(bytes, function() if (onComplete != null) onComplete(layer), onError);\r\n        } else {\r\n            layer._load(quality, function() if (onComplete != null) onComplete(layer), onError);\r\n        }\r\n        return layer;\r\n    }\r\n\r\n    public static inline function create(?width:Int, ?height:Int):"+e+" {\r\n        return Layer.empty(width, height);\r\n    }\r\n}")+"\r\n"+a};var rd=function(a,
b,d,c){this.nextFrames=[];this.processFrame=0;this.tilemap=Tc.None;this.processShapesId=0;this.maxId=-1;var e=this;a.position=0;var f=0<ya.get_length(a)?a.readByte():0;if(3>ya.get_length(a)||67!=f&&70!=f||87!=a.readByte()||83!=a.readByte())null!=c&&c("Invalid format");else{a.position=0;this.swf=new sg(a);this.data=this.swf.data;this.name=null==b?"NoName":b;ra.trace("Exporting",{fileName:"openfl/swfty/exporter/Exporter.hx",lineNumber:123,className:"openfl.swfty.exporter.Exporter",methodName:"new",
customParams:[this.name]});this.movieClipsOrder=[];this.definitions=new Y;this.movieClips=new Y;this.shapes=new Y;this.texts=new Y;this.fonts=new Y;this.bitmaps=new Y;this.bitmapDatas=new Y;this.bitmapToShapes=new Y;this.bakedId=new ea;this.fontCacheId=new ea;this.fontCache=new Y;this.bitmapKeeps=new Y;this.processShapes=new Y;this.fontTilemaps=new Y;ja.premultipliedDefault=!0;Ba.get_current().addEventListener("enterFrame",function(a){a=[];for(var b=0,c=e.nextFrames;b<c.length;){var d=c[b];++b;a.push(d)}e.processFrame=
0;e.nextFrames=[];for(b=0;b<a.length;)c=a[b],++b,c()});var h=null;h=function(a){var b=e.data.tags[a],c=function(){if(a+1<e.data.tags.length)100>e.processFrame++?h(a+1):e.nextFrames.push(function(){h(a+1)});else{for(var b=e.processShapes.keys();b.hasNext();){var c=b.next(),f=e.processShapes.h[c],g=new Xf(e,e.data,f.tag),k=g.getBounds(g);f.definition.tx=k.x;f.definition.ty=k.y;f=new ja(Math.ceil(k.width),Math.ceil(k.height),!0,0);var l=new P;l.tx=-k.x;l.ty=-k.y;f.draw(g,l);e.bitmaps.h[c]={id:c,x:0,
y:0,width:f.width,height:f.height};e.bitmapDatas.h[c]=f;e.bitmapKeeps.h[c]=!0;c>e.maxId&&(e.maxId=c)}for(b=e.texts.iterator();b.hasNext();)c=b.next(),g=e.fonts.h[c.font],null!=g&&c.size>g.size&&(g.size=c.size);for(b=e.fonts.iterator();b.hasNext();){c=b.next();g=Pk.exportGlyphs(c.cleanName,c.size,c.bold,c.italic,null,e.fontCache.h[c.id],function(){return++e.maxId});k=g.bitmaps;f=0;for(l=g.definitions;f<l.length;){var n=l[f];++f;var m=k.h[n.id];n=n.bitmap;e.bitmaps.h[n]={id:n,x:0,y:0,width:m.width,
height:m.height};e.bitmapDatas.h[n]=m;e.bitmapKeeps.h[n]=!0}c.bitmap=-1;c.characters=g.definitions.map(function(a){return{id:a.id,bitmap:a.bitmap,tx:a.tx,ty:a.ty,advance:a.advance,height:a.charHeight}})}null!=d&&d(e)}};if(b instanceof vd){var f=U.__cast(b,vd).symbols,g=null;g=function(a){e.processSymbol(f[a],function(){a+1<f.length?100>e.processFrame++?g(a+1):e.nextFrames.push(function(){g(a+1)}):c()})};0<f.length?g(0):c()}else c()};0<this.data.tags.length?h(0):null!=d&&d(this)}};m["openfl.swfty.exporter.Exporter"]=
rd;rd.__name__="openfl.swfty.exporter.Exporter";rd.create=function(a,b,d,c){return new rd(a,b,d,c)};rd.prototype={maxId:null,name:null,definitions:null,movieClipsOrder:null,movieClips:null,shapes:null,bitmapToShapes:null,texts:null,fonts:null,fontCacheId:null,fontCache:null,processShapes:null,processShapesId:null,bitmaps:null,bitmapKeeps:null,bitmapDatas:null,swf:null,data:null,alphaPalette:null,tilemap:null,fontTilemaps:null,processFrame:null,nextFrames:null,bakedId:null,getFontCache:function(a,
b){var d=this.fonts.h.hasOwnProperty(a.font)?this.fonts.h[a.font].name:"";b=""+d+"-"+S.string(tc.toFloat(rd.BAKE_COLOR?a.color:16777215))+"-"+b;if(!this.fontCache.h.hasOwnProperty(a.font)){var c={id:a.font,font:d,hash:b,isNumeric:this.isNumeric(a.text),color:a.color,filters:[]};this.fontCache.h[a.font]=c;c=this.fontCacheId;var e=a.font;null!=t[b]?c.setReserved(b,e):c.h[b]=e}c=this.fontCacheId;if(null!=t[b]?!c.existsReserved(b):!c.h.hasOwnProperty(b))if(c=--this.processShapesId,d={id:c,font:d,hash:b,
isNumeric:this.isNumeric(a.text),color:a.color,filters:[]},e=this.fontCacheId,null!=t[b]?e.setReserved(b,c):e.h[b]=c,this.fontCache.h[c]=d,this.fonts.h.hasOwnProperty(a.font)){var f=this.fonts.h[a.font];d=f.name;e=f.cleanName;var h=f.color,k=f.size,l=f.bold,m=f.italic,p=f.bitmap,g=f.ascent,q=f.descent,r=f.leading,u=[],v=0;for(f=f.characters;v<f.length;){var w=f[v];++v;u.push(w)}this.fonts.h[c]={id:c,name:d,cleanName:e,color:h,size:k,bold:l,italic:m,bitmap:p,ascent:g,descent:q,leading:r,characters:u}}c=
this.fontCache;d=this.fontCacheId;b=null!=t[b]?d.getReserved(b):d.h[b];b=c.h[b];a.font=b.id;b.isNumeric&&(b.isNumeric=this.isNumeric(a.text));return b},isNumeric:function(a){for(var b=0,d=a.length;b<d;){var c=b++;if(-1==Yf.NUMERIC.indexOf(L.cca(a,c)))return!1}return!0},getTilemap:function(){var a=this,b=this.tilemap;switch(b._hx_index){case 0:return b.v;case 1:b=[];for(var d=this.bitmapDatas.keys();d.hasNext();){var c=d.next();b.push(c)}d=b.map(function(b){return a.bitmapKeeps.h.hasOwnProperty(b)?
a.bitmapDatas.h[b]:null});var e=Ue.pack(d,null,null,!1);for(d=0;d<b.length;)c=b[d],++d,this.bitmapKeeps.h.hasOwnProperty(c);ja.premultipliedDefault=!0;ra.trace("Tilemap is "+e.bitmapData.width+"x"+e.bitmapData.height,{fileName:"openfl/swfty/exporter/Exporter.hx",lineNumber:416,className:"openfl.swfty.exporter.Exporter",methodName:"getTilemap"});d=0;for(c=b.length;d<c;){var f=d++,h=this.bitmaps.h[b[f]];f=e.tiles[f];null!=f&&(h.x=f.x,h.y=f.y)}for(b=this.fontTilemaps.keys();b.hasNext();)d=b.next(),Wb.iter(this.fontTilemaps.h[d].characters,
function(b){return function(c){var d={id:c.bitmap,x:b[0].x+c.x,y:b[0].y+c.y,width:c.width,height:c.height};a.bitmaps.h[c.bitmap]=d;e.tiles.push(d)}}([this.bitmaps.h[d]]));this.tilemap=Tc.Some(e);return e}},getJSON:function(){return JSON.stringify(this.getSWFTYJson())},getSWFTYJson:function(){var a=this.tilemap;switch(a._hx_index){case 0:var b=a.v;b={width:b.bitmapData.width,height:b.bitmapData.height};break;case 1:b={width:0,height:0}}a=this.name;for(var d=this.movieClipsOrder,c=[],e=this.bitmaps.iterator();e.hasNext();){var f=
e.next();c.push(f)}e=[];for(f=this.fonts.iterator();f.hasNext();){var h=f.next();e.push(h)}return{tilemap:b,name:a,definitions:d,tiles:c,fonts:e}},getBinary:function(){for(var a=this.getSWFTYJson(),b=new Y,d=0,c=a.tiles;d<c.length;){var e=c[d];++d;var f=e.id;e=new Tb(e.id,e.x,e.y,e.width,e.height);b.h[f]=e}d=new Y;c=0;for(f=a.fonts;c<f.length;){var h=f[c];++c;e=h.id;var k=b,l=h.id,m=h.name,p=h.cleanName,g=h.color,q=h.size,r=h.bold,t=h.italic,u=h.bitmap,v=h.ascent,w=h.descent,y=h.leading,z=new Y,B=
0;for(h=h.characters;B<h.length;){var x=h[B];++B;var F=x.id;x=new Oc(x.id,k.h[x.bitmap],x.tx,x.ty,x.advance,x.height);z.h[F]=x}k=new Kb(l,m,p,g,q,r,t,u,v,w,y,z);d.h[e]=k}c=new Y;f=0;for(e=a.definitions;f<e.length;){t=e[f];++f;k=t.id;l=b;m=d;p=t.id;g=t.name;q=[];r=0;for(t=t.children;r<t.length;){u=t[r];++r;v=u.id;w=c.h[u.id];y=u.a;z=u.b;B=u.c;h=u.d;F=u.tx;x=u.ty;for(var I=[],G=0,E=u.shapes;G<E.length;){var H=E[G];++G;I.push(new Bc(H.id,H.a,H.b,H.c,H.d,H.tx,H.ty,l.h[H.bitmap]))}G=u.mask;null!=u.text?
(E=u.text,E=new Cc(m.h[E.font],E.align,E.size,E.color,E.text,E.html,E.leftMargin,E.rightMargin,E.leading,E.indent,E.x,E.y,E.width,E.height)):E=null;H=u.blendMode;if(null!=u.color){var K=u.color;K=new Dc(K.r,K.g,K.b,K.rAdd,K.gAdd,K.bAdd)}else K=null;q.push(new pc(v,w,y,z,B,h,F,x,I,G,E,H,K,u.alpha,u.name,u.visible))}l=new qc(p,g,q);c.h[k]=l}a=new Pc(a.tilemap.width,a.tilemap.height,a.name,c,b,d);return D.save(a)},getPNG:function(a){return a.encode(a.rect,new Kh)},getSwfty:function(a,b){null==b&&(b=
!0);null==a&&(a=!1);var d=this.getTilemap();d=this.getPNG(d.bitmapData);var c=new bi;c.addBytes(ya.toBytes(d),"tilemap.png",!1);a?c.addString(this.getJSON(),"definitions.json",b):c.addBytes(this.getBinary(),"definitions.bin",b);return c.finalize()},getTilemapInfo:function(){var a=this.getTilemap(),b=this.getPNG(a.bitmapData);return{src:"data:image/png;base64,"+ke.encode(ya.toBytes(b)),width:a.bitmapData.width,height:a.bitmapData.height,size:ya.get_length(b)}},getAllNames:function(){var a=this,b={},
d=null,c=d=function(c){if(null==c)return 0;if(b.hasOwnProperty(c.id))return b[c.id];for(var e=0,f=0,l=c.children;f<l.length;){var m=l[f];++f;e=b.hasOwnProperty(m.id)?e+b[m.id]:e+d(a.movieClips.h[m.id]);++e}return b[c.id]=e},e=this.movieClipsOrder.filter(function(a){a=a.name;return!(null==a||""==a)});qb.sort(e,function(a,b){a=c(a);b=c(b);return a<b?1:a>b?-1:0});return e.map(function(a){return a.name})},getAbstracts:function(){for(var a=this.getSWFTYJson(),b=new Y,d=0,c=a.tiles;d<c.length;){var e=c[d];
++d;var f=e.id;e=new Tb(e.id,e.x,e.y,e.width,e.height);b.h[f]=e}d=new Y;c=0;for(f=a.fonts;c<f.length;){var h=f[c];++c;e=h.id;var k=b,l=h.id,m=h.name,p=h.cleanName,g=h.color,q=h.size,r=h.bold,t=h.italic,u=h.bitmap,v=h.ascent,w=h.descent,y=h.leading,z=new Y,B=0;for(h=h.characters;B<h.length;){var x=h[B];++B;var E=x.id;x=new Oc(x.id,k.h[x.bitmap],x.tx,x.ty,x.advance,x.height);z.h[E]=x}k=new Kb(l,m,p,g,q,r,t,u,v,w,y,z);d.h[e]=k}c=new Y;f=0;for(e=a.definitions;f<e.length;){t=e[f];++f;k=t.id;l=b;m=d;p=
t.id;g=t.name;q=[];r=0;for(t=t.children;r<t.length;){u=t[r];++r;v=u.id;w=c.h[u.id];y=u.a;z=u.b;B=u.c;h=u.d;E=u.tx;x=u.ty;for(var I=[],F=0,D=u.shapes;F<D.length;){var G=D[F];++F;I.push(new Bc(G.id,G.a,G.b,G.c,G.d,G.tx,G.ty,l.h[G.bitmap]))}F=u.mask;null!=u.text?(D=u.text,D=new Cc(m.h[D.font],D.align,D.size,D.color,D.text,D.html,D.leftMargin,D.rightMargin,D.leading,D.indent,D.x,D.y,D.width,D.height)):D=null;G=u.blendMode;if(null!=u.color){var H=u.color;H=new Dc(H.r,H.g,H.b,H.rAdd,H.gAdd,H.bAdd)}else H=
null;q.push(new pc(v,w,y,z,B,h,E,x,I,F,D,G,H,u.alpha,u.name,u.visible))}l=new qc(p,g,q);c.h[k]=l}a=new Pc(a.tilemap.width,a.tilemap.height,a.name,c,b,d);b=this.name.lastIndexOf("/");-1==b&&(b=this.name.lastIndexOf("\\"));b=-1==b?this.name:L.substr(this.name,b+1,null);return Ok["export"](a,b,Q.replace(Q.replace(Q.replace(this.name,b,""),"/","."),"\\","."))},getTransform:function(a){return{a:a.a,b:a.b,c:a.c,d:a.d,tx:a.tx,ty:a.ty}},addSprite:function(a,b,d){null==b&&(b=!1);var c=this;b=U.__instanceof(a,
Ha)?a.characterId:-1;var e=[],f={id:b,name:"",children:e};this.movieClips.h[b]=f;var h=function(){c.movieClipsOrder.push(f);d()};b=function(b){var d=a.frames[b].getObjectsSortedByDepth(),f=null,k=0,g=!1,l=null;l=function(b){var n=d[b],m=c.data.getCharacter(n.characterId);null!=f&&f.clipDepth<n.depth&&(f=null);g=!1;0!=n.clipDepth&&null!=n.clipDepth&&(f=n,g=!0,ra.trace("Found mask: "+f.clipDepth,{fileName:"openfl/swfty/exporter/Exporter.hx",lineNumber:618,className:"openfl.swfty.exporter.Exporter",
methodName:"addSprite"}));c.processTag(m,function(){var p=a.tags[n.placedAtIndex],q=n.characterId;if(null!=p.matrix){var r=p.matrix.get_matrix();r.tx*=.05;r.ty*=.05;var u=r}else u=new P;r=null!=p.colorTransform?p.colorTransform.get_colorTransform().alphaMultiplier:1;var v="normal";p.hasBlendMode&&(v=ck.toString(p.blendMode));var C=null!=p.colorTransform&&(256!=p.colorTransform.rMult||256!=p.colorTransform.gMult||256!=p.colorTransform.bMult||0!=p.colorTransform.rAdd||0!=p.colorTransform.gAdd||0!=p.colorTransform.bAdd);
if(p.hasFilterList){var w="";for(var A=0,z=p.surfaceFilterList;A<z.length;){var y=z[A];++A;y=y.get_type();switch(y._hx_index){case 0:w+="BlurFilter("+y.blurX+", "+y.blurY+", "+y.quality+")";break;case 1:w+="ColorMatrixFilter("+S.string(y.matrix)+")";break;case 2:var B=y.hideObject,x=y.knockout,D=y.inner;w+="DropShadowFilter("+y.distance+", "+y.angle+", "+y.color+", "+y.alpha+", "+y.blurX+", "+y.blurY+", "+y.strength+", "+y.quality+", "+(null==D?"null":""+D)+", "+(null==x?"null":""+x)+", "+(null==
B?"null":""+B)+")";break;case 3:B=y.knockout,x=y.inner,w+="GlowFilter("+y.color+", "+y.alpha+", "+y.blurX+", "+y.blurY+", "+y.strength+", "+y.quality+", "+(null==x?"null":""+x)+", "+(null==B?"null":""+B)+")"}}}else w="";if(p.hasFilterList||p.hasCacheAsBitmap&&0!=p.bitmapCache||rd.BAKE_COLOR&&C){C?(A=p.colorTransform,z=""+A.rMult+","+A.gMult+","+A.bMult+","+A.rAdd+","+A.gAdd+","+A.bAdd):z="";A=[];if(p.hasFilterList)for(y=0,B=p.surfaceFilterList;y<B.length;)if(x=B[y],++y,x=x.get_type(),null!=x)switch(x._hx_index){case 0:A.push(new vc(x.blurX,
x.blurY,x.quality));break;case 1:A.push(new hd(x.matrix));break;case 2:D=x.hideObject;var E=x.knockout,F=x.inner,ub=x.quality,G=x.strength,H=x.blurY,ca=x.blurX,T=x.alpha,K=x.color,L=x.angle;x=x.distance;(F||E)&&Qc.warn("Inner / Knockout is not supported");A.push(new Fe(x,L,K,T,ca,H,G,ub,F,E,D));break;case 3:D=x.knockout,E=x.inner,F=x.quality,ub=x.strength,G=x.blurY,H=x.blurX,ca=x.alpha,x=x.color,(E||D)&&Qc.warn("Inner / Knockout is not supported"),A.push(new yb(x,ca,H,G,ub,F,E,D))}m instanceof ic?
(z=""+m.characterId+"-"+w+"-"+z,q=c.bakedId,(null!=t[z]?q.existsReserved(z):q.h.hasOwnProperty(z))?(ra.trace("*********** HAS HASH !!!!!!!!!!!!!",{fileName:"openfl/swfty/exporter/Exporter.hx",lineNumber:716,className:"openfl.swfty.exporter.Exporter",methodName:"addSprite"}),q=c.bakedId,q=null!=t[z]?q.getReserved(z):q.h[z]):(y=new Ve(c,m),y.set_filters(A),C&&(q=p.colorTransform,y.get_transform().set_colorTransform(new Ca(q.rMult/255,q.gMult/255,q.bMult/255,1,q.rAdd,q.gAdd,q.bAdd,0))),q=--c.processShapesId,
A=--c.processShapesId,B={id:0,bitmap:A,a:1,b:0,c:0,d:1,tx:0,ty:0},x=y.getBounds(y),B.tx=x.x,B.ty=x.y,D=new ja(Math.ceil(x.width)+80,Math.ceil(x.height)+80,!0,0),E=new P,E.tx=-x.x+40,E.ty=-x.y+40,D.draw(y,E,y.get_transform().get_colorTransform()),y=Ue.trim(D),B.tx=x.x+y.rect.x-40,B.ty=x.y+y.rect.y-40,c.bitmaps.h[A]={id:A,x:0,y:0,width:y.bmpd.width,height:y.bmpd.height},c.bitmapDatas.h[A]=y.bmpd,c.bitmapKeeps.h[A]=!0,c.shapes.h[q]=[B],A=c.bakedId,null!=t[z]?A.setReserved(z,q):A.h[z]=q)):m instanceof
$b&&c.texts.h.hasOwnProperty(q)&&(c.getFontCache(c.texts.h[q],w).filters=A)}x=p.hasVisible?0!=p.visible:!0;null==f||g||ra.trace("Found a masked object",{fileName:"openfl/swfty/exporter/Exporter.hx",lineNumber:798,className:"openfl.swfty.exporter.Exporter",methodName:"addSprite"});c.texts.h.hasOwnProperty(q)&&c.getFontCache(c.texts.h[q],w);D=c.getTransform(u);u=p.instanceName;w=D.a;A=D.b;z=D.c;y=D.d;B=D.tx;D=D.ty;p=C&&!rd.BAKE_COLOR?{r:p.colorTransform.rMult,g:p.colorTransform.gMult,b:p.colorTransform.bMult,
rAdd:p.colorTransform.rAdd,gAdd:p.colorTransform.gAdd,bAdd:p.colorTransform.bAdd}:null;C=null==f||g?null:k;x=!g&&x;E=c.texts.h.hasOwnProperty(q)?c.texts.h[q]:null;F=c.shapes.h.hasOwnProperty(q)?c.shapes.h[q]:[];r={id:q,name:u,a:w,b:A,c:z,d:y,tx:B,ty:D,color:p,blendMode:"normal"==v?null:v,mask:C,visible:x,alpha:r,text:E,shapes:F};g&&(k=e.length);v=r.name;if(null!=v&&""!=v)for(v=0;v<e.length;)q=e[v],++v,q.name==r.name&&(r.name+="_");e.push(r);b+1<d.length?100>c.processFrame++?l(b+1):c.nextFrames.push(function(){l(b+
1)}):h()})};0<d.length?l(0):h()};0<a.frames.length?b(0):h();return f},addShape:function(a,b){var d=this,c=new Uc(this.data);a["export"](c);var e=Hg.process(c),f=[];this.shapes.h[a.characterId]=f;if(null!=e){var h=null;h=function(a){var c=e[a];d.processTag(d.data.getCharacter(c.id),function(){var g=d.getTransform(c.transform);g={id:a,bitmap:c.id,a:g.a,b:g.b,c:g.c,d:g.d,tx:g.tx,ty:g.ty};d.bitmapKeeps.h[c.id]=!0;f.push(g);a+1<e.length?100>d.processFrame++?h(a+1):d.nextFrames.push(function(){h(a+1)}):
b()})};0<e.length?h(0):b()}else{var k=--this.processShapesId,l={id:0,bitmap:k,a:1,b:0,c:0,d:1,tx:0,ty:0};this.processShapes.h[k]={tag:a,definition:l};f.push(l);var m=[];a=0;for(c=c.commands;a<c.length;)k=c[a],++a,0==k._hx_index&&m.push(k);var p=null;p=function(a){var c=m[a];0==c._hx_index?d.processTag(d.data.getCharacter(c.bitmap),function(){a+1<m.length?100>d.processFrame++?p(a+1):d.nextFrames.push(function(){p(a+1)}):b()}):a+1<m.length?100>d.processFrame++?p(a+1):d.nextFrames.push(function(){p(a+
1)}):b()};0<m.length?p(0):b()}},addBitmap:function(a,b){var d=this,c=null,e=function(){null!=c&&(d.bitmaps.h[a.characterId]={id:a.characterId,x:0,y:0,width:c.width,height:c.height},d.bitmapDatas.h[a.characterId]=c,a.characterId>d.maxId&&(d.maxId=a.characterId));b()};if(a instanceof vb){var f=1<a.level,h=a.zlibBitmapData;h.uncompress();h.position=0;if(3==a.bitmapFormat){var k=new H(new ArrayBuffer(3*a.bitmapColorTableSize)),l=null;f&&(l=new H(new ArrayBuffer(a.bitmapColorTableSize)));for(var m=0,p=
0,g=a.bitmapColorTableSize;p<g;){var q=p++,r=h.readUnsignedByte();k.b[m++]=r&255;r=h.readUnsignedByte();k.b[m++]=r&255;r=h.readUnsignedByte();k.b[m++]=r&255;f&&(r=h.readUnsignedByte(),l.b[q]=r&255)}g=4*Math.ceil(a.bitmapWidth/4);p=new H(new ArrayBuffer((a.bitmapWidth+1)*a.bitmapHeight));q=m=0;for(r=a.bitmapHeight;q<r;)q++,p.b[m++]=0,p.blit(m,ya.toBytes(h),h.position,a.bitmapWidth),m+=a.bitmapWidth,h.position+=g;h=new hb;h.add(Ud.CHeader({width:a.bitmapWidth,height:a.bitmapHeight,colbits:8,color:Yk.ColIndexed,
interlaced:!1}));h.add(Ud.CPalette(k));f&&h.add(Ud.CUnknown("tRNS",l));f=pako.deflate(p.b.bufferValue,{level:9});f=H.ofData(f);h.add(Ud.CData(f));h.add(Ud.CEnd);f=new Sc;(new tg(f)).write(h);ja.loadFromBytes(ya.fromBytes(f.getBytes())).onComplete(function(a){c=a;e()})}else c=new ja(a.bitmapWidth,a.bitmapHeight,f),c.image.buffer.premultiplied=!1,c.setPixels(c.rect,h),c.image.buffer.premultiplied=!0,c.image.set_premultiplied(!1),e()}else if(a instanceof Zb)if(a instanceof Ic){var t=U.__cast(a,Ic).bitmapAlphaData;
t.uncompress();t.position=0;if(null==this.alphaPalette)for(this.alphaPalette=new H(new ArrayBuffer(768)),k=f=0;256>k;)l=k++,this.alphaPalette.b[f++]=l&255,this.alphaPalette.b[f++]=l&255,this.alphaPalette.b[f++]=l&255;pa.loadFromBytes(ya.toBytes(a.bitmapData)).onComplete(function(a){if(null==a)c=new ja(1,1,!0,0),e();else{for(var b=new H(new ArrayBuffer((a.width+1)*a.height)),f=0,g=0,h=a.height;g<h;)g++,b.b[f++]=0,b.blit(f,ya.toBytes(t),t.position,a.width),f+=a.width,t.position+=a.width;f=new hb;f.add(Ud.CHeader({width:a.width,
height:a.height,colbits:8,color:Yk.ColIndexed,interlaced:!1}));f.add(Ud.CPalette(d.alphaPalette));b=pako.deflate(b.b.bufferValue,{level:9});b=H.ofData(b);f.add(Ud.CData(b));f.add(Ud.CEnd);b=new Sc;(new tg(b)).write(f);ja.loadFromBytes(ya.fromBytes(b.getBytes())).onComplete(function(b){var d=ja.fromImage(a);c=new ja(a.width,a.height,!0,0);b=pa.fromBitmapData(b);c.copyPixels(d,d.rect,new qa(0,0));d=pa.fromBitmapData(c);d.copyChannel(b,b.get_rect(),new kd,Lf.RED,Lf.ALPHA);d.buffer.premultiplied=!0;d.set_premultiplied(!1);
c=ja.fromImage(d);e()})}})}else ja.loadFromBytes(a.bitmapData).onComplete(function(a){c=a;e()});else if(a instanceof Sa)ja.loadFromBytes(a.bitmapData).onComplete(function(a){c=a;e()})},addFont:function(a,b){if(a instanceof Jc){var d={id:a.characterId,name:"Arial",cleanName:"Arial",color:16777215,size:12,bold:!1,italic:!1,ascent:0,descent:0,leading:0,bitmap:0,characters:[]};d.ascent=a.ascent;d.bold=a.bold;d.descent=a.descent;d.italic=a.italic;d.leading=a.leading;d.name=a.fontName;d.cleanName=Q.replace(Q.replace(Q.replace(Q.replace(Q.replace(Q.replace(d.name,
" Bold","")," Semibold","")," Italic",""),"-Bold",""),"-Semibold",""),"-Italic","");d.cleanName=d.cleanName.replace(/([a-z])([A-Z])/g,"$1 $2");this.fonts.h[a.characterId]=d}b()},addDynamicText:function(a,b){var d={font:0,align:"Left",size:12,color:0,text:"",html:"",leftMargin:0,rightMargin:0,indent:0,leading:0,x:0,y:0,width:0,height:0};a.hasTextColor&&(d.color=a.textColor);a.hasText&&(d.html=a.initialText);d.text=Q.replace(Q.replace(d.html,"</p>","\n"),"&apos;","'").replace(/<[^<]*>/g,"");d.text=
L.substr(d.text,0,d.text.length-1);d.size=a.fontHeight/20;if(a.hasLayout){switch(a.align){case 0:d.align="Left";break;case 1:d.align="Right";break;case 2:d.align="Center";break;case 3:d.align="Justify"}d.leftMargin=a.leftMargin;d.rightMargin=a.rightMargin;d.indent=a.indent;d.leading=a.leading}if(a.hasFont){var c=this.data.getCharacter(a.fontId);null!=c&&this.processTag(c,function(){});d.font=a.fontId;null==c&&Qc.warn("Font not found!")}c=a.bounds.get_rect();d.x=c.x;d.y=c.y;d.width=c.width;d.height=
c.height;this.texts.h[a.characterId]=d;b()},processSymbol:function(a,b){var d=this,c=this.data.getCharacter(a.tagId);c instanceof ic?this.processTag(c,function(){d.movieClips.h[a.tagId].name=a.name;b()}):b()},processTag:function(a,b){null==a||this.definitions.h.hasOwnProperty(a.characterId)?b():(this.definitions.h[a.characterId]=!0,a instanceof ic?this.addSprite(a,null,b):a instanceof Sa||a instanceof Zb||a instanceof vb?this.addBitmap(a,b):a instanceof qf||a instanceof wc?b():a instanceof $b?this.addDynamicText(a,
b):a instanceof Yb?b():a instanceof Pb?this.addShape(a,b):a instanceof Vc||a instanceof Bf?this.addFont(a,b):b())},__class__:rd};var Pk=function(){};m["openfl.swfty.exporter.FontExporter"]=Pk;Pk.__name__="openfl.swfty.exporter.FontExporter";Pk.exportGlyphs=function(a,b,d,c,e,f,h){null==c&&(c=!1);null==d&&(d=!1);null==b&&(b=24);null==e&&(e=Yf.ISO_8859_1);null!=f&&f.isNumeric&&(e=Yf.NUMERIC);var k=new pb;a=new dd(a,b|0,null!=f?f.color:16777215,d,c);k.set_defaultTextFormat(a);null!=f&&k.set_filters(f.filters);
f=new Y;a=[];b=0;for(d=e.length;b<d;){c=b++;c=e[c];var l=(new Ti).__b+=String.fromCodePoint(c);k.set_text(l);l=k.getCharBoundaries(0);null==l&&(l=new M(0,0,1,1));if(0<Math.ceil(l.width)&&0<Math.ceil(l.height)){var m=new ja(Math.ceil(l.width)+80,Math.ceil(l.height)+80,!0,0),p=new P;p.tx=-l.x+40;p.ty=-l.y+40;m.draw(k,p);m=Ue.trim(m);f.h[c]=m.bmpd;a.push({id:c,bitmap:h(),x:0,y:0,width:0,height:0,tx:l.x+m.rect.x-40,ty:l.y+m.rect.y-40,advance:l.width,charHeight:l.height})}}return{definitions:a,bitmaps:f}};
var Ve=function(a,b){this.exporter=a;Ia.call(this,b)};m["openfl.swfty.exporter.MovieClip"]=Ve;Ve.__name__="openfl.swfty.exporter.MovieClip";Ve.__super__=Ia;Ve.prototype=v(Ia.prototype,{exporter:null,getDisplayObject:function(a){var b=null,d=this.data.getCharacter(a);d instanceof ic?(b=new Ve(this.exporter,d),a=this.data.getScalingGrid(a),null!=a&&(a=a.splitter.get_rect().clone(),U.__cast(b,Ve).set_scale9BitmapGrid(a))):d instanceof vb||d instanceof Sa?b=new ai(this.exporter,d):d instanceof Pb?b=new Xf(this.exporter,
this.data,d):d instanceof Yb?b=new jd(this.data,d):d instanceof $b?b=new xc(this.data,d):d instanceof wc?b=new jc(this.data,d):d instanceof uc&&(b=new he(this.data,d));return b},__class__:Ve});var Xf=function(a,b,d){ha.call(this);if(null!=d)for(b=new Uc(b),d["export"](b),d=0,b=b.commands;d<b.length;){var c=b[d];++d;switch(c._hx_index){case 0:var e=c.smooth,f=c.repeat,h=c.matrix;c=a.bitmapDatas.h[c.bitmap];null!=c&&this.get_graphics().beginBitmapFill(c,h,f,e);break;case 1:e=c.alpha;c=c.color;this.get_graphics().beginFill(c,
e);break;case 2:e=c.focalPointRatio;f=c.interpolationMethod;h=c.spreadMethod;var k=c.matrix,l=c.ratios,m=c.alphas,p=c.colors;c=c.fillType;this.get_graphics().beginGradientFill(c,p,m,l,k,h,f,e);break;case 3:e=c.anchorY;f=c.anchorX;h=c.controlY;c=c.controlX;this.get_graphics().curveTo(c,h,f,e);break;case 4:this.get_graphics().endFill();break;case 5:e=c.miterLimit;f=c.joints;h=c.caps;k=c.scaleMode;l=c.pixelHinting;m=c.alpha;p=c.color;c=c.thickness;null!=c?this.get_graphics().lineStyle(c,p,m,l,k,h,f,
e):this.get_graphics().lineStyle();break;case 6:e=c.y;c=c.x;this.get_graphics().lineTo(c,e);break;case 7:e=c.y,c=c.x,this.get_graphics().moveTo(c,e)}}};m["openfl.swfty.exporter.Shape"]=Xf;Xf.__name__="openfl.swfty.exporter.Shape";Xf.__super__=Hb;Xf.prototype=v(Hb.prototype,{__class__:Xf});var Ue=function(){};m["openfl.swfty.exporter.TilemapExporter"]=Ue;Ue.__name__="openfl.swfty.exporter.TilemapExporter";Ue.trim=function(a){var b=a.width,d=a.height,c=a.getColorBoundsRect(-16777216,0,!1),e=new ja(c.width|
0,c.height|0,!0,0);e.copyPixels(a,c,new qa);a.dispose();return{bmpd:e,rect:c,originalWidth:b,originalHeight:d}};Ue.pack=function(a,b,d,c){null==c&&(c=!0);null==d&&(d=128);null==b&&(b=128);for(var e=null;65536>=b&&65536>=d;){var f=[],h=new pg(b,d);try{for(var k=0,l=a.length;k<l;){var m=k++,p=a[m],g=null!=p?h.insert(p.width+2,p.height+2):h.insert(1,1);if(null==g)throw new w("Not enough space");f.push({id:m,x:(g.x|0)+1,y:(g.y|0)+1,width:(g.width|0)-2,height:(g.height|0)-2})}e=f}catch(ca){fa.lastException=
ca,e=null}if(null==e)b==d?b*=2:d*=2;else break}if(null!=e){b=new ja(b,d,!0,0);d=0;for(f=e.length;d<f;)k=d++,h=e[k],k=a[k],null!=k&&b.copyPixels(k,k.rect,new qa(h.x,h.y));c&&(b.setPixel32(0,0,-16777216),a=Ue.trim(b),b.dispose(),b=a.bmpd,b.setPixel32(0,0,0));return{tiles:e,bitmapData:b}}return null};var We=function(a,b,d,c){this.mouseUps=[];this.mouseDowns=[];this.renders=[];this.mcs=new ea;this.tiles=new Y;this.mouse=new Qj;this.swfty=Tc.None;this.pause=!1;this.id="";this.disposed=!1;Md.call(this,
a,b,d,c)};m["swfty.renderer.BaseLayer"]=We;We.__name__="swfty.renderer.BaseLayer";We.__super__=Md;We.prototype=v(Md.prototype,{disposed:null,_width:null,_height:null,id:null,pause:null,swfty:null,mouse:null,tiles:null,mcs:null,renders:null,mouseDowns:null,mouseUps:null,base:null,get_base:function(){null==this.base&&(this.base=new Ub(this,null,null));return this.base},baseLayout:null,get_baseLayout:function(){null==this.baseLayout&&(this.baseLayout=new Ub(this,null,null),this.get_base().addSprite(this.baseLayout));
return this.baseLayout},update:function(a){if(!this.pause){for(var b=0,d=this.renders;b<d.length;){var c=d[b];++b;c(a)}if(this.mouse.leftChanged)switch(b=this.mouse.y,d=this.mouse.x,this.mouse.left._hx_index){case 0:c=0;for(var e=this.mouseDowns;c<e.length;){var f=e[c];++c;f(d,b)}break;case 1:for(c=0,e=this.mouseUps;c<e.length;)f=e[c],++c,f(d,b)}this.get_base().update(a);a=this.mouse;1==a.left._hx_index&&(a.left=Qk.Normal,a.leftChanged=!0);1==a.middle._hx_index&&(a.middle=Qk.Normal,a.middleChanged=
!0);1==a.right._hx_index&&(a.right=Qk.Normal,a.rightChanged=!0);a.leftChanged=!1;a.rightChanged=!1;a.middleChanged=!1}},removeAll:function(){this.get_baseLayout().removeAll()},addSprite:function(a){this.get_baseLayout().addSprite(a)},removeSprite:function(a){this.get_baseLayout().removeSprite(a)},emptyTile:function(){throw new w("Not implemented");},get:function(a){var b=this.mcs;if(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))return b=this.mcs,new Ub(this,null!=t[a]?b.getReserved(a):b.h[a],
a);switch(this.swfty._hx_index){case 0:Qc.warn("Linkage: "+a+" does not exists!")}return new Ub(this,null,a)},reload:function(){this.get_base().reload()},loadSWFTY:function(a){for(var b=a.definitions.iterator();b.hasNext();){var d=b.next();if(null!=d.name&&""!=d.name){var c=this.mcs,e=d.name;null!=t[e]?c.setReserved(e,d):c.h[e]=d}}this.swfty=Tc.Some(a);this.id=a.name},loadBytes:function(a,b,d){var c=this;if(this.disposed)null!=d&&d("Layer was disposed");else{var e=new ea;a=new ci(a);for(var f;;){f=
a.getNextEntry();if(null==f)break;var h=f.fileName;null!=t[h]?e.setReserved(h,f):e.h[h]=f}if((null!=t["tilemap.png"]?e.existsReserved("tilemap.png"):e.h.hasOwnProperty("tilemap.png"))&&((null!=t["definitions.json"]?e.existsReserved("definitions.json"):e.h.hasOwnProperty("definitions.json"))||(null!=t["definitions.bin"]?e.existsReserved("definitions.bin"):e.h.hasOwnProperty("definitions.bin")))){if(null!=t["definitions.json"]?e.existsReserved("definitions.json"):e.h.hasOwnProperty("definitions.json")){a=
bd.getString(null!=t["definitions.json"]?e.getReserved("definitions.json"):e.h["definitions.json"]);try{var k=JSON.parse(a)}catch(ql){fa.lastException=ql,k=null}if(null==k)var l=null;else{a=new Y;f=0;for(h=k.tiles;f<h.length;){var m=h[f];++f;var p=m.id;m=new Tb(m.id,m.x,m.y,m.width,m.height);a.h[p]=m}f=new Y;h=0;for(p=k.fonts;h<p.length;){var g=p[h];++h;m=g.id;var q=a,r=g.id,u=g.name,v=g.cleanName,w=g.color,y=g.size,z=g.bold,x=g.italic,B=g.bitmap,E=g.ascent,F=g.descent,G=g.leading,H=new Y,K=0;for(g=
g.characters;K<g.length;){var L=g[K];++K;var N=L.id;L=new Oc(L.id,q.h[L.bitmap],L.tx,L.ty,L.advance,L.height);H.h[N]=L}q=new Kb(r,u,v,w,y,z,x,B,E,F,G,H);f.h[m]=q}h=new Y;p=0;for(m=k.definitions;p<m.length;){x=m[p];++p;q=x.id;r=a;u=f;v=x.id;w=x.name;y=[];z=0;for(x=x.children;z<x.length;){B=x[z];++z;E=B.id;F=h.h[B.id];G=B.a;H=B.b;K=B.c;g=B.d;N=B.tx;L=B.ty;for(var Q=[],P=0,M=B.shapes;P<M.length;){var R=M[P];++P;Q.push(new Bc(R.id,R.a,R.b,R.c,R.d,R.tx,R.ty,r.h[R.bitmap]))}P=B.mask;null!=B.text?(M=B.text,
M=new Cc(u.h[M.font],M.align,M.size,M.color,M.text,M.html,M.leftMargin,M.rightMargin,M.leading,M.indent,M.x,M.y,M.width,M.height)):M=null;R=B.blendMode;if(null!=B.color){var S=B.color;S=new Dc(S.r,S.g,S.b,S.rAdd,S.gAdd,S.bAdd)}else S=null;y.push(new pc(E,F,G,H,K,g,N,L,Q,P,M,R,S,B.alpha,B.name,B.visible))}r=new qc(v,w,y);h.h[q]=r}l=new Pc(k.tilemap.width,k.tilemap.height,k.name,h,a,f)}}else k=bd.getBytes(null!=t["definitions.bin"]?e.getReserved("definitions.bin"):e.h["definitions.bin"]),l=D.load(k,
Pc);null==l?null!=d&&d("Corrupted file"):(e=bd.getBytes(null!=t["tilemap.png"]?e.getReserved("tilemap.png"):e.h["tilemap.png"]),this.loadTexture(e,l,function(){c.disposed||(c.loadSWFTY(l),c.reload(),null!=b&&b())},function(a){c.disposed||null!=d&&d(a)}))}else null!=d&&d("Missing file")}},loadTexture:function(a,b,d,c){throw new w("Not implemented");},dispose:function(){this.disposed||(this.disposed=!0,this.renders=[],this.mouseDowns=[],this.mouseUps=[],this.swfty=Tc.None,this.tiles=new Y,this.mcs=
new ea,this.get_baseLayout().dispose(),this.baseLayout=null,this.get_base().dispose(),this.base=null)},__class__:We});var mg=function(a,b){We.call(this,null==a?256:a,null==b?256:b);this._width=a;this._height=b};m["openfl.swfty.renderer.FinalLayer"]=mg;mg.__name__="openfl.swfty.renderer.FinalLayer";mg.__super__=We;mg.prototype=v(We.prototype,{get_base:function(){null==this.base&&(this.base=new Ub(this,null,null),this.addTile(this.base));return this.base},emptyTile:function(){return-1},loadTexture:function(a,
b,d,c){var e=this;ja.loadFromBytes(ya.fromBytes(a)).onComplete(function(a){var c=[];e.tiles=new Y;for(var f=b.tiles.iterator();f.hasNext();){var l=f.next();e.tiles.h[l.id]=c.length;c.push(new M(l.x,l.y,l.width,l.height))}c=new Hj(a,c);e.set_tileset(c);ra.trace("Tilemap: "+a.width+", "+a.height,{fileName:"openfl/swfty/renderer/Layer.hx",lineNumber:60,className:"openfl.swfty.renderer.FinalLayer",methodName:"loadTexture"});null!=d&&d()}).onError(c)},__class__:mg});var Pd=function(a,b,d){this.disposed=
this.og=this.loaded=!1;Nd.call(this);this.layer=a;this._linkage=d;this._renders=[];this._rendersMap=new ea;this._sprites=[];this._names=new ea;this._texts=new ea;this._pruneRenders=[];this._pruneSprites=[];this.load(b)};m["swfty.renderer.BaseSprite"]=Pd;Pd.__name__="swfty.renderer.BaseSprite";Pd.__super__=Nd;Pd.prototype=v(Nd.prototype,{disposed:null,og:null,layer:null,loaded:null,_linkage:null,_name:null,_parent:null,_sprites:null,_names:null,_texts:null,_definition:null,_bounds:null,_renders:null,
_rendersMap:null,_pruneRenders:null,_pruneSprites:null,update:function(a){for(var b=0,d=this._sprites;b<d.length;){var c=d[b];++b;c.update(a)}b=0;for(d=this._renders;b<d.length;)c=d[b],++b,c(a);for(;0<this._pruneRenders.length;)L.remove(this._renders,this._pruneRenders.pop());for(;0<this._pruneSprites.length;)L.remove(this._sprites,this._pruneSprites.pop())},removeAll:function(){for(;0<this.get_numTiles();)this.removeTileAt(0);this._sprites=[]},load:function(a){this._definition=a;null!=a&&(this._linkage=
a.name);var b=this._sprites;this.removeAll();if(null!=a){var d=!0,c=!0,e=!0,f=!0,h=!0,k=0;for(a=a.children;k<a.length;){var l=a[k];++k;this.loaded||(h=f=e=c=d=!0);if(null!=l.text){var m=l.name;if(null!=m&&""!=m){m=this._texts;var p=l.name;m=null!=t[p]?m.existsReserved(p):m.h.hasOwnProperty(p)}else m=!1;if(m){m=this._texts;p=l.name;m=null!=t[p]?m.getReserved(p):m.h[p];if(!this.loaded){m.get_visible()||(d=!1);if(0!=m.get_x()||0!=m.get_y())c=!1;if(1!=m.get_scaleX()||1!=m.get_scaleY())e=!1;0!=m.get_rotation()&&
(f=!1);1!=m.get_alpha()&&(h=!1)}m.loadText(l.text);m.refresh();p=0;for(var g=m._sprites;p<g.length;){var q=g[p];++p;q.refresh()}}else m=new Xe(this.layer,l.text),p=l.name,null!=p&&""!=p&&(m._name=l.name,p=this._texts,g=l.name,null!=t[g]?p.setReserved(g,m):p.h[g]=m);m.og=!0;if(c&&e&&f){p=m;g=l.a;q=l.b;var r=l.c,u=l.d,v=l.tx,w=l.ty;p.get_matrix().a=g;p.get_matrix().b=q;p.get_matrix().c=r;p.get_matrix().d=u;p.get_matrix().tx=v;p.get_matrix().ty=w}h&&m.set_alpha(l.alpha);d&&m.set_visible(l.visible)}else{m=
l.name;null!=m&&""!=m?(m=this._names,p=l.name,m=null!=t[p]?m.existsReserved(p):m.h.hasOwnProperty(p)):m=!1;if(m){m=this._names;p=l.name;m=null!=t[p]?m.getReserved(p):m.h[p];if(!this.loaded){m.get_visible()||(d=!1);if(0!=m.get_x()||0!=m.get_y())c=!1;if(1!=m.get_scaleX()||1!=m.get_scaleY())e=!1;0!=m.get_rotation()&&(f=!1);1!=m.get_alpha()&&(h=!1)}m.refresh();m.load(l.mc)}else m=new Ub(this.layer,l.mc,null),p=l.name,null!=p&&""!=p&&(m._name=l.name,p=this._names,g=l.name,null!=t[g]?p.setReserved(g,m):
p.h[g]=m);m.og=!0;c&&e&&f&&(p=m,g=l.a,q=l.b,r=l.c,u=l.d,v=l.tx,w=l.ty,p.get_matrix().a=g,p.get_matrix().b=q,p.get_matrix().c=r,p.get_matrix().d=u,p.get_matrix().tx=v,p.get_matrix().ty=w);h&&m.set_alpha(l.alpha);d&&m.set_visible(l.visible);null!=l.color?(p=l.color,m.set_colorTransform(new Ca(p.r/255,p.g/255,p.b/255,1,p.rAdd,p.gAdd,p.bAdd,0))):m.set_colorTransform(null);p=0;for(l=l.shapes;p<l.length;){g=l[p];++p;q=this.layer;r=g.bitmap.id;q.tiles.h.hasOwnProperty(r)?q=q.tiles.h[r]:(Qc.warn("Missing shape: "+
r),u=q.emptyTile(),q=q.tiles.h[r]=u);q=new $c(q);r=g.a;u=g.b;v=g.c;w=g.d;var y=g.tx;g=g.ty;q.get_matrix().a=r;q.get_matrix().b=u;q.get_matrix().c=v;q.get_matrix().d=w;q.get_matrix().tx=y;q.get_matrix().ty=g;m.addBitmap(q)}}this.addSprite(m)}for(d=0;d<b.length;)c=b[d],++d,c.og||(e=c._name,null!=e&&""!=e&&Qc.warn("Missing Child: "+c._name),c.reload(),this.addSprite(c));this.loaded=!0}},reload:function(){if(null!=this._linkage){var a=this._linkage,b=this.layer.mcs;(null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a))?
(a=this._linkage,b=this.layer.mcs,a=null!=t[a]?b.getReserved(a):b.h[a],this.load(a)):Qc.warn("Definition does not exists: "+this._linkage)}else{a=0;for(b=this._sprites;a<b.length;){var d=b[a];++a;d.reload()}this.loaded=!0}},addSprite:function(a){this._sprites.push(a)},removeSprite:function(a){a._parent=null;this._pruneSprites.push(a)},dispose:function(){if(!this.disposed){this.disposed=!0;for(var a=0,b=this._sprites;a<b.length;){var d=b[a];++a;d.dispose()}this._renders=[];this._rendersMap=new ea;
this._sprites=[];this._names=new ea;this._texts=new ea;this._pruneRenders=[];this._pruneSprites=[];this._bounds=this._parent=null}},__class__:Pd});var Ub=function(a,b,d){this.set_tileset(a.get_tileset());Pd.call(this,a,b,d)};m["openfl.swfty.renderer.FinalSprite"]=Ub;Ub.__name__="openfl.swfty.renderer.FinalSprite";Ub.create=function(a,b,d){return new Ub(a,b,d)};Ub.__super__=Pd;Ub.prototype=v(Pd.prototype,{refresh:function(){this.set_tileset(this.layer.get_tileset())},calcBounds:function(a){a=this.getBounds(null==
a?this:a);return new Rj(a.x,a.y,a.width,a.height)},top:function(){null!=this.parent&&this.parent.setTileIndex(this,this.parent.get_numTiles()-1)},bottom:function(){null!=this.parent&&this.parent.setTileIndex(this,0)},addSprite:function(a){a._parent=this;Pd.prototype.addSprite.call(this,a);this.addTile(a)},removeSprite:function(a){Pd.prototype.removeSprite.call(this,a);this.removeTile(a)},addBitmap:function(a){this.addTile(a)},removeBitmap:function(a){this.removeTile(a)},__class__:Ub});var Ne=function(a){this.parentDomain=
null!=a?a:Ne.currentDomain};m["openfl.system.ApplicationDomain"]=Ne;Ne.__name__="openfl.system.ApplicationDomain";Ne.prototype={parentDomain:null,__class__:Ne};var zb=function(a){Fb.call(this,a)};m["openfl.text.Font"]=zb;zb.__name__="openfl.text.Font";zb.enumerateFonts=function(a){return zb.__registeredFonts};zb.fromFile=function(a){var b=new zb;b.__fromFile(a);return b};zb.loadFromName=function(a){return Fb.loadFromName(a).then(function(a){var b=new zb;b.__fromLimeFont(a);return db.withValue(b)})};
zb.__super__=Fb;zb.prototype=v(Fb.prototype,{__fromLimeFont:function(a){this.__copyFrom(a)},__class__:zb});var Rf=function(){ha.call(this);this.__graphics=new Db(this)};m["openfl.text.StaticText"]=Rf;Rf.__name__="openfl.text.StaticText";Rf.__super__=ha;Rf.prototype=v(ha.prototype,{text:null,__class__:Rf});var dd=function(a,b,d,c,e,f,h,k,l,m,p,g,q){this.font=a;this.size=b;this.color=d;this.bold=c;this.italic=e;this.underline=f;this.url=h;this.target=k;this.align=l;this.leftMargin=m;this.rightMargin=
p;this.indent=g;this.leading=q};m["openfl.text.TextFormat"]=dd;dd.__name__="openfl.text.TextFormat";dd.prototype={align:null,blockIndent:null,bold:null,bullet:null,color:null,font:null,indent:null,italic:null,kerning:null,leading:null,leftMargin:null,letterSpacing:null,rightMargin:null,size:null,tabStops:null,target:null,underline:null,url:null,__ascent:null,__descent:null,clone:function(){var a=new dd(this.font,this.size,this.color,this.bold,this.italic,this.underline,this.url,this.target);a.align=
this.align;a.leftMargin=this.leftMargin;a.rightMargin=this.rightMargin;a.indent=this.indent;a.leading=this.leading;a.blockIndent=this.blockIndent;a.bullet=this.bullet;a.kerning=this.kerning;a.letterSpacing=this.letterSpacing;a.tabStops=this.tabStops;a.__ascent=this.__ascent;a.__descent=this.__descent;return a},__merge:function(a){null!=a.font&&(this.font=a.font);null!=a.size&&(this.size=a.size);null!=a.color&&(this.color=a.color);null!=a.bold&&(this.bold=a.bold);null!=a.italic&&(this.italic=a.italic);
null!=a.underline&&(this.underline=a.underline);null!=a.url&&""!=a.url&&(this.url=a.url);""==a.url&&null==this.url&&(this.url="");null!=a.target&&(this.target=a.target);null!=a.align&&(this.align=a.align);null!=a.leftMargin&&(this.leftMargin=a.leftMargin);null!=a.rightMargin&&(this.rightMargin=a.rightMargin);null!=a.indent&&(this.indent=a.indent);null!=a.leading&&(this.leading=a.leading);null!=a.blockIndent&&(this.blockIndent=a.blockIndent);null!=a.bullet&&(this.bullet=a.bullet);null!=a.kerning&&
(this.kerning=a.kerning);null!=a.letterSpacing&&(this.letterSpacing=a.letterSpacing);null!=a.tabStops&&(this.tabStops=a.tabStops);null!=a.__ascent&&(this.__ascent=a.__ascent);null!=a.__descent&&(this.__descent=a.__descent)},__class__:dd};var Ek={};m["openfl.text._TextFormatAlign.TextFormatAlign_Impl_"]=Ek;Ek.__name__="openfl.text._TextFormatAlign.TextFormatAlign_Impl_";Ek.fromString=function(a){switch(a){case "center":return 0;case "end":return 1;case "justify":return 2;case "left":return 3;case "right":return 4;
case "start":return 5;default:return null}};var Aa=function(){ba.call(this);Aa.__instances.push(this)};m["openfl.ui.GameInput"]=Aa;Aa.__name__="openfl.ui.GameInput";Aa.__getDevice=function(a){if(null==a)return null;if(null==Aa.__devices.h.__keys__[a.__id__]){var b=lb.__getDeviceData()[a.id].id,d=lb.__getDeviceData();b=new Sj(b,d[a.id].id);Aa.__deviceList.push(b);Aa.__devices.set(a,b);Aa.numDevices=Aa.__deviceList.length}return Aa.__devices.h[a.__id__]};Aa.__onGamepadAxisMove=function(a,b,d){a=Aa.__getDevice(a);
if(null!=a&&a.enabled){if(!a.__axis.h.hasOwnProperty(b)){switch(b){case 0:var c="LEFT_X";break;case 1:c="LEFT_Y";break;case 2:c="RIGHT_X";break;case 3:c="RIGHT_Y";break;case 4:c="TRIGGER_LEFT";break;case 5:c="TRIGGER_RIGHT";break;default:c="UNKNOWN ("+b+")"}c=new ec(a,"AXIS_"+c,-1,1);a.__axis.h[b]=c;a.__controls.push(c)}b=a.__axis.h[b];b.value=d;b.dispatchEvent(new R("change"))}};Aa.__onGamepadButtonDown=function(a,b){a=Aa.__getDevice(a);if(null!=a&&a.enabled){if(!a.__button.h.hasOwnProperty(b)){switch(b){case 0:var d=
"A";break;case 1:d="B";break;case 2:d="X";break;case 3:d="Y";break;case 4:d="BACK";break;case 5:d="GUIDE";break;case 6:d="START";break;case 7:d="LEFT_STICK";break;case 8:d="RIGHT_STICK";break;case 9:d="LEFT_SHOULDER";break;case 10:d="RIGHT_SHOULDER";break;case 11:d="DPAD_UP";break;case 12:d="DPAD_DOWN";break;case 13:d="DPAD_LEFT";break;case 14:d="DPAD_RIGHT";break;default:d="UNKNOWN ("+b+")"}d=new ec(a,"BUTTON_"+d,0,1);a.__button.h[b]=d;a.__controls.push(d)}b=a.__button.h[b];b.value=1;b.dispatchEvent(new R("change"))}};
Aa.__onGamepadButtonUp=function(a,b){a=Aa.__getDevice(a);if(null!=a&&a.enabled){if(!a.__button.h.hasOwnProperty(b)){switch(b){case 0:var d="A";break;case 1:d="B";break;case 2:d="X";break;case 3:d="Y";break;case 4:d="BACK";break;case 5:d="GUIDE";break;case 6:d="START";break;case 7:d="LEFT_STICK";break;case 8:d="RIGHT_STICK";break;case 9:d="LEFT_SHOULDER";break;case 10:d="RIGHT_SHOULDER";break;case 11:d="DPAD_UP";break;case 12:d="DPAD_DOWN";break;case 13:d="DPAD_LEFT";break;case 14:d="DPAD_RIGHT";break;
default:d="UNKNOWN ("+b+")"}d=new ec(a,"BUTTON_"+d,0,1);a.__button.h[b]=d;a.__controls.push(d)}b=a.__button.h[b];b.value=0;b.dispatchEvent(new R("change"))}};Aa.__onGamepadConnect=function(a){a=Aa.__getDevice(a);if(null!=a)for(var b=0,d=Aa.__instances;b<d.length;){var c=d[b];++b;c.dispatchEvent(new Re("deviceAdded",!0,!1,a))}};Aa.__onGamepadDisconnect=function(a){var b=Aa.__devices.h[a.__id__];if(null!=b){null!=Aa.__devices.h.__keys__[a.__id__]&&(L.remove(Aa.__deviceList,Aa.__devices.h[a.__id__]),
Aa.__devices.remove(a));Aa.numDevices=Aa.__deviceList.length;a=0;for(var d=Aa.__instances;a<d.length;){var c=d[a];++a;c.dispatchEvent(new Re("deviceRemoved",!0,!1,b))}}};Aa.__super__=ba;Aa.prototype=v(ba.prototype,{addEventListener:function(a,b,d,c,e){null==e&&(e=!1);null==c&&(c=0);null==d&&(d=!1);ba.prototype.addEventListener.call(this,a,b,d,c,e);if("deviceAdded"==a)for(a=0,b=Aa.__deviceList;a<b.length;)d=b[a],++a,this.dispatchEvent(new Re("deviceAdded",!0,!1,d))},__class__:Aa});var ec=function(a,
b,d,c,e){null==e&&(e=0);ba.call(this);this.device=a;this.id=b;this.minValue=d;this.maxValue=c;this.value=e};m["openfl.ui.GameInputControl"]=ec;ec.__name__="openfl.ui.GameInputControl";ec.__super__=ba;ec.prototype=v(ba.prototype,{device:null,id:null,maxValue:null,minValue:null,value:null,__class__:ec});var Sj=function(a,b){this.__controls=[];this.__button=new Y;this.__axis=new Y;this.id=a;this.name=b;a=new ec(this,"AXIS_0",-1,1);this.__axis.h[0]=a;this.__controls.push(a);a=new ec(this,"AXIS_1",-1,
1);this.__axis.h[1]=a;this.__controls.push(a);a=new ec(this,"AXIS_2",-1,1);this.__axis.h[2]=a;this.__controls.push(a);a=new ec(this,"AXIS_3",-1,1);this.__axis.h[3]=a;this.__controls.push(a);a=new ec(this,"AXIS_4",-1,1);this.__axis.h[4]=a;this.__controls.push(a);a=new ec(this,"AXIS_5",-1,1);this.__axis.h[5]=a;this.__controls.push(a);for(b=0;15>b;){var d=b++;a=new ec(this,"BUTTON_"+d,0,1);this.__button.h[d]=a;this.__controls.push(a)}};m["openfl.ui.GameInputDevice"]=Sj;Sj.__name__="openfl.ui.GameInputDevice";
Sj.prototype={enabled:null,id:null,name:null,__axis:null,__button:null,__controls:null,__class__:Sj};var Hk=function(){};m["openfl.ui.Keyboard"]=Hk;Hk.__name__="openfl.ui.Keyboard";Hk.__getCharCode=function(a,b){null==b&&(b=!1);if(b){switch(a){case 48:return 41;case 49:return 33;case 50:return 64;case 51:return 35;case 52:return 36;case 53:return 37;case 54:return 94;case 55:return 38;case 56:return 42;case 57:return 40;case 186:return 58;case 187:return 43;case 188:return 60;case 189:return 95;case 190:return 62;
case 191:return 63;case 192:return 126;case 219:return 123;case 220:return 124;case 221:return 125;case 222:return 34}if(65<=a&&90>=a)return a-65+65}else{switch(a){case 8:return 8;case 9:return 9;case 13:return 13;case 27:return 27;case 32:return 32;case 186:return 59;case 187:return 61;case 188:return 44;case 189:return 45;case 190:return 46;case 191:return 47;case 192:return 96;case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39}if(48<=a&&57>=a)return a-48+48;if(65<=a&&90>=
a)return a-65+97}if(96<=a&&105>=a)return a-96+48;switch(a){case 8:return 8;case 13:return 13;case 46:return 127;case 106:return 42;case 107:return 43;case 108:return 44;case 110:return 45;case 111:return 46}return 0};var Ik=function(){};m["openfl.ui.Mouse"]=Ik;Ik.__name__="openfl.ui.Mouse";var Tj=function(){};m["openfl.utils.IAssetCache"]=Tj;Tj.__name__="openfl.utils.IAssetCache";Tj.prototype={get_enabled:null,getBitmapData:null,hasBitmapData:null,removeBitmapData:null,setBitmapData:null,__class__:Tj};
var di=function(){this.__enabled=!0;this.bitmapData=new ea;this.font=new ea;this.sound=new ea};m["openfl.utils.AssetCache"]=di;di.__name__="openfl.utils.AssetCache";di.__interfaces__=[Tj];di.prototype={bitmapData:null,font:null,sound:null,__enabled:null,getBitmapData:function(a){var b=this.bitmapData;return null!=t[a]?b.getReserved(a):b.h[a]},hasBitmapData:function(a){var b=this.bitmapData;return null!=t[a]?b.existsReserved(a):b.h.hasOwnProperty(a)},removeBitmapData:function(a){Z.cache.image.remove(a);
return this.bitmapData.remove(a)},setBitmapData:function(a,b){var d=this.bitmapData;null!=t[a]?d.setReserved(a,b):d.h[a]=b},get_enabled:function(){return this.__enabled},__class__:di};var nc=function(){};m["openfl.utils.Assets"]=nc;nc.__name__="openfl.utils.Assets";nc.exists=function(a,b){return Z.exists(a,b)};nc.getBitmapData=function(a,b){null==b&&(b=!0);if(b&&nc.cache.get_enabled()&&nc.cache.hasBitmapData(a)){var d=nc.cache.getBitmapData(a);if(nc.isValidBitmapData(d))return d}d=Z.getImage(a,!1);
return null!=d?(d=ja.fromImage(d),b&&nc.cache.get_enabled()&&nc.cache.setBitmapData(a,d),d):null};nc.isValidBitmapData=function(a){return null!=a&&null!=a.image};var ya={};m["openfl.utils._ByteArray.ByteArray_Impl_"]=ya;ya.__name__="openfl.utils._ByteArray.ByteArray_Impl_";ya.fromBytes=function(a){return null==a?null:a instanceof ta?a:ta.fromBytes(a)};ya.toBytePointer=function(a){vk.set(ya.__bytePointer,a,null,null,a.position);return ya.__bytePointer};ya.toBytes=function(a){return a};ya.get_length=
function(a){return null==a?0:a.length};var ak={};m["openfl.utils._CompressionAlgorithm.CompressionAlgorithm_Impl_"]=ak;ak.__name__="openfl.utils._CompressionAlgorithm.CompressionAlgorithm_Impl_";ak.toString=function(a){switch(a){case 0:return"deflate";case 1:return"lzma";case 2:return"zlib";default:return null}};var yk={};m["openfl.utils._Endian.Endian_Impl_"]=yk;yk.__name__="openfl.utils._Endian.Endian_Impl_";yk.toLimeEndian=function(a){switch(a){case 0:return Hf.BIG_ENDIAN;case 1:return Hf.LITTLE_ENDIAN;
default:return null}};var Rk=function(){};m["haxe.lang.Iterator"]=Rk;Rk.__name__="haxe.lang.Iterator";Rk.prototype={hasNext:null,next:null,__class__:Rk};var Sk=function(){};m["haxe.lang.Iterable"]=Sk;Sk.__name__="haxe.lang.Iterable";Sk.prototype={iterator:null,__class__:Sk};var rg=function(a,b){null==b&&(b=0);if(isNaN(a)||0>a)throw new w(new Oa("The delay specified is negative or not a finite number"));ba.call(this);this.__delay=a;this.__repeatCount=b;this.running=!1;this.currentCount=0};m["openfl.utils.Timer"]=
rg;rg.__name__="openfl.utils.Timer";rg.__super__=ba;rg.prototype=v(ba.prototype,{currentCount:null,running:null,__delay:null,__repeatCount:null,__timerID:null,start:function(){this.running||(this.running=!0,this.__timerID=window.setInterval(u(this,this.timer_onTimer),this.__delay|0))},stop:function(){this.running=!1;null!=this.__timerID&&(window.clearInterval(this.__timerID),this.__timerID=null)},timer_onTimer:function(){this.currentCount++;0<this.__repeatCount&&this.currentCount>=this.__repeatCount?
(this.stop(),this.dispatchEvent(new Te("timer")),this.dispatchEvent(new Te("timerComplete"))):this.dispatchEvent(new Te("timer"))},__class__:rg});var qc=function(a,b,d){this.__uid=D.SEQ<<24|++D.UID;this.id=a;this.name=b;this.children=d};m["swfty.MovieClipType"]=qc;qc.__name__="swfty.MovieClipType";qc.__interfaces__=[zc];qc.prototype={id:null,name:null,children:null,__uid:null,getCLID:function(){return qc.__clid},serialize:function(a){var b=this.id;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),
a.out.addInt32(b));b=this.name;if(null==b)a.out.addByte(0);else{b=H.ofString(b);var d=b.length+1;0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d));a.out.add(b)}b=this.children;if(null==b)a.out.addByte(0);else for(d=b.length+1,0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d)),d=0;d<b.length;){var c=b[d];++d;a.addKnownRef(c)}},getSerializeSchema:function(){var a=new Ua;a.fieldsNames.push("id");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("name");a.fieldsTypes.push(x.PString);
a.fieldsNames.push("children");a.fieldsTypes.push(x.PArray(x.PSerializable("swfty.SpriteType")));a.isFinal=D.isClassFinal(qc.__clid);return a},unserializeInit:function(){},unserialize:function(a){var b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.id=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);if(0==b)b=null;else{--b;var d=a.input.getString(a.inPos,b);a.inPos+=b;b=d}this.name=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=
4);var c=b;if(0==c)a=null;else{--c;b=[];d=0;for(var e=c;d<e;){var f=d++;c=a.getRef(pc,pc.__clid);b[f]=c}a=b}this.children=a},__class__:qc};var pc=function(a,b,d,c,e,f,h,k,l,m,p,g,q,r,t,u){this.__uid=D.SEQ<<24|++D.UID;this.id=a;this.mc=b;this.a=d;this.b=c;this.c=e;this.d=f;this.tx=h;this.ty=k;this.shapes=l;this.mask=m;this.text=p;this.blendMode=g;this.color=q;this.alpha=r;this.name=t;this.visible=u};m["swfty.SpriteType"]=pc;pc.__name__="swfty.SpriteType";pc.__interfaces__=[zc];pc.prototype={mc:null,
id:null,a:null,b:null,c:null,d:null,tx:null,ty:null,shapes:null,mask:null,text:null,blendMode:null,color:null,alpha:null,name:null,visible:null,__uid:null,getCLID:function(){return pc.__clid},serialize:function(a){a.addKnownRef(this.mc);var b=this.id;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));a.out.addFloat(this.a);a.out.addFloat(this.b);a.out.addFloat(this.c);a.out.addFloat(this.d);a.out.addFloat(this.tx);a.out.addFloat(this.ty);b=this.shapes;if(null==b)a.out.addByte(0);
else{var d=b.length+1;0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d));for(d=0;d<b.length;){var c=b[d];++d;a.addKnownRef(c)}}b=this.mask;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));a.addKnownRef(this.text);b=this.blendMode;null==b?a.out.addByte(0):(b=H.ofString(b),d=b.length+1,0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d)),a.out.add(b));a.addKnownRef(this.color);a.out.addFloat(this.alpha);b=this.name;null==b?a.out.addByte(0):(b=H.ofString(b),
d=b.length+1,0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d)),a.out.add(b));a.out.addByte(this.visible?1:0)},getSerializeSchema:function(){var a=new Ua;a.fieldsNames.push("mc");a.fieldsTypes.push(x.PSerializable("swfty.MovieClipType"));a.fieldsNames.push("id");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("a");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("b");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("c");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("d");a.fieldsTypes.push(x.PFloat);
a.fieldsNames.push("tx");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("ty");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("shapes");a.fieldsTypes.push(x.PArray(x.PSerializable("swfty.ShapeType")));a.fieldsNames.push("mask");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("text");a.fieldsTypes.push(x.PSerializable("swfty.TextType"));a.fieldsNames.push("blendMode");a.fieldsTypes.push(x.PString);a.fieldsNames.push("color");a.fieldsTypes.push(x.PSerializable("swfty.ColorTransformType"));a.fieldsNames.push("alpha");
a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("name");a.fieldsTypes.push(x.PString);a.fieldsNames.push("visible");a.fieldsTypes.push(x.PBool);a.isFinal=D.isClassFinal(pc.__clid);return a},unserializeInit:function(){},unserialize:function(a){this.mc=a.getRef(qc,qc.__clid);var b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.id=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.a=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.b=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.c=
b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.d=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.tx=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.ty=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);var d=b;if(0==d)b=null;else{--d;b=[];for(var c=0,e=d;c<e;){var f=c++;d=a.getRef(Bc,Bc.__clid);b[f]=d}}this.shapes=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.mask=b;this.text=a.getRef(Cc,Cc.__clid);b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),
a.inPos+=4);0==b?b=null:(--b,c=a.input.getString(a.inPos,b),a.inPos+=b,b=c);this.blendMode=b;this.color=a.getRef(Dc,Dc.__clid);b=a.input.getFloat(a.inPos);a.inPos+=4;this.alpha=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);0==b?b=null:(--b,c=a.input.getString(a.inPos,b),a.inPos+=b,b=c);this.name=b;this.visible=0!=a.input.b[a.inPos++]},__class__:pc};var Bc=function(a,b,d,c,e,f,h,k){this.__uid=D.SEQ<<24|++D.UID;this.id=a;this.a=b;this.b=d;this.c=c;this.d=e;this.tx=f;this.ty=
h;this.bitmap=k};m["swfty.ShapeType"]=Bc;Bc.__name__="swfty.ShapeType";Bc.__interfaces__=[zc];Bc.prototype={id:null,a:null,b:null,c:null,d:null,tx:null,ty:null,bitmap:null,__uid:null,getCLID:function(){return Bc.__clid},serialize:function(a){var b=this.id;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));a.out.addFloat(this.a);a.out.addFloat(this.b);a.out.addFloat(this.c);a.out.addFloat(this.d);a.out.addFloat(this.tx);a.out.addFloat(this.ty);a.addKnownRef(this.bitmap)},getSerializeSchema:function(){var a=
new Ua;a.fieldsNames.push("id");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("a");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("b");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("c");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("d");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("tx");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("ty");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("bitmap");a.fieldsTypes.push(x.PSerializable("swfty.BitmapType"));a.isFinal=D.isClassFinal(Bc.__clid);return a},
unserializeInit:function(){},unserialize:function(a){var b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.id=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.a=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.b=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.c=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.d=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.tx=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.ty=b;this.bitmap=a.getRef(Tb,Tb.__clid)},__class__:Bc};var Dc=function(a,b,d,
c,e,f){this.__uid=D.SEQ<<24|++D.UID;this.r=a;this.g=b;this.b=d;this.rAdd=c;this.gAdd=e;this.bAdd=f};m["swfty.ColorTransformType"]=Dc;Dc.__name__="swfty.ColorTransformType";Dc.__interfaces__=[zc];Dc.prototype={r:null,g:null,b:null,rAdd:null,gAdd:null,bAdd:null,__uid:null,getCLID:function(){return Dc.__clid},serialize:function(a){a.out.addFloat(this.r);a.out.addFloat(this.g);a.out.addFloat(this.b);a.out.addFloat(this.rAdd);a.out.addFloat(this.gAdd);a.out.addFloat(this.bAdd)},getSerializeSchema:function(){var a=
new Ua;a.fieldsNames.push("r");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("g");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("b");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("rAdd");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("gAdd");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("bAdd");a.fieldsTypes.push(x.PFloat);a.isFinal=D.isClassFinal(Dc.__clid);return a},unserializeInit:function(){},unserialize:function(a){var b=a.input.getFloat(a.inPos);a.inPos+=4;this.r=b;b=a.input.getFloat(a.inPos);
a.inPos+=4;this.g=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.b=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.rAdd=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.gAdd=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.bAdd=b},__class__:Dc};var Cc=function(a,b,d,c,e,f,h,k,l,m,p,g,q,r){this.__uid=D.SEQ<<24|++D.UID;this.font=a;this.align=b;this.size=d;this.color=c;this.text=e;this.html=f;this.leftMargin=h;this.rightMargin=k;this.leading=l;this.indent=m;this.x=p;this.y=g;this.width=q;this.height=r};m["swfty.TextType"]=
Cc;Cc.__name__="swfty.TextType";Cc.__interfaces__=[zc];Cc.prototype={font:null,align:null,size:null,color:null,text:null,html:null,leftMargin:null,rightMargin:null,leading:null,indent:null,x:null,y:null,width:null,height:null,__uid:null,getCLID:function(){return Cc.__clid},serialize:function(a){a.addKnownRef(this.font);var b=this.align;if(null==b)a.out.addByte(0);else{b=H.ofString(b);var d=b.length+1;0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d));a.out.add(b)}a.out.addFloat(this.size);
b=this.color;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));b=this.text;null==b?a.out.addByte(0):(b=H.ofString(b),d=b.length+1,0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d)),a.out.add(b));b=this.html;null==b?a.out.addByte(0):(b=H.ofString(b),d=b.length+1,0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d)),a.out.add(b));a.out.addFloat(this.leftMargin);a.out.addFloat(this.rightMargin);a.out.addFloat(this.leading);a.out.addFloat(this.indent);
a.out.addFloat(this.x);a.out.addFloat(this.y);a.out.addFloat(this.width);a.out.addFloat(this.height)},getSerializeSchema:function(){var a=new Ua;a.fieldsNames.push("font");a.fieldsTypes.push(x.PSerializable("swfty.FontType"));a.fieldsNames.push("align");a.fieldsTypes.push(x.PString);a.fieldsNames.push("size");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("color");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("text");a.fieldsTypes.push(x.PString);a.fieldsNames.push("html");a.fieldsTypes.push(x.PString);
a.fieldsNames.push("leftMargin");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("rightMargin");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("leading");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("indent");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("x");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("y");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("width");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("height");a.fieldsTypes.push(x.PFloat);a.isFinal=D.isClassFinal(Cc.__clid);return a},
unserializeInit:function(){},unserialize:function(a){this.font=a.getRef(Kb,Kb.__clid);var b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);if(0==b)b=null;else{--b;var d=a.input.getString(a.inPos,b);a.inPos+=b;b=d}this.align=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.size=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.color=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);0==b?b=null:(--b,d=a.input.getString(a.inPos,
b),a.inPos+=b,b=d);this.text=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);0==b?b=null:(--b,d=a.input.getString(a.inPos,b),a.inPos+=b,b=d);this.html=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.leftMargin=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.rightMargin=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.leading=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.indent=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.x=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.y=b;b=a.input.getFloat(a.inPos);
a.inPos+=4;this.width=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.height=b},__class__:Cc};var Kb=function(a,b,d,c,e,f,h,k,l,m,p,g){this.__uid=D.SEQ<<24|++D.UID;this.id=a;this.name=b;this.cleanName=d;this.color=c;this.size=e;this.bold=f;this.italic=h;this.bitmap=k;this.ascent=l;this.descent=m;this.leading=p;this.characters=g};m["swfty.FontType"]=Kb;Kb.__name__="swfty.FontType";Kb.__interfaces__=[zc];Kb.prototype={id:null,name:null,cleanName:null,color:null,size:null,bold:null,italic:null,bitmap:null,
ascent:null,descent:null,leading:null,characters:null,__uid:null,getCLID:function(){return Kb.__clid},serialize:function(a){var b=this.id;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));b=this.name;if(null==b)a.out.addByte(0);else{b=H.ofString(b);var d=b.length+1;0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d));a.out.add(b)}b=this.cleanName;null==b?a.out.addByte(0):(b=H.ofString(b),d=b.length+1,0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d)),
a.out.add(b));b=this.color;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));a.out.addFloat(this.size);a.out.addByte(this.bold?1:0);a.out.addByte(this.italic?1:0);b=this.bitmap;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));a.out.addFloat(this.ascent);a.out.addFloat(this.descent);a.out.addFloat(this.leading);var c=this.characters;if(null==c)a.out.addByte(0);else for(b=Wb.array({iterator:function(){return c.keys()}}),d=b.length+1,0<=d&&128>d?a.out.addByte(d):
(a.out.addByte(128),a.out.addInt32(d)),d=0;d<b.length;){var e=b[d];++d;0<=e&&128>e?a.out.addByte(e):(a.out.addByte(128),a.out.addInt32(e));a.addKnownRef(c.h[e])}},getSerializeSchema:function(){var a=new Ua;a.fieldsNames.push("id");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("name");a.fieldsTypes.push(x.PString);a.fieldsNames.push("cleanName");a.fieldsTypes.push(x.PString);a.fieldsNames.push("color");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("size");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("bold");
a.fieldsTypes.push(x.PBool);a.fieldsNames.push("italic");a.fieldsTypes.push(x.PBool);a.fieldsNames.push("bitmap");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("ascent");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("descent");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("leading");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("characters");a.fieldsTypes.push(x.PMap(x.PInt,x.PSerializable("swfty.CharacterType")));a.isFinal=D.isClassFinal(Kb.__clid);return a},unserializeInit:function(){},unserialize:function(a){var b=
a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.id=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);if(0==b)b=null;else{--b;var d=a.input.getString(a.inPos,b);a.inPos+=b;b=d}this.name=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);0==b?b=null:(--b,d=a.input.getString(a.inPos,b),a.inPos+=b,b=d);this.cleanName=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.color=b;b=a.input.getFloat(a.inPos);
a.inPos+=4;this.size=b;this.bold=0!=a.input.b[a.inPos++];this.italic=0!=a.input.b[a.inPos++];b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.bitmap=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.ascent=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.descent=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.leading=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);if(0==b)a=null;else{for(d=new Y;0<--b;){var c=a.input.b[a.inPos++];128==c&&(c=a.input.getInt32(a.inPos),
a.inPos+=4);var e=c;c=a.getRef(Oc,Oc.__clid);d.h[e]=c}a=d}this.characters=a},__class__:Kb};var Oc=function(a,b,d,c,e,f){this.__uid=D.SEQ<<24|++D.UID;this.id=a;this.bitmap=b;this.tx=d;this.ty=c;this.advance=e;this.height=f};m["swfty.CharacterType"]=Oc;Oc.__name__="swfty.CharacterType";Oc.__interfaces__=[zc];Oc.prototype={id:null,bitmap:null,tx:null,ty:null,advance:null,height:null,__uid:null,getCLID:function(){return Oc.__clid},serialize:function(a){var b=this.id;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),
a.out.addInt32(b));a.addKnownRef(this.bitmap);a.out.addFloat(this.tx);a.out.addFloat(this.ty);a.out.addFloat(this.advance);a.out.addFloat(this.height)},getSerializeSchema:function(){var a=new Ua;a.fieldsNames.push("id");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("bitmap");a.fieldsTypes.push(x.PSerializable("swfty.BitmapType"));a.fieldsNames.push("tx");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("ty");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("advance");a.fieldsTypes.push(x.PFloat);a.fieldsNames.push("height");
a.fieldsTypes.push(x.PFloat);a.isFinal=D.isClassFinal(Oc.__clid);return a},unserializeInit:function(){},unserialize:function(a){var b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.id=b;this.bitmap=a.getRef(Tb,Tb.__clid);b=a.input.getFloat(a.inPos);a.inPos+=4;this.tx=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.ty=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.advance=b;b=a.input.getFloat(a.inPos);a.inPos+=4;this.height=b},__class__:Oc};var Tb=function(a,b,d,c,e){this.__uid=
D.SEQ<<24|++D.UID;this.id=a;this.x=b;this.y=d;this.width=c;this.height=e};m["swfty.BitmapType"]=Tb;Tb.__name__="swfty.BitmapType";Tb.__interfaces__=[zc];Tb.prototype={id:null,x:null,y:null,width:null,height:null,__uid:null,getCLID:function(){return Tb.__clid},serialize:function(a){var b=this.id;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));b=this.x;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));b=this.y;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));
b=this.width;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));b=this.height;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b))},getSerializeSchema:function(){var a=new Ua;a.fieldsNames.push("id");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("x");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("y");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("width");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("height");a.fieldsTypes.push(x.PInt);a.isFinal=D.isClassFinal(Tb.__clid);
return a},unserializeInit:function(){},unserialize:function(a){var b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.id=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.x=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.y=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.width=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.height=b},__class__:Tb};var Pc=
function(a,b,d,c,e,f){this.__uid=D.SEQ<<24|++D.UID;this.tilemap_width=a;this.tilemap_height=b;this.name=d;this.definitions=c;this.tiles=e;this.fonts=f};m["swfty.SWFTYType"]=Pc;Pc.__name__="swfty.SWFTYType";Pc.__interfaces__=[zc];Pc.prototype={name:null,tilemap_width:null,tilemap_height:null,definitions:null,tiles:null,fonts:null,__uid:null,getCLID:function(){return Pc.__clid},serialize:function(a){var b=this.name;if(null==b)a.out.addByte(0);else{b=H.ofString(b);var d=b.length+1;0<=d&&128>d?a.out.addByte(d):
(a.out.addByte(128),a.out.addInt32(d));a.out.add(b)}b=this.tilemap_width;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));b=this.tilemap_height;0<=b&&128>b?a.out.addByte(b):(a.out.addByte(128),a.out.addInt32(b));var c=this.definitions;if(null==c)a.out.addByte(0);else for(b=Wb.array({iterator:function(){return c.keys()}}),d=b.length+1,0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d)),d=0;d<b.length;){var e=b[d];++d;0<=e&&128>e?a.out.addByte(e):(a.out.addByte(128),
a.out.addInt32(e));a.addKnownRef(c.h[e])}var f=this.tiles;if(null==f)a.out.addByte(0);else for(b=Wb.array({iterator:function(){return f.keys()}}),d=b.length+1,0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),a.out.addInt32(d)),d=0;d<b.length;)e=b[d],++d,0<=e&&128>e?a.out.addByte(e):(a.out.addByte(128),a.out.addInt32(e)),a.addKnownRef(f.h[e]);var h=this.fonts;if(null==h)a.out.addByte(0);else for(b=Wb.array({iterator:function(){return h.keys()}}),d=b.length+1,0<=d&&128>d?a.out.addByte(d):(a.out.addByte(128),
a.out.addInt32(d)),d=0;d<b.length;)e=b[d],++d,0<=e&&128>e?a.out.addByte(e):(a.out.addByte(128),a.out.addInt32(e)),a.addKnownRef(h.h[e])},getSerializeSchema:function(){var a=new Ua;a.fieldsNames.push("name");a.fieldsTypes.push(x.PString);a.fieldsNames.push("tilemap_width");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("tilemap_height");a.fieldsTypes.push(x.PInt);a.fieldsNames.push("definitions");a.fieldsTypes.push(x.PMap(x.PInt,x.PSerializable("swfty.MovieClipType")));a.fieldsNames.push("tiles");a.fieldsTypes.push(x.PMap(x.PInt,
x.PSerializable("swfty.BitmapType")));a.fieldsNames.push("fonts");a.fieldsTypes.push(x.PMap(x.PInt,x.PSerializable("swfty.FontType")));a.isFinal=D.isClassFinal(Pc.__clid);return a},unserializeInit:function(){},unserialize:function(a){var b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);if(0==b)b=null;else{--b;var d=a.input.getString(a.inPos,b);a.inPos+=b;b=d}this.name=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.tilemap_width=b;b=a.input.b[a.inPos++];
128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);this.tilemap_height=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);if(0==b)b=null;else{for(d=new Y;0<--b;){var c=a.input.b[a.inPos++];128==c&&(c=a.input.getInt32(a.inPos),a.inPos+=4);var e=c;c=a.getRef(qc,qc.__clid);d.h[e]=c}b=d}this.definitions=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);if(0==b)b=null;else{for(d=new Y;0<--b;)c=a.input.b[a.inPos++],128==c&&(c=a.input.getInt32(a.inPos),a.inPos+=
4),e=c,c=a.getRef(Tb,Tb.__clid),d.h[e]=c;b=d}this.tiles=b;b=a.input.b[a.inPos++];128==b&&(b=a.input.getInt32(a.inPos),a.inPos+=4);if(0==b)a=null;else{for(d=new Y;0<--b;)c=a.input.b[a.inPos++],128==c&&(c=a.input.getInt32(a.inPos),a.inPos+=4),e=c,c=a.getRef(Kb,Kb.__clid),d.h[e]=c;a=d}this.fonts=a},__class__:Pc};var Yf=function(){};m["swfty.exporter.CharSet"]=Yf;Yf.__name__="swfty.exporter.CharSet";var Xk=sa["swfty.extra.Easing"]={__ename__:"swfty.extra.Easing",__constructs__:"Linear SineIn SineOut SineInOut SineOutIn QuadIn QuadOut QuadInOut QuadOutIn CubicIn CubicOut CubicInOut CubicOutIn QuartIn QuartOut QuartInOut QuartOutIn QuintIn QuintOut QuintInOut QuintOutIn ExpoIn ExpoOut ExpoInOut ExpoOutIn CircIn CircOut CircInOut CircOutIn BounceIn BounceOut BounceInOut BounceOutIn BackIn BackOut BackInOut BackOutIn ElasticIn ElasticOut ElasticInOut ElasticOutIn WarpOut WarpIn WarpInOut WarpOutIn".split(" "),
Linear:{_hx_index:0,__enum__:"swfty.extra.Easing",toString:r},SineIn:{_hx_index:1,__enum__:"swfty.extra.Easing",toString:r},SineOut:{_hx_index:2,__enum__:"swfty.extra.Easing",toString:r},SineInOut:{_hx_index:3,__enum__:"swfty.extra.Easing",toString:r},SineOutIn:{_hx_index:4,__enum__:"swfty.extra.Easing",toString:r},QuadIn:{_hx_index:5,__enum__:"swfty.extra.Easing",toString:r},QuadOut:{_hx_index:6,__enum__:"swfty.extra.Easing",toString:r},QuadInOut:{_hx_index:7,__enum__:"swfty.extra.Easing",toString:r},
QuadOutIn:{_hx_index:8,__enum__:"swfty.extra.Easing",toString:r},CubicIn:{_hx_index:9,__enum__:"swfty.extra.Easing",toString:r},CubicOut:{_hx_index:10,__enum__:"swfty.extra.Easing",toString:r},CubicInOut:{_hx_index:11,__enum__:"swfty.extra.Easing",toString:r},CubicOutIn:{_hx_index:12,__enum__:"swfty.extra.Easing",toString:r},QuartIn:{_hx_index:13,__enum__:"swfty.extra.Easing",toString:r},QuartOut:{_hx_index:14,__enum__:"swfty.extra.Easing",toString:r},QuartInOut:{_hx_index:15,__enum__:"swfty.extra.Easing",
toString:r},QuartOutIn:{_hx_index:16,__enum__:"swfty.extra.Easing",toString:r},QuintIn:{_hx_index:17,__enum__:"swfty.extra.Easing",toString:r},QuintOut:{_hx_index:18,__enum__:"swfty.extra.Easing",toString:r},QuintInOut:{_hx_index:19,__enum__:"swfty.extra.Easing",toString:r},QuintOutIn:{_hx_index:20,__enum__:"swfty.extra.Easing",toString:r},ExpoIn:{_hx_index:21,__enum__:"swfty.extra.Easing",toString:r},ExpoOut:{_hx_index:22,__enum__:"swfty.extra.Easing",toString:r},ExpoInOut:{_hx_index:23,__enum__:"swfty.extra.Easing",
toString:r},ExpoOutIn:{_hx_index:24,__enum__:"swfty.extra.Easing",toString:r},CircIn:{_hx_index:25,__enum__:"swfty.extra.Easing",toString:r},CircOut:{_hx_index:26,__enum__:"swfty.extra.Easing",toString:r},CircInOut:{_hx_index:27,__enum__:"swfty.extra.Easing",toString:r},CircOutIn:{_hx_index:28,__enum__:"swfty.extra.Easing",toString:r},BounceIn:{_hx_index:29,__enum__:"swfty.extra.Easing",toString:r},BounceOut:{_hx_index:30,__enum__:"swfty.extra.Easing",toString:r},BounceInOut:{_hx_index:31,__enum__:"swfty.extra.Easing",
toString:r},BounceOutIn:{_hx_index:32,__enum__:"swfty.extra.Easing",toString:r},BackIn:{_hx_index:33,__enum__:"swfty.extra.Easing",toString:r},BackOut:{_hx_index:34,__enum__:"swfty.extra.Easing",toString:r},BackInOut:{_hx_index:35,__enum__:"swfty.extra.Easing",toString:r},BackOutIn:{_hx_index:36,__enum__:"swfty.extra.Easing",toString:r},ElasticIn:{_hx_index:37,__enum__:"swfty.extra.Easing",toString:r},ElasticOut:{_hx_index:38,__enum__:"swfty.extra.Easing",toString:r},ElasticInOut:{_hx_index:39,__enum__:"swfty.extra.Easing",
toString:r},ElasticOutIn:{_hx_index:40,__enum__:"swfty.extra.Easing",toString:r},WarpOut:{_hx_index:41,__enum__:"swfty.extra.Easing",toString:r},WarpIn:{_hx_index:42,__enum__:"swfty.extra.Easing",toString:r},WarpInOut:{_hx_index:43,__enum__:"swfty.extra.Easing",toString:r},WarpOutIn:{_hx_index:44,__enum__:"swfty.extra.Easing",toString:r}},Qk=sa["swfty.renderer.ButtonState"]={__ename__:"swfty.renderer.ButtonState",__constructs__:["Down","Up","Normal"],Down:{_hx_index:0,__enum__:"swfty.renderer.ButtonState",
toString:r},Up:{_hx_index:1,__enum__:"swfty.renderer.ButtonState",toString:r},Normal:{_hx_index:2,__enum__:"swfty.renderer.ButtonState",toString:r}},Qj=function(){this.left=this.middle=this.right=Qk.Normal;this.leftChanged=this.middleChanged=this.rightChanged=!1;this.x=this.y=0};m["swfty.renderer.Mouse"]=Qj;Qj.__name__="swfty.renderer.Mouse";Qj.prototype={x:null,y:null,leftChanged:null,middleChanged:null,rightChanged:null,left:null,middle:null,right:null,__class__:Qj};var Rj=function(a,b,d,c){this.x=
this.y=this.width=this.height=0;this.x=a;this.y=b;this.width=d;this.height=c};m["swfty.renderer.Rect"]=Rj;Rj.__name__="swfty.renderer.Rect";Rj.prototype={x:null,y:null,width:null,height:null,__class__:Rj};var Rc=function(a,b){this.fitVertically=!0;this.short=this.fit=!1;this.originalText="";this.textWidth=this.textHeight=0;this.text=null;Ub.call(this,a);this.loadText(b)};m["swfty.renderer.BaseText"]=Rc;Rc.__name__="swfty.renderer.BaseText";Rc.__super__=Ub;Rc.prototype=v(Ub.prototype,{text:null,textWidth:null,
textHeight:null,originalText:null,short:null,fit:null,fitVertically:null,textDefinition:null,loadText:function(a){this.textDefinition=a;null==this.text&&null!=a?(this.set_text(a.text),this.originalText=this.text):null!=this.text&&(a=this.text==this.originalText?this.originalText=a.text:this.text,this.set_text(""),this.set_text(a));return this},reload:function(){Ub.prototype.reload.call(this);if(null!=this.textDefinition&&null!=this.textDefinition.font){var a=this.textDefinition.font.id,b=this.layer.swfty;
switch(b._hx_index){case 0:var d=b.v.fonts.h.hasOwnProperty(a);break;case 1:d=!1}}else d=!1;if(d){d=this.layer.swfty;switch(d._hx_index){case 0:var c=d.v.fonts.h[this.textDefinition.font.id];break;case 1:c=null}this.textDefinition.font=c;this.loadText(this.textDefinition)}},set_text:function(a){if(this.text==a)return a;this.text=a;this.removeAll();if(null==a||""==a)return this.textHeight=this.textWidth=0,a;if(null==this.textDefinition||null==this.textDefinition.font)return a;var b=this.textDefinition.x,
d=this.textDefinition.y,c=this.textDefinition.color,e=(c&16711680)>>>16,f=(c&65280)>>>8,h=c&255,k=this.textDefinition.size,l=k/this.textDefinition.font.size;d+=(1-this.textDefinition.font.ascent/(this.textDefinition.font.ascent+this.textDefinition.font.descent))*k;var m=(this.textDefinition.font.ascent+this.textDefinition.font.descent+this.textDefinition.font.leading)/20/1024*k,p=!1,g={textWidth:0,tiles:[]};c=[g];for(var q=this.textDefinition.font.characters.h[46],r=0,t=a.length;r<t;){var u=r++,v=
L.cca(a,u);32==v&&(p=!0);if(this.textDefinition.font.characters.h.hasOwnProperty(v)){var w=this.textDefinition.font.characters.h[v],y=w.advance*l,x=this.layer,z=w.bitmap.id;if(x.tiles.h.hasOwnProperty(z))x=x.tiles.h[z];else{Qc.warn("Missing shape: "+z);var B=x.emptyTile();x=x.tiles.h[z]=B}x=new $c(x);x.set_colorTransform(new Ca(e/255,f/255,h/255,1));x.set_x(b+w.tx*l);x.set_y(d+w.ty*l);x.set_scaleX(x.set_scaleY(l));this.addBitmap(x);g.tiles.push({code:v,tile:x});if(this.fit){if(32!=v&&b-this.textDefinition.x+
y>this.textDefinition.width){l=this.textDefinition.width/(b-this.textDefinition.x+y);for(v=0;v<c.length;)for(u=c[v],++v,y=0,u=u.tiles;y<u.length;)x=u[y],++y,z=x.tile,z.set_scaleX(z.get_scaleX()*l),z=x.tile,z.set_scaleY(z.get_scaleY()*l),z=x.tile,z.set_x(z.get_x()*l),x=x.tile,x.set_y(x.get_y()*l);b*=l;d*=l;k*=l;l=k/this.textDefinition.font.size;this.fitVertically||(m=(this.textDefinition.font.ascent+this.textDefinition.font.descent+this.textDefinition.font.leading)/20/1024*k);y=w.advance*l}}else if(this.short){if(b-
this.textDefinition.x+y>this.textDefinition.width-l*q.advance*3&&u<=a.length-3){v=46;w=this.textDefinition.font.characters.h[v];p=this.layer;q=w.bitmap.id;p.tiles.h.hasOwnProperty(q)?p=p.tiles.h[q]:(Qc.warn("Missing shape: "+q),r=p.emptyTile(),p=p.tiles.h[q]=r);x=new $c(p);x.set_colorTransform(new Ca(e/255,f/255,h/255,1));x.set_x(b+w.tx);x.set_y(d+w.ty);x.set_scaleX(x.set_scaleY(l));this.addBitmap(x);g.tiles.push({code:v,tile:x});y=w.advance*l;b+=y;v=46;w=this.textDefinition.font.characters.h[v];
p=this.layer;q=w.bitmap.id;p.tiles.h.hasOwnProperty(q)?p=p.tiles.h[q]:(Qc.warn("Missing shape: "+q),r=p.emptyTile(),p=p.tiles.h[q]=r);x=new $c(p);x.set_colorTransform(new Ca(e/255,f/255,h/255,1));x.set_x(b+w.tx);x.set_y(d+w.ty);x.set_scaleX(x.set_scaleY(l));this.addBitmap(x);g.tiles.push({code:v,tile:x});y=w.advance*l;b+=y;v=46;w=this.textDefinition.font.characters.h[v];p=this.layer;q=w.bitmap.id;p.tiles.h.hasOwnProperty(q)?p=p.tiles.h[q]:(Qc.warn("Missing shape: "+q),r=p.emptyTile(),p=p.tiles.h[q]=
r);x=new $c(p);x.set_colorTransform(new Ca(e/255,f/255,h/255,1));x.set_x(b+w.tx);x.set_y(d+w.ty);x.set_scaleX(x.set_scaleY(l));this.addBitmap(x);g.tiles.push({code:v,tile:x});y=w.advance*l;b+=y;break}}else if(b-this.textDefinition.x+y>this.textDefinition.width&&p){d+=m;p=!1;w=[];for(x=g.tiles.pop();null!=x&&32==x.code;)x=g.tiles.pop();u=0;for(v=null!=x&&null!=x.tile?x.tile.get_x():0;null!=x&&32!=x.code;)null!=x.tile&&(u=x.tile,u.set_y(u.get_y()+m),u=x.tile.get_x()),w.push(x),x=g.tiles.pop(),null!=
x&&null!=x.tile&&(v=x.tile.get_x());for(x=0;x<w.length;)z=w[x],++x,z=z.tile,z.set_x(z.get_x()-(u-this.textDefinition.x));g.textWidth=v-this.textDefinition.x;g.textWidth>this.textWidth&&(this.textWidth=g.textWidth);g={textWidth:0,tiles:w};c.push(g);b-=u-this.textDefinition.x}b+=y}else if(null!=v)switch(v){case 10:case 13:d+=m,b=this.textDefinition.x}}g.textWidth=b-this.textDefinition.x;if(this.fit&&this.fitVertically)for(b=0;b<c.length;)for(f=c[b],++b,e=0,f=f.tiles;e<f.length;)h=f[e],++e,h=h.tile,
h.set_y(h.get_y()+(1-k/this.textDefinition.size)*m/2);g.textWidth>this.textWidth&&(this.textWidth=g.textWidth);this.textHeight=d+m;switch(this.textDefinition.align){case "Center":for(d=0;d<c.length;)for(k=c[d],++d,m=0,g=k.tiles;m<g.length;)b=g[m],++m,null!=b.tile&&(b=b.tile,b.set_x(b.get_x()+(this.textDefinition.width/2-k.textWidth/2)));break;case "Justify":ra.trace("Justify not supported!!!",{fileName:"swfty/renderer/BaseText.hx",lineNumber:264,className:"swfty.renderer.BaseText",methodName:"set_text"});
break;case "Right":for(d=0;d<c.length;)for(k=c[d],++d,m=0,g=k.tiles;m<g.length;)b=g[m],++m,null!=b.tile&&(b=b.tile,b.set_x(b.get_x()+(this.textDefinition.width-k.textWidth)))}return a},__class__:Rc});var Xe=function(a,b){Rc.call(this,a,b)};m["swfty.renderer.FinalText"]=Xe;Xe.__name__="swfty.renderer.FinalText";Xe.create=function(a,b){return new Xe(a,b)};Xe.__super__=Rc;Xe.prototype=v(Rc.prototype,{__class__:Xe});var Qc=function(){};m["swfty.utils.Log"]=Qc;Qc.__name__="swfty.utils.Log";Qc.warn=function(a){ra.trace("!!! WARNING !!! "+
a,{fileName:"swfty/utils/Log.hx",lineNumber:6,className:"swfty.utils.Log",methodName:"warn"})};var bd=function(){};m["zip.Zip"]=bd;bd.__name__="zip.Zip";bd.getBytes=function(a){return null==a.data?(a.input.set_position(a.position),a.compressed?(a=a.input.read(a.dataSize),zh.decompress(a)):a.input.read(a.dataSize)):a.data};bd.getString=function(a){return null==a.data?(a.input.set_position(a.position),a.compressed?(a=a.input.read(a.dataSize),zh.decompress(a).toString()):a.input.readString(a.dataSize)):
a.data.toString()};var Tk=sa["zip.ExtraField"]={__ename__:"zip.ExtraField",__constructs__:["FUnknown","FInfoZipUnicodePath","FUtf8"],FUnknown:(p=function(a,b){return{_hx_index:0,tag:a,bytes:b,__enum__:"zip.ExtraField",toString:r}},p.__params__=["tag","bytes"],p),FInfoZipUnicodePath:(p=function(a,b){return{_hx_index:1,name:a,crc:b,__enum__:"zip.ExtraField",toString:r}},p.__params__=["name","crc"],p),FUtf8:{_hx_index:2,__enum__:"zip.ExtraField",toString:r}},ci=function(a){this.input=new Be(a);this.bytes=
a;this.i=this.input};m["zip.ZipReader"]=ci;ci.__name__="zip.ZipReader";ci.__super__=wh;ci.prototype=v(wh.prototype,{bytes:null,input:null,readExtra:function(a){for(var b=new hb;0<a;){if(4>a)throw new w("Invalid extra fields data");var d=this.i.readUInt16(),c=this.i.readUInt16();if(a<c)throw new w("Invalid extra fields data");if(28789==d){var e=this.i.readByte();if(1!=e){var f=new le;f.addByte(e);f.add(this.i.read(c-1));b.add(Tk.FUnknown(d,f.getBytes()))}else d=this.i.readInt32(),e=this.i.read(c-5).toString(),
b.add(Tk.FInfoZipUnicodePath(e,d))}else b.add(Tk.FUnknown(d,this.i.read(c)));a-=4+c}return b},getNextEntry:function(){var a=this.input,b=a.readInt32();if(33639248==b||101010256==b)return null;if(67324752!=b)throw new w("Invalid Zip Data");a.readUInt16();b=a.readUInt16();var d=0!=(b&2048);if(0!=(b&63473))throw new w("Unsupported flags "+b);var c=a.readUInt16(),e=0!=c;if(e&&8!=c)throw new w("Unsupported compression "+c);c=this.readZipDate();var f=a.readInt32(),h=a.readInt32(),k=a.readInt32(),l=a.readInt16(),
m=a.readInt16();l=a.readString(l);m=this.readExtra(m);d&&m.push(Tk.FUtf8);0!=(b&8)&&(f=null);b={fileName:l,fileSize:k,fileTime:c,input:a,bytes:this.bytes,position:a.pos,compressed:e,dataSize:h,data:null,crc32:f,extraFields:m};if(null==b.crc32){ra.trace("CRC32 is NULL, this is not optimal, just saying...",{fileName:"zip/ZipReader.hx",lineNumber:144,className:"zip.ZipReader",methodName:"getNextEntry"});if(b.compressed){d=a.pos;null==bd.tmp&&(bd.tmp=new H(new ArrayBuffer(65536)));e=new le;for(c=new Wa(a,
!1,!1);!(f=c.readBytes(bd.tmp,0,65536),e.addBytes(bd.tmp,0,f),65536>f););a.set_position(d);b.data=e.getBytes()}else a.set_position(a.pos+b.dataSize);b.crc32=a.readInt32();134695760==b.crc32&&(b.crc32=a.readInt32());b.dataSize=a.readInt32();b.fileSize=a.readInt32();b.dataSize=b.fileSize;b.compressed=!1}else a.set_position(a.pos+b.dataSize);return Q.endsWith(b.fileName,"/")?this.getNextEntry():b},__class__:ci});var bi=function(){this.output=new Sc;Kf.call(this,this.output)};m["zip.ZipWriter"]=bi;bi.__name__=
"zip.ZipWriter";bi.__super__=Kf;bi.prototype=v(Kf.prototype,{output:null,addBytes:function(a,b,d,c){null==d&&(d=!0);var e=Vd.make(a);if(d){var f=pako.deflateRaw(a.b.bufferValue);f=H.ofData(f)}else f=a;this.writeEntryHeader({fileName:b,fileSize:a.length,fileTime:null==c?new Date:c,compressed:d,dataSize:f.length,data:f,crc32:e});this.o.writeFullBytes(f,0,f.length)},addString:function(a,b,d,c){null==d&&(d=!0);this.addBytes(H.ofString(a),b,d,c)},finalize:function(){this.writeCDR();var a=this.output.b.pos,
b=this.output.getBytes(),d=new H(new ArrayBuffer(a));d.blit(0,b,0,a);return d},writeEntryHeader:function(a){var b=this.o,d=0;if(null!=a.extraFields)for(var c=a.extraFields.h;null!=c;){var e=c.item;c=c.next;2==e._hx_index&&(d|=2048)}b.writeInt32(67324752);b.writeUInt16(20);b.writeUInt16(d);if(null==a.crc32){if(a.compressed)throw new w("CRC32 must be processed before compression");null!=a.data&&(a.crc32=Vd.make(a.data))}null!=a.data&&(a.compressed||(a.fileSize=a.data.length),a.dataSize=a.data.length);
b.writeUInt16(a.compressed?8:0);this.writeZipDate(a.fileTime);b.writeInt32(a.crc32);b.writeInt32(a.dataSize);b.writeInt32(a.fileSize);b.writeUInt16(a.fileName.length);d=new Sc;if(null!=a.extraFields)for(c=a.extraFields.h;null!=c;)switch(e=c.item,c=c.next,e._hx_index){case 0:var f=e.bytes;d.writeUInt16(e.tag);d.writeUInt16(f.length);d.write(f);break;case 1:f=e.crc,e=H.ofString(e.name),d.writeUInt16(28789),d.writeUInt16(e.length+5),d.writeByte(1),d.writeInt32(f),d.write(e)}d=d.getBytes();b.writeUInt16(d.length);
b.writeString(a.fileName);b.write(d);this.files.add({name:a.fileName,compressed:a.compressed,clen:null!=a.data?a.data.length:a.dataSize,size:a.fileSize,crc:a.crc32,date:a.fileTime,fields:d})},__class__:bi});var kl=0;fc.count=0;m.Math=Math;null==String.fromCodePoint&&(String.fromCodePoint=function(a){return 65536>a?String.fromCharCode(a):String.fromCharCode((a>>10)+55232)+String.fromCharCode((a&1023)+56320)});String.prototype.__class__=m.String=String;String.__name__="String";m.Array=Array;Array.__name__=
"Array";Date.prototype.__class__=m.Date=Date;Date.__name__="Date";var Di={},ol={},pl=Number,nl=Boolean,Zk={},$k={},t={};Object.defineProperty(w.prototype,"message",{get:function(){return String(this.val)}});null==ArrayBuffer.prototype.slice&&(ArrayBuffer.prototype.slice=fk.sliceImpl);var rl=new Uint32Array(256);y.__alpha16=rl;for(var fl=0;256>fl;){var gl=fl++;y.__alpha16[gl]=Math.ceil(257.00392156862745*gl)}var sl=new Uint8Array(511);y.__clamp=sl;for(var hl=0;255>hl;){var il=hl++;y.__clamp[il]=il}for(var jl=
255;511>jl;){var tl=jl++;y.__clamp[tl]=255}Ja.level=3;"undefined"==typeof console&&(console={});null==console.log&&(console.log=function(){});q.hitTestCanvas="undefined"!=typeof window?window.document.createElement("canvas"):null;q.hitTestContext="undefined"!=typeof window?q.hitTestCanvas.getContext("2d"):null;ha.__broadcastEvents=new ea;ha.__instanceCount=0;ha.__tempColorTransform=new Ca;ha.__tempStack=new yd(function(){return tb.toObjectVector(null)},function(a){a.set_length(0)});l.MAX_FLOAT_VALUE=
Number.MAX_VALUE;Pa.AUTOBUILD_LAYERS=!1;Pa.EXTRACT_SOUND_STREAM=!0;pb.__missingFontWarning=new ea;jc.blendModes=[10,10,7,9,12,8,2,3,0,14,6,1,4,11,5];Vc.unitDivisor=1;Ge.unitDivisor=20;Ob.i=0;wb.USE_CACHE=!1;wb.USE_ENUM_INDEX=!1;wb.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";mb.DEFAULT_RESOLVER=new rh;mb.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";ke.CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";ke.BYTES=H.ofString(ke.CHARS);
yc.helper=new DataView(new ArrayBuffer(8));Wa.LEN_EXTRA_BITS_TBL=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,-1,-1];Wa.LEN_BASE_VAL_TBL=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258];Wa.DIST_EXTRA_BITS_TBL=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,-1,-1];Wa.DIST_BASE_VAL_TBL=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];Wa.CODE_LENGTHS_POS=[16,17,18,
0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];Fa.convFuns=new ea;D.UID=0;D.SEQ=0;D.CLASSES=[];Ua.__clid=D.registerClass(Ua);U.__toStr={}.toString;aa.activeRequests=0;aa.requestLimit=4;aa.requestQueue=new hb;na.dummyCharacter="\u007f";na.windowID=0;pa.__base64Chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";la.__identity=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Ta.onUpdate=new rb;cd.sensorByID=new Y;cd.sensors=[];gb.devices=new Y;gb.onConnect=new lj;lb.devices=new Y;lb.onConnect=new mj;nb.onCancel=
new Ke;nb.onEnd=new Ke;nb.onMove=new Ke;nb.onStart=new Ke;Z.cache=new qj;Z.onChange=new rb;Z.libraries=new ea;Z.libraryPaths=new ea;Ja.throwErrors=!0;Le.__pool=new yd(function(){return new Le},function(a){a.reset()});sb.empty=new sb;q.SIN45=.7071067811865476;q.TAN22=.41421356237309503;q.fillCommands=new sb;q.strokeCommands=new sb;jb.__regexColor=new wa("color=(\"#([^\"]+)\"|'#([^']+)')","i");jb.__regexFace=new wa("face=(\"([^\"]+)\"|'([^']+)')","i");jb.__regexFont=new wa("<font ([^>]+)>","gi");jb.__regexCloseFont=
new wa("</font>","gi");jb.__regexSize=new wa("size=(\"([^\"]+)\"|'([^']+)')","i");P.__pool=new yd(function(){return new P},function(a){a.identity()});qa.__pool=new yd(function(){return new qa},function(a){a.setTo(0,0)});M.__pool=new yd(function(){return new M},function(a){a.setTo(0,0,0,0)});ja.__tempVector=new kd;ja.premultipliedDefault=!0;Da.blankBitmapData=new ja(1,1,!1,0);Da.tempColorTransform=new Ca(0,0,0,1,0,0,0,0);$a.__glPrograms=new ea;Me.opaqueBitmapData=new ja(1,1,!1,0);fb.debug=!1;Ib.instances=
new ea;ia.__regexAlign=new wa("align=(\"([^\"]+)\"|'([^']+)')","i");ia.__regexBreakTag=new wa("<br\\s*/?>","gi");ia.__regexBlockIndent=new wa("blockindent=(\"([^\"]+)\"|'([^']+)')","i");ia.__regexColor=new wa("color=(\"#([^\"]+)\"|'#([^']+)')","i");ia.__regexEntities=[new wa("&quot;","g"),new wa("&apos;","g"),new wa("&amp;","g"),new wa("&lt;","g"),new wa("&gt;","g"),new wa("&nbsp;","g")];ia.__regexFace=new wa("face=(\"([^\"]+)\"|'([^']+)')","i");ia.__regexHTMLTag=new wa("<.*?>","g");ia.__regexHref=
new wa("href=(\"([^\"]+)\"|'([^']+)')","i");ia.__regexIndent=new wa(" indent=(\"([^\"]+)\"|'([^']+)')","i");ia.__regexLeading=new wa("leading=(\"([^\"]+)\"|'([^']+)')","i");ia.__regexLeftMargin=new wa("leftmargin=(\"([^\"]+)\"|'([^']+)')","i");ia.__regexRightMargin=new wa("rightmargin=(\"([^\"]+)\"|'([^']+)')","i");ia.__regexSize=new wa("size=(\"([^\"]+)\"|'([^']+)')","i");ia.__regexTabStops=new wa("tabstops=(\"([^\"]+)\"|'([^']+)')","i");md.__rootURL="undefined"!=typeof window?window.document.URL:
"";za.__alphaValue=[1];za.__colorMultipliersValue=[0,0,0,0];za.__colorOffsetsValue=[0,0,0,0];za.__emptyColorValue=[0,0,0,0];za.__hasColorTransformValue=[!1];za.__textureSizeValue=[0,0];Rb.TEXTURE_MAX_ANISOTROPY_EXT=0;Rb.DEPTH_STENCIL=0;Rb.__stateCache=new xj;vc.__blurShader=new Yh;hd.__colorMatrixShader=new Zh;yb.__glowShader=new $h;ad.__soundChannels=[];ad.__soundTransform=new Wf;Od.followRedirects=!0;Od.idleTimeout=0;Od.manageCookies=!1;rd.BAKE_COLOR=!0;Ne.currentDomain=new Ne(null);zb.__fontByName=
new ea;zb.__registeredFonts=[];Aa.numDevices=0;Aa.__deviceList=[];Aa.__devices=new fc;Aa.__instances=[];Ik.__cursor="auto";nc.cache=new di;ya.__bytePointer=new Ih(null,0);qc.__clid=D.registerClass(qc);pc.__clid=D.registerClass(pc);Bc.__clid=D.registerClass(Bc);Dc.__clid=D.registerClass(Dc);Cc.__clid=D.registerClass(Cc);Kb.__clid=D.registerClass(Kb);Oc.__clid=D.registerClass(Oc);Tb.__clid=D.registerClass(Tb);Pc.__clid=D.registerClass(Pc);Yf.ISO_8859_1=[9,10,13,32,33,34,35,36,37,38,39,40,41,42,43,44,
45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,
184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255];Yf.NUMERIC=[43,44,48,49,50,51,52,53,54,55,56,57,44,45,46,37,120,88,33];Rc.SPACE=32;Rc.DOT=46;Rc.NEW_LINE=10;Rc.RETURN=13;te.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);
