@lovrabet/rabetbase-cli 2.3.5-beta.1 → 2.3.5

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 (239) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.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/generate.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-directory.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-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/generate.js +1 -1
  66. package/lib/commands/dataset/index.js +1 -1
  67. package/lib/commands/dataset/list.js +1 -1
  68. package/lib/commands/dataset/operations.js +1 -1
  69. package/lib/commands/dataset/relation-audit.js +1 -1
  70. package/lib/commands/dataset/relation-create.js +1 -1
  71. package/lib/commands/dataset/relation-delete.js +1 -1
  72. package/lib/commands/dataset/relation-shared.js +1 -1
  73. package/lib/commands/dataset/relation-update.js +1 -1
  74. package/lib/commands/dataset/relations.js +1 -1
  75. package/lib/commands/dataset/rename.js +1 -1
  76. package/lib/commands/dataset/restore.js +1 -1
  77. package/lib/commands/db/analyze-cancel.js +1 -1
  78. package/lib/commands/db/analyze-start.js +1 -1
  79. package/lib/commands/db/analyze-status.js +1 -1
  80. package/lib/commands/db/create.js +1 -1
  81. package/lib/commands/db/delete.js +1 -1
  82. package/lib/commands/db/detail.js +1 -1
  83. package/lib/commands/db/diff.js +1 -1
  84. package/lib/commands/db/index.js +1 -1
  85. package/lib/commands/db/list.js +1 -1
  86. package/lib/commands/db/shared.js +1 -1
  87. package/lib/commands/db/tables.js +1 -1
  88. package/lib/commands/db/test.js +1 -1
  89. package/lib/commands/db/update.js +1 -1
  90. package/lib/commands/doctor.js +1 -1
  91. package/lib/commands/init/index.js +1 -1
  92. package/lib/commands/issue/index.js +1 -1
  93. package/lib/commands/issue/nudge.js +1 -1
  94. package/lib/commands/issue/report.js +1 -1
  95. package/lib/commands/issue/shared.js +1 -1
  96. package/lib/commands/logs/index.js +1 -1
  97. package/lib/commands/menu/index.js +1 -1
  98. package/lib/commands/menu/list.js +1 -1
  99. package/lib/commands/menu/shared/compare-table.js +1 -1
  100. package/lib/commands/menu/shared/index.js +1 -1
  101. package/lib/commands/menu/shared/inquirer.js +1 -1
  102. package/lib/commands/menu/shared/local-pages.js +1 -1
  103. package/lib/commands/menu/shared/logic.js +1 -1
  104. package/lib/commands/menu/shared/service.js +1 -1
  105. package/lib/commands/menu/shared/sync-core.js +1 -1
  106. package/lib/commands/menu/shared/update-core.js +1 -1
  107. package/lib/commands/menu/shared/valid-url.js +1 -1
  108. package/lib/commands/menu/sync.js +1 -1
  109. package/lib/commands/menu/update.js +1 -1
  110. package/lib/commands/page/generate-start.js +1 -1
  111. package/lib/commands/page/generate-status.js +1 -1
  112. package/lib/commands/page/index.js +1 -1
  113. package/lib/commands/page/pull.js +1 -1
  114. package/lib/commands/page/push.js +1 -1
  115. package/lib/commands/page/relation-audit.js +1 -1
  116. package/lib/commands/page/shared.js +1 -1
  117. package/lib/commands/page/standard-page-status.js +1 -1
  118. package/lib/commands/page/sync.js +1 -1
  119. package/lib/commands/permit/index.js +1 -1
  120. package/lib/commands/permit/page-get.js +1 -1
  121. package/lib/commands/permit/page-set.js +1 -1
  122. package/lib/commands/permit/role-apis-set.js +1 -1
  123. package/lib/commands/permit/role-menus-set.js +1 -1
  124. package/lib/commands/permit/role-menus.js +1 -1
  125. package/lib/commands/permit/shared.js +1 -1
  126. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  127. package/lib/commands/project/create/format-elapsed.js +1 -1
  128. package/lib/commands/project/create/main.js +1 -1
  129. package/lib/commands/project/create/non-interactive.js +1 -1
  130. package/lib/commands/project/create/project-template-path.js +1 -1
  131. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  132. package/lib/commands/project/create/use-format-code.js +1 -1
  133. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  134. package/lib/commands/project/index.js +1 -1
  135. package/lib/commands/project/init.js +1 -1
  136. package/lib/commands/project/upgrade.js +1 -1
  137. package/lib/commands/registry.js +1 -1
  138. package/lib/commands/role/create.js +1 -1
  139. package/lib/commands/role/delete.js +1 -1
  140. package/lib/commands/role/detail.js +1 -1
  141. package/lib/commands/role/index.js +1 -1
  142. package/lib/commands/role/list.js +1 -1
  143. package/lib/commands/role/shared.js +1 -1
  144. package/lib/commands/role/update.js +1 -1
  145. package/lib/commands/role/user-add.js +1 -1
  146. package/lib/commands/role/user-remove.js +1 -1
  147. package/lib/commands/role/user-resolve.js +1 -1
  148. package/lib/commands/run/index.js +1 -1
  149. package/lib/commands/schema.js +1 -1
  150. package/lib/commands/sql/create.js +1 -1
  151. package/lib/commands/sql/delete.js +1 -1
  152. package/lib/commands/sql/detail.js +1 -1
  153. package/lib/commands/sql/exec.js +1 -1
  154. package/lib/commands/sql/index.js +1 -1
  155. package/lib/commands/sql/list.js +1 -1
  156. package/lib/commands/sql/pull.js +1 -1
  157. package/lib/commands/sql/push.js +1 -1
  158. package/lib/commands/sql/save.js +1 -1
  159. package/lib/commands/sql/shared.js +1 -1
  160. package/lib/commands/sql/status.js +1 -1
  161. package/lib/commands/sql/validate.js +1 -1
  162. package/lib/commands/workspace/add.js +1 -1
  163. package/lib/commands/workspace/index.js +1 -1
  164. package/lib/commands/workspace/remove.js +1 -1
  165. package/lib/config/schema.js +1 -1
  166. package/lib/constant/cdn.js +1 -1
  167. package/lib/constant/cli.js +1 -1
  168. package/lib/constant/defaults.js +1 -1
  169. package/lib/constant/domain.js +1 -1
  170. package/lib/constant/env.js +1 -1
  171. package/lib/constant/output.js +1 -1
  172. package/lib/constant/paths.js +1 -1
  173. package/lib/constant/risk.js +1 -1
  174. package/lib/context/app-resolver.js +1 -1
  175. package/lib/context/auth-resolver.js +1 -1
  176. package/lib/context/config-loader.js +1 -1
  177. package/lib/context.js +1 -1
  178. package/lib/core/alias-resolver.js +1 -1
  179. package/lib/core/api-client.js +1 -1
  180. package/lib/core/bff/config.js +1 -1
  181. package/lib/core/bff/file-system.js +1 -1
  182. package/lib/core/bff/hash.js +1 -1
  183. package/lib/core/bff/lock.js +1 -1
  184. package/lib/core/bff/utils.js +1 -1
  185. package/lib/core/db-resolver.js +1 -1
  186. package/lib/core/page/file-system.js +1 -1
  187. package/lib/core/page/hash.js +1 -1
  188. package/lib/core/page/lock.js +1 -1
  189. package/lib/core/sql-sync/config.js +1 -1
  190. package/lib/core/sql-sync/file-system.js +1 -1
  191. package/lib/core/sql-sync/hash.js +1 -1
  192. package/lib/core/sql-sync/lock.js +1 -1
  193. package/lib/core/sql-sync/utils.js +1 -1
  194. package/lib/core/sql-validator.js +1 -1
  195. package/lib/errors.js +1 -1
  196. package/lib/framework/build-all-flags.js +1 -1
  197. package/lib/framework/flags.js +1 -1
  198. package/lib/framework/help.js +1 -1
  199. package/lib/framework/index.js +1 -1
  200. package/lib/framework/output.js +1 -1
  201. package/lib/framework/response.js +1 -1
  202. package/lib/framework/runner-alias.js +1 -1
  203. package/lib/framework/runner.js +1 -1
  204. package/lib/framework/schema-export.js +1 -1
  205. package/lib/framework/types.js +1 -1
  206. package/lib/generated/build-info.js +1 -1
  207. package/lib/help.js +1 -1
  208. package/lib/skills/main.js +1 -1
  209. package/lib/skills/npx-skills-add.js +1 -1
  210. package/lib/telemetry/cli-command-trace.js +1 -1
  211. package/lib/telemetry/cli-help-trace.js +1 -1
  212. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  213. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  214. package/lib/telemetry/send-cli-trace-log.js +1 -1
  215. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  216. package/lib/utils/ai_config.js +1 -1
  217. package/lib/utils/apply-jq-filter.js +1 -1
  218. package/lib/utils/cdn-config.js +1 -1
  219. package/lib/utils/check-sdk-version.js +1 -1
  220. package/lib/utils/cli-version-check.js +1 -1
  221. package/lib/utils/cli-version-policy.js +1 -1
  222. package/lib/utils/config.js +1 -1
  223. package/lib/utils/copy-directory.js +1 -1
  224. package/lib/utils/entity-with-id.js +1 -1
  225. package/lib/utils/file-utils.js +1 -1
  226. package/lib/utils/guides-cdn.js +1 -1
  227. package/lib/utils/http-client.js +1 -1
  228. package/lib/utils/is-non-interactive.js +1 -1
  229. package/lib/utils/logger.js +1 -1
  230. package/lib/utils/params.js +1 -1
  231. package/lib/utils/platform.js +1 -1
  232. package/lib/utils/rules-cdn.js +1 -1
  233. package/lib/utils/sleep.js +1 -1
  234. package/lib/utils/template-replacer.js +1 -1
  235. package/lib/utils/update-notice.js +1 -1
  236. package/lib/utils/version.js +1 -1
  237. package/lib/utils/with-active-cookie.js +1 -1
  238. package/lib/utils/write-cli-side-channel.js +1 -1
  239. package/package.json +1 -1
@@ -1 +1 @@
1
- const a89_0x8c6c2b=a89_0x1ed9;(function(_0x5659db,_0x2891b5){const _0xf7aee3=a89_0x1ed9,_0x229d93=_0x5659db();while(!![]){try{const _0x166826=-parseInt(_0xf7aee3(0x18d))/0x1*(-parseInt(_0xf7aee3(0x1ab))/0x2)+-parseInt(_0xf7aee3(0x1c2))/0x3+parseInt(_0xf7aee3(0x1dd))/0x4+parseInt(_0xf7aee3(0x189))/0x5*(parseInt(_0xf7aee3(0x192))/0x6)+-parseInt(_0xf7aee3(0x1d6))/0x7*(-parseInt(_0xf7aee3(0x1aa))/0x8)+parseInt(_0xf7aee3(0x1bf))/0x9*(parseInt(_0xf7aee3(0x1a3))/0xa)+-parseInt(_0xf7aee3(0x1e0))/0xb;if(_0x166826===_0x2891b5)break;else _0x229d93['push'](_0x229d93['shift']());}catch(_0x4167aa){_0x229d93['push'](_0x229d93['shift']());}}}(a89_0x38e0,0xa2eec));import a89_0x2bdf88 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a89_0x1ed9(_0x561162,_0x5a6920){_0x561162=_0x561162-0x188;const _0x38e0fa=a89_0x38e0();let _0x1ed989=_0x38e0fa[_0x561162];return _0x1ed989;}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x46d79e){const _0x45eb4f=a89_0x1ed9,_0x5bd1bb=GIT_COMMIT!==_0x45eb4f(0x1d9)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x45eb4f(0x19c)](0x0,0xa)+')':VERSION,_0x1f192b=buildConfigFromFlags({}),_0x4da0d2=getCookie();console[_0x45eb4f(0x1bb)](),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1c6)](CLI_BIN_NAME+_0x45eb4f(0x1c8))),console['log'](a89_0x2bdf88[_0x45eb4f(0x1ae)]('─'[_0x45eb4f(0x1c5)](0x32))),console['log'](_0x45eb4f(0x1a5)+_0x5bd1bb),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1b0)+process[_0x45eb4f(0x1ce)]),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1d7)+process[_0x45eb4f(0x1bc)]+'\x20'+process[_0x45eb4f(0x1b1)]),console['log'](),console['log'](a89_0x2bdf88[_0x45eb4f(0x1c6)](_0x45eb4f(0x1c3))),console['log'](a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x196)['repeat'](0x1e)));const _0x3390ee=getGlobalConfigPath(),_0x58bf78=getProjectConfigPath();console[_0x45eb4f(0x1bb)](_0x45eb4f(0x193)+(_0x3390ee||a89_0x2bdf88['gray'](_0x45eb4f(0x18b)))),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1a0)+(_0x58bf78||a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x18b)))),console[_0x45eb4f(0x1bb)](),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1c6)](_0x45eb4f(0x1ad))),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x196)[_0x45eb4f(0x1c5)](0x1e)));const _0x3fc268=(_0x50237c,_0x127fa8)=>{const _0x61f047=_0x45eb4f;if(!_0x127fa8){console['log']('\x20\x20'+_0x50237c[_0x61f047(0x1c9)](0x11)+'\x20'+a89_0x2bdf88['gray'](_0x61f047(0x1b7)));return;}const _0x5a9dea=inspectCliConfigJsonFile(_0x127fa8);if(_0x5a9dea[_0x61f047(0x1a9)]==='ok')console[_0x61f047(0x1bb)]('\x20\x20'+_0x50237c[_0x61f047(0x1c9)](0x11)+'\x20'+a89_0x2bdf88[_0x61f047(0x19a)]('✓\x20Valid\x20JSON'));else{if(_0x5a9dea[_0x61f047(0x1a9)]==='empty')console[_0x61f047(0x1bb)]('\x20\x20'+_0x50237c['padEnd'](0x11)+'\x20'+a89_0x2bdf88[_0x61f047(0x1c1)](_0x61f047(0x19f)));else _0x5a9dea[_0x61f047(0x1a9)]===_0x61f047(0x1c0)?console[_0x61f047(0x1bb)]('\x20\x20'+_0x50237c[_0x61f047(0x1c9)](0x11)+'\x20'+a89_0x2bdf88[_0x61f047(0x1ae)](_0x61f047(0x18c))):(console['log']('\x20\x20'+_0x50237c[_0x61f047(0x1c9)](0x11)+'\x20'+a89_0x2bdf88[_0x61f047(0x1b5)](_0x61f047(0x19b))),console[_0x61f047(0x1bb)]('\x20\x20'+''[_0x61f047(0x1c9)](0x11)+'\x20'+a89_0x2bdf88['red'](_0x5a9dea[_0x61f047(0x1d0)])));}};_0x3fc268('Global',_0x3390ee),_0x3fc268('Project',_0x58bf78),console[_0x45eb4f(0x1bb)](),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1c6)]('\x20\x20Merged\x20Config')),console[_0x45eb4f(0x1bb)](a89_0x2bdf88['gray'](_0x45eb4f(0x196)[_0x45eb4f(0x1c5)](0x1e))),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1a4)+(_0x1f192b['appCode']||a89_0x2bdf88[_0x45eb4f(0x1b5)](_0x45eb4f(0x1ac)))),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1a2)+_0x1f192b[_0x45eb4f(0x1b3)]),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1b4)+_0x1f192b[_0x45eb4f(0x19d)]),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1be)+_0x1f192b[_0x45eb4f(0x1cc)]),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1a6)+(_0x1f192b[_0x45eb4f(0x1df)]||a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x197)))),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1db)+(_0x1f192b[_0x45eb4f(0x19e)]||a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x197)))),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1c4)+(_0x1f192b[_0x45eb4f(0x1d2)]||a89_0x2bdf88['gray'](_0x45eb4f(0x197)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1f192b[_0x45eb4f(0x1ba)]||a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x1cb)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x45eb4f(0x1cd)+(_0x1f192b[_0x45eb4f(0x1da)]??a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x1d8)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x1f192b[_0x45eb4f(0x1b6)]),console[_0x45eb4f(0x1bb)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1f192b['verbose']),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x190)+(_0x1f192b[_0x45eb4f(0x18a)]?a89_0x2bdf88['green']('(set,\x20length='+_0x1f192b[_0x45eb4f(0x18a)]['length']+')'):_0x4da0d2?a89_0x2bdf88[_0x45eb4f(0x19a)](_0x45eb4f(0x1d5)+_0x4da0d2[_0x45eb4f(0x1d4)]+')'):a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x197))));const _0x4b4daf=Object[_0x45eb4f(0x194)](_0x1f192b['apps']);if(_0x4b4daf[_0x45eb4f(0x1d4)]>0x0){console[_0x45eb4f(0x1bb)](),console['log'](a89_0x2bdf88[_0x45eb4f(0x1c6)]('\x20\x20Apps')),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x196)[_0x45eb4f(0x1c5)](0x1e)));for(const _0xc58ab6 of _0x4b4daf){const _0x2d524c=_0x1f192b[_0x45eb4f(0x198)][_0xc58ab6],_0x536a60=_0xc58ab6===_0x1f192b[_0x45eb4f(0x1df)],_0x13cf16=_0xc58ab6===_0x1f192b['currentApp'],_0x5607b0=_0x13cf16?a89_0x2bdf88[_0x45eb4f(0x19a)]('\x20←\x20current'):'',_0x1c6ee0=_0x536a60?_0x45eb4f(0x199):'';console[_0x45eb4f(0x1bb)]('\x20\x20'+_0xc58ab6+_0x1c6ee0+_0x5607b0),console['log'](_0x45eb4f(0x1b8)+_0x2d524c[_0x45eb4f(0x1d3)]);const _0x553e5b=buildAppDoctorFields(_0x2d524c,{'env':_0x1f192b['env'],'apiDir':_0x1f192b['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x45eb4f(0x1cc)],'cookie':_0x1f192b[_0x45eb4f(0x18a)]||_0x4da0d2||undefined,'accessKey':_0x1f192b[_0x45eb4f(0x195)]});console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x553e5b[_0x45eb4f(0x1b3)][_0x45eb4f(0x1a1)]+'\x20\x20'+a89_0x2bdf88[_0x45eb4f(0x1ae)]('('+_0x553e5b[_0x45eb4f(0x1b3)]['source']+')')),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x191)+_0x553e5b['apiDir'][_0x45eb4f(0x1a1)]+'\x20\x20'+a89_0x2bdf88['gray']('('+_0x553e5b[_0x45eb4f(0x1cc)]['source']+')'));const _0xc3d711=_0x553e5b[_0x45eb4f(0x18a)][_0x45eb4f(0x1a1)]?a89_0x2bdf88[_0x45eb4f(0x19a)](_0x45eb4f(0x18f)+_0x553e5b[_0x45eb4f(0x18a)][_0x45eb4f(0x1a1)][_0x45eb4f(0x1d4)]+')'):a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x197));console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1a7)+_0xc3d711+'\x20\x20'+a89_0x2bdf88[_0x45eb4f(0x1ae)]('('+_0x553e5b[_0x45eb4f(0x18a)]['source']+')'));const _0x4e449a=_0x553e5b[_0x45eb4f(0x195)][_0x45eb4f(0x1a1)]?a89_0x2bdf88[_0x45eb4f(0x19a)](_0x45eb4f(0x18f)+_0x553e5b[_0x45eb4f(0x195)][_0x45eb4f(0x1a1)][_0x45eb4f(0x1d4)]+')'):a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x197));console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1de)+_0x4e449a+'\x20\x20'+a89_0x2bdf88[_0x45eb4f(0x1ae)]('('+_0x553e5b[_0x45eb4f(0x195)][_0x45eb4f(0x1a8)]+')'));}}console[_0x45eb4f(0x1bb)](),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1c6)](_0x45eb4f(0x188))),console[_0x45eb4f(0x1bb)](a89_0x2bdf88['gray'](_0x45eb4f(0x196)[_0x45eb4f(0x1c5)](0x1e))),console['log'](_0x45eb4f(0x1bd)+getApiDomain()),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1d1)+getUserDomain()),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1c7)+getRuntimeDomain()),console[_0x45eb4f(0x1bb)](),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1c6)]('\x20\x20Auth')),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x196)[_0x45eb4f(0x1c5)](0x1e)));if(_0x4da0d2){const _0x468e67=await getIsSessionValid();console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1cf)+(_0x468e67?a89_0x2bdf88[_0x45eb4f(0x19a)](_0x45eb4f(0x18e)):a89_0x2bdf88[_0x45eb4f(0x1b5)](_0x45eb4f(0x1af))));}else console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1cf)+a89_0x2bdf88['red'](_0x45eb4f(0x1ca)));return console[_0x45eb4f(0x1bb)](),{'ok':!![]};}export const doctorDefinition={'service':a89_0x8c6c2b(0x1dc),'command':a89_0x8c6c2b(0x1b2),'description':a89_0x8c6c2b(0x1b9),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a89_0x38e0(){const _0x4c8b65=['✗\x20Expired','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','check','env','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','riskLevel','(no\x20file)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','format','log','platform','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','981dhuDPt','missing','yellow','2459679ZgLYjp','\x20\x20Config\x20Files','\x20\x20explicitAppName:\x20','repeat','bold','\x20\x20runtimeDomain:\x20\x20\x20','\x20doctor','padEnd','✗\x20Not\x20logged\x20in','(default:\x20','apiDir','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','version','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','explicitAppName','appcode','length','(set\x20via\x20file,\x20length=','245imOnuE','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(default)','unknown','pageSize','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','doctor','1558528GMbiyN','\x20\x20\x20\x20accessKey:\x20\x20','defaultApp','11788051oHVubw','\x20\x20API\x20Endpoints','130cKqmrL','cookie','(not\x20found)','(missing)','1iHqcIa','✓\x20Valid','(set,\x20length=','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','144198jjgrrg','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','accessKey','\x20\x20─','(none)','apps','\x20(default)','green','✗\x20Invalid\x20JSON','slice','locale','currentApp','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','35010IEtokQ','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','source','status','169888qGQaeB','839094BvyBsr','(not\x20set)','\x20\x20Config\x20JSON','gray'];a89_0x38e0=function(){return _0x4c8b65;};return a89_0x38e0();}
1
+ const a89_0x3d26a6=a89_0x310f;(function(_0x1f3b21,_0x301ccc){const _0xe350b1=a89_0x310f,_0x481717=_0x1f3b21();while(!![]){try{const _0x52c562=parseInt(_0xe350b1(0x1f9))/0x1*(-parseInt(_0xe350b1(0x1c8))/0x2)+parseInt(_0xe350b1(0x1d7))/0x3*(-parseInt(_0xe350b1(0x1bb))/0x4)+-parseInt(_0xe350b1(0x1f4))/0x5+-parseInt(_0xe350b1(0x1a9))/0x6+parseInt(_0xe350b1(0x1c4))/0x7*(parseInt(_0xe350b1(0x1eb))/0x8)+parseInt(_0xe350b1(0x1bf))/0x9*(-parseInt(_0xe350b1(0x1e2))/0xa)+parseInt(_0xe350b1(0x1a6))/0xb;if(_0x52c562===_0x301ccc)break;else _0x481717['push'](_0x481717['shift']());}catch(_0x4990fd){_0x481717['push'](_0x481717['shift']());}}}(a89_0x5a89,0xecfbe));import a89_0x29f5ae from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a89_0x310f(_0x4936fe,_0x25f42b){_0x4936fe=_0x4936fe-0x1a5;const _0x5a89e7=a89_0x5a89();let _0x310fac=_0x5a89e7[_0x4936fe];return _0x310fac;}function a89_0x5a89(){const _0x5f16b5=['\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','823905krXsHj','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','cookie','\x20\x20─','1967791aOxgHs','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','\x20\x20Merged\x20Config','6110LbZImL','bold','value','verbose','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','riskLevel','✓\x20Valid\x20JSON','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','format','pageSize','3wLOsua','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','apps','(not\x20found)','\x20\x20Config\x20JSON','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','appCode','90CLbblm','✗\x20Expired','(set,\x20length=','unknown','check','missing','(default)','padEnd','appcode','48XfpYHk','✗\x20Not\x20logged\x20in','read','green','red','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','doctor','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','2539500FYqUqI','\x20\x20Auth','(default:\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','485hVzrIS','raw','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','explicitAppName','\x20\x20runtimeDomain:\x20\x20\x20','source','48116475hszTvX','slice','(missing)','6291666BUawNi','arch','(none)','(set\x20via\x20file,\x20length=','locale','\x20(default)','message','defaultApp','repeat','keys','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','empty','\x20\x20Apps','platform','gray','version','status','\x20doctor','4912504rUtaJO','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','length'];a89_0x5a89=function(){return _0x5f16b5;};return a89_0x5a89();}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';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0xb5f885){const _0xa74fe3=a89_0x310f,_0x1ea6af=GIT_COMMIT!==_0xa74fe3(0x1e5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xa74fe3(0x1a7)](0x0,0xa)+')':VERSION,_0x2523fd=buildConfigFromFlags({}),_0x39c3eb=getCookie();console['log'](),console['log'](a89_0x29f5ae['bold'](CLI_BIN_NAME+_0xa74fe3(0x1ba))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)]('─'[_0xa74fe3(0x1b1)](0x32))),console['log'](_0xa74fe3(0x1ce)+_0x1ea6af),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1c0)+process[_0xa74fe3(0x1b8)]),console['log'](_0xa74fe3(0x1f7)+process[_0xa74fe3(0x1b6)]+'\x20'+process[_0xa74fe3(0x1aa)]),console['log'](),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1c9)]('\x20\x20Config\x20Files')),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1c3)[_0xa74fe3(0x1b1)](0x1e)));const _0x4dcd61=getGlobalConfigPath(),_0x1fa49b=getProjectConfigPath();console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1df)+(_0x4dcd61||a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1dd)))),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1da)+(_0x1fa49b||a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1dd)))),console['log'](),console['log'](a89_0x29f5ae[_0xa74fe3(0x1c9)](_0xa74fe3(0x1de))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)]('\x20\x20─'[_0xa74fe3(0x1b1)](0x1e)));const _0x434b6c=(_0x452b9b,_0x511548)=>{const _0x3b61df=_0xa74fe3;if(!_0x511548){console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b[_0x3b61df(0x1e9)](0x11)+'\x20'+a89_0x29f5ae[_0x3b61df(0x1b7)]('(no\x20file)'));return;}const _0x4fdc5d=inspectCliConfigJsonFile(_0x511548);if(_0x4fdc5d[_0x3b61df(0x1b9)]==='ok')console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b[_0x3b61df(0x1e9)](0x11)+'\x20'+a89_0x29f5ae[_0x3b61df(0x1ee)](_0x3b61df(0x1d2)));else{if(_0x4fdc5d['status']===_0x3b61df(0x1b4))console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b[_0x3b61df(0x1e9)](0x11)+'\x20'+a89_0x29f5ae['yellow'](_0x3b61df(0x1db)));else _0x4fdc5d['status']===_0x3b61df(0x1e7)?console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b['padEnd'](0x11)+'\x20'+a89_0x29f5ae['gray'](_0x3b61df(0x1a8))):(console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b[_0x3b61df(0x1e9)](0x11)+'\x20'+a89_0x29f5ae['red']('✗\x20Invalid\x20JSON')),console[_0x3b61df(0x1d9)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a89_0x29f5ae[_0x3b61df(0x1ef)](_0x4fdc5d[_0x3b61df(0x1af)])));}};_0x434b6c('Global',_0x4dcd61),_0x434b6c('Project',_0x1fa49b),console[_0xa74fe3(0x1d9)](),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1c9)](_0xa74fe3(0x1c7))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae['gray'](_0xa74fe3(0x1c3)['repeat'](0x1e))),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1cc)+(_0x2523fd[_0xa74fe3(0x1e1)]||a89_0x29f5ae[_0xa74fe3(0x1ef)]('(not\x20set)'))),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1f2)+_0x2523fd[_0xa74fe3(0x1c6)]),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1c5)+_0x2523fd[_0xa74fe3(0x1ad)]),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1be)+_0x2523fd[_0xa74fe3(0x1c1)]),console[_0xa74fe3(0x1d9)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x2523fd[_0xa74fe3(0x1b0)]||a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab)))),console['log'](_0xa74fe3(0x1fb)+(_0x2523fd['currentApp']||a89_0x29f5ae['gray'](_0xa74fe3(0x1ab)))),console[_0xa74fe3(0x1d9)]('\x20\x20explicitAppName:\x20'+(_0x2523fd[_0xa74fe3(0x1fc)]||a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab)))),console[_0xa74fe3(0x1d9)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2523fd[_0xa74fe3(0x1d5)]||a89_0x29f5ae['gray'](_0xa74fe3(0x1f6)+DEFAULT_CONFIG_VALUES[_0xa74fe3(0x1d5)]+')'))),console['log'](_0xa74fe3(0x1d4)+(_0x2523fd[_0xa74fe3(0x1d6)]??a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1e8)))),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1cf)+_0x2523fd[_0xa74fe3(0x1d1)]),console[_0xa74fe3(0x1d9)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2523fd[_0xa74fe3(0x1cb)]),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1cd)+(_0x2523fd[_0xa74fe3(0x1c2)]?a89_0x29f5ae[_0xa74fe3(0x1ee)](_0xa74fe3(0x1e4)+_0x2523fd[_0xa74fe3(0x1c2)][_0xa74fe3(0x1bd)]+')'):_0x39c3eb?a89_0x29f5ae['green'](_0xa74fe3(0x1ac)+_0x39c3eb[_0xa74fe3(0x1bd)]+')'):a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab))));const _0x47324b=Object[_0xa74fe3(0x1b2)](_0x2523fd[_0xa74fe3(0x1dc)]);if(_0x47324b[_0xa74fe3(0x1bd)]>0x0){console[_0xa74fe3(0x1d9)](),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1c9)](_0xa74fe3(0x1b5))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1c3)[_0xa74fe3(0x1b1)](0x1e)));for(const _0xf934d4 of _0x47324b){const _0x28f80b=_0x2523fd[_0xa74fe3(0x1dc)][_0xf934d4],_0x24c044=_0xf934d4===_0x2523fd[_0xa74fe3(0x1b0)],_0x4ed27a=_0xf934d4===_0x2523fd['currentApp'],_0x59a084=_0x4ed27a?a89_0x29f5ae[_0xa74fe3(0x1ee)]('\x20←\x20current'):'',_0xbc2bc3=_0x24c044?_0xa74fe3(0x1ae):'';console['log']('\x20\x20'+_0xf934d4+_0xbc2bc3+_0x59a084),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1b3)+_0x28f80b[_0xa74fe3(0x1ea)]);const _0x458045=buildAppDoctorFields(_0x28f80b,{'env':_0x2523fd[_0xa74fe3(0x1c6)],'apiDir':_0x2523fd[_0xa74fe3(0x1fa)][_0xa74fe3(0x1c1)]||DEFAULT_CONFIG_VALUES[_0xa74fe3(0x1c1)],'cookie':_0x2523fd['cookie']||_0x39c3eb||undefined,'accessKey':_0x2523fd[_0xa74fe3(0x1e0)]});console[_0xa74fe3(0x1d9)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x458045[_0xa74fe3(0x1c6)][_0xa74fe3(0x1ca)]+'\x20\x20'+a89_0x29f5ae[_0xa74fe3(0x1b7)]('('+_0x458045[_0xa74fe3(0x1c6)][_0xa74fe3(0x1a5)]+')')),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1f8)+_0x458045[_0xa74fe3(0x1c1)][_0xa74fe3(0x1ca)]+'\x20\x20'+a89_0x29f5ae[_0xa74fe3(0x1b7)]('('+_0x458045[_0xa74fe3(0x1c1)]['source']+')'));const _0x37a282=_0x458045['cookie'][_0xa74fe3(0x1ca)]?a89_0x29f5ae[_0xa74fe3(0x1ee)](_0xa74fe3(0x1e4)+_0x458045[_0xa74fe3(0x1c2)][_0xa74fe3(0x1ca)][_0xa74fe3(0x1bd)]+')'):a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab));console['log'](_0xa74fe3(0x1f0)+_0x37a282+'\x20\x20'+a89_0x29f5ae[_0xa74fe3(0x1b7)]('('+_0x458045[_0xa74fe3(0x1c2)][_0xa74fe3(0x1a5)]+')'));const _0x5d9b31=_0x458045['accessKey']['value']?a89_0x29f5ae[_0xa74fe3(0x1ee)](_0xa74fe3(0x1e4)+_0x458045[_0xa74fe3(0x1e0)][_0xa74fe3(0x1ca)]['length']+')'):a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab));console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1d0)+_0x5d9b31+'\x20\x20'+a89_0x29f5ae['gray']('('+_0x458045[_0xa74fe3(0x1e0)][_0xa74fe3(0x1a5)]+')'));}}console[_0xa74fe3(0x1d9)](),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1c9)]('\x20\x20API\x20Endpoints')),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1c3)[_0xa74fe3(0x1b1)](0x1e))),console['log'](_0xa74fe3(0x1d3)+getApiDomain()),console[_0xa74fe3(0x1d9)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1fd)+getRuntimeDomain()),console[_0xa74fe3(0x1d9)](),console['log'](a89_0x29f5ae[_0xa74fe3(0x1c9)](_0xa74fe3(0x1f5))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1c3)[_0xa74fe3(0x1b1)](0x1e)));if(_0x39c3eb){const _0x4fb6f3=await getIsSessionValid();console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1d8)+(_0x4fb6f3?a89_0x29f5ae['green'](_0xa74fe3(0x1f3)):a89_0x29f5ae[_0xa74fe3(0x1ef)](_0xa74fe3(0x1e3))));}else console['log'](_0xa74fe3(0x1d8)+a89_0x29f5ae[_0xa74fe3(0x1ef)](_0xa74fe3(0x1ec)));return console[_0xa74fe3(0x1d9)](),{'ok':!![]};}export const doctorDefinition={'service':a89_0x3d26a6(0x1f1),'command':a89_0x3d26a6(0x1e6),'description':a89_0x3d26a6(0x1bc),'risk':a89_0x3d26a6(0x1ed),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a90_0x132d56=a90_0x1866;function a90_0x1866(_0x5897bb,_0x22f1c5){_0x5897bb=_0x5897bb-0xea;const _0x3cd43a=a90_0x3cd4();let _0x186687=_0x3cd43a[_0x5897bb];return _0x186687;}(function(_0x2cd9c2,_0x3ad19c){const _0x5f13f1=a90_0x1866,_0x36edfe=_0x2cd9c2();while(!![]){try{const _0x3d8914=parseInt(_0x5f13f1(0x111))/0x1*(parseInt(_0x5f13f1(0x106))/0x2)+-parseInt(_0x5f13f1(0xf0))/0x3+parseInt(_0x5f13f1(0xfe))/0x4+-parseInt(_0x5f13f1(0x10a))/0x5+-parseInt(_0x5f13f1(0xf4))/0x6+-parseInt(_0x5f13f1(0xef))/0x7*(-parseInt(_0x5f13f1(0x118))/0x8)+parseInt(_0x5f13f1(0x107))/0x9;if(_0x3d8914===_0x3ad19c)break;else _0x36edfe['push'](_0x36edfe['shift']());}catch(_0xdc8a13){_0x36edfe['push'](_0x36edfe['shift']());}}}(a90_0x3cd4,0xcf5ac));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 a90_0x3cd4(){const _0x9a9cf9=['cwd','Usage:\x20','792qbQpiE','Use\x20`','\x20\x20Apps:\x20','App\x20code\x20to\x20initialize\x20with','write','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','some','98259wSnZLr','3422409wGIMHb','bool','global','\x20\x20Default:\x20','289086AoMvXp','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','yes','init','str','Write\x20to\x20global\x20config\x20instead\x20of\x20project','message','flagMissing','检测到旧配置文件,正在自动升级...\x0a','3593260eIKMWh','project','map','production','appCode','\x0a✓\x20Successfully\x20initialized\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','appcode','19808KIsfAo','1119393YTpVlg','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','valid','4494795eXLalH','\x20config','log','boolean','\x20\x20Config:\x20','env','string','53hDPpAf','../../commands/project/init.js','nonInteractive','Target\x20environment','custom'];a90_0x3cd4=function(){return _0x9a9cf9;};return a90_0x3cd4();}import{RABETBASE_ENV_VALUES}from'../../constant/env.js';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';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x434322){return{'appCode':_0x434322,'appName':_0x434322};}function writeInitConfig(_0x199a0c,_0x9f8c93,_0x1418e2){const _0x14e1c5=a90_0x1866,_0x3c7b51=resolveWriteConfigPath(_0x199a0c),_0x2db443=buildCanonicalProjectConfig({},{'appCodes':_0x9f8c93[_0x14e1c5(0x100)](_0x15ff00=>_0x15ff00[_0x14e1c5(0x102)]),'env':_0x1418e2,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x3c7b51,_0x2db443);const _0x4a67c8=_0x199a0c===_0x14e1c5(0xf2)?_0x14e1c5(0xf2):_0x14e1c5(0xff);console[_0x14e1c5(0x10c)](_0x14e1c5(0x103)+_0x4a67c8+_0x14e1c5(0x10b)),console['log'](_0x14e1c5(0xea)+_0x9f8c93[_0x14e1c5(0x100)](_0x20c841=>_0x20c841['appCode'])['join'](',\x20')),console[_0x14e1c5(0x10c)](_0x14e1c5(0xf3)+_0x2db443['defaultApp']),console['log']('\x20\x20Env:\x20'+_0x2db443[_0x14e1c5(0x10f)]),console[_0x14e1c5(0x10c)](_0x14e1c5(0x10e)+_0x3c7b51);}async function runSmartInit(_0x1748e8){const _0x467255=a90_0x1866,_0xeaaca0=process[_0x467255(0x116)](),_0x509b3f=_0x1748e8[_0x467255(0xf1)]('global')?'global':'project',_0xff3643=_0x1748e8[_0x467255(0xf9)](_0x467255(0x10f))||_0x467255(0x101),_0xd995a5=_0x1748e8[_0x467255(0xf9)](_0x467255(0x105))||undefined,_0x2f2e8f=_0x1748e8[_0x467255(0xf1)]('project');if(_0x2f2e8f){const {initConfig:_0x290bf1}=await import(_0x467255(0x112));return _0x290bf1({'appcode':_0xd995a5,'env':_0xff3643,'autoYes':_0x1748e8[_0x467255(0xf1)](_0x467255(0xf7))});}if(_0x509b3f===_0x467255(0xff)){const _0x5b0d0e=existsSync(resolve(_0xeaaca0,NEW_CONFIG_NAME)),_0x41444a=LEGACY_CONFIG_NAMES[_0x467255(0xee)](_0x2c65fe=>existsSync(resolve(_0xeaaca0,_0x2c65fe)));if(_0x41444a&&!_0x5b0d0e)return console[_0x467255(0x10c)](_0x467255(0xfd)),upgradeApp(_0x1748e8[_0x467255(0x113)],{'yes':_0x1748e8['bool'](_0x467255(0xf7))});if(_0x5b0d0e)throw CliErrors['validation'](_0x467255(0x108),_0x467255(0x119)+CLI_BIN_NAME+_0x467255(0x104));}if(_0xd995a5){const _0x1a50b5=validateAppcode(_0xd995a5);if(!_0x1a50b5[_0x467255(0x109)])throw CliErrors['validation'](_0x1a50b5[_0x467255(0xfb)]);writeInitConfig(_0x509b3f,[syntheticApp(_0xd995a5)],_0xff3643);return;}if(_0x1748e8[_0x467255(0x113)])throw CliErrors[_0x467255(0xfc)]('appcode',_0x467255(0x117)+CLI_BIN_NAME+_0x467255(0xf5));const _0x5dd6fb=getCookie(),_0x306d0f=await selectMultipleApps(_0x5dd6fb),_0x3a8de8=_0x306d0f===_0x467255(0x115)?[syntheticApp(await promptCustomAppcode())]:_0x306d0f;writeInitConfig(_0x509b3f,_0x3a8de8,_0xff3643);}const initFlags=[{'name':a90_0x132d56(0xf2),'type':a90_0x132d56(0x10d),'description':a90_0x132d56(0xfa),'default':![]},{'name':a90_0x132d56(0x10f),'type':'string','description':a90_0x132d56(0x114),'default':a90_0x132d56(0x101),'enum':[...RABETBASE_ENV_VALUES]},{'name':a90_0x132d56(0x105),'type':a90_0x132d56(0x110),'description':a90_0x132d56(0xeb)},{'name':'project','type':'boolean','description':a90_0x132d56(0xf6),'default':![]},{'name':a90_0x132d56(0xf7),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a90_0x132d56(0xf8),'command':'run','description':a90_0x132d56(0xed),'risk':a90_0x132d56(0xec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x2c29e0){return await runSmartInit(_0x2c29e0),{'ok':!![]};}}];
1
+ const a90_0x37dfb3=a90_0x1531;(function(_0x25c550,_0x506559){const _0x4e0433=a90_0x1531,_0x3f3578=_0x25c550();while(!![]){try{const _0x46e1b7=-parseInt(_0x4e0433(0x1a2))/0x1*(-parseInt(_0x4e0433(0x1bf))/0x2)+parseInt(_0x4e0433(0x1c9))/0x3*(parseInt(_0x4e0433(0x1b8))/0x4)+parseInt(_0x4e0433(0x1a5))/0x5+-parseInt(_0x4e0433(0x1c1))/0x6*(-parseInt(_0x4e0433(0x1ad))/0x7)+-parseInt(_0x4e0433(0x1a7))/0x8+parseInt(_0x4e0433(0x1c0))/0x9*(-parseInt(_0x4e0433(0x1be))/0xa)+-parseInt(_0x4e0433(0x1d0))/0xb;if(_0x46e1b7===_0x506559)break;else _0x3f3578['push'](_0x3f3578['shift']());}catch(_0x59975e){_0x3f3578['push'](_0x3f3578['shift']());}}}(a90_0x28bb,0x410ef));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';function a90_0x1531(_0x5d908a,_0x5347a8){_0x5d908a=_0x5d908a-0x1a0;const _0x28bb6f=a90_0x28bb();let _0x15319b=_0x28bb6f[_0x5d908a];return _0x15319b;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';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';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x2f5b85){return{'appCode':_0x2f5b85,'appName':_0x2f5b85};}function writeInitConfig(_0x4e39af,_0x56839c,_0x1fddf1){const _0x5210e7=a90_0x1531,_0x425bf5=resolveWriteConfigPath(_0x4e39af),_0x5aa008=buildCanonicalProjectConfig({},{'appCodes':_0x56839c['map'](_0x1da813=>_0x1da813['appCode']),'env':_0x1fddf1,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x5210e7(0x1cc)]()}});writeConfigFile(_0x425bf5,_0x5aa008);const _0x23d1a3=_0x4e39af==='global'?_0x5210e7(0x1ce):_0x5210e7(0x1cf);console['log']('\x0a✓\x20Successfully\x20initialized\x20'+_0x23d1a3+_0x5210e7(0x1b7)),console[_0x5210e7(0x1b3)](_0x5210e7(0x1bc)+_0x56839c[_0x5210e7(0x1b6)](_0x2552b3=>_0x2552b3[_0x5210e7(0x1b2)])[_0x5210e7(0x1af)](',\x20')),console['log'](_0x5210e7(0x1b1)+_0x5aa008[_0x5210e7(0x1a6)]),console[_0x5210e7(0x1b3)](_0x5210e7(0x1a8)+_0x5aa008[_0x5210e7(0x1ca)]),console[_0x5210e7(0x1b3)](_0x5210e7(0x1ab)+_0x425bf5);}function a90_0x28bb(){const _0x32e8a0=['\x20\x20Config:\x20','boolean','37667oGCsdz','nonInteractive','join','validation','\x20\x20Default:\x20','appCode','log','Target\x20environment','Use\x20`','map','\x20config','16tIVtkp','App\x20code\x20to\x20initialize\x20with','../../commands/project/init.js','appcode','\x20\x20Apps:\x20','production','1294420ioQwEF','878BvByqv','36UtbaFF','48HWrwWd','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','run','some','write','init','flagMissing','Auto-confirm\x20prompts','250293KIWDpL','env','cwd','toLocaleString','yes','global','project','3738669UEnpnK','检测到旧配置文件,正在自动升级...\x0a','bool','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','1171YuOUSC','Write\x20to\x20global\x20config\x20instead\x20of\x20project','string','2459490lnBwdx','defaultApp','2068904bBazyw','\x20\x20Env:\x20','custom','message'];a90_0x28bb=function(){return _0x32e8a0;};return a90_0x28bb();}async function runSmartInit(_0x50d085){const _0xf9efbb=a90_0x1531,_0x22d51a=process[_0xf9efbb(0x1cb)](),_0x3581a0=_0x50d085['bool'](_0xf9efbb(0x1ce))?_0xf9efbb(0x1ce):'project',_0x2710f7=_0x50d085['str'](_0xf9efbb(0x1ca))||_0xf9efbb(0x1bd),_0x35adc2=_0x50d085['str'](_0xf9efbb(0x1bb))||undefined,_0x4f82c0=_0x50d085[_0xf9efbb(0x1a0)](_0xf9efbb(0x1cf));if(_0x4f82c0){const {initConfig:_0x4fdf6f}=await import(_0xf9efbb(0x1ba));return _0x4fdf6f({'appcode':_0x35adc2,'env':_0x2710f7,'autoYes':_0x50d085[_0xf9efbb(0x1a0)]('yes')});}if(_0x3581a0==='project'){const _0x132df2=existsSync(resolve(_0x22d51a,NEW_CONFIG_NAME)),_0x1217e0=LEGACY_CONFIG_NAMES[_0xf9efbb(0x1c4)](_0x4f2af3=>existsSync(resolve(_0x22d51a,_0x4f2af3)));if(_0x1217e0&&!_0x132df2)return console[_0xf9efbb(0x1b3)](_0xf9efbb(0x1d1)),upgradeApp(_0x50d085['nonInteractive'],{'yes':_0x50d085[_0xf9efbb(0x1a0)](_0xf9efbb(0x1cd))});if(_0x132df2)throw CliErrors['validation']('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0xf9efbb(0x1b5)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x35adc2){const _0x42f596=validateAppcode(_0x35adc2);if(!_0x42f596['valid'])throw CliErrors[_0xf9efbb(0x1b0)](_0x42f596[_0xf9efbb(0x1aa)]);writeInitConfig(_0x3581a0,[syntheticApp(_0x35adc2)],_0x2710f7);return;}if(_0x50d085[_0xf9efbb(0x1ae)])throw CliErrors[_0xf9efbb(0x1c7)](_0xf9efbb(0x1bb),'Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x799662=getCookie(),_0x20ec20=await selectMultipleApps(_0x799662),_0x167adc=_0x20ec20===_0xf9efbb(0x1a9)?[syntheticApp(await promptCustomAppcode())]:_0x20ec20;writeInitConfig(_0x3581a0,_0x167adc,_0x2710f7);}const initFlags=[{'name':a90_0x37dfb3(0x1ce),'type':a90_0x37dfb3(0x1ac),'description':a90_0x37dfb3(0x1a3),'default':![]},{'name':a90_0x37dfb3(0x1ca),'type':a90_0x37dfb3(0x1a4),'description':a90_0x37dfb3(0x1b4),'default':a90_0x37dfb3(0x1bd),'enum':[...RABETBASE_ENV_VALUES]},{'name':a90_0x37dfb3(0x1bb),'type':'string','description':a90_0x37dfb3(0x1b9)},{'name':a90_0x37dfb3(0x1cf),'type':a90_0x37dfb3(0x1ac),'description':a90_0x37dfb3(0x1a1),'default':![]},{'name':a90_0x37dfb3(0x1cd),'type':'boolean','description':a90_0x37dfb3(0x1c8),'default':![]}];export const initDefinitions=[{'service':a90_0x37dfb3(0x1c6),'command':a90_0x37dfb3(0x1c3),'description':a90_0x37dfb3(0x1c2),'risk':a90_0x37dfb3(0x1c5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x4168d9){return await runSmartInit(_0x4168d9),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a91_0x7a69(_0x4f628a,_0x48544b){_0x4f628a=_0x4f628a-0xe9;const _0x428846=a91_0x4288();let _0x7a69fb=_0x428846[_0x4f628a];return _0x7a69fb;}(function(_0x1ac094,_0x10d67d){const _0x2facb7=a91_0x7a69,_0x409e0f=_0x1ac094();while(!![]){try{const _0x34cd92=parseInt(_0x2facb7(0xee))/0x1*(parseInt(_0x2facb7(0xf0))/0x2)+-parseInt(_0x2facb7(0xed))/0x3*(parseInt(_0x2facb7(0xf3))/0x4)+parseInt(_0x2facb7(0xef))/0x5+parseInt(_0x2facb7(0xe9))/0x6+parseInt(_0x2facb7(0xec))/0x7+-parseInt(_0x2facb7(0xea))/0x8*(-parseInt(_0x2facb7(0xf2))/0x9)+-parseInt(_0x2facb7(0xeb))/0xa*(parseInt(_0x2facb7(0xf1))/0xb);if(_0x34cd92===_0x10d67d)break;else _0x409e0f['push'](_0x409e0f['shift']());}catch(_0x505477){_0x409e0f['push'](_0x409e0f['shift']());}}}(a91_0x4288,0x89eea));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a91_0x4288(){const _0x4fd271=['3OrsAmZ','180497vzCiBR','4056835MWmHOp','2sNAAbz','4345mZaQEF','1703772xkDpcZ','1506704SipIXZ','6219882WzSYjm','16aujwXI','65650SzMqVC','7893858TxiXtB'];a91_0x4288=function(){return _0x4fd271;};return a91_0x4288();}
1
+ (function(_0x16f11e,_0x1c93ee){const _0x1dbe07=a91_0x12d6,_0x552067=_0x16f11e();while(!![]){try{const _0x3679cf=parseInt(_0x1dbe07(0xea))/0x1+-parseInt(_0x1dbe07(0xec))/0x2*(-parseInt(_0x1dbe07(0xe6))/0x3)+parseInt(_0x1dbe07(0xe5))/0x4*(parseInt(_0x1dbe07(0xe2))/0x5)+parseInt(_0x1dbe07(0xeb))/0x6*(parseInt(_0x1dbe07(0xe3))/0x7)+parseInt(_0x1dbe07(0xe8))/0x8*(-parseInt(_0x1dbe07(0xe4))/0x9)+parseInt(_0x1dbe07(0xe9))/0xa*(-parseInt(_0x1dbe07(0xe1))/0xb)+-parseInt(_0x1dbe07(0xe7))/0xc;if(_0x3679cf===_0x1c93ee)break;else _0x552067['push'](_0x552067['shift']());}catch(_0x5c2a0c){_0x552067['push'](_0x552067['shift']());}}}(a91_0x437b,0xb241c));function a91_0x437b(){const _0x4da1d5=['55090lutCaz','199382KvTXIb','1650RbPoZZ','1027318VdCQdO','22HDNXAd','35CHspxW','31997sibCfG','626499PJhprv','133940zeMZWq','3ZtnyvT','4194324nIeHNn','128VcpGbN'];a91_0x437b=function(){return _0x4da1d5;};return a91_0x437b();}function a91_0x12d6(_0x505428,_0x411549){_0x505428=_0x505428-0xe1;const _0x437b47=a91_0x437b();let _0x12d667=_0x437b47[_0x505428];return _0x12d667;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a92_0x265691=a92_0x4dd8;(function(_0x45df28,_0x37dc67){const _0x46dad9=a92_0x4dd8,_0x808266=_0x45df28();while(!![]){try{const _0x5d14e7=parseInt(_0x46dad9(0x1ad))/0x1*(-parseInt(_0x46dad9(0x1bc))/0x2)+-parseInt(_0x46dad9(0x1b4))/0x3+-parseInt(_0x46dad9(0x1ae))/0x4+parseInt(_0x46dad9(0x1b6))/0x5*(-parseInt(_0x46dad9(0x1b1))/0x6)+-parseInt(_0x46dad9(0x1c4))/0x7*(parseInt(_0x46dad9(0x1a9))/0x8)+-parseInt(_0x46dad9(0x1ca))/0x9+-parseInt(_0x46dad9(0x1bb))/0xa*(-parseInt(_0x46dad9(0x1af))/0xb);if(_0x5d14e7===_0x37dc67)break;else _0x808266['push'](_0x808266['shift']());}catch(_0x43f1b4){_0x808266['push'](_0x808266['shift']());}}}(a92_0x1bed,0xa490d));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a92_0x4dd8(_0x39bb30,_0x11dc84){_0x39bb30=_0x39bb30-0x1a9;const _0x1bed34=a92_0x1bed();let _0x4dd80d=_0x1bed34[_0x39bb30];return _0x4dd80d;}export const NUDGE_OPT_OUT_ENV=a92_0x265691(0x1b8);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled','auth_required',a92_0x265691(0x1ac),a92_0x265691(0x1b2),a92_0x265691(0x1c9),a92_0x265691(0x1c0),'validation_error',a92_0x265691(0x1b5)]),defaultWriter=_0x313ba5=>{const _0x44e5fb=a92_0x265691;process[_0x44e5fb(0x1c7)][_0x44e5fb(0x1bd)](_0x313ba5);};export function shouldNudgeForError(_0x17d9a8,_0x180b61){const _0x228b51=a92_0x265691;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x180b61[_0x228b51(0x1ab)]===_0x228b51(0x1aa)&&_0x180b61[_0x228b51(0x1cd)]===_0x228b51(0x1cc))return![];if(_0x17d9a8 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x228b51(0x1be)](_0x17d9a8['code']);return!![];}export function printIssueReportNudgeForError(_0x21559b,_0x20a55a,_0x3d28dc=defaultWriter){if(!shouldNudgeForError(_0x21559b,_0x20a55a))return;const _0x8c9e3b=buildSuggestedTitle(_0x21559b,_0x20a55a);_0x3d28dc(formatNudge(_0x8c9e3b));}function a92_0x1bed(){const _0x35e96f=['trim','1791636TvVsrS','network_error','935805xYIqIg','Hit\x20a\x20','RABETBASE_DISABLE_ISSUE_NUDGE','slice','\x20issue\x20report\x20\x5c','3010CPtfJz','1141492gqbtJK','write','has','=1\x20to\x20silence\x20this\x20hint.','flag_missing','\x20\x20Set\x20','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','replace','27237RKUOPz','message','length','stderr','\x22\x20\x5c','unknown_command','502281TYbUNJ','\x20\x20\x20\x20--title\x20\x22','report','command','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20bug?\x20Help\x20us\x20fix\x20it:','256meFjIi','issue','service','config_missing','1aemXgn','3452200hgWLbJ','139645iVRXVn','join','30FaLYaT','not_in_project'];a92_0x1bed=function(){return _0x35e96f;};return a92_0x1bed();}function buildSuggestedTitle(_0x15910a,_0x3ab80e){const _0x46d8bf=a92_0x265691,_0x171469=_0x15910a instanceof Error?_0x15910a[_0x46d8bf(0x1c5)]:String(_0x15910a),_0x3ef6c0=_0x171469['replace'](/[\r\n]+/g,'\x20')[_0x46d8bf(0x1c3)](/\s+/g,'\x20')[_0x46d8bf(0x1b3)]()[_0x46d8bf(0x1b9)](0x0,0x78)[_0x46d8bf(0x1c3)](/"/g,'\x5c\x22'),_0x3a2674=CLI_BIN_NAME+'\x20'+_0x3ab80e['service']+'\x20'+_0x3ab80e[_0x46d8bf(0x1cd)];return _0x3ef6c0[_0x46d8bf(0x1c6)]>0x0?_0x3a2674+':\x20'+_0x3ef6c0:_0x3a2674;}function formatNudge(_0x4e2b39){const _0x173b2b=a92_0x265691;return['',_0x173b2b(0x1b7)+CLI_BIN_NAME+_0x173b2b(0x1cf),'\x20\x20'+CLI_BIN_NAME+_0x173b2b(0x1ba),_0x173b2b(0x1cb)+_0x4e2b39+_0x173b2b(0x1c8),_0x173b2b(0x1c2),_0x173b2b(0x1ce),_0x173b2b(0x1c1)+NUDGE_OPT_OUT_ENV+_0x173b2b(0x1bf),''][_0x173b2b(0x1b0)]('\x0a');}
1
+ const a92_0x3dbb33=a92_0x522a;(function(_0x2fb5ab,_0x4cc5c7){const _0x5b96cc=a92_0x522a,_0x22d8d4=_0x2fb5ab();while(!![]){try{const _0x15b4b5=-parseInt(_0x5b96cc(0x146))/0x1+-parseInt(_0x5b96cc(0x134))/0x2*(-parseInt(_0x5b96cc(0x139))/0x3)+parseInt(_0x5b96cc(0x13f))/0x4*(-parseInt(_0x5b96cc(0x12f))/0x5)+parseInt(_0x5b96cc(0x14d))/0x6+parseInt(_0x5b96cc(0x14b))/0x7*(parseInt(_0x5b96cc(0x147))/0x8)+-parseInt(_0x5b96cc(0x13a))/0x9+-parseInt(_0x5b96cc(0x140))/0xa*(parseInt(_0x5b96cc(0x143))/0xb);if(_0x15b4b5===_0x4cc5c7)break;else _0x22d8d4['push'](_0x22d8d4['shift']());}catch(_0x4cb5ab){_0x22d8d4['push'](_0x22d8d4['shift']());}}}(a92_0x4cc4,0x5451c));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a92_0x3dbb33(0x131);const NUDGE_SUPPRESSED_CODES=new Set([a92_0x3dbb33(0x130),a92_0x3dbb33(0x148),a92_0x3dbb33(0x13b),'not_in_project',a92_0x3dbb33(0x138),a92_0x3dbb33(0x142),a92_0x3dbb33(0x135),'network_error']),defaultWriter=_0x5f5475=>{const _0x100e00=a92_0x3dbb33;process['stderr'][_0x100e00(0x13c)](_0x5f5475);};export function shouldNudgeForError(_0x530901,_0x24bdd5){const _0x23bf1d=a92_0x3dbb33;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x24bdd5['service']===_0x23bf1d(0x145)&&_0x24bdd5[_0x23bf1d(0x12e)]==='report')return![];if(_0x530901 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x530901[_0x23bf1d(0x14e)]);return!![];}function a92_0x4cc4(){const _0x54819e=['validation_error','\x20issue\x20report\x20\x5c','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','unknown_command','1074dZqPIg','4157703eEqiWe','config_missing','write','\x20\x20Set\x20','length','32CLMcaO','96860icsebs','\x20\x20\x20\x20--title\x20\x22','flag_missing','242ZSFbNr','replace','issue','150736LdvlLj','272dxZjfF','auth_required','=1\x20to\x20silence\x20this\x20hint.','slice','139342BxTKtf','\x22\x20\x5c','2199210TmUxbr','code','command','233805nTWzwc','cancelled','RABETBASE_DISABLE_ISSUE_NUDGE','join','\x20bug?\x20Help\x20us\x20fix\x20it:','2804kEKDmp'];a92_0x4cc4=function(){return _0x54819e;};return a92_0x4cc4();}export function printIssueReportNudgeForError(_0x2b3c81,_0x7d2d0d,_0x1badb1=defaultWriter){if(!shouldNudgeForError(_0x2b3c81,_0x7d2d0d))return;const _0x4e1d11=buildSuggestedTitle(_0x2b3c81,_0x7d2d0d);_0x1badb1(formatNudge(_0x4e1d11));}function a92_0x522a(_0x907b38,_0x118495){_0x907b38=_0x907b38-0x12e;const _0x4cc41d=a92_0x4cc4();let _0x522ae7=_0x4cc41d[_0x907b38];return _0x522ae7;}function buildSuggestedTitle(_0x526804,_0x2fe69b){const _0x322e6f=a92_0x3dbb33,_0x17412b=_0x526804 instanceof Error?_0x526804['message']:String(_0x526804),_0x35908c=_0x17412b[_0x322e6f(0x144)](/[\r\n]+/g,'\x20')[_0x322e6f(0x144)](/\s+/g,'\x20')['trim']()[_0x322e6f(0x14a)](0x0,0x78)[_0x322e6f(0x144)](/"/g,'\x5c\x22'),_0x1bc4fb=CLI_BIN_NAME+'\x20'+_0x2fe69b['service']+'\x20'+_0x2fe69b[_0x322e6f(0x12e)];return _0x35908c[_0x322e6f(0x13e)]>0x0?_0x1bc4fb+':\x20'+_0x35908c:_0x1bc4fb;}function formatNudge(_0x26974a){const _0x30efa7=a92_0x3dbb33;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x30efa7(0x133),'\x20\x20'+CLI_BIN_NAME+_0x30efa7(0x136),_0x30efa7(0x141)+_0x26974a+_0x30efa7(0x14c),_0x30efa7(0x137),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x30efa7(0x13d)+NUDGE_OPT_OUT_ENV+_0x30efa7(0x149),''][_0x30efa7(0x132)]('\x0a');}
@@ -1 +1 @@
1
- const a93_0x9bdfa4=a93_0x2532;(function(_0x22af7f,_0x3f318e){const _0xba8b2=a93_0x2532,_0x401bd5=_0x22af7f();while(!![]){try{const _0x4f3bf7=parseInt(_0xba8b2(0x13a))/0x1+-parseInt(_0xba8b2(0x150))/0x2+parseInt(_0xba8b2(0x134))/0x3*(parseInt(_0xba8b2(0x127))/0x4)+parseInt(_0xba8b2(0x12c))/0x5+-parseInt(_0xba8b2(0x146))/0x6+parseInt(_0xba8b2(0x147))/0x7*(-parseInt(_0xba8b2(0x140))/0x8)+parseInt(_0xba8b2(0x135))/0x9;if(_0x4f3bf7===_0x3f318e)break;else _0x401bd5['push'](_0x401bd5['shift']());}catch(_0x59a581){_0x401bd5['push'](_0x401bd5['shift']());}}}(a93_0x3ae7,0x3b74b));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a93_0x9bdfa4(0x13e);export const issueReport={'service':a93_0x9bdfa4(0x137),'command':a93_0x9bdfa4(0x158),'description':a93_0x9bdfa4(0x145),'risk':a93_0x9bdfa4(0x12f),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a93_0x9bdfa4(0x12b),'flags':[{'name':a93_0x9bdfa4(0x125),'type':a93_0x9bdfa4(0x131),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a93_0x9bdfa4(0x120),'type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a93_0x9bdfa4(0x131),'description':a93_0x9bdfa4(0x142)}],async 'validate'(_0x1d8c48){const _0xb448d0=a93_0x9bdfa4,_0x3a8140=_0x1d8c48['str'](_0xb448d0(0x125))[_0xb448d0(0x132)](),_0x18bdd5=_0x1d8c48[_0xb448d0(0x148)](_0xb448d0(0x120))[_0xb448d0(0x132)](),_0x44ea60=_0x1d8c48['str'](DESCRIPTION_FILE_FLAG)[_0xb448d0(0x132)]();if(!_0x3a8140)throw CliErrors[_0xb448d0(0x155)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x1ece99=_0x18bdd5[_0xb448d0(0x126)]>0x0,_0x49b9c5=_0x44ea60['length']>0x0;if(_0x1ece99===_0x49b9c5)throw CliErrors[_0xb448d0(0x14a)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0xb448d0(0x128));if(_0x49b9c5){const _0x44dd3e=resolve(process[_0xb448d0(0x154)](),_0x44ea60);if(!existsSync(_0x44dd3e))throw CliErrors[_0xb448d0(0x14a)]('File\x20not\x20found:\x20'+_0x44dd3e);}},async 'dryRun'(_0x1434a2){const _0x5924df=a93_0x9bdfa4,_0x36d7dc=await prepareIssueReport(_0x1434a2);return{'method':'POST','url':_0x5924df(0x12d)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x36d7dc[_0x5924df(0x125)],'issue.description':_0x36d7dc[_0x5924df(0x120)],'issue.description_original_bytes':_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x14b)],'issue.description_truncated':_0x36d7dc[_0x5924df(0x14d)]['truncated'],'issue.description_redactions':_0x36d7dc['sanitize'][_0x5924df(0x121)],'issue.description_redaction_kinds':_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x12a)]['join'](',')}},'description':[_0x5924df(0x143),'descriptionSource:\x20'+_0x36d7dc['descriptionSource'],_0x36d7dc[_0x5924df(0x11f)]?_0x5924df(0x157)+_0x36d7dc[_0x5924df(0x11f)]:null,_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x129)]?_0x5924df(0x136)+_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x14b)]+_0x5924df(0x11d):null,_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x121)]>0x0?_0x5924df(0x152)+_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x121)]+'\x20('+_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x12a)][_0x5924df(0x124)](',\x20')+')':null][_0x5924df(0x13c)](Boolean)['join']('\x0a')};},async 'execute'(_0x20cd93){const _0x2922ab=a93_0x9bdfa4,_0x40321e=await prepareIssueReport(_0x20cd93);try{await sendPlatformIssueCollectLog({'title':_0x40321e[_0x2922ab(0x125)],'description':_0x40321e[_0x2922ab(0x120)],'sanitize':{'originalBytes':_0x40321e[_0x2922ab(0x14d)][_0x2922ab(0x14b)],'truncated':_0x40321e['sanitize'][_0x2922ab(0x129)],'redactionCount':_0x40321e[_0x2922ab(0x14d)]['redactionCount'],'redactionKinds':_0x40321e['sanitize'][_0x2922ab(0x12a)]}});}catch(_0xd63571){throw CliErrors[_0x2922ab(0x11e)](_0x2922ab(0x138)+(_0xd63571 instanceof Error?_0xd63571[_0x2922ab(0x14f)]:String(_0xd63571)),_0x2922ab(0x133));}return{'ok':!![],'message':buildResultMessage(_0x40321e[_0x2922ab(0x14d)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x2922ab(0x141),_0x2922ab(0x139),_0x2922ab(0x13b),_0x2922ab(0x12e),'issue.description_redaction_kinds'],'issue':{'title':_0x40321e['title'],'descriptionLength':_0x40321e[_0x2922ab(0x120)]['length'],'descriptionSource':_0x40321e[_0x2922ab(0x123)],..._0x40321e[_0x2922ab(0x11f)]?{'descriptionFile':_0x40321e[_0x2922ab(0x11f)]}:{},'sanitize':{'originalBytes':_0x40321e[_0x2922ab(0x14d)][_0x2922ab(0x14b)],'truncated':_0x40321e[_0x2922ab(0x14d)][_0x2922ab(0x129)],'redactions':_0x40321e[_0x2922ab(0x14d)][_0x2922ab(0x121)],'redactionKinds':_0x40321e['sanitize'][_0x2922ab(0x12a)]}}}};}};function a93_0x2532(_0xe81887,_0x5ef274){_0xe81887=_0xe81887-0x11d;const _0x3ae750=a93_0x3ae7();let _0x2532c2=_0x3ae750[_0xe81887];return _0x2532c2;}function buildResultMessage(_0x6c2189){const _0x299bb6=a93_0x9bdfa4,_0x2f278e=[];return _0x6c2189['truncated']&&_0x2f278e[_0x299bb6(0x14c)](_0x299bb6(0x153)+_0x6c2189[_0x299bb6(0x14b)]+_0x299bb6(0x11d)),_0x6c2189[_0x299bb6(0x121)]>0x0&&_0x2f278e[_0x299bb6(0x14c)](_0x299bb6(0x122)+_0x6c2189[_0x299bb6(0x121)]+_0x299bb6(0x156)+_0x6c2189[_0x299bb6(0x12a)]['join'](',\x20')),_0x2f278e[_0x299bb6(0x126)]===0x0?_0x299bb6(0x149):_0x299bb6(0x144)+_0x2f278e[_0x299bb6(0x124)](';\x20')+')';}async function prepareIssueReport(_0x75a74f){const _0x34bb9e=a93_0x9bdfa4,_0x5d3e1f=_0x75a74f['str'](_0x34bb9e(0x125))[_0x34bb9e(0x132)](),_0xdf140=_0x75a74f[_0x34bb9e(0x148)](_0x34bb9e(0x120)),_0x4c15e0=_0x75a74f[_0x34bb9e(0x148)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x4c15e0){const _0x57106d=_0xdf140;if(!_0x57106d[_0x34bb9e(0x132)]())throw CliErrors[_0x34bb9e(0x14a)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x34bb9e(0x151));const _0xe04087=sanitizeIssueDescription(_0x57106d);return{'title':_0x5d3e1f,'description':_0xe04087[_0x34bb9e(0x120)],'descriptionSource':_0x34bb9e(0x13f),'sanitize':_0xe04087};}const _0x44613f=resolve(process['cwd'](),_0x4c15e0),_0xffcf71=await readFile(_0x44613f,_0x34bb9e(0x14e));if(!_0xffcf71[_0x34bb9e(0x132)]())throw CliErrors[_0x34bb9e(0x14a)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x44613f,_0x34bb9e(0x13d));const _0x36bda7=sanitizeIssueDescription(_0xffcf71);return{'title':_0x5d3e1f,'description':_0x36bda7[_0x34bb9e(0x120)],'descriptionSource':_0x34bb9e(0x130),'descriptionFilePath':_0x44613f,'sanitize':_0x36bda7};}function a93_0x3ae7(){const _0x2ede02=['Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','description-file','inline','567264DxqLlZ','issue.description','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Platform\x20issue\x20reported\x20(','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','2908866Jzryfh','42ILHNMC','str','Platform\x20issue\x20reported','validation','originalBytes','push','sanitize','utf8','message','678216ebQwgB','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','redactions:\x20','truncated\x20from\x20','cwd','flagMissing','\x20secret(s):\x20','descriptionFile:\x20','report','\x20bytes','apiError','descriptionFilePath','description','redactionCount','redacted\x20','descriptionSource','join','title','length','1121236FlknvQ','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','truncated','redactionKinds','compress','1415970NthUQb','otel://','issue.description_redactions','write','file','string','trim','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','3MQwNWB','4630356KkCRZB','truncated:\x20original\x20','issue','Failed\x20to\x20report\x20platform\x20issue:\x20','issue.description_original_bytes','414911wKpZkE','issue.description_truncated','filter'];a93_0x3ae7=function(){return _0x2ede02;};return a93_0x3ae7();}
1
+ const a93_0xc52a0a=a93_0x536d;(function(_0x2d7abe,_0x27feb0){const _0x2b0f3f=a93_0x536d,_0x5c45cc=_0x2d7abe();while(!![]){try{const _0x4b73cb=parseInt(_0x2b0f3f(0x14b))/0x1*(-parseInt(_0x2b0f3f(0x14c))/0x2)+parseInt(_0x2b0f3f(0x156))/0x3+-parseInt(_0x2b0f3f(0x135))/0x4*(-parseInt(_0x2b0f3f(0x170))/0x5)+-parseInt(_0x2b0f3f(0x165))/0x6+-parseInt(_0x2b0f3f(0x145))/0x7*(-parseInt(_0x2b0f3f(0x162))/0x8)+-parseInt(_0x2b0f3f(0x13d))/0x9*(parseInt(_0x2b0f3f(0x137))/0xa)+parseInt(_0x2b0f3f(0x139))/0xb;if(_0x4b73cb===_0x27feb0)break;else _0x5c45cc['push'](_0x5c45cc['shift']());}catch(_0x3dc658){_0x5c45cc['push'](_0x5c45cc['shift']());}}}(a93_0x2084,0xb7e44));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';function a93_0x2084(){const _0x44a97f=['description-file','issue.title','inline','compress','issue.description','732340YrtYQw','otel://','descriptionSource:\x20','redactionKinds','descriptionFilePath','\x20secret(s):\x20','2IPgXxX','243626ddbByZ','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','POST','filter','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Platform\x20issue\x20reported','cwd','description','flagMissing','225642GfRKLg','utf8','length','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','join','Platform\x20issue\x20reported\x20(','push','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','trim','sanitize','str','32qSsyMa','Issue\x20description\x20cannot\x20be\x20empty.','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','3345822GXmPma','title','truncated','redactions:\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','originalBytes','issue.description_redactions','truncated:\x20original\x20','report','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','redactionCount','4827865UGYcqg','One-line\x20issue\x20summary','4QKyyuP','validation','9409900gIrSiE','descriptionSource','11398266tIpVnJ','message','apiError','issue.description_redaction_kinds','9hnVIbD','file','File\x20not\x20found:\x20'];a93_0x2084=function(){return _0x44a97f;};return a93_0x2084();}function a93_0x536d(_0xddd43f,_0x24a1db){_0xddd43f=_0xddd43f-0x135;const _0x20842c=a93_0x2084();let _0x536d2f=_0x20842c[_0xddd43f];return _0x536d2f;}const DESCRIPTION_FILE_FLAG=a93_0xc52a0a(0x140);export const issueReport={'service':'issue','command':a93_0xc52a0a(0x16d),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a93_0xc52a0a(0x143),'flags':[{'name':a93_0xc52a0a(0x166),'type':'string','required':!![],'description':a93_0xc52a0a(0x171)},{'name':a93_0xc52a0a(0x154),'type':'string','description':a93_0xc52a0a(0x159)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a93_0xc52a0a(0x14e)}],async 'validate'(_0x2e87b1){const _0x59a29b=a93_0xc52a0a,_0x4287b9=_0x2e87b1[_0x59a29b(0x161)](_0x59a29b(0x166))[_0x59a29b(0x15f)](),_0x583a7e=_0x2e87b1[_0x59a29b(0x161)]('description')[_0x59a29b(0x15f)](),_0x57d4a6=_0x2e87b1[_0x59a29b(0x161)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x4287b9)throw CliErrors[_0x59a29b(0x155)]('title',_0x59a29b(0x15e));const _0x49ba91=_0x583a7e[_0x59a29b(0x158)]>0x0,_0x1f9215=_0x57d4a6[_0x59a29b(0x158)]>0x0;if(_0x49ba91===_0x1f9215)throw CliErrors[_0x59a29b(0x136)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x59a29b(0x15d));if(_0x1f9215){const _0x546d52=resolve(process[_0x59a29b(0x153)](),_0x57d4a6);if(!existsSync(_0x546d52))throw CliErrors[_0x59a29b(0x136)](_0x59a29b(0x13f)+_0x546d52);}},async 'dryRun'(_0x40d351){const _0x1312ef=a93_0xc52a0a,_0x1167b6=await prepareIssueReport(_0x40d351);return{'method':_0x1312ef(0x14f),'url':_0x1312ef(0x146)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1167b6[_0x1312ef(0x166)],'issue.description':_0x1167b6[_0x1312ef(0x154)],'issue.description_original_bytes':_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x16a)],'issue.description_truncated':_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x167)],'issue.description_redactions':_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x16f)],'issue.description_redaction_kinds':_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x148)][_0x1312ef(0x15a)](',')}},'description':[_0x1312ef(0x14d),_0x1312ef(0x147)+_0x1167b6[_0x1312ef(0x138)],_0x1167b6[_0x1312ef(0x149)]?'descriptionFile:\x20'+_0x1167b6[_0x1312ef(0x149)]:null,_0x1167b6['sanitize'][_0x1312ef(0x167)]?_0x1312ef(0x16c)+_0x1167b6[_0x1312ef(0x160)]['originalBytes']+'\x20bytes':null,_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x16f)]>0x0?_0x1312ef(0x168)+_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x16f)]+'\x20('+_0x1167b6[_0x1312ef(0x160)]['redactionKinds'][_0x1312ef(0x15a)](',\x20')+')':null][_0x1312ef(0x150)](Boolean)[_0x1312ef(0x15a)]('\x0a')};},async 'execute'(_0x256f4e){const _0x3c5042=a93_0xc52a0a,_0x210583=await prepareIssueReport(_0x256f4e);try{await sendPlatformIssueCollectLog({'title':_0x210583[_0x3c5042(0x166)],'description':_0x210583[_0x3c5042(0x154)],'sanitize':{'originalBytes':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x16a)],'truncated':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x167)],'redactionCount':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x16f)],'redactionKinds':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x148)]}});}catch(_0x12ecd1){throw CliErrors[_0x3c5042(0x13b)](_0x3c5042(0x169)+(_0x12ecd1 instanceof Error?_0x12ecd1[_0x3c5042(0x13a)]:String(_0x12ecd1)),_0x3c5042(0x151));}return{'ok':!![],'message':buildResultMessage(_0x210583['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3c5042(0x141),_0x3c5042(0x144),'issue.description_original_bytes','issue.description_truncated',_0x3c5042(0x16b),_0x3c5042(0x13c)],'issue':{'title':_0x210583['title'],'descriptionLength':_0x210583[_0x3c5042(0x154)][_0x3c5042(0x158)],'descriptionSource':_0x210583[_0x3c5042(0x138)],..._0x210583['descriptionFilePath']?{'descriptionFile':_0x210583[_0x3c5042(0x149)]}:{},'sanitize':{'originalBytes':_0x210583['sanitize'][_0x3c5042(0x16a)],'truncated':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x167)],'redactions':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x16f)],'redactionKinds':_0x210583['sanitize'][_0x3c5042(0x148)]}}}};}};function buildResultMessage(_0x29334d){const _0x16bd0c=a93_0xc52a0a,_0x428273=[];return _0x29334d[_0x16bd0c(0x167)]&&_0x428273[_0x16bd0c(0x15c)]('truncated\x20from\x20'+_0x29334d[_0x16bd0c(0x16a)]+'\x20bytes'),_0x29334d[_0x16bd0c(0x16f)]>0x0&&_0x428273[_0x16bd0c(0x15c)]('redacted\x20'+_0x29334d[_0x16bd0c(0x16f)]+_0x16bd0c(0x14a)+_0x29334d[_0x16bd0c(0x148)][_0x16bd0c(0x15a)](',\x20')),_0x428273['length']===0x0?_0x16bd0c(0x152):_0x16bd0c(0x15b)+_0x428273[_0x16bd0c(0x15a)](';\x20')+')';}async function prepareIssueReport(_0x46ebde){const _0x35226d=a93_0xc52a0a,_0x574b65=_0x46ebde['str'](_0x35226d(0x166))[_0x35226d(0x15f)](),_0x21b8f1=_0x46ebde[_0x35226d(0x161)](_0x35226d(0x154)),_0xe93199=_0x46ebde[_0x35226d(0x161)](DESCRIPTION_FILE_FLAG)[_0x35226d(0x15f)]();if(!_0xe93199){const _0x149bbd=_0x21b8f1;if(!_0x149bbd['trim']())throw CliErrors[_0x35226d(0x136)](_0x35226d(0x163),_0x35226d(0x16e));const _0x599a6b=sanitizeIssueDescription(_0x149bbd);return{'title':_0x574b65,'description':_0x599a6b[_0x35226d(0x154)],'descriptionSource':_0x35226d(0x142),'sanitize':_0x599a6b};}const _0x5140fc=resolve(process[_0x35226d(0x153)](),_0xe93199),_0x1f4065=await readFile(_0x5140fc,_0x35226d(0x157));if(!_0x1f4065[_0x35226d(0x15f)]())throw CliErrors[_0x35226d(0x136)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x5140fc,_0x35226d(0x164));const _0x2c4bb8=sanitizeIssueDescription(_0x1f4065);return{'title':_0x574b65,'description':_0x2c4bb8['description'],'descriptionSource':_0x35226d(0x13e),'descriptionFilePath':_0x5140fc,'sanitize':_0x2c4bb8};}
@@ -1 +1 @@
1
- function a94_0x1918(_0x8333fb,_0x58c287){_0x8333fb=_0x8333fb-0xf5;const _0x1e7222=a94_0x1e72();let _0x19180a=_0x1e7222[_0x8333fb];return _0x19180a;}function a94_0x1e72(){const _0x1a6128=['kind','pattern','7209918fKzfSC','REDACTED:password','2372BDvhvn','includes','REDACTED:private-key','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','toString','1474690lnLvVO','max','password','119092ofalkQ','416KiKwaI','bearer-jwt','REDACTED:cookie','414612aVLFgf','687cKXIRQ','31514rfIvCL','push','1207248NGDHww','REDACTED:authorization','string','byteLength','private-key','cookie','REDACTED:bearer-jwt','subarray','utf8','REDACTED:access-key'];a94_0x1e72=function(){return _0x1a6128;};return a94_0x1e72();}const a94_0x72e211=a94_0x1918;(function(_0x1efa29,_0x576e2d){const _0x89ab7c=a94_0x1918,_0x159515=_0x1efa29();while(!![]){try{const _0x3f131b=parseInt(_0x89ab7c(0x108))/0x1+-parseInt(_0x89ab7c(0x104))/0x2+-parseInt(_0x89ab7c(0x109))/0x3*(parseInt(_0x89ab7c(0xfc))/0x4)+-parseInt(_0x89ab7c(0x101))/0x5+-parseInt(_0x89ab7c(0x10c))/0x6+parseInt(_0x89ab7c(0x10a))/0x7*(-parseInt(_0x89ab7c(0x105))/0x8)+parseInt(_0x89ab7c(0xfa))/0x9;if(_0x3f131b===_0x576e2d)break;else _0x159515['push'](_0x159515['shift']());}catch(_0x34eb59){_0x159515['push'](_0x159515['shift']());}}}(a94_0x1e72,0x46d49));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a94_0x72e211(0xff),REDACTION_RULES=[{'kind':a94_0x72e211(0x111),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a94_0x72e211(0x107)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a94_0x72e211(0x10d)},{'kind':a94_0x72e211(0x110),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a94_0x72e211(0xfe)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a94_0x72e211(0xf7)},{'kind':a94_0x72e211(0x103),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a94_0x72e211(0xfb)},{'kind':a94_0x72e211(0x106),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a94_0x72e211(0x112)}];export function sanitizeIssueDescription(_0x703f35){const _0x5042ec=a94_0x72e211,_0x4fc636=Buffer['byteLength'](_0x703f35,_0x5042ec(0xf6)),_0xbe4b99=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x47152a=_0x703f35,_0x304802=0x0;const _0x1a9f6e=[];if(!_0xbe4b99)for(const _0x30d1c2 of REDACTION_RULES){let _0x5c8bbb=0x0;_0x47152a=_0x47152a['replace'](_0x30d1c2[_0x5042ec(0xf9)],(_0x54b7d8,_0x153557)=>{const _0x574893=_0x5042ec;_0x5c8bbb+=0x1;const _0x29b172=typeof _0x153557===_0x574893(0x10e)?_0x153557:'';return _0x29b172+'['+_0x30d1c2['label']+']';}),_0x5c8bbb>0x0&&(_0x304802+=_0x5c8bbb,!_0x1a9f6e[_0x5042ec(0xfd)](_0x30d1c2[_0x5042ec(0xf8)])&&_0x1a9f6e[_0x5042ec(0x10b)](_0x30d1c2['kind']));}let _0x1a9a6b=![];if(Buffer['byteLength'](_0x47152a,_0x5042ec(0xf6))>ISSUE_DESCRIPTION_MAX_BYTES){_0x1a9a6b=!![];const _0x56a73f=Buffer[_0x5042ec(0x10f)](TRUNCATION_NOTICE,_0x5042ec(0xf6)),_0x57b5fa=Math[_0x5042ec(0x102)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x56a73f);_0x47152a=sliceUtf8Bytes(_0x47152a,_0x57b5fa)+TRUNCATION_NOTICE;}return{'description':_0x47152a,'originalBytes':_0x4fc636,'truncated':_0x1a9a6b,'redactionCount':_0x304802,'redactionKinds':_0x1a9f6e};}function sliceUtf8Bytes(_0x679b43,_0x5d3e10){const _0x12460a=a94_0x72e211;if(_0x5d3e10<=0x0)return'';const _0x4b2e69=Buffer['from'](_0x679b43,_0x12460a(0xf6));if(_0x4b2e69[_0x12460a(0x10f)]<=_0x5d3e10)return _0x679b43;let _0x325350=_0x5d3e10;while(_0x325350>0x0){const _0x84659e=_0x4b2e69[_0x325350];if(_0x84659e===undefined||(_0x84659e&0xc0)!==0x80)break;_0x325350-=0x1;}return _0x4b2e69[_0x12460a(0xf5)](0x0,_0x325350)[_0x12460a(0x100)]('utf8');}
1
+ const a94_0x294ce9=a94_0x4918;(function(_0x34e9b6,_0x2f44eb){const _0x38d765=a94_0x4918,_0x53ecd4=_0x34e9b6();while(!![]){try{const _0x37db32=-parseInt(_0x38d765(0x111))/0x1+-parseInt(_0x38d765(0x10d))/0x2*(-parseInt(_0x38d765(0x11a))/0x3)+parseInt(_0x38d765(0x102))/0x4*(parseInt(_0x38d765(0x104))/0x5)+-parseInt(_0x38d765(0x110))/0x6+parseInt(_0x38d765(0x11b))/0x7*(parseInt(_0x38d765(0x10a))/0x8)+-parseInt(_0x38d765(0x107))/0x9+-parseInt(_0x38d765(0x11c))/0xa;if(_0x37db32===_0x2f44eb)break;else _0x53ecd4['push'](_0x53ecd4['shift']());}catch(_0x42e4a5){_0x53ecd4['push'](_0x53ecd4['shift']());}}}(a94_0x14a8,0xa2ed0));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a94_0x4918(_0x840cef,_0x26f699){_0x840cef=_0x840cef-0x102;const _0x14a84c=a94_0x14a8();let _0x4918c8=_0x14a84c[_0x840cef];return _0x4918c8;}function a94_0x14a8(){const _0x1f6ca8=['67410ftymqb','toString','kind','REDACTED:bearer-jwt','byteLength','REDACTED:access-key','REDACTED:private-key','cookie','includes','3qevcch','4716586msgrCC','8596990drdtkY','private-key','access-key','replace','push','authorization','48fWiIiO','REDACTED:password','149230ZyqslT','utf8','REDACTED:cookie','2809161DvJRUf','label','bearer-jwt','8ndTSnS','string','max','1983790EIVvNK','pattern','subarray','703578fAGmqs'];a94_0x14a8=function(){return _0x1f6ca8;};return a94_0x14a8();}const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a94_0x294ce9(0x118),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a94_0x294ce9(0x106)},{'kind':a94_0x294ce9(0x121),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a94_0x294ce9(0x11d),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a94_0x294ce9(0x117)},{'kind':a94_0x294ce9(0x11e),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a94_0x294ce9(0x116)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a94_0x294ce9(0x103)},{'kind':a94_0x294ce9(0x109),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a94_0x294ce9(0x114)}];export function sanitizeIssueDescription(_0x2d43cf){const _0xe4daf1=a94_0x294ce9,_0x2b67f5=Buffer['byteLength'](_0x2d43cf,'utf8'),_0x2244b3=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x1dcb59=_0x2d43cf,_0x1c9623=0x0;const _0x155bb6=[];if(!_0x2244b3)for(const _0xc7a00d of REDACTION_RULES){let _0x22bcc8=0x0;_0x1dcb59=_0x1dcb59[_0xe4daf1(0x11f)](_0xc7a00d[_0xe4daf1(0x10e)],(_0x58c7c6,_0x3fac08)=>{const _0x38e824=_0xe4daf1;_0x22bcc8+=0x1;const _0x5f06f6=typeof _0x3fac08===_0x38e824(0x10b)?_0x3fac08:'';return _0x5f06f6+'['+_0xc7a00d[_0x38e824(0x108)]+']';}),_0x22bcc8>0x0&&(_0x1c9623+=_0x22bcc8,!_0x155bb6[_0xe4daf1(0x119)](_0xc7a00d[_0xe4daf1(0x113)])&&_0x155bb6[_0xe4daf1(0x120)](_0xc7a00d[_0xe4daf1(0x113)]));}let _0x176ed7=![];if(Buffer[_0xe4daf1(0x115)](_0x1dcb59,_0xe4daf1(0x105))>ISSUE_DESCRIPTION_MAX_BYTES){_0x176ed7=!![];const _0x3e096c=Buffer['byteLength'](TRUNCATION_NOTICE,_0xe4daf1(0x105)),_0x4dfc0e=Math[_0xe4daf1(0x10c)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3e096c);_0x1dcb59=sliceUtf8Bytes(_0x1dcb59,_0x4dfc0e)+TRUNCATION_NOTICE;}return{'description':_0x1dcb59,'originalBytes':_0x2b67f5,'truncated':_0x176ed7,'redactionCount':_0x1c9623,'redactionKinds':_0x155bb6};}function sliceUtf8Bytes(_0xbfb116,_0x29aba6){const _0x13f440=a94_0x294ce9;if(_0x29aba6<=0x0)return'';const _0x2b622f=Buffer['from'](_0xbfb116,_0x13f440(0x105));if(_0x2b622f[_0x13f440(0x115)]<=_0x29aba6)return _0xbfb116;let _0x22da46=_0x29aba6;while(_0x22da46>0x0){const _0x48619e=_0x2b622f[_0x22da46];if(_0x48619e===undefined||(_0x48619e&0xc0)!==0x80)break;_0x22da46-=0x1;}return _0x2b622f[_0x13f440(0x10f)](0x0,_0x22da46)[_0x13f440(0x112)]('utf8');}
@@ -1 +1 @@
1
- function a95_0x467d(_0x241b2a,_0x44e8b9){_0x241b2a=_0x241b2a-0x1da;const _0xc93c84=a95_0xc93c();let _0x467de4=_0xc93c84[_0x241b2a];return _0x467de4;}const a95_0x43a8d6=a95_0x467d;function a95_0xc93c(){const _0x4b7fb5=['toLocaleString','*\x20Logs\x20cleared','1485852aPBnJL','8hvrMsw','20208tcTEvm','\x20\x20\x20Details:\x20','keys','level','command','warn','error','8147025pOJFnA','log','timestamp','1147798ienGCc','duration','4373733qbxgPG','3872ZXPWhD','success','length','1211073jKexwE','details','read','1ndBEnw','4952510JrAHFI','clearLogs','Clear\x20command\x20history\x20logs','readLogs','10kxoZEj','show','4LvcyPq','*\x20No\x20logs\x20found','stringify','logs','write'];a95_0xc93c=function(){return _0x4b7fb5;};return a95_0xc93c();}(function(_0x249bfa,_0x1e1dff){const _0x3571bd=a95_0x467d,_0x166daa=_0x249bfa();while(!![]){try{const _0x473e6f=parseInt(_0x3571bd(0x1e0))/0x1*(parseInt(_0x3571bd(0x1fa))/0x2)+parseInt(_0x3571bd(0x1dd))/0x3*(parseInt(_0x3571bd(0x1e7))/0x4)+parseInt(_0x3571bd(0x1e5))/0x5*(parseInt(_0x3571bd(0x1ee))/0x6)+-parseInt(_0x3571bd(0x1fc))/0x7+-parseInt(_0x3571bd(0x1ef))/0x8*(-parseInt(_0x3571bd(0x1f7))/0x9)+-parseInt(_0x3571bd(0x1e1))/0xa+-parseInt(_0x3571bd(0x1da))/0xb*(parseInt(_0x3571bd(0x1f0))/0xc);if(_0x473e6f===_0x1e1dff)break;else _0x166daa['push'](_0x166daa['shift']());}catch(_0x567f95){_0x166daa['push'](_0x166daa['shift']());}}}(a95_0xc93c,0xa26ad));import{logger}from'../../utils/logger.js';function printLogs(_0x2367f4){const _0x5ee9f2=a95_0x467d;if(_0x2367f4[_0x5ee9f2(0x1dc)]===0x0){console['log'](_0x5ee9f2(0x1e8));return;}console[_0x5ee9f2(0x1f8)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x2367f4['forEach']((_0x116876,_0x36be6f)=>{const _0x2eb44f=_0x5ee9f2,_0x39750d=new Date(_0x116876[_0x2eb44f(0x1f9)])[_0x2eb44f(0x1ec)]('en-US'),_0x2d4bb3=_0x116876[_0x2eb44f(0x1f3)]===_0x2eb44f(0x1db)?'√':_0x116876[_0x2eb44f(0x1f3)]===_0x2eb44f(0x1f6)?'×':_0x116876['level']===_0x2eb44f(0x1f5)?'!':'i';console[_0x2eb44f(0x1f8)](_0x36be6f+0x1+'.\x20'+_0x2d4bb3+'\x20['+_0x116876[_0x2eb44f(0x1f4)]+']\x20'+_0x116876['message']),console[_0x2eb44f(0x1f8)]('\x20\x20\x20Time:\x20'+_0x39750d),_0x116876['duration']&&console[_0x2eb44f(0x1f8)]('\x20\x20\x20Duration:\x20'+_0x116876[_0x2eb44f(0x1fb)]+'ms'),_0x116876[_0x2eb44f(0x1de)]&&Object[_0x2eb44f(0x1f2)](_0x116876[_0x2eb44f(0x1de)])[_0x2eb44f(0x1dc)]>0x0&&console[_0x2eb44f(0x1f8)](_0x2eb44f(0x1f1)+JSON[_0x2eb44f(0x1e9)](_0x116876['details'],null,0x2)),console[_0x2eb44f(0x1f8)]('');});}export const logsDefinitions=[{'service':a95_0x43a8d6(0x1ea),'command':a95_0x43a8d6(0x1e6),'description':'View\x20command\x20history\x20logs','risk':a95_0x43a8d6(0x1df),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xd8a9ab){const _0x4515fb=a95_0x43a8d6;return printLogs(logger[_0x4515fb(0x1e4)]()),{'ok':!![]};}},{'service':a95_0x43a8d6(0x1ea),'command':'clear','description':a95_0x43a8d6(0x1e3),'risk':a95_0x43a8d6(0x1eb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x21943f){const _0x20165f=a95_0x43a8d6;return logger[_0x20165f(0x1e2)](),console[_0x20165f(0x1f8)](_0x20165f(0x1ed)),{'ok':!![]};}}];
1
+ const a95_0x1a88e2=a95_0x50cd;(function(_0x230008,_0x2d7406){const _0x56d7ad=a95_0x50cd,_0x572f05=_0x230008();while(!![]){try{const _0x537834=parseInt(_0x56d7ad(0xf8))/0x1+parseInt(_0x56d7ad(0x10e))/0x2+parseInt(_0x56d7ad(0x102))/0x3+-parseInt(_0x56d7ad(0x10b))/0x4*(parseInt(_0x56d7ad(0x10f))/0x5)+-parseInt(_0x56d7ad(0x103))/0x6*(parseInt(_0x56d7ad(0x10a))/0x7)+parseInt(_0x56d7ad(0xfc))/0x8*(parseInt(_0x56d7ad(0x108))/0x9)+-parseInt(_0x56d7ad(0x104))/0xa*(parseInt(_0x56d7ad(0xfe))/0xb);if(_0x537834===_0x2d7406)break;else _0x572f05['push'](_0x572f05['shift']());}catch(_0x3c9f94){_0x572f05['push'](_0x572f05['shift']());}}}(a95_0x3e88,0xab3ad));function a95_0x3e88(){const _0x557cf3=['695OWUVmj','\x20\x20\x20Duration:\x20','keys','show','toLocaleString','logs','*\x20Lovrabet\x20CLI\x20logs:\x0a','read','duration','en-US','level','1128926QLBQFA','timestamp','stringify','readLogs','120wZlgtA','*\x20No\x20logs\x20found','30778vcyRhT','error','log','clear','1713288OJqKke','3271986qnADtu','6530DUMmmg','success','clearLogs','details','536859iumhnq','Clear\x20command\x20history\x20logs','7BuoAJN','15168oiwaeS','length','*\x20Logs\x20cleared','2012166ecASrn'];a95_0x3e88=function(){return _0x557cf3;};return a95_0x3e88();}import{logger}from'../../utils/logger.js';function printLogs(_0x5498af){const _0x17807e=a95_0x50cd;if(_0x5498af[_0x17807e(0x10c)]===0x0){console[_0x17807e(0x100)](_0x17807e(0xfd));return;}console[_0x17807e(0x100)](_0x17807e(0xf3)),_0x5498af['forEach']((_0x3ce613,_0x1cc7fa)=>{const _0x5dfc40=_0x17807e,_0x8511ce=new Date(_0x3ce613[_0x5dfc40(0xf9)])[_0x5dfc40(0xf1)](_0x5dfc40(0xf6)),_0x3336b8=_0x3ce613[_0x5dfc40(0xf7)]===_0x5dfc40(0x105)?'√':_0x3ce613[_0x5dfc40(0xf7)]===_0x5dfc40(0xff)?'×':_0x3ce613[_0x5dfc40(0xf7)]==='warn'?'!':'i';console['log'](_0x1cc7fa+0x1+'.\x20'+_0x3336b8+'\x20['+_0x3ce613['command']+']\x20'+_0x3ce613['message']),console[_0x5dfc40(0x100)]('\x20\x20\x20Time:\x20'+_0x8511ce),_0x3ce613[_0x5dfc40(0xf5)]&&console['log'](_0x5dfc40(0xee)+_0x3ce613[_0x5dfc40(0xf5)]+'ms'),_0x3ce613[_0x5dfc40(0x107)]&&Object[_0x5dfc40(0xef)](_0x3ce613[_0x5dfc40(0x107)])[_0x5dfc40(0x10c)]>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x5dfc40(0xfa)](_0x3ce613[_0x5dfc40(0x107)],null,0x2)),console[_0x5dfc40(0x100)]('');});}function a95_0x50cd(_0x2a3291,_0x4312f8){_0x2a3291=_0x2a3291-0xee;const _0x3e8825=a95_0x3e88();let _0x50cd55=_0x3e8825[_0x2a3291];return _0x50cd55;}export const logsDefinitions=[{'service':a95_0x1a88e2(0xf2),'command':a95_0x1a88e2(0xf0),'description':'View\x20command\x20history\x20logs','risk':a95_0x1a88e2(0xf4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x540444){const _0x31c1f1=a95_0x1a88e2;return printLogs(logger[_0x31c1f1(0xfb)]()),{'ok':!![]};}},{'service':a95_0x1a88e2(0xf2),'command':a95_0x1a88e2(0x101),'description':a95_0x1a88e2(0x109),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x109390){const _0x33db03=a95_0x1a88e2;return logger[_0x33db03(0x106)](),console[_0x33db03(0x100)](_0x33db03(0x10d)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x28a343,_0x276ed9){const _0x40272c=a96_0x2d3c,_0x14dfc3=_0x28a343();while(!![]){try{const _0x2024a3=-parseInt(_0x40272c(0xea))/0x1*(parseInt(_0x40272c(0xed))/0x2)+-parseInt(_0x40272c(0xef))/0x3+-parseInt(_0x40272c(0xec))/0x4*(-parseInt(_0x40272c(0xe6))/0x5)+parseInt(_0x40272c(0xe5))/0x6*(-parseInt(_0x40272c(0xee))/0x7)+parseInt(_0x40272c(0xeb))/0x8+parseInt(_0x40272c(0xe8))/0x9*(parseInt(_0x40272c(0xe7))/0xa)+-parseInt(_0x40272c(0xe9))/0xb*(-parseInt(_0x40272c(0xf0))/0xc);if(_0x2024a3===_0x276ed9)break;else _0x14dfc3['push'](_0x14dfc3['shift']());}catch(_0x4a49d6){_0x14dfc3['push'](_0x14dfc3['shift']());}}}(a96_0x59ef,0x5a12a));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';function a96_0x59ef(){const _0x32eef0=['116128beICcq','370xUAsoW','1496481STOWVC','871491pqVnJt','12dkBhME','12HzthOY','50SpJlQU','10UyQFrM','6272748Bosqhu','247687YZxwXg','1865zTOWCM','3377736PzvFfQ'];a96_0x59ef=function(){return _0x32eef0;};return a96_0x59ef();}function a96_0x2d3c(_0x3755d1,_0x3e5874){_0x3755d1=_0x3755d1-0xe5;const _0x59efaf=a96_0x59ef();let _0x2d3cc3=_0x59efaf[_0x3755d1];return _0x2d3cc3;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
1
+ (function(_0xa88240,_0x59540d){const _0x55b1ec=a96_0x2fcf,_0x3c3660=_0xa88240();while(!![]){try{const _0x3a48a9=parseInt(_0x55b1ec(0x7a))/0x1*(-parseInt(_0x55b1ec(0x82))/0x2)+parseInt(_0x55b1ec(0x83))/0x3+-parseInt(_0x55b1ec(0x7d))/0x4*(parseInt(_0x55b1ec(0x84))/0x5)+-parseInt(_0x55b1ec(0x81))/0x6+parseInt(_0x55b1ec(0x7e))/0x7*(-parseInt(_0x55b1ec(0x80))/0x8)+-parseInt(_0x55b1ec(0x7f))/0x9*(-parseInt(_0x55b1ec(0x7c))/0xa)+-parseInt(_0x55b1ec(0x85))/0xb*(-parseInt(_0x55b1ec(0x7b))/0xc);if(_0x3a48a9===_0x59540d)break;else _0x3c3660['push'](_0x3c3660['shift']());}catch(_0x5b2578){_0x3c3660['push'](_0x3c3660['shift']());}}}(a96_0x3fa8,0x9585a));import{menuList}from'../../commands/menu/list.js';function a96_0x2fcf(_0xeeffbc,_0x55e9ab){_0xeeffbc=_0xeeffbc-0x7a;const _0x3fa804=a96_0x3fa8();let _0x2fcf20=_0x3fa804[_0xeeffbc];return _0x2fcf20;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a96_0x3fa8(){const _0x42af29=['189FnPWpW','563120ojvVlo','6475452UxVTvC','2207432sEPUqX','1215792ieGSHh','3398170MaAtAH','11oUThZE','1CNuFGe','38303028bLEvfa','75910SjlyjL','4FDurJg','28HaKagA'];a96_0x3fa8=function(){return _0x42af29;};return a96_0x3fa8();}export const menuDefinitions=[menuList,menuSync,menuUpdate];
@@ -1 +1 @@
1
- function a97_0x479c(){const _0x497519=['2673128oTjYrG','2921219rPFDCk','map','read','sort','list','children','411831luJFyQ','depth','index','resources','No\x20menus\x20found.','parentId','4rSPRgH','string','parse','label','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','boolean','\x20menu(s)','isArray','menu','path','1049535xSPODn','verbose','appCode','POSITIVE_INFINITY','number','visible','length','type','129501niZkuo','25cEeqSZ','item','1676124NGjgZW','push','33126NeqadM','extend'];a97_0x479c=function(){return _0x497519;};return a97_0x479c();}function a97_0x4625(_0x2cf022,_0x1ee6fa){_0x2cf022=_0x2cf022-0xcd;const _0x479c09=a97_0x479c();let _0x462588=_0x479c09[_0x2cf022];return _0x462588;}const a97_0x255a50=a97_0x4625;(function(_0x501705,_0x78a83c){const _0x26b41e=a97_0x4625,_0x3cd003=_0x501705();while(!![]){try{const _0x1806f8=-parseInt(_0x26b41e(0xf2))/0x1*(-parseInt(_0x26b41e(0xe0))/0x2)+-parseInt(_0x26b41e(0xda))/0x3+-parseInt(_0x26b41e(0xcf))/0x4+-parseInt(_0x26b41e(0xcd))/0x5*(parseInt(_0x26b41e(0xd1))/0x6)+parseInt(_0x26b41e(0xd4))/0x7+parseInt(_0x26b41e(0xd3))/0x8+-parseInt(_0x26b41e(0xea))/0x9;if(_0x1806f8===_0x78a83c)break;else _0x3cd003['push'](_0x3cd003['shift']());}catch(_0x1718ae){_0x3cd003['push'](_0x3cd003['shift']());}}}(a97_0x479c,0x4baac));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getMenuTree}from'../../core/api-client.js';export const menuList={'service':a97_0x255a50(0xe8),'command':a97_0x255a50(0xd8),'description':'List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','risk':a97_0x255a50(0xd6),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a97_0x255a50(0xeb),'type':a97_0x255a50(0xe5),'description':a97_0x255a50(0xe4)}],async 'execute'(_0x5c7495){const _0x18c589=a97_0x255a50,_0x400143=_0x5c7495['bool'](_0x18c589(0xeb)),_0x2761e1=await getMenuTree(_0x5c7495[_0x18c589(0xec)],_0x5c7495['cookie']),_0x5e602f=flattenMenuItems(Array['isArray'](_0x2761e1)?_0x2761e1:[],{'verbose':_0x400143,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x5e602f[_0x18c589(0xf0)],'menus':_0x5e602f},'message':_0x5e602f[_0x18c589(0xf0)]===0x0?_0x18c589(0xde):'Found\x20'+_0x5e602f[_0x18c589(0xf0)]+_0x18c589(0xe6)};}};function flattenMenuItems(_0x1801e0,_0xf6a8dc){const _0x5b6580=a97_0x255a50,_0x164155=sortMenuItems(_0x1801e0),_0x2347e1=[];for(const _0x3ac88c of _0x164155){_0x2347e1[_0x5b6580(0xd0)](toMenuListItem(_0x3ac88c,_0xf6a8dc)),Array[_0x5b6580(0xe7)](_0x3ac88c['children'])&&_0x3ac88c[_0x5b6580(0xd9)]['length']>0x0&&_0x2347e1[_0x5b6580(0xd0)](...flattenMenuItems(_0x3ac88c[_0x5b6580(0xd9)],{'verbose':_0xf6a8dc[_0x5b6580(0xeb)],'parentId':_0x3ac88c['id'],'depth':_0xf6a8dc[_0x5b6580(0xdb)]+0x1}));}return _0x2347e1;}function sortMenuItems(_0x48b67c){const _0x210079=a97_0x255a50;return _0x48b67c['map']((_0x322466,_0x42895f)=>({'item':_0x322466,'index':_0x42895f}))[_0x210079(0xd7)]((_0x50c894,_0x336f5d)=>{const _0x45189d=_0x210079,_0x49fcde=normalizeSort(_0x50c894[_0x45189d(0xce)][_0x45189d(0xd7)]),_0x6ef8a2=normalizeSort(_0x336f5d[_0x45189d(0xce)]['sort']);if(_0x49fcde!==_0x6ef8a2)return _0x49fcde-_0x6ef8a2;return _0x50c894[_0x45189d(0xdc)]-_0x336f5d[_0x45189d(0xdc)];})['map'](({item:_0x586552})=>_0x586552);}function toMenuListItem(_0xc3d3d6,_0x5906d1){const _0x2f46df=a97_0x255a50,_0x2230ae={'id':_0xc3d3d6['id'],'parentId':_0x5906d1[_0x2f46df(0xdf)],'depth':_0x5906d1['depth'],'label':normalizeString(_0xc3d3d6[_0x2f46df(0xe3)]),'path':normalizeString(_0xc3d3d6[_0x2f46df(0xe9)]),'type':normalizeString(_0xc3d3d6[_0x2f46df(0xf1)]),'visible':typeof _0xc3d3d6[_0x2f46df(0xef)]===_0x2f46df(0xe5)?_0xc3d3d6[_0x2f46df(0xef)]:null,'sort':typeof _0xc3d3d6['sort']==='number'&&Number['isFinite'](_0xc3d3d6['sort'])?_0xc3d3d6[_0x2f46df(0xd7)]:null,'resources':normalizeResources(_0xc3d3d6[_0x2f46df(0xd2)]?.[_0x2f46df(0xdd)])};return _0x5906d1[_0x2f46df(0xeb)]&&(_0x2230ae[_0x2f46df(0xd2)]=_0xc3d3d6[_0x2f46df(0xd2)]??null),_0x2230ae;}function normalizeSort(_0x46f68f){const _0x5ba146=a97_0x255a50;return typeof _0x46f68f===_0x5ba146(0xee)&&Number['isFinite'](_0x46f68f)?_0x46f68f:Number[_0x5ba146(0xed)];}function normalizeString(_0x5574e8){const _0x23afd9=a97_0x255a50;return typeof _0x5574e8===_0x23afd9(0xe1)?_0x5574e8:'';}function normalizeResources(_0x41c4dd){const _0x24eb9d=a97_0x255a50;if(Array[_0x24eb9d(0xe7)](_0x41c4dd))return _0x41c4dd[_0x24eb9d(0xd5)](String);if(typeof _0x41c4dd!==_0x24eb9d(0xe1))return[];try{const _0x49de09=JSON[_0x24eb9d(0xe2)](_0x41c4dd);return Array[_0x24eb9d(0xe7)](_0x49de09)?_0x49de09[_0x24eb9d(0xd5)](String):[];}catch{return[];}}
1
+ const a97_0x5720ac=a97_0x3c6f;(function(_0x57d67a,_0x24935c){const _0x3a9516=a97_0x3c6f,_0x4ddc27=_0x57d67a();while(!![]){try{const _0x587fb7=parseInt(_0x3a9516(0x1f6))/0x1+-parseInt(_0x3a9516(0x1ed))/0x2+parseInt(_0x3a9516(0x1ea))/0x3+parseInt(_0x3a9516(0x1f5))/0x4+parseInt(_0x3a9516(0x1f0))/0x5+parseInt(_0x3a9516(0x1fd))/0x6*(-parseInt(_0x3a9516(0x1fc))/0x7)+parseInt(_0x3a9516(0x1df))/0x8*(-parseInt(_0x3a9516(0x1dc))/0x9);if(_0x587fb7===_0x24935c)break;else _0x4ddc27['push'](_0x4ddc27['shift']());}catch(_0x203b6f){_0x4ddc27['push'](_0x4ddc27['shift']());}}}(a97_0x232f,0x9bf33));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a97_0x232f(){const _0x1e9c95=['21NkbkWn','1436862hpmEXS','extend','POSITIVE_INFINITY','isArray','2463354OGTSwS','cookie','type','40iSDxTd','string','length','menu','number','push','item','Found\x20','read','parse','sort','3519378TYYVdt','bool','children','163036XmWknT','path','visible','2780795ScKZEX','boolean','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','\x20menu(s)','depth','578152lfwztK','933427XPXyYM','No\x20menus\x20found.','map','verbose','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','index'];a97_0x232f=function(){return _0x1e9c95;};return a97_0x232f();}import{getMenuTree}from'../../core/api-client.js';function a97_0x3c6f(_0x4430ca,_0x4a47d2){_0x4430ca=_0x4430ca-0x1dc;const _0x232f78=a97_0x232f();let _0x3c6fb3=_0x232f78[_0x4430ca];return _0x3c6fb3;}export const menuList={'service':a97_0x5720ac(0x1e2),'command':'list','description':a97_0x5720ac(0x1fa),'risk':a97_0x5720ac(0x1e7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':a97_0x5720ac(0x1f1),'description':a97_0x5720ac(0x1f2)}],async 'execute'(_0x400408){const _0x442a65=a97_0x5720ac,_0x4281d7=_0x400408[_0x442a65(0x1eb)](_0x442a65(0x1f9)),_0x1ebad3=await getMenuTree(_0x400408['appCode'],_0x400408[_0x442a65(0x1dd)]),_0x463365=flattenMenuItems(Array[_0x442a65(0x200)](_0x1ebad3)?_0x1ebad3:[],{'verbose':_0x4281d7,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x463365[_0x442a65(0x1e1)],'menus':_0x463365},'message':_0x463365[_0x442a65(0x1e1)]===0x0?_0x442a65(0x1f7):_0x442a65(0x1e6)+_0x463365[_0x442a65(0x1e1)]+_0x442a65(0x1f3)};}};function flattenMenuItems(_0x28078d,_0x5206e0){const _0x733dc4=a97_0x5720ac,_0xe407a2=sortMenuItems(_0x28078d),_0x12bb56=[];for(const _0x11d619 of _0xe407a2){_0x12bb56[_0x733dc4(0x1e4)](toMenuListItem(_0x11d619,_0x5206e0)),Array[_0x733dc4(0x200)](_0x11d619[_0x733dc4(0x1ec)])&&_0x11d619['children']['length']>0x0&&_0x12bb56['push'](...flattenMenuItems(_0x11d619[_0x733dc4(0x1ec)],{'verbose':_0x5206e0[_0x733dc4(0x1f9)],'parentId':_0x11d619['id'],'depth':_0x5206e0[_0x733dc4(0x1f4)]+0x1}));}return _0x12bb56;}function sortMenuItems(_0x3b93b7){const _0x1ea7da=a97_0x5720ac;return _0x3b93b7[_0x1ea7da(0x1f8)]((_0x188509,_0x3639a5)=>({'item':_0x188509,'index':_0x3639a5}))[_0x1ea7da(0x1e9)]((_0x13f77d,_0x31773e)=>{const _0x1a7a44=_0x1ea7da,_0x482f72=normalizeSort(_0x13f77d[_0x1a7a44(0x1e5)]['sort']),_0xe81a55=normalizeSort(_0x31773e[_0x1a7a44(0x1e5)]['sort']);if(_0x482f72!==_0xe81a55)return _0x482f72-_0xe81a55;return _0x13f77d[_0x1a7a44(0x1fb)]-_0x31773e[_0x1a7a44(0x1fb)];})[_0x1ea7da(0x1f8)](({item:_0x4fde90})=>_0x4fde90);}function toMenuListItem(_0x481b8d,_0x2a9eda){const _0x28e42a=a97_0x5720ac,_0x1c5cd6={'id':_0x481b8d['id'],'parentId':_0x2a9eda['parentId'],'depth':_0x2a9eda[_0x28e42a(0x1f4)],'label':normalizeString(_0x481b8d['label']),'path':normalizeString(_0x481b8d[_0x28e42a(0x1ee)]),'type':normalizeString(_0x481b8d[_0x28e42a(0x1de)]),'visible':typeof _0x481b8d['visible']===_0x28e42a(0x1f1)?_0x481b8d[_0x28e42a(0x1ef)]:null,'sort':typeof _0x481b8d[_0x28e42a(0x1e9)]===_0x28e42a(0x1e3)&&Number['isFinite'](_0x481b8d[_0x28e42a(0x1e9)])?_0x481b8d[_0x28e42a(0x1e9)]:null,'resources':normalizeResources(_0x481b8d[_0x28e42a(0x1fe)]?.['resources'])};return _0x2a9eda[_0x28e42a(0x1f9)]&&(_0x1c5cd6[_0x28e42a(0x1fe)]=_0x481b8d[_0x28e42a(0x1fe)]??null),_0x1c5cd6;}function normalizeSort(_0x1357ea){const _0x55941f=a97_0x5720ac;return typeof _0x1357ea==='number'&&Number['isFinite'](_0x1357ea)?_0x1357ea:Number[_0x55941f(0x1ff)];}function normalizeString(_0x4905d9){return typeof _0x4905d9==='string'?_0x4905d9:'';}function normalizeResources(_0xf4fabf){const _0x2d929a=a97_0x5720ac;if(Array[_0x2d929a(0x200)](_0xf4fabf))return _0xf4fabf[_0x2d929a(0x1f8)](String);if(typeof _0xf4fabf!==_0x2d929a(0x1e0))return[];try{const _0x28ef7f=JSON[_0x2d929a(0x1e8)](_0xf4fabf);return Array[_0x2d929a(0x200)](_0x28ef7f)?_0x28ef7f[_0x2d929a(0x1f8)](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- function a98_0x21a0(){const _0x346ba9=['path','length','3529141ZXImqL','join','149924QoIAMH','2313SzxQYo','\x20\x20Affected\x20menus:\x20','\x20\x20\x20\x20CSS:\x20','Platform','4323cEOHpV','push','2213592gROaQW','local','\x20\x20No\x20pages\x20to\x20sync.','45bpimjD','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','2247894UsDVSq','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','7phqSsW','(unchanged)','repeat','showOnline','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','\x20\x20\x20\x20JS:\x20\x20','label','max','26ONXQZe','4570jmBoRe','352968TZLQFm','test'];a98_0x21a0=function(){return _0x346ba9;};return a98_0x21a0();}function a98_0x14c6(_0x452ecf,_0x3a429b){_0x452ecf=_0x452ecf-0x85;const _0x21a068=a98_0x21a0();let _0x14c66b=_0x21a068[_0x452ecf];return _0x14c66b;}(function(_0x18e0be,_0x12aaaf){const _0x155c20=a98_0x14c6,_0x2a8be9=_0x18e0be();while(!![]){try{const _0x46eadf=-parseInt(_0x155c20(0x8c))/0x1+-parseInt(_0x155c20(0x8a))/0x2*(-parseInt(_0x155c20(0x97))/0x3)+-parseInt(_0x155c20(0x92))/0x4*(-parseInt(_0x155c20(0x9c))/0x5)+-parseInt(_0x155c20(0x9e))/0x6*(-parseInt(_0x155c20(0xa0))/0x7)+parseInt(_0x155c20(0x99))/0x8+parseInt(_0x155c20(0x93))/0x9*(-parseInt(_0x155c20(0x8b))/0xa)+-parseInt(_0x155c20(0x90))/0xb;if(_0x46eadf===_0x12aaaf)break;else _0x2a8be9['push'](_0x2a8be9['shift']());}catch(_0x53d817){_0x2a8be9['push'](_0x2a8be9['shift']());}}}(a98_0x21a0,0x34c62));function strWidth(_0x17c319){const _0x37f970=a98_0x14c6;let _0x3597aa=0x0;for(const _0x18985d of _0x17c319){_0x3597aa+=/[\u4e00-\u9fa5]/[_0x37f970(0x8d)](_0x18985d)?0x2:0x1;}return _0x3597aa;}function padRight(_0x993b26,_0xda0c3a){const _0x3ebd7e=a98_0x14c6,_0x4cec4e=strWidth(_0x993b26);return _0x993b26+'\x20'[_0x3ebd7e(0xa2)](Math['max'](0x0,_0xda0c3a-_0x4cec4e));}export function renderCompareTable(_0x5a048b,_0x10abdd={}){const _0x5b2acb=a98_0x14c6;if(_0x5a048b['length']===0x0)return'';const _0x514e67=_0x10abdd[_0x5b2acb(0xa3)]??!![],_0xd2b526=Math[_0x5b2acb(0x89)](0x1e,..._0x5a048b['map'](_0x5ed0a8=>strWidth(_0x5ed0a8[_0x5b2acb(0x88)]))),_0x2431f5=0x4,_0x29cb9c=[],_0x108fdd='\x20\x20'+padRight('Menu\x20Name',_0xd2b526),_0x5e27ff=padRight('Local',_0x2431f5),_0x297e08=_0x514e67?'\x20\x20'+padRight(_0x5b2acb(0x96),_0x2431f5):'';_0x29cb9c[_0x5b2acb(0x98)](_0x108fdd+'\x20\x20'+_0x5e27ff+(_0x514e67?_0x297e08:'')),_0x29cb9c[_0x5b2acb(0x98)]('\x20\x20'+'─'[_0x5b2acb(0xa2)](_0xd2b526)+'\x20\x20'+'─'['repeat'](_0x2431f5)+(_0x514e67?'\x20\x20'+'─'[_0x5b2acb(0xa2)](_0x2431f5):''));for(const _0x5b1595 of _0x5a048b){const _0x11da46=padRight(_0x5b1595[_0x5b2acb(0x88)],_0xd2b526),_0x210700=_0x5b1595[_0x5b2acb(0x9a)]?'✓':'✗',_0x213bdd=padRight(_0x210700,_0x2431f5);let _0x5df55b='\x20\x20'+_0x11da46+'\x20\x20'+_0x213bdd;if(_0x514e67){const _0x1cd101=_0x5b1595['online']?'✓':'✗';_0x5df55b+='\x20\x20'+padRight(_0x1cd101,_0x2431f5);}_0x29cb9c[_0x5b2acb(0x98)](_0x5df55b);}return _0x29cb9c[_0x5b2acb(0x91)]('\x0a');}export function renderSyncSummary(_0x2d68e9,_0x25ce57){const _0x435366=a98_0x14c6;if(_0x2d68e9[_0x435366(0x8f)]===0x0)return _0x25ce57?_0x435366(0x86):_0x435366(0x9b);const _0x1dee1a=['\x20\x20'+_0x2d68e9[_0x435366(0x8f)]+_0x435366(0x9f)];for(const _0x4aa77f of _0x2d68e9){_0x1dee1a[_0x435366(0x98)]('\x20\x20\x20\x20•\x20'+_0x4aa77f[_0x435366(0x88)]+'\x20('+_0x4aa77f[_0x435366(0x8e)]+')');}return _0x1dee1a[_0x435366(0x91)]('\x0a');}export function renderUpdateSummary(_0x5c1aa2,_0xfd9ae9){const _0x232112=a98_0x14c6;if(_0x5c1aa2[_0x232112(0x8f)]===0x0)return _0x232112(0x9d);const _0x4b3d0e=['\x20\x20'+_0x5c1aa2[_0x232112(0x8f)]+_0x232112(0x85),_0x232112(0x87)+(_0xfd9ae9[0x0]??_0x232112(0xa1)),_0x232112(0x95)+(_0xfd9ae9[0x1]??_0x232112(0xa1)),'',_0x232112(0x94)+_0x5c1aa2[_0x232112(0x91)](',\x20')];return _0x4b3d0e[_0x232112(0x91)]('\x0a');}
1
+ (function(_0x5094c5,_0x334722){const _0x3d248b=a98_0x5435,_0x370113=_0x5094c5();while(!![]){try{const _0x77f514=-parseInt(_0x3d248b(0x110))/0x1*(parseInt(_0x3d248b(0x122))/0x2)+parseInt(_0x3d248b(0x118))/0x3+-parseInt(_0x3d248b(0x11c))/0x4*(-parseInt(_0x3d248b(0x117))/0x5)+parseInt(_0x3d248b(0x112))/0x6*(-parseInt(_0x3d248b(0x12c))/0x7)+parseInt(_0x3d248b(0x116))/0x8*(parseInt(_0x3d248b(0x124))/0x9)+parseInt(_0x3d248b(0x12e))/0xa*(parseInt(_0x3d248b(0x126))/0xb)+-parseInt(_0x3d248b(0x12a))/0xc*(parseInt(_0x3d248b(0x113))/0xd);if(_0x77f514===_0x334722)break;else _0x370113['push'](_0x370113['shift']());}catch(_0x352fe6){_0x370113['push'](_0x370113['shift']());}}}(a98_0x499c,0x4dae0));function strWidth(_0x147979){const _0x3c53c1=a98_0x5435;let _0x2010fc=0x0;for(const _0x4eb09e of _0x147979){_0x2010fc+=/[\u4e00-\u9fa5]/[_0x3c53c1(0x11e)](_0x4eb09e)?0x2:0x1;}return _0x2010fc;}function padRight(_0xc32294,_0xcc5ae7){const _0x1ed632=a98_0x5435,_0x1fa66b=strWidth(_0xc32294);return _0xc32294+'\x20'['repeat'](Math[_0x1ed632(0x12d)](0x0,_0xcc5ae7-_0x1fa66b));}function a98_0x5435(_0x215f94,_0x37e3db){_0x215f94=_0x215f94-0x110;const _0x499c6b=a98_0x499c();let _0x543599=_0x499c6b[_0x215f94];return _0x543599;}export function renderCompareTable(_0x550ee9,_0x32da46={}){const _0x4ec362=a98_0x5435;if(_0x550ee9[_0x4ec362(0x121)]===0x0)return'';const _0x41a2e8=_0x32da46['showOnline']??!![],_0x24d0c9=Math[_0x4ec362(0x12d)](0x1e,..._0x550ee9[_0x4ec362(0x11b)](_0x467987=>strWidth(_0x467987[_0x4ec362(0x115)]))),_0x283326=0x4,_0x431df2=[],_0x277705='\x20\x20'+padRight('Menu\x20Name',_0x24d0c9),_0x1ce885=padRight(_0x4ec362(0x11a),_0x283326),_0x791443=_0x41a2e8?'\x20\x20'+padRight(_0x4ec362(0x12f),_0x283326):'';_0x431df2[_0x4ec362(0x11f)](_0x277705+'\x20\x20'+_0x1ce885+(_0x41a2e8?_0x791443:'')),_0x431df2['push']('\x20\x20'+'─'[_0x4ec362(0x120)](_0x24d0c9)+'\x20\x20'+'─'[_0x4ec362(0x120)](_0x283326)+(_0x41a2e8?'\x20\x20'+'─'[_0x4ec362(0x120)](_0x283326):''));for(const _0x42037a of _0x550ee9){const _0x377fda=padRight(_0x42037a['label'],_0x24d0c9),_0x4a668d=_0x42037a[_0x4ec362(0x128)]?'✓':'✗',_0x432993=padRight(_0x4a668d,_0x283326);let _0x333d09='\x20\x20'+_0x377fda+'\x20\x20'+_0x432993;if(_0x41a2e8){const _0x1fa64d=_0x42037a['online']?'✓':'✗';_0x333d09+='\x20\x20'+padRight(_0x1fa64d,_0x283326);}_0x431df2['push'](_0x333d09);}return _0x431df2['join']('\x0a');}function a98_0x499c(){const _0xbfcef5=['length','221470DhvhMx','\x20\x20\x20\x20JS:\x20\x20','337509jqfQco','join','22vwKkzU','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','local','\x20\x20\x20\x20•\x20','13848ceSXvh','(unchanged)','1141uwSvFN','max','687730YbhtJS','Platform','2eyjWdb','\x20\x20No\x20pages\x20to\x20sync.','2658LTICHQ','5837hHpcLz','\x20\x20\x20\x20CSS:\x20','label','72bTRpzX','116505SrmVkY','916293CVVrQn','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Local','map','60PbYaLI','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','test','push','repeat'];a98_0x499c=function(){return _0xbfcef5;};return a98_0x499c();}export function renderSyncSummary(_0x3a3cd1,_0x119ab3){const _0x569c82=a98_0x5435;if(_0x3a3cd1[_0x569c82(0x121)]===0x0)return _0x119ab3?_0x569c82(0x119):_0x569c82(0x111);const _0x594b3e=['\x20\x20'+_0x3a3cd1[_0x569c82(0x121)]+_0x569c82(0x11d)];for(const _0x373e36 of _0x3a3cd1){_0x594b3e[_0x569c82(0x11f)](_0x569c82(0x129)+_0x373e36['label']+'\x20('+_0x373e36['path']+')');}return _0x594b3e[_0x569c82(0x125)]('\x0a');}export function renderUpdateSummary(_0x12905a,_0x3aee6b){const _0x5b0e8f=a98_0x5435;if(_0x12905a[_0x5b0e8f(0x121)]===0x0)return _0x5b0e8f(0x127);const _0x1d0fbf=['\x20\x20'+_0x12905a[_0x5b0e8f(0x121)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x5b0e8f(0x123)+(_0x3aee6b[0x0]??_0x5b0e8f(0x12b)),_0x5b0e8f(0x114)+(_0x3aee6b[0x1]??_0x5b0e8f(0x12b)),'','\x20\x20Affected\x20menus:\x20'+_0x12905a[_0x5b0e8f(0x125)](',\x20')];return _0x1d0fbf[_0x5b0e8f(0x125)]('\x0a');}
@@ -1 +1 @@
1
- function a99_0x21e1(){var _0x1edda4=['731776qxdKIB','40Buxgcu','56013sNswqQ','3530AwtAre','1511629BBCkDq','8274oEsUwH','716067XrXDDo','7539760MnSlVq','84QrNsCT','3561282EQwUnm'];a99_0x21e1=function(){return _0x1edda4;};return a99_0x21e1();}(function(_0xbcc815,_0x2fc45a){var _0x47c17b=a99_0x4f8f,_0x4b94d=_0xbcc815();while(!![]){try{var _0x529474=parseInt(_0x47c17b(0xd5))/0x1+parseInt(_0x47c17b(0xd9))/0x2+parseInt(_0x47c17b(0xdb))/0x3*(parseInt(_0x47c17b(0xd7))/0x4)+-parseInt(_0x47c17b(0xd2))/0x5*(parseInt(_0x47c17b(0xd4))/0x6)+-parseInt(_0x47c17b(0xd3))/0x7*(parseInt(_0x47c17b(0xda))/0x8)+parseInt(_0x47c17b(0xd8))/0x9+parseInt(_0x47c17b(0xd6))/0xa;if(_0x529474===_0x2fc45a)break;else _0x4b94d['push'](_0x4b94d['shift']());}catch(_0x5c02ec){_0x4b94d['push'](_0x4b94d['shift']());}}}(a99_0x21e1,0x8b42b));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';function a99_0x4f8f(_0x428695,_0x5c7000){_0x428695=_0x428695-0xd2;var _0x21e13a=a99_0x21e1();var _0x4f8f74=_0x21e13a[_0x428695];return _0x4f8f74;}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x46e29e,_0x43a677){var _0x1d94bf=a99_0x395c,_0x1b7719=_0x46e29e();while(!![]){try{var _0x29df66=-parseInt(_0x1d94bf(0x163))/0x1*(parseInt(_0x1d94bf(0x167))/0x2)+-parseInt(_0x1d94bf(0x15f))/0x3+-parseInt(_0x1d94bf(0x164))/0x4+-parseInt(_0x1d94bf(0x162))/0x5+parseInt(_0x1d94bf(0x160))/0x6+parseInt(_0x1d94bf(0x161))/0x7*(parseInt(_0x1d94bf(0x165))/0x8)+parseInt(_0x1d94bf(0x166))/0x9;if(_0x29df66===_0x43a677)break;else _0x1b7719['push'](_0x1b7719['shift']());}catch(_0x5f1867){_0x1b7719['push'](_0x1b7719['shift']());}}}(a99_0x249d,0xbe467));function a99_0x395c(_0x5e7fcf,_0x24678c){_0x5e7fcf=_0x5e7fcf-0x15f;var _0x249dcf=a99_0x249d();var _0x395c8e=_0x249dcf[_0x5e7fcf];return _0x395c8e;}function a99_0x249d(){var _0x2fb05e=['7776654kZjJOI','566251JZRDid','874390NQDwaP','14iJzSFd','6035648RvSYTH','88HarCiG','19075131LwlhTj','46832fmzeFJ','4543230PCqEnG'];a99_0x249d=function(){return _0x2fb05e;};return a99_0x249d();}export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x46ded1,_0x510ee5){const _0x4dd475=a100_0x6785,_0x7ad8d3=_0x46ded1();while(!![]){try{const _0x46d4a2=-parseInt(_0x4dd475(0x160))/0x1*(parseInt(_0x4dd475(0x155))/0x2)+parseInt(_0x4dd475(0x151))/0x3*(parseInt(_0x4dd475(0x15f))/0x4)+-parseInt(_0x4dd475(0x158))/0x5+-parseInt(_0x4dd475(0x159))/0x6*(-parseInt(_0x4dd475(0x153))/0x7)+parseInt(_0x4dd475(0x15d))/0x8*(parseInt(_0x4dd475(0x13a))/0x9)+parseInt(_0x4dd475(0x14b))/0xa+-parseInt(_0x4dd475(0x139))/0xb*(parseInt(_0x4dd475(0x137))/0xc);if(_0x46d4a2===_0x510ee5)break;else _0x7ad8d3['push'](_0x7ad8d3['shift']());}catch(_0x6af834){_0x7ad8d3['push'](_0x7ad8d3['shift']());}}}(a100_0x5cac,0xedac5));function a100_0x6785(_0x458837,_0x8b507e){_0x458837=_0x458837-0x136;const _0x5cacc2=a100_0x5cac();let _0x678523=_0x5cacc2[_0x458837];return _0x678523;}import a100_0xdf9d65 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a100_0x3f9c0b from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function a100_0x5cac(){const _0x4c1171=['\x20\x20JS\x20URL:','8604000QwVgow','catch','trim','red','start','stdin','1195170leGKup','isTTY','28QiXjtq','\x20\x20Checking\x20CSS\x20URL\x20reachability...','186cSlxeE','No\x20local\x20pages\x20found.','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','2508505zmRSNz','2077278YaCTpI','[new]','Cancelled.','label','3792PUbRWE','includes','8ojqfEF','15494KHlHec','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','gray','20662056qXrtqk','error','11qJBMkc','30303cWyofM','name','test','CSS\x20URL\x20check\x20failed','cancelled','has','fail','[already\x20on\x20platform]','map','JS\x20URL\x20checked','length','\x20\x20CSS\x20URL:','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','cyan','No\x20menus\x20selected.','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.'];a100_0x5cac=function(){return _0x4c1171;};return a100_0x5cac();}function onCancel(_0x3c9ea7){const _0x38630f=a100_0x6785;return _0x3c9ea7[_0x38630f(0x14c)](_0x4bb518=>{const _0x14358f=_0x38630f;if(_0x4bb518?.[_0x14358f(0x13b)]==='ExitPromptError')throw CliErrors[_0x14358f(0x13e)]('Cancelled.');throw _0x4bb518;});}export function startSpinner(_0xc709ec){const _0xbed950=a100_0x6785;return a100_0x3f9c0b({'text':_0xc709ec,'color':_0xbed950(0x147)})[_0xbed950(0x14f)]();}export function stopSpinner(_0x4b2adb,_0x474b31,_0x2a07f6){const _0x4a2acb=a100_0x6785;_0x2a07f6?_0x4b2adb['succeed'](_0x474b31):_0x4b2adb[_0x4a2acb(0x140)](_0x474b31);}export async function askConfirm(_0x511ecc){return onCancel(confirm({'message':_0x511ecc,'theme':{'prefix':''}}));}export async function askJsUrl(_0x1380a3){const _0x22c07c=a100_0x6785;while(!![]){const _0x474c67=await onCancel(input({'message':_0x22c07c(0x14a),'default':_0x1380a3,'theme':{'prefix':''}}));if(_0x474c67[_0x22c07c(0x14d)]()==='')throw CliErrors[_0x22c07c(0x13e)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x22c07c(0x13c)](_0x474c67[_0x22c07c(0x14d)]())){console[_0x22c07c(0x138)](a100_0xdf9d65[_0x22c07c(0x14e)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x220d72=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x4cc823=await isUrlReachable(_0x474c67[_0x22c07c(0x14d)]());stopSpinner(_0x220d72,_0x22c07c(0x143),_0x4cc823);if(!_0x4cc823){console['error'](a100_0xdf9d65[_0x22c07c(0x14e)](_0x22c07c(0x161)));continue;}return _0x474c67[_0x22c07c(0x14d)]();}catch(_0x2a0f47){stopSpinner(_0x220d72,'JS\x20URL\x20check\x20failed',![]);throw _0x2a0f47;}}}export async function askCssUrl(_0xe213e5){const _0x4c4f0a=a100_0x6785;while(!![]){const _0x38156a=await onCancel(input({'message':_0x4c4f0a(0x145),'default':_0xe213e5,'theme':{'prefix':''}}));if(_0x38156a[_0x4c4f0a(0x14d)]()==='')throw CliErrors[_0x4c4f0a(0x13e)](_0x4c4f0a(0x15b));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x4c4f0a(0x13c)](_0x38156a['trim']())){console[_0x4c4f0a(0x138)](a100_0xdf9d65[_0x4c4f0a(0x14e)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x2553b0=startSpinner(_0x4c4f0a(0x154));try{const _0x4d5c9e=await isUrlReachable(_0x38156a['trim']());stopSpinner(_0x2553b0,'CSS\x20URL\x20checked',_0x4d5c9e);if(!_0x4d5c9e){console[_0x4c4f0a(0x138)](a100_0xdf9d65[_0x4c4f0a(0x14e)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x38156a[_0x4c4f0a(0x14d)]();}catch(_0x4f8540){stopSpinner(_0x2553b0,_0x4c4f0a(0x13d),![]);throw _0x4f8540;}}}export async function selectPages(_0x57e1cd,_0x325231,_0xb922d4){const _0x57909b=a100_0x6785,_0x465231=_0x57e1cd[_0x57909b(0x142)](_0x2dc53b=>({'name':_0x2dc53b['label']+'\x20\x20'+(_0x325231[_0x57909b(0x13f)](_0x2dc53b['path'])?a100_0xdf9d65[_0x57909b(0x136)](_0x57909b(0x141)):a100_0xdf9d65['green'](_0x57909b(0x15a))),'value':_0x2dc53b[_0x57909b(0x15c)],'checked':_0xb922d4?_0xb922d4['includes'](_0x2dc53b[_0x57909b(0x15c)]):!_0x325231['has'](_0x2dc53b['path'])}));if(_0x465231[_0x57909b(0x144)]===0x0)throw new Error(_0x57909b(0x156));const _0x8a3cd0=await onCancel(checkbox({'message':_0x57909b(0x146),'choices':_0x465231,'loop':![],'theme':{'prefix':''}}));if(_0x8a3cd0[_0x57909b(0x144)]===0x0)throw new Error(_0x57909b(0x148));return _0x57e1cd['filter'](_0x1b1be0=>_0x8a3cd0[_0x57909b(0x15e)](_0x1b1be0[_0x57909b(0x15c)]));}export function isInteractive(){const _0x2fb5a4=a100_0x6785;return process[_0x2fb5a4(0x150)][_0x2fb5a4(0x152)]===!![];}export function requireInteractive(){const _0x31cdcd=a100_0x6785;if(!isInteractive())throw new Error(_0x31cdcd(0x157)+_0x31cdcd(0x149));}
1
+ (function(_0x3811f1,_0x2a5867){const _0x303eef=a100_0x1baf,_0x4ce10b=_0x3811f1();while(!![]){try{const _0xfdcac6=parseInt(_0x303eef(0x180))/0x1+-parseInt(_0x303eef(0x16c))/0x2*(-parseInt(_0x303eef(0x16d))/0x3)+-parseInt(_0x303eef(0x17f))/0x4*(-parseInt(_0x303eef(0x193))/0x5)+parseInt(_0x303eef(0x177))/0x6*(-parseInt(_0x303eef(0x18f))/0x7)+-parseInt(_0x303eef(0x18c))/0x8+-parseInt(_0x303eef(0x185))/0x9+parseInt(_0x303eef(0x189))/0xa;if(_0xfdcac6===_0x2a5867)break;else _0x4ce10b['push'](_0x4ce10b['shift']());}catch(_0x3329dc){_0x4ce10b['push'](_0x4ce10b['shift']());}}}(a100_0x48cd,0x60b9a));import a100_0x3d6510 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a100_0x421376 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x2ca4e5){const _0x15b278=a100_0x1baf;return _0x2ca4e5[_0x15b278(0x182)](_0x3f28d9=>{const _0x2ecd9e=_0x15b278;if(_0x3f28d9?.[_0x2ecd9e(0x16e)]==='ExitPromptError')throw CliErrors['cancelled']('Cancelled.');throw _0x3f28d9;});}function a100_0x1baf(_0x16d997,_0x12b464){_0x16d997=_0x16d997-0x168;const _0x48cdec=a100_0x48cd();let _0x1baf32=_0x48cdec[_0x16d997];return _0x1baf32;}export function startSpinner(_0x39e0d3){const _0x5a6327=a100_0x1baf;return a100_0x421376({'text':_0x39e0d3,'color':'cyan'})[_0x5a6327(0x169)]();}function a100_0x48cd(){const _0x55fd36=['red','start','CSS\x20URL\x20check\x20failed','stdin','136wuGWHl','4593PBEDmC','name','has','CSS\x20URL\x20checked','succeed','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','fail','gray','[already\x20on\x20platform]','No\x20menus\x20selected.','1223406KhKEFt','filter','JS\x20URL\x20check\x20failed','test','JS\x20URL\x20checked','isTTY','trim','Cancelled.','15628sDUvac','482154uaouDw','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','catch','\x20\x20Checking\x20JS\x20URL\x20reachability...','includes','311472LWRQXR','No\x20local\x20pages\x20found.','cancelled','green','3896820EpCBoo','label','error','2843224laiMFD','[new]','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','21xSrjuI','path','length','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','540SePytv'];a100_0x48cd=function(){return _0x55fd36;};return a100_0x48cd();}export function stopSpinner(_0x4f729b,_0x581ca3,_0x1d1168){const _0x36e977=a100_0x1baf;_0x1d1168?_0x4f729b[_0x36e977(0x171)](_0x581ca3):_0x4f729b[_0x36e977(0x173)](_0x581ca3);}export async function askConfirm(_0x4618f8){return onCancel(confirm({'message':_0x4618f8,'theme':{'prefix':''}}));}export async function askJsUrl(_0x55ca0a){const _0x27ccd1=a100_0x1baf;while(!![]){const _0x45fe47=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x55ca0a,'theme':{'prefix':''}}));if(_0x45fe47['trim']()==='')throw CliErrors[_0x27ccd1(0x187)](_0x27ccd1(0x17e));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x45fe47[_0x27ccd1(0x17d)]())){console['error'](a100_0x3d6510[_0x27ccd1(0x168)](_0x27ccd1(0x181)));continue;}const _0x58a24e=startSpinner(_0x27ccd1(0x183));try{const _0x2629f0=await isUrlReachable(_0x45fe47[_0x27ccd1(0x17d)]());stopSpinner(_0x58a24e,_0x27ccd1(0x17b),_0x2629f0);if(!_0x2629f0){console[_0x27ccd1(0x18b)](a100_0x3d6510[_0x27ccd1(0x168)]('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x45fe47['trim']();}catch(_0x46fc6f){stopSpinner(_0x58a24e,_0x27ccd1(0x179),![]);throw _0x46fc6f;}}}export async function askCssUrl(_0x493018){const _0x34c8ca=a100_0x1baf;while(!![]){const _0x2a1728=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x493018,'theme':{'prefix':''}}));if(_0x2a1728[_0x34c8ca(0x17d)]()==='')throw CliErrors[_0x34c8ca(0x187)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x34c8ca(0x17a)](_0x2a1728['trim']())){console[_0x34c8ca(0x18b)](a100_0x3d6510[_0x34c8ca(0x168)](_0x34c8ca(0x192)));continue;}const _0x1edf95=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x4b4fc3=await isUrlReachable(_0x2a1728[_0x34c8ca(0x17d)]());stopSpinner(_0x1edf95,_0x34c8ca(0x170),_0x4b4fc3);if(!_0x4b4fc3){console['error'](a100_0x3d6510[_0x34c8ca(0x168)](_0x34c8ca(0x18e)));continue;}return _0x2a1728[_0x34c8ca(0x17d)]();}catch(_0x768d53){stopSpinner(_0x1edf95,_0x34c8ca(0x16a),![]);throw _0x768d53;}}}export async function selectPages(_0x324525,_0x3f0495,_0x19a286){const _0x29ea92=a100_0x1baf,_0x4bec68=_0x324525['map'](_0x4e3452=>({'name':_0x4e3452[_0x29ea92(0x18a)]+'\x20\x20'+(_0x3f0495[_0x29ea92(0x16f)](_0x4e3452[_0x29ea92(0x190)])?a100_0x3d6510[_0x29ea92(0x174)](_0x29ea92(0x175)):a100_0x3d6510[_0x29ea92(0x188)](_0x29ea92(0x18d))),'value':_0x4e3452[_0x29ea92(0x18a)],'checked':_0x19a286?_0x19a286[_0x29ea92(0x184)](_0x4e3452['label']):!_0x3f0495[_0x29ea92(0x16f)](_0x4e3452['path'])}));if(_0x4bec68[_0x29ea92(0x191)]===0x0)throw new Error(_0x29ea92(0x186));const _0x5c77c7=await onCancel(checkbox({'message':_0x29ea92(0x172),'choices':_0x4bec68,'loop':![],'theme':{'prefix':''}}));if(_0x5c77c7[_0x29ea92(0x191)]===0x0)throw new Error(_0x29ea92(0x176));return _0x324525[_0x29ea92(0x178)](_0x23b95b=>_0x5c77c7[_0x29ea92(0x184)](_0x23b95b[_0x29ea92(0x18a)]));}export function isInteractive(){const _0xc55df9=a100_0x1baf;return process[_0xc55df9(0x16b)][_0xc55df9(0x17c)]===!![];}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 a101_0x26c3a6=a101_0x5755;(function(_0x2bd039,_0x20f91c){const _0xeebb82=a101_0x5755,_0x70fdcb=_0x2bd039();while(!![]){try{const _0x4695d7=-parseInt(_0xeebb82(0xca))/0x1*(-parseInt(_0xeebb82(0xcc))/0x2)+-parseInt(_0xeebb82(0xb8))/0x3+parseInt(_0xeebb82(0xbf))/0x4+parseInt(_0xeebb82(0xbd))/0x5+parseInt(_0xeebb82(0xc3))/0x6*(parseInt(_0xeebb82(0xb3))/0x7)+-parseInt(_0xeebb82(0xba))/0x8+-parseInt(_0xeebb82(0xc1))/0x9*(parseInt(_0xeebb82(0xb5))/0xa);if(_0x4695d7===_0x20f91c)break;else _0x70fdcb['push'](_0x70fdcb['shift']());}catch(_0x116e73){_0x70fdcb['push'](_0x70fdcb['shift']());}}}(a101_0x5e83,0x2895b));function a101_0x5e83(){const _0x12eaa8=['utf-8','match','49611ZfKPyE','isDirectory','1518816HrmEUn','concat','forEach','1043320mMtmzk','index.tsx','490796OfwGRi','path','3288861mkLwqP','push','204DJmLuJ','src/pages','trim','cwd','endsWith','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','.tsx','22tnjsnG','replaceAll','29396UyXybn','replace','17157aFnEwn','join','10jGojMT'];a101_0x5e83=function(){return _0x12eaa8;};return a101_0x5e83();}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a101_0x26c3a6(0xc6)](),a101_0x26c3a6(0xc4));function a101_0x5755(_0x24ac43,_0x1a102b){_0x24ac43=_0x24ac43-0xb2;const _0x5e83f7=a101_0x5e83();let _0x5755b9=_0x5e83f7[_0x24ac43];return _0x5755b9;}export function extractTitleFromComment(_0x2c1e00){const _0x3c3621=a101_0x26c3a6;try{const _0x32ce17=readFileSync(_0x2c1e00,_0x3c3621(0xb6)),_0x56ba73=_0x32ce17[_0x3c3621(0xb7)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x56ba73&&_0x56ba73[0x1]){const _0x157385=_0x56ba73[0x1],_0x527ead=_0x157385['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x527ead&&_0x527ead[0x1])return _0x527ead[0x1][_0x3c3621(0xc5)]();}let _0x319edc=null;const _0x3bab66=_0x32ce17[_0x3c3621(0xb7)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3bab66&&_0x3bab66[0x1]&&(_0x319edc=_0x3bab66[0x1]);if(!_0x319edc){const _0x17e778=_0x32ce17[_0x3c3621(0xb7)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x17e778&&_0x17e778[0x1]&&(_0x319edc=_0x17e778[0x1]);}if(_0x319edc){const _0x5cf025=new RegExp('\x5cb'+_0x319edc+_0x3c3621(0xc8)),_0x48f1f6=_0x32ce17[_0x3c3621(0xb7)](_0x5cf025);if(_0x48f1f6&&_0x48f1f6[0x1])return _0x48f1f6[0x1];return _0x319edc;}return null;}catch(_0x17f8af){return null;}}export function getLocalPages(_0x370b32=pagesDir,_0x5c26ba=pagesDir){const _0x4019ed=a101_0x26c3a6;let _0x24e450=[];const _0x4937ea=readdirSync(_0x370b32);return _0x4937ea[_0x4019ed(0xbc)](_0x22a691=>{const _0xfef172=_0x4019ed,_0x1c804a=join(_0x370b32,_0x22a691),_0x29d8c3=statSync(_0x1c804a);if(_0x29d8c3&&_0x29d8c3[_0xfef172(0xb9)]())_0x24e450=_0x24e450[_0xfef172(0xbb)](getLocalPages(_0x1c804a,_0x5c26ba));else{if(_0x22a691[_0xfef172(0xc7)](_0xfef172(0xc9))){let _0x4de578=relative(_0x5c26ba,_0x1c804a);_0x4de578[_0xfef172(0xc7)](_0xfef172(0xbe))?_0x4de578=_0x4de578[_0xfef172(0xb2)](/index\.tsx$/,''):_0x4de578=_0x4de578['replace'](/\.tsx$/,'');_0x4de578[_0xfef172(0xc7)](sep)&&(_0x4de578=_0x4de578['slice'](0x0,-0x1));const _0x458b56=_0x4de578['split'](sep)[_0xfef172(0xb4)]('/'),_0x191085=extractTitleFromComment(_0x1c804a),_0x6cd39a=_0x191085||_0x458b56;_0x24e450[_0xfef172(0xc2)]({'path':_0x458b56[_0xfef172(0xcb)]('$',':'),'label':_0x6cd39a});}}}),_0x24e450['filter'](_0x3e4296=>_0x3e4296[_0x4019ed(0xc0)]!=='');}
1
+ const a101_0x3997d8=a101_0x1244;function a101_0x1244(_0x474260,_0xf03d0b){_0x474260=_0x474260-0x102;const _0x380bd5=a101_0x380b();let _0x124404=_0x380bd5[_0x474260];return _0x124404;}(function(_0x4c79d0,_0x523a09){const _0x4811dc=a101_0x1244,_0x2e3ee9=_0x4c79d0();while(!![]){try{const _0x5338aa=parseInt(_0x4811dc(0x10c))/0x1+-parseInt(_0x4811dc(0x11a))/0x2*(-parseInt(_0x4811dc(0x10e))/0x3)+-parseInt(_0x4811dc(0x115))/0x4+parseInt(_0x4811dc(0x110))/0x5+parseInt(_0x4811dc(0x11b))/0x6*(-parseInt(_0x4811dc(0x119))/0x7)+parseInt(_0x4811dc(0x109))/0x8*(-parseInt(_0x4811dc(0x107))/0x9)+parseInt(_0x4811dc(0x112))/0xa;if(_0x5338aa===_0x523a09)break;else _0x2e3ee9['push'](_0x2e3ee9['shift']());}catch(_0x15d8e8){_0x2e3ee9['push'](_0x2e3ee9['shift']());}}}(a101_0x380b,0xd7b4c));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a101_0x3997d8(0x116)](),a101_0x3997d8(0x104));function a101_0x380b(){const _0x5a920a=['4659KaAlss','split','8157440uuYtty','.tsx','3446810GCytKE','index.tsx','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','6696112ptYTBf','cwd','concat','join','28vkTUXd','2038iyBwsj','1835688wrAZeU','isDirectory','replace','replaceAll','src/pages','push','endsWith','261iXjuVQ','filter','147768mtvqIJ','match','path','758335NnyETM','slice'];a101_0x380b=function(){return _0x5a920a;};return a101_0x380b();}export function extractTitleFromComment(_0x5a4c2e){const _0x3bbfab=a101_0x3997d8;try{const _0x37ccdb=readFileSync(_0x5a4c2e,'utf-8'),_0x549168=_0x37ccdb[_0x3bbfab(0x10a)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x549168&&_0x549168[0x1]){const _0x39369c=_0x549168[0x1],_0x707d2a=_0x39369c[_0x3bbfab(0x10a)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x707d2a&&_0x707d2a[0x1])return _0x707d2a[0x1]['trim']();}let _0x331522=null;const _0x594f8c=_0x37ccdb[_0x3bbfab(0x10a)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x594f8c&&_0x594f8c[0x1]&&(_0x331522=_0x594f8c[0x1]);if(!_0x331522){const _0x278db4=_0x37ccdb[_0x3bbfab(0x10a)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x278db4&&_0x278db4[0x1]&&(_0x331522=_0x278db4[0x1]);}if(_0x331522){const _0x7a687=new RegExp('\x5cb'+_0x331522+_0x3bbfab(0x114)),_0x28c14a=_0x37ccdb[_0x3bbfab(0x10a)](_0x7a687);if(_0x28c14a&&_0x28c14a[0x1])return _0x28c14a[0x1];return _0x331522;}return null;}catch(_0x87335d){return null;}}export function getLocalPages(_0xd0e38c=pagesDir,_0x1f09b8=pagesDir){const _0x2f2e00=a101_0x3997d8;let _0x909735=[];const _0x391b15=readdirSync(_0xd0e38c);return _0x391b15['forEach'](_0x258661=>{const _0x422f91=a101_0x1244,_0x1ea265=join(_0xd0e38c,_0x258661),_0x1dac8e=statSync(_0x1ea265);if(_0x1dac8e&&_0x1dac8e[_0x422f91(0x11c)]())_0x909735=_0x909735[_0x422f91(0x117)](getLocalPages(_0x1ea265,_0x1f09b8));else{if(_0x258661[_0x422f91(0x106)](_0x422f91(0x111))){let _0x338bdb=relative(_0x1f09b8,_0x1ea265);_0x338bdb[_0x422f91(0x106)](_0x422f91(0x113))?_0x338bdb=_0x338bdb[_0x422f91(0x102)](/index\.tsx$/,''):_0x338bdb=_0x338bdb[_0x422f91(0x102)](/\.tsx$/,'');_0x338bdb[_0x422f91(0x106)](sep)&&(_0x338bdb=_0x338bdb[_0x422f91(0x10d)](0x0,-0x1));const _0x422d6b=_0x338bdb[_0x422f91(0x10f)](sep)[_0x422f91(0x118)]('/'),_0x180ed1=extractTitleFromComment(_0x1ea265),_0x13eca1=_0x180ed1||_0x422d6b;_0x909735[_0x422f91(0x105)]({'path':_0x422d6b[_0x422f91(0x103)]('$',':'),'label':_0x13eca1});}}}),_0x909735[_0x2f2e00(0x108)](_0x47fd51=>_0x47fd51[_0x2f2e00(0x10b)]!=='');}
@@ -1 +1 @@
1
- (function(_0x3016c0,_0x17d219){const _0x8af8dd=a102_0x369c,_0x10f4d9=_0x3016c0();while(!![]){try{const _0x4fb293=-parseInt(_0x8af8dd(0x98))/0x1+-parseInt(_0x8af8dd(0xa1))/0x2+parseInt(_0x8af8dd(0x8f))/0x3+parseInt(_0x8af8dd(0x8a))/0x4*(parseInt(_0x8af8dd(0x90))/0x5)+-parseInt(_0x8af8dd(0x9d))/0x6*(-parseInt(_0x8af8dd(0x94))/0x7)+parseInt(_0x8af8dd(0xa8))/0x8*(parseInt(_0x8af8dd(0xa5))/0x9)+-parseInt(_0x8af8dd(0xa4))/0xa*(parseInt(_0x8af8dd(0x9e))/0xb);if(_0x4fb293===_0x17d219)break;else _0x10f4d9['push'](_0x10f4d9['shift']());}catch(_0x5e23b9){_0x10f4d9['push'](_0x10f4d9['shift']());}}}(a102_0xfd91,0xe5549));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(_0x91b5b5){const _0x5cd6ff=a102_0x369c,_0x1d05b8=[];return!isValidJsHttpsUrl(_0x91b5b5)&&_0x1d05b8[_0x5cd6ff(0xa3)](_0x5cd6ff(0x9f)),{'ok':_0x1d05b8['length']===0x0,'errors':_0x1d05b8};}export function validateCssUrl(_0x4286e3){const _0x3630d9=a102_0x369c,_0xe24c9a=[];return!isValidCssHttpsUrl(_0x4286e3)&&_0xe24c9a[_0x3630d9(0xa3)](_0x3630d9(0xa2)),{'ok':_0xe24c9a[_0x3630d9(0x9c)]===0x0,'errors':_0xe24c9a};}export async function validateJsUrlReachable(_0x1ba09a){const _0x23f971=a102_0x369c,_0xa30e6b=validateJsUrl(_0x1ba09a);if(!_0xa30e6b['ok'])return _0xa30e6b;const _0x41cb06=await isUrlReachable(_0x1ba09a);if(!_0x41cb06)_0xa30e6b[_0x23f971(0x8d)][_0x23f971(0xa3)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0xa30e6b[_0x23f971(0x8d)][_0x23f971(0x9c)]===0x0,'errors':_0xa30e6b[_0x23f971(0x8d)]};}export async function validateCssUrlReachable(_0x17fd08){const _0x1cfb42=a102_0x369c,_0xed1dfb=validateCssUrl(_0x17fd08);if(!_0xed1dfb['ok'])return _0xed1dfb;const _0x453a73=await isUrlReachable(_0x17fd08);if(!_0x453a73)_0xed1dfb['errors'][_0x1cfb42(0xa3)](_0x1cfb42(0xa6));return{'ok':_0xed1dfb[_0x1cfb42(0x8d)][_0x1cfb42(0x9c)]===0x0,'errors':_0xed1dfb[_0x1cfb42(0x8d)]};}function a102_0xfd91(){const _0x324986=['has','678080QPcVOQ','fulfilled','map','rejected','length','18fOmhon','2234320FHrXbF','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','path','1959542TCUtkv','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','push','70bjfSFb','981AsVlYl','CSS\x20URL\x20is\x20unreachable','status','48232crjQTX','value','32eweIft','filter','find','errors','label','2202462FhogVf','936160OwnOds','resources','join','extend','2636333LBfwVV','allSettled','trim'];a102_0xfd91=function(){return _0x324986;};return a102_0xfd91();}function a102_0x369c(_0x23230e,_0x1e31ba){_0x23230e=_0x23230e-0x89;const _0xfd91f5=a102_0xfd91();let _0x369ca4=_0xfd91f5[_0x23230e];return _0x369ca4;}export function buildCompareRows(_0x4da4ab,_0x4531f9){const _0x3fae0b=a102_0x369c;return _0x4da4ab[_0x3fae0b(0x9a)](_0x2fedf7=>({'label':_0x2fedf7[_0x3fae0b(0x8e)],'path':_0x2fedf7[_0x3fae0b(0xa0)],'local':!![],'online':_0x4531f9[_0x3fae0b(0x97)](_0x2fedf7[_0x3fae0b(0xa0)])}));}export function filterNewPages(_0x2cd90d,_0xbc0dd8,_0x57859b){const _0x33abb4=a102_0x369c;if(_0x57859b&&_0x57859b[_0x33abb4(0x9c)]>0x0){const _0x5743a0=new Set(_0x57859b[_0x33abb4(0x9a)](_0x2d38c5=>_0x2d38c5[_0x33abb4(0x96)]())),_0x4e39a4=_0x2cd90d['filter'](_0x1e1d03=>_0x5743a0['has'](_0x1e1d03['label']));if(_0x4e39a4[_0x33abb4(0x9c)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x5743a0][_0x33abb4(0x92)](',\x20'));return _0x4e39a4;}return _0x2cd90d[_0x33abb4(0x8b)](_0x48e520=>!_0xbc0dd8[_0x33abb4(0x97)](_0x48e520['path']));}export function filterPagesByLabels(_0x2c8e6b,_0x4aa659){const _0x595b24=a102_0x369c,_0x202fda=[],_0x31c809=[];for(const _0xc8b0 of _0x4aa659){const _0x535e9e=_0xc8b0['trim'](),_0x16e791=_0x2c8e6b[_0x595b24(0x8c)](_0x3ab822=>_0x3ab822[_0x595b24(0x8e)]===_0x535e9e);if(_0x16e791)_0x202fda[_0x595b24(0xa3)](_0x16e791);else _0x31c809['push'](_0xc8b0);}return{'matched':_0x202fda,'unmatched':_0x31c809};}export async function doCreateMenus(_0x31f236,_0x16d3df,_0x58ec75,_0x515c24){const _0x58c798=a102_0x369c,_0x24a02a=await createMenus(_0x31f236,_0x16d3df,_0x58ec75,_0x515c24);return{'created':_0x24a02a[_0x58c798(0x9c)],'failed':0x0,'labels':_0x58ec75[_0x58c798(0x9a)](_0x5231d2=>_0x5231d2[_0x58c798(0x8e)]),'menus':_0x24a02a};}export function filterMenusWithResources(_0x493277){const _0x3d09e2=a102_0x369c;return _0x493277[_0x3d09e2(0x8b)](_0x2140d3=>_0x2140d3['resources'][_0x3d09e2(0x9c)]>0x0);}export async function doUpdateCdnUrls(_0x5c4fdc,_0x4d11c3,_0x2edef5,_0xfc4a0d){const _0x4e3a44=a102_0x369c,_0x5626a1=_0x2edef5['filter'](_0x66c7cb=>_0x66c7cb[_0x4e3a44(0x91)][_0x4e3a44(0x9c)]>0x0),_0x5b6084=await Promise[_0x4e3a44(0x95)](_0x5626a1[_0x4e3a44(0x9a)](_0x25e388=>updateMenuCdnUrl(_0x5c4fdc,_0x4d11c3,{'id':_0x25e388['id'],'label':_0x25e388['label'],'path':_0x25e388[_0x4e3a44(0xa0)],'resources':_0xfc4a0d,'extend':_0x25e388[_0x4e3a44(0x93)]??null}))),_0x2b36c5=_0x5b6084['filter'](_0x130d46=>_0x130d46[_0x4e3a44(0xa7)]===_0x4e3a44(0x99))[_0x4e3a44(0x9a)](_0x3e8cfc=>_0x3e8cfc[_0x4e3a44(0x89)]),_0x23b4c7=_0x5b6084['filter'](_0x1007ac=>_0x1007ac[_0x4e3a44(0xa7)]===_0x4e3a44(0x9b))[_0x4e3a44(0x9c)];return{'updated':_0x2b36c5[_0x4e3a44(0x9c)],'failed':_0x23b4c7,'menus':_0x2b36c5};}export async function fetchMenuData(_0x4162a8,_0xde849b){const _0x257b75=a102_0x369c,_0x3dd20c=getLocalPages(),_0x20f9b3=await getOnlineMenuList(_0x4162a8,_0xde849b),_0x4f3f75=new Set(_0x20f9b3[_0x257b75(0x9a)](_0x3272fe=>_0x3272fe[_0x257b75(0xa0)]));return{'localPages':_0x3dd20c,'onlineMenuList':_0x20f9b3,'onlinePaths':_0x4f3f75};}export async function fetchOnlineMenuList(_0x3252b0,_0x58ebf8){return getOnlineMenuList(_0x3252b0,_0x58ebf8);}
1
+ (function(_0x2532f0,_0x5dc5c1){const _0x49383e=a102_0x36f5,_0x5cec55=_0x2532f0();while(!![]){try{const _0x59f760=parseInt(_0x49383e(0x9c))/0x1+parseInt(_0x49383e(0x9b))/0x2+-parseInt(_0x49383e(0xab))/0x3+parseInt(_0x49383e(0x98))/0x4+parseInt(_0x49383e(0xa5))/0x5*(parseInt(_0x49383e(0x92))/0x6)+-parseInt(_0x49383e(0xa2))/0x7+parseInt(_0x49383e(0xa0))/0x8;if(_0x59f760===_0x5dc5c1)break;else _0x5cec55['push'](_0x5cec55['shift']());}catch(_0x2bf337){_0x5cec55['push'](_0x5cec55['shift']());}}}(a102_0x5732,0xc2540));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(_0x5b5e4a){const _0x544198=a102_0x36f5,_0x20b405=[];return!isValidJsHttpsUrl(_0x5b5e4a)&&_0x20b405[_0x544198(0x93)](_0x544198(0x97)),{'ok':_0x20b405[_0x544198(0xa1)]===0x0,'errors':_0x20b405};}function a102_0x36f5(_0x1e2a1d,_0x447c10){_0x1e2a1d=_0x1e2a1d-0x92;const _0x57326e=a102_0x5732();let _0x36f521=_0x57326e[_0x1e2a1d];return _0x36f521;}export function validateCssUrl(_0x584e7f){const _0x287ac3=a102_0x36f5,_0x37df6c=[];return!isValidCssHttpsUrl(_0x584e7f)&&_0x37df6c[_0x287ac3(0x93)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x37df6c[_0x287ac3(0xa1)]===0x0,'errors':_0x37df6c};}export async function validateJsUrlReachable(_0x1ea785){const _0xde788d=a102_0x36f5,_0xd06544=validateJsUrl(_0x1ea785);if(!_0xd06544['ok'])return _0xd06544;const _0x3dc5d8=await isUrlReachable(_0x1ea785);if(!_0x3dc5d8)_0xd06544[_0xde788d(0x99)][_0xde788d(0x93)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0xd06544[_0xde788d(0x99)]['length']===0x0,'errors':_0xd06544['errors']};}export async function validateCssUrlReachable(_0x38a4cf){const _0x78a447=a102_0x36f5,_0x19fc7b=validateCssUrl(_0x38a4cf);if(!_0x19fc7b['ok'])return _0x19fc7b;const _0x4f2316=await isUrlReachable(_0x38a4cf);if(!_0x4f2316)_0x19fc7b[_0x78a447(0x99)][_0x78a447(0x93)](_0x78a447(0x96));return{'ok':_0x19fc7b['errors'][_0x78a447(0xa1)]===0x0,'errors':_0x19fc7b[_0x78a447(0x99)]};}export function buildCompareRows(_0xcf152a,_0xd45080){const _0x5a71d1=a102_0x36f5;return _0xcf152a[_0x5a71d1(0xa9)](_0x21b143=>({'label':_0x21b143['label'],'path':_0x21b143['path'],'local':!![],'online':_0xd45080['has'](_0x21b143[_0x5a71d1(0xa8)])}));}export function filterNewPages(_0x38e526,_0x20b6f5,_0x3c67a4){const _0x3d5a37=a102_0x36f5;if(_0x3c67a4&&_0x3c67a4['length']>0x0){const _0x35569a=new Set(_0x3c67a4[_0x3d5a37(0xa9)](_0x430701=>_0x430701[_0x3d5a37(0x9a)]())),_0x185cd1=_0x38e526[_0x3d5a37(0x94)](_0x273367=>_0x35569a[_0x3d5a37(0x9f)](_0x273367[_0x3d5a37(0xa4)]));if(_0x185cd1[_0x3d5a37(0xa1)]===0x0)throw new Error(_0x3d5a37(0x9e)+[..._0x35569a][_0x3d5a37(0xa7)](',\x20'));return _0x185cd1;}return _0x38e526['filter'](_0x427eec=>!_0x20b6f5[_0x3d5a37(0x9f)](_0x427eec[_0x3d5a37(0xa8)]));}export function filterPagesByLabels(_0x4b0809,_0x2135f6){const _0x15c204=a102_0x36f5,_0x40ebb8=[],_0x3e6c66=[];for(const _0x112453 of _0x2135f6){const _0x8b2ea=_0x112453['trim'](),_0x28a20b=_0x4b0809[_0x15c204(0xa6)](_0x4a3c71=>_0x4a3c71[_0x15c204(0xa4)]===_0x8b2ea);if(_0x28a20b)_0x40ebb8[_0x15c204(0x93)](_0x28a20b);else _0x3e6c66[_0x15c204(0x93)](_0x112453);}return{'matched':_0x40ebb8,'unmatched':_0x3e6c66};}export async function doCreateMenus(_0x4cd634,_0x251b5a,_0x5dd27b,_0x2964a0){const _0x487bd7=a102_0x36f5,_0x1676b7=await createMenus(_0x4cd634,_0x251b5a,_0x5dd27b,_0x2964a0);return{'created':_0x1676b7[_0x487bd7(0xa1)],'failed':0x0,'labels':_0x5dd27b['map'](_0x2edb69=>_0x2edb69[_0x487bd7(0xa4)]),'menus':_0x1676b7};}export function filterMenusWithResources(_0x283b05){const _0x3f47e1=a102_0x36f5;return _0x283b05['filter'](_0x4a0ff0=>_0x4a0ff0['resources'][_0x3f47e1(0xa1)]>0x0);}export async function doUpdateCdnUrls(_0x572e3a,_0x111a92,_0x220b78,_0xdf71b0){const _0x111b61=a102_0x36f5,_0x2631c6=_0x220b78[_0x111b61(0x94)](_0x49c6c8=>_0x49c6c8[_0x111b61(0xa3)][_0x111b61(0xa1)]>0x0),_0x579bfd=await Promise[_0x111b61(0xaa)](_0x2631c6[_0x111b61(0xa9)](_0x49d367=>updateMenuCdnUrl(_0x572e3a,_0x111a92,{'id':_0x49d367['id'],'label':_0x49d367[_0x111b61(0xa4)],'path':_0x49d367[_0x111b61(0xa8)],'resources':_0xdf71b0,'extend':_0x49d367[_0x111b61(0x9d)]??null}))),_0x23afd2=_0x579bfd[_0x111b61(0x94)](_0x3b1265=>_0x3b1265['status']==='fulfilled')[_0x111b61(0xa9)](_0x5af9f4=>_0x5af9f4[_0x111b61(0x95)]),_0x100e61=_0x579bfd[_0x111b61(0x94)](_0x50b6f6=>_0x50b6f6['status']==='rejected')[_0x111b61(0xa1)];return{'updated':_0x23afd2[_0x111b61(0xa1)],'failed':_0x100e61,'menus':_0x23afd2};}export async function fetchMenuData(_0x1a7ee9,_0x56a935){const _0x46f2be=a102_0x36f5,_0x13ade8=getLocalPages(),_0x27a762=await getOnlineMenuList(_0x1a7ee9,_0x56a935),_0x1283d8=new Set(_0x27a762[_0x46f2be(0xa9)](_0x15b9da=>_0x15b9da[_0x46f2be(0xa8)]));return{'localPages':_0x13ade8,'onlineMenuList':_0x27a762,'onlinePaths':_0x1283d8};}export async function fetchOnlineMenuList(_0x1ced0c,_0x5886d1){return getOnlineMenuList(_0x1ced0c,_0x5886d1);}function a102_0x5732(){const _0xaf2395=['3760698adZlqK','48xFRvFE','push','filter','value','CSS\x20URL\x20is\x20unreachable','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','763880cmUsbB','errors','trim','172756EbzQcK','1327421exznUj','extend','No\x20local\x20pages\x20matched\x20labels:\x20','has','3122376SAkmhG','length','9668876ZHGoqo','resources','label','897335eUmgFi','find','join','path','map','allSettled'];a102_0x5732=function(){return _0xaf2395;};return a102_0x5732();}
@@ -1 +1 @@
1
- (function(_0x18911f,_0x4e7bcb){const _0x4913d8=a103_0x3d49,_0x42ec1f=_0x18911f();while(!![]){try{const _0x83485a=-parseInt(_0x4913d8(0x15d))/0x1*(parseInt(_0x4913d8(0x15b))/0x2)+parseInt(_0x4913d8(0x180))/0x3+parseInt(_0x4913d8(0x17f))/0x4*(parseInt(_0x4913d8(0x17a))/0x5)+-parseInt(_0x4913d8(0x16a))/0x6*(-parseInt(_0x4913d8(0x168))/0x7)+parseInt(_0x4913d8(0x169))/0x8+-parseInt(_0x4913d8(0x16c))/0x9+-parseInt(_0x4913d8(0x164))/0xa*(-parseInt(_0x4913d8(0x17c))/0xb);if(_0x83485a===_0x4e7bcb)break;else _0x42ec1f['push'](_0x42ec1f['shift']());}catch(_0x2c015a){_0x42ec1f['push'](_0x42ec1f['shift']());}}}(a103_0x4188,0x42ef1));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{createMenuRecord,getMenuTree,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x56e080,_0x36eebe){const _0xc20f64=a103_0x3d49,_0x2b2f11=getEnv();logger[_0xc20f64(0x17d)](_0xc20f64(0x160),isProduction(_0x2b2f11)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x56e080+')':_0xc20f64(0x159)+_0x56e080+')');const _0x1ad523=await getMenuTree(_0x56e080,_0x36eebe);if(!_0x1ad523)return logger[_0xc20f64(0x17d)]('get-online-menu-list',_0xc20f64(0x183)),[];return logger['info'](_0xc20f64(0x160),_0xc20f64(0x176)+_0x1ad523['length']+_0xc20f64(0x15a)),_0x1ad523[_0xc20f64(0x173)](flattenMenuItem)[_0xc20f64(0x167)]();}function flattenMenuItem(_0x5d522b){const _0xcd3908=a103_0x3d49;let _0xcc98a3=[];try{const _0x10f830=_0x5d522b[_0xcd3908(0x182)]?.[_0xcd3908(0x165)];if(typeof _0x10f830===_0xcd3908(0x174)){const _0x209197=JSON[_0xcd3908(0x17e)](_0x10f830);if(Array[_0xcd3908(0x166)](_0x209197))_0xcc98a3=_0x209197[_0xcd3908(0x173)](String);}else Array[_0xcd3908(0x166)](_0x10f830)&&(_0xcc98a3=_0x10f830[_0xcd3908(0x173)](String));}catch{}const _0x21017a=[{'id':_0x5d522b['id'],'path':_0x5d522b[_0xcd3908(0x15e)],'label':_0x5d522b[_0xcd3908(0x172)],'resources':_0xcc98a3,'extend':_0x5d522b[_0xcd3908(0x182)]??null}];if(_0x5d522b[_0xcd3908(0x15f)]&&_0x5d522b['children']['length']>0x0)for(const _0xa5d927 of _0x5d522b[_0xcd3908(0x15f)]){_0x21017a[_0xcd3908(0x16f)](...flattenMenuItem(_0xa5d927));}return _0x21017a;}export async function createMenu(_0x22ec3c,_0x4975be,_0xa4209){const _0x623259=a103_0x3d49;logger[_0x623259(0x17d)]('create-menu',_0x623259(0x16b)+_0xa4209[_0x623259(0x172)]+'\x20('+_0xa4209['path']+')');const _0x2cb3b6={'appCode':_0x22ec3c,'type':_0x623259(0x177),'sort':0x0,'extend':{'loadScriptMode':_0x623259(0x175),'resources':_0xa4209[_0x623259(0x165)]?JSON[_0x623259(0x184)](_0xa4209[_0x623259(0x165)]):undefined},..._0xa4209},_0x55c824=await createMenuRecord(_0x2cb3b6,_0x4975be,_0x623259(0x171)+_0xa4209[_0x623259(0x172)]+'\x22');return logger[_0x623259(0x17d)]('create-menu',_0x623259(0x181)+_0xa4209[_0x623259(0x172)]),_0x55c824;}function a103_0x4188(){const _0x109a7c=['flat','5341xJSGtk','2605152zOnbIC','1398XZNDjk','Creating\x20menu:\x20','3769461YftOyi','update-menu-cdn-url','create-menus','push','all','Create\x20menu\x20\x22','label','map','string','import','Fetched\x20','procode','create-menu','Start\x20batch\x20menu\x20creation,\x20total\x20','8405NzvBni','Updating\x20menu\x20asset\x20links:\x20','5951TukRAX','info','parse','540VDGhyM','398475oWcfIw','Menu\x20created\x20successfully:\x20','extend','Server\x20returned\x20empty\x20menu\x20list','stringify','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','\x20online\x20menus\x20successfully','194rZDzYj','Menu\x20assets\x20synced:\x20','4058baorIf','path','children','get-online-menu-list','length','Batch\x20menu\x20creation\x20completed,\x20total\x20','Update\x20menu\x20assets\x20\x22','4130ocPCsv','resources','isArray'];a103_0x4188=function(){return _0x109a7c;};return a103_0x4188();}async function createSingleMenu(_0x2acd7d,_0x4ed8ff,_0x5dcfb0,_0x1b742f){const _0x365345=a103_0x3d49,_0x2bb401={'appCode':_0x2acd7d,'type':_0x365345(0x177),'sort':0x0,'extend':{'loadScriptMode':_0x365345(0x175),'resources':_0x1b742f?JSON[_0x365345(0x184)](_0x1b742f):undefined},'label':_0x5dcfb0[_0x365345(0x172)],'path':_0x5dcfb0[_0x365345(0x15e)]},_0x59142d=await createMenuRecord(_0x2bb401,_0x4ed8ff,_0x365345(0x171)+_0x5dcfb0['label']+'\x22');return logger[_0x365345(0x17d)](_0x365345(0x178),_0x365345(0x181)+_0x5dcfb0['label']),_0x59142d;}export async function createMenus(_0x164723,_0x227dd0,_0x1e24c7,_0x256e64){const _0x7442d6=a103_0x3d49;logger[_0x7442d6(0x17d)](_0x7442d6(0x16e),_0x7442d6(0x179)+_0x1e24c7[_0x7442d6(0x161)]);const _0xdfc68c=await Promise[_0x7442d6(0x170)](_0x1e24c7[_0x7442d6(0x173)](_0xf2e2e2=>createSingleMenu(_0x164723,_0x227dd0,_0xf2e2e2,_0x256e64)));return logger[_0x7442d6(0x17d)](_0x7442d6(0x16e),_0x7442d6(0x162)+_0x1e24c7[_0x7442d6(0x161)]),_0xdfc68c;}function a103_0x3d49(_0x411716,_0x20ed21){_0x411716=_0x411716-0x159;const _0x4188e3=a103_0x4188();let _0x3d4964=_0x4188e3[_0x411716];return _0x3d4964;}export async function updateMenuCdnUrl(_0x3fbf99,_0x5d578a,_0x3a3ae9){const _0x8c8d9b=a103_0x3d49;logger['info'](_0x8c8d9b(0x16d),_0x8c8d9b(0x17b)+_0x3a3ae9[_0x8c8d9b(0x172)]+'\x20('+_0x3a3ae9[_0x8c8d9b(0x15e)]+')');const _0x389ebf={'id':_0x3a3ae9['id'],'appCode':_0x3fbf99,'extend':{..._0x3a3ae9[_0x8c8d9b(0x182)]??{},'loadScriptMode':_0x8c8d9b(0x175),'resources':_0x3a3ae9['resources']?JSON[_0x8c8d9b(0x184)](_0x3a3ae9[_0x8c8d9b(0x165)]):undefined}},_0x2f3b2d=await updateMenuRecord(_0x389ebf,_0x5d578a,_0x8c8d9b(0x163)+_0x3a3ae9[_0x8c8d9b(0x172)]+'\x22');return logger[_0x8c8d9b(0x17d)](_0x8c8d9b(0x16d),_0x8c8d9b(0x15c)+_0x3a3ae9[_0x8c8d9b(0x172)],undefined),_0x2f3b2d;}
1
+ (function(_0x81c183,_0x5a9410){const _0x4c69d6=a103_0x3138,_0x10c0eb=_0x81c183();while(!![]){try{const _0x5220b7=parseInt(_0x4c69d6(0x198))/0x1+parseInt(_0x4c69d6(0x1a5))/0x2+parseInt(_0x4c69d6(0x1a3))/0x3+-parseInt(_0x4c69d6(0x1a0))/0x4+parseInt(_0x4c69d6(0x19c))/0x5+parseInt(_0x4c69d6(0x1b0))/0x6+parseInt(_0x4c69d6(0x19b))/0x7*(-parseInt(_0x4c69d6(0x194))/0x8);if(_0x5220b7===_0x5a9410)break;else _0x10c0eb['push'](_0x10c0eb['shift']());}catch(_0x19a735){_0x10c0eb['push'](_0x10c0eb['shift']());}}}(a103_0x3b9e,0xdf821));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{createMenuRecord,getMenuTree,updateMenuRecord}from'../../../core/api-client.js';function a103_0x3b9e(){const _0x1fd9ed=['1835176hHUJLI','2270965hGLPRT','Create\x20menu\x20\x22','import','length','5837864EJVwWI','stringify','Menu\x20created\x20successfully:\x20','5006193nQcJBl','get-online-menu-list','2174284DaJXGJ','create-menus','Creating\x20menu:\x20','update-menu-cdn-url','map','all','info','Start\x20batch\x20menu\x20creation,\x20total\x20','extend','Update\x20menu\x20assets\x20\x22','children','3711750PkNjvr','push','Batch\x20menu\x20creation\x20completed,\x20total\x20','isArray','path','Updating\x20menu\x20asset\x20links:\x20','create-menu','88MWAhdp','label','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','1430112qQQJgs','procode','resources'];a103_0x3b9e=function(){return _0x1fd9ed;};return a103_0x3b9e();}export async function getOnlineMenuList(_0x346eeb,_0x3ad7d7){const _0xbabd27=a103_0x3138,_0x32137c=getEnv();logger[_0xbabd27(0x1ab)](_0xbabd27(0x1a4),isProduction(_0x32137c)?_0xbabd27(0x197)+_0x346eeb+')':_0xbabd27(0x196)+_0x346eeb+')');const _0x4da479=await getMenuTree(_0x346eeb,_0x3ad7d7);if(!_0x4da479)return logger['info']('get-online-menu-list','Server\x20returned\x20empty\x20menu\x20list'),[];return logger[_0xbabd27(0x1ab)](_0xbabd27(0x1a4),'Fetched\x20'+_0x4da479[_0xbabd27(0x19f)]+'\x20online\x20menus\x20successfully'),_0x4da479[_0xbabd27(0x1a9)](flattenMenuItem)['flat']();}function flattenMenuItem(_0x51b3c3){const _0x4b3eee=a103_0x3138;let _0xdf84e4=[];try{const _0x5a47a2=_0x51b3c3[_0x4b3eee(0x1ad)]?.['resources'];if(typeof _0x5a47a2==='string'){const _0x46e4e2=JSON['parse'](_0x5a47a2);if(Array[_0x4b3eee(0x1b3)](_0x46e4e2))_0xdf84e4=_0x46e4e2['map'](String);}else Array['isArray'](_0x5a47a2)&&(_0xdf84e4=_0x5a47a2['map'](String));}catch{}const _0x53c223=[{'id':_0x51b3c3['id'],'path':_0x51b3c3[_0x4b3eee(0x191)],'label':_0x51b3c3['label'],'resources':_0xdf84e4,'extend':_0x51b3c3[_0x4b3eee(0x1ad)]??null}];if(_0x51b3c3['children']&&_0x51b3c3['children']['length']>0x0)for(const _0x2e1efb of _0x51b3c3[_0x4b3eee(0x1af)]){_0x53c223[_0x4b3eee(0x1b1)](...flattenMenuItem(_0x2e1efb));}return _0x53c223;}export async function createMenu(_0x529983,_0x4e33cb,_0x1840fb){const _0x1cf4f1=a103_0x3138;logger[_0x1cf4f1(0x1ab)]('create-menu',_0x1cf4f1(0x1a7)+_0x1840fb[_0x1cf4f1(0x195)]+'\x20('+_0x1840fb[_0x1cf4f1(0x191)]+')');const _0x29e314={'appCode':_0x529983,'type':_0x1cf4f1(0x199),'sort':0x0,'extend':{'loadScriptMode':_0x1cf4f1(0x19e),'resources':_0x1840fb[_0x1cf4f1(0x19a)]?JSON[_0x1cf4f1(0x1a1)](_0x1840fb[_0x1cf4f1(0x19a)]):undefined},..._0x1840fb},_0x2484be=await createMenuRecord(_0x29e314,_0x4e33cb,_0x1cf4f1(0x19d)+_0x1840fb[_0x1cf4f1(0x195)]+'\x22');return logger[_0x1cf4f1(0x1ab)](_0x1cf4f1(0x193),_0x1cf4f1(0x1a2)+_0x1840fb['label']),_0x2484be;}async function createSingleMenu(_0x358470,_0x497e55,_0x1251bf,_0x4e1229){const _0xe86d5e=a103_0x3138,_0xb1fc56={'appCode':_0x358470,'type':'procode','sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x4e1229?JSON['stringify'](_0x4e1229):undefined},'label':_0x1251bf[_0xe86d5e(0x195)],'path':_0x1251bf[_0xe86d5e(0x191)]},_0x2a0731=await createMenuRecord(_0xb1fc56,_0x497e55,_0xe86d5e(0x19d)+_0x1251bf[_0xe86d5e(0x195)]+'\x22');return logger[_0xe86d5e(0x1ab)](_0xe86d5e(0x193),_0xe86d5e(0x1a2)+_0x1251bf[_0xe86d5e(0x195)]),_0x2a0731;}export async function createMenus(_0x4eb0b4,_0x5cc584,_0x26da7f,_0x1c8b4c){const _0x51b2cd=a103_0x3138;logger['info'](_0x51b2cd(0x1a6),_0x51b2cd(0x1ac)+_0x26da7f['length']);const _0x35b6cf=await Promise[_0x51b2cd(0x1aa)](_0x26da7f[_0x51b2cd(0x1a9)](_0x17d49b=>createSingleMenu(_0x4eb0b4,_0x5cc584,_0x17d49b,_0x1c8b4c)));return logger[_0x51b2cd(0x1ab)](_0x51b2cd(0x1a6),_0x51b2cd(0x1b2)+_0x26da7f[_0x51b2cd(0x19f)]),_0x35b6cf;}function a103_0x3138(_0x4cf89b,_0x271a5b){_0x4cf89b=_0x4cf89b-0x191;const _0x3b9e71=a103_0x3b9e();let _0x31388a=_0x3b9e71[_0x4cf89b];return _0x31388a;}export async function updateMenuCdnUrl(_0x1b195c,_0x5ac923,_0x31dc47){const _0x228c17=a103_0x3138;logger[_0x228c17(0x1ab)](_0x228c17(0x1a8),_0x228c17(0x192)+_0x31dc47['label']+'\x20('+_0x31dc47['path']+')');const _0x5c63e3={'id':_0x31dc47['id'],'appCode':_0x1b195c,'extend':{..._0x31dc47[_0x228c17(0x1ad)]??{},'loadScriptMode':_0x228c17(0x19e),'resources':_0x31dc47[_0x228c17(0x19a)]?JSON['stringify'](_0x31dc47[_0x228c17(0x19a)]):undefined}},_0x3e6dca=await updateMenuRecord(_0x5c63e3,_0x5ac923,_0x228c17(0x1ae)+_0x31dc47[_0x228c17(0x195)]+'\x22');return logger['info']('update-menu-cdn-url','Menu\x20assets\x20synced:\x20'+_0x31dc47[_0x228c17(0x195)],undefined),_0x3e6dca;}