!function(){"use strict";class t{constructor(){}static init(){Laya.ClassUtils.regClass}}t.width=1334,t.height=750,t.scaleMode="fixedheight",t.screenMode="horizontal",t.alignV="top",t.alignH="left",t.startScene="",t.sceneRoot="",t.debug=!1,t.stat=!1,t.physicsDebug=!1,t.exportSceneToJson=!0,t.init();let e={game:"asset/fgui/game",loading:"fgui/loading"},i={full:"full",flower:"flower"},s={timeOut:"1",notTouch:"2",wrongTouch:"3",wrongHole:"4",rootHole:"5"},n="ALL_BALL_STOP",a="WAIT_SHOOT",o="D3RES_LOADED",h="BALL_SHOOT",l="FIRST_BALL_HOLE",r="RESET_GAME",c="COIN_CHANGE",d="DIAMOND_CHANGE",u="RESTART_GAME",g="GET_USER_INFO",m="CHANGE_SECRETARY",y="POWER_CHANGE",p="POWER_TIME",x="https://mygame1.tangro.cn/headimg/",C={inHoleEft:"inHoleEft",d3ball:"d3ball",iceEft:"iceEft",hitEft:"hitEft",fireworksEft:"fireworksEft"};var f,b,I,k,w,N,L,v;!function(t){t[t.classic=0]="classic",t[t.bigMove=1]="bigMove",t[t.placeBall=2]="placeBall"}(f||(f={})),function(t){t[t.highSpace=0]="highSpace",t[t.breakArmy=1]="breakArmy",t[t.ice=2]="ice",t[t.fireworks=3]="fireworks",t[t.GuanYu=4]="GuanYu"}(b||(b={})),function(t){t[t.directShoot=0]="directShoot",t[t.bigPower=1]="bigPower",t[t.anotherShoot=2]="anotherShoot",t[t.perfectShow=3]="perfectShow",t[t.hardShoot=4]="hardShoot"}(I||(I={})),function(t){t[t.powerNode=0]="powerNode",t[t.d2Root=1]="d2Root",t[t.moveNode=2]="moveNode",t[t.rulerNode=3]="rulerNode"}(k||(k={})),function(t){t[t.normal=0]="normal",t[t.challenge=1]="challenge"}(w||(w={})),function(t){t[t.upSkill=0]="upSkill",t[t.addDiamond=1]="addDiamond",t[t.placeBallNextLevel=2]="placeBallNextLevel",t[t.regretBall=3]="regretBall",t[t.longHelpLine=4]="longHelpLine",t[t.addFailCoin=5]="addFailCoin",t[t.sign=6]="sign",t[t.draw=7]="draw",t[t.triple=8]="triple",t[t.randomDiamond=9]="randomDiamond",t[t.getPower=10]="getPower",t[t.box=11]="box",t[t.try=12]="try",t[t.againSign=13]="againSign",t[t.addCoin=14]="addCoin"}(N||(N={})),function(t){t[t.diamond=1]="diamond",t[t.coin=2]="coin",t[t.gan1=3]="gan1",t[t.gan2=4]="gan2",t[t.gan3=5]="gan3",t[t.gan4=6]="gan4"}(L||(L={})),function(t){t[t.exitGame=0]="exitGame",t[t.foul=1]="foul"}(v||(v={}));class S{constructor(t,e){this.type=t,this.num=e}}var U=Object.freeze({fguiRes:e,ballCamp:i,FoulType:s,ALL_BALL_STOP:n,WAIT_SHOOT:a,D3RES_LOADED:o,BALL_SHOOT:h,FIRST_BALL_HOLE:l,RESET_GAME:r,COIN_CHANGE:c,DIAMOND_CHANGE:d,RESTART_GAME:u,GET_USER_INFO:g,CHANGE_SECRETARY:m,POWER_CHANGE:y,POWER_TIME:p,baseHeadUrl:x,poolKey:C,get GameMode(){return f},get SkillType(){return b},get ClassicWordsType(){return I},get PressType(){return k},get PlaceBallType(){return w},get EAdType(){return N},get Prop(){return L},get TipsType(){return v},AwardType:S});let B=new class{constructor(){this.winSize={width:0,height:0},this.notchHeight=0,this.bannerHeight=0}init(t,e){this.winSize={width:Laya.Browser.clientWidth,height:Laya.Browser.clientHeight},this.notchHeight=this.getNotchHeight(),this.bannerHeight=this.getBannerHeight(),Laya.loader.load(t,Laya.Handler.create(this,()=>{e&&e()}))}getNotchHeight(){let t=50;if(Laya.Browser.onMiniGame){let e=wx.getSystemInfoSync();Laya.Browser.onIOS?-1!=e.model.search("iPhone X")?t=e.statusBarHeight-10:(375==e.screenWidth&&812==e.screenHeight||414==e.screenWidth&&896==e.screenHeight)&&(t=e.statusBarHeight-10):Laya.Browser.onAndroid&&e.screenWidth/e.screenHeight<9/16&&(t=e.statusBarHeight)}return t}getBannerHeight(){return 0}};var M=Laya.Handler,T=Laya.Tween;function getRandStr(t){let e=[0,1,2,3,4,5,6,7,8,9,"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],i="";for(let s=0;s{t&&Laya.Tween.to(t,{scaleX:.96,scaleY:.96},30,null,Laya.Handler.create(null,()=>{t&&Laya.Tween.to(t,{scaleX:1,scaleY:1},20,null,null,0,!0)}),0,!0)}),0,!0)},getNumList:function(t){let e=[];if(t){let s=t.split(",");for(var i in s)e.push(Number(s[i]))}return e},getStrList:function(t){let e=[];if(t){let s=t.split("|");for(var i in s)e.push(String(s[i]))}return e},getRandStr:getRandStr,getUserId:function(){return getRandStr(12)+Laya.timer.currTimer%1e6},formatPos:function(t,e=2){let i=Math.pow(10,e);return t.x=Math.floor(t.x*i)/i,t.y=Math.floor(t.y*i)/i,t.z&&(t.z=Math.floor(t.z*i)/i),t},setPosInt:function(t){return t.x=t.x>0?Math.ceil(t.x):Math.floor(t.x),t.y=t.y>0?Math.ceil(t.y):Math.floor(t.y),t.z=t.z>0?Math.ceil(t.z):Math.floor(t.z),t},random:random,randomList:function(t,e){if(t.length<=e)return t;let i=[];t.forEach(t=>{i.push(t)});let s=[];for(let t=0;te){let i=Math.floor(e/2),s=t.substring(0,i),n=s.replace(/[\u4e00-\u9fa5]/g,"xx").length;for(;n+2{0!=e.length?(n=e[0],e.splice(0,1),Laya.Tween.to(t,{x:n.x,y:n.y},getDistance(t.x,t.y,n.x,n.y)/i*1e3,null,M.create(this,()=>{a()}))):s()};a()},setStarPos:function(t,e,i){for(let s=1;s<=5;s++){let n=t.getChildAt(s-1);if(n.width=n.height=30,n.pivotX=n.pivotY=.5,n.gray=s>e,n.visible=s<=i,3==i)n.x=t.width/2+30*(s-2)-15,n.y=t.height-40,2==s&&(n.y=t.height-30);else if(5==i){let e=Math.abs(s-3);n.x=t.width/2+20*(s-3)-15,n.y=t.height-8*e-30}}},playLoopAnimRotate:function(t,e,i=!0){let s;t.rotation=t.rotation%360,s=i?-360:360,T.to(t,{rotation:s},e,null,M.create(this,()=>{this.playLoopAnimRotate(t,e,i)}))},playLoopAnimPosition:function(t,e,i,s,n,a,o=!0){let h,l;o?(h=e,l=s):(h=i,l=n),T.to(t,{x:h,y:l},a,null,M.create(this,()=>{this.playLoopAnimPosition(t,e,i,s,n,a,!o)}))},playLoopAnimScale:function playLoopAnimScale(t,e,i,s,n=!0){let a;a=n?e:i,T.to(t,{scaleX:a,scaleY:a},s,null,M.create(this,()=>{playLoopAnimScale(t,e,i,s,!n)}))},playLoopAnimRotation:function playLoopAnimRotation(t,e,i,s,n=!0,a=8){let o;o=n?e:i,a?(a--,T.to(t,{rotation:o},s,null,M.create(this,()=>{playLoopAnimRotation(t,e,i,s,!n,a)}))):t.rotation=0},inRect:function(t,e){return e.x>=t.x&&e.x<=t.x+t.w&&e.y>=t.y&&e.y<=t.y+t.h},getNumberK:function(t){return t<1e3?t.toString():(t/1e3).toFixed(1)+"k"},pointInsideCircle:function(t,e,i){if(0===i)return!1;var s=e.x-t.x,n=e.y-t.y;return s*s+n*n<=i*i},formatString:function(t,e){if(!t||null==e)return t;if("object"!=typeof e){var i=arguments,s=new RegExp("{([0-"+(i.length-1)+"])}","g");return t.replace(s,function(t,e){return i[e- -1]})}for(var n in e)e.hasOwnProperty(n)&&(t=t.replace(new RegExp("{"+n+"}","g"),e[n]));return t},getIntersection:function(t,e){let i=[];for(var s=0;s>1;if(_ms(t,e,i,a),_ms(t,e,a,s),e(t[a-1],t[a])<=0)return;const o=[];let h=i,l=a;for(;o.length0?"+"+t:t.toString()},fixNumber:fixNumber,toThousands:toThousands,fmtMoney:function(t){0==(t=toThousands(t.replace(/^0+/,""))).length&&(t="0");let e=0;for(var i=0;iArray.isArray(t));)t=[].concat(...t);return t},getDistanceByPoint:function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},getAngleByPoint:function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)*(180/Math.PI)},toIntByArray:function(t){for(var e=0;e=360;)t-=360;return t},toAngle:function(t){return 180*t/Math.PI},toRadian:function(t){return t*Math.PI/180},getArrayValueRandom:function(t){return t[random(0,t.length-1)]},promptByTip:function(t,e="#FFFFFF",i=null,s=1e3,n=35,a=1){},promptByErrorCode:function(t,e="#FFFFFF",i="#FF8B00",s=1e3,n=35,a=1){},fmtTimeMMSS:function(t){return t=t<0?0:Math.floor(t),fixNumber(Math.floor(t/60),2)+":"+fixNumber(t%60,2)},fmtTimeMS:function(t){return t<0&&(t=0),fixNumber(Math.floor(t/60),2)+"m"+fixNumber(t%60,2)+"s"},fmtTimeHHMM:function(t){return t<0&&(t=0),t=Math.floor(t/1e3),fixNumber(Math.floor(t/3600),2)+":"+fixNumber(Math.floor(t%3600/60),2)+":"+fixNumber(Math.floor(t%60),2)},getServerTime:function(){return new Date((new Date).getTime()-R)},setServerTime:function(t){R=(new Date).getTime()-t}});class D{constructor(){D._instance=this}static getInstance(){return this._instance||(this._instance=new D),this._instance}sendPost(t,e,i){let s=new Laya.HttpRequest;s.http.timeout=5e3,s.once(Laya.Event.COMPLETE,this,function(t){if(t&&t.length>0){let e=JSON.parse(t);i&&i(e)}}),s.once(Laya.Event.ERROR,this,function(t){console.log("errorHandler:"+t)}),s.send(t,e,"post","text",["Content-Type","application/json; charset=UTF-8"])}sendGet(t,e){let i=new Laya.HttpRequest;i.http.timeout=5e3,i.once(Laya.Event.COMPLETE,this,function(t){t&&t.length>0&&e&&e(t)}),i.once(Laya.Event.ERROR,this,function(t){console.log("errorHandler:"+t)}),i.send(t,"","get")}}D._instance=null;class E extends Laya.Sprite{constructor(){super(),this._time=0,this._sin=0,this.initShader()}initShader(){this.shaderValue=new Laya.Value2D(E.DissolveSurfaceSaveName,E.DissolveSurfaceSaveName),this.customRenderEnable=!0,this.shaderValue.shader=new Laya.Shader2X("\n #define FSHIGHPRECISION\n attribute vec4 posuv;\t\n uniform vec2 size;\t\t\n varying vec4 v_texcoord;\n void main() {\n vec4 pos = vec4(posuv.xy,0.,1.);\n vec4 pos1 =vec4((pos.x/size.x-0.5)*2.0,(0.5-pos.y/size.y)*2.0,0.,1.0);\n gl_Position=pos1;\n v_texcoord.xy = posuv.xy;\n \n }\n ","\n #define FSHIGHPRECISION\n precision highp float;\n varying vec4 v_texcoord;\n uniform vec2 size;\n uniform sampler2D texture;\n uniform float u_Time;\n\n void main() {\n vec4 color= texture2D(texture, v_texcoord.xy);\n float width = 0.2;\n float start = u_Time;\n float offset = 1.0;\n vec2 myuv = vec2(v_texcoord.x/size.x,v_texcoord.y/size.y);\n\n if( myuv.x < (start - offset * myuv.y) && myuv.x > (start - offset * myuv.y - width))\n {\n color.r=1.1;\n color.g=1.1;\n color.b=1.1;\n gl_FragColor = color;\n\n } else {\n gl_FragColor = color;\n }\n }\n ",E.DissolveSurfaceSaveName)}customRender(t,e,i){if(this.onUpdate(),!this.texture)return;let s=e-this.pivotX,n=i-this.pivotY;t.drawTarget(this.texture,s,n,this.width,this.height,null,this.shaderValue)}onUpdate(){this._time+=2*Laya.timer.delta*.001,this._sin=Math.sin(this._time),this._sin>.99&&(this._sin=0,this._time=0),this.shaderValue.u_Time=this._sin}}E.DissolveSurfaceSaveName=9997;class A extends fairygui.Window{constructor(){super(),this.isEject=!0,this.isHide=!0,this.showbanner=!0,this.className="",this.isMuti=!1,this.showbanner=!1,this.onConstructor()}checkActive(t){}getUIName(){return A.uiName}onConstructor(){}onInit(){this.contentPane&&this.contentPane.setSize(fairygui.GRoot.inst.width,fairygui.GRoot.inst.height),this.setPivot(.5,.5,!1)}doShowAnimation(){if(!this.isEject)return;super.doShowAnimation(),Laya.Tween.clearTween(this),this.scaleX=this.scaleY=.8;(t=>{Laya.Tween.to(this,{scaleX:1.1,scaleY:1.1},100,Laya.Ease.linearIn,Laya.Handler.create(this,t))})(t=>{Laya.Tween.to(this,{scaleX:1,scaleY:1},60,Laya.Ease.linearOut,Laya.Handler.create(this,this.refresh))})}show(...t){super.show(),this._openParam=t,this.isHide=!1,vo.uiMgr.checkUIState()}moveBannerButton(){}showBannerButton(){this.bannerButton.visible=!0,Laya.Tween.to(this.bannerButton,{alpha:1},500,Laya.Ease.linearOut,Laya.Handler.create(this,()=>{this.bannerButton.touchable=!0}))}hide(){super.hide(),this.isHide=!0,vo.uiMgr.checkUIState()}Dispose(){super.dispose()}myUpdate(t){}refresh(){}addUIClick(t,e,i=null){t.onClick(this,e,i),t.onClick(this,this.playBtnSound)}offUIClick(t,e){t.offClick(this,e)}playBtnSound(){vo.soundMgr.playSound(vo.common.btnClickStr)}}A.lastShowBanner=0,A.showBannerNum=0,A.uiName="";class G extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIDraw")}onConstruct(){this.n1=this.getChild("n1"),this.extraNode=this.getChild("extraNode"),this.myNode=this.getChild("myNode"),this.closeNode=this.getChild("closeNode"),this.moneyNode=this.getChild("moneyNode"),this.n38=this.getChild("n38"),this.secretary=this.getChild("secretary"),this.drawBtn=this.getChild("drawBtn"),this.talkNode=this.getChild("talkNode"),this.t0=this.getTransition("t0")}}G.URL="ui://isxx5ak7wcn5v4ke";class H extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIBox")}onConstruct(){this.n0=this.getChild("n0"),this.n12=this.getChild("n12"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.bar=this.getChild("bar"),this.closeBtn=this.getChild("closeBtn"),this.openBtn=this.getChild("openBtn"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}H.URL="ui://isxx5ak7erstv4nm";class F extends A{constructor(){super(),this.boxNum=0,this.boxMax=10,this.inAd=!1,this.isClose=!1}onConstructor(){this.ui=H.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.onCloseBox),this.addUIClick(this.ui.openBtn,this.onOpenBox),Laya.timer.loop(1e3,this,this.update)}update(){this.boxNum>0&&this.boxNumthis.boxMax&&(this.boxNum=this.boxMax),this.ui.bar.value=10*this.boxNum}show(){super.show(),this.isClose=!1,this.boxNum=0,this.inAd=!1,this.upBar(),this.ui.t0.play(),this.ui.closeBtn.visible=!1,Laya.timer.once(3e3,this,()=>{this.ui.closeBtn.visible=!0,this.ui.bar.alpha=1}),Laya.timer.once(500,this,()=>{this.ui.t1.play()})}hide(){Laya.timer.clearAll(this),Moyu.showBannerAd(!1),super.hide()}onOpenBox(){this.boxNum++,this.boxNum{this.getAward()},N.box),this.upBar()}onCloseBox(){this.isClose?this.hide():W.getRand()1?(this.closeTime--,this.ui.myNode.txtTime.text=this.closeTime.toString()):this.hide()}hide(){Laya.timer.clearAll(this),Moyu.showBannerAd(!1),super.hide(),vo.common.gameMgr.gamePause=!1}onTry(){Moyu.showVideoAd(()=>{let t=vo.common.curPlayerSkillType;To.gameData.trySkill=t,To.gameData.tryTime=Laya.timer.currTimer+3e5,To.saveGameData(),To.setBigSkill(t,1),vo.showTip("Trial Successful"),this.hide()},N.try)}onCancel(){if(this.closeNum>0)return this.closeNum--,void(this.closeNum<2&&this.hide());W.getRand()this.forceVideoGap&&this.rand100(this.forceVideoRate)?(this.lastVt=Laya.timer.currTimer,!0):(this.rand100(this.fullVideoRate)&&Moyu.showInsertAd(0,0,"full"),!1)}static showVideo(t,e){Moyu.showVideoAd(()=>{this.lastVt=Laya.timer.currTimer,t&&t()},e)}static showInsert(t=!1){if(this.getRand()0?Laya.timer.once(e,this,this.bannerShow,[!0]):this.bannerShow(!0),i>0&&Laya.timer.once(i,this,this.bannerShow,[!1])):Moyu.showBannerAd(!1)}static bannerShow(t){Moyu.showBannerAd(t),console.log("showBanner"+t)}static getRand(){return vo.tools.random(0,100)}static openBox(){this.getRand(){o.offAll(Laya.Event.STOPPED),n&&n(o)}),o}createSpine(t,e,i=1){let s;return(s=this.templet.buildArmature(i)).showSkinByIndex(0),e.addChild(s),s.pos(t.x,t.y),s.scale(t.scaleX,t.scaleY,!0),s}}!function(t){t[t.none=0]="none",t[t.idle=1]="idle",t[t.reset=2]="reset",t[t.move=3]="move",t[t.wait=4]="wait",t[t.select=5]="select",t[t.turn=6]="turn",t[t.shoot=7]="shoot",t[t.leave=8]="leave"}(j||(j={}));class z{constructor(){this.dtime=30,this.awayTime=0,this.awayNum=0,this.hideTime=0,this.rootMoveTime=0,this.isGuide=!1,this.state=j.none,this.waitTime=0,this.forceNum=0,this.forceMax=0,this.ballSize=33,this.selectNum=0,this.destRot=0,this.aiLv=10,this.kickBall=[],this.lineBall=[],this.scoreBall=[],this.holeBall=[],this.turnNum=0,this.setNum=0,this.setMax=0,this.setRate=0,this.rectL=0,this.rectR=0,this.rectT=0,this.rectB=0,this.rootPos={x:0,y:0},this.bestForce=0,this.bestAngle=180,this.bestPos={x:0,y:0},this.bestKick={x:0,y:0},this.posList=[],this.posIdx=0,this.chatTime=3e3,this.tempDir1=new Laya.Vector2,this.tempDir2=new Laya.Vector2,this.tempDir3=new Laya.Vector2,Laya.timer.loop(this.dtime,this,this.onUpdate),vo.eventMgr.off(r,this,this.resetAI),vo.eventMgr.on(r,this,this.resetAI),this.gameSrc=vo.common.gameUI,this.hideTime=Laya.timer.currTimer,Moyu.setOnTipCall(t=>{20012==t&&(this.hideTime=Laya.timer.currTimer);{let t=Laya.timer.currTimer-this.hideTime;console.log("onshow"+t),t>3e4&&this.state>j.none&&vo.common.gameMgr.aiGameEnd(!1)}},this)}init(){this.isGuide=To.getSkillGuide()<1||To.gameData.gameCount<1,this.awayTime=vo.tools.random(5e3,1e4),this.awayNum=0,this.hideTime=Laya.timer.currTimer;let t=vo.common.d2World.borderRect;if(this.rectL=Math.ceil(t.x)+17,this.rectT=Math.ceil(t.y)+17,this.rectR=Math.floor(t.x+t.width)-17,this.rectB=Math.floor(t.y+t.height)-17,this.wBall=vo.common.d2World.rootBall,this.ballSize=this.wBall.gameObj.width-1,this.posList.length<1){let t=40;for(let e=this.rectL;e0||!vo.common.gameMgr.ensureBallType))continue;let n=s.gameObj,a=this.rootPos,o=a.x-n.x,h=a.y-n.y;if(s.borderDis=vo.tools.random(0,100),this.kickBall.push(s),!this.isLine(a,s))continue;s.kickAngle=vo.tools.random(90,180),s.kickPos.x=n.x,s.kickPos.y=n.y,this.lineBall.push(s);let l=999999,r=!1;for(let t=0;t=0&&i.x>n.x+100)&&!(o<=0&&i.x10&&i.y>a.y||this.isBlock(s.number,n.x,n.y,i.x,i.y))){let t=vo.tools.getDeltaxy(n.x,n.y,i.x,i.y);if(t1&&(a=1),s.kickAngle=57.3*Math.acos(a),(n.xthis.rectR-2||n.ythis.rectB-2)&&(t*=2),Math.abs(i.x-600)<100&&(t+=50),s.hard=t+3*s.kickAngle,r=!0}}}}r&&(this.scoreBall.push(s),this.holeBall.push(s))}this.scoreBall.sort(function(t,e){return t.hard-e.hard}),this.holeBall.sort(function(t,e){return t.kickAngle-e.kickAngle}),this.kickBall.sort(function(t,e){return t.borderDis-e.borderDis})}else{let e=t.length-1,i=vo.tools.random(0,e);for(;i<=e;i++){let s=t[i>=e?i-=e:i];if(s&&0!=s.number){s.kickAngle=vo.tools.random(90,180),s.kickPos.x=s.gameObj.x+vo.tools.random(-10,10),s.kickPos.y=s.gameObj.y+vo.tools.random(-10,10),this.lineBall.push(s);break}}}}selectBall(){let t=null;this.destRot=0;let e=this.isGuide?1:3-Math.ceil(this.aiLv/4)+vo.tools.random(0,2),i=110-10*this.aiLv,s=.005*vo.tools.random(-i,i),n=!1;if(this.scoreBall.length<1)if(this.lineBall.length<1)for(let t=0;t0&&l>0){let t=0,i=o.y-a.y,s=o.x,n=a.y-i;e.push({order:h,bx:0,by:a.y,spx:s,spy:n,dlenx:t,dleny:i})}if(h=a.y+a.height-n.y-20,l=a.y+a.height-o.y-50,h>0&&l>0){let t=0,i=a.y+a.height-o.y,s=o.x,n=a.y+a.height+i;e.push({order:h,bx:0,by:a.y+a.height,spx:s,spy:n,dlenx:t,dleny:i})}if(h=n.x-a.x-20,l=o.x-a.x-50,h>0&&l>0){let t=o.x-a.x,i=0,s=a.x-t,n=o.y;e.push({order:h,bx:a.x,by:0,spx:s,spy:n,dlenx:t,dleny:i})}if(h=a.x+a.width-n.x-20,l=a.x+a.width-o.x-50,h>0&&l>0){let t=a.x+a.width-o.x,i=0,s=a.x+a.width+t,n=o.y;e.push({order:h,bx:a.x+a.width,by:0,spx:s,spy:n,dlenx:t,dleny:i})}e.sort(function(t,e){return t.order-e.order});for(let t=0;t1&&(r=1);let c=Math.acos(r);c>1.57?c=1.57:c<.01&&(c=.01);let d=Math.tan(c),u=d*a.dleny,g=d*a.dlenx,m=a.bx>0?a.bx:o.x+(h>0?-u:u);if(Math.abs(m-667)<40)continue;let y=a.by>0?a.by:o.y+(l>0?-g:g);if(!this.isBlock(0,o.x,o.y,m,y)&&!this.isBlock(i.number,n.x,n.y,m,y)){let t=Math.abs(a.dlenx)+Math.abs(a.dleny)+vo.tools.getDistance(m,y,i.gameObj.x,i.gameObj.y);return this.forceMax=.08*t,this.destRot+=.1*s,this.setKick(m,y),!0}}}else t=vo.common.getRandArrEle(this.lineBall);else{for(let e=0;e=e){let e=t.gameObj.x,i=t.gameObj.y,a=0;if(n){e=t.kickPos.x,i=t.kickPos.y,this.tempDir2=vo.tools.getV2Dir(this.wBall.gameObj.x,this.wBall.gameObj.y,e,i,this.tempDir2),this.tempDir3=vo.tools.getV2Dir(e,i,t.gameObj.x,t.gameObj.y,this.tempDir3);let n=Laya.Vector2.dot(this.tempDir3,this.tempDir2);if(n>1&&(n=1),(a=57.3*Math.acos(n))>45){let n=t.kickPos.x-t.gameObj.x,a=t.kickPos.y-t.gameObj.y;e=t.kickPos.x-n*s*.3,i=t.kickPos.y-a*s*.3}else this.destRot+=s}else 0!=t.poleAngle&&(this.destRot+=t.poleAngle);if(0==vo.common.gameMode){let e=.08*a;this.forceMax=.1*t.hard+e*e}this.setKick(e,i)}else{let i=5*this.aiLv+40;t=vo.tools.random(0,100)0?vo.common.getRandArrEle(this.scoreBall):vo.common.getRandArrEle(vo.common.d2World.ballArr),i=3*this.aiLv+40+20*this.selectNum,vo.tools.random(0,100)>i&&(this.selectNum=e),this.setState(j.select,vo.tools.random(500,1e3)),this.selectNum++}t.onClick(0,!0)}isBlock(t,e,i,s,n,a=-1){this.tempDir1=vo.tools.getV2Dir(e,i,s,n,this.tempDir1);let o=vo.common.d2World.ballArr,h=vo.tools.getDis(s,n,e,i);for(let s=0;sh)continue;this.tempDir2=vo.tools.getV2Dir(e,i,n.gameObj.x,n.gameObj.y,this.tempDir2);let r=Laya.Vector2.dot(this.tempDir1,this.tempDir2);if((r>1&&(r=1),!(r<0))&&Math.sin(Math.acos(r))*l180&&(t>180&&(t-=360),this.destRot>180&&(this.destRot-=360));let s=5*this.turnNum+5*this.aiLv;if(i<.2&&vo.tools.random(0,100)3?s=1+vo.tools.random(2,6)*i*.01:Math.random()>.6&&(s=.1*vo.tools.random(1,10)),s=e>0?-s:s,vo.common.d2World.d2Gan.rotDest(t+s)}}setKick(t,e){this.forceMax+=.1*this.wBall.getDestDis({x:t,y:e}),this.tempDir2=vo.tools.getV2Dir(this.wBall.gameObj.x,this.wBall.gameObj.y,t,e,this.tempDir2),this.tempDir1.x=0,this.tempDir1.y=1,this.tempDir2.y=-this.tempDir2.y;let i=Laya.Vector2.dot(this.tempDir1,this.tempDir2);i>1&&(i=1);let s=57.3*Math.acos(i);this.tempDir2.x<0&&(s=360-s),this.destRot+=s,vo.common.gameMgr.finishOneShoot||(this.forceMax+=vo.tools.random(10,50),this.forceMax-=2*this.aiLv,this.forceMax<20&&(this.forceMax=20)),this.forceMax>100?this.forceMax=101:this.forceMax<10&&(this.forceMax+=vo.tools.random(0,10)),1==vo.common.gameMode?this.forceMax=vo.tools.random(80,100):this.forceMax=vo.tools.random(.5*this.forceMax,this.forceMax);let n=2e3-100*this.aiLv;Math.random()>.8&&(n+=vo.tools.random(100,2e3)),this.setState(j.turn,vo.tools.random(500,n))}shoot(){if(this.waitTime<0&&Math.abs(this.forceNum-this.forceMax)<4)Math.random()>.8&&(this.gameSrc.aiForce(1),this.setState(j.wait));else{let t=vo.tools.random(3,8);this.forceNum387&&(this.rootPos.x=387),this.rootPos.xthis.rectR&&(this.rootPos.x=this.rectR),this.rootPos.ythis.rectB&&(this.rootPos.y=this.rectB),this.posIdx++;let e=this.posList.length;this.posIdx>=e&&(this.posIdx-=e),this.initHoleBall();let i=null;this.scoreBall.length>0?i=this.scoreBall[0]:this.lineBall.length>0&&(i=vo.common.getRandArrEle(this.lineBall)),i&&i.kickAngle=this.setMax&&(this.setMax=0),this.setRate<1&&(this.setState(j.move,0),this.rootMoveTime=Laya.timer.currTimer,this.gameSrc.aiRootMove(!0))}delayLine(){this.gameSrc.aiRootMove(!1)}move(){this.bestPos.x<1&&(this.bestPos=this.rootPos);let t=this.wBall.gameObj,e=t.x,i=t.y,s=Math.abs(e-this.bestPos.x),n=Math.abs(i-this.bestPos.y),a=3+.03*s,o=3+.03*n;if(s<4&&n<4){let t=Laya.timer.currTimer-this.rootMoveTime;if(t=t<1e3?1e3-t:0,this.setMax>0){let t=.3*this.setMax+5*this.aiLv;this.setRate=vo.tools.random(t,this.setMax),this.setState(j.reset,0)}else this.destRot=0,this.forceMax=this.bestForce,this.setKick(this.bestKick.x,this.bestKick.y);t>100?(Laya.timer.clear(this,this.delayLine),Laya.timer.once(t,this,this.delayLine)):this.gameSrc.aiRootMove(!1)}else s>4&&(e=t.x4&&(i=t.y.8&&(e+=vo.tools.random(100,1e3)),this.isGuide?this.setState(j.select,500):this.onAway(2)?this.setState(j.reset,vo.tools.random(400,e)):this.setState(j.none),vo.common.gameMgr.finishOneShoot&&this.chat()}runAI(){this.state>j.idle||(this.initBall(),this.onGame(2500),Math.random()>.6&&this.chat())}stopRun(){this.setState(j.idle)}onGame(t){let e=t-100*this.aiLv;Math.random()>.8&&(e+=vo.tools.random(100,1e3)),this.onAway(2)?this.setState(j.select,vo.tools.random(500,e)):this.setState(j.none)}setState(t,e=0){this.state!=j.none&&(this.state=t,this.waitTime=e)}onUpdate(){if(this.state!=j.none)if(this.awayTime-=this.dtime,this.awayTime<1&&(this.awayTime=vo.tools.random(6e3,1e4),this.awayNum+=11-this.aiLv,this.onAway(1)),this.waitTime>=0)this.waitTime-=this.dtime;else switch(this.state){case j.idle:this.chat();break;case j.reset:this.reset();break;case j.move:this.move();break;case j.leave:this.state=j.none,vo.common.gameMgr.aiGameEnd(!0);break;case j.select:this.selectBall();break;case j.turn:this.turnPole();break;case j.shoot:this.shoot()}}onAway(t){if(1==t){let t=vo.common.gameMgr.aiBallArr.length-vo.common.gameMgr.selfBallArr.length,e=this.awayNum+20*t;t>0&&e>0&&vo.tools.random(0,1e4)0)return void(this.chatTime-=this.dtime);this.chatTime=vo.tools.random(2e3,1e4);let t=vo.tools.random(0,100);t<15?this.talk():t<35&&this.emotion()}talk(){vo.common.talkMgr.showAITalk(0)}emotion(){vo.common.talkMgr.showAIEmotion(0)}resetAI(){this.stopRun(),this.state=j.none}}class K extends Laya.Script3D{constructor(){super(),this.duration=2e3}onAwake(){this.gameObj=this.owner}onEnable(){this.openTimer()}openTimer(){Laya.timer.once(this.duration,this,this.disappear)}setCallback(t,e){this.obj=t,this.callback=e,Laya.timer.clearAll(this),Laya.timer.once(this.duration,this,this.disappear)}disappear(){vo.poolD3Mgr.putItem(this.gameObj.name,this.gameObj),this.callback&&this.callback(this.obj)}}class q extends Laya.Script3D{constructor(){super(),this.posV3=new Laya.Vector3,this.rotRate=2.1,this.rotSpeed=new Laya.Vector3,this.myIndex=0}onAwake(){this.gameObj=this.owner,this.transform=this.gameObj.transform,this.ballNode=this.gameObj.getChildByName("Ball"),this.shadowNode=this.gameObj.getChildByName("shadow")}initSelf(t,e,i,s){this.d2BallSrc=s,this.myIndex=t,this.setAlbedoTexture(),this.setTransPos(e,i),this.setScale(),this.ballNode.transform.localRotationEulerX=90}setAlbedoTexture(t=!1){let e;e=t?"res/d3Res/ballTexture/ice.jpg":`res/d3Res/ballTexture/ball${this.myIndex}.png`,Laya.Texture2D.load(e,Laya.Handler.create(this,t=>{this.ballNode.meshRenderer.material.albedoTexture=t}))}runFireworks(t,e,i){Laya.timer.clearAll(this),Laya.timer.once(e+1,this,()=>{let e=vo.poolD3Mgr.getItem(C.fireworksEft);e.transform.localPositionX=this.transform.localPositionX,e.transform.localPositionY=this.transform.localPositionY,e.transform.localPositionZ=this.transform.localPositionZ;let s=e.getComponent(K);s.duration=1e3,s.setCallback(t,i);let n=vo.poolD3Mgr.getItem(C.hitEft);n.transform.localPositionX=this.transform.localPositionX,n.transform.localPositionY=this.transform.localPositionY,n.transform.localPositionZ=this.transform.localPositionZ})}setTransPos(t,e){this.setRotation(),vo.common.pos2to3Convert(t,e,this.posV3),this.transform.localPositionX=this.posV3.x,this.transform.localPositionY=0,this.transform.localPositionZ=this.posV3.z,this.transform.localRotationEulerX=0,this.transform.localRotationEulerY=0,this.transform.localRotationEulerZ=0,this.shadowNode.transform.localPositionX=this.posV3.x/30,this.shadowNode.transform.localPositionY=.1,this.shadowNode.transform.localPositionZ=this.posV3.z/30}setRotation(){if(this.d2BallSrc.canRot){let t=this.d2BallSrc.rigy.linearVelocity;this.rotSpeed.x=t.x*this.rotRate,this.rotSpeed.z=t.y*this.rotRate,this.rotSpeed.y=this.d2BallSrc.rotY,this.ballNode.transform.rotate(this.rotSpeed,!1,!1)}else Math.abs(this.d2BallSrc.rotY)>.1&&(this.rotSpeed.x=this.rotSpeed.y=0,this.rotSpeed.y=this.d2BallSrc.rotY,this.ballNode.transform.rotate(this.rotSpeed,!1,!1))}setScale(){let t=vo.common.d2World.rootBall.ui.width,e=vo.common.scale2to3Convert(t);this.transform.localScaleX=e,this.transform.localScaleY=e,this.transform.localScaleZ=e}playInHoleEft(){vo.poolD3Mgr.getItem(C.inHoleEft).transform.position=this.transform.position}playIceEft(){vo.poolD3Mgr.getItem(C.iceEft).transform.position=this.transform.position}get scaleXYZ(){return this.transform.localScaleX}set scaleXYZ(t){this.transform.localScaleX=t,this.transform.localScaleY=t,this.transform.localScaleZ=t}get posX(){return this.transform.localPositionX}set posX(t){this.transform.localPositionX=t}get posY(){return this.transform.localPositionY}set posY(t){this.transform.localPositionY=t}get posZ(){return this.transform.localPositionZ}set posZ(t){this.transform.localPositionZ=t}destroySelf(){this.posV3=null,this.rotSpeed=null,this.d2BallSrc=null,this.ballNode=null,this.gameObj.destroy(!0),this.transform=null,this.destroy()}}class Z extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","D2Ball")}onConstruct(){this.myIcon=this.getChild("myIcon"),this.inner=this.getChild("inner"),this.n8=this.getChild("n8"),this.n4=this.getChild("n4"),this.wrongTips=this.getChild("wrongTips"),this.rightTips=this.getChild("rightTips"),this.breathAni=this.getTransition("breathAni")}}Z.URL="ui://isxx5ak7kt443qi";class $ extends Laya.Script{constructor(){super(),this.number=0,this.startX=0,this.startY=0,this.angleV2=new Laya.Vector2,this.isRootBall=!1,this.isBlackBall=!1,this.ballType="",this.canRot=!0,this.rotY=0,this.poleAngle=0,this.kickPos={x:0,y:0},this.hard=0,this.kickAngle=0,this.borderDis=0,this.speedP10=5.6,this.lastSpeed={x:0,y:0},this.stillSpeed=.12,this.ballFunc="normal",this.isRunSkillAni=!1,this.isInHole=!1,this.iceOwner="",this.forceRun=!1,this.myUNID="",this.rectL=0,this.rectR=0,this.rectT=0,this.rectB=0,this.forceVec=new Laya.Vector2,this.lastDis=0,this.helpOut={type:"",x:0,y:0}}initSelf(t,e,s,n){this.gameObj||(this.gameObj=this.owner),this.number=t,this.startX=e,this.startY=s,this.d3Ball=n,this.isRootBall=!1,this.isBlackBall=!1,this.ballType="",0==t?this.isRootBall=!0:8==t?this.isBlackBall=!0:this.ballType=t<=7?i.full:i.flower,this.setInfo(),this.setD3Ball(),this.owner.mySrc=this,this.rigy.linearDamping=1,$._unid++,this.myUNID="d2ball"+$._unid;let a=vo.common.d2World.borderRect;this.rectL=Math.ceil(a.x)+20,this.rectT=Math.ceil(a.y)+20,this.rectR=Math.floor(a.x+a.width)-20,this.rectB=Math.floor(a.y+a.height)-20}setInfo(){this.gameObj.x=this.startX,this.gameObj.y=this.startY;let t=this.ui.width/2;this.gameObj.width=2*t,this.gameObj.height=2*t,vo.common.showDebug?(this.ui.myIcon.alpha=1,this.ui.inner.alpha=1):(this.ui.myIcon.alpha=0,this.ui.inner.alpha=0)}setD3Ball(){this.d3Ball=this.d3Ball,this.d3BallSrc=this.d3Ball.getComponent(q),this.d3BallSrc.initSelf(this.number,this.startX,this.startY,this)}onUpdate(){vo.common.gameMgr.gamePause||this.isInHole||vo.common.d2World.openCheckStill&&this.runBall()}runBall(){this.lastSpeed.x=this.rigy.linearVelocity.x,this.lastSpeed.y=this.rigy.linearVelocity.y,this.d3BallSrc.setTransPos(this.gameObj.x,this.gameObj.y),this.judgeBorder()}getDestDis(t){return vo.tools.getDistance(t.x,t.y,this.gameObj.x,this.gameObj.y)}setmyXY(t,e){this.d3BallSrc.setTransPos(t,e)}getSpeed(){let t=this.rigy.linearVelocity;return t.x*t.x+t.y*t.y}onTriggerEnter(t){if(!t||!t.owner)return;let e="collide",i=this.getSpeed(),s=this.speedP10*this.speedP10;if("ball"==t.label){if(i<9&&0!=this.number?e="":ithis.rectR||this.gameObj.ythis.rectB)&&t.owner){let e=t.owner.getComponent($);Math.abs(e.rigy.linearVelocity.x)>0&&(e.lastSpeed.x=e.rigy.linearVelocity.x),Math.abs(e.rigy.linearVelocity.y)>0&&(e.lastSpeed.y=e.rigy.linearVelocity.y);let i=Math.abs(.4*e.lastSpeed.x),s=Math.abs(.5*e.lastSpeed.y),n=0,a=0;this.gameObj.xthis.rectR?n=-i:this.gameObj.ythis.rectB&&(a=-s),this.rigy.applyLinearImpulseToCenter({x:n,y:a})}if(0!=this.number)return;this.forceRun&&(console.log("randon force"),this.applyForce(t)),vo.common.d2World.isOnSameLine&&(vo.common.d2World.isOnSameLine=!1,this.rigy.linearVelocity={x:0,y:0}),null==vo.common.gameMgr.firstColliObj&&(vo.common.gameMgr.firstColliObj=t.owner.mySrc.number,vo.common.gameMgr.isTouchedBall=!0)}else{vo.common.recoverCameraView();let t="";i<9||i{vo.common.gameUI.ui.whiteAni.visible=!1}))):(vo.common.playClassicEmotion(this.number,this.gameObj.x,this.gameObj.y),vo.common.d2World.removeOneBall(this),this.destroySelf(),vo.common.playHappySound(this.number),this.runFlyEft())}runFlyEft(){vo.common.gameMode==f.placeBall&&vo.common.gameMgr.placeBallData.type==w.challenge&&vo.common.playAwardSpine(this.gameObj.x+100,this.gameObj.y-100)}hideSelf(){this.d3Ball&&(this.d3Ball.active=!1)}showSelf(){this.isInHole=!1,this.d3Ball&&!this.d3Ball.active&&(this.d3Ball.active=!0)}isStill(){let t=this.rigy.linearVelocity;return Math.abs(t.x)<=this.stillSpeed&&Math.abs(t.y)<=this.stillSpeed&&(this.rigy.linearVelocity={x:0,y:0},!0)}reset(){}destroySelf(){this.d3BallSrc.destroySelf(),this.ui.isDisposed||(this.ui.removeFromParent(),this.ui.dispose(),this.ui=null),this.outColli=null,this.innerColli=null,this.rigy=null,this.d3Ball=null,this.d3BallSrc=null,this.angleV2=null,this.gameObj.destroy(!0),this.destroy()}judgeBorder(){if(this.forceRun&&this.owner==vo.common.d2World.rootBall.owner)return;if(this.destroyed)return;if(vo.common.gameMode==f.classic)return;vo.common.checkBallOverBorder(this.gameObj.x,this.gameObj.y)&&this.checkWrongBall()}onClick(t,e=!1){if(0==this.number)return;if(e);else{if(vo.common.d2World.openCheckStill)return;if(!vo.common.gameMgr.selfTurn)return}if(!vo.common.gameMgr.finishOneShoot)return;let i=vo.common.d2World.rootBall.gameObj,s=this.gameObj.x-i.x,n=this.gameObj.y-i.y,a=vo.common.getfguiRotation(s,n);vo.common.d2World.d2Gan.ui.rotation=a,vo.common.d2World.getHelpLine(),vo.common.clickedBall=!0,this.checkGuide()}checkGuide(){0==To.getSkillGuide()&&vo.common.gameMode==f.bigMove&&0==vo.common.guideStep&&(vo.common.guideStep++,vo.common.gameUI.ui.guide1.visible=!1,vo.common.gameUI.ui.guide2.visible=!0)}checkDistance(t,e,i){let s=this.gameObj.width-1,n=Math.pow(t-this.gameObj.x,2)+Math.pow(e-this.gameObj.y,2);if(this.lastDis){if(n>this.lastDis)return this.helpOut.type="remove",this.helpOut}else this.lastDis=n;if(n<=Math.pow(s,2)){let n=.01,a=0,o=t-this.gameObj.x,h=e-this.gameObj.y;for(;Math.pow(s,2)-(o*o+h*h)>.01;)a+=n,o=t-this.gameObj.x-a*Math.sin(i*Math.PI/180),h=e-this.gameObj.y-a*-Math.cos(i*Math.PI/180);return this.helpOut.type="ok",this.helpOut.x=o+this.gameObj.x,this.helpOut.y=h+this.gameObj.y,this.helpOut}return this.helpOut.type="no",this.helpOut}clearBallEft(){this.clearBallRightEft(),this.clearBallWrongEft()}clearBallRightEft(){this.ui.breathAni.stop(),this.ui.rightTips.visible=!1}clearBallWrongEft(){this.ui.wrongTips.visible=!1}showWrongEft(){vo.common.gameMgr.selfTurn&&(this.ui.wrongTips.visible=!0)}showRightEft(){vo.common.gameMgr.selfTurn&&(this.ui.rightTips.visible=!0,this.ui.rightTips.scaleX=1,this.ui.rightTips.scaleY=1,this.ui.breathAni.play())}setBallFunc(t,e){"ice"==t?(this.ballFunc=t,this.d3BallSrc.setAlbedoTexture(!0),this.rigy.type="static",this.iceOwner=e):e==this.iceOwner&&(this.ballFunc=t,this.d3BallSrc.setAlbedoTexture(!1),this.rigy.type="dynamic")}}$._unid=0;class J extends ${constructor(){super(),this.maxSpeed=0,this.classicMaxSpeed=2.2,this.bigSkillMaxSpeed=4,this.angle=0,this.allPercent=0,this.linearPercent=0,this.anglePercent=0,this.maxAngleRate=.6,this.baseRot=7,this.angleMax=0,this.speed=new Laya.Vector2,this.rotSpeed=new Laya.Vector2}isStill(){let t=this.rigy.linearVelocity;return Math.abs(t.x)<=this.stillSpeed&&Math.abs(t.y)<=this.stillSpeed&&!this.forceRun&&this.anglePercent<=.1&&(this.rigy.linearVelocity={x:0,y:0},!0)}reset(){this.linearPercent=0,this.anglePercent=0}setSpeed(t,e){this.allPercent=t,this.angle=e,this.setAngleSpeed(),this.setLinearSpeed();let i="hit";t<25?i="hit03":t<50?i="hit02":t<75&&(i="hit01"),vo.soundMgr.playSound(i)}setAngleSpeed(){let t=vo.common.rodOffest,e=.5*Math.abs(t.y/82);t.y>0?this.angleMax=2*-this.baseRot:this.angleMax=this.baseRot,this.rotY=-t.x/82*100,this.anglePercent=this.maxAngleRate*e*this.allPercent,this.linearPercent=this.allPercent-this.anglePercent}setLinearSpeed(){if(vo.common.gameMode==f.classic&&3==To.getChallengeTimes()&&vo.common.gameMgr.selfTurn&&vo.common.gameMgr.aiBallArr.length<=2&&vo.common.gameMgr.ensureBallType&&!vo.common.longHelpLine){let t=-150+vo.common.randomNum(0,300);t/=100,this.angle+=t}let t=Math.sin(this.angle*Math.PI/180),e=Math.cos(this.angle*Math.PI/180);switch(vo.common.gameMode){case f.classic:this.maxSpeed=this.classicMaxSpeed;break;case f.bigMove:this.maxSpeed=this.bigSkillMaxSpeed;break;case f.placeBall:1==cfgTable.placeballData[vo.common.placeBallCurLevel].type?this.maxSpeed=this.bigSkillMaxSpeed:this.maxSpeed=this.classicMaxSpeed}this.speed.x=this.maxSpeed*this.linearPercent*t,this.speed.y=-this.maxSpeed*this.linearPercent*e,this.rotSpeed.x=-this.angleMax*t*this.anglePercent,this.rotSpeed.y=this.angleMax*e*this.anglePercent,this.rigy.applyLinearImpulseToCenter(this.speed)}onUpdate(){if(this.anglePercent>.1){this.anglePercent*=.97,this.rotSpeed.x=-this.angleMax*Math.sin(this.angle*Math.PI/180)*this.anglePercent,this.rotSpeed.y=this.angleMax*Math.cos(this.angle*Math.PI/180)*this.anglePercent,this.rigy.applyForceToCenter(this.rotSpeed),Laya.Vector2.normalize(this.rigy.linearVelocity,this.speed),Laya.Vector2.normalize(this.rotSpeed,this.rotSpeed),Laya.Vector2.dot(this.speed,this.rotSpeed)>.9&&(this.canRot=!0)}else this.canRot=!0;Math.abs(this.rotY)>.1&&(this.rotY*=.98),super.onUpdate()}destroySelf(){super.destroySelf(),this.speed=null}}class Q extends Laya.Sprite{constructor(t=!1){super(),this.ui=Z.createInstance(),this.pivotX=this.ui.width/2,this.pivotY=this.ui.width/2,this.x=0,this.y=0,this.addChild(this.ui.displayObject),this.ui.displayObject.x+=this.ui.width/2,this.ui.displayObject.y+=this.ui.width/2,this.d2Src=t?this.addComponent(J):this.addComponent($),this.d2Src.ui=this.ui,this.addCircleCollider(),this.addInnerCircleCollider(),this.addRigyBody()}addCircleCollider(){let t=vo.common.getCollider("circle");t.radius=this.ui.width/2,this.addComponentIntance(t),this.d2Src.outColli=t,t.label="ball"}addInnerCircleCollider(){let t=vo.common.getCollider("circle");t.radius=this.ui.inner.width/2,t.x=(this.ui.width-this.ui.inner.width)/2,t.y=(this.ui.width-this.ui.inner.width)/2,this.addComponentIntance(t),this.d2Src.innerColli=t,t.label="inner"}addRigyBody(){let t=vo.common.getRigbody();t.type="dynamic",this.addComponentIntance(t),this.d2Src.rigy=t}disposeSelf(){this.ui.isDisposed||(this.ui.dispose(),this.ui.removeFromParent(),this.ui=null)}}class tt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","D2Gan")}onConstruct(){this.myIcon=this.getChild("myIcon"),this.selfRodIcon=this.getChild("selfRodIcon"),this.selfEftRoot=this.getChild("selfEftRoot"),this.self=this.getChild("self"),this.aiRodIcon=this.getChild("aiRodIcon"),this.aiEftRoot=this.getChild("aiEftRoot"),this.ai=this.getChild("ai")}}tt.URL="ui://isxx5ak7sdh33qp";class et{constructor(){this.offset=.15,this.cell=1.5,this.onBallCell=.4,this.lastInfo={x:0,y:0,rotation:0},this.moveNum=70,this.rulerRate=.1,this.ui=tt.createInstance(),this.changeSelfRod(),this.changeAIRod()}changeSelfRod(){let t=To.getCurBallRod(),e=cfgTable.ballrodData[t+1];this.ui.selfEftRoot.displayObject&&this.ui.selfEftRoot.displayObject.destroyChildren(),this.selfMySpine&&this.selfMySpine.dispose(),this.ui.selfRodIcon.url=vo.common.getGameIconUrl(e.img),e.spine&&(this.ui.selfEftRoot.url=vo.common.getGameIconUrl(e.img),this.selfMySpine=new X(e.spine,()=>{let t={x:this.ui.selfEftRoot.width/2,y:this.ui.selfEftRoot.height/2,scaleX:1,scaleY:1};this.selfMySpine.play(t,0,!0,this.ui.selfEftRoot.displayObject).rotation=-90}))}changeAIRod(){let t=Object.keys(cfgTable.ballrodData).length,e=Math.floor(t*Math.random())+1,i=cfgTable.ballrodData[e];this.ui.aiEftRoot.displayObject&&this.ui.aiEftRoot.displayObject.destroyChildren(),this.aiMySpine&&this.aiMySpine.dispose(),this.ui.aiRodIcon.url=vo.common.getGameIconUrl(i.img),i.spine&&(this.ui.aiEftRoot.url=vo.common.getGameIconUrl(i.img),this.aiMySpine=new X(i.spine,()=>{let t={x:this.ui.aiEftRoot.width/2,y:this.ui.aiEftRoot.height/2,scaleX:1,scaleY:1};this.aiMySpine.play(t,0,!0,this.ui.aiEftRoot.displayObject).rotation=-90}))}setGanLastInfo(){this.lastInfo.rotation=this.ui.rotation,this.lastInfo.x=this.ui.x,this.lastInfo.y=this.ui.y}rotateSelf(t,e=!1){let i;t*=this.offset,i=vo.common.d2World.isHelpLineOnBall?t*this.onBallCell:t*this.cell,e&&(i*=this.rulerRate),this.ui.rotation+=i,vo.common.d2World.getHelpLine()}checkDistance(){let t=vo.common.d2World.targetBall,e=vo.common.d2World.rootBall;return null==t?1:Math.pow(t.gameObj.x-e.gameObj.x,2)+Math.pow(t.gameObj.y-e.gameObj.y,2)<=2500?5:1}rotDest(t){this.ui.rotation=t,vo.common.d2World.getHelpLine()}storagePower(t){let e=t/100*this.moveNum,i=-Math.sin(Math.PI*this.ui.rotation/180)*e,s=Math.cos(Math.PI*this.ui.rotation/180)*e;this.ui.x=this.lastInfo.x+i,this.ui.y=this.lastInfo.y+s}shoot(){this.storagePower(0),this.ui.visible=!1}destroySelf(){this.ui.selfEftRoot.displayObject&&this.ui.selfEftRoot.displayObject.destroyChildren(),this.ui.aiEftRoot.displayObject&&this.ui.aiEftRoot.displayObject.destroyChildren(),this.selfMySpine&&this.selfMySpine.dispose(),this.aiMySpine&&this.aiMySpine.dispose(),this.lastInfo=null,this.ui.isDisposed||(this.ui.removeFromParent(),this.ui.dispose())}}class it extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","HelpLine")}onConstruct(){this.n10=this.getChild("n10"),this.rect=this.getChild("rect"),this.dir11=this.getChild("dir11"),this.dir=this.getChild("dir"),this.rootDir=this.getChild("rootDir"),this.dirDot=this.getChild("dirDot")}}it.URL="ui://isxx5ak7sdh33qs";class st{constructor(){this.starX=0,this.starY=0,this.ui=it.createInstance(),vo.common.gameUI.ui.ballNode.addChild(this.ui),this.starX=this.ui.rect.x,this.starY=this.ui.rect.y}shoot(){this.ui.visible=!1}destroySelf(){this.ui.isDisposed&&(this.ui.removeFromParent(),this.ui.dispose())}}class nt extends Laya.Script{constructor(){super(),this.ballArr=[],this.openCheckStill=!1,this.checkArr=[],this.borderRect={x:169,y:179.25,width:996,height:495,openBallW:236},this.isHelpLineOnBall=!1,this.isOnSameLine=!1,this.reflectAngle=0,this.powerPercent=0,this.inHolesSpeed=[],this.outDir=new Laya.Vector2,this.rootDir=new Laya.Vector2,this.aiLv=0,this.rootPos=new Laya.Vector2,this.tempDir1=new Laya.Vector2,this.tempDir2=new Laya.Vector2,this.tempDir3=new Laya.Vector2,this.ballSize=33,this.destRot=0}initSelf(){this.createBalls(),vo.eventMgr.off(n,this,this.allBallStop),vo.eventMgr.on(n,this,this.allBallStop),vo.eventMgr.off(a,this,this.waitShoot),vo.eventMgr.on(a,this,this.waitShoot),vo.eventMgr.on(r,this,this.resetGame)}setBorderRect(){let t=vo.common.gameUI.ui,e=t.border.bar5.x+t.border.bar5.width/2,i=t.border.bar1.y+t.border.bar1.height/2,s=Math.abs(t.border.bar6.x-t.border.bar5.x-t.border.bar5.width),n=Math.abs(t.border.bar3.y-t.border.bar1.y-t.border.bar1.height);this.borderRect.x=e,this.borderRect.y=i,this.borderRect.width=s,this.borderRect.height=n}resetGame(){let t;this.openCheckStill=!1;for(let e=0;e0){let s=[];for(let t=0;t-1&&s.push(e[t]);t=this.selectBestEnterOne(s)}else t=this.selectBestEnterOne([s]);else t=this.selectBestEnterOne(e)}else t=this.selectBestEnterOne(e);break;case f.bigMove:t=this.selectBestEnterOne(e);break;case f.placeBall:e.length>0&&(t=this.selectBestEnterOne(e))}if(t&&!t.destroyed&&t.onClick){t.onClick(0,!0);let e=-200+vo.common.randomNum(0,400);e/=150,vo.common.longHelpLine&&(e=0),this.destRot+=e,vo.common.d2World.d2Gan.rotDest(this.destRot)}}removeOneBall(t){for(let e=0;e=0)if(s>0){if(nthis.borderRect.x)return t}judgeLeftRight(t,e,i){let s=-Math.cos(e*Math.PI/180),n=i+t*-Math.cos(e*Math.PI/180);if(t>=0)if(s>0){if(nthis.borderRect.y)return t}clearBallAllEft(){let t;for(let e=0;e-1&&t.showRightEft()}showBallWrongEft(){let t,e=vo.common.gameMgr,i=e.selfTurn?e.selfBallArr:e.aiBallArr;if(!(i.length<=0))for(let e=0;e0?t+=90:m<0&&(t-=90),this.d2HelpLine.ui.rootDir.visible=!0,this.d2HelpLine.ui.rootDir.x=this.d2HelpLine.starX,this.d2HelpLine.ui.rootDir.y=this.d2HelpLine.starY,this.d2HelpLine.ui.rootDir.rotation=t)}delayReflectLine(t,e){if(vo.common.gameMode!=f.placeBall&&!vo.common.gameMgr.selfTurn)return;this.isOnSameLine=!1;let i=t.gameObj.x,s=t.gameObj.y,n=this.getBorderDot(i,s,e);if(null==n)return void(this.d2HelpLine.ui.dirDot.visible=!1);this.d2HelpLine.ui.visible=!0;let a=i+n*Math.sin(e*Math.PI/180),o=s+n*-Math.cos(e*Math.PI/180),h=vo.common.isBlock(i,s,a,o,t);if(null==h)this.setDelayLine(a,o,t,e);else{let n=16,a=4*n*n-h.disVer*h.disVer;a=Math.sqrt(a);let o=h.disHon-a,l=h.dir,r=i+l.x*o,c=s+l.y*o;this.setDelayLine(r,c,t,e)}}setDelayLine(t,e,i,s){let n=t-i.gameObj.x,a=e-i.gameObj.y,o=Math.pow(n*n+a*a,.5);o<=0&&(o=0),this.d2HelpLine.ui.dir.height=o,this.d2HelpLine.ui.dirDot.visible=!0,this.d2HelpLine.ui.dirDot.x=17,this.d2HelpLine.ui.dirDot.y=17,this.d2HelpLine.ui.dirDot.x+=(o+34)*Math.sin(s*Math.PI/180),this.d2HelpLine.ui.dirDot.y+=(o+34)*-Math.cos(s*Math.PI/180)}changePlayerView(){if(Math.random()>=.7)return;if(!this.targetBall)return;if(!vo.common.gameMgr.selfTurn)return;switch(vo.common.gameMode){case f.classic:if(vo.common.gameMgr.selfBallArr.indexOf(this.targetBall.number)<=-1&&8!=this.targetBall.number)return;break;case f.bigMove:return;case f.placeBall:}let t=this.targetBall.gameObj.x,e=this.targetBall.gameObj.y,i=this.reflectAngle,s=this.getBorderDot(t,e,i),n=t+s*Math.sin(i*Math.PI/180),a=e+s*-Math.cos(i*Math.PI/180);if(vo.common.isBlock(t,e,n,a,this.targetBall))return;let o,h,l,r,c=vo.common.gameMgr.posObj;for(const s in c)if(o=c[s],l=t+(h=Math.pow((t-o.x)*(t-o.x)+(e-o.y)*(e-o.y),.5))*Math.sin(i*Math.PI/180),r=e+h*-Math.cos(i*Math.PI/180),(l-o.x)*(l-o.x)+(r-o.y)*(r-o.y)<40){vo.common.showOneCamera("angle"+s),vo.common.gameUI.ui.d2Node.alpha=0,Laya.physicsTimer.scale=.7;break}}selectBestEnterOne(t){return this.aiLv=vo.tools.random(1,11),this.aiLv=10,this.wBall=vo.common.d2World.rootBall,this.rootPos.x=this.wBall.gameObj.x,this.rootPos.y=this.wBall.gameObj.y,this.initHoleBall(t),this.selectBall()}selectBall(){let t=null;this.destRot=0;let e=110-10*this.aiLv,i=.005*vo.tools.random(-e,e),s=!1;if(this.scoreBall.length<1)if(this.lineBall.length<1)for(let t=0;t0&&l>0){let t=0,i=o.y-a.y,s=o.x,n=a.y-i;e.push({order:h,bx:0,by:a.y,spx:s,spy:n,dlenx:t,dleny:i})}if(h=a.y+a.height-n.y-20,l=a.y+a.height-o.y-50,h>0&&l>0){let t=0,i=a.y+a.height-o.y,s=o.x,n=a.y+a.height+i;e.push({order:h,bx:0,by:a.y+a.height,spx:s,spy:n,dlenx:t,dleny:i})}if(h=n.x-a.x-20,l=o.x-a.x-50,h>0&&l>0){let t=o.x-a.x,i=0,s=a.x-t,n=o.y;e.push({order:h,bx:a.x,by:0,spx:s,spy:n,dlenx:t,dleny:i})}if(h=a.x+a.width-n.x-20,l=a.x+a.width-o.x-50,h>0&&l>0){let t=a.x+a.width-o.x,i=0,s=a.x+a.width+t,n=o.y;e.push({order:h,bx:a.x+a.width,by:0,spx:s,spy:n,dlenx:t,dleny:i})}e.sort(function(t,e){return t.order-e.order});for(let t=0;t1&&(r=1);let c=Math.acos(r);c>1.57?c=1.57:c<.01&&(c=.01);let d=Math.tan(c),u=d*a.dleny,g=d*a.dlenx,m=a.bx>0?a.bx:o.x+(h>0?-u:u);if(Math.abs(m-667)<40)continue;let y=a.by>0?a.by:o.y+(l>0?-g:g);if(!this.isBlock(0,o.x,o.y,m,y)&&!this.isBlock(s.number,n.x,n.y,m,y)){let t=Math.abs(a.dlenx)+Math.abs(a.dleny)+vo.tools.getDistance(m,y,s.gameObj.x,s.gameObj.y);return this.forceMax=.08*t,this.destRot+=.1*i,this.setKick(m,y),!0}}}else t=vo.common.getRandArrEle(this.lineBall);else{for(let e=0;e1&&(e=1),(o=57.3*Math.acos(e))>45){let e=t.kickPos.x-t.gameObj.x,s=t.kickPos.y-t.gameObj.y;n=t.kickPos.x-e*i*.3,a=t.kickPos.y-s*i*.3}else this.destRot+=i}else 0!=t.poleAngle&&(this.destRot+=t.poleAngle);if(0==vo.common.gameMode){let e=.08*o;this.forceMax=.1*t.hard+e*e}return this.setKick(n,a),t}initHoleBall(t){this.kickBall=[],this.lineBall=[],this.scoreBall=[],this.holeBall=[],this.selectNum=0,this.forceNum=0,this.forceMax=0,this.turnNum=0;let e=t,i=vo.common.gameMgr.holePosList,s=vo.common.aiPlayer;for(let t=0;t=0&&e.x>a.x+100)&&!(h<=0&&e.x10&&e.y>o.y||this.isBlock(n.number,a.x,a.y,e.x,e.y))){let t=vo.tools.getDeltaxy(a.x,a.y,e.x,e.y);if(t1&&(o=1),n.kickAngle=57.3*Math.acos(o),(a.xs.rectR-2||a.ys.rectB-2)&&(t*=2),Math.abs(e.x-600)<100&&(t+=50),n.hard=t+3*n.kickAngle,c=!0}}}}c&&(this.scoreBall.push(n),this.holeBall.push(n))}this.scoreBall.sort(function(t,e){return t.hard-e.hard}),this.holeBall.sort(function(t,e){return t.kickAngle-e.kickAngle}),this.kickBall.sort(function(t,e){return t.borderDis-e.borderDis})}isBlock(t,e,i,s,n,a=-1){this.tempDir1=vo.tools.getV2Dir(e,i,s,n,this.tempDir1);let o=vo.common.d2World.ballArr,h=vo.tools.getDis(s,n,e,i);for(let s=0;sh)continue;this.tempDir2=vo.tools.getV2Dir(e,i,n.gameObj.x,n.gameObj.y,this.tempDir2);let r=Laya.Vector2.dot(this.tempDir1,this.tempDir2);if((r>1&&(r=1),!(r<0))&&Math.sin(Math.acos(r))*l1&&(i=1);let s=57.3*Math.acos(i);this.tempDir2.x<0&&(s=360-s),this.destRot+=s}}class at extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIGame")}onConstruct(){this.c1=this.getController("c1"),this.d3Root=this.getChild("d3Root"),this.clickNode=this.getChild("clickNode"),this.d2Root=this.getChild("d2Root"),this.topNode=this.getChild("topNode"),this.n72=this.getChild("n72"),this.n40=this.getChild("n40"),this.rulerNode=this.getChild("rulerNode"),this.rulerClickNode=this.getChild("rulerClickNode"),this.n50=this.getChild("n50"),this.keduNode=this.getChild("keduNode"),this.powerTxt=this.getChild("powerTxt"),this.powerNode=this.getChild("powerNode"),this.colorNode=this.getChild("colorNode"),this.powerEft=this.getChild("powerEft"),this.myPowerNode=this.getChild("myPowerNode"),this.ganNode=this.getChild("ganNode"),this.rodMethodNode=this.getChild("rodMethodNode"),this.placeChallengeNode=this.getChild("placeChallengeNode"),this.placeNormalNode=this.getChild("placeNormalNode"),this.skillRod=this.getChild("skillRod"),this.border=this.getChild("border"),this.bigSkillNode=this.getChild("bigSkillNode"),this.classicWorldsNode=this.getChild("classicWorldsNode"),this.bigMoveWorldsNode=this.getChild("bigMoveWorldsNode"),this.classicEmotionSpineNode=this.getChild("classicEmotionSpineNode"),this.awardSpineNode=this.getChild("awardSpineNode"),this.guanyuNode=this.getChild("guanyuNode"),this.helpBtn=this.getChild("helpBtn"),this.wordsBtn=this.getChild("wordsBtn"),this.aiWordsBtn=this.getChild("aiWordsBtn"),this.returnBtn=this.getChild("returnBtn"),this.ballNode=this.getChild("ballNode"),this.whiteAni=this.getChild("whiteAni"),this.blackAni=this.getChild("blackAni"),this.selfTurn=this.getChild("selfTurn"),this.aiTurn=this.getChild("aiTurn"),this.deskNode=this.getChild("deskNode"),this.moveNode=this.getChild("moveNode"),this.selfTalk=this.getChild("selfTalk"),this.aiTalk=this.getChild("aiTalk"),this.d2Node=this.getChild("d2Node"),this.snowNode=this.getChild("snowNode"),this.guide2=this.getChild("guide2"),this.guide1=this.getChild("guide1"),this.guide3=this.getChild("guide3"),this.guideNode=this.getChild("guideNode")}}at.URL="ui://isxx5ak7kt443qg";class ot extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIGameEnd")}onConstruct(){this.c1=this.getController("c1"),this.n22=this.getChild("n22"),this.n2=this.getChild("n2"),this.n52=this.getChild("n52"),this.n53=this.getChild("n53"),this.coinNode=this.getChild("coinNode"),this.closeNode=this.getChild("closeNode"),this.moneyNode=this.getChild("moneyNode"),this.secretary=this.getChild("secretary"),this.n27=this.getChild("n27"),this.n29=this.getChild("n29"),this.talkNode=this.getChild("talkNode"),this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.n40=this.getChild("n40"),this.starNumNode=this.getChild("starNumNode"),this.awardNode=this.getChild("awardNode"),this.n47=this.getChild("n47"),this.conditionNode=this.getChild("conditionNode"),this.isGetAward=this.getChild("isGetAward"),this.leftBtn=this.getChild("leftBtn"),this.rightBtn=this.getChild("rightBtn"),this.btnNode=this.getChild("btnNode")}}ot.URL="ui://isxx5ak7hkrz3u3";class ht extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIAddCoin")}onConstruct(){this.n11=this.getChild("n11"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}ht.URL="ui://isxx5ak7uxuev4hs";class lt extends A{constructor(){super(),this.coinNum=2e3}onConstructor(){this.ui=ht.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.cancelBtn,this.hide),this.addUIClick(this.ui.myNode.videoBtn,this.videoAddCoin)}show(){super.show(),this.ui.t0.play()}videoAddCoin(){Moyu.showVideoAd(()=>{vo.common.playObjFlyAnim(this.coinNum,L.coin),this.hide()},N.addFailCoin)}}lt.uiName="UIAddCoin";class rt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIInvitation")}onConstruct(){this.n14=this.getChild("n14"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}rt.URL="ui://isxx5ak7lrxgv50r";class ct extends A{constructor(){super()}onConstructor(){this.ui=rt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.enterBtn,this.enterGame)}show(){super.show()}enterGame(){vo.common.gameMode=f.classic,To.setChallengeTimes(1),vo.common.passAwardCoin=2e3;let t=vo.common.classicNiceNeddCoin;To.coinEnough(t)?(To.setCoin(-t),vo.eventMgr.event(u,!0),Moyu.sendDataEvent("enterChallenge",{mode:vo.common.gameMode})):vo.eventMgr.event(u,!0),this.hide()}hide(){super.hide()}}ct.uiName="UIInvitation";class dt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIMain")}onConstruct(){this.n47=this.getChild("n47"),this.n10=this.getChild("n10"),this.secretary=this.getChild("secretary"),this.n33=this.getChild("n33"),this.shopBtn=this.getChild("shopBtn"),this.moneyNode=this.getChild("moneyNode"),this.headNode=this.getChild("headNode"),this.bigMoveBtn=this.getChild("bigMoveBtn"),this.placeBallBtn=this.getChild("placeBallBtn"),this.classicBtn=this.getChild("classicBtn"),this.weeklyBtn=this.getChild("weeklyBtn"),this.globalBtn=this.getChild("globalBtn"),this.n44=this.getChild("n44"),this.signBtn=this.getChild("signBtn"),this.drawBtn=this.getChild("drawBtn"),this.settingNode=this.getChild("settingNode"),this.n45=this.getChild("n45"),this.secretaryBtn=this.getChild("secretaryBtn"),this.rankBtn=this.getChild("rankBtn"),this.n46=this.getChild("n46"),this.liucheng1=this.getChild("liucheng1"),this.rightBtn=this.getChild("rightBtn"),this.n75=this.getChild("n75"),this.secretaryGuide=this.getChild("secretaryGuide"),this.liucheng2=this.getChild("liucheng2"),this.guideBtn=this.getChild("guideBtn"),this.n73=this.getChild("n73"),this.wordsNode=this.getChild("wordsNode"),this.enterGuide=this.getChild("enterGuide"),this.talkNode=this.getChild("talkNode"),this.n83=this.getChild("n83"),this.n84=this.getChild("n84")}}dt.URL="ui://isxx5ak7kt443qc";class ut extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","UIMoyu")}onConstruct(){this.ageTip=this.getChild("ageTip"),this.mainBg=this.getChild("mainBg"),this.xyNode=this.getChild("xyNode"),this.rnNode=this.getChild("rnNode"),this.fcmNode=this.getChild("fcmNode"),this.ageNode=this.getChild("ageNode"),this.tipNode=this.getChild("tipNode"),this.msgNode=this.getChild("msgNode")}}ut.URL="ui://37nctnhwxe62v4ea";class gt{static initMoyu(){this.moyuView=new mt,Laya.stage.addChild(this.moyuView.ui.displayObject),this.moyuView.ui.x=(Laya.stage.width-1334)/2,this.moyuView.ui.displayObject.zOrder=1e3,this.moyuView.init(),this.moyuView.showTip(!0),this.moyuView.showAge(!0,0,Laya.stage.height-320),window.XApk=this}static showAge(t){this.moyuView&&this.moyuView.showAge(t)}static onPlatMsg(t){gt.moyuView&&"0"==t&>.moyuView.showTip(!1)}static showAgree(t){this.moyuView?this.moyuView.showAgree(t):t&&t()}static showXy(t=1){this.moyuView&&this.moyuView.showXy(t)}}gt.isAdvise=!1;class mt{constructor(){this.ysxyNum=1,this.ysJson=null,this.ui=ut.createInstance()}init(){this.ui.mainBg.visible=!1,this.ui.xyNode.visible=!1,this.ui.ageNode.visible=!1,this.ui.tipNode.visible=!1,this.ui.rnNode.visible=!1,this.ui.fcmNode.visible=!1,this.ui.ageTip.visible=!1,this.ui.msgNode.visible=!1,this.ui.visible=!1,this.ui.xyNode.xyList.setVirtual(),this.ui.xyNode.xyList.itemRenderer=Laya.Handler.create(this,this.renderListItem,null,!1),this.ui.ageNode.btnAge.onClick(this,this.onClick,[this.ui.ageNode.btnAge]),this.ui.tipNode.onClick(this,this.onClick,[this.ui.tipNode]),this.ui.ageTip.onClick(this,this.onClick,[this.ui.ageTip]),this.ui.xyNode.btnKnown.visible=!1,this.ui.xyNode.xy1.visible=!1,this.ui.xyNode.xy2.visible=!1,this.ui.xyNode.btnXy1.visible=this.ui.xyNode.btnXy2.visible=!1,this.ui.xyNode.btnSure.visible=this.ui.xyNode.btnXy3.visible=!1,this.ui.xyNode.btnXy1.onClick(this,this.onClick,[this.ui.xyNode.btnXy1]),this.ui.xyNode.btnXy2.onClick(this,this.onClick,[this.ui.xyNode.btnXy2]),this.ui.xyNode.btnXy3.onClick(this,this.onClick,[this.ui.xyNode.btnXy3]),this.ui.xyNode.btnNo.onClick(this,this.onClick,[this.ui.xyNode.btnNo]),this.ui.xyNode.btnYes.onClick(this,this.onClick,[this.ui.xyNode.btnYes]),this.ui.xyNode.btnSure.onClick(this,this.onClick,[this.ui.xyNode.btnSure]),this.ui.xyNode.btnBack.onClick(this,this.onClick,[this.ui.xyNode.btnBack]),this.ui.xyNode.btnKnown.onClick(this,this.onClick,[this.ui.xyNode.btnKnown]),this.ui.rnNode.btnExit.onClick(this,this.onClick,[this.ui.rnNode.btnExit]),this.ui.rnNode.btnCheck.onClick(this,this.onClick,[this.ui.rnNode.btnCheck]),this.ui.rnNode.btnDone.onClick(this,this.onClick,[this.ui.rnNode.btnDone]),this.ui.fcmNode.btnRn.onClick(this,this.onClick,[this.ui.fcmNode.btnRn]),(Moyu.isVVApk||Moyu.isOPApk||Moyu.isTTApk||Moyu.isOppo||Moyu.isVivo)&&(this.ysxyNum=2)}onClick(t){switch(vo.soundMgr.playSound(vo.common.btnClickStr),t){case this.ui.ageTip:Moyu.isTTApk&&(this.ui.ageNode.visible=!0,this.ui.mainBg.visible=!0);break;case this.ui.tipNode:this.showTip(!1);break;case this.ui.ageNode.btnAge:this.ui.ageNode.visible=!1,this.ui.mainBg.visible=!1,this.ui.xyNode.visible||this.ui.rnNode.visible||(this.ui.visible=!1);break;case this.ui.xyNode.btnXy3:case this.ui.xyNode.btnXy1:this.loadXy(1);break;case this.ui.xyNode.btnXy2:this.loadXy(2);break;case this.ui.xyNode.btnBack:this.ui.xyNode.xy1.visible=!0,this.ui.xyNode.xy2.visible=!1;break;case this.ui.xyNode.btnKnown:this.ui.xyNode.visible=!1,this.ui.mainBg.visible=!1,this.ui.visible=!1;break;case this.ui.rnNode.btnCheck:this.check();break;case this.ui.rnNode.btnExit:case this.ui.xyNode.btnNo:this.ysxyNum--,this.ysxyNum>0?this.showMsg("再次拒绝退出游戏"):(Moyu.userAgree(!1),Moyu.exit());break;case this.ui.xyNode.btnSure:case this.ui.xyNode.btnYes:To.userData.isAgree=!0,To.saveUserData(),this.onAgree();break;case this.ui.rnNode.btnDone:this.ui.rnNode.visible=!1,this.ui.visible=!1;break;case this.ui.fcmNode.btnRn:this.showRn()}}showTip(t){(Moyu.isVVApk||Moyu.isOPApk)&&(t?(gt.isAdvise=!0,this.ui.visible=!0,this.ui.tipNode.visible=!0,this.ui.tipNode.alpha=1,Laya.timer.once(1e3,this,this.showTip,[!1])):(this.ui.tipNode.alpha=1,this.ui.tipNode.visible=!0,Laya.Tween.to(this.ui.tipNode,{alpha:0},500,null,Laya.Handler.create(this.ui,()=>{this.ui.tipNode.visible=!1,gt.isAdvise=!1}),1e3)))}showAge(t,e=0,i=0){Moyu.platType>10&&!Moyu.isIos&&(this.ui.ageTip.x=e,this.ui.ageTip.y=i,this.ui.ageTip.visible=t,t&&(this.ui.visible=!0))}showAgree(t){this.agreeCall=t,this.onAgree()}onAgree(){this.ui.ageNode.visible||(this.ui.visible=!1),this.ui.xyNode.visible=!1,Moyu.userAgree(!0),this.showAge(!1),this.agreeCall&&this.agreeCall(),this.showRn()}showMsg(t){this.ui.msgNode.txtMsg.text=t,this.ui.msgNode.visible=!0,this.ui.msgNode.alpha=1,this.ui.visible=!0,Laya.Tween.to(this.ui.msgNode,{alpha:0},600,null,Laya.Handler.create(this.ui,()=>{this.ui.msgNode.visible=!1}),2500,!0)}showRn(){if((Moyu.isTTApk||Moyu.isPlat(MoyuPlat.hhw))&&(!Moyu.isRealName||Moyu.gameTime<999))return this.ui.rnNode.rn1.visible=!0,this.ui.rnNode.rn2.visible=!1,this.ui.rnNode.rn3.visible=!1,this.ui.rnNode.rn4.visible=!1,this.ui.rnNode.visible=!0,this.ui.mainBg.visible=!0,this.ui.rnNode.btnDone.visible=!1,this.ui.rnNode.btnExit.visible=!0,this.ui.rnNode.btnCheck.visible=!0,this.ui.fcmNode.visible=!1,void(this.ui.visible=!0);this.showFcm()}showFcm(){(Moyu.isTTApk||Moyu.isPlat(MoyuPlat.hhw))&&(Moyu.initFCM(!0),Moyu.gameTime<1?this.fcmLoop():Moyu.gameTime<999&&Laya.timer.loop(1e4,this.ui,this.fcmLoop))}fcmLoop(){Moyu.gameTime<1&&(this.ui.rnNode.visible=!1,this.ui.fcmNode.visible=!0,this.ui.mainBg.visible=!0,this.ui.visible=!0,this.ui.fcmNode.btnRn.visible=!Moyu.isLegal,Laya.timer.clear(this.ui,this.fcmLoop))}check(){if(this.ui.rnNode.rn2.visible||this.ui.rnNode.rn1.visible)this.ui.rnNode.rn1.visible=!1,this.ui.rnNode.rn2.visible=!1,this.ui.rnNode.rn4.visible=!0;else if(this.ui.rnNode.rn4.visible){let t=this.ui.rnNode.inputName.text,e=this.ui.rnNode.inputCode.text;e&&18==e.length?(this.ui.rnNode.rn1.visible=!1,this.ui.rnNode.rn4.visible=!1,Moyu.authenticate(t,e,t=>{this.ui.rnNode.rn2.visible=!t,this.ui.rnNode.rn3.visible=t,this.ui.rnNode.btnDone.visible=t,this.ui.rnNode.btnExit.visible=!t,this.ui.rnNode.btnCheck.visible=!t,t&&this.showFcm()})):this.showMsg("信息填写不完整")}}loadXy(t=0){this.ui.xyNode.xy1.visible=!1,this.ui.xyNode.xy2.visible=!0,this.ui.xyNode.xyList.scrollToView(0),1==t?Laya.loader.load("app/xy/yiiwan_ys.json",Laya.Handler.create(this,this.createXY)):2==t&&Laya.loader.load("app/xy/yiiwan_yh.json",Laya.Handler.create(this,this.createXY))}showXy(t=0){this.xyBtn(),0==t?Moyu.isPlat(MoyuPlat.f399Apk)?this.ui.xyNode.btnSure.visible=!0:(this.ui.xyNode.btnYes.visible=!0,this.ui.xyNode.btnNo.visible=!0):(this.ui.xyNode.btnKnown.visible=!0,this.ui.mainBg.visible=!0),this.ui.xyNode.xy1.visible=!0,this.ui.xyNode.xy2.visible=!1,this.ui.xyNode.visible=!0,this.ui.visible=!0}xyBtn(){this.ui.xyNode.btnSure.visible=!1,this.ui.xyNode.btnYes.visible=!1,this.ui.xyNode.btnNo.visible=!1,this.ui.xyNode.btnKnown.visible=!1,this.ui.xyNode.btnXy3.visible=!1,this.ui.xyNode.btnXy2.visible=!0,this.ui.xyNode.btnXy1.visible=!0,this.ui.xyNode.xy1.text="Welcome to《8Ball Fury》"}createXY(t){this.ysJson=t.content,this.ui.xyNode.txtTitle.text=t.title.replace("GAMENAME","8Ball Fury"),this.ui.xyNode.xyList.numItems=this.ysJson.length,this.ui.xyNode.xy2.visible=!0}renderListItem(t,e){let i=this.ysJson[t];e.height=30*i.line,e.xyItem.text=i.text}onDestroy(){this.agreeCall=null}}class yt{constructor(t){this.showSetting=!1,this.openSound=!0,this.openShake=!0,this.ui=t,this.ui.soundBtn.onClick(this,this.switchSound),this.ui.shakeBtn.onClick(this,this.switchShake),this.ui.xyBtn.onClick(this,this.onXy),this.ui.clickNode.onClick(this,this.changeSetting),this.ui.xyBtn.visible=Moyu.isVivo||Moyu.isOppo||Moyu.isOPApk||Moyu.isVVApk}changeSetting(){vo.soundMgr.playSound(vo.common.btnClickStr),this.showSetting=!this.showSetting,this.ui.c1.selectedIndex=this.showSetting?1:0}switchSound(){vo.soundMgr.playSound(vo.common.btnClickStr),this.openSound=!this.openSound,Moyu.onSetting(this.openSound,this.openShake),vo.soundMgr.onSetting(this.openSound),this.ui.soundBtn.c1.selectedIndex=this.openSound?0:1}switchShake(){vo.soundMgr.playSound(vo.common.btnClickStr),this.openShake=!this.openShake,Moyu.onSetting(this.openSound,this.openShake),this.ui.shakeBtn.c1.selectedIndex=this.openShake?0:1}onXy(){vo.soundMgr.playSound(vo.common.btnClickStr),gt.showXy(1)}}class pt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UILevelDisplay")}onConstruct(){this.n9=this.getChild("n9"),this.myNode=this.getChild("myNode"),this.closeNode=this.getChild("closeNode")}}pt.URL="ui://isxx5ak7avag46o";class xt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UILevelProp")}onConstruct(){this.n16=this.getChild("n16"),this.myNode=this.getChild("myNode"),this.closeBtn=this.getChild("closeBtn"),this.moneyNode=this.getChild("moneyNode"),this.t1=this.getTransition("t1")}}xt.URL="ui://isxx5ak7xs1r47l";class Ct extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ShowItem")}onConstruct(){this.myImg=this.getChild("myImg")}}Ct.URL="ui://isxx5ak710hfv49o";class ft{constructor(){this.ui=Ct.createInstance()}destroySelf(){this.ui.isDisposed||(this.ui.removeFromParent(),this.ui.dispose())}setParent(t){t.addChild(this.ui)}setPos(t,e){this.ui.x=t,this.ui.y=e}setUrl(t){this.ui.myImg.url=vo.common.getGameIconUrl("q"+t)}}class bt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIPower")}onConstruct(){this.n11=this.getChild("n11"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}bt.URL="ui://isxx5ak7jpszv4n1";class It extends A{constructor(){super()}onConstructor(){this.ui=bt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.cancelBtn,this.hide),this.addUIClick(this.ui.myNode.videoBtn,this.videoGetPower)}show(){super.show(),this.ui.t0.play()}videoGetPower(){Moyu.showVideoAd(()=>{To.setPower(vo.common.videoPower,!0),vo.eventMgr.event(p),this.hide()},N.getPower)}}It.uiName="UIPower";class kt extends A{constructor(){super(),this.firstPos=385,this.secondPos=467,this.showItemArr=[]}onConstructor(){this.ui=xt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.hide),this.moneyNode=new ye(this.ui.moneyNode),this.addUIClick(this.ui.myNode.startBtn,this.startGame)}show(t){super.show(),this.ui.t1.play(),this.level=t,this.data=cfgTable.placeballData[this.level],this.updateSelf(),this.showPreView(),this.moneyNode.ui.c1.selectedIndex=2,this.moneyNode.checkPowerTime(),this.moneyNode.powerChange()}showPreView(){let t,e;for(let e=0;e0&&s>0?(this.ui.myNode.diamondNode.x=385,this.ui.myNode.coinNode.x=467):(this.ui.myNode.diamondNode.x=385,this.ui.myNode.coinNode.x=385),t?(this.ui.myNode.diamondNode.c1.selectedIndex=1,this.ui.myNode.coinNode.c1.selectedIndex=1):(this.ui.myNode.coinNode.c1.selectedIndex=0,this.ui.myNode.diamondNode.c1.selectedIndex=0)}startGame(){To.powerEnough()?(this.ui.myNode.startBtn.touchable=!1,this.ui.myNode.startBtn.powerEft.t0.play(Laya.Handler.create(this,()=>{console.log("zh:startGame "),this.ui.myNode.startBtn.touchable=!0,To.setPower(-1),vo.eventMgr.event(p),vo.common.gameMode=f.placeBall,vo.common.placeBallCurLevel=this.level,vo.uiMgr.Show(ge),vo.uiMgr.Hide(Nt),vo.uiMgr.Hide(Yt),this.hide()}))):vo.uiMgr.Show(It)}hide(){super.hide()}}kt.uiName="UILevelProp";class wt{constructor(t,e){this.index=0,this.ui=t,this.index=e,this.ui.onClick(this,this.clickSelf),this.updateSelf(),this.ui.levelTxt.text=this.index+1+"",this.ui.challenge.levelTxt.text=this.index+1+"",this.ui.special.levelTxt.text=this.index+1+""}updateSelf(){let t=this.index+1;this.data=To.getPlaceBallLevel(t),this.ui.starNode.c1.selectedIndex=this.data.star;let e=cfgTable.placeballData[t].type;this.data.isCur?this.ui.c1.selectedIndex=e?5:2:this.data.play?3==this.data.star?this.ui.c1.selectedIndex=0:this.ui.c1.selectedIndex=1:this.ui.c1.selectedIndex=e?4:3}clickSelf(){this.data.play&&(vo.soundMgr.playSound(vo.common.btnClickStr),vo.uiMgr.Show(kt,this.index+1))}}class Nt extends A{constructor(){super()}onConstructor(){this.ui=pt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.myList=this.ui.myNode.myList,this.addUIClick(this.ui.closeNode.closeBtn,this.hide),this.levelItemArr=[];let t=vo.cfgMgr.getMaxPlaceBall();this.myList.itemRenderer=Laya.Handler.create(this,this.levelItemRender,null,!1),this.myList.numItems=t,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}levelItemRender(t,e){let i=new wt(e,t);this.levelItemArr.push(i)}show(){super.show(),this.updateLevel(),this.scrollToPlace()}updateLevel(){let t;for(let e=0;e=t-1&&(e=t-1),this.myList.scrollToView(e,!0,!0)}hide(){super.hide()}}Nt.uiName="UILevelDisplay";class Lt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIMatching")}onConstruct(){this.n5=this.getChild("n5"),this.n49=this.getChild("n49"),this.n51=this.getChild("n51"),this.n64=this.getChild("n64"),this.n2=this.getChild("n2"),this.n53=this.getChild("n53"),this.n54=this.getChild("n54"),this.n56=this.getChild("n56"),this.n58=this.getChild("n58"),this.n59=this.getChild("n59"),this.n57=this.getChild("n57"),this.n60=this.getChild("n60"),this.n62=this.getChild("n62"),this.awardTxt=this.getChild("awardTxt"),this.n61=this.getChild("n61"),this.selfHead=this.getChild("selfHead"),this.aiHead=this.getChild("aiHead"),this.n82=this.getChild("n82"),this.n84=this.getChild("n84"),this.n83=this.getChild("n83"),this.t1=this.getTransition("t1"),this.t2=this.getTransition("t2"),this.t3=this.getTransition("t3"),this.t4=this.getTransition("t4")}}Lt.URL="ui://isxx5ak7n0xy3y2";class vt extends A{constructor(){super()}onConstructor(){this.ui=Lt.createInstance(),this.contentPane=this.ui,this.isEject=!1}show(t){super.show(),W.showBanner(!0),this.callback=t;let e=Moyu.getUserInfo();switch(this.selfPot||(this.selfPot=new Laya.Point(this.ui.selfHead.x,this.ui.selfHead.y)),this.aiPot||(this.aiPot=new Laya.Point(this.ui.aiHead.x,this.ui.aiHead.y)),this.ui.awardTxt.text=vo.common.passAwardCoin+"",this.ui.selfHead.nameTxt.text=e.nickName,vo.common.createHead(this.ui.selfHead.headImg,e.headIcon),this.ui.aiHead.nameTxt.text="???",this.ui.aiHead.headImg.url=vo.common.getGameIconUrl("cstx"),this.ui.selfHead.c1.selectedIndex=0,this.ui.aiHead.c1.selectedIndex=0,this.ui.selfHead.x=this.selfPot.x,this.ui.selfHead.y=this.selfPot.y,this.ui.aiHead.x=this.aiPot.x,this.ui.aiHead.y=this.aiPot.y,vo.common.gameMode){case f.classic:break;case f.bigMove:this.initSkillData()}this.ui.t1.play(Laya.Handler.create(this,()=>{this.ui.t2.play(Laya.Handler.create(this,()=>{switch(vo.common.gameMode){case f.classic:this.waitingPeople();break;case f.bigMove:this.skillSelectFinish(vo.common.curPlayerSkillType)}}))}))}initSkillData(){this.skillSelectData=[];let t=vo.common.skillIconList,e=vo.common.skillNameList,i=To.getBigSkillList(),s=[b.highSpace,b.breakArmy,b.ice,b.GuanYu];for(let n=0;n<5;n++){let a={};a.skillImg=t[n],a.skillName=e[n],a.skillType=s[n],a.skillLevel=i[n],this.skillSelectData.push(a)}}getAISkillLevel(t){let e,i;return(e=(i=vo.common.upSkillLevel?vo.common.randomNum(-2,-1):t<=5?vo.common.randomNum(1,3):t<=9?vo.common.randomNum(-2,1):vo.common.randomNum(-4,0))+t)<=1&&(e=1),e>=10&&(e=10),e}getAISkillType(){return vo.common.randomNum(1,4)}getAISkillData(t){let e=this.skillSelectData[t].skillLevel,i=this.getAISkillLevel(e),s=this.getAISkillType()-1;return({aiLevel:i,aiType:s}={aiLevel:i,aiType:s})}skillSelectFinish(t){let e=this.getAISkillData(t);vo.common.gameMgr.selfCurSkill=t,vo.common.gameMgr.aiCurSkill=e.aiType,vo.common.gameMgr.aiSkillLevelNum=e.aiLevel,this.ui.selfHead.c1.selectedIndex=1,this.ui.aiHead.c1.selectedIndex=1;let i=this.skillSelectData[t];this.ui.selfHead.skillImg.url=vo.common.getGameIconUrl(i.skillImg);let s=To.getSkillGuide();this.ui.selfHead.skillTxt.text=0==s?i.skillName+" Max Level":i.skillName+"Lv."+i.skillLevel;let n=this.skillSelectData[e.aiType];this.ui.aiHead.skillImg.url=vo.common.getGameIconUrl(n.skillImg),this.ui.aiHead.skillTxt.text=n.skillName+"Lv."+e.aiLevel,this.waitingPeople()}waitingPeople(){let t=vo.common.randomNum(1e3,3e3);t+=1e3,Laya.timer.once(t,this,()=>{this.matchingSuccess()})}matchingSuccess(){let t=vo.common.gameUI,e=t.ui.topNode.aiNameTxt.text,i=t.ui.topNode.aiHeadLoader.url;this.ui.aiHead.nameTxt.text=e,this.ui.aiHead.headImg.url=i,e=t.ui.topNode.selfNameTxt.text,i=t.ui.topNode.selfHeadLoader.url,this.ui.selfHead.nameTxt.text=e,this.ui.selfHead.headImg.url=i,this.ui.t3.play(Laya.Handler.create(this,()=>{this.callback&&this.callback(),this.ui.t4.play(Laya.Handler.create(this,()=>{this.destroySelf()}))}))}destroySelf(){this.callback=null,this.skillSelectData=null,this.selfPot=null,this.aiPot=null,this.ui.isDisposed||(this.ui.removeFromParent(),this.ui.dispose()),vo.uiMgr.destroyUI(this)}}vt.uiName="UIMatching";class St extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIRanking")}onConstruct(){this.n26=this.getChild("n26"),this.myNode=this.getChild("myNode")}}St.URL="ui://isxx5ak7p7rrv4p8";class Ut extends A{constructor(){super(),this.showSelf=!0,this.rankType=1,this.rankList=[],this.myIndex=0,this.myStar=0}onConstructor(){this.ui=St.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.closeBtn,this.hide),this.addUIClick(this.ui.myNode.changeBtn,this.changeSelfNode),this.addUIClick(this.ui.myNode.starBtn,this.changeList,[1]),this.addUIClick(this.ui.myNode.levelBtn,this.changeList,[2]),this.ui.myNode.myList.setVirtual(),this.ui.myNode.myList.itemRenderer=Laya.Handler.create(this,this.updateItemUI,null,!1)}show(){super.show(),this.myIndex=51,Moyu.getRankList({rankId:vo.common.curRankID,type:MoyuRankType.total,page:1,pageSize:50},this,this.updateItemData),this.updateSelf(),Moyu.getUserInfo().isAuth||Moyu.initUser(this,()=>{To.upRankData()})}updateSelfItem(){let t=Moyu.getUserInfo();this.ui.myNode.selfNode.c1.selectedIndex=this.myIndex<4?this.myIndex-1:3,this.ui.myNode.selfNode.rankTxt.text=this.myIndex>50?"未上榜":this.myIndex.toString(),this.ui.myNode.selfNode.valueTxt.text=this.myStar+"",this.ui.myNode.selfNode.nameTxt.text=Moyu.platType<11?t.nickName:"myself",vo.common.createHead(this.ui.myNode.selfNode.headNode.head.myIcon,t.headIcon)}updateItemData(t){if(this.myStar=vo.common.getAllStarNum(),this.rankList.length<2){this.rankList=t;let e=Moyu.getUserInfo();for(let i=0;i50){this.myIndex=i+1;let t={headIcon:e.headIcon,nickName:"myself"},s={user:t,data:{}},n={rankScore:this.myStar.toString(),userId:e.userId,userData:JSON.stringify(s)};Moyu.platType<11&&(t.headIcon=e.headIcon,t.nickName=e.nickName),this.rankList.splice(i,0,n);break}}}this.updateSelfItem(),this.ui.myNode.myList.numItems=this.rankList.length}updateItemUI(t,e){let i=this.rankList[t],s=JSON.parse(i.userData).user;switch(e.nameTxt.text=s.nickName.toString(),e.valueTxt.text=i.rankScore,vo.common.createHead(e.headNode.head.myIcon,s.headIcon,80),e.rankTxt.text=t+1,t){case 0:this.setImg(e,1,0,0),e.rankTxt.color="#FFC047";break;case 1:this.setImg(e,0,1,0),e.rankTxt.color="#ACACAC";break;case 2:this.setImg(e,0,0,1),e.rankTxt.color="#D09672";break;default:this.setImg(e,0,0,0),e.rankTxt.color="#496FAB"}}setImg(t,e,i,s){t.img1.visible=!!e,t.img2.visible=!!i,t.img3.visible=!!s}changeList(t){this.rankType=t,this.updateSelf()}changeSelfNode(){this.showSelf=!this.showSelf,this.updateSelf()}updateSelf(){this.ui.myNode.changeBtn.c1.selectedIndex=this.showSelf?0:1,this.ui.myNode.c2.selectedIndex=this.showSelf?0:1,this.ui.myNode.c1.selectedIndex=1==this.rankType?0:1,this.ui.myNode.levelBtn.c1.selectedIndex=1==this.rankType?1:0,this.ui.myNode.starBtn.c1.selectedIndex=1==this.rankType?0:1}}Ut.uiName="UIRanking";class Bt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UISecretary")}onConstruct(){this.n0=this.getChild("n0"),this.myNode=this.getChild("myNode"),this.rightBtn=this.getChild("rightBtn"),this.leftBtn=this.getChild("leftBtn"),this.closeBtn=this.getChild("closeBtn"),this.t0=this.getTransition("t0")}}Bt.URL="ui://isxx5ak7s46iv4f1";class Mt extends A{constructor(){super(),this.curIndex=1}onConstructor(){this.ui=Bt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.closeSelf),this.addUIClick(this.ui.leftBtn,this.turnLeft),this.addUIClick(this.ui.rightBtn,this.turnRight),this.nodeObj={left:null,right:null,cur:null},this.nodeObj.left=this.ui.myNode.gameNode1,this.nodeObj.right=this.ui.myNode.gameNode2,this.nodeObj.cur=this.ui.myNode.gameNode3}show(){super.show(),this.ui.t0.play(),this.updateData()}addSecretarySpine(t,e){if("mishu"==e)if(this.secretarySpine1)t.displayObject.destroyChildren(),this.playWoman(this.secretarySpine1,t.displayObject);else{let e=new X("mishu",()=>{this.secretarySpine1=e,this.playWoman(this.secretarySpine1,t.displayObject)})}else if(this.secretarySpine2)t.displayObject.destroyChildren(),this.playWoman(this.secretarySpine2,t.displayObject);else{let e=new X("xiaomishu2",()=>{this.secretarySpine2=e,this.playWoman(this.secretarySpine2,t.displayObject)})}}playWoman(t,e){let i=this.ui.myNode.gameNode1.secretary.width/2,s=this.ui.myNode.gameNode1.secretary.height,n=1.5;t==this.secretarySpine2&&(n=1.2);let a={x:i,y:s,scaleX:n,scaleY:n};t.play(a,1,!0,e)}turnLeft(){this.curIndex--,this.curIndex<1&&(this.curIndex=2);let t=this.nodeObj.left,e=this.nodeObj.right,i=this.nodeObj.cur;Laya.Tween.to(t,{x:180,scaleX:.8,scaleY:.8,alpha:.3},500),Laya.Tween.to(e,{x:0,scaleX:1,scaleY:1,alpha:1},500),Laya.Tween.to(i,{x:-180,scaleX:.8,scaleY:.8,alpha:.3},500,null,Laya.Handler.create(this,()=>{this.updateData()})),this.ui.myNode.setChildIndex(e,2),this.nodeObj.left=i,this.nodeObj.right=t,this.nodeObj.cur=e}turnRight(){this.curIndex++,this.curIndex>2&&(this.curIndex=1);let t=this.nodeObj.left,e=this.nodeObj.right,i=this.nodeObj.cur;Laya.Tween.to(i,{x:180,scaleX:.8,scaleY:.8,alpha:.3},500),Laya.Tween.to(t,{x:0,scaleX:1,scaleY:1,alpha:1},500),Laya.Tween.to(e,{x:-180,scaleX:.8,scaleY:.8,alpha:.3},500,null,Laya.Handler.create(this,()=>{this.updateData()})),this.ui.myNode.setChildIndex(t,2),this.nodeObj.left=e,this.nodeObj.right=i,this.nodeObj.cur=t}updateData(){let t,e,i=cfgTable.secretaryshopData,s=this.ui.myNode._children;for(let n=0;n{let t={x:150,y:70,scaleX:1,scaleY:1};this.mySpine.play(t,0,!0,this.ui.eftRod.displayObject)}))}updateSelf(){let t=To.getBallRod(this.index);null==t&&(t=1);let e=To.getCurBallRod();t?e==this.index?this.ui.purchaseBtn.c1.selectedIndex=0:this.ui.purchaseBtn.c1.selectedIndex=1:this.ui.purchaseBtn.c1.selectedIndex=2}buyBallRod(){switch(vo.soundMgr.playSound(vo.common.btnClickStr),this.ui.purchaseBtn.c1.selectedIndex){case 0:break;case 1:To.setCurBallRod(this.index),vo.uiMgr.getUI(Rt).updateBallRod();break;case 2:let t=cfgTable.ballrodData[this.index+1].price;if(To.diamondEnough(t)){To.setDiamond(-t),To.setBallRod(this.index,1),To.setCurBallRod(this.index),vo.uiMgr.getUI(Rt).updateBallRod()}else vo.uiMgr.Show(me,1)}}}class Rt extends A{constructor(){super(),this.itemNums=0}onConstructor(){this.ui=Tt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new ye(this.ui.moneyNode),this.addUIClick(this.ui.closeNode.closeBtn,this.closeSelf),this.addUIClick(this.ui,this.interuptSecretary),this.ui.myNode.myList.itemRenderer=Laya.Handler.create(this,this.renderBallRod,null,!1),this.ballRodArr=[],this.itemNums=Object.keys(cfgTable.ballrodData).length,this.ui.myNode.myList.numItems=this.itemNums,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}show(){super.show(),this.playSecretaryIdle(),this.updateBallRod()}updateBallRod(){for(let t=0;t{if(this.isHide)return;let t=vo.common.randomNum(4,7);vo.soundMgr.playSound("s_main0"+t);let e=1;switch(t){case 4:e=5;break;case 5:e=3;break;case 6:e=6;break;case 7:e=7}vo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),this.playSecretaryRandomSound()})}closeSelf(){this.hide()}}Rt.uiName="UIShop";class jt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UISign")}onConstruct(){this.n6=this.getChild("n6"),this.closeNode=this.getChild("closeNode"),this.myNode=this.getChild("myNode"),this.moneyNode=this.getChild("moneyNode"),this.secretary=this.getChild("secretary"),this.talkNode=this.getChild("talkNode"),this.tripleBtn=this.getChild("tripleBtn"),this.normalBtn=this.getChild("normalBtn"),this.tipsNode=this.getChild("tipsNode"),this.againBtn=this.getChild("againBtn"),this.t0=this.getTransition("t0")}}jt.URL="ui://isxx5ak7bf9jv4jj";class Pt{constructor(t){this.ui=t}updateSelf(t,e,i){let s=cfgTable.signData[t+1];this.ui.titleTxt.text=s.title;let n=s.award[0].split("-"),a=s.award[1].split("-"),o=parseInt(n[1]),h=parseInt(a[1]);this.ui.numTxt1.text=o+"",this.ui.numTxt2.text=h+"",this.ui.myIcon1.url=vo.common.getGameIconUrl(s.icon[0]),this.ui.myIcon2.url=vo.common.getGameIconUrl(s.icon[1]),vo.common.signAwardContainsRod([s.award[0]])?this.ui.numTxt1.visible=!1:this.ui.numTxt1.visible=!0,vo.common.signAwardContainsRod([s.award[1]])?this.ui.numTxt2.visible=!1:this.ui.numTxt2.visible=!0,this.ui.c1.selectedIndex=t2?(this.ui.myIcon.url=vo.common.getComponentUrl("s"+s.icon[0]),this.ui.myIcon.rotation=0):(this.ui.myIcon.url=vo.common.getGameIconUrl(s.icon[0]),this.ui.myIcon.rotation=0),vo.common.signAwardContainsRod(s.award)?this.ui.numTxt.visible=!1:this.ui.numTxt.visible=!0,this.ui.c1.selectedIndex=t=7&&!t)&&(this.curDayIndex=0),t){this.ui.normalBtn.visible=!1;let t=To.getExtraSign(),e=!1,i=this.curDayIndex;0==i&&(i=7);let s=cfgTable.signData[i].award[0].split("-")[0];"1"!=s&&"2"!=s||(e=!0);let n=0==t&&e;this.ui.againBtn.visible=n,this.ui.tipsNode.visible=!n}else this.ui.normalBtn.visible=!0,this.ui.tipsNode.visible=!1,this.ui.againBtn.visible=!1;for(let e=0;e{this.curDayIndex++,this.curDayIndex>7&&(this.curDayIndex=0),To.setSignData(this.curDayIndex),To.setSignTime((new Date).getTime()),t&&(To.setExtraSign(1),Moyu.sendDataEvent("signIn1")),this.updateSign()})}}againGetAward(){Moyu.sendDataEvent("signIn2"),Moyu.showVideoAd(()=>{let t=this.curDayIndex;0==t&&(t=7);let e,i,s,n=cfgTable.signData[t].award;for(let t=0;t{To.setBigSkill(this.data.index,1),this.updateSelf(),vo.common.upSkillLevel=!0},N.upSkill)}startGame(){if(3==this.data.index)return void alert("期待吧");vo.soundMgr.playSound(vo.common.btnClickStr);let t=vo.common.bigMoveNeedCoin;vo.common.passAwardCoin=2e3;let e=To.getSkillGuide();console.log("zh:startGame guide="+e),vo.common.temSelfLevel=0,0==e&&(t=0,vo.common.temSelfLevel=100),To.coinEnough(t)?(To.setCoin(-t),vo.common.curPlayerSkillType=this.index,0==e&&(vo.common.curPlayerSkillType=0),vo.uiMgr.Show(ge),vo.uiMgr.Hide(Yt),vo.uiMgr.Show(vt,()=>{vo.common.gameUI.ui.alpha=1,vo.common.gameUI.startGame(),vo.uiMgr.Hide(Ht)})):(vo.uiMgr.Show(me,0),Moyu.sendDataEvent("AddCoinVideo"))}}class Ht extends A{constructor(){super(),this.skillData=[]}onConstructor(){this.ui=At.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new ye(this.ui.moneyNode),this.initSkillData(),this.addUIClick(this.ui.closeNode.closeBtn,this.returnUIMain),this.ui.skillNode.skillList.itemRenderer=Laya.Handler.create(this,this.updateSkillItem,null,!1),this.displayList=[],this.ui.skillNode.skillList.numItems=4,this.addUIClick(this.ui,this.interuptSecretary),this.addUIClick(this.ui.guideNode.guideBtn,this.enterGuideLevel),this.ui.talkNode.visible=!1,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}show(){super.show(),this.playSecretaryIdle(),this.moneyNode.ui.c1.selectedIndex=1,Laya.timer.clearAll(this),vo.soundMgr.playSound("s_start"),vo.common.showGirlTalkPop(13,this.ui.talkNode,this.ui.talkNode.womanTxt);let t=To.getSkillGuide();this.ui.guideNode.visible=0==t;let e=this.getSkillItemByUIIndex(0);e.ui.c1.selectedIndex=0==t?1:0,this.ui.guideNode.guideBtn.visible=0==t;for(let t=0;t{if(this.isHide)return;let t=vo.common.randomNum(4,7);vo.soundMgr.playSound("s_main0"+t);let e=1;switch(t){case 4:e=5;break;case 5:e=3;break;case 6:e=6;break;case 7:e=7}vo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),this.playSecretaryRandomSound()})}}Ht.uiName="UISkill";class Ft extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIMsg")}onConstruct(){this.tipsNode=this.getChild("tipsNode")}}Ft.URL="ui://isxx5ak7hkrz3qt";class _t extends A{constructor(){super()}onConstructor(){this.ui=Ft.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.isMuti=!0}show(t,e){super.show(),this.ui.tipsNode.msgTxt.text=t,this.ui.alpha=1,Laya.Tween.to(this.ui,{alpha:0},500,null,Laya.Handler.create(this,()=>{this.hide(),e&&e()}),1e3)}}_t.uiName="UIMsg";class Vt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIModeSelection")}onConstruct(){this.n19=this.getChild("n19"),this.closeBtn=this.getChild("closeBtn"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}Vt.URL="ui://isxx5ak7rz5r458";class Wt extends A{constructor(){super()}onConstructor(){this.ui=Vt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.type1,this.enterGame,[1]),this.addUIClick(this.ui.myNode.type2,this.enterGame,[2]),this.addUIClick(this.ui.myNode.type3,this.enterGame,[3]),this.addUIClick(this.ui.closeBtn,this.hide),this.peopleArr=[650,6900,3800],this.peopleOffest=[50,500,200],this.updateSelf()}show(t){super.show(),this.ui.t0.play(),this.callback=t}updateSelf(){let t=cfgTable.modeselectData;for(let e=1;e<=3;e++){let i=this.ui.myNode["type"+e];i.need.text=t[e].need,i.tipsTxt.text=`Min ${t[e].need} Eligible`,i.peopleTxt.text=this.getRandPeople(e-1)}}enterGame(t){vo.common.classicRoomType=t;let e=cfgTable.modeselectData[t],i=e.need;vo.common.passAwardCoin=e.award,To.coinEnough(i)?(To.setCoin(-i),this.ui.myNode["type"+t].t0.play(),Laya.timer.once(200,this,()=>{this.callback&&this.callback()})):(Moyu.sendDataEvent("AddCoinVideo"),vo.uiMgr.Show(me,0))}getRandPeople(t){let e=this.peopleOffest[t];return this.peopleArr[t]+vo.common.randomNum(-e,e)}}Wt.uiName="UIModeSelection";class Yt extends A{constructor(){super(),this.firstEnter=!0}onConstructor(){this.ui=dt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addEvent(),this.addClickSpine(),this.settingNode=new yt(this.ui.settingNode),this.moneyNode=new ye(this.ui.moneyNode),vo.eventMgr.on(u,this,this.beginGame),vo.eventMgr.on(g,this,this.onGetUserInfo),vo.eventMgr.on(m,this,this.changeSecretary);let t=To.getCurSecretary();this.changeSecretary(t),this.ui.talkNode.visible=!1;let e=To.getSkillGuide();vo.common.isNewDay&&1==e&&(vo.common.isNewDay=!1,vo.soundMgr.playSound("s_main01"),vo.common.showGirlTalkPop(1,this.ui.talkNode,this.ui.talkNode.womanTxt),console.log("播放小秘书每天语音")),this.onGetUserInfo(),this.ui.n83.visible=!1,Moyu.setShareInfo("8Ball Fury",["台球","万宁","桌球"],"2300002254")}changeSecretary(t){let e=cfgTable.secretaryshopData[t+1].spine;vo.common.secretary&&vo.common.secretary.dispose(),this.addSecretarySpine(e)}addSecretarySpine(t){let e=new X(t,()=>{this.playSecretaryIdle()});vo.common.secretary=e}addClickSpine(){let t=new X("dianji",()=>{Laya.stage.on(Laya.Event.CLICK,this,e=>{let i=Laya.stage,s={x:e.stageX,y:e.stageY,scaleX:.8,scaleY:.8};t.play(s,0,!1,i,t=>{t.destroy(!0)})})})}addEvent(){this.addUIClick(this.ui.classicBtn,this.startGame,[f.classic]),this.addUIClick(this.ui.bigMoveBtn,this.startGame,[f.bigMove]),this.addUIClick(this.ui.globalBtn,this.startGlobal),this.addUIClick(this.ui.weeklyBtn,this.startWeekly),this.addUIClick(this.ui.placeBallBtn,this.startPlaceBall),this.addUIClick(this.ui.headNode,this.onGetUserInfo,[!0]),this.addUIClick(this.ui,this.interuptSecretary),this.addUIClick(this.ui.rightBtn,this.ensureSecretary),this.addUIClick(this.ui.guideBtn,this.startGame,[f.bigMove]),this.addUIClick(this.ui.secretaryBtn,this.openSecretaryView),this.addUIClick(this.ui.shopBtn,this.openShopView),this.addUIClick(this.ui.signBtn,this.openSignView),this.addUIClick(this.ui.drawBtn,this.openDrawView),this.addUIClick(this.ui.rankBtn,this.openRanking)}show(t){if(super.show(),this.moneyNode.ui.c1.selectedIndex=1,this.playSecretaryIdle(),vo.soundMgr.playMusic("caromhall01"),Laya.timer.clearAll(this),this.playSecretaryRandomSound(),t&&setTimeout(()=>{let t=Math.random()<=.5?"s_main02":"s_main03",e=-1;e="s_main02"==t?2:3,vo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),vo.soundMgr.playSound(t)},300),this.showGuide(),this.ui.guideBtn.x=this.ui.liucheng2.myMask.x,this.ui.guideBtn.y=this.ui.liucheng2.myMask.y,1==To.getSkillGuide()){let t=vo.common.randomNum(300,800);this.firstEnter&&(this.firstEnter=!1,t+=900),Laya.timer.once(t,this,()=>{vo.common.autoPopUIView()})}}checkActive(t){}showGuide(){let t=To.getSkillGuide();this.ui.guideBtn.visible=0==t,this.ui.enterGuide.visible=!1,this.ui.secretaryGuide.visible=0==t,0==t&&(vo.soundMgr.playSound("s_guide"),vo.common.showGirlTalkPop(16,this.ui.talkNode,this.ui.talkNode.womanTxt))}ensureSecretary(){this.ui.secretaryGuide.visible=!1,this.ui.enterGuide.visible=!0,this.ui.wordsNode.t0.play(),To.getNewUser()&&Moyu.sendDataEvent("gameReady")}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=vo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};vo.common.secretary.play(n,1,!0,t)}startGame(t){switch(vo.common.gameMode=t,Moyu.sendDataEvent("PlayGame",{type:t}),vo.common.gameMode){case f.classic:0==To.getChallengeTimes()?vo.uiMgr.Show(ct):this.beginGame();break;case f.bigMove:this.beginGame(),To.getNewUser()&&Moyu.sendDataEvent("gameStart0")}}beginGame(t=!1){vo.common.gameMode==f.classic?t?this.enterClassic():vo.uiMgr.Show(Wt,()=>{this.enterClassic()}):vo.common.gameMode==f.bigMove&&(this.ui.enterGuide.visible=!1,vo.uiMgr.Show(Ht))}enterClassic(){vo.uiMgr.Show(ge),vo.uiMgr.Show(vt,()=>{this.isHide||this.hide(),vo.common.gameUI.ui.alpha=1,vo.common.gameUI.startGame(),vo.uiMgr.Hide(Xt)})}startGlobal(){vo.uiMgr.Show(_t,"Coming Soon~")}startWeekly(){vo.uiMgr.Show(_t,"Coming Soon~")}startPlaceBall(){vo.uiMgr.Show(Nt)}hide(){super.hide(),vo.common.stopGirlPop(this.ui.talkNode)}onGetUserInfo(t=!1){if(Moyu.isWx){let t=Moyu.getSystemInfo();t&&Moyu.createWXUserBtn(0,0,t.width,t.height,"res/wxuser.png",this.freshUser)}else Moyu.initUser(this,this.freshUser,t);if(!Moyu.hasUserInfo){Moyu.getUserInfo().headIcon="res/ty_touxiang.png"}this.freshUser()}freshUser(){let t=Moyu.getUserInfo();t.isAuth?To.upRankData():t.headIcon="res/ty_touxiang.png",this.ui.headNode.nameTxt.text=vo.tools.reviseString(t.nickName,16),vo.common.createHead(this.ui.headNode.headRoot.headImg,t.headIcon)}interuptSecretary(){Laya.timer.clearAll(this),this.playSecretaryRandomSound()}playSecretaryRandomSound(){if(this.isHide)return;let t=vo.common.randomNum(45e3,6e4);Laya.timer.once(t,this,()=>{if(this.isHide)return;let t=vo.common.randomNum(4,7);vo.soundMgr.playSound("s_main0"+t);let e=1;switch(t){case 4:e=5;break;case 5:e=3;break;case 6:e=6;break;case 7:e=7}vo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),this.playSecretaryRandomSound()})}openSecretaryView(){vo.uiMgr.Show(Mt),Moyu.sendDataEvent("secretary")}openShopView(){vo.uiMgr.Show(Rt)}openSignView(){vo.uiMgr.Show(Et)}openDrawView(){vo.uiMgr.Show(pe)}openRanking(){vo.uiMgr.Show(Ut),Moyu.sendDataEvent("rankingList")}}Yt.uiName="UIMain";class Xt extends A{constructor(){super(),this.success=!1,this.awardCoinNum=1e3,this.awardDiamondNum=10}onConstructor(){this.ui=ot.createInstance(),this.contentPane=this.ui,this.addUIClick(this.ui.leftBtn,this.clickLeftBtn),this.addUIClick(this.ui.closeNode.closeBtn,this.returnHome),this.addUIClick(this.ui.rightBtn,this.clickRightBtn),this.moneyNode=new ye(this.ui.moneyNode),this.ui.talkNode.visible=!1,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}updateType(){switch(vo.common.gameMode){case f.classic:this.ui.c1.selectedIndex=this.success?0:1,this.ui.coinNode.visible=this.success,this.success||Laya.timer.once(500,this,()=>{vo.uiMgr.Show(lt)}),this.ui.isGetAward.visible=!1,this.ui.leftBtn.c1.selectedIndex=3,this.ui.rightBtn.c1.selectedIndex=0,this.moneyNode.ui.c1.selectedIndex=1;break;case f.bigMove:this.ui.c1.selectedIndex=this.success?0:1,this.ui.coinNode.visible=this.success,vo.common.gameMode==f.bigMove&&(this.success?(To.setSkillSuccessTimes(1,!0),To.setSkillAccTimes(1)):To.setSkillSuccessTimes(0,!1)),this.success||Laya.timer.once(500,this,()=>{vo.uiMgr.Show(lt)}),this.ui.isGetAward.visible=!1,this.ui.leftBtn.c1.selectedIndex=3,this.ui.rightBtn.c1.selectedIndex=0,this.moneyNode.ui.c1.selectedIndex=1;break;case f.placeBall:this.ui.coinNode.visible=!1,this.success?3==vo.common.placeBallStarNum?this.ui.c1.selectedIndex=2:this.ui.c1.selectedIndex=3:this.ui.c1.selectedIndex=4;let t=cfgTable.placeballData[vo.common.placeBallCurLevel];t.type==w.challenge&&(this.ui.c1.selectedIndex=2),this.ui.conditionNode.conditionTxt.text=0==t.type?"打进场上所有球":`打进${t.ball}颗球`,this.updatePlaceBallBtn(),this.updatePlaceBallStarNum(),this.updatePlaceBallAwardState(),this.moneyNode.ui.c1.selectedIndex=2,this.moneyNode.checkPowerTime(),this.moneyNode.powerChange(),To.upRankData()}}updatePlaceBallBtn(){this.ui.leftBtn.c1.selectedIndex=5,this.success?this.ui.rightBtn.c1.selectedIndex=14:3==vo.common.placeBallStarNum?this.ui.rightBtn.c1.selectedIndex=14:this.ui.rightBtn.c1.selectedIndex=1}updatePlaceBallStarNum(){let t=vo.common.placeBallStarNum;this.ui.starNumNode.c1.selectedIndex=0==t?3:t-1}updatePlaceBallAwardState(){let t=vo.common.placeBallCurLevel,e=vo.common.placeBallStarNum,i=To.getPlaceBallLevel(t).getAward,s=cfgTable.placeballData[t].award,n=cfgTable.placeballData[t];this.awardDiamondNum=s[1],this.awardCoinNum=s[0],n.type==w.challenge&&(this.awardDiamondNum=0,this.awardCoinNum=100*vo.common.gameMgr.finishBalls),this.ui.awardNode.diamondNode.visible=this.awardDiamondNum>0,this.ui.awardNode.coinNode.visible=this.awardCoinNum>0,n.type==w.challenge&&(this.ui.awardNode.coinNode.visible=!0),this.awardCoinNum>0&&this.awardDiamondNum>0?(this.ui.awardNode.diamondNode.x=265,this.ui.awardNode.coinNode.x=354):(this.ui.awardNode.diamondNode.x=291,this.ui.awardNode.coinNode.x=291),this.ui.awardNode.diamondNode.numTxt.text=this.awardDiamondNum+"",this.ui.awardNode.coinNode.numTxt.text=this.awardCoinNum+"",0==this.awardCoinNum&&(this.ui.awardNode.coinNode.numTxt.text=""),i?(this.ui.isGetAward.visible=!0,this.ui.awardNode.diamondNode.c1.selectedIndex=2,this.ui.awardNode.coinNode.c1.selectedIndex=2):(this.ui.isGetAward.visible=!1,3==e&&n.type==w.challenge?(this.ui.awardNode.diamondNode.c1.selectedIndex=0,this.ui.awardNode.coinNode.c1.selectedIndex=0):(this.ui.awardNode.diamondNode.c1.selectedIndex=1,this.ui.awardNode.coinNode.c1.selectedIndex=1))}show(t){super.show(),vo.eventMgr.event(r),this.success=t,Laya.timer.clearAll(this),this.playSecretaryAni(),Moyu.sendDataEvent("GameEnd",{id:vo.common.gameMode,res:this.success?1:2});let e=(new Date).getTime()-vo.common.gameStartTime;e=Math.floor(e/1e3),Moyu.sendDataEvent("gameOver",{isWin:this.success?1:0,timeConsuming:e,gameType:vo.common.gameMode}),this.updateType(),Laya.timer.once(200,this,()=>{this.addAward(()=>{this.updateType(),Laya.timer.once(500,this,()=>{this.showChallengeLevel()})})}),this.success?(vo.soundMgr.playSound("slots_roll01"),vo.soundMgr.playSound("s_win"),vo.common.showGirlTalkPop(8,this.ui.talkNode,this.ui.talkNode.womanTxt)):(vo.soundMgr.playSound("matchwin01"),vo.soundMgr.playSound("s_lose"),vo.common.showGirlTalkPop(9,this.ui.talkNode,this.ui.talkNode.womanTxt)),Moyu.isLegal||W.showBanner(!0);let i=To.getChallengeTimes();vo.common.gameMode==f.classic&&i>=1&&i<=3&&To.setChallengeTimes(1),this.success&&vo.common.gameMode==f.classic&&To.setClassicTimes()}showChallengeLevel(){if(0!=To.getChallengeTimes())return;let t=To.getSkillAccTimes(),e=To.getPlaceBallLevelList().length;(t>=3||e>=5)&&(vo.uiMgr.Show(ct),this.hide())}addAward(t){if(this.success)switch(vo.common.gameMode){case f.classic:this.awardCoinNum=vo.common.passAwardCoin,this.awardDiamondNum=0,vo.common.playObjFlyAnim(this.awardCoinNum,L.coin);break;case f.bigMove:this.awardCoinNum=vo.common.passAwardCoin,this.awardDiamondNum=0,vo.common.playObjFlyAnim(this.awardCoinNum,L.coin),t&&t();break;case f.placeBall:let e=vo.common.placeBallCurLevel;if(Moyu.sendDataEvent("PlaceBall",{id:e,res:this.success?1:2}),3!=vo.common.placeBallStarNum)return void(t&&t());if(To.getPlaceBallLevel(e).getAward)return void(t&&t());let i=cfgTable.placeballData[e],s=cfgTable.placeballData[e].award;this.awardCoinNum=s[0],this.awardDiamondNum=s[1],i.type==w.challenge&&(this.awardDiamondNum=0,this.awardCoinNum=100*vo.common.gameMgr.finishBalls);let n,a=new S(L.coin,this.awardCoinNum);this.awardDiamondNum>0?(n=new S(L.diamond,this.awardDiamondNum),vo.common.getAward([n,a],t)):vo.common.getAward([a],t),i.type==w.normal&&To.setPlaceBallAward(e)}else t&&t()}playSecretaryAni(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=vo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};if(this.success){let e=Math.random()<=.5?2:3;vo.common.secretary.play(n,e,!1,t,()=>{vo.common.secretary.play(n,1,!0,t)})}else vo.common.secretary.play(n,0,!0,t)}restartGame(){switch(vo.common.gameMode){case f.classic:vo.eventMgr.event(u),Moyu.sendDataEvent("GameAgain",{mode:vo.common.gameMode});break;case f.bigMove:this.hide(),vo.eventMgr.event(u),Moyu.sendDataEvent("GameAgain",{mode:vo.common.gameMode})}}hide(){super.hide(),vo.common.stopGirlPop(this.ui.talkNode),W.showBanner(!1)}returnHome(){this.hide();let t=!this.success;vo.uiMgr.Show(Yt,t)}clickLeftBtn(){switch(vo.common.gameMode){case f.classic:case f.bigMove:this.returnHome();break;case f.placeBall:let t=vo.common.placeBallCurLevel;this.powerStartPlaceBallLevel(t,this.ui.leftBtn),Moyu.sendDataEvent("GameAgain",{mode:vo.common.gameMode})}}powerStartPlaceBallLevel(t,e){To.powerEnough()?(e.touchable=!1,e.powerEft.t0.play(Laya.Handler.create(this,()=>{e.touchable=!0,To.setPower(-1),vo.eventMgr.event(p),this.startPlaceBallLevel(t)}))):vo.uiMgr.Show(It,0)}clickRightBtn(){switch(vo.common.gameMode){case f.classic:case f.bigMove:this.restartGame();break;case f.placeBall:let t=vo.common.placeBallCurLevel,e=To.getPlaceBallLevel(t);e.play&&!e.isCur?this.powerStartPlaceBallLevel(t+1,this.ui.rightBtn):(Moyu.sendDataEvent("placeBallNextLevel"),Moyu.showVideoAd(()=>{To.setPlaceBallLevel(t,1),this.startPlaceBallLevel(t+1)},vo.define.EAdType.placeBallNextLevel))}}startPlaceBallLevel(t){vo.common.gameMode=f.placeBall,vo.common.placeBallCurLevel=t,vo.uiMgr.Show(ge),this.hide()}}Xt.uiName="UIGameEnd";class zt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIRepentProp")}onConstruct(){this.c1=this.getController("c1"),this.n11=this.getChild("n11"),this.regretNode=this.getChild("regretNode"),this.helpLineNode=this.getChild("helpLineNode"),this.t0=this.getTransition("t0")}}zt.URL="ui://isxx5ak7trk948v";class Kt extends A{constructor(){super(),this.viewType=0,this.regretType=0}onConstructor(){this.ui=zt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.regretNode.cancelBtn,this.hideSelf),this.addUIClick(this.ui.regretNode.videoBtn,this.videoRegret),this.addUIClick(this.ui.helpLineNode.cancelBtn,this.hideSelf),this.addUIClick(this.ui.helpLineNode.videoBtn,this.videoAddHelpLine)}show(t,e,i){if(W.showInsert(!0),this.viewType=t,this.regretType=e,this.callback=i,super.show(),this.ui.t0.play(),this.ui.c1.selectedIndex=this.viewType,this.ui.regretNode.tipsTxt.text=0==this.regretType?"Missed the target ball!":"The cue ball has been pocketed!",0==this.viewType){let t=To.getGuideHelpLine();this.ui.helpLineNode.c1.selectedIndex=0==t?1:0,this.ui.helpLineNode.videoBtn.c1.selectedIndex=0==t?1:0}vo.common.gameMgr.gamePause=!0}hideSelf(){vo.common.gameMgr.gamePause=!1,this.callback&&this.callback(!1),this.hide()}videoRegret(){Moyu.showVideoAd(()=>{this.callback&&this.callback(!0),this.hideSelf()},N.regretBall)}videoAddHelpLine(){0==To.getGuideHelpLine()?(this.callback&&this.callback(!0),this.hideSelf(),To.setGuideHelpLine(),vo.common.gameUI.ui.guideNode.visible=!1):Moyu.showVideoAd(()=>{this.callback&&this.callback(!0),this.hideSelf()},N.longHelpLine)}}Kt.uiName="UIRepentProp";class qt extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIVideoShare")}onConstruct(){this.n10=this.getChild("n10"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}qt.URL="ui://isxx5ak7hkrz3tj";class Zt extends A{constructor(){super(),this.success=!1,this.awardNum=0,this.isShared=!0}onConstructor(){this.ui=qt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.closeBtn,this.hideSelf),this.addUIClick(this.ui.myNode.shareBtn,this.videoShare),this.addUIClick(this.ui.myNode.share2Btn,this.shareGame),this.addUIClick(this.ui.myNode.tipsNode.shareNode,this.checkForceShare)}show(t){super.show(),this.ui.myNode.screenNode.screenImg.displayObject.texture=vo.common.screenImg,this.ui.myNode.screenNode.screenImg.displayObject.scaleY=-1,this.ui.myNode.screenNode.screenImg.displayObject.y=this.ui.myNode.screenNode.screenImg.y+.5*this.ui.myNode.screenNode.screenImg.height,this.success=t;let e=vo.common.randomNum(600,1500);Moyu.showInsertAd(e,6e4),t&&vo.soundMgr.playSound("applause"),this.ui.t0.play(),this.checkShareState();let i=To.getDailyVideoShareTimes();this.awardNum=0==i?2e3:200,this.ui.myNode.awardNode.coinTxt.text="x"+this.awardNum}checkShareState(){0==W.forceShare?(this.ui.myNode.closeBtn.visible=!0,this.ui.myNode.tipsNode.visible=!1,this.ui.myNode.closeBtn.x=90,this.ui.myNode.shareBtn.x=342):1==W.forceShare&&(this.ui.myNode.closeBtn.visible=!1,this.ui.myNode.tipsNode.visible=!0,this.ui.myNode.shareBtn.x=218,this.isShared=!0,this.ui.myNode.tipsNode.shareNode.c1.selectedIndex=this.isShared?0:1)}checkForceShare(){this.isShared=!this.isShared,this.ui.myNode.tipsNode.shareNode.c1.selectedIndex=this.isShared?0:1}videoShare(){1==W.forceShare?this.isShared?this.shareGame():this.hideSelf():this.shareGame()}shareGame(){Moyu.sendDataEvent("VideoShare"),Moyu.canShare()>100?Moyu.shareGame(t=>{t&&(To.setDailyVideoShareTimes(1),To.setCoin(this.awardNum)),this.hideSelf()},this):(vo.uiMgr.Show(_t,"录屏时间不足,分享失败"),this.hideSelf())}hideSelf(){this.hide(),vo.uiMgr.Show(Xt,this.success),vo.common.screenImg&&!vo.common.screenImg.destroyed&&(vo.common.screenImg.destroy(),vo.common.screenImg=null)}}Zt.uiName="UIVideoShare";class $t extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITips")}onConstruct(){this.n0=this.getChild("n0"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}$t.URL="ui://isxx5ak7mnrs42z";class Jt extends A{constructor(){super(),this.type=0}onConstructor(){this.ui=$t.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.cancelBtn,this.clickLeftBtn),this.addUIClick(this.ui.myNode.sureBtn,this.clickRightBtn)}show(t,e,i){switch(super.show(),this.ui.t0.play(),this.ui.myNode.tipsTxt.text=t,this.ui.myNode.womanTxt.text=e,W.showInsert(!0),this.ui.myNode.c1.selectedIndex=i,this.type=i,this.type){case v.exitGame:vo.common.gameMgr.gamePause=!0;break;case v.foul:Laya.timer.once(200,this,()=>{vo.common.gameMgr.gamePause=!0})}}clickLeftBtn(){switch(this.hide(),vo.common.gameMgr.gamePause=!1,this.type){case v.exitGame:case v.foul:}}clickRightBtn(){switch(this.hide(),this.type){case v.exitGame:vo.eventMgr.event(r),vo.uiMgr.Show(Yt),Moyu.recordEnd(this,null),vo.common.longHelpLine=!1;break;case v.foul:vo.common.gameMgr.gamePause=!1,Laya.timer.clearAll(this)}}}Jt.uiName="UITips";class Qt{constructor(){this.selfCamp="",this.selfFoulNum=0,this.selfBallArr=[],this.selfTimer=0,this.selfScore=0,this.aiCamp="",this.aiFoulNum=0,this.aiBallArr=[],this.aiTimer=0,this.aiScore=0,this.aiSkillLevelNum=1,this.targertScore=0,this.setTime=30,this.selfTurnRate=.5,this.accTime=0,this.curFoul="",this.maxFoulTimes=3,this.isFirstInGame=!0,this.firstColliObj=null,this.inHoleBalls=[],this.blackNum=8,this.success=!1,this.holePosList=[],this.posObj={},this._selfTurn=!1,this.lastRootBallPos=new Laya.Vector2(311,430),this.ensureBallType=!1,this.isOpenBall=!0,this.finishOneShoot=!0,this.isEnd=!1,this.isChangeTurn=!1,this.isInterrupt=!1,this.aiPlayedBreakArmy=!1,this.isTouchedBall=!1,this.finishBalls=0,this.needBalls=0,this.allBallNum=0,this.placeBallPosData={},this.curHP=0,this.showLongView=!1,this.firstShoot=!0,this._gamePause=!1,this.trunCount=0,this.isBlackInHole=!1,this.isEnter=!0,vo.eventMgr.offAll(n),vo.eventMgr.on(n,this,this.gameRun),vo.eventMgr.off(h,this,this.ballShoot),vo.eventMgr.on(h,this,this.ballShoot),vo.eventMgr.off(l,this,this.ensureCamp),vo.eventMgr.on(l,this,this.ensureCamp),vo.eventMgr.off(r,this,this.resetGame),vo.eventMgr.on(r,this,this.resetGame)}get gamePause(){return this._gamePause}set gamePause(t){t?Laya.physicsTimer.pause():Laya.physicsTimer.resume(),this._gamePause=t}get selfTurn(){return this._selfTurn}set selfTurn(t){this.trunCount++,this._selfTurn=t,t?(vo.common.d2World.d2Gan.ui.self.visible=!0,vo.common.d2World.d2Gan.ui.ai.visible=!1):(vo.common.d2World.d2Gan.ui.self.visible=!1,vo.common.d2World.d2Gan.ui.ai.visible=!0,this.trunCount>1&&W.openBox())}resetGame(){this.inHoleBalls=[],this.isFirstInGame=!0,this.firstColliObj=null,this.aiCamp="",this.selfCamp="",this.aiFoulNum=0,this.selfFoulNum=0,this.selfBallArr=[],this.aiBallArr=[],this.gamePause=!1,this.ensureBallType=!1,this.isInterrupt=!1,this.updateLeftBall(),this.clearTime(),this.aiPlayedBreakArmy=!1,this.isBlackInHole=!1,this.placeBallPosData={},vo.common.d3World.knifeRoot&&vo.common.d3World.knifeRoot.destroyChildren()}gameReady(){this.trunCount=0,this.firstColliObj=null,this.isFirstInGame=!0,this.selfTurn=Math.random()<=this.selfTurnRate;let t=To.getChallengeTimes();vo.common.gameMode==f.classic&&t>=1&&t<=3&&(this.selfTurn=!0),vo.common.gameMode==f.placeBall&&(this.selfTurn=!0),vo.common.gameMode!=f.bigMove||To.getSkillGuide()||(this.selfTurn=!0),vo.common.gameUI.setTurnAlpha(this.selfTurn),this.checkGuide(),vo.common.uiRodMethod&&vo.common.uiRodMethod.resetRod(),vo.common.d2World.getHelpLine(),this.isOpenBall=!0,this.isTouchedBall=!1,vo.common.aiPlayer.stopRun(),this.setTime=30;let e=vo.common.gameUI.ui;switch(vo.common.gameMode){case f.classic:vo.common.aiPlayer.init(),this.blackNum=8,this.placeRootBall(),this.peoplePlay(9,10),e.wordsBtn.visible=!0,e.aiWordsBtn.visible=!0,vo.common.talkMgr.changeAIState(!0),To.gameData.gameCount++,To.saveGameData();break;case f.bigMove:this.blackNum=-1,this.selfScore=0,this.aiScore=0,vo.common.aiPlayer.init(),this.targertScore=cfgTable.bigmoveData[vo.common.bigMoveLevelIndex].target,this.updateSelfScore(),this.updateAIScore(),this.updateTargetSroce(),this.placeRootBall(),this.peoplePlay(9,10),e.wordsBtn.visible=!0,e.aiWordsBtn.visible=!0,vo.common.talkMgr.changeAIState(!0),To.getSkillGuide()<1?To.gameData.gameCount=0:(To.gameData.gameCount++,To.saveGameData(),W.openTry()),vo.common.d3World.knifeRoot&&vo.common.d3World.knifeRoot.destroyChildren();break;case f.placeBall:this.blackNum=-1,this.selfTurn=!0,this.setTime=1e4,this.placeBallData=cfgTable.placeballData[vo.common.placeBallCurLevel],this.curHP=this.placeBallData.hp,-1==this.placeBallData.ball?this.needBalls=vo.common.d2World.ballArr.length-1:this.needBalls=this.placeBallData.ball,console.log("需要的进球数目",this.needBalls),this.allBallNum=vo.common.d2World.ballArr.length-1,this.finishBalls=0,this.placeBallPosData={},this.updatePlaceBallPos(),this.updatePlaceBallState(),this.finishOneShoot=!0,vo.common.gameUI.ui.moveNode.visible=!1,this.isOpenBall=!1,vo.common.d2World.d2Gan.ui.ai.visible=!1,e.wordsBtn.visible=!1,e.aiWordsBtn.visible=!1,vo.common.talkMgr.changeAIState(!1),Laya.timer.frameOnce(vo.tools.random(2e3,5100),this,()=>{W.openBox()})}this.showLongView=!1,vo.common.wordsMgr.comboTimes=1,To.getSkillGuide()&&vo.eventMgr.event(a),vo.common.upSkillLevel=!1,vo.common.gameStartTime=(new Date).getTime(),this.firstShoot=!0}checkGuide(){let t=To.getSkillGuide(),e=vo.common.gameUI.ui;if(e.guide1.visible=!1,e.guide2.visible=!1,e.guide3.visible=!1,0!=t||vo.common.gameMode!=f.bigMove)return;this.selfTurn=!0;let i=this.getOneBall();e.guide1.visible=!0,e.guide1.fingerNode.x=i.gameObj.x,e.guide1.fingerNode.y=i.gameObj.y}getOneBall(){let t=vo.common.d2World.ballArr;for(let e=0;e{e.hpTxt.visible=!0,e.starAni.c1.selectedIndex=0}))}}getEndStarNum(){let t,e=vo.common.placeBallCurLevel;t=this.curHP==this.placeBallData.hp?3:this.curHP<=1?1:2,this.success?To.setPlaceBallLevel(e,t):t=0;let i=cfgTable.placeballData[e].type;this.success&&1==i&&(t=3),vo.common.placeBallStarNum=t}updatePlaceBallStar(t){let e,i=0;i=this.curHP==this.placeBallData.hp?3:this.curHP>=2?2:1==this.curHP?1:0;for(let s=1;s<=3;s++)(e=t["star"+s]).c1.selectedIndex=i>=s?1:0;t.myProgress.value=i/3*100}openRegretView(t,e,i=!1){let s=-1;t?s=1:e<=0&&(s=0),i&&(s=1),-1!=s&&vo.uiMgr.Show(Kt,1,s,t=>{t?(this.curHP++,this.updatePlaceBallState(),this.setPlaceBallAllPos(),vo.common.gameUI.ui.moveNode.visible=!1):(this.curHP<=0&&(this.success=!1,this.gameEnd()),this.playSubHpAni()),this.updatePlaceBallState(),this.updatePlaceBallPos()})}setPlaceBallAllPos(){let t,e,i=vo.common.d2World.ballArr,s=this.placeBallPosData;for(let n=0;n{vo.common.destroyClassicEmotion(),this.isEnd?this.isBlackInHole?(vo.common.gameUI.ui.blackAni.visible=!0,vo.common.gameUI.ui.blackAni.t0.play(Laya.Handler.create(this,()=>{vo.common.gameUI.ui.blackAni.visible=!1,this.gameEnd()}))):this.gameEnd():(this.waitShoot(),vo.eventMgr.event(a))});else if(vo.common.gameMode==f.bigMove){vo.common.aiPlayer.stopRun();let t=this.getScore(this.curFoul);this.judgeScoreEnd(t[0],t[1])&&(this.isEnd=!0),this.checkBigSkillWords(()=>{this.isEnd?this.gameEnd():(this.waitShoot(),vo.eventMgr.event(a))})}else if(vo.common.gameMode==f.placeBall){vo.common.destroyAwardSpine();let t=this.curFoul==s.rootHole,e=this.inHoleBalls.length;this.inHoleBalls.indexOf(0)>-1&&(e-=1),t&&this.placeRootBall(),console.log("neeballs",this.needBalls),console.log("当前完成的goalNum",e),this.finishBalls+=e,console.log("当前完成的finishballs",this.finishBalls);let i=this.needBalls;if(this.placeBallData.type==w.challenge&&(i+=100),this.finishBalls>=i)this.success=!0,this.gameEnd();else switch(this.placeBallData.type){case w.normal:!t&&e>0?(this.updatePlaceBallPos(),this.updatePlaceBallState()):(this.curHP--,this.openRegretView(t,e)),this.waitShoot(),vo.eventMgr.event(a);break;case w.challenge:this.curHP--,this.updatePlaceBallState(),t?this.openRegretView(t,e,!0):(this.updatePlaceBallPos(),this.curHP<=0&&(this.success=!0,this.gameEnd())),this.waitShoot(),vo.eventMgr.event(a)}}}checkClassicWords(t){vo.common.wordsMgr.setClassicCombo(this.isChangeTurn);let e=!this.isChangeTurn&&(""==this.curFoul||this.curFoul==s.wrongTouch),i=this.getClassicWordsType();if(e&&-1!=i){let e=Math.random()<=.5?"hint01":"hint02";vo.soundMgr.playSound(e),vo.common.wordsMgr.playClassicWords(i,t)}else Laya.timer.once(300,this,()=>{t&&t()})}getClassicWordsType(){let t=vo.common.d2World,e=-1;if(!this.isInterrupt&&this.judgeNormalSuccess())return e=I.perfectShow;if(1==this.inHoleBalls.length&&t.targetBall&&this.inHoleBalls[0]==t.targetBall.number&&t.isOnSameLine)return e=I.directShoot;if(this.inHoleBalls.length>0&&(null==t.targetBall||this.inHoleBalls.indexOf(t.targetBall.number)<=-1))return e=I.anotherShoot;if(100==t.powerPercent&&this.inHoleBalls.length>0)return e=I.bigPower;return 1==this.inHoleBalls.length&&vo.common.d2World.inHolesSpeed[0]<=1?e=I.hardShoot:this.inHoleBalls.length>0?e=I.directShoot:e}checkBigSkillWords(t){if(this.curFoul==s.timeOut)t&&t();else{let e=!1;this.selfTurn?e=!0:(this.aiPlayedBreakArmy||(this.aiPlayedBreakArmy=!0,e=!0),this.aiCurSkill!=b.breakArmy&&(e=!0)),vo.common.skillMgr.playedLastSkill&&(vo.common.skillMgr.playedLastSkill=!1,e=!1),e?vo.common.skillMgr.runBigSkill(e=>{let i=0,s=0;this.selfTurn?i+=e:s+=e,this.judgeScoreEnd(i,s)&&(this.isEnd=!0),this.playBigSkillTimes(t)}):this.playBigSkillTimes(t)}}playBigSkillTimes(t){let e=this.inHoleBalls.length;this.inHoleBalls.indexOf(0)>-1&&(e=this.inHoleBalls.length-1),e<=0?t&&t():vo.common.wordsMgr.playBigSkillTimes(e,()=>{t&&t()})}playSkillTips(){let t,e=0;this.selfTurn?(e=To.getBigSkillByIndex(this.selfCurSkill),(t=this.selfCurSkill)==To.gameData.trySkill&&Laya.timer.currTimer0?this.selfBallArr.indexOf(this.firstColliObj)<=-1&&(t=s.wrongTouch):this.ensureBallType||this.firstColliObj==this.blackNum&&(t=s.wrongTouch):this.aiBallArr.length>0?this.aiBallArr.indexOf(this.firstColliObj)<=-1&&(t=s.wrongTouch):this.ensureBallType||this.firstColliObj==this.blackNum&&(t=s.wrongTouch),this.inHoleBalls.length<=0)return t;let e,i;if(this.inHoleBalls.indexOf(0)>-1)t=s.rootHole;else for(let i=0;i-1&&!this.isOpenBall){t=s.wrongHole;break}}else if(this.selfBallArr.indexOf(e)>-1&&!this.isOpenBall){t=s.wrongHole;break}for(let t=0;t-1&&this.selfBallArr.splice(i,1),(i=this.aiBallArr.indexOf(e))>-1&&this.aiBallArr.splice(i,1);this.updateLeftBall()}return t}judgeGameEndByBlack(t){if(this.selfTurn){if(this.selfBallArr.length>0&&t.indexOf(this.blackNum)>-1)return this.selfFoulNum=this.maxFoulTimes,!0}else if(this.aiBallArr.length>0&&t.indexOf(this.blackNum)>-1)return this.aiFoulNum=this.maxFoulTimes,!0}judgeClassic(t){if(this.isBlackInHole=this.judgeGameEndByBlack(this.inHoleBalls),vo.common.aiPlayer.stopRun(),this.judgeNormalSuccess())return void(this.isEnd=!0);let e=t==s.timeOut||t==s.rootHole;if(this.selfTurn){if(e&&this.selfFoulNum++,this.selfFoulNum>=this.maxFoulTimes)return this.success=!1,void(this.isEnd=!0)}else if(e&&this.aiFoulNum++,this.aiFoulNum>=this.maxFoulTimes)return this.success=!0,void(this.isEnd=!0);(""==t||t==s.wrongTouch)&&this.inHoleBalls.length>0?this.isChangeTurn=!1:this.isInterrupt=!0}waitShoot(){if(vo.common.gameMode==f.classic)switch(this.curFoul){case s.timeOut:case s.rootHole:this.selfTurn=!this.selfTurn,this.peoplePlay(5,6,!0);break;case s.notTouch:this.selfTurn=!this.selfTurn,this.peoplePlay(7,7);break;case s.wrongHole:this.selfTurn=!this.selfTurn,this.peoplePlay(11,11);break;default:this.inHoleBalls.length>0?this.peoplePlay(0,0,!1,!1):(this.selfTurn=!this.selfTurn,this.peoplePlay(7,7))}else vo.common.gameMode==f.bigMove?this.curFoul==s.timeOut?(this.selfTurn=!this.selfTurn,this.peoplePlay(14,15),this.placeRootBall()):(this.selfTurn=!this.selfTurn,this.curFoul==s.rootHole?(this.peoplePlay(12,13),this.placeRootBall()):this.peoplePlay(0,0,!1,!1)):vo.common.gameMode==f.placeBall&&(this.finishOneShoot=!0);this.gameResult()}gameResult(){this.firstColliObj=null,this.inHoleBalls=[];let t=vo.common.d2World.rootBall.gameObj.x,e=vo.common.d2World.rootBall.gameObj.y;vo.common.gameMgr.lastRootBallPos.setValue(t,e),vo.common.uiRodMethod&&vo.common.uiRodMethod.resetRod(),vo.common.d2World.rootBall.showSelf(),this.clearIceSkill(),this.selfTurn&&(console.log("gameResult"),W.gameInsert()),vo.common.d3World.knifeRoot.destroyChildren(),this.selfTurn?(vo.common.gameUI.showHelpLineGuide(),vo.common.gameUI.setTurnAlpha(!0)):vo.common.gameUI.setTurnAlpha(!1)}getScore(t){let e=0,i=0;return t==s.timeOut?this.selfTurn?i+=3:e+=3:this.inHoleBalls.length>0&&(this.selfTurn?t==s.rootHole?(i+=3,this.inHoleBalls.length-1>0&&(e+=this.inHoleBalls.length-1)):e+=this.inHoleBalls.length:t==s.rootHole?(e+=3,this.inHoleBalls.length-1>0&&(i+=this.inHoleBalls.length-1)):i+=this.inHoleBalls.length),[e,i]}judgeScoreEnd(t,e){if(this.selfScore+=t,this.aiScore+=e,this.updateAIScore(),this.updateSelfScore(),this.selfScore>=this.targertScore)return this.success=!0,!0;if(this.aiScore>=this.targertScore)return this.success=!1,!0;let i=vo.common.d2World.ballArr;return 1==i.length&&0==i[0].number?this.selfScore>this.aiScore?(this.success=!0,!0):this.selfScore-1)return this.success=!0,!0}else if(this.aiBallArr.length<=0&&this.inHoleBalls.indexOf(this.blackNum)>-1)return this.success=!1,!0}gameEnd(){Moyu.isTT&&(vo.common.screenImg=getScreenImg()),console.log("游戏结束",this.success),vo.common.aiPlayer.stopRun(),vo.common.gameMode==f.placeBall&&(this.getEndStarNum(),this.updatePlaceBallState()),this.isEnter=!1,Moyu.recordEnd(this,()=>{this.isEnter||(this.isEnter=!0,console.log("进入录结束回调"),this.enterNext())}),Laya.timer.once(1e3,this,()=>{this.isEnter||(this.isEnter=!0,this.enterNext())}),vo.common.longHelpLine=!1}enterNext(){Laya.timer.clearAll(this),Moyu.canShare()>100||Moyu.isKs?vo.uiMgr.Show(Zt,this.success):vo.uiMgr.Show(Xt,this.success)}aiLeave(){vo.common.gameUI.ui.topNode.aiNameTxt.text="offline"}aiGameEnd(t){this.success=t,vo.common.aiPlayer.stopRun(),this.success&&(vo.uiMgr.Show(_t,"The opponent has fled"),Laya.timer.once(1e3,this,()=>{this.clearTime(),this.gameEnd()}))}openTimer(){let t=vo.common.gameUI;this.selfTurn?(t.ui.topNode.selfProgress.visible=!0,t.ui.topNode.aiProgress.visible=!1,this.curTimer=t.ui.topNode.selfProgress):(t.ui.topNode.selfProgress.visible=!1,t.ui.topNode.aiProgress.visible=!0,this.curTimer=t.ui.topNode.aiProgress),this.accTime=0,Laya.timer.clearAll(this),Laya.timer.loop(20,this,this.updateTime,[.02]),this.curTimer.value=100}updateTime(t){this.gamePause||(this.accTime+=t,this.curTimer.value=100*(this.setTime-this.accTime)/this.setTime,this.accTime>=this.setTime&&(this.clearTime(),console.log("时钟进入了gameRun"),this.gameRun(s.timeOut)))}clearTime(){let t=vo.common.gameUI;t.ui.topNode.selfProgress.visible=!1,t.ui.topNode.aiProgress.visible=!1,Laya.timer.clearAll(this)}peoplePlay(t,e,i=!1,n=!0){let a,o,h=vo.common.gameUI.ui;if(n&&(a=cfgTable.wordsData[t].msg,o=cfgTable.wordsData[e].msg,i&&(a=a.replace("$",this.aiFoulNum+""),o=o.replace("$",this.selfFoulNum+""),this.placeRootBall(),!this.selfTurn&&vo.common.gameMode==f.classic)))if(this.curFoul==s.rootHole){if(!To.getRootBallFoul()){To.setRootBallFoul(),o="";let t="The cue ball (white ball) has been pocketed. Three fouls have been committed—you lose this game",e="Boss, pay attention next time~";vo.uiMgr.Show(Jt,t,e,v.foul)}}else if(this.curFoul==s.timeOut&&!To.getTimeoutFoul()){To.setTimeoutFoul(),o="";let t="Game timeout, 3 fouls, this game failed.",e="Boss, pay attention to the timeline~";vo.uiMgr.Show(Jt,t,e,v.foul)}if(this.selfTurn)n&&vo.uiMgr.Show(_t,a,()=>{h.selfTurn.visible=!0,h.aiTurn.visible=!1,h.selfTurn.t0.play(),Moyu.vibration()});else{let t=vo.tools.random(1,11),e=To.getChallengeTimes(),i=!1;if(vo.common.gameMode==f.classic&&e>=1&&e<=3&&(t=9,this.aiBallArr.length<=2&&this.ensureBallType&&(t=3,3==e&&(this.showLongView||(this.showLongView=!0,i=!0)))),i)return void vo.uiMgr.Show(Kt,0,0,e=>{e?(vo.common.longHelpLine=!0,vo.common.d2World.getHelpLine()):t=10,vo.common.aiPlayer.setAiLevel(t),n?vo.uiMgr.Show(_t,o,()=>{vo.common.aiPlayer.runAI(),h.selfTurn.visible=!1,h.aiTurn.visible=!0,h.aiTurn.t0.play()}):vo.common.aiPlayer.runAI(),this.openTimer(),this.finishOneShoot=!0,this.selfTurn?(h.topNode.selfKuang.visible=!0,h.topNode.aiKuang.visible=!1,h.topNode.selfTips.visible=!0,h.topNode.aiTips.visible=!1):(h.topNode.selfKuang.visible=!1,h.topNode.aiKuang.visible=!0,h.topNode.selfTips.visible=!1,h.topNode.aiTips.visible=!0)});if(vo.common.gameMode==f.classic){let e=cfgTable.modeselectData[vo.common.classicRoomType];if(e){let i=vo.common.randomNum(e.aiLevel[0],e.aiLevel[1]);t=i}}vo.common.aiPlayer.setAiLevel(t),n?vo.uiMgr.Show(_t,o,()=>{vo.common.aiPlayer.runAI(),h.selfTurn.visible=!1,h.aiTurn.visible=!0,h.aiTurn.t0.play()}):vo.common.aiPlayer.runAI()}this.openTimer(),this.finishOneShoot=!0,this.selfTurn?(h.topNode.selfKuang.visible=!0,h.topNode.aiKuang.visible=!1,h.topNode.selfTips.visible=!0,h.topNode.aiTips.visible=!1):(h.topNode.selfKuang.visible=!1,h.topNode.aiKuang.visible=!0,h.topNode.selfTips.visible=!1,h.topNode.aiTips.visible=!0)}placeRootBall(){let t=vo.common.d2World.rootBall;if(!t)return;t.gameObj.x=this.lastRootBallPos.x,t.gameObj.y=this.lastRootBallPos.y,t.d3BallSrc.setTransPos(this.lastRootBallPos.x,this.lastRootBallPos.y);let e=vo.common.gameUI.ui.moveNode;e.visible=!0,e.x=this.lastRootBallPos.x,e.y=this.lastRootBallPos.y,this.selfTurn||vo.common.aiPlayer.resetRoot()}}class te extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","guanyuAni")}onConstruct(){this.n0=this.getChild("n0")}}te.URL="ui://isxx5ak7jaakv55u";class ee extends A{constructor(){super()}onConstructor(){this.isEject=!1}show(t){super.show()}}ee.uiName="UIFireworks";class ie extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIGuanYu")}onConstruct(){this.n2=this.getChild("n2"),this.n1=this.getChild("n1"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n7=this.getChild("n7"),this.t0=this.getTransition("t0")}}ie.URL="ui://isxx5ak7dt0av4yc";class se extends A{constructor(){super()}onConstructor(){this.ui=ie.createInstance(),this.contentPane=this.ui,this.isEject=!1}show(t){super.show(),this.ui.t0.play(Laya.Handler.create(this,()=>{t&&t(),this.hide()}))}}se.uiName="UIGuanYu";class ne{constructor(){this.leveNum=0,this.extraScore=0,this.selfTurn=!1,this.playedLastSkill=!1,this.tweenArr=[],this._finishNum=0,this._curFinish=0,this._rootX=0,this._rootY=0,this.knifeTimes=0,this.knifeV2=new Laya.Vector2,this.knifeV3=new Laya.Vector3,this.rtStarX=0,this.rtStarY=0,this.addBigSkillSpine(),vo.eventMgr.on(r,this,this.resetGame)}addBigSkillSpine(){this.skillSpine2=new X("yxz_dazhao",()=>{console.log("extra2 success")})}runBigSkill(t){this.tweenArr=[],this.callback=t,this.judgeSkill(),this.leveNum=To.getBigSkillByIndex(this.curSkill);let e=To.getSkillGuide();vo.common.gameMgr.selfTurn?(0!=vo.common.temSelfLevel&&(this.leveNum=vo.common.temSelfLevel),this.curSkill==To.gameData.trySkill&&Laya.timer.currTimer{switch(this.curSkill){case b.highSpace:this.runHighSpace();break;case b.breakArmy:this.runBreakArmy();break;case b.ice:this.runIce();break;case b.fireworks:this.runFireworks();break;case b.GuanYu:this.runGuanYu()}})}judgeSkill(){let t,e=[b.highSpace,b.breakArmy,b.ice,b.GuanYu],i=vo.common.gameMgr;for(let s=0;s{t&&t()});break;case b.breakArmy:n=2,vo.soundMgr.playSound("skill02"),s=this.skillSpine2,e.scaleX=.5,e.scaleY=.5,s.play(e,2,!1,i,()=>{t&&t()});break;case b.ice:n=0,vo.soundMgr.playSound("skill03"),s=this.skillSpine2,e.scaleX=.5,e.scaleY=.5,s.play(e,0,!1,i,()=>{t&&t()});break;case b.fireworks:vo.soundMgr.playSound("skill_04_01"),vo.soundMgr.playSound("skill04"),vo.uiMgr.Show(ee,t);break;case b.GuanYu:vo.soundMgr.playSound("skill05_1"),vo.soundMgr.playSound("skill05"),vo.uiMgr.Show(se,t)}}getAllBallArr(){let t=vo.common.d2World.ballArr,e=[];for(let i=0;i{Laya.Tween.to(i.d3BallSrc,{scaleXYZ:.5},e,Laya.Ease.sineIn)})),Laya.Tween.to(i,{myX:s.x,myY:s.y},2*e+10,null,Laya.Handler.create(this,()=>{let e=n[this._curFinish];if(a[e]?t[this._curFinish].checkWrongBall(!1):(a[e]=1,t[this._curFinish].checkWrongBall()),this._curFinish++,this._curFinish>=this._finishNum)if(this.curSkill==b.highSpace);else if(this.curSkill==b.breakArmy){let t=vo.common.d2World.rootBall;t.gameObj.x=this._rootX,t.gameObj.y=this._rootY,t.d3BallSrc.setTransPos(this._rootX,this._rootY),vo.common.d2World.d2Gan.ui.visible=!0,vo.common.d2World.d2HelpLine.ui.visible=!0,vo.common.d2World.getHelpLine(),this.callback&&this.callback(this.extraScore)}}))}}runHighSpace(){let t=vo.common.d2World.rootBall;t.showSelf();let e=t.d3BallSrc,i=this.getAllBallArr();if(i.length<=0)return void(this.callback&&this.callback(0));let s=vo.common.d2World.targetBall,n=s&&s.destroyed;s&&!n&&"ice"!=s.ballFunc||(s=vo.common.getRandArrEle(i));let a=s.d3BallSrc;vo.common.d2World.d2Gan.ui.visible=!1,vo.common.d2World.d2HelpLine.ui.visible=!1,e.scaleXYZ=.5,this.tweenArr.push(e),Laya.Tween.to(e,{scaleXYZ:1,posX:a.posX,posZ:a.posZ},1e3,Laya.Ease.sineOut,Laya.Handler.create(this,()=>{Laya.Tween.to(e,{scaleXYZ:.5},500,Laya.Ease.sineIn,Laya.Handler.create(this,()=>{let i=vo.poolD3Mgr.getItem(C.hitEft);i.transform.localPositionX=e.transform.localPositionX,i.transform.localPositionY=e.transform.localPositionY,i.transform.localPositionZ=e.transform.localPositionZ;let n=[s],a=this.leveNum-1;if(a>0){let t=this.getOneArr(s);if(t.length>0){vo.common.botherArr(t),a>=t.length&&(a=t.length);for(let e=0;e0&&(vo.common.d2World.openCheckStill=!0,this.playedLastSkill=!0);for(let i=0;i=e.length&&(this.leveNum=e.length);let i=e.length-this.leveNum;e.splice(0,i),this.extraScore=this.leveNum;let s=t.skillRod.x,n=t.skillRod.y;this._rootX=vo.common.d2World.rootBall.gameObj.x,this._rootY=vo.common.d2World.rootBall.gameObj.y;let a=[];for(let t=0;t{})).update=Laya.Handler.create(this,(i,o,h)=>{let l,r,c,d=t.skillRod.rotation;for(let t=0;t=t.length-1&&(this.leveNum=t.length-1);let e,i=[],s=[];for(let e=0;e{for(let t=0;t0&&t.length>0){vo.common.botherArr(t),i>=t.length&&(i=t.length);for(let s=0;s{t.length>0&&(vo.common.d2World.openCheckStill=!0,this.playedLastSkill=!0)}),vo.soundMgr.playSound("skill_04_02");let i=-200;for(let s=0;s{let e=vo.common.randomNum(0,360);e=this.getFireworksAngle(t);let i=vo.common.randomNum(45,80);t.destroyed||this.setLinearSpeed(e,t.rigy,i)})}getFireworksAngle(t){let e=vo.common.d2World.rootBall;return vo.common.getfguiRotation(t.gameObj.x-e.gameObj.x,t.gameObj.y-e.gameObj.y)}resetGame(){if(Laya.timer.clearAll(this),this.tweenArr)for(let t=0;t{let e;this.rtStarX=t.gameObj.x,this.rtStarY=t.gameObj.y,this.knifeTimes++,(e=vo.common.gameMgr.selfTurn?To.getBigSkillByIndex(4):vo.common.gameMgr.aiSkillLevelNum)||(e=1),e+=2,this.knifeTimes{this.guanyuRandomKnife()}):(t.forceRun=!1,t.rigy.type="dynamic",vo.common.extraMoveNum=e)}))}getRandDir(){let t=vo.common.d2World.rootBall,e=this.getAllBallArr(),i=vo.common.getRandArrEle(e);return this.knifeV2.setValue(i.gameObj.x-t.gameObj.x,i.gameObj.y-t.gameObj.y),this.knifeV2}cloneKnife(t,e,i){let s=vo.common.d3World.knifeRoot,n=vo.common.d3World.knife.clone();return s.addChild(n),vo.common.pos2to3Convert(t,e,this.knifeV3),n.transform.localPositionX=this.knifeV3.x,n.transform.localPositionY=0,n.transform.localPositionZ=this.knifeV3.z,n.transform.localRotationEulerX=0,n.transform.localRotationEulerY=i,n.transform.localRotationEulerZ=0,n.active=!0,n}cloneGuanYuEft(t,e,i){}}class ae extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIWordsList")}onConstruct(){this.c1=this.getController("c1"),this.n74=this.getChild("n74"),this.clickNode=this.getChild("clickNode"),this.myNode=this.getChild("myNode"),this.n68=this.getChild("n68"),this.n66=this.getChild("n66"),this.n55=this.getChild("n55"),this.wordsBtn=this.getChild("wordsBtn"),this.emotionBtn=this.getChild("emotionBtn"),this.mybggg=this.getChild("mybggg"),this.wordsList=this.getChild("wordsList"),this.emotionList=this.getChild("emotionList"),this.myRoot=this.getChild("myRoot")}}ae.URL="ui://isxx5ak7i4k243i";class oe{constructor(t,e){this.ui=e,this.index=t,this.ui.onClick(this,this.clickSelf),this.updateSelf()}updateSelf(){let t=cfgTable.emotionData[this.index+1];this.ui.myIcon.url=vo.common.getGameIconUrl(t.icon)}clickSelf(){vo.soundMgr.playSound(vo.common.btnClickStr),vo.common.talkMgr.showSelfEmotion(this.index+1),vo.common.talkMgr.closeTalkView()}}class he{constructor(t,e){this.ui=e,this.index=t,this.ui.onClick(this,this.clickSelf),this.updateSelf()}updateSelf(){let t=cfgTable.talkwordsData[this.index+1];this.ui.txt.text=t.msg}clickSelf(){vo.soundMgr.playSound(vo.common.btnClickStr),vo.common.talkMgr.showSelfTalk(this.index+1),vo.common.talkMgr.closeTalkView()}}class le extends A{constructor(){super()}onConstructor(){this.ui=ae.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.wordsBtn,this.openTalkList),this.addUIClick(this.ui.emotionBtn,this.openEmotionList),this.addUIClick(this.ui.clickNode,this.hide),this.initTalkList(),this.initEmotionList()}show(){super.show()}initTalkList(){this.ui.wordsList.itemRenderer=Laya.Handler.create(this,this.renderTalkItem,null,!1);let t=cfgTable.talkwordsData,e=Object.keys(t).length;this.ui.wordsList.numItems=e}initEmotionList(){this.ui.emotionList.itemRenderer=Laya.Handler.create(this,this.renderEmotionItem,null,!1);let t=cfgTable.emotionData,e=Object.keys(t).length;this.ui.emotionList.numItems=e}renderTalkItem(t,e){new he(t,e)}renderEmotionItem(t,e){new oe(t,e)}openTalkList(){this.ui.c1.selectedIndex=0}openEmotionList(){this.ui.c1.selectedIndex=1}}le.uiName="UIWordsList";class re{constructor(){this.aiSpeak=!0,this.emotionList=[],this.talkList=[],this.addEvent(),vo.eventMgr.on(r,this,this.resetGame),this.emotionList=[],this.talkList=[];for(let t in cfgTable.emotionData)this.emotionList.push(cfgTable.emotionData[t].id);for(let t in cfgTable.talkwordsData)this.talkList.push(cfgTable.talkwordsData[t].id)}addEvent(){let t=vo.common.gameUI.ui;t.wordsBtn.visible=!0,t.wordsBtn.onClick(this,this.openTalkView),t.aiWordsBtn.visible=!0,t.aiWordsBtn.onClick(this,this.clickAIState)}openTalkView(){vo.soundMgr.playSound(vo.common.btnClickStr),vo.uiMgr.Show(le)}closeTalkView(){vo.uiMgr.Hide(le)}clickAIState(){vo.soundMgr.playSound(vo.common.btnClickStr),this.aiSpeak=!this.aiSpeak,this.changeAIState(this.aiSpeak)}changeAIState(t){this.aiSpeak=t;let e=vo.common.gameUI.ui.aiWordsBtn;e.c1.selectedIndex=t?0:1}showSelfTalk(t){let e=vo.common.gameUI.ui;e.selfTalk.visible=!0,e.selfTalk.myNode.c1.selectedIndex=1,e.selfTalk.myNode.txt.text=cfgTable.talkwordsData[t].msg,e.selfTalk.t0.play()}showSelfEmotion(t){let e=vo.common.gameUI.ui;e.selfTalk.visible=!0,e.selfTalk.myNode.c1.selectedIndex=0,this.selfSpine&&this.selfSpine.dispose(),e.selfTalk.myNode.spineRoot&&e.selfTalk.myNode.spineRoot.displayObject.destroyChildren();let i=cfgTable.emotionData[t].spine;this.selfSpine=new X(i,()=>{let t={x:e.selfTalk.myNode.spineRoot.width/2-2,y:e.selfTalk.myNode.spineRoot.height/2,scaleX:.35,scaleY:.35};this.selfSpine.play(t,0,!1,e.selfTalk.myNode.spineRoot.displayObject)}),e.selfTalk.t0.play()}showAITalk(t){if(!this.aiSpeak)return;if(To.gameData.gameCount<2)return;t<1&&(t=this.getRandTalk());let e=vo.common.gameUI.ui;e.aiTalk.visible=!0,e.aiTalk.myNode.c1.selectedIndex=1,e.aiTalk.myNode.txt.text=cfgTable.talkwordsData[t].msg,e.aiTalk.t0.play()}getRandTalk(){let t=vo.tools.random(0,this.talkList.length);return this.emotionList[t]}getRandEmotion(){let t=vo.tools.random(0,this.emotionList.length);return this.emotionList[t]}showAIEmotion(t){if(!this.aiSpeak)return;if(To.gameData.gameCount<2)return;t<1&&(t=this.getRandEmotion());let e=vo.common.gameUI.ui;e.aiTalk.visible=!0,e.aiTalk.myNode.c1.selectedIndex=0,this.aiSpine&&this.aiSpine.dispose(),e.aiTalk.myNode.spineRoot&&e.aiTalk.myNode.spineRoot.displayObject.destroyChildren();let i=cfgTable.emotionData[t].spine;this.aiSpine=new X(i,()=>{let t={x:e.aiTalk.myNode.spineRoot.width/2-2,y:e.aiTalk.myNode.spineRoot.height/2,scaleX:.35,scaleY:.35};this.aiSpine.play(t,0,!1,e.aiTalk.myNode.spineRoot.displayObject)}),e.aiTalk.t0.play()}resetGame(){let t=vo.common.gameUI.ui;t.aiTalk.visible=!1,t.selfTalk.visible=!1,this.aiSpine&&this.aiSpine.dispose(),this.selfSpine&&this.selfSpine.dispose(),t.aiTalk.myNode.spineRoot&&t.aiTalk.myNode.spineRoot.displayObject.destroyChildren(),t.selfTalk.myNode.spineRoot&&t.selfTalk.myNode.spineRoot.displayObject.destroyChildren(),this.closeTalkView()}}class ce{constructor(){this.comboTimes=1,this.skillTimes=0,this.wordsSpine=new X("yxz_jingqiu"),this.comboSpine=new X("yxz_liangan"),this.skillSpine=new X("yiganxqiu"),this.scoreSpine=new X("defen")}setClassicCombo(t){t&&(this.comboTimes=0)}playClassicWords(t,e){this.callback=e;let i=t,s=vo.common.gameUI.ui.classicWorldsNode.displayObject,n=this.wordsSpine.play({x:0,y:0,scaleX:1,scaleY:1},i,!1,s,()=>{n.destroy(!0),this.playClassicTimes()})}playClassicTimes(){if(this.comboTimes++,this.comboTimes<=1)this.callback&&this.callback();else{let t=this.comboTimes-1,e={x:0,y:0,scaleX:1,scaleY:1},i=vo.common.gameUI.ui.classicWorldsNode.displayObject,s=this.comboSpine.play(e,t,!1,i,()=>{s.destroy(!0),this.callback&&this.callback()})}}playBigSkillTimes(t,e){if(t<=0)return void(e&&e());this.callback=e;let i="sz_0",s=0;this.getWordsImg(t,i,()=>{let e={x:0,y:0,scaleX:1,scaleY:1},i=vo.common.gameUI.ui.bigMoveWorldsNode.displayObject,n=this.skillSpine.createSpine(e,i,1),a="",o="";t<=9?(a=`res/d2Res/sz_0${t}.png`,n.setSlotSkin("sz_6",Laya.loader.getRes(a)),s=0):(a=`res/d2Res/sz_0${t%10}.png`,o=`res/d2Res/sz_0${Math.floor(t/10)}.png`,n.setSlotSkin("sz_7",Laya.loader.getRes(a)),n.setSlotSkin("sz_6",Laya.loader.getRes(o)),s=1),this.skillSpine.play(e,s,!1,i,()=>{n.destroy(!0),vo.common.gameMgr.playSkillTips(),this.playScore(t),vo.common.playRandomMutiBallBigSkillSound()},n)})}playScore(t){let e=0;this.getWordsImg(t,"sz_",()=>{let i={x:0,y:0,scaleX:1,scaleY:1},s=vo.common.gameUI.ui.bigMoveWorldsNode.displayObject,n=this.scoreSpine.createSpine(i,s,1),a="",o="";t<=9?(a=`res/d2Res/sz_${t}.png`,n.setSlotSkin("sz_6",Laya.loader.getRes(a)),e=0):(a=`res/d2Res/sz_${t%10}.png`,o=`res/d2Res/sz_${Math.floor(t/10)}.png`,n.setSlotSkin("sz_6",Laya.loader.getRes(a)),n.setSlotSkin("sz_7",Laya.loader.getRes(o)),e=1),this.scoreSpine.play(i,e,!1,s,()=>{n.destroy(!0),this.callback&&this.callback()},n)})}getWordsImg(t,e="",i){let s=[];t<=9?s.push({url:`res/d2Res/${e+t}.png`,type:Laya.Loader.IMAGE}):s.push({url:`res/d2Res/${e}${t%10}.png`,type:Laya.Loader.IMAGE},{url:`res/d2Res/${e}${Math.floor(t/10)}.png`,type:Laya.Loader.IMAGE}),Laya.loader.load(s,Laya.Handler.create(this,()=>{i&&i()}))}}class de extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIRodMethod")}onConstruct(){this.n24=this.getChild("n24"),this.white=this.getChild("white"),this.dot=this.getChild("dot"),this.sureBtn=this.getChild("sureBtn"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.n5=this.getChild("n5"),this.n14=this.getChild("n14"),this.t0=this.getTransition("t0")}}de.URL="ui://isxx5ak7hkrz3tv";class ue extends A{constructor(){super(),this.isPressd=!1}onConstructor(){this.ui=de.createInstance(),this.contentPane=this.ui,this.addUIClick(this.ui.sureBtn,this.closeSelf),this.moveDir=new Laya.Vector2,this.moveDest=new Laya.Vector2,this.centerPos=new Laya.Vector2,vo.common.uiRodMethod=this}show(){super.show(),vo.common.gameMgr.gamePause=!0,this.openPressDotEvent(),this.gameRod=vo.common.gameUI.ui.rodMethodNode,this.centerPos.x=this.ui.white.x,this.centerPos.y=this.ui.white.y,this.moveDest.x=this.centerPos.x-vo.common.rodOffest.x,this.moveDest.y=this.centerPos.y-vo.common.rodOffest.y,this.setDot()}setDot(){this.ui.dot.x=this.moveDest.x,this.ui.dot.y=this.moveDest.y}closeSelf(){vo.common.rodOffest.x=this.centerPos.x-this.moveDest.x,vo.common.rodOffest.y=this.centerPos.y-this.moveDest.y,this.gameRod.dot.x=this.gameRod.bg.x-vo.common.rodOffest.x,this.gameRod.dot.y=this.gameRod.bg.y-vo.common.rodOffest.y,vo.common.gameMgr.gamePause=!1,this.hide()}openPressDotEvent(){this.closePressDotEvent(),this.ui.dot.on(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.white.on(Laya.Event.MOUSE_DOWN,this,this.onDown),this.ui.white.on(Laya.Event.MOUSE_MOVE,this,this.onDown),this.ui.white.on(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.on(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.on(Laya.Event.MOUSE_MOVE,this,this.onDown)}closePressDotEvent(){this.ui.dot.off(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.white.off(Laya.Event.MOUSE_DOWN,this,this.onDown),this.ui.white.off(Laya.Event.MOUSE_MOVE,this,this.onDown),this.ui.white.off(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.off(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.off(Laya.Event.MOUSE_MOVE,this,this.onDown)}onDown(t){if(t.type==Laya.Event.MOUSE_DOWN?this.isPressd=!0:t.type==Laya.Event.MOUSE_UP&&this.isPressd&&(this.isPressd=!1),!this.isPressd)return;this.moveDest.x=t.stageX,this.moveDest.y=t.stageY,vo.tools.getV2SqDis(this.moveDest,this.centerPos)>6724&&(this.moveDir=vo.tools.getV2Dir(this.centerPos.x,this.centerPos.y,t.stageX,t.stageY,this.moveDir),this.moveDest=vo.tools.getV2Dest(this.centerPos.x,this.centerPos.y,this.moveDir,82,this.moveDest)),this.setDot()}resetRod(){this.ui.dot.x=this.ui.white.x,this.ui.dot.y=this.ui.white.y,this.gameRod.dot.x=this.gameRod.bg.x,this.gameRod.dot.y=this.gameRod.bg.y,vo.common.rodOffest.x=0,vo.common.rodOffest.y=0}}ue.uiName="UIRodMethod";class ge extends A{constructor(){super(),this.powerNum=0,this.isD3Inited=!1,this.isPrePlay=!1,this.isMoveRod=!1,this.eventObj={curX:0,curY:0,lastX:0,lastY:0,starX:0,starY:0},this.rulerDis=20,this.rulerOffset=0}onConstructor(){this.ui=at.createInstance(),this.contentPane=this.ui,this.ui.x+=vo.common.sysOffestNum,this.ui.border.alpha=vo.common.showDebug?1:0,this.isEject=!1,vo.common.gameUI=this,this.initSelf()}isTurnSelf(){if(!vo.common.d2World.openCheckStill&&vo.common.gameMgr.selfTurn&&vo.common.gameMgr.finishOneShoot)return!0}initSelf(){let t=this.ui.topNode;t.selfBallList.itemRenderer=Laya.Handler.create(this,this.renderSelfDisplayBalls,null,!1),t.aiBallList.itemRenderer=Laya.Handler.create(this,this.renderAIDisplayBalls,null,!1),this.barInfo={},this.barInfo.curY=0,this.barInfo.height=this.ui.powerNode.height,this.barInfo.showStarY=this.ui.powerNode.showImg.y,this.barInfo.powerStartY=this.ui.powerNode.y,vo.common.aiPlayer=new z,vo.common.gameMgr=new Qt,vo.common.skillMgr=new ne,vo.common.wordsMgr=new ce,vo.common.talkMgr=new re,vo.common.classicEmotionSpine=new X("yxz_bqwz",()=>{console.log("加载经典模式表情文件chenggon !")}),vo.common.awardSpine=new X("jinbi",()=>{console.log("挑战模式奖励模式spine加载成功!")}),vo.eventMgr.off(r,this,this.resetGame),vo.eventMgr.on(r,this,this.resetGame),this.addUIClick(this.ui.rodMethodNode,this.addRodMethodClick),this.addUIClick(this.ui.returnBtn,this.returnHome),this.addUIClick(this.ui.helpBtn,this.clickHelpLineBtn),this.addUIClick(this.ui.placeChallengeNode.helpLineBtn,this.clickHelpLineBtn),this.addUIClick(this.ui.placeNormalNode.helpLineBtn,this.clickHelpLineBtn)}returnHome(){vo.uiMgr.Show(Jt,"Are you sure to exit the game?","Boss, why don't you play for a while longer?",v.exitGame)}addRodMethodClick(){this.isTurnSelf()&&vo.uiMgr.Show(ue)}clickHelpLineBtn(t=!1){this.isTurnSelf()&&vo.uiMgr.Show(Kt,0,0,t=>{t&&(vo.common.longHelpLine=!0,vo.common.d2World.getHelpLine(),Moyu.sendDataEvent("guideNum"))})}renderSelfDisplayBalls(t,e){let i="q"+vo.common.gameMgr.selfBallArr[t];e.myImg.url=vo.common.getGameIconUrl(i)}renderAIDisplayBalls(t,e){let i="q"+vo.common.gameMgr.aiBallArr[t];e.myImg.url=vo.common.getGameIconUrl(i)}updateMode(){vo.common.gameMode==f.classic?this.ui.topNode.scoreNode.visible=!1:vo.common.gameMode==f.bigMove&&(this.ui.topNode.scoreNode.visible=!0)}show(){super.show(),console.log("zh:uigame show"),this.ui.alpha=0,this.updateSelf(),console.log("zh:uigame bf gamemusic01 start"),vo.soundMgr.playMusic("gamemusic01"),console.log("zh:uigame bf gamemusic01 end"),vo.common.gameMgr.gamePause=!1,vo.common.gameUI.ui.blackAni.visible=!1,vo.common.gameUI.ui.whiteAni.visible=!1,this.ui.powerEft.visible=!1,this.ui.colorNode.visible=!1,this.updateHead()}updateSelf(){if(vo.common.gameMode==f.classic)this.ui.c1.selectedIndex=0,this.ui.topNode.middleNode.c1.selectedIndex=0,this.ui.topNode.middleNode.visible=!0,this.ui.topNode.middleNode.awardTxt.text=vo.common.passAwardCoin+"";else if(vo.common.gameMode==f.bigMove){this.ui.c1.selectedIndex=0,this.ui.topNode.middleNode.c1.selectedIndex=1,this.ui.topNode.middleNode.visible=!1;let t=vo.cfgMgr.getMaxBigMoveLength(),e=vo.common.randomNum(1,t);0==To.getSkillGuide()&&(e=1),vo.common.bigMoveLevelIndex=e}else if(vo.common.gameMode==f.placeBall){let t=cfgTable.placeballData[vo.common.placeBallCurLevel];this.ui.c1.selectedIndex=1+t.type,this.ui.alpha=1,this.startGame()}this.updateMode(),this.initD3world(),this.initD2world()}startGame(){this.ui.snowNode.visible=Math.random()<=.1,this.ui.d2Node.visible=!1,vo.common.d3World.d3Hand.gameObj.active=!1,vo.common.d3World.tableSrc.init(),vo.common.d3World.tableSrc.gameObj.transform.localPositionY=.06,this.cameraViewChange(()=>{switch(vo.common.d3World.tableSrc.gameObj.transform.localPositionY=0,vo.common.gameMode){case f.classic:vo.common.d3World.d3Hand.gameObj.active=!0,this.playPutBallD3Ani();break;case f.bigMove:this.enterGame(),Laya.timer.once(500,this,()=>{this.ui.topNode.middleNode.visible=!0,this.ui.topNode.middleNode.t0.play()});break;case f.placeBall:this.enterGame()}}),W.showBanner(!1)}enterGame(){this.ui.d2Node.visible=!0,vo.common.d3World.d3Hand.gameObj.active=!1,vo.common.showOneCamera("mainCamera"),Moyu.recordGame(30,!0),this.isPrePlay||(this.isPrePlay=!0,vo.common.d3World.prePlayEft()),vo.common.gameMgr.gameReady(),this.openAllEvent(),this.ui.snowNode.visible=!1;let t=vo.common.gameMode!=f.bigMove&&1==To.getGuideHelpLine();this.ui.helpBtn.visible=t}showHelpLineGuide(){let t=To.getGuideHelpLine();vo.common.gameMode==f.classic&&0==t&&(this.ui.helpBtn.visible=!0,this.ui.guideNode.visible=!0)}setTurnAlpha(t){this.ui.keduNode.alpha=t,this.ui.ganNode.alpha=t,this.ui.rodMethodNode.alpha=t,this.ui.helpBtn.alpha=t?1:0}cameraViewChange(t){vo.common.d3World.tableSrc.gameObj.transform.localPositionY=.06;let e=vo.common.d3World.cameraObj.visitAngle.transform;vo.common.showOneCamera("visitAngle"),e.localRotationEulerY=180,e.localRotationEulerZ=0,Laya.Tween.to(e,{localRotationEulerY:0},3e3,null,Laya.Handler.create(this,()=>{Laya.Tween.to(e,{localRotationEulerZ:-70},800,null,Laya.Handler.create(this,()=>{t&&t()}))}))}playPutBallD3Ani(){vo.common.showOneCamera("mainCamera");let t=vo.common.d3World.d3Hand;t.gameObj.active=!0,t.transform.localPositionZ=3,Laya.Tween.to(t,{posZ:0},500,Laya.Ease.sineIn,Laya.Handler.create(this,()=>{Laya.Tween.to(t,{posZ:10},400,null,Laya.Handler.create(this,()=>{t.gameObj.active=!1,this.enterGame()}),400)}))}updateHead(){let t=Moyu.getUserInfo();this.ui.topNode.selfNameTxt.text=t.nickName,vo.common.createHead(this.ui.topNode.selfHeadLoader,t.headIcon,80);let e=vo.cfgMgr.getRandomUserInfo();To.getSkillGuide()<1?(this.ui.topNode.aiNameTxt.text="billiards",this.ui.topNode.aiHeadLoader.url="res/icon.png"):(this.ui.topNode.aiNameTxt.text=e.name,this.ui.topNode.aiHeadLoader.url=x+e.icon)}initD2world(){let t=this.ui.d2Root.displayObject;t.getComponent(nt)||(vo.common.d2World=t.addComponent(nt)),vo.common.d2World.initSelf()}initD3world(){if(this.isD3Inited)return;this.isD3Inited=!0;let t=vo.common.d3Scene;this.ui.d3Root.displayObject.addChild(t),t.active=!0,vo.common.d3World.tableSrc.setBorderPos()}onRootMove(t){let e=vo.common.d2World.rootBall;this.ui.moveNode.x=t.x,this.ui.moveNode.y=t.y,e.gameObj.x=t.x,e.gameObj.y=t.y,e.d3BallSrc.setTransPos(t.x,t.y)}aiRootMove(t){t?this.hideBallUI():(this.showBallUI(),vo.common.d2World.getHelpLine())}aiForce(t,e=0){this.pressTarget=k.powerNode,1==t?this.onEventUp({force:!0}):2==t&&this.onEventMove({stageY:e,force:!0})}onEventPress(t){if(t.stopPropagation&&t.stopPropagation(),!this.isTurnSelf())return;switch(t.target){case this.ui.myPowerNode.displayObject:this.pressTarget=k.powerNode,this.barInfo.curY=t.stageY,this.updateBarInfo();break;case this.ui.moveNode.displayObject:this.pressTarget=k.moveNode,this.hideBallUI(),this.eventObj.curX=this.ui.moveNode.x,this.eventObj.curY=this.ui.moveNode.y,this.ui.moveNode.finger.visible=!1,this.eventObj.lastX=t.stageX,this.eventObj.lastY=t.stageY;break;case this.ui.rulerClickNode.displayObject:this.pressTarget=k.rulerNode,this.eventObj.lastY=t.stageY;break;case this.ui.d2Root.displayObject:this.pressTarget=k.d2Root,this.eventObj.lastX=t.stageX,this.eventObj.lastY=t.stageY,this.eventObj.starX=t.stageX,this.eventObj.starY=t.stageY,this.eventObj.curX=0,this.eventObj.curY=0,vo.common.d2World.d2Gan.setGanLastInfo(),this.rulerOffset=0}}onEventMove(t){if(t.stopPropagation&&t.stopPropagation(),t&&t.force);else if(!this.isTurnSelf())return;switch(this.pressTarget){case k.powerNode:this.barInfo.curY=t.stageY,this.updateBarInfo(),this.isMoveRod=!0;break;case k.moveNode:let e=vo.common.d2World.rootBall,i=e.gameObj.width/2,s=this.eventObj.curX+t.stageX-this.eventObj.lastX,n=this.eventObj.curY+t.stageY-this.eventObj.lastY,a=vo.common.d2World.borderRect;s<=a.x+i?s=a.x+i:s>=a.x+a.width-i&&(s=a.x+a.width-i),n<=a.y+i?n=a.y+i:n>=a.y+a.height-i&&(n=a.y+a.height-i),vo.common.gameMgr.isOpenBall&&s>=a.x+a.openBallW-i&&(s=a.x+a.openBallW-i),this.ui.moveNode.x=s,this.ui.moveNode.y=n,e.gameObj.x=s,e.gameObj.y=n,e.d3BallSrc.setTransPos(s,n),this.isMoveRod=!0;break;case k.rulerNode:let o=t.stageY-this.eventObj.lastY;this.eventObj.lastY=t.stageY;let h=this.ui.rulerNode.img1,l=this.ui.rulerNode.img2;h.y+=o,l.y+=o,this.rulerOffset+=o,Math.abs(this.rulerOffset)>=this.rulerDis&&(this.rulerOffset=0,vo.soundMgr.playSound("inch",1,10)),vo.common.d2World.d2Gan.rotateSelf(o,!0);let r=h.height;if(this.checkGuide(),this.isMoveRod=!0,h.y>=r)return h.y=-r,void(l.y=0);if(h.y<=-r)return h.y=r,void(l.y=0);if(l.y>=r)return l.y=-r,void(h.y=0);if(l.y<=-r)return l.y=r,void(h.y=0);break;case k.d2Root:this.eventObj.curX=t.stageX,this.eventObj.curY=t.stageY;let c=this.checkRodMoveDir();vo.common.d2World.d2Gan.rotateSelf(c),this.eventObj.lastX=t.stageX,this.eventObj.lastY=t.stageY}}onEventUp(t){if(t.stopPropagation&&t.stopPropagation(),t&&t.force);else if(!this.isTurnSelf())return;switch(this.pressTarget){case k.powerNode:if(this.ui.powerNode.value=0,this.ui.powerNode.showImg.y=this.barInfo.showStarY,this.ui.powerTxt.text="",this.powerNum>0){vo.eventMgr.event(h),vo.common.d2World.shoot(this.powerNum),vo.common.d2World.d2Gan.shoot(),vo.common.d2World.d2HelpLine.shoot(),this.finishGuide(),this.ui.powerEft.visible=!1,this.ui.colorNode.visible=!1;let t="";t=this.powerNum<=30?"gan_30":this.powerNum<=60?"gan_50":"gan_80",vo.soundMgr.playSound(t)}break;case k.moveNode:let e=vo.common.d2World.rootBall,i=vo.common.gameMgr.lastRootBallPos.x,s=vo.common.gameMgr.lastRootBallPos.y;this.judgeBallIntersect()?(this.ui.moveNode.x=i,this.ui.moveNode.y=s,e.gameObj.x=i,e.gameObj.y=s,e.d3BallSrc.setTransPos(i,s),vo.uiMgr.Show(_t,"Incorrect placement position")):(vo.common.gameMgr.lastRootBallPos.x=e.gameObj.x,vo.common.gameMgr.lastRootBallPos.y=e.gameObj.y),this.showBallUI(),this.ui.moveNode.finger.visible=!0,vo.common.d2World.getHelpLine();break;case k.rulerNode:break;case k.d2Root:Math.pow(this.eventObj.starX-t.stageX,2)+Math.pow(this.eventObj.starY-t.stageY,2)<=25&&this.moveToClickDot(t)}this.pressTarget=-1}checkGuide(){0==To.getSkillGuide()&&vo.common.gameMode==f.bigMove&&1==vo.common.guideStep&&(vo.common.guideStep++,vo.common.gameUI.ui.guide2.visible=!1,vo.common.gameUI.ui.guide3.visible=!0)}finishGuide(){0==To.getSkillGuide()&&vo.common.gameMode==f.bigMove&&(vo.common.guideStep=10,this.closeAllGuide())}closeAllGuide(){vo.common.gameUI.ui.guide1.visible=!1,vo.common.gameUI.ui.guide2.visible=!1,vo.common.gameUI.ui.guide3.visible=!1}updateBarInfo(){let t=this.ui.powerNode.y,e=(this.barInfo.curY-t)/this.barInfo.height;e>=1&&(e=1),e<=0&&(e=0),this.powerNum=Math.ceil(100*e),this.ui.powerNode.value=this.powerNum,this.ui.powerNode.showImg.y=this.barInfo.showStarY+this.powerNum/100*this.barInfo.height,this.ui.colorNode.value=this.powerNum,this.ui.powerEft.y=this.barInfo.powerStartY+this.powerNum/100*this.barInfo.height,this.ui.powerEft.visible=0!=this.powerNum,this.ui.colorNode.visible=0!=this.powerNum,this.ui.powerTxt.text=this.powerNum+"",vo.common.d2World.d2Gan.storagePower(this.powerNum)}forceCancel(){this.ui.powerNode.value=0,this.ui.powerNode.showImg.y=this.barInfo.showStarY,this.ui.powerTxt.text=""}checkRodMoveDir(){let t=this.eventObj.lastX-vo.common.sysOffestNum-vo.common.d2World.rootBall.gameObj.x,e=this.eventObj.lastY-vo.common.d2World.rootBall.gameObj.y;return t>=0&&e<=0?this.checkDir():t<0&&e<0?this.checkDir(1,-1):t<0&&e>0?this.checkDir(-1,-1):this.checkDir(-1,1)}checkDir(t=1,e=1){let i=this.eventObj.curX-this.eventObj.lastX,s=this.eventObj.curY-this.eventObj.lastY;if(0==s)return i*t;if(0==i)return s*e;let n=s/i;return Math.abs(n)>=1?s*e:i*t}judgeBallIntersect(){let t,e=vo.common.d2World.rootBall,i=vo.common.d2World.ballArr,s=e.gameObj.width/2,n=!1;for(let a=0;a=vo.common.maxShareDiamondTimes?(this.ui.myNode.node1.shareTxt.text="Available Tomorrow",this.ui.myNode.node1.touchable=!1):(this.ui.myNode.node1.shareTxt.text=`(${t}/${vo.common.maxShareDiamondTimes})`,this.ui.myNode.node1.touchable=!0)}switchBtn(t){if(""==t)t=this.curType;else{if(this.curType==t)return;this.curType=t}"coin"==t?(this.ui.myNode.coinBtn.c1.selectedIndex=0,this.ui.myNode.diamondBtn.c1.selectedIndex=1,this.ui.myNode.coinBtn.displayObject.zOrder=10,this.ui.myNode.diamondBtn.displayObject.zOrder=9,this.ui.myNode.c1.selectedIndex=0):(this.ui.myNode.coinBtn.c1.selectedIndex=1,this.ui.myNode.diamondBtn.c1.selectedIndex=0,this.ui.myNode.coinBtn.displayObject.zOrder=9,this.ui.myNode.diamondBtn.displayObject.zOrder=10,this.ui.myNode.c1.selectedIndex=1)}convertCoin(t){let e=cfgTable.moneyData[t],i=e.num,s=e.get.split("_")[1],n=parseInt(s);To.diamondEnough(n)?(To.setDiamond(-n),vo.common.playObjFlyAnim(i,L.coin),vo.uiMgr.Show(_t,"Exchange successful!")):(vo.uiMgr.Show(_t,"Diamond shortage"),this.switchBtn("diamond"))}videoGetDiamond(){let t=cfgTable.moneyData[2].num;Moyu.showVideoAd(()=>{vo.common.playObjFlyAnim(t,L.diamond),this.closeSelf()},N.addDiamond)}videoGetCoin(){Moyu.showVideoAd(()=>{vo.common.playObjFlyAnim(2e3,L.coin),this.closeSelf()},N.addCoin)}shareGetDiamond(){if(To.getShareDiamondTimes()>=vo.common.maxShareDiamondTimes)vo.uiMgr.Show(_t,"Come back tomorrow");else if(Moyu.isTT){let t=cfgTable.moneyData[1].num;Moyu.shareVideo="",Moyu.shareGame(e=>{e?(vo.uiMgr.Show(_t,"分享成功!"),vo.common.playObjFlyAnim(t,L.diamond),To.setShareDiamondTimes(1),this.updateDiamondShare()):vo.uiMgr.Show(_t,"分享失败!")})}else Moyu.showVideoAd(()=>{let t=vo.common.randomNum(50,100);vo.common.playObjFlyAnim(t,L.diamond),To.setShareDiamondTimes(1),this.updateDiamondShare()},N.randomDiamond)}openPutBallView(){let t=vo.uiMgr.getUI(Xt),e=vo.uiMgr.getUI(Ht),i=vo.uiMgr.getUI(Nt),s=vo.uiMgr.getUI(ge);t&&!t.isHide&&(vo.uiMgr.Hide(Xt),vo.uiMgr.Show(Yt)),e&&!e.isHide&&vo.uiMgr.Hide(Ht),s&&!s.isHide&&vo.uiMgr.Hide(ge),i&&!i.isHide||vo.uiMgr.Show(Nt),this.closeSelf()}}me.uiName="UIAddProp";class ye{constructor(t){this.leftTime=0,this.ui=t,this.ui.addCoinBtn.onClick(this,this.addCoin),this.ui.addDiamondBtn.onClick(this,this.addDiamond),this.ui.addPowerBtn.onClick(this,this.addPower),this.ui.c1.selectedIndex=1,vo.eventMgr.on(c,this,this.coinChange),vo.eventMgr.on(d,this,this.diamondChange),vo.eventMgr.on(y,this,this.powerChange),vo.eventMgr.on(p,this,this.checkPowerTime),this.coinChange(),this.diamondChange(),this.powerChange()}addPower(){vo.soundMgr.playSound(vo.common.btnClickStr),vo.uiMgr.Show(It)}powerChange(){let t=To.getPower();this.ui.powerTxt.text=t+""}checkPowerTime(){let t=(new Date).getTime(),e=To.getPowerTime();0==e&&(e=t,To.setPowerTime(t));let i=To.getPower(),s=Math.floor((t-e)/(1e3*vo.common.powerRecoverNum));if(Laya.timer.clearAll(this),i>=vo.common.natureMaxPower)return this.ui.powerTimeTxt.text="",void To.setPowerTime(t);if(i+s>=vo.common.natureMaxPower)To.setPower(vo.common.natureMaxPower,!1),this.ui.powerTimeTxt.text="",To.setPowerTime(t);else{s>0&&(To.setPower(s),To.setPowerTime(t));let i=Math.floor((t-e-s*vo.common.powerRecoverNum*1e3)/1e3);this.leftTime=vo.common.powerRecoverNum-i,this.leftTime<=0&&(this.leftTime=0),this.ui.powerTimeTxt.text=vo.common.getMSTime(this.leftTime),Laya.timer.loop(1e3,this,this.updatePowerTime)}}updatePowerTime(){this.leftTime-=1,this.ui.powerTimeTxt.text=vo.common.getMSTime(this.leftTime),this.leftTime<=0&&this.checkPowerTime()}coinChange(){this.ui.coinTxt.text=To.getCoin()+""}diamondChange(){this.ui.diamondTxt.text=To.getDiamond()+""}addCoin(){vo.soundMgr.playSound(vo.common.btnClickStr),Moyu.sendDataEvent("AddCoinBtn"),vo.uiMgr.Show(me,0)}addDiamond(){vo.soundMgr.playSound(vo.common.btnClickStr),Moyu.sendDataEvent("AddDiamondBtn"),vo.uiMgr.Show(me,1)}}class pe extends A{constructor(){super(),this.curKey=0}onConstructor(){this.ui=G.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new ye(this.ui.moneyNode),this.addUIClick(this.ui.closeNode.closeBtn,this.closeSelf),this.addUIClick(this.ui.drawBtn,this.startDraw),this.initDraw(),this.initUI(),this.ui.myNode.flashNode.c1.selectedIndex=1,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}show(){super.show(),this.ui.t0.play(),this.playSecretaryIdle(),this.updateDraw(),this.checkFree(),W.bannerDelay>0&&(this.ui.closeNode.closeBtn.visible=!1,Laya.timer.once(W.bannerDelay,this,()=>{this.ui.closeNode.closeBtn.visible=!0})),W.showRateBanner()}hide(){Laya.timer.clearAll(this),super.hide()}checkFree(){let t=To.getDailyfreeDrawTimes();this.ui.drawBtn.c1.selectedIndex=t>0?0:1}initDraw(){this.drawObj=[];let t,e=cfgTable.drawData,i=0;for(const s in e)i+=(t=e[s]).weight,this.drawObj.push(i);this.allWeight=i}initUI(){let t,e,i,s=cfgTable.drawData;for(const n in s)t=s[n],e=this.ui.myNode.rotNode["img"+n],i=this.ui.myNode.rotNode["txt"+n],e.url=vo.common.getGameIconUrl(t.icon),i.visible=!0,t.award>2?(e.rotation=0,i.text=cfgTable.ballrodData[t.award-1].name):(e.rotation=t.rotation,i.text=t.num)}getCurkey(){let t,e=Math.random()*this.allWeight;for(let i=0;i=t&&e0?(this.beginDraw(),To.setDailyfreeDrawTimes(0),this.checkFree()):(Moyu.sendDataEvent("turntable"),Moyu.showVideoAd(()=>{this.beginDraw()},N.draw))}beginDraw(){this.ui.myNode.flashNode.c1.selectedIndex=0,this.ui.drawBtn.touchable=!1,this.curKey=this.getCurkey(),console.log("当前key",this.curKey);let t=60*(this.curKey-1)+1080,e=this.ui.myNode.rotNode;e.rotation=0,Laya.Tween.to(e,{rotation:t},1500,Laya.Ease.cubicOut,Laya.Handler.create(this,()=>{console.log("旋转完成"),this.ui.drawBtn.touchable=!0,this.getAward()}))}getAward(){let t=cfgTable.drawData[this.curKey],e=new S;e.type=t.award,e.num=t.num,vo.common.getAward([e],()=>{To.setDrawTimes(1),this.updateDraw(),this.ui.myNode.flashNode.c1.selectedIndex=1})}updateDraw(){let t=To.getDrawTimes(),e=To.getDrawAwardTimes();Math.floor(t/3)>e?(this.ui.extraNode.boxBtn.t0.play(null,-1),this.ui.extraNode.boxBtn.touchable=!0,this.ui.extraNode.tipsTxt.text="3/3",this.ui.extraNode.barNode.width=265,this.getExtraAward()):(this.ui.extraNode.boxBtn.t0.stop(),this.ui.extraNode.boxBtn.touchable=!1,this.ui.extraNode.tipsTxt.text=`${t%3}/3`,this.ui.extraNode.barNode.width=t%3*265/3);let i=cfgTable.drawData[1];if(0==e)this.ui.myNode.rotNode.img1.url=vo.common.getComponentUrl("s"+i.icon),this.ui.myNode.rotNode.txt1.text=cfgTable.ballrodData[i.award-1].name,this.ui.myNode.rotNode.img1.rotation=0;else{let t=i.nextid;this.ui.myNode.rotNode.img1.url=vo.common.getGameIconUrl(t[2]),this.ui.myNode.rotNode.txt1.text=t[1],this.ui.myNode.rotNode.img1.rotation=0}}getExtraAward(){let t=To.getDrawTimes(),e=To.getDrawAwardTimes(),i=cfgTable.drawData[1],s=new S;0==e?(s.num=i.num,s.type=i.award,vo.common.getAward([s],()=>{let e=Math.floor(t/3);To.setDrawAwardTimes(e),this.updateDraw()})):(s.num=parseInt(i.nextid[1]),s.type=parseInt(i.nextid[0]),vo.common.getAward([s],()=>{let e=Math.floor(t/3);To.setDrawAwardTimes(e),this.updateDraw()}))}closeSelf(){this.hide()}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=vo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};vo.common.secretary.play(n,1,!0,t)}}pe.uiName="UIDraw";class xe extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIFlyEft")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.iconNode=this.getChild("iconNode"),this.txt=this.getChild("txt"),this.txtNode=this.getChild("txtNode")}}xe.URL="ui://isxx5ak7lj6tv4mf";class Ce extends A{constructor(){super(),this.max=8,this.delay=0}onConstructor(){this.ui=xe.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.isMuti=!0,this.ui.x+=vo.common.sysOffestNum}getArrPos(){if(this.iconPos&&this.iconPos.length>0)return;let t;this.iconPos=[];for(let e=0;e{i.visible=!1,++s>=this.max&&e&&e()}),20*n)}runWorlds(t,e){let i="+"+e;this.ui.txt.text=i;let s=t.x,n=t.y+50;this.ui.txt.x=s,this.ui.txt.y=n,this.ui.txt.visible=!0,this.ui.txt.alpha=1,Laya.Tween.to(this.ui.txt,{x:s,y:n-30},500,null,Laya.Handler.create(this,()=>{Laya.Tween.to(this.ui.txt,{alpha:0},500,null,Laya.Handler.create(this,()=>{this.ui.txt.visible=!1,this.hide()}))}))}}Ce.uiName="UIFlyEft";class fe extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIGetAward")}onConstruct(){this.n4=this.getChild("n4"),this.n0=this.getChild("n0"),this.myList=this.getChild("myList"),this.n1=this.getChild("n1"),this.eftNode=this.getChild("eftNode"),this.btnNode=this.getChild("btnNode"),this.t0=this.getTransition("t0")}}fe.URL="ui://isxx5ak7p4tr426";class be extends A{constructor(){super(),this.showTriple=!0}onConstructor(){this.ui=fe.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.btnNode.tripleBtn,this.tripleGetAward),this.addUIClick(this.ui.btnNode.normalBtn,this.normalGetAward),this.ui.myList.itemRenderer=Laya.Handler.create(this,this.renderItem,null,!1)}show(t,e,i){super.show(),this.ui.t0.play(),this.ui.eftNode.visible=!0,this.ui.eftNode.t0.play(Laya.Handler.create(this,()=>{this.ui.eftNode.visible=!1}),1,0,0,.9),this.awardArr=t,this.showTriple=e,this.callback=i,this.ui.btnNode.c1.selectedIndex=this.showTriple?0:1,this.ui.myList.numItems=t.length,vo.soundMgr.playSound("getaward")}updateSelf(t,e){let i=this.awardArr[t],s=this.getIcon(i.type),n=s;i.type>2&&(n="s"+s),e.myIcon.url=vo.common.getGameIconUrl(n),e.myIcon.rotation=0,e.numTxt.text=i.num+"",e.numTxt.visible=!(i.type>2),e.nameTxt.text=this.getNameStr(i.type)}renderItem(t,e){this.updateSelf(t,e)}tripleGetAward(){Moyu.showVideoAd(()=>{this.getAward(3)},N.triple)}normalGetAward(){W.isMisVideo()?this.tripleGetAward():this.getAward()}getAward(t=1){this.hide();for(let e=0;e{Laya.Tween.to(t,{scaleX:1,scaleY:1},100,null,Laya.Handler.create(this,()=>{}))}))}setGroup(t,...e){let i=0;for(let t=0;t{let s=new Laya.Prefab;s.json=i;let n=Laya.Pool.getItemByCreateFun(t,s.create,s);e&&e(n)}))}pos2to3Convert(t,e,i){t+=this.sysOffestNum,i.setValue(t,e,0),this.d3World.camera.convertScreenCoordToOrthographicCoord(i,i)||console.error("转换出错了。。。。。。。。")}scale2to3Convert(t){return this.scaleV3One.setValue(0,0,0),this.d3World.camera.convertScreenCoordToOrthographicCoord(this.scaleV3One,this.scaleV3One),this.scaleV3Two.setValue(0,t,0),this.d3World.camera.convertScreenCoordToOrthographicCoord(this.scaleV3Two,this.scaleV3Two),Math.abs(this.scaleV3One.x-this.scaleV3Two.x)}pos3to2Convert(t){this.d3World.camera.viewport.project(t,this.d3World.camera.projectionViewMatrix,this.posV4),t.x=this.posV4.x/Laya.stage.clientScaleX,t.y=this.posV4.y/Laya.stage.clientScaleY,t.x-=this.sysOffestNum}scale3to2Convert(t){return t/this.scale2to3Convert(1)}getCollider(t,e=.9,i=10){let s;return(s="box"==t?new Laya.BoxCollider:new Laya.CircleCollider).friction=0,s.restitution=e,s.density=i,s}getRigbody(){let t=new Laya.RigidBody;return t.bullet=!0,t.allowRotation=!1,t.allowSleep=!1,t.gravityScale=0,t}getfguiRotation(t,e){this.angleV2.setValue(t,e),Laya.Vector2.normalize(this.angleV2,this.angleV2);let i=180*Math.acos(Laya.Vector2.dot(this.rootV,this.angleV2))/Math.PI;return(this.angleV2.x>=0&&this.angleV2.y>=0||this.angleV2.x>=0&&this.angleV2.y<0)&&(i=-i),180+i}getAngle(t,e){return this.angleV2.setValue(t,e),Laya.Vector2.normalize(this.angleV2,this.angleV2),180*Math.acos(Laya.Vector2.dot(this.rootV,this.angleV2))/Math.PI}randomNum(t,e){return t+Math.floor((e-t+1)*Math.random())}getRandArrEle(t){return t[Math.floor(t.length*Math.random())]}getSign(t){return t>=0?1:-1}botherArr(t){let e,i,s,n=t.length+2,a=t.length;for(let o=0;o=i.y+i.height+20||(t<=i.x-20||(t>=i.x+i.width+20||void 0)))}initWeight(t){let e={data:{},allWeightNum:0},i=e.data,s=0;for(const e in t)i[e]={},i[e].id=t[e].id,i[e].minWeight=s,s+=t[e].weight,i[e].maxWeight=s;return e.allWeightNum=s,e}getRandomWeightData(t){let e=t.data,i=t.allWeightNum,s=Math.floor(Math.random()*i);for(const t in e)if(s>e[t].minWeight&&s<=e[t].maxWeight)return e[t];return e[1]}showGirlTalkPop(t,e,i){e.visible=!0,i.text=cfgTable.secretaryData[t].msg,e.t0.play(Laya.Handler.create(this,()=>{e.visible=!1}))}stopGirlPop(t){t.t0.stop(),t.visible=!1}createHead(t,e,i=107){if("Browser"!=Laya.Browser.name)if(Moyu.isTT){let s=new Image;s.src=e,s.onload=(()=>{let e=new Laya.Texture2D;e.width=i,e.height=i,t.displayObject.graphics.drawImage(new Laya.Texture(e),0,0),e.loadImageSource(s)})}else t.url=e;else t.url=e}addTestCoin(t){To.setCoin(t)}addTestDiamond(t){To.setDiamond(t)}addTestSkill(){To.setBigSkill(0,99),To.setBigSkill(1,99),To.setBigSkill(2,99)}playClassicEmotion(t,e,i){if(this.gameMode==f.bigMove)return;let s=this.randomNum(0,2),n={x:e,y:i,scaleX:1,scaleY:1},a=this.gameUI.ui.classicEmotionSpineNode.displayObject;this.gameMgr.selfTurn?this.gameMgr.selfBallArr.indexOf(t)>-1?this.classicEmotionSpine.play(n,s,!1,a):this.gameMgr.aiBallArr.indexOf(t)>-1||(t==this.gameMgr.blackNum?0==this.gameMgr.selfBallArr.length&&this.classicEmotionSpine.play(n,s,!1,a):this.classicEmotionSpine.play(n,s,!1,a)):this.gameMgr.aiBallArr.indexOf(t)>-1?this.classicEmotionSpine.play(n,s,!1,a):this.gameMgr.selfBallArr.indexOf(t)>-1||(t==this.gameMgr.blackNum?0==this.gameMgr.aiBallArr.length&&this.classicEmotionSpine.play(n,s,!1,a):this.classicEmotionSpine.play(n,s,!1,a))}playHappySound(t){if(this.gameMode!=f.classic)return;if(8==t)return;let e=!1;this.gameMgr.selfTurn?this.gameMgr.ensureBallType?this.gameMgr.selfBallArr.indexOf(t)>-1&&(e=!0):e=!0:this.gameMgr.ensureBallType?this.gameMgr.aiBallArr.indexOf(t)>-1&&(e=!0):e=!0,e&&vo.soundMgr.playSound("applause")}destroyClassicEmotion(){if(this.gameMode==f.bigMove)return;this.gameUI.ui.classicEmotionSpineNode.displayObject.destroyChildren()}playAwardSpine(t,e){let i={x:t,y:e,scaleX:1,scaleY:1},s=this.gameUI.ui.awardSpineNode.displayObject;this.awardSpine.play(i,0,!1,s)}destroyAwardSpine(){this.gameUI.ui.awardSpineNode.displayObject.destroyChildren()}isBlock(t,e,i,s,n=null){this.tempDir1=vo.tools.getV2Dir(t,e,i,s,this.tempDir1);let a=vo.common.d2World.ballArr,o=[];for(let i=0;i=1&&(l=1),l<0)||Math.sin(Math.acos(l))*h0)return o.sort((t,e)=>t.dis-e.dis),o[0]}AngleBetween(t,e){return Math.acos(Laya.Vector2.dot(t,e))*(180/Math.PI)}getSecretaryScale(){return"mishu"==this.secretary.spineName?1.28:1.024}signAwardContainsRod(t){let e;for(let i=0;i2)return!0}judgeSameDay(){let t=To.getSignTime(),e=(new Date).getTime();return new Date(t).toDateString()===new Date(e).toDateString()}getAward(t,e){let i=t[0].type<=2;vo.uiMgr.Show(be,t,i,i=>{let s;for(let e=0;e{switch(e){case L.diamond:To.setDiamond(t);break;case L.coin:To.setCoin(t)}i&&i()})}autoPopUIView(){let t=[];if(!this.judgeSameDay()&&t.push("sign"),To.getDailyfreeDrawTimes()>0&&t.push("draw"),!(t.length<=0))switch(this.getRandArrEle(t)){case"sign":vo.uiMgr.Show(Et);break;case"draw":vo.uiMgr.Show(pe)}}getMSTime(t){let e=Math.floor(t/60),i=Math.floor(t-60*e);return i<10&&(i="0"+i),e<10&&(e="0"+e),`${e}:${i}`}testPower(){To.setPower(0,!1)}getAllStarNum(){let t=To.getPlaceBallLevelList(),e=0;for(let i=0;i{vo.common.showOneCamera("mainCamera"),0==vo.common.gameUI.ui.d2Node.alpha&&(vo.common.gameUI.ui.d2Node.alpha=1,vo.common.gameUI.ui.border.alpha=0,Laya.physicsTimer.scale<1&&(Laya.physicsTimer.scale=1))})}getClassicLevel(){let t,e=To.getClassicTimes(),i="",s="",n=cfgTable.classictimesData;for(const a in n)e<=(t=n[a]).times&&(i=a),s=a;return""==i&&(i=s),n[i]}}Ie._instance=null;class ke extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component92")}onConstruct(){this.n0=this.getChild("n0")}}ke.URL="ui://isxx5ak710hfv49p";class we extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("game","Component129")}onConstruct(){this.bar_v=this.getChild("bar_v"),this.n84=this.getChild("n84")}}we.URL="ui://isxx5ak7748uv4mp";class Ne extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component130")}onConstruct(){this.ani=this.getChild("ani"),this.t0=this.getTransition("t0")}}Ne.URL="ui://isxx5ak7748uv4mq";class Le extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","powerEft")}onConstruct(){this.ani=this.getChild("ani"),this.n88=this.getChild("n88"),this.n89=this.getChild("n89")}}Le.URL="ui://isxx5ak79u9xv4mr";class ve extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","PutBallLevelDisplay")}onConstruct(){this.c1=this.getController("c1"),this.n2=this.getChild("n2"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.n15=this.getChild("n15"),this.challenge=this.getChild("challenge"),this.n17=this.getChild("n17"),this.n3=this.getChild("n3"),this.starNode=this.getChild("starNode"),this.levelTxt=this.getChild("levelTxt"),this.n14=this.getChild("n14"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.special=this.getChild("special")}}ve.URL="ui://isxx5ak7avag476";class Se extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component79")}onConstruct(){this.c1=this.getController("c1"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12")}}Se.URL="ui://isxx5ak7avag477";class Ue extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component80")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.myList=this.getChild("myList"),this.t0=this.getTransition("t0")}}Ue.URL="ui://isxx5ak7avag47b";class Be extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","SignNormal")}onConstruct(){this.c1=this.getController("c1"),this.n7=this.getChild("n7"),this.n15=this.getChild("n15"),this.titleTxt=this.getChild("titleTxt"),this.n8=this.getChild("n8"),this.myIcon=this.getChild("myIcon"),this.numTxt=this.getChild("numTxt"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n17=this.getChild("n17"),this.n14=this.getChild("n14")}}Be.URL="ui://isxx5ak7bf9jv4jv";class Me extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","screenNode")}onConstruct(){this.n9=this.getChild("n9"),this.screenImg=this.getChild("screenImg")}}Me.URL="ui://isxx5ak7brgy3ux";class Te extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","GetAwrad_com1")}onConstruct(){this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.n40=this.getChild("n40"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}Te.URL="ui://isxx5ak7brwtv4mh";class Oe extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","GetAwrad_com2")}onConstruct(){this.n39=this.getChild("n39"),this.n40=this.getChild("n40"),this.t0=this.getTransition("t0")}}Oe.URL="ui://isxx5ak7brwtv4mj";class Re extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component128")}onConstruct(){this.n38=this.getChild("n38"),this.n40=this.getChild("n40")}}Re.URL="ui://isxx5ak7brwtv4mk";class je extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component100_1")}onConstruct(){this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}je.URL="ui://isxx5ak7brwtv4ml";class Pe extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component142")}onConstruct(){this.n41=this.getChild("n41"),this.n42=this.getChild("n42")}}Pe.URL="ui://isxx5ak7c50vv4y6";class De extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","main_guang")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.t0=this.getTransition("t0")}}De.URL="ui://isxx5ak7cj92v4o3";class Ee extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","try_com1")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n2=this.getChild("n2"),this.cancelBtn=this.getChild("cancelBtn"),this.videoBtn=this.getChild("videoBtn"),this.n9=this.getChild("n9"),this.n24=this.getChild("n24"),this.titleTxt=this.getChild("titleTxt"),this.n32=this.getChild("n32"),this.n29=this.getChild("n29"),this.n36=this.getChild("n36"),this.txtTime=this.getChild("txtTime"),this.t0=this.getTransition("t0")}}Ee.URL="ui://isxx5ak7cj92v4o5";class Ae extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","try_com2")}onConstruct(){this.skillicon=this.getChild("skillicon"),this.n35=this.getChild("n35"),this.n31=this.getChild("n31"),this.n32=this.getChild("n32"),this.n33=this.getChild("n33"),this.n34=this.getChild("n34")}}Ae.URL="ui://isxx5ak7cj92v4o6";class Ge extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","try_com3")}onConstruct(){this.n33=this.getChild("n33"),this.n34=this.getChild("n34"),this.n35=this.getChild("n35"),this.t0=this.getTransition("t0")}}Ge.URL="ui://isxx5ak7cj92v4o9";class He extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component121")}onConstruct(){this.n3=this.getChild("n3"),this.t0=this.getTransition("t0")}}He.URL="ui://isxx5ak7cy72v4ib";class Fe extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","huihe1")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}Fe.URL="ui://isxx5ak7d1pb47h";class _e extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","huihe2")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}_e.URL="ui://isxx5ak7d1pb47k";class Ve extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component143")}onConstruct(){this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.t0=this.getTransition("t0")}}Ve.URL="ui://isxx5ak7dt0av4yn";class We extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_jingbi2")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n10=this.getChild("n10"),this.t0=this.getTransition("t0")}}We.URL="ui://isxx5ak7ehtov4g0";class Ye extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_jingbi2_1")}onConstruct(){this.n1=this.getChild("n1"),this.n4=this.getChild("n4"),this.t0=this.getTransition("t0")}}Ye.URL="ui://isxx5ak7ehtov4g1";class Xe extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_jingbi3")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n10=this.getChild("n10"),this.t0=this.getTransition("t0")}}Xe.URL="ui://isxx5ak7ehtov4g2";class ze extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_jingbi3_1")}onConstruct(){this.n3=this.getChild("n3"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}ze.URL="ui://isxx5ak7ehtov4g3";class Ke extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","hb_jinbi1")}onConstruct(){this.n20=this.getChild("n20"),this.n25=this.getChild("n25"),this.coinTxt=this.getChild("coinTxt"),this.n28=this.getChild("n28"),this.n32=this.getChild("n32"),this.n38=this.getChild("n38"),this.n45=this.getChild("n45"),this.getTips=this.getChild("getTips"),this.n39=this.getChild("n39"),this.diamondTxt=this.getChild("diamondTxt"),this.n41=this.getChild("n41"),this.n42=this.getChild("n42"),this.n46=this.getChild("n46"),this.n47=this.getChild("n47"),this.n48=this.getChild("n48"),this.t0=this.getTransition("t0")}}Ke.URL="ui://isxx5ak7ehtov4gd";class qe extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","hb_jinbi2")}onConstruct(){this.n20=this.getChild("n20"),this.n25=this.getChild("n25"),this.coinTxt=this.getChild("coinTxt"),this.n28=this.getChild("n28"),this.n32=this.getChild("n32"),this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.diamondTxt=this.getChild("diamondTxt"),this.n41=this.getChild("n41"),this.n42=this.getChild("n42"),this.n43=this.getChild("n43"),this.n44=this.getChild("n44"),this.n45=this.getChild("n45"),this.t0=this.getTransition("t0")}}qe.URL="ui://isxx5ak7ehtov4ge";class Ze extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","hb_jinbi3")}onConstruct(){this.n20=this.getChild("n20"),this.n25=this.getChild("n25"),this.coinTxt=this.getChild("coinTxt"),this.n28=this.getChild("n28"),this.n32=this.getChild("n32"),this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.diamondTxt=this.getChild("diamondTxt"),this.n41=this.getChild("n41"),this.n42=this.getChild("n42"),this.n43=this.getChild("n43"),this.n44=this.getChild("n44"),this.n45=this.getChild("n45"),this.t0=this.getTransition("t0")}}Ze.URL="ui://isxx5ak7ehtov4gf";class $e extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component104")}onConstruct(){this.c1=this.getController("c1"),this.n12=this.getChild("n12"),this.coinBtn=this.getChild("coinBtn"),this.diamondBtn=this.getChild("diamondBtn"),this.node3=this.getChild("node3"),this.node4=this.getChild("node4"),this.node5=this.getChild("node5"),this.node1=this.getChild("node1"),this.node2=this.getChild("node2"),this.node6=this.getChild("node6"),this.t0=this.getTransition("t0")}}$e.URL="ui://isxx5ak7ehtov4gg";class Je extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component105")}onConstruct(){this.c1=this.getController("c1"),this.n49=this.getChild("n49"),this.n18=this.getChild("n18"),this.n46=this.getChild("n46"),this.n48=this.getChild("n48")}}Je.URL="ui://isxx5ak7ehtov4gh";class Qe extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component106")}onConstruct(){this.c1=this.getController("c1"),this.n49=this.getChild("n49"),this.n18=this.getChild("n18"),this.n46=this.getChild("n46"),this.n48=this.getChild("n48")}}Qe.URL="ui://isxx5ak7ehtov4gj";class ti extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","hb_zs1")}onConstruct(){this.c1=this.getController("c1"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.shareTxt=this.getChild("shareTxt"),this.n32=this.getChild("n32"),this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.n44=this.getChild("n44"),this.diamondTxt=this.getChild("diamondTxt"),this.n41=this.getChild("n41"),this.n45=this.getChild("n45"),this.n47=this.getChild("n47"),this.n48=this.getChild("n48"),this.randTxt=this.getChild("randTxt"),this.n50=this.getChild("n50"),this.t0=this.getTransition("t0")}}ti.URL="ui://isxx5ak7ehtov4gk";class ei extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs1")}onConstruct(){this.n10=this.getChild("n10"),this.n9=this.getChild("n9"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n11=this.getChild("n11"),this.t0=this.getTransition("t0")}}ei.URL="ui://isxx5ak7ehtov4gm";class ii extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs1_1")}onConstruct(){this.n3=this.getChild("n3"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}ii.URL="ui://isxx5ak7ehtov4gn";class si extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","hb_zs2")}onConstruct(){this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.n32=this.getChild("n32"),this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.n44=this.getChild("n44"),this.diamondTxt=this.getChild("diamondTxt"),this.n41=this.getChild("n41"),this.n45=this.getChild("n45"),this.t0=this.getTransition("t0")}}si.URL="ui://isxx5ak7ehtov4gu";class ni extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","hb_zs3")}onConstruct(){this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.n32=this.getChild("n32"),this.n38=this.getChild("n38"),this.n47=this.getChild("n47"),this.t0=this.getTransition("t0")}}ni.URL="ui://isxx5ak7ehtov4gv";class ai extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs2")}onConstruct(){this.n10=this.getChild("n10"),this.n9=this.getChild("n9"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n11=this.getChild("n11"),this.t0=this.getTransition("t0")}}ai.URL="ui://isxx5ak7ehtov4gw";class oi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs2_1")}onConstruct(){this.n3=this.getChild("n3"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}oi.URL="ui://isxx5ak7ehtov4gx";class hi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs3")}onConstruct(){this.n10=this.getChild("n10"),this.n9=this.getChild("n9"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n11=this.getChild("n11"),this.t0=this.getTransition("t0")}}hi.URL="ui://isxx5ak7ehtov4gy";class li extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs3_1")}onConstruct(){this.n3=this.getChild("n3"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}li.URL="ui://isxx5ak7ehtov4gz";class ri extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component107")}onConstruct(){this.n18=this.getChild("n18"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.levelTxt=this.getChild("levelTxt"),this.t0=this.getTransition("t0")}}ri.URL="ui://isxx5ak7ehtov4h0";class ci extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","box_com1")}onConstruct(){this.n14=this.getChild("n14"),this.n6=this.getChild("n6"),this.t0=this.getTransition("t0")}}ci.URL="ui://isxx5ak7erstv4nl";class di extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("game","box_com2")}onConstruct(){this.bg0=this.getChild("bg0"),this.bg=this.getChild("bg"),this.bar=this.getChild("bar"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12")}}di.URL="ui://isxx5ak7erstv4nt";class ui extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","box_com4")}onConstruct(){this.n8=this.getChild("n8"),this.t0=this.getTransition("t0")}}ui.URL="ui://isxx5ak7erstv4nx";class gi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","box_com3")}onConstruct(){this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}gi.URL="ui://isxx5ak7erstv4ny";class mi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component97")}onConstruct(){this.c1=this.getController("c1"),this.n46=this.getChild("n46"),this.diamondNode=this.getChild("diamondNode"),this.coinNode=this.getChild("coinNode"),this.t0=this.getTransition("t0")}}mi.URL="ui://isxx5ak7g1giv4eb";class yi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component98")}onConstruct(){this.n8=this.getChild("n8"),this.n40=this.getChild("n40")}}yi.URL="ui://isxx5ak7g1giv4ed";class pi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component28_11")}onConstruct(){this.c1=this.getController("c1"),this.n12=this.getChild("n12"),this.n17=this.getChild("n17"),this.n13=this.getChild("n13"),this.diamondTxt=this.getChild("diamondTxt"),this.n15=this.getChild("n15"),this.n16=this.getChild("n16")}}pi.URL="ui://isxx5ak7g1giv4eh";class xi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component58_11")}onConstruct(){this.n23=this.getChild("n23"),this.n41=this.getChild("n41"),this.myList=this.getChild("myList"),this.n45=this.getChild("n45"),this.n44=this.getChild("n44"),this.t0=this.getTransition("t0")}}xi.URL="ui://isxx5ak7g1giv4el";class Ci extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component100")}onConstruct(){this.c1=this.getController("c1"),this.n75=this.getChild("n75"),this.n76=this.getChild("n76"),this.n80=this.getChild("n80"),this.txt=this.getChild("txt"),this.spineRoot=this.getChild("spineRoot")}}Ci.URL="ui://isxx5ak7g1giv4ex";class fi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component101")}onConstruct(){this.c1=this.getController("c1"),this.n36=this.getChild("n36"),this.n35=this.getChild("n35"),this.n33=this.getChild("n33"),this.n34=this.getChild("n34")}}fi.URL="ui://isxx5ak7g1giv4ey";class bi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component53")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n16=this.getChild("n16"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n25=this.getChild("n25"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.n28=this.getChild("n28"),this.n29=this.getChild("n29"),this.n30=this.getChild("n30"),this.n31=this.getChild("n31"),this.n32=this.getChild("n32"),this.n33=this.getChild("n33"),this.n34=this.getChild("n34"),this.n35=this.getChild("n35"),this.t0=this.getTransition("t0")}}bi.URL="ui://isxx5ak7g1ie43u";class Ii extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component58")}onConstruct(){this.n23=this.getChild("n23"),this.n41=this.getChild("n41"),this.n8=this.getChild("n8"),this.skillList=this.getChild("skillList"),this.t0=this.getTransition("t0")}}Ii.URL="ui://isxx5ak7gg0z445";class ki extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component59")}onConstruct(){this.n3=this.getChild("n3"),this.msgTxt=this.getChild("msgTxt"),this.t0=this.getTransition("t0")}}ki.URL="ui://isxx5ak7gg0z446";class wi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","RulerNode")}onConstruct(){this.n6=this.getChild("n6"),this.n4=this.getChild("n4"),this.img1=this.getChild("img1"),this.img2=this.getChild("img2")}}wi.URL="ui://isxx5ak7ghnw3x8";class Ni extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component108")}onConstruct(){this.n19=this.getChild("n19"),this.t0=this.getTransition("t0")}}Ni.URL="ui://isxx5ak7gpvxv4ha";class Li extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component63")}onConstruct(){this.n66=this.getChild("n66"),this.n56=this.getChild("n56"),this.n63=this.getChild("n63"),this.n65=this.getChild("n65"),this.t0=this.getTransition("t0")}}Li.URL="ui://isxx5ak7h657452";class vi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","topNode")}onConstruct(){this.selfProgress=this.getChild("selfProgress"),this.aiProgress=this.getChild("aiProgress"),this.selfKuang=this.getChild("selfKuang"),this.aiKuang=this.getChild("aiKuang"),this.selfHeadLoader=this.getChild("selfHeadLoader"),this.aiHeadLoader=this.getChild("aiHeadLoader"),this.n33=this.getChild("n33"),this.n34=this.getChild("n34"),this.selfNameTxt=this.getChild("selfNameTxt"),this.aiNameTxt=this.getChild("aiNameTxt"),this.selfBallList=this.getChild("selfBallList"),this.aiBallList=this.getChild("aiBallList"),this.middleNode=this.getChild("middleNode"),this.selfScoreTxt=this.getChild("selfScoreTxt"),this.aiScoreTxt=this.getChild("aiScoreTxt"),this.scoreNode=this.getChild("scoreNode"),this.selfTips=this.getChild("selfTips"),this.aiTips=this.getChild("aiTips")}}vi.URL="ui://isxx5ak7hkrz3qu";class Si extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("game","selfProgress")}onConstruct(){this.n3=this.getChild("n3"),this.bar=this.getChild("bar")}}Si.URL="ui://isxx5ak7hkrz3sf";class Ui extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("game","aiProgress")}onConstruct(){this.n3=this.getChild("n3"),this.bar=this.getChild("bar")}}Ui.URL="ui://isxx5ak7hkrz3sh";class Bi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ballDisplay")}onConstruct(){this.myImg=this.getChild("myImg")}}Bi.URL="ui://isxx5ak7hkrz3sk";class Mi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","moveNode")}onConstruct(){this.n8=this.getChild("n8"),this.finger=this.getChild("finger")}}Mi.URL="ui://isxx5ak7hkrz3t9";class Ti extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","cancelBtn")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n1=this.getChild("n1")}}Ti.URL="ui://isxx5ak7hkrz3tm";class Oi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","shareBtn")}onConstruct(){this.c1=this.getController("c1"),this.n2=this.getChild("n2"),this.n1=this.getChild("n1"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6")}}Oi.URL="ui://isxx5ak7hkrz3tn";class Ri extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","share2Btn")}onConstruct(){this.n3=this.getChild("n3")}}Ri.URL="ui://isxx5ak7hkrz3tr";class ji extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","rodMethodNode")}onConstruct(){this.bg=this.getChild("bg"),this.dot=this.getChild("dot")}}ji.URL="ui://isxx5ak7hkrz3u1";class Pi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","sureBtn")}onConstruct(){this.n2=this.getChild("n2"),this.n1=this.getChild("n1")}}Pi.URL="ui://isxx5ak7hkrz3u2";class Di extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component18")}onConstruct(){this.c1=this.getController("c1"),this.nameTxt=this.getChild("nameTxt"),this.headImg=this.getChild("headImg"),this.n24=this.getChild("n24"),this.skillImg=this.getChild("skillImg"),this.skillTxt=this.getChild("skillTxt")}}Di.URL="ui://isxx5ak7hxtr3yv";class Ei extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component45")}onConstruct(){this.c1=this.getController("c1"),this.n40=this.getChild("n40"),this.n41=this.getChild("n41"),this.targetScoreTxt=this.getChild("targetScoreTxt"),this.n42=this.getChild("n42"),this.awardTxt=this.getChild("awardTxt"),this.n44=this.getChild("n44"),this.t0=this.getTransition("t0")}}Ei.URL="ui://isxx5ak7i4k2438";class Ai extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","emotionDisplay")}onConstruct(){this.myIcon=this.getChild("myIcon")}}Ai.URL="ui://isxx5ak7i4k243h";class Gi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component49")}onConstruct(){this.n69=this.getChild("n69"),this.n56=this.getChild("n56")}}Gi.URL="ui://isxx5ak7i4k243n";class Hi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component50")}onConstruct(){this.n54=this.getChild("n54"),this.n65=this.getChild("n65")}}Hi.URL="ui://isxx5ak7i4k243o";class Fi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component51")}onConstruct(){this.c1=this.getController("c1"),this.n51=this.getChild("n51"),this.n54=this.getChild("n54")}}Fi.URL="ui://isxx5ak7i4k243p";class _i extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Button5")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n2=this.getChild("n2")}}_i.URL="ui://isxx5ak7i7rdv4jg";class Vi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component124")}onConstruct(){this.n22=this.getChild("n22"),this.shareNode=this.getChild("shareNode")}}Vi.URL="ui://isxx5ak7i7rdv4jh";class Wi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component125")}onConstruct(){this.n29=this.getChild("n29"),this.coinTxt=this.getChild("coinTxt")}}Wi.URL="ui://isxx5ak7i7rdv4ji";class Yi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component52")}onConstruct(){this.n35=this.getChild("n35"),this.n36=this.getChild("n36")}}Yi.URL="ui://isxx5ak7ihpy43t";class Xi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","drawBtn")}onConstruct(){this.c1=this.getController("c1"),this.n2=this.getChild("n2"),this.n1=this.getChild("n1"),this.n5=this.getChild("n5")}}Xi.URL="ui://isxx5ak7iqrhv4mt";class zi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component43")}onConstruct(){this.n49=this.getChild("n49")}}zi.URL="ui://isxx5ak7iveg434";class Ki extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","wordsDisplay")}onConstruct(){this.txt=this.getChild("txt"),this.n63=this.getChild("n63")}}Ki.URL="ui://isxx5ak7iveg436";class qi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component3")}onConstruct(){this.n26=this.getChild("n26"),this.n24=this.getChild("n24"),this.nameTxt=this.getChild("nameTxt"),this.headRoot=this.getChild("headRoot")}}qi.URL="ui://isxx5ak7ixm43xh";class Zi extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component4")}onConstruct(){this.n44=this.getChild("n44"),this.headImg=this.getChild("headImg")}}Zi.URL="ui://isxx5ak7ixm43xi";class $i extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component7")}onConstruct(){this.n17=this.getChild("n17")}}$i.URL="ui://isxx5ak7ixm43xq";class Ji extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component8")}onConstruct(){this.n19=this.getChild("n19")}}Ji.URL="ui://isxx5ak7ixm43xr";class Qi extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component9")}onConstruct(){this.n18=this.getChild("n18")}}Qi.URL="ui://isxx5ak7ixm43xs";class ts extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component10")}onConstruct(){this.c1=this.getController("c1"),this.n40=this.getChild("n40"),this.n41=this.getChild("n41")}}ts.URL="ui://isxx5ak7ixm43xt";class es extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component11")}onConstruct(){this.n34=this.getChild("n34")}}es.URL="ui://isxx5ak7ixm43xu";class is extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component12")}onConstruct(){this.n35=this.getChild("n35")}}is.URL="ui://isxx5ak7ixm43xv";class ss extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component13")}onConstruct(){this.n27=this.getChild("n27"),this.n36=this.getChild("n36")}}ss.URL="ui://isxx5ak7ixm43xw";class ns extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component16")}onConstruct(){}}ns.URL="ui://isxx5ak7ixm43xz";class as extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_tuowei")}onConstruct(){this.n19=this.getChild("n19"),this.n18=this.getChild("n18"),this.n0=this.getChild("n0"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n20=this.getChild("n20"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}as.URL="ui://isxx5ak7j69a40n";class os extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_tw_g")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}os.URL="ui://isxx5ak7j69a40o";class hs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_xingxing")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n0=this.getChild("n0"),this.t2=this.getTransition("t2"),this.t1=this.getTransition("t1")}}hs.URL="ui://isxx5ak7j69a40p";class ls extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zy_jiazai")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n7=this.getChild("n7"),this.t0=this.getTransition("t0")}}ls.URL="ui://isxx5ak7j69a40q";class rs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_xingxing2")}onConstruct(){this.c1=this.getController("c1"),this.n3=this.getChild("n3"),this.n5=this.getChild("n5"),this.n4=this.getChild("n4"),this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2")}}rs.URL="ui://isxx5ak7j69a40r";class cs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_tuowei2")}onConstruct(){this.n19=this.getChild("n19"),this.n21=this.getChild("n21"),this.n0=this.getChild("n0"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n23=this.getChild("n23"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}cs.URL="ui://isxx5ak7j69a40s";class ds extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_tw_g_1")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.t0=this.getTransition("t0")}}ds.URL="ui://isxx5ak7j69a40t";class us extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_shibai_1")}onConstruct(){this.n4=this.getChild("n4"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.idle=this.getTransition("idle"),this.attack=this.getTransition("attack")}}us.URL="ui://isxx5ak7j69a40w";class gs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","special")}onConstruct(){this.n18=this.getChild("n18"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.levelTxt=this.getChild("levelTxt"),this.n24=this.getChild("n24"),this.n25=this.getChild("n25"),this.t0=this.getTransition("t0")}}gs.URL="ui://isxx5ak7j979v4i6";class ms extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component145")}onConstruct(){this.guanyuNode=this.getChild("guanyuNode")}}ms.URL="ui://isxx5ak7jaakv51f";class ys extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","longBtn")}onConstruct(){this.c1=this.getController("c1"),this.n2=this.getChild("n2"),this.n1=this.getChild("n1"),this.n4=this.getChild("n4")}}ys.URL="ui://isxx5ak7jaakv55v";class ps extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component146")}onConstruct(){this.n89=this.getChild("n89"),this.n90=this.getChild("n90"),this.guideBtn=this.getChild("guideBtn"),this.n93=this.getChild("n93")}}ps.URL="ui://isxx5ak7jaakv55w";class xs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component146_11")}onConstruct(){this.n89=this.getChild("n89"),this.n90=this.getChild("n90"),this.guideBtn=this.getChild("guideBtn")}}xs.URL="ui://isxx5ak7jaakv55x";class Cs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component111_1")}onConstruct(){this.n68=this.getChild("n68"),this.myMask=this.getChild("myMask")}}Cs.URL="ui://isxx5ak7jaakv55y";class fs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component64_1")}onConstruct(){this.n57=this.getChild("n57"),this.n54=this.getChild("n54"),this.n55=this.getChild("n55"),this.n56=this.getChild("n56"),this.t1=this.getTransition("t1")}}fs.URL="ui://isxx5ak7jaakv55z";class bs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ModeSelection_com123")}onConstruct(){this.type1=this.getChild("type1"),this.type2=this.getChild("type2"),this.type3=this.getChild("type3"),this.n38=this.getChild("n38"),this.t0=this.getTransition("t0")}}bs.URL="ui://isxx5ak7jaakv561";class Is extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component132_2")}onConstruct(){this.n25=this.getChild("n25"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.t0=this.getTransition("t0")}}Is.URL="ui://isxx5ak7jpszv4mw";class ks extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIPower")}onConstruct(){this.n11=this.getChild("n11"),this.myNode=this.getChild("myNode"),this.t0=this.getTransition("t0")}}ks.URL="ui://isxx5ak7jpszv4n1";class ws extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component133")}onConstruct(){this.n29=this.getChild("n29"),this.n30=this.getChild("n30")}}ws.URL="ui://isxx5ak7jpszv4n3";class Ns extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component134")}onConstruct(){this.n30=this.getChild("n30"),this.n31=this.getChild("n31"),this.t0=this.getTransition("t0")}}Ns.URL="ui://isxx5ak7jpszv4n4";class Ls extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component135")}onConstruct(){this.n30=this.getChild("n30"),this.t0=this.getTransition("t0")}}Ls.URL="ui://isxx5ak7jpszv4n6";class vs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component137")}onConstruct(){this.n28=this.getChild("n28"),this.n29=this.getChild("n29"),this.n30=this.getChild("n30"),this.n32=this.getChild("n32")}}vs.URL="ui://isxx5ak7jpszv4n8";class Ss extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","dh_zuanshi")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n0=this.getChild("n0"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4")}}Ss.URL="ui://isxx5ak7jpszv4n9";class Us extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component138")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.t0=this.getTransition("t0")}}Us.URL="ui://isxx5ak7jpszv4nf";class Bs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component139")}onConstruct(){this.n0=this.getChild("n0"),this.t0=this.getTransition("t0")}}Bs.URL="ui://isxx5ak7jpszv4ng";class Ms extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component140")}onConstruct(){this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.t0=this.getTransition("t0")}}Ms.URL="ui://isxx5ak7jpszv4nh";class Ts extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component141")}onConstruct(){this.n0=this.getChild("n0"),this.t0=this.getTransition("t0")}}Ts.URL="ui://isxx5ak7jpszv4ni";class Os extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("game","powerNode")}onConstruct(){this.n2=this.getChild("n2"),this.bar_v=this.getChild("bar_v"),this.showImg=this.getChild("showImg"),this.n12=this.getChild("n12")}}Os.URL="ui://isxx5ak7kt443qh";class Rs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_jingbi1")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.t0=this.getTransition("t0")}}Rs.URL="ui://isxx5ak7kys749e";class js extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component94")}onConstruct(){this.n77=this.getChild("n77")}}js.URL="ui://isxx5ak7l1574b6";class Ps extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component95")}onConstruct(){this.n77=this.getChild("n77")}}Ps.URL="ui://isxx5ak7l1574b7";class Ds extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component126")}onConstruct(){this.c1=this.getController("c1"),this.normalBtn=this.getChild("normalBtn"),this.tripleBtn=this.getChild("tripleBtn")}}Ds.URL="ui://isxx5ak7lhrrv4lg";class Es extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component60")}onConstruct(){this.c1=this.getController("c1"),this.n48=this.getChild("n48"),this.womanTxt=this.getChild("womanTxt"),this.t0=this.getTransition("t0")}}Es.URL="ui://isxx5ak7llhd44g";class As extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component98_3")}onConstruct(){this.c1=this.getController("c1"),this.n8=this.getChild("n8"),this.n41=this.getChild("n41"),this.n40=this.getChild("n40")}}As.URL="ui://isxx5ak7lp3lv4j2";class Gs extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","ModeSelection_com1")}onConstruct(){this.n34=this.getChild("n34"),this.n36=this.getChild("n36"),this.n22=this.getChild("n22"),this.n20=this.getChild("n20"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n26=this.getChild("n26"),this.n33=this.getChild("n33"),this.coinImg=this.getChild("coinImg"),this.need=this.getChild("need"),this.n35=this.getChild("n35"),this.n29=this.getChild("n29"),this.tipsTxt=this.getChild("tipsTxt"),this.n30=this.getChild("n30"),this.peopleTxt=this.getChild("peopleTxt"),this.t0=this.getTransition("t0")}}Gs.URL="ui://isxx5ak7lrxgv50m";class Hs extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","ModeSelection_com2")}onConstruct(){this.n36=this.getChild("n36"),this.n34=this.getChild("n34"),this.n22=this.getChild("n22"),this.n20=this.getChild("n20"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n26=this.getChild("n26"),this.n33=this.getChild("n33"),this.coinImg=this.getChild("coinImg"),this.need=this.getChild("need"),this.n35=this.getChild("n35"),this.n29=this.getChild("n29"),this.tipsTxt=this.getChild("tipsTxt"),this.n30=this.getChild("n30"),this.peopleTxt=this.getChild("peopleTxt"),this.t0=this.getTransition("t0")}}Hs.URL="ui://isxx5ak7lrxgv50n";class Fs extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","ModeSelection_com3")}onConstruct(){this.n34=this.getChild("n34"),this.n36=this.getChild("n36"),this.n22=this.getChild("n22"),this.n20=this.getChild("n20"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n26=this.getChild("n26"),this.n33=this.getChild("n33"),this.coinImg=this.getChild("coinImg"),this.need=this.getChild("need"),this.n35=this.getChild("n35"),this.n29=this.getChild("n29"),this.tipsTxt=this.getChild("tipsTxt"),this.n30=this.getChild("n30"),this.peopleTxt=this.getChild("peopleTxt"),this.t0=this.getTransition("t0")}}Fs.URL="ui://isxx5ak7lrxgv50o";class _s extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Invitation_com1")}onConstruct(){this.n14=this.getChild("n14"),this.n13=this.getChild("n13"),this.n3=this.getChild("n3"),this.n1=this.getChild("n1"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.enterBtn=this.getChild("enterBtn"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n15=this.getChild("n15"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}_s.URL="ui://isxx5ak7lrxgv513";class Vs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component87_1")}onConstruct(){this.n74=this.getChild("n74"),this.n73=this.getChild("n73"),this.ballTxt=this.getChild("ballTxt"),this.n76=this.getChild("n76"),this.helpLineBtn=this.getChild("helpLineBtn"),this.levelTxt=this.getChild("levelTxt"),this.n87=this.getChild("n87"),this.n84=this.getChild("n84"),this.hpTxt=this.getChild("hpTxt"),this.n89=this.getChild("n89"),this.tipsTxt=this.getChild("tipsTxt")}}Vs.URL="ui://isxx5ak7luq648t";class Ws extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","sqg1")}onConstruct(){this.n1=this.getChild("n1"),this.n0=this.getChild("n0")}}Ws.URL="ui://isxx5ak7mif8v4ma";class Ys extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","sqg2")}onConstruct(){this.n1=this.getChild("n1"),this.n0=this.getChild("n0")}}Ys.URL="ui://isxx5ak7mif8v4mb";class Xs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","sqg3")}onConstruct(){this.n1=this.getChild("n1"),this.n0=this.getChild("n0")}}Xs.URL="ui://isxx5ak7mif8v4mc";class zs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","sqg4")}onConstruct(){this.n1=this.getChild("n1"),this.n0=this.getChild("n0")}}zs.URL="ui://isxx5ak7mif8v4md";class Ks extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component36")}onConstruct(){this.c1=this.getController("c1"),this.n53=this.getChild("n53"),this.n56=this.getChild("n56")}}Ks.URL="ui://isxx5ak7mnrs42r";class qs extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component37")}onConstruct(){this.c1=this.getController("c1"),this.n52=this.getChild("n52"),this.n54=this.getChild("n54")}}qs.URL="ui://isxx5ak7mnrs42s";class Zs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UISetting")}onConstruct(){this.c1=this.getController("c1"),this.n4=this.getChild("n4"),this.soundBtn=this.getChild("soundBtn"),this.shakeBtn=this.getChild("shakeBtn"),this.clickNode=this.getChild("clickNode"),this.xyBtn=this.getChild("xyBtn")}}Zs.URL="ui://isxx5ak7mnrs42t";class $s extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component39")}onConstruct(){this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.t0=this.getTransition("t0")}}$s.URL="ui://isxx5ak7mnrs42v";class Js extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component40")}onConstruct(){this.n46=this.getChild("n46"),this.n47=this.getChild("n47")}}Js.URL="ui://isxx5ak7mnrs42y";class Qs extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component41")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.titleTxt=this.getChild("titleTxt"),this.n2=this.getChild("n2"),this.msgTips=this.getChild("msgTips"),this.numTxt=this.getChild("numTxt"),this.n18=this.getChild("n18"),this.cancelBtn=this.getChild("cancelBtn"),this.videoBtn=this.getChild("videoBtn"),this.n10=this.getChild("n10")}}Qs.URL="ui://isxx5ak7mnrs430";class tn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component42")}onConstruct(){this.c1=this.getController("c1"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.tipsTxt=this.getChild("tipsTxt"),this.cancelBtn=this.getChild("cancelBtn"),this.sureBtn=this.getChild("sureBtn"),this.n11=this.getChild("n11"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.womanTxt=this.getChild("womanTxt"),this.t0=this.getTransition("t0")}}tn.URL="ui://isxx5ak7mnrs431";class en extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_shengli")}onConstruct(){this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.attack=this.getTransition("attack"),this.idle=this.getTransition("idle")}}en.URL="ui://isxx5ak7n43d3v0";class sn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_shengli_g")}onConstruct(){this.n3=this.getChild("n3"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}sn.URL="ui://isxx5ak7n43d3v1";class nn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_js_shibai")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.idle=this.getTransition("idle"),this.attack=this.getTransition("attack")}}nn.URL="ui://isxx5ak7n43d3v2";class an extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","dh_zy_ganfa")}onConstruct(){this.n0=this.getChild("n0")}}an.URL="ui://isxx5ak7n43d3vl";class on extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","dh_zy_sc_guang")}onConstruct(){this.n0=this.getChild("n0"),this.n2=this.getChild("n2")}}on.URL="ui://isxx5ak7n43d3vn";class hn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zy_shangcheng")}onConstruct(){this.n0=this.getChild("n0"),this.n3=this.getChild("n3"),this.t0=this.getTransition("t0")}}hn.URL="ui://isxx5ak7n43d3vo";class ln extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","dh_zy_wanfa")}onConstruct(){this.n0=this.getChild("n0")}}ln.URL="ui://isxx5ak7n43d3vp";class rn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component53_1")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n16=this.getChild("n16"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n25=this.getChild("n25"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.n28=this.getChild("n28"),this.n29=this.getChild("n29"),this.n30=this.getChild("n30"),this.n31=this.getChild("n31"),this.n32=this.getChild("n32"),this.n33=this.getChild("n33"),this.n34=this.getChild("n34"),this.n35=this.getChild("n35"),this.t0=this.getTransition("t0")}}rn.URL="ui://isxx5ak7nqgqv4y4";class cn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component30")}onConstruct(){this.c1=this.getController("c1"),this.n46=this.getChild("n46"),this.n47=this.getChild("n47"),this.numTxt=this.getChild("numTxt"),this.n50=this.getChild("n50"),this.n53=this.getChild("n53"),this.n54=this.getChild("n54"),this.n55=this.getChild("n55"),this.n56=this.getChild("n56")}}cn.URL="ui://isxx5ak7p4tr41y";class dn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component30_1")}onConstruct(){this.c1=this.getController("c1"),this.n46=this.getChild("n46"),this.n47=this.getChild("n47"),this.numTxt=this.getChild("numTxt"),this.n50=this.getChild("n50"),this.n51=this.getChild("n51"),this.n52=this.getChild("n52"),this.n53=this.getChild("n53"),this.n54=this.getChild("n54")}}dn.URL="ui://isxx5ak7p4tr41z";class un extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component31")}onConstruct(){this.n55=this.getChild("n55"),this.n54=this.getChild("n54"),this.conditionTxt=this.getChild("conditionTxt"),this.n57=this.getChild("n57"),this.t0=this.getTransition("t0")}}un.URL="ui://isxx5ak7p4tr423";class gn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component32")}onConstruct(){this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.t0=this.getTransition("t0")}}gn.URL="ui://isxx5ak7p4tr42f";class mn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","AwardItem")}onConstruct(){this.n9=this.getChild("n9"),this.myIcon=this.getChild("myIcon"),this.numTxt=this.getChild("numTxt"),this.nameTxt=this.getChild("nameTxt"),this.n16=this.getChild("n16"),this.n17=this.getChild("n17")}}mn.URL="ui://isxx5ak7p4tr42h";class yn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com1")}onConstruct(){this.c1=this.getController("c1"),this.n49=this.getChild("n49"),this.n18=this.getChild("n18"),this.n46=this.getChild("n46"),this.n48=this.getChild("n48"),this.n50=this.getChild("n50")}}yn.URL="ui://isxx5ak7p7rrv4pr";class pn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com2")}onConstruct(){this.c1=this.getController("c1"),this.n49=this.getChild("n49"),this.n18=this.getChild("n18"),this.n46=this.getChild("n46"),this.n48=this.getChild("n48"),this.n50=this.getChild("n50")}}pn.URL="ui://isxx5ak7p7rrv4ps";class xn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com3")}onConstruct(){this.n17=this.getChild("n17"),this.myIcon=this.getChild("myIcon")}}xn.URL="ui://isxx5ak7p7rrv4pw";class Cn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com4")}onConstruct(){this.n16=this.getChild("n16"),this.head=this.getChild("head")}}Cn.URL="ui://isxx5ak7p7rrv4px";class fn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com5")}onConstruct(){this.c1=this.getController("c1"),this.c2=this.getController("c2"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.levelBtn=this.getChild("levelBtn"),this.starBtn=this.getChild("starBtn"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n25=this.getChild("n25"),this.myList=this.getChild("myList"),this.selfNode=this.getChild("selfNode"),this.n9=this.getChild("n9"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n39=this.getChild("n39"),this.n41=this.getChild("n41"),this.n42=this.getChild("n42"),this.n45=this.getChild("n45"),this.changeBtn=this.getChild("changeBtn"),this.closeBtn=this.getChild("closeBtn"),this.t0=this.getTransition("t0")}}fn.URL="ui://isxx5ak7p7rrv4pz";class bn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","RankItem")}onConstruct(){this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.rankTxt=this.getChild("rankTxt"),this.headNode=this.getChild("headNode"),this.nameTxt=this.getChild("nameTxt"),this.n19=this.getChild("n19"),this.valueTxt=this.getChild("valueTxt"),this.img1=this.getChild("img1"),this.img2=this.getChild("img2"),this.img3=this.getChild("img3")}}bn.URL="ui://isxx5ak7p7rrv4q1";class In extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com9")}onConstruct(){this.c1=this.getController("c1"),this.n27=this.getChild("n27"),this.n28=this.getChild("n28"),this.headNode=this.getChild("headNode"),this.rankTxt=this.getChild("rankTxt"),this.nameTxt=this.getChild("nameTxt"),this.n34=this.getChild("n34"),this.valueTxt=this.getChild("valueTxt"),this.n36=this.getChild("n36"),this.n37=this.getChild("n37"),this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.n40=this.getChild("n40")}}In.URL="ui://isxx5ak7p7rrv4q3";class kn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com10")}onConstruct(){this.n23=this.getChild("n23"),this.n24=this.getChild("n24")}}kn.URL="ui://isxx5ak7p7rrv4q4";class wn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com11")}onConstruct(){this.n24=this.getChild("n24"),this.n25=this.getChild("n25"),this.t0=this.getTransition("t0")}}wn.URL="ui://isxx5ak7p7rrv4q5";class Nn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","ranking_com13")}onConstruct(){this.c1=this.getController("c1"),this.n44=this.getChild("n44"),this.n45=this.getChild("n45"),this.n46=this.getChild("n46")}}Nn.URL="ui://isxx5ak7p7rrv4qa";class Ln extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component122")}onConstruct(){this.gameNode1=this.getChild("gameNode1"),this.gameNode2=this.getChild("gameNode2"),this.gameNode3=this.getChild("gameNode3")}}Ln.URL="ui://isxx5ak7pf2sv4ic";class vn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","skillItem")}onConstruct(){this.c1=this.getController("c1"),this.n31=this.getChild("n31"),this.n6=this.getChild("n6"),this.skillImg=this.getChild("skillImg"),this.nameTxt=this.getChild("nameTxt"),this.levelTxt=this.getChild("levelTxt"),this.n28=this.getChild("n28"),this.describeTxt=this.getChild("describeTxt"),this.n32=this.getChild("n32"),this.mutiBtn=this.getChild("mutiBtn"),this.tryNode=this.getChild("tryNode"),this.normalBtn=this.getChild("normalBtn"),this.startBtn=this.getChild("startBtn"),this.n42=this.getChild("n42"),this.n43=this.getChild("n43"),this.n44=this.getChild("n44")}}vn.URL="ui://isxx5ak7qlo041q";class Sn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component26")}onConstruct(){this.n11=this.getChild("n11"),this.n30=this.getChild("n30"),this.n34=this.getChild("n34")}}Sn.URL="ui://isxx5ak7qlo041r";class Un extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component28")}onConstruct(){this.n12=this.getChild("n12"),this.n31=this.getChild("n31"),this.curTxt=this.getChild("curTxt"),this.n33=this.getChild("n33")}}Un.URL="ui://isxx5ak7qlo041t";class Bn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component113")}onConstruct(){this.n85=this.getChild("n85"),this.n86=this.getChild("n86"),this.n77=this.getChild("n77"),this.n79=this.getChild("n79"),this.n80=this.getChild("n80"),this.n81=this.getChild("n81"),this.n82=this.getChild("n82"),this.n84=this.getChild("n84"),this.n87=this.getChild("n87"),this.t0=this.getTransition("t0")}}Bn.URL="ui://isxx5ak7r5f8v4hv";class Mn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component114")}onConstruct(){this.n77=this.getChild("n77"),this.t0=this.getTransition("t0")}}Mn.URL="ui://isxx5ak7r5f8v4hw";class Tn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component115")}onConstruct(){this.n83=this.getChild("n83"),this.fingerNode=this.getChild("fingerNode"),this.n84=this.getChild("n84")}}Tn.URL="ui://isxx5ak7r5f8v4hx";class On extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component117")}onConstruct(){this.n87=this.getChild("n87"),this.n88=this.getChild("n88"),this.n84=this.getChild("n84"),this.n85=this.getChild("n85"),this.n86=this.getChild("n86"),this.t0=this.getTransition("t0")}}On.URL="ui://isxx5ak7r5f8v4hz";class Rn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component98_1")}onConstruct(){this.c1=this.getController("c1"),this.n8=this.getChild("n8"),this.n41=this.getChild("n41"),this.n40=this.getChild("n40")}}Rn.URL="ui://isxx5ak7s46iv4f0";class jn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component61")}onConstruct(){this.n14=this.getChild("n14"),this.n6=this.getChild("n6"),this.t0=this.getTransition("t0")}}jn.URL="ui://isxx5ak7s8sz44h";class Pn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component62")}onConstruct(){this.n66=this.getChild("n66"),this.n56=this.getChild("n56"),this.n63=this.getChild("n63"),this.n65=this.getChild("n65"),this.t0=this.getTransition("t0")}}Pn.URL="ui://isxx5ak7s8sz44u";class Dn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","d3Root")}onConstruct(){}}Dn.URL="ui://isxx5ak7sdh33ql";class En extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","d2Root")}onConstruct(){}}En.URL="ui://isxx5ak7sdh33qm";class An extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","ballNode")}onConstruct(){}}An.URL="ui://isxx5ak7sdh33qn";class Gn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","border")}onConstruct(){this.bar1=this.getChild("bar1"),this.bar2=this.getChild("bar2"),this.bar3=this.getChild("bar3"),this.bar4=this.getChild("bar4"),this.bar5=this.getChild("bar5"),this.bar6=this.getChild("bar6"),this.circle1=this.getChild("circle1"),this.circle2=this.getChild("circle2"),this.circle3=this.getChild("circle3"),this.circle4=this.getChild("circle4"),this.circle5=this.getChild("circle5"),this.circle6=this.getChild("circle6"),this.n28=this.getChild("n28")}}Gn.URL="ui://isxx5ak7sdh33qq";class Hn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component41_2")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n2=this.getChild("n2"),this.n19=this.getChild("n19"),this.cancelBtn=this.getChild("cancelBtn"),this.videoBtn=this.getChild("videoBtn"),this.n9=this.getChild("n9"),this.n22=this.getChild("n22"),this.tipsTxt=this.getChild("tipsTxt"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.titleTxt=this.getChild("titleTxt")}}Hn.URL="ui://isxx5ak7trk948w";class Fn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component41_1")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n2=this.getChild("n2"),this.cancelBtn=this.getChild("cancelBtn"),this.videoBtn=this.getChild("videoBtn"),this.n27=this.getChild("n27"),this.n30=this.getChild("n30"),this.n31=this.getChild("n31"),this.n32=this.getChild("n32"),this.n33=this.getChild("n33"),this.n34=this.getChild("n34"),this.n35=this.getChild("n35"),this.n36=this.getChild("n36"),this.n1=this.getChild("n1"),this.n37=this.getChild("n37"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1"),this.t2=this.getTransition("t2"),this.t3=this.getTransition("t3")}}Fn.URL="ui://isxx5ak7trk9491";class _n extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","againBtn")}onConstruct(){this.n2=this.getChild("n2"),this.n1=this.getChild("n1"),this.n5=this.getChild("n5")}}_n.URL="ui://isxx5ak7u58xv509";class Vn extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component118")}onConstruct(){this.c1=this.getController("c1"),this.n14=this.getChild("n14"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.diamondTxt=this.getChild("diamondTxt"),this.n13=this.getChild("n13"),this.n15=this.getChild("n15")}}Vn.URL="ui://isxx5ak7u8eiv4i2";class Wn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component119")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n13=this.getChild("n13"),this.n6=this.getChild("n6"),this.screenNode=this.getChild("screenNode"),this.n15=this.getChild("n15"),this.closeBtn=this.getChild("closeBtn"),this.share2Btn=this.getChild("share2Btn"),this.shareBtn=this.getChild("shareBtn"),this.tipsNode=this.getChild("tipsNode"),this.awardNode=this.getChild("awardNode")}}Wn.URL="ui://isxx5ak7u8eiv4i3";class Yn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component132_1")}onConstruct(){this.n25=this.getChild("n25"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.t0=this.getTransition("t0")}}Yn.URL="ui://isxx5ak7uih8v568";class Xn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","SecretaryDisplay")}onConstruct(){this.n2=this.getChild("n2"),this.levelTxt=this.getChild("levelTxt"),this.n4=this.getChild("n4"),this.secretary=this.getChild("secretary"),this.purchaseBtn=this.getChild("purchaseBtn"),this.n16=this.getChild("n16"),this.n37=this.getChild("n37"),this.n41=this.getChild("n41"),this.n14=this.getChild("n14"),this.n17=this.getChild("n17"),this.heightTxt=this.getChild("heightTxt"),this.n46=this.getChild("n46"),this.n36=this.getChild("n36"),this.n38=this.getChild("n38"),this.foodTxt=this.getChild("foodTxt"),this.n47=this.getChild("n47"),this.n40=this.getChild("n40"),this.n42=this.getChild("n42"),this.historyTxt=this.getChild("historyTxt"),this.n48=this.getChild("n48"),this.nameImg=this.getChild("nameImg"),this.n12=this.getChild("n12"),this.n49=this.getChild("n49"),this.t0=this.getTransition("t0")}}Xn.URL="ui://isxx5ak7uqohv4lo";class zn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","BallRodDisplay")}onConstruct(){this.c1=this.getController("c1"),this.n31=this.getChild("n31"),this.n6=this.getChild("n6"),this.nameTxt=this.getChild("nameTxt"),this.rodImg=this.getChild("rodImg"),this.levelNode=this.getChild("levelNode"),this.eftRod=this.getChild("eftRod"),this.purchaseBtn=this.getChild("purchaseBtn")}}zn.URL="ui://isxx5ak7uqohv4lr";class Kn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component111_11")}onConstruct(){this.n68=this.getChild("n68"),this.n69=this.getChild("n69")}}Kn.URL="ui://isxx5ak7vhzhv4hk";class qn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component112")}onConstruct(){this.n68=this.getChild("n68"),this.n70=this.getChild("n70"),this.myMask=this.getChild("myMask")}}qn.URL="ui://isxx5ak7vhzhv4ho";class Zn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component111")}onConstruct(){this.n68=this.getChild("n68"),this.myMask=this.getChild("myMask")}}Zn.URL="ui://isxx5ak7vhzhv4hq";class $n extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component144")}onConstruct(){this.n8=this.getChild("n8")}}$n.URL="ui://isxx5ak7vv6av515";class Jn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_com2")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}Jn.URL="ui://isxx5ak7wcn5v4k1";class Qn extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_guang")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8")}}Qn.URL="ui://isxx5ak7wcn5v4k4";class ta extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","SignMax")}onConstruct(){this.c1=this.getController("c1"),this.n7=this.getChild("n7"),this.n15=this.getChild("n15"),this.n8=this.getChild("n8"),this.titleTxt=this.getChild("titleTxt"),this.myIcon1=this.getChild("myIcon1"),this.numTxt1=this.getChild("numTxt1"),this.myIcon2=this.getChild("myIcon2"),this.n20=this.getChild("n20"),this.n17=this.getChild("n17"),this.numTxt2=this.getChild("numTxt2"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n21=this.getChild("n21"),this.n14=this.getChild("n14")}}ta.URL="ui://isxx5ak7wcn5v4k6";class ea extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_com2_1")}onConstruct(){this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.t0=this.getTransition("t0")}}ea.URL="ui://isxx5ak7wcn5v4k7";class ia extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_com5")}onConstruct(){this.n3=this.getChild("n3"),this.n29=this.getChild("n29"),this.n4=this.getChild("n4"),this.day1=this.getChild("day1"),this.day2=this.getChild("day2"),this.day3=this.getChild("day3"),this.day4=this.getChild("day4"),this.day5=this.getChild("day5"),this.day6=this.getChild("day6"),this.day7=this.getChild("day7"),this.t0=this.getTransition("t0")}}ia.URL="ui://isxx5ak7wcn5v4k9";class sa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_com8")}onConstruct(){this.n48=this.getChild("n48"),this.womanTxt=this.getChild("womanTxt"),this.t0=this.getTransition("t0")}}sa.URL="ui://isxx5ak7wcn5v4ka";class na extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_com6")}onConstruct(){this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.t0=this.getTransition("t0")}}na.URL="ui://isxx5ak7wcn5v4kb";class aa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Sign_com7")}onConstruct(){this.n29=this.getChild("n29"),this.n2=this.getChild("n2")}}aa.URL="ui://isxx5ak7wcn5v4kd";class oa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com1_2")}onConstruct(){this.n5=this.getChild("n5"),this.n4=this.getChild("n4"),this.t0=this.getTransition("t0")}}oa.URL="ui://isxx5ak7wcn5v4kr";class ha extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com2")}onConstruct(){this.c1=this.getController("c1"),this.n4=this.getChild("n4"),this.n6=this.getChild("n6"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n16=this.getChild("n16"),this.n17=this.getChild("n17"),this.n18=this.getChild("n18"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.n24=this.getChild("n24"),this.n25=this.getChild("n25"),this.n26=this.getChild("n26"),this.n27=this.getChild("n27"),this.n28=this.getChild("n28"),this.n29=this.getChild("n29"),this.n30=this.getChild("n30"),this.n31=this.getChild("n31"),this.n32=this.getChild("n32"),this.n33=this.getChild("n33")}}ha.URL="ui://isxx5ak7wcn5v4ks";class la extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com1_1")}onConstruct(){this.n5=this.getChild("n5"),this.n4=this.getChild("n4"),this.t0=this.getTransition("t0")}}la.URL="ui://isxx5ak7wcn5v4kt";class ra extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com5")}onConstruct(){this.flashNode=this.getChild("flashNode"),this.rotNode=this.getChild("rotNode"),this.n3=this.getChild("n3"),this.n21=this.getChild("n21"),this.t0=this.getTransition("t0")}}ra.URL="ui://isxx5ak7wcn5v4kz";class ca extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com7")}onConstruct(){this.n2=this.getChild("n2"),this.n35=this.getChild("n35"),this.img1=this.getChild("img1"),this.img2=this.getChild("img2"),this.img3=this.getChild("img3"),this.img4=this.getChild("img4"),this.img6=this.getChild("img6"),this.img5=this.getChild("img5"),this.txt1=this.getChild("txt1"),this.txt2=this.getChild("txt2"),this.txt3=this.getChild("txt3"),this.txt4=this.getChild("txt4"),this.txt5=this.getChild("txt5"),this.txt6=this.getChild("txt6")}}ca.URL="ui://isxx5ak7wcn5v4l1";class da extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com9")}onConstruct(){this.n38=this.getChild("n38"),this.n39=this.getChild("n39")}}da.URL="ui://isxx5ak7wcn5v4l8";class ua extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com10")}onConstruct(){this.n39=this.getChild("n39"),this.n40=this.getChild("n40"),this.t0=this.getTransition("t0")}}ua.URL="ui://isxx5ak7wcn5v4l9";class ga extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com11")}onConstruct(){this.n38=this.getChild("n38"),this.n39=this.getChild("n39"),this.n40=this.getChild("n40"),this.t0=this.getTransition("t0")}}ga.URL="ui://isxx5ak7wcn5v4la";class ma extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com12")}onConstruct(){this.n43=this.getChild("n43"),this.barNode=this.getChild("barNode"),this.tipsTxt=this.getChild("tipsTxt"),this.n45=this.getChild("n45"),this.boxBtn=this.getChild("boxBtn")}}ma.URL="ui://isxx5ak7wcn5v4lb";class ya extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com1")}onConstruct(){this.n41=this.getChild("n41"),this.n42=this.getChild("n42"),this.t0=this.getTransition("t0")}}ya.URL="ui://isxx5ak7wcn5v4lc";class pa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UITurntable_com3")}onConstruct(){this.n48=this.getChild("n48"),this.womanTxt=this.getChild("womanTxt"),this.t0=this.getTransition("t0")}}pa.URL="ui://isxx5ak7wcn5v4ld";class xa extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","cancelBtn2")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.powerEft=this.getChild("powerEft")}}xa.URL="ui://isxx5ak7wehi3ue";class Ca extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","shareBtn2")}onConstruct(){this.c1=this.getController("c1"),this.n2=this.getChild("n2"),this.n24=this.getChild("n24"),this.n1=this.getChild("n1"),this.n3=this.getChild("n3"),this.n23=this.getChild("n23"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.n22=this.getChild("n22"),this.powerEft=this.getChild("powerEft")}}Ca.URL="ui://isxx5ak7wehi3uf";class fa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIMoney")}onConstruct(){this.c1=this.getController("c1"),this.n4=this.getChild("n4"),this.coinImg=this.getChild("coinImg"),this.addCoinBtn=this.getChild("addCoinBtn"),this.coinTxt=this.getChild("coinTxt"),this.n7=this.getChild("n7"),this.addDiamondBtn=this.getChild("addDiamondBtn"),this.diamondTxt=this.getChild("diamondTxt"),this.diamondImg=this.getChild("diamondImg"),this.n12=this.getChild("n12"),this.powerImg=this.getChild("powerImg"),this.addPowerBtn=this.getChild("addPowerBtn"),this.powerTxt=this.getChild("powerTxt"),this.powerTimeTxt=this.getChild("powerTimeTxt")}}fa.URL="ui://isxx5ak7wehi3ug";class ba extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","backBtn")}onConstruct(){this.n0=this.getChild("n0"),this.t0=this.getTransition("t0"),this.t1=this.getTransition("t1")}}ba.URL="ui://isxx5ak7wehi3ul";class Ia extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","MoneyBtn")}onConstruct(){this.button=this.getController("button"),this.n0=this.getChild("n0")}}Ia.URL="ui://isxx5ak7wehi3un";class ka extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","UIMoneyBtn")}onConstruct(){this.n1=this.getChild("n1"),this.closeBtn=this.getChild("closeBtn")}}ka.URL="ui://isxx5ak7wehi3up";class wa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component64")}onConstruct(){this.n57=this.getChild("n57"),this.n54=this.getChild("n54"),this.n55=this.getChild("n55"),this.n56=this.getChild("n56"),this.t1=this.getTransition("t1")}}wa.URL="ui://isxx5ak7wp26456";class Na extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component41_3")}onConstruct(){this.c1=this.getController("c1"),this.n0=this.getChild("n0"),this.n2=this.getChild("n2"),this.cancelBtn=this.getChild("cancelBtn"),this.videoBtn=this.getChild("videoBtn"),this.n9=this.getChild("n9"),this.n24=this.getChild("n24"),this.n27=this.getChild("n27"),this.titleTxt=this.getChild("titleTxt"),this.n28=this.getChild("n28"),this.t0=this.getTransition("t0")}}Na.URL="ui://isxx5ak7wyzsv4o1";class La extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","dh_zs_4")}onConstruct(){this.n1=this.getChild("n1"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n8=this.getChild("n8"),this.t0=this.getTransition("t0")}}La.URL="ui://isxx5ak7wyzsv4o2";class va extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component71_1")}onConstruct(){this.n17=this.getChild("n17"),this.t0=this.getTransition("t0")}}va.URL="ui://isxx5ak7xs1r47w";class Sa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component83")}onConstruct(){this.c1=this.getController("c1"),this.n17=this.getChild("n17"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20")}}Sa.URL="ui://isxx5ak7xs1r47z";class Ua extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component84")}onConstruct(){this.c1=this.getController("c1"),this.n4=this.getChild("n4"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.numTxt=this.getChild("numTxt"),this.n25=this.getChild("n25"),this.n26=this.getChild("n26")}}Ua.URL="ui://isxx5ak7xs1r480";class Ba extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component84_1")}onConstruct(){this.c1=this.getController("c1"),this.n4=this.getChild("n4"),this.n22=this.getChild("n22"),this.n23=this.getChild("n23"),this.numTxt=this.getChild("numTxt"),this.n25=this.getChild("n25"),this.n26=this.getChild("n26")}}Ba.URL="ui://isxx5ak7xs1r481";class Ma extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component85")}onConstruct(){this.n1=this.getChild("n1"),this.n6=this.getChild("n6"),this.n2=this.getChild("n2"),this.n3=this.getChild("n3"),this.levelTxt=this.getChild("levelTxt"),this.n10=this.getChild("n10"),this.n11=this.getChild("n11"),this.n12=this.getChild("n12"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.modeNode=this.getChild("modeNode"),this.n18=this.getChild("n18"),this.conditionTxt=this.getChild("conditionTxt"),this.diamondNode=this.getChild("diamondNode"),this.coinNode=this.getChild("coinNode"),this.startBtn=this.getChild("startBtn"),this.n28=this.getChild("n28"),this.displayRoot=this.getChild("displayRoot"),this.t0=this.getTransition("t0")}}Ma.URL="ui://isxx5ak7xs1r482";class Ta extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component86")}onConstruct(){this.n15=this.getChild("n15"),this.t0=this.getTransition("t0")}}Ta.URL="ui://isxx5ak7xs1r483";class Oa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component87")}onConstruct(){this.n66=this.getChild("n66"),this.myProgress=this.getChild("myProgress"),this.starAni=this.getChild("starAni"),this.hpTxt=this.getChild("hpTxt"),this.n74=this.getChild("n74"),this.n73=this.getChild("n73"),this.ballTxt=this.getChild("ballTxt"),this.n76=this.getChild("n76"),this.helpLineBtn=this.getChild("helpLineBtn"),this.levelTxt=this.getChild("levelTxt"),this.star1=this.getChild("star1"),this.star2=this.getChild("star2"),this.star3=this.getChild("star3")}}Oa.URL="ui://isxx5ak7xs1r48m";class Ra extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("game","Component88")}onConstruct(){this.n68=this.getChild("n68"),this.bar=this.getChild("bar")}}Ra.URL="ui://isxx5ak7xs1r48n";class ja extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component89")}onConstruct(){this.c1=this.getController("c1"),this.n71=this.getChild("n71"),this.n72=this.getChild("n72")}}ja.URL="ui://isxx5ak7xs1r48o";class Pa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("game","Component90")}onConstruct(){this.c1=this.getController("c1"),this.n64=this.getChild("n64"),this.n65=this.getChild("n65"),this.n66=this.getChild("n66"),this.t0=this.getTransition("t0")}}Pa.URL="ui://isxx5ak7xs1r48p";class Da extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("game","Component127")}onConstruct(){this.n5=this.getChild("n5")}}Da.URL="ui://isxx5ak7yjr4v4m6";class Ea{static bindAll(){fgui.UIObjectFactory.setExtension(Ct.URL,Ct),fgui.UIObjectFactory.setExtension(ke.URL,ke),fgui.UIObjectFactory.setExtension(we.URL,we),fgui.UIObjectFactory.setExtension(Ne.URL,Ne),fgui.UIObjectFactory.setExtension(Le.URL,Le),fgui.UIObjectFactory.setExtension(pt.URL,pt),fgui.UIObjectFactory.setExtension(ve.URL,ve),fgui.UIObjectFactory.setExtension(Se.URL,Se),fgui.UIObjectFactory.setExtension(Ue.URL,Ue),fgui.UIObjectFactory.setExtension(jt.URL,jt),fgui.UIObjectFactory.setExtension(Be.URL,Be),fgui.UIObjectFactory.setExtension(Me.URL,Me),fgui.UIObjectFactory.setExtension(Te.URL,Te),fgui.UIObjectFactory.setExtension(Oe.URL,Oe),fgui.UIObjectFactory.setExtension(Re.URL,Re),fgui.UIObjectFactory.setExtension(je.URL,je),fgui.UIObjectFactory.setExtension(Pe.URL,Pe),fgui.UIObjectFactory.setExtension(De.URL,De),fgui.UIObjectFactory.setExtension(_.URL,_),fgui.UIObjectFactory.setExtension(Ee.URL,Ee),fgui.UIObjectFactory.setExtension(Ae.URL,Ae),fgui.UIObjectFactory.setExtension(Ge.URL,Ge),fgui.UIObjectFactory.setExtension(He.URL,He),fgui.UIObjectFactory.setExtension(Fe.URL,Fe),fgui.UIObjectFactory.setExtension(_e.URL,_e),fgui.UIObjectFactory.setExtension(ie.URL,ie),fgui.UIObjectFactory.setExtension(Ve.URL,Ve),fgui.UIObjectFactory.setExtension(We.URL,We),fgui.UIObjectFactory.setExtension(Ye.URL,Ye),fgui.UIObjectFactory.setExtension(Xe.URL,Xe),fgui.UIObjectFactory.setExtension(ze.URL,ze),fgui.UIObjectFactory.setExtension(Ke.URL,Ke),fgui.UIObjectFactory.setExtension(qe.URL,qe),fgui.UIObjectFactory.setExtension(Ze.URL,Ze),fgui.UIObjectFactory.setExtension($e.URL,$e),fgui.UIObjectFactory.setExtension(Je.URL,Je),fgui.UIObjectFactory.setExtension(Qe.URL,Qe),fgui.UIObjectFactory.setExtension(ti.URL,ti),fgui.UIObjectFactory.setExtension(ei.URL,ei),fgui.UIObjectFactory.setExtension(ii.URL,ii),fgui.UIObjectFactory.setExtension(si.URL,si),fgui.UIObjectFactory.setExtension(ni.URL,ni),fgui.UIObjectFactory.setExtension(ai.URL,ai),fgui.UIObjectFactory.setExtension(oi.URL,oi),fgui.UIObjectFactory.setExtension(hi.URL,hi),fgui.UIObjectFactory.setExtension(li.URL,li),fgui.UIObjectFactory.setExtension(ri.URL,ri),fgui.UIObjectFactory.setExtension(ci.URL,ci),fgui.UIObjectFactory.setExtension(H.URL,H),fgui.UIObjectFactory.setExtension(di.URL,di),fgui.UIObjectFactory.setExtension(ui.URL,ui),fgui.UIObjectFactory.setExtension(gi.URL,gi),fgui.UIObjectFactory.setExtension(mi.URL,mi),fgui.UIObjectFactory.setExtension(yi.URL,yi),fgui.UIObjectFactory.setExtension(pi.URL,pi),fgui.UIObjectFactory.setExtension(xi.URL,xi),fgui.UIObjectFactory.setExtension(Tt.URL,Tt),fgui.UIObjectFactory.setExtension(Ci.URL,Ci),fgui.UIObjectFactory.setExtension(fi.URL,fi),fgui.UIObjectFactory.setExtension(bi.URL,bi),fgui.UIObjectFactory.setExtension(Ii.URL,Ii),fgui.UIObjectFactory.setExtension(ki.URL,ki),fgui.UIObjectFactory.setExtension(wi.URL,wi),fgui.UIObjectFactory.setExtension(Ni.URL,Ni),fgui.UIObjectFactory.setExtension(Li.URL,Li),fgui.UIObjectFactory.setExtension(Ft.URL,Ft),fgui.UIObjectFactory.setExtension(vi.URL,vi),fgui.UIObjectFactory.setExtension(Si.URL,Si),fgui.UIObjectFactory.setExtension(Ui.URL,Ui),fgui.UIObjectFactory.setExtension(Bi.URL,Bi),fgui.UIObjectFactory.setExtension(Mi.URL,Mi),fgui.UIObjectFactory.setExtension(qt.URL,qt),fgui.UIObjectFactory.setExtension(Ti.URL,Ti),fgui.UIObjectFactory.setExtension(Oi.URL,Oi),fgui.UIObjectFactory.setExtension(Ri.URL,Ri),fgui.UIObjectFactory.setExtension(de.URL,de),fgui.UIObjectFactory.setExtension(ji.URL,ji),fgui.UIObjectFactory.setExtension(Pi.URL,Pi),fgui.UIObjectFactory.setExtension(ot.URL,ot),fgui.UIObjectFactory.setExtension(Di.URL,Di),fgui.UIObjectFactory.setExtension(Ei.URL,Ei),fgui.UIObjectFactory.setExtension(Ai.URL,Ai),fgui.UIObjectFactory.setExtension(ae.URL,ae),fgui.UIObjectFactory.setExtension(Gi.URL,Gi),fgui.UIObjectFactory.setExtension(Hi.URL,Hi),fgui.UIObjectFactory.setExtension(Fi.URL,Fi),fgui.UIObjectFactory.setExtension(_i.URL,_i),fgui.UIObjectFactory.setExtension(Vi.URL,Vi),fgui.UIObjectFactory.setExtension(Wi.URL,Wi),fgui.UIObjectFactory.setExtension(Yi.URL,Yi),fgui.UIObjectFactory.setExtension(Xi.URL,Xi),fgui.UIObjectFactory.setExtension(zi.URL,zi),fgui.UIObjectFactory.setExtension(Ki.URL,Ki),fgui.UIObjectFactory.setExtension(qi.URL,qi),fgui.UIObjectFactory.setExtension(Zi.URL,Zi),fgui.UIObjectFactory.setExtension($i.URL,$i),fgui.UIObjectFactory.setExtension(Ji.URL,Ji),fgui.UIObjectFactory.setExtension(Qi.URL,Qi),fgui.UIObjectFactory.setExtension(ts.URL,ts),fgui.UIObjectFactory.setExtension(es.URL,es),fgui.UIObjectFactory.setExtension(is.URL,is),fgui.UIObjectFactory.setExtension(ss.URL,ss),fgui.UIObjectFactory.setExtension(ns.URL,ns),fgui.UIObjectFactory.setExtension(as.URL,as),fgui.UIObjectFactory.setExtension(os.URL,os),fgui.UIObjectFactory.setExtension(hs.URL,hs),fgui.UIObjectFactory.setExtension(ls.URL,ls),fgui.UIObjectFactory.setExtension(rs.URL,rs),fgui.UIObjectFactory.setExtension(cs.URL,cs),fgui.UIObjectFactory.setExtension(ds.URL,ds),fgui.UIObjectFactory.setExtension(us.URL,us),fgui.UIObjectFactory.setExtension(At.URL,At),fgui.UIObjectFactory.setExtension(gs.URL,gs),fgui.UIObjectFactory.setExtension(ms.URL,ms),fgui.UIObjectFactory.setExtension(te.URL,te),fgui.UIObjectFactory.setExtension(ys.URL,ys),fgui.UIObjectFactory.setExtension(ps.URL,ps),fgui.UIObjectFactory.setExtension(xs.URL,xs),fgui.UIObjectFactory.setExtension(Cs.URL,Cs),fgui.UIObjectFactory.setExtension(fs.URL,fs),fgui.UIObjectFactory.setExtension(bs.URL,bs),fgui.UIObjectFactory.setExtension(Is.URL,Is),fgui.UIObjectFactory.setExtension(ks.URL,ks),fgui.UIObjectFactory.setExtension(ws.URL,ws),fgui.UIObjectFactory.setExtension(Ns.URL,Ns),fgui.UIObjectFactory.setExtension(Ls.URL,Ls),fgui.UIObjectFactory.setExtension(vs.URL,vs),fgui.UIObjectFactory.setExtension(Ss.URL,Ss),fgui.UIObjectFactory.setExtension(Us.URL,Us),fgui.UIObjectFactory.setExtension(Bs.URL,Bs),fgui.UIObjectFactory.setExtension(Ms.URL,Ms),fgui.UIObjectFactory.setExtension(Ts.URL,Ts),fgui.UIObjectFactory.setExtension(dt.URL,dt),fgui.UIObjectFactory.setExtension(at.URL,at),fgui.UIObjectFactory.setExtension(Os.URL,Os),fgui.UIObjectFactory.setExtension(Z.URL,Z),fgui.UIObjectFactory.setExtension(Rs.URL,Rs),fgui.UIObjectFactory.setExtension(js.URL,js),fgui.UIObjectFactory.setExtension(Ps.URL,Ps),fgui.UIObjectFactory.setExtension(Ds.URL,Ds),fgui.UIObjectFactory.setExtension(xe.URL,xe),fgui.UIObjectFactory.setExtension(Es.URL,Es),fgui.UIObjectFactory.setExtension(As.URL,As),fgui.UIObjectFactory.setExtension(Gs.URL,Gs),fgui.UIObjectFactory.setExtension(Hs.URL,Hs),fgui.UIObjectFactory.setExtension(Fs.URL,Fs),fgui.UIObjectFactory.setExtension(rt.URL,rt),fgui.UIObjectFactory.setExtension(_s.URL,_s),fgui.UIObjectFactory.setExtension(Vs.URL,Vs),fgui.UIObjectFactory.setExtension(Ws.URL,Ws),fgui.UIObjectFactory.setExtension(Ys.URL,Ys),fgui.UIObjectFactory.setExtension(Xs.URL,Xs),fgui.UIObjectFactory.setExtension(zs.URL,zs),fgui.UIObjectFactory.setExtension(Ks.URL,Ks),fgui.UIObjectFactory.setExtension(qs.URL,qs),fgui.UIObjectFactory.setExtension(Zs.URL,Zs),fgui.UIObjectFactory.setExtension($s.URL,$s),fgui.UIObjectFactory.setExtension(Js.URL,Js),fgui.UIObjectFactory.setExtension($t.URL,$t),fgui.UIObjectFactory.setExtension(Qs.URL,Qs),fgui.UIObjectFactory.setExtension(tn.URL,tn),fgui.UIObjectFactory.setExtension(Lt.URL,Lt),fgui.UIObjectFactory.setExtension(en.URL,en),fgui.UIObjectFactory.setExtension(sn.URL,sn),fgui.UIObjectFactory.setExtension(nn.URL,nn),fgui.UIObjectFactory.setExtension(an.URL,an),fgui.UIObjectFactory.setExtension(on.URL,on),fgui.UIObjectFactory.setExtension(hn.URL,hn),fgui.UIObjectFactory.setExtension(ln.URL,ln),fgui.UIObjectFactory.setExtension(rn.URL,rn),fgui.UIObjectFactory.setExtension(cn.URL,cn),fgui.UIObjectFactory.setExtension(dn.URL,dn),fgui.UIObjectFactory.setExtension(un.URL,un),fgui.UIObjectFactory.setExtension(fe.URL,fe),fgui.UIObjectFactory.setExtension(gn.URL,gn),fgui.UIObjectFactory.setExtension(mn.URL,mn),fgui.UIObjectFactory.setExtension(Y.URL,Y),fgui.UIObjectFactory.setExtension(St.URL,St),fgui.UIObjectFactory.setExtension(yn.URL,yn),fgui.UIObjectFactory.setExtension(pn.URL,pn),fgui.UIObjectFactory.setExtension(xn.URL,xn),fgui.UIObjectFactory.setExtension(Cn.URL,Cn),fgui.UIObjectFactory.setExtension(fn.URL,fn),fgui.UIObjectFactory.setExtension(bn.URL,bn),fgui.UIObjectFactory.setExtension(In.URL,In),fgui.UIObjectFactory.setExtension(kn.URL,kn),fgui.UIObjectFactory.setExtension(wn.URL,wn),fgui.UIObjectFactory.setExtension(Nn.URL,Nn),fgui.UIObjectFactory.setExtension(Ln.URL,Ln),fgui.UIObjectFactory.setExtension(vn.URL,vn),fgui.UIObjectFactory.setExtension(Sn.URL,Sn),fgui.UIObjectFactory.setExtension(Un.URL,Un),fgui.UIObjectFactory.setExtension(Bn.URL,Bn),fgui.UIObjectFactory.setExtension(Mn.URL,Mn),fgui.UIObjectFactory.setExtension(Tn.URL,Tn),fgui.UIObjectFactory.setExtension(On.URL,On),fgui.UIObjectFactory.setExtension(Vt.URL,Vt),fgui.UIObjectFactory.setExtension(Rn.URL,Rn),fgui.UIObjectFactory.setExtension(Bt.URL,Bt),fgui.UIObjectFactory.setExtension(jn.URL,jn),fgui.UIObjectFactory.setExtension(Pn.URL,Pn),fgui.UIObjectFactory.setExtension(Dn.URL,Dn),fgui.UIObjectFactory.setExtension(En.URL,En),fgui.UIObjectFactory.setExtension(An.URL,An),fgui.UIObjectFactory.setExtension(tt.URL,tt),fgui.UIObjectFactory.setExtension(Gn.URL,Gn),fgui.UIObjectFactory.setExtension(it.URL,it),fgui.UIObjectFactory.setExtension(zt.URL,zt),fgui.UIObjectFactory.setExtension(Hn.URL,Hn),fgui.UIObjectFactory.setExtension(Fn.URL,Fn),fgui.UIObjectFactory.setExtension(_n.URL,_n),fgui.UIObjectFactory.setExtension(Vn.URL,Vn),fgui.UIObjectFactory.setExtension(Wn.URL,Wn),fgui.UIObjectFactory.setExtension(Yn.URL,Yn),fgui.UIObjectFactory.setExtension(Xn.URL,Xn),fgui.UIObjectFactory.setExtension(zn.URL,zn),fgui.UIObjectFactory.setExtension(ht.URL,ht),fgui.UIObjectFactory.setExtension(Kn.URL,Kn),fgui.UIObjectFactory.setExtension(qn.URL,qn),fgui.UIObjectFactory.setExtension(Zn.URL,Zn),fgui.UIObjectFactory.setExtension($n.URL,$n),fgui.UIObjectFactory.setExtension(Jn.URL,Jn),fgui.UIObjectFactory.setExtension(Qn.URL,Qn),fgui.UIObjectFactory.setExtension(ta.URL,ta),fgui.UIObjectFactory.setExtension(ea.URL,ea),fgui.UIObjectFactory.setExtension(ia.URL,ia),fgui.UIObjectFactory.setExtension(sa.URL,sa),fgui.UIObjectFactory.setExtension(na.URL,na),fgui.UIObjectFactory.setExtension(aa.URL,aa),fgui.UIObjectFactory.setExtension(G.URL,G),fgui.UIObjectFactory.setExtension(oa.URL,oa),fgui.UIObjectFactory.setExtension(ha.URL,ha),fgui.UIObjectFactory.setExtension(la.URL,la),fgui.UIObjectFactory.setExtension(ra.URL,ra),fgui.UIObjectFactory.setExtension(ca.URL,ca),fgui.UIObjectFactory.setExtension(da.URL,da),fgui.UIObjectFactory.setExtension(ua.URL,ua),fgui.UIObjectFactory.setExtension(ga.URL,ga),fgui.UIObjectFactory.setExtension(ma.URL,ma),fgui.UIObjectFactory.setExtension(ya.URL,ya),fgui.UIObjectFactory.setExtension(pa.URL,pa),fgui.UIObjectFactory.setExtension(xa.URL,xa),fgui.UIObjectFactory.setExtension(Ca.URL,Ca),fgui.UIObjectFactory.setExtension(fa.URL,fa),fgui.UIObjectFactory.setExtension(ba.URL,ba),fgui.UIObjectFactory.setExtension(Ia.URL,Ia),fgui.UIObjectFactory.setExtension(ka.URL,ka),fgui.UIObjectFactory.setExtension(wa.URL,wa),fgui.UIObjectFactory.setExtension(Na.URL,Na),fgui.UIObjectFactory.setExtension(La.URL,La),fgui.UIObjectFactory.setExtension(xt.URL,xt),fgui.UIObjectFactory.setExtension(va.URL,va),fgui.UIObjectFactory.setExtension(Sa.URL,Sa),fgui.UIObjectFactory.setExtension(Ua.URL,Ua),fgui.UIObjectFactory.setExtension(Ba.URL,Ba),fgui.UIObjectFactory.setExtension(Ma.URL,Ma),fgui.UIObjectFactory.setExtension(Ta.URL,Ta),fgui.UIObjectFactory.setExtension(Oa.URL,Oa),fgui.UIObjectFactory.setExtension(Ra.URL,Ra),fgui.UIObjectFactory.setExtension(ja.URL,ja),fgui.UIObjectFactory.setExtension(Pa.URL,Pa),fgui.UIObjectFactory.setExtension(Da.URL,Da)}}class Aa extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btn6")}onConstruct(){this.n6=this.getChild("n6"),this.n1=this.getChild("n1")}}Aa.URL="ui://37nctnhwc6l6v4em";class Ga extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","xyItem")}onConstruct(){this.xyItem=this.getChild("xyItem")}}Ga.URL="ui://37nctnhwcpayv4el";class Ha extends fgui.GProgressBar{static createInstance(){return fgui.UIPackage.createObject("loading","loadinfo")}onConstruct(){this.bg=this.getChild("bg"),this.bar=this.getChild("bar"),this.title=this.getChild("title"),this.ani=this.getChild("ani")}}Ha.URL="ui://37nctnhwis36c";class Fa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","xyNode")}onConstruct(){this.n0=this.getChild("n0"),this.btnYes=this.getChild("btnYes"),this.btnNo=this.getChild("btnNo"),this.btnKnown=this.getChild("btnKnown"),this.btnSure=this.getChild("btnSure"),this.txtWelcom=this.getChild("txtWelcom"),this.txtXy=this.getChild("txtXy"),this.n75=this.getChild("n75"),this.btnXy1=this.getChild("btnXy1"),this.btnXy3=this.getChild("btnXy3"),this.btnXy2=this.getChild("btnXy2"),this.n74=this.getChild("n74"),this.xy1=this.getChild("xy1"),this.txtTitle=this.getChild("txtTitle"),this.btnBack=this.getChild("btnBack"),this.xyList=this.getChild("xyList"),this.xy2=this.getChild("xy2"),this.xyNode=this.getChild("xyNode")}}Fa.URL="ui://37nctnhwjvenv4ee";class _a extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","ageNode")}onConstruct(){this.n3=this.getChild("n3"),this.n7=this.getChild("n7"),this.n4=this.getChild("n4"),this.btnAge=this.getChild("btnAge"),this.ageNode=this.getChild("ageNode")}}_a.URL="ui://37nctnhwjvenv4ef";class Va extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","rnNode")}onConstruct(){this.n28=this.getChild("n28"),this.n30=this.getChild("n30"),this.n33=this.getChild("n33"),this.rn1=this.getChild("rn1"),this.n40=this.getChild("n40"),this.n41=this.getChild("n41"),this.rn3=this.getChild("rn3"),this.n37=this.getChild("n37"),this.n39=this.getChild("n39"),this.rn2=this.getChild("rn2"),this.n47=this.getChild("n47"),this.n49=this.getChild("n49"),this.n44=this.getChild("n44"),this.inputCode=this.getChild("inputCode"),this.inputName=this.getChild("inputName"),this.n48=this.getChild("n48"),this.n50=this.getChild("n50"),this.rn4=this.getChild("rn4"),this.btnCheck=this.getChild("btnCheck"),this.btnExit=this.getChild("btnExit"),this.btnDone=this.getChild("btnDone"),this.rnNode=this.getChild("rnNode")}}Va.URL="ui://37nctnhwjvenv4eg";class Wa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","tipNode")}onConstruct(){this.bg=this.getChild("bg"),this.n55=this.getChild("n55"),this.n56=this.getChild("n56"),this.tipNode=this.getChild("tipNode")}}Wa.URL="ui://37nctnhwjvenv4eh";class Ya extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","fcmNode")}onConstruct(){this.n63=this.getChild("n63"),this.n62=this.getChild("n62"),this.btnRn=this.getChild("btnRn"),this.n61=this.getChild("n61"),this.n58=this.getChild("n58"),this.fcmNode=this.getChild("fcmNode")}}Ya.URL="ui://37nctnhwjvenv4ei";class Xa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","msgNode")}onConstruct(){this.n69=this.getChild("n69"),this.txtMsg=this.getChild("txtMsg"),this.msgNode=this.getChild("msgNode")}}Xa.URL="ui://37nctnhwjvenv4ek";class za extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","dh_zy_ganfa")}onConstruct(){this.n1=this.getChild("n1"),this.n13=this.getChild("n13"),this.n14=this.getChild("n14"),this.n15=this.getChild("n15"),this.n3=this.getChild("n3"),this.n4=this.getChild("n4"),this.n5=this.getChild("n5"),this.n6=this.getChild("n6"),this.n7=this.getChild("n7"),this.n8=this.getChild("n8"),this.n9=this.getChild("n9"),this.n10=this.getChild("n10"),this.n12=this.getChild("n12"),this.n11=this.getChild("n11"),this.n16=this.getChild("n16"),this.n17=this.getChild("n17"),this.n18=this.getChild("n18"),this.n20=this.getChild("n20"),this.n21=this.getChild("n21"),this.t0=this.getTransition("t0")}}za.URL="ui://37nctnhwkys71u";class Ka extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btn5")}onConstruct(){this.n9=this.getChild("n9"),this.n1=this.getChild("n1")}}Ka.URL="ui://37nctnhwm0q7v4ed";class qa extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","UILoading")}onConstruct(){this.n12=this.getChild("n12"),this.loadinfo=this.getChild("loadinfo"),this.n13=this.getChild("n13"),this.txtLoad=this.getChild("txtLoad"),this.n19=this.getChild("n19"),this.n20=this.getChild("n20"),this.t_d=this.getChild("t_d"),this.n18=this.getChild("n18")}}qa.URL="ui://37nctnhwphc33";class Za extends fgui.GComponent{static createInstance(){return fgui.UIPackage.createObject("loading","AgeItem")}onConstruct(){this.txtAge=this.getChild("txtAge")}}Za.URL="ui://37nctnhwxe622n";class $a extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btn1")}onConstruct(){this.n6=this.getChild("n6"),this.n1=this.getChild("n1")}}$a.URL="ui://37nctnhwxe622p";class Ja extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btn3")}onConstruct(){this.n9=this.getChild("n9"),this.n1=this.getChild("n1")}}Ja.URL="ui://37nctnhwxe622s";class Qa extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btn2")}onConstruct(){this.n6=this.getChild("n6"),this.n1=this.getChild("n1")}}Qa.URL="ui://37nctnhwxe622t";class to extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btnBack")}onConstruct(){this.n6=this.getChild("n6"),this.n7=this.getChild("n7")}}to.URL="ui://37nctnhwxe622u";class eo extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btnXy1")}onConstruct(){this.n1=this.getChild("n1")}}eo.URL="ui://37nctnhwxe622w";class io extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btnXy2")}onConstruct(){this.n1=this.getChild("n1")}}io.URL="ui://37nctnhwxe622x";class so extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btnXy3")}onConstruct(){this.n1=this.getChild("n1")}}so.URL="ui://37nctnhwxe622y";class no extends fgui.GButton{static createInstance(){return fgui.UIPackage.createObject("loading","btn4")}onConstruct(){this.n9=this.getChild("n9"),this.n1=this.getChild("n1")}}no.URL="ui://37nctnhwxe622z";class ao{static bindAll(){fgui.UIObjectFactory.setExtension(Aa.URL,Aa),fgui.UIObjectFactory.setExtension(Ga.URL,Ga),fgui.UIObjectFactory.setExtension(Ha.URL,Ha),fgui.UIObjectFactory.setExtension(Fa.URL,Fa),fgui.UIObjectFactory.setExtension(_a.URL,_a),fgui.UIObjectFactory.setExtension(Va.URL,Va),fgui.UIObjectFactory.setExtension(Wa.URL,Wa),fgui.UIObjectFactory.setExtension(Ya.URL,Ya),fgui.UIObjectFactory.setExtension(Xa.URL,Xa),fgui.UIObjectFactory.setExtension(za.URL,za),fgui.UIObjectFactory.setExtension(Ka.URL,Ka),fgui.UIObjectFactory.setExtension(qa.URL,qa),fgui.UIObjectFactory.setExtension(Za.URL,Za),fgui.UIObjectFactory.setExtension($a.URL,$a),fgui.UIObjectFactory.setExtension(Ja.URL,Ja),fgui.UIObjectFactory.setExtension(Qa.URL,Qa),fgui.UIObjectFactory.setExtension(to.URL,to),fgui.UIObjectFactory.setExtension(eo.URL,eo),fgui.UIObjectFactory.setExtension(io.URL,io),fgui.UIObjectFactory.setExtension(so.URL,so),fgui.UIObjectFactory.setExtension(no.URL,no),fgui.UIObjectFactory.setExtension(ut.URL,ut)}}class oo{constructor(){this._stage=null,this._uiList=[],this._showList=[],this._bindPkgList=[],this.uiIndex=0}static get inst(){return null==oo._inst&&(oo._inst=new oo),oo._inst}setStage(t){this._stage?console.log("ViewMgr::Stage->舞台不可赋值两次"):this._stage=t}init(){this.setStage(Laya.stage),fairygui.UIConfig.defaultFont="微软雅黑",fairygui.UIConfig.modalLayerColor="rgba(0,0,0,0.9)",fairygui.UIConfig.packageFileExtension="obj",fairygui.UIConfig.bringWindowToFrontOnClick=!1,Laya.stage.addChild(fairygui.GRoot.inst.displayObject),fairygui.GRoot.inst.width=Laya.stage.width,fairygui.GRoot.inst.height=Laya.stage.height,Laya.timer.frameLoop(1,this,this.addAllUpdate)}addAllUpdate(){for(this.uiIndex=0;this.uiIndex=0))switch(t){case e.loading:fairygui.UIPackage.addPackage(t),ao.bindAll(),this._bindPkgList.push(t);break;case e.game:fairygui.UIPackage.addPackage(t),Ea.bindAll(),this._bindPkgList.push(t)}}Show(t,...e){let i=t.uiName;for(let t=this._uiList.length-1;t>=0;t--){let s=this._uiList[t];if(s.className==i){if(!s.isMuti)return s.show(...e),this._uiList.splice(t,1),this._uiList.push(s),s;if(s.isHide)return s.show(...e),this._uiList.splice(t,1),this._uiList.push(s),s}}let s=new t;return s.className=i,this._showUI(s,e),s}destroyUI(t){for(let e=this._uiList.length-1;e>=0;e--){if(this._uiList[e].className==t.className){this._uiList.splice(e,1);break}}this.checkUIState()}_showUI(t,e){this._uiList.push(t),t.show(...e)}Hide(t){let e=this.getUI(t);e&&!e.isHide&&e.hide()}getUI(t){let e=t.uiName;for(let t=0;ti)return;this.soundMap[t]=n,Laya.SoundManager.playSound(s,e),Laya.timer.once(500*e,this,this.removePath,[t],!1)}}removePath(t){if(this.soundMap[t]){let e=this.soundMap[t];--e<1?delete this.soundMap[t]:this.soundMap[t]=e}}playBtnSound(){this.playSound("btn")}playGetSound(){}playCloseUISound(){}}ho._instance=null;var lo,ro=Laya.Handler;!function(t){t[t.none=0]="none",t[t.nromal=1]="nromal",t[t.td=2]="td",t[t.sk=3]="sk"}(lo||(lo={}));class co{constructor(t,e){this.completrCall=t,this.progressCall=e,this.progressHander=new ro(this,this.onProgress),this.tdResMap={}}load(t){this.resCount=0,this.loadCount=0;for(let e=0;e{e?this.onLoad():console.log("load res fail:"+t)}),this.progressHander)}loadSk(){}loadTd(t){this.tdResMap[t]?this.onLoad():Laya.Sprite3D.load(t,ro.create(this,e=>{e?(this.tdResMap[t]=e,this.onLoad()):console.log("load res fail:"+t)}))}onLoad(){this.loadCount++,this.onProgress(1),this.loadCount>=this.resCount&&this.completrCall.run()}onProgress(t){let e=(this.loadCount+t)/this.resCount;this.progressCall.runWith(e)}}var uo=Laya.Handler;class go{constructor(){this.index=0}}class mo{constructor(){this.resList=[],this.doneList=[],this.resMap={},this.currentLoad=null,this.completeHandler=new uo(this,this.onComplete),this.progressHandler=new uo(this,this.onProgress),this.loader=new co(this.completeHandler,this.progressHandler)}static getInstance(){return null==mo._instance&&(mo._instance=new mo),mo._instance}loadList(t,e,i){if(t.length<1)return void e.run();let s=this.getResInfo();s.resList=t,s.completeHandler=e,s.progressHandler=i,this.resList.push(s),this.startLoad()}loadFguiRes(t,e,i){Laya.loader.load(t,e,i)}loadAny(t,e,i){Laya.loader.load(t,e,i)}load(t,e,i){let s=this.resMap[t];s&&s>0?e&&e.run():this.loadList([t],e,i)}getRes(t){if(this.resMap[t])return this.loader.getRes(t);this.showLog("资源不存在:"+t)}clearList(t,e=!1){if(!t||t.length<1)return;Laya.timer.clearAll(this),Laya.timer.once(2e3,this,()=>{for(const i in t){let s=t[i];if(s)if(e)this.loader.clearRes(s),delete this.resMap[s];else{let t=this.resMap[s];t&&t>1?(t--,this.resMap[s]=t):(this.loader.clearRes(s),delete this.resMap[s])}}window.hasOwnProperty("ks")||Laya.Resource.destroyUnusedResources()})}clear3D(){for(const t in this.loader.tdResMap)this.loader.clearRes(t),this.resMap[t]&&delete this.resMap[t];window.hasOwnProperty("ks")||Laya.Resource.destroyUnusedResources()}clear(t,e=!1){this.clearList([t],e)}getResInfo(){return this.doneList.length>0?this.doneList.pop():new go}startLoad(){this.currentLoad||(this.currentLoad=this.resList.pop(),this.currentLoad&&this.loader.load(this.currentLoad.resList))}onComplete(){if(this.currentLoad){for(const t in this.currentLoad.resList){let e=this.currentLoad.resList[t],i=this.resMap[e];i?i++:i=1,this.resMap[e]=i}this.currentLoad.completeHandler&&this.currentLoad.completeHandler.run(),this.doneList.push(this.currentLoad),this.currentLoad=null,this.startLoad()}}onProgress(t){this.currentLoad&&this.currentLoad.progressHandler&&this.currentLoad.progressHandler.runWith(t)}showLog(t,...e){console.log("[ResLoader] "+t)}}mo._instance=null;let yo=new class extends Laya.EventDispatcher{};class po{static getInstance(){return this._instance||(this._instance=new po),this._instance}init(){this.npcJson=Laya.loader.getRes("res/json/npc.json").Data,this.classicCfg=Laya.loader.getRes("res/json/classicCfg.json"),this.levelCfg=Laya.loader.getRes("res/json/levelCfg.json"),this.placeBallCfg=Laya.loader.getRes("res/json/placeBallCfg.json")}getUserInfoByIndex(t){return this.npcJson[t]}getRandomUserInfo(){let t=vo.tools.random(0,this.npcJson.length);return this.npcJson[t]}getMaxBigMoveLength(){return Object.keys(this.levelCfg).length}getBigMoveLevelByIndex(t){let e=this.levelCfg;return e=e[t]}getRandomClassicLevel(){let t=this.classicCfg,e=Object.keys(t).length;return t[vo.common.randomNum(1,e)]}getPlaceBallByLevel(t){return this.placeBallCfg[t]}getMaxPlaceBall(){return Object.keys(this.placeBallCfg).length}}class xo{constructor(){this.pool={}}static get ins(){return this._ins||(this._ins=new xo)}createList(t,e,i){this.pool[t]||(this.pool[t]={},this.pool[t].prefab=e,this.pool[t].list=[],this.pool[t].parent=i)}getItem(t){if(!this.pool[t])return;let e;return this.pool[t].list.length>0?e=this.pool[t].list.pop():(e=this.pool[t].prefab.clone(),this.pool[t].parent&&this.pool[t].parent.addChild(e)),e.active=!0,e}putItem(t,e){this.pool[t]&&(e.active=!1,this.pool[t].list.push(e))}}let Co=B,fo=oo.inst,bo=ho.getInstance(),Io=mo.getInstance(),ko=D.getInstance(),wo=Ie.getInstance(),No=po.getInstance(),Lo=xo.ins;let vo={context:Co,eventMgr:yo,resMgr:Io,uiMgr:fo,soundMgr:bo,define:U,tools:P,httpMgr:ko,d3TexUrl:"res/d3Res/",d3ModeUrl:"res/unityRes/",common:wo,cfgMgr:No,poolD3Mgr:Lo,setStageSize:function(t){t.width&&(t.width=Laya.stage.width,t.height=Laya.stage.height)},filledBg:function(t){Laya.stage.height/Laya.stage.width>16/9?(t.height=Laya.stage.height,t.width=Laya.stage.height/1334*750):(t.width=Laya.stage.width,t.height=Laya.stage.width/750*1334)},setNotch:function(t){t.height&&(t.y+=Co.notchHeight)},showTip:function(t){fo.Show(_t,t)},log:function(...t){console.log(t)}};window.xGame=vo;let So="tBall_";class Uo{constructor(){this.userId="",this.isAgree=!1,this.coinNum=0,this.gemNum=0,this.sound=!0,this.vibration=!0,this.currentDate=0,this.createTime=0,this.awardTime=0,this.roleId=1,this.roleList=[],this.roleAds=[],this.dressId=101,this.itemId=201,this.bigSkills=[1,1,1,1,1],this.coin=4e3,this.diamond=0,this.skillSuccessTimes=0,this.skillGuide=0,this.skillAccTimes=0,this.placeBallData=[],this.shareDiamondTimes=0,this.dailyVideoShareTimes=0,this.secretary=[1,0],this.curSecretary=0,this.ballRod=[1,0,0,0,0,1],this.curBallRod=5,this.signData=0,this.signTime=0,this.drawTimes=0,this.drawAwardTimes=0,this.dailyfreeDrawTimes=1,this.power=5,this.powerTime=0,this.challengeTimes=0,this.extraSign=0,this.classicTimes=0,this.guideHelpLine=0,this.newUser=!0,this.rootBallFoul=0,this.timeoutFoul=0,this.roleList=[1]}saveData(){let t={};for(let e in this)t[e.toString()]=this[e];Laya.LocalStorage.setItem(So+"userdata",JSON.stringify(t))}getData(){let t=Laya.LocalStorage.getItem(So+"userdata");if(t){let e=JSON.parse(t);if(e)for(let t in this){let i=e[t.toString()];null!=i&&(this[t]=i)}}}}class Bo{constructor(){this.itemList={},this.itemList[101]={id:101,count:1,adnum:0,active:!0},this.itemList[201]={id:201,count:1,adnum:0,active:!0}}saveData(){Laya.LocalStorage.setItem(So+"itemdata",JSON.stringify(this.itemList))}getData(){let t=Laya.LocalStorage.getItem(So+"itemdata");if(t){let e=JSON.parse(t);e&&(this.itemList=e)}}}class Mo{constructor(){this.curLevel=0,this.gameType=1,this.signIdx=0,this.signMax=0,this.rotaryTime=0,this.rotaryCount=0,this.rotaryList=[],this.diyCount=3,this.awardIdx=0,this.shareNum=2,this.rankWeek=0,this.rankScore=0,this.gameCount=0,this.trySkill=-1,this.tryTime=0}saveData(){let t={};for(let e in this)t[e.toString()]=this[e];Laya.LocalStorage.setItem(So+"gamedata",JSON.stringify(t))}getData(){let t=Laya.LocalStorage.getItem(So+"gamedata");if(t){let e=JSON.parse(t);if(e)for(let t in this){let i=e[t.toString()];null!=i&&(this[t]=i)}}}}class To{static Init(){this.userData=new Uo,this.gameData=new Mo,this.itemData=new Bo,this.userData.getData(),this.gameData.getData(),this.itemData.getData(),this.roleId=this.userData.roleId,this.resetUse()}static isNewDay(){Moyu.isNewDay(this,t=>{vo.common.isNewDay=t,t&&(To.setShareDiamondTimes(0,!1),To.setDailyVideoShareTimes(0,!1),To.setDailyfreeDrawTimes(1),To.setExtraSign(0))})}static deletData(){Laya.LocalStorage.clear()}static upRankData(){let t=vo.common.getAllStarNum();t>0&&Moyu.upRankData(vo.common.curRankID,t)}static addItem(t,e=1){let i=this.itemData.itemList[t];i?i.active?i.count+=e:(i.count=e,i.active=!0):i={id:t,count:e,adnum:0,active:!0},this.itemData.itemList[t]=i,vo.soundMgr.playGetSound(),this.saveItemData()}static hasItem(t){let e=this.itemData.itemList[t];return!(!e||!e.active)}static getItem(t){return this.itemData.itemList[t]}static getItemCount(t){let e=this.itemData.itemList[t];return e&&e.active?e.count:0}static getItemAd(t){let e=this.itemData.itemList[t];return e?e.adnum:0}static onItemAd(t,e=1){let i=this.itemData.itemList[t];i?i.adnum+=e:i={id:t,count:1,adnum:e,active:!1},this.itemData.itemList[t]=i,this.saveItemData()}static costItem(t,e){let i=this.itemData.itemList[t];return!(!i||!i.active)&&(!(i.count=0}static gemEnough(t){return this.userData.gemNum>=t}static roleHasAd(t){let e=this.userData.roleAds[t];return null!=e&&e>=0}static saveUserData(t=1e3,e,i){this.userSaving||(this.userSaving=!0,Laya.timer.once(t,this,()=>{this.userSaving=!1,this.userData.saveData(),e&&vo.eventMgr.event(e,i)}))}static saveGameData(){this.gameSaving||(this.gameSaving=!0,Laya.timer.once(1e3,this,()=>{this.gameSaving=!1,this.gameData.saveData()}))}static saveItemData(){let t=()=>{this.itemData.saveData()};Laya.timer.clear(this,t),Laya.timer.once(500,this,t)}static saveData(){this.saveUserData(),this.saveGameData()}static getBigSkillList(){return this.userData.bigSkills}static getBigSkillByIndex(t){return this.userData.bigSkills[t]}static setBigSkill(t,e,i=!0){i?this.userData.bigSkills[t]+=e:this.userData.bigSkills[t]=e,this.saveUserData()}static coinEnough(t){if("number"==typeof t)return this.userData.coin>=t;console.error("金币格式错误")}static setCoin(t){"number"==typeof t&&(this.userData.coin+=t,this.saveUserData(),vo.eventMgr.event(c))}static getCoin(){return this.userData.coin}static diamondEnough(t){if("number"==typeof t)return this.userData.diamond>=t;console.error("金币格式错误")}static setDiamond(t){"number"==typeof t&&(this.userData.diamond+=t,this.saveUserData(),vo.eventMgr.event(d))}static getDiamond(){return this.userData.diamond}static getSkillSuccessTimes(){return this.userData.skillSuccessTimes}static setSkillSuccessTimes(t,e=!0){e?this.userData.skillSuccessTimes+=t:this.userData.skillSuccessTimes=t,this.saveUserData()}static getSkillAccTimes(){return this.userData.skillAccTimes}static setSkillAccTimes(t){this.userData.skillAccTimes+=t,this.saveUserData()}static getSkillGuide(){return vo.common.openGuide?this.userData.skillGuide:1}static setSkillGuide(t){this.userData.skillGuide=t,this.saveUserData()}static getPlaceBallLevelList(){return this.userData.placeBallData}static getPlaceBallLevel(t){let e,i=this.userData.placeBallData,s=t-1;if(i[s])e=i[s];else{e=i.length==s?{star:0,play:!0,isCur:!0,getAward:!1}:{star:0,play:!1,getAward:!1}}return e}static setPlaceBallLevel(t,e){let i=this.userData.placeBallData,s=t-1;if(i[s])i[s].star=Math.max(i[s].star,e);else{i.length==s?i.push({star:e,play:!0,getAward:!1}):console.error("关卡存储出错")}this.saveUserData()}static setPlaceBallAward(t){let e=this.userData.placeBallData,i=t-1;e[i]&&(e[i].getAward=!0),this.saveUserData()}static getShareDiamondTimes(){return this.userData.shareDiamondTimes}static setShareDiamondTimes(t,e=!0){e?this.userData.shareDiamondTimes+=t:this.userData.shareDiamondTimes=t,this.saveUserData()}static getDailyVideoShareTimes(){return this.userData.dailyVideoShareTimes}static setDailyVideoShareTimes(t,e=!0){e?this.userData.dailyVideoShareTimes+=t:this.userData.dailyVideoShareTimes=t,this.saveUserData()}static getSecretary(t){return this.userData.secretary[t]}static setSecretary(t,e){this.userData.secretary[t]=e,this.saveUserData()}static getCurSecretary(){return this.userData.curSecretary}static setCurSecretary(t){this.userData.curSecretary=t,this.saveUserData(),vo.eventMgr.event(m,t)}static getBallRod(t){return this.userData.ballRod[t]}static setBallRod(t,e){this.userData.ballRod[t]=e,this.saveUserData()}static getCurBallRod(){return this.userData.curBallRod}static setCurBallRod(t){this.userData.curBallRod=t,this.saveUserData()}static setSignData(t){this.userData.signData=t,this.saveUserData()}static getSignData(){return this.userData.signData}static setSignTime(t){this.userData.signTime=t,this.saveUserData()}static getSignTime(){return this.userData.signTime}static getDrawTimes(){return this.userData.drawTimes}static setDrawTimes(t,e=!0){e?this.userData.drawTimes+=t:this.userData.drawTimes=t,this.saveUserData()}static getDrawAwardTimes(){return this.userData.drawAwardTimes}static setDrawAwardTimes(t){this.userData.drawAwardTimes=t,this.saveUserData()}static getDailyfreeDrawTimes(){return this.userData.dailyfreeDrawTimes}static setDailyfreeDrawTimes(t){this.userData.dailyfreeDrawTimes=t,this.saveUserData()}static setPower(t,e=!0){e?this.userData.power+=t:this.userData.power=t,this.userData.power>=vo.common.maxPower&&(this.userData.power=vo.common.maxPower),vo.eventMgr.event(y,t),this.saveUserData()}static getPower(){return this.userData.power}static setPowerTime(t){this.userData.powerTime=t,this.saveUserData()}static getPowerTime(){return this.userData.powerTime}static powerEnough(){return this.getPower()>0}static getChallengeTimes(){return this.userData.challengeTimes}static setChallengeTimes(t){this.userData.challengeTimes+=t,this.saveUserData()}static getExtraSign(){return this.userData.extraSign}static setExtraSign(t){this.userData.extraSign=t,this.saveUserData()}static getClassicTimes(){return this.userData.classicTimes}static setClassicTimes(){this.userData.classicTimes+=1,this.saveUserData()}static getGuideHelpLine(){return this.userData.guideHelpLine}static setGuideHelpLine(){this.userData.guideHelpLine=1,this.saveUserData()}static getNewUser(){return this.userData.newUser}static setNewUser(){this.userData.newUser=!1,this.saveUserData()}static getRootBallFoul(){return this.userData.rootBallFoul}static setRootBallFoul(){this.userData.rootBallFoul=1,this.saveUserData()}static getTimeoutFoul(){return this.userData.timeoutFoul}static setTimeoutFoul(){this.userData.timeoutFoul=1,this.saveUserData()}}To.isNewUser=!1,To.fristEnter=!0,To.levelType=0,To.awardId=0,To.awardCoin=0,To.sceneId=-1,To.tryId=0,To.curLevel=1,To.vipLevel=0,To.maxLevel=0,To.awardRatio=1,To.gameList=[],To.rankList=[],To.recoverTime=48e4,To.minScore=0,To.rankDis=0,To.userSaving=!1,To.gameSaving=!1;class Oo extends Laya.Script3D{constructor(){super(),this.isInited=!1}init(){this.isInited||(this.isInited=!0,this.gameObj=this.owner,this.transform=this.gameObj.transform)}get rotX(){return this.transform.localRotationEulerX}set rotX(t){this.transform.localRotationEulerX=t}get rotY(){return this.transform.localRotationEulerY}set rotY(t){this.transform.localRotationEulerY=t}get rotZ(){return this.transform.localRotationEulerZ}set rotZ(t){this.transform.localRotationEulerZ=t}get posX(){return this.transform.localPositionX}set posX(t){this.transform.localPositionX=t}get posY(){return this.transform.localPositionY}set posY(t){this.transform.localPositionY=t}get posZ(){return this.transform.localPositionZ}set posZ(t){this.transform.localPositionZ=t}get rotation(){return this.transform.localRotation}set rotation(t){this.transform.localRotation=t}}class Ro extends Laya.Script{constructor(){super()}onTriggerEnter(t){if((!vo.common.d2World.rootBall.forceRun||t.owner!=vo.common.d2World.rootBall.owner)&&"inner"==t.label&&vo.common.d2World.openCheckStill){if(t.owner.mySrc.isRunSkillAni)return;0!=t.owner.mySrc.number&&vo.common.d2World.inHolesSpeed.push(t.owner.mySrc.rigy.speed),vo.common.ballColliHole(t),vo.common.recoverCameraView()}}}class jo extends Laya.Script3D{constructor(){super(),this.isSetBorder=!1,this.inited=!1}onAwake(){this.init()}init(){this.inited||(this.inited=!0,this.gameObj=this.owner,this.border=this.gameObj.getChildByName("border"))}setBorderPos(){if(this.isSetBorder)return;this.isSetBorder=!0;let t=vo.common.gameUI.ui,e=this.border.getChildByName("bar1"),i=this.border.getChildByName("bar2"),s=this.border.getChildByName("bar3"),n=this.border.getChildByName("bar4"),a=this.border.getChildByName("bar5"),o=this.border.getChildByName("bar6");this.setInfo(e,t.border.bar1,"box"),this.setInfo(i,t.border.bar2,"box"),this.setInfo(s,t.border.bar3,"box"),this.setInfo(n,t.border.bar4,"box"),this.setInfo(a,t.border.bar5,"box"),this.setInfo(o,t.border.bar6,"box");let h=this.border.getChildByName("circle1"),l=this.border.getChildByName("circle2"),r=this.border.getChildByName("circle3"),c=this.border.getChildByName("circle4"),d=this.border.getChildByName("circle5"),u=this.border.getChildByName("circle6");this.setInfo(h,t.border.circle1,"circle"),this.setInfo(l,t.border.circle2,"circle"),this.setInfo(r,t.border.circle3,"circle"),this.setInfo(c,t.border.circle4,"circle"),this.setInfo(d,t.border.circle5,"circle"),this.setInfo(u,t.border.circle6,"circle"),this.initHolePos(t.border.circle1.x,t.border.circle1.y),this.initHolePos(t.border.circle2.x,t.border.circle2.y),this.initHolePos(t.border.circle3.x,t.border.circle3.y),this.initHolePos(t.border.circle4.x,t.border.circle4.y),this.initHolePos(t.border.circle5.x,t.border.circle5.y),this.initHolePos(t.border.circle6.x,t.border.circle6.y);let g=vo.common.gameMgr.holePosList;vo.common.gameMgr.posObj={1:g[0],3:g[2],4:g[3],6:g[5]}}initHolePos(t,e){t<300?t+=25:t>1e3?t-=25:e>200?e-=10:e+=10,e<200?e+=30:e>500&&(e-=30),vo.common.gameMgr.holePosList.push({x:t,y:e})}setInfo(t,e,i){let s=vo.common.gameUI.ui,n=new Laya.Sprite;s.border.displayObject.addChild(n);let a=vo.common.getCollider(i);n.addComponentIntance(a);let o=vo.common.getRigbody();o.type="static",n.addComponentIntance(o);let h=t.transform.position;vo.common.pos3to2Convert(h);let l=t.transform.localScaleX,r=t.transform.localScaleZ,c=vo.common.scale3to2Convert(r),d=vo.common.scale3to2Convert(l);n.pivotX=c/2,n.pivotY=d/2,n.x=h.x,n.y=h.y,n.width=c,n.height=d,e.x=h.x,e.y=h.y,e.width=c,e.height=d,"box"==i?(a.width=c,a.height=d,a.isSensor=!1,a.label="border"):(a.radius=c/2,a.isSensor=!0,a.label="hole",n.addComponent(Ro))}}class Po extends Laya.Script3D{constructor(){super(),this.loadNum=0,this.setLoadNum=7,this.visitRootObj={posX:0,posY:0,posZ:0,rotX:0,rotY:0,rotZ:0}}onAwake(){}loadScene(){this.scene=this.owner;Laya.loader.create("res/unityRes/root.lh",Laya.Handler.create(this,t=>{this.scene.addChild(t),this.camera=this.scene.getChildByName("root").getChildByName("cameraRoot").getChildByName("mainCamera"),this.putCameraInfo(),this.camera.enableHDR=!1,this.ballRoot=this.scene.getChildByName("root").getChildByName("ballRoot"),this.tableRoot=this.scene.getChildByName("root").getChildByName("tableRoot"),this.roomRoot=this.scene.getChildByName("root").getChildByName("roomRoot"),this.particialRoot=this.scene.getChildByName("root").getChildByName("particialRoot"),this.knifeRoot=this.scene.getChildByName("root").getChildByName("knifeRoot"),this.knife=this.scene.getChildByName("root").getChildByName("knife"),this.knife.active=!1,this.loadD3Obj()}))}putCameraInfo(){let t=this.scene.getChildByName("root").getChildByName("cameraRoot");this.cameraObj=new Do,this.cameraObj.angle1=t.getChildByName("angle1").addComponent(Oo),this.cameraObj.angle3=t.getChildByName("angle3").addComponent(Oo),this.cameraObj.angle4=t.getChildByName("angle4").addComponent(Oo),this.cameraObj.angle6=t.getChildByName("angle6").addComponent(Oo),this.cameraObj.firstAngle=t.getChildByName("firstAngle").addComponent(Oo),this.cameraObj.visitAngle=t.getChildByName("visitAngle").addComponent(Oo),this.visitAngleChild=t.getChildByName("visitAngle").getChildByName("visitAngle").addComponent(Oo),this.visitAngleChild.init(),this.visitRootObj.posX=this.visitAngleChild.posX,this.visitRootObj.posY=this.visitAngleChild.posY,this.visitRootObj.posZ=this.visitAngleChild.posZ,this.visitRootObj.rotX=this.visitAngleChild.rotX,this.visitRootObj.rotY=this.visitAngleChild.rotY,this.visitRootObj.rotZ=this.visitAngleChild.rotZ,this.cameraObj.mainCamera=t.getChildByName("mainCamera").addComponent(Oo),vo.common.showOneCamera("mainCamera")}loadD3Obj(){this.loadTable(),this.loadRoom(),this.loadInHoleParticial(),this.loadIceParticial(),this.loadHitParticial(),this.loadFireworksParticial(),this.loadBall()}loadInHoleParticial(){this.loadD3Res("inHoleEft","",t=>{t.addComponent(K),vo.poolD3Mgr.createList(C.inHoleEft,t,this.particialRoot)})}loadIceParticial(){this.loadD3Res("iceEft","",t=>{t.addComponent(K),vo.poolD3Mgr.createList(C.iceEft,t,this.particialRoot)})}loadHitParticial(){this.loadD3Res("hitEft","",t=>{t.addComponent(K),vo.poolD3Mgr.createList(C.hitEft,t,this.particialRoot)})}loadFireworksParticial(){this.loadD3Res("fireworksEft","",t=>{t.addComponent(K),vo.poolD3Mgr.createList(C.fireworksEft,t,this.particialRoot)})}loadBall(t=1){this.loadD3Res("ball",t,t=>{this.ballPrefab=t,this.ballPrefab.addComponent(q),vo.poolD3Mgr.createList(C.d3ball,this.ballPrefab,this.ballRoot)})}loadTable(t=1){this.loadD3Res("table",t,t=>{this.tableSrc=t.addComponent(jo),this.d3Hand=t.getChildByName("hand").addComponent(Oo),this.d3Hand.init(),this.tableRoot.addChild(t)})}loadRoom(t=1){this.loadD3Res("room",t,t=>{this.roomRoot.addChild(t)})}loadD3Res(t,e,i){let s=`res/unityRes/${t}${e}.lh`;Laya.Sprite3D.load(s,Laya.Handler.create(this,t=>{i&&i(t),this.checkResLoad()}))}checkResLoad(){this.loadNum++,this.loadNum>=this.setLoadNum&&vo.eventMgr.event(o)}prePlayEft(){let t=vo.poolD3Mgr.getItem(C.inHoleEft);t.transform.localPositionX=0,t.transform.localPositionY=-5,t.transform.localPositionZ=0,t.active=!0;let e=vo.poolD3Mgr.getItem(C.iceEft);e.transform.localPositionX=0,e.transform.localPositionY=-5,e.transform.localPositionZ=0,e.active=!0;let i=vo.poolD3Mgr.getItem(C.hitEft);i.transform.localPositionX=0,i.transform.localPositionY=-5,i.transform.localPositionZ=0,i.active=!0;let s=vo.poolD3Mgr.getItem(C.fireworksEft);s.transform.localPositionX=0,s.transform.localPositionY=-5,s.transform.localPositionZ=0,s.active=!0}}class Do{}class Eo{static initMoyu(){this.moyuView=new Ao,Laya.stage.addChild(this.moyuView.ui.displayObject),this.moyuView.ui.x=(Laya.stage.width-1334)/2,this.moyuView.ui.displayObject.zOrder=1e3,this.moyuView.init(),this.moyuView.showTip(!0),this.moyuView.showAge(!0,0,Laya.stage.height-320),window.XApk=this}static showAge(t){this.moyuView&&this.moyuView.showAge(t)}static onPlatMsg(t){Eo.moyuView&&"0"==t&&Eo.moyuView.showTip(!1)}static showAgree(t){this.moyuView?this.moyuView.showAgree(t):t&&t()}static showXy(t=1){this.moyuView&&this.moyuView.showXy(t)}}Eo.isAdvise=!1;class Ao{constructor(){this.ysxyNum=1,this.ysJson=null,this.ui=ut.createInstance()}init(){this.ui.mainBg.visible=!1,this.ui.xyNode.visible=!1,this.ui.ageNode.visible=!1,this.ui.tipNode.visible=!1,this.ui.rnNode.visible=!1,this.ui.fcmNode.visible=!1,this.ui.ageTip.visible=!1,this.ui.msgNode.visible=!1,this.ui.visible=!1,this.ui.xyNode.xyList.setVirtual(),this.ui.xyNode.xyList.itemRenderer=Laya.Handler.create(this,this.renderListItem,null,!1),this.ui.ageNode.btnAge.onClick(this,this.onClick,[this.ui.ageNode.btnAge]),this.ui.tipNode.onClick(this,this.onClick,[this.ui.tipNode]),this.ui.ageTip.onClick(this,this.onClick,[this.ui.ageTip]),this.ui.xyNode.btnKnown.visible=!1,this.ui.xyNode.xy1.visible=!1,this.ui.xyNode.xy2.visible=!1,this.ui.xyNode.btnXy1.visible=this.ui.xyNode.btnXy2.visible=!1,this.ui.xyNode.btnSure.visible=this.ui.xyNode.btnXy3.visible=!1,this.ui.xyNode.btnXy1.onClick(this,this.onClick,[this.ui.xyNode.btnXy1]),this.ui.xyNode.btnXy2.onClick(this,this.onClick,[this.ui.xyNode.btnXy2]),this.ui.xyNode.btnXy3.onClick(this,this.onClick,[this.ui.xyNode.btnXy3]),this.ui.xyNode.btnNo.onClick(this,this.onClick,[this.ui.xyNode.btnNo]),this.ui.xyNode.btnYes.onClick(this,this.onClick,[this.ui.xyNode.btnYes]),this.ui.xyNode.btnSure.onClick(this,this.onClick,[this.ui.xyNode.btnSure]),this.ui.xyNode.btnBack.onClick(this,this.onClick,[this.ui.xyNode.btnBack]),this.ui.xyNode.btnKnown.onClick(this,this.onClick,[this.ui.xyNode.btnKnown]),this.ui.rnNode.btnExit.onClick(this,this.onClick,[this.ui.rnNode.btnExit]),this.ui.rnNode.btnCheck.onClick(this,this.onClick,[this.ui.rnNode.btnCheck]),this.ui.rnNode.btnDone.onClick(this,this.onClick,[this.ui.rnNode.btnDone]),this.ui.fcmNode.btnRn.onClick(this,this.onClick,[this.ui.fcmNode.btnRn]),(Moyu.isVVApk||Moyu.isOPApk||Moyu.isTTApk||Moyu.isOppo||Moyu.isVivo)&&(this.ysxyNum=2)}onClick(t){switch(vo.soundMgr.playSound(vo.common.btnClickStr),t){case this.ui.ageTip:Moyu.isTTApk&&(this.ui.ageNode.visible=!0,this.ui.mainBg.visible=!0);break;case this.ui.tipNode:this.showTip(!1);break;case this.ui.ageNode.btnAge:this.ui.ageNode.visible=!1,this.ui.mainBg.visible=!1,this.ui.xyNode.visible||this.ui.rnNode.visible||(this.ui.visible=!1);break;case this.ui.xyNode.btnXy3:case this.ui.xyNode.btnXy1:this.loadXy(1);break;case this.ui.xyNode.btnXy2:this.loadXy(2);break;case this.ui.xyNode.btnBack:this.ui.xyNode.xy1.visible=!0,this.ui.xyNode.xy2.visible=!1;break;case this.ui.xyNode.btnKnown:this.ui.xyNode.visible=!1,this.ui.mainBg.visible=!1,this.ui.visible=!1;break;case this.ui.rnNode.btnCheck:this.check();break;case this.ui.rnNode.btnExit:case this.ui.xyNode.btnNo:this.ysxyNum--,this.ysxyNum>0?this.showMsg("再次拒绝退出游戏"):(Moyu.userAgree(!1),Moyu.exit());break;case this.ui.xyNode.btnSure:case this.ui.xyNode.btnYes:To.userData.isAgree=!0,To.saveUserData(),this.onAgree();break;case this.ui.rnNode.btnDone:this.ui.rnNode.visible=!1,this.ui.visible=!1;break;case this.ui.fcmNode.btnRn:this.showRn()}}showTip(t){(Moyu.isVVApk||Moyu.isOPApk)&&(t?(Eo.isAdvise=!0,this.ui.visible=!0,this.ui.tipNode.visible=!0,this.ui.tipNode.alpha=1,Laya.timer.once(1e3,this,this.showTip,[!1])):(this.ui.tipNode.alpha=1,this.ui.tipNode.visible=!0,Laya.Tween.to(this.ui.tipNode,{alpha:0},500,null,Laya.Handler.create(this.ui,()=>{this.ui.tipNode.visible=!1,Eo.isAdvise=!1}),1e3)))}showAge(t,e=0,i=0){Moyu.platType>10&&!Moyu.isIos&&(this.ui.ageTip.x=e,this.ui.ageTip.y=i,this.ui.ageTip.visible=t,t&&(this.ui.visible=!0))}showAgree(t){this.agreeCall=t,this.onAgree()}onAgree(){this.ui.ageNode.visible||(this.ui.visible=!1),this.ui.xyNode.visible=!1,Moyu.userAgree(!0),this.showAge(!1),this.agreeCall&&this.agreeCall(),this.showRn()}showMsg(t){this.ui.msgNode.txtMsg.text=t,this.ui.msgNode.visible=!0,this.ui.msgNode.alpha=1,this.ui.visible=!0,Laya.Tween.to(this.ui.msgNode,{alpha:0},600,null,Laya.Handler.create(this.ui,()=>{this.ui.msgNode.visible=!1}),2500,!0)}showRn(){if((Moyu.isTTApk||Moyu.isPlat(MoyuPlat.hhw))&&(!Moyu.isRealName||Moyu.gameTime<999))return this.ui.rnNode.rn1.visible=!0,this.ui.rnNode.rn2.visible=!1,this.ui.rnNode.rn3.visible=!1,this.ui.rnNode.rn4.visible=!1,this.ui.rnNode.visible=!0,this.ui.mainBg.visible=!0,this.ui.rnNode.btnDone.visible=!1,this.ui.rnNode.btnExit.visible=!0,this.ui.rnNode.btnCheck.visible=!0,this.ui.fcmNode.visible=!1,void(this.ui.visible=!0);this.showFcm()}showFcm(){(Moyu.isTTApk||Moyu.isPlat(MoyuPlat.hhw))&&(Moyu.initFCM(!0),Moyu.gameTime<1?this.fcmLoop():Moyu.gameTime<999&&Laya.timer.loop(1e4,this.ui,this.fcmLoop))}fcmLoop(){Moyu.gameTime<1&&(this.ui.rnNode.visible=!1,this.ui.fcmNode.visible=!0,this.ui.mainBg.visible=!0,this.ui.visible=!0,this.ui.fcmNode.btnRn.visible=!Moyu.isLegal,Laya.timer.clear(this.ui,this.fcmLoop))}check(){if(this.ui.rnNode.rn2.visible||this.ui.rnNode.rn1.visible)this.ui.rnNode.rn1.visible=!1,this.ui.rnNode.rn2.visible=!1,this.ui.rnNode.rn4.visible=!0;else if(this.ui.rnNode.rn4.visible){let t=this.ui.rnNode.inputName.text,e=this.ui.rnNode.inputCode.text;e&&18==e.length?(this.ui.rnNode.rn1.visible=!1,this.ui.rnNode.rn4.visible=!1,Moyu.authenticate(t,e,t=>{this.ui.rnNode.rn2.visible=!t,this.ui.rnNode.rn3.visible=t,this.ui.rnNode.btnDone.visible=t,this.ui.rnNode.btnExit.visible=!t,this.ui.rnNode.btnCheck.visible=!t,t&&this.showFcm()})):this.showMsg("信息填写不完整")}}loadXy(t=0){this.ui.xyNode.xy1.visible=!1,this.ui.xyNode.xy2.visible=!0,this.ui.xyNode.xyList.scrollToView(0),1==t?Laya.loader.load("app/xy/yiiwan_ys.json",Laya.Handler.create(this,this.createXY)):2==t&&Laya.loader.load("app/xy/yiiwan_yh.json",Laya.Handler.create(this,this.createXY))}showXy(t=0){this.xyBtn(),0==t?Moyu.isPlat(MoyuPlat.f399Apk)?this.ui.xyNode.btnSure.visible=!0:(this.ui.xyNode.btnYes.visible=!0,this.ui.xyNode.btnNo.visible=!0):(this.ui.xyNode.btnKnown.visible=!0,this.ui.mainBg.visible=!0),this.ui.xyNode.xy1.visible=!0,this.ui.xyNode.xy2.visible=!1,this.ui.xyNode.visible=!0,this.ui.visible=!0}xyBtn(){this.ui.xyNode.btnSure.visible=!1,this.ui.xyNode.btnYes.visible=!1,this.ui.xyNode.btnNo.visible=!1,this.ui.xyNode.btnKnown.visible=!1,this.ui.xyNode.btnXy3.visible=!1,this.ui.xyNode.btnXy2.visible=!0,this.ui.xyNode.btnXy1.visible=!0,this.ui.xyNode.xy1.text="Welcome to《8Ball Fury》"}createXY(t){this.ysJson=t.content,this.ui.xyNode.txtTitle.text=t.title.replace("GAMENAME","8Ball Fury"),this.ui.xyNode.xyList.numItems=this.ysJson.length,this.ui.xyNode.xy2.visible=!0}renderListItem(t,e){let i=this.ysJson[t];e.height=30*i.line,e.xyItem.text=i.text}onDestroy(){this.agreeCall=null}}class Go extends A{constructor(){super(),this.accTime=0,this.curNum=0,this.rate=1,this.loadSubOk=!1,this.loadResOK=!1,this.openLoading=!0,this.beginLoadRes=!1,this.finishD2=!1,this.finishD3=!1}onConstructor(){this.ui=qa.createInstance(),this.contentPane=this.ui,this.isEject=!1,this._initUI(),this._addEvent()}_initUI(){Eo.initMoyu()}_addEvent(){vo.eventMgr.off(o,this,this.d3ResFinish),vo.eventMgr.on(o,this,this.d3ResFinish)}show(){super.show(),console.log("zh:加载分包资源"),function(t){var e=["asset","res","spine"];let i=0;for(var s=0;s{t&&t(e,!1)}).then(()=>{++i>=e.length&&t&&t(1,!0)})}}(this.subResProgress.bind(this)),this.ui.txtLoad.text="Loading..."}subResProgress(t,e){this.curNum=t,e&&(this.curNum=1,this.loadSubOk=!0)}laodD3Res(){let t=new Laya.Scene3D;vo.common.d3Scene=t,vo.common.d3World=t.addComponent(Po),vo.common.d3World.loadScene()}loadD2Res(){Laya.loader.load([{url:"asset/fgui/game.obj",type:Laya.Loader.BUFFER},{url:"asset/fgui/game_atlas0.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas0_1.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas0_2.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas0_3.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas10.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_n43d3v3.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_n43d3v4.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_p4tr427.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_p4tr42b.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_p4tr42c.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_p4tr42e.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_rz5r457.jpg",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_s8sz44t.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_s8sz44v.png",type:Laya.Loader.IMAGE},{url:"asset/fgui/game_atlas_wehi3uc.jpg",type:Laya.Loader.IMAGE},{url:"res/json/npc.json",type:Laya.Loader.JSON},{url:"res/json/classicCfg.json",type:Laya.Loader.JSON},{url:"res/json/levelCfg.json",type:Laya.Loader.JSON},{url:"res/json/placeBallCfg.json",type:Laya.Loader.JSON}],Laya.Handler.create(this,()=>{this.finishD2=!0,this.checkLoadAll(),this.curNum=1}),Laya.Handler.create(this,t=>{this.curNum=t},null,!1))}d3ResFinish(){this.finishD3=!0,this.checkLoadAll()}checkLoadAll(){this.finishD2&&this.finishD3&&(this.loadResOK=!0)}loadRes(){this.laodD3Res(),this.loadD2Res()}myUpdate(t){this.openLoading&&(this.accTime+=t*this.rate,this.accTime>=this.curNum&&(this.accTime=this.curNum),this.ui.loadinfo.value=100*this.accTime,this.accTime>=1&&this.loadSubOk&&!Eo.isAdvise&&(this.beginLoadRes||(this.beginLoadRes=!0,this.ui.txtLoad.text="Loading...",this.curNum=0,this.accTime=0,this.loadRes()),this.loadResOK&&(this.openLoading=!1,Laya.timer.once(300,this,()=>{vo.common.d3Scene.active=!1,Eo.showAgree(enterGame)}))))}release(){}hide(){super.hide(),this.release()}onClose(){this.hide()}}Go.uiName="UILoading";class Ho extends A{constructor(){super(),this.viewType=0,this.regretType=0}onConstructor(){this.ui=zt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.regretNode.cancelBtn,this.hideSelf),this.addUIClick(this.ui.regretNode.videoBtn,this.videoRegret),this.addUIClick(this.ui.helpLineNode.cancelBtn,this.hideSelf),this.addUIClick(this.ui.helpLineNode.videoBtn,this.videoAddHelpLine)}show(t,e,i){if(W.showInsert(!0),this.viewType=t,this.regretType=e,this.callback=i,super.show(),this.ui.t0.play(),this.ui.c1.selectedIndex=this.viewType,this.ui.regretNode.tipsTxt.text=0==this.regretType?"Missed the target ball!":"The cue ball has been pocketed!",0==this.viewType){let t=To.getGuideHelpLine();this.ui.helpLineNode.c1.selectedIndex=0==t?1:0,this.ui.helpLineNode.videoBtn.c1.selectedIndex=0==t?1:0}vo.common.gameMgr.gamePause=!0}hideSelf(){vo.common.gameMgr.gamePause=!1,this.callback&&this.callback(!1),this.hide()}videoRegret(){Moyu.showVideoAd(()=>{this.callback&&this.callback(!0),this.hideSelf()},N.regretBall)}videoAddHelpLine(){0==To.getGuideHelpLine()?(this.callback&&this.callback(!0),this.hideSelf(),To.setGuideHelpLine(),vo.common.gameUI.ui.guideNode.visible=!1):Moyu.showVideoAd(()=>{this.callback&&this.callback(!0),this.hideSelf()},N.longHelpLine)}}Ho.uiName="UIRepentProp";class Fo extends A{constructor(){super(),this.isPressd=!1}onConstructor(){this.ui=de.createInstance(),this.contentPane=this.ui,this.addUIClick(this.ui.sureBtn,this.closeSelf),this.moveDir=new Laya.Vector2,this.moveDest=new Laya.Vector2,this.centerPos=new Laya.Vector2,vo.common.uiRodMethod=this}show(){super.show(),vo.common.gameMgr.gamePause=!0,this.openPressDotEvent(),this.gameRod=vo.common.gameUI.ui.rodMethodNode,this.centerPos.x=this.ui.white.x,this.centerPos.y=this.ui.white.y,this.moveDest.x=this.centerPos.x-vo.common.rodOffest.x,this.moveDest.y=this.centerPos.y-vo.common.rodOffest.y,this.setDot()}setDot(){this.ui.dot.x=this.moveDest.x,this.ui.dot.y=this.moveDest.y}closeSelf(){vo.common.rodOffest.x=this.centerPos.x-this.moveDest.x,vo.common.rodOffest.y=this.centerPos.y-this.moveDest.y,this.gameRod.dot.x=this.gameRod.bg.x-vo.common.rodOffest.x,this.gameRod.dot.y=this.gameRod.bg.y-vo.common.rodOffest.y,vo.common.gameMgr.gamePause=!1,this.hide()}openPressDotEvent(){this.closePressDotEvent(),this.ui.dot.on(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.white.on(Laya.Event.MOUSE_DOWN,this,this.onDown),this.ui.white.on(Laya.Event.MOUSE_MOVE,this,this.onDown),this.ui.white.on(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.on(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.on(Laya.Event.MOUSE_MOVE,this,this.onDown)}closePressDotEvent(){this.ui.dot.off(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.white.off(Laya.Event.MOUSE_DOWN,this,this.onDown),this.ui.white.off(Laya.Event.MOUSE_MOVE,this,this.onDown),this.ui.white.off(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.off(Laya.Event.MOUSE_UP,this,this.onDown),this.ui.off(Laya.Event.MOUSE_MOVE,this,this.onDown)}onDown(t){if(t.type==Laya.Event.MOUSE_DOWN?this.isPressd=!0:t.type==Laya.Event.MOUSE_UP&&this.isPressd&&(this.isPressd=!1),!this.isPressd)return;this.moveDest.x=t.stageX,this.moveDest.y=t.stageY,vo.tools.getV2SqDis(this.moveDest,this.centerPos)>6724&&(this.moveDir=vo.tools.getV2Dir(this.centerPos.x,this.centerPos.y,t.stageX,t.stageY,this.moveDir),this.moveDest=vo.tools.getV2Dest(this.centerPos.x,this.centerPos.y,this.moveDir,82,this.moveDest)),this.setDot()}resetRod(){this.ui.dot.x=this.ui.white.x,this.ui.dot.y=this.ui.white.y,this.gameRod.dot.x=this.gameRod.bg.x,this.gameRod.dot.y=this.gameRod.bg.y,vo.common.rodOffest.x=0,vo.common.rodOffest.y=0}}Fo.uiName="UIRodMethod";class _o extends A{constructor(){super()}onConstructor(){this.ui=Ft.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.isMuti=!0}show(t,e){super.show(),this.ui.tipsNode.msgTxt.text=t,this.ui.alpha=1,Laya.Tween.to(this.ui,{alpha:0},500,null,Laya.Handler.create(this,()=>{this.hide(),e&&e()}),1e3)}}_o.uiName="UIMsg";class Vo extends A{constructor(){super(),this.type=0}onConstructor(){this.ui=$t.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.cancelBtn,this.clickLeftBtn),this.addUIClick(this.ui.myNode.sureBtn,this.clickRightBtn)}show(t,e,i){switch(super.show(),this.ui.t0.play(),this.ui.myNode.tipsTxt.text=t,this.ui.myNode.womanTxt.text=e,W.showInsert(!0),this.ui.myNode.c1.selectedIndex=i,this.type=i,this.type){case v.exitGame:vo.common.gameMgr.gamePause=!0;break;case v.foul:Laya.timer.once(200,this,()=>{vo.common.gameMgr.gamePause=!0})}}clickLeftBtn(){switch(this.hide(),vo.common.gameMgr.gamePause=!1,this.type){case v.exitGame:case v.foul:}}clickRightBtn(){switch(this.hide(),this.type){case v.exitGame:vo.eventMgr.event(r),vo.uiMgr.Show(mh),Moyu.recordEnd(this,null),vo.common.longHelpLine=!1;break;case v.foul:vo.common.gameMgr.gamePause=!1,Laya.timer.clearAll(this)}}}Vo.uiName="UITips";class Wo extends A{constructor(){super(),this.powerNum=0,this.isD3Inited=!1,this.isPrePlay=!1,this.isMoveRod=!1,this.eventObj={curX:0,curY:0,lastX:0,lastY:0,starX:0,starY:0},this.rulerDis=20,this.rulerOffset=0}onConstructor(){this.ui=at.createInstance(),this.contentPane=this.ui,this.ui.x+=vo.common.sysOffestNum,this.ui.border.alpha=vo.common.showDebug?1:0,this.isEject=!1,vo.common.gameUI=this,this.initSelf()}isTurnSelf(){if(!vo.common.d2World.openCheckStill&&vo.common.gameMgr.selfTurn&&vo.common.gameMgr.finishOneShoot)return!0}initSelf(){let t=this.ui.topNode;t.selfBallList.itemRenderer=Laya.Handler.create(this,this.renderSelfDisplayBalls,null,!1),t.aiBallList.itemRenderer=Laya.Handler.create(this,this.renderAIDisplayBalls,null,!1),this.barInfo={},this.barInfo.curY=0,this.barInfo.height=this.ui.powerNode.height,this.barInfo.showStarY=this.ui.powerNode.showImg.y,this.barInfo.powerStartY=this.ui.powerNode.y,vo.common.aiPlayer=new z,vo.common.gameMgr=new Qt,vo.common.skillMgr=new ne,vo.common.wordsMgr=new ce,vo.common.talkMgr=new re,vo.common.classicEmotionSpine=new X("yxz_bqwz",()=>{console.log("加载经典模式表情文件chenggon !")}),vo.common.awardSpine=new X("jinbi",()=>{console.log("挑战模式奖励模式spine加载成功!")}),vo.eventMgr.off(r,this,this.resetGame),vo.eventMgr.on(r,this,this.resetGame),this.addUIClick(this.ui.rodMethodNode,this.addRodMethodClick),this.addUIClick(this.ui.returnBtn,this.returnHome),this.addUIClick(this.ui.helpBtn,this.clickHelpLineBtn),this.addUIClick(this.ui.placeChallengeNode.helpLineBtn,this.clickHelpLineBtn),this.addUIClick(this.ui.placeNormalNode.helpLineBtn,this.clickHelpLineBtn)}returnHome(){vo.uiMgr.Show(Vo,"Are you sure to exit the game?","Boss, why don't you play for a while longer?",v.exitGame)}addRodMethodClick(){this.isTurnSelf()&&vo.uiMgr.Show(Fo)}clickHelpLineBtn(t=!1){this.isTurnSelf()&&vo.uiMgr.Show(Ho,0,0,t=>{t&&(vo.common.longHelpLine=!0,vo.common.d2World.getHelpLine(),Moyu.sendDataEvent("guideNum"))})}renderSelfDisplayBalls(t,e){let i="q"+vo.common.gameMgr.selfBallArr[t];e.myImg.url=vo.common.getGameIconUrl(i)}renderAIDisplayBalls(t,e){let i="q"+vo.common.gameMgr.aiBallArr[t];e.myImg.url=vo.common.getGameIconUrl(i)}updateMode(){vo.common.gameMode==f.classic?this.ui.topNode.scoreNode.visible=!1:vo.common.gameMode==f.bigMove&&(this.ui.topNode.scoreNode.visible=!0)}show(){super.show(),console.log("zh:uigame show"),this.ui.alpha=0,this.updateSelf(),console.log("zh:uigame bf gamemusic01 start"),vo.soundMgr.playMusic("gamemusic01"),console.log("zh:uigame bf gamemusic01 end"),vo.common.gameMgr.gamePause=!1,vo.common.gameUI.ui.blackAni.visible=!1,vo.common.gameUI.ui.whiteAni.visible=!1,this.ui.powerEft.visible=!1,this.ui.colorNode.visible=!1,this.updateHead()}updateSelf(){if(vo.common.gameMode==f.classic)this.ui.c1.selectedIndex=0,this.ui.topNode.middleNode.c1.selectedIndex=0,this.ui.topNode.middleNode.visible=!0,this.ui.topNode.middleNode.awardTxt.text=vo.common.passAwardCoin+"";else if(vo.common.gameMode==f.bigMove){this.ui.c1.selectedIndex=0,this.ui.topNode.middleNode.c1.selectedIndex=1,this.ui.topNode.middleNode.visible=!1;let t=vo.cfgMgr.getMaxBigMoveLength(),e=vo.common.randomNum(1,t);0==To.getSkillGuide()&&(e=1),vo.common.bigMoveLevelIndex=e}else if(vo.common.gameMode==f.placeBall){let t=cfgTable.placeballData[vo.common.placeBallCurLevel];this.ui.c1.selectedIndex=1+t.type,this.ui.alpha=1,this.startGame()}this.updateMode(),this.initD3world(),this.initD2world()}startGame(){this.ui.snowNode.visible=Math.random()<=.1,this.ui.d2Node.visible=!1,vo.common.d3World.d3Hand.gameObj.active=!1,vo.common.d3World.tableSrc.init(),vo.common.d3World.tableSrc.gameObj.transform.localPositionY=.06,this.cameraViewChange(()=>{switch(vo.common.d3World.tableSrc.gameObj.transform.localPositionY=0,vo.common.gameMode){case f.classic:vo.common.d3World.d3Hand.gameObj.active=!0,this.playPutBallD3Ani();break;case f.bigMove:this.enterGame(),Laya.timer.once(500,this,()=>{this.ui.topNode.middleNode.visible=!0,this.ui.topNode.middleNode.t0.play()});break;case f.placeBall:this.enterGame()}}),W.showBanner(!1)}enterGame(){this.ui.d2Node.visible=!0,vo.common.d3World.d3Hand.gameObj.active=!1,vo.common.showOneCamera("mainCamera"),Moyu.recordGame(30,!0),this.isPrePlay||(this.isPrePlay=!0,vo.common.d3World.prePlayEft()),vo.common.gameMgr.gameReady(),this.openAllEvent(),this.ui.snowNode.visible=!1;let t=vo.common.gameMode!=f.bigMove&&1==To.getGuideHelpLine();this.ui.helpBtn.visible=t}showHelpLineGuide(){let t=To.getGuideHelpLine();vo.common.gameMode==f.classic&&0==t&&(this.ui.helpBtn.visible=!0,this.ui.guideNode.visible=!0)}setTurnAlpha(t){this.ui.keduNode.alpha=t,this.ui.ganNode.alpha=t,this.ui.rodMethodNode.alpha=t,this.ui.helpBtn.alpha=t?1:0}cameraViewChange(t){vo.common.d3World.tableSrc.gameObj.transform.localPositionY=.06;let e=vo.common.d3World.cameraObj.visitAngle.transform;vo.common.showOneCamera("visitAngle"),e.localRotationEulerY=180,e.localRotationEulerZ=0,Laya.Tween.to(e,{localRotationEulerY:0},3e3,null,Laya.Handler.create(this,()=>{Laya.Tween.to(e,{localRotationEulerZ:-70},800,null,Laya.Handler.create(this,()=>{t&&t()}))}))}playPutBallD3Ani(){vo.common.showOneCamera("mainCamera");let t=vo.common.d3World.d3Hand;t.gameObj.active=!0,t.transform.localPositionZ=3,Laya.Tween.to(t,{posZ:0},500,Laya.Ease.sineIn,Laya.Handler.create(this,()=>{Laya.Tween.to(t,{posZ:10},400,null,Laya.Handler.create(this,()=>{t.gameObj.active=!1,this.enterGame()}),400)}))}updateHead(){let t=Moyu.getUserInfo();this.ui.topNode.selfNameTxt.text=t.nickName,vo.common.createHead(this.ui.topNode.selfHeadLoader,t.headIcon,80);let e=vo.cfgMgr.getRandomUserInfo();To.getSkillGuide()<1?(this.ui.topNode.aiNameTxt.text="billiards",this.ui.topNode.aiHeadLoader.url="res/icon.png"):(this.ui.topNode.aiNameTxt.text=e.name,this.ui.topNode.aiHeadLoader.url=x+e.icon)}initD2world(){let t=this.ui.d2Root.displayObject;t.getComponent(nt)||(vo.common.d2World=t.addComponent(nt)),vo.common.d2World.initSelf()}initD3world(){if(this.isD3Inited)return;this.isD3Inited=!0;let t=vo.common.d3Scene;this.ui.d3Root.displayObject.addChild(t),t.active=!0,vo.common.d3World.tableSrc.setBorderPos()}onRootMove(t){let e=vo.common.d2World.rootBall;this.ui.moveNode.x=t.x,this.ui.moveNode.y=t.y,e.gameObj.x=t.x,e.gameObj.y=t.y,e.d3BallSrc.setTransPos(t.x,t.y)}aiRootMove(t){t?this.hideBallUI():(this.showBallUI(),vo.common.d2World.getHelpLine())}aiForce(t,e=0){this.pressTarget=k.powerNode,1==t?this.onEventUp({force:!0}):2==t&&this.onEventMove({stageY:e,force:!0})}onEventPress(t){if(t.stopPropagation&&t.stopPropagation(),!this.isTurnSelf())return;switch(t.target){case this.ui.myPowerNode.displayObject:this.pressTarget=k.powerNode,this.barInfo.curY=t.stageY,this.updateBarInfo();break;case this.ui.moveNode.displayObject:this.pressTarget=k.moveNode,this.hideBallUI(),this.eventObj.curX=this.ui.moveNode.x,this.eventObj.curY=this.ui.moveNode.y,this.ui.moveNode.finger.visible=!1,this.eventObj.lastX=t.stageX,this.eventObj.lastY=t.stageY;break;case this.ui.rulerClickNode.displayObject:this.pressTarget=k.rulerNode,this.eventObj.lastY=t.stageY;break;case this.ui.d2Root.displayObject:this.pressTarget=k.d2Root,this.eventObj.lastX=t.stageX,this.eventObj.lastY=t.stageY,this.eventObj.starX=t.stageX,this.eventObj.starY=t.stageY,this.eventObj.curX=0,this.eventObj.curY=0,vo.common.d2World.d2Gan.setGanLastInfo(),this.rulerOffset=0}}onEventMove(t){if(t.stopPropagation&&t.stopPropagation(),t&&t.force);else if(!this.isTurnSelf())return;switch(this.pressTarget){case k.powerNode:this.barInfo.curY=t.stageY,this.updateBarInfo(),this.isMoveRod=!0;break;case k.moveNode:let e=vo.common.d2World.rootBall,i=e.gameObj.width/2,s=this.eventObj.curX+t.stageX-this.eventObj.lastX,n=this.eventObj.curY+t.stageY-this.eventObj.lastY,a=vo.common.d2World.borderRect;s<=a.x+i?s=a.x+i:s>=a.x+a.width-i&&(s=a.x+a.width-i),n<=a.y+i?n=a.y+i:n>=a.y+a.height-i&&(n=a.y+a.height-i),vo.common.gameMgr.isOpenBall&&s>=a.x+a.openBallW-i&&(s=a.x+a.openBallW-i),this.ui.moveNode.x=s,this.ui.moveNode.y=n,e.gameObj.x=s,e.gameObj.y=n,e.d3BallSrc.setTransPos(s,n),this.isMoveRod=!0;break;case k.rulerNode:let o=t.stageY-this.eventObj.lastY;this.eventObj.lastY=t.stageY;let h=this.ui.rulerNode.img1,l=this.ui.rulerNode.img2;h.y+=o,l.y+=o,this.rulerOffset+=o,Math.abs(this.rulerOffset)>=this.rulerDis&&(this.rulerOffset=0,vo.soundMgr.playSound("inch",1,10)),vo.common.d2World.d2Gan.rotateSelf(o,!0);let r=h.height;if(this.checkGuide(),this.isMoveRod=!0,h.y>=r)return h.y=-r,void(l.y=0);if(h.y<=-r)return h.y=r,void(l.y=0);if(l.y>=r)return l.y=-r,void(h.y=0);if(l.y<=-r)return l.y=r,void(h.y=0);break;case k.d2Root:this.eventObj.curX=t.stageX,this.eventObj.curY=t.stageY;let c=this.checkRodMoveDir();vo.common.d2World.d2Gan.rotateSelf(c),this.eventObj.lastX=t.stageX,this.eventObj.lastY=t.stageY}}onEventUp(t){if(t.stopPropagation&&t.stopPropagation(),t&&t.force);else if(!this.isTurnSelf())return;switch(this.pressTarget){case k.powerNode:if(this.ui.powerNode.value=0,this.ui.powerNode.showImg.y=this.barInfo.showStarY,this.ui.powerTxt.text="",this.powerNum>0){vo.eventMgr.event(h),vo.common.d2World.shoot(this.powerNum),vo.common.d2World.d2Gan.shoot(),vo.common.d2World.d2HelpLine.shoot(),this.finishGuide(),this.ui.powerEft.visible=!1,this.ui.colorNode.visible=!1;let t="";t=this.powerNum<=30?"gan_30":this.powerNum<=60?"gan_50":"gan_80",vo.soundMgr.playSound(t)}break;case k.moveNode:let e=vo.common.d2World.rootBall,i=vo.common.gameMgr.lastRootBallPos.x,s=vo.common.gameMgr.lastRootBallPos.y;this.judgeBallIntersect()?(this.ui.moveNode.x=i,this.ui.moveNode.y=s,e.gameObj.x=i,e.gameObj.y=s,e.d3BallSrc.setTransPos(i,s),vo.uiMgr.Show(_o,"Incorrect placement position")):(vo.common.gameMgr.lastRootBallPos.x=e.gameObj.x,vo.common.gameMgr.lastRootBallPos.y=e.gameObj.y),this.showBallUI(),this.ui.moveNode.finger.visible=!0,vo.common.d2World.getHelpLine();break;case k.rulerNode:break;case k.d2Root:Math.pow(this.eventObj.starX-t.stageX,2)+Math.pow(this.eventObj.starY-t.stageY,2)<=25&&this.moveToClickDot(t)}this.pressTarget=-1}checkGuide(){0==To.getSkillGuide()&&vo.common.gameMode==f.bigMove&&1==vo.common.guideStep&&(vo.common.guideStep++,vo.common.gameUI.ui.guide2.visible=!1,vo.common.gameUI.ui.guide3.visible=!0)}finishGuide(){0==To.getSkillGuide()&&vo.common.gameMode==f.bigMove&&(vo.common.guideStep=10,this.closeAllGuide())}closeAllGuide(){vo.common.gameUI.ui.guide1.visible=!1,vo.common.gameUI.ui.guide2.visible=!1,vo.common.gameUI.ui.guide3.visible=!1}updateBarInfo(){let t=this.ui.powerNode.y,e=(this.barInfo.curY-t)/this.barInfo.height;e>=1&&(e=1),e<=0&&(e=0),this.powerNum=Math.ceil(100*e),this.ui.powerNode.value=this.powerNum,this.ui.powerNode.showImg.y=this.barInfo.showStarY+this.powerNum/100*this.barInfo.height,this.ui.colorNode.value=this.powerNum,this.ui.powerEft.y=this.barInfo.powerStartY+this.powerNum/100*this.barInfo.height,this.ui.powerEft.visible=0!=this.powerNum,this.ui.colorNode.visible=0!=this.powerNum,this.ui.powerTxt.text=this.powerNum+"",vo.common.d2World.d2Gan.storagePower(this.powerNum)}forceCancel(){this.ui.powerNode.value=0,this.ui.powerNode.showImg.y=this.barInfo.showStarY,this.ui.powerTxt.text=""}checkRodMoveDir(){let t=this.eventObj.lastX-vo.common.sysOffestNum-vo.common.d2World.rootBall.gameObj.x,e=this.eventObj.lastY-vo.common.d2World.rootBall.gameObj.y;return t>=0&&e<=0?this.checkDir():t<0&&e<0?this.checkDir(1,-1):t<0&&e>0?this.checkDir(-1,-1):this.checkDir(-1,1)}checkDir(t=1,e=1){let i=this.eventObj.curX-this.eventObj.lastX,s=this.eventObj.curY-this.eventObj.lastY;if(0==s)return i*t;if(0==i)return s*e;let n=s/i;return Math.abs(n)>=1?s*e:i*t}judgeBallIntersect(){let t,e=vo.common.d2World.rootBall,i=vo.common.d2World.ballArr,s=e.gameObj.width/2,n=!1;for(let a=0;a{vo.common.playObjFlyAnim(this.coinNum,L.coin),this.hide()},N.addFailCoin)}}Yo.uiName="UIAddCoin";class Xo extends A{constructor(){super()}onConstructor(){this.ui=rt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.enterBtn,this.enterGame)}show(){super.show()}enterGame(){vo.common.gameMode=f.classic,To.setChallengeTimes(1),vo.common.passAwardCoin=2e3;let t=vo.common.classicNiceNeddCoin;To.coinEnough(t)?(To.setCoin(-t),vo.eventMgr.event(u,!0),Moyu.sendDataEvent("enterChallenge",{mode:vo.common.gameMode})):vo.eventMgr.event(u,!0),this.hide()}hide(){super.hide()}}Xo.uiName="UIInvitation";class zo extends A{constructor(){super()}onConstructor(){this.ui=bt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.cancelBtn,this.hide),this.addUIClick(this.ui.myNode.videoBtn,this.videoGetPower)}show(){super.show(),this.ui.t0.play()}videoGetPower(){Moyu.showVideoAd(()=>{To.setPower(vo.common.videoPower,!0),vo.eventMgr.event(p),this.hide()},N.getPower)}}zo.uiName="UIPower";class Ko extends A{constructor(){super(),this.success=!1,this.awardCoinNum=1e3,this.awardDiamondNum=10}onConstructor(){this.ui=ot.createInstance(),this.contentPane=this.ui,this.addUIClick(this.ui.leftBtn,this.clickLeftBtn),this.addUIClick(this.ui.closeNode.closeBtn,this.returnHome),this.addUIClick(this.ui.rightBtn,this.clickRightBtn),this.moneyNode=new sh(this.ui.moneyNode),this.ui.talkNode.visible=!1,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}updateType(){switch(vo.common.gameMode){case f.classic:this.ui.c1.selectedIndex=this.success?0:1,this.ui.coinNode.visible=this.success,this.success||Laya.timer.once(500,this,()=>{vo.uiMgr.Show(Yo)}),this.ui.isGetAward.visible=!1,this.ui.leftBtn.c1.selectedIndex=3,this.ui.rightBtn.c1.selectedIndex=0,this.moneyNode.ui.c1.selectedIndex=1;break;case f.bigMove:this.ui.c1.selectedIndex=this.success?0:1,this.ui.coinNode.visible=this.success,vo.common.gameMode==f.bigMove&&(this.success?(To.setSkillSuccessTimes(1,!0),To.setSkillAccTimes(1)):To.setSkillSuccessTimes(0,!1)),this.success||Laya.timer.once(500,this,()=>{vo.uiMgr.Show(Yo)}),this.ui.isGetAward.visible=!1,this.ui.leftBtn.c1.selectedIndex=3,this.ui.rightBtn.c1.selectedIndex=0,this.moneyNode.ui.c1.selectedIndex=1;break;case f.placeBall:this.ui.coinNode.visible=!1,this.success?3==vo.common.placeBallStarNum?this.ui.c1.selectedIndex=2:this.ui.c1.selectedIndex=3:this.ui.c1.selectedIndex=4;let t=cfgTable.placeballData[vo.common.placeBallCurLevel];t.type==w.challenge&&(this.ui.c1.selectedIndex=2),this.ui.conditionNode.conditionTxt.text=0==t.type?"打进场上所有球":`打进${t.ball}颗球`,this.updatePlaceBallBtn(),this.updatePlaceBallStarNum(),this.updatePlaceBallAwardState(),this.moneyNode.ui.c1.selectedIndex=2,this.moneyNode.checkPowerTime(),this.moneyNode.powerChange(),To.upRankData()}}updatePlaceBallBtn(){this.ui.leftBtn.c1.selectedIndex=5,this.success?this.ui.rightBtn.c1.selectedIndex=14:3==vo.common.placeBallStarNum?this.ui.rightBtn.c1.selectedIndex=14:this.ui.rightBtn.c1.selectedIndex=1}updatePlaceBallStarNum(){let t=vo.common.placeBallStarNum;this.ui.starNumNode.c1.selectedIndex=0==t?3:t-1}updatePlaceBallAwardState(){let t=vo.common.placeBallCurLevel,e=vo.common.placeBallStarNum,i=To.getPlaceBallLevel(t).getAward,s=cfgTable.placeballData[t].award,n=cfgTable.placeballData[t];this.awardDiamondNum=s[1],this.awardCoinNum=s[0],n.type==w.challenge&&(this.awardDiamondNum=0,this.awardCoinNum=100*vo.common.gameMgr.finishBalls),this.ui.awardNode.diamondNode.visible=this.awardDiamondNum>0,this.ui.awardNode.coinNode.visible=this.awardCoinNum>0,n.type==w.challenge&&(this.ui.awardNode.coinNode.visible=!0),this.awardCoinNum>0&&this.awardDiamondNum>0?(this.ui.awardNode.diamondNode.x=265,this.ui.awardNode.coinNode.x=354):(this.ui.awardNode.diamondNode.x=291,this.ui.awardNode.coinNode.x=291),this.ui.awardNode.diamondNode.numTxt.text=this.awardDiamondNum+"",this.ui.awardNode.coinNode.numTxt.text=this.awardCoinNum+"",0==this.awardCoinNum&&(this.ui.awardNode.coinNode.numTxt.text=""),i?(this.ui.isGetAward.visible=!0,this.ui.awardNode.diamondNode.c1.selectedIndex=2,this.ui.awardNode.coinNode.c1.selectedIndex=2):(this.ui.isGetAward.visible=!1,3==e&&n.type==w.challenge?(this.ui.awardNode.diamondNode.c1.selectedIndex=0,this.ui.awardNode.coinNode.c1.selectedIndex=0):(this.ui.awardNode.diamondNode.c1.selectedIndex=1,this.ui.awardNode.coinNode.c1.selectedIndex=1))}show(t){super.show(),vo.eventMgr.event(r),this.success=t,Laya.timer.clearAll(this),this.playSecretaryAni(),Moyu.sendDataEvent("GameEnd",{id:vo.common.gameMode,res:this.success?1:2});let e=(new Date).getTime()-vo.common.gameStartTime;e=Math.floor(e/1e3),Moyu.sendDataEvent("gameOver",{isWin:this.success?1:0,timeConsuming:e,gameType:vo.common.gameMode}),this.updateType(),Laya.timer.once(200,this,()=>{this.addAward(()=>{this.updateType(),Laya.timer.once(500,this,()=>{this.showChallengeLevel()})})}),this.success?(vo.soundMgr.playSound("slots_roll01"),vo.soundMgr.playSound("s_win"),vo.common.showGirlTalkPop(8,this.ui.talkNode,this.ui.talkNode.womanTxt)):(vo.soundMgr.playSound("matchwin01"),vo.soundMgr.playSound("s_lose"),vo.common.showGirlTalkPop(9,this.ui.talkNode,this.ui.talkNode.womanTxt)),Moyu.isLegal||W.showBanner(!0);let i=To.getChallengeTimes();vo.common.gameMode==f.classic&&i>=1&&i<=3&&To.setChallengeTimes(1),this.success&&vo.common.gameMode==f.classic&&To.setClassicTimes()}showChallengeLevel(){if(0!=To.getChallengeTimes())return;let t=To.getSkillAccTimes(),e=To.getPlaceBallLevelList().length;(t>=3||e>=5)&&(vo.uiMgr.Show(Xo),this.hide())}addAward(t){if(this.success)switch(vo.common.gameMode){case f.classic:this.awardCoinNum=vo.common.passAwardCoin,this.awardDiamondNum=0,vo.common.playObjFlyAnim(this.awardCoinNum,L.coin);break;case f.bigMove:this.awardCoinNum=vo.common.passAwardCoin,this.awardDiamondNum=0,vo.common.playObjFlyAnim(this.awardCoinNum,L.coin),t&&t();break;case f.placeBall:let e=vo.common.placeBallCurLevel;if(Moyu.sendDataEvent("PlaceBall",{id:e,res:this.success?1:2}),3!=vo.common.placeBallStarNum)return void(t&&t());if(To.getPlaceBallLevel(e).getAward)return void(t&&t());let i=cfgTable.placeballData[e],s=cfgTable.placeballData[e].award;this.awardCoinNum=s[0],this.awardDiamondNum=s[1],i.type==w.challenge&&(this.awardDiamondNum=0,this.awardCoinNum=100*vo.common.gameMgr.finishBalls);let n,a=new S(L.coin,this.awardCoinNum);this.awardDiamondNum>0?(n=new S(L.diamond,this.awardDiamondNum),vo.common.getAward([n,a],t)):vo.common.getAward([a],t),i.type==w.normal&&To.setPlaceBallAward(e)}else t&&t()}playSecretaryAni(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=vo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};if(this.success){let e=Math.random()<=.5?2:3;vo.common.secretary.play(n,e,!1,t,()=>{vo.common.secretary.play(n,1,!0,t)})}else vo.common.secretary.play(n,0,!0,t)}restartGame(){switch(vo.common.gameMode){case f.classic:vo.eventMgr.event(u),Moyu.sendDataEvent("GameAgain",{mode:vo.common.gameMode});break;case f.bigMove:this.hide(),vo.eventMgr.event(u),Moyu.sendDataEvent("GameAgain",{mode:vo.common.gameMode})}}hide(){super.hide(),vo.common.stopGirlPop(this.ui.talkNode),W.showBanner(!1)}returnHome(){this.hide();let t=!this.success;vo.uiMgr.Show(mh,t)}clickLeftBtn(){switch(vo.common.gameMode){case f.classic:case f.bigMove:this.returnHome();break;case f.placeBall:let t=vo.common.placeBallCurLevel;this.powerStartPlaceBallLevel(t,this.ui.leftBtn),Moyu.sendDataEvent("GameAgain",{mode:vo.common.gameMode})}}powerStartPlaceBallLevel(t,e){To.powerEnough()?(e.touchable=!1,e.powerEft.t0.play(Laya.Handler.create(this,()=>{e.touchable=!0,To.setPower(-1),vo.eventMgr.event(p),this.startPlaceBallLevel(t)}))):vo.uiMgr.Show(zo,0)}clickRightBtn(){switch(vo.common.gameMode){case f.classic:case f.bigMove:this.restartGame();break;case f.placeBall:let t=vo.common.placeBallCurLevel,e=To.getPlaceBallLevel(t);e.play&&!e.isCur?this.powerStartPlaceBallLevel(t+1,this.ui.rightBtn):(Moyu.sendDataEvent("placeBallNextLevel"),Moyu.showVideoAd(()=>{To.setPlaceBallLevel(t,1),this.startPlaceBallLevel(t+1)},vo.define.EAdType.placeBallNextLevel))}}startPlaceBallLevel(t){vo.common.gameMode=f.placeBall,vo.common.placeBallCurLevel=t,vo.uiMgr.Show(Wo),this.hide()}}Ko.uiName="UIGameEnd";class qo{constructor(){this.ui=Ct.createInstance()}destroySelf(){this.ui.isDisposed||(this.ui.removeFromParent(),this.ui.dispose())}setParent(t){t.addChild(this.ui)}setPos(t,e){this.ui.x=t,this.ui.y=e}setUrl(t){this.ui.myImg.url=vo.common.getGameIconUrl("q"+t)}}class Zo extends A{constructor(){super(),this.firstPos=385,this.secondPos=467,this.showItemArr=[]}onConstructor(){this.ui=xt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.hide),this.moneyNode=new sh(this.ui.moneyNode),this.addUIClick(this.ui.myNode.startBtn,this.startGame)}show(t){super.show(),this.ui.t1.play(),this.level=t,this.data=cfgTable.placeballData[this.level],this.updateSelf(),this.showPreView(),this.moneyNode.ui.c1.selectedIndex=2,this.moneyNode.checkPowerTime(),this.moneyNode.powerChange()}showPreView(){let t,e;for(let e=0;e0&&s>0?(this.ui.myNode.diamondNode.x=385,this.ui.myNode.coinNode.x=467):(this.ui.myNode.diamondNode.x=385,this.ui.myNode.coinNode.x=385),t?(this.ui.myNode.diamondNode.c1.selectedIndex=1,this.ui.myNode.coinNode.c1.selectedIndex=1):(this.ui.myNode.coinNode.c1.selectedIndex=0,this.ui.myNode.diamondNode.c1.selectedIndex=0)}startGame(){To.powerEnough()?(this.ui.myNode.startBtn.touchable=!1,this.ui.myNode.startBtn.powerEft.t0.play(Laya.Handler.create(this,()=>{console.log("zh:startGame "),this.ui.myNode.startBtn.touchable=!0,To.setPower(-1),vo.eventMgr.event(p),vo.common.gameMode=f.placeBall,vo.common.placeBallCurLevel=this.level,vo.uiMgr.Show(Wo),vo.uiMgr.Hide(Jo),vo.uiMgr.Hide(mh),this.hide()}))):vo.uiMgr.Show(zo)}hide(){super.hide()}}Zo.uiName="UILevelProp";class $o{constructor(t,e){this.index=0,this.ui=t,this.index=e,this.ui.onClick(this,this.clickSelf),this.updateSelf(),this.ui.levelTxt.text=this.index+1+"",this.ui.challenge.levelTxt.text=this.index+1+"",this.ui.special.levelTxt.text=this.index+1+""}updateSelf(){let t=this.index+1;this.data=To.getPlaceBallLevel(t),this.ui.starNode.c1.selectedIndex=this.data.star;let e=cfgTable.placeballData[t].type;this.data.isCur?this.ui.c1.selectedIndex=e?5:2:this.data.play?3==this.data.star?this.ui.c1.selectedIndex=0:this.ui.c1.selectedIndex=1:this.ui.c1.selectedIndex=e?4:3}clickSelf(){this.data.play&&(vo.soundMgr.playSound(vo.common.btnClickStr),vo.uiMgr.Show(Zo,this.index+1))}}class Jo extends A{constructor(){super()}onConstructor(){this.ui=pt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.myList=this.ui.myNode.myList,this.addUIClick(this.ui.closeNode.closeBtn,this.hide),this.levelItemArr=[];let t=vo.cfgMgr.getMaxPlaceBall();this.myList.itemRenderer=Laya.Handler.create(this,this.levelItemRender,null,!1),this.myList.numItems=t,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}levelItemRender(t,e){let i=new $o(e,t);this.levelItemArr.push(i)}show(){super.show(),this.updateLevel(),this.scrollToPlace()}updateLevel(){let t;for(let e=0;e=t-1&&(e=t-1),this.myList.scrollToView(e,!0,!0)}hide(){super.hide()}}Jo.uiName="UILevelDisplay";class Qo extends A{constructor(){super()}onConstructor(){this.ui=Lt.createInstance(),this.contentPane=this.ui,this.isEject=!1}show(t){super.show(),W.showBanner(!0),this.callback=t;let e=Moyu.getUserInfo();switch(this.selfPot||(this.selfPot=new Laya.Point(this.ui.selfHead.x,this.ui.selfHead.y)),this.aiPot||(this.aiPot=new Laya.Point(this.ui.aiHead.x,this.ui.aiHead.y)),this.ui.awardTxt.text=vo.common.passAwardCoin+"",this.ui.selfHead.nameTxt.text=e.nickName,vo.common.createHead(this.ui.selfHead.headImg,e.headIcon),this.ui.aiHead.nameTxt.text="???",this.ui.aiHead.headImg.url=vo.common.getGameIconUrl("cstx"),this.ui.selfHead.c1.selectedIndex=0,this.ui.aiHead.c1.selectedIndex=0,this.ui.selfHead.x=this.selfPot.x,this.ui.selfHead.y=this.selfPot.y,this.ui.aiHead.x=this.aiPot.x,this.ui.aiHead.y=this.aiPot.y,vo.common.gameMode){case f.classic:break;case f.bigMove:this.initSkillData()}this.ui.t1.play(Laya.Handler.create(this,()=>{this.ui.t2.play(Laya.Handler.create(this,()=>{switch(vo.common.gameMode){case f.classic:this.waitingPeople();break;case f.bigMove:this.skillSelectFinish(vo.common.curPlayerSkillType)}}))}))}initSkillData(){this.skillSelectData=[];let t=vo.common.skillIconList,e=vo.common.skillNameList,i=To.getBigSkillList(),s=[b.highSpace,b.breakArmy,b.ice,b.GuanYu];for(let n=0;n<5;n++){let a={};a.skillImg=t[n],a.skillName=e[n],a.skillType=s[n],a.skillLevel=i[n],this.skillSelectData.push(a)}}getAISkillLevel(t){let e,i;return(e=(i=vo.common.upSkillLevel?vo.common.randomNum(-2,-1):t<=5?vo.common.randomNum(1,3):t<=9?vo.common.randomNum(-2,1):vo.common.randomNum(-4,0))+t)<=1&&(e=1),e>=10&&(e=10),e}getAISkillType(){return vo.common.randomNum(1,4)}getAISkillData(t){let e=this.skillSelectData[t].skillLevel,i=this.getAISkillLevel(e),s=this.getAISkillType()-1;return({aiLevel:i,aiType:s}={aiLevel:i,aiType:s})}skillSelectFinish(t){let e=this.getAISkillData(t);vo.common.gameMgr.selfCurSkill=t,vo.common.gameMgr.aiCurSkill=e.aiType,vo.common.gameMgr.aiSkillLevelNum=e.aiLevel,this.ui.selfHead.c1.selectedIndex=1,this.ui.aiHead.c1.selectedIndex=1;let i=this.skillSelectData[t];this.ui.selfHead.skillImg.url=vo.common.getGameIconUrl(i.skillImg);let s=To.getSkillGuide();this.ui.selfHead.skillTxt.text=0==s?i.skillName+" Max Level":i.skillName+"Lv."+i.skillLevel;let n=this.skillSelectData[e.aiType];this.ui.aiHead.skillImg.url=vo.common.getGameIconUrl(n.skillImg),this.ui.aiHead.skillTxt.text=n.skillName+"Lv."+e.aiLevel,this.waitingPeople()}waitingPeople(){let t=vo.common.randomNum(1e3,3e3);t+=1e3,Laya.timer.once(t,this,()=>{this.matchingSuccess()})}matchingSuccess(){let t=vo.common.gameUI,e=t.ui.topNode.aiNameTxt.text,i=t.ui.topNode.aiHeadLoader.url;this.ui.aiHead.nameTxt.text=e,this.ui.aiHead.headImg.url=i,e=t.ui.topNode.selfNameTxt.text,i=t.ui.topNode.selfHeadLoader.url,this.ui.selfHead.nameTxt.text=e,this.ui.selfHead.headImg.url=i,this.ui.t3.play(Laya.Handler.create(this,()=>{this.callback&&this.callback(),this.ui.t4.play(Laya.Handler.create(this,()=>{this.destroySelf()}))}))}destroySelf(){this.callback=null,this.skillSelectData=null,this.selfPot=null,this.aiPot=null,this.ui.isDisposed||(this.ui.removeFromParent(),this.ui.dispose()),vo.uiMgr.destroyUI(this)}}Qo.uiName="UIMatching";class th{constructor(t,e,i){this.starX=0,this.starY=0,this.index=0,this.ui=t,this.data=e,this.index=i,this.initSelf(),console.log("zh:SkillDisplay constructor this.skillData=",e)}initSelf(){this.ui.normalBtn.onClick(this,this.clickAddLevel),this.ui.nameTxt.text=this.data.name,this.ui.describeTxt.text=this.data.describe,this.ui.skillImg.url=vo.common.getGameIconUrl(this.data.icon),this.ui.startBtn.onClick(this,this.startGame),this.updateSelf()}updateSelf(){this.checkTry();let t=To.getBigSkillByIndex(this.index);this.ui.c1.selectedIndex=t>=vo.common.maxSkillLevel?1:0}checkTry(){let t=this.index,e=To.getBigSkillByIndex(t);null==e&&(To.setBigSkill(t,1,!1),e=1),this.ui.levelTxt.text="LV."+e,this.index==To.gameData.trySkill&&Laya.timer.currTimer{To.setBigSkill(this.data.index,1),this.updateSelf(),vo.common.upSkillLevel=!0},N.upSkill)}startGame(){if(3==this.data.index)return void alert("期待吧");vo.soundMgr.playSound(vo.common.btnClickStr);let t=vo.common.bigMoveNeedCoin;vo.common.passAwardCoin=2e3;let e=To.getSkillGuide();console.log("zh:startGame guide="+e),vo.common.temSelfLevel=0,0==e&&(t=0,vo.common.temSelfLevel=100),To.coinEnough(t)?(To.setCoin(-t),vo.common.curPlayerSkillType=this.index,0==e&&(vo.common.curPlayerSkillType=0),vo.uiMgr.Show(Wo),vo.uiMgr.Hide(mh),vo.uiMgr.Show(Qo,()=>{vo.common.gameUI.ui.alpha=1,vo.common.gameUI.startGame(),vo.uiMgr.Hide(eh)})):(vo.uiMgr.Show(ih,0),Moyu.sendDataEvent("AddCoinVideo"))}}class eh extends A{constructor(){super(),this.skillData=[]}onConstructor(){this.ui=At.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new sh(this.ui.moneyNode),this.initSkillData(),this.addUIClick(this.ui.closeNode.closeBtn,this.returnUIMain),this.ui.skillNode.skillList.itemRenderer=Laya.Handler.create(this,this.updateSkillItem,null,!1),this.displayList=[],this.ui.skillNode.skillList.numItems=4,this.addUIClick(this.ui,this.interuptSecretary),this.addUIClick(this.ui.guideNode.guideBtn,this.enterGuideLevel),this.ui.talkNode.visible=!1,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}show(){super.show(),this.playSecretaryIdle(),this.moneyNode.ui.c1.selectedIndex=1,Laya.timer.clearAll(this),vo.soundMgr.playSound("s_start"),vo.common.showGirlTalkPop(13,this.ui.talkNode,this.ui.talkNode.womanTxt);let t=To.getSkillGuide();this.ui.guideNode.visible=0==t;let e=this.getSkillItemByUIIndex(0);e.ui.c1.selectedIndex=0==t?1:0,this.ui.guideNode.guideBtn.visible=0==t;for(let t=0;t{if(this.isHide)return;let t=vo.common.randomNum(4,7);vo.soundMgr.playSound("s_main0"+t);let e=1;switch(t){case 4:e=5;break;case 5:e=3;break;case 6:e=6;break;case 7:e=7}vo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),this.playSecretaryRandomSound()})}}eh.uiName="UISkill";class ih extends A{constructor(){super(),this.curType=""}onConstructor(){this.ui=Y.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.closeSelf),this.addUIClick(this.ui.myNode.coinBtn,this.switchBtn,["coin"]),this.addUIClick(this.ui.myNode.diamondBtn,this.switchBtn,["diamond"]),this.updateUI(),this.addUIClick(this.ui.myNode.node1,this.shareGetDiamond),this.addUIClick(this.ui.myNode.node2,this.videoGetDiamond),this.addUIClick(this.ui.myNode.node6,this.openPutBallView),this.addUIClick(this.ui.myNode.node3,this.videoGetCoin),this.addUIClick(this.ui.myNode.node4,this.convertCoin,[4]),this.addUIClick(this.ui.myNode.node5,this.convertCoin,[5])}show(t){super.show(),this.curType=0==t?"coin":"diamond",this.switchBtn(""),this.ui.t0.play(),this.ui.myNode.node1.c1.selectedIndex=Moyu.isTT?0:1,W.showInsert(!0)}closeSelf(){this.hide()}updateUI(){let t,e,i=cfgTable.moneyData;for(const s in i)t=i[s],e=this.ui.myNode["node"+s],parseInt(s)<=2?e.diamondTxt.text="+"+t.num:(e.coinTxt.text=t.num,e.diamondTxt.text=t.get.split("_")[1]);this.updateDiamondShare()}updateDiamondShare(){let t=To.getShareDiamondTimes();t>=vo.common.maxShareDiamondTimes?(this.ui.myNode.node1.shareTxt.text="Available Tomorrow",this.ui.myNode.node1.touchable=!1):(this.ui.myNode.node1.shareTxt.text=`(${t}/${vo.common.maxShareDiamondTimes})`,this.ui.myNode.node1.touchable=!0)}switchBtn(t){if(""==t)t=this.curType;else{if(this.curType==t)return;this.curType=t}"coin"==t?(this.ui.myNode.coinBtn.c1.selectedIndex=0,this.ui.myNode.diamondBtn.c1.selectedIndex=1,this.ui.myNode.coinBtn.displayObject.zOrder=10,this.ui.myNode.diamondBtn.displayObject.zOrder=9,this.ui.myNode.c1.selectedIndex=0):(this.ui.myNode.coinBtn.c1.selectedIndex=1,this.ui.myNode.diamondBtn.c1.selectedIndex=0,this.ui.myNode.coinBtn.displayObject.zOrder=9,this.ui.myNode.diamondBtn.displayObject.zOrder=10,this.ui.myNode.c1.selectedIndex=1)}convertCoin(t){let e=cfgTable.moneyData[t],i=e.num,s=e.get.split("_")[1],n=parseInt(s);To.diamondEnough(n)?(To.setDiamond(-n),vo.common.playObjFlyAnim(i,L.coin),vo.uiMgr.Show(_o,"Exchange successful!")):(vo.uiMgr.Show(_o,"Diamond shortage"),this.switchBtn("diamond"))}videoGetDiamond(){let t=cfgTable.moneyData[2].num;Moyu.showVideoAd(()=>{vo.common.playObjFlyAnim(t,L.diamond),this.closeSelf()},N.addDiamond)}videoGetCoin(){Moyu.showVideoAd(()=>{vo.common.playObjFlyAnim(2e3,L.coin),this.closeSelf()},N.addCoin)}shareGetDiamond(){if(To.getShareDiamondTimes()>=vo.common.maxShareDiamondTimes)vo.uiMgr.Show(_o,"Come back tomorrow");else if(Moyu.isTT){let t=cfgTable.moneyData[1].num;Moyu.shareVideo="",Moyu.shareGame(e=>{e?(vo.uiMgr.Show(_o,"分享成功!"),vo.common.playObjFlyAnim(t,L.diamond),To.setShareDiamondTimes(1),this.updateDiamondShare()):vo.uiMgr.Show(_o,"分享失败!")})}else Moyu.showVideoAd(()=>{let t=vo.common.randomNum(50,100);vo.common.playObjFlyAnim(t,L.diamond),To.setShareDiamondTimes(1),this.updateDiamondShare()},N.randomDiamond)}openPutBallView(){let t=vo.uiMgr.getUI(Ko),e=vo.uiMgr.getUI(eh),i=vo.uiMgr.getUI(Jo),s=vo.uiMgr.getUI(Wo);t&&!t.isHide&&(vo.uiMgr.Hide(Ko),vo.uiMgr.Show(mh)),e&&!e.isHide&&vo.uiMgr.Hide(eh),s&&!s.isHide&&vo.uiMgr.Hide(Wo),i&&!i.isHide||vo.uiMgr.Show(Jo),this.closeSelf()}}ih.uiName="UIAddProp";class sh{constructor(t){this.leftTime=0,this.ui=t,this.ui.addCoinBtn.onClick(this,this.addCoin),this.ui.addDiamondBtn.onClick(this,this.addDiamond),this.ui.addPowerBtn.onClick(this,this.addPower),this.ui.c1.selectedIndex=1,vo.eventMgr.on(c,this,this.coinChange),vo.eventMgr.on(d,this,this.diamondChange),vo.eventMgr.on(y,this,this.powerChange),vo.eventMgr.on(p,this,this.checkPowerTime),this.coinChange(),this.diamondChange(),this.powerChange()}addPower(){vo.soundMgr.playSound(vo.common.btnClickStr),vo.uiMgr.Show(zo)}powerChange(){let t=To.getPower();this.ui.powerTxt.text=t+""}checkPowerTime(){let t=(new Date).getTime(),e=To.getPowerTime();0==e&&(e=t,To.setPowerTime(t));let i=To.getPower(),s=Math.floor((t-e)/(1e3*vo.common.powerRecoverNum));if(Laya.timer.clearAll(this),i>=vo.common.natureMaxPower)return this.ui.powerTimeTxt.text="",void To.setPowerTime(t);if(i+s>=vo.common.natureMaxPower)To.setPower(vo.common.natureMaxPower,!1),this.ui.powerTimeTxt.text="",To.setPowerTime(t);else{s>0&&(To.setPower(s),To.setPowerTime(t));let i=Math.floor((t-e-s*vo.common.powerRecoverNum*1e3)/1e3);this.leftTime=vo.common.powerRecoverNum-i,this.leftTime<=0&&(this.leftTime=0),this.ui.powerTimeTxt.text=vo.common.getMSTime(this.leftTime),Laya.timer.loop(1e3,this,this.updatePowerTime)}}updatePowerTime(){this.leftTime-=1,this.ui.powerTimeTxt.text=vo.common.getMSTime(this.leftTime),this.leftTime<=0&&this.checkPowerTime()}coinChange(){this.ui.coinTxt.text=To.getCoin()+""}diamondChange(){this.ui.diamondTxt.text=To.getDiamond()+""}addCoin(){vo.soundMgr.playSound(vo.common.btnClickStr),Moyu.sendDataEvent("AddCoinBtn"),vo.uiMgr.Show(ih,0)}addDiamond(){vo.soundMgr.playSound(vo.common.btnClickStr),Moyu.sendDataEvent("AddDiamondBtn"),vo.uiMgr.Show(ih,1)}}class nh{constructor(t){this.showSetting=!1,this.openSound=!0,this.openShake=!0,this.ui=t,this.ui.soundBtn.onClick(this,this.switchSound),this.ui.shakeBtn.onClick(this,this.switchShake),this.ui.xyBtn.onClick(this,this.onXy),this.ui.clickNode.onClick(this,this.changeSetting),this.ui.xyBtn.visible=Moyu.isVivo||Moyu.isOppo||Moyu.isOPApk||Moyu.isVVApk}changeSetting(){vo.soundMgr.playSound(vo.common.btnClickStr),this.showSetting=!this.showSetting,this.ui.c1.selectedIndex=this.showSetting?1:0}switchSound(){vo.soundMgr.playSound(vo.common.btnClickStr),this.openSound=!this.openSound,Moyu.onSetting(this.openSound,this.openShake),vo.soundMgr.onSetting(this.openSound),this.ui.soundBtn.c1.selectedIndex=this.openSound?0:1}switchShake(){vo.soundMgr.playSound(vo.common.btnClickStr),this.openShake=!this.openShake,Moyu.onSetting(this.openSound,this.openShake),this.ui.shakeBtn.c1.selectedIndex=this.openShake?0:1}onXy(){vo.soundMgr.playSound(vo.common.btnClickStr),Eo.showXy(1)}}class ah extends A{constructor(){super(),this.curKey=0}onConstructor(){this.ui=G.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new sh(this.ui.moneyNode),this.addUIClick(this.ui.closeNode.closeBtn,this.closeSelf),this.addUIClick(this.ui.drawBtn,this.startDraw),this.initDraw(),this.initUI(),this.ui.myNode.flashNode.c1.selectedIndex=1,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}show(){super.show(),this.ui.t0.play(),this.playSecretaryIdle(),this.updateDraw(),this.checkFree(),W.bannerDelay>0&&(this.ui.closeNode.closeBtn.visible=!1,Laya.timer.once(W.bannerDelay,this,()=>{this.ui.closeNode.closeBtn.visible=!0})),W.showRateBanner()}hide(){Laya.timer.clearAll(this),super.hide()}checkFree(){let t=To.getDailyfreeDrawTimes();this.ui.drawBtn.c1.selectedIndex=t>0?0:1}initDraw(){this.drawObj=[];let t,e=cfgTable.drawData,i=0;for(const s in e)i+=(t=e[s]).weight,this.drawObj.push(i);this.allWeight=i}initUI(){let t,e,i,s=cfgTable.drawData;for(const n in s)t=s[n],e=this.ui.myNode.rotNode["img"+n],i=this.ui.myNode.rotNode["txt"+n],e.url=vo.common.getGameIconUrl(t.icon),i.visible=!0,t.award>2?(e.rotation=0,i.text=cfgTable.ballrodData[t.award-1].name):(e.rotation=t.rotation,i.text=t.num)}getCurkey(){let t,e=Math.random()*this.allWeight;for(let i=0;i=t&&e0?(this.beginDraw(),To.setDailyfreeDrawTimes(0),this.checkFree()):(Moyu.sendDataEvent("turntable"),Moyu.showVideoAd(()=>{this.beginDraw()},N.draw))}beginDraw(){this.ui.myNode.flashNode.c1.selectedIndex=0,this.ui.drawBtn.touchable=!1,this.curKey=this.getCurkey(),console.log("当前key",this.curKey);let t=60*(this.curKey-1)+1080,e=this.ui.myNode.rotNode;e.rotation=0,Laya.Tween.to(e,{rotation:t},1500,Laya.Ease.cubicOut,Laya.Handler.create(this,()=>{console.log("旋转完成"),this.ui.drawBtn.touchable=!0,this.getAward()}))}getAward(){let t=cfgTable.drawData[this.curKey],e=new S;e.type=t.award,e.num=t.num,vo.common.getAward([e],()=>{To.setDrawTimes(1),this.updateDraw(),this.ui.myNode.flashNode.c1.selectedIndex=1})}updateDraw(){let t=To.getDrawTimes(),e=To.getDrawAwardTimes();Math.floor(t/3)>e?(this.ui.extraNode.boxBtn.t0.play(null,-1),this.ui.extraNode.boxBtn.touchable=!0,this.ui.extraNode.tipsTxt.text="3/3",this.ui.extraNode.barNode.width=265,this.getExtraAward()):(this.ui.extraNode.boxBtn.t0.stop(),this.ui.extraNode.boxBtn.touchable=!1,this.ui.extraNode.tipsTxt.text=`${t%3}/3`,this.ui.extraNode.barNode.width=t%3*265/3);let i=cfgTable.drawData[1];if(0==e)this.ui.myNode.rotNode.img1.url=vo.common.getComponentUrl("s"+i.icon),this.ui.myNode.rotNode.txt1.text=cfgTable.ballrodData[i.award-1].name,this.ui.myNode.rotNode.img1.rotation=0;else{let t=i.nextid;this.ui.myNode.rotNode.img1.url=vo.common.getGameIconUrl(t[2]),this.ui.myNode.rotNode.txt1.text=t[1],this.ui.myNode.rotNode.img1.rotation=0}}getExtraAward(){let t=To.getDrawTimes(),e=To.getDrawAwardTimes(),i=cfgTable.drawData[1],s=new S;0==e?(s.num=i.num,s.type=i.award,vo.common.getAward([s],()=>{let e=Math.floor(t/3);To.setDrawAwardTimes(e),this.updateDraw()})):(s.num=parseInt(i.nextid[1]),s.type=parseInt(i.nextid[0]),vo.common.getAward([s],()=>{let e=Math.floor(t/3);To.setDrawAwardTimes(e),this.updateDraw()}))}closeSelf(){this.hide()}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=vo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};vo.common.secretary.play(n,1,!0,t)}}ah.uiName="UIDraw";class oh extends A{constructor(){super(),this.showSelf=!0,this.rankType=1,this.rankList=[],this.myIndex=0,this.myStar=0}onConstructor(){this.ui=St.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.myNode.closeBtn,this.hide),this.addUIClick(this.ui.myNode.changeBtn,this.changeSelfNode),this.addUIClick(this.ui.myNode.starBtn,this.changeList,[1]),this.addUIClick(this.ui.myNode.levelBtn,this.changeList,[2]),this.ui.myNode.myList.setVirtual(),this.ui.myNode.myList.itemRenderer=Laya.Handler.create(this,this.updateItemUI,null,!1)}show(){super.show(),this.myIndex=51,Moyu.getRankList({rankId:vo.common.curRankID,type:MoyuRankType.total,page:1,pageSize:50},this,this.updateItemData),this.updateSelf(),Moyu.getUserInfo().isAuth||Moyu.initUser(this,()=>{To.upRankData()})}updateSelfItem(){let t=Moyu.getUserInfo();this.ui.myNode.selfNode.c1.selectedIndex=this.myIndex<4?this.myIndex-1:3,this.ui.myNode.selfNode.rankTxt.text=this.myIndex>50?"未上榜":this.myIndex.toString(),this.ui.myNode.selfNode.valueTxt.text=this.myStar+"",this.ui.myNode.selfNode.nameTxt.text=Moyu.platType<11?t.nickName:"myself",vo.common.createHead(this.ui.myNode.selfNode.headNode.head.myIcon,t.headIcon)}updateItemData(t){if(this.myStar=vo.common.getAllStarNum(),this.rankList.length<2){this.rankList=t;let e=Moyu.getUserInfo();for(let i=0;i50){this.myIndex=i+1;let t={headIcon:e.headIcon,nickName:"myself"},s={user:t,data:{}},n={rankScore:this.myStar.toString(),userId:e.userId,userData:JSON.stringify(s)};Moyu.platType<11&&(t.headIcon=e.headIcon,t.nickName=e.nickName),this.rankList.splice(i,0,n);break}}}this.updateSelfItem(),this.ui.myNode.myList.numItems=this.rankList.length}updateItemUI(t,e){let i=this.rankList[t],s=JSON.parse(i.userData).user;switch(e.nameTxt.text=s.nickName.toString(),e.valueTxt.text=i.rankScore,vo.common.createHead(e.headNode.head.myIcon,s.headIcon,80),e.rankTxt.text=t+1,t){case 0:this.setImg(e,1,0,0),e.rankTxt.color="#FFC047";break;case 1:this.setImg(e,0,1,0),e.rankTxt.color="#ACACAC";break;case 2:this.setImg(e,0,0,1),e.rankTxt.color="#D09672";break;default:this.setImg(e,0,0,0),e.rankTxt.color="#496FAB"}}setImg(t,e,i,s){t.img1.visible=!!e,t.img2.visible=!!i,t.img3.visible=!!s}changeList(t){this.rankType=t,this.updateSelf()}changeSelfNode(){this.showSelf=!this.showSelf,this.updateSelf()}updateSelf(){this.ui.myNode.changeBtn.c1.selectedIndex=this.showSelf?0:1,this.ui.myNode.c2.selectedIndex=this.showSelf?0:1,this.ui.myNode.c1.selectedIndex=1==this.rankType?0:1,this.ui.myNode.levelBtn.c1.selectedIndex=1==this.rankType?1:0,this.ui.myNode.starBtn.c1.selectedIndex=1==this.rankType?0:1}}oh.uiName="UIRanking";class hh extends A{constructor(){super(),this.curIndex=1}onConstructor(){this.ui=Bt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addUIClick(this.ui.closeBtn,this.closeSelf),this.addUIClick(this.ui.leftBtn,this.turnLeft),this.addUIClick(this.ui.rightBtn,this.turnRight),this.nodeObj={left:null,right:null,cur:null},this.nodeObj.left=this.ui.myNode.gameNode1,this.nodeObj.right=this.ui.myNode.gameNode2,this.nodeObj.cur=this.ui.myNode.gameNode3}show(){super.show(),this.ui.t0.play(),this.updateData()}addSecretarySpine(t,e){if("mishu"==e)if(this.secretarySpine1)t.displayObject.destroyChildren(),this.playWoman(this.secretarySpine1,t.displayObject);else{let e=new X("mishu",()=>{this.secretarySpine1=e,this.playWoman(this.secretarySpine1,t.displayObject)})}else if(this.secretarySpine2)t.displayObject.destroyChildren(),this.playWoman(this.secretarySpine2,t.displayObject);else{let e=new X("xiaomishu2",()=>{this.secretarySpine2=e,this.playWoman(this.secretarySpine2,t.displayObject)})}}playWoman(t,e){let i=this.ui.myNode.gameNode1.secretary.width/2,s=this.ui.myNode.gameNode1.secretary.height,n=1.5;t==this.secretarySpine2&&(n=1.2);let a={x:i,y:s,scaleX:n,scaleY:n};t.play(a,1,!0,e)}turnLeft(){this.curIndex--,this.curIndex<1&&(this.curIndex=2);let t=this.nodeObj.left,e=this.nodeObj.right,i=this.nodeObj.cur;Laya.Tween.to(t,{x:180,scaleX:.8,scaleY:.8,alpha:.3},500),Laya.Tween.to(e,{x:0,scaleX:1,scaleY:1,alpha:1},500),Laya.Tween.to(i,{x:-180,scaleX:.8,scaleY:.8,alpha:.3},500,null,Laya.Handler.create(this,()=>{this.updateData()})),this.ui.myNode.setChildIndex(e,2),this.nodeObj.left=i,this.nodeObj.right=t,this.nodeObj.cur=e}turnRight(){this.curIndex++,this.curIndex>2&&(this.curIndex=1);let t=this.nodeObj.left,e=this.nodeObj.right,i=this.nodeObj.cur;Laya.Tween.to(i,{x:180,scaleX:.8,scaleY:.8,alpha:.3},500),Laya.Tween.to(t,{x:0,scaleX:1,scaleY:1,alpha:1},500),Laya.Tween.to(e,{x:-180,scaleX:.8,scaleY:.8,alpha:.3},500,null,Laya.Handler.create(this,()=>{this.updateData()})),this.ui.myNode.setChildIndex(t,2),this.nodeObj.left=e,this.nodeObj.right=i,this.nodeObj.cur=t}updateData(){let t,e,i=cfgTable.secretaryshopData,s=this.ui.myNode._children;for(let n=0;n{let t={x:150,y:70,scaleX:1,scaleY:1};this.mySpine.play(t,0,!0,this.ui.eftRod.displayObject)}))}updateSelf(){let t=To.getBallRod(this.index);null==t&&(t=1);let e=To.getCurBallRod();t?e==this.index?this.ui.purchaseBtn.c1.selectedIndex=0:this.ui.purchaseBtn.c1.selectedIndex=1:this.ui.purchaseBtn.c1.selectedIndex=2}buyBallRod(){switch(vo.soundMgr.playSound(vo.common.btnClickStr),this.ui.purchaseBtn.c1.selectedIndex){case 0:break;case 1:To.setCurBallRod(this.index),vo.uiMgr.getUI(rh).updateBallRod();break;case 2:let t=cfgTable.ballrodData[this.index+1].price;if(To.diamondEnough(t)){To.setDiamond(-t),To.setBallRod(this.index,1),To.setCurBallRod(this.index),vo.uiMgr.getUI(rh).updateBallRod()}else vo.uiMgr.Show(ih,1)}}}class rh extends A{constructor(){super(),this.itemNums=0}onConstructor(){this.ui=Tt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.moneyNode=new sh(this.ui.moneyNode),this.addUIClick(this.ui.closeNode.closeBtn,this.closeSelf),this.addUIClick(this.ui,this.interuptSecretary),this.ui.myNode.myList.itemRenderer=Laya.Handler.create(this,this.renderBallRod,null,!1),this.ballRodArr=[],this.itemNums=Object.keys(cfgTable.ballrodData).length,this.ui.myNode.myList.numItems=this.itemNums,Moyu.isKs&&(this.ui.closeNode.closeBtn.x+=100)}show(){super.show(),this.playSecretaryIdle(),this.updateBallRod()}updateBallRod(){for(let t=0;t{if(this.isHide)return;let t=vo.common.randomNum(4,7);vo.soundMgr.playSound("s_main0"+t);let e=1;switch(t){case 4:e=5;break;case 5:e=3;break;case 6:e=6;break;case 7:e=7}vo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),this.playSecretaryRandomSound()})}closeSelf(){this.hide()}}rh.uiName="UIShop";class ch{constructor(t){this.ui=t}updateSelf(t,e,i){let s=cfgTable.signData[t+1];this.ui.titleTxt.text=s.title;let n=s.award[0].split("-"),a=s.award[1].split("-"),o=parseInt(n[1]),h=parseInt(a[1]);this.ui.numTxt1.text=o+"",this.ui.numTxt2.text=h+"",this.ui.myIcon1.url=vo.common.getGameIconUrl(s.icon[0]),this.ui.myIcon2.url=vo.common.getGameIconUrl(s.icon[1]),vo.common.signAwardContainsRod([s.award[0]])?this.ui.numTxt1.visible=!1:this.ui.numTxt1.visible=!0,vo.common.signAwardContainsRod([s.award[1]])?this.ui.numTxt2.visible=!1:this.ui.numTxt2.visible=!0,this.ui.c1.selectedIndex=t2?(this.ui.myIcon.url=vo.common.getComponentUrl("s"+s.icon[0]),this.ui.myIcon.rotation=0):(this.ui.myIcon.url=vo.common.getGameIconUrl(s.icon[0]),this.ui.myIcon.rotation=0),vo.common.signAwardContainsRod(s.award)?this.ui.numTxt.visible=!1:this.ui.numTxt.visible=!0,this.ui.c1.selectedIndex=t=7&&!t)&&(this.curDayIndex=0),t){this.ui.normalBtn.visible=!1;let t=To.getExtraSign(),e=!1,i=this.curDayIndex;0==i&&(i=7);let s=cfgTable.signData[i].award[0].split("-")[0];"1"!=s&&"2"!=s||(e=!0);let n=0==t&&e;this.ui.againBtn.visible=n,this.ui.tipsNode.visible=!n}else this.ui.normalBtn.visible=!0,this.ui.tipsNode.visible=!1,this.ui.againBtn.visible=!1;for(let e=0;e{this.curDayIndex++,this.curDayIndex>7&&(this.curDayIndex=0),To.setSignData(this.curDayIndex),To.setSignTime((new Date).getTime()),t&&(To.setExtraSign(1),Moyu.sendDataEvent("signIn1")),this.updateSign()})}}againGetAward(){Moyu.sendDataEvent("signIn2"),Moyu.showVideoAd(()=>{let t=this.curDayIndex;0==t&&(t=7);let e,i,s,n=cfgTable.signData[t].award;for(let t=0;t{this.callback&&this.callback()})):(Moyu.sendDataEvent("AddCoinVideo"),vo.uiMgr.Show(ih,0))}getRandPeople(t){let e=this.peopleOffest[t];return this.peopleArr[t]+vo.common.randomNum(-e,e)}}gh.uiName="UIModeSelection";class mh extends A{constructor(){super(),this.firstEnter=!0}onConstructor(){this.ui=dt.createInstance(),this.contentPane=this.ui,this.isEject=!1,this.addEvent(),this.addClickSpine(),this.settingNode=new nh(this.ui.settingNode),this.moneyNode=new sh(this.ui.moneyNode),vo.eventMgr.on(u,this,this.beginGame),vo.eventMgr.on(g,this,this.onGetUserInfo),vo.eventMgr.on(m,this,this.changeSecretary);let t=To.getCurSecretary();this.changeSecretary(t),this.ui.talkNode.visible=!1;let e=To.getSkillGuide();vo.common.isNewDay&&1==e&&(vo.common.isNewDay=!1,vo.soundMgr.playSound("s_main01"),vo.common.showGirlTalkPop(1,this.ui.talkNode,this.ui.talkNode.womanTxt),console.log("播放小秘书每天语音")),this.onGetUserInfo(),this.ui.n83.visible=!1,Moyu.setShareInfo("8Ball Fury",["台球","万宁","桌球"],"2300002254")}changeSecretary(t){let e=cfgTable.secretaryshopData[t+1].spine;vo.common.secretary&&vo.common.secretary.dispose(),this.addSecretarySpine(e)}addSecretarySpine(t){let e=new X(t,()=>{this.playSecretaryIdle()});vo.common.secretary=e}addClickSpine(){let t=new X("dianji",()=>{Laya.stage.on(Laya.Event.CLICK,this,e=>{let i=Laya.stage,s={x:e.stageX,y:e.stageY,scaleX:.8,scaleY:.8};t.play(s,0,!1,i,t=>{t.destroy(!0)})})})}addEvent(){this.addUIClick(this.ui.classicBtn,this.startGame,[f.classic]),this.addUIClick(this.ui.bigMoveBtn,this.startGame,[f.bigMove]),this.addUIClick(this.ui.globalBtn,this.startGlobal),this.addUIClick(this.ui.weeklyBtn,this.startWeekly),this.addUIClick(this.ui.placeBallBtn,this.startPlaceBall),this.addUIClick(this.ui.headNode,this.onGetUserInfo,[!0]),this.addUIClick(this.ui,this.interuptSecretary),this.addUIClick(this.ui.rightBtn,this.ensureSecretary),this.addUIClick(this.ui.guideBtn,this.startGame,[f.bigMove]),this.addUIClick(this.ui.secretaryBtn,this.openSecretaryView),this.addUIClick(this.ui.shopBtn,this.openShopView),this.addUIClick(this.ui.signBtn,this.openSignView),this.addUIClick(this.ui.drawBtn,this.openDrawView),this.addUIClick(this.ui.rankBtn,this.openRanking)}show(t){if(super.show(),this.moneyNode.ui.c1.selectedIndex=1,this.playSecretaryIdle(),vo.soundMgr.playMusic("caromhall01"),Laya.timer.clearAll(this),this.playSecretaryRandomSound(),t&&setTimeout(()=>{let t=Math.random()<=.5?"s_main02":"s_main03",e=-1;e="s_main02"==t?2:3,vo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),vo.soundMgr.playSound(t)},300),this.showGuide(),this.ui.guideBtn.x=this.ui.liucheng2.myMask.x,this.ui.guideBtn.y=this.ui.liucheng2.myMask.y,1==To.getSkillGuide()){let t=vo.common.randomNum(300,800);this.firstEnter&&(this.firstEnter=!1,t+=900),Laya.timer.once(t,this,()=>{vo.common.autoPopUIView()})}}checkActive(t){}showGuide(){let t=To.getSkillGuide();this.ui.guideBtn.visible=0==t,this.ui.enterGuide.visible=!1,this.ui.secretaryGuide.visible=0==t,0==t&&(vo.soundMgr.playSound("s_guide"),vo.common.showGirlTalkPop(16,this.ui.talkNode,this.ui.talkNode.womanTxt))}ensureSecretary(){this.ui.secretaryGuide.visible=!1,this.ui.enterGuide.visible=!0,this.ui.wordsNode.t0.play(),To.getNewUser()&&Moyu.sendDataEvent("gameReady")}playSecretaryIdle(){let t=this.ui.secretary.displayObject;t.destroyChildren();let e=this.ui.secretary.width/2,i=this.ui.secretary.height,s=vo.common.getSecretaryScale(),n={x:e,y:i,scaleX:s,scaleY:s};vo.common.secretary.play(n,1,!0,t)}startGame(t){switch(vo.common.gameMode=t,Moyu.sendDataEvent("PlayGame",{type:t}),vo.common.gameMode){case f.classic:0==To.getChallengeTimes()?vo.uiMgr.Show(Xo):this.beginGame();break;case f.bigMove:this.beginGame(),To.getNewUser()&&Moyu.sendDataEvent("gameStart0")}}beginGame(t=!1){vo.common.gameMode==f.classic?t?this.enterClassic():vo.uiMgr.Show(gh,()=>{this.enterClassic()}):vo.common.gameMode==f.bigMove&&(this.ui.enterGuide.visible=!1,vo.uiMgr.Show(eh))}enterClassic(){vo.uiMgr.Show(Wo),vo.uiMgr.Show(Qo,()=>{this.isHide||this.hide(),vo.common.gameUI.ui.alpha=1,vo.common.gameUI.startGame(),vo.uiMgr.Hide(Ko)})}startGlobal(){vo.uiMgr.Show(_o,"Coming Soon~")}startWeekly(){vo.uiMgr.Show(_o,"Coming Soon~")}startPlaceBall(){vo.uiMgr.Show(Jo)}hide(){super.hide(),vo.common.stopGirlPop(this.ui.talkNode)}onGetUserInfo(t=!1){if(Moyu.isWx){let t=Moyu.getSystemInfo();t&&Moyu.createWXUserBtn(0,0,t.width,t.height,"res/wxuser.png",this.freshUser)}else Moyu.initUser(this,this.freshUser,t);if(!Moyu.hasUserInfo){Moyu.getUserInfo().headIcon="res/ty_touxiang.png"}this.freshUser()}freshUser(){let t=Moyu.getUserInfo();t.isAuth?To.upRankData():t.headIcon="res/ty_touxiang.png",this.ui.headNode.nameTxt.text=vo.tools.reviseString(t.nickName,16),vo.common.createHead(this.ui.headNode.headRoot.headImg,t.headIcon)}interuptSecretary(){Laya.timer.clearAll(this),this.playSecretaryRandomSound()}playSecretaryRandomSound(){if(this.isHide)return;let t=vo.common.randomNum(45e3,6e4);Laya.timer.once(t,this,()=>{if(this.isHide)return;let t=vo.common.randomNum(4,7);vo.soundMgr.playSound("s_main0"+t);let e=1;switch(t){case 4:e=5;break;case 5:e=3;break;case 6:e=6;break;case 7:e=7}vo.common.showGirlTalkPop(e,this.ui.talkNode,this.ui.talkNode.womanTxt),this.playSecretaryRandomSound()})}openSecretaryView(){vo.uiMgr.Show(hh),Moyu.sendDataEvent("secretary")}openShopView(){vo.uiMgr.Show(rh)}openSignView(){vo.uiMgr.Show(uh)}openDrawView(){vo.uiMgr.Show(ah)}openRanking(){vo.uiMgr.Show(oh),Moyu.sendDataEvent("rankingList")}}function appInit(){vo.context.init([{url:"fgui/loading_atlas0.png",type:Laya.Loader.IMAGE},{url:"fgui/loading.obj",type:Laya.Loader.BUFFER}],initCallback)}function initCallback(){window.DataMgr=To,To.Init(),Moyu.init(function(){let t=new MoyuCfg;if(t.plat=MoyuPlat.web,t.myId=120,t.myKey="8848a885774230a4",t.version=0,window.hasOwnProperty("gamebox"))t.plat=MoyuPlat.f399,t.version=0;else if(window.hasOwnProperty("ks"))t.plat=MoyuPlat.ks,t.version=0,t.ads.ksVideoId="2300002254_01",t.ads.ksInsertId="2300002254_02";else if(Laya.Browser.onTTMiniGame)t.plat=MoyuPlat.tt,t.version=0,t.ads.ttVideoId="55lg4hiq6cl1i98a01",t.ads.ttInsertId="163l1f09abb0fm5l05",t.ads.ttBannerId="349ld7libg2l5h9a3l";else if(Laya.Browser.onMiniGame)t.plat=MoyuPlat.wx,t.ads.wxBannerId="adunit-fb4acc9e4c4d8c7c",t.ads.wxInsertId="adunit-1c0437c20853677c",t.ads.wxVideoId="adunit-51758e3d8d649e01";else if(Laya.Browser.onQQMiniGame)t.plat=MoyuPlat.qq;else if(Laya.Browser.onQGMiniGame)t.plat=MoyuPlat.op,t.ads.opVideoId="455502",t.ads.opBannerId="455507";else if(Laya.Browser.onVVMiniGame)t.plat=MoyuPlat.vv,t.version=0,t.ads.vvVideoId="405d0513a3964187bfb37aca09da5f45",t.ads.vvInsertId="72b18a69075c410986ff16e43fb2b0f0",t.ads.vvBannerId="fe2d2b92dbc144e086df5150b7d3d3d1";else if(Laya.Browser.onHWMiniGame)t.plat=MoyuPlat.hw;else if(window.mz)t.plat=MoyuPlat.mz;else{let t=window.conchConfig;if(t){var e=t.getOS();"Conch-ios"==e&&(t.plat=MoyuPlat.ios)}}return t}(),this,()=>{To.isNewDay(),W.initConfig(),vo.common.curRankID=Moyu.isWx?vo.common.rankID.wxStar:vo.common.rankID.normalStar},!0),console.log("zh:开始sm init1 start"),vo.soundMgr.init(),console.log("zh:开始sm init1 end"),vo.uiMgr.init(),vo.uiMgr.bindFUI(e.loading),vo.uiMgr.Show(Go)}function enterGame(){vo.cfgMgr.init(),vo.soundMgr.onSetting(To.userData.sound),Moyu.onSetting(To.userData.sound,To.userData.vibration),vo.uiMgr.Hide(Go),fgui.UIPackage.removePackage(e.loading),vo.uiMgr.bindFUI(e.game),vo.uiMgr.Show(mh),To.getNewUser()&&Moyu.sendDataEvent("logOn",{newPlayerTime:new Date})}mh.uiName="UIMain";new class{constructor(){window.Laya3D?Laya3D.init(t.width,t.height,null,Laya.Handler.create(this,this.initMain)):(Laya.init(t.width,t.height,Laya.WebGL),this.initMain())}initMain(){Laya.Physics&&Laya.Physics.enable(),Laya.DebugPanel&&Laya.DebugPanel.enable(),Laya.stage.scaleMode=t.scaleMode,Laya.stage.screenMode=t.screenMode,Laya.stage.alignV=t.alignV,Laya.stage.alignH=t.alignH,Laya.URL.exportSceneToJson=t.exportSceneToJson,(t.debug||"true"==Laya.Utils.getQueryString("debug"))&&Laya.enableDebugPanel(),t.physicsDebug&&Laya.PhysicsDebugDraw&&Laya.PhysicsDebugDraw.enable(),t.stat&&Laya.Stat.show(),Laya.alertGlobalError(!0),Laya.ResourceVersion.enable("version.json",Laya.Handler.create(this,this.onVersionLoaded),Laya.ResourceVersion.FILENAME_VERSION)}onVersionLoaded(){appInit()}}}();