@lovrabet/lovrabet-cli 2.3.6-beta.1 → 2.3.6-beta.2

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 (186) 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/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.d.ts +3 -3
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.js +1 -1
  37. package/lib/commands/kb/index.js +1 -1
  38. package/lib/commands/logs/index.js +1 -1
  39. package/lib/commands/notification/config-list.js +1 -1
  40. package/lib/commands/notification/index.js +1 -1
  41. package/lib/commands/notification/shared.js +1 -1
  42. package/lib/commands/ocr/index.js +1 -1
  43. package/lib/commands/permit/dataset-get.js +1 -1
  44. package/lib/commands/permit/dataset-set.js +1 -1
  45. package/lib/commands/permit/index.js +1 -1
  46. package/lib/commands/permit/page-get.js +1 -1
  47. package/lib/commands/permit/page-set.js +1 -1
  48. package/lib/commands/permit/role-menus-set.js +1 -1
  49. package/lib/commands/permit/role-menus.js +1 -1
  50. package/lib/commands/permit/shared.js +1 -1
  51. package/lib/commands/personal-bff/index.js +1 -1
  52. package/lib/commands/registry.js +1 -1
  53. package/lib/commands/role/create.js +1 -1
  54. package/lib/commands/role/delete.js +1 -1
  55. package/lib/commands/role/detail.js +1 -1
  56. package/lib/commands/role/index.js +1 -1
  57. package/lib/commands/role/list.js +1 -1
  58. package/lib/commands/role/shared.js +1 -1
  59. package/lib/commands/role/update.js +1 -1
  60. package/lib/commands/role/user-add.js +1 -1
  61. package/lib/commands/role/user-remove.js +1 -1
  62. package/lib/commands/schedule/index.js +1 -1
  63. package/lib/commands/schema.js +1 -1
  64. package/lib/commands/service/dynamic.js +1 -1
  65. package/lib/commands/service/function-name-adapter.js +1 -1
  66. package/lib/commands/service/index.js +1 -1
  67. package/lib/commands/service/registry.js +1 -1
  68. package/lib/commands/skill/commands/create.js +1 -1
  69. package/lib/commands/skill/commands/diagram.js +1 -1
  70. package/lib/commands/skill/commands/install.js +1 -1
  71. package/lib/commands/skill/commands/list.js +1 -1
  72. package/lib/commands/skill/commands/push.js +1 -1
  73. package/lib/commands/skill/commands/validate.js +1 -1
  74. package/lib/commands/skill/diagram.js +1 -1
  75. package/lib/commands/skill/flags.js +1 -1
  76. package/lib/commands/skill/index.js +1 -1
  77. package/lib/commands/skill/manifest-helpers.js +1 -1
  78. package/lib/commands/skill/push-execute.js +1 -1
  79. package/lib/commands/skill/push-flow-helpers.js +1 -1
  80. package/lib/commands/skill/push-retarget.js +1 -1
  81. package/lib/commands/skill/scopes.js +1 -1
  82. package/lib/commands/skill/summary.js +1 -1
  83. package/lib/commands/skill/templates.js +1 -1
  84. package/lib/commands/skill/validate.js +1 -1
  85. package/lib/commands/sql/detail.js +1 -1
  86. package/lib/commands/sql/exec.js +1 -1
  87. package/lib/commands/sql/index.js +1 -1
  88. package/lib/commands/update.js +1 -1
  89. package/lib/commands/user-account/bind.js +1 -1
  90. package/lib/commands/user-account/index.js +1 -1
  91. package/lib/commands/workspace/index.js +1 -1
  92. package/lib/config/domain-config.js +1 -1
  93. package/lib/config/schema.js +1 -1
  94. package/lib/constant/app.js +1 -1
  95. package/lib/constant/auth-mode.js +1 -1
  96. package/lib/constant/cli.js +1 -1
  97. package/lib/constant/defaults.js +1 -1
  98. package/lib/constant/distribution.js +1 -1
  99. package/lib/constant/domain.js +1 -1
  100. package/lib/constant/env.js +1 -1
  101. package/lib/constant/output.js +1 -1
  102. package/lib/constant/product.js +1 -1
  103. package/lib/constant/region.js +1 -1
  104. package/lib/constant/risk.js +1 -1
  105. package/lib/constant/url.js +1 -1
  106. package/lib/context.js +1 -1
  107. package/lib/core/api-client.d.ts +1 -0
  108. package/lib/core/api-client.js +1 -1
  109. package/lib/core/db-resolver.js +1 -1
  110. package/lib/core/kb-search-client.js +1 -1
  111. package/lib/core/sdk-client.js +1 -1
  112. package/lib/errors.js +1 -1
  113. package/lib/framework/access-error.js +1 -1
  114. package/lib/framework/build-all-flags.js +1 -1
  115. package/lib/framework/dryrun.js +1 -1
  116. package/lib/framework/flags.js +1 -1
  117. package/lib/framework/help.js +1 -1
  118. package/lib/framework/index.js +1 -1
  119. package/lib/framework/output.js +1 -1
  120. package/lib/framework/preparse.js +1 -1
  121. package/lib/framework/rate-limit.js +1 -1
  122. package/lib/framework/raw-flags.js +1 -1
  123. package/lib/framework/response.js +1 -1
  124. package/lib/framework/runner-confirmation.js +1 -1
  125. package/lib/framework/runner-error.js +1 -1
  126. package/lib/framework/runner.js +1 -1
  127. package/lib/framework/schema-export.js +1 -1
  128. package/lib/framework/service-order.js +1 -1
  129. package/lib/framework/types.js +1 -1
  130. package/lib/generated/build-info.d.ts +4 -4
  131. package/lib/generated/build-info.js +1 -1
  132. package/lib/generated/official-routing.js +1 -1
  133. package/lib/generated/routing-contract.js +1 -1
  134. package/lib/help.js +1 -1
  135. package/lib/postinstall.js +1 -1
  136. package/lib/runtime/confirmation.js +1 -1
  137. package/lib/runtime/event.js +1 -1
  138. package/lib/runtime/index.js +1 -1
  139. package/lib/runtime/queue.js +1 -1
  140. package/lib/runtime/resolve.js +1 -1
  141. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  142. package/lib/services/dataset-import/excel-reader.js +1 -1
  143. package/lib/services/dataset-import/image-bytes.js +1 -1
  144. package/lib/services/dataset-import/image-ooxml.js +1 -1
  145. package/lib/services/dataset-import/image-runner.js +1 -1
  146. package/lib/services/dataset-import/metadata.js +1 -1
  147. package/lib/services/dataset-import/preview.js +1 -1
  148. package/lib/services/dataset-import/runner.js +1 -1
  149. package/lib/skills/builtin-skill.js +1 -1
  150. package/lib/skills/npx-skills-add.js +1 -1
  151. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  152. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  153. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  154. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  155. package/lib/skills/runtime-skill-sync/links.js +1 -1
  156. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  157. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  158. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  159. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  160. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  161. package/lib/skills/runtime-skill-sync/push.js +1 -1
  162. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  163. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  164. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  165. package/lib/skills/runtime-skill-sync.js +1 -1
  166. package/lib/skills/skill-presence.js +1 -1
  167. package/lib/utils/access-key-redaction.js +1 -1
  168. package/lib/utils/apply-jq-filter.js +1 -1
  169. package/lib/utils/cli-version-check.js +1 -1
  170. package/lib/utils/cli-version-policy.js +1 -1
  171. package/lib/utils/logger.js +1 -1
  172. package/lib/utils/lossless-json.js +1 -1
  173. package/lib/utils/params.js +1 -1
  174. package/lib/utils/positive-safe-integer.js +1 -1
  175. package/lib/utils/redaction.js +1 -1
  176. package/lib/utils/update-notice.js +1 -1
  177. package/lib/utils/version.js +1 -1
  178. package/lib/utils/write-cli-side-channel.js +1 -1
  179. package/package.json +1 -1
  180. package/skills/lovrabet/SKILL.md +5 -3
  181. package/skills/lovrabet/guides/app-resolution.md +2 -0
  182. package/skills/lovrabet/guides/dataset-and-data-workflow.md +10 -1
  183. package/skills/lovrabet/references/dataset-discovery-workflow.md +14 -1
  184. package/skills/lovrabet/references/instant-api-workflow.md +2 -0
  185. package/skills/lovrabet/references/lovrabet-app.md +2 -0
  186. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a94_0x5912c7=a94_0x1855;(function(_0x49bcde,_0x501383){const _0x456b1e=a94_0x1855,_0x13106f=_0x49bcde();while(!![]){try{const _0x555d61=parseInt(_0x456b1e(0xa1))/0x1+-parseInt(_0x456b1e(0x7f))/0x2*(-parseInt(_0x456b1e(0x7b))/0x3)+parseInt(_0x456b1e(0xa7))/0x4+-parseInt(_0x456b1e(0x98))/0x5+-parseInt(_0x456b1e(0x9b))/0x6*(parseInt(_0x456b1e(0xa3))/0x7)+-parseInt(_0x456b1e(0xa4))/0x8*(parseInt(_0x456b1e(0x91))/0x9)+parseInt(_0x456b1e(0x89))/0xa;if(_0x555d61===_0x501383)break;else _0x13106f['push'](_0x13106f['shift']());}catch(_0x2f0069){_0x13106f['push'](_0x13106f['shift']());}}}(a94_0x32f0,0x2cb35));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a94_0x5912c7(0x97)];function a94_0x32f0(){const _0x230c6c=['format','222629bUJEbC','Record\x20ID','116333uRxkvn','66488ujJvjB','SQL\x20query\x20code','verbose','1496aTXUWq','JSON\x20params\x20for\x20execute\x20commands','Show\x20help','global','type','22728HDRkZY','Preview\x20operation\x20without\x20executing','app','nonInteractive','62iWNKgx','boolean','Environment','name','cliDisplayName','non-interactive','params','sqlcode','<code>','yes','2858100lrgtpc','help','Name\x20filter','dry-run','<expr>','Alias\x20for\x20--non-interactive','appcode','string','9JwVCAG','clear','dryRun','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','fromEntries','<name>','cliBinName','933235qXHvgL','Force\x20non-interactive\x20mode\x20(CI)','json\x20|\x20pretty\x20|\x20compress','132cOoEjT','Clear\x20output','env','Skip\x20confirmation\x20for\x20high-risk\x20writes','Select\x20app\x20profile\x20by\x20name'];a94_0x32f0=function(){return _0x230c6c;};return a94_0x32f0();}export const CLI_DISPLAY_NAME=PRODUCT_CONFIG[a94_0x5912c7(0x83)];export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a94_0x5912c7(0x8f),'type':a94_0x5912c7(0x90),'description':'Override\x20appcode','hint':a94_0x5912c7(0x87)},{'name':a94_0x5912c7(0x7d),'meowKey':a94_0x5912c7(0x7d),'type':a94_0x5912c7(0x90),'description':a94_0x5912c7(0x9f),'hint':a94_0x5912c7(0x96)},{'name':a94_0x5912c7(0x9d),'meowKey':a94_0x5912c7(0x9d),'type':a94_0x5912c7(0x90),'description':a94_0x5912c7(0x81),'hint':'production\x20|\x20development\x20|\x20daily'},{'name':a94_0x5912c7(0xa0),'meowKey':a94_0x5912c7(0xa0),'type':a94_0x5912c7(0x90),'description':'Output\x20format','hint':a94_0x5912c7(0x9a)},{'name':'jq','meowKey':'jq','type':a94_0x5912c7(0x90),'description':a94_0x5912c7(0x94),'hint':a94_0x5912c7(0x8d)},{'name':'dry-run','meowKey':a94_0x5912c7(0x93),'type':a94_0x5912c7(0x80),'description':a94_0x5912c7(0x7c)},{'name':a94_0x5912c7(0x88),'meowKey':a94_0x5912c7(0x88),'type':a94_0x5912c7(0x80),'description':a94_0x5912c7(0x9e)},{'name':a94_0x5912c7(0x84),'meowKey':a94_0x5912c7(0x7e),'type':a94_0x5912c7(0x80),'description':a94_0x5912c7(0x99)},{'name':a94_0x5912c7(0xaa),'meowKey':'global','type':a94_0x5912c7(0x80),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a94_0x5912c7(0x80),'description':a94_0x5912c7(0x8e),'hidden':!![]},{'name':'help','meowKey':a94_0x5912c7(0x8a),'type':'boolean','description':a94_0x5912c7(0xa9)},{'name':'id','meowKey':'id','type':'string','description':a94_0x5912c7(0xa2),'hidden':!![]},{'name':a94_0x5912c7(0x82),'meowKey':a94_0x5912c7(0x82),'type':a94_0x5912c7(0x90),'description':a94_0x5912c7(0x8b),'hidden':!![]},{'name':'sqlcode','meowKey':a94_0x5912c7(0x86),'type':a94_0x5912c7(0x90),'description':a94_0x5912c7(0xa5),'hidden':!![]},{'name':a94_0x5912c7(0x85),'meowKey':a94_0x5912c7(0x85),'type':a94_0x5912c7(0x90),'description':a94_0x5912c7(0xa8),'hidden':!![]},{'name':a94_0x5912c7(0xa6),'meowKey':a94_0x5912c7(0xa6),'type':'boolean','description':'Verbose\x20output','hidden':!![]},{'name':a94_0x5912c7(0x92),'meowKey':a94_0x5912c7(0x92),'type':a94_0x5912c7(0x80),'description':a94_0x5912c7(0x9c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a94_0x5912c7(0x8f),a94_0x5912c7(0x7d),a94_0x5912c7(0x9d),a94_0x5912c7(0xa0),'jq',a94_0x5912c7(0x8c),a94_0x5912c7(0x88),'non-interactive','ci']);function a94_0x1855(_0x38dbaa,_0x1e795f){_0x38dbaa=_0x38dbaa-0x7b;const _0x32f063=a94_0x32f0();let _0x185523=_0x32f063[_0x38dbaa];return _0x185523;}export function buildMeowFlags(){const _0x36981d=a94_0x5912c7;return Object[_0x36981d(0x95)](GLOBAL_FLAGS['map'](_0x238bd6=>[_0x238bd6['meowKey'],{'type':_0x238bd6[_0x36981d(0xab)]}]));}
1
+ function a94_0x1d48(_0xebf89b,_0x1895d8){_0xebf89b=_0xebf89b-0xe7;const _0x24b159=a94_0x24b1();let _0x1d4807=_0x24b159[_0xebf89b];return _0x1d4807;}const a94_0x4fc46f=a94_0x1d48;(function(_0x60e83c,_0x184edd){const _0x40a17f=a94_0x1d48,_0xbd697c=_0x60e83c();while(!![]){try{const _0x70cc93=parseInt(_0x40a17f(0xff))/0x1+parseInt(_0x40a17f(0x10e))/0x2*(parseInt(_0x40a17f(0xfa))/0x3)+-parseInt(_0x40a17f(0x105))/0x4+parseInt(_0x40a17f(0xfe))/0x5*(-parseInt(_0x40a17f(0x10b))/0x6)+parseInt(_0x40a17f(0x103))/0x7+-parseInt(_0x40a17f(0xe8))/0x8+parseInt(_0x40a17f(0x118))/0x9;if(_0x70cc93===_0x184edd)break;else _0xbd697c['push'](_0xbd697c['shift']());}catch(_0x1a8285){_0xbd697c['push'](_0xbd697c['shift']());}}}(a94_0x24b1,0xc4168));import{PRODUCT_CONFIG}from'../constant/product.js';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';export const CLI_BIN_NAME=PRODUCT_CONFIG[a94_0x4fc46f(0xf4)];export const CLI_DISPLAY_NAME=PRODUCT_CONFIG['cliDisplayName'];function a94_0x24b1(){const _0x432be7=['Force\x20non-interactive\x20mode\x20(CI)','<code>','cliBinName','JSON\x20params\x20for\x20execute\x20commands','<expr>','appcode','Preview\x20operation\x20without\x20executing','Select\x20app\x20profile\x20by\x20name','549JcygkQ','Skip\x20confirmation\x20for\x20high-risk\x20writes','clear','env','5uINOzm','1552030ouyddD','Clear\x20output','meowKey','string','8378391EkejRu','non-interactive','6256576mbQmZk','yes','nonInteractive','Alias\x20for\x20--non-interactive','Override\x20appcode','help','8309214KhBpGz','boolean','map','5644hmnYzr','verbose','format','Show\x20help','app','type','fromEntries','Verbose\x20output','SQL\x20query\x20code','json\x20|\x20pretty\x20|\x20compress','6067179UHKfej','params','name','1498488caqtVz','<name>','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20implies\x20--format\x20json\x20when\x20current\x20format\x20is\x20pretty)','global','dryRun','dry-run','Output\x20format','production\x20|\x20development\x20|\x20daily','Name\x20filter','Environment'];a94_0x24b1=function(){return _0x432be7;};return a94_0x24b1();}export const NPM_PACKAGE_NAME=LOVRABET_NPM_PACKAGE_NAME;export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a94_0x4fc46f(0xf7),'type':a94_0x4fc46f(0x102),'description':a94_0x4fc46f(0x109),'hint':a94_0x4fc46f(0xf3)},{'name':a94_0x4fc46f(0x112),'meowKey':'app','type':'string','description':a94_0x4fc46f(0xf9),'hint':a94_0x4fc46f(0xe9)},{'name':a94_0x4fc46f(0xfd),'meowKey':a94_0x4fc46f(0xfd),'type':a94_0x4fc46f(0x102),'description':a94_0x4fc46f(0xf1),'hint':a94_0x4fc46f(0xef)},{'name':a94_0x4fc46f(0x110),'meowKey':'format','type':a94_0x4fc46f(0x102),'description':a94_0x4fc46f(0xee),'hint':a94_0x4fc46f(0x117)},{'name':'jq','meowKey':'jq','type':a94_0x4fc46f(0x102),'description':a94_0x4fc46f(0xea),'hint':a94_0x4fc46f(0xf6)},{'name':a94_0x4fc46f(0xed),'meowKey':a94_0x4fc46f(0xec),'type':a94_0x4fc46f(0x10c),'description':a94_0x4fc46f(0xf8)},{'name':a94_0x4fc46f(0x106),'meowKey':'yes','type':a94_0x4fc46f(0x10c),'description':a94_0x4fc46f(0xfb)},{'name':a94_0x4fc46f(0x104),'meowKey':a94_0x4fc46f(0x107),'type':a94_0x4fc46f(0x10c),'description':a94_0x4fc46f(0xf2)},{'name':a94_0x4fc46f(0xeb),'meowKey':a94_0x4fc46f(0xeb),'type':a94_0x4fc46f(0x10c),'description':'Use\x20global\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a94_0x4fc46f(0x108),'hidden':!![]},{'name':a94_0x4fc46f(0x10a),'meowKey':a94_0x4fc46f(0x10a),'type':a94_0x4fc46f(0x10c),'description':a94_0x4fc46f(0x111)},{'name':'id','meowKey':'id','type':a94_0x4fc46f(0x102),'description':'Record\x20ID','hidden':!![]},{'name':'name','meowKey':a94_0x4fc46f(0xe7),'type':a94_0x4fc46f(0x102),'description':a94_0x4fc46f(0xf0),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':'string','description':a94_0x4fc46f(0x116),'hidden':!![]},{'name':a94_0x4fc46f(0x119),'meowKey':a94_0x4fc46f(0x119),'type':a94_0x4fc46f(0x102),'description':a94_0x4fc46f(0xf5),'hidden':!![]},{'name':a94_0x4fc46f(0x10f),'meowKey':a94_0x4fc46f(0x10f),'type':a94_0x4fc46f(0x10c),'description':a94_0x4fc46f(0x115),'hidden':!![]},{'name':a94_0x4fc46f(0xfc),'meowKey':'clear','type':'boolean','description':a94_0x4fc46f(0x100),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a94_0x4fc46f(0xf7),a94_0x4fc46f(0x112),a94_0x4fc46f(0xfd),a94_0x4fc46f(0x110),'jq',a94_0x4fc46f(0xed),a94_0x4fc46f(0x106),a94_0x4fc46f(0x104),'ci']);export function buildMeowFlags(){const _0x361235=a94_0x4fc46f;return Object[_0x361235(0x114)](GLOBAL_FLAGS[_0x361235(0x10d)](_0xfbc87=>[_0xfbc87[_0x361235(0x101)],{'type':_0xfbc87[_0x361235(0x113)]}]));}
@@ -1 +1 @@
1
- const a95_0x542f74=a95_0x1051;function a95_0x1051(_0x2f274f,_0x3a2855){_0x2f274f=_0x2f274f-0x1e7;const _0x399e90=a95_0x399e();let _0x105153=_0x399e90[_0x2f274f];return _0x105153;}(function(_0x1b4f6f,_0x5a7632){const _0x411590=a95_0x1051,_0x4d0a84=_0x1b4f6f();while(!![]){try{const _0x3d6809=-parseInt(_0x411590(0x1ed))/0x1*(-parseInt(_0x411590(0x1e9))/0x2)+parseInt(_0x411590(0x1ee))/0x3*(-parseInt(_0x411590(0x1f7))/0x4)+-parseInt(_0x411590(0x1ea))/0x5*(parseInt(_0x411590(0x1f1))/0x6)+parseInt(_0x411590(0x1e7))/0x7*(parseInt(_0x411590(0x1f2))/0x8)+-parseInt(_0x411590(0x1f5))/0x9+-parseInt(_0x411590(0x1ef))/0xa*(-parseInt(_0x411590(0x1f3))/0xb)+parseInt(_0x411590(0x1e8))/0xc*(parseInt(_0x411590(0x1f6))/0xd);if(_0x3d6809===_0x5a7632)break;else _0x4d0a84['push'](_0x4d0a84['shift']());}catch(_0x9a19c){_0x4d0a84['push'](_0x4d0a84['shift']());}}}(a95_0x399e,0x9090a));function a95_0x399e(){const _0x5301b3=['main','10601739epGUVM','31928xnxJhk','2073516BFFndi','8939TmqHyF','9132uqTkSv','6780OQctVg','86155COnDdY','en-US','production','204JltHAS','3QmfuOP','135010EQAZzV','compress','324UyjqWA','4040RvKpzw','11akCjuk'];a95_0x399e=function(){return _0x5301b3;};return a95_0x399e();}export const DEFAULT_APP_PROFILE_NAME=a95_0x542f74(0x1f4);export const DEFAULT_CONFIG_VALUES={'env':a95_0x542f74(0x1ec),'format':a95_0x542f74(0x1f0),'locale':a95_0x542f74(0x1eb),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ function a95_0x1ffa(_0x35b495,_0xd0c1c2){_0x35b495=_0x35b495-0x19e;const _0x1b8a6e=a95_0x1b8a();let _0x1ffa31=_0x1b8a6e[_0x35b495];return _0x1ffa31;}const a95_0x22659d=a95_0x1ffa;(function(_0x4b645b,_0x4129c8){const _0x22f012=a95_0x1ffa,_0x1eaf33=_0x4b645b();while(!![]){try{const _0x1cfe8e=-parseInt(_0x22f012(0x1a6))/0x1*(-parseInt(_0x22f012(0x1a7))/0x2)+-parseInt(_0x22f012(0x1a0))/0x3+parseInt(_0x22f012(0x1aa))/0x4+parseInt(_0x22f012(0x19e))/0x5*(parseInt(_0x22f012(0x1a5))/0x6)+-parseInt(_0x22f012(0x1a4))/0x7+-parseInt(_0x22f012(0x1a2))/0x8+-parseInt(_0x22f012(0x1a9))/0x9*(-parseInt(_0x22f012(0x1a1))/0xa);if(_0x1cfe8e===_0x4129c8)break;else _0x1eaf33['push'](_0x1eaf33['shift']());}catch(_0x267777){_0x1eaf33['push'](_0x1eaf33['shift']());}}}(a95_0x1b8a,0x453f4));function a95_0x1b8a(){const _0x45d8e1=['1100496yfQrnG','5ejPUkc','production','870036RFOVBA','22350sAwHXJ','4244632lAjgdB','en-US','727314Wwybyg','483444KxkfBe','33749AIHIcw','8eCWhAa','compress','2889Zhnzof'];a95_0x1b8a=function(){return _0x45d8e1;};return a95_0x1b8a();}export const DEFAULT_APP_PROFILE_NAME='main';export const DEFAULT_CONFIG_VALUES={'env':a95_0x22659d(0x19f),'format':'compress','locale':a95_0x22659d(0x1a3),'riskLevel':'write'};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a95_0x22659d(0x1a8);
@@ -1 +1 @@
1
- const a96_0x1e887a=a96_0x5258;function a96_0x5258(_0x386184,_0x134207){_0x386184=_0x386184-0x176;const _0x5097a6=a96_0x5097();let _0x5258ad=_0x5097a6[_0x386184];return _0x5258ad;}(function(_0x2cf710,_0x17cb99){const _0x1237cf=a96_0x5258,_0x50b548=_0x2cf710();while(!![]){try{const _0x290f17=parseInt(_0x1237cf(0x180))/0x1*(-parseInt(_0x1237cf(0x179))/0x2)+parseInt(_0x1237cf(0x17e))/0x3*(parseInt(_0x1237cf(0x17f))/0x4)+-parseInt(_0x1237cf(0x185))/0x5*(-parseInt(_0x1237cf(0x17d))/0x6)+parseInt(_0x1237cf(0x177))/0x7+parseInt(_0x1237cf(0x17c))/0x8*(parseInt(_0x1237cf(0x17b))/0x9)+-parseInt(_0x1237cf(0x181))/0xa+-parseInt(_0x1237cf(0x183))/0xb*(parseInt(_0x1237cf(0x182))/0xc);if(_0x290f17===_0x17cb99)break;else _0x50b548['push'](_0x50b548['shift']());}catch(_0x5a0784){_0x50b548['push'](_0x50b548['shift']());}}}(a96_0x5097,0x3353e));import{PRODUCT_CONFIG}from'../constant/product.js';function a96_0x5097(){const _0x5632f9=['4306iGvvqw','npmRegistryBaseUrl','9djMPIN','774256DIdPot','102jTQpYL','588318qIQNfg','8tZbIzv','31IrUkgg','2585960iBciOz','12vgMfUJ','1870066dmCARs','/dist/lovrabet-cli/config/index.json','56825KqGXoX','skillSource','163688clmMHY','npmPackageName'];a96_0x5097=function(){return _0x5632f9;};return a96_0x5097();}export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a96_0x1e887a(0x178)];export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a96_0x1e887a(0x176)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG[a96_0x1e887a(0x17a)];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG['cliCdnBaseUrl'];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a96_0x1e887a(0x184);
1
+ const a96_0x1af806=a96_0x4c51;(function(_0x3d19d7,_0x372593){const _0x5e6c08=a96_0x4c51,_0x2eae8d=_0x3d19d7();while(!![]){try{const _0x1a49fe=parseInt(_0x5e6c08(0xb0))/0x1*(parseInt(_0x5e6c08(0xb4))/0x2)+-parseInt(_0x5e6c08(0xb7))/0x3+parseInt(_0x5e6c08(0xb3))/0x4*(-parseInt(_0x5e6c08(0xb9))/0x5)+parseInt(_0x5e6c08(0xb5))/0x6+parseInt(_0x5e6c08(0xbb))/0x7+-parseInt(_0x5e6c08(0xaf))/0x8+-parseInt(_0x5e6c08(0xb8))/0x9*(-parseInt(_0x5e6c08(0xba))/0xa);if(_0x1a49fe===_0x372593)break;else _0x2eae8d['push'](_0x2eae8d['shift']());}catch(_0x1608c0){_0x2eae8d['push'](_0x2eae8d['shift']());}}}(a96_0x27d7,0x1b4e0));import{PRODUCT_CONFIG}from'../constant/product.js';export const LOVRABET_NPM_PACKAGE_NAME=PRODUCT_CONFIG[a96_0x1af806(0xae)];function a96_0x4c51(_0x16190e,_0x56aba7){_0x16190e=_0x16190e-0xae;const _0x27d788=a96_0x27d7();let _0x4c5174=_0x27d788[_0x16190e];return _0x4c5174;}export const LOVRABET_SKILL_SOURCE=PRODUCT_CONFIG[a96_0x1af806(0xb1)];export const NPM_REGISTRY_BASE_URL=PRODUCT_CONFIG['npmRegistryBaseUrl'];export const LOVRABET_CLI_CDN_BASE_URL=PRODUCT_CONFIG[a96_0x1af806(0xb2)];export const LOVRABET_CLI_VERSION_POLICY_URL=LOVRABET_CLI_CDN_BASE_URL+a96_0x1af806(0xb6);function a96_0x27d7(){const _0x3a2783=['488646fiUGcQ','25839gNeunF','10YDSevD','30zvCAFN','76209lZXAZY','npmPackageName','143232HogFQz','6536waTNkv','skillSource','cliCdnBaseUrl','81244EHaVsT','68JOgEEx','549144FOlzNP','/dist/lovrabet-cli/config/index.json'];a96_0x27d7=function(){return _0x3a2783;};return a96_0x27d7();}
@@ -1 +1 @@
1
- const a97_0x2c2971=a97_0x18e4;(function(_0x423cc4,_0x454579){const _0x2418f8=a97_0x18e4,_0x239734=_0x423cc4();while(!![]){try{const _0x5088de=-parseInt(_0x2418f8(0x128))/0x1+parseInt(_0x2418f8(0x11c))/0x2*(-parseInt(_0x2418f8(0x11b))/0x3)+parseInt(_0x2418f8(0x114))/0x4*(parseInt(_0x2418f8(0x11f))/0x5)+parseInt(_0x2418f8(0x121))/0x6*(-parseInt(_0x2418f8(0x116))/0x7)+-parseInt(_0x2418f8(0x111))/0x8+-parseInt(_0x2418f8(0x120))/0x9*(-parseInt(_0x2418f8(0x127))/0xa)+parseInt(_0x2418f8(0x117))/0xb;if(_0x5088de===_0x454579)break;else _0x239734['push'](_0x239734['shift']());}catch(_0x131a77){_0x239734['push'](_0x239734['shift']());}}}(a97_0x45f1,0x68f3d));import{getEnv,isProduction}from'../constant/env.js';function a97_0x18e4(_0x1112e3,_0xda6f41){_0x1112e3=_0x1112e3-0x111;const _0x45f1bd=a97_0x45f1();let _0x18e4c=_0x45f1bd[_0x1112e3];return _0x18e4c;}import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0x169885){const _0x4214ed=a97_0x18e4;customApiDomain=_0x169885?.['apiDomain'],customUserDomain=_0x169885?.[_0x4214ed(0x119)],customRuntimeDomain=_0x169885?.['runtimeDomain'],customSkillDomain=_0x169885?.[_0x4214ed(0x125)],customKbServiceDomain=_0x169885?.[_0x4214ed(0x118)],allowOfficialKbServiceDefault=_0x169885?.[_0x4214ed(0x126)]??!![],activeRegion=_0x169885?.[_0x4214ed(0x123)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0x49f9cc=a97_0x18e4,_0x12b7b8=OFFICIAL_ROUTING_PROFILES[activeRegion][_0x49f9cc(0x11a)];return isProduction(getEnv())?_0x12b7b8[_0x49f9cc(0x113)]:'daily'in _0x12b7b8?_0x12b7b8[_0x49f9cc(0x124)]:_0x12b7b8[_0x49f9cc(0x113)];};export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a97_0x2c2971(0x112)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a97_0x2c2971(0x122)];function a97_0x45f1(){const _0x4340d6=['region','daily','skillDomain','allowOfficialKbServiceDefault','1309300jNtQHh','354344LvgAKT','1713528qcijop','user','production','5012QoCxMN','kbService','126ZiLjZh','3022734kQthFi','kbServiceDomain','userDomain','serviceDomains','709221nTHieH','2xLwdyW','runtime','skill','1905wNZCmu','54AxYyzc','100980eOEIbi','api'];a97_0x45f1=function(){return _0x4340d6;};return a97_0x45f1();}export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a97_0x2c2971(0x11d)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a97_0x2c2971(0x11e)];export const getKbServiceDomain=()=>{const _0x19ec00=a97_0x2c2971;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x5661a4=getActiveRegionDomains();return _0x19ec00(0x115)in _0x5661a4?_0x5661a4['kbService']:undefined;};
1
+ const a97_0x6517bb=a97_0x5a05;(function(_0x21c65b,_0x5e3424){const _0x16a9a7=a97_0x5a05,_0x476517=_0x21c65b();while(!![]){try{const _0x554bdd=-parseInt(_0x16a9a7(0xfa))/0x1+parseInt(_0x16a9a7(0xfd))/0x2+parseInt(_0x16a9a7(0xef))/0x3*(parseInt(_0x16a9a7(0xfe))/0x4)+-parseInt(_0x16a9a7(0x100))/0x5+-parseInt(_0x16a9a7(0xff))/0x6+-parseInt(_0x16a9a7(0x103))/0x7+parseInt(_0x16a9a7(0xfb))/0x8;if(_0x554bdd===_0x5e3424)break;else _0x476517['push'](_0x476517['shift']());}catch(_0x5d31b5){_0x476517['push'](_0x476517['shift']());}}}(a97_0x1227,0x930ef));import{getEnv,isProduction}from'../constant/env.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],activeRegion=DEFAULT_LOVRABET_REGION;export function initDomains(_0xe12175){const _0x13afbd=a97_0x5a05;customApiDomain=_0xe12175?.[_0x13afbd(0x101)],customUserDomain=_0xe12175?.[_0x13afbd(0xf3)],customRuntimeDomain=_0xe12175?.[_0x13afbd(0xed)],customSkillDomain=_0xe12175?.[_0x13afbd(0xf0)],customKbServiceDomain=_0xe12175?.[_0x13afbd(0xfc)],allowOfficialKbServiceDefault=_0xe12175?.[_0x13afbd(0xf9)]??!![],activeRegion=_0xe12175?.[_0x13afbd(0xf8)]??DEFAULT_LOVRABET_REGION;}const getActiveRegionDomains=()=>{const _0xe7a3fa=a97_0x5a05,_0x11eafb=OFFICIAL_ROUTING_PROFILES[activeRegion][_0xe7a3fa(0xf7)];return isProduction(getEnv())?_0x11eafb[_0xe7a3fa(0xee)]:'daily'in _0x11eafb?_0x11eafb[_0xe7a3fa(0xf4)]:_0x11eafb[_0xe7a3fa(0xee)];};function a97_0x1227(){const _0x1e52e2=['kbService','serviceDomains','region','allowOfficialKbServiceDefault','408346YuNiwM','5168448xMANwF','kbServiceDomain','2231112TAMSeC','3506424ojEjiL','810864jLLiDt','4339650FgWtpx','apiDomain','user','4371129YHJgPe','runtimeDomain','production','3ZKIlmD','skillDomain','skill','runtime','userDomain','daily','api'];a97_0x1227=function(){return _0x1e52e2;};return a97_0x1227();}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a97_0x6517bb(0x102)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a97_0x6517bb(0xf5)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a97_0x6517bb(0xf2)];function a97_0x5a05(_0x14d2e9,_0xf7afd4){_0x14d2e9=_0x14d2e9-0xed;const _0x122744=a97_0x1227();let _0x5a05dc=_0x122744[_0x14d2e9];return _0x5a05dc;}export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a97_0x6517bb(0xf1)];export const getKbServiceDomain=()=>{const _0x5bdfae=a97_0x6517bb;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;const _0x2618c0=getActiveRegionDomains();return _0x5bdfae(0xf6)in _0x2618c0?_0x2618c0[_0x5bdfae(0xf6)]:undefined;};
@@ -1 +1 @@
1
- const a98_0x5320db=a98_0x269b;(function(_0x54e03b,_0xb31d67){const _0x4f712f=a98_0x269b,_0x3425a9=_0x54e03b();while(!![]){try{const _0x2c0b21=-parseInt(_0x4f712f(0x1e3))/0x1+parseInt(_0x4f712f(0x1e2))/0x2+parseInt(_0x4f712f(0x1de))/0x3+-parseInt(_0x4f712f(0x1db))/0x4+-parseInt(_0x4f712f(0x1d7))/0x5*(-parseInt(_0x4f712f(0x1d6))/0x6)+-parseInt(_0x4f712f(0x1e0))/0x7*(-parseInt(_0x4f712f(0x1dc))/0x8)+-parseInt(_0x4f712f(0x1da))/0x9;if(_0x2c0b21===_0xb31d67)break;else _0x3425a9['push'](_0x3425a9['shift']());}catch(_0x9f095e){_0x3425a9['push'](_0x3425a9['shift']());}}}(a98_0x17af,0xf1792));import{productEnv}from'../constant/product.js';function a98_0x17af(){const _0x55b2b8=['3581162NElkwW','1294287KJPoVc','18ctKelt','1700155jiDPYB','dev','daily','5700528iJUlND','5184212YPioPL','3504WyiEqN','online','3587502uqgBDY','development','3297UnPJjr','production'];a98_0x17af=function(){return _0x55b2b8;};return a98_0x17af();}export const RUNTIME_ENV_VALUES=[a98_0x5320db(0x1e1),'development',a98_0x5320db(0x1d9)];export function normalizeEnv(_0x3d1079){const _0x21e8e6=a98_0x5320db;return _0x3d1079===_0x21e8e6(0x1dd)?_0x21e8e6(0x1e1):_0x3d1079;}function a98_0x269b(_0x17c2b5,_0x1bc533){_0x17c2b5=_0x17c2b5-0x1d6;const _0x17afcb=a98_0x17af();let _0x269b3f=_0x17afcb[_0x17c2b5];return _0x269b3f;}export function isProduction(_0x50e47e){return normalizeEnv(_0x50e47e)==='production';}export function isDaily(_0x1d60b5){return normalizeEnv(_0x1d60b5)==='daily';}export function isDev(_0x550435){const _0x43de59=a98_0x5320db,_0x262140=normalizeEnv(_0x550435);return _0x262140===_0x43de59(0x1df)||_0x262140===_0x43de59(0x1d8);}let env=normalizeEnv(productEnv('ENV')||a98_0x5320db(0x1e1));export function getEnv(){return env;}export function initEnv(_0x1a3e63){env=normalizeEnv(_0x1a3e63);}
1
+ const a98_0x54ab45=a98_0x1fc4;(function(_0x3906d5,_0x144ff1){const _0x265dba=a98_0x1fc4,_0x1491c5=_0x3906d5();while(!![]){try{const _0x1fcbc3=parseInt(_0x265dba(0x10e))/0x1+-parseInt(_0x265dba(0x107))/0x2*(-parseInt(_0x265dba(0x111))/0x3)+-parseInt(_0x265dba(0x112))/0x4+-parseInt(_0x265dba(0x10f))/0x5*(-parseInt(_0x265dba(0x10c))/0x6)+parseInt(_0x265dba(0x10d))/0x7*(parseInt(_0x265dba(0x105))/0x8)+-parseInt(_0x265dba(0x106))/0x9+parseInt(_0x265dba(0x104))/0xa*(parseInt(_0x265dba(0x110))/0xb);if(_0x1fcbc3===_0x144ff1)break;else _0x1491c5['push'](_0x1491c5['shift']());}catch(_0x10ab94){_0x1491c5['push'](_0x1491c5['shift']());}}}(a98_0x23fa,0x66cb3));import{productEnv}from'../constant/product.js';export const RUNTIME_ENV_VALUES=[a98_0x54ab45(0x10b),'development',a98_0x54ab45(0x108)];function a98_0x23fa(){const _0xdf54bb=['production','4181994gRrGzB','36631SZCTOk','30755aABVgv','5DKFIfj','143UWHDud','48591aFTgxe','2329772MxFpTs','295350okcCvL','664uTLiaV','7361199owipVY','34ygmVgT','daily','online','ENV'];a98_0x23fa=function(){return _0xdf54bb;};return a98_0x23fa();}export function normalizeEnv(_0x1368dd){const _0xa69641=a98_0x54ab45;return _0x1368dd===_0xa69641(0x109)?_0xa69641(0x10b):_0x1368dd;}export function isProduction(_0x3d3f12){return normalizeEnv(_0x3d3f12)==='production';}export function isDaily(_0x13b4b5){const _0x34b5f0=a98_0x54ab45;return normalizeEnv(_0x13b4b5)===_0x34b5f0(0x108);}export function isDev(_0x58ca03){const _0x4614e8=normalizeEnv(_0x58ca03);return _0x4614e8==='development'||_0x4614e8==='dev';}let env=normalizeEnv(productEnv(a98_0x54ab45(0x10a))||'production');function a98_0x1fc4(_0x12f7a9,_0x5c0d54){_0x12f7a9=_0x12f7a9-0x104;const _0x23fa51=a98_0x23fa();let _0x1fc452=_0x23fa51[_0x12f7a9];return _0x1fc452;}export function getEnv(){return env;}export function initEnv(_0x191351){env=normalizeEnv(_0x191351);}
@@ -1 +1 @@
1
- const a99_0x1d5e52=a99_0x15fb;function a99_0x7f3b(){const _0x411cc3=['460317fXmJyh','compress','1210380sDeTrx','pretty','1082934LrFLoW','12456621SEQIfH','1622185aHCQQD','2689456SrBHDM','json','35yzaGFC','1qyUbej','520818prFmlU','10eSrKOH'];a99_0x7f3b=function(){return _0x411cc3;};return a99_0x7f3b();}(function(_0x5d9a4a,_0x192b51){const _0x19a206=a99_0x15fb,_0x4d2097=_0x5d9a4a();while(!![]){try{const _0x32c705=parseInt(_0x19a206(0x102))/0x1*(-parseInt(_0x19a206(0x109))/0x2)+parseInt(_0x19a206(0x105))/0x3+-parseInt(_0x19a206(0x107))/0x4+-parseInt(_0x19a206(0xfe))/0x5+-parseInt(_0x19a206(0x103))/0x6*(parseInt(_0x19a206(0x101))/0x7)+parseInt(_0x19a206(0xff))/0x8+-parseInt(_0x19a206(0xfd))/0x9*(-parseInt(_0x19a206(0x104))/0xa);if(_0x32c705===_0x192b51)break;else _0x4d2097['push'](_0x4d2097['shift']());}catch(_0x5afe3b){_0x4d2097['push'](_0x4d2097['shift']());}}}(a99_0x7f3b,0x42348));function a99_0x15fb(_0x1007b9,_0x32abf4){_0x1007b9=_0x1007b9-0xfd;const _0x7f3b50=a99_0x7f3b();let _0x15fbd5=_0x7f3b50[_0x1007b9];return _0x15fbd5;}export const OUTPUT_FORMAT_VALUES=[a99_0x1d5e52(0x100),a99_0x1d5e52(0x108),a99_0x1d5e52(0x106)];
1
+ function a99_0xe5cd(_0x2b4e9f,_0x3b6e5b){_0x2b4e9f=_0x2b4e9f-0xb2;const _0x591ff1=a99_0x591f();let _0xe5cde0=_0x591ff1[_0x2b4e9f];return _0xe5cde0;}function a99_0x591f(){const _0x50f0d5=['26zDGjCH','3007030GPEMOM','4Hgraao','14trfnMW','20wuVkFk','2351528BSgXIx','2306466juNaxD','68736egRUIn','1484982PfNNPr','11jCzAmg','662872WEyOMN','pretty','22978512ifHYJn'];a99_0x591f=function(){return _0x50f0d5;};return a99_0x591f();}const a99_0x29e7c9=a99_0xe5cd;(function(_0x53af08,_0x384800){const _0x13c014=a99_0xe5cd,_0x416e5d=_0x53af08();while(!![]){try{const _0x6a30da=parseInt(_0x13c014(0xbd))/0x1+parseInt(_0x13c014(0xb3))/0x2*(-parseInt(_0x13c014(0xba))/0x3)+-parseInt(_0x13c014(0xb5))/0x4*(-parseInt(_0x13c014(0xb4))/0x5)+parseInt(_0x13c014(0xbb))/0x6+-parseInt(_0x13c014(0xb6))/0x7*(-parseInt(_0x13c014(0xb8))/0x8)+-parseInt(_0x13c014(0xb9))/0x9*(-parseInt(_0x13c014(0xb7))/0xa)+-parseInt(_0x13c014(0xbc))/0xb*(parseInt(_0x13c014(0xb2))/0xc);if(_0x6a30da===_0x384800)break;else _0x416e5d['push'](_0x416e5d['shift']());}catch(_0x3ca272){_0x416e5d['push'](_0x416e5d['shift']());}}}(a99_0x591f,0x61871));export const OUTPUT_FORMAT_VALUES=['json',a99_0x29e7c9(0xbe),'compress'];
@@ -1 +1 @@
1
- const a100_0x4156bc=a100_0x5177;(function(_0x48498c,_0x39c2c9){const _0x36abd5=a100_0x5177,_0x33632c=_0x48498c();while(!![]){try{const _0x48145e=parseInt(_0x36abd5(0xdb))/0x1*(-parseInt(_0x36abd5(0xe9))/0x2)+-parseInt(_0x36abd5(0xd8))/0x3*(parseInt(_0x36abd5(0xd5))/0x4)+parseInt(_0x36abd5(0xd4))/0x5*(parseInt(_0x36abd5(0xe1))/0x6)+-parseInt(_0x36abd5(0xe6))/0x7*(-parseInt(_0x36abd5(0xea))/0x8)+-parseInt(_0x36abd5(0xda))/0x9*(-parseInt(_0x36abd5(0xdc))/0xa)+parseInt(_0x36abd5(0xe3))/0xb*(parseInt(_0x36abd5(0xe0))/0xc)+-parseInt(_0x36abd5(0xd2))/0xd;if(_0x48145e===_0x39c2c9)break;else _0x33632c['push'](_0x33632c['shift']());}catch(_0xc2dc19){_0x33632c['push'](_0x33632c['shift']());}}}(a100_0x1975,0xedbbe));export const PRODUCT_CONFIG={'cliBinName':a100_0x4156bc(0xec),'cliDisplayName':a100_0x4156bc(0xd1),'npmPackageName':a100_0x4156bc(0xd7),'skillSource':'lovrabet/lovrabet-cli','internalSkillSource':'git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','globalSkillName':a100_0x4156bc(0xec),'npmRegistryBaseUrl':'https://registry.npmjs.org','cliCdnBaseUrl':a100_0x4156bc(0xd6),'envPrefix':a100_0x4156bc(0xe4),'legacyEnvPrefixes':[a100_0x4156bc(0xe2)],'configFileNames':['.lovrabet.json'],'newConfigFileName':'.lovrabet.json','homeDirName':a100_0x4156bc(0xdf),'logFileName':a100_0x4156bc(0xe7),'invokeSource':a100_0x4156bc(0xd9),'userCenterDisplayName':a100_0x4156bc(0xeb),'skipNpxSkillsEnvSuffix':a100_0x4156bc(0xd3),'accessKeyCreatePath':a100_0x4156bc(0xde)};export function productEnvName(_0x6e1231){const _0x26fe1b=a100_0x4156bc;return PRODUCT_CONFIG[_0x26fe1b(0xe8)]+'_'+_0x6e1231;}export function productEnvNames(_0x2c83c2){const _0xe7d168=a100_0x4156bc;return[productEnvName(_0x2c83c2),...PRODUCT_CONFIG[_0xe7d168(0xe5)][_0xe7d168(0xdd)](_0x38ed57=>_0x38ed57+'_'+_0x2c83c2)];}function a100_0x5177(_0x145e0d,_0x7c9ef8){_0x145e0d=_0x145e0d-0xd1;const _0x1975d6=a100_0x1975();let _0x51771c=_0x1975d6[_0x145e0d];return _0x51771c;}function a100_0x1975(){const _0x5386f8=['8382Mxndus','LOVRABET','legacyEnvPrefixes','5018552lWaxCW','.lovrabet-runtime.log','envPrefix','2knJzBd','16PwpHbc','Lovrabet\x20User\x20Center','lovrabet','Lovrabet\x20Runtime\x20CLI','37363235WacGkT','SKIP_NPX_SKILLS','110eHtHmX','4VNZuEF','https://g.lovrabet.com','@lovrabet/lovrabet-cli','2512611WPSiaR','cli:lovrabet-runtime','3639141hxnYsD','246027ceNinu','10nbJSqn','map','/user/ak','.lovrabet','26340fkwSHB','387438NcKoag','RABETBASE'];a100_0x1975=function(){return _0x5386f8;};return a100_0x1975();}export function productEnv(_0xd67f73){for(const _0x5eefcc of productEnvNames(_0xd67f73)){const _0x286b10=process.env[_0x5eefcc];if(_0x286b10!==undefined)return _0x286b10;}return undefined;}
1
+ const a100_0x1033c8=a100_0x49be;function a100_0x1a7e(){const _0x312187=['legacyEnvPrefixes','242884JhgDMh','236110JaCXux','2208824ZNMRqU','/user/ak','LOVRABET','Lovrabet\x20Runtime\x20CLI','lovrabet/lovrabet-cli','RABETBASE','envPrefix','SKIP_NPX_SKILLS','130928YSZuSm','1269401XsLxYL','606308SfEFMT','.lovrabet-runtime.log','.lovrabet','Lovrabet\x20User\x20Center','https://registry.npmjs.org','https://g.lovrabet.com','map','12RlLHaJ','796668GPHrLn','.lovrabet.json','git@codeup.aliyun.com:yuntoo/open/lovrabet-runtime-cli.git','lovrabet','@lovrabet/lovrabet-cli'];a100_0x1a7e=function(){return _0x312187;};return a100_0x1a7e();}(function(_0x4beee0,_0x4a3e06){const _0x5e9b47=a100_0x49be,_0x590792=_0x4beee0();while(!![]){try{const _0x5dea92=parseInt(_0x5e9b47(0xea))/0x1+parseInt(_0x5e9b47(0xe0))/0x2+-parseInt(_0x5e9b47(0xf4))/0x3+parseInt(_0x5e9b47(0xec))/0x4+parseInt(_0x5e9b47(0xe1))/0x5*(-parseInt(_0x5e9b47(0xf3))/0x6)+-parseInt(_0x5e9b47(0xeb))/0x7+parseInt(_0x5e9b47(0xe2))/0x8;if(_0x5dea92===_0x4a3e06)break;else _0x590792['push'](_0x590792['shift']());}catch(_0x4c5a54){_0x590792['push'](_0x590792['shift']());}}}(a100_0x1a7e,0x21dd3));export const PRODUCT_CONFIG={'cliBinName':a100_0x1033c8(0xdd),'cliDisplayName':a100_0x1033c8(0xe5),'npmPackageName':a100_0x1033c8(0xde),'skillSource':a100_0x1033c8(0xe6),'internalSkillSource':a100_0x1033c8(0xf6),'globalSkillName':'lovrabet','npmRegistryBaseUrl':a100_0x1033c8(0xf0),'cliCdnBaseUrl':a100_0x1033c8(0xf1),'envPrefix':a100_0x1033c8(0xe4),'legacyEnvPrefixes':[a100_0x1033c8(0xe7)],'configFileNames':[a100_0x1033c8(0xf5)],'newConfigFileName':'.lovrabet.json','homeDirName':a100_0x1033c8(0xee),'logFileName':a100_0x1033c8(0xed),'invokeSource':'cli:lovrabet-runtime','userCenterDisplayName':a100_0x1033c8(0xef),'skipNpxSkillsEnvSuffix':a100_0x1033c8(0xe9),'accessKeyCreatePath':a100_0x1033c8(0xe3)};export function productEnvName(_0x12cc79){const _0x2f0540=a100_0x1033c8;return PRODUCT_CONFIG[_0x2f0540(0xe8)]+'_'+_0x12cc79;}function a100_0x49be(_0x224a1a,_0x49f01f){_0x224a1a=_0x224a1a-0xdd;const _0x1a7e62=a100_0x1a7e();let _0x49be86=_0x1a7e62[_0x224a1a];return _0x49be86;}export function productEnvNames(_0x4d22b9){const _0x342f88=a100_0x1033c8;return[productEnvName(_0x4d22b9),...PRODUCT_CONFIG[_0x342f88(0xdf)][_0x342f88(0xf2)](_0x28d3bd=>_0x28d3bd+'_'+_0x4d22b9)];}export function productEnv(_0x5bfdb9){for(const _0x19322e of productEnvNames(_0x5bfdb9)){const _0x1df44c=process.env[_0x19322e];if(_0x1df44c!==undefined)return _0x1df44c;}return undefined;}
@@ -1 +1 @@
1
- (function(_0x53201a,_0xd3f549){const _0xfdd57e=a101_0x5b12,_0x1c0087=_0x53201a();while(!![]){try{const _0x17f5e1=-parseInt(_0xfdd57e(0xed))/0x1+parseInt(_0xfdd57e(0xf0))/0x2*(-parseInt(_0xfdd57e(0xe3))/0x3)+parseInt(_0xfdd57e(0xe8))/0x4+-parseInt(_0xfdd57e(0xef))/0x5*(-parseInt(_0xfdd57e(0xea))/0x6)+parseInt(_0xfdd57e(0xee))/0x7*(parseInt(_0xfdd57e(0xf1))/0x8)+parseInt(_0xfdd57e(0xe9))/0x9+-parseInt(_0xfdd57e(0xe0))/0xa;if(_0x17f5e1===_0xd3f549)break;else _0x1c0087['push'](_0x1c0087['shift']());}catch(_0x3e19ec){_0x1c0087['push'](_0x1c0087['shift']());}}}(a101_0x5397,0x21f33));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';import{CliErrors}from'../errors.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;function a101_0x5b12(_0x1f5c2f,_0x5ab082){_0x1f5c2f=_0x1f5c2f-0xde;const _0x539781=a101_0x5397();let _0x5b12ab=_0x539781[_0x1f5c2f];return _0x5b12ab;}function a101_0x5397(){const _0x4cd4bb=['3567520pdCZue','Available\x20regions:\x20','includes','641133hrNdGx','join','validation','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','951352LoPTdM','2051541BKjcIt','38892nLSwZQ','\x22\x20is\x20not\x20currently\x20available.','string','196849creOCM','238SfITId','165CQiGQY','2CMskEv','53336zLrVec','.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.','Region\x20\x22'];a101_0x5397=function(){return _0x4cd4bb;};return a101_0x5397();}export function isLovrabetRegion(_0x4276ce){const _0xdd355f=a101_0x5b12;return typeof _0x4276ce===_0xdd355f(0xec)&&LOVRABET_REGION_VALUES['includes'](_0x4276ce);}export function isEnabledLovrabetRegion(_0x27f42e){const _0x5585f3=a101_0x5b12;return typeof _0x27f42e===_0x5585f3(0xec)&&ENABLED_LOVRABET_REGION_VALUES[_0x5585f3(0xe2)](_0x27f42e);}export function normalizeLovrabetRegion(_0x26b904){const _0x100808=a101_0x5b12;if(_0x26b904===undefined||_0x26b904===null||_0x26b904==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x26b904!=='string')throw CliErrors[_0x100808(0xe5)](_0x100808(0xe7)+typeof _0x26b904+'.',_0x100808(0xe6));const _0x55a46e=REGION_ALIASES[_0x26b904]??_0x26b904;if(isEnabledLovrabetRegion(_0x55a46e))return _0x55a46e;throw CliErrors[_0x100808(0xe5)](_0x100808(0xdf)+_0x26b904+_0x100808(0xeb),_0x100808(0xe1)+ENABLED_LOVRABET_REGION_VALUES[_0x100808(0xe4)](',\x20')+_0x100808(0xde));}
1
+ (function(_0x5ea8be,_0x5c528b){const _0x42ab5d=a101_0x1759,_0x5a79c2=_0x5ea8be();while(!![]){try{const _0x39d68e=parseInt(_0x42ab5d(0x9c))/0x1+parseInt(_0x42ab5d(0xa0))/0x2*(-parseInt(_0x42ab5d(0xa8))/0x3)+-parseInt(_0x42ab5d(0xa7))/0x4+parseInt(_0x42ab5d(0xa1))/0x5+parseInt(_0x42ab5d(0x9d))/0x6+parseInt(_0x42ab5d(0x98))/0x7*(parseInt(_0x42ab5d(0x9b))/0x8)+-parseInt(_0x42ab5d(0xa5))/0x9;if(_0x39d68e===_0x5c528b)break;else _0x5a79c2['push'](_0x5a79c2['shift']());}catch(_0x4a4083){_0x5a79c2['push'](_0x5a79c2['shift']());}}}(a101_0x31ff,0x2f632));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';import{CliErrors}from'../errors.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;function a101_0x1759(_0x158f63,_0x4bcb5f){_0x158f63=_0x158f63-0x98;const _0x31ff03=a101_0x31ff();let _0x17593c=_0x31ff03[_0x158f63];return _0x17593c;}export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x1daddf){const _0x3001d2=a101_0x1759;return typeof _0x1daddf==='string'&&LOVRABET_REGION_VALUES[_0x3001d2(0x9f)](_0x1daddf);}export function isEnabledLovrabetRegion(_0x5a6005){const _0x56aa7a=a101_0x1759;return typeof _0x5a6005==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x56aa7a(0x9f)](_0x5a6005);}export function normalizeLovrabetRegion(_0x175d0b){const _0x354759=a101_0x1759;if(_0x175d0b===undefined||_0x175d0b===null||_0x175d0b==='')return DEFAULT_LOVRABET_REGION;if(typeof _0x175d0b!==_0x354759(0xa4))throw CliErrors[_0x354759(0x99)](_0x354759(0xa6)+typeof _0x175d0b+'.',_0x354759(0x9a));const _0x19094e=REGION_ALIASES[_0x175d0b]??_0x175d0b;if(isEnabledLovrabetRegion(_0x19094e))return _0x19094e;throw CliErrors[_0x354759(0x99)](_0x354759(0x9e)+_0x175d0b+'\x22\x20is\x20not\x20currently\x20available.',_0x354759(0xa2)+ENABLED_LOVRABET_REGION_VALUES[_0x354759(0xa3)](',\x20')+'.\x20Run\x20`lovrabet\x20config\x20init`\x20to\x20repair\x20the\x20global\x20configuration.');}function a101_0x31ff(){const _0x404f95=['Region\x20\x22','includes','5992ZvlSRY','873455JeJaKJ','Available\x20regions:\x20','join','string','629532XlIicQ','Invalid\x20region\x20value:\x20expected\x20a\x20string,\x20received\x20','710768FWKUHO','9AABoCV','14FzJScG','validation','Run\x20`lovrabet\x20config\x20init`\x20to\x20restore\x20the\x20global\x20country/region\x20configuration.','384184cGMWuk','19532mUzIVS','962742UuYrpt'];a101_0x31ff=function(){return _0x404f95;};return a101_0x31ff();}
@@ -1 +1 @@
1
- function a102_0x14c3(_0x34def0,_0xfeab7e){_0x34def0=_0x34def0-0x154;const _0x103e01=a102_0x103e();let _0x14c3fd=_0x103e01[_0x34def0];return _0x14c3fd;}function a102_0x103e(){const _0x3c4934=['read','4326718dukzyl','2EaBpkT','287tCGeTk','1086267jPuTYg','43932xtcOhs','1924340evsawK','302591fhoJBd','468PMbiks','8ndjBgu','write','22768chXGBs','4277760JaZvlS'];a102_0x103e=function(){return _0x3c4934;};return a102_0x103e();}const a102_0x256000=a102_0x14c3;(function(_0x43e233,_0x15ecb7){const _0x72f9bf=a102_0x14c3,_0x3a8fc7=_0x43e233();while(!![]){try{const _0x388c0a=parseInt(_0x72f9bf(0x155))/0x1*(parseInt(_0x72f9bf(0x15d))/0x2)+-parseInt(_0x72f9bf(0x15f))/0x3+parseInt(_0x72f9bf(0x157))/0x4*(-parseInt(_0x72f9bf(0x154))/0x5)+parseInt(_0x72f9bf(0x160))/0x6*(parseInt(_0x72f9bf(0x15e))/0x7)+-parseInt(_0x72f9bf(0x159))/0x8*(-parseInt(_0x72f9bf(0x156))/0x9)+parseInt(_0x72f9bf(0x15a))/0xa+parseInt(_0x72f9bf(0x15c))/0xb;if(_0x388c0a===_0x15ecb7)break;else _0x3a8fc7['push'](_0x3a8fc7['shift']());}catch(_0x24bb58){_0x3a8fc7['push'](_0x3a8fc7['shift']());}}}(a102_0x103e,0x6b70a));export const RISK_LEVEL_VALUES=[a102_0x256000(0x15b),a102_0x256000(0x158),'high-risk-write'];
1
+ function a102_0x2ed9(){const _0x554eaf=['high-risk-write','read','116706IxPOmg','234TZXVMD','3172176EwqbSS','5203295hQbXPO','42822BUGRIL','write','231qkWrbn','90oelPHM','537832cAZpIM','4HVREcO','216YGiUdd','1635084YwOGbe','681087yXdnve'];a102_0x2ed9=function(){return _0x554eaf;};return a102_0x2ed9();}const a102_0x318b43=a102_0x2525;function a102_0x2525(_0x5b05f8,_0x169152){_0x5b05f8=_0x5b05f8-0x152;const _0x2ed9e4=a102_0x2ed9();let _0x252533=_0x2ed9e4[_0x5b05f8];return _0x252533;}(function(_0x1720d2,_0x4e7fdb){const _0x44871e=a102_0x2525,_0x451027=_0x1720d2();while(!![]){try{const _0xc35b6f=-parseInt(_0x44871e(0x15c))/0x1+parseInt(_0x44871e(0x15b))/0x2*(parseInt(_0x44871e(0x155))/0x3)+parseInt(_0x44871e(0x15a))/0x4*(-parseInt(_0x44871e(0x154))/0x5)+parseInt(_0x44871e(0x160))/0x6*(parseInt(_0x44871e(0x157))/0x7)+parseInt(_0x44871e(0x159))/0x8*(parseInt(_0x44871e(0x152))/0x9)+parseInt(_0x44871e(0x158))/0xa*(-parseInt(_0x44871e(0x15d))/0xb)+parseInt(_0x44871e(0x153))/0xc;if(_0xc35b6f===_0x4e7fdb)break;else _0x451027['push'](_0x451027['shift']());}catch(_0x22144f){_0x451027['push'](_0x451027['shift']());}}}(a102_0x2ed9,0xeb0dd));export const RISK_LEVEL_VALUES=[a102_0x318b43(0x15f),a102_0x318b43(0x156),a102_0x318b43(0x15e)];
@@ -1 +1 @@
1
- (function(_0x3e0f2c,_0x23520e){const _0xe7b4f4=a103_0x4494,_0x1fd870=_0x3e0f2c();while(!![]){try{const _0x5035c2=-parseInt(_0xe7b4f4(0xf4))/0x1*(-parseInt(_0xe7b4f4(0xf0))/0x2)+-parseInt(_0xe7b4f4(0xef))/0x3+-parseInt(_0xe7b4f4(0xee))/0x4+-parseInt(_0xe7b4f4(0xf9))/0x5+-parseInt(_0xe7b4f4(0xf1))/0x6*(parseInt(_0xe7b4f4(0xf6))/0x7)+-parseInt(_0xe7b4f4(0xed))/0x8*(-parseInt(_0xe7b4f4(0xfa))/0x9)+parseInt(_0xe7b4f4(0xf8))/0xa;if(_0x5035c2===_0x23520e)break;else _0x1fd870['push'](_0x1fd870['shift']());}catch(_0x262556){_0x1fd870['push'](_0x1fd870['shift']());}}}(a103_0x52ad,0xc3261));import{PRODUCT_CONFIG}from'../constant/product.js';function a103_0x52ad(){const _0x21bbb3=['135664HrTGja','3388336CZraYF','1714734JBIHsN','1463292ufoHBV','8466270cCWOVr','accessKeyCreatePath','user','1qMBCJL','production','7WSvbmg','serviceDomains','29914990mksBxT','894495uaZPBV','45AZeDJt'];a103_0x52ad=function(){return _0x21bbb3;};return a103_0x52ad();}import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';export function getUserAccessKeyCreateUrl(_0x396a17=DEFAULT_LOVRABET_REGION){const _0x3d01d0=a103_0x4494,_0x2e8c44=OFFICIAL_ROUTING_PROFILES[_0x396a17][_0x3d01d0(0xf7)][_0x3d01d0(0xf5)][_0x3d01d0(0xf3)];return''+_0x2e8c44+PRODUCT_CONFIG[_0x3d01d0(0xf2)];}function a103_0x4494(_0x1f54ad,_0x410e86){_0x1f54ad=_0x1f54ad-0xed;const _0x52ad26=a103_0x52ad();let _0x4494ec=_0x52ad26[_0x1f54ad];return _0x4494ec;}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
1
+ (function(_0x23b123,_0x449698){const _0x22481e=a103_0x3b2f,_0x5ac092=_0x23b123();while(!![]){try{const _0x328c7c=parseInt(_0x22481e(0x77))/0x1+-parseInt(_0x22481e(0x7e))/0x2*(parseInt(_0x22481e(0x80))/0x3)+parseInt(_0x22481e(0x79))/0x4+-parseInt(_0x22481e(0x81))/0x5*(parseInt(_0x22481e(0x7d))/0x6)+parseInt(_0x22481e(0x7c))/0x7*(parseInt(_0x22481e(0x76))/0x8)+-parseInt(_0x22481e(0x82))/0x9+-parseInt(_0x22481e(0x7b))/0xa*(parseInt(_0x22481e(0x78))/0xb);if(_0x328c7c===_0x449698)break;else _0x5ac092['push'](_0x5ac092['shift']());}catch(_0x39461f){_0x5ac092['push'](_0x5ac092['shift']());}}}(a103_0x9570,0xadca7));import{PRODUCT_CONFIG}from'../constant/product.js';import{OFFICIAL_ROUTING_PROFILES}from'../generated/official-routing.js';function a103_0x9570(){const _0x14d65c=['8YAAObf','1422901DeQiPU','11DphAoj','4553332XcOHaz','accessKeyCreatePath','6972230ihmcGJ','8340703LVmjig','6yHuYDP','9182pTIwwd','serviceDomains','732suVrpa','456405gfxhIa','10189872NhQSBw'];a103_0x9570=function(){return _0x14d65c;};return a103_0x9570();}import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a103_0x3b2f(_0x7de373,_0x1d4ef3){_0x7de373=_0x7de373-0x76;const _0x9570a8=a103_0x9570();let _0x3b2f15=_0x9570a8[_0x7de373];return _0x3b2f15;}export function getUserAccessKeyCreateUrl(_0x4bd419=DEFAULT_LOVRABET_REGION){const _0x434269=a103_0x3b2f,_0x340cbb=OFFICIAL_ROUTING_PROFILES[_0x4bd419][_0x434269(0x7f)]['production']['user'];return''+_0x340cbb+PRODUCT_CONFIG[_0x434269(0x7a)];}export const USER_ACCESS_KEY_CREATE_URL=getUserAccessKeyCreateUrl();
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a104_0x1bc8f2=a104_0x51ae;(function(_0x2e5286,_0x1c739a){const _0xe1551a=a104_0x51ae,_0x3f0295=_0x2e5286();while(!![]){try{const _0x2cb175=-parseInt(_0xe1551a(0x1ab))/0x1+-parseInt(_0xe1551a(0x1cc))/0x2+-parseInt(_0xe1551a(0x1e6))/0x3*(-parseInt(_0xe1551a(0x1d4))/0x4)+-parseInt(_0xe1551a(0x1cf))/0x5+parseInt(_0xe1551a(0x1c8))/0x6*(parseInt(_0xe1551a(0x1a7))/0x7)+-parseInt(_0xe1551a(0x1ad))/0x8+parseInt(_0xe1551a(0x1c6))/0x9;if(_0x2cb175===_0x1c739a)break;else _0x3f0295['push'](_0x3f0295['shift']());}catch(_0x2496a6){_0x3f0295['push'](_0x3f0295['shift']());}}}(a104_0xe5d5,0x3b4d7));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';function a104_0xe5d5(){const _0x1b333e=['isTTY','accessKey','env','kbDomain','development','project','utf8','3603vECXIA','top-level','routing','region','global','locale','stdin','globalConfig','PAGE_SIZE','production','63bEgARY','setLogPath','error','true','251653scIqbH','trim','3442576XwZlew','daily','FORMAT','message','riskLevel','high-risk-write','skillDomain','empty','VERBOSE','runtimeDomain','defaultApp','projectConfig','online','stringify','format','some','code','skillHubDomain','find','kbServiceDomain','values','apiDomain','stdout','nonInteractive','write','10901511QpVMKG','EPERM','71166eukfoc','join','EACCES','raw','862580MibxfO','pageSize','cwd','1340575OOmCDr','argv','apps','newConfigFileName','string','1020IvQZvl','app','missing','agentDomain','./constant/domain.js','appcode','parse','userDomain','host','setRawMode','explicit'];a104_0xe5d5=function(){return _0x1b333e;};return a104_0xe5d5();}import{redactCommandArgv}from'./utils/redaction.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';function a104_0x51ae(_0x2780e9,_0x268f05){_0x2780e9=_0x2780e9-0x19e;const _0xe5d5f5=a104_0xe5d5();let _0x51ae34=_0xe5d5f5[_0x2780e9];return _0x51ae34;}import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';import{normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG['configFileNames'];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a104_0x1bc8f2(0x1d2)];function resolveConfigPath(_0x1d97e5){for(const _0x2c6ae2 of CONFIG_NAMES){const _0x4c609e=resolve(_0x1d97e5,_0x2c6ae2);if(existsSync(_0x4c609e))return _0x4c609e;}return undefined;}export function resolveWriteConfigPath(_0x280476){const _0x5bb15f=a104_0x1bc8f2,_0x237671=_0x280476==='project'?process[_0x5bb15f(0x1ce)]():homedir(),_0x5e227f=resolveConfigPath(_0x237671);return _0x5e227f??resolve(_0x237671,NEW_CONFIG_NAME);}export function readConfigFile(_0x1c42e){try{if(existsSync(_0x1c42e)){const _0x338611=readFileSync(_0x1c42e,{'encoding':'utf8'});if(_0x338611){const _0x419ff5=JSON['parse'](_0x338611);return migrateOnlineEnv(_0x1c42e,_0x419ff5),_0x419ff5;}}}catch{}return{};}function migrateOnlineEnv(_0x29a3c4,_0x21e970){const _0x53ab5f=a104_0x1bc8f2;let _0x171963=![];_0x21e970[_0x53ab5f(0x1e1)]===_0x53ab5f(0x1b9)&&(_0x21e970[_0x53ab5f(0x1e1)]=_0x53ab5f(0x1a6),_0x171963=!![]);if(_0x21e970[_0x53ab5f(0x1d1)]&&typeof _0x21e970[_0x53ab5f(0x1d1)]==='object')for(const _0x2928a3 of Object[_0x53ab5f(0x1c1)](_0x21e970[_0x53ab5f(0x1d1)])){_0x2928a3&&_0x2928a3[_0x53ab5f(0x1e1)]===_0x53ab5f(0x1b9)&&(_0x2928a3[_0x53ab5f(0x1e1)]=_0x53ab5f(0x1a6),_0x171963=!![]);}if(_0x171963)try{writeConfigFile(_0x29a3c4,_0x21e970);}catch{}}export function writeConfigFile(_0x7cb6d1,_0x3e825c){const _0x312ea9=a104_0x1bc8f2,_0x1f0991=dirname(_0x7cb6d1);!existsSync(_0x1f0991)&&mkdirSync(_0x1f0991,{'recursive':!![]});const _0x82d9d1=_0x7cb6d1+'.tmp';try{writeFileSync(_0x82d9d1,JSON[_0x312ea9(0x1ba)](_0x3e825c,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x82d9d1,_0x7cb6d1);}catch(_0x4f0942){if(_0x4f0942[_0x312ea9(0x1bd)]===_0x312ea9(0x1c7)||_0x4f0942[_0x312ea9(0x1bd)]==='EXDEV'||_0x4f0942[_0x312ea9(0x1bd)]===_0x312ea9(0x1ca)){writeFileSync(_0x7cb6d1,JSON[_0x312ea9(0x1ba)](_0x3e825c,null,0x2)+'\x0a',{'encoding':_0x312ea9(0x1e5)});try{unlinkSync(_0x82d9d1);}catch{}}else throw _0x4f0942;}}catch(_0x91f02f){try{unlinkSync(_0x82d9d1);}catch{}throw _0x91f02f;}}export function isNonInteractiveMode(_0x128442){const _0x188903=a104_0x1bc8f2;return!!(_0x128442[_0x188903(0x1c4)]||_0x128442['ci']||productEnvNames('CI')[_0x188903(0x1bc)](_0x19d729=>process.env[_0x19d729]===_0x188903(0x1aa))||process.env.CI===_0x188903(0x1aa)||!process[_0x188903(0x1c3)][_0x188903(0x1df)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5a1168=a104_0x1bc8f2;if(!process[_0x5a1168(0x1a3)][_0x5a1168(0x1df)])return![];try{const _0x4b4a3a=process[_0x5a1168(0x1a3)]['isRaw'];return process[_0x5a1168(0x1a3)][_0x5a1168(0x1dd)](!![]),process['stdin']['setRawMode'](_0x4b4a3a??![]),!![];}catch{return![];}}export async function createContext(_0x1cce39){const _0x9c4c47=a104_0x1bc8f2,_0xf064f6=readRawConfig(),_0x31a9fb=buildConfig(_0xf064f6,_0x1cce39);await initGlobalEnvironment(_0x31a9fb);const {getUserDomain:_0x3135c3,getApiDomain:_0x5c964c}=await import(_0x9c4c47(0x1d8)),_0x2d18fc={'apiDomain':_0x5c964c(),'userDomain':_0x3135c3()},_0x580644=await buildAuth(_0x31a9fb);logger[_0x9c4c47(0x1a8)](process[_0x9c4c47(0x1ce)]());const _0x54cf99=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process[_0x9c4c47(0x1d0)]['slice'](0x2))[_0x9c4c47(0x1c9)]('\x20'))[_0x9c4c47(0x1ac)]();logger['setRawCommand'](_0x54cf99);const _0x33d28d=isNonInteractiveMode(_0x1cce39);return{'config':_0x31a9fb,'auth':_0x580644,'logger':logger,'env':_0x2d18fc,'nonInteractive':_0x33d28d};}export function buildConfigFromFlags(_0x20194b){return buildConfig(readRawConfig(),_0x20194b);}export function getLocalAppAliases(_0x53da1f){const _0x46dd43=a104_0x1bc8f2;return _0x53da1f[_0x46dd43(0x1d1)]&&typeof _0x53da1f[_0x46dd43(0x1d1)]==='object'?_0x53da1f[_0x46dd43(0x1d1)]:{};}export function resolveLocalAppAliasCode(_0x3c5c63,_0x593961){const _0x46c072=a104_0x1bc8f2;if(!_0x593961)return undefined;const _0x337209=getLocalAppAliases(_0x3c5c63)[_0x593961],_0x5db2b3=_0x337209?.[_0x46c072(0x1d9)];return typeof _0x5db2b3===_0x46c072(0x1d3)&&_0x5db2b3['trim']()?_0x5db2b3[_0x46c072(0x1ac)]():undefined;}export function readAppCodeFromConfig(){const _0x8511b1=a104_0x1bc8f2,_0xb84038=readRawConfig(),_0x208107=_0xb84038[_0x8511b1(0x1d9)]??_0xb84038[_0x8511b1(0x1d5)];if(typeof _0x208107==='string'&&_0x208107[_0x8511b1(0x1ac)]())return _0x208107[_0x8511b1(0x1ac)]();const _0x52cce7=resolveLocalAppAliasCode(_0xb84038,typeof _0xb84038[_0x8511b1(0x1b7)]===_0x8511b1(0x1d3)?_0xb84038['defaultApp']:undefined);if(_0x52cce7)return _0x52cce7;const _0x478af3=normalizeEnv(String(_0xb84038[_0x8511b1(0x1e1)]||_0x8511b1(0x1a6))),_0x1f2ad6=isDaily(_0x478af3)?_0x8511b1(0x1ae):isDev(_0x478af3)?'development':_0x8511b1(0x1a6),_0x2597ea=resolveCachedAppCode(typeof _0xb84038[_0x8511b1(0x1b7)]===_0x8511b1(0x1d3)?_0xb84038[_0x8511b1(0x1b7)]:undefined,_0x1f2ad6,typeof _0xb84038['accessKey']===_0x8511b1(0x1d3)?_0xb84038[_0x8511b1(0x1e0)]:undefined);if(_0x2597ea)return _0x2597ea;const _0x4b7a7b=Object['values'](getLocalAppAliases(_0xb84038))[_0x8511b1(0x1bf)](_0x5c0a64=>_0x5c0a64?.['appcode']);return typeof _0x4b7a7b?.['appcode']===_0x8511b1(0x1d3)&&_0x4b7a7b['appcode'][_0x8511b1(0x1ac)]()?_0x4b7a7b[_0x8511b1(0x1d9)][_0x8511b1(0x1ac)]():undefined;}export function readScopedConfig(_0x11c91e){const _0x4e3d42=a104_0x1bc8f2,_0x169e8b=_0x11c91e[_0x4e3d42(0x1a1)]?_0x4e3d42(0x1a1):_0x4e3d42(0x1e4);return readConfigFile(resolveWriteConfigPath(_0x169e8b));}export function writeScopedConfig(_0x467915,_0x20a3c8){const _0x1ec6c6=a104_0x1bc8f2,_0x1bd53f=_0x20a3c8[_0x1ec6c6(0x1a1)]?_0x1ec6c6(0x1a1):_0x1ec6c6(0x1e4);writeConfigFile(resolveWriteConfigPath(_0x1bd53f),_0x467915);}export async function initGlobalEnvironment(_0x39e482){const _0xeaaf6e=a104_0x1bc8f2,{initEnv:_0x4e481b}=await import('./constant/env.js');_0x4e481b(_0x39e482[_0xeaaf6e(0x1e1)]);const {initDomains:_0x40c6f9}=await import('./constant/domain.js'),_0x1f09ed=resolveEnterpriseRoutingConfig(_0x39e482[_0xeaaf6e(0x1cb)][_0xeaaf6e(0x19f)]),_0x24608d=[_0xeaaf6e(0x1c2),_0xeaaf6e(0x1dc),_0xeaaf6e(0x1db),'runtimeDomain',_0xeaaf6e(0x1b3),_0xeaaf6e(0x1be),_0xeaaf6e(0x1d7),'platformDomain',_0xeaaf6e(0x1e2),'kbServiceDomain'],_0x404578=_0x1f09ed!==undefined||_0x24608d[_0xeaaf6e(0x1bc)](_0x532c97=>Object['prototype']['hasOwnProperty']['call'](_0x39e482['raw'],_0x532c97));_0x40c6f9({'apiDomain':_0x1f09ed?_0x1f09ed[_0xeaaf6e(0x1c2)]:_0x39e482[_0xeaaf6e(0x1cb)][_0xeaaf6e(0x1c2)]||_0x39e482[_0xeaaf6e(0x1cb)][_0xeaaf6e(0x1dc)]||undefined,'userDomain':_0x1f09ed?_0x1f09ed['userDomain']:_0x39e482[_0xeaaf6e(0x1cb)]['userDomain']||undefined,'runtimeDomain':_0x1f09ed?_0x1f09ed[_0xeaaf6e(0x1b6)]:_0x39e482[_0xeaaf6e(0x1cb)]['runtimeDomain']||undefined,'skillDomain':_0x1f09ed?_0x1f09ed[_0xeaaf6e(0x1b3)]:_0x39e482[_0xeaaf6e(0x1cb)][_0xeaaf6e(0x1b3)]||_0x39e482[_0xeaaf6e(0x1cb)]['skillHubDomain']||_0x39e482[_0xeaaf6e(0x1cb)][_0xeaaf6e(0x1d7)]||_0x39e482[_0xeaaf6e(0x1cb)]['platformDomain']||undefined,'kbServiceDomain':_0x1f09ed?_0x1f09ed['kbServiceDomain']:typeof _0x39e482[_0xeaaf6e(0x1cb)][_0xeaaf6e(0x1c0)]===_0xeaaf6e(0x1d3)&&_0x39e482[_0xeaaf6e(0x1cb)][_0xeaaf6e(0x1c0)][_0xeaaf6e(0x1ac)]()?_0x39e482[_0xeaaf6e(0x1cb)]['kbServiceDomain']:undefined,'allowOfficialKbServiceDefault':!_0x404578,'region':normalizeLovrabetRegion(_0x39e482[_0xeaaf6e(0x1cb)][_0xeaaf6e(0x1a0)])});}export function getProjectConfigPath(){const _0x372526=a104_0x1bc8f2;return resolveConfigPath(process[_0x372526(0x1ce)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x4815ff){const _0x3120f0=a104_0x1bc8f2;if(!existsSync(_0x4815ff))return{'status':_0x3120f0(0x1d6)};try{const _0xf84a99=readFileSync(_0x4815ff,{'encoding':_0x3120f0(0x1e5)});if(!_0xf84a99?.[_0x3120f0(0x1ac)]())return{'status':_0x3120f0(0x1b4)};const _0x12de9=JSON[_0x3120f0(0x1da)](_0xf84a99);return{'status':'ok','data':_0x12de9};}catch(_0x338d30){return{'status':_0x3120f0(0x1a9),'message':_0x338d30 instanceof Error?_0x338d30[_0x3120f0(0x1b0)]:String(_0x338d30)};}}export function loadRawConfigLayers(_0x22953e){const _0x3a2288=a104_0x1bc8f2;let _0x2bbe83={},_0x4c3ce9={},_0x200ac8,_0x46ca14;try{_0x200ac8=resolveConfigPath(homedir());if(_0x200ac8){const _0x3ae887=readFileSync(_0x200ac8,{'encoding':'utf8'});if(_0x3ae887)_0x2bbe83=JSON[_0x3a2288(0x1da)](_0x3ae887);}}catch{}try{const _0x2a0233=_0x22953e||process[_0x3a2288(0x1ce)]();_0x46ca14=resolveConfigPath(_0x2a0233);if(_0x46ca14){const _0x2f56f6=readFileSync(_0x46ca14,{'encoding':_0x3a2288(0x1e5)});if(_0x2f56f6)_0x4c3ce9=JSON[_0x3a2288(0x1da)](_0x2f56f6);}}catch{}return{'globalPath':_0x200ac8,'projectPath':_0x46ca14,'globalConfig':_0x2bbe83,'projectConfig':_0x4c3ce9};}function mergeRawConfigLayers(_0x45a51d){const _0x9140c5=a104_0x1bc8f2,{globalConfig:_0x299cba,projectConfig:_0x120eaf}=_0x45a51d,_0x20b367={..._0x299cba,..._0x120eaf};delete _0x20b367['inherit'];if(_0x9140c5(0x1b7)in _0x120eaf)_0x20b367[_0x9140c5(0x1b7)]=_0x120eaf[_0x9140c5(0x1b7)];else _0x299cba[_0x9140c5(0x1b7)]&&(_0x20b367[_0x9140c5(0x1b7)]=_0x299cba[_0x9140c5(0x1b7)]);return _0x20b367;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x5e7222){return mergeRawConfigLayers(loadRawConfigLayers(_0x5e7222));}export function readRawConfigWithLayers(_0x5f43f1){const _0x1200e3=loadRawConfigLayers(_0x5f43f1);return{'config':mergeRawConfigLayers(_0x1200e3),'layers':_0x1200e3};}export function resolveDefaultAppSource(_0x104c97){const _0xa82879=a104_0x1bc8f2;if(_0xa82879(0x1b7)in _0x104c97[_0xa82879(0x1b8)])return _0xa82879(0x1e4);if(_0x104c97[_0xa82879(0x1a4)]['defaultApp'])return'global';return null;}function buildConfig(_0x5648fd,_0x57fc82){const _0x49eddf=a104_0x1bc8f2,_0xdf8d7a=_0x5648fd[_0x49eddf(0x1b7)]||undefined,_0x33ba96=_0x57fc82[_0x49eddf(0x1d5)]||env('APP')||undefined,_0x4e8203=_0x33ba96||_0xdf8d7a||undefined,_0x18490f=env('ACCESS_KEY')||_0x5648fd[_0x49eddf(0x1e0)]||undefined,_0xab8c9b=_0x57fc82[_0x49eddf(0x1e1)]||env('ENV')||_0x5648fd[_0x49eddf(0x1e1)]||DEFAULT_CONFIG_VALUES[_0x49eddf(0x1e1)],_0x3d1530=normalizeEnv(String(_0xab8c9b)),_0x345b8b=isDaily(_0x3d1530)?_0x49eddf(0x1ae):isDev(_0x3d1530)?_0x49eddf(0x1e3):_0x49eddf(0x1a6),_0x3096cc=typeof _0x57fc82[_0x49eddf(0x1d9)]===_0x49eddf(0x1d3)?_0x57fc82[_0x49eddf(0x1d9)]:undefined,_0x4c5100=env('APPCODE'),_0xff01eb=_0x33ba96?undefined:_0x5648fd[_0x49eddf(0x1d9)]||_0x5648fd[_0x49eddf(0x1d5)]||undefined,_0x40177a=_0x33ba96||(_0xff01eb?undefined:_0xdf8d7a),_0xbd6f7e=resolveLocalAppAliasCode(_0x5648fd,_0x40177a),_0x25c41c=resolveCachedAppCode(_0x40177a,_0x345b8b,_0x18490f),_0x59546a=_0x3096cc||_0x4c5100||_0xff01eb||_0xbd6f7e||_0x25c41c||undefined,_0x1a5539=_0x3096cc?_0x49eddf(0x1de):_0x4c5100?'env':_0xff01eb?_0x49eddf(0x19e):_0xbd6f7e?'local-alias':_0x25c41c?'cache':undefined,_0x1606f9=_0x5648fd[_0x49eddf(0x1a2)]||DEFAULT_CONFIG_VALUES['locale'],_0x2983e4=undefined,_0x331cd0=_0x57fc82[_0x49eddf(0x1bb)]||env(_0x49eddf(0x1af))||_0x5648fd[_0x49eddf(0x1bb)],_0x19a2cf=normalizeLegacyOutputFormat(_0x331cd0),_0x4a31c0=env(_0x49eddf(0x1a5))||_0x5648fd[_0x49eddf(0x1cd)],_0x47bc6d=_0x4a31c0?Number(_0x4a31c0)||undefined:undefined,_0x12d25f=_0x5648fd['riskLevel'],_0x37403e=_0x12d25f==='read'||_0x12d25f===_0x49eddf(0x1c5)||_0x12d25f===_0x49eddf(0x1b2)?_0x12d25f:DEFAULT_CONFIG_VALUES[_0x49eddf(0x1b1)],_0x16f67f=_0x5648fd['nativeToolAvailable']===!![],_0x2d2b9e=env(_0x49eddf(0x1b5)),_0x15bf09=_0x2d2b9e==='1'||_0x2d2b9e===_0x49eddf(0x1aa);return{'appCode':typeof _0x59546a===_0x49eddf(0x1d3)&&_0x59546a['trim']()?_0x59546a['trim']():undefined,'appCodeSource':_0x1a5539,'env':_0x345b8b,'locale':_0x1606f9,'cookie':_0x2983e4,'accessKey':_0x18490f,'format':_0x19a2cf,'pageSize':_0x47bc6d,'riskLevel':_0x37403e,'nativeToolAvailable':_0x16f67f,'verbose':_0x15bf09,'defaultApp':_0xdf8d7a,'currentApp':typeof _0x4e8203===_0x49eddf(0x1d3)?_0x4e8203:undefined,'raw':_0x5648fd};}function env(_0x2d3214){return productEnv(_0x2d3214);}async function buildAuth(_0x5bbbf5){const _0x4a9f0d=a104_0x1bc8f2,_0x248d61='',_0xeed610=!!_0x5bbbf5[_0x4a9f0d(0x1e0)];return{'cookie':_0x248d61,'isLoggedIn':_0xeed610,async 'getOrLogin'(){if(_0xeed610)return _0x248d61;throw CliErrors['authRequired']();}};}
1
+ const a104_0x39b36c=a104_0x4592;function a104_0x20f7(){const _0x5a665a=['296wjWQnR','parse','cwd','app','hasOwnProperty','195070IPtlLE','userDomain','apiDomain','string','EPERM','production','online','slice','273368PGntcV','stdin','63782IggkVn','join','APP','locale','kbDomain','stringify','33BlpRUo','development','env','true','configFileNames','code','object','appcode','PAGE_SIZE','cache','utf8','project','./constant/domain.js','raw','7357obKuaG','skillDomain','kbServiceDomain','4ISvUsx','globalConfig','find','some','isTTY','1008621sDsipP','values','newConfigFileName','empty','395jNFyrp','daily','stdout','APPCODE','top-level','runtimeDomain','accessKey','prototype','message','ACCESS_KEY','local-alias','setRawMode','global','routing','.tmp','defaultApp','2427147vQvymD','error','agentDomain','setLogPath','projectConfig','format','apps','./constant/env.js','write','trim','EACCES','2526jTitAC','high-risk-write','EXDEV','host','region','authRequired'];a104_0x20f7=function(){return _0x5a665a;};return a104_0x20f7();}(function(_0xb5f4ee,_0x55cc8f){const _0x45b044=a104_0x4592,_0x3c8967=_0xb5f4ee();while(!![]){try{const _0x418924=parseInt(_0x45b044(0xd8))/0x1+parseInt(_0x45b044(0xda))/0x2+-parseInt(_0x45b044(0xa6))/0x3*(parseInt(_0x45b044(0xa1))/0x4)+parseInt(_0x45b044(0xaa))/0x5*(parseInt(_0x45b044(0xc5))/0x6)+-parseInt(_0x45b044(0x9e))/0x7*(parseInt(_0x45b044(0xcb))/0x8)+parseInt(_0x45b044(0xba))/0x9+-parseInt(_0x45b044(0xd0))/0xa*(parseInt(_0x45b044(0xe0))/0xb);if(_0x418924===_0x55cc8f)break;else _0x3c8967['push'](_0x3c8967['shift']());}catch(_0x1c1c10){_0x3c8967['push'](_0x3c8967['shift']());}}}(a104_0x20f7,0x2a9fa));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{redactCommandArgv}from'./utils/redaction.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';import{normalizeLovrabetRegion}from'./constant/region.js';import{resolveEnterpriseRoutingConfig}from'./config/domain-config.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=PRODUCT_CONFIG[a104_0x39b36c(0xe4)];export const NEW_CONFIG_NAME=PRODUCT_CONFIG[a104_0x39b36c(0xa8)];function resolveConfigPath(_0x5a603c){for(const _0x4c9f7f of CONFIG_NAMES){const _0x256c30=resolve(_0x5a603c,_0x4c9f7f);if(existsSync(_0x256c30))return _0x256c30;}return undefined;}export function resolveWriteConfigPath(_0x2daf63){const _0x5dbb56=a104_0x39b36c,_0x7a3cd4=_0x2daf63===_0x5dbb56(0x9b)?process[_0x5dbb56(0xcd)]():homedir(),_0x52d438=resolveConfigPath(_0x7a3cd4);return _0x52d438??resolve(_0x7a3cd4,NEW_CONFIG_NAME);}export function readConfigFile(_0x3b3fdd){const _0x51f7b5=a104_0x39b36c;try{if(existsSync(_0x3b3fdd)){const _0x280b72=readFileSync(_0x3b3fdd,{'encoding':_0x51f7b5(0x9a)});if(_0x280b72){const _0x511aab=JSON['parse'](_0x280b72);return migrateOnlineEnv(_0x3b3fdd,_0x511aab),_0x511aab;}}}catch{}return{};}function migrateOnlineEnv(_0x32ba67,_0x1d834a){const _0x446aed=a104_0x39b36c;let _0x1dfdc7=![];_0x1d834a['env']===_0x446aed(0xd6)&&(_0x1d834a[_0x446aed(0xe2)]=_0x446aed(0xd5),_0x1dfdc7=!![]);if(_0x1d834a[_0x446aed(0xc0)]&&typeof _0x1d834a[_0x446aed(0xc0)]===_0x446aed(0xe6))for(const _0x1a6b25 of Object[_0x446aed(0xa7)](_0x1d834a[_0x446aed(0xc0)])){_0x1a6b25&&_0x1a6b25[_0x446aed(0xe2)]===_0x446aed(0xd6)&&(_0x1a6b25['env']='production',_0x1dfdc7=!![]);}if(_0x1dfdc7)try{writeConfigFile(_0x32ba67,_0x1d834a);}catch{}}export function writeConfigFile(_0x1fb0b7,_0x1e9d91){const _0x203209=a104_0x39b36c,_0x1b205b=dirname(_0x1fb0b7);!existsSync(_0x1b205b)&&mkdirSync(_0x1b205b,{'recursive':!![]});const _0x5971e7=_0x1fb0b7+_0x203209(0xb8);try{writeFileSync(_0x5971e7,JSON[_0x203209(0xdf)](_0x1e9d91,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x5971e7,_0x1fb0b7);}catch(_0x495d36){if(_0x495d36['code']===_0x203209(0xd4)||_0x495d36[_0x203209(0xe5)]===_0x203209(0xc7)||_0x495d36[_0x203209(0xe5)]===_0x203209(0xc4)){writeFileSync(_0x1fb0b7,JSON[_0x203209(0xdf)](_0x1e9d91,null,0x2)+'\x0a',{'encoding':_0x203209(0x9a)});try{unlinkSync(_0x5971e7);}catch{}}else throw _0x495d36;}}catch(_0x203048){try{unlinkSync(_0x5971e7);}catch{}throw _0x203048;}}export function isNonInteractiveMode(_0x4f59c7){const _0x442868=a104_0x39b36c;return!!(_0x4f59c7['nonInteractive']||_0x4f59c7['ci']||productEnvNames('CI')[_0x442868(0xa4)](_0x22bc42=>process.env[_0x22bc42]===_0x442868(0xe3))||process.env.CI===_0x442868(0xe3)||!process[_0x442868(0xac)][_0x442868(0xa5)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x209374=a104_0x39b36c;if(!process[_0x209374(0xd9)][_0x209374(0xa5)])return![];try{const _0x444de2=process[_0x209374(0xd9)]['isRaw'];return process[_0x209374(0xd9)][_0x209374(0xb5)](!![]),process[_0x209374(0xd9)][_0x209374(0xb5)](_0x444de2??![]),!![];}catch{return![];}}export async function createContext(_0x4e95d8){const _0x2fdc18=a104_0x39b36c,_0x1a22c3=readRawConfig(),_0x2daacc=buildConfig(_0x1a22c3,_0x4e95d8);await initGlobalEnvironment(_0x2daacc);const {getUserDomain:_0x25e200,getApiDomain:_0x1421b3}=await import(_0x2fdc18(0x9c)),_0x1b91ed={'apiDomain':_0x1421b3(),'userDomain':_0x25e200()},_0x35d2ee=await buildAuth(_0x2daacc);logger[_0x2fdc18(0xbd)](process[_0x2fdc18(0xcd)]());const _0x2e4a44=(CLI_BIN_NAME+'\x20'+redactCommandArgv(process['argv'][_0x2fdc18(0xd7)](0x2))[_0x2fdc18(0xdb)]('\x20'))[_0x2fdc18(0xc3)]();logger['setRawCommand'](_0x2e4a44);const _0x38bf2f=isNonInteractiveMode(_0x4e95d8);return{'config':_0x2daacc,'auth':_0x35d2ee,'logger':logger,'env':_0x1b91ed,'nonInteractive':_0x38bf2f};}export function buildConfigFromFlags(_0x5665bf){return buildConfig(readRawConfig(),_0x5665bf);}export function getLocalAppAliases(_0x236ee1){const _0x110fbe=a104_0x39b36c;return _0x236ee1[_0x110fbe(0xc0)]&&typeof _0x236ee1[_0x110fbe(0xc0)]===_0x110fbe(0xe6)?_0x236ee1[_0x110fbe(0xc0)]:{};}export function resolveLocalAppAliasCode(_0x5a4ded,_0x354068){const _0xe72369=a104_0x39b36c;if(!_0x354068)return undefined;const _0x2e8278=getLocalAppAliases(_0x5a4ded)[_0x354068],_0x561aca=_0x2e8278?.[_0xe72369(0xe7)];return typeof _0x561aca===_0xe72369(0xd3)&&_0x561aca['trim']()?_0x561aca['trim']():undefined;}export function readAppCodeFromConfig(){const _0x36aeca=a104_0x39b36c,_0x38e62d=readRawConfig(),_0x5000da=_0x38e62d[_0x36aeca(0xe7)]??_0x38e62d[_0x36aeca(0xce)];if(typeof _0x5000da===_0x36aeca(0xd3)&&_0x5000da[_0x36aeca(0xc3)]())return _0x5000da[_0x36aeca(0xc3)]();const _0x1ab4ed=resolveLocalAppAliasCode(_0x38e62d,typeof _0x38e62d[_0x36aeca(0xb9)]==='string'?_0x38e62d['defaultApp']:undefined);if(_0x1ab4ed)return _0x1ab4ed;const _0x5e1f69=normalizeEnv(String(_0x38e62d['env']||_0x36aeca(0xd5))),_0x5405ca=isDaily(_0x5e1f69)?_0x36aeca(0xab):isDev(_0x5e1f69)?_0x36aeca(0xe1):_0x36aeca(0xd5),_0x49de05=resolveCachedAppCode(typeof _0x38e62d[_0x36aeca(0xb9)]===_0x36aeca(0xd3)?_0x38e62d[_0x36aeca(0xb9)]:undefined,_0x5405ca,typeof _0x38e62d[_0x36aeca(0xb0)]===_0x36aeca(0xd3)?_0x38e62d[_0x36aeca(0xb0)]:undefined);if(_0x49de05)return _0x49de05;const _0x34b871=Object[_0x36aeca(0xa7)](getLocalAppAliases(_0x38e62d))[_0x36aeca(0xa3)](_0x97d2c=>_0x97d2c?.['appcode']);return typeof _0x34b871?.['appcode']===_0x36aeca(0xd3)&&_0x34b871['appcode']['trim']()?_0x34b871['appcode'][_0x36aeca(0xc3)]():undefined;}export function readScopedConfig(_0x34f3c2){const _0x33ea4a=a104_0x39b36c,_0x209af4=_0x34f3c2[_0x33ea4a(0xb6)]?_0x33ea4a(0xb6):'project';return readConfigFile(resolveWriteConfigPath(_0x209af4));}export function writeScopedConfig(_0x176dee,_0x5bf3eb){const _0x54ec0c=a104_0x39b36c,_0xa8dff6=_0x5bf3eb[_0x54ec0c(0xb6)]?_0x54ec0c(0xb6):_0x54ec0c(0x9b);writeConfigFile(resolveWriteConfigPath(_0xa8dff6),_0x176dee);}export async function initGlobalEnvironment(_0x4e48ab){const _0x188517=a104_0x39b36c,{initEnv:_0xd0855}=await import(_0x188517(0xc1));_0xd0855(_0x4e48ab[_0x188517(0xe2)]);const {initDomains:_0x5197f6}=await import(_0x188517(0x9c)),_0x55f80f=resolveEnterpriseRoutingConfig(_0x4e48ab['raw'][_0x188517(0xb7)]),_0x53fe89=['apiDomain',_0x188517(0xc8),_0x188517(0xd1),'runtimeDomain','skillDomain','skillHubDomain',_0x188517(0xbc),'platformDomain',_0x188517(0xde),_0x188517(0xa0)],_0xf81472=_0x55f80f!==undefined||_0x53fe89['some'](_0x17bb99=>Object[_0x188517(0xb1)][_0x188517(0xcf)]['call'](_0x4e48ab[_0x188517(0x9d)],_0x17bb99));_0x5197f6({'apiDomain':_0x55f80f?_0x55f80f[_0x188517(0xd2)]:_0x4e48ab[_0x188517(0x9d)][_0x188517(0xd2)]||_0x4e48ab[_0x188517(0x9d)][_0x188517(0xc8)]||undefined,'userDomain':_0x55f80f?_0x55f80f[_0x188517(0xd1)]:_0x4e48ab[_0x188517(0x9d)][_0x188517(0xd1)]||undefined,'runtimeDomain':_0x55f80f?_0x55f80f[_0x188517(0xaf)]:_0x4e48ab[_0x188517(0x9d)][_0x188517(0xaf)]||undefined,'skillDomain':_0x55f80f?_0x55f80f[_0x188517(0x9f)]:_0x4e48ab[_0x188517(0x9d)][_0x188517(0x9f)]||_0x4e48ab[_0x188517(0x9d)]['skillHubDomain']||_0x4e48ab[_0x188517(0x9d)]['agentDomain']||_0x4e48ab[_0x188517(0x9d)]['platformDomain']||undefined,'kbServiceDomain':_0x55f80f?_0x55f80f[_0x188517(0xa0)]:typeof _0x4e48ab[_0x188517(0x9d)][_0x188517(0xa0)]===_0x188517(0xd3)&&_0x4e48ab[_0x188517(0x9d)][_0x188517(0xa0)][_0x188517(0xc3)]()?_0x4e48ab['raw'][_0x188517(0xa0)]:undefined,'allowOfficialKbServiceDefault':!_0xf81472,'region':normalizeLovrabetRegion(_0x4e48ab[_0x188517(0x9d)][_0x188517(0xc9)])});}function a104_0x4592(_0x4ca9a5,_0x2eb146){_0x4ca9a5=_0x4ca9a5-0x9a;const _0x20f788=a104_0x20f7();let _0x4592d3=_0x20f788[_0x4ca9a5];return _0x4592d3;}export function getProjectConfigPath(){const _0x3c8b7e=a104_0x39b36c;return resolveConfigPath(process[_0x3c8b7e(0xcd)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x39c985){const _0x299d47=a104_0x39b36c;if(!existsSync(_0x39c985))return{'status':'missing'};try{const _0xdfe511=readFileSync(_0x39c985,{'encoding':_0x299d47(0x9a)});if(!_0xdfe511?.[_0x299d47(0xc3)]())return{'status':_0x299d47(0xa9)};const _0x570108=JSON[_0x299d47(0xcc)](_0xdfe511);return{'status':'ok','data':_0x570108};}catch(_0x3ed2e6){return{'status':_0x299d47(0xbb),'message':_0x3ed2e6 instanceof Error?_0x3ed2e6[_0x299d47(0xb2)]:String(_0x3ed2e6)};}}export function loadRawConfigLayers(_0x421a65){const _0x296955=a104_0x39b36c;let _0x3222a1={},_0x23214a={},_0x221a57,_0x26f230;try{_0x221a57=resolveConfigPath(homedir());if(_0x221a57){const _0xe81a3d=readFileSync(_0x221a57,{'encoding':_0x296955(0x9a)});if(_0xe81a3d)_0x3222a1=JSON[_0x296955(0xcc)](_0xe81a3d);}}catch{}try{const _0x42bf58=_0x421a65||process['cwd']();_0x26f230=resolveConfigPath(_0x42bf58);if(_0x26f230){const _0x3cf3d7=readFileSync(_0x26f230,{'encoding':'utf8'});if(_0x3cf3d7)_0x23214a=JSON['parse'](_0x3cf3d7);}}catch{}return{'globalPath':_0x221a57,'projectPath':_0x26f230,'globalConfig':_0x3222a1,'projectConfig':_0x23214a};}function mergeRawConfigLayers(_0xc6ade3){const _0xcfd767=a104_0x39b36c,{globalConfig:_0x387754,projectConfig:_0x1777ae}=_0xc6ade3,_0xaef3fc={..._0x387754,..._0x1777ae};delete _0xaef3fc['inherit'];if(_0xcfd767(0xb9)in _0x1777ae)_0xaef3fc[_0xcfd767(0xb9)]=_0x1777ae[_0xcfd767(0xb9)];else _0x387754[_0xcfd767(0xb9)]&&(_0xaef3fc[_0xcfd767(0xb9)]=_0x387754[_0xcfd767(0xb9)]);return _0xaef3fc;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x3b16db){return mergeRawConfigLayers(loadRawConfigLayers(_0x3b16db));}export function readRawConfigWithLayers(_0x47ff7a){const _0x5d9e4d=loadRawConfigLayers(_0x47ff7a);return{'config':mergeRawConfigLayers(_0x5d9e4d),'layers':_0x5d9e4d};}export function resolveDefaultAppSource(_0x59ea8b){const _0x37d03e=a104_0x39b36c;if('defaultApp'in _0x59ea8b[_0x37d03e(0xbe)])return'project';if(_0x59ea8b[_0x37d03e(0xa2)][_0x37d03e(0xb9)])return'global';return null;}function buildConfig(_0x20d0da,_0x5f5a23){const _0x27f268=a104_0x39b36c,_0x1fd48c=_0x20d0da[_0x27f268(0xb9)]||undefined,_0x100450=_0x5f5a23[_0x27f268(0xce)]||env(_0x27f268(0xdc))||undefined,_0x4a638e=_0x100450||_0x1fd48c||undefined,_0x12ba29=env(_0x27f268(0xb3))||_0x20d0da[_0x27f268(0xb0)]||undefined,_0x104da4=_0x5f5a23['env']||env('ENV')||_0x20d0da[_0x27f268(0xe2)]||DEFAULT_CONFIG_VALUES[_0x27f268(0xe2)],_0xb08b68=normalizeEnv(String(_0x104da4)),_0x54736d=isDaily(_0xb08b68)?_0x27f268(0xab):isDev(_0xb08b68)?_0x27f268(0xe1):_0x27f268(0xd5),_0x35c936=typeof _0x5f5a23[_0x27f268(0xe7)]===_0x27f268(0xd3)?_0x5f5a23[_0x27f268(0xe7)]:undefined,_0xbae150=env(_0x27f268(0xad)),_0x21d706=_0x100450?undefined:_0x20d0da[_0x27f268(0xe7)]||_0x20d0da[_0x27f268(0xce)]||undefined,_0x1b66e5=_0x100450||(_0x21d706?undefined:_0x1fd48c),_0x22022c=resolveLocalAppAliasCode(_0x20d0da,_0x1b66e5),_0x3e5b2d=resolveCachedAppCode(_0x1b66e5,_0x54736d,_0x12ba29),_0x296176=_0x35c936||_0xbae150||_0x21d706||_0x22022c||_0x3e5b2d||undefined,_0x15ff3f=_0x35c936?'explicit':_0xbae150?_0x27f268(0xe2):_0x21d706?_0x27f268(0xae):_0x22022c?_0x27f268(0xb4):_0x3e5b2d?_0x27f268(0xe9):undefined,_0xccf485=_0x20d0da[_0x27f268(0xdd)]||DEFAULT_CONFIG_VALUES['locale'],_0x151c38=undefined,_0x232040=_0x5f5a23[_0x27f268(0xbf)]||env('FORMAT')||_0x20d0da['format'],_0x512647=normalizeLegacyOutputFormat(_0x232040),_0x308574=env(_0x27f268(0xe8))||_0x20d0da['pageSize'],_0x1519bb=_0x308574?Number(_0x308574)||undefined:undefined,_0x9a13b5=_0x20d0da['riskLevel'],_0x4d2517=_0x9a13b5==='read'||_0x9a13b5===_0x27f268(0xc2)||_0x9a13b5===_0x27f268(0xc6)?_0x9a13b5:DEFAULT_CONFIG_VALUES['riskLevel'],_0x1488f6=_0x20d0da['nativeToolAvailable']===!![],_0x388b80=env('VERBOSE'),_0xd902f1=_0x388b80==='1'||_0x388b80==='true';return{'appCode':typeof _0x296176===_0x27f268(0xd3)&&_0x296176[_0x27f268(0xc3)]()?_0x296176[_0x27f268(0xc3)]():undefined,'appCodeSource':_0x15ff3f,'env':_0x54736d,'locale':_0xccf485,'cookie':_0x151c38,'accessKey':_0x12ba29,'format':_0x512647,'pageSize':_0x1519bb,'riskLevel':_0x4d2517,'nativeToolAvailable':_0x1488f6,'verbose':_0xd902f1,'defaultApp':_0x1fd48c,'currentApp':typeof _0x4a638e===_0x27f268(0xd3)?_0x4a638e:undefined,'raw':_0x20d0da};}function env(_0xf5802){return productEnv(_0xf5802);}async function buildAuth(_0x35d8e5){const _0x42048e=a104_0x39b36c,_0x19f185='',_0x2f17a9=!!_0x35d8e5[_0x42048e(0xb0)];return{'cookie':_0x19f185,'isLoggedIn':_0x2f17a9,async 'getOrLogin'(){const _0xce5a39=_0x42048e;if(_0x2f17a9)return _0x19f185;throw CliErrors[_0xce5a39(0xca)]();}};}
@@ -496,6 +496,7 @@ export declare function runRuntimeSchedule(appCode: string, scheduleId: string):
496
496
  export declare function listDatasets(appCode: string, options?: {
497
497
  code?: string;
498
498
  name?: string;
499
+ tableName?: string;
499
500
  }): Promise<DatasetItem[]>;
500
501
  /**
501
502
  * Fetches complete dataset driven data by code.
@@ -1 +1 @@
1
- (function(_0x38d3af,_0x12a666){const _0x241913=a105_0x57ca,_0x1e11d8=_0x38d3af();while(!![]){try{const _0x4cf831=-parseInt(_0x241913(0x1cf))/0x1*(parseInt(_0x241913(0x1f1))/0x2)+-parseInt(_0x241913(0x148))/0x3*(parseInt(_0x241913(0x17d))/0x4)+parseInt(_0x241913(0x19f))/0x5*(parseInt(_0x241913(0x219))/0x6)+-parseInt(_0x241913(0x1c1))/0x7+parseInt(_0x241913(0x180))/0x8*(parseInt(_0x241913(0x206))/0x9)+parseInt(_0x241913(0x1b4))/0xa+-parseInt(_0x241913(0x18d))/0xb;if(_0x4cf831===_0x12a666)break;else _0x1e11d8['push'](_0x1e11d8['shift']());}catch(_0x27b0c9){_0x1e11d8['push'](_0x1e11d8['shift']());}}}(a105_0x5888,0x1e6c5));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{createAccessError,readApiErrorCode}from'../framework/access-error.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList,extractPaging}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';import{normalizePositiveSafeInteger}from'../utils/positive-safe-integer.js';let _activeAK;export function setActiveAK(_0xd55514){_activeAK=_0xd55514||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x3daf89){const _0x42c4cf=a105_0x57ca;for(const _0x3f8d25 of _0x3daf89){if(typeof _0x3f8d25===_0x42c4cf(0x202)&&_0x3f8d25[_0x42c4cf(0x1b5)]())return _0x3f8d25['trim']();}return undefined;}async function decodeResponseBody(_0x6f0764){const _0x2f4ed8=a105_0x57ca;if(typeof _0x6f0764[_0x2f4ed8(0x1c3)]===_0x2f4ed8(0x1e5))try{const _0x33a556=await _0x6f0764[_0x2f4ed8(0x1c3)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x33a556),'text':_0x33a556};}catch{return{'isJson':![],'text':_0x33a556[_0x2f4ed8(0x1b5)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0x6f0764[_0x2f4ed8(0x141)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0x4dd588,_0x3437cb,_0x5cf79d){const _0x4f902d=a105_0x57ca,_0x380678=_0x3437cb&&typeof _0x3437cb==='object'?_0x3437cb:{},_0x1dc5dc=[_0x380678[_0x4f902d(0x1e7)],_0x380678['code']][_0x4f902d(0x149)](_0x3f1ab4=>Number(_0x3f1ab4)===0x1ad),_0x262f41=createRateLimitError({'status':_0x4dd588['status']===0x1ad?_0x4dd588[_0x4f902d(0x1e7)]:_0x1dc5dc??_0x4dd588[_0x4f902d(0x1e7)],'errorCode':firstString(_0x380678['errorCode'],typeof _0x380678['code']===_0x4f902d(0x202)?_0x380678[_0x4f902d(0x204)]:undefined),'message':firstString(_0x380678[_0x4f902d(0x194)],_0x380678[_0x4f902d(0x167)],_0x380678[_0x4f902d(0x1fc)],_0x5cf79d),'retryAfter':readRetryAfter(_0x4dd588[_0x4f902d(0x20d)])??readRetryAfterSeconds(_0x3437cb)});if(_0x262f41)throw _0x262f41;}async function apiRequest(_0x5b9f5a,_0x3168b6={}){const _0x17c9c7=a105_0x57ca,{method:method=_0x17c9c7(0x1ed),body:_0x43599f,headers:headers={},timeout:timeout=0x7530,domain:domain=_0x17c9c7(0x184),rejectRedirects:rejectRedirects=![]}=_0x3168b6,_0x17e870=_activeAK,_0x44eb28=domain===_0x17c9c7(0x216)?getApiDomain():getRuntimeDomain();if(!_0x17e870)throw CliErrors[_0x17c9c7(0x18c)](_0x17c9c7(0x1cd)+PRODUCT_CONFIG[_0x17c9c7(0x1a9)]+'.');const _0x309f53=''+_0x44eb28+_0x5b9f5a,_0x5d668a={'X-User-AK':_0x17e870},_0x4425c9=new AbortController(),_0x4842e4=setTimeout(()=>_0x4425c9[_0x17c9c7(0x209)](),timeout);try{const _0x2f10d7=await fetch(_0x309f53,{'method':method,...rejectRedirects?{'redirect':'error'}:{},'headers':{'Content-Type':'application/json','X-Invoke-Source':PRODUCT_CONFIG[_0x17c9c7(0x1d7)],..._0x5d668a,...headers},'body':_0x43599f?JSON[_0x17c9c7(0x208)](_0x43599f):undefined,'signal':_0x4425c9['signal']}),_0x59d1d9=await decodeResponseBody(_0x2f10d7);if(!_0x59d1d9[_0x17c9c7(0x20e)]){throwIfRateLimited(_0x2f10d7,undefined,_0x59d1d9['text']);throw CliErrors['apiError'](_0x17c9c7(0x1c2)+_0x2f10d7[_0x17c9c7(0x1e7)]+')',_0x2f10d7['status']>=0x190?_0x17c9c7(0x17a):undefined);}const _0x1ffb44=_0x59d1d9[_0x17c9c7(0x146)];throwIfRateLimited(_0x2f10d7,_0x1ffb44);if(!_0x2f10d7['ok']||_0x1ffb44[_0x17c9c7(0x1ee)]===![]){const _0x13c625=createAccessError(_0x1ffb44);if(_0x13c625)throw _0x13c625;throw CliErrors['apiError'](_0x1ffb44[_0x17c9c7(0x194)]||_0x1ffb44[_0x17c9c7(0x167)]||_0x1ffb44[_0x17c9c7(0x1fc)]||_0x17c9c7(0x1b7)+_0x2f10d7[_0x17c9c7(0x1e7)],readApiErrorCode(_0x1ffb44)?_0x17c9c7(0x1f8)+readApiErrorCode(_0x1ffb44):undefined);}return _0x1ffb44;}catch(_0x54865e){if(_0x54865e instanceof Error&&_0x54865e['name']===_0x17c9c7(0x19e))throw CliErrors[_0x17c9c7(0x16e)](_0x17c9c7(0x153)+_0x309f53);throw _0x54865e;}finally{clearTimeout(_0x4842e4);}}async function apiBinaryRequest(_0x4d813d,_0x522841={}){const _0x3581c4=a105_0x57ca,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x522841,_0x553a6f=_activeAK,_0x190fb5=getRuntimeDomain();if(!_0x553a6f)throw CliErrors['authRequired'](_0x3581c4(0x1cd)+PRODUCT_CONFIG[_0x3581c4(0x1a9)]+'.');const _0x3251b2=''+_0x190fb5+_0x4d813d,_0x4e834e=new AbortController(),_0x1a03c6=setTimeout(()=>_0x4e834e[_0x3581c4(0x209)](),timeout);try{const _0x1a1b88=await fetch(_0x3251b2,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3581c4(0x1d7)],'X-User-AK':_0x553a6f,...headers},'signal':_0x4e834e[_0x3581c4(0x210)]});if(!_0x1a1b88['ok']){const _0x54c9c4=await decodeResponseBody(_0x1a1b88),_0x2ac526=_0x54c9c4[_0x3581c4(0x146)]&&typeof _0x54c9c4['data']===_0x3581c4(0x1c5)?_0x54c9c4[_0x3581c4(0x146)]:{},_0x42be7a=firstString(_0x2ac526[_0x3581c4(0x194)],_0x2ac526['message'],_0x2ac526[_0x3581c4(0x1da)],_0x54c9c4[_0x3581c4(0x1c3)]);throwIfRateLimited(_0x1a1b88,_0x54c9c4['data'],_0x42be7a);const _0x4f108c=createAccessError(_0x54c9c4[_0x3581c4(0x146)]);if(_0x4f108c)throw _0x4f108c;throw CliErrors[_0x3581c4(0x16e)](_0x42be7a||_0x3581c4(0x1b7)+_0x1a1b88[_0x3581c4(0x1e7)],_0x3581c4(0x165)+_0x3251b2);}return Buffer[_0x3581c4(0x1ac)](await _0x1a1b88[_0x3581c4(0x17e)]());}catch(_0x388019){if(_0x388019 instanceof Error&&_0x388019[_0x3581c4(0x14a)]===_0x3581c4(0x19e))throw CliErrors[_0x3581c4(0x16e)](_0x3581c4(0x153)+_0x3251b2);throw _0x388019;}finally{clearTimeout(_0x1a03c6);}}async function apiFormRequest(_0x251707,_0x421af9,_0x36aabc={}){const _0x2754fa=a105_0x57ca,{timeout:timeout=0x7530}=_0x36aabc,_0x2e26ff=_activeAK,_0x74fd3d=getRuntimeDomain();if(!_0x2e26ff)throw CliErrors[_0x2754fa(0x18c)](_0x2754fa(0x1cd)+PRODUCT_CONFIG[_0x2754fa(0x1a9)]+'.');const _0x1a7342=''+_0x74fd3d+_0x251707,_0xa82ff7=new AbortController(),_0x54448e=setTimeout(()=>_0xa82ff7[_0x2754fa(0x209)](),timeout);try{const _0x5c622c=await fetch(_0x1a7342,{'method':_0x2754fa(0x159),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2754fa(0x1d7)],'X-User-AK':_0x2e26ff},'body':_0x421af9,..._0x36aabc['rejectRedirects']?{'redirect':_0x2754fa(0x1e2)}:{},'signal':_0xa82ff7[_0x2754fa(0x210)]}),_0x4f3a7c=await decodeResponseBody(_0x5c622c);if(!_0x4f3a7c[_0x2754fa(0x20e)]){throwIfRateLimited(_0x5c622c,undefined,_0x4f3a7c[_0x2754fa(0x1c3)]);throw CliErrors[_0x2754fa(0x16e)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x5c622c[_0x2754fa(0x1e7)]+')',_0x5c622c[_0x2754fa(0x1e7)]>=0x190?_0x2754fa(0x17a):undefined);}const _0xdfb957=_0x4f3a7c[_0x2754fa(0x146)];throwIfRateLimited(_0x5c622c,_0xdfb957);if(!_0x5c622c['ok']||_0xdfb957[_0x2754fa(0x1ee)]===![]){const _0x90abb4=createAccessError(_0xdfb957);if(_0x90abb4)throw _0x90abb4;throw CliErrors[_0x2754fa(0x16e)](_0xdfb957[_0x2754fa(0x194)]||_0xdfb957[_0x2754fa(0x167)]||_0x2754fa(0x1b7)+_0x5c622c[_0x2754fa(0x1e7)],readApiErrorCode(_0xdfb957)?_0x2754fa(0x1f8)+readApiErrorCode(_0xdfb957):undefined);}return _0xdfb957;}catch(_0x365073){if(_0x365073 instanceof Error&&_0x365073[_0x2754fa(0x14a)]===_0x2754fa(0x19e))throw CliErrors[_0x2754fa(0x16e)](_0x2754fa(0x153)+_0x1a7342);throw _0x365073;}finally{clearTimeout(_0x54448e);}}async function toolboxRequest(_0x331ac3,_0x14433d,_0x199568={}){const _0x241c2d=a105_0x57ca,{method:method=_0x241c2d(0x1ed),headers:headers={},timeout:timeout=0x7530}=_0x199568,_0x72f1f1=_activeAK;if(!_0x72f1f1)throw CliErrors[_0x241c2d(0x18c)](_0x241c2d(0x1cd)+PRODUCT_CONFIG[_0x241c2d(0x1a9)]+'.');const _0x5824ca=getApiDomain()[_0x241c2d(0x1db)](/\/$/,''),_0x47f614=new URL(_0x331ac3,_0x5824ca+_0x241c2d(0x203));if(_0x14433d)for(const [_0x5feefc,_0x1024bf]of Object['entries'](_0x14433d)){_0x1024bf!==undefined&&_0x1024bf!==null&&_0x47f614[_0x241c2d(0x1a4)][_0x241c2d(0x1ca)](_0x5feefc,String(_0x1024bf));}const _0x3c0aa8=new AbortController(),_0x3c7258=setTimeout(()=>_0x3c0aa8[_0x241c2d(0x209)](),timeout);try{const _0x3a0370=await fetch(_0x47f614,{'method':method,'headers':{'Content-Type':_0x241c2d(0x15b),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x72f1f1,...headers},'signal':_0x3c0aa8[_0x241c2d(0x210)]}),_0x172a43=await decodeResponseBody(_0x3a0370);if(!_0x172a43[_0x241c2d(0x20e)]){throwIfRateLimited(_0x3a0370,undefined,_0x172a43['text']);throw CliErrors[_0x241c2d(0x16e)](_0x241c2d(0x17b)+_0x3a0370['status']+')',_0x3a0370['status']>=0x190?_0x241c2d(0x17a):undefined);}const _0x2abd09=_0x172a43[_0x241c2d(0x146)];throwIfRateLimited(_0x3a0370,_0x2abd09);if(!_0x3a0370['ok']){const _0x5e124f=_0x2abd09&&typeof _0x2abd09===_0x241c2d(0x1c5)?_0x2abd09:{};throw CliErrors['apiError'](_0x5e124f[_0x241c2d(0x194)]||_0x5e124f['message']||'Toolbox\x20API\x20error:\x20'+_0x3a0370[_0x241c2d(0x1e7)],_0x5e124f[_0x241c2d(0x1da)]?_0x241c2d(0x187)+_0x5e124f['errorCode']:undefined);}if(_0x2abd09&&typeof _0x2abd09==='object'&&_0x241c2d(0x1ee)in _0x2abd09&&typeof _0x2abd09[_0x241c2d(0x1ee)]===_0x241c2d(0x181)){const _0x562fef=_0x2abd09;if(!_0x562fef[_0x241c2d(0x1ee)])throw CliErrors['apiError'](_0x562fef[_0x241c2d(0x194)]||_0x562fef[_0x241c2d(0x167)]||'Toolbox\x20API\x20error',_0x562fef[_0x241c2d(0x1da)]?_0x241c2d(0x187)+_0x562fef[_0x241c2d(0x1da)]:undefined);return _0x562fef[_0x241c2d(0x146)];}return _0x2abd09;}catch(_0x43afa8){if(_0x43afa8 instanceof Error&&_0x43afa8[_0x241c2d(0x14a)]===_0x241c2d(0x19e))throw CliErrors[_0x241c2d(0x16e)](_0x241c2d(0x153)+_0x47f614[_0x241c2d(0x1c8)]());throw _0x43afa8;}finally{clearTimeout(_0x3c7258);}}async function skillHubJsonRequest(_0x9e48b,_0x11bc3d={}){const _0x8d08e7=a105_0x57ca,{method:method=_0x8d08e7(0x1ed),query:_0x5c0fbe,body:_0x29aa52,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x11bc3d,_0x2af4d6=_activeAK;if(!_0x2af4d6)throw CliErrors['authRequired'](_0x8d08e7(0x1cd)+PRODUCT_CONFIG[_0x8d08e7(0x1a9)]+'.');const _0x575f46=getSkillDomain()['replace'](/\/$/,''),_0x2fb07b=new URL(_0x9e48b,_0x575f46+'/');if(_0x5c0fbe)for(const [_0x3099d4,_0x2c5ad5]of Object[_0x8d08e7(0x1f5)](_0x5c0fbe)){_0x2c5ad5!==undefined&&_0x2c5ad5!==null&&_0x2fb07b[_0x8d08e7(0x1a4)][_0x8d08e7(0x1ca)](_0x3099d4,String(_0x2c5ad5));}const _0x1b9706=new AbortController(),_0x3da350=setTimeout(()=>_0x1b9706[_0x8d08e7(0x209)](),timeout);try{const _0x388149=await fetch(_0x2fb07b[_0x8d08e7(0x1c8)](),{'method':method,'headers':{'Accept':_0x8d08e7(0x15b),'X-Invoke-Source':PRODUCT_CONFIG[_0x8d08e7(0x1d7)],'X-User-AK':_0x2af4d6,...headers},'body':_0x29aa52,'signal':_0x1b9706['signal']}),_0x4a4406=await decodeResponseBody(_0x388149);if(!_0x4a4406[_0x8d08e7(0x20e)]){if(allowNotFound&&_0x388149[_0x8d08e7(0x1e7)]===0x194)return undefined;throwIfRateLimited(_0x388149,undefined,_0x4a4406[_0x8d08e7(0x1c3)]);throw CliErrors['apiError'](_0x8d08e7(0x1a1)+_0x388149[_0x8d08e7(0x1e7)]+')',_0x388149[_0x8d08e7(0x1e7)]>=0x190?_0x8d08e7(0x17a):undefined);}const _0x3e1fb0=_0x4a4406[_0x8d08e7(0x146)];throwIfRateLimited(_0x388149,_0x3e1fb0);if(allowNotFound&&isSkillHubNotFoundResponse(_0x388149['status'],_0x3e1fb0))return undefined;const _0x5adb6c=!_0x388149['ok']||_0x3e1fb0?.[_0x8d08e7(0x1ee)]===![]||typeof _0x3e1fb0?.['code']===_0x8d08e7(0x171)&&_0x3e1fb0[_0x8d08e7(0x204)]>=0x190;if(_0x5adb6c)throw CliErrors[_0x8d08e7(0x16e)](_0x3e1fb0?.[_0x8d08e7(0x194)]||_0x3e1fb0?.['message']||_0x3e1fb0?.[_0x8d08e7(0x1fc)]||_0x8d08e7(0x1c4)+_0x388149[_0x8d08e7(0x1e7)],_0x3e1fb0?.[_0x8d08e7(0x1da)]?_0x8d08e7(0x1f6)+_0x3e1fb0[_0x8d08e7(0x1da)]:undefined);return _0x3e1fb0?.[_0x8d08e7(0x146)]??_0x3e1fb0;}catch(_0x388d8d){if(_0x388d8d instanceof Error&&_0x388d8d[_0x8d08e7(0x14a)]===_0x8d08e7(0x19e))throw CliErrors[_0x8d08e7(0x16e)](_0x8d08e7(0x153)+_0x2fb07b[_0x8d08e7(0x1c8)]());throw _0x388d8d;}finally{clearTimeout(_0x3da350);}}function isSkillHubNotFoundResponse(_0x24921b,_0x13e286){const _0x2c2b6d=a105_0x57ca;if(_0x24921b===0x194||_0x13e286?.['code']===0x194)return!![];if(_0x24921b!==0x190&&_0x13e286?.['code']!==0x190)return![];const _0x516b0c=[_0x13e286?.[_0x2c2b6d(0x1fc)],_0x13e286?.['message'],_0x13e286?.[_0x2c2b6d(0x194)],_0x13e286?.['error']]['filter'](_0x4a0f23=>typeof _0x4a0f23===_0x2c2b6d(0x202))[_0x2c2b6d(0x16b)]('\x20');return/skill not found\b/i[_0x2c2b6d(0x1e9)](_0x516b0c);}async function skillHubBinaryRequest(_0x47bd5f,_0x14585c={}){const _0x77f956=a105_0x57ca,{query:_0x54e1ce,headers:headers={},timeout:timeout=0x7530}=_0x14585c,_0x13ecf0=_activeAK;if(!_0x13ecf0)throw CliErrors[_0x77f956(0x18c)](_0x77f956(0x1cd)+PRODUCT_CONFIG[_0x77f956(0x1a9)]+'.');const _0x278359=getSkillDomain()[_0x77f956(0x1db)](/\/$/,''),_0x1ba518=new URL(_0x47bd5f,_0x278359+'/');if(_0x54e1ce)for(const [_0xf9c804,_0x5b1489]of Object[_0x77f956(0x1f5)](_0x54e1ce)){_0x5b1489!==undefined&&_0x5b1489!==null&&_0x1ba518[_0x77f956(0x1a4)]['set'](_0xf9c804,String(_0x5b1489));}const _0x7d7673=new AbortController(),_0x1dbad2=setTimeout(()=>_0x7d7673[_0x77f956(0x209)](),timeout);try{const _0x9171f=await fetch(_0x1ba518[_0x77f956(0x1c8)](),{'method':'GET','headers':{'Accept':_0x77f956(0x1b6),'X-Invoke-Source':PRODUCT_CONFIG[_0x77f956(0x1d7)],'X-User-AK':_0x13ecf0,...headers},'signal':_0x7d7673['signal']});if(!_0x9171f['ok']){const _0x1d9f5e=await decodeResponseBody(_0x9171f),_0x16867c=_0x1d9f5e['data']&&typeof _0x1d9f5e[_0x77f956(0x146)]==='object'?_0x1d9f5e['data']:{},_0x54b2ab=firstString(_0x16867c[_0x77f956(0x194)],_0x16867c[_0x77f956(0x167)],_0x16867c[_0x77f956(0x1fc)],_0x16867c[_0x77f956(0x1da)],_0x1d9f5e[_0x77f956(0x1c3)]);throwIfRateLimited(_0x9171f,_0x1d9f5e['data'],_0x54b2ab);throw CliErrors['apiError'](_0x54b2ab||'SkillHub\x20API\x20error:\x20'+_0x9171f[_0x77f956(0x1e7)],_0x77f956(0x165)+_0x1ba518[_0x77f956(0x1c8)]());}return Buffer[_0x77f956(0x1ac)](await _0x9171f['arrayBuffer']());}catch(_0x59a8f7){if(_0x59a8f7 instanceof Error&&_0x59a8f7[_0x77f956(0x14a)]===_0x77f956(0x19e))throw CliErrors[_0x77f956(0x16e)]('Request\x20timeout:\x20'+_0x1ba518['toString']());throw _0x59a8f7;}finally{clearTimeout(_0x1dbad2);}}export async function getBffEndpointContract(_0x6c1a46,_0x357a46){const _0x26e67c=a105_0x57ca;if(_0x357a46===_0x26e67c(0x19d))throw CliErrors[_0x26e67c(0x152)]('Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode='+_0x6c1a46+_0x26e67c(0x156)+_0x357a46);const _0x40bd8f=await apiRequest(_0x26e67c(0x18e)+encodeURIComponent(_0x6c1a46)+'/'+encodeURIComponent(_0x357a46)),_0x3ab112=_0x40bd8f[_0x26e67c(0x146)];if(!_0x3ab112||typeof _0x3ab112!==_0x26e67c(0x1c5)||Array[_0x26e67c(0x1f0)](_0x3ab112)||_0x3ab112[_0x26e67c(0x142)]!==_0x6c1a46||_0x3ab112['functionName']!==_0x357a46)throw CliErrors[_0x26e67c(0x152)](_0x26e67c(0x20c)+_0x6c1a46+',\x20name='+_0x357a46);return{'appCode':_0x3ab112['appCode'],'functionName':_0x3ab112[_0x26e67c(0x151)],'description':_0x3ab112[_0x26e67c(0x1fb)],'version':_0x3ab112['version'],'gmtModified':_0x3ab112[_0x26e67c(0x175)]};}export async function getSqlQueryInfo(_0xa364a2,_0x5e9ef8){const _0x4eb73b=a105_0x57ca,_0x2eeb49=await apiRequest(_0x4eb73b(0x176),{'method':_0x4eb73b(0x159),'body':{'appCode':_0xa364a2,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x5e9ef8}}),_0x9f1fb3=_0x2eeb49[_0x4eb73b(0x146)],_0x4f42b3=_0x9f1fb3&&typeof _0x9f1fb3==='object'&&_0x4eb73b(0x21a)in _0x9f1fb3?_0x9f1fb3[_0x4eb73b(0x21a)]?.[0x0]:_0x9f1fb3&&typeof _0x9f1fb3===_0x4eb73b(0x1c5)&&_0x4eb73b(0x190)in _0x9f1fb3?_0x9f1fb3:undefined;if(!_0x4f42b3)throw CliErrors[_0x4eb73b(0x152)]('SQL\x20query\x20not\x20found:\x20'+_0x5e9ef8);return _0x4f42b3;}export async function listApprovalTodo(_0x314ff0,_0x281d29=0x1,_0xa80fb2=0x14){const _0x292aec=a105_0x57ca,_0x5af087=new URLSearchParams({'appCode':_0x314ff0,'currentPage':String(_0x281d29),'pageSize':String(_0xa80fb2)}),_0x378164=await apiRequest(_0x292aec(0x1bc)+_0x5af087[_0x292aec(0x1c8)]());if(!_0x378164[_0x292aec(0x146)]||typeof _0x378164[_0x292aec(0x146)]!==_0x292aec(0x1c5)||!Array[_0x292aec(0x1f0)](_0x378164[_0x292aec(0x146)][_0x292aec(0x1ff)]))throw CliErrors[_0x292aec(0x16e)](_0x292aec(0x15a));return _0x378164[_0x292aec(0x146)];}export async function getApprovalTaskDetail(_0x461604,_0x40a076){const _0x32271d=a105_0x57ca,_0x3f841f=new URLSearchParams({'appCode':_0x40a076}),_0x3d887d=await apiRequest(_0x32271d(0x1a6)+encodeURIComponent(_0x461604)+'?'+_0x3f841f[_0x32271d(0x1c8)]());if(!_0x3d887d['data']||typeof _0x3d887d[_0x32271d(0x146)]!=='object'||Array[_0x32271d(0x1f0)](_0x3d887d[_0x32271d(0x146)]))throw CliErrors['apiError'](_0x32271d(0x1f9));return _0x3d887d[_0x32271d(0x146)];}export async function approveApprovalTask(_0x5c2342){const _0x30722d=a105_0x57ca,_0x321b05=await apiRequest('/client/flow/approve',{'method':_0x30722d(0x159),'body':_0x5c2342});return _0x321b05[_0x30722d(0x146)];}export async function transferApprovalTask(_0x1f71e3){const _0x247128=a105_0x57ca,_0x35bb95=await apiRequest(_0x247128(0x191),{'method':'POST','body':_0x1f71e3});return _0x35bb95['data'];}function isRemoteAppItem(_0x1aee5b){const _0x27a682=a105_0x57ca;return!!_0x1aee5b&&typeof _0x1aee5b===_0x27a682(0x1c5)&&typeof _0x1aee5b[_0x27a682(0x142)]===_0x27a682(0x202)&&typeof _0x1aee5b[_0x27a682(0x1c9)]===_0x27a682(0x202);}function extractRemoteAppItems(_0x46eafc){const _0x37934f=a105_0x57ca;if(Array['isArray'](_0x46eafc))return _0x46eafc[_0x37934f(0x1ec)](isRemoteAppItem);if(!_0x46eafc||typeof _0x46eafc!==_0x37934f(0x1c5))throw CliErrors[_0x37934f(0x16e)](_0x37934f(0x17f));const _0x5bd989=_0x46eafc;if(Array[_0x37934f(0x1f0)](_0x5bd989[_0x37934f(0x21a)]))return _0x5bd989['tableData'][_0x37934f(0x1ec)](isRemoteAppItem);if(_0x5bd989[_0x37934f(0x146)]&&typeof _0x5bd989['data']===_0x37934f(0x1c5)){const _0x368752=_0x5bd989['data'];if(Array['isArray'](_0x368752[_0x37934f(0x21a)]))return _0x368752[_0x37934f(0x21a)]['filter'](isRemoteAppItem);}throw CliErrors[_0x37934f(0x16e)]('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x55266e=a105_0x57ca,_0x51b15a=await apiRequest(_0x55266e(0x1e0));return extractRemoteAppItems(_0x51b15a[_0x55266e(0x146)]);}export async function getLoginUserInfo(){const _0x3104f4=a105_0x57ca,_0x478972=await apiRequest(_0x3104f4(0x1cb));if(!_0x478972['data']||typeof _0x478972[_0x3104f4(0x146)]!==_0x3104f4(0x1c5)||Array[_0x3104f4(0x1f0)](_0x478972[_0x3104f4(0x146)]))throw CliErrors[_0x3104f4(0x16e)](_0x3104f4(0x1de));return _0x478972['data'];}export const USER_ACCOUNT_BIND_PATH='/client/user-accounts/bind';export async function bindExternalUserAccount(_0x588c36,_0x3afc29){const _0x5a91a4=a105_0x57ca,_0x3c2c2b=await apiRequest(USER_ACCOUNT_BIND_PATH,{'method':'POST','body':{'provider':_0x588c36,'accountId':_0x3afc29}});return _0x3c2c2b[_0x5a91a4(0x146)];}function runtimeSchedulePath(_0xc6e37c,_0x720685=''){const _0x49eb2c=a105_0x57ca;return _0x49eb2c(0x1d9)+encodeURIComponent(_0xc6e37c)+_0x49eb2c(0x172)+_0x720685;}export async function validateRuntimeSchedule(_0x5557f7,_0x38e109){const _0x2cbc11=a105_0x57ca,_0x2af08d=await apiRequest(runtimeSchedulePath(_0x5557f7,_0x2cbc11(0x174)),{'method':_0x2cbc11(0x159),'body':_0x38e109});return _0x2af08d['data'];}export async function createRuntimeSchedule(_0x3deec7,_0x5acabe){const _0x25c76d=a105_0x57ca,_0x515818=await apiRequest(runtimeSchedulePath(_0x3deec7),{'method':'POST','body':_0x5acabe});return _0x515818[_0x25c76d(0x146)];}export async function listRuntimeSchedules(_0x4532c4,_0x5ca661){const _0x3f4bed=a105_0x57ca,_0x50a04b=new URLSearchParams();_0x50a04b['set']('kind',_0x5ca661['kind']);if(_0x5ca661[_0x3f4bed(0x1ba)]!==undefined)_0x50a04b[_0x3f4bed(0x1ca)](_0x3f4bed(0x1ba),String(_0x5ca661[_0x3f4bed(0x1ba)]));if(_0x5ca661[_0x3f4bed(0x15c)])_0x50a04b[_0x3f4bed(0x1ca)](_0x3f4bed(0x15c),_0x5ca661[_0x3f4bed(0x15c)]);const _0x2ce7f9=_0x50a04b[_0x3f4bed(0x157)]>0x0?'?'+_0x50a04b[_0x3f4bed(0x1c8)]():'',_0x30ca2d=await apiRequest(''+runtimeSchedulePath(_0x4532c4)+_0x2ce7f9);return _0x30ca2d[_0x3f4bed(0x146)];}export async function getRuntimeSchedule(_0x95951a,_0x3f5399){const _0x29babe=a105_0x57ca,_0x238514=await apiRequest(runtimeSchedulePath(_0x95951a,'/'+encodeURIComponent(_0x3f5399)));return _0x238514[_0x29babe(0x146)];}export async function deleteRuntimeSchedule(_0x1fbd16,_0x162520){const _0x45d7d2=a105_0x57ca,_0x237b4f=await apiRequest(runtimeSchedulePath(_0x1fbd16,'/'+encodeURIComponent(_0x162520)),{'method':_0x45d7d2(0x1fd)});return _0x237b4f[_0x45d7d2(0x146)];}export async function runRuntimeSchedule(_0x4b666c,_0x8a5da1){const _0x2f8e70=a105_0x57ca,_0x3ae07f=await apiRequest(runtimeSchedulePath(_0x4b666c,'/'+encodeURIComponent(_0x8a5da1)+_0x2f8e70(0x147)),{'method':_0x2f8e70(0x159)});return _0x3ae07f[_0x2f8e70(0x146)];}export async function listDatasets(_0x37e1d8,_0x160fc6){const _0x2fae21=a105_0x57ca,_0x47cd04=await apiRequest('/client/dataset/list',{'method':'POST','body':{'appCode':_0x37e1d8,..._0x160fc6?.[_0x2fae21(0x204)]&&{'code':_0x160fc6['code']},..._0x160fc6?.['name']&&{'name':_0x160fc6['name']}}});return extractList(_0x47cd04['data']);}export async function getDatasetDetail(_0x1dd35f){const _0x5db888=a105_0x57ca,_0x4a6c6f=await apiRequest(_0x5db888(0x168)+encodeURIComponent(_0x1dd35f));return _0x4a6c6f[_0x5db888(0x146)];}export async function getDatasetImportContract(_0x5003da,_0x215131){const _0x5f37f6=a105_0x57ca,_0x2959df=await apiRequest('/client/'+encodeURIComponent(_0x5003da)+'/'+encodeURIComponent(_0x215131)+_0x5f37f6(0x1d4),{'rejectRedirects':!![]});return _0x2959df[_0x5f37f6(0x146)];}export async function createDatasetImportBatch(_0x59c3b6,_0x1b72db,_0x464a43){const _0x164fd1=a105_0x57ca,_0x106dab=await apiRequest(_0x164fd1(0x1ab)+encodeURIComponent(_0x59c3b6)+'/'+encodeURIComponent(_0x1b72db)+'/import-batch',{'method':'POST','body':_0x464a43,'rejectRedirects':!![]});return _0x106dab[_0x164fd1(0x146)];}export async function readDatasetImportRows(_0x2fb215,_0xde3f2b,_0x4df444){const _0x45cddf=a105_0x57ca,_0x239670=await apiRequest(_0x45cddf(0x1ab)+encodeURIComponent(_0x2fb215)+'/'+encodeURIComponent(_0xde3f2b)+'/import-readback',{'method':_0x45cddf(0x159),'body':{'ids':_0x4df444},'rejectRedirects':!![]});if(!_0x239670[_0x45cddf(0x146)]||!Array[_0x45cddf(0x1f0)](_0x239670['data'][_0x45cddf(0x170)]))throw CliErrors[_0x45cddf(0x16e)](_0x45cddf(0x1b3));return _0x239670[_0x45cddf(0x146)][_0x45cddf(0x170)];}export async function readDatasetImportTaskRows(_0x149367,_0x330a40,_0x58a92f){const _0x69dc2=a105_0x57ca,_0x522e41=await apiRequest('/client/'+encodeURIComponent(_0x149367)+'/'+encodeURIComponent(_0x330a40)+_0x69dc2(0x1ad),{'method':_0x69dc2(0x159),'body':{'taskId':_0x58a92f},'rejectRedirects':!![]});if(!_0x522e41[_0x69dc2(0x146)]||!Array[_0x69dc2(0x1f0)](_0x522e41[_0x69dc2(0x146)][_0x69dc2(0x170)]))throw CliErrors[_0x69dc2(0x16e)]('Invalid\x20import\x20task\x20readback\x20response.');return _0x522e41[_0x69dc2(0x146)][_0x69dc2(0x170)];}export async function uploadDatasetImportImage(_0x9bd715,_0x47cca9,_0x5d1a28,_0x4d75c4){const _0xe6cc3c=a105_0x57ca,_0x5a1d1a=new FormData();_0x5a1d1a['append'](_0xe6cc3c(0x20b),_0x5d1a28),_0x5a1d1a[_0xe6cc3c(0x192)](_0xe6cc3c(0x1a5),_0x4d75c4[_0xe6cc3c(0x1a5)]),_0x5a1d1a[_0xe6cc3c(0x192)](_0xe6cc3c(0x1a0),new Blob([new Uint8Array(_0x4d75c4[_0xe6cc3c(0x186)])],{'type':_0x4d75c4[_0xe6cc3c(0x14c)]}),_0xe6cc3c(0x1d1));const _0x218958=await apiFormRequest('/client/'+encodeURIComponent(_0x9bd715)+'/'+encodeURIComponent(_0x47cca9)+_0xe6cc3c(0x1f7),_0x5a1d1a,{'rejectRedirects':!![]});return _0x218958[_0xe6cc3c(0x146)];}export async function readDatasetImportImage(_0x193a31,_0x26a147,_0x22a196,_0x286583){const _0x69430e=a105_0x57ca,_0x10d33f=await apiRequest('/client/'+encodeURIComponent(_0x193a31)+'/'+encodeURIComponent(_0x26a147)+'/import-image-readback',{'method':_0x69430e(0x159),'body':{'importId':_0x22a196,'contentHash':_0x286583[_0x69430e(0x1a5)],'type':_0x286583[_0x69430e(0x14c)],'size':_0x286583[_0x69430e(0x157)]},'rejectRedirects':!![]});return _0x10d33f[_0x69430e(0x146)];}export async function getDatasetSdkUsageDoc(_0x57929c,_0x2d9ac6){const _0x439083=a105_0x57ca,_0xec84ba=await toolboxRequest('api-doc-generator',{'datasetCode':_0x57929c,'appCode':_0x2d9ac6});return typeof _0xec84ba?.[_0x439083(0x1dd)]===_0x439083(0x202)?_0xec84ba[_0x439083(0x1dd)]:'';}export async function uploadRuntimeFile(_0xdeab06,_0x3b5b31){const _0x207eea=a105_0x57ca,_0x5ac465=await readFile(_0x3b5b31),_0x5b838c=new FormData();_0x5b838c['append']('appCode',_0xdeab06),_0x5b838c['append'](_0x207eea(0x1a0),new Blob([new Uint8Array(_0x5ac465)]),basename(_0x3b5b31));const _0x54abc=await apiFormRequest('/client/uploadFile',_0x5b838c);return _0x54abc[_0x207eea(0x146)];}export async function queryRuntimeFileUrl(_0xffe703,_0x1fd790={}){const _0x5bdadf=a105_0x57ca,_0xc8566b=await apiRequest(_0x5bdadf(0x1f3),{'method':_0x5bdadf(0x159),'body':{'filePath':_0xffe703,'downloadFlag':_0x1fd790[_0x5bdadf(0x201)]??![],..._0x1fd790[_0x5bdadf(0x18f)]?{'longTerm':!![]}:{}}});return _0xc8566b[_0x5bdadf(0x146)];}export async function recognizeRuntimeOcr(_0x3f2b2d,_0x544df0){const _0x5cf317=a105_0x57ca,_0x2dab23=await apiRequest(_0x5cf317(0x1a2),{'method':_0x5cf317(0x159),'body':{'appCode':_0x3f2b2d,'url':_0x544df0[_0x5cf317(0x218)],'type':_0x544df0[_0x5cf317(0x14c)]}});return _0x2dab23['data'];}export async function getRuntimeAppConfigByKey(_0x246855,_0x251173){const _0x49dc71=a105_0x57ca,_0x3a50c7=new URLSearchParams({'appCode':_0x246855,'key':_0x251173}),_0x544803=await apiRequest(_0x49dc71(0x160)+_0x3a50c7[_0x49dc71(0x1c8)]());if(typeof _0x544803[_0x49dc71(0x146)]!==_0x49dc71(0x202))throw CliErrors[_0x49dc71(0x152)](_0x49dc71(0x1e1)+_0x251173);return _0x544803[_0x49dc71(0x146)];}export async function listNotificationChannelConfigs(_0xeee7cf,_0x2e7097){const _0xac5a1=a105_0x57ca,_0x8ee27e=new URLSearchParams({'appCode':_0xeee7cf,'channelType':_0x2e7097}),_0x3307c6=await apiRequest(_0xac5a1(0x14e)+_0x8ee27e['toString']());if(!Array[_0xac5a1(0x1f0)](_0x3307c6[_0xac5a1(0x146)]))throw CliErrors['apiError'](_0xac5a1(0x200),_0xac5a1(0x213));return _0x3307c6['data'];}export async function listRuntimeArtifacts(_0x53573c,_0x35666e){const _0x43dd00=a105_0x57ca,_0x1339c3=new URLSearchParams({'appCode':_0x53573c});if(_0x35666e?.[_0x43dd00(0x1b8)])_0x1339c3[_0x43dd00(0x1ca)](_0x43dd00(0x1b8),_0x35666e[_0x43dd00(0x1b8)]);if(_0x35666e?.[_0x43dd00(0x1c7)])_0x1339c3['set'](_0x43dd00(0x1c7),_0x35666e[_0x43dd00(0x1c7)]);if(_0x35666e?.[_0x43dd00(0x16c)]!==undefined)_0x1339c3[_0x43dd00(0x1ca)]('favorite',String(_0x35666e[_0x43dd00(0x16c)]));const _0x2fd093=await apiRequest('/client/artifact/list?'+_0x1339c3[_0x43dd00(0x1c8)]());return Array['isArray'](_0x2fd093[_0x43dd00(0x146)])?_0x2fd093[_0x43dd00(0x146)]:[];}export async function getRuntimeArtifact(_0x55e059,_0x2c5191){const _0x426d26=a105_0x57ca,_0x22bf6e=await apiRequest(_0x426d26(0x158)+_0x55e059+_0x426d26(0x17c)+encodeURIComponent(_0x2c5191));if(!_0x22bf6e[_0x426d26(0x146)])throw CliErrors[_0x426d26(0x152)](_0x426d26(0x21b)+_0x55e059);return _0x22bf6e[_0x426d26(0x146)];}function a105_0x57ca(_0x142834,_0x11af04){_0x142834=_0x142834-0x140;const _0x58885e=a105_0x5888();let _0x57ca42=_0x58885e[_0x142834];return _0x57ca42;}export async function createRuntimeArtifact(_0x5e7fb6,_0x16ae7d){const _0x262b41=a105_0x57ca,_0x322ab8=await apiRequest(_0x262b41(0x1e8),{'method':_0x262b41(0x159),'body':{'appCode':_0x5e7fb6,..._0x16ae7d}});return _0x322ab8[_0x262b41(0x146)];}export async function updateRuntimeArtifact(_0x47e9a5,_0x2a861b,_0x5df646){const _0x1f8e3a=a105_0x57ca,_0x30a2ca=await apiRequest(_0x1f8e3a(0x158)+_0x47e9a5+'/update',{'method':'POST','body':{'appCode':_0x2a861b,..._0x5df646}});return _0x30a2ca[_0x1f8e3a(0x146)];}export async function listPersonalBffs(_0x2c12f8){const _0x380705=a105_0x57ca,_0x300e71=await apiRequest(_0x380705(0x20a)+encodeURIComponent(_0x2c12f8));return Array[_0x380705(0x1f0)](_0x300e71[_0x380705(0x146)])?_0x300e71['data']:[];}export async function getPersonalBff(_0x361faa,_0x1590dc){const _0x15d766=a105_0x57ca,_0x3196c3=await apiRequest(_0x15d766(0x195)+_0x361faa+_0x15d766(0x17c)+encodeURIComponent(_0x1590dc));if(!_0x3196c3['data'])throw CliErrors[_0x15d766(0x152)](_0x15d766(0x155)+_0x361faa);return _0x3196c3[_0x15d766(0x146)];}export async function createPersonalBff(_0x58adf9,_0x56f91e){const _0x4540ba=a105_0x57ca,_0x4f1814=await apiRequest(_0x4540ba(0x15f),{'method':_0x4540ba(0x159),'body':{'appCode':_0x58adf9,..._0x56f91e}});return _0x4f1814[_0x4540ba(0x146)];}export async function updatePersonalBff(_0x1cbab2,_0x4abc5a,_0x4cf5f6){const _0x49338b=a105_0x57ca,_0xba1599=await apiRequest(_0x49338b(0x195)+_0x1cbab2+_0x49338b(0x1be),{'method':_0x49338b(0x159),'body':{'appCode':_0x4abc5a,..._0x4cf5f6}});return _0xba1599[_0x49338b(0x146)];}export async function executePersonalBff(_0x31817e,_0x27c1d5,_0x3c3678){const _0x343dba=a105_0x57ca,_0x5e72bc=await apiRequest(_0x343dba(0x195)+_0x31817e+_0x343dba(0x207)+encodeURIComponent(_0x27c1d5),{'method':_0x343dba(0x159),'body':_0x3c3678});return _0x5e72bc[_0x343dba(0x146)];}export async function listPersonalKnowledgeBaseItems(_0x599c05){const _0x20a334=a105_0x57ca,_0x3e4970=await apiRequest(_0x20a334(0x169)+encodeURIComponent(_0x599c05));return Array['isArray'](_0x3e4970['data'])?_0x3e4970[_0x20a334(0x146)]:[];}export async function getPersonalKnowledgeBaseItem(_0x31a63c,_0x32299f){const _0x1a0826=a105_0x57ca,_0x14c93e=await apiRequest(_0x1a0826(0x1bb)+_0x31a63c+_0x1a0826(0x17c)+encodeURIComponent(_0x32299f));if(!_0x14c93e[_0x1a0826(0x146)])throw CliErrors[_0x1a0826(0x152)](_0x1a0826(0x1fe)+_0x31a63c);return _0x14c93e[_0x1a0826(0x146)];}export async function createPersonalKnowledgeBaseItem(_0x349f56,_0x2c2ff5){const _0xd7c3fd=a105_0x57ca,_0x12b528=await apiRequest(_0xd7c3fd(0x140),{'method':_0xd7c3fd(0x159),'body':{'appCode':_0x349f56,..._0x2c2ff5}});return _0x12b528['data'];}export async function updatePersonalKnowledgeBaseItem(_0x3ec004,_0x14bc78,_0x4789d9){const _0x367c0c=a105_0x57ca,_0x2791d8=await apiRequest('/client/knowledge-base/personal/'+_0x3ec004+'/update',{'method':_0x367c0c(0x159),'body':{'appCode':_0x14bc78,..._0x4789d9}});return _0x2791d8[_0x367c0c(0x146)];}export async function getRuntimeSkillByCode(_0x3f5f34,_0x14b330){const _0x43c08b=await skillHubJsonRequest('/api/v1/skills/'+encodeURIComponent(_0x3f5f34)+'/'+encodeURIComponent(_0x14b330),{'allowNotFound':!![]});return _0x43c08b?skillHubRuntimeDetailToRuntimeSkill(_0x43c08b):undefined;}export async function listRuntimeSkills(_0x23d979){const _0x3070aa=a105_0x57ca,_0x86e040=await skillHubJsonRequest(_0x3070aa(0x144)+encodeURIComponent(_0x23d979['appCode'])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x23d979[_0x3070aa(0x142)],_0x86e040,_0x23d979[_0x3070aa(0x1a7)]??'all',_0x23d979[_0x3070aa(0x204)],_0x23d979['installableOnly']);}export async function listPersonalRuntimeSkills(_0x350e04){const _0x49ff50=a105_0x57ca;return(await listRuntimeSkills({'appCode':_0x350e04,'scope':'personal'}))[_0x49ff50(0x16d)];}export async function listCompanyRuntimeSkills(_0x173ab){const _0x5bcb9d=a105_0x57ca;return(await listRuntimeSkills({'appCode':_0x173ab,'scope':_0x5bcb9d(0x154)}))[_0x5bcb9d(0x154)];}export async function listVisibleRuntimeSkills(_0x253c41){const _0x179abd=a105_0x57ca;return(await listRuntimeSkills({'appCode':_0x253c41,'scope':'all'}))[_0x179abd(0x178)];}export async function createPersonalRuntimeSkill(_0x4a112a,_0x2158a8,_0x427f82={}){const _0x2a99ee=a105_0x57ca;return publishRuntimeSkill(_0x4a112a,_0x2158a8,{'visibility':_0x2a99ee(0x14d),'confirmWarnings':_0x427f82[_0x2a99ee(0x1c6)]});}export async function updatePersonalRuntimeSkill(_0x167c33,_0xd2ac2f,_0x504b57,_0x44b550={}){const _0x17e546=a105_0x57ca;return publishRuntimeSkill(_0xd2ac2f,{..._0x504b57,'skillCode':_0x504b57[_0x17e546(0x161)]??_0x167c33},{'visibility':_0x17e546(0x14d),'confirmWarnings':_0x44b550[_0x17e546(0x1c6)]});}export async function publishCompanyRuntimeSkill(_0x461a11,_0x581cc2,_0x4ba7ca={}){const _0x28d5ce=a105_0x57ca;return publishRuntimeSkill(_0x461a11,_0x581cc2,{'visibility':_0x28d5ce(0x1f2),'confirmWarnings':_0x4ba7ca['confirmWarnings']});}export async function validateRuntimeSkillPublish(_0x3024c7,_0x59fc7e,_0x283c){const _0x150ec1=a105_0x57ca,_0x5e026c=buildRuntimeSkillPublishForm(_0x59fc7e,_0x283c[_0x150ec1(0x1f4)]),_0xbead85=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x3024c7)+'/publish/validate',{'method':_0x150ec1(0x159),'body':_0x5e026c});return assertJointDiagramAcknowledged(_0x59fc7e[_0x150ec1(0x14f)],_0xbead85[_0x150ec1(0x179)],_0x150ec1(0x152)),{'valid':_0xbead85[_0x150ec1(0x1b9)]===!![],'errors':Array[_0x150ec1(0x1f0)](_0xbead85[_0x150ec1(0x16f)])?_0xbead85[_0x150ec1(0x16f)]:[],'warnings':Array[_0x150ec1(0x1f0)](_0xbead85[_0x150ec1(0x1d5)])?_0xbead85[_0x150ec1(0x1d5)]:[],'resolvedSlug':_0xbead85[_0x150ec1(0x1ce)],'resolvedVersion':_0xbead85[_0x150ec1(0x1b1)],'diagramValidated':_0xbead85[_0x150ec1(0x179)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x5d54fe,_0x5bad5a,_0x139f1f,_0x230c5c,_0x5d7e9c){const _0x263eb4=a105_0x57ca;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x5d54fe,_0x5bad5a,_0x139f1f,_0x263eb4(0x174)),{'method':_0x263eb4(0x159),'query':{'scope':_0x230c5c},'headers':{'Content-Type':_0x263eb4(0x15b)},'body':JSON[_0x263eb4(0x208)](_0x5d7e9c)});}export async function putRuntimeSkillVersionDiagram(_0x166765,_0x332a15,_0x15a919,_0x4d4a37,_0x1daa02){const _0xecc4c5=a105_0x57ca;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x166765,_0x332a15,_0x15a919),{'method':'PUT','query':{'scope':_0x4d4a37},'headers':{'Content-Type':_0xecc4c5(0x15b)},'body':JSON[_0xecc4c5(0x208)](_0x1daa02)});}export async function getRuntimeSkillVersionDiagram(_0xffe312,_0x26fa85,_0x54c25c,_0x3967e4){const _0x1c05d2=a105_0x57ca,_0x35b65a=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0xffe312,_0x26fa85,_0x54c25c),{'query':{'scope':_0x3967e4}});if(typeof _0x35b65a[_0x1c05d2(0x15d)]!==_0x1c05d2(0x181))throw CliErrors[_0x1c05d2(0x16e)]('Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.');const _0x1369f0=_0x35b65a[_0x1c05d2(0x1fa)];if(typeof _0x1369f0!=='string'||!/^sha256:[0-9a-f]{64}$/[_0x1c05d2(0x1e9)](_0x1369f0))throw CliErrors[_0x1c05d2(0x16e)](_0x1c05d2(0x1e4),'SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.');const _0x422bb7=_0x35b65a[_0x1c05d2(0x197)];if(_0x35b65a[_0x1c05d2(0x15d)]&&(!Number[_0x1c05d2(0x1bd)](_0x422bb7)||Number(_0x422bb7)<0x1))throw CliErrors[_0x1c05d2(0x16e)]('Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.');if(!_0x35b65a[_0x1c05d2(0x15d)]&&_0x422bb7!==undefined&&_0x422bb7!==null)throw CliErrors['apiError']('Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.');const _0x3d821a=_0x35b65a[_0x1c05d2(0x15d)]?Number(_0x422bb7):null;return{..._0x35b65a,'sourceFingerprint':_0x1369f0,'diagramRevision':_0x3d821a,'expectedDiagramRevision':_0x3d821a??0x0};}export async function downloadRuntimeSkillPackage(_0x55f127,_0x12c937,_0x421704,_0x14be5c){const _0x922e79=a105_0x57ca;void _0x55f127;const _0x4741fb=_0x14be5c?_0x922e79(0x182)+encodeURIComponent(_0x421704)+'/'+encodeURIComponent(_0x12c937)+'/versions/'+encodeURIComponent(_0x14be5c)+_0x922e79(0x189):'/api/cli/v1/skills/'+encodeURIComponent(_0x421704)+'/'+encodeURIComponent(_0x12c937)+_0x922e79(0x189);return skillHubBinaryRequest(_0x4741fb);}async function publishRuntimeSkill(_0x4d377c,_0x10e35b,_0x5c38a7){const _0x919c53=a105_0x57ca,_0xdf2c4e=buildRuntimeSkillPublishForm(_0x10e35b,_0x5c38a7['visibility']),_0x2e03dd=await skillHubJsonRequest(_0x919c53(0x182)+encodeURIComponent(_0x4d377c)+_0x919c53(0x1e6),{'method':_0x919c53(0x159),'query':{'confirmWarnings':_0x5c38a7['confirmWarnings']===!![]?!![]:undefined},'body':_0xdf2c4e});return assertJointDiagramAcknowledged(_0x10e35b[_0x919c53(0x14f)],_0x2e03dd['diagramBound'],_0x919c53(0x164)),{'appCode':_0x2e03dd['namespace']??_0x4d377c,'skillCode':_0x2e03dd['slug']??_0x10e35b[_0x919c53(0x161)]??'','skillName':_0x10e35b[_0x919c53(0x1a3)]??_0x2e03dd[_0x919c53(0x196)]??_0x10e35b[_0x919c53(0x161)],'description':_0x10e35b[_0x919c53(0x1fb)],'scope':skillHubVisibilityToScope(_0x2e03dd[_0x919c53(0x1f4)]??_0x5c38a7[_0x919c53(0x1f4)])??_0x919c53(0x16d),'version':_0x2e03dd[_0x919c53(0x1d2)]??_0x10e35b[_0x919c53(0x1d2)],'tags':_0x10e35b[_0x919c53(0x1bf)],'content':_0x10e35b[_0x919c53(0x150)],'diagramBound':_0x2e03dd[_0x919c53(0x18b)]===!![]};}function assertJointDiagramAcknowledged(_0x14180a,_0x228fef,_0x1f16da){const _0x24f837=a105_0x57ca;if(!_0x14180a||_0x228fef===!![])return;throw CliErrors['apiError']('SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20'+_0x1f16da+'.',_0x24f837(0x1aa));}function buildRuntimeSkillPublishForm(_0x3fe5d7,_0x295586){const _0x544d78=a105_0x57ca,_0x5ea816=new FormData();return _0x5ea816['set'](_0x544d78(0x1a0),runtimeSkillPackageFile(_0x3fe5d7)),_0x3fe5d7[_0x544d78(0x1a3)]?.['trim']()&&_0x5ea816[_0x544d78(0x1ca)](_0x544d78(0x183),_0x3fe5d7[_0x544d78(0x1a3)][_0x544d78(0x1b5)]()),_0x5ea816[_0x544d78(0x1ca)](_0x544d78(0x1f4),_0x295586),_0x3fe5d7[_0x544d78(0x14f)]&&_0x5ea816['set'](_0x544d78(0x14f),new Blob([JSON[_0x544d78(0x208)](_0x3fe5d7['diagram'])],{'type':_0x544d78(0x15b)})),_0x5ea816;}function runtimeSkillVersionDiagramPath(_0x33ab57,_0x11cdbb,_0x28289f,_0x525119=''){const _0x3d831a=a105_0x57ca;return _0x3d831a(0x182)+encodeURIComponent(_0x33ab57)+'/'+encodeURIComponent(_0x11cdbb)+_0x3d831a(0x18a)+encodeURIComponent(_0x28289f)+_0x3d831a(0x211)+_0x525119;}function runtimeSkillPackageFile(_0x503a55){const _0x22cc8a=a105_0x57ca;if(!_0x503a55['packageBase64'])throw CliErrors[_0x22cc8a(0x152)](_0x22cc8a(0x193));const _0x36b7b7=Buffer[_0x22cc8a(0x1ac)](_0x503a55[_0x22cc8a(0x14b)],_0x22cc8a(0x1ef)),_0x3dcc4b=new Blob([_0x36b7b7],{'type':'application/zip'}),_0x20cf02=(_0x503a55[_0x22cc8a(0x161)]||'skill')+_0x22cc8a(0x145);if(typeof File!==_0x22cc8a(0x177))return new File([_0x3dcc4b],_0x20cf02,{'type':'application/zip'});return _0x3dcc4b;}function normalizeSkillHubRuntimeListResponse(_0x21e8fb,_0x430e5c,_0x5cd3ed,_0x3e8967,_0x39e465=![]){const _0x54dff8=a105_0x57ca,_0x53c141=Array[_0x54dff8(0x1f0)](_0x430e5c)?_0x430e5c:Array[_0x54dff8(0x1f0)](_0x430e5c?.[_0x54dff8(0x170)])?_0x430e5c[_0x54dff8(0x170)]:[],_0xf0c984=_0x3e8967?.[_0x54dff8(0x1b5)](),_0x1fc204=_0x53c141['filter'](_0x171639=>!_0xf0c984||_0x171639[_0x54dff8(0x196)]===_0xf0c984)[_0x54dff8(0x1ec)](_0x3e88c2=>!_0x39e465||_0x3e88c2[_0x54dff8(0x1ae)]?.[_0x54dff8(0x1e7)]===_0x54dff8(0x214)&&Boolean(_0x3e88c2[_0x54dff8(0x1ae)]['version']?.[_0x54dff8(0x1b5)]()))[_0x54dff8(0x1df)](skillHubRuntimeItemToRuntimeSkill)[_0x54dff8(0x1ec)](_0x2ab3cb=>Boolean(_0x2ab3cb)),_0x3e9d95=_0x1fc204['filter'](_0x143406=>_0x143406['scope']===_0x54dff8(0x16d)),_0x2a6ded=_0x1fc204[_0x54dff8(0x1ec)](_0x31cd9a=>_0x31cd9a[_0x54dff8(0x1a7)]===_0x54dff8(0x154));return{'appCode':_0x21e8fb,'personal':_0x5cd3ed===_0x54dff8(0x154)?[]:_0x3e9d95,'company':_0x5cd3ed===_0x54dff8(0x16d)?[]:_0x2a6ded,'effective':buildEffectiveRuntimeSkills(_0x3e9d95,_0x2a6ded,_0x5cd3ed)};}function skillHubRuntimeItemToRuntimeSkill(_0x257138){const _0x33d618=a105_0x57ca,_0x672878=_0x257138[_0x33d618(0x196)]?.[_0x33d618(0x1b5)](),_0x182cce=skillHubVisibilityToScope(_0x257138[_0x33d618(0x1f4)]);if(!_0x672878||!_0x182cce)return undefined;return{'id':_0x257138['id'],'appCode':_0x257138[_0x33d618(0x215)],'skillCode':_0x672878,'skillName':_0x257138[_0x33d618(0x183)]??_0x672878,'description':_0x257138[_0x33d618(0x212)],'example':_0x257138[_0x33d618(0x217)],'scope':_0x182cce,'version':skillHubRuntimeItemVersion(_0x257138),'status':_0x257138['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x416ff0){const _0x771094=a105_0x57ca,_0xb6595b=_0x416ff0[_0x771094(0x196)]?.[_0x771094(0x1b5)]();if(!_0xb6595b)return undefined;return{'id':_0x416ff0['id'],'appCode':_0x416ff0[_0x771094(0x215)],'skillCode':_0xb6595b,'skillName':_0x416ff0[_0x771094(0x183)]??_0xb6595b,'description':_0x416ff0[_0x771094(0x212)],'example':_0x416ff0[_0x771094(0x217)],'scope':skillHubVisibilityToScope(_0x416ff0['visibility'])??_0x416ff0[_0x771094(0x1f4)]?.[_0x771094(0x19a)](),'version':skillHubRuntimeItemVersion(_0x416ff0),'status':_0x416ff0[_0x771094(0x1e7)]};}function skillHubVisibilityToScope(_0x166054){const _0x4f6330=a105_0x57ca;if(_0x166054===_0x4f6330(0x14d))return _0x4f6330(0x16d);if(_0x166054===_0x4f6330(0x1f2))return _0x4f6330(0x154);return undefined;}function skillHubRuntimeItemVersion(_0x251008){const _0x2dd67c=a105_0x57ca;return _0x251008['publishedVersion']?.['version']??_0x251008['headlineVersion']?.[_0x2dd67c(0x1d2)]??_0x251008[_0x2dd67c(0x16a)]?.['version'];}function buildEffectiveRuntimeSkills(_0x13ff13,_0x8ea828,_0x4b21f0){const _0x3ce8d3=a105_0x57ca;if(_0x4b21f0===_0x3ce8d3(0x16d))return _0x13ff13;if(_0x4b21f0===_0x3ce8d3(0x154))return _0x8ea828;const _0x548e2c=new Map();for(const _0x303ec1 of _0x8ea828){_0x548e2c[_0x3ce8d3(0x1ca)](_0x303ec1[_0x3ce8d3(0x161)],_0x303ec1);}for(const _0x56bbd5 of _0x13ff13){_0x548e2c[_0x3ce8d3(0x1ca)](_0x56bbd5['skillCode'],_0x56bbd5);}return Array['from'](_0x548e2c[_0x3ce8d3(0x1a8)]());}function normalizeRuntimeSkillListResponse(_0x2e5669,_0xb99654){const _0x4bb14a=a105_0x57ca;if(Array[_0x4bb14a(0x1f0)](_0xb99654)){const _0x2f42ce=_0xb99654[_0x4bb14a(0x1ec)](_0x3cd8ac=>_0x3cd8ac[_0x4bb14a(0x1a7)]==='personal'),_0x25bc50=_0xb99654[_0x4bb14a(0x1ec)](_0x3bea68=>_0x3bea68[_0x4bb14a(0x1a7)]===_0x4bb14a(0x154));return{'appCode':_0x2e5669,'personal':_0x2f42ce,'company':_0x25bc50,'effective':[..._0x25bc50,..._0x2f42ce]};}return{'appCode':_0xb99654?.[_0x4bb14a(0x142)]??_0x2e5669,'personal':Array[_0x4bb14a(0x1f0)](_0xb99654?.[_0x4bb14a(0x16d)])?_0xb99654[_0x4bb14a(0x16d)]:[],'company':Array[_0x4bb14a(0x1f0)](_0xb99654?.[_0x4bb14a(0x154)])?_0xb99654[_0x4bb14a(0x154)]:[],'effective':Array[_0x4bb14a(0x1f0)](_0xb99654?.[_0x4bb14a(0x178)])?_0xb99654[_0x4bb14a(0x178)]:[]};}function normalizeRuntimeRoleUserList(_0x257836,_0x3a8545){const _0x38cd4e=a105_0x57ca;if(!Array['isArray'](_0x257836))throw CliErrors[_0x38cd4e(0x16e)](_0x38cd4e(0x1cc)+_0x3a8545+_0x38cd4e(0x1ea));return _0x257836[_0x38cd4e(0x1df)]((_0x2dd8fa,_0x1eb283)=>{const _0x4225cb=_0x38cd4e;if(!_0x2dd8fa||typeof _0x2dd8fa!==_0x4225cb(0x1c5)||Array['isArray'](_0x2dd8fa))throw CliErrors['apiError'](_0x4225cb(0x1cc)+_0x3a8545+'['+_0x1eb283+']\x20must\x20be\x20an\x20object.');const _0x628614=_0x2dd8fa,_0x1c9cf6=normalizePositiveSafeInteger(_0x628614[_0x4225cb(0x15e)]);if(_0x1c9cf6===undefined)throw CliErrors[_0x4225cb(0x16e)]('Invalid\x20runtime\x20role\x20members\x20response:\x20'+_0x3a8545+'['+_0x1eb283+_0x4225cb(0x205));return{..._0x628614,'userId':_0x1c9cf6};});}function normalizeRuntimeRoleUsersResponse(_0x586ca){const _0x29cb88=a105_0x57ca;return extractList(_0x586ca)[_0x29cb88(0x1df)]((_0x43e49d,_0x5051ed)=>{const _0x1c9405=_0x29cb88;if(!_0x43e49d||typeof _0x43e49d!==_0x1c9405(0x1c5)||Array[_0x1c9405(0x1f0)](_0x43e49d))throw CliErrors['apiError'](_0x1c9405(0x19b)+_0x5051ed+_0x1c9405(0x163));const _0x446915=_0x43e49d;return{..._0x446915,'userList':normalizeRuntimeRoleUserList(_0x446915['userList'],_0x1c9405(0x1d3)+_0x5051ed+_0x1c9405(0x188)),..._0x446915['applyUserList']===undefined?{}:{'applyUserList':normalizeRuntimeRoleUserList(_0x446915[_0x1c9405(0x20f)],_0x1c9405(0x1d3)+_0x5051ed+_0x1c9405(0x143))}};});}export async function listRuntimeAppRoles(_0x36d181,_0x1b0071={}){const _0x316ac9=a105_0x57ca,_0x1735ee=_0x1b0071[_0x316ac9(0x198)]??0x1,_0x39324a=Math[_0x316ac9(0x19c)](Math['max'](_0x1b0071['pageSize']??0x64,0x1),0x64),_0x1f8760=await apiRequest(_0x316ac9(0x166),{'method':_0x316ac9(0x159),'body':{'appCode':_0x36d181,..._0x1b0071[_0x316ac9(0x1b0)]?{'roleName':_0x1b0071[_0x316ac9(0x1b0)]}:{},'currentPage':_0x1735ee,'pageSize':_0x39324a}});return{'items':extractList(_0x1f8760[_0x316ac9(0x146)]),'paging':extractPaging(_0x1f8760['data'])};}export async function createRuntimeAppRole(_0x5ee441){const _0x54908d=a105_0x57ca,_0x13799d=await apiRequest(_0x54908d(0x1af),{'method':_0x54908d(0x159),'body':{'roleType':'CUSTOM',..._0x5ee441}});return _0x13799d[_0x54908d(0x146)];}export async function updateRuntimeAppRole(_0x395312){const _0x27d546=a105_0x57ca,_0x3cbde8=await apiRequest(_0x27d546(0x1e3),{'method':_0x27d546(0x159),'body':_0x395312});return _0x3cbde8['data'];}export async function deleteRuntimeAppRole(_0x2fc00c){const _0x31ea07=a105_0x57ca,_0x5b8d14=await apiRequest(_0x31ea07(0x1d6),{'method':_0x31ea07(0x159),'body':{'id':_0x2fc00c}});return _0x5b8d14[_0x31ea07(0x146)];}export async function listRuntimeRoleUsers(_0x4fcd07){const _0xf211de=a105_0x57ca,_0x450ef9=await apiRequest(_0xf211de(0x1eb),{'method':_0xf211de(0x159),'body':{'appCode':_0x4fcd07}});return normalizeRuntimeRoleUsersResponse(_0x450ef9[_0xf211de(0x146)]);}export async function updateRuntimeRoleUsers(_0x456f71,_0x28bd09){const _0x346b39=a105_0x57ca,_0x265a27=await apiRequest(_0x346b39(0x199),{'method':_0x346b39(0x159),'body':{'appCode':_0x456f71,'roleList':_0x28bd09}});return _0x265a27[_0x346b39(0x146)];}export async function listRuntimeAppUsers(_0x349ea1){const _0x1e3ed2=a105_0x57ca,_0x20e19c=await apiRequest(_0x1e3ed2(0x1dc)+runtimePermitQuery({'appCode':_0x349ea1}));return extractList(_0x20e19c[_0x1e3ed2(0x146)]);}function runtimePermitQuery(_0x259751){const _0x5a7f7e=a105_0x57ca,_0x2f9802=new URLSearchParams();for(const [_0x42f908,_0x1c5db4]of Object[_0x5a7f7e(0x1f5)](_0x259751))_0x2f9802[_0x5a7f7e(0x1ca)](_0x42f908,String(_0x1c5db4));return'?'+_0x2f9802[_0x5a7f7e(0x1c8)]();}export async function listRuntimePermitRoles(_0x12111d,_0x17638e={}){const _0x462399=await apiRequest('/client/permit/role/get-permit-list',{'method':'POST','body':{'appCode':_0x12111d,..._0x17638e}});return extractList(_0x462399['data']);}export async function getRuntimePagePermit(_0x110021){const _0x5eed82=a105_0x57ca,_0x556e1c=await apiRequest('/client/permit/page/get-one'+runtimePermitQuery({'menuId':_0x110021}));return _0x556e1c[_0x5eed82(0x146)];}export async function saveRuntimePagePermit(_0x1b62a2){const _0x5734a9=a105_0x57ca,_0x56a0b2=await apiRequest(_0x5734a9(0x1d8),{'method':'POST','body':_0x1b62a2});return _0x56a0b2['data'];}export async function getRuntimeRoleMenuResources(_0x483de5,_0xa498f9){const _0x5431e7=a105_0x57ca,_0x2d9390=await apiRequest(_0x5431e7(0x173),{'method':'POST','body':{'appCode':_0x483de5,'roleId':_0xa498f9}});return extractList(_0x2d9390[_0x5431e7(0x146)]);}export async function listRuntimeMenuRolePermits(_0x27a37b){const _0x12426f=a105_0x57ca,_0x4ad431=await apiRequest(_0x12426f(0x162)+runtimePermitQuery({'appCode':_0x27a37b}));return Array[_0x12426f(0x1f0)](_0x4ad431[_0x12426f(0x146)]?.[_0x12426f(0x1c0)])?_0x4ad431['data']['permitList']:[];}export async function saveRuntimeMenuRolePermits(_0xe9aca8,_0x2db33c){const _0x198f46=a105_0x57ca,_0x55af7f=await apiRequest(_0x198f46(0x1b2),{'method':_0x198f46(0x159),'body':{'appCode':_0xe9aca8,'permitList':_0x2db33c}});return _0x55af7f[_0x198f46(0x146)];}export async function listRuntimeDatasetPermits(_0x18ccaf,_0x318a29){const _0x3e5f97=a105_0x57ca,_0x1b8aab=await apiRequest('/client/permit/dataset/list'+runtimePermitQuery({'appCode':_0x18ccaf,'roleId':_0x318a29}));return Array[_0x3e5f97(0x1f0)](_0x1b8aab[_0x3e5f97(0x146)]?.[_0x3e5f97(0x1c0)])?_0x1b8aab[_0x3e5f97(0x146)]['permitList']:[];}function a105_0x5888(){const _0x25c7ca=['text','SkillHub\x20API\x20error:\x20','object','confirmWarnings','source','toString','appName','set','/client/user/loginUserInfo','Invalid\x20runtime\x20role\x20members\x20response:\x20','Configure\x20accessKey\x20in\x20','resolvedSlug','17pcFrWD','/client/permit/dataset/permit-list','image','version','roleList[','/import-contract','warnings','/client/permit/role/delete','invokeSource','/client/permit/page/save','/api/harness/apps/','errorCode','replace','/client/dept/queryAppUser','markdown','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','map','/client/app/my-apps','Invalid\x20app\x20config\x20value:\x20key=','error','/client/permit/role/update','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','function','/publish','status','/client/artifact/create','test','\x20must\x20be\x20an\x20array.','/client/permit/user-role/get-user-list','filter','GET','success','base64','isArray','15942dRqxke','NAMESPACE_ONLY','/client/queryFileUrl','visibility','entries','SkillHub\x20error\x20code:\x20','/import-image','API\x20error\x20code:\x20','Invalid\x20approval\x20task\x20detail\x20response.','sourceFingerprint','description','msg','DELETE','Knowledge-base\x20entry\x20not\x20found:\x20id=','records','Invalid\x20notification\x20config\x20list\x20response.','download','string','/api/node-toolbox/','code','].userId\x20must\x20be\x20a\x20positive\x20safe\x20integer\x20or\x20numeric\x20string.','10197UQlNcx','/execute?appCode=','stringify','abort','/client/runtime-bff/personal/list?appCode=','importId','Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','headers','isJson','applyUserList','signal','/diagram','summary','Expected\x20the\x20server\x20data\x20field\x20to\x20be\x20an\x20array.','PUBLISHED','namespace','api','example','url','44436AgTkzj','tableData','Artifact\x20not\x20found:\x20id=','/client/knowledge-base/personal/create','json','appCode','].applyUserList','/api/runtime/v1/namespaces/','.zip','data','/run','3SGihYS','find','name','packageBase64','type','PRIVATE','/client/notification/channel-config/list?','diagram','content','functionName','validation','Request\x20timeout:\x20','company','Personal\x20Backend\x20Function\x20not\x20found:\x20id=',',\x20name=','size','/client/artifact/','POST','Invalid\x20approval\x20todo\x20response:\x20missing\x20records.','application/json','cursor','found','userId','/client/runtime-bff/personal/create','/client/app-config/getByKey?','skillCode','/client/menu/permit-list',']\x20must\x20be\x20an\x20object.','publish','Download\x20failed:\x20','/client/permit/role/get-list','message','/client/dataset/get-driven-data?code=','/client/knowledge-base/personal/list?appCode=','ownerPreviewVersion','join','favorite','personal','apiError','errors','items','number','/schedules','/client/permit/resource/get-menu-list','/validate','gmtModified','/client/sql/query','undefined','effective','diagramValidated','Check\x20your\x20credentials\x20and\x20try\x20again.','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','?appCode=','85588WPCjPC','arrayBuffer','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','1048ahklLT','boolean','/api/cli/v1/skills/','displayName','runtime','/client/permit/resource/batch-save-dataset','bytes','Toolbox\x20error\x20code:\x20','].userList','/download','/versions/','diagramBound','authRequired','2072026iPimxI','/client/bff/endpoint/','longTerm','sqlCode','/client/flow/task/transfer','append','Missing\x20Skill\x20package\x20payload.','errorMsg','/client/runtime-bff/personal/','slug','diagramRevision','currentPage','/client/permit/user-role/update-user-list','toLowerCase','Invalid\x20runtime\x20role\x20members\x20response:\x20roleList[','min','functions','AbortError','120uIsUnT','file','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/ocr','skillName','searchParams','contentHash','/client/flow/task/','scope','values','newConfigFileName','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.','/client/','from','/import-readback','publishedVersion','/client/permit/role/create','roleName','resolvedVersion','/client/permit/resource/batch-save-menu','Invalid\x20import\x20readback\x20response.','1916430RGbnfL','trim','application/octet-stream','API\x20error:\x20','artifactType','valid','limit','/client/knowledge-base/personal/','/client/approve/todo?','isInteger','/update','tags','permitList','335489gOOXou','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'];a105_0x5888=function(){return _0x25c7ca;};return a105_0x5888();}export async function listRuntimeDatasetRolePermits(_0x3c83ea){const _0x4c91f3=a105_0x57ca,_0x584942=await apiRequest(_0x4c91f3(0x1d0)+runtimePermitQuery({'appCode':_0x3c83ea}));return Array[_0x4c91f3(0x1f0)](_0x584942[_0x4c91f3(0x146)]?.[_0x4c91f3(0x1c0)])?_0x584942[_0x4c91f3(0x146)][_0x4c91f3(0x1c0)]:[];}export async function saveRuntimeDatasetRolePermits(_0x3ef5f2,_0x47c7fd){const _0x4e454f=a105_0x57ca,_0xeb6834=await apiRequest(_0x4e454f(0x185),{'method':_0x4e454f(0x159),'body':{'appCode':_0x3ef5f2,'permitList':_0x47c7fd}});return _0xeb6834[_0x4e454f(0x146)];}
1
+ const a105_0x242631=a105_0x1b62;(function(_0x27ec48,_0x53b2f3){const _0x2ef7c7=a105_0x1b62,_0x480683=_0x27ec48();while(!![]){try{const _0x45b142=parseInt(_0x2ef7c7(0x15b))/0x1+-parseInt(_0x2ef7c7(0x1f4))/0x2*(-parseInt(_0x2ef7c7(0x215))/0x3)+-parseInt(_0x2ef7c7(0x19d))/0x4*(-parseInt(_0x2ef7c7(0x1f8))/0x5)+parseInt(_0x2ef7c7(0x1a0))/0x6*(-parseInt(_0x2ef7c7(0x1af))/0x7)+-parseInt(_0x2ef7c7(0x212))/0x8+-parseInt(_0x2ef7c7(0x1b7))/0x9+parseInt(_0x2ef7c7(0x217))/0xa*(-parseInt(_0x2ef7c7(0x1d9))/0xb);if(_0x45b142===_0x53b2f3)break;else _0x480683['push'](_0x480683['shift']());}catch(_0x51a895){_0x480683['push'](_0x480683['shift']());}}}(a105_0x32ac,0xcf48f));import{readFile}from'node:fs/promises';import{basename}from'node:path';function a105_0x1b62(_0x58f3c3,_0x52de88){_0x58f3c3=_0x58f3c3-0x14e;const _0x32ac2=a105_0x32ac();let _0x1b6206=_0x32ac2[_0x58f3c3];return _0x1b6206;}import{getApiDomain,getRuntimeDomain,getSkillDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{createAccessError,readApiErrorCode}from'../framework/access-error.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';import{extractList,extractPaging}from'../framework/response.js';import{parseLosslessJson}from'../utils/lossless-json.js';import{normalizePositiveSafeInteger}from'../utils/positive-safe-integer.js';let _activeAK;export function setActiveAK(_0x520f97){_activeAK=_0x520f97||undefined;}export function clearActiveAK(){_activeAK=undefined;}function firstString(..._0x35d371){const _0x3a96d1=a105_0x1b62;for(const _0x180913 of _0x35d371){if(typeof _0x180913==='string'&&_0x180913['trim']())return _0x180913[_0x3a96d1(0x1d3)]();}return undefined;}async function decodeResponseBody(_0xf10e12){const _0xe2ca2c=a105_0x1b62;if(typeof _0xf10e12['text']===_0xe2ca2c(0x154))try{const _0x2344f3=await _0xf10e12[_0xe2ca2c(0x223)]();try{return{'isJson':!![],'data':parseLosslessJson(_0x2344f3),'text':_0x2344f3};}catch{return{'isJson':![],'text':_0x2344f3[_0xe2ca2c(0x1d3)]()||undefined};}}catch{}try{return{'isJson':!![],'data':await _0xf10e12[_0xe2ca2c(0x1b0)]()};}catch{return{'isJson':![]};}}function throwIfRateLimited(_0xf4c798,_0x4b7256,_0x47b55d){const _0xcbbe97=a105_0x1b62,_0x459262=_0x4b7256&&typeof _0x4b7256===_0xcbbe97(0x189)?_0x4b7256:{},_0x23802f=[_0x459262['status'],_0x459262[_0xcbbe97(0x1dd)]]['find'](_0x2e0196=>Number(_0x2e0196)===0x1ad),_0xe8f5dd=createRateLimitError({'status':_0xf4c798[_0xcbbe97(0x1db)]===0x1ad?_0xf4c798[_0xcbbe97(0x1db)]:_0x23802f??_0xf4c798[_0xcbbe97(0x1db)],'errorCode':firstString(_0x459262[_0xcbbe97(0x1d5)],typeof _0x459262[_0xcbbe97(0x1dd)]===_0xcbbe97(0x214)?_0x459262['code']:undefined),'message':firstString(_0x459262['errorMsg'],_0x459262[_0xcbbe97(0x20e)],_0x459262[_0xcbbe97(0x21c)],_0x47b55d),'retryAfter':readRetryAfter(_0xf4c798[_0xcbbe97(0x190)])??readRetryAfterSeconds(_0x4b7256)});if(_0xe8f5dd)throw _0xe8f5dd;}async function apiRequest(_0x437b39,_0xa6965e={}){const _0x1c76d7=a105_0x1b62,{method:method='GET',body:_0x3f9124,headers:headers={},timeout:timeout=0x7530,domain:domain=_0x1c76d7(0x208),rejectRedirects:rejectRedirects=![]}=_0xa6965e,_0x3166ec=_activeAK,_0x318d1b=domain===_0x1c76d7(0x206)?getApiDomain():getRuntimeDomain();if(!_0x3166ec)throw CliErrors[_0x1c76d7(0x1a8)](_0x1c76d7(0x1b9)+PRODUCT_CONFIG[_0x1c76d7(0x1ab)]+'.');const _0x5837f4=''+_0x318d1b+_0x437b39,_0x97becc={'X-User-AK':_0x3166ec},_0x170614=new AbortController(),_0x18adb9=setTimeout(()=>_0x170614['abort'](),timeout);try{const _0x541db1=await fetch(_0x5837f4,{'method':method,...rejectRedirects?{'redirect':_0x1c76d7(0x192)}:{},'headers':{'Content-Type':_0x1c76d7(0x210),'X-Invoke-Source':PRODUCT_CONFIG[_0x1c76d7(0x163)],..._0x97becc,...headers},'body':_0x3f9124?JSON[_0x1c76d7(0x199)](_0x3f9124):undefined,'signal':_0x170614[_0x1c76d7(0x153)]}),_0x79c736=await decodeResponseBody(_0x541db1);if(!_0x79c736[_0x1c76d7(0x176)]){throwIfRateLimited(_0x541db1,undefined,_0x79c736[_0x1c76d7(0x223)]);throw CliErrors[_0x1c76d7(0x213)](_0x1c76d7(0x1e0)+_0x541db1[_0x1c76d7(0x1db)]+')',_0x541db1['status']>=0x190?_0x1c76d7(0x173):undefined);}const _0x482b4f=_0x79c736[_0x1c76d7(0x15a)];throwIfRateLimited(_0x541db1,_0x482b4f);if(!_0x541db1['ok']||_0x482b4f['success']===![]){const _0xb0822d=createAccessError(_0x482b4f);if(_0xb0822d)throw _0xb0822d;throw CliErrors[_0x1c76d7(0x213)](_0x482b4f[_0x1c76d7(0x151)]||_0x482b4f[_0x1c76d7(0x20e)]||_0x482b4f['msg']||_0x1c76d7(0x178)+_0x541db1[_0x1c76d7(0x1db)],readApiErrorCode(_0x482b4f)?'API\x20error\x20code:\x20'+readApiErrorCode(_0x482b4f):undefined);}return _0x482b4f;}catch(_0x2c6d1f){if(_0x2c6d1f instanceof Error&&_0x2c6d1f[_0x1c76d7(0x1d1)]===_0x1c76d7(0x1ff))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x5837f4);throw _0x2c6d1f;}finally{clearTimeout(_0x18adb9);}}async function apiBinaryRequest(_0x259c16,_0x402984={}){const _0x133210=a105_0x1b62,{method:method=_0x133210(0x1d4),headers:headers={},timeout:timeout=0x7530}=_0x402984,_0x206d8e=_activeAK,_0x9765ad=getRuntimeDomain();if(!_0x206d8e)throw CliErrors[_0x133210(0x1a8)](_0x133210(0x1b9)+PRODUCT_CONFIG[_0x133210(0x1ab)]+'.');const _0x484b0a=''+_0x9765ad+_0x259c16,_0x3db23d=new AbortController(),_0x3437b4=setTimeout(()=>_0x3db23d[_0x133210(0x1be)](),timeout);try{const _0x18be4e=await fetch(_0x484b0a,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x133210(0x163)],'X-User-AK':_0x206d8e,...headers},'signal':_0x3db23d['signal']});if(!_0x18be4e['ok']){const _0x67d6e9=await decodeResponseBody(_0x18be4e),_0x2026c6=_0x67d6e9['data']&&typeof _0x67d6e9['data']===_0x133210(0x189)?_0x67d6e9[_0x133210(0x15a)]:{},_0x537ba4=firstString(_0x2026c6[_0x133210(0x151)],_0x2026c6[_0x133210(0x20e)],_0x2026c6[_0x133210(0x1d5)],_0x67d6e9[_0x133210(0x223)]);throwIfRateLimited(_0x18be4e,_0x67d6e9[_0x133210(0x15a)],_0x537ba4);const _0x5acd99=createAccessError(_0x67d6e9['data']);if(_0x5acd99)throw _0x5acd99;throw CliErrors[_0x133210(0x213)](_0x537ba4||_0x133210(0x178)+_0x18be4e[_0x133210(0x1db)],'Download\x20failed:\x20'+_0x484b0a);}return Buffer['from'](await _0x18be4e[_0x133210(0x187)]());}catch(_0x4c5e48){if(_0x4c5e48 instanceof Error&&_0x4c5e48[_0x133210(0x1d1)]===_0x133210(0x1ff))throw CliErrors[_0x133210(0x213)](_0x133210(0x19e)+_0x484b0a);throw _0x4c5e48;}finally{clearTimeout(_0x3437b4);}}async function apiFormRequest(_0x536a22,_0x35c7d4,_0x5eec79={}){const _0x502136=a105_0x1b62,{timeout:timeout=0x7530}=_0x5eec79,_0x2baa0b=_activeAK,_0x52bcb4=getRuntimeDomain();if(!_0x2baa0b)throw CliErrors[_0x502136(0x1a8)](_0x502136(0x1b9)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x5ce278=''+_0x52bcb4+_0x536a22,_0x3d42dc=new AbortController(),_0x28374a=setTimeout(()=>_0x3d42dc['abort'](),timeout);try{const _0x5bef3a=await fetch(_0x5ce278,{'method':'POST','headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x502136(0x163)],'X-User-AK':_0x2baa0b},'body':_0x35c7d4,..._0x5eec79['rejectRedirects']?{'redirect':'error'}:{},'signal':_0x3d42dc['signal']}),_0x5e3e9b=await decodeResponseBody(_0x5bef3a);if(!_0x5e3e9b[_0x502136(0x176)]){throwIfRateLimited(_0x5bef3a,undefined,_0x5e3e9b[_0x502136(0x223)]);throw CliErrors[_0x502136(0x213)](_0x502136(0x1e0)+_0x5bef3a[_0x502136(0x1db)]+')',_0x5bef3a[_0x502136(0x1db)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}const _0x37b54d=_0x5e3e9b[_0x502136(0x15a)];throwIfRateLimited(_0x5bef3a,_0x37b54d);if(!_0x5bef3a['ok']||_0x37b54d[_0x502136(0x1df)]===![]){const _0x1b4380=createAccessError(_0x37b54d);if(_0x1b4380)throw _0x1b4380;throw CliErrors[_0x502136(0x213)](_0x37b54d[_0x502136(0x151)]||_0x37b54d['message']||_0x502136(0x178)+_0x5bef3a[_0x502136(0x1db)],readApiErrorCode(_0x37b54d)?_0x502136(0x1d8)+readApiErrorCode(_0x37b54d):undefined);}return _0x37b54d;}catch(_0x53475d){if(_0x53475d instanceof Error&&_0x53475d[_0x502136(0x1d1)]===_0x502136(0x1ff))throw CliErrors[_0x502136(0x213)]('Request\x20timeout:\x20'+_0x5ce278);throw _0x53475d;}finally{clearTimeout(_0x28374a);}}async function toolboxRequest(_0x25c4fc,_0x158655,_0x19cc7a={}){const _0x2adf35=a105_0x1b62,{method:method=_0x2adf35(0x1d4),headers:headers={},timeout:timeout=0x7530}=_0x19cc7a,_0x29bb71=_activeAK;if(!_0x29bb71)throw CliErrors[_0x2adf35(0x1a8)](_0x2adf35(0x1b9)+PRODUCT_CONFIG[_0x2adf35(0x1ab)]+'.');const _0xf9aae=getApiDomain()[_0x2adf35(0x1fe)](/\/$/,''),_0xcad109=new URL(_0x25c4fc,_0xf9aae+_0x2adf35(0x205));if(_0x158655)for(const [_0x382f95,_0x1f5cbc]of Object[_0x2adf35(0x1ae)](_0x158655)){_0x1f5cbc!==undefined&&_0x1f5cbc!==null&&_0xcad109[_0x2adf35(0x19f)][_0x2adf35(0x21d)](_0x382f95,String(_0x1f5cbc));}const _0x3d2998=new AbortController(),_0x4fab61=setTimeout(()=>_0x3d2998['abort'](),timeout);try{const _0x1c4566=await fetch(_0xcad109,{'method':method,'headers':{'Content-Type':_0x2adf35(0x210),'X-Invoke-Source':PRODUCT_CONFIG[_0x2adf35(0x163)],'X-User-AK':_0x29bb71,...headers},'signal':_0x3d2998['signal']}),_0x39c0b8=await decodeResponseBody(_0x1c4566);if(!_0x39c0b8[_0x2adf35(0x176)]){throwIfRateLimited(_0x1c4566,undefined,_0x39c0b8[_0x2adf35(0x223)]);throw CliErrors[_0x2adf35(0x213)](_0x2adf35(0x169)+_0x1c4566[_0x2adf35(0x1db)]+')',_0x1c4566['status']>=0x190?_0x2adf35(0x173):undefined);}const _0x48ec77=_0x39c0b8[_0x2adf35(0x15a)];throwIfRateLimited(_0x1c4566,_0x48ec77);if(!_0x1c4566['ok']){const _0x2fbda8=_0x48ec77&&typeof _0x48ec77===_0x2adf35(0x189)?_0x48ec77:{};throw CliErrors['apiError'](_0x2fbda8[_0x2adf35(0x151)]||_0x2fbda8[_0x2adf35(0x20e)]||'Toolbox\x20API\x20error:\x20'+_0x1c4566['status'],_0x2fbda8['errorCode']?'Toolbox\x20error\x20code:\x20'+_0x2fbda8[_0x2adf35(0x1d5)]:undefined);}if(_0x48ec77&&typeof _0x48ec77===_0x2adf35(0x189)&&_0x2adf35(0x1df)in _0x48ec77&&typeof _0x48ec77[_0x2adf35(0x1df)]===_0x2adf35(0x1ed)){const _0x5c5de6=_0x48ec77;if(!_0x5c5de6[_0x2adf35(0x1df)])throw CliErrors[_0x2adf35(0x213)](_0x5c5de6[_0x2adf35(0x151)]||_0x5c5de6[_0x2adf35(0x20e)]||_0x2adf35(0x1bc),_0x5c5de6[_0x2adf35(0x1d5)]?_0x2adf35(0x17d)+_0x5c5de6['errorCode']:undefined);return _0x5c5de6[_0x2adf35(0x15a)];}return _0x48ec77;}catch(_0x353d0f){if(_0x353d0f instanceof Error&&_0x353d0f[_0x2adf35(0x1d1)]===_0x2adf35(0x1ff))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0xcad109[_0x2adf35(0x1eb)]());throw _0x353d0f;}finally{clearTimeout(_0x4fab61);}}async function skillHubJsonRequest(_0x38ff8b,_0x263a9a={}){const _0x443ea8=a105_0x1b62,{method:method=_0x443ea8(0x1d4),query:_0x156725,body:_0x39b899,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x263a9a,_0x4f792a=_activeAK;if(!_0x4f792a)throw CliErrors[_0x443ea8(0x1a8)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x443ea8(0x1ab)]+'.');const _0x214a8d=getSkillDomain()['replace'](/\/$/,''),_0x5169f3=new URL(_0x38ff8b,_0x214a8d+'/');if(_0x156725)for(const [_0x298a93,_0x5ea1d5]of Object[_0x443ea8(0x1ae)](_0x156725)){_0x5ea1d5!==undefined&&_0x5ea1d5!==null&&_0x5169f3[_0x443ea8(0x19f)]['set'](_0x298a93,String(_0x5ea1d5));}const _0x19082f=new AbortController(),_0xedd547=setTimeout(()=>_0x19082f['abort'](),timeout);try{const _0x296a5d=await fetch(_0x5169f3[_0x443ea8(0x1eb)](),{'method':method,'headers':{'Accept':_0x443ea8(0x210),'X-Invoke-Source':PRODUCT_CONFIG[_0x443ea8(0x163)],'X-User-AK':_0x4f792a,...headers},'body':_0x39b899,'signal':_0x19082f[_0x443ea8(0x153)]}),_0x334d5d=await decodeResponseBody(_0x296a5d);if(!_0x334d5d[_0x443ea8(0x176)]){if(allowNotFound&&_0x296a5d['status']===0x194)return undefined;throwIfRateLimited(_0x296a5d,undefined,_0x334d5d[_0x443ea8(0x223)]);throw CliErrors[_0x443ea8(0x213)]('SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x296a5d[_0x443ea8(0x1db)]+')',_0x296a5d[_0x443ea8(0x1db)]>=0x190?_0x443ea8(0x173):undefined);}const _0x2e1e31=_0x334d5d[_0x443ea8(0x15a)];throwIfRateLimited(_0x296a5d,_0x2e1e31);if(allowNotFound&&isSkillHubNotFoundResponse(_0x296a5d[_0x443ea8(0x1db)],_0x2e1e31))return undefined;const _0x2af248=!_0x296a5d['ok']||_0x2e1e31?.[_0x443ea8(0x1df)]===![]||typeof _0x2e1e31?.['code']===_0x443ea8(0x20b)&&_0x2e1e31[_0x443ea8(0x1dd)]>=0x190;if(_0x2af248)throw CliErrors[_0x443ea8(0x213)](_0x2e1e31?.[_0x443ea8(0x151)]||_0x2e1e31?.[_0x443ea8(0x20e)]||_0x2e1e31?.[_0x443ea8(0x21c)]||_0x443ea8(0x165)+_0x296a5d[_0x443ea8(0x1db)],_0x2e1e31?.['errorCode']?'SkillHub\x20error\x20code:\x20'+_0x2e1e31[_0x443ea8(0x1d5)]:undefined);return _0x2e1e31?.[_0x443ea8(0x15a)]??_0x2e1e31;}catch(_0x3a8fc3){if(_0x3a8fc3 instanceof Error&&_0x3a8fc3[_0x443ea8(0x1d1)]===_0x443ea8(0x1ff))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x5169f3[_0x443ea8(0x1eb)]());throw _0x3a8fc3;}finally{clearTimeout(_0xedd547);}}function isSkillHubNotFoundResponse(_0x137963,_0x3a683b){const _0x1cac53=a105_0x1b62;if(_0x137963===0x194||_0x3a683b?.['code']===0x194)return!![];if(_0x137963!==0x190&&_0x3a683b?.['code']!==0x190)return![];const _0x480b57=[_0x3a683b?.[_0x1cac53(0x21c)],_0x3a683b?.[_0x1cac53(0x20e)],_0x3a683b?.[_0x1cac53(0x151)],_0x3a683b?.[_0x1cac53(0x192)]][_0x1cac53(0x21b)](_0x41b9d9=>typeof _0x41b9d9==='string')[_0x1cac53(0x18b)]('\x20');return/skill not found\b/i[_0x1cac53(0x1f5)](_0x480b57);}async function skillHubBinaryRequest(_0x52ffb9,_0xdc8689={}){const _0x407bde=a105_0x1b62,{query:_0x12a19c,headers:headers={},timeout:timeout=0x7530}=_0xdc8689,_0x23a9e7=_activeAK;if(!_0x23a9e7)throw CliErrors[_0x407bde(0x1a8)](_0x407bde(0x1b9)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x521e36=getSkillDomain()['replace'](/\/$/,''),_0x45c284=new URL(_0x52ffb9,_0x521e36+'/');if(_0x12a19c)for(const [_0x25d877,_0xf6792a]of Object['entries'](_0x12a19c)){_0xf6792a!==undefined&&_0xf6792a!==null&&_0x45c284['searchParams'][_0x407bde(0x21d)](_0x25d877,String(_0xf6792a));}const _0x3aaa50=new AbortController(),_0x4ff8ec=setTimeout(()=>_0x3aaa50[_0x407bde(0x1be)](),timeout);try{const _0x3c1a3b=await fetch(_0x45c284[_0x407bde(0x1eb)](),{'method':_0x407bde(0x1d4),'headers':{'Accept':_0x407bde(0x1a9),'X-Invoke-Source':PRODUCT_CONFIG[_0x407bde(0x163)],'X-User-AK':_0x23a9e7,...headers},'signal':_0x3aaa50[_0x407bde(0x153)]});if(!_0x3c1a3b['ok']){const _0x3e24b1=await decodeResponseBody(_0x3c1a3b),_0x4f5e4c=_0x3e24b1[_0x407bde(0x15a)]&&typeof _0x3e24b1['data']===_0x407bde(0x189)?_0x3e24b1[_0x407bde(0x15a)]:{},_0x483651=firstString(_0x4f5e4c['errorMsg'],_0x4f5e4c[_0x407bde(0x20e)],_0x4f5e4c[_0x407bde(0x21c)],_0x4f5e4c['errorCode'],_0x3e24b1[_0x407bde(0x223)]);throwIfRateLimited(_0x3c1a3b,_0x3e24b1[_0x407bde(0x15a)],_0x483651);throw CliErrors['apiError'](_0x483651||_0x407bde(0x165)+_0x3c1a3b[_0x407bde(0x1db)],_0x407bde(0x1d0)+_0x45c284[_0x407bde(0x1eb)]());}return Buffer[_0x407bde(0x17f)](await _0x3c1a3b[_0x407bde(0x187)]());}catch(_0xc0b39e){if(_0xc0b39e instanceof Error&&_0xc0b39e[_0x407bde(0x1d1)]===_0x407bde(0x1ff))throw CliErrors[_0x407bde(0x213)](_0x407bde(0x19e)+_0x45c284[_0x407bde(0x1eb)]());throw _0xc0b39e;}finally{clearTimeout(_0x4ff8ec);}}export async function getBffEndpointContract(_0x38f079,_0x995fdf){const _0x3f13c4=a105_0x1b62;if(_0x995fdf==='functions')throw CliErrors[_0x3f13c4(0x219)](_0x3f13c4(0x20c)+_0x38f079+',\x20name='+_0x995fdf);const _0x5b9681=await apiRequest('/client/bff/endpoint/'+encodeURIComponent(_0x38f079)+'/'+encodeURIComponent(_0x995fdf)),_0x585d3c=_0x5b9681[_0x3f13c4(0x15a)];if(!_0x585d3c||typeof _0x585d3c!==_0x3f13c4(0x189)||Array['isArray'](_0x585d3c)||_0x585d3c['appCode']!==_0x38f079||_0x585d3c['functionName']!==_0x995fdf)throw CliErrors['validation'](_0x3f13c4(0x20c)+_0x38f079+_0x3f13c4(0x1c4)+_0x995fdf);return{'appCode':_0x585d3c[_0x3f13c4(0x1f9)],'functionName':_0x585d3c['functionName'],'description':_0x585d3c['description'],'version':_0x585d3c[_0x3f13c4(0x1f6)],'gmtModified':_0x585d3c['gmtModified']};}export async function getSqlQueryInfo(_0x3e6aee,_0x279da7){const _0x134276=a105_0x1b62,_0x5a24e1=await apiRequest(_0x134276(0x227),{'method':'POST','body':{'appCode':_0x3e6aee,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x279da7}}),_0x25abc9=_0x5a24e1[_0x134276(0x15a)],_0x27a6ea=_0x25abc9&&typeof _0x25abc9===_0x134276(0x189)&&_0x134276(0x1a7)in _0x25abc9?_0x25abc9['tableData']?.[0x0]:_0x25abc9&&typeof _0x25abc9===_0x134276(0x189)&&_0x134276(0x1c0)in _0x25abc9?_0x25abc9:undefined;if(!_0x27a6ea)throw CliErrors[_0x134276(0x219)](_0x134276(0x207)+_0x279da7);return _0x27a6ea;}export async function listApprovalTodo(_0x3628a8,_0x4b23ca=0x1,_0x3d3608=0x14){const _0x416256=a105_0x1b62,_0x5ab356=new URLSearchParams({'appCode':_0x3628a8,'currentPage':String(_0x4b23ca),'pageSize':String(_0x3d3608)}),_0x5386f3=await apiRequest(_0x416256(0x14e)+_0x5ab356['toString']());if(!_0x5386f3[_0x416256(0x15a)]||typeof _0x5386f3[_0x416256(0x15a)]!==_0x416256(0x189)||!Array['isArray'](_0x5386f3[_0x416256(0x15a)][_0x416256(0x201)]))throw CliErrors['apiError'](_0x416256(0x1a6));return _0x5386f3['data'];}export async function getApprovalTaskDetail(_0x5b5ffb,_0x43ff71){const _0x37ca02=a105_0x1b62,_0x1b7262=new URLSearchParams({'appCode':_0x43ff71}),_0x4879ca=await apiRequest(_0x37ca02(0x15d)+encodeURIComponent(_0x5b5ffb)+'?'+_0x1b7262[_0x37ca02(0x1eb)]());if(!_0x4879ca[_0x37ca02(0x15a)]||typeof _0x4879ca[_0x37ca02(0x15a)]!==_0x37ca02(0x189)||Array[_0x37ca02(0x218)](_0x4879ca['data']))throw CliErrors[_0x37ca02(0x213)](_0x37ca02(0x167));return _0x4879ca[_0x37ca02(0x15a)];}export async function approveApprovalTask(_0x383814){const _0x43c3bf=a105_0x1b62,_0x154399=await apiRequest(_0x43c3bf(0x1fd),{'method':_0x43c3bf(0x1fc),'body':_0x383814});return _0x154399[_0x43c3bf(0x15a)];}export async function transferApprovalTask(_0x3afc3f){const _0x2b6095=a105_0x1b62,_0x3615ca=await apiRequest(_0x2b6095(0x216),{'method':_0x2b6095(0x1fc),'body':_0x3afc3f});return _0x3615ca[_0x2b6095(0x15a)];}function a105_0x32ac(){const _0x160482=['Expected\x20the\x20server\x20data\x20field\x20to\x20be\x20an\x20array.','max','/client/app-config/getByKey?','Check\x20your\x20credentials\x20and\x20try\x20again.','warnings','Artifact\x20not\x20found:\x20id=','isJson','isInteger','API\x20error:\x20','file','applyUserList','Knowledge-base\x20entry\x20not\x20found:\x20id=','kind','Toolbox\x20error\x20code:\x20','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20canonical\x20sourceFingerprint.','from','/client/dataset/get-driven-data?code=','skill','Invalid\x20Skill\x20diagram\x20response:\x20absent\x20diagram\x20must\x20have\x20a\x20null\x20diagramRevision.','/client/dept/queryAppUser','Invalid\x20import\x20task\x20readback\x20response.','/client/permit/resource/batch-save-menu','image','arrayBuffer','confirmWarnings','object','valid','join','/client/knowledge-base/personal/list?appCode=','markdown','all','/client/permit/role/create','headers','/api/harness/apps/','error','/client/permit/dataset/permit-list','undefined','errors','toLowerCase','bytes','/client/permit/resource/get-menu-list','stringify','/validate','values','api-doc-generator','8jJDOYR','Request\x20timeout:\x20','searchParams','23658bLYbrb','favorite','application/zip','/client/permit/role/get-list','/client/','skillName','Invalid\x20approval\x20todo\x20response:\x20missing\x20records.','tableData','authRequired','application/octet-stream','resolvedSlug','newConfigFileName','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','Invalid\x20Skill\x20diagram\x20response:\x20missing\x20found\x20state.','entries','1967niTIuj','json','content','CUSTOM','append','currentPage','SkillHub\x20must\x20return\x20the\x20exact\x20SkillVersion\x20fingerprint\x20even\x20when\x20found=false.','/execute?appCode=','253683ggMWlB','packageBase64','Configure\x20accessKey\x20in\x20','skillCode','?appCode=','Toolbox\x20API\x20error','/client/permit/role/get-permit-list','abort','Invalid\x20notification\x20config\x20list\x20response.','sqlCode','/api/cli/v1/skills/','diagramBound','example',',\x20name=','DELETE','/client/permit/resource/batch-save-dataset','min','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','/client/artifact/','url','/client/permit/role/delete','pageSize','/client/user/loginUserInfo','displayName','/publish/validate','Download\x20failed:\x20','name','publishedVersion','trim','GET','errorCode','Invalid\x20app\x20config\x20value:\x20key=','diagramRevision','API\x20error\x20code:\x20','5249365nvceSf','/client/runtime-bff/personal/','status','/download','code','/client/knowledge-base/personal/','success','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/import-image-readback','/client/permit/page/get-one','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','/import-readback','namespace','cursor','base64','publish','Invalid\x20runtime\x20role\x20members\x20response:\x20roleList[','map','toString','NAMESPACE_ONLY','boolean','contentHash','/client/runtime-bff/personal/list?appCode=','download','\x20must\x20be\x20an\x20array.','appName','headlineVersion','6lODWLR','test','version','artifactType','1695245iAKCfw','appCode','/client/permit/dataset/list','diagram','POST','/client/flow/approve','replace','AbortError','size','records','limit','].applyUserList','diagramValidated','/api/node-toolbox/','api','SQL\x20query\x20not\x20found:\x20','runtime','type','/client/uploadFile','number','Backend\x20Function\x20not\x20found\x20or\x20inaccessible:\x20appCode=','slug','message','longTerm','application/json','tableName','8982232ByQPyC','apiError','string','1664409aaSFnk','/client/flow/task/transfer','10quygJf','isArray','validation','/client/artifact/list?','filter','msg','set','/api/v1/skills/','description','effective','PRIVATE','sourceFingerprint','text','items','/client/permit/user-role/get-user-list','Personal\x20Backend\x20Function\x20not\x20found:\x20id=','/client/sql/query','personal','/client/approve/todo?','permitList','/update','errorMsg','/versions/','signal','function','company','/import-contract','.zip','found','visibility','data','1242696OPznUH','source','/client/flow/task/','/client/menu/permit-list','/import-batch','Deploy\x20a\x20SkillHub\x20version\x20that\x20returns\x20diagramValidated/diagramBound\x20before\x20publishing\x20with\x20this\x20CLI.','Invalid\x20runtime\x20role\x20members\x20response:\x20','scope','invokeSource','/publish','SkillHub\x20API\x20error:\x20','summary','Invalid\x20approval\x20task\x20detail\x20response.','resolvedVersion','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/user-accounts/bind','userId','roleName','/client/notification/channel-config/list?','installableOnly','/client/permit/role/update'];a105_0x32ac=function(){return _0x160482;};return a105_0x32ac();}function isRemoteAppItem(_0x2c06ec){const _0xecf759=a105_0x1b62;return!!_0x2c06ec&&typeof _0x2c06ec===_0xecf759(0x189)&&typeof _0x2c06ec[_0xecf759(0x1f9)]===_0xecf759(0x214)&&typeof _0x2c06ec[_0xecf759(0x1f2)]===_0xecf759(0x214);}function extractRemoteAppItems(_0x3b82cf){const _0x2d9096=a105_0x1b62;if(Array['isArray'](_0x3b82cf))return _0x3b82cf[_0x2d9096(0x21b)](isRemoteAppItem);if(!_0x3b82cf||typeof _0x3b82cf!==_0x2d9096(0x189))throw CliErrors[_0x2d9096(0x213)](_0x2d9096(0x1ac));const _0xc9d77e=_0x3b82cf;if(Array[_0x2d9096(0x218)](_0xc9d77e[_0x2d9096(0x1a7)]))return _0xc9d77e[_0x2d9096(0x1a7)][_0x2d9096(0x21b)](isRemoteAppItem);if(_0xc9d77e[_0x2d9096(0x15a)]&&typeof _0xc9d77e[_0x2d9096(0x15a)]===_0x2d9096(0x189)){const _0x552e58=_0xc9d77e['data'];if(Array[_0x2d9096(0x218)](_0x552e58[_0x2d9096(0x1a7)]))return _0x552e58[_0x2d9096(0x1a7)][_0x2d9096(0x21b)](isRemoteAppItem);}throw CliErrors[_0x2d9096(0x213)](_0x2d9096(0x1c8));}export async function getMyApps(){const _0x258c41=a105_0x1b62,_0xdeec96=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0xdeec96[_0x258c41(0x15a)]);}export async function getLoginUserInfo(){const _0x4952ab=a105_0x1b62,_0x2e0808=await apiRequest(_0x4952ab(0x1cd));if(!_0x2e0808[_0x4952ab(0x15a)]||typeof _0x2e0808['data']!==_0x4952ab(0x189)||Array[_0x4952ab(0x218)](_0x2e0808[_0x4952ab(0x15a)]))throw CliErrors['apiError'](_0x4952ab(0x1e3));return _0x2e0808[_0x4952ab(0x15a)];}export const USER_ACCOUNT_BIND_PATH=a105_0x242631(0x16a);export async function bindExternalUserAccount(_0x48e628,_0x198191){const _0x1e03d5=a105_0x242631,_0x241c16=await apiRequest(USER_ACCOUNT_BIND_PATH,{'method':_0x1e03d5(0x1fc),'body':{'provider':_0x48e628,'accountId':_0x198191}});return _0x241c16[_0x1e03d5(0x15a)];}function runtimeSchedulePath(_0x6a54b6,_0x147a95=''){const _0x2c120b=a105_0x242631;return _0x2c120b(0x191)+encodeURIComponent(_0x6a54b6)+'/schedules'+_0x147a95;}export async function validateRuntimeSchedule(_0x173143,_0x54779e){const _0x2413ca=a105_0x242631,_0x1d60c3=await apiRequest(runtimeSchedulePath(_0x173143,_0x2413ca(0x19a)),{'method':'POST','body':_0x54779e});return _0x1d60c3['data'];}export async function createRuntimeSchedule(_0x376636,_0x94cb70){const _0xcc3c28=a105_0x242631,_0x4576ca=await apiRequest(runtimeSchedulePath(_0x376636),{'method':_0xcc3c28(0x1fc),'body':_0x94cb70});return _0x4576ca['data'];}export async function listRuntimeSchedules(_0x1a7cba,_0x342af2){const _0x4e63cc=a105_0x242631,_0x2d6f78=new URLSearchParams();_0x2d6f78['set']('kind',_0x342af2[_0x4e63cc(0x17c)]);if(_0x342af2['limit']!==undefined)_0x2d6f78[_0x4e63cc(0x21d)](_0x4e63cc(0x202),String(_0x342af2[_0x4e63cc(0x202)]));if(_0x342af2[_0x4e63cc(0x1e6)])_0x2d6f78['set'](_0x4e63cc(0x1e6),_0x342af2[_0x4e63cc(0x1e6)]);const _0x5d2203=_0x2d6f78['size']>0x0?'?'+_0x2d6f78[_0x4e63cc(0x1eb)]():'',_0x4f3735=await apiRequest(''+runtimeSchedulePath(_0x1a7cba)+_0x5d2203);return _0x4f3735[_0x4e63cc(0x15a)];}export async function getRuntimeSchedule(_0x54518d,_0x155a18){const _0x4b99f1=a105_0x242631,_0x1bc00d=await apiRequest(runtimeSchedulePath(_0x54518d,'/'+encodeURIComponent(_0x155a18)));return _0x1bc00d[_0x4b99f1(0x15a)];}export async function deleteRuntimeSchedule(_0x256004,_0x102500){const _0x52e25b=a105_0x242631,_0x4a08d0=await apiRequest(runtimeSchedulePath(_0x256004,'/'+encodeURIComponent(_0x102500)),{'method':_0x52e25b(0x1c5)});return _0x4a08d0[_0x52e25b(0x15a)];}export async function runRuntimeSchedule(_0x557d53,_0x14b470){const _0x383213=a105_0x242631,_0x459838=await apiRequest(runtimeSchedulePath(_0x557d53,'/'+encodeURIComponent(_0x14b470)+'/run'),{'method':_0x383213(0x1fc)});return _0x459838[_0x383213(0x15a)];}export async function listDatasets(_0xd22740,_0x29833d){const _0x1f733f=a105_0x242631,_0x18c38c=await apiRequest('/client/dataset/list',{'method':_0x1f733f(0x1fc),'body':{'appCode':_0xd22740,..._0x29833d?.[_0x1f733f(0x1dd)]&&{'code':_0x29833d['code']},..._0x29833d?.['name']&&{'name':_0x29833d[_0x1f733f(0x1d1)]},..._0x29833d?.[_0x1f733f(0x211)]&&{'tableName':_0x29833d[_0x1f733f(0x211)]}}});return extractList(_0x18c38c[_0x1f733f(0x15a)]);}export async function getDatasetDetail(_0x20df3e){const _0x2ed0e7=a105_0x242631,_0x59a8a7=await apiRequest(_0x2ed0e7(0x180)+encodeURIComponent(_0x20df3e));return _0x59a8a7['data'];}export async function getDatasetImportContract(_0x41bbfe,_0x150fc9){const _0x501578=a105_0x242631,_0x30e46c=await apiRequest(_0x501578(0x1a4)+encodeURIComponent(_0x41bbfe)+'/'+encodeURIComponent(_0x150fc9)+_0x501578(0x156),{'rejectRedirects':!![]});return _0x30e46c['data'];}export async function createDatasetImportBatch(_0x48ca04,_0x56621d,_0x5b9441){const _0x17cedc=a105_0x242631,_0xa95290=await apiRequest(_0x17cedc(0x1a4)+encodeURIComponent(_0x48ca04)+'/'+encodeURIComponent(_0x56621d)+_0x17cedc(0x15f),{'method':'POST','body':_0x5b9441,'rejectRedirects':!![]});return _0xa95290[_0x17cedc(0x15a)];}export async function readDatasetImportRows(_0x5290ee,_0x4bbf8b,_0x5b6eeb){const _0x3a20fa=a105_0x242631,_0xffe299=await apiRequest(_0x3a20fa(0x1a4)+encodeURIComponent(_0x5290ee)+'/'+encodeURIComponent(_0x4bbf8b)+'/import-readback',{'method':'POST','body':{'ids':_0x5b6eeb},'rejectRedirects':!![]});if(!_0xffe299[_0x3a20fa(0x15a)]||!Array[_0x3a20fa(0x218)](_0xffe299[_0x3a20fa(0x15a)][_0x3a20fa(0x224)]))throw CliErrors[_0x3a20fa(0x213)]('Invalid\x20import\x20readback\x20response.');return _0xffe299['data'][_0x3a20fa(0x224)];}export async function readDatasetImportTaskRows(_0x5c4ad7,_0x52cbed,_0x2d2559){const _0x3278c2=a105_0x242631,_0x6de822=await apiRequest(_0x3278c2(0x1a4)+encodeURIComponent(_0x5c4ad7)+'/'+encodeURIComponent(_0x52cbed)+_0x3278c2(0x1e4),{'method':_0x3278c2(0x1fc),'body':{'taskId':_0x2d2559},'rejectRedirects':!![]});if(!_0x6de822[_0x3278c2(0x15a)]||!Array[_0x3278c2(0x218)](_0x6de822[_0x3278c2(0x15a)][_0x3278c2(0x224)]))throw CliErrors[_0x3278c2(0x213)](_0x3278c2(0x184));return _0x6de822[_0x3278c2(0x15a)][_0x3278c2(0x224)];}export async function uploadDatasetImportImage(_0x47cd9f,_0x154ea5,_0x293355,_0x41c01c){const _0x44f174=a105_0x242631,_0xb085f4=new FormData();_0xb085f4['append']('importId',_0x293355),_0xb085f4[_0x44f174(0x1b3)](_0x44f174(0x1ee),_0x41c01c['contentHash']),_0xb085f4[_0x44f174(0x1b3)](_0x44f174(0x179),new Blob([new Uint8Array(_0x41c01c[_0x44f174(0x197)])],{'type':_0x41c01c[_0x44f174(0x209)]}),_0x44f174(0x186));const _0x5c676c=await apiFormRequest(_0x44f174(0x1a4)+encodeURIComponent(_0x47cd9f)+'/'+encodeURIComponent(_0x154ea5)+'/import-image',_0xb085f4,{'rejectRedirects':!![]});return _0x5c676c[_0x44f174(0x15a)];}export async function readDatasetImportImage(_0x16c3e0,_0x376a3f,_0x11a8e4,_0x13f7fa){const _0xc2fd54=a105_0x242631,_0x4c98f3=await apiRequest('/client/'+encodeURIComponent(_0x16c3e0)+'/'+encodeURIComponent(_0x376a3f)+_0xc2fd54(0x1e1),{'method':_0xc2fd54(0x1fc),'body':{'importId':_0x11a8e4,'contentHash':_0x13f7fa['contentHash'],'type':_0x13f7fa[_0xc2fd54(0x209)],'size':_0x13f7fa[_0xc2fd54(0x200)]},'rejectRedirects':!![]});return _0x4c98f3[_0xc2fd54(0x15a)];}export async function getDatasetSdkUsageDoc(_0x5667c3,_0x3522d7){const _0x1b3976=a105_0x242631,_0x2a547f=await toolboxRequest(_0x1b3976(0x19c),{'datasetCode':_0x5667c3,'appCode':_0x3522d7});return typeof _0x2a547f?.[_0x1b3976(0x18d)]===_0x1b3976(0x214)?_0x2a547f[_0x1b3976(0x18d)]:'';}export async function uploadRuntimeFile(_0x1d9f71,_0x491166){const _0x2730eb=a105_0x242631,_0x50f106=await readFile(_0x491166),_0x2133d5=new FormData();_0x2133d5['append'](_0x2730eb(0x1f9),_0x1d9f71),_0x2133d5['append']('file',new Blob([new Uint8Array(_0x50f106)]),basename(_0x491166));const _0x402a20=await apiFormRequest(_0x2730eb(0x20a),_0x2133d5);return _0x402a20[_0x2730eb(0x15a)];}export async function queryRuntimeFileUrl(_0x122c1e,_0x2f9e22={}){const _0x176662=a105_0x242631,_0x232785=await apiRequest('/client/queryFileUrl',{'method':_0x176662(0x1fc),'body':{'filePath':_0x122c1e,'downloadFlag':_0x2f9e22[_0x176662(0x1f0)]??![],..._0x2f9e22[_0x176662(0x20f)]?{'longTerm':!![]}:{}}});return _0x232785[_0x176662(0x15a)];}export async function recognizeRuntimeOcr(_0x5f5d71,_0x26d799){const _0x330728=a105_0x242631,_0x540762=await apiRequest('/client/ocr',{'method':_0x330728(0x1fc),'body':{'appCode':_0x5f5d71,'url':_0x26d799[_0x330728(0x1ca)],'type':_0x26d799[_0x330728(0x209)]}});return _0x540762['data'];}export async function getRuntimeAppConfigByKey(_0x3f9cc8,_0xc52dc1){const _0x288b13=a105_0x242631,_0x4f21a9=new URLSearchParams({'appCode':_0x3f9cc8,'key':_0xc52dc1}),_0x197bc8=await apiRequest(_0x288b13(0x172)+_0x4f21a9['toString']());if(typeof _0x197bc8[_0x288b13(0x15a)]!=='string')throw CliErrors[_0x288b13(0x219)](_0x288b13(0x1d6)+_0xc52dc1);return _0x197bc8[_0x288b13(0x15a)];}export async function listNotificationChannelConfigs(_0x2a20bc,_0x4bd9db){const _0x9f1be0=a105_0x242631,_0x588cf8=new URLSearchParams({'appCode':_0x2a20bc,'channelType':_0x4bd9db}),_0x264e7d=await apiRequest(_0x9f1be0(0x16d)+_0x588cf8[_0x9f1be0(0x1eb)]());if(!Array['isArray'](_0x264e7d[_0x9f1be0(0x15a)]))throw CliErrors[_0x9f1be0(0x213)](_0x9f1be0(0x1bf),_0x9f1be0(0x170));return _0x264e7d['data'];}export async function listRuntimeArtifacts(_0x48bc55,_0x33898c){const _0xeba883=a105_0x242631,_0x1d561e=new URLSearchParams({'appCode':_0x48bc55});if(_0x33898c?.['artifactType'])_0x1d561e[_0xeba883(0x21d)](_0xeba883(0x1f7),_0x33898c[_0xeba883(0x1f7)]);if(_0x33898c?.[_0xeba883(0x15c)])_0x1d561e['set'](_0xeba883(0x15c),_0x33898c['source']);if(_0x33898c?.[_0xeba883(0x1a1)]!==undefined)_0x1d561e['set']('favorite',String(_0x33898c[_0xeba883(0x1a1)]));const _0x2082b4=await apiRequest(_0xeba883(0x21a)+_0x1d561e[_0xeba883(0x1eb)]());return Array[_0xeba883(0x218)](_0x2082b4[_0xeba883(0x15a)])?_0x2082b4[_0xeba883(0x15a)]:[];}export async function getRuntimeArtifact(_0x5b8f46,_0x404357){const _0x2968d6=a105_0x242631,_0x3f365e=await apiRequest('/client/artifact/'+_0x5b8f46+_0x2968d6(0x1bb)+encodeURIComponent(_0x404357));if(!_0x3f365e[_0x2968d6(0x15a)])throw CliErrors[_0x2968d6(0x219)](_0x2968d6(0x175)+_0x5b8f46);return _0x3f365e[_0x2968d6(0x15a)];}export async function createRuntimeArtifact(_0x1873dc,_0x41cf00){const _0x3aad64=a105_0x242631,_0x53b009=await apiRequest('/client/artifact/create',{'method':_0x3aad64(0x1fc),'body':{'appCode':_0x1873dc,..._0x41cf00}});return _0x53b009[_0x3aad64(0x15a)];}export async function updateRuntimeArtifact(_0x4b82da,_0x56db79,_0x301c0e){const _0xdad2bb=a105_0x242631,_0x163862=await apiRequest(_0xdad2bb(0x1c9)+_0x4b82da+_0xdad2bb(0x150),{'method':_0xdad2bb(0x1fc),'body':{'appCode':_0x56db79,..._0x301c0e}});return _0x163862['data'];}export async function listPersonalBffs(_0x56602c){const _0x38e989=a105_0x242631,_0x3c4336=await apiRequest(_0x38e989(0x1ef)+encodeURIComponent(_0x56602c));return Array[_0x38e989(0x218)](_0x3c4336[_0x38e989(0x15a)])?_0x3c4336[_0x38e989(0x15a)]:[];}export async function getPersonalBff(_0x1c62bf,_0x12a751){const _0x4f2be9=a105_0x242631,_0x5df200=await apiRequest(_0x4f2be9(0x1da)+_0x1c62bf+_0x4f2be9(0x1bb)+encodeURIComponent(_0x12a751));if(!_0x5df200[_0x4f2be9(0x15a)])throw CliErrors[_0x4f2be9(0x219)](_0x4f2be9(0x226)+_0x1c62bf);return _0x5df200[_0x4f2be9(0x15a)];}export async function createPersonalBff(_0x471237,_0x16c149){const _0x1c9568=a105_0x242631,_0x284be3=await apiRequest('/client/runtime-bff/personal/create',{'method':_0x1c9568(0x1fc),'body':{'appCode':_0x471237,..._0x16c149}});return _0x284be3[_0x1c9568(0x15a)];}export async function updatePersonalBff(_0x1ba0ac,_0x153e42,_0x4488d1){const _0x449c36=a105_0x242631,_0x4dc6e8=await apiRequest(_0x449c36(0x1da)+_0x1ba0ac+_0x449c36(0x150),{'method':_0x449c36(0x1fc),'body':{'appCode':_0x153e42,..._0x4488d1}});return _0x4dc6e8['data'];}export async function executePersonalBff(_0x1228d2,_0x37a772,_0x147f5d){const _0x3ce7a2=a105_0x242631,_0x1647cc=await apiRequest(_0x3ce7a2(0x1da)+_0x1228d2+_0x3ce7a2(0x1b6)+encodeURIComponent(_0x37a772),{'method':_0x3ce7a2(0x1fc),'body':_0x147f5d});return _0x1647cc[_0x3ce7a2(0x15a)];}export async function listPersonalKnowledgeBaseItems(_0x24af3b){const _0x1afabe=a105_0x242631,_0x21413b=await apiRequest(_0x1afabe(0x18c)+encodeURIComponent(_0x24af3b));return Array['isArray'](_0x21413b[_0x1afabe(0x15a)])?_0x21413b[_0x1afabe(0x15a)]:[];}export async function getPersonalKnowledgeBaseItem(_0x4c7184,_0x4db0e2){const _0x3b031c=a105_0x242631,_0x52f323=await apiRequest('/client/knowledge-base/personal/'+_0x4c7184+_0x3b031c(0x1bb)+encodeURIComponent(_0x4db0e2));if(!_0x52f323[_0x3b031c(0x15a)])throw CliErrors[_0x3b031c(0x219)](_0x3b031c(0x17b)+_0x4c7184);return _0x52f323[_0x3b031c(0x15a)];}export async function createPersonalKnowledgeBaseItem(_0x46f947,_0x415065){const _0x393563=a105_0x242631,_0x49f33a=await apiRequest('/client/knowledge-base/personal/create',{'method':_0x393563(0x1fc),'body':{'appCode':_0x46f947,..._0x415065}});return _0x49f33a['data'];}export async function updatePersonalKnowledgeBaseItem(_0x2ae4a0,_0x1017e8,_0x32ca1a){const _0x9e3860=a105_0x242631,_0x3cc90e=await apiRequest(_0x9e3860(0x1de)+_0x2ae4a0+_0x9e3860(0x150),{'method':_0x9e3860(0x1fc),'body':{'appCode':_0x1017e8,..._0x32ca1a}});return _0x3cc90e[_0x9e3860(0x15a)];}export async function getRuntimeSkillByCode(_0x2455a4,_0x332a16){const _0x38014f=a105_0x242631,_0x49045f=await skillHubJsonRequest(_0x38014f(0x21e)+encodeURIComponent(_0x2455a4)+'/'+encodeURIComponent(_0x332a16),{'allowNotFound':!![]});return _0x49045f?skillHubRuntimeDetailToRuntimeSkill(_0x49045f):undefined;}export async function listRuntimeSkills(_0x243302){const _0x5b7a1b=a105_0x242631,_0x48fa57=await skillHubJsonRequest('/api/runtime/v1/namespaces/'+encodeURIComponent(_0x243302[_0x5b7a1b(0x1f9)])+'/skills',{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x243302[_0x5b7a1b(0x1f9)],_0x48fa57,_0x243302[_0x5b7a1b(0x162)]??_0x5b7a1b(0x18e),_0x243302['code'],_0x243302[_0x5b7a1b(0x16e)]);}export async function listPersonalRuntimeSkills(_0x23dcbe){const _0xee86ca=a105_0x242631;return(await listRuntimeSkills({'appCode':_0x23dcbe,'scope':_0xee86ca(0x228)}))[_0xee86ca(0x228)];}export async function listCompanyRuntimeSkills(_0x24c59f){return(await listRuntimeSkills({'appCode':_0x24c59f,'scope':'company'}))['company'];}export async function listVisibleRuntimeSkills(_0x437fba){const _0x46fc0d=a105_0x242631;return(await listRuntimeSkills({'appCode':_0x437fba,'scope':_0x46fc0d(0x18e)}))[_0x46fc0d(0x220)];}export async function createPersonalRuntimeSkill(_0x599079,_0x31de07,_0x401807={}){const _0x77c3ca=a105_0x242631;return publishRuntimeSkill(_0x599079,_0x31de07,{'visibility':'PRIVATE','confirmWarnings':_0x401807[_0x77c3ca(0x188)]});}export async function updatePersonalRuntimeSkill(_0x6ee189,_0x426115,_0x2d8917,_0x230472={}){const _0x22519d=a105_0x242631;return publishRuntimeSkill(_0x426115,{..._0x2d8917,'skillCode':_0x2d8917[_0x22519d(0x1ba)]??_0x6ee189},{'visibility':'PRIVATE','confirmWarnings':_0x230472['confirmWarnings']});}export async function publishCompanyRuntimeSkill(_0x1c9b6b,_0x3984a3,_0x391a89={}){const _0x525d00=a105_0x242631;return publishRuntimeSkill(_0x1c9b6b,_0x3984a3,{'visibility':_0x525d00(0x1ec),'confirmWarnings':_0x391a89[_0x525d00(0x188)]});}export async function validateRuntimeSkillPublish(_0x5560d3,_0x453136,_0x3d41c9){const _0x2aa755=a105_0x242631,_0x26170e=buildRuntimeSkillPublishForm(_0x453136,_0x3d41c9[_0x2aa755(0x159)]),_0x385777=await skillHubJsonRequest(_0x2aa755(0x1c1)+encodeURIComponent(_0x5560d3)+_0x2aa755(0x1cf),{'method':_0x2aa755(0x1fc),'body':_0x26170e});return assertJointDiagramAcknowledged(_0x453136[_0x2aa755(0x1fb)],_0x385777[_0x2aa755(0x204)],_0x2aa755(0x219)),{'valid':_0x385777[_0x2aa755(0x18a)]===!![],'errors':Array[_0x2aa755(0x218)](_0x385777[_0x2aa755(0x195)])?_0x385777[_0x2aa755(0x195)]:[],'warnings':Array['isArray'](_0x385777[_0x2aa755(0x174)])?_0x385777[_0x2aa755(0x174)]:[],'resolvedSlug':_0x385777[_0x2aa755(0x1aa)],'resolvedVersion':_0x385777[_0x2aa755(0x168)],'diagramValidated':_0x385777[_0x2aa755(0x204)]===!![]};}export async function validateRuntimeSkillVersionDiagram(_0x244406,_0x5c8010,_0x453d68,_0x362b8a,_0x4fc676){const _0x1ee53b=a105_0x242631;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x244406,_0x5c8010,_0x453d68,_0x1ee53b(0x19a)),{'method':_0x1ee53b(0x1fc),'query':{'scope':_0x362b8a},'headers':{'Content-Type':_0x1ee53b(0x210)},'body':JSON[_0x1ee53b(0x199)](_0x4fc676)});}export async function putRuntimeSkillVersionDiagram(_0x117ff1,_0x51347c,_0x13f5e4,_0x238f5e,_0x7c9ab4){const _0x25fba0=a105_0x242631;return skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x117ff1,_0x51347c,_0x13f5e4),{'method':'PUT','query':{'scope':_0x238f5e},'headers':{'Content-Type':_0x25fba0(0x210)},'body':JSON[_0x25fba0(0x199)](_0x7c9ab4)});}export async function getRuntimeSkillVersionDiagram(_0x55e262,_0x386473,_0xe8cd6d,_0x4410e3){const _0x12212e=a105_0x242631,_0x44008=await skillHubJsonRequest(runtimeSkillVersionDiagramPath(_0x55e262,_0x386473,_0xe8cd6d),{'query':{'scope':_0x4410e3}});if(typeof _0x44008['found']!==_0x12212e(0x1ed))throw CliErrors[_0x12212e(0x213)](_0x12212e(0x1ad));const _0x6f06c2=_0x44008[_0x12212e(0x222)];if(typeof _0x6f06c2!=='string'||!/^sha256:[0-9a-f]{64}$/[_0x12212e(0x1f5)](_0x6f06c2))throw CliErrors['apiError'](_0x12212e(0x17e),_0x12212e(0x1b5));const _0x34daea=_0x44008[_0x12212e(0x1d7)];if(_0x44008[_0x12212e(0x158)]&&(!Number[_0x12212e(0x177)](_0x34daea)||Number(_0x34daea)<0x1))throw CliErrors[_0x12212e(0x213)]('Invalid\x20Skill\x20diagram\x20response:\x20found\x20diagram\x20has\x20no\x20positive\x20diagramRevision.');if(!_0x44008['found']&&_0x34daea!==undefined&&_0x34daea!==null)throw CliErrors['apiError'](_0x12212e(0x182));const _0x14708c=_0x44008[_0x12212e(0x158)]?Number(_0x34daea):null;return{..._0x44008,'sourceFingerprint':_0x6f06c2,'diagramRevision':_0x14708c,'expectedDiagramRevision':_0x14708c??0x0};}export async function downloadRuntimeSkillPackage(_0x4904c9,_0x292b55,_0x19ba45,_0x3b81f9){const _0x35b8b8=a105_0x242631;void _0x4904c9;const _0x4e622e=_0x3b81f9?_0x35b8b8(0x1c1)+encodeURIComponent(_0x19ba45)+'/'+encodeURIComponent(_0x292b55)+'/versions/'+encodeURIComponent(_0x3b81f9)+_0x35b8b8(0x1dc):_0x35b8b8(0x1c1)+encodeURIComponent(_0x19ba45)+'/'+encodeURIComponent(_0x292b55)+_0x35b8b8(0x1dc);return skillHubBinaryRequest(_0x4e622e);}async function publishRuntimeSkill(_0x3d9074,_0x4ea08f,_0x448e08){const _0xa6ec44=a105_0x242631,_0xd4099a=buildRuntimeSkillPublishForm(_0x4ea08f,_0x448e08[_0xa6ec44(0x159)]),_0x500fa1=await skillHubJsonRequest(_0xa6ec44(0x1c1)+encodeURIComponent(_0x3d9074)+_0xa6ec44(0x164),{'method':_0xa6ec44(0x1fc),'query':{'confirmWarnings':_0x448e08[_0xa6ec44(0x188)]===!![]?!![]:undefined},'body':_0xd4099a});return assertJointDiagramAcknowledged(_0x4ea08f['diagram'],_0x500fa1[_0xa6ec44(0x1c2)],_0xa6ec44(0x1e8)),{'appCode':_0x500fa1[_0xa6ec44(0x1e5)]??_0x3d9074,'skillCode':_0x500fa1['slug']??_0x4ea08f[_0xa6ec44(0x1ba)]??'','skillName':_0x4ea08f[_0xa6ec44(0x1a5)]??_0x500fa1['slug']??_0x4ea08f['skillCode'],'description':_0x4ea08f[_0xa6ec44(0x21f)],'scope':skillHubVisibilityToScope(_0x500fa1[_0xa6ec44(0x159)]??_0x448e08[_0xa6ec44(0x159)])??'personal','version':_0x500fa1[_0xa6ec44(0x1f6)]??_0x4ea08f['version'],'tags':_0x4ea08f['tags'],'content':_0x4ea08f[_0xa6ec44(0x1b1)],'diagramBound':_0x500fa1[_0xa6ec44(0x1c2)]===!![]};}function assertJointDiagramAcknowledged(_0x29b047,_0x3fa62e,_0x4ab2f1){const _0x40edb2=a105_0x242631;if(!_0x29b047||_0x3fa62e===!![])return;throw CliErrors['apiError']('SkillHub\x20does\x20not\x20support\x20atomic\x20Skill\x20diagram\x20'+_0x4ab2f1+'.',_0x40edb2(0x160));}function buildRuntimeSkillPublishForm(_0x419745,_0x50bfd0){const _0x53a8a5=a105_0x242631,_0x43bda0=new FormData();return _0x43bda0['set'](_0x53a8a5(0x179),runtimeSkillPackageFile(_0x419745)),_0x419745[_0x53a8a5(0x1a5)]?.[_0x53a8a5(0x1d3)]()&&_0x43bda0[_0x53a8a5(0x21d)](_0x53a8a5(0x1ce),_0x419745[_0x53a8a5(0x1a5)][_0x53a8a5(0x1d3)]()),_0x43bda0[_0x53a8a5(0x21d)](_0x53a8a5(0x159),_0x50bfd0),_0x419745[_0x53a8a5(0x1fb)]&&_0x43bda0[_0x53a8a5(0x21d)](_0x53a8a5(0x1fb),new Blob([JSON[_0x53a8a5(0x199)](_0x419745[_0x53a8a5(0x1fb)])],{'type':_0x53a8a5(0x210)})),_0x43bda0;}function runtimeSkillVersionDiagramPath(_0x413887,_0x134933,_0x577ea7,_0x41a77e=''){const _0x3ffddb=a105_0x242631;return'/api/cli/v1/skills/'+encodeURIComponent(_0x413887)+'/'+encodeURIComponent(_0x134933)+_0x3ffddb(0x152)+encodeURIComponent(_0x577ea7)+'/diagram'+_0x41a77e;}function runtimeSkillPackageFile(_0x26b027){const _0xbdeb7=a105_0x242631;if(!_0x26b027['packageBase64'])throw CliErrors[_0xbdeb7(0x219)]('Missing\x20Skill\x20package\x20payload.');const _0x186c08=Buffer[_0xbdeb7(0x17f)](_0x26b027[_0xbdeb7(0x1b8)],_0xbdeb7(0x1e7)),_0x10f950=new Blob([_0x186c08],{'type':_0xbdeb7(0x1a2)}),_0x5e2d0c=(_0x26b027[_0xbdeb7(0x1ba)]||_0xbdeb7(0x181))+_0xbdeb7(0x157);if(typeof File!==_0xbdeb7(0x194))return new File([_0x10f950],_0x5e2d0c,{'type':'application/zip'});return _0x10f950;}function normalizeSkillHubRuntimeListResponse(_0x3f2152,_0x4ce864,_0x15fbae,_0x531ffe,_0x30f0f4=![]){const _0x50a174=a105_0x242631,_0x1b2a9e=Array['isArray'](_0x4ce864)?_0x4ce864:Array['isArray'](_0x4ce864?.[_0x50a174(0x224)])?_0x4ce864[_0x50a174(0x224)]:[],_0x454693=_0x531ffe?.[_0x50a174(0x1d3)](),_0x46b2e3=_0x1b2a9e['filter'](_0x21751a=>!_0x454693||_0x21751a['slug']===_0x454693)[_0x50a174(0x21b)](_0x3565fb=>!_0x30f0f4||_0x3565fb['publishedVersion']?.[_0x50a174(0x1db)]==='PUBLISHED'&&Boolean(_0x3565fb['publishedVersion'][_0x50a174(0x1f6)]?.['trim']()))[_0x50a174(0x1ea)](skillHubRuntimeItemToRuntimeSkill)['filter'](_0x259b0a=>Boolean(_0x259b0a)),_0x45d0a3=_0x46b2e3[_0x50a174(0x21b)](_0x3dbae5=>_0x3dbae5['scope']===_0x50a174(0x228)),_0x85e278=_0x46b2e3[_0x50a174(0x21b)](_0x112de0=>_0x112de0[_0x50a174(0x162)]===_0x50a174(0x155));return{'appCode':_0x3f2152,'personal':_0x15fbae===_0x50a174(0x155)?[]:_0x45d0a3,'company':_0x15fbae===_0x50a174(0x228)?[]:_0x85e278,'effective':buildEffectiveRuntimeSkills(_0x45d0a3,_0x85e278,_0x15fbae)};}function skillHubRuntimeItemToRuntimeSkill(_0x2e5d6f){const _0x132263=a105_0x242631,_0xf803ba=_0x2e5d6f[_0x132263(0x20d)]?.[_0x132263(0x1d3)](),_0x31bd83=skillHubVisibilityToScope(_0x2e5d6f[_0x132263(0x159)]);if(!_0xf803ba||!_0x31bd83)return undefined;return{'id':_0x2e5d6f['id'],'appCode':_0x2e5d6f[_0x132263(0x1e5)],'skillCode':_0xf803ba,'skillName':_0x2e5d6f[_0x132263(0x1ce)]??_0xf803ba,'description':_0x2e5d6f[_0x132263(0x166)],'example':_0x2e5d6f[_0x132263(0x1c3)],'scope':_0x31bd83,'version':skillHubRuntimeItemVersion(_0x2e5d6f),'status':_0x2e5d6f[_0x132263(0x1db)]};}function skillHubRuntimeDetailToRuntimeSkill(_0xdcc11c){const _0x305de1=a105_0x242631,_0x92ee7a=_0xdcc11c['slug']?.['trim']();if(!_0x92ee7a)return undefined;return{'id':_0xdcc11c['id'],'appCode':_0xdcc11c[_0x305de1(0x1e5)],'skillCode':_0x92ee7a,'skillName':_0xdcc11c[_0x305de1(0x1ce)]??_0x92ee7a,'description':_0xdcc11c[_0x305de1(0x166)],'example':_0xdcc11c['example'],'scope':skillHubVisibilityToScope(_0xdcc11c[_0x305de1(0x159)])??_0xdcc11c[_0x305de1(0x159)]?.[_0x305de1(0x196)](),'version':skillHubRuntimeItemVersion(_0xdcc11c),'status':_0xdcc11c['status']};}function skillHubVisibilityToScope(_0x517ed4){const _0x351b30=a105_0x242631;if(_0x517ed4===_0x351b30(0x221))return _0x351b30(0x228);if(_0x517ed4===_0x351b30(0x1ec))return _0x351b30(0x155);return undefined;}function skillHubRuntimeItemVersion(_0x30a7de){const _0x36cc3b=a105_0x242631;return _0x30a7de[_0x36cc3b(0x1d2)]?.[_0x36cc3b(0x1f6)]??_0x30a7de[_0x36cc3b(0x1f3)]?.[_0x36cc3b(0x1f6)]??_0x30a7de['ownerPreviewVersion']?.['version'];}function buildEffectiveRuntimeSkills(_0x56d586,_0xb153f1,_0x11da5b){const _0x2b8140=a105_0x242631;if(_0x11da5b===_0x2b8140(0x228))return _0x56d586;if(_0x11da5b===_0x2b8140(0x155))return _0xb153f1;const _0x5b5d83=new Map();for(const _0x1e5f7e of _0xb153f1){_0x5b5d83[_0x2b8140(0x21d)](_0x1e5f7e[_0x2b8140(0x1ba)],_0x1e5f7e);}for(const _0xbb52f3 of _0x56d586){_0x5b5d83[_0x2b8140(0x21d)](_0xbb52f3[_0x2b8140(0x1ba)],_0xbb52f3);}return Array[_0x2b8140(0x17f)](_0x5b5d83[_0x2b8140(0x19b)]());}function normalizeRuntimeSkillListResponse(_0x6ff18d,_0x157476){const _0x58c8e7=a105_0x242631;if(Array[_0x58c8e7(0x218)](_0x157476)){const _0x53b80d=_0x157476[_0x58c8e7(0x21b)](_0x3e793a=>_0x3e793a[_0x58c8e7(0x162)]==='personal'),_0x67e98b=_0x157476[_0x58c8e7(0x21b)](_0x35bfdf=>_0x35bfdf[_0x58c8e7(0x162)]===_0x58c8e7(0x155));return{'appCode':_0x6ff18d,'personal':_0x53b80d,'company':_0x67e98b,'effective':[..._0x67e98b,..._0x53b80d]};}return{'appCode':_0x157476?.[_0x58c8e7(0x1f9)]??_0x6ff18d,'personal':Array[_0x58c8e7(0x218)](_0x157476?.[_0x58c8e7(0x228)])?_0x157476[_0x58c8e7(0x228)]:[],'company':Array[_0x58c8e7(0x218)](_0x157476?.[_0x58c8e7(0x155)])?_0x157476[_0x58c8e7(0x155)]:[],'effective':Array[_0x58c8e7(0x218)](_0x157476?.[_0x58c8e7(0x220)])?_0x157476['effective']:[]};}function normalizeRuntimeRoleUserList(_0x56409f,_0x12e3f9){const _0x36e39e=a105_0x242631;if(!Array[_0x36e39e(0x218)](_0x56409f))throw CliErrors[_0x36e39e(0x213)](_0x36e39e(0x161)+_0x12e3f9+_0x36e39e(0x1f1));return _0x56409f['map']((_0x40efea,_0x19c4b2)=>{const _0x54d4c9=_0x36e39e;if(!_0x40efea||typeof _0x40efea!=='object'||Array[_0x54d4c9(0x218)](_0x40efea))throw CliErrors[_0x54d4c9(0x213)]('Invalid\x20runtime\x20role\x20members\x20response:\x20'+_0x12e3f9+'['+_0x19c4b2+']\x20must\x20be\x20an\x20object.');const _0x2c5111=_0x40efea,_0x18674c=normalizePositiveSafeInteger(_0x2c5111[_0x54d4c9(0x16b)]);if(_0x18674c===undefined)throw CliErrors['apiError']('Invalid\x20runtime\x20role\x20members\x20response:\x20'+_0x12e3f9+'['+_0x19c4b2+'].userId\x20must\x20be\x20a\x20positive\x20safe\x20integer\x20or\x20numeric\x20string.');return{..._0x2c5111,'userId':_0x18674c};});}function normalizeRuntimeRoleUsersResponse(_0xed53ca){const _0x57ecc1=a105_0x242631;return extractList(_0xed53ca)[_0x57ecc1(0x1ea)]((_0x5c405,_0x2f8708)=>{const _0x20a820=_0x57ecc1;if(!_0x5c405||typeof _0x5c405!=='object'||Array[_0x20a820(0x218)](_0x5c405))throw CliErrors['apiError'](_0x20a820(0x1e9)+_0x2f8708+']\x20must\x20be\x20an\x20object.');const _0xdd3939=_0x5c405;return{..._0xdd3939,'userList':normalizeRuntimeRoleUserList(_0xdd3939['userList'],'roleList['+_0x2f8708+'].userList'),..._0xdd3939['applyUserList']===undefined?{}:{'applyUserList':normalizeRuntimeRoleUserList(_0xdd3939[_0x20a820(0x17a)],'roleList['+_0x2f8708+_0x20a820(0x203))}};});}export async function listRuntimeAppRoles(_0x43bffc,_0x5b155e={}){const _0x5215d1=a105_0x242631,_0x38f219=_0x5b155e[_0x5215d1(0x1b4)]??0x1,_0x248783=Math[_0x5215d1(0x1c7)](Math[_0x5215d1(0x171)](_0x5b155e[_0x5215d1(0x1cc)]??0x64,0x1),0x64),_0x247294=await apiRequest(_0x5215d1(0x1a3),{'method':_0x5215d1(0x1fc),'body':{'appCode':_0x43bffc,..._0x5b155e[_0x5215d1(0x16c)]?{'roleName':_0x5b155e[_0x5215d1(0x16c)]}:{},'currentPage':_0x38f219,'pageSize':_0x248783}});return{'items':extractList(_0x247294[_0x5215d1(0x15a)]),'paging':extractPaging(_0x247294[_0x5215d1(0x15a)])};}export async function createRuntimeAppRole(_0x2afeb7){const _0x184470=a105_0x242631,_0x534ca4=await apiRequest(_0x184470(0x18f),{'method':_0x184470(0x1fc),'body':{'roleType':_0x184470(0x1b2),..._0x2afeb7}});return _0x534ca4[_0x184470(0x15a)];}export async function updateRuntimeAppRole(_0x23121b){const _0x34d2c9=a105_0x242631,_0x56b321=await apiRequest(_0x34d2c9(0x16f),{'method':'POST','body':_0x23121b});return _0x56b321[_0x34d2c9(0x15a)];}export async function deleteRuntimeAppRole(_0x579162){const _0x577754=a105_0x242631,_0xb4094d=await apiRequest(_0x577754(0x1cb),{'method':'POST','body':{'id':_0x579162}});return _0xb4094d[_0x577754(0x15a)];}export async function listRuntimeRoleUsers(_0x4e23a4){const _0x2650b3=a105_0x242631,_0x19ad3b=await apiRequest(_0x2650b3(0x225),{'method':'POST','body':{'appCode':_0x4e23a4}});return normalizeRuntimeRoleUsersResponse(_0x19ad3b[_0x2650b3(0x15a)]);}export async function updateRuntimeRoleUsers(_0x6f99d3,_0x46919c){const _0x49fd12=a105_0x242631,_0x2cadf8=await apiRequest('/client/permit/user-role/update-user-list',{'method':_0x49fd12(0x1fc),'body':{'appCode':_0x6f99d3,'roleList':_0x46919c}});return _0x2cadf8[_0x49fd12(0x15a)];}export async function listRuntimeAppUsers(_0x774321){const _0x2b4986=a105_0x242631,_0x573211=await apiRequest(_0x2b4986(0x183)+runtimePermitQuery({'appCode':_0x774321}));return extractList(_0x573211['data']);}function runtimePermitQuery(_0x1a3dcd){const _0x3b3523=a105_0x242631,_0x53c90f=new URLSearchParams();for(const [_0x22e9be,_0x597847]of Object[_0x3b3523(0x1ae)](_0x1a3dcd))_0x53c90f[_0x3b3523(0x21d)](_0x22e9be,String(_0x597847));return'?'+_0x53c90f['toString']();}export async function listRuntimePermitRoles(_0x50379d,_0xe34f39={}){const _0x3f93f3=a105_0x242631,_0x505f33=await apiRequest(_0x3f93f3(0x1bd),{'method':_0x3f93f3(0x1fc),'body':{'appCode':_0x50379d,..._0xe34f39}});return extractList(_0x505f33[_0x3f93f3(0x15a)]);}export async function getRuntimePagePermit(_0x5e6b1d){const _0x2c6d64=a105_0x242631,_0x4a12ae=await apiRequest(_0x2c6d64(0x1e2)+runtimePermitQuery({'menuId':_0x5e6b1d}));return _0x4a12ae[_0x2c6d64(0x15a)];}export async function saveRuntimePagePermit(_0x4e3ec6){const _0x2f6444=a105_0x242631,_0x181fa5=await apiRequest('/client/permit/page/save',{'method':_0x2f6444(0x1fc),'body':_0x4e3ec6});return _0x181fa5['data'];}export async function getRuntimeRoleMenuResources(_0x21b397,_0x5a0e8c){const _0x3ae94c=a105_0x242631,_0x217269=await apiRequest(_0x3ae94c(0x198),{'method':'POST','body':{'appCode':_0x21b397,'roleId':_0x5a0e8c}});return extractList(_0x217269['data']);}export async function listRuntimeMenuRolePermits(_0x2632c2){const _0x12b06e=a105_0x242631,_0x371b68=await apiRequest(_0x12b06e(0x15e)+runtimePermitQuery({'appCode':_0x2632c2}));return Array[_0x12b06e(0x218)](_0x371b68[_0x12b06e(0x15a)]?.[_0x12b06e(0x14f)])?_0x371b68[_0x12b06e(0x15a)][_0x12b06e(0x14f)]:[];}export async function saveRuntimeMenuRolePermits(_0x5e0fbd,_0x373b23){const _0x3f4b75=a105_0x242631,_0x25b9af=await apiRequest(_0x3f4b75(0x185),{'method':_0x3f4b75(0x1fc),'body':{'appCode':_0x5e0fbd,'permitList':_0x373b23}});return _0x25b9af[_0x3f4b75(0x15a)];}export async function listRuntimeDatasetPermits(_0x14d085,_0x58b5f0){const _0x9a000b=a105_0x242631,_0x44a4cf=await apiRequest(_0x9a000b(0x1fa)+runtimePermitQuery({'appCode':_0x14d085,'roleId':_0x58b5f0}));return Array[_0x9a000b(0x218)](_0x44a4cf[_0x9a000b(0x15a)]?.[_0x9a000b(0x14f)])?_0x44a4cf['data']['permitList']:[];}export async function listRuntimeDatasetRolePermits(_0x48a214){const _0x45e955=a105_0x242631,_0x42077f=await apiRequest(_0x45e955(0x193)+runtimePermitQuery({'appCode':_0x48a214}));return Array[_0x45e955(0x218)](_0x42077f['data']?.[_0x45e955(0x14f)])?_0x42077f[_0x45e955(0x15a)][_0x45e955(0x14f)]:[];}export async function saveRuntimeDatasetRolePermits(_0x17fc6a,_0x3f98c0){const _0x4700dc=a105_0x242631,_0x386904=await apiRequest(_0x4700dc(0x1c6),{'method':_0x4700dc(0x1fc),'body':{'appCode':_0x17fc6a,'permitList':_0x3f98c0}});return _0x386904['data'];}