@lovrabet/rabetbase-cli 2.1.7-beta.2 → 2.1.7-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) 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/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -1
  55. package/lib/commands/dataset/link-delete.js +1 -1
  56. package/lib/commands/dataset/link-shared.js +1 -1
  57. package/lib/commands/dataset/link-update.js +1 -1
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -1
  77. package/lib/commands/issue/report.js +1 -1
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +1 -1
@@ -1 +1 @@
1
- const a68_0x2d1f9a=a68_0x3904;(function(_0x30ca7c,_0x2ea3b5){const _0x15da1e=a68_0x3904,_0x176a53=_0x30ca7c();while(!![]){try{const _0x1213bf=parseInt(_0x15da1e(0x87))/0x1*(-parseInt(_0x15da1e(0x83))/0x2)+parseInt(_0x15da1e(0x89))/0x3+parseInt(_0x15da1e(0x96))/0x4+parseInt(_0x15da1e(0x91))/0x5+-parseInt(_0x15da1e(0x8e))/0x6*(parseInt(_0x15da1e(0x90))/0x7)+-parseInt(_0x15da1e(0x84))/0x8*(parseInt(_0x15da1e(0x81))/0x9)+-parseInt(_0x15da1e(0x85))/0xa*(-parseInt(_0x15da1e(0x93))/0xb);if(_0x1213bf===_0x2ea3b5)break;else _0x176a53['push'](_0x176a53['shift']());}catch(_0x2e1254){_0x176a53['push'](_0x176a53['shift']());}}}(a68_0x1d26,0x40b2b));import{listDbLinks}from'../../core/api-client.js';function a68_0x3904(_0x81e673,_0x49ff9d){_0x81e673=_0x81e673-0x81;const _0x1d26e9=a68_0x1d26();let _0x39049b=_0x1d26e9[_0x81e673];return _0x39049b;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a68_0x1d26(){const _0x3e98b5=['Found\x20','14jiIART','1601895pqrzrk','length','77BCalpX','list','num','839376hqoKXO','page','27NAHmmI','pagesize','710NVGPQA','546696pKqRiR','895940nFtiUU','number','1118SlTbcR','Page\x20size','251343anoUXS','appCode','read','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','Page\x20index\x20(1-based)','1122774hNvjZo'];a68_0x1d26=function(){return _0x3e98b5;};return a68_0x1d26();}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a68_0x2d1f9a(0x94),'description':a68_0x2d1f9a(0x8c),'risk':a68_0x2d1f9a(0x8b),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a68_0x2d1f9a(0x97),'type':a68_0x2d1f9a(0x86),'description':a68_0x2d1f9a(0x8d),'default':0x1},{'name':'pagesize','type':'number','description':a68_0x2d1f9a(0x88),'default':0x64}],async 'execute'(_0x352077){const _0x3e5314=a68_0x2d1f9a,_0x105e96=_0x352077[_0x3e5314(0x95)](_0x3e5314(0x97),0x1)||0x1,_0x3c408d=_0x352077[_0x3e5314(0x95)](_0x3e5314(0x82),0x64)||0x64,{items:_0x4e6597,paging:_0x59c49f}=await listDbLinks(_0x352077[_0x3e5314(0x8a)],{'currentPage':_0x105e96,'pageSize':_0x3c408d}),_0x3ad6a5=sanitizeDbLinkList(_0x4e6597),_0x49b204=_0x59c49f?_0x59c49f:{'currentPage':_0x105e96,'pageSize':_0x3c408d,'rowsOnPage':_0x3ad6a5['length'],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x3ad6a5,'paging':_0x49b204},'message':_0x3e5314(0x8f)+_0x3ad6a5[_0x3e5314(0x92)]+'\x20database\x20connection(s)'};}};
1
+ const a68_0x35b6b7=a68_0x45a7;(function(_0x246d2a,_0x48c9a2){const _0x528eca=a68_0x45a7,_0xba2e23=_0x246d2a();while(!![]){try{const _0x1f99bd=parseInt(_0x528eca(0x199))/0x1*(parseInt(_0x528eca(0x192))/0x2)+parseInt(_0x528eca(0x19c))/0x3+parseInt(_0x528eca(0x19a))/0x4*(parseInt(_0x528eca(0x19d))/0x5)+-parseInt(_0x528eca(0x197))/0x6+parseInt(_0x528eca(0x190))/0x7*(parseInt(_0x528eca(0x19f))/0x8)+-parseInt(_0x528eca(0x1a1))/0x9*(-parseInt(_0x528eca(0x1a0))/0xa)+-parseInt(_0x528eca(0x1a2))/0xb;if(_0x1f99bd===_0x48c9a2)break;else _0xba2e23['push'](_0xba2e23['shift']());}catch(_0x50fe7b){_0xba2e23['push'](_0xba2e23['shift']());}}}(a68_0x2820,0x87243));function a68_0x2820(){const _0x3fb76d=['5VjmpsA','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','313904TJLCFZ','150240KPYQzc','153XdUJtl','531806nwUmGj','read','num','77OHYlHX','page','2VVkHfC','Found\x20','number','pagesize','list','6342996FoAKdI','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','448579Lbsjey','311612AHXhzz','length','1336629KDQnov'];a68_0x2820=function(){return _0x3fb76d;};return a68_0x2820();}import{listDbLinks}from'../../core/api-client.js';function a68_0x45a7(_0x1e8b60,_0x101fe2){_0x1e8b60=_0x1e8b60-0x190;const _0x28206f=a68_0x2820();let _0x45a757=_0x28206f[_0x1e8b60];return _0x45a757;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a68_0x35b6b7(0x196),'description':a68_0x35b6b7(0x198),'risk':a68_0x35b6b7(0x1a3),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a68_0x35b6b7(0x191),'type':a68_0x35b6b7(0x194),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a68_0x35b6b7(0x195),'type':a68_0x35b6b7(0x194),'description':'Page\x20size','default':0x64}],async 'execute'(_0x5d4967){const _0x2b3329=a68_0x35b6b7,_0x2efc25=_0x5d4967['num'](_0x2b3329(0x191),0x1)||0x1,_0x16ca4a=_0x5d4967[_0x2b3329(0x1a4)](_0x2b3329(0x195),0x64)||0x64,{items:_0x4cce7d,paging:_0x45eb80}=await listDbLinks(_0x5d4967['appCode'],{'currentPage':_0x2efc25,'pageSize':_0x16ca4a}),_0x5d9de0=sanitizeDbLinkList(_0x4cce7d),_0x1ec6b7=_0x45eb80?_0x45eb80:{'currentPage':_0x2efc25,'pageSize':_0x16ca4a,'rowsOnPage':_0x5d9de0[_0x2b3329(0x19b)],'totalCount':null,'note':_0x2b3329(0x19e)};return{'ok':!![],'data':{'connections':_0x5d9de0,'paging':_0x1ec6b7},'message':_0x2b3329(0x193)+_0x5d9de0[_0x2b3329(0x19b)]+'\x20database\x20connection(s)'};}};
@@ -1 +1 @@
1
- (function(_0x47a91e,_0x13a64b){const _0x27b987=a69_0xdc30,_0x330415=_0x47a91e();while(!![]){try{const _0x127a9d=parseInt(_0x27b987(0x1f1))/0x1*(parseInt(_0x27b987(0x1ea))/0x2)+parseInt(_0x27b987(0x1ed))/0x3*(parseInt(_0x27b987(0x1f2))/0x4)+-parseInt(_0x27b987(0x1e4))/0x5*(parseInt(_0x27b987(0x1e1))/0x6)+-parseInt(_0x27b987(0x1de))/0x7*(parseInt(_0x27b987(0x1e5))/0x8)+parseInt(_0x27b987(0x1dd))/0x9+parseInt(_0x27b987(0x1df))/0xa+parseInt(_0x27b987(0x1e2))/0xb;if(_0x127a9d===_0x13a64b)break;else _0x330415['push'](_0x330415['shift']());}catch(_0x48544b){_0x330415['push'](_0x330415['shift']());}}}(a69_0xc89d,0x82b7c));function shouldRedactKey(_0x4a7305){const _0x3fc822=a69_0xdc30,_0x1b7007=_0x4a7305['toLowerCase']();if(_0x1b7007===_0x3fc822(0x1f0)||_0x1b7007===_0x3fc822(0x1e9)||_0x1b7007===_0x3fc822(0x1e8))return!![];if(_0x1b7007[_0x3fc822(0x1e6)](_0x3fc822(0x1e7))||_0x1b7007[_0x3fc822(0x1e6)]('token')||_0x1b7007['includes'](_0x3fc822(0x1e0)))return!![];if(_0x1b7007[_0x3fc822(0x1e6)](_0x3fc822(0x1ef))||_0x1b7007[_0x3fc822(0x1e6)]('accesskey'))return!![];if(_0x1b7007===_0x3fc822(0x1ec)||_0x1b7007==='connectionstring'||_0x1b7007==='jdbcurl')return!![];return![];}function a69_0xc89d(){const _0x1515bf=['privatekey','password','16909czwLKX','2356fqVgYN','length','3742803kDDuON','7LJqtEe','1881980ZvdWWB','credential','2712444RprPZm','1421783dtAaDX','[redacted]','5OAnveG','6194704zbuWOO','includes','secret','dbpassword','passwd','26qpLeiJ','test','authorization','4119RLxxoS','trim'];a69_0xc89d=function(){return _0x1515bf;};return a69_0xc89d();}function a69_0xdc30(_0xb659eb,_0x1cf574){_0xb659eb=_0xb659eb-0x1dd;const _0xc89dd6=a69_0xc89d();let _0xdc3070=_0xc89dd6[_0xb659eb];return _0xdc3070;}export function sanitizeDbLinkForOutput(_0x45036e){const _0x547cfa=a69_0xdc30,_0x584a58={..._0x45036e};for(const _0x5073b6 of Object['keys'](_0x584a58)){if(!shouldRedactKey(_0x5073b6))continue;const _0x4bb108=_0x584a58[_0x5073b6];_0x4bb108!=null&&String(_0x4bb108)[_0x547cfa(0x1f3)]>0x0&&(_0x584a58[_0x5073b6]=_0x547cfa(0x1e3));}return _0x584a58;}export function sanitizeDbLinkList(_0x419dae){return _0x419dae['map'](_0x352c14=>sanitizeDbLinkForOutput(_0x352c14));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x45aa5d){const _0x29acc1=a69_0xdc30,_0x394668=_0x45aa5d[_0x29acc1(0x1ee)]();if(!_0x394668)return![];return DB_URL_PATTERN[_0x29acc1(0x1eb)](_0x394668);}
1
+ (function(_0x25c575,_0x464f9d){const _0x663903=a69_0xef93,_0x44e774=_0x25c575();while(!![]){try{const _0x22f1fc=-parseInt(_0x663903(0xb4))/0x1*(-parseInt(_0x663903(0xae))/0x2)+parseInt(_0x663903(0xb5))/0x3+parseInt(_0x663903(0x9a))/0x4+-parseInt(_0x663903(0xb8))/0x5+-parseInt(_0x663903(0xb0))/0x6+parseInt(_0x663903(0xb7))/0x7*(-parseInt(_0x663903(0xa4))/0x8)+-parseInt(_0x663903(0x9b))/0x9*(-parseInt(_0x663903(0xb3))/0xa);if(_0x22f1fc===_0x464f9d)break;else _0x44e774['push'](_0x44e774['shift']());}catch(_0x56130c){_0x44e774['push'](_0x44e774['shift']());}}}(a69_0x4281,0xc5a29));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x4115b4){const _0x5842cd=a69_0xef93,_0x3092e6=_0x4115b4[_0x5842cd(0xa8)]();if(_0x3092e6===_0x5842cd(0xb9)||_0x3092e6===_0x5842cd(0xad)||_0x3092e6===_0x5842cd(0x9d))return!![];if(_0x3092e6[_0x5842cd(0x9c)](_0x5842cd(0x9e))||_0x3092e6[_0x5842cd(0x9c)]('token')||_0x3092e6[_0x5842cd(0x9c)](_0x5842cd(0xb2)))return!![];if(_0x3092e6[_0x5842cd(0x9c)](_0x5842cd(0xa5))||_0x3092e6[_0x5842cd(0x9c)](_0x5842cd(0xaf)))return!![];if(_0x3092e6===_0x5842cd(0xb1)||_0x3092e6==='connectionstring'||_0x3092e6===_0x5842cd(0xa0))return!![];return![];}export function sanitizeDbLinkForOutput(_0x4ee13d){const _0x56c72e=a69_0xef93,_0x2b5c49={..._0x4ee13d};for(const _0x2a814d of Object[_0x56c72e(0xa7)](_0x2b5c49)){if(!shouldRedactKey(_0x2a814d))continue;const _0x424e45=_0x2b5c49[_0x2a814d];_0x424e45!=null&&String(_0x424e45)['length']>0x0&&(_0x2b5c49[_0x2a814d]=_0x56c72e(0xaa));}return _0x2b5c49;}function a69_0x4281(){const _0x1e69e7=['map','/data/database','passwd','426KiBbZe','accesskey','7501176eJQLiY','authorization','credential','314850ubZlxY','401HQXLUr','954222lrcwgb','https://app.lovrabet.com/app/','742UZfwao','5010735uJiByF','password','4762208vUPLxB','423MqUttz','includes','dbpassword','secret','https://daily.lovrabet.com/web-app/app/','jdbcurl','number','trim','isFinite','904lplIUL','privatekey','test','keys','toLowerCase','/data/er?dbId=','[redacted]'];a69_0x4281=function(){return _0x1e69e7;};return a69_0x4281();}export function sanitizeDbLinkList(_0x24c669){const _0x484e13=a69_0xef93;return _0x24c669[_0x484e13(0xab)](_0x5d7965=>sanitizeDbLinkForOutput(_0x5d7965));}function a69_0xef93(_0x24fb7d,_0x1602b8){_0x24fb7d=_0x24fb7d-0x9a;const _0x428111=a69_0x4281();let _0xef9342=_0x428111[_0x24fb7d];return _0xef9342;}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x31049e){const _0x522bc9=a69_0xef93,_0x13e75e=_0x31049e[_0x522bc9(0xa2)]();if(!_0x13e75e)return![];return DB_URL_PATTERN[_0x522bc9(0xa6)](_0x13e75e);}export function buildDbWorkbenchLinks(_0x10854f,_0x148f42){const _0x58d6e0=a69_0xef93,_0x8f8abb=_0x10854f?.[_0x58d6e0(0xa2)]();if(!_0x8f8abb)return undefined;const _0x59ab6f=typeof _0x148f42===_0x58d6e0(0xa1)?String(_0x148f42):String(_0x148f42??'')[_0x58d6e0(0xa2)]();if(!_0x59ab6f)return undefined;const _0x1d19c5=Number(_0x59ab6f);if(!Number[_0x58d6e0(0xa3)](_0x1d19c5)||_0x1d19c5<=0x0)return undefined;const _0x3ea2d9=isDaily(normalizeEnv(getEnv()))?_0x58d6e0(0x9f)+encodeURIComponent(_0x8f8abb):_0x58d6e0(0xb6)+encodeURIComponent(_0x8f8abb),_0x5f1df6=encodeURIComponent(String(_0x1d19c5));return{'databasePage':_0x3ea2d9+_0x58d6e0(0xac),'erPage':_0x3ea2d9+_0x58d6e0(0xa9)+_0x5f1df6};}
@@ -1 +1 @@
1
- const a70_0x449d39=a70_0x23d6;(function(_0x4f76a6,_0x295c3f){const _0x15c773=a70_0x23d6,_0x3ec28b=_0x4f76a6();while(!![]){try{const _0x36f4c8=parseInt(_0x15c773(0x73))/0x1*(-parseInt(_0x15c773(0x77))/0x2)+-parseInt(_0x15c773(0x79))/0x3+parseInt(_0x15c773(0x7b))/0x4*(parseInt(_0x15c773(0x81))/0x5)+-parseInt(_0x15c773(0x7f))/0x6+-parseInt(_0x15c773(0x76))/0x7+-parseInt(_0x15c773(0x7a))/0x8+-parseInt(_0x15c773(0x7c))/0x9*(-parseInt(_0x15c773(0x7e))/0xa);if(_0x36f4c8===_0x295c3f)break;else _0x3ec28b['push'](_0x3ec28b['shift']());}catch(_0x3ecfec){_0x3ec28b['push'](_0x3ec28b['shift']());}}}(a70_0x51a7,0xb56f2));import{getDbAllTableList}from'../../core/api-client.js';function a70_0x23d6(_0x1eef20,_0x5cc8bb){_0x1eef20=_0x1eef20-0x73;const _0x51a7c1=a70_0x51a7();let _0x23d6cb=_0x51a7c1[_0x1eef20];return _0x23d6cb;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a70_0x449d39(0x75),'description':a70_0x449d39(0x7d),'risk':a70_0x449d39(0x78),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x58308a){const _0x5e8320=a70_0x449d39,_0x56e9f2=_0x58308a[_0x5e8320(0x74)]('id'),_0x146535=await getDbAllTableList(_0x58308a['appCode'],_0x56e9f2);return{'ok':!![],'data':{'dbLinkId':_0x56e9f2,'total':_0x146535[_0x5e8320(0x80)],'tables':_0x146535},'message':_0x146535[_0x5e8320(0x80)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x56e9f2};}};function a70_0x51a7(){const _0x46ad89=['11196336cHpkZa','12ZEbRjX','9RTCENv','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','45481910AkNkls','2559606ZrLRtX','length','182285OlQoJl','2077ApaBpN','num','tables','2670031OjhmSA','1406YrjBGl','read','740103hzSYpZ'];a70_0x51a7=function(){return _0x46ad89;};return a70_0x51a7();}
1
+ function a70_0x226f(_0xc32fd3,_0xef4a70){_0xc32fd3=_0xc32fd3-0x137;const _0x8798e4=a70_0x8798();let _0x226f27=_0x8798e4[_0xc32fd3];return _0x226f27;}const a70_0x4e7981=a70_0x226f;function a70_0x8798(){const _0xfae8bb=['16722XumLHP','77PlzvNs','57110CTOmKv','num','525495WpDHxm','tables','read','\x20table(s)\x20on\x20db\x20link\x20','length','2633040EjSLkd','1251VnzCXZ','52ATOOhd','313244HMJLkf','appCode','87526oJUlRR','159846vYeCxN'];a70_0x8798=function(){return _0xfae8bb;};return a70_0x8798();}(function(_0x5d877a,_0x28a8b0){const _0x52d105=a70_0x226f,_0x29914a=_0x5d877a();while(!![]){try{const _0x2c0450=-parseInt(_0x52d105(0x144))/0x1+-parseInt(_0x52d105(0x141))/0x2*(-parseInt(_0x52d105(0x146))/0x3)+parseInt(_0x52d105(0x142))/0x4+-parseInt(_0x52d105(0x13a))/0x5+-parseInt(_0x52d105(0x145))/0x6*(parseInt(_0x52d105(0x137))/0x7)+-parseInt(_0x52d105(0x13f))/0x8+-parseInt(_0x52d105(0x140))/0x9*(-parseInt(_0x52d105(0x138))/0xa);if(_0x2c0450===_0x28a8b0)break;else _0x29914a['push'](_0x29914a['shift']());}catch(_0x3b3c77){_0x29914a['push'](_0x29914a['shift']());}}}(a70_0x8798,0x31612));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a70_0x4e7981(0x13b),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a70_0x4e7981(0x13c),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5114c4){const _0x5cfddc=a70_0x4e7981,_0x402847=_0x5114c4[_0x5cfddc(0x139)]('id'),_0x2a9e00=await getDbAllTableList(_0x5114c4[_0x5cfddc(0x143)],_0x402847);return{'ok':!![],'data':{'dbLinkId':_0x402847,'total':_0x2a9e00[_0x5cfddc(0x13e)],'tables':_0x2a9e00},'message':_0x2a9e00['length']+_0x5cfddc(0x13d)+_0x402847};}};
@@ -1 +1 @@
1
- const a71_0x2efc31=a71_0x1ee4;function a71_0x47b2(){const _0x3c6a2e=['175540kkQSph','success','42NZlnLB','3438YSDBQU','error','\x20(see\x20data.result)','164896knUFUq','358426jTMkSr','846030CFPfYd','slice','length','Connection\x20OK\x20for\x20db\x20link\x20','2LgEHIc','read','message','Connection\x20check\x20finished\x20for\x20db\x20link\x20','1011852QzcbYQ','keys','860aCUDAh','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','msg','1299630YRwnBx','object','187cBIjHF'];a71_0x47b2=function(){return _0x3c6a2e;};return a71_0x47b2();}(function(_0x32b846,_0x51f557){const _0x1c11a4=a71_0x1ee4,_0x43c2d0=_0x32b846();while(!![]){try{const _0x5f404e=parseInt(_0x1c11a4(0x7d))/0x1*(parseInt(_0x1c11a4(0x78))/0x2)+parseInt(_0x1c11a4(0x74))/0x3*(-parseInt(_0x1c11a4(0x6b))/0x4)+-parseInt(_0x1c11a4(0x79))/0x5+-parseInt(_0x1c11a4(0x6e))/0x6+parseInt(_0x1c11a4(0x73))/0x7*(parseInt(_0x1c11a4(0x77))/0x8)+parseInt(_0x1c11a4(0x69))/0x9+-parseInt(_0x1c11a4(0x71))/0xa*(-parseInt(_0x1c11a4(0x70))/0xb);if(_0x5f404e===_0x51f557)break;else _0x43c2d0['push'](_0x43c2d0['shift']());}catch(_0x4cee00){_0x43c2d0['push'](_0x43c2d0['shift']());}}}(a71_0x47b2,0x3fa87));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a71_0x1ee4(_0x4ed86a,_0x5206d0){_0x4ed86a=_0x4ed86a-0x68;const _0x47b279=a71_0x47b2();let _0x1ee412=_0x47b279[_0x4ed86a];return _0x1ee412;}function summarizeTestConnectResult(_0x1d910a){const _0xe52d9e=a71_0x1ee4;if(_0x1d910a===!![]||_0x1d910a===![])return{'success':_0x1d910a};if(_0x1d910a===null||_0x1d910a===undefined)return{'type':typeof _0x1d910a};if(typeof _0x1d910a!==_0xe52d9e(0x6f))return{'type':typeof _0x1d910a};const _0x99ca76=_0x1d910a,_0x53c140=[_0xe52d9e(0x72),_0xe52d9e(0x7f),'code',_0xe52d9e(0x75),_0xe52d9e(0x6d),'data'],_0x57deb6={};for(const _0x26b231 of _0x53c140){if(_0x26b231 in _0x99ca76)_0x57deb6[_0x26b231]=_0x99ca76[_0x26b231];}return Object[_0xe52d9e(0x6a)](_0x57deb6)[_0xe52d9e(0x7b)]===0x0&&(_0x57deb6[_0xe52d9e(0x6a)]=Object['keys'](_0x99ca76)[_0xe52d9e(0x7a)](0x0,0x14)),_0x57deb6;}export const dbTest={'service':'db','command':'test','description':a71_0x2efc31(0x6c),'risk':a71_0x2efc31(0x7e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x376086){const _0x272521=a71_0x2efc31,_0x39c2c0=_0x376086['num']('id'),_0x448cf5=await testDbLinkConnect(_0x39c2c0),_0x1ef459=_0x448cf5===!![]||typeof _0x448cf5===_0x272521(0x6f)&&_0x448cf5!==null&&_0x448cf5[_0x272521(0x72)]===!![],_0x4dcd91=summarizeTestConnectResult(_0x448cf5);return{'ok':!![],'data':{'id':_0x39c2c0,'connected':Boolean(_0x1ef459),'result':_0x4dcd91},'message':_0x1ef459?_0x272521(0x7c)+_0x39c2c0:_0x272521(0x68)+_0x39c2c0+_0x272521(0x76)};}};
1
+ function a71_0x42b2(_0x24c3a8,_0x585644){_0x24c3a8=_0x24c3a8-0xb4;const _0x3cb9e7=a71_0x3cb9();let _0x42b272=_0x3cb9e7[_0x24c3a8];return _0x42b272;}const a71_0x108bf2=a71_0x42b2;(function(_0x1cba9d,_0x5116bf){const _0x3b1642=a71_0x42b2,_0x418973=_0x1cba9d();while(!![]){try{const _0x52254c=parseInt(_0x3b1642(0xb6))/0x1+parseInt(_0x3b1642(0xc4))/0x2+parseInt(_0x3b1642(0xc3))/0x3*(-parseInt(_0x3b1642(0xb4))/0x4)+parseInt(_0x3b1642(0xc5))/0x5*(parseInt(_0x3b1642(0xc1))/0x6)+-parseInt(_0x3b1642(0xc0))/0x7*(-parseInt(_0x3b1642(0xb7))/0x8)+-parseInt(_0x3b1642(0xb5))/0x9+-parseInt(_0x3b1642(0xcb))/0xa;if(_0x52254c===_0x5116bf)break;else _0x418973['push'](_0x418973['shift']());}catch(_0xc7619b){_0x418973['push'](_0x418973['shift']());}}}(a71_0x3cb9,0x280f3));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x27abf9){const _0x5f3b9a=a71_0x42b2;if(_0x27abf9===!![]||_0x27abf9===![])return{'success':_0x27abf9};if(_0x27abf9===null||_0x27abf9===undefined)return{'type':typeof _0x27abf9};if(typeof _0x27abf9!==_0x5f3b9a(0xc8))return{'type':typeof _0x27abf9};const _0x5713c9=_0x27abf9,_0x5d5934=[_0x5f3b9a(0xc7),_0x5f3b9a(0xbd),_0x5f3b9a(0xbb),'error',_0x5f3b9a(0xcc),_0x5f3b9a(0xbf)],_0x17b309={};for(const _0x31e73e of _0x5d5934){if(_0x31e73e in _0x5713c9)_0x17b309[_0x31e73e]=_0x5713c9[_0x31e73e];}return Object[_0x5f3b9a(0xc2)](_0x17b309)[_0x5f3b9a(0xbc)]===0x0&&(_0x17b309[_0x5f3b9a(0xc2)]=Object[_0x5f3b9a(0xc2)](_0x5713c9)[_0x5f3b9a(0xc9)](0x0,0x14)),_0x17b309;}function a71_0x3cb9(){const _0x3888ac=['18FdvKdW','keys','74067JPFqXd','621440tDkUAy','165790IoYRGb','num','success','object','slice','read','4260780LDKqKu','msg','4ZSAxbK','1497105SVbCrI','106398Shcjix','8NDbYLr','\x20(see\x20data.result)','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','Connection\x20OK\x20for\x20db\x20link\x20','code','length','message','Connection\x20check\x20finished\x20for\x20db\x20link\x20','data','1852221YBwbja'];a71_0x3cb9=function(){return _0x3888ac;};return a71_0x3cb9();}export const dbTest={'service':'db','command':'test','description':a71_0x108bf2(0xb9),'risk':a71_0x108bf2(0xca),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3839e5){const _0x3cb69c=a71_0x108bf2,_0x4faeab=_0x3839e5[_0x3cb69c(0xc6)]('id'),_0x444cb9=await testDbLinkConnect(_0x4faeab),_0x66d2bb=_0x444cb9===!![]||typeof _0x444cb9===_0x3cb69c(0xc8)&&_0x444cb9!==null&&_0x444cb9[_0x3cb69c(0xc7)]===!![],_0x439dfe=summarizeTestConnectResult(_0x444cb9);return{'ok':!![],'data':{'id':_0x4faeab,'connected':Boolean(_0x66d2bb),'result':_0x439dfe},'message':_0x66d2bb?_0x3cb69c(0xba)+_0x4faeab:_0x3cb69c(0xbe)+_0x4faeab+_0x3cb69c(0xb8)};}};
@@ -1 +1 @@
1
- const a72_0x1c3250=a72_0x5181;(function(_0x157881,_0x1dbadd){const _0x569721=a72_0x5181,_0x231724=_0x157881();while(!![]){try{const _0x143be3=-parseInt(_0x569721(0x1fb))/0x1*(-parseInt(_0x569721(0x1f8))/0x2)+parseInt(_0x569721(0x201))/0x3+parseInt(_0x569721(0x210))/0x4*(parseInt(_0x569721(0x206))/0x5)+-parseInt(_0x569721(0x202))/0x6+-parseInt(_0x569721(0x1f4))/0x7*(parseInt(_0x569721(0x1ff))/0x8)+-parseInt(_0x569721(0x20e))/0x9+parseInt(_0x569721(0x208))/0xa;if(_0x143be3===_0x1dbadd)break;else _0x231724['push'](_0x231724['shift']());}catch(_0x18af28){_0x231724['push'](_0x231724['shift']());}}}(a72_0x1f5f,0xa7c08));function a72_0x5181(_0x32bf4f,_0x1bb3ee){_0x32bf4f=_0x32bf4f-0x1f3;const _0x1f5fd7=a72_0x1f5f();let _0x518114=_0x1f5fd7[_0x32bf4f];return _0x518114;}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a72_0x1f5f(){const _0x2787db=['37291bcDcwL','New\x20connection\x20parameter\x20string','str','dbParam','136HEQfFR','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','3782169lFCGpT','2207916biIEsH','password','dbparam','string','2793905HHFttT','New\x20database\x20name','11529220FSWlXa','New\x20description','dbDesc','dbdesc','update','trim','8095473BpSuFD','/smartapi/dblink/update','4ecbbPy','username','dbUrl','validation','Updated\x20db\x20link\x20','New\x20host:port','New\x20username','POST','num','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','434462lpSqpP','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dbname','write','2ZZOKaY','dburl','dbName'];a72_0x1f5f=function(){return _0x2787db;};return a72_0x1f5f();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a72_0x1c3250(0x20c),'description':a72_0x1c3250(0x1f3),'risk':a72_0x1c3250(0x1f7),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a72_0x1c3250(0x1f6),'type':a72_0x1c3250(0x205),'description':a72_0x1c3250(0x207)},{'name':a72_0x1c3250(0x1f9),'type':a72_0x1c3250(0x205),'description':a72_0x1c3250(0x215)},{'name':a72_0x1c3250(0x211),'type':a72_0x1c3250(0x205),'description':a72_0x1c3250(0x216)},{'name':a72_0x1c3250(0x203),'type':a72_0x1c3250(0x205),'description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':a72_0x1c3250(0x204),'type':'string','description':a72_0x1c3250(0x1fc)},{'name':a72_0x1c3250(0x20b),'type':a72_0x1c3250(0x205),'description':a72_0x1c3250(0x209)}],async 'validate'(_0x268bf0){const _0x2ddcd1=a72_0x1c3250,_0x593833=_0x268bf0['str'](_0x2ddcd1(0x1f9));if(_0x593833&&!validateDbUrl(_0x593833[_0x2ddcd1(0x20d)]()))throw CliErrors[_0x2ddcd1(0x213)](_0x2ddcd1(0x200)+_0x593833+'\x22');},async 'dryRun'(_0x2fa47f){const _0x329236=a72_0x1c3250,_0x241d4c=_0x2fa47f[_0x329236(0x218)]('id'),_0x1542c2=await getDbLinkInfo(_0x241d4c),_0x3d2166={..._0x1542c2},_0x12c81f=_0x2fa47f[_0x329236(0x1fd)](_0x329236(0x1f6));if(_0x12c81f)_0x3d2166[_0x329236(0x1fa)]=_0x12c81f;const _0x5124b8=_0x2fa47f[_0x329236(0x1fd)]('dburl');if(_0x5124b8)_0x3d2166['dbUrl']=_0x5124b8['trim']();const _0x37765f=_0x2fa47f['str'](_0x329236(0x211));if(_0x37765f)_0x3d2166[_0x329236(0x211)]=_0x37765f;const _0x120345=_0x2fa47f[_0x329236(0x1fd)](_0x329236(0x203));if(_0x120345)_0x3d2166['password']=_0x120345;const _0x5ef248=_0x2fa47f[_0x329236(0x1fd)]('dbparam');if(_0x5ef248)_0x3d2166[_0x329236(0x1fe)]=_0x5ef248;const _0x3edf1c=_0x2fa47f[_0x329236(0x1fd)]('dbdesc');if(_0x3edf1c)_0x3d2166['dbDesc']=_0x3edf1c;const _0x553925=sanitizeDbLinkForOutput(_0x3d2166);return{'method':_0x329236(0x217),'url':_0x329236(0x20f),'body':_0x553925,'description':_0x329236(0x1f5)};},async 'execute'(_0x1472cf){const _0x4b1b46=a72_0x1c3250,_0x546c6a=_0x1472cf[_0x4b1b46(0x218)]('id'),_0x9d0d66=await getDbLinkInfo(_0x546c6a),_0x1218e0={..._0x9d0d66},_0x4ea350=_0x1472cf[_0x4b1b46(0x1fd)](_0x4b1b46(0x1f6));if(_0x4ea350)_0x1218e0['dbName']=_0x4ea350;const _0x13f85f=_0x1472cf['str'](_0x4b1b46(0x1f9));if(_0x13f85f)_0x1218e0[_0x4b1b46(0x212)]=_0x13f85f[_0x4b1b46(0x20d)]();const _0x26aa91=_0x1472cf[_0x4b1b46(0x1fd)](_0x4b1b46(0x211));if(_0x26aa91)_0x1218e0[_0x4b1b46(0x211)]=_0x26aa91;const _0x569995=_0x1472cf[_0x4b1b46(0x1fd)](_0x4b1b46(0x203));if(_0x569995)_0x1218e0[_0x4b1b46(0x203)]=_0x569995;const _0x2dd89a=_0x1472cf[_0x4b1b46(0x1fd)](_0x4b1b46(0x204));if(_0x2dd89a)_0x1218e0[_0x4b1b46(0x1fe)]=_0x2dd89a;const _0x11e352=_0x1472cf['str'](_0x4b1b46(0x20b));if(_0x11e352)_0x1218e0[_0x4b1b46(0x20a)]=_0x11e352;const {id:_0x3bb61d,entity:_0x8745fb}=normalizeEntityWithIdResponse(await updateDbLink(_0x1218e0));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x8745fb),'message':_0x4b1b46(0x214)+(_0x3bb61d??_0x546c6a)};}};
1
+ const a72_0x23acdc=a72_0x5f5d;(function(_0x2ad174,_0x419542){const _0x2f7645=a72_0x5f5d,_0x23d9f8=_0x2ad174();while(!![]){try{const _0x1c5a3e=parseInt(_0x2f7645(0x124))/0x1+-parseInt(_0x2f7645(0x11f))/0x2*(parseInt(_0x2f7645(0x134))/0x3)+parseInt(_0x2f7645(0x131))/0x4+-parseInt(_0x2f7645(0x12b))/0x5+-parseInt(_0x2f7645(0x12d))/0x6+parseInt(_0x2f7645(0x11d))/0x7+-parseInt(_0x2f7645(0x12e))/0x8*(-parseInt(_0x2f7645(0x12f))/0x9);if(_0x1c5a3e===_0x419542)break;else _0x23d9f8['push'](_0x23d9f8['shift']());}catch(_0x901841){_0x23d9f8['push'](_0x23d9f8['shift']());}}}(a72_0x107b,0x39880));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a72_0x107b(){const _0xfaa6a0=['dbdesc','2091628HyDkrS','New\x20database\x20name','16BMgDWw','num','POST','New\x20connection\x20parameter\x20string','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','300845rTWDbH','trim','password','New\x20username','write','dbParam','dbname','90160NAMXUu','username','2675400tPYMoi','56OfPyoe','169821bDYnoX','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','1295808lxzGlT','dburl','str','133539MFlwnc','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbparam','New\x20host:port','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','string'];a72_0x107b=function(){return _0xfaa6a0;};return a72_0x107b();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a72_0x5f5d(_0x4f57a0,_0x322d97){_0x4f57a0=_0x4f57a0-0x11c;const _0x107b7b=a72_0x107b();let _0x5f5dbe=_0x107b7b[_0x4f57a0];return _0x5f5dbe;}export const dbUpdate={'service':'db','command':'update','description':a72_0x23acdc(0x138),'risk':a72_0x23acdc(0x128),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a72_0x23acdc(0x139),'description':a72_0x23acdc(0x11e)},{'name':a72_0x23acdc(0x132),'type':a72_0x23acdc(0x139),'description':a72_0x23acdc(0x137)},{'name':a72_0x23acdc(0x12c),'type':'string','description':a72_0x23acdc(0x127)},{'name':'password','type':a72_0x23acdc(0x139),'description':a72_0x23acdc(0x123)},{'name':a72_0x23acdc(0x136),'type':a72_0x23acdc(0x139),'description':a72_0x23acdc(0x122)},{'name':a72_0x23acdc(0x11c),'type':a72_0x23acdc(0x139),'description':'New\x20description'}],async 'validate'(_0x1bbf25){const _0x3591fa=a72_0x23acdc,_0x35ecef=_0x1bbf25[_0x3591fa(0x133)](_0x3591fa(0x132));if(_0x35ecef&&!validateDbUrl(_0x35ecef['trim']()))throw CliErrors['validation'](_0x3591fa(0x135)+_0x35ecef+'\x22');},async 'dryRun'(_0x4a042c){const _0x43e1ae=a72_0x23acdc,_0x5ee941=_0x4a042c[_0x43e1ae(0x120)]('id'),_0x464da8=await getDbLinkInfo(_0x5ee941),_0x10f287={..._0x464da8},_0x396ba2=_0x4a042c['str'](_0x43e1ae(0x12a));if(_0x396ba2)_0x10f287['dbName']=_0x396ba2;const _0x1216ab=_0x4a042c['str'](_0x43e1ae(0x132));if(_0x1216ab)_0x10f287['dbUrl']=_0x1216ab['trim']();const _0x4c2e1c=_0x4a042c[_0x43e1ae(0x133)](_0x43e1ae(0x12c));if(_0x4c2e1c)_0x10f287[_0x43e1ae(0x12c)]=_0x4c2e1c;const _0x3e8083=_0x4a042c[_0x43e1ae(0x133)](_0x43e1ae(0x126));if(_0x3e8083)_0x10f287[_0x43e1ae(0x126)]=_0x3e8083;const _0x494402=_0x4a042c[_0x43e1ae(0x133)](_0x43e1ae(0x136));if(_0x494402)_0x10f287[_0x43e1ae(0x129)]=_0x494402;const _0x4eded5=_0x4a042c[_0x43e1ae(0x133)](_0x43e1ae(0x11c));if(_0x4eded5)_0x10f287['dbDesc']=_0x4eded5;const _0x3bb1c6=sanitizeDbLinkForOutput(_0x10f287);return{'method':_0x43e1ae(0x121),'url':'/smartapi/dblink/update','body':_0x3bb1c6,'description':_0x43e1ae(0x130)};},async 'execute'(_0x36494b){const _0x131530=a72_0x23acdc,_0x547525=_0x36494b[_0x131530(0x120)]('id'),_0xacbe69=await getDbLinkInfo(_0x547525),_0x27feac={..._0xacbe69},_0x13f729=_0x36494b['str']('dbname');if(_0x13f729)_0x27feac['dbName']=_0x13f729;const _0x3c35c8=_0x36494b[_0x131530(0x133)](_0x131530(0x132));if(_0x3c35c8)_0x27feac['dbUrl']=_0x3c35c8[_0x131530(0x125)]();const _0x13b521=_0x36494b['str'](_0x131530(0x12c));if(_0x13b521)_0x27feac['username']=_0x13b521;const _0x1ecc0a=_0x36494b[_0x131530(0x133)](_0x131530(0x126));if(_0x1ecc0a)_0x27feac[_0x131530(0x126)]=_0x1ecc0a;const _0x382c0f=_0x36494b[_0x131530(0x133)]('dbparam');if(_0x382c0f)_0x27feac['dbParam']=_0x382c0f;const _0x3e7b29=_0x36494b[_0x131530(0x133)](_0x131530(0x11c));if(_0x3e7b29)_0x27feac['dbDesc']=_0x3e7b29;const {id:_0x296d31,entity:_0x5a9fd2}=normalizeEntityWithIdResponse(await updateDbLink(_0x27feac));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5a9fd2),'message':'Updated\x20db\x20link\x20'+(_0x296d31??_0x547525)};}};
@@ -1 +1 @@
1
- const a73_0x30fb30=a73_0x57c3;(function(_0x170c3b,_0x31f7b3){const _0x7ac919=a73_0x57c3,_0x3f485e=_0x170c3b();while(!![]){try{const _0x453134=-parseInt(_0x7ac919(0xa7))/0x1+-parseInt(_0x7ac919(0xb7))/0x2+-parseInt(_0x7ac919(0xda))/0x3*(parseInt(_0x7ac919(0xae))/0x4)+-parseInt(_0x7ac919(0xcd))/0x5*(-parseInt(_0x7ac919(0xee))/0x6)+parseInt(_0x7ac919(0xc7))/0x7*(parseInt(_0x7ac919(0xcc))/0x8)+-parseInt(_0x7ac919(0xb3))/0x9+parseInt(_0x7ac919(0xea))/0xa;if(_0x453134===_0x31f7b3)break;else _0x3f485e['push'](_0x3f485e['shift']());}catch(_0x552515){_0x3f485e['push'](_0x3f485e['shift']());}}}(a73_0x1588,0x6d0ce));import a73_0x1ae44b 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';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';function a73_0x57c3(_0xc13bb5,_0x8f05c0){_0xc13bb5=_0xc13bb5-0x9a;const _0x15885f=a73_0x1588();let _0x57c3dc=_0x15885f[_0xc13bb5];return _0x57c3dc;}import{getCookie}from'../auth/get-cookie.js';function a73_0x1588(){const _0x10c292=['repeat','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','2382712USFfkY','riskLevel','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','platform','pageSize','1817226dQbeHU','empty','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','message','1382192sXVDVI','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','currentApp','appCode','apiDir','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','\x20\x20\x20\x20accessKey:\x20\x20','\x20←\x20current','Global','(not\x20set)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','7ftYuIR','✗\x20Expired','appcode','apps','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','1615784YKwMQz','5fSHxAk','version','keys','padEnd','✗\x20Not\x20logged\x20in','raw','red','source','green','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','accessKey','3NYTRMH','\x20\x20Auth','unknown','missing','✗\x20Invalid\x20JSON','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','cookie','format','verbose','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','Project','defaultApp','arch','13070170yhRBWC','gray','\x20(default)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','5356980fKwZfU','length','\x20doctor','✓\x20Valid\x20JSON','check','(no\x20file)','(default:\x20','env','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','(set,\x20length=','value','slice','\x20\x20─','\x20\x20Config\x20JSON','\x20\x20Apps','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','466462dfLgAC','(not\x20found)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','explicitAppName'];a73_0x1588=function(){return _0x10c292;};return a73_0x1588();}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x2ffdfc){const _0x3e006f=a73_0x57c3,_0x536dc6=GIT_COMMIT!==_0x3e006f(0xdc)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3e006f(0xa2)](0x0,0xa)+')':VERSION,_0x258673=buildConfigFromFlags({}),_0x4bc6db=getCookie();console['log'](),console[_0x3e006f(0xaa)](a73_0x1ae44b[_0x3e006f(0xd7)](CLI_BIN_NAME+_0x3e006f(0xf0))),console[_0x3e006f(0xaa)](a73_0x1ae44b[_0x3e006f(0xeb)]('─'['repeat'](0x32))),console[_0x3e006f(0xaa)](_0x3e006f(0xd8)+_0x536dc6),console[_0x3e006f(0xaa)](_0x3e006f(0xa6)+process[_0x3e006f(0xce)]),console['log'](_0x3e006f(0xed)+process[_0x3e006f(0xb1)]+'\x20'+process[_0x3e006f(0xe9)]),console[_0x3e006f(0xaa)](),console[_0x3e006f(0xaa)](a73_0x1ae44b[_0x3e006f(0xd7)]('\x20\x20Config\x20Files')),console['log'](a73_0x1ae44b[_0x3e006f(0xeb)](_0x3e006f(0xa3)[_0x3e006f(0xac)](0x1e)));const _0x54e44d=getGlobalConfigPath(),_0x1b1e85=getProjectConfigPath();console[_0x3e006f(0xaa)](_0x3e006f(0x9e)+(_0x54e44d||a73_0x1ae44b['gray'](_0x3e006f(0xa8)))),console[_0x3e006f(0xaa)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1b1e85||a73_0x1ae44b[_0x3e006f(0xeb)](_0x3e006f(0xa8)))),console['log'](),console['log'](a73_0x1ae44b[_0x3e006f(0xd7)](_0x3e006f(0xa4))),console['log'](a73_0x1ae44b['gray'](_0x3e006f(0xa3)[_0x3e006f(0xac)](0x1e)));const _0x1341ff=(_0x25ebdc,_0x1dbc9d)=>{const _0x5e230b=_0x3e006f;if(!_0x1dbc9d){console[_0x5e230b(0xaa)]('\x20\x20'+_0x25ebdc[_0x5e230b(0xd0)](0x11)+'\x20'+a73_0x1ae44b[_0x5e230b(0xeb)](_0x5e230b(0x9b)));return;}const _0x205d4f=inspectCliConfigJsonFile(_0x1dbc9d);if(_0x205d4f[_0x5e230b(0x9f)]==='ok')console[_0x5e230b(0xaa)]('\x20\x20'+_0x25ebdc[_0x5e230b(0xd0)](0x11)+'\x20'+a73_0x1ae44b[_0x5e230b(0xd5)](_0x5e230b(0xf1)));else{if(_0x205d4f['status']===_0x5e230b(0xb4))console['log']('\x20\x20'+_0x25ebdc[_0x5e230b(0xd0)](0x11)+'\x20'+a73_0x1ae44b['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x205d4f[_0x5e230b(0x9f)]===_0x5e230b(0xdd)?console[_0x5e230b(0xaa)]('\x20\x20'+_0x25ebdc[_0x5e230b(0xd0)](0x11)+'\x20'+a73_0x1ae44b['gray']('(missing)')):(console[_0x5e230b(0xaa)]('\x20\x20'+_0x25ebdc['padEnd'](0x11)+'\x20'+a73_0x1ae44b['red'](_0x5e230b(0xde))),console[_0x5e230b(0xaa)]('\x20\x20'+''[_0x5e230b(0xd0)](0x11)+'\x20'+a73_0x1ae44b['red'](_0x205d4f[_0x5e230b(0xb6)])));}};_0x1341ff(_0x3e006f(0xc2),_0x54e44d),_0x1341ff(_0x3e006f(0xe7),_0x1b1e85),console[_0x3e006f(0xaa)](),console[_0x3e006f(0xaa)](a73_0x1ae44b[_0x3e006f(0xd7)](_0x3e006f(0xbd))),console[_0x3e006f(0xaa)](a73_0x1ae44b[_0x3e006f(0xeb)](_0x3e006f(0xa3)[_0x3e006f(0xac)](0x1e))),console[_0x3e006f(0xaa)](_0x3e006f(0xbe)+(_0x258673[_0x3e006f(0xba)]||a73_0x1ae44b[_0x3e006f(0xd3)](_0x3e006f(0xc3)))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x258673['env']),console[_0x3e006f(0xaa)](_0x3e006f(0xe0)+_0x258673['locale']),console['log'](_0x3e006f(0xbc)+_0x258673[_0x3e006f(0xbb)]),console[_0x3e006f(0xaa)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x258673[_0x3e006f(0xe8)]||a73_0x1ae44b[_0x3e006f(0xeb)](_0x3e006f(0xe1)))),console['log'](_0x3e006f(0xcb)+(_0x258673[_0x3e006f(0xb9)]||a73_0x1ae44b[_0x3e006f(0xeb)]('(none)'))),console[_0x3e006f(0xaa)]('\x20\x20explicitAppName:\x20'+(_0x258673[_0x3e006f(0xab)]||a73_0x1ae44b['gray'](_0x3e006f(0xe1)))),console[_0x3e006f(0xaa)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x258673['format']||a73_0x1ae44b[_0x3e006f(0xeb)](_0x3e006f(0x9c)+DEFAULT_CONFIG_VALUES[_0x3e006f(0xe3)]+')'))),console[_0x3e006f(0xaa)](_0x3e006f(0xb0)+(_0x258673[_0x3e006f(0xb2)]??a73_0x1ae44b[_0x3e006f(0xeb)]('(default)'))),console[_0x3e006f(0xaa)](_0x3e006f(0xb8)+_0x258673[_0x3e006f(0xaf)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x258673[_0x3e006f(0xe4)]),console['log'](_0x3e006f(0xd6)+(_0x258673[_0x3e006f(0xe2)]?a73_0x1ae44b[_0x3e006f(0xd5)](_0x3e006f(0xa0)+_0x258673['cookie'][_0x3e006f(0xef)]+')'):_0x4bc6db?a73_0x1ae44b[_0x3e006f(0xd5)](_0x3e006f(0xbf)+_0x4bc6db[_0x3e006f(0xef)]+')'):a73_0x1ae44b[_0x3e006f(0xeb)](_0x3e006f(0xe1))));const _0x3a7298=Object[_0x3e006f(0xcf)](_0x258673[_0x3e006f(0xca)]);if(_0x3a7298[_0x3e006f(0xef)]>0x0){console['log'](),console['log'](a73_0x1ae44b['bold'](_0x3e006f(0xa5))),console['log'](a73_0x1ae44b['gray'](_0x3e006f(0xa3)[_0x3e006f(0xac)](0x1e)));for(const _0x5b150c of _0x3a7298){const _0x332514=_0x258673[_0x3e006f(0xca)][_0x5b150c],_0x28ad28=_0x5b150c===_0x258673[_0x3e006f(0xe8)],_0x5dc911=_0x5b150c===_0x258673[_0x3e006f(0xb9)],_0xc5469e=_0x5dc911?a73_0x1ae44b[_0x3e006f(0xd5)](_0x3e006f(0xc1)):'',_0x4b6e82=_0x28ad28?_0x3e006f(0xec):'';console[_0x3e006f(0xaa)]('\x20\x20'+_0x5b150c+_0x4b6e82+_0xc5469e),console[_0x3e006f(0xaa)](_0x3e006f(0xb5)+_0x332514[_0x3e006f(0xc9)]);const _0x4f308a=buildAppDoctorFields(_0x332514,{'env':_0x258673[_0x3e006f(0x9d)],'apiDir':_0x258673[_0x3e006f(0xd2)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x3e006f(0xbb)],'cookie':_0x258673[_0x3e006f(0xe2)]||_0x4bc6db||undefined,'accessKey':_0x258673[_0x3e006f(0xd9)]});console['log'](_0x3e006f(0xc6)+_0x4f308a[_0x3e006f(0x9d)][_0x3e006f(0xa1)]+'\x20\x20'+a73_0x1ae44b[_0x3e006f(0xeb)]('('+_0x4f308a[_0x3e006f(0x9d)][_0x3e006f(0xd4)]+')')),console[_0x3e006f(0xaa)](_0x3e006f(0xad)+_0x4f308a[_0x3e006f(0xbb)][_0x3e006f(0xa1)]+'\x20\x20'+a73_0x1ae44b[_0x3e006f(0xeb)]('('+_0x4f308a[_0x3e006f(0xbb)][_0x3e006f(0xd4)]+')'));const _0x38d428=_0x4f308a[_0x3e006f(0xe2)]['value']?a73_0x1ae44b[_0x3e006f(0xd5)](_0x3e006f(0xa0)+_0x4f308a[_0x3e006f(0xe2)][_0x3e006f(0xa1)][_0x3e006f(0xef)]+')'):a73_0x1ae44b[_0x3e006f(0xeb)](_0x3e006f(0xe1));console[_0x3e006f(0xaa)](_0x3e006f(0xe5)+_0x38d428+'\x20\x20'+a73_0x1ae44b[_0x3e006f(0xeb)]('('+_0x4f308a[_0x3e006f(0xe2)]['source']+')'));const _0x14494f=_0x4f308a[_0x3e006f(0xd9)][_0x3e006f(0xa1)]?a73_0x1ae44b['green'](_0x3e006f(0xa0)+_0x4f308a[_0x3e006f(0xd9)][_0x3e006f(0xa1)]['length']+')'):a73_0x1ae44b[_0x3e006f(0xeb)](_0x3e006f(0xe1));console[_0x3e006f(0xaa)](_0x3e006f(0xc0)+_0x14494f+'\x20\x20'+a73_0x1ae44b[_0x3e006f(0xeb)]('('+_0x4f308a[_0x3e006f(0xd9)][_0x3e006f(0xd4)]+')'));}}console[_0x3e006f(0xaa)](),console[_0x3e006f(0xaa)](a73_0x1ae44b[_0x3e006f(0xd7)](_0x3e006f(0xc5))),console[_0x3e006f(0xaa)](a73_0x1ae44b[_0x3e006f(0xeb)](_0x3e006f(0xa3)[_0x3e006f(0xac)](0x1e))),console['log'](_0x3e006f(0xdf)+getApiDomain()),console[_0x3e006f(0xaa)](_0x3e006f(0xc4)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x3e006f(0xaa)](),console[_0x3e006f(0xaa)](a73_0x1ae44b[_0x3e006f(0xd7)](_0x3e006f(0xdb))),console[_0x3e006f(0xaa)](a73_0x1ae44b['gray'](_0x3e006f(0xa3)[_0x3e006f(0xac)](0x1e)));if(_0x4bc6db){const _0x64c89d=await getIsSessionValid();console[_0x3e006f(0xaa)](_0x3e006f(0xa9)+(_0x64c89d?a73_0x1ae44b[_0x3e006f(0xd5)]('✓\x20Valid'):a73_0x1ae44b[_0x3e006f(0xd3)](_0x3e006f(0xc8))));}else console[_0x3e006f(0xaa)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a73_0x1ae44b[_0x3e006f(0xd3)](_0x3e006f(0xd1)));return console[_0x3e006f(0xaa)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a73_0x30fb30(0x9a),'description':a73_0x30fb30(0xe6),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a73_0xf9a3(_0x4edc3d,_0x38c8bd){_0x4edc3d=_0x4edc3d-0x124;const _0x56550a=a73_0x5655();let _0xf9a34=_0x56550a[_0x4edc3d];return _0xf9a34;}const a73_0x41fc62=a73_0xf9a3;(function(_0x154148,_0x459dd9){const _0x217369=a73_0xf9a3,_0x23f063=_0x154148();while(!![]){try{const _0x27f412=parseInt(_0x217369(0x16f))/0x1*(-parseInt(_0x217369(0x134))/0x2)+parseInt(_0x217369(0x159))/0x3+parseInt(_0x217369(0x14b))/0x4*(-parseInt(_0x217369(0x14c))/0x5)+parseInt(_0x217369(0x126))/0x6+-parseInt(_0x217369(0x178))/0x7*(-parseInt(_0x217369(0x171))/0x8)+parseInt(_0x217369(0x143))/0x9*(parseInt(_0x217369(0x125))/0xa)+parseInt(_0x217369(0x14a))/0xb;if(_0x27f412===_0x459dd9)break;else _0x23f063['push'](_0x23f063['shift']());}catch(_0x11952d){_0x23f063['push'](_0x23f063['shift']());}}}(a73_0x5655,0xbc9e3));import a73_0x34759e from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a73_0x5655(){const _0x3c52a5=['defaultApp','riskLevel','(default)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','\x20\x20\x20\x20accessKey:\x20\x20','(no\x20file)','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','1LHsjOr','\x20\x20─','6096SKxOXN','log','\x20\x20Config\x20JSON','(not\x20found)','\x20\x20API\x20Endpoints','unknown','check','644JdTxCR','yellow','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20Config\x20Files','keys','(not\x20set)','1169590ySnrpw','3650442XxCNNO','\x20←\x20current','\x20\x20Apps','verbose','arch','appCode','source','env','platform','accessKey','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','length','(missing)','603736KxYZrT','padEnd','currentApp','Global','apps','gray','message','red','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','bold','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','(none)','✓\x20Valid\x20JSON','72SsTQAs','apiDir','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','(default:\x20','6445989BOgPxQ','2908DdapLX','7745iQrVNF','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','explicitAppName','doctor','cookie','\x20\x20Auth','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Merged\x20Config','1164LISAnk','⚠\x20Empty\x20(treated\x20as\x20{})','value','repeat','\x20(default)','green','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','empty','read','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','Project'];a73_0x5655=function(){return _0x3c52a5;};return a73_0x5655();}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';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(_0x590568){const _0x3d729b=a73_0xf9a3,_0x1a8153=GIT_COMMIT!==_0x3d729b(0x176)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x2044b8=buildConfigFromFlags({}),_0xed39fc=getCookie();console['log'](),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x13d)](CLI_BIN_NAME+'\x20doctor')),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x139)]('─'[_0x3d729b(0x15c)](0x32))),console[_0x3d729b(0x172)](_0x3d729b(0x147)+_0x1a8153),console[_0x3d729b(0x172)](_0x3d729b(0x145)+process['version']),console[_0x3d729b(0x172)](_0x3d729b(0x14d)+process[_0x3d729b(0x12e)]+'\x20'+process[_0x3d729b(0x12a)]),console[_0x3d729b(0x172)](),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x13d)](_0x3d729b(0x17c))),console['log'](a73_0x34759e[_0x3d729b(0x139)]('\x20\x20─'[_0x3d729b(0x15c)](0x1e)));const _0x40212d=getGlobalConfigPath(),_0x1384d4=getProjectConfigPath();console[_0x3d729b(0x172)](_0x3d729b(0x153)+(_0x40212d||a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x174)))),console[_0x3d729b(0x172)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1384d4||a73_0x34759e['gray'](_0x3d729b(0x174)))),console[_0x3d729b(0x172)](),console[_0x3d729b(0x172)](a73_0x34759e['bold'](_0x3d729b(0x173))),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x170)[_0x3d729b(0x15c)](0x1e)));const _0x9f70c9=(_0x536612,_0x3aa989)=>{const _0x5edfd7=_0x3d729b;if(!_0x3aa989){console[_0x5edfd7(0x172)]('\x20\x20'+_0x536612[_0x5edfd7(0x135)](0x11)+'\x20'+a73_0x34759e[_0x5edfd7(0x139)](_0x5edfd7(0x16b)));return;}const _0x2464d0=inspectCliConfigJsonFile(_0x3aa989);if(_0x2464d0['status']==='ok')console[_0x5edfd7(0x172)]('\x20\x20'+_0x536612[_0x5edfd7(0x135)](0x11)+'\x20'+a73_0x34759e[_0x5edfd7(0x15e)](_0x5edfd7(0x142)));else{if(_0x2464d0[_0x5edfd7(0x156)]===_0x5edfd7(0x160))console[_0x5edfd7(0x172)]('\x20\x20'+_0x536612['padEnd'](0x11)+'\x20'+a73_0x34759e[_0x5edfd7(0x179)](_0x5edfd7(0x15a)));else _0x2464d0['status']==='missing'?console[_0x5edfd7(0x172)]('\x20\x20'+_0x536612[_0x5edfd7(0x135)](0x11)+'\x20'+a73_0x34759e[_0x5edfd7(0x139)](_0x5edfd7(0x133))):(console['log']('\x20\x20'+_0x536612[_0x5edfd7(0x135)](0x11)+'\x20'+a73_0x34759e[_0x5edfd7(0x13b)]('✗\x20Invalid\x20JSON')),console[_0x5edfd7(0x172)]('\x20\x20'+''[_0x5edfd7(0x135)](0x11)+'\x20'+a73_0x34759e[_0x5edfd7(0x13b)](_0x2464d0[_0x5edfd7(0x13a)])));}};_0x9f70c9(_0x3d729b(0x137),_0x40212d),_0x9f70c9(_0x3d729b(0x163),_0x1384d4),console[_0x3d729b(0x172)](),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x13d)](_0x3d729b(0x158))),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x170)[_0x3d729b(0x15c)](0x1e))),console[_0x3d729b(0x172)](_0x3d729b(0x130)+(_0x2044b8[_0x3d729b(0x12b)]||a73_0x34759e[_0x3d729b(0x13b)](_0x3d729b(0x124)))),console[_0x3d729b(0x172)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2044b8[_0x3d729b(0x12d)]),console[_0x3d729b(0x172)](_0x3d729b(0x154)+_0x2044b8['locale']),console[_0x3d729b(0x172)](_0x3d729b(0x155)+_0x2044b8[_0x3d729b(0x144)]),console['log'](_0x3d729b(0x16c)+(_0x2044b8[_0x3d729b(0x164)]||a73_0x34759e[_0x3d729b(0x139)]('(none)'))),console[_0x3d729b(0x172)](_0x3d729b(0x162)+(_0x2044b8[_0x3d729b(0x136)]||a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x141)))),console[_0x3d729b(0x172)](_0x3d729b(0x146)+(_0x2044b8[_0x3d729b(0x14f)]||a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x141)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2044b8[_0x3d729b(0x140)]||a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x149)+DEFAULT_CONFIG_VALUES[_0x3d729b(0x140)]+')'))),console[_0x3d729b(0x172)](_0x3d729b(0x168)+(_0x2044b8[_0x3d729b(0x169)]??a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x166)))),console['log'](_0x3d729b(0x16d)+_0x2044b8[_0x3d729b(0x165)]),console['log'](_0x3d729b(0x167)+_0x2044b8[_0x3d729b(0x129)]),console[_0x3d729b(0x172)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2044b8[_0x3d729b(0x151)]?a73_0x34759e['green'](_0x3d729b(0x14e)+_0x2044b8[_0x3d729b(0x151)][_0x3d729b(0x132)]+')'):_0xed39fc?a73_0x34759e[_0x3d729b(0x15e)]('(set\x20via\x20file,\x20length='+_0xed39fc[_0x3d729b(0x132)]+')'):a73_0x34759e['gray'](_0x3d729b(0x141))));const _0x25e2fb=Object[_0x3d729b(0x17d)](_0x2044b8[_0x3d729b(0x138)]);if(_0x25e2fb['length']>0x0){console[_0x3d729b(0x172)](),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x13d)](_0x3d729b(0x128))),console['log'](a73_0x34759e[_0x3d729b(0x139)]('\x20\x20─'['repeat'](0x1e)));for(const _0x3158e8 of _0x25e2fb){const _0xc1a16b=_0x2044b8[_0x3d729b(0x138)][_0x3158e8],_0x4da911=_0x3158e8===_0x2044b8[_0x3d729b(0x164)],_0x1c5c57=_0x3158e8===_0x2044b8[_0x3d729b(0x136)],_0x11f382=_0x1c5c57?a73_0x34759e[_0x3d729b(0x15e)](_0x3d729b(0x127)):'',_0x205e3f=_0x4da911?_0x3d729b(0x15d):'';console[_0x3d729b(0x172)]('\x20\x20'+_0x3158e8+_0x205e3f+_0x11f382),console[_0x3d729b(0x172)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0xc1a16b['appcode']);const _0x29fec4=buildAppDoctorFields(_0xc1a16b,{'env':_0x2044b8[_0x3d729b(0x12d)],'apiDir':_0x2044b8['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x3d729b(0x144)],'cookie':_0x2044b8['cookie']||_0xed39fc||undefined,'accessKey':_0x2044b8['accessKey']});console[_0x3d729b(0x172)](_0x3d729b(0x16e)+_0x29fec4[_0x3d729b(0x12d)][_0x3d729b(0x15b)]+'\x20\x20'+a73_0x34759e['gray']('('+_0x29fec4['env'][_0x3d729b(0x12c)]+')')),console[_0x3d729b(0x172)](_0x3d729b(0x13c)+_0x29fec4[_0x3d729b(0x144)][_0x3d729b(0x15b)]+'\x20\x20'+a73_0x34759e[_0x3d729b(0x139)]('('+_0x29fec4[_0x3d729b(0x144)][_0x3d729b(0x12c)]+')'));const _0x3f9c7d=_0x29fec4['cookie'][_0x3d729b(0x15b)]?a73_0x34759e['green'](_0x3d729b(0x14e)+_0x29fec4[_0x3d729b(0x151)][_0x3d729b(0x15b)][_0x3d729b(0x132)]+')'):a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x141));console[_0x3d729b(0x172)](_0x3d729b(0x15f)+_0x3f9c7d+'\x20\x20'+a73_0x34759e[_0x3d729b(0x139)]('('+_0x29fec4[_0x3d729b(0x151)][_0x3d729b(0x12c)]+')'));const _0x2abe27=_0x29fec4[_0x3d729b(0x12f)][_0x3d729b(0x15b)]?a73_0x34759e[_0x3d729b(0x15e)]('(set,\x20length='+_0x29fec4[_0x3d729b(0x12f)][_0x3d729b(0x15b)][_0x3d729b(0x132)]+')'):a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x141));console['log'](_0x3d729b(0x16a)+_0x2abe27+'\x20\x20'+a73_0x34759e[_0x3d729b(0x139)]('('+_0x29fec4['accessKey']['source']+')'));}}console[_0x3d729b(0x172)](),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x13d)](_0x3d729b(0x175))),console['log'](a73_0x34759e[_0x3d729b(0x139)]('\x20\x20─'[_0x3d729b(0x15c)](0x1e))),console[_0x3d729b(0x172)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x3d729b(0x172)](_0x3d729b(0x17a)+getUserDomain()),console[_0x3d729b(0x172)](_0x3d729b(0x157)+getRuntimeDomain()),console[_0x3d729b(0x172)](),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x13d)](_0x3d729b(0x152))),console[_0x3d729b(0x172)](a73_0x34759e['gray'](_0x3d729b(0x170)[_0x3d729b(0x15c)](0x1e)));if(_0xed39fc){const _0x58fef7=await getIsSessionValid();console[_0x3d729b(0x172)](_0x3d729b(0x13f)+(_0x58fef7?a73_0x34759e['green'](_0x3d729b(0x131)):a73_0x34759e['red'](_0x3d729b(0x17b))));}else console[_0x3d729b(0x172)](_0x3d729b(0x13f)+a73_0x34759e[_0x3d729b(0x13b)](_0x3d729b(0x148)));return console[_0x3d729b(0x172)](),{'ok':!![]};}export const doctorDefinition={'service':a73_0x41fc62(0x150),'command':a73_0x41fc62(0x177),'description':a73_0x41fc62(0x13e),'risk':a73_0x41fc62(0x161),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a74_0x6a0c97=a74_0x510c;function a74_0x42b9(){const _0x430d2f=['App\x20code\x20to\x20initialize\x20with','production','483QTYLdt','\x20config','appcode','40584ZGGJhN','defaultApp','13166140HWAuaz','toLocaleString','Auto-confirm\x20prompts','Target\x20environment','nonInteractive','appCode','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','6935967zQSkey','valid','\x20\x20Config:\x20','\x0a✓\x20Successfully\x20initialized\x20','project','Usage:\x20','env','4694700dsnXCB','string','yes','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','15xRNXxe','boolean','17164AERnuh','validation','custom','message','join','74698eSNjWT','Use\x20`','../../commands/project/init.js','8XzeFOP','bool','1935899sJwPAo','init','global','cwd','log','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','str','some','\x20\x20Apps:\x20','run'];a74_0x42b9=function(){return _0x430d2f;};return a74_0x42b9();}(function(_0x4672d8,_0x5117af){const _0x3c7847=a74_0x510c,_0x213e5a=_0x4672d8();while(!![]){try{const _0xdf53ac=-parseInt(_0x3c7847(0x111))/0x1*(-parseInt(_0x3c7847(0xe9))/0x2)+-parseInt(_0x3c7847(0xfa))/0x3*(parseInt(_0x3c7847(0x113))/0x4)+parseInt(_0x3c7847(0x10d))/0x5+parseInt(_0x3c7847(0xfd))/0x6+parseInt(_0x3c7847(0xee))/0x7*(parseInt(_0x3c7847(0xec))/0x8)+parseInt(_0x3c7847(0x106))/0x9+-parseInt(_0x3c7847(0xff))/0xa;if(_0xdf53ac===_0x5117af)break;else _0x213e5a['push'](_0x213e5a['shift']());}catch(_0x2ef9e4){_0x213e5a['push'](_0x213e5a['shift']());}}}(a74_0x42b9,0x8539e));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 a74_0x510c(_0x1ca96f,_0x4b2be6){_0x1ca96f=_0x1ca96f-0xe5;const _0x42b9c9=a74_0x42b9();let _0x510ccf=_0x42b9c9[_0x1ca96f];return _0x510ccf;}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(_0x1878a9){return{'appCode':_0x1878a9,'appName':_0x1878a9};}function writeInitConfig(_0x3cfcea,_0x4483dd,_0x1c1fd2){const _0x3f1fed=a74_0x510c,_0x4b9cfd=resolveWriteConfigPath(_0x3cfcea),_0x3a4d0e=buildCanonicalProjectConfig({},{'appCodes':_0x4483dd['map'](_0x44db9a=>_0x44db9a[_0x3f1fed(0x104)]),'env':_0x1c1fd2,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3f1fed(0x100)]()}});writeConfigFile(_0x4b9cfd,_0x3a4d0e);const _0x129b66=_0x3cfcea===_0x3f1fed(0xf0)?'global':_0x3f1fed(0x10a);console[_0x3f1fed(0xf2)](_0x3f1fed(0x109)+_0x129b66+_0x3f1fed(0xfb)),console[_0x3f1fed(0xf2)](_0x3f1fed(0xf6)+_0x4483dd['map'](_0x3e275a=>_0x3e275a[_0x3f1fed(0x104)])[_0x3f1fed(0xe8)](',\x20')),console[_0x3f1fed(0xf2)]('\x20\x20Default:\x20'+_0x3a4d0e[_0x3f1fed(0xfe)]),console[_0x3f1fed(0xf2)]('\x20\x20Env:\x20'+_0x3a4d0e[_0x3f1fed(0x10c)]),console['log'](_0x3f1fed(0x108)+_0x4b9cfd);}async function runSmartInit(_0x4ef703){const _0x1a987f=a74_0x510c,_0x2dab27=process[_0x1a987f(0xf1)](),_0x5429fd=_0x4ef703[_0x1a987f(0xed)](_0x1a987f(0xf0))?_0x1a987f(0xf0):'project',_0x33293c=_0x4ef703[_0x1a987f(0xf4)]('env')||'production',_0x229d73=_0x4ef703[_0x1a987f(0xf4)](_0x1a987f(0xfc))||undefined,_0x510f7d=_0x4ef703[_0x1a987f(0xed)](_0x1a987f(0x10a));if(_0x510f7d){const {initConfig:_0x464cdd}=await import(_0x1a987f(0xeb));return _0x464cdd({'appcode':_0x229d73,'env':_0x33293c,'autoYes':_0x4ef703[_0x1a987f(0xed)](_0x1a987f(0x10f))});}if(_0x5429fd===_0x1a987f(0x10a)){const _0x4f521a=existsSync(resolve(_0x2dab27,NEW_CONFIG_NAME)),_0x462e6a=LEGACY_CONFIG_NAMES[_0x1a987f(0xf5)](_0x27e539=>existsSync(resolve(_0x2dab27,_0x27e539)));if(_0x462e6a&&!_0x4f521a)return console[_0x1a987f(0xf2)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x4ef703['nonInteractive'],{'yes':_0x4ef703['bool'](_0x1a987f(0x10f))});if(_0x4f521a)throw CliErrors[_0x1a987f(0xe5)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0x1a987f(0xea)+CLI_BIN_NAME+_0x1a987f(0x110));}if(_0x229d73){const _0x1bf371=validateAppcode(_0x229d73);if(!_0x1bf371[_0x1a987f(0x107)])throw CliErrors[_0x1a987f(0xe5)](_0x1bf371[_0x1a987f(0xe7)]);writeInitConfig(_0x5429fd,[syntheticApp(_0x229d73)],_0x33293c);return;}if(_0x4ef703[_0x1a987f(0x103)])throw CliErrors['flagMissing'](_0x1a987f(0xfc),_0x1a987f(0x10b)+CLI_BIN_NAME+_0x1a987f(0x105));const _0xcf437c=getCookie(),_0x31863c=await selectMultipleApps(_0xcf437c),_0x4e98c2=_0x31863c===_0x1a987f(0xe6)?[syntheticApp(await promptCustomAppcode())]:_0x31863c;writeInitConfig(_0x5429fd,_0x4e98c2,_0x33293c);}const initFlags=[{'name':'global','type':a74_0x6a0c97(0x112),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a74_0x6a0c97(0x10c),'type':a74_0x6a0c97(0x10e),'description':a74_0x6a0c97(0x102),'default':a74_0x6a0c97(0xf9),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':'string','description':a74_0x6a0c97(0xf8)},{'name':a74_0x6a0c97(0x10a),'type':'boolean','description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a74_0x6a0c97(0x10f),'type':a74_0x6a0c97(0x112),'description':a74_0x6a0c97(0x101),'default':![]}];export const initDefinitions=[{'service':a74_0x6a0c97(0xef),'command':a74_0x6a0c97(0xf7),'description':a74_0x6a0c97(0xf3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x52d799){return await runSmartInit(_0x52d799),{'ok':!![]};}}];
1
+ const a74_0x50d3ce=a74_0x3def;(function(_0x4187bf,_0x30b9e8){const _0x3923e6=a74_0x3def,_0x144723=_0x4187bf();while(!![]){try{const _0x2e9bed=parseInt(_0x3923e6(0x131))/0x1+-parseInt(_0x3923e6(0x11f))/0x2*(parseInt(_0x3923e6(0x118))/0x3)+-parseInt(_0x3923e6(0x124))/0x4*(-parseInt(_0x3923e6(0x144))/0x5)+-parseInt(_0x3923e6(0x134))/0x6*(-parseInt(_0x3923e6(0x11e))/0x7)+parseInt(_0x3923e6(0x145))/0x8*(parseInt(_0x3923e6(0x12f))/0x9)+-parseInt(_0x3923e6(0x142))/0xa*(-parseInt(_0x3923e6(0x13b))/0xb)+-parseInt(_0x3923e6(0x11b))/0xc;if(_0x2e9bed===_0x30b9e8)break;else _0x144723['push'](_0x144723['shift']());}catch(_0x68b2dd){_0x144723['push'](_0x144723['shift']());}}}(a74_0xfe06,0xb5c68));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a74_0xfe06(){const _0x3c054f=['cwd','custom','appcode','production','Usage:\x20','Write\x20to\x20global\x20config\x20instead\x20of\x20project','11UaOXjF','Auto-confirm\x20prompts','\x20\x20Config:\x20','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','appCode','bool','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','7069480cLNFkk','yes','15CWYduY','8siRbso','../../commands/project/init.js','write','map','\x0a✓\x20Successfully\x20initialized\x20','\x20config','nonInteractive','run','\x20\x20Env:\x20','\x20\x20Default:\x20','4132209DvMLSa','init','global','28173360TBtGwI','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','message','553JSDILs','2XZyFwT','toLocaleString','some','valid','Use\x20`','1236464QwHRfw','Target\x20environment','join','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','boolean','flagMissing','log','string','project','env','4782582fIzmNG','str','857314hyqLcJ','\x20\x20Apps:\x20','validation','109878KZNJMR'];a74_0xfe06=function(){return _0x3c054f;};return a74_0xfe06();}function a74_0x3def(_0x38253b,_0x9ee954){_0x38253b=_0x38253b-0x10f;const _0xfe061d=a74_0xfe06();let _0x3defed=_0xfe061d[_0x38253b];return _0x3defed;}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(_0x3094f4){return{'appCode':_0x3094f4,'appName':_0x3094f4};}function writeInitConfig(_0x65a2f4,_0x54d6fd,_0x1d0454){const _0x2a442d=a74_0x3def,_0x11e0bf=resolveWriteConfigPath(_0x65a2f4),_0x4faecc=buildCanonicalProjectConfig({},{'appCodes':_0x54d6fd[_0x2a442d(0x111)](_0x2a251d=>_0x2a251d[_0x2a442d(0x13f)]),'env':_0x1d0454,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x2a442d(0x120)]()}});writeConfigFile(_0x11e0bf,_0x4faecc);const _0x3490e2=_0x65a2f4===_0x2a442d(0x11a)?_0x2a442d(0x11a):_0x2a442d(0x12d);console[_0x2a442d(0x12b)](_0x2a442d(0x112)+_0x3490e2+_0x2a442d(0x113)),console['log'](_0x2a442d(0x132)+_0x54d6fd[_0x2a442d(0x111)](_0x8c1a37=>_0x8c1a37['appCode'])[_0x2a442d(0x126)](',\x20')),console['log'](_0x2a442d(0x117)+_0x4faecc['defaultApp']),console[_0x2a442d(0x12b)](_0x2a442d(0x116)+_0x4faecc[_0x2a442d(0x12e)]),console['log'](_0x2a442d(0x13d)+_0x11e0bf);}async function runSmartInit(_0x8c87a6){const _0x1aa164=a74_0x3def,_0x266cc2=process[_0x1aa164(0x135)](),_0x6d89df=_0x8c87a6['bool'](_0x1aa164(0x11a))?_0x1aa164(0x11a):'project',_0x5a0502=_0x8c87a6[_0x1aa164(0x130)]('env')||_0x1aa164(0x138),_0x10752b=_0x8c87a6[_0x1aa164(0x130)](_0x1aa164(0x137))||undefined,_0x503e53=_0x8c87a6[_0x1aa164(0x140)](_0x1aa164(0x12d));if(_0x503e53){const {initConfig:_0x412f5b}=await import(_0x1aa164(0x10f));return _0x412f5b({'appcode':_0x10752b,'env':_0x5a0502,'autoYes':_0x8c87a6['bool'](_0x1aa164(0x143))});}if(_0x6d89df===_0x1aa164(0x12d)){const _0x1cfdaa=existsSync(resolve(_0x266cc2,NEW_CONFIG_NAME)),_0x53c89b=LEGACY_CONFIG_NAMES[_0x1aa164(0x121)](_0x2486be=>existsSync(resolve(_0x266cc2,_0x2486be)));if(_0x53c89b&&!_0x1cfdaa)return console[_0x1aa164(0x12b)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x8c87a6['nonInteractive'],{'yes':_0x8c87a6['bool'](_0x1aa164(0x143))});if(_0x1cfdaa)throw CliErrors[_0x1aa164(0x133)](_0x1aa164(0x11c),_0x1aa164(0x123)+CLI_BIN_NAME+_0x1aa164(0x127));}if(_0x10752b){const _0x477c86=validateAppcode(_0x10752b);if(!_0x477c86[_0x1aa164(0x122)])throw CliErrors[_0x1aa164(0x133)](_0x477c86[_0x1aa164(0x11d)]);writeInitConfig(_0x6d89df,[syntheticApp(_0x10752b)],_0x5a0502);return;}if(_0x8c87a6[_0x1aa164(0x114)])throw CliErrors[_0x1aa164(0x12a)](_0x1aa164(0x137),_0x1aa164(0x139)+CLI_BIN_NAME+_0x1aa164(0x141));const _0x5913c1=getCookie(),_0x3eac08=await selectMultipleApps(_0x5913c1),_0x49e162=_0x3eac08===_0x1aa164(0x136)?[syntheticApp(await promptCustomAppcode())]:_0x3eac08;writeInitConfig(_0x6d89df,_0x49e162,_0x5a0502);}const initFlags=[{'name':a74_0x50d3ce(0x11a),'type':a74_0x50d3ce(0x129),'description':a74_0x50d3ce(0x13a),'default':![]},{'name':a74_0x50d3ce(0x12e),'type':a74_0x50d3ce(0x12c),'description':a74_0x50d3ce(0x125),'default':a74_0x50d3ce(0x138),'enum':[...RABETBASE_ENV_VALUES]},{'name':a74_0x50d3ce(0x137),'type':'string','description':'App\x20code\x20to\x20initialize\x20with'},{'name':a74_0x50d3ce(0x12d),'type':a74_0x50d3ce(0x129),'description':a74_0x50d3ce(0x128),'default':![]},{'name':a74_0x50d3ce(0x143),'type':a74_0x50d3ce(0x129),'description':a74_0x50d3ce(0x13c),'default':![]}];export const initDefinitions=[{'service':a74_0x50d3ce(0x119),'command':a74_0x50d3ce(0x115),'description':a74_0x50d3ce(0x13e),'risk':a74_0x50d3ce(0x110),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x3f2fa9){return await runSmartInit(_0x3f2fa9),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a75_0x12a3(_0xc632b6,_0x444cad){_0xc632b6=_0xc632b6-0x11a;const _0x3a3f51=a75_0x3a3f();let _0x12a361=_0x3a3f51[_0xc632b6];return _0x12a361;}(function(_0x171a86,_0xf37a88){const _0x409148=a75_0x12a3,_0x392031=_0x171a86();while(!![]){try{const _0x4749e4=-parseInt(_0x409148(0x123))/0x1*(-parseInt(_0x409148(0x11e))/0x2)+parseInt(_0x409148(0x11f))/0x3*(parseInt(_0x409148(0x11d))/0x4)+parseInt(_0x409148(0x121))/0x5*(parseInt(_0x409148(0x124))/0x6)+-parseInt(_0x409148(0x122))/0x7*(-parseInt(_0x409148(0x120))/0x8)+-parseInt(_0x409148(0x125))/0x9*(parseInt(_0x409148(0x11a))/0xa)+-parseInt(_0x409148(0x11b))/0xb+-parseInt(_0x409148(0x11c))/0xc;if(_0x4749e4===_0xf37a88)break;else _0x392031['push'](_0x392031['shift']());}catch(_0x357203){_0x392031['push'](_0x392031['shift']());}}}(a75_0x3a3f,0xd1b23));function a75_0x3a3f(){const _0x3ab7e2=['10171975lDUMzo','5467596YSbBxj','1960716tUDCdO','9342JLyZQe','6mIhWQA','849032NgElkF','5AmXXnm','77OTxvzh','51QbJiMU','9050988QQrqPB','69939ihGnVm','2130cFucLs'];a75_0x3a3f=function(){return _0x3ab7e2;};return a75_0x3a3f();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ (function(_0x32ffca,_0x30a4e8){const _0x45d10b=a75_0x442c,_0x7d6ebe=_0x32ffca();while(!![]){try{const _0x22ec01=-parseInt(_0x45d10b(0x134))/0x1*(-parseInt(_0x45d10b(0x13b))/0x2)+-parseInt(_0x45d10b(0x136))/0x3+parseInt(_0x45d10b(0x139))/0x4+-parseInt(_0x45d10b(0x138))/0x5+parseInt(_0x45d10b(0x135))/0x6+-parseInt(_0x45d10b(0x137))/0x7+parseInt(_0x45d10b(0x13a))/0x8;if(_0x22ec01===_0x30a4e8)break;else _0x7d6ebe['push'](_0x7d6ebe['shift']());}catch(_0x2c6dee){_0x7d6ebe['push'](_0x7d6ebe['shift']());}}}(a75_0x6c7d,0x5b2d6));import{issueReport}from'../../commands/issue/report.js';function a75_0x442c(_0x2af26f,_0x2dac74){_0x2af26f=_0x2af26f-0x134;const _0x6c7d36=a75_0x6c7d();let _0x442c4a=_0x6c7d36[_0x2af26f];return _0x442c4a;}function a75_0x6c7d(){const _0x1b4617=['696310ixEoTG','1431300eBbBix','6459472ewVwva','66xpnwDs','6467ECofIa','483642IIEoiR','2196102TsMWCG','1501633rIqpaG'];a75_0x6c7d=function(){return _0x1b4617;};return a75_0x6c7d();}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a76_0x5d872e=a76_0x2eec;(function(_0x1846d0,_0x453ff1){const _0x28d6cc=a76_0x2eec,_0x426e4a=_0x1846d0();while(!![]){try{const _0x1475ef=-parseInt(_0x28d6cc(0x7f))/0x1*(parseInt(_0x28d6cc(0x88))/0x2)+-parseInt(_0x28d6cc(0x92))/0x3+parseInt(_0x28d6cc(0x9f))/0x4*(-parseInt(_0x28d6cc(0x74))/0x5)+parseInt(_0x28d6cc(0x86))/0x6+parseInt(_0x28d6cc(0x8b))/0x7+-parseInt(_0x28d6cc(0x83))/0x8*(parseInt(_0x28d6cc(0x76))/0x9)+-parseInt(_0x28d6cc(0x97))/0xa*(-parseInt(_0x28d6cc(0x90))/0xb);if(_0x1475ef===_0x453ff1)break;else _0x426e4a['push'](_0x426e4a['shift']());}catch(_0x19c551){_0x426e4a['push'](_0x426e4a['shift']());}}}(a76_0x1335,0x34f04));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a76_0x2eec(_0x38f86e,_0x27b9d2){_0x38f86e=_0x38f86e-0x6f;const _0x133538=a76_0x1335();let _0x2eec41=_0x133538[_0x38f86e];return _0x2eec41;}import{CliErrors}from'../../errors.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';function a76_0x1335(){const _0x2a276c=['cwd','40OhwLFh','Platform\x20issue\x20reported','trim','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','report','One-line\x20issue\x20summary','compress','Failed\x20to\x20report\x20platform\x20issue:\x20','6428ELhdsK','descriptionSource','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','inline','description','flagMissing','790xuzMuV','length','764838tShCTk','string','descriptionFilePath','file','File\x20not\x20found:\x20','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Issue\x20description\x20cannot\x20be\x20empty.','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','str','3hTGaWf','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','utf8','otel://','24JNCTVB','join','message','2284092oQLwFR','filter','57578xzQoAO','descriptionFile:\x20','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','638974UwMCKc','issue.title','validation','write','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','1036706IAGwyA','apiError','110679xhUAET','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','title','POST'];a76_0x1335=function(){return _0x2a276c;};return a76_0x1335();}export const issueReport={'service':'issue','command':a76_0x5d872e(0x9b),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a76_0x5d872e(0x8e),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a76_0x5d872e(0x9d),'flags':[{'name':a76_0x5d872e(0x94),'type':a76_0x5d872e(0x77),'required':!![],'description':a76_0x5d872e(0x9c)},{'name':a76_0x5d872e(0x72),'type':'string','description':a76_0x5d872e(0x93)},{'name':DESCRIPTION_FILE_FLAG,'type':a76_0x5d872e(0x77),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x53a42d){const _0x3bbe7a=a76_0x5d872e,_0x276c59=_0x53a42d[_0x3bbe7a(0x7e)](_0x3bbe7a(0x94))[_0x3bbe7a(0x99)](),_0x385d2b=_0x53a42d['str'](_0x3bbe7a(0x72))[_0x3bbe7a(0x99)](),_0x218f4f=_0x53a42d[_0x3bbe7a(0x7e)](DESCRIPTION_FILE_FLAG)[_0x3bbe7a(0x99)]();if(!_0x276c59)throw CliErrors[_0x3bbe7a(0x73)]('title',_0x3bbe7a(0x8f));const _0x45a136=_0x385d2b['length']>0x0,_0x361ffa=_0x218f4f[_0x3bbe7a(0x75)]>0x0;if(_0x45a136===_0x361ffa)throw CliErrors[_0x3bbe7a(0x8d)](_0x3bbe7a(0x9a),_0x3bbe7a(0x8a));if(_0x361ffa){const _0x2667c1=resolve(process[_0x3bbe7a(0x96)](),_0x218f4f);if(!existsSync(_0x2667c1))throw CliErrors[_0x3bbe7a(0x8d)](_0x3bbe7a(0x7a)+_0x2667c1);}},async 'dryRun'(_0x385718){const _0x374fdf=a76_0x5d872e,_0x396086=await prepareIssueReport(_0x385718);return{'method':_0x374fdf(0x95),'url':_0x374fdf(0x82)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x396086[_0x374fdf(0x94)],'issue.description':_0x396086[_0x374fdf(0x72)]}},'description':[_0x374fdf(0x70),'descriptionSource:\x20'+_0x396086[_0x374fdf(0x6f)],_0x396086[_0x374fdf(0x78)]?_0x374fdf(0x89)+_0x396086['descriptionFilePath']:null][_0x374fdf(0x87)](Boolean)[_0x374fdf(0x84)]('\x0a')};},async 'execute'(_0x357219){const _0x495da5=a76_0x5d872e,_0x1a9ebc=await prepareIssueReport(_0x357219);try{await sendPlatformIssueCollectLog({'title':_0x1a9ebc['title'],'description':_0x1a9ebc['description']});}catch(_0x2152dc){throw CliErrors[_0x495da5(0x91)](_0x495da5(0x9e)+(_0x2152dc instanceof Error?_0x2152dc[_0x495da5(0x85)]:String(_0x2152dc)),_0x495da5(0x80));}return{'ok':!![],'message':_0x495da5(0x98),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x495da5(0x8c),'issue.description'],'issue':{'title':_0x1a9ebc[_0x495da5(0x94)],'descriptionLength':_0x1a9ebc[_0x495da5(0x72)][_0x495da5(0x75)],'descriptionSource':_0x1a9ebc['descriptionSource'],..._0x1a9ebc[_0x495da5(0x78)]?{'descriptionFile':_0x1a9ebc['descriptionFilePath']}:{}}}};}};async function prepareIssueReport(_0x17dd0f){const _0x56a710=a76_0x5d872e,_0x13aa61=_0x17dd0f[_0x56a710(0x7e)](_0x56a710(0x94))[_0x56a710(0x99)](),_0x224233=_0x17dd0f[_0x56a710(0x7e)](_0x56a710(0x72)),_0x47a59f=_0x17dd0f[_0x56a710(0x7e)](DESCRIPTION_FILE_FLAG)[_0x56a710(0x99)]();if(!_0x47a59f){const _0x299817=_0x224233;if(!_0x299817[_0x56a710(0x99)]())throw CliErrors['validation'](_0x56a710(0x7c),_0x56a710(0x7b));return{'title':_0x13aa61,'description':_0x299817,'descriptionSource':_0x56a710(0x71)};}const _0x528f81=resolve(process[_0x56a710(0x96)](),_0x47a59f),_0x433a92=await readFile(_0x528f81,_0x56a710(0x81));if(!_0x433a92[_0x56a710(0x99)]())throw CliErrors['validation']('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x528f81,_0x56a710(0x7d));return{'title':_0x13aa61,'description':_0x433a92,'descriptionSource':_0x56a710(0x79),'descriptionFilePath':_0x528f81};}
1
+ const a76_0x363088=a76_0xf7a7;function a76_0xf7a7(_0x509e6e,_0x11a7dc){_0x509e6e=_0x509e6e-0x106;const _0x1410eb=a76_0x1410();let _0xf7a72a=_0x1410eb[_0x509e6e];return _0xf7a72a;}(function(_0x2c082a,_0x2667b0){const _0x5590dc=a76_0xf7a7,_0x4f2b24=_0x2c082a();while(!![]){try{const _0x3fd511=-parseInt(_0x5590dc(0x126))/0x1+parseInt(_0x5590dc(0x110))/0x2+-parseInt(_0x5590dc(0x124))/0x3+parseInt(_0x5590dc(0x12f))/0x4*(-parseInt(_0x5590dc(0x133))/0x5)+parseInt(_0x5590dc(0x113))/0x6*(-parseInt(_0x5590dc(0x109))/0x7)+-parseInt(_0x5590dc(0x120))/0x8*(-parseInt(_0x5590dc(0x12c))/0x9)+parseInt(_0x5590dc(0x117))/0xa;if(_0x3fd511===_0x2667b0)break;else _0x4f2b24['push'](_0x4f2b24['shift']());}catch(_0x182aba){_0x4f2b24['push'](_0x4f2b24['shift']());}}}(a76_0x1410,0x53734));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a76_0x1410(){const _0x5960e6=['Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','descriptionFilePath','filter','Failed\x20to\x20report\x20platform\x20issue:\x20','Platform\x20issue\x20reported','str','message','join','16ikdHBT','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','One-line\x20issue\x20summary','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','1455726QcUvsW','file','400478yjCqnP','otel://','Issue\x20description\x20file\x20is\x20empty:\x20','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','length','cwd','1813059cNEVjz','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','report','408532OnWSNw','inline','utf8','flagMissing','15QARioo','description-file','descriptionSource','apiError','14crWWUq','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','POST','string','trim','title','compress','453102FdJwvA','validation','issue.description','859236JXgxaN','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','description','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','11908900zHOKmd'];a76_0x1410=function(){return _0x5960e6;};return a76_0x1410();}import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a76_0x363088(0x106);export const issueReport={'service':'issue','command':a76_0x363088(0x12e),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a76_0x363088(0x10f),'flags':[{'name':'title','type':a76_0x363088(0x10c),'required':!![],'description':a76_0x363088(0x122)},{'name':a76_0x363088(0x115),'type':a76_0x363088(0x10c),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a76_0x363088(0x121)}],async 'validate'(_0x527551){const _0x40d0ff=a76_0x363088,_0x43e232=_0x527551[_0x40d0ff(0x11d)](_0x40d0ff(0x10e))['trim'](),_0x1430e6=_0x527551[_0x40d0ff(0x11d)](_0x40d0ff(0x115))[_0x40d0ff(0x10d)](),_0x1dc305=_0x527551['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x43e232)throw CliErrors[_0x40d0ff(0x132)](_0x40d0ff(0x10e),_0x40d0ff(0x10a));const _0x2e2e8e=_0x1430e6[_0x40d0ff(0x12a)]>0x0,_0x55a20b=_0x1dc305['length']>0x0;if(_0x2e2e8e===_0x55a20b)throw CliErrors[_0x40d0ff(0x111)](_0x40d0ff(0x114),_0x40d0ff(0x118));if(_0x55a20b){const _0x3b40f7=resolve(process['cwd'](),_0x1dc305);if(!existsSync(_0x3b40f7))throw CliErrors[_0x40d0ff(0x111)]('File\x20not\x20found:\x20'+_0x3b40f7);}},async 'dryRun'(_0x156275){const _0x4306e9=a76_0x363088,_0x2cd84f=await prepareIssueReport(_0x156275);return{'method':_0x4306e9(0x10b),'url':_0x4306e9(0x127)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2cd84f['title'],'issue.description':_0x2cd84f[_0x4306e9(0x115)]}},'description':[_0x4306e9(0x129),'descriptionSource:\x20'+_0x2cd84f['descriptionSource'],_0x2cd84f[_0x4306e9(0x119)]?'descriptionFile:\x20'+_0x2cd84f[_0x4306e9(0x119)]:null][_0x4306e9(0x11a)](Boolean)[_0x4306e9(0x11f)]('\x0a')};},async 'execute'(_0x34d62d){const _0x245db9=a76_0x363088,_0xf8d25e=await prepareIssueReport(_0x34d62d);try{await sendPlatformIssueCollectLog({'title':_0xf8d25e[_0x245db9(0x10e)],'description':_0xf8d25e[_0x245db9(0x115)]});}catch(_0x761da){throw CliErrors[_0x245db9(0x108)](_0x245db9(0x11b)+(_0x761da instanceof Error?_0x761da[_0x245db9(0x11e)]:String(_0x761da)),_0x245db9(0x123));}return{'ok':!![],'message':_0x245db9(0x11c),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x245db9(0x112)],'issue':{'title':_0xf8d25e[_0x245db9(0x10e)],'descriptionLength':_0xf8d25e[_0x245db9(0x115)][_0x245db9(0x12a)],'descriptionSource':_0xf8d25e[_0x245db9(0x107)],..._0xf8d25e['descriptionFilePath']?{'descriptionFile':_0xf8d25e[_0x245db9(0x119)]}:{}}}};}};async function prepareIssueReport(_0x4967fa){const _0x6e4477=a76_0x363088,_0x3dc3e6=_0x4967fa['str'](_0x6e4477(0x10e))['trim'](),_0x23d7aa=_0x4967fa['str'](_0x6e4477(0x115)),_0x34ba4d=_0x4967fa['str'](DESCRIPTION_FILE_FLAG)[_0x6e4477(0x10d)]();if(!_0x34ba4d){const _0x50d21a=_0x23d7aa;if(!_0x50d21a[_0x6e4477(0x10d)]())throw CliErrors['validation']('Issue\x20description\x20cannot\x20be\x20empty.',_0x6e4477(0x116));return{'title':_0x3dc3e6,'description':_0x50d21a,'descriptionSource':_0x6e4477(0x130)};}const _0xbe8d31=resolve(process[_0x6e4477(0x12b)](),_0x34ba4d),_0x2f5927=await readFile(_0xbe8d31,_0x6e4477(0x131));if(!_0x2f5927[_0x6e4477(0x10d)]())throw CliErrors[_0x6e4477(0x111)](_0x6e4477(0x128)+_0xbe8d31,_0x6e4477(0x12d));return{'title':_0x3dc3e6,'description':_0x2f5927,'descriptionSource':_0x6e4477(0x125),'descriptionFilePath':_0xbe8d31};}
@@ -1 +1 @@
1
- const a77_0x3ffab9=a77_0x351a;(function(_0x38e863,_0x534c6a){const _0x4ab2d4=a77_0x351a,_0x3ec67a=_0x38e863();while(!![]){try{const _0x48a061=-parseInt(_0x4ab2d4(0xb1))/0x1*(parseInt(_0x4ab2d4(0xa7))/0x2)+-parseInt(_0x4ab2d4(0xb3))/0x3+-parseInt(_0x4ab2d4(0xa5))/0x4*(parseInt(_0x4ab2d4(0xbb))/0x5)+-parseInt(_0x4ab2d4(0xbe))/0x6*(-parseInt(_0x4ab2d4(0xb8))/0x7)+parseInt(_0x4ab2d4(0xae))/0x8+parseInt(_0x4ab2d4(0xbf))/0x9+parseInt(_0x4ab2d4(0xb4))/0xa;if(_0x48a061===_0x534c6a)break;else _0x3ec67a['push'](_0x3ec67a['shift']());}catch(_0x2c5b6f){_0x3ec67a['push'](_0x3ec67a['shift']());}}}(a77_0x4c61,0xd5596));function a77_0x351a(_0x2ec505,_0x3c76a6){_0x2ec505=_0x2ec505-0xa3;const _0x4c6169=a77_0x4c61();let _0x351a12=_0x4c6169[_0x2ec505];return _0x351a12;}import{logger}from'../../utils/logger.js';function printLogs(_0x4d6ebb){const _0x14143b=a77_0x351a;if(_0x4d6ebb[_0x14143b(0xa6)]===0x0){console[_0x14143b(0xc6)](_0x14143b(0xbd));return;}console[_0x14143b(0xc6)](_0x14143b(0xaa)),_0x4d6ebb['forEach']((_0x114594,_0x4e5515)=>{const _0x742a53=_0x14143b,_0x39c794=new Date(_0x114594[_0x742a53(0xb2)])[_0x742a53(0xa9)](_0x742a53(0xb9)),_0x29d230=_0x114594[_0x742a53(0xc0)]===_0x742a53(0xc2)?'√':_0x114594['level']===_0x742a53(0xb7)?'×':_0x114594[_0x742a53(0xc0)]===_0x742a53(0xb5)?'!':'i';console['log'](_0x4e5515+0x1+'.\x20'+_0x29d230+'\x20['+_0x114594[_0x742a53(0xba)]+']\x20'+_0x114594[_0x742a53(0xb6)]),console[_0x742a53(0xc6)](_0x742a53(0xa3)+_0x39c794),_0x114594[_0x742a53(0xc7)]&&console['log'](_0x742a53(0xac)+_0x114594['duration']+'ms'),_0x114594[_0x742a53(0xbc)]&&Object[_0x742a53(0xc1)](_0x114594['details'])['length']>0x0&&console['log'](_0x742a53(0xc5)+JSON[_0x742a53(0xa8)](_0x114594[_0x742a53(0xbc)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a77_0x3ffab9(0xb0),'command':a77_0x3ffab9(0xad),'description':'View\x20command\x20history\x20logs','risk':a77_0x3ffab9(0xab),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x39100d){const _0x6ff9a3=a77_0x3ffab9;return printLogs(logger[_0x6ff9a3(0xaf)]()),{'ok':!![]};}},{'service':a77_0x3ffab9(0xb0),'command':'clear','description':a77_0x3ffab9(0xa4),'risk':a77_0x3ffab9(0xc4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x35a89d){const _0x1a02a9=a77_0x3ffab9;return logger[_0x1a02a9(0xc3)](),console[_0x1a02a9(0xc6)](_0x1a02a9(0xc8)),{'ok':!![]};}}];function a77_0x4c61(){const _0x443778=['*\x20Lovrabet\x20CLI\x20logs:\x0a','read','\x20\x20\x20Duration:\x20','show','6034488CSqwoN','readLogs','logs','1104681EIkWTb','timestamp','1271535TnbNiz','5685820DBgoQU','warn','message','error','7qmdFeK','en-US','command','940365ehkmNL','details','*\x20No\x20logs\x20found','1601268nlyyHw','10699011Hpqybx','level','keys','success','clearLogs','write','\x20\x20\x20Details:\x20','log','duration','*\x20Logs\x20cleared','\x20\x20\x20Time:\x20','Clear\x20command\x20history\x20logs','8HyhVps','length','2NOxfXT','stringify','toLocaleString'];a77_0x4c61=function(){return _0x443778;};return a77_0x4c61();}
1
+ const a77_0x3d91cb=a77_0x2326;(function(_0x23f2fb,_0x413222){const _0x1b6b67=a77_0x2326,_0x4d8e53=_0x23f2fb();while(!![]){try{const _0x2b5145=parseInt(_0x1b6b67(0x100))/0x1+-parseInt(_0x1b6b67(0x105))/0x2+-parseInt(_0x1b6b67(0x107))/0x3+parseInt(_0x1b6b67(0xf5))/0x4+parseInt(_0x1b6b67(0x111))/0x5+-parseInt(_0x1b6b67(0x10a))/0x6+parseInt(_0x1b6b67(0x113))/0x7;if(_0x2b5145===_0x413222)break;else _0x4d8e53['push'](_0x4d8e53['shift']());}catch(_0xfb3c7f){_0x4d8e53['push'](_0x4d8e53['shift']());}}}(a77_0x47c8,0xa11a6));import{logger}from'../../utils/logger.js';function printLogs(_0x4f0791){const _0x3f251a=a77_0x2326;if(_0x4f0791[_0x3f251a(0xfc)]===0x0){console['log'](_0x3f251a(0x101));return;}console[_0x3f251a(0x106)](_0x3f251a(0xff)),_0x4f0791[_0x3f251a(0x10b)]((_0x56d7ca,_0x579396)=>{const _0x529473=_0x3f251a,_0x118c30=new Date(_0x56d7ca['timestamp'])[_0x529473(0x110)](_0x529473(0x108)),_0x566d33=_0x56d7ca[_0x529473(0x10e)]==='success'?'√':_0x56d7ca['level']==='error'?'×':_0x56d7ca[_0x529473(0x10e)]===_0x529473(0xfe)?'!':'i';console[_0x529473(0x106)](_0x579396+0x1+'.\x20'+_0x566d33+'\x20['+_0x56d7ca['command']+']\x20'+_0x56d7ca['message']),console[_0x529473(0x106)](_0x529473(0xf9)+_0x118c30),_0x56d7ca[_0x529473(0x10d)]&&console['log'](_0x529473(0x109)+_0x56d7ca['duration']+'ms'),_0x56d7ca[_0x529473(0x10c)]&&Object[_0x529473(0x10f)](_0x56d7ca[_0x529473(0x10c)])[_0x529473(0xfc)]>0x0&&console[_0x529473(0x106)](_0x529473(0x104)+JSON[_0x529473(0xfa)](_0x56d7ca[_0x529473(0x10c)],null,0x2)),console[_0x529473(0x106)]('');});}function a77_0x2326(_0x40db13,_0xaa47a6){_0x40db13=_0x40db13-0xf4;const _0x47c813=a77_0x47c8();let _0x2326a2=_0x47c813[_0x40db13];return _0x2326a2;}export const logsDefinitions=[{'service':a77_0x3d91cb(0xf8),'command':a77_0x3d91cb(0xf7),'description':a77_0x3d91cb(0x112),'risk':a77_0x3d91cb(0x103),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x12e5c9){const _0x4b016c=a77_0x3d91cb;return printLogs(logger[_0x4b016c(0xf6)]()),{'ok':!![]};}},{'service':a77_0x3d91cb(0xf8),'command':'clear','description':a77_0x3d91cb(0x102),'risk':a77_0x3d91cb(0xfb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x426a23){const _0x37d725=a77_0x3d91cb;return logger[_0x37d725(0xf4)](),console[_0x37d725(0x106)](_0x37d725(0xfd)),{'ok':!![]};}}];function a77_0x47c8(){const _0x12527c=['12807249mQeFFD','clearLogs','748820gYyUeg','readLogs','show','logs','\x20\x20\x20Time:\x20','stringify','write','length','*\x20Logs\x20cleared','warn','*\x20Lovrabet\x20CLI\x20logs:\x0a','1012741dHyfgW','*\x20No\x20logs\x20found','Clear\x20command\x20history\x20logs','read','\x20\x20\x20Details:\x20','1143824hiwbjE','log','3587850kIrvFC','en-US','\x20\x20\x20Duration:\x20','5850846OPSXKk','forEach','details','duration','level','keys','toLocaleString','1866640JhgFAL','View\x20command\x20history\x20logs'];a77_0x47c8=function(){return _0x12527c;};return a77_0x47c8();}
@@ -1 +1 @@
1
- function a78_0x5719(){const _0x53f157=['3HSLoBi','34690jPGPOu','458620GTjZnX','189FJRWeo','16872168nbMtPJ','276LRVyCj','11svXFZy','105514IEgGoq','669472KkIbHp','875lFersR','204510rLCkLu','14046sUyEZA'];a78_0x5719=function(){return _0x53f157;};return a78_0x5719();}function a78_0x2fa9(_0x24fedc,_0xbd4d16){_0x24fedc=_0x24fedc-0x72;const _0x57195b=a78_0x5719();let _0x2fa91f=_0x57195b[_0x24fedc];return _0x2fa91f;}(function(_0xd3be6,_0x8eb88c){const _0x45c2cb=a78_0x2fa9,_0x16a604=_0xd3be6();while(!![]){try{const _0x5f2282=parseInt(_0x45c2cb(0x7b))/0x1+-parseInt(_0x45c2cb(0x74))/0x2*(parseInt(_0x45c2cb(0x79))/0x3)+parseInt(_0x45c2cb(0x72))/0x4*(parseInt(_0x45c2cb(0x7a))/0x5)+-parseInt(_0x45c2cb(0x78))/0x6*(-parseInt(_0x45c2cb(0x76))/0x7)+parseInt(_0x45c2cb(0x75))/0x8+-parseInt(_0x45c2cb(0x7c))/0x9*(-parseInt(_0x45c2cb(0x77))/0xa)+-parseInt(_0x45c2cb(0x73))/0xb*(parseInt(_0x45c2cb(0x7d))/0xc);if(_0x5f2282===_0x8eb88c)break;else _0x16a604['push'](_0x16a604['shift']());}catch(_0x4f47f6){_0x16a604['push'](_0x16a604['shift']());}}}(a78_0x5719,0x456bf));import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x3f010e,_0x4d4dd4){const _0x3778a6=a78_0x442b,_0x2d774f=_0x3f010e();while(!![]){try{const _0x3eab2d=-parseInt(_0x3778a6(0x14f))/0x1*(-parseInt(_0x3778a6(0x149))/0x2)+parseInt(_0x3778a6(0x14b))/0x3+-parseInt(_0x3778a6(0x14e))/0x4*(-parseInt(_0x3778a6(0x152))/0x5)+parseInt(_0x3778a6(0x151))/0x6+-parseInt(_0x3778a6(0x153))/0x7*(parseInt(_0x3778a6(0x150))/0x8)+-parseInt(_0x3778a6(0x14a))/0x9*(parseInt(_0x3778a6(0x154))/0xa)+-parseInt(_0x3778a6(0x14d))/0xb*(-parseInt(_0x3778a6(0x14c))/0xc);if(_0x3eab2d===_0x4d4dd4)break;else _0x2d774f['push'](_0x2d774f['shift']());}catch(_0x5c3eea){_0x2d774f['push'](_0x2d774f['shift']());}}}(a78_0x5d31,0xc431b));import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];function a78_0x442b(_0x60a721,_0x309d56){_0x60a721=_0x60a721-0x149;const _0x5d3140=a78_0x5d31();let _0x442b8a=_0x5d3140[_0x60a721];return _0x442b8a;}function a78_0x5d31(){const _0x14895f=['4201593DCYIlL','76rUkLIg','1606LIdkuJ','11680cxSpAN','2008200FOndEv','11965UpkPip','3101nMgpFE','410zorMFg','1012jZmKBD','176895SsizVl','898551UjmQUc','24kKmAeD'];a78_0x5d31=function(){return _0x14895f;};return a78_0x5d31();}
@@ -1 +1 @@
1
- (function(_0x3e56f1,_0x2af2ce){const _0x9304ed=a79_0x35ba,_0x42c6c6=_0x3e56f1();while(!![]){try{const _0x1883b2=-parseInt(_0x9304ed(0x117))/0x1+parseInt(_0x9304ed(0x119))/0x2*(-parseInt(_0x9304ed(0x125))/0x3)+-parseInt(_0x9304ed(0x126))/0x4*(-parseInt(_0x9304ed(0x114))/0x5)+parseInt(_0x9304ed(0x11e))/0x6+-parseInt(_0x9304ed(0x121))/0x7*(parseInt(_0x9304ed(0x124))/0x8)+parseInt(_0x9304ed(0x11a))/0x9+parseInt(_0x9304ed(0x12d))/0xa;if(_0x1883b2===_0x2af2ce)break;else _0x42c6c6['push'](_0x42c6c6['shift']());}catch(_0xa5e752){_0x42c6c6['push'](_0x42c6c6['shift']());}}}(a79_0x19af,0xcacb9));function a79_0x35ba(_0xa960,_0x576a59){_0xa960=_0xa960-0x110;const _0x19af03=a79_0x19af();let _0x35ba90=_0x19af03[_0xa960];return _0x35ba90;}function a79_0x19af(){const _0x2c4eea=['max','\x20\x20No\x20pages\x20to\x20sync.','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','13155VygdfP','length','Menu\x20Name','1334154lqoGIJ','push','290VxVThD','13513356CQkvva','\x20\x20Affected\x20menus:\x20','map','\x20\x20\x20\x20CSS:\x20','2261250aWUvvC','Platform','path','11295410cnacal','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','local','8hqmTHJ','19932BpnEqW','20NuDYqP','label','repeat','test','online','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','join','28502990ZjPgmf','\x20\x20\x20\x20JS:\x20\x20','(unchanged)'];a79_0x19af=function(){return _0x2c4eea;};return a79_0x19af();}function strWidth(_0x47aa0f){const _0x49e60d=a79_0x35ba;let _0x1d93b1=0x0;for(const _0x1b3f4c of _0x47aa0f){_0x1d93b1+=/[\u4e00-\u9fa5]/[_0x49e60d(0x129)](_0x1b3f4c)?0x2:0x1;}return _0x1d93b1;}function padRight(_0x46b892,_0x448563){const _0xd4cda6=a79_0x35ba,_0x3bba3c=strWidth(_0x46b892);return _0x46b892+'\x20'[_0xd4cda6(0x128)](Math['max'](0x0,_0x448563-_0x3bba3c));}export function renderCompareTable(_0x3aa4b7,_0x3b0ab7={}){const _0x88051b=a79_0x35ba;if(_0x3aa4b7[_0x88051b(0x115)]===0x0)return'';const _0x308365=_0x3b0ab7['showOnline']??!![],_0x1605b0=Math[_0x88051b(0x111)](0x1e,..._0x3aa4b7[_0x88051b(0x11c)](_0x36c6d8=>strWidth(_0x36c6d8['label']))),_0x2ec81f=0x4,_0x4abef1=[],_0x1149e5='\x20\x20'+padRight(_0x88051b(0x116),_0x1605b0),_0x1473d3=padRight('Local',_0x2ec81f),_0x586b4d=_0x308365?'\x20\x20'+padRight(_0x88051b(0x11f),_0x2ec81f):'';_0x4abef1[_0x88051b(0x118)](_0x1149e5+'\x20\x20'+_0x1473d3+(_0x308365?_0x586b4d:'')),_0x4abef1[_0x88051b(0x118)]('\x20\x20'+'─'[_0x88051b(0x128)](_0x1605b0)+'\x20\x20'+'─'[_0x88051b(0x128)](_0x2ec81f)+(_0x308365?'\x20\x20'+'─'[_0x88051b(0x128)](_0x2ec81f):''));for(const _0x391aa0 of _0x3aa4b7){const _0xfcd59c=padRight(_0x391aa0[_0x88051b(0x127)],_0x1605b0),_0x2e7092=_0x391aa0[_0x88051b(0x123)]?'✓':'✗',_0x30d147=padRight(_0x2e7092,_0x2ec81f);let _0x19857f='\x20\x20'+_0xfcd59c+'\x20\x20'+_0x30d147;if(_0x308365){const _0x546585=_0x391aa0[_0x88051b(0x12a)]?'✓':'✗';_0x19857f+='\x20\x20'+padRight(_0x546585,_0x2ec81f);}_0x4abef1[_0x88051b(0x118)](_0x19857f);}return _0x4abef1['join']('\x0a');}export function renderSyncSummary(_0x7e1369,_0x9fcc64){const _0xdda06d=a79_0x35ba;if(_0x7e1369[_0xdda06d(0x115)]===0x0)return _0x9fcc64?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0xdda06d(0x112);const _0x34f2a8=['\x20\x20'+_0x7e1369[_0xdda06d(0x115)]+_0xdda06d(0x12b)];for(const _0x270b33 of _0x7e1369){_0x34f2a8['push']('\x20\x20\x20\x20•\x20'+_0x270b33[_0xdda06d(0x127)]+'\x20('+_0x270b33[_0xdda06d(0x120)]+')');}return _0x34f2a8[_0xdda06d(0x12c)]('\x0a');}export function renderUpdateSummary(_0x393daf,_0x3206be){const _0x4a76c1=a79_0x35ba;if(_0x393daf[_0x4a76c1(0x115)]===0x0)return _0x4a76c1(0x122);const _0x1f64d2=['\x20\x20'+_0x393daf[_0x4a76c1(0x115)]+_0x4a76c1(0x113),_0x4a76c1(0x12e)+(_0x3206be[0x0]??'(unchanged)'),_0x4a76c1(0x11d)+(_0x3206be[0x1]??_0x4a76c1(0x110)),'',_0x4a76c1(0x11b)+_0x393daf[_0x4a76c1(0x12c)](',\x20')];return _0x1f64d2['join']('\x0a');}
1
+ function a79_0x335a(_0x362e68,_0x4dfdce){_0x362e68=_0x362e68-0xb7;const _0x1f416c=a79_0x1f41();let _0x335a2c=_0x1f416c[_0x362e68];return _0x335a2c;}(function(_0x13b74e,_0x47e2ee){const _0x3ade3a=a79_0x335a,_0x4b79b1=_0x13b74e();while(!![]){try{const _0x53d783=-parseInt(_0x3ade3a(0xc0))/0x1+parseInt(_0x3ade3a(0xcb))/0x2*(parseInt(_0x3ade3a(0xbd))/0x3)+parseInt(_0x3ade3a(0xbe))/0x4*(-parseInt(_0x3ade3a(0xb9))/0x5)+-parseInt(_0x3ade3a(0xc2))/0x6*(parseInt(_0x3ade3a(0xcd))/0x7)+parseInt(_0x3ade3a(0xc3))/0x8*(parseInt(_0x3ade3a(0xcc))/0x9)+parseInt(_0x3ade3a(0xb7))/0xa+parseInt(_0x3ade3a(0xb8))/0xb;if(_0x53d783===_0x47e2ee)break;else _0x4b79b1['push'](_0x4b79b1['shift']());}catch(_0x52dd34){_0x4b79b1['push'](_0x4b79b1['shift']());}}}(a79_0x1f41,0xce533));function strWidth(_0x4a545e){const _0x360924=a79_0x335a;let _0x598de6=0x0;for(const _0x32e66e of _0x4a545e){_0x598de6+=/[\u4e00-\u9fa5]/[_0x360924(0xce)](_0x32e66e)?0x2:0x1;}return _0x598de6;}function padRight(_0x29fe5b,_0x328b0f){const _0x1fa282=a79_0x335a,_0x57054b=strWidth(_0x29fe5b);return _0x29fe5b+'\x20'[_0x1fa282(0xba)](Math[_0x1fa282(0xd2)](0x0,_0x328b0f-_0x57054b));}export function renderCompareTable(_0x25f271,_0x107235={}){const _0x25e4d0=a79_0x335a;if(_0x25f271[_0x25e4d0(0xd0)]===0x0)return'';const _0x320810=_0x107235[_0x25e4d0(0xbc)]??!![],_0x2038b5=Math['max'](0x1e,..._0x25f271['map'](_0x2d6bbe=>strWidth(_0x2d6bbe[_0x25e4d0(0xd3)]))),_0xc37b79=0x4,_0x4959a0=[],_0x38e305='\x20\x20'+padRight(_0x25e4d0(0xc7),_0x2038b5),_0x3e5722=padRight('Local',_0xc37b79),_0x117e9b=_0x320810?'\x20\x20'+padRight(_0x25e4d0(0xc8),_0xc37b79):'';_0x4959a0['push'](_0x38e305+'\x20\x20'+_0x3e5722+(_0x320810?_0x117e9b:'')),_0x4959a0[_0x25e4d0(0xc1)]('\x20\x20'+'─'[_0x25e4d0(0xba)](_0x2038b5)+'\x20\x20'+'─'[_0x25e4d0(0xba)](_0xc37b79)+(_0x320810?'\x20\x20'+'─'[_0x25e4d0(0xba)](_0xc37b79):''));for(const _0x10fdb0 of _0x25f271){const _0xccf5ec=padRight(_0x10fdb0[_0x25e4d0(0xd3)],_0x2038b5),_0x4f5754=_0x10fdb0[_0x25e4d0(0xc9)]?'✓':'✗',_0x132d60=padRight(_0x4f5754,_0xc37b79);let _0x261019='\x20\x20'+_0xccf5ec+'\x20\x20'+_0x132d60;if(_0x320810){const _0x3314e6=_0x10fdb0[_0x25e4d0(0xbb)]?'✓':'✗';_0x261019+='\x20\x20'+padRight(_0x3314e6,_0xc37b79);}_0x4959a0[_0x25e4d0(0xc1)](_0x261019);}return _0x4959a0[_0x25e4d0(0xc6)]('\x0a');}export function renderSyncSummary(_0x653c5d,_0x2f2fa2){const _0x38c199=a79_0x335a;if(_0x653c5d[_0x38c199(0xd0)]===0x0)return _0x2f2fa2?_0x38c199(0xc5):_0x38c199(0xd1);const _0x1fab52=['\x20\x20'+_0x653c5d[_0x38c199(0xd0)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x49b657 of _0x653c5d){_0x1fab52[_0x38c199(0xc1)]('\x20\x20\x20\x20•\x20'+_0x49b657[_0x38c199(0xd3)]+'\x20('+_0x49b657[_0x38c199(0xca)]+')');}return _0x1fab52['join']('\x0a');}function a79_0x1f41(){const _0x4f390d=['6nVSbaK','4576rXcFzV','\x20\x20Affected\x20menus:\x20','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','join','Menu\x20Name','Platform','local','path','20WsKrPW','5823xegACF','11343017HJrfiL','test','\x20\x20\x20\x20CSS:\x20','length','\x20\x20No\x20pages\x20to\x20sync.','max','label','2773860aiijYU','32903222HbMBPb','20QSkJsX','repeat','online','showOnline','54675vRDOgm','1333004hOgARB','\x20\x20\x20\x20JS:\x20\x20','22380HBmGDT','push'];a79_0x1f41=function(){return _0x4f390d;};return a79_0x1f41();}export function renderUpdateSummary(_0x14c1d0,_0x318414){const _0xcef31=a79_0x335a;if(_0x14c1d0['length']===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x1d1d44=['\x20\x20'+_0x14c1d0[_0xcef31(0xd0)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0xcef31(0xbf)+(_0x318414[0x0]??'(unchanged)'),_0xcef31(0xcf)+(_0x318414[0x1]??'(unchanged)'),'',_0xcef31(0xc4)+_0x14c1d0[_0xcef31(0xc6)](',\x20')];return _0x1d1d44[_0xcef31(0xc6)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x3af48b,_0x5cd5c0){var _0x3debc8=a80_0x230d,_0x1c3a91=_0x3af48b();while(!![]){try{var _0x2056a1=-parseInt(_0x3debc8(0xab))/0x1*(-parseInt(_0x3debc8(0xaf))/0x2)+-parseInt(_0x3debc8(0xa9))/0x3+parseInt(_0x3debc8(0xa8))/0x4*(-parseInt(_0x3debc8(0xa7))/0x5)+-parseInt(_0x3debc8(0xad))/0x6*(parseInt(_0x3debc8(0xaa))/0x7)+parseInt(_0x3debc8(0xac))/0x8+-parseInt(_0x3debc8(0xa6))/0x9*(parseInt(_0x3debc8(0xae))/0xa)+parseInt(_0x3debc8(0xb0))/0xb;if(_0x2056a1===_0x5cd5c0)break;else _0x1c3a91['push'](_0x1c3a91['shift']());}catch(_0x38059d){_0x1c3a91['push'](_0x1c3a91['shift']());}}}(a80_0x40b5,0xbf5a3));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';function a80_0x230d(_0x2d6a3e,_0x552734){_0x2d6a3e=_0x2d6a3e-0xa6;var _0x40b59f=a80_0x40b5();var _0x230d4d=_0x40b59f[_0x2d6a3e];return _0x230d4d;}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';function a80_0x40b5(){var _0x50f72d=['1395783aEhHTA','697039dFmjDS','13pkYKlk','6849704tWFEne','6CrAPSS','10cPziNi','77174JZigdU','8252673bEiaOw','564687IUHNba','5NutqKV','2786908lSYXas'];a80_0x40b5=function(){return _0x50f72d;};return a80_0x40b5();}export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x3ce8a1,_0x2c96ec){var _0x3197cb=a80_0x4bd8,_0x252c17=_0x3ce8a1();while(!![]){try{var _0x4b201b=-parseInt(_0x3197cb(0x1f8))/0x1*(parseInt(_0x3197cb(0x1f6))/0x2)+-parseInt(_0x3197cb(0x1fc))/0x3+parseInt(_0x3197cb(0x1fe))/0x4*(-parseInt(_0x3197cb(0x1f7))/0x5)+parseInt(_0x3197cb(0x1f9))/0x6*(-parseInt(_0x3197cb(0x1fd))/0x7)+-parseInt(_0x3197cb(0x1fa))/0x8*(parseInt(_0x3197cb(0x1f5))/0x9)+-parseInt(_0x3197cb(0x1f3))/0xa*(parseInt(_0x3197cb(0x1ff))/0xb)+-parseInt(_0x3197cb(0x1f4))/0xc*(-parseInt(_0x3197cb(0x1fb))/0xd);if(_0x4b201b===_0x2c96ec)break;else _0x252c17['push'](_0x252c17['shift']());}catch(_0x4f21db){_0x252c17['push'](_0x252c17['shift']());}}}(a80_0x1c4e,0xcd393));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';function a80_0x4bd8(_0x4d14eb,_0x348d40){_0x4d14eb=_0x4d14eb-0x1f3;var _0x1c4ee5=a80_0x1c4e();var _0x4bd86d=_0x1c4ee5[_0x4d14eb];return _0x4bd86d;}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';function a80_0x1c4e(){var _0x24067c=['46zzlPdY','99345XCXejK','15479LEAAIT','6nIUTCC','1258760OPPIkE','13195NLpvIs','2751522eUuhRg','6270593XCntzN','164UPSfRW','1837ipRvQU','28030pyDkpI','61908TzuIIE','54txQzlC'];a80_0x1c4e=function(){return _0x24067c;};return a80_0x1c4e();}
@@ -1 +1 @@
1
- (function(_0x33151b,_0x26188a){const _0x583cc7=a81_0x48a8,_0x5503ab=_0x33151b();while(!![]){try{const _0x2d4d4a=parseInt(_0x583cc7(0x1d1))/0x1+parseInt(_0x583cc7(0x1ef))/0x2*(-parseInt(_0x583cc7(0x1e3))/0x3)+parseInt(_0x583cc7(0x1e9))/0x4*(-parseInt(_0x583cc7(0x1f0))/0x5)+parseInt(_0x583cc7(0x1d4))/0x6*(parseInt(_0x583cc7(0x1d5))/0x7)+-parseInt(_0x583cc7(0x1ed))/0x8+parseInt(_0x583cc7(0x1d6))/0x9+parseInt(_0x583cc7(0x1e4))/0xa;if(_0x2d4d4a===_0x26188a)break;else _0x5503ab['push'](_0x5503ab['shift']());}catch(_0x5ea66d){_0x5503ab['push'](_0x5503ab['shift']());}}}(a81_0x5772,0x3ea84));import a81_0x248b15 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a81_0x55d52a from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x54e613){const _0x57e88b=a81_0x48a8;return _0x54e613[_0x57e88b(0x1db)](_0x31c8ac=>{const _0x59f24a=_0x57e88b;if(_0x31c8ac?.[_0x59f24a(0x1d9)]===_0x59f24a(0x1ce))throw CliErrors[_0x59f24a(0x1ee)](_0x59f24a(0x1e8));throw _0x31c8ac;});}export function startSpinner(_0xc401e0){const _0x583d23=a81_0x48a8;return a81_0x55d52a({'text':_0xc401e0,'color':'cyan'})[_0x583d23(0x1e6)]();}function a81_0x48a8(_0x1963ac,_0x4dc8cc){_0x1963ac=_0x1963ac-0x1cb;const _0x5772f6=a81_0x5772();let _0x48a8af=_0x5772f6[_0x1963ac];return _0x48a8af;}export function stopSpinner(_0xc3f239,_0x2a5602,_0x4d997e){const _0x2eb8fe=a81_0x48a8;_0x4d997e?_0xc3f239[_0x2eb8fe(0x1d7)](_0x2a5602):_0xc3f239['fail'](_0x2a5602);}export async function askConfirm(_0x241882){return onCancel(confirm({'message':_0x241882,'theme':{'prefix':''}}));}export async function askJsUrl(_0x497808){const _0x167934=a81_0x48a8;while(!![]){const _0x2540e6=await onCancel(input({'message':_0x167934(0x1f6),'default':_0x497808,'theme':{'prefix':''}}));if(_0x2540e6[_0x167934(0x1e5)]()==='')throw CliErrors[_0x167934(0x1ee)](_0x167934(0x1e8));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x167934(0x1ea)](_0x2540e6[_0x167934(0x1e5)]())){console['error'](a81_0x248b15['red'](_0x167934(0x1cf)));continue;}const _0x5b90d1=startSpinner(_0x167934(0x1f5));try{const _0x2466f6=await isUrlReachable(_0x2540e6[_0x167934(0x1e5)]());stopSpinner(_0x5b90d1,_0x167934(0x1d0),_0x2466f6);if(!_0x2466f6){console[_0x167934(0x1f3)](a81_0x248b15[_0x167934(0x1e0)](_0x167934(0x1f1)));continue;}return _0x2540e6[_0x167934(0x1e5)]();}catch(_0x63f302){stopSpinner(_0x5b90d1,_0x167934(0x1f8),![]);throw _0x63f302;}}}export async function askCssUrl(_0xcf0ccb){const _0x1627f8=a81_0x48a8;while(!![]){const _0x3d96a5=await onCancel(input({'message':_0x1627f8(0x1f4),'default':_0xcf0ccb,'theme':{'prefix':''}}));if(_0x3d96a5[_0x1627f8(0x1e5)]()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x1627f8(0x1ea)](_0x3d96a5['trim']())){console[_0x1627f8(0x1f3)](a81_0x248b15[_0x1627f8(0x1e0)](_0x1627f8(0x1cb)));continue;}const _0xc15540=startSpinner(_0x1627f8(0x1de));try{const _0x33ec3=await isUrlReachable(_0x3d96a5['trim']());stopSpinner(_0xc15540,_0x1627f8(0x1cd),_0x33ec3);if(!_0x33ec3){console[_0x1627f8(0x1f3)](a81_0x248b15[_0x1627f8(0x1e0)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x3d96a5['trim']();}catch(_0x5c308e){stopSpinner(_0xc15540,_0x1627f8(0x1e2),![]);throw _0x5c308e;}}}export async function selectPages(_0x8f67f3,_0x203e78,_0x3d46c0){const _0x116c4a=a81_0x48a8,_0x2bec64=_0x8f67f3[_0x116c4a(0x1dc)](_0x5019d7=>({'name':_0x5019d7[_0x116c4a(0x1dd)]+'\x20\x20'+(_0x203e78['has'](_0x5019d7[_0x116c4a(0x1d3)])?a81_0x248b15[_0x116c4a(0x1d8)]('[already\x20on\x20platform]'):a81_0x248b15[_0x116c4a(0x1d2)](_0x116c4a(0x1eb))),'value':_0x5019d7[_0x116c4a(0x1dd)],'checked':_0x3d46c0?_0x3d46c0[_0x116c4a(0x1ec)](_0x5019d7['label']):!_0x203e78[_0x116c4a(0x1f7)](_0x5019d7[_0x116c4a(0x1d3)])}));if(_0x2bec64[_0x116c4a(0x1e1)]===0x0)throw new Error(_0x116c4a(0x1df));const _0xd48c84=await onCancel(checkbox({'message':_0x116c4a(0x1f2),'choices':_0x2bec64,'loop':![],'theme':{'prefix':''}}));if(_0xd48c84[_0x116c4a(0x1e1)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x8f67f3['filter'](_0x17e450=>_0xd48c84[_0x116c4a(0x1ec)](_0x17e450['label']));}function a81_0x5772(){const _0xecca2=['\x20\x20Checking\x20CSS\x20URL\x20reachability...','No\x20local\x20pages\x20found.','red','length','CSS\x20URL\x20check\x20failed','165BFlMnv','4189880czGZPQ','trim','start','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','Cancelled.','975452BgHQDj','test','[new]','includes','2111384acadne','cancelled','6350rRqlIa','5BRbpIJ','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','error','\x20\x20CSS\x20URL:','\x20\x20Checking\x20JS\x20URL\x20reachability...','\x20\x20JS\x20URL:','has','JS\x20URL\x20check\x20failed','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','stdin','CSS\x20URL\x20checked','ExitPromptError','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','JS\x20URL\x20checked','134946EgeUzo','green','path','48BSTRIb','333088WUiOBk','40041ReoCPh','succeed','gray','name','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','catch','map','label'];a81_0x5772=function(){return _0xecca2;};return a81_0x5772();}export function isInteractive(){const _0x49f094=a81_0x48a8;return process[_0x49f094(0x1cc)]['isTTY']===!![];}export function requireInteractive(){const _0x19c189=a81_0x48a8;if(!isInteractive())throw new Error(_0x19c189(0x1da)+_0x19c189(0x1e7));}
1
+ (function(_0x1917bf,_0x2f11df){const _0x48ab14=a81_0x5473,_0x5b0a64=_0x1917bf();while(!![]){try{const _0x5f305c=-parseInt(_0x48ab14(0x20b))/0x1+parseInt(_0x48ab14(0x204))/0x2+-parseInt(_0x48ab14(0x1fd))/0x3+parseInt(_0x48ab14(0x1f2))/0x4+-parseInt(_0x48ab14(0x1e3))/0x5+parseInt(_0x48ab14(0x1fe))/0x6*(parseInt(_0x48ab14(0x1e8))/0x7)+parseInt(_0x48ab14(0x208))/0x8*(parseInt(_0x48ab14(0x1e9))/0x9);if(_0x5f305c===_0x2f11df)break;else _0x5b0a64['push'](_0x5b0a64['shift']());}catch(_0x1167b6){_0x5b0a64['push'](_0x5b0a64['shift']());}}}(a81_0x29fa,0xdc603));import a81_0x40730e from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a81_0x731b6e from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x5931df){const _0x55634b=a81_0x5473;return _0x5931df[_0x55634b(0x207)](_0x126d10=>{const _0x547fcf=_0x55634b;if(_0x126d10?.['name']===_0x547fcf(0x1fb))throw CliErrors['cancelled'](_0x547fcf(0x20a));throw _0x126d10;});}export function startSpinner(_0x75e9a0){const _0x55c3c1=a81_0x5473;return a81_0x731b6e({'text':_0x75e9a0,'color':_0x55c3c1(0x202)})[_0x55c3c1(0x1e5)]();}export function stopSpinner(_0x332fbe,_0x33c02e,_0x53690b){const _0x44e278=a81_0x5473;_0x53690b?_0x332fbe[_0x44e278(0x1f7)](_0x33c02e):_0x332fbe[_0x44e278(0x1f9)](_0x33c02e);}export async function askConfirm(_0x58dd20){return onCancel(confirm({'message':_0x58dd20,'theme':{'prefix':''}}));}export async function askJsUrl(_0x58c66c){const _0x3c472e=a81_0x5473;while(!![]){const _0xac2688=await onCancel(input({'message':_0x3c472e(0x206),'default':_0x58c66c,'theme':{'prefix':''}}));if(_0xac2688[_0x3c472e(0x1e4)]()==='')throw CliErrors[_0x3c472e(0x1e2)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x3c472e(0x1fc)](_0xac2688[_0x3c472e(0x1e4)]())){console[_0x3c472e(0x1eb)](a81_0x40730e[_0x3c472e(0x1ea)](_0x3c472e(0x1f8)));continue;}const _0x56e1e3=startSpinner(_0x3c472e(0x1f3));try{const _0x1812b6=await isUrlReachable(_0xac2688['trim']());stopSpinner(_0x56e1e3,_0x3c472e(0x1f5),_0x1812b6);if(!_0x1812b6){console['error'](a81_0x40730e['red']('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0xac2688['trim']();}catch(_0x41c16){stopSpinner(_0x56e1e3,'JS\x20URL\x20check\x20failed',![]);throw _0x41c16;}}}export async function askCssUrl(_0xc0dc91){const _0x40d2aa=a81_0x5473;while(!![]){const _0x209da0=await onCancel(input({'message':_0x40d2aa(0x1f6),'default':_0xc0dc91,'theme':{'prefix':''}}));if(_0x209da0[_0x40d2aa(0x1e4)]()==='')throw CliErrors[_0x40d2aa(0x1e2)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x40d2aa(0x1fc)](_0x209da0['trim']())){console[_0x40d2aa(0x1eb)](a81_0x40730e[_0x40d2aa(0x1ea)](_0x40d2aa(0x20c)));continue;}const _0xdae461=startSpinner(_0x40d2aa(0x1f4));try{const _0x42a086=await isUrlReachable(_0x209da0[_0x40d2aa(0x1e4)]());stopSpinner(_0xdae461,'CSS\x20URL\x20checked',_0x42a086);if(!_0x42a086){console[_0x40d2aa(0x1eb)](a81_0x40730e['red'](_0x40d2aa(0x205)));continue;}return _0x209da0['trim']();}catch(_0x337baa){stopSpinner(_0xdae461,_0x40d2aa(0x201),![]);throw _0x337baa;}}}function a81_0x5473(_0x316b90,_0x5b0e77){_0x316b90=_0x316b90-0x1df;const _0x29fa5d=a81_0x29fa();let _0x5473ab=_0x29fa5d[_0x316b90];return _0x5473ab;}export async function selectPages(_0x487a02,_0x28aede,_0x24c121){const _0x32dac1=a81_0x5473,_0x41d50b=_0x487a02[_0x32dac1(0x1ed)](_0x250562=>({'name':_0x250562[_0x32dac1(0x209)]+'\x20\x20'+(_0x28aede[_0x32dac1(0x200)](_0x250562['path'])?a81_0x40730e[_0x32dac1(0x1e1)](_0x32dac1(0x1fa)):a81_0x40730e[_0x32dac1(0x203)](_0x32dac1(0x1ef))),'value':_0x250562['label'],'checked':_0x24c121?_0x24c121[_0x32dac1(0x1e6)](_0x250562[_0x32dac1(0x209)]):!_0x28aede[_0x32dac1(0x200)](_0x250562[_0x32dac1(0x1f1)])}));if(_0x41d50b[_0x32dac1(0x1ec)]===0x0)throw new Error(_0x32dac1(0x1ee));const _0x401e24=await onCancel(checkbox({'message':_0x32dac1(0x1ff),'choices':_0x41d50b,'loop':![],'theme':{'prefix':''}}));if(_0x401e24[_0x32dac1(0x1ec)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x487a02[_0x32dac1(0x1df)](_0x4a9a41=>_0x401e24['includes'](_0x4a9a41[_0x32dac1(0x209)]));}export function isInteractive(){const _0x171fef=a81_0x5473;return process[_0x171fef(0x1f0)][_0x171fef(0x1e0)]===!![];}export function requireInteractive(){const _0x199cef=a81_0x5473;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x199cef(0x1e7));}function a81_0x29fa(){const _0x5b39d7=['has','CSS\x20URL\x20check\x20failed','cyan','green','3084094ocKdTx','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20JS\x20URL:','catch','8foYXiK','label','Cancelled.','1246019BwZiUt','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','filter','isTTY','gray','cancelled','8811975UogeSi','trim','start','includes','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','49eTHbId','6887547UEzyRp','red','error','length','map','No\x20local\x20pages\x20found.','[new]','stdin','path','6590076SadbMv','\x20\x20Checking\x20JS\x20URL\x20reachability...','\x20\x20Checking\x20CSS\x20URL\x20reachability...','JS\x20URL\x20checked','\x20\x20CSS\x20URL:','succeed','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','fail','[already\x20on\x20platform]','ExitPromptError','test','204219TJLZVY','20826XEMBEI','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):'];a81_0x29fa=function(){return _0x5b39d7;};return a81_0x29fa();}
@@ -1 +1 @@
1
- function a82_0x1d64(_0x51ed6f,_0x2797d8){_0x51ed6f=_0x51ed6f-0x1e2;const _0x4457d1=a82_0x4457();let _0x1d645c=_0x4457d1[_0x51ed6f];return _0x1d645c;}const a82_0x3ae9e4=a82_0x1d64;(function(_0x1eab2e,_0x1f6a69){const _0x23cd3a=a82_0x1d64,_0x52f15f=_0x1eab2e();while(!![]){try{const _0x1a5eae=parseInt(_0x23cd3a(0x1e9))/0x1*(parseInt(_0x23cd3a(0x1e5))/0x2)+-parseInt(_0x23cd3a(0x1f5))/0x3*(parseInt(_0x23cd3a(0x1fb))/0x4)+parseInt(_0x23cd3a(0x1f0))/0x5*(parseInt(_0x23cd3a(0x1ec))/0x6)+-parseInt(_0x23cd3a(0x1fa))/0x7*(-parseInt(_0x23cd3a(0x1fd))/0x8)+-parseInt(_0x23cd3a(0x1e3))/0x9+-parseInt(_0x23cd3a(0x1ef))/0xa*(parseInt(_0x23cd3a(0x1e7))/0xb)+parseInt(_0x23cd3a(0x1f1))/0xc;if(_0x1a5eae===_0x1f6a69)break;else _0x52f15f['push'](_0x52f15f['shift']());}catch(_0x1d185b){_0x52f15f['push'](_0x52f15f['shift']());}}}(a82_0x4457,0xb5540));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a82_0x3ae9e4(0x1ee));export function extractTitleFromComment(_0x120a46){const _0x1f0d92=a82_0x3ae9e4;try{const _0x3ba3ac=readFileSync(_0x120a46,_0x1f0d92(0x1f7)),_0x3f1b53=_0x3ba3ac[_0x1f0d92(0x1e8)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x3f1b53&&_0x3f1b53[0x1]){const _0x52e3ff=_0x3f1b53[0x1],_0x410d51=_0x52e3ff[_0x1f0d92(0x1e8)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x410d51&&_0x410d51[0x1])return _0x410d51[0x1]['trim']();}let _0x17c0ce=null;const _0x1bb31e=_0x3ba3ac[_0x1f0d92(0x1e8)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x1bb31e&&_0x1bb31e[0x1]&&(_0x17c0ce=_0x1bb31e[0x1]);if(!_0x17c0ce){const _0x52ba6e=_0x3ba3ac[_0x1f0d92(0x1e8)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x52ba6e&&_0x52ba6e[0x1]&&(_0x17c0ce=_0x52ba6e[0x1]);}if(_0x17c0ce){const _0x20e6a7=new RegExp('\x5cb'+_0x17c0ce+_0x1f0d92(0x1f8)),_0x34204d=_0x3ba3ac[_0x1f0d92(0x1e8)](_0x20e6a7);if(_0x34204d&&_0x34204d[0x1])return _0x34204d[0x1];return _0x17c0ce;}return null;}catch(_0x43d2e1){return null;}}export function getLocalPages(_0x3fce54=pagesDir,_0x4bf4f3=pagesDir){const _0x1fbc79=a82_0x3ae9e4;let _0x1d2bf9=[];const _0x245634=readdirSync(_0x3fce54);return _0x245634[_0x1fbc79(0x1e6)](_0x8dc930=>{const _0x2bee76=_0x1fbc79,_0x1f56cf=join(_0x3fce54,_0x8dc930),_0x2e6717=statSync(_0x1f56cf);if(_0x2e6717&&_0x2e6717[_0x2bee76(0x1f2)]())_0x1d2bf9=_0x1d2bf9[_0x2bee76(0x1f6)](getLocalPages(_0x1f56cf,_0x4bf4f3));else{if(_0x8dc930[_0x2bee76(0x1fc)](_0x2bee76(0x1e4))){let _0x13a0d3=relative(_0x4bf4f3,_0x1f56cf);_0x13a0d3[_0x2bee76(0x1fc)](_0x2bee76(0x1e2))?_0x13a0d3=_0x13a0d3[_0x2bee76(0x1ed)](/index\.tsx$/,''):_0x13a0d3=_0x13a0d3[_0x2bee76(0x1ed)](/\.tsx$/,'');_0x13a0d3['endsWith'](sep)&&(_0x13a0d3=_0x13a0d3[_0x2bee76(0x1f3)](0x0,-0x1));const _0x383313=_0x13a0d3[_0x2bee76(0x1eb)](sep)[_0x2bee76(0x1f9)]('/'),_0x321313=extractTitleFromComment(_0x1f56cf),_0x128576=_0x321313||_0x383313;_0x1d2bf9[_0x2bee76(0x1ea)]({'path':_0x383313['replaceAll']('$',':'),'label':_0x128576});}}}),_0x1d2bf9[_0x1fbc79(0x1f4)](_0x4aa349=>_0x4aa349['path']!=='');}function a82_0x4457(){const _0x31c692=['2999700szwPNY','.tsx','182218yYnEck','forEach','209rFrmzS','match','5RtNcSg','push','split','4001766zNFUhi','replace','src/pages','189480YMLlIB','5foqhTg','2220084kdmnXc','isDirectory','slice','filter','18JAGGTw','concat','utf-8','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','join','49ZNqhAy','411988IbOrNv','endsWith','853144cSEAla','index.tsx'];a82_0x4457=function(){return _0x31c692;};return a82_0x4457();}
1
+ const a82_0x2bb51a=a82_0x50f4;function a82_0x5580(){const _0x85e037=['258065eWKcCk','match','4176654ztvirV','concat','1150859XMNZIK','4063344lnShzD','src/pages','path','isDirectory','7509933SbyNJe','56tGzajv','filter','replaceAll','887678vxlRTL','endsWith','replace','1712943RyBtEr','join','trim','.tsx','7fWzHzb','cwd','forEach'];a82_0x5580=function(){return _0x85e037;};return a82_0x5580();}(function(_0x1e3b14,_0xa3a177){const _0x499492=a82_0x50f4,_0x14cebd=_0x1e3b14();while(!![]){try{const _0x52930d=parseInt(_0x499492(0x18d))/0x1+parseInt(_0x499492(0x17f))/0x2+-parseInt(_0x499492(0x182))/0x3+-parseInt(_0x499492(0x193))/0x4*(-parseInt(_0x499492(0x189))/0x5)+-parseInt(_0x499492(0x18b))/0x6*(parseInt(_0x499492(0x186))/0x7)+parseInt(_0x499492(0x18e))/0x8+-parseInt(_0x499492(0x192))/0x9;if(_0x52930d===_0xa3a177)break;else _0x14cebd['push'](_0x14cebd['shift']());}catch(_0x2e7512){_0x14cebd['push'](_0x14cebd['shift']());}}}(a82_0x5580,0xb0ad7));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';function a82_0x50f4(_0x5b01ea,_0x24f496){_0x5b01ea=_0x5b01ea-0x17d;const _0x55800b=a82_0x5580();let _0x50f4b2=_0x55800b[_0x5b01ea];return _0x50f4b2;}const pagesDir=resolve(process[a82_0x2bb51a(0x187)](),a82_0x2bb51a(0x18f));export function extractTitleFromComment(_0x38aaa0){const _0x3d4b15=a82_0x2bb51a;try{const _0x3680a5=readFileSync(_0x38aaa0,'utf-8'),_0x40275a=_0x3680a5[_0x3d4b15(0x18a)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x40275a&&_0x40275a[0x1]){const _0x34a214=_0x40275a[0x1],_0x38b23f=_0x34a214[_0x3d4b15(0x18a)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x38b23f&&_0x38b23f[0x1])return _0x38b23f[0x1][_0x3d4b15(0x184)]();}let _0x1c4498=null;const _0x2b8bb4=_0x3680a5[_0x3d4b15(0x18a)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x2b8bb4&&_0x2b8bb4[0x1]&&(_0x1c4498=_0x2b8bb4[0x1]);if(!_0x1c4498){const _0x372452=_0x3680a5[_0x3d4b15(0x18a)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x372452&&_0x372452[0x1]&&(_0x1c4498=_0x372452[0x1]);}if(_0x1c4498){const _0x4c3d19=new RegExp('\x5cb'+_0x1c4498+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x120460=_0x3680a5['match'](_0x4c3d19);if(_0x120460&&_0x120460[0x1])return _0x120460[0x1];return _0x1c4498;}return null;}catch(_0xf2f5d6){return null;}}export function getLocalPages(_0x5e228a=pagesDir,_0x302433=pagesDir){const _0x12d9c7=a82_0x2bb51a;let _0x1e3524=[];const _0xc224a2=readdirSync(_0x5e228a);return _0xc224a2[_0x12d9c7(0x188)](_0x49db08=>{const _0x420ae8=_0x12d9c7,_0x13d991=join(_0x5e228a,_0x49db08),_0x5e26c5=statSync(_0x13d991);if(_0x5e26c5&&_0x5e26c5[_0x420ae8(0x191)]())_0x1e3524=_0x1e3524[_0x420ae8(0x18c)](getLocalPages(_0x13d991,_0x302433));else{if(_0x49db08[_0x420ae8(0x180)](_0x420ae8(0x185))){let _0x202100=relative(_0x302433,_0x13d991);_0x202100[_0x420ae8(0x180)]('index.tsx')?_0x202100=_0x202100[_0x420ae8(0x181)](/index\.tsx$/,''):_0x202100=_0x202100[_0x420ae8(0x181)](/\.tsx$/,'');_0x202100['endsWith'](sep)&&(_0x202100=_0x202100['slice'](0x0,-0x1));const _0x540b5c=_0x202100['split'](sep)[_0x420ae8(0x183)]('/'),_0x3cf44f=extractTitleFromComment(_0x13d991),_0x15cdbc=_0x3cf44f||_0x540b5c;_0x1e3524['push']({'path':_0x540b5c[_0x420ae8(0x17e)]('$',':'),'label':_0x15cdbc});}}}),_0x1e3524[_0x12d9c7(0x17d)](_0x3482b2=>_0x3482b2[_0x12d9c7(0x190)]!=='');}
@@ -1 +1 @@
1
- (function(_0x3259a8,_0x2efbe6){const _0x2aa03e=a83_0x501f,_0x2773fb=_0x3259a8();while(!![]){try{const _0x1a0d97=parseInt(_0x2aa03e(0x76))/0x1*(parseInt(_0x2aa03e(0x6f))/0x2)+parseInt(_0x2aa03e(0x75))/0x3*(-parseInt(_0x2aa03e(0x80))/0x4)+parseInt(_0x2aa03e(0x7c))/0x5*(-parseInt(_0x2aa03e(0x78))/0x6)+-parseInt(_0x2aa03e(0x85))/0x7+-parseInt(_0x2aa03e(0x70))/0x8+parseInt(_0x2aa03e(0x82))/0x9+-parseInt(_0x2aa03e(0x7a))/0xa*(-parseInt(_0x2aa03e(0x7d))/0xb);if(_0x1a0d97===_0x2efbe6)break;else _0x2773fb['push'](_0x2773fb['shift']());}catch(_0x5b0fa6){_0x2773fb['push'](_0x2773fb['shift']());}}}(a83_0x3340,0xb89e4));function a83_0x501f(_0x12d989,_0x256de4){_0x12d989=_0x12d989-0x6a;const _0x3340b0=a83_0x3340();let _0x501fc3=_0x3340b0[_0x12d989];return _0x501fc3;}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(_0x5dd8e4){const _0x48ca08=a83_0x501f,_0x1d1740=[];return!isValidJsHttpsUrl(_0x5dd8e4)&&_0x1d1740[_0x48ca08(0x86)]('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x1d1740[_0x48ca08(0x81)]===0x0,'errors':_0x1d1740};}function a83_0x3340(){const _0x4ef4bf=['66QzKSQs','11840832madoBW','value','No\x20local\x20pages\x20matched\x20labels:\x20','filter','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','2433BbPuYr','10882LbCiWF','has','84lZIEjh','trim','320pfSGlW','CSS\x20URL\x20is\x20unreachable','403230dkNVZQ','1151392ThrRiy','label','errors','4348vxJSNx','length','11911536XGNNcl','path','status','5496491XQhVTl','push','resources','allSettled','JS\x20URL\x20is\x20unreachable','map','find'];a83_0x3340=function(){return _0x4ef4bf;};return a83_0x3340();}export function validateCssUrl(_0x2bcea5){const _0x5a9184=a83_0x501f,_0x2ac63b=[];return!isValidCssHttpsUrl(_0x2bcea5)&&_0x2ac63b[_0x5a9184(0x86)](_0x5a9184(0x74)),{'ok':_0x2ac63b[_0x5a9184(0x81)]===0x0,'errors':_0x2ac63b};}export async function validateJsUrlReachable(_0x4f3237){const _0x1e37a2=a83_0x501f,_0x16a13d=validateJsUrl(_0x4f3237);if(!_0x16a13d['ok'])return _0x16a13d;const _0x4386a9=await isUrlReachable(_0x4f3237);if(!_0x4386a9)_0x16a13d[_0x1e37a2(0x7f)][_0x1e37a2(0x86)](_0x1e37a2(0x6c));return{'ok':_0x16a13d[_0x1e37a2(0x7f)]['length']===0x0,'errors':_0x16a13d[_0x1e37a2(0x7f)]};}export async function validateCssUrlReachable(_0x3d2628){const _0x23fbfc=a83_0x501f,_0x4cc53d=validateCssUrl(_0x3d2628);if(!_0x4cc53d['ok'])return _0x4cc53d;const _0x4f5b94=await isUrlReachable(_0x3d2628);if(!_0x4f5b94)_0x4cc53d[_0x23fbfc(0x7f)][_0x23fbfc(0x86)](_0x23fbfc(0x7b));return{'ok':_0x4cc53d['errors'][_0x23fbfc(0x81)]===0x0,'errors':_0x4cc53d['errors']};}export function buildCompareRows(_0xe92afe,_0x197667){const _0x400f4c=a83_0x501f;return _0xe92afe['map'](_0x1bfd19=>({'label':_0x1bfd19[_0x400f4c(0x7e)],'path':_0x1bfd19[_0x400f4c(0x83)],'local':!![],'online':_0x197667[_0x400f4c(0x77)](_0x1bfd19[_0x400f4c(0x83)])}));}export function filterNewPages(_0x550573,_0x4dc46c,_0x4e770a){const _0x14a215=a83_0x501f;if(_0x4e770a&&_0x4e770a[_0x14a215(0x81)]>0x0){const _0x4f5034=new Set(_0x4e770a[_0x14a215(0x6d)](_0x56130b=>_0x56130b[_0x14a215(0x79)]())),_0x12624d=_0x550573['filter'](_0x208dbe=>_0x4f5034[_0x14a215(0x77)](_0x208dbe[_0x14a215(0x7e)]));if(_0x12624d[_0x14a215(0x81)]===0x0)throw new Error(_0x14a215(0x72)+[..._0x4f5034]['join'](',\x20'));return _0x12624d;}return _0x550573[_0x14a215(0x73)](_0x47cf59=>!_0x4dc46c[_0x14a215(0x77)](_0x47cf59[_0x14a215(0x83)]));}export function filterPagesByLabels(_0x2c5ef0,_0xfade77){const _0x5af43e=a83_0x501f,_0x1fb367=[],_0x1d0604=[];for(const _0x33e839 of _0xfade77){const _0x3f9bd4=_0x33e839[_0x5af43e(0x79)](),_0x404ae8=_0x2c5ef0[_0x5af43e(0x6e)](_0x191419=>_0x191419[_0x5af43e(0x7e)]===_0x3f9bd4);if(_0x404ae8)_0x1fb367[_0x5af43e(0x86)](_0x404ae8);else _0x1d0604['push'](_0x33e839);}return{'matched':_0x1fb367,'unmatched':_0x1d0604};}export async function doCreateMenus(_0x47a77b,_0x433a6f,_0x4c7592,_0x2c8ad4){const _0x2bb3fa=a83_0x501f,_0x3ddd49=await createMenus(_0x47a77b,_0x433a6f,_0x4c7592,_0x2c8ad4);return{'created':_0x3ddd49[_0x2bb3fa(0x81)],'failed':0x0,'labels':_0x4c7592[_0x2bb3fa(0x6d)](_0x39d866=>_0x39d866[_0x2bb3fa(0x7e)]),'menus':_0x3ddd49};}export function filterMenusWithResources(_0x25293a){const _0x512d44=a83_0x501f;return _0x25293a[_0x512d44(0x73)](_0x3a0140=>_0x3a0140['resources'][_0x512d44(0x81)]>0x0);}export async function doUpdateCdnUrls(_0x53763a,_0x435144,_0x3d6296,_0x18435a){const _0x1b9f30=a83_0x501f,_0x55a575=_0x3d6296[_0x1b9f30(0x73)](_0x843312=>_0x843312[_0x1b9f30(0x6a)][_0x1b9f30(0x81)]>0x0),_0x5bb723=await Promise[_0x1b9f30(0x6b)](_0x55a575[_0x1b9f30(0x6d)](_0x438a5a=>updateMenuCdnUrl(_0x53763a,_0x435144,{'id':_0x438a5a['id'],'label':_0x438a5a['label'],'path':_0x438a5a[_0x1b9f30(0x83)],'resources':_0x18435a}))),_0x3aad2c=_0x5bb723[_0x1b9f30(0x73)](_0x178e81=>_0x178e81['status']==='fulfilled')[_0x1b9f30(0x6d)](_0x24c46f=>_0x24c46f[_0x1b9f30(0x71)]),_0x302234=_0x5bb723['filter'](_0x1edde3=>_0x1edde3[_0x1b9f30(0x84)]==='rejected')[_0x1b9f30(0x81)];return{'updated':_0x3aad2c['length'],'failed':_0x302234,'menus':_0x3aad2c};}export async function fetchMenuData(_0x1526f4,_0x552e4e){const _0x1cdc3b=a83_0x501f,_0x391406=getLocalPages(),_0x5e8e5d=await getOnlineMenuList(_0x1526f4,_0x552e4e),_0x339c21=new Set(_0x5e8e5d[_0x1cdc3b(0x6d)](_0x29a6c8=>_0x29a6c8[_0x1cdc3b(0x83)]));return{'localPages':_0x391406,'onlineMenuList':_0x5e8e5d,'onlinePaths':_0x339c21};}export async function fetchOnlineMenuList(_0x3f4043,_0x2de8f4){return getOnlineMenuList(_0x3f4043,_0x2de8f4);}
1
+ (function(_0xd6bdb0,_0xda8018){const _0x52bd3b=a83_0x1c80,_0xadad98=_0xd6bdb0();while(!![]){try{const _0x508b90=parseInt(_0x52bd3b(0x1b8))/0x1*(parseInt(_0x52bd3b(0x1b9))/0x2)+parseInt(_0x52bd3b(0x1c6))/0x3*(parseInt(_0x52bd3b(0x1bf))/0x4)+-parseInt(_0x52bd3b(0x1bc))/0x5+-parseInt(_0x52bd3b(0x1c9))/0x6+parseInt(_0x52bd3b(0x1ba))/0x7+-parseInt(_0x52bd3b(0x1c1))/0x8*(parseInt(_0x52bd3b(0x1bd))/0x9)+parseInt(_0x52bd3b(0x1bb))/0xa;if(_0x508b90===_0xda8018)break;else _0xadad98['push'](_0xadad98['shift']());}catch(_0x2d4226){_0xadad98['push'](_0xadad98['shift']());}}}(a83_0x5a37,0xc7d80));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a83_0x1c80(_0x42aa8b,_0x272c21){_0x42aa8b=_0x42aa8b-0x1b4;const _0x5a37c9=a83_0x5a37();let _0x1c80c9=_0x5a37c9[_0x42aa8b];return _0x1c80c9;}export function validateJsUrl(_0x1aaf5f){const _0x461c51=a83_0x1c80,_0x2a2b52=[];return!isValidJsHttpsUrl(_0x1aaf5f)&&_0x2a2b52[_0x461c51(0x1c8)]('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x2a2b52[_0x461c51(0x1b4)]===0x0,'errors':_0x2a2b52};}export function validateCssUrl(_0x467653){const _0x5c75a4=a83_0x1c80,_0x35d74f=[];return!isValidCssHttpsUrl(_0x467653)&&_0x35d74f[_0x5c75a4(0x1c8)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x35d74f[_0x5c75a4(0x1b4)]===0x0,'errors':_0x35d74f};}export async function validateJsUrlReachable(_0x1634d7){const _0x321737=a83_0x1c80,_0x1c639d=validateJsUrl(_0x1634d7);if(!_0x1c639d['ok'])return _0x1c639d;const _0x70c1cb=await isUrlReachable(_0x1634d7);if(!_0x70c1cb)_0x1c639d['errors'][_0x321737(0x1c8)](_0x321737(0x1b7));return{'ok':_0x1c639d[_0x321737(0x1ca)][_0x321737(0x1b4)]===0x0,'errors':_0x1c639d[_0x321737(0x1ca)]};}export async function validateCssUrlReachable(_0x15b048){const _0x16e9c2=a83_0x1c80,_0x5f3d5c=validateCssUrl(_0x15b048);if(!_0x5f3d5c['ok'])return _0x5f3d5c;const _0x3087d8=await isUrlReachable(_0x15b048);if(!_0x3087d8)_0x5f3d5c['errors'][_0x16e9c2(0x1c8)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x5f3d5c[_0x16e9c2(0x1ca)][_0x16e9c2(0x1b4)]===0x0,'errors':_0x5f3d5c[_0x16e9c2(0x1ca)]};}export function buildCompareRows(_0x1d8289,_0x2d3226){const _0x185953=a83_0x1c80;return _0x1d8289[_0x185953(0x1c7)](_0x154232=>({'label':_0x154232[_0x185953(0x1c3)],'path':_0x154232[_0x185953(0x1b5)],'local':!![],'online':_0x2d3226['has'](_0x154232[_0x185953(0x1b5)])}));}export function filterNewPages(_0x4f763f,_0x5998ca,_0x39a9f3){const _0x5843ef=a83_0x1c80;if(_0x39a9f3&&_0x39a9f3['length']>0x0){const _0x44d8c6=new Set(_0x39a9f3['map'](_0x2390ae=>_0x2390ae['trim']())),_0x2b2691=_0x4f763f['filter'](_0x1dd8e1=>_0x44d8c6['has'](_0x1dd8e1['label']));if(_0x2b2691[_0x5843ef(0x1b4)]===0x0)throw new Error(_0x5843ef(0x1c2)+[..._0x44d8c6]['join'](',\x20'));return _0x2b2691;}return _0x4f763f[_0x5843ef(0x1b6)](_0x550ef4=>!_0x5998ca[_0x5843ef(0x1c0)](_0x550ef4[_0x5843ef(0x1b5)]));}export function filterPagesByLabels(_0x282310,_0x5bf663){const _0x184652=a83_0x1c80,_0x49e8fe=[],_0x446cf1=[];for(const _0x22b485 of _0x5bf663){const _0xe6449c=_0x22b485['trim'](),_0x10f3f1=_0x282310['find'](_0x35b8a5=>_0x35b8a5['label']===_0xe6449c);if(_0x10f3f1)_0x49e8fe[_0x184652(0x1c8)](_0x10f3f1);else _0x446cf1['push'](_0x22b485);}return{'matched':_0x49e8fe,'unmatched':_0x446cf1};}export async function doCreateMenus(_0xe74fc5,_0x26f27c,_0x47f8b6,_0x3bd253){const _0xfc169a=a83_0x1c80,_0x57ecbe=await createMenus(_0xe74fc5,_0x26f27c,_0x47f8b6,_0x3bd253);return{'created':_0x57ecbe[_0xfc169a(0x1b4)],'failed':0x0,'labels':_0x47f8b6[_0xfc169a(0x1c7)](_0x3417d1=>_0x3417d1['label']),'menus':_0x57ecbe};}export function filterMenusWithResources(_0x31db04){const _0x28d484=a83_0x1c80;return _0x31db04[_0x28d484(0x1b6)](_0x321f97=>_0x321f97[_0x28d484(0x1c4)][_0x28d484(0x1b4)]>0x0);}export async function doUpdateCdnUrls(_0x2edf97,_0x2e5455,_0x549fe8,_0x56f80b){const _0x1b5637=a83_0x1c80,_0x12e24a=_0x549fe8['filter'](_0x1b4eca=>_0x1b4eca[_0x1b5637(0x1c4)][_0x1b5637(0x1b4)]>0x0),_0x296410=await Promise[_0x1b5637(0x1c5)](_0x12e24a[_0x1b5637(0x1c7)](_0x46473d=>updateMenuCdnUrl(_0x2edf97,_0x2e5455,{'id':_0x46473d['id'],'label':_0x46473d[_0x1b5637(0x1c3)],'path':_0x46473d[_0x1b5637(0x1b5)],'resources':_0x56f80b}))),_0x37bd3c=_0x296410[_0x1b5637(0x1b6)](_0x259a66=>_0x259a66[_0x1b5637(0x1be)]==='fulfilled')['map'](_0x160683=>_0x160683['value']),_0x1b01f2=_0x296410[_0x1b5637(0x1b6)](_0x30007d=>_0x30007d['status']==='rejected')[_0x1b5637(0x1b4)];return{'updated':_0x37bd3c[_0x1b5637(0x1b4)],'failed':_0x1b01f2,'menus':_0x37bd3c};}export async function fetchMenuData(_0x3a6a4d,_0x4fa771){const _0x2e9555=a83_0x1c80,_0x2440e5=getLocalPages(),_0x14f6e8=await getOnlineMenuList(_0x3a6a4d,_0x4fa771),_0xbb6c12=new Set(_0x14f6e8['map'](_0x1ad9b2=>_0x1ad9b2[_0x2e9555(0x1b5)]));return{'localPages':_0x2440e5,'onlineMenuList':_0x14f6e8,'onlinePaths':_0xbb6c12};}export async function fetchOnlineMenuList(_0x1188da,_0x14c1ea){return getOnlineMenuList(_0x1188da,_0x14c1ea);}function a83_0x5a37(){const _0x377eb5=['path','filter','JS\x20URL\x20is\x20unreachable','1NxSbMH','3110454jSIIrm','8448244Pnwjwy','4070340AZjCQU','4306065Fdgvmq','216WAYXzP','status','3992gpibaE','has','416856hWWpjr','No\x20local\x20pages\x20matched\x20labels:\x20','label','resources','allSettled','1728HlzBFv','map','push','4881960QXBjlQ','errors','length'];a83_0x5a37=function(){return _0x377eb5;};return a83_0x5a37();}