@lovrabet/rabetbase-cli 2.0.13 → 2.1.1

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 (155) hide show
  1. package/README.md +2 -2
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/doc.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -0
  53. package/lib/commands/db/analyze-start.js +1 -0
  54. package/lib/commands/db/analyze-status.js +1 -0
  55. package/lib/commands/db/create.js +1 -0
  56. package/lib/commands/db/delete.js +1 -0
  57. package/lib/commands/db/detail.js +1 -0
  58. package/lib/commands/db/diff.js +1 -0
  59. package/lib/commands/db/index.js +1 -0
  60. package/lib/commands/db/list.js +1 -0
  61. package/lib/commands/db/shared.js +1 -0
  62. package/lib/commands/db/tables.js +1 -0
  63. package/lib/commands/db/test.js +1 -0
  64. package/lib/commands/db/update.js +1 -0
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/constant/cli.js +1 -1
  104. package/lib/constant/domain.js +1 -1
  105. package/lib/constant/env.js +1 -1
  106. package/lib/constant/paths.js +1 -1
  107. package/lib/context.js +1 -1
  108. package/lib/core/alias-resolver.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/bff/config.js +1 -1
  111. package/lib/core/bff/file-system.js +1 -1
  112. package/lib/core/bff/hash.js +1 -1
  113. package/lib/core/bff/lock.js +1 -1
  114. package/lib/core/bff/utils.js +1 -1
  115. package/lib/core/db-resolver.js +1 -1
  116. package/lib/core/sql-validator.js +1 -1
  117. package/lib/errors.js +1 -1
  118. package/lib/framework/build-all-flags.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/response.js +1 -1
  124. package/lib/framework/runner.js +1 -1
  125. package/lib/framework/schema-export.js +1 -1
  126. package/lib/framework/types.js +1 -1
  127. package/lib/generated/build-info.js +1 -1
  128. package/lib/help.js +1 -1
  129. package/lib/skills/main.js +1 -1
  130. package/lib/skills/npx-skills-add.js +1 -1
  131. package/lib/telemetry/cli-command-trace.js +1 -1
  132. package/lib/telemetry/cli-help-trace.js +1 -1
  133. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  134. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  135. package/lib/telemetry/send-cli-trace-log.js +1 -1
  136. package/lib/utils/ai_config.js +1 -1
  137. package/lib/utils/apply-jq-filter.js +1 -1
  138. package/lib/utils/cdn-config.js +1 -1
  139. package/lib/utils/check-sdk-version.js +1 -1
  140. package/lib/utils/cli-version-check.js +1 -1
  141. package/lib/utils/config.js +1 -1
  142. package/lib/utils/copy-directory.js +1 -1
  143. package/lib/utils/file-utils.js +1 -1
  144. package/lib/utils/guides-cdn.js +1 -1
  145. package/lib/utils/http-client.js +1 -1
  146. package/lib/utils/is-non-interactive.js +1 -1
  147. package/lib/utils/logger.js +1 -1
  148. package/lib/utils/platform.js +1 -1
  149. package/lib/utils/rules-cdn.js +1 -1
  150. package/lib/utils/sleep.js +1 -1
  151. package/lib/utils/template-replacer.js +1 -1
  152. package/lib/utils/version.js +1 -1
  153. package/lib/utils/with-active-cookie.js +1 -1
  154. package/lib/utils/write-cli-side-channel.js +1 -0
  155. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ const a58_0x4e09d4=a58_0x216f;(function(_0x34abbe,_0x2962a9){const _0x570692=a58_0x216f,_0x1fe526=_0x34abbe();while(!![]){try{const _0x431974=-parseInt(_0x570692(0xa0))/0x1+parseInt(_0x570692(0xb2))/0x2+-parseInt(_0x570692(0xa8))/0x3*(parseInt(_0x570692(0xaf))/0x4)+-parseInt(_0x570692(0xa2))/0x5*(-parseInt(_0x570692(0xae))/0x6)+-parseInt(_0x570692(0xa6))/0x7+-parseInt(_0x570692(0xb4))/0x8+parseInt(_0x570692(0xb0))/0x9*(parseInt(_0x570692(0xad))/0xa);if(_0x431974===_0x2962a9)break;else _0x1fe526['push'](_0x1fe526['shift']());}catch(_0x4efb38){_0x1fe526['push'](_0x1fe526['shift']());}}}(a58_0x1bcd,0xdcf1b));function a58_0x1bcd(){const _0x4c4e0c=['read','pagesize','460CtfdRj','24gMidAO','133948WXDMsQ','740943qDWdJT','page','1458596hRoYOL','\x20database\x20connection(s)','14280960xfWmpf','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','number','Page\x20index\x20(1-based)','538318vEeyDw','appCode','1071025tEQUZe','compress','Page\x20size','num','9621738yltcdk','Found\x20','69NzWrTH','list','length'];a58_0x1bcd=function(){return _0x4c4e0c;};return a58_0x1bcd();}function a58_0x216f(_0x45c2a8,_0x273762){_0x45c2a8=_0x45c2a8-0x9c;const _0x1bcded=a58_0x1bcd();let _0x216f54=_0x1bcded[_0x45c2a8];return _0x216f54;}import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a58_0x4e09d4(0xa9),'description':a58_0x4e09d4(0x9d),'risk':a58_0x4e09d4(0xab),'defaultOutputFormat':a58_0x4e09d4(0xa3),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a58_0x4e09d4(0xb1),'type':'number','description':a58_0x4e09d4(0x9f),'default':0x1},{'name':a58_0x4e09d4(0xac),'type':a58_0x4e09d4(0x9e),'description':a58_0x4e09d4(0xa4),'default':0x64}],async 'execute'(_0x182a97){const _0x17a75e=a58_0x4e09d4,_0xd2c53b=_0x182a97[_0x17a75e(0xa5)](_0x17a75e(0xb1),0x1)||0x1,_0x18e25a=_0x182a97[_0x17a75e(0xa5)](_0x17a75e(0xac),0x64)||0x64,{items:_0x14f2be,paging:_0x547b29}=await listDbLinks(_0x182a97[_0x17a75e(0xa1)],{'currentPage':_0xd2c53b,'pageSize':_0x18e25a}),_0x171715=sanitizeDbLinkList(_0x14f2be),_0x430f3c=_0x547b29?_0x547b29:{'currentPage':_0xd2c53b,'pageSize':_0x18e25a,'rowsOnPage':_0x171715['length'],'totalCount':null,'note':_0x17a75e(0x9c)};return{'ok':!![],'data':{'connections':_0x171715,'paging':_0x430f3c},'message':_0x17a75e(0xa7)+_0x171715[_0x17a75e(0xaa)]+_0x17a75e(0xb3)};}};
@@ -0,0 +1 @@
1
+ (function(_0x57137c,_0x5ae020){const _0x14c697=a59_0x5e30,_0x3dd89f=_0x57137c();while(!![]){try{const _0x40060e=-parseInt(_0x14c697(0x15c))/0x1*(-parseInt(_0x14c697(0x15d))/0x2)+-parseInt(_0x14c697(0x156))/0x3+parseInt(_0x14c697(0x15e))/0x4+parseInt(_0x14c697(0x168))/0x5*(parseInt(_0x14c697(0x163))/0x6)+parseInt(_0x14c697(0x15f))/0x7*(parseInt(_0x14c697(0x169))/0x8)+-parseInt(_0x14c697(0x165))/0x9*(parseInt(_0x14c697(0x158))/0xa)+-parseInt(_0x14c697(0x15b))/0xb;if(_0x40060e===_0x5ae020)break;else _0x3dd89f['push'](_0x3dd89f['shift']());}catch(_0x3d72a6){_0x3dd89f['push'](_0x3dd89f['shift']());}}}(a59_0x4959,0x5f05e));function shouldRedactKey(_0x430b52){const _0x500027=a59_0x5e30,_0x3db553=_0x430b52[_0x500027(0x159)]();if(_0x3db553==='password'||_0x3db553===_0x500027(0x166)||_0x3db553===_0x500027(0x167))return!![];if(_0x3db553['includes']('secret')||_0x3db553['includes']('token')||_0x3db553[_0x500027(0x16c)]('credential'))return!![];if(_0x3db553['includes'](_0x500027(0x162))||_0x3db553['includes'](_0x500027(0x160)))return!![];if(_0x3db553===_0x500027(0x157)||_0x3db553===_0x500027(0x15a)||_0x3db553===_0x500027(0x16d))return!![];return![];}function a59_0x5e30(_0x397d37,_0x4690eb){_0x397d37=_0x397d37-0x156;const _0x4959c9=a59_0x4959();let _0x5e303c=_0x4959c9[_0x397d37];return _0x5e303c;}export function sanitizeDbLinkForOutput(_0x51e3ca){const _0x547f6f=a59_0x5e30,_0x3e8c24={..._0x51e3ca};for(const _0x16d2b9 of Object[_0x547f6f(0x16a)](_0x3e8c24)){if(!shouldRedactKey(_0x16d2b9))continue;const _0x1b68d2=_0x3e8c24[_0x16d2b9];_0x1b68d2!=null&&String(_0x1b68d2)[_0x547f6f(0x161)]>0x0&&(_0x3e8c24[_0x16d2b9]='[redacted]');}return _0x3e8c24;}export function sanitizeDbLinkList(_0x17f396){const _0x5b63bb=a59_0x5e30;return _0x17f396[_0x5b63bb(0x16b)](_0x55a859=>sanitizeDbLinkForOutput(_0x55a859));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x2e51cc){const _0x4c6fbd=a59_0x5e30,_0x536d1b=_0x2e51cc[_0x4c6fbd(0x164)]();if(!_0x536d1b)return![];return DB_URL_PATTERN['test'](_0x536d1b);}function a59_0x4959(){const _0x613d2a=['9571023IKzsjF','279856TJcjSn','2cYhvdS','2812600LUlkng','14mYeEbO','accesskey','length','privatekey','20388CEyknG','trim','29601ckCznp','passwd','dbpassword','660pxbZlZ','908816JdrbZU','keys','map','includes','jdbcurl','300420gnfVLU','authorization','910gwQcuH','toLowerCase','connectionstring'];a59_0x4959=function(){return _0x613d2a;};return a59_0x4959();}
@@ -0,0 +1 @@
1
+ const a60_0x58c840=a60_0x1568;function a60_0x3b15(){const _0x5764f9=['tables','num','86464mTvRYi','read','18znhJyo','193624IdOzym','7455112ZBufZd','36138WCySVa','\x20table(s)\x20on\x20db\x20link\x20','8750460OvMFdd','length','42vVyljQ','3901338XJfuSC','110TfEwUA','472538qhBnjQ','appCode','670xodPvz','8GolkLK'];a60_0x3b15=function(){return _0x5764f9;};return a60_0x3b15();}(function(_0x1c7cbd,_0x1f087e){const _0x33456e=a60_0x1568,_0x483098=_0x1c7cbd();while(!![]){try{const _0x75de19=-parseInt(_0x33456e(0x150))/0x1*(-parseInt(_0x33456e(0x14e))/0x2)+parseInt(_0x33456e(0x145))/0x3*(-parseInt(_0x33456e(0x151))/0x4)+parseInt(_0x33456e(0x14a))/0x5*(parseInt(_0x33456e(0x153))/0x6)+-parseInt(_0x33456e(0x152))/0x7+parseInt(_0x33456e(0x14b))/0x8*(parseInt(_0x33456e(0x146))/0x9)+-parseInt(_0x33456e(0x147))/0xa*(parseInt(_0x33456e(0x148))/0xb)+parseInt(_0x33456e(0x155))/0xc;if(_0x75de19===_0x1f087e)break;else _0x483098['push'](_0x483098['shift']());}catch(_0x35a66a){_0x483098['push'](_0x483098['shift']());}}}(a60_0x3b15,0x820e3));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a60_0x1568(_0x14b44c,_0x40f9ce){_0x14b44c=_0x14b44c-0x144;const _0x3b1503=a60_0x3b15();let _0x15686c=_0x3b1503[_0x14b44c];return _0x15686c;}export const dbTables={'service':'db','command':a60_0x58c840(0x14c),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a60_0x58c840(0x14f),'defaultOutputFormat':'compress','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2a7130){const _0xafb7c3=a60_0x58c840,_0x3a1497=_0x2a7130[_0xafb7c3(0x14d)]('id'),_0x3f96fd=await getDbAllTableList(_0x2a7130[_0xafb7c3(0x149)],_0x3a1497);return{'ok':!![],'data':{'dbLinkId':_0x3a1497,'total':_0x3f96fd[_0xafb7c3(0x144)],'tables':_0x3f96fd},'message':_0x3f96fd[_0xafb7c3(0x144)]+_0xafb7c3(0x154)+_0x3a1497};}};
@@ -0,0 +1 @@
1
+ function a61_0x2393(){const _0x490872=['2184NVNkJe','540ChVgWw','num','keys','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','25736utVLgS','7487082tzKBXH','257814BdjYqy','message','error','object','data','read','code','test','Connection\x20OK\x20for\x20db\x20link\x20','4335328fMOuMu','234716UNMSsZ','27ebUjPY','3881635yiGNil','716672XcApkS'];a61_0x2393=function(){return _0x490872;};return a61_0x2393();}const a61_0x4b659b=a61_0x2ba2;(function(_0x52cadf,_0x17b77d){const _0x203f1a=a61_0x2ba2,_0x2305e2=_0x52cadf();while(!![]){try{const _0x88c8e8=parseInt(_0x203f1a(0x123))/0x1+parseInt(_0x203f1a(0x120))/0x2*(-parseInt(_0x203f1a(0x121))/0x3)+parseInt(_0x203f1a(0x135))/0x4+parseInt(_0x203f1a(0x122))/0x5+-parseInt(_0x203f1a(0x12b))/0x6+parseInt(_0x203f1a(0x124))/0x7*(-parseInt(_0x203f1a(0x12a))/0x8)+-parseInt(_0x203f1a(0x12c))/0x9*(-parseInt(_0x203f1a(0x125))/0xa);if(_0x88c8e8===_0x17b77d)break;else _0x2305e2['push'](_0x2305e2['shift']());}catch(_0x3a6e4){_0x2305e2['push'](_0x2305e2['shift']());}}}(a61_0x2393,0xc7346));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0xa3fd60){const _0x50328f=a61_0x2ba2;if(_0xa3fd60===!![]||_0xa3fd60===![])return{'success':_0xa3fd60};if(_0xa3fd60===null||_0xa3fd60===undefined)return{'type':typeof _0xa3fd60};if(typeof _0xa3fd60!==_0x50328f(0x12f))return{'type':typeof _0xa3fd60};const _0x447775=_0xa3fd60,_0x5e8f39=['success',_0x50328f(0x12d),_0x50328f(0x132),_0x50328f(0x12e),'msg',_0x50328f(0x130)],_0x42cdfc={};for(const _0x52d2dd of _0x5e8f39){if(_0x52d2dd in _0x447775)_0x42cdfc[_0x52d2dd]=_0x447775[_0x52d2dd];}return Object[_0x50328f(0x127)](_0x42cdfc)['length']===0x0&&(_0x42cdfc[_0x50328f(0x127)]=Object[_0x50328f(0x127)](_0x447775)[_0x50328f(0x128)](0x0,0x14)),_0x42cdfc;}function a61_0x2ba2(_0x388376,_0x2bf76f){_0x388376=_0x388376-0x120;const _0x2393a1=a61_0x2393();let _0x2ba208=_0x2393a1[_0x388376];return _0x2ba208;}export const dbTest={'service':'db','command':a61_0x4b659b(0x133),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a61_0x4b659b(0x131),'defaultOutputFormat':'compress','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2b7970){const _0x1824a0=a61_0x4b659b,_0x3ddc92=_0x2b7970[_0x1824a0(0x126)]('id'),_0x8842a1=await testDbLinkConnect(_0x3ddc92),_0x2f7c97=_0x8842a1===!![]||typeof _0x8842a1===_0x1824a0(0x12f)&&_0x8842a1!==null&&_0x8842a1['success']===!![],_0x3daaa1=summarizeTestConnectResult(_0x8842a1);return{'ok':!![],'data':{'id':_0x3ddc92,'connected':Boolean(_0x2f7c97),'result':_0x3daaa1},'message':_0x2f7c97?_0x1824a0(0x134)+_0x3ddc92:_0x1824a0(0x129)+_0x3ddc92+'\x20(see\x20data.result)'};}};
@@ -0,0 +1 @@
1
+ const a62_0xe8be2a=a62_0x321a;(function(_0x1e221e,_0x1d3005){const _0x247960=a62_0x321a,_0x69e8ab=_0x1e221e();while(!![]){try{const _0x3aa6d7=-parseInt(_0x247960(0x1d8))/0x1*(parseInt(_0x247960(0x1de))/0x2)+-parseInt(_0x247960(0x1d2))/0x3*(parseInt(_0x247960(0x1c9))/0x4)+-parseInt(_0x247960(0x1db))/0x5*(-parseInt(_0x247960(0x1d7))/0x6)+-parseInt(_0x247960(0x1cd))/0x7+-parseInt(_0x247960(0x1c7))/0x8*(parseInt(_0x247960(0x1cb))/0x9)+parseInt(_0x247960(0x1ca))/0xa+parseInt(_0x247960(0x1d0))/0xb;if(_0x3aa6d7===_0x1d3005)break;else _0x69e8ab['push'](_0x69e8ab['shift']());}catch(_0x474390){_0x69e8ab['push'](_0x69e8ab['shift']());}}}(a62_0x5338,0x74f8c));function a62_0x321a(_0x470f8f,_0x34e2cf){_0x470f8f=_0x470f8f-0x1bb;const _0x53380c=a62_0x5338();let _0x321adc=_0x53380c[_0x470f8f];return _0x321adc;}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';export const dbUpdate={'service':'db','command':'update','description':a62_0xe8be2a(0x1bb),'risk':a62_0xe8be2a(0x1c3),'defaultOutputFormat':a62_0xe8be2a(0x1bc),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a62_0xe8be2a(0x1cc),'description':a62_0xe8be2a(0x1ce)},{'name':a62_0xe8be2a(0x1c4),'type':a62_0xe8be2a(0x1cc),'description':a62_0xe8be2a(0x1d4)},{'name':a62_0xe8be2a(0x1d3),'type':a62_0xe8be2a(0x1cc),'description':a62_0xe8be2a(0x1be)},{'name':a62_0xe8be2a(0x1dd),'type':a62_0xe8be2a(0x1cc),'description':a62_0xe8be2a(0x1d5)},{'name':a62_0xe8be2a(0x1dc),'type':a62_0xe8be2a(0x1cc),'description':a62_0xe8be2a(0x1c8)},{'name':'dbdesc','type':a62_0xe8be2a(0x1cc),'description':a62_0xe8be2a(0x1bf)}],async 'validate'(_0x3a4e22){const _0x56384a=a62_0xe8be2a,_0x1f3b99=_0x3a4e22['str'](_0x56384a(0x1c4));if(_0x1f3b99&&!validateDbUrl(_0x1f3b99[_0x56384a(0x1c0)]()))throw CliErrors['validation'](_0x56384a(0x1da)+_0x1f3b99+'\x22');},async 'dryRun'(_0x2b1da3){const _0x610d3a=a62_0xe8be2a,_0xf66bf0=_0x2b1da3[_0x610d3a(0x1c6)]('id'),_0x277c56=await getDbLinkInfo(_0xf66bf0),_0x2115a4={..._0x277c56},_0x39d38f=_0x2b1da3['str']('dbname');if(_0x39d38f)_0x2115a4['dbName']=_0x39d38f;const _0x3b7700=_0x2b1da3[_0x610d3a(0x1d6)]('dburl');if(_0x3b7700)_0x2115a4['dbUrl']=_0x3b7700[_0x610d3a(0x1c0)]();const _0xc9b2ac=_0x2b1da3[_0x610d3a(0x1d6)](_0x610d3a(0x1d3));if(_0xc9b2ac)_0x2115a4[_0x610d3a(0x1d3)]=_0xc9b2ac;const _0x5ea0a8=_0x2b1da3[_0x610d3a(0x1d6)]('password');if(_0x5ea0a8)_0x2115a4[_0x610d3a(0x1dd)]=_0x5ea0a8;const _0x1b80d0=_0x2b1da3['str'](_0x610d3a(0x1dc));if(_0x1b80d0)_0x2115a4[_0x610d3a(0x1df)]=_0x1b80d0;const _0x16c7be=_0x2b1da3[_0x610d3a(0x1d6)]('dbdesc');if(_0x16c7be)_0x2115a4[_0x610d3a(0x1c2)]=_0x16c7be;const _0x5211d0=sanitizeDbLinkForOutput(_0x2115a4);return{'method':_0x610d3a(0x1c5),'url':_0x610d3a(0x1c1),'body':_0x5211d0,'description':_0x610d3a(0x1d9)};},async 'execute'(_0x56cdfc){const _0x5748b9=a62_0xe8be2a,_0x2894a1=_0x56cdfc[_0x5748b9(0x1c6)]('id'),_0x3c3715=await getDbLinkInfo(_0x2894a1),_0x39c65a={..._0x3c3715},_0x5c16ab=_0x56cdfc['str'](_0x5748b9(0x1cf));if(_0x5c16ab)_0x39c65a['dbName']=_0x5c16ab;const _0x3ceb9c=_0x56cdfc[_0x5748b9(0x1d6)]('dburl');if(_0x3ceb9c)_0x39c65a[_0x5748b9(0x1d1)]=_0x3ceb9c[_0x5748b9(0x1c0)]();const _0x2267cd=_0x56cdfc['str'](_0x5748b9(0x1d3));if(_0x2267cd)_0x39c65a['username']=_0x2267cd;const _0x4a0215=_0x56cdfc['str'](_0x5748b9(0x1dd));if(_0x4a0215)_0x39c65a[_0x5748b9(0x1dd)]=_0x4a0215;const _0xd7aa71=_0x56cdfc[_0x5748b9(0x1d6)]('dbparam');if(_0xd7aa71)_0x39c65a[_0x5748b9(0x1df)]=_0xd7aa71;const _0x258a35=_0x56cdfc['str'](_0x5748b9(0x1bd));if(_0x258a35)_0x39c65a['dbDesc']=_0x258a35;const _0x2da33d=await updateDbLink(_0x39c65a);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2da33d),'message':'Updated\x20db\x20link\x20'+_0x2894a1};}};function a62_0x5338(){const _0x4276e4=['dburl','POST','num','2496KorUDT','New\x20connection\x20parameter\x20string','8QhKjNq','2037940lNUGtU','12519Blvsce','string','6379037Mzsset','New\x20database\x20name','dbname','24904561GijWcF','dbUrl','515667rtPAGe','username','New\x20host:port','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','str','6342qYENLe','338777wEPDEU','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','185UpoIGB','dbparam','password','2bqsMKS','dbParam','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','compress','dbdesc','New\x20username','New\x20description','trim','/smartapi/dblink/update','dbDesc','write'];a62_0x5338=function(){return _0x4276e4;};return a62_0x5338();}
@@ -1 +1 @@
1
- const a50_0x1bcd47=a50_0x6b2d;(function(_0x4565df,_0x361065){const _0x1336be=a50_0x6b2d,_0x3d5276=_0x4565df();while(!![]){try{const _0x4747bc=-parseInt(_0x1336be(0x1b3))/0x1+parseInt(_0x1336be(0x1ab))/0x2*(parseInt(_0x1336be(0x1bd))/0x3)+parseInt(_0x1336be(0x1a6))/0x4+-parseInt(_0x1336be(0x1a5))/0x5+parseInt(_0x1336be(0x1bf))/0x6*(-parseInt(_0x1336be(0x1d1))/0x7)+-parseInt(_0x1336be(0x1b5))/0x8+parseInt(_0x1336be(0x1a8))/0x9;if(_0x4747bc===_0x361065)break;else _0x3d5276['push'](_0x3d5276['shift']());}catch(_0xf5ee1c){_0x3d5276['push'](_0x3d5276['shift']());}}}(a50_0x3952,0xe4075));import a50_0x95f275 from'chalk';function a50_0x6b2d(_0x3ce6ba,_0x3608c5){_0x3ce6ba=_0x3ce6ba-0x199;const _0x39520f=a50_0x3952();let _0x6b2dc6=_0x39520f[_0x3ce6ba];return _0x6b2dc6;}import{CLI_BIN_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a50_0x3952(){const _0x2a8054=['\x20←\x20current','apps','(inherit)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','green','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','unknown','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','check','appCode','version','(default)','(missing)','format','\x20\x20\x20\x20cookie:\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20(default)','platform','red','✗\x20Invalid\x20JSON','doctor','apiDir','arch','read','\x20doctor','slice','(set)','(no\x20file)','3839100LHvLcI','6022536SWCRNb','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','14723658wOEiDk','explicitAppName','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','58klQThn','status','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20Config\x20JSON','(not\x20found)','bold','755198IHVcrV','env','9107464UBEWPP','cookie','defaultApp','⚠\x20Empty\x20(treated\x20as\x20{})','(set\x20via\x20file,\x20length=','gray','length','\x20\x20explicitAppName:\x20','142881vmyizd','riskLevel','5563938zIIsfX','keys','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20','log','currentApp','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','verbose','(set,\x20length=','✓\x20Valid\x20JSON','Global','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','pageSize','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','(default:\x20pretty)','7UmizTJ','(not\x20set)','\x20\x20─','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(none)','locale','empty','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','yellow','repeat','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a50_0x3952=function(){return _0x2a8054;};return a50_0x3952();}async function execute(_0x4aa82a){const _0x3e9a68=a50_0x6b2d,_0x563dd0=GIT_COMMIT!==_0x3e9a68(0x1e6)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3e9a68(0x1a2)](0x0,0xa)+')':VERSION,_0x19da9c=buildConfigFromFlags({}),_0x369e1a=getCookie();console[_0x3e9a68(0x1c3)](),console['log'](a50_0x95f275[_0x3e9a68(0x1b2)](CLI_BIN_NAME+_0x3e9a68(0x1a1))),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1ba)]('─'[_0x3e9a68(0x1db)](0x32))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1c7)+_0x563dd0),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1aa)+process[_0x3e9a68(0x1ea)]),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e7)+process[_0x3e9a68(0x19a)]+'\x20'+process[_0x3e9a68(0x19f)]),console[_0x3e9a68(0x1c3)](),console[_0x3e9a68(0x1c3)](a50_0x95f275['bold'](_0x3e9a68(0x1af))),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1d3)['repeat'](0x1e)));const _0x466a9d=getGlobalConfigPath(),_0x117ae1=getProjectConfigPath();console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1a7)+(_0x466a9d||a50_0x95f275['gray'](_0x3e9a68(0x1b1)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1ae)+(_0x117ae1||a50_0x95f275['gray'](_0x3e9a68(0x1b1)))),console[_0x3e9a68(0x1c3)](),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1b2)](_0x3e9a68(0x1b0))),console[_0x3e9a68(0x1c3)](a50_0x95f275['gray'](_0x3e9a68(0x1d3)[_0x3e9a68(0x1db)](0x1e)));const _0x2806a5=(_0x53b737,_0x3f5323)=>{const _0x50a673=_0x3e9a68;if(!_0x3f5323){console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x1ba)](_0x50a673(0x1a4)));return;}const _0x4c563d=inspectCliConfigJsonFile(_0x3f5323);if(_0x4c563d[_0x50a673(0x1ac)]==='ok')console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x1e3)](_0x50a673(0x1ca)));else{if(_0x4c563d[_0x50a673(0x1ac)]===_0x50a673(0x1d7))console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x1da)](_0x50a673(0x1b8)));else _0x4c563d['status']==='missing'?console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x1ba)](_0x50a673(0x1ec))):(console[_0x50a673(0x1c3)]('\x20\x20'+_0x53b737[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275['red'](_0x50a673(0x19c))),console[_0x50a673(0x1c3)]('\x20\x20'+''[_0x50a673(0x1cf)](0x11)+'\x20'+a50_0x95f275[_0x50a673(0x19b)](_0x4c563d[_0x50a673(0x1e5)])));}};_0x2806a5(_0x3e9a68(0x1cb),_0x466a9d),_0x2806a5(_0x3e9a68(0x1d9),_0x117ae1),console[_0x3e9a68(0x1c3)](),console['log'](a50_0x95f275[_0x3e9a68(0x1b2)](_0x3e9a68(0x1c6))),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1ba)]('\x20\x20─'[_0x3e9a68(0x1db)](0x1e))),console['log'](_0x3e9a68(0x1ce)+(_0x19da9c[_0x3e9a68(0x1e9)]||a50_0x95f275[_0x3e9a68(0x19b)](_0x3e9a68(0x1d2)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1dc)+_0x19da9c[_0x3e9a68(0x1b4)]),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1c1)+_0x19da9c[_0x3e9a68(0x1d6)]),console['log'](_0x3e9a68(0x1c5)+_0x19da9c['apiDir']),console[_0x3e9a68(0x1c3)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x19da9c['defaultApp']||a50_0x95f275['gray']('(none)'))),console[_0x3e9a68(0x1c3)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x19da9c[_0x3e9a68(0x1c4)]||a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1d5)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1bc)+(_0x19da9c[_0x3e9a68(0x1a9)]||a50_0x95f275[_0x3e9a68(0x1ba)]('(none)'))),console[_0x3e9a68(0x1c3)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x19da9c[_0x3e9a68(0x1ed)]||a50_0x95f275['gray'](_0x3e9a68(0x1d0)))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x19da9c[_0x3e9a68(0x1cd)]??a50_0x95f275['gray'](_0x3e9a68(0x1eb)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e0)+_0x19da9c[_0x3e9a68(0x1be)]),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1d8)+_0x19da9c[_0x3e9a68(0x1c8)]),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e4)+(_0x19da9c[_0x3e9a68(0x1b6)]?a50_0x95f275[_0x3e9a68(0x1e3)](_0x3e9a68(0x1c9)+_0x19da9c[_0x3e9a68(0x1b6)][_0x3e9a68(0x1bb)]+')'):_0x369e1a?a50_0x95f275[_0x3e9a68(0x1e3)](_0x3e9a68(0x1b9)+_0x369e1a[_0x3e9a68(0x1bb)]+')'):a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1d5))));const _0x3b7021=Object[_0x3e9a68(0x1c0)](_0x19da9c[_0x3e9a68(0x1de)]);if(_0x3b7021[_0x3e9a68(0x1bb)]>0x0){console[_0x3e9a68(0x1c3)](),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1b2)]('\x20\x20Apps')),console[_0x3e9a68(0x1c3)](a50_0x95f275['gray']('\x20\x20─'[_0x3e9a68(0x1db)](0x1e)));for(const _0x130273 of _0x3b7021){const _0x26036c=_0x19da9c[_0x3e9a68(0x1de)][_0x130273],_0x79de4b=_0x130273===_0x19da9c[_0x3e9a68(0x1b7)],_0xd36e7c=_0x130273===_0x19da9c[_0x3e9a68(0x1c4)],_0x19846d=_0xd36e7c?a50_0x95f275[_0x3e9a68(0x1e3)](_0x3e9a68(0x1dd)):'',_0x4f6eac=_0x79de4b?_0x3e9a68(0x199):'';console[_0x3e9a68(0x1c3)]('\x20\x20'+_0x130273+_0x4f6eac+_0x19846d),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1c2)+_0x26036c['appcode']),console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x26036c[_0x3e9a68(0x1b4)]||a50_0x95f275['gray'](_0x3e9a68(0x1df)))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e1)+(_0x26036c[_0x3e9a68(0x19e)]||a50_0x95f275['gray']('(inherit)'))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1ee)+(_0x26036c[_0x3e9a68(0x1b6)]?a50_0x95f275['green'](_0x3e9a68(0x1a3)):a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1df))));}}console[_0x3e9a68(0x1c3)](),console['log'](a50_0x95f275[_0x3e9a68(0x1b2)]('\x20\x20API\x20Endpoints')),console['log'](a50_0x95f275[_0x3e9a68(0x1ba)]('\x20\x20─'[_0x3e9a68(0x1db)](0x1e))),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1d4)+getApiDomain()),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1cc)+getUserDomain()),console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1e2)+getRuntimeDomain()),console['log'](),console[_0x3e9a68(0x1c3)](a50_0x95f275[_0x3e9a68(0x1b2)]('\x20\x20Auth')),console['log'](a50_0x95f275[_0x3e9a68(0x1ba)](_0x3e9a68(0x1d3)['repeat'](0x1e)));if(_0x369e1a){const _0x2b3926=await getIsSessionValid();console[_0x3e9a68(0x1c3)](_0x3e9a68(0x1ad)+(_0x2b3926?a50_0x95f275[_0x3e9a68(0x1e3)]('✓\x20Valid'):a50_0x95f275[_0x3e9a68(0x19b)]('✗\x20Expired')));}else console['log'](_0x3e9a68(0x1ad)+a50_0x95f275['red']('✗\x20Not\x20logged\x20in'));return console[_0x3e9a68(0x1c3)](),{'ok':!![]};}export const doctorDefinition={'service':a50_0x1bcd47(0x19d),'command':a50_0x1bcd47(0x1e8),'description':a50_0x1bcd47(0x1ef),'risk':a50_0x1bcd47(0x1a0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a63_0x17de10=a63_0x4fff;(function(_0x4df593,_0x392c99){const _0x3479df=a63_0x4fff,_0x25cffa=_0x4df593();while(!![]){try{const _0x548da0=-parseInt(_0x3479df(0x10c))/0x1*(parseInt(_0x3479df(0xe2))/0x2)+parseInt(_0x3479df(0x116))/0x3+-parseInt(_0x3479df(0x118))/0x4+parseInt(_0x3479df(0x110))/0x5+-parseInt(_0x3479df(0x106))/0x6+parseInt(_0x3479df(0xe8))/0x7+-parseInt(_0x3479df(0x117))/0x8;if(_0x548da0===_0x392c99)break;else _0x25cffa['push'](_0x25cffa['shift']());}catch(_0x5c5dab){_0x25cffa['push'](_0x25cffa['shift']());}}}(a63_0x1e48,0xf409c));function a63_0x4fff(_0x28ecd9,_0x5a548c){_0x28ecd9=_0x28ecd9-0xd3;const _0x1e483e=a63_0x1e48();let _0x4fffee=_0x1e483e[_0x28ecd9];return _0x4fffee;}import a63_0x3a15dd from'chalk';function a63_0x1e48(){const _0x3fe7d5=['arch','status','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(not\x20found)','(default)','(set)','\x20\x20Merged\x20Config','✓\x20Valid','read','✓\x20Valid\x20JSON','✗\x20Expired','(default:\x20pretty)','env','verbose','\x20\x20Apps','length','platform','appCode','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','2340732tbLwaz','version','doctor','pageSize','defaultApp','repeat','151YVxjcI','(set\x20via\x20file,\x20length=','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','9593875KlKcwU','\x20\x20─','cookie','red','empty','slice','2773200bRyZqR','13183824tremuI','1827544dJKxSN','check','explicitAppName','\x20\x20\x20\x20appcode:\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','green','apiDir','\x20\x20API\x20Endpoints','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','\x20\x20runtimeDomain:\x20\x20\x20','keys','bold','apps','\x20(default)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','appcode','(none)','log','gray','currentApp','✗\x20Not\x20logged\x20in','11794ejqdvO','yellow','format','(missing)','✗\x20Invalid\x20JSON','Project','10792866jQfrSj','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','riskLevel','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','padEnd','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor'];a63_0x1e48=function(){return _0x3fe7d5;};return a63_0x1e48();}import{CLI_BIN_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';async function execute(_0x5b48a7){const _0x3252ee=a63_0x4fff,_0x53fdfc=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3252ee(0x115)](0x0,0xa)+')':VERSION,_0x4ab28c=buildConfigFromFlags({}),_0x1c312b=getCookie();console[_0x3252ee(0xde)](),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xd5)](CLI_BIN_NAME+_0x3252ee(0xf1))),console[_0x3252ee(0xde)](a63_0x3a15dd['gray']('─'[_0x3252ee(0x10b)](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x53fdfc),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x3252ee(0x107)]),console[_0x3252ee(0xde)](_0x3252ee(0xf0)+process[_0x3252ee(0x103)]+'\x20'+process[_0x3252ee(0xf2)]),console[_0x3252ee(0xde)](),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xd5)]('\x20\x20Config\x20Files')),console['log'](a63_0x3a15dd['gray'](_0x3252ee(0x111)[_0x3252ee(0x10b)](0x1e)));const _0x52c19f=getGlobalConfigPath(),_0x1b473b=getProjectConfigPath();console[_0x3252ee(0xde)](_0x3252ee(0x10e)+(_0x52c19f||a63_0x3a15dd[_0x3252ee(0xdf)]('(not\x20found)'))),console[_0x3252ee(0xde)](_0x3252ee(0x105)+(_0x1b473b||a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0xf6)))),console[_0x3252ee(0xde)](),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xd5)](_0x3252ee(0x122))),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xdf)]('\x20\x20─'['repeat'](0x1e)));const _0xf532d7=(_0x22ed63,_0x48b54a)=>{const _0x334a60=_0x3252ee;if(!_0x48b54a){console[_0x334a60(0xde)]('\x20\x20'+_0x22ed63[_0x334a60(0xef)](0x11)+'\x20'+a63_0x3a15dd['gray'](_0x334a60(0x11d)));return;}const _0x23a467=inspectCliConfigJsonFile(_0x48b54a);if(_0x23a467['status']==='ok')console['log']('\x20\x20'+_0x22ed63[_0x334a60(0xef)](0x11)+'\x20'+a63_0x3a15dd[_0x334a60(0x11e)](_0x334a60(0xfc)));else{if(_0x23a467[_0x334a60(0xf3)]===_0x334a60(0x114))console['log']('\x20\x20'+_0x22ed63[_0x334a60(0xef)](0x11)+'\x20'+a63_0x3a15dd[_0x334a60(0xe3)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x23a467[_0x334a60(0xf3)]==='missing'?console[_0x334a60(0xde)]('\x20\x20'+_0x22ed63[_0x334a60(0xef)](0x11)+'\x20'+a63_0x3a15dd[_0x334a60(0xdf)](_0x334a60(0xe5))):(console[_0x334a60(0xde)]('\x20\x20'+_0x22ed63[_0x334a60(0xef)](0x11)+'\x20'+a63_0x3a15dd[_0x334a60(0x113)](_0x334a60(0xe6))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a63_0x3a15dd['red'](_0x23a467['message'])));}};_0xf532d7('Global',_0x52c19f),_0xf532d7(_0x3252ee(0xe7),_0x1b473b),console[_0x3252ee(0xde)](),console[_0x3252ee(0xde)](a63_0x3a15dd['bold'](_0x3252ee(0xf9))),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0x111)[_0x3252ee(0x10b)](0x1e))),console[_0x3252ee(0xde)](_0x3252ee(0xda)+(_0x4ab28c[_0x3252ee(0x104)]||a63_0x3a15dd[_0x3252ee(0x113)]('(not\x20set)'))),console[_0x3252ee(0xde)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4ab28c['env']),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4ab28c[_0x3252ee(0xdb)]),console[_0x3252ee(0xde)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4ab28c['apiDir']),console[_0x3252ee(0xde)](_0x3252ee(0xf5)+(_0x4ab28c[_0x3252ee(0x10a)]||a63_0x3a15dd['gray'](_0x3252ee(0xdd)))),console[_0x3252ee(0xde)](_0x3252ee(0xeb)+(_0x4ab28c[_0x3252ee(0xe0)]||a63_0x3a15dd[_0x3252ee(0xdf)]('(none)'))),console[_0x3252ee(0xde)](_0x3252ee(0x10f)+(_0x4ab28c[_0x3252ee(0x11a)]||a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0xdd)))),console[_0x3252ee(0xde)](_0x3252ee(0x121)+(_0x4ab28c[_0x3252ee(0xe4)]||a63_0x3a15dd['gray'](_0x3252ee(0xfe)))),console['log'](_0x3252ee(0xed)+(_0x4ab28c[_0x3252ee(0x109)]??a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0xf7)))),console['log'](_0x3252ee(0xe9)+_0x4ab28c[_0x3252ee(0xea)]),console[_0x3252ee(0xde)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4ab28c[_0x3252ee(0x100)]),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4ab28c[_0x3252ee(0x112)]?a63_0x3a15dd[_0x3252ee(0x11e)](_0x3252ee(0xd9)+_0x4ab28c[_0x3252ee(0x112)][_0x3252ee(0x102)]+')'):_0x1c312b?a63_0x3a15dd[_0x3252ee(0x11e)](_0x3252ee(0x10d)+_0x1c312b['length']+')'):a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0xdd))));const _0x4b4aa6=Object[_0x3252ee(0xd4)](_0x4ab28c['apps']);if(_0x4b4aa6[_0x3252ee(0x102)]>0x0){console[_0x3252ee(0xde)](),console['log'](a63_0x3a15dd[_0x3252ee(0xd5)](_0x3252ee(0x101))),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0x111)[_0x3252ee(0x10b)](0x1e)));for(const _0x2ba580 of _0x4b4aa6){const _0x57d3d7=_0x4ab28c[_0x3252ee(0xd6)][_0x2ba580],_0x31f22a=_0x2ba580===_0x4ab28c[_0x3252ee(0x10a)],_0x44b441=_0x2ba580===_0x4ab28c[_0x3252ee(0xe0)],_0x41af48=_0x44b441?a63_0x3a15dd[_0x3252ee(0x11e)]('\x20←\x20current'):'',_0x4f2909=_0x31f22a?_0x3252ee(0xd7):'';console[_0x3252ee(0xde)]('\x20\x20'+_0x2ba580+_0x4f2909+_0x41af48),console[_0x3252ee(0xde)](_0x3252ee(0x11b)+_0x57d3d7[_0x3252ee(0xdc)]),console[_0x3252ee(0xde)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x57d3d7[_0x3252ee(0xff)]||a63_0x3a15dd[_0x3252ee(0xdf)]('(inherit)'))),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20'+(_0x57d3d7[_0x3252ee(0x11f)]||a63_0x3a15dd['gray']('(inherit)'))),console[_0x3252ee(0xde)]('\x20\x20\x20\x20cookie:\x20\x20\x20'+(_0x57d3d7['cookie']?a63_0x3a15dd[_0x3252ee(0x11e)](_0x3252ee(0xf8)):a63_0x3a15dd[_0x3252ee(0xdf)]('(inherit)')));}}console[_0x3252ee(0xde)](),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xd5)](_0x3252ee(0x120))),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xdf)](_0x3252ee(0x111)['repeat'](0x1e))),console[_0x3252ee(0xde)](_0x3252ee(0xd8)+getApiDomain()),console[_0x3252ee(0xde)](_0x3252ee(0xf4)+getUserDomain()),console[_0x3252ee(0xde)](_0x3252ee(0xd3)+getRuntimeDomain()),console[_0x3252ee(0xde)](),console[_0x3252ee(0xde)](a63_0x3a15dd[_0x3252ee(0xd5)](_0x3252ee(0xee))),console[_0x3252ee(0xde)](a63_0x3a15dd['gray'](_0x3252ee(0x111)[_0x3252ee(0x10b)](0x1e)));if(_0x1c312b){const _0x240723=await getIsSessionValid();console[_0x3252ee(0xde)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x240723?a63_0x3a15dd[_0x3252ee(0x11e)](_0x3252ee(0xfa)):a63_0x3a15dd[_0x3252ee(0x113)](_0x3252ee(0xfd))));}else console['log'](_0x3252ee(0x11c)+a63_0x3a15dd[_0x3252ee(0x113)](_0x3252ee(0xe1)));return console[_0x3252ee(0xde)](),{'ok':!![]};}export const doctorDefinition={'service':a63_0x17de10(0x108),'command':a63_0x17de10(0x119),'description':a63_0x17de10(0xec),'risk':a63_0x17de10(0xfb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- function a51_0x29d2(_0x17871d,_0x92838e){_0x17871d=_0x17871d-0x156;const _0x50c1cc=a51_0x50c1();let _0x29d2f5=_0x50c1cc[_0x17871d];return _0x29d2f5;}const a51_0x619038=a51_0x29d2;(function(_0x5c319c,_0x45f08c){const _0x3e1dc1=a51_0x29d2,_0x32990d=_0x5c319c();while(!![]){try{const _0xf00ba6=parseInt(_0x3e1dc1(0x183))/0x1*(-parseInt(_0x3e1dc1(0x158))/0x2)+-parseInt(_0x3e1dc1(0x163))/0x3+-parseInt(_0x3e1dc1(0x15a))/0x4*(parseInt(_0x3e1dc1(0x17e))/0x5)+-parseInt(_0x3e1dc1(0x167))/0x6+-parseInt(_0x3e1dc1(0x160))/0x7*(-parseInt(_0x3e1dc1(0x175))/0x8)+-parseInt(_0x3e1dc1(0x170))/0x9*(-parseInt(_0x3e1dc1(0x171))/0xa)+parseInt(_0x3e1dc1(0x161))/0xb*(parseInt(_0x3e1dc1(0x172))/0xc);if(_0xf00ba6===_0x45f08c)break;else _0x32990d['push'](_0x32990d['shift']());}catch(_0x19ac86){_0x32990d['push'](_0x32990d['shift']());}}}(a51_0x50c1,0x3cab8));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';function a51_0x50c1(){const _0x54a5a0=['write','join','map','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','Write\x20to\x20global\x20config\x20instead\x20of\x20project','1415qAwlrq','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','log','Use\x20`','\x20\x20Default:\x20','65dDECNE','some','toLocaleString','global','boolean','检测到旧配置文件,正在自动升级...\x0a','7802owtwrb','App\x20code\x20to\x20initialize\x20with','5604Rpiykh','defaultApp','\x20\x20Config:\x20','production','appCode','str','163639vfbKuQ','8340101AEnVhT','appcode','791781UbWprw','message','string','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','1352562vkkXof','validation','bool','project','length','run','apps','nonInteractive','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','16299tscimi','1670AsITKR','12rFIXAB','Auto-confirm\x20prompts','env','112CsefDY','valid','../../commands/project/init.js','\x0a✓\x20Successfully\x20initialized\x20'];a51_0x50c1=function(){return _0x54a5a0;};return a51_0x50c1();}import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function syntheticApp(_0x3a2181){return{'appCode':_0x3a2181,'appName':_0x3a2181};}function writeInitConfig(_0x33e8b8,_0x2dccb2,_0x201cc8){const _0x1d7431=a51_0x29d2,_0x5d4b1e=resolveWriteConfigPath(_0x33e8b8),_0x24724c={'version':getCliVersion(),'createdAt':new Date()[_0x1d7431(0x185)](),'env':_0x201cc8};if(_0x2dccb2[_0x1d7431(0x16b)]===0x1)_0x24724c['appcode']=_0x2dccb2[0x0][_0x1d7431(0x15e)];else{_0x24724c[_0x1d7431(0x16d)]={};for(const _0xf37d3d of _0x2dccb2){_0x24724c['apps'][_0xf37d3d[_0x1d7431(0x15e)]]={'appcode':_0xf37d3d['appCode'],'env':_0x201cc8};}_0x24724c[_0x1d7431(0x15b)]=_0x2dccb2[0x0][_0x1d7431(0x15e)];}writeConfigFile(_0x5d4b1e,_0x24724c);const _0x19c6f5=_0x33e8b8===_0x1d7431(0x186)?'global':_0x1d7431(0x16a);console[_0x1d7431(0x180)](_0x1d7431(0x178)+_0x19c6f5+'\x20config'),_0x2dccb2[_0x1d7431(0x16b)]===0x1?console[_0x1d7431(0x180)]('\x20\x20AppCode:\x20'+_0x2dccb2[0x0]['appCode']):(console[_0x1d7431(0x180)]('\x20\x20Apps:\x20'+_0x2dccb2[_0x1d7431(0x17b)](_0x52daf0=>_0x52daf0[_0x1d7431(0x15e)])[_0x1d7431(0x17a)](',\x20')),console[_0x1d7431(0x180)](_0x1d7431(0x182)+_0x24724c[_0x1d7431(0x15b)])),console[_0x1d7431(0x180)]('\x20\x20Env:\x20'+_0x24724c[_0x1d7431(0x174)]),console['log'](_0x1d7431(0x15c)+_0x5d4b1e);}async function runSmartInit(_0x102ae3){const _0xc92715=a51_0x29d2,_0x209323=process['cwd'](),_0xbb4b2b=_0x102ae3[_0xc92715(0x169)](_0xc92715(0x186))?'global':_0xc92715(0x16a),_0x35f34e=_0x102ae3[_0xc92715(0x15f)](_0xc92715(0x174))||_0xc92715(0x15d),_0x4e80b2=_0x102ae3['str'](_0xc92715(0x162))||undefined,_0x31c12e=_0x102ae3['bool'](_0xc92715(0x16a));if(_0x31c12e){const {initConfig:_0x3383e1}=await import(_0xc92715(0x177));return _0x3383e1({'appcode':_0x4e80b2,'env':_0x35f34e,'autoYes':_0x102ae3[_0xc92715(0x169)]('yes')});}if(_0xbb4b2b===_0xc92715(0x16a)){const _0x4292cb=existsSync(resolve(_0x209323,NEW_CONFIG_NAME)),_0x464315=LEGACY_CONFIG_NAMES[_0xc92715(0x184)](_0x15a971=>existsSync(resolve(_0x209323,_0x15a971)));if(_0x464315&&!_0x4292cb)return console['log'](_0xc92715(0x157)),upgradeApp(_0x102ae3['nonInteractive'],{'yes':_0x102ae3['bool']('yes')});if(_0x4292cb)throw CliErrors[_0xc92715(0x168)](_0xc92715(0x16f),_0xc92715(0x181)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x4e80b2){const _0x551c8a=validateAppcode(_0x4e80b2);if(!_0x551c8a[_0xc92715(0x176)])throw CliErrors[_0xc92715(0x168)](_0x551c8a[_0xc92715(0x164)]);writeInitConfig(_0xbb4b2b,[syntheticApp(_0x4e80b2)],_0x35f34e);return;}if(_0x102ae3[_0xc92715(0x16e)])throw CliErrors['flagMissing'](_0xc92715(0x162),'Usage:\x20'+CLI_BIN_NAME+_0xc92715(0x17c));const _0x334b6a=getCookie(),_0x3869bc=await selectMultipleApps(_0x334b6a),_0x5b0025=_0x3869bc==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x3869bc;writeInitConfig(_0xbb4b2b,_0x5b0025,_0x35f34e);}const initFlags=[{'name':a51_0x619038(0x186),'type':a51_0x619038(0x156),'description':a51_0x619038(0x17d),'default':![]},{'name':a51_0x619038(0x174),'type':'string','description':'Target\x20environment','default':a51_0x619038(0x15d),'enum':[a51_0x619038(0x15d),'daily']},{'name':a51_0x619038(0x162),'type':a51_0x619038(0x165),'description':a51_0x619038(0x159)},{'name':a51_0x619038(0x16a),'type':a51_0x619038(0x156),'description':a51_0x619038(0x166),'default':![]},{'name':'yes','type':'boolean','description':a51_0x619038(0x173),'default':![]}];export const initDefinitions=[{'service':'init','command':a51_0x619038(0x16c),'description':a51_0x619038(0x17f),'risk':a51_0x619038(0x179),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x36a9fa){return await runSmartInit(_0x36a9fa),{'ok':!![]};}}];
1
+ const a64_0x43ffa4=a64_0x55df;(function(_0xa0ee3a,_0x38d898){const _0x102132=a64_0x55df,_0x822895=_0xa0ee3a();while(!![]){try{const _0x8df40e=-parseInt(_0x102132(0x14c))/0x1*(-parseInt(_0x102132(0x14d))/0x2)+-parseInt(_0x102132(0x147))/0x3+parseInt(_0x102132(0x14f))/0x4*(parseInt(_0x102132(0x167))/0x5)+-parseInt(_0x102132(0x15c))/0x6+-parseInt(_0x102132(0x154))/0x7*(parseInt(_0x102132(0x15b))/0x8)+parseInt(_0x102132(0x179))/0x9+parseInt(_0x102132(0x175))/0xa;if(_0x8df40e===_0x38d898)break;else _0x822895['push'](_0x822895['shift']());}catch(_0x6a8e51){_0x822895['push'](_0x822895['shift']());}}}(a64_0x35b8,0xa85b0));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';function a64_0x55df(_0x4a75b4,_0x1b1a85){_0x4a75b4=_0x4a75b4-0x147;const _0x35b896=a64_0x35b8();let _0x55df01=_0x35b896[_0x4a75b4];return _0x55df01;}import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function a64_0x35b8(){const _0x5e3b6f=['boolean','1996010hxoIBa','appcode','init','Usage:\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','production','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','\x20\x20AppCode:\x20','project','toLocaleString','custom','flagMissing','../../commands/project/init.js','8157690eAxfaB','map','global','\x20\x20Apps:\x20','3230307TMqhnk','1405317BAzPzo','some','validation','defaultApp','nonInteractive','795064qglVmW','2bRxfmp','\x20\x20Env:\x20','4STVUcZ','appCode','run','yes','bool','4074AsqwqE','valid','log','apps','join','\x20\x20Default:\x20','env','6792fSLHam','4300902VCPWBY','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','cwd','string','write','Use\x20`','检测到旧配置文件,正在自动升级...\x0a','App\x20code\x20to\x20initialize\x20with','Target\x20environment','\x20\x20Config:\x20'];a64_0x35b8=function(){return _0x5e3b6f;};return a64_0x35b8();}function syntheticApp(_0x23ac8b){return{'appCode':_0x23ac8b,'appName':_0x23ac8b};}function writeInitConfig(_0x48ec0d,_0x241f62,_0x337b90){const _0x577074=a64_0x55df,_0x4e70e3=resolveWriteConfigPath(_0x48ec0d),_0xbce604={'version':getCliVersion(),'createdAt':new Date()[_0x577074(0x171)](),'env':_0x337b90};if(_0x241f62['length']===0x1)_0xbce604['appcode']=_0x241f62[0x0][_0x577074(0x150)];else{_0xbce604['apps']={};for(const _0x4c4fb6 of _0x241f62){_0xbce604[_0x577074(0x157)][_0x4c4fb6[_0x577074(0x150)]]={'appcode':_0x4c4fb6[_0x577074(0x150)],'env':_0x337b90};}_0xbce604[_0x577074(0x14a)]=_0x241f62[0x0]['appCode'];}writeConfigFile(_0x4e70e3,_0xbce604);const _0x56a4da=_0x48ec0d===_0x577074(0x177)?_0x577074(0x177):_0x577074(0x170);console[_0x577074(0x156)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x56a4da+'\x20config'),_0x241f62['length']===0x1?console[_0x577074(0x156)](_0x577074(0x16f)+_0x241f62[0x0][_0x577074(0x150)]):(console[_0x577074(0x156)](_0x577074(0x178)+_0x241f62[_0x577074(0x176)](_0x248fe1=>_0x248fe1[_0x577074(0x150)])[_0x577074(0x158)](',\x20')),console[_0x577074(0x156)](_0x577074(0x159)+_0xbce604[_0x577074(0x14a)])),console[_0x577074(0x156)](_0x577074(0x14e)+_0xbce604[_0x577074(0x15a)]),console['log'](_0x577074(0x165)+_0x4e70e3);}async function runSmartInit(_0x334657){const _0x19e773=a64_0x55df,_0x28ed3b=process[_0x19e773(0x15e)](),_0x3377c0=_0x334657[_0x19e773(0x153)]('global')?_0x19e773(0x177):_0x19e773(0x170),_0x174915=_0x334657['str'](_0x19e773(0x15a))||_0x19e773(0x16d),_0x120dad=_0x334657['str'](_0x19e773(0x168))||undefined,_0x37afd3=_0x334657[_0x19e773(0x153)](_0x19e773(0x170));if(_0x37afd3){const {initConfig:_0x4d6c5d}=await import(_0x19e773(0x174));return _0x4d6c5d({'appcode':_0x120dad,'env':_0x174915,'autoYes':_0x334657[_0x19e773(0x153)](_0x19e773(0x152))});}if(_0x3377c0===_0x19e773(0x170)){const _0xc73faa=existsSync(resolve(_0x28ed3b,NEW_CONFIG_NAME)),_0x19f77c=LEGACY_CONFIG_NAMES[_0x19e773(0x148)](_0x2432e3=>existsSync(resolve(_0x28ed3b,_0x2432e3)));if(_0x19f77c&&!_0xc73faa)return console[_0x19e773(0x156)](_0x19e773(0x162)),upgradeApp(_0x334657[_0x19e773(0x14b)],{'yes':_0x334657['bool']('yes')});if(_0xc73faa)throw CliErrors[_0x19e773(0x149)](_0x19e773(0x16b),_0x19e773(0x161)+CLI_BIN_NAME+_0x19e773(0x16c));}if(_0x120dad){const _0x55010b=validateAppcode(_0x120dad);if(!_0x55010b[_0x19e773(0x155)])throw CliErrors[_0x19e773(0x149)](_0x55010b['message']);writeInitConfig(_0x3377c0,[syntheticApp(_0x120dad)],_0x174915);return;}if(_0x334657['nonInteractive'])throw CliErrors[_0x19e773(0x173)](_0x19e773(0x168),_0x19e773(0x16a)+CLI_BIN_NAME+_0x19e773(0x16e));const _0x2cc4bd=getCookie(),_0x4622d7=await selectMultipleApps(_0x2cc4bd),_0x35828b=_0x4622d7===_0x19e773(0x172)?[syntheticApp(await promptCustomAppcode())]:_0x4622d7;writeInitConfig(_0x3377c0,_0x35828b,_0x174915);}const initFlags=[{'name':a64_0x43ffa4(0x177),'type':a64_0x43ffa4(0x166),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a64_0x43ffa4(0x15a),'type':a64_0x43ffa4(0x15f),'description':a64_0x43ffa4(0x164),'default':a64_0x43ffa4(0x16d),'enum':[a64_0x43ffa4(0x16d),'daily']},{'name':a64_0x43ffa4(0x168),'type':a64_0x43ffa4(0x15f),'description':a64_0x43ffa4(0x163)},{'name':'project','type':a64_0x43ffa4(0x166),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a64_0x43ffa4(0x152),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a64_0x43ffa4(0x169),'command':a64_0x43ffa4(0x151),'description':a64_0x43ffa4(0x15d),'risk':a64_0x43ffa4(0x160),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x457c9a){return await runSmartInit(_0x457c9a),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a52_0x4cf6d4=a52_0x14bf;(function(_0x1ed43b,_0xd48503){const _0x2879d8=a52_0x14bf,_0x5eff20=_0x1ed43b();while(!![]){try{const _0x52453f=-parseInt(_0x2879d8(0x138))/0x1*(parseInt(_0x2879d8(0x143))/0x2)+-parseInt(_0x2879d8(0x12f))/0x3*(parseInt(_0x2879d8(0x12b))/0x4)+-parseInt(_0x2879d8(0x142))/0x5+parseInt(_0x2879d8(0x135))/0x6+-parseInt(_0x2879d8(0x139))/0x7*(parseInt(_0x2879d8(0x126))/0x8)+-parseInt(_0x2879d8(0x130))/0x9+parseInt(_0x2879d8(0x122))/0xa;if(_0x52453f===_0xd48503)break;else _0x5eff20['push'](_0x5eff20['shift']());}catch(_0x2362f9){_0x5eff20['push'](_0x5eff20['shift']());}}}(a52_0x58ec,0xa39df));function a52_0x58ec(){const _0x1014d4=['en-US','log','success','Clear\x20command\x20history\x20logs','1819068uLGZLl','duration','clear','level','3DIhurl','1336473dJmHYX','logs','keys','show','*\x20No\x20logs\x20found','5039940sLXzsa','*\x20Logs\x20cleared','error','856LXGcdz','630742kZwDKe','readLogs','clearLogs','command','stringify','read','details','length','\x20\x20\x20Time:\x20','1474895rMOusS','542vqXGOI','warn','11406160mNRKHt','timestamp','toLocaleString','write','16rENJxv'];a52_0x58ec=function(){return _0x1014d4;};return a52_0x58ec();}import{logger}from'../../utils/logger.js';function a52_0x14bf(_0x21d069,_0xce6579){_0x21d069=_0x21d069-0x121;const _0x58ec8c=a52_0x58ec();let _0x14bf01=_0x58ec8c[_0x21d069];return _0x14bf01;}function printLogs(_0xcc4098){const _0xf6ac1e=a52_0x14bf;if(_0xcc4098[_0xf6ac1e(0x140)]===0x0){console['log'](_0xf6ac1e(0x134));return;}console[_0xf6ac1e(0x128)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0xcc4098['forEach']((_0x4a21bc,_0x4eda0a)=>{const _0x2b1e8d=_0xf6ac1e,_0x372920=new Date(_0x4a21bc[_0x2b1e8d(0x123)])[_0x2b1e8d(0x124)](_0x2b1e8d(0x127)),_0x57280d=_0x4a21bc[_0x2b1e8d(0x12e)]===_0x2b1e8d(0x129)?'√':_0x4a21bc[_0x2b1e8d(0x12e)]===_0x2b1e8d(0x137)?'×':_0x4a21bc[_0x2b1e8d(0x12e)]===_0x2b1e8d(0x121)?'!':'i';console['log'](_0x4eda0a+0x1+'.\x20'+_0x57280d+'\x20['+_0x4a21bc[_0x2b1e8d(0x13c)]+']\x20'+_0x4a21bc['message']),console[_0x2b1e8d(0x128)](_0x2b1e8d(0x141)+_0x372920),_0x4a21bc[_0x2b1e8d(0x12c)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x4a21bc['duration']+'ms'),_0x4a21bc['details']&&Object[_0x2b1e8d(0x132)](_0x4a21bc[_0x2b1e8d(0x13f)])[_0x2b1e8d(0x140)]>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x2b1e8d(0x13d)](_0x4a21bc[_0x2b1e8d(0x13f)],null,0x2)),console[_0x2b1e8d(0x128)]('');});}export const logsDefinitions=[{'service':a52_0x4cf6d4(0x131),'command':a52_0x4cf6d4(0x133),'description':'View\x20command\x20history\x20logs','risk':a52_0x4cf6d4(0x13e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x23c3f4){const _0x52b3b4=a52_0x4cf6d4;return printLogs(logger[_0x52b3b4(0x13a)]()),{'ok':!![]};}},{'service':a52_0x4cf6d4(0x131),'command':a52_0x4cf6d4(0x12d),'description':a52_0x4cf6d4(0x12a),'risk':a52_0x4cf6d4(0x125),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4fecd8){const _0x339354=a52_0x4cf6d4;return logger[_0x339354(0x13b)](),console['log'](_0x339354(0x136)),{'ok':!![]};}}];
1
+ function a65_0x2d52(_0x444387,_0x2f84ac){_0x444387=_0x444387-0x13d;const _0x5a62d8=a65_0x5a62();let _0x2d5217=_0x5a62d8[_0x444387];return _0x2d5217;}const a65_0x385728=a65_0x2d52;(function(_0x5f11de,_0x3aa8a6){const _0x278f68=a65_0x2d52,_0x447e1e=_0x5f11de();while(!![]){try{const _0xa20684=parseInt(_0x278f68(0x13d))/0x1+-parseInt(_0x278f68(0x14f))/0x2+parseInt(_0x278f68(0x156))/0x3+-parseInt(_0x278f68(0x147))/0x4+-parseInt(_0x278f68(0x158))/0x5*(-parseInt(_0x278f68(0x159))/0x6)+-parseInt(_0x278f68(0x13e))/0x7+parseInt(_0x278f68(0x15a))/0x8;if(_0xa20684===_0x3aa8a6)break;else _0x447e1e['push'](_0x447e1e['shift']());}catch(_0x375794){_0x447e1e['push'](_0x447e1e['shift']());}}}(a65_0x5a62,0x4f255));import{logger}from'../../utils/logger.js';function printLogs(_0x3e12e4){const _0x31721a=a65_0x2d52;if(_0x3e12e4[_0x31721a(0x149)]===0x0){console['log'](_0x31721a(0x142));return;}console[_0x31721a(0x14b)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x3e12e4[_0x31721a(0x151)]((_0x261f7c,_0x651ac2)=>{const _0x226d4c=_0x31721a,_0x332495=new Date(_0x261f7c[_0x226d4c(0x15c)])[_0x226d4c(0x148)](_0x226d4c(0x14e)),_0x5d3a5f=_0x261f7c[_0x226d4c(0x150)]===_0x226d4c(0x15b)?'√':_0x261f7c[_0x226d4c(0x150)]==='error'?'×':_0x261f7c['level']===_0x226d4c(0x140)?'!':'i';console[_0x226d4c(0x14b)](_0x651ac2+0x1+'.\x20'+_0x5d3a5f+'\x20['+_0x261f7c['command']+']\x20'+_0x261f7c[_0x226d4c(0x13f)]),console['log'](_0x226d4c(0x146)+_0x332495),_0x261f7c['duration']&&console['log'](_0x226d4c(0x152)+_0x261f7c['duration']+'ms'),_0x261f7c['details']&&Object[_0x226d4c(0x153)](_0x261f7c[_0x226d4c(0x145)])[_0x226d4c(0x149)]>0x0&&console['log'](_0x226d4c(0x154)+JSON['stringify'](_0x261f7c['details'],null,0x2)),console[_0x226d4c(0x14b)]('');});}function a65_0x5a62(){const _0x1a9660=['forEach','\x20\x20\x20Duration:\x20','keys','\x20\x20\x20Details:\x20','logs','1078104hBYwmZ','readLogs','5bHuRgZ','436434WTipDY','7623656lGtvzN','success','timestamp','422898jbMbXg','2614108yZzhDk','message','warn','show','*\x20No\x20logs\x20found','Clear\x20command\x20history\x20logs','clear','details','\x20\x20\x20Time:\x20','2116068eUdfhf','toLocaleString','length','View\x20command\x20history\x20logs','log','read','clearLogs','en-US','1162640JSZbfN','level'];a65_0x5a62=function(){return _0x1a9660;};return a65_0x5a62();}export const logsDefinitions=[{'service':a65_0x385728(0x155),'command':a65_0x385728(0x141),'description':a65_0x385728(0x14a),'risk':a65_0x385728(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x110176){const _0x5a85dd=a65_0x385728;return printLogs(logger[_0x5a85dd(0x157)]()),{'ok':!![]};}},{'service':a65_0x385728(0x155),'command':a65_0x385728(0x144),'description':a65_0x385728(0x143),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x27e228){const _0x3dbada=a65_0x385728;return logger[_0x3dbada(0x14d)](),console['log']('*\x20Logs\x20cleared'),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x383aad,_0x10488b){const _0x5c028e=a53_0x3ab4,_0x2847db=_0x383aad();while(!![]){try{const _0x290b70=parseInt(_0x5c028e(0x180))/0x1*(-parseInt(_0x5c028e(0x184))/0x2)+parseInt(_0x5c028e(0x17e))/0x3+parseInt(_0x5c028e(0x17f))/0x4*(parseInt(_0x5c028e(0x183))/0x5)+parseInt(_0x5c028e(0x185))/0x6+parseInt(_0x5c028e(0x187))/0x7*(-parseInt(_0x5c028e(0x186))/0x8)+-parseInt(_0x5c028e(0x182))/0x9+parseInt(_0x5c028e(0x181))/0xa;if(_0x290b70===_0x10488b)break;else _0x2847db['push'](_0x2847db['shift']());}catch(_0x28f19f){_0x2847db['push'](_0x2847db['shift']());}}}(a53_0x3d6b,0x775e2));function a53_0x3ab4(_0x2581e3,_0x582dba){_0x2581e3=_0x2581e3-0x17e;const _0x3d6b4e=a53_0x3d6b();let _0x3ab4d9=_0x3d6b4e[_0x2581e3];return _0x3ab4d9;}import{menuSync}from'../../commands/menu/sync.js';function a53_0x3d6b(){const _0x5807ca=['26015SQHrvy','94orAnBj','1566900UvVqrZ','8vfTJAe','3871133OPiPze','2788512VpNJgM','296jKHhCJ','1578YdfNXO','3732010dpqnZm','7494858PGjivu'];a53_0x3d6b=function(){return _0x5807ca;};return a53_0x3d6b();}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x58c96b,_0x43b895){const _0x3271a6=a66_0x4246,_0x4d39a8=_0x58c96b();while(!![]){try{const _0x15ac67=-parseInt(_0x3271a6(0x1e9))/0x1+parseInt(_0x3271a6(0x1e8))/0x2*(parseInt(_0x3271a6(0x1e3))/0x3)+parseInt(_0x3271a6(0x1ea))/0x4*(parseInt(_0x3271a6(0x1e4))/0x5)+-parseInt(_0x3271a6(0x1eb))/0x6*(parseInt(_0x3271a6(0x1e5))/0x7)+-parseInt(_0x3271a6(0x1e7))/0x8+parseInt(_0x3271a6(0x1e6))/0x9+parseInt(_0x3271a6(0x1ed))/0xa*(-parseInt(_0x3271a6(0x1ec))/0xb);if(_0x15ac67===_0x43b895)break;else _0x4d39a8['push'](_0x4d39a8['shift']());}catch(_0x16d4cc){_0x4d39a8['push'](_0x4d39a8['shift']());}}}(a66_0xc53c,0x4b39b));function a66_0xc53c(){const _0x24e33c=['294310PBtJzt','1170883nEDaRW','4426200kWfVtI','1552128qeylCG','658714bggRkv','162214upFWrB','8AAfSrt','6qBQglK','11OlSVKe','1072590kMzkDl','3AHUgGa'];a66_0xc53c=function(){return _0x24e33c;};return a66_0xc53c();}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a66_0x4246(_0x479c44,_0x792c7c){_0x479c44=_0x479c44-0x1e3;const _0xc53ce2=a66_0xc53c();let _0x4246f2=_0xc53ce2[_0x479c44];return _0x4246f2;}export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- (function(_0x441944,_0x2594b8){const _0x341c2c=a54_0xef8d,_0xe784af=_0x441944();while(!![]){try{const _0x35127b=-parseInt(_0x341c2c(0xfa))/0x1*(-parseInt(_0x341c2c(0xf5))/0x2)+-parseInt(_0x341c2c(0xe4))/0x3*(parseInt(_0x341c2c(0xf9))/0x4)+parseInt(_0x341c2c(0xfb))/0x5+-parseInt(_0x341c2c(0xf0))/0x6+-parseInt(_0x341c2c(0xfc))/0x7+-parseInt(_0x341c2c(0xf1))/0x8+parseInt(_0x341c2c(0xe6))/0x9;if(_0x35127b===_0x2594b8)break;else _0xe784af['push'](_0xe784af['shift']());}catch(_0x4715c0){_0xe784af['push'](_0xe784af['shift']());}}}(a54_0x5386,0xdc92d));function strWidth(_0x1ec424){const _0x7d9b01=a54_0xef8d;let _0x1cea8d=0x0;for(const _0x1340bb of _0x1ec424){_0x1cea8d+=/[\u4e00-\u9fa5]/[_0x7d9b01(0xf7)](_0x1340bb)?0x2:0x1;}return _0x1cea8d;}function padRight(_0x441142,_0x515319){const _0x485226=a54_0xef8d,_0x42e0c0=strWidth(_0x441142);return _0x441142+'\x20'['repeat'](Math[_0x485226(0xec)](0x0,_0x515319-_0x42e0c0));}export function renderCompareTable(_0x1208bb,_0x53e0f0={}){const _0x17a2fa=a54_0xef8d;if(_0x1208bb['length']===0x0)return'';const _0x94a3cb=_0x53e0f0[_0x17a2fa(0xea)]??!![],_0xd39ddc=Math[_0x17a2fa(0xec)](0x1e,..._0x1208bb[_0x17a2fa(0xe9)](_0x1409ac=>strWidth(_0x1409ac['label']))),_0x5289e4=0x4,_0x6e2e9a=[],_0x3717fb='\x20\x20'+padRight(_0x17a2fa(0xeb),_0xd39ddc),_0x1c564c=padRight(_0x17a2fa(0xf3),_0x5289e4),_0x48aa1f=_0x94a3cb?'\x20\x20'+padRight('Platform',_0x5289e4):'';_0x6e2e9a[_0x17a2fa(0x100)](_0x3717fb+'\x20\x20'+_0x1c564c+(_0x94a3cb?_0x48aa1f:'')),_0x6e2e9a[_0x17a2fa(0x100)]('\x20\x20'+'─'[_0x17a2fa(0xe7)](_0xd39ddc)+'\x20\x20'+'─'[_0x17a2fa(0xe7)](_0x5289e4)+(_0x94a3cb?'\x20\x20'+'─'[_0x17a2fa(0xe7)](_0x5289e4):''));for(const _0x16a004 of _0x1208bb){const _0x2980d8=padRight(_0x16a004[_0x17a2fa(0xe8)],_0xd39ddc),_0x49f877=_0x16a004[_0x17a2fa(0xf2)]?'✓':'✗',_0x265981=padRight(_0x49f877,_0x5289e4);let _0x3f4c36='\x20\x20'+_0x2980d8+'\x20\x20'+_0x265981;if(_0x94a3cb){const _0x424bfa=_0x16a004[_0x17a2fa(0xed)]?'✓':'✗';_0x3f4c36+='\x20\x20'+padRight(_0x424bfa,_0x5289e4);}_0x6e2e9a['push'](_0x3f4c36);}return _0x6e2e9a[_0x17a2fa(0xe5)]('\x0a');}function a54_0xef8d(_0x5c6dab,_0x577839){_0x5c6dab=_0x5c6dab-0xe4;const _0x5386d3=a54_0x5386();let _0xef8df2=_0x5386d3[_0x5c6dab];return _0xef8df2;}export function renderSyncSummary(_0x348562,_0x30ebcd){const _0x22c3b4=a54_0xef8d;if(_0x348562['length']===0x0)return _0x30ebcd?_0x22c3b4(0xf6):_0x22c3b4(0xff);const _0x47b0bf=['\x20\x20'+_0x348562['length']+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x249636 of _0x348562){_0x47b0bf[_0x22c3b4(0x100)](_0x22c3b4(0xee)+_0x249636[_0x22c3b4(0xe8)]+'\x20('+_0x249636[_0x22c3b4(0xf4)]+')');}return _0x47b0bf[_0x22c3b4(0xe5)]('\x0a');}export function renderUpdateSummary(_0x346a3e,_0x87e361){const _0x268118=a54_0xef8d;if(_0x346a3e[_0x268118(0xf8)]===0x0)return _0x268118(0xef);const _0x4bf0a3=['\x20\x20'+_0x346a3e[_0x268118(0xf8)]+_0x268118(0x102),_0x268118(0xfd)+(_0x87e361[0x0]??_0x268118(0xfe)),_0x268118(0x101)+(_0x87e361[0x1]??'(unchanged)'),'','\x20\x20Affected\x20menus:\x20'+_0x346a3e[_0x268118(0xe5)](',\x20')];return _0x4bf0a3[_0x268118(0xe5)]('\x0a');}function a54_0x5386(){const _0xfafb12=['\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','57ECpyAa','join','40583781lSyQlL','repeat','label','map','showOnline','Menu\x20Name','max','online','\x20\x20\x20\x20•\x20','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','3052440zdOMJt','14038232egiXdy','local','Local','path','1007676MykktL','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','test','length','190228SLRdXk','1qONejV','2088335NyXJRF','9521701xKAedl','\x20\x20\x20\x20JS:\x20\x20','(unchanged)','\x20\x20No\x20pages\x20to\x20sync.','push','\x20\x20\x20\x20CSS:\x20'];a54_0x5386=function(){return _0xfafb12;};return a54_0x5386();}
1
+ (function(_0x36c28b,_0x32659d){const _0x5c917a=a67_0x1b92,_0xe1f0ee=_0x36c28b();while(!![]){try{const _0x5d0d47=parseInt(_0x5c917a(0x7b))/0x1*(parseInt(_0x5c917a(0x78))/0x2)+parseInt(_0x5c917a(0x76))/0x3+-parseInt(_0x5c917a(0x93))/0x4*(-parseInt(_0x5c917a(0x8b))/0x5)+parseInt(_0x5c917a(0x8a))/0x6*(parseInt(_0x5c917a(0x89))/0x7)+-parseInt(_0x5c917a(0x84))/0x8*(-parseInt(_0x5c917a(0x77))/0x9)+parseInt(_0x5c917a(0x85))/0xa*(parseInt(_0x5c917a(0x87))/0xb)+-parseInt(_0x5c917a(0x90))/0xc;if(_0x5d0d47===_0x32659d)break;else _0xe1f0ee['push'](_0xe1f0ee['shift']());}catch(_0xb81f53){_0xe1f0ee['push'](_0xe1f0ee['shift']());}}}(a67_0x1c40,0xefaa9));function strWidth(_0x2f6029){const _0x49b74d=a67_0x1b92;let _0x44600a=0x0;for(const _0x3d4da4 of _0x2f6029){_0x44600a+=/[\u4e00-\u9fa5]/[_0x49b74d(0x81)](_0x3d4da4)?0x2:0x1;}return _0x44600a;}function padRight(_0x21eba2,_0x55efbf){const _0x374c79=a67_0x1b92,_0x53ffcd=strWidth(_0x21eba2);return _0x21eba2+'\x20'[_0x374c79(0x86)](Math['max'](0x0,_0x55efbf-_0x53ffcd));}function a67_0x1b92(_0x53a979,_0x4cc99a){_0x53a979=_0x53a979-0x75;const _0x1c4032=a67_0x1c40();let _0x1b92cf=_0x1c4032[_0x53a979];return _0x1b92cf;}function a67_0x1c40(){const _0x275805=['8EldMZn','10ACiogQ','repeat','3008203EPbkfS','label','2069081dEDDkq','6LLDkjr','4871145nUNCdw','(unchanged)','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','max','Menu\x20Name','51622800DMfkeC','\x20\x20\x20\x20JS:\x20\x20','\x20\x20\x20\x20CSS:\x20','4TVBORb','Local','3069459NLKqKw','7888554Hcmphy','14uFVkhd','path','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','262947vMoIko','length','push','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','\x20\x20\x20\x20•\x20','join','test','\x20\x20Affected\x20menus:\x20','Platform'];a67_0x1c40=function(){return _0x275805;};return a67_0x1c40();}export function renderCompareTable(_0x5d67f4,_0x238efb={}){const _0x1548d2=a67_0x1b92;if(_0x5d67f4['length']===0x0)return'';const _0x2a2a4d=_0x238efb['showOnline']??!![],_0x5a2cc5=Math[_0x1548d2(0x8e)](0x1e,..._0x5d67f4['map'](_0x3f6834=>strWidth(_0x3f6834[_0x1548d2(0x88)]))),_0x6f3791=0x4,_0x7bc4fe=[],_0xe738e9='\x20\x20'+padRight(_0x1548d2(0x8f),_0x5a2cc5),_0x5c7c6=padRight(_0x1548d2(0x75),_0x6f3791),_0x48dcbb=_0x2a2a4d?'\x20\x20'+padRight(_0x1548d2(0x83),_0x6f3791):'';_0x7bc4fe[_0x1548d2(0x7d)](_0xe738e9+'\x20\x20'+_0x5c7c6+(_0x2a2a4d?_0x48dcbb:'')),_0x7bc4fe[_0x1548d2(0x7d)]('\x20\x20'+'─'[_0x1548d2(0x86)](_0x5a2cc5)+'\x20\x20'+'─'[_0x1548d2(0x86)](_0x6f3791)+(_0x2a2a4d?'\x20\x20'+'─'['repeat'](_0x6f3791):''));for(const _0x57ea3f of _0x5d67f4){const _0x545d09=padRight(_0x57ea3f[_0x1548d2(0x88)],_0x5a2cc5),_0x55cb74=_0x57ea3f['local']?'✓':'✗',_0xce2e27=padRight(_0x55cb74,_0x6f3791);let _0x2885ac='\x20\x20'+_0x545d09+'\x20\x20'+_0xce2e27;if(_0x2a2a4d){const _0x63ecd7=_0x57ea3f['online']?'✓':'✗';_0x2885ac+='\x20\x20'+padRight(_0x63ecd7,_0x6f3791);}_0x7bc4fe['push'](_0x2885ac);}return _0x7bc4fe[_0x1548d2(0x80)]('\x0a');}export function renderSyncSummary(_0x563bb4,_0x36ab9b){const _0x315542=a67_0x1b92;if(_0x563bb4[_0x315542(0x7c)]===0x0)return _0x36ab9b?_0x315542(0x7e):'\x20\x20No\x20pages\x20to\x20sync.';const _0x2a97e8=['\x20\x20'+_0x563bb4[_0x315542(0x7c)]+_0x315542(0x7a)];for(const _0x2360a7 of _0x563bb4){_0x2a97e8[_0x315542(0x7d)](_0x315542(0x7f)+_0x2360a7[_0x315542(0x88)]+'\x20('+_0x2360a7[_0x315542(0x79)]+')');}return _0x2a97e8[_0x315542(0x80)]('\x0a');}export function renderUpdateSummary(_0x5acc72,_0x578a00){const _0x49e72b=a67_0x1b92;if(_0x5acc72[_0x49e72b(0x7c)]===0x0)return _0x49e72b(0x8d);const _0x56f8d3=['\x20\x20'+_0x5acc72[_0x49e72b(0x7c)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x49e72b(0x91)+(_0x578a00[0x0]??_0x49e72b(0x8c)),_0x49e72b(0x92)+(_0x578a00[0x1]??'(unchanged)'),'',_0x49e72b(0x82)+_0x5acc72[_0x49e72b(0x80)](',\x20')];return _0x56f8d3[_0x49e72b(0x80)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x200b27,_0x4f920b){var _0xc12d92=a55_0x3dab,_0x33b300=_0x200b27();while(!![]){try{var _0x2e1cd4=-parseInt(_0xc12d92(0x13c))/0x1+-parseInt(_0xc12d92(0x13d))/0x2*(parseInt(_0xc12d92(0x13b))/0x3)+-parseInt(_0xc12d92(0x13f))/0x4*(-parseInt(_0xc12d92(0x141))/0x5)+-parseInt(_0xc12d92(0x13a))/0x6+-parseInt(_0xc12d92(0x140))/0x7+parseInt(_0xc12d92(0x139))/0x8+parseInt(_0xc12d92(0x13e))/0x9;if(_0x2e1cd4===_0x4f920b)break;else _0x33b300['push'](_0x33b300['shift']());}catch(_0x3740e0){_0x33b300['push'](_0x33b300['shift']());}}}(a55_0x567b,0x2868d));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';function a55_0x3dab(_0x3d4974,_0x573dd8){_0x3d4974=_0x3d4974-0x139;var _0x567bce=a55_0x567b();var _0x3dab35=_0x567bce[_0x3d4974];return _0x3dab35;}export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';function a55_0x567b(){var _0x1ac49e=['149229KtyPPj','17254iznpMt','2YSgcqL','261486vHhiFJ','1298468qLQKHW','1146026pgVidZ','5CitTuX','612176OonQKv','203766yamFLi'];a55_0x567b=function(){return _0x1ac49e;};return a55_0x567b();}export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0xb46018,_0x5840bd){var _0x3f7018=a68_0xe124,_0x4a69a6=_0xb46018();while(!![]){try{var _0xfe340f=-parseInt(_0x3f7018(0x152))/0x1*(-parseInt(_0x3f7018(0x14f))/0x2)+-parseInt(_0x3f7018(0x14e))/0x3+-parseInt(_0x3f7018(0x14c))/0x4+-parseInt(_0x3f7018(0x14a))/0x5+-parseInt(_0x3f7018(0x14d))/0x6+-parseInt(_0x3f7018(0x150))/0x7*(parseInt(_0x3f7018(0x14b))/0x8)+parseInt(_0x3f7018(0x151))/0x9;if(_0xfe340f===_0x5840bd)break;else _0x4a69a6['push'](_0x4a69a6['shift']());}catch(_0x4a7b92){_0x4a69a6['push'](_0x4a69a6['shift']());}}}(a68_0x1de3,0x70a9f));export*from'../../../commands/menu/shared/types.js';function a68_0x1de3(){var _0x1328b0=['4771524prGJPM','1164237mKljch','620668cEyrWL','26740fIjPDj','19294389rpOrEG','2djIJwT','1400610NFLIVv','408stCMSw','2578972vuTHgB'];a68_0x1de3=function(){return _0x1328b0;};return a68_0x1de3();}export*from'../../../commands/menu/shared/logic.js';function a68_0xe124(_0x5bd29d,_0x1aebf6){_0x5bd29d=_0x5bd29d-0x14a;var _0x1de33f=a68_0x1de3();var _0xe1247e=_0x1de33f[_0x5bd29d];return _0xe1247e;}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(_0x46edf2,_0x481a14){const _0x44c611=a56_0x5878,_0x5ee556=_0x46edf2();while(!![]){try{const _0x18639e=parseInt(_0x44c611(0xf3))/0x1+parseInt(_0x44c611(0xfc))/0x2*(parseInt(_0x44c611(0x112))/0x3)+parseInt(_0x44c611(0xeb))/0x4*(parseInt(_0x44c611(0xec))/0x5)+-parseInt(_0x44c611(0xf0))/0x6+parseInt(_0x44c611(0x10d))/0x7+parseInt(_0x44c611(0xed))/0x8+-parseInt(_0x44c611(0xf1))/0x9*(parseInt(_0x44c611(0x10e))/0xa);if(_0x18639e===_0x481a14)break;else _0x5ee556['push'](_0x5ee556['shift']());}catch(_0x2755a7){_0x5ee556['push'](_0x5ee556['shift']());}}}(a56_0x1593,0xdc224));import a56_0x33eeb4 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a56_0x440612 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x434c5d){const _0x2cb821=a56_0x5878;return _0x434c5d[_0x2cb821(0xfd)](_0x2ba808=>{const _0x592167=_0x2cb821;if(_0x2ba808?.[_0x592167(0x103)]===_0x592167(0xea))throw CliErrors['cancelled'](_0x592167(0xe9));throw _0x2ba808;});}export function startSpinner(_0x246de6){const _0x2d3255=a56_0x5878;return a56_0x440612({'text':_0x246de6,'color':_0x2d3255(0x111)})[_0x2d3255(0x107)]();}export function stopSpinner(_0x17d488,_0x427f07,_0x15d692){const _0x2596cd=a56_0x5878;_0x15d692?_0x17d488[_0x2596cd(0xfe)](_0x427f07):_0x17d488[_0x2596cd(0x102)](_0x427f07);}export async function askConfirm(_0x30d3ec){return onCancel(confirm({'message':_0x30d3ec,'theme':{'prefix':''}}));}export async function askJsUrl(_0x4d634d){const _0x1fcfb8=a56_0x5878;while(!![]){const _0x54b1af=await onCancel(input({'message':_0x1fcfb8(0x110),'default':_0x4d634d,'theme':{'prefix':''}}));if(_0x54b1af['trim']()==='')throw CliErrors[_0x1fcfb8(0x10f)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x1fcfb8(0xf7)](_0x54b1af['trim']())){console[_0x1fcfb8(0xf2)](a56_0x33eeb4[_0x1fcfb8(0x10b)](_0x1fcfb8(0xe6)));continue;}const _0x51ad4a=startSpinner(_0x1fcfb8(0xee));try{const _0x8a456e=await isUrlReachable(_0x54b1af[_0x1fcfb8(0x106)]());stopSpinner(_0x51ad4a,'JS\x20URL\x20checked',_0x8a456e);if(!_0x8a456e){console['error'](a56_0x33eeb4['red'](_0x1fcfb8(0xf8)));continue;}return _0x54b1af[_0x1fcfb8(0x106)]();}catch(_0x32381c){stopSpinner(_0x51ad4a,_0x1fcfb8(0xf4),![]);throw _0x32381c;}}}export async function askCssUrl(_0x1f3b6a){const _0x52137a=a56_0x5878;while(!![]){const _0x48cc79=await onCancel(input({'message':_0x52137a(0xef),'default':_0x1f3b6a,'theme':{'prefix':''}}));if(_0x48cc79[_0x52137a(0x106)]()==='')throw CliErrors[_0x52137a(0x10f)](_0x52137a(0xe9));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x52137a(0xf7)](_0x48cc79[_0x52137a(0x106)]())){console['error'](a56_0x33eeb4['red'](_0x52137a(0xf6)));continue;}const _0x93d0d6=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x3b061f=await isUrlReachable(_0x48cc79[_0x52137a(0x106)]());stopSpinner(_0x93d0d6,'CSS\x20URL\x20checked',_0x3b061f);if(!_0x3b061f){console[_0x52137a(0xf2)](a56_0x33eeb4[_0x52137a(0x10b)](_0x52137a(0x104)));continue;}return _0x48cc79['trim']();}catch(_0x5b20d0){stopSpinner(_0x93d0d6,_0x52137a(0xe8),![]);throw _0x5b20d0;}}}export async function selectPages(_0x1c434e,_0x12fa38,_0xc578e0){const _0x20b2b3=a56_0x5878,_0x1c4c04=_0x1c434e[_0x20b2b3(0x101)](_0x2b472c=>({'name':_0x2b472c['label']+'\x20\x20'+(_0x12fa38[_0x20b2b3(0x100)](_0x2b472c[_0x20b2b3(0x10c)])?a56_0x33eeb4[_0x20b2b3(0x109)](_0x20b2b3(0x113)):a56_0x33eeb4[_0x20b2b3(0x115)](_0x20b2b3(0xf5))),'value':_0x2b472c[_0x20b2b3(0xfa)],'checked':_0xc578e0?_0xc578e0[_0x20b2b3(0xfb)](_0x2b472c['label']):!_0x12fa38[_0x20b2b3(0x100)](_0x2b472c[_0x20b2b3(0x10c)])}));if(_0x1c4c04[_0x20b2b3(0x114)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x41beab=await onCancel(checkbox({'message':_0x20b2b3(0xff),'choices':_0x1c4c04,'loop':![],'theme':{'prefix':''}}));if(_0x41beab[_0x20b2b3(0x114)]===0x0)throw new Error(_0x20b2b3(0x105));return _0x1c434e['filter'](_0x3c94ab=>_0x41beab[_0x20b2b3(0xfb)](_0x3c94ab[_0x20b2b3(0xfa)]));}export function isInteractive(){const _0x107e77=a56_0x5878;return process[_0x107e77(0x10a)][_0x107e77(0x108)]===!![];}function a56_0x5878(_0x4dc1a2,_0x55cec2){_0x4dc1a2=_0x4dc1a2-0xe6;const _0x159384=a56_0x1593();let _0x5878d6=_0x159384[_0x4dc1a2];return _0x5878d6;}export function requireInteractive(){const _0x2f53ae=a56_0x5878;if(!isInteractive())throw new Error(_0x2f53ae(0xe7)+_0x2f53ae(0xf9));}function a56_0x1593(){const _0x5c384d=['[new]','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','test','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','label','includes','346syNqGi','catch','succeed','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','has','map','fail','name','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','No\x20menus\x20selected.','trim','start','isTTY','gray','stdin','red','path','2049607fIspcP','4235870SbSwgB','cancelled','\x20\x20JS\x20URL:','cyan','3189FdgTJk','[already\x20on\x20platform]','length','green','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','CSS\x20URL\x20check\x20failed','Cancelled.','ExitPromptError','40mDmHtH','489920qGQDRv','1788328WOMcnF','\x20\x20Checking\x20JS\x20URL\x20reachability...','\x20\x20CSS\x20URL:','3684294wVpEFB','18MFdZUc','error','682810THVWCk','JS\x20URL\x20check\x20failed'];a56_0x1593=function(){return _0x5c384d;};return a56_0x1593();}
1
+ (function(_0x4af754,_0x337a22){const _0x49a00f=a69_0x25ed,_0x2a7a58=_0x4af754();while(!![]){try{const _0x5f5932=-parseInt(_0x49a00f(0x1d7))/0x1+-parseInt(_0x49a00f(0x1cb))/0x2+-parseInt(_0x49a00f(0x1c1))/0x3*(parseInt(_0x49a00f(0x1c6))/0x4)+-parseInt(_0x49a00f(0x1e6))/0x5+-parseInt(_0x49a00f(0x1c3))/0x6+parseInt(_0x49a00f(0x1d5))/0x7+-parseInt(_0x49a00f(0x1bf))/0x8*(-parseInt(_0x49a00f(0x1c5))/0x9);if(_0x5f5932===_0x337a22)break;else _0x2a7a58['push'](_0x2a7a58['shift']());}catch(_0x334145){_0x2a7a58['push'](_0x2a7a58['shift']());}}}(a69_0x3d97,0xe728c));import a69_0x336730 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a69_0x21a94d from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0xaae84b){const _0x1a82d7=a69_0x25ed;return _0xaae84b[_0x1a82d7(0x1c0)](_0x594ef2=>{const _0x211fab=_0x1a82d7;if(_0x594ef2?.[_0x211fab(0x1dd)]===_0x211fab(0x1e5))throw CliErrors['cancelled'](_0x211fab(0x1c7));throw _0x594ef2;});}function a69_0x25ed(_0x5e3115,_0x68be32){_0x5e3115=_0x5e3115-0x1bd;const _0x3d972c=a69_0x3d97();let _0x25edbb=_0x3d972c[_0x5e3115];return _0x25edbb;}export function startSpinner(_0x13741b){const _0x2ee0fa=a69_0x25ed;return a69_0x21a94d({'text':_0x13741b,'color':_0x2ee0fa(0x1ce)})[_0x2ee0fa(0x1be)]();}export function stopSpinner(_0x25302a,_0x13a836,_0x4966e8){const _0x5cc9aa=a69_0x25ed;_0x4966e8?_0x25302a[_0x5cc9aa(0x1da)](_0x13a836):_0x25302a[_0x5cc9aa(0x1d1)](_0x13a836);}export async function askConfirm(_0x15f36e){return onCancel(confirm({'message':_0x15f36e,'theme':{'prefix':''}}));}export async function askJsUrl(_0x377a96){const _0x4460e3=a69_0x25ed;while(!![]){const _0x3fa865=await onCancel(input({'message':_0x4460e3(0x1e2),'default':_0x377a96,'theme':{'prefix':''}}));if(_0x3fa865[_0x4460e3(0x1d2)]()==='')throw CliErrors[_0x4460e3(0x1d4)](_0x4460e3(0x1c7));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x4460e3(0x1cd)](_0x3fa865[_0x4460e3(0x1d2)]())){console[_0x4460e3(0x1e7)](a69_0x336730[_0x4460e3(0x1e3)](_0x4460e3(0x1c4)));continue;}const _0x5e3454=startSpinner(_0x4460e3(0x1c8));try{const _0x41d72e=await isUrlReachable(_0x3fa865[_0x4460e3(0x1d2)]());stopSpinner(_0x5e3454,'JS\x20URL\x20checked',_0x41d72e);if(!_0x41d72e){console[_0x4460e3(0x1e7)](a69_0x336730['red'](_0x4460e3(0x1d3)));continue;}return _0x3fa865['trim']();}catch(_0x51453f){stopSpinner(_0x5e3454,_0x4460e3(0x1e8),![]);throw _0x51453f;}}}export async function askCssUrl(_0x4c818f){const _0x4c8fde=a69_0x25ed;while(!![]){const _0x4ce72c=await onCancel(input({'message':_0x4c8fde(0x1d9),'default':_0x4c818f,'theme':{'prefix':''}}));if(_0x4ce72c[_0x4c8fde(0x1d2)]()==='')throw CliErrors[_0x4c8fde(0x1d4)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x4c8fde(0x1cd)](_0x4ce72c[_0x4c8fde(0x1d2)]())){console[_0x4c8fde(0x1e7)](a69_0x336730[_0x4c8fde(0x1e3)](_0x4c8fde(0x1ea)));continue;}const _0x478054=startSpinner(_0x4c8fde(0x1d6));try{const _0x11abf0=await isUrlReachable(_0x4ce72c['trim']());stopSpinner(_0x478054,_0x4c8fde(0x1eb),_0x11abf0);if(!_0x11abf0){console['error'](a69_0x336730[_0x4c8fde(0x1e3)](_0x4c8fde(0x1e1)));continue;}return _0x4ce72c[_0x4c8fde(0x1d2)]();}catch(_0x365071){stopSpinner(_0x478054,_0x4c8fde(0x1e4),![]);throw _0x365071;}}}export async function selectPages(_0x59ac5e,_0x1fbd89,_0x6389d4){const _0x1c0b5=a69_0x25ed,_0x4342e9=_0x59ac5e['map'](_0x5819c4=>({'name':_0x5819c4[_0x1c0b5(0x1e0)]+'\x20\x20'+(_0x1fbd89[_0x1c0b5(0x1bd)](_0x5819c4['path'])?a69_0x336730[_0x1c0b5(0x1d8)](_0x1c0b5(0x1c9)):a69_0x336730[_0x1c0b5(0x1db)](_0x1c0b5(0x1de))),'value':_0x5819c4[_0x1c0b5(0x1e0)],'checked':_0x6389d4?_0x6389d4[_0x1c0b5(0x1df)](_0x5819c4[_0x1c0b5(0x1e0)]):!_0x1fbd89['has'](_0x5819c4[_0x1c0b5(0x1cf)])}));if(_0x4342e9[_0x1c0b5(0x1d0)]===0x0)throw new Error(_0x1c0b5(0x1cc));const _0x36c4db=await onCancel(checkbox({'message':_0x1c0b5(0x1ca),'choices':_0x4342e9,'loop':![],'theme':{'prefix':''}}));if(_0x36c4db['length']===0x0)throw new Error(_0x1c0b5(0x1dc));return _0x59ac5e[_0x1c0b5(0x1c2)](_0x7518d6=>_0x36c4db[_0x1c0b5(0x1df)](_0x7518d6[_0x1c0b5(0x1e0)]));}function a69_0x3d97(){const _0x3c6dd6=['catch','120CnmANH','filter','2242506ZuhDWW','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','41735637VpljOo','3028XXXLMu','Cancelled.','\x20\x20Checking\x20JS\x20URL\x20reachability...','[already\x20on\x20platform]','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','3528674WuHVOi','No\x20local\x20pages\x20found.','test','cyan','path','length','fail','trim','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','cancelled','2502451RfwRcG','\x20\x20Checking\x20CSS\x20URL\x20reachability...','717190dVSJEV','gray','\x20\x20CSS\x20URL:','succeed','green','No\x20menus\x20selected.','name','[new]','includes','label','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20JS\x20URL:','red','CSS\x20URL\x20check\x20failed','ExitPromptError','5812000nuVitE','error','JS\x20URL\x20check\x20failed','stdin','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','CSS\x20URL\x20checked','has','start','8FWYJJh'];a69_0x3d97=function(){return _0x3c6dd6;};return a69_0x3d97();}export function isInteractive(){const _0x137c10=a69_0x25ed;return process[_0x137c10(0x1e9)]['isTTY']===!![];}export function requireInteractive(){if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
@@ -1 +1 @@
1
- const a57_0x242cf6=a57_0x5449;(function(_0x11c3ab,_0x3d5482){const _0x4e3c32=a57_0x5449,_0x53afd8=_0x11c3ab();while(!![]){try{const _0x4bc913=-parseInt(_0x4e3c32(0x1ac))/0x1*(-parseInt(_0x4e3c32(0x199))/0x2)+parseInt(_0x4e3c32(0x195))/0x3+-parseInt(_0x4e3c32(0x1a1))/0x4+parseInt(_0x4e3c32(0x19b))/0x5*(-parseInt(_0x4e3c32(0x1a0))/0x6)+parseInt(_0x4e3c32(0x1a5))/0x7*(parseInt(_0x4e3c32(0x19e))/0x8)+parseInt(_0x4e3c32(0x1a6))/0x9+parseInt(_0x4e3c32(0x194))/0xa*(-parseInt(_0x4e3c32(0x1a7))/0xb);if(_0x4bc913===_0x3d5482)break;else _0x53afd8['push'](_0x53afd8['shift']());}catch(_0x163fce){_0x53afd8['push'](_0x53afd8['shift']());}}}(a57_0x24b4,0x9fa11));function a57_0x24b4(){const _0x3827d6=['index.tsx','42334JdydEp','cwd','35020HTdwXl','src/pages','replaceAll','1623032cLDHAR','join','708LMZFRY','981996jvdsgO','replace','split','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','7RjwlEm','6232374pYiRgG','99NtsbHX','forEach','endsWith','trim','isDirectory','51QHsciF','570490AtZDIN','793113MbqrqR','match','slice'];a57_0x24b4=function(){return _0x3827d6;};return a57_0x24b4();}import{readdirSync,statSync,readFileSync}from'fs';function a57_0x5449(_0x347488,_0x515256){_0x347488=_0x347488-0x194;const _0x24b44b=a57_0x24b4();let _0x5449a0=_0x24b44b[_0x347488];return _0x5449a0;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a57_0x242cf6(0x19a)](),a57_0x242cf6(0x19c));export function extractTitleFromComment(_0x35cc1f){const _0xf351f9=a57_0x242cf6;try{const _0x5a3dd4=readFileSync(_0x35cc1f,'utf-8'),_0xb342b6=_0x5a3dd4['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0xb342b6&&_0xb342b6[0x1]){const _0x43b013=_0xb342b6[0x1],_0x5172a8=_0x43b013[_0xf351f9(0x196)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x5172a8&&_0x5172a8[0x1])return _0x5172a8[0x1][_0xf351f9(0x1aa)]();}let _0x797a49=null;const _0xdfbcc4=_0x5a3dd4[_0xf351f9(0x196)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0xdfbcc4&&_0xdfbcc4[0x1]&&(_0x797a49=_0xdfbcc4[0x1]);if(!_0x797a49){const _0x594ced=_0x5a3dd4[_0xf351f9(0x196)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x594ced&&_0x594ced[0x1]&&(_0x797a49=_0x594ced[0x1]);}if(_0x797a49){const _0x3325fb=new RegExp('\x5cb'+_0x797a49+_0xf351f9(0x1a4)),_0x1cbcd1=_0x5a3dd4[_0xf351f9(0x196)](_0x3325fb);if(_0x1cbcd1&&_0x1cbcd1[0x1])return _0x1cbcd1[0x1];return _0x797a49;}return null;}catch(_0x5efb86){return null;}}export function getLocalPages(_0x3e0f51=pagesDir,_0x2ab72e=pagesDir){const _0x133b3c=a57_0x242cf6;let _0x39816d=[];const _0x3bf148=readdirSync(_0x3e0f51);return _0x3bf148[_0x133b3c(0x1a8)](_0x147f48=>{const _0x273f15=_0x133b3c,_0x3fac71=join(_0x3e0f51,_0x147f48),_0x1ea6cf=statSync(_0x3fac71);if(_0x1ea6cf&&_0x1ea6cf[_0x273f15(0x1ab)]())_0x39816d=_0x39816d['concat'](getLocalPages(_0x3fac71,_0x2ab72e));else{if(_0x147f48[_0x273f15(0x1a9)]('.tsx')){let _0x43a7f5=relative(_0x2ab72e,_0x3fac71);_0x43a7f5[_0x273f15(0x1a9)](_0x273f15(0x198))?_0x43a7f5=_0x43a7f5[_0x273f15(0x1a2)](/index\.tsx$/,''):_0x43a7f5=_0x43a7f5['replace'](/\.tsx$/,'');_0x43a7f5[_0x273f15(0x1a9)](sep)&&(_0x43a7f5=_0x43a7f5[_0x273f15(0x197)](0x0,-0x1));const _0x165f7f=_0x43a7f5[_0x273f15(0x1a3)](sep)[_0x273f15(0x19f)]('/'),_0x31029d=extractTitleFromComment(_0x3fac71),_0x201d22=_0x31029d||_0x165f7f;_0x39816d['push']({'path':_0x165f7f[_0x273f15(0x19d)]('$',':'),'label':_0x201d22});}}}),_0x39816d['filter'](_0x565f67=>_0x565f67['path']!=='');}
1
+ const a70_0x4f63eb=a70_0x5aca;(function(_0xdb6e04,_0x599bcf){const _0xf0859c=a70_0x5aca,_0x49ba3b=_0xdb6e04();while(!![]){try{const _0x30a054=-parseInt(_0xf0859c(0x7c))/0x1*(parseInt(_0xf0859c(0x7b))/0x2)+-parseInt(_0xf0859c(0x6e))/0x3*(parseInt(_0xf0859c(0x70))/0x4)+parseInt(_0xf0859c(0x72))/0x5*(-parseInt(_0xf0859c(0x7f))/0x6)+parseInt(_0xf0859c(0x71))/0x7+parseInt(_0xf0859c(0x77))/0x8*(-parseInt(_0xf0859c(0x75))/0x9)+parseInt(_0xf0859c(0x6f))/0xa+parseInt(_0xf0859c(0x85))/0xb;if(_0x30a054===_0x599bcf)break;else _0x49ba3b['push'](_0x49ba3b['shift']());}catch(_0x25ae94){_0x49ba3b['push'](_0x49ba3b['shift']());}}}(a70_0x3418,0xebbd7));import{readdirSync,statSync,readFileSync}from'fs';function a70_0x5aca(_0x2d6f06,_0x2fc2bc){_0x2d6f06=_0x2d6f06-0x6a;const _0x34181b=a70_0x3418();let _0x5aca8d=_0x34181b[_0x2d6f06];return _0x5aca8d;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a70_0x4f63eb(0x81)](),a70_0x4f63eb(0x7d));function a70_0x3418(){const _0x5a8f7a=['9021880brFAcK','609572OwXkcw','4205054CmTFdS','586205NqqMmg','path','forEach','144iwFRfo','join','867304XSmjCA','replaceAll','concat','split','687298gqzoBG','4DTpaiU','src/pages','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','66YwPNPx','trim','cwd','.tsx','filter','endsWith','44153219FOnLpx','match','utf-8','index.tsx','replace','3lsTXvx'];a70_0x3418=function(){return _0x5a8f7a;};return a70_0x3418();}export function extractTitleFromComment(_0x50e3de){const _0x164985=a70_0x4f63eb;try{const _0x2ab7f7=readFileSync(_0x50e3de,_0x164985(0x6b)),_0x489e1f=_0x2ab7f7[_0x164985(0x6a)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x489e1f&&_0x489e1f[0x1]){const _0x267dca=_0x489e1f[0x1],_0x74a036=_0x267dca[_0x164985(0x6a)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x74a036&&_0x74a036[0x1])return _0x74a036[0x1][_0x164985(0x80)]();}let _0x3612ba=null;const _0x17f53c=_0x2ab7f7[_0x164985(0x6a)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x17f53c&&_0x17f53c[0x1]&&(_0x3612ba=_0x17f53c[0x1]);if(!_0x3612ba){const _0x1f6ea5=_0x2ab7f7[_0x164985(0x6a)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x1f6ea5&&_0x1f6ea5[0x1]&&(_0x3612ba=_0x1f6ea5[0x1]);}if(_0x3612ba){const _0x384a19=new RegExp('\x5cb'+_0x3612ba+_0x164985(0x7e)),_0x11979f=_0x2ab7f7[_0x164985(0x6a)](_0x384a19);if(_0x11979f&&_0x11979f[0x1])return _0x11979f[0x1];return _0x3612ba;}return null;}catch(_0x54e33f){return null;}}export function getLocalPages(_0x49f2da=pagesDir,_0x9b3ac3=pagesDir){const _0x15a2c1=a70_0x4f63eb;let _0x7dd58c=[];const _0x32efbe=readdirSync(_0x49f2da);return _0x32efbe[_0x15a2c1(0x74)](_0x402387=>{const _0x11964b=_0x15a2c1,_0x4ac86d=join(_0x49f2da,_0x402387),_0x20df3b=statSync(_0x4ac86d);if(_0x20df3b&&_0x20df3b['isDirectory']())_0x7dd58c=_0x7dd58c[_0x11964b(0x79)](getLocalPages(_0x4ac86d,_0x9b3ac3));else{if(_0x402387[_0x11964b(0x84)](_0x11964b(0x82))){let _0x45bc56=relative(_0x9b3ac3,_0x4ac86d);_0x45bc56[_0x11964b(0x84)](_0x11964b(0x6c))?_0x45bc56=_0x45bc56['replace'](/index\.tsx$/,''):_0x45bc56=_0x45bc56[_0x11964b(0x6d)](/\.tsx$/,'');_0x45bc56['endsWith'](sep)&&(_0x45bc56=_0x45bc56['slice'](0x0,-0x1));const _0x3db1b9=_0x45bc56[_0x11964b(0x7a)](sep)[_0x11964b(0x76)]('/'),_0x2c1ee0=extractTitleFromComment(_0x4ac86d),_0x2c033b=_0x2c1ee0||_0x3db1b9;_0x7dd58c['push']({'path':_0x3db1b9[_0x11964b(0x78)]('$',':'),'label':_0x2c033b});}}}),_0x7dd58c[_0x15a2c1(0x83)](_0x2264b9=>_0x2264b9[_0x15a2c1(0x73)]!=='');}
@@ -1 +1 @@
1
- function a58_0xeadc(_0x13d1fa,_0x4827ad){_0x13d1fa=_0x13d1fa-0x68;const _0x175ed8=a58_0x175e();let _0xeadc43=_0x175ed8[_0x13d1fa];return _0xeadc43;}(function(_0x4960c9,_0x4399d9){const _0x1a1809=a58_0xeadc,_0x4b535f=_0x4960c9();while(!![]){try{const _0xfdb5d7=-parseInt(_0x1a1809(0x80))/0x1*(-parseInt(_0x1a1809(0x76))/0x2)+parseInt(_0x1a1809(0x7f))/0x3+-parseInt(_0x1a1809(0x6b))/0x4*(parseInt(_0x1a1809(0x7e))/0x5)+parseInt(_0x1a1809(0x6c))/0x6*(parseInt(_0x1a1809(0x70))/0x7)+parseInt(_0x1a1809(0x6f))/0x8+parseInt(_0x1a1809(0x7d))/0x9+parseInt(_0x1a1809(0x69))/0xa*(-parseInt(_0x1a1809(0x75))/0xb);if(_0xfdb5d7===_0x4399d9)break;else _0x4b535f['push'](_0x4b535f['shift']());}catch(_0x31dedd){_0x4b535f['push'](_0x4b535f['shift']());}}}(a58_0x175e,0xd632c));function a58_0x175e(){const _0x121648=['map','resources','status','12861801aAKAzh','25eOBliD','5079933UtPJah','100969RBbdBB','filter','errors','length','690860xHkvLJ','No\x20local\x20pages\x20matched\x20labels:\x20','332476BqxyLL','301422BatumT','JS\x20URL\x20is\x20unreachable','has','333504DlOAPY','14UfkqwK','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','trim','path','find','330TiNMNn','2WVgSxO','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','label','push'];a58_0x175e=function(){return _0x121648;};return a58_0x175e();}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';export function validateJsUrl(_0x2df7e5){const _0x32eb14=a58_0xeadc,_0x1bfb5f=[];return!isValidJsHttpsUrl(_0x2df7e5)&&_0x1bfb5f[_0x32eb14(0x79)](_0x32eb14(0x77)),{'ok':_0x1bfb5f[_0x32eb14(0x68)]===0x0,'errors':_0x1bfb5f};}export function validateCssUrl(_0x1a8e88){const _0xb41cae=a58_0xeadc,_0x2a82a6=[];return!isValidCssHttpsUrl(_0x1a8e88)&&_0x2a82a6[_0xb41cae(0x79)](_0xb41cae(0x71)),{'ok':_0x2a82a6['length']===0x0,'errors':_0x2a82a6};}export async function validateJsUrlReachable(_0x5e64aa){const _0x21d678=a58_0xeadc,_0x70d889=validateJsUrl(_0x5e64aa);if(!_0x70d889['ok'])return _0x70d889;const _0x4d14b0=await isUrlReachable(_0x5e64aa);if(!_0x4d14b0)_0x70d889[_0x21d678(0x82)][_0x21d678(0x79)](_0x21d678(0x6d));return{'ok':_0x70d889['errors'][_0x21d678(0x68)]===0x0,'errors':_0x70d889[_0x21d678(0x82)]};}export async function validateCssUrlReachable(_0x572501){const _0x259d47=a58_0xeadc,_0x46cc49=validateCssUrl(_0x572501);if(!_0x46cc49['ok'])return _0x46cc49;const _0x2fd161=await isUrlReachable(_0x572501);if(!_0x2fd161)_0x46cc49[_0x259d47(0x82)][_0x259d47(0x79)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x46cc49[_0x259d47(0x82)][_0x259d47(0x68)]===0x0,'errors':_0x46cc49['errors']};}export function buildCompareRows(_0x5e50e5,_0x3e863a){const _0x44aa81=a58_0xeadc;return _0x5e50e5['map'](_0x511a52=>({'label':_0x511a52['label'],'path':_0x511a52['path'],'local':!![],'online':_0x3e863a[_0x44aa81(0x6e)](_0x511a52[_0x44aa81(0x73)])}));}export function filterNewPages(_0x12c3cd,_0x1667e9,_0x5e9398){const _0x5d5540=a58_0xeadc;if(_0x5e9398&&_0x5e9398['length']>0x0){const _0x14335a=new Set(_0x5e9398[_0x5d5540(0x7a)](_0x357de0=>_0x357de0[_0x5d5540(0x72)]())),_0x522ae4=_0x12c3cd['filter'](_0x6f4894=>_0x14335a[_0x5d5540(0x6e)](_0x6f4894[_0x5d5540(0x78)]));if(_0x522ae4['length']===0x0)throw new Error(_0x5d5540(0x6a)+[..._0x14335a]['join'](',\x20'));return _0x522ae4;}return _0x12c3cd[_0x5d5540(0x81)](_0x9d2257=>!_0x1667e9[_0x5d5540(0x6e)](_0x9d2257[_0x5d5540(0x73)]));}export function filterPagesByLabels(_0x3b5c4f,_0x7ed82c){const _0x1163ae=a58_0xeadc,_0x26b4b2=[],_0xb57b03=[];for(const _0x4b3073 of _0x7ed82c){const _0x117f05=_0x4b3073[_0x1163ae(0x72)](),_0x557d18=_0x3b5c4f[_0x1163ae(0x74)](_0x1be206=>_0x1be206['label']===_0x117f05);if(_0x557d18)_0x26b4b2[_0x1163ae(0x79)](_0x557d18);else _0xb57b03[_0x1163ae(0x79)](_0x4b3073);}return{'matched':_0x26b4b2,'unmatched':_0xb57b03};}export async function doCreateMenus(_0x540592,_0x294ec0,_0x2523b2,_0x17f237){const _0x4541ea=a58_0xeadc;return await createMenus(_0x540592,_0x294ec0,_0x2523b2,_0x17f237),{'created':_0x2523b2[_0x4541ea(0x68)],'failed':0x0,'labels':_0x2523b2['map'](_0x42a216=>_0x42a216[_0x4541ea(0x78)])};}export function filterMenusWithResources(_0x452fb8){const _0x41428a=a58_0xeadc;return _0x452fb8['filter'](_0x313d9b=>_0x313d9b[_0x41428a(0x7b)][_0x41428a(0x68)]>0x0);}export async function doUpdateCdnUrls(_0x3ebac0,_0x565a05,_0x3279d9,_0x1819a7){const _0xe4b3d0=a58_0xeadc,_0x3ca1bc=_0x3279d9[_0xe4b3d0(0x81)](_0x249917=>_0x249917['resources'][_0xe4b3d0(0x68)]>0x0),_0x2a1fe3=await Promise['allSettled'](_0x3ca1bc[_0xe4b3d0(0x7a)](_0x877371=>updateMenuCdnUrl(_0x3ebac0,_0x565a05,{'id':_0x877371['id'],'label':_0x877371[_0xe4b3d0(0x78)],'path':_0x877371[_0xe4b3d0(0x73)],'resources':_0x1819a7}))),_0x50396b=_0x2a1fe3[_0xe4b3d0(0x81)](_0x1f75c2=>_0x1f75c2[_0xe4b3d0(0x7c)]==='rejected')[_0xe4b3d0(0x68)];return{'updated':_0x3ca1bc['length']-_0x50396b,'failed':_0x50396b};}export async function fetchMenuData(_0x4a7112,_0x44a5e5){const _0x5a518e=a58_0xeadc,_0x10a66a=getLocalPages(),_0x3dda72=await getOnlineMenuList(_0x4a7112,_0x44a5e5),_0x10e06d=new Set(_0x3dda72[_0x5a518e(0x7a)](_0x17b57a=>_0x17b57a[_0x5a518e(0x73)]));return{'localPages':_0x10a66a,'onlineMenuList':_0x3dda72,'onlinePaths':_0x10e06d};}export async function fetchOnlineMenuList(_0xe051f0,_0xcbf311){return getOnlineMenuList(_0xe051f0,_0xcbf311);}
1
+ (function(_0x264921,_0x408151){const _0x26ff01=a71_0x3c81,_0x6e8db9=_0x264921();while(!![]){try{const _0x21e7d6=-parseInt(_0x26ff01(0x1d6))/0x1+-parseInt(_0x26ff01(0x1db))/0x2*(-parseInt(_0x26ff01(0x1c7))/0x3)+parseInt(_0x26ff01(0x1cb))/0x4*(-parseInt(_0x26ff01(0x1cc))/0x5)+parseInt(_0x26ff01(0x1c6))/0x6+-parseInt(_0x26ff01(0x1dd))/0x7*(parseInt(_0x26ff01(0x1d2))/0x8)+parseInt(_0x26ff01(0x1c4))/0x9+parseInt(_0x26ff01(0x1c5))/0xa;if(_0x21e7d6===_0x408151)break;else _0x6e8db9['push'](_0x6e8db9['shift']());}catch(_0x32f1cb){_0x6e8db9['push'](_0x6e8db9['shift']());}}}(a71_0x41ac,0x9886d));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';function a71_0x41ac(){const _0x1ea60b=['56TPpdSC','trim','has','errors','487901CNYUZJ','join','path','length','allSettled','2389820OLCPKf','resources','1093701FCURRS','JS\x20URL\x20is\x20unreachable','4217967GKeFuF','5365980xyqjMl','5832924eDxmZC','3SgOTCB','No\x20local\x20pages\x20matched\x20labels:\x20','rejected','CSS\x20URL\x20is\x20unreachable','8mkSBue','2414935yEiwjE','label','status','map','push','filter'];a71_0x41ac=function(){return _0x1ea60b;};return a71_0x41ac();}function a71_0x3c81(_0xa008f3,_0x58eb26){_0xa008f3=_0xa008f3-0x1c4;const _0x41ac84=a71_0x41ac();let _0x3c81d1=_0x41ac84[_0xa008f3];return _0x3c81d1;}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x27a1f2){const _0x32829f=a71_0x3c81,_0xa71ae3=[];return!isValidJsHttpsUrl(_0x27a1f2)&&_0xa71ae3[_0x32829f(0x1d0)]('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0xa71ae3[_0x32829f(0x1d9)]===0x0,'errors':_0xa71ae3};}export function validateCssUrl(_0xe6102a){const _0x5d124f=a71_0x3c81,_0x211d9a=[];return!isValidCssHttpsUrl(_0xe6102a)&&_0x211d9a[_0x5d124f(0x1d0)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x211d9a['length']===0x0,'errors':_0x211d9a};}export async function validateJsUrlReachable(_0x5e473f){const _0x1f96a2=a71_0x3c81,_0x417952=validateJsUrl(_0x5e473f);if(!_0x417952['ok'])return _0x417952;const _0x4e1a06=await isUrlReachable(_0x5e473f);if(!_0x4e1a06)_0x417952['errors'][_0x1f96a2(0x1d0)](_0x1f96a2(0x1de));return{'ok':_0x417952['errors']['length']===0x0,'errors':_0x417952['errors']};}export async function validateCssUrlReachable(_0x1e1a17){const _0x5cfc84=a71_0x3c81,_0x4c4925=validateCssUrl(_0x1e1a17);if(!_0x4c4925['ok'])return _0x4c4925;const _0xda633a=await isUrlReachable(_0x1e1a17);if(!_0xda633a)_0x4c4925[_0x5cfc84(0x1d5)][_0x5cfc84(0x1d0)](_0x5cfc84(0x1ca));return{'ok':_0x4c4925['errors'][_0x5cfc84(0x1d9)]===0x0,'errors':_0x4c4925['errors']};}export function buildCompareRows(_0x268be2,_0x4a560b){const _0x29234e=a71_0x3c81;return _0x268be2[_0x29234e(0x1cf)](_0x8e39d8=>({'label':_0x8e39d8[_0x29234e(0x1cd)],'path':_0x8e39d8[_0x29234e(0x1d8)],'local':!![],'online':_0x4a560b[_0x29234e(0x1d4)](_0x8e39d8[_0x29234e(0x1d8)])}));}export function filterNewPages(_0x21ad4b,_0x4f349a,_0x19ec03){const _0x18fedb=a71_0x3c81;if(_0x19ec03&&_0x19ec03[_0x18fedb(0x1d9)]>0x0){const _0x5bfb5e=new Set(_0x19ec03[_0x18fedb(0x1cf)](_0x26cde8=>_0x26cde8[_0x18fedb(0x1d3)]())),_0x2c9425=_0x21ad4b[_0x18fedb(0x1d1)](_0x36c7a6=>_0x5bfb5e[_0x18fedb(0x1d4)](_0x36c7a6['label']));if(_0x2c9425['length']===0x0)throw new Error(_0x18fedb(0x1c8)+[..._0x5bfb5e][_0x18fedb(0x1d7)](',\x20'));return _0x2c9425;}return _0x21ad4b[_0x18fedb(0x1d1)](_0x4aad20=>!_0x4f349a['has'](_0x4aad20[_0x18fedb(0x1d8)]));}export function filterPagesByLabels(_0x197d22,_0x29d561){const _0x3afbc4=a71_0x3c81,_0x5ba972=[],_0x225923=[];for(const _0x145998 of _0x29d561){const _0x4de4fb=_0x145998['trim'](),_0x540353=_0x197d22['find'](_0x595a26=>_0x595a26['label']===_0x4de4fb);if(_0x540353)_0x5ba972[_0x3afbc4(0x1d0)](_0x540353);else _0x225923['push'](_0x145998);}return{'matched':_0x5ba972,'unmatched':_0x225923};}export async function doCreateMenus(_0x51b06c,_0x3133d6,_0x520c81,_0x5da384){const _0x1b24e0=a71_0x3c81;return await createMenus(_0x51b06c,_0x3133d6,_0x520c81,_0x5da384),{'created':_0x520c81[_0x1b24e0(0x1d9)],'failed':0x0,'labels':_0x520c81[_0x1b24e0(0x1cf)](_0x1feaac=>_0x1feaac['label'])};}export function filterMenusWithResources(_0x4653a5){const _0x5c171f=a71_0x3c81;return _0x4653a5['filter'](_0x22d812=>_0x22d812[_0x5c171f(0x1dc)][_0x5c171f(0x1d9)]>0x0);}export async function doUpdateCdnUrls(_0x5f3407,_0x303d3d,_0x5257bc,_0x19bcd3){const _0x409fba=a71_0x3c81,_0x5d8ab1=_0x5257bc['filter'](_0x4c01e3=>_0x4c01e3[_0x409fba(0x1dc)]['length']>0x0),_0x5d41c5=await Promise[_0x409fba(0x1da)](_0x5d8ab1[_0x409fba(0x1cf)](_0x508cb7=>updateMenuCdnUrl(_0x5f3407,_0x303d3d,{'id':_0x508cb7['id'],'label':_0x508cb7[_0x409fba(0x1cd)],'path':_0x508cb7['path'],'resources':_0x19bcd3}))),_0x2ef916=_0x5d41c5[_0x409fba(0x1d1)](_0x3d6d61=>_0x3d6d61[_0x409fba(0x1ce)]===_0x409fba(0x1c9))[_0x409fba(0x1d9)];return{'updated':_0x5d8ab1[_0x409fba(0x1d9)]-_0x2ef916,'failed':_0x2ef916};}export async function fetchMenuData(_0x27d6f7,_0x44b8aa){const _0x88f1f2=a71_0x3c81,_0x12ab42=getLocalPages(),_0x225753=await getOnlineMenuList(_0x27d6f7,_0x44b8aa),_0x26186b=new Set(_0x225753[_0x88f1f2(0x1cf)](_0x34af4f=>_0x34af4f[_0x88f1f2(0x1d8)]));return{'localPages':_0x12ab42,'onlineMenuList':_0x225753,'onlinePaths':_0x26186b};}export async function fetchOnlineMenuList(_0x2385b5,_0x2e1258){return getOnlineMenuList(_0x2385b5,_0x2e1258);}
@@ -1 +1 @@
1
- (function(_0x4c713c,_0x4de7ef){const _0x3bbb33=a59_0x50d6,_0x2fbab9=_0x4c713c();while(!![]){try{const _0x26e17d=parseInt(_0x3bbb33(0x20e))/0x1+parseInt(_0x3bbb33(0x1fd))/0x2+-parseInt(_0x3bbb33(0x21a))/0x3*(-parseInt(_0x3bbb33(0x206))/0x4)+parseInt(_0x3bbb33(0x203))/0x5+-parseInt(_0x3bbb33(0x218))/0x6+-parseInt(_0x3bbb33(0x20c))/0x7*(parseInt(_0x3bbb33(0x215))/0x8)+-parseInt(_0x3bbb33(0x1fe))/0x9;if(_0x26e17d===_0x4de7ef)break;else _0x2fbab9['push'](_0x2fbab9['shift']());}catch(_0x2fb92c){_0x2fbab9['push'](_0x2fbab9['shift']());}}}(a59_0x32ce,0x40721));import{getApiDomain}from'../../../constant/domain.js';import{getEnv}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';function a59_0x32ce(){const _0x2d8b77=['children','length','/smartapi/menu/create','get-online-menu-list','POST','Creating\x20menu:\x20','update-menu-cdn-url','Menu\x20created\x20successfully:\x20','123644QuMGoA','97497XjTugv','Batch\x20menu\x20creation\x20completed,\x20total\x20','Menu\x20assets\x20synced:\x20','create-menu','\x20online\x20menus\x20successfully','721580pvJKmM','create-menus','Server\x20returned\x20empty\x20menu\x20list','416EjqgPB','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','isArray','extend','Updating\x20menu\x20asset\x20links:\x20','info','91VQHUuK','stringify','169425CiZcQf','/smartapi/menu/update','map','flat','Update\x20menu\x20assets\x20\x22','/smartapi/menu/find?appCode=','Start\x20batch\x20menu\x20creation,\x20total\x20','49064DobEDP','import','path','324624RxXXZY','label','954WaCtOj','procode','push','resources','online','Fetched\x20','Create\x20menu\x20\x22'];a59_0x32ce=function(){return _0x2d8b77;};return a59_0x32ce();}export async function getOnlineMenuList(_0x4b0742,_0x50baef){const _0x329c52=a59_0x50d6,_0x540762=getEnv();logger[_0x329c52(0x20b)]('get-online-menu-list',_0x540762===_0x329c52(0x21e)?_0x329c52(0x207)+_0x4b0742+')':'Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20'+_0x4b0742+')');const _0x3d77db=await platformFetch(getApiDomain()+_0x329c52(0x213)+_0x4b0742,{'cookie':_0x50baef,'label':'Fetch\x20menu\x20list'});if(!_0x3d77db)return logger[_0x329c52(0x20b)](_0x329c52(0x1f8),_0x329c52(0x205)),[];return logger['info'](_0x329c52(0x1f8),_0x329c52(0x21f)+_0x3d77db['length']+_0x329c52(0x202)),_0x3d77db[_0x329c52(0x210)](flattenMenuItem)[_0x329c52(0x211)]();}function flattenMenuItem(_0x4aed5a){const _0x2c069e=a59_0x50d6;let _0x297a1a=[];try{if(_0x4aed5a[_0x2c069e(0x209)]?.[_0x2c069e(0x21d)]){const _0xc25b52=JSON['parse'](_0x4aed5a[_0x2c069e(0x209)][_0x2c069e(0x21d)]);if(Array[_0x2c069e(0x208)](_0xc25b52))_0x297a1a=_0xc25b52;}}catch{}const _0x3fb1cf=[{'id':_0x4aed5a['id'],'path':_0x4aed5a[_0x2c069e(0x217)],'label':_0x4aed5a[_0x2c069e(0x219)],'resources':_0x297a1a}];if(_0x4aed5a[_0x2c069e(0x1f5)]&&_0x4aed5a[_0x2c069e(0x1f5)]['length']>0x0)for(const _0x35dd5e of _0x4aed5a['children']){_0x3fb1cf[_0x2c069e(0x21c)](...flattenMenuItem(_0x35dd5e));}return _0x3fb1cf;}export async function createMenu(_0x1432c1,_0x3cf151,_0x49cbdb){const _0x56cf64=a59_0x50d6;logger[_0x56cf64(0x20b)](_0x56cf64(0x201),_0x56cf64(0x1fa)+_0x49cbdb[_0x56cf64(0x219)]+'\x20('+_0x49cbdb[_0x56cf64(0x217)]+')');const _0x4fe746={'appCode':_0x1432c1,'type':_0x56cf64(0x21b),'sort':0x0,'extend':{'loadScriptMode':_0x56cf64(0x216),'resources':_0x49cbdb[_0x56cf64(0x21d)]?JSON['stringify'](_0x49cbdb[_0x56cf64(0x21d)]):undefined},..._0x49cbdb};await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':_0x56cf64(0x1f9),'body':_0x4fe746,'cookie':_0x3cf151,'label':_0x56cf64(0x1f4)+_0x49cbdb[_0x56cf64(0x219)]+'\x22'}),logger['info'](_0x56cf64(0x201),'Menu\x20created\x20successfully:\x20'+_0x49cbdb[_0x56cf64(0x219)]);}function a59_0x50d6(_0x4ace39,_0x3f2269){_0x4ace39=_0x4ace39-0x1f4;const _0x32ce18=a59_0x32ce();let _0x50d694=_0x32ce18[_0x4ace39];return _0x50d694;}async function createSingleMenu(_0x318622,_0xfcc356,_0x143a57,_0x23d868){const _0xb32af5=a59_0x50d6,_0x24b2d={'appCode':_0x318622,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0xb32af5(0x216),'resources':_0x23d868?JSON['stringify'](_0x23d868):undefined},'label':_0x143a57['label'],'path':_0x143a57[_0xb32af5(0x217)]};await platformFetch(getApiDomain()+_0xb32af5(0x1f7),{'method':_0xb32af5(0x1f9),'body':_0x24b2d,'cookie':_0xfcc356,'label':'Create\x20menu\x20\x22'+_0x143a57[_0xb32af5(0x219)]+'\x22'}),logger['info'](_0xb32af5(0x201),_0xb32af5(0x1fc)+_0x143a57[_0xb32af5(0x219)]);}export async function createMenus(_0x13b7b5,_0xd1d6da,_0x368452,_0x555860){const _0x3aac88=a59_0x50d6;logger[_0x3aac88(0x20b)](_0x3aac88(0x204),_0x3aac88(0x214)+_0x368452[_0x3aac88(0x1f6)]),await Promise['all'](_0x368452[_0x3aac88(0x210)](_0x280f25=>createSingleMenu(_0x13b7b5,_0xd1d6da,_0x280f25,_0x555860))),logger[_0x3aac88(0x20b)]('create-menus',_0x3aac88(0x1ff)+_0x368452['length']);}export async function updateMenuCdnUrl(_0xd8ea98,_0x1e834f,_0x4c55bc){const _0x15d01a=a59_0x50d6;logger[_0x15d01a(0x20b)](_0x15d01a(0x1fb),_0x15d01a(0x20a)+_0x4c55bc['label']+'\x20('+_0x4c55bc[_0x15d01a(0x217)]+')');const _0x54a624={'id':_0x4c55bc['id'],'appCode':_0xd8ea98,'extend':{'loadScriptMode':'import','resources':_0x4c55bc[_0x15d01a(0x21d)]?JSON[_0x15d01a(0x20d)](_0x4c55bc[_0x15d01a(0x21d)]):undefined}};await platformFetch(getApiDomain()+_0x15d01a(0x20f),{'method':_0x15d01a(0x1f9),'body':_0x54a624,'cookie':_0x1e834f,'label':_0x15d01a(0x212)+_0x4c55bc[_0x15d01a(0x219)]+'\x22'}),logger['info'](_0x15d01a(0x1fb),_0x15d01a(0x200)+_0x4c55bc[_0x15d01a(0x219)],undefined);}
1
+ (function(_0x5d28b6,_0x144c12){const _0x330334=a72_0x312d,_0x58d2df=_0x5d28b6();while(!![]){try{const _0x424c02=parseInt(_0x330334(0x6e))/0x1*(-parseInt(_0x330334(0x76))/0x2)+-parseInt(_0x330334(0x8c))/0x3*(parseInt(_0x330334(0x75))/0x4)+-parseInt(_0x330334(0x83))/0x5+-parseInt(_0x330334(0x85))/0x6*(parseInt(_0x330334(0x78))/0x7)+-parseInt(_0x330334(0x71))/0x8+parseInt(_0x330334(0x7b))/0x9*(parseInt(_0x330334(0x87))/0xa)+parseInt(_0x330334(0x81))/0xb;if(_0x424c02===_0x144c12)break;else _0x58d2df['push'](_0x58d2df['shift']());}catch(_0x2acd4b){_0x58d2df['push'](_0x58d2df['shift']());}}}(a72_0x5256,0x21de8));import{getApiDomain}from'../../../constant/domain.js';function a72_0x312d(_0x21b94f,_0x284f12){_0x21b94f=_0x21b94f-0x6a;const _0x525661=a72_0x5256();let _0x312d61=_0x525661[_0x21b94f];return _0x312d61;}import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x229cc4,_0x36183c){const _0x5b26f7=a72_0x312d,_0x53d2a0=getEnv();logger[_0x5b26f7(0x80)]('get-online-menu-list',isProduction(_0x53d2a0)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x229cc4+')':_0x5b26f7(0x73)+_0x229cc4+')');const _0x420d7d=await platformFetch(getApiDomain()+'/smartapi/menu/find?appCode='+_0x229cc4,{'cookie':_0x36183c,'label':_0x5b26f7(0x6d)});if(!_0x420d7d)return logger[_0x5b26f7(0x80)](_0x5b26f7(0x92),_0x5b26f7(0x70)),[];return logger[_0x5b26f7(0x80)](_0x5b26f7(0x92),_0x5b26f7(0x89)+_0x420d7d[_0x5b26f7(0x8e)]+'\x20online\x20menus\x20successfully'),_0x420d7d['map'](flattenMenuItem)[_0x5b26f7(0x86)]();}function flattenMenuItem(_0x11cbc3){const _0x5afdc7=a72_0x312d;let _0x22175e=[];try{if(_0x11cbc3[_0x5afdc7(0x7e)]?.[_0x5afdc7(0x6f)]){const _0x4839a5=JSON[_0x5afdc7(0x77)](_0x11cbc3['extend'][_0x5afdc7(0x6f)]);if(Array[_0x5afdc7(0x6a)](_0x4839a5))_0x22175e=_0x4839a5;}}catch{}const _0x19f855=[{'id':_0x11cbc3['id'],'path':_0x11cbc3[_0x5afdc7(0x6b)],'label':_0x11cbc3[_0x5afdc7(0x93)],'resources':_0x22175e}];if(_0x11cbc3['children']&&_0x11cbc3['children'][_0x5afdc7(0x8e)]>0x0)for(const _0x45776e of _0x11cbc3['children']){_0x19f855[_0x5afdc7(0x84)](...flattenMenuItem(_0x45776e));}return _0x19f855;}export async function createMenu(_0x4f53b4,_0x3da25,_0x39db75){const _0x4222ae=a72_0x312d;logger[_0x4222ae(0x80)]('create-menu',_0x4222ae(0x7c)+_0x39db75['label']+'\x20('+_0x39db75[_0x4222ae(0x6b)]+')');const _0x292651={'appCode':_0x4f53b4,'type':_0x4222ae(0x8d),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x39db75['resources']?JSON[_0x4222ae(0x8b)](_0x39db75[_0x4222ae(0x6f)]):undefined},..._0x39db75};await platformFetch(getApiDomain()+_0x4222ae(0x91),{'method':_0x4222ae(0x74),'body':_0x292651,'cookie':_0x3da25,'label':'Create\x20menu\x20\x22'+_0x39db75[_0x4222ae(0x93)]+'\x22'}),logger[_0x4222ae(0x80)](_0x4222ae(0x8f),'Menu\x20created\x20successfully:\x20'+_0x39db75[_0x4222ae(0x93)]);}async function createSingleMenu(_0x58b53a,_0x37aa95,_0x4574f7,_0x289e60){const _0x3cee2b=a72_0x312d,_0x6a8f4={'appCode':_0x58b53a,'type':_0x3cee2b(0x8d),'sort':0x0,'extend':{'loadScriptMode':_0x3cee2b(0x82),'resources':_0x289e60?JSON['stringify'](_0x289e60):undefined},'label':_0x4574f7[_0x3cee2b(0x93)],'path':_0x4574f7[_0x3cee2b(0x6b)]};await platformFetch(getApiDomain()+_0x3cee2b(0x91),{'method':_0x3cee2b(0x74),'body':_0x6a8f4,'cookie':_0x37aa95,'label':_0x3cee2b(0x7d)+_0x4574f7[_0x3cee2b(0x93)]+'\x22'}),logger['info'](_0x3cee2b(0x8f),_0x3cee2b(0x72)+_0x4574f7['label']);}function a72_0x5256(){const _0x413dc6=['update-menu-cdn-url','Update\x20menu\x20assets\x20\x22','92277LUYUJc','Creating\x20menu:\x20','Create\x20menu\x20\x22','extend','Updating\x20menu\x20asset\x20links:\x20','info','7001423PVCwtB','import','271045hVPxUr','push','28074DAZpys','flat','90jYCIMo','/smartapi/menu/update','Fetched\x20','Start\x20batch\x20menu\x20creation,\x20total\x20','stringify','83469SUHKWU','procode','length','create-menu','create-menus','/smartapi/menu/create','get-online-menu-list','label','isArray','path','all','Fetch\x20menu\x20list','2dtDXFd','resources','Server\x20returned\x20empty\x20menu\x20list','2155744kXvwfl','Menu\x20created\x20successfully:\x20','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','POST','12tfdAVo','5094cqlTMn','parse','266gAWeLD'];a72_0x5256=function(){return _0x413dc6;};return a72_0x5256();}export async function createMenus(_0x2421ff,_0x3e95e1,_0x50aaed,_0x3476c4){const _0x4bb9ec=a72_0x312d;logger[_0x4bb9ec(0x80)]('create-menus',_0x4bb9ec(0x8a)+_0x50aaed[_0x4bb9ec(0x8e)]),await Promise[_0x4bb9ec(0x6c)](_0x50aaed['map'](_0xcf2b1b=>createSingleMenu(_0x2421ff,_0x3e95e1,_0xcf2b1b,_0x3476c4))),logger['info'](_0x4bb9ec(0x90),'Batch\x20menu\x20creation\x20completed,\x20total\x20'+_0x50aaed[_0x4bb9ec(0x8e)]);}export async function updateMenuCdnUrl(_0x3ec171,_0x26f9e6,_0x5a4536){const _0x4b8c79=a72_0x312d;logger[_0x4b8c79(0x80)](_0x4b8c79(0x79),_0x4b8c79(0x7f)+_0x5a4536['label']+'\x20('+_0x5a4536[_0x4b8c79(0x6b)]+')');const _0x1c2013={'id':_0x5a4536['id'],'appCode':_0x3ec171,'extend':{'loadScriptMode':_0x4b8c79(0x82),'resources':_0x5a4536[_0x4b8c79(0x6f)]?JSON[_0x4b8c79(0x8b)](_0x5a4536[_0x4b8c79(0x6f)]):undefined}};await platformFetch(getApiDomain()+_0x4b8c79(0x88),{'method':_0x4b8c79(0x74),'body':_0x1c2013,'cookie':_0x26f9e6,'label':_0x4b8c79(0x7a)+_0x5a4536[_0x4b8c79(0x93)]+'\x22'}),logger[_0x4b8c79(0x80)](_0x4b8c79(0x79),'Menu\x20assets\x20synced:\x20'+_0x5a4536[_0x4b8c79(0x93)],undefined);}
@@ -1 +1 @@
1
- (function(_0x5d37c7,_0x37a4d9){const _0x3a357c=a60_0x534b,_0x552921=_0x5d37c7();while(!![]){try{const _0x550b34=parseInt(_0x3a357c(0x173))/0x1*(parseInt(_0x3a357c(0x17e))/0x2)+parseInt(_0x3a357c(0x17f))/0x3+-parseInt(_0x3a357c(0x156))/0x4*(-parseInt(_0x3a357c(0x178))/0x5)+-parseInt(_0x3a357c(0x15f))/0x6+parseInt(_0x3a357c(0x172))/0x7*(-parseInt(_0x3a357c(0x157))/0x8)+parseInt(_0x3a357c(0x16d))/0x9*(parseInt(_0x3a357c(0x167))/0xa)+parseInt(_0x3a357c(0x179))/0xb*(-parseInt(_0x3a357c(0x154))/0xc);if(_0x550b34===_0x37a4d9)break;else _0x552921['push'](_0x552921['shift']());}catch(_0x5996f0){_0x552921['push'](_0x552921['shift']());}}}(a60_0x4d2d,0x9eb98));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function a60_0x534b(_0x7f52c3,_0x23999a){_0x7f52c3=_0x7f52c3-0x150;const _0x4d2d9f=a60_0x4d2d();let _0x534bff=_0x4d2d9f[_0x7f52c3];return _0x534bff;}function validateParams(_0x1ca557){const _0x132961=a60_0x534b,_0x118a2b=[];return _0x1ca557[_0x132961(0x177)]&&!isValidJsHttpsUrl(_0x1ca557[_0x132961(0x177)])&&_0x118a2b[_0x132961(0x17a)]({'field':_0x132961(0x177),'message':_0x132961(0x15e)}),_0x1ca557[_0x132961(0x155)]&&!isValidCssHttpsUrl(_0x1ca557[_0x132961(0x155)])&&_0x118a2b[_0x132961(0x17a)]({'field':'cssUrl','message':_0x132961(0x170)}),_0x118a2b;}export async function runMenuSyncCore(_0x494f28,_0x1f4e15,_0x15d84b=[],_0x9ae484){const _0x1f0621=a60_0x534b,_0x39154f=parseParamsFlag(_0x9ae484),_0x55ebaf=_0x15d84b[_0x1f0621(0x16c)]>0x0?_0x15d84b:_0x39154f['selectedLabels'],_0x89de77=_0x39154f[_0x1f0621(0x177)],_0x4eae7b=_0x39154f[_0x1f0621(0x155)],_0x44d053=[];if(_0x89de77)_0x44d053[_0x1f0621(0x17a)](_0x89de77);if(_0x4eae7b)_0x44d053['push'](_0x4eae7b);const _0x80b9d6=validateParams(_0x39154f);if(_0x80b9d6[_0x1f0621(0x16c)]>0x0){const _0x1ece05=_0x80b9d6[_0x1f0621(0x161)](_0x581edb=>_0x1f0621(0x151)+_0x581edb['field']+':\x20'+_0x581edb[_0x1f0621(0x174)])[_0x1f0621(0x164)](';\x20');throw new Error(_0x1f0621(0x171)+_0x1ece05);}logger[_0x1f0621(0x17d)](process[_0x1f0621(0x16e)]()),logger[_0x1f0621(0x16b)](_0x1f0621(0x165),_0x1f0621(0x158),{'appCode':_0x494f28,'selectedCount':_0x55ebaf?.[_0x1f0621(0x16c)],'jsUrl':_0x89de77,'cssUrl':_0x4eae7b});if(_0x89de77){const _0x666191=await isUrlReachable(_0x89de77);if(!_0x666191)throw new Error(_0x1f0621(0x15b)+_0x89de77);}if(_0x4eae7b){const _0x57be3d=await isUrlReachable(_0x4eae7b);if(!_0x57be3d)throw new Error(_0x1f0621(0x169)+_0x4eae7b);}const _0x4d4627=getLocalPages();if(_0x4d4627['length']===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x319281=await getOnlineMenuList(_0x494f28,_0x1f4e15),_0x1fcffa=new Set(_0x319281[_0x1f0621(0x161)](_0x484c1e=>_0x484c1e[_0x1f0621(0x15d)]));let _0xe8adea;if(_0x55ebaf&&_0x55ebaf[_0x1f0621(0x16c)]>0x0){const _0x2bd140=new Set(_0x55ebaf[_0x1f0621(0x161)](_0x4c351e=>_0x4c351e[_0x1f0621(0x16f)]()));_0xe8adea=_0x4d4627[_0x1f0621(0x153)](_0x570381=>_0x2bd140[_0x1f0621(0x168)](_0x570381['label']));if(_0xe8adea[_0x1f0621(0x16c)]===0x0){const _0x409193=_0x4d4627[_0x1f0621(0x161)](_0xdc5b59=>_0xdc5b59[_0x1f0621(0x160)])[_0x1f0621(0x164)](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x2bd140][_0x1f0621(0x164)](',\x20')+_0x1f0621(0x17b)+_0x409193);}}else _0xe8adea=_0x4d4627[_0x1f0621(0x153)](_0x2581d8=>!_0x1fcffa[_0x1f0621(0x168)](_0x2581d8[_0x1f0621(0x15d)]));if(_0xe8adea[_0x1f0621(0x16c)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};return await createMenus(_0x494f28,_0x1f4e15,_0xe8adea,_0x44d053[_0x1f0621(0x16c)]>0x0?_0x44d053:undefined),logger[_0x1f0621(0x16b)]('menu-sync',_0x1f0621(0x16a),{'count':_0xe8adea[_0x1f0621(0x16c)],'resources':_0x44d053}),{'created':_0xe8adea[_0x1f0621(0x16c)],'skipped':![],'targetPages':_0xe8adea};}export async function readPageLabelsFromStdin(){const _0x1bc0ba=a60_0x534b;if(!process[_0x1bc0ba(0x163)][_0x1bc0ba(0x152)]&&!process[_0x1bc0ba(0x163)][_0x1bc0ba(0x166)])return new Promise(_0x59baae=>{const _0x3950f7=_0x1bc0ba,_0x49f725=[];process[_0x3950f7(0x163)]['on'](_0x3950f7(0x17c),_0x2f76a2=>_0x49f725[_0x3950f7(0x17a)](_0x2f76a2)),process[_0x3950f7(0x163)]['on']('end',()=>{const _0x2f1420=_0x3950f7,_0x2aa7d6=Buffer[_0x2f1420(0x176)](_0x49f725)['toString'](_0x2f1420(0x15a)),_0x10d30c=_0x2aa7d6['split']('\x0a')[_0x2f1420(0x161)](_0xe9631d=>_0xe9631d['trim']())['filter'](_0x2a6678=>_0x2a6678[_0x2f1420(0x16c)]>0x0&&!_0x2a6678[_0x2f1420(0x180)]('#'));_0x59baae(_0x10d30c);}),setTimeout(()=>_0x59baae([]),0x1f4);});return[];}function parseParamsFlag(_0x13a6d5){const _0x292590=a60_0x534b;if(!_0x13a6d5||typeof _0x13a6d5!==_0x292590(0x150))return{};try{const _0x780daa=JSON[_0x292590(0x159)](_0x13a6d5);if(typeof _0x780daa!==_0x292590(0x162)||_0x780daa===null||Array[_0x292590(0x15c)](_0x780daa))return{};return{'selectedLabels':Array['isArray'](_0x780daa[_0x292590(0x175)])?_0x780daa[_0x292590(0x175)]['map'](String):undefined,'jsUrl':typeof _0x780daa[_0x292590(0x177)]==='string'?_0x780daa['jsUrl'][_0x292590(0x16f)]():undefined,'cssUrl':typeof _0x780daa[_0x292590(0x155)]===_0x292590(0x150)?_0x780daa['cssUrl'][_0x292590(0x16f)]():undefined};}catch{return{};}}function a60_0x4d2d(){const _0x6ee4db=['3195clEQij','cwd','trim','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','Invalid\x20--params:\x20','1943501DaJXVF','1151489cGajGT','message','pages','concat','jsUrl','5czTwgb','11VcstDI','push','\x0a\x20\x20Available\x20local\x20pages:\x20','data','setLogPath','2MZbPma','1454814nWjmFB','startsWith','string','--params.','isTTY','filter','18909036CwWTYo','cssUrl','4767092fPUgSP','32ZBbImH','Start\x20non-interactive\x20menu\x20sync','parse','utf8','JS\x20URL\x20is\x20unreachable:\x20','isArray','path','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','1713114FGgfni','label','map','object','stdin','join','menu-sync','readableEnded','22360GMUncw','has','CSS\x20URL\x20is\x20unreachable:\x20','Menu\x20sync\x20completed','info','length'];a60_0x4d2d=function(){return _0x6ee4db;};return a60_0x4d2d();}
1
+ (function(_0x16f1e2,_0x2874f4){const _0x1d75fe=a73_0xa2a7,_0x5eebc0=_0x16f1e2();while(!![]){try{const _0x2dff4e=-parseInt(_0x1d75fe(0x1f3))/0x1+parseInt(_0x1d75fe(0x1f8))/0x2*(parseInt(_0x1d75fe(0x1d5))/0x3)+parseInt(_0x1d75fe(0x1d2))/0x4*(parseInt(_0x1d75fe(0x1d9))/0x5)+parseInt(_0x1d75fe(0x1d0))/0x6*(parseInt(_0x1d75fe(0x1f5))/0x7)+parseInt(_0x1d75fe(0x1ea))/0x8+parseInt(_0x1d75fe(0x1f2))/0x9*(-parseInt(_0x1d75fe(0x1f0))/0xa)+-parseInt(_0x1d75fe(0x1d8))/0xb*(-parseInt(_0x1d75fe(0x1ed))/0xc);if(_0x2dff4e===_0x2874f4)break;else _0x5eebc0['push'](_0x5eebc0['shift']());}catch(_0x4f7341){_0x5eebc0['push'](_0x5eebc0['shift']());}}}(a73_0x43e8,0x3d7ed));function a73_0xa2a7(_0x2cdeb0,_0x38b063){_0x2cdeb0=_0x2cdeb0-0x1ca;const _0x43e835=a73_0x43e8();let _0xa2a7d1=_0x43e835[_0x2cdeb0];return _0xa2a7d1;}import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x49caae){const _0x46912b=a73_0xa2a7,_0x3b906d=[];return _0x49caae[_0x46912b(0x1cd)]&&!isValidJsHttpsUrl(_0x49caae[_0x46912b(0x1cd)])&&_0x3b906d[_0x46912b(0x1d1)]({'field':'jsUrl','message':_0x46912b(0x1f7)}),_0x49caae[_0x46912b(0x1cf)]&&!isValidCssHttpsUrl(_0x49caae[_0x46912b(0x1cf)])&&_0x3b906d[_0x46912b(0x1d1)]({'field':'cssUrl','message':_0x46912b(0x1d6)}),_0x3b906d;}export async function runMenuSyncCore(_0x188e39,_0x513aaf,_0x2cfe0f=[],_0x598ada){const _0x463d02=a73_0xa2a7,_0x6e2836=parseParamsFlag(_0x598ada),_0x5b06f5=_0x2cfe0f[_0x463d02(0x1eb)]>0x0?_0x2cfe0f:_0x6e2836[_0x463d02(0x1df)],_0x5fb6d0=_0x6e2836[_0x463d02(0x1cd)],_0x57b2d2=_0x6e2836[_0x463d02(0x1cf)],_0xeaa1bd=[];if(_0x5fb6d0)_0xeaa1bd[_0x463d02(0x1d1)](_0x5fb6d0);if(_0x57b2d2)_0xeaa1bd['push'](_0x57b2d2);const _0x1fd6e9=validateParams(_0x6e2836);if(_0x1fd6e9['length']>0x0){const _0x458ccc=_0x1fd6e9['map'](_0xc5bb13=>'--params.'+_0xc5bb13[_0x463d02(0x1ee)]+':\x20'+_0xc5bb13['message'])[_0x463d02(0x1ce)](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x458ccc);}logger[_0x463d02(0x1e8)](process[_0x463d02(0x1da)]()),logger[_0x463d02(0x1f1)](_0x463d02(0x1e2),_0x463d02(0x1db),{'appCode':_0x188e39,'selectedCount':_0x5b06f5?.[_0x463d02(0x1eb)],'jsUrl':_0x5fb6d0,'cssUrl':_0x57b2d2});if(_0x5fb6d0){const _0x5a42b0=await isUrlReachable(_0x5fb6d0);if(!_0x5a42b0)throw new Error(_0x463d02(0x1e5)+_0x5fb6d0);}if(_0x57b2d2){const _0x9cbccc=await isUrlReachable(_0x57b2d2);if(!_0x9cbccc)throw new Error(_0x463d02(0x1ca)+_0x57b2d2);}const _0x146dee=getLocalPages();if(_0x146dee['length']===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x1ae2cc=await getOnlineMenuList(_0x188e39,_0x513aaf),_0x399b94=new Set(_0x1ae2cc[_0x463d02(0x1cc)](_0x51bcb7=>_0x51bcb7[_0x463d02(0x1f6)]));let _0xaa655c;if(_0x5b06f5&&_0x5b06f5['length']>0x0){const _0x32ca82=new Set(_0x5b06f5['map'](_0x4ef52b=>_0x4ef52b[_0x463d02(0x1e7)]()));_0xaa655c=_0x146dee[_0x463d02(0x1e4)](_0x43dcb9=>_0x32ca82[_0x463d02(0x1d4)](_0x43dcb9[_0x463d02(0x1d3)]));if(_0xaa655c[_0x463d02(0x1eb)]===0x0){const _0x31331e=_0x146dee[_0x463d02(0x1cc)](_0x4c3be9=>_0x4c3be9[_0x463d02(0x1d3)])[_0x463d02(0x1ce)](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x32ca82][_0x463d02(0x1ce)](',\x20')+_0x463d02(0x1ec)+_0x31331e);}}else _0xaa655c=_0x146dee['filter'](_0x4552ee=>!_0x399b94[_0x463d02(0x1d4)](_0x4552ee[_0x463d02(0x1f6)]));if(_0xaa655c[_0x463d02(0x1eb)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};return await createMenus(_0x188e39,_0x513aaf,_0xaa655c,_0xeaa1bd[_0x463d02(0x1eb)]>0x0?_0xeaa1bd:undefined),logger[_0x463d02(0x1f1)](_0x463d02(0x1e2),_0x463d02(0x1cb),{'count':_0xaa655c['length'],'resources':_0xeaa1bd}),{'created':_0xaa655c['length'],'skipped':![],'targetPages':_0xaa655c};}export async function readPageLabelsFromStdin(){const _0xe166ff=a73_0xa2a7;if(!process[_0xe166ff(0x1e1)]['isTTY']&&!process[_0xe166ff(0x1e1)][_0xe166ff(0x1e0)])return new Promise(_0x4fb7f3=>{const _0x1a1e5e=_0xe166ff,_0x1c6f3e=[];process['stdin']['on'](_0x1a1e5e(0x1e6),_0x10cb7b=>_0x1c6f3e[_0x1a1e5e(0x1d1)](_0x10cb7b)),process[_0x1a1e5e(0x1e1)]['on'](_0x1a1e5e(0x1e3),()=>{const _0xafc516=_0x1a1e5e,_0x5a12b8=Buffer[_0xafc516(0x1e9)](_0x1c6f3e)['toString']('utf8'),_0x3d1a31=_0x5a12b8[_0xafc516(0x1f4)]('\x0a')['map'](_0x21ac40=>_0x21ac40['trim']())['filter'](_0x37e5cb=>_0x37e5cb[_0xafc516(0x1eb)]>0x0&&!_0x37e5cb[_0xafc516(0x1ef)]('#'));_0x4fb7f3(_0x3d1a31);}),setTimeout(()=>_0x4fb7f3([]),0x1f4);});return[];}function parseParamsFlag(_0x4c4cb9){const _0x49cc53=a73_0xa2a7;if(!_0x4c4cb9||typeof _0x4c4cb9!=='string')return{};try{const _0x24197d=JSON[_0x49cc53(0x1dd)](_0x4c4cb9);if(typeof _0x24197d!=='object'||_0x24197d===null||Array[_0x49cc53(0x1dc)](_0x24197d))return{};return{'selectedLabels':Array[_0x49cc53(0x1dc)](_0x24197d[_0x49cc53(0x1d7)])?_0x24197d['pages'][_0x49cc53(0x1cc)](String):undefined,'jsUrl':typeof _0x24197d[_0x49cc53(0x1cd)]===_0x49cc53(0x1de)?_0x24197d[_0x49cc53(0x1cd)][_0x49cc53(0x1e7)]():undefined,'cssUrl':typeof _0x24197d[_0x49cc53(0x1cf)]==='string'?_0x24197d['cssUrl']['trim']():undefined};}catch{return{};}}function a73_0x43e8(){const _0x54d1ad=['4830XindiU','info','8847aItJhd','152580lfyYQu','split','7MResXf','path','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','29878tcXlNy','CSS\x20URL\x20is\x20unreachable:\x20','Menu\x20sync\x20completed','map','jsUrl','join','cssUrl','888702STfOnY','push','28vIkpbG','label','has','48bkSmny','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','pages','539OfkRIU','36290JDHBtp','cwd','Start\x20non-interactive\x20menu\x20sync','isArray','parse','string','selectedLabels','readableEnded','stdin','menu-sync','end','filter','JS\x20URL\x20is\x20unreachable:\x20','data','trim','setLogPath','concat','20880hxPxgI','length','\x0a\x20\x20Available\x20local\x20pages:\x20','107436ZzgkVy','field','startsWith'];a73_0x43e8=function(){return _0x54d1ad;};return a73_0x43e8();}
@@ -1 +1 @@
1
- (function(_0x212025,_0x378d34){const _0x1d1d4b=a62_0x3973,_0x4ac4fb=_0x212025();while(!![]){try{const _0x1d7dea=parseInt(_0x1d1d4b(0x1e3))/0x1*(-parseInt(_0x1d1d4b(0x1e1))/0x2)+-parseInt(_0x1d1d4b(0x1d9))/0x3*(-parseInt(_0x1d1d4b(0x1f0))/0x4)+parseInt(_0x1d1d4b(0x1db))/0x5*(parseInt(_0x1d1d4b(0x1f3))/0x6)+parseInt(_0x1d1d4b(0x1e0))/0x7*(parseInt(_0x1d1d4b(0x1ec))/0x8)+-parseInt(_0x1d1d4b(0x1de))/0x9*(-parseInt(_0x1d1d4b(0x1d4))/0xa)+parseInt(_0x1d1d4b(0x1e7))/0xb+-parseInt(_0x1d1d4b(0x1e2))/0xc;if(_0x1d7dea===_0x378d34)break;else _0x4ac4fb['push'](_0x4ac4fb['shift']());}catch(_0x13a3e5){_0x4ac4fb['push'](_0x4ac4fb['shift']());}}}(a62_0x41ac,0x8b89e));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x1877a5){const _0x2b5894=a62_0x3973,_0x2a1da0=[];return _0x1877a5[_0x2b5894(0x1e9)]&&!isValidJsHttpsUrl(_0x1877a5[_0x2b5894(0x1e9)])&&_0x2a1da0[_0x2b5894(0x1e8)]({'field':_0x2b5894(0x1e9),'message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x1877a5[_0x2b5894(0x1df)]&&!isValidCssHttpsUrl(_0x1877a5[_0x2b5894(0x1df)])&&_0x2a1da0[_0x2b5894(0x1e8)]({'field':'cssUrl','message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x2a1da0;}function a62_0x3973(_0x1a990a,_0x4ca804){_0x1a990a=_0x1a990a-0x1d4;const _0x41aca9=a62_0x41ac();let _0x3973f0=_0x41aca9[_0x1a990a];return _0x3973f0;}function a62_0x41ac(){const _0x3390b7=['string','isArray','62676nYsrcZ','cssUrl','49wgKsZj','2hBJGkw','23265252vHDZIF','70131aSYIFB','path','rejected','Invalid\x20--params:\x20','3642859ksiEhN','push','jsUrl','resources','filter','497104jHyhBe','length','object','CSS\x20URL\x20is\x20unreachable:\x20','52zMPMEV','join','message','960gZnYQu','status','map','menu-update','Menu\x20update\x20completed','950OFQgbJ','cwd','trim','setLogPath','JS\x20URL\x20is\x20unreachable:\x20','193167OJFFiQ','--params.','9865copxPp'];a62_0x41ac=function(){return _0x3390b7;};return a62_0x41ac();}export async function runMenuUpdateCore(_0x5386f6,_0x55e2b9,_0x19e83a){const _0x9153f=a62_0x3973,_0x2602c6=parseUpdateParamsFlag(_0x19e83a),_0x3068b6=[];if(_0x2602c6[_0x9153f(0x1e9)])_0x3068b6[_0x9153f(0x1e8)](_0x2602c6['jsUrl']);if(_0x2602c6['cssUrl'])_0x3068b6[_0x9153f(0x1e8)](_0x2602c6[_0x9153f(0x1df)]);const _0xc408ad=validateParams(_0x2602c6);if(_0xc408ad[_0x9153f(0x1ed)]>0x0){const _0x49ecc9=_0xc408ad[_0x9153f(0x1f5)](_0x2e1b6b=>_0x9153f(0x1da)+_0x2e1b6b['field']+':\x20'+_0x2e1b6b[_0x9153f(0x1f2)])[_0x9153f(0x1f1)](';\x20');throw new Error(_0x9153f(0x1e6)+_0x49ecc9);}logger[_0x9153f(0x1d7)](process[_0x9153f(0x1d5)]()),logger['info'](_0x9153f(0x1f6),'Start\x20non-interactive\x20menu\x20update',{'appCode':_0x5386f6,'jsUrl':_0x2602c6[_0x9153f(0x1e9)],'cssUrl':_0x2602c6['cssUrl']});if(_0x2602c6[_0x9153f(0x1e9)]){const _0x4ac944=await isUrlReachable(_0x2602c6[_0x9153f(0x1e9)]);if(!_0x4ac944)throw new Error(_0x9153f(0x1d8)+_0x2602c6[_0x9153f(0x1e9)]);}if(_0x2602c6['cssUrl']){const _0x3386c9=await isUrlReachable(_0x2602c6['cssUrl']);if(!_0x3386c9)throw new Error(_0x9153f(0x1ef)+_0x2602c6['cssUrl']);}const _0x29cf4b=await getOnlineMenuList(_0x5386f6,_0x55e2b9),_0x13b56f=_0x29cf4b[_0x9153f(0x1eb)](_0x2157b2=>_0x2157b2[_0x9153f(0x1ea)]['length']>0x0);if(_0x13b56f[_0x9153f(0x1ed)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![]};const _0x436c33=await Promise['allSettled'](_0x13b56f['map'](_0x556a5e=>updateMenuCdnUrl(_0x5386f6,_0x55e2b9,{'id':_0x556a5e['id'],'label':_0x556a5e['label'],'path':_0x556a5e[_0x9153f(0x1e4)],'resources':_0x3068b6}))),_0x3f7dc0=_0x436c33['filter'](_0x45753a=>_0x45753a[_0x9153f(0x1f4)]===_0x9153f(0x1e5))[_0x9153f(0x1ed)];return logger['info'](_0x9153f(0x1f6),_0x9153f(0x1f7),{'count':_0x13b56f[_0x9153f(0x1ed)],'resources':_0x3068b6}),{'updated':_0x13b56f['length']-_0x3f7dc0,'failed':_0x3f7dc0,'skipped':![]};}function parseUpdateParamsFlag(_0x3aba18){const _0x49451a=a62_0x3973;if(!_0x3aba18||typeof _0x3aba18!=='string')return{};try{const _0x4234d7=JSON['parse'](_0x3aba18);if(typeof _0x4234d7!==_0x49451a(0x1ee)||_0x4234d7===null||Array[_0x49451a(0x1dd)](_0x4234d7))return{};return{'jsUrl':typeof _0x4234d7[_0x49451a(0x1e9)]===_0x49451a(0x1dc)?_0x4234d7[_0x49451a(0x1e9)][_0x49451a(0x1d6)]():undefined,'cssUrl':typeof _0x4234d7[_0x49451a(0x1df)]===_0x49451a(0x1dc)?_0x4234d7[_0x49451a(0x1df)]['trim']():undefined};}catch{return{};}}
1
+ (function(_0x1def38,_0x3eccd8){const _0x35df8c=a75_0x20e4,_0x41029d=_0x1def38();while(!![]){try{const _0x10c737=parseInt(_0x35df8c(0xca))/0x1*(parseInt(_0x35df8c(0xc6))/0x2)+-parseInt(_0x35df8c(0xd2))/0x3*(parseInt(_0x35df8c(0xb5))/0x4)+parseInt(_0x35df8c(0xb0))/0x5+-parseInt(_0x35df8c(0xb2))/0x6+-parseInt(_0x35df8c(0xc7))/0x7*(-parseInt(_0x35df8c(0xb3))/0x8)+-parseInt(_0x35df8c(0xb4))/0x9+parseInt(_0x35df8c(0xc4))/0xa*(parseInt(_0x35df8c(0xc8))/0xb);if(_0x10c737===_0x3eccd8)break;else _0x41029d['push'](_0x41029d['shift']());}catch(_0x27cd52){_0x41029d['push'](_0x41029d['shift']());}}}(a75_0x46d5,0x90606));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x2e4678){const _0x4d3a57=a75_0x20e4,_0x3d8006=[];return _0x2e4678[_0x4d3a57(0xb9)]&&!isValidJsHttpsUrl(_0x2e4678['jsUrl'])&&_0x3d8006[_0x4d3a57(0xd0)]({'field':'jsUrl','message':_0x4d3a57(0xce)}),_0x2e4678[_0x4d3a57(0xc0)]&&!isValidCssHttpsUrl(_0x2e4678['cssUrl'])&&_0x3d8006[_0x4d3a57(0xd0)]({'field':_0x4d3a57(0xc0),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x3d8006;}export async function runMenuUpdateCore(_0x305673,_0x20b9f4,_0x3fed03){const _0x555daf=a75_0x20e4,_0x1de3ff=parseUpdateParamsFlag(_0x3fed03),_0x1c6fb3=[];if(_0x1de3ff[_0x555daf(0xb9)])_0x1c6fb3['push'](_0x1de3ff['jsUrl']);if(_0x1de3ff['cssUrl'])_0x1c6fb3['push'](_0x1de3ff[_0x555daf(0xc0)]);const _0x39cd00=validateParams(_0x1de3ff);if(_0x39cd00[_0x555daf(0xbe)]>0x0){const _0x34d1ee=_0x39cd00['map'](_0x208d56=>_0x555daf(0xcb)+_0x208d56[_0x555daf(0xba)]+':\x20'+_0x208d56[_0x555daf(0xd4)])[_0x555daf(0xc2)](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x34d1ee);}logger[_0x555daf(0xcc)](process[_0x555daf(0xd1)]()),logger[_0x555daf(0xc3)](_0x555daf(0xc9),_0x555daf(0xcf),{'appCode':_0x305673,'jsUrl':_0x1de3ff[_0x555daf(0xb9)],'cssUrl':_0x1de3ff[_0x555daf(0xc0)]});if(_0x1de3ff[_0x555daf(0xb9)]){const _0x453ef6=await isUrlReachable(_0x1de3ff[_0x555daf(0xb9)]);if(!_0x453ef6)throw new Error(_0x555daf(0xd5)+_0x1de3ff[_0x555daf(0xb9)]);}if(_0x1de3ff[_0x555daf(0xc0)]){const _0x4f59b7=await isUrlReachable(_0x1de3ff['cssUrl']);if(!_0x4f59b7)throw new Error(_0x555daf(0xc1)+_0x1de3ff['cssUrl']);}const _0x3ea9a9=await getOnlineMenuList(_0x305673,_0x20b9f4),_0x4a86f9=_0x3ea9a9['filter'](_0x53b78c=>_0x53b78c[_0x555daf(0xd3)]['length']>0x0);if(_0x4a86f9['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![]};const _0x1f2735=await Promise[_0x555daf(0xb8)](_0x4a86f9[_0x555daf(0xb7)](_0x441662=>updateMenuCdnUrl(_0x305673,_0x20b9f4,{'id':_0x441662['id'],'label':_0x441662[_0x555daf(0xb6)],'path':_0x441662['path'],'resources':_0x1c6fb3}))),_0x322735=_0x1f2735[_0x555daf(0xbf)](_0x228ea7=>_0x228ea7[_0x555daf(0xb1)]===_0x555daf(0xcd))[_0x555daf(0xbe)];return logger[_0x555daf(0xc3)](_0x555daf(0xc9),_0x555daf(0xc5),{'count':_0x4a86f9[_0x555daf(0xbe)],'resources':_0x1c6fb3}),{'updated':_0x4a86f9[_0x555daf(0xbe)]-_0x322735,'failed':_0x322735,'skipped':![]};}function a75_0x20e4(_0x3ff00f,_0x599aab){_0x3ff00f=_0x3ff00f-0xb0;const _0x46d5c1=a75_0x46d5();let _0x20e42b=_0x46d5c1[_0x3ff00f];return _0x20e42b;}function parseUpdateParamsFlag(_0x5a9048){const _0x51cb0c=a75_0x20e4;if(!_0x5a9048||typeof _0x5a9048!==_0x51cb0c(0xbc))return{};try{const _0x3288a5=JSON['parse'](_0x5a9048);if(typeof _0x3288a5!==_0x51cb0c(0xbd)||_0x3288a5===null||Array[_0x51cb0c(0xd6)](_0x3288a5))return{};return{'jsUrl':typeof _0x3288a5[_0x51cb0c(0xb9)]===_0x51cb0c(0xbc)?_0x3288a5[_0x51cb0c(0xb9)]['trim']():undefined,'cssUrl':typeof _0x3288a5['cssUrl']===_0x51cb0c(0xbc)?_0x3288a5['cssUrl'][_0x51cb0c(0xbb)]():undefined};}catch{return{};}}function a75_0x46d5(){const _0x263fa9=['JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','Start\x20non-interactive\x20menu\x20update','push','cwd','2415tnlDEb','resources','message','JS\x20URL\x20is\x20unreachable:\x20','isArray','3043380SgElXh','status','2593476hDGsvj','2784536IxogaV','8046459fspyJi','2452MCpjQz','label','map','allSettled','jsUrl','field','trim','string','object','length','filter','cssUrl','CSS\x20URL\x20is\x20unreachable:\x20','join','info','55690HjxbSu','Menu\x20update\x20completed','28Hxylkh','14RUnCVm','1760HLdBza','menu-update','15377KZDOdX','--params.','setLogPath','rejected'];a75_0x46d5=function(){return _0x263fa9;};return a75_0x46d5();}
@@ -1 +1 @@
1
- function a63_0x3a32(){const _0x209146=['947718tXNrKD','1389936SEFbFH','84696CEsodV','1638aiYqEV','HEAD','621461ddHNtc','test','10qAPIPY','1102773TwYsrU','2014218zJLeqC','376500gqQSCX'];a63_0x3a32=function(){return _0x209146;};return a63_0x3a32();}(function(_0x2d2145,_0x7020c5){const _0x595071=a63_0x24b3,_0x1ac2de=_0x2d2145();while(!![]){try{const _0x886793=parseInt(_0x595071(0x116))/0x1+parseInt(_0x595071(0x11c))/0x2+parseInt(_0x595071(0x11a))/0x3+-parseInt(_0x595071(0x11b))/0x4+parseInt(_0x595071(0x118))/0x5*(parseInt(_0x595071(0x11d))/0x6)+parseInt(_0x595071(0x119))/0x7+parseInt(_0x595071(0x11e))/0x8*(-parseInt(_0x595071(0x11f))/0x9);if(_0x886793===_0x7020c5)break;else _0x1ac2de['push'](_0x1ac2de['shift']());}catch(_0x475369){_0x1ac2de['push'](_0x1ac2de['shift']());}}}(a63_0x3a32,0x5981a));export function isValidJsHttpsUrl(_0x7b1499){return/^https:\/\/.+\.js(\?.*)?$/['test'](_0x7b1499['trim']());}function a63_0x24b3(_0x5ec950,_0x51ce86){_0x5ec950=_0x5ec950-0x116;const _0x3a32b4=a63_0x3a32();let _0x24b3cc=_0x3a32b4[_0x5ec950];return _0x24b3cc;}export function isValidCssHttpsUrl(_0x101f3b){const _0x2fa6f1=a63_0x24b3;return/^https:\/\/.+\.css(\?.*)?$/[_0x2fa6f1(0x117)](_0x101f3b['trim']());}export async function isUrlReachable(_0x3f8800){const _0x288f4f=a63_0x24b3;try{const _0x52084b=await fetch(_0x3f8800,{'method':_0x288f4f(0x120)});return _0x52084b['ok'];}catch{return![];}}
1
+ (function(_0x52acef,_0x43105c){const _0x3f5e72=a76_0x35be,_0x2847b=_0x52acef();while(!![]){try{const _0xcffd2=parseInt(_0x3f5e72(0x18b))/0x1+parseInt(_0x3f5e72(0x190))/0x2+-parseInt(_0x3f5e72(0x189))/0x3*(parseInt(_0x3f5e72(0x192))/0x4)+parseInt(_0x3f5e72(0x18c))/0x5*(-parseInt(_0x3f5e72(0x191))/0x6)+-parseInt(_0x3f5e72(0x18a))/0x7+-parseInt(_0x3f5e72(0x188))/0x8*(-parseInt(_0x3f5e72(0x18f))/0x9)+-parseInt(_0x3f5e72(0x18d))/0xa;if(_0xcffd2===_0x43105c)break;else _0x2847b['push'](_0x2847b['shift']());}catch(_0x7da0be){_0x2847b['push'](_0x2847b['shift']());}}}(a76_0x321a,0x707ec));function a76_0x321a(){const _0x1712ff=['15NNMzzA','3474667qVjwjl','283581UbbjRh','565EzFHfx','2540200eAokuX','trim','184311JSAZhU','870490krGtKk','7656wqNVux','96944VwtLNy','test','296GQMala'];a76_0x321a=function(){return _0x1712ff;};return a76_0x321a();}export function isValidJsHttpsUrl(_0x334f46){return/^https:\/\/.+\.js(\?.*)?$/['test'](_0x334f46['trim']());}export function isValidCssHttpsUrl(_0x1da17c){const _0x35231a=a76_0x35be;return/^https:\/\/.+\.css(\?.*)?$/[_0x35231a(0x193)](_0x1da17c[_0x35231a(0x18e)]());}function a76_0x35be(_0x994922,_0x522a39){_0x994922=_0x994922-0x188;const _0x321a5b=a76_0x321a();let _0x35be19=_0x321a5b[_0x994922];return _0x35be19;}export async function isUrlReachable(_0x374057){try{const _0x194f3a=await fetch(_0x374057,{'method':'HEAD'});return _0x194f3a['ok'];}catch{return![];}}