var UA=navigator.userAgent,IsAndroid=/Android|HTC/i.test(UA)||!!(navigator.platform+"").match(/Linux/i),IsIOS=!IsAndroid&&/iPad|iPod|iPhone/i.test(UA),IsApp=/Tusi/i.test(UA),platform="",AppShareFn,LOG_URL=window.LOG_URL||"";IsAndroid?platform="android":IsIOS&&(platform="ios");var AppBridge={isInApp:/Tusi/i.test(UA),callbackId:1,callbacks:{},lastCallTime:0,lastCallName:"",send:function(k,m){var j=+new Date;if(!(800>j-AppBridge.lastCallTime&&k==AppBridge.lastCallName)){AppBridge.lastCallTime=j;AppBridge.lastCallName=k;var j="tusi://command/"+k,g=[];if(m){if(m.callback){var h=AppBridge.callbackId++;AppBridge.callbacks[h]=m.callback;m.callbackId=h}for(var l in m){"callback"!=l&&g.push(encodeURIComponent(l)+"="+encodeURIComponent(m[l]))}}j+="?"+g.join("&");if(IsAndroid){try{Android.runAndroidMethod(j)}catch(i){console.log(i.message)}}else{location.href=j}}},callback:function(b){var d=b.callbackId,a;d&&((a=AppBridge.callbacks[d])&&a(b),delete AppBridge.callbacks[d])},eventCache:{},on:function(a,b){(AppBridge.eventCache[a]||(AppBridge.eventCache[a]=[])).push(b)},deviceEvent:function(i,j){var h=AppBridge.eventCache[i];if(h){for(var d=0,g=h.length;de&&(e=1);this.autoDisposeTime=e;this.frameCount=0}__extends(c,d);c.prototype._checkFrame=function(){this.frameCount--;0>=this.frameCount&&this.dispose()};Object.defineProperty(c.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0});c.prototype.push=function(e){var f=this.objectPool;-1==f.indexOf(e)&&(f.push(e),this._length++,0==this.frameCount&&(this.frameCount=this.autoDisposeTime,c._callBackList.push(this)))};c.prototype.pop=function(){if(0==this._length){return null}this._length--;return this.objectPool.pop()};c.prototype.dispose=function(){0=this._maxDeltaTime){c=(this._preDrawCount-1).toString();var e=Math.ceil(this._logicPerformanceCost).toString()+","+Math.ceil(this._updateTransformPerformanceCost).toString()+","+Math.ceil(this._renderPerformanceCost).toString()+","+Math.ceil(a.MainContext.instance.rendererContext.renderCost).toString();this._txt.text="draw:"+c+"\ncost:"+e+"\nFPS:"+Math.floor(1000*this._tick/this._totalDeltaTime).toString();this._tick=this._totalDeltaTime=0}this._preDrawCount=0};d.prototype.onDrawImage=function(){this._preDrawCount++};return d}();a.Profiler=b;b.prototype.__class__="egret.Profiler"})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){var b=function(e){function d(){e.apply(this,arguments);this._timeScale=1;this._paused=!1;this.callBackList=[]}__extends(d,e);d.prototype.run=function(){a.__START_TIME=(new Date).getTime();a.MainContext.instance.deviceContext.executeMainLoop(this.update,this)};d.prototype.update=function(g){var i=this.callBackList.concat(),f=i.length;g*=this._timeScale;g*=this._timeScale;for(var h=0;hthis.delay&&(this.lastTime=c,this._currentCount++,a.TimerEvent.dispatchTimerEvent(this,a.TimerEvent.TIMER),0=this.repeatCount&&(this.stop(),a.TimerEvent.dispatchTimerEvent(this,a.TimerEvent.TIMER_COMPLETE)))};return d}(a.EventDispatcher);a.Timer=b;b.prototype.__class__="egret.Timer"})(egret||(egret={}));(function(a){a.getQualifiedClassName=function(g){g=g.prototype?g.prototype:g.__proto__;if(g.hasOwnProperty("__class__")){return g.__class__}var d=g.constructor.toString(),c=d.indexOf("("),d=d.substring(9,c);return g.__class__=d}})(egret||(egret={}));(function(a){var b={};a.getDefinitionByName=function(h){if(!h){return null}var c=b[h];if(c){return c}for(var f=h.split("."),i=f.length,c=__global,g=0;g=c.delay&&(c.listener.apply(c.thisObject,c.params),delete d[f])}}var d={},a=0;g.setTimeout=function(b,i,e){for(var c=[],f=0;fb){b=0}16777215b.length;){b="0"+b}return"#"+b}})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){var b=function(e){function d(f,k,c,j,i,g){"undefined"===typeof f&&(f=1);"undefined"===typeof k&&(k=0);"undefined"===typeof c&&(c=0);"undefined"===typeof j&&(j=1);"undefined"===typeof i&&(i=0);"undefined"===typeof g&&(g=0);e.call(this);this.a=f;this.b=k;this.c=c;this.d=j;this.tx=i;this.ty=g}__extends(d,e);d.prototype.prepend=function(r,o,q,n,p,m){var j=this.tx;if(1!=r||0!=o||0!=q||1!=n){var i=this.a,h=this.c;this.a=i*r+this.b*q;this.b=i*o+this.b*n;this.c=h*r+this.d*q;this.d=h*o+this.d*n}this.tx=j*r+this.ty*q+p;this.ty=j*o+this.ty*n+m;return this};d.prototype.append=function(t,q,s,p,r,o){var n=this.a,j=this.b,i=this.c,h=this.d;this.a=t*n+q*i;this.b=t*j+q*h;this.c=s*n+p*i;this.d=s*j+p*h;this.tx=r*n+o*i+this.tx;this.ty=r*j+o*h+this.ty;return this};d.prototype.prependMatrix=function(c){this.prepend(c.a,c.b,c.c,c.d,c.tx,c.ty);return this};d.prototype.appendMatrix=function(c){this.append(c.a,c.b,c.c,c.d,c.tx,c.ty);return this};d.prototype.prependTransform=function(u,s,h,q,t,p,o,n,j){if(t%360){var i=t*d.DEG_TO_RAD;t=Math.cos(i);i=Math.sin(i)}else{t=1,i=0}if(n||j){this.tx-=n,this.ty-=j}p||o?(p*=d.DEG_TO_RAD,o*=d.DEG_TO_RAD,this.prepend(t*h,i*h,-i*q,t*q,0,0),this.prepend(Math.cos(o),Math.sin(o),-Math.sin(p),Math.cos(p),u,s)):this.prepend(t*h,i*h,-i*q,t*q,u,s);return this};d.prototype.appendTransform=function(u,s,h,q,t,p,o,n,j){if(t%360){var i=t*d.DEG_TO_RAD;t=Math.cos(i);i=Math.sin(i)}else{t=1,i=0}p||o?(p*=d.DEG_TO_RAD,o*=d.DEG_TO_RAD,this.append(Math.cos(o),Math.sin(o),-Math.sin(p),Math.cos(p),u,s),this.append(t*h,i*h,-i*q,t*q,0,0)):this.append(t*h,i*h,-i*q,t*q,u,s);if(n||j){this.tx-=n*this.a+j*this.c,this.ty-=n*this.b+j*this.d}return this};d.prototype.rotate=function(g){var i=Math.cos(g);g=Math.sin(g);var f=this.a,h=this.c,j=this.tx;this.a=f*i-this.b*g;this.b=f*g+this.b*i;this.c=h*i-this.d*g;this.d=h*g+this.d*i;this.tx=j*i-this.ty*g;this.ty=j*g+this.ty*i;return this};d.prototype.skew=function(c,f){c*=d.DEG_TO_RAD;f*=d.DEG_TO_RAD;this.append(Math.cos(f),Math.sin(f),-Math.sin(c),Math.cos(c),0,0);return this};d.prototype.scale=function(c,f){this.a*=c;this.d*=f;this.c*=c;this.b*=f;this.tx*=c;this.ty*=f;return this};d.prototype.translate=function(c,f){this.tx+=c;this.ty+=f;return this};d.prototype.identity=function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this};d.prototype.invert=function(){var h=this.a,k=this.b,g=this.c,j=this.d,l=this.tx,i=h*j-k*g;this.a=j/i;this.b=-k/i;this.c=-g/i;this.d=h/i;this.tx=(g*this.ty-j*l)/i;this.ty=-(h*this.ty-k*l)/i;return this};d.transformCoords=function(g,h,f){var i=a.Point.identity;i.x=g.a*h+g.c*f+g.tx;i.y=g.d*f+g.b*h+g.ty;return i};d.prototype.toArray=function(c){this.array||(this.array=new Float32Array(9));c?(this.array[0]=this.a,this.array[1]=this.b,this.array[2]=0,this.array[3]=this.c,this.array[4]=this.d,this.array[5]=0,this.array[6]=this.tx,this.array[7]=this.ty):(this.array[0]=this.a,this.array[1]=this.b,this.array[2]=this.tx,this.array[3]=this.c,this.array[4]=this.d,this.array[5]=this.ty,this.array[6]=0,this.array[7]=0);this.array[8]=1;return this.array};d.identity=new d;d.DEG_TO_RAD=Math.PI/180;return d}(a.HashObject);a.Matrix=b;b.prototype.__class__="egret.Matrix"})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){var b=function(d){function c(e,f){"undefined"===typeof e&&(e=0);"undefined"===typeof f&&(f=0);d.call(this);this.x=e;this.y=f}__extends(c,d);c.prototype.clone=function(){return new c(this.x,this.y)};c.prototype.equals=function(e){return this.x==e.x&&this.y==e.y};c.distance=function(e,f){return Math.sqrt((e.x-f.x)*(e.x-f.x)+(e.y-f.y)*(e.y-f.y))};c.identity=new c(0,0);return c}(a.HashObject);a.Point=b;b.prototype.__class__="egret.Point"})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){var b=function(d){function c(f,g,e,h){"undefined"===typeof f&&(f=0);"undefined"===typeof g&&(g=0);"undefined"===typeof e&&(e=0);"undefined"===typeof h&&(h=0);d.call(this);this.x=f;this.y=g;this.width=e;this.height=h}__extends(c,d);Object.defineProperty(c.prototype,"right",{get:function(){return this.x+this.width},set:function(e){this.width=e-this.x},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"bottom",{get:function(){return this.y+this.height},set:function(e){this.height=e-this.y},enumerable:!0,configurable:!0});c.prototype.initialize=function(g,i,f,h){this.x=g;this.y=i;this.width=f;this.height=h;return this};c.prototype.contains=function(e,f){return this.x<=e&&this.x+this.width>=e&&this.y<=f&&this.y+this.height>=f};c.prototype.intersects=function(e){return this.contains(e.x,e.y)||this.contains(e.x,e.bottom)||this.contains(e.right,e.y)||this.contains(e.right,e.bottom)?!0:!1};c.prototype.clone=function(){return new c(this.x,this.y,this.width,this.height)};c.prototype.containsPoint=function(e){return this.xe.x&&this.ye.y?!0:!1};c.identity=new c(0,0,0,0);return c}(a.HashObject);a.Rectangle=b;b.prototype.__class__="egret.Rectangle"})(egret||(egret={}));(function(a){var b=function(){function d(){}d.fatal=function(c,e){"undefined"===typeof e&&(e=null);a.Logger.traceToConsole("Fatal",c,e);throw Error(a.Logger.getTraceCode("Fatal",c,e))};d.info=function(c,e){"undefined"===typeof e&&(e=null);a.Logger.traceToConsole("Info",c,e)};d.warning=function(c,e){"undefined"===typeof e&&(e=null);a.Logger.traceToConsole("Warning",c,e)};d.traceToConsole=function(c,e,f){console.log(a.Logger.getTraceCode(c,e,f))};d.getTraceCode=function(c,e,f){return"["+c+"]"+e+":"+(null==f?"":f)};return d}();a.Logger=b;b.prototype.__class__="egret.Logger"})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){var b=function(e){function d(){e.call(this);this._isSupportDOMParser=this._xmlDict=this._parser=null;this._xmlDict={};window.DOMParser?(this._isSupportDOMParser=!0,this._parser=new DOMParser):this._isSupportDOMParser=!1}__extends(d,e);d.getInstance=function(){d._instance||(d._instance=new d);return d._instance};d.prototype.parserXML=function(c){for(var f=0;"\n"==c.charAt(f)||"\t"==c.charAt(f)||"\r"==c.charAt(f)||" "==c.charAt(f);){f++}0!=f&&(c=c.substring(f,c.length));this._isSupportDOMParser?f=this._parser.parseFromString(c,"text/xml"):(f=new ActiveXObject("Microsoft.XMLDOM"),f.async="false",f.loadXML(c));null==f&&a.Logger.info("xml not found!");return f};d._instance=null;return d}(a.HashObject);a.SAXParser=b;b.prototype.__class__="egret.SAXParser"})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(j){var l=function(c){function b(){c.call(this);this._designHeight=this._designWidth=0;this._scaleY=this._scaleX=1;var a=document.getElementById(b.canvas_name),d=a.height;this._designWidth=a.width;this._designHeight=d}__extends(b,c);b.getInstance=function(){null==b.instance&&(g.initialize(),b.instance=new b);return b.instance};b.prototype.setDesignSize=function(m,f,e){this._designWidth=m;this._designHeight=f;e&&(j.Logger.warning("\u8be5\u65b9\u6cd5\u76ee\u524d\u4e0d\u5e94\u4f20\u5165 resolutionPolicy \u53c2\u6570\uff0c\u8bf7\u5728 docs/1.0_Final_ReleaseNote\u4e2d\u67e5\u770b\u5982\u4f55\u5347\u7ea7"),this._setResolutionPolicy(e))};b.prototype._setResolutionPolicy=function(a){this._resolutionPolicy=a;a.init(this);a._apply(this,this._designWidth,this._designHeight)};b.prototype.getScaleX=function(){return this._scaleX};b.prototype.getScaleY=function(){return this._scaleY};b.canvas_name="gameCanvas";b.canvas_div_name="gameDiv";return b}(j.HashObject);j.StageDelegate=l;l.prototype.__class__="egret.StageDelegate";var i=function(){function a(d,c){this._containerStrategy=d;this._contentStrategy=c}a.prototype.init=function(b){this._containerStrategy.init(b);this._contentStrategy.init(b)};a.prototype._apply=function(f,e,c){this._containerStrategy._apply(f,e,c);this._contentStrategy._apply(f,e,c)};return a}();j.ResolutionPolicy=i;i.prototype.__class__="egret.ResolutionPolicy";var g=function(){function a(){}a.initialize=function(){a.EQUAL_TO_FRAME=new h};a.prototype.init=function(b){};a.prototype._apply=function(f,e,c){};a.prototype._setupContainer=function(){var c=document.body,b;c&&(b=c.style)&&(b.paddingTop=b.paddingTop||"0px",b.paddingRight=b.paddingRight||"0px",b.paddingBottom=b.paddingBottom||"0px",b.paddingLeft=b.paddingLeft||"0px",b.borderTop=b.borderTop||"0px",b.borderRight=b.borderRight||"0px",b.borderBottom=b.borderBottom||"0px",b.borderLeft=b.borderLeft||"0px",b.marginTop=b.marginTop||"0px",b.marginRight=b.marginRight||"0px",b.marginBottom=b.marginBottom||"0px",b.marginLeft=b.marginLeft||"0px")};return a}();j.ContainerStrategy=g;g.prototype.__class__="egret.ContainerStrategy";var h=function(c){function b(){c.apply(this,arguments)}__extends(b,c);b.prototype._apply=function(a){this._setupContainer()};return b}(g);j.EqualToFrame=h;h.prototype.__class__="egret.EqualToFrame";i=function(){function a(){}a.prototype.init=function(b){};a.prototype._apply=function(f,e,c){};return a}();j.ContentStrategy=i;i.prototype.__class__="egret.ContentStrategy";var k=function(c){function b(a){"undefined"===typeof a&&(a=0);c.call(this);this.minWidth=a}__extends(b,c);b.prototype._apply=function(u,w,v){w=document.getElementById(l.canvas_name);var m=document.getElementById(l.canvas_div_name),q=document.documentElement.clientWidth,p=document.documentElement.clientHeight,x=p/v,o=q/x,y=1;0!=this.minWidth&&(y=Math.min(1,o/this.minWidth));w.width=o/y;w.height=v;w.style.width=q+"px";w.style.height=p*y+"px";m.style.width=q+"px";m.style.height=p*y+"px";u._scaleX=x*y;u._scaleY=x*y};return b}(i);j.FixedHeight=k;k.prototype.__class__="egret.FixedHeight";k=function(c){function b(a){"undefined"===typeof a&&(a=0);c.call(this);this.minHeight=a}__extends(b,c);b.prototype._apply=function(u,w,v){v=document.getElementById(l.canvas_name);var m=document.getElementById(l.canvas_div_name),q=document.documentElement.clientWidth,p=document.documentElement.clientHeight,x=q/w,o=p/x,y=1;0!=this.minHeight&&(y=Math.min(1,o/this.minHeight));v.width=w;v.height=o/y;v.style.width=q*y+"px";v.style.height=p+"px";m.style.width=q*y+"px";m.style.height=p+"px";u._scaleX=x*y;u._scaleY=x*y};return b}(i);j.FixedWidth=k;k.prototype.__class__="egret.FixedWidth";k=function(c){function b(a,d){c.call(this);this.width=a;this.height=d}__extends(b,c);b.prototype._apply=function(u,n,m){m=document.getElementById(l.canvas_name);var p=document.getElementById(l.canvas_div_name),s=this.width,q=this.height,o=s/n;m.width=n;m.height=q/o;m.style.width=s+"px";m.style.height=q+"px";p.style.width=s+"px";p.style.height=q+"px";u._scaleX=o;u._scaleY=o};return b}(i);j.FixedSize=k;k.prototype.__class__="egret.FixedSize";k=function(c){function b(){c.call(this)}__extends(b,c);b.prototype._apply=function(m,f,e){f=document.getElementById(l.canvas_name);f.style.width=f.width+"px";f.style.height=f.height+"px";m._scaleX=1;m._scaleY=1};return b}(i);j.NoScale=k;k.prototype.__class__="egret.NoScale";i=function(c){function b(){c.call(this)}__extends(b,c);b.prototype._apply=function(v,o,m){var q=document.getElementById(l.canvas_name),u=document.getElementById(l.canvas_div_name),s=document.documentElement.clientWidth,p=document.documentElement.clientHeight,w=s/o

j.x+j.width||H._worldBounds.y+H._worldBounds.height+A.destY>j.y+j.height){a.Logger.fatal("\u8bf7\u4e0d\u8981\u8ba9\u5e26\u6709\u65cb\u8f6c\u548c\u659c\u5207\u7684\u663e\u793a\u5bf9\u8c61\u8de8\u8fc7\u91cd\u7ed8\u533a\u57df");break}}else{var p=H._worldTransform.a,i=H._worldTransform.d,r;H._worldBounds.x+A.destXj.x+j.width&&(r=(H._worldBounds.x+H._worldBounds.width-j.x-j.width)/p+A.destX,G-=r/(C/G),C-=r);H._worldBounds.y+H._worldBounds.height+A.destY>j.y+j.height&&(r=(H._worldBounds.y+H._worldBounds.height-j.y-j.height)/i+A.destY,E-=r/(B/E),B-=r)}}K.drawImage(u,J,I,G,E,F,D,C,B)}}}else{K.drawImage(u,J,I,G,E,F,D,C,B)}}};d.prototype.ignoreRender=function(g,i,f,h){var j=g._worldBounds;f*=g._worldTransform.a;h*=g._worldTransform.d;return j.x+j.width+f<=i.x||j.x+f>=i.x+i.width||j.y+j.height+h<=i.y||j.y+h>=i.y+i.height?!0:!1};d.prototype.getDrawAreaList=function(){var c;0==this._drawAreaList.length?(this._defaultDrawAreaList||(this._defaultDrawAreaList=[new a.Rectangle(0,0,a.MainContext.instance.stage.stageWidth,a.MainContext.instance.stage.stageHeight)]),c=this._defaultDrawAreaList):c=this._drawAreaList;return c};return d}(a.HashObject);a.RenderFilter=b;b.prototype.__class__="egret.RenderFilter"})(egret||(egret={}));(function(a){var b=function(){function d(){}d.mapClass=function(c,e,f){"undefined"===typeof f&&(f="");c=this.getKey(c)+"#"+f;this.mapClassDic[c]=e};d.getKey=function(c){return"string"==typeof c?c:a.getQualifiedClassName(c)};d.mapValue=function(c,e,f){"undefined"===typeof f&&(f="");c=this.getKey(c)+"#"+f;this.mapValueDic[c]=e};d.hasMapRule=function(c,e){"undefined"===typeof e&&(e="");var f=this.getKey(c)+"#"+e;return this.mapValueDic[f]||this.mapClassDic[f]?!0:!1};d.getInstance=function(c,e){"undefined"===typeof e&&(e="");var g=this.getKey(c)+"#"+e;if(this.mapValueDic[g]){return this.mapValueDic[g]}var f=this.mapClassDic[g];if(f){return f=new f,this.mapValueDic[g]=f,delete this.mapClassDic[g],f}throw Error("\u8c03\u7528\u4e86\u672a\u914d\u7f6e\u7684\u6ce8\u5165\u89c4\u5219:"+g+"\u3002 \u8bf7\u5148\u5728\u9879\u76ee\u521d\u59cb\u5316\u91cc\u914d\u7f6e\u6307\u5b9a\u7684\u6ce8\u5165\u89c4\u5219\uff0c\u518d\u8c03\u7528\u5bf9\u5e94\u5355\u4f8b\u3002")};d.mapClassDic={};d.mapValueDic={};return d}();a.Injector=b;b.prototype.__class__="egret.Injector"})(egret||(egret={}));(function(a){var b=function(){function c(){}c.NORMAL="normal";c.ADD="add";c.LAYER="layer";return c}();a.BlendMode=b;b.prototype.__class__="egret.BlendMode"})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){var b=function(e){function d(){e.call(this);this._sizeDirty=this._normalDirty=!0;this._parent=null;this._cacheAsBitmap=!1;this._y=this._x=0;this._scaleY=this._scaleX=1;this._anchorY=this._anchorX=this._anchorOffsetY=this._anchorOffsetX=0;this._visible=!0;this._rotation=0;this._alpha=1;this._skewY=this._skewX=0;this._hasHeightSet=this._hasWidthSet=!1;this.worldAlpha=1;this._rectH=this._rectW=0;this._stage=null;this._worldTransform=new a.Matrix;this._cacheBounds=new a.Rectangle(0,0,0,0)}__extends(d,e);d.prototype._setDirty=function(){this._normalDirty=!0};d.prototype.getDirty=function(){return this._normalDirty||this._sizeDirty};d.prototype._setParentSizeDirty=function(){!this.parent||this.parent._hasWidthSet||this.parent._hasHeightSet||this.parent._setSizeDirty()};d.prototype._setSizeDirty=function(){this._sizeDirty||(this._sizeDirty=!0,this._setDirty(),this._setParentSizeDirty())};d.prototype._clearDirty=function(){this._normalDirty=!1};d.prototype._clearSizeDirty=function(){this._sizeDirty=!1};Object.defineProperty(d.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0});d.prototype._parentChanged=function(c){this._parent=c};Object.defineProperty(d.prototype,"x",{get:function(){return this._x},set:function(c){a.NumberUtils.isNumber(c)&&(this._x=c,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"y",{get:function(){return this._y},set:function(c){a.NumberUtils.isNumber(c)&&(this._y=c,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"scaleX",{get:function(){return this._scaleX},set:function(c){a.NumberUtils.isNumber(c)&&(this._scaleX=c,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"scaleY",{get:function(){return this._scaleY},set:function(c){a.NumberUtils.isNumber(c)&&(this._scaleY=c,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"anchorOffsetX",{get:function(){return this._anchorOffsetX},set:function(c){a.NumberUtils.isNumber(c)&&(this._anchorOffsetX=c,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"anchorOffsetY",{get:function(){return this._anchorOffsetY},set:function(c){a.NumberUtils.isNumber(c)&&(this._anchorOffsetY=c,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"anchorX",{get:function(){return this._anchorX},set:function(c){a.NumberUtils.isNumber(c)&&(this._anchorX=c,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"anchorY",{get:function(){return this._anchorY},set:function(c){a.NumberUtils.isNumber(c)&&(this._anchorY=c,this._setDirty(),this._setParentSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"visible",{get:function(){return this._visible},set:function(c){this._visible=c;this._setSizeDirty()},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"rotation",{get:function(){return this._rotation},set:function(c){a.NumberUtils.isNumber(c)&&(this._rotation=c,this._setSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"alpha",{get:function(){return this._alpha},set:function(c){a.NumberUtils.isNumber(c)&&(this._alpha=c,this._setDirty())},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"skewX",{get:function(){return this._skewX},set:function(c){a.NumberUtils.isNumber(c)&&(this._skewX=c,this._setSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"skewY",{get:function(){return this._skewY},set:function(c){a.NumberUtils.isNumber(c)&&(this._skewY=c,this._setSizeDirty())},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"touchEnabled",{get:function(){return this._touchEnabled},set:function(c){this._touchEnabled=c},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"scrollRect",{get:function(){return this._scrollRect},set:function(c){this._scrollRect=c;this._setSizeDirty()},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"measuredWidth",{get:function(){return this._measureBounds().width},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"measuredHeight",{get:function(){return this._measureBounds().height},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"explicitWidth",{get:function(){return this._explicitWidth},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"explicitHeight",{get:function(){return this._explicitHeight},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"width",{get:function(){return this._getSize(a.Rectangle.identity).width},set:function(c){this._setWidth(c)},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"height",{get:function(){return this._getSize(a.Rectangle.identity).height},set:function(c){this._setHeight(c)},enumerable:!0,configurable:!0});d.prototype._setWidth=function(c){this._setSizeDirty();this._explicitWidth=c;this._hasWidthSet=a.NumberUtils.isNumber(c)};d.prototype._setHeight=function(c){this._setSizeDirty();this._explicitHeight=c;this._hasHeightSet=a.NumberUtils.isNumber(c)};d.prototype._draw=function(c){if(this.visible&&!this.drawCacheTexture(c)){c.setAlpha(this.worldAlpha,this.blendMode);c.setTransform(this._worldTransform);var f=this.mask||this._scrollRect;f&&c.pushMask(f);this._render(c);f&&c.popMask()}this.destroyCacheBounds()};d.prototype.drawCacheTexture=function(i){if(this._cacheAsBitmap){var l=this._texture_to_render,g=l._offsetX,m=l._offsetY,k=l._textureWidth,l=l._textureHeight;this._updateTransform();i.setAlpha(this.worldAlpha,this.blendMode);i.setTransform(this._worldTransform);var j=a.MainContext.instance.rendererContext.texture_scale_factor;a.RenderFilter.getInstance().drawImage(i,this,0,0,k*j,l*j,g,m,k,l);return !0}return !1};d.prototype._updateTransform=function(){this._worldTransform.identity().appendMatrix(this._parent._worldTransform);var c=this._getOffsetPoint();this._worldTransform.appendTransform(this._x,this._y,this._scaleX,this._scaleY,this._rotation,this._skewX,this._skewY,c.x,c.y);this._scrollRect&&this._worldTransform.append(1,0,0,1,-this._scrollRect.x,-this._scrollRect.y);this.worldAlpha=this._parent.worldAlpha*this._alpha};d.prototype._render=function(c){};d.prototype.getBounds=function(j){var n=this._measureBounds(),i=this._hasWidthSet?this._explicitWidth:n.width,o=this._hasHeightSet?this._explicitHeight:n.height,m=n.x,n=n.y,k,l;0!=this._anchorX||0!=this._anchorY?(k=i*this._anchorX,l=o*this._anchorY):(k=this._anchorOffsetX,l=this._anchorOffsetY);this._cacheBounds.initialize(m-k,n-l,i,o);i=this._cacheBounds;j||(j=new a.Rectangle);return j.initialize(i.x,i.y,i.width,i.height)};d.prototype.destroyCacheBounds=function(){this._cacheBounds.x=0;this._cacheBounds.y=0;this._cacheBounds.width=0;this._cacheBounds.height=0};d.prototype._getConcatenatedMatrix=function(){for(var c=d.identityMatrixForGetConcatenated.identity(),g=this;null!=g;){if(0!=g._anchorX||0!=g._anchorY){var f=g._getSize(a.Rectangle.identity);c.prependTransform(g._x,g._y,g._scaleX,g._scaleY,g._rotation,g._skewX,g._skewY,f.width*g._anchorX,f.height*g._anchorY)}else{c.prependTransform(g._x,g._y,g._scaleX,g._scaleY,g._rotation,g._skewX,g._skewY,g._anchorOffsetX,g._anchorOffsetY)}g=g._parent}return c};d.prototype.localToGlobal=function(g,h,f){"undefined"===typeof g&&(g=0);"undefined"===typeof h&&(h=0);var i=this._getConcatenatedMatrix();i.append(1,0,0,1,g,h);f||(f=new a.Point);f.x=i.tx;f.y=i.ty;return f};d.prototype.globalToLocal=function(g,h,f){"undefined"===typeof g&&(g=0);"undefined"===typeof h&&(h=0);var i=this._getConcatenatedMatrix();i.invert();i.append(1,0,0,1,g,h);f||(f=new a.Point);f.x=i.tx;f.y=i.ty;return f};d.prototype.hitTest=function(f,g,c){"undefined"===typeof c&&(c=!1);if(!this.visible||!c&&!this._touchEnabled){return null}c=this._getSize(a.Rectangle.identity);return 0<=f&&fi&&(i=y);(y=r+p+o)i&&(i=y);(y=p+o)i&&(i=y);(u=w+j)z&&(z=u);(u=w+t+j)z&&(z=u);(u=t+j)z&&(z=u);return A.initialize(h,B,i-h,z-B)};d.identityMatrixForGetConcatenated=new a.Matrix;d._enterFrameCallBackList=[];d._renderCallBackList=[];return d}(a.EventDispatcher);a.DisplayObject=b;b.prototype.__class__="egret.DisplayObject"})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){var b=function(e){function d(){e.call(this);this._touchChildren=!0;this._children=[]}__extends(d,e);Object.defineProperty(d.prototype,"touchChildren",{get:function(){return this._touchChildren},set:function(c){this._touchChildren=c},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"numChildren",{get:function(){return this._children.length},enumerable:!0,configurable:!0});d.prototype.setChildIndex=function(c,f){this.doSetChildIndex(c,f)};d.prototype.doSetChildIndex=function(f,g){var c=this._children.indexOf(f);0>c&&a.Logger.fatal("child\u4e0d\u5728\u5f53\u524d\u5bb9\u5668\u5185");this._children.splice(c,1);0>g||this._children.length<=g?this._children.push(f):this._children.splice(g,0,f)};d.prototype.addChild=function(c){var f=this.numChildren;c._parent==this&&f--;return this._doAddChild(c,f)};d.prototype.addChildAt=function(c,f){return this._doAddChild(c,f)};d.prototype._doAddChild=function(f,h,g){"undefined"===typeof g&&(g=!0);if(f==this){return f}if(0>h||h>this._children.length){return a.Logger.fatal("\u63d0\u4f9b\u7684\u7d22\u5f15\u8d85\u51fa\u8303\u56f4"),f}var i=f.parent;if(i==this){return this.doSetChildIndex(f,h),f}i&&i.removeChild(f);this._children.splice(h,0,f);f._parentChanged(this);g&&f.dispatchEventWith(a.Event.ADDED,!0);if(this._stage){for(f._onAddToStage(),h=d.__EVENT__ADD_TO_STAGE_LIST;0t||0==p){t=j}if(nu||0==p){u=i}}}return a.Rectangle.identity.initialize(w,v,t-w,u-v)};d.prototype.hitTest=function(x,v,w){"undefined"===typeof w&&(w=!1);var y;if(!this.visible){return null}if(this._scrollRect){if(0>x||0>v||x>this._scrollRect.width||v>this._scrollRect.height){return null}}else{if(this.mask&&(this.mask.x>x||x>this.mask.x+this.mask.width||this.mask.y>v||v>this.mask.y+this.mask.height)){return null}}for(var f=this._children,s=this._touchChildren,u=f.length-1;0<=u;u--){var r=f[u],o=r,j=o._getOffsetPoint(),c=o._x,i=o._y;this._scrollRect&&(c-=this._scrollRect.x,i-=this._scrollRect.y);o=a.Matrix.identity.identity().prependTransform(c,i,o._scaleX,o._scaleY,o._rotation,0,0,j.x,j.y);o.invert();o=a.Matrix.transformCoords(o,x,v);if(r=r.hitTest(o.x,o.y,!0)){if(r._touchEnabled&&s){return r}if(this._touchEnabled){return this}null==y&&(y=r)}}return y?y:e.prototype.hitTest.call(this,x,v,w)};d.prototype._onAddToStage=function(){e.prototype._onAddToStage.call(this);for(var c=this.numChildren,f=0;fp&&(p=n+m._textureHeight)}}this._textChanged=!1;return a.Rectangle.identity.initialize(0,0,s,p)};d.prototype._measureBounds=function(){return this._renderText(!0)};return d}(a.DisplayObjectContainer);a.BitmapText=b;b.prototype.__class__="egret.BitmapText"})(egret||(egret={}));(function(a){var b=function(){function c(){this.commandQueue=[]}c.prototype.beginFill=function(d,e){};c.prototype._setStyle=function(d){};c.prototype.drawRect=function(f,g,i,h){};c.prototype.drawCircle=function(e,f,g){};c.prototype.drawRoundRect=function(g,h,k,j,l,i){};c.prototype.drawEllipse=function(f,g,i,h){};c.prototype.lineStyle=function(i,j,o,n,p,m,k,l){};c.prototype.lineTo=function(d,e){};c.prototype.curveTo=function(f,g,i,h){};c.prototype.moveTo=function(d,e){};c.prototype.clear=function(){};c.prototype.endFill=function(){};c.prototype._draw=function(d){};return c}();a.Graphics=b;b.prototype.__class__="egret.Graphics";(function(){return function(f,c,d){this.method=f;this.thisObject=c;this.args=d}})().prototype.__class__="Command"})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){var b=function(e){function d(){e.call(this)}__extends(d,e);Object.defineProperty(d.prototype,"graphics",{get:function(){this._graphics||(this._graphics=new a.Graphics);return this._graphics},enumerable:!0,configurable:!0});d.prototype._render=function(c){this._graphics&&this._graphics._draw(c)};return d}(a.DisplayObject);a.Shape=b;b.prototype.__class__="egret.Shape"})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){var b=function(e){function d(){e.call(this)}__extends(d,e);Object.defineProperty(d.prototype,"graphics",{get:function(){this._graphics||(this._graphics=new a.Graphics);return this._graphics},enumerable:!0,configurable:!0});d.prototype._render=function(c){this._graphics&&this._graphics._draw(c);e.prototype._render.call(this,c)};return d}(a.DisplayObjectContainer);a.Sprite=b;b.prototype.__class__="egret.Sprite"})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){var b=function(e){function d(){e.call(this);this._fontFamily="Arial";this._size=30;this._textColorString="#FFFFFF";this._textColor=16777215;this._strokeColorString="#000000";this._stroke=this._strokeColor=0;this._textAlign="left";this._verticalAlign="top";this._numLines=this._lineSpacing=0;this.measuredWidths=[]}__extends(d,e);Object.defineProperty(d.prototype,"text",{get:function(){return this._text},set:function(c){this._text!=c&&(this._setTextDirty(),this._text=c)},enumerable:!0,configurable:!0});d.prototype._setTextDirty=function(){this._setSizeDirty()};Object.defineProperty(d.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(c){this._fontFamily!=c&&(this._setTextDirty(),this._fontFamily=c)},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"size",{get:function(){return this._size},set:function(c){this._size!=c&&(this._setTextDirty(),this._size=c)},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"italic",{get:function(){return this._italic},set:function(c){this._italic!=c&&(this._setTextDirty(),this._italic=c)},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"bold",{get:function(){return this._bold},set:function(c){this._bold!=c&&(this._setTextDirty(),this._bold=c)},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"textColor",{get:function(){return this._textColor},set:function(c){this._textColor!=c&&(this._setTextDirty(),this._textColor=c,this._textColorString=a.toColorString(c))},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"strokeColor",{get:function(){return this._strokeColor},set:function(c){this._strokeColor!=c&&(this._setTextDirty(),this._strokeColor=c,this._strokeColorString=a.toColorString(c))},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"stroke",{get:function(){return this._stroke},set:function(c){this._stroke!=c&&(this._setTextDirty(),this._stroke=c)},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"textAlign",{get:function(){return this._textAlign},set:function(c){this._textAlign!=c&&(this._setTextDirty(),this._textAlign=c)},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"verticalAlign",{get:function(){return this._verticalAlign},set:function(c){this._verticalAlign!=c&&(this._setTextDirty(),this._verticalAlign=c)},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"lineSpacing",{get:function(){return this._lineSpacing},set:function(c){this._lineSpacing!=c&&(this._setTextDirty(),this._lineSpacing=c)},enumerable:!0,configurable:!0});Object.defineProperty(d.prototype,"numLines",{get:function(){return this._numLines},enumerable:!0,configurable:!0});d.prototype._render=function(c){this.drawText(c,!1);this._clearDirty()};d.prototype._measureBounds=function(){return this.drawText(a.MainContext.instance.rendererContext,!0)};d.prototype.drawText=function(E,z){var C=this.getTextLines(E);if(!C){return a.Rectangle.identity.initialize(0,0,0,0)}var A=C.length,v=0.5*this._size,t=this._size+this._lineSpacing,u=A*t-this._lineSpacing;this._textHeight=u;var r=this._hasHeightSet?this._explicitHeight:Number.POSITIVE_INFINITY;if(this._hasHeightSet&&ut){for(var j="",h=0,i=p.length,B=0;Bt&&(0==h?(v.splice(r,0,z),y[r]=o,wthis.maxlength){f=f+255&-256;var g=new ArrayBuffer(f),e=new Uint8Array(this.arraybytes,0,this.length);(new Uint8Array(g,0,this.length)).set(e);this.arraybytes=g;this.maxlength=f}};c.prototype.writeByte=function(e){this.ensureWriteableSpace(1);(new Int8Array(this.arraybytes))[this.position++]=~~e;this.position>this.length&&(this.length=this.position)};c.prototype.readByte=function(){if(this.position>=this.length){throw"ByteArray out of bounds read. Positon="+this.position+", Length="+this.length}return(new Int8Array(this.arraybytes))[this.position++]};c.prototype.readBytes=function(g,i,f){"undefined"===typeof i&&(i=0);"undefined"===typeof f&&(f=0);null==f&&(f=g.length);g.ensureWriteableSpace(i+f);var h=new Int8Array(g.arraybytes),j=new Int8Array(this.arraybytes);h.set(j.subarray(this.position,this.position+f),i);this.position+=f;f+i>g.length&&(g.length+=f+i-g.length)};c.prototype.writeUnsignedByte=function(e){this.ensureWriteableSpace(1);(new Uint8Array(this.arraybytes))[this.position++]=~~e&255;this.position>this.length&&(this.length=this.position)};c.prototype.readUnsignedByte=function(){if(this.position>=this.length){throw"ByteArray out of bounds read. Positon="+this.position+", Length="+this.length}return(new Uint8Array(this.arraybytes))[this.position++]};c.prototype.writeUnsignedShort=function(e){this.ensureWriteableSpace(2);if(0==(this.position&1)){var f=new Uint16Array(this.arraybytes);f[this.position>>1]=~~e&65535}else{f=new Uint16Array(this.unalignedarraybytestemp,0,1),f[0]=~~e&65535,e=new Uint8Array(this.arraybytes,this.position,2),f=new Uint8Array(this.unalignedarraybytestemp,0,2),e.set(f)}this.position+=2;this.position>this.length&&(this.length=this.position)};c.prototype.readUTFBytes=function(h){var k="";h=this.position+h;for(var g=new DataView(this.arraybytes);this.positionj){if(0==j){break}k+=String.fromCharCode(j)}else{if(224>j){k+=String.fromCharCode((j&63)<<6|g.getUint8(this.position++)&127)}else{if(240>j){var l=g.getUint8(this.position++),k=k+String.fromCharCode((j&31)<<12|(l&127)<<6|g.getUint8(this.position++)&127)}else{var l=g.getUint8(this.position++),i=g.getUint8(this.position++),k=k+String.fromCharCode((j&15)<<18|(l&127)<<12|i<<6&127|g.getUint8(this.position++)&127)}}}}return k};c.prototype.readInt=function(){var e=(new DataView(this.arraybytes)).getInt32(this.position,this.isLittleEndian);this.position+=4;return e};c.prototype.readShort=function(){var e=(new DataView(this.arraybytes)).getInt16(this.position,this.isLittleEndian);this.position+=2;return e};c.prototype.readDouble=function(){var e=(new DataView(this.arraybytes)).getFloat64(this.position,this.isLittleEndian);this.position+=8;return e};c.prototype.readUnsignedShort=function(){if(this.position>this.length+2){throw"ByteArray out of bounds read. Position="+this.position+", Length="+this.length}if(0==(this.position&1)){var e=new Uint16Array(this.arraybytes),f=this.position>>1;this.position+=2;return e[f]}e=new Uint16Array(this.unalignedarraybytestemp,0,1);f=new Uint8Array(this.arraybytes,this.position,2);(new Uint8Array(this.unalignedarraybytestemp,0,2)).set(f);this.position+=2;return e[0]};c.prototype.writeUnsignedInt=function(e){this.ensureWriteableSpace(4);if(0==(this.position&3)){var f=new Uint32Array(this.arraybytes);f[this.position>>2]=~~e&4294967295}else{f=new Uint32Array(this.unalignedarraybytestemp,0,1),f[0]=~~e&4294967295,e=new Uint8Array(this.arraybytes,this.position,4),f=new Uint8Array(this.unalignedarraybytestemp,0,4),e.set(f)}this.position+=4;this.position>this.length&&(this.length=this.position)};c.prototype.readUnsignedInt=function(){if(this.position>this.length+4){throw"ByteArray out of bounds read. Position="+this.position+", Length="+this.length}if(0==(this.position&3)){var e=new Uint32Array(this.arraybytes),f=this.position>>2;this.position+=4;return e[f]}e=new Uint32Array(this.unalignedarraybytestemp,0,1);f=new Uint8Array(this.arraybytes,this.position,4);(new Uint8Array(this.unalignedarraybytestemp,0,4)).set(f);this.position+=4;return e[0]};c.prototype.writeFloat=function(e){this.ensureWriteableSpace(4);if(0==(this.position&3)){var f=new Float32Array(this.arraybytes);f[this.position>>2]=e}else{f=new Float32Array(this.unalignedarraybytestemp,0,1),f[0]=e,e=new Uint8Array(this.arraybytes,this.position,4),f=new Uint8Array(this.unalignedarraybytestemp,0,4),e.set(f)}this.position+=4;this.position>this.length&&(this.length=this.position)};c.prototype.readFloat=function(){if(this.position>this.length+4){throw"ByteArray out of bounds read. Positon="+this.position+", Length="+this.length}if(0==(this.position&3)){var e=new Float32Array(this.arraybytes),f=this.position>>2;this.position+=4;return e[f]}e=new Float32Array(this.unalignedarraybytestemp,0,1);f=new Uint8Array(this.arraybytes,this.position,4);(new Uint8Array(this.unalignedarraybytestemp,0,4)).set(f);this.position+=4;return e[0]};c.DEFAULT_ENDIAN=d.BIG_ENDIAN;return c}();b.ByteArray=a;a.prototype.__class__="egret.ByteArray"})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){var b=function(e){function d(f,g,c){e.call(this);this._target=null;this.loop=this.ignoreGlobalPause=this._useTicks=!1;this._actions=this._steps=this.pluginData=null;this.paused=!1;this.duration=0;this._prevPos=-1;this.position=null;this._stepPosition=this._prevPosition=0;this.passive=!1;this.initialize(f,g,c)}__extends(d,e);d.get=function(f,h,g,i){"undefined"===typeof h&&(h=null);"undefined"===typeof g&&(g=null);"undefined"===typeof i&&(i=!1);i&&d.removeTweens(f);return new d(f,h,g)};d.removeTweens=function(c){if(c.tween_count){for(var g=d._tweens,f=g.length-1;0<=f;f--){g[f]._target==c&&(g[f].paused=!0,g.splice(f,1))}c.tween_count=0}};d.tick=function(g,j){"undefined"===typeof j&&(j=!1);for(var i=d._tweens.concat(),k=i.length-1;0<=k;k--){var h=i[k];j&&!h.ignoreGlobalPause||h.paused||h.tick(h._useTicks?1:g)}};d._register=function(g,i){var j=g._target,h=d._tweens;if(i){j&&(j.tween_count=j.tween_count?j.tween_count+1:1),h.push(g),d._inited||(a.Ticker.getInstance().register(d.tick,null),d._inited=!0)}else{for(j&&j.tween_count--,j=h.length;j--;){if(h[j]==g){h.splice(j,1);break}}}};d.removeAllTweens=function(){for(var f=d._tweens,h=0,g=f.length;hi&&(i=0);var h=i,l=!1;h>=this.duration&&(this.loop?h%=this.duration:(h=this.duration,l=!0));if(h==this._prevPos){return l}var n=this._prevPos;this.position=this._prevPos=h;this._prevPosition=i;if(this._target){if(l){this._updateTargetProps(null,1)}else{if(0h);k++){}k=this._steps[k-1];this._updateTargetProps(k,(this._stepPosition=h-k.t)/k.d)}}}0!=m&&0o&&(n=o,p=r,m=j,j=i=-1);(m+=i)!=j;){o=this._actions[m];var h=o.t;(h==p||h>n&&h=f){return this}var c=this._cloneProps(this._curQueueProps);return this._addStep({d:f,p0:c,p1:c,v:g})};d.prototype.to=function(f,g,c){"undefined"===typeof c&&(c=void 0);if(isNaN(g)||0>g){g=0}return this._addStep({d:g||0,p0:this._cloneProps(this._curQueueProps),e:c,p1:this._cloneProps(this._appendQueueProps(f))})};d.prototype.call=function(f,g,c){"undefined"===typeof g&&(g=void 0);"undefined"===typeof c&&(c=void 0);return this._addAction({f:f,p:c?c:[],o:g?g:this._target})};d.prototype.set=function(c,f){"undefined"===typeof f&&(f=null);return this._addAction({f:this._set,o:this,p:[c,f?f:this._target]})};d.prototype.play=function(c){c||(c=this);return this.call(c.setPaused,c,[!1])};d.prototype.pause=function(c){c||(c=this);return this.call(c.setPaused,c,[!0])};d.prototype.tick=function(c){this.paused||this.setPosition(this._prevPosition+c)};d.NONE=0;d.LOOP=1;d.REVERSE=2;d._tweens=[];d.IGNORE={};d._plugins={};d._inited=!1;return d}(a.EventDispatcher);a.Tween=b;b.prototype.__class__="egret.Tween"})(egret||(egret={}));(function(a){var b=function(){function d(){a.Logger.fatal("Ease\u4e0d\u80fd\u88ab\u5b9e\u4f8b\u5316")}d.get=function(c){-1>c&&(c=-1);1c?e*(e*-c+1+c):e*((2-e)*c+(1-c))}};d.getPowIn=function(c){return function(e){return Math.pow(e,c)}};d.getPowOut=function(c){return function(e){return 1-Math.pow(1-e,c)}};d.getPowInOut=function(c){return function(e){return 1>(e*=2)?0.5*Math.pow(e,c):1-0.5*Math.abs(Math.pow(2-e,c))}};d.sineIn=function(c){return 1-Math.cos(c*Math.PI/2)};d.sineOut=function(c){return Math.sin(c*Math.PI/2)};d.sineInOut=function(c){return -0.5*(Math.cos(Math.PI*c)-1)};d.getBackIn=function(c){return function(e){return e*e*((c+1)*e-c)}};d.getBackOut=function(c){return function(e){e-=1;return e*e*((c+1)*e+c)+1}};d.getBackInOut=function(c){c*=1.525;return function(e){return 1>(e*=2)?0.5*e*e*((c+1)*e-c):0.5*((e-=2)*e*((c+1)*e+c)+2)}};d.circIn=function(c){return -(Math.sqrt(1-c*c)-1)};d.circOut=function(c){return Math.sqrt(1-c*c)};d.circInOut=function(c){return 1>(c*=2)?-0.5*(Math.sqrt(1-c*c)-1):0.5*(Math.sqrt(1-(c-=2)*c)+1)};d.bounceIn=function(c){return 1-d.bounceOut(1-c)};d.bounceOut=function(c){return c<1/2.75?7.5625*c*c:c<2/2.75?7.5625*(c-=1.5/2.75)*c+0.75:c<2.5/2.75?7.5625*(c-=2.25/2.75)*c+0.9375:7.5625*(c-=2.625/2.75)*c+0.984375};d.bounceInOut=function(c){return 0.5>c?0.5*d.bounceIn(2*c):0.5*d.bounceOut(2*c-1)+0.5};d.getElasticIn=function(c,e){var f=2*Math.PI;return function(h){if(0==h||1==h){return h}var g=e/f*Math.asin(1/c);return -(c*Math.pow(2,10*(h-=1))*Math.sin((h-g)*f/e))}};d.getElasticOut=function(c,e){var f=2*Math.PI;return function(h){if(0==h||1==h){return h}var g=e/f*Math.asin(1/c);return c*Math.pow(2,-10*h)*Math.sin((h-g)*f/e)+1}};d.getElasticInOut=function(c,e){var f=2*Math.PI;return function(h){var g=e/f*Math.asin(1/c);return 1>(h*=2)?-0.5*c*Math.pow(2,10*(h-=1))*Math.sin((h-g)*f/e):c*Math.pow(2,-10*(h-=1))*Math.sin((h-g)*f/e)*0.5+1}};d.quadIn=d.getPowIn(2);d.quadOut=d.getPowOut(2);d.quadInOut=d.getPowInOut(2);d.cubicIn=d.getPowIn(3);d.cubicOut=d.getPowOut(3);d.cubicInOut=d.getPowInOut(3);d.quartIn=d.getPowIn(4);d.quartOut=d.getPowOut(4);d.quartInOut=d.getPowInOut(4);d.quintIn=d.getPowIn(5);d.quintOut=d.getPowOut(5);d.quintInOut=d.getPowInOut(5);d.backIn=d.getBackIn(1.7);d.backOut=d.getBackOut(1.7);d.backInOut=d.getBackInOut(1.7);d.elasticIn=d.getElasticIn(1,0.3);d.elasticOut=d.getElasticOut(1,0.3);d.elasticInOut=d.getElasticInOut(1,0.3*1.5);return d}();a.Ease=b;b.prototype.__class__="egret.Ease"})(egret||(egret={}));(function(a){var b=function(){function d(){this.type=d.EFFECT}d.prototype.play=function(c){"undefined"===typeof c&&(c=!1);var e=this.audio;e&&(isNaN(e.duration)||(e.currentTime=0),e.loop=c,e.play())};d.prototype.pause=function(){var c=this.audio;c&&c.pause()};d.prototype.load=function(){var c=this.audio;c&&c.load()};d.prototype.addEventListener=function(c,e){this.audio&&this.audio.addEventListener(c,e,!1)};d.prototype.removeEventListener=function(c,e){this.audio&&this.audio.removeEventListener(c,e,!1)};d.prototype.setVolume=function(c){var e=this.audio;e&&(e.volume=c)};d.prototype.getVolume=function(){return this.audio?this.audio.volume:0};d.prototype.preload=function(c){this.type=c};d.prototype._setAudio=function(c){this.audio=c};d.MUSIC="music";d.EFFECT="effect";return d}();a.Sound=b;b.prototype.__class__="egret.Sound"})(egret||(egret={}));(function(a){var b=function(){function d(){}d.isNumber=function(c){return"number"===typeof c&&!isNaN(c)};return d}();a.NumberUtils=b;b.prototype.__class__="egret.NumberUtils"})(egret||(egret={}));var __extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d},RES;(function(a){var b=function(e){function d(f,g,c){"undefined"===typeof g&&(g=!1);"undefined"===typeof c&&(c=!1);e.call(this,f,g,c);this.itemsTotal=this.itemsLoaded=0}__extends(d,e);d.dispatchResourceEvent=function(i,n,o,m,l,j){"undefined"===typeof o&&(o="");"undefined"===typeof m&&(m=null);"undefined"===typeof l&&(l=0);"undefined"===typeof j&&(j=0);var k=egret.Event._getPropertyData(d);k.groupName=o;k.resItem=m;k.itemsLoaded=l;k.itemsTotal=j;egret.Event._dispatchByTarget(d,i,n,k)};d.ITEM_LOAD_ERROR="itemLoadError";d.CONFIG_COMPLETE="configComplete";d.GROUP_PROGRESS="groupProgress";d.GROUP_COMPLETE="groupComplete";return d}(egret.Event);a.ResourceEvent=b;b.prototype.__class__="RES.ResourceEvent"})(RES||(RES={}));(function(a){var b=function(){function d(c,e,f){this._loaded=!1;this.name=c;this.url=e;this.type=f}Object.defineProperty(d.prototype,"loaded",{get:function(){return this.data?this.data.loaded:this._loaded},set:function(c){this.data&&(this.data.loaded=c);this._loaded=c},enumerable:!0,configurable:!0});d.prototype.toString=function(){return'[ResourceItem name="'+this.name+'" url="'+this.url+'" type="'+this.type+'"]'};d.TYPE_XML="xml";d.TYPE_IMAGE="image";d.TYPE_BIN="bin";d.TYPE_TEXT="text";d.TYPE_JSON="json";d.TYPE_SHEET="sheet";d.TYPE_FONT="font";d.TYPE_SOUND="sound";return d}();a.ResourceItem=b;b.prototype.__class__="RES.ResourceItem"})(RES||(RES={}));(function(a){var b=function(){function d(){this.keyMap={};this.groupDic={}}d.prototype.getGroupByName=function(e){var f=[];if(!this.groupDic[e]){return f}e=this.groupDic[e];for(var g=e.length,h=0;h=h&&(this.queueIndex=0);f=this.itemListDic[g[this.queueIndex]];if(0f&&(f=1);this.resLoader.thread=f};e.GROUP_CONFIG="RES__CONFIG";return e}(egret.EventDispatcher);d.prototype.__class__="Resource";var a=new d})(RES||(RES={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(f){"undefined"===typeof f&&(f=null);c.call(this);this._source=f?f:[]}__extends(e,c);Object.defineProperty(e.prototype,"source",{get:function(){return this._source},set:function(f){f||(f=[]);this._source=f;this.dispatchCoEvent(d.CollectionEventKind.RESET)},enumerable:!0,configurable:!0});e.prototype.refresh=function(){this.dispatchCoEvent(d.CollectionEventKind.REFRESH)};e.prototype.contains=function(f){return -1!=this.getItemIndex(f)};e.prototype.checkIndex=function(f){if(0>f||f>=this._source.length){throw new RangeError('\u7d22\u5f15:"'+f+'"\u8d85\u51fa\u96c6\u5408\u5143\u7d20\u7d22\u5f15\u8303\u56f4')}};Object.defineProperty(e.prototype,"length",{get:function(){return this._source.length},enumerable:!0,configurable:!0});e.prototype.addItem=function(f){this._source.push(f);this.dispatchCoEvent(d.CollectionEventKind.ADD,this._source.length-1,-1,[f])};e.prototype.addItemAt=function(g,f){if(0>f||f>this._source.length){throw new RangeError('\u7d22\u5f15:"'+f+'"\u8d85\u51fa\u96c6\u5408\u5143\u7d20\u7d22\u5f15\u8303\u56f4')}this._source.splice(f,0,g);this.dispatchCoEvent(d.CollectionEventKind.ADD,f,-1,[g])};e.prototype.getItemAt=function(f){return this._source[f]};e.prototype.getItemIndex=function(h){for(var g=this._source.length,f=0;f=f?this.addItemAt(h[i],i):this.replaceItemAt(h[i],i)}this._source=h};e.prototype.moveItemAt=function(h,g){this.checkIndex(h);this.checkIndex(g);var f=this._source.splice(h,1)[0];this._source.splice(g,0,f);this.dispatchCoEvent(d.CollectionEventKind.MOVE,g,h,[f]);return f};e.prototype.dispatchCoEvent=function(k,h,g,j,i){"undefined"===typeof k&&(k=null);"undefined"===typeof h&&(h=-1);"undefined"===typeof g&&(g=-1);"undefined"===typeof j&&(j=null);"undefined"===typeof i&&(i=null);d.CollectionEvent.dispatchCollectionEvent(this,d.CollectionEvent.COLLECTION_CHANGE,k,h,g,j,i)};return e}(a.EventDispatcher);d.ArrayCollection=b;b.prototype.__class__="egret.gui.ArrayCollection"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(g,f){"undefined"===typeof g&&(g="children");"undefined"===typeof f&&(f="parent");c.call(this);this.nodeList=[];this._openNodes=[];this._showRoot=!1;this.childrenKey=g;this.parentKey=f}__extends(e,c);Object.defineProperty(e.prototype,"source",{get:function(){return this._source},set:function(f){this._source=f;this._openNodes=[];this.nodeList=[];this._source&&(this._showRoot?this.nodeList.push(this._source):(this._openNodes=[this._source],this.addChildren(this._source,this.nodeList)));this.dispatchCoEvent(d.CollectionEventKind.RESET)},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"openNodes",{get:function(){return this._openNodes.concat()},set:function(f){this._openNodes=f?f.concat():[];this.refresh()},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"length",{get:function(){return this.nodeList.length},enumerable:!0,configurable:!0});e.prototype.getItemAt=function(f){return this.nodeList[f]};e.prototype.getItemIndex=function(h){for(var g=this.nodeList.length,f=0;ff++;){this.doPhasedInstantiationCallBack()}};e.prototype.validateClient=function(k,h){"undefined"===typeof h&&(h=!1);var g,j=!1,i=this.targetLevel;for(this.targetLevel==Number.MAX_VALUE&&(this.targetLevel=k.nestLevel);!j;){j=!0;for(g=this.invalidatePropertiesQueue.removeSmallestChild(k);g;){g.parent&&(g.validateProperties(),g.updateCompletePendingFlag||(this.updateCompleteQueue.insert(g),g.updateCompletePendingFlag=!0)),g=this.invalidatePropertiesQueue.removeSmallestChild(k)}this.invalidatePropertiesQueue.isEmpty()&&(this.invalidatePropertiesFlag=!1);this.invalidateClientPropertiesFlag=!1;for(g=this.invalidateSizeQueue.removeLargestChild(k);g;){g.parent&&(g.validateSize(),g.updateCompletePendingFlag||(this.updateCompleteQueue.insert(g),g.updateCompletePendingFlag=!0));if(this.invalidateClientPropertiesFlag&&(g=this.invalidatePropertiesQueue.removeSmallestChild(k))){this.invalidatePropertiesQueue.insert(g);j=!1;break}g=this.invalidateSizeQueue.removeLargestChild(k)}this.invalidateSizeQueue.isEmpty()&&(this.invalidateSizeFlag=!1);this.invalidateClientSizeFlag=this.invalidateClientPropertiesFlag=!1;if(!h){for(g=this.invalidateDisplayListQueue.removeSmallestChild(k);g;){g.parent&&(g.validateDisplayList(),g.updateCompletePendingFlag||(this.updateCompleteQueue.insert(g),g.updateCompletePendingFlag=!0));if(this.invalidateClientPropertiesFlag&&(g=this.invalidatePropertiesQueue.removeSmallestChild(k))){this.invalidatePropertiesQueue.insert(g);j=!1;break}if(this.invalidateClientSizeFlag&&(g=this.invalidateSizeQueue.removeLargestChild(k))){this.invalidateSizeQueue.insert(g);j=!1;break}g=this.invalidateDisplayListQueue.removeSmallestChild(k)}this.invalidateDisplayListQueue.isEmpty()&&(this.invalidateDisplayListFlag=!1)}}if(i==Number.MAX_VALUE&&(this.targetLevel=Number.MAX_VALUE,!h)){for(g=this.updateCompleteQueue.removeLargestChild(k);g;){g.initialized||(g.initialized=!0),g.hasEventListener(d.UIEvent.UPDATE_COMPLETE)&&d.UIEvent.dispatchUIEvent(g,d.UIEvent.UPDATE_COMPLETE),g.updateCompletePendingFlag=!1,g=this.updateCompleteQueue.removeLargestChild(k)}}};return e}(a.EventDispatcher);d.LayoutManager=b;b.prototype.__class__="egret.gui.LayoutManager"})(a.gui||(a.gui={}))})(egret||(egret={}));(function(a){(function(g){var e=function(){function b(){this.depthBins=[];this.minDepth=0;this.maxDepth=-1}b.prototype.insert=function(i){var f=i.nestLevel,j=i.hashCode;this.maxDepththis.maxDepth&&(this.maxDepth=f));var h=this.depthBins[f];h?null==h.items[j]&&(h.items[j]=i,h.length++):(h=new d,this.depthBins[f]=h,h.items[j]=i,h.length++)};b.prototype.pop=function(){var i=null;if(this.minDepth<=this.maxDepth){for(var h=this.depthBins[this.maxDepth];!h||0==h.length;){this.maxDepth--;if(this.maxDepththis.maxDepth){return null}h=this.depthBins[this.minDepth]}var f=h.items,j;for(j in f){i=f[j];this.remove(i,this.minDepth);break}for(;!h||0==h.length;){this.minDepth++;if(this.minDepth>this.maxDepth){break}h=this.depthBins[this.minDepth]}}return i};b.prototype.removeLargestChild=function(n){for(var i=this.maxDepth,h=n.nestLevel,o=n.hashCode;h<=i;){var m=this.depthBins[i];if(m&&0this.maxDepth){break}}}return null};b.prototype.remove=function(i,h){"undefined"===typeof h&&(h=-1);var f=i.hashCode,j=this.depthBins[0<=h?h:i.nestLevel];return j&&null!=j.items[f]?(delete j.items[f],j.length--,i):null};b.prototype.removeAll=function(){this.minDepth=this.depthBins.length=0;this.maxDepth=-1};b.prototype.isEmpty=function(){return this.minDepth>this.maxDepth};return b}();g.DepthQueue=e;e.prototype.__class__="egret.gui.DepthQueue";var d=function(){return function(){this.length=0;this.items=[]}}();g.DepthBin=d;d.prototype.__class__="egret.gui.DepthBin"})(a.gui||(a.gui={}))})(egret||(egret={}));(function(a){(function(d){var b=function(){function c(){}Object.defineProperty(c,"stage",{get:function(){return c._stage},enumerable:!0,configurable:!0});c._initlize=function(e){c.initlized||(c._stage=e,c._layoutManager=new d.LayoutManager,c.initlized=!0)};Object.defineProperty(c,"uiStage",{get:function(){return c._uiStage},enumerable:!0,configurable:!0});c.initlized=!1;return c}();d.UIGlobals=b;b.prototype.__class__="egret.gui.UIGlobals"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this.initializeCalled=this._initialized=this._updateCompletePendingFlag=!1;this._nestLevel=0;this._enabled=!0;this._minWidth=this._height=this._width=0;this._maxWidth=10000;this._minHeight=0;this._maxHeight=10000;this._measuredHeight=this._measuredWidth=0;this._validateNowFlag=this._invalidateDisplayListFlag=this._invalidateSizeFlag=this._invalidatePropertiesFlag=!1;this._includeInLayout=!0;this._layoutHeightExplicitlySet=this._layoutWidthExplicitlySet=!1;this.touchEnabled=!0;this.addEventListener(a.Event.ADDED_TO_STAGE,this.onAddedToStage,this);this.addEventListener(a.Event.ADDED_TO_STAGE,this.checkInvalidateFlag,this)}__extends(e,c);e.prototype.onAddedToStage=function(f){this.removeEventListener(a.Event.ADDED_TO_STAGE,this.onAddedToStage,this);this._initialize();d.UIGlobals._initlize(this.stage);0this.maxWidth&&(this.measuredWidth=this.maxWidth),this.measuredHeightthis.maxHeight&&(this.measuredHeight=this.maxHeight));if(isNaN(this._oldPreferWidth)){this._oldPreferWidth=this.preferredWidth,this._oldPreferHeight=this.preferredHeight,f=!0}else{if(this.preferredWidth!=this._oldPreferWidth||this.preferredHeight!=this._oldPreferHeight){f=!0}this._oldPreferWidth=this.preferredWidth;this._oldPreferHeight=this.preferredHeight}return f};e.prototype.invalidateDisplayList=function(){this._invalidateDisplayListFlag||(this._invalidateDisplayListFlag=!0,this.parent&&d.UIGlobals._layoutManager&&d.UIGlobals._layoutManager.invalidateDisplayList(this))};e.prototype.validateDisplayList=function(){if(this._invalidateDisplayListFlag){var g=0,f=0,g=this._layoutWidthExplicitlySet?this._width:isNaN(this.explicitWidth)?this.measuredWidth:this._explicitWidth,f=this._layoutHeightExplicitlySet?this._height:isNaN(this.explicitHeight)?this.measuredHeight:this._explicitHeight;isNaN(g)&&(g=0);isNaN(f)&&(f=0);this.setActualSize(g,f);this.updateDisplayList(g,f);this._invalidateDisplayListFlag=!1}};e.prototype.validateNow=function(f){"undefined"===typeof f&&(f=!1);this._validateNowFlag||null==d.UIGlobals._layoutManager?this._validateNowFlag=!0:d.UIGlobals._layoutManager.validateClient(this,f)};e.prototype.invalidateParentSizeAndDisplayList=function(){if(this.parent&&this._includeInLayout&&"invalidateSize" in this.parent){var f=this.parent;f.invalidateSize();f.invalidateDisplayList()}};e.prototype.updateDisplayList=function(g,f){};e.prototype.canSkipMeasurement=function(){return !isNaN(this._explicitWidth)&&!isNaN(this._explicitHeight)};e.prototype.commitProperties=function(){this.oldWidth==this._width&&this.oldHeight==this._height||this.dispatchResizeEvent();this.oldX==this.x&&this.oldY==this.y||this.dispatchMoveEvent()};e.prototype.measure=function(){this._measuredWidth=this._measuredHeight=0};e.prototype.dispatchMoveEvent=function(){this.hasEventListener(d.MoveEvent.MOVE)&&d.MoveEvent.dispatchMoveEvent(this,this.oldX,this.oldY);this.oldX=this.x;this.oldY=this.y};e.prototype._childXYChanged=function(){};e.prototype.dispatchResizeEvent=function(){this.hasEventListener(d.ResizeEvent.RESIZE)&&d.ResizeEvent.dispatchResizeEvent(this,this.oldWidth,this.oldHeight);this.oldWidth=this._width;this.oldHeight=this._height};Object.defineProperty(e.prototype,"includeInLayout",{get:function(){return this._includeInLayout},set:function(f){this._includeInLayout!=f&&(this._includeInLayout=!0,this.invalidateParentSizeAndDisplayList(),this._includeInLayout=f)},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"left",{get:function(){return this._left},set:function(f){this._left!=f&&(this._left=f,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"right",{get:function(){return this._right},set:function(f){this._right!=f&&(this._right=f,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"top",{get:function(){return this._top},set:function(f){this._top!=f&&(this._top=f,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"bottom",{get:function(){return this._bottom},set:function(f){this._bottom!=f&&(this._bottom=f,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"horizontalCenter",{get:function(){return this._horizontalCenter},set:function(f){this._horizontalCenter!=f&&(this._horizontalCenter=f,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"verticalCenter",{get:function(){return this._verticalCenter},set:function(f){this._verticalCenter!=f&&(this._verticalCenter=f,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"percentWidth",{get:function(){return this._percentWidth},set:function(f){this._percentWidth!=f&&(this._percentWidth=f,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"percentHeight",{get:function(){return this._percentHeight},set:function(f){this._percentHeight!=f&&(this._percentHeight=f,this.invalidateParentSizeAndDisplayList())},enumerable:!0,configurable:!0});e.prototype.setLayoutBoundsSize=function(g,f){isNaN(g)?(this._layoutWidthExplicitlySet=!1,g=this.preferredWidth):this._layoutWidthExplicitlySet=!0;isNaN(f)?(this._layoutHeightExplicitlySet=!1,f=this.preferredHeight):this._layoutHeightExplicitlySet=!0;this.setActualSize(g/this._scaleX,f/this._scaleY)};e.prototype.setLayoutBoundsPosition=function(h,g){0>this._scaleX&&(h+=this.layoutBoundsWidth);0>this._scaleY&&(g+=this.layoutBoundsHeight);var f=!1;this._x!=h&&(this._x=h,f=!0);this._y!=g&&(this._y=g,f=!0);f&&this.dispatchMoveEvent()};Object.defineProperty(e.prototype,"preferredWidth",{get:function(){var g=this._hasWidthSet?this._explicitWidth:this._measuredWidth,f=this._scaleX;0>f&&(f=-f);return g*f},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"preferredHeight",{get:function(){var g=this._hasHeightSet?this._explicitHeight:this._measuredHeight,f=this._scaleY;0>f&&(f=-f);return g*f},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"preferredX",{get:function(){return 0<=this._scaleX?this._x:this._x-this.preferredWidth},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"preferredY",{get:function(){return 0<=this._scaleY?this._y:this._y-this.preferredHeight},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"layoutBoundsX",{get:function(){return 0<=this._scaleX?this._x:this._x-this.layoutBoundsWidth},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"layoutBoundsY",{get:function(){return 0<=this._scaleY?this._y:this._y-this.layoutBoundsHeight},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"layoutBoundsWidth",{get:function(){var g=0,g=this._layoutWidthExplicitlySet?this._width:this._hasWidthSet?this._explicitWidth:this._measuredWidth,f=this._scaleX;0>f&&(f=-f);return g*f},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"layoutBoundsHeight",{get:function(){var g=0,g=this._layoutHeightExplicitlySet?this._height:this._hasHeightSet?this._explicitHeight:this._measuredHeight,f=this.scaleY;0>f&&(f=-f);return g*f},enumerable:!0,configurable:!0});return e}(a.DisplayObjectContainer);d.UIComponent=b;b.prototype.__class__="egret.gui.UIComponent"})(a.gui||(a.gui={}))})(egret||(egret={}));(function(a){(function(d){var b=function(){function c(){}c.ABOVE="above";c.BELOW="below";c.CENTER="center";c.TOP_LEFT="topLeft";c.LEFT="left";c.RIGHT="right";return c}();d.PopUpPosition=b;b.prototype.__class__="egret.gui.PopUpPosition"})(a.gui||(a.gui={}))})(egret||(egret={}));(function(a){(function(d){var b=function(){function c(){}c.AUTO="auto";c.OFF="off";c.ON="on";return c}();d.ScrollPolicy=b;b.prototype.__class__="egret.gui.ScrollPolicy"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(f){"undefined"===typeof f&&(f=null);c.call(this);this.generator=f}__extends(e,c);e.prototype.newInstance=function(){return new this.generator};return e}(a.HashObject);d.ClassFactory=b;b.prototype.__class__="egret.gui.ClassFactory"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this)}__extends(e,c);e.prototype.initialize=function(f){};e.prototype.apply=function(f){};e.prototype.remove=function(f){};e.prototype.initializeFromObject=function(g){for(var f in g){this[f]=g[f]}return this};return e}(a.HashObject);d.OverrideBase=b;b.prototype.__class__="egret.gui.OverrideBase"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(i,j,h,g){c.call(this);this.propertyName="";this.position=e.LAST;this.target=i;this.propertyName=j;this.position=h;this.relativeTo=g}__extends(e,c);e.prototype.initialize=function(g){if((g=g[this.target])&&!(g instanceof d.SkinnableComponent)&&"_initialize" in g){try{g._initialize()}catch(f){}}};e.prototype.apply=function(j){var g,k;try{k=j[this.relativeTo]}catch(i){}var h=j[this.target];j=this.propertyName?j[this.propertyName]:j;if(h&&j){switch(this.position){case e.FIRST:g=0;break;case e.LAST:g=-1;break;case e.BEFORE:g=j.getElementIndex(k);break;case e.AFTER:g=j.getElementIndex(k)+1}-1==g&&(g=j.numElements);j.addElementAt(h,g)}};e.prototype.remove=function(g){var f=null==this.propertyName||""==this.propertyName?g:g[this.propertyName];(g=g[this.target])&&f&&-1!=f.getElementIndex(g)&&f.removeElement(g)};e.FIRST="first";e.LAST="last";e.BEFORE="before";e.AFTER="after";return e}(d.OverrideBase);d.AddItems=b;b.prototype.__class__="egret.gui.AddItems"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(g,f,h){c.call(this);this.target=g;this.name=f;this.value=h}__extends(e,c);e.prototype.apply=function(f){f=null==this.target||""==this.target?f:f[this.target];null!=f&&(this.oldValue=f[this.name],this.setPropertyValue(f,this.name,this.value,this.oldValue))};e.prototype.remove=function(f){f=null==this.target||""==this.target?f:f[this.target];null!=f&&(this.setPropertyValue(f,this.name,this.oldValue,this.oldValue),this.oldValue=null)};e.prototype.setPropertyValue=function(h,g,f,i){h[g]=void 0===f||null===f?f:"boolean"==typeof i?this.toBoolean(f):f};e.prototype.toBoolean=function(f){return"string"==typeof f?"true"==f.toLowerCase():!1!=f};return e}(d.OverrideBase);d.SetProperty=b;b.prototype.__class__="egret.gui.SetProperty"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(g,f){c.call(this);this.initialized=!1;this.name=g;this.overrides=f}__extends(e,c);e.prototype.initialize=function(g){if(!this.initialized){this.initialized=!0;for(var f=0;fk.right&&(k.right=i+l);g+j>k.bottom&&(k.bottom=g+j)}return k};e.prototype.addChild=function(f){throw Error("addChild()"+e.errorStr+"addElement()\u4ee3\u66ff")};e.prototype.addChildAt=function(g,f){throw Error("addChildAt()"+e.errorStr+"addElementAt()\u4ee3\u66ff")};e.prototype.removeChild=function(f){throw Error("removeChild()"+e.errorStr+"removeElement()\u4ee3\u66ff")};e.prototype.removeChildAt=function(f){throw Error("removeChildAt()"+e.errorStr+"removeElementAt()\u4ee3\u66ff")};e.prototype.setChildIndex=function(g,f){throw Error("setChildIndex()"+e.errorStr+"setElementIndex()\u4ee3\u66ff")};e.prototype.swapChildren=function(g,f){throw Error("swapChildren()"+e.errorStr+"swapElements()\u4ee3\u66ff")};e.prototype.swapChildrenAt=function(g,f){throw Error("swapChildrenAt()"+e.errorStr+"swapElementsAt()\u4ee3\u66ff")};e.errorStr="\u5728\u6b64\u7ec4\u4ef6\u4e2d\u4e0d\u53ef\u7528\uff0c\u82e5\u6b64\u7ec4\u4ef6\u4e3a\u5bb9\u5668\u7c7b\uff0c\u8bf7\u4f7f\u7528";return e}(d.UIComponent);d.UIAsset=b;b.prototype.__class__="egret.gui.UIAsset"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this.hostComponentKey="egret.gui.SkinnableComponent";this.stateIsDirty=this.skinLayoutEnabled=this.createChildrenCalled=this._skinNameExplicitlySet=!1;this.explicitMouseEnabled=this.explicitMouseChildren=this._autoMouseEnabled=!0}__extends(e,c);Object.defineProperty(e.prototype,"skinName",{get:function(){return this._skinName},set:function(f){this._skinName!=f&&(this._skinName=f,this._skinNameExplicitlySet=!0,this.createChildrenCalled&&this.parseSkinName())},enumerable:!0,configurable:!0});e.prototype.createChildren=function(){c.prototype.createChildren.call(this);this.parseSkinName();this.createChildrenCalled=!0};e.prototype.parseSkinName=function(){var g=e.skinAdapter;g||(g=this.getSkinAdapter());g=g.getSkin(this._skinName,this.hostComponentKey);if(!g){var f=e._defaultTheme;f&&(g=f.getDefaultSkin(this))}this._setSkin(g)};e.prototype.getSkinAdapter=function(){var g;try{g=a.Injector.getInstance("egret.gui.ISkinAdapter")}catch(f){g=new d.DefaultSkinAdapter}return e.skinAdapter=g};Object.defineProperty(e.prototype,"skin",{get:function(){return this._skin},enumerable:!0,configurable:!0});e.prototype._setSkin=function(g){var f=this._skin;this.detachSkin(f);f instanceof a.DisplayObject&&this._removeFromDisplayList(f);this._skin=g;g instanceof a.DisplayObject&&this._addToDisplayListAt(this._skin,0);this.attachSkin(g);this.invalidateSkinState();this.invalidateSize();this.invalidateDisplayList();this.hasEventListener(d.UIEvent.SKIN_CHANGED)&&d.UIEvent.dispatchUIEvent(this,d.UIEvent.SKIN_CHANGED)};e.prototype.attachSkin=function(f){f&&"hostComponent" in f&&(f.hostComponent=this,this.findSkinParts());this.skinLayoutEnabled=!f||f instanceof a.DisplayObject?!1:!0};e.prototype.findSkinParts=function(){var k=this._skin;if(k&&"skinParts" in k){for(var h=k.skinParts,g=h.length,l=0;le){return !1}this._isPlaying||(this._isPlaying=!0,0==this.playedTimes&&null!=this.startFunction&&this.startFunction.call(this.thisObject,this));var f=0==this._duration?1:Math.min(e,this._duration)/this._duration;this.caculateCurrentValue(f);null!=this.updateFunction&&this.updateFunction.call(this.thisObject,this);if(e=e>=this._duration){this.playedTimes++,this._isPlaying=!1,this.startTime=c.currentTime,0==this._repeatCount||this.playedTimesthis.maximum&&(this.maxChanged?this._maximum=this._minimum:this._minimum=this._maximum);if(this.valueChanged||this.maxChanged||this.minChanged||this.snapIntervalChanged){var f=this.valueChanged?this._changedValue:this._value;this.snapIntervalChanged=this.minChanged=this.maxChanged=this.valueChanged=!1;this.setValue(this.nearestValidValue(f,this.snapInterval))}this.stepSizeChanged&&(this._explicitSnapInterval?this._stepSize=this.nearestValidSize(this._stepSize):(this._snapInterval=this._stepSize,this.setValue(this.nearestValidValue(this._value,this.snapInterval))),this.stepSizeChanged=!1)};e.prototype.nearestValidSize=function(g){var f=this.snapInterval;if(0==f){return g}g=Math.round(g/f)*f;return Math.abs(g)=(f-h)/2?f:h)/j+this.minimum};e.prototype.setValue=function(f){this._value!=f&&(isNaN(f)&&(f=0),!isNaN(this.maximum)&&!isNaN(this.minimum)&&this.maximum>this.minimum?this._value=Math.min(this.maximum,Math.max(this.minimum,f)):this._value=f,this.valueChanged=!1)};e.prototype.changeValueByStep=function(f){"undefined"===typeof f&&(f=!0);0!=this.stepSize&&this.setValue(this.nearestValidValue(f?this.value+this.stepSize:this.value-this.stepSize,this.snapInterval))};return e}(d.SkinnableComponent);d.Range=b;b.prototype.__class__="egret.gui.Range"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this._slideDuration=300;this.needUpdateValue=!1;this.addEventListener(a.Event.ADDED_TO_STAGE,this.addedToStageHandler,this);this.addEventListener(a.TouchEvent.TOUCH_BEGIN,this.mouseDownHandler,this)}__extends(e,c);Object.defineProperty(e.prototype,"slideDuration",{get:function(){return this._slideDuration},set:function(f){this._slideDuration=f},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"maximum",{get:function(){return this._maximum},set:function(f){f!=this._maximum&&(this._setMaximun(f),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"minimum",{get:function(){return this._minimum},set:function(f){f!=this._minimum&&(this._setMinimun(f),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"value",{get:function(){return this._getValue()},set:function(f){f!=this._getValue()&&(this._setValue(f),this.invalidateDisplayList())},enumerable:!0,configurable:!0});e.prototype.setValue=function(f){c.prototype.setValue.call(this,f);this.invalidateDisplayList()};e.prototype.pointToValue=function(g,f){return this.minimum};e.prototype.changeValueByStep=function(g){"undefined"===typeof g&&(g=!0);var f=this.value;c.prototype.changeValueByStep.call(this,g);this.value!=f&&this.dispatchEventWith(a.Event.CHANGE)};e.prototype.partAdded=function(g,f){c.prototype.partAdded.call(this,g,f);f==this.thumb?(this.thumb.addEventListener(a.TouchEvent.TOUCH_BEGIN,this.thumb_mouseDownHandler,this),this.thumb.addEventListener(d.ResizeEvent.RESIZE,this.thumb_resizeHandler,this),this.thumb.addEventListener(d.UIEvent.UPDATE_COMPLETE,this.thumb_updateCompleteHandler,this),this.thumb.stickyHighlighting=!0):f==this.track&&(this.track.addEventListener(a.TouchEvent.TOUCH_BEGIN,this.track_mouseDownHandler,this),this.track.addEventListener(d.ResizeEvent.RESIZE,this.track_resizeHandler,this))};e.prototype.partRemoved=function(g,f){c.prototype.partRemoved.call(this,g,f);f==this.thumb?(this.thumb.removeEventListener(a.TouchEvent.TOUCH_BEGIN,this.thumb_mouseDownHandler,this),this.thumb.removeEventListener(d.ResizeEvent.RESIZE,this.thumb_resizeHandler,this),this.thumb.removeEventListener(d.UIEvent.UPDATE_COMPLETE,this.thumb_updateCompleteHandler,this)):f==this.track&&(this.track.removeEventListener(a.TouchEvent.TOUCH_BEGIN,this.track_mouseDownHandler,this),this.track.removeEventListener(d.ResizeEvent.RESIZE,this.track_resizeHandler,this))};e.prototype.updateDisplayList=function(g,f){c.prototype.updateDisplayList.call(this,g,f);this.updateSkinDisplayList()};e.prototype.updateSkinDisplayList=function(){};e.prototype.addedToStageHandler=function(f){this.updateSkinDisplayList()};e.prototype.track_resizeHandler=function(f){this.updateSkinDisplayList()};e.prototype.thumb_resizeHandler=function(f){this.updateSkinDisplayList()};e.prototype.thumb_updateCompleteHandler=function(f){this.updateSkinDisplayList();this.thumb.removeEventListener(d.UIEvent.UPDATE_COMPLETE,this.thumb_updateCompleteHandler,this)};e.prototype.thumb_mouseDownHandler=function(f){d.UIGlobals.stage.addEventListener(a.TouchEvent.TOUCH_MOVE,this.stage_mouseMoveHandler,this);d.UIGlobals.stage.addEventListener(a.TouchEvent.TOUCH_END,this.stage_mouseUpHandler,this);d.UIGlobals.stage.addEventListener(a.Event.LEAVE_STAGE,this.stage_mouseUpHandler,this);this.addEventListener(a.Event.ENTER_FRAME,this.onEnterFrame,this);f=this.thumb.globalToLocal(f.stageX,f.stageY,a.Point.identity);this._clickOffsetX=f.x;this._clickOffsetY=f.y;d.TrackBaseEvent.dispatchTrackBaseEvent(this,d.TrackBaseEvent.THUMB_PRESS);d.UIEvent.dispatchUIEvent(this,d.UIEvent.CHANGE_START)};e.prototype.onEnterFrame=function(f){this.needUpdateValue&&this.track&&(this.updateWhenMouseMove(),this.needUpdateValue=!1)};e.prototype.updateWhenMouseMove=function(){if(this.track){var f=this.track.globalToLocal(this._moveStageX,this._moveStageY,a.Point.identity),f=this.pointToValue(f.x-this._clickOffsetX,f.y-this._clickOffsetY),f=this.nearestValidValue(f,this.snapInterval);f!=this.value&&(this.setValue(f),this.validateDisplayList(),d.TrackBaseEvent.dispatchTrackBaseEvent(this,d.TrackBaseEvent.THUMB_DRAG),this.dispatchEventWith(a.Event.CHANGE))}};e.prototype.stage_mouseMoveHandler=function(f){this._moveStageX=f.stageX;this._moveStageY=f.stageY;this.needUpdateValue||(this.needUpdateValue=!0)};e.prototype.stage_mouseUpHandler=function(f){d.UIGlobals.stage.removeEventListener(a.TouchEvent.TOUCH_MOVE,this.stage_mouseMoveHandler,this);d.UIGlobals.stage.removeEventListener(a.TouchEvent.TOUCH_END,this.stage_mouseUpHandler,this);d.UIGlobals.stage.removeEventListener(a.Event.LEAVE_STAGE,this.stage_mouseUpHandler,this);this.removeEventListener(a.Event.ENTER_FRAME,this.updateWhenMouseMove,this);this.needUpdateValue&&(this.updateWhenMouseMove(),this.needUpdateValue=!1);d.TrackBaseEvent.dispatchTrackBaseEvent(this,d.TrackBaseEvent.THUMB_RELEASE);d.UIEvent.dispatchUIEvent(this,d.UIEvent.CHANGE_END)};e.prototype.track_mouseDownHandler=function(f){};e.prototype.mouseDownHandler=function(f){d.UIGlobals.stage.addEventListener(a.TouchEvent.TOUCH_END,this.stage_mouseUpSomewhereHandler,this);d.UIGlobals.stage.addEventListener(a.Event.LEAVE_STAGE,this.stage_mouseUpSomewhereHandler,this);this.mouseDownTarget=f.target};e.prototype.stage_mouseUpSomewhereHandler=function(g){d.UIGlobals.stage.removeEventListener(a.TouchEvent.TOUCH_END,this.stage_mouseUpSomewhereHandler,this);d.UIGlobals.stage.removeEventListener(a.Event.LEAVE_STAGE,this.stage_mouseUpSomewhereHandler,this);if(this.mouseDownTarget!=g.target&&g instanceof a.TouchEvent&&this.contains(g.target)){var f=g.target.localToGlobal(g.localX,g.localY);a.TouchEvent.dispatchTouchEvent(this,a.TouchEvent.TOUCH_TAP,g.touchPointID,f.x,f.y,g.ctrlKey,g.altKey,g.shiftKey,g.touchDown)}this.mouseDownTarget=null};return e}(d.Range);d.TrackBase=b;b.prototype.__class__="egret.gui.TrackBase"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this._showTrackHighlight=!0;this._pendingValue=0;this._liveDragging=!0;this.maximum=10}__extends(e,c);Object.defineProperty(e.prototype,"showTrackHighlight",{get:function(){return this._showTrackHighlight},set:function(f){this._showTrackHighlight!=f&&(this._showTrackHighlight=f,this.trackHighlight&&(this.trackHighlight.visible=f),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"pendingValue",{get:function(){return this._pendingValue},set:function(f){f!=this._pendingValue&&(this._pendingValue=f,this.invalidateDisplayList())},enumerable:!0,configurable:!0});e.prototype.setValue=function(f){this._pendingValue=f;c.prototype.setValue.call(this,f)};e.prototype.animationUpdateHandler=function(f){this.pendingValue=f.currentValue.value};e.prototype.animationEndHandler=function(f){this.setValue(this.slideToValue);this.dispatchEventWith(a.Event.CHANGE);d.UIEvent.dispatchUIEvent(this,d.UIEvent.CHANGE_END)};e.prototype.stopAnimation=function(){this.animator.stop();this.setValue(this.nearestValidValue(this.pendingValue,this.snapInterval));this.dispatchEventWith(a.Event.CHANGE);d.UIEvent.dispatchUIEvent(this,d.UIEvent.CHANGE_END)};e.prototype.thumb_mouseDownHandler=function(f){this.animator&&this.animator.isPlaying&&this.stopAnimation();c.prototype.thumb_mouseDownHandler.call(this,f)};Object.defineProperty(e.prototype,"liveDragging",{get:function(){return this._liveDragging},set:function(f){this._liveDragging=f},enumerable:!0,configurable:!0});e.prototype.updateWhenMouseMove=function(){if(this.track){var f=this.track.globalToLocal(this._moveStageX,this._moveStageY,a.Point.identity),f=this.pointToValue(f.x-this._clickOffsetX,f.y-this._clickOffsetY),f=this.nearestValidValue(f,this.snapInterval);f!=this.pendingValue&&(d.TrackBaseEvent.dispatchTrackBaseEvent(this,d.TrackBaseEvent.THUMB_DRAG),!0==this.liveDragging?(this.setValue(f),this.dispatchEventWith(a.Event.CHANGE)):this.pendingValue=f)}};e.prototype.stage_mouseUpHandler=function(f){c.prototype.stage_mouseUpHandler.call(this,f);!1==this.liveDragging&&this.value!=this.pendingValue&&(this.setValue(this.pendingValue),this.dispatchEventWith(a.Event.CHANGE))};e.prototype.track_mouseDownHandler=function(f){this.enabled&&(f=this.track.globalToLocal(f.stageX-(this.thumb?this.thumb.width:0)/2,f.stageY-(this.thumb?this.thumb.height:0)/2,a.Point.identity),f=this.pointToValue(f.x,f.y),f=this.nearestValidValue(f,this.snapInterval),f!=this.pendingValue&&(0!=this.slideDuration?(this.animator||(this.animator=new d.Animation(this.animationUpdateHandler,this),this.animator.endFunction=this.animationEndHandler),this.animator.isPlaying&&this.stopAnimation(),this.slideToValue=f,this.animator.duration=this.slideDuration*(Math.abs(this.pendingValue-this.slideToValue)/(this.maximum-this.minimum)),this.animator.motionPaths=[{prop:"value",from:this.pendingValue,to:this.slideToValue}],d.UIEvent.dispatchUIEvent(this,d.UIEvent.CHANGE_START),this.animator.play()):(this.setValue(f),this.dispatchEventWith(a.Event.CHANGE))))};e.prototype.partAdded=function(g,f){c.prototype.partAdded.call(this,g,f);f==this.trackHighlight&&(this.trackHighlight.touchEnabled=!1,this.trackHighlight instanceof a.DisplayObjectContainer&&(this.trackHighlight.touchChildren=!1),this.trackHighlight.visible=this._showTrackHighlight)};return e}(d.TrackBase);d.SliderBase=b;b.prototype.__class__="egret.gui.SliderBase"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this._maxDisplayedLines=0;this.lastUnscaledWidth=NaN;this._padding=0;this._paddingBottom=this._paddingTop=this._paddingRight=this._paddingLeft=NaN;this.addEventListener(d.UIEvent.UPDATE_COMPLETE,this.updateCompleteHandler,this)}__extends(e,c);e.prototype.updateCompleteHandler=function(f){this.lastUnscaledWidth=NaN};Object.defineProperty(e.prototype,"maxDisplayedLines",{get:function(){return this._maxDisplayedLines},set:function(f){this._maxDisplayedLines!=f&&(this._maxDisplayedLines=f,this.invalidateSize(),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(f){this._padding!=f&&(this._padding=f,this.invalidateSize(),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"paddingLeft",{get:function(){return this._paddingLeft},set:function(f){this._paddingLeft!=f&&(this._paddingLeft=f,this.invalidateSize(),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"paddingRight",{get:function(){return this._paddingRight},set:function(f){this._paddingRight!=f&&(this._paddingRight=f,this.invalidateSize(),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"paddingTop",{get:function(){return this._paddingTop},set:function(f){this._paddingTop!=f&&(this._paddingTop=f,this.invalidateSize(),this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"paddingBottom",{get:function(){return this._paddingBottom},set:function(f){this._paddingBottom!=f&&(this._paddingBottom=f,this.invalidateSize(),this.invalidateDisplayList())},enumerable:!0,configurable:!0});e.prototype.measure=function(){this._invalidatePropertiesFlag&&this.validateProperties();if(this.isSpecialCase()){if(isNaN(this.lastUnscaledWidth)){this._oldPreferHeight=this._oldPreferWidth=NaN}else{this.measureUsingWidth(this.lastUnscaledWidth);return}}var f;isNaN(this.explicitWidth)?10000!=this.maxWidth&&(f=this.maxWidth):f=this.explicitWidth;this.measureUsingWidth(f)};e.prototype.isSpecialCase=function(){return 1!=this._maxDisplayedLines&&(!isNaN(this.percentWidth)||!isNaN(this.left)&&!isNaN(this.right))&&isNaN(this.explicitHeight)&&isNaN(this.percentHeight)};e.prototype.measureUsingWidth=function(k){var h=this._textField.text;this._textChanged&&(this._textField.text=this._text);var g=isNaN(this._padding)?0:this._padding,l=isNaN(this._paddingLeft)?g:this._paddingLeft,j=isNaN(this._paddingRight)?g:this._paddingRight,i=isNaN(this._paddingTop)?g:this._paddingTop,g=isNaN(this._paddingBottom)?g:this._paddingBottom;this._textField.width=NaN;this._textField.height=NaN;isNaN(k)||(this._textField.width=k-l-j);this.measuredWidth=Math.ceil(this._textField.measuredWidth);this.measuredHeight=Math.ceil(this._textField.measuredHeight);0this._maxDisplayedLines&&(k=this._textField.lineSpacing,this.measuredHeight=(this._textField.size+k)*this._maxDisplayedLines-k);this.measuredWidth+=l+j;this.measuredHeight+=i+g;this._textField.text=h};e.prototype.updateDisplayList=function(m,h){this.$updateDisplayList(m,h);var g=isNaN(this._padding)?0:this._padding,n=isNaN(this._paddingLeft)?g:this._paddingLeft,l=isNaN(this._paddingRight)?g:this._paddingRight,j=isNaN(this._paddingTop)?g:this._paddingTop,g=isNaN(this._paddingBottom)?g:this._paddingBottom;this._textField.x=n;this._textField.y=j;if(this.isSpecialCase()){var i=isNaN(this.lastUnscaledWidth)||this.lastUnscaledWidth!=m;this.lastUnscaledWidth=m;if(i){this._oldPreferHeight=this._oldPreferWidth=NaN;this.invalidateSize();return}}this._invalidateSizeFlag&&this.validateSize();this._textField.visible||(this._textField.visible=!0);this._textField.width=m-n-l;n=h-j-g;this._textField.height=n;0this._maxDisplayedLines&&(l=this._textField.lineSpacing,this._textField.height=Math.min(n,(this._textField.size+l)*this._maxDisplayedLines-l))};return e}(d.TextBase);d.Label=b;b.prototype.__class__="egret.gui.Label"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this._fillColor=16777215;this._fillAlpha=1;this._strokeColor=4473924;this._strokeAlpha=0;this._strokeWeight=1;this.touchChildren=!1}__extends(e,c);Object.defineProperty(e.prototype,"graphics",{get:function(){this._graphics||(this._graphics=new a.Graphics);return this._graphics},enumerable:!0,configurable:!0});e.prototype._render=function(f){this._graphics&&this._graphics._draw(f);c.prototype._render.call(this,f)};Object.defineProperty(e.prototype,"fillColor",{get:function(){return this._fillColor},set:function(f){this._fillColor!=f&&(this._fillColor=f,this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"fillAlpha",{get:function(){return this._fillAlpha},set:function(f){this._fillAlpha!=f&&(this._fillAlpha=f,this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"strokeColor",{get:function(){return this._strokeColor},set:function(f){this._strokeColor!=f&&(this._strokeColor=f,this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"strokeAlpha",{get:function(){return this._strokeAlpha},set:function(f){this._strokeAlpha!=f&&(this._strokeAlpha=f,this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"strokeWeight",{get:function(){return this._strokeWeight},set:function(f){this._strokeWeight!=f&&(this._strokeWeight=f,this.invalidateDisplayList())},enumerable:!0,configurable:!0});e.prototype._measureBounds=function(){var g=c.prototype._measureBounds.call(this),f=this.width,h=this.height;0g.right&&(g.right=0+f);0+h>g.bottom&&(g.bottom=0+h);return g};e.prototype.updateDisplayList=function(g,f){c.prototype.updateDisplayList.call(this,g,g);var h=this.graphics;h.clear();h.beginFill(this._fillColor,this._fillAlpha);0i||l>s?1:kl?-1:r==j?0:g(p,o)}h.addEventListener(a.Event.REMOVED,this.radioButton_removedHandler,this);this.radioButtons.push(h);this.radioButtons.sort(g);for(var f=0;fh||h>f){throw new RangeError('\u7d22\u5f15:"'+h+'"\u8d85\u51fa\u53ef\u89c6\u5143\u7d20\u7d22\u5f15\u8303\u56f4')}};e.prototype.addElement=function(g){var f=this.numElements;g.parent==this&&(f=this.numElements-1);return this.addElementAt(g,f)};e.prototype.addElementAt=function(h,g){if(h==this){return h}this.checkForRangeError(g,!0);var f=h.owner;if(f==this||h.parent==this){return this.setElementIndex(h,g),h}f&&"removeElement" in f&&h.owner.removeElement(h);this._elementsContent.splice(g,0,h);this.elementsContentChanged||this._elementAdded(h,g);return h};e.prototype.removeElement=function(f){return this.removeElementAt(this.getElementIndex(f))};e.prototype.removeElementAt=function(g){this.checkForRangeError(g);var f=this._elementsContent[g];this.elementsContentChanged||this._elementRemoved(f,g);this._elementsContent.splice(g,1);return f};e.prototype.removeAllElements=function(){for(var f=this.numElements-1;0<=f;f--){this.removeElementAt(f)}};e.prototype.getElementIndex=function(f){return this._elementsContent.indexOf(f)};e.prototype.setElementIndex=function(h,g){this.checkForRangeError(g);var f=this.getElementIndex(h);-1!=f&&f!=g&&(this.elementsContentChanged||this._elementRemoved(h,f,!1),this._elementsContent.splice(f,1),this._elementsContent.splice(g,0,h),this.elementsContentChanged||this._elementAdded(h,g,!1))};e.prototype.swapElements=function(g,f){this.swapElementsAt(this.getElementIndex(g),this.getElementIndex(f))};e.prototype.swapElementsAt=function(i,g){this.checkForRangeError(i);this.checkForRangeError(g);if(i>g){var f=g;g=i;i=f}else{if(i==g){return}}var f=this._elementsContent,j=f[i],h=f[g];this.elementsContentChanged||(this._elementRemoved(j,i,!1),this._elementRemoved(h,g,!1));f[i]=h;f[g]=j;this.elementsContentChanged||(this._elementAdded(h,i,!1),this._elementAdded(j,g,!1))};e.prototype._elementAdded=function(h,g,f){"undefined"===typeof f&&(f=!0);h instanceof a.DisplayObject&&this._addToDisplayListAt(h,g,f);f&&this.hasEventListener(d.ElementExistenceEvent.ELEMENT_ADD)&&d.ElementExistenceEvent.dispatchElementExistenceEvent(this,d.ElementExistenceEvent.ELEMENT_ADD,h,g);this.invalidateSize();this.invalidateDisplayList()};e.prototype._elementRemoved=function(h,g,f){"undefined"===typeof f&&(f=!0);f&&this.hasEventListener(d.ElementExistenceEvent.ELEMENT_REMOVE)&&d.ElementExistenceEvent.dispatchElementExistenceEvent(this,d.ElementExistenceEvent.ELEMENT_REMOVE,h,g);h instanceof a.DisplayObject&&h.parent==this&&this._removeFromDisplayList(h,f);this.invalidateSize();this.invalidateDisplayList()};e.prototype.addChild=function(f){throw Error("addChild()"+e.errorStr+"addElement()\u4ee3\u66ff")};e.prototype.addChildAt=function(g,f){throw Error("addChildAt()"+e.errorStr+"addElementAt()\u4ee3\u66ff")};e.prototype.removeChild=function(f){throw Error("removeChild()"+e.errorStr+"removeElement()\u4ee3\u66ff")};e.prototype.removeChildAt=function(f){throw Error("removeChildAt()"+e.errorStr+"removeElementAt()\u4ee3\u66ff")};e.prototype.setChildIndex=function(g,f){throw Error("setChildIndex()"+e.errorStr+"setElementIndex()\u4ee3\u66ff")};e.prototype.swapChildren=function(g,f){throw Error("swapChildren()"+e.errorStr+"swapElements()\u4ee3\u66ff")};e.prototype.swapChildrenAt=function(g,f){throw Error("swapChildrenAt()"+e.errorStr+"swapElementsAt()\u4ee3\u66ff")};e.errorStr="\u5728\u6b64\u7ec4\u4ef6\u4e2d\u4e0d\u53ef\u7528\uff0c\u82e5\u6b64\u7ec4\u4ef6\u4e3a\u5bb9\u5668\u7c7b\uff0c\u8bf7\u4f7f\u7528";return e}(d.GroupBase);d.Group=b;b.prototype.__class__="egret.gui.Group"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this._createAllChildren=!1;this.proposedSelectedIndex=e.NO_PROPOSED_SELECTION;this._selectedIndex=-1;this.childOrderingChanged=this.notifyTabBar=!1;this._setLayout(new d.BasicLayout)}__extends(e,c);Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(f){},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"createAllChildren",{get:function(){return this._createAllChildren},set:function(h){if(this._createAllChildren!=h&&(this._createAllChildren=h)){h=this._getElementsContent();for(var g=h.length,f=0;fh||h>f){throw new RangeError('\u7d22\u5f15:"'+h+'"\u8d85\u51fa\u53ef\u89c6\u5143\u7d20\u7d22\u5f15\u8303\u56f4')}};e.prototype.addElement=function(g){var f=this.numElements;g.owner==this&&(f=this.numElements-1);return this.addElementAt(g,f)};e.prototype.addElementAt=function(h,g){this.checkForRangeError(g,!0);var f=h.owner;if(f==this){return this.setElementIndex(h,g),h}f&&"removeElement" in f&&f.removeElement(h);this._elementsContent.splice(g,0,h);this._hostComponent?this._elementAdded(h,g):h.ownerChanged(this);return h};e.prototype.removeElement=function(f){return this.removeElementAt(this.getElementIndex(f))};e.prototype.removeElementAt=function(g){this.checkForRangeError(g);var f=this._elementsContent[g];this._hostComponent?this._elementRemoved(f,g):f.ownerChanged(null);this._elementsContent.splice(g,1);return f};e.prototype.getElementIndex=function(f){return this._elementsContent.indexOf(f)};e.prototype.setElementIndex=function(h,g){this.checkForRangeError(g);var f=this.getElementIndex(h);-1!=f&&f!=g&&(this._hostComponent&&this._elementRemoved(h,f,!1),this._elementsContent.splice(f,1),this._elementsContent.splice(g,0,h),this._hostComponent&&this._elementAdded(h,g,!1))};e.prototype._elementAdded=function(h,g,f){"undefined"===typeof f&&(f=!0);h.ownerChanged(this);h instanceof a.DisplayObject&&this._hostComponent._addToDisplayListAt(h,g,f);f&&this.hasEventListener(d.ElementExistenceEvent.ELEMENT_ADD)&&d.ElementExistenceEvent.dispatchElementExistenceEvent(this,d.ElementExistenceEvent.ELEMENT_ADD,h,g);this._hostComponent.invalidateSize();this._hostComponent.invalidateDisplayList()};e.prototype._elementRemoved=function(h,g,f){"undefined"===typeof f&&(f=!0);f&&this.hasEventListener(d.ElementExistenceEvent.ELEMENT_REMOVE)&&d.ElementExistenceEvent.dispatchElementExistenceEvent(this,d.ElementExistenceEvent.ELEMENT_REMOVE,h,g);h instanceof a.DisplayObject&&h.parent==this._hostComponent&&this._hostComponent._removeFromDisplayList(h,f);h.ownerChanged(null);this._hostComponent.invalidateSize();this._hostComponent.invalidateDisplayList()};e.prototype.measure=function(){this.skinLayout.measure();this.measuredWidththis.maxWidth&&(this.measuredWidth=this.maxWidth);this.measuredHeightthis.maxHeight&&(this.measuredHeight=this.maxHeight)};e.prototype.updateDisplayList=function(g,f){this.skinLayout.updateDisplayList(g,f)};Object.defineProperty(e.prototype,"states",{get:function(){return this._states},set:function(f){this._setStates(f)},enumerable:!0,configurable:!0});e.prototype._setStates=function(i){i||(i=[]);if("string"==typeof i[0]){for(var g=i.length,f=0;fh||h>=this.dataProvider.length){return null}var g=this.indexToRenderer[h];if(!g){var g=this.dataProvider.getItemAt(h),f=this.createVirtualRenderer(h);this.indexToRenderer[h]=f;this.updateRenderer(f,h,g);this.createNewRendererFlag&&("validateNow" in f&&f.validateNow(),this.createNewRendererFlag=!1,d.RendererExistenceEvent.dispatchRendererExistenceEvent(this,d.RendererExistenceEvent.RENDERER_ADD,f,h,g));g=f}return g};e.prototype.freeRendererByIndex=function(g){if(this.indexToRenderer[g]){var f=this.indexToRenderer[g];delete this.indexToRenderer[g];f&&f instanceof a.DisplayObject&&this.doFreeRenderer(f)}};e.prototype.doFreeRenderer=function(g){var f=this.rendererToClassMap[g.hashCode].hashCode;this.freeRenderers[f]||(this.freeRenderers[f]=[]);this.freeRenderers[f].push(g);g.visible=!1};e.prototype.invalidateSize=function(){this.createNewRendererFlag||c.prototype.invalidateSize.call(this)};e.prototype.createVirtualRenderer=function(h){h=this.dataProvider.getItemAt(h);h=this.itemToRendererClass(h);var g=h.hashCode,f=this.freeRenderers;if(f[g]&&0=i&&(h[k]=j+1)}this.indexToRenderer.splice(i,0,null)}}else{h=this.itemToRendererClass(m),h=this.createOneRenderer(h),this.indexToRenderer.splice(i,0,h),h&&(this.updateRenderer(h,i,m),d.RendererExistenceEvent.dispatchRendererExistenceEvent(this,d.RendererExistenceEvent.RENDERER_ADD,h,i,m))}};e.prototype.itemRemoved=function(p,j){this.layout&&this.layout.elementRemoved(j);var i=this.virtualRendererIndices;if(i&&0j&&(i[n]=l-1)}-1!=o&&i.splice(o,1)}i=this.indexToRenderer[j];this.indexToRenderer.length>j&&this.indexToRenderer.splice(j,1);d.RendererExistenceEvent.dispatchRendererExistenceEvent(this,d.RendererExistenceEvent.RENDERER_REMOVE,i,j,p);i&&i instanceof a.DisplayObject&&this.recycle(i)};e.prototype.recycle=function(g){this._removeFromDisplayList(g);"ownerChanged" in g&&g.ownerChanged(null);var f=this.rendererToClassMap[g.hashCode].hashCode;this.recyclerDic[f]||(this.recyclerDic[f]=new a.Recycler);this.recyclerDic[f].push(g)};e.prototype.resetRenderersIndices=function(){if(0!=this.indexToRenderer.length){if(this.layout&&this.layout.useVirtualLayout){for(var h=this.virtualRendererIndices,g=h.length,f=0;fthis.selectedIndex?this.dataProvider.getItemAt(this.selectedIndex):void 0},set:function(f){this._setSelectedItem(f,!1)},enumerable:!0,configurable:!0});e.prototype._setSelectedItem=function(g,f){"undefined"===typeof f&&(f=!1);this.selectedItem!==g&&(f&&(this._dispatchChangeAfterSelection=this._dispatchChangeAfterSelection||f),this._pendingSelectedItem=g,this.invalidateProperties())};Object.defineProperty(e.prototype,"useVirtualLayout",{get:function(){return this._getUseVirtualLayout()},set:function(f){this._setUseVirtualLayout(f)},enumerable:!0,configurable:!0});e.prototype._getUseVirtualLayout=function(){return this.layout?this.layout.useVirtualLayout:this._useVirtualLayout};e.prototype._setUseVirtualLayout=function(f){f!=this.useVirtualLayout&&(this._useVirtualLayout=f,this.layout&&(this.layout.useVirtualLayout=f))};e.prototype.commitProperties=function(){c.prototype.commitProperties.call(this);this.dataProviderChanged&&(this._doingWholesaleChanges=this.dataProviderChanged=!1,0<=this.selectedIndex&&this.dataProvider&&this.selectedIndexf&&(this._proposedSelectedIndex=f),this.requireSelection&&this._proposedSelectedIndex==e.NO_SELECTION&&this.dataProvider&&0h.x+this.moveArea.width&&(g=35-this.moveArea.width);h.x>this.stage.stageWidth-20&&(g=this.stage.stageWidth-20);20>h.y+this.moveArea.height&&(f=20-this.moveArea.height);h.y>this.stage.stageHeight-20&&(f=this.stage.stageHeight-20);this.x+=g-h.x;this.y+=f-h.y}};return e}(d.Panel);d.TitleWindow=b;b.prototype.__class__="egret.gui.TitleWindow"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this._contentText=this._secondButtonLabel=this._firstButtonLabel="";this.hostComponentKey="egret.gui.Alert"}__extends(e,c);e.show=function(r,i,q,p,n,o,m){"undefined"===typeof r&&(r="");"undefined"===typeof i&&(i="");"undefined"===typeof q&&(q=null);"undefined"===typeof p&&(p="\u786e\u5b9a");"undefined"===typeof n&&(n="");"undefined"===typeof o&&(o=!0);"undefined"===typeof m&&(m=!0);var j=new e;j.contentText=r;j.title=i;j._firstButtonLabel=p;j._secondButtonLabel=n;j.closeHandler=q;d.PopUpManager.addPopUp(j,o,m);return j};Object.defineProperty(e.prototype,"firstButtonLabel",{get:function(){return this._firstButtonLabel},set:function(f){this._firstButtonLabel!=f&&(this._firstButtonLabel=f,this.firstButton&&(this.firstButton.label=f))},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"secondButtonLabel",{get:function(){return this._secondButtonLabel},set:function(f){this._secondButtonLabel!=f&&(this._secondButtonLabel=f,!this.secondButton||null!=f&&""!=f||(this.secondButton.includeInLayout=this.secondButton.visible=""!=this._secondButtonLabel&&null!=this._secondButtonLabel))},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"contentText",{get:function(){return this._contentText},set:function(f){this._contentText!=f&&(this._contentText=f,this.contentDisplay&&(this.contentDisplay.text=f))},enumerable:!0,configurable:!0});e.prototype.onClose=function(g){d.PopUpManager.removePopUp(this);if(null!=this.closeHandler){var f=new d.CloseEvent(d.CloseEvent.CLOSE);switch(g.currentTarget){case this.firstButton:f.detail=e.FIRST_BUTTON;break;case this.secondButton:f.detail=e.SECOND_BUTTON}this.closeHandler(f)}};e.prototype.closeButton_clickHandler=function(f){c.prototype.closeButton_clickHandler.call(this,f);d.PopUpManager.removePopUp(this);f=new d.CloseEvent(d.CloseEvent.CLOSE,!1,!1,e.CLOSE_BUTTON);null!=this.closeHandler&&this.closeHandler(f)};e.prototype.partAdded=function(g,f){c.prototype.partAdded.call(this,g,f);f==this.contentDisplay?this.contentDisplay.text=this._contentText:f==this.firstButton?(this.firstButton.label=this._firstButtonLabel,this.firstButton.addEventListener(a.TouchEvent.TOUCH_TAP,this.onClose,this)):f==this.secondButton&&(this.secondButton.label=this._secondButtonLabel,this.secondButton.includeInLayout=this.secondButton.visible=""!=this._secondButtonLabel&&null!=this._secondButtonLabel,this.secondButton.addEventListener(a.TouchEvent.TOUCH_TAP,this.onClose,this))};e.prototype.partRemoved=function(g,f){c.prototype.partRemoved.call(this,g,f);f==this.firstButton?this.firstButton.removeEventListener(a.TouchEvent.TOUCH_TAP,this.onClose,this):f==this.secondButton&&this.secondButton.removeEventListener(a.TouchEvent.TOUCH_TAP,this.onClose,this)};e.FIRST_BUTTON="firstButton";e.SECOND_BUTTON="secondButton";e.CLOSE_BUTTON="closeButton";return e}(d.TitleWindow);d.Alert=b;b.prototype.__class__="egret.gui.Alert"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this._slideDuration=500;this._direction=d.ProgressBarDirection.LEFT_TO_RIGHT;this.animationValue=0;this.trackResizedOrMoved=!1;this.hostComponentKey="egret.gui.ProgressBar"}__extends(e,c);Object.defineProperty(e.prototype,"labelFunction",{get:function(){return this._labelFunction},set:function(f){this._labelFunction!=f&&(this._labelFunction=f,this.invalidateDisplayList())},enumerable:!0,configurable:!0});e.prototype.valueToLabel=function(g,f){return null!=this.labelFunction?this._labelFunction(g,f):g+" / "+f};Object.defineProperty(e.prototype,"slideDuration",{get:function(){return this._slideDuration},set:function(f){this._slideDuration!=f&&(this._slideDuration=f,this.animator&&this.animator.isPlaying&&(this.animator.stop(),this._setValue(this.slideToValue)))},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"direction",{get:function(){return this._direction},set:function(f){this._direction!=f&&(this._direction=f,this.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"value",{get:function(){return this._getValue()},set:function(f){this._getValue()!=f&&(this._setValue(f),0o||Infinity===o){o=0}var p=Math.round(r/m*q);if(isNaN(p)||0>p||Infinity===p){p=0}var n=this.track.localToGlobal(0,0),j=this.globalToLocal(n.x,n.y,a.Point.identity),n=j.x,j=j.y;switch(this._direction){case d.ProgressBarDirection.LEFT_TO_RIGHT:this.thumb.width=o;this.thumb.height=q;this.thumb.x=n;break;case d.ProgressBarDirection.RIGHT_TO_LEFT:this.thumb.width=o;this.thumb.height=q;this.thumb.x=n+i-o;break;case d.ProgressBarDirection.TOP_TO_BOTTOM:this.thumb.width=i;this.thumb.height=p;this.thumb.y=j;break;case d.ProgressBarDirection.BOTTOM_TO_TOP:this.thumb.width=i,this.thumb.height=p,this.thumb.y=j+q-p}}this.labelDisplay&&(this.labelDisplay.text=this.valueToLabel(r,m))};return e}(d.Range);d.ProgressBar=b;b.prototype.__class__="egret.gui.ProgressBar"})(a.gui||(a.gui={}))})(egret||(egret={}));(function(a){(function(d){var b=function(){function c(){}c.LEFT_TO_RIGHT="leftToRight";c.RIGHT_TO_LEFT="rightToLeft";c.TOP_TO_BOTTOM="topToBottom";c.BOTTOM_TO_TOP="bottomToTop";return c}();d.ProgressBarDirection=b;b.prototype.__class__="egret.gui.ProgressBarDirection"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this.hostComponentKey="egret.gui.HSlider"}__extends(e,c);e.prototype.pointToValue=function(h,g){if(!this.thumb||!this.track){return 0}var f=this.maximum-this.minimum,i=this.track.layoutBoundsWidth-this.thumb.layoutBoundsWidth;return this.minimum+(0!=i?h/i*f:0)};e.prototype.updateSkinDisplayList=function(){if(this.thumb&&this.track){var h=this.track.layoutBoundsWidth-this.thumb.layoutBoundsWidth,g=this.maximum-this.minimum,h=0d.ListBase.NO_SELECTION&&(this._proposedSelectedIndices?-1==this._proposedSelectedIndices.indexOf(this.selectedIndex)&&this._proposedSelectedIndices.push(this.selectedIndex):this._proposedSelectedIndices=[this.selectedIndex]);this._proposedSelectedIndices&&(-1!=this._proposedSelectedIndices.indexOf(f)&&this.itemSelected(f,!0),this.commitMultipleSelection());h&&g&&(this._dispatchChangeAfterSelection&&(d.IndexChangeEvent.dispatchIndexChangeEvent(this,d.IndexChangeEvent.CHANGE,f,this._selectedIndex),this._dispatchChangeAfterSelection=!1),d.UIEvent.dispatchUIEvent(this,d.UIEvent.VALUE_COMMIT));return g};e.prototype.isValidIndex=function(h,g,f){return this.dataProvider&&0<=h&&h=h;g--){i.splice(0,0,g)}}}else{if(f){if(0g.width?!0:!1;break;case"on":f=!0;break;case"off":f=!1}this._horizontalCanScroll=f;var h;switch(this._verticalScrollPolicy){case"auto":h=g.contentHeight>g.height?!0:!1;break;case"on":h=!0;break;case"off":h=!1}this._verticalCanScroll=h;return f||h};e.prototype.onTouchBegin=function(h){if(!h.isDefaultPrevented()&&this.checkScrollPolicy()){this.verticalAnimator&&this.verticalAnimator.isPlaying&&this.verticalAnimator.stop();this.horizontalAnimator&&this.horizontalAnimator.isPlaying&&this.horizontalAnimator.stop();var g=this._viewport,i=g.horizontalScrollPosition,g=g.verticalScrollPosition;this._offsetPointX=i+h.stageX;this._offsetPointY=g+h.stageY;this._velocityY=this._velocityX=0;this._previousVelocityX.length=0;this._previousVelocityY.length=0;this._previousTouchTime=a.getTimer();this._previousTouchX=this._startTouchX=this._currentTouchX=h.stageX;this._previousTouchY=this._startTouchY=this._currentTouchY=h.stageY;this._startHorizontalScrollPosition=i;this._startVerticalScrollPosition=g;d.UIGlobals.stage.addEventListener(a.TouchEvent.TOUCH_MOVE,this.onTouchMove,this);d.UIGlobals.stage.addEventListener(a.TouchEvent.TOUCH_END,this.onTouchEnd,this);d.UIGlobals.stage.addEventListener(a.Event.LEAVE_STAGE,this.onTouchEnd,this);this.addEventListener(a.Event.ENTER_FRAME,this.enterFrameHandler,this);h.preventDefault()}};e.prototype.onTouchMove=function(g){if(this._currentTouchX!=g.stageX||this._currentTouchY!=g.stageY){this._currentTouchX=g.stageX;this._currentTouchY=g.stageY;this.delayTouchBeginEvent&&(this.delayTouchBeginEvent=null,this.touchBeginTimer.stop());var f=this._viewport;if(this._horizontalCanScroll){var h=this._offsetPointX-g.stageX;0>h&&(h*=0.5);h>f.contentWidth-f.width&&(h=0.5*(h+f.contentWidth-f.width));f.horizontalScrollPosition=h}this._verticalCanScroll&&(g=this._offsetPointY-g.stageY,0>g&&(g*=0.5),g>f.contentHeight-f.height&&(g=0.5*(g+f.contentHeight-f.height)),f.verticalScrollPosition=g)}};e.prototype.onTouchEnd=function(f){d.UIGlobals.stage.removeEventListener(a.TouchEvent.TOUCH_MOVE,this.onTouchMove,this);d.UIGlobals.stage.removeEventListener(a.TouchEvent.TOUCH_END,this.onTouchEnd,this);d.UIGlobals.stage.removeEventListener(a.Event.LEAVE_STAGE,this.onTouchEnd,this);this.removeEventListener(a.Event.ENTER_FRAME,this.enterFrameHandler,this);this._horizontalCanScroll&&this.checkHorizontalScrollPosition();this._verticalCanScroll&&this.checkVerticalScrollPosition()};e.easeOut=function(f){f-=1;return f*f*f+1};e.prototype.enterFrameHandler=function(g){g=a.getTimer();var f=g-this._previousTouchTime;0=Math.abs(o)?this.finishScrollingHorizontally():(h=this.getAnimationDatas(o,h,n),this.throwHorizontally(h[0],h[1]))};e.prototype.checkVerticalScrollPosition=function(){for(var n=this._viewport,h=n.verticalScrollPosition,n=n.contentHeight-n.height,o=2.33*this._velocityY,m=this._previousVelocityY.length,l=2.33,j=0;j=Math.abs(o)?this.finishScrollingVertically():(h=this.getAnimationDatas(o,h,n),this.throwVertically(h[0],h[1]))};e.prototype.getAnimationDatas=function(l,h,m){var k=Math.abs(l),j=0,i=h+(l-0.02)/Math.log(0.998);if(0>i||i>m){for(i=h;0.02i||i>m?0.998*l*0.95:0.998*l,j++}}else{j=Math.log(0.02/k)/Math.log(0.998)}e.animationData||(e.animationData=[0,0]);l=e.animationData;l[0]=i;l[1]=j;return l};e.prototype.finishScrollingHorizontally=function(g){var f=this._viewport;g=f.horizontalScrollPosition;var f=f.contentWidth-f.width,h=g;0>g&&(h=0);g>f&&(h=f);this.throwHorizontally(h,300)};e.prototype.throwHorizontally=function(h,f){"undefined"===typeof f&&(f=500);var g=this._viewport.horizontalScrollPosition;g!=h&&(this.horizontalAnimator||(this.horizontalAnimator=new d.Animation(this.horizontalUpdateHandler,this),this.horizontalAnimator.endFunction=this.finishScrollingHorizontally,this.horizontalAnimator.easerFunction=e.easeOut),this.horizontalAnimator.isPlaying&&this.horizontalAnimator.stop(),this.horizontalAnimator.duration=f,this.horizontalAnimator.motionPaths=[{prop:"hsp",from:g,to:h}],this.horizontalAnimator.play())};e.prototype.horizontalUpdateHandler=function(f){this._viewport.horizontalScrollPosition=f.currentValue.hsp};e.prototype.finishScrollingVertically=function(g){var f=this._viewport;g=f.verticalScrollPosition;var f=f.contentHeight-f.height,f=Math.max(0,f),h=g;0>g&&(h=0);g>f&&(h=f);this.throwVertically(h,300)};e.prototype.throwVertically=function(h,f){"undefined"===typeof f&&(f=500);var g=this._viewport.verticalScrollPosition;g!=h&&(this.verticalAnimator||(this.verticalAnimator=new d.Animation(this.verticalUpdateHandler,this),this.verticalAnimator.endFunction=this.finishScrollingVertically,this.verticalAnimator.easerFunction=e.easeOut),this.verticalAnimator.isPlaying&&this.verticalAnimator.stop(),this.verticalAnimator.duration=f,this.verticalAnimator.motionPaths=[{prop:"vsp",from:g,to:h}],this.verticalAnimator.play())};e.prototype.verticalUpdateHandler=function(f){this._viewport.verticalScrollPosition=f.currentValue.vsp};Object.defineProperty(e.prototype,"numElements",{get:function(){return this.viewport?1:0},enumerable:!0,configurable:!0});e.prototype.throwRangeError=function(f){throw new RangeError('\u7d22\u5f15:"'+f+'"\u8d85\u51fa\u53ef\u89c6\u5143\u7d20\u7d22\u5f15\u8303\u56f4')};e.prototype.getElementAt=function(f){if(this.viewport&&0==f){return this.viewport}this.throwRangeError(f);return null};e.prototype.getElementIndex=function(f){return null!=f&&f==this.viewport?0:-1};e.prototype.containsElement=function(f){return null!=f&&f==this.viewport?!0:!1};e.prototype.throwNotSupportedError=function(){throw Error("\u6b64\u65b9\u6cd5\u5728Scroller\u7ec4\u4ef6\u5185\u4e0d\u53ef\u7528!")};e.prototype.addElement=function(f){this.throwNotSupportedError();return null};e.prototype.addElementAt=function(g,f){this.throwNotSupportedError();return null};e.prototype.removeElement=function(f){this.throwNotSupportedError();return null};e.prototype.removeElementAt=function(f){this.throwNotSupportedError();return null};e.prototype.removeAllElements=function(){this.throwNotSupportedError()};e.prototype.setElementIndex=function(g,f){this.throwNotSupportedError()};e.prototype.swapElements=function(g,f){this.throwNotSupportedError()};e.prototype.swapElementsAt=function(g,f){this.throwNotSupportedError()};e.prototype.addChild=function(f){this.throwNotSupportedError();return null};e.prototype.addChildAt=function(g,f){this.throwNotSupportedError();return null};e.prototype.removeChild=function(f){this.throwNotSupportedError();return null};e.prototype.removeChildAt=function(f){this.throwNotSupportedError();return null};e.prototype.setChildIndex=function(g,f){this.throwNotSupportedError()};e.prototype.swapChildren=function(g,f){this.throwNotSupportedError()};e.prototype.swapChildrenAt=function(g,f){this.throwNotSupportedError()};e.VELOCITY_WEIGHTS=[1,1.33,1.66,2];return e}(d.UIComponent);d.Scroller=b;b.prototype.__class__="egret.gui.Scroller"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(f,h,g){"undefined"===typeof h&&(h=!1);"undefined"===typeof g&&(g=!1);c.call(this,f,h,g)}__extends(e,c);e.dispatchUIEvent=function(f,g){a.Event._dispatchByTarget(e,f,g)};e.INITIALIZE="initialize";e.CREATION_COMPLETE="creationComplete";e.UPDATE_COMPLETE="updateComplete";e.BUTTON_DOWN="buttonDown";e.CHANGE_END="changeEnd";e.CHANGE_START="changeStart";e.CHANGING="changing";e.VALUE_COMMIT="valueCommit";e.SKIN_CHANGED="skinChanged";e.CONTENT_CHANGED="contentChanged";e.OPEN="open";e.CLOSE="close";e.PLAY_COMPLETE="playComplete";return e}(a.Event);d.UIEvent=b;b.prototype.__class__="egret.gui.UIEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(j,r,q,p,n,o,m,i){"undefined"===typeof r&&(r=!1);"undefined"===typeof q&&(q=!1);"undefined"===typeof p&&(p=null);"undefined"===typeof n&&(n=null);"undefined"===typeof o&&(o=null);"undefined"===typeof m&&(m=null);"undefined"===typeof i&&(i=null);c.call(this,j,r,q);this.kind=p;this.property=n;this.oldValue=o;this.newValue=m;this.source=i}__extends(e,c);e.dispatchPropertyChangeEvent=function(i,q,n,o,l,m){"undefined"===typeof q&&(q=null);"undefined"===typeof n&&(n=null);"undefined"===typeof o&&(o=null);"undefined"===typeof l&&(l=null);"undefined"===typeof m&&(m=null);var j=a.Event._getPropertyData(e);j.kind=q;j.property=n;j.oldValue=o;j.newValue=l;j.source=m;a.Event._dispatchByTarget(e,i,e.PROPERTY_CHANGE,j)};e.PROPERTY_CHANGE="propertyChange";return e}(a.Event);d.PropertyChangeEvent=b;b.prototype.__class__="egret.gui.PropertyChangeEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));(function(a){(function(d){var b=function(){function c(){}c.UPDATE="update";c.DELETE="delete";return c}();d.PropertyChangeEventKind=b;b.prototype.__class__="egret.gui.PropertyChangeEventKind"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(g,l,k,j,i){"undefined"===typeof l&&(l=NaN);"undefined"===typeof k&&(k=NaN);"undefined"===typeof j&&(j=!1);"undefined"===typeof i&&(i=!1);c.call(this,g,j,i);this.oldX=l;this.oldY=k}__extends(e,c);e.dispatchMoveEvent=function(g,j,h){"undefined"===typeof j&&(j=NaN);"undefined"===typeof h&&(h=NaN);var i=a.Event._getPropertyData(e);i.oldX=j;i.oldY=h;a.Event._dispatchByTarget(e,g,e.MOVE,i)};e.MOVE="move";return e}(a.Event);d.MoveEvent=b;b.prototype.__class__="egret.gui.MoveEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(g,l,k,j,i){"undefined"===typeof l&&(l=NaN);"undefined"===typeof k&&(k=NaN);"undefined"===typeof j&&(j=!1);"undefined"===typeof i&&(i=!1);c.call(this,g,j,i);this.oldWidth=l;this.oldHeight=k}__extends(e,c);e.dispatchResizeEvent=function(g,j,h){"undefined"===typeof j&&(j=NaN);"undefined"===typeof h&&(h=NaN);var i=a.Event._getPropertyData(e);i.oldWidth=j;i.oldHeight=h;a.Event._dispatchByTarget(e,g,e.RESIZE,i)};e.RESIZE="resize";return e}(a.Event);d.ResizeEvent=b;b.prototype.__class__="egret.gui.ResizeEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(g,l,k,j,i){"undefined"===typeof l&&(l=!1);"undefined"===typeof k&&(k=!1);"undefined"===typeof j&&(j=null);"undefined"===typeof i&&(i=null);c.call(this,g,l,k);this.partName=j;this.instance=i}__extends(e,c);e.dispatchSkinPartEvent=function(g,l,j,k){"undefined"===typeof j&&(j=null);"undefined"===typeof k&&(k=null);var i=a.Event._getPropertyData(e);i.partName=j;i.instance=k;a.Event._dispatchByTarget(e,g,l,i)};e.PART_ADDED="partAdded";e.PART_REMOVED="partRemoved";return e}(a.Event);d.SkinPartEvent=b;b.prototype.__class__="egret.gui.SkinPartEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(g,j,i,h){"undefined"===typeof j&&(j=!1);"undefined"===typeof i&&(i=!1);"undefined"===typeof h&&(h=-1);c.call(this,g,j,i);this.detail=h}__extends(e,c);e.dispatchCloseEvent=function(g,j,h){"undefined"===typeof h&&(h=-1);var i=a.Event._getPropertyData(e);i.detail=h;a.Event._dispatchByTarget(e,g,j,i)};e.CLOSE="close";return e}(a.Event);d.CloseEvent=b;b.prototype.__class__="egret.gui.CloseEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(j,r,q,p,n,o,m,i){"undefined"===typeof r&&(r=!1);"undefined"===typeof q&&(q=!1);"undefined"===typeof p&&(p=null);"undefined"===typeof n&&(n=-1);"undefined"===typeof o&&(o=-1);"undefined"===typeof m&&(m=null);"undefined"===typeof i&&(i=null);c.call(this,j,r,q);this.kind=p;this.location=n;this.oldLocation=o;this.items=m?m:[];this.oldItems=i?i:[]}__extends(e,c);e.dispatchCollectionEvent=function(i,s,q,r,n,o,m){"undefined"===typeof q&&(q=null);"undefined"===typeof r&&(r=-1);"undefined"===typeof n&&(n=-1);"undefined"===typeof o&&(o=null);"undefined"===typeof m&&(m=null);var j=a.Event._getPropertyData(e);j.kind=q;j.location=r;j.oldLocation=n;j.items=o;j.oldItems=m;a.Event._dispatchByTarget(e,i,s,j)};e.COLLECTION_CHANGE="collectionChange";return e}(a.Event);d.CollectionEvent=b;b.prototype.__class__="egret.gui.CollectionEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));(function(a){(function(d){var b=function(){function c(){}c.ADD="add";c.MOVE="move";c.REFRESH="refresh";c.REMOVE="remove";c.REPLACE="replace";c.RESET="reset";c.UPDATE="update";c.OPEN="open";c.CLOSE="close";return c}();d.CollectionEventKind=b;b.prototype.__class__="egret.gui.CollectionEventKind"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(g,l,k,j,i){"undefined"===typeof l&&(l=!1);"undefined"===typeof k&&(k=!1);"undefined"===typeof j&&(j=null);"undefined"===typeof i&&(i=-1);c.call(this,g,l,k);this.element=j;this.index=i}__extends(e,c);e.dispatchElementExistenceEvent=function(g,l,j,k){"undefined"===typeof j&&(j=null);"undefined"===typeof k&&(k=-1);var i=a.Event._getPropertyData(e);i.element=j;i.index=k;a.Event._dispatchByTarget(e,g,l,i)};e.ELEMENT_ADD="elementAdd";e.ELEMENT_REMOVE="elementRemove";return e}(a.Event);d.ElementExistenceEvent=b;b.prototype.__class__="egret.gui.ElementExistenceEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(g,l,k,j,i){"undefined"===typeof l&&(l=!1);"undefined"===typeof k&&(k=!1);"undefined"===typeof j&&(j=-1);"undefined"===typeof i&&(i=-1);c.call(this,g,l,k);this.oldIndex=j;this.newIndex=i}__extends(e,c);e.dispatchIndexChangeEvent=function(i,n,l,m,j){"undefined"===typeof l&&(l=-1);"undefined"===typeof m&&(m=-1);"undefined"===typeof j&&(j=!1);var k=a.Event._getPropertyData(e);k.oldIndex=l;k.newIndex=m;return a.Event._dispatchByTarget(e,i,n,k,!1,j)};e.CHANGE="change";e.CHANGING="changing";return e}(a.Event);d.IndexChangeEvent=b;b.prototype.__class__="egret.gui.IndexChangeEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(A,y,w,v,t,u,r,p,o,i,j,B,z){"undefined"===typeof y&&(y=!0);"undefined"===typeof w&&(w=!0);"undefined"===typeof v&&(v=0);"undefined"===typeof t&&(t=0);"undefined"===typeof u&&(u=0);"undefined"===typeof r&&(r=!1);"undefined"===typeof p&&(p=!1);"undefined"===typeof o&&(o=!1);"undefined"===typeof i&&(i=!1);"undefined"===typeof j&&(j=-1);"undefined"===typeof B&&(B=null);"undefined"===typeof z&&(z=null);c.call(this,A,y,w,v,t,u,r,p,o,i);this.itemIndex=j;this.item=B;this.itemRenderer=z}__extends(e,c);e.dispatchListEvent=function(i,q,n,o,l,m){"undefined"===typeof n&&(n=null);"undefined"===typeof o&&(o=-1);"undefined"===typeof l&&(l=null);"undefined"===typeof m&&(m=null);var j=a.Event._getPropertyData(e);j.touchPointID=n.touchPointID;j._stageX=n.stageX;j._stageY=n.stageY;j.ctrlKey=n.ctrlKey;j.altKey=n.altKey;j.shiftKey=n.shiftKey;j.touchDown=n.touchDown;j.itemIndex=o;j.item=l;j.itemRenderer=m;a.Event._dispatchByTarget(e,i,q,j)};e.ITEM_ROLL_OUT="itemRollOut";e.ITEM_ROLL_OVER="itemRollOver";e.ITEM_CLICK="itemClick";return e}(a.TouchEvent);d.ListEvent=b;b.prototype.__class__="egret.gui.ListEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(g,l,k,j,i){"undefined"===typeof l&&(l=!1);"undefined"===typeof k&&(k=!1);"undefined"===typeof j&&(j=null);"undefined"===typeof i&&(i=!1);c.call(this,g,l,k);this.popUp=j;this.modal=i}__extends(e,c);e.dispatchPopUpEvent=function(g,l,j,k){"undefined"===typeof j&&(j=null);"undefined"===typeof k&&(k=!1);var i=a.Event._getPropertyData(e);i.popUp=j;i.modal=k;a.Event._dispatchByTarget(e,g,l,i)};e.ADD_POPUP="addPopUp";e.REMOVE_POPUP="removePopUp";e.BRING_TO_FRONT="bringToFront";return e}(a.Event);d.PopUpEvent=b;b.prototype.__class__="egret.gui.PopUpEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(i,n,m,l,j,k){"undefined"===typeof n&&(n=!1);"undefined"===typeof m&&(m=!1);"undefined"===typeof l&&(l=null);"undefined"===typeof j&&(j=-1);"undefined"===typeof k&&(k=null);c.call(this,i,n,m);this.renderer=l;this.index=j;this.data=k}__extends(e,c);e.dispatchRendererExistenceEvent=function(i,n,l,m,j){"undefined"===typeof l&&(l=null);"undefined"===typeof m&&(m=-1);"undefined"===typeof j&&(j=null);var k=a.Event._getPropertyData(e);k.renderer=l;k.index=m;k.data=j;a.Event._dispatchByTarget(e,i,n,k)};e.RENDERER_ADD="rendererAdd";e.RENDERER_REMOVE="rendererRemove";return e}(a.Event);d.RendererExistenceEvent=b;b.prototype.__class__="egret.gui.RendererExistenceEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(g,l,k,j,i){"undefined"===typeof l&&(l=!1);"undefined"===typeof k&&(k=!1);"undefined"===typeof j&&(j=null);"undefined"===typeof i&&(i=null);c.call(this,g,l,k);this.oldState=j;this.newState=i}__extends(e,c);e.dispatchStateChangeEvent=function(g,l,j,k){"undefined"===typeof j&&(j=null);"undefined"===typeof k&&(k=null);var i=a.Event._getPropertyData(e);i.oldState=j;i.newState=k;a.Event._dispatchByTarget(e,g,l,i)};e.CURRENT_STATE_CHANGE="currentStateChange";e.CURRENT_STATE_CHANGING="currentStateChanging";return e}(a.Event);d.StateChangeEvent=b;b.prototype.__class__="egret.gui.StateChangeEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(f,h,g){"undefined"===typeof h&&(h=!1);"undefined"===typeof g&&(g=!1);c.call(this,f,h,g)}__extends(e,c);e.dispatchTrackBaseEvent=function(f,g){a.Event._dispatchByTarget(e,f,g)};e.THUMB_DRAG="thumbDrag";e.THUMB_PRESS="thumbPress";e.THUMB_RELEASE="thumbRelease";return e}(a.Event);d.TrackBaseEvent=b;b.prototype.__class__="egret.gui.TrackBaseEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(i,n,m,l,j,k){"undefined"===typeof n&&(n=!1);"undefined"===typeof m&&(m=!0);"undefined"===typeof l&&(l=-1);"undefined"===typeof j&&(j=null);"undefined"===typeof k&&(k=null);c.call(this,i,n,m);this.item=j;this.itemRenderer=k;this.itemIndex=l}__extends(e,c);e.dispatchTreeEvent=function(i,q,n,o,l,m){"undefined"===typeof n&&(n=-1);"undefined"===typeof o&&(o=null);"undefined"===typeof l&&(l=null);"undefined"===typeof m&&(m=!1);var j=a.Event._getPropertyData(e);j.itemIndex=n;j.item=o;j.itemRenderer=l;j.opening=m;a.Event._dispatchByTarget(e,i,q,j)};e.ITEM_CLOSE="itemClose";e.ITEM_OPEN="itemOpen";e.ITEM_OPENING="itemOpening";return e}(a.Event);d.TreeEvent=b;b.prototype.__class__="egret.gui.TreeEvent"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this._useVirtualLayout=!1}__extends(e,c);Object.defineProperty(e.prototype,"target",{get:function(){return this._target},set:function(f){this._target!=f&&(this._target=f,this.clearVirtualLayoutCache())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"useVirtualLayout",{get:function(){return this._useVirtualLayout},set:function(f){this._useVirtualLayout!=f&&(this._useVirtualLayout=f,this.dispatchEventWith("useVirtualLayoutChanged"),this._useVirtualLayout&&!f&&this.clearVirtualLayoutCache(),this.target&&this.target.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"typicalLayoutRect",{get:function(){return this._typicalLayoutRect},set:function(f){this._typicalLayoutRect!=f&&(this._typicalLayoutRect=f,this.target&&this.target.invalidateSize())},enumerable:!0,configurable:!0});e.prototype.scrollPositionChanged=function(){};e.prototype.clearVirtualLayoutCache=function(){};e.prototype.elementAdded=function(f){};e.prototype.elementRemoved=function(f){};e.prototype.measure=function(){};e.prototype.updateDisplayList=function(g,f){};return e}(a.EventDispatcher);d.LayoutBase=b;b.prototype.__class__="egret.gui.LayoutBase"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this._mouseWheelSpeed=20}__extends(e,c);Object.defineProperty(e.prototype,"useVirtualLayout",{set:function(f){},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"mouseWheelSpeed",{get:function(){return this._mouseWheelSpeed},set:function(f){0==f&&(f=1);this._mouseWheelSpeed=f},enumerable:!0,configurable:!0});e.prototype.getElementBoundsLeftOfScrollRect=function(g){var f=new a.Rectangle;f.x=g.x-this._mouseWheelSpeed;f.right=g.x;return f};e.prototype.getElementBoundsRightOfScrollRect=function(g){var f=new a.Rectangle;f.x=g.right;f.right=g.right+this._mouseWheelSpeed;return f};e.prototype.getElementBoundsAboveScrollRect=function(g){var f=new a.Rectangle;f.y=g.y-this._mouseWheelSpeed;f.bottom=g.y;return f};e.prototype.getElementBoundsBelowScrollRect=function(g){var f=new a.Rectangle;f.y=g.bottom;f.bottom=g.bottom+this._mouseWheelSpeed;return f};e.prototype.measure=function(){c.prototype.measure.call(this);if(null!=this.target){for(var x=0,w=0,v=this.target.numElements,u=0;u=m&&jk-j){return this.endIndex=this.startIndex=-1,!1}j=this.target.verticalScrollPosition+this.target.height;if(jL){J=R/t;for(T=0;TL&&M.preferredHeight>J&&(i=R/r),isNaN(i)||(t=Math.round(i+S),S+=i-t)):t=o[M.hashCode],P?(i=Y,M.setLayoutBoundsSize(O,t)):(i=NaN,isNaN(M.percentWidth)||(i=Math.min(100,M.percentWidth),i=Math.round(V*i*0.01)),M.setLayoutBoundsSize(i,t),i=(V-M.layoutBoundsWidth)*p,i=0=o||(u-=o-k);o=!1;break}else{if(w>i.max){o=i.max;i.size=o;t[h]=t[--p];t[p]=i;r-=i.percent;k>=o||(u-=o-k);o=!1;break}else{i.size=w}}}}while(!o)};return c}(g.LayoutBase);g.VerticalLayout=e;e.prototype.__class__="egret.gui.VerticalLayout";var d=function(){return function(){this.size=0}}();d.prototype.__class__="ChildInfo"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(g){var e=function(b){function c(){b.call(this);this._horizontalAlign=a.HorizontalAlign.LEFT;this._verticalAlign=a.VerticalAlign.TOP;this._gap=6;this._padding=0;this._paddingBottom=this._paddingTop=this._paddingRight=this._paddingLeft=NaN;this.elementSizeTable=[];this.endIndex=this.startIndex=-1;this.indexInViewCalculated=!1;this.maxElementHeight=0}__extends(c,b);Object.defineProperty(c.prototype,"horizontalAlign",{get:function(){return this._horizontalAlign},set:function(f){this._horizontalAlign!=f&&(this._horizontalAlign=f,this.target&&this.target.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"verticalAlign",{get:function(){return this._verticalAlign},set:function(f){this._verticalAlign!=f&&(this._verticalAlign=f,this.target&&this.target.invalidateDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"gap",{get:function(){return this._gap},set:function(f){this._gap!=f&&(this._gap=f,this.invalidateTargetSizeAndDisplayList(),this.hasEventListener("gapChanged")&&this.dispatchEventWith("gapChanged"))},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"padding",{get:function(){return this._padding},set:function(f){this._padding!=f&&(this._padding=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"paddingLeft",{get:function(){return this._paddingLeft},set:function(f){this._paddingLeft!=f&&(this._paddingLeft=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"paddingRight",{get:function(){return this._paddingRight},set:function(f){this._paddingRight!=f&&(this._paddingRight=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"paddingTop",{get:function(){return this._paddingTop},set:function(f){this._paddingTop!=f&&(this._paddingTop=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(c.prototype,"paddingBottom",{get:function(){return this._paddingBottom},set:function(f){this._paddingBottom!=f&&(this._paddingBottom=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});c.prototype.invalidateTargetSizeAndDisplayList=function(){this.target&&(this.target.invalidateSize(),this.target.invalidateDisplayList())};c.prototype.measure=function(){b.prototype.measure.call(this);this.target&&(this.useVirtualLayout?this.measureVirtual():this.measureReal())};c.prototype.measureVirtual=function(){for(var s=this.typicalLayoutRect?this.typicalLayoutRect.height:22,r=this.typicalLayoutRect?this.typicalLayoutRect.width:71,o=this.getElementTotalSize(),s=Math.max(this.maxElementHeight,s),p=this.target.getElementIndicesInView(),n=p.length,k=0;k=m&&jk-j){return this.endIndex=this.startIndex=-1,!1}j=this.target.horizontalScrollPosition+this.target.width;if(jL){J=R/t;for(T=0;TL&&M.preferredWidth>J&&(K=R/r),isNaN(K)||(t=Math.round(K+V),V+=K-t)):t=o[M.hashCode],P?(K=X,M.setLayoutBoundsSize(t,O)):(K=NaN,isNaN(M.percentHeight)||(K=Math.min(100,M.percentHeight),K=Math.round(S*K*0.01)),M.setLayoutBoundsSize(t,K),K=(S-M.layoutBoundsHeight)*p,K=0=o||(u-=o-k);o=!1;break}else{if(w>i.max){o=i.max;i.size=o;t[h]=t[--p];t[p]=i;r-=i.percent;k>=o||(u-=o-k);o=!1;break}else{i.size=w}}}}while(!o)};return c}(g.LayoutBase);g.HorizontalLayout=e;e.prototype.__class__="egret.gui.HorizontalLayout";var d=function(){return function(){this.size=0}}();d.prototype.__class__="ChildInfo"})(a.gui||(a.gui={}))})(egret||(egret={}));__extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d};(function(a){(function(d){var b=function(c){function e(){c.call(this);this.explicitHorizontalGap=NaN;this._horizontalGap=6;this.explicitVerticalGap=NaN;this._verticalGap=6;this._columnCount=-1;this._requestedColumnCount=0;this._rowCount=-1;this._requestedRowCount=0;this._rowHeight=this.explicitRowHeight=this._columnWidth=this.explicitColumnWidth=NaN;this._padding=0;this._paddingBottom=this._paddingTop=this._paddingRight=this._paddingLeft=NaN;this._horizontalAlign=a.HorizontalAlign.JUSTIFY;this._verticalAlign=a.VerticalAlign.JUSTIFY;this._columnAlign=d.ColumnAlign.LEFT;this._rowAlign=d.RowAlign.TOP;this._orientation=d.TileOrientation.ROWS;this.maxElementHeight=this.maxElementWidth=0;this.endIndex=this.startIndex=-1;this.indexInViewCalculated=!1}__extends(e,c);Object.defineProperty(e.prototype,"horizontalGap",{get:function(){return this._horizontalGap},set:function(f){f!=this._horizontalGap&&(this._horizontalGap=this.explicitHorizontalGap=f,this.invalidateTargetSizeAndDisplayList(),this.hasEventListener("gapChanged")&&this.dispatchEventWith("gapChanged"))},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"verticalGap",{get:function(){return this._verticalGap},set:function(f){f!=this._verticalGap&&(this._verticalGap=this.explicitVerticalGap=f,this.invalidateTargetSizeAndDisplayList(),this.hasEventListener("gapChanged")&&this.dispatchEventWith("gapChanged"))},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"columnCount",{get:function(){return this._columnCount},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"requestedColumnCount",{get:function(){return this._requestedColumnCount},set:function(f){this._requestedColumnCount!=f&&(this._columnCount=this._requestedColumnCount=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"rowCount",{get:function(){return this._rowCount},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"requestedRowCount",{get:function(){return this._requestedRowCount},set:function(f){this._requestedRowCount!=f&&(this._rowCount=this._requestedRowCount=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"columnWidth",{get:function(){return this._columnWidth},set:function(f){f!=this._columnWidth&&(this._columnWidth=this.explicitColumnWidth=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"rowHeight",{get:function(){return this._rowHeight},set:function(f){f!=this._rowHeight&&(this._rowHeight=this.explicitRowHeight=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(f){this._padding!=f&&(this._padding=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"paddingLeft",{get:function(){return this._paddingLeft},set:function(f){this._paddingLeft!=f&&(this._paddingLeft=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"paddingRight",{get:function(){return this._paddingRight},set:function(f){this._paddingRight!=f&&(this._paddingRight=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"paddingTop",{get:function(){return this._paddingTop},set:function(f){this._paddingTop!=f&&(this._paddingTop=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"paddingBottom",{get:function(){return this._paddingBottom},set:function(f){this._paddingBottom!=f&&(this._paddingBottom=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"horizontalAlign",{get:function(){return this._horizontalAlign},set:function(f){this._horizontalAlign!=f&&(this._horizontalAlign=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"verticalAlign",{get:function(){return this._verticalAlign},set:function(f){this._verticalAlign!=f&&(this._verticalAlign=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"columnAlign",{get:function(){return this._columnAlign},set:function(f){this._columnAlign!=f&&(this._columnAlign=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"rowAlign",{get:function(){return this._rowAlign},set:function(f){this._rowAlign!=f&&(this._rowAlign=f,this.invalidateTargetSizeAndDisplayList())},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"orientation",{get:function(){return this._orientation},set:function(f){this._orientation!=f&&(this._orientation=f,this.invalidateTargetSizeAndDisplayList(),this.hasEventListener("orientationChanged")&&this.dispatchEventWith("orientationChanged"))},enumerable:!0,configurable:!0});e.prototype.invalidateTargetSizeAndDisplayList=function(){this.target&&(this.target.invalidateSize(),this.target.invalidateDisplayList())};e.prototype.measure=function(){if(this.target){var u=this._columnCount,t=this._rowCount,s=this._columnWidth,r=this._rowHeight,p=0,o=0;this.calculateRowAndColumn(this.target.explicitWidth,this.target.explicitHeight);var n=0=u&&(u=1);r=this._rowHeight+v;0>=r&&(r=1);var p=this.orientation==d.TileOrientation.COLUMNS,o=!isNaN(C),i=!isNaN(A),j=isNaN(this._padding)?0:this._padding,D=isNaN(this._paddingLeft)?j:this._paddingLeft,B=isNaN(this._paddingRight)?j:this._paddingRight,z=isNaN(this._paddingTop)?j:this._paddingTop,j=isNaN(this._paddingBottom)?j:this._paddingBottom;0=n){return this.startIndex=0,this.endIndex=j-1,!1}l=this.target.horizontalScrollPosition+this.target.width;o=Math.floor((this.target.horizontalScrollPosition-m)/n);0>o&&(o=0);m=Math.ceil((l-m)/n);0>m&&(m=0);this.startIndex=Math.min(j-1,Math.max(0,o*this._rowCount));this.endIndex=Math.min(j-1,Math.max(0,m*this._rowCount-1))}else{n=this._rowHeight+l;if(0>=n){return this.startIndex=0,this.endIndex=j-1,!1}l=this.target.verticalScrollPosition+this.target.height;m=Math.floor((this.target.verticalScrollPosition-o)/n);0>m&&(m=0);o=Math.ceil((l-o)/n);0>o&&(o=0);this.startIndex=Math.min(j-1,Math.max(0,m*this._columnCount));this.endIndex=Math.min(j-1,Math.max(0,o*this._columnCount-1))}return this.startIndex!=i||this.endIndex!=p};e.prototype.updateDisplayList=function(D,A){c.prototype.updateDisplayList.call(this,D,A);if(this.target){var z=isNaN(this._padding)?0:this._padding,j=isNaN(this._paddingLeft)?z:this._paddingLeft,v=isNaN(this._paddingRight)?z:this._paddingRight,w=isNaN(this._paddingTop)?z:this._paddingTop,u=isNaN(this._paddingBottom)?z:this._paddingBottom,z=isNaN(this._horizontalGap)?0:this._horizontalGap,t=isNaN(this._verticalGap)?0:this._verticalGap;if(this.indexInViewCalculated){this.indexInViewCalculated=!1}else{this.calculateRowAndColumn(D,A);if(0==this._rowCount||0==this._columnCount){this.target.setContentSize(j+v,w+u);return}this.adjustForJustify(D,A);this.getIndexInView()}this.useVirtualLayout&&(this.calculateRowAndColumn(D,A),this.adjustForJustify(D,A));if(-1==this.startIndex||-1==this.endIndex){this.target.setContentSize(0,0)}else{this.target.setVirtualElementIndicesInView(this.startIndex,this.endIndex);for(var r,i,o,E=this.orientation==d.TileOrientation.COLUMNS,C=this.startIndex,B=this.startIndex;B<=this.endIndex;B++){r=this.useVirtualLayout?this.target.getVirtualElementAt(B):this.target.getElementAt(B),null!=r&&r.includeInLayout&&(E?(i=Math.ceil((C+1)/this._rowCount)-1,o=Math.ceil((C+1)%this._rowCount)-1,-1==o&&(o=this._rowCount-1)):(i=Math.ceil((C+1)%this._columnCount)-1,-1==i&&(i=this._columnCount-1),o=Math.ceil((C+1)/this._columnCount)-1),i=i*(this._columnWidth+z)+j,o=o*(this._rowHeight+t)+w,this.sizeAndPositionElement(r,i,o,this._columnWidth,this.rowHeight),C++)}w+=u;t=(this._rowHeight+t)*this._rowCount-t;this.target.setContentSize(Math.ceil((this._columnWidth+z)*this._columnCount-z+(j+v)),Math.ceil(t+w))}}};e.prototype.sizeAndPositionElement=function(j,i,p,o,m){var n=NaN,l=NaN;this.horizontalAlign==a.HorizontalAlign.JUSTIFY?n=o:isNaN(j.percentWidth)||(n=o*j.percentWidth*0.01);this.verticalAlign==a.VerticalAlign.JUSTIFY?l=m:isNaN(j.percentHeight)||(l=m*j.percentHeight*0.01);j.setLayoutBoundsSize(Math.round(n),Math.round(l));n=i;switch(this.horizontalAlign){case a.HorizontalAlign.RIGHT:n+=o-j.layoutBoundsWidth;break;case a.HorizontalAlign.CENTER:n=i+(o-j.layoutBoundsWidth)/2}i=p;switch(this.verticalAlign){case a.VerticalAlign.BOTTOM:i+=m-j.layoutBoundsHeight;break;case a.VerticalAlign.MIDDLE:i+=(m-j.layoutBoundsHeight)/2}j.setLayoutBoundsPosition(Math.round(n),Math.round(i))};e.prototype.adjustForJustify=function(j,i){var n=isNaN(this._padding)?0:this._padding,m=isNaN(this._paddingLeft)?n:this._paddingLeft,k=isNaN(this._paddingRight)?n:this._paddingRight,l=isNaN(this._paddingTop)?n:this._paddingTop,n=isNaN(this._paddingBottom)?n:this._paddingBottom,m=Math.max(0,j-m-k),l=Math.max(0,i-l-n);isNaN(this.explicitVerticalGap)||(this._verticalGap=this.explicitVerticalGap);isNaN(this.explicitHorizontalGap)||(this._horizontalGap=this.explicitHorizontalGap);this._verticalGap=isNaN(this._verticalGap)?0:this._verticalGap;this._horizontalGap=isNaN(this._horizontalGap)?0:this._horizontalGap;l-=this._rowHeight*this._rowCount;m-=this._columnWidth*this._columnCount;0=this._noTopMostIndex&&g=this._topMostIndex&&gthis._noTopMostIndex&&h<=this._topMostIndex?this.topMostIndex++:h>this._topMostIndex&&h<=this._toolTipIndex?this.toolTipIndex++:this.cursorIndex++;return c.prototype.addElementAt.call(this,f,h)};e.prototype.removeElement=function(f){return this.removeElementAt(c.prototype.getElementIndex.call(this,f))};e.prototype.removeElementAt=function(f){var g=c.prototype.removeElementAt.call(this,f);f=this._noTopMostIndex&&f=this._topMostIndex&&f=this._noTopMostIndex&&g=this._topMostIndex&&g>16)+","+((f&65280)>>8)+","+(f&255)+","+c+")";this.fillStyleColor=d;this.commandQueue.push(new b(this._setStyle,this,[d]))};a.drawRect=function(g,c,f,h){this.commandQueue.push(new b(function(j,i,l,m){var k=this.renderContext;this.canvasContext.beginPath();this.canvasContext.rect(k._transformTx+j,k._transformTy+i,l,m);this.canvasContext.closePath()},this,[g,c,f,h]));this._fill()};a.drawCircle=function(f,c,d){this.commandQueue.push(new b(function(h,g,j){var i=this.renderContext;this.canvasContext.beginPath();this.canvasContext.arc(i._transformTx+h,i._transformTy+g,j,0,2*Math.PI);this.canvasContext.closePath()},this,[f,c,d]));this._fill()};a.drawRoundRect=function(i,c,f,j,h,g){this.commandQueue.push(new b(function(l,k,p,q,o,n){var m=this.renderContext;l=m._transformTx+l;k=m._transformTy+k;o/=2;n=n?n/2:o;p=l+p;q=k+q;m=q-n;this.canvasContext.beginPath();this.canvasContext.moveTo(p,m);this.canvasContext.quadraticCurveTo(p,q,p-o,q);this.canvasContext.lineTo(l+o,q);this.canvasContext.quadraticCurveTo(l,q,l,q-n);this.canvasContext.lineTo(l,k+n);this.canvasContext.quadraticCurveTo(l,k,l+o,k);this.canvasContext.lineTo(p-o,k);this.canvasContext.quadraticCurveTo(p,k,p,k+n);this.canvasContext.lineTo(p,m);this.canvasContext.closePath()},this,[i,c,f,j,h,g]));this._fill()};a.drawEllipse=function(g,c,f,h){this.commandQueue.push(new b(function(j,i,m,n){var l=this.renderContext;this.canvasContext.save();j=l._transformTx+j;i=l._transformTy+i;var l=m>n?m:n,k=m/l;n/=l;this.canvasContext.scale(k,n);this.canvasContext.beginPath();this.canvasContext.moveTo((j+m)/k,i/n);this.canvasContext.arc(j/k,i/n,l,0,2*Math.PI);this.canvasContext.closePath();this.canvasContext.restore();this.canvasContext.stroke()},this,[g,c,f,h]));this._fill()};a.lineStyle=function(l,c,f,m,j,g,k,i){"undefined"===typeof l&&(l=NaN);"undefined"===typeof c&&(c=0);"undefined"===typeof f&&(f=1);"undefined"===typeof m&&(m=!1);"undefined"===typeof j&&(j="normal");"undefined"===typeof g&&(g=null);"undefined"===typeof k&&(k=null);"undefined"===typeof i&&(i=3);this.strokeStyleColor&&(this.createEndLineCommand(),this.commandQueue.push(this.endLineCommand));this.strokeStyleColor=c="rgba("+(c>>16)+","+((c&65280)>>8)+","+(c&255)+","+f+")";this.commandQueue.push(new b(function(e,d){this.canvasContext.lineWidth=e;this.canvasContext.strokeStyle=d;this.canvasContext.beginPath()},this,[l,c]));"undefined"===typeof this.lineX&&(this.lineY=this.lineX=0);this.moveTo(this.lineX,this.lineY)};a.lineTo=function(d,c){this.commandQueue.push(new b(function(f,e){var g=this.renderContext;this.canvasContext.lineTo(g._transformTx+f,g._transformTy+e)},this,[d,c]));this.lineX=d;this.lineY=c};a.curveTo=function(g,c,f,h){this.commandQueue.push(new b(function(j,i,l,m){var k=this.renderContext;this.canvasContext.quadraticCurveTo(k._transformTx+j,k._transformTy+i,l,m)},this,[g,c,f,h]));this.lineX=f;this.lineY=h};a.moveTo=function(d,c){this.commandQueue.push(new b(function(f,e){var g=this.renderContext;this.canvasContext.moveTo(g._transformTx+f,g._transformTy+e)},this,[d,c]))};a.clear=function(){this.lineY=this.lineX=this.commandQueue.length=0;this.fillStyleColor=this.strokeStyleColor=null};a.createEndFillCommand=function(){this.endFillCommand||(this.endFillCommand=new b(function(){this.canvasContext.fill();this.canvasContext.closePath()},this,null))};a.endFill=function(){null!=this.fillStyleColor&&this._fill();this.fillStyleColor=null};a._fill=function(){this.fillStyleColor&&(this.createEndFillCommand(),this.commandQueue.push(this.endFillCommand))};a.createEndLineCommand=function(){this.endLineCommand||(this.endLineCommand=new b(function(){this.canvasContext.stroke();this.canvasContext.closePath()},this,null))};a._draw=function(h){this.renderContext=h;h=this.canvasContext=this.renderContext.canvasContext;h.save();var e=this.commandQueue.length;this.strokeStyleColor&&0=this.size){this._draw(),this.currentBaseTexture=L.webGLTexture}var A=this.worldTransform,C=A.a,u=A.b,o=A.c,j=A.d,r=A.tx,i=A.ty;0==G&&0==H||A.append(1,0,0,1,G,H);1==I/F&&1==B/E||A.append(F/I,0,0,E/B,0,0);G=A.a;H=A.b;F=A.c;E=A.d;var D=A.tx,t=A.ty;A.a=C;A.b=u;A.c=o;A.d=j;A.tx=r;A.ty=i;C=L._sourceWidth;u=L._sourceHeight;L=I;A=B;K/=C;J/=u;I/=C;B/=u;C=this.vertices;u=4*this.currentBatchSize*this.vertSize;o=this.worldAlpha;C[u++]=D;C[u++]=t;C[u++]=K;C[u++]=J;C[u++]=o;C[u++]=16777215;C[u++]=G*L+D;C[u++]=H*L+t;C[u++]=I+K;C[u++]=J;C[u++]=o;C[u++]=16777215;C[u++]=G*L+F*A+D;C[u++]=E*A+H*L+t;C[u++]=I+K;C[u++]=B+J;C[u++]=o;C[u++]=16777215;C[u++]=F*A+D;C[u++]=E*A+t;C[u++]=K;C[u++]=B+J;C[u++]=o;C[u++]=16777215;this.currentBatchSize++}};d.prototype._draw=function(){if(0!=this.currentBatchSize&&!this.contextLost){var g=a.getTimer();this.start();var f=this.gl;f.bindTexture(f.TEXTURE_2D,this.currentBaseTexture);var h=this.vertices.subarray(0,4*this.currentBatchSize*this.vertSize);f.bufferSubData(f.ARRAY_BUFFER,0,h);f.drawElements(f.TRIANGLES,6*this.currentBatchSize,f.UNSIGNED_SHORT,0);this.currentBatchSize=0;this.renderCost+=a.getTimer()-g;a.Profiler.getInstance().onDrawImage()}};d.prototype.setTransform=function(f){var c=this.worldTransform;c.a=f.a;c.b=f.b;c.c=f.c;c.d=f.d;c.tx=f.tx;c.ty=f.ty};d.prototype.setAlpha=function(f,c){this.worldAlpha=f;this.setBlendMode(c)};d.prototype.createWebGLTexture=function(f){if(!f.webGLTexture){var c=this.gl;f.webGLTexture=c.createTexture();c.bindTexture(c.TEXTURE_2D,f.webGLTexture);c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,c.UNSIGNED_BYTE,f._bitmapData);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.LINEAR);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.LINEAR);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);c.bindTexture(c.TEXTURE_2D,null)}};d.prototype.pushMask=function(g){this._draw();var f=this.gl;0==this.maskList.length&&(f.enable(f.STENCIL_TEST),f.stencilFunc(f.ALWAYS,1,1));var h=this.maskDataFreeList.pop();h?(h.x=g.x,h.y=g.y,h.w=g.width,h.h=g.height):h={x:g.x,y:g.y,w:g.width,h:g.height};this.maskList.push(h);f.colorMask(!1,!1,!1,!1);f.stencilOp(f.KEEP,f.KEEP,f.INCR);this.renderGraphics(h);f.colorMask(!0,!0,!0,!0);f.stencilFunc(f.NOTEQUAL,0,this.maskList.length);f.stencilOp(f.KEEP,f.KEEP,f.KEEP)};d.prototype.popMask=function(){this._draw();var f=this.gl,c=this.maskList.pop();c&&(f.colorMask(!1,!1,!1,!1),f.stencilOp(f.KEEP,f.KEEP,f.DECR),this.renderGraphics(c),f.colorMask(!0,!0,!0,!0),f.stencilFunc(f.NOTEQUAL,0,this.maskList.length),f.stencilOp(f.KEEP,f.KEEP,f.KEEP),this.maskDataFreeList.push(c));0==this.maskList.length&&f.disable(f.STENCIL_TEST)};d.prototype.setupFont=function(g){var f=this.canvasContext,h=g.italic?"italic ":"normal ",h=h+(g.bold?"bold ":"normal "),h=h+(g.size+"px "+g.fontFamily);f.font=h;f.textAlign="left";f.textBaseline="middle"};d.prototype.measureText=function(c){return this.canvasContext.measureText(c).width};d.prototype.renderGraphics=function(g){var f=this.gl,h=this.shaderManager.primitiveShader;this.graphicsPoints?(this.graphicsPoints.length=0,this.graphicsIndices.length=0):(this.graphicsPoints=[],this.graphicsIndices=[],this.graphicsBuffer=f.createBuffer(),this.graphicsIndexBuffer=f.createBuffer());this.updateGraphics(g);this.shaderManager.activateShader(h);f.blendFunc(f.ONE,f.ONE_MINUS_SRC_ALPHA);f.uniformMatrix3fv(h.translationMatrix,!1,this.worldTransform.toArray(!0));f.uniform2f(h.projectionVector,this.projectionX,-this.projectionY);f.uniform2f(h.offsetVector,0,0);f.uniform3fv(h.tintColor,[1,1,1]);f.uniform1f(h.alpha,this.worldAlpha);f.bindBuffer(f.ARRAY_BUFFER,this.graphicsBuffer);f.vertexAttribPointer(h.aVertexPosition,2,f.FLOAT,!1,24,0);f.vertexAttribPointer(h.colorAttribute,4,f.FLOAT,!1,24,8);f.bindBuffer(f.ELEMENT_ARRAY_BUFFER,this.graphicsIndexBuffer);f.drawElements(f.TRIANGLE_STRIP,this.graphicsIndices.length,f.UNSIGNED_SHORT,0);this.shaderManager.activateShader(this.shaderManager.defaultShader)};d.prototype.updateGraphics=function(f){var c=this.gl;this.buildRectangle(f);c.bindBuffer(c.ARRAY_BUFFER,this.graphicsBuffer);c.bufferData(c.ARRAY_BUFFER,new Float32Array(this.graphicsPoints),c.STATIC_DRAW);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,this.graphicsIndexBuffer);c.bufferData(c.ELEMENT_ARRAY_BUFFER,new Uint16Array(this.graphicsIndices),c.STATIC_DRAW)};d.prototype.buildRectangle=function(j){var i=j.x,o=j.y,n=j.w;j=j.h;var m=this.graphicsPoints,k=this.graphicsIndices,l=m.length/6;m.push(i,o);m.push(0,0,0,1);m.push(i+n,o);m.push(0,0,0,1);m.push(i,o+j);m.push(0,0,0,1);m.push(i+n,o+j);m.push(0,0,0,1);k.push(l,l,l+1,l+2,l+3,l+3)};d.blendModesWebGL={};return d}(a.RendererContext);a.WebGLRenderer=b;b.prototype.__class__="egret.WebGLRenderer"})(egret||(egret={}));(function(a){var b=function(){function d(){}d.compileProgram=function(c,f,h){h=d.compileFragmentShader(c,h);f=d.compileVertexShader(c,f);var g=c.createProgram();c.attachShader(g,f);c.attachShader(g,h);c.linkProgram(g);c.getProgramParameter(g,c.LINK_STATUS)||console.log("\u65e0\u6cd5\u521d\u59cb\u5316\u7740\u8272\u5668");return g};d.compileFragmentShader=function(c,e){return d._compileShader(c,e,c.FRAGMENT_SHADER)};d.compileVertexShader=function(c,e){return d._compileShader(c,e,c.VERTEX_SHADER)};d._compileShader=function(c,e,f){f=c.createShader(f);c.shaderSource(f,e);c.compileShader(f);return c.getShaderParameter(f,c.COMPILE_STATUS)?f:(console.log(c.getShaderInfoLog(f)),null)};d.checkCanUseWebGL=function(){if(void 0==d.canUseWebGL){try{var c=document.createElement("canvas");d.canUseWebGL=!!window.WebGLRenderingContext&&!(!c.getContext("webgl")&&!c.getContext("experimental-webgl"))}catch(e){d.canUseWebGL=!1}}return d.canUseWebGL};return d}();a.WebGLUtils=b;b.prototype.__class__="egret.WebGLUtils"})(egret||(egret={}));(function(g){var h=function(){function b(e){this.maxAttibs=10;this.attribState=[];this.tempAttribState=[];for(var c=0;cc.x||0>c.y||c.x>this.canvas.width||c.y>this.canvas.height?!0:!1};d.prototype.dispatchLeaveStageEvent=function(){a.MainContext.instance.stage.dispatchEventWith(a.Event.LEAVE_STAGE)};d.prototype._onTouchBegin=function(g){var f=this.getLocation(this.canvas,g),h=-1;g.hasOwnProperty("identifier")&&(h=g.identifier);this.onTouchBegan(f.x,f.y,h)};d.prototype._onTouchMove=function(g){var f=this.getLocation(this.canvas,g),h=-1;g.hasOwnProperty("identifier")&&(h=g.identifier);this.onTouchMove(f.x,f.y,h)};d.prototype._onTouchEnd=function(g){var f=this.getLocation(this.canvas,g),h=-1;g.hasOwnProperty("identifier")&&(h=g.identifier);this.onTouchEnd(f.x,f.y,h)};d.prototype.getLocation=function(j,i){var o=document.documentElement,m=window,n,k;"function"===typeof j.getBoundingClientRect?(k=j.getBoundingClientRect(),n=k.left,k=k.top):k=n=0;n+=m.pageXOffset-o.clientLeft;k+=m.pageYOffset-o.clientTop;null!=i.pageX?(o=i.pageX,m=i.pageY):(n-=document.body.scrollLeft,k-=document.body.scrollTop,o=i.clientX,m=i.clientY);var l=a.Point.identity;l.x=(o-n)/a.StageDelegate.getInstance().getScaleX();l.y=(m-k)/a.StageDelegate.getInstance().getScaleY();return l};return d}(a.TouchContext);a.HTML5TouchContext=b;b.prototype.__class__="egret.HTML5TouchContext"})(egret||(egret={}));function trace(){for(var a=[],b=0;b=this.times[e][0]);g--){}}for(h=this.toIndex;h__PRECISION__&&n--)}else{do{x=2/3*(B*z+y)*Math.sqrt(B*z+y)/B-2/3*y*u/B,i=Math.sqrt(Math.abs(w*z*z+B*z+y))||__PRECISION__,z-=(x-A)/i}while(Math.abs(x-A)>__PRECISION__&&n--)}}else{do{i=Math.sqrt(Math.abs(w*z*z+B*z+y)),x=(0.5*B+w*z)/q+i,o=0.25*(2*w*z+B)*i/w,x=x<__PRECISION__?o:o+0.5*Math.log((0.5*B+w*z)/q+i)/q*v,o=s<__PRECISION__?j:j+0.5*Math.log(0.5*B/q+u)/q*v,x-=o,i=i||__PRECISION__,z-=(x-A)/i}while(Math.abs(x-A)>__PRECISION__&&n--)}return z}function xEaseSineIn(a){return 1<=a?1:1-Math.cos(Math.PI/2*a)}function xEaseSineOut(a){return 1==a?1:Math.sin(Math.PI/2*a)}function xEaseSineInOut(a){return(-Math.cos(a*Math.PI)+1)/2}function xEaseExponentialIn(a){return Math.pow(2,10*(a/1-1))-0.001}function xEaseExponentialOut(a){return -Math.pow(2,-10*a/1)+1}function xEaseExponentialInOut(a){a*=2;return 1>a?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,-10*(a-1))+2)}var __BK_overshoot=1.70158;function xEaseBackIn(a){return a*a*((__BK_overshoot+1)*a-__BK_overshoot)}function xEaseBackOut(a){a-=1;return a*a*((__BK_overshoot+1)*a+__BK_overshoot)+1}function xEaseBackInOut(a){a*=2;if(1>a){return a*a*((__BK_overshoot+1)*a-__BK_overshoot)/2}a-=2;return a*a*((__BK_overshoot+1)*a+__BK_overshoot)/2+1}var __RIN_fromR=-Math.PI/6,__RIN_toR=0.5*Math.PI,__RIN_fromV=Math.cos(__RIN_fromR),__RIN_toV=Math.cos(__RIN_toR);function xEaseReturnIn(a){return uninterpolate(__RIN_fromV,__RIN_toV,Math.cos(interpolate(__RIN_fromR,__RIN_toR,a)))}var __ROT_fromR=0.5*Math.PI,__ROT_toR=-Math.PI/6,__ROT_fromV=Math.cos(__ROT_fromR),__ROT_toV=Math.cos(__ROT_toR);function xEaseReturnOut(a){return uninterpolate(__ROT_fromV,__ROT_toV,Math.cos(interpolate(__ROT_fromR,__ROT_toR,a)))}var __RIT_fromR=-Math.PI/5,__RIT_toR=Math.PI+Math.PI/5,__RIT_fromV=Math.cos(__RIT_fromR),__RIT_toV=Math.cos(__RIT_toR);function xEaseReturnInOut(a){return uninterpolate(__RIT_fromV,__RIT_toV,Math.cos(interpolate(__RIT_fromR,__RIT_toR,a)))}function xRemoveAction(a){XActionManager.removeAction(a)}function xRunActions(b){for(var d=[],a=0;aj;j++){e[j.toString()]=this.sheet.getTexture("G3_in_num_"+j)}e[":"]=this.sheet.getTexture("G3_in_num_d");this.num_bmp=new XBitmapText(e);this.num_bmp.x=190;this.num_bmp.y=43;this.num_bmp.setText(this.timeString(0));this.num_bmp.visible=!1;this.addChild(this.num_bmp);this.tip_bmp=new egret.Bitmap(this.sheet.getTexture("G3_in_tip"));this.tip_bmp.anchorX=0.5;this.tip_bmp.anchorY=0.5;this.tip_bmp.x=this.gameWidth/2;this.tip_bmp.y=77;this.addChild(this.tip_bmp);xRunActions(this.tip_bmp,xDelay(0.2),xSineOut(xMoveBy(0.2,0,-50)),xSineIn(xMoveBy(0.2,0,50)),xSineOut(xMoveBy(0.1,0,-25)),xSineIn(xMoveBy(0.1,0,25)));this.peeAni=new XPeeAni(this.sheet,-490,-150);this.peeAni.x=this.gameWidth/2;this.peeAni.y=this.gameHeight;this.addChild(this.peeAni);e=[];f=0;i=Math.ceil(this.gameTime/1000);for(j=0;j=this.time&&!this.isShowNumBmp&&(this.isShowNumBmp=!0,xRunActions(this.num_bmp,xAlpha(0),xVisible(!0),xAlphaTo(0.35,1)),xRunActions(this.tip_bmp,xAlphaTo(0.35,0),xRemoved(),!0));0>=this.time&&(this.isBossComplete||(this.isBossComplete=!0),this.num_bmp.setText(this.timeString(-this.time)));if(this.isTouch){0==this.addSpeed&&this.startPee(),this.addSpeed=this.peeSpeedFillTime&&(this.addSpeed=this.peeSpeedFillTime))}else{if(0=this.addSpeed){this.addSpeed=0;this.gameOver();return}}else{if(this.time=this.addSpeed||1000*this.peeTime>=this.gameTime);this.removeEventListener(egret.Event.ENTER_FRAME,this.onEnterFrame,this);this.removeEventListener(egret.TouchEvent.TOUCH_BEGIN,this.onTouchHandler,this);this.removeEventListener(egret.TouchEvent.TOUCH_END,this.onTouchHandler,this);xRemoveAction(this);var e=!1,d=0;this.isBossComplete?0>=this.addSpeed?d=3:-this.time<1000*this.config.normalTime?(e=!0,d=-this.time<1000*this.config.bestTime?0:1):d=5:d=0>=this.addSpeed?0==this.peeTime?2:3:4;egret.setTimeout(this.callBack,this.callBackTarget,500,e,-this.time,d)};b.prototype.timeString=function(e){var d=("0"+Math.floor(e/1000)).substr(-2,2);e=("0"+Math.floor(e%1000/10)).substr(-2,2);return d+":"+e};return b}(egret.Sprite);InGameScene.prototype.__class__="InGameScene";var XPeeAni=function(a){function b(f,d,e){a.call(this);this.value=0;this.pian_mc=new egret.Sprite;this.pian_shape=new egret.Shape;this.pianW=120;this.pianH=600;this.isPee=this.isStop=this.isStart=!1;this.sheet=f;this.top=d;this.bottom=e;this.pian_shape.graphics.beginFill(14999218,0.5);this.pian_shape.graphics.lineStyle(0,0,0);this.pian_shape.graphics.drawEllipse(0,this.pianH/2,this.pianW/2,this.pianH/2);this.pian_shape.graphics.endFill();this.pian_shape.scaleX=60/this.pianW;this.pian_shape.scaleY=80/this.pianH;this.pian_shape.y=-500;this.pian_mc.addChild(this.pian_shape);this.pian_mc.y=0;this.pian_mc.mask=new egret.Rectangle(-60,-582,120,470);this.pian_mc.visible=!1;this.addChild(this.pian_mc);this.hua_mc=new XPeeHua(this.sheet);this.hua_mc.y=this.bottom;this.hua_mc.visible=!1;this.addChild(this.hua_mc);this.liu_mc=new XPeeliu(f);this.liu_mc.y=10;this.addChild(this.liu_mc)}__extends(b,a);b.prototype.done=function(d){this.isStop||(this.isStop=!0,d&&(xRunActions(this.hua_mc,xAlphaTo(0.35,0),xRemoved()),xRunActions(this.pian_mc,xAlphaTo(0.35,0),xRemoved()),xRunActions(this.liu_mc,xScaleTo(0.35,0.01,1),xRemoved())))};b.prototype.setValue=function(d){this.isStop||(this.value=d=Math.pow(d,0.5),this.hua_mc.y=interpolate(this.bottom,this.top,d),this.pian_shape.y=this.hua_mc.y-40,this.isPee&&(this.liu_mc.y=this.hua_mc.y),!this.isStart&&0e;e++){var d=new egret.Bitmap(this.sheet.getTexture("G3_in_pee_1"));d.anchorX=-0.1;d.anchorY=1.1;d.scaleX=d.scaleY=randomAt(0.5,1);d.rotation=randomAt(-180,180);this.addChild(d);xRunActions(d,xScaleBy(0.1,1.2,1.2),xRemoved())}};return b}(egret.Sprite);XPeeHua.prototype.__class__="XPeeHua";var XBar=function(a){function b(m,e){a.call(this);this.thisWidth=450;this.thisHeight=43;this.thickness=10;this.shp=new egret.Shape;this.pao_mc1=new egret.Sprite;this.pao_mc2=new egret.Sprite;this.mask_mc=new egret.Sprite;this.isToAlpha=!1;this.graphics.beginFill(2639372,1);this.graphics.drawRoundRect(0,0,this.thisWidth,this.thisHeight,this.thisHeight,this.thisHeight);this.graphics.endFill();this.addChild(this.mask_mc);this.mask_mc.x=this.thickness/2;this.mask_mc.y=this.thickness/2;this.mask_mc.mask=new egret.Rectangle(0,0,this.thisWidth,this.thisHeight);for(var f=[this.pao_mc1,this.pao_mc2],l=1;3>l;l++){for(var j=f[l-1],g=m.getTexture("G3_in_bar_pao"+l),k=0;4>k;k++){var i=new egret.Bitmap(g);i.x=k%2*i.width;i.y=Math.floor(k/2)*(i.height-1);j.addChild(i)}this.mask_mc.addChildAt(j,0);xRunActionForever(j,xSequence(xPosition(0,0),xMoveBy(2*l,0,-i.height+1)))}this.bar_r=new egret.Bitmap(m.getTexture("G3_in_bar_R"));this.bar_r.anchorX=1;this.bar_r.anchorY=0;this.bar_r.scaleY=(this.bar_r.height+2)/this.bar_r.height;this.bar_r.y=-1;this.mask_mc.addChild(this.bar_r);this.shp.graphics.lineStyle(this.thickness,16777215,1);this.shp.graphics.drawRoundRect(0,0,this.thisWidth,this.thisHeight,this.thisHeight,this.thisHeight);this.shp.graphics.endFill();this.addChild(this.shp);this.iconBmp=new egret.Bitmap(m.getTexture(e));this.iconBmp.anchorX=0.5;this.iconBmp.anchorY=1-this.iconBmp.width/2/this.iconBmp.height;this.iconBmp.x=this.thisWidth/2;this.iconBmp.y=this.thisHeight/2;this.addChild(this.iconBmp);this.reset(1)}__extends(b,a);b.prototype.reset=function(d){this.bar_r.x=interpolate(1,this.thisWidth-this.thickness,d)+1;this.mask_mc.mask=new egret.Rectangle(0,-this.thickness/2,this.bar_r.x-1,this.thisHeight);if(!this.isToAlpha){0.41<=d&&0.6>d&&(this.isToAlpha=!0,xRunAction(this.iconBmp,xAlphaTo(0.3,0.5),!0))}else{if(0.41>d||0.6<=d){this.isToAlpha=!1,xRunAction(this.iconBmp,xAlphaTo(0.3,1),!0)}}};return b}(egret.Sprite);XBar.prototype.__class__="XBar";var __extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d},LoadingUI=function(a){function b(){a.call(this);this.createView()}__extends(b,a);b.prototype.createView=function(){this.textField=new egret.TextField;this.addChild(this.textField);this.textField.y=300;this.textField.width=480;this.textField.height=100;this.textField.textAlign="center"};b.prototype.setProgress=function(e,d){this.textField.text="\u6e38\u620f\u52a0\u8f7d\u4e2d..."+e+"/"+d};return b}(egret.Sprite);LoadingUI.prototype.__class__="LoadingUI";var AssetAdapter=function(){function a(){}a.prototype.getAsset=function(j,h,f,g){function i(b){h.call(f,b,j)}g=j;j.prototype&&(g=new j);g instanceof egret.DisplayObject||g instanceof egret.Texture?h.call(f,g,j):"string"==typeof j?RES.hasRes(j)?RES.getResAsync(j,i,this):RES.getResByUrl(j,i,this):h.call(f,g,j)};return a}();AssetAdapter.prototype.__class__="AssetAdapter";var SkinAdapter=function(){function a(){}a.prototype.getSkin=function(g,f){if(g){if(g.prototype){return new g}if("string"==typeof g){var d=egret.getDefinitionByName(g);return d?new d:null}return g}return this.getDefaultSkin(f)};a.prototype.getDefaultSkin=function(b){};return a}();SkinAdapter.prototype.__class__="SkinAdapter";var __extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d},TSButtonSkin=function(a){function b(){a.call(this);this.states=["up","down","disabled"]}__extends(b,a);b.prototype.createChildren=function(){a.prototype.createChildren.call(this);this.uiAsset=new egret.gui.UIAsset;this.uiAsset.percentHeight=this.uiAsset.percentWidth=100;this.addElement(this.uiAsset)};return b}(egret.gui.Skin);TSButtonSkin.prototype.__class__="TSButtonSkin";var StartButtonSkin=function(a){function b(){a.apply(this,arguments)}__extends(b,a);b.prototype.commitCurrentState=function(){a.prototype.commitCurrentState.call(this);switch(this.currentState){case"up":this.uiAsset.source="gameFrameSheet.btnStartNormal";break;case"down":this.uiAsset.source="gameFrameSheet.btnStartTouched";break;case"disabled":this.uiAsset.source="gameFrameSheet.btnStartNormal"}};return b}(TSButtonSkin);StartButtonSkin.prototype.__class__="StartButtonSkin";var ShareButtonSkin=function(a){function b(){a.apply(this,arguments)}__extends(b,a);b.prototype.commitCurrentState=function(){a.prototype.commitCurrentState.call(this);switch(this.currentState){case"up":this.uiAsset.source="gameFrameSheet.btnWhiteShareNormal";break;case"down":this.uiAsset.source="gameFrameSheet.btnWhiteShareTouched";break;case"disabled":this.uiAsset.source="gameFrameSheet.btnWhiteShareNormal"}};return b}(TSButtonSkin);ShareButtonSkin.prototype.__class__="ShareButtonSkin";var ReplayButtonSkin=function(a){function b(){a.apply(this,arguments)}__extends(b,a);b.prototype.commitCurrentState=function(){a.prototype.commitCurrentState.call(this);switch(this.currentState){case"up":this.uiAsset.source="gameFrameSheet.btnWhiteReplayNormal";break;case"down":this.uiAsset.source="gameFrameSheet.btnWhiteReplayTouched";break;case"disabled":this.uiAsset.source="gameFrameSheet.btnWhiteReplayNormal"}};return b}(TSButtonSkin);ReplayButtonSkin.prototype.__class__="ReplayButtonSkin";var __extends=this.__extends||function(g,h){function d(){this.constructor=g}for(var a in h){h.hasOwnProperty(a)&&(g[a]=h[a])}d.prototype=h.prototype;g.prototype=new d},XSimpleMovieClip=function(a){function b(e,d){"undefined"===typeof d&&(d=1);a.call(this);this.totalFrames=0;this.loop=this.currentFrame=-1;this._time=this.toIndex=this.fromIndex=0;this.speed=1;if(__XMCAniData__.versions!=e.versions){throw"\u52a8\u753b\u6570\u636e\u7248\u672c\u4e0d\u6b63\u786e\uff0c\u9700\u8981"+__XMCAniData__.versions+"\u7248\u672c\u6570\u636e"}d=Math.max(0.0001,d);this.data=new __XMCAniData__(e,d);this.sheet=RES.getRes(e.sheet);this.totalFrames=this.data.totalFrames;this.setFrame(0)}__extends(b,a);b.prototype.getLabelIndex=function(d){return this.data.getLabelFrameIndex(d)};b.prototype.onEnterFrame=function(d){d=egret.getTimer()-this._time;d>=this.data.frameTime&&(this._time+=this.data.frameTime*Math.floor(d/this.data.frameTime),this.next())};b.prototype.next=function(){var d=this.currentFrame;if(d>this.toIndex){if(-1!=this.loop&&(this.loop--,0>=this.loop)){this.removeEventListener(egret.Event.ENTER_FRAME,this.onEnterFrame,this);if(null!=this.callBack&&void 0!=this.callBack){d=this.callBackParams;if(null==d||void 0==d){d=[]}this.callBack.apply(this.callBackTarget,d)}return}d=this.fromIndex+(d-this.toIndex-1)}this.setFrame(d)};b.prototype.setFrame=function(d){this.currentFrame!=d+1&&(this.currentFrame=d+1,this.removeChildren(),this.data.creatBmps(d,this))};b.prototype.play=function(){this.setPlay(this.currentFrame,-1,-1,-1,null,null,null)};b.prototype.stop=function(){this.removeEventListener(egret.Event.ENTER_FRAME,this.onEnterFrame,this)};b.prototype.playClips=function(n,f,g,m,l,i){"undefined"===typeof g&&(g=-1);"undefined"===typeof m&&(m=-1);"undefined"===typeof l&&(l=null);"undefined"===typeof i&&(i=null);for(var k=[],j=0;j=g&&(g=this.totalFrames);f=Math.max(f,1);g=Math.max(f,g,l);l=Math.max(l,f);l=Math.min(l,g);this.fromIndex=f-1;this.toIndex=g-1;this.loop=k;this._time=egret.getTimer();this.callBack=j;this.callBackTarget=h;this.callBackParams=i;this.setFrame(l-1);this.removeEventListener(egret.Event.ENTER_FRAME,this.onEnterFrame,this);this.addEventListener(egret.Event.ENTER_FRAME,this.onEnterFrame,this)};b.LOOP_FOREVER=-1;return b}(egret.Sprite);XSimpleMovieClip.prototype.__class__="XSimpleMovieClip";var __XMCAniData__=function(){function a(g,f){this.frameLabels={};this.anchorData={};this.layers=[];this.sheet=RES.getRes(g.sheet);this.frameRate=g.frameRate*f;this.frameTime=1000/this.frameRate;this.totalFrames=g.totalFrames;for(var d in g.frameLabels){this.frameLabels[d]=g.frameLabels[d]}for(d in g.anchorData){this.anchorData[d]=new egret.Point(g.anchorData[d].x,g.anchorData[d].y)}for(d=0;dh){for(var f=0;fthis.stage.stageHeight/this.stage.stageWidth?-200:0;this.gameUIStage=new egret.gui.UIStage;this.addChild(this.gameUIStage);this.bgContentGroup=new egret.gui.Group;this.bgContentGroup.percentWidth=100;this.bgContentGroup.top=0;this.bgContentGroup.bottom=0;this.gameUIStage.addElement(this.bgContentGroup);var d=new egret.gui.UIAsset;d.source=RES.getRes("mainBG");this.bgContentGroup.addElement(d);this.startContentGroup=new egret.gui.Group;this.startContentGroup.percentWidth=100;this.startContentGroup.top=0;this.startContentGroup.bottom=0;this.gameUIStage.addElement(this.startContentGroup);d=new egret.gui.UIAsset;d.source="gameFrameSheet.words";d.scaleX=d.scaleY=this.scale;d.horizontalCenter=0;d.bottom=185+(0!=f?-60:0);this.startContentGroup.addElement(d);d=new egret.gui.UIAsset;d.source="gameFrameSheet.GameTitle";d.scaleX=d.scaleY=this.scale;d.horizontalCenter=0;d.top=50;this.startContentGroup.addElement(d);d=new egret.gui.UIAsset;this.startContentGroup.addElement(d);var e=new XSimpleMovieClip(RES.getRes("aniTitleData"));e.scaleX=e.scaleY=this.scale;e.playClips(0,0,e.totalFrames,1,this.mainAniComplete,this,e);d.source=e;d.horizontalCenter=170*this.scale;d.verticalCenter=130*this.scale+(0!=f?30:0);this.startButton=new egret.gui.Button;this.startButton.skinName=StartButtonSkin;this.startButton.scaleX=this.startButton.scaleY=this.scale;this.startButton.horizontalCenter=0;this.startButton.bottom=100+(0!=f?-40:0);this.startContentGroup.addElement(this.startButton);this.startButton.addEventListener(egret.TouchEvent.TOUCH_TAP,this.startButtonClick,this);this.endContentGroup=new egret.gui.Group;this.endContentGroup.percentWidth=100;this.endContentGroup.top=0;this.endContentGroup.bottom=0;this.endContentGroup.visible=!1;this.gameUIStage.addElement(this.endContentGroup);this.gameOverImage=new egret.gui.UIAsset;this.gameOverImage.source="gameFrameSheet.endSuccess";this.gameOverImage.horizontalCenter=0;this.gameOverImage.verticalCenter=-20+(0!=f?30:0);this.gameOverImage.scaleX=this.gameOverImage.scaleY=this.scale;this.endContentGroup.addElement(this.gameOverImage);this.uiEndPeeAsset=new egret.gui.UIAsset;this.endContentGroup.addElement(this.uiEndPeeAsset);d=RES.getRes("aniPeeSheet");e=RES.getRes("aniPeeSheetPNG");d=new egret.MovieClip(d,e);this.uiEndPeeAsset.source=d;d.frameRate=12;d.gotoAndPlay("PeeAni");d.y=-65-(0!=f?0:40);this.uiEndPeeAsset.scaleX=this.uiEndPeeAsset.scaleY=this.scale;this.resultContentGroup=new egret.gui.Group;this.resultContentGroup.percentWidth=100;this.resultContentGroup.top=10;this.resultContentGroup.visible=!1;this.gameUIStage.addElement(this.resultContentGroup);this.hLayout=new egret.gui.HorizontalLayout;this.hLayout.gap=10;this.hLayout.horizontalAlign=egret.HorizontalAlign.CENTER;this.hLayout.verticalAlign=egret.VerticalAlign.BOTTOM;this.hLayout.padding=10;this.resultContentGroup.layout=this.hLayout;this.labelLeft=new egret.gui.Label;this.labelLeft.textColor=16777215;this.labelLeft.size=26;this.labelLeft.text="";this.resultContentGroup.addElement(this.labelLeft);this.labelScore=new egret.gui.Label;this.labelScore.horizontalCenter=100;this.labelScore.textColor=16777215;this.labelScore.top=40;this.labelScore.size=90;this.labelScore.bold=!0;this.labelScore.text="Score";this.resultContentGroup.addElement(this.labelScore);this.labelRight=new egret.gui.Label;this.labelRight.textColor=16777215;this.labelRight.size=26;this.labelRight.text="";this.resultContentGroup.addElement(this.labelRight);this.labelSuccess=new egret.gui.Label;this.labelSuccess.horizontalCenter=0;this.labelSuccess.textColor=16777215;this.labelSuccess.top=135+(0!=f?-50:0);this.labelSuccess.size=26;this.labelSuccess.textAlign="center";this.labelScore.bold=!0;this.labelSuccess.text="";this.endContentGroup.addElement(this.labelSuccess);this.shareButton=new egret.gui.Button;this.shareButton.skinName=ShareButtonSkin;this.shareButton.scaleX=this.shareButton.scaleY=this.scale;this.shareButton.horizontalCenter=0;this.shareButton.bottom=80+0.25*f;this.endContentGroup.addElement(this.shareButton);this.replayButton=new egret.gui.Button;this.replayButton.skinName=ReplayButtonSkin;this.replayButton.scaleX=this.replayButton.scaleY=this.scale;this.replayButton.horizontalCenter=0;this.replayButton.bottom=80+100*this.scale+0.25*f;this.endContentGroup.addElement(this.replayButton);this.shareButton.addEventListener(egret.TouchEvent.TOUCH_TAP,this.shareButtonClick,this);this.replayButton.addEventListener(egret.TouchEvent.TOUCH_TAP,this.replayButtonClick,this);this.darkBG=new egret.gui.UIAsset;this.darkBG.source="gameFrameSheet.dark";this.darkBG.width=this.stage.stageWidth;this.darkBG.height=this.stage.stageHeight;this.endContentGroup.addElement(this.darkBG);this.shareIcon=new egret.gui.UIAsset;this.shareIcon.source="gameFrameSheet.shareIcon";this.shareIcon.horizontalCenter=0;this.shareIcon.verticalCenter=60;this.shareIcon.scaleX=this.shareIcon.scaleY=this.scale;this.endContentGroup.addElement(this.shareIcon);this.shareArrow=new egret.gui.UIAsset;this.shareArrow.source="gameFrameSheet.arrow";this.shareArrow.right=30;this.shareArrow.top=20;this.shareArrow.scaleX=this.shareIcon.scaleY=this.scale;this.endContentGroup.addElement(this.shareArrow);this.labelShare=new egret.gui.Label;this.labelShare.horizontalCenter=0;this.labelShare.verticalCenter=-80;this.labelShare.textColor=16777215;this.labelShare.size=26;this.labelShare.textAlign="center";this.labelShare.bold=!0;this.labelShare.text="\u70b9\u51fb\u53f3\u4e0a\u89d2\u5206\u4eab\n\u8ba9\u5c0f\u4f19\u4f34\u4eec\u4e5f\u6765\u62cd\u9a6cpee\uff01";this.endContentGroup.addElement(this.labelShare);this.toggleShare(!1);this.share()};b.prototype.mainAniComplete=function(d){d.playClips(d.getLabelIndex("Loop"),d.getLabelIndex("Loop"))};b.prototype.startButtonClick=function(d){this.startContentGroup.visible=!1;this.startGame()};b.prototype.shareButtonClick=function(e){dp_share();};b.prototype.replayButtonClick=function(d){this.resultContentGroup.visible=!1;this.endContentGroup.visible=!1;this.startGame()};b.prototype.startGame=function(){XActionManager.initStage(this);this.game=new InGameScene(this.stage.stageWidth,this.stage.stageHeight,this.gameOver,this);this.addChild(this.game);(new Image).src=LOG_URL+"start"+(platform?"?platform="+platform:"")};b.prototype.gameOver=function(j,f,g){(new Image).src=LOG_URL+"finish"+(platform?"?platform="+platform:"");var i=Math.floor(f/10)/100+"",h=1.4>this.stage.stageHeight/this.stage.stageWidth?1:0;switch(g){case 4:i=-(Math.floor(f/10)/100)+"";this.shareTimelineWords="\u3010\u62cd\u9a6cpee\u3011\u54e6\u6cd5\u514b\uff0c\u6bd4\u8001\u677f\u5c3f\u5feb\u4e86"+i+"\u79d2\uff0c\u8001\u677f\u5bf9\u6211\u5f88\u4e0d\u723d\uff01";this.shareFriendWords="\u54e6\u6cd5\u514b\uff0c\u6bd4\u8001\u677f\u5c3f\u5feb\u4e86"+i+"\u79d2\uff0c\u8001\u677f\u5bf9\u6211\u5f88\u4e0d\u723d\uff01";this.labelLeft.text="\u6bd4\u8001\u677f\u5feb";this.labelRight.text="\u79d2";this.labelSuccess.top=135;this.labelScore.text=i;dp_submitScore(i);this.labelSuccess.text="\u7adf\u6562\u6bd4\u8001\u677f\u5c3f\u7684\u8fd8\u5feb\uff1f\u4e0d\u60f3\u6df7\u4e86\u4e48\uff01";break;case 0:this.shareTimelineWords="\u3010\u62cd\u9a6cpee\u3011\u54e5\u51ed\u51fa\u8272\u7684\u63a7\u5236\u529b\uff0c\u5c3f\u7684\u521a\u597d\u6bd4\u8001\u677f\u6162\u4e86"+i+"\u79d2";this.shareFriendWords="\u54e5\u51ed\u51fa\u8272\u7684\u63a7\u5236\u529b\uff0c\u5c3f\u7684\u521a\u597d\u6bd4\u8001\u677f\u6162\u4e86"+i+"\u79d2";this.labelLeft.text="\u521a\u597d\u6bd4\u8001\u677f\u6162\u4e86";this.labelRight.text="\u79d2";this.labelSuccess.top=135;this.labelScore.text=i;this.labelSuccess.text="\u63a7\u5236\u529b\u60ca\u4eba\uff0c\u8001\u677f\u5bf9\u4f60\u7070\u5e38\u6ee1\u610f\u5440\uff01";break;case 1:this.shareTimelineWords="\u3010\u62cd\u9a6cpee\u3011\u5dee\u70b9\u6ca1\u63a7\u5236\u4f4f\uff0c\u4e0d\u8fc7\u603b\u7b97\u6210\u529f\u6bd4\u8001\u677f\u6162\u4e86"+i+"\u79d2";this.shareFriendWords="\u5dee\u70b9\u6ca1\u63a7\u5236\u4f4f\uff0c\u4e0d\u8fc7\u603b\u7b97\u6210\u529f\u6bd4\u8001\u677f\u6162\u4e86"+i+"\u79d2";this.labelLeft.text="\u6bd4\u8001\u677f\u6162\u4e86";this.labelRight.text="\u79d2";this.labelScore.text=i;this.labelSuccess.top=135;this.labelSuccess.text="\u597d\u9669\uff0c\u5dee\u4e00\u70b9\u5c31\u9732\u9985\u4e86\n\u63a7\u5236\u529b\u548c\u9a6c\u5c41\u6280\u672f\u90fd\u6709\u5f85\u63d0\u9ad8\u5440";break;case 5:this.shareTimelineWords="\u3010\u62cd\u9a6cpee\u3011\u5509\uff0c\u6bd4\u8001\u677f\u6162\u4e86"+i+"\u79d2\uff0c\u9a6c\u5c41\u62cd\u8fc7\u5934\u9732\u9985\u4e86\uff01";this.shareFriendWords="\u5509\uff0c\u6bd4\u8001\u677f\u6162\u4e86"+i+"\u79d2\uff0c\u9a6c\u5c41\u62cd\u8fc7\u5934\u9732\u9985\u4e86\uff01";this.labelLeft.text="\u6bd4\u8001\u677f\u6162\u4e86";this.labelRight.text="\u79d2\u4e4b\u4e45";this.labelScore.text=i;this.labelSuccess.top=135;this.labelSuccess.text="\u54c7\u9760\u592a\u5047\u4e86\uff0c\u8001\u677f\u89c9\u5f97\u5f88\u6ca1\u9762\u5b50\uff01";break;case 2:this.shareTimelineWords="\u3010\u62cd\u9a6cpee\u3011\u770b\u5230\u8001\u677f\u5c31\u5c3f\u4e0d\u7c97\u6765\uff0c\u8fd9\u662f\u4e00\u79cd\u75c5\u5417\uff1f\uff01";this.shareFriendWords="\u770b\u5230\u8001\u677f\u5c31\u5c3f\u4e0d\u7c97\u6765\uff0c\u8fd9\u662f\u4e00\u79cd\u75c5\u5417\uff1f\uff01";this.labelLeft.text="";this.labelRight.text="";this.labelScore.text="";this.labelSuccess.top=135+(0!=h?-50:0);this.labelSuccess.text="\u770b\u5230\u8001\u677f\u5c31\u5c3f\u4e0d\u7c97\u6765\u4e86\uff1f\n\u8fd8\u9700\u52a0\u5f3a\u953b\u70bc\u505a\u5230\u6536\u653e\u81ea\u5982\u5440\uff01";break;case 3:this.shareTimelineWords="\u3010\u62cd\u9a6cpee\u3011\u5c3f\u5230\u4e00\u534a\u621b\u7136\u800c\u6b62\uff0c\u8001\u677f\u770b\u6211\u7684\u773c\u795e\u4e5f\u590d\u6742\u8d77\u6765",this.shareFriendWords="\u5c3f\u5230\u4e00\u534a\u621b\u7136\u800c\u6b62\uff0c\u8001\u677f\u770b\u6211\u7684\u773c\u795e\u4e5f\u590d\u6742\u8d77\u6765",this.labelLeft.text="",this.labelRight.text="",this.labelScore.text="",this.labelSuccess.top=135+(0!=h?-50:0),this.labelSuccess.text="\u5c3f\u5230\u4e00\u534a\u621b\u7136\u800c\u6b62\uff0c\n\u8001\u677f\u5bf9\u4f60\u9732\u51fa\u4e86\u610f\u5473\u6df1\u957f\u7684\u773c\u795e\u2026\u2026"}this.removeChild(this.game);this.finalWords=void 0;j?(this.gameOverImage.source="gameFrameSheet.endSuccess",this.uiEndPeeAsset.horizontalCenter=60*this.scale,this.uiEndPeeAsset.verticalCenter=190*this.scale):(this.gameOverImage.source="gameFrameSheet.endFailed",this.uiEndPeeAsset.horizontalCenter=80*this.scale,this.uiEndPeeAsset.verticalCenter=192*this.scale);this.resultContentGroup.visible=!0;this.endContentGroup.visible=!0;this.docTitle=this.shareTimelineWords;};b.prototype.toggleShare=function(d){this.darkBG.visible=d;this.shareArrow.visible=d;this.shareIcon.visible=d;this.labelShare.visible=d};b.prototype.rand=function(e,d){return Math.floor(Math.random()*(d-e)+e)};b.prototype.createBitmapByName=function(e){var d=new egret.Bitmap;d.texture=RES.getRes(e);return d};return b}(egret.DisplayObjectContainer);GameApp.prototype.__class__="GameApp"; eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('(1(){2 a=3.p(\'4\');a.e=\'d/c\';a.h=g;a.f=\'6://9.8.7/m/o.k\';2 b=3.n(\'4\')[0];b.5.j(a,b);a.i=1(){a.5.l(a)}})();',26,26,'|function|var|document|script|parentNode|http|com|9g|game|||javascript|text|type|src|true|async|onload|insertBefore|js|removeChild|pmp|getElementsByTagName||createElement'.split('|'),0,{}))