@lovrabet/cli 1.3.4-beta.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/lib/ai-setup/AISetupUI.js +1 -1
  2. package/lib/ai-setup/config.js +1 -1
  3. package/lib/api/api-doc-ui.js +1 -1
  4. package/lib/api/api-doc.js +1 -1
  5. package/lib/api/api-pull-ui.js +1 -1
  6. package/lib/api/fetch-model-list.js +1 -1
  7. package/lib/api/generate-api-file.js +1 -1
  8. package/lib/api/main.js +1 -1
  9. package/lib/api/pull-silent.js +1 -1
  10. package/lib/app-menu/app-menu-sync-ui.js +1 -1
  11. package/lib/app-menu/create-menu.js +1 -1
  12. package/lib/app-menu/get-local-pages.js +1 -1
  13. package/lib/app-menu/get-online-menu-list.js +1 -1
  14. package/lib/app-menu/use-get-online-menu-list.js +1 -1
  15. package/lib/app-menu/utils.js +1 -1
  16. package/lib/app-menu/valid-url.js +1 -1
  17. package/lib/app-menu-update-cdn/current-content.js +1 -1
  18. package/lib/app-menu-update-cdn/input-cdn-asset.js +1 -1
  19. package/lib/app-menu-update-cdn/main.js +1 -1
  20. package/lib/app-menu-update-cdn/update-menu-cdn-url.js +1 -1
  21. package/lib/auth/auth-server-ui.js +1 -1
  22. package/lib/auth/auth-server.js +1 -1
  23. package/lib/auth/constant.js +1 -1
  24. package/lib/auth/get-cookie.js +1 -1
  25. package/lib/auth/is-session-valid.js +1 -1
  26. package/lib/auth/logout.js +1 -1
  27. package/lib/cli-flags.js +1 -1
  28. package/lib/cli.js +1 -1
  29. package/lib/cmd/build-watch.js +1 -1
  30. package/lib/cmd/build.js +1 -1
  31. package/lib/cmd/logs.js +1 -1
  32. package/lib/cmd/preview.js +1 -1
  33. package/lib/cmd/start-execa.js +1 -1
  34. package/lib/cmd/start.js +1 -1
  35. package/lib/config/config-help.js +1 -1
  36. package/lib/config/main.js +1 -1
  37. package/lib/constant/domain.js +1 -1
  38. package/lib/constant/env.js +1 -1
  39. package/lib/create-app/enhanced-guided-create.js +1 -1
  40. package/lib/create-app/format-elapsed.js +1 -1
  41. package/lib/create-app/main.js +1 -1
  42. package/lib/create-app/non-interactive.js +1 -1
  43. package/lib/create-app/task-finished.js +1 -1
  44. package/lib/create-app/task-loading.js +1 -1
  45. package/lib/create-app/task-running.js +1 -1
  46. package/lib/create-app/task-time.js +1 -1
  47. package/lib/create-app/use-copy-project-template.js +1 -1
  48. package/lib/create-app/use-format-code.js +1 -1
  49. package/lib/create-app/use-install-dependencies.js +1 -1
  50. package/lib/help.js +1 -1
  51. package/lib/i18n/I18nProvider.js +1 -1
  52. package/lib/i18n/hooks.js +1 -1
  53. package/lib/i18n/index.js +1 -1
  54. package/lib/i18n/locales/en-US.js +1 -1
  55. package/lib/i18n/locales/zh-CN.js +1 -1
  56. package/lib/init/main.js +1 -1
  57. package/lib/mcp/McpInstallUI.js +1 -1
  58. package/lib/mcp/claude.js +1 -1
  59. package/lib/mcp/cursor.js +1 -1
  60. package/lib/mcp/main.js +1 -1
  61. package/lib/mcp/mcp-install-non-interactive.js +1 -1
  62. package/lib/mcp/mcp-installer.js +1 -1
  63. package/lib/skills/SkillInstallUI.js +1 -1
  64. package/lib/skills/main.js +1 -1
  65. package/lib/skills/skill-install-non-interactive.js +1 -1
  66. package/lib/skills/skill-installer.js +1 -1
  67. package/lib/ui/IDESelector.js +1 -1
  68. package/lib/ui/useIDESelection.js +1 -1
  69. package/lib/utils/ai_config.js +1 -1
  70. package/lib/utils/cdn-config.js +1 -1
  71. package/lib/utils/check-sdk-version.js +1 -1
  72. package/lib/utils/cli-version-check.js +1 -1
  73. package/lib/utils/config.js +1 -1
  74. package/lib/utils/copy-directory.js +1 -1
  75. package/lib/utils/file-utils.js +1 -1
  76. package/lib/utils/guides-cdn.js +1 -1
  77. package/lib/utils/http-client.js +1 -1
  78. package/lib/utils/logger.js +1 -1
  79. package/lib/utils/rules-cdn.js +1 -1
  80. package/lib/utils/sleep.js +1 -1
  81. package/lib/utils/template-replacer.js +1 -1
  82. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4382e6,_0x41a406){const _0x1e6672=a42_0x13ca,_0x2a452a=_0x4382e6();while(!![]){try{const _0x367e01=parseInt(_0x1e6672(0x148))/0x1*(-parseInt(_0x1e6672(0x11c))/0x2)+parseInt(_0x1e6672(0x13a))/0x3+-parseInt(_0x1e6672(0x13e))/0x4+-parseInt(_0x1e6672(0x108))/0x5+-parseInt(_0x1e6672(0xf9))/0x6*(-parseInt(_0x1e6672(0x103))/0x7)+parseInt(_0x1e6672(0xea))/0x8*(-parseInt(_0x1e6672(0x107))/0x9)+parseInt(_0x1e6672(0x104))/0xa;if(_0x367e01===_0x41a406)break;else _0x2a452a['push'](_0x2a452a['shift']());}catch(_0x9eb704){_0x2a452a['push'](_0x2a452a['shift']());}}}(a42_0x5404,0xa824c));import{jsx as a42_0x3e17fe,Fragment as a42_0x14d4c5,jsxs as a42_0x279920}from'react/jsx-runtime';import a42_0x388122 from'path';import a42_0x5a8b4d from'fs';function a42_0x13ca(_0x1b38a4,_0x5a3964){_0x1b38a4=_0x1b38a4-0xe8;const _0x5404df=a42_0x5404();let _0x13ca66=_0x5404df[_0x1b38a4];return _0x13ca66;}import{fileURLToPath}from'node:url';import{Box,Text}from'ink';import{useEffect,useState}from'react';import{EnhancedGuidedCreate}from'./enhanced-guided-create.js';import{pullApiSilent}from'../api/pull-silent.js';import{readConfig}from'../utils/config.js';import{useCopyProjectTemplate}from'./use-copy-project-template.js';import{useInstallDependencies}from'./use-install-dependencies.js';import{useFormatCode}from'./use-format-code.js';function a42_0x5404(){const _0x514d49=['create.nextSteps.configureMcpAndSkill','env','warn','online','push','description','version','cursor','dirname','create.config.createdWithoutAppCode','API\x20配置拉取成功:\x20','Cursor','repeat','2.\x20','pullApi','CLI\x20版本检查','create.steps.apiPullError','create.validation.tooLong','existsSync','282861YKqMLa','create.packageJson.updated','accessSync','create.display.appCode','788112PYaORU','create.nextSteps.startProject','test','API\x20配置拉取失败:\x20','message','selectedIDEs','create.steps.mcpConfigComplete','join','yellow','1.0.0','157078xARMom','package.json','mcp-','create.validation.required','name','\x20Generated\x20by\x20lovrabet\x20cli\x20','stableVersion','resolve','create.validation.invalidChars','create.validation.noPermission','更新\x20package.json\x20name','log','.lovrabetrc','utf8','create.lovrabetSetup.inProgress','../..','green','create.steps.apiPullSuccess','\x20Skill\x20','doTask','1.\x20','toLocaleString','\x20&&\x20lovrabet\x20start','16rwGWkD','ide','appCode','map','create.display.projectName','create.lovrabetSetup.mcpCompleted','3.\x20','W_OK','gray','\x20\x20✗\x20Skill\x20','Claude\x20Code','mcp','error','readFileSync','lovrabet\x20mcp\x20install','154722Gitmva','has','cwd','create.config.createdWithAppCode','red','create.cleanup.inProgress','trim','配置应用AppCode失败','开始创建项目:\x20','manual','7VvAwxx','32327720ATezJH','lovrabet\x20api\x20pull\x20--appcode\x20[app-code]','清理项目目录失败:\x20','231615BkYUul','5795040pUWPML','constants','white','projectCode','status','lovrabet\x20skill\x20install','cd\x20','create.errors.createFailed','projectName','setLogPath','项目创建完成:\x20','aiSetup','lovrabet\x20api\x20pull','create','rmSync','writeFileSync','needsUpgrade','create.lovrabetSetup.skillCompleted','create.nextSteps.skill','cyan','16HfYxnX','parse','info','length','filter','then','\x20√\x20','success','create.nextSteps.pullApi','skill','stringify'];a42_0x5404=function(){return _0x514d49;};return a42_0x5404();}import{TaskFinished}from'./task-finished.js';import{TaskRunning}from'./task-running.js';import{logger}from'../utils/logger.js';import{configureMcp,copySharedSkills,installSkill,createSkillManifest}from'../ai-setup/config.js';import{MCP_IDES}from'../utils/ai_config.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import{useI18n}from'../i18n/hooks.js';export function CreateApp(_0x3a8256){const _0x5276b1=a42_0x13ca,{t:_0x4a27b5}=useI18n(),[_0xfbf30d,_0x14641e]=useState(![]),[_0xb5eee9,_0x5dc4f4]=useState(![]),[_0x5d6c9a,_0x4d5f22]=useState(null),[_0x4a3a21,_0x4de6dc]=useState(null),_0x5a8626=useCopyProjectTemplate(),_0x51c22e=useInstallDependencies(),_0x23605e=useFormatCode();useEffect(()=>{const _0x582f2e=a42_0x13ca;checkCliVersion()[_0x582f2e(0x121)](_0x5897fc=>{const _0x5537ff=_0x582f2e;_0x5897fc['needsUpgrade']&&(printCliUpgradeWarning(_0x5897fc),logger[_0x5537ff(0x11e)]('create',_0x5537ff(0x136),{'currentVersion':_0x5897fc['currentVersion'],'stableVersion':_0x5897fc[_0x5537ff(0x14e)],'needsUpgrade':_0x5897fc[_0x5537ff(0x118)]}));});},[]);const _0x4b94be=async _0x5b5d83=>{const _0x52282d=a42_0x13ca;if(!_0x5b5d83[_0x52282d(0x110)]||_0x5b5d83[_0x52282d(0x110)][_0x52282d(0xff)]()===''){console['error'](_0x4a27b5(_0x52282d(0x14b)));return;}const _0x145fab=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x145fab[_0x52282d(0x140)](_0x5b5d83[_0x52282d(0x110)])){console[_0x52282d(0xf6)](_0x4a27b5(_0x52282d(0x150)));return;}if(_0x5b5d83[_0x52282d(0x110)]['length']>0x64){console[_0x52282d(0xf6)](_0x4a27b5(_0x52282d(0x138)));return;}const _0x244e65=a42_0x388122[_0x52282d(0x14f)](process[_0x52282d(0xfb)](),_0x5b5d83[_0x52282d(0x110)]);if(a42_0x5a8b4d[_0x52282d(0x139)](_0x244e65)){console[_0x52282d(0xf6)](_0x4a27b5('create.validation.dirExists',{'name':_0x5b5d83['projectName']}));return;}try{const _0x3f80dd=a42_0x388122[_0x52282d(0x12f)](_0x244e65);a42_0x5a8b4d[_0x52282d(0x13c)](_0x3f80dd,a42_0x5a8b4d[_0x52282d(0x109)][_0x52282d(0xf1)]);}catch(_0x5d1a8f){console[_0x52282d(0xf6)](_0x4a27b5(_0x52282d(0x151)));return;}_0x4d5f22(_0x5b5d83),_0x14641e(!![]),logger[_0x52282d(0x111)](_0x244e65),logger['info'](_0x52282d(0x115),_0x52282d(0x101)+_0x5b5d83[_0x52282d(0x110)],{'projectDir':_0x244e65,'appCode':_0x5b5d83[_0x52282d(0xec)]});try{await _0x5a8626[_0x52282d(0x15b)](_0x5b5d83[_0x52282d(0x110)]),await _0x212535(_0x5b5d83[_0x52282d(0x110)]),await _0x51c22e[_0x52282d(0x15b)](_0x5b5d83[_0x52282d(0x110)]),await _0x23605e[_0x52282d(0x15b)](_0x5b5d83[_0x52282d(0x110)]),await _0x43ee74(_0x5b5d83[_0x52282d(0x110)],_0x5b5d83[_0x52282d(0xec)]||'',_0x5b5d83[_0x52282d(0x128)]);if(_0x5b5d83[_0x52282d(0x135)]&&_0x5b5d83['appCode']){console[_0x52282d(0x153)](_0x4a27b5('create.steps.pullingApi'));try{const _0x1c2989=await pullApiSilent(_0x5b5d83[_0x52282d(0xec)],undefined,_0x244e65,_0x5b5d83[_0x52282d(0x128)]);_0x1c2989?(console[_0x52282d(0x153)](_0x4a27b5(_0x52282d(0x159))),logger[_0x52282d(0x11e)](_0x52282d(0x115),_0x52282d(0x131)+_0x5b5d83[_0x52282d(0xec)])):(console[_0x52282d(0x153)](_0x4a27b5('create.steps.apiPullFailed')),logger['warn'](_0x52282d(0x115),_0x52282d(0x141)+_0x5b5d83[_0x52282d(0xec)]));}catch(_0x4bb5c2){console[_0x52282d(0x153)](_0x4a27b5(_0x52282d(0x137))),logger['warn'](_0x52282d(0x115),'API\x20配置拉取异常',{'error':_0x4bb5c2 instanceof Error?_0x4bb5c2[_0x52282d(0x142)]:String(_0x4bb5c2)});}}if(_0x5b5d83[_0x52282d(0x113)]&&_0x5b5d83[_0x52282d(0x143)]&&_0x5b5d83['selectedIDEs']['length']>0x0&&_0x5b5d83[_0x52282d(0xec)]){console[_0x52282d(0x153)](_0x4a27b5(_0x52282d(0x156)));const _0x49582c=[],_0x4074a6=[],_0x454b32=_0x5b5d83['selectedIDEs'][_0x52282d(0x120)](_0x1c21a9=>MCP_IDES[_0x52282d(0xfa)](_0x1c21a9)),_0x205bd9=_0x5b5d83['selectedIDEs'];for(const _0x543bf9 of _0x454b32){try{const _0x1451e0=await configureMcp(_0x543bf9,_0x244e65);_0x49582c[_0x52282d(0x12b)]({'ide':_0x543bf9==='cursor'?_0x52282d(0x132):_0x52282d(0xf4),'status':_0x1451e0[_0x52282d(0x10c)],'message':_0x1451e0[_0x52282d(0x142)]}),console[_0x52282d(0x153)]('\x20\x20'+(_0x1451e0[_0x52282d(0x10c)]===_0x52282d(0x123)?'✓':_0x1451e0[_0x52282d(0x10c)]===_0x52282d(0x102)?'⚠️':'✗')+'\x20MCP\x20'+_0x543bf9+':\x20'+_0x1451e0[_0x52282d(0x142)]);}catch(_0x1cbb33){_0x49582c[_0x52282d(0x12b)]({'ide':_0x543bf9===_0x52282d(0x12e)?_0x52282d(0x132):_0x52282d(0xf4),'status':'error','message':_0x1cbb33 instanceof Error?_0x1cbb33['message']:String(_0x1cbb33)}),console[_0x52282d(0x153)]('\x20\x20✗\x20MCP\x20'+_0x543bf9+':\x20'+(_0x1cbb33 instanceof Error?_0x1cbb33[_0x52282d(0x142)]:String(_0x1cbb33)));}}await copySharedSkills(_0x244e65);for(const _0x1e318d of _0x205bd9){try{const _0x5117a9=await installSkill(_0x1e318d,_0x244e65);_0x4074a6['push']({'ide':_0x5117a9['ide'],'status':_0x5117a9[_0x52282d(0x10c)],'message':_0x5117a9[_0x52282d(0x142)]}),console[_0x52282d(0x153)]('\x20\x20'+(_0x5117a9[_0x52282d(0x10c)]===_0x52282d(0x123)?'✓':'✗')+_0x52282d(0x15a)+_0x5117a9['ide']+':\x20'+_0x5117a9['message']);}catch(_0x254b2a){_0x4074a6['push']({'ide':_0x1e318d,'status':_0x52282d(0xf6),'message':_0x254b2a instanceof Error?_0x254b2a[_0x52282d(0x142)]:String(_0x254b2a)}),console[_0x52282d(0x153)](_0x52282d(0xf3)+_0x1e318d+':\x20'+(_0x254b2a instanceof Error?_0x254b2a[_0x52282d(0x142)]:String(_0x254b2a)));}}if(_0x4074a6['length']>0x0){const _0x49df7d=_0x4074a6['filter'](_0x5acba1=>_0x5acba1[_0x52282d(0x10c)]===_0x52282d(0x123))[_0x52282d(0xed)](_0x998c3a=>_0x998c3a[_0x52282d(0xeb)]);_0x49df7d[_0x52282d(0x11f)]>0x0&&createSkillManifest(_0x244e65,_0x49df7d);}_0x4de6dc({'mcp':_0x49582c,'skill':_0x4074a6}),console[_0x52282d(0x153)](_0x4a27b5(_0x52282d(0x144)));}logger['success'](_0x52282d(0x115),_0x52282d(0x112)+_0x5b5d83[_0x52282d(0x110)]),_0x5dc4f4(!![]),_0x14641e(![]);}catch(_0xdd2cfb){logger[_0x52282d(0xf6)]('create','项目创建失败:\x20'+_0x5b5d83[_0x52282d(0x110)],{'error':_0xdd2cfb instanceof Error?_0xdd2cfb[_0x52282d(0x142)]:String(_0xdd2cfb)});try{a42_0x5a8b4d[_0x52282d(0x139)](_0x244e65)&&(console[_0x52282d(0x153)](_0x4a27b5(_0x52282d(0xfe),{'dir':_0x244e65})),a42_0x5a8b4d[_0x52282d(0x116)](_0x244e65,{'recursive':!![],'force':!![]}));}catch(_0xa2559e){logger[_0x52282d(0x129)]('create',_0x52282d(0x106)+_0x244e65);}_0x14641e(![]),console['error'](_0x4a27b5(_0x52282d(0x10f),{'error':_0xdd2cfb instanceof Error?_0xdd2cfb['message']:String(_0xdd2cfb)}));}},_0x13f9aa=async _0x149825=>{const _0x24fd0a=a42_0x13ca;await _0x4b94be({'projectName':_0x149825,'env':_0x3a8256[_0x24fd0a(0x128)]});},_0x212535=async _0x259576=>{const _0x14614b=a42_0x13ca,_0x33373d=a42_0x388122[_0x14614b(0x14f)](process['cwd'](),_0x259576),_0x5b713f=a42_0x388122[_0x14614b(0x145)](_0x33373d,_0x14614b(0x149));try{console[_0x14614b(0x153)](_0x4a27b5('create.packageJson.updating'));const _0x2d7fe7=fileURLToPath(import.meta.url),_0x2d746c=a42_0x388122[_0x14614b(0x14f)](a42_0x388122['dirname'](_0x2d7fe7),_0x14614b(0x157)),_0x2b1a6b=a42_0x388122[_0x14614b(0x145)](_0x2d746c,_0x14614b(0x149));let _0x3f76e3=_0x14614b(0x147);try{const _0x22f40b=JSON[_0x14614b(0x11d)](a42_0x5a8b4d[_0x14614b(0xf7)](_0x2b1a6b,_0x14614b(0x155)));_0x3f76e3=_0x22f40b[_0x14614b(0x12d)]||_0x14614b(0x147);}catch(_0x25dcdb){}const _0x500069=a42_0x5a8b4d['readFileSync'](_0x5b713f,_0x14614b(0x155)),_0x4101e6=JSON[_0x14614b(0x11d)](_0x500069);_0x4101e6[_0x14614b(0x14c)]=_0x259576,_0x4101e6[_0x14614b(0x12c)]=_0x259576+_0x14614b(0x14d)+_0x3f76e3,a42_0x5a8b4d[_0x14614b(0x117)](_0x5b713f,JSON[_0x14614b(0x126)](_0x4101e6,null,0x2)+'\x0a',_0x14614b(0x155)),console[_0x14614b(0x153)](_0x4a27b5(_0x14614b(0x13b),{'name':_0x259576})),logger[_0x14614b(0x11e)](_0x14614b(0x115),_0x14614b(0x152));}catch(_0x52a964){logger[_0x14614b(0xf6)](_0x14614b(0x115),'更新\x20package.json\x20失败');throw _0x52a964;}},_0x43ee74=async(_0x4aa6b7,_0x11954b,_0x235fb3)=>{const _0x325155=a42_0x13ca,_0x3afdce=a42_0x388122[_0x325155(0x14f)](process[_0x325155(0xfb)](),_0x4aa6b7),_0x4c2edc=a42_0x388122[_0x325155(0x145)](_0x3afdce,_0x325155(0x154));try{_0x11954b?console[_0x325155(0x153)](_0x4a27b5('create.config.configuringAppCode',{'name':_0x4aa6b7,'appCode':_0x11954b})):console[_0x325155(0x153)](_0x4a27b5('create.config.creating',{'name':_0x4aa6b7}));const _0x549e53=fileURLToPath(import.meta.url),_0x2f483f=a42_0x388122[_0x325155(0x14f)](a42_0x388122[_0x325155(0x12f)](_0x549e53),_0x325155(0x157)),_0xd80e35=a42_0x388122[_0x325155(0x145)](_0x2f483f,_0x325155(0x149));let _0x2ece77=_0x325155(0x147);try{const _0x317395=JSON[_0x325155(0x11d)](a42_0x5a8b4d[_0x325155(0xf7)](_0xd80e35,_0x325155(0x155)));_0x2ece77=_0x317395['version']||'1.0.0';}catch(_0x2294ac){}const _0xbc8b99=readConfig(),_0x107209=typeof _0xbc8b99[_0x325155(0x128)]==='string'?_0xbc8b99[_0x325155(0x128)]:undefined,{app:_0x2f76a9,appcode:_0x515c71,..._0x1c2b84}=_0xbc8b99,_0x1c1834={..._0x1c2b84,'appcode':_0x11954b||'','env':_0x235fb3||_0x107209||_0x325155(0x12a),'createdAt':new Date()[_0x325155(0xe8)](),'version':_0x2ece77};a42_0x5a8b4d[_0x325155(0x117)](_0x4c2edc,JSON[_0x325155(0x126)](_0x1c1834,null,0x2),_0x325155(0x155)),_0x11954b?console[_0x325155(0x153)](_0x4a27b5(_0x325155(0xfc),{'appCode':_0x11954b})):console['log'](_0x4a27b5(_0x325155(0x130))),logger['info']('create','配置应用AppCode:\x20'+_0x11954b);}catch(_0x42e0e2){logger[_0x325155(0xf6)](_0x325155(0x115),_0x325155(0x100));}};useEffect(()=>{const _0x5f0e74=a42_0x13ca;_0x3a8256[_0x5f0e74(0x10b)]&&_0x13f9aa(_0x3a8256[_0x5f0e74(0x10b)]);},[_0x3a8256[_0x5276b1(0x10b)]]);if(!_0xfbf30d&&!_0xb5eee9&&!_0x3a8256[_0x5276b1(0x10b)])return a42_0x3e17fe(EnhancedGuidedCreate,{'onCreate':_0x4b94be,'env':_0x3a8256[_0x5276b1(0x128)]});if(_0xfbf30d)return a42_0x279920(a42_0x14d4c5,{'children':[a42_0x279920(Box,{'marginTop':0x1,'children':[a42_0x3e17fe(Box,{'width':'1'}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x158),'children':_0x5276b1(0x122)}),a42_0x3e17fe(Text,{'children':_0x4a27b5(_0x5276b1(0xee))}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x158),'children':_0x5d6c9a?.[_0x5276b1(0x110)]}),_0x5d6c9a?.[_0x5276b1(0xec)]&&a42_0x279920(a42_0x14d4c5,{'children':[a42_0x3e17fe(Text,{'children':_0x4a27b5('create.display.appCode')}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x11b),'children':_0x5d6c9a['appCode']})]})]}),a42_0x3e17fe(TaskRunning,{..._0x5a8626}),a42_0x3e17fe(TaskRunning,{..._0x51c22e}),a42_0x3e17fe(TaskRunning,{..._0x23605e})]});if(_0xb5eee9){const _0x7b60a=_0x4a3a21&&(_0x4a3a21[_0x5276b1(0xf5)][_0x5276b1(0x11f)]>0x0||_0x4a3a21['skill'][_0x5276b1(0x11f)]>0x0);return a42_0x279920(a42_0x14d4c5,{'children':[a42_0x279920(Box,{'marginTop':0x1,'children':[a42_0x3e17fe(Box,{'width':'1'}),a42_0x3e17fe(Text,{'color':'green','children':_0x5276b1(0x122)}),a42_0x3e17fe(Text,{'children':_0x4a27b5(_0x5276b1(0xee))}),a42_0x3e17fe(Text,{'color':'green','children':_0x5d6c9a?.[_0x5276b1(0x110)]}),_0x5d6c9a?.[_0x5276b1(0xec)]&&a42_0x279920(a42_0x14d4c5,{'children':[a42_0x3e17fe(Text,{'children':_0x4a27b5(_0x5276b1(0x13d))}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x11b),'children':_0x5d6c9a['appCode']})]})]}),a42_0x3e17fe(TaskFinished,{..._0x5a8626}),a42_0x3e17fe(TaskFinished,{..._0x51c22e}),a42_0x3e17fe(TaskFinished,{..._0x23605e}),a42_0x3e17fe(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a42_0x3e17fe(Text,{'color':_0x5276b1(0x158),'children':'─'[_0x5276b1(0x133)](0x3c)})}),_0x7b60a&&a42_0x279920(a42_0x14d4c5,{'children':[_0x4a3a21[_0x5276b1(0xf5)][_0x5276b1(0x11f)]>0x0&&a42_0x279920(a42_0x14d4c5,{'children':[a42_0x3e17fe(Box,{'marginTop':0x1,'children':a42_0x3e17fe(Text,{'color':'green','bold':!![],'children':_0x4a27b5(_0x5276b1(0xef))})}),_0x4a3a21[_0x5276b1(0xf5)][_0x5276b1(0xed)]((_0x37e575,_0x2f3c59)=>a42_0x3e17fe(Box,{'marginLeft':0x2,'children':a42_0x279920(Text,{'color':_0x37e575[_0x5276b1(0x10c)]===_0x5276b1(0x123)?_0x5276b1(0x10a):_0x37e575[_0x5276b1(0x10c)]===_0x5276b1(0x102)?_0x5276b1(0x146):_0x5276b1(0xfd),'children':[_0x37e575[_0x5276b1(0xeb)],':\x20',_0x37e575[_0x5276b1(0x142)]]})},_0x5276b1(0x14a)+_0x2f3c59))]}),_0x4a3a21[_0x5276b1(0x125)][_0x5276b1(0x11f)]>0x0&&a42_0x279920(a42_0x14d4c5,{'children':[a42_0x3e17fe(Box,{'marginTop':_0x4a3a21[_0x5276b1(0xf5)]['length']>0x0?0x1:0x0,'children':a42_0x3e17fe(Text,{'color':_0x5276b1(0x158),'bold':!![],'children':_0x4a27b5(_0x5276b1(0x119))})}),_0x4a3a21[_0x5276b1(0x125)]['map']((_0x2d322c,_0x5576fe)=>a42_0x3e17fe(Box,{'marginLeft':0x2,'children':a42_0x279920(Text,{'color':_0x2d322c[_0x5276b1(0x10c)]===_0x5276b1(0x123)?_0x5276b1(0x10a):_0x5276b1(0xfd),'children':[_0x2d322c['ide'],':\x20',_0x2d322c[_0x5276b1(0x142)]]})},'skill-'+_0x5576fe))]}),a42_0x3e17fe(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a42_0x3e17fe(Text,{'color':'green','children':'─'[_0x5276b1(0x133)](0x3c)})})]}),a42_0x3e17fe(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a42_0x3e17fe(Text,{'color':_0x5276b1(0x11b),'bold':!![],'children':_0x4a27b5('create.results.nextSteps')})}),a42_0x279920(Box,{'marginLeft':0x2,'flexDirection':'column','children':[_0x7b60a?a42_0x279920(a42_0x14d4c5,{'children':[a42_0x279920(Box,{'children':[a42_0x3e17fe(Text,{'color':_0x5276b1(0x158),'children':_0x5276b1(0x15c)}),a42_0x3e17fe(Text,{'color':'white','children':_0x4a27b5('create.nextSteps.startProject')}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x11b),'bold':!![],'children':_0x5276b1(0x10e)+_0x5d6c9a?.[_0x5276b1(0x110)]+_0x5276b1(0xe9)})]}),_0x5d6c9a?.[_0x5276b1(0xec)]&&!_0x5d6c9a?.[_0x5276b1(0x135)]&&a42_0x279920(Box,{'children':[a42_0x3e17fe(Text,{'color':_0x5276b1(0x146),'children':_0x5276b1(0x134)}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x10a),'children':_0x4a27b5(_0x5276b1(0x124))}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x11b),'bold':!![],'children':_0x5276b1(0x114)})]})]}):a42_0x279920(a42_0x14d4c5,{'children':[a42_0x3e17fe(Box,{'children':a42_0x3e17fe(Text,{'color':'yellow','bold':!![],'children':_0x4a27b5(_0x5276b1(0x127))})}),a42_0x279920(Box,{'marginLeft':0x2,'marginTop':0x1,'children':[a42_0x3e17fe(Text,{'color':_0x5276b1(0x10a),'children':_0x4a27b5(_0x5276b1(0x11a))}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x11b),'bold':!![],'children':_0x5276b1(0x10d)})]}),a42_0x279920(Box,{'marginLeft':0x2,'children':[a42_0x3e17fe(Text,{'color':_0x5276b1(0x10a),'children':_0x4a27b5('create.nextSteps.mcp')}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x11b),'bold':!![],'children':_0x5276b1(0xf8)})]}),a42_0x279920(Box,{'marginTop':0x1,'children':[a42_0x3e17fe(Text,{'color':_0x5276b1(0x158),'children':'2.\x20'}),a42_0x3e17fe(Text,{'color':'white','children':_0x4a27b5(_0x5276b1(0x13f))}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x11b),'bold':!![],'children':_0x5276b1(0x10e)+_0x5d6c9a?.['projectName']+_0x5276b1(0xe9)})]}),_0x5d6c9a?.['appCode']&&!_0x5d6c9a?.[_0x5276b1(0x135)]&&a42_0x279920(Box,{'children':[a42_0x3e17fe(Text,{'color':'yellow','children':_0x5276b1(0xf0)}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x10a),'children':_0x4a27b5('create.nextSteps.pullApi')}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x11b),'bold':!![],'children':_0x5276b1(0x114)})]})]}),!_0x5d6c9a?.[_0x5276b1(0xec)]&&a42_0x279920(a42_0x14d4c5,{'children':[a42_0x279920(Box,{'children':[a42_0x3e17fe(Text,{'color':_0x5276b1(0xf2),'children':_0x5276b1(0x134)}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x10a),'children':_0x4a27b5('create.nextSteps.configAppCode')}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x11b),'bold':!![],'children':'lovrabet\x20config\x20set\x20appcode\x20[app-code]'})]}),a42_0x279920(Box,{'children':[a42_0x3e17fe(Text,{'color':'gray','children':_0x5276b1(0xf0)}),a42_0x3e17fe(Text,{'color':_0x5276b1(0x10a),'children':_0x4a27b5(_0x5276b1(0x124))}),a42_0x3e17fe(Text,{'color':'cyan','bold':!![],'children':_0x5276b1(0x105)})]})]})]}),a42_0x3e17fe(Box,{'marginTop':0x1,'children':a42_0x3e17fe(Text,{'color':_0x5276b1(0x158),'children':'─'[_0x5276b1(0x133)](0x3c)})})]});}return null;}
1
+ (function(_0x321138,_0x6555a7){const _0x2df851=a42_0x3cb6,_0x174d07=_0x321138();while(!![]){try{const _0x3146f3=parseInt(_0x2df851(0x1b5))/0x1*(-parseInt(_0x2df851(0x162))/0x2)+-parseInt(_0x2df851(0x1b4))/0x3+-parseInt(_0x2df851(0x1a1))/0x4+-parseInt(_0x2df851(0x14d))/0x5*(parseInt(_0x2df851(0x1b2))/0x6)+parseInt(_0x2df851(0x1b7))/0x7+-parseInt(_0x2df851(0x16e))/0x8+parseInt(_0x2df851(0x19e))/0x9;if(_0x3146f3===_0x6555a7)break;else _0x174d07['push'](_0x174d07['shift']());}catch(_0x19be98){_0x174d07['push'](_0x174d07['shift']());}}}(a42_0x45dd,0xf38f6));import{jsx as a42_0x1ae0cc,Fragment as a42_0x1b0a09,jsxs as a42_0x41021b}from'react/jsx-runtime';import a42_0x1200e4 from'path';import a42_0x33fcb1 from'fs';import{fileURLToPath}from'node:url';import{Box,Text}from'ink';import{useEffect,useState}from'react';import{EnhancedGuidedCreate}from'./enhanced-guided-create.js';import{pullApiSilent}from'../api/pull-silent.js';function a42_0x3cb6(_0x5bd4b3,_0x234ec0){_0x5bd4b3=_0x5bd4b3-0x144;const _0x45dda0=a42_0x45dd();let _0x3cb6f0=_0x45dda0[_0x5bd4b3];return _0x3cb6f0;}import{readConfig}from'../utils/config.js';import{useCopyProjectTemplate}from'./use-copy-project-template.js';import{useInstallDependencies}from'./use-install-dependencies.js';import{useFormatCode}from'./use-format-code.js';import{TaskFinished}from'./task-finished.js';import{TaskRunning}from'./task-running.js';import{logger}from'../utils/logger.js';import{configureMcp,copySharedSkills,installSkill,createSkillManifest}from'../ai-setup/config.js';import{MCP_IDES}from'../utils/ai_config.js';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import{useI18n}from'../i18n/hooks.js';function a42_0x45dd(){const _0x80cd13=['create.nextSteps.skill','.lovrabetrc','needsUpgrade','has','create.packageJson.updating','white','create.display.appCode','create.lovrabetSetup.mcpCompleted','writeFileSync','create.packageJson.updated','cd\x20','清理项目目录失败:\x20','then','doTask','utf8','map','env','currentVersion','20078PwBhca','constants','2.\x20','create','gray','create.nextSteps.pullApi','parse','create.results.nextSteps','message','\x20√\x20','../..','1.\x20','9495024gmphMv','setLogPath','cwd','create.validation.noPermission','项目创建失败:\x20','toLocaleString','yellow','create.config.createdWithAppCode','info','version','pullApi','\x20Skill\x20','red','create.errors.createFailed','error','resolve','string','existsSync','lovrabet\x20mcp\x20install','accessSync','trim','create.validation.required','push','rmSync','ide','\x20MCP\x20','Cursor','projectName','projectCode','create.steps.apiPullError','create.lovrabetSetup.skillCompleted','lovrabet\x20api\x20pull\x20--appcode\x20[app-code]','skill','mcp-','API\x20配置拉取成功:\x20','create.config.creating','warn','lovrabet\x20skill\x20install','column','Claude\x20Code','create.steps.mcpConfigComplete','filter','create.steps.apiPullFailed','3.\x20','create.validation.tooLong','项目创建完成:\x20','create.nextSteps.startProject','success','45238428NonuJO','stableVersion','length','3086060cAgzWJ','create.nextSteps.mcp','join','API\x20配置拉取异常','1.0.0','log','manual','description','selectedIDEs','配置应用AppCode:\x20','dirname','更新\x20package.json\x20name','配置应用AppCode失败','cursor','green','package.json','test','23514MKRsPi','cyan','4607982rWmwQS','60fHTxhK','appCode','502432OVKLDG','stringify','\x20\x20✗\x20Skill\x20','aiSetup','\x20\x20✗\x20MCP\x20','create.nextSteps.configureMcpAndSkill','CLI\x20版本检查','\x20&&\x20lovrabet\x20start','mcp','status','readFileSync','lovrabet\x20config\x20set\x20appcode\x20[app-code]','API\x20配置拉取失败:\x20','lovrabet\x20api\x20pull','repeat','5PFGodN','W_OK','create.display.projectName'];a42_0x45dd=function(){return _0x80cd13;};return a42_0x45dd();}export function CreateApp(_0x489e03){const _0x26f9cf=a42_0x3cb6,{t:_0x137f52}=useI18n(),[_0x3d9bd5,_0x5a1ea7]=useState(![]),[_0x508208,_0x750ace]=useState(![]),[_0x14eed0,_0x50a470]=useState(null),[_0x103c30,_0x54d0c5]=useState(null),_0x28f7cb=useCopyProjectTemplate(),_0xd02066=useInstallDependencies(),_0xe55902=useFormatCode();useEffect(()=>{const _0x4ee0b2=a42_0x3cb6;checkCliVersion()[_0x4ee0b2(0x15c)](_0xbacd9f=>{const _0x33a9f7=_0x4ee0b2;_0xbacd9f[_0x33a9f7(0x152)]&&(printCliUpgradeWarning(_0xbacd9f),logger[_0x33a9f7(0x176)]('create',_0x33a9f7(0x144),{'currentVersion':_0xbacd9f[_0x33a9f7(0x161)],'stableVersion':_0xbacd9f[_0x33a9f7(0x19f)],'needsUpgrade':_0xbacd9f[_0x33a9f7(0x152)]}));});},[]);const _0x9fade6=async _0x12390e=>{const _0x4026d2=a42_0x3cb6;if(!_0x12390e[_0x4026d2(0x189)]||_0x12390e['projectName'][_0x4026d2(0x182)]()===''){console[_0x4026d2(0x17c)](_0x137f52(_0x4026d2(0x183)));return;}const _0x9bd003=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x9bd003[_0x4026d2(0x1b1)](_0x12390e[_0x4026d2(0x189)])){console['error'](_0x137f52('create.validation.invalidChars'));return;}if(_0x12390e['projectName']['length']>0x64){console[_0x4026d2(0x17c)](_0x137f52(_0x4026d2(0x19a)));return;}const _0x4ab81=a42_0x1200e4[_0x4026d2(0x17d)](process['cwd'](),_0x12390e[_0x4026d2(0x189)]);if(a42_0x33fcb1[_0x4026d2(0x17f)](_0x4ab81)){console['error'](_0x137f52('create.validation.dirExists',{'name':_0x12390e[_0x4026d2(0x189)]}));return;}try{const _0x181943=a42_0x1200e4[_0x4026d2(0x1ab)](_0x4ab81);a42_0x33fcb1[_0x4026d2(0x181)](_0x181943,a42_0x33fcb1[_0x4026d2(0x163)][_0x4026d2(0x14e)]);}catch(_0x34e624){console[_0x4026d2(0x17c)](_0x137f52(_0x4026d2(0x171)));return;}_0x50a470(_0x12390e),_0x5a1ea7(!![]),logger[_0x4026d2(0x16f)](_0x4ab81),logger['info'](_0x4026d2(0x165),'开始创建项目:\x20'+_0x12390e[_0x4026d2(0x189)],{'projectDir':_0x4ab81,'appCode':_0x12390e[_0x4026d2(0x1b6)]});try{await _0x28f7cb[_0x4026d2(0x15d)](_0x12390e[_0x4026d2(0x189)]),await _0x22561b(_0x12390e[_0x4026d2(0x189)]),await _0xd02066[_0x4026d2(0x15d)](_0x12390e[_0x4026d2(0x189)]),await _0xe55902[_0x4026d2(0x15d)](_0x12390e[_0x4026d2(0x189)]),await _0x1649a(_0x12390e[_0x4026d2(0x189)],_0x12390e[_0x4026d2(0x1b6)]||'',_0x12390e[_0x4026d2(0x160)]);if(_0x12390e[_0x4026d2(0x178)]&&_0x12390e['appCode']){console['log'](_0x137f52('create.steps.pullingApi'));try{const _0x534e33=await pullApiSilent(_0x12390e[_0x4026d2(0x1b6)],undefined,_0x4ab81,_0x12390e['env']);_0x534e33?(console[_0x4026d2(0x1a6)](_0x137f52('create.steps.apiPullSuccess')),logger[_0x4026d2(0x176)](_0x4026d2(0x165),_0x4026d2(0x190)+_0x12390e[_0x4026d2(0x1b6)])):(console[_0x4026d2(0x1a6)](_0x137f52(_0x4026d2(0x198))),logger[_0x4026d2(0x192)](_0x4026d2(0x165),_0x4026d2(0x14a)+_0x12390e[_0x4026d2(0x1b6)]));}catch(_0xbc1240){console[_0x4026d2(0x1a6)](_0x137f52(_0x4026d2(0x18b))),logger[_0x4026d2(0x192)](_0x4026d2(0x165),_0x4026d2(0x1a4),{'error':_0xbc1240 instanceof Error?_0xbc1240[_0x4026d2(0x16a)]:String(_0xbc1240)});}}if(_0x12390e[_0x4026d2(0x1ba)]&&_0x12390e['selectedIDEs']&&_0x12390e[_0x4026d2(0x1a9)][_0x4026d2(0x1a0)]>0x0&&_0x12390e['appCode']){console[_0x4026d2(0x1a6)](_0x137f52('create.lovrabetSetup.inProgress'));const _0x538524=[],_0x12db85=[],_0x48f20b=_0x12390e['selectedIDEs'][_0x4026d2(0x197)](_0x14c7e4=>MCP_IDES[_0x4026d2(0x153)](_0x14c7e4)),_0x37343b=_0x12390e[_0x4026d2(0x1a9)];for(const _0x5521ca of _0x48f20b){try{const _0x8ae11b=await configureMcp(_0x5521ca,_0x4ab81);_0x538524[_0x4026d2(0x184)]({'ide':_0x5521ca==='cursor'?_0x4026d2(0x188):_0x4026d2(0x195),'status':_0x8ae11b[_0x4026d2(0x147)],'message':_0x8ae11b[_0x4026d2(0x16a)]}),console[_0x4026d2(0x1a6)]('\x20\x20'+(_0x8ae11b[_0x4026d2(0x147)]===_0x4026d2(0x19d)?'✓':_0x8ae11b['status']===_0x4026d2(0x1a7)?'⚠️':'✗')+_0x4026d2(0x187)+_0x5521ca+':\x20'+_0x8ae11b[_0x4026d2(0x16a)]);}catch(_0x1a897c){_0x538524[_0x4026d2(0x184)]({'ide':_0x5521ca===_0x4026d2(0x1ae)?'Cursor':'Claude\x20Code','status':_0x4026d2(0x17c),'message':_0x1a897c instanceof Error?_0x1a897c[_0x4026d2(0x16a)]:String(_0x1a897c)}),console[_0x4026d2(0x1a6)](_0x4026d2(0x1bb)+_0x5521ca+':\x20'+(_0x1a897c instanceof Error?_0x1a897c[_0x4026d2(0x16a)]:String(_0x1a897c)));}}await copySharedSkills(_0x4ab81);for(const _0x30ca89 of _0x37343b){try{const _0x4e9c75=await installSkill(_0x30ca89,_0x4ab81);_0x12db85[_0x4026d2(0x184)]({'ide':_0x4e9c75[_0x4026d2(0x186)],'status':_0x4e9c75[_0x4026d2(0x147)],'message':_0x4e9c75[_0x4026d2(0x16a)]}),console[_0x4026d2(0x1a6)]('\x20\x20'+(_0x4e9c75[_0x4026d2(0x147)]===_0x4026d2(0x19d)?'✓':'✗')+_0x4026d2(0x179)+_0x4e9c75['ide']+':\x20'+_0x4e9c75[_0x4026d2(0x16a)]);}catch(_0x440e46){_0x12db85[_0x4026d2(0x184)]({'ide':_0x30ca89,'status':'error','message':_0x440e46 instanceof Error?_0x440e46[_0x4026d2(0x16a)]:String(_0x440e46)}),console[_0x4026d2(0x1a6)](_0x4026d2(0x1b9)+_0x30ca89+':\x20'+(_0x440e46 instanceof Error?_0x440e46[_0x4026d2(0x16a)]:String(_0x440e46)));}}if(_0x12db85['length']>0x0){const _0x9db4b7=_0x12db85[_0x4026d2(0x197)](_0x1081ba=>_0x1081ba[_0x4026d2(0x147)]===_0x4026d2(0x19d))[_0x4026d2(0x15f)](_0x3f471f=>_0x3f471f[_0x4026d2(0x186)]);_0x9db4b7[_0x4026d2(0x1a0)]>0x0&&createSkillManifest(_0x4ab81,_0x9db4b7);}_0x54d0c5({'mcp':_0x538524,'skill':_0x12db85}),console['log'](_0x137f52(_0x4026d2(0x196)));}logger[_0x4026d2(0x19d)](_0x4026d2(0x165),_0x4026d2(0x19b)+_0x12390e['projectName']),_0x750ace(!![]),_0x5a1ea7(![]);}catch(_0x56e2e2){logger[_0x4026d2(0x17c)](_0x4026d2(0x165),_0x4026d2(0x172)+_0x12390e[_0x4026d2(0x189)],{'error':_0x56e2e2 instanceof Error?_0x56e2e2['message']:String(_0x56e2e2)});try{a42_0x33fcb1[_0x4026d2(0x17f)](_0x4ab81)&&(console[_0x4026d2(0x1a6)](_0x137f52('create.cleanup.inProgress',{'dir':_0x4ab81})),a42_0x33fcb1[_0x4026d2(0x185)](_0x4ab81,{'recursive':!![],'force':!![]}));}catch(_0x2dbc36){logger['warn']('create',_0x4026d2(0x15b)+_0x4ab81);}_0x5a1ea7(![]),console[_0x4026d2(0x17c)](_0x137f52(_0x4026d2(0x17b),{'error':_0x56e2e2 instanceof Error?_0x56e2e2[_0x4026d2(0x16a)]:String(_0x56e2e2)}));}},_0x5976cb=async _0x26b2d2=>{const _0x1fe30d=a42_0x3cb6;await _0x9fade6({'projectName':_0x26b2d2,'env':_0x489e03[_0x1fe30d(0x160)]});},_0x22561b=async _0x2d7132=>{const _0x2046c2=a42_0x3cb6,_0x3dc4e3=a42_0x1200e4[_0x2046c2(0x17d)](process[_0x2046c2(0x170)](),_0x2d7132),_0x554a5b=a42_0x1200e4[_0x2046c2(0x1a3)](_0x3dc4e3,'package.json');try{console[_0x2046c2(0x1a6)](_0x137f52(_0x2046c2(0x154)));const _0x106d5b=fileURLToPath(import.meta.url),_0x26e5c1=a42_0x1200e4[_0x2046c2(0x17d)](a42_0x1200e4[_0x2046c2(0x1ab)](_0x106d5b),'../..'),_0x33343f=a42_0x1200e4[_0x2046c2(0x1a3)](_0x26e5c1,_0x2046c2(0x1b0));let _0x39bf86=_0x2046c2(0x1a5);try{const _0x4ed4ca=JSON[_0x2046c2(0x168)](a42_0x33fcb1['readFileSync'](_0x33343f,_0x2046c2(0x15e)));_0x39bf86=_0x4ed4ca['version']||_0x2046c2(0x1a5);}catch(_0x2b52db){}const _0x1b86c4=a42_0x33fcb1[_0x2046c2(0x148)](_0x554a5b,_0x2046c2(0x15e)),_0x4df5b0=JSON[_0x2046c2(0x168)](_0x1b86c4);_0x4df5b0['name']=_0x2d7132,_0x4df5b0[_0x2046c2(0x1a8)]=_0x2d7132+'\x20Generated\x20by\x20lovrabet\x20cli\x20'+_0x39bf86,a42_0x33fcb1['writeFileSync'](_0x554a5b,JSON[_0x2046c2(0x1b8)](_0x4df5b0,null,0x2)+'\x0a',_0x2046c2(0x15e)),console[_0x2046c2(0x1a6)](_0x137f52(_0x2046c2(0x159),{'name':_0x2d7132})),logger['info']('create',_0x2046c2(0x1ac));}catch(_0x22930e){logger[_0x2046c2(0x17c)](_0x2046c2(0x165),'更新\x20package.json\x20失败');throw _0x22930e;}},_0x1649a=async(_0x1baf69,_0x46a54a,_0x2b1831)=>{const _0x53129a=a42_0x3cb6,_0x26755c=a42_0x1200e4[_0x53129a(0x17d)](process[_0x53129a(0x170)](),_0x1baf69),_0x1bbbf6=a42_0x1200e4[_0x53129a(0x1a3)](_0x26755c,_0x53129a(0x151));try{_0x46a54a?console[_0x53129a(0x1a6)](_0x137f52('create.config.configuringAppCode',{'name':_0x1baf69,'appCode':_0x46a54a})):console[_0x53129a(0x1a6)](_0x137f52(_0x53129a(0x191),{'name':_0x1baf69}));const _0x5525ea=fileURLToPath(import.meta.url),_0x16c557=a42_0x1200e4[_0x53129a(0x17d)](a42_0x1200e4['dirname'](_0x5525ea),_0x53129a(0x16c)),_0x54c7b3=a42_0x1200e4[_0x53129a(0x1a3)](_0x16c557,'package.json');let _0x3c1a71=_0x53129a(0x1a5);try{const _0x34950e=JSON[_0x53129a(0x168)](a42_0x33fcb1[_0x53129a(0x148)](_0x54c7b3,_0x53129a(0x15e)));_0x3c1a71=_0x34950e[_0x53129a(0x177)]||_0x53129a(0x1a5);}catch(_0x1ab0b6){}const _0x1ec75c=readConfig(),_0x5d737c=typeof _0x1ec75c[_0x53129a(0x160)]===_0x53129a(0x17e)?_0x1ec75c[_0x53129a(0x160)]:undefined,{app:_0x132702,appcode:_0x52ec71,..._0x56e583}=_0x1ec75c,_0x2873a6={..._0x56e583,'appcode':_0x46a54a||'','env':_0x2b1831||_0x5d737c||'online','createdAt':new Date()[_0x53129a(0x173)](),'version':_0x3c1a71};a42_0x33fcb1[_0x53129a(0x158)](_0x1bbbf6,JSON[_0x53129a(0x1b8)](_0x2873a6,null,0x2),'utf8'),_0x46a54a?console[_0x53129a(0x1a6)](_0x137f52(_0x53129a(0x175),{'appCode':_0x46a54a})):console[_0x53129a(0x1a6)](_0x137f52('create.config.createdWithoutAppCode')),logger['info'](_0x53129a(0x165),_0x53129a(0x1aa)+_0x46a54a);}catch(_0x18b4c8){logger[_0x53129a(0x17c)](_0x53129a(0x165),_0x53129a(0x1ad));}};useEffect(()=>{const _0x453731=a42_0x3cb6;_0x489e03[_0x453731(0x18a)]&&_0x5976cb(_0x489e03[_0x453731(0x18a)]);},[_0x489e03[_0x26f9cf(0x18a)]]);if(!_0x3d9bd5&&!_0x508208&&!_0x489e03['projectCode'])return a42_0x1ae0cc(EnhancedGuidedCreate,{'onCreate':_0x9fade6,'env':_0x489e03[_0x26f9cf(0x160)]});if(_0x3d9bd5)return a42_0x41021b(a42_0x1b0a09,{'children':[a42_0x41021b(Box,{'marginTop':0x1,'children':[a42_0x1ae0cc(Box,{'width':'1'}),a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1af),'children':'\x20√\x20'}),a42_0x1ae0cc(Text,{'children':_0x137f52(_0x26f9cf(0x14f))}),a42_0x1ae0cc(Text,{'color':'green','children':_0x14eed0?.[_0x26f9cf(0x189)]}),_0x14eed0?.[_0x26f9cf(0x1b6)]&&a42_0x41021b(a42_0x1b0a09,{'children':[a42_0x1ae0cc(Text,{'children':_0x137f52(_0x26f9cf(0x156))}),a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1b3),'children':_0x14eed0['appCode']})]})]}),a42_0x1ae0cc(TaskRunning,{..._0x28f7cb}),a42_0x1ae0cc(TaskRunning,{..._0xd02066}),a42_0x1ae0cc(TaskRunning,{..._0xe55902})]});if(_0x508208){const _0x3e1731=_0x103c30&&(_0x103c30[_0x26f9cf(0x146)][_0x26f9cf(0x1a0)]>0x0||_0x103c30[_0x26f9cf(0x18e)]['length']>0x0);return a42_0x41021b(a42_0x1b0a09,{'children':[a42_0x41021b(Box,{'marginTop':0x1,'children':[a42_0x1ae0cc(Box,{'width':'1'}),a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1af),'children':_0x26f9cf(0x16b)}),a42_0x1ae0cc(Text,{'children':_0x137f52(_0x26f9cf(0x14f))}),a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1af),'children':_0x14eed0?.[_0x26f9cf(0x189)]}),_0x14eed0?.[_0x26f9cf(0x1b6)]&&a42_0x41021b(a42_0x1b0a09,{'children':[a42_0x1ae0cc(Text,{'children':_0x137f52(_0x26f9cf(0x156))}),a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1b3),'children':_0x14eed0['appCode']})]})]}),a42_0x1ae0cc(TaskFinished,{..._0x28f7cb}),a42_0x1ae0cc(TaskFinished,{..._0xd02066}),a42_0x1ae0cc(TaskFinished,{..._0xe55902}),a42_0x1ae0cc(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1af),'children':'─'[_0x26f9cf(0x14c)](0x3c)})}),_0x3e1731&&a42_0x41021b(a42_0x1b0a09,{'children':[_0x103c30[_0x26f9cf(0x146)]['length']>0x0&&a42_0x41021b(a42_0x1b0a09,{'children':[a42_0x1ae0cc(Box,{'marginTop':0x1,'children':a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1af),'bold':!![],'children':_0x137f52(_0x26f9cf(0x157))})}),_0x103c30[_0x26f9cf(0x146)][_0x26f9cf(0x15f)]((_0x24405f,_0x5d4148)=>a42_0x1ae0cc(Box,{'marginLeft':0x2,'children':a42_0x41021b(Text,{'color':_0x24405f[_0x26f9cf(0x147)]===_0x26f9cf(0x19d)?_0x26f9cf(0x155):_0x24405f['status']===_0x26f9cf(0x1a7)?_0x26f9cf(0x174):_0x26f9cf(0x17a),'children':[_0x24405f[_0x26f9cf(0x186)],':\x20',_0x24405f[_0x26f9cf(0x16a)]]})},_0x26f9cf(0x18f)+_0x5d4148))]}),_0x103c30[_0x26f9cf(0x18e)][_0x26f9cf(0x1a0)]>0x0&&a42_0x41021b(a42_0x1b0a09,{'children':[a42_0x1ae0cc(Box,{'marginTop':_0x103c30[_0x26f9cf(0x146)][_0x26f9cf(0x1a0)]>0x0?0x1:0x0,'children':a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1af),'bold':!![],'children':_0x137f52(_0x26f9cf(0x18c))})}),_0x103c30[_0x26f9cf(0x18e)][_0x26f9cf(0x15f)]((_0x2683dc,_0x5ee25d)=>a42_0x1ae0cc(Box,{'marginLeft':0x2,'children':a42_0x41021b(Text,{'color':_0x2683dc[_0x26f9cf(0x147)]===_0x26f9cf(0x19d)?_0x26f9cf(0x155):_0x26f9cf(0x17a),'children':[_0x2683dc[_0x26f9cf(0x186)],':\x20',_0x2683dc[_0x26f9cf(0x16a)]]})},'skill-'+_0x5ee25d))]}),a42_0x1ae0cc(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1af),'children':'─'['repeat'](0x3c)})})]}),a42_0x1ae0cc(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1b3),'bold':!![],'children':_0x137f52(_0x26f9cf(0x169))})}),a42_0x41021b(Box,{'marginLeft':0x2,'flexDirection':_0x26f9cf(0x194),'children':[_0x3e1731?a42_0x41021b(a42_0x1b0a09,{'children':[a42_0x41021b(Box,{'children':[a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1af),'children':_0x26f9cf(0x16d)}),a42_0x1ae0cc(Text,{'color':'white','children':_0x137f52(_0x26f9cf(0x19c))}),a42_0x1ae0cc(Text,{'color':'cyan','bold':!![],'children':_0x26f9cf(0x15a)+_0x14eed0?.[_0x26f9cf(0x189)]+_0x26f9cf(0x145)})]}),_0x14eed0?.[_0x26f9cf(0x1b6)]&&!_0x14eed0?.['pullApi']&&a42_0x41021b(Box,{'children':[a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x174),'children':_0x26f9cf(0x164)}),a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x155),'children':_0x137f52('create.nextSteps.pullApi')}),a42_0x1ae0cc(Text,{'color':'cyan','bold':!![],'children':_0x26f9cf(0x14b)})]})]}):a42_0x41021b(a42_0x1b0a09,{'children':[a42_0x1ae0cc(Box,{'children':a42_0x1ae0cc(Text,{'color':'yellow','bold':!![],'children':_0x137f52(_0x26f9cf(0x1bc))})}),a42_0x41021b(Box,{'marginLeft':0x2,'marginTop':0x1,'children':[a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x155),'children':_0x137f52(_0x26f9cf(0x150))}),a42_0x1ae0cc(Text,{'color':'cyan','bold':!![],'children':_0x26f9cf(0x193)})]}),a42_0x41021b(Box,{'marginLeft':0x2,'children':[a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x155),'children':_0x137f52(_0x26f9cf(0x1a2))}),a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1b3),'bold':!![],'children':_0x26f9cf(0x180)})]}),a42_0x41021b(Box,{'marginTop':0x1,'children':[a42_0x1ae0cc(Text,{'color':'green','children':_0x26f9cf(0x164)}),a42_0x1ae0cc(Text,{'color':'white','children':_0x137f52(_0x26f9cf(0x19c))}),a42_0x1ae0cc(Text,{'color':'cyan','bold':!![],'children':_0x26f9cf(0x15a)+_0x14eed0?.[_0x26f9cf(0x189)]+_0x26f9cf(0x145)})]}),_0x14eed0?.[_0x26f9cf(0x1b6)]&&!_0x14eed0?.['pullApi']&&a42_0x41021b(Box,{'children':[a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x174),'children':'3.\x20'}),a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x155),'children':_0x137f52(_0x26f9cf(0x167))}),a42_0x1ae0cc(Text,{'color':'cyan','bold':!![],'children':_0x26f9cf(0x14b)})]})]}),!_0x14eed0?.[_0x26f9cf(0x1b6)]&&a42_0x41021b(a42_0x1b0a09,{'children':[a42_0x41021b(Box,{'children':[a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x166),'children':'2.\x20'}),a42_0x1ae0cc(Text,{'color':'white','children':_0x137f52('create.nextSteps.configAppCode')}),a42_0x1ae0cc(Text,{'color':'cyan','bold':!![],'children':_0x26f9cf(0x149)})]}),a42_0x41021b(Box,{'children':[a42_0x1ae0cc(Text,{'color':'gray','children':_0x26f9cf(0x199)}),a42_0x1ae0cc(Text,{'color':'white','children':_0x137f52(_0x26f9cf(0x167))}),a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1b3),'bold':!![],'children':_0x26f9cf(0x18d)})]})]})]}),a42_0x1ae0cc(Box,{'marginTop':0x1,'children':a42_0x1ae0cc(Text,{'color':_0x26f9cf(0x1af),'children':'─'[_0x26f9cf(0x14c)](0x3c)})})]});}return null;}
@@ -1 +1 @@
1
- const a43_0x6ccf48=a43_0x4b52;(function(_0x1f872b,_0x5efd9e){const _0x5b65d6=a43_0x4b52,_0x3385ff=_0x1f872b();while(!![]){try{const _0x568b6a=parseInt(_0x5b65d6(0x11c))/0x1*(parseInt(_0x5b65d6(0x114))/0x2)+-parseInt(_0x5b65d6(0x13f))/0x3*(-parseInt(_0x5b65d6(0x133))/0x4)+parseInt(_0x5b65d6(0x13d))/0x5+-parseInt(_0x5b65d6(0x10f))/0x6*(parseInt(_0x5b65d6(0x13b))/0x7)+-parseInt(_0x5b65d6(0x10d))/0x8*(parseInt(_0x5b65d6(0x11e))/0x9)+-parseInt(_0x5b65d6(0x11f))/0xa*(parseInt(_0x5b65d6(0x137))/0xb)+-parseInt(_0x5b65d6(0x130))/0xc*(-parseInt(_0x5b65d6(0x112))/0xd);if(_0x568b6a===_0x5efd9e)break;else _0x3385ff['push'](_0x3385ff['shift']());}catch(_0x150a2e){_0x3385ff['push'](_0x3385ff['shift']());}}}(a43_0x298f,0xa73dd));import a43_0x3ba214 from'path';import{fileURLToPath}from'url';import a43_0x5f491f from'fs/promises';function a43_0x4b52(_0x3ebb22,_0x383606){_0x3ebb22=_0x3ebb22-0x10b;const _0x298fee=a43_0x298f();let _0x4b52ae=_0x298fee[_0x3ebb22];return _0x4b52ae;}import{existsSync}from'fs';import{copyDirectory}from'../utils/copy-directory.js';import{exec}from'child_process';import{promisify}from'util';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import a43_0x34815d from'../i18n/index.js';const t=a43_0x34815d['t'][a43_0x6ccf48(0x116)](a43_0x34815d),execAsync=promisify(exec);function getTemplateDir(){const _0x507477=a43_0x6ccf48,_0x33e767=fileURLToPath(import.meta.url),_0x4224cb=a43_0x3ba214[_0x507477(0x136)](_0x33e767);return a43_0x3ba214[_0x507477(0x126)](_0x4224cb,_0x507477(0x118));}export async function createProjectNonInteractive(_0xa21bc2,_0x5b72a1){const _0x1fbc41=a43_0x6ccf48,_0x4c0788=await checkCliVersion();_0x4c0788[_0x1fbc41(0x121)]&&printCliUpgradeWarning(_0x4c0788);(!_0xa21bc2||_0xa21bc2['trim']()==='')&&(console['error'](t('create.validation.required')),process['exit'](0x1));const _0x34468c=/[<>:"|?*\x00-\x1f\x7f]/;_0x34468c[_0x1fbc41(0x11b)](_0xa21bc2)&&(console[_0x1fbc41(0x12a)](t('create.validation.invalidChars')),process[_0x1fbc41(0x110)](0x1));_0xa21bc2[_0x1fbc41(0x13a)]>0x64&&(console[_0x1fbc41(0x12a)](t(_0x1fbc41(0x138))),process[_0x1fbc41(0x110)](0x1));const _0x7327f3=a43_0x3ba214[_0x1fbc41(0x126)](process[_0x1fbc41(0x127)](),_0xa21bc2);existsSync(_0x7327f3)&&(console[_0x1fbc41(0x12a)](t('create.validation.dirExists',{'name':_0xa21bc2})),process[_0x1fbc41(0x110)](0x1));try{const _0x45b2ae=a43_0x3ba214['dirname'](_0x7327f3);await a43_0x5f491f[_0x1fbc41(0x128)](_0x45b2ae,a43_0x5f491f[_0x1fbc41(0x124)]['W_OK']);}catch(_0x32e162){console[_0x1fbc41(0x12a)](t(_0x1fbc41(0x13e))),process[_0x1fbc41(0x110)](0x1);}try{console[_0x1fbc41(0x125)](t(_0x1fbc41(0x119),{'name':_0xa21bc2}));const _0xf2bea4=getTemplateDir();await copyDirectory(_0xf2bea4,_0x7327f3),console[_0x1fbc41(0x125)](t(_0x1fbc41(0x120))),await updatePackageJsonName(_0xa21bc2),console['log'](t(_0x1fbc41(0x123))),console['log'](t('create.nonInteractive.installingDeps')),console[_0x1fbc41(0x125)](t(_0x1fbc41(0x142))),await formatCode(_0x7327f3),console[_0x1fbc41(0x125)](t('create.nonInteractive.codeFormatted')),await configureAppEnv(_0xa21bc2,_0x5b72a1),console['log'](t(_0x1fbc41(0x12d))),console[_0x1fbc41(0x125)](t(_0x1fbc41(0x141),{'name':_0xa21bc2})),console[_0x1fbc41(0x125)](_0x1fbc41(0x111)+_0xa21bc2),console[_0x1fbc41(0x125)](_0x1fbc41(0x13c));}catch(_0x316678){const _0x5d601c=_0x316678 instanceof Error?_0x316678[_0x1fbc41(0x122)]:String(_0x316678);try{existsSync(_0x7327f3)&&await a43_0x5f491f['rm'](_0x7327f3,{'recursive':!![],'force':!![]});}catch{}console['error'](t(_0x1fbc41(0x139),{'error':_0x5d601c})),process['exit'](0x1);}}async function updatePackageJsonName(_0xfc4f6e){const _0x507479=a43_0x6ccf48,_0x38fe4f=a43_0x3ba214[_0x507479(0x126)](process[_0x507479(0x127)](),_0xfc4f6e),_0x5a0db0=a43_0x3ba214[_0x507479(0x10b)](_0x38fe4f,_0x507479(0x115)),_0xaddffa=await a43_0x5f491f[_0x507479(0x11a)](_0x5a0db0,_0x507479(0x10e)),_0x4a5823=JSON['parse'](_0xaddffa);_0x4a5823[_0x507479(0x140)]=_0xfc4f6e,_0x4a5823[_0x507479(0x134)]=_0x507479(0x10c),await a43_0x5f491f[_0x507479(0x113)](_0x5a0db0,JSON[_0x507479(0x129)](_0x4a5823,null,0x2)+'\x0a');}async function installDependencies(_0x44c158){const _0x22f8e8=a43_0x6ccf48,_0xa5e1ba=detectPackageManager(),_0x44715f=_0xa5e1ba+_0x22f8e8(0x12c);try{await execAsync(_0x44715f,{'cwd':_0x44c158});}catch(_0x2375f4){throw new Error(_0x22f8e8(0x11d)+_0x2375f4);}}function detectPackageManager(){const _0x49263d=a43_0x6ccf48;try{return execAsync(_0x49263d(0x12f),{}),_0x49263d(0x117);}catch{return _0x49263d(0x12e);}}async function formatCode(_0x49fcc2){const _0x368531=a43_0x6ccf48;try{await execAsync(_0x368531(0x12b),{'cwd':_0x49fcc2});}catch{}}async function configureAppEnv(_0x3409d9,_0x38e6f3){const _0x47a3a4=a43_0x6ccf48,_0x1bf26c=a43_0x3ba214[_0x47a3a4(0x126)](process['cwd'](),_0x3409d9),_0x5850b4=a43_0x3ba214['join'](_0x1bf26c,_0x47a3a4(0x135));let _0x46d6f9={};if(existsSync(_0x5850b4)){const _0x52e861=await a43_0x5f491f[_0x47a3a4(0x11a)](_0x5850b4,_0x47a3a4(0x10e));_0x46d6f9=JSON[_0x47a3a4(0x132)](_0x52e861);}_0x38e6f3&&(_0x46d6f9[_0x47a3a4(0x131)]=_0x38e6f3),await a43_0x5f491f[_0x47a3a4(0x113)](_0x5850b4,JSON[_0x47a3a4(0x129)](_0x46d6f9,null,0x2)+'\x0a');}function a43_0x298f(){const _0x516566=['error','bun\x20run\x20format','\x20install','create.nonInteractive.envConfigured','npm','bun\x20--version','2309328gDyumF','env','parse','13484SThBrh','description','lovrabet.config.json','dirname','11GPuCfg','create.validation.tooLong','create.errors.createFailed','length','83041ppNgqh','\x20\x20lovrabet\x20start\x0a','4276310cpjMFo','create.validation.noPermission','249xVBgCL','name','create.nonInteractive.success','create.nonInteractive.depsSkipped','join','A\x20project\x20created\x20with\x20Lovrabet\x20CLI','31184BKtCRK','utf-8','438btDlYW','exit','\x0a\x20\x20cd\x20','78nJTJWa','writeFile','514TFYtvp','package.json','bind','bun','../../templates/projects/sub-app-react-demo','create.nonInteractive.creating','readFile','test','3704TqPlXJ','依赖安装失败:\x20','1224KPxTpP','11604990DZOeML','create.nonInteractive.templateCreated','needsUpgrade','message','create.nonInteractive.packageJsonUpdated','constants','log','resolve','cwd','access','stringify'];a43_0x298f=function(){return _0x516566;};return a43_0x298f();}
1
+ const a43_0x41d9b4=a43_0x1db8;(function(_0x3a5faa,_0x2176f2){const _0x4558a2=a43_0x1db8,_0x395b0c=_0x3a5faa();while(!![]){try{const _0x3b13d5=parseInt(_0x4558a2(0xc2))/0x1*(-parseInt(_0x4558a2(0xbd))/0x2)+-parseInt(_0x4558a2(0xb3))/0x3+parseInt(_0x4558a2(0xb6))/0x4*(-parseInt(_0x4558a2(0xd6))/0x5)+-parseInt(_0x4558a2(0xd4))/0x6+parseInt(_0x4558a2(0xad))/0x7*(-parseInt(_0x4558a2(0xc7))/0x8)+-parseInt(_0x4558a2(0xd2))/0x9*(parseInt(_0x4558a2(0xb2))/0xa)+-parseInt(_0x4558a2(0xb5))/0xb*(-parseInt(_0x4558a2(0xae))/0xc);if(_0x3b13d5===_0x2176f2)break;else _0x395b0c['push'](_0x395b0c['shift']());}catch(_0x8a9acb){_0x395b0c['push'](_0x395b0c['shift']());}}}(a43_0x4595,0x587e8));import a43_0x30e8ee from'path';import{fileURLToPath}from'url';import a43_0x496931 from'fs/promises';import{existsSync}from'fs';function a43_0x1db8(_0x18b283,_0x672ac4){_0x18b283=_0x18b283-0xab;const _0x459528=a43_0x4595();let _0x1db8d9=_0x459528[_0x18b283];return _0x1db8d9;}import{copyDirectory}from'../utils/copy-directory.js';import{exec}from'child_process';import{promisify}from'util';import{checkCliVersion,printCliUpgradeWarning}from'../utils/cli-version-check.js';import a43_0x2471b4 from'../i18n/index.js';const t=a43_0x2471b4['t'][a43_0x41d9b4(0xc6)](a43_0x2471b4),execAsync=promisify(exec);function getTemplateDir(){const _0x48c9d9=a43_0x41d9b4,_0x3813ed=fileURLToPath(import.meta.url),_0x40ad5c=a43_0x30e8ee[_0x48c9d9(0xce)](_0x3813ed);return a43_0x30e8ee['resolve'](_0x40ad5c,_0x48c9d9(0xb8));}function a43_0x4595(){const _0x29ee38=['bun\x20--version','resolve','exit','4THFvIZ','create.nonInteractive.success','create.errors.createFailed','package.json','access','258835QrEyHq','log','trim','writeFile','bind','146384gsKGXK','依赖安装失败:\x20','\x20install','\x20\x20lovrabet\x20start\x0a','message','create.nonInteractive.creating','stringify','dirname','create.nonInteractive.packageJsonUpdated','A\x20project\x20created\x20with\x20Lovrabet\x20CLI','error','18BfmkcV','cwd','937152CBXzha','join','670VfTYvR','needsUpgrade','utf-8','W_OK','create.validation.invalidChars','parse','description','readFile','create.validation.required','bun','154xuoqlV','12ZeNSQb','bun\x20run\x20format','env','test','2420840jUXiNe','1851303TGRTTJ','\x0a\x20\x20cd\x20','31211081kmAnhC','8872iuTTMj','create.nonInteractive.envConfigured','../../templates/projects/sub-app-react-demo','create.validation.dirExists'];a43_0x4595=function(){return _0x29ee38;};return a43_0x4595();}export async function createProjectNonInteractive(_0x3ca359,_0x2704c0){const _0x399918=a43_0x41d9b4,_0x209ebf=await checkCliVersion();_0x209ebf[_0x399918(0xd7)]&&printCliUpgradeWarning(_0x209ebf);(!_0x3ca359||_0x3ca359[_0x399918(0xc4)]()==='')&&(console[_0x399918(0xd1)](t(_0x399918(0xab))),process['exit'](0x1));const _0xaabb1=/[<>:"|?*\x00-\x1f\x7f]/;_0xaabb1[_0x399918(0xb1)](_0x3ca359)&&(console[_0x399918(0xd1)](t(_0x399918(0xda))),process[_0x399918(0xbc)](0x1));_0x3ca359['length']>0x64&&(console[_0x399918(0xd1)](t('create.validation.tooLong')),process['exit'](0x1));const _0x535dc2=a43_0x30e8ee[_0x399918(0xbb)](process[_0x399918(0xd3)](),_0x3ca359);existsSync(_0x535dc2)&&(console[_0x399918(0xd1)](t(_0x399918(0xb9),{'name':_0x3ca359})),process[_0x399918(0xbc)](0x1));try{const _0x3cbf66=a43_0x30e8ee[_0x399918(0xce)](_0x535dc2);await a43_0x496931[_0x399918(0xc1)](_0x3cbf66,a43_0x496931['constants'][_0x399918(0xd9)]);}catch(_0x3de0a3){console[_0x399918(0xd1)](t('create.validation.noPermission')),process[_0x399918(0xbc)](0x1);}try{console[_0x399918(0xc3)](t(_0x399918(0xcc),{'name':_0x3ca359}));const _0x45f8a3=getTemplateDir();await copyDirectory(_0x45f8a3,_0x535dc2),console[_0x399918(0xc3)](t('create.nonInteractive.templateCreated')),await updatePackageJsonName(_0x3ca359),console[_0x399918(0xc3)](t(_0x399918(0xcf))),console['log'](t('create.nonInteractive.installingDeps')),console[_0x399918(0xc3)](t('create.nonInteractive.depsSkipped')),await formatCode(_0x535dc2),console[_0x399918(0xc3)](t('create.nonInteractive.codeFormatted')),await configureAppEnv(_0x3ca359,_0x2704c0),console['log'](t(_0x399918(0xb7))),console[_0x399918(0xc3)](t(_0x399918(0xbe),{'name':_0x3ca359})),console['log'](_0x399918(0xb4)+_0x3ca359),console[_0x399918(0xc3)](_0x399918(0xca));}catch(_0x165f45){const _0x4c626d=_0x165f45 instanceof Error?_0x165f45[_0x399918(0xcb)]:String(_0x165f45);try{existsSync(_0x535dc2)&&await a43_0x496931['rm'](_0x535dc2,{'recursive':!![],'force':!![]});}catch{}console[_0x399918(0xd1)](t(_0x399918(0xbf),{'error':_0x4c626d})),process[_0x399918(0xbc)](0x1);}}async function updatePackageJsonName(_0x49e7e8){const _0xd3b42b=a43_0x41d9b4,_0x38f479=a43_0x30e8ee['resolve'](process['cwd'](),_0x49e7e8),_0x1f3314=a43_0x30e8ee[_0xd3b42b(0xd5)](_0x38f479,_0xd3b42b(0xc0)),_0x4ceea7=await a43_0x496931[_0xd3b42b(0xdd)](_0x1f3314,'utf-8'),_0x1af3d9=JSON[_0xd3b42b(0xdb)](_0x4ceea7);_0x1af3d9['name']=_0x49e7e8,_0x1af3d9[_0xd3b42b(0xdc)]=_0xd3b42b(0xd0),await a43_0x496931[_0xd3b42b(0xc5)](_0x1f3314,JSON[_0xd3b42b(0xcd)](_0x1af3d9,null,0x2)+'\x0a');}async function installDependencies(_0x29106b){const _0x2542ea=a43_0x41d9b4,_0x21d0aa=detectPackageManager(),_0x508683=_0x21d0aa+_0x2542ea(0xc9);try{await execAsync(_0x508683,{'cwd':_0x29106b});}catch(_0x551f3d){throw new Error(_0x2542ea(0xc8)+_0x551f3d);}}function detectPackageManager(){const _0xac4668=a43_0x41d9b4;try{return execAsync(_0xac4668(0xba),{}),_0xac4668(0xac);}catch{return'npm';}}async function formatCode(_0x454cc8){const _0x4901a8=a43_0x41d9b4;try{await execAsync(_0x4901a8(0xaf),{'cwd':_0x454cc8});}catch{}}async function configureAppEnv(_0x40fd34,_0x105611){const _0x2cca0e=a43_0x41d9b4,_0x592425=a43_0x30e8ee[_0x2cca0e(0xbb)](process['cwd'](),_0x40fd34),_0x3d750d=a43_0x30e8ee[_0x2cca0e(0xd5)](_0x592425,'lovrabet.config.json');let _0x193118={};if(existsSync(_0x3d750d)){const _0x385178=await a43_0x496931[_0x2cca0e(0xdd)](_0x3d750d,_0x2cca0e(0xd8));_0x193118=JSON[_0x2cca0e(0xdb)](_0x385178);}_0x105611&&(_0x193118[_0x2cca0e(0xb0)]=_0x105611),await a43_0x496931[_0x2cca0e(0xc5)](_0x3d750d,JSON[_0x2cca0e(0xcd)](_0x193118,null,0x2)+'\x0a');}
@@ -1 +1 @@
1
- (function(_0xf953d6,_0x1ddc5f){var _0x3b77b6=a44_0x3b10,_0x2d6684=_0xf953d6();while(!![]){try{var _0x209b7e=-parseInt(_0x3b77b6(0x1c6))/0x1*(-parseInt(_0x3b77b6(0x1cb))/0x2)+-parseInt(_0x3b77b6(0x1c5))/0x3*(parseInt(_0x3b77b6(0x1c8))/0x4)+-parseInt(_0x3b77b6(0x1c1))/0x5*(parseInt(_0x3b77b6(0x1bf))/0x6)+-parseInt(_0x3b77b6(0x1be))/0x7+parseInt(_0x3b77b6(0x1c2))/0x8*(-parseInt(_0x3b77b6(0x1ca))/0x9)+parseInt(_0x3b77b6(0x1c7))/0xa+parseInt(_0x3b77b6(0x1c0))/0xb*(parseInt(_0x3b77b6(0x1c9))/0xc);if(_0x209b7e===_0x1ddc5f)break;else _0x2d6684['push'](_0x2d6684['shift']());}catch(_0x1a73e7){_0x2d6684['push'](_0x2d6684['shift']());}}}(a44_0x4cd8,0xe2510));function a44_0x3b10(_0x3654f5,_0x3d5115){_0x3654f5=_0x3654f5-0x1be;var _0x4cd8f8=a44_0x4cd8();var _0x3b109c=_0x4cd8f8[_0x3654f5];return _0x3b109c;}function a44_0x4cd8(){var _0x909cbb=['green','4842753gJrmnR','3442LKZFgf','12997060nOfmYh','4kTjCFP','96nORzCd','1226268tbxKse','220fAVHVE','3717833JOtNcM','5532VVQXnr','2956074kewLze','3360DyITMm','8hvechk','\x20√\x20'];a44_0x4cd8=function(){return _0x909cbb;};return a44_0x4cd8();}import{jsx as a44_0x82bf29,jsxs as a44_0x53e57e}from'react/jsx-runtime';import{Box,Text}from'ink';import{TaskTime}from'./task-time.js';export function TaskFinished(_0x1e80a2){var _0x4132e5=a44_0x3b10;return a44_0x53e57e(Box,{'children':[a44_0x82bf29(Box,{'width':'1'}),a44_0x82bf29(Text,{'color':_0x4132e5(0x1c4),'children':_0x4132e5(0x1c3)}),a44_0x82bf29(Text,{'children':_0x1e80a2['taskName']}),a44_0x82bf29(TaskTime,{'elapsed':_0x1e80a2['elapsed']})]});}
1
+ function a44_0x4fb0(_0x589ace,_0x1af676){_0x589ace=_0x589ace-0x15f;var _0x454b98=a44_0x454b();var _0x4fb0b5=_0x454b98[_0x589ace];return _0x4fb0b5;}(function(_0x479390,_0x3b4bf4){var _0x570c05=a44_0x4fb0,_0x714226=_0x479390();while(!![]){try{var _0x153c7a=-parseInt(_0x570c05(0x169))/0x1+-parseInt(_0x570c05(0x167))/0x2*(parseInt(_0x570c05(0x162))/0x3)+-parseInt(_0x570c05(0x164))/0x4+parseInt(_0x570c05(0x166))/0x5+-parseInt(_0x570c05(0x163))/0x6*(-parseInt(_0x570c05(0x15f))/0x7)+-parseInt(_0x570c05(0x160))/0x8*(-parseInt(_0x570c05(0x165))/0x9)+parseInt(_0x570c05(0x168))/0xa;if(_0x153c7a===_0x3b4bf4)break;else _0x714226['push'](_0x714226['shift']());}catch(_0x292fda){_0x714226['push'](_0x714226['shift']());}}}(a44_0x454b,0xd0e99));import{jsx as a44_0x34ea23,jsxs as a44_0x2652ff}from'react/jsx-runtime';import{Box,Text}from'ink';import{TaskTime}from'./task-time.js';function a44_0x454b(){var _0x3255ef=['9lQdHkv','4693625iEBbKx','214lOmbcl','18042650EXxujt','236408RXQaWR','7JyIbXb','774664UHpePO','\x20√\x20','37524RAyfot','4494378VjydOC','4633668opIQtE'];a44_0x454b=function(){return _0x3255ef;};return a44_0x454b();}export function TaskFinished(_0x5b4d0e){var _0x52bc78=a44_0x4fb0;return a44_0x2652ff(Box,{'children':[a44_0x34ea23(Box,{'width':'1'}),a44_0x34ea23(Text,{'color':'green','children':_0x52bc78(0x161)}),a44_0x34ea23(Text,{'children':_0x5b4d0e['taskName']}),a44_0x34ea23(TaskTime,{'elapsed':_0x5b4d0e['elapsed']})]});}
@@ -1 +1 @@
1
- function a45_0xbcaa(_0x1c603e,_0x132186){_0x1c603e=_0x1c603e-0x12b;var _0x350f6f=a45_0x350f();var _0xbcaa55=_0x350f6f[_0x1c603e];return _0xbcaa55;}(function(_0x16682b,_0x4055b1){var _0x5b91ce=a45_0xbcaa,_0x1ba32a=_0x16682b();while(!![]){try{var _0xf90ae7=-parseInt(_0x5b91ce(0x134))/0x1+parseInt(_0x5b91ce(0x12d))/0x2*(parseInt(_0x5b91ce(0x12b))/0x3)+parseInt(_0x5b91ce(0x12c))/0x4+-parseInt(_0x5b91ce(0x12f))/0x5+parseInt(_0x5b91ce(0x12e))/0x6+-parseInt(_0x5b91ce(0x132))/0x7*(parseInt(_0x5b91ce(0x137))/0x8)+parseInt(_0x5b91ce(0x131))/0x9*(parseInt(_0x5b91ce(0x133))/0xa);if(_0xf90ae7===_0x4055b1)break;else _0x1ba32a['push'](_0x1ba32a['shift']());}catch(_0x4b8894){_0x1ba32a['push'](_0x1ba32a['shift']());}}}(a45_0x350f,0xd6a7e));import{jsx as a45_0x379610,jsxs as a45_0x40b670}from'react/jsx-runtime';function a45_0x350f(){var _0x450b63=['2538264uTnCNa','20116YSyqvA','9420594HwSzZm','6974770YKECrr','finished','678231CyczlO','7ePNpgl','110cKloHC','1537031sdsbuh','dots','green','3273944QPWCRe','\x20\x20\x20','354lxuWnj'];a45_0x350f=function(){return _0x450b63;};return a45_0x350f();}import{Text}from'ink';import a45_0x45afc1 from'ink-spinner';export function TaskLoading(_0x4a3cbe){var _0x446974=a45_0xbcaa;if(_0x4a3cbe[_0x446974(0x130)])return a45_0x379610(Text,{'color':_0x446974(0x136),'children':'\x20√\x20'});if(_0x4a3cbe['loading'])return a45_0x40b670(Text,{'color':'green','children':['\x20',a45_0x379610(a45_0x45afc1,{'type':_0x446974(0x135)}),'\x20']});return a45_0x379610(Text,{'children':_0x446974(0x138)});}
1
+ (function(_0x1af41f,_0x119956){var _0xa2ece8=a45_0x3252,_0x104d00=_0x1af41f();while(!![]){try{var _0x43e46a=-parseInt(_0xa2ece8(0x173))/0x1*(parseInt(_0xa2ece8(0x16c))/0x2)+-parseInt(_0xa2ece8(0x16e))/0x3+parseInt(_0xa2ece8(0x174))/0x4*(parseInt(_0xa2ece8(0x171))/0x5)+parseInt(_0xa2ece8(0x168))/0x6*(parseInt(_0xa2ece8(0x16a))/0x7)+-parseInt(_0xa2ece8(0x16d))/0x8+parseInt(_0xa2ece8(0x175))/0x9*(-parseInt(_0xa2ece8(0x167))/0xa)+parseInt(_0xa2ece8(0x16f))/0xb;if(_0x43e46a===_0x119956)break;else _0x104d00['push'](_0x104d00['shift']());}catch(_0x49fe35){_0x104d00['push'](_0x104d00['shift']());}}}(a45_0x3b97,0xda72d));import{jsx as a45_0x3025a6,jsxs as a45_0x726f7e}from'react/jsx-runtime';import{Text}from'ink';function a45_0x3252(_0x52a035,_0x3d9b1a){_0x52a035=_0x52a035-0x166;var _0x3b97bf=a45_0x3b97();var _0x3252cc=_0x3b97bf[_0x52a035];return _0x3252cc;}import a45_0x5446d0 from'ink-spinner';export function TaskLoading(_0x49b0ba){var _0x1f40a2=a45_0x3252;if(_0x49b0ba[_0x1f40a2(0x172)])return a45_0x3025a6(Text,{'color':'green','children':_0x1f40a2(0x169)});if(_0x49b0ba[_0x1f40a2(0x16b)])return a45_0x726f7e(Text,{'color':_0x1f40a2(0x170),'children':['\x20',a45_0x3025a6(a45_0x5446d0,{'type':'dots'}),'\x20']});return a45_0x3025a6(Text,{'children':_0x1f40a2(0x166)});}function a45_0x3b97(){var _0x5e9501=['finished','30055fPIyTD','2131004ppFpAp','7536429oXdJIG','\x20\x20\x20','10zEvqfl','149778CeRtQH','\x20√\x20','21GqWyWj','loading','20wyIZxH','3975880boqXrk','815163IXFkpj','24131382jqLznU','green','5lQwdnc'];a45_0x3b97=function(){return _0x5e9501;};return a45_0x3b97();}
@@ -1 +1 @@
1
- (function(_0x10e523,_0xc54c5b){var _0x6b771=a46_0x44fd,_0x4e15ba=_0x10e523();while(!![]){try{var _0x41a2e3=-parseInt(_0x6b771(0x11d))/0x1*(-parseInt(_0x6b771(0x117))/0x2)+parseInt(_0x6b771(0x11b))/0x3+parseInt(_0x6b771(0x11a))/0x4+-parseInt(_0x6b771(0x119))/0x5+parseInt(_0x6b771(0x116))/0x6+parseInt(_0x6b771(0x11e))/0x7+parseInt(_0x6b771(0x11c))/0x8*(-parseInt(_0x6b771(0x120))/0x9);if(_0x41a2e3===_0xc54c5b)break;else _0x4e15ba['push'](_0x4e15ba['shift']());}catch(_0x29cd12){_0x4e15ba['push'](_0x4e15ba['shift']());}}}(a46_0x138c,0x95110));import{jsx as a46_0x55497d,jsxs as a46_0x2bb21f}from'react/jsx-runtime';import{Box,Text}from'ink';function a46_0x138c(){var _0x34d20a=['2513598IciHjf','2MmVelD','taskName','4137140DwibMX','1058600stYbvv','373446RpUNCC','40gCWbYE','814603JVsSOp','3055682opJrnh','elapsed','1118142vosIxI'];a46_0x138c=function(){return _0x34d20a;};return a46_0x138c();}function a46_0x44fd(_0xad778e,_0x257d8e){_0xad778e=_0xad778e-0x116;var _0x138c14=a46_0x138c();var _0x44fdb0=_0x138c14[_0xad778e];return _0x44fdb0;}import{TaskLoading}from'./task-loading.js';import{TaskTime}from'./task-time.js';export function TaskRunning(_0x3afcca){var _0x1922fd=a46_0x44fd;return a46_0x2bb21f(Box,{'children':[a46_0x55497d(Box,{'width':'1'}),a46_0x55497d(TaskLoading,{..._0x3afcca}),a46_0x55497d(Text,{'children':_0x3afcca[_0x1922fd(0x118)]}),a46_0x55497d(TaskTime,{'elapsed':_0x3afcca[_0x1922fd(0x11f)]})]});}
1
+ (function(_0x18074f,_0x32eead){var _0x389b20=a46_0xa38b,_0x2a51f9=_0x18074f();while(!![]){try{var _0x4424aa=parseInt(_0x389b20(0x8c))/0x1*(-parseInt(_0x389b20(0x92))/0x2)+-parseInt(_0x389b20(0x93))/0x3+-parseInt(_0x389b20(0x91))/0x4+parseInt(_0x389b20(0x8d))/0x5*(parseInt(_0x389b20(0x98))/0x6)+parseInt(_0x389b20(0x96))/0x7*(-parseInt(_0x389b20(0x95))/0x8)+-parseInt(_0x389b20(0x90))/0x9*(parseInt(_0x389b20(0x94))/0xa)+parseInt(_0x389b20(0x8f))/0xb;if(_0x4424aa===_0x32eead)break;else _0x2a51f9['push'](_0x2a51f9['shift']());}catch(_0x1e6c81){_0x2a51f9['push'](_0x2a51f9['shift']());}}}(a46_0x29ec,0xc7590));import{jsx as a46_0x2a8d95,jsxs as a46_0x48d98a}from'react/jsx-runtime';function a46_0xa38b(_0x30fd36,_0x5d6dca){_0x30fd36=_0x30fd36-0x8c;var _0x29ecbc=a46_0x29ec();var _0xa38b75=_0x29ecbc[_0x30fd36];return _0xa38b75;}import{Box,Text}from'ink';function a46_0x29ec(){var _0x4d1102=['3fTluXX','1858820IqvWRb','elapsed','40895998CveNpG','9QNrsyK','879828ZkzeNH','171814jUUQuK','1567932DCPUsT','11784130cPioUJ','378344wFFadK','217hMwJDa','taskName','12EmZJQe'];a46_0x29ec=function(){return _0x4d1102;};return a46_0x29ec();}import{TaskLoading}from'./task-loading.js';import{TaskTime}from'./task-time.js';export function TaskRunning(_0x231460){var _0x32717d=a46_0xa38b;return a46_0x48d98a(Box,{'children':[a46_0x2a8d95(Box,{'width':'1'}),a46_0x2a8d95(TaskLoading,{..._0x231460}),a46_0x2a8d95(Text,{'children':_0x231460[_0x32717d(0x97)]}),a46_0x2a8d95(TaskTime,{'elapsed':_0x231460[_0x32717d(0x8e)]})]});}
@@ -1 +1 @@
1
- (function(_0xcef02b,_0x4700c1){var _0x1d6034=a47_0x39c1,_0x2878d5=_0xcef02b();while(!![]){try{var _0x2fbcaa=parseInt(_0x1d6034(0xbe))/0x1+parseInt(_0x1d6034(0xc4))/0x2+parseInt(_0x1d6034(0xc7))/0x3*(parseInt(_0x1d6034(0xbd))/0x4)+parseInt(_0x1d6034(0xc5))/0x5+-parseInt(_0x1d6034(0xc2))/0x6+parseInt(_0x1d6034(0xc6))/0x7*(parseInt(_0x1d6034(0xbf))/0x8)+-parseInt(_0x1d6034(0xc0))/0x9*(parseInt(_0x1d6034(0xc3))/0xa);if(_0x2fbcaa===_0x4700c1)break;else _0x2878d5['push'](_0x2878d5['shift']());}catch(_0x2ac3df){_0x2878d5['push'](_0x2878d5['shift']());}}}(a47_0x530d,0x9ced5));function a47_0x39c1(_0x42e496,_0x14f847){_0x42e496=_0x42e496-0xbd;var _0x530d00=a47_0x530d();var _0x39c184=_0x530d00[_0x42e496];return _0x39c184;}import{jsx as a47_0xec326,Fragment as a47_0x34c8ca,jsxs as a47_0x1801ac}from'react/jsx-runtime';import{Text}from'ink';function a47_0x530d(){var _0x140433=['4431925yysQtg','3913uXMFdt','1445262gpuRcz','gray','4YahEPV','378993PujNwx','15016QRcUao','18356094tntJom','elapsed','3669750zOyJus','10AXuNFC','995178KmwChT'];a47_0x530d=function(){return _0x140433;};return a47_0x530d();}export function TaskTime(_0x16463d){var _0x1b53eb=a47_0x39c1;if(_0x16463d['elapsed'])return a47_0x1801ac(a47_0x34c8ca,{'children':[a47_0xec326(Text,{'color':_0x1b53eb(0xc8),'children':'\x20['}),a47_0xec326(Text,{'color':_0x1b53eb(0xc8),'bold':!![],'children':_0x16463d[_0x1b53eb(0xc1)]}),a47_0xec326(Text,{'color':_0x1b53eb(0xc8),'children':']'})]});return null;}
1
+ function a47_0x1ac6(_0x51cea0,_0x17f337){_0x51cea0=_0x51cea0-0x7b;var _0x53d0d9=a47_0x53d0();var _0x1ac624=_0x53d0d9[_0x51cea0];return _0x1ac624;}(function(_0x4ec091,_0x456b93){var _0x2af847=a47_0x1ac6,_0x3f95b=_0x4ec091();while(!![]){try{var _0x21336a=parseInt(_0x2af847(0x82))/0x1+-parseInt(_0x2af847(0x85))/0x2+-parseInt(_0x2af847(0x7c))/0x3*(-parseInt(_0x2af847(0x7f))/0x4)+parseInt(_0x2af847(0x7b))/0x5+-parseInt(_0x2af847(0x81))/0x6*(-parseInt(_0x2af847(0x80))/0x7)+-parseInt(_0x2af847(0x7d))/0x8+-parseInt(_0x2af847(0x84))/0x9;if(_0x21336a===_0x456b93)break;else _0x3f95b['push'](_0x3f95b['shift']());}catch(_0x59146c){_0x3f95b['push'](_0x3f95b['shift']());}}}(a47_0x53d0,0x8babb));import{jsx as a47_0x480127,Fragment as a47_0x3f6817,jsxs as a47_0x43bfd7}from'react/jsx-runtime';import{Text}from'ink';export function TaskTime(_0x39fe1b){var _0x2e7a3c=a47_0x1ac6;if(_0x39fe1b[_0x2e7a3c(0x7e)])return a47_0x43bfd7(a47_0x3f6817,{'children':[a47_0x480127(Text,{'color':_0x2e7a3c(0x83),'children':'\x20['}),a47_0x480127(Text,{'color':'gray','bold':!![],'children':_0x39fe1b[_0x2e7a3c(0x7e)]}),a47_0x480127(Text,{'color':'gray','children':']'})]});return null;}function a47_0x53d0(){var _0x4ee3cc=['gray','3356433SMIDTH','305862mEZxwD','1052165ixkEzD','1020630hYnatE','6094560yesEey','elapsed','8hwcfmU','6566203FvOQLz','6gFASmB','30897wOHIRi'];a47_0x53d0=function(){return _0x4ee3cc;};return a47_0x53d0();}
@@ -1 +1 @@
1
- const a48_0x3f34c7=a48_0x3056;(function(_0x4fd077,_0x5843a6){const _0x50c315=a48_0x3056,_0x22f5bf=_0x4fd077();while(!![]){try{const _0x44ac6a=parseInt(_0x50c315(0xf0))/0x1+-parseInt(_0x50c315(0xec))/0x2+parseInt(_0x50c315(0xee))/0x3*(-parseInt(_0x50c315(0xfb))/0x4)+parseInt(_0x50c315(0xeb))/0x5+parseInt(_0x50c315(0xf2))/0x6*(parseInt(_0x50c315(0xef))/0x7)+-parseInt(_0x50c315(0xfc))/0x8*(-parseInt(_0x50c315(0xed))/0x9)+parseInt(_0x50c315(0xf3))/0xa;if(_0x44ac6a===_0x5843a6)break;else _0x22f5bf['push'](_0x22f5bf['shift']());}catch(_0x2af63d){_0x22f5bf['push'](_0x22f5bf['shift']());}}}(a48_0x973c,0x1cd26));import a48_0x6fea16 from'node:path';import{fileURLToPath}from'node:url';import{useCallback,useState}from'react';import{copyDirectory}from'../utils/copy-directory.js';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';import{useI18n}from'../i18n/hooks.js';const __dirname=a48_0x6fea16[a48_0x3f34c7(0xf9)](fileURLToPath(import.meta.url)),templateDir=a48_0x6fea16[a48_0x3f34c7(0xf7)](__dirname,a48_0x3f34c7(0xfa));function a48_0x973c(){const _0x4091d2=['376990hpPYPb','info','create.tasks.copyFiles','now','resolve','项目模板复制完成','dirname','../../templates/projects/sub-app-react-demo','700164UkAxKX','368824MVaWsF','开始复制项目模板','error','copy','message','cwd','665010wYlbMp','309640spuqYu','27zXriUf','3xlBbTg','4571KfDAjK','42914DBpVJM','success','882vgNYXc'];a48_0x973c=function(){return _0x4091d2;};return a48_0x973c();}function a48_0x3056(_0x1461e5,_0x157c0b){_0x1461e5=_0x1461e5-0xeb;const _0x973c50=a48_0x973c();let _0x305666=_0x973c50[_0x1461e5];return _0x305666;}export function useCopyProjectTemplate(){const _0x3eb046=a48_0x3f34c7,{t:_0x2ac976}=useI18n(),[_0x56d587,_0x537f25]=useState(![]),[_0x26d572,_0x8b48e4]=useState(![]),[_0x1174a3,_0x1df093]=useState(''),_0x35cccf=useCallback(async _0x1f94c9=>{const _0x40ffae=a48_0x3056,_0xc46c40=Date[_0x40ffae(0xf6)](),_0xfaaa61=a48_0x6fea16[_0x40ffae(0xf7)](process[_0x40ffae(0x101)](),_0x1f94c9);_0x537f25(!![]);try{logger[_0x40ffae(0xf4)]('copy',_0x40ffae(0xfd),{'projectCode':_0x1f94c9,'templateDir':templateDir}),await copyDirectory(templateDir,_0xfaaa61);const _0x359ef2=Date[_0x40ffae(0xf6)]()-_0xc46c40;logger[_0x40ffae(0xf1)](_0x40ffae(0xff),_0x40ffae(0xf8),_0x359ef2,{'projectCode':_0x1f94c9});}catch(_0x251b2c){const _0x345255=Date['now']()-_0xc46c40;logger[_0x40ffae(0xfe)]('copy','项目模板复制失败',{'projectCode':_0x1f94c9,'error':_0x251b2c instanceof Error?_0x251b2c[_0x40ffae(0x100)]:String(_0x251b2c),'duration':_0x345255});throw _0x251b2c;}finally{_0x537f25(![]),_0x8b48e4(!![]),_0x1df093(formatElapsed(_0xc46c40));}},[]);return{'taskName':_0x2ac976(_0x3eb046(0xf5)),'finished':_0x26d572,'loading':_0x56d587,'elapsed':_0x1174a3,'doTask':_0x35cccf};}
1
+ (function(_0x451e94,_0x1db837){const _0x16fce8=a48_0x2333,_0x23d5ba=_0x451e94();while(!![]){try{const _0x11c75e=parseInt(_0x16fce8(0x107))/0x1+parseInt(_0x16fce8(0x103))/0x2+parseInt(_0x16fce8(0x102))/0x3+parseInt(_0x16fce8(0x10b))/0x4+-parseInt(_0x16fce8(0x10f))/0x5*(-parseInt(_0x16fce8(0x10c))/0x6)+parseInt(_0x16fce8(0x109))/0x7*(-parseInt(_0x16fce8(0xfd))/0x8)+-parseInt(_0x16fce8(0xfc))/0x9*(parseInt(_0x16fce8(0x10e))/0xa);if(_0x11c75e===_0x1db837)break;else _0x23d5ba['push'](_0x23d5ba['shift']());}catch(_0xde3527){_0x23d5ba['push'](_0x23d5ba['shift']());}}}(a48_0x1731,0xc8807));import a48_0x524c6f from'node:path';import{fileURLToPath}from'node:url';import{useCallback,useState}from'react';import{copyDirectory}from'../utils/copy-directory.js';import{formatElapsed}from'./format-elapsed.js';function a48_0x2333(_0x23d871,_0xdb68f1){_0x23d871=_0x23d871-0xfc;const _0x17316d=a48_0x1731();let _0x2333f3=_0x17316d[_0x23d871];return _0x2333f3;}import{logger}from'../utils/logger.js';import{useI18n}from'../i18n/hooks.js';function a48_0x1731(){const _0x3f09f4=['info','391319KPDYdK','error','118496NJvkAg','cwd','2716028rPhzIk','28878jOuWqx','message','60FXvMdP','570DTRwkn','1505403fNbieM','472DOKkyB','copy','success','now','项目模板复制完成','275589INjaRF','2225476qHJLAG','项目模板复制失败','开始复制项目模板'];a48_0x1731=function(){return _0x3f09f4;};return a48_0x1731();}const __dirname=a48_0x524c6f['dirname'](fileURLToPath(import.meta.url)),templateDir=a48_0x524c6f['resolve'](__dirname,'../../templates/projects/sub-app-react-demo');export function useCopyProjectTemplate(){const {t:_0x4dedeb}=useI18n(),[_0x5c9470,_0x1073cd]=useState(![]),[_0x25624b,_0x3394d8]=useState(![]),[_0x1d7611,_0x4cb5e6]=useState(''),_0x5465d5=useCallback(async _0x26c5fc=>{const _0x519171=a48_0x2333,_0x854732=Date[_0x519171(0x100)](),_0x5cb12d=a48_0x524c6f['resolve'](process[_0x519171(0x10a)](),_0x26c5fc);_0x1073cd(!![]);try{logger[_0x519171(0x106)](_0x519171(0xfe),_0x519171(0x105),{'projectCode':_0x26c5fc,'templateDir':templateDir}),await copyDirectory(templateDir,_0x5cb12d);const _0x43d9e8=Date['now']()-_0x854732;logger[_0x519171(0xff)]('copy',_0x519171(0x101),_0x43d9e8,{'projectCode':_0x26c5fc});}catch(_0x1aa3fb){const _0x1b4892=Date[_0x519171(0x100)]()-_0x854732;logger[_0x519171(0x108)](_0x519171(0xfe),_0x519171(0x104),{'projectCode':_0x26c5fc,'error':_0x1aa3fb instanceof Error?_0x1aa3fb[_0x519171(0x10d)]:String(_0x1aa3fb),'duration':_0x1b4892});throw _0x1aa3fb;}finally{_0x1073cd(![]),_0x3394d8(!![]),_0x4cb5e6(formatElapsed(_0x854732));}},[]);return{'taskName':_0x4dedeb('create.tasks.copyFiles'),'finished':_0x25624b,'loading':_0x5c9470,'elapsed':_0x1d7611,'doTask':_0x5465d5};}
@@ -1 +1 @@
1
- (function(_0x4cfd5a,_0x2d5d9e){const _0x54d457=a49_0x1a2f,_0x4caefc=_0x4cfd5a();while(!![]){try{const _0x4af406=-parseInt(_0x54d457(0xb7))/0x1*(-parseInt(_0x54d457(0xb9))/0x2)+-parseInt(_0x54d457(0xc6))/0x3+-parseInt(_0x54d457(0xbb))/0x4+-parseInt(_0x54d457(0xbe))/0x5*(parseInt(_0x54d457(0xbf))/0x6)+-parseInt(_0x54d457(0xba))/0x7+-parseInt(_0x54d457(0xc0))/0x8+parseInt(_0x54d457(0xc8))/0x9;if(_0x4af406===_0x2d5d9e)break;else _0x4caefc['push'](_0x4caefc['shift']());}catch(_0x262d03){_0x4caefc['push'](_0x4caefc['shift']());}}}(a49_0x25af,0x7a9e7));import a49_0x2248f4 from'node:path';import{useCallback,useState}from'react';function a49_0x1a2f(_0xcaf0a5,_0x4797c9){_0xcaf0a5=_0xcaf0a5-0xb7;const _0x25af53=a49_0x25af();let _0x1a2f9b=_0x25af53[_0xcaf0a5];return _0x1a2f9b;}import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';function a49_0x25af(){const _0x5cac4d=['7932582lLkqnn','info','npx','10uxyAfp','prettier','173746ZdLdDW','1617238njShaP','1514040QbCHZf','create.tasks.formatCode','message','120tZcKBh','14244xrYpQE','1867184bvsjcD','now','开始格式化代码','error','format','success','1043889EjDwYc','代码格式化失败'];a49_0x25af=function(){return _0x5cac4d;};return a49_0x25af();}import{useI18n}from'../i18n/hooks.js';export function useFormatCode(){const _0x6d6a0d=a49_0x1a2f,{t:_0x2e890e}=useI18n(),[_0xf359c7,_0x353584]=useState(![]),[_0x463b47,_0x1a8389]=useState(![]),[_0x9f7bd8,_0x36956e]=useState(''),_0x35c0ee=useCallback(async _0x324f78=>{const _0x1d6838=a49_0x1a2f,_0x212c1f=Date[_0x1d6838(0xc1)](),_0x51146c=a49_0x2248f4['resolve'](process['cwd'](),_0x324f78);_0x353584(!![]);try{logger[_0x1d6838(0xc9)](_0x1d6838(0xc4),_0x1d6838(0xc2),{'projectCode':_0x324f78}),await execa(_0x1d6838(0xca),[_0x1d6838(0xb8),'--write','.'],{'cwd':_0x51146c});const _0x439d22=Date[_0x1d6838(0xc1)]()-_0x212c1f;logger[_0x1d6838(0xc5)](_0x1d6838(0xc4),'代码格式化完成',_0x439d22,{'projectCode':_0x324f78});}catch(_0xe281fb){const _0x33ea7b=Date[_0x1d6838(0xc1)]()-_0x212c1f;logger[_0x1d6838(0xc3)]('format',_0x1d6838(0xc7),{'projectCode':_0x324f78,'error':_0xe281fb instanceof Error?_0xe281fb[_0x1d6838(0xbd)]:String(_0xe281fb),'duration':_0x33ea7b});throw _0xe281fb;}finally{_0x353584(![]),_0x1a8389(!![]),_0x36956e(formatElapsed(_0x212c1f));}},[]);return{'taskName':_0x2e890e(_0x6d6a0d(0xbc)),'finished':_0x463b47,'loading':_0xf359c7,'elapsed':_0x9f7bd8,'doTask':_0x35c0ee};}
1
+ function a49_0x1a1f(){const _0x29ebfd=['1401104VeXyvQ','npx','message','format','6711512SlpgDj','now','2869030dKpaoi','7cfsAus','870JrZDQh','9xLAywN','1273974ipiJND','info','error','736830zsxMhL','2790hmFTcI','2234558JjTlHr','代码格式化完成','success','代码格式化失败'];a49_0x1a1f=function(){return _0x29ebfd;};return a49_0x1a1f();}(function(_0x3221a0,_0x17b8ba){const _0x11a906=a49_0x228b,_0x252060=_0x3221a0();while(!![]){try{const _0x212c0e=parseInt(_0x11a906(0x151))/0x1+-parseInt(_0x11a906(0x143))/0x2+parseInt(_0x11a906(0x154))/0x3+-parseInt(_0x11a906(0x147))/0x4+parseInt(_0x11a906(0x142))/0x5*(parseInt(_0x11a906(0x14f))/0x6)+parseInt(_0x11a906(0x14e))/0x7*(parseInt(_0x11a906(0x14b))/0x8)+parseInt(_0x11a906(0x150))/0x9*(-parseInt(_0x11a906(0x14d))/0xa);if(_0x212c0e===_0x17b8ba)break;else _0x252060['push'](_0x252060['shift']());}catch(_0x4203fa){_0x252060['push'](_0x252060['shift']());}}}(a49_0x1a1f,0xa73af));import a49_0x140212 from'node:path';function a49_0x228b(_0x4448a4,_0x531ee5){_0x4448a4=_0x4448a4-0x142;const _0x1a1fc4=a49_0x1a1f();let _0x228bd0=_0x1a1fc4[_0x4448a4];return _0x228bd0;}import{useCallback,useState}from'react';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';import{useI18n}from'../i18n/hooks.js';export function useFormatCode(){const {t:_0x53ccdb}=useI18n(),[_0x5cfc7f,_0x30f75e]=useState(![]),[_0x24c494,_0x4c73cb]=useState(![]),[_0x408823,_0x4c71e6]=useState(''),_0x417586=useCallback(async _0x47a837=>{const _0x105a12=a49_0x228b,_0x3017df=Date['now'](),_0x1e5dbd=a49_0x140212['resolve'](process['cwd'](),_0x47a837);_0x30f75e(!![]);try{logger[_0x105a12(0x152)](_0x105a12(0x14a),'开始格式化代码',{'projectCode':_0x47a837}),await execa(_0x105a12(0x148),['prettier','--write','.'],{'cwd':_0x1e5dbd});const _0x483daf=Date[_0x105a12(0x14c)]()-_0x3017df;logger[_0x105a12(0x145)](_0x105a12(0x14a),_0x105a12(0x144),_0x483daf,{'projectCode':_0x47a837});}catch(_0x4ca0ac){const _0x2b13f7=Date[_0x105a12(0x14c)]()-_0x3017df;logger[_0x105a12(0x153)]('format',_0x105a12(0x146),{'projectCode':_0x47a837,'error':_0x4ca0ac instanceof Error?_0x4ca0ac[_0x105a12(0x149)]:String(_0x4ca0ac),'duration':_0x2b13f7});throw _0x4ca0ac;}finally{_0x30f75e(![]),_0x4c73cb(!![]),_0x4c71e6(formatElapsed(_0x3017df));}},[]);return{'taskName':_0x53ccdb('create.tasks.formatCode'),'finished':_0x24c494,'loading':_0x5cfc7f,'elapsed':_0x408823,'doTask':_0x417586};}
@@ -1 +1 @@
1
- (function(_0x4c88f2,_0x98cef4){const _0x3f37af=a50_0x50dd,_0xe36f1e=_0x4c88f2();while(!![]){try{const _0x458873=-parseInt(_0x3f37af(0x6a))/0x1+parseInt(_0x3f37af(0x6f))/0x2+parseInt(_0x3f37af(0x65))/0x3*(-parseInt(_0x3f37af(0x72))/0x4)+parseInt(_0x3f37af(0x6b))/0x5+-parseInt(_0x3f37af(0x6c))/0x6+-parseInt(_0x3f37af(0x74))/0x7*(parseInt(_0x3f37af(0x70))/0x8)+parseInt(_0x3f37af(0x76))/0x9*(parseInt(_0x3f37af(0x6d))/0xa);if(_0x458873===_0x98cef4)break;else _0xe36f1e['push'](_0xe36f1e['shift']());}catch(_0x1adb46){_0xe36f1e['push'](_0xe36f1e['shift']());}}}(a50_0x10e8,0x4e0cc));function a50_0x50dd(_0x4301cd,_0x2b1166){_0x4301cd=_0x4301cd-0x65;const _0x10e8d1=a50_0x10e8();let _0x50dde5=_0x10e8d1[_0x4301cd];return _0x50dde5;}function a50_0x10e8(){const _0x1fc1e7=['973480MGifgH','now','1052ywASYW','info','7yXtDqf','https://registry.npmmirror.com','6345EZPTzQ','npm','3099FbEdpu','依赖安装失败','install','cwd','create.tasks.installDependencies','519960oxhtcB','1918560dnZYIU','3387204zEjGAp','16710oVImFf','message','471566mNGMQM'];a50_0x10e8=function(){return _0x1fc1e7;};return a50_0x10e8();}import a50_0xe97fdd from'node:path';import{useCallback,useState}from'react';import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';import{useI18n}from'../i18n/hooks.js';export function useInstallDependencies(){const _0x3da06a=a50_0x50dd,{t:_0x1d80d2}=useI18n(),[_0x25af13,_0x5c8a1c]=useState(![]),[_0x1ce218,_0x3db33a]=useState(![]),[_0x32925d,_0x520ff5]=useState(''),_0x33fd1b=useCallback(async _0x5785b1=>{const _0x2b05b8=a50_0x50dd,_0x201b1e=Date[_0x2b05b8(0x71)](),_0x2165d4=a50_0xe97fdd['resolve'](process[_0x2b05b8(0x68)](),_0x5785b1);_0x5c8a1c(!![]),_0x3db33a(![]);const _0x168d03=async(_0x399b58,_0x384eff)=>{await execa(_0x399b58,_0x384eff,{'cwd':_0x2165d4});};try{logger[_0x2b05b8(0x73)](_0x2b05b8(0x67),'开始安装依赖',{'projectCode':_0x5785b1,'registry':_0x2b05b8(0x75)}),await _0x168d03(_0x2b05b8(0x77),['install','--registry',_0x2b05b8(0x75)]);const _0x5991db=Date[_0x2b05b8(0x71)]()-_0x201b1e;logger['success'](_0x2b05b8(0x67),'依赖安装完成',_0x5991db,{'projectCode':_0x5785b1});}catch(_0x16aeb1){const _0x329036=Date[_0x2b05b8(0x71)]()-_0x201b1e;logger['error'](_0x2b05b8(0x67),_0x2b05b8(0x66),{'projectCode':_0x5785b1,'error':_0x16aeb1 instanceof Error?_0x16aeb1[_0x2b05b8(0x6e)]:String(_0x16aeb1),'duration':_0x329036});throw _0x16aeb1;}finally{_0x5c8a1c(![]),_0x3db33a(!![]),_0x520ff5(formatElapsed(_0x201b1e));}},[]);return{'taskName':_0x1d80d2(_0x3da06a(0x69)),'finished':_0x1ce218,'loading':_0x25af13,'elapsed':_0x32925d,'doTask':_0x33fd1b};}
1
+ (function(_0x31b910,_0x20ebb2){const _0x882e05=a50_0x4287,_0xac2598=_0x31b910();while(!![]){try{const _0x293437=parseInt(_0x882e05(0xbe))/0x1+parseInt(_0x882e05(0xbf))/0x2+-parseInt(_0x882e05(0xc3))/0x3+parseInt(_0x882e05(0xc2))/0x4+-parseInt(_0x882e05(0xb8))/0x5*(parseInt(_0x882e05(0xb9))/0x6)+parseInt(_0x882e05(0xc6))/0x7*(parseInt(_0x882e05(0xb6))/0x8)+-parseInt(_0x882e05(0xbd))/0x9;if(_0x293437===_0x20ebb2)break;else _0xac2598['push'](_0xac2598['shift']());}catch(_0x3f26ab){_0xac2598['push'](_0xac2598['shift']());}}}(a50_0x4823,0xc0dcc));import a50_0x128392 from'node:path';import{useCallback,useState}from'react';function a50_0x4287(_0x170bfc,_0x38937b){_0x170bfc=_0x170bfc-0xb4;const _0x482331=a50_0x4823();let _0x4287ac=_0x482331[_0x170bfc];return _0x4287ac;}import{execa}from'execa';import{formatElapsed}from'./format-elapsed.js';import{logger}from'../utils/logger.js';function a50_0x4823(){const _0x36f0e7=['5165388OyIHKy','771602MSqKJv','2799394vbwbVi','install','cwd','1717364VwpqJr','2315994jowNBh','npm','create.tasks.installDependencies','1353919NMxpWW','resolve','开始安装依赖','依赖安装失败','now','24WDoKId','--registry','5224985aYtmjt','6ZDLQOy','message','info','https://registry.npmmirror.com'];a50_0x4823=function(){return _0x36f0e7;};return a50_0x4823();}import{useI18n}from'../i18n/hooks.js';export function useInstallDependencies(){const _0x50dffb=a50_0x4287,{t:_0x105537}=useI18n(),[_0x5e8b52,_0x345250]=useState(![]),[_0x590d9e,_0x25541b]=useState(![]),[_0x2a1619,_0x20f396]=useState(''),_0x294bc1=useCallback(async _0x14d18b=>{const _0xf4ca50=a50_0x4287,_0x2bb56a=Date[_0xf4ca50(0xb5)](),_0xad8464=a50_0x128392[_0xf4ca50(0xc7)](process[_0xf4ca50(0xc1)](),_0x14d18b);_0x345250(!![]),_0x25541b(![]);const _0x2e2c81=async(_0x95eca3,_0x438c1d)=>{await execa(_0x95eca3,_0x438c1d,{'cwd':_0xad8464});};try{logger[_0xf4ca50(0xbb)]('install',_0xf4ca50(0xc8),{'projectCode':_0x14d18b,'registry':_0xf4ca50(0xbc)}),await _0x2e2c81(_0xf4ca50(0xc4),[_0xf4ca50(0xc0),_0xf4ca50(0xb7),'https://registry.npmmirror.com']);const _0x30b299=Date[_0xf4ca50(0xb5)]()-_0x2bb56a;logger['success']('install','依赖安装完成',_0x30b299,{'projectCode':_0x14d18b});}catch(_0x185a4){const _0x54186d=Date[_0xf4ca50(0xb5)]()-_0x2bb56a;logger['error'](_0xf4ca50(0xc0),_0xf4ca50(0xb4),{'projectCode':_0x14d18b,'error':_0x185a4 instanceof Error?_0x185a4[_0xf4ca50(0xba)]:String(_0x185a4),'duration':_0x54186d});throw _0x185a4;}finally{_0x345250(![]),_0x25541b(!![]),_0x20f396(formatElapsed(_0x2bb56a));}},[]);return{'taskName':_0x105537(_0x50dffb(0xc5)),'finished':_0x590d9e,'loading':_0x5e8b52,'elapsed':_0x2a1619,'doTask':_0x294bc1};}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a51_0x3c9b(_0x204d16,_0x2306c7){_0x204d16=_0x204d16-0xc9;const _0x4fc911=a51_0x4fc9();let _0x3c9b8e=_0x4fc911[_0x204d16];return _0x3c9b8e;}(function(_0x5ea86d,_0x2ef198){const _0x17348a=a51_0x3c9b,_0x4d874b=_0x5ea86d();while(!![]){try{const _0x3df72c=-parseInt(_0x17348a(0xcc))/0x1+parseInt(_0x17348a(0xc9))/0x2*(parseInt(_0x17348a(0xcf))/0x3)+-parseInt(_0x17348a(0xcb))/0x4*(parseInt(_0x17348a(0xd6))/0x5)+parseInt(_0x17348a(0xd5))/0x6*(-parseInt(_0x17348a(0xce))/0x7)+-parseInt(_0x17348a(0xd2))/0x8+parseInt(_0x17348a(0xd3))/0x9*(-parseInt(_0x17348a(0xca))/0xa)+parseInt(_0x17348a(0xd4))/0xb;if(_0x3df72c===_0x2ef198)break;else _0x4d874b['push'](_0x4d874b['shift']());}catch(_0x4d57e7){_0x4d874b['push'](_0x4d874b['shift']());}}}(a51_0x4fc9,0x38ce9));import{jsx as a51_0x7ae60,jsxs as a51_0x5e252}from'react/jsx-runtime';function a51_0x4fc9(){const _0x3f75d9=['lovrabet\x20--help','1115765BlPoOf','17463DpAhdq','green','help.viewCommands','693376ZKIrye','9VejXGZ','13937110AVxwxJ','6jMsDTT','428160zybtGs','16kylbrM','3534260StfjBM','4bzxDyE','395772nxNRti'];a51_0x4fc9=function(){return _0x3f75d9;};return a51_0x4fc9();}import{Box,Text}from'ink';import{useI18n}from'./i18n/hooks.js';export function Help(){const _0x3b2607=a51_0x3c9b,{t:_0x3238f5}=useI18n();return a51_0x5e252(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a51_0x5e252(Box,{'children':[a51_0x7ae60(Box,{'width':'1'}),a51_0x7ae60(Text,{'children':_0x3238f5('help.invalidCommand')})]}),a51_0x5e252(Box,{'marginTop':0x1,'children':[a51_0x7ae60(Box,{'width':'1'}),a51_0x5e252(Text,{'children':['\x20\x20',_0x3238f5('help.usageHint')]}),a51_0x5e252(Text,{'bold':!![],'color':_0x3b2607(0xd0),'children':['\x20',_0x3b2607(0xcd),'\x20']}),a51_0x7ae60(Text,{'children':_0x3238f5(_0x3b2607(0xd1))})]})]});}
1
+ function a51_0x28ac(_0x18939a,_0x9cfa20){_0x18939a=_0x18939a-0x19c;const _0x51c2c0=a51_0x51c2();let _0x28acc7=_0x51c2c0[_0x18939a];return _0x28acc7;}(function(_0x3883de,_0x453a52){const _0x489e4e=a51_0x28ac,_0x1235d1=_0x3883de();while(!![]){try{const _0x3effbb=parseInt(_0x489e4e(0x1a8))/0x1*(-parseInt(_0x489e4e(0x19c))/0x2)+-parseInt(_0x489e4e(0x1aa))/0x3*(parseInt(_0x489e4e(0x1a4))/0x4)+-parseInt(_0x489e4e(0x1ac))/0x5*(parseInt(_0x489e4e(0x1ab))/0x6)+-parseInt(_0x489e4e(0x19d))/0x7*(-parseInt(_0x489e4e(0x1a0))/0x8)+parseInt(_0x489e4e(0x19e))/0x9+parseInt(_0x489e4e(0x1a1))/0xa*(-parseInt(_0x489e4e(0x1a5))/0xb)+-parseInt(_0x489e4e(0x1a7))/0xc*(-parseInt(_0x489e4e(0x1a6))/0xd);if(_0x3effbb===_0x453a52)break;else _0x1235d1['push'](_0x1235d1['shift']());}catch(_0x585aef){_0x1235d1['push'](_0x1235d1['shift']());}}}(a51_0x51c2,0x4d087));function a51_0x51c2(){const _0x40d9b9=['55540PLZsGR','2678641oeEfcB','2953773mTeshC','help.usageHint','8KSSxLC','170EatNnW','column','lovrabet\x20--help','4kkZMDV','231385eMDJUQ','936WnXoZf','101532bCCONj','1yfXhUw','help.viewCommands','1332228FtwgmS','12JTPuqI','437710KkLwkT'];a51_0x51c2=function(){return _0x40d9b9;};return a51_0x51c2();}import{jsx as a51_0x37d719,jsxs as a51_0x4f9d26}from'react/jsx-runtime';import{Box,Text}from'ink';import{useI18n}from'./i18n/hooks.js';export function Help(){const _0x536780=a51_0x28ac,{t:_0x158caf}=useI18n();return a51_0x4f9d26(Box,{'flexDirection':_0x536780(0x1a2),'marginTop':0x1,'marginBottom':0x1,'children':[a51_0x4f9d26(Box,{'children':[a51_0x37d719(Box,{'width':'1'}),a51_0x37d719(Text,{'children':_0x158caf('help.invalidCommand')})]}),a51_0x4f9d26(Box,{'marginTop':0x1,'children':[a51_0x37d719(Box,{'width':'1'}),a51_0x4f9d26(Text,{'children':['\x20\x20',_0x158caf(_0x536780(0x19f))]}),a51_0x4f9d26(Text,{'bold':!![],'color':'green','children':['\x20',_0x536780(0x1a3),'\x20']}),a51_0x37d719(Text,{'children':_0x158caf(_0x536780(0x1a9))})]})]});}
@@ -1 +1 @@
1
- (function(_0x232ae2,_0x46bda0){var _0x2988ea=a52_0x3570,_0x5d67e6=_0x232ae2();while(!![]){try{var _0x32adeb=parseInt(_0x2988ea(0x142))/0x1+parseInt(_0x2988ea(0x148))/0x2+-parseInt(_0x2988ea(0x143))/0x3+-parseInt(_0x2988ea(0x14e))/0x4*(parseInt(_0x2988ea(0x147))/0x5)+-parseInt(_0x2988ea(0x145))/0x6*(-parseInt(_0x2988ea(0x14b))/0x7)+parseInt(_0x2988ea(0x14d))/0x8*(parseInt(_0x2988ea(0x144))/0x9)+-parseInt(_0x2988ea(0x14c))/0xa*(parseInt(_0x2988ea(0x149))/0xb);if(_0x32adeb===_0x46bda0)break;else _0x5d67e6['push'](_0x5d67e6['shift']());}catch(_0x13244d){_0x5d67e6['push'](_0x5d67e6['shift']());}}}(a52_0x4a3c,0x9f7d7));import{jsx as a52_0x1aa746}from'react/jsx-runtime';import{I18nextProvider}from'react-i18next';function a52_0x4a3c(){var _0xfdabb4=['40TRSSVn','8ZzLPuy','4OblXgK','878922fmOSeq','2351178sdJLDM','11197557BQHDnk','131778KEJxtq','language','1020415sKLRiK','125884uCxlOd','4941332ymxwOh','changeLanguage','399msQFXy'];a52_0x4a3c=function(){return _0xfdabb4;};return a52_0x4a3c();}function a52_0x3570(_0x3b14ff,_0x15787c){_0x3b14ff=_0x3b14ff-0x142;var _0x4a3c42=a52_0x4a3c();var _0x3570b1=_0x4a3c42[_0x3b14ff];return _0x3570b1;}import a52_0x1737b2 from'./index.js';export function I18nProvider({children:_0x42eb1a,language:_0x3692bc}){var _0x3a6165=a52_0x3570;return _0x3692bc&&a52_0x1737b2[_0x3a6165(0x146)]!==_0x3692bc&&a52_0x1737b2[_0x3a6165(0x14a)](_0x3692bc),a52_0x1aa746(I18nextProvider,{'i18n':a52_0x1737b2,'children':_0x42eb1a});}
1
+ function a52_0x52af(_0x42bf2a,_0x1232ec){_0x42bf2a=_0x42bf2a-0x182;var _0x354f0a=a52_0x354f();var _0x52af6b=_0x354f0a[_0x42bf2a];return _0x52af6b;}(function(_0x52495e,_0x432634){var _0x3e2e5b=a52_0x52af,_0x2f9a6e=_0x52495e();while(!![]){try{var _0x15216f=-parseInt(_0x3e2e5b(0x184))/0x1+parseInt(_0x3e2e5b(0x186))/0x2+-parseInt(_0x3e2e5b(0x183))/0x3*(-parseInt(_0x3e2e5b(0x188))/0x4)+parseInt(_0x3e2e5b(0x185))/0x5+-parseInt(_0x3e2e5b(0x187))/0x6*(parseInt(_0x3e2e5b(0x189))/0x7)+parseInt(_0x3e2e5b(0x182))/0x8+-parseInt(_0x3e2e5b(0x18a))/0x9;if(_0x15216f===_0x432634)break;else _0x2f9a6e['push'](_0x2f9a6e['shift']());}catch(_0x4ab222){_0x2f9a6e['push'](_0x2f9a6e['shift']());}}}(a52_0x354f,0x2abec));import{jsx as a52_0x33b6e1}from'react/jsx-runtime';import{I18nextProvider}from'react-i18next';import a52_0x506806 from'./index.js';function a52_0x354f(){var _0x2787fc=['1106920hEcGVs','19138QIfxaC','6540714qZbzrv','language','2644272ObhWRT','3pYiNiG','177539kjHtWH','1662115ikpuDr','306704RDezaz','30IvEzFD'];a52_0x354f=function(){return _0x2787fc;};return a52_0x354f();}export function I18nProvider({children:_0x545730,language:_0x3edb4b}){var _0x55b840=a52_0x52af;return _0x3edb4b&&a52_0x506806[_0x55b840(0x18b)]!==_0x3edb4b&&a52_0x506806['changeLanguage'](_0x3edb4b),a52_0x33b6e1(I18nextProvider,{'i18n':a52_0x506806,'children':_0x545730});}
package/lib/i18n/hooks.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5418f2,_0x32ce83){var _0x33e80a=a53_0x2cec,_0x183d91=_0x5418f2();while(!![]){try{var _0x26a9d0=parseInt(_0x33e80a(0x142))/0x1*(parseInt(_0x33e80a(0x138))/0x2)+-parseInt(_0x33e80a(0x13c))/0x3*(parseInt(_0x33e80a(0x139))/0x4)+-parseInt(_0x33e80a(0x13d))/0x5*(parseInt(_0x33e80a(0x141))/0x6)+-parseInt(_0x33e80a(0x13e))/0x7*(parseInt(_0x33e80a(0x140))/0x8)+parseInt(_0x33e80a(0x13b))/0x9+-parseInt(_0x33e80a(0x13f))/0xa*(parseInt(_0x33e80a(0x137))/0xb)+-parseInt(_0x33e80a(0x13a))/0xc*(-parseInt(_0x33e80a(0x136))/0xd);if(_0x26a9d0===_0x32ce83)break;else _0x183d91['push'](_0x183d91['shift']());}catch(_0x336381){_0x183d91['push'](_0x183d91['shift']());}}}(a53_0x1f01,0x62298));function a53_0x1f01(){var _0x92062=['696ciduuC','1077687xOnIjX','2069895fxioyD','2867845ojgQer','21kSNqZC','2980JTDbuX','524168pNMniT','6WzWtjl','2LKONVB','307814tEJccs','13772iTPZKL','742198UlNgWt','4RuPXfl'];a53_0x1f01=function(){return _0x92062;};return a53_0x1f01();}import{useTranslation}from'react-i18next';export function useI18n(){return useTranslation();}function a53_0x2cec(_0x306777,_0x293762){_0x306777=_0x306777-0x136;var _0x1f016d=a53_0x1f01();var _0x2cec19=_0x1f016d[_0x306777];return _0x2cec19;}export function useI18nNs(_0x51160d){return useTranslation(_0x51160d);}
1
+ function a53_0x2705(_0x5c33d0,_0x133922){_0x5c33d0=_0x5c33d0-0x111;var _0x345ab2=a53_0x345a();var _0x2705d7=_0x345ab2[_0x5c33d0];return _0x2705d7;}(function(_0x380c8c,_0x2c5890){var _0x150fcb=a53_0x2705,_0x5081b4=_0x380c8c();while(!![]){try{var _0x2ad887=-parseInt(_0x150fcb(0x11a))/0x1+parseInt(_0x150fcb(0x112))/0x2*(-parseInt(_0x150fcb(0x11b))/0x3)+parseInt(_0x150fcb(0x116))/0x4+-parseInt(_0x150fcb(0x119))/0x5*(parseInt(_0x150fcb(0x114))/0x6)+-parseInt(_0x150fcb(0x117))/0x7+-parseInt(_0x150fcb(0x118))/0x8*(parseInt(_0x150fcb(0x113))/0x9)+parseInt(_0x150fcb(0x111))/0xa*(parseInt(_0x150fcb(0x115))/0xb);if(_0x2ad887===_0x2c5890)break;else _0x5081b4['push'](_0x5081b4['shift']());}catch(_0x17a1fa){_0x5081b4['push'](_0x5081b4['shift']());}}}(a53_0x345a,0x27bf4));import{useTranslation}from'react-i18next';export function useI18n(){return useTranslation();}export function useI18nNs(_0x26421e){return useTranslation(_0x26421e);}function a53_0x345a(){var _0x48ca6f=['484563DaOhty','830wbiOIX','4QcBlrz','439542zCvDqV','30HLBOAc','160842TudcLR','86796UVlFVJ','1615033rzZWxT','48Txjxwu','119245zgzZhi','106487LXMTPx'];a53_0x345a=function(){return _0x48ca6f;};return a53_0x345a();}
package/lib/i18n/index.js CHANGED
@@ -1 +1 @@
1
- const a54_0x189b55=a54_0x374f;(function(_0x421966,_0x113641){const _0x298e3a=a54_0x374f,_0x5c4078=_0x421966();while(!![]){try{const _0x1bcbcc=parseInt(_0x298e3a(0x1b9))/0x1+parseInt(_0x298e3a(0x1d7))/0x2*(parseInt(_0x298e3a(0x1d5))/0x3)+-parseInt(_0x298e3a(0x1ba))/0x4*(-parseInt(_0x298e3a(0x1c1))/0x5)+-parseInt(_0x298e3a(0x1d6))/0x6*(-parseInt(_0x298e3a(0x1d8))/0x7)+parseInt(_0x298e3a(0x1d3))/0x8*(parseInt(_0x298e3a(0x1ca))/0x9)+parseInt(_0x298e3a(0x1d2))/0xa+-parseInt(_0x298e3a(0x1c5))/0xb;if(_0x1bcbcc===_0x113641)break;else _0x5c4078['push'](_0x5c4078['shift']());}catch(_0x44f2b6){_0x5c4078['push'](_0x5c4078['shift']());}}}(a54_0x30dd,0x50a7b));import a54_0x58fa6b from'i18next';import{initReactI18next}from'react-i18next';import{existsSync,readFileSync}from'node:fs';import{resolve}from'node:path';function a54_0x374f(_0x26ee38,_0xe2f8f0){_0x26ee38=_0x26ee38-0x1b8;const _0x30ddde=a54_0x30dd();let _0x374f8c=_0x30ddde[_0x26ee38];return _0x374f8c;}import{homedir}from'node:os';import a54_0x5c590a from'./locales/zh-CN.js';import a54_0x512c4d from'./locales/en-US.js';export function isChineseLanguage(_0x23c1dd){const _0x11d795=a54_0x374f;if(!_0x23c1dd)return![];const _0x7c08ee=_0x23c1dd['toLowerCase']()[_0x11d795(0x1d0)]('_','-');return/^zh($|-)/['test'](_0x7c08ee);}const LOCALE_MAP={'zh':a54_0x189b55(0x1c3),'zh-cn':a54_0x189b55(0x1c3),'zh_cn':a54_0x189b55(0x1c3),'en':a54_0x189b55(0x1cd),'en-us':a54_0x189b55(0x1cd),'en_us':a54_0x189b55(0x1cd)};export function normalizeLocale(_0x3dda9a){if(!_0x3dda9a)return null;return LOCALE_MAP[_0x3dda9a['toLowerCase']()]??null;}function readLocaleFromConfig(){const _0x103a7e=a54_0x189b55;try{const _0x2fdff8=resolve(process[_0x103a7e(0x1cb)](),_0x103a7e(0x1bc));if(existsSync(_0x2fdff8)){const _0x127a0e=readFileSync(_0x2fdff8,{'encoding':'utf8'});if(_0x127a0e){const _0x263ea4=JSON['parse'](_0x127a0e);if(typeof _0x263ea4[_0x103a7e(0x1c9)]==='string'){const _0x2f6616=normalizeLocale(_0x263ea4[_0x103a7e(0x1c9)]);if(_0x2f6616)return _0x2f6616;}}}}catch{}try{const _0x312b18=resolve(homedir(),_0x103a7e(0x1bc));if(existsSync(_0x312b18)){const _0x424591=readFileSync(_0x312b18,{'encoding':_0x103a7e(0x1ce)});if(_0x424591){const _0x42d27d=JSON[_0x103a7e(0x1bd)](_0x424591);if(typeof _0x42d27d[_0x103a7e(0x1c9)]===_0x103a7e(0x1c2)){const _0x52ffba=normalizeLocale(_0x42d27d['locale']);if(_0x52ffba)return _0x52ffba;}}}}catch{}return null;}export function detectSystemLanguage(){const _0x57823e=a54_0x189b55,_0x321478=process[_0x57823e(0x1c4)][_0x57823e(0x1c0)];if(_0x321478){const _0x4e679b=normalizeLocale(_0x321478);if(_0x4e679b)return _0x4e679b;}const _0x69b9b5=readLocaleFromConfig();if(_0x69b9b5)return _0x69b9b5;const _0x38e6eb=process[_0x57823e(0x1c4)][_0x57823e(0x1be)];if(_0x38e6eb&&isChineseLanguage(_0x38e6eb))return _0x57823e(0x1c3);const _0x1adbbc=process['env'][_0x57823e(0x1d1)];if(_0x1adbbc&&isChineseLanguage(_0x1adbbc))return _0x57823e(0x1c3);try{const _0x23f470=Intl[_0x57823e(0x1cf)]()[_0x57823e(0x1c6)]()[_0x57823e(0x1c9)];if(_0x23f470&&isChineseLanguage(_0x23f470))return _0x57823e(0x1c3);}catch{}return _0x57823e(0x1cd);}export function getLanguageFromFlags(_0x319f5b){const _0x1cd99c=a54_0x189b55,_0x47816b=_0x319f5b[_0x1cd99c(0x1d4)];if(_0x47816b==='zh-CN'||_0x47816b==='zh'||_0x47816b===_0x1cd99c(0x1bb))return _0x1cd99c(0x1c3);if(_0x47816b==='en-US'||_0x47816b==='en'||_0x47816b===_0x1cd99c(0x1b8))return _0x1cd99c(0x1cd);return null;}a54_0x58fa6b[a54_0x189b55(0x1c8)](initReactI18next)[a54_0x189b55(0x1bf)]({'resources':{'zh-CN':{'translation':a54_0x5c590a},'en-US':{'translation':a54_0x512c4d}},'lng':detectSystemLanguage(),'fallbackLng':a54_0x189b55(0x1cd),'interpolation':{'escapeValue':![]},'react':{'useSuspense':![]},'showSupportNotice':![]});function a54_0x30dd(){const _0xe087e=['12zBcOQJ','10ZUdmKC','1149827mzcvLA','en_US','128361kPuoLV','421748iiqxHI','zh_CN','.lovrabetrc','parse','LC_ALL','init','LOVRABET_LANG','5TsDZJK','string','zh-CN','env','14013747zHkYEB','resolvedOptions','language','use','locale','893241xwXEbm','cwd','changeLanguage','en-US','utf8','DateTimeFormat','replace','LANG','6110560xultWI','8voFoxN','lang','199029VQzxPl'];a54_0x30dd=function(){return _0xe087e;};return a54_0x30dd();}export default a54_0x58fa6b;export function changeLanguage(_0xc861eb){const _0x256615=a54_0x189b55;a54_0x58fa6b[_0x256615(0x1cc)](_0xc861eb);}export function getCurrentLanguage(){const _0x2ce0fe=a54_0x189b55;return a54_0x58fa6b[_0x2ce0fe(0x1c7)];}
1
+ const a54_0x2c0b67=a54_0x17ec;(function(_0x247410,_0x3ff014){const _0x5793fa=a54_0x17ec,_0x3a61dd=_0x247410();while(!![]){try{const _0x1d4b84=parseInt(_0x5793fa(0xa5))/0x1*(parseInt(_0x5793fa(0xa4))/0x2)+-parseInt(_0x5793fa(0xa0))/0x3+parseInt(_0x5793fa(0xb9))/0x4*(parseInt(_0x5793fa(0xa2))/0x5)+parseInt(_0x5793fa(0x9e))/0x6+parseInt(_0x5793fa(0xa7))/0x7+parseInt(_0x5793fa(0xb4))/0x8*(parseInt(_0x5793fa(0xae))/0x9)+-parseInt(_0x5793fa(0xac))/0xa*(parseInt(_0x5793fa(0xbd))/0xb);if(_0x1d4b84===_0x3ff014)break;else _0x3a61dd['push'](_0x3a61dd['shift']());}catch(_0x3b81aa){_0x3a61dd['push'](_0x3a61dd['shift']());}}}(a54_0x46b5,0x7b124));import a54_0x29b80f from'i18next';import{initReactI18next}from'react-i18next';import{existsSync,readFileSync}from'node:fs';import{resolve}from'node:path';import{homedir}from'node:os';import a54_0x520423 from'./locales/zh-CN.js';import a54_0x478d80 from'./locales/en-US.js';export function isChineseLanguage(_0x1e5068){const _0x4b11f2=a54_0x17ec;if(!_0x1e5068)return![];const _0x47aa3b=_0x1e5068[_0x4b11f2(0x9f)]()[_0x4b11f2(0xb3)]('_','-');return/^zh($|-)/[_0x4b11f2(0xb0)](_0x47aa3b);}const LOCALE_MAP={'zh':a54_0x2c0b67(0xb6),'zh-cn':'zh-CN','zh_cn':'zh-CN','en':a54_0x2c0b67(0xb1),'en-us':a54_0x2c0b67(0xb1),'en_us':a54_0x2c0b67(0xb1)};export function normalizeLocale(_0x599f46){const _0x550ea1=a54_0x2c0b67;if(!_0x599f46)return null;return LOCALE_MAP[_0x599f46[_0x550ea1(0x9f)]()]??null;}function readLocaleFromConfig(){const _0x5c3523=a54_0x2c0b67;try{const _0x2e2f39=resolve(process[_0x5c3523(0xb5)](),'.lovrabetrc');if(existsSync(_0x2e2f39)){const _0x2467ab=readFileSync(_0x2e2f39,{'encoding':_0x5c3523(0xbc)});if(_0x2467ab){const _0x51a496=JSON['parse'](_0x2467ab);if(typeof _0x51a496[_0x5c3523(0xab)]===_0x5c3523(0xbb)){const _0x28364d=normalizeLocale(_0x51a496[_0x5c3523(0xab)]);if(_0x28364d)return _0x28364d;}}}}catch{}try{const _0x11d718=resolve(homedir(),_0x5c3523(0xa6));if(existsSync(_0x11d718)){const _0x3c6906=readFileSync(_0x11d718,{'encoding':_0x5c3523(0xbc)});if(_0x3c6906){const _0x3e3c93=JSON[_0x5c3523(0xba)](_0x3c6906);if(typeof _0x3e3c93[_0x5c3523(0xab)]===_0x5c3523(0xbb)){const _0x20549b=normalizeLocale(_0x3e3c93[_0x5c3523(0xab)]);if(_0x20549b)return _0x20549b;}}}}catch{}return null;}export function detectSystemLanguage(){const _0x55fe7a=a54_0x2c0b67,_0x248b5c=process[_0x55fe7a(0xaf)]['LOVRABET_LANG'];if(_0x248b5c){const _0x2c177f=normalizeLocale(_0x248b5c);if(_0x2c177f)return _0x2c177f;}const _0x38cade=readLocaleFromConfig();if(_0x38cade)return _0x38cade;const _0x29e648=process[_0x55fe7a(0xaf)][_0x55fe7a(0xaa)];if(_0x29e648&&isChineseLanguage(_0x29e648))return _0x55fe7a(0xb6);const _0x3448cb=process['env'][_0x55fe7a(0xa8)];if(_0x3448cb&&isChineseLanguage(_0x3448cb))return _0x55fe7a(0xb6);try{const _0xc4d151=Intl[_0x55fe7a(0xa9)]()['resolvedOptions']()[_0x55fe7a(0xab)];if(_0xc4d151&&isChineseLanguage(_0xc4d151))return _0x55fe7a(0xb6);}catch{}return'en-US';}export function getLanguageFromFlags(_0x5db062){const _0x268f32=a54_0x2c0b67,_0x53a659=_0x5db062[_0x268f32(0xa1)];if(_0x53a659===_0x268f32(0xb6)||_0x53a659==='zh'||_0x53a659===_0x268f32(0xa3))return'zh-CN';if(_0x53a659===_0x268f32(0xb1)||_0x53a659==='en'||_0x53a659===_0x268f32(0xb7))return'en-US';return null;}a54_0x29b80f['use'](initReactI18next)[a54_0x2c0b67(0xb8)]({'resources':{'zh-CN':{'translation':a54_0x520423},'en-US':{'translation':a54_0x478d80}},'lng':detectSystemLanguage(),'fallbackLng':'en-US','interpolation':{'escapeValue':![]},'react':{'useSuspense':![]},'showSupportNotice':![]});export default a54_0x29b80f;export function changeLanguage(_0xfb07e8){const _0x394b71=a54_0x2c0b67;a54_0x29b80f[_0x394b71(0xb2)](_0xfb07e8);}export function getCurrentLanguage(){const _0x291717=a54_0x2c0b67;return a54_0x29b80f[_0x291717(0xad)];}function a54_0x17ec(_0xc6384,_0x11684d){_0xc6384=_0xc6384-0x9e;const _0x46b555=a54_0x46b5();let _0x17ec3c=_0x46b555[_0xc6384];return _0x17ec3c;}function a54_0x46b5(){const _0x10db96=['string','utf8','955207AhIqcf','2735514eTxyIF','toLowerCase','2391327XssPqz','lang','4401615ijYTxM','zh_CN','2tXOWXg','172863AeRGeL','.lovrabetrc','1280405PJNxln','LANG','DateTimeFormat','LC_ALL','locale','120CWiBaM','language','9tFDymO','env','test','en-US','changeLanguage','replace','5209864EJFdOu','cwd','zh-CN','en_US','init','4asUnVD','parse'];a54_0x46b5=function(){return _0x10db96;};return a54_0x46b5();}