123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- System.register("chunks:///_virtual/Adapter.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,n,i,o,r,s,a,c,h,u;return{setters:[function(e){t=e.inheritsLoose,n=e.createClass},function(e){i=e.cclegacy,o=e._decorator,r=e.size,s=e.Component,a=e.screen,c=e.view,h=e.v4,u=e.UITransform}],execute:function(){i._RF.push({},"bd749XlRlxBuozLdQ22l+pP","Adapter",void 0);o.ccclass,o.property;var d=function(e){return e[e.Unknown=0]="Unknown",e[e.LandscapeLeft=1]="LandscapeLeft",e[e.LandscapeRight=2]="LandscapeRight",e[e.Portrait=3]="Portrait",e[e.UpsideDown=4]="UpsideDown",e}(d||{}),l=r(0,0),p=r(0,0),f=e("Adapter",function(e){function i(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))||this)._func=null,t.onAdapterComplete=null,t._isFullScreenAdaption=!0,t}t(i,e);var o=i.prototype;return o.doOnAdapterComplete=function(){this.onAdapterComplete&&this.onAdapterComplete()},o.onLoad=function(){e.prototype.onLoad&&e.prototype.onLoad.call(this),this.onChangeSize()},o.onEnable=function(){e.prototype.onEnable&&e.prototype.onEnable.call(this),this.addEvents()},o.onDisable=function(){this.removeEvents(),e.prototype.onDisable&&e.prototype.onDisable.call(this)},o.onDestroy=function(){this.removeEvents(),e.prototype.onDestroy&&e.prototype.onDestroy.call(this)},o.addEvents=function(){this._func||(this._func=this.onChangeSize.bind(this),window.addEventListener("resize",this._func),window.addEventListener("orientationchange",this._func))},o.removeEvents=function(){this._func&&(window.removeEventListener("resize",this._func),window.removeEventListener("orientationchange",this._func)),this._func=null},o.onChangeSize=function(){this.doOnAdapterComplete()},i.screenPxToDesignPx=function(e){return e/this.safeArea.designPxToScreenPxRatio},i.designPxToScreenPx=function(e){return e*this.safeArea.designPxToScreenPxRatio},i.isNormalScreen=function(){return a.windowSize.height/a.windowSize.width<1.78},n(i,[{key:"width",get:function(){var e=this.getComponent(u);return e?e.width:0},set:function(e){var t=this.getComponent(u);t&&(t.width=e)}},{key:"height",get:function(){var e=this.getComponent(u);return e?e.height:0},set:function(e){var t=this.getComponent(u);t&&(t.height=e)}},{key:"direction",get:function(){var e=d.Unknown,t=window.orientation;return null==t&&null==t||(90==t?e=d.LandscapeLeft:-90==t?e=d.LandscapeRight:0==t?e=d.Portrait:180==t&&(e=d.UpsideDown)),e}},{key:"isFullScreenAdaption",get:function(){return this._isFullScreenAdaption},set:function(e){this._isFullScreenAdaption=e}}],[{key:"windowSize",get:function(){return a.windowSize}},{key:"visibleSize",get:function(){return c.getVisibleSize()}},{key:"safeAreaEdge",get:function(){return h(0,0,0,0)}},{key:"safeArea",get:function(){if(null==this._safeArea||null==this._safeArea){var e=i.windowSize.width,t=i.windowSize.height,n=i.visibleSize.width,o=i.visibleSize.height,r=Math.min(e/n,t/o);p.width=0,p.height=0,l.width=e-p.width,l.height=t-p.height,this._safeArea={width:e,height:t,outside:p,safe:l,designPxToScreenPxRatio:r}}return this._safeArea},set:function(e){this._safeArea=e}}]),i}(s));f.direction=d,f._safeArea=null,i._RF.pop()}}}));
- System.register("chunks:///_virtual/AdapterSafeArea.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Adapter.ts"],(function(t){var i,e,o,r,n,s,p,l,a;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.inheritsLoose,o=t.initializerDefineProperty,r=t.assertThisInitialized,n=t.createClass},function(t){s=t.cclegacy,p=t._decorator,l=t.Widget},function(t){a=t.Adapter}],execute:function(){var u,h,c,g,f,y,d,A,b,_,m,O,T,D,L,w,P;s._RF.push({},"5e52cT+eOdD5ZJK8aNQofsx","AdapterSafeArea",void 0);var v=p.ccclass,R=p.property,B=p.executeInEditMode,F=p.menu,k=function(t){return t[t.None=0]="None",t[t.TOP=1]="TOP",t[t.BOTTOM=2]="BOTTOM",t[t.LEFT=4]="LEFT",t[t.RIGHT=8]="RIGHT",t}(k||{});t("default",(u=v("AdapterSafeArea"),h=F("Quick适配组件/AdapterSafeArea"),c=R({tooltip:""}),g=R({tooltip:""}),f=R({tooltip:""}),y=R({tooltip:""}),d=R({visible:function(){return this.isAlignTop},tooltip:""}),A=R({visible:function(){return this.isAlignBottom},tooltip:""}),b=R({visible:function(){return this.isAlignLeft},tooltip:""}),_=R({visible:function(){return this.isAlignRight},tooltip:""}),u(m=B(m=h((T=i((O=function(t){function i(){for(var i,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return i=t.call.apply(t,[this].concat(n))||this,o(i,"_flags",T,r(i)),o(i,"_top",D,r(i)),o(i,"_bottom",L,r(i)),o(i,"_left",w,r(i)),o(i,"_right",P,r(i)),i._isDirty=!1,i}e(i,t);var s=i.prototype;return s.setFlag=function(t,i){i!=(this._flags&t)>0&&(i?this._flags|=t:this._flags&=~t,this._isDirty=!0)},s.resetInEditor=function(){this.doLayout(!0)},s.doLayout=function(t){if(void 0===t&&(t=!1),this._isDirty||t){var i=this.widget;if(!this.isFullScreenAdaption)return;if(!i||!i.enabled)return;i.isAlignTop&&this.isAlignTop&&(i.isAbsoluteTop=!0,this.direction==a.direction.Portrait?i.top=this.top+a.safeArea.outside.height:i.top=this.top),i.isAlignBottom&&this.isAlignBottom&&(i.isAbsoluteBottom=!0,this.direction==a.direction.UpsideDown?i.bottom=this.bottom+a.safeArea.outside.height:i.bottom=this.bottom),i.isAlignLeft&&this.isAlignLeft&&(i.isAbsoluteLeft=!0,this.direction==a.direction.LandscapeLeft?i.left=this.left+a.safeArea.outside.width:i.left=this.left),i.isAlignRight&&this.isAlignRight&&(i.isAbsoluteRight=!0,this.direction==a.direction.LandscapeRight?i.right=this.right+a.safeArea.outside.width:i.right=this.right),i.updateAlignment(),this._isDirty=!1,this.doOnAdapterComplete()}},s.onChangeSize=function(){this.doLayout(!0)},s.update=function(i){t.prototype.update&&t.prototype.update.call(this,i),this.doLayout()},n(i,[{key:"isAlignTop",get:function(){return(this._flags&k.TOP)>0},set:function(t){this.setFlag(k.TOP,t)}},{key:"isAlignBottom",get:function(){return(this._flags&k.BOTTOM)>0},set:function(t){this.setFlag(k.BOTTOM,t)}},{key:"isAlignLeft",get:function(){return(this._flags&k.LEFT)>0},set:function(t){this.setFlag(k.LEFT,t)}},{key:"isAlignRight",get:function(){return(this._flags&k.RIGHT)>0},set:function(t){this.setFlag(k.RIGHT,t)}},{key:"top",get:function(){return this._top},set:function(t){this._top!=t&&(this._top=t,this._isDirty=!0)}},{key:"bottom",get:function(){return this._bottom},set:function(t){this._bottom!=t&&(this._bottom=t,this._isDirty=!0)}},{key:"left",get:function(){return this._left},set:function(t){this._left!=t&&(this._left=t,this._isDirty=!0)}},{key:"right",get:function(){return this._right},set:function(t){this._right!=t&&(this._right=t,this._isDirty=!0)}},{key:"widget",get:function(){var t=this.getComponent(l);return t||this.addComponent(l)}}]),i}(a)).prototype,"_flags",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return k.None}}),i(O.prototype,"isAlignTop",[c],Object.getOwnPropertyDescriptor(O.prototype,"isAlignTop"),O.prototype),i(O.prototype,"isAlignBottom",[g],Object.getOwnPropertyDescriptor(O.prototype,"isAlignBottom"),O.prototype),i(O.prototype,"isAlignLeft",[f],Object.getOwnPropertyDescriptor(O.prototype,"isAlignLeft"),O.prototype),i(O.prototype,"isAlignRight",[y],Object.getOwnPropertyDescriptor(O.prototype,"isAlignRight"),O.prototype),D=i(O.prototype,"_top",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i(O.prototype,"top",[d],Object.getOwnPropertyDescriptor(O.prototype,"top"),O.prototype),L=i(O.prototype,"_bottom",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i(O.prototype,"bottom",[A],Object.getOwnPropertyDescriptor(O.prototype,"bottom"),O.prototype),w=i(O.prototype,"_left",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i(O.prototype,"left",[b],Object.getOwnPropertyDescriptor(O.prototype,"left"),O.prototype),P=i(O.prototype,"_right",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),i(O.prototype,"right",[_],Object.getOwnPropertyDescriptor(O.prototype,"right"),O.prototype),m=O))||m)||m)||m));s._RF.pop()}}}));
- System.register("chunks:///_virtual/AdapterSprite.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Adapter.ts"],(function(t){var e,i,s,n,r,o,p,h,a,c,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,s=t.createClass},function(t){n=t.cclegacy,r=t._decorator,o=t.Enum,p=t.Sprite,h=t.Widget,a=t.v3,c=t.UITransform},function(t){l=t.Adapter}],execute:function(){var d,T,u,y,g,f,S;n._RF.push({},"eeb87KiuDBE4KodowbfprPJ","AdapterSprite",void 0);var v=r.ccclass,w=r.property,E=r.executeInEditMode,I=r.menu,L=t("SpriteScaleType",function(t){return t[t.FILL=0]="FILL",t[t.SUIT=1]="SUIT",t}({})),O=t("SpriteAlignType",function(t){return t[t.LEFT=0]="LEFT",t[t.TOP=1]="TOP",t[t.RIGHT=2]="RIGHT",t[t.BOTTOM=3]="BOTTOM",t[t.CENTER=4]="CENTER",t}({}));t("default",(d=v("AdapterSprite"),T=E(!0),u=I("Quick适配组件/AdapterSprite"),y=w({type:o(L),tooltip:"缩放类型:\n -FILL: 缩放到填满父节点(如果父节点有裁剪,图像可能会被裁剪,节点可能会超出父节点)\n -SUIT: 缩放到刚好在父节点内部最大化显示(图像会完整显示,但父节点上下或者左右可能会留空)"}),g=w({type:o(O),tooltip:"齐方式类型:\n -LEFT: 缩放后靠左对齐\n -TOP: 缩放后靠上对齐\n -RIGHT: 缩放后靠右对齐\n -BOTTOM: 缩放后靠下对齐\n -CENTER: 缩放后居中对齐"}),d(f=T(f=u((e((S=function(t){function e(){for(var e,i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];return(e=t.call.apply(t,[this].concat(s))||this)._scaleType=L.SUIT,e._alignType=O.CENTER,e._sprite=null,e}i(e,t);var n=e.prototype;return n.onLoad=function(){this._sprite=this.node.getComponent(p)},n.start=function(){this.updateSprite(this.scaleType,this.alignType)},n.onChangeSize=function(){this.updateSprite(this.scaleType,this.alignType)},n.updateSprite=function(t,e){var i;if(this._sprite&&this._sprite.enabled&&this._sprite.spriteFrame){var s=null==(i=this.node.parent)?void 0:i.getComponent(h);s&&s.updateAlignment(),this.width=this._sprite.spriteFrame.rect.width,this.height=this._sprite.spriteFrame.rect.height;var n=this.parentTrans;if(this.width/this.height>n.width/n.height){if(t==L.SUIT){var r=n.width/this.width;this.node.scale=a(r,r)}else if(t==L.FILL){var o=n.height/this.height;this.node.scale=a(o,o)}}else if(t==L.SUIT){var p=n.height/this.height;this.node.scale=a(p,p)}else if(t==L.FILL){var c=n.width/this.width;this.node.scale=a(c,c)}switch(e){case O.CENTER:this.node.setPosition(a());break;case O.LEFT:this.node.setPosition(a(-.5*(n.width-this.width*this.node.scale.x),0));break;case O.RIGHT:this.node.setPosition(a(.5*(n.width-this.width*this.node.scale.x),0));break;case O.TOP:this.node.setPosition(a(0,.5*(n.height-this.height*this.node.scale.x)));break;case O.BOTTOM:this.node.setPosition(a(0,-.5*(n.height-this.height*this.node.scale.x)))}this.doOnAdapterComplete()}},s(e,[{key:"scaleType",get:function(){return this._scaleType},set:function(t){this._scaleType=t}},{key:"alignType",get:function(){return this._alignType},set:function(t){this._alignType=t}},{key:"parentTrans",get:function(){var t;return null==(t=this.node.parent)?void 0:t.getComponent(c)}}]),e}(l)).prototype,"scaleType",[y],Object.getOwnPropertyDescriptor(S.prototype,"scaleType"),S.prototype),e(S.prototype,"alignType",[g],Object.getOwnPropertyDescriptor(S.prototype,"alignType"),S.prototype),f=S))||f)||f)||f));n._RF.pop()}}}));
- System.register("chunks:///_virtual/AdapterView.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Adapter.ts"],(function(e){var i,t,s,a,o;return{setters:[function(e){i=e.inheritsLoose},function(e){t=e.cclegacy,s=e._decorator,a=e.v3},function(e){o=e.Adapter}],execute:function(){var n;t._RF.push({},"aa0f6X8h7FGOousEfBO0lS4","AdapterView",void 0);var r=s.ccclass,d=(s.property,s.executeInEditMode),c=s.menu;e("default",r("AdapterView")(n=d(!0)(n=c("Quick适配组件/AdapterView")(n=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.onChangeSize=function(){if(o.safeArea=null,this.node){if(this.isFullScreenAdaption)this.width=o.safeArea.width/o.safeArea.designPxToScreenPxRatio,this.height=o.safeArea.height/o.safeArea.designPxToScreenPxRatio;else switch(this.width=o.safeArea.safe.width/o.safeArea.designPxToScreenPxRatio,this.height=o.safeArea.safe.height/o.safeArea.designPxToScreenPxRatio,this.direction){case o.direction.LandscapeLeft:this.node.setPosition(a(o.safeArea.outside.width/o.safeArea.designPxToScreenPxRatio,0));break;case o.direction.LandscapeRight:this.node.setPosition(a(-o.safeArea.outside.width/o.safeArea.designPxToScreenPxRatio,0));break;case o.direction.Portrait:this.node.setPosition(a(0,-o.safeArea.outside.height/o.safeArea.designPxToScreenPxRatio));break;case o.direction.UpsideDown:this.node.setPosition(a(0,o.safeArea.outside.height/o.safeArea.designPxToScreenPxRatio));break;default:console.log("获取不到设备方向,直接居中处理"),this.node.setPosition(a(0,0))}this.doOnAdapterComplete()}},t}(o))||n)||n)||n);t._RF.pop()}}}));
- System.register("chunks:///_virtual/ArsenalUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./List.ts","./Utils.ts","./UserData.ts","./GunItem.ts","./AutoBind.ts","./BaseExp.ts","./GunAttrItem.ts","./GunTypeItem.ts","./UIManager.ts","./Constants.ts","./MsgHints.ts","./Game.ts"],(function(t){var n,e,a,i,u,r,l,s,o,c,p,f,g,y,m,h,d,_,b,G,D;return{setters:[function(t){n=t.applyDecoratedDescriptor,e=t.inheritsLoose,a=t.initializerDefineProperty,i=t.assertThisInitialized,u=t.extends},function(t){r=t.cclegacy,l=t._decorator,s=t.Label,o=t.Node},function(t){c=t.default},function(t){p=t.Utils},function(t){f=t.userIns},function(t){g=t.GunItem},function(t){y=t.autoBind},function(t){m=t.BaseExp},function(t){h=t.GunAttrItem},function(t){d=t.GunTypeItem},function(t){_=t.uiMgr},function(t){b=t.Constants},function(t){G=t.default},function(t){D=t.Game}],execute:function(){var v,A,I,L,T,w,U,V,C,z,B,k,E,x,M;r._RF.push({},"8d2c6im4+tP95EQaOIZ0YX1","ArsenalUI",void 0);var O=l.ccclass;l.property,t("ArsenalUI",(v=O("ArsenalUI"),A=y({type:c,tooltip:"枪的属性列表"}),I=y({type:c,tooltip:"枪的类型列表"}),L=y({type:c,tooltip:"枪的列表"}),T=y({type:s,tooltip:"枪的名字"}),w=y({type:s,tooltip:"枪的类型的名字"}),U=y({type:o,tooltip:"模型摄像机"}),v((z=n((C=function(t){function n(){for(var n,e=arguments.length,u=new Array(e),r=0;r<e;r++)u[r]=arguments[r];return n=t.call.apply(t,[this].concat(u))||this,a(n,"gun_atts_scrollView",z,i(n)),a(n,"gun_type_scrollView",B,i(n)),a(n,"gun_scrollView",k,i(n)),a(n,"gun_name_label",E,i(n)),a(n,"type_name_label",x,i(n)),a(n,"model_camera",M,i(n)),n.gunAttrList=[],n.gunTypeList=[],n.gunList=[],n.curTypeData=null,n.curGunData=null,n}e(n,t);var r=n.prototype;return r.start=function(){this.hasAnim=!1,this.closeOnBlank=!1},r.show=function(){this.model_camera.active=!0,this.curGunData=f.getCurUseGun(),this.loadArsenalData()},r.hide=function(){this.model_camera.active=!1},r.forceRefresh=function(){this.curGunData=f.getCurUseGun(),this.loadArsenalData(this.curTypeData,!0)},r.loadArsenalData=function(t,n){var e,a=this;void 0===t&&(t=null),void 0===n&&(n=!1);var i=f.playerGunsTable.reduce((function(t,n){return t[n.type]||(t[n.type]=[]),t[n.type].push(n),t}),{});(this.gunTypeList.length<=0||n)&&(this.gunTypeList=Object.values(i).map((function(t){var n,e=t[0],i=f.data.guns.some((function(t){return t.type===e.type})),r=e.type===(null==(n=a.curGunData)?void 0:n.type);return u({},e,{unlocked:i,selected:r})}))),this.gun_type_scrollView.numItems=this.gunTypeList.length,this.curTypeData=null!=(e=t)?e:this.gunTypeList.find((function(t){return t.type===a.curGunData.type})),this.gun_name_label.string=this.curGunData.name_lang,this.type_name_label.string=this.curTypeData.type_name;var r=p.clone(f.data.guns).filter((function(t){return t.type===a.curTypeData.type})).map((function(t){return u({},t,{unlocked:!0,selected:t.id==a.curGunData.id})})),l=p.clone(f.playerGunsTable).filter((function(t){return t.type===a.curTypeData.type&&!r.some((function(n){return n.id===t.id}))})).map((function(t){return u({},t,{unlocked:!1,selected:!1})}));this.gunList=[].concat(r,l),this.gun_scrollView.numItems=this.gunList.length,this.model_camera.children.forEach((function(t){t.active=a.curGunData.prb_name+"_gun"===t.name})),this.gunAttrList=[],f.gunAttrKeys.map((function(t){return a.curGunData[t]})).forEach((function(t,n){var e,i=f.gunAttrKeys[n],r=f.getGunMaxValue(a.curGunData,i);a.gunAttrList.push(u({attr_name:i,attr_value:t,attr_icon:a.curGunData[i+"_icon"]},r,{attribute_lang:null==(e=f.playerGunAttsTable.find((function(t){return t.attribute_name==i})))?void 0:e.attribute_lang}))})),this.gun_atts_scrollView.numItems=this.gunAttrList.length},r.setGunAttsItemData=function(t,n){t.getComponent(h).init(this.gunAttrList[n])},r.setGunListItemData=function(t,n){var e=this;t.getComponent(g).init(this.gunList[n],(function(t){var n;t.id!=e.curGunData.id&&(e.curGunData=t,e.loadArsenalData(e.curTypeData),f.changeGun(t.id),null==(n=D.I)||null==(n=n.player)||n.loadGunName(t.prb_name,!0))}))},r.setGunTypeItemData=function(t,n){var e=this;t.getComponent(d).init(this.gunTypeList[n],(function(t){e.gunTypeList.forEach((function(n){return n.selected=n.id==t.id})),e.loadArsenalData(t)}))},r.onBtnClicked=function(n,e){if(t.prototype.onBtnClicked.call(this,n,e),"upgrade_btn"===n.target.name){if(!this.curGunData)return void G.show("Gun data not found");this.model_camera.active=!1,_.show(b.popUIs.upgradeGunUI,[this.curGunData])}},n}(m)).prototype,"gun_atts_scrollView",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=n(C.prototype,"gun_type_scrollView",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=n(C.prototype,"gun_scrollView",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=n(C.prototype,"gun_name_label",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=n(C.prototype,"type_name_label",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=n(C.prototype,"model_camera",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=C))||V));r._RF.pop()}}}));
- System.register("chunks:///_virtual/AudioManager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Singleton.ts","./BundleManager.ts","./Constants.ts","./SettingData.ts","./Logger.ts","./Utils.ts"],(function(t){var e,u,r,i,n,o,a,c,l,s,d,p,f;return{setters:[function(t){e=t.inheritsLoose,u=t.asyncToGenerator,r=t.regeneratorRuntime},function(t){i=t.cclegacy,n=t._decorator,o=t.AudioSource,a=t.AudioClip},function(t){c=t.Singleton},function(t){l=t.bundleMgr},function(t){s=t.Constants},function(t){d=t.settingData},function(t){p=t.Logger},function(t){f=t.Utils}],execute:function(){var v;i._RF.push({},"ee7a147895KzoCz1nKJrCUQ","AudioManager",void 0);var h=n.ccclass,S=(n.property,h("AudioManager")(v=function(t){function i(){for(var e,u=arguments.length,r=new Array(u),i=0;i<u;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).cachedAudioArr=[],e.bgVolumeMax=.8,e}e(i,t);var n=i.prototype;return n.initialize=function(){var t=u(r().mark((function t(){var e,u=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=Object.entries(s.audios).map((function(t){t[0];return{path:t[1],type:a}})).filter((function(t){return!!t.path})),t.next=3,l.loadMultipleAssets(s.bundleName.audios,e,(function(t){}),(function(t,e,r){t?p.error("加载资源失败:",t):u.cachedAudioArr.push({clip:e,audioSource:null,path:r,playStatus:!1,totalTime:e.getDuration(),time_id:-1,t:0})}));case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n.play=function(){var t=u(r().mark((function t(e,u,i){var n,o,c=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===u&&(u=!1),void 0===i&&(i=-1),!f.isNull(e)&&d.data.bgMusic){t.next=4;break}return t.abrupt("return");case 4:if(n=function(t){if(null==t.audioSource&&(t.audioSource=c.audioSourceLoop(u)),!t.playStatus){if(t.audioSource.clip=t.clip,t.time_id&&(clearInterval(t.time_id),t.audioSource.playing&&t.audioSource.pause()),t.audioSource.play(),-1==i)t.audioSource.volume=c.bgVolumeMax;else{t.t=0,t.audioSource.volume=0;var e=1/i/10;t.time_id=setInterval((function(){t.t+=e;var u=t.t/i;u>=c.bgVolumeMax?clearInterval(t.time_id):t.audioSource.volume=u}),1e3*e)}t.playStatus=!0}},!(o=this.cachedAudioArr.find((function(t){return t.path==e})))){t.next=10;break}n(o),t.next=12;break;case 10:return t.next=12,l.loadAsset(s.bundleName.audios,e,a,(function(t,u){if(t)p.error("加载资源失败:",t);else{var r={path:e,clip:u,audioSource:null,playStatus:!1,totalTime:u.getDuration(),time_id:-1,t:0};c.cachedAudioArr.push(r),n(r)}}));case 12:case"end":return t.stop()}}),t,this)})));return function(e,u,r){return t.apply(this,arguments)}}(),n.playOneShot=function(){var t=u(r().mark((function t(e,u){var i,n,o=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===u&&(u=!0),!f.isNull(e)&&d.data.soundFx){t.next=3;break}return t.abrupt("return");case 3:if(i=function(t){!u&&t.playStatus||(null==t.audioSource&&(t.audioSource=o.audioSourceLoop(!1)),t.audioSource.clip=t.clip,t.audioSource.play(),t.audioSource.volume=1,t.playStatus=!0,setTimeout((function(){t.playStatus=!1}),1e3*t.totalTime))},!(n=this.cachedAudioArr.find((function(t){return t.path==e})))){t.next=9;break}i(n),t.next=11;break;case 9:return t.next=11,l.loadAsset(s.bundleName.audios,e,a,(function(t,u){if(t)p.error("加载资源失败:",t);else{var r={path:e,clip:u,audioSource:null,playStatus:!1,totalTime:u.getDuration(),time_id:-1,t:0};o.cachedAudioArr.push(r),i(r)}}));case 11:case"end":return t.stop()}}),t,this)})));return function(e,u){return t.apply(this,arguments)}}(),n.stop=function(t,e){var u=this;if(void 0===e&&(e=-1),!f.isNull(t)){var r=this.cachedAudioArr.find((function(e){return e.path==t}));if(r){if(!r.audioSource)return;if(!r.audioSource.playing)return;r.time_id&&clearInterval(r.time_id);var i=r.audioSource;if(-1==e)null==i||i.pause();else{r.t=0;var n=1/e/10;r.time_id=setInterval((function(){if(i){r.t+=n;var t=u.bgVolumeMax-r.t/e;t<=0?(clearInterval(r.time_id),null==i||i.pause()):i.volume=t<=0?0:t}}),1e3*n)}r.playStatus=!1}}},n.audioSourceLoop=function(t){return t?this.getAudioSource(null,!0,this.bgVolumeMax):this.getAudioSource(null,!1,1)},n.getAudioSource=function(t,e,u){void 0===t&&(t=null),void 0===e&&(e=!1),void 0===u&&(u=1);var r=new o;return t&&(r.clip=t),r.loop=e,r.volume=u,r},i}(c))||v);t("audioMgr",S.ins());i._RF.pop()}}}));
- System.register("chunks:///_virtual/AutoBind.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,n;return{setters:[function(t){e=t.createForOfIteratorHelperLoose},function(t){n=t.cclegacy}],execute:function(){t({autoBind:function(t,e){if(void 0!==e){var n=t;return r.has(n)||r.set(n,{}),void(r.get(n)[e]={})}return function(e,n){r.has(e)||r.set(e,{});var o="function"==typeof t?{type:t}:t;r.get(e)[n]=o}},initAutoBindings:function(t){var e=r.get(Object.getPrototypeOf(t));if(!e)return;var n=new Map;for(var u in i(t.node,n),e){var a=e[u],c=n.get(u);if(c){var f=o(t,u,a);t[u]=!f||c instanceof f?c:c.getComponent(f)}}}}),n._RF.push({},"02dbcLwQzZCspaVMhjyt9dj","AutoBind",void 0);var r=new WeakMap;function o(t,e,n){if(n.type)return n.type;var r=t[e];return null!=r?r.constructor:null}function i(t,n){n.set(t.name,t);for(var r,o=e(t.children);!(r=o()).done;){i(r.value,n)}}n._RF.pop()}}}));
- System.register("chunks:///_virtual/BaseExp.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Utils.ts","./Logger.ts","./UIManager.ts","./EventEmitter.ts","./AutoBind.ts","./Constants.ts","./AudioManager.ts"],(function(t){var n,e,i,s,o,a,c,r,h,u,l,d,g,f,v,p,B,m,y,C,E,k;return{setters:[function(t){n=t.inheritsLoose,e=t.createClass},function(t){i=t.cclegacy,s=t._decorator,o=t.Node,a=t.Tween,c=t.Vec3,r=t.tween,h=t.easing,u=t.UITransform,l=t.Vec2,d=t.Button,g=t.js,f=t.EventHandler,v=t.Component},function(t){p=t.Utils},function(t){B=t.Logger},function(t){m=t.uiMgr},function(t){y=t.eventEmitter},function(t){C=t.initAutoBindings},function(t){E=t.Constants},function(t){k=t.audioMgr}],execute:function(){var _;i._RF.push({},"f7232bGb6xDy4F0OYIYaAsF","BaseExp",void 0);var A=s.ccclass;s.property,t("BaseExp",A("BaseExp")(_=function(t){function i(){for(var n,e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return(n=t.call.apply(t,[this].concat(i))||this).events=[],n.closeOnBlank=!0,n._hasAnim=!0,n.oScale=c.ZERO,n.uiBG=null,n}n(i,t);var s=i.prototype;return s.onLoad=function(){this.events=[],this._addClickEvent(this.node),C(this),this.node.on(o.EventType.TOUCH_END,this.onNodeTouchEnd,this),this.uiBG=this.node.getChildByName("UI"),this.uiBG&&(this.oScale=this.uiBG.scale.clone())},s.showAnim=function(){var t=this;if(this.uiBG&&this._hasAnim){a.stopAllByTarget(this.uiBG),this.uiBG.scale=new c(.95,.95,.95);var n=this.oScale;r(this.uiBG).to(.1,{scale:new c(.02+n.x,.02+n.y,.02+n.z)},{easing:h.backOut}).to(.1,{scale:new c(n.x-.02,n.y-.02,n.z-.02)},{easing:h.backOut}).call((function(){t.uiBG.scale=t.oScale})).start()}},s.onNodeTouchEnd=function(t){var n=this.node.getChildByName("UI");if(n&&this.closeOnBlank){var e=this.node.getComponent(u),i=t.getUILocation(),s=e.convertToNodeSpaceAR(new c(i.x,i.y));n.getComponent(u).getBoundingBox().contains(new l(s.x,s.y))||this.close()}},s.close=function(t){var n=this.node._uiPath;p.isNull(n)?B.log("请检查该: "+this.node.name+"页面路径信息,不存在"):m.hide(n,t)},s.onBtnClicked=function(t,n){k.playOneShot(E.audios.click),"close_btn"===t.target.name&&this.close()},s._isSkipNode=function(t){if(this.node==t)return!1;var n=t.getComponent(i);return n?null!=n:void 0},s._addClickEvent=function(t){if(!this._isSkipNode(t))for(var n=0;n<t.children.length;n++){var e=t.children[n];this._isSkipNode(e)||(e.getComponent(d)&&this.addClickEvent(e,this.node,g.getClassName(this),"onBtnClicked",e),this._addClickEvent(e))}},s.addClickEvent=function(t,n,e,i,s){var o=new f;o.target=n,o.component=e,o.handler=i,s&&(o.customEventData=s);var a=t.getComponent(d).clickEvents;a.length>0?B.log(t.name+"按钮已经存在绑定,跳过自动绑定"):a.push(o)},s.onDestroy=function(){for(var t=0;t<this.events.length;t++)y.unregister(this,this.events[t])},s.register=function(t,n){this.events.push(t),y.register(this,t,n)},s.unregister=function(t){y.unregister(this,t)},s.dispatch=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),i=1;i<n;i++)e[i-1]=arguments[i];y.dispatch.apply(y,[t].concat(e))},e(i,[{key:"hasAnim",set:function(t){t&&this.showAnim(),this._hasAnim=t}}]),i}(v))||_);i._RF.pop()}}}));
- System.register("chunks:///_virtual/BoomerangItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ListItem.ts","./ResUtil.ts","./UserData.ts"],(function(t){var e,i,n,r,o,l,a,c,s,u,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,n=t.initializerDefineProperty,r=t.assertThisInitialized},function(t){o=t.cclegacy,l=t._decorator,a=t.Sprite,c=t.Label},function(t){s=t.default},function(t){u=t.ResUtil},function(t){p=t.userIns}],execute:function(){var b,f,_,m,y,h,d,g,v;o._RF.push({},"7e43aEZkU5KPJU0JU7AszCq","BoomerangItem",void 0);var I=l.ccclass,z=l.property;t("BoomerangItem",(b=I("BoomerangItem"),f=z({type:a,tooltip:"道具图片"}),_=z({type:c,tooltip:"价格文本"}),m=z({type:c,tooltip:"购买数量文本"}),b((d=e((h=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return e=t.call.apply(t,[this].concat(o))||this,n(e,"prop_icon",d,r(e)),n(e,"price_lable",g,r(e)),n(e,"buy_num_label",v,r(e)),e.data=null,e.cb=null,e}i(e,t);var o=e.prototype;return o.start=function(){},o.onBtnClicked=function(t,e){var i;this.data&&(null==(i=this.cb)||i.call(this,this.data,this.prop_icon.node))},o.init=function(t,e){if(t){this.data=t,this.cb=e,this.buy_num_label.string="x"+t.quantity;var i=t.price_1.split("_"),n=i[0],r=i[1],o=p.itemTable.find((function(t){return t.id==n}));o&&(u.setSpriteFrame(o.icon,this.prop_icon),this.price_lable.string="x"+r)}},e}(s)).prototype,"prop_icon",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=e(h.prototype,"price_lable",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=e(h.prototype,"buy_num_label",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=h))||y));o._RF.pop()}}}));
- System.register("chunks:///_virtual/BounceAnimation.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(i){var t,n,e,o,r,a,s,l,u,c,p,h,g;return{setters:[function(i){t=i.applyDecoratedDescriptor,n=i.inheritsLoose,e=i.initializerDefineProperty,o=i.assertThisInitialized},function(i){r=i.cclegacy,a=i._decorator,s=i.Enum,l=i.CCInteger,u=i.CCFloat,c=i.Vec3,p=i.tween,h=i.easing,g=i.Component}],execute:function(){var y,b,f,m,B,E,d,T,v,z,w,P,A;r._RF.push({},"80b6b2umTRJgp27pHM6FB3M","BounceAnimation",void 0);var C=a.ccclass,H=a.property,S=function(i){return i[i.BOUNCE=0]="BOUNCE",i[i.BREATHE=1]="BREATHE",i}(S||{});i("BounceAnimation",(y=C("BounceAnimation"),b=H({type:s(S),tooltip:"动画类型"}),f=H({type:l,tooltip:"缓动高度",visible:function(){return this.animationType===S.BOUNCE}}),m=H({type:l,tooltip:"缓动时间(秒)",visible:function(){return this.animationType===S.BOUNCE}}),B=H({type:u,tooltip:"缩放幅度",visible:function(){return this.animationType===S.BREATHE}}),E=H({type:l,tooltip:"呼吸周期(秒)",visible:function(){return this.animationType===S.BREATHE}}),y((v=t((T=function(i){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=i.call.apply(i,[this].concat(r))||this,e(t,"animationType",v,o(t)),e(t,"bounceHeight",z,o(t)),e(t,"duration",w,o(t)),e(t,"scaleSize",P,o(t)),e(t,"breatheDuration",A,o(t)),t.originalPosition=new c,t.originalScale=new c,t}n(t,i);var r=t.prototype;return r.start=function(){this.originalPosition=this.node.position.clone(),this.originalScale=this.node.scale.clone(),this.startAnimation()},r.startAnimation=function(){var i=this.node;this.animationType===S.BOUNCE?p(i).delay(Math.random()).to(this.duration,{position:new c(this.originalPosition.x,this.originalPosition.y+this.bounceHeight,this.originalPosition.z)},{easing:h.linear}).to(this.duration,{position:new c(this.originalPosition.x,this.originalPosition.y-this.bounceHeight,this.originalPosition.z)},{easing:h.linear}).to(this.duration,{position:new c(this.originalPosition.x,this.originalPosition.y,this.originalPosition.z)},{easing:h.linear}).union().repeatForever().start():this.animationType===S.BREATHE&&p(i).sequence(p().to(this.breatheDuration,{scale:new c(this.originalScale.x+this.scaleSize,this.originalScale.y+this.scaleSize,1)}),p().to(this.breatheDuration,{scale:this.originalScale})).repeatForever().start()},t}(g)).prototype,"animationType",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return S.BOUNCE}}),z=t(T.prototype,"bounceHeight",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 20}}),w=t(T.prototype,"duration",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.5}}),P=t(T.prototype,"scaleSize",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.05}}),A=t(T.prototype,"breatheDuration",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),d=T))||d));r._RF.pop()}}}));
- System.register("chunks:///_virtual/BuildEnemys.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ResUtil.ts","./Game.ts","./Utils.ts","./UserData.ts","./Enemy.ts","./UIManager.ts","./Constants.ts","./AudioManager.ts","./EventEmitter.ts"],(function(e){var n,t,a,r,s,i,o,u,c,l,m,p,y,h,f,d;return{setters:[function(e){n=e.inheritsLoose,t=e.extends,a=e.asyncToGenerator,r=e.regeneratorRuntime},function(e){s=e.cclegacy,i=e._decorator,o=e.Component},function(e){u=e.ResUtil},function(e){c=e.Game},function(e){l=e.Utils},function(e){m=e.userIns},function(e){p=e.Enemy},function(e){y=e.uiMgr},function(e){h=e.Constants},function(e){f=e.audioMgr},function(e){d=e.eventEmitter}],execute:function(){var v;s._RF.push({},"88af4GpYOpAS6rDUJ/7f1mw","BuildEnemys",void 0);var E=i.ccclass;i.property,e("BuildEnemys",E("BuildEnemys")(v=function(e){function s(){for(var n,t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return(n=e.call.apply(e,[this].concat(a))||this).enemyTypeRecords=[],n.queueEnemys=[],n.eTimeMaps=new Map,n.allEnemys=[],n.continuekillCount=0,n.isOpenDoor=!1,n}n(s,e);var i=s.prototype;return i.start=function(){this.allEnemys=[]},i.loadLevelEnemys=function(){var e=this;if(!c.I.isGameOver&&!c.I.isPause){this.recycle(),this.isOpenDoor=!1,this.queueEnemys=this.readLevelEnemys();for(var n=0,t=.0175,a=function(){var a=e.queueEnemys[r],s=l.getRandomFloat(a.min_interval,a.max_interval),i={data:a,delay:n+=s,curTime:0,createComplete:!1},o=setInterval((function(){c.I.isGameOver||c.I.isPause||(i.curTime+=t,i.curTime>=i.delay&&!i.createComplete&&(i.createComplete=!0,e.createEnemy(i.data).then((function(){var n,t=null==(n=e.eTimeMaps)?void 0:n.get(i);t&&(clearInterval(t),e.eTimeMaps.delete(i))}))))}),17.5);e.eTimeMaps.set(i,o)},r=0;r<this.queueEnemys.length;r++)a();d.dispatch(h.eventName.enemy_num_change)}},i.readLevelEnemys=function(){var e=this,n=m.getCurLevelData();if(n){var a=[],r=[],s=[];return n.dispose.split("|").forEach((function(a){var i=a.split("_").map(Number),o=i[0],u=i[1],c=l.clone(m.enemyTable).find((function(e){return e.id==o}));if(c)if(e.enemyTypeRecords.push({enemyId:o,total:u,count:u,enemyData:l.clone(c)}),c.hp=Math.floor((1+n.coefficient)*c.hp),2===c.type)for(var p=0;p<u;p++)s.push(t({},c));else for(var y=0;y<u;y++)r.push(t({},c))})),r.sort((function(){return Math.random()-.5})),a.push.apply(a,r.concat(s)),a}},i.createEnemy=function(){var e=a(r().mark((function e(n){var t,a,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c.I.map&&c.I.map&&this.allEnemys&&n){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,u.loadRes("enemy/enemy/"+n.prb_name);case 4:return(t=e.sent).active=!0,t.parent=c.I.map.node,a=c.I.map.getPaths(n),t.worldPosition=a[0],s=t.getComponent(p),e.next=12,s.init(n);case 12:return s.walk(a),this.allEnemys.push(s),e.abrupt("return",s);case 15:case"end":return e.stop()}}),e,this)})));return function(n){return e.apply(this,arguments)}}(),i.subtractEnemy=function(e){if(e&&e.node&&!c.I.isGameOver){l.remove(this.allEnemys,e);var n=this.enemyTypeRecords.find((function(n){var t;return n.enemyId==(null==(t=e.data)?void 0:t.id)}));n&&(n.count=Math.max(n.count-1,0)),d.dispatch(h.eventName.enemy_num_change),this.allEnemys.length<=0&&(f.playOneShot(h.audios.victory),c.I.isGameOver=!0,y.show(h.popUIs.settleUI,[{isWin:!0,headShotNum:c.I.player.headShotNum,cb:function(){}}]))}},i.recycle=function(){this.eTimeMaps.forEach((function(e,n){null!=n&&null!=n&&clearInterval(n)})),this.eTimeMaps.clear(),this.allEnemys.forEach((function(e){e.recycle(!1)})),this.allEnemys=[],c.I.map.resetData(),this.enemyTypeRecords=[]},i.getCurKillNum=function(){return this.queueEnemys.length-this.allEnemys.length},s}(o))||v);s._RF.pop()}}}));
- System.register("chunks:///_virtual/Bullet1.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Game.ts","./BulletBase.ts","./PoolManager.ts","./Sundries.ts","./Enemy.ts","./GameEnums.ts"],(function(e){var t,a,i,s,n,r,o,l,u,c,h,d,y;return{setters:[function(e){t=e.inheritsLoose,a=e.createForOfIteratorHelperLoose},function(e){i=e.cclegacy,s=e._decorator,n=e.geometry,r=e.PhysicsSystem,o=e.Vec3},function(e){l=e.Game},function(e){u=e.BulletBase},function(e){c=e.PoolManager},function(e){h=e.Sundries},function(e){d=e.Enemy},function(e){y=e.GameEnums}],execute:function(){var f;i._RF.push({},"f3ea8NbyiNHeoVbWbO85nrm","Bullet1",void 0);var v=s.ccclass;s.property,e("Bullet1",v("Bullet1")(f=function(e){function i(){for(var t,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).isRemoveDead=!1,t.vector=null,t.time=.6,t}t(i,e);var s=i.prototype;return s.init=function(e,t){void 0===t&&(t=!0),this.gunBase=e,this.isDead=!1,this.isRemoveDead=t},s.setBulletVector=function(e){this.time=this.getBulletTime();var t=this.gunBase.data.bulletSpeed/3;this.vector=e.clone().multiplyScalar(t),this.node.forward=e},s.speedChange=function(){var e=this.gunBase.data.bulletSpeed;this.vector&&(this.vector=this.vector.normalize().multiplyScalar(e))},s.update=function(e){if(l.I.isGameOver||l.I.isPause)return this.isDead=!0,void c.putNode(this.node);if(this.vector){var t=this.vector.clone().multiplyScalar(e);this.node.worldPosition=this.node.worldPosition.add(t),this.scheduleOnce(this.rayPreCheck,this.time)}},s.rayPreCheck=function(){var e=this.stabilityGetBulletPos(100),t=n.Ray.create();l.I.camera.screenPointToRay(e.x,e.y,t);var i=r.instance.raycast(t,4294967295,1e5,!0),s=r.instance.raycastResults;if(i&&s.length>0){var u,c=this.gunBase.node.worldPosition;s.sort((function(e,t){return o.distance(e.hitPoint,c)-o.distance(t.hitPoint,c)}));for(var f,v=null,m=a(s);!(f=m()).done;){var p=f.value;if(p.collider.args){v=p;break}}v=null!=(u=v)?u:s[0],this.addHitImpact(v);var g=v.collider.args;if(g){var B=g[0],P=g[1],b=this.gunBase.data.attack;if(P instanceof d){var S=P,H=!1;if(B==y.enemyPartType.head&&(l.I.player.headShotNum+=1,b=l.I.player.pData.headshotDmgMul*b,H=!0),B==y.enemyPartType.shield&&S.shieldHp>0)return void(S.shieldHp-=b);S.isShotHead=H,S.isTank()?B==y.enemyPartType.tank&&S.subHP(b,this.gunBase.data):(S.raycastResults=v,S.subHP(b,this.gunBase.data))}else if(P instanceof h){P.subHP(b,this.gunBase.data,l.I.player.node)}}this.autoRecycle()}},i}(u))||f);i._RF.pop()}}}));
- System.register("chunks:///_virtual/Bullet10.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolManager.ts","./Game.ts","./BulletBase.ts"],(function(t){var e,i,o,s,a,n,r;return{setters:[function(t){e=t.inheritsLoose},function(t){i=t.cclegacy,o=t._decorator,s=t.Vec3},function(t){a=t.PoolManager},function(t){n=t.Game},function(t){r=t.BulletBase}],execute:function(){var l;i._RF.push({},"d795a460dJCIanwcZSOLmLj","Bullet10",void 0);var c=o.ccclass;o.property,t("Bullet10",c("Bullet10")(l=function(t){function i(){for(var e,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return(e=t.call.apply(t,[this].concat(o))||this).vector=null,e.isHit=!1,e.moveTime=0,e.curTime=0,e}e(i,t);var o=i.prototype;return o.init=function(t){var e=s.distance(t.muzzleNode.worldPosition.clone(),n.I.player.head.worldPosition.clone());this.moveTime=Math.min(50*e/t.data.bulletSpeed,this.recycleTime-.01),this.curTime=0,this.gunBase=t,this.isDead=!1},o.setBulletVector=function(t,e){this.isHit=e;var i=this.gunBase.data.bulletSpeed;this.vector=t.clone().multiplyScalar(i),this.node.forward=t},o.speedChange=function(){var t=this.gunBase.data.bulletSpeed;this.vector&&(this.vector=this.vector.normalize().multiplyScalar(t))},o.update=function(t){if(n.I.isGameOver||n.I.isPause)return this.isDead=!0,void a.putNode(this.node);if(this.vector){this.curTime+=t;var e=this.vector.clone().multiplyScalar(t);this.node.worldPosition=this.node.worldPosition.add(e),this.curTime>=this.moveTime&&this.isHit&&(n.I.player.subHP(this.gunBase.data.attack,this.gunBase.data),this.autoRecycle(),this.curTime=0)}},i}(r))||l);i._RF.pop()}}}));
- System.register("chunks:///_virtual/Bullet14.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolManager.ts","./Game.ts","./BulletBase.ts"],(function(t){var e,i,s,o,a,n,r;return{setters:[function(t){e=t.inheritsLoose},function(t){i=t.cclegacy,s=t._decorator,o=t.Vec3},function(t){a=t.PoolManager},function(t){n=t.Game},function(t){r=t.BulletBase}],execute:function(){var l;i._RF.push({},"bfbe82nNGFIZYvxrsfEzbJp","Bullet14",void 0);var c=s.ccclass;s.property,t("Bullet14",c("Bullet14")(l=function(t){function i(){for(var e,i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return(e=t.call.apply(t,[this].concat(s))||this).vector=null,e.isHit=!1,e.moveTime=0,e.curTime=0,e}e(i,t);var s=i.prototype;return s.init=function(t){var e=o.distance(t.muzzleNode.worldPosition.clone(),n.I.player.head.worldPosition.clone());this.moveTime=Math.min(50*e/t.data.bulletSpeed,this.recycleTime-.01),this.curTime=0,this.gunBase=t,this.isDead=!1},s.setBulletVector=function(t,e){this.isHit=e;var i=this.gunBase.data.bulletSpeed;this.vector=t.clone().multiplyScalar(i),this.node.forward=t},s.speedChange=function(){var t=this.gunBase.data.bulletSpeed;this.vector&&(this.vector=this.vector.normalize().multiplyScalar(t))},s.update=function(t){if(n.I.isGameOver||n.I.isPause)return this.isDead=!0,void a.putNode(this.node);if(this.vector){this.curTime+=t;var e=this.vector.clone().multiplyScalar(t);this.node.worldPosition=this.node.worldPosition.add(e),this.curTime>=this.moveTime&&this.isHit&&(n.I.player.subHP(this.gunBase.data.attack,this.gunBase.data),this.autoRecycle(),this.curTime=0)}},i}(r))||l);i._RF.pop()}}}));
- System.register("chunks:///_virtual/Bullet2.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolManager.ts","./Game.ts","./BulletBase.ts","./Sundries.ts","./GameEnums.ts","./Enemy.ts"],(function(e){var t,a,i,s,n,r,o,l,u,c,h,d,v;return{setters:[function(e){t=e.inheritsLoose,a=e.createForOfIteratorHelperLoose},function(e){i=e.cclegacy,s=e._decorator,n=e.geometry,r=e.PhysicsSystem,o=e.Vec3},function(e){l=e.PoolManager},function(e){u=e.Game},function(e){c=e.BulletBase},function(e){h=e.Sundries},function(e){d=e.GameEnums},function(e){v=e.Enemy}],execute:function(){var y;i._RF.push({},"a110bAYlUhDpLF6MbvBeX7d","Bullet2",void 0);var f=s.ccclass;s.property,e("Bullet2",f("Bullet2")(y=function(e){function i(){for(var t,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).isRemoveDead=!1,t.vector=null,t.time=.6,t}t(i,e);var s=i.prototype;return s.init=function(e,t){void 0===t&&(t=!0),this.gunBase=e,this.isDead=!1,this.isRemoveDead=t},s.setBulletVector=function(e){this.time=this.getBulletTime();var t=this.gunBase.data.bulletSpeed/3;this.vector=e.clone().multiplyScalar(t),this.node.forward=e},s.speedChange=function(){var e=this.gunBase.data.bulletSpeed;this.vector&&(this.vector=this.vector.normalize().multiplyScalar(e))},s.update=function(e){if(u.I.isGameOver||u.I.isPause)return this.isDead=!0,void l.putNode(this.node);if(this.vector){var t=this.vector.clone().multiplyScalar(e);this.node.worldPosition=this.node.worldPosition.add(t),this.scheduleOnce(this.rayPreCheck,this.time)}},s.rayPreCheck=function(){var e=this.stabilityGetBulletPos(80),t=n.Ray.create();u.I.camera.screenPointToRay(e.x,e.y,t);var i=r.instance.raycast(t,4294967295,1e5,!0),s=r.instance.raycastResults;if(i&&s.length>0){var l,c=this.gunBase.node.worldPosition;s.sort((function(e,t){return o.distance(e.hitPoint,c)-o.distance(t.hitPoint,c)}));for(var y,f=null,p=a(s);!(y=p()).done;){var m=y.value;if(m.collider.args){f=m;break}}f=null!=(l=f)?l:s[0],this.addHitImpact(f);var g=f.collider.args;if(g){var B=g[0],P=g[1],S=this.gunBase.data.attack;if(P instanceof v){var b=P,H=!1;if(B==d.enemyPartType.head&&(u.I.player.headShotNum+=1,S=u.I.player.pData.headshotDmgMul*S,H=!0),B==d.enemyPartType.shield&&b.shieldHp>0)return void(b.shieldHp-=S);b.isShotHead=H,b.isTank()?B==d.enemyPartType.tank&&b.subHP(S,this.gunBase.data):(b.raycastResults=f,b.subHP(S,this.gunBase.data))}else if(P instanceof h){P.subHP(S,this.gunBase.data,u.I.player.node)}}this.autoRecycle()}},i}(c))||y);i._RF.pop()}}}));
- System.register("chunks:///_virtual/Bullet3.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolManager.ts","./Game.ts","./BulletBase.ts","./Sundries.ts","./Enemy.ts","./GameEnums.ts"],(function(e){var t,a,i,s,n,r,o,l,u,c,h,d,v;return{setters:[function(e){t=e.inheritsLoose,a=e.createForOfIteratorHelperLoose},function(e){i=e.cclegacy,s=e._decorator,n=e.geometry,r=e.PhysicsSystem,o=e.Vec3},function(e){l=e.PoolManager},function(e){u=e.Game},function(e){c=e.BulletBase},function(e){h=e.Sundries},function(e){d=e.Enemy},function(e){v=e.GameEnums}],execute:function(){var y;i._RF.push({},"49ae7Uhv3BCg6sL1a16tVcn","Bullet3",void 0);var f=s.ccclass;s.property,e("Bullet3",f("Bullet3")(y=function(e){function i(){for(var t,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).isRemoveDead=!1,t.vector=null,t.time=.6,t}t(i,e);var s=i.prototype;return s.init=function(e,t){void 0===t&&(t=!0),this.gunBase=e,this.isDead=!1,this.isRemoveDead=t},s.setBulletVector=function(e){this.time=this.getBulletTime();var t=this.gunBase.data.bulletSpeed/3;this.vector=e.clone().multiplyScalar(t),this.node.forward=e},s.speedChange=function(){var e=this.gunBase.data.bulletSpeed;this.vector&&(this.vector=this.vector.normalize().multiplyScalar(e))},s.update=function(e){if(u.I.isGameOver||u.I.isPause)return this.isDead=!0,void l.putNode(this.node);if(this.vector){var t=this.vector.clone().multiplyScalar(e);this.node.worldPosition=this.node.worldPosition.add(t),this.scheduleOnce(this.rayPreCheck,this.time)}},s.rayPreCheck=function(){var e=this.stabilityGetBulletPos(150),t=n.Ray.create();u.I.camera.screenPointToRay(e.x,e.y,t);var i=r.instance.raycast(t,4294967295,1e5,!0),s=r.instance.raycastResults;if(i&&s.length>0){var l,c=this.gunBase.node.worldPosition;s.sort((function(e,t){return o.distance(e.hitPoint,c)-o.distance(t.hitPoint,c)}));for(var y,f=null,p=a(s);!(y=p()).done;){var m=y.value;if(m.collider.args){f=m;break}}f=null!=(l=f)?l:s[0],this.addHitImpact(f);var g=f.collider.args;if(g){var B=g[0],P=g[1],S=this.gunBase.data.attack;if(P instanceof d){var H=P,R=!1;if(B==v.enemyPartType.head&&(u.I.player.headShotNum+=1,S=u.I.player.pData.headshotDmgMul*S,R=!0),B==v.enemyPartType.shield&&H.shieldHp>0)return void(H.shieldHp-=S);H.isShotHead=R,H.isTank()?B==v.enemyPartType.tank&&H.subHP(S,this.gunBase.data):(H.raycastResults=f,H.subHP(S,this.gunBase.data))}else if(P instanceof h){P.subHP(S,this.gunBase.data,u.I.player.node)}}this.autoRecycle()}},i}(c))||y);i._RF.pop()}}}));
- System.register("chunks:///_virtual/BulletBase.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolManager.ts","./ResUtil.ts","./Game.ts","./UserData.ts"],(function(t){var e,n,a,i,o,s,r,l,u,c;return{setters:[function(t){e=t.inheritsLoose},function(t){n=t.cclegacy,a=t._decorator,i=t.Vec3,o=t.Component},function(t){s=t.PoolManager},function(t){r=t.ResUtil},function(t){l=t.Game},function(t){u=t.userIns,c=t.GunAttribute}],execute:function(){var d;n._RF.push({},"051dfv7+IlCjZaFXRdIPsX0","BulletBase",void 0);var h=a.ccclass;a.property,t("BulletBase",h("BulletBase")(d=function(t){function n(){var e;return(e=t.call(this)||this).isDead=!1,e.gunBase=null,e.recycleTime=3,e.isDead=!1,e}e(n,t);var a=n.prototype;return a.start=function(){setTimeout(this.autoRecycle.bind(this),1e3*this.recycleTime)},a.stabilityGetBulletPos=function(t){var e=u.getGunMaxValue(this.gunBase.data,c.stability).totalValue,n=this.gunBase.data.stability,a=Math.max(0,1-n/e),i=l.I.player.shootUI.getScreenCenterPos();return i.x+=(Math.random()-.5)*a*t,i.y+=(Math.random()-.5)*a*t,i},a.addHitImpact=function(t){r.loadRes("enemy/sundries/hit_impact",this.node).then((function(e){e&&(e.worldPosition=t.hitPoint.add(t.hitNormal.multiplyScalar(.01)),e.forward=t.hitNormal.multiplyScalar(-1),e.setParent(t.collider.node,!0)),setTimeout((function(){e.parent&&s.putNode(e)}),3e3)})).catch((function(t){console.error("加载sundries/hit_impact异常",t)}))},a.getBulletTime=function(){var t=l.I.player.shootUI.getCrossHairPos(),e=this.node.position.clone(),n=i.distance(new i(e.x,0,e.z),new i(t.x,0,t.z));return Math.max(n/(5*this.gunBase.data.bulletSpeed),.25)},a.autoRecycle=function(){!this.isDead&&this.node.parent&&(this.isDead=!0,s.putNode(this.node))},n}(o))||d);n._RF.pop()}}}));
- System.register("chunks:///_virtual/BulletMagazine.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolManager.ts","./Game.ts","./Constants.ts","./BaseExp.ts"],(function(e){var t,i,n,a,l,r,o,s,u,c,p,g,f,h;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.inheritsLoose,n=e.initializerDefineProperty,a=e.assertThisInitialized,l=e.createClass},function(e){r=e.cclegacy,o=e._decorator,s=e.Node,u=e.SpriteFrame,c=e.Sprite},function(e){p=e.PoolManager},function(e){g=e.Game},function(e){f=e.Constants},function(e){h=e.BaseExp}],execute:function(){var m,y,b,z,_,d,v,N,M,B,w;r._RF.push({},"83c6ckag1RAjY4TUul1spSN","BulletMagazine",void 0);var C=o.ccclass,D=o.property;e("BulletMagazine",(m=C("BulletMagazine"),y=D({type:s,tooltip:"滚动内容"}),b=D({type:s,tooltip:"子弹预制体"}),z=D({type:u,tooltip:"用过的子弹图片"}),_=D({type:u,tooltip:"正常的子弹图片"}),m((N=t((v=function(e){function t(){for(var t,i=arguments.length,l=new Array(i),r=0;r<i;r++)l[r]=arguments[r];return t=e.call.apply(e,[this].concat(l))||this,n(t,"content",N,a(t)),n(t,"bullet",M,a(t)),n(t,"use_sf",B,a(t)),n(t,"nor_sf",w,a(t)),t._magazineNum=0,t.bullets=[],t}i(t,e);var r=t.prototype;return r.start=function(){this.bullet.active=!1,this.register(f.eventName.magazine_num_change,this.loadMagazine.bind(this))},r.loadMagazine=function(){if(g.I.player.gun&&!g.I.isGameOver){this.recycle();for(var e=g.I.player.pData.magazine-g.I.player.gun.shotBullets,t=0;t<this._magazineNum;t++){var i=p.getNode(this.bullet,this.content);this.bullets.push(i),i.getChildByName("kd_sp").getComponent(c).spriteFrame=t<e?this.nor_sf:this.use_sf}}},r.onDisable=function(){this.recycle()},r.recycle=function(){this.bullets.forEach((function(e){e.parent&&p.putNode(e)})),this.bullets=[]},l(t,[{key:"magazineNum",get:function(){return this._magazineNum},set:function(e){this._magazineNum=e,this.loadMagazine()}}]),t}(h)).prototype,"content",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=t(v.prototype,"bullet",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=t(v.prototype,"use_sf",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=t(v.prototype,"nor_sf",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=v))||d));r._RF.pop()}}}));
- System.register("chunks:///_virtual/BundleConfig.ts",["cc"],(function(e){var t,a,p,n;return{setters:[function(e){t=e.cclegacy,a=e.Prefab,p=e.SpriteFrame,n=e.Texture2D}],execute:function(){t._RF.push({},"7c031pNnkVKr7dEuMs8VZ76","BundleConfig",void 0);e("bundleConfig",new Map([["audios",{loadAtLaunch:!0,autoLoadAll:!0}],["data",{loadAtLaunch:!0,preloadAssets:[{path:"csv",isDirectory:!0}]}],["prefabs",{loadAtLaunch:!0,preloadAssets:[{path:"enemy/gun/pistol",type:a},{path:"enemy/gun/scatter",type:a},{path:"enemy/gun/shield",type:a},{path:"enemy/gun/sniper_rifle",type:a},{path:"enemy/gun/tank_pao",type:a},{path:"player/98k",type:a},{path:"texture/msg_hint/spriteFrame",type:p},{path:"texture/test_01/texture",type:n},{path:"texture/test_02/spriteFrame",type:p}]}]]));t._RF.pop()}}}));
- System.register("chunks:///_virtual/BundleManager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Singleton.ts","./BundleConfig.ts"],(function(e){var t,n,r,s,a,u,o,l,i,c,p;return{setters:[function(e){t=e.inheritsLoose,n=e.extends,r=e.asyncToGenerator,s=e.regeneratorRuntime,a=e.createForOfIteratorHelperLoose},function(e){u=e.cclegacy,o=e._decorator,l=e.assetManager,i=e.SpriteFrame},function(e){c=e.Singleton},function(e){p=e.bundleConfig}],execute:function(){var d;u._RF.push({},"1fa75BNI1pLj673iR8sywfM","BundleManager",void 0);var f=o.ccclass,h=(o.property,f("BundleManager")(d=function(e){function u(){for(var t,n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(t=e.call.apply(e,[this].concat(r))||this)._bundles=new Map,t._assetCache=new Map,t._settings=new Map,t._loadProgress={totalSteps:0,completedSteps:0,currentBundle:"",currentAsset:"",bundleProgress:0,totalProgress:0},t}t(u,e);var o=u.prototype;return o.preloadConfigAllRes=function(){var e=r(s().mark((function e(t,n){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n=p),this._settings=n,e.next=4,this._calculateTotalSteps();case 4:return e.next=6,g.loadLaunchBundles(t);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),o.loadLaunchBundles=function(){var e=r(s().mark((function e(t){var n,r,u,o,l,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._resetProgress(),n=Array.from(this._settings.entries()).filter((function(e){e[0];return e[1].loadAtLaunch})),r=a(n);case 3:if((u=r()).done){e.next=16;break}if(o=u.value,l=o[0],i=o[1],this._loadProgress.currentBundle=l,null==i||!i.autoLoadAll){e.next=11;break}return e.next=9,this._loadAutoBundle(l,i,t);case 9:e.next=14;break;case 11:if(null==i||!i.preloadAssets){e.next=14;break}return e.next=14,this._loadConfiguredBundle(l,i.preloadAssets,t);case 14:e.next=3;break;case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),o.getBundleAssetList=function(){var e=r(s().mark((function e(t){var n,r,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t+"/config.json",e.next=3,fetch(n);case 3:return r=e.sent,e.next=6,r.json();case 6:if(!((a=e.sent)&&a.packages&&a.packages[0]&&a.packages[0].pathMap)){e.next=9;break}return e.abrupt("return",Object.keys(a.packages[0].pathMap));case 9:return e.abrupt("return",[]);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o._calculateTotalSteps=function(){var e=r(s().mark((function e(){var t,n,r,u,o,l,i,c,p;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,n=a(this._settings);case 2:if((r=n()).done){e.next=19;break}if(u=r.value,o=u[0],null==(l=u[1])||!l.loadAtLaunch){e.next=17;break}return e.next=7,this.getBundle(o);case 7:if(i=e.sent,null==l||!l.autoLoadAll){e.next=12;break}i&&null!=(c=i.config)&&null!=(c=c.paths)&&c._map&&(t+=Object.keys(i.config.paths._map).length),e.next=17;break;case 12:if(null==l||!l.preloadAssets){e.next=17;break}return e.next=15,this._expandDirectoryAssets(i,l.preloadAssets);case 15:p=e.sent,t+=p.length;case 17:e.next=2;break;case 19:this._loadProgress.totalSteps=t;case 20:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),o._loadAutoBundle=function(){var e=r(s().mark((function e(t,n,r){var a,u,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getBundle(t);case 2:return a=e.sent,e.next=5,this._getBundleAssets(a,{excludeExtensions:n.excludeExtensions});case 5:return u=e.sent,o=u.filter((function(e){var t;return!(null!=(t=n.excludePaths)&&t.some((function(t){return e.path.startsWith(t)})))})),e.next=9,this._loadBundleAssets(t,o,r);case 9:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}(),o._loadConfiguredBundle=function(){var e=r(s().mark((function e(t,r,a){var u,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getBundle(t);case 2:return u=e.sent,e.next=5,this._expandDirectoryAssets(u,r);case 5:return o=e.sent,e.next=8,this._loadBundleAssets(t,o.map((function(e){return n({path:e.path},e.type&&{type:e.type})})),a);case 8:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}(),o.loadBundle=function(e,t){var n=this,r=this._bundles.get(e);if(r)return r.refCount++,void(null==t||t(null,r.bundle));l.loadBundle(e,(function(r,s){if(r)return console.error("加载Bundle失败 ["+e+"]:",r),void(null==t||t(r));n._bundles.set(e,{bundle:s,refCount:1}),null==t||t(null,s)}))},o._getBundleAssets=function(e,t){var n;void 0===t&&(t={});var r=t,s=r.excludeFolders,a=void 0===s||s,u=r.excludeExtensions,o=void 0===u?[]:u,l=[],i=null==(n=e._config)||null==(n=n.assetInfos)?void 0:n._map;return i&&Object.values(i).forEach((function(e){e.path&&!e.path.includes("@")&&l.push({path:e.path,type:e.ctor})})),l.filter((function(e){return(!a||!e.path.endsWith("/"))&&(null==o||!o.length||!o.some((function(t){return e.path.endsWith(t)})))}))},o._loadBundleAssets=function(){var e=r(s().mark((function e(t,n,r){var a,u,o,l=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=(a=n.length)){e.next=3;break}return e.abrupt("return");case 3:return u=0,o=n.map((function(e){return new Promise((function(n,s){l.loadAsset(t,e.path,e.type,(function(o){if(o)return console.error("["+t+"] 加载资源失败: "+e.path,o),void s(o);u++,l._loadProgress.completedSteps++,l._loadProgress.currentBundle=t,l._loadProgress.currentAsset=e.path,l._loadProgress.bundleProgress=u/a,l._loadProgress.totalProgress=Math.min(l._loadProgress.completedSteps/l._loadProgress.totalSteps,1),l._updateProgress(r),n()}))}))})),e.next=7,Promise.all(o).catch((function(e){throw console.error("["+t+"] 部分资源加载失败",e),e}));case 7:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),o.loadMultipleAssets=function(){var e=r(s().mark((function e(t,n,r,u){var o,l,i,c,p,d=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=n.length,l=0,i=s().mark((function e(){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p.value,e.next=3,new Promise((function(e){d.loadAsset(t,n.path,n.type,(function(s,a){s?(console.error("加载资源失败 ["+t+"] "+n.path+":",s),null==u||u(s,void 0,n.path)):(l++,null==r||r(l/o),null==u||u(null,a,n.path));e()}))}));case 3:case"end":return e.stop()}}),e)})),c=a(n);case 4:if((p=c()).done){e.next=8;break}return e.delegateYield(i(),"t0",6);case 6:e.next=4;break;case 8:case"end":return e.stop()}}),e)})));return function(t,n,r,s){return e.apply(this,arguments)}}(),o.loadAsset=function(e,t,n,r){var s=this,a=t+"-"+(null==n?void 0:n.name),u=this._assetCache.get(a);return u?(null==r||r(null,u),Promise.resolve(u)):new Promise((function(u,o){s.loadBundle(e,(function(l,i){if(l)return null==r||r(l),void o(l);var c=n&&"SpriteFrame"===n.name;c&&!t.endsWith("/spriteFrame")&&console.warn("SpriteFrame路径建议: "+t+" -> "+t+"/spriteFrame","\n(请确认是否使用完整SpriteFrame路径)"),i.load(t,n,(function(n,l){if(n||!l){console.error("加载失败 ["+e+"] "+t+":",n.message);var i=c?"\n可能原因:\n1. 使用完整路径如 "+t+"/spriteFrame 类型为SpriteFrame\n2. 或者加载Texture: "+t+"/texture 类型为Texture":"\n请检查资源路径是否正确";return console.warn("空资源 ["+e+"] "+t,i),null==r||r(n),void o(null!=n?n:new Error("Asset is null"))}s._assetCache.set(a,l),console.log("加载资源 "+t+" 成功: "+a+" + 类型为: "+(null==l?void 0:l.constructor.name)),null==r||r(n,l),u(l)}))}))}))},o.releaseBundle=function(e,t){void 0===t&&(t=!1);var n=this._bundles.get(e);n&&(n.refCount--,(n.refCount<=0||t)&&(l.removeBundle(n.bundle),this._bundles.delete(e),console.log("已释放Bundle: "+e)))},o.getBundle=function(){var e=r(s().mark((function e(t){var n,r,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=null==(n=this._bundles.get(t))?void 0:n.bundle)){e.next=3;break}return e.abrupt("return",r);case 3:return e.prev=3,e.next=6,new Promise((function(e,n){l.loadBundle(t,(function(t,r){t?n(t):e(r)}))}));case 6:return a=e.sent,e.abrupt("return",a);case 10:return e.prev=10,e.t0=e.catch(3),console.error("加载Bundle "+t+" 失败:",e.t0),e.abrupt("return",null);case 14:case"end":return e.stop()}}),e,this,[[3,10]])})));return function(t){return e.apply(this,arguments)}}(),o.hasBundle=function(e){return this._bundles.has(e)},o.releaseAll=function(e){var t=this;void 0===e&&(e=!1),this._bundles.forEach((function(n,r){return t.releaseBundle(r,e)}))},o._expandDirectoryAssets=function(){var e=r(s().mark((function e(t,n){var r,a,u,o=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],a=s().mark((function e(){var a,l,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(a=n[u])&&a.isDirectory){e.next=5;break}null!=a&&a.skipLoading||r.push(a),e.next=11;break;case 5:return l=a.path.endsWith("/")?a.path:a.path+"/",e.next=8,o._getBundleAssets(t,{excludeFolders:!0,excludeExtensions:[".meta"]});case 8:i=e.sent,i.filter((function(e){return e.path.startsWith(l)&&!e.path.substring(l.length).includes("/")})).forEach((function(e){r.push({path:e.path,type:e.type,skipLoading:!1})}));case 11:case"end":return e.stop()}}),e)})),u=0;case 3:if(!(u<n.length)){e.next=8;break}return e.delegateYield(a(),"t0",5);case 5:u++,e.next=3;break;case 8:return r=r.filter((function(e){return!(null!=e&&e.skipLoading)})),e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),o._updateProgress=function(e){null==e||e(n({},this._loadProgress))},o._resetProgress=function(){this._loadProgress={totalSteps:this._loadProgress.totalSteps,completedSteps:0,currentBundle:"",currentAsset:"",bundleProgress:0,totalProgress:0}},o._getLoadArguments=function(e){return e.type===i||e.type?[e.path,e.type]:[e.path]},u}(c))||d),g=e("bundleMgr",h.ins());u._RF.pop()}}}));
- System.register("chunks:///_virtual/BuyBoomerangUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BaseExp.ts","./List.ts","./AutoBind.ts","./UserData.ts","./BoomerangItem.ts","./UIManager.ts","./Constants.ts","./MsgHints.ts","./ResUtil.ts","./AudioManager.ts"],(function(t){var o,n,a,e,i,r,s,l,u,c,p,g,m,d,b,f,h,y,_;return{setters:[function(t){o=t.applyDecoratedDescriptor,n=t.inheritsLoose,a=t.initializerDefineProperty,e=t.assertThisInitialized},function(t){i=t.cclegacy,r=t._decorator,s=t.Label,l=t.Node},function(t){u=t.BaseExp},function(t){c=t.default},function(t){p=t.autoBind},function(t){g=t.userIns},function(t){m=t.BoomerangItem},function(t){d=t.uiMgr},function(t){b=t.Constants},function(t){f=t.default},function(t){h=t.ResUtil,y=t.ITEM_TYPE},function(t){_=t.audioMgr}],execute:function(){var B,I,U,D,v,w,C,A,M;i._RF.push({},"fcacd+AOchJAajjIBQO0OZt","BuyBoomerangUI",void 0);var k=r.ccclass;r.property,t("BuyBoomerangUI",(B=k("BuyBoomerangUI"),I=p({type:c,tooltip:"飞镖列表"}),U=p({type:s,tooltip:"飞镖个数文本"}),D=p({type:l,tooltip:"飞镖按钮"}),B((C=o((w=function(t){function o(){for(var o,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return o=t.call.apply(t,[this].concat(i))||this,a(o,"prop_scrollView",C,e(o)),a(o,"boomerang_num_lable",A,e(o)),a(o,"boomerang_btn",M,e(o)),o.dartDatas=[],o}n(o,t);var i=o.prototype;return i.show=function(){this.hasAnim=!0,this.closeOnBlank=!1;var t=d.getPageComponent(b.popUIs.tossBoomerangUI);t&&t.shoot_btn&&(t.shoot_btn.parent.active=!1),this.boomerang_num_lable.string=g.data.boomerang,this.loadDartData()},i.loadDartData=function(){this.dartDatas=g.boomerangShopTable,this.prop_scrollView.numItems=this.dartDatas.length},i.setDartItemData=function(t,o){t.getComponent(m).init(this.dartDatas[o],this.buyClicked.bind(this))},i.buyClicked=function(t,o){var n=t.price_1.split("_"),a=n[0],e=n[1],i=g.itemTable.find((function(t){return t.id==a})),r=!1;if(1001===i.id?g.data.gold<e?f.show("Insufficient gold!"):(g.data.gold-=e,r=!0):1002===i.id&&(g.data.diamond<e?f.show("Insufficient diamonds!"):(g.data.diamond-=e,r=!0)),r){_.playOneShot(b.audios.buy),h.flyAnim(y.Boomerang,o,this.boomerang_btn,t.quantity,50,(function(t){})),g.data.boomerang+=t.quantity,this.boomerang_num_lable.string=g.data.boomerang;var s=d.getPageComponent(b.popUIs.tossBoomerangUI);s&&s.setBoomerang()}},i.onBtnClicked=function(o,n){if(t.prototype.onBtnClicked.call(this,o,n),"close_btn"===o.target.name){var a=d.getPageComponent(b.popUIs.tossBoomerangUI);a&&a.shoot_btn&&(a.shoot_btn.parent.active=!0),d.hide(b.popUIs.buyBoomerangUI)}},o}(u)).prototype,"prop_scrollView",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=o(w.prototype,"boomerang_num_lable",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=o(w.prototype,"boomerang_btn",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=w))||v));i._RF.pop()}}}));
- System.register("chunks:///_virtual/Constants.ts",["cc"],(function(e){var a;return{setters:[function(e){a=e.cclegacy}],execute:function(){a._RF.push({},"4a3bcEnd5lFHLu3h+MfE2Jl","Constants",void 0);e("Constants",{isDebug:!1,gameName:"GunfightShoot",localCache:{playerData:"WOS_GS_PlayerData",settingData:"WOS_GS_SettingData"},eventName:{magazine_num_change:"magazine_num_change",enemy_num_change:"enemy_num_change",gun_num_change:"gun_num_change"},audios:{BGM:"bgm/BGM",bgm_1:"bgm/bgm_1",bgm_2:"bgm/bgm_2",bgm_3:"bgm/bgm_3",buy:"sound/buy",click:"sound/click",dart:"sound/dart",Enemy_attack:"sound/Enemy_attack",loss:"sound/loss",Oildrum_explosion:"sound/Oildrum_explosion",reload:"sound/reload",reward:"sound/reward",Tank_Attack:"sound/Tank_Attack",Tank_Explosion:"sound/Tank_Explosion",upgrade:"sound/upgrade",victory:"sound/victory",head_shot:"sound/head_shot",enemy_die:"sound/enemy_die"},bundleName:{audios:"audios",prefabs:"prefabs",data:"data",resources:"resources"},mainUIs:{main:"page/main"},popUIs:{settingUI:"ui/settingUI",gunfightShootUI:"ui/gunfightShootUI",storeUI:"ui/storeUI",arsenalUI:"ui/arsenalUI",tossBoomerangUI:"ui/tossBoomerangUI",upgradeGunUI:"ui/upgradeGunUI",buyBoomerangUI:"ui/buyBoomerangUI",obtainUI:"ui/obtainUI",pauseUI:"ui/pauseUI",settleUI:"ui/settleUI"},scenesName:{load:"scenes/launch",game:"scenes/game"},gold:"goldLable",diamond:"diamondLable",levelTask:"levelTask",battleTime:60,hangupRewardVideoCount:3,summonHuoBanVideoCount:2,trialVideoCount:2,towerVideoCount:2,bossVideoCount:2});a._RF.pop()}}}));
- System.register("chunks:///_virtual/CsvManager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./CsvParser.ts","./Constants.ts","./Logger.ts","./Singleton.ts","./BundleManager.ts"],(function(e){var t,r,n,a,s,o,i,c,u,l,f,p,g;return{setters:[function(e){t=e.inheritsLoose,r=e.asyncToGenerator,n=e.regeneratorRuntime,a=e.createForOfIteratorHelperLoose},function(e){s=e.cclegacy,o=e._decorator,i=e.error,c=e.TextAsset},function(e){u=e.CsvParser},function(e){l=e.Constants},function(e){f=e.Logger},function(e){p=e.Singleton},function(e){g=e.bundleMgr}],execute:function(){var d;s._RF.push({},"d5fb9D+44ZAy5iHguyBG4yt","CsvManager",void 0);var h=o.ccclass,v=(o.property,h("CsvManager")(d=function(e){function s(){for(var t,r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return(t=e.call.apply(e,[this].concat(n))||this)._directory="csv",t._parser=new u,t}t(s,e);var o=s.prototype;return o.loadAll=function(){var e=r(n().mark((function e(t){var r,s,o,c,u,p,d,h,v,b;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.getBundle(l.bundleName.data);case 3:if(r=e.sent,0!==(s=r.getDirWithPath(this._directory)).length){e.next=8;break}return f.warn("目录 "+this._directory+" 下未找到CSV文件"),e.abrupt("return");case 8:o=s.length,c=0,u=a(s);case 11:if((p=u()).done){e.next=22;break}return d=p.value,e.next=15,this._loadSingleTable(d.path);case 15:h=e.sent,v=this._parser.addTable(h.name,h.text),c++,b=d.path.split("/").pop(),null==t||t(c==o,c,o,b,v);case 20:e.next=11;break;case 22:e.next=28;break;case 24:throw e.prev=24,e.t0=e.catch(0),i("加载CSV表过程中发生错误:",e.t0),e.t0;case 28:case"end":return e.stop()}}),e,this,[[0,24]])})));return function(t){return e.apply(this,arguments)}}(),o._loadSingleTable=function(){var e=r(n().mark((function e(t){var r;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.getBundle(l.bundleName.data);case 2:return r=e.sent,e.abrupt("return",new Promise((function(e,n){r.load(t,c,(function(r,a){r||!a?n(r||new Error("加载资源 "+t+" 失败")):e(a)}))})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o.getTableArr=function(e){return this._parser.getTableArr(e)},o.findOne=function(e,t){return this.getTableArr(e).find(t)},o.findMany=function(e,t){return this.getTableArr(e).filter(t)},s}(p))||d);e("csvMgr",v.ins());s._RF.pop()}}}));
- System.register("chunks:///_virtual/CsvParser.ts",["cc"],(function(e){var t,r;return{setters:[function(e){t=e.cclegacy,r=e._decorator}],execute:function(){var n;t._RF.push({},"0b6bfc6NJFCJJlql9qr+dR+","CsvParser",void 0);var i=r.ccclass,s=(r.property,[",",";","\t","|","^"]),u=["\r\n","\r","\n"],a=function(e,t,r,n){return r instanceof Array?"any"===r[t]?n[t]:"number"===r[t]?Number(n[t]):"boolean"===r[t]?"true"===n[t]||"t"===n[t]||"1"===n[t]:n[t]:"any"===r?n[t]:isNaN(Number(e))?"false"==e||"true"==e||"t"==e||"f"==e?"true"===n[t]||"t"===n[t]||"1"===n[t]:n[t]:Number(n[t])},o={STANDARD_DECODE_OPTS:{skip:0,limit:!1,header:!1,cast:!1,comment:""},STANDARD_ENCODE_OPTS:{delimiter:s[0],newline:u[0],skip:0,limit:!1,header:!1},quoteMark:'"',doubleQuoteMark:'""',quoteRegex:/"/g,assign:function(){for(var e=Array.prototype.slice.call(arguments),t=e[0],r=e.slice(1),n=0,i=r.length;n<i;n++)for(var s in r[n])t[s]=r[n][s];return t},map:function(e,t){for(var r=[],n=0,i=e.length;n<i;n++)r[n]=t(e[n],n);return r},getType:function(e){return Object.prototype.toString.call(e).slice(8,-1)},getLimit:function(e,t){return!1===e?t:e},buildObjectConstructor:function(e,t,r){return function(n){var i=new Object,s=function(e,t){return i[e]=t};return r?e.forEach((function(e,i){s(e,a(t[i],i,r,n))})):e.forEach((function(e,r){s(e,a(t[r],r,"any",n))})),i}},buildArrayConstructor:function(e,t,r){return function(n){var i=new Array(t.length),s=function(e,t){return i[e]=t};return r?e.forEach((function(e,i){s(e,a(t[i],i,r,n))})):e.forEach((function(e,r){s(e,a(t[r],r,"any",n))})),i}},frequency:function(e,t,r){void 0===r&&(r=!1);for(var n=0,i=0,s=this.getLimit(r,e.length);i<s&&-1!==(i=e.indexOf(t,i));)i+=1,n++;return n},mostFrequent:function(e,t,r){for(var n,i=t.length-1;i>=0;i--)this.frequency(e,t[i],r)>0&&(n=t[i]);return n||t[0]},unsafeParse:function(e,t,r){var n,i,s=e.split(t.newline);function u(e){var r=e.shift();if(r.indexOf('"')>=0){for(var n=0,i=0,s=0;e.length>0&&(-1!==(n=r.indexOf('"',i))||s%2!=0);)-1!==n?(i=n+1,s++):r=r+t.newline+e.shift();var u,a=[],o=0,l=0,c=0,h=r.length;for(var f in r)if(r.hasOwnProperty(f)){var d=parseInt(f),v=r[f];0===d&&'"'===v&&(o++,l=1),'"'===v&&(o++,r[d-1]===t.delimiter&&l===d&&l++),'"'===v&&o%2==0&&(r[d+1]!==t.delimiter&&d+1!==h||(c=d,u=r.substring(l,c),a.push(u),c=l=c+2)),v===t.delimiter&&o%2==0&&((c=d)>l?(u=r.substring(l,c),a.push(u),c=l=c+1):c===l&&(a.push(""),c=l=c+1))}return(c=h)>=l&&(u=r.substring(l,c),a.push(u)),a}return r.split(t.delimiter)}for(t.skip>0&&s.splice(t.skip),t.header?(!0===t.header?(t.comment=u(s),t.cast=u(s),n=u(s)):"Array"===this.getType(t.header)&&(n=t.header),i=this.buildObjectConstructor(n,s[0].split(t.delimiter),t.cast)):i=this.buildArrayConstructor(n,s[0].split(t.delimiter),t.cast);s.length>0;){var a=u(s);a.length>1&&r(i(a),n[0])}return!0},safeParse:function(e,t,r){t.delimiter;var n=t.newline,i=e.split(n);return t.skip>0&&i.splice(t.skip),!0},encodeCells:function(e,t,r){for(var n=e.slice(0),i=0,s=n.length;i<s;i++)-1!==n[i].indexOf(this.quoteMark)&&(n[i]=n[i].replace(this.quoteRegex,this.doubleQuoteMark)),-1===n[i].indexOf(t)&&-1===n[i].indexOf(r)||(n[i]=this.quoteMark+n[i]+this.quoteMark);return n.join(t)},encodeArrays:function(e,t,r){var n=t.delimiter,i=t.newline;t.header&&"Array"===this.getType(t.header)&&r(this.encodeCells(t.header,n,i));for(var s=0,u=this.getLimit(t.limit,e.length);s<u;s++)r(this.encodeCells(e[s],n,i));return!0},encodeObjects:function(e,t,r){var n,i,s=t.delimiter,u=t.newline;for(var a in n=[],i=[],e[0])n.push(a),i.push(e[0][a]);!0===t.header?r(this.encodeCells(n,s,u)):"Array"===this.getType(t.header)&&r(this.encodeCells(t.header,s,u)),r(this.encodeCells(i,s));for(var o=1,l=this.getLimit(t.limit,e.length);o<l;o++){i=[];for(var c=0,h=n.length;c<h;c++)i.push(e[o][n[c]]);r(this.encodeCells(i,s,u))}return!0},parse:function(e,t,r){var n;if("Function"===this.getType(t)?(r=t,t={}):"Function"!==this.getType(r)?r=(n=[]).push.bind(n):n=[],t=this.assign({},this.STANDARD_DECODE_OPTS,t),this.opts=t,!t.delimiter||!t.newline){var i=Math.min(48,Math.floor(e.length/20),e.length);t.delimiter=t.delimiter||this.mostFrequent(e,s,i),t.newline=t.newline||this.mostFrequent(e,u,i)}return this.unsafeParse(e,t,r)&&(!(n.length>0)||n)},encode:function(e,t,r){var n;return"Function"===this.getType(t)?(r=t,t={}):"Function"!==this.getType(r)&&(r=(n=[]).push.bind(n)),(t=this.assign({},this.STANDARD_ENCODE_OPTS,t)).skip>0&&(e=e.slice(t.skip)),("Array"===this.getType(e[0])?this.encodeArrays:this.encodeObjects)(e,t,r)&&(!(n.length>0)||n.join(t.newline))}};e("CsvParser",i("CsvParser")(n=function(){function e(){this._csvTables={},this._csvTableForArr={},this._tableCast={},this._tableComment={}}var t=e.prototype;return t.addTable=function(e,t,r){if(!this._csvTables[e]||r){var n={},i=[];return o.parse(t,{header:!0,cast:"any"},(function(e,t){n[e[t]]=e,i.push(e)})),this._tableCast[e]=o.opts.cast,this._tableComment[e]=o.opts.comment,this._csvTables[e]=n,this._csvTableForArr[e]=i,i}},t.getTableArr=function(e){return this._csvTableForArr[e]},t.getTable=function(e){return this._csvTables[e]},t.queryOne=function(e,t,r){var n=this.getTable(e);if(!n)return null;if(!t)return n[r];for(var i in n)if(n.hasOwnProperty(i)&&n[i][t]===r)return n[i]},t.queryByID=function(e,t){return this.queryOne(e,null,t)},t.queryAll=function(e,t,r){var n=this.getTable(e);if(!n||!t)return null;var i={};for(var s in n)n.hasOwnProperty(s)&&n[s][t]===r&&(i[s]=n[s]);return i},t.queryIn=function(e,t,r){var n=this.getTable(e);if(!n||!t)return null;for(var i={},s=Object.keys(n),u=s.length,a=0;a<u;a++){var o=n[s[a]];r.indexOf(o[t])>-1&&(i[s[a]]=o)}return i},t.queryByCondition=function(e,t){if(t.constructor!==Object)return null;var r=this.getTable(e);if(!r)return null;for(var n={},i=Object.keys(r),s=i.length,u=Object.keys(t),a=u.length,o=0;o<s;o++){for(var l=r[i[o]],c=!0,h=0;h<a;h++){var f=u[h];c=c&&t[f]===l[f]&&!n[i[o]]}c&&(n[i[o]]=l)}return n},t.queryOneByCondition=function(e,t){if(t.constructor!==Object)return null;var r=this.getTable(e);if(!r)return null;var n=Object.keys(t),i=n.length;for(var s in r){for(var u=r[s],a=!0,o=0;o<i;o++){var l=n[o];a=a&&t[l]===u[l]}if(a)return u}return null},e}())||n);t._RF.pop()}}}));
- System.register("chunks:///_virtual/DateTime.ts",["cc"],(function(e){var t,r;return{setters:[function(e){t=e.cclegacy,r=e._decorator}],execute:function(){var a;t._RF.push({},"8cc67MqISNOA5U7a2gprve+","DateTime",void 0);var n=r.ccclass,o=(r.property,e("DateFormat",function(e){return e.Y="year",e.YM="year-month",e.YMD="year-month-day",e.YMDH="year-month-day-hour",e.YMDHM="year-month-day-hour-minute",e.YMDHMS="year-month-day-hour-minute-second",e}({})));e("DateTime",n("DateTime")(a=function(){function e(){}return e.formatDate=function(e,t,r){void 0===t&&(t=o.YMD),void 0===r&&(r=!1);var a="string"==typeof e?new Date(e):e;if(isNaN(a.getTime()))throw new Error("Invalid date input");var n={year:r?a.getUTCFullYear():a.getFullYear(),month:String((r?a.getUTCMonth():a.getMonth())+1).padStart(2,"0"),day:String(r?a.getUTCDate():a.getDate()).padStart(2,"0"),hours:String(r?a.getUTCHours():a.getHours()).padStart(2,"0"),minutes:String(r?a.getUTCMinutes():a.getMinutes()).padStart(2,"0"),seconds:String(r?a.getUTCSeconds():a.getSeconds()).padStart(2,"0")};switch(t){case o.Y:return String(n.year);case o.YM:return n.year+"-"+n.month;case o.YMD:return n.year+"-"+n.month+"-"+n.day;case o.YMDH:return n.year+"-"+n.month+"-"+n.day+" "+n.hours;case o.YMDHM:return n.year+"-"+n.month+"-"+n.day+" "+n.hours+":"+n.minutes;case o.YMDHMS:return n.year+"-"+n.month+"-"+n.day+" "+n.hours+":"+n.minutes+":"+n.seconds;default:throw new Error("Unsupported format")}},e.getFriendlyTime=function(e){var t=new Date,r="string"==typeof e?new Date(e):e,a=Math.floor((t.getTime()-r.getTime())/1e3);return a<60?"刚刚":a<3600?Math.floor(a/60)+"分钟前":a<86400?Math.floor(a/3600)+"小时前":a<172800?"昨天":a<2592e3?Math.floor(a/86400)+"天前":a<31536e3?Math.floor(a/2592e3)+"个月前":Math.floor(a/31536e3)+"年前"},e.isSameDay=function(e,t){var r="string"==typeof e?new Date(e):e,a="string"==typeof t?new Date(t):t;return r.getFullYear()===a.getFullYear()&&r.getMonth()===a.getMonth()&&r.getDate()===a.getDate()},e.getDaysBetween=function(e,t){var r="string"==typeof e?new Date(e):e,a="string"==typeof t?new Date(t):t,n=Math.abs(a.getTime()-r.getTime());return Math.floor(n/864e5)},e.isFutureDate=function(e){var t;if(t="string"==typeof e?e.includes("T")?new Date(e):new Date(e+"T00:00:00Z"):"number"==typeof e?new Date(e):e,isNaN(t.getTime()))throw new Error("Invalid date input");var r=new Date;r.setUTCHours(0,0,0,0);var a=new Date(t);return a.setUTCHours(0,0,0,0),a>r},e}())||a);t._RF.pop()}}}));
- System.register("chunks:///_virtual/en.ts",["cc","./LanguageData.ts"],(function(){var e,u;return{setters:[function(u){e=u.cclegacy},function(e){u=e.default}],execute:function(){e._RF.push({},"c2ee7NzXEdG1Z3CXlfjoO8M","en",void 0),u.languages.en={main:{"加载中...":"loading...","关卡任务:%{value}":"Task: %{value}","关卡任务 %{value}":"Task %{value}","%{value}级解锁":"Level%{value}","凑齐道具不足":"Insufficient items","未找到合适物品":"No suitable item found","冰冻中":"Frozen","体力已满":"Stamina full","已满":"Full","购买成功":"Purchase successful","关卡%{value}通过":"Level %{value} completed"}},e._RF.pop()}}}));
- System.register("chunks:///_virtual/Enemy.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Game.ts","./Player.ts","./Utils.ts","./ResUtil.ts","./MsgHints.ts","./UserData.ts","./AutoBind.ts","./BaseExp.ts","./GunBase.ts","./PoolManager.ts","./AudioManager.ts","./Constants.ts","./GameEnums.ts"],(function(e){var t,i,n,s,a,o,r,l,h,u,c,d,p,y,m,f,g,v,w,k,b,_,P,H,x,D,S,C,N,T;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.inheritsLoose,n=e.initializerDefineProperty,s=e.assertThisInitialized,a=e.createClass,o=e.asyncToGenerator,r=e.regeneratorRuntime},function(e){l=e.cclegacy,h=e._decorator,u=e.ProgressBar,c=e.Node,d=e.Collider,p=e.Vec3,y=e.UIOpacity,m=e.Label,f=e.tween,g=e.SkeletalAnimation},function(e){v=e.Game},function(e){w=e.Player},function(e){k=e.Utils},function(e){b=e.ResUtil},function(e){_=e.default},function(e){P=e.userIns},function(e){H=e.autoBind},function(e){x=e.BaseExp},function(e){D=e.GunBase},function(e){S=e.PoolManager},function(e){C=e.audioMgr},function(e){N=e.Constants},function(e){T=e.GameEnums}],execute:function(){var I,A,B,F,M,G,z,R,E,O,L,U,W,j,K,J,V;l._RF.push({},"5abcfOgUyRGS6wKMns5W55C","Enemy",void 0);var q=h.ccclass;h.property,e("Enemy",(I=q("Enemy"),A=H({type:u,tooltip:"敌人血量"}),B=H({type:c,tooltip:"敌人受伤节点"}),F=H({type:d,tooltip:"敌人头部"}),M=H({type:d,tooltip:"敌人身体"}),G=H({type:d,tooltip:"坦克身体"}),z=H({type:c,tooltip:"坦克行走"}),R=H({type:c,tooltip:"坦克射击"}),I((L=t((O=function(e){function t(){for(var t,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a))||this,n(t,"hpBar",L,s(t)),n(t,"hurt_num",U,s(t)),n(t,"headCollider",W,s(t)),n(t,"bodyCollider",j,s(t)),n(t,"tankCollider",K,s(t)),n(t,"tank_walk",J,s(t)),n(t,"tank_shoot",V,s(t)),t.heavySmoke=null,t.skeletalAnim=null,t.enemyNode=null,t.defaultSpeed=0,t.speed=0,t.isDead=!1,t.gun=null,t.shieldNode=null,t._shieldHp=0,t.goldCount=0,t.player=null,t.moveDir=new p,t.curHP=0,t.originHP=0,t.escape=!1,t.data=null,t.isCanLock=!1,t.isFire=!1,t.isShotHead=!1,t.pathList=[],t.curMoveIndex=0,t.angle=0,t.isAlert=!1,t.raycastResults=null,t}i(t,e);var l=t.prototype;return l.start=function(){this.hurt_num.active=!1},l.init=function(){var e=o(r().mark((function e(t){var i,n,s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.data=t,this.player=v.I.player.getComponent(w),i=this.isTank(),this.enemyNode=this.node.getChildByName(t.prb_name),i?this.tankCollider.args=[T.enemyPartType.tank,this]:(this.headCollider.args=[T.enemyPartType.head,this],this.bodyCollider.args=[T.enemyPartType.body,this],this.skeletalAnim=this.enemyNode.getComponent(g),this.skeletalAnim&&(null==(n=this.skeletalAnim)||n.play(T.enemyAnimType.idle))),this.enemyNode){e.next=8;break}return _.show("不存在:"+JSON.stringify(t)),e.abrupt("return");case 8:return this.isShotHead=!1,this.isAlert=!1,this.data=this.enemyData(t),this.isDead=!1,this.escape=!1,this.curHP=this.originHP=t.hp,s=3*t.speed,this.speed=s,this.defaultSpeed=s,e.next=19,this.createGun();case 19:this.hpBar.progress=1,this.hpBar.node.active=!1,this.endFire();case 22:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),l.enemyData=function(e){if(e){var t=e.weapon_id_1,i=k.clone(e).hp,n=P.enemyWeaponTable.find((function(e){return e.gun_id==t})),s=e.weapon_id_2;if(0!=s){var a=P.enemyWeaponTable.find((function(e){return e.gun_id==s}));a&&a.hp>0&&(e.hp+=i+a.shield_hp)}return Object.assign(e,n)}},l.createGun=function(){var e=o(r().mark((function e(){var t,i,n,s,a,o,l,h;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.removeGun(),t=this.enemyNode.getChildByName("gun_pos"),i=this.data.weapon_id_1,n=P.enemyWeaponTable.find((function(e){return e.gun_id==i})),e.next=6,b.loadRes("enemy/gun/"+n.gun_prb_name);case 6:if(s=e.sent,this.gun=s.getComponent(D),s.active=!0,s.parent=t.parent,s.worldPosition=t.worldPosition.clone(),s.eulerAngles=t.eulerAngles.clone(),this.gun.init(this.data,this),0==(a=this.data.weapon_id_2)){e.next=27;break}return o=P.enemyWeaponTable.find((function(e){return e.gun_id==a})),e.next=18,b.loadRes("enemy/gun/"+o.gun_prb_name,this.enemyNode);case 18:l=e.sent,h=this.enemyNode.getChildByName("shield_pos"),l.active=!0,l.parent=h.parent,l.worldPosition=h.worldPosition.clone(),l.eulerAngles=h.eulerAngles.clone(),l.children[0].getComponent(d).args=[T.enemyPartType.shield,this],this.shieldNode=l,this.shieldHp=o.shield_hp;case 27:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),l.removeGun=function(){this.gun&&(this.gun.endFire(),S.putNode(this.gun.node),this.gun=null),this.isFire=!1,this.removeShield()},l.removeShield=function(){this.shieldNode&&(S.putNode(this.shieldNode),this.shieldNode=null),this._shieldHp=0},l.tankHeavySmoke=function(){var e=this;this.isTank()&&(this.heavySmoke||this.curHP<.3*this.data.hp&&b.playParticle("effects/Prefabs/HeavySmoke",0,new p(.2,.2,.2),(function(t){t.parent=e.node.parent,t.worldPosition=e.node.worldPosition.clone(),t.active=!0,e.heavySmoke=t})))},l.subHP=function(e,t){var i=this;if(!(v.I.isPause||this.isDead||null==e||this.curHP<=0)){if(this.hpBar.node.active=!0,this.scheduleOnce((function(){i.hpBar&&(i.hpBar.node.active=!1)}),.8),this.curHP-=e,this.tankHeavySmoke(),e>this.originHP)return this.escape=!1,this.showHurt(k.numberToString(e)),void this.recycle();this.curHP<=0&&!this.isDead?(this.escape=!1,this.recycle()):(this.hpBar.progress=this.curHP/this.originHP,this.showHurt(k.numberToString(e)))}},l.walk=function(e){if(!(e.length<=0)){this.curMoveIndex=0,this.pathList=e;var t=1/this.data.speed;this.isTank()?(this.tank_walk.active=!0,this.tank_shoot.active=!1):b.playSkeletalAnim(this.skeletalAnim,T.enemyAnimType.walk,t),this.updateDir(e[0].clone())}},l.beginFire=function(){this.player&&!this.player.isDead&&this.gun&&(this.isFire=!0,this.gun.fire())},l.endFire=function(){this.gun.endFire(),this.isFire=!1},l.recycle=function(e){var t=this;if(void 0===e&&(e=!0),this.node&&!this.isDead){e&&(this.isTank()?C.playOneShot(N.audios.Tank_Explosion):C.playOneShot(this.isShotHead?N.audios.head_shot:N.audios.enemy_die)),this.removeGun(),this.curHP=0;var i=2;this.isTank()?(b.playParticle("effects/Prefabs/TankBoom",3,new p(.1,.1,.1),(function(e){e.parent=t.node.parent,e.worldPosition=t.node.worldPosition.clone(),e.active=!0}),(function(){t.heavySmoke&&t.heavySmoke.parent&&(S.putNode(t.heavySmoke),t.heavySmoke=null)})),this.node.active=!1,i=3):b.playSkeletalAnim(this.skeletalAnim,T.enemyAnimType.die),this.isDead=!0,this.hpBar.node.active=!1;var n=function(e){this.node.getComponent(y).opacity=255,S.putNode(this.node),e&&v.I.buildEnemys.subtractEnemy(this)}.bind(this,e);this.unschedule(n),this.scheduleOnce(n,i)}},l.showHurt=function(e){var t=this;if(!v.I.isGameOver&&!this.isDead){this.raycastResults&&b.playParticle("effects/Prefabs/blood",1,new p(.35,.35,.35),(function(e){e.active=!0,e.setParent(t.raycastResults.collider.node.parent),e.worldPosition=t.raycastResults.hitPoint.add(t.raycastResults.hitNormal.multiplyScalar(.01)),e.forward=t.raycastResults.hitNormal.multiplyScalar(-1)}));var i=S.getNode(this.hurt_num,this.hurt_num.parent),n=i.getComponent(m);n.color=k.hexColor(this.isShotHead?"#F51414":"#FFFFFF"),n.string=e;var s=this.hpBar.node.position.clone();i.position=s;var a=this.hurt_num.scale.clone();i.scale=a,i.getComponent(y).opacity=255;var o=[],r=k.getRandomFloat(0,1)>.5;o=r?[new p(-.1+s.x,.3+s.y),new p(-.4+s.x,.4+s.y),new p(-.6+s.x,s.y)]:[new p(.1+s.x,.3+s.y),new p(.4+s.x,.4+s.y),new p(.6+s.x,s.y)],i.position=new p(o[2].x,o[2].y-.8,s.z);f(i).parallel(f().to(.65,{scale:new p(.4*a.x,.4*a.y,.4*a.z)}),f().to(.65,o[2],{onUpdate:function(e,t){if(i.parent){var n=(a=t,r=o[0],l=o[1],h=o[2],u=(1-a)*(1-a)*r.x+2*a*(1-a)*l.x+a*a*h.x,c=(1-a)*(1-a)*r.y+2*a*(1-a)*l.y+a*a*h.y,new p(u,c,s.z));i.position=new p(n.x,n.y-.8,s.z)}var a,r,l,h,u,c}})).call(function(){var e=this;f(this.getComponent(y)).to(.15,{opacity:0}).call((function(){S.putNode(e)})).start()}.bind(i)).start()}},l.calculateIsHit=function(){var e=this.getDifficultyData(),t=Math.random();return!(e.precision<0)&&(e.precision>1||t<=e.precision)},l.addDiffHP=function(){if(this.node&&!this.isDead&&!v.I.isGameOver&&!this.isDead){var e=this.getDifficultyData();e.hp_ratio>0&&(this.curHP+=this.originHP*e.hp_ratio)}},l.getDifficultyData=function(){var e=P.getCurLevelData().precision,t=e,i={precision:e,hp_ratio:0,reaction_time:0},n=Math.floor(v.I.buildEnemys.getCurKillNum()/3);i.precision+=.01*n;return P.passNum>3?(i.precision+=.05*P.passNum,i.precision=Math.min(t,.9),i.hp_ratio+=.15*P.passNum,i.hp_ratio=Math.min(i.hp_ratio,1)):(i.precision-=.05*P.passNum,i.precision=Math.max(i.precision,.1),i.reaction_time+=.5),i},l.update=function(e){if(!v.I.isGameOver&&!v.I.isPause&&this.data&&!this.isDead){var t=this.pathList[this.curMoveIndex];if(t){var i=this.node.worldPosition.clone(),n=t.clone().subtract(i),s=new p;p.subtract(s,t,i);var a=s.length(),o=this.speed*e;if(o>0){var r=i.add(n.normalize().multiplyScalar(o));this.node.worldPosition=r;var l=this.curMoveIndex==this.pathList.length-1?v.I.player.node.worldPosition:this.pathList[this.curMoveIndex+1];this.updateDir(l)}o>a&&(1!=this.curMoveIndex||v.I.buildEnemys.isOpenDoor||(v.I.map.openDoor(),v.I.buildEnemys.isOpenDoor=!0),this.curMoveIndex++,this.curMoveIndex>=this.pathList.length&&(this.beginFire(),this.isTank()?(this.tank_walk.active=!1,this.tank_shoot.active=!0):b.playSkeletalAnim(this.skeletalAnim,T.enemyAnimType.shoot,this.data.atk_speed),this.updateDir(v.I.player.node.worldPosition)))}}},l.updateDir=function(e){var t=this.node.worldPosition.clone(),i=p.subtract(new p,t,e);i.normalize();var n=this.node.forward.clone();p.slerp(n,n,i,.15),this.node.forward=n},l.isTank=function(){return this.data.id==T.enemyType.tank},a(t,[{key:"shieldHp",get:function(){return this._shieldHp},set:function(e){this._shieldHp=e,this._shieldHp<=0&&this.removeShield()}}]),t}(x)).prototype,"hpBar",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=t(O.prototype,"hurt_num",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=t(O.prototype,"headCollider",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=t(O.prototype,"bodyCollider",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=t(O.prototype,"tankCollider",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=t(O.prototype,"tank_walk",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=t(O.prototype,"tank_shoot",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=O))||E));l._RF.pop()}}}));
- System.register("chunks:///_virtual/EventEmitter.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Singleton.ts"],(function(t){var e,n,r,i;return{setters:[function(t){e=t.inheritsLoose},function(t){n=t.cclegacy,r=t._decorator},function(t){i=t.Singleton}],execute:function(){var s;n._RF.push({},"eef30aCO4hI0ZvvAJvZaGOD","EventEmitter",void 0);var c=r.ccclass,o=(r.property,c("EventEmitter")(s=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).eventHash={},e}e(n,t);var r=n.prototype;return r.clearAll=function(){console.log("清空所有事件监听"),this.eventHash={}},r.register=function(t,e,n){this.eventHash[e]||(this.eventHash[e]=[]),this.eventHash[e].some((function(e){return e.func===n&&e.target===t}))||this.eventHash[e].push({func:n,target:t})},r.unregister=function(t,e){var n=this.eventHash[e];if(n&&n.length>0)for(var r=n.length-1;r>=0;r--)n[r].target===t&&n.splice(r,1)},r.dispatch=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=this.eventHash[t];i&&i.length>0&&i.slice().forEach((function(e){try{e.func.apply(e.target,n)}catch(e){console.error("事件["+t+"]处理错误:",e)}}))},n}(i))||s);t("eventEmitter",o.ins());n._RF.pop()}}}));
- System.register("chunks:///_virtual/FollowCamera2D.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,r,o,i,a,n,l,c,s,u;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.inheritsLoose,o=e.initializerDefineProperty,i=e.assertThisInitialized},function(e){a=e.cclegacy,n=e._decorator,l=e.v3,c=e.Node,s=e.Camera,u=e.Component}],execute:function(){var p,f,d,h,m,g;a._RF.push({},"39574FqrINNe7Tcwcsr+YQE","FollowCamera2D",void 0);var y=n.ccclass,v=n.property,w=l();e("FollowCamera2D",(p=y("FollowCamera2D"),f=v(c),p((m=t((h=function(e){function t(){for(var t,r=arguments.length,a=new Array(r),n=0;n<r;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,o(t,"target",m,i(t)),o(t,"offset",g,i(t)),t._camera=void 0,t}r(t,e);var a=t.prototype;return a.start=function(){this._camera=this.node.getComponent(s)},a.lateUpdate=function(e){this.target.getWorldPosition(w),w.add(this.offset),this.node.worldPosition=w},t}(u)).prototype,"target",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=t(h.prototype,"offset",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return l()}}),d=h))||d));a._RF.pop()}}}));
- System.register("chunks:///_virtual/FrameAnimation.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Game.ts"],(function(i){var t,n,r,e,s,a,l,p,o,h;return{setters:[function(i){t=i.applyDecoratedDescriptor,n=i.inheritsLoose,r=i.initializerDefineProperty,e=i.assertThisInitialized},function(i){s=i.cclegacy,a=i._decorator,l=i.SpriteFrame,p=i.Sprite,o=i.Component},function(i){h=i.Game}],execute:function(){var u,c,y,F,m;s._RF.push({},"dba31tmjWBBjISTFQZgGviW","FrameAnimation",void 0);var d=a.ccclass,S=a.property;i("FrameAnimation",(u=d("FrameAnimation"),c=S({type:[l],tooltip:"播放的帧动画类"}),u((m=t((F=function(i){function t(){for(var t,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return t=i.call.apply(i,[this].concat(s))||this,r(t,"playSFArray",m,e(t)),t.duration=.1,t.endFunc=null,t.playIdxFunc=null,t.idx=0,t.isPlayAnim=!1,t.playTime=0,t.loop=!0,t.currnSprite=null,t.playSFs=[],t}n(t,i);var s=t.prototype;return s.play=function(i,t,n,r,e){void 0===i&&(i=this.duration),void 0===t&&(t=!0),void 0===n&&(n=function(){}),void 0===r&&(r=function(){}),void 0===e&&(e=0),!t&&this.isPlayAnim||(this.playSFArray.length>0&&(this.playSFs=this.playSFArray),this.currnSprite||(this.currnSprite=this.node.getComponent(p)),this.playSFs.length>0?(this.isPlayAnim=!0,this.playTime=0,this.loop=t,this.duration=i/this.playSFs.length,this.endFunc=n,this.idx=e,this.currnSprite.spriteFrame=this.playSFs[0],this.playIdxFunc=r):this.isPlayAnim=!1)},s.update=function(i){if(this.isPlayAnim&&this.currnSprite&&this.currnSprite.node.active){var t=h.I;if(!t||!t.isPause){this.playTime+=i;var n=Math.floor(this.playTime/this.duration);if(this.loop)n>=this.playSFs.length&&(n-=this.playSFs.length,this.playTime-=this.duration*this.playSFs.length),this.currnSprite.spriteFrame=this.playSFs[n];else{var r;if(n>=this.playSFs.length)this.isPlayAnim=!1,null==(r=this.endFunc)||r.call(this);else this.currnSprite.spriteFrame=this.playSFs[n];this.playIdxFunc&&this.idx==n&&this.playIdxFunc()}}}},t}(o)).prototype,"playSFArray",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),y=F))||y));s._RF.pop()}}}));
- System.register("chunks:///_virtual/FreeCamera.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,i,o,s,n,r,h,a,p,d,_,c,l,u,y;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.inheritsLoose,o=e.initializerDefineProperty,s=e.assertThisInitialized},function(e){n=e.cclegacy,r=e._decorator,h=e.Vec2,a=e.Vec3,p=e.Quat,d=e.input,_=e.Input,c=e.game,l=e.KeyCode,u=e.v2,y=e.Component}],execute:function(){var E,v,K,Y,f,S,m,k;n._RF.push({},"2b35dHdg+tFjZ6hoX5bj5+9","FreeCamera",void 0);var M=r.ccclass,D=r.property,T=new h,P=new h,A=new a,g=new p,w=new a,W=new a;e("FreeCamera",(E=M("FreeCamera"),v=D({slide:!0,range:[.05,.5,.01]}),E((f=t((Y=function(e){function t(){for(var t,i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return t=e.call.apply(e,[this].concat(n))||this,o(t,"moveSpeed",f,s(t)),o(t,"moveSpeedShiftScale",S,s(t)),o(t,"damp",m,s(t)),o(t,"rotateSpeed",k,s(t)),t._euler=new a,t._velocity=new a,t._position=new a,t._speedScale=1,t._eulerP=new a,t.keys=[],t.moveDir=new a,t.key2dirMap=null,t}i(t,e);var n=t.prototype;return n.onLoad=function(){d.on(_.EventType.MOUSE_WHEEL,this.onMouseWheel,this),d.on(_.EventType.TOUCH_START,this.onTouchStart,this),d.on(_.EventType.TOUCH_MOVE,this.onTouchMove,this),d.on(_.EventType.TOUCH_END,this.onTouchEnd,this),a.copy(this._euler,this.node.eulerAngles),a.copy(this._position,this.node.getPosition()),a.copy(this._eulerP,this.node.eulerAngles),d.on(_.EventType.KEY_DOWN,this.onKeyDown,this),d.on(_.EventType.KEY_UP,this.onKeyUp,this)},n.onDestroy=function(){d.off(_.EventType.MOUSE_WHEEL,this.onMouseWheel,this),d.off(_.EventType.TOUCH_START,this.onTouchStart,this),d.off(_.EventType.TOUCH_MOVE,this.onTouchMove,this),d.off(_.EventType.TOUCH_END,this.onTouchEnd,this),d.off(_.EventType.KEY_DOWN,this.onKeyDown,this),d.off(_.EventType.KEY_UP,this.onKeyUp,this)},n.update=function(e){var t=Math.min(e/this.damp,1);a.transformQuat(A,this._velocity,this.node.rotation),a.scaleAndAdd(this._position,this._position,A,this.moveSpeed*this._speedScale),a.lerp(A,this.node.getPosition(),this._position,t),this.node.setPosition(A),this.moveDir.lengthSqr()&&(a.transformQuat(w,a.FORWARD,this.node.rotation),w.normalize(),a.cross(W,w,a.UP),W.normalize(),a.scaleAndAdd(this._position,this._position,w,this.moveSpeed*this._speedScale*this.moveDir.z),a.lerp(A,this.node.getPosition(),this._position,t),this.node.setPosition(A),a.scaleAndAdd(this._position,this._position,W,this.moveSpeed*this._speedScale*this.moveDir.x),a.lerp(A,this.node.getPosition(),this._position,t),this.node.setPosition(A),a.scaleAndAdd(this._position,this._position,a.UP,this.moveSpeed*this._speedScale*this.moveDir.y),a.lerp(A,this.node.getPosition(),this._position,t),this.node.setPosition(A)),p.fromEuler(g,this._eulerP.x,this._eulerP.y,this._eulerP.z),p.slerp(g,this.node.rotation,g,t),this.node.setWorldRotationFromEuler(this._eulerP.x,this._eulerP.y,this._eulerP.z)},n.onMouseWheel=function(e){var t=-e.getScrollY()*this.moveSpeed*.1;a.transformQuat(A,a.UNIT_Z,this.node.rotation),a.scaleAndAdd(this._position,this.node.position,A,t)},n.onTouchStart=function(e){c.canvas.requestPointerLock&&c.canvas.requestPointerLock()},n.onTouchMove=function(e){e.getStartLocation(T),T.x,c.canvas.width,e.getDelta(P),this._eulerP.y-=P.x*this.rotateSpeed*.1,this._eulerP.x+=P.y*this.rotateSpeed*.1},n.onTouchEnd=function(e){document.exitPointerLock&&document.exitPointerLock(),e.getStartLocation(T),T.x<.4*c.canvas.width&&(this._velocity.x=0,this._velocity.z=0)},n.onKeyDown=function(e){var t=e.keyCode;t!=l.KEY_A&&t!=l.KEY_S&&t!=l.KEY_D&&t!=l.KEY_W||-1==this.keys.indexOf(t)&&(this.keys.push(t),this.updateDirection()),t==l.KEY_Q?this.moveDir.y=-1:t==l.KEY_E&&(this.moveDir.y=1)},n.onKeyUp=function(e){var t=e.keyCode;if(t==l.KEY_A||t==l.KEY_S||t==l.KEY_D||t==l.KEY_W){var i=this.keys.indexOf(t);-1!=i&&(this.keys.splice(i,1),this.updateDirection())}t!=l.KEY_Q&&t!=l.KEY_E||(this.moveDir.y=0)},n.updateDirection=function(){null==this.key2dirMap&&(this.key2dirMap={},this.key2dirMap[0]=u(0,0),this.key2dirMap[l.KEY_A]=u(-1,0),this.key2dirMap[l.KEY_D]=u(1,0),this.key2dirMap[l.KEY_W]=u(0,1),this.key2dirMap[l.KEY_S]=u(0,-1),this.key2dirMap[1e3*l.KEY_A+l.KEY_W]=this.key2dirMap[1e3*l.KEY_W+l.KEY_A]=u(-1,1),this.key2dirMap[1e3*l.KEY_D+l.KEY_W]=this.key2dirMap[1e3*l.KEY_W+l.KEY_D]=u(1,1),this.key2dirMap[1e3*l.KEY_A+l.KEY_S]=this.key2dirMap[1e3*l.KEY_S+l.KEY_A]=u(-1,-1),this.key2dirMap[1e3*l.KEY_D+l.KEY_S]=this.key2dirMap[1e3*l.KEY_S+l.KEY_D]=u(1,-1),this.key2dirMap[1e3*l.KEY_A+l.KEY_D]=this.key2dirMap[l.KEY_D],this.key2dirMap[1e3*l.KEY_D+l.KEY_A]=this.key2dirMap[l.KEY_A],this.key2dirMap[1e3*l.KEY_W+l.KEY_S]=this.key2dirMap[l.KEY_S],this.key2dirMap[1e3*l.KEY_S+l.KEY_W]=this.key2dirMap[l.KEY_W]);var e=this.keys[this.keys.length-1]||0,t=this.keys[this.keys.length-2]||0,i=this.key2dirMap[1e3*t+e];this.moveDir.x=i.x,this.moveDir.z=i.y},t}(y)).prototype,"moveSpeed",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),S=t(Y.prototype,"moveSpeedShiftScale",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5}}),m=t(Y.prototype,"damp",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.2}}),k=t(Y.prototype,"rotateSpeed",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),K=Y))||K));n._RF.pop()}}}));
- System.register("chunks:///_virtual/Game.ts",["./rollupPluginModLoBabelHelpers.js","cc","./GMap.ts","./Player.ts","./Utils.ts","./Logger.ts","./ResUtil.ts","./UserData.ts","./BuildEnemys.ts","./AutoBind.ts","./BaseExp.ts","./UIManager.ts","./Constants.ts"],(function(e){var t,n,a,i,o,r,s,l,u,p,c,m,d,y,g,h,f,v,C,b,E,L,P,_;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.inheritsLoose,a=e.initializerDefineProperty,i=e.assertThisInitialized,o=e.createClass},function(e){r=e.cclegacy,s=e._decorator,l=e.TextureCube,u=e.Node,p=e.Color,c=e.director,m=e.DirectionalLight,d=e.Camera},function(e){y=e.GMap},function(e){g=e.Player},function(e){h=e.Utils},function(e){f=e.Logger},function(e){v=e.ResUtil},function(e){C=e.userIns},function(e){b=e.BuildEnemys},function(e){E=e.autoBind},function(e){L=e.BaseExp},function(e){P=e.uiMgr},function(e){_=e.Constants}],execute:function(){var G,M,B,D,I,w,U,x,z,O;r._RF.push({},"7cbce+aOVZL972hLyFS15iz","Game",void 0);var R=s.ccclass,N=s.property;e("Game",(G=R("Game"),M=N(l),B=N(l),D=E({type:u,tooltip:"map节点的位置"}),G(((O=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t=e.call.apply(e,[this].concat(o))||this,a(t,"dayCube",U,i(t)),t.dayColor=p.WHITE,a(t,"nightCube",x,i(t)),t.nightColor=new p(0,0,0,255),a(t,"map_pos",z,i(t)),t.isPause=!1,t._isGameOver=!1,t.map=null,t.buildEnemys=null,t.player=null,t.camera=null,t.canvas=null,t}n(t,e);var r=t.prototype;return r.start=function(){t.I=this,this.canvas=this.node.parent.getChildByName("Canvas"),this.canvas.active=!0,this.map_pos.active=!0,this.loadMap()},r.nextLevel=function(){var e=this;C.data.level+=1,this.loadMap((function(){e.isGameOver=e.isPause=!1,P.getPageComponent(_.mainUIs.main).loadData(),e.player.restart(),e.buildEnemys.loadLevelEnemys()}))},r.restart=function(){var e=this;this.loadMap((function(){e.player.restart(),e.buildEnemys.loadLevelEnemys()}))},r.loadMap=function(e){var t=this;void 0===e&&(e=null);var n=C.getCurLevelData();c.getScene().globals.skybox.envmap=0==n.night?this.dayCube:this.nightCube;var a=n.map;if(!h.isNull(a)){f.log("加载地图:"+a),v.loadRes("map/"+a).then((function(a){t.map&&(t.map.node.removeFromParent(),t.map.node.destroy(),t.map=null),a.getChildByName("Main Light").getComponent(m).color=0==n.night?t.dayColor:t.nightColor,a.parent=t.map_pos.parent,a.worldPosition=t.map_pos.worldPosition,t.map=a.getComponent(y),t.map.resetData(),t.buildEnemys=t.map.getComponent(b),t.player=t.map.getComponentInChildren(g),t.player.setPlayerPos();var i=h.findName(a,"mainCamera");t.camera=i.getComponent(d),null==e||e()}));var i=C.levelsTable.find((function(e){return e.id==n.id+1}));i&&a!=i.map&&v.loadRes("map/"+i.map)}},r.gameEnd=function(){this.buildEnemys.recycle()},o(t,[{key:"isGameOver",get:function(){return this._isGameOver},set:function(e){e&&this.gameEnd(),this._isGameOver=e}}]),t}(L)).I=void 0,U=t((w=O).prototype,"dayCube",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=t(w.prototype,"nightCube",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=t(w.prototype,"map_pos",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=w))||I));r._RF.pop()}}}));
- System.register("chunks:///_virtual/GameEnums.ts",["cc"],(function(e){var i;return{setters:[function(e){i=e.cclegacy}],execute:function(){i._RF.push({},"e0d3785y/hDyrkH8r5VRVwn","GameEnums",void 0);var r=e("GameEnums",(function(){}));r.enemyPartType={head:"headCollider",body:"bodyCollider",tank:"tankCollider",shield:"shieldCollider",sundries:"sundriesCollider"},r.enemyAnimType={idle:"idle",die:"die",shoot:"shoot",walk:"walk"},r.playerAnimType={idle:"idle",die:"die",reload:"reload"},r.enemyType={soldierPistol:10001,sniperSoldier:10002,shieldSoldier:10003,snipeCaptain:20001,scatterCaptain:20002,tank:20003,generalPistol:20004},r.enemyWeaponType={pistol:1001,sniper:1002,shield:1003,scatter:1005,tankPao:1006},r.palyerWeaponType={kar98k:100010,m24:100011,awm:100012,barrett:100013,m416:100014,akm:100015,vss:100016,sks:100017},r.weaponCategory={sniper:1,rifle:2,dmr:3},i._RF.pop()}}}));
- System.register("chunks:///_virtual/GMap.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BaseExp.ts","./AutoBind.ts","./Utils.ts"],(function(n){var t,e,i,r,o,a,s,u,c,l,h,p,d;return{setters:[function(n){t=n.applyDecoratedDescriptor,e=n.inheritsLoose,i=n.initializerDefineProperty,r=n.assertThisInitialized},function(n){o=n.cclegacy,a=n._decorator,s=n.Vec3,u=n.Node,c=n.tween,l=n.easing},function(n){h=n.BaseExp},function(n){p=n.autoBind},function(n){d=n.Utils}],execute:function(){var f,m,b,y,P,g,_,A,v,w,V,z,R,E,x;o._RF.push({},"5d55d9VPhhHtoESZOqLjFhK","GMap",void 0);var M=a.ccclass,F=(a.property,n("MPos",(function(){this.pos=s.ZERO,this.isVacancy=!1}))),B=n("AmbushPoint",(function(){this.standPosArr=[],this.roadPosArr=[],this.ambushPosArr=[],this.escapePosArr=[],this.isVacancy=!1}));n("GMap",(f=M("GMap"),m=p({type:u,tooltip:"埋伏点配置节点"}),b=p({type:u,tooltip:"敌人出生区域"}),y=p({type:u,tooltip:"进门内线,用于敌人是否在门内"}),P=p({type:u,tooltip:"进门外线,用于敌人是否在门外"}),g=p({type:u,tooltip:"进去的大门"}),_=p({type:u,tooltip:"杂物节点,处理连环爆炸"}),f((w=t((v=function(n){function t(){for(var t,e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];return t=n.call.apply(n,[this].concat(o))||this,i(t,"ambush_points",w,r(t)),i(t,"enemy_born_area",V,r(t)),i(t,"miidle_inline",z,r(t)),i(t,"miidle_outline",R,r(t)),i(t,"doors",E,r(t)),i(t,"sundries",x,r(t)),t.ambushPoints=[],t.game_speed=1,t}e(t,n);var o=t.prototype;return o.start=function(){var n=this.ambush_points.children.flatMap((function(n){return n.children}));[this.enemy_born_area,this.miidle_inline,this.miidle_outline].concat(n).forEach((function(n){n.active=!1}))},o.openDoor=function(){var n=this.doors.children[0];n&&c(n).delay(.2).to(.7,{eulerAngles:new s(90,0,0)},{easing:l.elasticOut,onUpdate:function(n,t){n.setRotationFromEuler(n.eulerAngles)}}).start();var t=this.doors.children[1];t&&c(t).to(.7,{eulerAngles:new s(90,0,0)},{easing:l.elasticOut,onUpdate:function(n,t){n.setRotationFromEuler(n.eulerAngles)}}).start()},o.multiplySpeed=function(){return this.game_speed},o.parseAmbushPoints=function(){this.ambushPoints=this.ambush_points.children.filter((function(n){return n.active})).map((function(n){var t=new B;return t.isVacancy=!1,t.standPosArr=n.children.filter((function(n){return n.name.startsWith("stand_")})).map((function(n){var t=new F;return t.pos=n.worldPosition.clone(),t.isVacancy=!1,t})),t.roadPosArr=n.children.filter((function(n){return n.name.startsWith("road_")})).sort((function(n,t){var e=function(n){var t=n.split("_").pop();return parseInt(t||"0",10)};return e(n.name)-e(t.name)})).map((function(n){var t=new F;return t.pos=n.worldPosition.clone(),t.isVacancy=!1,t})),t.ambushPosArr=n.children.filter((function(n){return n.name.startsWith("bunker_")})).map((function(n){var t=new F;return t.pos=n.worldPosition.clone(),t.isVacancy=!1,t})),t.escapePosArr=n.children.filter((function(n){return n.name.startsWith("escape_")})).map((function(n){var t=new F;return t.pos=n.worldPosition.clone(),t.isVacancy=!1,t})),t}))},o.getPaths=function(n){var t=[this.getRandomBornPosition(),this.getRandomPos(n,this.miidle_outline),this.getRandomPos(n,this.miidle_inline)],e=this.getAmbushClas();return e.isVacancy=!0,n.ambush=e,(t=t.concat(e.roadPosArr.map((function(n){return n.pos})))).push(this.getStandPos(e.standPosArr)),t},o.getStandPos=function(n){if(n.length<=0)return s.ZERO;var t=n.filter((function(n){return!n.isVacancy})),e=t.length<=0,i=t.length>0?t:n,r=d.randomArray(i)[0].pos;return e&&(r.x+=d.getRandomFloat(-.5,.5),r.z+=d.getRandomFloat(-.5,.5)),r},o.getAmbushClas=function(){(!this.ambushPoints||this.ambushPoints.length<=0)&&this.parseAmbushPoints();var n=this.ambushPoints.filter((function(n){return!n.isVacancy})),t=n.length>0?n:this.ambushPoints;return d.randomArray(t)[0]},o.getRandomPos=function(n,t){if(20003==n.id)return t.worldPosition.clone();var e=t.children[0].worldPosition.clone();if(t.children.length>=2){var i=t.children[0].worldPosition.clone(),r=t.children[1].worldPosition.clone(),o=d.getRandomFloat(0,1);e.x=i.x+(r.x-i.x)*o,e.z=i.z+(r.z-i.z)*o}return e},o.getRandomBornPosition=function(){if(!this.enemy_born_area)return s.ZERO;var n=this.enemy_born_area.getWorldScale(),t=n.x,e=n.z,i=(Math.random()-.5)*t,r=(Math.random()-.5)*e,o=this.enemy_born_area.worldPosition;return new s(o.x+i,o.y,o.z+r)},o.resetData=function(){this.ambushPoints.forEach((function(n){n.isVacancy=!1,n.standPosArr.forEach((function(n){return n.isVacancy=!1})),n.roadPosArr.forEach((function(n){return n.isVacancy=!1})),n.ambushPosArr.forEach((function(n){return n.isVacancy=!1})),n.escapePosArr.forEach((function(n){return n.isVacancy=!1}))}))},t}(h)).prototype,"ambush_points",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),V=t(v.prototype,"enemy_born_area",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=t(v.prototype,"miidle_inline",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=t(v.prototype,"miidle_outline",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=t(v.prototype,"doors",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=t(v.prototype,"sundries",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=v))||A));o._RF.pop()}}}));
- System.register("chunks:///_virtual/Gun1.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolManager.ts","./Game.ts","./UIManager.ts","./Constants.ts","./Bullet1.ts","./GunBase.ts","./AudioManager.ts"],(function(t){var e,i,o,n,s,l,r,a,u,c,h,d,f,p,m,g,y;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,o=t.initializerDefineProperty,n=t.assertThisInitialized},function(t){s=t.cclegacy,l=t._decorator,r=t.Node,a=t.tween,u=t.director,c=t.Vec3},function(t){h=t.PoolManager},function(t){d=t.Game},function(t){f=t.uiMgr},function(t){p=t.Constants},function(t){m=t.Bullet1},function(t){g=t.GunBase},function(t){y=t.audioMgr}],execute:function(){var b,v,P,B,N,z,w;s._RF.push({},"6984845eWhGy4N9LVXaCypl","Gun1",void 0);var C=l.ccclass,I=l.property;t("Gun1",(b=C("Gun1"),v=I({type:r,tooltip:"子弹节点"}),P=I({type:r,tooltip:"开火特效节点"}),b((z=e((N=function(t){function e(){for(var e,i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return e=t.call.apply(t,[this].concat(s))||this,o(e,"bulletNode",z,n(e)),o(e,"fireEffect",w,n(e)),e.holder=null,e.endCb=null,e.ammoCb=null,e.curTime=0,e.isFristShot=!1,e.smokes=[],e}i(e,t);var s=e.prototype;return s.onLoad=function(){this.bulletNode.active=!1,this.muzzleNode.active=!1},s.init=function(t,e,i,o){this.data=t,this.shotBullets=0,this.isFire=!1,this.isFristShot=!0,this.holder=e,this.endCb=i,this.ammoCb=o},s.fire=function(){this.isFire=!0,this.createBullet(),this.playParticle(this.fireEffect)},s.endFire=function(){var t;this.isFire=!1,null==(t=this.endCb)||t.call(this,this.data),this.recycle()},s.killEnemy=function(t){var e=this;if(!t.isDead&&!d.I.isPause){var i=t.node.worldPosition.clone(),o=this.getBulleNode();o.init(this,!0),a(o.node).to(.3,{worldPosition:i}).call((function(){o.isDead=!0,h.putNode(o.node),t.subHP(2*t.data.hp,e.data)})).start()}},s.createBullet=function(){if(this.holder&&!this.holder.isDead&&this.isFire&&!d.I.isPause&&!d.I.isGameOver){var t;if(d.I.player.shootUI.crossHairStability(),y.playOneShot(this.data.gun_sound),this.getBulleNode(),this.shotBullets++,this.shotBullets>=this.data.magazine)this.shotBullets=0,null==(t=this.ammoCb)||t.call(this,this.data);this.endFire()}},s.getBulleNode=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=null);var i=h.getNode(this.bulletNode,u.getScene()),o=i.getComponent(m);o.init(this),i.worldPosition=this.muzzleNode.worldPosition.clone();var n,s=f.getPageComponent(p.popUIs.gunfightShootUI),l=e?e.worldPosition:s.getCrossHairPos(),r=c.subtract(new c,l,this.muzzleNode.worldPosition).normalize();if(t)n=r;else{var a=5*(Math.random()-.5)*Math.PI/180,d=5*(Math.random()-.5)*Math.PI/180;n=new c(r.x+a,r.y+d,r.z).normalize()}return i.forward=n,o.setBulletVector(n),o},s.recycle=function(){this.smokes.forEach((function(t){t&&t.parent&&h.putNode(t)})),this.smokes=[]},e}(g)).prototype,"bulletNode",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),w=e(N.prototype,"fireEffect",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=N))||B));s._RF.pop()}}}));
- System.register("chunks:///_virtual/Gun10.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Game.ts","./PoolManager.ts","./GunBase.ts","./Bullet10.ts","./Utils.ts","./AudioManager.ts","./Constants.ts"],(function(t){var i,e,s,o,n,r,l,a,u,h,c,f,d,p,m,y;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.inheritsLoose,s=t.initializerDefineProperty,o=t.assertThisInitialized},function(t){n=t.cclegacy,r=t._decorator,l=t.Node,a=t.Vec3,u=t.director},function(t){h=t.Game},function(t){c=t.PoolManager},function(t){f=t.GunBase},function(t){d=t.Bullet10},function(t){p=t.Utils},function(t){m=t.audioMgr},function(t){y=t.Constants}],execute:function(){var b,g,v,F,N,w,z;n._RF.push({},"02422u5XL9Ip55qizRWXZh6","Gun10",void 0);var C=r.ccclass,G=r.property;t("Gun10",(b=C("Gun10"),g=G({type:l,tooltip:"子弹节点"}),v=G({type:l,tooltip:"开火特效节点"}),b((w=i((N=function(t){function i(){for(var i,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return i=t.call.apply(t,[this].concat(n))||this,s(i,"bulletNode",w,o(i)),s(i,"fireEffect",z,o(i)),i.isCb=!1,i.enemy=null,i.endCb=null,i.ammoCb=null,i.curTime=0,i.isFristShot=!1,i.smokes=[],i.isFristShoot=!1,i.diff=0,i.r_delay=0,i.isGo=!0,i}e(i,t);var n=i.prototype;return n.onLoad=function(){this.bulletNode.active=!1,this.muzzleNode.active=!1},n.init=function(t,i,e,s){this.data=t,this.curTime=0,this.isFire=!1,this.isFristShot=!0,this.enemy=i,this.endCb=e,this.ammoCb=s,this.node.eulerAngles=new a(0,180,0)},n.fire=function(){this.isFire=!0,this.playParticle(this.fireEffect)},n.endFire=function(){var t;this.isFire=!1,null==(t=this.endCb)||t.call(this,this.data),this.recycle()},n.createBullet=function(){var t=this;if(this.getNextAllow())for(var i=.1,e=0;e<this.data.bullet_number;e++)this.unscheduleAllCallbacks(),this.scheduleOnce((function(e){if(i+=p.getRandomFloat(0,.2),t.getNextAllow()){var s=t.enemy.calculateIsHit();t.getBulleNode(s)}}),i*e)},n.getBulleNode=function(t){void 0===t&&(t=!0);var i=c.getNode(this.bulletNode,u.getScene()),e=i.getComponent(d);e.init(this),i.setWorldPosition(this.muzzleNode.worldPosition);var s,o=h.I.player.head.worldPosition.clone(),n=a.subtract(new a,o,this.muzzleNode.worldPosition).normalize();if(t)s=n;else{var r=5*(Math.random()-.5)*Math.PI/180,l=5*(Math.random()-.5)*Math.PI/180;s=new a(n.x+r,n.y+l,n.z).normalize()}return i.forward=s,e.setBulletVector(s,t),e},n.update=function(t){if(this.getNextAllow()){var i,e=this.data.atk_speed;if(this.isFristShoot)e=this.isFristShoot?0:e;else{if(e=this.isFristShoot?0:e,this.diff>=this.r_delay&&!this.isGo)return this.diff+=t,void(this.isGo=!0);this.curTime+=t}if(this.curTime>=e-this.r_delay)if(this.isFire)this.isFristShoot=!1,this.r_delay=p.getRandomFloat(0,e),this.diff=0,this.isGo=!1,m.playOneShot(y.audios.Enemy_attack,!1),this.createBullet(),this.curTime=0,this.isCb=!1;else if(!this.isFire&&!this.isCb)this.isFire=!1,null==(i=this.endCb)||i.call(this,this.data.type),this.isCb=!0}},n.getNextAllow=function(){var t=h.I.player;return!(!t||t.isDead||!this.isFire||h.I.isPause||h.I.isGameOver)},n.recycle=function(){this.smokes.forEach((function(t){t&&t.parent&&c.putNode(t)})),this.smokes=[]},i}(f)).prototype,"bulletNode",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=i(N.prototype,"fireEffect",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=N))||F));n._RF.pop()}}}));
- System.register("chunks:///_virtual/Gun14.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolManager.ts","./Game.ts","./GunBase.ts","./Bullet14.ts","./Utils.ts","./AudioManager.ts","./Constants.ts"],(function(t){var i,e,s,o,n,r,l,a,u,h,c,f,d,p,m,y;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.inheritsLoose,s=t.initializerDefineProperty,o=t.assertThisInitialized},function(t){n=t.cclegacy,r=t._decorator,l=t.Node,a=t.Vec3,u=t.director},function(t){h=t.PoolManager},function(t){c=t.Game},function(t){f=t.GunBase},function(t){d=t.Bullet14},function(t){p=t.Utils},function(t){m=t.audioMgr},function(t){y=t.Constants}],execute:function(){var b,g,v,F,N,w,C;n._RF.push({},"0d7bfOMJexIJ7DSg3dmO0p5","Gun14",void 0);var z=r.ccclass,G=r.property;t("Gun14",(b=z("Gun14"),g=G({type:l,tooltip:"子弹节点"}),v=G({type:l,tooltip:"开火特效节点"}),b((w=i((N=function(t){function i(){for(var i,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return i=t.call.apply(t,[this].concat(n))||this,s(i,"bulletNode",w,o(i)),s(i,"fireEffect",C,o(i)),i.isCb=!1,i.enemy=null,i.endCb=null,i.ammoCb=null,i.curTime=0,i.isFristShot=!1,i.smokes=[],i.isFristShoot=!1,i.diff=0,i.r_delay=0,i.isGo=!0,i}e(i,t);var n=i.prototype;return n.onLoad=function(){this.bulletNode.active=!1,this.muzzleNode.active=!1},n.init=function(t,i,e,s){this.data=t,this.curTime=0,this.isFire=!1,this.isFristShot=!0,this.enemy=i,this.endCb=e,this.ammoCb=s,this.node.eulerAngles=new a(0,180,0)},n.fire=function(){this.isFire=!0,this.playParticle(this.fireEffect)},n.endFire=function(){var t;this.isFire=!1,null==(t=this.endCb)||t.call(this,this.data),this.recycle()},n.createBullet=function(){var t=this;if(this.getNextAllow())for(var i=.1,e=0;e<this.data.bullet_number;e++)this.unscheduleAllCallbacks(),this.scheduleOnce((function(e){if(i+=p.getRandomFloat(0,.2),t.getNextAllow()){var s=t.enemy.calculateIsHit();t.getBulleNode(s)}}),i*e)},n.getBulleNode=function(t){void 0===t&&(t=!0);var i=h.getNode(this.bulletNode,u.getScene()),e=i.getComponent(d);e.init(this),i.setWorldPosition(this.muzzleNode.worldPosition);var s,o=c.I.player.head.worldPosition.clone(),n=a.subtract(new a,o,this.muzzleNode.worldPosition).normalize();if(t)s=n;else{var r=5*(Math.random()-.5)*Math.PI/180,l=5*(Math.random()-.5)*Math.PI/180;s=new a(n.x+r,n.y+l,n.z).normalize()}return i.forward=s,e.setBulletVector(s,t),e},n.update=function(t){if(this.getNextAllow()){var i,e=this.data.atk_speed;if(this.isFristShoot)e=this.isFristShoot?0:e;else{if(e=this.isFristShoot?0:e,this.diff>=this.r_delay&&!this.isGo)return this.diff+=t,void(this.isGo=!0);this.curTime+=t}if(this.curTime>=e-this.r_delay)if(this.isFire)this.isFristShoot=!1,this.r_delay=p.getRandomFloat(.4,.8),this.diff=0,this.isGo=!1,m.playOneShot(y.audios.Tank_Attack,!1),this.createBullet(),this.curTime=0,this.isCb=!1;else if(!this.isFire&&!this.isCb)this.isFire=!1,null==(i=this.endCb)||i.call(this,this.data.type),this.isCb=!0}},n.getNextAllow=function(){var t=c.I.player;return!(!t||t.isDead||!this.isFire||c.I.isPause||c.I.isGameOver)},n.recycle=function(){this.smokes.forEach((function(t){t&&t.parent&&h.putNode(t)})),this.smokes=[]},i}(f)).prototype,"bulletNode",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=i(N.prototype,"fireEffect",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=N))||F));n._RF.pop()}}}));
- System.register("chunks:///_virtual/Gun2.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolManager.ts","./Game.ts","./UIManager.ts","./Constants.ts","./Bullet2.ts","./GunBase.ts","./AudioManager.ts"],(function(t){var e,i,o,n,s,r,a,l,u,c,h,d,f,p,m,g,v;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,o=t.initializerDefineProperty,n=t.assertThisInitialized},function(t){s=t.cclegacy,r=t._decorator,a=t.Node,l=t.tween,u=t.director,c=t.Vec3},function(t){h=t.PoolManager},function(t){d=t.Game},function(t){f=t.uiMgr},function(t){p=t.Constants},function(t){m=t.Bullet2},function(t){g=t.GunBase},function(t){v=t.audioMgr}],execute:function(){var y,b,P,B,z,I,N;s._RF.push({},"ee60532jRJA+Yb0xK9EBiXK","Gun2",void 0);var w=r.ccclass,M=r.property;t("Gun2",(y=w("Gun2"),b=M({type:a,tooltip:"子弹节点"}),P=M({type:a,tooltip:"开火特效节点"}),y((I=e((z=function(t){function e(){for(var e,i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];return e=t.call.apply(t,[this].concat(s))||this,o(e,"bulletNode",I,n(e)),o(e,"fireEffect",N,n(e)),e.holder=null,e.endCb=null,e.ammoCb=null,e.curTime=0,e.smokes=[],e}i(e,t);var s=e.prototype;return s.onLoad=function(){this.bulletNode.active=!1,this.muzzleNode.active=!1},s.init=function(t,e,i,o){this.data=t,this.shotBullets=0,this.isFire=!1,this.holder=e,this.endCb=i,this.ammoCb=o},s.fire=function(){this.isFire=!0,this.curTime=0},s.endFire=function(){var t;this.isFire=!1,null==(t=this.endCb)||t.call(this,this.data),this.recycle()},s.killEnemy=function(t){var e=this;if(!t.isDead&&!d.I.isPause){var i=t.node.worldPosition.clone(),o=this.getBulleNode();o.init(this,!0),l(o.node).to(.3,{worldPosition:i}).call((function(){o.isDead=!0,h.putNode(o.node),t.subHP(2*t.data.hp,e.data)})).start()}},s.createBullet=function(){var t;!this.holder||this.holder.isDead||!this.isFire||d.I.isPause||d.I.isGameOver||(v.playOneShot(this.data.gun_sound),this.playParticle(this.fireEffect),this.getBulleNode(),this.shotBullets++,this.shotBullets>=this.data.magazine&&(this.shotBullets=0,null==(t=this.ammoCb)||t.call(this,this.data)))},s.getBulleNode=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=null);var i=h.getNode(this.bulletNode,u.getScene()),o=i.getComponent(m);o.init(this),i.worldPosition=this.muzzleNode.worldPosition.clone();var n,s=f.getPageComponent(p.popUIs.gunfightShootUI),r=e?e.worldPosition:s.getCrossHairPos(),a=c.subtract(new c,r,this.muzzleNode.worldPosition).normalize();if(t)n=a;else{var l=5*(Math.random()-.5)*Math.PI/180,d=5*(Math.random()-.5)*Math.PI/180;n=new c(a.x+l,a.y+d,a.z).normalize()}return i.forward=n,o.setBulletVector(n),o},s.update=function(t){var e=d.I.player;!e||e.isDead||!this.isFire||d.I.isPause||d.I.isGameOver||d.I.player.isReloadMagazine||(d.I.player.shootUI.isScopeOpen?(this.curTime+=t,this.curTime>=.2&&(this.createBullet(),this.curTime=0)):this.endFire())},s.recycle=function(){this.smokes.forEach((function(t){t&&t.parent&&h.putNode(t)})),this.smokes=[]},e}(g)).prototype,"bulletNode",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=e(z.prototype,"fireEffect",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=z))||B));s._RF.pop()}}}));
- System.register("chunks:///_virtual/Gun3.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolManager.ts","./Game.ts","./UIManager.ts","./Constants.ts","./Bullet3.ts","./GunBase.ts","./AudioManager.ts"],(function(t){var e,i,o,n,s,r,a,l,u,h,c,d,f,p,m,g,b;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,o=t.initializerDefineProperty,n=t.assertThisInitialized},function(t){s=t.cclegacy,r=t._decorator,a=t.Node,l=t.tween,u=t.director,h=t.Vec3},function(t){c=t.PoolManager},function(t){d=t.Game},function(t){f=t.uiMgr},function(t){p=t.Constants},function(t){m=t.Bullet3},function(t){g=t.GunBase},function(t){b=t.audioMgr}],execute:function(){var y,v,P,I,B,C,z;s._RF.push({},"78968+ieCBBYogdwotoc6ol","Gun3",void 0);var F=r.ccclass,w=r.property;t("Gun3",(y=F("Gun3"),v=w({type:a,tooltip:"子弹节点"}),P=w({type:a,tooltip:"开火特效节点"}),y((C=e((B=function(t){function e(){for(var e,i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];return e=t.call.apply(t,[this].concat(s))||this,o(e,"bulletNode",C,n(e)),o(e,"fireEffect",z,n(e)),e.holder=null,e.endCb=null,e.ammoCb=null,e.curTime=0,e.isFristShot=!1,e.smokes=[],e.burstFireCount=3,e}i(e,t);var s=e.prototype;return s.onLoad=function(){this.bulletNode.active=!1,this.muzzleNode.active=!1},s.init=function(t,e,i,o){this.data=t,this.shotBullets=0,this.isFire=!1,this.isFristShot=!0,this.holder=e,this.endCb=i,this.ammoCb=o},s.fire=function(){this.isFire=!0,this.playParticle(this.fireEffect)},s.endFire=function(){var t;this.isFire=!1,null==(t=this.endCb)||t.call(this,this.data),this.recycle()},s.killEnemy=function(t){var e=this;if(!t.isDead&&!d.I.isPause){var i=t.node.worldPosition.clone(),o=this.getBulleNode();o.init(this,!0),l(o.node).to(.3,{worldPosition:i}).call((function(){o.isDead=!0,c.putNode(o.node),t.subHP(2*t.data.hp,e.data)})).start()}},s.createBullet=function(){var t;(d.I.player.mainCamera.shake(.2,0,.1),!this.holder||this.holder.isDead||!this.isFire||d.I.isPause||d.I.isGameOver)||(d.I.player.shootUI.crossHairStability(),b.playOneShot(this.data.gun_sound),this.getBulleNode(),this.shotBullets++,this.shotBullets>=this.data.magazine&&(this.shotBullets=0,null==(t=this.ammoCb)||t.call(this,this.data)))},s.getBulleNode=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=null);var i=c.getNode(this.bulletNode,u.getScene()),o=i.getComponent(m);o.init(this),i.worldPosition=this.muzzleNode.worldPosition.clone();var n,s=f.getPageComponent(p.popUIs.gunfightShootUI),r=e?e.worldPosition:s.getCrossHairPos(),a=h.subtract(new h,r,this.muzzleNode.worldPosition).normalize();if(t)n=a;else{var l=5*(Math.random()-.5)*Math.PI/180,d=5*(Math.random()-.5)*Math.PI/180;n=new h(a.x+l,a.y+d,a.z).normalize()}return i.forward=n,o.setBulletVector(n),o},s.update=function(t){var e=d.I.player;!e||e.isDead||!this.isFire||d.I.isPause||d.I.isGameOver||d.I.player.isReloadMagazine||(this.curTime+=t,this.curTime>=.22&&(this.burstFireCount--,this.createBullet(),this.curTime=0,this.burstFireCount<=0&&(this.burstFireCount=3,this.endFire(),this.scheduleOnce((function(){d.I.player.shootUI.isScopeOpen=!1}),.5))))},s.recycle=function(){this.smokes.forEach((function(t){t&&t.parent&&c.putNode(t)})),this.smokes=[]},e}(g)).prototype,"bulletNode",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=e(B.prototype,"fireEffect",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),I=B))||I));s._RF.pop()}}}));
- System.register("chunks:///_virtual/GunAttrItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ListItem.ts","./ResUtil.ts"],(function(t){var e,r,a,i,l,n,o,s,u,p,c;return{setters:[function(t){e=t.applyDecoratedDescriptor,r=t.inheritsLoose,a=t.initializerDefineProperty,i=t.assertThisInitialized},function(t){l=t.cclegacy,n=t._decorator,o=t.Sprite,s=t.ProgressBar,u=t.Label},function(t){p=t.default},function(t){c=t.ResUtil}],execute:function(){var b,_,g,f,y,h,m,d,v,w,z;l._RF.push({},"2de32DH/ZFOOK0Lwiy3r4Yj","GunAttrItem",void 0);var I=n.ccclass,A=n.property;t("GunAttrItem",(b=I("GunAttrItem"),_=A({type:o,tooltip:"枪的属性图片"}),g=A({type:s,tooltip:"属性值的最大进度"}),f=A({type:u,tooltip:"属性值的数据文本"}),y=A({type:u,tooltip:"枪的属性多语言名字"}),b((d=e((m=function(t){function e(){for(var e,r=arguments.length,l=new Array(r),n=0;n<r;n++)l[n]=arguments[n];return e=t.call.apply(t,[this].concat(l))||this,a(e,"attr_sp",d,i(e)),a(e,"progressBar",v,i(e)),a(e,"atts_label",w,i(e)),a(e,"attribute_lang_lable",z,i(e)),e.data=null,e}r(e,t);var l=e.prototype;return l.start=function(){},l.init=function(t,e){t&&(this.data=t,c.setSpriteFrame(t.attr_icon,this.attr_sp),this.progressBar.progress=t.attr_value/t.totalValue,this.atts_label.string=t.attr_value+"/"+t.totalValue,this.attribute_lang_lable.string=t.attribute_lang)},e}(p)).prototype,"attr_sp",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=e(m.prototype,"progressBar",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=e(m.prototype,"atts_label",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=e(m.prototype,"attribute_lang_lable",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=m))||h));l._RF.pop()}}}));
- System.register("chunks:///_virtual/GunBase.ts",["./rollupPluginModLoBabelHelpers.js","cc","./EventEmitter.ts","./Constants.ts"],(function(t){var e,n,i,o,r,s,l,u,a,c,p,f;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.inheritsLoose,i=t.initializerDefineProperty,o=t.assertThisInitialized,r=t.createClass},function(t){s=t.cclegacy,l=t._decorator,u=t.Node,a=t.ParticleSystem,c=t.Component},function(t){p=t.eventEmitter},function(t){f=t.Constants}],execute:function(){var d,h,m,y,v;s._RF.push({},"25a8eid0QVA4bPBqf6Uzd36","GunBase",void 0);var B=l.ccclass,z=l.property;t("GunBase",(d=B("GunBase"),h=z({type:u,tooltip:"枪口节点"}),d((v=e((y=function(t){function e(){var e;return e=t.call(this)||this,i(e,"muzzleNode",v,o(e)),e.data=null,e.isFire=!1,e.endCb=null,e.bulletSF=null,e._shotBullets=0,e.isFire=!1,e.endCb=null,e}n(e,t);var s=e.prototype;return s.init=function(t,e,n,i){},s.fire=function(){},s.endFire=function(){},s.playParticle=function(t){t.getComponentsInChildren(a).forEach((function(t){t.stop(),t.play()}))},r(e,[{key:"shotBullets",get:function(){return this._shotBullets},set:function(t){this._shotBullets=t,p.dispatch(f.eventName.magazine_num_change)}}]),e}(c)).prototype,"muzzleNode",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=y))||m));s._RF.pop()}}}));
- System.register("chunks:///_virtual/GunfightShootUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Game.ts","./BaseExp.ts","./AutoBind.ts","./Constants.ts","./UIManager.ts","./UserData.ts","./MsgHints.ts","./List.ts","./TaskEnemyItem.ts","./BulletMagazine.ts","./SettingData.ts","./LanguageData.ts","./PlatformSystem.ts","./GameEnums.ts"],(function(e){var t,i,o,a,n,r,s,l,u,c,p,h,g,m,y,d,f,b,v,_,w,C,z,I,T,R,S,D,k,O,P,B,N,E,H;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.inheritsLoose,o=e.initializerDefineProperty,a=e.assertThisInitialized,n=e.createClass},function(e){r=e.cclegacy,s=e._decorator,l=e.math,u=e.Node,c=e.ProgressBar,p=e.Label,h=e.Quat,g=e.Vec3,m=e.Camera,y=e.tween,d=e.easing,f=e.sys,b=e.geometry,v=e.UIOpacity,_=e.Tween},function(e){w=e.Game},function(e){C=e.BaseExp},function(e){z=e.autoBind},function(e){I=e.Constants},function(e){T=e.uiMgr},function(e){R=e.userIns,S=e.GunAttribute},function(e){D=e.default},function(e){k=e.default},function(e){O=e.TaskEnemyItem},function(e){P=e.BulletMagazine},function(e){B=e.settingData},function(e){N=e.default},function(e){E=e.default},function(e){H=e.GameEnums}],execute:function(){var M,U,V,x,G,A,F,Z,L,W,j,X,Y,Q,q,J,K,$,ee,te,ie,oe,ae,ne,re,se,le,ue,ce,pe,he,ge,me,ye,de,fe,be,ve,_e;r._RF.push({},"c368esIoplOL4AhvWUUyNzo","GunfightShootUI",void 0);var we=s.ccclass,Ce=s.property,ze=l.clamp;l.toRadian,e("GunfightShootUI",(M=we("GunfightShootUI"),U=z({type:u,tooltip:"轮盘节点"}),V=z({type:u,tooltip:"标准贴图"}),x=z({type:u,tooltip:"准心"}),G=z({type:c,tooltip:"步枪子弹进度条"}),A=z({type:p,tooltip:"步枪子弹数文本"}),F=z({type:P,tooltip:"步枪子弹列表"}),Z=z({type:P,tooltip:"狙击枪子弹列表"}),L=z({type:u,tooltip:"步枪显示子弹的总的节点"}),W=z({type:k,tooltip:"敌人任务列表"}),j=z({type:c,tooltip:"玩家生命进度条"}),X=Ce({type:[u],tooltip:"要隐藏的所有按钮"}),Y=z({type:c,tooltip:"换弹夹时间进度条"}),Q=z({type:u,tooltip:"玩家受到伤害呼吸闪烁"}),q=z({type:p,tooltip:"玩家枪的名字"}),J=z({type:p,tooltip:"关卡名字"}),K=z({type:u,tooltip:"切枪按钮"}),$=z({type:p,tooltip:"剩余切换次数"}),ee=z({type:u,tooltip:"切枪看视频的图标按钮"}),M((oe=t((ie=function(e){function t(){for(var t,i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return t=e.call.apply(e,[this].concat(n))||this,o(t,"wheel",oe,a(t)),o(t,"scopeOverlay",ae,a(t)),o(t,"crossHair",ne,a(t)),o(t,"rifle_bullet_progressBar",re,a(t)),o(t,"rifle_bullet_num_label",se,a(t)),o(t,"rifle_bullets_scrollView",le,a(t)),o(t,"snipe_bullets_scrollView",ue,a(t)),o(t,"rifle_bullets_bg",ce,a(t)),o(t,"task_scrollView",pe,a(t)),o(t,"hpProgressBar",he,a(t)),o(t,"hiddeNodes",ge,a(t)),o(t,"reloadProgressBar",me,a(t)),o(t,"injury_blood",ye,a(t)),o(t,"gun_name_label",de,a(t)),o(t,"gk_num_lable",fe,a(t)),o(t,"cut_gun_btn",be,a(t)),o(t,"cut_num_label",ve,a(t)),o(t,"cut_video",_e,a(t)),t.bulletDistance=800,t.currentXRotation=0,t.currentYRotation=0,t.maxHorizontalAngle=180,t.maxVerticalAngle=70,t.originalFov=void 0,t.initialPlayerRotation=new h,t.initialCameraRotation=new h,t.targetFov=void 0,t.isZoomingIn=!1,t.isZoomingOut=!1,t.zoomSpeed=0,t.zoomDuration=.2,t.zoomStartTime=0,t.zoomValid=!1,t._isScopeOpen=!1,t.wheelPos=g.ZERO,t.taskDatas=[],t.isHurtRun=!1,t}i(t,e);var r=t.prototype;return r.start=function(){this.hasAnim=!1,this.closeOnBlank=!1,this.injury_blood.active=!1,this.reloadProgressBar.node.active=!1,I.isDebug||this.hiddeNodes.forEach((function(e){return e.active=!1})),this.wheelPos=this.wheel.position.clone(),this.register(I.eventName.enemy_num_change,this.loadTaskData.bind(this)),this.register(I.eventName.gun_num_change,this.gunNumChange.bind(this)),this.node.on(u.EventType.TOUCH_START,this.onNodeTouchMove,this),this.node.on(u.EventType.TOUCH_MOVE,this.onNodeTouchMove,this),this.node.on(u.EventType.TOUCH_END,this.onCustomNodeTouchEnd,this),this.node.on(u.EventType.TOUCH_CANCEL,this.onCustomNodeTouchEnd,this),this.wheel.on(u.EventType.TOUCH_START,this.onWheelClick,this),this.wheel.on(u.EventType.TOUCH_END,this.onWheelRelease,this),this.wheel.on(u.EventType.TOUCH_CANCEL,this.onWheelRelease,this)},r.hide=function(){var e;null==(e=T.getPageComponent(I.mainUIs.main))||e.playOrStopBGM(!1)},r.originalInitial=function(){this.originalFov=w.I.camera.getComponent(m).fov,this.initialPlayerRotation=w.I.player.node.rotation.clone(),this.initialCameraRotation=w.I.camera.node.rotation.clone(),this.currentYRotation=this.initialPlayerRotation.x,this.currentXRotation=this.initialPlayerRotation.y},r.show=function(){this.loadTaskData(),this.gunNumChange()},r.gunNumChange=function(){var e=R.data.guns.length>1;this.cut_gun_btn.active=e,this.cut_video.active=e,R.data.cutNum>0?(this.cut_num_label.string="x"+R.data.cutNum,this.cut_video.active=!1):(this.cut_num_label.string="lack",this.cut_video.active=!0)},r.loadTaskData=function(){var e=R.getCurLevelData();this.gk_num_lable.string=N("main.关卡任务 %{value}",{value:e.id}),this.taskDatas=w.I.buildEnemys.enemyTypeRecords,this.task_scrollView.numItems=this.taskDatas.length,this.gunDataUI()},r.setTaskItemData=function(e,t){e.getComponent(O).init(this.taskDatas[t])},r.gunDataUI=function(){var e=w.I.player.pData;if(!w.I.isGameOver&&!w.I.isPause&&w.I.player.gun&&e){this.crossHair.active=!0;var t=this.weaponCategoryGun()==H.weaponCategory.rifle;this.scopeOverlay.active=!t,this.gun_name_label.string=e.name_lang;var i=1==e.type;if(w.I.player.isReloadMagazine)this.rifle_bullets_bg.active=!1,this.snipe_bullets_scrollView.node.active=!1;else if(this.rifle_bullets_bg.active=!i,this.snipe_bullets_scrollView.node.active=i,i)this.snipe_bullets_scrollView.magazineNum=e.magazine;else{this.rifle_bullets_scrollView.magazineNum=e.magazine;var o=e.magazine-w.I.player.gun.shotBullets;this.rifle_bullet_progressBar.progress=o/e.magazine,this.rifle_bullet_num_label.string=o+"/"+e.magazine}}},r.reloadMagazineing=function(e,t){var i=this;e<=0?null==t||t():(this.reloadProgressBar.node.active=!0,this.reloadProgressBar.progress=1,this.rifle_bullets_bg.active=!1,this.snipe_bullets_scrollView.node.active=!1,y(this.reloadProgressBar).to(e,{progress:0},{easing:d.linear,onStart:function(){y(i.reloadProgressBar).stop()},onComplete:function(){i.reloadProgressBar.node.active=!1,null==t||t()}}).start())},r.crossHairStability=function(){var e=this,t=w.I.player.pData;if(t){this.gunDataUI(),this.wheel.position=this.wheelPos;var i=R.getGunMaxValue(t,S.stability).totalValue,o=Math.max(0,1-t.stability/i),a=5+20*o,n=.6-.3*(1-o),r=0,s=function t(i){r+=i;var o=a*(Math.random()-.5)*Math.max(1-r/n,0),s=a*(Math.random()-.5)*Math.max(1-r/n,0);e.wheel.position=new g(e.wheelPos.x+o,e.wheelPos.y+s,e.wheelPos.z),r>=n&&(e.wheel.position=e.wheelPos,e.unschedule(t))};this.unschedule(s),this.schedule(s,.02)}},r.onNodeTouchMove=function(e){var t=e.getDelta(),i=this._isScopeOpen?.2:.6;this.currentYRotation-=t.x*B.data.sensitivity*i,this.currentXRotation-=t.y*B.data.sensitivity*i,this.currentYRotation=ze(this.currentYRotation,-this.maxHorizontalAngle,this.maxHorizontalAngle),this.currentXRotation=ze(this.currentXRotation,-this.maxVerticalAngle,this.maxVerticalAngle);var o=new h;h.fromEuler(o,0,this.currentYRotation,0);var a=new h;h.fromEuler(a,+this.currentXRotation,0,0);var n=new h;h.multiply(n,o,a),h.multiply(n,this.initialPlayerRotation,n),w.I.player.node.rotation=n},r.onCustomNodeTouchEnd=function(){},r.onWheelClick=function(){this.isScopeOpen=!0},r.onWheelRelease=function(){var e=this;if(!w.I.player.isReloadMagazine)if(this.zoomValid)switch(this.weaponCategoryGun()){case H.weaponCategory.sniper:w.I.player.shoot(),this.scheduleOnce((function(){e.isScopeOpen=!1}),.5);break;case H.weaponCategory.dmr:w.I.player.shoot();break;case H.weaponCategory.rifle:this.isScopeOpen=!1}else this.isScopeOpen=!1},r.openScope=function(){var e=w.I.player.pData;if(e&&!w.I.player.isReloadMagazine){var t=this.weaponCategoryGun()==H.weaponCategory.rifle;switch(this.weaponCategoryGun()){case H.weaponCategory.sniper:case H.weaponCategory.dmr:break;case H.weaponCategory.rifle:w.I.player.shoot()}this.isZoomingIn=!0,this.zoomDuration=72/e.zoomingSpeed;var i=t?1/e.rifleZoom:1/e.scopeZoom;this.targetFov=this.originalFov*i;var o=this.originalFov-this.targetFov;this.zoomSpeed=o/this.zoomDuration,this.zoomStartTime=f.now()}},r.closeScope=function(){this.isZoomingIn=!1,this.isZoomingOut=!0;var e=this.originalFov-this.targetFov;this.zoomSpeed=e/this.zoomDuration},r.weaponCategoryGun=function(){var e=w.I.player.pData;return e?e.id==H.palyerWeaponType.akm||e.id==H.palyerWeaponType.m416?H.weaponCategory.rifle:e.id==H.palyerWeaponType.vss||e.id==H.palyerWeaponType.sks?H.weaponCategory.dmr:H.weaponCategory.sniper:H.weaponCategory.sniper},r.getCrossHairPos=function(){var e=this.getScreenCenterPos(),t=new b.Ray;w.I.camera.screenPointToRay(e.x,e.y,t);var i=w.I.player.gun.muzzleNode.worldPosition;return new g(i.x+t.d.x*this.bulletDistance,i.y+t.d.y*this.bulletDistance,i.z+t.d.z*this.bulletDistance)},r.getScreenCenterPos=function(){var e=this.crossHair.worldPosition.clone();return w.I.canvas.getChildByName("Camera2D").getComponent(m).worldToScreen(e)},r.playerHurtTwinkle=function(e){var t=this;this.hpProgressBar.progress=e;var i=e<=.3,o=this.injury_blood.getComponent(v);if(!i&&this.isHurtRun)return this.isHurtRun=!1,_.stopAllByTarget(o),void(this.injury_blood.active=!1);i&&!this.isHurtRun?(this.isHurtRun=!0,this.injury_blood.active=!0,o.opacity=255,y(o).to(.5,{opacity:0},{easing:d.linear}).to(.5,{opacity:255},{easing:d.linear}).repeatForever().start()):i||(this.injury_blood.active=!0,_.stopAllByTarget(o),o.opacity=255,y(o).to(.4,{opacity:0},{easing:d.linear}).call((function(){t.injury_blood.active=!1})).start())},r.onBtnClicked=function(t,i){var o=this;e.prototype.onBtnClicked.call(this,t,i);var a=t.target.name;if("pause_btn"===a)T.show(I.popUIs.pauseUI);else if("shot_btn"===a){switch(this.weaponCategoryGun()){case H.weaponCategory.sniper:w.I.player.shoot();break;case H.weaponCategory.rifle:this._isScopeOpen=!0,w.I.player.shoot(),this.scheduleOnce((function(){o._isScopeOpen=!1}),1.5);break;case H.weaponCategory.dmr:w.I.player.shoot()}}else if("cut_gun_btn"===a){if(R.data.guns.length<=1)return void D.show("Go unlock more guns");if(w.I.player.isReloadMagazine)return void D.show("Loading ammo...");R.data.cutNum>0?w.I.player.randomCutGun():E.platform.showRewardVideo((function(e){e&&(R.data.cutNum+=5,o.cut_num_label.string="x"+R.data.cutNum,o.cut_video.active=!1)}))}else"clean_btn"===a?(R.removeData(),w.I.player.pData=R.getCurUseGun(),D.show("重新加载数据完成")):"unlock_btn"===a&&(R.unlockAllGuns(),D.show("已经解锁全部枪数据"))},r.update=function(e){if(this.isZoomingIn){var t=w.I.camera.fov;if(t>this.targetFov){var i=t-this.zoomSpeed*e;w.I.camera.fov=Math.max(i,this.targetFov)}else{(f.now()-this.zoomStartTime)/1e3<=1.5&&(this.zoomValid=!0),this.isZoomingIn=!1}}else if(this.isZoomingOut){var o=w.I.camera.fov;if(o<this.originalFov){var a=o+this.zoomSpeed*e;w.I.camera.fov=Math.min(a,this.originalFov)}else this.isZoomingOut=!1,this.zoomValid=!1}},n(t,[{key:"isScopeOpen",get:function(){return this._isScopeOpen},set:function(e){this.gunDataUI(),this._isScopeOpen!==e&&(this._isScopeOpen=e,e?this.openScope():this.closeScope())}}]),t}(C)).prototype,"wheel",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ae=t(ie.prototype,"scopeOverlay",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=t(ie.prototype,"crossHair",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=t(ie.prototype,"rifle_bullet_progressBar",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),se=t(ie.prototype,"rifle_bullet_num_label",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),le=t(ie.prototype,"rifle_bullets_scrollView",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ue=t(ie.prototype,"snipe_bullets_scrollView",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ce=t(ie.prototype,"rifle_bullets_bg",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pe=t(ie.prototype,"task_scrollView",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),he=t(ie.prototype,"hpProgressBar",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ge=t(ie.prototype,"hiddeNodes",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),me=t(ie.prototype,"reloadProgressBar",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ye=t(ie.prototype,"injury_blood",[Q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),de=t(ie.prototype,"gun_name_label",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fe=t(ie.prototype,"gk_num_lable",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),be=t(ie.prototype,"cut_gun_btn",[K],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=t(ie.prototype,"cut_num_label",[$],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=t(ie.prototype,"cut_video",[ee],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=ie))||te));r._RF.pop()}}}));
- System.register("chunks:///_virtual/GunItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ListItem.ts","./ResUtil.ts","./MsgHints.ts"],(function(t){var e,n,i,o,l,a,u,r,c,s,p,g,b,_,f,h;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.inheritsLoose,i=t.initializerDefineProperty,o=t.assertThisInitialized},function(t){l=t.cclegacy,a=t._decorator,u=t.SpriteFrame,r=t.Sprite,c=t.Node,s=t.Label,p=t.tween,g=t.Vec3,b=t.easing},function(t){_=t.default},function(t){f=t.ResUtil},function(t){h=t.default}],execute:function(){var y,d,k,m,v,w,z,S,T,I,R,F,H,A,D,G,L,O,U;l._RF.push({},"3881b0/g35AHbAkyRxsggMC","GunItem",void 0);var C=a.ccclass,E=a.property;t("GunItem",(y=C("GunItem"),d=E({type:u,tooltip:"解锁的背景"}),k=E({type:u,tooltip:"解锁的背景"}),m=E({type:r,tooltip:"枪的背景图片"}),v=E({type:c,tooltip:"枪选中勾选"}),w=E({type:c,tooltip:"枪选中勾选父节点"}),z=E({type:c,tooltip:"枪选未解锁图片"}),S=E({type:c,tooltip:"设置枪的图片"}),T=E({type:s,tooltip:"枪的名字"}),y((F=e((R=function(t){function e(){for(var e,n=arguments.length,l=new Array(n),a=0;a<n;a++)l[a]=arguments[a];return e=t.call.apply(t,[this].concat(l))||this,i(e,"unlock_bg",F,o(e)),i(e,"not_unlock_bg",H,o(e)),i(e,"gun_bg",A,o(e)),i(e,"gou_icon",D,o(e)),i(e,"gou_n",G,o(e)),i(e,"lock_n",L,o(e)),i(e,"gun_sp",O,o(e)),i(e,"gun_name_lable",U,o(e)),e.data=null,e.cb=null,e}n(e,t);var l=e.prototype;return l.start=function(){var t=this;this.node.on(c.EventType.TOUCH_START,this.touchStart,this),this.node.on(c.EventType.TOUCH_END,(function(){t.data&&(t.data.unlocked?null==t.cb||t.cb(t.data):h.show(t.data.name_lang+" not unlocked!"))}),this)},l.touchStart=function(t){if(this.data){var e=t.target;p(e).to(.1,{scale:new g(1.02,1.02,1.02)},{easing:b.backOut}).to(.1,{scale:new g(.98,.98,.98)},{easing:b.backOut}).call((function(){e.scale=new g(1,1,1)})).start()}},l.init=function(t,e){if(t){this.data=t,this.cb=e,this.lock_n.active=!t.unlocked,this.gou_n.active=t.unlocked,this.gun_bg.spriteFrame=t.unlocked?this.unlock_bg:this.not_unlock_bg;var n=t.unlocked?t.gun_unlock_icon:t.gun_not_unlock_icon;f.setSpriteFrame(n,this.gun_sp),t.unlocked&&(this.gou_icon.active=t.selected),this.gun_name_lable.string=t.name_lang}},e}(_)).prototype,"unlock_bg",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=e(R.prototype,"not_unlock_bg",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=e(R.prototype,"gun_bg",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=e(R.prototype,"gou_icon",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=e(R.prototype,"gou_n",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=e(R.prototype,"lock_n",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=e(R.prototype,"gun_sp",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=e(R.prototype,"gun_name_lable",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=R))||I));l._RF.pop()}}}));
- System.register("chunks:///_virtual/GunTypeItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ListItem.ts","./ResUtil.ts"],(function(t){var e,i,n,o,l,r,a,c,u,p,s,b,_,g;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,n=t.initializerDefineProperty,o=t.assertThisInitialized},function(t){l=t.cclegacy,r=t._decorator,a=t.SpriteFrame,c=t.Sprite,u=t.Node,p=t.tween,s=t.Vec3,b=t.easing},function(t){_=t.default},function(t){g=t.ResUtil}],execute:function(){var y,d,h,f,m,k,v,w,T,z,I,S,F,O,R;l._RF.push({},"21daa73BXtJ9ICVj80csOY/","GunTypeItem",void 0);var D=r.ccclass,G=r.property;t("GunTypeItem",(y=D("GunTypeItem"),d=G({type:a,tooltip:"枪类型解锁选中的"}),h=G({type:a,tooltip:"枪类型未解锁选中的"}),f=G({type:a,tooltip:"枪类型解锁的背景"}),m=G({type:a,tooltip:"枪类型解锁的背景"}),k=G({type:c,tooltip:"枪类型的背景图片"}),v=G({type:u,tooltip:"枪类型解锁"}),y((z=e((T=function(t){function e(){for(var e,i=arguments.length,l=new Array(i),r=0;r<i;r++)l[r]=arguments[r];return e=t.call.apply(t,[this].concat(l))||this,n(e,"selected_bg",z,o(e)),n(e,"gary_selected_bg",I,o(e)),n(e,"unlock_bg",S,o(e)),n(e,"not_unlock_bg",F,o(e)),n(e,"gun_type_bg",O,o(e)),n(e,"gou_type_icon",R,o(e)),e.data=null,e.cb=null,e}i(e,t);var l=e.prototype;return l.start=function(){var t=this;this.node.on(u.EventType.TOUCH_START,this.touchStart,this),this.node.on(u.EventType.TOUCH_END,(function(){t.data&&(null==t.cb||t.cb(t.data))}),this)},l.touchStart=function(t){if(this.data){var e=t.target;p(e).to(.1,{scale:new s(1.02,1.02,1.02)},{easing:b.backOut}).to(.1,{scale:new s(.98,.98,.98)},{easing:b.backOut}).call((function(){e.scale=new s(1,1,1)})).start()}},l.init=function(t,e){if(t){this.data=t,this.cb=e,t.selected?this.gun_type_bg.spriteFrame=t.unlocked?this.selected_bg:this.gary_selected_bg:this.gun_type_bg.spriteFrame=t.unlocked?this.unlock_bg:this.not_unlock_bg;var i=t.unlocked?t.type_not_unlock:t.type_unlock;g.setSpriteFrame(i,this.gou_type_icon)}},e}(_)).prototype,"selected_bg",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=e(T.prototype,"gary_selected_bg",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=e(T.prototype,"unlock_bg",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=e(T.prototype,"not_unlock_bg",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=e(T.prototype,"gun_type_bg",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=e(T.prototype,"gou_type_icon",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=T))||w));l._RF.pop()}}}));
- System.register("chunks:///_virtual/LanguageData.ts",["./rollupPluginModLoBabelHelpers.js","cc","./polyglot.min.ts","./Singleton.ts","./LocalizedLabel.ts","./LocalizedSprite.ts","./Constants.ts"],(function(t){var n,e,i,r,a,o,s,u,l,c;return{setters:[function(t){n=t.inheritsLoose,e=t.createClass},function(t){i=t.cclegacy,r=t._decorator,a=t.director},function(t){o=t.Polyglot},function(t){s=t.Singleton},function(t){u=t.default},function(t){l=t.default},function(t){c=t.Constants}],execute:function(){i._RF.push({},"d6597NeRz5OuZ6kceJkHWc3","LanguageData",void 0);r.ccclass,r.property;var g=c.gameName+"CurLang",h=function(t){function i(){var n;return(n=t.call(this)||this).inst=null,n.languages={en:{},zh:{}},n.init(),n}n(i,t);var r=i.prototype;return r.initPolyglot=function(t){t&&(this.inst?this.inst.replace(t):this.inst=new o({phrases:t,allowMissing:!0}))},r.init=function(t){if(t&&t!==this.curLang){var n=this.languages[t]||{};this.curLang=t,this.initPolyglot(n)}},r.t=function(t,n){var e;if(!this.inst||0===Object.keys(this.inst.phrases).length){var i=this.languages[this.curLang]||{};this.initPolyglot(i)}return(null==(e=this.inst)?void 0:e.t(t,n))||t},r.updateSceneRenderers=function(){for(var t=a.getScene().children,n=[],e=0;e<t.length;++e){var i=t[e].getComponentsInChildren(u);Array.prototype.push.apply(n,i)}for(var r=0;r<n.length;++r){var o=n[r];o.node.active&&o.updateLabel()}for(var s=[],c=0;c<t.length;++c){var g=t[c].getComponentsInChildren(l);Array.prototype.push.apply(s,g)}for(var h=0;h<s.length;++h){var p=s[h];p.node.active&&p.updateSprite(this.curLang)}},e(i,[{key:"curLang",get:function(){var t;return null!=(t=localStorage.getItem(g))?t:"en"},set:function(t){this.curLang!==t&&(localStorage.setItem(g,t),this.init(t))}},{key:"isZh",get:function(){return"zh"===this.curLang}}]),i}(s).ins();t("default",Object.setPrototypeOf((function(t,n){return h.t(t,n)}),h));i._RF.pop()}}}));
- System.register("chunks:///_virtual/Launch.ts",["./rollupPluginModLoBabelHelpers.js","cc","./CsvManager.ts","./LanguageData.ts","./AudioManager.ts","./BundleManager.ts","./AutoBind.ts","./Constants.ts","./BaseExp.ts","./UserData.ts","./ResUtil.ts","./PlatformSystem.ts"],(function(t){var e,n,r,a,i,o,s,u,l,c,p,f,g,d,h,y,b,m,v,B,L,x;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.inheritsLoose,r=t.initializerDefineProperty,a=t.assertThisInitialized,i=t.asyncToGenerator,o=t.regeneratorRuntime},function(t){s=t.cclegacy,u=t._decorator,l=t.Label,c=t.ProgressBar,p=t.director,f=t.profiler},function(t){g=t.csvMgr},function(t){d=t.default},function(t){h=t.audioMgr},function(t){y=t.bundleMgr},function(t){b=t.autoBind},function(t){m=t.Constants},function(t){v=t.BaseExp},function(t){B=t.userIns},function(t){L=t.ResUtil},function(t){x=t.default}],execute:function(){var w,D,M,R,S,_,z;s._RF.push({},"ed508YH13xLTKrHgVpSGwoI","Launch",void 0);var A=u.ccclass;u.property,t("Launch",(w=A("Launch"),D=b({type:l,tooltip:"资源加载lable"}),M=b({type:c,tooltip:"加载进度"}),w((_=e((S=function(t){function e(){for(var e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i))||this,r(e,"load_label",_,a(e)),r(e,"progressBar",z,a(e)),e}return n(e,t),e.prototype.start=function(){var t=i(o().mark((function t(){var e=this;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.load_label.string=d("main.加载中..."),x.initialize(),f.hideStats(),m.isDebug?f.showStats():f.hideStats(),t.next=6,y.preloadConfigAllRes((function(t){e.progressBar.progress=t.totalProgress}));case 6:return t.next=8,h.initialize();case 8:return t.next=10,g.loadAll();case 10:return t.next=12,L.loadRes("map/"+B.getCurLevelData().map);case 12:p.loadScene(m.scenesName.game);case 13:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),e}(v)).prototype,"load_label",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=e(S.prototype,"progressBar",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=S))||R));s._RF.pop()}}}));
- System.register("chunks:///_virtual/List.ts",["./rollupPluginModLoBabelHelpers.js","cc","./env","./ListItem.ts","./PoolManager.ts"],(function(t){var e,i,s,o,n,a,l,r,c,h,_,d,u,m,p,g,f,v,I,y,T,S,w,z,N,D;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,s=t.initializerDefineProperty,o=t.assertThisInitialized,n=t.createClass},function(t){a=t.cclegacy,l=t._decorator,r=t.ScrollView,c=t.Enum,h=t.Node,_=t.Prefab,d=t.CCFloat,u=t.EventHandler,m=t.CCBoolean,p=t.CCInteger,g=t.isValid,f=t.UITransform,v=t.Layout,I=t.Vec3,y=t.Size,T=t.Widget,S=t.tween,w=t.Component},function(t){z=t.DEV},function(t){N=t.default},function(t){D=t.PoolManager}],execute:function(){var b,E,P,L,G,C,O,R,A,U,B,k,M,x,V,H,F,X,Z,Y,W,j,q,J,K,Q,$,tt,et,it,st,ot,nt,at,lt,rt,ct,ht,_t,dt,ut,mt,pt;a._RF.push({},"adcd1ArJf5IPoMo1kZUgpJg","List",void 0);var gt=l.ccclass,ft=l.property,vt=l.disallowMultiple,It=l.menu,yt=l.executionOrder,Tt=l.requireComponent,St=function(t){return t[t.NODE=1]="NODE",t[t.PREFAB=2]="PREFAB",t}(St||{}),wt=function(t){return t[t.NORMAL=1]="NORMAL",t[t.ADHERING=2]="ADHERING",t[t.PAGE=3]="PAGE",t}(wt||{}),zt=function(t){return t[t.NONE=0]="NONE",t[t.SINGLE=1]="SINGLE",t[t.MULT=2]="MULT",t}(zt||{});t("default",(b=vt(),E=It("List"),P=Tt(r),L=yt(-5e3),G=ft({type:c(St),tooltip:z}),C=ft({type:h,tooltip:z,visible:function(){return this.templateType==St.NODE}}),O=ft({type:_,tooltip:z,visible:function(){return this.templateType==St.PREFAB}}),R=ft({}),A=ft({type:c(wt),tooltip:z}),U=ft({type:d,range:[0,1,.1],tooltip:z,slide:!0,visible:function(){return this._slideMode==wt.PAGE}}),B=ft({type:u,tooltip:z,visible:function(){return this._slideMode==wt.PAGE}}),k=ft({}),M=ft({type:m,tooltip:z}),x=ft({tooltip:z,visible:function(){var t=this.slideMode==wt.NORMAL;return t||(this.cyclic=!1),t}}),V=ft({tooltip:z,visible:function(){return this.virtual}}),H=ft({tooltip:z,visible:function(){var t=this.virtual&&!this.lackCenter;return t||(this.lackSlide=!1),t}}),F=ft({type:p}),X=ft({type:p,range:[0,6,1],tooltip:z,slide:!0}),Z=ft({type:p,range:[0,12,1],tooltip:z,slide:!0}),Y=ft({type:u,tooltip:z}),W=ft({type:c(zt),tooltip:z}),j=ft({type:u,tooltip:z,visible:function(){return this.selectedMode>zt.NONE}}),q=ft({tooltip:z,visible:function(){return this.selectedMode==zt.SINGLE}}),J=ft({serializable:!1}),gt(K=b(K=E(K=P(K=L(($=e((Q=function(t){function e(){for(var e,i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return e=t.call.apply(t,[this].concat(n))||this,s(e,"templateType",$,o(e)),s(e,"tmpNode",tt,o(e)),s(e,"tmpPrefab",et,o(e)),s(e,"_slideMode",it,o(e)),s(e,"pageDistance",st,o(e)),s(e,"pageChangeEvent",ot,o(e)),s(e,"_virtual",nt,o(e)),s(e,"cyclic",at,o(e)),s(e,"lackCenter",lt,o(e)),s(e,"lackSlide",rt,o(e)),s(e,"_updateRate",ct,o(e)),s(e,"frameByFrameRenderNum",ht,o(e)),s(e,"renderEvent",_t,o(e)),s(e,"selectedMode",dt,o(e)),s(e,"selectedEvent",ut,o(e)),s(e,"repeatEventSingle",mt,o(e)),e._selectedId=-1,e._lastSelectedId=void 0,e.multSelected=void 0,e._forceUpdate=!1,e._align=void 0,e._horizontalDir=void 0,e._verticalDir=void 0,e._startAxis=void 0,e._alignCalcType=void 0,e.content=void 0,e._contentUt=void 0,e.firstListId=void 0,e.displayItemNum=void 0,e._updateDone=!0,e._updateCounter=void 0,e._actualNumItems=void 0,e._cyclicNum=void 0,e._cyclicPos1=void 0,e._cyclicPos2=void 0,s(e,"_numItems",pt,o(e)),e._inited=!1,e._scrollView=void 0,e._layout=void 0,e._resizeMode=void 0,e._topGap=void 0,e._rightGap=void 0,e._bottomGap=void 0,e._leftGap=void 0,e._columnGap=void 0,e._lineGap=void 0,e._colLineNum=void 0,e._lastDisplayData=void 0,e.displayData=void 0,e._itemTmp=void 0,e._itemTmpUt=void 0,e._needUpdateWidget=!1,e._itemSize=void 0,e._sizeType=void 0,e._oScale=void 0,e._customSize=void 0,e.frameCount=void 0,e._aniDelRuning=!1,e._aniDelCB=void 0,e._aniDelItem=void 0,e._aniDelBeforePos=void 0,e._aniDelBeforeScale=void 0,e.viewTop=void 0,e.viewRight=void 0,e.viewBottom=void 0,e.viewLeft=void 0,e._doneAfterUpdate=!1,e.elasticTop=void 0,e.elasticRight=void 0,e.elasticBottom=void 0,e.elasticLeft=void 0,e.scrollToListId=void 0,e.adhering=!1,e._adheringBarrier=!1,e.nearestListId=void 0,e.curPageNum=0,e._beganPos=void 0,e._scrollPos=void 0,e._curScrollIsTouch=void 0,e._scrollToListId=void 0,e._scrollToEndTime=void 0,e._scrollToSo=void 0,e._lack=void 0,e._allItemSize=void 0,e._allItemSizeNoEdge=void 0,e._scrollItem=void 0,e._thisNodeUt=void 0,e}i(e,t);var a=e.prototype;return a.onLoad=function(){this._init()},a.recycle=function(){var t=this;this.content.children.forEach((function(e){e!=t.tmpNode&&g(e)&&(e.scale=t._oScale,D.putNode(e))}))},a.onDestroy=function(){var t=this;g(t._itemTmp)&&t._itemTmp.destroy(),g(t.tmpNode)&&t.tmpNode.destroy()},a.onDisable=function(){this._unregisterEvent(),this.recycle()},a.onEnable=function(){this._registerEvent(),this._init(),this._aniDelRuning&&(this._aniDelRuning=!1,this._aniDelItem&&(this._aniDelBeforePos&&(this._aniDelItem.position=this._aniDelBeforePos,delete this._aniDelBeforePos),this._aniDelBeforeScale&&(this._aniDelItem.scale=this._aniDelBeforeScale,delete this._aniDelBeforeScale),delete this._aniDelItem),this._aniDelCB&&(this._aniDelCB(),delete this._aniDelCB))},a._registerEvent=function(){var t=this;t.node.on(h.EventType.TOUCH_START,t._onTouchStart,t),t.node.on("touch-up",t._onTouchUp,t),t.node.on(h.EventType.TOUCH_CANCEL,t._onTouchCancelled,t),t.node.on("scroll-began",t._onScrollBegan,t),t.node.on("scroll-ended",t._onScrollEnded,t),t.node.on("scrolling",t._onScrolling,t),t.node.on(h.EventType.SIZE_CHANGED,t._onSizeChanged,t)},a._unregisterEvent=function(){var t=this;t.node.off(h.EventType.TOUCH_START,t._onTouchStart,t),t.node.off("touch-up",t._onTouchUp,t),t.node.off(h.EventType.TOUCH_CANCEL,t._onTouchCancelled,t),t.node.off("scroll-began",t._onScrollBegan,t),t.node.off("scroll-ended",t._onScrollEnded,t),t.node.off("scrolling",t._onScrolling,t),t.node.off(h.EventType.SIZE_CHANGED,t._onSizeChanged,t)},a._init=function(){var t=this;if(!t._inited)if(t._thisNodeUt=t.node.getComponent(f),t._scrollView=t.node.getComponent(r),t.content=t._scrollView.content,t._contentUt=t.content.getComponent(f),t.content){t._layout=t.content.getComponent(v),t._align=t._layout.type,t._resizeMode=t._layout.resizeMode,t._startAxis=t._layout.startAxis,t._topGap=t._layout.paddingTop,t._rightGap=t._layout.paddingRight,t._bottomGap=t._layout.paddingBottom,t._leftGap=t._layout.paddingLeft,t._columnGap=t._layout.spacingX,t._lineGap=t._layout.spacingY,t._colLineNum,t._verticalDir=t._layout.verticalDirection,t._horizontalDir=t._layout.horizontalDirection;var e=t.templateType==St.PREFAB?t.tmpPrefab:t.tmpNode;switch(t.setTemplateItem(D.getNode(e)),t._slideMode!=wt.ADHERING&&t._slideMode!=wt.PAGE||(t._scrollView.inertia=!1,t._scrollView._onMouseWheel=function(){}),t.virtual||(t.lackCenter=!1),t._lastDisplayData=[],t.displayData=[],t._forceUpdate=!1,t._updateCounter=0,t._updateDone=!0,t.curPageNum=0,t.cyclic&&(t._scrollView._processAutoScrolling=this._processAutoScrolling.bind(t),t._scrollView._startBounceBackIfNeeded=function(){return!1}),t._align){case v.Type.HORIZONTAL:switch(t._horizontalDir){case v.HorizontalDirection.LEFT_TO_RIGHT:t._alignCalcType=1;break;case v.HorizontalDirection.RIGHT_TO_LEFT:t._alignCalcType=2}break;case v.Type.VERTICAL:switch(t._verticalDir){case v.VerticalDirection.TOP_TO_BOTTOM:t._alignCalcType=3;break;case v.VerticalDirection.BOTTOM_TO_TOP:t._alignCalcType=4}break;case v.Type.GRID:switch(t._startAxis){case v.AxisDirection.HORIZONTAL:switch(t._verticalDir){case v.VerticalDirection.TOP_TO_BOTTOM:t._alignCalcType=3;break;case v.VerticalDirection.BOTTOM_TO_TOP:t._alignCalcType=4}break;case v.AxisDirection.VERTICAL:switch(t._horizontalDir){case v.HorizontalDirection.LEFT_TO_RIGHT:t._alignCalcType=1;break;case v.HorizontalDirection.RIGHT_TO_LEFT:t._alignCalcType=2}}}t.content.removeAllChildren(),t._inited=!0}else console.error(t.node.name+"'s ScrollView unset content!")},a._processAutoScrolling=function(t){var e=1e-4,i=new I,s=this._scrollView,o=s._isNecessaryAutoScrollBrake(),n=o?.05:1;s._autoScrollAccumulatedTime+=t*(1/n);var a,l=Math.min(1,s._autoScrollAccumulatedTime/s._autoScrollTotalTime);s._autoScrollAttenuate&&(a=l,l=(a-=1)*a*a*a*a+1);var c=s._autoScrollTargetDelta.clone();c.multiplyScalar(l);var h=s._autoScrollStartPosition.clone();h.add(c);var _=Math.abs(l-1)<=e;if(Math.abs(l-1)<=s.getScrollEndedEventTiming()&&!s._isScrollEndedWithThresholdEventFired&&(s._dispatchEvent(r.EventType.SCROLL_ENG_WITH_THRESHOLD),s._isScrollEndedWithThresholdEventFired=!0),s.elastic){var d=h.clone();d.subtract(s._autoScrollBrakingStartPosition),o&&d.multiplyScalar(n),h.set(s._autoScrollBrakingStartPosition),h.add(d)}else{var u=h.clone();u.subtract(s._getContentPosition());var m=s._getHowMuchOutOfBoundary(u);m.equals(i,e)||(h.add(m),_=!0)}_&&(s._autoScrolling=!1);var p=new I(h);p.subtract(s._getContentPosition()),s._clampDelta(p),s._moveContent(p,_),s._dispatchEvent(r.EventType.SCROLLING),s._autoScrolling||(s._isBouncing=!1,s._scrolling=!1,s._dispatchEvent(r.EventType.SCROLL_ENDED))},a.setTemplateItem=function(t){if(t){var e=this;if(e._itemTmp=t,e._itemTmpUt=t.getComponent(f),e._oScale=t.scale,e._resizeMode==v.ResizeMode.CHILDREN)e._itemSize=e._layout.cellSize;else{var i=t.getComponent(f);e._itemSize=new y(i.width,i.height)}var s=t.getComponent(N),o=!1;switch(s||(o=!0),o&&(e.selectedMode=zt.NONE),(s=t.getComponent(T))&&s.enabled&&(e._needUpdateWidget=!0),e.selectedMode==zt.MULT&&(e.multSelected=[]),e._align){case v.Type.HORIZONTAL:e._colLineNum=1,e._sizeType=!1;break;case v.Type.VERTICAL:e._colLineNum=1,e._sizeType=!0;break;case v.Type.GRID:switch(e._startAxis){case v.AxisDirection.HORIZONTAL:var n=e._contentUt.width-e._leftGap-e._rightGap;e._colLineNum=Math.floor((n+e._columnGap)/(e._itemSize.width+e._columnGap)),e._sizeType=!0;break;case v.AxisDirection.VERTICAL:var a=e._contentUt.height-e._topGap-e._bottomGap;e._colLineNum=Math.floor((a+e._lineGap)/(e._itemSize.height+e._lineGap)),e._sizeType=!1}}}},a.checkInited=function(t){return void 0===t&&(t=!0),!!this._inited||(t&&console.error("List initialization not completed!"),!1)},a._resizeContent=function(){var t,e=this;switch(e._align){case v.Type.HORIZONTAL:if(e._customSize){var i=e._getFixedSize(null);t=e._leftGap+i.val+e._itemSize.width*(e._numItems-i.count)+e._columnGap*(e._numItems-1)+e._rightGap}else t=e._leftGap+e._itemSize.width*e._numItems+e._columnGap*(e._numItems-1)+e._rightGap;break;case v.Type.VERTICAL:if(e._customSize){var s=e._getFixedSize(null);t=e._topGap+s.val+e._itemSize.height*(e._numItems-s.count)+e._lineGap*(e._numItems-1)+e._bottomGap}else t=e._topGap+e._itemSize.height*e._numItems+e._lineGap*(e._numItems-1)+e._bottomGap;break;case v.Type.GRID:switch(e.lackCenter&&(e.lackCenter=!1),e._startAxis){case v.AxisDirection.HORIZONTAL:var o=Math.ceil(e._numItems/e._colLineNum);t=e._topGap+e._itemSize.height*o+e._lineGap*(o-1)+e._bottomGap;break;case v.AxisDirection.VERTICAL:var n=Math.ceil(e._numItems/e._colLineNum);t=e._leftGap+e._itemSize.width*n+e._columnGap*(n-1)+e._rightGap}}var a=e.content.getComponent(v);if(a&&(a.enabled=!1),e._allItemSize=t,e._allItemSizeNoEdge=e._allItemSize-(e._sizeType?e._topGap+e._bottomGap:e._leftGap+e._rightGap),e.cyclic){var l=e._sizeType?e._thisNodeUt.height:e._thisNodeUt.width;e._cyclicPos1=0,l-=e._cyclicPos1,e._cyclicNum=Math.ceil(l/e._allItemSizeNoEdge)+1;var r=e._sizeType?e._lineGap:e._columnGap;e._cyclicPos2=e._cyclicPos1+e._allItemSizeNoEdge+r,e._cyclicAllItemSize=e._allItemSize+e._allItemSizeNoEdge*(e._cyclicNum-1)+r*(e._cyclicNum-1),e._cycilcAllItemSizeNoEdge=e._allItemSizeNoEdge*e._cyclicNum,e._cycilcAllItemSizeNoEdge+=r*(e._cyclicNum-1)}e._lack=!e.cyclic&&e._allItemSize<(e._sizeType?e._thisNodeUt.height:e._thisNodeUt.width);var c=e._lack&&e.lackCenter||!e.lackSlide?.1:0,h=e._lack?(e._sizeType?e._thisNodeUt.height:e._thisNodeUt.width)-c:e.cyclic?e._cyclicAllItemSize:e._allItemSize;h<0&&(h=0),e._sizeType?e._contentUt.height=h:e._contentUt.width=h},a._getChildSize=function(){var t=this.content.getComponent(f),e=this._layout.spacingX,i=this._layout.paddingLeft,s=(t.contentSize.width-(this._numItems-1)*e-2*i)/this._numItems;return new y(s,s)},a._onScrolling=function(t){if(void 0===t&&(t=null),null==this.frameCount&&(this.frameCount=this._updateRate),!this._forceUpdate&&t&&"scroll-ended"!=t.type&&this.frameCount>0)this.frameCount--;else if(this.frameCount=this._updateRate,!this._aniDelRuning){if(this.cyclic){var e=this.content.getPosition();e=this._sizeType?e.y:e.x;var i=this._allItemSizeNoEdge+(this._sizeType?this._lineGap:this._columnGap),s=this._sizeType?new I(0,i,0):new I(i,0,0),o=this.content.getPosition();switch(this._alignCalcType){case 1:e>-this._cyclicPos1?(o.set(-this._cyclicPos2,o.y,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.subtract(s))):e<-this._cyclicPos2&&(o.set(-this._cyclicPos1,o.y,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.add(s)));break;case 2:e<this._cyclicPos1?(o.set(this._cyclicPos2,o.y,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.add(s))):e>this._cyclicPos2&&(o.set(this._cyclicPos1,o.y,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.subtract(s)));break;case 3:e<this._cyclicPos1?(o.set(o.x,this._cyclicPos2,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.add(s))):e>this._cyclicPos2&&(o.set(o.x,this._cyclicPos1,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.subtract(s)));break;case 4:e>-this._cyclicPos1?(o.set(o.x,-this._cyclicPos2,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.subtract(s))):e<-this._cyclicPos2&&(o.set(o.x,-this._cyclicPos1,o.z),this.content.setPosition(o),this._scrollView.isAutoScrolling()&&(this._scrollView._autoScrollStartPosition=this._scrollView._autoScrollStartPosition.add(s)))}}var n,a,l,r;if(this._calcViewPos(),this._sizeType?(n=this.viewTop,l=this.viewBottom):(a=this.viewRight,r=this.viewLeft),this._virtual){var c;this.displayData=[];var h=0,_=this._numItems-1;if(this._customSize)for(var d=!1;h<=_&&!d;h++)switch(c=this._calcItemPos(h),this._align){case v.Type.HORIZONTAL:c.right>=r&&c.left<=a?this.displayData.push(c):0!=h&&this.displayData.length>0&&(d=!0);break;case v.Type.VERTICAL:c.bottom<=n&&c.top>=l?this.displayData.push(c):0!=h&&this.displayData.length>0&&(d=!0);break;case v.Type.GRID:switch(this._startAxis){case v.AxisDirection.HORIZONTAL:c.bottom<=n&&c.top>=l?this.displayData.push(c):0!=h&&this.displayData.length>0&&(d=!0);break;case v.AxisDirection.VERTICAL:c.right>=r&&c.left<=a?this.displayData.push(c):0!=h&&this.displayData.length>0&&(d=!0)}}else{var u=this._itemSize.width+this._columnGap,m=this._itemSize.height+this._lineGap;switch(this._alignCalcType){case 1:h=(r-this._leftGap)/u,_=(a-this._leftGap)/u;break;case 2:h=(-a-this._rightGap)/u,_=(-r-this._rightGap)/u;break;case 3:h=(-n-this._topGap)/m,_=(-l-this._topGap)/m;break;case 4:h=(l-this._bottomGap)/m,_=(n-this._bottomGap)/m}for(h=Math.floor(h)*this._colLineNum,_=Math.ceil(_)*this._colLineNum,h<0&&(h=0),--_>=this._numItems&&(_=this._numItems-1);h<=_;h++)this.displayData.push(this._calcItemPos(h))}if(this._delRedundantItem(),this.displayData.length<=0||!this._numItems)return void(this._lastDisplayData=[]);this.firstListId=this.displayData[0].id,this.displayItemNum=this.displayData.length;var p=this._lastDisplayData.length,g=this.displayItemNum!=p;if(g&&(this.frameByFrameRenderNum>0&&this._lastDisplayData.sort((function(t,e){return t-e})),g=this.firstListId!=this._lastDisplayData[0]||this.displayData[this.displayItemNum-1].id!=this._lastDisplayData[p-1]),this._forceUpdate||g)if(this.frameByFrameRenderNum>0)this._numItems>0?(this._updateDone?this._updateCounter=0:this._doneAfterUpdate=!0,this._updateDone=!1):(this._updateCounter=0,this._updateDone=!0);else{this._lastDisplayData=[];for(var f=0;f<this.displayItemNum;f++)this._createOrUpdateItem(this.displayData[f]);this._forceUpdate=!1}this._calcNearestItem()}}},a._calcViewPos=function(){var t=this.content.getPosition();switch(this._alignCalcType){case 1:this.elasticLeft=t.x>0?t.x:0,this.viewLeft=(t.x<0?-t.x:0)-this.elasticLeft,this.viewRight=this.viewLeft+this._thisNodeUt.width,this.elasticRight=this.viewRight>this._contentUt.width?Math.abs(this.viewRight-this._contentUt.width):0,this.viewRight+=this.elasticRight;break;case 2:this.elasticRight=t.x<0?-t.x:0,this.viewRight=(t.x>0?-t.x:0)+this.elasticRight,this.viewLeft=this.viewRight-this._thisNodeUt.width,this.elasticLeft=this.viewLeft<-this._contentUt.width?Math.abs(this.viewLeft+this._contentUt.width):0,this.viewLeft-=this.elasticLeft;break;case 3:this.elasticTop=t.y<0?Math.abs(t.y):0,this.viewTop=(t.y>0?-t.y:0)+this.elasticTop,this.viewBottom=this.viewTop-this._thisNodeUt.height,this.elasticBottom=this.viewBottom<-this._contentUt.height?Math.abs(this.viewBottom+this._contentUt.height):0,this.viewBottom+=this.elasticBottom;break;case 4:this.elasticBottom=t.y>0?Math.abs(t.y):0,this.viewBottom=(t.y<0?-t.y:0)-this.elasticBottom,this.viewTop=this.viewBottom+this._thisNodeUt.height,this.elasticTop=this.viewTop>this._contentUt.height?Math.abs(this.viewTop-this._contentUt.height):0,this.viewTop-=this.elasticTop}},a._calcItemPos=function(t){var e,i,s,o,n,a,l,r;switch(this._align){case v.Type.HORIZONTAL:switch(this._horizontalDir){case v.HorizontalDirection.LEFT_TO_RIGHT:if(this._customSize){var c=this._getFixedSize(t);n=this._leftGap+(this._itemSize.width+this._columnGap)*(t-c.count)+(c.val+this._columnGap*c.count);var h=this._customSize[t];e=h>0?h:this._itemSize.width}else n=this._leftGap+(this._itemSize.width+this._columnGap)*t,e=this._itemSize.width;if(this.lackCenter)n-=this._leftGap,n+=this._contentUt.width/2-this._allItemSizeNoEdge/2;return{id:t,left:n,right:a=n+e,x:n+this._itemTmpUt.anchorX*e,y:this._itemTmp.y};case v.HorizontalDirection.RIGHT_TO_LEFT:if(this._customSize){var _=this._getFixedSize(t);a=-this._rightGap-(this._itemSize.width+this._columnGap)*(t-_.count)-(_.val+this._columnGap*_.count);var d=this._customSize[t];e=d>0?d:this._itemSize.width}else a=-this._rightGap-(this._itemSize.width+this._columnGap)*t,e=this._itemSize.width;if(this.lackCenter)a+=this._rightGap,a-=this._contentUt.width/2-this._allItemSizeNoEdge/2;return{id:t,right:a,left:n=a-e,x:n+this._itemTmpUt.anchorX*e,y:this._itemTmp.y}}break;case v.Type.VERTICAL:switch(this._verticalDir){case v.VerticalDirection.TOP_TO_BOTTOM:if(this._customSize){var u=this._getFixedSize(t);s=-this._topGap-(this._itemSize.height+this._lineGap)*(t-u.count)-(u.val+this._lineGap*u.count);var m=this._customSize[t];i=m>0?m:this._itemSize.height}else s=-this._topGap-(this._itemSize.height+this._lineGap)*t,i=this._itemSize.height;if(this.lackCenter)s+=this._topGap,s-=this._contentUt.height/2-this._allItemSizeNoEdge/2;return{id:t,top:s,bottom:o=s-i,x:this._itemTmp.x,y:o+this._itemTmpUt.anchorY*i};case v.VerticalDirection.BOTTOM_TO_TOP:if(this._customSize){var p=this._getFixedSize(t);o=this._bottomGap+(this._itemSize.height+this._lineGap)*(t-p.count)+(p.val+this._lineGap*p.count);var g=this._customSize[t];i=g>0?g:this._itemSize.height}else o=this._bottomGap+(this._itemSize.height+this._lineGap)*t,i=this._itemSize.height;if(this.lackCenter)o-=this._bottomGap,o+=this._contentUt.height/2-this._allItemSizeNoEdge/2;return{id:t,top:s=o+i,bottom:o,x:this._itemTmp.x,y:o-this._itemTmpUt.anchorY*i}}case v.Type.GRID:var f=Math.floor(t/this._colLineNum);switch(this._startAxis){case v.AxisDirection.HORIZONTAL:switch(this._verticalDir){case v.VerticalDirection.TOP_TO_BOTTOM:r=(o=(s=-this._topGap-(this._itemSize.height+this._lineGap)*f)-this._itemSize.height)+this._itemTmpUt.anchorY*this._itemSize.height;break;case v.VerticalDirection.BOTTOM_TO_TOP:s=(o=this._bottomGap+(this._itemSize.height+this._lineGap)*f)+this._itemSize.height,r=o+this._itemTmpUt.anchorY*this._itemSize.height}switch(l=this._leftGap+t%this._colLineNum*(this._itemSize.width+this._columnGap),this._horizontalDir){case v.HorizontalDirection.LEFT_TO_RIGHT:l+=this._itemTmpUt.anchorX*this._itemSize.width,l-=this._contentUt.anchorX*this._contentUt.width;break;case v.HorizontalDirection.RIGHT_TO_LEFT:l+=(1-this._itemTmpUt.anchorX)*this._itemSize.width,l-=(1-this._contentUt.anchorX)*this._contentUt.width,l*=-1}return{id:t,top:s,bottom:o,x:l,y:r};case v.AxisDirection.VERTICAL:switch(this._horizontalDir){case v.HorizontalDirection.LEFT_TO_RIGHT:a=(n=this._leftGap+(this._itemSize.width+this._columnGap)*f)+this._itemSize.width,l=n+this._itemTmpUt.anchorX*this._itemSize.width,l-=this._contentUt.anchorX*this._contentUt.width;break;case v.HorizontalDirection.RIGHT_TO_LEFT:l=(n=(a=-this._rightGap-(this._itemSize.width+this._columnGap)*f)-this._itemSize.width)+this._itemTmpUt.anchorX*this._itemSize.width,l+=(1-this._contentUt.anchorX)*this._contentUt.width}switch(r=-this._topGap-t%this._colLineNum*(this._itemSize.height+this._lineGap),this._verticalDir){case v.VerticalDirection.TOP_TO_BOTTOM:r-=(1-this._itemTmpUt.anchorY)*this._itemSize.height,r+=(1-this._contentUt.anchorY)*this._contentUt.height;break;case v.VerticalDirection.BOTTOM_TO_TOP:r-=this._itemTmpUt.anchorY*this._itemSize.height,r+=this._contentUt.anchorY*this._contentUt.height,r*=-1}return{id:t,left:n,right:a,x:l,y:r}}}},a._calcExistItemPos=function(t){var e=this.getItemByListId(t);if(!e)return null;var i=e.getComponent(f),s=e.getPosition(),o={id:t,x:s.x,y:s.y};return this._sizeType?(o.top=s.y+i.height*(1-i.anchorY),o.bottom=s.y-i.height*i.anchorY):(o.left=s.x-i.width*i.anchorX,o.right=s.x+i.width*(1-i.anchorX)),o},a.getItemPos=function(t){return this._virtual||this.frameByFrameRenderNum?this._calcItemPos(t):this._calcExistItemPos(t)},a._getFixedSize=function(t){if(!this._customSize)return null;null==t&&(t=this._numItems);var e=0,i=0;for(var s in this._customSize)parseInt(s)<t&&(e+=this._customSize[s],i++);return{val:e,count:i}},a._onScrollBegan=function(){this._beganPos=this._sizeType?this.viewTop:this.viewLeft},a._onScrollEnded=function(){var t=this;if(t._curScrollIsTouch=!1,null!=t.scrollToListId){var e=t.getItemByListId(t.scrollToListId);t.scrollToListId=null,e&&S(e).to(.1,{scale:1.06}).to(.1,{scale:1}).start()}t._onScrolling(),t._slideMode!=wt.ADHERING||t.adhering?t._slideMode==wt.PAGE&&(null!=t._beganPos&&t._curScrollIsTouch?this._pageAdhere():t.adhere()):t.adhere()},a._onTouchStart=function(t,e){if(!this._scrollView._hasNestedViewGroup(t,e)&&(this._curScrollIsTouch=!0,!(t.eventPhase===Event.AT_TARGET&&t.target===this.node))){for(var i=t.target;null==i._listId&&i.parent;)i=i.parent;this._scrollItem=null!=i._listId?i:t.target}},a._onTouchUp=function(){var t=this;t._scrollPos=null,t._slideMode==wt.ADHERING?(this.adhering&&(this._adheringBarrier=!0),t.adhere()):t._slideMode==wt.PAGE&&(null!=t._beganPos?this._pageAdhere():t.adhere()),this._scrollItem=null},a._onTouchCancelled=function(t,e){var i=this;i._scrollView._hasNestedViewGroup(t,e)||t.simulate||(i._scrollPos=null,i._slideMode==wt.ADHERING?(i.adhering&&(i._adheringBarrier=!0),i.adhere()):i._slideMode==wt.PAGE&&(null!=i._beganPos?i._pageAdhere():i.adhere()),this._scrollItem=null)},a._onSizeChanged=function(){this.checkInited(!1)&&this._onScrolling()},a._onItemAdaptive=function(t){var e=t.getComponent(f);if(!this._sizeType&&e.width!=this._itemSize.width||this._sizeType&&e.height!=this._itemSize.height){this._customSize||(this._customSize={});var i=this._sizeType?e.height:e.width;this._customSize[t._listId]!=i&&(this._customSize[t._listId]=i,this._resizeContent(),this.updateAll(),null!=this._scrollToListId&&(this._scrollPos=null,this.unschedule(this._scrollToSo),this.scrollTo(this._scrollToListId,Math.max(0,this._scrollToEndTime-(new Date).getTime()/1e3))))}},a._pageAdhere=function(){var t=this;if(t.cyclic||!(t.elasticTop>0||t.elasticRight>0||t.elasticBottom>0||t.elasticLeft>0)){var e=t._sizeType?t.viewTop:t.viewLeft,i=(t._sizeType?t._thisNodeUt.height:t._thisNodeUt.width)*t.pageDistance;if(Math.abs(t._beganPos-e)>i){var s=.5;switch(t._alignCalcType){case 1:case 4:t._beganPos>e?t.prePage(s):t.nextPage(s);break;case 2:case 3:t._beganPos<e?t.prePage(s):t.nextPage(s)}}else t.elasticTop<=0&&t.elasticRight<=0&&t.elasticBottom<=0&&t.elasticLeft<=0&&t.adhere();t._beganPos=null}},a.adhere=function(){var t=this;if(t.checkInited()&&!(t.elasticTop>0||t.elasticRight>0||t.elasticBottom>0||t.elasticLeft>0)){t.adhering=!0,t._calcNearestItem();var e=(t._sizeType?t._topGap:t._leftGap)/(t._sizeType?t._thisNodeUt.height:t._thisNodeUt.width);t.scrollTo(t.nearestListId,.7,e)}},a.update=function(){if(!(this.frameByFrameRenderNum<=0||this._updateDone))if(this._virtual){for(var t=this._updateCounter+this.frameByFrameRenderNum>this.displayItemNum?this.displayItemNum:this._updateCounter+this.frameByFrameRenderNum,e=this._updateCounter;e<t;e++){var i=this.displayData[e];i&&this._createOrUpdateItem(i)}this._updateCounter>=this.displayItemNum-1?this._doneAfterUpdate?(this._updateCounter=0,this._updateDone=!1,this._doneAfterUpdate=!1):(this._updateDone=!0,this._delRedundantItem(),this._forceUpdate=!1,this._calcNearestItem(),this.slideMode==wt.PAGE&&(this.curPageNum=this.nearestListId)):this._updateCounter+=this.frameByFrameRenderNum}else if(this._updateCounter<this._numItems){for(var s=this._updateCounter+this.frameByFrameRenderNum>this._numItems?this._numItems:this._updateCounter+this.frameByFrameRenderNum,o=this._updateCounter;o<s;o++)this._createOrUpdateItem2(o);this._updateCounter+=this.frameByFrameRenderNum}else this._updateDone=!0,this._calcNearestItem(),this.slideMode==wt.PAGE&&(this.curPageNum=this.nearestListId)},a._createOrUpdateItem=function(t){var e=this.getItemByListId(t.id);if(e)this._forceUpdate&&this.renderEvent&&(e.setPosition(new I(t.x,t.y,0)),this._resetItemSize(e),this.renderEvent&&u.emitEvents([this.renderEvent],e,t.id%this._actualNumItems));else{if((e=D.getNode(this._itemTmp,this.content))._listId!=t.id)e._listId=t.id,e.getComponent(f).setContentSize(this._itemSize);if(e.setPosition(new I(t.x,t.y,0)),this._resetItemSize(e),this._needUpdateWidget){var i=e.getComponent(T);i&&i.updateAlignment()}e.setSiblingIndex(this.content.children.length-1);var s=e.getComponent(N);e.listItem=s,s&&(s.listId=t.id,s.list=this,s._registerEvent()),this.renderEvent&&u.emitEvents([this.renderEvent],e,t.id%this._actualNumItems)}this._resetItemSize(e),this._updateListItem(e.listItem),this._lastDisplayData.indexOf(t.id)<0&&this._lastDisplayData.push(t.id)},a._createOrUpdateItem2=function(t){var e,i=this.content.children[t];i?this._forceUpdate&&this.renderEvent&&(i._listId=t,e&&(e.listId=t),this.renderEvent&&u.emitEvents([this.renderEvent],i,t%this._actualNumItems)):((i=D.getNode(this._itemTmp,this.content))._listId=t,e=i.getComponent(N),i.listItem=e,e&&(e.listId=t,e.list=this,e._registerEvent()),this.renderEvent&&u.emitEvents([this.renderEvent],i,t%this._actualNumItems)),this._updateListItem(e),this._lastDisplayData.indexOf(t)<0&&this._lastDisplayData.push(t)},a._updateListItem=function(t){if(t&&this.selectedMode>zt.NONE){var e=t.node;switch(this.selectedMode){case zt.SINGLE:t.selected=this.selectedId==e._listId;break;case zt.MULT:t.selected=this.multSelected.indexOf(e._listId)>=0}}},a._resetItemSize=function(t){},a._updateItemPos=function(t){var e=isNaN(t)?t:this.getItemByListId(t),i=this.getItemPos(e._listId);e.setPosition(i.x,i.y)},a.setMultSelected=function(t,e){var i=this;if(i.checkInited()){var s,o;if(Array.isArray(t)||(t=[t]),null==e)i.multSelected=t;else if(e)for(var n=t.length-1;n>=0;n--)s=t[n],(o=i.multSelected.indexOf(s))<0&&i.multSelected.push(s);else for(var a=t.length-1;a>=0;a--)s=t[a],(o=i.multSelected.indexOf(s))>=0&&i.multSelected.splice(o,1);i._forceUpdate=!0,i._onScrolling()}},a.getMultSelected=function(){return this.multSelected},a.hasMultSelected=function(t){return this.multSelected&&this.multSelected.indexOf(t)>=0},a.updateItem=function(t){if(this.checkInited()){Array.isArray(t)||(t=[t]);for(var e=0,i=t.length;e<i;e++){var s=t[e],o=this.getItemByListId(s);o&&u.emitEvents([this.renderEvent],o,s%this._actualNumItems)}}},a.updateAll=function(){this.checkInited()&&(this.numItems=this.numItems)},a.getItemByListId=function(t){if(this.content)for(var e=this.content.children.length-1;e>=0;e--){var i=this.content.children[e];if(i._listId==t)return i}},a._getOutsideItem=function(){for(var t,e=[],i=this.content.children.length-1;i>=0;i--)t=this.content.children[i],this.displayData.find((function(e){return e.id==t._listId}))||e.push(t);return e},a._delRedundantItem=function(){if(this._virtual)for(var t=this._getOutsideItem(),e=t.length-1;e>=0;e--){var i=t[e];if(!this._scrollItem||i._listId!=this._scrollItem._listId){i.isCached=!0,D.putNode(i);for(var s=this._lastDisplayData.length-1;s>=0;s--)if(this._lastDisplayData[s]==i._listId){this._lastDisplayData.splice(s,1);break}}}else for(;this.content.children.length>this._numItems;)this._delSingleItem(this.content.children[this.content.children.length-1])},a._delSingleItem=function(t){t.removeFromParent(),t.destroy&&t.destroy(),t=null},a.aniDelItem=function(t,e,i){var s=this;if(!s.checkInited()||s.cyclic||!s._virtual)return console.error("This function is not allowed to be called!");if(!e)return console.error("CallFunc are not allowed to be NULL, You need to delete the corresponding index in the data array in the CallFunc!");if(s._aniDelRuning)return console.warn("Please wait for the current deletion to finish!");var o,n=s.getItemByListId(t);if(n){o=n.getComponent(N),s._aniDelRuning=!0,s._aniDelCB=e,s._aniDelItem=n,s._aniDelBeforePos=n.position,s._aniDelBeforeScale=n.scale;var a=s.displayData[s.displayData.length-1].id,l=o.selected;o.showAni(i,(function(){var i;if(a<s._numItems-2&&(i=a+1),null!=i){var o=s._calcItemPos(i);s.displayData.push(o),s._virtual?s._createOrUpdateItem(o):s._createOrUpdateItem2(i)}else s._numItems--;if(s.selectedMode==zt.SINGLE)l?s._selectedId=-1:s._selectedId-1>=0&&s._selectedId--;else if(s.selectedMode==zt.MULT&&s.multSelected.length){var r=s.multSelected.indexOf(t);r>=0&&s.multSelected.splice(r,1);for(var c=s.multSelected.length-1;c>=0;c--){s.multSelected[c]>=t&&s.multSelected[c]--}}if(s._customSize){s._customSize[t]&&delete s._customSize[t];var h,_={};for(var d in s._customSize){h=s._customSize[d];var u=parseInt(d);_[u-(u>=t?1:0)]=h}s._customSize=_}for(var m,p,g=null!=i?i:a;g>=t+1;g--)if(n=s.getItemByListId(g)){var f=s._calcItemPos(g-1);m=S(n).to(.2333,{position:new I(f.x,f.y,0)}),g<=t+1&&(p=!0,m.call((function(){s._aniDelRuning=!1,e(t),delete s._aniDelCB}))),m.start()}p||(s._aniDelRuning=!1,e(t),s._aniDelCB=null)}),!0)}else e(t)},a.scrollTo=function(t,e,i,s){void 0===e&&(e=.5),void 0===i&&(i=null),void 0===s&&(s=!1);var o=this;if(o.checkInited(!1)){null==e?e=.5:e<0&&(e=0),t<0?t=0:t>=o._numItems&&(t=o._numItems-1),!o._virtual&&o._layout&&o._layout.enabled&&o._layout.updateLayout();var n,a,l=o.getItemPos(t);if(!l)return z;switch(o._alignCalcType){case 1:n=l.left,n-=null!=i?o._thisNodeUt.width*i:o._leftGap,l=new I(n,0,0);break;case 2:n=l.right-o._thisNodeUt.width,n+=null!=i?o._thisNodeUt.width*i:o._rightGap,l=new I(n+o._contentUt.width,0,0);break;case 3:a=l.top,a+=null!=i?o._thisNodeUt.height*i:o._topGap,l=new I(0,-a,0);break;case 4:a=l.bottom+o._thisNodeUt.height,a-=null!=i?o._thisNodeUt.height*i:o._bottomGap,l=new I(0,-a+o._contentUt.height,0)}var r=o.content.getPosition();r=Math.abs(o._sizeType?r.y:r.x);var c=o._sizeType?l.y:l.x;Math.abs((null!=o._scrollPos?o._scrollPos:r)-c)>.5&&(o._scrollView.scrollToOffset(l,e),o._scrollToListId=t,o._scrollToEndTime=(new Date).getTime()/1e3+e,o._scrollToSo=o.scheduleOnce((function(){if(o._adheringBarrier||(o.adhering=o._adheringBarrier=!1),o._scrollPos=o._scrollToListId=o._scrollToEndTime=o._scrollToSo=null,s){var e=o.getItemByListId(t);e&&S(e).to(.1,{scale:1.05}).to(.1,{scale:1}).start()}}),e+.1),e<=0&&o._onScrolling())}},a._calcNearestItem=function(){var t,e,i,s,o,n,a=this;a.nearestListId=null,a._virtual&&a._calcViewPos(),i=a.viewTop,s=a.viewRight,o=a.viewBottom,n=a.viewLeft;for(var l=!1,r=0;r<a.content.children.length&&!l;r+=a._colLineNum)if(t=a._virtual?a.displayData[r]:a._calcExistItemPos(r))switch(e=a._sizeType?(t.top+t.bottom)/2:e=(t.left+t.right)/2,a._alignCalcType){case 1:t.right>=n&&(a.nearestListId=t.id,n>e&&(a.nearestListId+=a._colLineNum),l=!0);break;case 2:t.left<=s&&(a.nearestListId=t.id,s<e&&(a.nearestListId+=a._colLineNum),l=!0);break;case 3:t.bottom<=i&&(a.nearestListId=t.id,i<e&&(a.nearestListId+=a._colLineNum),l=!0);break;case 4:t.top>=o&&(a.nearestListId=t.id,o>e&&(a.nearestListId+=a._colLineNum),l=!0)}if((t=a._virtual?a.displayData[a.displayItemNum-1]:a._calcExistItemPos(a._numItems-1))&&t.id==a._numItems-1)switch(e=a._sizeType?(t.top+t.bottom)/2:e=(t.left+t.right)/2,a._alignCalcType){case 1:s>e&&(a.nearestListId=t.id);break;case 2:n<e&&(a.nearestListId=t.id);break;case 3:o<e&&(a.nearestListId=t.id);break;case 4:i>e&&(a.nearestListId=t.id)}},a.prePage=function(t){void 0===t&&(t=.5),this.checkInited()&&this.skipPage(this.curPageNum-1,t)},a.nextPage=function(t){void 0===t&&(t=.5),this.checkInited()&&this.skipPage(this.curPageNum+1,t)},a.skipPage=function(t,e){var i=this;if(i.checkInited())return i._slideMode!=wt.PAGE?console.error("This function is not allowed to be called, Must SlideMode = PAGE!"):void(t<0||t>=i._numItems||i.curPageNum!=t&&(i.curPageNum=t,i.pageChangeEvent&&u.emitEvents([i.pageChangeEvent],t),i.scrollTo(t,e)))},a.calcCustomSize=function(t){var e=this;if(e.checkInited()){if(!e._itemTmp)return console.error("Unset template item!");if(!e.renderEvent)return console.error("Unset Render-Event!");e._customSize={};for(var i=D.getNode(e._itemTmp,e.content),s=i.getComponent(f),o=0;o<t;o++)u.emitEvents([e.renderEvent],i,o),s.height==e._itemSize.height&&s.width==e._itemSize.width||(e._customSize[o]=e._sizeType?s.height:s.width);return Object.keys(e._customSize).length||(e._customSize=null),i.removeFromParent(),i.destroy&&i.destroy(),e._customSize}},n(e,[{key:"slideMode",get:function(){return this._slideMode},set:function(t){this._slideMode=t}},{key:"virtual",get:function(){return this._virtual},set:function(t){null!=t&&(this._virtual=t),0!=this._numItems&&this._onScrolling()}},{key:"updateRate",get:function(){return this._updateRate},set:function(t){t>=0&&t<=6&&(this._updateRate=t)}},{key:"selectedId",get:function(){return this._selectedId},set:function(t){var e,i=this;switch(i.selectedMode){case zt.SINGLE:if(!i.repeatEventSingle&&t==i._selectedId)return;if(e=i.getItemByListId(t),i._selectedId>=0?i._lastSelectedId=i._selectedId:i._lastSelectedId=null,i._selectedId=t,e&&(e.getComponent(N).selected=!0),i._lastSelectedId>=0&&i._lastSelectedId!=i._selectedId){var s=i.getItemByListId(i._lastSelectedId);s&&(s.getComponent(N).selected=!1)}i.selectedEvent&&u.emitEvents([i.selectedEvent],e,t%this._actualNumItems,null==i._lastSelectedId?null:i._lastSelectedId%this._actualNumItems);break;case zt.MULT:if(!(e=i.getItemByListId(t)))return;var o=e.getComponent(N);i._selectedId>=0&&(i._lastSelectedId=i._selectedId),i._selectedId=t;var n=!o.selected;o.selected=n;var a=i.multSelected.indexOf(t);n&&a<0?i.multSelected.push(t):!n&&a>=0&&i.multSelected.splice(a,1),i.selectedEvent&&u.emitEvents([i.selectedEvent],e,t%this._actualNumItems,null==i._lastSelectedId?null:i._lastSelectedId%this._actualNumItems,n)}}},{key:"numItems",get:function(){return this._actualNumItems},set:function(t){var e=this;if(e.checkInited(!1))if(null==t||t<0)console.error("numItems set the wrong::",t);else if(e._actualNumItems=e._numItems=t,e._forceUpdate=!0,e._virtual)e._resizeContent(),e.cyclic&&(e._numItems=e._cyclicNum*e._numItems),e._onScrolling(),e.frameByFrameRenderNum||e.slideMode!=wt.PAGE||(e.curPageNum=e.nearestListId);else{e.cyclic&&(e._resizeContent(),e._numItems=e._cyclicNum*e._numItems);var i=e.content.getComponent(v);if(i&&(i.enabled=!0),e._delRedundantItem(),e.firstListId=0,e.frameByFrameRenderNum>0){for(var s=e.frameByFrameRenderNum>e._numItems?e._numItems:e.frameByFrameRenderNum,o=0;o<s;o++)e._createOrUpdateItem2(o);e.frameByFrameRenderNum<e._numItems&&(e._updateCounter=e.frameByFrameRenderNum,e._updateDone=!1)}else{for(var n=0;n<e._numItems;n++)e._createOrUpdateItem2(n);e.displayItemNum=e._numItems}}}},{key:"scrollView",get:function(){return this._scrollView}}]),e}(w)).prototype,"templateType",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return St.NODE}}),tt=e(Q.prototype,"tmpNode",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),et=e(Q.prototype,"tmpPrefab",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),it=e(Q.prototype,"_slideMode",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return wt.NORMAL}}),e(Q.prototype,"slideMode",[A],Object.getOwnPropertyDescriptor(Q.prototype,"slideMode"),Q.prototype),st=e(Q.prototype,"pageDistance",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.3}}),ot=e(Q.prototype,"pageChangeEvent",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new u}}),nt=e(Q.prototype,"_virtual",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),e(Q.prototype,"virtual",[M],Object.getOwnPropertyDescriptor(Q.prototype,"virtual"),Q.prototype),at=e(Q.prototype,"cyclic",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),lt=e(Q.prototype,"lackCenter",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),rt=e(Q.prototype,"lackSlide",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ct=e(Q.prototype,"_updateRate",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),e(Q.prototype,"updateRate",[X],Object.getOwnPropertyDescriptor(Q.prototype,"updateRate"),Q.prototype),ht=e(Q.prototype,"frameByFrameRenderNum",[Z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),_t=e(Q.prototype,"renderEvent",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new u}}),dt=e(Q.prototype,"selectedMode",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return zt.NONE}}),ut=e(Q.prototype,"selectedEvent",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new u}}),mt=e(Q.prototype,"repeatEventSingle",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pt=e(Q.prototype,"_numItems",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),K=Q))||K)||K)||K)||K)||K));a._RF.pop()}}}));
- System.register("chunks:///_virtual/ListItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./env"],(function(e){var t,i,n,o,s,r,l,a,c,d,u,p,h,m,f,v,g,b;return{setters:[function(e){t=e.applyDecoratedDescriptor,i=e.inheritsLoose,n=e.initializerDefineProperty,o=e.assertThisInitialized,s=e.createClass},function(e){r=e.cclegacy,l=e._decorator,a=e.Enum,c=e.Node,d=e.SpriteFrame,u=e.Sprite,p=e.EventHandler,h=e.UITransform,m=e.tween,f=e.Vec3,v=e.Button,g=e.Component},function(e){b=e.DEV}],execute:function(){var y,C,_,S,w,E,I,F,N,T,z,k,D;r._RF.push({},"89d94PvXBBC6oGWbiyvzsMm","ListItem",void 0);var M=l.ccclass,G=l.property,H=l.disallowMultiple,L=l.menu,O=l.executionOrder,W=function(e){return e[e.NONE=0]="NONE",e[e.TOGGLE=1]="TOGGLE",e[e.SWITCH=2]="SWITCH",e}(W||{});e("default",(y=H(),C=L("ListItem"),_=O(-5001),S=G({type:a(W),tooltip:b}),w=G({type:c,tooltip:b,visible:function(){return this.selectedMode>W.NONE}}),E=G({type:d,tooltip:b,visible:function(){return this.selectedMode==W.SWITCH}}),I=G({tooltip:b}),M(F=y(F=C(F=_((T=t((N=function(e){function t(){for(var t,i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];return t=e.call.apply(e,[this].concat(s))||this,n(t,"selectedMode",T,o(t)),n(t,"selectedFlag",z,o(t)),n(t,"selectedSpriteFrame",k,o(t)),t._unselectedSpriteFrame=null,n(t,"adaptiveSize",D,o(t)),t._selected=!1,t._btnCom=void 0,t.list=void 0,t._eventReg=!1,t.listId=void 0,t}i(t,e);var r=t.prototype;return r.onLoad=function(){if(this.selectedMode==W.SWITCH){var e=this.selectedFlag.getComponent(u);this._unselectedSpriteFrame=e.spriteFrame}},r.onDestroy=function(){this.node.off(c.EventType.SIZE_CHANGED,this._onSizeChange,this)},r._registerEvent=function(){this._eventReg||(this.btnCom&&this.list.selectedMode>0&&this.btnCom.clickEvents.unshift(this.createEvt(this,"onClickThis")),this.adaptiveSize&&this.node.on(c.EventType.SIZE_CHANGED,this._onSizeChange,this),this._eventReg=!0)},r._onSizeChange=function(){this.list._onItemAdaptive(this.node)},r.createEvt=function(e,t,i){if(void 0===i&&(i=null),e.isValid){e.comName=e.comName||e.name.match(/\<(.*?)\>/g).pop().replace(/\<|>/g,"");var n=new p;return n.target=i||e.node,n.component=e.comName,n.handler=t,n}},r.showAni=function(e,t,i){var n,o=this,s=o.node.getComponent(h);switch(e){case 0:n=m(o.node).to(.2,{scale:new f(.7,.7)}).by(.3,{position:new f(0,2*s.height)});break;case 1:n=m(o.node).to(.2,{scale:new f(.7,.7)}).by(.3,{position:new f(2*s.width,0)});break;case 2:n=m(o.node).to(.2,{scale:new f(.7,.7)}).by(.3,{position:new f(0,-2*s.height)});break;case 3:n=m(o.node).to(.2,{scale:new f(.7,.7)}).by(.3,{position:new f(-2*s.width,0)});break;default:n=m(o.node).to(.3,{scale:new f(.1,.1)})}(t||i)&&n.call((function(){if(i){o.list._delSingleItem(o.node);for(var e=o.list.displayData.length-1;e>=0;e--)if(o.list.displayData[e].id==o.listId){o.list.displayData.splice(e,1);break}}t()})),n.start()},r.onClickThis=function(){this.list.selectedId=this.listId},s(t,[{key:"selected",get:function(){return this._selected},set:function(e){if(this._selected=e,this.selectedFlag)switch(this.selectedMode){case W.TOGGLE:this.selectedFlag.active=e;break;case W.SWITCH:var t=this.selectedFlag.getComponent(u);t&&(t.spriteFrame=e?this.selectedSpriteFrame:this._unselectedSpriteFrame)}}},{key:"btnCom",get:function(){return this._btnCom||(this._btnCom=this.node.getComponent(v)),this._btnCom}}]),t}(g)).prototype,"selectedMode",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return W.NONE}}),z=t(N.prototype,"selectedFlag",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=t(N.prototype,"selectedSpriteFrame",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),D=t(N.prototype,"adaptiveSize",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),F=N))||F)||F)||F)||F));r._RF.pop()}}}));
- System.register("chunks:///_virtual/LoadingUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Logger.ts"],(function(r){var e,t,s,n,i,a,o,u,c,p,g,h;return{setters:[function(r){e=r.applyDecoratedDescriptor,t=r.inheritsLoose,s=r.initializerDefineProperty,n=r.assertThisInitialized,i=r.asyncToGenerator,a=r.regeneratorRuntime},function(r){o=r.cclegacy,u=r._decorator,c=r.Label,p=r.Component,g=r.tween},function(r){h=r.Logger}],execute:function(){var l,d,f,_,b,k,L;o._RF.push({},"0b1a611XNpHVLjup75rkN0R","LoadingUI",void 0);var x=u.ccclass,P=u.property;r("LoadingUI",(l=x("LoadingUI"),d=P(c),f=P(c),l((k=e((b=function(r){function e(){for(var e,t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return e=r.call.apply(r,[this].concat(i))||this,s(e,"progressLabel",k,n(e)),s(e,"tipLabel",L,n(e)),e._currentProgress=0,e._isLoading=!1,e._progressTween=null,e._taskQueue=[],e._currentTaskIndex=0,e}t(e,r);var o=e.prototype;return o.startLoading=function(r){void 0===r&&(r=0),this._isLoading?h.warn("Loading is already in progress"):(this.node.active=!0,this._isLoading=!0,this._currentProgress=r,this._updateProgressDisplay(this._currentProgress))},o.addTask=function(r,e,t){this._taskQueue.push({progress:r,tips:e,callback:t})},o.executeTasks=function(){var r=i(a().mark((function r(){var e,t;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(this._isLoading){r.next=3;break}return h.warn("Loading has not started yet"),r.abrupt("return");case 3:this._currentTaskIndex=0;case 4:if(!(this._currentTaskIndex<this._taskQueue.length)){r.next=23;break}if((e=this._taskQueue[this._currentTaskIndex]).tips&&(this.tipLabel.string=e.tips),!e.callback){r.next=18;break}if(r.prev=8,!((t=e.callback())instanceof Promise)){r.next=13;break}return r.next=13,t;case 13:r.next=18;break;case 15:r.prev=15,r.t0=r.catch(8),h.error("Loading task failed:",r.t0);case 18:return r.next=20,this._updateProgress(this._currentProgress+e.progress);case 20:this._currentTaskIndex++,r.next=4;break;case 23:return r.next=25,this.finishLoading();case 25:case"end":return r.stop()}}),r,this,[[8,15]])})));return function(){return r.apply(this,arguments)}}(),o.setProgress=function(){var r=i(a().mark((function r(e,t){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(void 0===t&&(t=.3),this._isLoading){r.next=4;break}return h.warn("Loading has not started yet"),r.abrupt("return");case 4:return r.next=6,this._updateProgress(e,t);case 6:case"end":return r.stop()}}),r,this)})));return function(e,t){return r.apply(this,arguments)}}(),o.finishLoading=function(){var r=i(a().mark((function r(e){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(void 0===e&&(e=!1),this._isLoading){r.next=4;break}return h.warn("Loading has not started yet"),r.abrupt("return");case 4:return r.next=6,this._updateProgress(100,.5);case 6:return this._isLoading=!1,r.next=9,new Promise((function(r){return setTimeout(r,500)}));case 9:e&&(this.node.active=!1),this._reset();case 11:case"end":return r.stop()}}),r,this)})));return function(e){return r.apply(this,arguments)}}(),o._reset=function(){this._currentProgress=0,this._taskQueue=[],this._currentTaskIndex=0,this._progressTween&&(this._progressTween.stop(),this._progressTween=null)},o._updateProgress=function(){var r=i(a().mark((function r(e,t){var s=this;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(void 0===t&&(t=.3),e=Math.min(100,Math.max(0,e)),!(t<=0)){r.next=6;break}return this._currentProgress=e,this._updateProgressDisplay(this._currentProgress),r.abrupt("return");case 6:return r.abrupt("return",new Promise((function(r){s._progressTween&&s._progressTween.stop();var n=s._currentProgress;s._progressTween=g({progress:n}).to(t,{progress:e},{onUpdate:function(r){s._currentProgress=Math.floor(r.progress),s._updateProgressDisplay(s._currentProgress)},onComplete:function(){s._currentProgress=e,s._updateProgressDisplay(s._currentProgress),s._progressTween=null,r()}}).start()})));case 7:case"end":return r.stop()}}),r,this)})));return function(e,t){return r.apply(this,arguments)}}(),o._updateProgressDisplay=function(r){this.progressLabel.string=r+"%"},e}(p)).prototype,"progressLabel",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(b.prototype,"tipLabel",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_=b))||_));o._RF.pop()}}}));
- System.register("chunks:///_virtual/LocalizedLabel.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LanguageData.ts","./Logger.ts"],(function(t){var e,a,i,n,o,r,l,c,u,s,d,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,a=t.inheritsLoose,i=t.initializerDefineProperty,n=t.assertThisInitialized,o=t.createClass},function(t){r=t.cclegacy,l=t._decorator,c=t.Label,u=t.error,s=t.Component},function(t){d=t.default},function(t){p=t.Logger}],execute:function(){var f,h,b,L;r._RF.push({},"c4c1axXN+NL4oYQEr2M4qn2","LocalizedLabel",void 0);var D=l.ccclass,g=l.property;t("default",D("LocalizedLabel")(((L=function(t){function e(){for(var e,a=arguments.length,o=new Array(a),r=0;r<a;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))||this)._debouncedUpdateLabel=null,e.label=null,i(e,"_dataID",b,n(e)),e}a(e,t);var r=e.prototype;return r.onLoad=function(){d.inst||d.init(),p.log("dataID: "+this.dataID+" value: "+d(this.dataID)),this.fetchRender()},r.fetchRender=function(){var t=this.getComponent(c);if(t)return this.label=t,void this.updateLabel()},r.updateLabel=function(){this.label?d(this.dataID,{})&&(this.label.string=d(this.dataID,{})):u("Failed to update localized label, label component is invalid!")},r.debounce=function(t,e,a){var i=arguments,n=this,o=-1;return function(){var r=i,l=function(){o=-1,a||t.apply(n,r)}.bind(n),c=a&&!o;clearTimeout(o),o=setTimeout(l,e),c&&t.apply(n,r)}.bind(this)},o(e,[{key:"dataID",get:function(){return this._dataID},set:function(t){this._dataID!==t&&(this._dataID=t,this.updateLabel())}}]),e}(s)).editor={executeInEditMode:!0,menu:"i18n/LocalizedLabel"},b=e((h=L).prototype,"_dataID",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),e(h.prototype,"dataID",[g],Object.getOwnPropertyDescriptor(h.prototype,"dataID"),h.prototype),f=h))||f);r._RF.pop()}}}));
- System.register("chunks:///_virtual/LocalizedSprite.ts",["./rollupPluginModLoBabelHelpers.js","cc","./LanguageData.ts","./Logger.ts"],(function(e){var t,r,i,n,a,o,p,s,u,c,l;return{setters:[function(e){t=e.applyDecoratedDescriptor,r=e.initializerDefineProperty,i=e.inheritsLoose,n=e.assertThisInitialized},function(e){a=e.cclegacy,o=e._decorator,p=e.SpriteFrame,s=e.Sprite,u=e.Component},function(e){c=e.default},function(e){l=e.Logger}],execute:function(){var d,f,g,h,m,S,F,y,L,v,b,z;a._RF.push({},"28bd9xEMv1GKLbTuAi4B4dI","LocalizedSprite",void 0);var w=o.ccclass,B=o.property,D=e("SpriteFrameSet",(d=w("SpriteFrameSet"),f=B({type:p}),d((m=t((h=function(){r(this,"language",m,this),r(this,"spriteFrame",S,this)}).prototype,"language",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),S=t(h.prototype,"spriteFrame",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=h))||g));e("default",(F=w("LocalizedSprite"),y=B({type:[D],displayOrder:1}),F(((z=function(e){function t(){for(var t,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(t=e.call.apply(e,[this].concat(a))||this).sprite=null,r(t,"spriteFrameSet",b,n(t)),t}i(t,e);var a=t.prototype;return a.onLoad=function(){this.fetchRender()},a.fetchRender=function(){var e=this.getComponent(s);if(e)return this.sprite=e,void this.updateSprite(c.curLang)},a.getSpriteFrameByLang=function(e){for(var t=0;t<this.spriteFrameSet.length;++t)if(this.spriteFrameSet[t].language===e)return this.spriteFrameSet[t].spriteFrame},a.updateSprite=function(e){if(this.sprite){var t=this.getSpriteFrameByLang(e);!t&&this.spriteFrameSet[0]&&(t=this.spriteFrameSet[0].spriteFrame),t&&(this.sprite.spriteFrame=t)}else l.error("Failed to update localized sprite, sprite component is invalid!")},t}(u)).editor={executeInEditMode:!0,inspector:"packages://i18n/inspector/localized-sprite.js",menu:"i18n/LocalizedSprite"},b=t((v=z).prototype,"spriteFrameSet",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),L=v))||L));a._RF.pop()}}}));
- System.register("chunks:///_virtual/Logger.ts",["cc","./Constants.ts"],(function(n){var o,r,c;return{setters:[function(n){o=n.cclegacy,r=n._decorator},function(n){c=n.Constants}],execute:function(){var t,e;o._RF.push({},"87f8azWNzFNvrOwZKm5ZhJ5","Logger",void 0);var a=r.ccclass;r.property,n("Logger",a("Logger")(((e=function(){}).log=c.isDebug?function(){for(var n,o=arguments.length,r=new Array(o),c=0;c<o;c++)r[c]=arguments[c];(n=console).log.apply(n,["[DEBUG]"].concat(r))}:function(){},e.error=c.isDebug?function(){for(var n,o=arguments.length,r=new Array(o),c=0;c<o;c++)r[c]=arguments[c];(n=console).error.apply(n,["[DEBUG]"].concat(r)),console.trace("调试堆栈")}:function(){},e.warn=c.isDebug?function(){for(var n,o=arguments.length,r=new Array(o),c=0;c<o;c++)r[c]=arguments[c];(n=console).warn.apply(n,["[DEBUG]"].concat(r))}:function(){},t=e))||t);o._RF.pop()}}}));
- System.register("chunks:///_virtual/main",["./Adapter.ts","./AdapterSafeArea.ts","./AdapterSprite.ts","./AdapterView.ts","./ResolutionAutoFit.ts","./BounceAnimation.ts","./FrameAnimation.ts","./ModelRotator.ts","./BaseExp.ts","./FollowCamera2D.ts","./FreeCamera.ts","./ThirdPersonCamera.ts","./BundleConfig.ts","./CsvManager.ts","./CsvParser.ts","./EventEmitter.ts","./en.ts","./zh.ts","./LanguageData.ts","./LocalizedLabel.ts","./LocalizedSprite.ts","./polyglot.min.ts","./AudioManager.ts","./BundleManager.ts","./PoolManager.ts","./Singleton.ts","./StateManager.ts","./UIManager.ts","./Constants.ts","./GameEnums.ts","./SettingData.ts","./UserData.ts","./AutoBind.ts","./DateTime.ts","./LoadingUI.ts","./Logger.ts","./Nodes.ts","./NumRaiseLable.ts","./SensitiveWords.ts","./Verbatim.ts","./BuildEnemys.ts","./BulletMagazine.ts","./Enemy.ts","./GMap.ts","./Game.ts","./Launch.ts","./Main.ts","./Player.ts","./PlayerCamera.ts","./Sundries.ts","./BulletBase.ts","./GunBase.ts","./Bullet10.ts","./Bullet14.ts","./Gun10.ts","./Gun14.ts","./BoomerangItem.ts","./GunAttrItem.ts","./GunItem.ts","./GunTypeItem.ts","./StoreItem.ts","./TaskEnemyItem.ts","./TaskItem.ts","./UpgradeItem.ts","./Bullet1.ts","./Bullet2.ts","./Bullet3.ts","./Gun1.ts","./Gun2.ts","./Gun3.ts","./PlatformBrowser.ts","./PlatformDefault.ts","./PlatformSystem.ts","./PlatformTT.ts","./PlatformWX.ts","./List.ts","./ListItem.ts","./ArsenalUI.ts","./BuyBoomerangUI.ts","./GunfightShootUI.ts","./ObtainUI.ts","./PauseUI.ts","./SettingUI.ts","./SettleUI.ts","./StoreUI.ts","./SuccessUI.ts","./TossBoomerangUI.ts","./UpgradeGunUI.ts","./MsgHints.ts","./ResUtil.ts","./Utils.ts"],(function(){return{setters:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){}}}));
- System.register("chunks:///_virtual/Main.ts",["./rollupPluginModLoBabelHelpers.js","cc","./List.ts","./Utils.ts","./MsgHints.ts","./UserData.ts","./BaseExp.ts","./AutoBind.ts","./Constants.ts","./UIManager.ts","./TaskItem.ts","./StateManager.ts","./Game.ts","./LanguageData.ts","./AudioManager.ts","./ResUtil.ts"],(function(t){var i,n,e,a,s,o,r,l,u,p,c,d,h,f,b,g,m,I,_,y,B,U,v,M,k,w,x;return{setters:[function(t){i=t.applyDecoratedDescriptor,n=t.inheritsLoose,e=t.initializerDefineProperty,a=t.assertThisInitialized,s=t.createClass},function(t){o=t.cclegacy,r=t._decorator,l=t.Node,u=t.EditBox,p=t.Label,c=t.Vec3,d=t.tween,h=t.easing},function(t){f=t.default},function(t){b=t.Utils},function(t){g=t.default},function(t){m=t.userIns},function(t){I=t.BaseExp},function(t){_=t.autoBind},function(t){y=t.Constants},function(t){B=t.uiMgr},function(t){U=t.TaskItem},function(t){v=t.stateMgr},function(t){M=t.Game},function(t){k=t.default},function(t){w=t.audioMgr},function(t){x=t.ResUtil}],execute:function(){var A,D,G,z,P,T,E,L,C,O,R,N,S,V,H,F,Y;o._RF.push({},"534c6zwQJ5OqoEYReOC1WY6","Main",void 0);var j=r.ccclass,q=r.property;t("Main",(A=j("Main"),D=_(u),G=_({type:p,tooltip:"金币文本"}),z=_({type:p,tooltip:"钻石文本"}),P=_({type:p,tooltip:"任务描述"}),T=_({type:p,tooltip:"关卡等级"}),E=_({type:f,tooltip:"任务数据"}),L=q({type:[l],tooltip:"武器按钮、飞镖按钮、任务列表界面 动画位置节点数组"}),A((R=i((O=function(t){function i(){for(var i,n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return i=t.call.apply(t,[this].concat(s))||this,e(i,"editBox",R,a(i)),e(i,"gold_lable",N,a(i)),e(i,"diamond_lable",S,a(i)),e(i,"task_des_lable",V,a(i)),e(i,"level_lable",H,a(i)),e(i,"task_scrollView",F,a(i)),e(i,"animPosArr",Y,a(i)),i.sceneNames=[y.mainUIs.main],i._tabBarIndex=-1,i.preIndexs=[0],i.taskDatas=[],i.originalPositions=[],i.isLoad=!1,i.audio_BGM="",i}n(i,t);var o=i.prototype;return o.start=function(){this.hasAnim=!1,this.closeOnBlank=!1,B.panels.set(y.mainUIs.main,this.node),v.registerUI(y.gold,this.gold_lable),v.registerUI(y.diamond,this.diamond_lable),this.loadData(),this.node.on(l.EventType.TOUCH_START,this.playBtn.bind(this),this),y.isDebug||(this.editBox.node.active=!1),this.originalPositions=this.animPosArr.map((function(t){return t.position.clone()})),this.playBGM(),this.scheduleOnce((function(){x.loadRes(y.popUIs.arsenalUI),x.loadRes(y.popUIs.upgradeGunUI)}),.2)},o.enterAnim=function(){var t=this.originalPositions[0],i=this.originalPositions[1],n=this.originalPositions[2],e=[new c(t.x,t.y+622,t.z),new c(i.x-148,i.y,i.z),new c(n.x+148,n.y,n.z)];this.animPosArr.forEach((function(t,i){d(t).to(.7,{position:e[i]},{easing:h.backOut}).start()}))},o.loadData=function(){var t=this,i=m.getCurLevelData();i&&(this.task_des_lable.string=k.isZh?i.task:i.task_lang,this.level_lable.string=k("main.关卡任务:%{value}",{value:i.id}),this.taskDatas=[],i.dispose.split("|").forEach((function(i){var n=i.split("_").map(Number),e=n[0],a=n[1],s=b.clone(m.enemyTable).find((function(t){return t.id===e}));s.count=a,t.taskDatas.push(s)})),this.taskDatas.length<=0||(this.task_scrollView.numItems=this.taskDatas.length))},o.setTaskItemData=function(t,i){var n=this.taskDatas[i];t.getComponent(U).init(n)},o.playOrStopBGM=function(t){this.audio_BGM&&(t?w.play(this.audio_BGM,!0,2):w.stop(this.audio_BGM,2))},o.playBGM=function(){w.play(y.audios.BGM,!0,2)},o.playBtn=function(){this.isLoad&&M.I.loadMap(),m.data.cutNum-=1,w.stop(y.audios.BGM);var t=[y.audios.bgm_1,y.audios.bgm_2,y.audios.bgm_3];this.audio_BGM=b.randomArray(t)[0],w.play(this.audio_BGM,!0),M.I.player.restart(),y.isDebug&&!b.isNull(this.editBox.string)&&(m.data.level=parseInt(this.editBox.string)),this.isLoad=!0,this.enterAnim(),b.ratioInterstitialAd(.2),this.scheduleOnce((function(){M.I.buildEnemys.loadLevelEnemys(),B.hide(y.mainUIs.main,(function(){B.show(y.popUIs.gunfightShootUI)}))}),.2)},o.onBtnClicked=function(i,n){t.prototype.onBtnClicked.call(this,i,n);var e=i.target.name;"set_btn"===e?(B.show(y.popUIs.settingUI),b.ratioInterstitialAd(.3)):"shop_btn"===e?(B.show(y.popUIs.storeUI),b.ratioInterstitialAd(.3)):"arsenal_btn"===e?(B.show(y.popUIs.arsenalUI),b.ratioInterstitialAd(.3)):"boomerang_btn"===e?(B.show(y.popUIs.tossBoomerangUI),b.ratioInterstitialAd(.3)):"ads_free_btn"===e?g.show("免广告按钮"):"bulls_eye_btn"===e&&this.playBtn()},o.cutTabBarIndex=function(t,i){var n=this,e=parseInt(i);this._tabBarIndex=e,this.preIndexs.push(e);var a=this.sceneNames[e];a==y.mainUIs.main&&this.animPosArr.forEach((function(t,i){return t.position=n.originalPositions[i]})),B.show(a),this.preIndexs.length>2&&this.preIndexs.shift()},s(i,[{key:"tabBarIndex",get:function(){return this._tabBarIndex},set:function(t){this.cutTabBarIndex(null,t)}}]),i}(I)).prototype,"editBox",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=i(O.prototype,"gold_lable",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=i(O.prototype,"diamond_lable",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=i(O.prototype,"task_des_lable",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=i(O.prototype,"level_lable",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=i(O.prototype,"task_scrollView",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=i(O.prototype,"animPosArr",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),C=O))||C));o._RF.pop()}}}));
- System.register("chunks:///_virtual/ModelRotator.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,o,n,i,r,s,a,c,h,u,l,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,o=t.inheritsLoose,n=t.initializerDefineProperty,i=t.assertThisInitialized},function(t){r=t.cclegacy,s=t._decorator,a=t.quat,c=t.Vec3,h=t.Node,u=t.tween,l=t.Tween,p=t.Component}],execute:function(){var d,g,v,T,_,f,y,R,E;r._RF.push({},"70003AYwQ5EK6B4bgpBRvvR","ModelRotator",void 0);var S=s.ccclass,b=s.property;t("ModelRotator",(d=S("ModelRotator"),g=b({tooltip:"初始旋转速度(度/秒)"}),v=b({tooltip:"触摸后的减速系数(0-1)"}),T=b({tooltip:"斜角旋转的X轴角度(度)"}),d((y=e((f=function(t){function e(){for(var e,o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];return e=t.call.apply(t,[this].concat(r))||this,n(e,"speed",y,i(e)),n(e,"touchDeceleration",R,i(e)),n(e,"tiltAngle",E,i(e)),e.canvasNode=null,e._targetQuat=a(),e._currentSpeed=0,e._touchStartX=0,e._isDragging=!1,e._baseRotation=new c,e}o(e,t);var r=e.prototype;return r.start=function(){this.canvasNode=this.node.parent.parent,this._baseRotation.set(this.tiltAngle,0,-this.tiltAngle),this.node.setRotationFromEuler(this._baseRotation),this.canvasNode.on(h.EventType.TOUCH_START,this.onTouchStart,this),this.canvasNode.on(h.EventType.TOUCH_MOVE,this.onTouchMove,this),this.canvasNode.on(h.EventType.TOUCH_END,this.onTouchEnd,this),this._currentSpeed=this.speed,this.startAutoRotation()},r.startAutoRotation=function(){u(this.node).by(1,{eulerAngles:new c(this._currentSpeed,0,-this._currentSpeed)}).repeatForever().start()},r.onTouchMove=function(t){if(this._isDragging){var e=t.getUILocation().x,o=e-this._touchStartX;this._touchStartX=e;var n=this.node.eulerAngles.clone();n.z+=.5*o,this.node.setRotationFromEuler(new c(this.tiltAngle,0,n.z))}},r.onTouchStart=function(t){this._touchStartX=t.getLocationX(),this._isDragging=!0,this._currentSpeed=0,l.stopAllByTarget(this.node)},r.onTouchEnd=function(){this._isDragging=!1,this._currentSpeed=this.speed*this.touchDeceleration,this.startAutoRotation()},r.onDestroy=function(){this.canvasNode&&(this.canvasNode.off(h.EventType.TOUCH_START,this.onTouchStart,this),this.canvasNode.off(h.EventType.TOUCH_MOVE,this.onTouchMove,this),this.canvasNode.off(h.EventType.TOUCH_END,this.onTouchEnd,this))},e}(p)).prototype,"speed",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 45}}),R=e(f.prototype,"touchDeceleration",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.95}}),E=e(f.prototype,"tiltAngle",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 36}}),_=f))||_));r._RF.pop()}}}));
- System.register("chunks:///_virtual/MsgHints.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PoolManager.ts","./ResUtil.ts"],(function(t){var e,n,i,o,a,r,s,d,l,h,g,c,u,p,f;return{setters:[function(t){e=t.inheritsLoose},function(t){n=t.cclegacy,i=t._decorator,o=t.Node,a=t.UITransform,r=t.Sprite,s=t.Label,d=t.Color,l=t.Tween,h=t.v3,g=t.tween,c=t.find,u=t.Component},function(t){p=t.PoolManager},function(t){f=t.ResUtil}],execute:function(){var m,v;n._RF.push({},"f9972T56jtPDKqqzCx+jmQP","MsgHints",void 0);var w=i.ccclass;i.property,t("default",w("MsgHints")(((v=function(t){function n(){return t.apply(this,arguments)||this}e(n,t),n.createMsgNode=function(){var t=p.getName(n.node_name);if(!t){(t=new o(n.node_name)).addComponent(n),t.active=!0;var e=t.addComponent(a);e.width=n.max_width,e.height=50,t.setPosition(0,0,0);var i=t.addComponent(r);i.sizeMode=r.SizeMode.TRIMMED,i.type=r.Type.SIMPLE,f.setSpriteFrame("msg_hint",i);var l=new o("label"),h=l.addComponent(a);h.width=n.max_width-2*n.padding,h.height=50;var g=l.addComponent(s);g.fontSize=25,g.color=d.WHITE,g.lineHeight=30,g.horizontalAlign=s.HorizontalAlign.CENTER,g.verticalAlign=s.VerticalAlign.CENTER,g.overflow=s.Overflow.NONE,g.isBold=!0,l.parent=t}return t};var i=n.prototype;return i.setMsg=function(t){var e=this.reset();e&&(e.string=t,this._adjustLayout(),this._playAnimation())},i._adjustLayout=function(){var t=this.getMsgLable(),e=null==t?void 0:t.node.getComponent(a),i=this.node.getComponent(a);if(e&&i){var o=n.max_width-2*n.padding,r=Math.min(e.width,n.max_width-2*n.padding);r>=o?(t.overflow=s.Overflow.RESIZE_HEIGHT,e.width=n.max_width-40,i.width=n.max_width,i.height=e.height+10):(t.overflow=s.Overflow.NONE,e.width=r,i.width=r+40,i.height=e.height+30)}},i._playAnimation=function(){var t=this;l.stopAllByTarget(this.node),this.node.setScale(h(0,0,0)),g(this.node).to(.1,{scale:h(1.1,1.1,1)}).to(.1,{scale:h(.9,.9,1)}).to(.1,{scale:h(1,1,1)}).delay(n.default_duration).by(.5,{position:h(0,100,0)}).call((function(){t.reset(),p.putNode(t.node)})).start()},i.reset=function(){var t=this.getMsgLable(),e=t.node.getComponent(a);return e.width=n.max_width-2*n.padding,e.height=50,t.overflow=s.Overflow.NONE,this.node.setScale(h(1,1,1)),t},n.show=function(t){if(t){var e=this.createMsgNode(),i=c("Canvas");if(i){e.active=!0,e.parent=i,e.setSiblingIndex(9999);var o=e.getComponent(n);o&&o.setMsg(t)}}},i.getMsgLable=function(){return this.node.getChildByName("label").getComponent(s)},n}(u)).node_name="MsgHints",v.default_duration=1.5,v.max_width=430,v.padding=15,m=v))||m);n._RF.pop()}}}));
- System.register("chunks:///_virtual/Nodes.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,n,i,o,r,_,s,a,d,u,c,f,l,h,p,m,v;return{setters:[function(t){e=t.createClass},function(t){n=t.cclegacy,i=t.game,o=t.director,r=t.Director,_=t.Node,s=t.Label,a=t.Sprite,d=t.UIOpacity,u=t.UITransform,c=t.Animation,f=t.EditBox,l=t.RichText,h=t.Layout,p=t.ProgressBar,m=t.Slider,v=t.Toggle}],execute:function(){n._RF.push({},"6ad1amQ7hpEvIsDrio8/oVQ","Nodes",void 0);var g=function(){function t(t){var e=this;this.label=void 0,this.sprite=void 0,this.ui_opacity=void 0,this.ui_transform=void 0,this.animation=void 0,this.edit_box=void 0,this.rich_text=void 0,this.layout=void 0,this.progress_bar=void 0,this.slider=void 0,this.toggle=void 0,this._node=void 0,this._order_n=0,this._node=t,this._node.components.forEach((function(t){t instanceof s?e.label=t:t instanceof a?e.sprite=t:t instanceof d?e.ui_opacity=t:t instanceof u?e.ui_transform=t:t instanceof c?e.animation=t:t instanceof f?e.edit_box=t:t instanceof l?e.rich_text=t:t instanceof h?e.layout=t:t instanceof p?e.progress_bar=t:t instanceof m?e.slider=t:t instanceof v&&(e.toggle=t)}))}return t.prototype._set_order_n=function(e){var n=this;if(this._order_n!==e&&this._node.isValid){var o=y(this._node.parent);if(o){this._order_n=e;var r=Date.now()-t._order_update_time_n;t._order_update_task_fs.push((function(){n._node.isValid&&o._node.isValid&&n._node.parent===o._node&&[].concat(o._node.children).sort((function(t,e){var n,i,o,r;return(null!=(n=null==(i=y(t,!1))?void 0:i._order_n)?n:0)-(null!=(o=null==(r=y(e,!1))?void 0:r._order_n)?o:0)})).forEach((function(t,e){t.setSiblingIndex(e)}))})),null===t.order_update_timer&&(null===t.order_update_timer&&r<i.frameTime?t.order_update_timer=setTimeout((function(){t.order_update_timer=null,t._order_update_time_n=Date.now(),t._order_update_task_fs.splice(0,t._order_update_task_fs.length).forEach((function(t){return t()}))}),i.frameTime-r):setTimeout((function(){t._order_update_time_n=Date.now(),t._order_update_task_fs.splice(0,t._order_update_task_fs.length).forEach((function(t){return t()}))}),0))}else this._node.once(_.EventType.PARENT_CHANGED,(function(){setTimeout((function(){n._set_order_n(e)}),0)}),this)}},e(t,[{key:"order_n",get:function(){return this._order_n},set:function(t){this._set_order_n(t)}},{key:"width",get:function(){return this.ui_transform.width},set:function(t){this.ui_transform.width=t}},{key:"height",get:function(){return this.ui_transform.height},set:function(t){this.ui_transform.height=t}},{key:"opacity",get:function(){return this.ui_opacity.opacity},set:function(t){this.ui_opacity.opacity=t}},{key:"anchor",get:function(){return this.ui_transform.anchorPoint},set:function(t){this.ui_transform.anchorPoint=t}}]),t}();function y(t,e){var n;if(void 0===e&&(e=!0),null==t||!t.isValid)return null;var i=null!=(n=g.node_extends_map.get(t))?n:null;return!i&&e&&(i=new g(t),g.node_extends_map.set(t,i)),i}g.node_extends_map=new Map,g.order_update_timer=null,g._order_update_time_n=0,g._order_update_task_fs=[],function(t){t.order_refresh_interval_ms_n=i.frameTime;t.clear=function(){g.order_update_timer&&(clearTimeout(g.order_update_timer),g.order_update_timer=null),g.node_extends_map.clear()}}(y||(y={})),o.on(r.EVENT_BEFORE_SCENE_LAUNCH,y.clear,void 0);t("default",y);n._RF.pop()}}}));
- System.register("chunks:///_virtual/NumRaiseLable.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,i,r,n,u,a,s,o,l;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,r=t.initializerDefineProperty,n=t.assertThisInitialized,u=t.createClass},function(t){a=t.cclegacy,s=t._decorator,o=t.math,l=t.Label}],execute:function(){var c,h,p,_,d;a._RF.push({},"3f43dXREG5P1LIco7w9mkJo","NumRaiseLable",void 0);var m=s.ccclass,g=s.property;t("NumRaiseLable",(c=m("NumRaiseLable"),h=g({tooltip:"数字增长动画持续时间(秒)"}),c((d=e((_=function(t){function e(){for(var e,i=arguments.length,u=new Array(i),a=0;a<i;a++)u[a]=arguments[a];return e=t.call.apply(t,[this].concat(u))||this,r(e,"_duration",d,n(e)),e._currentValue=0,e._targetValue=0,e._isAnimating=!1,e._incrementPerFrame=0,e}i(e,t);var a=e.prototype;return a.startCounting=function(t,e){this._isAnimating&&this.stopCounting();var i=null!=e?e:this._duration;this._targetValue=t,this._currentValue=0,this._isAnimating=!0,this._incrementPerFrame=this._targetValue/(60*i),this.unschedule(this.updateNumber),this.schedule(this.updateNumber,1/60)},a.stopCounting=function(){this._isAnimating=!1,this.unschedule(this.updateNumber),this._currentValue=this._targetValue,this.updateDisplay()},a.completeCounting=function(){this.stopCounting(),this._currentValue=this._targetValue,this.updateDisplay()},a.updateNumber=function(){this._isAnimating&&(this._currentValue+=this._incrementPerFrame,this._currentValue>=this._targetValue&&(this._currentValue=this._targetValue,this._isAnimating=!1,this.unschedule(this.updateNumber)),this.updateDisplay())},a.updateDisplay=function(){this.string=Math.floor(this._currentValue).toString()},a.onDestroy=function(){this.unschedule(this.updateNumber)},u(e,[{key:"duration",get:function(){return this._duration},set:function(t){this._duration=o.clamp(t,.1,5)}}]),e}(l)).prototype,"_duration",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.5}}),e(_.prototype,"duration",[g],Object.getOwnPropertyDescriptor(_.prototype,"duration"),_.prototype),p=_))||p));a._RF.pop()}}}));
- System.register("chunks:///_virtual/ObtainUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BaseExp.ts","./AutoBind.ts","./UserData.ts","./Constants.ts","./UIManager.ts","./ResUtil.ts","./LanguageData.ts"],(function(t){var i,e,n,a,o,l,r,s,c,u,p,b,h,d,f,_,g,y,m;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.inheritsLoose,n=t.initializerDefineProperty,a=t.assertThisInitialized},function(t){o=t.cclegacy,l=t._decorator,r=t.Node,s=t.Sprite,c=t.Label,u=t.Tween,p=t.tween,b=t.Vec3},function(t){h=t.BaseExp},function(t){d=t.autoBind},function(t){f=t.userIns},function(t){_=t.Constants},function(t){g=t.uiMgr},function(t){y=t.ResUtil},function(t){m=t.default}],execute:function(){var v,w,U,I,B,z,C,A,k,F,O,D,T,L,R,S,Z;o._RF.push({},"f34aaF0nZZBjK1olhfGubr9","ObtainUI",void 0);var x=l.ccclass;l.property,t("ObtainUI",(v=x("ObtainUI"),w=d({type:r,tooltip:"旋转光节点"}),U=d({type:s,tooltip:"获得的物品图片"}),I=d({type:s,tooltip:"获得的物品图片缩影"}),B=d({type:c,tooltip:"获得的物品的名字"}),z=d({type:c,tooltip:"描述文字"}),C=d({type:r,tooltip:"底部提交确认按钮"}),A=d({type:r,tooltip:"拥有状态"}),v((O=i((F=function(t){function i(){for(var i,e=arguments.length,o=new Array(e),l=0;l<e;l++)o[l]=arguments[l];return i=t.call.apply(t,[this].concat(o))||this,n(i,"rotation_light",O,a(i)),n(i,"obtain_good",D,a(i)),n(i,"good_sy_sp",T,a(i)),n(i,"name_lable",L,a(i)),n(i,"dec_lable",R,a(i)),n(i,"confim_btn",S,a(i)),n(i,"owned_lable",Z,a(i)),i.data=null,i.id="",i.cb=null,i.isConvert=!1,i}e(i,t);var o=i.prototype;return o.start=function(){this.closeOnBlank=!1},o.show=function(){this.id=arguments.length<=0?void 0:arguments[0],this.cb=arguments.length<=1?void 0:arguments[1],this.hasAnim=!0,this.ui()},o.ui=function(){var t=this;u.stopAllByTarget(this.rotation_light),p(this.rotation_light).by(2,{eulerAngles:new b(0,0,-360)}).repeatForever().start(),this.data=f.boomerangTable.find((function(i){return i.id==t.id})),y.setSpriteFrame(this.data.icon,this.obtain_good),y.setSpriteFrame(this.data.s_icon,this.good_sy_sp),this.name_lable.string=m.isZh?this.data.name:this.data.name_lang,this.dec_lable.string=m.isZh?this.data.description:this.data.dec_lang;var i=this.data.quantity.split("_"),e=i[0];i[1];if(1001==e||1002==e)this.owned_lable.active=!1,this.confim_btn.active=!1,this.scheduleOnce((function(){g.hide(_.popUIs.obtainUI,t.cb)}),1.5);else if(this.confim_btn.active=!0,f.isHasGun(e)){this.owned_lable.active=!0;var n=this.data.value.split("_"),a=n[0],o=n[1],l=f.itemTable.find((function(t){return t.id==a}));this.dec_lable.string="Already owned "+this.data.name_lang+", converted "+o+" "+l.name_lang,this.isConvert=!0}else f.unlockGun(e),this.owned_lable.active=!1,this.isConvert=!1},o.onBtnClicked=function(i,e){var n=this;t.prototype.onBtnClicked.call(this,i,e);var a=i.target.name;"confim_btn"!==a&&"close_btn"!==a||(this.unscheduleAllCallbacks(),g.hide(_.popUIs.obtainUI,(function(){null==n.cb||n.cb(n.isConvert)})))},i}(h)).prototype,"rotation_light",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=i(F.prototype,"obtain_good",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=i(F.prototype,"good_sy_sp",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=i(F.prototype,"name_lable",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=i(F.prototype,"dec_lable",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=i(F.prototype,"confim_btn",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=i(F.prototype,"owned_lable",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=F))||k));o._RF.pop()}}}));
- System.register("chunks:///_virtual/PauseUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BaseExp.ts","./UIManager.ts","./Constants.ts","./Game.ts"],(function(n){var t,e,a,s,o,i,u;return{setters:[function(n){t=n.inheritsLoose},function(n){e=n.cclegacy,a=n._decorator},function(n){s=n.BaseExp},function(n){o=n.uiMgr},function(n){i=n.Constants},function(n){u=n.Game}],execute:function(){var r;e._RF.push({},"e8219vIPUdJ9rtMj9UeInkN","PauseUI",void 0);var c=a.ccclass;a.property,n("PauseUI",c("PauseUI")(r=function(n){function e(){return n.apply(this,arguments)||this}t(e,n);var a=e.prototype;return a.show=function(){var n;this.hasAnim=!0,this.closeOnBlank=!1,u.I.isPause=!0,null==(n=o.getPageComponent(i.mainUIs.main))||n.playOrStopBGM(!1)},a.onBtnClicked=function(t,e){n.prototype.onBtnClicked.call(this,t,e);var a,s=t.target.name;"back_main_btn"===s?(u.I.isGameOver=!0,o.pop(i.mainUIs.main),null==(a=o.getPageComponent(i.mainUIs.main))||a.playBGM()):"continue_btn"===s&&o.hide(i.popUIs.pauseUI,(function(){var n;u.I.isPause=!1,null==(n=o.getPageComponent(i.mainUIs.main))||n.playOrStopBGM(!0)}))},e}(s))||r);e._RF.pop()}}}));
- System.register("chunks:///_virtual/PlatformBrowser.ts",["cc","./Constants.ts","./SettingData.ts","./AudioManager.ts"],(function(n){var t,o,i,e,a;return{setters:[function(n){t=n.cclegacy,o=n._decorator},function(n){i=n.Constants},function(n){e=n.settingData},function(n){a=n.audioMgr}],execute:function(){t._RF.push({},"eb6c844IflGH4yGRmIDs+NM","PlatformBrowser",void 0);o.ccclass,o.property,n("default",new(function(){function n(){this.adInstance=null,this.gtag=null,this.openAd=!0}var t=n.prototype;return t.initialize=function(){this.initilizeWindow(),this.adInstance=window.adInstance;try{var n,t;null==(n=window.__woso)||null==(t=n.TopCallback)||t.call(n)}catch(n){}console.log("web ads sdk初始化")},t.initilizeWindow=function(){window.youxi={SoundManager:{pauseAll:function(){e.data.soundFx=!1,e.data.bgMusic=!1,e.saveToCache(),a.stop(i.audios.BGM)},resumeAll:function(){e.data.soundFx=!0,e.data.bgMusic=!0,a.play(i.audios.BGM,!0),e.saveToCache()}},GameManager:{pauseAll:function(){},resumeAll:function(){}},TargetedAds:{open:function(){console.log("开启广告")},clos:function(){console.log("关闭广告")}},Fps:{setfps:function(n){}}}},t.showInterstitialAd=function(n){if(i.isDebug)return console.log("模拟显示插屏广告回调"),void(null==n||n());try{window.showAd("interstitial").then((function(){console.log("rewarded11111")})).catch((function(){}))}catch(n){}},t.showRewardVideo=function(n){if(i.isDebug)return console.log("模拟激励广告回调"),void(null==n||n(!0));try{return void window.showAd("rewarded").then((function(){null==n||n(!0)})).catch((function(){}))}catch(n){}},t.hideBannerAd=function(){},t.showBannerAd=function(){},t.vibrateShort=function(){},n}()));t._RF.pop()}}}));
- System.register("chunks:///_virtual/PlatformDefault.ts",["cc"],(function(o){var n,e,t;return{setters:[function(o){n=o.cclegacy,e=o.sys,t=o.native}],execute:function(){n._RF.push({},"8bc71in2KdBv7OXj86n3Sph","PlatformDefault",void 0);o("default",new(function(){function o(){}var n=o.prototype;return n.initialize=function(){console.log("初始化默认广告框架")},n.showToast=function(o){console.log("显示toast ",o)},n.shareAppMessage=function(o){void 0===o&&(o={}),console.log("分享 ",o)},n.vibrateShort=function(o){void 0===o&&(o={}),console.log("短震动 ",o)},n.vibrateLong=function(o){void 0===o&&(o={}),console.log("长震动 ",o)},n.shareShowReward=function(o){void 0===o&&(o=null),console.log("直接执行分享回调"),o&&o()},n.addDesk=function(o){void 0===o&&(o=null),console.log("添加到桌面回调"),o&&o()},n.showRewardVideo=function(o){void 0===o&&(o=null),console.log("直接执行视频回调"),e.platform==e.Platform.ANDROID?(t.reflection.callStaticMethod("org/cocos2dx/javascript/AppActivity","videoAd","()V"),o&&o(!0)):e.platform==e.Platform.IOS?(t.reflection.callStaticMethod("AppController","videoAd",""),o&&o(!0)):o&&o(!0)},n.showBannerAd=function(){console.log("显示banner广告")},n.hideBannerAd=function(o){void 0===o&&(o=!1),console.log("隐藏banner广告,刷新:",o)},n.refreshBannerAd=function(){console.log("刷新banner广告")},n.showInterstitialAd=function(){console.log("显示插屏广告")},n.showCustomAd=function(){console.log("显示自定义广告")},n.hideCustomAd=function(){console.log("隐藏自定义广告")},n.showSigleCustomAd=function(){console.log("展示单个自定义广告")},n.hideSigleCustomAd=function(){console.log("隐藏展示单个自定义广告")},n.exitGame=function(){console.log("退出游戏")},n.__createVideoAd=function(){console.log("创建视频广告")},n.__createBannerAd=function(){console.log("创建banner广告")},n.__createInterstitialAd=function(){console.log("创建插屏广告")},n.__customAdExist=function(){console.log("格子广告是否存在")},n.isSupportDesk=function(){return!1},o}()));n._RF.pop()}}}));
- System.register("chunks:///_virtual/PlatformSystem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./PlatformWX.ts","./PlatformTT.ts","./PlatformBrowser.ts","./PlatformDefault.ts"],(function(t){var a,r,e,i,l,o,f;return{setters:[function(t){a=t.createClass},function(t){r=t.cclegacy,e=t.sys},function(t){i=t.default},function(t){l=t.default},function(t){o=t.default},function(t){f=t.default}],execute:function(){r._RF.push({},"31cd1bUUBBEP6aN25q43y53","PlatformSystem",void 0);t("default",new(function(){function t(){this._platformWX=i,this._platformTT=l,this._platformBrowser=o,this._platformDefault=f}return t.prototype.initialize=function(){switch(e.platform){case e.Platform.WECHAT_GAME:this._platformWX.initialize();break;case e.Platform.BYTEDANCE_MINI_GAME:this._platformTT.initialize();break;case e.Platform.MOBILE_BROWSER:case e.Platform.DESKTOP_BROWSER:this._platformBrowser.initialize();break;default:this._platformDefault.initialize()}},a(t,[{key:"platform",get:function(){switch(e.platform){case e.Platform.WECHAT_GAME:return this._platformWX;case e.Platform.BYTEDANCE_MINI_GAME:return this._platformTT;default:return this._platformBrowser}}}]),t}()));r._RF.pop()}}}));
- System.register("chunks:///_virtual/PlatformTT.ts",["cc"],(function(e){var n;return{setters:[function(e){n=e.cclegacy}],execute:function(){n._RF.push({},"c097aDI7bFCML/d7lEO/gd8","PlatformTT",void 0);var i,t={banner:"30a3ll993k15aakgla",video:"o1h5n7r8fnp31df3g1",interstitial:"4687fak66i8aklc5hd"};e("default",new(function(){function e(){this._onHideTime=1/0,this._shareTimes=0,this._rewardVideo=void 0,this._bannerAd=void 0,this._interstitialAd=void 0,this._shareSuccessHandler=null,this._videoSuccessHandler=null,this._showInterstitialAdTime=null,this._shareModalIsActive=!1,this._shareStr="东北F4来到美国西部拓荒时代,保卫城镇,完成自我救赎。"}var n=e.prototype;return n.initialize=function(){var e=this;i=tt,console.log("初始化抖音框架"),i.onShow((function(e){1104==e.scene&&console.log("从侧边栏复访")})),i.showShareMenu({withShareTicket:!0,menus:["shareAppMessage","shareTimeline"],success:function(){},fail:function(){},complete:function(){}}),i.onShareAppMessage(function(){i.shareAppMessage({title:this._shareStr,query:"shareMsg=a=1"})}.bind(this)),i.onShow((function(n){null!=e._shareSuccessHandler&&(e._shareModalIsActive||(Date.now()-e._onHideTime>=1900?e._shareSuccessHandler&&e._shareSuccessHandler(!0):(i.showModal({title:"分享提示",content:"成功分享到群即可获得奖励",success:function(n){n.confirm?e.shareShowReward(e._shareSuccessHandler(!1)):n.cancel&&(e._shareSuccessHandler=null),e._shareModalIsActive=!1}}),e._shareModalIsActive=!0),e._onHideTime=1/0))})),this.__createVideoAd()},n.isCheckScene=function(e){void 0===e&&(e=null),i.checkScene({scene:"sidebar",success:function(n){e&&(n.isExist,e(!1))},fail:function(n){console.error("检查侧边栏支持失败",n),e&&e(!1)}})},n.openSideBar=function(e){void 0===e&&(e=null),i.navigateToScene({scene:"sidebar",success:function(){null==e||e("成功打开侧边栏",!0)},fail:function(n){null==e||e("打开侧边栏失败",!1)}})},n.isSupportDesk=function(){return!0},n.addDesk=function(e){i.addShortcut({success:function(){i.showToast({title:"创建桌面快捷方式成功"})},fail:function(e){i.showToast({title:"创建桌面快捷方式失败",err:e})}})},n.showToast=function(e){var n={title:"",icon:"none",duration:2e3};Object.assign(n,e),i.showToast(n)},n.shareAppMessage=function(e){void 0===e&&(e={}),i.shareAppMessage(e)},n.vibrateShort=function(e){void 0===e&&(e={}),i.vibrateShort(e)},n.vibrateLong=function(e){void 0===e&&(e={}),i.vibrateLong(e)},n.showCustomAd=function(e){},n.hideCustomAd=function(){},n.showSigleCustomAd=function(){},n.hideSigleCustomAd=function(){},n.shareShowReward=function(e){void 0===e&&(e=null),e&&(this._shareSuccessHandler=e),this._onHideTime=Date.now(),this.shareAppMessage({title:this._shareStr,query:"shareMsg=a=1"})},n.showRewardVideo=function(e){var n=this;void 0===e&&(e=null),this._rewardVideo?(this._videoSuccessHandler=e,this._rewardVideo.show().then((function(){console.log("视频播放成功")})).catch((function(i){n._rewardVideo.load().then((function(){n._rewardVideo.show().then((function(){console.log("视频重新加载,播放成功")}))})).catch((function(i){null==n._videoSuccessHandler||n._videoSuccessHandler(!1),n.shareShowReward(e),n._videoSuccessHandler=null}))}))):this.__turnVideoToShare(e)},n.showBannerAd=function(){var e=this;if(this._bannerAd){var n=i.getSystemInfoSync(),t=n.screenWidth,s=n.screenHeight;this._bannerAd.show().then((function(){e._bannerAd.style.left=(t-e._bannerAd.style.realWidth)/2,e._bannerAd.style.top=s-e._bannerAd.style.realHeight})).catch((function(e){console.log("banner广告显示出错",e)}))}},n.hideBannerAd=function(e){void 0===e&&(e=!1),this._bannerAd&&(this._bannerAd.hide(),e&&this.refreshBannerAd())},n.refreshBannerAd=function(){this._bannerAd&&(this._bannerAd.destroy(),this.__createBannerAd())},n.showInterstitialAd=function(e){if(void 0===e&&(e=!1),e){if(!this._interstitialAd)return;this._interstitialAd.show()}else{if(!this._interstitialAd)return;var n=Date.now();if(null==this._showInterstitialAdTime)return void(this._showInterstitialAdTime=n);n-this._showInterstitialAdTime>12e4&&(this._interstitialAd.show(),this._showInterstitialAdTime=n)}},n.exitGame=function(){wx.exitMiniProgram({})},n.__createVideoAd=function(){var e=this;this._rewardVideo=i.createRewardedVideoAd({adUnitId:t.video}),this._rewardVideo.onClose((function(n){n&&n.isEnded||void 0===n?null==e._videoSuccessHandler||e._videoSuccessHandler(!0):(e.showToast({title:"完整观看视频才有奖励哦"}),null==e._videoSuccessHandler||e._videoSuccessHandler(!1)),e._videoSuccessHandler=null})),this._rewardVideo.onError((function(n){null==e._videoSuccessHandler||e._videoSuccessHandler(!1),e.showToast({title:"暂时没有可观看的视频"}),e.shareShowReward(e._videoSuccessHandler),e._videoSuccessHandler=null}))},n.__createBannerAd=function(){var e=i.getSystemInfoSync(),n=e.screenWidth,s=e.screenHeight,o=.85*n,r=(n-o)/2;this._bannerAd=i.createBannerAd({adUnitId:t.banner,adIntervals:48,style:{left:r,top:s-70,width:o,height:70}}),this._bannerAd.onError((function(e){e.errCode})),this._bannerAd.onResize((function(){}))},n.__createInterstitialAd=function(){this._interstitialAd=i.createInterstitialAd({adUnitId:t.interstitial})},n.__turnVideoToShare=function(e){this.shareShowReward(e),this._videoSuccessHandler=null},e}()));n._RF.pop()}}}));
- System.register("chunks:///_virtual/PlatformWX.ts",["cc","./Adapter.ts","./Constants.ts"],(function(e){var t,s,i;return{setters:[function(e){t=e.cclegacy},function(e){s=e.Adapter},function(e){i=e.Constants}],execute:function(){t._RF.push({},"d1121qicJhCnZMiZ3CzCLbc","PlatformWX",void 0);var n={banner:"adunit-fa7b08ac6d8cf200",video:"adunit-29b5f0955ee77f59",interstitial:"adunit-a3615ebe31eba64a",multiGridCustom:"adunit-xxx",sigleGridCustom:"adunit-d4f43001efd879de"};e("default",new(function(){function e(){this._onHideTime=1/0,this._rewardVideo=void 0,this._bannerAd=void 0,this._interstitialAd=void 0,this._customAd=void 0,this._sigleCustomAd=void 0,this._shareSuccessHandler=null,this._videoSuccessHandler=null,this._customAdCloseHandler=null,this._showInterstitialAdTime=null,this._shareModalIsActive=!1,this._shareStr="东北F4来到美国西部拓荒时代,保卫城镇,完成自我救赎。"}var t=e.prototype;return t.initialize=function(){var e=this;console.log("初始化微信框架"),wx.showShareMenu({withShareTicket:!0,menus:["shareAppMessage","shareTimeline"],success:function(){},fail:function(){},complete:function(){}}),wx.onShareAppMessage(function(){wx.shareAppMessage({imageUrl:"share.jpg",title:this._shareStr,query:"shareMsg=a=1"})}.bind(this)),wx.onShow((function(t){null!=e._shareSuccessHandler&&(e._shareModalIsActive||(Date.now()-e._onHideTime>=1900?e._shareSuccessHandler&&e._shareSuccessHandler(!0):(wx.showModal({title:"分享提示",content:"成功分享到群即可获得奖励",success:function(t){t.confirm?e.shareShowReward(e._shareSuccessHandler(!1)):t.cancel&&(e._shareSuccessHandler=null),e._shareModalIsActive=!1}}),e._shareModalIsActive=!0),e._onHideTime=1/0))})),this.__createVideoAd()},t.showToast=function(e){var t={title:"",icon:"none",duration:2e3};Object.assign(t,e),wx.showToast(t)},t.shareAppMessage=function(e){void 0===e&&(e={}),wx.shareAppMessage(e)},t.vibrateShort=function(e){void 0===e&&(e={}),wx.vibrateShort(e)},t.vibrateLong=function(e){void 0===e&&(e={}),wx.vibrateLong(e)},t.isSupportDesk=function(){return!!wx.canAddToFavorites},t.addDesk=function(){wx.canAddToFavorites?wx.canAddToFavorites({success:function(e){e.canAdd?wx.addToFavorites({title:i.gameName,query:"",success:function(){this.showToast({title:"添加到桌面成功"})},fail:function(e){this.showToast({title:"添加到桌面失败",err:e})}}):this.showToast({title:"当前环境不支持添加到桌面"})},fail:function(e){this.showToast({title:"检查添加到桌面权限失败",err:e})}}):this.showToast({title:"当前环境不支持添加到桌面"})},t.shareShowReward=function(e){void 0===e&&(e=null),e&&(this._shareSuccessHandler=e),this._onHideTime=Date.now(),this.shareAppMessage({imageUrl:"share.jpg",title:this._shareStr,query:"shareMsg=a=1"})},t.showRewardVideo=function(e){var t=this;void 0===e&&(e=null),this._rewardVideo?(this._videoSuccessHandler=e,this._rewardVideo.show().then((function(){console.log("视频播放成功")})).catch((function(s){t._rewardVideo.load().then((function(){t._rewardVideo.show().then((function(){console.log("视频重新加载,播放成功")}))})).catch((function(s){null==t._videoSuccessHandler||t._videoSuccessHandler(!1),t.shareShowReward(e),t._videoSuccessHandler=null}))}))):this.__turnVideoToShare(e)},t.showBannerAd=function(){var e=this;if(this._bannerAd){var t=wx.getSystemInfoSync(),s=t.screenWidth,i=t.screenHeight;this._bannerAd.show().then((function(){e._bannerAd.style.left=(s-e._bannerAd.style.realWidth)/2,e._bannerAd.style.top=i-e._bannerAd.style.realHeight})).catch((function(e){console.log("banner广告显示出错",e)}))}},t.hideBannerAd=function(e){void 0===e&&(e=!1),this._bannerAd&&(this._bannerAd.hide(),e&&this.refreshBannerAd())},t.refreshBannerAd=function(){this._bannerAd&&(this._bannerAd.destroy(),this.__createBannerAd())},t.showInterstitialAd=function(e){if(void 0===e&&(e=!1),e){if(!this._interstitialAd)return;this._interstitialAd.show()}else{if(!this._interstitialAd)return;var t=Date.now();if(null==this._showInterstitialAdTime)return void(this._showInterstitialAdTime=t);t-this._showInterstitialAdTime>12e4&&(this._interstitialAd.show(),this._showInterstitialAdTime=t)}},t.showCustomAd=function(e){this._customAd&&(this._customAdCloseHandler=e,this._customAd.show().catch((function(e){console.log("原生广告显示出错",e)})))},t.hideCustomAd=function(){this._customAd&&this._customAd.hide().catch((function(e){console.log("原生广告隐藏出错",e)}))},t.showSigleCustomAd=function(){this._sigleCustomAd&&this._sigleCustomAd.show().catch((function(e){console.log("原生当个格子广告显示出错",e)}))},t.hideSigleCustomAd=function(){this._sigleCustomAd&&this._sigleCustomAd.hide().catch((function(e){console.log("隐藏单个格子广告出错",e)}))},t.__customSigleAdExist=function(){var e=this;this._sigleCustomAd||this.__createSigleCustomAd(),this._sigleCustomAd.show().then((function(){e._sigleCustomAd.isShow()&&e.hideSigleCustomAd()})).catch((function(t){e._sigleCustomAd.isShow()&&e.hideSigleCustomAd()}))},t.__customAdExist=function(){var e=this;this._customAd||this.__createCustomAd(),this._customAd.show().then((function(){e._customAd.isShow()&&e.hideCustomAd()})).catch((function(t){e._customAd.isShow()&&e.hideCustomAd()}))},t.exitGame=function(){wx.exitMiniProgram({})},t.__createVideoAd=function(){var e=this;this._rewardVideo=wx.createRewardedVideoAd({adUnitId:n.video}),this._rewardVideo.onClose((function(t){t&&t.isEnded||void 0===t?null==e._videoSuccessHandler||e._videoSuccessHandler(!0):(e.showToast({title:"完整观看视频才有奖励哦"}),null==e._videoSuccessHandler||e._videoSuccessHandler(!1)),e._videoSuccessHandler=null})),this._rewardVideo.onError((function(t){null==e._videoSuccessHandler||e._videoSuccessHandler(!1),e.showToast({title:"暂时没有可观看的视频"}),e.shareShowReward(e._videoSuccessHandler),e._videoSuccessHandler=null}))},t.__createBannerAd=function(){var e=wx.getSystemInfoSync(),t=(s.isNormalScreen(),.85*e.screenWidth);this._bannerAd=wx.createBannerAd({adUnitId:n.banner,adIntervals:48,style:{left:0,top:e.screenHeight,width:t,height:70}}),this._bannerAd.onError((function(e){e.errCode})),this._bannerAd.onResize((function(){}))},t.__createInterstitialAd=function(){this._interstitialAd=wx.createInterstitialAd({adUnitId:n.interstitial})},t.__createCustomAd=function(){var e=this,t=wx.getSystemInfoSync();this._customAd=wx.createCustomAd({adUnitId:n.multiGridCustom,adIntervals:60,style:{left:0,top:.16*t.screenHeight,with:.9*t.screenWidth}}),this._customAd&&(this._customAd.onHide((function(t){e._customAdCloseHandler&&e._customAdCloseHandler()})),this._customAd.onError((function(e){e.errCode})))},t.__createSigleCustomAd=function(){var e=wx.getSystemInfoSync(),t=s.isNormalScreen();this._sigleCustomAd=wx.createCustomAd({adUnitId:n.sigleGridCustom,adIntervals:60,style:{left:.49*e.screenWidth,top:.038*e.screenHeight+(t?20:35)}}),this._sigleCustomAd.onError((function(e){console.log("展示格子广告失败1")}))},t.__turnVideoToShare=function(e){this.shareShowReward(e),this._videoSuccessHandler=null},e}()));t._RF.pop()}}}));
- System.register("chunks:///_virtual/Player.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BaseExp.ts","./PoolManager.ts","./UIManager.ts","./Constants.ts","./UserData.ts","./AutoBind.ts","./GunBase.ts","./ResUtil.ts","./Game.ts","./MsgHints.ts","./PlayerCamera.ts","./AudioManager.ts","./Utils.ts","./GameEnums.ts"],(function(t){var e,i,n,a,o,s,l,r,u,h,p,c,d,g,y,f,m,_,b,P,I,v,U,D;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,n=t.initializerDefineProperty,a=t.assertThisInitialized,o=t.createClass},function(t){s=t.cclegacy,l=t._decorator,r=t.Node,u=t.SkeletalAnimation,h=t.Tween},function(t){p=t.BaseExp},function(t){c=t.PoolManager},function(t){d=t.uiMgr},function(t){g=t.Constants},function(t){y=t.userIns},function(t){f=t.autoBind},function(t){m=t.GunBase},function(t){_=t.ResUtil},function(t){b=t.Game},function(t){P=t.default},function(t){I=t.PlayerCamera},function(t){v=t.audioMgr},function(t){U=t.Utils},function(t){D=t.GameEnums}],execute:function(){var k,C,z,G,M,w,A,N,S,H,R,B,T,E,x;s._RF.push({},"2ff50wmAl5EppYKqh0ngPHz","Player",void 0);var O=l.ccclass;l.property,t("Player",(k=O("Player"),C=f({type:r,tooltip:"创建枪的位置"}),z=f({type:r,tooltip:"玩家头的位置"}),G=f({type:r,tooltip:"敌人埋伏点"}),M=f({type:r,tooltip:"玩家身子的位置"}),w=f({type:u,tooltip:"玩家人物动画节点"}),A=f({type:I,tooltip:"玩家摄像机抖动控制"}),k((H=e((S=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return e=t.call.apply(t,[this].concat(o))||this,n(e,"gun_pos",H,a(e)),n(e,"head",R,a(e)),n(e,"ambush",B,a(e)),n(e,"body",T,a(e)),n(e,"player_skeletal",E,a(e)),n(e,"mainCamera",x,a(e)),e.playPosNodes=[],e.curHP=0,e.isDead=!1,e.gun=null,e.isCutShoot=!1,e._shootUI=null,e.isReloadMagazine=!1,e.headShotNum=0,e._pData=null,e}i(e,t);var s=e.prototype;return s.onEnable=function(){(this.playPosNodes=this.node.parent.getChildByName("player_points").children).forEach((function(t){return t.active=!1})),this.gun_pos.children.forEach((function(t){return t.active=!1})),this.loadGunName(this.pData.prb_name)},s.loadGunName=function(t,e){var i=this;void 0===t&&(t=this.pData.prb_name),void 0===e&&(e=!1),U.isNull(t)||(this.player_skeletal.play(D.playerAnimType.idle),this.pData=y.getCurUseGun(),this.curHP=this.pData.hp,!e&&this.gun||(e&&this.gun&&c.putNode(this.gun.node),_.loadRes("player/"+t).then((function(t){if(t){i.isCutShoot=!0,t.parent=i.node,i.gun=t.getComponent(m);var e=i.gun_pos.children.find((function(t){return t.name==i.pData.prb_name}));e||P.show("未找到武器没有对应的位置节点"),(e=e||i.gun_pos)&&(t.worldPosition=e.worldPosition.clone(),t.eulerAngles=e.parent.eulerAngles.clone(),t.scale=e.scale.clone()),i.gun.init(i.pData,i,(function(){}),i.reloadMagazine.bind(i))}}))))},s.reloadMagazine=function(t){var e=this;if(t&&!this.isReloadMagazine){this.isReloadMagazine=!0;var i=450/t.reloadingSpeed*3;_.playSkeletalAnim(this.player_skeletal,D.playerAnimType.reload,i),this.shootUI.reloadMagazineing(i,(function(){var t;e.isReloadMagazine=!1,e.shootUI.gunDataUI(),null==(t=e.player_skeletal)||t.play(D.playerAnimType.idle)}))}},s.restart=function(){b.I.isGameOver=b.I.isPause=!1,this._pData=y.getCurUseGun(),this.isDead=!1,this.isReloadMagazine=!1,this.shootUI&&(this.shootUI.hpProgressBar.progress=1,h.stopAllByTarget(this.shootUI.injury_blood),this.shootUI.injury_blood.active=!1),this.loadGunName(),this.player_skeletal.unscheduleAllCallbacks(),this.player_skeletal.stop(),this.player_skeletal.node.active=!0,this.player_skeletal.play(D.playerAnimType.idle)},s.shoot=function(){this.gun&&!this.isReloadMagazine&&(this.gun.fire(),b.I.player.mainCamera.shake(.2,0,.1))},s.randomCutGun=function(){var t=this;if(this.isReloadMagazine)P.show("The gun is reloading, please wait!");else{var e=y.data.guns;if(e.length>1){var i=e.findIndex((function(e){return e.id==t.pData.id})),n=e[(i+1)%e.length];y.changeGun(n.id),this.loadGunName(n.prb_name,!0)}}},s.removeGun=function(){this.gun&&(this.gun.endFire(),c.putNode(this.gun.node),this.gun=null)},s.subHP=function(t,e){var i=this;if(!(b.I.isPause||b.I.isGameOver||this.isDead||t<=0)){this.curHP-=t,this.curHP=this.curHP<0?0:this.curHP;var n=this.curHP/this.pData.hp;this.shootUI.playerHurtTwinkle(n),this.curHP<=0&&!this.isDead&&(b.I.isGameOver=!0,v.playOneShot(g.audios.loss),d.show(g.popUIs.settleUI,[{isWin:!1,headShotNum:this.headShotNum,cb:function(){}}]),this.isDead=!0,this.recycle(),_.playSkeletalAnim(this.player_skeletal,D.playerAnimType.die,1.5,(function(){i.player_skeletal.stop(),i.player_skeletal.node.active=!1})))}},s.setPlayerPos=function(){if(this.pData){var t=this.playPosNodes.length,e=y.getCurLevelData(),i=Math.min(e.point-1,t-1),n=this.playPosNodes[i];this.node.worldPosition=n.worldPosition.clone(),this.node.eulerAngles=n.eulerAngles.clone()}},s.recycle=function(){this.removeGun(),this.isReloadMagazine=!1,this.headShotNum=0},s.update=function(t){this.isCutShoot&&this.shootUI&&this.pData&&(this.shootUI.gunDataUI(),this.isCutShoot=!1,this.shootUI.originalInitial())},o(e,[{key:"shootUI",get:function(){return this._shootUI||(this._shootUI=d.getPageComponent(g.popUIs.gunfightShootUI)),this._shootUI}},{key:"pData",get:function(){return this._pData||(this._pData=y.getCurUseGun()),this._pData},set:function(t){this._pData=t}}]),e}(p)).prototype,"gun_pos",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=e(S.prototype,"head",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=e(S.prototype,"ambush",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=e(S.prototype,"body",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=e(S.prototype,"player_skeletal",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=e(S.prototype,"mainCamera",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=S))||N));s._RF.pop()}}}));
- System.register("chunks:///_virtual/PlayerCamera.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var i,e,s,a,n,o,r;return{setters:[function(t){i=t.inheritsLoose},function(t){e=t.cclegacy,s=t._decorator,a=t.math,n=t.randomRange,o=t.Vec3,r=t.Component}],execute:function(){var h;e._RF.push({},"619d01JKG1NDJ7W6p8rn+AL","PlayerCamera",void 0);var l=s.ccclass;s.property,t("PlayerCamera",l("PlayerCamera")(h=function(t){function e(){for(var i,e=arguments.length,s=new Array(e),a=0;a<e;a++)s[a]=arguments[a];return(i=t.call.apply(t,[this].concat(s))||this).canShake=!0,i.duration=0,i.elapsed=0,i.timer=0,i.originalPos=new o,i.shakeAmplitude=1,i.targetZ=0,i.startZ=0,i}i(e,t);var s=e.prototype;return s.start=function(){this.originalPos=this.node.position.clone()},s.shake=function(t,i,e){void 0===e&&(e=0),this.canShake||(this.canShake=!0,this.duration=t,this.shakeAmplitude=i,this.startZ=this.node.position.z,this.targetZ=this.startZ+e,this.elapsed=0)},s.update=function(t){if(this.canShake){this.elapsed+=t;var i=Math.min(this.elapsed/this.duration,1),e=a.lerp(this.startZ,this.targetZ,this.easeOutQuad(i)),s=n(-this.shakeAmplitude,this.shakeAmplitude),o=n(-this.shakeAmplitude,this.shakeAmplitude);this.node.setPosition(this.originalPos.x+s,this.originalPos.y+o,e),i>=1&&(this.canShake=!1,this.node.setPosition(this.originalPos.x,this.originalPos.y,this.startZ))}else this.node.position=this.originalPos},s.easeOutQuad=function(t){return t*(2-t)},e}(r))||h);e._RF.pop()}}}));
- System.register("chunks:///_virtual/polyglot.min.ts",["cc"],(function(n){var t;return{setters:[function(n){t=n.cclegacy}],execute:function(){n("polyglot",(function(n){return new g(n)})),t._RF.push({},"26839JcVWpGabE9xA7/uWJw","polyglot.min",void 0);var r=function(n,t,r){if(n=arguments[0],t="function"==typeof arguments[1]?arguments[1]:new Function,Array.isArray(n))n.forEach((function(n,r,e){t(n,r)}));else for(var e in n)if(n.hasOwnProperty(e)){var i=n[e];t(i,e)}},e=function(n,t){return n.hasOwnProperty(t)};var i=function(n){!function(n){console.warn(n)}(n)},s=String.prototype.replace,o=String.prototype.split,u="||||",a=function(n){var t=n%100,r=t%10;return 11!==t&&1===r?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},l={pluralTypes:{arabic:function(n){if(n<3)return n;var t=n%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:a,chinese:function(){return 0},croatian:a,french:function(n){return n>1?1:0},german:function(n){return 1!==n?1:0},russian:a,lithuanian:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&n%10<=9&&(n%100<11||n%100>19)?1:2},czech:function(n){return 1===n?0:n>=2&&n<=4?1:2},polish:function(n){if(1===n)return 0;var t=n%10;return 2<=t&&t<=4&&(n%100<10||n%100>=20)?1:2},icelandic:function(n){return n%10!=1||n%100==11?1:0},slovenian:function(n){var t=n%100;return 1===t?0:2===t?1:3===t||4===t?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function c(n,t){var e=function(n){var t={};return r(n,(function(n,e){r(n,(function(n){t[n]=e}),this)}),this),t}(n.pluralTypeToLanguages);return e[t]||e[o.call(t,/-/,1)[0]]||e.en}function f(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var h=/%\{(.*?)\}/g;function p(n,t,r,i,a){if("string"!=typeof n)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return n;var f=n,p=i||h,g=a||l,y="number"==typeof t?{smart_count:t}:t;if(null!=y.smart_count&&f){var v=o.call(f,u);f=(v[function(n,t,r){return n.pluralTypes[c(n,t)](r)}(g,r||"en",y.smart_count)]||v[0]).replace(/^\s+|\s+$/gm,"")}return f=s.call(f,p,(function(n,t){return e(y,t)&&null!=y[t]?y[t]:n}))}var g=n("Polyglot",function(){function n(n){this.phrases={},this.pluralRules={},this.currentLocale="",this.onMissingKey=null,this.warn=null,this.tokenRegex=void 0;var t=n||{};this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?p:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:r,this.warn=t.warn||i,this.tokenRegex=function(n){var t=n&&n.prefix||"%{",r=n&&n.suffix||"}";if(t===u||r===u)throw new RangeError('"||||" token is reserved for pluralization');return new RegExp(f(t)+"(.*?)"+f(r),"g")}(t.interpolation),this.pluralRules=t.pluralRules||l}n.transformPhrase=function(n,t,r){return p(n,t,r)};var t=n.prototype;return t.has=function(n){return e(this.phrases,n)},t.t=function(n,t){var r,e,i=null==t?{}:t;if("string"==typeof this.phrases[n])r=this.phrases[n];else if("string"==typeof i._)r=i._;else if(this.onMissingKey){e=(0,this.onMissingKey)(n,i,this.currentLocale,this.tokenRegex,this.pluralRules)}else this.warn('Missing translation for key: "'+n+'"'),e=n;return"string"==typeof r&&(e=p(r,i,this.currentLocale,this.tokenRegex,this.pluralRules)),e},t.replace=function(n){this.clear(),this.extend(n)},t.clear=function(){this.phrases={}},t.locale=function(n){return n&&(this.currentLocale=n),this.currentLocale},t.extend=function(n,t){var e=this;r(n,(function(n,r){var i=t?t+"."+r:r;"object"==typeof n?e.extend(n,i):e.phrases[i]=n}),this)},t.unset=function(n,t){"string"==typeof n?delete this.phrases[n]:r(n,(function(n,r){var e=t?t+"."+r:r;"object"==typeof n?this.unset(n,e):delete this.phrases[e]}),this)},n}());t._RF.pop()}}}));
- System.register("chunks:///_virtual/PoolManager.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(o){var t,e,n,r,l,c,i;return{setters:[function(o){t=o.inheritsLoose},function(o){e=o.cclegacy,n=o._decorator,r=o.Prefab,l=o.instantiate,c=o.Vec3,i=o.Component}],execute:function(){var s,a;e._RF.push({},"43f17BYDINONr03pwdby0M9","PoolManager",void 0);var u=n.ccclass;n.property,o("PoolManager",u("PoolManager")(((a=function(o){function e(){return o.apply(this,arguments)||this}return t(e,o),e.getNode=function(o,t){var e=o instanceof r?o.data.name:o.name,n=null,i=this._objectPools.get(e);return(n=(null==i?void 0:i.length)>0?i.pop():l(o))&&(n.active=!0,n.position=c.ZERO,t&&n.setParent(t)),n},e.getName=function(o,t){var e=this._objectPools.get(o),n=null==e?void 0:e.pop();return n&&(n.active=!0,t&&n.setParent(t)),null!=n?n:null},e.putNode=function(o){if(null!=o&&o.isValid&&o){var t=o.name;o.removeFromParent(),o.active=!1,t?(this._objectPools.has(t)||this._objectPools.set(t,[]),this._objectPools.get(t).push(o)):o.destroy()}},e.getPoolSize=function(o){var t,e;return null!=(t=null==(e=this._objectPools.get(o))?void 0:e.length)?t:0},e.clearPool=function(o){var t=this._objectPools.get(o);t&&(t.forEach((function(o){return o.destroy()})),this._objectPools.delete(o))},e.clearAll=function(){this._objectPools.forEach((function(o,t){o.forEach((function(o){return o.destroy()}))})),this._objectPools.clear()},e}(i))._objectPools=new Map,s=a))||s);e._RF.pop()}}}));
- System.register("chunks:///_virtual/ResolutionAutoFit.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var i,e,o,n,s,l,u,c,r,a,h;return{setters:[function(t){i=t.inheritsLoose},function(t){e=t.cclegacy,o=t._decorator,n=t.screen,s=t.view,l=t.find,u=t.UITransform,c=t.Size,r=t.ResolutionPolicy,a=t.size,h=t.Component}],execute:function(){var p;e._RF.push({},"f237c0rurlJMK37Xb4mkHTf","ResolutionAutoFit",void 0);var d=o.ccclass;o.property,t("ResolutionAutoFit",d("ResolutionAutoFit")(p=function(t){function e(){for(var i,e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return(i=t.call.apply(t,[this].concat(o))||this)._oldSize=a(),i.lastCheckTime=0,i}i(e,t);var o=e.prototype;return o.start=function(){this.adjustResolutionPolicy()},o.update=function(t){this.lastCheckTime+=t,this.lastCheckTime<.1||(this.lastCheckTime=0,this.adjustResolutionPolicy())},o.adjustResolutionPolicy=function(){var t=n.windowSize;if(!this._oldSize.equals(t)){var i=t.width/t.height,e=s.getDesignResolutionSize(),o=e.width/e.height,a=l("Canvas/SpriteSplash");a&&(a.getComponent(u).contentSize=new c(e.width,e.height)),i>o?s.setResolutionPolicy(r.FIXED_HEIGHT):s.setResolutionPolicy(r.FIXED_WIDTH),this._oldSize.set(t)}},e}(h))||p);e._RF.pop()}}}));
- System.register("chunks:///_virtual/ResUtil.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Utils.ts","./Constants.ts","./BundleManager.ts","./Logger.ts","./PoolManager.ts","./UIManager.ts"],(function(e){var n,t,r,o,a,s,i,c,l,u,f,d,p,m,g,v,h,b,y,S;return{setters:[function(e){n=e.asyncToGenerator,t=e.regeneratorRuntime},function(e){r=e.cclegacy,o=e._decorator,a=e.SpriteFrame,s=e.Node,i=e.Sprite,c=e.director,l=e.v3,u=e.ParticleSystem,f=e.Prefab,d=e.tween,p=e.UIOpacity,m=e.v2},function(e){g=e.Utils},function(e){v=e.Constants},function(e){h=e.bundleMgr},function(e){b=e.Logger},function(e){y=e.PoolManager},function(e){S=e.uiMgr}],execute:function(){var x;r._RF.push({},"3015eqw5adC8ZqXLnnEky33","ResUtil",void 0);var P=o.ccclass;o.property,e("ITEM_TYPE",function(e){return e.Diamond="diamond",e.Coin="coin",e.Boomerang="boomerang",e}({})),e("EffectType",function(e){return e.Bleeding="effects/Prefabs/blood",e.BarrelExplosion="effects/Prefabs/OilBoom",e.RockDebris="effects/Prefabs/StoneBoom",e.VehicleSmoke="effects/Prefabs/HeavySmoke",e.VehicleExplosion="effects/Prefabs/TankBoom",e}({})),e("ResUtil",P("ResUtil")(x=function(){function e(){}return e.setSpriteFrame=function(e,n){if(!g.isNull(e)){var t="texture/"+e+"/spriteFrame";h.loadAsset(v.bundleName.prefabs,t,a,(function(e,t){if(!e){var r=n instanceof s?n.getComponent(i):n;r?r.spriteFrame=t:console.error("Target node does not have a Sprite component!")}}))}},e.setSpriteFrameAsset=function(e,n,t,r,o){g.isNull(e)&&(e=v.bundleName.prefabs,n.startsWith("texture/")||(n="texture/"+n+"/spriteFrame")),g.isNull(n)||h.loadAsset(e,n,t,(function(e,n){if(!e){var t=r instanceof s?r.getComponent(i):r;t?t.spriteFrame=n:console.error("Target node does not have a Sprite component!")}null==o||o(e,n)}))},e.preloadScene=function(e,n,t){g.isNull(e)?b.warn("[SceneLoader] Scene name cannot be null or empty!"):c.preloadScene(e,(function(e,n){null==t||t(null,n>0?e/n:0)}),(function(r,o){if(r)return b.error('[SceneLoader] Failed to preload scene "'+e+'":',r),void(null==t||t(r,0));null==n||n(),b.log('[SceneLoader] Scene "'+e+'" preloaded successfully'),null==t||t(null,1)}))},e.loadRes=function(e,r){return new Promise(n(t().mark((function n(o,a){var s,i;return t().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!g.isNull(e)){n.next=4;break}return o(null),n.abrupt("return");case 4:return n.next=6,h.loadAsset(v.bundleName.prefabs,e,f);case 6:s=n.sent,i=y.getNode(s,r),o(i),n.next=15;break;case 11:n.prev=11,n.t0=n.catch(0),console.error("加载资源失败: "+e,n.t0),a(new Error("加载资源失败:: "+e));case 15:case"end":return n.stop()}}),n,null,[[0,11]])}))))},e.flyAnim=function(){var e=n(t().mark((function e(n,r,o,a,s,i){var c,u,p,b,x,P,w,k,N,R,C,M;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=function(e,n,t,r){for(var o=[],a=Math.PI/180*Math.round(360/r),s=0;s<r;s++){var i=n+e*Math.sin(a*s),c=t+e*Math.cos(a*s);o.unshift(m(i,c))}return o},u=r.worldPosition,p=c(s,u.x,u.y,a),b=new Array,x=0;case 5:if(!(x<p.length)){e.next=18;break}return e.next=8,h.loadAsset(v.bundleName.prefabs,"items/"+n,f);case 8:P=e.sent,(w=y.getNode(P)).setWorldScale(l(.7,.7,.7)),w.parent=S.getCurentSceneRoot(),k=l(p[x].x+g.getRandomInt(0,50),p[x].y+g.getRandomInt(0,50),1),w.setWorldPosition(u),b.push({gold:w,randPos:k});case 15:x++,e.next=5;break;case 18:N=!1,R=o.worldPosition.clone(),C=t().mark((function e(){var n,r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=b[M].randPos,r=b[M].gold,b[M].gold.id=M,d(r).to(.2,{worldPosition:n}).delay(.03*M).to(.7,{worldPosition:l(R.x,R.y,1)}).call((function(){N||(N=!0,d(o).to(.1,{scale:l(2,2,2)}).to(.1,{scale:l(1,1,1)}).call((function(){N=!1})).start());var e=r._id;i(e==b.length-1),y.putNode(r)})).start();case 4:case"end":return e.stop()}}),e)})),M=0;case 22:if(!(M<b.length)){e.next=27;break}return e.delegateYield(C(),"t0",24);case 24:M++,e.next=22;break;case 27:case"end":return e.stop()}}),e)})));return function(n,t,r,o,a,s){return e.apply(this,arguments)}}(),e.loadEffect=function(){var r=n(t().mark((function n(r,o,a,s,i){var c;return t().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return void 0===a&&(a=0),n.next=3,e.loadRes(r,s);case 3:c=n.sent,o&&(c.worldPosition=o),s&&c.getComponentsInChildren(u).forEach((function(e){e.play()})),a>0&&c.getComponent(p).scheduleOnce(function(){this.getComponentsInChildren(u).forEach((function(e){e.stop()})),y.putNode(this)}.bind(c),a);case 7:case"end":return n.stop()}}),n)})));return function(e,n,t,o,a){return r.apply(this,arguments)}}(),e.playSkeletalAnim=function(e,n,t,r){if(void 0===t&&(t=0),void 0===r&&(r=null),e){var o=e.clips.find((function(e){return e.name==n}));if(o){var a=e.getState(n);a.speed=t>0?o.duration/t:1,e.play(n),r&&e.scheduleOnce(r,t>0?t:o.duration)}else b.error('[ResUtil.playSkeletalAnim] 未找到名为 "'+n+'" 的动画剪辑')}},e.playParticle=function(n,t,r,o,a){void 0===t&&(t=0),void 0===r&&(r=l(1,1,1)),g.isNull(n)||e.loadRes(n).then((function(e){e&&(null==o||o(e),e.getComponentsInChildren(u).forEach((function(e){e.node.setWorldScale(r),e.scaleSpace=1,e.stop(),e.play()})),t>0&&setTimeout((function(){e.parent&&y.putNode(e)}),1e3*t),null==a||a())}))},e}())||x);r._RF.pop()}}}));
- System.register("chunks:///_virtual/SensitiveWords.ts",["cc"],(function(a){var n;return{setters:[function(a){n=a.cclegacy}],execute:function(){n._RF.push({},"6423eE1EpBD3p103BCyA6Jq","SensitiveWords",void 0);a("default",["第一代领导","第二代领导","第三代领导","第四代领导","第五代领导","第六代领导","第七代领导","第1代领导","第2代领导","第3代领导","第4代领导","第5代领导","第6代领导","第7代领导","一位老同志的谈话","国办发","中办发","腐败中国","三个呆婊","你办事我放心","社会主义灭亡","打倒中国","灭亡中国","亡党亡国","粉碎四人帮","激流中国","特供","特贡","特共","zf大楼","殃视","贪污腐败","强制拆除","形式主义","政治风波","太子党","上海帮","北京帮","清华帮","红色贵族","权贵集团","河蟹社会","喝血社会","九风","9风","十七大","十7大","17da","九学","9学","四风","4风","双规","南街村","最淫官员","警匪","官匪","独夫民贼","官商勾结","城管暴力执法","强制捐款","毒豺","一党执政","一党专制","一党专政","专制政权","宪法法院","胡平","苏晓康","贺卫方","谭作人","焦国标","万润南","张志新","辛灝年","高勤荣","王炳章","高智晟","司马璐","刘晓竹","刘宾雁","魏京生","寻找林昭的灵魂","别梦成灰","谁是新中国","讨伐中宣部","异议人士","民运人士","启蒙派","选国家主席","民一主","min主","民竹","民珠","民猪","chinesedemocracy","大赦国际","国际特赦","da选","投公","公头","宪政","平反","党章","维权","昝爱宗","宪章","08宪","08xz","觉醒的中国公民日渐清楚地认识到","抿主","民主","敏主","人拳","人木又","人quan","renquan","中国人权","中国的人权","中国新民党","群体事件","群体性事件","上中央","去中央","讨说法","请愿","请命","公开信","联名上书","万人大签名","万人骚动","截访","上访","shangfang","信访","访民","集合","集会","组织集体","静坐","静zuo","jing坐","示威","示wei","游行","you行","游xing","youxing","官逼民反","反party","反共","抗议","亢议","抵制","低制","底制","di制","抵zhi","dizhi","boycott","血书","焚烧中国国旗","baoluan","流血冲突","出现暴动","发生暴动","引起暴动","baodong","灭共","杀毙","罢工","霸工","罢考","罢餐","罢参","罢饭","罢吃","罢食","罢课","罢ke","霸课","ba课","罢教","罢学","罢运","网特","网评员","网络评论员","五毛党","五毛们","5毛党","戒严","jieyan","jie严","戒yan","8的平方事件","知道64","八九年","贰拾年","2o年","20和谐年","贰拾周年","六四","六河蟹四","六百度四","六和谐四","陆四","陆肆","198964","5月35","89年春夏之交","64惨案","64时期","64运动","4事件","四事件","北京风波","学潮","学chao","xuechao","学百度潮","门安天","天按门","坦克压大学生","民主女神","历史的伤口","高自联","北高联","维多利亚公园","thegateofheavenlypeace","bloodisonthesquare","为了忘却的纪念","血洗京城","四二六社论","王丹","柴玲","沈彤","封从德","王超华","王维林","吾尔开希","吾尔开西","侯德健","阎明复","方励之","蒋捷连","丁子霖","辛灏年","蒋彦永","严家其","陈一咨","中华局域网","党的喉舌","互联网审查","当局严密封锁","新闻封锁","封锁消息","爱国者同盟","关闭所有论坛","网络封锁","金盾工程","gfw","无界浏览","无界网络","自由门","何清涟","中国的陷阱","汪兆钧","记者无疆界","境外媒体","维基百科","纽约时报","bbc中文网","华盛顿邮报","世界日报","东森新闻网","东森电视","基督教科学箴言报","星岛日报","亚洲周刊","泰晤士报","美联社","中央社","雅虎香港","wikipedia","youtube","googleblogger","美国之音","美国广播公司","英国金融时报","自由亚洲","中央日报","自由时报","中国时报","反分裂","威胁论","左翼联盟","钓鱼岛","保钓组织","主权","弓单","火乍","木仓","石肖","核蛋","步qiang","bao炸","爆zha","baozha","zha药","zha弹","炸dan","炸yao","zhadan","zhayao","hmtd","三硝基甲苯","六氟化铀","炸药配方","弹药配方","炸弹配方","皮箱炸弹","火药配方","人体炸弹","人肉炸弹","解放军","兵力部署","军转","军事社","8341部队","第21集团军","七大军区","7大军区","北京军区","沈阳军区","济南军区","成都军区","广州军区","南京军区","兰州军区","颜色革命","规模冲突","塔利班","基地组织","恐怖分子","恐怖份子","三股势力","印尼屠华","印尼事件","蒋公纪念歌","马英九","mayingjiu","李天羽","苏贞昌","林文漪","陈水扁","陈s扁","陈随便","阿扁","a扁","告全国同胞书","台百度湾","台完","台wan","taiwan","台弯","湾台","台湾国","台湾共和国","台军","台独","台毒","台du","taidu","twdl","一中一台","打台湾","两岸关系","两岸战争","攻占台湾","支持台湾","进攻台湾","占领台湾","统一台湾","收复台湾","登陆台湾","解放台湾","解放tw","解决台湾","光复民国","台湾独立","台湾问题","台海问题","台海危机","台海统一","台海大战","台海战争","台海局势","入联","入耳关","中华联邦","国民党","x民党","民进党","青天白日","闹独立","duli","fenlie","日本万岁","小泽一郎","劣等民族","汉人","汉维","维汉","吾尔","热比娅","伊力哈木","疆独","东突厥斯坦解放组织","东突解放组织","蒙古分裂分子","列确","阿旺晋美","藏人","臧人","zang人","藏民","藏m","达赖","赖达","dalai","哒赖","dl喇嘛","丹增嘉措","打砸抢","西独","藏独","葬独","臧独","藏毒","藏du","zangdu","支持zd","藏暴乱","藏青会","雪山狮子旗","拉萨","啦萨","啦沙","啦撒","拉sa","lasa","la萨","西藏","藏西","xizang","xi藏","x藏","西z","tibet","希葬","希藏","硒藏","稀藏","西脏","西奘","西葬","西臧","援藏","bjork","王千源","安拉","回教","回族","回回","回民","穆斯林","穆罕穆德","穆罕默德","默罕默德","伊斯兰","圣战组织","清真","清zhen","qingzhen","真主","阿拉伯","高丽棒子","韩国狗","满洲第三帝国","满狗","鞑子","胡的接班人","钦定接班人","习近平","平近习","xjp","习太子","习明泽","老习","温家宝","温加宝","温x","温jia宝","温宝宝","温加饱","温加保","张培莉","温云松","温如春","温jb","胡温","胡x","胡jt","胡boss","胡总","胡王八","hujintao","胡jintao","胡j涛","胡惊涛","胡景涛","胡紧掏","湖紧掏","胡紧套","锦涛","hjt","胡派","胡主席","刘永清","胡海峰","胡海清","江泽民","民泽江","江胡","江主席","江书记","江浙闽","江沢民","江浙民","茳泽民","zemin","ze民","老江","老j","江core","江x","江派","江zm","jzm","江戏子","江蛤蟆","江某某","江贼","江猪","江氏集团","江绵恒","江绵康","王冶坪","江泽慧","邓小平","平小邓","xiao平","邓xp","邓晓平","邓朴方","邓榕","邓质方","毛泽东","猫泽东","猫则东","chairmanmao","猫贼洞","毛zd","毛zx","z东","ze东","泽d","zedong","毛太祖","毛相","主席画像","改革历程","朱镕基","朱容基","朱镕鸡","朱容鸡","朱云来","李鹏","李peng","里鹏","李月月鸟","李小鹏","李小琳","华主席","华国","锋同志","白春礼","薄熙来","薄一波","蔡赴朝","蔡武","曹刚川","常万全","陈炳德","陈德铭","陈建国","陈良宇","陈绍基","陈同海","陈至立","戴秉国","丁一平","董建华","杜德印","杜世成","傅锐","郭伯雄","郭金龙","贺国强","胡春华","耀邦","华建敏","黄华华","黄丽满","黄兴国","回良玉","贾庆林","贾廷安","靖志远","李长春","李春城","李建国","李克强","李岚清","李沛瑶","李荣融","李瑞环","李铁映","李先念","李学举","李源潮","栗智","梁光烈","廖锡龙","林树森","林炎志","林左鸣","令计划","柳斌杰","刘奇葆","刘少奇","刘延东","刘云山","刘志军","龙新民","路甬祥","罗箭","吕祖善","马飚","马恺","孟建柱","欧广源","强卫","沈跃跃","宋平顺","粟戎生","苏树林","孙家正","铁凝","屠光绍","王东明","汪东兴","王鸿举","王沪宁","王乐泉","王洛林","王岐山","王胜俊","王太华","王学军","王兆国","王振华","吴邦国","吴定富","吴官正","无官正","吴胜利","吴仪","奚国华","习仲勋","徐才厚","许其亮","徐绍史","杨洁篪","叶剑英","由喜贵","于幼军","俞正声","袁纯清","曾培炎","曾庆红","曾宪梓","曾荫权","张德江","张定发","张高丽","张立昌","张荣坤","张志国","赵洪祝","紫阳","周生贤","周永康","朱海仑","政治局常委","中纪委","主席像","总书记","中南海","大陆当局","中国当局","北京当局","共产党","党产共","gcd","共贪党","gongchandang","阿共","共一产一党","产党共","公产党","工产党","共c党","共x党","共铲","供产","共惨","供铲党","供铲谠","供铲裆","共残党","共残主义","共产主义的幽灵","拱铲","老共","中共","中珙","中gong","gc党","贡挡","gong党","g产","狗产蛋","共残裆","恶党","邪党","共产专制","共产王朝","裆中央","土共","土g","共狗","g匪","共匪","仇共","communistparty","政府","症腐","政腐","政付","正府","政俯","政一府","政百度府","政f","zhengfu","政zhi","挡中央","档中央","中央领导","中国zf","中央zf","国wu院","中华帝国","gong和","大陆官方","北京政权 ","福音会","中国教徒","统一教","观音法门","清海无上师","盘古","李洪志","志洪李","李宏志","轮功","法轮","轮法功","三去车仑","氵去车仑","发论工","法x功","法o功","法0功","法一轮一功","轮子功","车仑工力","法lun","fa轮","法lg","flg","fl功","falungong","大法弟子","大纪元","dajiyuan","明慧网","明慧周报","正见网","新唐人","伪火","退党","tuidang","退dang","超越红墙","自fen","真善忍","九评","9评","9ping","九ping","jiuping","藏字石","集体自杀","自sha","zi杀","suicide","titor","逢8必灾","逢八必灾","逢9必乱","逢九必乱","朱瑟里诺","根达亚文明","诺查丹玛斯","人类灭亡进程表","按照马雅历法","推背图","推bei图","济世灵文","诸世纪","爱女人","爱液","按摩棒","拔出来","爆草","包二奶","暴干","暴奸","暴乳","爆乳","暴淫","屄","被操","被插","被干","逼奸","仓井空","插暴","操逼","操黑","操烂","肏你","肏死","操死","操我","厕奴","插比","插b","插逼","插进","插你","插我","插阴","潮吹","潮喷","成人电影","成人论坛","成人色情","成人网站","成人文学","成人小说","艳情小说","成人游戏","吃精","赤裸","抽插","扌由插","抽一插","春药","大波","大力抽送","大乳","荡妇","荡女","盗撮","多人轮","发浪","放尿","肥逼","粉穴","封面女郎","风月大陆","干死你","干穴","肛交","肛门","龟头","裹本","国产av","好嫩","豪乳","黑逼","后庭","后穴","虎骑","花花公子","换妻俱乐部","黄片","几吧","鸡吧","鸡巴","鸡奸","寂寞男","寂寞女","妓女","激情","集体淫","奸情","叫床","脚交","金鳞岂是池中物","金麟岂是池中物","精液","就去日","巨屌","菊花洞","菊门","巨奶","巨乳","菊穴","开苞","口爆","口活","口交","口射","口淫","裤袜","狂操","狂插","浪逼","浪妇","浪叫","浪女","狼友","聊性","流淫","铃木麻","凌辱","漏乳","露b","乱交","乱伦","轮暴","轮操","轮奸","裸陪","买春","美逼","美少妇","美乳","美腿","美穴","美幼","秘唇","迷奸","密穴","蜜穴","蜜液","摸奶","摸胸","母奸","奈美","奶子","男奴","内射","嫩逼","嫩女","嫩穴","捏弄","女优","炮友","砲友","喷精","屁眼","品香堂","前凸后翘","强jian","强暴","强奸处女","情趣用品","情色","拳交","全裸","群交","惹火身材","人妻","人兽","日逼","日烂","肉棒","肉逼","肉唇","肉洞","肉缝","肉棍","肉茎","肉具","揉乳","肉穴","肉欲","乳爆","乳房","乳沟","乳交","乳头","三级片","骚逼","骚比","骚女","骚水","骚穴","色逼","色界","色猫","色盟","色情网站","色区","色色","色诱","色欲","色b","少年阿宾","少修正","射爽","射颜","食精","释欲","兽奸","兽交","手淫","兽欲","熟妇","熟母","熟女","爽片","爽死我了","双臀","死逼","丝袜","丝诱","松岛枫","酥痒","汤加丽","套弄","体奸","体位","舔脚","舔阴","调教","偷欢","偷拍","推油","脱内裤","文做","我就色","无码","舞女","无修正","吸精","夏川纯","相奸","小逼","校鸡","小穴","小xue","写真","性感妖娆","性感诱惑","性虎","性饥渴","性技巧","性交","性奴","性虐","性息","性欲","胸推","穴口","学生妹","穴图","亚情","颜射","阳具","杨思敏","要射了","夜勤病栋","一本道","一夜欢","一夜情","一ye情","阴部","淫虫","阴唇","淫荡","阴道","淫电影","阴阜","淫妇","淫河","阴核","阴户","淫贱","淫叫","淫教师","阴茎","阴精","淫浪","淫媚","淫糜","淫魔","淫母","淫女","淫虐","淫妻","淫情","淫色","淫声浪语","淫兽学园","淫书","淫术炼金士","淫水","淫娃","淫威","淫亵","淫样","淫液","淫照","阴b","应召","幼交","幼男","幼女","欲火","欲女","玉女心经","玉蒲团","玉乳","欲仙欲死","玉穴","援交","原味内衣","援助交际","张筱雨","招鸡","招妓","中年美妇","抓胸","自拍","自慰","作爱","18禁","99bb","a4u","a4y","adult","amateur","anal","a片","fuck","gay片","g点","g片","hardcore","h动画","h动漫","incest","porn","secom","sexinsex","sm女王","xiao77","xing伴侣","tokyohot","yin荡","汉芯造假","杨树宽","中印边界谈判结果","喂奶门","摸nai门","酒瓶门","脱裤门","75事件","新疆骚乱","食堂涨价","饭菜涨价","h1n1","瘟疫爆发","yangjia","y佳","yang佳","杨佳","杨j","袭警","杀警","武侯祠","川b26931","贺立旗","周正毅","px项目","骂四川","家l福","家le福","加了服","麦当劳被砸","豆腐渣","这不是天灾","龙小霞","震其国土","yuce","提前预测","地震预测","隐瞒地震","李四光预测","蟾蜍迁徙","地震来得更猛烈","八级地震毫无预报","踩踏事故","聂树斌","万里大造林","陈相贵","张丹红","尹方明","李树菲","王奉友","零八奥运艰","惨奥","奥晕","凹晕","懊运","懊孕","奥孕","奥你妈的运","反奥","628事件","weng安","wengan","翁安","瓮安事件","化工厂爆炸","讨回工资","专业代理","帮忙点一下","帮忙点下","请点击进入","详情请进入","私人侦探","私家侦探","针孔摄象","调查婚外情","信用卡提现","无抵押贷款","广告代理","原音铃声","借腹生子","找个妈妈","找个爸爸","代孕妈妈","代生孩子","代开发票","腾讯客服电话","销售热线","免费订购热线","低价出售","款到发货","回复可见","免费二级域名","免费使用","免费索取","蚁力神","婴儿汤","售肾","刻章办","买小车","套牌车","玛雅网","电脑传讯","视频来源","下载速度","高清在线","全集在线","在线播放","txt下载","六位qq","6位qq","位的qq","个qb","送qb","用刀横向切腹","完全自杀手册","四海帮","足球投注","地下钱庄","中国复兴党","阿波罗网","曾道人","六合彩","改卷内幕","替考试","隐形耳机","出售答案","考中答案","答an","da案","资金周转","救市","股市圈钱","崩盘","资金短缺","证监会","质押贷款","小额贷款","周小川","刘明康","尚福林","孔丹","安眠酮","代血浆","普萘洛尔","呋塞米","西布曲明","testosterone","胰岛素样生长因子","促红细胞生成素","地西泮","尼可刹米","甲睾酮","adrenaline","erythropoietin","地奈德","莫达非尼","氯噻嗪","苯巴比妥","促性腺激素","泼尼松","麻黄草","雄烯二醇","地塞米松","tamoxifen","strychnine","androst","新型毒品","杜冷丁","兴奋剂","mdma","海洛因","海luo因","heroin","diamorphine","diacetylmorphine","鸦片","阿芙蓉","咖啡因","cocain","三唑仑","美沙酮","麻古","k粉","凯他敏","ketamine","冰毒","苯丙胺","cannabis","大麻","爱他死","氯胺酮","benzodiazepines","甲基安非他明","安非他命","吗啡","morphine","摇头丸","迷药","乖乖粉","narcotic","麻醉药","精神药品 ","穴海","协警","纳米比亚","专业调查","有华龙","jq的来","电信路","第一夫人","党鞭","黄巨","荡尽天下","家元自称玉皇大帝","主席李世民","何祚庥","刘刚","不要沉默","后勤集团","食堂涨价","发国难财","浪漫邂逅","红满堂","张小洋","炸学校","子宫","叫晶晶的女孩","回派","社会黑暗","国之母","国母","国姆","东方微点","震惊全球","nowto","chengdu","徐明","六月飞雪","暴力虐待","暴力袭击","天府广场","粮荒","洗脑班","复制地址到地址栏","李愚蠢","中国猪","台湾猪","进化不完全的生命体","震死他们","贱人","装b","大sb","傻逼","傻b","煞逼","煞笔","刹笔","傻比","沙比","欠干","婊子养的","我日你","我操","我草","卧艹","卧槽","爆你菊","艹你","cao你","你他妈","真他妈","别他吗","草你吗","草你丫","操你妈","擦你妈","操你娘","操他妈","日你妈","干你妈","干你娘","娘西皮","狗操","狗草","狗杂种","狗日的","操你祖宗","操你全家","操你大爷","妈逼","你麻痹","麻痹的","妈了个逼","马勒","狗娘养","贱比","贱b","下贱","死全家","全家死光","全家不得好死","全家死绝","白痴","无耻","sb","杀b","你吗b","你妈的","婊子","贱货","人渣","混蛋","媚外","和弦","兼职","限量","铃声","性伴侣","男公关","火辣","精子","射精","诱奸","强奸","做爱","性爱","发生关系","按摩","快感","处男","猛男","少妇","屌","屁股","下体","a片","内裤","浑圆","咪咪","发情","刺激","白嫩","粉嫩","兽性","风骚","呻吟","sm","阉割","高潮","裸露","不穿","一丝不挂","脱光","干你","干死","我干","中日没有不友好的","木牛流马的污染比汽车飞机大","他们嫌我挡了城市的道路","当官靠后台","警察我们是为人民服务的","中石化说亏损","做人不能太cctv了","领导干部吃王八","工商税务两条狼","公检法是流氓","公安把秩序搞乱","剖腹一刀五千几","读不起选个学校三万起","父母下岗儿下地","裙中性运动","qq","匕首","管制刀具","弹药","bb弹","违禁品","军用品","电棍","手枪","机枪","步枪","气枪","电狗","手狗","枪模","模型枪","仿真枪","狙击枪","信号枪","麻醉枪","来福枪","来复枪","冲锋枪","散弹枪","卡宾枪","枪支","枪械","炸药","硝铵","火药","燃烧瓶","可燃物","爆炸物","炸弹","雷管","原子弹","燃烧弹","tnt","qq","sb","sm","银联","云闪付"]);n._RF.pop()}}}));
- System.register("chunks:///_virtual/SettingData.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Constants.ts","./Utils.ts","./Singleton.ts","./AudioManager.ts"],(function(t){var a,e,n,s,i,o,r,c,u;return{setters:[function(t){a=t.inheritsLoose,e=t.createClass},function(t){n=t.cclegacy,s=t._decorator,i=t.sys},function(t){o=t.Constants},function(t){r=t.Utils},function(t){c=t.Singleton},function(t){u=t.audioMgr}],execute:function(){var l;n._RF.push({},"87ebcQ+nuBFsImwA+JoSKmd","SettingData",void 0);var h=s.ccclass,d=(s.property,h("SettingData")(l=function(t){function n(){for(var a,e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return(a=t.call.apply(t,[this].concat(n))||this)._data=null,a}a(n,t);var s=n.prototype;return s.loadFromCache=function(){var t=i.localStorage.getItem(o.localCache.settingData);return t?this._data=JSON.parse(r.decrypt(t)):(this._data={bgMusic:!0,soundFx:!0,vibrate:!1,sensitivity:.2},this.saveToCache()),this.data},s.getSettingDatas=function(){var t=this,a=["背景音乐","音效","震动"];return Object.keys(this.data).map((function(e,n){return{name:a[n],selected:t.data[e]}}))},s.saveToCache=function(){var t=JSON.stringify(this.data);i.localStorage.setItem(o.localCache.settingData,r.encrypt(t))},s.remove=function(){i.localStorage.removeItem(o.localCache.settingData),this.loadFromCache()},e(n,[{key:"data",get:function(){var t=this;return this._data||(this.loadFromCache(),this._data=new Proxy(this._data,{set:function(a,e,n){return a[e]=n,t.saveToCache(),"bgMusic"===e&&(n?u.play(o.audios.BGM,!0):u.stop(o.audios.BGM)),!0}})),this._data}}]),n}(c))||l);t("settingData",d.ins());n._RF.pop()}}}));
- System.register("chunks:///_virtual/SettingUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./SettingData.ts","./BaseExp.ts","./AutoBind.ts","./MsgHints.ts"],(function(t){var e,i,n,r,o,a,s,l,u,p,c,b,d,f;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,n=t.initializerDefineProperty,r=t.assertThisInitialized},function(t){o=t.cclegacy,a=t._decorator,s=t.SpriteFrame,l=t.Sprite,u=t.Slider,p=t.Label},function(t){c=t.settingData},function(t){b=t.BaseExp},function(t){d=t.autoBind},function(t){f=t.default}],execute:function(){var _,g,h,y,m,v,w,S,z,F,M,I,x,D,B,U,C,k,A,H,L,R,E,P,j;o._RF.push({},"47f82CKJgtHg4GSQneRf2In","SettingUI",void 0);var G=a.ccclass,J=a.property;t("SettingUI",(_=G("SettingUI"),g=J({type:s,tooltip:"震动开图片"}),h=J({type:s,tooltip:"震动关闭图片"}),y=J({type:s,tooltip:"背景音乐开图片"}),m=J({type:s,tooltip:"背景音乐关图片"}),v=J({type:s,tooltip:"音效开图片"}),w=J({type:s,tooltip:"音效关图片"}),S=d({type:l,tooltip:"背景音乐节点"}),z=d({type:l,tooltip:"背景音乐勾节点"}),F=d({type:l,tooltip:"音效节点"}),M=d({type:u,tooltip:"滑块节点"}),I=d({type:p,tooltip:"滑块数值节点文本"}),_((B=e((D=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o))||this,n(e,"vibrate_open",B,r(e)),n(e,"vibrate_close",U,r(e)),n(e,"bg_music_open",C,r(e)),n(e,"bg_music_close",k,r(e)),n(e,"sound_open",A,r(e)),n(e,"sound_close",H,r(e)),n(e,"vibrate_sp",L,r(e)),n(e,"bgMusic_sp",R,r(e)),n(e,"sound_sp",E,r(e)),n(e,"slider",P,r(e)),n(e,"speed_num_label",j,r(e)),e}i(e,t);var o=e.prototype;return o.show=function(){this.hasAnim=!0,this.loadDataUI()},o.loadDataUI=function(){this.bgMusic_sp.spriteFrame=c.data.bgMusic?this.bg_music_open:this.bg_music_close,this.sound_sp.spriteFrame=c.data.soundFx?this.sound_open:this.sound_close,this.vibrate_sp.spriteFrame=c.data.vibrate?this.vibrate_open:this.vibrate_close,this.setSlider()},o.setSlider=function(){this.slider.progress=c.data.sensitivity,this.speed_num_label.string=Math.round(100*c.data.sensitivity)+"%"},o.onSliderChanged=function(t,e){var i=this.slider.progress,n=Math.max(.05,parseFloat(i.toFixed(1)));c.data.sensitivity=n,this.setSlider()},o.onBtnClicked=function(e,i){t.prototype.onBtnClicked.call(this,e,i);var n=e.target.name;if("vibrate_sp"===n){var r=c.data.vibrate=!c.data.vibrate;f.show(r?"vibrate has been turned on":"vibrate has been turned off")}else if("bgMusic_sp"===n){var o=c.data.bgMusic=!c.data.bgMusic;f.show(o?"bg music has been turned on":"bg music has been turned off")}else if("sound_sp"===n){var a=c.data.soundFx=!c.data.soundFx;f.show(a?"sound has been turned on":"sound has been turned off")}this.loadDataUI()},e}(b)).prototype,"vibrate_open",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=e(D.prototype,"vibrate_close",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=e(D.prototype,"bg_music_open",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=e(D.prototype,"bg_music_close",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=e(D.prototype,"sound_open",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=e(D.prototype,"sound_close",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=e(D.prototype,"vibrate_sp",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=e(D.prototype,"bgMusic_sp",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=e(D.prototype,"sound_sp",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=e(D.prototype,"slider",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=e(D.prototype,"speed_num_label",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=D))||x));o._RF.pop()}}}));
- System.register("chunks:///_virtual/SettleUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BaseExp.ts","./AutoBind.ts","./UserData.ts","./Constants.ts","./StateManager.ts","./UIManager.ts","./ResUtil.ts","./LanguageData.ts","./Utils.ts","./Game.ts","./PlatformSystem.ts","./AudioManager.ts"],(function(t){var e,i,n,a,l,r,o,s,u,p,_,c,b,d,h,f,m,g,y,w,v,k,z,I,N,S;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,n=t.initializerDefineProperty,a=t.assertThisInitialized},function(t){l=t.cclegacy,r=t._decorator,o=t.SpriteFrame,s=t.Sprite,u=t.Label,p=t.Node,_=t.Tween,c=t.tween,b=t.Vec3},function(t){d=t.BaseExp},function(t){h=t.autoBind},function(t){f=t.userIns},function(t){m=t.Constants},function(t){g=t.stateMgr},function(t){y=t.uiMgr},function(t){w=t.ResUtil,v=t.ITEM_TYPE},function(t){k=t.default},function(t){z=t.Utils},function(t){I=t.Game},function(t){N=t.default},function(t){S=t.audioMgr}],execute:function(){var U,C,B,D,R,F,x,M,T,W,A,L,O,E,G,P,V,H,j,J,Y,q,K,Q,X,Z,$,tt,et,it,nt,at,lt,rt,ot,st,ut,pt,_t;l._RF.push({},"1e3f5MS4V9H7b9mnsCJ0lLu","SettleUI",void 0);var ct=r.ccclass,bt=r.property;t("SettleUI",(U=ct("SettleUI"),C=bt({type:o,tooltip:"成功的图片"}),B=bt({type:o,tooltip:"失败的图片"}),D=bt({type:o,tooltip:"枪默认图片"}),R=h({type:s,tooltip:"成功状态的图片"}),F=h({type:u,tooltip:"关卡等级"}),x=h({type:s,tooltip:"解锁的枪的图片"}),M=h({type:u,tooltip:"解锁进度"}),T=h({type:s,tooltip:"未解锁的枪的图片"}),W=h({type:s,tooltip:"未解锁的枪的图片"}),A=h({type:p,tooltip:"旋转光节点"}),L=h({type:p,tooltip:"任务奖励按钮"}),O=h({type:p,tooltip:"爆头奖励按钮"}),E=h({type:p,tooltip:"下一关按钮"}),G=h({type:p,tooltip:"返回首页"}),P=h({type:p,tooltip:"重新开始"}),V=h({type:p,tooltip:"看视频双倍奖励"}),H=h({type:u,tooltip:"金币文本"}),j=h({type:u,tooltip:"钻石文本"}),U((q=e((Y=function(t){function e(){for(var e,i=arguments.length,l=new Array(i),r=0;r<i;r++)l[r]=arguments[r];return e=t.call.apply(t,[this].concat(l))||this,n(e,"success_sf",q,a(e)),n(e,"fail_sf",K,a(e)),n(e,"gun_def_sf",Q,a(e)),n(e,"success_status_icon",X,a(e)),n(e,"task_num_lable",Z,a(e)),n(e,"gun_icon",$,a(e)),n(e,"progress_num_lable",tt,a(e)),n(e,"gun_not_unlock_icon",et,a(e)),n(e,"gun_unlock_icon",it,a(e)),n(e,"rotation_light",nt,a(e)),n(e,"task_reward_btn",at,a(e)),n(e,"headshot_reward_btn",lt,a(e)),n(e,"next_level_btn",rt,a(e)),n(e,"back_home_btn",ot,a(e)),n(e,"restart_btn",st,a(e)),n(e,"video_btn",ut,a(e)),n(e,"gold_lable",pt,a(e)),n(e,"diamond_lable",_t,a(e)),e.levelData=null,e.param=null,e}i(e,t);var l=e.prototype;return l.start=function(){this.closeOnBlank=!1,g.registerUI(m.gold,this.gold_lable),g.registerUI(m.diamond,this.diamond_lable)},l.show=function(){_.stopAllByTarget(this.rotation_light),this.rotation_light.active=!1,this.hasAnim=!0,this.param=arguments.length<=0?void 0:arguments[0],this.ui()},l.ui=function(){var t=this;f.passNum=this.param.isWin?f.passNum+=1:0,this.gun_not_unlock_icon.spriteFrame=this.gun_def_sf,this.gun_unlock_icon.spriteFrame=this.gun_def_sf,this.success_status_icon.spriteFrame=this.param.isWin?this.success_sf:this.fail_sf;var e=f.getCurLevelData();if(this.levelData=e,e){this.task_num_lable.string=k("main.关卡任务 %{value}",{value:e.id});var i=e.unlock;if(z.isNull(i))this.progress_num_lable.string="looking forward to it";else{var n=i.split("|"),a=n[0],l=n[1].split("/"),r=l[0],o=l[1],s=f.playerGunsTable.find((function(t){return t.id==a}));w.setSpriteFrame(s.gun_unlock_icon,this.gun_unlock_icon),w.setSpriteFrame(s.gun_not_unlock_icon,this.gun_not_unlock_icon),r!=o||z.isNull(a)||(this.rotation_light.active=!0,f.unlockGun(a),c(this.rotation_light).by(2,{eulerAngles:new b(0,0,-360)}).repeatForever().start()),this.progress_num_lable.string=r+"/"+o,this.gun_not_unlock_icon.fillRange=1-Number(r)/Number(o)}}var p=(this.param.isWin?e.reward_1:e.reward_2).split("_"),_=p[0],d=p[1],h=this.task_reward_btn.getChildByName("reward_icon"),m=f.itemTable.find((function(t){return t.id==_}));if(w.setSpriteFrame(m.icon,h),this.task_reward_btn.getChildByName("reward_num_lable").getComponent(u).string="x"+d,this.video_btn.active=this.param.isWin,this.param.isWin){var g=2*Number(d);this.video_btn.getChildByName("reward_num_lable").getComponent(u).string="x"+g}this.scheduleOnce((function(){t.flyReward(m,Number(d),t.task_reward_btn)}),.5);var y=this.param.isWin&&this.param.headShotNum>0;if(this.headshot_reward_btn.active=y,y){var v=I.I.player.pData.headshotReward.split("_"),N=v[0],S=v[1],U=Number(S)*I.I.player.headShotNum,C=this.headshot_reward_btn.getChildByName("reward_icon"),B=f.itemTable.find((function(t){return t.id==N}));w.setSpriteFrame(B.icon,C),this.headshot_reward_btn.getChildByName("reward_num_lable").getComponent(u).string="x"+U,this.scheduleOnce((function(){t.flyReward(B,Number(U),t.headshot_reward_btn)}),.5)}this.next_level_btn.active=this.param.isWin,this.restart_btn.active=!this.param.isWin},l.flyReward=function(t,e,i){e<=0||(S.playOneShot(m.audios.reward),1==t.type?(f.data.gold+=e,w.flyAnim(v.Coin,i,this.gold_lable.node,5,50,(function(t){}))):2==t.type&&(f.data.diamond+=e,w.flyAnim(v.Diamond,i,this.diamond_lable.node,5,50,(function(t){}))))},l.onBtnClicked=function(e,i){var n=this;t.prototype.onBtnClicked.call(this,e,i);var a=e.target.name;if("restart_btn"===a)y.hide(m.popUIs.settleUI,this.param.cb),I.I.restart();else if("back_home_btn"===a)y.pop(m.mainUIs.main);else if("next_level_btn"===a){var l=function(){y.hide(m.popUIs.settleUI,n.param.cb),I.I.nextLevel()},r=I.I.player.pData.adforceShow2;z.getRandomFloat(0,1)<=r?N.platform.showRewardVideo((function(t){t&&l()})):l()}else"video_btn"===a&&N.platform.showRewardVideo((function(t){t&&(n.video_btn.active=!1,n.scheduleOnce((function(){var t=(n.param.isWin?n.levelData.reward_1:n.levelData.reward_2).split("_"),e=t[0],i=t[1],a=2*Number(i),l=f.itemTable.find((function(t){return t.id==e}));n.flyReward(l,a,n.video_btn)}),.3))}))},e}(d)).prototype,"success_sf",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=e(Y.prototype,"fail_sf",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=e(Y.prototype,"gun_def_sf",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=e(Y.prototype,"success_status_icon",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=e(Y.prototype,"task_num_lable",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=e(Y.prototype,"gun_icon",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tt=e(Y.prototype,"progress_num_lable",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),et=e(Y.prototype,"gun_not_unlock_icon",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),it=e(Y.prototype,"gun_unlock_icon",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),nt=e(Y.prototype,"rotation_light",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),at=e(Y.prototype,"task_reward_btn",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lt=e(Y.prototype,"headshot_reward_btn",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rt=e(Y.prototype,"next_level_btn",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ot=e(Y.prototype,"back_home_btn",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),st=e(Y.prototype,"restart_btn",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ut=e(Y.prototype,"video_btn",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pt=e(Y.prototype,"gold_lable",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_t=e(Y.prototype,"diamond_lable",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=Y))||J));l._RF.pop()}}}));
- System.register("chunks:///_virtual/Singleton.ts",["cc"],(function(n){var t;return{setters:[function(n){t=n.cclegacy}],execute:function(){t._RF.push({},"35443DU2a9HQo4/Jh2U4R1R","Singleton",void 0);n("Singleton",function(){function n(){}return n.ins=function(){return this._ins||(this._ins=new this),this._ins},n.destroy=function(){this._ins=null},n}());t._RF.pop()}}}));
- System.register("chunks:///_virtual/StateManager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Singleton.ts","./Constants.ts","./UserData.ts","./Utils.ts"],(function(t){var n,i,e,s,a,r,o;return{setters:[function(t){n=t.inheritsLoose},function(t){i=t.cclegacy,e=t._decorator},function(t){s=t.Singleton},function(t){a=t.Constants},function(t){r=t.userIns},function(t){o=t.Utils}],execute:function(){var u;i._RF.push({},"d10a2XpdK9L24FMMF9uqCTp","StateManager",void 0);var c=e.ccclass,g=(e.property,c("StateManager")(u=function(t){function i(){for(var n,i=arguments.length,e=new Array(i),s=0;s<i;s++)e[s]=arguments[s];return(n=t.call.apply(t,[this].concat(e))||this).uiBindings=new Map,n}n(i,t);var e=i.prototype;return e.registerUI=function(t,n){this.uiBindings.has(t)||this.uiBindings.set(t,[]);var i=this.uiBindings.get(t);i.includes(n)||i.push(n),this.updateSingleUI(t,n)},e.updateAllUI=function(t){var n=this,i=this.uiBindings.get(t);i&&i.forEach((function(i){n.updateSingleUI(t,i)}))},e.updateSingleUI=function(t,n){t==a.gold?n.string=""+o.numberToString(r.data.gold):t==a.diamond&&(n.string=""+o.numberToString(r.data.diamond))},i}(s))||u);t("stateMgr",g.ins());i._RF.pop()}}}));
- System.register("chunks:///_virtual/StoreItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ListItem.ts","./ResUtil.ts","./LanguageData.ts"],(function(t){var e,i,l,a,n,r,o,s,c,u,p;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,l=t.initializerDefineProperty,a=t.assertThisInitialized},function(t){n=t.cclegacy,r=t._decorator,o=t.Sprite,s=t.Label},function(t){c=t.default},function(t){u=t.ResUtil},function(t){p=t.default}],execute:function(){var d,b,_,f,h,y,g,m,v;n._RF.push({},"390ceHQHaxHOp6g08qalaRU","StoreItem",void 0);var I=r.ccclass,S=r.property;t("StoreItem",(d=I("StoreItem"),b=S({type:o,tooltip:"道具图标"}),_=S({type:s,tooltip:"道具描述"}),f=S({type:s,tooltip:"看广告的次数"}),d((g=e((y=function(t){function e(){for(var e,i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return e=t.call.apply(t,[this].concat(n))||this,l(e,"s_icon",g,a(e)),l(e,"s_des_lable",m,a(e)),l(e,"video_label",v,a(e)),e.data=null,e.cb=null,e}i(e,t);var n=e.prototype;return n.clikItemVideo=function(){var t;this.data&&(null==(t=this.cb)||t.call(this,this.data,this.s_icon.node))},n.init=function(t,e){t&&(this.data=t,this.cb=e,u.setSpriteFrame(t.icon,this.s_icon),this.s_des_lable.string=p.isZh?t.des:t.des_lang,this.video_label.string=t.price_2+"/"+t.alreadyVideo)},e}(c)).prototype,"s_icon",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=e(y.prototype,"s_des_lable",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=e(y.prototype,"video_label",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=y))||h));n._RF.pop()}}}));
- System.register("chunks:///_virtual/StoreUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BaseExp.ts","./List.ts","./AutoBind.ts","./UserData.ts","./Utils.ts","./MsgHints.ts","./StoreItem.ts","./Constants.ts","./StateManager.ts","./LanguageData.ts","./PlatformSystem.ts","./ResUtil.ts","./AudioManager.ts"],(function(t){var i,e,n,o,l,a,s,r,c,d,u,p,f,m,h,y,b,_,g,w,L,I;return{setters:[function(t){i=t.applyDecoratedDescriptor,e=t.inheritsLoose,n=t.initializerDefineProperty,o=t.assertThisInitialized,l=t.extends},function(t){a=t.cclegacy,s=t._decorator,r=t.Label},function(t){c=t.BaseExp},function(t){d=t.default},function(t){u=t.autoBind},function(t){p=t.userIns},function(t){f=t.Utils},function(t){m=t.default},function(t){h=t.StoreItem},function(t){y=t.Constants},function(t){b=t.stateMgr},function(t){_=t.default},function(t){g=t.default},function(t){w=t.ResUtil,L=t.ITEM_TYPE},function(t){I=t.audioMgr}],execute:function(){var S,V,v,D,U,z,A,M,k,B,C,R,x,E,O;a._RF.push({},"46841SllVZHFL04WRbWwsxj","StoreUI",void 0);var P=s.ccclass;s.property,t("StoreUI",(S=P("StoreUI"),V=u({type:d,tooltip:"任务数据"}),v=u({type:d,tooltip:"任务数据"}),D=u({type:r,tooltip:"金币文本"}),U=u({type:r,tooltip:"钻石文本"}),z=u({type:r,tooltip:"金币购买的list标题"}),A=u({type:r,tooltip:"钻石购买的list标题"}),S((B=i((k=function(t){function i(){for(var i,e=arguments.length,l=new Array(e),a=0;a<e;a++)l[a]=arguments[a];return i=t.call.apply(t,[this].concat(l))||this,n(i,"coin_scrollView",B,o(i)),n(i,"diamond_scrollView",C,o(i)),n(i,"gold_lable",R,o(i)),n(i,"diamond_lable",x,o(i)),n(i,"coin_title_lable",E,o(i)),n(i,"diamond_title_lable",O,o(i)),i.coinList=[],i.diamondList=[],i}e(i,t);var a=i.prototype;return a.start=function(){this.hasAnim=!1,this.closeOnBlank=!1,b.registerUI(y.gold,this.gold_lable),b.registerUI(y.diamond,this.diamond_lable)},a.show=function(){this.loadStoreData()},a.loadStoreData=function(){var t=f.clone(p.shopTable).map((function(t){return l({},t,{alreadyVideo:0})}));if(this.coinList=t.filter((function(t){return 1===t.type})),this.coinList.length>0){var i=this.coinList[0];this.coin_title_lable.string=_.isZh?i.name:i.name_lang}if(this.coin_scrollView.numItems=this.coinList.length,this.diamondList=t.filter((function(t){return 2===t.type})),this.diamond_scrollView.numItems=this.diamondList.length,this.diamondList.length>0){var e=this.diamondList[0];this.diamond_title_lable.string=_.isZh?e.name:e.name_lang}},a.setCoinItemData=function(t,i){var e=this;t.getComponent(h).init(this.coinList[i],(function(t,i){e.clicked(t,i)}))},a.setDiamondItemData=function(t,i){t.getComponent(h).init(this.diamondList[i],this.clicked.bind(this))},a.clicked=function(t,i){var e=this;I.playOneShot(y.audios.click);var n=Number(t.price_2);g.platform.showRewardVideo((function(o){o&&(t.alreadyVideo+=1,t.alreadyVideo>=n?(t.alreadyVideo=0,1==t.type?(I.playOneShot(y.audios.buy),p.data.gold+=t.quantity,w.flyAnim(L.Coin,i,e.gold_lable.node,5,50,(function(t){}))):2==t.type&&(I.playOneShot(y.audios.buy),p.data.diamond+=t.quantity,w.flyAnim(L.Diamond,i,e.diamond_lable.node,5,50,(function(t){})))):m.show("Watch "+(n-t.alreadyVideo)+" more times to purchase successfully!"),1==t.type?e.coin_scrollView.updateAll():2==t.type&&e.diamond_scrollView.updateAll())}))},i}(c)).prototype,"coin_scrollView",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=i(k.prototype,"diamond_scrollView",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=i(k.prototype,"gold_lable",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=i(k.prototype,"diamond_lable",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=i(k.prototype,"coin_title_lable",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=i(k.prototype,"diamond_title_lable",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=k))||M));a._RF.pop()}}}));
- System.register("chunks:///_virtual/SuccessUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BaseExp.ts","./AutoBind.ts","./UserData.ts","./Constants.ts","./UIManager.ts","./ResUtil.ts","./LanguageData.ts"],(function(t){var e,i,n,a,o,l,s,r,c,u,p,b,d,h,_,f,g,y,m;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,n=t.initializerDefineProperty,a=t.assertThisInitialized},function(t){o=t.cclegacy,l=t._decorator,s=t.Node,r=t.Sprite,c=t.Label,u=t.Tween,p=t.tween,b=t.Vec3},function(t){d=t.BaseExp},function(t){h=t.autoBind},function(t){_=t.userIns},function(t){f=t.Constants},function(t){g=t.uiMgr},function(t){y=t.ResUtil},function(t){m=t.default}],execute:function(){var v,w,I,U,B,z,A,S,k,C,D,F,T,L,R,x,M;o._RF.push({},"82bdafbov1NI4pcI+yBlNAb","SuccessUI",void 0);var N=l.ccclass;l.property,t("SuccessUI",(v=N("SuccessUI"),w=h({type:s,tooltip:"旋转光节点"}),I=h({type:r,tooltip:"获得的物品图片"}),U=h({type:r,tooltip:"获得的物品图片缩影"}),B=h({type:c,tooltip:"获得的物品的名字"}),z=h({type:c,tooltip:"描述文字"}),A=h({type:s,tooltip:"底部提交确认按钮"}),S=h({type:s,tooltip:"拥有状态"}),v((D=e((C=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return e=t.call.apply(t,[this].concat(o))||this,n(e,"rotation_light",D,a(e)),n(e,"obtain_good",F,a(e)),n(e,"good_sy_sp",T,a(e)),n(e,"name_lable",L,a(e)),n(e,"dec_lable",R,a(e)),n(e,"confim_btn",x,a(e)),n(e,"owned_lable",M,a(e)),e.data=null,e.id="",e.cb=null,e}i(e,t);var o=e.prototype;return o.start=function(){this.closeOnBlank=!1},o.show=function(){this.id=arguments.length<=0?void 0:arguments[0],this.cb=arguments.length<=1?void 0:arguments[1],this.hasAnim=!0,this.ui()},o.ui=function(){var t=this;u.stopAllByTarget(this.rotation_light),p(this.rotation_light).by(2,{eulerAngles:new b(0,0,-360)}).repeatForever().start(),this.data=_.boomerangTable.find((function(e){return e.id==t.id})),y.setSpriteFrame(this.data.icon,this.obtain_good),y.setSpriteFrame(this.data.s_icon,this.good_sy_sp),this.name_lable.string=m.isZh?this.data.name:this.data.name_lang,this.dec_lable.string=m.isZh?this.data.description:this.data.dec_lang;var e=this.data.quantity.split("_"),i=e[0];e[1];if(1001==i||1002==i)this.owned_lable.active=!1,this.confim_btn.active=!1,this.scheduleOnce((function(){g.hide(f.popUIs.obtainUI,t.cb)}),2);else if(this.confim_btn.active=!0,_.isHasGun(i)){this.owned_lable.active=!0;var n=this.data.value.split("_"),a=n[0],o=n[1],l=_.itemTable.find((function(t){return t.id==a}));this.dec_lable.string="Already owned "+this.data.name_lang+", converted "+o+" "+l.name_lang}else this.owned_lable.active=!1},o.onBtnClicked=function(e,i){t.prototype.onBtnClicked.call(this,e,i);var n=e.target.name;"confim_btn"!==n&&"close_btn"!==n||(this.unscheduleAllCallbacks(),g.hide(f.popUIs.obtainUI,this.cb))},e}(d)).prototype,"rotation_light",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=e(C.prototype,"obtain_good",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=e(C.prototype,"good_sy_sp",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=e(C.prototype,"name_lable",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=e(C.prototype,"dec_lable",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=e(C.prototype,"confim_btn",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=e(C.prototype,"owned_lable",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=C))||k));o._RF.pop()}}}));
- System.register("chunks:///_virtual/Sundries.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BaseExp.ts","./PoolManager.ts","./UserData.ts","./Logger.ts","./ResUtil.ts","./Game.ts","./AudioManager.ts","./Constants.ts","./Enemy.ts","./GameEnums.ts"],(function(e){var t,n,o,i,a,s,r,l,c,u,d,p,h,f,y,m,v,g,A,P,L;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.inheritsLoose,o=e.initializerDefineProperty,i=e.assertThisInitialized},function(e){a=e.cclegacy,s=e._decorator,r=e.Enum,l=e.Vec3,c=e.RigidBody,u=e.Animation,d=e.Collider},function(e){p=e.BaseExp},function(e){h=e.PoolManager},function(e){f=e.userIns},function(e){y=e.Logger},function(e){m=e.ResUtil},function(e){v=e.Game},function(e){g=e.audioMgr},function(e){A=e.Constants},function(e){P=e.Enemy},function(e){L=e.GameEnums}],execute:function(){var S,b,_,I,w,R;a._RF.push({},"abb32hZG5dFn4XzGqMrwcK7","Sundries",void 0);var T=s.ccclass,x=s.property,E="take",D=e("ObstacleType",function(e){return e.SANDBAG_PILE="沙袋堆",e.OIL_BARREL="油桶",e.MILITARY_TRUCK="军车",e.SMALL_SANDBAG="小沙袋",e}({}));e("Sundries",(S=T("Sundries"),b=x({type:r(D),tooltip:"沙袋堆:SANDBAG_PILE 油桶:OIL_BARREL 军车: MILITARY_TRUCK 小沙袋:SMALL_SANDBAG",displayName:"障碍物类型"}),S(((R=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return t=e.call.apply(e,[this].concat(a))||this,o(t,"obstacleType",w,i(t)),t.heavySmoke=null,t.data=null,t.isDead=!1,t.totalHp=0,t}n(t,e);var a=t.prototype;return a.start=function(){this.setupColliders(this.node);var e=-1;switch(this.obstacleType){case D.SANDBAG_PILE:e=11001;break;case D.OIL_BARREL:e=11002;break;case D.MILITARY_TRUCK:e=11003;break;case D.SMALL_SANDBAG:e=11004}if(-1!==e){var t=f.sundriesTable.find((function(t){return t.id==e}));this.data=t,this.totalHp=t.hp}else y.log("未找到对应的杂物信息")},a.subHP=function(e,t,n){!this.node||v.I.isPause||this.isDead||null==e||this.totalHp<=0||(this.totalHp-=e,this.milityaryTruckHeavySmoke(),this.totalHp<=0&&!this.isDead&&(this.isDead=!0,this.scrap(n)))},a.milityaryTruckHeavySmoke=function(){var e=this;this.obstacleType==D.MILITARY_TRUCK&&(this.heavySmoke||this.totalHp<.3*this.data.hp&&m.playParticle("effects/Prefabs/HeavySmoke",0,new l(.18,.18,.18),(function(t){t.parent=e.node.parent,t.worldPosition=e.node.worldPosition.clone(),t.active=!0,e.heavySmoke=t})))},a.scrap=function(e){var t=this;switch(this.obstacleType){case D.SANDBAG_PILE:var n=this.node.getComponent(u);if(!n)return;var o=e.worldPosition.clone(),i=this.node.worldPosition.clone(),a=new l;l.subtract(a,o,i).normalize();var s=180*Math.atan2(a.x,a.z)/Math.PI,r=this.node.eulerAngles.y;this.node.setRotationFromEuler(0,r+s-85,0);var d=n.getState(E);d.speed=1,d.repeatCount=1,n.play(E);break;case D.OIL_BARREL:g.playOneShot(A.audios.Oildrum_explosion),m.playParticle("effects/Prefabs/OilBoom",4,new l(.1,.1,.1),(function(e){e.parent=t.node.parent;var n=t.node.worldPosition.clone();e.worldPosition=n,e.active=!0,t.recycle(),t.explosionDamage(n)}));break;case D.MILITARY_TRUCK:m.loadRes("enemy/sundries/scrap_car",this.node).then((function(e){if(e){e.active=!0,e.parent=t.node.parent;var n=t.node.worldPosition.clone();e.worldPosition=n,e.eulerAngles=t.node.eulerAngles.clone(),e.scale=t.node.scale.clone(),t.recycle(),m.playParticle("effects/Prefabs/TankBoom",3,new l(.1,.1,.1),(function(e){e.parent=t.node.parent,e.worldPosition=n,e.active=!0,t.explosionDamage(n)}),(function(){t.scheduleOnce((function(){t.heavySmoke&&t.heavySmoke.parent&&(h.putNode(t.heavySmoke),t.heavySmoke=null)}),3)}))}}));break;case D.SMALL_SANDBAG:var p=this.node.getComponent(c);if(!p)return;var f=this.node.worldPosition.clone(),y=v.I.player.node.worldPosition.clone(),P=f.subtract(y).normalize(),L=1500+1e3*Math.random(),S=800+700*Math.random(),b=50+100*Math.random();p.applyForce(new l(P.x*L,S,P.z*L)),p.applyTorque(new l(0,b,0))}},a.explosionDamage=function(e){var n=this;if(this.data&&this.data.explosion_radius&&this.data.explosion_injury){var o=this.data.explosion_radius,i=v.I.map.sundries.children.filter((function(e){return e.active&&e.parent&&e!=n.node})).map((function(e){return e.getComponent(t)})).filter((function(e){return e&&!e.isDead})),a=[].concat(v.I.buildEnemys.allEnemys.filter((function(e){return!e.isDead&&e.node.active})),i);if(!(a.length<=0)){var s=this.data.explosion_injury;a.forEach((function(i){if(i.node&&i.node.parent){var a=i.node.worldPosition;l.distance(new l(e.x,0,e.z),new l(a.x,0,a.z))<=o&&(i instanceof P?i.subHP(s,n.data):i instanceof t&&(t.explosionQueue.push({target:i,damage:s,source:n.data,explosionTarget:n.node}),t.isProcessingQueue||n.processExplosionQueue()))}}))}}else y.error("爆炸物数据异常",this.data)},a.processExplosionQueue=function(){var e=this;if(0!=t.explosionQueue.length){t.isProcessingQueue=!0;var n=t.explosionQueue.shift();n.target.subHP(n.damage,n.source,n.explosionTarget),this.scheduleOnce((function(){e.processExplosionQueue()}),.2)}else t.isProcessingQueue=!1},a.setupColliders=function(e){var t=this,n=e.getComponent(d);n&&(n.args=[L.enemyPartType.sundries,this]),e.children.forEach((function(e){t.setupColliders(e)}))},a.recycle=function(){this.isDead=!0,this.node.active=!1},t}(p)).explosionQueue=[],R.isProcessingQueue=!1,w=t((I=R).prototype,"obstacleType",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return D.SANDBAG_PILE}}),_=I))||_));a._RF.pop()}}}));
- System.register("chunks:///_virtual/TaskEnemyItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ListItem.ts","./ResUtil.ts"],(function(e){var t,n,a,i,l,r,o,s,u,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.inheritsLoose,a=e.initializerDefineProperty,i=e.assertThisInitialized},function(e){l=e.cclegacy,r=e._decorator,o=e.Sprite,s=e.Label},function(e){u=e.default},function(e){c=e.ResUtil}],execute:function(){var m,p,y,b,h,_,f,d,g;l._RF.push({},"9e4094DWbNFho7vkQJ57325","TaskEnemyItem",void 0);var v=r.ccclass,k=r.property;e("TaskEnemyItem",(m=v("TaskEnemyItem"),p=k({type:o,tooltip:"任务敌人头像"}),y=k({type:s,tooltip:"剩余敌人数量"}),b=k({type:s,tooltip:"敌人名字"}),m((f=t((_=function(e){function t(){for(var t,n=arguments.length,l=new Array(n),r=0;r<n;r++)l[r]=arguments[r];return t=e.call.apply(e,[this].concat(l))||this,a(t,"enemy_header",f,i(t)),a(t,"num_label",d,i(t)),a(t,"enemy_name_label",g,i(t)),t.data=null,t}return n(t,e),t.prototype.init=function(e,t){e&&(this.data=e,c.setSpriteFrame(e.enemyData.headshot,this.enemy_header),this.num_label.string=e.count+" / "+e.total,this.enemy_name_label.string=e.enemyData.name_lang)},t}(u)).prototype,"enemy_header",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=t(_.prototype,"num_label",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=t(_.prototype,"enemy_name_label",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=_))||h));l._RF.pop()}}}));
- System.register("chunks:///_virtual/TaskItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ListItem.ts","./ResUtil.ts"],(function(e){var t,n,a,i,l,r,o,s,c,u,p,h,b,m;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.inheritsLoose,a=e.initializerDefineProperty,i=e.assertThisInitialized},function(e){l=e.cclegacy,r=e._decorator,o=e.Sprite,s=e.Label,c=e.Node,u=e.tween,p=e.Vec3,h=e.easing},function(e){b=e.default},function(e){m=e.ResUtil}],execute:function(){var y,f,_,d,g,T,v,w,k;l._RF.push({},"81806IUii5N9aOiTD68wURc","TaskItem",void 0);var I=r.ccclass,R=r.property;e("TaskItem",(y=I("TaskItem"),f=R({type:o,tooltip:"任务敌人头像"}),_=R({type:s,tooltip:"敌人数量"}),d=R({type:s,tooltip:"敌人名字"}),y((v=t((T=function(e){function t(){for(var t,n=arguments.length,l=new Array(n),r=0;r<n;r++)l[r]=arguments[r];return t=e.call.apply(e,[this].concat(l))||this,a(t,"enemy_header",v,i(t)),a(t,"num_label",w,i(t)),a(t,"enemy_name_label",k,i(t)),t.data=null,t.cb=null,t}n(t,e);var l=t.prototype;return l.start=function(){var e=this;this.node.on(c.EventType.TOUCH_START,this.touchStart,this),this.node.on(c.EventType.TOUCH_END,(function(){e.data&&(null==e.cb||e.cb(e.data))}),this)},l.touchStart=function(e){if(this.data){var t=e.target;u(t).to(.1,{scale:new p(1.02,1.02,1.02)},{easing:h.backOut}).to(.1,{scale:new p(.98,.98,.98)},{easing:h.backOut}).call((function(){t.scale=new p(1,1,1)})).start()}},l.init=function(e,t){e&&(this.data=e,this.cb=t,m.setSpriteFrame(e.headshot,this.enemy_header),this.num_label.string="x"+e.count,this.enemy_name_label.string=e.name_lang)},t}(b)).prototype,"enemy_header",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=t(T.prototype,"num_label",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=t(T.prototype,"enemy_name_label",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=T))||g));l._RF.pop()}}}));
- System.register("chunks:///_virtual/ThirdPersonCamera.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(e){var t,n,i,r,a,o,l,s,u,c;return{setters:[function(e){t=e.applyDecoratedDescriptor,n=e.inheritsLoose,i=e.initializerDefineProperty,r=e.assertThisInitialized},function(e){a=e.cclegacy,o=e._decorator,l=e.v3,s=e.Node,u=e.Vec3,c=e.Component}],execute:function(){var h,g,p,f,b,m,y,d,_,M,w,z;a._RF.push({},"009c0UpynlBxpEXbqz4RJ4H","ThirdPersonCamera",void 0);var v=o.ccclass,A=o.property,L=l(),T=l();e("ThirdPersonCamera",(h=v("ThirdPersonCamera"),g=A(s),h((b=t((f=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t=e.call.apply(e,[this].concat(a))||this,i(t,"target",b,r(t)),i(t,"lookAtOffset",m,r(t)),i(t,"zoomSensitivity",y,r(t)),i(t,"lenMin",d,r(t)),i(t,"lenMax",_,r(t)),i(t,"len",M,r(t)),i(t,"rotateVHSeparately",w,r(t)),i(t,"tweenTime",z,r(t)),t._targetLen=0,t._targetAngles=l(),t}n(t,e);var a=t.prototype;return a.start=function(){this._targetLen=this.len,this._targetAngles.set(this.node.eulerAngles)},a.setLenFactor=function(e){var t=(this.lenMax-this.lenMin)*e+this.lenMin;this._targetLen=t},a.setTargetAngles=function(e,t,n){this._targetAngles.set(e,t,n)},a.lateUpdate=function(e){if(this.target){var t=Math.min(e/this.tweenTime,1);L.set(this.node.eulerAngles),u.lerp(L,L,this._targetAngles,t),this.node.setRotationFromEuler(L),L.set(this.target.worldPosition),L.add(this.lookAtOffset),this.len=this.len*(1-t)+this._targetLen*t,T.set(this.node.forward),T.multiplyScalar(this.len),L.subtract(T),this.node.setPosition(L)}},a.onCameraRotate=function(e,t){var n=this.node.eulerAngles;this.rotateVHSeparately&&(Math.abs(e)>Math.abs(t)?t=0:e=0),this._targetAngles.set(n.x+20*e,n.y+20*t,n.z)},a.onCameraZoom=function(e){this._targetLen=e,this._targetLen<this.lenMin&&(this._targetLen=this.lenMin),this._targetLen>this.lenMax&&(this._targetLen=this.lenMax)},t}(c)).prototype,"target",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=t(f.prototype,"lookAtOffset",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return l()}}),y=t(f.prototype,"zoomSensitivity",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),d=t(f.prototype,"lenMin",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 10}}),_=t(f.prototype,"lenMax",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),M=t(f.prototype,"len",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 5}}),w=t(f.prototype,"rotateVHSeparately",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),z=t(f.prototype,"tweenTime",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.2}}),p=f))||p));a._RF.pop()}}}));
- System.register("chunks:///_virtual/TossBoomerangUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BaseExp.ts","./AutoBind.ts","./Constants.ts","./UserData.ts","./Utils.ts","./UIManager.ts","./StateManager.ts","./ResUtil.ts","./PoolManager.ts","./AudioManager.ts","./Nodes.ts"],(function(t){var n,o,e,a,i,r,l,s,u,c,d,p,g,h,m,b,f,y,_,I,v,w,B,U;return{setters:[function(t){n=t.applyDecoratedDescriptor,o=t.inheritsLoose,e=t.initializerDefineProperty,a=t.assertThisInitialized,i=t.createForOfIteratorHelperLoose},function(t){r=t.cclegacy,l=t._decorator,s=t.Node,u=t.Label,c=t.UITransform,d=t.Vec3,p=t.tween},function(t){g=t.BaseExp},function(t){h=t.autoBind},function(t){m=t.Constants},function(t){b=t.userIns},function(t){f=t.Utils},function(t){y=t.uiMgr},function(t){_=t.stateMgr},function(t){I=t.ResUtil,v=t.ITEM_TYPE},function(t){w=t.PoolManager},function(t){B=t.audioMgr},function(t){U=t.default}],execute:function(){var M,T,C,A,x,z,R,P,D,S,k,E,O;r._RF.push({},"27272ucZTlL27Dpvfou+OTG","TossBoomerangUI",void 0);var N=l.ccclass;l.property,t("TossBoomerangUI",(M=N("TossBoomerangUI"),T=h({type:s,tooltip:"靶面中的所有靶心"}),C=h({type:s,tooltip:"飞镖按钮"}),A=h({type:u,tooltip:"金币文本"}),x=h({type:u,tooltip:"钻石文本"}),z=h({type:u,tooltip:"飞镖个数文本"}),M((D=n((P=function(t){function n(){for(var n,o=arguments.length,i=new Array(o),r=0;r<o;r++)i[r]=arguments[r];return n=t.call.apply(t,[this].concat(i))||this,e(n,"content",D,a(n)),e(n,"shoot_btn",S,a(n)),e(n,"gold_lable",k,a(n)),e(n,"diamond_lable",E,a(n)),e(n,"boomerang_num_lable",O,a(n)),n.isBoomeranging=!1,n}o(n,t);var r=n.prototype;return r.start=function(){var t=this;this.hasAnim=!1,this.closeOnBlank=!1,_.registerUI(m.gold,this.gold_lable),_.registerUI(m.diamond,this.diamond_lable),this.content.children.forEach((function(n){n.on(s.EventType.TOUCH_END,t.startToss.bind(t),t)}))},r.show=function(){this.setBoomerang()},r.setBoomerang=function(){b.data.boomerang>0?this.boomerang_num_lable.string=b.data.boomerang:this.boomerang_num_lable.string="Buy"},r.buyBoomerang=function(){y.show(m.popUIs.buyBoomerangUI)},r.startToss=function(t,n){var o=this;if(void 0===t&&(t=null),!this.isBoomeranging)if(b.data.boomerang<=0)this.buyBoomerang();else{var e=null;if(t)e=t.target;else{var a=f.getRandomInt(0,this.content.children.length-1);e=this.content.children[a]}B.playOneShot(m.audios.dart),this.isBoomeranging=!0,b.data.boomerang-=1,this.setBoomerang();for(var r,l=b.boomerangTable.reduce((function(t,n){return t+n.weight}),0),s=Math.min(Math.random()*l,l-1e-6),u=0,g=null,h=i(b.boomerangTable);!(r=h()).done;){var y=r.value;if(s<u+y.weight){g=y;break}u+=y.weight}g||(g=b.boomerangTable[0]),I.loadRes("items/tossBoomerang").then((function(t){var n,a=w.getNode(t,o.content);U(a).order_n=1e4;var i=null==(n=e.getComponent(c))?void 0:n.contentSize,r=Math.random()*Math.PI*2,s=e.parent.getComponent(c).convertToWorldSpaceAR(e.position),u=e.parent.getComponent(c).convertToNodeSpaceAR(s),h=.2*i.width,m=Math.pow(1-g.weight/l,2),b=new d(u.x+Math.cos(r)*h*m,u.y+Math.sin(r)*h*m,0),y=e.getComponent(c).contentSize.width/2*1.5,_=Math.random()*Math.PI*2,I=new d(e.position.x+y*Math.cos(_),e.position.y+y*Math.sin(_),0);a.position=I.clone();var v=f.randomUIPointGenerator(e,I,200),B=f.calculateParabolaCenter(I,b),M=new d(v.x+B.x,v.y,v.z);p(a).to(.8,{},{onUpdate:function(t,n){var o,e,i,r,l,s=(i=M,r=b,new d((l=1-(o=n))*l*(e=I).x+2*l*o*i.x+o*o*r.x,l*l*e.y+2*l*o*i.y+o*o*r.y,0));a.position=s,a.angle=f.getAngle(s,b)-90}}).call((function(){a.position=b})).start(),o.scheduleOnce((function(){a.parent&&(w.putNode(a),o.handleReward(g),o.isBoomeranging=!1)}),1)}))}},r.handleReward=function(t){var n=this,o=t.quantity.split("_"),e=o[0],a=o[1];switch(B.playOneShot(m.audios.reward),e){case"1001":b.data.gold+=parseInt(a),y.show(m.popUIs.obtainUI,[t.id,function(){I.flyAnim(v.Coin,n.shoot_btn,n.gold_lable.node,5,50,(function(t){}))}]);break;case"1002":b.data.diamond+=parseInt(a),y.show(m.popUIs.obtainUI,[t.id,function(){I.flyAnim(v.Diamond,n.shoot_btn,n.diamond_lable.node,5,50,(function(t){}))}]);break;default:y.show(m.popUIs.obtainUI,[t.id,function(o){if(o){var e=t.value.split("_"),a=e[0],i=e[1],r=b.itemTable.find((function(t){return t.id==a}));1001==r.id?(b.data.gold+=parseInt(i),I.flyAnim(v.Coin,n.shoot_btn,n.gold_lable.node,5,50,(function(t){}))):1002==r.id&&(b.data.diamond+=parseInt(i),I.flyAnim(v.Diamond,n.shoot_btn,n.diamond_lable.node,5,50,(function(t){})))}}])}},r.onBtnClicked=function(n,o){t.prototype.onBtnClicked.call(this,n,o),"shoot_btn"===n.target.name&&this.startToss()},n}(g)).prototype,"content",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=n(P.prototype,"shoot_btn",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=n(P.prototype,"gold_lable",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=n(P.prototype,"diamond_lable",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=n(P.prototype,"boomerang_num_lable",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=P))||R));r._RF.pop()}}}));
- System.register("chunks:///_virtual/UIManager.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Singleton.ts","./Constants.ts","./Utils.ts","./ResUtil.ts"],(function(e){var n,t,i,s,r,a,o,l,p,c,u,h,f;return{setters:[function(e){n=e.inheritsLoose,t=e.asyncToGenerator,i=e.regeneratorRuntime},function(e){s=e.cclegacy,r=e._decorator,a=e.director,o=e.Vec3,l=e.Widget,p=e.Node},function(e){c=e.Singleton},function(e){u=e.Constants},function(e){h=e.Utils},function(e){f=e.ResUtil}],execute:function(){var g;s._RF.push({},"4175aWTbLRCLbKEDld2RnFQ","UIManager",void 0);var d=r.ccclass,m=(r.property,e("uiManager",d("uiManager")(g=function(e){function s(){for(var n,t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return(n=e.call.apply(e,[this].concat(i))||this).pageUIs="pageUIs",n.popUIs="popUIs",n.panels=new Map,n}n(s,e);var r=s.prototype;return r.showScene=function(e,n){void 0===n&&(n=.1),n?setTimeout((function(){a.loadScene(e)}),1e3*n):a.loadScene(e)},r.show=function(){var e=t(i().mark((function e(n,t,s){var r,a,c,g,d,m,v,U,C;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=n.split("/").pop(),t||(t=[]),g=c.replace(/^\w/,(function(e){return e.toUpperCase()})),d=this.panels.get(n)){e.next=9;break}return e.next=7,f.loadRes(n);case 7:d=e.sent,this.panels.set(n,d);case 9:if(d&&d instanceof p){e.next=11;break}return e.abrupt("return");case 11:d._uiPath=n,m=Object.values(u.mainUIs).includes(n),v=m?this.pageUIs:this.popUIs,U=this.getCurentSceneRoot(),U=null!=(r=h.findName(U,v))?r:U,d.parent=U,d.active=!0,null==(a=d.getComponent(l))||a.updateAlignment(),m?U.children.forEach((function(e){e.setPosition(new o(e.name==c?0:5e5,0,1))})):d.setSiblingIndex(U.children.length),(C=d.getComponent(g))&&C.show&&C.show.apply(C,t),"function"==typeof s&&(null==s||s(d));case 24:case"end":return e.stop()}}),e,this)})));return function(n,t,i){return e.apply(this,arguments)}}(),r.pop=function(e,n,t){var i=this.getCurentSceneRoot(),s=h.findName(i,this.popUIs),r=Object.values(u.mainUIs).includes(e),a=null;if(h.isNull(e))if(s.children.length>0){var o=s.children.slice(-2)[0];o.parent=null;var l=o.name.replace(/^\w/,(function(e){return e.toUpperCase()}));a=o.getComponent(l)}else(a=this.getPageComponent(u.mainUIs.main)).tabBarIndex=a.preIndexs.slice(-2)[0];else{var p=e.split("/").pop(),c=p.replace(/^\w/,(function(e){return e.toUpperCase()}));if(n||(n=[]),r)(a=this.getPageComponent(u.mainUIs.main)).tabBarIndex=a.sceneNames.indexOf(e),s.removeAllChildren();else{var f=this.panels.get(e),g=s.children.findIndex((function(e){return e.name==p}));-1!==g&&(s.children.slice(g+1).forEach((function(e){e.parent=null})),s.children.splice(g+1)),f.setSiblingIndex(f.parent.children.length),a=f.getComponent(c)}}a&&a.pop&&a.pop.apply(a,n),"function"==typeof t&&(null==t||t())},r.hide=function(e,n){if(this.panels.has(e)){var t=this.panels.get(e),i=e.split("/").pop(),s=i.replace(/^\w/,(function(e){return e.toUpperCase()}));if(Object.values(u.mainUIs).includes(e)){h.findName(this.getCurentSceneRoot(),this.pageUIs).children.forEach((function(e){e.setPosition(new o(e.name==i?5e5:0,0,1))}))}else{t.parent=null;var r=t.getComponent(s);r&&r.hide&&r.hide.apply(r)}"function"==typeof n&&(null==n||n())}},r.getPageComponent=function(e,n){if(this.panels.has(e)){var t=e.split("/").pop().replace(/^\w/,(function(e){return e.toUpperCase()}));return this.panels.get(e).getComponent(null!=n?n:t)}return null},r.getPageNode=function(e){return h.isNull(e)?null:this.panels.has(e)?this.panels.get(e):null},r.hasPageNode=function(e){if(h.isNull(e))return!1;var n=e.split("/").pop(),t=this.getCurentSceneRoot(),i=h.findName(t,this.pageUIs),s=h.findName(t,this.popUIs);return i.children.concat(s.children).some((function(e){return e.name==n}))},r.getCurentSceneRoot=function(){return a.getScene().getChildByName("Canvas")},s}(c))||g));e("uiMgr",m.ins());s._RF.pop()}}}));
- System.register("chunks:///_virtual/UpgradeGunUI.ts",["./rollupPluginModLoBabelHelpers.js","cc","./BaseExp.ts","./List.ts","./AutoBind.ts","./UserData.ts","./MsgHints.ts","./Constants.ts","./StateManager.ts","./UpgradeItem.ts","./UIManager.ts","./AudioManager.ts"],(function(t){var e,n,a,i,r,u,o,l,s,c,d,p,g,f,m,h,_,b,U;return{setters:[function(t){e=t.applyDecoratedDescriptor,n=t.inheritsLoose,a=t.initializerDefineProperty,i=t.assertThisInitialized,r=t.extends},function(t){u=t.cclegacy,o=t._decorator,l=t.Label,s=t.Node},function(t){c=t.BaseExp},function(t){d=t.default},function(t){p=t.autoBind},function(t){g=t.userIns},function(t){f=t.default},function(t){m=t.Constants},function(t){h=t.stateMgr},function(t){_=t.UpgradeItem},function(t){b=t.uiMgr},function(t){U=t.audioMgr}],execute:function(){var v,y,I,D,G,w,A,x,L,M,E;u._RF.push({},"247c72EjOJKwrNfkJ+UppoA","UpgradeGunUI",void 0);var z=o.ccclass;o.property,t("UpgradeGunUI",(v=z("UpgradeGunUI"),y=p({type:d,tooltip:"枪的属性数据"}),I=p({type:l,tooltip:"金币文本"}),D=p({type:l,tooltip:"钻石文本"}),G=p({type:s,tooltip:"模型摄像机"}),v((x=e((A=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),u=0;u<n;u++)r[u]=arguments[u];return e=t.call.apply(t,[this].concat(r))||this,a(e,"gun_attr_scrollView",x,i(e)),a(e,"gold_lable",L,i(e)),a(e,"diamond_lable",M,i(e)),a(e,"model_camera",E,i(e)),e.gunAttrList=[],e.curGunData=null,e}n(e,t);var u=e.prototype;return u.start=function(){this.hasAnim=!1,this.closeOnBlank=!1,h.registerUI(m.gold,this.gold_lable),h.registerUI(m.diamond,this.diamond_lable)},u.show=function(){this.model_camera.active=!0;var t=arguments.length<=0?void 0:arguments[0];this.loadUpgradeData(t.id)},u.hide=function(){this.model_camera.active=!1,b.getPageComponent(m.popUIs.arsenalUI).model_camera.active=!0},u.loadUpgradeData=function(t){var e=this;this.curGunData=g.data.guns.find((function(e){return e.id===t})),this.model_camera.children.forEach((function(t){t.active=e.curGunData.prb_name+"_gun"===t.name})),this.gunAttrList=[],g.gunAttrKeys.map((function(t){return e.curGunData[t]})).forEach((function(t,n){var a,i=g.gunAttrKeys[n],u="next"+i.replace(/^\w/,(function(t){return t.toUpperCase()}))+"Expenditure",o=i+"UniqueId",l=i+"Level",s=g.getGunMaxValue(e.curGunData,i);e.gunAttrList.push(r({attr_name:i,attr_value:t,attr_icon:e.curGunData[i+"_icon"]},s,{attribute_lang:null==(a=g.playerGunAttsTable.find((function(t){return t.attribute_name==i})))?void 0:a.attribute_lang,nextExpenditure:e.curGunData[u]||"",unique_id:e.curGunData[o]||"",level:e.curGunData[l]||1}))})),this.gun_attr_scrollView.numItems=this.gunAttrList.length},u.setGunAttsItemData=function(t,e){t.getComponent(_).init(this.gunAttrList[e],this.clicked.bind(this))},u.clicked=function(t,e,n){if(t.isMaxLevel)f.show("This gun "+t.attr_name+" is at the maximum level!");else{var a=t.nextExpenditure.split("_"),i=a[0],r=a[1],u=g.itemTable.find((function(t){return t.id==i}));if(!u)return;var o,l=!1;if(1==e||3==e&&(1001==u.id?g.data.gold<r?f.show("Insufficient gold!"):(g.data.gold-=r,l=!0):1002==u.id&&(g.data.diamond<r?f.show("Insufficient diamonds!"):(g.data.diamond-=r,l=!0))),l)g.upgradeGun(this.curGunData,t.attr_name),this.loadUpgradeData(this.curGunData.id),null==(o=b.getPageComponent(m.popUIs.arsenalUI))||o.forceRefresh(),U.playOneShot(m.audios.upgrade)}},e}(c)).prototype,"gun_attr_scrollView",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=e(A.prototype,"gold_lable",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=e(A.prototype,"diamond_lable",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=e(A.prototype,"model_camera",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=A))||w));u._RF.pop()}}}));
- System.register("chunks:///_virtual/UpgradeItem.ts",["./rollupPluginModLoBabelHelpers.js","cc","./ListItem.ts","./ResUtil.ts","./UserData.ts"],(function(t){var e,i,a,r,l,n,o,p,s,u,b,c,_;return{setters:[function(t){e=t.applyDecoratedDescriptor,i=t.inheritsLoose,a=t.initializerDefineProperty,r=t.assertThisInitialized},function(t){l=t.cclegacy,n=t._decorator,o=t.Sprite,p=t.ProgressBar,s=t.Label,u=t.Node},function(t){b=t.default},function(t){c=t.ResUtil},function(t){_=t.userIns}],execute:function(){var g,f,d,h,m,y,v,x,z,w,B,I,L,U,D,M,C,F,N;l._RF.push({},"58119Xb2Q5HDJm3BiboEXdY","UpgradeItem",void 0);var R=n.ccclass,S=n.property;t("UpgradeItem",(g=R("UpgradeItem"),f=S({type:o,tooltip:"枪的属性图片"}),d=S({type:p,tooltip:"属性值的最大进度"}),h=S({type:s,tooltip:"属性值的数据文本"}),m=S({type:s,tooltip:"枪的属性多语言名字"}),y=S({type:u,tooltip:"广告按钮"}),v=S({type:u,tooltip:"视频按钮"}),x=S({type:u,tooltip:"金币和钻石按钮"}),z=S({type:u,tooltip:"最大等级按钮"}),g((I=e((B=function(t){function e(){for(var e,i=arguments.length,l=new Array(i),n=0;n<i;n++)l[n]=arguments[n];return e=t.call.apply(t,[this].concat(l))||this,a(e,"attr_sp",I,r(e)),a(e,"progressBar",L,r(e)),a(e,"atts_label",U,r(e)),a(e,"attribute_lang_lable",D,r(e)),a(e,"ad_free_btn",M,r(e)),a(e,"video_btn",C,r(e)),a(e,"prop_btn",F,r(e)),a(e,"max_btn",N,r(e)),e.data=null,e.cb=null,e}i(e,t);var l=e.prototype;return l.start=function(){this.ad_free_btn.active=!1,this.video_btn.active=!1,this.prop_btn.active=!0,this.max_btn.active=!1},l.onBtnClicked=function(t,e){var i;if(this.data){var a=Number(e);null==(i=this.cb)||i.call(this,this.data,a,t.target)}},l.init=function(t,e){if(t){Math.abs(t.attr_value-t.totalValue)<.1&&(t.isMaxLevel=!0),this.data=t,this.cb=e,c.setSpriteFrame(t.attr_icon,this.attr_sp),this.progressBar.progress=t.attr_value/t.totalValue,this.atts_label.string=t.attr_value+"/"+t.totalValue,this.attribute_lang_lable.string=t.attribute_lang;var i=t.nextExpenditure.split("_"),a=_.itemTable.find((function(t){return t.id==i[0]}));a&&(c.setSpriteFrame(a.icon,this.prop_btn.getChildByName("icon")),this.prop_btn.getChildByName("num_lable").getComponent(s).string="x"+i[1]),this.prop_btn.active=!t.isMaxLevel,this.max_btn.active=t.isMaxLevel}},e}(b)).prototype,"attr_sp",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=e(B.prototype,"progressBar",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=e(B.prototype,"atts_label",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=e(B.prototype,"attribute_lang_lable",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=e(B.prototype,"ad_free_btn",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=e(B.prototype,"video_btn",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=e(B.prototype,"prop_btn",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=e(B.prototype,"max_btn",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=B))||w));l._RF.pop()}}}));
- System.register("chunks:///_virtual/UserData.ts",["./rollupPluginModLoBabelHelpers.js","cc","./Singleton.ts","./Constants.ts","./Utils.ts","./CsvManager.ts","./StateManager.ts","./EventEmitter.ts"],(function(e){var t,n,a,l,i,u,r,s,o,d,p,h;return{setters:[function(e){t=e.inheritsLoose,n=e.extends,a=e.createClass},function(e){l=e.cclegacy,i=e._decorator,u=e.sys},function(e){r=e.Singleton},function(e){s=e.Constants},function(e){o=e.Utils},function(e){d=e.csvMgr},function(e){p=e.stateMgr},function(e){h=e.eventEmitter}],execute:function(){var c;l._RF.push({},"5c502bBHDZPy7Y4+NP+L5YS","UserData",void 0);var g=i.ccclass,b=(i.property,e("GunAttribute",function(e){return e.attack="attack",e.bulletSpeed="bulletSpeed",e.stability="stability",e.magazine="magazine",e.reloadingSpeed="reloadingSpeed",e.zoomingSpeed="zoomingSpeed",e}({}))),_=g("UserData")(c=function(e){function l(){for(var t,n=arguments.length,a=new Array(n),l=0;l<n;l++)a[l]=arguments[l];return(t=e.call.apply(e,[this].concat(a))||this).gunAttrKeys=Object.values(b),t.passNum=0,t._data=null,t._enemyTable=null,t._enemyWeaponTable=null,t._boomerangTable=null,t._boomerangShopTable=null,t._shopTable=null,t._playerTable=null,t._levelsTable=null,t._itemTable=null,t._playerGunsTable=null,t._playerGunAttsTable=null,t._sundriesTable=null,t}t(l,e);var i=l.prototype;return i.loadFromCache=function(){var e=u.localStorage.getItem(s.localCache.playerData);if(e)this._data=JSON.parse(o.decrypt(e));else{var t=o.clone(this.playerTable[0]);this._data=n({gold:0,diamond:0,boomerang:0,level:1},t,{guns:[],useIdx:0,cutNum:0}),this.getGunData(t.defaultWeapon,!0,"")}},i.getGunData=function(e,t,n){var a=this;void 0===t&&(t=!1),void 0===n&&(n="");var l=this._data.guns.find((function(t){return t.id==e}));if(l||(l=o.clone(this.playerGunsTable).find((function(t){return t.id==e}))),l){var i=o.clone(this.gunAttrKeys);if(o.isNull(n)||(i=i.filter((function(e){return e==n}))),null!=l.hasAttrs&&o.isNull(n)||i.forEach((function(t){var n=t+"Level",i=1;null!=l[n]&&(i=l[n]);var u=function(e,t,n){return a.playerGunAttsTable.find((function(a){return a.id==e&&a.level==t&&a.attribute_name==n}))},r=u(e,i,t);if(r){var s=u(e,i+1,t);s||(s=r),t==b.attack?(l.attack+=r.value,l.attackUniqueId=s.unique_id,l.attackLevel=r.level,l.attackExpenditure=r.expenditure,l.nextAttackExpenditure=s?s.expenditure:null):t==b.bulletSpeed?(l.bulletSpeed+=r.value,l.bulletSpeedUniqueId=s.unique_id,l.bulletSpeedLevel=r.level,l.bulletSpeedExpenditure=r.expenditure,l.nextBulletSpeedExpenditure=s?s.expenditure:null):t==b.stability?(l.stability+=r.value,l.stabilityUniqueId=s.unique_id,l.stabilityLevel=r.level,l.stabilityExpenditure=r.expenditure,l.nextStabilityExpenditure=s?s.expenditure:null):t==b.magazine?(l.magazine+=r.value,l.magazineUniqueId=s.unique_id,l.magazineLevel=r.level,l.magazineExpenditure=r.expenditure,l.nextMagazineExpenditure=s?s.expenditure:null):t==b.reloadingSpeed?(l.reloadingSpeed+=r.value,l.reloadingSpeedUniqueId=s.unique_id,l.reloadingSpeedLevel=r.level,l.reloadingSpeedExpenditure=r.expenditure,l.nextReloadingSpeedExpenditure=s?s.expenditure:null):t==b.zoomingSpeed&&(l.zoomingSpeed+=r.value,l.zoomingSpeedUniqueId=s.unique_id,l.zoomingSpeedLevel=r.level,l.zoomingSpeedExpenditure=r.expenditure,l.nextZoomingSpeedExpenditure=s?s.expenditure:null)}})),l.hasAttrs=!0,t)-1==this._data.guns.findIndex((function(e){return e.id==l.id}))&&this._data.guns.push(l),this.saveToCache();return l}},i.getGunMaxValue=function(e,t){if(!e)return{totalValue:0,maxLevel:0,isMaxLevel:!1};var n=this.playerGunAttsTable.filter((function(n){return n.id===e.id&&n.attribute_name===t})),a=n.reduce((function(e,t){return e+t.value}),0),l=n.length>0?Math.max.apply(Math,n.map((function(e){return e.level}))):0,i=t+"Level";return{totalValue:v.playerGunsTable.find((function(t){return t.id==e.id}))[t]+a,maxLevel:l,isMaxLevel:e[i]>=l}},i.upgradeGun=function(e,t){if(e){var n=this.data.guns.find((function(t){return t.id==e.id}));if(n)n[t+"Level"]+=1,this.getGunData(e.id,!0,t)}},i.getCurUseGun=function(){var e={};if(this.data.useIdx<this.data.guns.length){var t=this.data.guns[this.data.useIdx];Object.assign(e,this._data,t)}return e},i.changeGun=function(e){if(!o.isNull(e)){var t=this.data.guns.findIndex((function(t){return t.id==e}));-1!=t&&(this.data.useIdx=t,this.getGunData(e,!0))}},i.unlockAllGuns=function(){var e=this;o.clone(this.playerGunsTable).forEach((function(t){e.getGunData(t.id,!0)})),h.dispatch(s.eventName.gun_num_change)},i.isHasGun=function(e){return!o.isNull(e)&&null!=this.data.guns.find((function(t){return t.id==e}))},i.unlockGun=function(e){o.isNull(e)||this.isHasGun(e)||(this.getGunData(e,!0),h.dispatch(s.eventName.gun_num_change))},i.getCurLevelData=function(){var e=Math.min(this.data.level-1,this.levelsTable.length-1);return this.levelsTable[e]},i.saveToCache=function(){var e=JSON.stringify(this.data);u.localStorage.setItem(s.localCache.playerData,o.encrypt(e))},i.removeData=function(){this._data=null,u.localStorage.removeItem(s.localCache.playerData),this.loadFromCache(),h.dispatch(s.eventName.gun_num_change)},a(l,[{key:"data",get:function(){var e=this;return this._data||(this.loadFromCache(),this._data=new Proxy(this._data,{set:function(t,n,a){return t[n]=a,"gold"===n?p.updateAllUI(s.gold):"diamond"===n&&p.updateAllUI(s.diamond),e.saveToCache(),!0}})),this._data}},{key:"enemyTable",get:function(){return this._enemyTable||(this._enemyTable=d.getTableArr("enemy")),this._enemyTable}},{key:"enemyWeaponTable",get:function(){return this._enemyWeaponTable||(this._enemyWeaponTable=d.getTableArr("enemy_guns")),this._enemyWeaponTable}},{key:"boomerangTable",get:function(){return this._boomerangTable||(this._boomerangTable=d.getTableArr("boomerang")),this._boomerangTable}},{key:"boomerangShopTable",get:function(){return this._boomerangShopTable||(this._boomerangShopTable=d.getTableArr("boomerang_shop")),this._boomerangShopTable}},{key:"shopTable",get:function(){return this._shopTable||(this._shopTable=d.getTableArr("shop")),this._shopTable}},{key:"playerTable",get:function(){return this._playerTable||(this._playerTable=d.getTableArr("player")),this._playerTable}},{key:"levelsTable",get:function(){return this._levelsTable||(this._levelsTable=d.getTableArr("levels")),this._levelsTable}},{key:"itemTable",get:function(){return this._itemTable||(this._itemTable=d.getTableArr("item")),this._itemTable}},{key:"playerGunsTable",get:function(){return this._playerGunsTable||(this._playerGunsTable=d.getTableArr("player_guns")),this._playerGunsTable}},{key:"playerGunAttsTable",get:function(){return this._playerGunAttsTable||(this._playerGunAttsTable=d.getTableArr("player_guns_atts")),this._playerGunAttsTable}},{key:"sundriesTable",get:function(){return this._sundriesTable||(this._sundriesTable=d.getTableArr("sundries")),this._sundriesTable}}]),l}(r))||c,v=e("userIns",_.ins());l._RF.pop()}}}));
- System.register("chunks:///_virtual/Utils.ts",["cc","./SensitiveWords.ts","./PlatformSystem.ts"],(function(t){var r,e,n,o,a,i,u,f,c,l,h,s,d,g,v;return{setters:[function(t){r=t.cclegacy,e=t._decorator,n=t.UIOpacity,o=t.tween,a=t.find,i=t.director,u=t.Color,f=t.Vec2,c=t.UITransform,l=t.Vec3,h=t.view,s=t.math,d=t.Quat},function(t){g=t.default},function(t){v=t.default}],execute:function(){var m;r._RF.push({},"a9261Lh275Io6NmeAOMUfdP","Utils",void 0);var M=e.ccclass;e.property,t("Utils",M("Utils")(m=function(){function t(){}return t.isNull=function(t){return""==t||null==t||null==t||"string"==typeof t&&new RegExp("^[ ]+$").test(t)},t.merge=function(){for(var t=function(t,r){return Object.assign(t,r)},r={},e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return n.forEach((function(e){r=t(r,e)})),r},t.mergeWithExceptions=function(t,r,e){return Object.keys(r).forEach((function(n){e.includes(n)&&n in t||(t[n]=r[n])})),t},t.clone=function(t){if(null===t||"object"!=typeof t)return t;var r={};for(var e in t.constructor===Array&&(r=[]),t)t.hasOwnProperty(e)&&(r[e]=this.clone(t[e]));return r},t.formatUnits=function(t){return t>=1e8?(t/1e8).toFixed(1)+"亿":t>=1e7?(t/1e7).toFixed(1)+"千万":t>=1e6?(t/1e6).toFixed(1)+"百万":t>=1e4?(t/1e4).toFixed(1)+"万":t>=1e3?(t/1e3).toFixed(1)+"k":t.toString()},t.objectToArray=function(t){var r=[];for(var e in t)t.hasOwnProperty(e)&&r.push(t[e]);return r},t.arrayToObject=function(t,r){var e={};for(var n in t)t.hasOwnProperty(n)&&t[n][r]&&(e[t[n][r]]=t[n]);return e},t.getWeightRandIndex=function(t,r){for(var e=Math.floor(Math.random()*r),n=0,o=0;o<t.length&&!(e<(n+=t[o]));o++);return o},t.getRandomNFromM=function(t,r){for(var e=[],n=0,o=0;o<r&&!(o>=t+1);){n=this.getRandomInt(0,t);for(var a=0,i=0;i<o;i++)if(e[i]===n){a=1;break}0===a&&(e[o]=n,o++)}return e},t.getRandomInt=function(t,r){var e=Math.random()*(r-t+1)+t;return Math.floor(e)},t.getStringLength=function(t){for(var r=t,e=0,n=0,o=r.length;n<o;n++){e+=r.charCodeAt(n)<=255?1:2}return Math.ceil(e/2)},t.getRandomElements=function(t,r){if(r<=0)return[];for(var e=[].concat(t),n=e.length-1;n>0;n--){var o=Math.floor(Math.random()*(n+1)),a=[e[o],e[n]];e[n]=a[0],e[o]=a[1]}return r>=e.length?e:e.slice(0,r)},t.isEmptyObject=function(t){var r=!0;if(t&&t.constructor===Object){for(var e in t)if(t.hasOwnProperty(e)){r=!1;break}}else r=!1;return r},t.isNewDay=function(t){var r=new Date(t),e=new Date,n=r.getYear(),o=r.getMonth(),a=r.getDate(),i=e.getYear(),u=e.getMonth(),f=e.getDate();return i>n||(u>o||f>a)},t.getPropertyCount=function(t){var r,e=0;for(r in t)t.hasOwnProperty(r)&&e++;return e},t.difference=function(t,r){var e=[];if(t.constructor!==Array||r.constructor!==Array)return e;for(var n=t.length,o=0;o<n;o++)-1===r.indexOf(t[o])&&e.push(t[o]);return e},t._stringToArray=function(t){var r,e="\\ufe0e\\ufe0f",n="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",o=RegExp("[\\u200d\\ud800-\\udfff"+n+e+"]"),a="\\ud83c[\\udffb-\\udfff]",i="[\\ufe0e\\ufe0f]?",u="["+n+"]",f="(?:"+u+"|"+a+")"+"?",c="[\\ud800-\\udfff]",l="[^\\ud800-\\udfff]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",d=i+f+("(?:\\u200d(?:"+[l,h,s].join("|")+")"+i+f+")*"),g="(?:"+[l+u+"?",u,h,s,c].join("|")+")",v=RegExp(a+"(?="+a+")|"+g+d,"g");return r=t,o.test(r)?function(t){return t.match(v)||[]}(t):function(t){return t.split("")}(t)},t.simulationUUID=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()},t.trim=function(t){return t.replace(/(^\s*)|(\s*$)/g,"")},t.isNowValid=function(t,r){var e=new Date(t),n=new Date(r),o=!1;if(e.getDate()+""!="NaN"&&n.getDate()+""!="NaN"){var a=new Date;o=a<n&&a>e}return o},t.getDeltaDays=function(t,r){t=new Date(t),r=new Date(r);var e=t.getFullYear(),n=t.getMonth()+1,o=t.getDate(),a=r.getFullYear(),i=r.getMonth()+1,u=r.getDate();t=new Date(e+"/"+n+"/"+o+" GMT+0800").getTime();var f=(r=new Date(a+"/"+i+"/"+u+" GMT+0800").getTime())-t;return Math.floor(f/864e5)},t.getMin=function(t){var r=null;if(t.constructor===Array)for(var e=t.length,n=0;n<e;n++)r=0===n?Number(t[0]):r>Number(t[n])?Number(t[n]):r;return r},t.formatTwoDigits=function(t){return(Array(2).join(0)+t).slice(-2)},t.formatDate=function(t,r){var e={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var n in/(y+)/.test(r)&&(r=r.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+n+")").test(r)&&(r=r.replace(RegExp.$1,1===RegExp.$1.length?e[n]:("00"+e[n]).substr((""+e[n]).length)));return r},t.getDay=function(){var t=new Date;return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()},t.formatName=function(t,r){r=r||6;var e=this._stringToArray(t),n="";if(e.length>r){for(var o=0;o<r;o++)n+=e[o];n+="..."}else n=t;return n},t.formatMoney=function(t){for(var r=["","K","M","G","T","P","E","Z","Y","B","N","D"],e="",n=0;n<r.length;n++){if(!(t>=1e4)){e=Math.floor(t)+r[n];break}t/=1e3}return""===e&&(e=Math.floor(t)+"U"),e},t.verbatim=function(t,r,e,n,o,a){if(void 0===n&&(n=0),void 0===o&&(o=0),void 0===a&&(a=.1),r.hasOwnProperty("length")){t.node.active=!0,t.unscheduleAllCallbacks();var i=function(){var o=r.replace(/ /g,"").split(""),i=0,u="";t.schedule((function r(){if(u+=o[i],t.string=u,++i>=o.length){t.unschedule(r);var a=function(){null==e||e()};n>0?t.scheduleOnce(a,n):a()}}),a,Number.MAX_SAFE_INTEGER)};o>0?t.scheduleOnce(i.bind(this),o):i()}},t.formatValue=function(t){for(var r=[],e="",n=0;n<26;n++)r.push(String.fromCharCode(97+n));for(var o=0;o<r.length;o++){if(!(t>=1e4)){e=Math.floor(t)+r[o];break}t/=1e3}return e},t.formatTimeForSecond=function(t,r){void 0===r&&(r=!1);var e="",n=t%60,o=Math.floor(t/60);o=o<0?0:o;var a=Math.floor(o/60),i=o%60;return a>0?(e+=a>9?a.toString():"0"+a,e+=":"):e+="00:",e+=i>9?i.toString():"0"+i,r||(e+=":",e+=n>9?n.toString():"0"+n),e},t.distance=function(t,r){var e=r.x-t.x,n=r.y-t.y,o=r.z-t.z;return Math.sqrt(e*e+n*n+o*o)},t.formatTimeForMillisecond=function(t){var r=Math.floor(t/1e3%60),e=Math.floor(t/1e3/60%60);return{hour:Math.floor(t/1e3/60/60),minute:e,second:r}},t.formatTimestamp=function(t){var r=new Date(t);return r.getFullYear()+"-"+String(r.getMonth()+1).padStart(2,"0")+"-"+String(r.getDate()).padStart(2,"0")+" "+String(r.getHours()).padStart(2,"0")+":"+String(r.getMinutes()).padStart(2,"0")+":"+String(r.getSeconds()).padStart(2,"0")},t.randomArray=function(t){for(var r=t.length-1;r>0;r--){var e=Math.floor(Math.random()*(r+1)),n=[t[e],t[r]];t[r]=n[0],t[e]=n[1]}return t},t.getOffsetMimutes=function(t,r){var e=r-t;return Math.floor(e%36e5/6e4)},t.getRandomFloat=function(t,r){return Math.random()*(r-t)+t},t.formatNumToFixed=function(t,r){return void 0===r&&(r=0),Number(t.toFixed(r))},t.lerp=function(t,r,e){void 0===e&&(e=.25);var n=r;return t>r?n=r+(t-r)*e:t<r&&(n=r-(r-t)*e),n},t.decrypt=function(t){if(null==t||null==t)return"";var r=6;t.length%2==0&&(r=7);for(var e="",n=0;n<t.length-r;n+=2)e+=t[n+1],e+=t[n];return e+=t.slice(t.length-r+1),e=this._base64Decode(e)},t.encrypt=function(t){if(null==t||null==t)return"";var r=this._base64encode(t),e=6;r.length%2==0&&(e=7);for(var n="",o=0;o<(r.length-e+1)/2;o++)n+=r[2*o+1],n+=r[2*o];return n+=r.slice(r.length-e+1)},t._base64encode=function(t){var r,e,n,o,a,i,u,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",l=0;for(t=this._utf8Encode(t);l<t.length;)o=(r=t.charCodeAt(l++))>>2,a=(3&r)<<4|(e=t.charCodeAt(l++))>>4,i=(15&e)<<2|(n=t.charCodeAt(l++))>>6,u=63&n,isNaN(e)?i=u=64:isNaN(n)&&(u=64),c=c+f.charAt(o)+f.charAt(a)+f.charAt(i)+f.charAt(u);return c},t._utf8Encode=function(t){t=t.replace(/\r\n/g,"\n");for(var r="",e=0;e<t.length;e++){var n=t.charCodeAt(e);n<128?r+=String.fromCharCode(n):n>127&&n<2048?(r+=String.fromCharCode(n>>6|192),r+=String.fromCharCode(63&n|128)):(r+=String.fromCharCode(n>>12|224),r+=String.fromCharCode(n>>6&63|128),r+=String.fromCharCode(63&n|128))}return r},t._utf8Decode=function(t){for(var r="",e=0,n=0,o=0,a=0;e<t.length;)(n=t.charCodeAt(e))<128?(r+=String.fromCharCode(n),e++):n>191&&n<224?(o=t.charCodeAt(e+1),r+=String.fromCharCode((31&n)<<6|63&o),e+=2):(o=t.charCodeAt(e+1),a=t.charCodeAt(e+2),r+=String.fromCharCode((15&n)<<12|(63&o)<<6|63&a),e+=3);return r},t._base64Decode=function(t){var r,e,n,o,a,i,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f="",c=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<t.length;)r=u.indexOf(t.charAt(c++))<<2|(o=u.indexOf(t.charAt(c++)))>>4,e=(15&o)<<4|(a=u.indexOf(t.charAt(c++)))>>2,n=(3&a)<<6|(i=u.indexOf(t.charAt(c++))),f+=String.fromCharCode(r),64!=a&&(f+=String.fromCharCode(e)),64!=i&&(f+=String.fromCharCode(n));return f=this._utf8Decode(f)},t.pageAnim=function(t,r,e){void 0===r&&(r=!0);var a=t.getComponent(n);if(t&&a){a.opacity=r?25:255;var i=r?255:25;o(a).to(.4,{opacity:i}).call(function(){null==e||e()}.bind(this)).start()}else null==e||e()},t.chunk=function(t,r){if(!(null===t?0:t.length)||r<1)return[];for(var e=[];t.length>r;)e.push(t.slice(0,r)),t=t.slice(r);return e.push(t),e},t.upperCase=function(t){return this.isNull(t)?"":t.replace(/^\w/,(function(t){return t.toUpperCase()}))},t.findName=function(t,r){var e;return-1!=r.indexOf("/")?e=a(r,t):(t||(t=i.getScene()),e=t.name===r?t:this.findChild(r,t)),e||(console.log("没有找到指定的Node, node name ==",r),null)},t.findChild=function(t,r){var e=r.getChildByName(t);if(e)return e;for(var n=r.children,o=0;o<n.length;o++)if(e=this.findChild(t,n[o]))return e;return null},t.numUnit=function(t,r,e){void 0===r&&(r=0),void 0===e&&(e=!0);var n=t,o=1e4;if(n>o){if(0==r)return(n=Math.ceil(n/o)).toString()+"万";var a=(n/o).toFixed(r);return e?this.removeZeros(a)+"万":a+"万"}return Math.ceil(t).toString()},t.formatNumber=function(t){if(null==t||null==t)return 0;var r=t.toString();if(r.includes(".")&&/\.0+$/.test(r))return parseInt(r,10);var e=t.toFixed(2);return e.endsWith(".00")?parseInt(e,10):parseFloat(e)},t.removeZeros=function(t){var r=t.trim();if(-1!==r.indexOf(".")){for(var e=r.length-1;"0"===r[e];)e--;return"."===r[e]&&e--,r.slice(0,e+1)}return r},t.remove=function(t,r){var e=t.indexOf(r);e>-1&&t.splice(e,1)},t.hexColor=function(t){var r=t.replace(/^#?/,"0x"),e=parseInt(r);return new u(e>>16,(65280&e)>>8,255&e,255)},t.filtion=function(t){return g.some((function(r){var e=t.toLowerCase(),n=r.toLowerCase();return e.includes(n)}))},t.pDistance=function(t,r){var e=t.x-r.x,n=t.y-r.y;return Math.sqrt(e*e+n*n)},t.pAbsDistance=function(t,r){return Math.abs(t.x-r.x)+Math.abs(t.y-r.y)},t.angle_to_vector=function(t){var r=this.angle_to_radian(t),e=Math.cos(r),n=Math.sin(r);return new f(e,n).normalize()},t.vector_to_angle=function(t){var r=t.normalize().signAngle(new f(1,0));return-this.radian_to_angle(r)},t.angle_to_radian=function(t){return Math.PI/180*t},t.radian_to_angle=function(t){return 180/Math.PI*t},t.getAngle=function(t,r){var e=r.x-t.x,n=r.y-t.y,o=e/Math.sqrt(e*e+n*n),a=Math.acos(o),i=180/(Math.PI/a);return n<0?i=0-i:0==n&&e<0&&(i=180),i},t.numberToString=function(t){console.log("当前的值: "+t);var r=Number(t);return isNaN(r)?"0":r<1e5?Math.floor(r).toString():this.formatBigNumber(r,["","K","M","B"],1e3)},t.formatBigNumber=function(t,r,e){void 0===e&&(e=1e4);var n=Number(t);if(isNaN(n))return"0";var o=r||["","万","亿","万亿"],a=e;if(n<a)return n%1==0?n.toString():n.toFixed(2);var i=Math.floor(Math.log(n)/Math.log(a)),u=Math.min(i,o.length-1),f=n/Math.pow(a,u),c=2;f>=1e3?c=0:f>=100&&(c=1);var l=f.toFixed(c);return l.endsWith(".00")?l=l.slice(0,-3):l.endsWith("0")&&c>0&&(l=l.replace(/0+$/,"").replace(/\.$/,"")),l+o[u]},t.convertPosition=function(t,r){var e=t.position.clone(),n=t.parent.getComponent(c).convertToWorldSpaceAR(e);return r.getComponent(c).convertToNodeSpaceAR(n)},t.randomPointGenerator=function(t,r){var e=Math.random()*Math.PI*2,n=Math.sqrt(Math.random())*r,o=t.x+n*Math.cos(e),a=t.y+n*Math.sin(e);return new l(o,a,1)},t.convertPositionPos=function(t,r,e){var n=r.clone(),o=t.parent.getComponent(c).convertToWorldSpaceAR(n);return e.getComponent(c).convertToNodeSpaceAR(o)},t.getScreenCenterWorldPos=function(t,r){if(void 0===r&&(r=0),!t)return l.ZERO;var e=h.getVisibleSize(),n=e.width/2,o=e.height/2,a=t.screenPointToRay(n,o),i=(r-a.o.y)/a.d.y;return new l(a.o.x+a.d.x*i,a.o.y+a.d.y*i,a.o.z+a.d.z*i)},t.lookAtNode=function(t,r,e){if(void 0===e&&(e=.3),t&&r){var n=r.worldPosition,a=t.worldPosition,i=new l;l.subtract(i,n,a);var u=new l(i.x,0,i.z).normalize(),f=(l.distance(n,a),n.y-a.y),c=s.toRadian(s.clamp(180*Math.atan2(f,Math.sqrt(i.x*i.x+i.z*i.z))/Math.PI,-89,89)),h=new d;d.fromViewUp(h,u,l.UP);var g=new d;if(d.fromEuler(g,c,0,0),d.multiply(h,h,g),e<=0)t.setRotation(h);else{var v=t.rotation.clone();o(t).to(e,{rotation:h},{onUpdate:function(r,e){var n=new d;d.slerp(n,v,h,e),t.setRotation(n)}}).start()}}},t.calculateParabolaCenter=function(t,r){var e=r.x-t.x,n=(t.x+r.x)/2,o=Math.max(t.y,r.y)+Math.abs(e)/4;return new l(n,o)},t.randomUIPointGenerator=function(t,r,e){var n=t.getComponent(c).contentSize,o=Math.min(n.width/2-Math.abs(r.x),n.height/2-Math.abs(r.y)),a=Math.min(e,o),i=Math.random()*Math.PI*2,u=Math.sqrt(Math.random())*a;return new l(r.x+u*Math.cos(i),r.y+u*Math.sin(i),0)},t.getRandomColor=function(){var t=Math.floor(256*Math.random()),r=Math.floor(256*Math.random()),e=Math.floor(256*Math.random());return new u(t,r,e)},t.ratioInterstitialAd=function(t){void 0===t&&(t=.2);var r=Math.min(t,1);Math.random()<=r&&v.platform.showInterstitialAd()},t}())||m);r._RF.pop()}}}));
- System.register("chunks:///_virtual/Verbatim.ts",["./rollupPluginModLoBabelHelpers.js","cc"],(function(t){var e,i;return{setters:[function(t){e=t.extends},function(t){i=t.cclegacy}],execute:function(){i._RF.push({},"0a3efyhuFtIZ6sQMHFeWv8u","Verbatim",void 0);t("VerbatimEffect",function(){function t(t,i){void 0===i&&(i={}),this.label=void 0,this.textQueue=[],this.currentIndex=0,this.isPlaying=!1,this.options=void 0,this.onCompleteCallback=null,this.onCharCallback=null,this.onTextStartCallback=null,this.onTextCompleteCallback=null,this.label=t,this.options=e({speed:.1,delay:0,callbackDelay:0,autoStart:!0,preserveSpaces:!1},i)}var i=t.prototype;return i.addText=function(t){var e;Array.isArray(t)?(e=this.textQueue).push.apply(e,t):this.textQueue.push(t);return this},i.onComplete=function(t){return this.onCompleteCallback=t,this},i.onChar=function(t){return this.onCharCallback=t,this},i.onTextStart=function(t){return this.onTextStartCallback=t,this},i.onTextComplete=function(t){return this.onTextCompleteCallback=t,this},i.start=function(){var t=this;this.isPlaying||0===this.textQueue.length||(this.isPlaying=!0,this.currentIndex=0,this.label.node.active=!0,this.label.string="",this.options.delay&&this.options.delay>0?this.label.scheduleOnce((function(){return t.playNextText()}),this.options.delay):this.playNextText())},i.stop=function(){this.isPlaying=!1,this.label.unscheduleAllCallbacks()},i.skipCurrent=function(){if(this.isPlaying){this.label.unscheduleAllCallbacks();var t=this.textQueue[this.currentIndex];this.label.string=this.options.preserveSpaces?t:t.replace(/\s/g,""),this.handleTextComplete(t,this.currentIndex)}},i.skipAll=function(){if(this.isPlaying){this.stop();for(var t="",e=this.currentIndex;e<this.textQueue.length;e++)t+=this.options.preserveSpaces?this.textQueue[e]:this.textQueue[e].replace(/\s/g,"");this.label.string=t,this.onCompleteCallback&&this.executeCallback(this.onCompleteCallback,this.options.callbackDelay)}},i.clear=function(){this.stop(),this.textQueue=[],this.currentIndex=0},i.playNextText=function(){var t=this;if(!this.isPlaying||this.currentIndex>=this.textQueue.length)return this.isPlaying=!1,void(this.onCompleteCallback&&this.executeCallback(this.onCompleteCallback,this.options.callbackDelay));var e=this.textQueue[this.currentIndex],i=(this.options.preserveSpaces?e:e.replace(/\s/g,"")).split(""),l=0,s="";this.onTextStartCallback&&this.onTextStartCallback(e,this.currentIndex);this.label.schedule((function n(){if(t.isPlaying){var a=i[l];s+=a,t.label.string=s,t.onCharCallback&&t.onCharCallback(a),++l>=i.length&&(t.label.unschedule(n),t.handleTextComplete(e,t.currentIndex++))}}),this.options.speed,i.length-1,0)},i.handleTextComplete=function(t,e){this.onTextCompleteCallback&&this.onTextCompleteCallback(t,e),this.playNextText()},i.executeCallback=function(t,e){void 0===e&&(e=0),e&&e>0?this.label.scheduleOnce((function(){return t()}),e):t()},t}());i._RF.pop()}}}));
- System.register("chunks:///_virtual/zh.ts",["cc","./LanguageData.ts"],(function(){var e,a;return{setters:[function(a){e=a.cclegacy},function(e){a=e.default}],execute:function(){e._RF.push({},"3c2acsRBE9KO4h4sGTiBlRL","zh",void 0),a.languages.zh={main:{"加载中...":"资源加载中...","关卡任务:%{value}":"关卡任务:%{value}","关卡任务 %{value}":"关卡任务 %{value}","%{value}级解锁":"%{value}级解锁","凑齐道具不足":"凑齐道具不足","未找到合适物品":"未找到合适物品","冰冻中":"冰冻中","体力已满":"体力已满","购买成功":"购买成功","已满":"已满","关卡%{value}通过":"关卡%{value} 通过"}},e._RF.pop()}}}));
- (function(r) {
- r('virtual:///prerequisite-imports/main', 'chunks:///_virtual/main');
- })(function(mid, cid) {
- System.register(mid, [cid], function (_export, _context) {
- return {
- setters: [function(_m) {
- var _exportObj = {};
- for (var _key in _m) {
- if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _m[_key];
- }
-
- _export(_exportObj);
- }],
- execute: function () { }
- };
- });
- });
|