@lovrabet/rabetbase-cli 2.0.8 → 2.0.10

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 (138) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/doctor.js +1 -1
  52. package/lib/commands/init/index.js +1 -1
  53. package/lib/commands/logs/index.js +1 -1
  54. package/lib/commands/menu/index.js +1 -1
  55. package/lib/commands/menu/shared/compare-table.js +1 -1
  56. package/lib/commands/menu/shared/index.js +1 -1
  57. package/lib/commands/menu/shared/inquirer.js +1 -1
  58. package/lib/commands/menu/shared/local-pages.js +1 -1
  59. package/lib/commands/menu/shared/logic.js +1 -1
  60. package/lib/commands/menu/shared/service.js +1 -1
  61. package/lib/commands/menu/shared/sync-core.js +1 -1
  62. package/lib/commands/menu/shared/update-core.js +1 -1
  63. package/lib/commands/menu/shared/valid-url.js +1 -1
  64. package/lib/commands/menu/sync.js +1 -1
  65. package/lib/commands/menu/update.js +1 -1
  66. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  67. package/lib/commands/project/create/format-elapsed.js +1 -1
  68. package/lib/commands/project/create/main.js +1 -1
  69. package/lib/commands/project/create/non-interactive.js +1 -1
  70. package/lib/commands/project/create/project-template-path.js +1 -1
  71. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  72. package/lib/commands/project/create/use-format-code.js +1 -1
  73. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  74. package/lib/commands/project/index.js +1 -1
  75. package/lib/commands/project/init.js +1 -1
  76. package/lib/commands/project/upgrade.js +1 -1
  77. package/lib/commands/registry.js +1 -1
  78. package/lib/commands/run/index.js +1 -1
  79. package/lib/commands/schema.js +1 -1
  80. package/lib/commands/skill/index.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/sql/list.js +1 -1
  85. package/lib/commands/sql/save.js +1 -1
  86. package/lib/commands/sql/validate.js +1 -1
  87. package/lib/constant/cli.js +1 -1
  88. package/lib/constant/domain.js +1 -1
  89. package/lib/constant/env.js +1 -1
  90. package/lib/constant/paths.js +1 -0
  91. package/lib/context.js +1 -1
  92. package/lib/core/alias-resolver.js +1 -1
  93. package/lib/core/api-client.js +1 -1
  94. package/lib/core/bff/config.js +1 -1
  95. package/lib/core/bff/file-system.js +1 -1
  96. package/lib/core/bff/hash.js +1 -1
  97. package/lib/core/bff/lock.js +1 -1
  98. package/lib/core/bff/utils.js +1 -1
  99. package/lib/core/db-resolver.js +1 -1
  100. package/lib/core/sql-validator.js +1 -1
  101. package/lib/errors.js +1 -1
  102. package/lib/framework/build-all-flags.js +1 -1
  103. package/lib/framework/flags.js +1 -1
  104. package/lib/framework/help.js +1 -1
  105. package/lib/framework/index.js +1 -1
  106. package/lib/framework/output.js +1 -1
  107. package/lib/framework/response.js +1 -1
  108. package/lib/framework/runner.js +1 -1
  109. package/lib/framework/schema-export.js +1 -1
  110. package/lib/framework/types.js +1 -1
  111. package/lib/generated/build-info.js +1 -1
  112. package/lib/help.js +1 -1
  113. package/lib/skills/main.js +1 -1
  114. package/lib/skills/npx-skills-add.js +1 -1
  115. package/lib/telemetry/cli-command-trace.js +1 -1
  116. package/lib/telemetry/cli-help-trace.js +1 -1
  117. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  118. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  119. package/lib/telemetry/send-cli-trace-log.js +1 -1
  120. package/lib/utils/ai_config.js +1 -1
  121. package/lib/utils/apply-jq-filter.js +1 -1
  122. package/lib/utils/cdn-config.js +1 -1
  123. package/lib/utils/check-sdk-version.js +1 -1
  124. package/lib/utils/cli-version-check.js +1 -1
  125. package/lib/utils/config.js +1 -1
  126. package/lib/utils/copy-directory.js +1 -1
  127. package/lib/utils/file-utils.js +1 -1
  128. package/lib/utils/guides-cdn.js +1 -1
  129. package/lib/utils/http-client.js +1 -1
  130. package/lib/utils/is-non-interactive.js +1 -1
  131. package/lib/utils/logger.js +1 -1
  132. package/lib/utils/platform.js +1 -1
  133. package/lib/utils/rules-cdn.js +1 -1
  134. package/lib/utils/sleep.js +1 -1
  135. package/lib/utils/template-replacer.js +1 -1
  136. package/lib/utils/version.js +1 -1
  137. package/lib/utils/with-active-cookie.js +1 -1
  138. package/package.json +5 -4
@@ -1 +1 @@
1
- const a51_0x53bb69=a51_0xa2df;(function(_0x300128,_0x302acc){const _0x2c5298=a51_0xa2df,_0x2ce62e=_0x300128();while(!![]){try{const _0x3d4cfc=parseInt(_0x2c5298(0x1a9))/0x1*(parseInt(_0x2c5298(0x1c1))/0x2)+parseInt(_0x2c5298(0x1af))/0x3*(parseInt(_0x2c5298(0x1c3))/0x4)+parseInt(_0x2c5298(0x1bf))/0x5+parseInt(_0x2c5298(0x197))/0x6*(parseInt(_0x2c5298(0x1a6))/0x7)+parseInt(_0x2c5298(0x1ba))/0x8*(parseInt(_0x2c5298(0x19f))/0x9)+-parseInt(_0x2c5298(0x1c4))/0xa+-parseInt(_0x2c5298(0x1a8))/0xb;if(_0x3d4cfc===_0x302acc)break;else _0x2ce62e['push'](_0x2ce62e['shift']());}catch(_0x5a342a){_0x2ce62e['push'](_0x2ce62e['shift']());}}}(a51_0x2175,0x2814e));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a51_0xa2df(_0x232708,_0x20755b){_0x232708=_0x232708-0x195;const _0x217510=a51_0x2175();let _0xa2df14=_0x217510[_0x232708];return _0xa2df14;}import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../common/validate.js';function a51_0x2175(){const _0x377354=['\x20\x20Apps:\x20','daily','message','273574ipfMkK','defaultApp','6178524ggaZze','1pahMdY','env','string','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','project','appcode','882StjPSh','nonInteractive','run','valid','init','Usage:\x20','App\x20code\x20to\x20initialize\x20with','write','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','apps','yes','51864eokosy','validation','global','bool','toLocaleString','821555EmbuCF','boolean','262214NfShdU','\x20config','68TXraKI','31720xWKnqC','log','some','length','production','\x20\x20Config:\x20','24CqMDsC','appCode','custom','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','cwd','\x20\x20Default:\x20','str','flagMissing','378tQcRpS','../project/init.js','Target\x20environment','Use\x20`'];a51_0x2175=function(){return _0x377354;};return a51_0x2175();}import{promptCustomAppcode,selectMultipleApps}from'../common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function syntheticApp(_0x5e875f){return{'appCode':_0x5e875f,'appName':_0x5e875f};}function writeInitConfig(_0x37ab8f,_0x7f77df,_0x453b43){const _0x4fb0f9=a51_0xa2df,_0xc0e1ca=resolveWriteConfigPath(_0x37ab8f),_0x121c37={'version':getCliVersion(),'createdAt':new Date()[_0x4fb0f9(0x1be)](),'env':_0x453b43};if(_0x7f77df[_0x4fb0f9(0x1c7)]===0x1)_0x121c37['appcode']=_0x7f77df[0x0][_0x4fb0f9(0x198)];else{_0x121c37[_0x4fb0f9(0x1b8)]={};for(const _0x4e9ad3 of _0x7f77df){_0x121c37[_0x4fb0f9(0x1b8)][_0x4e9ad3[_0x4fb0f9(0x198)]]={'appcode':_0x4e9ad3[_0x4fb0f9(0x198)],'env':_0x453b43};}_0x121c37[_0x4fb0f9(0x1a7)]=_0x7f77df[0x0][_0x4fb0f9(0x198)];}writeConfigFile(_0xc0e1ca,_0x121c37);const _0x3fe3a9=_0x37ab8f===_0x4fb0f9(0x1bc)?_0x4fb0f9(0x1bc):_0x4fb0f9(0x1ad);console[_0x4fb0f9(0x1c5)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x3fe3a9+_0x4fb0f9(0x1c2)),_0x7f77df['length']===0x1?console[_0x4fb0f9(0x1c5)]('\x20\x20AppCode:\x20'+_0x7f77df[0x0][_0x4fb0f9(0x198)]):(console[_0x4fb0f9(0x1c5)](_0x4fb0f9(0x1a3)+_0x7f77df['map'](_0xfbf52f=>_0xfbf52f[_0x4fb0f9(0x198)])['join'](',\x20')),console[_0x4fb0f9(0x1c5)](_0x4fb0f9(0x19c)+_0x121c37[_0x4fb0f9(0x1a7)])),console['log']('\x20\x20Env:\x20'+_0x121c37['env']),console[_0x4fb0f9(0x1c5)](_0x4fb0f9(0x196)+_0xc0e1ca);}async function runSmartInit(_0x3ffc93){const _0xf2213d=a51_0xa2df,_0x329c00=process[_0xf2213d(0x19b)](),_0x35e328=_0x3ffc93[_0xf2213d(0x1bd)](_0xf2213d(0x1bc))?_0xf2213d(0x1bc):'project',_0x49a32d=_0x3ffc93['str'](_0xf2213d(0x1aa))||_0xf2213d(0x195),_0x31e160=_0x3ffc93[_0xf2213d(0x19d)](_0xf2213d(0x1ae))||undefined,_0x41063d=_0x3ffc93[_0xf2213d(0x1bd)](_0xf2213d(0x1ad));if(_0x41063d){const {initConfig:_0x1e1118}=await import(_0xf2213d(0x1a0));return _0x1e1118({'appcode':_0x31e160,'env':_0x49a32d,'autoYes':_0x3ffc93['bool']('yes')});}if(_0x35e328==='project'){const _0x43a6f9=existsSync(resolve(_0x329c00,NEW_CONFIG_NAME)),_0xae312c=LEGACY_CONFIG_NAMES[_0xf2213d(0x1c6)](_0x2bdd6a=>existsSync(resolve(_0x329c00,_0x2bdd6a)));if(_0xae312c&&!_0x43a6f9)return console[_0xf2213d(0x1c5)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x3ffc93[_0xf2213d(0x1b0)],{'yes':_0x3ffc93['bool'](_0xf2213d(0x1b9))});if(_0x43a6f9)throw CliErrors[_0xf2213d(0x1bb)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0xf2213d(0x1a2)+CLI_BIN_NAME+_0xf2213d(0x19a));}if(_0x31e160){const _0x41f126=validateAppcode(_0x31e160);if(!_0x41f126[_0xf2213d(0x1b2)])throw CliErrors[_0xf2213d(0x1bb)](_0x41f126[_0xf2213d(0x1a5)]);writeInitConfig(_0x35e328,[syntheticApp(_0x31e160)],_0x49a32d);return;}if(_0x3ffc93['nonInteractive'])throw CliErrors[_0xf2213d(0x19e)](_0xf2213d(0x1ae),_0xf2213d(0x1b4)+CLI_BIN_NAME+_0xf2213d(0x1ac));const _0x2ba405=getCookie(),_0x46b28b=await selectMultipleApps(_0x2ba405),_0x16f321=_0x46b28b===_0xf2213d(0x199)?[syntheticApp(await promptCustomAppcode())]:_0x46b28b;writeInitConfig(_0x35e328,_0x16f321,_0x49a32d);}const initFlags=[{'name':'global','type':a51_0x53bb69(0x1c0),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':'env','type':a51_0x53bb69(0x1ab),'description':a51_0x53bb69(0x1a1),'default':'production','enum':['production',a51_0x53bb69(0x1a4)]},{'name':a51_0x53bb69(0x1ae),'type':a51_0x53bb69(0x1ab),'description':a51_0x53bb69(0x1b5)},{'name':a51_0x53bb69(0x1ad),'type':a51_0x53bb69(0x1c0),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a51_0x53bb69(0x1b9),'type':a51_0x53bb69(0x1c0),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a51_0x53bb69(0x1b3),'command':a51_0x53bb69(0x1b1),'description':a51_0x53bb69(0x1b7),'risk':a51_0x53bb69(0x1b6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x27b577){return await runSmartInit(_0x27b577),{'ok':!![]};}}];
1
+ const a51_0x511807=a51_0x4909;(function(_0xc4ee27,_0x1c5523){const _0x118c32=a51_0x4909,_0x3bec69=_0xc4ee27();while(!![]){try{const _0x2d9f46=-parseInt(_0x118c32(0x204))/0x1+-parseInt(_0x118c32(0x210))/0x2+-parseInt(_0x118c32(0x1e1))/0x3*(parseInt(_0x118c32(0x212))/0x4)+-parseInt(_0x118c32(0x1f3))/0x5+parseInt(_0x118c32(0x1e2))/0x6+parseInt(_0x118c32(0x1f0))/0x7*(-parseInt(_0x118c32(0x1f5))/0x8)+parseInt(_0x118c32(0x1f9))/0x9;if(_0x2d9f46===_0x1c5523)break;else _0x3bec69['push'](_0x3bec69['shift']());}catch(_0x44df5a){_0x3bec69['push'](_0x3bec69['shift']());}}}(a51_0x1e5e,0x61cb4));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';function a51_0x4909(_0x3b983d,_0x1afcdd){_0x3b983d=_0x3b983d-0x1e0;const _0x1e5eb8=a51_0x1e5e();let _0x4909fd=_0x1e5eb8[_0x3b983d];return _0x4909fd;}function a51_0x1e5e(){const _0x102b71=['project','global','Usage:\x20','daily','\x20\x20Default:\x20','239856iFVqqY','flagMissing','2936qndnKh','validation','2658EoPNPj','42570rBolKo','message','run','toLocaleString','log','appCode','join','defaultApp','bool','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','str','boolean','\x20\x20Apps:\x20','env','1393525OaWQlx','appcode','custom','1686035vttSWX','App\x20code\x20to\x20initialize\x20with','32vwjcnU','Auto-confirm\x20prompts','write','\x20config','26130564RmSCBy','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','some','length','production','init','nonInteractive','检测到旧配置文件,正在自动升级...\x0a','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','string','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','606168pPPAXP','yes','map','Write\x20to\x20global\x20config\x20instead\x20of\x20project','apps','../../commands/project/init.js','cwd'];a51_0x1e5e=function(){return _0x102b71;};return a51_0x1e5e();}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function syntheticApp(_0x4fbb0d){return{'appCode':_0x4fbb0d,'appName':_0x4fbb0d};}function writeInitConfig(_0x3d242b,_0x15ac57,_0x1981e0){const _0x2a630f=a51_0x4909,_0x22da2b=resolveWriteConfigPath(_0x3d242b),_0x178f13={'version':getCliVersion(),'createdAt':new Date()[_0x2a630f(0x1e5)](),'env':_0x1981e0};if(_0x15ac57[_0x2a630f(0x1fc)]===0x1)_0x178f13[_0x2a630f(0x1f1)]=_0x15ac57[0x0][_0x2a630f(0x1e7)];else{_0x178f13['apps']={};for(const _0x58fb57 of _0x15ac57){_0x178f13[_0x2a630f(0x208)][_0x58fb57['appCode']]={'appcode':_0x58fb57['appCode'],'env':_0x1981e0};}_0x178f13[_0x2a630f(0x1e9)]=_0x15ac57[0x0][_0x2a630f(0x1e7)];}writeConfigFile(_0x22da2b,_0x178f13);const _0x3eef88=_0x3d242b===_0x2a630f(0x20c)?_0x2a630f(0x20c):_0x2a630f(0x20b);console[_0x2a630f(0x1e6)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x3eef88+_0x2a630f(0x1f8)),_0x15ac57[_0x2a630f(0x1fc)]===0x1?console['log']('\x20\x20AppCode:\x20'+_0x15ac57[0x0][_0x2a630f(0x1e7)]):(console['log'](_0x2a630f(0x1ee)+_0x15ac57[_0x2a630f(0x206)](_0x2edac7=>_0x2edac7[_0x2a630f(0x1e7)])[_0x2a630f(0x1e8)](',\x20')),console[_0x2a630f(0x1e6)](_0x2a630f(0x20f)+_0x178f13[_0x2a630f(0x1e9)])),console[_0x2a630f(0x1e6)]('\x20\x20Env:\x20'+_0x178f13[_0x2a630f(0x1ef)]),console[_0x2a630f(0x1e6)]('\x20\x20Config:\x20'+_0x22da2b);}async function runSmartInit(_0x58d904){const _0x2257e5=a51_0x4909,_0x102e93=process[_0x2257e5(0x20a)](),_0x2b924f=_0x58d904[_0x2257e5(0x1ea)](_0x2257e5(0x20c))?'global':_0x2257e5(0x20b),_0x176d77=_0x58d904[_0x2257e5(0x1ec)](_0x2257e5(0x1ef))||'production',_0x1116bb=_0x58d904[_0x2257e5(0x1ec)](_0x2257e5(0x1f1))||undefined,_0x177859=_0x58d904[_0x2257e5(0x1ea)](_0x2257e5(0x20b));if(_0x177859){const {initConfig:_0x13f41a}=await import(_0x2257e5(0x209));return _0x13f41a({'appcode':_0x1116bb,'env':_0x176d77,'autoYes':_0x58d904[_0x2257e5(0x1ea)](_0x2257e5(0x205))});}if(_0x2b924f===_0x2257e5(0x20b)){const _0x36f58a=existsSync(resolve(_0x102e93,NEW_CONFIG_NAME)),_0x34a61e=LEGACY_CONFIG_NAMES[_0x2257e5(0x1fb)](_0x58dd5e=>existsSync(resolve(_0x102e93,_0x58dd5e)));if(_0x34a61e&&!_0x36f58a)return console[_0x2257e5(0x1e6)](_0x2257e5(0x200)),upgradeApp(_0x58d904[_0x2257e5(0x1ff)],{'yes':_0x58d904[_0x2257e5(0x1ea)](_0x2257e5(0x205))});if(_0x36f58a)throw CliErrors['validation'](_0x2257e5(0x201),'Use\x20`'+CLI_BIN_NAME+_0x2257e5(0x1fa));}if(_0x1116bb){const _0x59d12d=validateAppcode(_0x1116bb);if(!_0x59d12d['valid'])throw CliErrors[_0x2257e5(0x1e0)](_0x59d12d[_0x2257e5(0x1e3)]);writeInitConfig(_0x2b924f,[syntheticApp(_0x1116bb)],_0x176d77);return;}if(_0x58d904[_0x2257e5(0x1ff)])throw CliErrors[_0x2257e5(0x211)](_0x2257e5(0x1f1),_0x2257e5(0x20d)+CLI_BIN_NAME+_0x2257e5(0x1eb));const _0x4e8e66=getCookie(),_0x1f40e3=await selectMultipleApps(_0x4e8e66),_0x381b83=_0x1f40e3===_0x2257e5(0x1f2)?[syntheticApp(await promptCustomAppcode())]:_0x1f40e3;writeInitConfig(_0x2b924f,_0x381b83,_0x176d77);}const initFlags=[{'name':a51_0x511807(0x20c),'type':a51_0x511807(0x1ed),'description':a51_0x511807(0x207),'default':![]},{'name':a51_0x511807(0x1ef),'type':a51_0x511807(0x202),'description':'Target\x20environment','default':a51_0x511807(0x1fd),'enum':[a51_0x511807(0x1fd),a51_0x511807(0x20e)]},{'name':a51_0x511807(0x1f1),'type':a51_0x511807(0x202),'description':a51_0x511807(0x1f4)},{'name':a51_0x511807(0x20b),'type':'boolean','description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a51_0x511807(0x205),'type':'boolean','description':a51_0x511807(0x1f6),'default':![]}];export const initDefinitions=[{'service':a51_0x511807(0x1fe),'command':a51_0x511807(0x1e4),'description':a51_0x511807(0x203),'risk':a51_0x511807(0x1f7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x5280f8){return await runSmartInit(_0x5280f8),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a52_0xd019d=a52_0x2658;(function(_0x4aefd5,_0x2579fd){const _0xec6a50=a52_0x2658,_0x395784=_0x4aefd5();while(!![]){try{const _0x1a439b=parseInt(_0xec6a50(0x88))/0x1+-parseInt(_0xec6a50(0x98))/0x2*(parseInt(_0xec6a50(0x82))/0x3)+parseInt(_0xec6a50(0x7d))/0x4*(-parseInt(_0xec6a50(0x7b))/0x5)+parseInt(_0xec6a50(0x91))/0x6*(-parseInt(_0xec6a50(0x8a))/0x7)+parseInt(_0xec6a50(0x8b))/0x8*(parseInt(_0xec6a50(0x8d))/0x9)+-parseInt(_0xec6a50(0x86))/0xa*(-parseInt(_0xec6a50(0x83))/0xb)+parseInt(_0xec6a50(0x93))/0xc;if(_0x1a439b===_0x2579fd)break;else _0x395784['push'](_0x395784['shift']());}catch(_0x330c24){_0x395784['push'](_0x395784['shift']());}}}(a52_0x2f82,0x33540));import{logger}from'../../utils/logger.js';function printLogs(_0x58760e){const _0x58fea2=a52_0x2658;if(_0x58760e[_0x58fea2(0x9b)]===0x0){console['log'](_0x58fea2(0x7e));return;}console[_0x58fea2(0x80)](_0x58fea2(0x9f)),_0x58760e[_0x58fea2(0x9c)]((_0x1d9b9f,_0x2a7530)=>{const _0x1b1c7d=_0x58fea2,_0x111f8a=new Date(_0x1d9b9f[_0x1b1c7d(0x9a)])[_0x1b1c7d(0x9e)](_0x1b1c7d(0x9d)),_0x2f3d70=_0x1d9b9f['level']==='success'?'√':_0x1d9b9f['level']==='error'?'×':_0x1d9b9f[_0x1b1c7d(0x84)]===_0x1b1c7d(0x8f)?'!':'i';console[_0x1b1c7d(0x80)](_0x2a7530+0x1+'.\x20'+_0x2f3d70+'\x20['+_0x1d9b9f[_0x1b1c7d(0x90)]+']\x20'+_0x1d9b9f[_0x1b1c7d(0x81)]),console[_0x1b1c7d(0x80)](_0x1b1c7d(0x92)+_0x111f8a),_0x1d9b9f[_0x1b1c7d(0x96)]&&console[_0x1b1c7d(0x80)](_0x1b1c7d(0x89)+_0x1d9b9f['duration']+'ms'),_0x1d9b9f[_0x1b1c7d(0x7c)]&&Object[_0x1b1c7d(0x85)](_0x1d9b9f['details'])['length']>0x0&&console[_0x1b1c7d(0x80)](_0x1b1c7d(0x8e)+JSON[_0x1b1c7d(0x99)](_0x1d9b9f[_0x1b1c7d(0x7c)],null,0x2)),console[_0x1b1c7d(0x80)]('');});}function a52_0x2f82(){const _0x2b5775=['details','893300uhlRTL','*\x20No\x20logs\x20found','show','log','message','42609vVvTZM','22ejCNOj','level','keys','2004950MFrSfw','write','20656DJRcnl','\x20\x20\x20Duration:\x20','30457BGrkTq','16nrWbOQ','clearLogs','121482bKqjxW','\x20\x20\x20Details:\x20','warn','command','156vPiuMi','\x20\x20\x20Time:\x20','3733128DbZGRP','Clear\x20command\x20history\x20logs','*\x20Logs\x20cleared','duration','clear','30HSnhFb','stringify','timestamp','length','forEach','en-US','toLocaleString','*\x20Lovrabet\x20CLI\x20logs:\x0a','5BJqSqK'];a52_0x2f82=function(){return _0x2b5775;};return a52_0x2f82();}function a52_0x2658(_0x4e3a41,_0x20ff14){_0x4e3a41=_0x4e3a41-0x7b;const _0x2f825e=a52_0x2f82();let _0x2658ba=_0x2f825e[_0x4e3a41];return _0x2658ba;}export const logsDefinitions=[{'service':'logs','command':a52_0xd019d(0x7f),'description':'View\x20command\x20history\x20logs','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x39e58e){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':'logs','command':a52_0xd019d(0x97),'description':a52_0xd019d(0x94),'risk':a52_0xd019d(0x87),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x268947){const _0x91754d=a52_0xd019d;return logger[_0x91754d(0x8c)](),console[_0x91754d(0x80)](_0x91754d(0x95)),{'ok':!![]};}}];
1
+ const a52_0x4287cc=a52_0x38ac;function a52_0x4071(){const _0x3b2c95=['580UGzJcz','Clear\x20command\x20history\x20logs','error','35495CjvpIM','level','3552006xNQTjk','325424sbgnzl','77Lomqau','86430XbCHTQ','*\x20Logs\x20cleared','log','\x20\x20\x20Time:\x20','2423752GfXyiE','forEach','1160741cIIJKh','171Dxxgqs','\x20\x20\x20Details:\x20','write','clear','11764090UgtAUf','readLogs','*\x20Lovrabet\x20CLI\x20logs:\x0a','warn','clearLogs','\x20\x20\x20Duration:\x20','message','details','keys','logs','length'];a52_0x4071=function(){return _0x3b2c95;};return a52_0x4071();}function a52_0x38ac(_0x143e8d,_0xe4b52){_0x143e8d=_0x143e8d-0x1a1;const _0x40714c=a52_0x4071();let _0x38ac7b=_0x40714c[_0x143e8d];return _0x38ac7b;}(function(_0x2424e0,_0x17a7a6){const _0x1e8445=a52_0x38ac,_0x2c4ff0=_0x2424e0();while(!![]){try{const _0x1bb413=parseInt(_0x1e8445(0x1be))/0x1+parseInt(_0x1e8445(0x1bc))/0x2+-parseInt(_0x1e8445(0x1b5))/0x3+-parseInt(_0x1e8445(0x1b0))/0x4*(parseInt(_0x1e8445(0x1b3))/0x5)+-parseInt(_0x1e8445(0x1b8))/0x6*(-parseInt(_0x1e8445(0x1b7))/0x7)+-parseInt(_0x1e8445(0x1b6))/0x8*(parseInt(_0x1e8445(0x1a1))/0x9)+parseInt(_0x1e8445(0x1a5))/0xa;if(_0x1bb413===_0x17a7a6)break;else _0x2c4ff0['push'](_0x2c4ff0['shift']());}catch(_0x1b41e4){_0x2c4ff0['push'](_0x2c4ff0['shift']());}}}(a52_0x4071,0xb015a));import{logger}from'../../utils/logger.js';function printLogs(_0xc5cdaa){const _0x16ea10=a52_0x38ac;if(_0xc5cdaa[_0x16ea10(0x1af)]===0x0){console['log']('*\x20No\x20logs\x20found');return;}console[_0x16ea10(0x1ba)](_0x16ea10(0x1a7)),_0xc5cdaa[_0x16ea10(0x1bd)]((_0x22af7a,_0x5f4dfe)=>{const _0x366779=_0x16ea10,_0x2fa698=new Date(_0x22af7a['timestamp'])['toLocaleString']('en-US'),_0x2d8524=_0x22af7a['level']==='success'?'√':_0x22af7a[_0x366779(0x1b4)]===_0x366779(0x1b2)?'×':_0x22af7a[_0x366779(0x1b4)]===_0x366779(0x1a8)?'!':'i';console['log'](_0x5f4dfe+0x1+'.\x20'+_0x2d8524+'\x20['+_0x22af7a['command']+']\x20'+_0x22af7a[_0x366779(0x1ab)]),console[_0x366779(0x1ba)](_0x366779(0x1bb)+_0x2fa698),_0x22af7a['duration']&&console[_0x366779(0x1ba)](_0x366779(0x1aa)+_0x22af7a['duration']+'ms'),_0x22af7a['details']&&Object[_0x366779(0x1ad)](_0x22af7a['details'])[_0x366779(0x1af)]>0x0&&console['log'](_0x366779(0x1a2)+JSON['stringify'](_0x22af7a[_0x366779(0x1ac)],null,0x2)),console[_0x366779(0x1ba)]('');});}export const logsDefinitions=[{'service':'logs','command':'show','description':'View\x20command\x20history\x20logs','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2c5586){const _0x1f04a0=a52_0x38ac;return printLogs(logger[_0x1f04a0(0x1a6)]()),{'ok':!![]};}},{'service':a52_0x4287cc(0x1ae),'command':a52_0x4287cc(0x1a4),'description':a52_0x4287cc(0x1b1),'risk':a52_0x4287cc(0x1a3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x21ec65){const _0x3d68a8=a52_0x4287cc;return logger[_0x3d68a8(0x1a9)](),console[_0x3d68a8(0x1ba)](_0x3d68a8(0x1b9)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x904b5b,_0x22a866){const _0xc719b2=a53_0x5247,_0x35b034=_0x904b5b();while(!![]){try{const _0xe8b7b1=parseInt(_0xc719b2(0x156))/0x1*(parseInt(_0xc719b2(0x151))/0x2)+-parseInt(_0xc719b2(0x153))/0x3*(-parseInt(_0xc719b2(0x159))/0x4)+-parseInt(_0xc719b2(0x157))/0x5+-parseInt(_0xc719b2(0x158))/0x6+-parseInt(_0xc719b2(0x152))/0x7*(parseInt(_0xc719b2(0x155))/0x8)+parseInt(_0xc719b2(0x154))/0x9+parseInt(_0xc719b2(0x150))/0xa;if(_0xe8b7b1===_0x22a866)break;else _0x35b034['push'](_0x35b034['shift']());}catch(_0x91b400){_0x35b034['push'](_0x35b034['shift']());}}}(a53_0x4460,0xcdf78));import{menuSync}from'./sync.js';function a53_0x5247(_0x226857,_0x35bc01){_0x226857=_0x226857-0x150;const _0x446054=a53_0x4460();let _0x524759=_0x446054[_0x226857];return _0x524759;}import{menuUpdate}from'./update.js';function a53_0x4460(){const _0x3ba249=['3172384cqrTTw','11TjMOrF','4389245fgOIMf','3842580DDOJwA','436IhoCxz','20028410GVEMmo','1490AWekEA','28eLxGgY','8238OznVoS','14739849nBaYJj'];a53_0x4460=function(){return _0x3ba249;};return a53_0x4460();}export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x39e2f6,_0x3b4deb){const _0x446d75=a53_0x222e,_0x5d9501=_0x39e2f6();while(!![]){try{const _0x259903=-parseInt(_0x446d75(0x1d4))/0x1*(parseInt(_0x446d75(0x1d2))/0x2)+parseInt(_0x446d75(0x1d8))/0x3+parseInt(_0x446d75(0x1d7))/0x4+parseInt(_0x446d75(0x1d3))/0x5+-parseInt(_0x446d75(0x1d5))/0x6+-parseInt(_0x446d75(0x1d6))/0x7+parseInt(_0x446d75(0x1d9))/0x8;if(_0x259903===_0x3b4deb)break;else _0x5d9501['push'](_0x5d9501['shift']());}catch(_0x2794c1){_0x5d9501['push'](_0x5d9501['shift']());}}}(a53_0x5e9f,0x603e6));function a53_0x222e(_0x1fd3c2,_0x1e53c3){_0x1fd3c2=_0x1fd3c2-0x1d2;const _0x5e9f3e=a53_0x5e9f();let _0x222eef=_0x5e9f3e[_0x1fd3c2];return _0x222eef;}function a53_0x5e9f(){const _0x341065=['1464492UwTqRq','2204456pkQiwA','2NvlUgE','2441005aKdgxq','222527dQzoux','1158258iNGkSr','4237422kpJLQy','652832MztvVX'];a53_0x5e9f=function(){return _0x341065;};return a53_0x5e9f();}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- (function(_0x5649f3,_0x3c4a21){const _0x1c2a51=a54_0x15be,_0x2fafc5=_0x5649f3();while(!![]){try{const _0x16909f=-parseInt(_0x1c2a51(0x167))/0x1+-parseInt(_0x1c2a51(0x158))/0x2*(parseInt(_0x1c2a51(0x172))/0x3)+parseInt(_0x1c2a51(0x16e))/0x4*(parseInt(_0x1c2a51(0x156))/0x5)+parseInt(_0x1c2a51(0x15b))/0x6*(parseInt(_0x1c2a51(0x16a))/0x7)+parseInt(_0x1c2a51(0x171))/0x8*(parseInt(_0x1c2a51(0x166))/0x9)+-parseInt(_0x1c2a51(0x15f))/0xa+parseInt(_0x1c2a51(0x165))/0xb;if(_0x16909f===_0x3c4a21)break;else _0x2fafc5['push'](_0x2fafc5['shift']());}catch(_0x57ee39){_0x2fafc5['push'](_0x2fafc5['shift']());}}}(a54_0xe4de,0xda60c));function strWidth(_0x4a8ccc){const _0x25eec1=a54_0x15be;let _0x1d978d=0x0;for(const _0x407522 of _0x4a8ccc){_0x1d978d+=/[\u4e00-\u9fa5]/[_0x25eec1(0x154)](_0x407522)?0x2:0x1;}return _0x1d978d;}function a54_0x15be(_0x2a377e,_0x5106fa){_0x2a377e=_0x2a377e-0x152;const _0xe4de0c=a54_0xe4de();let _0x15bef1=_0xe4de0c[_0x2a377e];return _0x15bef1;}function a54_0xe4de(){const _0x16fa58=['test','label','2900NJqVoJ','max','1336gYzhWO','length','push','97554THfIeh','\x20\x20No\x20pages\x20to\x20sync.','Platform','repeat','3393430QVsmUw','online','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','path','\x20\x20Affected\x20menus:\x20','join','11870353vdZrTl','9SzhduA','1643322uNXvxh','local','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','637gvrjpq','\x20\x20\x20\x20•\x20','\x20\x20\x20\x20JS:\x20\x20','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','6512doOMuM','map','Local','5040392gkLoHI','5640vooGOM','(unchanged)','\x20\x20\x20\x20CSS:\x20','showOnline'];a54_0xe4de=function(){return _0x16fa58;};return a54_0xe4de();}function padRight(_0x2a4d2f,_0x407b27){const _0xa0ecfb=a54_0x15be,_0x17e1ad=strWidth(_0x2a4d2f);return _0x2a4d2f+'\x20'[_0xa0ecfb(0x15e)](Math[_0xa0ecfb(0x157)](0x0,_0x407b27-_0x17e1ad));}export function renderCompareTable(_0x535eb0,_0x389c8d={}){const _0x2eb8f9=a54_0x15be;if(_0x535eb0[_0x2eb8f9(0x159)]===0x0)return'';const _0x497ca7=_0x389c8d[_0x2eb8f9(0x153)]??!![],_0x40ce54=Math[_0x2eb8f9(0x157)](0x1e,..._0x535eb0[_0x2eb8f9(0x16f)](_0x4224ae=>strWidth(_0x4224ae[_0x2eb8f9(0x155)]))),_0x8e6510=0x4,_0xaf1e4d=[],_0x8c45ca='\x20\x20'+padRight('Menu\x20Name',_0x40ce54),_0x377077=padRight(_0x2eb8f9(0x170),_0x8e6510),_0x388cd4=_0x497ca7?'\x20\x20'+padRight(_0x2eb8f9(0x15d),_0x8e6510):'';_0xaf1e4d[_0x2eb8f9(0x15a)](_0x8c45ca+'\x20\x20'+_0x377077+(_0x497ca7?_0x388cd4:'')),_0xaf1e4d[_0x2eb8f9(0x15a)]('\x20\x20'+'─'[_0x2eb8f9(0x15e)](_0x40ce54)+'\x20\x20'+'─'[_0x2eb8f9(0x15e)](_0x8e6510)+(_0x497ca7?'\x20\x20'+'─'[_0x2eb8f9(0x15e)](_0x8e6510):''));for(const _0x7ed67c of _0x535eb0){const _0xd6b3b1=padRight(_0x7ed67c[_0x2eb8f9(0x155)],_0x40ce54),_0x348d8c=_0x7ed67c[_0x2eb8f9(0x168)]?'✓':'✗',_0xfd1154=padRight(_0x348d8c,_0x8e6510);let _0x5502d6='\x20\x20'+_0xd6b3b1+'\x20\x20'+_0xfd1154;if(_0x497ca7){const _0x260b72=_0x7ed67c[_0x2eb8f9(0x160)]?'✓':'✗';_0x5502d6+='\x20\x20'+padRight(_0x260b72,_0x8e6510);}_0xaf1e4d[_0x2eb8f9(0x15a)](_0x5502d6);}return _0xaf1e4d[_0x2eb8f9(0x164)]('\x0a');}export function renderSyncSummary(_0x30af61,_0x374f47){const _0x3f40ae=a54_0x15be;if(_0x30af61[_0x3f40ae(0x159)]===0x0)return _0x374f47?_0x3f40ae(0x16d):_0x3f40ae(0x15c);const _0x276ec7=['\x20\x20'+_0x30af61[_0x3f40ae(0x159)]+_0x3f40ae(0x169)];for(const _0x5cc248 of _0x30af61){_0x276ec7['push'](_0x3f40ae(0x16b)+_0x5cc248['label']+'\x20('+_0x5cc248[_0x3f40ae(0x162)]+')');}return _0x276ec7[_0x3f40ae(0x164)]('\x0a');}export function renderUpdateSummary(_0x3b8265,_0x5147ae){const _0x4fdc6a=a54_0x15be;if(_0x3b8265[_0x4fdc6a(0x159)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x50393b=['\x20\x20'+_0x3b8265['length']+_0x4fdc6a(0x161),_0x4fdc6a(0x16c)+(_0x5147ae[0x0]??_0x4fdc6a(0x173)),_0x4fdc6a(0x152)+(_0x5147ae[0x1]??_0x4fdc6a(0x173)),'',_0x4fdc6a(0x163)+_0x3b8265[_0x4fdc6a(0x164)](',\x20')];return _0x50393b[_0x4fdc6a(0x164)]('\x0a');}
1
+ (function(_0x31f7ac,_0x14f22f){const _0x1785e1=a54_0x41de,_0x912bd9=_0x31f7ac();while(!![]){try{const _0x1ba8b2=-parseInt(_0x1785e1(0x130))/0x1*(parseInt(_0x1785e1(0x139))/0x2)+-parseInt(_0x1785e1(0x13d))/0x3+-parseInt(_0x1785e1(0x12c))/0x4+parseInt(_0x1785e1(0x127))/0x5*(parseInt(_0x1785e1(0x13e))/0x6)+parseInt(_0x1785e1(0x13a))/0x7+-parseInt(_0x1785e1(0x133))/0x8*(-parseInt(_0x1785e1(0x132))/0x9)+parseInt(_0x1785e1(0x135))/0xa;if(_0x1ba8b2===_0x14f22f)break;else _0x912bd9['push'](_0x912bd9['shift']());}catch(_0x3cbb9e){_0x912bd9['push'](_0x912bd9['shift']());}}}(a54_0x272f,0x8e433));function strWidth(_0x13683a){const _0x10ffd0=a54_0x41de;let _0x3b5c83=0x0;for(const _0x4acba0 of _0x13683a){_0x3b5c83+=/[\u4e00-\u9fa5]/[_0x10ffd0(0x12d)](_0x4acba0)?0x2:0x1;}return _0x3b5c83;}function padRight(_0x2d9ed6,_0x4384d5){const _0x3f3323=a54_0x41de,_0x4dfb00=strWidth(_0x2d9ed6);return _0x2d9ed6+'\x20'[_0x3f3323(0x134)](Math['max'](0x0,_0x4384d5-_0x4dfb00));}function a54_0x41de(_0x30b68b,_0x4c3cf){_0x30b68b=_0x30b68b-0x123;const _0x272fe8=a54_0x272f();let _0x41def0=_0x272fe8[_0x30b68b];return _0x41def0;}export function renderCompareTable(_0x4a1e6a,_0x3b7403={}){const _0x3336e2=a54_0x41de;if(_0x4a1e6a[_0x3336e2(0x131)]===0x0)return'';const _0x30e36d=_0x3b7403[_0x3336e2(0x12f)]??!![],_0x19eeb7=Math[_0x3336e2(0x13c)](0x1e,..._0x4a1e6a['map'](_0x17fa49=>strWidth(_0x17fa49[_0x3336e2(0x136)]))),_0x5a5ce9=0x4,_0x20d1e2=[],_0x261699='\x20\x20'+padRight(_0x3336e2(0x128),_0x19eeb7),_0x18e3cc=padRight('Local',_0x5a5ce9),_0x453411=_0x30e36d?'\x20\x20'+padRight('Platform',_0x5a5ce9):'';_0x20d1e2[_0x3336e2(0x12a)](_0x261699+'\x20\x20'+_0x18e3cc+(_0x30e36d?_0x453411:'')),_0x20d1e2[_0x3336e2(0x12a)]('\x20\x20'+'─'[_0x3336e2(0x134)](_0x19eeb7)+'\x20\x20'+'─'[_0x3336e2(0x134)](_0x5a5ce9)+(_0x30e36d?'\x20\x20'+'─'[_0x3336e2(0x134)](_0x5a5ce9):''));for(const _0x23d8cc of _0x4a1e6a){const _0x449612=padRight(_0x23d8cc['label'],_0x19eeb7),_0x5bd96d=_0x23d8cc['local']?'✓':'✗',_0x10ea03=padRight(_0x5bd96d,_0x5a5ce9);let _0x407248='\x20\x20'+_0x449612+'\x20\x20'+_0x10ea03;if(_0x30e36d){const _0x514a3e=_0x23d8cc['online']?'✓':'✗';_0x407248+='\x20\x20'+padRight(_0x514a3e,_0x5a5ce9);}_0x20d1e2['push'](_0x407248);}return _0x20d1e2[_0x3336e2(0x137)]('\x0a');}export function renderSyncSummary(_0x3315ca,_0x353c40){const _0x40e215=a54_0x41de;if(_0x3315ca[_0x40e215(0x131)]===0x0)return _0x353c40?_0x40e215(0x125):'\x20\x20No\x20pages\x20to\x20sync.';const _0x1da5e2=['\x20\x20'+_0x3315ca[_0x40e215(0x131)]+_0x40e215(0x12b)];for(const _0xf94ea0 of _0x3315ca){_0x1da5e2['push']('\x20\x20\x20\x20•\x20'+_0xf94ea0['label']+'\x20('+_0xf94ea0[_0x40e215(0x13b)]+')');}return _0x1da5e2[_0x40e215(0x137)]('\x0a');}function a54_0x272f(){const _0x234272=['\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','2129824dgceca','test','\x20\x20\x20\x20CSS:\x20','showOnline','236986RuugkS','length','8181tJkIIY','856hojyUP','repeat','9231110MMqRxd','label','join','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','8KgrgVg','2935919PzJUbq','path','max','1059126qsbNwq','2929074irVuic','\x20\x20Affected\x20menus:\x20','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','(unchanged)','10jSQgWS','Menu\x20Name','\x20\x20\x20\x20JS:\x20\x20','push'];a54_0x272f=function(){return _0x234272;};return a54_0x272f();}export function renderUpdateSummary(_0x367fd1,_0x25fa51){const _0x34b8b1=a54_0x41de;if(_0x367fd1[_0x34b8b1(0x131)]===0x0)return _0x34b8b1(0x138);const _0x175491=['\x20\x20'+_0x367fd1['length']+_0x34b8b1(0x124),_0x34b8b1(0x129)+(_0x25fa51[0x0]??'(unchanged)'),_0x34b8b1(0x12e)+(_0x25fa51[0x1]??_0x34b8b1(0x126)),'',_0x34b8b1(0x123)+_0x367fd1[_0x34b8b1(0x137)](',\x20')];return _0x175491[_0x34b8b1(0x137)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0xdafd74,_0x344fde){var _0x41a56d=a55_0x4c0c,_0xc05300=_0xdafd74();while(!![]){try{var _0x726774=parseInt(_0x41a56d(0x1ad))/0x1*(-parseInt(_0x41a56d(0x1b4))/0x2)+-parseInt(_0x41a56d(0x1ae))/0x3*(-parseInt(_0x41a56d(0x1b2))/0x4)+parseInt(_0x41a56d(0x1b1))/0x5*(-parseInt(_0x41a56d(0x1b3))/0x6)+-parseInt(_0x41a56d(0x1af))/0x7*(parseInt(_0x41a56d(0x1ab))/0x8)+parseInt(_0x41a56d(0x1b0))/0x9+-parseInt(_0x41a56d(0x1ac))/0xa*(parseInt(_0x41a56d(0x1b5))/0xb)+parseInt(_0x41a56d(0x1aa))/0xc;if(_0x726774===_0x344fde)break;else _0xc05300['push'](_0xc05300['shift']());}catch(_0x2a0592){_0xc05300['push'](_0xc05300['shift']());}}}(a55_0x37fe,0xf21f4));export*from'./types.js';function a55_0x37fe(){var _0x4d39b9=['47332UKzGTl','588378kQEIuu','50xqmEmx','15872549azrxAz','44643672YcHOIw','177304ZbLRJm','10cxeZmb','60527nFwWgJ','84keiGrV','231oPfBlI','10943937iBhjeR','30CzZMfO'];a55_0x37fe=function(){return _0x4d39b9;};return a55_0x37fe();}export*from'./logic.js';export*from'./compare-table.js';export*from'./inquirer.js';export*from'./valid-url.js';export*from'./local-pages.js';function a55_0x4c0c(_0x451e03,_0x593c79){_0x451e03=_0x451e03-0x1aa;var _0x37feb3=a55_0x37fe();var _0x4c0c3d=_0x37feb3[_0x451e03];return _0x4c0c3d;}export*from'./service.js';export*from'./sync-core.js';export*from'./update-core.js';
1
+ function a55_0x2465(_0x1bfb5d,_0x48aaa5){_0x1bfb5d=_0x1bfb5d-0x180;var _0x5ed056=a55_0x5ed0();var _0x246550=_0x5ed056[_0x1bfb5d];return _0x246550;}(function(_0x505e1a,_0x5c2914){var _0x5a9069=a55_0x2465,_0x3725b3=_0x505e1a();while(!![]){try{var _0x53fb7c=parseInt(_0x5a9069(0x187))/0x1+-parseInt(_0x5a9069(0x189))/0x2*(parseInt(_0x5a9069(0x182))/0x3)+parseInt(_0x5a9069(0x185))/0x4*(-parseInt(_0x5a9069(0x184))/0x5)+-parseInt(_0x5a9069(0x18a))/0x6*(-parseInt(_0x5a9069(0x186))/0x7)+parseInt(_0x5a9069(0x188))/0x8+parseInt(_0x5a9069(0x180))/0x9*(-parseInt(_0x5a9069(0x181))/0xa)+parseInt(_0x5a9069(0x183))/0xb;if(_0x53fb7c===_0x5c2914)break;else _0x3725b3['push'](_0x3725b3['shift']());}catch(_0x1761e8){_0x3725b3['push'](_0x3725b3['shift']());}}}(a55_0x5ed0,0x8651c));function a55_0x5ed0(){var _0x7857da=['30smDfNl','9HqHHFj','13696705dXdYAU','575eDyBES','20848iuvhHN','468923UJpsrt','871860arcvwS','4052368ODveiH','629282nAeinC','24pEbLtm','2394126WjtgMv'];a55_0x5ed0=function(){return _0x7857da;};return a55_0x5ed0();}export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x237fed,_0x46436e){const _0x192ee6=a56_0x3090,_0x2132db=_0x237fed();while(!![]){try{const _0x5e90d7=parseInt(_0x192ee6(0x98))/0x1*(parseInt(_0x192ee6(0xb2))/0x2)+-parseInt(_0x192ee6(0xa2))/0x3+-parseInt(_0x192ee6(0xb6))/0x4+-parseInt(_0x192ee6(0x8f))/0x5*(-parseInt(_0x192ee6(0x9f))/0x6)+parseInt(_0x192ee6(0xb1))/0x7*(-parseInt(_0x192ee6(0xa5))/0x8)+parseInt(_0x192ee6(0xa0))/0x9*(-parseInt(_0x192ee6(0xa7))/0xa)+parseInt(_0x192ee6(0x9a))/0xb;if(_0x5e90d7===_0x46436e)break;else _0x2132db['push'](_0x2132db['shift']());}catch(_0x35d703){_0x2132db['push'](_0x2132db['shift']());}}}(a56_0x21b7,0x22ce1));import a56_0x4d5961 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a56_0x40edaf from'ora';import{isUrlReachable}from'./valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x207831){return _0x207831['catch'](_0x204354=>{const _0x3cf9d8=a56_0x3090;if(_0x204354?.[_0x3cf9d8(0xaa)]===_0x3cf9d8(0x96))throw CliErrors['cancelled']('Cancelled.');throw _0x204354;});}export function startSpinner(_0x5110fd){return a56_0x40edaf({'text':_0x5110fd,'color':'cyan'})['start']();}export function stopSpinner(_0x33d627,_0x4b3693,_0x5545f5){const _0x148bdf=a56_0x3090;_0x5545f5?_0x33d627['succeed'](_0x4b3693):_0x33d627[_0x148bdf(0xa3)](_0x4b3693);}function a56_0x3090(_0x3def09,_0x2226d4){_0x3def09=_0x3def09-0x8f;const _0x21b79e=a56_0x21b7();let _0x3090f9=_0x21b79e[_0x3def09];return _0x3090f9;}export async function askConfirm(_0xe0c8ce){return onCancel(confirm({'message':_0xe0c8ce,'theme':{'prefix':''}}));}export async function askJsUrl(_0x4cfd81){const _0x3d4bf3=a56_0x3090;while(!![]){const _0x4e5b7a=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x4cfd81,'theme':{'prefix':''}}));if(_0x4e5b7a[_0x3d4bf3(0x95)]()==='')throw CliErrors['cancelled'](_0x3d4bf3(0xaf));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x4e5b7a[_0x3d4bf3(0x95)]())){console[_0x3d4bf3(0xb0)](a56_0x4d5961[_0x3d4bf3(0x99)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x6a4c71=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x4db9c6=await isUrlReachable(_0x4e5b7a[_0x3d4bf3(0x95)]());stopSpinner(_0x6a4c71,'JS\x20URL\x20checked',_0x4db9c6);if(!_0x4db9c6){console[_0x3d4bf3(0xb0)](a56_0x4d5961[_0x3d4bf3(0x99)](_0x3d4bf3(0x93)));continue;}return _0x4e5b7a[_0x3d4bf3(0x95)]();}catch(_0x2291ac){stopSpinner(_0x6a4c71,'JS\x20URL\x20check\x20failed',![]);throw _0x2291ac;}}}function a56_0x21b7(){const _0x1198d6=['\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','707418hHDSbd','fail','[already\x20on\x20platform]','8jVrxxd','cancelled','2597890UDhgKR','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','test','name','\x20\x20CSS\x20URL:','map','label','isTTY','Cancelled.','error','1771819QQLYBP','6046LVGWGT','CSS\x20URL\x20checked','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','stdin','984812UldvGk','No\x20menus\x20selected.','965xVlQAH','gray','green','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','[new]','trim','ExitPromptError','has','53ToorlF','red','7860424NIdqJY','includes','length','filter','path','8166WZbQBi','9aBtzeS'];a56_0x21b7=function(){return _0x1198d6;};return a56_0x21b7();}export async function askCssUrl(_0x2124c8){const _0x19753e=a56_0x3090;while(!![]){const _0x327e73=await onCancel(input({'message':_0x19753e(0xab),'default':_0x2124c8,'theme':{'prefix':''}}));if(_0x327e73['trim']()==='')throw CliErrors[_0x19753e(0xa6)](_0x19753e(0xaf));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x19753e(0xa9)](_0x327e73[_0x19753e(0x95)]())){console[_0x19753e(0xb0)](a56_0x4d5961['red']('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x120c24=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x408b52=await isUrlReachable(_0x327e73['trim']());stopSpinner(_0x120c24,_0x19753e(0xb3),_0x408b52);if(!_0x408b52){console[_0x19753e(0xb0)](a56_0x4d5961[_0x19753e(0x99)](_0x19753e(0xa1)));continue;}return _0x327e73['trim']();}catch(_0x48ab3d){stopSpinner(_0x120c24,'CSS\x20URL\x20check\x20failed',![]);throw _0x48ab3d;}}}export async function selectPages(_0x58662b,_0x471686,_0x5c42d8){const _0x20627d=a56_0x3090,_0x3dfc1a=_0x58662b[_0x20627d(0xac)](_0xf8e33a=>({'name':_0xf8e33a[_0x20627d(0xad)]+'\x20\x20'+(_0x471686[_0x20627d(0x97)](_0xf8e33a['path'])?a56_0x4d5961[_0x20627d(0x90)](_0x20627d(0xa4)):a56_0x4d5961[_0x20627d(0x91)](_0x20627d(0x94))),'value':_0xf8e33a['label'],'checked':_0x5c42d8?_0x5c42d8[_0x20627d(0x9b)](_0xf8e33a[_0x20627d(0xad)]):!_0x471686[_0x20627d(0x97)](_0xf8e33a[_0x20627d(0x9e)])}));if(_0x3dfc1a[_0x20627d(0x9c)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x595cc5=await onCancel(checkbox({'message':_0x20627d(0xb4),'choices':_0x3dfc1a,'loop':![],'theme':{'prefix':''}}));if(_0x595cc5['length']===0x0)throw new Error(_0x20627d(0xb7));return _0x58662b[_0x20627d(0x9d)](_0x12e645=>_0x595cc5[_0x20627d(0x9b)](_0x12e645[_0x20627d(0xad)]));}export function isInteractive(){const _0x4b7f4f=a56_0x3090;return process[_0x4b7f4f(0xb5)][_0x4b7f4f(0xae)]===!![];}export function requireInteractive(){const _0x42a798=a56_0x3090;if(!isInteractive())throw new Error(_0x42a798(0xa8)+_0x42a798(0x92));}
1
+ (function(_0x517b23,_0x37a05a){const _0x34eda3=a56_0x5b96,_0x474ff1=_0x517b23();while(!![]){try{const _0x457e9c=parseInt(_0x34eda3(0x146))/0x1*(parseInt(_0x34eda3(0x165))/0x2)+parseInt(_0x34eda3(0x160))/0x3+parseInt(_0x34eda3(0x15f))/0x4*(-parseInt(_0x34eda3(0x147))/0x5)+-parseInt(_0x34eda3(0x155))/0x6*(-parseInt(_0x34eda3(0x162))/0x7)+-parseInt(_0x34eda3(0x159))/0x8+parseInt(_0x34eda3(0x14c))/0x9+-parseInt(_0x34eda3(0x14d))/0xa;if(_0x457e9c===_0x37a05a)break;else _0x474ff1['push'](_0x474ff1['shift']());}catch(_0x373b1b){_0x474ff1['push'](_0x474ff1['shift']());}}}(a56_0x41cc,0x5d2bf));import a56_0x2b742d from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a56_0x5d77be from'ora';function a56_0x5b96(_0x55d66b,_0x48b8a0){_0x55d66b=_0x55d66b-0x13a;const _0x41cc10=a56_0x41cc();let _0x5b9619=_0x41cc10[_0x55d66b];return _0x5b9619;}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x2e4d74){const _0x1f8c62=a56_0x5b96;return _0x2e4d74[_0x1f8c62(0x14b)](_0x518ad8=>{const _0x34aec0=_0x1f8c62;if(_0x518ad8?.[_0x34aec0(0x143)]===_0x34aec0(0x152))throw CliErrors[_0x34aec0(0x15a)](_0x34aec0(0x14f));throw _0x518ad8;});}export function startSpinner(_0x4aa526){const _0x35a27d=a56_0x5b96;return a56_0x5d77be({'text':_0x4aa526,'color':_0x35a27d(0x164)})[_0x35a27d(0x13b)]();}function a56_0x41cc(){const _0x407593=['CSS\x20URL\x20checked','1071858DOjdKN','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20JS\x20URL:','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','6056120xfAmoE','cancelled','[new]','\x20\x20Checking\x20JS\x20URL\x20reachability...','label','No\x20menus\x20selected.','4lYwhdq','1453470dNdORZ','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','14DPxTlb','map','cyan','2IoMOeA','includes','start','path','JS\x20URL\x20checked','length','has','\x20\x20Checking\x20CSS\x20URL\x20reachability...','succeed','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','name','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','filter','719639IRPPtj','1531560SOzcvf','green','trim','error','catch','1053801xgKaYJ','2335460eNyDjp','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','Cancelled.','JS\x20URL\x20check\x20failed','red','ExitPromptError','[already\x20on\x20platform]'];a56_0x41cc=function(){return _0x407593;};return a56_0x41cc();}export function stopSpinner(_0x4cf810,_0x579d98,_0x37c59a){const _0x1eeffa=a56_0x5b96;_0x37c59a?_0x4cf810[_0x1eeffa(0x141)](_0x579d98):_0x4cf810['fail'](_0x579d98);}export async function askConfirm(_0x44246a){return onCancel(confirm({'message':_0x44246a,'theme':{'prefix':''}}));}export async function askJsUrl(_0x4e760c){const _0x1d5642=a56_0x5b96;while(!![]){const _0xc295f=await onCancel(input({'message':_0x1d5642(0x157),'default':_0x4e760c,'theme':{'prefix':''}}));if(_0xc295f['trim']()==='')throw CliErrors['cancelled'](_0x1d5642(0x14f));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0xc295f[_0x1d5642(0x149)]())){console[_0x1d5642(0x14a)](a56_0x2b742d['red'](_0x1d5642(0x14e)));continue;}const _0x112c6c=startSpinner(_0x1d5642(0x15c));try{const _0x29be07=await isUrlReachable(_0xc295f[_0x1d5642(0x149)]());stopSpinner(_0x112c6c,_0x1d5642(0x13d),_0x29be07);if(!_0x29be07){console[_0x1d5642(0x14a)](a56_0x2b742d[_0x1d5642(0x151)](_0x1d5642(0x144)));continue;}return _0xc295f[_0x1d5642(0x149)]();}catch(_0x44a278){stopSpinner(_0x112c6c,_0x1d5642(0x150),![]);throw _0x44a278;}}}export async function askCssUrl(_0x112900){const _0x3024cf=a56_0x5b96;while(!![]){const _0x3cdec6=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x112900,'theme':{'prefix':''}}));if(_0x3cdec6[_0x3024cf(0x149)]()==='')throw CliErrors[_0x3024cf(0x15a)](_0x3024cf(0x14f));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x3cdec6[_0x3024cf(0x149)]())){console[_0x3024cf(0x14a)](a56_0x2b742d[_0x3024cf(0x151)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x42776e=startSpinner(_0x3024cf(0x140));try{const _0x267964=await isUrlReachable(_0x3cdec6[_0x3024cf(0x149)]());stopSpinner(_0x42776e,_0x3024cf(0x154),_0x267964);if(!_0x267964){console['error'](a56_0x2b742d[_0x3024cf(0x151)](_0x3024cf(0x142)));continue;}return _0x3cdec6['trim']();}catch(_0x2098e3){stopSpinner(_0x42776e,'CSS\x20URL\x20check\x20failed',![]);throw _0x2098e3;}}}export async function selectPages(_0x144337,_0x1189d8,_0x28b82e){const _0x56c237=a56_0x5b96,_0x30df19=_0x144337[_0x56c237(0x163)](_0x9bf5fb=>({'name':_0x9bf5fb[_0x56c237(0x15d)]+'\x20\x20'+(_0x1189d8['has'](_0x9bf5fb['path'])?a56_0x2b742d['gray'](_0x56c237(0x153)):a56_0x2b742d[_0x56c237(0x148)](_0x56c237(0x15b))),'value':_0x9bf5fb[_0x56c237(0x15d)],'checked':_0x28b82e?_0x28b82e[_0x56c237(0x13a)](_0x9bf5fb['label']):!_0x1189d8[_0x56c237(0x13f)](_0x9bf5fb[_0x56c237(0x13c)])}));if(_0x30df19[_0x56c237(0x13e)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x2520e6=await onCancel(checkbox({'message':_0x56c237(0x161),'choices':_0x30df19,'loop':![],'theme':{'prefix':''}}));if(_0x2520e6[_0x56c237(0x13e)]===0x0)throw new Error(_0x56c237(0x15e));return _0x144337[_0x56c237(0x145)](_0x1a287e=>_0x2520e6[_0x56c237(0x13a)](_0x1a287e[_0x56c237(0x15d)]));}export function isInteractive(){return process['stdin']['isTTY']===!![];}export function requireInteractive(){const _0x2952d3=a56_0x5b96;if(!isInteractive())throw new Error(_0x2952d3(0x156)+_0x2952d3(0x158));}
@@ -1 +1 @@
1
- function a57_0x3cbc(_0x4b5827,_0x152b73){_0x4b5827=_0x4b5827-0x18f;const _0x2340b7=a57_0x2340();let _0x3cbcdf=_0x2340b7[_0x4b5827];return _0x3cbcdf;}(function(_0x43b543,_0x3adadb){const _0x355066=a57_0x3cbc,_0x3021c0=_0x43b543();while(!![]){try{const _0x545cdf=-parseInt(_0x355066(0x1a4))/0x1+parseInt(_0x355066(0x191))/0x2*(-parseInt(_0x355066(0x19a))/0x3)+parseInt(_0x355066(0x19d))/0x4+parseInt(_0x355066(0x19c))/0x5*(-parseInt(_0x355066(0x1a7))/0x6)+-parseInt(_0x355066(0x1a1))/0x7*(parseInt(_0x355066(0x196))/0x8)+parseInt(_0x355066(0x1a6))/0x9+parseInt(_0x355066(0x198))/0xa;if(_0x545cdf===_0x3adadb)break;else _0x3021c0['push'](_0x3021c0['shift']());}catch(_0x2adeaa){_0x3021c0['push'](_0x3021c0['shift']());}}}(a57_0x2340,0xad3b6));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';function a57_0x2340(){const _0x22a24a=['index.tsx','match','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','3570aZAyZT','replaceAll','join','1297292BOBVZs','push','12703833uRnoyL','36156PNStey','isDirectory','replace','224612ONpjwv','.tsx','concat','path','endsWith','8616fMjQOo','slice','22526680OJNmEm','forEach','15tMFZih','split','980bbVOIt','2538164GkcUpo'];a57_0x2340=function(){return _0x22a24a;};return a57_0x2340();}const pagesDir=resolve(process['cwd'](),'src/pages');export function extractTitleFromComment(_0x2ecaf0){const _0x3499c5=a57_0x3cbc;try{const _0x178403=readFileSync(_0x2ecaf0,'utf-8'),_0x16a3fc=_0x178403[_0x3499c5(0x19f)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x16a3fc&&_0x16a3fc[0x1]){const _0x1ba9bf=_0x16a3fc[0x1],_0x809465=_0x1ba9bf[_0x3499c5(0x19f)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x809465&&_0x809465[0x1])return _0x809465[0x1]['trim']();}let _0x492651=null;const _0x20b7ba=_0x178403[_0x3499c5(0x19f)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x20b7ba&&_0x20b7ba[0x1]&&(_0x492651=_0x20b7ba[0x1]);if(!_0x492651){const _0x55766d=_0x178403['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x55766d&&_0x55766d[0x1]&&(_0x492651=_0x55766d[0x1]);}if(_0x492651){const _0x94d227=new RegExp('\x5cb'+_0x492651+_0x3499c5(0x1a0)),_0x336090=_0x178403[_0x3499c5(0x19f)](_0x94d227);if(_0x336090&&_0x336090[0x1])return _0x336090[0x1];return _0x492651;}return null;}catch(_0x43db87){return null;}}export function getLocalPages(_0x4cb0e6=pagesDir,_0x2dd13a=pagesDir){const _0x1622c0=a57_0x3cbc;let _0x1bd19d=[];const _0x5664a3=readdirSync(_0x4cb0e6);return _0x5664a3[_0x1622c0(0x199)](_0x440fff=>{const _0x57d5d7=_0x1622c0,_0x518ccd=join(_0x4cb0e6,_0x440fff),_0x24ebbd=statSync(_0x518ccd);if(_0x24ebbd&&_0x24ebbd[_0x57d5d7(0x18f)]())_0x1bd19d=_0x1bd19d[_0x57d5d7(0x193)](getLocalPages(_0x518ccd,_0x2dd13a));else{if(_0x440fff[_0x57d5d7(0x195)](_0x57d5d7(0x192))){let _0x51c344=relative(_0x2dd13a,_0x518ccd);_0x51c344[_0x57d5d7(0x195)](_0x57d5d7(0x19e))?_0x51c344=_0x51c344[_0x57d5d7(0x190)](/index\.tsx$/,''):_0x51c344=_0x51c344[_0x57d5d7(0x190)](/\.tsx$/,'');_0x51c344[_0x57d5d7(0x195)](sep)&&(_0x51c344=_0x51c344[_0x57d5d7(0x197)](0x0,-0x1));const _0x5d7f5d=_0x51c344[_0x57d5d7(0x19b)](sep)[_0x57d5d7(0x1a3)]('/'),_0x1fd986=extractTitleFromComment(_0x518ccd),_0x266742=_0x1fd986||_0x5d7f5d;_0x1bd19d[_0x57d5d7(0x1a5)]({'path':_0x5d7f5d[_0x57d5d7(0x1a2)]('$',':'),'label':_0x266742});}}}),_0x1bd19d['filter'](_0x327b27=>_0x327b27[_0x1622c0(0x194)]!=='');}
1
+ const a57_0x51d0b3=a57_0x1415;(function(_0x4f222a,_0x2d0b4a){const _0x2d2c0a=a57_0x1415,_0x25f788=_0x4f222a();while(!![]){try{const _0x39f271=parseInt(_0x2d2c0a(0xdc))/0x1*(-parseInt(_0x2d2c0a(0xdd))/0x2)+parseInt(_0x2d2c0a(0xce))/0x3+parseInt(_0x2d2c0a(0xdb))/0x4*(-parseInt(_0x2d2c0a(0xcf))/0x5)+parseInt(_0x2d2c0a(0xe3))/0x6+parseInt(_0x2d2c0a(0xd6))/0x7*(-parseInt(_0x2d2c0a(0xd1))/0x8)+-parseInt(_0x2d2c0a(0xd9))/0x9*(parseInt(_0x2d2c0a(0xd8))/0xa)+-parseInt(_0x2d2c0a(0xe5))/0xb*(parseInt(_0x2d2c0a(0xcc))/0xc);if(_0x39f271===_0x2d0b4a)break;else _0x25f788['push'](_0x25f788['shift']());}catch(_0x2c51dc){_0x25f788['push'](_0x25f788['shift']());}}}(a57_0x3718,0x996de));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a57_0x51d0b3(0xd4)](),a57_0x51d0b3(0xd3));export function extractTitleFromComment(_0x53aac3){const _0x127403=a57_0x51d0b3;try{const _0x59e34b=readFileSync(_0x53aac3,_0x127403(0xde)),_0x2d332a=_0x59e34b[_0x127403(0xcb)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x2d332a&&_0x2d332a[0x1]){const _0x31a838=_0x2d332a[0x1],_0x3e21bf=_0x31a838[_0x127403(0xcb)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x3e21bf&&_0x3e21bf[0x1])return _0x3e21bf[0x1][_0x127403(0xcd)]();}let _0x31a97e=null;const _0x19e5e6=_0x59e34b['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x19e5e6&&_0x19e5e6[0x1]&&(_0x31a97e=_0x19e5e6[0x1]);if(!_0x31a97e){const _0x2b21c6=_0x59e34b[_0x127403(0xcb)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x2b21c6&&_0x2b21c6[0x1]&&(_0x31a97e=_0x2b21c6[0x1]);}if(_0x31a97e){const _0x542f88=new RegExp('\x5cb'+_0x31a97e+_0x127403(0xd7)),_0x7ad24c=_0x59e34b['match'](_0x542f88);if(_0x7ad24c&&_0x7ad24c[0x1])return _0x7ad24c[0x1];return _0x31a97e;}return null;}catch(_0x476710){return null;}}function a57_0x1415(_0x35b1ee,_0x200370){_0x35b1ee=_0x35b1ee-0xca;const _0x3718e9=a57_0x3718();let _0x14155e=_0x3718e9[_0x35b1ee];return _0x14155e;}export function getLocalPages(_0x4f0010=pagesDir,_0x5453f5=pagesDir){const _0x425e5e=a57_0x51d0b3;let _0x2e407d=[];const _0x19ccf4=readdirSync(_0x4f0010);return _0x19ccf4['forEach'](_0x2f6fc2=>{const _0x1d8bd9=a57_0x1415,_0x5287e9=join(_0x4f0010,_0x2f6fc2),_0x3eb8cf=statSync(_0x5287e9);if(_0x3eb8cf&&_0x3eb8cf[_0x1d8bd9(0xe0)]())_0x2e407d=_0x2e407d[_0x1d8bd9(0xe2)](getLocalPages(_0x5287e9,_0x5453f5));else{if(_0x2f6fc2['endsWith'](_0x1d8bd9(0xe1))){let _0x2cf7a0=relative(_0x5453f5,_0x5287e9);_0x2cf7a0[_0x1d8bd9(0xdf)](_0x1d8bd9(0xda))?_0x2cf7a0=_0x2cf7a0[_0x1d8bd9(0xd5)](/index\.tsx$/,''):_0x2cf7a0=_0x2cf7a0['replace'](/\.tsx$/,'');_0x2cf7a0[_0x1d8bd9(0xdf)](sep)&&(_0x2cf7a0=_0x2cf7a0[_0x1d8bd9(0xd0)](0x0,-0x1));const _0x1cd101=_0x2cf7a0['split'](sep)[_0x1d8bd9(0xca)]('/'),_0x277419=extractTitleFromComment(_0x5287e9),_0x20316c=_0x277419||_0x1cd101;_0x2e407d['push']({'path':_0x1cd101[_0x1d8bd9(0xe4)]('$',':'),'label':_0x20316c});}}}),_0x2e407d['filter'](_0x14ceae=>_0x14ceae[_0x425e5e(0xd2)]!=='');}function a57_0x3718(){const _0x32ef39=['cwd','replace','91588pTtqXh','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','10bVXrwi','1204245VXgiGA','index.tsx','157772FHgzWr','51643REKZyB','10eRvbrK','utf-8','endsWith','isDirectory','.tsx','concat','6138252VYgEGE','replaceAll','1683eGYtXo','join','match','31476TSAeia','trim','1824834DyMPTb','5GedZMo','slice','104SozQNU','path','src/pages'];a57_0x3718=function(){return _0x32ef39;};return a57_0x3718();}
@@ -1 +1 @@
1
- (function(_0x4345ce,_0x55e3fd){const _0x154b83=a58_0x3787,_0x2349f0=_0x4345ce();while(!![]){try{const _0x16f162=parseInt(_0x154b83(0xc0))/0x1*(parseInt(_0x154b83(0xc1))/0x2)+-parseInt(_0x154b83(0xcd))/0x3*(-parseInt(_0x154b83(0xd0))/0x4)+parseInt(_0x154b83(0xc9))/0x5*(-parseInt(_0x154b83(0xd5))/0x6)+parseInt(_0x154b83(0xde))/0x7+parseInt(_0x154b83(0xda))/0x8*(-parseInt(_0x154b83(0xd1))/0x9)+parseInt(_0x154b83(0xca))/0xa*(parseInt(_0x154b83(0xd9))/0xb)+-parseInt(_0x154b83(0xdf))/0xc*(parseInt(_0x154b83(0xd7))/0xd);if(_0x16f162===_0x55e3fd)break;else _0x2349f0['push'](_0x2349f0['shift']());}catch(_0x5b9bbc){_0x2349f0['push'](_0x2349f0['shift']());}}}(a58_0x15ec,0xe7d1c));import{getLocalPages}from'./local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'./service.js';function a58_0x15ec(){const _0x20dbd7=['282YGyNWc','allSettled','errors','9608vQmiho','18khBZJh','CSS\x20URL\x20is\x20unreachable','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','has','162oQmtVN','find','13FXmRWa','path','197857seQgUH','208832ccWbSo','No\x20local\x20pages\x20matched\x20labels:\x20','join','rejected','8926351YjgiRT','22430748kZJpor','131932QbdFWh','8VjipbA','status','filter','resources','map','trim','length','JS\x20URL\x20is\x20unreachable','20565foeizK','530fJLFRM','label','push'];a58_0x15ec=function(){return _0x20dbd7;};return a58_0x15ec();}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'./valid-url.js';export function validateJsUrl(_0x1aab9c){const _0x523412=a58_0x3787,_0x267b89=[];return!isValidJsHttpsUrl(_0x1aab9c)&&_0x267b89[_0x523412(0xcc)](_0x523412(0xd3)),{'ok':_0x267b89[_0x523412(0xc7)]===0x0,'errors':_0x267b89};}export function validateCssUrl(_0x236774){const _0x48361f=a58_0x3787,_0x565af9=[];return!isValidCssHttpsUrl(_0x236774)&&_0x565af9['push']('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x565af9[_0x48361f(0xc7)]===0x0,'errors':_0x565af9};}export async function validateJsUrlReachable(_0x1675bd){const _0x77da44=a58_0x3787,_0x323e57=validateJsUrl(_0x1675bd);if(!_0x323e57['ok'])return _0x323e57;const _0x4963c1=await isUrlReachable(_0x1675bd);if(!_0x4963c1)_0x323e57[_0x77da44(0xcf)][_0x77da44(0xcc)](_0x77da44(0xc8));return{'ok':_0x323e57['errors'][_0x77da44(0xc7)]===0x0,'errors':_0x323e57[_0x77da44(0xcf)]};}export async function validateCssUrlReachable(_0x47736f){const _0x432602=a58_0x3787,_0x500920=validateCssUrl(_0x47736f);if(!_0x500920['ok'])return _0x500920;const _0xc74093=await isUrlReachable(_0x47736f);if(!_0xc74093)_0x500920[_0x432602(0xcf)][_0x432602(0xcc)](_0x432602(0xd2));return{'ok':_0x500920[_0x432602(0xcf)][_0x432602(0xc7)]===0x0,'errors':_0x500920[_0x432602(0xcf)]};}export function buildCompareRows(_0x4e3dad,_0x4ad9e3){const _0x136683=a58_0x3787;return _0x4e3dad[_0x136683(0xc5)](_0x3346c8=>({'label':_0x3346c8[_0x136683(0xcb)],'path':_0x3346c8[_0x136683(0xd8)],'local':!![],'online':_0x4ad9e3[_0x136683(0xd4)](_0x3346c8[_0x136683(0xd8)])}));}function a58_0x3787(_0x4d04ce,_0x4e2290){_0x4d04ce=_0x4d04ce-0xc0;const _0x15ecde=a58_0x15ec();let _0x3787e7=_0x15ecde[_0x4d04ce];return _0x3787e7;}export function filterNewPages(_0x38c868,_0x23d86f,_0x2eb1b2){const _0x4958b6=a58_0x3787;if(_0x2eb1b2&&_0x2eb1b2[_0x4958b6(0xc7)]>0x0){const _0x2196fa=new Set(_0x2eb1b2[_0x4958b6(0xc5)](_0x5e4e3c=>_0x5e4e3c[_0x4958b6(0xc6)]())),_0x555e57=_0x38c868[_0x4958b6(0xc3)](_0x1929c2=>_0x2196fa[_0x4958b6(0xd4)](_0x1929c2[_0x4958b6(0xcb)]));if(_0x555e57[_0x4958b6(0xc7)]===0x0)throw new Error(_0x4958b6(0xdb)+[..._0x2196fa][_0x4958b6(0xdc)](',\x20'));return _0x555e57;}return _0x38c868[_0x4958b6(0xc3)](_0x3ca7d9=>!_0x23d86f['has'](_0x3ca7d9[_0x4958b6(0xd8)]));}export function filterPagesByLabels(_0x47520a,_0x516eac){const _0x3f92ab=a58_0x3787,_0x3309ac=[],_0x585b22=[];for(const _0xbf1ba of _0x516eac){const _0x3e5fb7=_0xbf1ba[_0x3f92ab(0xc6)](),_0x286d10=_0x47520a[_0x3f92ab(0xd6)](_0x44655b=>_0x44655b[_0x3f92ab(0xcb)]===_0x3e5fb7);if(_0x286d10)_0x3309ac[_0x3f92ab(0xcc)](_0x286d10);else _0x585b22[_0x3f92ab(0xcc)](_0xbf1ba);}return{'matched':_0x3309ac,'unmatched':_0x585b22};}export async function doCreateMenus(_0x2e873f,_0xd5b8ff,_0x4f73fe,_0x41227d){const _0x528b9a=a58_0x3787;return await createMenus(_0x2e873f,_0xd5b8ff,_0x4f73fe,_0x41227d),{'created':_0x4f73fe[_0x528b9a(0xc7)],'failed':0x0,'labels':_0x4f73fe['map'](_0x43debc=>_0x43debc[_0x528b9a(0xcb)])};}export function filterMenusWithResources(_0x297ae3){const _0xb8686=a58_0x3787;return _0x297ae3[_0xb8686(0xc3)](_0x247ad1=>_0x247ad1[_0xb8686(0xc4)][_0xb8686(0xc7)]>0x0);}export async function doUpdateCdnUrls(_0x3dcdad,_0x5955f6,_0x1c7905,_0xddb7e){const _0x9f9f4b=a58_0x3787,_0x3e8070=_0x1c7905[_0x9f9f4b(0xc3)](_0x1f0f46=>_0x1f0f46[_0x9f9f4b(0xc4)][_0x9f9f4b(0xc7)]>0x0),_0x1e8b32=await Promise[_0x9f9f4b(0xce)](_0x3e8070['map'](_0x30d2f8=>updateMenuCdnUrl(_0x3dcdad,_0x5955f6,{'id':_0x30d2f8['id'],'label':_0x30d2f8[_0x9f9f4b(0xcb)],'path':_0x30d2f8[_0x9f9f4b(0xd8)],'resources':_0xddb7e}))),_0x2892fe=_0x1e8b32[_0x9f9f4b(0xc3)](_0x259d0c=>_0x259d0c[_0x9f9f4b(0xc2)]===_0x9f9f4b(0xdd))[_0x9f9f4b(0xc7)];return{'updated':_0x3e8070['length']-_0x2892fe,'failed':_0x2892fe};}export async function fetchMenuData(_0x4708c4,_0xe432b8){const _0x28d4e5=a58_0x3787,_0x579ec5=getLocalPages(),_0x33dc3c=await getOnlineMenuList(_0x4708c4,_0xe432b8),_0x23db90=new Set(_0x33dc3c[_0x28d4e5(0xc5)](_0x5d186a=>_0x5d186a[_0x28d4e5(0xd8)]));return{'localPages':_0x579ec5,'onlineMenuList':_0x33dc3c,'onlinePaths':_0x23db90};}export async function fetchOnlineMenuList(_0x470d37,_0x7b4699){return getOnlineMenuList(_0x470d37,_0x7b4699);}
1
+ (function(_0x5c93b2,_0x10ce3b){const _0x3c4a47=a58_0x2300,_0x3f84ff=_0x5c93b2();while(!![]){try{const _0x4871c6=-parseInt(_0x3c4a47(0x1b4))/0x1*(-parseInt(_0x3c4a47(0x1ca))/0x2)+-parseInt(_0x3c4a47(0x1ba))/0x3+parseInt(_0x3c4a47(0x1c2))/0x4*(-parseInt(_0x3c4a47(0x1c9))/0x5)+-parseInt(_0x3c4a47(0x1b8))/0x6+-parseInt(_0x3c4a47(0x1cc))/0x7+-parseInt(_0x3c4a47(0x1c8))/0x8*(-parseInt(_0x3c4a47(0x1bc))/0x9)+-parseInt(_0x3c4a47(0x1c0))/0xa*(-parseInt(_0x3c4a47(0x1bf))/0xb);if(_0x4871c6===_0x10ce3b)break;else _0x3f84ff['push'](_0x3f84ff['shift']());}catch(_0x455813){_0x3f84ff['push'](_0x3f84ff['shift']());}}}(a58_0x2185,0x6e54c));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a58_0x2185(){const _0x57e13a=['JS\x20URL\x20is\x20unreachable','3317208MYrYTA','join','length','has','resources','push','40488zWtYPf','5iGkExQ','2VwCLdE','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','1930460NzxTpB','CSS\x20URL\x20is\x20unreachable','label','find','allSettled','708207SNFolZ','path','trim','rejected','1559214UpNAIO','map','2054700cEBcQF','filter','1395BRyedX','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','errors','11100155HacNDH','10ZxJCxI'];a58_0x2185=function(){return _0x57e13a;};return a58_0x2185();}function a58_0x2300(_0x503e7d,_0x2238f4){_0x503e7d=_0x503e7d-0x1b0;const _0x21857c=a58_0x2185();let _0x2300cb=_0x21857c[_0x503e7d];return _0x2300cb;}export function validateJsUrl(_0x5ba315){const _0x54d97e=a58_0x2300,_0x10584b=[];return!isValidJsHttpsUrl(_0x5ba315)&&_0x10584b['push'](_0x54d97e(0x1cb)),{'ok':_0x10584b[_0x54d97e(0x1c4)]===0x0,'errors':_0x10584b};}export function validateCssUrl(_0xb2755f){const _0x269822=a58_0x2300,_0x37abd8=[];return!isValidCssHttpsUrl(_0xb2755f)&&_0x37abd8[_0x269822(0x1c7)](_0x269822(0x1bd)),{'ok':_0x37abd8[_0x269822(0x1c4)]===0x0,'errors':_0x37abd8};}export async function validateJsUrlReachable(_0x4ad27e){const _0x257590=a58_0x2300,_0x4fa320=validateJsUrl(_0x4ad27e);if(!_0x4fa320['ok'])return _0x4fa320;const _0x7e4b38=await isUrlReachable(_0x4ad27e);if(!_0x7e4b38)_0x4fa320[_0x257590(0x1be)]['push'](_0x257590(0x1c1));return{'ok':_0x4fa320['errors']['length']===0x0,'errors':_0x4fa320['errors']};}export async function validateCssUrlReachable(_0x3f604e){const _0x459494=a58_0x2300,_0x3fc7ea=validateCssUrl(_0x3f604e);if(!_0x3fc7ea['ok'])return _0x3fc7ea;const _0x51ddbc=await isUrlReachable(_0x3f604e);if(!_0x51ddbc)_0x3fc7ea['errors'][_0x459494(0x1c7)](_0x459494(0x1b0));return{'ok':_0x3fc7ea[_0x459494(0x1be)]['length']===0x0,'errors':_0x3fc7ea[_0x459494(0x1be)]};}export function buildCompareRows(_0x314fe9,_0x15245d){const _0x57d4ea=a58_0x2300;return _0x314fe9[_0x57d4ea(0x1b9)](_0x25a227=>({'label':_0x25a227[_0x57d4ea(0x1b1)],'path':_0x25a227[_0x57d4ea(0x1b5)],'local':!![],'online':_0x15245d[_0x57d4ea(0x1c5)](_0x25a227[_0x57d4ea(0x1b5)])}));}export function filterNewPages(_0x1c4958,_0x591ae0,_0x10b5be){const _0x4fbfd2=a58_0x2300;if(_0x10b5be&&_0x10b5be['length']>0x0){const _0x59256f=new Set(_0x10b5be[_0x4fbfd2(0x1b9)](_0x5d8722=>_0x5d8722[_0x4fbfd2(0x1b6)]())),_0x21f0b8=_0x1c4958[_0x4fbfd2(0x1bb)](_0x4440bd=>_0x59256f[_0x4fbfd2(0x1c5)](_0x4440bd['label']));if(_0x21f0b8[_0x4fbfd2(0x1c4)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x59256f][_0x4fbfd2(0x1c3)](',\x20'));return _0x21f0b8;}return _0x1c4958[_0x4fbfd2(0x1bb)](_0x2814a=>!_0x591ae0[_0x4fbfd2(0x1c5)](_0x2814a[_0x4fbfd2(0x1b5)]));}export function filterPagesByLabels(_0x39711e,_0x2d1b64){const _0x42b83a=a58_0x2300,_0x416ed3=[],_0x42e39b=[];for(const _0x3c6b21 of _0x2d1b64){const _0x2257d2=_0x3c6b21[_0x42b83a(0x1b6)](),_0x30bd3d=_0x39711e[_0x42b83a(0x1b2)](_0x12698c=>_0x12698c[_0x42b83a(0x1b1)]===_0x2257d2);if(_0x30bd3d)_0x416ed3[_0x42b83a(0x1c7)](_0x30bd3d);else _0x42e39b[_0x42b83a(0x1c7)](_0x3c6b21);}return{'matched':_0x416ed3,'unmatched':_0x42e39b};}export async function doCreateMenus(_0x1f330a,_0xa868c9,_0x1770e6,_0x3c10f7){const _0x3b4cb9=a58_0x2300;return await createMenus(_0x1f330a,_0xa868c9,_0x1770e6,_0x3c10f7),{'created':_0x1770e6[_0x3b4cb9(0x1c4)],'failed':0x0,'labels':_0x1770e6[_0x3b4cb9(0x1b9)](_0x33afba=>_0x33afba[_0x3b4cb9(0x1b1)])};}export function filterMenusWithResources(_0x4bdf77){const _0x49f942=a58_0x2300;return _0x4bdf77[_0x49f942(0x1bb)](_0x348b22=>_0x348b22[_0x49f942(0x1c6)]['length']>0x0);}export async function doUpdateCdnUrls(_0x215543,_0xffad4f,_0x496529,_0x242547){const _0x1869af=a58_0x2300,_0x584d46=_0x496529[_0x1869af(0x1bb)](_0x20f42e=>_0x20f42e[_0x1869af(0x1c6)]['length']>0x0),_0x2898bd=await Promise[_0x1869af(0x1b3)](_0x584d46[_0x1869af(0x1b9)](_0x495fdb=>updateMenuCdnUrl(_0x215543,_0xffad4f,{'id':_0x495fdb['id'],'label':_0x495fdb[_0x1869af(0x1b1)],'path':_0x495fdb[_0x1869af(0x1b5)],'resources':_0x242547}))),_0x38c214=_0x2898bd[_0x1869af(0x1bb)](_0x2bc5ed=>_0x2bc5ed['status']===_0x1869af(0x1b7))[_0x1869af(0x1c4)];return{'updated':_0x584d46[_0x1869af(0x1c4)]-_0x38c214,'failed':_0x38c214};}export async function fetchMenuData(_0x69447c,_0xfbd1ca){const _0x4a4551=a58_0x2300,_0x49190f=getLocalPages(),_0x53bcec=await getOnlineMenuList(_0x69447c,_0xfbd1ca),_0x5e47ee=new Set(_0x53bcec[_0x4a4551(0x1b9)](_0x345434=>_0x345434[_0x4a4551(0x1b5)]));return{'localPages':_0x49190f,'onlineMenuList':_0x53bcec,'onlinePaths':_0x5e47ee};}export async function fetchOnlineMenuList(_0x2043bb,_0x46e3c2){return getOnlineMenuList(_0x2043bb,_0x46e3c2);}
@@ -1 +1 @@
1
- (function(_0x537a1b,_0x1ec984){const _0x26241c=a59_0x9102,_0x44f488=_0x537a1b();while(!![]){try{const _0x4afbd3=parseInt(_0x26241c(0x153))/0x1*(-parseInt(_0x26241c(0x148))/0x2)+-parseInt(_0x26241c(0x142))/0x3+-parseInt(_0x26241c(0x140))/0x4+-parseInt(_0x26241c(0x15c))/0x5+-parseInt(_0x26241c(0x163))/0x6*(-parseInt(_0x26241c(0x15a))/0x7)+-parseInt(_0x26241c(0x13c))/0x8+parseInt(_0x26241c(0x146))/0x9*(parseInt(_0x26241c(0x143))/0xa);if(_0x4afbd3===_0x1ec984)break;else _0x44f488['push'](_0x44f488['shift']());}catch(_0x802e29){_0x44f488['push'](_0x44f488['shift']());}}}(a59_0x1cf6,0x44aa9));import{getApiDomain}from'../../../constant/domain.js';function a59_0x9102(_0x4e72c2,_0x49c489){_0x4e72c2=_0x4e72c2-0x139;const _0x1cf6b3=a59_0x1cf6();let _0x91021e=_0x1cf6b3[_0x4e72c2];return _0x91021e;}import{getEnv}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';function a59_0x1cf6(){const _0x329d75=['Batch\x20menu\x20creation\x20completed,\x20total\x20','resources','update-menu-cdn-url','all','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','POST','create-menu','57DMxYcH','Menu\x20created\x20successfully:\x20','map','stringify','create-menus','Fetched\x20','/smartapi/menu/create','72947QwYAVE','label','842510GgZFhs','Menu\x20assets\x20synced:\x20','Updating\x20menu\x20asset\x20links:\x20','Creating\x20menu:\x20','isArray','Create\x20menu\x20\x22','get-online-menu-list','6iVJZeh','children','/smartapi/menu/update','Fetch\x20menu\x20list','Server\x20returned\x20empty\x20menu\x20list','3613504gwQBAG','procode','extend','info','233552xvpPOH','parse','304479uwmPIM','1420CwZGut','length','Update\x20menu\x20assets\x20\x22','90837RDjkQV','path','13414gGHiga','import','online','/smartapi/menu/find?appCode='];a59_0x1cf6=function(){return _0x329d75;};return a59_0x1cf6();}import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x58076d,_0x4e2207){const _0x5afd73=a59_0x9102,_0xc2d403=getEnv();logger[_0x5afd73(0x13f)](_0x5afd73(0x162),_0xc2d403===_0x5afd73(0x14a)?_0x5afd73(0x150)+_0x58076d+')':'Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20'+_0x58076d+')');const _0x2d991a=await platformFetch(getApiDomain()+_0x5afd73(0x14b)+_0x58076d,{'cookie':_0x4e2207,'label':_0x5afd73(0x13a)});if(!_0x2d991a)return logger[_0x5afd73(0x13f)](_0x5afd73(0x162),_0x5afd73(0x13b)),[];return logger[_0x5afd73(0x13f)](_0x5afd73(0x162),_0x5afd73(0x158)+_0x2d991a[_0x5afd73(0x144)]+'\x20online\x20menus\x20successfully'),_0x2d991a[_0x5afd73(0x155)](flattenMenuItem)['flat']();}function flattenMenuItem(_0x5c76d3){const _0x703f1e=a59_0x9102;let _0x2108ee=[];try{if(_0x5c76d3[_0x703f1e(0x13e)]?.[_0x703f1e(0x14d)]){const _0x138672=JSON[_0x703f1e(0x141)](_0x5c76d3[_0x703f1e(0x13e)][_0x703f1e(0x14d)]);if(Array[_0x703f1e(0x160)](_0x138672))_0x2108ee=_0x138672;}}catch{}const _0x46a019=[{'id':_0x5c76d3['id'],'path':_0x5c76d3[_0x703f1e(0x147)],'label':_0x5c76d3[_0x703f1e(0x15b)],'resources':_0x2108ee}];if(_0x5c76d3['children']&&_0x5c76d3[_0x703f1e(0x164)][_0x703f1e(0x144)]>0x0)for(const _0x51de8c of _0x5c76d3[_0x703f1e(0x164)]){_0x46a019['push'](...flattenMenuItem(_0x51de8c));}return _0x46a019;}export async function createMenu(_0x37e76f,_0x136955,_0x5ee12c){const _0x3f3201=a59_0x9102;logger[_0x3f3201(0x13f)]('create-menu',_0x3f3201(0x15f)+_0x5ee12c[_0x3f3201(0x15b)]+'\x20('+_0x5ee12c[_0x3f3201(0x147)]+')');const _0x17d4c2={'appCode':_0x37e76f,'type':_0x3f3201(0x13d),'sort':0x0,'extend':{'loadScriptMode':_0x3f3201(0x149),'resources':_0x5ee12c[_0x3f3201(0x14d)]?JSON[_0x3f3201(0x156)](_0x5ee12c[_0x3f3201(0x14d)]):undefined},..._0x5ee12c};await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':'POST','body':_0x17d4c2,'cookie':_0x136955,'label':_0x3f3201(0x161)+_0x5ee12c[_0x3f3201(0x15b)]+'\x22'}),logger[_0x3f3201(0x13f)](_0x3f3201(0x152),_0x3f3201(0x154)+_0x5ee12c[_0x3f3201(0x15b)]);}async function createSingleMenu(_0x5be101,_0x11c674,_0x30809f,_0x155bd1){const _0x2fe08c=a59_0x9102,_0x388a41={'appCode':_0x5be101,'type':_0x2fe08c(0x13d),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x155bd1?JSON[_0x2fe08c(0x156)](_0x155bd1):undefined},'label':_0x30809f[_0x2fe08c(0x15b)],'path':_0x30809f[_0x2fe08c(0x147)]};await platformFetch(getApiDomain()+_0x2fe08c(0x159),{'method':_0x2fe08c(0x151),'body':_0x388a41,'cookie':_0x11c674,'label':_0x2fe08c(0x161)+_0x30809f[_0x2fe08c(0x15b)]+'\x22'}),logger[_0x2fe08c(0x13f)](_0x2fe08c(0x152),'Menu\x20created\x20successfully:\x20'+_0x30809f['label']);}export async function createMenus(_0xf9be56,_0x5addee,_0x3e33f2,_0x563e18){const _0x462592=a59_0x9102;logger[_0x462592(0x13f)](_0x462592(0x157),'Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x3e33f2[_0x462592(0x144)]),await Promise[_0x462592(0x14f)](_0x3e33f2[_0x462592(0x155)](_0x3c97bc=>createSingleMenu(_0xf9be56,_0x5addee,_0x3c97bc,_0x563e18))),logger[_0x462592(0x13f)](_0x462592(0x157),_0x462592(0x14c)+_0x3e33f2['length']);}export async function updateMenuCdnUrl(_0x55fdce,_0x5203ff,_0x1b9119){const _0x5aa595=a59_0x9102;logger['info'](_0x5aa595(0x14e),_0x5aa595(0x15e)+_0x1b9119[_0x5aa595(0x15b)]+'\x20('+_0x1b9119[_0x5aa595(0x147)]+')');const _0x37a818={'id':_0x1b9119['id'],'appCode':_0x55fdce,'extend':{'loadScriptMode':_0x5aa595(0x149),'resources':_0x1b9119['resources']?JSON['stringify'](_0x1b9119[_0x5aa595(0x14d)]):undefined}};await platformFetch(getApiDomain()+_0x5aa595(0x139),{'method':_0x5aa595(0x151),'body':_0x37a818,'cookie':_0x5203ff,'label':_0x5aa595(0x145)+_0x1b9119['label']+'\x22'}),logger['info'](_0x5aa595(0x14e),_0x5aa595(0x15d)+_0x1b9119[_0x5aa595(0x15b)],undefined);}
1
+ (function(_0x31aad8,_0x2275e2){const _0x1d2632=a59_0x544f,_0x1fc36f=_0x31aad8();while(!![]){try{const _0x1464b9=-parseInt(_0x1d2632(0x16d))/0x1*(parseInt(_0x1d2632(0x15d))/0x2)+parseInt(_0x1d2632(0x176))/0x3+-parseInt(_0x1d2632(0x161))/0x4+-parseInt(_0x1d2632(0x164))/0x5+parseInt(_0x1d2632(0x16a))/0x6+-parseInt(_0x1d2632(0x177))/0x7+parseInt(_0x1d2632(0x166))/0x8;if(_0x1464b9===_0x2275e2)break;else _0x1fc36f['push'](_0x1fc36f['shift']());}catch(_0x495436){_0x1fc36f['push'](_0x1fc36f['shift']());}}}(a59_0x4ea2,0x902f4));import{getApiDomain}from'../../../constant/domain.js';import{getEnv}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';function a59_0x544f(_0x58be57,_0xfbc89){_0x58be57=_0x58be57-0x14f;const _0x4ea26a=a59_0x4ea2();let _0x544f65=_0x4ea26a[_0x58be57];return _0x544f65;}import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x5d98ea,_0x309e07){const _0x3c7a10=a59_0x544f,_0x3ee59d=getEnv();logger['info']('get-online-menu-list',_0x3ee59d===_0x3c7a10(0x168)?_0x3c7a10(0x169)+_0x5d98ea+')':_0x3c7a10(0x159)+_0x5d98ea+')');const _0x17ee6c=await platformFetch(getApiDomain()+_0x3c7a10(0x16b)+_0x5d98ea,{'cookie':_0x309e07,'label':'Fetch\x20menu\x20list'});if(!_0x17ee6c)return logger[_0x3c7a10(0x15f)](_0x3c7a10(0x173),_0x3c7a10(0x170)),[];return logger[_0x3c7a10(0x15f)]('get-online-menu-list',_0x3c7a10(0x16c)+_0x17ee6c['length']+_0x3c7a10(0x156)),_0x17ee6c['map'](flattenMenuItem)[_0x3c7a10(0x17b)]();}function flattenMenuItem(_0x6bb102){const _0x580769=a59_0x544f;let _0x237517=[];try{if(_0x6bb102['extend']?.[_0x580769(0x152)]){const _0x387eb6=JSON[_0x580769(0x14f)](_0x6bb102[_0x580769(0x151)][_0x580769(0x152)]);if(Array[_0x580769(0x154)](_0x387eb6))_0x237517=_0x387eb6;}}catch{}const _0x41f672=[{'id':_0x6bb102['id'],'path':_0x6bb102[_0x580769(0x179)],'label':_0x6bb102[_0x580769(0x155)],'resources':_0x237517}];if(_0x6bb102['children']&&_0x6bb102[_0x580769(0x167)][_0x580769(0x172)]>0x0)for(const _0x48983b of _0x6bb102[_0x580769(0x167)]){_0x41f672[_0x580769(0x17a)](...flattenMenuItem(_0x48983b));}return _0x41f672;}export async function createMenu(_0xf8f109,_0x1ad62e,_0x2990d5){const _0x2bdeb5=a59_0x544f;logger['info']('create-menu',_0x2bdeb5(0x160)+_0x2990d5['label']+'\x20('+_0x2990d5[_0x2bdeb5(0x179)]+')');const _0x17801a={'appCode':_0xf8f109,'type':_0x2bdeb5(0x175),'sort':0x0,'extend':{'loadScriptMode':_0x2bdeb5(0x16f),'resources':_0x2990d5[_0x2bdeb5(0x152)]?JSON['stringify'](_0x2990d5[_0x2bdeb5(0x152)]):undefined},..._0x2990d5};await platformFetch(getApiDomain()+_0x2bdeb5(0x163),{'method':_0x2bdeb5(0x174),'body':_0x17801a,'cookie':_0x1ad62e,'label':_0x2bdeb5(0x15e)+_0x2990d5[_0x2bdeb5(0x155)]+'\x22'}),logger[_0x2bdeb5(0x15f)]('create-menu',_0x2bdeb5(0x162)+_0x2990d5[_0x2bdeb5(0x155)]);}async function createSingleMenu(_0x594942,_0x133a22,_0x1a21f7,_0x433735){const _0x4405fe=a59_0x544f,_0xf00ec3={'appCode':_0x594942,'type':_0x4405fe(0x175),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x433735?JSON[_0x4405fe(0x16e)](_0x433735):undefined},'label':_0x1a21f7[_0x4405fe(0x155)],'path':_0x1a21f7[_0x4405fe(0x179)]};await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':_0x4405fe(0x174),'body':_0xf00ec3,'cookie':_0x133a22,'label':_0x4405fe(0x15e)+_0x1a21f7[_0x4405fe(0x155)]+'\x22'}),logger['info']('create-menu',_0x4405fe(0x162)+_0x1a21f7[_0x4405fe(0x155)]);}function a59_0x4ea2(){const _0x2db7a0=['path','push','flat','parse','Menu\x20assets\x20synced:\x20','extend','resources','all','isArray','label','\x20online\x20menus\x20successfully','Updating\x20menu\x20asset\x20links:\x20','create-menus','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','update-menu-cdn-url','/smartapi/menu/update','Start\x20batch\x20menu\x20creation,\x20total\x20','249140xZkJlp','Create\x20menu\x20\x22','info','Creating\x20menu:\x20','2751968UzzQps','Menu\x20created\x20successfully:\x20','/smartapi/menu/create','3334420AtOAnN','Batch\x20menu\x20creation\x20completed,\x20total\x20','17769408LppeFx','children','online','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','6548028HOpESc','/smartapi/menu/find?appCode=','Fetched\x20','7XPBuqW','stringify','import','Server\x20returned\x20empty\x20menu\x20list','Update\x20menu\x20assets\x20\x22','length','get-online-menu-list','POST','procode','788928zjqPgF','5306308Lvgjeu','map'];a59_0x4ea2=function(){return _0x2db7a0;};return a59_0x4ea2();}export async function createMenus(_0x1d3078,_0x2e3de3,_0x13a6b7,_0x11f662){const _0x5542ce=a59_0x544f;logger[_0x5542ce(0x15f)](_0x5542ce(0x158),_0x5542ce(0x15c)+_0x13a6b7[_0x5542ce(0x172)]),await Promise[_0x5542ce(0x153)](_0x13a6b7[_0x5542ce(0x178)](_0x4a241a=>createSingleMenu(_0x1d3078,_0x2e3de3,_0x4a241a,_0x11f662))),logger[_0x5542ce(0x15f)](_0x5542ce(0x158),_0x5542ce(0x165)+_0x13a6b7[_0x5542ce(0x172)]);}export async function updateMenuCdnUrl(_0x168c78,_0x4f84bb,_0x61086d){const _0x3ca21d=a59_0x544f;logger[_0x3ca21d(0x15f)]('update-menu-cdn-url',_0x3ca21d(0x157)+_0x61086d[_0x3ca21d(0x155)]+'\x20('+_0x61086d[_0x3ca21d(0x179)]+')');const _0x2671e3={'id':_0x61086d['id'],'appCode':_0x168c78,'extend':{'loadScriptMode':'import','resources':_0x61086d[_0x3ca21d(0x152)]?JSON[_0x3ca21d(0x16e)](_0x61086d[_0x3ca21d(0x152)]):undefined}};await platformFetch(getApiDomain()+_0x3ca21d(0x15b),{'method':_0x3ca21d(0x174),'body':_0x2671e3,'cookie':_0x4f84bb,'label':_0x3ca21d(0x171)+_0x61086d[_0x3ca21d(0x155)]+'\x22'}),logger[_0x3ca21d(0x15f)](_0x3ca21d(0x15a),_0x3ca21d(0x150)+_0x61086d[_0x3ca21d(0x155)],undefined);}
@@ -1 +1 @@
1
- (function(_0x616b1a,_0x231956){const _0x5af39a=a60_0x37a2,_0x114f3b=_0x616b1a();while(!![]){try{const _0xd73004=parseInt(_0x5af39a(0x94))/0x1*(-parseInt(_0x5af39a(0xa8))/0x2)+-parseInt(_0x5af39a(0x96))/0x3+parseInt(_0x5af39a(0xaf))/0x4*(-parseInt(_0x5af39a(0xb3))/0x5)+parseInt(_0x5af39a(0xb1))/0x6+parseInt(_0x5af39a(0x9a))/0x7+parseInt(_0x5af39a(0xa4))/0x8+parseInt(_0x5af39a(0x9b))/0x9;if(_0xd73004===_0x231956)break;else _0x114f3b['push'](_0x114f3b['shift']());}catch(_0x2ce9d4){_0x114f3b['push'](_0x114f3b['shift']());}}}(a60_0x3211,0x46981));import{getLocalPages}from'./local-pages.js';import{getOnlineMenuList,createMenus}from'./service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'./valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x1291aa){const _0x4b0943=a60_0x37a2,_0x5ee7b5=[];return _0x1291aa['jsUrl']&&!isValidJsHttpsUrl(_0x1291aa['jsUrl'])&&_0x5ee7b5['push']({'field':_0x4b0943(0xb2),'message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x1291aa['cssUrl']&&!isValidCssHttpsUrl(_0x1291aa['cssUrl'])&&_0x5ee7b5[_0x4b0943(0xbc)]({'field':_0x4b0943(0x99),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x5ee7b5;}function a60_0x37a2(_0x1d33e9,_0x5c7c48){_0x1d33e9=_0x1d33e9-0x94;const _0x3211b6=a60_0x3211();let _0x37a294=_0x3211b6[_0x1d33e9];return _0x37a294;}export async function runMenuSyncCore(_0x7c99f6,_0x4617ff,_0x3ade94=[],_0xfde43b){const _0x17c7fe=a60_0x37a2,_0x4cb927=parseParamsFlag(_0xfde43b),_0x2adc30=_0x3ade94['length']>0x0?_0x3ade94:_0x4cb927[_0x17c7fe(0xb6)],_0xbcd810=_0x4cb927[_0x17c7fe(0xb2)],_0xebc9b7=_0x4cb927[_0x17c7fe(0x99)],_0x4c88f1=[];if(_0xbcd810)_0x4c88f1[_0x17c7fe(0xbc)](_0xbcd810);if(_0xebc9b7)_0x4c88f1[_0x17c7fe(0xbc)](_0xebc9b7);const _0xfa0b12=validateParams(_0x4cb927);if(_0xfa0b12['length']>0x0){const _0x137216=_0xfa0b12['map'](_0x30b5af=>_0x17c7fe(0x9c)+_0x30b5af[_0x17c7fe(0xa0)]+':\x20'+_0x30b5af[_0x17c7fe(0x95)])[_0x17c7fe(0xab)](';\x20');throw new Error(_0x17c7fe(0xb4)+_0x137216);}logger['setLogPath'](process[_0x17c7fe(0x9f)]()),logger[_0x17c7fe(0x97)](_0x17c7fe(0x9d),'Start\x20non-interactive\x20menu\x20sync',{'appCode':_0x7c99f6,'selectedCount':_0x2adc30?.[_0x17c7fe(0x9e)],'jsUrl':_0xbcd810,'cssUrl':_0xebc9b7});if(_0xbcd810){const _0x4617d8=await isUrlReachable(_0xbcd810);if(!_0x4617d8)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0xbcd810);}if(_0xebc9b7){const _0x30d983=await isUrlReachable(_0xebc9b7);if(!_0x30d983)throw new Error(_0x17c7fe(0x98)+_0xebc9b7);}const _0x4d3d7f=getLocalPages();if(_0x4d3d7f[_0x17c7fe(0x9e)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x4bd70c=await getOnlineMenuList(_0x7c99f6,_0x4617ff),_0x5b5a0f=new Set(_0x4bd70c[_0x17c7fe(0xba)](_0x47b4d0=>_0x47b4d0[_0x17c7fe(0xb8)]));let _0x242cae;if(_0x2adc30&&_0x2adc30[_0x17c7fe(0x9e)]>0x0){const _0x3297aa=new Set(_0x2adc30['map'](_0x59efcb=>_0x59efcb[_0x17c7fe(0xa2)]()));_0x242cae=_0x4d3d7f['filter'](_0x16d8cd=>_0x3297aa['has'](_0x16d8cd[_0x17c7fe(0xae)]));if(_0x242cae[_0x17c7fe(0x9e)]===0x0){const _0x58dfff=_0x4d3d7f['map'](_0x5c8b65=>_0x5c8b65[_0x17c7fe(0xae)])['join'](',\x20');throw new Error(_0x17c7fe(0xb7)+[..._0x3297aa]['join'](',\x20')+'\x0a\x20\x20Available\x20local\x20pages:\x20'+_0x58dfff);}}else _0x242cae=_0x4d3d7f[_0x17c7fe(0xa9)](_0x52926a=>!_0x5b5a0f[_0x17c7fe(0xaa)](_0x52926a['path']));if(_0x242cae[_0x17c7fe(0x9e)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};return await createMenus(_0x7c99f6,_0x4617ff,_0x242cae,_0x4c88f1[_0x17c7fe(0x9e)]>0x0?_0x4c88f1:undefined),logger[_0x17c7fe(0x97)](_0x17c7fe(0x9d),_0x17c7fe(0xbd),{'count':_0x242cae[_0x17c7fe(0x9e)],'resources':_0x4c88f1}),{'created':_0x242cae[_0x17c7fe(0x9e)],'skipped':![],'targetPages':_0x242cae};}function a60_0x3211(){const _0x1bbeb8=['menu-sync','length','cwd','field','utf8','trim','isTTY','450960lpjYoS','stdin','concat','pages','765654VCArqm','filter','has','join','readableEnded','parse','label','16dKjYTK','string','1038654QYCCUk','jsUrl','114305YbDBYG','Invalid\x20--params:\x20','data','selectedLabels','No\x20local\x20pages\x20matched\x20labels:\x20','path','isArray','map','toString','push','Menu\x20sync\x20completed','1CiQzVl','message','1465668rFeecI','info','CSS\x20URL\x20is\x20unreachable:\x20','cssUrl','1470861PkbMUK','7311402xjNikD','--params.'];a60_0x3211=function(){return _0x1bbeb8;};return a60_0x3211();}export async function readPageLabelsFromStdin(){const _0x4dec96=a60_0x37a2;if(!process[_0x4dec96(0xa5)][_0x4dec96(0xa3)]&&!process[_0x4dec96(0xa5)][_0x4dec96(0xac)])return new Promise(_0x4e8b5d=>{const _0x391e87=_0x4dec96,_0x1be213=[];process[_0x391e87(0xa5)]['on'](_0x391e87(0xb5),_0x77355=>_0x1be213[_0x391e87(0xbc)](_0x77355)),process['stdin']['on']('end',()=>{const _0x35b8cd=_0x391e87,_0x38ff=Buffer[_0x35b8cd(0xa6)](_0x1be213)[_0x35b8cd(0xbb)](_0x35b8cd(0xa1)),_0x586a8f=_0x38ff['split']('\x0a')[_0x35b8cd(0xba)](_0x3c4003=>_0x3c4003[_0x35b8cd(0xa2)]())['filter'](_0x30015c=>_0x30015c[_0x35b8cd(0x9e)]>0x0&&!_0x30015c['startsWith']('#'));_0x4e8b5d(_0x586a8f);}),setTimeout(()=>_0x4e8b5d([]),0x1f4);});return[];}function parseParamsFlag(_0x2fc217){const _0x5b6477=a60_0x37a2;if(!_0x2fc217||typeof _0x2fc217!==_0x5b6477(0xb0))return{};try{const _0x58dbe3=JSON[_0x5b6477(0xad)](_0x2fc217);if(typeof _0x58dbe3!=='object'||_0x58dbe3===null||Array[_0x5b6477(0xb9)](_0x58dbe3))return{};return{'selectedLabels':Array[_0x5b6477(0xb9)](_0x58dbe3[_0x5b6477(0xa7)])?_0x58dbe3[_0x5b6477(0xa7)][_0x5b6477(0xba)](String):undefined,'jsUrl':typeof _0x58dbe3[_0x5b6477(0xb2)]===_0x5b6477(0xb0)?_0x58dbe3['jsUrl']['trim']():undefined,'cssUrl':typeof _0x58dbe3['cssUrl']==='string'?_0x58dbe3[_0x5b6477(0x99)][_0x5b6477(0xa2)]():undefined};}catch{return{};}}
1
+ (function(_0xf4168f,_0x2ce4ee){const _0x1859b9=a60_0x4520,_0x1a32f5=_0xf4168f();while(!![]){try{const _0x572eb6=parseInt(_0x1859b9(0x16a))/0x1+-parseInt(_0x1859b9(0x163))/0x2+parseInt(_0x1859b9(0x177))/0x3+-parseInt(_0x1859b9(0x179))/0x4*(parseInt(_0x1859b9(0x15a))/0x5)+-parseInt(_0x1859b9(0x167))/0x6+-parseInt(_0x1859b9(0x17f))/0x7+-parseInt(_0x1859b9(0x162))/0x8*(-parseInt(_0x1859b9(0x160))/0x9);if(_0x572eb6===_0x2ce4ee)break;else _0x1a32f5['push'](_0x1a32f5['shift']());}catch(_0x466ca6){_0x1a32f5['push'](_0x1a32f5['shift']());}}}(a60_0x6b17,0x75215));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';function a60_0x4520(_0x559cbd,_0x1ffd49){_0x559cbd=_0x559cbd-0x158;const _0x6b1700=a60_0x6b17();let _0x4520ec=_0x6b1700[_0x559cbd];return _0x4520ec;}function a60_0x6b17(){const _0x9d4d5=['data','filter','map','1394319shNuPq','isArray','28pPkOCV','parse','cssUrl','CSS\x20URL\x20is\x20unreachable:\x20','info','end','1281287nYaHKd','pages','Invalid\x20--params:\x20','readableEnded','object','push','cwd','length','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','48320IXGvzO','Start\x20non-interactive\x20menu\x20sync','message','utf8','has','isTTY','75546ZRdxvc','field','664LVfEKV','456318bcLKlr','trim','concat','selectedLabels','3598830XTeIQS','--params.','path','396943JKhNAa','join','toString','stdin','label','menu-sync','jsUrl','No\x20local\x20pages\x20matched\x20labels:\x20','setLogPath','string'];a60_0x6b17=function(){return _0x9d4d5;};return a60_0x6b17();}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x1d9f8c){const _0x164f13=a60_0x4520,_0x5dcc8a=[];return _0x1d9f8c[_0x164f13(0x170)]&&!isValidJsHttpsUrl(_0x1d9f8c['jsUrl'])&&_0x5dcc8a[_0x164f13(0x184)]({'field':_0x164f13(0x170),'message':_0x164f13(0x159)}),_0x1d9f8c['cssUrl']&&!isValidCssHttpsUrl(_0x1d9f8c[_0x164f13(0x17b)])&&_0x5dcc8a[_0x164f13(0x184)]({'field':_0x164f13(0x17b),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x5dcc8a;}export async function runMenuSyncCore(_0x5ca4c0,_0x51a883,_0x655c95=[],_0x5a25bc){const _0x10228c=a60_0x4520,_0x1442d8=parseParamsFlag(_0x5a25bc),_0x55c676=_0x655c95[_0x10228c(0x158)]>0x0?_0x655c95:_0x1442d8[_0x10228c(0x166)],_0x4bf805=_0x1442d8[_0x10228c(0x170)],_0x5e5153=_0x1442d8[_0x10228c(0x17b)],_0x111003=[];if(_0x4bf805)_0x111003[_0x10228c(0x184)](_0x4bf805);if(_0x5e5153)_0x111003[_0x10228c(0x184)](_0x5e5153);const _0x52aa4c=validateParams(_0x1442d8);if(_0x52aa4c[_0x10228c(0x158)]>0x0){const _0xe73535=_0x52aa4c['map'](_0x358f04=>_0x10228c(0x168)+_0x358f04[_0x10228c(0x161)]+':\x20'+_0x358f04[_0x10228c(0x15c)])[_0x10228c(0x16b)](';\x20');throw new Error(_0x10228c(0x181)+_0xe73535);}logger[_0x10228c(0x172)](process[_0x10228c(0x185)]()),logger['info'](_0x10228c(0x16f),_0x10228c(0x15b),{'appCode':_0x5ca4c0,'selectedCount':_0x55c676?.[_0x10228c(0x158)],'jsUrl':_0x4bf805,'cssUrl':_0x5e5153});if(_0x4bf805){const _0x56f8ad=await isUrlReachable(_0x4bf805);if(!_0x56f8ad)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x4bf805);}if(_0x5e5153){const _0x302a04=await isUrlReachable(_0x5e5153);if(!_0x302a04)throw new Error(_0x10228c(0x17c)+_0x5e5153);}const _0x16699d=getLocalPages();if(_0x16699d[_0x10228c(0x158)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x4fcd77=await getOnlineMenuList(_0x5ca4c0,_0x51a883),_0x173b53=new Set(_0x4fcd77[_0x10228c(0x176)](_0x350325=>_0x350325['path']));let _0x5768d9;if(_0x55c676&&_0x55c676['length']>0x0){const _0xb23485=new Set(_0x55c676[_0x10228c(0x176)](_0x52522a=>_0x52522a[_0x10228c(0x164)]()));_0x5768d9=_0x16699d['filter'](_0x13fd85=>_0xb23485[_0x10228c(0x15e)](_0x13fd85[_0x10228c(0x16e)]));if(_0x5768d9[_0x10228c(0x158)]===0x0){const _0x163c2e=_0x16699d[_0x10228c(0x176)](_0x5060d2=>_0x5060d2['label'])['join'](',\x20');throw new Error(_0x10228c(0x171)+[..._0xb23485][_0x10228c(0x16b)](',\x20')+'\x0a\x20\x20Available\x20local\x20pages:\x20'+_0x163c2e);}}else _0x5768d9=_0x16699d[_0x10228c(0x175)](_0x220bf9=>!_0x173b53[_0x10228c(0x15e)](_0x220bf9[_0x10228c(0x169)]));if(_0x5768d9[_0x10228c(0x158)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};return await createMenus(_0x5ca4c0,_0x51a883,_0x5768d9,_0x111003[_0x10228c(0x158)]>0x0?_0x111003:undefined),logger[_0x10228c(0x17d)](_0x10228c(0x16f),'Menu\x20sync\x20completed',{'count':_0x5768d9[_0x10228c(0x158)],'resources':_0x111003}),{'created':_0x5768d9[_0x10228c(0x158)],'skipped':![],'targetPages':_0x5768d9};}export async function readPageLabelsFromStdin(){const _0x5a2002=a60_0x4520;if(!process[_0x5a2002(0x16d)][_0x5a2002(0x15f)]&&!process['stdin'][_0x5a2002(0x182)])return new Promise(_0x1ee270=>{const _0x3f6627=_0x5a2002,_0x3d424a=[];process[_0x3f6627(0x16d)]['on'](_0x3f6627(0x174),_0x5951fd=>_0x3d424a['push'](_0x5951fd)),process[_0x3f6627(0x16d)]['on'](_0x3f6627(0x17e),()=>{const _0x565352=_0x3f6627,_0x2165a1=Buffer[_0x565352(0x165)](_0x3d424a)[_0x565352(0x16c)](_0x565352(0x15d)),_0xf59611=_0x2165a1['split']('\x0a')[_0x565352(0x176)](_0x17355d=>_0x17355d[_0x565352(0x164)]())[_0x565352(0x175)](_0x4ff02b=>_0x4ff02b[_0x565352(0x158)]>0x0&&!_0x4ff02b['startsWith']('#'));_0x1ee270(_0xf59611);}),setTimeout(()=>_0x1ee270([]),0x1f4);});return[];}function parseParamsFlag(_0x8c3c87){const _0x16f7f9=a60_0x4520;if(!_0x8c3c87||typeof _0x8c3c87!==_0x16f7f9(0x173))return{};try{const _0x2eef1e=JSON[_0x16f7f9(0x17a)](_0x8c3c87);if(typeof _0x2eef1e!==_0x16f7f9(0x183)||_0x2eef1e===null||Array[_0x16f7f9(0x178)](_0x2eef1e))return{};return{'selectedLabels':Array['isArray'](_0x2eef1e[_0x16f7f9(0x180)])?_0x2eef1e['pages'][_0x16f7f9(0x176)](String):undefined,'jsUrl':typeof _0x2eef1e[_0x16f7f9(0x170)]===_0x16f7f9(0x173)?_0x2eef1e[_0x16f7f9(0x170)][_0x16f7f9(0x164)]():undefined,'cssUrl':typeof _0x2eef1e['cssUrl']===_0x16f7f9(0x173)?_0x2eef1e[_0x16f7f9(0x17b)]['trim']():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- (function(_0x55602e,_0x45ff0a){const _0x13cf87=a62_0x14de,_0x18783d=_0x55602e();while(!![]){try{const _0x42afd1=parseInt(_0x13cf87(0x174))/0x1+-parseInt(_0x13cf87(0x170))/0x2+parseInt(_0x13cf87(0x15d))/0x3*(parseInt(_0x13cf87(0x15a))/0x4)+-parseInt(_0x13cf87(0x167))/0x5+-parseInt(_0x13cf87(0x169))/0x6+parseInt(_0x13cf87(0x179))/0x7+parseInt(_0x13cf87(0x161))/0x8*(parseInt(_0x13cf87(0x163))/0x9);if(_0x42afd1===_0x45ff0a)break;else _0x18783d['push'](_0x18783d['shift']());}catch(_0x2b3510){_0x18783d['push'](_0x18783d['shift']());}}}(a62_0x2ec3,0x7f1e6));import{updateMenuCdnUrl,getOnlineMenuList}from'./service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'./valid-url.js';function a62_0x14de(_0xbb7a33,_0x24c5e9){_0xbb7a33=_0xbb7a33-0x158;const _0x2ec321=a62_0x2ec3();let _0x14defd=_0x2ec321[_0xbb7a33];return _0x14defd;}import{logger}from'../../../utils/logger.js';function validateParams(_0x2c5682){const _0x1b1e6e=a62_0x14de,_0x58d38b=[];return _0x2c5682[_0x1b1e6e(0x16a)]&&!isValidJsHttpsUrl(_0x2c5682[_0x1b1e6e(0x16a)])&&_0x58d38b[_0x1b1e6e(0x16e)]({'field':_0x1b1e6e(0x16a),'message':_0x1b1e6e(0x172)}),_0x2c5682[_0x1b1e6e(0x162)]&&!isValidCssHttpsUrl(_0x2c5682[_0x1b1e6e(0x162)])&&_0x58d38b[_0x1b1e6e(0x16e)]({'field':_0x1b1e6e(0x162),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x58d38b;}export async function runMenuUpdateCore(_0x27034c,_0x11854b,_0x1e4db2){const _0x4d6fa1=a62_0x14de,_0x4f02c7=parseUpdateParamsFlag(_0x1e4db2),_0xa36ca=[];if(_0x4f02c7[_0x4d6fa1(0x16a)])_0xa36ca['push'](_0x4f02c7[_0x4d6fa1(0x16a)]);if(_0x4f02c7[_0x4d6fa1(0x162)])_0xa36ca[_0x4d6fa1(0x16e)](_0x4f02c7[_0x4d6fa1(0x162)]);const _0x45708e=validateParams(_0x4f02c7);if(_0x45708e[_0x4d6fa1(0x178)]>0x0){const _0x18f6a4=_0x45708e[_0x4d6fa1(0x171)](_0x3b9b82=>_0x4d6fa1(0x175)+_0x3b9b82['field']+':\x20'+_0x3b9b82[_0x4d6fa1(0x160)])[_0x4d6fa1(0x16b)](';\x20');throw new Error(_0x4d6fa1(0x159)+_0x18f6a4);}logger[_0x4d6fa1(0x158)](process['cwd']()),logger['info']('menu-update','Start\x20non-interactive\x20menu\x20update',{'appCode':_0x27034c,'jsUrl':_0x4f02c7[_0x4d6fa1(0x16a)],'cssUrl':_0x4f02c7[_0x4d6fa1(0x162)]});if(_0x4f02c7[_0x4d6fa1(0x16a)]){const _0x280556=await isUrlReachable(_0x4f02c7[_0x4d6fa1(0x16a)]);if(!_0x280556)throw new Error(_0x4d6fa1(0x15e)+_0x4f02c7['jsUrl']);}if(_0x4f02c7['cssUrl']){const _0x1db04d=await isUrlReachable(_0x4f02c7[_0x4d6fa1(0x162)]);if(!_0x1db04d)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x4f02c7[_0x4d6fa1(0x162)]);}const _0x461d80=await getOnlineMenuList(_0x27034c,_0x11854b),_0x4afdec=_0x461d80[_0x4d6fa1(0x166)](_0x1bfda7=>_0x1bfda7[_0x4d6fa1(0x16d)][_0x4d6fa1(0x178)]>0x0);if(_0x4afdec[_0x4d6fa1(0x178)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![]};const _0x5d6776=await Promise[_0x4d6fa1(0x15f)](_0x4afdec[_0x4d6fa1(0x171)](_0x1725a8=>updateMenuCdnUrl(_0x27034c,_0x11854b,{'id':_0x1725a8['id'],'label':_0x1725a8[_0x4d6fa1(0x165)],'path':_0x1725a8[_0x4d6fa1(0x15c)],'resources':_0xa36ca}))),_0x185957=_0x5d6776[_0x4d6fa1(0x166)](_0xfbe2a2=>_0xfbe2a2[_0x4d6fa1(0x16f)]==='rejected')[_0x4d6fa1(0x178)];return logger[_0x4d6fa1(0x177)](_0x4d6fa1(0x176),_0x4d6fa1(0x173),{'count':_0x4afdec[_0x4d6fa1(0x178)],'resources':_0xa36ca}),{'updated':_0x4afdec[_0x4d6fa1(0x178)]-_0x185957,'failed':_0x185957,'skipped':![]};}function a62_0x2ec3(){const _0x3afc1f=['1103326HwdRLQ','setLogPath','Invalid\x20--params:\x20','164zFTqsH','isArray','path','34098yZOLYt','JS\x20URL\x20is\x20unreachable:\x20','allSettled','message','2562944cDaoaA','cssUrl','18cknWUK','parse','label','filter','3583200EkSTim','string','1286964aFdfME','jsUrl','join','trim','resources','push','status','629162EYspru','map','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','Menu\x20update\x20completed','502033xGrMVR','--params.','menu-update','info','length'];a62_0x2ec3=function(){return _0x3afc1f;};return a62_0x2ec3();}function parseUpdateParamsFlag(_0x3cb43b){const _0x2ed7f2=a62_0x14de;if(!_0x3cb43b||typeof _0x3cb43b!==_0x2ed7f2(0x168))return{};try{const _0x42a29e=JSON[_0x2ed7f2(0x164)](_0x3cb43b);if(typeof _0x42a29e!=='object'||_0x42a29e===null||Array[_0x2ed7f2(0x15b)](_0x42a29e))return{};return{'jsUrl':typeof _0x42a29e[_0x2ed7f2(0x16a)]===_0x2ed7f2(0x168)?_0x42a29e[_0x2ed7f2(0x16a)][_0x2ed7f2(0x16c)]():undefined,'cssUrl':typeof _0x42a29e[_0x2ed7f2(0x162)]===_0x2ed7f2(0x168)?_0x42a29e[_0x2ed7f2(0x162)][_0x2ed7f2(0x16c)]():undefined};}catch{return{};}}
1
+ (function(_0x442900,_0x78add){const _0x26cd21=a62_0x5a1f,_0x379a9b=_0x442900();while(!![]){try{const _0x36995d=-parseInt(_0x26cd21(0x12d))/0x1+parseInt(_0x26cd21(0x116))/0x2+parseInt(_0x26cd21(0x11d))/0x3*(parseInt(_0x26cd21(0x12e))/0x4)+parseInt(_0x26cd21(0x126))/0x5+-parseInt(_0x26cd21(0x11c))/0x6*(-parseInt(_0x26cd21(0x110))/0x7)+parseInt(_0x26cd21(0x127))/0x8+-parseInt(_0x26cd21(0x12b))/0x9;if(_0x36995d===_0x78add)break;else _0x379a9b['push'](_0x379a9b['shift']());}catch(_0x2b6e92){_0x379a9b['push'](_0x379a9b['shift']());}}}(a62_0x2bef,0x367a7));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';function a62_0x2bef(){const _0x551541=['trim','93029osGbGk','4QBmKGx','object','menu-update','isArray','1924069lQRXlA','resources','CSS\x20URL\x20is\x20unreachable:\x20','length','cssUrl','Start\x20non-interactive\x20menu\x20update','344636gSqlMr','jsUrl','Menu\x20update\x20completed','filter','JS\x20URL\x20is\x20unreachable:\x20','parse','6cLPbvw','734730VZxZYg','allSettled','info','label','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','map','cwd','Invalid\x20--params:\x20','setLogPath','650115zvNPnT','547624xqJPRu','path','push','string','5169591cHIDtc'];a62_0x2bef=function(){return _0x551541;};return a62_0x2bef();}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x1e0fa3){const _0x3e9813=a62_0x5a1f,_0x38586e=[];return _0x1e0fa3[_0x3e9813(0x117)]&&!isValidJsHttpsUrl(_0x1e0fa3[_0x3e9813(0x117)])&&_0x38586e[_0x3e9813(0x129)]({'field':_0x3e9813(0x117),'message':_0x3e9813(0x121)}),_0x1e0fa3[_0x3e9813(0x114)]&&!isValidCssHttpsUrl(_0x1e0fa3[_0x3e9813(0x114)])&&_0x38586e['push']({'field':_0x3e9813(0x114),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x38586e;}export async function runMenuUpdateCore(_0x4ae5e8,_0x2c2690,_0x45d647){const _0x1d245e=a62_0x5a1f,_0x42f2a1=parseUpdateParamsFlag(_0x45d647),_0x141154=[];if(_0x42f2a1[_0x1d245e(0x117)])_0x141154[_0x1d245e(0x129)](_0x42f2a1['jsUrl']);if(_0x42f2a1[_0x1d245e(0x114)])_0x141154[_0x1d245e(0x129)](_0x42f2a1[_0x1d245e(0x114)]);const _0x2d3469=validateParams(_0x42f2a1);if(_0x2d3469[_0x1d245e(0x113)]>0x0){const _0x547791=_0x2d3469[_0x1d245e(0x122)](_0x216562=>'--params.'+_0x216562['field']+':\x20'+_0x216562['message'])['join'](';\x20');throw new Error(_0x1d245e(0x124)+_0x547791);}logger[_0x1d245e(0x125)](process[_0x1d245e(0x123)]()),logger[_0x1d245e(0x11f)](_0x1d245e(0x130),_0x1d245e(0x115),{'appCode':_0x4ae5e8,'jsUrl':_0x42f2a1[_0x1d245e(0x117)],'cssUrl':_0x42f2a1[_0x1d245e(0x114)]});if(_0x42f2a1['jsUrl']){const _0x16d664=await isUrlReachable(_0x42f2a1[_0x1d245e(0x117)]);if(!_0x16d664)throw new Error(_0x1d245e(0x11a)+_0x42f2a1['jsUrl']);}if(_0x42f2a1[_0x1d245e(0x114)]){const _0x192382=await isUrlReachable(_0x42f2a1[_0x1d245e(0x114)]);if(!_0x192382)throw new Error(_0x1d245e(0x112)+_0x42f2a1[_0x1d245e(0x114)]);}const _0x54c84=await getOnlineMenuList(_0x4ae5e8,_0x2c2690),_0x4627db=_0x54c84[_0x1d245e(0x119)](_0x5af449=>_0x5af449[_0x1d245e(0x111)][_0x1d245e(0x113)]>0x0);if(_0x4627db['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![]};const _0x3b8039=await Promise[_0x1d245e(0x11e)](_0x4627db[_0x1d245e(0x122)](_0x1cec91=>updateMenuCdnUrl(_0x4ae5e8,_0x2c2690,{'id':_0x1cec91['id'],'label':_0x1cec91[_0x1d245e(0x120)],'path':_0x1cec91[_0x1d245e(0x128)],'resources':_0x141154}))),_0x23ca30=_0x3b8039[_0x1d245e(0x119)](_0x27987b=>_0x27987b['status']==='rejected')[_0x1d245e(0x113)];return logger['info']('menu-update',_0x1d245e(0x118),{'count':_0x4627db[_0x1d245e(0x113)],'resources':_0x141154}),{'updated':_0x4627db[_0x1d245e(0x113)]-_0x23ca30,'failed':_0x23ca30,'skipped':![]};}function a62_0x5a1f(_0x9b5b26,_0x1c74b9){_0x9b5b26=_0x9b5b26-0x110;const _0x2befb9=a62_0x2bef();let _0x5a1fba=_0x2befb9[_0x9b5b26];return _0x5a1fba;}function parseUpdateParamsFlag(_0x200f8d){const _0x53bd47=a62_0x5a1f;if(!_0x200f8d||typeof _0x200f8d!==_0x53bd47(0x12a))return{};try{const _0x19e722=JSON[_0x53bd47(0x11b)](_0x200f8d);if(typeof _0x19e722!==_0x53bd47(0x12f)||_0x19e722===null||Array[_0x53bd47(0x131)](_0x19e722))return{};return{'jsUrl':typeof _0x19e722[_0x53bd47(0x117)]===_0x53bd47(0x12a)?_0x19e722[_0x53bd47(0x117)][_0x53bd47(0x12c)]():undefined,'cssUrl':typeof _0x19e722[_0x53bd47(0x114)]===_0x53bd47(0x12a)?_0x19e722[_0x53bd47(0x114)]['trim']():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- (function(_0x2b4b29,_0x1dc587){const _0x235b39=a63_0x2501,_0x5afc19=_0x2b4b29();while(!![]){try{const _0x56ae46=parseInt(_0x235b39(0x1b0))/0x1*(-parseInt(_0x235b39(0x1b7))/0x2)+-parseInt(_0x235b39(0x1b8))/0x3+parseInt(_0x235b39(0x1b3))/0x4+-parseInt(_0x235b39(0x1ba))/0x5*(-parseInt(_0x235b39(0x1b6))/0x6)+-parseInt(_0x235b39(0x1b1))/0x7*(-parseInt(_0x235b39(0x1b9))/0x8)+-parseInt(_0x235b39(0x1b5))/0x9+parseInt(_0x235b39(0x1b2))/0xa*(parseInt(_0x235b39(0x1ae))/0xb);if(_0x56ae46===_0x1dc587)break;else _0x5afc19['push'](_0x5afc19['shift']());}catch(_0x510168){_0x5afc19['push'](_0x5afc19['shift']());}}}(a63_0x2363,0x933e8));export function isValidJsHttpsUrl(_0x1d776c){const _0x4d64e8=a63_0x2501;return/^https:\/\/.+\.js(\?.*)?$/[_0x4d64e8(0x1b4)](_0x1d776c[_0x4d64e8(0x1bb)]());}function a63_0x2501(_0xf082cd,_0x2ec02d){_0xf082cd=_0xf082cd-0x1ae;const _0x236353=a63_0x2363();let _0x250124=_0x236353[_0xf082cd];return _0x250124;}function a63_0x2363(){const _0x1b01ba=['5823378EfRRoc','24uJEPSF','1198OOWyxm','2349852wBCcPO','32MhfLDC','225635xGdxYF','trim','7777mmiXSe','HEAD','1603ioFizH','1920478qPrgMr','21940SNcPBI','658212ZBWGcZ','test'];a63_0x2363=function(){return _0x1b01ba;};return a63_0x2363();}export function isValidCssHttpsUrl(_0x2be543){const _0x4c691a=a63_0x2501;return/^https:\/\/.+\.css(\?.*)?$/[_0x4c691a(0x1b4)](_0x2be543['trim']());}export async function isUrlReachable(_0x2dbc53){const _0x302080=a63_0x2501;try{const _0x48fb7b=await fetch(_0x2dbc53,{'method':_0x302080(0x1af)});return _0x48fb7b['ok'];}catch{return![];}}
1
+ (function(_0xe45433,_0x2c190e){const _0x4899c8=a63_0x552a,_0x6b8ee3=_0xe45433();while(!![]){try{const _0x4f9beb=parseInt(_0x4899c8(0x1a3))/0x1*(-parseInt(_0x4899c8(0x19f))/0x2)+-parseInt(_0x4899c8(0x19d))/0x3*(parseInt(_0x4899c8(0x199))/0x4)+-parseInt(_0x4899c8(0x19c))/0x5+-parseInt(_0x4899c8(0x197))/0x6+parseInt(_0x4899c8(0x19a))/0x7+parseInt(_0x4899c8(0x19b))/0x8*(parseInt(_0x4899c8(0x1a1))/0x9)+parseInt(_0x4899c8(0x198))/0xa;if(_0x4f9beb===_0x2c190e)break;else _0x6b8ee3['push'](_0x6b8ee3['shift']());}catch(_0x558f1e){_0x6b8ee3['push'](_0x6b8ee3['shift']());}}}(a63_0x281d,0x44991));export function isValidJsHttpsUrl(_0x16db82){const _0x503848=a63_0x552a;return/^https:\/\/.+\.js(\?.*)?$/[_0x503848(0x1a2)](_0x16db82[_0x503848(0x19e)]());}function a63_0x552a(_0x13cfcf,_0x46853b){_0x13cfcf=_0x13cfcf-0x197;const _0x281d0e=a63_0x281d();let _0x552a6f=_0x281d0e[_0x13cfcf];return _0x552a6f;}function a63_0x281d(){const _0x54baba=['13360xnJntQ','1880345WRYkph','18BukTho','trim','2ZZtPdr','HEAD','333PeGPMw','test','286989zSVElQ','1798974khhyZM','10206680heopyF','121160DjbInG','2402022pJihVG'];a63_0x281d=function(){return _0x54baba;};return a63_0x281d();}export function isValidCssHttpsUrl(_0x268759){const _0x236f3e=a63_0x552a;return/^https:\/\/.+\.css(\?.*)?$/[_0x236f3e(0x1a2)](_0x268759['trim']());}export async function isUrlReachable(_0x1dba18){const _0x2ba3e2=a63_0x552a;try{const _0x436af3=await fetch(_0x1dba18,{'method':_0x2ba3e2(0x1a0)});return _0x436af3['ok'];}catch{return![];}}
@@ -1 +1 @@
1
- const a64_0x5925f1=a64_0x12fc;(function(_0x5d0e76,_0x5648b7){const _0x3035a5=a64_0x12fc,_0x57786d=_0x5d0e76();while(!![]){try{const _0x595ff7=-parseInt(_0x3035a5(0x165))/0x1+-parseInt(_0x3035a5(0x14d))/0x2*(-parseInt(_0x3035a5(0x159))/0x3)+-parseInt(_0x3035a5(0x16b))/0x4*(parseInt(_0x3035a5(0x163))/0x5)+parseInt(_0x3035a5(0x16a))/0x6+parseInt(_0x3035a5(0x162))/0x7+parseInt(_0x3035a5(0x160))/0x8+-parseInt(_0x3035a5(0x17f))/0x9*(-parseInt(_0x3035a5(0x15b))/0xa);if(_0x595ff7===_0x5648b7)break;else _0x57786d['push'](_0x57786d['shift']());}catch(_0x17e60e){_0x57786d['push'](_0x57786d['shift']());}}}(a64_0xeeae,0x9d530));import a64_0xb92eca from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'./shared/logic.js';import{renderCompareTable,renderSyncSummary}from'./shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'./shared/inquirer.js';import{CliErrors}from'../../errors.js';import{runMenuSyncCore,readPageLabelsFromStdin}from'./shared/sync-core.js';import{getLocalPages}from'./shared/local-pages.js';export const menuSync={'service':'menu','command':'sync','description':a64_0x5925f1(0x16c),'risk':a64_0x5925f1(0x177),'flags':[{'name':a64_0x5925f1(0x14f),'type':a64_0x5925f1(0x149),'description':'Pre-fill\x20JS/CSS\x20URLs\x20and/or\x20select\x20specific\x20pages.\x20'+a64_0x5925f1(0x175)},{'name':a64_0x5925f1(0x150),'type':a64_0x5925f1(0x167),'description':a64_0x5925f1(0x151)}],async 'execute'(_0x3dc74b){const _0x3ea0a2=a64_0x5925f1,_0x3b7a6d=_0x3dc74b['flag']('yes'),_0xb12179=_0x3dc74b[_0x3ea0a2(0x148)]('params'),_0x375cdf=parseParams(_0xb12179),_0x3a2f80=!!(_0x375cdf[_0x3ea0a2(0x16e)]||_0x375cdf[_0x3ea0a2(0x14b)]||_0x375cdf['pages']&&_0x375cdf[_0x3ea0a2(0x173)][_0x3ea0a2(0x174)]>0x0);if(_0x3b7a6d||_0x3a2f80){let _0x2455c9=[];!isInteractive()&&!_0x375cdf[_0x3ea0a2(0x173)]?.[_0x3ea0a2(0x174)]&&(_0x2455c9=await readPageLabelsFromStdin());const _0x588d1b=await runMenuSyncCore(_0x3dc74b['appCode'],_0x3dc74b[_0x3ea0a2(0x168)],_0x2455c9[_0x3ea0a2(0x174)]>0x0?_0x2455c9:_0x375cdf[_0x3ea0a2(0x173)]??[],_0xb12179);if(_0x588d1b['skipped']){const _0x3acd05=getLocalPages();_0x3acd05[_0x3ea0a2(0x174)]===0x0?console[_0x3ea0a2(0x157)](_0x3ea0a2(0x14e)):console['log'](_0x3ea0a2(0x153));}else console[_0x3ea0a2(0x157)]('✓\x20Menu\x20sync\x20completed:\x20'+_0x588d1b[_0x3ea0a2(0x178)]+_0x3ea0a2(0x17b));return{'ok':!![]};}requireInteractive();const _0x2b02ba=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x522d84,_0x3e377e,_0x38499e;try{const _0x27f196=await fetchMenuData(_0x3dc74b[_0x3ea0a2(0x155)],_0x3dc74b[_0x3ea0a2(0x168)]);_0x522d84=_0x27f196[_0x3ea0a2(0x179)],_0x3e377e=_0x27f196[_0x3ea0a2(0x15f)],_0x38499e=_0x27f196['onlineMenuList'],stopSpinner(_0x2b02ba,_0x3ea0a2(0x161),!![]);}catch(_0x1e1010){stopSpinner(_0x2b02ba,'Failed\x20to\x20fetch\x20online\x20menu\x20list',![]);throw CliErrors[_0x3ea0a2(0x169)](_0x1e1010 instanceof Error?_0x1e1010[_0x3ea0a2(0x16d)]:_0x3ea0a2(0x158));}if(_0x522d84[_0x3ea0a2(0x174)]===0x0)return console[_0x3ea0a2(0x157)](a64_0xb92eca[_0x3ea0a2(0x156)]('\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first')),{'ok':!![]};const _0x1bff17=buildCompareRows(_0x522d84,_0x3e377e);console[_0x3ea0a2(0x157)](renderCompareTable(_0x1bff17)),console[_0x3ea0a2(0x157)]();const _0x3d63eb=_0x375cdf[_0x3ea0a2(0x173)],_0x2cd494=await selectPages(_0x522d84,_0x3e377e,_0x3d63eb);console['log'](),console[_0x3ea0a2(0x157)](a64_0xb92eca[_0x3ea0a2(0x170)](_0x3ea0a2(0x14a)+_0x2cd494[_0x3ea0a2(0x174)]+'\x20page(s)'));const _0x41f027=_0x375cdf[_0x3ea0a2(0x16e)]&&_0x375cdf['cssUrl'];if(!_0x41f027){console['log'](renderSyncSummary(_0x2cd494,_0x3e377e[_0x3ea0a2(0x17a)]>0x0));const _0x47c0df=await askConfirm(_0x3ea0a2(0x16f));if(!_0x47c0df)return console['log'](a64_0xb92eca[_0x3ea0a2(0x176)](_0x3ea0a2(0x15d))),{'ok':!![]};}let _0x433795=_0x375cdf[_0x3ea0a2(0x16e)],_0x20782b=_0x375cdf[_0x3ea0a2(0x14b)];!_0x433795&&(_0x433795=await askJsUrl());!_0x20782b&&(_0x20782b=await askCssUrl());const _0x43d9e9=await askConfirm(_0x3ea0a2(0x17d)+_0x2cd494[_0x3ea0a2(0x174)]+_0x3ea0a2(0x15e)+_0x433795+_0x3ea0a2(0x171)+_0x20782b+'?');if(!_0x43d9e9)return console[_0x3ea0a2(0x157)](a64_0xb92eca['gray']('\x20\x20Cancelled.')),{'ok':!![]};const _0x119064=[_0x433795,_0x20782b],_0x53e20d=startSpinner('Creating\x20'+_0x2cd494[_0x3ea0a2(0x174)]+_0x3ea0a2(0x15a));try{const _0x5dbc3a=await doCreateMenus(_0x3dc74b[_0x3ea0a2(0x155)],_0x3dc74b[_0x3ea0a2(0x168)],_0x2cd494,_0x119064);return stopSpinner(_0x53e20d,_0x3ea0a2(0x17e)+_0x5dbc3a[_0x3ea0a2(0x178)]+_0x3ea0a2(0x154),!![]),{'ok':!![],'data':_0x5dbc3a,'message':_0x3ea0a2(0x17c)+_0x5dbc3a[_0x3ea0a2(0x178)]+_0x3ea0a2(0x172)+_0x5dbc3a['failed']+'\x20failed.'};}catch(_0x3084db){stopSpinner(_0x53e20d,'Menu\x20creation\x20failed',![]);throw CliErrors[_0x3ea0a2(0x169)](_0x3084db instanceof Error?_0x3084db[_0x3ea0a2(0x16d)]:_0x3ea0a2(0x164));}}};function a64_0x12fc(_0x573535,_0x44125c){_0x573535=_0x573535-0x148;const _0xeeae92=a64_0xeeae();let _0x12fc94=_0xeeae92[_0x573535];return _0x12fc94;}function parseParams(_0x413d89){const _0x12b0a4=a64_0x5925f1;if(!_0x413d89)return{};try{const _0x5b9f85=JSON['parse'](_0x413d89);if(typeof _0x5b9f85!==_0x12b0a4(0x15c)||_0x5b9f85===null||Array['isArray'](_0x5b9f85))return{};return{'jsUrl':typeof _0x5b9f85[_0x12b0a4(0x16e)]===_0x12b0a4(0x149)?_0x5b9f85[_0x12b0a4(0x16e)][_0x12b0a4(0x14c)]():undefined,'cssUrl':typeof _0x5b9f85['cssUrl']===_0x12b0a4(0x149)?_0x5b9f85[_0x12b0a4(0x14b)]['trim']():undefined,'pages':Array[_0x12b0a4(0x152)](_0x5b9f85[_0x12b0a4(0x173)])?_0x5b9f85[_0x12b0a4(0x173)][_0x12b0a4(0x166)](String):undefined};}catch{return{};}}function a64_0xeeae(){const _0x101508=['\x20menu(s)...','190FODOzP','object','\x20\x20Cancelled.','\x20menu(s)\x20with\x20JS:\x20','onlinePaths','2908952peqLsm','Online\x20menu\x20list\x20fetched','8714097SzMUsW','119785UOsfaL','Menu\x20creation\x20failed','1152182RVqLWk','map','boolean','cookie','validation','3507840qzMWGC','172rXwsen','Sync\x20local\x20pages\x20as\x20platform\x20menus','message','jsUrl','\x20\x20Continue\x20with\x20creation?','cyan','\x20and\x20CSS:\x20','\x20created,\x20','pages','length','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22,\x22pages\x22:[\x22Page1\x22]}','gray','write','created','localPages','size','\x20menu(s)\x20created','Menu\x20sync\x20completed:\x20','\x20\x20Create\x20','Created\x20','280989cpghEd','str','string','\x20\x20✓\x20Selected:\x20','cssUrl','trim','26swjIUS','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','params','yes','Non-interactive:\x20auto-create\x20all\x20local\x20pages\x20not\x20yet\x20on\x20platform','isArray','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','\x20menu(s)','appCode','yellow','log','Failed\x20to\x20fetch\x20online\x20menu\x20list','9324qcUKdh'];a64_0xeeae=function(){return _0x101508;};return a64_0xeeae();}
1
+ const a64_0x11e89d=a64_0x350f;function a64_0x350f(_0x5d9944,_0x33abbb){_0x5d9944=_0x5d9944-0xad;const _0x53489e=a64_0x5348();let _0x350fb6=_0x53489e[_0x5d9944];return _0x350fb6;}(function(_0x29303f,_0xc2c5ed){const _0x4c142c=a64_0x350f,_0x3c024f=_0x29303f();while(!![]){try{const _0x46d50c=parseInt(_0x4c142c(0xd8))/0x1*(parseInt(_0x4c142c(0xeb))/0x2)+parseInt(_0x4c142c(0xad))/0x3*(-parseInt(_0x4c142c(0xea))/0x4)+parseInt(_0x4c142c(0xdf))/0x5*(-parseInt(_0x4c142c(0xef))/0x6)+parseInt(_0x4c142c(0xe2))/0x7*(-parseInt(_0x4c142c(0xde))/0x8)+-parseInt(_0x4c142c(0xec))/0x9*(-parseInt(_0x4c142c(0xe9))/0xa)+parseInt(_0x4c142c(0xb3))/0xb+parseInt(_0x4c142c(0xbe))/0xc;if(_0x46d50c===_0xc2c5ed)break;else _0x3c024f['push'](_0x3c024f['shift']());}catch(_0x4e84df){_0x3c024f['push'](_0x3c024f['shift']());}}}(a64_0x5348,0x2d6c9));import a64_0x2cc487 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{runMenuSyncCore,readPageLabelsFromStdin}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';function a64_0x5348(){const _0x2397b4=['\x20and\x20CSS:\x20','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','Pre-fill\x20JS/CSS\x20URLs\x20and/or\x20select\x20specific\x20pages.\x20','512KCcUYy','2895SZtLWq','log','onlinePaths','16037IOLxZb','cookie','failed','Menu\x20creation\x20failed','✓\x20Menu\x20sync\x20completed:\x20','Online\x20menu\x20list\x20fetched','boolean','1333160dtEJAv','2188NhYgqy','70476lXBjds','18NLbDTL','validation','onlineMenuList','2208KxCFqo','1992czoHtn','parse','object','Menu\x20sync\x20completed:\x20','Non-interactive:\x20auto-create\x20all\x20local\x20pages\x20not\x20yet\x20on\x20platform','created','2924339KdfFbA','\x20\x20✓\x20Selected:\x20','\x20page(s)','localPages','trim','Failed\x20to\x20fetch\x20online\x20menu\x20list','\x20menu(s)\x20created','\x20\x20Continue\x20with\x20creation?','length','\x20menu(s)\x20with\x20JS:\x20','sync','3672048impJdm','message','isArray','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','string','pages','Creating\x20','size','flag','\x20\x20Cancelled.','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22,\x22pages\x22:[\x22Page1\x22]}','params','yellow','write','Fetching\x20online\x20menu\x20list...','gray','\x20menu(s)','\x20menu(s)...','str','Sync\x20local\x20pages\x20as\x20platform\x20menus','yes','Created\x20','skipped','cyan','\x20failed.','cssUrl','2tENgtA','appCode','jsUrl'];a64_0x5348=function(){return _0x2397b4;};return a64_0x5348();}export const menuSync={'service':'menu','command':a64_0x11e89d(0xbd),'description':a64_0x11e89d(0xd1),'risk':a64_0x11e89d(0xcb),'flags':[{'name':a64_0x11e89d(0xc9),'type':'string','description':a64_0x11e89d(0xdd)+a64_0x11e89d(0xc8)},{'name':a64_0x11e89d(0xd2),'type':a64_0x11e89d(0xe8),'description':a64_0x11e89d(0xb1)}],async 'execute'(_0x3348a8){const _0x212cb0=a64_0x11e89d,_0x28d1cf=_0x3348a8[_0x212cb0(0xc6)]('yes'),_0x484993=_0x3348a8[_0x212cb0(0xd0)](_0x212cb0(0xc9)),_0x3e0b19=parseParams(_0x484993),_0xe087df=!!(_0x3e0b19[_0x212cb0(0xda)]||_0x3e0b19[_0x212cb0(0xd7)]||_0x3e0b19['pages']&&_0x3e0b19[_0x212cb0(0xc3)][_0x212cb0(0xbb)]>0x0);if(_0x28d1cf||_0xe087df){let _0x4d4735=[];!isInteractive()&&!_0x3e0b19[_0x212cb0(0xc3)]?.['length']&&(_0x4d4735=await readPageLabelsFromStdin());const _0x251a5f=await runMenuSyncCore(_0x3348a8[_0x212cb0(0xd9)],_0x3348a8[_0x212cb0(0xe3)],_0x4d4735[_0x212cb0(0xbb)]>0x0?_0x4d4735:_0x3e0b19[_0x212cb0(0xc3)]??[],_0x484993);if(_0x251a5f[_0x212cb0(0xd4)]){const _0x561361=getLocalPages();_0x561361['length']===0x0?console[_0x212cb0(0xe0)]('!\x20No\x20local\x20pages\x20found\x20in\x20src/pages'):console[_0x212cb0(0xe0)](_0x212cb0(0xdc));}else console['log'](_0x212cb0(0xe6)+_0x251a5f['created']+_0x212cb0(0xb9));return{'ok':!![]};}requireInteractive();const _0x19a8ec=startSpinner(_0x212cb0(0xcc));let _0x441238,_0x12e8d3,_0x4ea415;try{const _0x13a247=await fetchMenuData(_0x3348a8[_0x212cb0(0xd9)],_0x3348a8[_0x212cb0(0xe3)]);_0x441238=_0x13a247[_0x212cb0(0xb6)],_0x12e8d3=_0x13a247[_0x212cb0(0xe1)],_0x4ea415=_0x13a247[_0x212cb0(0xee)],stopSpinner(_0x19a8ec,_0x212cb0(0xe7),!![]);}catch(_0x5141be){stopSpinner(_0x19a8ec,_0x212cb0(0xb8),![]);throw CliErrors[_0x212cb0(0xed)](_0x5141be instanceof Error?_0x5141be[_0x212cb0(0xbf)]:_0x212cb0(0xb8));}if(_0x441238['length']===0x0)return console['log'](a64_0x2cc487[_0x212cb0(0xca)](_0x212cb0(0xc1))),{'ok':!![]};const _0x84d3a4=buildCompareRows(_0x441238,_0x12e8d3);console[_0x212cb0(0xe0)](renderCompareTable(_0x84d3a4)),console[_0x212cb0(0xe0)]();const _0x16a869=_0x3e0b19[_0x212cb0(0xc3)],_0x59cb38=await selectPages(_0x441238,_0x12e8d3,_0x16a869);console['log'](),console[_0x212cb0(0xe0)](a64_0x2cc487[_0x212cb0(0xd5)](_0x212cb0(0xb4)+_0x59cb38[_0x212cb0(0xbb)]+_0x212cb0(0xb5)));const _0x5a1fc3=_0x3e0b19['jsUrl']&&_0x3e0b19[_0x212cb0(0xd7)];if(!_0x5a1fc3){console[_0x212cb0(0xe0)](renderSyncSummary(_0x59cb38,_0x12e8d3[_0x212cb0(0xc5)]>0x0));const _0x23256f=await askConfirm(_0x212cb0(0xba));if(!_0x23256f)return console[_0x212cb0(0xe0)](a64_0x2cc487[_0x212cb0(0xcd)](_0x212cb0(0xc7))),{'ok':!![]};}let _0x4f9ae5=_0x3e0b19[_0x212cb0(0xda)],_0x37e146=_0x3e0b19['cssUrl'];!_0x4f9ae5&&(_0x4f9ae5=await askJsUrl());!_0x37e146&&(_0x37e146=await askCssUrl());const _0x50c8a0=await askConfirm('\x20\x20Create\x20'+_0x59cb38['length']+_0x212cb0(0xbc)+_0x4f9ae5+_0x212cb0(0xdb)+_0x37e146+'?');if(!_0x50c8a0)return console['log'](a64_0x2cc487[_0x212cb0(0xcd)](_0x212cb0(0xc7))),{'ok':!![]};const _0x221dfe=[_0x4f9ae5,_0x37e146],_0x16e6ee=startSpinner(_0x212cb0(0xc4)+_0x59cb38[_0x212cb0(0xbb)]+_0x212cb0(0xcf));try{const _0x20418d=await doCreateMenus(_0x3348a8[_0x212cb0(0xd9)],_0x3348a8[_0x212cb0(0xe3)],_0x59cb38,_0x221dfe);return stopSpinner(_0x16e6ee,_0x212cb0(0xd3)+_0x20418d['created']+_0x212cb0(0xce),!![]),{'ok':!![],'data':_0x20418d,'message':_0x212cb0(0xb0)+_0x20418d[_0x212cb0(0xb2)]+'\x20created,\x20'+_0x20418d[_0x212cb0(0xe4)]+_0x212cb0(0xd6)};}catch(_0x1268a1){stopSpinner(_0x16e6ee,_0x212cb0(0xe5),![]);throw CliErrors[_0x212cb0(0xed)](_0x1268a1 instanceof Error?_0x1268a1[_0x212cb0(0xbf)]:_0x212cb0(0xe5));}}};function parseParams(_0x51c85f){const _0x677204=a64_0x11e89d;if(!_0x51c85f)return{};try{const _0x71c0a5=JSON[_0x677204(0xae)](_0x51c85f);if(typeof _0x71c0a5!==_0x677204(0xaf)||_0x71c0a5===null||Array[_0x677204(0xc0)](_0x71c0a5))return{};return{'jsUrl':typeof _0x71c0a5[_0x677204(0xda)]===_0x677204(0xc2)?_0x71c0a5[_0x677204(0xda)][_0x677204(0xb7)]():undefined,'cssUrl':typeof _0x71c0a5[_0x677204(0xd7)]===_0x677204(0xc2)?_0x71c0a5['cssUrl'][_0x677204(0xb7)]():undefined,'pages':Array[_0x677204(0xc0)](_0x71c0a5[_0x677204(0xc3)])?_0x71c0a5['pages']['map'](String):undefined};}catch{return{};}}
@@ -1 +1 @@
1
- const a65_0x5029cd=a65_0x4ef5;function a65_0xc7df(){const _0x4be47a=['11110984rSGMTf','4115430wqRglC','✓\x20Menu\x20update\x20completed:\x20','update','appCode','365535lsGLIm','updated','Failed\x20to\x20fetch\x20online\x20menu\x20list','Pre-fill\x20JS/CSS\x20URLs\x20to\x20update.\x20','Update\x20CDN\x20asset\x20URLs\x20for\x20all\x20online\x20menus\x20with\x20existing\x20resources','\x20and\x20CSS:\x20','3290844BUDrEc','boolean','str','object','yellow','jsUrl','label','string','write','!\x20No\x20menus\x20with\x20existing\x20resources\x20found','failed','params','flag','map','error','\x20failed.','\x20\x20Update\x20','trim','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','4465281REyarF','\x20menu(s)\x20failed','cssUrl','\x20updated.','7OVfZaG','\x20menu(s)','\x20menu(s)...','\x20\x20Found\x20','message','cookie','784241YEhjTN','Fetching\x20online\x20menu\x20list...','\x20menu(s)\x20with\x20JS:\x20','isArray','validation','4399850egBUnO','\x20\x20Cancelled.','gray','cyan','Menu\x20update\x20completed:\x20','2GRBwSN','Non-interactive:\x20update\x20all\x20menus\x20without\x20confirmation','skipped','yes','log','Menu\x20update\x20failed','4LjrTeA','length','parse','Updated\x20'];a65_0xc7df=function(){return _0x4be47a;};return a65_0xc7df();}(function(_0x268a46,_0x482657){const _0x515346=a65_0x4ef5,_0x2d263e=_0x268a46();while(!![]){try{const _0x3ae5b0=-parseInt(_0x515346(0x191))/0x1*(-parseInt(_0x515346(0x19b))/0x2)+parseInt(_0x515346(0x187))/0x3*(parseInt(_0x515346(0x1a1))/0x4)+parseInt(_0x515346(0x1a6))/0x5+-parseInt(_0x515346(0x1b0))/0x6*(parseInt(_0x515346(0x18b))/0x7)+-parseInt(_0x515346(0x1a5))/0x8+parseInt(_0x515346(0x1aa))/0x9+-parseInt(_0x515346(0x196))/0xa;if(_0x3ae5b0===_0x482657)break;else _0x2d263e['push'](_0x2d263e['shift']());}catch(_0x594770){_0x2d263e['push'](_0x2d263e['shift']());}}}(a65_0xc7df,0xb94fd));import a65_0x287705 from'chalk';import{filterMenusWithResources,doUpdateCdnUrls,fetchOnlineMenuList}from'./shared/logic.js';import{renderUpdateSummary}from'./shared/compare-table.js';import{askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'./shared/inquirer.js';function a65_0x4ef5(_0x4a0127,_0x562de8){_0x4a0127=_0x4a0127-0x186;const _0xc7df6d=a65_0xc7df();let _0x4ef5e6=_0xc7df6d[_0x4a0127];return _0x4ef5e6;}import{CliErrors}from'../../errors.js';import{runMenuUpdateCore}from'./shared/update-core.js';export const menuUpdate={'service':'menu','command':a65_0x5029cd(0x1a8),'description':a65_0x5029cd(0x1ae),'risk':a65_0x5029cd(0x1b8),'flags':[{'name':a65_0x5029cd(0x1bb),'type':'string','description':a65_0x5029cd(0x1ad)+a65_0x5029cd(0x186)},{'name':a65_0x5029cd(0x19e),'type':a65_0x5029cd(0x1b1),'description':a65_0x5029cd(0x19c)}],async 'execute'(_0x27156a){const _0x2b35d2=a65_0x5029cd,_0x24aaee=_0x27156a[_0x2b35d2(0x1bc)](_0x2b35d2(0x19e)),_0x36c1cf=_0x27156a[_0x2b35d2(0x1b2)](_0x2b35d2(0x1bb)),_0x388a5f=parseParams(_0x36c1cf),_0x4c7b2d=!!(_0x388a5f[_0x2b35d2(0x1b5)]||_0x388a5f[_0x2b35d2(0x189)]);if(_0x24aaee||_0x4c7b2d&&!isInteractive()){const _0x19cbcd=await runMenuUpdateCore(_0x27156a[_0x2b35d2(0x1a9)],_0x27156a['cookie'],_0x36c1cf);return _0x19cbcd[_0x2b35d2(0x19d)]?console['log'](_0x2b35d2(0x1b9)):(console[_0x2b35d2(0x19f)](_0x2b35d2(0x1a7)+_0x19cbcd[_0x2b35d2(0x1ab)]+'\x20menu(s)\x20updated'),_0x19cbcd['failed']>0x0&&console[_0x2b35d2(0x1be)]('!\x20'+_0x19cbcd[_0x2b35d2(0x1ba)]+_0x2b35d2(0x188))),{'ok':_0x19cbcd['failed']===0x0};}requireInteractive();const _0x3ce5b5=startSpinner(_0x2b35d2(0x192));let _0x1192a1;try{_0x1192a1=await fetchOnlineMenuList(_0x27156a[_0x2b35d2(0x1a9)],_0x27156a[_0x2b35d2(0x190)]),stopSpinner(_0x3ce5b5,'Online\x20menu\x20list\x20fetched',!![]);}catch(_0x2f00c7){stopSpinner(_0x3ce5b5,'Failed\x20to\x20fetch\x20online\x20menu\x20list',![]);throw CliErrors[_0x2b35d2(0x195)](_0x2f00c7 instanceof Error?_0x2f00c7[_0x2b35d2(0x18f)]:_0x2b35d2(0x1ac));}const _0x2d6125=filterMenusWithResources(_0x1192a1);if(_0x2d6125['length']===0x0)return console[_0x2b35d2(0x19f)](a65_0x287705[_0x2b35d2(0x1b4)]('\x20\x20!\x20No\x20menus\x20with\x20existing\x20resources\x20found')),{'ok':!![]};console[_0x2b35d2(0x19f)](),console[_0x2b35d2(0x19f)](a65_0x287705[_0x2b35d2(0x199)](_0x2b35d2(0x18e)+_0x2d6125['length']+'\x20menu(s)\x20with\x20existing\x20resources')),console['log'](renderUpdateSummary(_0x2d6125[_0x2b35d2(0x1bd)](_0x1ccb3e=>_0x1ccb3e[_0x2b35d2(0x1b6)]),[_0x388a5f[_0x2b35d2(0x1b5)],_0x388a5f['cssUrl']])),console[_0x2b35d2(0x19f)]();let _0x10f758=_0x388a5f[_0x2b35d2(0x1b5)],_0x33ffa7=_0x388a5f[_0x2b35d2(0x189)];!_0x10f758&&(_0x10f758=await askJsUrl());!_0x33ffa7&&(_0x33ffa7=await askCssUrl());const _0x39b4ba=await askConfirm(_0x2b35d2(0x1c0)+_0x2d6125[_0x2b35d2(0x1a2)]+_0x2b35d2(0x193)+_0x10f758+_0x2b35d2(0x1af)+_0x33ffa7+'?');if(!_0x39b4ba)return console[_0x2b35d2(0x19f)](a65_0x287705[_0x2b35d2(0x198)](_0x2b35d2(0x197))),{'ok':!![]};const _0x858c7e=[_0x10f758,_0x33ffa7],_0x599e81=startSpinner('Updating\x20'+_0x2d6125['length']+_0x2b35d2(0x18d));try{const _0x5e499d=await doUpdateCdnUrls(_0x27156a['appCode'],_0x27156a['cookie'],_0x2d6125,_0x858c7e);return stopSpinner(_0x599e81,_0x2b35d2(0x1a4)+_0x5e499d[_0x2b35d2(0x1ab)]+_0x2b35d2(0x18c),_0x5e499d[_0x2b35d2(0x1ba)]===0x0),{'ok':_0x5e499d[_0x2b35d2(0x1ba)]===0x0,'data':_0x5e499d,'message':_0x5e499d[_0x2b35d2(0x1ba)]>0x0?_0x2b35d2(0x19a)+_0x5e499d[_0x2b35d2(0x1ab)]+'\x20updated,\x20'+_0x5e499d[_0x2b35d2(0x1ba)]+_0x2b35d2(0x1bf):_0x2b35d2(0x19a)+_0x5e499d[_0x2b35d2(0x1ab)]+_0x2b35d2(0x18a)};}catch(_0x5e61c4){stopSpinner(_0x599e81,'Menu\x20update\x20failed',![]);throw CliErrors[_0x2b35d2(0x195)](_0x5e61c4 instanceof Error?_0x5e61c4[_0x2b35d2(0x18f)]:_0x2b35d2(0x1a0));}}};function parseParams(_0x2c30a2){const _0xa8a5b=a65_0x5029cd;if(!_0x2c30a2)return{};try{const _0x268066=JSON[_0xa8a5b(0x1a3)](_0x2c30a2);if(typeof _0x268066!==_0xa8a5b(0x1b3)||_0x268066===null||Array[_0xa8a5b(0x194)](_0x268066))return{};return{'jsUrl':typeof _0x268066[_0xa8a5b(0x1b5)]===_0xa8a5b(0x1b7)?_0x268066[_0xa8a5b(0x1b5)][_0xa8a5b(0x1c1)]():undefined,'cssUrl':typeof _0x268066[_0xa8a5b(0x189)]===_0xa8a5b(0x1b7)?_0x268066[_0xa8a5b(0x189)][_0xa8a5b(0x1c1)]():undefined};}catch{return{};}}
1
+ const a65_0x65f85a=a65_0x52fe;function a65_0x3419(){const _0x2152a6=['57WdpLoE','log','cookie','Online\x20menu\x20list\x20fetched','updated','14591830HMkmSQ','label','\x20\x20Cancelled.','\x20menu(s)\x20with\x20JS:\x20','11492byoNIB','\x20updated.','!\x20No\x20menus\x20with\x20existing\x20resources\x20found','\x20failed.','1071PlfspL','object','14390jxXPwV','write','49rAljaA','Menu\x20update\x20failed','Updated\x20','message','appCode','flag','failed','cyan','yes','124444DHwuTR','cssUrl','Fetching\x20online\x20menu\x20list...','294968kfszfP','\x20\x20!\x20No\x20menus\x20with\x20existing\x20resources\x20found','2820KtbMvO','Non-interactive:\x20update\x20all\x20menus\x20without\x20confirmation','string','Updating\x20','128376jitQLD','gray','Pre-fill\x20JS/CSS\x20URLs\x20to\x20update.\x20','✓\x20Menu\x20update\x20completed:\x20','isArray','3680vtCMGa','jsUrl','params','\x20\x20Found\x20','\x20menu(s)\x20failed','update','Failed\x20to\x20fetch\x20online\x20menu\x20list','length','\x20menu(s)...','trim','skipped','boolean','parse','\x20menu(s)\x20with\x20existing\x20resources'];a65_0x3419=function(){return _0x2152a6;};return a65_0x3419();}(function(_0xa2b5ee,_0x424e52){const _0x4b9213=a65_0x52fe,_0x236a1b=_0xa2b5ee();while(!![]){try{const _0xe5bdfe=parseInt(_0x4b9213(0x1fc))/0x1*(-parseInt(_0x4b9213(0x205))/0x2)+parseInt(_0x4b9213(0x1e9))/0x3+-parseInt(_0x4b9213(0x216))/0x4+-parseInt(_0x4b9213(0x1ee))/0x5*(parseInt(_0x4b9213(0x1e5))/0x6)+parseInt(_0x4b9213(0x20d))/0x7*(-parseInt(_0x4b9213(0x1e3))/0x8)+parseInt(_0x4b9213(0x209))/0x9*(-parseInt(_0x4b9213(0x20b))/0xa)+parseInt(_0x4b9213(0x201))/0xb;if(_0xe5bdfe===_0x424e52)break;else _0x236a1b['push'](_0x236a1b['shift']());}catch(_0x59e345){_0x236a1b['push'](_0x236a1b['shift']());}}}(a65_0x3419,0x397a7));import a65_0x8b9eac from'chalk';import{filterMenusWithResources,doUpdateCdnUrls,fetchOnlineMenuList}from'../../commands/menu/shared/logic.js';import{renderUpdateSummary}from'../../commands/menu/shared/compare-table.js';import{askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{runMenuUpdateCore}from'../../commands/menu/shared/update-core.js';function a65_0x52fe(_0x615d09,_0x4ddcf6){_0x615d09=_0x615d09-0x1e3;const _0x3419db=a65_0x3419();let _0x52fe10=_0x3419db[_0x615d09];return _0x52fe10;}export const menuUpdate={'service':'menu','command':a65_0x65f85a(0x1f3),'description':'Update\x20CDN\x20asset\x20URLs\x20for\x20all\x20online\x20menus\x20with\x20existing\x20resources','risk':a65_0x65f85a(0x20c),'flags':[{'name':a65_0x65f85a(0x1f0),'type':'string','description':a65_0x65f85a(0x1eb)+'JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}'},{'name':a65_0x65f85a(0x215),'type':a65_0x65f85a(0x1f9),'description':a65_0x65f85a(0x1e6)}],async 'execute'(_0xb80fad){const _0xe8e039=a65_0x65f85a,_0x2c96c7=_0xb80fad[_0xe8e039(0x212)](_0xe8e039(0x215)),_0x216ed2=_0xb80fad['str']('params'),_0x5c0d81=parseParams(_0x216ed2),_0x2a13c9=!!(_0x5c0d81['jsUrl']||_0x5c0d81[_0xe8e039(0x217)]);if(_0x2c96c7||_0x2a13c9&&!isInteractive()){const _0x57bff7=await runMenuUpdateCore(_0xb80fad[_0xe8e039(0x211)],_0xb80fad[_0xe8e039(0x1fe)],_0x216ed2);return _0x57bff7[_0xe8e039(0x1f8)]?console[_0xe8e039(0x1fd)](_0xe8e039(0x207)):(console[_0xe8e039(0x1fd)](_0xe8e039(0x1ec)+_0x57bff7['updated']+'\x20menu(s)\x20updated'),_0x57bff7['failed']>0x0&&console['error']('!\x20'+_0x57bff7[_0xe8e039(0x213)]+_0xe8e039(0x1f2))),{'ok':_0x57bff7[_0xe8e039(0x213)]===0x0};}requireInteractive();const _0x461755=startSpinner(_0xe8e039(0x218));let _0x2b8b87;try{_0x2b8b87=await fetchOnlineMenuList(_0xb80fad[_0xe8e039(0x211)],_0xb80fad[_0xe8e039(0x1fe)]),stopSpinner(_0x461755,_0xe8e039(0x1ff),!![]);}catch(_0x4f5207){stopSpinner(_0x461755,_0xe8e039(0x1f4),![]);throw CliErrors['validation'](_0x4f5207 instanceof Error?_0x4f5207['message']:_0xe8e039(0x1f4));}const _0x39e780=filterMenusWithResources(_0x2b8b87);if(_0x39e780[_0xe8e039(0x1f5)]===0x0)return console['log'](a65_0x8b9eac['yellow'](_0xe8e039(0x1e4))),{'ok':!![]};console[_0xe8e039(0x1fd)](),console[_0xe8e039(0x1fd)](a65_0x8b9eac[_0xe8e039(0x214)](_0xe8e039(0x1f1)+_0x39e780['length']+_0xe8e039(0x1fb))),console[_0xe8e039(0x1fd)](renderUpdateSummary(_0x39e780['map'](_0x1dcab9=>_0x1dcab9[_0xe8e039(0x202)]),[_0x5c0d81[_0xe8e039(0x1ef)],_0x5c0d81['cssUrl']])),console[_0xe8e039(0x1fd)]();let _0x442775=_0x5c0d81[_0xe8e039(0x1ef)],_0x3b2cff=_0x5c0d81[_0xe8e039(0x217)];!_0x442775&&(_0x442775=await askJsUrl());!_0x3b2cff&&(_0x3b2cff=await askCssUrl());const _0x270619=await askConfirm('\x20\x20Update\x20'+_0x39e780['length']+_0xe8e039(0x204)+_0x442775+'\x20and\x20CSS:\x20'+_0x3b2cff+'?');if(!_0x270619)return console[_0xe8e039(0x1fd)](a65_0x8b9eac[_0xe8e039(0x1ea)](_0xe8e039(0x203))),{'ok':!![]};const _0x2049f9=[_0x442775,_0x3b2cff],_0x4ffe5c=startSpinner(_0xe8e039(0x1e8)+_0x39e780[_0xe8e039(0x1f5)]+_0xe8e039(0x1f6));try{const _0x52e4a8=await doUpdateCdnUrls(_0xb80fad[_0xe8e039(0x211)],_0xb80fad[_0xe8e039(0x1fe)],_0x39e780,_0x2049f9);return stopSpinner(_0x4ffe5c,_0xe8e039(0x20f)+_0x52e4a8[_0xe8e039(0x200)]+'\x20menu(s)',_0x52e4a8['failed']===0x0),{'ok':_0x52e4a8['failed']===0x0,'data':_0x52e4a8,'message':_0x52e4a8[_0xe8e039(0x213)]>0x0?'Menu\x20update\x20completed:\x20'+_0x52e4a8[_0xe8e039(0x200)]+'\x20updated,\x20'+_0x52e4a8[_0xe8e039(0x213)]+_0xe8e039(0x208):'Menu\x20update\x20completed:\x20'+_0x52e4a8[_0xe8e039(0x200)]+_0xe8e039(0x206)};}catch(_0x1828ba){stopSpinner(_0x4ffe5c,_0xe8e039(0x20e),![]);throw CliErrors['validation'](_0x1828ba instanceof Error?_0x1828ba[_0xe8e039(0x210)]:'Menu\x20update\x20failed');}}};function parseParams(_0x3cb4a2){const _0x7723de=a65_0x65f85a;if(!_0x3cb4a2)return{};try{const _0x451371=JSON[_0x7723de(0x1fa)](_0x3cb4a2);if(typeof _0x451371!==_0x7723de(0x20a)||_0x451371===null||Array[_0x7723de(0x1ed)](_0x451371))return{};return{'jsUrl':typeof _0x451371[_0x7723de(0x1ef)]==='string'?_0x451371[_0x7723de(0x1ef)][_0x7723de(0x1f7)]():undefined,'cssUrl':typeof _0x451371['cssUrl']===_0x7723de(0x1e7)?_0x451371[_0x7723de(0x217)]['trim']():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- (function(_0xc2c9c0,_0x47b201){const _0x482754=a66_0x5ab3,_0x10548d=_0xc2c9c0();while(!![]){try{const _0x39e2a5=parseInt(_0x482754(0x180))/0x1*(-parseInt(_0x482754(0x16c))/0x2)+parseInt(_0x482754(0x16b))/0x3*(-parseInt(_0x482754(0x16f))/0x4)+parseInt(_0x482754(0x17c))/0x5+parseInt(_0x482754(0x17f))/0x6+parseInt(_0x482754(0x17a))/0x7*(-parseInt(_0x482754(0x176))/0x8)+parseInt(_0x482754(0x178))/0x9*(-parseInt(_0x482754(0x172))/0xa)+parseInt(_0x482754(0x17b))/0xb;if(_0x39e2a5===_0x47b201)break;else _0x10548d['push'](_0x10548d['shift']());}catch(_0x32b121){_0x10548d['push'](_0x10548d['shift']());}}}(a66_0x4bfb,0x2c131));import{existsSync}from'node:fs';import a66_0x455652 from'node:path';import a66_0x990ed1 from'chalk';import{input,confirm}from'@inquirer/prompts';function a66_0x5ab3(_0x44bf22,_0x3253f5){_0x44bf22=_0x44bf22-0x166;const _0x4bfb5=a66_0x4bfb();let _0x5ab3b1=_0x4bfb5[_0x44bf22];return _0x5ab3b1;}import{getIsSessionValid}from'../../../auth/is-session-valid.js';import{authServer}from'../../../auth/auth-server.js';function a66_0x4bfb(){const _0x5d8541=['cyan','\x22\x20already\x20exists','8gUqLuf','√\x20App\x20Code:\x20','18LgFESg','my-app','2169524LJleBu','7066565XciQrz','944015plRxSe','Skipped','√\x20Project\x20Name:\x20','1752186qfZCSq','1ZMTSwh','string','log','√\x20Login\x20status:\x20','green','Not\x20set','cwd','Directory\x20\x22','production','153BgavKf','558562epikpd','trim','env','13732QKHagE','No\x20valid\x20login\x20detected.\x20Login\x20first\x20to\x20pull\x20API\x20config?','Logged\x20in','892120iUoOfl','test'];a66_0x4bfb=function(){return _0x5d8541;};return a66_0x4bfb();}import{readConfig}from'../../../utils/config.js';import{selectSingleAppcode}from'../../common/app-selector.js';export async function guidedCreateProject(_0x436dd4,_0x477088,_0x15dcca){const _0x31d049=a66_0x5ab3,_0x1f3fcc=_0x31d049(0x179),_0xd3dc1e=readConfig(),_0x31af74=typeof _0xd3dc1e[_0x31d049(0x16e)]===_0x31d049(0x181)?_0xd3dc1e[_0x31d049(0x16e)]:undefined,_0x4e94b3=await input({'message':'Project\x20name:','default':_0x1f3fcc,'validate':_0x2c53b9=>{const _0x577ec2=_0x31d049,_0x34cc78=_0x2c53b9[_0x577ec2(0x16d)]()||_0x1f3fcc;if(_0x34cc78['length']>0x32)return'Project\x20name\x20cannot\x20exceed\x2050\x20characters';const _0x4337bd=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x34cc78&&!_0x4337bd[_0x577ec2(0x173)](_0x34cc78))return'Must\x20start\x20with\x20a\x20letter/number\x20and\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_';const _0x4f80c5=a66_0x455652['resolve'](process[_0x577ec2(0x168)](),_0x34cc78);if(existsSync(_0x4f80c5))return _0x577ec2(0x169)+_0x34cc78+_0x577ec2(0x175);return!![];}});console[_0x31d049(0x182)](a66_0x990ed1[_0x31d049(0x166)](_0x31d049(0x17e)+a66_0x990ed1[_0x31d049(0x174)](_0x4e94b3)));const _0x5a5af4=await selectSingleAppcode(_0x15dcca);console[_0x31d049(0x182)](a66_0x990ed1[_0x31d049(0x166)](_0x31d049(0x177)+a66_0x990ed1[_0x31d049(0x174)](_0x5a5af4||_0x31d049(0x167))));if(_0x5a5af4){const _0x52720a=await getIsSessionValid();if(!_0x52720a){const _0x52a77d=await confirm({'message':_0x31d049(0x170),'default':!![]});if(_0x52a77d){const _0x498a33=await authServer({'silent':!![]});console[_0x31d049(0x182)](a66_0x990ed1[_0x31d049(0x166)](_0x31d049(0x183)+a66_0x990ed1[_0x31d049(0x174)](_0x498a33?_0x31d049(0x171):'Login\x20failed')));}else console[_0x31d049(0x182)](a66_0x990ed1[_0x31d049(0x166)](_0x31d049(0x183)+a66_0x990ed1['cyan'](_0x31d049(0x17d))));}await _0x436dd4({'projectName':_0x4e94b3,'appCode':_0x5a5af4,'env':_0x477088||_0x31af74||_0x31d049(0x16a)});}else await _0x436dd4({'projectName':_0x4e94b3,'env':_0x477088||_0x31af74||_0x31d049(0x16a)});}
1
+ function a66_0x4543(_0xd5f894,_0xc189b7){_0xd5f894=_0xd5f894-0x14f;const _0x371ae7=a66_0x371a();let _0x45438f=_0x371ae7[_0xd5f894];return _0x45438f;}(function(_0x41f467,_0x2a62f5){const _0xa82e25=a66_0x4543,_0x4cf233=_0x41f467();while(!![]){try{const _0x3b31a8=parseInt(_0xa82e25(0x162))/0x1+-parseInt(_0xa82e25(0x157))/0x2+-parseInt(_0xa82e25(0x156))/0x3*(-parseInt(_0xa82e25(0x154))/0x4)+-parseInt(_0xa82e25(0x151))/0x5+-parseInt(_0xa82e25(0x150))/0x6+parseInt(_0xa82e25(0x15a))/0x7+parseInt(_0xa82e25(0x167))/0x8;if(_0x3b31a8===_0x2a62f5)break;else _0x4cf233['push'](_0x4cf233['shift']());}catch(_0x4decab){_0x4cf233['push'](_0x4cf233['shift']());}}}(a66_0x371a,0xc7bbd));import{existsSync}from'node:fs';import a66_0x16cf24 from'node:path';import a66_0x44fdcc from'chalk';import{input,confirm}from'@inquirer/prompts';import{getIsSessionValid}from'../../../auth/is-session-valid.js';import{authServer}from'../../../auth/auth-server.js';import{readConfig}from'../../../utils/config.js';function a66_0x371a(){const _0x4d84d3=['cwd','182152uQyXsp','Must\x20start\x20with\x20a\x20letter/number\x20and\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_','Skipped','√\x20Login\x20status:\x20','env','10904600KcEjAU','my-app','Login\x20failed','9737142JROmAd','4690515kQEDCH','trim','log','624836frjuKi','Logged\x20in','27skHoeG','938208iPgsKG','cyan','green','6279455tuKoQq','\x22\x20already\x20exists','No\x20valid\x20login\x20detected.\x20Login\x20first\x20to\x20pull\x20API\x20config?','Project\x20name\x20cannot\x20exceed\x2050\x20characters','production','resolve','Directory\x20\x22'];a66_0x371a=function(){return _0x4d84d3;};return a66_0x371a();}import{selectSingleAppcode}from'../../../commands/common/app-selector.js';export async function guidedCreateProject(_0x8de1e8,_0x2763b6,_0x5ea41c){const _0xb900a4=a66_0x4543,_0x297fb8=_0xb900a4(0x168),_0x229a4a=readConfig(),_0x19b6b6=typeof _0x229a4a['env']==='string'?_0x229a4a[_0xb900a4(0x166)]:undefined,_0x31ec21=await input({'message':'Project\x20name:','default':_0x297fb8,'validate':_0xf930ce=>{const _0x511865=_0xb900a4,_0x5ba039=_0xf930ce[_0x511865(0x152)]()||_0x297fb8;if(_0x5ba039['length']>0x32)return _0x511865(0x15d);const _0x13311d=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x5ba039&&!_0x13311d['test'](_0x5ba039))return _0x511865(0x163);const _0xf58d0e=a66_0x16cf24[_0x511865(0x15f)](process[_0x511865(0x161)](),_0x5ba039);if(existsSync(_0xf58d0e))return _0x511865(0x160)+_0x5ba039+_0x511865(0x15b);return!![];}});console['log'](a66_0x44fdcc['green']('√\x20Project\x20Name:\x20'+a66_0x44fdcc[_0xb900a4(0x158)](_0x31ec21)));const _0x5991cb=await selectSingleAppcode(_0x5ea41c);console[_0xb900a4(0x153)](a66_0x44fdcc[_0xb900a4(0x159)]('√\x20App\x20Code:\x20'+a66_0x44fdcc['cyan'](_0x5991cb||'Not\x20set')));if(_0x5991cb){const _0x5ef3ab=await getIsSessionValid();if(!_0x5ef3ab){const _0x438cb0=await confirm({'message':_0xb900a4(0x15c),'default':!![]});if(_0x438cb0){const _0x587a82=await authServer({'silent':!![]});console['log'](a66_0x44fdcc[_0xb900a4(0x159)](_0xb900a4(0x165)+a66_0x44fdcc[_0xb900a4(0x158)](_0x587a82?_0xb900a4(0x155):_0xb900a4(0x14f))));}else console[_0xb900a4(0x153)](a66_0x44fdcc[_0xb900a4(0x159)](_0xb900a4(0x165)+a66_0x44fdcc[_0xb900a4(0x158)](_0xb900a4(0x164))));}await _0x8de1e8({'projectName':_0x31ec21,'appCode':_0x5991cb,'env':_0x2763b6||_0x19b6b6||_0xb900a4(0x15e)});}else await _0x8de1e8({'projectName':_0x31ec21,'env':_0x2763b6||_0x19b6b6||'production'});}