System.register("chunks:///_virtual/RedComponent.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./RedMgr.ts"],(function(e){"use strict";var t,n,o,i,r,s,d,c;return{setters:[function(e){t=e.cclegacy,n=e._decorator,o=e.Component},function(e){i=e.inheritsLoose,r=e.defineProperty,s=e.assertThisInitialized,d=e.createClass},function(e){c=e.RedMgr}],execute:function(){var u;t._RF.push({},"00415c8CqdK4aMlOuOlhAAW","RedComponent",void 0);var a=n.ccclass;n.property,e("RedComponent",a("RedComponent")(u=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),i=0;i0)for(var t=0;t=0)e.getIns().toast("UIFashion_lan_7");else{console.log("CS1160_ActivationFashion >> "+n);var t=new fashion.CS1160_ActivationFashion;t.id=n,s.getIns().send(1160,t,fashion.CS1160_ActivationFashion)}},n.CS1162_SparActivationFashion=function(n){if(o.getIns().getData(i.Fashion).activationFashionIds.indexOf(n)>=0)e.getIns().toast("UIFashion_lan_7");else{console.log("CS1162_SparActivationFashion >> "+n);var a=new fashion.CS1162_SparActivationFashion;a.templateId=n,s.getIns().send(1162,a,fashion.CS1162_SparActivationFashion)}},n.CS1161_ChangeShowFashion=function(n,a){if(n){var t=o.getIns().getData(i.Fashion);if(t.activationFashionIds.indexOf(n)<0)e.getIns().toast("UIFashion_lan_4");else if(t.fashionId!==n||t.fashionNftTk!==a){var h=new fashion.CS1161_ChangeShowFashion;h.templateId=n,h.nftToken=a||-1,console.log("CS1160_ActivationFashion >> "+h.templateId+"#"+h.nftToken),s.getIns().send(1161,h,fashion.CS1161_ChangeShowFashion)}}},n.CS1170_ChangePlayerInfo=function(n,a){if(console.log("CS1170_ChangePlayerInfo:"+n),n!=o.getIns().userData.headImage||a!=o.getIns().userData.headToken){var t=new fashion.CS1170_ChangePlayerInfo;t.headImage=n,t.headToken=a,s.getIns().send(1170,t,fashion.CS1170_ChangePlayerInfo)}},n}())||h);a._RF.pop()}}})); System.register("chunks:///_virtual/summonHeroWin.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./uiBase.ts","./audioConst.ts","./audioManager.ts"],(function(n){"use strict";var o,t,e,i,s,u,r;return{setters:[function(n){o=n.cclegacy,t=n._decorator},function(n){e=n.inheritsLoose,i=n.createClass},function(n){s=n.uiBase},function(n){u=n.AudioConst},function(n){r=n.default}],execute:function(){var c;o._RF.push({},"00bfcO9aeNNO6nLkctxr4s+","summonHeroWin",void 0);var a=t.ccclass;t.property,n("summonHeroWin",a("summonHeroWin")(c=function(n){function o(){var o;return(o=n.call(this)||this)._uiInfo.prefabPath="ui_hero/prefab/summonHero",o._uiInfo.autoRelease=!1,o._uiInfo.isAnim=!1,o}e(o,n);var t=o.prototype;return t.onShow=function(){r.instance.playMusic(u.SummonBgm)},t.destroy=function(){n.prototype.destroy.call(this),r.instance.playMusic(u.CityBgm)},i(o,[{key:"originalScale",set:function(n){}}]),o}(s))||c);o._RF.pop()}}})); System.register("chunks:///_virtual/inputManager.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./gameDef.ts","./gEvent.ts","./arrayUtil.ts"],(function(e){"use strict";var t,s,n,i,a,o,r,h,c,p;return{setters:[function(e){t=e.cclegacy,s=e._decorator,n=e.Input,i=e.input,a=e.KeyCode},function(e){o=e.defineProperty,r=e.createClass},function(e){h=e.eDir},function(e){c=e.gEvent},function(e){p=e.default}],execute:function(){var u,y,l;e("eInputBlockType",void 0),t._RF.push({},"00cb0ywOcZCgJnvkeLb6j68","inputManager",void 0);var _,f=s.ccclass;s.property;!function(e){e[e.mapchange=0]="mapchange",e[e.net=1]="net",e[e.dialog=2]="dialog",e[e.size=3]="size"}(_||(_=e("eInputBlockType",{})));e("inputManager",f("inputManager")((l=y=function(){function e(){o(this,"m_mapTouchLayer",null),o(this,"pressKeysHorizontal",new Array),o(this,"pressKeysVertical",new Array),o(this,"_enableInput",[]),o(this,"m_needUpdateKey",!1);for(var e=0;e<_.size;++e)this._enableInput[e]=!0;this._enableInput[_.mapchange]=!1}e.getIns=function(){return null==e.instance&&(e.instance=new e),e.instance};var t=e.prototype;return t.init=function(e){this.m_mapTouchLayer=e.getChildByPath("uiCanvas/mapTouchLayer"),this.addListener()},t.addListener=function(){this.m_mapTouchLayer.on(n.EventType.TOUCH_END,this.onTouchEnd,this),this.m_mapTouchLayer.on(n.EventType.TOUCH_START,this.onTouchStart,this,!1),this.m_mapTouchLayer.on(n.EventType.TOUCH_MOVE,this.onTouchMove,this,!1),this.m_mapTouchLayer.on(n.EventType.TOUCH_CANCEL,this.onTouchCancel,this,!1),i.on(n.EventType.KEY_DOWN,this.onKeyDown,this),i.on(n.EventType.KEY_UP,this.onKeyUp,this),i.on(n.EventType.KEY_PRESSING,this.onKeyPressing,this),c.on(c.Game_OnPause,this.gameOnPause,this),c.on(c.Input_Enable,this.onInput_Enable,this)},t.removeListener=function(){this.m_mapTouchLayer.off(n.EventType.TOUCH_END,this.onTouchEnd,this),this.m_mapTouchLayer.off(n.EventType.TOUCH_START,this.onTouchStart,this,!1),this.m_mapTouchLayer.off(n.EventType.TOUCH_MOVE,this.onTouchMove,this,!1),this.m_mapTouchLayer.off(n.EventType.TOUCH_CANCEL,this.onTouchCancel,this,!1),i.off(n.EventType.KEY_DOWN,this.onKeyDown,this),i.off(n.EventType.KEY_UP,this.onKeyUp,this),i.off(n.EventType.KEY_PRESSING,this.onKeyPressing,this),c.off(c.Game_OnPause,this.gameOnPause,this),c.off(c.Input_Enable,this.onInput_Enable,this)},t.gameOnPause=function(){this.pressKeysHorizontal.length=0,this.pressKeysVertical.length=0},t.onTouchEnd=function(e){e.preventSwallow=!0,c.emit(c.Input_Touch_Up,e.getLocation())},t.onTouchStart=function(e){e.preventSwallow=!0},t.onTouchMove=function(e){e.preventSwallow=!0,c.emit(c.Input_Touch_Up,e.getLocation())},t.onTouchCancel=function(e){e.preventSwallow=!0,c.emit(c.Input_Touch_Up,e.getLocation())},t.onKeyDown=function(e){switch(e.keyCode){case a.KEY_W:case a.ARROW_UP:if(-1!=this.pressKeysVertical.indexOf(h.up))return;p.addkey(this.pressKeysVertical,h.up);break;case a.KEY_D:case a.ARROW_RIGHT:if(-1!=this.pressKeysHorizontal.indexOf(h.right))return;p.addkey(this.pressKeysHorizontal,h.right);break;case a.KEY_S:case a.ARROW_DOWN:if(-1!=this.pressKeysVertical.indexOf(h.down))return;p.addkey(this.pressKeysVertical,h.down);break;case a.KEY_A:case a.ARROW_LEFT:if(-1!=this.pressKeysHorizontal.indexOf(h.left))return;p.addkey(this.pressKeysHorizontal,h.left);break;default:return}this.m_needUpdateKey=!0},t.onKeyUp=function(e){switch(e.keyCode){case a.KEY_W:case a.ARROW_UP:if(-1==this.pressKeysVertical.indexOf(h.up))return;p.removekey(this.pressKeysVertical,h.up);break;case a.KEY_D:case a.ARROW_RIGHT:if(-1==this.pressKeysHorizontal.indexOf(h.right))return;p.removekey(this.pressKeysHorizontal,h.right);break;case a.KEY_S:case a.ARROW_DOWN:if(-1==this.pressKeysVertical.indexOf(h.down))return;p.removekey(this.pressKeysVertical,h.down);break;case a.KEY_A:case a.ARROW_LEFT:if(-1==this.pressKeysHorizontal.indexOf(h.left))return;p.removekey(this.pressKeysHorizontal,h.left);break;default:return}this.m_needUpdateKey=!0},t.onKeyPressing=function(e){switch(e.keyCode){case a.KEY_W:p.addkey(this.pressKeysVertical,h.up);break;case a.KEY_D:p.addkey(this.pressKeysHorizontal,h.right);break;case a.KEY_S:p.addkey(this.pressKeysVertical,h.down);break;case a.KEY_A:p.addkey(this.pressKeysHorizontal,h.left)}},t.onInput_Enable=function(e,t){this._enableInput[t]=e,e||(this.m_needUpdateKey=!1,this.pressKeysVertical=[],this.pressKeysHorizontal=[])},t.update=function(e){if(this.enableInput&&this.m_needUpdateKey){this.m_needUpdateKey=!1;var t=this.pressKeysVertical.length,s=this.pressKeysHorizontal.length;if(t<=0&&s<=0)c.emit(c.Role_Stop);else{var n=(t>0?this.pressKeysVertical[t-1]:0)+(s>0?this.pressKeysHorizontal[s-1]:0);c.emit(c.Role_Move,n)}}},r(e,[{key:"enableInput",get:function(){for(var e=0;e<_.size;++e)if(!this._enableInput[e])return!1;return!0}}]),e}(),o(y,"instance",null),u=l))||u);t._RF.pop()}}})); System.register("chunks:///_virtual/gEvent.ts",["cc","./_rollupPluginModLoBabelHelpers.js"],(function(e){"use strict";var _,a,U;return{setters:[function(e){_=e.cclegacy,a=e.EventTarget},function(e){U=e.defineProperty}],execute:function(){_._RF.push({},"00fb9OUdalPMbya90BysUXP","gEvent",void 0);var i=e("gEvent",function(){function e(){}return e.emit=function(_,a,U,i,n,o){e.et.emit(_,a,U,i,n,o)},e.on=function(_,a,U){e.et.on(_,a,U)},e.off=function(_,a,U){e.et.off(_,a,U)},e.targetOff=function(_,a,U){e.et.targetOff(U)},e}());U(i,"et",new a),U(i,"Game_OnResize","Game_OnResize"),U(i,"Game_OnPause","Game_OnPause"),U(i,"Game_OnResume","Game_OnResume"),U(i,"Game_TimeUpdate_Second","Game_TimeUpdate_Second"),U(i,"Net_OnConnected","Net_OnConnected"),U(i,"UI_Open","UI_Open"),U(i,"UI_Close","UI_Close"),U(i,"UI_ShowMask","UI_ShowMask"),U(i,"UI_OpenAnim","UI_OpenAnim"),U(i,"UI_OpenFinished","UI_OpenFinished"),U(i,"UI_CloseFinished","UI_CloseFinished"),U(i,"Input_Touch_Up","Input_Touch_Up"),U(i,"Entity_Selected","Entity_Selected"),U(i,"Entity_UnSelected","Entity_Selected"),U(i,"Language_Set","Language_Set"),U(i,"Language_LoadSprite_Begin","Language_LoadSprite_Begin"),U(i,"Language_LoadSprite_End","Language_LoadSprite_End"),U(i,"Role_Move","Role_Move"),U(i,"Role_Reset","Role_Reset"),U(i,"Role_Stop","Role_Stop"),U(i,"Input_Enable","Enable_Input"),U(i,"MainCamera_Follow","MainCamera_Follow"),U(i,"Map_Loaded","Map_Loaded"),U(i,"Net_Login_OnConnected","Net_Login_OnConnected"),U(i,"Net_OnConnectedWallet","Net_OnConnectedWallet"),U(i,"MapStartLoad","MapStartLoad"),U(i,"MapLivePlayerInPos","MapLivePlayerInPos"),U(i,"MapLivePlayerUpdate","MapLivePlayerUpdate"),U(i,"RefreshLiveUI","RefreshLiveUI"),U(i,"LiveChangeRoom","LiveChangeRoom"),U(i,"TouchPlayAudio","TouchPlayAudio"),U(i,"UI_Close_Login","UI_Close_Login"),U(i,"UI_Connect_Wallet","UI_Connect_Wallet"),U(i,"UI_Connect_Wallet_TIMEOUT","UI_Connect_Wallet_TIMEOUT"),U(i,"UI_Close_Wallet","UI_Close_Wallet"),U(i,"UI_Select_Head","UI_Select_Head"),U(i,"UI_Select_Token","UI_Select_Token"),U(i,"UI_Close_SelectToken","UI_Close_SelectToken"),U(i,"UI_Update_TokenA","UI_Update_TokenA"),U(i,"UI_Choose_SetGas","UI_Choose_SetGas"),U(i,"UI_Choose_SetSlippage","UI_Choose_SetSlippage"),U(i,"UI_SetDelay","UI_SetDelay"),U(i,"burgerGasLodingFin","burgerGasLodingFin"),U(i,"burgerSwapLodingFin","burgerSwapLodingFin"),U(i,"MoneyLoadingAllFin","MoneyLoadingAllFin"),U(i,"UI_Close_Set","UI_Close_Set"),U(i,"UI_Close_Loading","UI_Close_Loading"),U(i,"UI_Close_LoadingTimeOut","UI_Close_LoadingTimeOut"),U(i,"UI_Close_LoadingSend","UI_Close_LoadingSend"),U(i,"UI_Close_LoadingSwap","UI_Close_LoadingSwap"),U(i,"UI_Close_LoadingSelect","UI_Close_LoadingSelect"),U(i,"UI_Close_LoadingLiquidity","UI_Close_LoadingLiquidity"),U(i,"UI_Close_Waiting","UI_Close_Waiting"),U(i,"UI_Close_LiquidityAdd","UI_Close_LiquidityAdd"),U(i,"UI_Continue_LiquidityAction","UI_Continue_LiquidityAction"),U(i,"liquidityTokenLodingFin","liquidityTokenLodingFin"),U(i,"LPMoneyLoadingFin","LPMoneyLoadingFin"),U(i,"UI_F5_Liquidity","UI_F5_Liquidity"),U(i,"UI_Send_LiquidityData","UI_Send_LiquidityData"),U(i,"UI_Send_LiquidityRemoveData","UI_Send_LiquidityRemoveData"),U(i,"UI_Send_LiquiditymintRewardData","UI_Send_LiquiditymintRewardData"),U(i,"UI_Send_DepositData","UI_Send_DepositData"),U(i,"UI_Send_WithDrawData","UI_Send_WithDrawData"),U(i,"UI_Send_HarvestData","UI_Send_HarvestData"),U(i,"UI_F5_Stack","UI_F5_Stack"),U(i,"UI_Reset_Swap","UI_Reset_Swap"),U(i,"UI_Close_Swap","UI_Close_Swap"),U(i,"UI_Close_SwapConfig","UI_Close_SwapConfig"),U(i,"UI_Close_LiquidityConfig","UI_Close_LiquidityConfig"),U(i,"UI_Close_LiquidityRemove","UI_Close_LiquidityRemove"),U(i,"UI_On_Swap","UI_On_Swap"),U(i,"UI_Send_SwapData","UI_Send_SwapData"),U(i,"UI_Select_Server","UI_Select_Server"),U(i,"UI_Email_CheckRP","UI_Email_CheckRP"),U(i,"UI_Email_Change","UI_Email_Change"),U(i,"UI_Email_Del","UI_Email_Del"),U(i,"UI_Email_AutoDel","UI_Email_AutoDel"),U(i,"UI_Email_GetPrize","UI_Email_GetPrize"),U(i,"UI_Email_CheckMax","UI_Email_CheckMax"),U(i,"UI_Email_ShowPrize","UI_Email_ShowPrize"),U(i,"UI_DailyTask_Refresh","UI_DailyTask_Refresh"),U(i,"UI_DailyTask_BoxChange","UI_DailyTask_BoxChange"),U(i,"UI_GrowTask_Refresh","UI_GrowTask_Refresh"),U(i,"UI_DailyTask_RP","UI_DailyTask_RP"),U(i,"UI_GrowTask_RP","UI_GrowTask_RP"),U(i,"UI_Task_Close","UI_Task_Close"),U(i,"UI_Disabled","UI_Disabled"),U(i,"UI_Enabled","UI_Enabled"),U(i,"sendLiquidityPrice","sendLiquidityPrice"),U(i,"sendDEPOSITPrice","sendDEPOSITPrice"),U(i,"UI_Institute_Update","UI_Institute_Update"),U(i,"UI_Institute_ShowUpdate","UI_Institute_ShowUpdate"),U(i,"UI_NFTHeroInfo_Update","UI_NFTHeroInfo_Update"),U(i,"UI_SummonHero_NewHero","UI_SummonHero_NewHero"),U(i,"SearchHeroList","SearchHeroList"),U(i,"SearchHeroToken","SearchHeroToken"),U(i,"SearchSort","SearchSort"),U(i,"HeroCardFlip","HeroCardFlip"),U(i,"HeroShowUpInfo","HeroShowUpInfo"),U(i,"HeroHideUpInfo","HeroHideUpInfo"),U(i,"HeroShowStarUpInfo","HeroShowStarUpInfo"),U(i,"HeroHideStarUpInfo","HeroHideStarUpInfo"),U(i,"HeroShowUpdateData","HeroShowUpdateData"),U(i,"UI_HeroLvUp_Show","UI_HeroLvUp_Show"),U(i,"UI_UseRecovery_Item","UI_UseRecovery_Item"),U(i,"NFT_Loading_Close","NFT_Loading_Close"),U(i,"UI_FriendInvite_F5","UI_FriendInvite_F5"),U(i,"UI_HeroStarUp_Show","UI_HeroStarUp_Show"),U(i,"UI_WarMachine_Load","UI_WarMachine_Load"),U(i,"UI_WarMachine_Select","UI_WarMachine_Select"),U(i,"UI_WarMachine_Acitve","UI_WarMachine_Acitve"),U(i,"UI_WarMachine_JoinWar","UI_WarMachine_JoinWar"),U(i,"UI_WarMachine_LvUp","UI_WarMachine_LvUp"),U(i,"UI_WarMachine_StarUp","UI_WarMachine_StarUp"),U(i,"UI_WarMachine_Update","UI_WarMachine_Update"),U(i,"UI_WarMachine_ExpUp","UI_WarMachine_ExpUp"),U(i,"UI_WarMachine_ShowLvUpInfo","UI_WarMachine_ShowLvUpInfo"),U(i,"UI_WarMachine_HideLvUpInfo","UI_WarMachine_HideLvUpInfo"),U(i,"UI_WarMachine_ShowStarUpInfo","UI_WarMachine_ShowStarUpInfo"),U(i,"UI_WarMachine_HideStarUpInfo","UI_WarMachine_HideStarUpInfo"),U(i,"UI_WarMachine_LvUpFail","UI_WarMachine_LvUpFail"),U(i,"UI_Equip_Load","UI_Equip_Load"),U(i,"UI_Equip_Select","UI_Equip_Select"),U(i,"UI_Equip_SelectPart","UI_Equip_SelectPart"),U(i,"UI_Equip_SelectUpdate","UI_Equip_SelectUpdate"),U(i,"UI_Equip_SelectMasterUpdate","UI_Equip_SelectMasterUpdate"),U(i,"UI_Equip_UpgradeLevel","UI_Equip_UpgradeLevel"),U(i,"UI_Equip_UpgradeAscendLevel","UI_Equip_UpgradeAscendLevel"),U(i,"UI_Equip_UpgradeRefineLevel","UI_Equip_UpgradeRefineLevel"),U(i,"UI_Equip_UpgradeRuneLevel","UI_Equip_UpgradeRuneLevel"),U(i,"UI_Equip_Exchange","UI_Equip_Exchange"),U(i,"UI_Equip_AutoUpgrade","UI_Equip_AutoUpgrade"),U(i,"UI_Equip_UpdateInfo","UI_Equip_UpdateInfo"),U(i,"UI_Equip_ModUpgrade","UI_Equip_ModUpgrade"),U(i,"UI_Gene_SelectSuit","UI_Gene_SelectSuit"),U(i,"UI_Gene_ChangeEquipSlot","UI_Gene_ChangeEquipSlot"),U(i,"UI_Gene_EatEquip","UI_Gene_EatEquip"),U(i,"UI_Gene_SelectHero","UI_Gene_SelectHero"),U(i,"UI_Equip_UpgradeFail","UI_Equip_UpgradeFail"),U(i,"UI_Equip_UpgradeSuccess","UI_Equip_UpgradeSuccess"),U(i,"UI_Gene_SelectGene","UI_Gene_SelectGene"),U(i,"UI_Gene_CheckGene","UI_Gene_CheckGene"),U(i,"UI_Gene_CheckPz","UI_Gene_CheckPz"),U(i,"UI_Gene_UpdateUI","UI_Gene_UpdateUI"),U(i,"UI_SevenLogin_F5","UI_SevenLogin_F5"),U(i,"UI_SevenLogin_Loading","UI_SevenLogin_Loading"),U(i,"UI_SevenLogin_LoadingFail","UI_SevenLogin_LoadingFail"),U(i,"UI_Christmas_F5","UI_Christmas_F5"),U(i,"UI_MonthLogin_F5","UI_MonthLogin_F5"),U(i,"UI_MonthLogin_Loading","UI_MonthLogin_Loading"),U(i,"UI_PVP_FightCD","UI_PVP_FightCD"),U(i,"UI_EquipNew_Bind","UI_EquipNew_Bind"),U(i,"UI_EquipNew_UpgradeLock","UI_EquipNew_UpgradeLock"),U(i,"UI_EquipNew_UpgradeView","UI_EquipNew_UpgradeView"),U(i,"UI_EquipNew_UpgradeRefresh","UI_EquipNew_UpgradeRefresh"),U(i,"UI_EquipNew_BreakRefresh","UI_EquipNew_BreakRefresh"),U(i,"UI_EquipNew_UpgradeAddRefresh","UI_EquipNew_UpgradeAddRefresh"),U(i,"UI_EquipNew_UpgradeRemoveRefresh","UI_EquipNew_UpgradeRemoveRefresh"),U(i,"UI_EquipNew_BreakAddRefresh","UI_EquipNew_BreakAddRefresh"),U(i,"UI_EquipNew_BreakRemoveRefresh","UI_EquipNew_BreakRemoveRefresh"),U(i,"UI_HeroFav_Update","UI_HeroFav_Update"),U(i,"UI_EmBattle_SelectUpdate","UI_EmBattle_SelectUpdate"),U(i,"UI_MainMenu_Open","UI_MainMenu_Open"),U(i,"UI_MainMenu_Close","UI_MainMenu_Close"),U(i,"UI_CHAT_DATA_CHANGE","UI_CHAT_DATA_CHANGE"),U(i,"Role_Moved","Role_Moved"),U(i,"Map_Role_MapFinding","Map_Role_MapFinding"),U(i,"UI_Main_Currency_Change","UI_Main_Currency_Change"),U(i,"UI_MainLine_Stage_Change","UI_MainLine_Stage_Change"),U(i,"UI_MainLine_Sweep_Change","UI_MainLine_Sweep_Change"),U(i,"UI_Update_Item","UI_Update_Item"),U(i,"UI_ShowCursor","UI_ShowCursor"),U(i,"Input_MouseMove","Input_MouseMove"),U(i,"ChangeContractChain","ChangeContractChain"),U(i,"Fashion_Change","Fashion_Change"),U(i,"Fashion_Activeed","Fashion_Activeed"),U(i,"Fashion_NFT_Update","Fashion_NFT_Update"),U(i,"HeadImage_ID_Change","HeadImage_ID_Change"),U(i,"WorldMap_FindNpc_Task","WorldMap_FindNpc_Task"),U(i,"MouseEffectComponentUI","MouseEffectComponentUI"),U(i,"Produce_Select_Item","Produce_Select_Item"),U(i,"Produce_Select_PageTab","Produce_Select_PageTab"),U(i,"Produce_Select_OptionItem","Produce_Select_OptionItem"),U(i,"ProduceUI_refresh","ProduceUI_refresh"),U(i,"ConfigAnalyze_Loaded","ConfigAnalyze_Loaded"),U(i,"HandBook_UI_Update","HandBook_UI_Update"),U(i,"CTIMER_UI_Update","CTIMER_UI_Update"),U(i,"RED_POINT_UI_Update","RED_POINT_UI_Update"),U(i,"NoticeAdvertisement_Update","NoticeAdvertisement_Update"),U(i,"NFT_QueueTask_UI_Update","NFT_QUEUETASK_UI_Update"),U(i,"NFT_QueueTaskUI_Show","NFT_QueueTaskUI_Show"),U(i,"NFT_QueueTaskUI_Hide","NFT_QueueTaskUI_Hide"),U(i,"UI_Select_Hero_Call","UI_Select_Hero_Call"),U(i,"UI_Hire_Hero_Call","UI_Hire_Hero_Call"),U(i,"UI_HeroWin_Update_List","UI_Hero_Update_List"),U(i,"UI_Loading_Animation","UI_Loading_Animation"),U(i,"UI_ACTIVITY_UPDATE","UI_ACTIVE_UPDATE"),U(i,"UI_CLOSE_FIGHTWIN","UI_CLOSE_FIGHTWIN"),U(i,"Formation_UpdateAllTeamPower","Formation_UpdateAllTeamPower"),U(i,"UI_ChangeHeroEvent_END","UI_ChangeHeroEvent_END"),U(i,"UI_LuckWheelRefresh","UI_LuckWheelRefresh"),U(i,"UI_LuckWheelReturn","UI_LuckWheelReturn"),U(i,"UI_GetSignReturn","UI_GetSignReturn"),U(i,"UI_Exploration_Show","UI_Exploration_Show"),_._RF.pop()}}})); System.register("chunks:///_virtual/exploreUI.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./resManager.ts","./gameDef.ts","./gEvent.ts","./TimerTask.ts","./Timer.ts","./I18nLabel.ts","./Configs.ts","./uiManager.ts","./dateutils.ts","./pubfun_myh.ts","./playerData.ts","./exploreReq.ts","./NodeSkeleton.ts","./CountDownTime.ts","./exploreHeroItem.ts"],(function(e){"use strict";var t,n,i,o,r,a,s,l,p,c,h,g,u,m,d,v,C,f,y,x,L,I,S,_,k,P,B,N,E,b,D;return{setters:[function(e){t=e.cclegacy,n=e._decorator,i=e.Prefab,o=e.sp,r=e.Sprite,a=e.Label,s=e.instantiate,l=e.log,p=e.Component},function(e){c=e.applyDecoratedDescriptor,h=e.inheritsLoose,g=e.initializerDefineProperty,u=e.assertThisInitialized,m=e.defineProperty,d=e.asyncToGenerator},function(e){v=e.resManager},function(e){C=e.gameDef},function(e){f=e.gEvent},function(e){y=e.TimerTaskEnum},function(e){x=e.Timer},function(e){L=e.I18nLabel},function(e){I=e.Configs},function(e){S=e.uiManager},function(e){_=e.dateutils},function(e){k=e.pubfun_myh},function(e){P=e.playerData,B=e.DataType},function(e){N=e.exploreReq},function(e){E=e.NodeSkeleton},function(e){b=e.CountDownTime},function(e){D=e.exploreHeroItem}],execute:function(){var T,H,w,A,R;t._RF.push({},"011betVClxP8ZrUng8HrjRR","exploreUI",void 0);var U=n.ccclass,O=n.property,F=["1/1_1","2/2_1","3/3_1","4/4_1","5/5_1","6/6_1","7/7_1","8/8_1"],M=1001;e("exploreUI",(T=U("exploreUI"),H=O(i),T((R=c((A=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;ot.lastShowProduceCenterLevel&&(c=p+"_3"),l.getComponent(o.Skeleton).setAnimation(0,c,!0),s.produceCenterLv>t.lastShowProduceCenterLevel&&i>=s.produceCenterLv&&(t.lastShowProduceCenterLevel=s.produceCenterLv,this.unLockListType.push(s.type)),is.produceCenterLv&&(this.unLockLv=s.produceCenterLv)}this.unLockListType.length>0?(N.CS1505_ExploreResetShowProduceCenterLevel(t.lastShowProduceCenterLevel),this.scheduleOnce((function(){e.unlockNext()}),.5)):(this.onChangeExploreInfoList(),f.emit(f.UI_Exploration_Show,!0))}else console.error("exploreData is error,exploreData = "+JSON.stringify(n))}},n.unlockNext=function(){if(this.isValid){var e=this.unLockListType.shift(),t=this.pointSkeletonList.getChildByName(""+e),n=e-M+1+"/"+(e-M+1)+"_4";this.type=e;var i=t.getComponent(o.Skeleton);i.timeScale=2,i.setAnimation(0,n,!0),this.scheduleOnce((function(){f.emit(f.UI_Exploration_Show,!0)}),3)}},n.onDestroy=function(){f.off("SC1500_ExploreInfo",this.onChangeExploreInfoList,this),f.off(f.UI_Select_Hero_Call,this.onSelectHero,this),f.off(f.UI_Exploration_Show,this.setOpenBgActive,this),this.release()},n.onChangeExploreInfoList=function(){this.initUI();var e=P.getIns().getData(B.Explore).data;if(e.length==this.openBg.children.length){I.ExploreCfg;for(var t=P.getIns().getData(B.Produce).level,n=0;n=t.produceCenterLv){i.active=!0;var x=P.getIns().getData(B.BAG);p.active=!0,v.setSprite(p.getComponent(r),C.bundleIcon,x.getItemIcon(t.item),this),c.active=!0,m.getComponent(a).string=t.name,m.getComponent(a).color=k.getColor("#FFFFFF");var L=e.appointHeros.length;if(d.getComponent(a).string=""+L,L>0){var I=this.getMinTime(e.appointHeros);0==I.surplusCount?(g.active=!0,h.active=!1,f.active=!1,y.active=!1):(g.active=!1,h.active=!0,f.active=!0,y.active=!0,f.getComponent(a).string=""+I.surplusCount,y.getComponent(b).setEndTime(I.endTime)),o.active=!0,o.getComponentInChildren(E).loadHeroSpineByHeroData(I.heroData),u.active=this.getPointRed(e)}else o.active=!1,g.active=!1,h.active=!1,f.active=!1,y.active=!1}else i.active=!1,m.getComponent(a).string="Producecenter Lv"+t.produceCenterLv+" Unlock",m.getComponent(a).color=k.getColor("#FF0000"),o.active=!1,g.active=!1,h.active=!1,f.active=!1,y.active=!1,p.active=!1,c.active=!1,d.active=!1},n.getPointRed=function(e){for(var t=0;t0)return!0;return!1},n.setSelectPoint=function(e,t){this.selectExplorInfo=e,this.selectPoint.active=!0;var n=this.selectPoint.getChildByPath("titleLayout/icon");v.setSprite(n.getComponent(r),C.bundleIcon,"explore/"+t.showIcon,this);var i=this.selectPoint.getChildByPath("titleLayout/nameLabel"),o=this.selectPoint.getChildByPath("titleLayout/element");v.setSprite(o.getComponent(r),C.bundleIcon,"hero/element/"+t.element+"/spriteFrame",this),i.getComponent(a).string=t.name,this.selectPoint.getChildByName("level").getComponentInChildren(a).string=""+e.level;var l=this.selectPoint.getChildByName("progress"),p=this.selectPoint.getChildByName("maxLevelTip");if(t.exp>0){l.active=!0,p.active=!1;var c=l.getChildByPath("progressLayoutNum/num"),h=l.getChildByPath("progressLayoutNum/total");c.getComponent(a).string=""+e.exp,h.getComponent(a).string=""+t.exp,l.getChildByPath("progress/progressSprite").getComponent(r).fillRange=e.exp/t.exp}else l.active=!1,p.active=!0;var g=this.selectPoint.getChildByName("today");t.maxExp<=0?g.active=!1:(g.active=!0,g.getChildByName("num").getComponent(a).string=e.todayExp+" / "+t.maxExp);var u=this.selectPoint.getChildByPath("maxExp/tip"),m=this.selectPoint.getChildByPath("maxExp/cailiao"),d=this.selectPoint.getChildByPath("maxExp/num"),f=P.getIns().getData(B.BAG);v.setSprite(m.getComponent(r),C.bundleIcon,f.getItemIcon(t.item),this),-1==e.surplusProduceNum?(d.active=!1,u.getComponent(L).i18string="UIExplore_lan_10"):(d.active=!0,u.getComponent(L).i18string="UIExplore_lan_2",d.getComponent(a).string=""+e.surplusProduceNum),this.selectPoint.getChildByName("preStamina").getComponent(a).string=""+t.preStamina,this.selectPoint.getChildByName("preTime").getComponent(a).string=_.format_1(1e3*t.preTime);for(var y=e.appointHeros,x=this.selectPoint.getChildByName("heroLayout"),I=this.selectPoint.getChildByName("empty"),S=this.selectPoint.getChildByPath("heroTotalLayout/shuliang/num"),k=this.selectPoint.getChildByName("attribute"),N=t.attribute,E="",b=0;b0&&(E+="+"),E+=T.abbr}if(k.getComponent(a).string=E,y&&y.length>0){x.active=!0,I.active=!1,S.getComponent(a).string=""+y.length,x.destroyAllChildren();for(var H=0;Hi.surplusCount||t.surplusCount==i.surplusCount&&t.endTime>=i.endTime)&&(t=i)}return t},n.initUI=function(){this.openBg.children.map((function(e){e.active=!1})),this.poinImage.children.map((function(e){e.active=!1})),this.poinOther.children.map((function(e){e.active=!1})),this.pointHeroSkeletonList.children.map((function(e){e.active=!1})),this.selectPoint.active=!1},n.onClickSelect=function(e,t){l(e);var n=e.target;this.type!=Number(n.name)&&(this.type=Number(n.name),this.onChangeExploreInfoList())},n.onClickJoin=function(){var e=I.GetCfg(I.ExploreCfg,this.selectExplorInfo.exploreId);e&&S.getIns().open("selectheroWin",{attrs:e.attribute,preHealth:e.preHealth,preStamina:e.preStamina})},n.onSelectHero=function(e){P.getIns().getData(B.Explore).selectHeroData=e,N.CS1504_ExplorePreview(this.selectExplorInfo.exploreId,e.id)},n.onClickClose=function(){var e=this.spNode.getComponent(o.Skeleton);this.spNode.active=!1,e.destroyRenderData();for(var t=this.pointSkeletonList.children,n=0;n0&&this._maildata.mailState!=common.MailStateTypeEnum.READ_EXTRACT_MAIL,this.img_received.node.active=this._maildata.mailState==common.MailStateTypeEnum.READ_EXTRACT_MAIL,this.img_received.node.active?this.node.getComponent(n).color=h.getColor("#f2f2f2"):this.node.getComponent(n).color=h.getColor("#ffffff"),this._maildata.mailState==common.MailStateTypeEnum.UNREAD_MAIL?u.setSprite(this.img_state,_.bundleUI,"ui_mail/texture/img_mail_01/spriteFrame",this):u.setSprite(this.img_state,_.bundleUI,"ui_mail/texture/img_mail_02/spriteFrame",this);var i=d.getFormatBySecond(this._maildata.beginTime/1e3,15,4,"/");this.lab_date.string=i},c(e,[{key:"lab_title",get:function(){return this.node.getChildByPath("lab_title").getComponent(l)}},{key:"img_state",get:function(){return this.node.getChildByPath("img_state").getComponent(n)}},{key:"lab_date",get:function(){return this.node.getChildByPath("lab_date").getComponent(l)}},{key:"img_received",get:function(){return this.node.getChildByPath("img_received").getComponent(n)}},{key:"img_atta",get:function(){return this.node.getChildByPath("img_atta").getComponent(n)}},{key:"img_select",get:function(){return this.node.getChildByPath("img_select").getComponent(n)}},{key:"isSelect",get:function(){return this._selected},set:function(t){this._selected=t,this.img_select.node.active=t}}]),e}(o))||y);e._RF.pop()}}})); System.register("chunks:///_virtual/fightLoading.ts",["cc","./_rollupPluginModLoBabelHelpers.js"],(function(n){"use strict";var i,t,o,r,e,a,s,l,c,u,d,p,g;return{setters:[function(n){i=n.cclegacy,t=n._decorator,o=n.ProgressBar,r=n.Node,e=n.UITransform,a=n.Tween,s=n.Vec3,l=n.Component},function(n){c=n.applyDecoratedDescriptor,u=n.inheritsLoose,d=n.initializerDefineProperty,p=n.assertThisInitialized,g=n.defineProperty}],execute:function(){var f,h,v,y,m,B,b;i._RF.push({},"014171mozxKa5vT+Fb1+z9d","fightLoading",void 0);var w=t.ccclass,L=t.property;n("fightLoading",(f=w("fightLoading"),h=L(o),v=L(r),f((B=c((m=function(n){function i(){for(var i,t=arguments.length,o=new Array(t),r=0;r=1)},i}(l)).prototype,"loadingBar",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),b=c(m.prototype,"loadinani",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),y=m))||y));i._RF.pop()}}})); System.register("chunks:///_virtual/RaffleTicketExchangeWinComponent.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./resManager.ts","./gameDef.ts","./gEvent.ts","./I18nLabel.ts","./Configs.ts","./uiManager.ts","./playerData.ts","./RaffleTicketApi.ts","./bagData.ts","./turntableReq.ts"],(function(e){"use strict";var t,n,i,o,a,c,r,s,l,u,h,f,g,p,I,C,k,m,E,b,y,v,_,d,T,w;return{setters:[function(e){t=e.cclegacy,n=e._decorator,i=e.Sprite,o=e.Label,a=e.Node,c=e.Color,r=e.EventMouse,s=e.Vec2,l=e.Animation,u=e.Component},function(e){h=e.applyDecoratedDescriptor,f=e.inheritsLoose,g=e.initializerDefineProperty,p=e.assertThisInitialized,I=e.defineProperty,C=e.createClass},function(e){k=e.resManager},function(e){m=e.gameDef},function(e){E=e.gEvent},function(e){b=e.I18nLabel},function(e){y=e.Configs},function(e){v=e.uiManager},function(e){_=e.playerData},function(e){d=e.RaffleTicket},function(e){T=e.ItemConst},function(e){w=e.turntableReq}],execute:function(){var x,S,L,U,D,M,R,B,z,O,N,W,A,F,V,G,H,P,q,X,j,J,K,Q,Y,Z,$,ee,te,ne,ie;t._RF.push({},"01506TUr/FGCov436TeGwkC","RaffleTicketExchangeWinComponent",void 0);var oe=n.ccclass,ae=n.property;e("RaffleTicketExchangeWinComponent",(x=oe("RaffleTicketExchangeWinComponent"),S=ae(i),L=ae(i),U=ae(i),D=ae(i),M=ae(o),R=ae(o),B=ae(o),z=ae(i),O=ae(i),N=ae(o),W=ae(o),A=ae(a),F=ae(o),V=ae(a),x((P=h((H=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;oNumber(t)?(new c).fromHEX("#DD3232"):(new c).fromHEX("#FFFFFF")}))},n.onItemEventCurrency1=function(e){e instanceof r&&(e.type==a.EventType.MOUSE_LEAVE?this.hideItemInfo():e.type==a.EventType.MOUSE_ENTER&&this.showItemInfo(e.target,{key:y.LuckyWheelConstant.raffleCost[0],value:1}))},n.onItemEventCurrency2=function(e){e instanceof r&&(e.type==a.EventType.MOUSE_LEAVE?this.hideItemInfo():e.type==a.EventType.MOUSE_ENTER&&this.showItemInfo(e.target,{key:T.RaffleTicketSymbol,value:1}))},n.showItemInfo=function(e,t){v.getIns().openMouseTip(e,"item_tip",new s(0,120),{key:t.key,value:t.value})},n.hideItemInfo=function(){v.getIns().close("item_tip")},n.onClickExchange=function(){this._isapprove?(v.getIns().open("nftLoadingShow"),w.CS5515_GetExchangeTurntableTicketSign(this._selectCount)):v.getIns().toast("UIShop_lan_9")},n.RaffeleTickExchange=function(e){var t=this;console.log("data=========================",e),d.exchange(this._selectCount*y.LuckyWheelConstant.diamondPrice,e.signId,e.txId,e.signParam).then((function(e){console.info(e),t.refreshUICount()}))},n.showLoading=function(){this.imgloading.active=!0,this.imgloading.getComponent(l).play()},n.hideLoading=function(){this.isValid&&this.imgloading&&(this.imgloading.active=!1)},n.onCheckBalance=function(){var e=this;d.checkBalance(this._selectCount).then((function(t){e._isapprove=t,e._checkBalance()}))},n._checkBalance=function(){this.isValid&&(this.exchangeBtn.targetOff(this),this._isapprove?(this.exchangeBtnLabel.getComponent(b).i18string="UILuckWheel_lan_15",this.exchangeBtn.getComponent(i).grayscale=!1,this.exchangeBtn.on(a.EventType.TOUCH_END,this.onClickExchange,this)):(this.exchangeBtnLabel.getComponent(b).i18string="UILuckWheel_lan_15",this.exchangeBtn.getComponent(i).grayscale=!0,this.exchangeBtn.on(a.EventType.TOUCH_END,this.onClickExchange,this)))},C(t,[{key:"MaxCount",get:function(){return Math.max(d.balance,1)}}]),t}(u)).prototype,"ticketIconDi",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=h(H.prototype,"ticketIcon",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=h(H.prototype,"ticketIcon2",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=h(H.prototype,"ticketIcon3",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=h(H.prototype,"swapCount1",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=h(H.prototype,"swapCount2",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=h(H.prototype,"tokenCount",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=h(H.prototype,"tokenIcon",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=h(H.prototype,"tokenIcon1",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=h(H.prototype,"ticketName",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ee=h(H.prototype,"selectCount",[W],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),te=h(H.prototype,"exchangeBtn",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ne=h(H.prototype,"exchangeBtnLabel",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ie=h(H.prototype,"imgloading",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=H))||G));t._RF.pop()}}})); System.register("chunks:///_virtual/SoulBoundConstant.ts",["cc"],(function(){"use strict";var t;return{setters:[function(n){t=n.cclegacy}],execute:function(){t._RF.push({},"01894YUAE1P76JC30kfHCYy","SoulBoundConstant",void 0),t._RF.pop()}}})); System.register("chunks:///_virtual/ObjectUtil.ts",["cc"],(function(t){"use strict";var e;return{setters:[function(t){e=t.cclegacy}],execute:function(){e._RF.push({},"01d7aF8/a1Oh6YAp2kxZ4GE","ObjectUtil",void 0);t("default",function(){function t(){}return t.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)},t.deepCopy=function(t){if(null==t||"object"!=typeof t)return t;var e=null;if(t instanceof Date)return(e=new Date).setTime(t.getTime()),e;if(t instanceof Array){e=[];for(var n=0,r=t.length;n0||n.offLineFailed&&Object.keys(n.offLineFailed).length>0)&&(console.log("ProduceOflineToastComponent>>",n.offLineRewards),x.toast(n.offLineRewards,n.offLineGainExp,n.offLineProduceScore,n.offLineFailed)),F.CS1220_BlockChainDataPoint(common.ClientDataPointTypeEnum.BACKGROUND,"",["2",JSON.stringify(i)]),o=g.inst.getItem(y.connectidx),e("connectidx=================================",o),"2"!=o){t.next=24;break}return v.getIns().getMyTokenMoneyInNet(),h.schedule(I.update,.02),t.next=22,this.sendLiquidityPrice();case 22:return t.next=24,this.sendDEPOSITPrice();case 24:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),n.sendLiquidityPrice=function(){var t=u(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I.getLiquidityUSDTPrice();case 2:i=t.sent,e("sendLiquidityPrice==============================================",i),F.CS1220_BlockChainDataPoint(common.ClientDataPointTypeEnum.LIQUIDITY_USD,"",[i.toString()]);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n.sendDEPOSITPrice=function(){var t=u(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I.getDePositUSDTPrice();case 2:i=t.sent,e("sendDEPOSITPrice=================================allprice"),F.CS1220_BlockChainDataPoint(common.ClientDataPointTypeEnum.DEPOSIT_USD,"",[i.toString()]);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n.test1cb=function(t){e(t[0]+"/"+JSON.stringify(t))},n.m_ui_main_ltcb=function(t){e("m_ui_main_ltcb"+t.length)},n.m_ui_main_rtcb=function(t){e("m_ui_main_rtcb"+t.length)},n.ui_main_chat=function(t){e("ui_main_chat"+t.length)},n.m_ui_main_rbcb=function(t){e("m_ui_main_rbcb"+t.length)},n.addListener=function(){t.prototype.addListener.call(this),_.on(_.CTIMER_UI_Update,this.onTimer,this),_.on(_.sendLiquidityPrice,this.sendLiquidityPrice,this),_.on(_.sendDEPOSITPrice,this.sendDEPOSITPrice,this),_.on(_.UI_CloseFinished,this.onUICloseFinished,this)},n.removeListener=function(){t.prototype.removeListener.call(this),_.off(_.CTIMER_UI_Update,this.onTimer,this),_.off(_.sendLiquidityPrice,this.sendLiquidityPrice,this),_.off(_.sendDEPOSITPrice,this.sendDEPOSITPrice,this),_.off(_.UI_CloseFinished,this.onUICloseFinished,this)},n.destroy=function(){this.m_ui_main_lt&&this.m_ui_main_lt.destroy(),this.m_ui_main_rt&&this.m_ui_main_rt.destroy(),this.m_ui_main_rc&&this.m_ui_main_rc.destroy(),this.m_ui_main_rb&&this.m_ui_main_rb.destroy(),this.ui_chat&&this.ui_chat.destroy(),t.prototype.destroy.call(this)},n.update=function(i){t.prototype.update.call(this,i),this.m_ui_main_lt&&this.m_ui_main_lt.update(i),this.m_ui_main_rt&&this.m_ui_main_rt.update(i),this.ui_chat&&this.ui_chat.update(i)},n.onTimer=function(t){console.log("onLikeTimer==========:",t),t==c.DAY_FIVE_HOUR&&(k.CS1180_GetHandbookInfo(),G.CS1400_GetTransportationInfo(),M.CS1802_GetLimitGoodsInfo(),U.CS4024_GetDayLoginActivityInfo(),Q.CS5000_ChapterInfo(),v.getIns().arenaData.alreadyUdpateCombatDataCount=0,v.getIns().LeagueData.alreadyUdpatePvpCombatDataCount=0),t==c.LeaderboardShow&&v.getIns().activeRankdData.updateRankTabList()},n.initPopQueue=function(){var t=v.getIns().getData(R.ActiveData);this._popQueen=t.popUpTabs},n.doPopup=function(){if(this._popQueen.length<=0)console.log("没有弹出广告窗!");else if(!(this._popuped.length>0)){var t=this._popQueen.shift(),i=this.getPopFuncLinkId(t.menutype);if(i){var n=m.FunctionLinkCfg.get(i);n&&(!n.changeChain||I.IsContractChain?(D.openLink(i),this._popuped.push(i)):this.doPopup())}}},n.getPopFuncLinkId=function(t){var i=void 0;switch(t){case q.rank_fire:i=S.HeroFirepowerCompetition;break;case q.world_cup:i=S.WorldCupEvent;break;case q.burger_king:i=S.BurgerKingPop;break;case q.christmas:i=S.ChristmasCheckin;break;case q.seven_login:i=S.SevenLogin;break;case q.board_rank_quarter:i=60201;break;case q.board_rank_monthly:i=60202}return i},n.onUICloseFinished=function(t){if(!(this._popuped.length<=0)){var i=this._popuped[this._popuped.length-1],n=m.FunctionLinkCfg.get(i);n&&t==n.route&&(this._popuped.pop(),this.doPopup())}},r(i,[{key:"originalScale",set:function(t){}}]),i}(l))||A);i._RF.pop()}}})); System.register("chunks:///_virtual/LuckyWheel.ts",["cc"],(function(){"use strict";var e;return{setters:[function(c){e=c.cclegacy}],execute:function(){e._RF.push({},"021d4x7ZsNPfqB43mhNVUnP","LuckyWheel",void 0),e._RF.pop()}}})); System.register("chunks:///_virtual/gameCamera.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./gameDef.ts","./gEvent.ts","./gameData.ts"],(function(e){"use strict";var i,t,n,a,o,s,r,h,m,g,l,c,u;return{setters:[function(e){i=e.cclegacy,t=e._decorator,n=e.view,a=e.UITransform,o=e.Camera,s=e.math,r=e.rect,h=e.Vec2},function(e){m=e.defineProperty,g=e.createClass},function(e){l=e.gameDef},function(e){c=e.gEvent},function(e){u=e.gameData}],execute:function(){var d,w,_;i._RF.push({},"025f7Ayp8xMK4SB7zwMZSCl","gameCamera",void 0);var C=t.ccclass;t.property,e("gameCamera",C("gameCamera")((_=w=function(){function e(){m(this,"_mainCamera",null),m(this,"_miniCamera",null),m(this,"_viewSize",null)}e.getIns=function(){return null==e.instance&&(e.instance=new e),e.instance};var i=e.prototype;return i.init=function(e){this._viewSize=n.getVisibleSize(),e.getComponent(a).setContentSize(this._viewSize),e.setPosition(this._viewSize.width/2,this._viewSize.height/2),this._mainCamera=e.getChildByName("Main Camera").getComponent(o),this._miniCamera=e.getChildByName("Mini Camera").getComponent(o),this.addListener()},i.addListener=function(){c.on(c.Map_Loaded,this.onMapLoaded,this),c.on(c.MainCamera_Follow,this.onFollow,this),c.on(c.Game_OnResize,this.onResize,this)},i.onMapLoaded=function(e){},i.onFollow=function(e,i){void 0===i&&(i=!1);var t=u.getIns().curMapSizeHalf,n=e.x-t.width,a=this.upY,o=e.y-t.height+a,r=this._mainCamera.node.getPosition(),h=this.cameraFollowDelay;i||(n=Math.abs(r.x-n)>h.x?Math.sign(r.x-n)*h.x+n:r.x,o=Math.abs(r.y-o)>h.y?Math.sign(r.y-o)*h.y+o:r.y),n=s.clamp(n,-t.width+this._viewSize.width/2,t.width-this._viewSize.width/2),o=s.clamp(o,-t.height+this._viewSize.height/2,t.height-this._viewSize.height/2),this._mainCamera.node.setPosition(n,o,100)},i.update=function(e){this._miniCamera.node.setPosition(this._mainCamera.node.getPosition())},i.onResize=function(e){this._viewSize=n.getVisibleSize()},i.getWorldViewRect=function(){return r(this._mainCamera.node.getWorldPosition().x-n.getVisibleSize().width/2,this._mainCamera.node.getWorldPosition().y-n.getVisibleSize().height/2,n.getVisibleSize().width,n.getVisibleSize().height)},g(e,[{key:"mainCamera",get:function(){return this._mainCamera}},{key:"viewSize",get:function(){return this._viewSize}},{key:"upY",get:function(){return u.getIns().isLiveRoom?400:u.getIns().isBarFloor1?250:0}},{key:"cameraFollowDelay",get:function(){return u.getIns().isLiveRoom?new h(100,0):l.cameraFollowDelay}}]),e}(),m(w,"instance",void 0),d=_))||d);i._RF.pop()}}})); System.register("chunks:///_virtual/uiTowerActiveWin.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./gameDef.ts","./I18nLabel.ts","./Configs.ts","./uiBase.ts","./uiManager.ts","./pubfun_myh.ts","./playerData.ts","./CountDownTime.ts","./ui_item.ts","./towerReq.ts"],(function(t){"use strict";var e,n,o,i,r,a,l,s,c,u,h,g,f,_,p,y,m,C,b,w,v,I,d;return{setters:[function(t){e=t.cclegacy,n=t._decorator,o=t.Label,i=t.Node,r=t.Sprite,a=t.Button,l=t.Component},function(t){s=t.applyDecoratedDescriptor,c=t.inheritsLoose,u=t.defineProperty,h=t.assertThisInitialized,g=t.initializerDefineProperty,f=t.createForOfIteratorHelperLoose},function(t){_=t.gameDef},function(t){p=t.I18nLabel},function(t){y=t.Configs},function(t){m=t.uiBase},function(t){C=t.uiManager},function(t){b=t.pubfun_myh},function(t){w=t.playerData},function(t){v=t.CountDownTime},function(t){I=t.ui_item},function(t){d=t.towerReq}],execute:function(){var D,T,L,A,H,P,k,S,z,B,M,R,O,W,F,Q,E;e._RF.push({},"02803TB4tdII7OFMvKZkXa/","uiTowerActiveWin",void 0);var J=n.ccclass,U=n.property,N=n.menu,q=t("towerActiveComponent",(D=J("towerActiveComponent"),T=N("dungeons/tower/towerActiveComponent"),L=U(o),A=U(I),H=U(o),P=U(o),k=U(v),S=U(i),D(z=T((M=s((B=function(t){function e(){for(var e,n=arguments.length,o=new Array(n),i=0;i=e.cleanCostEnergy?this.lab_energy.color=b.getColor(_.QualityColor[1]):(this.lab_energy.color=b.getColor(_.QualityColor[5]),this._canfight=!0),this.lab_health.getComponent(p).setString("UIDungeons_lan_120",[e.passCostHealth]);w.getIns().passCardData.checkCanGetScore();var n=w.getIns().formationData.getMealHeroIds(common.FormationSysTypeEnum.COMMON_COMBAT),o=w.getIns().heroData;this._checkHeroLoylty=o.getHeroLoyltyByActiveCheck();var i=w.getIns().passCardData.checkPassCardActiveOpen();if(n.length<=0)this.lab_health.color=b.getColor(_.QualityColor[5]);else{var r=0,a=0;this._canfight=!1,this._canJoinfight=!1;for(var l,s=f(n);!(l=s()).done;){var c=l.value,u=w.getIns().heroData.getHeroInfo(c);if(u)if(u.health>=e.passCostHealth&&r++,i&&this._checkHeroLoylty>0)o.getHeroLoyalty(u)>=this._checkHeroLoylty&&a++}r>=n.length?this._canfight=!0:this.lab_health.color=b.getColor(_.QualityColor[5]),a>=n.length&&(this._canJoinfight=!0),this._canfight&&(this.lab_health.color=b.getColor(_.QualityColor[1]))}},n.onButtonClose=function(){var t;null===(t=this._win)||void 0===t||t.close()},n.onChallenge=function(){w.getIns().passCardData.getCanChallengeNum()[0]<=0?C.getIns().toast("UIPassCard_lan_25"):this._canfight?this._canJoinfight?(this.btn_comfirm.getComponent(r).grayscale=!0,this.btn_comfirm.getComponent(a).interactable=!1,d.CS5025_BurgerPassCardChallengeTower()):C.getIns().toast("When the loyalty of the hero you own reaches "+(this._checkHeroLoylty/100).toString()+"%, you can participate in tower."):C.getIns().toast("UIDungeons_lan_137")},e}(l)).prototype,"lab_floor",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),R=s(B.prototype,"ui_item",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),O=s(B.prototype,"lab_energy",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=s(B.prototype,"lab_health",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=s(B.prototype,"countDownTimePrev",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=s(B.prototype,"btn_comfirm",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),z=B))||z)||z));t("uiTowerActiveWin",J("uiTowerActiveWin")(E=function(t){function e(){var e;return(e=t.call(this)||this)._uiInfo.prefabPath="ui_dungeons/prefab/tower/uiTowerActiveWin",e._uiInfo.autoRelease=!1,e}c(e,t);var n=e.prototype;return n.init=function(){t.prototype.init.call(this),this.nodeRoot.getComponent(q).init(this,this.m_args)},n.onShow=function(){this.nodeRoot.getComponent(q).show()},e}(m))||E);e._RF.pop()}}})); System.register("chunks:///_virtual/geneBattleTeamTeamHero.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./resManager.ts","./gameDef.ts","./gEvent.ts","./I18nLabel.ts","./Configs.ts","./playerData.ts"],(function(e){"use strict";var t,i,n,r,o,a,s,l,u,p,c,h,f,d,g,_,m,b;return{setters:[function(e){t=e.cclegacy,i=e._decorator,n=e.Node,r=e.Sprite,o=e.sp,a=e.Component},function(e){s=e.applyDecoratedDescriptor,l=e.inheritsLoose,u=e.initializerDefineProperty,p=e.assertThisInitialized,c=e.defineProperty},function(e){h=e.resManager},function(e){f=e.gameDef},function(e){d=e.gEvent},function(e){g=e.I18nLabel},function(e){_=e.Configs},function(e){m=e.playerData,b=e.DataType}],execute:function(){var S,y,v,T,H,w,z,I,D,B,E,U,G,C,L,x,P,k;t._RF.push({},"02b99DI9TJBWpuuIyeQDhoj","geneBattleTeamTeamHero",void 0);var J=i.ccclass,M=i.property,N=i.menu;e("geneBattleTeamTeamHero",(S=J("geneBattleTeamTeamHero"),y=N("ui/battleGene/comps/geneBattleTeamTeamHero"),v=M(n),T=M(n),H=M(r),w=M(n),z=M(g),I=M(r),D=M(o.Skeleton),S(B=y((U=s((E=function(e){function t(){for(var t,i=arguments.length,n=new Array(i),r=0;r0,i[0]>0){i[0];var n=t.getGeneSuitPartList(i[0]),r=n[n.length-1],o=t.getSuitInfo(r);this.lab_tzname.setString(o.suitName+"("+i[1]+"/"+o.suitGroup.length+")")}else this.lab_tzname.setString("")}this.refreshSelect()},i.refreshSelect=function(){this.SpriteSelected.active=this._data.selected},i.onTouch=function(e){var t,i;null===(t=this._data)||void 0===t||null===(i=t.onToggle)||void 0===i||i.call(this,null,this._data)},t}(a)).prototype,"SpriteSelected",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=s(E.prototype,"SpriteEmpty",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),C=s(E.prototype,"SpriteHeroBoard",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=s(E.prototype,"img_tz",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),x=s(E.prototype,"lab_tzname",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=s(E.prototype,"SpriteType",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),k=s(E.prototype,"SpineHero",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=E))||B)||B));t._RF.pop()}}})); System.register("chunks:///_virtual/fightWin.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./gEvent.ts","./uiBase.ts","./audioConst.ts","./audioManager.ts","./uiManager.ts","./fightWinComponent.ts"],(function(t){"use strict";var n,i,e,o,s,u,a,c,r,f,l,h;return{setters:[function(t){n=t.cclegacy,i=t._decorator,e=t.sp},function(t){o=t.inheritsLoose,s=t.createClass},function(t){u=t.gEvent},function(t){a=t.uiBase,c=t.eUILayer},function(t){r=t.AudioConst},function(t){f=t.default},function(t){l=t.uiManager},function(t){h=t.fightWinComponent}],execute:function(){var p;n._RF.push({},"032bbpboLNIBJHiKbkeO4a6","fightWin",void 0);var d=i.ccclass;i.property,t("fightWin",d("fightWin")(p=function(t){function n(){var n;return(n=t.call(this)||this)._uiInfo.prefabPath="ui_fight/fightWin",n._uiInfo.isAlphaBg=!0,n._uiInfo.autoRelease=!1,n._uiInfo.uiLayer=c.eUIL_MainHUD,n}o(n,t);var i=n.prototype;return i.init=function(){t.prototype.init.call(this)},i.onShow=function(){l.getIns().close("mainHudWin")},i.destroy=function(){l.getIns().open("mainHudWin"),t.prototype.destroy.call(this),f.instance.playMusic(r.CityBgm)},i.addListener=function(){t.prototype.addListener.call(this),u.on(u.UI_CLOSE_FIGHTWIN,this.onBtnClose,this)},i.removeListener=function(){t.prototype.removeListener.call(this),u.off(u.UI_CLOSE_FIGHTWIN,this.onBtnClose,this)},i.update=function(n){t.prototype.update.call(this,n)},i.onBtnClose=function(){this.hideAllSpine(),this.close()},i.hideAllSpine=function(){this.nodeRoot.isValid&&this.nodeRoot.getComponentsInChildren(e.Skeleton).forEach((function(t){t.node.active=!1}))},s(n,[{key:"originalScale",set:function(t){}},{key:"selfComponent",get:function(){return this.nodeRoot.getComponent(h)}}]),n}(a))||p);n._RF.pop()}}})); System.register("chunks:///_virtual/gene_info_suit_item.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./suit_buff_item.ts"],(function(t){"use strict";var e,i,n,u;return{setters:[function(t){e=t.cclegacy,i=t._decorator},function(t){n=t.inheritsLoose},function(t){u=t.suit_buff_item}],execute:function(){var s;e._RF.push({},"033e5b6m/lIc79KGjJ1fUU0","gene_info_suit_item",void 0);var o=i.ccclass;i.property,t("gene_info_suit_item",o("gene_info_suit_item")(s=function(t){function e(){return t.apply(this,arguments)||this}return n(e,t),e.prototype.setPrefabPath=function(){this.prefabPath="ui_battleGene/prefab/gene_info_suit_item"},e}(u))||s);e._RF.pop()}}})); System.register("chunks:///_virtual/produceLevelUpWin.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./uiBase.ts"],(function(t){"use strict";var e,o,n,i,s,r,l;return{setters:[function(t){e=t.cclegacy,o=t._decorator,n=t.Node},function(t){i=t.inheritsLoose,s=t.defineProperty,r=t.assertThisInitialized},function(t){l=t.uiBase}],execute:function(){var c;e._RF.push({},"033edJDdiBKZoBjgeoGP5XT","produceLevelUpWin",void 0);var u=o.ccclass;o.property,t("produceLevelUpWin",u("produceLevelUpWin")(c=function(t){function e(){var e;return e=t.call(this)||this,s(r(e),"btnClose",null),e._uiInfo.prefabPath="ui_produce/levelUpWin",e._uiInfo.isAnim=!1,e}i(e,t);var o=e.prototype;return o.init=function(){t.prototype.init.call(this),this.btnClose=this.nodeRoot.getChildByPath("bg/top/btnClose")},o.onShow=function(){},o.destroy=function(){t.prototype.destroy.call(this)},o.addListener=function(){t.prototype.addListener.call(this),this.btnClose.on(n.EventType.TOUCH_END,this.onBtnClose,this)},o.removeListener=function(){t.prototype.removeListener.call(this),this.btnClose.off(n.EventType.TOUCH_END,this.onBtnClose,this)},o.update=function(e){t.prototype.update.call(this,e)},o.onBtnClose=function(){this.close()},e}(l))||c);e._RF.pop()}}})); System.register("chunks:///_virtual/resManagerTest.ts",["cc","./_rollupPluginModLoBabelHelpers.js"],(function(e){"use strict";var a,r,n,t,o,s,l,u;return{setters:[function(e){a=e.cclegacy,r=e.resources,n=e.assetManager,t=e.error,o=e.warn,s=e.log,l=e.sp},function(e){u=e.defineProperty}],execute:function(){a._RF.push({},"03685+46YNCyZNnpi8kj0Ow","resManagerTest",void 0);var c=e("resManagerTest",function(){function e(){}return e.getBundle=function(e){if(!e||0==e.length||"resources"==e)return Promise.resolve(r);var a=n.getBundle(e);return a?Promise.resolve(a):new Promise((function(a){n.loadBundle(e,(function(e,r){return e?(t("======加载bundle失败",e),a(null)):a(r)}))}))},e.update=function(e){this.checkLoad()},e.checkLoad=function(){e._loadQueen.length<=0||e._pauseLoadQueen||(e._checkLoad(),e._checkLoad())},e._checkLoad=function(){if(!(e._loadQueen.length<=0)){var a=e._loadQueen.shift();a.target&&a.target.release?(e._pauseLoadQueen=!0,e.loadRes(a.path,a.bundleName,a.target,a.cb,a.type)):e.checkLoad()}},e.syncLoadRes=function(a,r,n,t,o){void 0===r&&(r="resources"),e._loadQueen.push({path:a,bundleName:r,target:n,cb:t,type:o})},e.loadRes=function(a,r,n,t,s){void 0===r&&(r="resources"),e.getBundle(r).then((function(l){if(!n)return o("目标已销毁"),t=null,void(e._pauseLoadQueen=!1);if(!l)return t&&t.call(n,null),void(e._pauseLoadQueen=!1);var u=l.get(a,s);if(u)return e.cacheRes(n,a,r,u,s),t&&t.call(n,u),void(e._pauseLoadQueen=!1);if(e._loadingMap[r+"://"+a])e._loadingMap[r+"://"+a].push({target:n,complete:t});else{e._loadingMap[r+"://"+a]=[],e._loadingMap[r+"://"+a].push({target:n,complete:t});var c=function(t,l){var u=e._loadingMap[r+"://"+a].slice();if(delete e._loadingMap[r+"://"+a],e._pauseLoadQueen=!1,n)if(t){o("资源加载失败:"+r+"://"+a);for(var c=0;c0&&s.decRef(),(t||s.refCount<=0)&&o.release(e),0},e}());u(c,"_loadingMap",{}),u(c,"_loadQueen",[]),u(c,"_pauseLoadQueen",!1),a._RF.pop()}}})); System.register("chunks:///_virtual/swap_waiting.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./gEvent.ts","./I18nLabel.ts","./uiBase.ts","./BurgerSDK.ts"],(function(t){"use strict";var e,n,i,o,s,a,r,u,c,l,p;return{setters:[function(t){e=t.cclegacy,n=t._decorator,i=t.Node},function(t){o=t.inheritsLoose,s=t.defineProperty,a=t.assertThisInitialized,r=t.asyncToGenerator},function(t){u=t.gEvent},function(t){c=t.I18nLabel},function(t){l=t.uiBase},function(t){p=t.burgerSDK}],execute:function(){var h;e._RF.push({},"03c37N65atJa4Idjy2oxza+","swap_waiting",void 0);var _=n.ccclass;n.property,t("swap_waiting",_("swap_waiting")(h=function(t){function e(){var e;return e=t.call(this)||this,s(a(e),"lab_atob",null),s(a(e),"btn_close",null),e._uiInfo.prefabPath="ui_swap/prefab/swap_waiting",e}o(e,t);var n=e.prototype;return n.init=function(){var e=r(regeneratorRuntime.mark((function e(){var n,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.prototype.init.call(this),this.lab_atob=this.nodeRoot.getChildByPath("msg_tip/diban/lab_atob"),this.btn_close=this.nodeRoot.getChildByPath("msg_tip/btn_close"),n=p.selectToken.A,i=p.selectToken.B,o=p.swapConfirmData,this.lab_atob.getComponent(c).setString("UISwap_lan_33",[o.fromvalue+" "+n,o.tovalue+" "+i]);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),n.addListener=function(){t.prototype.addListener.call(this),this.btn_close.on(i.EventType.TOUCH_END,this.onReturn,this),u.on(u.UI_Close_Waiting,this.onReturn,this)},n.removeListener=function(){t.prototype.removeListener.call(this),this.btn_close.off(i.EventType.TOUCH_END,this.onReturn,this),u.off(u.UI_Close_Waiting,this.onReturn,this)},n.update=function(e){t.prototype.update.call(this,e)},n.onReturn=function(){this.close()},e}(l))||h);e._RF.pop()}}})); System.register("chunks:///_virtual/LuckWheelComponent.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./resManager.ts","./gameDef.ts","./gEvent.ts","./TimerTask.ts","./Timer.ts","./I18nLabel.ts","./Configs.ts","./uiManager.ts","./utils.ts","./playerData.ts","./CountDownTime.ts","./GameConsts.ts","./turntableReq.ts","./UITabComponent.ts","./LuckWheelRender.ts","./super-layout.ts"],(function(e){"use strict";var t,n,i,o,r,s,a,l,u,h,c,f,I,g,m,y,p,b,T,d,C,k,E,L,v,w,U,_,W,R;return{setters:[function(e){t=e.cclegacy,n=e._decorator,i=e.Label,o=e.Node,r=e.Sprite,s=e.Color,a=e.EventMouse,l=e.Vec2,u=e.Component},function(e){h=e.applyDecoratedDescriptor,c=e.inheritsLoose,f=e.initializerDefineProperty,I=e.assertThisInitialized},function(e){g=e.resManager},function(e){m=e.gameDef},function(e){y=e.gEvent},function(e){p=e.TimerTaskEnum},function(e){b=e.Timer},function(e){T=e.I18nLabel},function(e){d=e.Configs},function(e){C=e.uiManager},function(e){k=e.utils},function(e){E=e.playerData,L=e.DataType},function(e){v=e.CountDownTime},function(e){w=e.Divide10000},function(e){U=e.turntableReq},function(e){_=e.UITabComponent},function(e){W=e.LuckWheelRender},function(e){R=e.SuperLayout}],execute:function(){var D,M,N,S,V,z,x,O,A,P,H,B,G,q,F,j,K,Q,X,J,Y,Z,$,ee,te;t._RF.push({},"048a5lVw71OCKPePupMCBgL","LuckWheelComponent",void 0);var ne=n.ccclass,ie=n.property,oe=["UILuckWheel_lan_2","UILuckWheel_lan_3"];e("LuckWheelComponent",(D=ne("LuckWheelComponent"),M=ie(_),N=ie(W),S=ie(i),V=ie(i),z=ie(i),x=ie(v),O=ie(o),A=ie(i),P=ie(R),H=ie(r),B=ie(r),D((F=h((q=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),o=0;o=d.LuckyWheelConstant.refreshCost[1]?U.CS5511_RefreshTurntable():C.getIns().toast("UILuckWheel_lan_21"))},n.onTimer=function(e){e==p.LuckyWheelRefresh&&U.CS5510_GetTurntableInfo()},n.getLogItemData=function(e){return 0==this.UITab.tabIndex?E.getIns().luckyWheel.Info.globalHistoryInfo[e]:1==this.UITab.tabIndex?E.getIns().luckyWheel.Info.selfHistoryInfo[e]:void 0},n.onRefreshEvent=function(e,t){var n=this.getLogItemData(t),o=e.getChildByPath("Layout/name").getComponent(i),r=e.getChildByPath("Layout/itemName").getComponent(i),a=e.getChildByPath("time").getComponent(i);o.string=n.playerName,a.string=b.format(n.time,"yyyy-MM-dd hh:mm:ss");var l=E.getIns().bagData.getItemConfig(n.rewards[0].key);r.string=l.name+"*"+n.rewards[0].value,l.type==common.ItemTypeEnum.VIRTUAL_ITEM&&4==l.subType&&(r.string=l.name+"*"+k.formatNum(n.rewards[0].value*w,4)),r.color=(new s).fromHEX(m.QualityColor[l.color])},n.onItemEventCurrency1=function(e){e instanceof a&&(e.type==o.EventType.MOUSE_LEAVE?this.hideItemInfo():e.type==o.EventType.MOUSE_ENTER&&this.showItemInfo(e.target,{key:d.LuckyWheelConstant.raffleCost[0],value:d.LuckyWheelConstant.raffleCost[1]}))},n.onItemEventCurrency2=function(e){e instanceof a&&(e.type==o.EventType.MOUSE_LEAVE?this.hideItemInfo():e.type==o.EventType.MOUSE_ENTER&&this.showItemInfo(e.target,{key:d.LuckyWheelConstant.refreshCost[0],value:d.LuckyWheelConstant.refreshCost[1]}))},n.showItemInfo=function(e,t){C.getIns().openMouseTip(e,"item_tip",new l(0,120),{key:t.key,value:t.value})},n.hideItemInfo=function(){C.getIns().close("item_tip")},t}(u)).prototype,"UITab",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=h(q.prototype,"wheelRender",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),K=h(q.prototype,"ticketNum",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Q=h(q.prototype,"goldNum",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),X=h(q.prototype,"refreshCostNum",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),J=h(q.prototype,"refreshTime",[x],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Y=h(q.prototype,"btn_refresh",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Z=h(q.prototype,"eventTime",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),$=h(q.prototype,"logListView",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ee=h(q.prototype,"ticketIcon",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),te=h(q.prototype,"goldIcon",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),G=q))||G));t._RF.pop()}}})); System.register("chunks:///_virtual/upstar_skill_item.ts",["cc","./_rollupPluginModLoBabelHelpers.js","./resManager.ts","./gameDef.ts","./I18nLabel.ts","./Configs.ts"],(function(e){"use strict";var t,i,n,l,r,a,o,s,u,c,p,b;return{setters:[function(e){t=e.cclegacy,i=e._decorator,n=e.Sprite,l=e.Component},function(e){r=e.applyDecoratedDescriptor,a=e.inheritsLoose,o=e.initializerDefineProperty,s=e.assertThisInitialized},function(e){u=e.resManager},function(e){c=e.gameDef},function(e){p=e.I18nLabel},function(e){b=e.Configs}],execute:function(){var f,g,m,_,h,v,k,y,S,d,z,C,w,L,D;t._RF.push({},"04da0bMkfVPi7TdsNqXyNAC","upstar_skill_item",void 0);var I=i.ccclass,F=i.property;e("upstar_skill_item",(f=I("upstar_skill_item"),g=F(n),m=F(n),_=F(p),h=F(p),v=F(p),k=F(p),f((d=r((S=function(e){function t(){for(var t,i=arguments.length,n=new Array(i),l=0;l0&&this.lastDrawRankRewardTimen)return 0;var a=0;if(0==this.waitDrawRewardRank||0==this.lastDrawRankRewardTime||this.lastDrawRankRewardTime>n&&t>n){var r=c.getInstance().getWeekNextMonDate();a=h.getDateZeroTime(r)-t}else a=n-t;return a<0&&(a=0),a},f.checkCanGetReward=function(){if(!m.checkSysIsOpen(C.ArenaHall))return!1;if(0==this.waitDrawRewardRank)return!1;var e=c.getInstance().getWeekMonDate(),t=h.now,n=h.getDateZeroTime(e);return this.lastDrawRankRewardTimen},f.getReFreshLessTime=function(){var e=h.now,t=h.getZeroTime();t>e&&(t-=864e5);var n=l.ArenaMatchConstant.rankRefresh,a=Math.floor(e-t)%(1e3*n),r=e-a;return[1e3*n-a,r,r+1e3*n]},f.getChallengeCount=function(){var e=l.GlobalConstant.dailyRefresh;return R.checkIsPassRefresh(this.refreshChallengeCountTime,e)||this.setAlreayChallengeCount(0),this.alreayChallengeCount},f.getRefreshCount=function(){var e=l.GlobalConstant.dailyRefresh;return R.checkIsPassRefresh(this.lastSetRefreshCountTime,e)||this.setAlreadyRefreshCount(0),this.alreadyRefreshCount},f.getRefreshCountTime=function(){var e=h.now,t=l.GlobalConstant.dailyRefresh;return R.checkIsPassRefresh(this.lastSetRefreshCountTime,t)||this.setLastSetRefreshCountTime(e),this.lastSetRefreshCountTime},f.getRankReward=function(e,t){var n;switch(t){case common.CombatResultEnum.COMBAT_SUCCESS:n=this.getRankRewards(1);break;default:n=this.getRankRewards(2)}for(var a=0;a-1},s(t,[{key:"alreayChallengeCount",get:function(){return this._alreayChallengeCount}},{key:"refreshChallengeCountTime",get:function(){return this._refreshChallengeCountTime}},{key:"alreadyRefreshCount",get:function(){return this._alreadyRefreshCount}},{key:"lastSetRefreshCountTime",get:function(){return this._lastSetRefreshCountTime}},{key:"lastRefreshCountTime",get:function(){return this._lastRefreshCountTime}},{key:"selfRank",get:function(){return this._selfRank}},{key:"selftHistoryRank",get:function(){return this._selftHistoryRank}},{key:"canChallengeTargets",get:function(){return this._canChallengeTargets}},{key:"rankTop6",get:function(){return this._rankTop6}},{key:"rankAll",get:function(){return this._rankAll}},{key:"ArenaHistoryRecordInfo",get:function(){return this._ArenaHistoryRecordInfo}},{key:"waitDrawRewardRank",get:function(){return this._waitDrawRewardRank}},{key:"lastDrawRankRewardTime",get:function(){return this._lastDrawRankRewardTime}},{key:"coolTime",get:function(){return this._coolTime}}]),t}(f));t._RF.pop()}}})); System.register("chunks:///_virtual/burgerswapjssdk.js",["./cjs-loader.mjs"],(function(e,t){"use strict";var n;return{setters:[function(e){n=e.default}],execute:function(){e("default",void 0),n.define(t.meta.url,(function(t,r,i,a,o){n.createRequireWithReqMap({},r);!function(){function e(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function n(){return(n=Object.assign||function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1){var s=a.getAttribute("href");if(s)if(-1===s.toLowerCase().indexOf("https:")&&-1===s.toLowerCase().indexOf("http:")&&0!==s.indexOf("//")){var u=t.protocol+"//"+t.host;if(0===s.indexOf("/"))u+=s;else{var c=t.pathname.split("/");c.pop(),u+=c.join("/")+"/"+s}r.push(u)}else if(0===s.indexOf("//")){var d=t.protocol+s;r.push(d)}else r.push(s)}}return r}(),name:r}}}));c(j);var E=j.getWindowMetadata,C=d((function(e,t){var n=u&&u.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t1)}function R(){var e=k();return!(!e||!e.name)&&"node"===e.name.toLowerCase()}C.browserName,C.parseUserAgent,C.detectOS,C.getNodeVersion;var P=D,B=x,U=T,_=N,Q=I,Y=A,F=w,Z=v,G=b,H=M,W=g,K=h,V=function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return JSON.parse(e)}catch(t){return e}},J=function(e){return"string"==typeof e?e:JSON.stringify(e)};function X(e,t){var n=J(t),r=K();r&&r.setItem(e,n)}var q="WALLETCONNECT_DEEPLINK_CHOICE";function $(e,t){return e.filter((function(e){return e.name.toLowerCase().includes(t.toLowerCase())}))[0]}var ee="https://registry.walletconnect.org";function te(e){return ee+"/logo/sm/"+e+".jpeg"}function ne(e,t){return void 0===t&&(t="mobile"),{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:e.id?te(e.id):"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}var re=Object.freeze({__proto__:null,detectEnv:k,detectOS:L,isAndroid:z,isIOS:O,isMobile:function(){return!!L()&&(z()||O())},isNode:R,isBrowser:function(){return!R()&&!!Y()},getFromWindow:P,getFromWindowOrThrow:B,getDocumentOrThrow:U,getDocument:_,getNavigatorOrThrow:Q,getNavigator:Y,getLocationOrThrow:F,getLocation:Z,getCryptoOrThrow:G,getCrypto:H,getLocalStorageOrThrow:W,getLocalStorage:K,getClientMeta:function(){return E()},safeJsonParse:V,safeJsonStringify:J,setLocal:X,getLocal:function(e){var t=null,n=K();return n&&(t=n.getItem(e)),t?V(t):t},removeLocal:function(e){var t=K();t&&t.removeItem(e)},mobileLinkChoiceKey:q,formatIOSMobile:function(e,t){var n=encodeURIComponent(e);return t.universalLink?t.universalLink+"/wc?uri="+n:t.deepLink?t.deepLink+(t.deepLink.endsWith(":")?"//":"/")+"wc?uri="+n:""},saveMobileLinkInfo:function(e){var t=e.href.split("?")[0];X(q,Object.assign(Object.assign({},e),{href:t}))},getMobileRegistryEntry:$,getMobileLinkRegistry:function(e,t){var n=e;return t&&(n=t.map((function(t){return $(e,t)})).filter(Boolean)),n},getWalletRegistryUrl:function(){return ee+"/data/wallets.json"},getDappRegistryUrl:function(){return ee+"/data/dapps.json"},getAppLogoUrl:te,formatMobileRegistryEntry:ne,formatMobileRegistry:function(e,t){return void 0===t&&(t="mobile"),Object.values(e).filter((function(e){return!!e[t].universal||!!e[t].native})).map((function(e){return ne(e,t)}))}}),ie=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},ae={}.toString,oe=Array.isArray||function(e){return"[object Array]"==ae.call(e)};ue.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}();var se=ue.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function ue(e,t,n){return ue.TYPED_ARRAY_SUPPORT||this instanceof ue?"number"==typeof e?le(this,e):function(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(n<0||t.byteLength=se)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+se.toString(16)+" bytes");return 0|e}function de(e,t){var n;return ue.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t)).__proto__=ue.prototype:(null===(n=e)&&(n=new ue(t)),n.length=t),n}function le(e,t){var n=de(e,t<0?0:0|ce(t));if(!ue.TYPED_ARRAY_SUPPORT)for(var r=0;r55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function ye(e){return ue.isBuffer(e)?e.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!=typeof e&&(e=""+e),0===e.length?0:fe(e).length)}ue.TYPED_ARRAY_SUPPORT&&(ue.prototype.__proto__=Uint8Array.prototype,ue.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&ue[Symbol.species]===ue&&Object.defineProperty(ue,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),ue.prototype.write=function(e,t,n){void 0===t||void 0===n&&"string"==typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,n,r){return function(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}(fe(t,e.length-n),e,n,r)}(this,e,t,n)},ue.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!ue.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},ve=function(e){return Me[e]},we=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},Ae=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');he=e},Ie=function(){return void 0!==he},Ne=function(e){return he(e)},Te=d((function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}}));function xe(){this.buffer=[],this.length=0}Te.L,Te.M,Te.Q,Te.H,Te.isValid,xe.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var De=xe;function je(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=me(e*e),this.reservedBit=me(e*e)}je.prototype.set=function(e,t,n,r){var i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},je.prototype.get=function(e,t){return this.data[e*this.size+t]},je.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},je.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Ee=je,Ce=d((function(e,t){var n=be;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,r=n(e),i=145===r?26:2*Math.ceil((r-13)/(2*t-2)),a=[r-7],o=1;o=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,r=0,i=0,a=0,o=null,s=null,u=0;u=5&&(r+=n+(i-5)),o=d,i=1),(d=e.get(c,u))===s?a++:(a>=5&&(r+=n+(a-5)),s=d,a=1)}i>=5&&(r+=n+(i-5)),a>=5&&(r+=n+(a-5))}return r},t.getPenaltyN2=function(e){for(var t=e.size,n=0,i=0;i=10&&(1488===r||93===r)&&n++,a=a<<1&2047|e.get(s,o),s>=10&&(1488===a||93===a)&&n++}return n*i},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,r=0;r=0;){for(var r=n[0],i=0;i>18&63]+Fe[i>>12&63]+Fe[i>>6&63]+Fe[63&i]);return a.join("")}function Ve(e){var t;He||We();for(var n=e.length,r=n%3,i="",a=[],o=16383,s=0,u=n-r;su?u:s+o));return 1===r?(t=e[n-1],i+=Fe[t>>2],i+=Fe[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=Fe[t>>10],i+=Fe[t>>4&63],i+=Fe[t<<2&63],i+="="),a.push(i),a.join("")}function Je(e,t,n,r,i){var a,o,s=8*i-r-1,u=(1<>1,d=-7,l=n?i-1:0,p=n?-1:1,f=e[t+l];for(l+=p,a=f&(1<<-d)-1,f>>=-d,d+=s;d>0;a=256*a+e[t+l],l+=p,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=r;d>0;o=256*o+e[t+l],l+=p,d-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=c}return(f?-1:1)*o*Math.pow(2,a-r)}function Xe(e,t,n,r,i,a){var o,s,u,c=8*a-i-1,d=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,y=r?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+l>=1?p/u:p*Math.pow(2,1-l))*u>=2&&(o++,u/=2),o+l>=d?(s=0,o=d):o+l>=1?(s=(t*u-1)*Math.pow(2,i),o+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;e[n+f]=255&s,f+=y,s/=256,i-=8);for(o=o<0;e[n+f]=255&o,f+=y,o/=256,c-=8);e[n+f-y]|=128*h}var qe={}.toString,$e=Array.isArray||function(e){return"[object Array]"==qe.call(e)};rt.TYPED_ARRAY_SUPPORT=void 0===i.TYPED_ARRAY_SUPPORT||i.TYPED_ARRAY_SUPPORT;var et=tt();function tt(){return rt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function nt(e,t){if(tt()=tt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+tt().toString(16)+" bytes");return 0|e}function ct(e){return!(null==e||!e._isBuffer)}function dt(e,t){if(ct(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Rt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Pt(e).length;default:if(r)return Rt(e).length;t=(""+t).toLowerCase(),r=!0}}function lt(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return xt(this,t,n);case"utf8":case"utf-8":return At(this,t,n);case"ascii":return Nt(this,t,n);case"latin1":case"binary":return Tt(this,t,n);case"base64":return wt(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Dt(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function pt(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function ft(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=rt.from(t,r)),ct(t))return 0===t.length?-1:yt(e,t,n,r,i);if("number"==typeof t)return t&=255,rt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):yt(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function yt(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var d=-1;for(a=n;as&&(n=s-u),a=n;a>=0;a--){for(var l=!0,p=0;pi&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function wt(e,t,n){return 0===t&&n===e.length?Ve(e):Ve(e.slice(t,n))}function At(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+l<=n)switch(l){case 1:c<128&&(d=c);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&c)<<6|63&a)>127&&(d=u);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(d=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(d=u)}null===d?(d=65533,l=1):d>65535&&(d-=65536,r.push(d>>>10&1023|55296),d=56320|1023&d),r.push(d),i+=l}return function(e){var t=e.length;if(t<=It)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},rt.prototype.compare=function(e,t,n,r,i){if(!ct(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),c=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return ht(this,e,t,n);case"utf8":case"utf-8":return mt(this,e,t,n);case"ascii":return gt(this,e,t,n);case"latin1":case"binary":return Mt(this,e,t,n);case"base64":return bt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},rt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var It=4096;function Nt(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ii)&&(n=i);for(var a="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function Et(e,t,n,r,i,a){if(!ct(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Ct(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function St(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function kt(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Lt(e,t,n,r,i){return i||kt(e,0,n,4),Xe(e,t,n,r,23,4),n+4}function zt(e,t,n,r,i){return i||kt(e,0,n,8),Xe(e,t,n,r,52,8),n+8}rt.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},rt.prototype.readUInt8=function(e,t){return t||jt(e,1,this.length),this[e]},rt.prototype.readUInt16LE=function(e,t){return t||jt(e,2,this.length),this[e]|this[e+1]<<8},rt.prototype.readUInt16BE=function(e,t){return t||jt(e,2,this.length),this[e]<<8|this[e+1]},rt.prototype.readUInt32LE=function(e,t){return t||jt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},rt.prototype.readUInt32BE=function(e,t){return t||jt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},rt.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||jt(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},rt.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||jt(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},rt.prototype.readInt8=function(e,t){return t||jt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},rt.prototype.readInt16LE=function(e,t){t||jt(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},rt.prototype.readInt16BE=function(e,t){t||jt(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},rt.prototype.readInt32LE=function(e,t){return t||jt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},rt.prototype.readInt32BE=function(e,t){return t||jt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},rt.prototype.readFloatLE=function(e,t){return t||jt(e,4,this.length),Je(this,e,!0,23,4)},rt.prototype.readFloatBE=function(e,t){return t||jt(e,4,this.length),Je(this,e,!1,23,4)},rt.prototype.readDoubleLE=function(e,t){return t||jt(e,8,this.length),Je(this,e,!0,52,8)},rt.prototype.readDoubleBE=function(e,t){return t||jt(e,8,this.length),Je(this,e,!1,52,8)},rt.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||Et(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+n},rt.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Et(this,e,t,1,255,0),rt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},rt.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Et(this,e,t,2,65535,0),rt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ct(this,e,t,!0),t+2},rt.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Et(this,e,t,2,65535,0),rt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ct(this,e,t,!1),t+2},rt.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Et(this,e,t,4,4294967295,0),rt.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):St(this,e,t,!0),t+4},rt.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Et(this,e,t,4,4294967295,0),rt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):St(this,e,t,!1),t+4},rt.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Et(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},rt.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Et(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},rt.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Et(this,e,t,1,127,-128),rt.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},rt.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Et(this,e,t,2,32767,-32768),rt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ct(this,e,t,!0),t+2},rt.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Et(this,e,t,2,32767,-32768),rt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ct(this,e,t,!1),t+2},rt.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Et(this,e,t,4,2147483647,-2147483648),rt.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):St(this,e,t,!0),t+4},rt.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Et(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),rt.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):St(this,e,t,!1),t+4},rt.prototype.writeFloatLE=function(e,t,n){return Lt(this,e,t,!0,n)},rt.prototype.writeFloatBE=function(e,t,n){return Lt(this,e,t,!1,n)},rt.prototype.writeDoubleLE=function(e,t,n){return zt(this,e,t,!0,n)},rt.prototype.writeDoubleBE=function(e,t,n){return zt(this,e,t,!1,n)},rt.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!rt.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Pt(e){return function(e){var t,n,r,i,a,o;He||We();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[s-2]?2:"="===e[s-1]?1:0,o=new Ge(3*s/4-a),r=a>0?s-4:s;var u=0;for(t=0,n=0;t>16&255,o[u++]=i>>8&255,o[u++]=255&i;return 2===a?(i=Ze[e.charCodeAt(t)]<<2|Ze[e.charCodeAt(t+1)]>>4,o[u++]=255&i):1===a&&(i=Ze[e.charCodeAt(t)]<<10|Ze[e.charCodeAt(t+1)]<<4|Ze[e.charCodeAt(t+2)]>>2,o[u++]=i>>8&255,o[u++]=255&i),o}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Ot,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Bt(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Ut(e){return null!=e&&(!!e._isBuffer||_t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&_t(e.slice(0,0))}(e))}function _t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Qt=Object.freeze({__proto__:null,INSPECT_MAX_BYTES:50,kMaxLength:et,Buffer:rt,SlowBuffer:function(e){return+e!=e&&(e=0),rt.alloc(+e)},isBuffer:Ut}).Buffer;function Yt(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Yt.prototype.initialize=function(e){this.degree=e,this.genPoly=Ye.generateECPolynomial(this.degree)},Yt.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=me(this.degree),n=Qt.concat([e,t],e.length+this.degree),r=Ye.mod(n,this.genPoly),i=this.degree-r.length;if(i>0){var a=me(this.degree);return r.copy(a,i),a}return r};var Ft=Yt,Zt=function(e){return!isNaN(e)&&e>=1&&e<=40},Gt="[0-9]+",Ht="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",Wt="(?:(?![A-Z0-9 $%*+\\-./:]|"+(Ht=Ht.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+",Kt=new RegExp(Ht,"g"),Vt=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Jt=new RegExp(Wt,"g"),Xt=new RegExp(Gt,"g"),qt=new RegExp("[A-Z $%*+\\-./:]+","g"),$t=new RegExp("^"+Ht+"$"),en=new RegExp("^[0-9]+$"),tn=new RegExp("^[A-Z0-9 $%*+\\-./:]+$"),nn={KANJI:Kt,BYTE_KANJI:Vt,BYTE:Jt,NUMERIC:Xt,ALPHANUMERIC:qt,testKanji:function(e){return $t.test(e)},testNumeric:function(e){return en.test(e)},testAlphanumeric:function(e){return tn.test(e)}},rn=d((function(e,t){t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!Zt(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return nn.testNumeric(e)?t.NUMERIC:nn.testAlphanumeric(e)?t.ALPHANUMERIC:nn.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}})),an=(rn.NUMERIC,rn.ALPHANUMERIC,rn.BYTE,rn.KANJI,rn.MIXED,rn.getCharCountIndicator,rn.getBestModeForData,rn.isValid,d((function(e,t){var n=we(7973);function r(e,t){return rn.getCharCountIndicator(e,t)+4}function i(e,t){var n=0;return e.forEach((function(e){var i=r(e.mode,t);n+=i+e.getBitsLength()})),n}t.from=function(e,t){return Zt(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!Zt(e))throw new Error("Invalid QR Code version");void 0===n&&(n=rn.BYTE);var i=8*(ve(e)-Pe(e,t));if(n===rn.MIXED)return i;var a=i-r(n,e);switch(n){case rn.NUMERIC:return Math.floor(a/10*3);case rn.ALPHANUMERIC:return Math.floor(a/11*2);case rn.KANJI:return Math.floor(a/13);case rn.BYTE:default:return Math.floor(a/8)}},t.getBestVersionForData=function(e,n){var r,a=Te.from(n,Te.M);if(oe(e)){if(e.length>1)return function(e,n){for(var r=1;r<=40;r++)if(i(e,r)<=t.getCapacity(r,n,rn.MIXED))return r}(e,a);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(var i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),a)},t.getEncodedBits=function(e){if(!Zt(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;we(t)-n>=0;)t^=7973<=0;)r^=1335<0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))};var cn=un,dn=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ln(e){this.mode=rn.ALPHANUMERIC,this.data=e}ln.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},ln.prototype.getLength=function(){return this.data.length},ln.prototype.getBitsLength=function(){return ln.getBitsLength(this.data.length)},ln.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var n=45*dn.indexOf(this.data[t]);n+=dn.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(dn.indexOf(this.data[t]),6)};var pn=ln;function fn(e){this.mode=rn.BYTE,this.data=ge(e)}fn.getBitsLength=function(e){return 8*e},fn.prototype.getLength=function(){return this.data.length},fn.prototype.getBitsLength=function(){return fn.getBitsLength(this.data.length)},fn.prototype.write=function(e){for(var t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}};var mn=hn,gn=d((function(e){var t={single_source_shortest_paths:function(e,n,r){var i={},a={};a[n]=0;var o,s,u,c,d,l,p,f=t.PriorityQueue.make();for(f.push(n,0);!f.empty();)for(u in s=(o=f.pop()).value,c=o.cost,d=e[s]||{})d.hasOwnProperty(u)&&(l=c+d[u],p=a[u],(void 0===a[u]||p>l)&&(a[u]=l,f.push(u,l),i[u]=s));if(void 0!==r&&void 0===a[r]){var y=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(y)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var i=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,i={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(i[n]=r[n]);return i.queue=[],i.sorter=e.sorter||r.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t})),Mn=d((function(e,t){function n(e){return unescape(encodeURIComponent(e)).length}function r(e,t,n){for(var r,i=[];null!==(r=e.exec(n));)i.push({data:r[0],index:r.index,mode:t,length:r[0].length});return i}function i(e){var t,n,i=r(nn.NUMERIC,rn.NUMERIC,e),a=r(nn.ALPHANUMERIC,rn.ALPHANUMERIC,e);return Ie()?(t=r(nn.BYTE,rn.BYTE,e),n=r(nn.KANJI,rn.KANJI,e)):(t=r(nn.BYTE_KANJI,rn.BYTE,e),n=[]),i.concat(a,t,n).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function a(e,t){switch(t){case rn.NUMERIC:return cn.getBitsLength(e);case rn.ALPHANUMERIC:return pn.getBitsLength(e);case rn.KANJI:return mn.getBitsLength(e);case rn.BYTE:return yn.getBitsLength(e)}}function o(e,t){var n,r=rn.getBestModeForData(e);if((n=rn.from(t,r))!==rn.BYTE&&n.bit=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(u))},t.rawSplit=function(e){return t.fromArray(i(e,Ie()))}}));function bn(e,t,n){var r,i,a=e.size,o=sn(t,n);for(r=0;r<15;r++)i=1==(o>>r&1),r<6?e.set(r,8,i,!0):r<8?e.set(r+1,8,i,!0):e.set(a-15+r,8,i,!0),r<8?e.set(8,a-r-1,i,!0):r<9?e.set(8,15-r-1+1,i,!0):e.set(8,15-r-1,i,!0);e.set(a-8,8,1,!0)}function vn(e,t,n){var r=new De;n.forEach((function(t){r.put(t.mode.bit,4),r.put(t.getLength(),rn.getCharCountIndicator(t.mode,e)),t.write(r)}));var i=8*(ve(e)-Pe(e,t));for(r.getLengthInBits()+4<=i&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);for(var a=(i-r.getLengthInBits())/8,o=0;o=0&&s<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===s||6===s)||s>=2&&s<=4&&u>=2&&u<=4?e.set(a+s,o+u,!0,!0):e.set(a+s,o+u,!1,!0))}(d,t),function(e){for(var t=e.size,n=8;n=7&&function(e,t){for(var n,r,i,a=e.size,o=an.getEncodedBits(t),s=0;s<18;s++)n=Math.floor(s/3),r=s%3+a-8-3,i=1==(o>>s&1),e.set(n,r,i,!0),e.set(r,n,i,!0)}(d,t),function(e,t){for(var n=e.size,r=-1,i=n-1,a=7,o=0,s=n-1;s>0;s-=2)for(6===s&&s--;;){for(var u=0;u<2;u++)if(!e.isReserved(i,s-u)){var c=!1;o>>a&1)),e.set(i,s-u,c),-1==--a&&(o++,a=7)}if((i+=r)<0||n<=i){i-=r,r=-r;break}}}(d,u),isNaN(r)&&(r=Le.getBestMask(d,bn.bind(null,d,n))),Le.applyMask(r,d),bn(d,n,r),{modules:d,version:t,errorCorrectionLevel:n,maskPattern:r,segments:i}}Mn.fromArray,Mn.fromString,Mn.rawSplit;var An=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var n,r,i=Te.M;return void 0!==t&&(i=Te.from(t.errorCorrectionLevel,Te.M),n=an.from(t.version),r=Le.from(t.maskPattern),t.toSJISFunc&&Ae(t.toSJISFunc)),wn(e,n,i,r)},In=d((function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var i=n.modules.size,a=n.modules.data,o=t.getScale(i,r),s=Math.floor((i+2*r.margin)*o),u=r.margin*o,c=[r.color.light,r.color.dark],d=0;d=u&&l>=u&&d':"",u="0&&u>0&&e[s-1]||(r+=a?xn("M",u+n,.5+c+n):xn("m",i,0),i=0,a=!1),u+1',c='viewBox="0 0 '+o+" "+o+'"',d=''+s+u+"\n";return"function"==typeof n&&n(null,d),d};function jn(e,t,n,r,i){var a=[].slice.call(arguments,1),o=a.length,s="function"==typeof a[o-1];if(!s&&!ie())throw new Error("Callback required as last argument");if(!s){if(o<1)throw new Error("Too few arguments provided");return 1===o?(n=t,t=r=void 0):2!==o||t.getContext||(r=n,n=t,t=void 0),new Promise((function(i,a){try{var o=An(n,r);i(e(o,t,r))}catch(e){a(e)}}))}if(o<2)throw new Error("Too few arguments provided");2===o?(i=n,n=t,t=r=void 0):3===o&&(t.getContext&&void 0===i?(i=r,r=void 0):(i=r,r=n,n=t,t=void 0));try{var u=An(n,r);i(null,e(u,t,r))}catch(e){i(e)}}var En={create:An,toCanvas:jn.bind(null,Nn.render),toDataURL:jn.bind(null,Nn.renderToDataURL),toString:jn.bind(null,(function(e,t,n){return Dn(e,n)}))},Cn={"text/plain":"Text","text/html":"Url",default:"Text"},Sn=function(e,t){var n,r,i,a,o,s,u=!1;t||(t={}),n=t.debug||!1;try{if(i=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r3)for(n=[n],r=3;r2&&(t.children=l.slice.call(arguments,2)),n={},t)"key"!==r&&"ref"!==r&&(n[r]=t[r]);return m(e.type,n,t.key||e.key,t.ref||e.ref,null)},t.createContext=function(e){var t={},n={__c:"__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,i=this;return this.getChildContext||(r=[],this.getChildContext=function(){return t[n.__c]=i,t},this.shouldComponentUpdate=function(e){i.props.value!==e.value&&r.some((function(t){t.context=e.value,w(t)}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Consumer.contextType=n,n.Provider.__=n,n},t.toChildArray=N,t._e=k,t.options=n})),Ln=(kn.render,kn.hydrate,kn.createElement,kn.h,kn.Fragment,kn.createRef,kn.isValidElement,kn.Component,kn.cloneElement,kn.createContext,kn.toChildArray,kn._e,kn.options,d((function(e,t){var n,r,i,a=0,o=[],s=kn.options.__r,u=kn.options.diffed,c=kn.options.__c,d=kn.options.unmount;function l(e,t){kn.options.__h&&kn.options.__h(r,e,a||t),a=0;var n=r.__H||(r.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function p(e){return a=1,f(v,e)}function f(e,t,i){var a=l(n++,2);return a.__c||(a.__c=r,a.__=[i?i(t):v(void 0,t),function(t){var n=e(a.__[0],t);a.__[0]!==n&&(a.__[0]=n,a.__c.setState({}))}]),a.__}function y(e,t){var i=l(n++,4);!kn.options.__s&&b(i.__H,t)&&(i.__=e,i.__H=t,r.__h.push(i))}function h(e,t){var r=l(n++,7);return b(r.__H,t)?(r.__H=t,r.__h=e,r.__=e()):r.__}function m(){o.some((function(e){if(e.__P)try{e.__H.__h.forEach(g),e.__H.__h.forEach(M),e.__H.__h=[]}catch(t){return e.__H.__h=[],kn.options.__e(t,e.__v),!0}})),o=[]}function g(e){e.t&&e.t()}function M(e){var t=e.__();"function"==typeof t&&(e.t=t)}function b(e,t){return!e||t.some((function(t,n){return t!==e[n]}))}function v(e,t){return"function"==typeof t?t(e):t}kn.options.__r=function(e){s&&s(e),n=0,(r=e.__c).__H&&(r.__H.__h.forEach(g),r.__H.__h.forEach(M),r.__H.__h=[])},kn.options.diffed=function(e){u&&u(e);var t=e.__c;if(t){var n=t.__H;n&&n.__h.length&&(1!==o.push(t)&&i===kn.options.requestAnimationFrame||((i=kn.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);"undefined"!=typeof window&&(t=requestAnimationFrame(n))})(m))}},kn.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(g),e.__h=e.__h.filter((function(e){return!e.__||M(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],kn.options.__e(n,e.__v)}})),c&&c(e,t)},kn.options.unmount=function(e){d&&d(e);var t=e.__c;if(t){var n=t.__H;if(n)try{n.__.forEach((function(e){return e.t&&e.t()}))}catch(e){kn.options.__e(e,t.__v)}}},t.useState=p,t.useReducer=f,t.useEffect=function(e,t){var i=l(n++,3);!kn.options.__s&&b(i.__H,t)&&(i.__=e,i.__H=t,r.__H.__h.push(i))},t.useLayoutEffect=y,t.useRef=function(e){return a=5,h((function(){return{current:e}}),[])},t.useImperativeHandle=function(e,t,n){a=6,y((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},t.useMemo=h,t.useCallback=function(e,t){return a=8,h((function(){return e}),t)},t.useContext=function(e){var t=r.context[e.__c],i=l(n++,9);return i.__c=e,t?(null==i.__&&(i.__=!0,t.sub(r)),t.props.value):e.__},t.useDebugValue=function(e,t){kn.options.useDebugValue&&kn.options.useDebugValue(t?t(e):e)},t.useErrorBoundary=function(e){var t=l(n++,10),i=p();return t.__=e,r.componentDidCatch||(r.componentDidCatch=function(e){t.__&&t.__(e),i[1](e)}),[i[0],function(){i[1](void 0)}]}}))),zn=(Ln.useState,Ln.useReducer,Ln.useEffect,Ln.useLayoutEffect,Ln.useRef,Ln.useImperativeHandle,Ln.useMemo,Ln.useCallback,Ln.useContext,Ln.useDebugValue,Ln.useErrorBoundary,d((function(e,t){var n=Ln,r=kn;function i(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}var o=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).isPureReactComponent=!0,n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.shouldComponentUpdate=function(e,t){return a(this.props,e)||a(this.state,t)},r}(r.Component);function s(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:a(this.props,e)}function o(t){return this.shouldComponentUpdate=n,r.createElement(e,i({},t))}return o.prototype.isReactComponent=!0,o.displayName="Memo("+(e.displayName||e.name)+")",o.t=!0,o}var u=r.options.__b;function c(e){function t(t){var n=i({},t);return delete n.ref,e(n,t.ref)}return t.prototype.isReactComponent=t.t=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}r.options.__b=function(e){e.type&&e.type.t&&e.ref&&(e.props.ref=e.ref,e.ref=null),u&&u(e)};var d=function(e,t){return e?r.toChildArray(e).reduce((function(e,n,r){return e.concat(t(n,r))}),[]):null},l={map:d,forEach:d,count:function(e){return e?r.toChildArray(e).length:0},only:function(e){if(1!==(e=r.toChildArray(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:r.toChildArray},p=r.options.__e;function f(e){return e&&((e=i({},e)).__c=null,e.__k=e.__k&&e.__k.map(f)),e}function y(){this.__u=0,this.o=null,this.__b=null}function h(e){var t=e.__.__c;return t&&t.u&&t.u(e)}function m(e){var t,n,i;function a(a){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){i=e})),i)throw i;if(!n)throw t;return r.createElement(n,a)}return a.displayName="Lazy",a.t=!0,a}function g(){this.i=null,this.l=null}r.options.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return r.__c(e,t.__c);p(e,t,n)},(y.prototype=new r.Component).__c=function(e,t){var n=this;null==n.o&&(n.o=[]),n.o.push(t);var r=h(n.__v),i=!1,a=function(){i||(i=!0,r?r(o):o())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){a(),t.__c&&t.__c()};var o=function(){var e;if(!--n.__u)for(n.__v.__k[0]=n.state.u,n.setState({u:n.__b=null});e=n.o.pop();)e.forceUpdate()};n.__u++||n.setState({u:n.__b=n.__v.__k[0]}),e.then(a,a)},y.prototype.render=function(e,t){return this.__b&&(this.__v.__k[0]=f(this.__b),this.__b=null),[r.createElement(r.Component,null,t.u?null:e.children),t.u&&e.fallback]};var M=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]8?2.5:2.7)+"vw":"inherit";return zn.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:n,onClick:a,rel:"noopener noreferrer",target:"_blank"},zn.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+i+"') "+t,backgroundSize:"100%"}}),zn.createElement("div",{style:{fontSize:o},className:"walletconnect-connect__button__text"},r))}function Hn(e){var t=re.isAndroid(),n=zn.useState(""),r=n[0],i=n[1],a=zn.useState(""),o=a[0],s=a[1],u=zn.useState(1),c=u[0],d=u[1],l=o?e.links.filter((function(e){return e.name.toLowerCase().includes(o.toLowerCase())})):e.links,p=e.errorMessage,f=o||l.length>5,y=Math.ceil(l.length/12),h=[12*(c-1)+1,12*c],m=l.length?l.filter((function(e,t){return t+1>=h[0]&&t+1<=h[1]})):[],g=!(t||!(y>1)),M=void 0;return zn.createElement("div",null,zn.createElement("p",{id:Qn,className:"walletconnect-qrcode__text"},t?e.text.connect_mobile_wallet:e.text.choose_preferred_wallet),!t&&zn.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:function(e){i(e.target.value),clearTimeout(M),e.target.value?M=setTimeout((function(){s(e.target.value),d(1)}),1e3):(i(""),s(""),d(1))}}),zn.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(t?"__android":f&&l.length?"__wrap":"")},t?zn.createElement(Fn,{name:e.text.connect,color:"rgb(64, 153, 255)",href:e.uri,onClick:zn.useCallback((function(){re.saveMobileLinkInfo({name:"Unknown",href:e.uri})}),[])}):m.length?m.map((function(t){var n=t.color,r=t.name,i=t.shortName,a=t.logo,o=re.formatIOSMobile(e.uri,t),s=zn.useCallback((function(){re.saveMobileLinkInfo({name:r,href:o})}),[m]);return f?zn.createElement(Gn,{color:n,href:o,name:i,logo:a,onClick:s}):zn.createElement(Zn,{color:n,href:o,name:r,logo:a,onClick:s})})):zn.createElement(zn.Fragment,null,zn.createElement("p",null,p.length?e.errorMessage:e.links.length&&!l.length?e.text.no_wallets_found:e.text.loading))),g&&zn.createElement("div",{className:"walletconnect-modal__footer"},Array(y).fill(0).map((function(e,t){var n=t+1,r=c===n;return zn.createElement("a",{style:{margin:"auto 10px",fontWeight:r?"bold":"normal"},onClick:function(){return d(n)}},n)}))))}function Wn(e){var t=!!e.message.trim();return zn.createElement("div",{className:"walletconnect-qrcode__notification"+(t?" notification__show":"")},e.message)}function Kn(e){var t=zn.useState(""),n=t[0],r=t[1],i=zn.useState(""),a=i[0],o=i[1];return zn.useEffect((function(){try{return Promise.resolve(function(e){try{var t="";return Promise.resolve(Rn.toString(e,{margin:0,type:"svg"})).then((function(e){return"string"==typeof e&&(t=e.replace("0||zn.useEffect((function(){!function(){try{if(t)return Promise.resolve();o(!0);var i=function(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}((function(){var t=e.qrcodeModalOptions&&e.qrcodeModalOptions.registryUrl?e.qrcodeModalOptions.registryUrl:re.getWalletRegistryUrl();return Promise.resolve(fetch(t).then((function(e){return e.json()}))).then((function(t){var i=n?"mobile":"desktop",a=re.getMobileLinkRegistry(re.formatMobileRegistry(t,i),r);o(!1),c(!0),T(a.length?"":e.text.no_supported_wallets),A(a);var s=1===a.length;s&&(m(re.formatIOSMobile(e.uri,a[0])),p(!0)),b(s)}))}),(function(t){o(!1),c(!0),T(e.text.something_went_wrong),console.error(t)}));Promise.resolve(i&&i.then?i.then((function(){})):void 0)}catch(e){return Promise.reject(e)}}()}))};x();var D=n?l:!l;return zn.createElement("div",{id:_n,className:"walletconnect-qrcode__base animated fadeIn"},zn.createElement("div",{className:"walletconnect-modal__base"},zn.createElement(Yn,{onClose:e.onClose}),M&&l?zn.createElement("div",{className:"walletconnect-modal__single_wallet"},zn.createElement("a",{onClick:function(){return re.saveMobileLinkInfo({name:w[0].name,href:h})},href:h,rel:"noopener noreferrer",target:"_blank"},e.text.connect_with+" "+(M?w[0].name:"")+" ›")):t||a||!a&&w.length?zn.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(D?" right__selected":"")},zn.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?zn.createElement(zn.Fragment,null,zn.createElement("a",{onClick:function(){return p(!1),x()}},e.text.mobile),zn.createElement("a",{onClick:function(){return p(!0)}},e.text.qrcode)):zn.createElement(zn.Fragment,null,zn.createElement("a",{onClick:function(){return p(!0)}},e.text.qrcode),zn.createElement("a",{onClick:function(){return p(!1),x()}},e.text.desktop))):null,zn.createElement("div",null,l||!t&&!a&&!w.length?zn.createElement(Kn,Object.assign({},f)):zn.createElement(Hn,Object.assign({},f,{links:w,errorMessage:N})))))}var Jn={de:{choose_preferred_wallet:"Wähle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterstützten Wallet",no_wallets_found:"keine Wallet gefunden"},en:{choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},es:{choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera móvil",scan_qrcode_with_wallet:"Escanea el código QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo salió mal",no_supported_wallets:"Todavía no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},fr:{choose_preferred_wallet:"Choisissez votre portefeuille préféré",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copié!",connect_with:"Connectez-vous à l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourné",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouvé"},ko:{choose_preferred_wallet:"원하는 지갑을 선택하세요",connect_mobile_wallet:"모바일 지갑과 연결",scan_qrcode_with_wallet:"WalletConnect 지원 지갑에서 QR코드를 스캔하세요",connect:"연결",qrcode:"QR 코드",mobile:"모바일",desktop:"데스크탑",copy_to_clipboard:"클립보드에 복사",copied_to_clipboard:"클립보드에 복사되었습니다!",connect_with:"와 연결하다",loading:"로드 중...",something_went_wrong:"문제가 발생했습니다.",no_supported_wallets:"아직 지원되는 지갑이 없습니다",no_wallets_found:"지갑을 찾을 수 없습니다"},pt:{choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se à carteira móvel",scan_qrcode_with_wallet:"Ler o código QR com uma carteira compatível com WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda não há carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},zh:{choose_preferred_wallet:"选择你的钱包",connect_mobile_wallet:"连接至移动端钱包",scan_qrcode_with_wallet:"使用兼容 WalletConnect 的钱包扫描二维码",connect:"连接",qrcode:"二维码",mobile:"移动",desktop:"桌面",copy_to_clipboard:"复制到剪贴板",copied_to_clipboard:"复制到剪贴板成功!",connect_with:"通过以下方式连接",loading:"正在加载...",something_went_wrong:"出了问题",no_supported_wallets:"目前还没有支持的钱包",no_wallets_found:"没有找到钱包"},fa:{choose_preferred_wallet:"کیف پول مورد نظر خود را انتخاب کنید",connect_mobile_wallet:"به کیف پول موبایل وصل شوید",scan_qrcode_with_wallet:"کد QR را با یک کیف پول سازگار با WalletConnect اسکن کنید",connect:"اتصال",qrcode:"کد QR",mobile:"سیار",desktop:"دسکتاپ",copy_to_clipboard:"کپی به کلیپ بورد",copied_to_clipboard:"در کلیپ بورد کپی شد!",connect_with:"ارتباط با",loading:"...بارگذاری",something_went_wrong:"مشکلی پیش آمد",no_supported_wallets:"هنوز هیچ کیف پول پشتیبانی شده ای وجود ندارد",no_wallets_found:"هیچ کیف پولی پیدا نشد"}};function Xn(){var e=re.getDocumentOrThrow(),t=e.getElementById(_n);t&&(t.className=t.className.replace("fadeIn","fadeOut"),setTimeout((function(){var t=e.getElementById(Bn);t&&e.body.removeChild(t)}),300))}function qn(e){return function(){Xn(),e&&e()}}function $n(e,t,n){!function(){var e=re.getDocumentOrThrow(),t=e.getElementById(Un);t&&e.head.removeChild(t);var n=e.createElement("style");n.setAttribute("id",Un),n.innerText=':root {\n --animation-duration: 300ms;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.animated {\n animation-duration: var(--animation-duration);\n animation-fill-mode: both;\n}\n\n.fadeIn {\n animation-name: fadeIn;\n}\n\n.fadeOut {\n animation-name: fadeOut;\n}\n\n#walletconnect-wrapper {\n -webkit-user-select: none;\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n pointer-events: none;\n position: fixed;\n top: 0;\n user-select: none;\n width: 100%;\n z-index: 99999999999999;\n}\n\n.walletconnect-modal__headerLogo {\n height: 21px;\n}\n\n.walletconnect-modal__header p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n align-items: flex-start;\n display: flex;\n flex: 1;\n margin-left: 5px;\n}\n\n.walletconnect-modal__close__wrapper {\n position: absolute;\n top: 0px;\n right: 0px;\n z-index: 10000;\n background: white;\n border-radius: 26px;\n padding: 6px;\n box-sizing: border-box;\n width: 26px;\n height: 26px;\n cursor: pointer;\n}\n\n.walletconnect-modal__close__icon {\n position: relative;\n top: 7px;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(45deg);\n}\n\n.walletconnect-modal__close__line1 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n}\n\n.walletconnect-modal__close__line2 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n transform: rotate(90deg);\n}\n\n.walletconnect-qrcode__base {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n background: rgba(37, 41, 46, 0.95);\n height: 100%;\n left: 0;\n pointer-events: auto;\n position: fixed;\n top: 0;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n width: 100%;\n will-change: opacity;\n padding: 40px;\n box-sizing: border-box;\n}\n\n.walletconnect-qrcode__text {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 10px 0 20px 0;\n text-align: center;\n width: 100%;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-qrcode__text {\n font-size: 4vw;\n }\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-qrcode__text {\n font-size: 14px;\n }\n}\n\n.walletconnect-qrcode__image {\n width: calc(100% - 30px);\n box-sizing: border-box;\n cursor: none;\n margin: 0 auto;\n}\n\n.walletconnect-qrcode__notification {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n font-size: 16px;\n padding: 16px 20px;\n border-radius: 16px;\n text-align: center;\n transition: all 0.1s ease-in-out;\n background: white;\n color: black;\n margin-bottom: -60px;\n opacity: 0;\n}\n\n.walletconnect-qrcode__notification.notification__show {\n opacity: 1;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__header {\n height: 130px;\n }\n .walletconnect-modal__base {\n overflow: auto;\n }\n}\n\n@media only screen and (min-device-width: 415px) and (max-width: 768px) {\n #content {\n max-width: 768px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 375px) and (max-width: 415px) {\n #content {\n max-width: 414px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 320px) and (max-width: 375px) {\n #content {\n max-width: 375px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (max-width: 320px) {\n #content {\n max-width: 320px;\n box-sizing: border-box;\n }\n}\n\n.walletconnect-modal__base {\n -webkit-font-smoothing: antialiased;\n background: #ffffff;\n border-radius: 24px;\n box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4);\n font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font,\n -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,\n "Open Sans", "Helvetica Neue", sans-serif;\n margin-top: 41px;\n padding: 24px 24px 22px;\n pointer-events: auto;\n position: relative;\n text-align: center;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n will-change: transform;\n overflow: visible;\n transform: translateY(-50%);\n top: 50%;\n max-width: 500px;\n margin: auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__base {\n padding: 24px 12px;\n }\n}\n\n.walletconnect-modal__base .hidden {\n transform: translateY(150%);\n transition: 0.125s cubic-bezier(0.4, 0, 1, 1);\n}\n\n.walletconnect-modal__header {\n align-items: center;\n display: flex;\n height: 26px;\n left: 0;\n justify-content: space-between;\n position: absolute;\n top: -42px;\n width: 100%;\n}\n\n.walletconnect-modal__base .wc-logo {\n align-items: center;\n display: flex;\n height: 26px;\n margin-top: 15px;\n padding-bottom: 15px;\n pointer-events: auto;\n}\n\n.walletconnect-modal__base .wc-logo div {\n background-color: #3399ff;\n height: 21px;\n margin-right: 5px;\n mask-image: url("images/wc-logo.svg") center no-repeat;\n width: 32px;\n}\n\n.walletconnect-modal__base .wc-logo p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n}\n\n.walletconnect-modal__base h2 {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 0 0 19px 0;\n text-align: center;\n width: 100%;\n}\n\n.walletconnect-modal__base__row {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n align-items: center;\n border-radius: 20px;\n cursor: pointer;\n display: flex;\n height: 56px;\n justify-content: space-between;\n padding: 0 15px;\n position: relative;\n margin: 0px 0px 8px;\n text-align: left;\n transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n will-change: transform;\n text-decoration: none;\n}\n\n.walletconnect-modal__base__row:hover {\n background: rgba(60, 66, 82, 0.06);\n}\n\n.walletconnect-modal__base__row:active {\n background: rgba(60, 66, 82, 0.06);\n transform: scale(0.975);\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.walletconnect-modal__base__row__h3 {\n color: #25292e;\n font-size: 20px;\n font-weight: 700;\n margin: 0;\n padding-bottom: 3px;\n}\n\n.walletconnect-modal__base__row__right {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n\n.walletconnect-modal__base__row__right__app-icon {\n border-radius: 8px;\n height: 34px;\n margin: 0 11px 2px 0;\n width: 34px;\n background-size: 100%;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-modal__base__row__right__caret {\n height: 18px;\n opacity: 0.3;\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n width: 8px;\n will-change: opacity;\n}\n\n.walletconnect-modal__base__row:hover .caret,\n.walletconnect-modal__base__row:active .caret {\n opacity: 0.6;\n}\n\n.walletconnect-modal__mobile__toggle {\n width: 80%;\n display: flex;\n margin: 0 auto;\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n margin-bottom: 18px;\n background: #d4d5d9;\n}\n\n.walletconnect-modal__single_wallet {\n display: flex;\n justify-content: center;\n margin-top: 7px;\n margin-bottom: 18px;\n}\n\n.walletconnect-modal__single_wallet a {\n cursor: pointer;\n color: rgb(64, 153, 255);\n font-size: 21px;\n font-weight: 800;\n text-decoration: none !important;\n margin: 0 auto;\n}\n\n.walletconnect-modal__mobile__toggle_selector {\n width: calc(50% - 8px);\n background: white;\n position: absolute;\n border-radius: 5px;\n height: calc(100% - 8px);\n top: 4px;\n transition: all 0.2s ease-in-out;\n transform: translate3d(4px, 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector {\n transform: translate3d(calc(100% + 12px), 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle a {\n font-size: 12px;\n width: 50%;\n text-align: center;\n padding: 8px;\n margin: 0;\n font-weight: 600;\n z-index: 1;\n}\n\n.walletconnect-modal__footer {\n display: flex;\n justify-content: center;\n margin-top: 20px;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__footer {\n margin-top: 5vw;\n }\n}\n\n.walletconnect-modal__footer a {\n cursor: pointer;\n color: #898d97;\n font-size: 15px;\n margin: 0 auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__footer a {\n font-size: 14px;\n }\n}\n\n.walletconnect-connect__buttons__wrapper {\n max-height: 44vh;\n}\n\n.walletconnect-connect__buttons__wrapper__android {\n margin: 50% 0;\n}\n\n.walletconnect-connect__buttons__wrapper__wrap {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n margin: 10px 0;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__buttons__wrapper__wrap {\n margin-top: 40px;\n }\n}\n\n.walletconnect-connect__button {\n background-color: rgb(64, 153, 255);\n padding: 12px;\n border-radius: 8px;\n text-decoration: none;\n color: rgb(255, 255, 255);\n font-weight: 500;\n}\n\n.walletconnect-connect__button__icon_anchor {\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: 8px;\n width: 42px;\n justify-self: center;\n flex-direction: column;\n text-decoration: none !important;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-connect__button__icon_anchor {\n margin: 4px;\n }\n}\n\n.walletconnect-connect__button__icon {\n border-radius: 10px;\n height: 42px;\n margin: 0;\n width: 42px;\n background-size: cover !important;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-connect__button__text {\n color: #424952;\n font-size: 2.7vw;\n text-decoration: none !important;\n padding: 0;\n margin-top: 1.8vw;\n font-weight: 600;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__button__text {\n font-size: 16px;\n margin-top: 12px;\n }\n}\n\n.walletconnect-search__input {\n border: none;\n background: #d4d5d9;\n border-style: none;\n padding: 8px 16px;\n outline: none;\n font-style: normal;\n font-stretch: normal;\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: normal;\n text-align: left;\n border-radius: 8px;\n width: calc(100% - 16px);\n margin: 0;\n margin-bottom: 8px;\n}\n',e.head.appendChild(n)}();var r,i=function(){var e=re.getDocumentOrThrow(),t=e.createElement("div");return t.setAttribute("id",Bn),e.body.appendChild(t),t}();zn.render(zn.createElement(Vn,{text:(r=re.getNavigatorOrThrow().language.split("-")[0]||"en",Jn[r]||Jn.en),uri:e,onClose:qn(t),qrcodeModalOptions:n}),i)}var er=function(){return"undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.node},tr={open:function(e,t,n){console.log(e),er()?function(e){Rn.toString(e,{type:"terminal"}).then(console.log)}(e):$n(e,t,n)},close:function(){er()||Xn()}},nr=function(){function e(e){this.web3=e}var t=e.prototype;return t.init=function(e){this.web3=e},t.string2bytes32=function(e){var t=this.web3.utils.stringToHex(e);return t+=Array(67-t.length).join("0")},t.keccak256=function(e){return this.web3.utils.keccak256(e)},t.hexToBytes=function(e){return this.web3.utils.hexToBytes(e)},t.hexToAscii=function(e){return this.web3.utils.hexToAscii(e)},t.numberToHex=function(e){return this.web3.utils.numberToHex(e)},t.getAbiEventInputs=function(e,t){for(var n,r=y(e);!(n=r()).done;){var i=n.value;if("event"==i.type&&i.name==t)return i.inputs}return null},t.encodeEventName=function(e,t){if(null==e)return null;var n=[];e.map((function(e){n.push(e.type)}));var r=t+"("+n.join(",")+")";return this.web3.utils.sha3(r)},t.encodeEventTopic=function(e,t){var n=this.getAbiEventInputs(e,t);return this.encodeEventName(n,t)},t.decodeEventLog=function(e,t,n,r){n=n.substr(2);var i=r.slice();i.splice(0,1);var a=t.slice();return e.eth.abi.decodeLog(a,n,i)},t.findEventLogs=function(e,t,n,r){void 0===r&&(r=[]);for(var i={transactionHash:n.transactionHash,blockNumber:Number(n.blockNumber),address:n.address,data:[]},a=0;a=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):d(a[0][2],n)}catch(e){d(a[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function A(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function I(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&p(t,e,n);return N(t,e),t}function x(e){return e&&e.__esModule?e:{default:e}}function D(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function j(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}},function(e,t,n){e.exports=n(27)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(34),t),r.__exportStar(n(35),t),r.__exportStar(n(36),t),r.__exportStar(n(37),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(32),t),r.__exportStar(n(110),t),r.__exportStar(n(10),t)},function(e,t,n){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.themesList=void 0;var i=n(0),a=i.__importDefault(n(38)),o=i.__importDefault(n(39));t.themesList=((r={default:a.default})[a.default.name]=a.default,r[o.default.name]=o.default,r)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.providers=t.injected=t.connectors=void 0;var r=n(0),i=r.__importStar(n(40));t.connectors=i;var a=r.__importStar(n(12));t.injected=a;var o=r.__importStar(n(94));t.providers=o},function(e,t,n){e.exports=n(115)},function(e,t,n){var r=n(116),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,d=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(y){var i=f(n);i&&i!==y&&e(t,i,r)}var o=d(n);l&&(o=o.concat(l(n)));for(var s=u(t),h=u(n),m=0;m1&&(e[0]===o.injected.METAMASK.check||e[0]===o.injected.CIPHER.check)?e[1]:e[0]:o.providers.FALLBACK.check}t.checkInjectedProviders=s,t.verifyInjectedProvider=u,t.getInjectedProvider=c,t.getInjectedProviderName=function(){var e=c();return e?e.name:null},t.getProviderInfo=function(e){return e?d(Object.values(o.providers).filter((function(t){return e[t.check]})).map((function(e){return e.check}))):o.providers.FALLBACK},t.getProviderInfoFromChecksArray=d,t.getProviderInfoByName=function(e){return p("name",e)},t.getProviderInfoById=function(e){return p("id",e)},t.getProviderInfoByCheck=function(e){return p("check",e)},t.isMobile=function(){return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(navigator.userAgent.substr(0,4))&&!function(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}())},t.getProviderDescription=function(e){if(e.description)return e.description;var t="";switch(e.type){case"injected":t="Connect to your "+e.name+" Wallet";break;case"web":t="Connect with your "+e.name+" account";break;case"qrcode":t="Scan with "+e.name+" to connect";break;case"hardware":t="Connect to your "+e.name+" Hardware Wallet"}return t},t.filterMatches=l,t.filterProviders=p,t.filterProviderChecks=f,t.getChainId=function(e){var t=l(Object.values(i.CHAIN_DATA_LIST),(function(t){return t.network===e}),void 0);if(!t)throw new Error("No chainId found match "+e);return t.chainId},t.getThemeColors=function(e){return"string"==typeof e?a.themesList[e].colors:e},t.findMatchingRequiredOptions=function e(t,n){return t.filter((function(t){if("string"==typeof t)return t in n;var r=e(t,n);return r&&r.length}))},t.isLocalStorageAvailable=function(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(e){return!1}}},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var u,c=[],d=!1,l=-1;function p(){d&&u&&(d=!1,u.length?c=u.concat(c):l=-1,c.length&&f())}function f(){if(!d){var e=s(p);d=!0;for(var t=c.length;t;){for(u=c,c=[];++l1)for(var n=1;n1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var D=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&x(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a=C&&(C=t+1),j.set(e,t),E.set(t,e)},z="style["+w+'][data-styled-version="5.3.3"]',O=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),R=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(w))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(w,"active"),r.setAttribute("data-styled-version","5.3.3");var o=B();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},_=function(){function e(e){var t=this.element=U(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(c+=e+",")})),r+=""+s+u+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),H=/(a)(d)/gi,W=function(e){return String.fromCharCode(e+(e>25?39:97))};function K(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=W(t%52)+n;return(W(t%52)+n).replace(H,"$1-$2")}var V=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},J=function(e){return V(5381,e)};function X(e){for(var t=0;t>>0);if(!t.hasNameForId(r,o)){var s=n(a,"."+o,void 0,r);t.insertRules(r,o,s)}i.push(o),this.staticRulesId=o}else{for(var u=this.rules.length,c=V(this.baseHash,n.hash),d="",l=0;l>>0);if(!t.hasNameForId(r,h)){var m=n(d,"."+h,void 0,r);t.insertRules(r,h,m)}i.push(h)}}return i.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function ne(e){var t,n,r,i,a=void 0===e?g:e,o=a.options,s=void 0===o?g:o,c=a.plugins,d=void 0===c?m:c,l=new u.a(s),p=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,o,s,u,c,d,l){switch(n){case 1:if(0===d&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===l?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),y=function(e,r,a){return 0===r&&-1!==te.indexOf(a[n.length])||a.match(i)?e:"."+t};function h(e,a,o,s){void 0===s&&(s="&");var u=e.replace(ee,""),c=a&&o?o+" "+a+" { "+u+" }":u;return t=s,n=a,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),l(o||!a?"":a,c)}return l.use([].concat(d,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,y))},f,function(e){if(-2===e){var t=p;return p=[],t}}])),h.hash=d.length?d.reduce((function(e,t){return t.name||x(15),V(e,t.name)}),5381).toString():"",h}var re=a.a.createContext(),ie=re.Consumer,ae=a.a.createContext(),oe=(ae.Consumer,new G),se=ne();function ue(){return Object(i.useContext)(re)||oe}function ce(){return Object(i.useContext)(ae)||se}function de(e){var t=Object(i.useState)(e.stylisPlugins),n=t[0],r=t[1],o=ue(),u=Object(i.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=Object(i.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(i.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),a.a.createElement(re.Provider,{value:u},a.a.createElement(ae.Provider,{value:c},e.children))}var le=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=se);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return x(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=se),this.name+e.hash},e}(),pe=/([A-Z])/,fe=/([A-Z])/g,ye=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function me(e){return pe.test(e)?e.replace(fe,he).replace(ye,"-ms-"):e}var ge=function(e){return null==e||!1===e||""===e};function Me(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,Ie=/(^-|-$)/g;function Ne(e){return e.replace(Ae,"-").replace(Ie,"")}var Te=function(e){return K(J(e)>>>0)};function xe(e){return"string"==typeof e&&!0}var De=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},je=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ee(e,t,n){var r=e[n];De(t)&&De(r)?Ce(r,t):e[n]=t}function Ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(i[n]=e[n]);return i}(t,["componentId"]),a=r&&r+"-"+(xe(e)?e:Ne(b(e)));return Oe(e,f({},i,{attrs:A,componentId:a}),n)},Object.defineProperty(N,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ce({},e.defaultProps,t):t}}),N.toString=function(){return"."+N.styledComponentId},o&&p()(N,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),N}var Re=function(e){return function e(t,n,i){if(void 0===i&&(i=g),!Object(r.isValidElementType)(n))return x(1,String(n));var a=function(){return t(n,i,ve.apply(void 0,arguments))};return a.withConfig=function(r){return e(t,n,f({},i,{},r))},a.attrs=function(r){return e(t,n,f({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},a}(Oe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Re[e]=Re(e)}));var Pe=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=X(e),G.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(Me(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&G.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?x(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return x(2);var n=((t={})[w]="",t["data-styled-version"]="5.3.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=B();return r&&(n.nonce=r),[a.a.createElement("style",f({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new G({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?x(2):a.a.createElement(de,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return x(3)},e}(),Qe=function(e){var t=a.a.forwardRef((function(t,n){var r=Object(i.useContext)(Se),o=e.defaultProps,s=we(t,r,o);return a.a.createElement(e,f({},t,{theme:s,ref:n}))}));return p()(t,e),t.displayName="WithTheme("+b(e)+")",t},Ye=function(){return Object(i.useContext)(Se)},Fe={StyleSheet:G,masterSheet:oe};t.default=Re}.call(this,n(11))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Provider=void 0;var r,i,a,o,s,u=n(0),c=u.__importStar(n(1)),d=u.__importDefault(n(18)),l=n(2),p=d.default.div(r||(r=u.__makeTemplateObject(["\n width: 45px;\n height: 45px;\n display: flex;\n border-radius: 50%;\n overflow: visible;\n box-shadow: none;\n justify-content: center;\n align-items: center;\n & img {\n width: 100%;\n height: 100%;\n }\n\n @media screen and (max-width: 768px) {\n width: 8.5vw;\n height: 8.5vw;\n }\n"],["\n width: 45px;\n height: 45px;\n display: flex;\n border-radius: 50%;\n overflow: visible;\n box-shadow: none;\n justify-content: center;\n align-items: center;\n & img {\n width: 100%;\n height: 100%;\n }\n\n @media screen and (max-width: 768px) {\n width: 8.5vw;\n height: 8.5vw;\n }\n"]))),f=d.default.div(i||(i=u.__makeTemplateObject(["\n width: 100%;\n font-size: 24px;\n font-weight: 700;\n margin-top: 0.5em;\n color: ",";\n @media screen and (max-width: 768px) {\n font-size: 5vw;\n }\n"],["\n width: 100%;\n font-size: 24px;\n font-weight: 700;\n margin-top: 0.5em;\n color: ",";\n @media screen and (max-width: 768px) {\n font-size: 5vw;\n }\n"])),(function(e){return e.themeColors.main})),y=d.default.div(a||(a=u.__makeTemplateObject(["\n width: 100%;\n font-size: 18px;\n margin: 0.333em 0;\n color: ",";\n @media screen and (max-width: 768px) {\n font-size: 4vw;\n }\n"],["\n width: 100%;\n font-size: 18px;\n margin: 0.333em 0;\n color: ",";\n @media screen and (max-width: 768px) {\n font-size: 4vw;\n }\n"])),(function(e){return e.themeColors.secondary})),h=d.default.div(o||(o=u.__makeTemplateObject(["\n transition: background-color 0.2s ease-in-out;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background-color: ",";\n border-radius: 12px;\n padding: 24px 16px;\n @media screen and (max-width: 768px) {\n padding: 1vw;\n }\n"],["\n transition: background-color 0.2s ease-in-out;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n background-color: ",";\n border-radius: 12px;\n padding: 24px 16px;\n @media screen and (max-width: 768px) {\n padding: 1vw;\n }\n"])),(function(e){return e.themeColors.background})),m=d.default.div(s||(s=u.__makeTemplateObject(["\n width: 100%;\n padding: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n cursor: pointer;\n border-radius: 0;\n border: ",";\n @media (hover: hover) {\n &:hover "," {\n background-color: ",";\n }\n }\n"],["\n width: 100%;\n padding: 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n cursor: pointer;\n border-radius: 0;\n border: ",";\n @media (hover: hover) {\n &:hover "," {\n background-color: ",";\n }\n }\n"])),(function(e){return"1px solid "+e.themeColors.border}),h,(function(e){return e.themeColors.hover}));t.Provider=function(e){var t=e.name,n=e.logo,r=e.description,i=e.themeColors,a=e.onClick,o=u.__rest(e,["name","logo","description","themeColors","onClick"]);return c.createElement(m,u.__assign({themeColors:i,className:l.PROVIDER_WRAPPER_CLASSNAME,onClick:a},o),c.createElement(h,{themeColors:i,className:l.PROVIDER_CONTAINER_CLASSNAME},c.createElement(p,{className:l.PROVIDER_ICON_CLASSNAME},c.createElement("img",{src:n,alt:t})),c.createElement(f,{themeColors:i,className:l.PROVIDER_NAME_CLASSNAME},t),c.createElement(y,{themeColors:i,className:l.PROVIDER_DESCRIPTION_CLASSNAME},r)))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);r.__exportStar(n(21),t),r.__exportStar(n(118),t)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventController=void 0;var r=function(){function e(){this._eventCallbacks=[]}return e.prototype.on=function(e){this._eventCallbacks.push(e)},e.prototype.off=function(e){e?e.callback?this._eventCallbacks=this._eventCallbacks.filter((function(t){return t.event!==e.event||t.callback!==e.callback})):this._eventCallbacks=this._eventCallbacks.filter((function(t){return t.event!==e.event})):this._eventCallbacks=[]},e.prototype.trigger=function(e,t){var n=this._eventCallbacks.filter((function(t){return t.event===e}));n&&n.length&&n.forEach((function(e){e.callback(t)}))},e}();t.EventController=r},function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;ur&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:o=o.replace(u,"-webkit-"+u)+";"+o;break;case 207:case 102:o=o.replace(u,"-webkit-"+(102s.charCodeAt(0)&&(s=s.trim()),s=[s],0f)&&(U=(Y=Y.replace(" ",":")).length),0C.length&&C.push(e)}function L(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case o:u=!0}}if(u)return r(i,t,""===n?"."+z(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c