@lovrabet/lovrabet-cli 2.1.17 → 2.1.18-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schedule/index.js +1 -0
  39. package/lib/commands/schema.js +1 -1
  40. package/lib/commands/service/dynamic.js +1 -1
  41. package/lib/commands/service/function-name-adapter.js +1 -1
  42. package/lib/commands/service/index.js +1 -1
  43. package/lib/commands/service/registry.js +1 -1
  44. package/lib/commands/skill/commands/create.js +1 -1
  45. package/lib/commands/skill/commands/install.js +1 -1
  46. package/lib/commands/skill/commands/list.js +1 -1
  47. package/lib/commands/skill/commands/push.js +1 -1
  48. package/lib/commands/skill/commands/validate.js +1 -1
  49. package/lib/commands/skill/flags.js +1 -1
  50. package/lib/commands/skill/index.js +1 -1
  51. package/lib/commands/skill/manifest-helpers.js +1 -1
  52. package/lib/commands/skill/push-execute.js +1 -1
  53. package/lib/commands/skill/push-flow-helpers.js +1 -1
  54. package/lib/commands/skill/push-retarget.js +1 -1
  55. package/lib/commands/skill/scopes.js +1 -1
  56. package/lib/commands/skill/summary.js +1 -1
  57. package/lib/commands/skill/templates.js +1 -1
  58. package/lib/commands/skill/validate.js +1 -1
  59. package/lib/commands/sql/detail.js +1 -1
  60. package/lib/commands/sql/exec.js +1 -1
  61. package/lib/commands/sql/index.js +1 -1
  62. package/lib/commands/update.js +1 -1
  63. package/lib/commands/workspace/index.js +1 -1
  64. package/lib/config/schema.js +1 -1
  65. package/lib/constant/app.js +1 -1
  66. package/lib/constant/auth-mode.js +1 -1
  67. package/lib/constant/cli.js +1 -1
  68. package/lib/constant/defaults.js +1 -1
  69. package/lib/constant/distribution.js +1 -1
  70. package/lib/constant/domain.js +1 -1
  71. package/lib/constant/env.js +1 -1
  72. package/lib/constant/output.js +1 -1
  73. package/lib/constant/product.js +1 -1
  74. package/lib/constant/risk.js +1 -1
  75. package/lib/constant/url.js +1 -1
  76. package/lib/context.js +1 -1
  77. package/lib/core/api-client.js +1 -1
  78. package/lib/core/db-resolver.js +1 -1
  79. package/lib/core/sdk-client.js +1 -1
  80. package/lib/errors.js +1 -1
  81. package/lib/framework/build-all-flags.js +1 -1
  82. package/lib/framework/dryrun.js +1 -1
  83. package/lib/framework/flags.js +1 -1
  84. package/lib/framework/help.js +1 -1
  85. package/lib/framework/index.js +1 -1
  86. package/lib/framework/output.js +1 -1
  87. package/lib/framework/preparse.js +1 -1
  88. package/lib/framework/rate-limit.js +1 -1
  89. package/lib/framework/response.js +1 -1
  90. package/lib/framework/runner-confirmation.js +1 -1
  91. package/lib/framework/runner-error.js +1 -1
  92. package/lib/framework/runner.js +1 -1
  93. package/lib/framework/schema-export.js +1 -1
  94. package/lib/framework/service-order.js +1 -1
  95. package/lib/framework/types.js +1 -1
  96. package/lib/generated/build-info.js +1 -1
  97. package/lib/help.js +1 -1
  98. package/lib/skills/npx-skills-add.js +1 -1
  99. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  100. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  101. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  102. package/lib/skills/runtime-skill-sync/links.js +1 -1
  103. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  104. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  105. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  106. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  107. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  108. package/lib/skills/runtime-skill-sync/push.js +1 -1
  109. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  110. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  111. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  112. package/lib/skills/runtime-skill-sync.js +1 -1
  113. package/lib/utils/apply-jq-filter.js +1 -1
  114. package/lib/utils/logger.js +1 -1
  115. package/lib/utils/lossless-json.js +1 -1
  116. package/lib/utils/params.js +1 -1
  117. package/lib/utils/platform.js +1 -1
  118. package/lib/utils/update-notice.js +1 -1
  119. package/lib/utils/version.js +1 -1
  120. package/lib/utils/write-cli-side-channel.js +1 -1
  121. package/package.json +1 -1
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a74_0x43ff2c=a74_0x418d;(function(_0x19a7ff,_0x48c490){const _0x402f9c=a74_0x418d,_0x47d41b=_0x19a7ff();while(!![]){try{const _0x5ccf70=-parseInt(_0x402f9c(0x1e3))/0x1+parseInt(_0x402f9c(0x20e))/0x2+-parseInt(_0x402f9c(0x1f8))/0x3+-parseInt(_0x402f9c(0x220))/0x4+-parseInt(_0x402f9c(0x213))/0x5+-parseInt(_0x402f9c(0x1e8))/0x6*(parseInt(_0x402f9c(0x226))/0x7)+parseInt(_0x402f9c(0x21d))/0x8;if(_0x5ccf70===_0x48c490)break;else _0x47d41b['push'](_0x47d41b['shift']());}catch(_0x1f1afb){_0x47d41b['push'](_0x47d41b['shift']());}}}(a74_0x3ea9,0x92dc5));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a74_0x43ff2c(0x209)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a74_0x43ff2c(0x224)];function resolveConfigPath(_0x469f73){for(const _0x1dfd28 of CONFIG_NAMES){const _0x423c00=resolve(_0x469f73,_0x1dfd28);if(existsSync(_0x423c00))return _0x423c00;}return undefined;}export function resolveWriteConfigPath(_0x37acee){const _0x5e46a4=a74_0x43ff2c,_0x32cf7a=_0x37acee===_0x5e46a4(0x21e)?process['cwd']():homedir(),_0x4c34eb=resolveConfigPath(_0x32cf7a);return _0x4c34eb??resolve(_0x32cf7a,NEW_CONFIG_NAME);}export function readConfigFile(_0x1d8a65){const _0x316afc=a74_0x43ff2c;try{if(existsSync(_0x1d8a65)){const _0x357074=readFileSync(_0x1d8a65,{'encoding':_0x316afc(0x207)});if(_0x357074){const _0x187e05=JSON['parse'](_0x357074);return migrateOnlineEnv(_0x1d8a65,_0x187e05),_0x187e05;}}}catch{}return{};}function migrateOnlineEnv(_0xc889dc,_0x242f07){const _0x180fda=a74_0x43ff2c;let _0x2271a0=![];_0x242f07[_0x180fda(0x20b)]===_0x180fda(0x229)&&(_0x242f07[_0x180fda(0x20b)]=_0x180fda(0x221),_0x2271a0=!![]);if(_0x242f07[_0x180fda(0x222)]&&typeof _0x242f07[_0x180fda(0x222)]===_0x180fda(0x206))for(const _0x192a33 of Object[_0x180fda(0x1ef)](_0x242f07[_0x180fda(0x222)])){_0x192a33&&_0x192a33[_0x180fda(0x20b)]===_0x180fda(0x229)&&(_0x192a33[_0x180fda(0x20b)]=_0x180fda(0x221),_0x2271a0=!![]);}if(_0x2271a0)try{writeConfigFile(_0xc889dc,_0x242f07);}catch{}}export function writeConfigFile(_0x257933,_0x43439a){const _0x54b347=a74_0x43ff2c,_0x363f14=dirname(_0x257933);!existsSync(_0x363f14)&&mkdirSync(_0x363f14,{'recursive':!![]});const _0x587510=_0x257933+_0x54b347(0x20c);try{writeFileSync(_0x587510,JSON[_0x54b347(0x21c)](_0x43439a,null,0x2)+'\x0a',{'encoding':_0x54b347(0x207),'mode':0x180});try{renameSync(_0x587510,_0x257933);}catch(_0x4ad3b9){if(_0x4ad3b9[_0x54b347(0x1ed)]===_0x54b347(0x20d)||_0x4ad3b9[_0x54b347(0x1ed)]==='EXDEV'||_0x4ad3b9[_0x54b347(0x1ed)]===_0x54b347(0x217)){writeFileSync(_0x257933,JSON[_0x54b347(0x21c)](_0x43439a,null,0x2)+'\x0a',{'encoding':_0x54b347(0x207)});try{unlinkSync(_0x587510);}catch{}}else throw _0x4ad3b9;}}catch(_0x4ca591){try{unlinkSync(_0x587510);}catch{}throw _0x4ca591;}}export function isNonInteractiveMode(_0x14f51e){const _0x22ed9b=a74_0x43ff2c;return!!(_0x14f51e['nonInteractive']||_0x14f51e['ci']||productEnvNames('CI')[_0x22ed9b(0x1fc)](_0xc3ef9=>process.env[_0xc3ef9]===_0x22ed9b(0x1eb))||process.env.CI===_0x22ed9b(0x1eb)||!process[_0x22ed9b(0x20a)][_0x22ed9b(0x202)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3bec61=a74_0x43ff2c;if(!process['stdin'][_0x3bec61(0x202)])return![];try{const _0x29b6ab=process['stdin'][_0x3bec61(0x22a)];return process['stdin'][_0x3bec61(0x1ea)](!![]),process['stdin'][_0x3bec61(0x1ea)](_0x29b6ab??![]),!![];}catch{return![];}}export async function createContext(_0x290e4f){const _0x1587a7=a74_0x43ff2c,_0x5e4c8a=readRawConfig(),_0x3b1cb9=buildConfig(_0x5e4c8a,_0x290e4f);await initGlobalEnvironment(_0x3b1cb9);const {getUserDomain:_0x4f813d,getApiDomain:_0x5c6220}=await import(_0x1587a7(0x1fa)),_0x5196b9={'apiDomain':_0x5c6220(),'userDomain':_0x4f813d()},_0x1b92e0=await buildAuth(_0x3b1cb9);logger[_0x1587a7(0x216)](process[_0x1587a7(0x223)]());const _0x20966e=(CLI_BIN_NAME+'\x20'+process[_0x1587a7(0x201)][_0x1587a7(0x1f4)](0x2)[_0x1587a7(0x1ec)]('\x20'))[_0x1587a7(0x21a)]();logger[_0x1587a7(0x214)](_0x20966e);const _0x5c986e=isNonInteractiveMode(_0x290e4f);return{'config':_0x3b1cb9,'auth':_0x1b92e0,'logger':logger,'env':_0x5196b9,'nonInteractive':_0x5c986e};}export function buildConfigFromFlags(_0x5a0e40){return buildConfig(readRawConfig(),_0x5a0e40);}export function getLocalAppAliases(_0x1b620d){const _0x2fb886=a74_0x43ff2c;return _0x1b620d[_0x2fb886(0x222)]&&typeof _0x1b620d[_0x2fb886(0x222)]===_0x2fb886(0x206)?_0x1b620d['apps']:{};}export function resolveLocalAppAliasCode(_0x366cc7,_0x25dee0){const _0xcc198e=a74_0x43ff2c;if(!_0x25dee0)return undefined;const _0x17b2e2=getLocalAppAliases(_0x366cc7)[_0x25dee0],_0x32a3e7=_0x17b2e2?.[_0xcc198e(0x228)];return typeof _0x32a3e7===_0xcc198e(0x1f1)&&_0x32a3e7['trim']()?_0x32a3e7[_0xcc198e(0x21a)]():undefined;}function a74_0x3ea9(){const _0x33c0d1=['online','isRaw','608175pqsAUb','skillHubDomain','pageSize','FORMAT','ACCESS_KEY','6368178nBehZg','write','setRawMode','true','join','code','development','values','global','string','PAGE_SIZE','./constant/env.js','slice','ENV','userDomain','format','686379rmTqCA','locale','./constant/domain.js','raw','some','authRequired','globalConfig','APPCODE','parse','argv','isTTY','explicit','empty','accessKey','object','utf8','local-alias','configFileNames','stdout','env','.tmp','EPERM','806408QpdVuQ','missing','message','defaultApp','projectConfig','2722470SXsTpG','setRawCommand','cache','setLogPath','EACCES','inherit','error','trim','app','stringify','28427880BxYvJW','project','daily','3649292bkhuCX','production','apps','cwd','newConfigFileName','high-risk-write','7LUCwnF','top-level','appcode'];a74_0x3ea9=function(){return _0x33c0d1;};return a74_0x3ea9();}export function readAppCodeFromConfig(){const _0x8b265b=a74_0x43ff2c,_0x17112b=readRawConfig(),_0x37b80e=_0x17112b[_0x8b265b(0x228)]??_0x17112b[_0x8b265b(0x21b)];if(typeof _0x37b80e===_0x8b265b(0x1f1)&&_0x37b80e[_0x8b265b(0x21a)]())return _0x37b80e[_0x8b265b(0x21a)]();const _0xfe6508=resolveLocalAppAliasCode(_0x17112b,typeof _0x17112b[_0x8b265b(0x211)]===_0x8b265b(0x1f1)?_0x17112b['defaultApp']:undefined);if(_0xfe6508)return _0xfe6508;const _0x56c1f1=normalizeEnv(String(_0x17112b['env']||_0x8b265b(0x221))),_0x179e09=isDaily(_0x56c1f1)?_0x8b265b(0x21f):isDev(_0x56c1f1)?_0x8b265b(0x1ee):_0x8b265b(0x221),_0x5b8148=resolveCachedAppCode(typeof _0x17112b[_0x8b265b(0x211)]==='string'?_0x17112b[_0x8b265b(0x211)]:undefined,_0x179e09,typeof _0x17112b[_0x8b265b(0x205)]===_0x8b265b(0x1f1)?_0x17112b['accessKey']:undefined);if(_0x5b8148)return _0x5b8148;const _0x24c85b=Object['values'](getLocalAppAliases(_0x17112b))['find'](_0x44804a=>_0x44804a?.['appcode']);return typeof _0x24c85b?.[_0x8b265b(0x228)]===_0x8b265b(0x1f1)&&_0x24c85b[_0x8b265b(0x228)][_0x8b265b(0x21a)]()?_0x24c85b['appcode'][_0x8b265b(0x21a)]():undefined;}export function readScopedConfig(_0x3b58c5){const _0x721295=a74_0x43ff2c,_0x18335b=_0x3b58c5['global']?_0x721295(0x1f0):_0x721295(0x21e);return readConfigFile(resolveWriteConfigPath(_0x18335b));}export function writeScopedConfig(_0x46cd83,_0x469d9f){const _0x237029=a74_0x43ff2c,_0x2521e7=_0x469d9f[_0x237029(0x1f0)]?_0x237029(0x1f0):_0x237029(0x21e);writeConfigFile(resolveWriteConfigPath(_0x2521e7),_0x46cd83);}export async function initGlobalEnvironment(_0x598fad){const _0x556929=a74_0x43ff2c,{initEnv:_0x352c26}=await import(_0x556929(0x1f3));_0x352c26(_0x598fad['env']);const {initDomains:_0x34d710}=await import(_0x556929(0x1fa));_0x34d710({'apiDomain':_0x598fad[_0x556929(0x1fb)]['apiDomain']||_0x598fad['raw']['host']||undefined,'userDomain':_0x598fad['raw'][_0x556929(0x1f6)]||undefined,'runtimeDomain':_0x598fad['raw']['runtimeDomain']||undefined,'skillHubDomain':_0x598fad['raw'][_0x556929(0x1e4)]||undefined});}export function getProjectConfigPath(){const _0x585fdf=a74_0x43ff2c;return resolveConfigPath(process[_0x585fdf(0x223)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x190f8a){const _0x164851=a74_0x43ff2c;if(!existsSync(_0x190f8a))return{'status':_0x164851(0x20f)};try{const _0x572d2e=readFileSync(_0x190f8a,{'encoding':'utf8'});if(!_0x572d2e?.[_0x164851(0x21a)]())return{'status':_0x164851(0x204)};const _0x494aef=JSON['parse'](_0x572d2e);return{'status':'ok','data':_0x494aef};}catch(_0x28fb28){return{'status':_0x164851(0x219),'message':_0x28fb28 instanceof Error?_0x28fb28[_0x164851(0x210)]:String(_0x28fb28)};}}export function loadRawConfigLayers(_0x5582b0){const _0x12e5df=a74_0x43ff2c;let _0x155300={},_0xe87dd4={},_0x85b520,_0x4c19fa;try{_0x85b520=resolveConfigPath(homedir());if(_0x85b520){const _0x4a1349=readFileSync(_0x85b520,{'encoding':_0x12e5df(0x207)});if(_0x4a1349)_0x155300=JSON[_0x12e5df(0x200)](_0x4a1349);}}catch{}try{const _0xe72ea4=_0x5582b0||process[_0x12e5df(0x223)]();_0x4c19fa=resolveConfigPath(_0xe72ea4);if(_0x4c19fa){const _0xf76da8=readFileSync(_0x4c19fa,{'encoding':'utf8'});if(_0xf76da8)_0xe87dd4=JSON[_0x12e5df(0x200)](_0xf76da8);}}catch{}return{'globalPath':_0x85b520,'projectPath':_0x4c19fa,'globalConfig':_0x155300,'projectConfig':_0xe87dd4};}function mergeRawConfigLayers(_0x2350c2){const _0xc253fe=a74_0x43ff2c,{globalConfig:_0x28de3c,projectConfig:_0x3751e3}=_0x2350c2;if(_0x3751e3['inherit']===![]){const _0x42d2e={..._0x3751e3};return delete _0x42d2e[_0xc253fe(0x218)],_0x42d2e;}const _0x3d2e32={..._0x28de3c,..._0x3751e3};if(_0xc253fe(0x211)in _0x3751e3)_0x3d2e32[_0xc253fe(0x211)]=_0x3751e3['defaultApp'];else _0x28de3c[_0xc253fe(0x211)]&&(_0x3d2e32[_0xc253fe(0x211)]=_0x28de3c[_0xc253fe(0x211)]);return _0x3d2e32;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x11dbe2){return mergeRawConfigLayers(loadRawConfigLayers(_0x11dbe2));}export function readRawConfigWithLayers(_0x6938a){const _0x391a5e=loadRawConfigLayers(_0x6938a);return{'config':mergeRawConfigLayers(_0x391a5e),'layers':_0x391a5e};}function a74_0x418d(_0x3c0d48,_0x2bec70){_0x3c0d48=_0x3c0d48-0x1e3;const _0x3ea953=a74_0x3ea9();let _0x418d34=_0x3ea953[_0x3c0d48];return _0x418d34;}export function resolveDefaultAppSource(_0x32ee49){const _0x388545=a74_0x43ff2c;if('defaultApp'in _0x32ee49['projectConfig'])return'project';if(_0x32ee49[_0x388545(0x212)][_0x388545(0x218)]===![])return null;if(_0x32ee49[_0x388545(0x1fe)]['defaultApp'])return _0x388545(0x1f0);return null;}function buildConfig(_0x17140f,_0x435bda){const _0x233c25=a74_0x43ff2c,_0x233a55=_0x17140f[_0x233c25(0x211)]||undefined,_0x8a0858=_0x435bda[_0x233c25(0x21b)]||env('APP')||undefined,_0x1a4b93=_0x8a0858||_0x233a55||undefined,_0x47c527=env(_0x233c25(0x1e7))||_0x17140f[_0x233c25(0x205)]||undefined,_0x496c38=_0x435bda[_0x233c25(0x20b)]||env(_0x233c25(0x1f5))||_0x17140f[_0x233c25(0x20b)]||DEFAULT_CONFIG_VALUES[_0x233c25(0x20b)],_0x268f0a=normalizeEnv(String(_0x496c38)),_0x39e797=isDaily(_0x268f0a)?_0x233c25(0x21f):isDev(_0x268f0a)?_0x233c25(0x1ee):'production',_0x5c0266=typeof _0x435bda[_0x233c25(0x228)]===_0x233c25(0x1f1)?_0x435bda[_0x233c25(0x228)]:undefined,_0x29816a=env(_0x233c25(0x1ff)),_0x19877e=_0x8a0858?undefined:_0x17140f[_0x233c25(0x228)]||_0x17140f['app']||undefined,_0x71eb79=_0x8a0858||(_0x19877e?undefined:_0x233a55),_0x3bb76b=resolveLocalAppAliasCode(_0x17140f,_0x71eb79),_0x310951=resolveCachedAppCode(_0x71eb79,_0x39e797,_0x47c527),_0x13c23f=_0x5c0266||_0x29816a||_0x19877e||_0x3bb76b||_0x310951||undefined,_0xf7d0be=_0x5c0266?_0x233c25(0x203):_0x29816a?_0x233c25(0x20b):_0x19877e?_0x233c25(0x227):_0x3bb76b?_0x233c25(0x208):_0x310951?_0x233c25(0x215):undefined,_0x39937d=_0x17140f[_0x233c25(0x1f9)]||DEFAULT_CONFIG_VALUES[_0x233c25(0x1f9)],_0x3afabe=undefined,_0x1575fb=_0x435bda['format']||env(_0x233c25(0x1e6))||_0x17140f[_0x233c25(0x1f7)],_0x33ec55=normalizeLegacyOutputFormat(_0x1575fb),_0x5514a6=env(_0x233c25(0x1f2))||_0x17140f[_0x233c25(0x1e5)],_0x1bf454=_0x5514a6?Number(_0x5514a6)||undefined:undefined,_0x4051ee=_0x17140f['riskLevel']||_0x17140f['maxRisk'],_0x4d87a0=_0x4051ee==='read'||_0x4051ee===_0x233c25(0x1e9)||_0x4051ee===_0x233c25(0x225)?_0x4051ee:DEFAULT_CONFIG_VALUES['riskLevel'],_0x252a94=env('VERBOSE'),_0x266717=_0x252a94==='1'||_0x252a94===_0x233c25(0x1eb);return{'appCode':typeof _0x13c23f===_0x233c25(0x1f1)&&_0x13c23f['trim']()?_0x13c23f[_0x233c25(0x21a)]():undefined,'appCodeSource':_0xf7d0be,'env':_0x39e797,'locale':_0x39937d,'cookie':_0x3afabe,'accessKey':_0x47c527,'format':_0x33ec55,'pageSize':_0x1bf454,'riskLevel':_0x4d87a0,'verbose':_0x266717,'defaultApp':_0x233a55,'currentApp':typeof _0x1a4b93===_0x233c25(0x1f1)?_0x1a4b93:undefined,'raw':_0x17140f};}function env(_0x150faa){return productEnv(_0x150faa);}async function buildAuth(_0x4401ed){const _0x4a6d9f=a74_0x43ff2c,_0x59e654='',_0x314511=!!_0x4401ed[_0x4a6d9f(0x205)];return{'cookie':_0x59e654,'isLoggedIn':_0x314511,async 'getOrLogin'(){const _0x29eb83=_0x4a6d9f;if(_0x314511)return _0x59e654;throw CliErrors[_0x29eb83(0x1fd)]();}};}
1
+ const a75_0x87185b=a75_0x449f;(function(_0x311914,_0x25214c){const _0x2e408f=a75_0x449f,_0x1cbb7a=_0x311914();while(!![]){try{const _0x5c61fb=-parseInt(_0x2e408f(0x1b2))/0x1*(-parseInt(_0x2e408f(0x1b7))/0x2)+-parseInt(_0x2e408f(0x1a3))/0x3*(parseInt(_0x2e408f(0x1a7))/0x4)+parseInt(_0x2e408f(0x1e2))/0x5+-parseInt(_0x2e408f(0x1c8))/0x6*(-parseInt(_0x2e408f(0x1ca))/0x7)+parseInt(_0x2e408f(0x1ba))/0x8*(parseInt(_0x2e408f(0x1de))/0x9)+parseInt(_0x2e408f(0x1a5))/0xa+parseInt(_0x2e408f(0x199))/0xb*(-parseInt(_0x2e408f(0x1c7))/0xc);if(_0x5c61fb===_0x25214c)break;else _0x1cbb7a['push'](_0x1cbb7a['shift']());}catch(_0x6c9e49){_0x1cbb7a['push'](_0x1cbb7a['shift']());}}}(a75_0x18db,0x40864));function a75_0x18db(){const _0x1b7f6c=['setRawCommand','skillHubDomain','locale','development','inherit','defaultApp','app','18477BzBeiT','trim','userDomain','accessKey','975220loqrkE','.tmp','155353PoNxVM','env','missing','pageSize','top-level','global','code','online','true','APPCODE','9eWafWN','setRawMode','5063900QiEBRn','parse','320396vtaTfV','explicit','utf8','message','format','slice','isRaw','project','EPERM','EACCES','./constant/domain.js','467SSBNSB','APP','string','production','apiDomain','2Glwiwj','riskLevel','ACCESS_KEY','1288XrZINE','nonInteractive','setLogPath','argv','stdin','join','globalConfig','projectConfig','authRequired','configFileNames','values','cwd','object','612yPAmcI','1752wohUsi','apps','4613GSSiQz','host','appcode','isTTY','./constant/env.js','maxRisk','high-risk-write','raw','ENV','runtimeDomain','FORMAT','local-alias','VERBOSE'];a75_0x18db=function(){return _0x1b7f6c;};return a75_0x18db();}import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvNames}from'./constant/product.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a75_0x87185b(0x1c3)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG['newConfigFileName'];function resolveConfigPath(_0x5e722e){for(const _0x32c6ef of CONFIG_NAMES){const _0x189f73=resolve(_0x5e722e,_0x32c6ef);if(existsSync(_0x189f73))return _0x189f73;}return undefined;}export function resolveWriteConfigPath(_0x4425cb){const _0x4324b3=a75_0x87185b,_0x2cf1d7=_0x4425cb===_0x4324b3(0x1ae)?process['cwd']():homedir(),_0x115bd1=resolveConfigPath(_0x2cf1d7);return _0x115bd1??resolve(_0x2cf1d7,NEW_CONFIG_NAME);}export function readConfigFile(_0x540a41){const _0x327145=a75_0x87185b;try{if(existsSync(_0x540a41)){const _0x114180=readFileSync(_0x540a41,{'encoding':'utf8'});if(_0x114180){const _0x4c3b09=JSON[_0x327145(0x1a6)](_0x114180);return migrateOnlineEnv(_0x540a41,_0x4c3b09),_0x4c3b09;}}}catch{}return{};}function migrateOnlineEnv(_0x51c845,_0x2ea6ea){const _0x54871e=a75_0x87185b;let _0x59659=![];_0x2ea6ea[_0x54871e(0x19a)]===_0x54871e(0x1a0)&&(_0x2ea6ea['env']=_0x54871e(0x1b5),_0x59659=!![]);if(_0x2ea6ea[_0x54871e(0x1c9)]&&typeof _0x2ea6ea[_0x54871e(0x1c9)]===_0x54871e(0x1c6))for(const _0xdcc0b of Object[_0x54871e(0x1c4)](_0x2ea6ea[_0x54871e(0x1c9)])){_0xdcc0b&&_0xdcc0b[_0x54871e(0x19a)]===_0x54871e(0x1a0)&&(_0xdcc0b[_0x54871e(0x19a)]=_0x54871e(0x1b5),_0x59659=!![]);}if(_0x59659)try{writeConfigFile(_0x51c845,_0x2ea6ea);}catch{}}export function writeConfigFile(_0x4666fd,_0x56c906){const _0x18ab58=a75_0x87185b,_0x2b1951=dirname(_0x4666fd);!existsSync(_0x2b1951)&&mkdirSync(_0x2b1951,{'recursive':!![]});const _0x353179=_0x4666fd+_0x18ab58(0x198);try{writeFileSync(_0x353179,JSON['stringify'](_0x56c906,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x353179,_0x4666fd);}catch(_0x1578b4){if(_0x1578b4[_0x18ab58(0x19f)]===_0x18ab58(0x1af)||_0x1578b4[_0x18ab58(0x19f)]==='EXDEV'||_0x1578b4[_0x18ab58(0x19f)]===_0x18ab58(0x1b0)){writeFileSync(_0x4666fd,JSON['stringify'](_0x56c906,null,0x2)+'\x0a',{'encoding':_0x18ab58(0x1a9)});try{unlinkSync(_0x353179);}catch{}}else throw _0x1578b4;}}catch(_0x2eb7f4){try{unlinkSync(_0x353179);}catch{}throw _0x2eb7f4;}}export function isNonInteractiveMode(_0x364249){const _0x5b8e41=a75_0x87185b;return!!(_0x364249[_0x5b8e41(0x1bb)]||_0x364249['ci']||productEnvNames('CI')['some'](_0x385573=>process.env[_0x385573]===_0x5b8e41(0x1a1))||process.env.CI==='true'||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x53441e=a75_0x87185b;if(!process['stdin'][_0x53441e(0x1cd)])return![];try{const _0x464fee=process[_0x53441e(0x1be)][_0x53441e(0x1ad)];return process['stdin'][_0x53441e(0x1a4)](!![]),process[_0x53441e(0x1be)][_0x53441e(0x1a4)](_0x464fee??![]),!![];}catch{return![];}}export async function createContext(_0x9ebdc6){const _0x1c94d6=a75_0x87185b,_0x40fed5=readRawConfig(),_0x2815bd=buildConfig(_0x40fed5,_0x9ebdc6);await initGlobalEnvironment(_0x2815bd);const {getUserDomain:_0x19cd59,getApiDomain:_0x3447a4}=await import(_0x1c94d6(0x1b1)),_0x4fea29={'apiDomain':_0x3447a4(),'userDomain':_0x19cd59()},_0x480a3e=await buildAuth(_0x2815bd);logger[_0x1c94d6(0x1bc)](process[_0x1c94d6(0x1c5)]());const _0x49bb0e=(CLI_BIN_NAME+'\x20'+process[_0x1c94d6(0x1bd)][_0x1c94d6(0x1ac)](0x2)[_0x1c94d6(0x1bf)]('\x20'))['trim']();logger[_0x1c94d6(0x1d7)](_0x49bb0e);const _0x65c8d5=isNonInteractiveMode(_0x9ebdc6);return{'config':_0x2815bd,'auth':_0x480a3e,'logger':logger,'env':_0x4fea29,'nonInteractive':_0x65c8d5};}export function buildConfigFromFlags(_0x49be8b){return buildConfig(readRawConfig(),_0x49be8b);}function a75_0x449f(_0x4d932b,_0x149d05){_0x4d932b=_0x4d932b-0x198;const _0x18db27=a75_0x18db();let _0x449f0b=_0x18db27[_0x4d932b];return _0x449f0b;}export function getLocalAppAliases(_0x45378f){const _0x3c94b5=a75_0x87185b;return _0x45378f[_0x3c94b5(0x1c9)]&&typeof _0x45378f['apps']===_0x3c94b5(0x1c6)?_0x45378f[_0x3c94b5(0x1c9)]:{};}export function resolveLocalAppAliasCode(_0xda1a8c,_0x1df0c1){const _0x437e8e=a75_0x87185b;if(!_0x1df0c1)return undefined;const _0x494280=getLocalAppAliases(_0xda1a8c)[_0x1df0c1],_0x55fd2c=_0x494280?.[_0x437e8e(0x1cc)];return typeof _0x55fd2c===_0x437e8e(0x1b4)&&_0x55fd2c[_0x437e8e(0x1df)]()?_0x55fd2c[_0x437e8e(0x1df)]():undefined;}export function readAppCodeFromConfig(){const _0x48d5ed=a75_0x87185b,_0x1eccc6=readRawConfig(),_0x172e5d=_0x1eccc6[_0x48d5ed(0x1cc)]??_0x1eccc6['app'];if(typeof _0x172e5d==='string'&&_0x172e5d[_0x48d5ed(0x1df)]())return _0x172e5d[_0x48d5ed(0x1df)]();const _0x4180e4=resolveLocalAppAliasCode(_0x1eccc6,typeof _0x1eccc6[_0x48d5ed(0x1dc)]===_0x48d5ed(0x1b4)?_0x1eccc6[_0x48d5ed(0x1dc)]:undefined);if(_0x4180e4)return _0x4180e4;const _0x13fbf0=normalizeEnv(String(_0x1eccc6[_0x48d5ed(0x19a)]||_0x48d5ed(0x1b5))),_0x1a9763=isDaily(_0x13fbf0)?'daily':isDev(_0x13fbf0)?_0x48d5ed(0x1da):_0x48d5ed(0x1b5),_0x578fef=resolveCachedAppCode(typeof _0x1eccc6[_0x48d5ed(0x1dc)]===_0x48d5ed(0x1b4)?_0x1eccc6[_0x48d5ed(0x1dc)]:undefined,_0x1a9763,typeof _0x1eccc6[_0x48d5ed(0x1e1)]===_0x48d5ed(0x1b4)?_0x1eccc6[_0x48d5ed(0x1e1)]:undefined);if(_0x578fef)return _0x578fef;const _0x14198e=Object['values'](getLocalAppAliases(_0x1eccc6))['find'](_0x35a238=>_0x35a238?.[_0x48d5ed(0x1cc)]);return typeof _0x14198e?.['appcode']===_0x48d5ed(0x1b4)&&_0x14198e[_0x48d5ed(0x1cc)]['trim']()?_0x14198e[_0x48d5ed(0x1cc)]['trim']():undefined;}export function readScopedConfig(_0x18ac62){const _0xf3b986=a75_0x87185b,_0x477793=_0x18ac62['global']?_0xf3b986(0x19e):_0xf3b986(0x1ae);return readConfigFile(resolveWriteConfigPath(_0x477793));}export function writeScopedConfig(_0x506517,_0x19774c){const _0x5f47fb=a75_0x87185b,_0x2bab42=_0x19774c['global']?_0x5f47fb(0x19e):'project';writeConfigFile(resolveWriteConfigPath(_0x2bab42),_0x506517);}export async function initGlobalEnvironment(_0x5b4697){const _0xf63ac1=a75_0x87185b,{initEnv:_0x6fafb6}=await import(_0xf63ac1(0x1ce));_0x6fafb6(_0x5b4697[_0xf63ac1(0x19a)]);const {initDomains:_0x565490}=await import('./constant/domain.js');_0x565490({'apiDomain':_0x5b4697[_0xf63ac1(0x1d1)][_0xf63ac1(0x1b6)]||_0x5b4697['raw'][_0xf63ac1(0x1cb)]||undefined,'userDomain':_0x5b4697['raw'][_0xf63ac1(0x1e0)]||undefined,'runtimeDomain':_0x5b4697[_0xf63ac1(0x1d1)][_0xf63ac1(0x1d3)]||undefined,'skillHubDomain':_0x5b4697[_0xf63ac1(0x1d1)][_0xf63ac1(0x1d8)]||undefined});}export function getProjectConfigPath(){const _0x43673b=a75_0x87185b;return resolveConfigPath(process[_0x43673b(0x1c5)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x98ff82){const _0x342154=a75_0x87185b;if(!existsSync(_0x98ff82))return{'status':_0x342154(0x19b)};try{const _0x431ba0=readFileSync(_0x98ff82,{'encoding':_0x342154(0x1a9)});if(!_0x431ba0?.[_0x342154(0x1df)]())return{'status':'empty'};const _0x15a9e4=JSON[_0x342154(0x1a6)](_0x431ba0);return{'status':'ok','data':_0x15a9e4};}catch(_0x4cce7c){return{'status':'error','message':_0x4cce7c instanceof Error?_0x4cce7c[_0x342154(0x1aa)]:String(_0x4cce7c)};}}export function loadRawConfigLayers(_0x162643){const _0x264961=a75_0x87185b;let _0x3dc3d3={},_0x27a07={},_0x55cd8a,_0x2541db;try{_0x55cd8a=resolveConfigPath(homedir());if(_0x55cd8a){const _0x13d004=readFileSync(_0x55cd8a,{'encoding':_0x264961(0x1a9)});if(_0x13d004)_0x3dc3d3=JSON[_0x264961(0x1a6)](_0x13d004);}}catch{}try{const _0x46d981=_0x162643||process['cwd']();_0x2541db=resolveConfigPath(_0x46d981);if(_0x2541db){const _0x303e84=readFileSync(_0x2541db,{'encoding':_0x264961(0x1a9)});if(_0x303e84)_0x27a07=JSON[_0x264961(0x1a6)](_0x303e84);}}catch{}return{'globalPath':_0x55cd8a,'projectPath':_0x2541db,'globalConfig':_0x3dc3d3,'projectConfig':_0x27a07};}function mergeRawConfigLayers(_0x2730bc){const _0x52744d=a75_0x87185b,{globalConfig:_0x1458a7,projectConfig:_0x4ce4e2}=_0x2730bc;if(_0x4ce4e2['inherit']===![]){const _0x23b371={..._0x4ce4e2};return delete _0x23b371[_0x52744d(0x1db)],_0x23b371;}const _0x408549={..._0x1458a7,..._0x4ce4e2};if(_0x52744d(0x1dc)in _0x4ce4e2)_0x408549[_0x52744d(0x1dc)]=_0x4ce4e2[_0x52744d(0x1dc)];else _0x1458a7[_0x52744d(0x1dc)]&&(_0x408549[_0x52744d(0x1dc)]=_0x1458a7['defaultApp']);return _0x408549;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x45af23){return mergeRawConfigLayers(loadRawConfigLayers(_0x45af23));}export function readRawConfigWithLayers(_0x5d9f0c){const _0x58f986=loadRawConfigLayers(_0x5d9f0c);return{'config':mergeRawConfigLayers(_0x58f986),'layers':_0x58f986};}export function resolveDefaultAppSource(_0x50c0f6){const _0x51dc0b=a75_0x87185b;if(_0x51dc0b(0x1dc)in _0x50c0f6[_0x51dc0b(0x1c1)])return _0x51dc0b(0x1ae);if(_0x50c0f6['projectConfig'][_0x51dc0b(0x1db)]===![])return null;if(_0x50c0f6[_0x51dc0b(0x1c0)][_0x51dc0b(0x1dc)])return _0x51dc0b(0x19e);return null;}function buildConfig(_0x13ed84,_0x2e8f48){const _0x3db67b=a75_0x87185b,_0x44d08e=_0x13ed84[_0x3db67b(0x1dc)]||undefined,_0x3fd14e=_0x2e8f48[_0x3db67b(0x1dd)]||env(_0x3db67b(0x1b3))||undefined,_0x2552a1=_0x3fd14e||_0x44d08e||undefined,_0x12514c=env(_0x3db67b(0x1b9))||_0x13ed84[_0x3db67b(0x1e1)]||undefined,_0x28363c=_0x2e8f48[_0x3db67b(0x19a)]||env(_0x3db67b(0x1d2))||_0x13ed84[_0x3db67b(0x19a)]||DEFAULT_CONFIG_VALUES[_0x3db67b(0x19a)],_0x2bd4a1=normalizeEnv(String(_0x28363c)),_0x540866=isDaily(_0x2bd4a1)?'daily':isDev(_0x2bd4a1)?_0x3db67b(0x1da):_0x3db67b(0x1b5),_0x3fcaa6=typeof _0x2e8f48[_0x3db67b(0x1cc)]==='string'?_0x2e8f48['appcode']:undefined,_0x1c02da=env(_0x3db67b(0x1a2)),_0x29b016=_0x3fd14e?undefined:_0x13ed84[_0x3db67b(0x1cc)]||_0x13ed84[_0x3db67b(0x1dd)]||undefined,_0x181ec5=_0x3fd14e||(_0x29b016?undefined:_0x44d08e),_0x2d4bf5=resolveLocalAppAliasCode(_0x13ed84,_0x181ec5),_0x4577f4=resolveCachedAppCode(_0x181ec5,_0x540866,_0x12514c),_0x1fcd72=_0x3fcaa6||_0x1c02da||_0x29b016||_0x2d4bf5||_0x4577f4||undefined,_0x335a87=_0x3fcaa6?_0x3db67b(0x1a8):_0x1c02da?'env':_0x29b016?_0x3db67b(0x19d):_0x2d4bf5?_0x3db67b(0x1d5):_0x4577f4?'cache':undefined,_0x2b1f09=_0x13ed84[_0x3db67b(0x1d9)]||DEFAULT_CONFIG_VALUES['locale'],_0x1a455b=undefined,_0xde84b9=_0x2e8f48[_0x3db67b(0x1ab)]||env(_0x3db67b(0x1d4))||_0x13ed84[_0x3db67b(0x1ab)],_0x299807=normalizeLegacyOutputFormat(_0xde84b9),_0x3cb970=env('PAGE_SIZE')||_0x13ed84[_0x3db67b(0x19c)],_0x3cb840=_0x3cb970?Number(_0x3cb970)||undefined:undefined,_0x2408c5=_0x13ed84[_0x3db67b(0x1b8)]||_0x13ed84[_0x3db67b(0x1cf)],_0x476e2b=_0x2408c5==='read'||_0x2408c5==='write'||_0x2408c5===_0x3db67b(0x1d0)?_0x2408c5:DEFAULT_CONFIG_VALUES['riskLevel'],_0x58a12e=env(_0x3db67b(0x1d6)),_0x59f6be=_0x58a12e==='1'||_0x58a12e==='true';return{'appCode':typeof _0x1fcd72==='string'&&_0x1fcd72[_0x3db67b(0x1df)]()?_0x1fcd72[_0x3db67b(0x1df)]():undefined,'appCodeSource':_0x335a87,'env':_0x540866,'locale':_0x2b1f09,'cookie':_0x1a455b,'accessKey':_0x12514c,'format':_0x299807,'pageSize':_0x3cb840,'riskLevel':_0x476e2b,'verbose':_0x59f6be,'defaultApp':_0x44d08e,'currentApp':typeof _0x2552a1===_0x3db67b(0x1b4)?_0x2552a1:undefined,'raw':_0x13ed84};}function env(_0x2c7589){return productEnv(_0x2c7589);}async function buildAuth(_0xe915ea){const _0xeaf3a2=a75_0x87185b,_0x268bec='',_0x598037=!!_0xe915ea[_0xeaf3a2(0x1e1)];return{'cookie':_0x268bec,'isLoggedIn':_0x598037,async 'getOrLogin'(){const _0x53090d=_0xeaf3a2;if(_0x598037)return _0x268bec;throw CliErrors[_0x53090d(0x1c2)]();}};}
@@ -1 +1 @@
1
- (function(_0x31121f,_0x42bae9){const _0x261d1a=a75_0xc8b5,_0x17bed5=_0x31121f();while(!![]){try{const _0x250f60=parseInt(_0x261d1a(0x19b))/0x1+-parseInt(_0x261d1a(0x18c))/0x2+-parseInt(_0x261d1a(0x196))/0x3*(parseInt(_0x261d1a(0x1b9))/0x4)+-parseInt(_0x261d1a(0x177))/0x5*(-parseInt(_0x261d1a(0x1b3))/0x6)+parseInt(_0x261d1a(0x168))/0x7*(-parseInt(_0x261d1a(0x1ad))/0x8)+-parseInt(_0x261d1a(0x15e))/0x9+-parseInt(_0x261d1a(0x160))/0xa*(-parseInt(_0x261d1a(0x18f))/0xb);if(_0x250f60===_0x42bae9)break;else _0x17bed5['push'](_0x17bed5['shift']());}catch(_0x3a0845){_0x17bed5['push'](_0x17bed5['shift']());}}}(a75_0x27ad,0x51795));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';let _activeAK;export function setActiveAK(_0x3e1a7d){_activeAK=_0x3e1a7d||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x542787){const _0x3efdea=a75_0xc8b5;for(const _0x3cbaec of _0x542787){if(typeof _0x3cbaec===_0x3efdea(0x15d)&&_0x3cbaec[_0x3efdea(0x1b2)]())return _0x3cbaec[_0x3efdea(0x1b2)]();}return undefined;}async function decodeResponseBody(_0x4e02e5){const _0x54fc08=a75_0xc8b5;if(typeof _0x4e02e5[_0x54fc08(0x17b)]==='function')try{const _0x3ca2f6=await _0x4e02e5[_0x54fc08(0x17b)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x3ca2f6),'text':_0x3ca2f6};}catch{return{'isJson':![],'text':_0x3ca2f6[_0x54fc08(0x1b2)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x4e02e5[_0x54fc08(0x155)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x503429,_0x57a1f4,_0x51eca1){const _0x5a16ba=a75_0xc8b5,_0x4198e4=_0x57a1f4&&typeof _0x57a1f4===_0x5a16ba(0x154)?_0x57a1f4:{},_0x3ddbba=[_0x4198e4[_0x5a16ba(0x186)],_0x4198e4[_0x5a16ba(0x134)]][_0x5a16ba(0x187)](_0x5257c9=>Number(_0x5257c9)===0x1ad),_0x1ac9e6=createRateLimitError({'status':_0x503429[_0x5a16ba(0x186)]===0x1ad?_0x503429['status']:_0x3ddbba??_0x503429[_0x5a16ba(0x186)],'errorCode':firstString(_0x4198e4['errorCode'],typeof _0x4198e4[_0x5a16ba(0x134)]===_0x5a16ba(0x15d)?_0x4198e4[_0x5a16ba(0x134)]:undefined),'message':firstString(_0x4198e4[_0x5a16ba(0x18d)],_0x4198e4[_0x5a16ba(0x15c)],_0x4198e4[_0x5a16ba(0x189)],_0x51eca1),'retryAfter':readRetryAfter(_0x503429[_0x5a16ba(0x193)])??readRetryAfterSeconds(_0x57a1f4)});if(_0x1ac9e6)throw _0x1ac9e6;}async function apiRequest(_0x3774ae,_0x41411a={}){const _0x5d6407=a75_0xc8b5,{method:method='GET',body:_0x2716e4,headers:headers={},timeout:timeout=0x7530}=_0x41411a,_0x4951b7=_activeAK,_0x5707fb=getRuntimeDomain();if(!_0x4951b7)throw CliErrors[_0x5d6407(0x13e)](_0x5d6407(0x1b7)+PRODUCT_CONFIG[_0x5d6407(0x1b0)]+'.');const _0x9a4fe7=''+_0x5707fb+_0x3774ae,_0x317905={'X-User-AK':_0x4951b7},_0x210da7=new AbortController(),_0x3730d3=setTimeout(()=>_0x210da7['abort'](),timeout);try{const _0x49794c=await fetch(_0x9a4fe7,{'method':method,'headers':{'Content-Type':_0x5d6407(0x166),'X-Invoke-Source':PRODUCT_CONFIG[_0x5d6407(0x148)],..._0x317905,...headers},'body':_0x2716e4?JSON['stringify'](_0x2716e4):undefined,'signal':_0x210da7[_0x5d6407(0x199)]}),_0x1531e8=await decodeResponseBody(_0x49794c);if(!_0x1531e8[_0x5d6407(0x1a8)]){throwIfRateLimited(_0x49794c,undefined,_0x1531e8[_0x5d6407(0x17b)]);throw CliErrors[_0x5d6407(0x171)](_0x5d6407(0x15b)+_0x49794c[_0x5d6407(0x186)]+')',_0x49794c[_0x5d6407(0x186)]>=0x190?_0x5d6407(0x174):undefined);}const _0x309cc1=_0x1531e8[_0x5d6407(0x14a)];throwIfRateLimited(_0x49794c,_0x309cc1);if(!_0x49794c['ok']||_0x309cc1[_0x5d6407(0x1c2)]===![])throw CliErrors[_0x5d6407(0x171)](_0x309cc1[_0x5d6407(0x18d)]||_0x309cc1['message']||_0x5d6407(0x179)+_0x49794c[_0x5d6407(0x186)],_0x309cc1['errorCode']?_0x5d6407(0x1b8)+_0x309cc1[_0x5d6407(0x15a)]:undefined);return _0x309cc1;}catch(_0x5276c7){if(_0x5276c7 instanceof Error&&_0x5276c7['name']===_0x5d6407(0x1a2))throw CliErrors[_0x5d6407(0x171)](_0x5d6407(0x133)+_0x9a4fe7);throw _0x5276c7;}finally{clearTimeout(_0x3730d3);}}async function apiBinaryRequest(_0x2990fa,_0x15e0dd={}){const _0x27ad79=a75_0xc8b5,{method:method=_0x27ad79(0x12f),headers:headers={},timeout:timeout=0x7530}=_0x15e0dd,_0x5956bc=_activeAK,_0xb41d8e=getRuntimeDomain();if(!_0x5956bc)throw CliErrors[_0x27ad79(0x13e)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x27ad79(0x1b0)]+'.');const _0x48a4f7=''+_0xb41d8e+_0x2990fa,_0x171973=new AbortController(),_0x30412a=setTimeout(()=>_0x171973[_0x27ad79(0x157)](),timeout);try{const _0x122933=await fetch(_0x48a4f7,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x27ad79(0x148)],'X-User-AK':_0x5956bc,...headers},'signal':_0x171973[_0x27ad79(0x199)]});if(!_0x122933['ok']){const _0x42e0d0=await decodeResponseBody(_0x122933),_0x426616=_0x42e0d0[_0x27ad79(0x14a)]&&typeof _0x42e0d0[_0x27ad79(0x14a)]===_0x27ad79(0x154)?_0x42e0d0[_0x27ad79(0x14a)]:{},_0x17dde7=firstString(_0x426616[_0x27ad79(0x18d)],_0x426616['message'],_0x426616[_0x27ad79(0x15a)],_0x42e0d0[_0x27ad79(0x17b)]);throwIfRateLimited(_0x122933,_0x42e0d0[_0x27ad79(0x14a)],_0x17dde7);throw CliErrors[_0x27ad79(0x171)](_0x17dde7||_0x27ad79(0x179)+_0x122933[_0x27ad79(0x186)],_0x27ad79(0x197)+_0x48a4f7);}return Buffer[_0x27ad79(0x190)](await _0x122933[_0x27ad79(0x188)]());}catch(_0x594004){if(_0x594004 instanceof Error&&_0x594004['name']===_0x27ad79(0x1a2))throw CliErrors[_0x27ad79(0x171)](_0x27ad79(0x133)+_0x48a4f7);throw _0x594004;}finally{clearTimeout(_0x30412a);}}async function apiFormRequest(_0x51bb4d,_0xd99b45,_0x908052={}){const _0x5d62d4=a75_0xc8b5,{timeout:timeout=0x7530}=_0x908052,_0x4b1e72=_activeAK,_0x4ca8bc=getRuntimeDomain();if(!_0x4b1e72)throw CliErrors[_0x5d62d4(0x13e)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x5d62d4(0x1b0)]+'.');const _0x20fac2=''+_0x4ca8bc+_0x51bb4d,_0x1cc020=new AbortController(),_0x193a19=setTimeout(()=>_0x1cc020[_0x5d62d4(0x157)](),timeout);try{const _0xd6fc50=await fetch(_0x20fac2,{'method':_0x5d62d4(0x180),'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x4b1e72},'body':_0xd99b45,'signal':_0x1cc020['signal']}),_0xf17f83=await decodeResponseBody(_0xd6fc50);if(!_0xf17f83[_0x5d62d4(0x1a8)]){throwIfRateLimited(_0xd6fc50,undefined,_0xf17f83[_0x5d62d4(0x17b)]);throw CliErrors[_0x5d62d4(0x171)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0xd6fc50[_0x5d62d4(0x186)]+')',_0xd6fc50[_0x5d62d4(0x186)]>=0x190?_0x5d62d4(0x174):undefined);}const _0x2a90bb=_0xf17f83['data'];throwIfRateLimited(_0xd6fc50,_0x2a90bb);if(!_0xd6fc50['ok']||_0x2a90bb[_0x5d62d4(0x1c2)]===![])throw CliErrors[_0x5d62d4(0x171)](_0x2a90bb[_0x5d62d4(0x18d)]||_0x2a90bb[_0x5d62d4(0x15c)]||_0x5d62d4(0x179)+_0xd6fc50[_0x5d62d4(0x186)],_0x2a90bb[_0x5d62d4(0x15a)]?'API\x20error\x20code:\x20'+_0x2a90bb[_0x5d62d4(0x15a)]:undefined);return _0x2a90bb;}catch(_0x2c1e6a){if(_0x2c1e6a instanceof Error&&_0x2c1e6a['name']==='AbortError')throw CliErrors[_0x5d62d4(0x171)](_0x5d62d4(0x133)+_0x20fac2);throw _0x2c1e6a;}finally{clearTimeout(_0x193a19);}}async function toolboxRequest(_0x15c21b,_0xfd1b44,_0x3bea17={}){const _0x217355=a75_0xc8b5,{method:method=_0x217355(0x12f),headers:headers={},timeout:timeout=0x7530}=_0x3bea17,_0x54cc05=_activeAK;if(!_0x54cc05)throw CliErrors[_0x217355(0x13e)](_0x217355(0x1b7)+PRODUCT_CONFIG[_0x217355(0x1b0)]+'.');const _0x344c44=getApiDomain()[_0x217355(0x14b)](/\/$/,''),_0x39fe84=new URL(_0x15c21b,_0x344c44+_0x217355(0x1ab));if(_0xfd1b44)for(const [_0x50b345,_0x1a71f4]of Object[_0x217355(0x176)](_0xfd1b44)){_0x1a71f4!==undefined&&_0x1a71f4!==null&&_0x39fe84[_0x217355(0x12d)][_0x217355(0x1b5)](_0x50b345,String(_0x1a71f4));}const _0x23ed94=new AbortController(),_0x6bb46a=setTimeout(()=>_0x23ed94[_0x217355(0x157)](),timeout);try{const _0x32ff9a=await fetch(_0x39fe84,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x217355(0x148)],'X-User-AK':_0x54cc05,...headers},'signal':_0x23ed94['signal']}),_0x210854=await decodeResponseBody(_0x32ff9a);if(!_0x210854['isJson']){throwIfRateLimited(_0x32ff9a,undefined,_0x210854[_0x217355(0x17b)]);throw CliErrors[_0x217355(0x171)]('Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x32ff9a['status']+')',_0x32ff9a[_0x217355(0x186)]>=0x190?_0x217355(0x174):undefined);}const _0x4c1849=_0x210854['data'];throwIfRateLimited(_0x32ff9a,_0x4c1849);if(!_0x32ff9a['ok']){const _0x4086b9=_0x4c1849&&typeof _0x4c1849===_0x217355(0x154)?_0x4c1849:{};throw CliErrors[_0x217355(0x171)](_0x4086b9[_0x217355(0x18d)]||_0x4086b9['message']||_0x217355(0x14d)+_0x32ff9a[_0x217355(0x186)],_0x4086b9[_0x217355(0x15a)]?'Toolbox\x20error\x20code:\x20'+_0x4086b9[_0x217355(0x15a)]:undefined);}if(_0x4c1849&&typeof _0x4c1849===_0x217355(0x154)&&_0x217355(0x1c2)in _0x4c1849&&typeof _0x4c1849[_0x217355(0x1c2)]===_0x217355(0x1a5)){const _0x29f51a=_0x4c1849;if(!_0x29f51a[_0x217355(0x1c2)])throw CliErrors[_0x217355(0x171)](_0x29f51a[_0x217355(0x18d)]||_0x29f51a[_0x217355(0x15c)]||'Toolbox\x20API\x20error',_0x29f51a[_0x217355(0x15a)]?_0x217355(0x17a)+_0x29f51a[_0x217355(0x15a)]:undefined);return _0x29f51a['data'];}return _0x4c1849;}catch(_0x277731){if(_0x277731 instanceof Error&&_0x277731[_0x217355(0x1a7)]===_0x217355(0x1a2))throw CliErrors['apiError'](_0x217355(0x133)+_0x39fe84['toString']());throw _0x277731;}finally{clearTimeout(_0x6bb46a);}}async function skillHubJsonRequest(_0xa10f5e,_0x5835fe={}){const _0x87b086=a75_0xc8b5,{method:method=_0x87b086(0x12f),query:_0x2a30e2,body:_0x613aeb,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5835fe,_0x5dcea1=_activeAK;if(!_0x5dcea1)throw CliErrors[_0x87b086(0x13e)](_0x87b086(0x1b7)+PRODUCT_CONFIG[_0x87b086(0x1b0)]+'.');const _0x325a73=getSkillHubDomain()[_0x87b086(0x14b)](/\/$/,''),_0x26e1ab=new URL(_0xa10f5e,_0x325a73+'/');if(_0x2a30e2)for(const [_0x467ec5,_0x534425]of Object[_0x87b086(0x176)](_0x2a30e2)){_0x534425!==undefined&&_0x534425!==null&&_0x26e1ab[_0x87b086(0x12d)][_0x87b086(0x1b5)](_0x467ec5,String(_0x534425));}const _0x5af3eb=new AbortController(),_0x34bb9c=setTimeout(()=>_0x5af3eb[_0x87b086(0x157)](),timeout);try{const _0x5e4cbd=await fetch(_0x26e1ab['toString'](),{'method':method,'headers':{'Accept':_0x87b086(0x166),'X-Invoke-Source':PRODUCT_CONFIG[_0x87b086(0x148)],'X-User-AK':_0x5dcea1,...headers},'body':_0x613aeb,'signal':_0x5af3eb[_0x87b086(0x199)]}),_0x18a623=await decodeResponseBody(_0x5e4cbd);if(!_0x18a623[_0x87b086(0x1a8)]){if(allowNotFound&&_0x5e4cbd[_0x87b086(0x186)]===0x194)return undefined;throwIfRateLimited(_0x5e4cbd,undefined,_0x18a623[_0x87b086(0x17b)]);throw CliErrors['apiError'](_0x87b086(0x175)+_0x5e4cbd[_0x87b086(0x186)]+')',_0x5e4cbd['status']>=0x190?_0x87b086(0x174):undefined);}const _0x1270e6=_0x18a623['data'];throwIfRateLimited(_0x5e4cbd,_0x1270e6);if(allowNotFound&&isSkillHubNotFoundResponse(_0x5e4cbd[_0x87b086(0x186)],_0x1270e6))return undefined;const _0x19985a=!_0x5e4cbd['ok']||_0x1270e6?.[_0x87b086(0x1c2)]===![]||typeof _0x1270e6?.[_0x87b086(0x134)]===_0x87b086(0x14c)&&_0x1270e6[_0x87b086(0x134)]>=0x190;if(_0x19985a)throw CliErrors['apiError'](_0x1270e6?.[_0x87b086(0x18d)]||_0x1270e6?.[_0x87b086(0x15c)]||_0x1270e6?.[_0x87b086(0x189)]||_0x87b086(0x191)+_0x5e4cbd[_0x87b086(0x186)],_0x1270e6?.['errorCode']?_0x87b086(0x16f)+_0x1270e6[_0x87b086(0x15a)]:undefined);return _0x1270e6?.['data']??_0x1270e6;}catch(_0x4abc80){if(_0x4abc80 instanceof Error&&_0x4abc80['name']===_0x87b086(0x1a2))throw CliErrors['apiError'](_0x87b086(0x133)+_0x26e1ab[_0x87b086(0x18e)]());throw _0x4abc80;}finally{clearTimeout(_0x34bb9c);}}function isSkillHubNotFoundResponse(_0x373fec,_0x4ed58e){const _0x53ff37=a75_0xc8b5;if(_0x373fec===0x194||_0x4ed58e?.[_0x53ff37(0x134)]===0x194)return!![];if(_0x373fec!==0x190&&_0x4ed58e?.[_0x53ff37(0x134)]!==0x190)return![];const _0x5e9d43=[_0x4ed58e?.[_0x53ff37(0x189)],_0x4ed58e?.[_0x53ff37(0x15c)],_0x4ed58e?.[_0x53ff37(0x18d)],_0x4ed58e?.[_0x53ff37(0x149)]][_0x53ff37(0x14f)](_0x3f106e=>typeof _0x3f106e===_0x53ff37(0x15d))[_0x53ff37(0x17e)]('\x20');return/skill not found\b/i['test'](_0x5e9d43);}async function skillHubBinaryRequest(_0x42b493,_0x51b229={}){const _0x1681a7=a75_0xc8b5,{query:_0x28f95f,headers:headers={},timeout:timeout=0x7530}=_0x51b229,_0x34847c=_activeAK;if(!_0x34847c)throw CliErrors['authRequired'](_0x1681a7(0x1b7)+PRODUCT_CONFIG[_0x1681a7(0x1b0)]+'.');const _0x7fdff9=getSkillHubDomain()['replace'](/\/$/,''),_0x1dc3e8=new URL(_0x42b493,_0x7fdff9+'/');if(_0x28f95f)for(const [_0x44baa6,_0x30ddb3]of Object[_0x1681a7(0x176)](_0x28f95f)){_0x30ddb3!==undefined&&_0x30ddb3!==null&&_0x1dc3e8[_0x1681a7(0x12d)][_0x1681a7(0x1b5)](_0x44baa6,String(_0x30ddb3));}const _0x33e087=new AbortController(),_0xf3bad9=setTimeout(()=>_0x33e087[_0x1681a7(0x157)](),timeout);try{const _0x205ddc=await fetch(_0x1dc3e8[_0x1681a7(0x18e)](),{'method':'GET','headers':{'Accept':_0x1681a7(0x1ba),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x34847c,...headers},'signal':_0x33e087[_0x1681a7(0x199)]});if(!_0x205ddc['ok']){const _0x10fffa=await decodeResponseBody(_0x205ddc),_0x2abf3d=_0x10fffa[_0x1681a7(0x14a)]&&typeof _0x10fffa['data']===_0x1681a7(0x154)?_0x10fffa[_0x1681a7(0x14a)]:{},_0x512dfa=firstString(_0x2abf3d[_0x1681a7(0x18d)],_0x2abf3d[_0x1681a7(0x15c)],_0x2abf3d[_0x1681a7(0x189)],_0x2abf3d[_0x1681a7(0x15a)],_0x10fffa['text']);throwIfRateLimited(_0x205ddc,_0x10fffa[_0x1681a7(0x14a)],_0x512dfa);throw CliErrors['apiError'](_0x512dfa||_0x1681a7(0x191)+_0x205ddc[_0x1681a7(0x186)],_0x1681a7(0x197)+_0x1dc3e8[_0x1681a7(0x18e)]());}return Buffer['from'](await _0x205ddc[_0x1681a7(0x188)]());}catch(_0x340534){if(_0x340534 instanceof Error&&_0x340534[_0x1681a7(0x1a7)]===_0x1681a7(0x1a2))throw CliErrors[_0x1681a7(0x171)](_0x1681a7(0x133)+_0x1dc3e8[_0x1681a7(0x18e)]());throw _0x340534;}finally{clearTimeout(_0xf3bad9);}}export async function getBffEndpointContract(_0x4e1e0a,_0x2751b2){const _0x1040e2=a75_0xc8b5;if(_0x2751b2===_0x1040e2(0x165))throw CliErrors[_0x1040e2(0x16b)](_0x1040e2(0x15f)+_0x4e1e0a+_0x1040e2(0x18a)+_0x2751b2);const _0x26e897=await apiRequest(_0x1040e2(0x1af)+encodeURIComponent(_0x4e1e0a)+'/'+encodeURIComponent(_0x2751b2)),_0x66ac44=_0x26e897['data'];if(!_0x66ac44||typeof _0x66ac44!==_0x1040e2(0x154)||Array[_0x1040e2(0x162)](_0x66ac44)||_0x66ac44[_0x1040e2(0x13d)]!==_0x4e1e0a||_0x66ac44[_0x1040e2(0x158)]!==_0x2751b2)throw CliErrors['validation'](_0x1040e2(0x15f)+_0x4e1e0a+_0x1040e2(0x18a)+_0x2751b2);return{'appCode':_0x66ac44['appCode'],'functionName':_0x66ac44[_0x1040e2(0x158)],'description':_0x66ac44['description'],'version':_0x66ac44[_0x1040e2(0x163)],'gmtModified':_0x66ac44[_0x1040e2(0x147)]};}export async function getSqlQueryInfo(_0x31aa85,_0x502895){const _0x2299c0=a75_0xc8b5,_0x300244=await apiRequest(_0x2299c0(0x12c),{'method':_0x2299c0(0x180),'body':{'appCode':_0x31aa85,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x502895}}),_0x494912=_0x300244[_0x2299c0(0x14a)],_0xff589f=_0x494912&&typeof _0x494912===_0x2299c0(0x154)&&_0x2299c0(0x1a6)in _0x494912?_0x494912[_0x2299c0(0x1a6)]?.[0x0]:_0x494912&&typeof _0x494912==='object'&&'sqlCode'in _0x494912?_0x494912:undefined;if(!_0xff589f)throw CliErrors[_0x2299c0(0x16b)](_0x2299c0(0x12e)+_0x502895);return _0xff589f;}function isRemoteAppItem(_0x52d4e0){const _0x5cfcf4=a75_0xc8b5;return!!_0x52d4e0&&typeof _0x52d4e0==='object'&&typeof _0x52d4e0[_0x5cfcf4(0x13d)]===_0x5cfcf4(0x15d)&&typeof _0x52d4e0[_0x5cfcf4(0x13b)]===_0x5cfcf4(0x15d);}function extractRemoteAppItems(_0x573593){const _0x199a35=a75_0xc8b5;if(Array[_0x199a35(0x162)](_0x573593))return _0x573593['filter'](isRemoteAppItem);if(!_0x573593||typeof _0x573593!=='object')throw CliErrors[_0x199a35(0x171)](_0x199a35(0x185));const _0x2398aa=_0x573593;if(Array[_0x199a35(0x162)](_0x2398aa[_0x199a35(0x1a6)]))return _0x2398aa['tableData'][_0x199a35(0x14f)](isRemoteAppItem);if(_0x2398aa[_0x199a35(0x14a)]&&typeof _0x2398aa[_0x199a35(0x14a)]===_0x199a35(0x154)){const _0x1b56c9=_0x2398aa[_0x199a35(0x14a)];if(Array[_0x199a35(0x162)](_0x1b56c9[_0x199a35(0x1a6)]))return _0x1b56c9['tableData'][_0x199a35(0x14f)](isRemoteAppItem);}throw CliErrors[_0x199a35(0x171)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x4e9872=a75_0xc8b5,_0x29ed64=await apiRequest(_0x4e9872(0x170));return extractRemoteAppItems(_0x29ed64['data']);}export async function getLoginUserInfo(){const _0x1f092b=a75_0xc8b5,_0x550321=await apiRequest(_0x1f092b(0x192));if(!_0x550321['data']||typeof _0x550321[_0x1f092b(0x14a)]!==_0x1f092b(0x154)||Array['isArray'](_0x550321[_0x1f092b(0x14a)]))throw CliErrors['apiError'](_0x1f092b(0x195));return _0x550321[_0x1f092b(0x14a)];}export async function listDatasets(_0x108c91,_0x336efe){const _0x1e5feb=a75_0xc8b5,_0x438a5b=await apiRequest(_0x1e5feb(0x151),{'method':_0x1e5feb(0x180),'body':{'appCode':_0x108c91,..._0x336efe?.[_0x1e5feb(0x134)]&&{'code':_0x336efe[_0x1e5feb(0x134)]},..._0x336efe?.[_0x1e5feb(0x1a7)]&&{'name':_0x336efe['name']}}});return extractList(_0x438a5b[_0x1e5feb(0x14a)]);}export async function getDatasetDetail(_0x51f094){const _0xbc0149=a75_0xc8b5,_0x1fa0db=await apiRequest('/client/dataset/get-driven-data?code='+encodeURIComponent(_0x51f094));return _0x1fa0db[_0xbc0149(0x14a)];}export async function getDatasetSdkUsageDoc(_0x51f88d,_0x404372){const _0x3ab039=a75_0xc8b5,_0x12fb68=await toolboxRequest(_0x3ab039(0x1be),{'datasetCode':_0x51f88d,'appCode':_0x404372});return typeof _0x12fb68?.[_0x3ab039(0x1a1)]===_0x3ab039(0x15d)?_0x12fb68['markdown']:'';}export async function uploadRuntimeFile(_0x45aa60,_0x4e2f0c){const _0x1fda33=a75_0xc8b5,_0x1aad51=await readFile(_0x4e2f0c),_0x131527=new FormData();_0x131527['append'](_0x1fda33(0x13d),_0x45aa60),_0x131527[_0x1fda33(0x19a)]('file',new Blob([new Uint8Array(_0x1aad51)]),basename(_0x4e2f0c));const _0x34bde5=await apiFormRequest(_0x1fda33(0x135),_0x131527);return _0x34bde5[_0x1fda33(0x14a)];}export async function queryRuntimeFileUrl(_0x3d6a6b,_0x3ab554={}){const _0xc0e17e=a75_0xc8b5,_0x4afce3=await apiRequest('/client/queryFileUrl',{'method':_0xc0e17e(0x180),'body':{'filePath':_0x3d6a6b,'downloadFlag':_0x3ab554['download']??![],..._0x3ab554['longTerm']?{'longTerm':!![]}:{}}});return _0x4afce3[_0xc0e17e(0x14a)];}export async function recognizeRuntimeOcr(_0x54a6e1,_0x260e27){const _0x151051=a75_0xc8b5,_0x257906=await apiRequest(_0x151051(0x140),{'method':_0x151051(0x180),'body':{'appCode':_0x54a6e1,'url':_0x260e27[_0x151051(0x167)],'type':_0x260e27[_0x151051(0x153)]}});return _0x257906[_0x151051(0x14a)];}export async function getRuntimeAppConfigByKey(_0x205db4,_0x4d506e){const _0x5c9189=a75_0xc8b5,_0x55cb66=new URLSearchParams({'appCode':_0x205db4,'key':_0x4d506e}),_0x4f121b=await apiRequest(_0x5c9189(0x12b)+_0x55cb66[_0x5c9189(0x18e)]());if(typeof _0x4f121b['data']!=='string')throw CliErrors[_0x5c9189(0x16b)](_0x5c9189(0x161)+_0x4d506e);return _0x4f121b[_0x5c9189(0x14a)];}export async function listRuntimeArtifacts(_0x2182f5,_0x185aad){const _0xd88b5e=a75_0xc8b5,_0x250fe7=new URLSearchParams({'appCode':_0x2182f5});if(_0x185aad?.['artifactType'])_0x250fe7[_0xd88b5e(0x1b5)]('artifactType',_0x185aad[_0xd88b5e(0x17c)]);if(_0x185aad?.[_0xd88b5e(0x164)])_0x250fe7[_0xd88b5e(0x1b5)](_0xd88b5e(0x164),_0x185aad[_0xd88b5e(0x164)]);if(_0x185aad?.[_0xd88b5e(0x178)]!==undefined)_0x250fe7['set'](_0xd88b5e(0x178),String(_0x185aad[_0xd88b5e(0x178)]));const _0x11727e=await apiRequest(_0xd88b5e(0x198)+_0x250fe7['toString']());return Array[_0xd88b5e(0x162)](_0x11727e[_0xd88b5e(0x14a)])?_0x11727e[_0xd88b5e(0x14a)]:[];}export async function getRuntimeArtifact(_0x9117fc,_0x3535e8){const _0x45eba6=a75_0xc8b5,_0x12fdf9=await apiRequest(_0x45eba6(0x1ac)+_0x9117fc+'?appCode='+encodeURIComponent(_0x3535e8));if(!_0x12fdf9[_0x45eba6(0x14a)])throw CliErrors['validation'](_0x45eba6(0x137)+_0x9117fc);return _0x12fdf9['data'];}export async function createRuntimeArtifact(_0x1b4825,_0x28510d){const _0xfcaa4e=a75_0xc8b5,_0x321a1c=await apiRequest(_0xfcaa4e(0x1ae),{'method':_0xfcaa4e(0x180),'body':{'appCode':_0x1b4825,..._0x28510d}});return _0x321a1c[_0xfcaa4e(0x14a)];}export async function updateRuntimeArtifact(_0x50ef92,_0x4c01ea,_0x119070){const _0x122d1d=a75_0xc8b5,_0x3648fc=await apiRequest(_0x122d1d(0x1ac)+_0x50ef92+_0x122d1d(0x1bd),{'method':_0x122d1d(0x180),'body':{'appCode':_0x4c01ea,..._0x119070}});return _0x3648fc[_0x122d1d(0x14a)];}export async function listPersonalBffs(_0x430e1e){const _0x3ebb4a=a75_0xc8b5,_0x543fb8=await apiRequest(_0x3ebb4a(0x1b6)+encodeURIComponent(_0x430e1e));return Array[_0x3ebb4a(0x162)](_0x543fb8[_0x3ebb4a(0x14a)])?_0x543fb8[_0x3ebb4a(0x14a)]:[];}export async function getPersonalBff(_0xe40d24,_0x25770f){const _0xdff862=a75_0xc8b5,_0x32737f=await apiRequest(_0xdff862(0x142)+_0xe40d24+'?appCode='+encodeURIComponent(_0x25770f));if(!_0x32737f[_0xdff862(0x14a)])throw CliErrors[_0xdff862(0x16b)](_0xdff862(0x1a4)+_0xe40d24);return _0x32737f[_0xdff862(0x14a)];}export async function createPersonalBff(_0x5125c8,_0x47f99d){const _0x12acea=a75_0xc8b5,_0x33d0db=await apiRequest(_0x12acea(0x13a),{'method':'POST','body':{'appCode':_0x5125c8,..._0x47f99d}});return _0x33d0db[_0x12acea(0x14a)];}export async function updatePersonalBff(_0x9813bf,_0xbf5ced,_0x487191){const _0x84e984=a75_0xc8b5,_0x493501=await apiRequest(_0x84e984(0x142)+_0x9813bf+_0x84e984(0x1bd),{'method':_0x84e984(0x180),'body':{'appCode':_0xbf5ced,..._0x487191}});return _0x493501[_0x84e984(0x14a)];}export async function executePersonalBff(_0x550d4b,_0x3bcfaf,_0x2b19b3){const _0x29cc8d=a75_0xc8b5,_0x5bc3f2=await apiRequest(_0x29cc8d(0x142)+_0x550d4b+_0x29cc8d(0x183)+encodeURIComponent(_0x3bcfaf),{'method':'POST','body':_0x2b19b3});return _0x5bc3f2['data'];}export async function listPersonalKnowledgeBaseItems(_0x357342){const _0x4db851=a75_0xc8b5,_0x2450d9=await apiRequest('/client/knowledge-base/personal/list?appCode='+encodeURIComponent(_0x357342));return Array[_0x4db851(0x162)](_0x2450d9[_0x4db851(0x14a)])?_0x2450d9[_0x4db851(0x14a)]:[];}export async function getPersonalKnowledgeBaseItem(_0xf6ead,_0x2cbe65){const _0xa91a3f=a75_0xc8b5,_0x4533e3=await apiRequest('/client/knowledge-base/personal/'+_0xf6ead+_0xa91a3f(0x17f)+encodeURIComponent(_0x2cbe65));if(!_0x4533e3[_0xa91a3f(0x14a)])throw CliErrors[_0xa91a3f(0x16b)](_0xa91a3f(0x150)+_0xf6ead);return _0x4533e3['data'];}export async function createPersonalKnowledgeBaseItem(_0x26b101,_0x453616){const _0x180c2a=a75_0xc8b5,_0x3c70d9=await apiRequest(_0x180c2a(0x1c0),{'method':_0x180c2a(0x180),'body':{'appCode':_0x26b101,..._0x453616}});return _0x3c70d9['data'];}function a75_0xc8b5(_0x3ee0c5,_0xf31aa3){_0x3ee0c5=_0x3ee0c5-0x12b;const _0x27ad98=a75_0x27ad();let _0xc8b5f1=_0x27ad98[_0x3ee0c5];return _0xc8b5f1;}export async function updatePersonalKnowledgeBaseItem(_0x335143,_0x4651ce,_0xe9e661){const _0xff7e89=a75_0xc8b5,_0x1e0306=await apiRequest(_0xff7e89(0x1a9)+_0x335143+_0xff7e89(0x1bd),{'method':'POST','body':{'appCode':_0x4651ce,..._0xe9e661}});return _0x1e0306[_0xff7e89(0x14a)];}export async function searchKnowledgeBase(_0x2f6c2d,_0x4d4502){const _0x1f65b4=a75_0xc8b5,_0x27564c=await apiRequest(_0x1f65b4(0x152),{'method':_0x1f65b4(0x180),'body':{'appCode':_0x2f6c2d,'query':_0x4d4502[_0x1f65b4(0x169)],..._0x4d4502[_0x1f65b4(0x194)]!==undefined?{'topK':_0x4d4502[_0x1f65b4(0x194)]}:{}}});return Array[_0x1f65b4(0x162)](_0x27564c[_0x1f65b4(0x14a)])?_0x27564c['data']:[];}function a75_0x27ad(){const _0x1ccc5c=['/client/knowledge-base/personal/','/skills','/api/node-toolbox/','/client/artifact/','2952AIJVJc','/client/artifact/create','/client/bff/endpoint/','newConfigFileName','undefined','trim','623706bZELzJ','errors','set','/client/runtime-bff/personal/list?appCode=','Configure\x20accessKey\x20in\x20','API\x20error\x20code:\x20','84YuDyOj','application/octet-stream','publishedVersion','warnings','/update','api-doc-generator','application/zip','/client/knowledge-base/personal/create','scope','success','/client/app-config/getByKey?','/client/sql/query','searchParams','SQL\x20query\x20not\x20found:\x20','GET','confirmWarnings','PRIVATE','summary','Request\x20timeout:\x20','code','/client/uploadFile','slug','Artifact\x20not\x20found:\x20id=','namespace','.zip','/client/runtime-bff/personal/create','appName','values','appCode','authRequired','NAMESPACE_ONLY','/client/ocr','company','/client/runtime-bff/personal/','content','base64','items','Missing\x20Skill\x20package\x20payload.','gmtModified','invokeSource','error','data','replace','number','Toolbox\x20API\x20error:\x20','personal','filter','Knowledge-base\x20entry\x20not\x20found:\x20id=','/client/dataset/list','/client/knowledge-base/search','type','object','json','packageBase64','abort','functionName','displayName','errorCode','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','message','string','5962302ZSGGTQ','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','220xHvjFz','Invalid\x20app\x20config\x20value:\x20key=','isArray','version','source','functions','application/json','url','3766zhfuzS','query','/publish','validation','toLowerCase','skillCode','tags','SkillHub\x20error\x20code:\x20','/client/app/my-apps','apiError','effective','valid','Check\x20your\x20credentials\x20and\x20try\x20again.','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','entries','30emPcuw','favorite','API\x20error:\x20','Toolbox\x20error\x20code:\x20','text','artifactType','skill','join','?appCode=','POST','visibility','skillName','/execute?appCode=','ownerPreviewVersion','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','status','find','arrayBuffer','msg',',\x20name=','/publish/validate','740686oqSqYQ','errorMsg','toString','554807TwMHNx','from','SkillHub\x20API\x20error:\x20','/client/user/loginUserInfo','headers','topK','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','51465Skkwea','Download\x20failed:\x20','/client/artifact/list?','signal','append','191995LNxTga','resolvedVersion','description','/api/runtime/v1/namespaces/','/download','/versions/','markdown','AbortError','/api/cli/v1/skills/','Personal\x20BFF\x20not\x20found:\x20id=','boolean','tableData','name','isJson'];a75_0x27ad=function(){return _0x1ccc5c;};return a75_0x27ad();}export async function getRuntimeSkillByCode(_0xf5df64,_0x4596ca){const _0x84dc9b=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0xf5df64)+'/'+encodeURIComponent(_0x4596ca),{'allowNotFound':!![]});return _0x84dc9b?skillHubRuntimeDetailToRuntimeSkill(_0x84dc9b):undefined;}export async function listRuntimeSkills(_0x271a13){const _0x4b922c=a75_0xc8b5,_0xc505ef=await skillHubJsonRequest(_0x4b922c(0x19e)+encodeURIComponent(_0x271a13[_0x4b922c(0x13d)])+_0x4b922c(0x1aa),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x271a13[_0x4b922c(0x13d)],_0xc505ef,_0x271a13[_0x4b922c(0x1c1)]??'all',_0x271a13[_0x4b922c(0x134)]);}export async function listPersonalRuntimeSkills(_0x234931){const _0x1f32d3=a75_0xc8b5;return(await listRuntimeSkills({'appCode':_0x234931,'scope':_0x1f32d3(0x14e)}))[_0x1f32d3(0x14e)];}export async function listCompanyRuntimeSkills(_0x5cfe8c){const _0x2f9df3=a75_0xc8b5;return(await listRuntimeSkills({'appCode':_0x5cfe8c,'scope':_0x2f9df3(0x141)}))[_0x2f9df3(0x141)];}export async function listVisibleRuntimeSkills(_0x5deba6){return(await listRuntimeSkills({'appCode':_0x5deba6,'scope':'all'}))['effective'];}export async function createPersonalRuntimeSkill(_0x51c964,_0x16e901,_0x4e9884={}){const _0x13bf34=a75_0xc8b5;return publishRuntimeSkill(_0x51c964,_0x16e901,{'visibility':_0x13bf34(0x131),'confirmWarnings':_0x4e9884[_0x13bf34(0x130)]});}export async function updatePersonalRuntimeSkill(_0x25e8bf,_0x56529e,_0x2b7e63,_0x427f8d={}){const _0x133dcd=a75_0xc8b5;return publishRuntimeSkill(_0x56529e,{..._0x2b7e63,'skillCode':_0x2b7e63[_0x133dcd(0x16d)]??_0x25e8bf},{'visibility':'PRIVATE','confirmWarnings':_0x427f8d[_0x133dcd(0x130)]});}export async function publishCompanyRuntimeSkill(_0x3a2d00,_0x469ef8,_0x47699c={}){const _0xde2ace=a75_0xc8b5;return publishRuntimeSkill(_0x3a2d00,_0x469ef8,{'visibility':_0xde2ace(0x13f),'confirmWarnings':_0x47699c[_0xde2ace(0x130)]});}export async function validateRuntimeSkillPublish(_0x1bb91d,_0x43555a,_0x33262c){const _0x406a61=a75_0xc8b5,_0x43862a=buildRuntimeSkillPublishForm(_0x43555a,_0x33262c['visibility']),_0x680db2=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x1bb91d)+_0x406a61(0x18b),{'method':_0x406a61(0x180),'body':_0x43862a});return{'valid':_0x680db2[_0x406a61(0x173)]===!![],'errors':Array[_0x406a61(0x162)](_0x680db2[_0x406a61(0x1b4)])?_0x680db2[_0x406a61(0x1b4)]:[],'warnings':Array[_0x406a61(0x162)](_0x680db2[_0x406a61(0x1bc)])?_0x680db2[_0x406a61(0x1bc)]:[],'resolvedSlug':_0x680db2['resolvedSlug'],'resolvedVersion':_0x680db2[_0x406a61(0x19c)]};}export async function downloadRuntimeSkillPackage(_0x3353ce,_0x471f74,_0x34f0aa,_0x5a3082){const _0x58d652=a75_0xc8b5;void _0x3353ce;const _0x344b12=_0x5a3082?_0x58d652(0x1a3)+encodeURIComponent(_0x34f0aa)+'/'+encodeURIComponent(_0x471f74)+_0x58d652(0x1a0)+encodeURIComponent(_0x5a3082)+_0x58d652(0x19f):'/api/cli/v1/skills/'+encodeURIComponent(_0x34f0aa)+'/'+encodeURIComponent(_0x471f74)+_0x58d652(0x19f);return skillHubBinaryRequest(_0x344b12);}async function publishRuntimeSkill(_0x1834d0,_0x45565f,_0x18aa2d){const _0x54aa08=a75_0xc8b5,_0x5a0191=buildRuntimeSkillPublishForm(_0x45565f,_0x18aa2d[_0x54aa08(0x181)]),_0x3ae2a0=await skillHubJsonRequest(_0x54aa08(0x1a3)+encodeURIComponent(_0x1834d0)+_0x54aa08(0x16a),{'method':_0x54aa08(0x180),'query':{'confirmWarnings':_0x18aa2d['confirmWarnings']===!![]?!![]:undefined},'body':_0x5a0191});return{'appCode':_0x3ae2a0['namespace']??_0x1834d0,'skillCode':_0x3ae2a0[_0x54aa08(0x136)]??_0x45565f[_0x54aa08(0x16d)]??'','skillName':_0x45565f[_0x54aa08(0x182)]??_0x3ae2a0[_0x54aa08(0x136)]??_0x45565f['skillCode'],'description':_0x45565f[_0x54aa08(0x19d)],'scope':skillHubVisibilityToScope(_0x3ae2a0[_0x54aa08(0x181)]??_0x18aa2d[_0x54aa08(0x181)])??_0x54aa08(0x14e),'version':_0x3ae2a0['version']??_0x45565f[_0x54aa08(0x163)],'tags':_0x45565f[_0x54aa08(0x16e)],'content':_0x45565f[_0x54aa08(0x143)]};}function buildRuntimeSkillPublishForm(_0x5142e9,_0x341335){const _0x22cda1=a75_0xc8b5,_0x3dd5bd=new FormData();return _0x3dd5bd[_0x22cda1(0x1b5)]('file',runtimeSkillPackageFile(_0x5142e9)),_0x5142e9[_0x22cda1(0x182)]?.[_0x22cda1(0x1b2)]()&&_0x3dd5bd[_0x22cda1(0x1b5)]('displayName',_0x5142e9[_0x22cda1(0x182)]['trim']()),_0x3dd5bd[_0x22cda1(0x1b5)](_0x22cda1(0x181),_0x341335),_0x3dd5bd;}function runtimeSkillPackageFile(_0x4249d4){const _0x210e42=a75_0xc8b5;if(!_0x4249d4[_0x210e42(0x156)])throw CliErrors['validation'](_0x210e42(0x146));const _0x4c2fcd=Buffer[_0x210e42(0x190)](_0x4249d4[_0x210e42(0x156)],_0x210e42(0x144)),_0x11878e=new Blob([_0x4c2fcd],{'type':_0x210e42(0x1bf)}),_0x4028e9=(_0x4249d4[_0x210e42(0x16d)]||_0x210e42(0x17d))+_0x210e42(0x139);if(typeof File!==_0x210e42(0x1b1))return new File([_0x11878e],_0x4028e9,{'type':'application/zip'});return _0x11878e;}function normalizeSkillHubRuntimeListResponse(_0x79adac,_0x1fd32f,_0x471da3,_0x174376){const _0x58592c=a75_0xc8b5,_0x10bde2=Array[_0x58592c(0x162)](_0x1fd32f)?_0x1fd32f:Array[_0x58592c(0x162)](_0x1fd32f?.[_0x58592c(0x145)])?_0x1fd32f[_0x58592c(0x145)]:[],_0x13ec73=_0x174376?.[_0x58592c(0x1b2)](),_0x59409e=_0x10bde2[_0x58592c(0x14f)](_0x4007c4=>!_0x13ec73||_0x4007c4[_0x58592c(0x136)]===_0x13ec73)['map'](skillHubRuntimeItemToRuntimeSkill)[_0x58592c(0x14f)](_0x33c3e9=>Boolean(_0x33c3e9)),_0x2fc33a=_0x59409e[_0x58592c(0x14f)](_0x406f80=>_0x406f80[_0x58592c(0x1c1)]===_0x58592c(0x14e)),_0x2b5197=_0x59409e[_0x58592c(0x14f)](_0x249191=>_0x249191[_0x58592c(0x1c1)]===_0x58592c(0x141));return{'appCode':_0x79adac,'personal':_0x471da3===_0x58592c(0x141)?[]:_0x2fc33a,'company':_0x471da3==='personal'?[]:_0x2b5197,'effective':buildEffectiveRuntimeSkills(_0x2fc33a,_0x2b5197,_0x471da3)};}function skillHubRuntimeItemToRuntimeSkill(_0x2ca623){const _0x5ba448=a75_0xc8b5,_0x4f8cf8=_0x2ca623[_0x5ba448(0x136)]?.[_0x5ba448(0x1b2)](),_0x4d387b=skillHubVisibilityToScope(_0x2ca623[_0x5ba448(0x181)]);if(!_0x4f8cf8||!_0x4d387b)return undefined;return{'id':_0x2ca623['id'],'appCode':_0x2ca623['namespace'],'skillCode':_0x4f8cf8,'skillName':_0x2ca623[_0x5ba448(0x159)]??_0x4f8cf8,'description':_0x2ca623[_0x5ba448(0x132)],'scope':_0x4d387b,'version':skillHubRuntimeItemVersion(_0x2ca623),'status':_0x2ca623['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x5e34d7){const _0x256d03=a75_0xc8b5,_0x3c0f89=_0x5e34d7[_0x256d03(0x136)]?.[_0x256d03(0x1b2)]();if(!_0x3c0f89)return undefined;return{'id':_0x5e34d7['id'],'appCode':_0x5e34d7[_0x256d03(0x138)],'skillCode':_0x3c0f89,'skillName':_0x5e34d7[_0x256d03(0x159)]??_0x3c0f89,'description':_0x5e34d7[_0x256d03(0x132)],'example':_0x5e34d7['example'],'scope':skillHubVisibilityToScope(_0x5e34d7[_0x256d03(0x181)])??_0x5e34d7[_0x256d03(0x181)]?.[_0x256d03(0x16c)](),'version':skillHubRuntimeItemVersion(_0x5e34d7),'status':_0x5e34d7[_0x256d03(0x186)]};}function skillHubVisibilityToScope(_0x46eba6){const _0x42f48a=a75_0xc8b5;if(_0x46eba6===_0x42f48a(0x131))return'personal';if(_0x46eba6===_0x42f48a(0x13f))return _0x42f48a(0x141);return undefined;}function skillHubRuntimeItemVersion(_0x43ebbb){const _0x4f57b1=a75_0xc8b5;return _0x43ebbb[_0x4f57b1(0x1bb)]?.[_0x4f57b1(0x163)]??_0x43ebbb['headlineVersion']?.[_0x4f57b1(0x163)]??_0x43ebbb[_0x4f57b1(0x184)]?.[_0x4f57b1(0x163)];}function buildEffectiveRuntimeSkills(_0x5241f6,_0x197866,_0x34a0fa){const _0x48c28f=a75_0xc8b5;if(_0x34a0fa===_0x48c28f(0x14e))return _0x5241f6;if(_0x34a0fa===_0x48c28f(0x141))return _0x197866;const _0x283d4d=new Map();for(const _0x4567e8 of _0x197866){_0x283d4d[_0x48c28f(0x1b5)](_0x4567e8['skillCode'],_0x4567e8);}for(const _0x3475cf of _0x5241f6){_0x283d4d[_0x48c28f(0x1b5)](_0x3475cf[_0x48c28f(0x16d)],_0x3475cf);}return Array[_0x48c28f(0x190)](_0x283d4d[_0x48c28f(0x13c)]());}function normalizeRuntimeSkillListResponse(_0x41a9e3,_0x3e32b6){const _0x5d9be8=a75_0xc8b5;if(Array[_0x5d9be8(0x162)](_0x3e32b6)){const _0x1ab4bc=_0x3e32b6[_0x5d9be8(0x14f)](_0x289f60=>_0x289f60[_0x5d9be8(0x1c1)]===_0x5d9be8(0x14e)),_0x69acb7=_0x3e32b6[_0x5d9be8(0x14f)](_0x5bab62=>_0x5bab62[_0x5d9be8(0x1c1)]===_0x5d9be8(0x141));return{'appCode':_0x41a9e3,'personal':_0x1ab4bc,'company':_0x69acb7,'effective':[..._0x69acb7,..._0x1ab4bc]};}return{'appCode':_0x3e32b6?.[_0x5d9be8(0x13d)]??_0x41a9e3,'personal':Array[_0x5d9be8(0x162)](_0x3e32b6?.['personal'])?_0x3e32b6['personal']:[],'company':Array[_0x5d9be8(0x162)](_0x3e32b6?.[_0x5d9be8(0x141)])?_0x3e32b6[_0x5d9be8(0x141)]:[],'effective':Array[_0x5d9be8(0x162)](_0x3e32b6?.[_0x5d9be8(0x172)])?_0x3e32b6[_0x5d9be8(0x172)]:[]};}
1
+ (function(_0xf118da,_0x6bf8bb){const _0x5c52b6=a76_0x37c4,_0x4ba269=_0xf118da();while(!![]){try{const _0x41ab06=-parseInt(_0x5c52b6(0xbb))/0x1*(parseInt(_0x5c52b6(0xe6))/0x2)+-parseInt(_0x5c52b6(0x82))/0x3*(parseInt(_0x5c52b6(0xaa))/0x4)+parseInt(_0x5c52b6(0x107))/0x5*(parseInt(_0x5c52b6(0xa1))/0x6)+parseInt(_0x5c52b6(0x91))/0x7+-parseInt(_0x5c52b6(0xdb))/0x8*(-parseInt(_0x5c52b6(0xbd))/0x9)+parseInt(_0x5c52b6(0x92))/0xa+parseInt(_0x5c52b6(0xe3))/0xb*(-parseInt(_0x5c52b6(0xe8))/0xc);if(_0x41ab06===_0x6bf8bb)break;else _0x4ba269['push'](_0x4ba269['shift']());}catch(_0x57bee2){_0x4ba269['push'](_0x4ba269['shift']());}}}(a76_0x3493,0x8b09b));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x37c4(_0x3e6695,_0x3cacfd){_0x3e6695=_0x3e6695-0x81;const _0x349356=a76_0x3493();let _0x37c435=_0x349356[_0x3e6695];return _0x37c435;}import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';let _activeAK;export function setActiveAK(_0x3be2b0){_activeAK=_0x3be2b0||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x57baf0){const _0x35d4eb=a76_0x37c4;for(const _0x3f9a3b of _0x57baf0){if(typeof _0x3f9a3b==='string'&&_0x3f9a3b[_0x35d4eb(0x99)]())return _0x3f9a3b[_0x35d4eb(0x99)]();}return undefined;}async function decodeResponseBody(_0x544675){const _0x546833=a76_0x37c4;if(typeof _0x544675['text']==='function')try{const _0x477ea6=await _0x544675[_0x546833(0xf8)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x477ea6),'text':_0x477ea6};}catch{return{'isJson':![],'text':_0x477ea6[_0x546833(0x99)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x544675[_0x546833(0xfd)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x14d821,_0xf79c4a,_0x5bb4d1){const _0x22a8c4=a76_0x37c4,_0x3fa06a=_0xf79c4a&&typeof _0xf79c4a===_0x22a8c4(0xef)?_0xf79c4a:{},_0xed3798=[_0x3fa06a[_0x22a8c4(0x87)],_0x3fa06a[_0x22a8c4(0xed)]]['find'](_0x3e08a9=>Number(_0x3e08a9)===0x1ad),_0xb5875e=createRateLimitError({'status':_0x14d821['status']===0x1ad?_0x14d821[_0x22a8c4(0x87)]:_0xed3798??_0x14d821[_0x22a8c4(0x87)],'errorCode':firstString(_0x3fa06a[_0x22a8c4(0xd0)],typeof _0x3fa06a[_0x22a8c4(0xed)]===_0x22a8c4(0xad)?_0x3fa06a['code']:undefined),'message':firstString(_0x3fa06a[_0x22a8c4(0xb8)],_0x3fa06a[_0x22a8c4(0xae)],_0x3fa06a[_0x22a8c4(0x108)],_0x5bb4d1),'retryAfter':readRetryAfter(_0x14d821[_0x22a8c4(0xa5)])??readRetryAfterSeconds(_0xf79c4a)});if(_0xb5875e)throw _0xb5875e;}async function apiRequest(_0x1a7f7,_0x262908={}){const _0x2c4a61=a76_0x37c4,{method:method=_0x2c4a61(0xc9),body:_0x5ea9af,headers:headers={},timeout:timeout=0x7530}=_0x262908,_0x72d575=_activeAK,_0x39a99c=getRuntimeDomain();if(!_0x72d575)throw CliErrors[_0x2c4a61(0x10b)](_0x2c4a61(0x10d)+PRODUCT_CONFIG[_0x2c4a61(0xb2)]+'.');const _0x3cf18e=''+_0x39a99c+_0x1a7f7,_0x253a58={'X-User-AK':_0x72d575},_0x229512=new AbortController(),_0x1c9e3f=setTimeout(()=>_0x229512[_0x2c4a61(0xcf)](),timeout);try{const _0x15f754=await fetch(_0x3cf18e,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x2c4a61(0xc0)],..._0x253a58,...headers},'body':_0x5ea9af?JSON[_0x2c4a61(0xcd)](_0x5ea9af):undefined,'signal':_0x229512[_0x2c4a61(0xbf)]}),_0x1ff557=await decodeResponseBody(_0x15f754);if(!_0x1ff557[_0x2c4a61(0xc8)]){throwIfRateLimited(_0x15f754,undefined,_0x1ff557['text']);throw CliErrors['apiError'](_0x2c4a61(0xf4)+_0x15f754[_0x2c4a61(0x87)]+')',_0x15f754[_0x2c4a61(0x87)]>=0x190?_0x2c4a61(0xa4):undefined);}const _0x2de229=_0x1ff557[_0x2c4a61(0xd5)];throwIfRateLimited(_0x15f754,_0x2de229);if(!_0x15f754['ok']||_0x2de229[_0x2c4a61(0xcb)]===![])throw CliErrors[_0x2c4a61(0xd2)](_0x2de229[_0x2c4a61(0xb8)]||_0x2de229[_0x2c4a61(0xae)]||_0x2c4a61(0x110)+_0x15f754[_0x2c4a61(0x87)],_0x2de229[_0x2c4a61(0xd0)]?_0x2c4a61(0xf2)+_0x2de229[_0x2c4a61(0xd0)]:undefined);return _0x2de229;}catch(_0x8c11be){if(_0x8c11be instanceof Error&&_0x8c11be['name']===_0x2c4a61(0x8a))throw CliErrors[_0x2c4a61(0xd2)](_0x2c4a61(0x9e)+_0x3cf18e);throw _0x8c11be;}finally{clearTimeout(_0x1c9e3f);}}async function apiBinaryRequest(_0x4b03c2,_0x191bc7={}){const _0x5a27a5=a76_0x37c4,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x191bc7,_0x5addca=_activeAK,_0x4920e6=getRuntimeDomain();if(!_0x5addca)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x55e8cf=''+_0x4920e6+_0x4b03c2,_0x212143=new AbortController(),_0x41500c=setTimeout(()=>_0x212143[_0x5a27a5(0xcf)](),timeout);try{const _0x41db4b=await fetch(_0x55e8cf,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5a27a5(0xc0)],'X-User-AK':_0x5addca,...headers},'signal':_0x212143['signal']});if(!_0x41db4b['ok']){const _0x5566c3=await decodeResponseBody(_0x41db4b),_0x3a6ed0=_0x5566c3[_0x5a27a5(0xd5)]&&typeof _0x5566c3[_0x5a27a5(0xd5)]===_0x5a27a5(0xef)?_0x5566c3[_0x5a27a5(0xd5)]:{},_0x484d82=firstString(_0x3a6ed0[_0x5a27a5(0xb8)],_0x3a6ed0[_0x5a27a5(0xae)],_0x3a6ed0[_0x5a27a5(0xd0)],_0x5566c3[_0x5a27a5(0xf8)]);throwIfRateLimited(_0x41db4b,_0x5566c3[_0x5a27a5(0xd5)],_0x484d82);throw CliErrors[_0x5a27a5(0xd2)](_0x484d82||_0x5a27a5(0x110)+_0x41db4b[_0x5a27a5(0x87)],_0x5a27a5(0xf3)+_0x55e8cf);}return Buffer[_0x5a27a5(0xa0)](await _0x41db4b[_0x5a27a5(0x93)]());}catch(_0x5b7305){if(_0x5b7305 instanceof Error&&_0x5b7305[_0x5a27a5(0x106)]===_0x5a27a5(0x8a))throw CliErrors[_0x5a27a5(0xd2)]('Request\x20timeout:\x20'+_0x55e8cf);throw _0x5b7305;}finally{clearTimeout(_0x41500c);}}async function apiFormRequest(_0x41c920,_0x13c20a,_0x1cd60c={}){const _0x5c51e2=a76_0x37c4,{timeout:timeout=0x7530}=_0x1cd60c,_0x49a6ee=_activeAK,_0x373390=getRuntimeDomain();if(!_0x49a6ee)throw CliErrors[_0x5c51e2(0x10b)](_0x5c51e2(0x10d)+PRODUCT_CONFIG[_0x5c51e2(0xb2)]+'.');const _0xcf7e02=''+_0x373390+_0x41c920,_0x447852=new AbortController(),_0x3f5764=setTimeout(()=>_0x447852[_0x5c51e2(0xcf)](),timeout);try{const _0x6fbd6c=await fetch(_0xcf7e02,{'method':_0x5c51e2(0x8b),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5c51e2(0xc0)],'X-User-AK':_0x49a6ee},'body':_0x13c20a,'signal':_0x447852[_0x5c51e2(0xbf)]}),_0x4dce75=await decodeResponseBody(_0x6fbd6c);if(!_0x4dce75[_0x5c51e2(0xc8)]){throwIfRateLimited(_0x6fbd6c,undefined,_0x4dce75[_0x5c51e2(0xf8)]);throw CliErrors[_0x5c51e2(0xd2)](_0x5c51e2(0xf4)+_0x6fbd6c[_0x5c51e2(0x87)]+')',_0x6fbd6c[_0x5c51e2(0x87)]>=0x190?_0x5c51e2(0xa4):undefined);}const _0x16247c=_0x4dce75[_0x5c51e2(0xd5)];throwIfRateLimited(_0x6fbd6c,_0x16247c);if(!_0x6fbd6c['ok']||_0x16247c[_0x5c51e2(0xcb)]===![])throw CliErrors['apiError'](_0x16247c[_0x5c51e2(0xb8)]||_0x16247c[_0x5c51e2(0xae)]||_0x5c51e2(0x110)+_0x6fbd6c[_0x5c51e2(0x87)],_0x16247c[_0x5c51e2(0xd0)]?'API\x20error\x20code:\x20'+_0x16247c[_0x5c51e2(0xd0)]:undefined);return _0x16247c;}catch(_0x3ab214){if(_0x3ab214 instanceof Error&&_0x3ab214[_0x5c51e2(0x106)]==='AbortError')throw CliErrors['apiError']('Request\x20timeout:\x20'+_0xcf7e02);throw _0x3ab214;}finally{clearTimeout(_0x3f5764);}}async function toolboxRequest(_0x971f4f,_0x563fd4,_0x3a22a1={}){const _0x49d6a8=a76_0x37c4,{method:method=_0x49d6a8(0xc9),headers:headers={},timeout:timeout=0x7530}=_0x3a22a1,_0xd07b25=_activeAK;if(!_0xd07b25)throw CliErrors['authRequired'](_0x49d6a8(0x10d)+PRODUCT_CONFIG[_0x49d6a8(0xb2)]+'.');const _0x32362a=getApiDomain()[_0x49d6a8(0x100)](/\/$/,''),_0x1e8271=new URL(_0x971f4f,_0x32362a+_0x49d6a8(0x10e));if(_0x563fd4)for(const [_0x4d6ab7,_0x106a50]of Object[_0x49d6a8(0x83)](_0x563fd4)){_0x106a50!==undefined&&_0x106a50!==null&&_0x1e8271[_0x49d6a8(0xb9)][_0x49d6a8(0xea)](_0x4d6ab7,String(_0x106a50));}const _0x5d5fc8=new AbortController(),_0x6500bf=setTimeout(()=>_0x5d5fc8[_0x49d6a8(0xcf)](),timeout);try{const _0x1d7e2f=await fetch(_0x1e8271,{'method':method,'headers':{'Content-Type':_0x49d6a8(0xd3),'X-Invoke-Source':PRODUCT_CONFIG[_0x49d6a8(0xc0)],'X-User-AK':_0xd07b25,...headers},'signal':_0x5d5fc8[_0x49d6a8(0xbf)]}),_0x565347=await decodeResponseBody(_0x1d7e2f);if(!_0x565347[_0x49d6a8(0xc8)]){throwIfRateLimited(_0x1d7e2f,undefined,_0x565347['text']);throw CliErrors['apiError'](_0x49d6a8(0xd9)+_0x1d7e2f[_0x49d6a8(0x87)]+')',_0x1d7e2f[_0x49d6a8(0x87)]>=0x190?_0x49d6a8(0xa4):undefined);}const _0x309aeb=_0x565347['data'];throwIfRateLimited(_0x1d7e2f,_0x309aeb);if(!_0x1d7e2f['ok']){const _0x5904a0=_0x309aeb&&typeof _0x309aeb===_0x49d6a8(0xef)?_0x309aeb:{};throw CliErrors['apiError'](_0x5904a0[_0x49d6a8(0xb8)]||_0x5904a0['message']||_0x49d6a8(0xd8)+_0x1d7e2f[_0x49d6a8(0x87)],_0x5904a0[_0x49d6a8(0xd0)]?_0x49d6a8(0xfc)+_0x5904a0['errorCode']:undefined);}if(_0x309aeb&&typeof _0x309aeb==='object'&&_0x49d6a8(0xcb)in _0x309aeb&&typeof _0x309aeb[_0x49d6a8(0xcb)]==='boolean'){const _0xcedf2c=_0x309aeb;if(!_0xcedf2c[_0x49d6a8(0xcb)])throw CliErrors[_0x49d6a8(0xd2)](_0xcedf2c['errorMsg']||_0xcedf2c[_0x49d6a8(0xae)]||_0x49d6a8(0x116),_0xcedf2c[_0x49d6a8(0xd0)]?_0x49d6a8(0xfc)+_0xcedf2c['errorCode']:undefined);return _0xcedf2c[_0x49d6a8(0xd5)];}return _0x309aeb;}catch(_0x1d2538){if(_0x1d2538 instanceof Error&&_0x1d2538[_0x49d6a8(0x106)]===_0x49d6a8(0x8a))throw CliErrors[_0x49d6a8(0xd2)](_0x49d6a8(0x9e)+_0x1e8271[_0x49d6a8(0x10c)]());throw _0x1d2538;}finally{clearTimeout(_0x6500bf);}}async function skillHubJsonRequest(_0x342cad,_0x5505d6={}){const _0x56fc6d=a76_0x37c4,{method:method=_0x56fc6d(0xc9),query:_0x1d9ca8,body:_0x5d18a6,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5505d6,_0x28f4b7=_activeAK;if(!_0x28f4b7)throw CliErrors['authRequired'](_0x56fc6d(0x10d)+PRODUCT_CONFIG[_0x56fc6d(0xb2)]+'.');const _0x4e0d4f=getSkillHubDomain()[_0x56fc6d(0x100)](/\/$/,''),_0x1f7abf=new URL(_0x342cad,_0x4e0d4f+'/');if(_0x1d9ca8)for(const [_0x129507,_0x121e03]of Object[_0x56fc6d(0x83)](_0x1d9ca8)){_0x121e03!==undefined&&_0x121e03!==null&&_0x1f7abf[_0x56fc6d(0xb9)][_0x56fc6d(0xea)](_0x129507,String(_0x121e03));}const _0x80c4b0=new AbortController(),_0x129ec2=setTimeout(()=>_0x80c4b0[_0x56fc6d(0xcf)](),timeout);try{const _0x3a7576=await fetch(_0x1f7abf['toString'](),{'method':method,'headers':{'Accept':'application/json','X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x28f4b7,...headers},'body':_0x5d18a6,'signal':_0x80c4b0[_0x56fc6d(0xbf)]}),_0x507c5a=await decodeResponseBody(_0x3a7576);if(!_0x507c5a['isJson']){if(allowNotFound&&_0x3a7576['status']===0x194)return undefined;throwIfRateLimited(_0x3a7576,undefined,_0x507c5a[_0x56fc6d(0xf8)]);throw CliErrors[_0x56fc6d(0xd2)](_0x56fc6d(0x112)+_0x3a7576[_0x56fc6d(0x87)]+')',_0x3a7576[_0x56fc6d(0x87)]>=0x190?_0x56fc6d(0xa4):undefined);}const _0x57cbc3=_0x507c5a[_0x56fc6d(0xd5)];throwIfRateLimited(_0x3a7576,_0x57cbc3);if(allowNotFound&&isSkillHubNotFoundResponse(_0x3a7576[_0x56fc6d(0x87)],_0x57cbc3))return undefined;const _0x2be9f1=!_0x3a7576['ok']||_0x57cbc3?.[_0x56fc6d(0xcb)]===![]||typeof _0x57cbc3?.[_0x56fc6d(0xed)]===_0x56fc6d(0xfa)&&_0x57cbc3['code']>=0x190;if(_0x2be9f1)throw CliErrors[_0x56fc6d(0xd2)](_0x57cbc3?.[_0x56fc6d(0xb8)]||_0x57cbc3?.[_0x56fc6d(0xae)]||_0x57cbc3?.[_0x56fc6d(0x108)]||_0x56fc6d(0xe0)+_0x3a7576[_0x56fc6d(0x87)],_0x57cbc3?.[_0x56fc6d(0xd0)]?'SkillHub\x20error\x20code:\x20'+_0x57cbc3[_0x56fc6d(0xd0)]:undefined);return _0x57cbc3?.[_0x56fc6d(0xd5)]??_0x57cbc3;}catch(_0x28f7e9){if(_0x28f7e9 instanceof Error&&_0x28f7e9['name']===_0x56fc6d(0x8a))throw CliErrors[_0x56fc6d(0xd2)]('Request\x20timeout:\x20'+_0x1f7abf[_0x56fc6d(0x10c)]());throw _0x28f7e9;}finally{clearTimeout(_0x129ec2);}}function a76_0x3493(){const _0x77f32f=['object','limit','/client/runtime-bff/personal/list?appCode=','API\x20error\x20code:\x20','Download\x20failed:\x20','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/uploadFile','topK','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','text','DELETE','number','NAMESPACE_ONLY','Toolbox\x20error\x20code:\x20','json','packageBase64','/api/v1/skills/','replace','PRIVATE','validation','/versions/','valid','resolvedVersion','name','1760YYEJVH','msg','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','/client/dataset/get-driven-data?code=','authRequired','toString','Configure\x20accessKey\x20in\x20','/api/node-toolbox/','append','API\x20error:\x20','isArray','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/artifact/list?','example','version','Toolbox\x20API\x20error','skillName','description','tableData','2620491apWzbM','entries','personal','/client/runtime-bff/personal/','favorite','status','scope','error','AbortError','POST','tags','Invalid\x20app\x20config\x20value:\x20key=','query','displayName','warnings','4937653ncRoGS','7343260IuqAlf','arrayBuffer','appCode','summary','skill','effective','resolvedSlug','trim','url','/client/knowledge-base/search','/update','download','Request\x20timeout:\x20','cursor','from','9096Fdhqxf','/api/cli/v1/skills/','longTerm','Check\x20your\x20credentials\x20and\x20try\x20again.','headers','application/zip','/skills','/execute?appCode=','appName','4cCnzEA','skillCode','file','string','message','gmtModified','headlineVersion','functionName','newConfigFileName','all','/client/knowledge-base/personal/list?appCode=','Personal\x20BFF\x20not\x20found:\x20id=','size','?appCode=','errorMsg','searchParams','BFF\x20function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','17xrbJvT','Missing\x20Skill\x20package\x20payload.','2297448NXXosp','Knowledge-base\x20entry\x20not\x20found:\x20id=','signal','invokeSource','/client/app/my-apps','/publish/validate','/api/harness/apps/','/client/queryFileUrl','/client/sql/query','values','join','isJson','GET','type','success','/client/runtime-bff/personal/create','stringify','functions','abort','errorCode','undefined','apiError','application/json','source','data','Artifact\x20not\x20found:\x20id=',',\x20name=','Toolbox\x20API\x20error:\x20','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','application/octet-stream','32THGYHY','filter','artifactType','confirmWarnings','company','SkillHub\x20API\x20error:\x20','/download','/client/knowledge-base/personal/','603119HKFdcO','slug','sqlCode','85764rhFPhb','errors','180IbxGuu','/schedules','set','namespace','content','code','visibility'];a76_0x3493=function(){return _0x77f32f;};return a76_0x3493();}function isSkillHubNotFoundResponse(_0x58680d,_0x3fcb41){const _0x37a429=a76_0x37c4;if(_0x58680d===0x194||_0x3fcb41?.['code']===0x194)return!![];if(_0x58680d!==0x190&&_0x3fcb41?.[_0x37a429(0xed)]!==0x190)return![];const _0x2cfbcd=[_0x3fcb41?.[_0x37a429(0x108)],_0x3fcb41?.['message'],_0x3fcb41?.['errorMsg'],_0x3fcb41?.[_0x37a429(0x89)]][_0x37a429(0xdc)](_0x5271a1=>typeof _0x5271a1==='string')[_0x37a429(0xc7)]('\x20');return/skill not found\b/i['test'](_0x2cfbcd);}async function skillHubBinaryRequest(_0x410d29,_0x57a991={}){const _0x1c8421=a76_0x37c4,{query:_0x5cca86,headers:headers={},timeout:timeout=0x7530}=_0x57a991,_0x1bbd0f=_activeAK;if(!_0x1bbd0f)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x1c8421(0xb2)]+'.');const _0x2bccd3=getSkillHubDomain()[_0x1c8421(0x100)](/\/$/,''),_0x38a725=new URL(_0x410d29,_0x2bccd3+'/');if(_0x5cca86)for(const [_0x5469ac,_0x2e65b5]of Object[_0x1c8421(0x83)](_0x5cca86)){_0x2e65b5!==undefined&&_0x2e65b5!==null&&_0x38a725[_0x1c8421(0xb9)][_0x1c8421(0xea)](_0x5469ac,String(_0x2e65b5));}const _0x5f2c39=new AbortController(),_0x29864c=setTimeout(()=>_0x5f2c39[_0x1c8421(0xcf)](),timeout);try{const _0x58864f=await fetch(_0x38a725['toString'](),{'method':_0x1c8421(0xc9),'headers':{'Accept':_0x1c8421(0xda),'X-Invoke-Source':PRODUCT_CONFIG[_0x1c8421(0xc0)],'X-User-AK':_0x1bbd0f,...headers},'signal':_0x5f2c39[_0x1c8421(0xbf)]});if(!_0x58864f['ok']){const _0x16015c=await decodeResponseBody(_0x58864f),_0x23dcc0=_0x16015c[_0x1c8421(0xd5)]&&typeof _0x16015c['data']===_0x1c8421(0xef)?_0x16015c[_0x1c8421(0xd5)]:{},_0x27b34b=firstString(_0x23dcc0['errorMsg'],_0x23dcc0[_0x1c8421(0xae)],_0x23dcc0[_0x1c8421(0x108)],_0x23dcc0['errorCode'],_0x16015c[_0x1c8421(0xf8)]);throwIfRateLimited(_0x58864f,_0x16015c[_0x1c8421(0xd5)],_0x27b34b);throw CliErrors[_0x1c8421(0xd2)](_0x27b34b||_0x1c8421(0xe0)+_0x58864f['status'],'Download\x20failed:\x20'+_0x38a725['toString']());}return Buffer[_0x1c8421(0xa0)](await _0x58864f[_0x1c8421(0x93)]());}catch(_0x142833){if(_0x142833 instanceof Error&&_0x142833[_0x1c8421(0x106)]===_0x1c8421(0x8a))throw CliErrors[_0x1c8421(0xd2)]('Request\x20timeout:\x20'+_0x38a725['toString']());throw _0x142833;}finally{clearTimeout(_0x29864c);}}export async function getBffEndpointContract(_0xc2fd8b,_0x313590){const _0x2240ef=a76_0x37c4;if(_0x313590===_0x2240ef(0xce))throw CliErrors[_0x2240ef(0x102)](_0x2240ef(0xba)+_0xc2fd8b+',\x20name='+_0x313590);const _0x5db8cb=await apiRequest('/client/bff/endpoint/'+encodeURIComponent(_0xc2fd8b)+'/'+encodeURIComponent(_0x313590)),_0x1380de=_0x5db8cb[_0x2240ef(0xd5)];if(!_0x1380de||typeof _0x1380de!==_0x2240ef(0xef)||Array[_0x2240ef(0x111)](_0x1380de)||_0x1380de[_0x2240ef(0x94)]!==_0xc2fd8b||_0x1380de[_0x2240ef(0xb1)]!==_0x313590)throw CliErrors[_0x2240ef(0x102)](_0x2240ef(0xba)+_0xc2fd8b+_0x2240ef(0xd7)+_0x313590);return{'appCode':_0x1380de['appCode'],'functionName':_0x1380de[_0x2240ef(0xb1)],'description':_0x1380de[_0x2240ef(0x118)],'version':_0x1380de[_0x2240ef(0x115)],'gmtModified':_0x1380de[_0x2240ef(0xaf)]};}export async function getSqlQueryInfo(_0x2e738d,_0x824450){const _0x157a3f=a76_0x37c4,_0x119e36=await apiRequest(_0x157a3f(0xc5),{'method':_0x157a3f(0x8b),'body':{'appCode':_0x2e738d,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x824450}}),_0x5e4238=_0x119e36[_0x157a3f(0xd5)],_0x2b81bf=_0x5e4238&&typeof _0x5e4238===_0x157a3f(0xef)&&_0x157a3f(0x81)in _0x5e4238?_0x5e4238[_0x157a3f(0x81)]?.[0x0]:_0x5e4238&&typeof _0x5e4238===_0x157a3f(0xef)&&_0x157a3f(0xe5)in _0x5e4238?_0x5e4238:undefined;if(!_0x2b81bf)throw CliErrors['validation']('SQL\x20query\x20not\x20found:\x20'+_0x824450);return _0x2b81bf;}function isRemoteAppItem(_0x1b0cd4){const _0x30f4f7=a76_0x37c4;return!!_0x1b0cd4&&typeof _0x1b0cd4===_0x30f4f7(0xef)&&typeof _0x1b0cd4[_0x30f4f7(0x94)]==='string'&&typeof _0x1b0cd4[_0x30f4f7(0xa9)]===_0x30f4f7(0xad);}function extractRemoteAppItems(_0x3371e4){const _0x3892cb=a76_0x37c4;if(Array['isArray'](_0x3371e4))return _0x3371e4[_0x3892cb(0xdc)](isRemoteAppItem);if(!_0x3371e4||typeof _0x3371e4!==_0x3892cb(0xef))throw CliErrors['apiError'](_0x3892cb(0xf7));const _0x2d6610=_0x3371e4;if(Array['isArray'](_0x2d6610[_0x3892cb(0x81)]))return _0x2d6610['tableData']['filter'](isRemoteAppItem);if(_0x2d6610[_0x3892cb(0xd5)]&&typeof _0x2d6610[_0x3892cb(0xd5)]===_0x3892cb(0xef)){const _0x1ff4c4=_0x2d6610[_0x3892cb(0xd5)];if(Array[_0x3892cb(0x111)](_0x1ff4c4['tableData']))return _0x1ff4c4[_0x3892cb(0x81)]['filter'](isRemoteAppItem);}throw CliErrors[_0x3892cb(0xd2)](_0x3892cb(0x109));}export async function getMyApps(){const _0x13a466=a76_0x37c4,_0x8bf175=await apiRequest(_0x13a466(0xc1));return extractRemoteAppItems(_0x8bf175[_0x13a466(0xd5)]);}export async function getLoginUserInfo(){const _0x373af6=a76_0x37c4,_0x3c4b38=await apiRequest('/client/user/loginUserInfo');if(!_0x3c4b38['data']||typeof _0x3c4b38['data']!==_0x373af6(0xef)||Array[_0x373af6(0x111)](_0x3c4b38[_0x373af6(0xd5)]))throw CliErrors[_0x373af6(0xd2)]('Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.');return _0x3c4b38[_0x373af6(0xd5)];}function runtimeSchedulePath(_0x2d648d,_0x186e1e=''){const _0x7251bf=a76_0x37c4;return _0x7251bf(0xc3)+encodeURIComponent(_0x2d648d)+_0x7251bf(0xe9)+_0x186e1e;}export async function validateRuntimeSchedule(_0x403823,_0x4006fe){const _0x5d1328=a76_0x37c4,_0x1cdf0b=await apiRequest(runtimeSchedulePath(_0x403823,'/validate'),{'method':_0x5d1328(0x8b),'body':_0x4006fe});return _0x1cdf0b[_0x5d1328(0xd5)];}export async function createRuntimeSchedule(_0x4743f1,_0x466f08){const _0xd966be=a76_0x37c4,_0xd9e860=await apiRequest(runtimeSchedulePath(_0x4743f1),{'method':_0xd966be(0x8b),'body':_0x466f08});return _0xd9e860[_0xd966be(0xd5)];}export async function listRuntimeSchedules(_0x3e9c34,_0x208329={}){const _0x34251e=a76_0x37c4,_0x491b48=new URLSearchParams();if(_0x208329['limit']!==undefined)_0x491b48[_0x34251e(0xea)](_0x34251e(0xf0),String(_0x208329[_0x34251e(0xf0)]));if(_0x208329['cursor'])_0x491b48[_0x34251e(0xea)](_0x34251e(0x9f),_0x208329['cursor']);const _0x6fd5c8=_0x491b48[_0x34251e(0xb6)]>0x0?'?'+_0x491b48['toString']():'',_0x4add36=await apiRequest(''+runtimeSchedulePath(_0x3e9c34)+_0x6fd5c8);return _0x4add36[_0x34251e(0xd5)];}export async function getRuntimeSchedule(_0xfff1,_0x4282e6){const _0x16cdab=a76_0x37c4,_0x52e174=await apiRequest(runtimeSchedulePath(_0xfff1,'/'+encodeURIComponent(_0x4282e6)));return _0x52e174[_0x16cdab(0xd5)];}export async function deleteRuntimeSchedule(_0x4b1969,_0x5ad18c){const _0x36544d=a76_0x37c4,_0x24d146=await apiRequest(runtimeSchedulePath(_0x4b1969,'/'+encodeURIComponent(_0x5ad18c)),{'method':_0x36544d(0xf9)});return _0x24d146[_0x36544d(0xd5)];}export async function runRuntimeSchedule(_0x17172b,_0x4aeacc){const _0xed4e10=a76_0x37c4,_0x4f06af=await apiRequest(runtimeSchedulePath(_0x17172b,'/'+encodeURIComponent(_0x4aeacc)+'/run'),{'method':_0xed4e10(0x8b)});return _0x4f06af[_0xed4e10(0xd5)];}export async function listDatasets(_0x34eba5,_0x1a1bd8){const _0x2183eb=a76_0x37c4,_0x5800e8=await apiRequest('/client/dataset/list',{'method':_0x2183eb(0x8b),'body':{'appCode':_0x34eba5,..._0x1a1bd8?.['code']&&{'code':_0x1a1bd8[_0x2183eb(0xed)]},..._0x1a1bd8?.[_0x2183eb(0x106)]&&{'name':_0x1a1bd8['name']}}});return extractList(_0x5800e8['data']);}export async function getDatasetDetail(_0x52081c){const _0x54ed8b=a76_0x37c4,_0x2c2b0e=await apiRequest(_0x54ed8b(0x10a)+encodeURIComponent(_0x52081c));return _0x2c2b0e[_0x54ed8b(0xd5)];}export async function getDatasetSdkUsageDoc(_0x55b00b,_0x5d0f5c){const _0x31eaba=a76_0x37c4,_0x7b4dbd=await toolboxRequest('api-doc-generator',{'datasetCode':_0x55b00b,'appCode':_0x5d0f5c});return typeof _0x7b4dbd?.['markdown']===_0x31eaba(0xad)?_0x7b4dbd['markdown']:'';}export async function uploadRuntimeFile(_0x20b8bd,_0x393a55){const _0x25b73d=a76_0x37c4,_0x1560d4=await readFile(_0x393a55),_0x342ad1=new FormData();_0x342ad1['append'](_0x25b73d(0x94),_0x20b8bd),_0x342ad1[_0x25b73d(0x10f)](_0x25b73d(0xac),new Blob([new Uint8Array(_0x1560d4)]),basename(_0x393a55));const _0x4dc150=await apiFormRequest(_0x25b73d(0xf5),_0x342ad1);return _0x4dc150[_0x25b73d(0xd5)];}export async function queryRuntimeFileUrl(_0x3c53f0,_0x57e0da={}){const _0x525854=a76_0x37c4,_0xd67b27=await apiRequest(_0x525854(0xc4),{'method':_0x525854(0x8b),'body':{'filePath':_0x3c53f0,'downloadFlag':_0x57e0da[_0x525854(0x9d)]??![],..._0x57e0da[_0x525854(0xa3)]?{'longTerm':!![]}:{}}});return _0xd67b27['data'];}export async function recognizeRuntimeOcr(_0x336bb5,_0x19a5aa){const _0x536cde=a76_0x37c4,_0x13c5c2=await apiRequest('/client/ocr',{'method':_0x536cde(0x8b),'body':{'appCode':_0x336bb5,'url':_0x19a5aa[_0x536cde(0x9a)],'type':_0x19a5aa[_0x536cde(0xca)]}});return _0x13c5c2[_0x536cde(0xd5)];}export async function getRuntimeAppConfigByKey(_0x2e782c,_0x4a3a73){const _0x2d0fda=a76_0x37c4,_0x490460=new URLSearchParams({'appCode':_0x2e782c,'key':_0x4a3a73}),_0x1ce183=await apiRequest('/client/app-config/getByKey?'+_0x490460[_0x2d0fda(0x10c)]());if(typeof _0x1ce183[_0x2d0fda(0xd5)]!==_0x2d0fda(0xad))throw CliErrors['validation'](_0x2d0fda(0x8d)+_0x4a3a73);return _0x1ce183[_0x2d0fda(0xd5)];}export async function listRuntimeArtifacts(_0x15ed4d,_0x22a1cf){const _0x2ffa0d=a76_0x37c4,_0x1a355b=new URLSearchParams({'appCode':_0x15ed4d});if(_0x22a1cf?.[_0x2ffa0d(0xdd)])_0x1a355b['set'](_0x2ffa0d(0xdd),_0x22a1cf['artifactType']);if(_0x22a1cf?.[_0x2ffa0d(0xd4)])_0x1a355b[_0x2ffa0d(0xea)](_0x2ffa0d(0xd4),_0x22a1cf[_0x2ffa0d(0xd4)]);if(_0x22a1cf?.[_0x2ffa0d(0x86)]!==undefined)_0x1a355b[_0x2ffa0d(0xea)]('favorite',String(_0x22a1cf[_0x2ffa0d(0x86)]));const _0x135a83=await apiRequest(_0x2ffa0d(0x113)+_0x1a355b['toString']());return Array['isArray'](_0x135a83[_0x2ffa0d(0xd5)])?_0x135a83[_0x2ffa0d(0xd5)]:[];}export async function getRuntimeArtifact(_0x4b7631,_0x20084f){const _0x53f81f=a76_0x37c4,_0x2c76a8=await apiRequest('/client/artifact/'+_0x4b7631+_0x53f81f(0xb7)+encodeURIComponent(_0x20084f));if(!_0x2c76a8[_0x53f81f(0xd5)])throw CliErrors['validation'](_0x53f81f(0xd6)+_0x4b7631);return _0x2c76a8[_0x53f81f(0xd5)];}export async function createRuntimeArtifact(_0xda2a05,_0x57f2d1){const _0x3db4c2=a76_0x37c4,_0x3e84be=await apiRequest('/client/artifact/create',{'method':_0x3db4c2(0x8b),'body':{'appCode':_0xda2a05,..._0x57f2d1}});return _0x3e84be['data'];}export async function updateRuntimeArtifact(_0x56e6e7,_0x956b02,_0x362477){const _0x3fd897=a76_0x37c4,_0x1f361e=await apiRequest('/client/artifact/'+_0x56e6e7+_0x3fd897(0x9c),{'method':_0x3fd897(0x8b),'body':{'appCode':_0x956b02,..._0x362477}});return _0x1f361e[_0x3fd897(0xd5)];}export async function listPersonalBffs(_0x408a5f){const _0x383135=a76_0x37c4,_0x54df4b=await apiRequest(_0x383135(0xf1)+encodeURIComponent(_0x408a5f));return Array[_0x383135(0x111)](_0x54df4b[_0x383135(0xd5)])?_0x54df4b['data']:[];}export async function getPersonalBff(_0x23180a,_0x2c2866){const _0x40b57e=a76_0x37c4,_0x52fb0e=await apiRequest(_0x40b57e(0x85)+_0x23180a+'?appCode='+encodeURIComponent(_0x2c2866));if(!_0x52fb0e[_0x40b57e(0xd5)])throw CliErrors[_0x40b57e(0x102)](_0x40b57e(0xb5)+_0x23180a);return _0x52fb0e['data'];}export async function createPersonalBff(_0x122e2a,_0x4a6295){const _0x4f9c04=a76_0x37c4,_0x39d9db=await apiRequest(_0x4f9c04(0xcc),{'method':_0x4f9c04(0x8b),'body':{'appCode':_0x122e2a,..._0x4a6295}});return _0x39d9db[_0x4f9c04(0xd5)];}export async function updatePersonalBff(_0xa8372d,_0x50b02b,_0x5e29e5){const _0x3cfaea=a76_0x37c4,_0x9d3aee=await apiRequest('/client/runtime-bff/personal/'+_0xa8372d+_0x3cfaea(0x9c),{'method':_0x3cfaea(0x8b),'body':{'appCode':_0x50b02b,..._0x5e29e5}});return _0x9d3aee[_0x3cfaea(0xd5)];}export async function executePersonalBff(_0xc16b2a,_0x3b2dcf,_0x3557bc){const _0x4efe9b=a76_0x37c4,_0x118157=await apiRequest(_0x4efe9b(0x85)+_0xc16b2a+_0x4efe9b(0xa8)+encodeURIComponent(_0x3b2dcf),{'method':'POST','body':_0x3557bc});return _0x118157[_0x4efe9b(0xd5)];}export async function listPersonalKnowledgeBaseItems(_0x57541a){const _0x3f8471=a76_0x37c4,_0x5ae049=await apiRequest(_0x3f8471(0xb4)+encodeURIComponent(_0x57541a));return Array[_0x3f8471(0x111)](_0x5ae049[_0x3f8471(0xd5)])?_0x5ae049['data']:[];}export async function getPersonalKnowledgeBaseItem(_0x30be20,_0x7d46fb){const _0x2e5783=a76_0x37c4,_0x358116=await apiRequest(_0x2e5783(0xe2)+_0x30be20+_0x2e5783(0xb7)+encodeURIComponent(_0x7d46fb));if(!_0x358116[_0x2e5783(0xd5)])throw CliErrors[_0x2e5783(0x102)](_0x2e5783(0xbe)+_0x30be20);return _0x358116[_0x2e5783(0xd5)];}export async function createPersonalKnowledgeBaseItem(_0x58cbba,_0x460f33){const _0x19735c=a76_0x37c4,_0x1aebbb=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x19735c(0x8b),'body':{'appCode':_0x58cbba,..._0x460f33}});return _0x1aebbb[_0x19735c(0xd5)];}export async function updatePersonalKnowledgeBaseItem(_0x4122a5,_0x2ef3b6,_0x4407f4){const _0x255889=a76_0x37c4,_0x5729c4=await apiRequest(_0x255889(0xe2)+_0x4122a5+'/update',{'method':_0x255889(0x8b),'body':{'appCode':_0x2ef3b6,..._0x4407f4}});return _0x5729c4['data'];}export async function searchKnowledgeBase(_0x13c2dd,_0x47592e){const _0x4222f3=a76_0x37c4,_0x1ce22a=await apiRequest(_0x4222f3(0x9b),{'method':_0x4222f3(0x8b),'body':{'appCode':_0x13c2dd,'query':_0x47592e[_0x4222f3(0x8e)],..._0x47592e[_0x4222f3(0xf6)]!==undefined?{'topK':_0x47592e[_0x4222f3(0xf6)]}:{}}});return Array[_0x4222f3(0x111)](_0x1ce22a[_0x4222f3(0xd5)])?_0x1ce22a[_0x4222f3(0xd5)]:[];}export async function getRuntimeSkillByCode(_0x2565a5,_0x10a72b){const _0x36686d=a76_0x37c4,_0x3b6d6d=await skillHubJsonRequest(_0x36686d(0xff)+encodeURIComponent(_0x2565a5)+'/'+encodeURIComponent(_0x10a72b),{'allowNotFound':!![]});return _0x3b6d6d?skillHubRuntimeDetailToRuntimeSkill(_0x3b6d6d):undefined;}export async function listRuntimeSkills(_0x5aca1f){const _0x58733e=a76_0x37c4,_0x423f79=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x5aca1f[_0x58733e(0x94)])+_0x58733e(0xa7),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x5aca1f[_0x58733e(0x94)],_0x423f79,_0x5aca1f[_0x58733e(0x88)]??_0x58733e(0xb3),_0x5aca1f['code']);}export async function listPersonalRuntimeSkills(_0x4e5cd7){const _0x278da4=a76_0x37c4;return(await listRuntimeSkills({'appCode':_0x4e5cd7,'scope':_0x278da4(0x84)}))[_0x278da4(0x84)];}export async function listCompanyRuntimeSkills(_0x81467e){const _0x36a389=a76_0x37c4;return(await listRuntimeSkills({'appCode':_0x81467e,'scope':'company'}))[_0x36a389(0xdf)];}export async function listVisibleRuntimeSkills(_0x20db57){const _0x46ac34=a76_0x37c4;return(await listRuntimeSkills({'appCode':_0x20db57,'scope':_0x46ac34(0xb3)}))[_0x46ac34(0x97)];}export async function createPersonalRuntimeSkill(_0x39f047,_0x1347ce,_0x80ce2={}){const _0x2971ba=a76_0x37c4;return publishRuntimeSkill(_0x39f047,_0x1347ce,{'visibility':'PRIVATE','confirmWarnings':_0x80ce2[_0x2971ba(0xde)]});}export async function updatePersonalRuntimeSkill(_0x3e95c7,_0x4bb06d,_0x412c91,_0x45b757={}){const _0x16b53b=a76_0x37c4;return publishRuntimeSkill(_0x4bb06d,{..._0x412c91,'skillCode':_0x412c91[_0x16b53b(0xab)]??_0x3e95c7},{'visibility':'PRIVATE','confirmWarnings':_0x45b757[_0x16b53b(0xde)]});}export async function publishCompanyRuntimeSkill(_0x5c2514,_0x54daf9,_0x8d107d={}){const _0x4ce107=a76_0x37c4;return publishRuntimeSkill(_0x5c2514,_0x54daf9,{'visibility':_0x4ce107(0xfb),'confirmWarnings':_0x8d107d['confirmWarnings']});}export async function validateRuntimeSkillPublish(_0x27b07a,_0x58c616,_0x51e4ea){const _0x53019b=a76_0x37c4,_0x4de716=buildRuntimeSkillPublishForm(_0x58c616,_0x51e4ea[_0x53019b(0xee)]),_0x77f78b=await skillHubJsonRequest(_0x53019b(0xa2)+encodeURIComponent(_0x27b07a)+_0x53019b(0xc2),{'method':_0x53019b(0x8b),'body':_0x4de716});return{'valid':_0x77f78b[_0x53019b(0x104)]===!![],'errors':Array['isArray'](_0x77f78b[_0x53019b(0xe7)])?_0x77f78b[_0x53019b(0xe7)]:[],'warnings':Array[_0x53019b(0x111)](_0x77f78b[_0x53019b(0x90)])?_0x77f78b[_0x53019b(0x90)]:[],'resolvedSlug':_0x77f78b[_0x53019b(0x98)],'resolvedVersion':_0x77f78b[_0x53019b(0x105)]};}export async function downloadRuntimeSkillPackage(_0x28b9cf,_0x59846d,_0x5104cf,_0x2adff6){const _0x27b900=a76_0x37c4;void _0x28b9cf;const _0x5ed219=_0x2adff6?_0x27b900(0xa2)+encodeURIComponent(_0x5104cf)+'/'+encodeURIComponent(_0x59846d)+_0x27b900(0x103)+encodeURIComponent(_0x2adff6)+_0x27b900(0xe1):'/api/cli/v1/skills/'+encodeURIComponent(_0x5104cf)+'/'+encodeURIComponent(_0x59846d)+'/download';return skillHubBinaryRequest(_0x5ed219);}async function publishRuntimeSkill(_0x4f4916,_0x2e429a,_0x59e141){const _0x232df4=a76_0x37c4,_0x282519=buildRuntimeSkillPublishForm(_0x2e429a,_0x59e141['visibility']),_0x3609e4=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x4f4916)+'/publish',{'method':_0x232df4(0x8b),'query':{'confirmWarnings':_0x59e141['confirmWarnings']===!![]?!![]:undefined},'body':_0x282519});return{'appCode':_0x3609e4[_0x232df4(0xeb)]??_0x4f4916,'skillCode':_0x3609e4[_0x232df4(0xe4)]??_0x2e429a[_0x232df4(0xab)]??'','skillName':_0x2e429a[_0x232df4(0x117)]??_0x3609e4[_0x232df4(0xe4)]??_0x2e429a['skillCode'],'description':_0x2e429a[_0x232df4(0x118)],'scope':skillHubVisibilityToScope(_0x3609e4['visibility']??_0x59e141[_0x232df4(0xee)])??_0x232df4(0x84),'version':_0x3609e4[_0x232df4(0x115)]??_0x2e429a[_0x232df4(0x115)],'tags':_0x2e429a[_0x232df4(0x8c)],'content':_0x2e429a[_0x232df4(0xec)]};}function buildRuntimeSkillPublishForm(_0x291690,_0x36426f){const _0x5bf280=a76_0x37c4,_0x5e2a52=new FormData();return _0x5e2a52[_0x5bf280(0xea)](_0x5bf280(0xac),runtimeSkillPackageFile(_0x291690)),_0x291690['skillName']?.['trim']()&&_0x5e2a52[_0x5bf280(0xea)](_0x5bf280(0x8f),_0x291690[_0x5bf280(0x117)][_0x5bf280(0x99)]()),_0x5e2a52[_0x5bf280(0xea)](_0x5bf280(0xee),_0x36426f),_0x5e2a52;}function runtimeSkillPackageFile(_0x3e6ed1){const _0x13e35f=a76_0x37c4;if(!_0x3e6ed1[_0x13e35f(0xfe)])throw CliErrors['validation'](_0x13e35f(0xbc));const _0x5c6bf8=Buffer['from'](_0x3e6ed1[_0x13e35f(0xfe)],'base64'),_0x24df50=new Blob([_0x5c6bf8],{'type':'application/zip'}),_0x4b1c4e=(_0x3e6ed1[_0x13e35f(0xab)]||_0x13e35f(0x96))+'.zip';if(typeof File!==_0x13e35f(0xd1))return new File([_0x24df50],_0x4b1c4e,{'type':_0x13e35f(0xa6)});return _0x24df50;}function normalizeSkillHubRuntimeListResponse(_0x171979,_0x2138d5,_0x153a79,_0x557ce1){const _0x5a10fb=a76_0x37c4,_0x34b0e4=Array[_0x5a10fb(0x111)](_0x2138d5)?_0x2138d5:Array[_0x5a10fb(0x111)](_0x2138d5?.['items'])?_0x2138d5['items']:[],_0x22efed=_0x557ce1?.[_0x5a10fb(0x99)](),_0x529104=_0x34b0e4[_0x5a10fb(0xdc)](_0x216d13=>!_0x22efed||_0x216d13[_0x5a10fb(0xe4)]===_0x22efed)['map'](skillHubRuntimeItemToRuntimeSkill)['filter'](_0xafb655=>Boolean(_0xafb655)),_0x386032=_0x529104[_0x5a10fb(0xdc)](_0x2156d6=>_0x2156d6[_0x5a10fb(0x88)]==='personal'),_0x4de0c7=_0x529104[_0x5a10fb(0xdc)](_0x4b35d0=>_0x4b35d0[_0x5a10fb(0x88)]==='company');return{'appCode':_0x171979,'personal':_0x153a79===_0x5a10fb(0xdf)?[]:_0x386032,'company':_0x153a79==='personal'?[]:_0x4de0c7,'effective':buildEffectiveRuntimeSkills(_0x386032,_0x4de0c7,_0x153a79)};}function skillHubRuntimeItemToRuntimeSkill(_0x257bab){const _0x197636=a76_0x37c4,_0x1922d2=_0x257bab[_0x197636(0xe4)]?.[_0x197636(0x99)](),_0x316959=skillHubVisibilityToScope(_0x257bab[_0x197636(0xee)]);if(!_0x1922d2||!_0x316959)return undefined;return{'id':_0x257bab['id'],'appCode':_0x257bab['namespace'],'skillCode':_0x1922d2,'skillName':_0x257bab[_0x197636(0x8f)]??_0x1922d2,'description':_0x257bab['summary'],'scope':_0x316959,'version':skillHubRuntimeItemVersion(_0x257bab),'status':_0x257bab[_0x197636(0x87)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x4ef8d9){const _0x33624e=a76_0x37c4,_0x44a12a=_0x4ef8d9['slug']?.['trim']();if(!_0x44a12a)return undefined;return{'id':_0x4ef8d9['id'],'appCode':_0x4ef8d9[_0x33624e(0xeb)],'skillCode':_0x44a12a,'skillName':_0x4ef8d9[_0x33624e(0x8f)]??_0x44a12a,'description':_0x4ef8d9[_0x33624e(0x95)],'example':_0x4ef8d9[_0x33624e(0x114)],'scope':skillHubVisibilityToScope(_0x4ef8d9[_0x33624e(0xee)])??_0x4ef8d9[_0x33624e(0xee)]?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x4ef8d9),'status':_0x4ef8d9[_0x33624e(0x87)]};}function skillHubVisibilityToScope(_0x37c894){const _0x104eb2=a76_0x37c4;if(_0x37c894===_0x104eb2(0x101))return _0x104eb2(0x84);if(_0x37c894===_0x104eb2(0xfb))return _0x104eb2(0xdf);return undefined;}function skillHubRuntimeItemVersion(_0x451861){const _0x288b27=a76_0x37c4;return _0x451861['publishedVersion']?.['version']??_0x451861[_0x288b27(0xb0)]?.[_0x288b27(0x115)]??_0x451861['ownerPreviewVersion']?.[_0x288b27(0x115)];}function buildEffectiveRuntimeSkills(_0x4e1dde,_0x31b323,_0x4ef44e){const _0x29b4a1=a76_0x37c4;if(_0x4ef44e===_0x29b4a1(0x84))return _0x4e1dde;if(_0x4ef44e==='company')return _0x31b323;const _0x83acfa=new Map();for(const _0x14b9fe of _0x31b323){_0x83acfa[_0x29b4a1(0xea)](_0x14b9fe[_0x29b4a1(0xab)],_0x14b9fe);}for(const _0x2b0653 of _0x4e1dde){_0x83acfa[_0x29b4a1(0xea)](_0x2b0653[_0x29b4a1(0xab)],_0x2b0653);}return Array[_0x29b4a1(0xa0)](_0x83acfa[_0x29b4a1(0xc6)]());}function normalizeRuntimeSkillListResponse(_0x329152,_0x374f19){const _0x46ce05=a76_0x37c4;if(Array[_0x46ce05(0x111)](_0x374f19)){const _0x1c02c8=_0x374f19[_0x46ce05(0xdc)](_0x4dbeb1=>_0x4dbeb1[_0x46ce05(0x88)]==='personal'),_0x1211da=_0x374f19[_0x46ce05(0xdc)](_0x36a6a2=>_0x36a6a2['scope']===_0x46ce05(0xdf));return{'appCode':_0x329152,'personal':_0x1c02c8,'company':_0x1211da,'effective':[..._0x1211da,..._0x1c02c8]};}return{'appCode':_0x374f19?.[_0x46ce05(0x94)]??_0x329152,'personal':Array[_0x46ce05(0x111)](_0x374f19?.[_0x46ce05(0x84)])?_0x374f19[_0x46ce05(0x84)]:[],'company':Array[_0x46ce05(0x111)](_0x374f19?.[_0x46ce05(0xdf)])?_0x374f19[_0x46ce05(0xdf)]:[],'effective':Array[_0x46ce05(0x111)](_0x374f19?.[_0x46ce05(0x97)])?_0x374f19['effective']:[]};}
@@ -1 +1 @@
1
- function a76_0x1cb5(){const _0x112d9e=['8079211jIRXZA','set','1598349dCApiH','db-','entries','1891368vOvkdZ','dbtableConfig','1316680GAenfV','get','dbId','8MnBTJU','has','2huMftR','877710BUakML','5MZvOno','41172370UxosuG','1247517dQSTde'];a76_0x1cb5=function(){return _0x112d9e;};return a76_0x1cb5();}(function(_0xdbf9d9,_0x329b09){const _0x41d457=a76_0x35b5,_0x1dc409=_0xdbf9d9();while(!![]){try{const _0x3fc386=parseInt(_0x41d457(0x180))/0x1*(-parseInt(_0x41d457(0x17b))/0x2)+-parseInt(_0x41d457(0x187))/0x3+-parseInt(_0x41d457(0x179))/0x4+parseInt(_0x41d457(0x182))/0x5*(parseInt(_0x41d457(0x181))/0x6)+-parseInt(_0x41d457(0x185))/0x7+-parseInt(_0x41d457(0x17e))/0x8*(-parseInt(_0x41d457(0x184))/0x9)+parseInt(_0x41d457(0x183))/0xa;if(_0x3fc386===_0x329b09)break;else _0x1dc409['push'](_0x1dc409['shift']());}catch(_0x18c013){_0x1dc409['push'](_0x1dc409['shift']());}}}(a76_0x1cb5,0xe1fd9));import{listDatasets}from'../core/api-client.js';function a76_0x35b5(_0x3bb8ce,_0x4877bc){_0x3bb8ce=_0x3bb8ce-0x178;const _0x1cb565=a76_0x1cb5();let _0x35b563=_0x1cb565[_0x3bb8ce];return _0x35b563;}const cache=new Map();export async function listDatabases(_0x2dcadc){const _0x11f064=a76_0x35b5;if(cache[_0x11f064(0x17f)](_0x2dcadc))return cache[_0x11f064(0x17c)](_0x2dcadc);const _0x2aa471=await listDatasets(_0x2dcadc),_0x2a78f6=new Map();for(const _0x5cdefb of _0x2aa471){const _0x349fbe=_0x5cdefb[_0x11f064(0x17a)];_0x349fbe?.[_0x11f064(0x17d)]!=null&&_0x2a78f6[_0x11f064(0x186)](_0x349fbe[_0x11f064(0x17d)],_0x349fbe['dbName']??_0x11f064(0x188)+_0x349fbe[_0x11f064(0x17d)]);}const _0x1df12d=[..._0x2a78f6[_0x11f064(0x178)]()]['map'](([_0x408a37,_0x2d7be2])=>({'dbId':_0x408a37,'dbName':_0x2d7be2}));return cache['set'](_0x2dcadc,_0x1df12d),_0x1df12d;}export async function getDbName(_0x23fd3f,_0x448b40){const _0x11fa45=a76_0x35b5;try{const _0x22d508=await listDatabases(_0x23fd3f);return _0x22d508['find'](_0x341f28=>_0x341f28[_0x11fa45(0x17d)]===_0x448b40)?.['dbName'];}catch{return undefined;}}
1
+ (function(_0x3d6d0e,_0xb4c7ba){const _0x32136e=a77_0x30c0,_0x4b68c2=_0x3d6d0e();while(!![]){try{const _0x205f2f=-parseInt(_0x32136e(0x1d4))/0x1*(parseInt(_0x32136e(0x1d1))/0x2)+parseInt(_0x32136e(0x1ca))/0x3+-parseInt(_0x32136e(0x1cc))/0x4+parseInt(_0x32136e(0x1d3))/0x5+-parseInt(_0x32136e(0x1d2))/0x6*(parseInt(_0x32136e(0x1d6))/0x7)+parseInt(_0x32136e(0x1cf))/0x8*(-parseInt(_0x32136e(0x1c9))/0x9)+-parseInt(_0x32136e(0x1cb))/0xa*(-parseInt(_0x32136e(0x1cd))/0xb);if(_0x205f2f===_0xb4c7ba)break;else _0x4b68c2['push'](_0x4b68c2['shift']());}catch(_0x3bc15a){_0x4b68c2['push'](_0x4b68c2['shift']());}}}(a77_0x57a6,0x9925a));function a77_0x30c0(_0x8a4753,_0x571c3d){_0x8a4753=_0x8a4753-0x1c5;const _0x57a621=a77_0x57a6();let _0x30c0d1=_0x57a621[_0x8a4753];return _0x30c0d1;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x40fb54){const _0x1182eb=a77_0x30c0;if(cache[_0x1182eb(0x1ce)](_0x40fb54))return cache[_0x1182eb(0x1d0)](_0x40fb54);const _0xe124fa=await listDatasets(_0x40fb54),_0x4b8f82=new Map();for(const _0x2ae852 of _0xe124fa){const _0x293657=_0x2ae852[_0x1182eb(0x1c8)];_0x293657?.[_0x1182eb(0x1d8)]!=null&&_0x4b8f82['set'](_0x293657[_0x1182eb(0x1d8)],_0x293657[_0x1182eb(0x1c7)]??_0x1182eb(0x1c5)+_0x293657[_0x1182eb(0x1d8)]);}const _0x141e33=[..._0x4b8f82[_0x1182eb(0x1c6)]()]['map'](([_0x298b63,_0x4541dc])=>({'dbId':_0x298b63,'dbName':_0x4541dc}));return cache[_0x1182eb(0x1d5)](_0x40fb54,_0x141e33),_0x141e33;}export async function getDbName(_0x1c5f06,_0x164043){const _0x4a22b5=a77_0x30c0;try{const _0x1f7da9=await listDatabases(_0x1c5f06);return _0x1f7da9[_0x4a22b5(0x1d7)](_0x350cf8=>_0x350cf8['dbId']===_0x164043)?.['dbName'];}catch{return undefined;}}function a77_0x57a6(){const _0x1bf682=['1292328tozpuz','59884YRejAE','has','47984xxPTXf','get','2BodlTP','4902IwxIka','1766860jUXSTE','929480qZCkzm','set','5397kOJJLh','find','dbId','db-','entries','dbName','dbtableConfig','1143hsKlPD','392415KaYFFs','5120FjCEUE'];a77_0x57a6=function(){return _0x1bf682;};return a77_0x57a6();}
@@ -1 +1 @@
1
- (function(_0xf7264c,_0x370ee){const _0x1ccf6a=a77_0x478d,_0x5c9099=_0xf7264c();while(!![]){try{const _0x350447=parseInt(_0x1ccf6a(0x19f))/0x1*(-parseInt(_0x1ccf6a(0x18d))/0x2)+-parseInt(_0x1ccf6a(0x184))/0x3+parseInt(_0x1ccf6a(0x193))/0x4*(-parseInt(_0x1ccf6a(0x1a5))/0x5)+parseInt(_0x1ccf6a(0x185))/0x6*(-parseInt(_0x1ccf6a(0x180))/0x7)+-parseInt(_0x1ccf6a(0x19e))/0x8+parseInt(_0x1ccf6a(0x18b))/0x9+parseInt(_0x1ccf6a(0x195))/0xa;if(_0x350447===_0x370ee)break;else _0x5c9099['push'](_0x5c9099['shift']());}catch(_0x40d392){_0x5c9099['push'](_0x5c9099['shift']());}}}(a77_0x2b59,0x2cf3e));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a77_0x478d(_0x472bc6,_0x5f0f79){_0x472bc6=_0x472bc6-0x180;const _0x2b59b0=a77_0x2b59();let _0x478d9=_0x2b59b0[_0x472bc6];return _0x478d9;}import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;export function initSdkClient(_0x2d9e02){const _0x5d32b9=a77_0x478d;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x2d9e02[_0x5d32b9(0x191)],'env':_0x2d9e02[_0x5d32b9(0x1a4)],'authMode':_0x2d9e02[_0x5d32b9(0x182)],..._0x2d9e02['accessKey']?{'accessKey':_0x2d9e02[_0x5d32b9(0x190)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x5d32b9(0x183)]}}});}catch(_0x2dd0cc){clearSdkClient();throw _0x2dd0cc;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function a77_0x2b59(){const _0x56e2fb=['appCode','map','1185244kyyODg','delete','7604410WgfwSw','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','isArray','function','string','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','execute','data\x20aggregate\x20--params.aggregate[','aggregate','453144jYLoMn','1MQPbjh','\x22.\x20','field','batchCreate','object','env','5fxCmFt',']\x20must\x20be\x20an\x20object.','1127rdgLpH','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','authMode','invokeSource','66306XwWauv','10998IHLcXY','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27','sql','getOne','models','validation','1663335QytZDw','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','181922ukwTJO','column','bff','accessKey'];a77_0x2b59=function(){return _0x56e2fb;};return a77_0x2b59();}function normalizeAggregateParams(_0x4b7567){const _0x44be07=a77_0x478d,_0x561716=_0x4b7567[_0x44be07(0x19d)];if(_0x561716===undefined)return _0x4b7567;if(!Array[_0x44be07(0x197)](_0x561716))throw CliErrors['validation'](_0x44be07(0x18c));return{..._0x4b7567,'aggregate':_0x561716[_0x44be07(0x192)]((_0x52621b,_0xabc4f9)=>{const _0x2fb6c2=_0x44be07;if(!_0x52621b||typeof _0x52621b!==_0x2fb6c2(0x1a3)||Array['isArray'](_0x52621b))throw CliErrors[_0x2fb6c2(0x18a)](_0x2fb6c2(0x19c)+_0xabc4f9+_0x2fb6c2(0x1a6));const _0x2e2f16=_0x52621b[_0x2fb6c2(0x18e)]??_0x52621b[_0x2fb6c2(0x1a1)];if(typeof _0x2e2f16!==_0x2fb6c2(0x199)||_0x2e2f16['trim']()==='')throw CliErrors[_0x2fb6c2(0x18a)](_0x2fb6c2(0x19c)+_0xabc4f9+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x1bd676={..._0x52621b,'column':_0x2e2f16};return delete _0x1bd676[_0x2fb6c2(0x1a1)],_0x1bd676;})};}export async function executeData(_0x1d5eac,_0x476f86,_0x3adcb8){const _0x1fc951=a77_0x478d,_0xe62e21=ensureClient(),_0xc617f2='dataset_'+_0x1d5eac,_0x2e907f=_0xe62e21[_0x1fc951(0x189)][_0xc617f2];if(!_0x2e907f||typeof _0x2e907f[_0x476f86]!==_0x1fc951(0x198))throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x476f86+_0x1fc951(0x1a0)+_0x1fc951(0x19a));if(_0x476f86==='batchCreate')return _0x2e907f[_0x1fc951(0x1a2)](parseBatchCreateItemsFromParams(_0x3adcb8));const _0x295724=_0x3adcb8!==undefined&&_0x3adcb8!==null&&!Array[_0x1fc951(0x197)](_0x3adcb8)?_0x3adcb8:{};switch(_0x476f86){case _0x1fc951(0x188):{const _0x231134=_0x295724['id'];if(_0x231134===undefined||_0x231134===null)throw new Error(_0x1fc951(0x196));return _0x2e907f[_0x1fc951(0x188)](_0x231134);}case'update':{const {id:_0x303d04,..._0x4b7407}=_0x295724;if(_0x303d04===undefined||_0x303d04===null)throw new Error(_0x1fc951(0x186));return _0x2e907f['update'](_0x303d04,_0x4b7407);}case _0x1fc951(0x194):{const _0x49a0df=_0x295724['id'];if(_0x49a0df===undefined||_0x49a0df===null)throw new Error(_0x1fc951(0x181));return _0x2e907f[_0x1fc951(0x194)](_0x49a0df);}case'aggregate':return _0x2e907f['aggregate'](normalizeAggregateParams(_0x295724));default:return _0x2e907f[_0x476f86](_0x295724);}}export async function executeSdkSql(_0x4ecbdc,_0x1ef249){const _0x4e2cf5=a77_0x478d,_0x576cc3=ensureClient();return _0x576cc3[_0x4e2cf5(0x187)][_0x4e2cf5(0x19b)]({'sqlCode':_0x4ecbdc,'params':_0x1ef249});}export async function executeSdkBff(_0x5917a9,_0x193ca2){const _0x268c0e=a77_0x478d,_0x446b4c=ensureClient();return _0x446b4c[_0x268c0e(0x18f)][_0x268c0e(0x19b)]({'scriptName':_0x5917a9,'params':_0x193ca2});}
1
+ (function(_0x3f0768,_0x2d07c2){const _0x149104=a78_0x1074,_0x18eaa5=_0x3f0768();while(!![]){try{const _0xe357e1=-parseInt(_0x149104(0xb9))/0x1*(-parseInt(_0x149104(0xad))/0x2)+parseInt(_0x149104(0xa3))/0x3+-parseInt(_0x149104(0xb7))/0x4+parseInt(_0x149104(0xb0))/0x5+-parseInt(_0x149104(0xc2))/0x6*(parseInt(_0x149104(0xb4))/0x7)+parseInt(_0x149104(0xc0))/0x8*(-parseInt(_0x149104(0xab))/0x9)+-parseInt(_0x149104(0xc1))/0xa*(-parseInt(_0x149104(0xbf))/0xb);if(_0xe357e1===_0x2d07c2)break;else _0x18eaa5['push'](_0x18eaa5['shift']());}catch(_0x2812ce){_0x18eaa5['push'](_0x18eaa5['shift']());}}}(a78_0x39b9,0x39188));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;export function initSdkClient(_0x57afe1){const _0x398cff=a78_0x1074;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x57afe1[_0x398cff(0xc5)],'env':_0x57afe1[_0x398cff(0xba)],'authMode':_0x57afe1[_0x398cff(0xa6)],..._0x57afe1[_0x398cff(0xac)]?{'accessKey':_0x57afe1['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}catch(_0x124b12){clearSdkClient();throw _0x124b12;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0x3ca5e3=a78_0x1074;if(!_client)throw new Error(_0x3ca5e3(0xa7));return _client;}function a78_0x39b9(){const _0x135f6d=['11CDhMqe','33848cjIFMw','104970FGYlzb','24690PCWWbR','delete','models','appCode','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','map','bff','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','624819OupXhx','execute','data\x20aggregate\x20--params.aggregate[','authMode','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','\x22.\x20','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','function','873tiVJIa','accessKey','2BpbUOT','object','getOne','2154885hiiEDh','sql','validation','column','119mSwnEl','isArray','aggregate','1033464aWLwOD','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','322845BYdEed','env','batchCreate','field','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27',']\x20must\x20be\x20an\x20object.'];a78_0x39b9=function(){return _0x135f6d;};return a78_0x39b9();}function normalizeAggregateParams(_0x20530b){const _0x3fd2ca=a78_0x1074,_0x5a5b5c=_0x20530b[_0x3fd2ca(0xb6)];if(_0x5a5b5c===undefined)return _0x20530b;if(!Array['isArray'](_0x5a5b5c))throw CliErrors['validation'](_0x3fd2ca(0xc6));return{..._0x20530b,'aggregate':_0x5a5b5c[_0x3fd2ca(0xc7)]((_0x4598d9,_0x58b904)=>{const _0xc78287=_0x3fd2ca;if(!_0x4598d9||typeof _0x4598d9!==_0xc78287(0xae)||Array[_0xc78287(0xb5)](_0x4598d9))throw CliErrors[_0xc78287(0xb2)]('data\x20aggregate\x20--params.aggregate['+_0x58b904+_0xc78287(0xbe));const _0x216623=_0x4598d9[_0xc78287(0xb3)]??_0x4598d9[_0xc78287(0xbc)];if(typeof _0x216623!=='string'||_0x216623['trim']()==='')throw CliErrors[_0xc78287(0xb2)](_0xc78287(0xa5)+_0x58b904+_0xc78287(0xa2));const _0x2bb626={..._0x4598d9,'column':_0x216623};return delete _0x2bb626[_0xc78287(0xbc)],_0x2bb626;})};}export async function executeData(_0x5d4f0a,_0xab3d4d,_0x5a192a){const _0x133de3=a78_0x1074,_0x1df1b0=ensureClient(),_0x5c92aa='dataset_'+_0x5d4f0a,_0x19ecc3=_0x1df1b0[_0x133de3(0xc4)][_0x5c92aa];if(!_0x19ecc3||typeof _0x19ecc3[_0xab3d4d]!==_0x133de3(0xaa))throw new Error(_0x133de3(0xb8)+_0xab3d4d+_0x133de3(0xa8)+_0x133de3(0xa9));if(_0xab3d4d===_0x133de3(0xbb))return _0x19ecc3[_0x133de3(0xbb)](parseBatchCreateItemsFromParams(_0x5a192a));const _0x3adf99=_0x5a192a!==undefined&&_0x5a192a!==null&&!Array[_0x133de3(0xb5)](_0x5a192a)?_0x5a192a:{};switch(_0xab3d4d){case _0x133de3(0xaf):{const _0x25ad8d=_0x3adf99['id'];if(_0x25ad8d===undefined||_0x25ad8d===null)throw new Error(_0x133de3(0xbd));return _0x19ecc3[_0x133de3(0xaf)](_0x25ad8d);}case'update':{const {id:_0x554989,..._0x28539d}=_0x3adf99;if(_0x554989===undefined||_0x554989===null)throw new Error('update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27');return _0x19ecc3['update'](_0x554989,_0x28539d);}case _0x133de3(0xc3):{const _0x59bab=_0x3adf99['id'];if(_0x59bab===undefined||_0x59bab===null)throw new Error(_0x133de3(0xa1));return _0x19ecc3['delete'](_0x59bab);}case'aggregate':return _0x19ecc3['aggregate'](normalizeAggregateParams(_0x3adf99));default:return _0x19ecc3[_0xab3d4d](_0x3adf99);}}function a78_0x1074(_0x5c3273,_0x478110){_0x5c3273=_0x5c3273-0xa1;const _0x39b9fc=a78_0x39b9();let _0x107418=_0x39b9fc[_0x5c3273];return _0x107418;}export async function executeSdkSql(_0x3409dc,_0xbfc4d5){const _0x2aaa20=a78_0x1074,_0x1cbefa=ensureClient();return _0x1cbefa[_0x2aaa20(0xb1)]['execute']({'sqlCode':_0x3409dc,'params':_0xbfc4d5});}export async function executeSdkBff(_0x5ad037,_0x649cde){const _0x35db97=a78_0x1074,_0xc345ed=ensureClient();return _0xc345ed[_0x35db97(0xc8)][_0x35db97(0xa4)]({'scriptName':_0x5ad037,'params':_0x649cde});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a78_0x2f24(){const _0x3c3574=['215868pdmCZU','newConfigFileName','283808BlqHkJ','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','1856qmMOcw','1240syGUzR','1134095yOKoti','1103352kCuNsJ','\x20auth\x20login`.','656579hCqQzW','6XglZtG','rate_limited','283063RqAzcw','\x20or\x20run\x20`','75qfGSBM','22257zoNVxJ','Configure\x20accessKey\x20in\x20'];a78_0x2f24=function(){return _0x3c3574;};return a78_0x2f24();}const a78_0x51a71c=a78_0x2f34;(function(_0xa19862,_0x1b6631){const _0x3db7aa=a78_0x2f34,_0x1eaac7=_0xa19862();while(!![]){try{const _0x19d15a=-parseInt(_0x3db7aa(0xad))/0x1+parseInt(_0x3db7aa(0xa9))/0x2+parseInt(_0x3db7aa(0xb1))/0x3*(-parseInt(_0x3db7aa(0xae))/0x4)+parseInt(_0x3db7aa(0xb5))/0x5*(-parseInt(_0x3db7aa(0xa7))/0x6)+parseInt(_0x3db7aa(0xb0))/0x7+-parseInt(_0x3db7aa(0xab))/0x8*(parseInt(_0x3db7aa(0xb6))/0x9)+parseInt(_0x3db7aa(0xac))/0xa*(parseInt(_0x3db7aa(0xb3))/0xb);if(_0x19d15a===_0x1b6631)break;else _0x1eaac7['push'](_0x1eaac7['shift']());}catch(_0x4327ef){_0x1eaac7['push'](_0x1eaac7['shift']());}}}(a78_0x2f24,0x992d8));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a78_0x2f34(_0x71ef27,_0x11f348){_0x71ef27=_0x71ef27-0xa6;const _0x2f2446=a78_0x2f24();let _0x2f346b=_0x2f2446[_0x71ef27];return _0x2f346b;}export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a78_0x51a71c(0xa6)+PRODUCT_CONFIG[a78_0x51a71c(0xa8)]+a78_0x51a71c(0xb4)+CLI_BIN_NAME+a78_0x51a71c(0xaf),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a78_0x51a71c(0xa8)]+'.','notInProjectHint':a78_0x51a71c(0xaa)+PRODUCT_CONFIG[a78_0x51a71c(0xa8)]+'\x20file.'});export const CliErrors={...baseCliErrors,'rateLimited':(_0x3e0368,_0x42ebf6)=>new CliError(a78_0x51a71c(0xb2),0x2,_0x3e0368,_0x42ebf6)};
1
+ const a79_0x559108=a79_0x1faf;(function(_0x39c688,_0x1446bd){const _0x3d863c=a79_0x1faf,_0x89995b=_0x39c688();while(!![]){try{const _0x14ab30=-parseInt(_0x3d863c(0x166))/0x1*(-parseInt(_0x3d863c(0x15f))/0x2)+-parseInt(_0x3d863c(0x163))/0x3+parseInt(_0x3d863c(0x169))/0x4*(parseInt(_0x3d863c(0x168))/0x5)+-parseInt(_0x3d863c(0x162))/0x6*(parseInt(_0x3d863c(0x15a))/0x7)+parseInt(_0x3d863c(0x16a))/0x8+parseInt(_0x3d863c(0x167))/0x9*(-parseInt(_0x3d863c(0x159))/0xa)+-parseInt(_0x3d863c(0x165))/0xb*(-parseInt(_0x3d863c(0x15b))/0xc);if(_0x14ab30===_0x1446bd)break;else _0x89995b['push'](_0x89995b['shift']());}catch(_0x593e4b){_0x89995b['push'](_0x89995b['shift']());}}}(a79_0x229b,0x3f29b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a79_0x229b(){const _0xeca031=['Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','\x20file.','3666nXEGwp','220416yuLaAr','Configure\x20accessKey\x20in\x20','3729yHanCp','1796irqsJQ','666YmDRRn','15GbildB','194188cDWrbq','3842608Cpgjls','65000ZGljYG','5859DIBYUU','7692tLyexB','rate_limited','\x20auth\x20login`.','newConfigFileName','536HDQUdc'];a79_0x229b=function(){return _0xeca031;};return a79_0x229b();}function a79_0x1faf(_0x3c8f97,_0x3d678e){_0x3c8f97=_0x3c8f97-0x159;const _0x229b69=a79_0x229b();let _0x1faf06=_0x229b69[_0x3c8f97];return _0x1faf06;}import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a79_0x559108(0x164)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20run\x20`'+CLI_BIN_NAME+a79_0x559108(0x15d),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a79_0x559108(0x15e)]+'.','notInProjectHint':a79_0x559108(0x160)+PRODUCT_CONFIG[a79_0x559108(0x15e)]+a79_0x559108(0x161)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x3eba79,_0x5bb0a8)=>new CliError(a79_0x559108(0x15c),0x2,_0x3eba79,_0x5bb0a8)};
@@ -1 +1 @@
1
- (function(_0x555609,_0x21380b){var _0x59e7e1=a79_0x4c73,_0x29048a=_0x555609();while(!![]){try{var _0x324238=parseInt(_0x59e7e1(0x7d))/0x1*(-parseInt(_0x59e7e1(0x84))/0x2)+-parseInt(_0x59e7e1(0x7f))/0x3+parseInt(_0x59e7e1(0x86))/0x4*(parseInt(_0x59e7e1(0x7c))/0x5)+-parseInt(_0x59e7e1(0x85))/0x6*(parseInt(_0x59e7e1(0x83))/0x7)+parseInt(_0x59e7e1(0x80))/0x8+parseInt(_0x59e7e1(0x82))/0x9+parseInt(_0x59e7e1(0x81))/0xa*(parseInt(_0x59e7e1(0x7e))/0xb);if(_0x324238===_0x21380b)break;else _0x29048a['push'](_0x29048a['shift']());}catch(_0x19843f){_0x29048a['push'](_0x29048a['shift']());}}}(a79_0x2715,0xdf010));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a79_0x450db5}from'@lovrabet/cli-framework';export function buildAllFlags(_0x223a4){return a79_0x450db5(_0x223a4,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a79_0x4c73(_0x7669e,_0x2d73b9){_0x7669e=_0x7669e-0x7c;var _0x2715ab=a79_0x2715();var _0x4c7342=_0x2715ab[_0x7669e];return _0x4c7342;}function a79_0x2715(){var _0x293bed=['205976XrFPIx','25alDhwp','899yIMnNt','121cIfWMt','526593KVhyUa','6679584USiaUb','1063380dKQRKg','8491077LWBvGT','7636125DaDCTs','2282qerOvM','6yFJSXy'];a79_0x2715=function(){return _0x293bed;};return a79_0x2715();}
1
+ (function(_0x17a942,_0x7b8d05){var _0x5ebe7c=a80_0x5e86,_0x1400c9=_0x17a942();while(!![]){try{var _0x327aa1=-parseInt(_0x5ebe7c(0xd1))/0x1+parseInt(_0x5ebe7c(0xd2))/0x2*(-parseInt(_0x5ebe7c(0xcf))/0x3)+parseInt(_0x5ebe7c(0xd0))/0x4+parseInt(_0x5ebe7c(0xd4))/0x5+-parseInt(_0x5ebe7c(0xd5))/0x6*(parseInt(_0x5ebe7c(0xd9))/0x7)+parseInt(_0x5ebe7c(0xd3))/0x8*(-parseInt(_0x5ebe7c(0xd8))/0x9)+parseInt(_0x5ebe7c(0xd7))/0xa*(parseInt(_0x5ebe7c(0xd6))/0xb);if(_0x327aa1===_0x7b8d05)break;else _0x1400c9['push'](_0x1400c9['shift']());}catch(_0x1d3856){_0x1400c9['push'](_0x1400c9['shift']());}}}(a80_0x2593,0x1dbf3));function a80_0x5e86(_0x230caf,_0xe103fc){_0x230caf=_0x230caf-0xcf;var _0x259319=a80_0x2593();var _0x5e86dd=_0x259319[_0x230caf];return _0x5e86dd;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a80_0x39efde}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3531c4){return a80_0x39efde(_0x3531c4,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a80_0x2593(){var _0x2d7ae6=['84pyPNIS','253IldOgS','174140DqBPFG','9AUyVpJ','14217seKMmG','51nuCrWi','488872uVAKwP','83382ppVVzz','15416YZDLMa','1919464HszDZN','409440FxdYPb'];a80_0x2593=function(){return _0x2d7ae6;};return a80_0x2593();}
@@ -1 +1 @@
1
- function a80_0x52c3(){const _0x3193a8=['4928665nCahnP','173480hbsQwL','3070SpPnqJ','1744305ouKZip','209118TqTBhX','2epSgnF','description','31310tBiSTu','81jpOHQU','14lDWLFG','2205144xVFJNH','body','43868EQfreV'];a80_0x52c3=function(){return _0x3193a8;};return a80_0x52c3();}function a80_0x4c5c(_0x13b145,_0x486a11){_0x13b145=_0x13b145-0x107;const _0x52c37b=a80_0x52c3();let _0x4c5c78=_0x52c37b[_0x13b145];return _0x4c5c78;}(function(_0x3328f5,_0x32b67d){const _0x353b57=a80_0x4c5c,_0x580b33=_0x3328f5();while(!![]){try{const _0x44078d=-parseInt(_0x353b57(0x110))/0x1*(-parseInt(_0x353b57(0x112))/0x2)+-parseInt(_0x353b57(0x10e))/0x3+parseInt(_0x353b57(0x108))/0x4+-parseInt(_0x353b57(0x10b))/0x5+-parseInt(_0x353b57(0x10f))/0x6*(-parseInt(_0x353b57(0x107))/0x7)+-parseInt(_0x353b57(0x10c))/0x8*(-parseInt(_0x353b57(0x113))/0x9)+parseInt(_0x353b57(0x10d))/0xa*(parseInt(_0x353b57(0x10a))/0xb);if(_0x44078d===_0x32b67d)break;else _0x580b33['push'](_0x580b33['shift']());}catch(_0x2cff99){_0x580b33['push'](_0x580b33['shift']());}}}(a80_0x52c3,0x7b327));export function dryRun(_0x3abc8c,_0x49dfc3){const _0x44c6c3={'method':_0x3abc8c,'url':_0x49dfc3},_0xb70024={'body'(_0x26f204){const _0x1b2285=a80_0x4c5c;return _0x44c6c3[_0x1b2285(0x109)]=_0x26f204,_0xb70024;},'description'(_0x157e72){const _0x58380f=a80_0x4c5c;return _0x44c6c3[_0x58380f(0x111)]=_0x157e72,_0xb70024;},'build'(){return{..._0x44c6c3};}};return _0xb70024;}
1
+ (function(_0xae9316,_0x5c1880){const _0x10b2ea=a81_0x2a66,_0x85255d=_0xae9316();while(!![]){try{const _0xe86d16=parseInt(_0x10b2ea(0xd0))/0x1+-parseInt(_0x10b2ea(0xd5))/0x2*(-parseInt(_0x10b2ea(0xd3))/0x3)+-parseInt(_0x10b2ea(0xcd))/0x4+parseInt(_0x10b2ea(0xd2))/0x5+parseInt(_0x10b2ea(0xcf))/0x6+parseInt(_0x10b2ea(0xd4))/0x7+-parseInt(_0x10b2ea(0xce))/0x8;if(_0xe86d16===_0x5c1880)break;else _0x85255d['push'](_0x85255d['shift']());}catch(_0x21bb24){_0x85255d['push'](_0x85255d['shift']());}}}(a81_0x3cb9,0x3506a));function a81_0x3cb9(){const _0x219950=['description','922575aItamk','3alYnZl','637147OahEGE','319874DqbDAk','356308dNOoZf','4578312nwPPFq','1340820DtlorB','219617ufQbzS'];a81_0x3cb9=function(){return _0x219950;};return a81_0x3cb9();}function a81_0x2a66(_0x12b1f5,_0x60dea){_0x12b1f5=_0x12b1f5-0xcd;const _0x3cb98b=a81_0x3cb9();let _0x2a6607=_0x3cb98b[_0x12b1f5];return _0x2a6607;}export function dryRun(_0x40ee29,_0x166ba4){const _0x90522c={'method':_0x40ee29,'url':_0x166ba4},_0x2f058e={'body'(_0x4efc27){return _0x90522c['body']=_0x4efc27,_0x2f058e;},'description'(_0x20e4d6){const _0x17f6c2=a81_0x2a66;return _0x90522c[_0x17f6c2(0xd1)]=_0x20e4d6,_0x2f058e;},'build'(){return{..._0x90522c};}};return _0x2f058e;}
@@ -1 +1 @@
1
- const a81_0x3f7e4c=a81_0xa55f;(function(_0x164784,_0x65aea7){const _0x51d90a=a81_0xa55f,_0x26ea9d=_0x164784();while(!![]){try{const _0xf46338=parseInt(_0x51d90a(0x1f6))/0x1*(-parseInt(_0x51d90a(0x1f2))/0x2)+parseInt(_0x51d90a(0x1f8))/0x3*(parseInt(_0x51d90a(0x1f0))/0x4)+-parseInt(_0x51d90a(0x1f5))/0x5*(parseInt(_0x51d90a(0x1f1))/0x6)+parseInt(_0x51d90a(0x1f4))/0x7+-parseInt(_0x51d90a(0x1f9))/0x8*(-parseInt(_0x51d90a(0x1ed))/0x9)+-parseInt(_0x51d90a(0x1f3))/0xa*(parseInt(_0x51d90a(0x1f7))/0xb)+-parseInt(_0x51d90a(0x1ef))/0xc*(-parseInt(_0x51d90a(0x1ec))/0xd);if(_0xf46338===_0x65aea7)break;else _0x26ea9d['push'](_0x26ea9d['shift']());}catch(_0x341788){_0x26ea9d['push'](_0x26ea9d['shift']());}}}(a81_0x2a52,0xb0d61));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a81_0x3f7e4c(0x1ee)];function a81_0xa55f(_0x513228,_0x563227){_0x513228=_0x513228-0x1ec;const _0x2a5291=a81_0x2a52();let _0xa55fc8=_0x2a5291[_0x513228];return _0xa55fc8;}function a81_0x2a52(){const _0x1812d8=['8GQIGEq','13119288LpWtJf','382221PQaGlg','validateFlags','12jRqIDh','949444atRuNO','747606LDBPwB','1966454FnyPXp','110hZbnoK','7204827tVtqYt','20lrzgFi','1uQsJPl','587037obZqYB','9kyuwIp'];a81_0x2a52=function(){return _0x1812d8;};return a81_0x2a52();}
1
+ function a82_0x2691(){const _0x2e1b59=['54864yVWzFE','325038QhrVSD','211179hsfPUz','12rlHUYz','2291552XyYCkT','362828QBRETs','55JAserk','29113IMrKNe','1180xqHhBA','44505eDKShE','parseFlags'];a82_0x2691=function(){return _0x2e1b59;};return a82_0x2691();}const a82_0x45306a=a82_0xb315;(function(_0x3b4998,_0x234816){const _0x248e85=a82_0xb315,_0x7c68fe=_0x3b4998();while(!![]){try{const _0x527a4b=-parseInt(_0x248e85(0xd1))/0x1*(parseInt(_0x248e85(0xcd))/0x2)+parseInt(_0x248e85(0xcc))/0x3+-parseInt(_0x248e85(0xcf))/0x4+parseInt(_0x248e85(0xd0))/0x5*(parseInt(_0x248e85(0xca))/0x6)+-parseInt(_0x248e85(0xcb))/0x7+-parseInt(_0x248e85(0xce))/0x8+parseInt(_0x248e85(0xc8))/0x9*(parseInt(_0x248e85(0xd2))/0xa);if(_0x527a4b===_0x234816)break;else _0x7c68fe['push'](_0x7c68fe['shift']());}catch(_0x35de49){_0x7c68fe['push'](_0x7c68fe['shift']());}}}(a82_0x2691,0x26240));function a82_0xb315(_0x5beb2c,_0xdf05c4){_0x5beb2c=_0x5beb2c-0xc8;const _0x269149=a82_0x2691();let _0xb31514=_0x269149[_0x5beb2c];return _0xb31514;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a82_0x45306a(0xc9)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- (function(_0xcf00ac,_0x514fec){const _0x1618f0=a82_0x2e91,_0x1e2ae5=_0xcf00ac();while(!![]){try{const _0x5950b3=-parseInt(_0x1618f0(0x147))/0x1*(parseInt(_0x1618f0(0x144))/0x2)+parseInt(_0x1618f0(0x143))/0x3+parseInt(_0x1618f0(0x14b))/0x4*(parseInt(_0x1618f0(0x148))/0x5)+-parseInt(_0x1618f0(0x156))/0x6*(parseInt(_0x1618f0(0x146))/0x7)+parseInt(_0x1618f0(0x14d))/0x8*(-parseInt(_0x1618f0(0x14a))/0x9)+-parseInt(_0x1618f0(0x152))/0xa+parseInt(_0x1618f0(0x14e))/0xb;if(_0x5950b3===_0x514fec)break;else _0x1e2ae5['push'](_0x1e2ae5['shift']());}catch(_0x328431){_0x1e2ae5['push'](_0x1e2ae5['shift']());}}}(a82_0x4516,0xd2042));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a82_0x4516(){const _0x4b445e=['filter','15141340IpmAgX','generateFullHelp','Requires\x20appcode\x20(set\x20via\x20','generateServiceHelp','18zKkcfv','1986855LHchCC','200NnjusG','has','3945543qgPekP','3013GHuXJy','15vfPEHh','\x20or\x20--appcode).','1818225MddYKN','1936736trFNxL','service','32vZthBi','33658570AhkTKl','map','get'];a82_0x4516=function(){return _0x4b445e;};return a82_0x4516();}import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x1ea1c4=a82_0x2e91;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x1ea1c4(0x154)+PRODUCT_CONFIG['newConfigFileName']+_0x1ea1c4(0x149)});}export function generateCommandHelp(_0x127de4){return createGenerators()['generateCommandHelp'](_0x127de4);}export function generateServiceHelp(_0x3783c4){const _0x4f03b2=a82_0x2e91;return createGenerators()[_0x4f03b2(0x155)](_0x3783c4);}export function generateFullHelp(){const _0x4ff20a=a82_0x2e91;return createGenerators()[_0x4ff20a(0x153)]();}function a82_0x2e91(_0x5cac32,_0x32f7f8){_0x5cac32=_0x5cac32-0x143;const _0x451689=a82_0x4516();let _0x2e9103=_0x451689[_0x5cac32];return _0x2e9103;}function getAnyServiceEntry(_0x5ed1e5){const _0x798c16=getServiceEntry(_0x5ed1e5);if(_0x798c16)return _0x798c16;try{return getDynamicServiceEntry(_0x5ed1e5);}catch{return undefined;}}function getAnyServiceDefinitions(_0x43fd34){const _0x337b9c=a82_0x2e91,_0x5c8ad1=serviceGroups[_0x337b9c(0x150)](_0x43fd34);if(_0x5c8ad1)return _0x5c8ad1;try{return getDynamicServiceDefinitions(_0x43fd34);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x48a226=a82_0x2e91,_0x2d7c8a=new Set(serviceRegistry[_0x48a226(0x14f)](_0x153d3b=>_0x153d3b['service']));try{return listDynamicServiceEntries()[_0x48a226(0x151)](_0x2903a7=>!_0x2d7c8a[_0x48a226(0x145)](_0x2903a7[_0x48a226(0x14c)]));}catch{return[];}}
1
+ (function(_0x3eaf85,_0x8649a6){const _0x250da3=a83_0x4022,_0x31a5c6=_0x3eaf85();while(!![]){try{const _0x4bb4b0=parseInt(_0x250da3(0x199))/0x1*(parseInt(_0x250da3(0x1a0))/0x2)+-parseInt(_0x250da3(0x19a))/0x3*(parseInt(_0x250da3(0x192))/0x4)+-parseInt(_0x250da3(0x1a3))/0x5*(-parseInt(_0x250da3(0x196))/0x6)+-parseInt(_0x250da3(0x18f))/0x7*(parseInt(_0x250da3(0x194))/0x8)+parseInt(_0x250da3(0x1a2))/0x9*(parseInt(_0x250da3(0x191))/0xa)+-parseInt(_0x250da3(0x190))/0xb+parseInt(_0x250da3(0x198))/0xc;if(_0x4bb4b0===_0x8649a6)break;else _0x31a5c6['push'](_0x31a5c6['shift']());}catch(_0x2740d6){_0x31a5c6['push'](_0x31a5c6['shift']());}}}(a83_0x1e4d,0xa91c4));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a83_0x4022(_0x3c604f,_0x3910ce){_0x3c604f=_0x3c604f-0x18f;const _0x1e4d45=a83_0x1e4d();let _0x402290=_0x1e4d45[_0x3c604f];return _0x402290;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x4c700b=a83_0x4022;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x4c700b(0x19f)+PRODUCT_CONFIG['newConfigFileName']+_0x4c700b(0x19c)});}export function generateCommandHelp(_0x5affe5){const _0x9c05a=a83_0x4022;return createGenerators()[_0x9c05a(0x19b)](_0x5affe5);}export function generateServiceHelp(_0x34c2e7){return createGenerators()['generateServiceHelp'](_0x34c2e7);}export function generateFullHelp(){const _0x41cb09=a83_0x4022;return createGenerators()[_0x41cb09(0x195)]();}function getAnyServiceEntry(_0x47fbca){const _0x51a489=getServiceEntry(_0x47fbca);if(_0x51a489)return _0x51a489;try{return getDynamicServiceEntry(_0x47fbca);}catch{return undefined;}}function getAnyServiceDefinitions(_0x2f8f7f){const _0x4a9872=a83_0x4022,_0x43fc46=serviceGroups[_0x4a9872(0x19d)](_0x2f8f7f);if(_0x43fc46)return _0x43fc46;try{return getDynamicServiceDefinitions(_0x2f8f7f);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x36548b=a83_0x4022,_0x3c6aa6=new Set(serviceRegistry[_0x36548b(0x193)](_0x4cf36f=>_0x4cf36f[_0x36548b(0x19e)]));try{return listDynamicServiceEntries()[_0x36548b(0x197)](_0x5a2cb5=>!_0x3c6aa6[_0x36548b(0x1a1)](_0x5a2cb5[_0x36548b(0x19e)]));}catch{return[];}}function a83_0x1e4d(){const _0x236d8d=['generateFullHelp','6kVyKZF','filter','19789956UKYDWM','632iwRSPy','42mcrbOO','generateCommandHelp','\x20or\x20--appcode).','get','service','Requires\x20appcode\x20(set\x20via\x20','322YZQgBw','has','180CSrkwv','5721635KFiwHJ','21Temdkz','13421793wrqhzZ','310710TxeBKp','360484mLwwZt','map','912344TctdyA'];a83_0x1e4d=function(){return _0x236d8d;};return a83_0x1e4d();}
@@ -1 +1 @@
1
- function a83_0x1a6b(){var _0x33d864=['968132feMbJb','1Rkbprn','97008yEbuhp','1482465jUmEFt','610mUiCFi','3595209utyEAR','24bMpBor','894176RtitOV','12346614SiPPPa','8qrqIEb','3064467laFSuX'];a83_0x1a6b=function(){return _0x33d864;};return a83_0x1a6b();}(function(_0x7f5e5d,_0x7fd36b){var _0x1f91de=a83_0x33e2,_0x495836=_0x7f5e5d();while(!![]){try{var _0x50d244=parseInt(_0x1f91de(0x1f3))/0x1*(-parseInt(_0x1f91de(0x1ee))/0x2)+-parseInt(_0x1f91de(0x1f7))/0x3+-parseInt(_0x1f91de(0x1f4))/0x4+parseInt(_0x1f91de(0x1f5))/0x5*(-parseInt(_0x1f91de(0x1ed))/0x6)+parseInt(_0x1f91de(0x1f1))/0x7*(-parseInt(_0x1f91de(0x1f0))/0x8)+-parseInt(_0x1f91de(0x1ef))/0x9+-parseInt(_0x1f91de(0x1f6))/0xa*(-parseInt(_0x1f91de(0x1f2))/0xb);if(_0x50d244===_0x7fd36b)break;else _0x495836['push'](_0x495836['shift']());}catch(_0x3e32cb){_0x495836['push'](_0x495836['shift']());}}}(a83_0x1a6b,0xabb9e));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a83_0x33e2(_0x52cdaf,_0x20c706){_0x52cdaf=_0x52cdaf-0x1ed;var _0x1a6bbe=a83_0x1a6b();var _0x33e211=_0x1a6bbe[_0x52cdaf];return _0x33e211;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0xe7e314,_0x319efd){var _0xd60d51=a84_0x1ed7,_0x101f71=_0xe7e314();while(!![]){try{var _0x57c23f=-parseInt(_0xd60d51(0xf4))/0x1+-parseInt(_0xd60d51(0xf5))/0x2+-parseInt(_0xd60d51(0xf3))/0x3*(parseInt(_0xd60d51(0xf0))/0x4)+-parseInt(_0xd60d51(0xf2))/0x5*(-parseInt(_0xd60d51(0xee))/0x6)+parseInt(_0xd60d51(0xec))/0x7*(-parseInt(_0xd60d51(0xed))/0x8)+-parseInt(_0xd60d51(0xf1))/0x9+parseInt(_0xd60d51(0xef))/0xa;if(_0x57c23f===_0x319efd)break;else _0x101f71['push'](_0x101f71['shift']());}catch(_0x471850){_0x101f71['push'](_0x101f71['shift']());}}}(a84_0x345d,0x3c1ee));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a84_0x345d(){var _0x39cea1=['240472EJEvFj','79248GVvBKt','12572810QqLPej','7556PRewlt','1638702HTSBAa','95gkiLNC','447QffBZl','346534lJWcjP','2042AdvwWN','105zUCgoJ'];a84_0x345d=function(){return _0x39cea1;};return a84_0x345d();}function a84_0x1ed7(_0x24a693,_0x2c3d84){_0x24a693=_0x24a693-0xec;var _0x345d3a=a84_0x345d();var _0x1ed7de=_0x345d3a[_0x24a693];return _0x1ed7de;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x46ac53,_0x2b6959){const _0x592143=a84_0x1e69,_0x3d8dfd=_0x46ac53();while(!![]){try{const _0x333b2a=-parseInt(_0x592143(0x11a))/0x1+-parseInt(_0x592143(0x114))/0x2+-parseInt(_0x592143(0x113))/0x3*(parseInt(_0x592143(0x118))/0x4)+-parseInt(_0x592143(0x111))/0x5*(-parseInt(_0x592143(0x110))/0x6)+-parseInt(_0x592143(0x112))/0x7+parseInt(_0x592143(0x117))/0x8+parseInt(_0x592143(0x116))/0x9;if(_0x333b2a===_0x2b6959)break;else _0x3d8dfd['push'](_0x3d8dfd['shift']());}catch(_0x562e3b){_0x3d8dfd['push'](_0x3d8dfd['shift']());}}}(a84_0x8921,0x857b7));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a84_0x1e69(_0x40a5b7,_0x491576){_0x40a5b7=_0x40a5b7-0x10e;const _0x89212f=a84_0x8921();let _0x1e694d=_0x89212f[_0x40a5b7];return _0x1e694d;}function a84_0x8921(){const _0x56f725=['9089847jtzXzJ','994208WfcUGb','356VUfSqQ','error','524419HhPrTK','update','format','pretty','2066202uRHmpe','15LCTptj','956739rohOIK','27609QeqViL','280908mHbHwR','_notice'];a84_0x8921=function(){return _0x56f725;};return a84_0x8921();}export function formatOutput(_0x53171d,_0xea6f35){const _0x572f9f=a84_0x1e69,_0x3dfdea=_0x53171d[_0x572f9f(0x115)],{_notice:_0xbe0dd0,..._0x2a2c68}=_0x53171d;void _0xbe0dd0,baseFormatOutput(_0x2a2c68,_0xea6f35),_0xea6f35[_0x572f9f(0x10e)]===_0x572f9f(0x10f)&&printPrettyNotice(_0x3dfdea);}function printPrettyNotice(_0x365bc2){const _0x11f63c=a84_0x1e69;if(!_0x365bc2?.[_0x11f63c(0x11b)])return;console[_0x11f63c(0x119)](_0x365bc2[_0x11f63c(0x11b)]['message']+'\x20('+_0x365bc2['update']['url']+')');}
1
+ function a85_0x4709(_0x4f931c,_0x39a942){_0x4f931c=_0x4f931c-0x16d;const _0xb8fe9a=a85_0xb8fe();let _0x470968=_0xb8fe9a[_0x4f931c];return _0x470968;}(function(_0x10f660,_0x802df){const _0x36b588=a85_0x4709,_0x2c1141=_0x10f660();while(!![]){try{const _0x26329a=parseInt(_0x36b588(0x17c))/0x1+parseInt(_0x36b588(0x179))/0x2+-parseInt(_0x36b588(0x172))/0x3*(-parseInt(_0x36b588(0x17b))/0x4)+-parseInt(_0x36b588(0x170))/0x5+parseInt(_0x36b588(0x174))/0x6*(-parseInt(_0x36b588(0x177))/0x7)+-parseInt(_0x36b588(0x16d))/0x8+-parseInt(_0x36b588(0x171))/0x9*(-parseInt(_0x36b588(0x17a))/0xa);if(_0x26329a===_0x802df)break;else _0x2c1141['push'](_0x2c1141['shift']());}catch(_0x258e61){_0x2c1141['push'](_0x2c1141['shift']());}}}(a85_0xb8fe,0x24a06));function a85_0xb8fe(){const _0x5ae389=['205424VIQjeJ','message','887928rTZZdH','error','url','1398540kxNZXV','9ctnGDK','1299quwHFt','pretty','6NtuAhu','update','format','1129114HBLJly','_notice','141982CxprQG','1614780vgMvZC','2440cmmmgG'];a85_0xb8fe=function(){return _0x5ae389;};return a85_0xb8fe();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x1bf2d1,_0x329964){const _0x39b330=a85_0x4709,_0x1d5365=_0x1bf2d1[_0x39b330(0x178)],{_notice:_0x25e898,..._0x330480}=_0x1bf2d1;void _0x25e898,baseFormatOutput(_0x330480,_0x329964),_0x329964[_0x39b330(0x176)]===_0x39b330(0x173)&&printPrettyNotice(_0x1d5365);}function printPrettyNotice(_0x15dd3a){const _0x2e9f77=a85_0x4709;if(!_0x15dd3a?.[_0x2e9f77(0x175)])return;console[_0x2e9f77(0x16e)](_0x15dd3a[_0x2e9f77(0x175)][_0x2e9f77(0x17d)]+'\x20('+_0x15dd3a[_0x2e9f77(0x175)][_0x2e9f77(0x16f)]+')');}
@@ -1 +1 @@
1
- (function(_0x31374b,_0x1231bb){const _0x46427c=a85_0xfb8c,_0x293266=_0x31374b();while(!![]){try{const _0x3bf92b=-parseInt(_0x46427c(0x176))/0x1*(-parseInt(_0x46427c(0x153))/0x2)+parseInt(_0x46427c(0x166))/0x3+-parseInt(_0x46427c(0x15d))/0x4+-parseInt(_0x46427c(0x15c))/0x5+-parseInt(_0x46427c(0x173))/0x6*(-parseInt(_0x46427c(0x172))/0x7)+-parseInt(_0x46427c(0x175))/0x8+parseInt(_0x46427c(0x15b))/0x9;if(_0x3bf92b===_0x1231bb)break;else _0x293266['push'](_0x293266['shift']());}catch(_0x52046a){_0x293266['push'](_0x293266['shift']());}}}(a85_0x3792,0xbfde7));function toKebab(_0x49627b){const _0x397948=a85_0xfb8c;return _0x49627b[_0x397948(0x158)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x5e45d8,_0x3b3194)=>'-'+_0x3b3194[_0x397948(0x157)]())[_0x397948(0x158)](/([a-z0-9])([A-Z])/g,(_0x5c14d5,_0x58eb8f,_0x30ab74)=>_0x58eb8f+'-'+_0x30ab74)[_0x397948(0x157)]();}function a85_0xfb8c(_0xbfbed4,_0x1fcd41){_0xbfbed4=_0xbfbed4-0x151;const _0x37924c=a85_0x3792();let _0xfb8cbc=_0x37924c[_0xbfbed4];return _0xfb8cbc;}function buildKnownFlags(_0x55370a){const _0x3f08fe=a85_0xfb8c,_0x1fd043=new Set();for(const _0x2b7abe of _0x55370a){_0x1fd043[_0x3f08fe(0x168)](_0x2b7abe[_0x3f08fe(0x156)]),_0x1fd043[_0x3f08fe(0x168)](toCamelCase(_0x2b7abe[_0x3f08fe(0x156)]));}for(const _0x253a42 of['dry-run',_0x3f08fe(0x16e),'yes','format']){_0x1fd043[_0x3f08fe(0x168)](_0x253a42);}for(const _0x11b738 of[_0x3f08fe(0x171),_0x3f08fe(0x15e),_0x3f08fe(0x177),_0x3f08fe(0x169),_0x3f08fe(0x155),_0x3f08fe(0x15a),'ci',_0x3f08fe(0x164),_0x3f08fe(0x16a)]){_0x1fd043['add'](_0x11b738);}return _0x1fd043;}function buildFlagTypeMap(_0x5e6483){const _0x4eff77=a85_0xfb8c,_0x4d2c87=new Map();for(const _0x43d2a8 of _0x5e6483){_0x4d2c87[_0x4eff77(0x162)](_0x43d2a8[_0x4eff77(0x156)],_0x43d2a8[_0x4eff77(0x151)]),_0x4d2c87[_0x4eff77(0x162)](toCamelCase(_0x43d2a8['name']),_0x43d2a8['type']);}return _0x4d2c87;}function toCamelCase(_0x25df23){const _0x2ce939=a85_0xfb8c;return _0x25df23[_0x2ce939(0x158)](/-([a-z])/g,(_0x5f9e67,_0x31cc71)=>_0x31cc71[_0x2ce939(0x174)]());}function aliasHandler(_0x5dc417,_0x23ea14){const _0x921fe=a85_0xfb8c,_0x33605f=[];for(const _0xf8762f of Object[_0x921fe(0x160)](_0x5dc417)){if(_0x23ea14[_0x921fe(0x167)](_0xf8762f))continue;const _0x5677a1=toKebab(_0xf8762f);_0x5677a1!==_0xf8762f&&_0x23ea14['has'](_0x5677a1)&&_0x33605f['push']({'original':_0xf8762f,'corrected':_0x5677a1,'handler':_0x921fe(0x163)});}return _0x33605f;}function stickyHandler(_0xa474b6,_0x4e08b8,_0x388d5d){const _0x1e7da3=a85_0xfb8c,_0x14d6a8=[];for(const [_0x1b5351,_0x246083]of Object[_0x1e7da3(0x152)](_0xa474b6)){if(_0x246083!==!![])continue;for(let _0x23f2cd=_0x1b5351[_0x1e7da3(0x16f)]-0x1;_0x23f2cd>0x0;_0x23f2cd--){const _0x238abc=_0x1b5351[_0x1e7da3(0x161)](0x0,_0x23f2cd),_0x8a170d=_0x1b5351[_0x1e7da3(0x161)](_0x23f2cd),_0x1b4a6b=toKebab(_0x238abc),_0x41ce60=toCamelCase(_0x238abc),_0x148c13=_0x4e08b8[_0x1e7da3(0x167)](_0x238abc)?_0x238abc:_0x4e08b8[_0x1e7da3(0x167)](_0x1b4a6b)?_0x1b4a6b:_0x4e08b8[_0x1e7da3(0x167)](_0x41ce60)?_0x41ce60:null;if(!_0x148c13)continue;const _0x2f401d=_0x388d5d[_0x1e7da3(0x16b)](_0x148c13)??_0x1e7da3(0x159);let _0x4a7244;if(_0x2f401d===_0x1e7da3(0x170)){const _0x51179f=Number(_0x8a170d);if(isNaN(_0x51179f)||_0x8a170d==='')continue;_0x4a7244=_0x51179f;}else{if(_0x2f401d===_0x1e7da3(0x165))continue;else{if(_0x8a170d==='')continue;_0x4a7244=_0x8a170d;}}_0x14d6a8[_0x1e7da3(0x15f)]({'original':_0x1b5351,'corrected':_0x148c13+'='+_0x4a7244,'handler':_0x1e7da3(0x16d)});break;}}return _0x14d6a8;}function a85_0x3792(){const _0x2ad614=['nonInteractive','name','toLowerCase','replace','string','non-interactive','7573770DJIapr','5210525axNNUf','5604556vjvhak','env','push','keys','slice','set','alias','global','boolean','4636695BhOQpw','has','add','app','version','get','original','sticky','dryRun','length','number','help','7Ipzyyk','707976YNSkeV','toUpperCase','5797456xkaplD','90BAzrsN','appcode','type','entries','32194pMGFbi','corrected'];a85_0x3792=function(){return _0x2ad614;};return a85_0x3792();}export function correctFlags(_0x30803b,_0x589809){const _0x42b8df=a85_0xfb8c,_0x35a48d=buildKnownFlags(_0x589809),_0x53f33a=buildFlagTypeMap(_0x589809),_0xa49def=aliasHandler(_0x30803b,_0x35a48d),_0x16ff75=stickyHandler(_0x30803b,_0x35a48d,_0x53f33a),_0x4c720e=[..._0xa49def,..._0x16ff75];if(_0x4c720e[_0x42b8df(0x16f)]===0x0)return{'flags':_0x30803b,'corrections':[]};const _0x31f3d2={..._0x30803b},_0x20633e=new Set();for(const _0x563e62 of _0xa49def){_0x31f3d2[_0x563e62[_0x42b8df(0x154)]]=_0x30803b[_0x563e62[_0x42b8df(0x16c)]],_0x20633e[_0x42b8df(0x168)](_0x563e62[_0x42b8df(0x16c)]);}for(const _0x54f2a5 of _0x16ff75){const _0x328658=_0x54f2a5[_0x42b8df(0x154)]['indexOf']('='),_0x5871a0=_0x54f2a5[_0x42b8df(0x154)][_0x42b8df(0x161)](0x0,_0x328658),_0x15a25c=_0x54f2a5[_0x42b8df(0x154)][_0x42b8df(0x161)](_0x328658+0x1),_0x231cd0=_0x53f33a[_0x42b8df(0x16b)](_0x5871a0)??_0x42b8df(0x159);_0x231cd0===_0x42b8df(0x170)?_0x31f3d2[_0x5871a0]=Number(_0x15a25c):_0x31f3d2[_0x5871a0]=_0x15a25c,_0x20633e['add'](_0x54f2a5[_0x42b8df(0x16c)]);}for(const _0x77d6de of _0x20633e){delete _0x31f3d2[_0x77d6de];}return{'flags':_0x31f3d2,'corrections':_0x4c720e};}
1
+ (function(_0x27bc05,_0x6922fd){const _0x3ef365=a86_0x65f2,_0x319909=_0x27bc05();while(!![]){try{const _0x5e700e=-parseInt(_0x3ef365(0x1f1))/0x1+-parseInt(_0x3ef365(0x1d9))/0x2*(-parseInt(_0x3ef365(0x203))/0x3)+-parseInt(_0x3ef365(0x1e3))/0x4*(-parseInt(_0x3ef365(0x1df))/0x5)+parseInt(_0x3ef365(0x1dc))/0x6*(-parseInt(_0x3ef365(0x1fe))/0x7)+-parseInt(_0x3ef365(0x1e8))/0x8*(-parseInt(_0x3ef365(0x202))/0x9)+parseInt(_0x3ef365(0x1e0))/0xa*(-parseInt(_0x3ef365(0x1ec))/0xb)+parseInt(_0x3ef365(0x1fb))/0xc*(parseInt(_0x3ef365(0x1da))/0xd);if(_0x5e700e===_0x6922fd)break;else _0x319909['push'](_0x319909['shift']());}catch(_0x52af26){_0x319909['push'](_0x319909['shift']());}}}(a86_0x230e,0xbc274));function toKebab(_0x4ddc70){const _0x5bcf61=a86_0x65f2;return _0x4ddc70[_0x5bcf61(0x1e7)](/_/g,'-')[_0x5bcf61(0x1e7)](/-([A-Z]+)/g,(_0x2bea75,_0x3cf1b0)=>'-'+_0x3cf1b0[_0x5bcf61(0x1eb)]())[_0x5bcf61(0x1e7)](/([a-z0-9])([A-Z])/g,(_0x3b7b25,_0x303b4f,_0x416127)=>_0x303b4f+'-'+_0x416127)[_0x5bcf61(0x1eb)]();}function buildKnownFlags(_0x4e60be){const _0x4c4116=a86_0x65f2,_0x122368=new Set();for(const _0x144152 of _0x4e60be){_0x122368['add'](_0x144152[_0x4c4116(0x1db)]),_0x122368[_0x4c4116(0x1f5)](toCamelCase(_0x144152['name']));}for(const _0x3a99da of[_0x4c4116(0x200),_0x4c4116(0x1d7),_0x4c4116(0x1ee),_0x4c4116(0x1fc)]){_0x122368[_0x4c4116(0x1f5)](_0x3a99da);}for(const _0x7c5ff4 of[_0x4c4116(0x1e6),_0x4c4116(0x1e2),_0x4c4116(0x1fa),_0x4c4116(0x1f8),_0x4c4116(0x1f4),_0x4c4116(0x1f0),'ci',_0x4c4116(0x1ff),_0x4c4116(0x1dd)]){_0x122368[_0x4c4116(0x1f5)](_0x7c5ff4);}return _0x122368;}function buildFlagTypeMap(_0x1ccb77){const _0x1ccd22=a86_0x65f2,_0x2c34fe=new Map();for(const _0x15b425 of _0x1ccb77){_0x2c34fe[_0x1ccd22(0x1ea)](_0x15b425[_0x1ccd22(0x1db)],_0x15b425[_0x1ccd22(0x1e4)]),_0x2c34fe[_0x1ccd22(0x1ea)](toCamelCase(_0x15b425[_0x1ccd22(0x1db)]),_0x15b425[_0x1ccd22(0x1e4)]);}return _0x2c34fe;}function toCamelCase(_0x8a9e29){const _0x21a03d=a86_0x65f2;return _0x8a9e29['replace'](/-([a-z])/g,(_0x19df12,_0x3a9ab8)=>_0x3a9ab8[_0x21a03d(0x1ed)]());}function aliasHandler(_0x29f1d0,_0x3a431c){const _0x2d9ec7=a86_0x65f2,_0x37c6cf=[];for(const _0x2ca770 of Object[_0x2d9ec7(0x201)](_0x29f1d0)){if(_0x3a431c[_0x2d9ec7(0x1d6)](_0x2ca770))continue;const _0x48b4ed=toKebab(_0x2ca770);_0x48b4ed!==_0x2ca770&&_0x3a431c[_0x2d9ec7(0x1d6)](_0x48b4ed)&&_0x37c6cf[_0x2d9ec7(0x1f7)]({'original':_0x2ca770,'corrected':_0x48b4ed,'handler':_0x2d9ec7(0x1e5)});}return _0x37c6cf;}function a86_0x230e(){const _0x4ac8d0=['number','push','app','slice','appcode','16773396oLLeFQ','format','indexOf','14ogBjdV','global','dry-run','keys','588114VNwVjb','598341pViXfN','has','dryRun','original','6DlTSzY','26SahbOc','name','2487270CVxJXs','version','boolean','5DQHHQD','10GWLrjj','string','env','552308TAbtnu','type','alias','help','replace','40Epjgat','corrected','set','toLowerCase','15858249BTjFzB','toUpperCase','yes','length','non-interactive','817289TVpTFV','entries','get','nonInteractive','add'];a86_0x230e=function(){return _0x4ac8d0;};return a86_0x230e();}function a86_0x65f2(_0x16a29f,_0x548624){_0x16a29f=_0x16a29f-0x1d6;const _0x230e19=a86_0x230e();let _0x65f2c2=_0x230e19[_0x16a29f];return _0x65f2c2;}function stickyHandler(_0xe50185,_0x409b75,_0x4c87a7){const _0x1cac2a=a86_0x65f2,_0x339b3b=[];for(const [_0x3744f2,_0x2d7270]of Object[_0x1cac2a(0x1f2)](_0xe50185)){if(_0x2d7270!==!![])continue;for(let _0x4f2a8b=_0x3744f2[_0x1cac2a(0x1ef)]-0x1;_0x4f2a8b>0x0;_0x4f2a8b--){const _0x54769f=_0x3744f2['slice'](0x0,_0x4f2a8b),_0x1d58e2=_0x3744f2[_0x1cac2a(0x1f9)](_0x4f2a8b),_0x2614b5=toKebab(_0x54769f),_0x2364a9=toCamelCase(_0x54769f),_0x59d3fa=_0x409b75[_0x1cac2a(0x1d6)](_0x54769f)?_0x54769f:_0x409b75[_0x1cac2a(0x1d6)](_0x2614b5)?_0x2614b5:_0x409b75[_0x1cac2a(0x1d6)](_0x2364a9)?_0x2364a9:null;if(!_0x59d3fa)continue;const _0x5ae002=_0x4c87a7[_0x1cac2a(0x1f3)](_0x59d3fa)??_0x1cac2a(0x1e1);let _0x47ed75;if(_0x5ae002===_0x1cac2a(0x1f6)){const _0x3d28f1=Number(_0x1d58e2);if(isNaN(_0x3d28f1)||_0x1d58e2==='')continue;_0x47ed75=_0x3d28f1;}else{if(_0x5ae002===_0x1cac2a(0x1de))continue;else{if(_0x1d58e2==='')continue;_0x47ed75=_0x1d58e2;}}_0x339b3b[_0x1cac2a(0x1f7)]({'original':_0x3744f2,'corrected':_0x59d3fa+'='+_0x47ed75,'handler':'sticky'});break;}}return _0x339b3b;}export function correctFlags(_0x534ac1,_0xb790f3){const _0x11784f=a86_0x65f2,_0x34b42e=buildKnownFlags(_0xb790f3),_0x48add6=buildFlagTypeMap(_0xb790f3),_0xaa4650=aliasHandler(_0x534ac1,_0x34b42e),_0x2d92c5=stickyHandler(_0x534ac1,_0x34b42e,_0x48add6),_0xf626c1=[..._0xaa4650,..._0x2d92c5];if(_0xf626c1[_0x11784f(0x1ef)]===0x0)return{'flags':_0x534ac1,'corrections':[]};const _0x59bb44={..._0x534ac1},_0x9f0486=new Set();for(const _0x291b35 of _0xaa4650){_0x59bb44[_0x291b35['corrected']]=_0x534ac1[_0x291b35['original']],_0x9f0486[_0x11784f(0x1f5)](_0x291b35[_0x11784f(0x1d8)]);}for(const _0x1d2c4d of _0x2d92c5){const _0x4a2fb6=_0x1d2c4d[_0x11784f(0x1e9)][_0x11784f(0x1fd)]('='),_0x5a5211=_0x1d2c4d[_0x11784f(0x1e9)][_0x11784f(0x1f9)](0x0,_0x4a2fb6),_0xe8df11=_0x1d2c4d[_0x11784f(0x1e9)][_0x11784f(0x1f9)](_0x4a2fb6+0x1),_0x184816=_0x48add6[_0x11784f(0x1f3)](_0x5a5211)??_0x11784f(0x1e1);_0x184816===_0x11784f(0x1f6)?_0x59bb44[_0x5a5211]=Number(_0xe8df11):_0x59bb44[_0x5a5211]=_0xe8df11,_0x9f0486[_0x11784f(0x1f5)](_0x1d2c4d[_0x11784f(0x1d8)]);}for(const _0x3a5747 of _0x9f0486){delete _0x59bb44[_0x3a5747];}return{'flags':_0x59bb44,'corrections':_0xf626c1};}
@@ -1 +1 @@
1
- function a86_0x59ab(_0x4335c4,_0x14dfba){_0x4335c4=_0x4335c4-0x14b;const _0x393b62=a86_0x393b();let _0x59abd3=_0x393b62[_0x4335c4];return _0x59abd3;}const a86_0x550537=a86_0x59ab;(function(_0x2aed6c,_0xa6240c){const _0x293966=a86_0x59ab,_0x2e9ac8=_0x2aed6c();while(!![]){try{const _0x43da1c=-parseInt(_0x293966(0x15d))/0x1+-parseInt(_0x293966(0x16a))/0x2+parseInt(_0x293966(0x163))/0x3+parseInt(_0x293966(0x159))/0x4*(parseInt(_0x293966(0x14f))/0x5)+parseInt(_0x293966(0x15c))/0x6*(parseInt(_0x293966(0x157))/0x7)+parseInt(_0x293966(0x155))/0x8+parseInt(_0x293966(0x162))/0x9;if(_0x43da1c===_0xa6240c)break;else _0x2e9ac8['push'](_0x2e9ac8['shift']());}catch(_0x5eed78){_0x2e9ac8['push'](_0x2e9ac8['shift']());}}}(a86_0x393b,0xb44a6));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a86_0x550537(0x150),a86_0x550537(0x165),a86_0x550537(0x153)]);function nonEmptyString(_0x3f341a){const _0x5a9802=a86_0x550537;if(typeof _0x3f341a!==_0x5a9802(0x166))return undefined;const _0x11a5f6=_0x3f341a[_0x5a9802(0x15a)]();return _0x11a5f6||undefined;}function buildRetryHint(_0x15fb42){const _0x5bc495=a86_0x550537,_0x344e56=nonEmptyString(_0x15fb42),_0x4b40f9=_0x344e56?/^\d+$/[_0x5bc495(0x169)](_0x344e56)?_0x5bc495(0x168)+_0x344e56+_0x5bc495(0x16c):_0x5bc495(0x156)+_0x344e56+'.':_0x5bc495(0x164);return _0x4b40f9+_0x5bc495(0x167);}export function createRateLimitError(_0x293c0f){const _0x64792e=a86_0x550537,_0x513aac=nonEmptyString(_0x293c0f[_0x64792e(0x16e)])?.[_0x64792e(0x14e)](),_0x1822f1=Number(_0x293c0f['status'])===0x1ad||_0x513aac!==undefined&&RATE_LIMIT_ERROR_CODES[_0x64792e(0x14d)](_0x513aac);if(!_0x1822f1)return undefined;return CliErrors[_0x64792e(0x15f)](nonEmptyString(_0x293c0f['message'])??_0x64792e(0x16d),buildRetryHint(_0x293c0f['retryAfter']));}export function readRetryAfter(_0x42516b){const _0x21ae85=a86_0x550537;if(!_0x42516b||typeof _0x42516b!==_0x21ae85(0x152))return undefined;const _0x406ef9=_0x42516b[_0x21ae85(0x154)];if(typeof _0x406ef9===_0x21ae85(0x16b)){const _0x15e190=_0x406ef9['call'](_0x42516b,_0x21ae85(0x160))??_0x406ef9[_0x21ae85(0x14c)](_0x42516b,_0x21ae85(0x158));return nonEmptyString(_0x15e190);}for(const [_0x1d325f,_0x32f688]of Object[_0x21ae85(0x151)](_0x42516b)){if(_0x1d325f[_0x21ae85(0x14b)]()===_0x21ae85(0x158))return nonEmptyString(_0x32f688)??(typeof _0x32f688===_0x21ae85(0x161)?String(_0x32f688):undefined);}return undefined;}export function readRetryAfterSeconds(_0x2fdf39){const _0x453679=a86_0x550537;if(!_0x2fdf39||typeof _0x2fdf39!=='object'||Array['isArray'](_0x2fdf39))return undefined;const _0x3cf712=_0x2fdf39[_0x453679(0x15b)];if(typeof _0x3cf712===_0x453679(0x161))return Number[_0x453679(0x15e)](_0x3cf712)&&_0x3cf712>=0x0?String(_0x3cf712):undefined;const _0x278f0d=nonEmptyString(_0x3cf712);return _0x278f0d&&/^\d+$/[_0x453679(0x169)](_0x278f0d)?_0x278f0d:undefined;}function a86_0x393b(){const _0x47c435=['MAX_QPS_LIMIT','string','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','Wait\x20','test','916242yuxVeO','function','\x20seconds\x20before\x20retrying.','Request\x20rate\x20limit\x20exceeded.','errorCode','toLowerCase','call','has','toUpperCase','109505OXTULw','EXCEED_MAX_QPS_LIMIT','entries','object','IP_RATE_LIMIT_EXCEEDED','get','1916488lpUyoU','Retry\x20after\x20','28qNkCsj','retry-after','100KIVxuQ','trim','retryAfterSeconds','988998QpfXZd','1101250LQgQUS','isInteger','rateLimited','Retry-After','number','359991gLOkmC','2434272MVLzpI','Retry\x20after\x20a\x20short\x20delay.'];a86_0x393b=function(){return _0x47c435;};return a86_0x393b();}
1
+ function a87_0x3c00(_0x47306c,_0x49fedf){_0x47306c=_0x47306c-0x1ba;const _0x232910=a87_0x2329();let _0x3c0078=_0x232910[_0x47306c];return _0x3c0078;}const a87_0x5d39e2=a87_0x3c00;(function(_0x1cb3a9,_0x95d2dc){const _0x22e1a8=a87_0x3c00,_0x19b458=_0x1cb3a9();while(!![]){try{const _0x1970d8=-parseInt(_0x22e1a8(0x1d2))/0x1*(parseInt(_0x22e1a8(0x1be))/0x2)+-parseInt(_0x22e1a8(0x1c4))/0x3*(-parseInt(_0x22e1a8(0x1bf))/0x4)+-parseInt(_0x22e1a8(0x1d3))/0x5+parseInt(_0x22e1a8(0x1bd))/0x6+parseInt(_0x22e1a8(0x1d6))/0x7+parseInt(_0x22e1a8(0x1cf))/0x8*(parseInt(_0x22e1a8(0x1d9))/0x9)+parseInt(_0x22e1a8(0x1ce))/0xa;if(_0x1970d8===_0x95d2dc)break;else _0x19b458['push'](_0x19b458['shift']());}catch(_0x4dca5a){_0x19b458['push'](_0x19b458['shift']());}}}(a87_0x2329,0x65994));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a87_0x5d39e2(0x1d8),'MAX_QPS_LIMIT','IP_RATE_LIMIT_EXCEEDED']);function nonEmptyString(_0x2a30d9){const _0x1eb0a9=a87_0x5d39e2;if(typeof _0x2a30d9!==_0x1eb0a9(0x1bc))return undefined;const _0xaffef0=_0x2a30d9[_0x1eb0a9(0x1cd)]();return _0xaffef0||undefined;}function buildRetryHint(_0x280c80){const _0x59f52e=a87_0x5d39e2,_0x15d75d=nonEmptyString(_0x280c80),_0x586e3a=_0x15d75d?/^\d+$/[_0x59f52e(0x1bb)](_0x15d75d)?_0x59f52e(0x1c9)+_0x15d75d+_0x59f52e(0x1d5):'Retry\x20after\x20'+_0x15d75d+'.':_0x59f52e(0x1d0);return _0x586e3a+'\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.';}function a87_0x2329(){const _0x2d4ec8=['3139272pKwwjr','1592lRkBqr','4zEWizg','retryAfterSeconds','errorCode','Request\x20rate\x20limit\x20exceeded.','message','797556kXpCOR','Retry-After','retry-after','number','object','Wait\x20','toUpperCase','function','has','trim','90290lUnOig','3278744Vexfum','Retry\x20after\x20a\x20short\x20delay.','status','1006CzDxjB','3076885sfxcYl','rateLimited','\x20seconds\x20before\x20retrying.','1501654wdldqw','isInteger','EXCEED_MAX_QPS_LIMIT','18NPVARP','call','test','string'];a87_0x2329=function(){return _0x2d4ec8;};return a87_0x2329();}export function createRateLimitError(_0x29627a){const _0x490b4d=a87_0x5d39e2,_0x49d389=nonEmptyString(_0x29627a[_0x490b4d(0x1c1)])?.[_0x490b4d(0x1ca)](),_0x2364a4=Number(_0x29627a[_0x490b4d(0x1d1)])===0x1ad||_0x49d389!==undefined&&RATE_LIMIT_ERROR_CODES[_0x490b4d(0x1cc)](_0x49d389);if(!_0x2364a4)return undefined;return CliErrors[_0x490b4d(0x1d4)](nonEmptyString(_0x29627a[_0x490b4d(0x1c3)])??_0x490b4d(0x1c2),buildRetryHint(_0x29627a['retryAfter']));}export function readRetryAfter(_0xdae903){const _0x7c8141=a87_0x5d39e2;if(!_0xdae903||typeof _0xdae903!==_0x7c8141(0x1c8))return undefined;const _0x4bc69a=_0xdae903['get'];if(typeof _0x4bc69a===_0x7c8141(0x1cb)){const _0x587441=_0x4bc69a[_0x7c8141(0x1ba)](_0xdae903,_0x7c8141(0x1c5))??_0x4bc69a[_0x7c8141(0x1ba)](_0xdae903,_0x7c8141(0x1c6));return nonEmptyString(_0x587441);}for(const [_0x1d2525,_0x2db0d3]of Object['entries'](_0xdae903)){if(_0x1d2525['toLowerCase']()===_0x7c8141(0x1c6))return nonEmptyString(_0x2db0d3)??(typeof _0x2db0d3===_0x7c8141(0x1c7)?String(_0x2db0d3):undefined);}return undefined;}export function readRetryAfterSeconds(_0x4585c8){const _0x1153a6=a87_0x5d39e2;if(!_0x4585c8||typeof _0x4585c8!==_0x1153a6(0x1c8)||Array['isArray'](_0x4585c8))return undefined;const _0x2cfc76=_0x4585c8[_0x1153a6(0x1c0)];if(typeof _0x2cfc76===_0x1153a6(0x1c7))return Number[_0x1153a6(0x1d7)](_0x2cfc76)&&_0x2cfc76>=0x0?String(_0x2cfc76):undefined;const _0x481b6b=nonEmptyString(_0x2cfc76);return _0x481b6b&&/^\d+$/[_0x1153a6(0x1bb)](_0x481b6b)?_0x481b6b:undefined;}
@@ -1 +1 @@
1
- (function(_0xf0cf45,_0x35e9c8){var _0x55273a=a87_0x80ba,_0x1f02fd=_0xf0cf45();while(!![]){try{var _0x49a443=-parseInt(_0x55273a(0x112))/0x1*(parseInt(_0x55273a(0x10f))/0x2)+parseInt(_0x55273a(0x115))/0x3*(parseInt(_0x55273a(0x10e))/0x4)+parseInt(_0x55273a(0x10d))/0x5+-parseInt(_0x55273a(0x113))/0x6*(-parseInt(_0x55273a(0x114))/0x7)+parseInt(_0x55273a(0x116))/0x8*(parseInt(_0x55273a(0x118))/0x9)+parseInt(_0x55273a(0x117))/0xa*(parseInt(_0x55273a(0x111))/0xb)+parseInt(_0x55273a(0x110))/0xc*(-parseInt(_0x55273a(0x10c))/0xd);if(_0x49a443===_0x35e9c8)break;else _0x1f02fd['push'](_0x1f02fd['shift']());}catch(_0x2eae4a){_0x1f02fd['push'](_0x1f02fd['shift']());}}}(a87_0x5639,0xa2cd9));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a87_0x80ba(_0x1da7ed,_0x504950){_0x1da7ed=_0x1da7ed-0x10c;var _0x56393c=a87_0x5639();var _0x80ba08=_0x56393c[_0x1da7ed];return _0x80ba08;}function a87_0x5639(){var _0x31d894=['19240676mOACGX','3466030lbYRwu','4348xqAKGR','28DFTzTE','12kuosDr','33vSSyzH','15702VRdglC','10740fsnJds','518VnDLxC','1179KVgsUs','35248zlbFpD','2963860FFXgPs','459kVnQNw'];a87_0x5639=function(){return _0x31d894;};return a87_0x5639();}
1
+ (function(_0x1110d9,_0x20ed61){var _0x1f273f=a88_0x42fa,_0x29eac2=_0x1110d9();while(!![]){try{var _0x26aade=parseInt(_0x1f273f(0x13a))/0x1+-parseInt(_0x1f273f(0x133))/0x2*(-parseInt(_0x1f273f(0x135))/0x3)+-parseInt(_0x1f273f(0x139))/0x4*(parseInt(_0x1f273f(0x131))/0x5)+parseInt(_0x1f273f(0x138))/0x6+parseInt(_0x1f273f(0x136))/0x7+-parseInt(_0x1f273f(0x132))/0x8+-parseInt(_0x1f273f(0x137))/0x9*(parseInt(_0x1f273f(0x134))/0xa);if(_0x26aade===_0x20ed61)break;else _0x29eac2['push'](_0x29eac2['shift']());}catch(_0x3cabb6){_0x29eac2['push'](_0x29eac2['shift']());}}}(a88_0x2803,0x427fb));function a88_0x42fa(_0x206c26,_0x4c321e){_0x206c26=_0x206c26-0x131;var _0x280358=a88_0x2803();var _0x42faae=_0x280358[_0x206c26];return _0x42faae;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a88_0x2803(){var _0x11c134=['11690pHepCn','1103568fEkRpB','484654LkLXae','1659670doMVPN','6JPNxvR','1057637JaXIve','9xKgWmj','2838390JusoIm','932PQSakh','12236pAAWoD'];a88_0x2803=function(){return _0x11c134;};return a88_0x2803();}
@@ -1 +1 @@
1
- (function(_0xa4c352,_0x33012f){const _0x2d5df4=a88_0x58af,_0x4e2ff7=_0xa4c352();while(!![]){try{const _0x44e2a2=parseInt(_0x2d5df4(0x17f))/0x1*(parseInt(_0x2d5df4(0x176))/0x2)+parseInt(_0x2d5df4(0x184))/0x3+-parseInt(_0x2d5df4(0x180))/0x4+-parseInt(_0x2d5df4(0x187))/0x5+parseInt(_0x2d5df4(0x178))/0x6+parseInt(_0x2d5df4(0x186))/0x7+-parseInt(_0x2d5df4(0x183))/0x8;if(_0x44e2a2===_0x33012f)break;else _0x4e2ff7['push'](_0x4e2ff7['shift']());}catch(_0x2da3ea){_0x4e2ff7['push'](_0x4e2ff7['shift']());}}}(a88_0x113c,0x7ad99));import{CLI_BIN_NAME}from'../constant/cli.js';function a88_0x58af(_0x14275d,_0x5bd317){_0x14275d=_0x14275d-0x174;const _0x113ce1=a88_0x113c();let _0x58af11=_0x113ce1[_0x14275d];return _0x58af11;}function a88_0x113c(){const _0x36ef0e=['1919VvdYdt','916416xkLWoQ','\x20\x20\x20','name','7782536wKKHLx','2577261fgHIvm','name=','3558667MBcfvR','4902215JPPzYH','params','\x20\x20\x20Affected:\x20','380vRXMPt','params=','5720874dGeEEi','join','code=','description','entries','code','push'];a88_0x113c=function(){return _0x36ef0e;};return a88_0x113c();}export function buildConfirmationLines(_0xdf6797,_0x44ebbe,_0x17969a){const _0x4e6e76=a88_0x58af,_0x54deac=buildConfirmationContext(_0xdf6797,_0x44ebbe,_0x17969a),_0x4a4651=['⚠\x20\x20High-risk\x20operation:\x20'+_0x54deac['commandLabel']];return _0x54deac['description']&&_0x4a4651[_0x4e6e76(0x17e)](_0x4e6e76(0x181)+_0x54deac[_0x4e6e76(0x17b)]),_0x54deac['affectedRecords']&&_0x4a4651[_0x4e6e76(0x17e)](_0x4e6e76(0x175)+_0x54deac['affectedRecords']),_0x4a4651[_0x4e6e76(0x17e)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x4a4651;}export function reconstructCommandArgv(_0x169744,_0x1ce0c6){const _0x152bc4=a88_0x58af,_0x20917b=[CLI_BIN_NAME,_0x169744['service'],_0x169744['command']];for(const [_0x55b91f,_0x49c7ba]of Object[_0x152bc4(0x17c)](_0x1ce0c6)){if(_0x49c7ba===!![])_0x20917b[_0x152bc4(0x17e)]('--'+_0x55b91f);else _0x49c7ba!==![]&&_0x49c7ba!==undefined&&_0x49c7ba!==''&&_0x20917b[_0x152bc4(0x17e)]('--'+_0x55b91f+'\x20'+JSON['stringify'](_0x49c7ba));}return _0x20917b[_0x152bc4(0x17e)]('--yes'),_0x20917b[_0x152bc4(0x179)]('\x20');}function buildConfirmationContext(_0x5e3231,_0x4066a4,_0x29970f){const _0x66dfb5=a88_0x58af,_0xa09274=extractAffectedRecords(_0x29970f);return{'commandLabel':_0x4066a4,'description':_0x5e3231[_0x66dfb5(0x17b)],'affectedRecords':_0xa09274};}function extractAffectedRecords(_0x28c597){const _0x5525a6=a88_0x58af,_0x4b434f=[];if(_0x28c597[_0x5525a6(0x17d)])_0x4b434f[_0x5525a6(0x17e)](_0x5525a6(0x17a)+_0x28c597[_0x5525a6(0x17d)]);if(_0x28c597['id'])_0x4b434f[_0x5525a6(0x17e)]('id='+_0x28c597['id']);if(_0x28c597[_0x5525a6(0x182)])_0x4b434f['push'](_0x5525a6(0x185)+_0x28c597[_0x5525a6(0x182)]);if(_0x28c597[_0x5525a6(0x174)])_0x4b434f[_0x5525a6(0x17e)](_0x5525a6(0x177)+_0x28c597[_0x5525a6(0x174)]);return _0x4b434f['length']>0x0?_0x4b434f['join'](',\x20'):undefined;}
1
+ (function(_0x4a9cb1,_0x5b9330){const _0x546599=a89_0x534d,_0x3adcdb=_0x4a9cb1();while(!![]){try{const _0x16b5fb=-parseInt(_0x546599(0x1cf))/0x1+-parseInt(_0x546599(0x1ce))/0x2+-parseInt(_0x546599(0x1d8))/0x3+-parseInt(_0x546599(0x1c4))/0x4+parseInt(_0x546599(0x1da))/0x5*(-parseInt(_0x546599(0x1d4))/0x6)+-parseInt(_0x546599(0x1d9))/0x7*(-parseInt(_0x546599(0x1dc))/0x8)+-parseInt(_0x546599(0x1e3))/0x9*(-parseInt(_0x546599(0x1cd))/0xa);if(_0x16b5fb===_0x5b9330)break;else _0x3adcdb['push'](_0x3adcdb['shift']());}catch(_0x1d5619){_0x3adcdb['push'](_0x3adcdb['shift']());}}}(a89_0x52e7,0xcc1ca));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x2ef976,_0x33aafd,_0x25b9f5){const _0xa05821=a89_0x534d,_0x236b47=buildConfirmationContext(_0x2ef976,_0x33aafd,_0x25b9f5),_0x3f5ac2=[_0xa05821(0x1c6)+_0x236b47[_0xa05821(0x1d7)]];return _0x236b47['description']&&_0x3f5ac2[_0xa05821(0x1c8)](_0xa05821(0x1e9)+_0x236b47[_0xa05821(0x1e6)]),_0x236b47[_0xa05821(0x1c9)]&&_0x3f5ac2[_0xa05821(0x1c8)]('\x20\x20\x20Affected:\x20'+_0x236b47[_0xa05821(0x1c9)]),_0x3f5ac2['push'](_0xa05821(0x1cc)),_0x3f5ac2;}export function reconstructCommandArgv(_0x255022,_0x4f374d){const _0x11fe5f=a89_0x534d,_0x2f1f5e=[CLI_BIN_NAME,_0x255022[_0x11fe5f(0x1e8)],_0x255022[_0x11fe5f(0x1cb)]];for(const [_0x50e74f,_0x9f6972]of Object['entries'](_0x4f374d)){if(_0x9f6972===!![])_0x2f1f5e[_0x11fe5f(0x1c8)]('--'+_0x50e74f);else _0x9f6972!==![]&&_0x9f6972!==undefined&&_0x9f6972!==''&&_0x2f1f5e['push']('--'+_0x50e74f+'\x20'+JSON['stringify'](_0x9f6972));}return _0x2f1f5e['push'](_0x11fe5f(0x1ca)),_0x2f1f5e[_0x11fe5f(0x1e0)]('\x20');}function a89_0x534d(_0x3d3b7a,_0x225976){_0x3d3b7a=_0x3d3b7a-0x1c4;const _0x52e771=a89_0x52e7();let _0x534dd0=_0x52e771[_0x3d3b7a];return _0x534dd0;}function buildConfirmationContext(_0x51b87e,_0x42b398,_0x54bbb0){const _0xe90802=extractAffectedRecords(_0x54bbb0);return{'commandLabel':_0x42b398,'description':_0x51b87e['description'],'affectedRecords':_0xe90802};}function extractAffectedRecords(_0x3d2ceb){const _0x18fcce=a89_0x534d,_0x4efaf6=[];if(_0x3d2ceb[_0x18fcce(0x1d5)])_0x4efaf6[_0x18fcce(0x1c8)]('code='+_0x3d2ceb[_0x18fcce(0x1d5)]);if(_0x3d2ceb['id'])_0x4efaf6[_0x18fcce(0x1c8)](_0x18fcce(0x1df)+_0x3d2ceb['id']);if(_0x3d2ceb[_0x18fcce(0x1e4)])_0x4efaf6['push']('schedule-id='+_0x3d2ceb[_0x18fcce(0x1e4)]);if(_0x3d2ceb[_0x18fcce(0x1c5)])_0x4efaf6['push'](_0x18fcce(0x1d0)+_0x3d2ceb[_0x18fcce(0x1c5)]);if(_0x3d2ceb[_0x18fcce(0x1d3)])_0x4efaf6['push'](_0x18fcce(0x1e7)+_0x3d2ceb[_0x18fcce(0x1d3)]);if(_0x3d2ceb[_0x18fcce(0x1db)])_0x4efaf6['push'](_0x18fcce(0x1e2)+_0x3d2ceb[_0x18fcce(0x1db)]);if(_0x3d2ceb[_0x18fcce(0x1de)])_0x4efaf6[_0x18fcce(0x1c8)](_0x18fcce(0x1d2)+_0x3d2ceb[_0x18fcce(0x1de)]);if(_0x3d2ceb['scheduled-at'])_0x4efaf6[_0x18fcce(0x1c8)](_0x18fcce(0x1c7)+_0x3d2ceb['scheduled-at']);if(_0x3d2ceb[_0x18fcce(0x1e5)])_0x4efaf6[_0x18fcce(0x1c8)](_0x18fcce(0x1dd)+_0x3d2ceb[_0x18fcce(0x1e5)]);if(_0x3d2ceb[_0x18fcce(0x1e1)])_0x4efaf6['push'](_0x18fcce(0x1d6)+_0x3d2ceb[_0x18fcce(0x1e1)]);return _0x4efaf6[_0x18fcce(0x1d1)]>0x0?_0x4efaf6[_0x18fcce(0x1e0)](',\x20'):undefined;}function a89_0x52e7(){const _0x38af8e=['123685OTnBmU','kind','40jxpvDG','channel=','cron','id=','join','params','kind=','460179aZlmOO','schedule-id','channel','description','title=','service','\x20\x20\x20','1592532EMcSDS','name','⚠\x20\x20High-risk\x20operation:\x20','scheduled-at=','push','affectedRecords','--yes','command','\x20\x20\x20Continue?\x20[y/N]\x20','1010kELnHx','3021574utLDiu','1121185LyHkyB','name=','length','cron=','title','246vJYXpW','code','params=','commandLabel','2079216SVVbxI','572887yeJTVr'];a89_0x52e7=function(){return _0x38af8e;};return a89_0x52e7();}