@profoundlogic/coderflow-server 0.4.9 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/README.md +16 -158
  2. package/dist/README.md +16 -158
  3. package/dist/base-image/agent-wrapper.sh +1 -1
  4. package/dist/capture-screenshot.mjs +34 -0
  5. package/dist/coder-server.js +1 -1
  6. package/dist/config/cli-models.json +4 -3
  7. package/dist/config.js +1 -1
  8. package/dist/lib/agent-keepalive.js +1 -1
  9. package/dist/lib/agent-models.js +1 -1
  10. package/dist/lib/api-keys.js +1 -1
  11. package/dist/lib/apiKeys.js +1 -1
  12. package/dist/lib/app-server-ports.js +1 -1
  13. package/dist/lib/auto-judge.js +1 -1
  14. package/dist/lib/automation-service.js +1 -1
  15. package/dist/lib/basic-auth.js +1 -1
  16. package/dist/lib/bindings.js +1 -1
  17. package/dist/lib/build-history.js +1 -1
  18. package/dist/lib/build-output-service.js +1 -1
  19. package/dist/lib/build-scheduler.js +1 -1
  20. package/dist/lib/build-service.js +1 -1
  21. package/dist/lib/ca-certificates.js +1 -1
  22. package/dist/lib/claude-oauth-refresh.js +1 -1
  23. package/dist/lib/cli/build.js +1 -1
  24. package/dist/lib/cli/cleanup-users.js +1 -0
  25. package/dist/lib/cli/config-command.js +1 -1
  26. package/dist/lib/cli/config.js +1 -1
  27. package/dist/lib/cli/create-user.js +1 -1
  28. package/dist/lib/cli/grant-admin.js +1 -0
  29. package/dist/lib/cli/init.js +1 -1
  30. package/dist/lib/cli/jira.js +1 -1
  31. package/dist/lib/cli/license.js +1 -1
  32. package/dist/lib/cli/list-roles.js +1 -0
  33. package/dist/lib/cli/list-users.js +1 -0
  34. package/dist/lib/cli/server-manager.js +1 -1
  35. package/dist/lib/cli/set-password.js +1 -0
  36. package/dist/lib/config-migration.js +1 -1
  37. package/dist/lib/container-credential-sync.js +1 -1
  38. package/dist/lib/container-tokens.js +1 -1
  39. package/dist/lib/data-dir.js +1 -1
  40. package/dist/lib/deployment-history.js +1 -1
  41. package/dist/lib/deployment-service.js +1 -1
  42. package/dist/lib/docker-utils.js +1 -1
  43. package/dist/lib/email.js +1 -1
  44. package/dist/lib/emailTemplates.js +1 -1
  45. package/dist/lib/entitlement.js +1 -1
  46. package/dist/lib/external-connections.js +1 -1
  47. package/dist/lib/fetch-utils.js +1 -1
  48. package/dist/lib/git-commit-details-route.js +1 -1
  49. package/dist/lib/git-history-diff-guardrails.js +1 -1
  50. package/dist/lib/git-provider-service.js +1 -1
  51. package/dist/lib/git-provider-setup/github-setup-handler.js +1 -1
  52. package/dist/lib/git-provider-setup/index.js +1 -1
  53. package/dist/lib/git-provider-setup/setup-factory.js +1 -1
  54. package/dist/lib/git-provider-setup/setup-interface.js +1 -1
  55. package/dist/lib/git-providers/azure-devops-provider.js +1 -1
  56. package/dist/lib/git-providers/github-app-provider.js +1 -1
  57. package/dist/lib/git-providers/index.js +1 -1
  58. package/dist/lib/git-providers/provider-factory.js +1 -1
  59. package/dist/lib/git-providers/provider-interface.js +1 -1
  60. package/dist/lib/github-urls.js +1 -1
  61. package/dist/lib/group-objective-linking.js +1 -1
  62. package/dist/lib/ibmi-sync.js +1 -0
  63. package/dist/lib/jira-client.js +1 -1
  64. package/dist/lib/judge-blinding.js +1 -1
  65. package/dist/lib/logger.js +1 -1
  66. package/dist/lib/migration-to-scoped-rbac.js +1 -1
  67. package/dist/lib/model-fetcher.js +1 -1
  68. package/dist/lib/notifications.js +1 -1
  69. package/dist/lib/objective-context.js +1 -1
  70. package/dist/lib/oidc-auth.js +1 -1
  71. package/dist/lib/oidc-device-flow.js +1 -1
  72. package/dist/lib/passwordTokens.js +1 -1
  73. package/dist/lib/permission-resolver.js +1 -1
  74. package/dist/lib/pin-cascade.js +1 -1
  75. package/dist/lib/provider-accounts.js +1 -1
  76. package/dist/lib/provider-oauth.js +1 -1
  77. package/dist/lib/provider-profile.js +1 -1
  78. package/dist/lib/provider-token-refresh.js +1 -1
  79. package/dist/lib/rbac-user-state.js +1 -1
  80. package/dist/lib/request-url.js +1 -1
  81. package/dist/lib/rewind.js +1 -1
  82. package/dist/lib/role-definitions.js +1 -1
  83. package/dist/lib/roles.js +1 -1
  84. package/dist/lib/secrets.js +1 -1
  85. package/dist/lib/setup-repo-git-auth.js +1 -1
  86. package/dist/lib/state-capture.js +1 -1
  87. package/dist/lib/static-files.js +1 -1
  88. package/dist/lib/task-name-format.js +1 -1
  89. package/dist/lib/task-name-generator.js +1 -1
  90. package/dist/lib/task-source-metadata.js +1 -1
  91. package/dist/lib/teams.js +1 -1
  92. package/dist/lib/user-git-oauth.js +1 -1
  93. package/dist/lib/user-git-tokens.js +1 -1
  94. package/dist/lib/users.js +1 -1
  95. package/dist/middleware/requireAuth.js +1 -1
  96. package/dist/middleware/requireInit.js +1 -1
  97. package/dist/middleware/requirePermission.js +1 -1
  98. package/dist/package.json +1 -1
  99. package/dist/playwright.config.js +1 -1
  100. package/dist/routes/apiKeys.js +1 -1
  101. package/dist/routes/auth-oidc.js +1 -1
  102. package/dist/routes/auth.js +1 -1
  103. package/dist/routes/automations.js +1 -1
  104. package/dist/routes/bindings.js +1 -1
  105. package/dist/routes/build.js +1 -1
  106. package/dist/routes/containers.js +1 -1
  107. package/dist/routes/deploy-task.js +1 -1
  108. package/dist/routes/environment-management.js +1 -1
  109. package/dist/routes/environments.js +1 -1
  110. package/dist/routes/external-skills.js +1 -1
  111. package/dist/routes/git-credentials.js +1 -1
  112. package/dist/routes/git-oauth.js +1 -1
  113. package/dist/routes/git-provider-setup.js +1 -1
  114. package/dist/routes/health.js +1 -1
  115. package/dist/routes/jira.js +1 -1
  116. package/dist/routes/objective-management.js +1 -1
  117. package/dist/routes/password.js +1 -1
  118. package/dist/routes/prompt.js +1 -1
  119. package/dist/routes/provider-auth.js +1 -1
  120. package/dist/routes/qa.js +1 -1
  121. package/dist/routes/roles.js +1 -1
  122. package/dist/routes/settings.js +1 -1
  123. package/dist/routes/skill-management.js +1 -1
  124. package/dist/routes/skills.js +1 -1
  125. package/dist/routes/tasks.js +1 -1
  126. package/dist/routes/teams.js +1 -1
  127. package/dist/routes/templates.js +1 -1
  128. package/dist/routes/test-task.js +1 -1
  129. package/dist/routes/test.js +1 -1
  130. package/dist/routes/users.js +1 -1
  131. package/dist/routes/visualizations.js +1 -1
  132. package/dist/scripts/create-user.js +1 -1
  133. package/dist/scripts/migrate-config-to-data-dir.js +1 -1
  134. package/dist/scripts/sync_to_ibmi.sh +204 -0
  135. package/dist/start.js +1 -1
  136. package/dist/web-ui/public/activity-detail-modal.js +1 -1
  137. package/dist/web-ui/public/activity-feed.js +1 -1
  138. package/dist/web-ui/public/activity-formatters.js +1 -1
  139. package/dist/web-ui/public/agent-event-parser.js +1 -1
  140. package/dist/web-ui/public/app.js +1 -1
  141. package/dist/web-ui/public/approve-dialog.js +1 -1
  142. package/dist/web-ui/public/automation-links.js +1 -1
  143. package/dist/web-ui/public/automation-schedule.js +1 -1
  144. package/dist/web-ui/public/comments-widget.js +1 -1
  145. package/dist/web-ui/public/diff-utils.js +1 -1
  146. package/dist/web-ui/public/docs/admin/environments.md +1 -0
  147. package/dist/web-ui/public/docs/tasks/approval-and-deployment.md +36 -0
  148. package/dist/web-ui/public/environments.html +1 -1
  149. package/dist/web-ui/public/environments.js +1 -1
  150. package/dist/web-ui/public/feedback-widget.js +1 -1
  151. package/dist/web-ui/public/git-history-lazy-utils.js +1 -1
  152. package/dist/web-ui/public/git-history.js +1 -1
  153. package/dist/web-ui/public/git-status.js +1 -1
  154. package/dist/web-ui/public/index.html +2 -2
  155. package/dist/web-ui/public/index.js +1 -1
  156. package/dist/web-ui/public/login.js +1 -1
  157. package/dist/web-ui/public/markdown-editor.js +1 -1
  158. package/dist/web-ui/public/markdown-file-editor.js +1 -1
  159. package/dist/web-ui/public/modal-maximize.js +1 -1
  160. package/dist/web-ui/public/notifications.js +1 -1
  161. package/dist/web-ui/public/pr-dialog.js +1 -1
  162. package/dist/web-ui/public/roles.html +3 -2
  163. package/dist/web-ui/public/roles.js +1 -1
  164. package/dist/web-ui/public/server-health.js +1 -1
  165. package/dist/web-ui/public/settings.css +3 -2
  166. package/dist/web-ui/public/settings.html +0 -1
  167. package/dist/web-ui/public/settings.js +1 -1
  168. package/dist/web-ui/public/setup-password.js +1 -1
  169. package/dist/web-ui/public/skills.js +1 -1
  170. package/dist/web-ui/public/sse-client.js +1 -1
  171. package/dist/web-ui/public/sse-shared-worker.js +1 -1
  172. package/dist/web-ui/public/styles.css +110 -12
  173. package/dist/web-ui/public/task.html +80 -1
  174. package/dist/web-ui/public/task.js +1 -1
  175. package/dist/web-ui/public/teams.html +76 -81
  176. package/dist/web-ui/public/teams.js +1 -1
  177. package/dist/web-ui/public/terminal.js +1 -1
  178. package/dist/web-ui/public/theme.js +1 -1
  179. package/dist/web-ui/public/users.html +12 -11
  180. package/dist/web-ui/public/users.js +1 -1
  181. package/dist/web-ui/public/variant-grouping.js +1 -1
  182. package/package.json +1 -1
  183. package/dist/lib/cli/migrate-rbac.js +0 -1
  184. package/dist/lib/scoped-rbac-migration-runner.js +0 -1
  185. package/dist/scripts/migrate-to-scoped-rbac.js +0 -2
@@ -1 +1 @@
1
- function _0x16f3da(_0x4e552b,_0x184bef,_0x3ab5b1,_0x17d524){const _0x11dcac={_0x34603b:0xde};return _0x28d7(_0x17d524- -_0x11dcac._0x34603b,_0x184bef);}function _0x2deab3(_0x380173,_0xfb29f4,_0x5cf599,_0x5e3d47){return _0x28d7(_0x380173- -0xd,_0xfb29f4);}(function(_0x32cdeb,_0x4388f0){const _0x8caccc={_0x11ccc9:0x430,_0x37cee3:0x416,_0x2799f5:0x432,_0x2384aa:0x455,_0x426b3b:0x442,_0x2c153d:0x426,_0x19a549:0x43a,_0x2b2a78:0x42a,_0x428111:0x43c,_0x4045d4:0x173,_0x178c59:0x3ca,_0x425988:0x3b4,_0x48c13d:0x122,_0x48c29c:0x439,_0x6591c1:0x40c,_0x5f0097:0x3f8,_0x3e70e9:0x159,_0x5b6e03:0x158,_0x41a662:0x3e0,_0x262e24:0x3d2,_0xc46f1e:0x3f9,_0x22400a:0x14a};function _0x1d7caf(_0x1fce1f,_0x52b571,_0x389f30,_0xa10692){return _0x28d7(_0x389f30- -0xc1,_0xa10692);}function _0x1c9d05(_0x4f6e18,_0x529c18,_0xa95640,_0x18355a){return _0x28d7(_0x4f6e18-0x1ef,_0xa95640);}const _0x4ff236=_0x32cdeb();while(!![]){try{const _0xb55d55=parseInt(_0x1c9d05(0x414,_0x8caccc._0x11ccc9,_0x8caccc._0x37cee3,0x43f))/(-0xe05+-0x1720+-0x76e*-0x5)*(-parseInt(_0x1c9d05(_0x8caccc._0x2799f5,_0x8caccc._0x2384aa,_0x8caccc._0x426b3b,_0x8caccc._0x2c153d))/(-0x699+0x1*-0x1105+0x17a0))+-parseInt(_0x1c9d05(_0x8caccc._0x19a549,_0x8caccc._0x2b2a78,_0x8caccc._0x428111,0x455))/(-0x21d7+0x132b*-0x1+0x3505)*(-parseInt(_0x1d7caf(0x12b,_0x8caccc._0x4045d4,0x15d,0x18d))/(0x799+-0x1ae3*-0x1+-0x2278))+-parseInt(_0x1c9d05(_0x8caccc._0x178c59,_0x8caccc._0x425988,0x3a8,0x409))/(0x115*0x10+0x2072*-0x1+0x1af*0x9)*(parseInt(_0x1d7caf(0x112,0x137,_0x8caccc._0x48c13d,0x131))/(0x1edb+-0xd91*-0x1+-0x2c66))+parseInt(_0x1c9d05(_0x8caccc._0x48c29c,_0x8caccc._0x6591c1,0x405,0x424))/(-0x5*-0x501+-0x3f5+-0xf*0x167)*(-parseInt(_0x1c9d05(0x430,0x422,0x46d,_0x8caccc._0x5f0097))/(-0x35*-0xb9+-0x1307*0x1+-0x133e))+parseInt(_0x1d7caf(0x171,0x123,_0x8caccc._0x3e70e9,_0x8caccc._0x5b6e03))/(-0x77*-0x2+-0x19c1*0x1+-0x18dc*-0x1)+parseInt(_0x1c9d05(_0x8caccc._0x41a662,_0x8caccc._0x262e24,_0x8caccc._0xc46f1e,0x404))/(0x15b5*-0x1+-0x17cc+0x2d8b)+parseInt(_0x1d7caf(_0x8caccc._0x22400a,0x191,0x15b,0x18a))/(0x1179+-0x481+0x44f*-0x3);if(_0xb55d55===_0x4388f0)break;else _0x4ff236['push'](_0x4ff236['shift']());}catch(_0x5ef300){_0x4ff236['push'](_0x4ff236['shift']());}}}(_0x299b,-0x1*0x16a5c9+-0x118f3+-0x1*-0x247a0f));import{promises as _0x122f64}from'fs';import _0x354b75 from'path';import _0x149fcd from'crypto';import{DATA_DIR}from'./data-dir.js';const CA_CERTS_CONFIG_FILE=_0x2deab3(0x1d0,0x20c,0x1ea,0x1f5)+_0x16f3da(0x136,0xfb,0x157,0x11d);let _customCaCertsCache=undefined;export async function loadCaCertsConfig(){const _0x2030e0={_0x51fa82:0x55c,_0x39dccd:0x56d,_0x22fd3f:0x569,_0x40722b:0x10d,_0x222512:0x51b,_0x2e734b:0x554,_0x3073c1:0x131,_0xec2152:0x53c,_0xd84280:0x53b,_0xc93ad4:0x532,_0x5db86c:0x53d,_0x5ee34:0x55d,_0x2b2c96:0x588,_0x248c07:0x59c,_0x5cac6e:0x57f,_0x5f298d:0x14d,_0x23c91e:0x129,_0x1682f2:0xfa,_0x529e27:0x57f,_0x2775df:0x57e},_0x346cc9={_0x4a2703:0xf},_0x228c90={};_0x228c90['iIbnP']=_0x381af3(_0x2030e0._0x51fa82,0x548,_0x2030e0._0x39dccd,_0x2030e0._0x22fd3f),_0x228c90[_0x408db5(0xe0,_0x2030e0._0x40722b,0x10d,0xe5)]=function(_0x4b4f3a,_0x4cf1fe){return _0x4b4f3a===_0x4cf1fe;};const _0x354a0f=_0x228c90,_0x3aa0ee=_0x354b75['join'](DATA_DIR,CA_CERTS_CONFIG_FILE);function _0x408db5(_0x734f7d,_0x4cbc4e,_0x31a01d,_0x54081e){return _0x16f3da(_0x734f7d-0x87,_0x734f7d,_0x31a01d-0x149,_0x4cbc4e-_0x346cc9._0x4a2703);}function _0x381af3(_0xe59e3d,_0x41521b,_0x8f3ef5,_0x294169){return _0x2deab3(_0x8f3ef5-0x36f,_0x294169,_0x8f3ef5-0x4c,_0x294169-0x61);}try{const _0x55209a=await _0x122f64[_0x381af3(0x54c,_0x2030e0._0x222512,_0x2030e0._0x2e734b,0x589)](_0x3aa0ee,_0x354a0f[_0x408db5(0x127,_0x2030e0._0x3073c1,0xfc,0x11a)]);return JSON[_0x381af3(_0x2030e0._0xec2152,_0x2030e0._0xd84280,_0x2030e0._0xc93ad4,_0x2030e0._0x5db86c)](_0x55209a);}catch(_0x178531){if(_0x354a0f[_0x381af3(0x54f,0x562,0x53e,0x541)]('xlAtA',_0x381af3(_0x2030e0._0x5ee34,0x5bb,_0x2030e0._0x2b2c96,_0x2030e0._0x248c07))){const _0x3bfd81={};return _0x3bfd81[_0x381af3(0x554,_0x2030e0._0x5cac6e,0x54b,0x51b)]='',_0x3bfd81[_0x408db5(0x124,0x132,_0x2030e0._0x5f298d,0x152)]=[],_0x3bfd81;}else{if(_0x178531[_0x408db5(0x14e,_0x2030e0._0x23c91e,_0x2030e0._0x1682f2,0x147)]==='ENOENT'){const _0x3651c4={};return _0x3651c4[_0x381af3(0x58d,_0x2030e0._0x529e27,0x591,_0x2030e0._0x2775df)+'es']=[],_0x3651c4;}throw _0x178531;}}}export async function saveCaCertsConfig(_0x14c6a4){const _0x3e4543={_0x72a0b9:0x108,_0xe0801e:0xc9,_0x209177:0x2d4,_0x2c8156:0x30d,_0x420625:0x2f6,_0x35269f:0x30c,_0x54446c:0x149,_0x426dab:0x148},_0xabc53f={_0x4dc25a:0x147,_0x4294cc:0x1b3},_0x1133a8={_0x238914:0x12a,_0x48c719:0x113},_0x3ac761=_0x354b75[_0x59c26b(-0x105,-0xef,-_0x3e4543._0x72a0b9,-_0x3e4543._0xe0801e)](DATA_DIR,CA_CERTS_CONFIG_FILE);function _0x59c26b(_0x4b77c8,_0x43948c,_0x145670,_0x31667f){return _0x2deab3(_0x145670- -0x338,_0x43948c,_0x145670-_0x1133a8._0x238914,_0x31667f-_0x1133a8._0x48c719);}const _0x40db2f={};function _0x495bb8(_0x3e028a,_0x4b3c5d,_0x158f64,_0x3358cf){return _0x16f3da(_0x3e028a-_0xabc53f._0x4dc25a,_0x158f64,_0x158f64-0x39,_0x4b3c5d-_0xabc53f._0x4294cc);}_0x40db2f[_0x495bb8(0x29a,_0x3e4543._0x209177,_0x3e4543._0x2c8156,0x2b3)]=!![],await _0x122f64[_0x495bb8(0x2fc,_0x3e4543._0x420625,_0x3e4543._0x35269f,0x2ec)](DATA_DIR,_0x40db2f),await _0x122f64[_0x59c26b(-0x129,-_0x3e4543._0x54446c,-0x167,-_0x3e4543._0x426dab)](_0x3ac761,JSON[_0x59c26b(-0x101,-0x144,-0x132,-0x15b)](_0x14c6a4,null,-0xc0*-0xc+0x59*-0x58+-0x2*-0xacd)),_customCaCertsCache=undefined;}function _0x299b(){const _0x503272=['BNvSBcaYpIyXia','BguGzM9Yie5Vza','CvDzwhi','zxj0AwzPy2f0zq','lMnYDca8pcaNqW','DxbKyxrL','AM9PBG','rMfPBgvKihrVia','y2f0id4Gl3vZCG','zcbqru0GyNvUza','mtzQuwrQu3e','q0eTq0vsvfnDia','mtu0nJGYEun6wNHo','ChvIBgLJs2v5','tK9erv9fwfrsqq','Agv4','DhjPBq','BhvKzsbftKqGBq','DxnYl2XVy2fSlW','nJe4mJG5z3PtqKT0','m1nQBu9oDq','ienfuLrjrKLdqq','u1jMBvu','CgfYC2u','ign1C3rVBsbdqq','rMDZDvy','wxbdrvi','B3jNyw5PEMf0Aq','zxmVy29KzxjMBa','zsbTDxn0igjLia','EgLoDhm','CgDgqwO','y2vkD2C','veuTls0Tlq','mZq1nwvqrxj4CW','wMXIwM4','y2eTy2vYDgLMAq','D3jPDgvgAwXL','Aw5KzxHpzG','zxHWB3j0','Ddi1nG','zs5QCYbot0rfxW','mtKZoe9JyLzOzq','BwvZC2fNzq','t1bvrNy','l3nOyxjLl2nHlq','CMvWBgfJzq','A0f0q1y','C2nYAxb0','CNvUigfZihjVBW','ignLCNrPzMLJyq','t0fVy0q','zMLUz2vYChjPBG','C3rHDgu','CLvHCwO','C3bRAq','ntC1ndGXmfnktKzLuG','CMvHzezPBgu','zgv0ywLSCW','Bg9JywXPDhK','y29UDgvUDa','BKvUsK4','wxvWBLO','y29Kzq','y29TBw9UtMfTzq','Aw4GuevnigzVCG','y2f0zxmUANnVBG','AwnHDgu','BwfW','CYbMywLSzwqIia','CMvJDxjZAxzL','AuLIBLa','zg9JA2vYrw52','C3vIC3rYAw5N','sMzeu1O','C3vIAMvJDa','y291BNrYEq','rvjux0vprICk','uePAzLC','rvjuuWPJyxqGlW','uM1ss3G','Dg9mB3DLCKnHCW','DxrMltG','D2DYs2y','q2vYDgLMAwnHDa','CMuVy2eTy2vYDa','DgvZicHTDxn0ia','uxbivuK','zsbTDxn0igLUyW','vLLlthm','C3rYAw5NAwz5','cNvWzgf0zs1Jyq','BgvUz3rO','zxjYB3i','C2HHCMuVy2eTyW','AxnfEhbPCMvK','ls0Tls0','nZG2mtqZn1P4u21Wrq','cKnfuLrFru9g','mJG0mtm4og94C3bUsG','CuDzuNm','mZK4ntCYnhLtsfzluG','Aw5JBhvKzxm','rKTwELm','BwTKAxi','CgfYC2uGy2vYDa','B2rLCMzSB3CT','zxHWAxjLC09U','mtLWvxfHDxm','C3rqq0K','zgLNzxn0','DMfSAwq','BvzTAwi','t0PrBvy','cImGsw5ZDgfSBa','yxjRzxi','DgvZid4Vzgv2lW','CY9JB2rLCMzSBW','y2vYDgLMAwnHDa','B25HBfvUAxq','FhWGzwnOBYaIwW','y3jLyxrLsgfZAa','uKvmwNe','pIyYcImGq3jLyq','DMfSAwruBW','A0HvA04'];_0x299b=function(){return _0x503272;};return _0x299b();}export async function getCustomCaCerts(){const _0x400486={_0x414735:0x3ed,_0x39ddac:0x16a,_0x40c95e:0x165,_0x26fb30:0x150,_0x41155b:0x149,_0x169844:0x146,_0x611fe2:0x1a6,_0x1859dd:0x17c,_0x54348b:0x1a9,_0x412ced:0x173,_0x260cd5:0x115,_0x1553ce:0x149,_0x126b8a:0x3fd,_0x3cd877:0x19f,_0x5e92a7:0x159,_0x586cac:0x166,_0x439436:0x3cf,_0x8078a:0x3a3,_0x3e8e85:0x3ee,_0x344980:0x3f5,_0x29c723:0x40d,_0x3f6a02:0x416,_0x2fcd21:0x41c,_0x56dc6:0x3f5,_0x163a65:0x17f,_0x5cf3bf:0x127,_0x26b1ab:0x14d,_0x466381:0x151,_0x1571d6:0x17f},_0x1c18bf={_0x4ec489:0xde,_0x42c09d:0x37},_0x41b1fd={_0x3b674e:0x2c5},_0x29c3db={'FgsuV':_0x425c88(_0x400486._0x414735,0x3db,0x415,0x3f4)+'e\x20must\x20inc'+_0x1c57a5(-_0x400486._0x39ddac,-0x11c,-0x10e,-0x134)+_0x1c57a5(-0x164,-_0x400486._0x40c95e,-0x143,-_0x400486._0x26fb30),'YpCER':function(_0x4be48b,_0x316142){return _0x4be48b!==_0x316142;},'tNgad':_0x1c57a5(-_0x400486._0x41155b,-0x125,-0x10c,-_0x400486._0x169844),'RELZq':_0x1c57a5(-_0x400486._0x611fe2,-0x193,-0x19d,-0x197),'ftOkh':function(_0x2b18a9){return _0x2b18a9();}};if(_0x29c3db[_0x1c57a5(-_0x400486._0x1859dd,-0x1b5,-0x170,-_0x400486._0x54348b)](_customCaCertsCache,undefined)){if(_0x29c3db['YpCER'](_0x29c3db['tNgad'],_0x29c3db[_0x1c57a5(-_0x400486._0x412ced,-_0x400486._0x260cd5,-0x165,-_0x400486._0x1553ce)]))return _customCaCertsCache;else{const _0x564f96={};return _0x564f96[_0x425c88(0x409,0x403,_0x400486._0x126b8a,0x40f)]=![],_0x564f96[_0x1c57a5(-0x16a,-_0x400486._0x3cd877,-_0x400486._0x5e92a7,-_0x400486._0x586cac)]=_0x29c3db[_0x425c88(_0x400486._0x439436,_0x400486._0x8078a,_0x400486._0x3e8e85,0x3b9)],_0x564f96;}}const _0xd5fcb4=await _0x29c3db['ftOkh'](loadCaCertsConfig);_customCaCertsCache=_0xd5fcb4[_0x425c88(_0x400486._0x344980,0x448,_0x400486._0x29c723,_0x400486._0x3f6a02)+'es']?.[_0x425c88(_0x400486._0x2fcd21,0x40a,_0x400486._0x56dc6,0x3fc)]?_0xd5fcb4[_0x1c57a5(-_0x400486._0x163a65,-0x148,-_0x400486._0x5cf3bf,-_0x400486._0x26b1ab)+'es'][_0x1c57a5(-_0x400486._0x466381,-0x150,-0x1b0,-_0x400486._0x1571d6)](_0x2c202f=>_0x2c202f[_0x1c57a5(-0x16f,-0x151,-0x1b0,-0x187)]):[];function _0x425c88(_0x11cf4b,_0x13b841,_0xeee271,_0x51f536){return _0x16f3da(_0x11cf4b-0xba,_0xeee271,_0xeee271-0xff,_0x51f536-_0x41b1fd._0x3b674e);}function _0x1c57a5(_0x243cb7,_0x27c6c3,_0x7bdb42,_0x541a4f){return _0x16f3da(_0x243cb7-_0x1c18bf._0x4ec489,_0x7bdb42,_0x7bdb42-_0x1c18bf._0x42c09d,_0x541a4f- -0x29e);}return _customCaCertsCache;}function parseDN(_0x3ed722){const _0x551220={_0x2c00e8:0x165,_0x138ced:0x164,_0x471f1c:0x112,_0x1f60f3:0x188,_0x5c4057:0x1b8,_0x5063e3:0x209,_0x5125f1:0x201,_0x2cc7aa:0x268,_0x2a5d8a:0x17f,_0x58b382:0x153,_0x2efaf5:0x1b3,_0x10dd2e:0x142,_0x6e1a95:0x1db,_0x506394:0x22d,_0x42be15:0x1de,_0x546847:0x1ce,_0x21355d:0x179,_0xb2cc9c:0x1ac,_0x55cc8d:0x197,_0x41c206:0x1d3,_0x21d891:0x195,_0x1f8bf2:0x184,_0x382ef1:0x279,_0x1f9beb:0x28d,_0x373a5c:0x254,_0x2dfb53:0x285,_0x19d121:0x1fe,_0x47c548:0x1fd,_0x3c8d0d:0x24b,_0x203e21:0x213,_0x215b6e:0x16b,_0x509721:0x1c4,_0x23bc17:0x200,_0x1b3f0f:0x1d8,_0x2d2283:0x18c,_0x19615a:0x179,_0x4b20f0:0x21d,_0x1e3f53:0x1ae,_0xac3075:0x174,_0x12f72d:0x183,_0x110314:0x18d,_0x5b77c8:0x1aa,_0x59181b:0x1ca,_0x379156:0x1a8,_0x2ff5c3:0x253,_0x2a9a95:0x1f4},_0x3ff970={_0xce2a4c:0x14,_0x603567:0x2c},_0x36e4da={'PJZfW':function(_0x452de4,_0x54bdad){return _0x452de4(_0x54bdad);},'qGYRs':_0x5140ed(_0x551220._0x2c00e8,0x18b,0x17d,_0x551220._0x138ced),'yjWsi':function(_0x288d77,_0x1272c6){return _0x288d77===_0x1272c6;},'SRfmU':_0x574884(0x20e,0x214,0x240,0x236),'rdJan':_0x5140ed(_0x551220._0x471f1c,0x156,0x14e,_0x551220._0x1f60f3)+'on','mCfLi':_0x574884(_0x551220._0x5c4057,0x1c7,0x1db,_0x551220._0x5063e3)+_0x574884(_0x551220._0x5125f1,_0x551220._0x2cc7aa,0x237,0x23e),'VYKLs':_0x5140ed(_0x551220._0x2a5d8a,_0x551220._0x58b382,_0x551220._0x2a5d8a,_0x551220._0x2efaf5),'OJQmV':_0x5140ed(0x15a,0x138,0x168,_0x551220._0x10dd2e),'RmRKx':_0x574884(_0x551220._0x6e1a95,0x206,0x1fb,_0x551220._0x506394)},_0x96c232={};function _0x574884(_0x6ac71d,_0x4b9a7a,_0x5e583d,_0x48e407){return _0x2deab3(_0x5e583d-_0x3ff970._0xce2a4c,_0x6ac71d,_0x5e583d-0xfa,_0x48e407-_0x3ff970._0x603567);}function _0x5140ed(_0x2b5a96,_0x2ff606,_0x3185a4,_0x1bb985){return _0x16f3da(_0x2b5a96-0x16f,_0x2ff606,_0x3185a4-0x7e,_0x3185a4-0x58);}if(!_0x3ed722)return _0x96c232;const _0x1d903d=_0x3ed722['split']('\x0a');for(const _0x501243 of _0x1d903d){if(_0x574884(0x1f9,0x1a2,_0x551220._0x42be15,_0x551220._0x546847)!==_0x36e4da[_0x5140ed(_0x551220._0x21355d,_0x551220._0xb2cc9c,_0x551220._0x55cc8d,_0x551220._0x41c206)]){const _0x33bb88=_0x501243[_0x5140ed(_0x551220._0x2a5d8a,_0x551220._0x21d891,0x159,_0x551220._0x1f8bf2)]('=');if(_0x33bb88>0x59d*0x3+0x35+-0x110c){if(_0x36e4da['yjWsi'](_0x36e4da[_0x574884(_0x551220._0x382ef1,_0x551220._0x1f9beb,_0x551220._0x373a5c,_0x551220._0x2dfb53)],_0x574884(0x21e,0x1e1,_0x551220._0x19d121,0x238)))return _0x4d0107;else{const _0x3dde61=_0x501243[_0x574884(0x1e1,0x23e,0x209,_0x551220._0x47c548)](0x1acd+-0x1*0x256d+0xaa0,_0x33bb88)[_0x574884(_0x551220._0x3c8d0d,0x266,0x24e,_0x551220._0x203e21)](),_0x1635f8=_0x501243[_0x5140ed(0x159,_0x551220._0x215b6e,0x17c,0x197)](_0x33bb88+(-0x346+-0x1b0f+0x1e56))[_0x5140ed(0x196,_0x551220._0x509721,0x1c1,0x1a0)](),_0x1126aa={};_0x1126aa['CN']=_0x574884(0x233,0x1c6,_0x551220._0x23bc17,_0x551220._0x1b3f0f),_0x1126aa['O']=_0x36e4da['rdJan'],_0x1126aa['OU']=_0x36e4da['mCfLi'],_0x1126aa['C']=_0x36e4da[_0x5140ed(0x156,0x1bf,_0x551220._0x2d2283,_0x551220._0x19615a)],_0x1126aa['ST']=_0x36e4da[_0x574884(_0x551220._0x4b20f0,0x237,0x231,0x262)],_0x1126aa['L']=_0x36e4da[_0x5140ed(_0x551220._0x1e3f53,_0x551220._0xac3075,_0x551220._0x12f72d,0x185)];const _0x2e9f4b=_0x1126aa;_0x96c232[_0x2e9f4b[_0x3dde61]||_0x3dde61]=_0x1635f8;}}}else{const _0x537ef6=_0x36e4da[_0x5140ed(0x186,_0x551220._0x110314,0x181,_0x551220._0x5b77c8)](_0x386797,_0x22425b),_0x34ed71={};return _0x34ed71[_0x5140ed(0x1a5,0x1c6,0x1a2,0x1d3)]=_0x537ef6['valid'],_0x34ed71[_0x5140ed(_0x551220._0x59181b,0x175,0x190,_0x551220._0x379156)]=_0x537ef6[_0x574884(_0x551220._0x2ff5c3,0x212,_0x551220._0x4b20f0,_0x551220._0x2a9a95)],_0x34ed71;}}return _0x96c232;}export function parseCertificateDetails(_0x5d736f){const _0x56558a={_0x1e4014:0x453,_0x378541:0x3d7,_0x2439ac:0x3eb,_0xb01bfe:0x3fc,_0x5732ef:0x2ea,_0x227bd5:0x2b6,_0x444544:0x44e,_0x5c2308:0x422,_0x9855c6:0x45a,_0x3f575e:0x43d,_0xcb76d9:0x439,_0x14945b:0x457,_0x217ee5:0x43e,_0x2e18cb:0x458,_0x3e9e52:0x2e4,_0x1291c7:0x2d8,_0x37891d:0x2bc,_0x57cedf:0x299,_0x5c3046:0x2af,_0x5a3e6c:0x2a2,_0x21b5e2:0x269,_0x225359:0x29d,_0x411bf3:0x2c5,_0x5f4ef1:0x2ae,_0x48cc35:0x2cd,_0x5acc58:0x3e0,_0x5d1583:0x40b,_0x79e5f1:0x3f2,_0x37a05a:0x27f,_0x4d340b:0x2b6,_0x2749d3:0x477,_0x1e3cde:0x429,_0x3784f0:0x2ad,_0x5b22c8:0x27c,_0x4ffc77:0x3d6,_0x574490:0x443,_0x409a7c:0x278,_0x159c76:0x44c,_0x57ee0b:0x2ba,_0x56086c:0x2d2,_0x40fe38:0x2f1,_0x48845c:0x2c1,_0x78a0d5:0x25f,_0x66ded3:0x2a5,_0x5ba16c:0x261,_0x112995:0x2ae,_0x13f4db:0x279,_0x3e1d21:0x2a7,_0x146e54:0x42b,_0x34b116:0x2b1,_0x5a3f94:0x446,_0x40d519:0x459,_0x928e98:0x2e7,_0x2250f8:0x2e1,_0x4c4670:0x26b,_0x54f1a2:0x270,_0x16a736:0x2a9,_0x413c20:0x296,_0x47ba6c:0x436,_0x5414a1:0x40e,_0x139629:0x463,_0x16055e:0x2ef,_0x379a2e:0x287,_0x5573db:0x2a5,_0x2dd38d:0x462,_0x55e954:0x476,_0x11ba88:0x2e2,_0x535683:0x3de,_0x1e87d1:0x3f3,_0x30c071:0x290,_0x209be0:0x2a7,_0x55348c:0x2b4,_0x2cd1cb:0x2ee,_0x3ae49e:0x2c9,_0x4dc9b4:0x2df,_0x372712:0x2bf,_0x141dec:0x29b,_0x53fc6f:0x40c,_0x529595:0x3f5,_0x49f44e:0x3f6,_0x451b28:0x418},_0x3632b7={_0x217700:0x21,_0x5d6b1e:0x1ea,_0x478cd:0x17b},_0x55315f={_0x3d72d4:0x21e},_0x3654e2={'pgFAj':'-----BEGIN'+_0x4e4169(0x442,0x45d,_0x56558a._0x1e4014,0x42b)+_0x4e4169(_0x56558a._0x378541,_0x56558a._0x2439ac,0x410,_0x56558a._0xb01bfe),'FKVzS':'-----END\x20C'+'ERTIFICATE'+_0x3b39b1(0x287,_0x56558a._0x5732ef,_0x56558a._0x227bd5,0x2a0),'QpHUI':'Certificat'+_0x4e4169(_0x56558a._0x444544,_0x56558a._0x5c2308,0x42d,_0x56558a._0x9855c6)+_0x3b39b1(0x2dc,0x2bd,0x2e5,0x2d9)+_0x4e4169(0x40a,_0x56558a._0x3f575e,_0x56558a._0xcb76d9,0x419),'kAtCV':function(_0xd084b,_0x1ab129){return _0xd084b(_0x1ab129);},'nEnJN':'sha256','wgrKf':_0x3b39b1(0x2a6,0x283,0x28d,0x2a2),'WHAZS':_0x4e4169(0x421,_0x56558a._0x14945b,0x44f,0x464),'mVmib':function(_0x248555,_0x41f000){return _0x248555>_0x41f000;}};function _0x4e4169(_0x2fb321,_0x4361ce,_0x43a331,_0x95a1d0){return _0x2deab3(_0x4361ce-_0x55315f._0x3d72d4,_0x2fb321,_0x43a331-0x8b,_0x95a1d0-0x156);}function _0x3b39b1(_0x2ab9f6,_0x3d9ea0,_0x4885c9,_0x93edbf){return _0x16f3da(_0x2ab9f6-_0x3632b7._0x217700,_0x3d9ea0,_0x4885c9-_0x3632b7._0x5d6b1e,_0x4885c9-_0x3632b7._0x478cd);}try{const _0x13dda2=_0x5d736f[_0x4e4169(_0x56558a._0x217ee5,_0x56558a._0x2e18cb,0x446,0x46f)]();if(!_0x13dda2[_0x3b39b1(_0x56558a._0x3e9e52,_0x56558a._0x1291c7,_0x56558a._0x37891d,_0x56558a._0x57cedf)](_0x3654e2[_0x3b39b1(_0x56558a._0x5c3046,_0x56558a._0x5a3e6c,0x275,_0x56558a._0x21b5e2)])){const _0x46b03f={};return _0x46b03f[_0x3b39b1(_0x56558a._0x225359,0x2c1,_0x56558a._0x411bf3,_0x56558a._0x5f4ef1)]=![],_0x46b03f[_0x3b39b1(0x291,0x28c,0x2b3,_0x56558a._0x48cc35)]=_0x3b39b1(0x2d1,0x294,0x2aa,0x28c)+_0x4e4169(0x3f6,0x3e7,_0x56558a._0x5acc58,0x416)+_0x4e4169(0x447,_0x56558a._0x5d1583,_0x56558a._0x79e5f1,0x3eb)+'mat',_0x46b03f;}if(!_0x13dda2[_0x3b39b1(_0x56558a._0x37a05a,_0x56558a._0x4d340b,0x2bc,0x2f2)](_0x3654e2[_0x3b39b1(_0x56558a._0x57cedf,0x2d6,0x2bd,0x2d3)])){const _0x3fff34={};return _0x3fff34[_0x4e4169(0x41a,0x439,_0x56558a._0x2749d3,_0x56558a._0x1e3cde)]=![],_0x3fff34['error']=_0x3654e2[_0x3b39b1(0x29b,0x2db,_0x56558a._0x3784f0,_0x56558a._0x5b22c8)],_0x3fff34;}const _0x2ee060=new _0x149fcd['X509Certif'+(_0x4e4169(_0x56558a._0x4ffc77,0x40d,_0x56558a._0x574490,0x3da))](_0x13dda2),_0x551f11={'issuedTo':_0x3654e2[_0x3b39b1(_0x56558a._0x409a7c,0x28a,0x285,0x24e)](parseDN,_0x2ee060[_0x4e4169(_0x56558a._0x159c76,0x415,0x437,0x41f)]),'issuedBy':_0x3654e2[_0x3b39b1(_0x56558a._0x57ee0b,0x299,0x285,0x282)](parseDN,_0x2ee060['issuer']),'validityPeriod':{'issuedOn':_0x2ee060['validFrom'],'expiresOn':_0x2ee060[_0x3b39b1(0x2a8,0x2d9,_0x56558a._0x56086c,_0x56558a._0x40fe38)]},'fingerprints':{'certificate':_0x2ee060[_0x3b39b1(_0x56558a._0x48845c,0x2ad,0x28a,_0x56558a._0x78a0d5)+_0x3b39b1(0x284,0x266,0x27e,_0x56558a._0x66ded3)][_0x3b39b1(_0x56558a._0x5ba16c,0x256,0x284,_0x56558a._0x112995)](/:/g,'')[_0x3b39b1(_0x56558a._0x13f4db,0x29c,_0x56558a._0x3e1d21,0x2d8)+'e'](),'publicKey':_0x149fcd[_0x4e4169(0x47f,0x443,_0x56558a._0x146e54,0x40e)](_0x3654e2[_0x3b39b1(0x25c,0x269,0x293,_0x56558a._0x34b116)])[_0x4e4169(_0x56558a._0x5a3f94,0x44d,_0x56558a._0x40d519,0x488)](_0x2ee060[_0x3b39b1(_0x56558a._0x928e98,0x2e5,_0x56558a._0x2250f8,0x2a9)][_0x3b39b1(_0x56558a._0x4c4670,_0x56558a._0x54f1a2,0x27d,0x266)]({'type':_0x3654e2[_0x3b39b1(0x290,0x293,_0x56558a._0x16a736,0x26f)],'format':'der'}))[_0x3b39b1(0x2a0,_0x56558a._0x413c20,0x2c4,0x2cc)](_0x3654e2['WHAZS'])}},_0x203ef4=new Date(),_0x2f4533=new Date(_0x2ee060[_0x4e4169(_0x56558a._0x47ba6c,_0x56558a._0x5a3f94,_0x56558a._0x5414a1,0x454)]);_0x551f11[_0x4e4169(0x41a,0x429,_0x56558a._0x139629,_0x56558a._0x5d1583)]=_0x3654e2[_0x3b39b1(_0x56558a._0x16055e,0x2af,0x2c6,_0x56558a._0x379a2e)](_0x203ef4,_0x2f4533),_0x551f11[_0x3b39b1(_0x56558a._0x5573db,0x2fd,0x2c1,0x2b1)]=_0x2ee060[_0x4e4169(_0x56558a._0x2dd38d,0x446,_0x56558a._0x55e954,0x455)];const _0x271821={};return _0x271821[_0x3b39b1(0x2d9,0x2ae,0x2c5,_0x56558a._0x11ba88)]=!![],_0x271821[_0x4e4169(_0x56558a._0x535683,0x404,_0x56558a._0x1e87d1,0x43a)]=_0x551f11,_0x271821;}catch(_0x3cb243){const _0x3578b8={};return _0x3578b8[_0x3b39b1(0x2b3,_0x56558a._0x30c071,_0x56558a._0x411bf3,_0x56558a._0x209be0)]=![],_0x3578b8['error']=_0x3b39b1(0x302,_0x56558a._0x55348c,0x2db,_0x56558a._0x2cd1cb)+_0x3b39b1(_0x56558a._0x3ae49e,_0x56558a._0x4dc9b4,_0x56558a._0x372712,_0x56558a._0x141dec)+'ificate:\x20'+_0x3cb243[_0x4e4169(_0x56558a._0x53fc6f,_0x56558a._0x529595,_0x56558a._0x49f44e,_0x56558a._0x451b28)],_0x3578b8;}}function _0x28d7(_0x2fb544,_0x23f410){_0x2fb544=_0x2fb544-(-0x679+0x260f+0x1dc6*-0x1);const _0x30f13b=_0x299b();let _0x22b734=_0x30f13b[_0x2fb544];if(_0x28d7['nyxEXW']===undefined){var _0x249660=function(_0x4dbc28){const _0xc28d0c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xcbf6ef='',_0x45ad90='';for(let _0xc2ff03=-0xd20*-0x1+0x2*-0x6d9+0x92,_0x9aa3c5,_0x140e0c,_0x3e4bdb=-0xfa3*-0x1+0x3*-0x878+0x9c5*0x1;_0x140e0c=_0x4dbc28['charAt'](_0x3e4bdb++);~_0x140e0c&&(_0x9aa3c5=_0xc2ff03%(-0x2653+0x3*-0x3e0+0x1*0x31f7)?_0x9aa3c5*(0x1ec5+0x1*0x77e+0x2603*-0x1)+_0x140e0c:_0x140e0c,_0xc2ff03++%(-0xc98+0x2007+-0x136b*0x1))?_0xcbf6ef+=String['fromCharCode'](-0x1bf9+-0x23cf+0x40c7&_0x9aa3c5>>(-(0x1d4+0x2d2+-0x4a4)*_0xc2ff03&-0x83a+0x129f*0x1+0x1*-0xa5f)):0x236a*-0x1+-0x2*-0x11ae+0x7*0x2){_0x140e0c=_0xc28d0c['indexOf'](_0x140e0c);}for(let _0x54a7b6=-0xa66+0x1539+0x11*-0xa3,_0x13ca68=_0xcbf6ef['length'];_0x54a7b6<_0x13ca68;_0x54a7b6++){_0x45ad90+='%'+('00'+_0xcbf6ef['charCodeAt'](_0x54a7b6)['toString'](-0xccd+0xc38+0xf*0xb))['slice'](-(0x724+0x3*-0x3ab+0x3df));}return decodeURIComponent(_0x45ad90);};_0x28d7['JxZlWb']=_0x249660,_0x28d7['pkFAoA']={},_0x28d7['nyxEXW']=!![];}const _0x4b93e2=_0x30f13b[0x2641+0x56d+-0x2bae],_0x339d33=_0x2fb544+_0x4b93e2,_0x3e8582=_0x28d7['pkFAoA'][_0x339d33];return!_0x3e8582?(_0x22b734=_0x28d7['JxZlWb'](_0x22b734),_0x28d7['pkFAoA'][_0x339d33]=_0x22b734):_0x22b734=_0x3e8582,_0x22b734;}export function validateCertificate(_0x18a64b){const _0x24c9b8={_0x101c05:0x30e,_0x2813f8:0x393,_0x451190:0x32d,_0xe3c4a0:0x380,_0x1d47e8:0x369,_0x1a9cec:0x376,_0x3ffca8:0x346,_0x162d8d:0x357,_0x4b7508:0x329,_0x3a56fd:0x388},_0x58b0d1={_0x4279eb:0x132,_0x175d87:0x3a1},_0x570cfb={_0x4fe6d5:0x32},_0x2edc83={'rUaqj':function(_0x1b1721,_0x3c66f4){return _0x1b1721(_0x3c66f4);}},_0x174d95=_0x2edc83[_0x58712b(0x330,_0x24c9b8._0x101c05,0x32d,0x2f3)](parseCertificateDetails,_0x18a64b),_0x77e9e1={};_0x77e9e1[_0x58712b(0x369,_0x24c9b8._0x2813f8,_0x24c9b8._0x451190,_0x24c9b8._0xe3c4a0)]=_0x174d95[_0x58712b(_0x24c9b8._0x1d47e8,0x351,0x366,0x376)];function _0x58712b(_0x587964,_0x2f9b3e,_0x1b1c55,_0x32bfb7){return _0x16f3da(_0x587964-_0x570cfb._0x4fe6d5,_0x1b1c55,_0x1b1c55-0xe1,_0x587964-0x21f);}function _0x5fe898(_0x30c126,_0x4b0c4a,_0x4edad1,_0x2e0426){return _0x16f3da(_0x30c126-_0x58b0d1._0x4279eb,_0x4b0c4a,_0x4edad1-0x77,_0x4edad1-_0x58b0d1._0x175d87);}return _0x77e9e1[_0x58712b(0x357,_0x24c9b8._0x1a9cec,_0x24c9b8._0x3ffca8,0x332)]=_0x174d95[_0x58712b(_0x24c9b8._0x162d8d,_0x24c9b8._0x4b7508,_0x24c9b8._0x3a56fd,_0x24c9b8._0x3ffca8)],_0x77e9e1;}export async function getCaCertsInstallScript(){const _0x5668aa={_0x54164e:0x11e,_0x39b192:0x5c0,_0x1e4352:0x5ec,_0x2d5772:0x592,_0x2f8d0b:0x5e5,_0x1e4115:0x56e,_0x1fa9d1:0x59f,_0x37d282:0x5f1,_0x26688d:0x5d3,_0x39a5df:0x586,_0x4b0b70:0x5a6,_0x542230:0x62b,_0x48ae12:0x618,_0x4bc9e2:0x5e7,_0x3741bc:0x111,_0x2d2204:0xd5,_0x2fc742:0xa0,_0x363d6f:0xe7,_0x382ee6:0x120,_0x1a6e61:0x113,_0x12db5e:0x5d5,_0x3662cd:0xeb,_0x3a17e7:0x128,_0x2ceaf6:0x11c,_0x3b9a17:0xd4,_0x356101:0xcb,_0x4806f6:0xe5,_0xbce962:0x116,_0x1117ea:0x115,_0x549bbf:0x5ce,_0x29998b:0x5c4,_0x6f74b7:0x5ff,_0xadb9c3:0x9a,_0x546c64:0x14f,_0x4f3729:0x114,_0x4ac78b:0x119,_0x17e55a:0xde,_0x31a469:0x62b,_0x1f54ba:0x5fd,_0x1fcf0f:0x5b1,_0xd2ac92:0x121,_0x10ac9d:0x5d1,_0x110e04:0x62e,_0x125a89:0x606,_0x2ed52d:0x5a7,_0x5e38db:0x62f,_0x599b3c:0x61b,_0x39f8d4:0x5f7,_0x250316:0x600,_0x4db585:0x5eb,_0x388b5e:0x5f4,_0x346317:0x58d,_0x337321:0x5fc,_0x317651:0x5be,_0x140b55:0x5cd,_0x249242:0x602},_0x335a6d={_0x2c4864:0xd9},_0xa767b0={_0xf170f5:0x305},_0x379dcf={'OAocD':function(_0x4f31a9){return _0x4f31a9();},'ceJwg':'/usr/local'+_0x281847(-_0x5668aa._0x54164e,-0x11d,-0x12c,-0x11b)+_0x5abb35(0x5dd,0x60f,_0x5668aa._0x39b192,_0x5668aa._0x1e4352)+_0x5abb35(0x5c6,0x5cc,0x562,_0x5668aa._0x2d5772)+'ow-bundle.'+'pem'},_0xdceb20=await _0x379dcf[_0x5abb35(_0x5668aa._0x2f8d0b,_0x5668aa._0x1e4115,_0x5668aa._0x1fa9d1,0x5a9)](loadCaCertsConfig);if(!_0xdceb20[_0x5abb35(_0x5668aa._0x37d282,0x5f9,_0x5668aa._0x26688d,0x5ec)+'es']?.['length']){const _0xbd0645={};return _0xbd0645[_0x5abb35(_0x5668aa._0x39a5df,0x5e0,0x5c3,_0x5668aa._0x4b0b70)]='',_0xbd0645['dockerEnv']=[],_0xbd0645;}function _0x281847(_0x36dadd,_0x221247,_0x414605,_0x5b8aa0){return _0x2deab3(_0x414605- -_0xa767b0._0xf170f5,_0x36dadd,_0x414605-0x84,_0x5b8aa0-0xe2);}const _0xbcd778=_0x379dcf[_0x281847(-0x139,-0x111,-0x139,-0x160)],_0x28ac3e=_0xdceb20[_0x5abb35(_0x5668aa._0x542230,_0x5668aa._0x48ae12,_0x5668aa._0x4bc9e2,0x5ec)+'es']['map']((_0x143288,_0x3d3025)=>_0x281847(-0xf3,-0x105,-0xd3,-0xb3)+'/local/sha'+_0x281847(-0x127,-0xd4,-0x104,-0xf5)+'ificates/c'+_0x5abb35(0x5ae,0x5f8,0x5fc,0x5e0)+_0x3d3025+(_0x5abb35(0x624,0x629,0x612,0x5f8)+_0x281847(-0xf1,-0xf2,-0x10c,-0x104))+_0x143288['content']+_0x281847(-0xf2,-0xe6,-0xf7,-0xd1))[_0x281847(-0xf4,-_0x5668aa._0x3741bc,-_0x5668aa._0x2d2204,-_0x5668aa._0x2fc742)]('\x0a'),_0x460b39={};_0x460b39['script']=_0x281847(-0x111,-0x106,-_0x5668aa._0x363d6f,-_0x5668aa._0x382ee6)+_0x281847(-_0x5668aa._0x1a6e61,-0x138,-0x141,-0x149)+_0x5abb35(0x5aa,_0x5668aa._0x12db5e,0x5c8,0x5a8)+_0x281847(-_0x5668aa._0x3662cd,-0x129,-0x103,-0xf2)+_0x281847(-0x140,-0x113,-_0x5668aa._0x3a17e7,-_0x5668aa._0x2ceaf6)+'t)\x0a'+_0x28ac3e+(_0x281847(-_0x5668aa._0x3b9a17,-0xde,-0xfe,-0x105)+'-certifica'+_0x281847(-_0x5668aa._0x356101,-0x100,-_0x5668aa._0x4806f6,-0x113)+_0x5abb35(0x5f0,0x5ca,0x617,0x5f4)+_0x281847(-_0x5668aa._0xbce962,-0xd2,-0xe1,-_0x5668aa._0x1117ea)+_0x5abb35(_0x5668aa._0x549bbf,0x5e3,_0x5668aa._0x29998b,_0x5668aa._0x6f74b7)+'Warning:\x20u'+'pdate-ca-c'+_0x281847(-0x101,-_0x5668aa._0xadb9c3,-0xd8,-0x9b)+_0x281847(-_0x5668aa._0x546c64,-0x132,-_0x5668aa._0x4f3729,-0xed)+_0x281847(-_0x5668aa._0x4ac78b,-0xe7,-_0x5668aa._0x17e55a,-0xaa)+'te\x20combine'+_0x5abb35(_0x5668aa._0x31a469,0x5f3,0x604,_0x5668aa._0x1f54ba)+_0x5abb35(0x61e,0x5e1,0x5e2,0x5f5)+_0x5abb35(0x5bf,0x59f,_0x5668aa._0x1fcf0f,_0x5668aa._0x1fa9d1)+'EXTRA_CA_C'+_0x281847(-0x12a,-0x118,-0x10a,-_0x5668aa._0xd2ac92)+_0x5abb35(0x63a,_0x5668aa._0x10ac9d,_0x5668aa._0x110e04,_0x5668aa._0x125a89)+_0x5abb35(0x5a8,_0x5668aa._0x2ed52d,0x5ac,0x5d4)+_0x5abb35(_0x5668aa._0x5e38db,_0x5668aa._0x599b3c,0x5ba,_0x5668aa._0x39f8d4)+_0x5abb35(_0x5668aa._0x250316,0x5dd,0x5f8,_0x5668aa._0x4db585)+'w-*.crt\x20>\x20')+_0xbcd778+'\x0a',_0x460b39[_0x5abb35(_0x5668aa._0x388b5e,_0x5668aa._0x346317,_0x5668aa._0x337321,_0x5668aa._0x317651)]=[_0x5abb35(0x61f,0x5d9,_0x5668aa._0x140b55,_0x5668aa._0x249242)+'_CA_CERTS='+_0xbcd778];function _0x5abb35(_0xf914dc,_0x5eb3a0,_0x3fb7f3,_0x19f78b){return _0x2deab3(_0x19f78b-0x3ca,_0x3fb7f3,_0x3fb7f3-0x76,_0x19f78b-_0x335a6d._0x2c4864);}return _0x460b39;}
1
+ function _0x5a73(_0x46593d,_0x24b612){_0x46593d=_0x46593d-(0x93c+0x7b*0x23+0x7d*-0x32);const _0x2fd7de=_0x1e81();let _0x4e3c90=_0x2fd7de[_0x46593d];if(_0x5a73['zazuCk']===undefined){var _0x1676c4=function(_0x3b15f2){const _0x85cd8b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x73cf42='',_0x1d669b='';for(let _0x292197=-0x1*0x23ad+0x5c+0x2351,_0x42abfb,_0x21c6d6,_0x18c78b=0xad*-0x9+0x10e*-0xc+0x12bd;_0x21c6d6=_0x3b15f2['charAt'](_0x18c78b++);~_0x21c6d6&&(_0x42abfb=_0x292197%(-0x1*-0x210e+0xdf*-0x15+-0x2f3*0x5)?_0x42abfb*(0x3*-0x423+0x24e6+0x55*-0x49)+_0x21c6d6:_0x21c6d6,_0x292197++%(0x1b3*0x3+-0xfed+0xad8))?_0x73cf42+=String['fromCharCode'](0x5*-0x25+-0xa*0x5e+0x564&_0x42abfb>>(-(0x9*-0x3f+-0x2635*-0x1+-0x23fc)*_0x292197&0x207e+-0x9b*0x34+0x54*-0x3)):0x7f7+-0x2*0x71+-0x31*0x25){_0x21c6d6=_0x85cd8b['indexOf'](_0x21c6d6);}for(let _0x58e129=0x8ef*-0x3+-0x1919+0x33e6,_0x16a69b=_0x73cf42['length'];_0x58e129<_0x16a69b;_0x58e129++){_0x1d669b+='%'+('00'+_0x73cf42['charCodeAt'](_0x58e129)['toString'](-0xb*0x387+-0x7fd+0x2eda))['slice'](-(0x69*0x29+-0x1*-0x1907+0x55*-0x7e));}return decodeURIComponent(_0x1d669b);};_0x5a73['jaqBXz']=_0x1676c4,_0x5a73['XSphfr']={},_0x5a73['zazuCk']=!![];}const _0x59f5f5=_0x2fd7de[0x8*-0x39a+0x475*-0x1+0x2145*0x1],_0x49e4ec=_0x46593d+_0x59f5f5,_0x1ca290=_0x5a73['XSphfr'][_0x49e4ec];return!_0x1ca290?(_0x4e3c90=_0x5a73['jaqBXz'](_0x4e3c90),_0x5a73['XSphfr'][_0x49e4ec]=_0x4e3c90):_0x4e3c90=_0x1ca290,_0x4e3c90;}(function(_0xc75bd5,_0x2a269c){const _0x120743={_0x498971:0x403,_0x14b3af:0x408,_0x4ae9cd:0x3e2,_0x23ce91:0x3c0,_0x103812:0x475,_0x10ace8:0x45f,_0x43ef0a:0x48b,_0x57b03c:0x43d,_0x1e0eb1:0x420,_0x258735:0x406,_0x304084:0x419,_0x162479:0x2a8,_0x1576f0:0x26e,_0xb19812:0x435,_0x1354d7:0x457,_0x22e717:0x408,_0x5a3c9c:0x40f,_0x47d061:0x3fd,_0x4fe5d6:0x2b3,_0x4646a3:0x2d1,_0x6f9a49:0x448,_0x20e09a:0x43b},_0x529590={_0x35551e:0xd1},_0xa1d05e={_0x5027ff:0x250};function _0x195b33(_0x3480cf,_0x4efbec,_0x27236a,_0x268a43){return _0x5a73(_0x4efbec-_0xa1d05e._0x5027ff,_0x268a43);}function _0x533076(_0x150708,_0x58ffeb,_0x16a38a,_0x9f6b68){return _0x5a73(_0x150708-_0x529590._0x35551e,_0x58ffeb);}const _0x3233ec=_0xc75bd5();while(!![]){try{const _0xfbfea=-parseInt(_0x195b33(_0x120743._0x498971,_0x120743._0x14b3af,_0x120743._0x4ae9cd,0x416))/(-0xf25*0x2+-0x3*0x431+0x2ade)+-parseInt(_0x195b33(0x3ea,0x3f4,0x3f9,_0x120743._0x23ce91))/(0x47d+-0x4e9*0x1+0x6e)*(-parseInt(_0x195b33(_0x120743._0x103812,_0x120743._0x10ace8,_0x120743._0x43ef0a,_0x120743._0x57b03c))/(0x26c+-0xb71+0x484*0x2))+parseInt(_0x195b33(_0x120743._0x1e0eb1,0x3f5,0x3e6,0x3de))/(-0x5*-0x44f+-0x22ea+-0x95*-0x17)*(parseInt(_0x195b33(_0x120743._0x258735,_0x120743._0x304084,0x408,0x44e))/(0x58a*-0x4+-0xffb+0x2628))+-parseInt(_0x533076(_0x120743._0x162479,_0x120743._0x1576f0,0x270,0x2b3))/(0x1*-0x1633+-0x2c1*0x9+-0x446*-0xb)*(parseInt(_0x195b33(0x43a,_0x120743._0xb19812,_0x120743._0x1354d7,0x444))/(0x2dd*0x9+-0x131a*0x1+-0x6a4))+parseInt(_0x195b33(_0x120743._0x22e717,0x417,_0x120743._0x5a3c9c,_0x120743._0x47d061))/(0xc6a+0x691*0x4+0x123*-0x22)+-parseInt(_0x533076(_0x120743._0x4fe5d6,0x291,0x290,0x2cd))/(0x1*-0x1153+0x174e+0x5f2*-0x1)+-parseInt(_0x533076(_0x120743._0x4646a3,0x2f4,_0x120743._0x4646a3,0x2b5))/(-0x2101+0x61*-0x67+0x4812)*(-parseInt(_0x195b33(_0x120743._0x6f9a49,0x413,_0x120743._0x20e09a,0x419))/(0x23c5*0x1+0x3*-0x30d+0x1*-0x1a93));if(_0xfbfea===_0x2a269c)break;else _0x3233ec['push'](_0x3233ec['shift']());}catch(_0x18d70f){_0x3233ec['push'](_0x3233ec['shift']());}}}(_0x1e81,-0x2*-0x893df+-0x1*0x6d3de+-0xa1e5));import{promises as _0x2780a6}from'fs';import _0x36593f from'path';function _0x1e81(){const _0x1f18f9=['ls0Tls1cruDjtG','l2XVy2fSl3nOyq','rvjusuzjq0furq','q0eTq0vsvfnDia','C2Pbrvu','nZyWmK5VvNvfAa','C2nYAxb0','BfffBee','zMLUz2vYChjPBG','DxbKyxrL','BwfW','sNPHvwy','veuTls0Tlq','B2rLCMzSB3CT','y29UDgvUDa','zxmVy29KzxjMBa','mJe4mJy4mgvtsurMBa','svbuwge','DgvZid4Vzgv2lW','ntyWn3j5t0fysa','rMfPBgvKihrVia','rKreuha','BguGzM9Yie5Vza','qLPbwK0','y2vYDgLMAwnHDa','AxnZDwvY','Bg9JywXPDhK','v2fYBMLUzZOGDq','AwnHDgu','y29Kzq','DguGy29TyMLUzq','CgfYC2uGy2vYDa','tK9erv9fwfrsqq','t29TCeS','CY9JB2rLCMzSBW','s3nHzg0','zujtvvy','zxj0AwzPy2f0zq','v0Dytvq','zcbqru0GyNvUza','DMfSAwruBW','zs5QCYbot0rfxW','lwnLCNrPzMLJyq','DhjPBq','B3jNyw5PEMf0Aq','ChvIBgLJs2v5','mZeZnZblvxDftKi','C3bRAq','EhHHAwy','C3vIAMvJDa','s1fADgu','B3CTyNvUzgXLlG','D1DLC3a','pIyYcImGq3jLyq','AM9PBG','ls0Tls0','ueHICNG','rvjux0vprICk','D3jPDgvgAwXL','CMvJDxjZAxzL','Cu9Kq2u','m3f0Cfz1Cq','Bwf0','lMnYDca8pcaNqW','Dg9mB3DLCKnHCW','DxrMltG','CgfYC2u','DMfSAwrgCM9T','DY0QlMnYDca+ia','Aw5KzxHpzG','Aw4GuevnigzVCG','mtK4mdqXmKvwtLLrAG','ngXiA0P1Ca','y291BNrYEq','Agv4','BgvUz3rO','C3vIC3rYAw5N','zg9JA2vYrw52','AxnfEhbPCMvK','zsbTDxn0igLUyW','zxjYB3i','y29TBw9UtMfTzq','CMvHzezPBgu','y0L3q2e','ru5pru5u','CNvUigfZihjVBW','zsbTDxn0igjLia','DgvZicHTDxn0ia','C3rYAw5NAwz5','q2vYDgLMAwnHDa','zxHWAxjLC09U','nJi4oda3r3ntwwPU','C0LPrM0','seHoANi','B25HBfvUAxq','C3bSAxq','Aw5JBhvKzxm','BwvZC2fNzq','DMfSAwq','BwTKAxi','CYbMywLSzwqIia','ruPdreW','mteXmwLpD0DXuG','cNvWzgf0zs1Jyq','C3rHDgu','AwzPy2f0zxmVyW','nJaZotq0ohDhqwLWsa','AwzPy2f0ztOG','mJi5odaZnwPqvLHuDa','C2HHCMuVy2eTyW','ignLCNrPzMLJyq','FhWGzwnOBYaIwW','x0nbx0nfuLrtpq','yuLluKi','A3Pdr00','BK5KCNy','CuTWz3a'];_0x1e81=function(){return _0x1f18f9;};return _0x1e81();}import _0x501608 from'crypto';import{DATA_DIR}from'./data-dir.js';const CA_CERTS_CONFIG_FILE='ca-certifi'+'cates.json';let _customCaCertsCache=undefined;export async function loadCaCertsConfig(){const _0x31d22d={_0x37b528:0x449,_0x22f449:0x435,_0x2f42ed:0x41d,_0x33dedd:0x46f,_0x517a49:0x463,_0xd60c05:0x448,_0x50a808:0x42a,_0x108001:0x439,_0x3c1fe1:0x40a,_0xd08312:0x427,_0x962622:0x441,_0x295ba4:0x46e,_0x273252:0x465,_0xf05eeb:0x4a3,_0x2a728b:0x5f1,_0x1050e1:0x5ec,_0x3f91cc:0x5be,_0x329c9e:0x453,_0x5a93fc:0x446,_0x4c8015:0x40c,_0x476c29:0x416,_0x386417:0x421,_0x5e53e7:0x5e2,_0x49691b:0x5cf},_0xe1501f={_0x2dacbd:0x3e5},_0x3423af={};_0x3423af[_0x5d505a(_0x31d22d._0x37b528,0x434,_0x31d22d._0x22f449,_0x31d22d._0x2f42ed)]=function(_0x471fdb,_0x41c9e5){return _0x471fdb===_0x41c9e5;};const _0x2dc0c7=_0x3423af;function _0x23788f(_0x32588d,_0x289c95,_0x15bad4,_0x5664fb){return _0x5a73(_0x15bad4-_0xe1501f._0x2dacbd,_0x5664fb);}function _0x5d505a(_0x3bc9c5,_0x2a056e,_0x1becba,_0x749291){return _0x5a73(_0x2a056e-0x25b,_0x749291);}const _0x1592ea=_0x36593f[_0x5d505a(_0x31d22d._0x33dedd,_0x31d22d._0x517a49,_0x31d22d._0xd60c05,_0x31d22d._0x50a808)](DATA_DIR,CA_CERTS_CONFIG_FILE);try{const _0x5df365=await _0x2780a6[_0x5d505a(_0x31d22d._0x108001,_0x31d22d._0x3c1fe1,0x410,_0x31d22d._0xd08312)](_0x1592ea,_0x5d505a(_0x31d22d._0x962622,_0x31d22d._0x295ba4,0x477,0x481));return JSON[_0x5d505a(_0x31d22d._0x273252,_0x31d22d._0x33dedd,_0x31d22d._0xf05eeb,_0x31d22d._0x295ba4)](_0x5df365);}catch(_0x166c4c){if(_0x2dc0c7[_0x23788f(_0x31d22d._0x2a728b,_0x31d22d._0x1050e1,_0x31d22d._0x3f91cc,0x5b3)](_0x166c4c[_0x5d505a(0x415,0x44a,_0x31d22d._0x329c9e,0x413)],_0x5d505a(_0x31d22d._0x5a93fc,_0x31d22d._0x4c8015,_0x31d22d._0x476c29,_0x31d22d._0x386417))){const _0x19b59a={};return _0x19b59a[_0x23788f(_0x31d22d._0x5e53e7,0x5e3,_0x31d22d._0x49691b,0x5bf)+'es']=[],_0x19b59a;}throw _0x166c4c;}}export async function saveCaCertsConfig(_0x29e67e){const _0x1a7290={_0x290ed7:0x73,_0x544a1f:0x1b,_0xf63ad6:0x49,_0x192e9a:0x6f,_0xbedfa1:0x44f,_0x2941c1:0x425,_0x51751f:0x41e},_0x468f79={_0x349293:0x177},_0x45fb2d={_0x272aae:0x270},_0x527c1d=_0x36593f['join'](DATA_DIR,CA_CERTS_CONFIG_FILE),_0x2936e9={};function _0x52d6ea(_0x8970b5,_0x114bbe,_0x14f795,_0x206fb3){return _0x5a73(_0x114bbe-_0x45fb2d._0x272aae,_0x206fb3);}_0x2936e9[_0x16122c(_0x1a7290._0x290ed7,0x6a,0x96,0x95)]=!![],await _0x2780a6[_0x16122c(_0x1a7290._0x544a1f,0x7a,_0x1a7290._0xf63ad6,_0x1a7290._0x192e9a)](DATA_DIR,_0x2936e9);function _0x16122c(_0x4101f2,_0xafa263,_0x208046,_0x21c225){return _0x5a73(_0x208046- -_0x468f79._0x349293,_0x21c225);}await _0x2780a6[_0x52d6ea(_0x1a7290._0xbedfa1,0x47c,0x479,0x47d)](_0x527c1d,JSON[_0x52d6ea(0x406,_0x1a7290._0x2941c1,_0x1a7290._0x51751f,_0x1a7290._0xbedfa1)](_0x29e67e,null,0x2*-0x217+0x201b+0x1beb*-0x1)),_customCaCertsCache=undefined;}export async function getCustomCaCerts(){const _0x7abb17={_0x245605:0x4ac,_0x51ae4e:0x4a5,_0x35c1f2:0x4a2,_0x29f6dc:0x4d2,_0x1e084a:0x4a1,_0x2bada:0x47c,_0x2c76bf:0x464,_0x2477ad:0x45f},_0x37638e={_0x69b87f:0x2bb};function _0x26ab80(_0x50830a,_0x2c7a57,_0x11be79,_0x18a811){return _0x5a73(_0x11be79-_0x37638e._0x69b87f,_0x18a811);}if(_customCaCertsCache!==undefined)return _customCaCertsCache;function _0x379b77(_0xc33eea,_0x5681e3,_0x2568e2,_0x582daf){return _0x5a73(_0x582daf-0x283,_0xc33eea);}const _0x209d1c=await loadCaCertsConfig();return _customCaCertsCache=_0x209d1c[_0x26ab80(_0x7abb17._0x245605,0x4c7,_0x7abb17._0x51ae4e,_0x7abb17._0x35c1f2)+'es']?.['length']?_0x209d1c[_0x26ab80(_0x7abb17._0x29f6dc,_0x7abb17._0x1e084a,0x4a5,0x4a9)+'es'][_0x379b77(0x468,_0x7abb17._0x2bada,_0x7abb17._0x2c76bf,_0x7abb17._0x2477ad)](_0xd79dfb=>_0xd79dfb[_0x26ab80(0x4c8,0x484,0x49b,0x48a)]):[],_customCaCertsCache;}function parseDN(_0x2b4227){const _0x502e23={_0x5ab98b:0x11b,_0x8ed0fa:0xff,_0x2b7e39:0xef,_0x1ee2dd:0xc2,_0x45f9ed:0xc5,_0x3a01cb:0x132,_0x6d2b77:0x53e,_0x10fcb2:0x53c,_0x29b0a3:0x14a,_0x48e720:0x11e,_0x217690:0x565,_0x29fa75:0x590,_0x3d7095:0x5d4,_0x529f82:0x16a,_0x333d39:0x124,_0x4da68c:0x576,_0x2acedb:0x5ba,_0x52d364:0x59a,_0x23de2e:0x5a9,_0x5ec15c:0x53f,_0x4d9e47:0x5a2,_0xe5e5f3:0x578,_0x461932:0x138,_0x4db98e:0x171,_0x5c84f7:0x126,_0x56a4d8:0x55b,_0x7d25a3:0x569,_0x2c1778:0x5d3,_0x83fd0c:0x591,_0x3fcccb:0x5a5,_0x442e15:0x135,_0x5eb39d:0x10a,_0x209ffd:0x108,_0x35a863:0x10a,_0x62e100:0x122,_0x4c3faa:0x156,_0x2b7a06:0x16b,_0xe9c22e:0x57c,_0x9ff29c:0x599,_0x29a172:0xd5,_0x37a677:0xee,_0x5e2584:0x149,_0x454ba7:0x12b,_0x498ff6:0x16b,_0x372eaf:0x51e,_0x2eee81:0x57c,_0x820361:0x5ac,_0x49432a:0x15d,_0x26c203:0x12e,_0x25e483:0x121,_0x1e6800:0xf8,_0x13dd77:0x114,_0x2ae152:0x158,_0x4c7044:0x139,_0x10961c:0x544,_0x201b6f:0x59e,_0x50755c:0x13f,_0x10378b:0x111,_0x466db5:0x136,_0x159766:0x145,_0xbef6d7:0x141,_0x584e3b:0x129,_0x26188a:0x135,_0x22cec0:0x118,_0x2c6a88:0x552,_0x53a249:0x545,_0x11d480:0x544,_0x32eb10:0x598,_0x3f2de7:0x106,_0x1bac9a:0xf5,_0x5b3156:0x114,_0x1addb9:0x117,_0x148448:0x149,_0x1f3244:0x15b,_0x5c66e0:0x11b,_0x1837ef:0x11a,_0x3aa03c:0x554,_0x25f8fa:0x56f,_0x35b997:0x54b,_0x149913:0x115,_0x5a2298:0x17c,_0x299272:0x150,_0x22d40f:0x129,_0x1f587f:0x101},_0x3d0dcd={_0x5ace83:0xb4},_0x30cde6={_0x3fb1ac:0x39b},_0xe9aef7={};_0xe9aef7[_0x4d66e9(0x13f,0x142,0x137,0x16c)]=function(_0x1aa888,_0x34498f){return _0x1aa888+_0x34498f;},_0xe9aef7[_0x4d66e9(0x12c,_0x502e23._0x5ab98b,_0x502e23._0x8ed0fa,_0x502e23._0x2b7e39)]=_0x4d66e9(_0x502e23._0x1ee2dd,0xfa,_0x502e23._0x45f9ed,_0x502e23._0x3a01cb),_0xe9aef7[_0x18af27(0x519,_0x502e23._0x6d2b77,_0x502e23._0x10fcb2,0x54b)]=_0x4d66e9(0x138,_0x502e23._0x29b0a3,0x145,_0x502e23._0x48e720)+'on',_0xe9aef7[_0x18af27(_0x502e23._0x217690,_0x502e23._0x29fa75,_0x502e23._0x3d7095,0x59f)]=_0x4d66e9(_0x502e23._0x529f82,_0x502e23._0x29b0a3,_0x502e23._0x333d39,0x120)+'onalUnit',_0xe9aef7[_0x18af27(0x585,0x5a0,0x566,0x56b)]=_0x18af27(0x539,0x510,0x55d,0x541),_0xe9aef7[_0x18af27(_0x502e23._0x4da68c,_0x502e23._0x2acedb,_0x502e23._0x52d364,_0x502e23._0x23de2e)]='state';function _0x18af27(_0x360123,_0x5e2085,_0x392d5b,_0x44cadf){return _0x5a73(_0x44cadf-_0x30cde6._0x3fb1ac,_0x392d5b);}_0xe9aef7[_0x18af27(_0x502e23._0x5ec15c,_0x502e23._0x4d9e47,0x567,_0x502e23._0xe5e5f3)]=_0x4d66e9(0x141,_0x502e23._0x461932,_0x502e23._0x4db98e,_0x502e23._0x5c84f7),_0xe9aef7[_0x18af27(_0x502e23._0x56a4d8,_0x502e23._0x7d25a3,0x56d,0x555)]=function(_0x266a97,_0x40da4b){return _0x266a97===_0x40da4b;},_0xe9aef7[_0x18af27(0x5d9,_0x502e23._0x2c1778,_0x502e23._0x83fd0c,_0x502e23._0x3fcccb)]=_0x4d66e9(0x118,_0x502e23._0x442e15,_0x502e23._0x5eb39d,_0x502e23._0x48e720);const _0x40ebc1=_0xe9aef7,_0x8f621={};function _0x4d66e9(_0x29a57c,_0x212f16,_0x5afc8f,_0x5c1f91){return _0x5a73(_0x212f16- -_0x3d0dcd._0x5ace83,_0x29a57c);}if(!_0x2b4227)return _0x8f621;const _0x4e8ef3=_0x2b4227[_0x4d66e9(0x124,_0x502e23._0x209ffd,0x10c,_0x502e23._0x35a863)]('\x0a');for(const _0x492db1 of _0x4e8ef3){if(_0x40ebc1[_0x4d66e9(0x13d,0x106,0xdc,_0x502e23._0x62e100)](_0x40ebc1[_0x4d66e9(0x124,_0x502e23._0x4c3faa,_0x502e23._0x29b0a3,_0x502e23._0x2b7a06)],_0x40ebc1[_0x18af27(0x584,0x57d,_0x502e23._0xe9c22e,0x5a5)])){const _0xcbbc5b=_0x492db1[_0x18af27(0x5a4,_0x502e23._0x9ff29c,0x5e2,0x5b2)]('=');if(_0xcbbc5b>0x1e51+-0x1d4b+-0x106){const _0x1a0967=_0x492db1[_0x4d66e9(_0x502e23._0x29a172,0xf5,_0x502e23._0x29a172,_0x502e23._0x37a677)](0x1c6a*0x1+0x1625+0x328f*-0x1,_0xcbbc5b)[_0x4d66e9(0x125,_0x502e23._0x5e2584,_0x502e23._0x454ba7,_0x502e23._0x498ff6)](),_0x341633=_0x492db1[_0x18af27(_0x502e23._0x372eaf,_0x502e23._0x2eee81,0x50d,0x544)](_0x40ebc1[_0x18af27(_0x502e23._0x4da68c,_0x502e23._0x820361,0x5b0,0x591)](_0xcbbc5b,-0x71*0x44+-0x43*0x2f+0x2a52))[_0x4d66e9(_0x502e23._0x49432a,0x149,_0x502e23._0x26c203,_0x502e23._0x25e483)](),_0x1de20d={};_0x1de20d['CN']=_0x40ebc1[_0x4d66e9(0x134,_0x502e23._0x5ab98b,_0x502e23._0x1e6800,_0x502e23._0x13dd77)],_0x1de20d['O']=_0x40ebc1['cIwCa'],_0x1de20d['OU']=_0x4d66e9(0x171,0x14a,_0x502e23._0x2ae152,_0x502e23._0x4c7044)+_0x18af27(_0x502e23._0x10961c,0x578,0x582,0x556),_0x1de20d['C']=_0x40ebc1[_0x18af27(_0x502e23._0x201b6f,0x59b,0x569,0x56b)],_0x1de20d['ST']=_0x4d66e9(_0x502e23._0x50755c,_0x502e23._0x10378b,_0x502e23._0x466db5,_0x502e23._0x159766),_0x1de20d['L']=_0x40ebc1[_0x4d66e9(_0x502e23._0xbef6d7,_0x502e23._0x584e3b,_0x502e23._0x26188a,_0x502e23._0x22cec0)];const _0x21a85b=_0x1de20d;_0x8f621[_0x21a85b[_0x1a0967]||_0x1a0967]=_0x341633;}}else{const _0x13365d=_0x1ce644[_0x18af27(_0x502e23._0x2c6a88,0x51c,_0x502e23._0x53a249,_0x502e23._0x11d480)](-0x1d43+-0x186f+-0xae*-0x4f,_0x2cfbda)[_0x18af27(0x5aa,_0x502e23._0x820361,0x5bb,_0x502e23._0x32eb10)](),_0x158342=_0x5e51d6[_0x4d66e9(_0x502e23._0x3f2de7,_0x502e23._0x1bac9a,_0x502e23._0x5b3156,_0x502e23._0x1addb9)](_0x40ebc1['eBSUV'](_0x367fef,0x239e+0x15*-0x42+-0x1e33))[_0x4d66e9(0x118,_0x502e23._0x148448,0x139,_0x502e23._0x1f3244)](),_0x5e2245={};_0x5e2245['CN']=_0x40ebc1[_0x4d66e9(0x11d,_0x502e23._0x5c66e0,0x138,_0x502e23._0x1837ef)],_0x5e2245['O']=_0x40ebc1[_0x18af27(_0x502e23._0x3aa03c,_0x502e23._0x25f8fa,0x555,_0x502e23._0x35b997)],_0x5e2245['OU']=_0x40ebc1['KQZte'],_0x5e2245['C']=_0x40ebc1[_0x4d66e9(_0x502e23._0x149913,0x11c,0x119,0xe4)],_0x5e2245['ST']=_0x40ebc1[_0x4d66e9(_0x502e23._0x5a2298,0x15a,0x17f,_0x502e23._0x299272)],_0x5e2245['L']=_0x40ebc1[_0x4d66e9(0x157,_0x502e23._0x22d40f,_0x502e23._0x1f587f,0x12c)];const _0xa67161=_0x5e2245;_0x40ea4c[_0xa67161[_0x13365d]||_0x13365d]=_0x158342;}}return _0x8f621;}export function parseCertificateDetails(_0x5cb796){const _0x13e322={_0x433abc:0x12e,_0x3baf21:0x122,_0x4c97b9:0x321,_0x13d644:0x372,_0x2b7c9:0x394,_0x44d93d:0x35f,_0x4fc2b1:0x36e,_0x56d5e3:0x348,_0x25b1ca:0x3a5,_0x4f4ad2:0x3a1,_0x559fff:0x36f,_0x37b34b:0x36a,_0x479a6f:0x345,_0x23bf57:0x39c,_0x34a173:0x362,_0x384abf:0x10b,_0x3f4cd4:0x121,_0x9d6889:0x150,_0x4ec699:0x185,_0x3efa19:0x17e,_0x41d911:0x38d,_0x447be7:0x336,_0x5d0443:0x141,_0x292a61:0x33d,_0x44d018:0x31a,_0x5c534d:0x32d,_0x26d5f9:0x11c,_0x9a3bc:0x186,_0x5314fc:0x31e,_0x68265b:0x310,_0x3d0060:0x112,_0x20ea1f:0x10f,_0x8ada24:0xf0,_0x512f15:0x143,_0x51f1ca:0x349,_0x3de89a:0x325,_0x3fbfc5:0x354,_0x179b40:0x155,_0x21d740:0x153,_0x5b9e5f:0x152,_0x8944e:0x159,_0x408975:0x14a,_0x4bf057:0x12f,_0x26304d:0x171,_0x2f8a8f:0x13e,_0x56346a:0x358,_0x186c8e:0x360,_0x3507be:0x350,_0x2de2a0:0x38b,_0x2297ce:0x39e,_0x41413b:0x370,_0x5d8ec5:0x334,_0x8b68b9:0x374,_0x470a56:0x358,_0x211062:0xda,_0x5d4761:0x15c,_0x6925d:0x126,_0x1edc17:0x161,_0x7cc5cf:0x10f,_0x25c5ff:0xee,_0x334c38:0x37c,_0x1d9f3b:0x32f,_0x371ba2:0x343,_0x45d212:0x125,_0x111659:0x130,_0x257caa:0x135,_0x57ca3c:0x110,_0x382fc3:0x122,_0x56a59e:0x156,_0x5eda40:0x147,_0x46e94b:0x167,_0x11cb80:0x371,_0xea6a3c:0x389,_0x45fa00:0x367,_0x1a3788:0x11d,_0x237294:0x10c,_0x39c3f4:0x33b,_0x2fec36:0x324,_0x50b31a:0x335,_0x1a9e8a:0xff,_0x316137:0x148,_0x1aba0b:0x15b,_0x475b82:0x11a,_0x25936a:0x10e,_0x859772:0x138,_0x5b922d:0x30c,_0x27f6f3:0x32b,_0x5c8d2d:0x32b,_0x3564d9:0x140,_0x4e5e4c:0x16e,_0x7692b:0x359,_0x5ec555:0x36d,_0x2733f8:0x353,_0x2442d6:0x398,_0x2f1de2:0x108,_0x3c9ed1:0x138},_0x1647fc={_0x211bef:0x16d};function _0x5495a2(_0xcf4c82,_0x3cc2e0,_0x58c08e,_0x41fa90){return _0x5a73(_0x41fa90-_0x1647fc._0x211bef,_0xcf4c82);}const _0x16a1f1={'aIKRB':function(_0x2ee0e6,_0x360917){return _0x2ee0e6===_0x360917;},'MxClw':'Gedqw','EJCDL':_0x352307(-0x14f,-0x11c,-_0x13e322._0x433abc,-0x159)+'\x20CERTIFICA'+_0x352307(-0xfa,-0xec,-_0x13e322._0x3baf21,-0x12b),'FDDPp':'-----END\x20C'+_0x5495a2(0x350,_0x13e322._0x4c97b9,0x348,0x341)+_0x5495a2(_0x13e322._0x13d644,_0x13e322._0x2b7c9,_0x13e322._0x44d93d,0x376),'IPTXa':function(_0x2eb034,_0x4b15b0){return _0x2eb034(_0x4b15b0);},'WGXMT':function(_0x3844ac,_0x4b9204){return _0x3844ac(_0x4b9204);},'sjAEU':'sha256','sIiFm':_0x5495a2(0x381,0x33d,0x39d,_0x13e322._0x4fc2b1),'OompK':function(_0x3f4e1d,_0x110681){return _0x3f4e1d>_0x110681;},'LyNmY':_0x5495a2(_0x13e322._0x56d5e3,_0x13e322._0x25b1ca,_0x13e322._0x4f4ad2,_0x13e322._0x559fff),'qKpgp':'MDMpW'};function _0x352307(_0x4077f6,_0x53e8d2,_0x6961b3,_0x4885aa){return _0x5a73(_0x6961b3- -0x300,_0x4077f6);}try{if(_0x16a1f1[_0x352307(-0x121,-0x166,-0x132,-0x120)](_0x16a1f1['MxClw'],_0x5495a2(_0x13e322._0x37b34b,_0x13e322._0x479a6f,_0x13e322._0x23bf57,_0x13e322._0x34a173))){const _0x1102c8={};return _0x1102c8[_0x352307(-_0x13e322._0x384abf,-0x142,-0x128,-_0x13e322._0x3f4cd4)]='',_0x1102c8[_0x352307(-_0x13e322._0x9d6889,-_0x13e322._0x4ec699,-0x156,-_0x13e322._0x3efa19)]=[],_0x1102c8;}else{const _0x1226e6=_0x5cb796[_0x5495a2(_0x13e322._0x41d911,0x348,0x34c,0x36a)]();if(!_0x1226e6['includes'](_0x16a1f1[_0x5495a2(0x302,0x34b,_0x13e322._0x447be7,0x32f)])){const _0x98080b={};return _0x98080b[_0x352307(-0x130,-0x161,-_0x13e322._0x5d0443,-0x125)]=![],_0x98080b[_0x5495a2(0x31b,_0x13e322._0x292a61,0x326,_0x13e322._0x44d018)]=_0x5495a2(0x30e,0x300,_0x13e322._0x5c534d,0x323)+_0x352307(-0x172,-_0x13e322._0x26d5f9,-0x14d,-_0x13e322._0x9a3bc)+_0x5495a2(_0x13e322._0x5314fc,0x2dc,0x2e1,_0x13e322._0x68265b)+_0x352307(-_0x13e322._0x3d0060,-_0x13e322._0x20ea1f,-_0x13e322._0x8ada24,-0xe5),_0x98080b;}if(!_0x1226e6[_0x352307(-0x135,-0x179,-_0x13e322._0x512f15,-0x10c)](_0x16a1f1[_0x5495a2(0x367,_0x13e322._0x51f1ca,_0x13e322._0x3de89a,_0x13e322._0x3fbfc5)])){const _0x2228c4={};return _0x2228c4['valid']=![],_0x2228c4[_0x352307(-_0x13e322._0x179b40,-0x16b,-_0x13e322._0x21d740,-0x151)]=_0x352307(-_0x13e322._0x5b9e5f,-_0x13e322._0x8944e,-_0x13e322._0x408975,-0x12f)+_0x352307(-_0x13e322._0x4bf057,-_0x13e322._0x26304d,-0x154,-_0x13e322._0x2f8a8f)+'lude\x20END\x20m'+'arker',_0x2228c4;}const _0x5592da=new _0x501608['X509Certif'+(_0x352307(-0xe5,-0x11f,-_0x13e322._0x3d0060,-0x132))](_0x1226e6),_0x5c2941={'issuedTo':_0x16a1f1[_0x5495a2(_0x13e322._0x56346a,_0x13e322._0x186c8e,0x353,_0x13e322._0x3507be)](parseDN,_0x5592da[_0x5495a2(_0x13e322._0x2de2a0,_0x13e322._0x2297ce,0x348,_0x13e322._0x41413b)]),'issuedBy':_0x16a1f1[_0x5495a2(0x36b,_0x13e322._0x5d8ec5,0x39e,0x365)](parseDN,_0x5592da[_0x5495a2(_0x13e322._0x8b68b9,0x375,_0x13e322._0x292a61,_0x13e322._0x470a56)]),'validityPeriod':{'issuedOn':_0x5592da[_0x352307(-_0x13e322._0x211062,-0xfa,-0xeb,-0xf1)],'expiresOn':_0x5592da['validTo']},'fingerprints':{'certificate':_0x5592da[_0x352307(-0x14f,-_0x13e322._0x5d4761,-_0x13e322._0x6925d,-_0x13e322._0x1edc17)+'t256']['replace'](/:/g,'')[_0x352307(-0xc3,-_0x13e322._0x7cc5cf,-_0x13e322._0x25c5ff,-0xd7)+'e'](),'publicKey':_0x501608['createHash'](_0x16a1f1[_0x5495a2(_0x13e322._0x334c38,_0x13e322._0x1d9f3b,0x31c,_0x13e322._0x371ba2)])[_0x352307(-_0x13e322._0x3f4cd4,-0x143,-_0x13e322._0x45d212,-_0x13e322._0x111659)](_0x5592da[_0x352307(-_0x13e322._0x257caa,-_0x13e322._0x57ca3c,-0x101,-_0x13e322._0x382fc3)]['export']({'type':_0x16a1f1[_0x352307(-_0x13e322._0x56a59e,-0x16b,-_0x13e322._0x5eda40,-_0x13e322._0x46e94b)],'format':'der'}))['digest'](_0x5495a2(0x337,0x2fa,0x327,0x314))}},_0x32629c=new Date(),_0xd8325f=new Date(_0x5592da[_0x5495a2(_0x13e322._0x11cb80,_0x13e322._0xea6a3c,_0x13e322._0x56d5e3,_0x13e322._0x45fa00)]);_0x5c2941[_0x352307(-0x170,-0x129,-0x155,-0x125)]=_0x16a1f1[_0x352307(-0xf2,-_0x13e322._0x1a3788,-0x10d,-_0x13e322._0x237294)](_0x32629c,_0xd8325f),_0x5c2941[_0x5495a2(0x325,_0x13e322._0x39c3f4,0x2f7,_0x13e322._0x2fec36)]=_0x5592da[_0x5495a2(0x376,_0x13e322._0x50b31a,0x33c,_0x13e322._0x45fa00)];const _0x3f1dd7={};return _0x3f1dd7[_0x5495a2(0x35d,0x328,0x35a,0x32c)]=!![],_0x3f1dd7['details']=_0x5c2941,_0x3f1dd7;}}catch(_0x29d561){if(_0x16a1f1['LyNmY']===_0x16a1f1[_0x352307(-0x113,-_0x13e322._0x1a9e8a,-0x12f,-_0x13e322._0x316137)]){const _0x531e4f={};return _0x531e4f['valid']=![],_0x531e4f[_0x352307(-_0x13e322._0x1aba0b,-0x14b,-0x153,-0x158)]=_0x352307(-0x133,-0x126,-_0x13e322._0x475b82,-0xe1)+_0x352307(-_0x13e322._0x25936a,-_0x13e322._0x859772,-0x10f,-_0x13e322._0x25936a)+_0x5495a2(0x31e,_0x13e322._0x5b922d,0x35c,0x335)+_0x549c7[_0x5495a2(_0x13e322._0x27f6f3,_0x13e322._0x3507be,0x30d,_0x13e322._0x5c8d2d)],_0x531e4f;}else{const _0x22ef56={};return _0x22ef56[_0x352307(-_0x13e322._0x3564d9,-0x13f,-_0x13e322._0x5d0443,-_0x13e322._0x475b82)]=![],_0x22ef56[_0x352307(-_0x13e322._0x512f15,-0x167,-0x153,-_0x13e322._0x4e5e4c)]=_0x5495a2(_0x13e322._0x7692b,0x34a,_0x13e322._0x5ec555,_0x13e322._0x2733f8)+_0x5495a2(_0x13e322._0x2442d6,_0x13e322._0x371ba2,0x37e,0x35e)+_0x352307(-_0x13e322._0x2f1de2,-0x16c,-_0x13e322._0x3c9ed1,-0x167)+_0x29d561[_0x352307(-0x125,-0x134,-0x142,-0x166)],_0x22ef56;}}}export function validateCertificate(_0x1a7855){const _0x2d2f73={_0x3ffcb3:0x268,_0xd60800:0x3d5,_0xd19b2:0x3f0,_0x361e01:0x1fb};function _0x52de84(_0x373d7b,_0x3179c6,_0x5b359f,_0x2a0d32){return _0x5a73(_0x2a0d32-0x62,_0x373d7b);}function _0x3015f7(_0x51e771,_0x1be519,_0x975576,_0x28a1a2){return _0x5a73(_0x1be519-0x222,_0x51e771);}const _0x3b46d={'wWesp':function(_0x34fc02,_0x14ee68){return _0x34fc02(_0x14ee68);}},_0xced937=_0x3b46d[_0x52de84(0x256,0x23a,0x234,_0x2d2f73._0x3ffcb3)](parseCertificateDetails,_0x1a7855),_0x57bcd7={};return _0x57bcd7['valid']=_0xced937[_0x3015f7(0x3f4,0x3e1,_0x2d2f73._0xd60800,_0x2d2f73._0xd19b2)],_0x57bcd7['error']=_0xced937[_0x52de84(0x217,_0x2d2f73._0x361e01,0x221,0x20f)],_0x57bcd7;}export async function getCaCertsInstallScript(){const _0x1df290={_0x15b3d3:0x29,_0x5c0ccd:0x29,_0x378ddb:0x1c,_0x9653ef:0x23,_0xc177bb:0x61,_0x452506:0x2a,_0x1914c1:0x11,_0x11af4b:0x28,_0x93e9e9:0x1a,_0x438330:0x30,_0x29a807:0x8b,_0x17e1b0:0x54,_0x3db267:0x29,_0x5b4fde:0x18,_0x1e9cfc:0x11,_0xb2784a:0x47,_0x4f5e0a:0x10,_0x346e9d:0x1f,_0x38da93:0x1b,_0x4544fb:0x44,_0x59621f:0x8f,_0x3bd3a:0x27,_0x5a69c6:0x65,_0x4f97fc:0x2b,_0x21700b:0x3,_0x236e0a:0x19,_0x2239fd:0x8,_0x49c096:0x1,_0x475edf:0x1a,_0x5305e7:0x57,_0x4ee292:0x4b,_0x561291:0x52,_0x3d62a3:0x4,_0x511201:0x17,_0x73d767:0x4b,_0x32e91a:0x1b,_0x2fbb05:0x0,_0x2b7680:0xb,_0x2a719b:0x26,_0x27920a:0x36,_0x425b61:0xe,_0x22c8e9:0x21,_0x31217d:0x22,_0x168a82:0x6a,_0x278c65:0xc,_0x44f4f2:0x45,_0x188946:0x18,_0x2f3d16:0xf,_0x5a8b66:0x51,_0x4df08d:0x37,_0xa74cee:0x3b,_0x3c870b:0x3a,_0x2e7615:0x9,_0x34e166:0x1b,_0xfe7a12:0x9a,_0x4898e8:0x4f,_0xe7b919:0x65,_0x3c9c4c:0x8b,_0x28c1e7:0x7,_0x5c775e:0x25,_0x26a574:0x38,_0x19ee0d:0x48,_0x5b66de:0x41,_0x46335c:0x56,_0x444b8b:0x43,_0x15c784:0x2e,_0x6a8653:0x5a},_0x229e11={_0x24253d:0x1fb},_0x1a39fa={'UFlfx':function(_0x2ea6e4){return _0x2ea6e4();}},_0x25f02b=await _0x1a39fa['UFlfx'](loadCaCertsConfig);if(!_0x25f02b['certificat'+'es']?.[_0x4769fa(_0x1df290._0x15b3d3,-_0x1df290._0x5c0ccd,-0x9,-0x41)]){const _0x4e843e={};return _0x4e843e[_0x36a0e2(-0x1b,-_0x1df290._0x378ddb,-_0x1df290._0x9653ef,-0xa)]='',_0x4e843e[_0x36a0e2(-0x7a,-0x5b,-0x51,-_0x1df290._0xc177bb)]=[],_0x4e843e;}function _0x4769fa(_0x15935e,_0x3b65ca,_0x6210e6,_0x46fb44){return _0x5a73(_0x6210e6- -0x1b1,_0x3b65ca);}const _0x14c261='/usr/local'+'/share/ca-'+_0x36a0e2(0x5,-_0x1df290._0x452506,-_0x1df290._0x1914c1,0x20)+_0x36a0e2(-0x4,-_0x1df290._0x11af4b,-_0x1df290._0x93e9e9,-_0x1df290._0x438330)+_0x4769fa(_0x1df290._0x29a807,0x68,_0x1df290._0x17e1b0,0x62)+'pem',_0x317c95=_0x25f02b[_0x36a0e2(_0x1df290._0x3db267,_0x1df290._0x5b4fde,-_0x1df290._0x1e9cfc,-_0x1df290._0xb2784a)+'es'][_0x36a0e2(-0x4a,_0x1df290._0x4f5e0a,-_0x1df290._0x346e9d,_0x1df290._0x38da93)]((_0x4a8552,_0x5d88e3)=>'cat\x20>\x20/usr'+_0x36a0e2(-0x9,-0x58,-0x28,-0x36)+'re/ca-cert'+_0x4769fa(0x4f,0x2c,0x15,0x2e)+_0x4769fa(0x43,0x5b,0x2e,0x52)+_0x5d88e3+(_0x36a0e2(0x4c,0x17,0x16,0x4f)+_0x4769fa(0x72,0x6e,0x5a,0x40))+_0x4a8552[_0x36a0e2(-0x46,-0x34,-0x1b,-0x52)]+'\x0aCERT_EOF')[_0x4769fa(0x79,_0x1df290._0x4544fb,0x57,_0x1df290._0x59621f)]('\x0a');function _0x36a0e2(_0x2b5cc0,_0x20f3e6,_0x422a32,_0x56feb8){return _0x5a73(_0x422a32- -_0x229e11._0x24253d,_0x56feb8);}const _0x150745={};return _0x150745[_0x4769fa(0x45,-0x8,_0x1df290._0x3bd3a,0xa)]='\x0a#\x20Install'+'\x20custom\x20CA'+_0x36a0e2(-0x3c,-_0x1df290._0x5a69c6,-_0x1df290._0x438330,-0x14)+_0x4769fa(0x33,-_0x1df290._0x4f97fc,_0x1df290._0x21700b,_0x1df290._0x236e0a)+_0x4769fa(-_0x1df290._0x2239fd,0x2,_0x1df290._0x49c096,_0x1df290._0x475edf)+'t)\x0a'+_0x317c95+(_0x36a0e2(0x3,-0x6b,-0x37,-_0x1df290._0x11af4b)+_0x4769fa(0x58,_0x1df290._0x5305e7,_0x1df290._0x4ee292,_0x1df290._0x561291)+_0x36a0e2(_0x1df290._0x3d62a3,-0x27,-_0x1df290._0x511201,-0x15)+'null\x202>&1\x20'+_0x4769fa(_0x1df290._0x73d767,0x24,_0x1df290._0x32e91a,_0x1df290._0x2fbb05)+_0x36a0e2(_0x1df290._0x2b7680,-0x23,-_0x1df290._0x2a719b,-0x26)+_0x36a0e2(-_0x1df290._0x27920a,0x4,-_0x1df290._0x425b61,_0x1df290._0x22c8e9)+'pdate-ca-c'+_0x36a0e2(-0x11,-_0x1df290._0x31217d,-0x4,0x31)+_0x36a0e2(-_0x1df290._0x168a82,-0x38,-0x3a,-0x61)+_0x36a0e2(-0x15,-0x2,_0x1df290._0x278c65,0x24)+_0x36a0e2(-_0x1df290._0x44f4f2,-0x3,-0xb,-_0x1df290._0x188946)+_0x36a0e2(0x1c,_0x1df290._0x2f3d16,-0x2,0x26)+_0x4769fa(0x29,_0x1df290._0x5a8b66,_0x1df290._0x4df08d,0x2d)+_0x36a0e2(-0x25,-0x34,_0x1df290._0x2fbb05,-_0x1df290._0xa74cee)+'EXTRA_CA_C'+'ERTS\x0acat\x20/'+'usr/local/'+_0x36a0e2(-_0x1df290._0x27920a,-_0x1df290._0x3c870b,-0x31,_0x1df290._0x2e7615)+'ertificate'+_0x36a0e2(-_0x1df290._0x2f3d16,-0x16,-0x7,_0x1df290._0x34e166)+_0x4769fa(_0x1df290._0xfe7a12,_0x1df290._0x4898e8,_0x1df290._0xe7b919,_0x1df290._0x3c9c4c))+_0x14c261+'\x0a',_0x150745[_0x4769fa(-_0x1df290._0x11af4b,_0x1df290._0x28c1e7,-0x7,_0x1df290._0x5c775e)]=[_0x4769fa(_0x1df290._0x26a574,_0x1df290._0x19ee0d,_0x1df290._0x5b66de,_0x1df290._0x46335c)+_0x36a0e2(-_0x1df290._0x444b8b,-0x4c,-_0x1df290._0x15c784,-_0x1df290._0x6a8653)+_0x14c261],_0x150745;}
@@ -1 +1 @@
1
- (function(_0x36b9ed,_0x2a732c){const _0x3691f2={_0x2d897e:0x74,_0x4f44ca:0x98,_0x3de4c9:0x234,_0x5263ab:0x1ea,_0x365ae2:0x1d0,_0x471a80:0x231,_0x3c2424:0x20f,_0x1dcc48:0x1fe,_0x415920:0x1f9,_0x4bc96b:0x1c2,_0x84c8fc:0x277,_0x285a5a:0x295,_0x54f87d:0x21d,_0x18c3f6:0x5a,_0x192e5d:0x264,_0x5cdaf4:0x299,_0x440f7d:0x25b,_0x205478:0x230,_0x5e0935:0x20e,_0x59d33e:0x21d},_0x4df503={_0x2bc669:0x236},_0x341c6f=_0x36b9ed();function _0x51ef9c(_0x2103fe,_0x43a4c2,_0x5b9989,_0x4e8ff9){return _0x2366(_0x2103fe- -0x3e7,_0x5b9989);}function _0x195903(_0x41a6f1,_0x2d3080,_0xb78243,_0x5f0611){return _0x2366(_0x5f0611- -_0x4df503._0x2bc669,_0xb78243);}while(!![]){try{const _0x2b0d73=-parseInt(_0x195903(-_0x3691f2._0x2d897e,-0xf3,-0xc1,-_0x3691f2._0x4f44ca))/(0x2295*-0x1+-0x1be6+0x1f*0x204)*(parseInt(_0x51ef9c(-0x254,-0x29d,-_0x3691f2._0x3de4c9,-0x1fd))/(0xfb8+0x9f1*0x3+-0x1*0x2d89))+parseInt(_0x51ef9c(-0x23f,-0x1e1,-0x25c,-_0x3691f2._0x5263ab))/(-0x1*0x24e2+-0x1f2a+0x440f)+-parseInt(_0x51ef9c(-_0x3691f2._0x365ae2,-_0x3691f2._0x471a80,-_0x3691f2._0x3c2424,-0x184))/(-0x52*0x52+0x9ed+0x1*0x105b)+-parseInt(_0x51ef9c(-0x1c7,-_0x3691f2._0x1dcc48,-_0x3691f2._0x415920,-_0x3691f2._0x4bc96b))/(-0x22fc+0x17*-0xda+0x3697)+-parseInt(_0x51ef9c(-_0x3691f2._0x84c8fc,-0x28e,-_0x3691f2._0x285a5a,-_0x3691f2._0x54f87d))/(0x1*0x85f+0x1*0x895+-0xc5*0x16)+-parseInt(_0x195903(-_0x3691f2._0x18c3f6,-0x62,-0xda,-0xa1))/(-0x18*-0x191+0x1b30+-0x40c1)*(-parseInt(_0x51ef9c(-_0x3691f2._0x192e5d,-_0x3691f2._0x5cdaf4,-_0x3691f2._0x440f7d,-_0x3691f2._0x205478))/(0x595*0x6+0xc5*0x1+0x17d*-0x17))+parseInt(_0x51ef9c(-_0x3691f2._0x5e0935,-_0x3691f2._0x59d33e,-0x1ad,-0x209))/(-0x2427+-0x7a+-0x1ee*-0x13);if(_0x2b0d73===_0x2a732c)break;else _0x341c6f['push'](_0x341c6f['shift']());}catch(_0x161291){_0x341c6f['push'](_0x341c6f['shift']());}}}(_0x3cbe,0x270e5+-0x29832+-0x26497*-0x1));function _0x3cbe(){const _0xd6ef80=['BIbYzwzYzxnOia','t0f1DgGGCMvMCG','D3jPDguGq2XHDq','D3jPDgvFzMfPBa','Ahr0Chm6lY9JBW','sgTmCwu','BM90x25LzwrLza','DwnJzxnZzNvSBa','qxPkAgG','ogvKltu5ndrKmq','Bej1v1i','zgDSte8','DeH3z0O','D3H2A1e','C3bSAxq','zgv0ywLSCW','t0f1DgGGDg9Rzq','DgPeAe8','Cunmrhi','ihjLCxvPCMvKlG','lMnSyxvKzq','zuzHAwX1CMvZ','BM5xwNG','BM9Fy3jLzgvUDa','y0rfC0C','zhvYyxrPB24','Evn2t3y','DgDIv3G','uhLAuxy','DxrOihrVA2vU','A3LjCfG','Eerzv1a','BwvZC2fNzq','whDdzuK','s3r1C0q','zvDQCNC','vw5LEhbLy3rLza','igvYCM9YoIa','ywXZ','BhmUANnVBG','AuDTzhK','CMvMCMvZAf90BW','wwrNu0q','C3vJy2vZCW','zw1WDhm','q3fuy2i','CM94ALu','igHVDxjZ','ntqZmdaZm0jnDvbeBW','zMTsCfm','B25FDhLWzq','DxnLCJPWCM9MAq','zwzYzxnOzwqGCW','BgfZDfn1y2nLCW','igzVDw5KlIbnyq','uMv0CNLPBMCGtW','CMv0CNLHyMXL','Dg90ywXgywLSDq','BMfTzq','zMLSzq','CM9WAwmUy29TlW','CuztDwW','igzVDw5KigLUia','Dgv4Da','zxHWAxjLC0f0','BNnVBguUyw50Aa','C2f2zsbUzxCGyW','y29UC2vJDxrPDG','v0zlB1a','t09gsLy','zgvKigfMDgvYia','ELr1yva','EuvhvKq','BgfZDezHAwX1CG','Aw5MBW','C0f0','u2fNtgm','rKT6Aw8','uMvMCMvZAgLUzW','sKrdq2K','yuLOyNq','BcbYzs1SB2DPBG','nJfIltq0zdKToa','zMv0y2GGzMfPBa','uNfttfa','owqXyZi1mgeTzq','wwvys2i','yxr0zw1WDhm','zMXVB3i','rvrjtuvet1vu','C3rHDhvZvgv4Da','tM8Gt0f1DgGGyW','zxnOigf0DgvTCa','vvHAr0e','EhfsueW','sfruuca','zxjYB3i','CLbRrMW','twP2sMK','lMnYzwrLBNrPyq','ienSyxvKzsbpqq','vNvJvvK','B2LiChe','CMvMCMvZAgvK','y29Kzq','Cgf0Aa','DfbUAuy','Aw5JBhvKzxm','CgrHDgvKihn1yW','q2XHDwrLignYzq','odG2otq4DMzhu3nd','C2nVCgu','zw5Jzq','DxrO','rxLRuNa','twr6zgu','BMvLzcbTyw51yq','zxHWAxjLC19PBG','tvrUvxq','mZy0otaWz3L0DfrK','yxbWBgLJyxrPBW','yvftAeu','CMvHzcbdBgf1za','BwvVDxq','zLfdr1u','CvPAtuG','CMvZ','uxvIzMy','qxrouvm','zguGy3jLzgvUDa','qxLxAuy','ANnVBG','zxnZzNvSBhKUia','BM93','vwfoDui','uhrRBwm','C1rks0S','mJGWnZqWyNzjwuXe','CxvXCeS','zuf0','A2vU','CMvXDwvZDcbMyq','CMvKzw50AwfSCW','zMfPBgvK','AwfSCW','C1bsyKC','vvzpz1m','tKLkA0e','reTyEeS','AwXLig5VDcbMBW','rMfPBgvKihrVia','Bcb2ywXPzcbMBW','CMvHC29U','C3rHy2S','zgvIDwC','zxnOignOzwnRia','ndeXmZuYqwvlveDZ','D2n4tuq','uvDeEMm','zxnOihn1y2nLzq','BNP6Bui','Dg90ywXszwzYzq','BK9LA2e','wvbvtMG','vg9Rzw4GCMvMCG','CgfYC2u','uMvXDwvZDcb0Aq','ihrVigzPBgu','tMLKDgC','sMjVzuq','zw1zEhm','zxiGywXSigf0Da','nZHOAvHdwxq','BNvHBcbSB2DPBG','mtroq1Ljs3m','DxvJvwO','u3nts0y','DxrMoa','Ag9TzwrPCG','BgvUz3rO','uwjXyvG','BgfZDevYCM9Y','C3rHDhvZ','ntyYm0P3zeXXCG','Dg9ju09tDhjPBG','vg9Rzw4GC3rPBa','rNH2s2C','zeTkqNm','y2XHDwrLqwLpyq','ru5pvezpvu5e','DvbIu2u','Dw5K','CMv0CNK','nde3m013uNfctq'];_0x3cbe=function(){return _0xd6ef80;};return _0x3cbe();}import{readFile,writeFile}from'fs/promises';import{existsSync}from'fs';function _0x1a71af(_0x298afe,_0x5356e3,_0x411c16,_0x359604){const _0x351cbc={_0x37177e:0x1e2};return _0x2366(_0x5356e3- -_0x351cbc._0x37177e,_0x411c16);}import _0x5abdd1 from'os';import _0x1f810b from'path';import{logger}from'./logger.js';const OAUTH_TOKEN_ENDPOINT=_0x1a71af(-0x46,-0x35,0x7,-0x55)+_0x1a71af(0x60,0x8,0xa,-0x3c)+_0x1a71af(-0x51,0x3,-0x53,-0x8)+'v1/oauth/t'+'oken',CLAUDE_CLIENT_ID=_0x1a71af(-0x24,0x1c,-0x3d,0x4c)+_0x41287b(-0xe8,-0x110,-0x129,-0x100)+_0x41287b(-0xfc,-0x11b,-0x103,-0x149)+'962f5e',CREDENTIALS_PATH=_0x1f810b['join'](_0x5abdd1[_0x41287b(-0x12f,-0x193,-0x158,-0x162)](),_0x1a71af(-0x4c,-0x25,0x10,-0x28),_0x41287b(-0xa1,-0x124,-0xc3,-0xef)+_0x1a71af(-0x1d,-0x12,0x1e,-0x4c)),FETCH_TIMEOUT_MS=0x31d3+-0x9d93+0xe0f0,MAX_RETRY_ATTEMPTS=-0x22eb+0xe3f*0x2+0x670,RETRY_DELAYS_MS=[-0x1866+0x5d9+0x1675,0xfa8+0x45d+-0x84d,-0x172*0x2+0xc2f*-0x1+0xb89*0x3],_0x134993={};_0x134993['lastSucces'+_0x1a71af(-0x1e,0x12,0x49,0x56)]=null,_0x134993['lastFailur'+_0x1a71af(-0x42,-0x70,-0x2e,-0x5f)]=null,_0x134993[_0x1a71af(-0x4f,-0x46,-0xc,-0x27)]=null,_0x134993['consecutiv'+_0x41287b(-0x196,-0xf6,-0xf1,-0x13d)]=0x0,_0x134993['totalRefre'+'shes']=0x0,_0x134993[_0x1a71af(-0x2d,0x0,0x59,-0x35)+'res']=0x0;const refreshState=_0x134993;export function getRefreshState(){const _0x5899e1={...refreshState};return _0x5899e1;}async function fetchWithTimeout(_0x5a9cb2,_0x4102be,_0x558b23=FETCH_TIMEOUT_MS){const _0x11a8b4={_0x4c47a7:0x1df,_0x289b68:0x187,_0x45ae28:0x19c,_0x3cde51:0x21d,_0x54eb0d:0x228,_0x21d046:0x298,_0x335d6e:0x175,_0x15b366:0x1cf,_0x56527d:0x143,_0x3aa451:0x20e,_0x31d3c1:0x1d2,_0x2f15e9:0x22f,_0x25a2a3:0x1c1,_0xdb7f07:0x1b4,_0x206df4:0x1d8,_0x23ea15:0x221,_0x33d167:0x218,_0xb746c5:0x134,_0x1adda1:0x184,_0x299314:0x181,_0x5eeb86:0x230,_0x5705f3:0x24a,_0x47040f:0x260,_0x4cb9fb:0x25f,_0xf31208:0x1bd,_0x2b7b3e:0x201,_0x512719:0x1ab,_0x5c627f:0x2b9,_0x8d92f6:0x1c4,_0x471a01:0x27b,_0x456e30:0x22b,_0x1caa22:0x1f3,_0x17d282:0x217,_0x45c930:0x1e0,_0x76a244:0x262,_0xc7851e:0x186,_0x327929:0x11a},_0x241f71={_0x404e96:0x192,_0x4e59b5:0x42},_0x3cddaa={_0x103f8c:0x18d};function _0x5ba735(_0x5e5fa1,_0x149a9c,_0x440e2c,_0x36fda6){return _0x41287b(_0x5e5fa1-_0x3cddaa._0x103f8c,_0x149a9c-0x192,_0x440e2c,_0x149a9c- -0xe5);}function _0x36e952(_0x4ae2ac,_0x39c911,_0xcbdaad,_0x474865){return _0x41287b(_0x4ae2ac-0x151,_0x39c911-_0x241f71._0x404e96,_0xcbdaad,_0x39c911- -_0x241f71._0x4e59b5);}const _0x44e32e={'UaNuB':_0x36e952(-_0x11a8b4._0x4c47a7,-0x1b2,-0x204,-_0x11a8b4._0x289b68)+_0x36e952(-0x16a,-0x1bb,-0x18b,-_0x11a8b4._0x45ae28)+_0x5ba735(-_0x11a8b4._0x3cde51,-0x26a,-_0x11a8b4._0x54eb0d,-_0x11a8b4._0x21d046),'tHwgJ':'error','FKzio':function(_0x25dbb2,_0x514309,_0x16d72e){return _0x25dbb2(_0x514309,_0x16d72e);},'VucUY':function(_0x8fce07,_0x59ecbf){return _0x8fce07===_0x59ecbf;},'DtfBq':_0x36e952(-0x169,-_0x11a8b4._0x335d6e,-_0x11a8b4._0x15b366,-_0x11a8b4._0x56527d),'yEGVD':function(_0xa0cdfa,_0x5d9b44){return _0xa0cdfa!==_0x5d9b44;},'nXeFE':'vxnCe','nOeka':'rtvSp','zTuaP':function(_0x237990,_0x51d275){return _0x237990(_0x51d275);}},_0x3b2eee=new AbortController(),_0x5564da=_0x44e32e[_0x5ba735(-0x189,-0x1ea,-0x21d,-_0x11a8b4._0x3aa451)](setTimeout,()=>_0x3b2eee['abort'](),_0x558b23);try{if(_0x44e32e[_0x5ba735(-0x206,-_0x11a8b4._0x31d3c1,-_0x11a8b4._0x2f15e9,-0x1bf)](_0x44e32e['DtfBq'],_0x44e32e['DtfBq'])){const _0x73c51b={..._0x4102be};_0x73c51b['signal']=_0x3b2eee['signal'];const _0x55043f=await _0x44e32e['FKzio'](fetch,_0x5a9cb2,_0x73c51b);return _0x55043f;}else{const _0x2246b6={..._0x7b80f8};return _0x2246b6;}}finally{if(_0x44e32e[_0x36e952(-0x149,-0x14c,-0x120,-0xf6)](_0x44e32e['nXeFE'],_0x44e32e[_0x36e952(-_0x11a8b4._0x25a2a3,-_0x11a8b4._0xdb7f07,-_0x11a8b4._0x206df4,-0x17e)]))_0x44e32e[_0x5ba735(-_0x11a8b4._0x23ea15,-0x1f0,-_0x11a8b4._0x33d167,-0x1f4)](clearTimeout,_0x5564da);else{const _0x58c729={};_0x58c729[_0x36e952(-0x13d,-_0x11a8b4._0xb746c5,-_0x11a8b4._0x1adda1,-_0x11a8b4._0x299314)]=_0x53ffba[_0x5ba735(-_0x11a8b4._0x5eeb86,-0x217,-0x23c,-0x1c3)],_0x58c729[_0x5ba735(-_0x11a8b4._0x5705f3,-_0x11a8b4._0x47040f,-_0x11a8b4._0x4cb9fb,-0x223)]=_0x800993[_0x36e952(-0x1ff,-_0x11a8b4._0xf31208,-_0x11a8b4._0x2b7b3e,-_0x11a8b4._0x512719)],_0xd7948c['error'](_0x44e32e[_0x5ba735(-_0x11a8b4._0x5c627f,-0x273,-0x23a,-0x26f)],_0x58c729);const _0x5301ed={};return _0x5301ed[_0x5ba735(-_0x11a8b4._0x8d92f6,-0x20c,-0x1c2,-0x1f2)]=![],_0x5301ed[_0x5ba735(-0x228,-0x261,-0x271,-0x24a)]=_0x44e32e[_0x5ba735(-_0x11a8b4._0x471a01,-_0x11a8b4._0x456e30,-_0x11a8b4._0x1caa22,-0x1e9)],_0x5301ed[_0x5ba735(-0x227,-_0x11a8b4._0x17d282,-0x1ba,-_0x11a8b4._0x45c930)]=_0x5ba735(-0x234,-0x213,-0x1e8,-_0x11a8b4._0x76a244)+'\x20error:\x20'+_0x320fbc[_0x36e952(-0x173,-0x174,-_0x11a8b4._0xc7851e,-_0x11a8b4._0x327929)],_0x5301ed;}}}export function isTokenExpired(_0x10634d,_0x2da1fd=0xf*0xd6+-0x2*0x39b+-0x9*0x97){const _0x5addaf={_0x440b48:0x211,_0x229a53:0x1c7,_0x52284b:0x1b7,_0x51b2a2:0x16f,_0x2ec84d:0x1b5,_0x55c3b9:0x223,_0xb027ce:0x1c5,_0x283fcd:0x1ea,_0xb4ed79:0x161,_0x3419a0:0x16f,_0x11a6ae:0x1ee,_0x3102f7:0x168,_0x1c2931:0x1b6},_0x5d7f56={_0x341a3e:0x16f,_0x5a4b35:0x6c},_0x250e1c={_0x536e45:0x347},_0x3b6a3e={};_0x3b6a3e[_0x1e882e(_0x5addaf._0x440b48,0x194,_0x5addaf._0x229a53,0x216)]=function(_0x228b0f,_0x5b01e1){return _0x228b0f*_0x5b01e1;},_0x3b6a3e[_0x3c7ee8(-_0x5addaf._0x52284b,-0x1b2,-_0x5addaf._0x51b2a2,-0x19f)]=function(_0x59128b,_0x4ba935){return _0x59128b*_0x4ba935;},_0x3b6a3e[_0x1e882e(_0x5addaf._0x2ec84d,_0x5addaf._0x55c3b9,_0x5addaf._0xb027ce,0x218)]=function(_0x343f2f,_0x548fe2){return _0x343f2f>=_0x548fe2;},_0x3b6a3e[_0x1e882e(0x1e0,0x1ff,0x20f,_0x5addaf._0x283fcd)]=function(_0x331f51,_0x872412){return _0x331f51-_0x872412;};const _0x3e7899=_0x3b6a3e,_0x21421b=Date['now']();function _0x1e882e(_0x4f03b8,_0x479a1a,_0x17e409,_0x144ad8){return _0x41287b(_0x4f03b8-0x11a,_0x479a1a-0x3d,_0x4f03b8,_0x17e409-_0x250e1c._0x536e45);}const _0x546196=_0x3e7899['DKXxK'](_0x3e7899[_0x3c7ee8(-_0x5addaf._0xb4ed79,-_0x5addaf._0x3419a0,-_0x5addaf._0x3419a0,-0x1cb)](_0x2da1fd,-0xaf3+0xf9c+-0x67*0xb),0xc60*0x3+-0xb6+-0x2082);function _0x3c7ee8(_0x259cd8,_0x19b69b,_0x468a65,_0x54e4f2){return _0x41287b(_0x259cd8-_0x5d7f56._0x341a3e,_0x19b69b-0xb,_0x259cd8,_0x468a65- -_0x5d7f56._0x5a4b35);}return _0x3e7899[_0x3c7ee8(-0x214,-0x244,-_0x5addaf._0x11a6ae,-0x1d0)](_0x21421b,_0x3e7899[_0x3c7ee8(-0x1da,-_0x5addaf._0x3102f7,-0x1a4,-_0x5addaf._0x1c2931)](_0x10634d,_0x546196));}export async function readClaudeCredentials(){const _0x8e856={_0x5df237:0x3cf,_0x38cbf2:0x3fc,_0xc4734e:0x362,_0x5b1ba0:0x463,_0x720c88:0x44d,_0x2c66ba:0x430,_0xcfe18a:0x4ac,_0x4a9161:0x44b,_0x3af55b:0x4c2,_0x121cdf:0x476,_0x194f78:0x3c0,_0x40c5ab:0x3c2,_0x2d9116:0x3b6,_0x3d4e82:0x3c4,_0x3daa55:0x3de,_0x117968:0x419,_0x283348:0x41d,_0x36a274:0x464,_0x361fbe:0x3d0,_0x8f868d:0x3e5,_0x5976e9:0x3c3,_0x28d9a5:0x391,_0x3ba80c:0x4a9,_0x4ba3b6:0x469,_0x4d9eba:0x46e,_0x3eaa87:0x462,_0xd02fe6:0x430,_0x2b3da6:0x452,_0x5e3ebc:0x405,_0x3143d5:0x3f1,_0x5f04f1:0x488,_0x24ea6b:0x3a4,_0x5e47d4:0x3e1,_0x507cb4:0x429,_0x49bbb9:0x4bb,_0x3ddb49:0x4d2,_0x38a524:0x49c,_0xe84b26:0x426,_0xfd116f:0x3d8,_0x4737a7:0x41c,_0x417524:0x3f9,_0x39595c:0x404,_0x54751f:0x3c6,_0x542804:0x3d2,_0x5c1c3c:0x3d0,_0x46552b:0x3de,_0x3fd2c1:0x3eb,_0x32afeb:0x460,_0x1723fc:0x421,_0x130da5:0x489,_0x580d1c:0x43d,_0x46a7fa:0x4d2,_0x323d14:0x3e6,_0x113073:0x40f,_0x3954b5:0x3da,_0x27dac2:0x3d8,_0x163b7c:0x4ac,_0x5f0fe1:0x472,_0xa94e1:0x44f,_0x39500d:0x418,_0x55b33d:0x45d,_0x35519d:0x3fe,_0x2f7e4f:0x431,_0x4c0570:0x431,_0x24c430:0x435,_0x140d47:0x3ef},_0x35c83b={_0x17bb20:0x541},_0x224bdb={_0x3add59:0x4f};function _0x543488(_0x31fb34,_0x2aaca0,_0x5112a1,_0x436ab3){return _0x1a71af(_0x31fb34-0x27,_0x436ab3-0x442,_0x2aaca0,_0x436ab3-_0x224bdb._0x3add59);}const _0x1b080b={'XhyFO':_0x543488(0x3fe,0x39e,_0x8e856._0x5df237,0x3dd)+'write\x20Clau'+'de\x20credent'+_0x5605bd(_0x8e856._0x38cbf2,0x3bd,_0x8e856._0xc4734e,0x379),'uPbSe':function(_0x390320,_0x5abd9b){return _0x390320!==_0x5abd9b;},'eWjrw':'KTyTu','OOFJV':_0x5605bd(_0x8e856._0x5b1ba0,_0x8e856._0x720c88,_0x8e856._0x2c66ba,_0x8e856._0xcfe18a),'lBuWR':function(_0x492d52,_0x5c798d){return _0x492d52(_0x5c798d);},'MjvJi':_0x543488(_0x8e856._0x4a9161,_0x8e856._0x3af55b,0x486,_0x8e856._0x121cdf)+'dentials\x20f'+_0x5605bd(_0x8e856._0x194f78,_0x8e856._0x40c5ab,0x393,0x41f)+_0x5605bd(_0x8e856._0x2d9116,0x3ec,0x43c,_0x8e856._0x3d4e82),'CqTcb':function(_0x46ef82,_0x433d6a,_0x5ba793){return _0x46ef82(_0x433d6a,_0x5ba793);},'Qubff':_0x5605bd(0x3ee,_0x8e856._0x3daa55,_0x8e856._0x117968,0x392),'rZiDi':_0x543488(0x452,_0x8e856._0x283348,0x444,_0x8e856._0x36a274)+_0x543488(_0x8e856._0x40c5ab,0x399,_0x8e856._0x2c66ba,0x3d5)+_0x5605bd(_0x8e856._0x361fbe,0x42d,_0x8e856._0x8f868d,0x410)+'file','Nidtg':_0x5605bd(0x384,_0x8e856._0x5976e9,0x413,_0x8e856._0x28d9a5)+_0x5605bd(_0x8e856._0x3ba80c,_0x8e856._0x4ba3b6,_0x8e856._0x4d9eba,0x495)+'e\x20credenti'+_0x543488(_0x8e856._0x3eaa87,0x438,_0x8e856._0xd02fe6,0x42f)};function _0x5605bd(_0x353be0,_0x31e60d,_0x3f8767,_0x10ba36){return _0x41287b(_0x353be0-0x18d,_0x31e60d-0xc1,_0x353be0,_0x31e60d-_0x35c83b._0x17bb20);}try{if(_0x1b080b[_0x543488(_0x8e856._0x2b3da6,0x420,0x405,_0x8e856._0x5e3ebc)](_0x1b080b[_0x5605bd(0x3cc,0x412,_0x8e856._0x3143d5,0x43d)],_0x1b080b[_0x5605bd(0x493,0x434,_0x8e856._0x5f04f1,0x483)])){if(!_0x1b080b[_0x5605bd(_0x8e856._0x24ea6b,0x3f9,_0x8e856._0x5e47d4,0x3b9)](existsSync,CREDENTIALS_PATH)){const _0x1d44d7={};return _0x1d44d7[_0x543488(_0x8e856._0x507cb4,_0x8e856._0x49bbb9,_0x8e856._0x3ddb49,0x472)]=CREDENTIALS_PATH,logger[_0x543488(0x430,0x3f2,0x41c,0x3e1)](_0x1b080b[_0x5605bd(0x474,0x451,_0x8e856._0x38a524,_0x8e856._0xe84b26)],_0x1d44d7),null;}const _0x1a0bf5=await _0x1b080b[_0x5605bd(_0x8e856._0xfd116f,_0x8e856._0x4737a7,_0x8e856._0x417524,_0x8e856._0x417524)](readFile,CREDENTIALS_PATH,_0x1b080b[_0x543488(0x3f8,0x3db,_0x8e856._0x39595c,_0x8e856._0x54751f)]),_0x218be0=JSON[_0x5605bd(0x3ad,_0x8e856._0x542804,0x401,_0x8e856._0x5c1c3c)](_0x1a0bf5);if(!_0x218be0[_0x543488(_0x8e856._0x46552b,_0x8e856._0x417524,_0x8e856._0x3fd2c1,0x403)+_0x5605bd(0x421,_0x8e856._0x32afeb,_0x8e856._0x1723fc,_0x8e856._0x130da5)])return logger[_0x543488(0x410,_0x8e856._0x580d1c,0x407,_0x8e856._0x5e47d4)](_0x1b080b['rZiDi']),null;return _0x218be0['claudeAiOa'+_0x543488(_0x8e856._0x46a7fa,0x43f,0x4a7,0x47a)];}else{const _0x3cef47={};return _0x3cef47['error']=_0x4bfbdc[_0x5605bd(_0x8e856._0x323d14,_0x8e856._0x113073,_0x8e856._0x3954b5,_0x8e856._0x27dac2)],_0x3cef47[_0x543488(0x4a8,_0x8e856._0x163b7c,0x42f,_0x8e856._0x5f0fe1)]=_0x121315,_0x9ea373[_0x5605bd(0x3fc,_0x8e856._0xa94e1,_0x8e856._0x39500d,_0x8e856._0x121cdf)](_0x1b080b['XhyFO'],_0x3cef47),![];}}catch(_0x244a5e){const _0x5ebaca={};return _0x5ebaca[_0x543488(_0x8e856._0x55b33d,_0x8e856._0x130da5,0x423,0x469)]=_0x244a5e[_0x543488(_0x8e856._0x117968,_0x8e856._0x35519d,_0x8e856._0x2f7e4f,0x429)],_0x5ebaca['path']=CREDENTIALS_PATH,logger['error'](_0x1b080b[_0x543488(_0x8e856._0x4c0570,0x3b0,_0x8e856._0x24c430,_0x8e856._0x140d47)],_0x5ebaca),null;}}function _0x41287b(_0x4dee68,_0xff8c15,_0x4d8f66,_0x541086){return _0x2366(_0x541086- -0x2fb,_0x4d8f66);}export async function writeClaudeCredentials(_0x2747b8){const _0xacc707={_0x50b0a0:0x338,_0x22ac1a:0x2fa,_0x1af645:0x2d1,_0x2cd80f:0x2c,_0x38e159:0x38c,_0x2f4c5f:0x310,_0x49901c:0x2f7,_0x569a34:0x2e5,_0x4e7f7a:0x334,_0x3cb97d:0x328,_0x11cc54:0x26,_0x3b9c04:0x30,_0x49c6e9:0x5e,_0x3d31b5:0x3e,_0x2ac30c:0x307,_0x94ac1e:0x32c,_0x51dbb2:0x2f5,_0x4fb95a:0x2ee,_0x4a3fef:0x8e,_0x1c2322:0xcd,_0x15a3d1:0x76,_0x6df012:0x65,_0x397aaa:0x6b,_0x52a454:0x34,_0x473a89:0x3b1,_0x40f335:0x340,_0x5c4c67:0x39e,_0x2ad6eb:0x3d3,_0x45dfa9:0xa4,_0x1e2bb3:0x87,_0x43a10d:0x93,_0x23a83a:0x5,_0x4df614:0x15,_0x2f9368:0x16,_0x502940:0xbe,_0x3012c0:0x69,_0xff819d:0x7c,_0x35f9a8:0xd2,_0x465201:0x37b,_0x3f9030:0x391,_0x59cc0e:0x95,_0x2656d2:0xd7},_0x3e7ff4={_0x5565f4:0x95};function _0x142f44(_0x47e5d2,_0x1b2849,_0x5b0ff3,_0x12ed58){return _0x1a71af(_0x47e5d2-0x173,_0x5b0ff3-0x35a,_0x1b2849,_0x12ed58-0xf7);}const _0x1c5132={'fQCGU':_0x142f44(0x310,0x382,_0xacc707._0x50b0a0,0x38d)+_0x142f44(_0xacc707._0x22ac1a,0x2f2,0x2ef,_0xacc707._0x1af645),'MTnUt':'No\x20OAuth\x20c'+_0x299d2b(-_0xacc707._0x2cd80f,0x4,0xe,0x28)+_0x142f44(_0xacc707._0x38e159,_0xacc707._0x2f4c5f,0x357,_0xacc707._0x49901c)+'nual\x20login'+_0x142f44(0x363,_0xacc707._0x569a34,_0xacc707._0x4e7f7a,_0xacc707._0x3cb97d),'oNumY':function(_0x245f7f,_0x340fe8){return _0x245f7f===_0x340fe8;},'quqpK':function(_0x5b96df,_0xd7ad67,_0x1d8b7f,_0x495c74){return _0x5b96df(_0xd7ad67,_0x1d8b7f,_0x495c74);},'UZPkx':'utf8','GclXj':_0x299d2b(0x61,0x6f,-_0xacc707._0x11cc54,_0xacc707._0x3b9c04)+_0x299d2b(0xbf,0x5e,0x15,_0xacc707._0x49c6e9)+_0x299d2b(0x42,_0xacc707._0x3d31b5,0x36,0x1b)+'ials'};function _0x299d2b(_0x2a5803,_0x1bfa56,_0x13909d,_0x233eb2){return _0x1a71af(_0x2a5803-0xc3,_0x233eb2-_0x3e7ff4._0x5565f4,_0x13909d,_0x233eb2-0x2b);}try{if(_0x1c5132['oNumY'](_0x142f44(0x2f6,_0xacc707._0x2ac30c,_0xacc707._0x94ac1e,_0xacc707._0x51dbb2),'dglLO')){const _0x43035e={};_0x43035e[_0x142f44(0x375,_0xacc707._0x4fb95a,0x31b,0x350)+_0x299d2b(_0xacc707._0x4a3fef,0xf2,0xea,_0xacc707._0x1c2322)]=_0x2747b8;const _0x29a47b=_0x43035e;return await _0x1c5132[_0x299d2b(_0xacc707._0x15a3d1,_0xacc707._0x6df012,0x11,0x24)](writeFile,CREDENTIALS_PATH,JSON['stringify'](_0x29a47b),{'encoding':_0x1c5132['UZPkx'],'mode':0x180}),logger[_0x299d2b(0x86,_0xacc707._0x397aaa,0xd,_0xacc707._0x52a454)](_0x142f44(0x3e8,_0xacc707._0x473a89,0x38e,_0xacc707._0x40f335)+'dentials\x20u'+_0x142f44(_0xacc707._0x5c4c67,0x3d2,0x38d,_0xacc707._0x2ad6eb)+'cessfully'),!![];}else{const _0xef54e9={};return _0xef54e9[_0x299d2b(0x8e,0x5b,_0xacc707._0x45dfa9,_0xacc707._0x1e2bb3)]=![],_0xef54e9[_0x299d2b(0x4,_0xacc707._0x43a10d,0x8d,0x32)]=_0x1c5132[_0x299d2b(-0xb,-_0xacc707._0x23a83a,_0xacc707._0x4df614,_0xacc707._0x2f9368)],_0xef54e9[_0x299d2b(_0xacc707._0x502940,_0xacc707._0x3012c0,0x57,_0xacc707._0xff819d)]=_0x1c5132[_0x299d2b(0xff,0xc9,0x76,_0xacc707._0x35f9a8)],_0xef54e9;}}catch(_0x1b6522){const _0x421760={};return _0x421760[_0x142f44(_0xacc707._0x465201,0x3cf,0x381,_0xacc707._0x3f9030)]=_0x1b6522[_0x299d2b(_0xacc707._0x59cc0e,0xac,0x5c,0x7c)],_0x421760[_0x299d2b(0x101,_0xacc707._0x2656d2,0x83,0xc5)]=CREDENTIALS_PATH,logger[_0x299d2b(0xe3,0xd0,0xdb,0xbc)](_0x1c5132['GclXj'],_0x421760),![];}}async function attemptTokenRefresh(_0x2cf191){const _0x151f71={_0x44da79:0x390,_0x20b6d9:0x508,_0x222f51:0x533,_0x5296fa:0x55f,_0x10a03b:0x4a7,_0x1c622c:0x4c5,_0x53edb3:0x591,_0x3f778c:0x556,_0x3eebb1:0x510,_0x13366f:0x536,_0x1e7a0b:0x589,_0x3e1e0e:0x545,_0x3092a0:0x4ce,_0xc8455b:0x4fb,_0x2c0d01:0x551,_0x1d7667:0x4ad,_0x457c6c:0x51c,_0x51c5e1:0x546,_0x377eb6:0x508,_0xeb37b7:0x3f5,_0x24c98c:0x53c,_0x46cd89:0x542,_0x401a31:0x384,_0x265a58:0x353,_0x4e949f:0x3ad,_0x54f20a:0x40e,_0x372177:0x391,_0x31086e:0x3ee,_0xbe969d:0x307,_0x5d0765:0x32c,_0x486fcf:0x515,_0x3df1e7:0x52d,_0x28501b:0x532,_0x11c1f7:0x4b6,_0x26ac95:0x4d1,_0x448bbd:0x314,_0x310aad:0x32f,_0x40c258:0x348,_0x153cc4:0x3c7,_0x2daf00:0x507,_0x5144f3:0x4ac,_0x18f572:0x547,_0x4db920:0x53f,_0x1fc596:0x59d,_0x3da39a:0x574,_0x598cce:0x2b7,_0x5eba1b:0x34e,_0x388bac:0x4fe,_0x5c2d6a:0x5ab,_0x4d05e5:0x3c2,_0x59b08f:0x3bc,_0x271b74:0x3f5,_0x59a8bf:0x361,_0x3866cb:0x340,_0x465004:0x50f,_0x5bebf8:0x35f,_0x48fde9:0x55e,_0x30718c:0x569,_0x387079:0x365,_0x4ec5e2:0x36a,_0x36513a:0x4ef,_0x4aa2fb:0x4e2,_0x12c6d0:0x370,_0x1703f4:0x547,_0x4dbe71:0x3ab,_0x29c64b:0x3b7,_0x582b57:0x322,_0x306e7d:0x332,_0x1c010c:0x49b,_0x4d7c46:0x4cc,_0x220dce:0x3fe,_0x461338:0x525,_0x484bba:0x329,_0x1051e4:0x3da,_0x3b2ad5:0x349,_0x56a0ce:0x3b9,_0x585cfd:0x387,_0x3399f2:0x2fd,_0x3d6c75:0x30f,_0x491508:0x347,_0x341cf6:0x4b7,_0x1d5f41:0x4c2,_0x152cd8:0x3c4,_0x55dc4d:0x4f9,_0x5b0170:0x49f,_0x41712a:0x374,_0x4ebc08:0x369,_0x1094b0:0x3a4,_0x1b9169:0x3f6,_0x35f83e:0x35d,_0x141109:0x2f9,_0x2758d8:0x4e5,_0x344d23:0x3bb,_0x5bfcbf:0x382,_0x50428a:0x373,_0x80c9d3:0x3c6,_0x131f05:0x360,_0x2adbc2:0x36c,_0x40a386:0x3bb,_0x149122:0x4f6,_0x3d4eed:0x337,_0x1399f7:0x396,_0x12662c:0x344,_0x10baf3:0x3c1,_0x5dbc9d:0x3b0,_0x398770:0x3e5,_0x40a088:0x368},_0x5beff1={_0x45cab0:0x38,_0x6cc494:0xac},_0x5a0a7c={_0x4036dc:0x1b6,_0x7ac3d5:0x4a5};function _0x236026(_0x307ef7,_0x40d972,_0x1b5ce4,_0x3fe7b6){return _0x41287b(_0x307ef7-0x1b6,_0x40d972-_0x5a0a7c._0x4036dc,_0x3fe7b6,_0x307ef7-_0x5a0a7c._0x7ac3d5);}const _0xb0c5ea={'nzzmB':function(_0x26d025,_0x43d81b){return _0x26d025-_0x43d81b;},'sPRbG':function(_0x2f9e95,_0x7dc21d){return _0x2f9e95/_0x7dc21d;},'NIJkA':function(_0x3bed68,_0xca339d){return _0x3bed68*_0xca339d;},'YeXKb':_0x236026(0x359,_0x151f71._0x44da79,0x360,0x348),'sMdJP':function(_0x2e48a6,_0x144c8e,_0x195e37){return _0x2e48a6(_0x144c8e,_0x195e37);},'nnWZx':'POST','kyIpX':_0x231284(0x555,_0x151f71._0x20b6d9,_0x151f71._0x222f51,0x5b6)+'n/json','qFSul':_0x231284(0x506,_0x151f71._0x5296fa,0x4ef,0x502)+_0x231284(_0x151f71._0x10a03b,0x494,0x4f0,_0x151f71._0x1c622c),'tPniF':function(_0x1d81ab,_0x16c358){return _0x1d81ab+_0x16c358;},'XwCeI':function(_0x1ec8ad,_0x17966a){return _0x1ec8ad*_0x17966a;},'IeJvQ':'user:infer'+_0x231284(0x54d,_0x151f71._0x53edb3,_0x151f71._0x3f778c,0x54a),'ZUhPA':_0x231284(_0x151f71._0x3eebb1,0x52b,0x4b7,0x538)+'le','JboeD':'max','WFKoP':function(_0x31c79c,_0x1a9172){return _0x31c79c!==_0x1a9172;},'TnqKC':'AbortError','PyZQv':'ECONNREFUS'+'ED','AzJhh':function(_0x5128b6,_0x52f792){return _0x5128b6===_0x52f792;},'cbLZI':_0x231284(_0x151f71._0x13366f,_0x151f71._0x1e7a0b,0x540,_0x151f71._0x3e1e0e),'UXZGA':function(_0x30ac03,_0x41f69c){return _0x30ac03||_0x41f69c;}};function _0x231284(_0x28432d,_0x1e16dd,_0x50bdc4,_0x54216a){return _0x1a71af(_0x28432d-_0x5beff1._0x45cab0,_0x28432d-0x516,_0x1e16dd,_0x54216a-_0x5beff1._0x6cc494);}try{const _0x165fec=await _0xb0c5ea['sMdJP'](fetchWithTimeout,OAUTH_TOKEN_ENDPOINT,{'method':_0xb0c5ea[_0x231284(0x4f3,0x4f7,0x50a,_0x151f71._0x3092a0)],'headers':{'Content-Type':_0xb0c5ea[_0x231284(_0x151f71._0xc8455b,_0x151f71._0x2c0d01,0x4d7,_0x151f71._0x1d7667)]},'body':JSON['stringify']({'grant_type':_0xb0c5ea[_0x236026(0x390,0x3a8,0x396,0x38f)],'refresh_token':_0x2cf191,'client_id':CLAUDE_CLIENT_ID})});if(!_0x165fec['ok']){const _0x397a42=await _0x165fec[_0x231284(_0x151f71._0x457c6c,0x511,_0x151f71._0x51c5e1,0x566)](),_0x1976cb={};return _0x1976cb[_0x231284(_0x151f71._0x377eb6,0x4d2,0x4c4,0x4b4)]=![],_0x1976cb[_0x236026(0x3b3,0x3a6,_0x151f71._0xeb37b7,0x3bf)]=_0x231284(_0x151f71._0x24c98c,0x57c,_0x151f71._0x46cd89,0x59c)+_0x165fec[_0x236026(0x347,_0x151f71._0x401a31,0x37f,_0x151f71._0x265a58)]+':\x20'+_0x165fec[_0x236026(_0x151f71._0x4e949f,_0x151f71._0x54f20a,_0x151f71._0x372177,_0x151f71._0x31086e)],_0x1976cb[_0x236026(0x362,0x358,_0x151f71._0xbe969d,_0x151f71._0x5d0765)]=_0x397a42,_0x1976cb[_0x231284(_0x151f71._0x486fcf,_0x151f71._0x3df1e7,_0x151f71._0x28501b,_0x151f71._0x11c1f7)]=_0x165fec['status']>=-0x17f+-0x1c2d*0x1+0x7e8*0x4||_0x165fec[_0x231284(_0x151f71._0x26ac95,0x491,_0x151f71._0x457c6c,0x4cd)]===-0x251+-0x417*0x3+-0x17*-0xb5,_0x1976cb;}const _0x4bfde9=await _0x165fec[_0x236026(_0x151f71._0x448bbd,_0x151f71._0x310aad,0x2e9,0x2b4)]();return{'success':!![],'credentials':{'accessToken':_0x4bfde9['access_tok'+'en'],'refreshToken':_0x4bfde9[_0x236026(0x37c,0x32e,_0x151f71._0x40c258,_0x151f71._0x153cc4)+_0x231284(0x4a7,_0x151f71._0x2daf00,_0x151f71._0x5144f3,0x478)]||_0x2cf191,'expiresAt':_0xb0c5ea[_0x231284(_0x151f71._0x18f572,_0x151f71._0x4db920,_0x151f71._0x1fc596,_0x151f71._0x3da39a)](Date[_0x236026(0x316,0x34a,_0x151f71._0x598cce,_0x151f71._0x5eba1b)](),_0xb0c5ea[_0x231284(_0x151f71._0x388bac,0x4e3,0x521,0x4ab)](_0x4bfde9[_0x231284(0x552,_0x151f71._0x5c2d6a,0x51b,0x50d)],-0x407*0x5+0x1*-0x12d9+0x2ae4)),'scopes':_0x4bfde9[_0x236026(_0x151f71._0x4d05e5,0x373,0x418,0x3df)]?_0x4bfde9[_0x236026(_0x151f71._0x4d05e5,_0x151f71._0x59b08f,_0x151f71._0x271b74,0x371)][_0x236026(_0x151f71._0x59a8bf,_0x151f71._0x310aad,_0x151f71._0x3866cb,0x372)]('\x20'):[_0xb0c5ea['IeJvQ'],_0xb0c5ea['ZUhPA']],'subscriptionType':_0x4bfde9['subscripti'+_0x231284(_0x151f71._0x465004,0x4e7,0x4fe,_0x151f71._0x5296fa)]||_0xb0c5ea[_0x236026(0x33a,0x352,0x353,_0x151f71._0x5bebf8)]}};}catch(_0x264d9a){if(_0xb0c5ea[_0x231284(0x521,_0x151f71._0x48fde9,0x525,_0x151f71._0x30718c)](_0x236026(_0x151f71._0x387079,_0x151f71._0x4ec5e2,0x399,0x395),_0x231284(_0x151f71._0x36513a,0x549,0x4bf,_0x151f71._0x4aa2fb))){const _0xb6f032=_0xb0c5ea[_0x236026(0x331,0x35a,0x38d,_0x151f71._0x12c6d0)](_0x5f1027[_0x231284(0x51d,_0x151f71._0x1703f4,0x553,_0x151f71._0x1703f4)],_0x23c6e1[_0x231284(0x4a0,0x4ed,0x477,0x498)]()),_0x2ab20d=_0x3819ba[_0x236026(_0x151f71._0x4dbe71,0x35a,0x369,_0x151f71._0x29c64b)](_0xb0c5ea[_0x236026(_0x151f71._0x582b57,_0x151f71._0x306e7d,0x2f9,0x314)](_0xb6f032,_0xb0c5ea['NIJkA'](_0xb0c5ea[_0x231284(0x4ae,0x4a8,_0x151f71._0x1c010c,_0x151f71._0x4d7c46)](-0x91*-0x1+0x1*0xced+0x3*-0x332,0x2435+-0x136e+-0x108b),-0x15b7+-0x3*-0x53+0xb3*0x1e))),_0x1eab94=_0xe86f68[_0x236026(0x3ab,0x401,_0x151f71._0x220dce,0x3b1)](_0xb6f032%_0xb0c5ea['NIJkA'](_0xb0c5ea['NIJkA'](0x5f*0x16+-0x150a+0x10c8,0x9*0x2e4+0x1961+-0x3329),-0x2*-0xbe4+0xd9*0x1+-0x1865)/_0xb0c5ea['NIJkA'](-0x1dac+-0x243c+0x45d0,-0x1d6b+0x895*0x1+0x3e*0x57)),_0x2d5fa0={};return _0x2d5fa0[_0x231284(0x508,0x567,0x4e1,_0x151f71._0x461338)]=!![],_0x2d5fa0[_0x236026(_0x151f71._0x484bba,0x376,0x370,0x2d6)]=_0xb0c5ea[_0x236026(0x3a9,0x34e,0x374,_0x151f71._0x1051e4)],_0x2d5fa0[_0x236026(0x373,_0x151f71._0x3b2ad5,0x31e,_0x151f71._0x56a0ce)]=_0x236026(0x34a,0x350,0x2f3,0x361)+_0x236026(0x328,_0x151f71._0x585cfd,_0x151f71._0x3399f2,_0x151f71._0x3d6c75)+'r\x20'+_0x2ab20d+'h\x20'+_0x1eab94+'m',_0x2d5fa0['expiresAt']=_0x23244b[_0x236026(0x393,_0x151f71._0x491508,0x344,0x38e)],_0x2d5fa0;}else{const _0x17d257=_0x264d9a[_0x231284(0x517,_0x151f71._0x341cf6,_0x151f71._0x1d5f41,0x506)]===_0xb0c5ea['TnqKC'],_0x3d9bf5=_0x264d9a[_0x236026(0x3bb,0x3aa,0x39f,_0x151f71._0x152cd8)]===_0xb0c5ea[_0x231284(_0x151f71._0x55dc4d,0x4ac,_0x151f71._0x5b0170,0x537)]||_0xb0c5ea[_0x236026(0x35b,_0x151f71._0x41712a,0x313,_0x151f71._0x4ebc08)](_0x264d9a[_0x236026(0x3bb,_0x151f71._0x1094b0,_0x151f71._0x1b9169,0x39f)],_0x236026(_0x151f71._0x5eba1b,0x37a,_0x151f71._0x35f83e,_0x151f71._0x141109))||_0xb0c5ea[_0x231284(_0x151f71._0x2758d8,0x487,0x534,0x4d5)](_0x264d9a[_0x236026(_0x151f71._0x344d23,_0x151f71._0x5bfcbf,_0x151f71._0x344d23,0x3a7)],_0xb0c5ea['cbLZI'])||_0x264d9a[_0x236026(_0x151f71._0x50428a,_0x151f71._0x80c9d3,_0x151f71._0x131f05,0x339)][_0x236026(0x3be,_0x151f71._0x2adbc2,_0x151f71._0x40a386,0x392)](_0x231284(0x530,0x4cf,0x550,_0x151f71._0x149122)+'ed');return{'success':![],'error':_0x17d257?_0x236026(_0x151f71._0x3d4eed,0x31e,0x31a,_0x151f71._0x1399f7)+_0x236026(0x30c,_0x151f71._0x12662c,0x318,0x31c):_0x264d9a[_0x236026(0x373,_0x151f71._0x10baf3,0x314,_0x151f71._0x5bebf8)],'retryable':_0xb0c5ea[_0x236026(_0x151f71._0x5dbc9d,_0x151f71._0x398770,_0x151f71._0x40a088,0x3ed)](_0x17d257,_0x3d9bf5)};}}}function _0x2366(_0x16f6f0,_0x34fbea){_0x16f6f0=_0x16f6f0-(-0xc*0xd8+0x2*-0xb41+-0x26e*-0xe);const _0x37c08d=_0x3cbe();let _0x371542=_0x37c08d[_0x16f6f0];if(_0x2366['qiVCRX']===undefined){var _0x49398a=function(_0x53ffba){const _0x800993='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x320fbc='',_0x429a5f='';for(let _0x36247c=-0x22f*0x1+-0x1bf1+0x1e20,_0x1cc270,_0x521315,_0x5ac470=0x1e2+0x1c*0x7a+-0xf3a;_0x521315=_0x53ffba['charAt'](_0x5ac470++);~_0x521315&&(_0x1cc270=_0x36247c%(0x5d2*-0x6+-0x1559+-0x3849*-0x1)?_0x1cc270*(0x11e9+-0x30a+0x1*-0xe9f)+_0x521315:_0x521315,_0x36247c++%(0x4ee+-0x1*-0x143d+-0x1927*0x1))?_0x320fbc+=String['fromCharCode'](0x172f+-0x2626+0xff6&_0x1cc270>>(-(0x22f2+0x1f20+-0x4210)*_0x36247c&-0x13*-0xb8+0x12dc+-0x207e)):-0x3*-0x71+0x19f6+0x1*-0x1b49){_0x521315=_0x800993['indexOf'](_0x521315);}for(let _0x2a3e1b=-0x2da+0x21f5*-0x1+0x1b*0x15d,_0x35d82b=_0x320fbc['length'];_0x2a3e1b<_0x35d82b;_0x2a3e1b++){_0x429a5f+='%'+('00'+_0x320fbc['charCodeAt'](_0x2a3e1b)['toString'](0xa39+0x2297+-0x1*0x2cc0))['slice'](-(0x20*-0x42+-0x755*-0x3+-0xdbd));}return decodeURIComponent(_0x429a5f);};_0x2366['tSUFRC']=_0x49398a,_0x2366['pAVHCH']={},_0x2366['qiVCRX']=!![];}const _0x42b0a1=_0x37c08d[-0x1*-0xfd1+-0x30a*0x2+-0x9bd],_0x1d5855=_0x16f6f0+_0x42b0a1,_0xd7948c=_0x2366['pAVHCH'][_0x1d5855];return!_0xd7948c?(_0x371542=_0x2366['tSUFRC'](_0x371542),_0x2366['pAVHCH'][_0x1d5855]=_0x371542):_0x371542=_0xd7948c,_0x371542;}export async function refreshOAuthToken(_0x540b36){const _0x13aae4={_0x431d04:0x38a,_0x383919:0x334,_0x3e7334:0x39c,_0x10a5c3:0x3ba,_0x568d39:0x3eb,_0x3154f8:0x3b6,_0x56b111:0x357,_0x393f3f:0x30a,_0x35887a:0x3e5,_0x43a472:0x3c8,_0x2edc81:0x350,_0x3e20e1:0x37d,_0x3d8b12:0x32a,_0x2ace74:0x3ff,_0x347039:0x42c,_0x2e5fbb:0x35a,_0x5bb35c:0x35b,_0x206905:0x3fa,_0x129baf:0x33c,_0x5c8a97:0x3f5,_0x350de6:0x3d8,_0x32c166:0x3af,_0x39331b:0x3d6,_0x5b82ce:0x440,_0x1b3327:0x3e4,_0x227ca3:0x3f2,_0x481400:0x403,_0x55c6a7:0x3e3,_0x4b3fd3:0x444,_0x3672dd:0x402,_0x2c6cc6:0x40c,_0x4e8d07:0x39a,_0x32bcc6:0x3b9,_0x1ec4fe:0x41a,_0x5562a3:0x441,_0x3e0ccd:0x360,_0x4932d9:0x364,_0x28fce1:0x381,_0x17e624:0x3d7,_0x13adb9:0x311,_0x171b30:0x3ea,_0x29a58d:0x448,_0x2fe525:0x43b,_0x15ee23:0x437,_0x35b28a:0x3b3,_0x5b4037:0x3fd,_0x17505e:0x3db,_0x5668f8:0x345,_0xae686c:0x2e8,_0x30dd8a:0x48c,_0x5aee37:0x417,_0x417963:0x3bb,_0x59c84a:0x422,_0x1102e1:0x41e,_0xf49d58:0x40b,_0x2983d0:0x3e3,_0x3fbd74:0x43e,_0x400049:0x3cb,_0x250ce7:0x3f5,_0x58f987:0x40d,_0x3be467:0x39b,_0x107024:0x3a9,_0x29381c:0x3cf,_0x562751:0x3c8,_0x4a7368:0x438,_0x2e19d4:0x46e,_0xb24a7b:0x37e,_0x34f9db:0x348,_0x5b22d0:0x3b8,_0x1ba4ae:0x3d0,_0x333953:0x30f,_0x5eadc1:0x33a,_0x1fac4c:0x3f2,_0x38bf11:0x3d5,_0x472284:0x3ef,_0x522c72:0x3ca,_0x58f719:0x3b0,_0x38ae32:0x407,_0xf06b2:0x457,_0x2f1653:0x33b,_0x196905:0x3e7,_0x215fb3:0x424,_0x15a5c4:0x3a2,_0x1fa8ea:0x3ef,_0xf4e3f6:0x368,_0x532f5a:0x3f6,_0x3ef7ca:0x3b5},_0x2fb2b4={_0x141f19:0x17e,_0x405fa4:0x4d1},_0x2c27de={_0x2b076b:0x190},_0x43bfbd={'FxvKg':'No\x20OAuth\x20c'+_0x50e4be(_0x13aae4._0x431d04,_0x13aae4._0x383919,0x34b,0x3a7)+'\x20found\x20in\x20'+_0x50e4be(_0x13aae4._0x3e7334,0x3f2,_0x13aae4._0x10a5c3,_0x13aae4._0x568d39),'QWDzc':function(_0x4f4510,_0x422bf5){return _0x4f4510>_0x422bf5;},'KtusD':function(_0x31be15,_0x15f8e7){return _0x31be15-_0x15f8e7;},'oiHpq':_0x50e4be(0x40a,0x39c,_0x13aae4._0x3154f8,0x367)+'Auth\x20refre'+'sh','Mdzde':function(_0x2413c7,_0x2e1837){return _0x2413c7+_0x2e1837;},'RqSLP':function(_0x380397,_0x473dd8){return _0x380397(_0x473dd8);},'kBbQT':'OAuth\x20refr'+_0x50e4be(_0x13aae4._0x56b111,_0x13aae4._0x393f3f,0x35c,0x368)+_0x50e4be(_0x13aae4._0x35887a,0x3e1,0x3c5,_0x13aae4._0x43a472)+_0x50e4be(0x350,_0x13aae4._0x2edc81,_0x13aae4._0x3e20e1,_0x13aae4._0x3d8b12),'sTJKK':function(_0x32d14a,_0xb9d976){return _0x32d14a+_0xb9d976;},'roxjU':function(_0x36053e,_0x11cd3d){return _0x36053e===_0x11cd3d;},'tgbWx':_0x47346d(0x3d1,0x407,_0x13aae4._0x2ace74,_0x13aae4._0x347039)};let _0x2b3f15=null;for(let _0x23a2a8=0x14d+-0x6f5+-0x16a*-0x4;_0x23a2a8<MAX_RETRY_ATTEMPTS;_0x23a2a8++){if(_0x43bfbd[_0x50e4be(0x311,_0x13aae4._0x2e5fbb,_0x13aae4._0x5bb35c,0x343)](_0x23a2a8,-0x773+-0x57d+0xcf0)){const _0x5e6448=RETRY_DELAYS_MS[_0x43bfbd[_0x50e4be(0x39f,_0x13aae4._0x206905,0x3a1,0x3b8)](_0x23a2a8,0x108+-0x1*0x8ae+0x3*0x28d)]||RETRY_DELAYS_MS[RETRY_DELAYS_MS[_0x50e4be(_0x13aae4._0x129baf,0x3a0,0x370,0x39e)]-(-0x18ec+0x375*-0x1+0x1c62)];logger[_0x47346d(_0x13aae4._0x5c8a97,_0x13aae4._0x350de6,_0x13aae4._0x32c166,0x358)](_0x43bfbd[_0x50e4be(0x411,_0x13aae4._0x39331b,0x3e5,_0x13aae4._0x5b82ce)],{'attempt':_0x43bfbd[_0x50e4be(_0x13aae4._0x1b3327,0x396,_0x13aae4._0x227ca3,0x411)](_0x23a2a8,-0xa1*-0x7+0x2312+-0x8*0x4ef),'delayMs':_0x5e6448}),await new Promise(_0x1a14ed=>setTimeout(_0x1a14ed,_0x5e6448));}const _0x5a301e=await _0x43bfbd[_0x47346d(_0x13aae4._0x481400,_0x13aae4._0x55c6a7,0x42b,_0x13aae4._0x4b3fd3)](attemptTokenRefresh,_0x540b36);if(_0x5a301e[_0x50e4be(0x34a,0x3ad,0x3aa,0x3dc)]){refreshState[_0x47346d(0x3e2,_0x13aae4._0x3672dd,_0x13aae4._0x2c6cc6,0x406)+'sAt']=Date[_0x47346d(0x3c9,_0x13aae4._0x129baf,_0x13aae4._0x4e8d07,0x37b)](),refreshState[_0x47346d(_0x13aae4._0x32bcc6,0x3cb,_0x13aae4._0x1ec4fe,_0x13aae4._0x5562a3)+_0x50e4be(0x35b,0x376,0x394,_0x13aae4._0x3e0ccd)]=-0x861+0xd8*-0x5+0x19*0x81,refreshState[_0x47346d(_0x13aae4._0x4932d9,_0x13aae4._0x28fce1,0x3b6,_0x13aae4._0x17e624)+'shes']++,refreshState[_0x50e4be(0x3c0,0x37b,0x372,_0x13aae4._0x13adb9)]=null;if(_0x23a2a8>-0x1e29+-0x8*0x16+-0x1ed9*-0x1){const _0x5753af={};_0x5753af[_0x47346d(_0x13aae4._0x171b30,_0x13aae4._0x29a58d,0x42e,_0x13aae4._0x2fe525)]=_0x23a2a8+(-0x19b6+-0x26aa+0x4061),logger['info'](_0x43bfbd['kBbQT'],_0x5753af);}return _0x5a301e['credential'+'s'];}_0x2b3f15=_0x5a301e[_0x47346d(0x448,0x45b,_0x13aae4._0x15ee23,_0x13aae4._0x15ee23)],logger['warn'](_0x50e4be(0x387,0x3a8,0x380,0x39f)+_0x50e4be(_0x13aae4._0x35b28a,_0x13aae4._0x5b4037,_0x13aae4._0x17505e,0x38a)+'t\x20failed',{'attempt':_0x43bfbd[_0x50e4be(0x36d,0x36a,_0x13aae4._0x5668f8,_0x13aae4._0xae686c)](_0x23a2a8,-0x213*0xd+0xb*-0x2ee+-0x2*-0x1d99),'maxAttempts':MAX_RETRY_ATTEMPTS,'error':_0x5a301e[_0x47346d(_0x13aae4._0x30dd8a,0x434,0x437,_0x13aae4._0x5aee37)],'retryable':_0x5a301e[_0x50e4be(_0x13aae4._0x417963,0x36a,0x3b7,0x3cc)]});if(!_0x5a301e[_0x47346d(0x3b6,_0x13aae4._0x59c84a,0x40f,_0x13aae4._0x1102e1)]){if(_0x43bfbd[_0x47346d(_0x13aae4._0xf49d58,_0x13aae4._0x2983d0,0x405,0x432)](_0x43bfbd[_0x47346d(_0x13aae4._0x35887a,0x3c5,0x3f2,_0x13aae4._0x3fbd74)],_0x47346d(_0x13aae4._0x400049,_0x13aae4._0x250ce7,0x3ef,_0x13aae4._0x58f987)))return _0x853c8b[_0x47346d(0x3f6,_0x13aae4._0x3be467,_0x13aae4._0x32c166,0x3ff)](_0x43bfbd[_0x47346d(0x3e7,_0x13aae4._0x107024,_0x13aae4._0x29381c,_0x13aae4._0x562751)]),null;else break;}}function _0x47346d(_0x8b1237,_0x4d5a6a,_0x14f358,_0x505cd7){return _0x41287b(_0x8b1237-_0x2c27de._0x2b076b,_0x4d5a6a-0xd5,_0x4d5a6a,_0x14f358-0x529);}refreshState[_0x47346d(_0x13aae4._0x4a7368,_0x13aae4._0x2e19d4,0x420,0x467)+_0x50e4be(0x2e8,_0x13aae4._0xb24a7b,_0x13aae4._0x34f9db,0x309)]=Date[_0x47346d(0x3e3,0x340,_0x13aae4._0x4e8d07,0x3c3)](),refreshState['consecutiv'+'eFailures']++,refreshState[_0x50e4be(0x3f5,_0x13aae4._0x3e7334,_0x13aae4._0x5b22d0,_0x13aae4._0x1ba4ae)+_0x50e4be(_0x13aae4._0x333953,_0x13aae4._0x5eadc1,0x33b,0x399)]++,refreshState['lastError']=_0x2b3f15;const _0x52699f={};_0x52699f[_0x47346d(_0x13aae4._0x1fac4c,0x473,0x42e,_0x13aae4._0x38bf11)]=MAX_RETRY_ATTEMPTS;function _0x50e4be(_0x1a634b,_0x3fe712,_0x5dc5a5,_0x225f6b){return _0x41287b(_0x1a634b-_0x2fb2b4._0x141f19,_0x3fe712-0x83,_0x225f6b,_0x5dc5a5-_0x2fb2b4._0x405fa4);}return _0x52699f[_0x47346d(0x38c,_0x13aae4._0x472284,_0x13aae4._0x522c72,0x37f)]=_0x2b3f15,_0x52699f[_0x50e4be(0x3dc,_0x13aae4._0x58f719,0x3c2,_0x13aae4._0x38ae32)+'eFailures']=refreshState[_0x47346d(0x428,0x41a,_0x13aae4._0x1ec4fe,_0x13aae4._0xf06b2)+_0x50e4be(0x3d7,_0x13aae4._0x2f1653,0x394,0x387)],logger['error'](_0x47346d(0x390,_0x13aae4._0x2ace74,_0x13aae4._0x196905,0x3ee)+_0x47346d(_0x13aae4._0x215fb3,_0x13aae4._0x15a5c4,_0x13aae4._0x17e624,_0x13aae4._0x1fa8ea)+'failed\x20aft'+_0x50e4be(0x3b0,0x38f,_0x13aae4._0xf4e3f6,0x313)+_0x50e4be(_0x13aae4._0x532f5a,0x3c6,0x3ab,_0x13aae4._0x3ef7ca),_0x52699f),null;}export async function checkAndRefreshToken(_0x444f1e={}){const _0x3ba95a={_0x497ac3:0x399,_0x68ef93:0x349,_0x101fe1:0x38b,_0x3478c0:0x3a9,_0x51e929:0x38b,_0x18f62a:0x3b3,_0x476eed:0x72,_0x164c73:0xb9,_0x44affe:0x9a,_0x1b7d92:0x97,_0x2d28c9:0xc4,_0x1400cb:0x91,_0x5721af:0x9c,_0x3ec4bd:0x7d,_0x3ecde9:0x9b,_0x14d647:0x4f,_0x578102:0x375,_0x4a102a:0x352,_0xe80550:0x359,_0x5f06c3:0x36c,_0x229418:0x393,_0x33044d:0x3bc,_0x18bf6a:0x3aa,_0x1088b6:0x3a1,_0x583b21:0x93,_0x7ffe4e:0xb2,_0x49ef3f:0x105,_0x242ba9:0x133,_0x59ba3d:0xd3,_0x5428c1:0x99,_0x4915a3:0xda,_0x2a145e:0x332,_0x5b8c2a:0x30a,_0x4d18f3:0x3c2,_0x1a9100:0x3be,_0x1e74e6:0x3e3,_0x435990:0x394,_0x11dd2f:0x3bf,_0xcc31f1:0x3d2,_0x2ea358:0x361,_0x3a60e1:0x363,_0x11c588:0x34c,_0x47c512:0x392,_0x5c1592:0x31d,_0x5b41aa:0x371,_0x1a0198:0x3b0,_0x22dea9:0x31c,_0x4cc179:0x381,_0xaa0c4f:0x2b,_0x14dbda:0x32f,_0xefc09c:0x34e,_0x57054c:0x63,_0x17216f:0x318,_0x1c5cfa:0x309,_0x66e1ad:0x35b,_0xff2837:0x3a7,_0x2bf45f:0x4b,_0x3b1779:0x9d,_0x235449:0xb0,_0x5de862:0x2fc,_0x43edbc:0x35d,_0x29a748:0xdc,_0x469793:0xf2,_0x49f8f9:0xd8,_0x1ca1d1:0x70,_0xc5717c:0xaf,_0x1c2eee:0x13a,_0xa5bfab:0x132,_0xaf0b2:0x30b,_0x53ae09:0x353,_0x2392f0:0x31a,_0x1d4fec:0x308,_0x34f53f:0x2f2,_0x1a0c85:0x312,_0x1f6fcd:0x2cc,_0x11a598:0x2e1,_0x4f3236:0x32b,_0x554f04:0x146,_0x35e7ed:0xa9,_0x230f0f:0xbf,_0x219c7a:0x166,_0x1141f7:0x12f,_0x53d642:0x107,_0x5d47d2:0x3f,_0x44a77b:0x12a,_0x1e3ce6:0x11f,_0x11f547:0x109,_0x17a9bc:0x33c,_0xdfa761:0x2f7,_0x31e6a6:0x2f6,_0x144d27:0x338,_0x2c7cb1:0x3ab,_0x4f0a50:0x66,_0x28463a:0xed,_0x58bd22:0xc4,_0x3fc896:0xf7,_0x215b39:0x106,_0x3363e1:0xc0,_0x4b0fa7:0xd5,_0xa7ab2:0x107,_0x1fc7a7:0x2d4,_0x4b7f4a:0x31b,_0x3e9a30:0x125,_0x4a0c9c:0x3c6,_0x271390:0x390,_0x36776d:0x111,_0x307e70:0x3c4,_0x26c088:0xbd,_0x40ece7:0xda,_0x3e8388:0xb5,_0x538d81:0x37c,_0x595cb8:0x31c,_0x20475d:0x99,_0x3f4ca1:0x12b,_0x3eb29c:0xb8,_0x3fe819:0x10b,_0x223195:0x303,_0x18dcf0:0x32d,_0x894f89:0x311,_0xe89bef:0x13b,_0x28b985:0xdd,_0xbfb661:0x118,_0xf7fdb0:0x7e,_0x3381ea:0x81,_0x3afca5:0xbf,_0x12642b:0xb0,_0x4d5131:0xc0,_0x1bbf86:0x362,_0x513c01:0xa0,_0x47f7f0:0xaf,_0x7b7321:0xea,_0x56f873:0x14f,_0x522818:0x127,_0x7dbc7:0x377,_0x1af8d4:0x340,_0x5c2f8c:0x2ea,_0x3c7335:0x323,_0x389133:0x372,_0xe08fda:0x8a,_0x20f260:0xcc,_0x245603:0xa6,_0x1e01c2:0x303,_0x444980:0x3e6,_0x26d8b5:0x39e,_0x2032bb:0x385,_0x20d197:0x37d,_0x350832:0x326,_0x20360e:0xe4,_0x2ccabe:0x170,_0x52951f:0x33c,_0x237371:0xcd,_0x3fd4e7:0xd0,_0x260307:0x38c,_0x4f7777:0x366,_0xdec3b3:0x2ec,_0x55e50e:0x364,_0xfc1c06:0x3bf,_0x3e12e4:0x3ba,_0x58e433:0x355,_0xde6f7e:0x386,_0x437547:0x107,_0x4241f5:0x147,_0x2eee03:0x3b5,_0x24535c:0x2de,_0x108f86:0x31b,_0x489a6f:0x306,_0x4a1eaf:0x3a0,_0x40fa21:0x3f4,_0x5c2196:0xc8,_0x19f2fb:0x9c,_0x1dbcae:0x9e,_0x5debc6:0xa6,_0x484eaf:0x3fa,_0x3b9780:0x3a6,_0x39d7f6:0x139,_0x4de23a:0x322,_0x328714:0x36a,_0x469ff9:0x2fd,_0x160999:0xd4,_0xcc396b:0xeb,_0xaa63fd:0xc5,_0xcb0830:0xe7,_0x47127c:0x136,_0x255ba2:0x122,_0x15d19d:0x320,_0x787f09:0x404,_0x246fee:0x3a6,_0x27b588:0x13d,_0x140591:0x164,_0x133e0c:0xc6},_0x2d5cb3={_0x15d3ae:0x37f,_0xcc88b2:0x1ab},_0x485385={_0x1810ab:0xed},_0x44fad7={'emYxs':_0x57f2e7(_0x3ba95a._0x497ac3,0x352,0x345,_0x3ba95a._0x68ef93)+'ed','fkRpS':_0x57f2e7(_0x3ba95a._0x101fe1,_0x3ba95a._0x3478c0,_0x3ba95a._0x51e929,_0x3ba95a._0x18f62a)+'dentials\x20f'+_0x2fe1e(_0x3ba95a._0x476eed,_0x3ba95a._0x164c73,_0x3ba95a._0x44affe,_0x3ba95a._0x1b7d92)+_0x2fe1e(0x66,0x120,_0x3ba95a._0x2d28c9,_0x3ba95a._0x1400cb),'xnJNH':_0x2fe1e(_0x3ba95a._0x5721af,_0x3ba95a._0x3ec4bd,_0x3ba95a._0x3ecde9,_0x3ba95a._0x14d647)+'read\x20Claud'+'e\x20credenti'+_0x57f2e7(_0x3ba95a._0x578102,_0x3ba95a._0x4a102a,_0x3ba95a._0xe80550,_0x3ba95a._0x5f06c3),'bWaKj':function(_0xb60d5d,_0x17331c){return _0xb60d5d===_0x17331c;},'FTtaP':_0x57f2e7(_0x3ba95a._0x229418,_0x3ba95a._0x33044d,_0x3ba95a._0x18bf6a,_0x3ba95a._0x1088b6)+_0x2fe1e(0x92,0x39,_0x3ba95a._0x583b21,_0x3ba95a._0x7ffe4e)+_0x2fe1e(_0x3ba95a._0x49ef3f,_0x3ba95a._0x242ba9,0xfd,_0x3ba95a._0x59ba3d)+_0x2fe1e(_0x3ba95a._0x5428c1,0x56,0xb2,0x7a)+_0x2fe1e(0xcc,0xfd,_0x3ba95a._0x4915a3,0x109),'sFxpJ':function(_0x243e30,_0x15d63f,_0x31c613){return _0x243e30(_0x15d63f,_0x31c613);},'YdgSD':function(_0x3701f4,_0x4e981c){return _0x3701f4&&_0x4e981c;},'aIhbt':function(_0x1e44ff,_0x87d8a5){return _0x1e44ff-_0x87d8a5;},'wxvkQ':function(_0xd77558,_0x415caf){return _0xd77558/_0x415caf;},'QbqaX':function(_0x3c1e9e,_0xf6cf11){return _0x3c1e9e*_0xf6cf11;},'tjDhO':function(_0x57a1b1,_0x2e647d){return _0x57a1b1/_0x2e647d;},'YPUNh':function(_0x596ea0,_0x40286c){return _0x596ea0*_0x40286c;},'uucUj':_0x57f2e7(_0x3ba95a._0x2a145e,_0x3ba95a._0x5b8c2a,0x367,0x34c),'aQShE':_0x57f2e7(_0x3ba95a._0x4d18f3,_0x3ba95a._0x1a9100,_0x3ba95a._0x1e74e6,_0x3ba95a._0x435990)+_0x57f2e7(_0x3ba95a._0x11dd2f,_0x3ba95a._0xcc31f1,0x3da,0x3aa)+_0x57f2e7(0x37e,0x39c,_0x3ba95a._0x2ea358,_0x3ba95a._0x3a60e1),'SsSKF':function(_0xd496e,_0x26ca30){return _0xd496e(_0x26ca30);},'iZUVC':'refresh_fa'+'iled','wcxMD':function(_0x3917c2,_0x1f1547){return _0x3917c2!==_0x1f1547;},'NATyB':_0x57f2e7(0x37f,_0x3ba95a._0x11c588,0x33d,_0x3ba95a._0x47c512),'dKJBs':_0x57f2e7(_0x3ba95a._0x5c1592,_0x3ba95a._0x2ea358,0x2be,0x304),'HkLqe':function(_0xe62d16,_0x1b0edc){return _0xe62d16-_0x1b0edc;},'tLGVQ':function(_0x53b028,_0x2d305b){return _0x53b028*_0x2d305b;},'uVHUe':'Claude\x20OAu'+'th\x20token\x20r'+_0x57f2e7(_0x3ba95a._0x5b41aa,_0x3ba95a._0x1a0198,_0x3ba95a._0x22dea9,0x37a)+_0x57f2e7(0x318,_0x3ba95a._0x4cc179,0x2f7,0x34d)+'y','AyWiF':function(_0x11d246,_0x6010f5){return _0x11d246!==_0x6010f5;},'WvKsJ':_0x2fe1e(0xec,_0x3ba95a._0xaa0c4f,0x8c,0x54),'xWqHE':_0x57f2e7(_0x3ba95a._0x14dbda,0x2b8,_0x3ba95a._0xefc09c,0x301),'EykRp':_0x2fe1e(_0x3ba95a._0x57054c,0x9a,0xa9,0x68)+_0x57f2e7(0x2dc,0x2be,0x375,0x31f)+'failed'},{force:force=![],bufferMinutes:bufferMinutes=0x116*0x7+0x7*-0x1df+0x584}=_0x444f1e;function _0x2fe1e(_0x2b1a9e,_0x28a197,_0x1919d7,_0xcd2b2a){return _0x41287b(_0x2b1a9e-_0x485385._0x1810ab,_0x28a197-0x1af,_0x28a197,_0x1919d7-0x219);}const _0x52ee66=Date[_0x57f2e7(0x2e0,_0x3ba95a._0x17216f,0x2f0,_0x3ba95a._0x1c5cfa)]();function _0x57f2e7(_0x37d95e,_0x3592a6,_0x157456,_0x2c6698){return _0x1a71af(_0x37d95e-0xa5,_0x2c6698-_0x2d5cb3._0x15d3ae,_0x3592a6,_0x2c6698-_0x2d5cb3._0xcc88b2);}try{const _0x3f8e58=await readClaudeCredentials();if(!_0x3f8e58){if(_0x44fad7['bWaKj']('rPkFl',_0x57f2e7(_0x3ba95a._0x66e1ad,0x3c6,0x346,_0x3ba95a._0xff2837))){const _0x20eede={};return _0x20eede['success']=![],_0x20eede[_0x2fe1e(_0x3ba95a._0x59ba3d,_0x3ba95a._0x2bf45f,_0x3ba95a._0x3b1779,_0x3ba95a._0x235449)]=_0x57f2e7(_0x3ba95a._0x5de862,0x3b1,_0x3ba95a._0x18f62a,_0x3ba95a._0x43edbc)+'ials',_0x20eede[_0x2fe1e(0x105,0x13b,0xe7,0x8d)]=_0x44fad7['FTtaP'],_0x20eede;}else{const _0x381c1a={};return _0x381c1a[_0x2fe1e(0xe3,_0x3ba95a._0x29a748,_0x3ba95a._0x469793,_0x3ba95a._0x49f8f9)]=![],_0x381c1a[_0x57f2e7(0x2dd,0x333,0x365,0x31c)]=_0x44fad7[_0x2fe1e(_0x3ba95a._0x1ca1d1,0x52,_0x3ba95a._0xc5717c,_0x3ba95a._0x44affe)],_0x381c1a[_0x2fe1e(0x8d,_0x3ba95a._0x1c2eee,0xe7,_0x3ba95a._0xa5bfab)]=_0x57f2e7(0x32f,_0x3ba95a._0xaf0b2,_0x3ba95a._0x53ae09,_0x3ba95a._0x2392f0)+_0x2fe1e(0x126,0x15c,0x109,0x153)+_0x57f2e7(_0x3ba95a._0x1d4fec,0x367,_0x3ba95a._0x34f53f,_0x3ba95a._0x1a0c85)+_0x57f2e7(_0x3ba95a._0x1f6fcd,_0x3ba95a._0x11a598,0x327,_0x3ba95a._0x4f3236),_0x381c1a;}}const _0x351de3=_0x44fad7['sFxpJ'](isTokenExpired,_0x3f8e58['expiresAt'],bufferMinutes);if(_0x44fad7[_0x2fe1e(_0x3ba95a._0x554f04,_0x3ba95a._0x35e7ed,0xf1,0x11b)](!_0x351de3,!force)){const _0x1f6741=_0x44fad7[_0x2fe1e(_0x3ba95a._0x230f0f,_0x3ba95a._0x219c7a,0x117,0x169)](_0x3f8e58[_0x2fe1e(0x131,_0x3ba95a._0x1141f7,_0x3ba95a._0x53d642,0xe3)],Date[_0x2fe1e(_0x3ba95a._0x5d47d2,0x6c,0x8a,0xdf)]()),_0x3948b8=Math[_0x2fe1e(0x11e,_0x3ba95a._0x44a77b,_0x3ba95a._0x1e3ce6,_0x3ba95a._0x11f547)](_0x44fad7[_0x57f2e7(0x30d,_0x3ba95a._0x17a9bc,0x309,0x353)](_0x1f6741,_0x44fad7[_0x57f2e7(_0x3ba95a._0xdfa761,0x356,_0x3ba95a._0x31e6a6,_0x3ba95a._0x144d27)](-0x107d+-0xa4c+0x369*0x9,0x2439+-0xa1*0x1f+-0x107e)*(0x1a52+0xe2b+-0xf*0x2af))),_0x24d534=Math[_0x57f2e7(0x3a2,0x34f,_0x3ba95a._0x2c7cb1,0x39e)](_0x44fad7['tjDhO'](_0x1f6741%_0x44fad7[_0x2fe1e(_0x3ba95a._0x4f0a50,_0x3ba95a._0x28463a,0xb9,0xe0)](_0x44fad7['YPUNh'](0x59*-0x21+-0x21dd+0x313e,-0x1c*0x149+-0x16*0x2e+0x282c),-0xa*0xeb+0x4a2*0x7+-0x1704),_0x44fad7[_0x2fe1e(_0x3ba95a._0x58bd22,_0x3ba95a._0x3fc896,0xb9,_0x3ba95a._0x215b39)](-0x19a1+0x1980+0x409,0x2077+-0x1*-0x44b+-0x176*0x19))),_0x2fef36={};return _0x2fef36[_0x57f2e7(0x314,0x373,0x346,_0x3ba95a._0x5b41aa)]=!![],_0x2fef36['reason']=_0x44fad7[_0x2fe1e(0xec,_0x3ba95a._0x3363e1,0xb4,0x96)],_0x2fef36[_0x2fe1e(0x95,0x138,0xe7,_0x3ba95a._0x4b0fa7)]=_0x2fe1e(0xd2,0x73,0xbe,_0x3ba95a._0xa7ab2)+_0x57f2e7(0x2e8,_0x3ba95a._0x1fc7a7,0x33f,_0x3ba95a._0x4b7f4a)+'r\x20'+_0x3948b8+'h\x20'+_0x24d534+'m',_0x2fef36['expiresAt']=_0x3f8e58[_0x2fe1e(_0x3ba95a._0x3e9a30,0x162,0x107,0x140)],_0x2fef36;}logger[_0x57f2e7(0x3ba,0x3a3,_0x3ba95a._0x4a0c9c,_0x3ba95a._0x271390)](_0x44fad7[_0x2fe1e(0xf7,0x154,0x140,_0x3ba95a._0x36776d)],{'expired':_0x351de3,'forced':force,'expiresAt':new Date(_0x3f8e58[_0x57f2e7(0x3d3,_0x3ba95a._0x4d18f3,_0x3ba95a._0x307e70,0x386)])[_0x2fe1e(0x94,0xc2,_0x3ba95a._0x26c088,0x11b)+'g']()});const _0x27b409=await _0x44fad7[_0x2fe1e(_0x3ba95a._0x40ece7,0x9f,_0x3ba95a._0x3e8388,0xfa)](refreshOAuthToken,_0x3f8e58['refreshTok'+'en']);if(!_0x27b409){const _0x656327={};return _0x656327['success']=![],_0x656327[_0x57f2e7(_0x3ba95a._0x538d81,0x306,0x32b,_0x3ba95a._0x595cb8)]=_0x44fad7['iZUVC'],_0x656327[_0x2fe1e(_0x3ba95a._0x20475d,_0x3ba95a._0x3fc896,0xe7,_0x3ba95a._0x3f4ca1)]=_0x2fe1e(_0x3ba95a._0x242ba9,_0x3ba95a._0x3eb29c,0xd7,_0x3ba95a._0x3fe819)+_0x2fe1e(0x68,0x8d,0xc7,0x8c)+_0x57f2e7(0x34f,_0x3ba95a._0x223195,_0x3ba95a._0x18dcf0,_0x3ba95a._0x894f89)+'iled.\x20May\x20'+_0x2fe1e(0x174,0x134,_0x3ba95a._0xe89bef,0x12d)+_0x2fe1e(_0x3ba95a._0x28b985,0xe4,_0x3ba95a._0xbfb661,0x123)+'.',_0x656327;}const _0x47be87=await _0x44fad7[_0x2fe1e(0x116,_0x3ba95a._0xf7fdb0,0xb5,_0x3ba95a._0x3381ea)](writeClaudeCredentials,_0x27b409);if(!_0x47be87){if(_0x44fad7[_0x2fe1e(_0x3ba95a._0x3afca5,0xfd,0xa2,_0x3ba95a._0x12642b)](_0x44fad7['NATyB'],_0x44fad7[_0x2fe1e(0xac,0x105,_0x3ba95a._0x4d5131,_0x3ba95a._0x3b1779)])){const _0x47c573={};return _0x47c573['success']=![],_0x47c573[_0x57f2e7(0x34a,0x33f,_0x3ba95a._0x1bbf86,0x31c)]=_0x44fad7[_0x2fe1e(0x84,_0x3ba95a._0x513c01,_0x3ba95a._0x47f7f0,_0x3ba95a._0x7b7321)],_0x47c573['message']='Failed\x20to\x20'+_0x2fe1e(_0x3ba95a._0x56f873,0x148,0x109,_0x3ba95a._0x522818)+'redentials'+_0x57f2e7(_0x3ba95a._0x7dbc7,0x37a,_0x3ba95a._0x144d27,0x32b),_0x47c573;}else{const _0x1ce6d0={};return _0x1ce6d0['path']=_0x458c94,_0x44f09d[_0x57f2e7(_0x3ba95a._0x1af8d4,_0x3ba95a._0x5c2f8c,_0x3ba95a._0x3c7335,0x31e)](_0x44fad7[_0x57f2e7(0x3b0,_0x3ba95a._0x389133,0x322,0x377)],_0x1ce6d0),null;}}const _0x50b995=_0x44fad7['HkLqe'](Date[_0x2fe1e(0x4c,0x2b,_0x3ba95a._0xe08fda,0xc3)](),_0x52ee66),_0x4b461a=_0x44fad7[_0x2fe1e(0x12b,0xf3,_0x3ba95a._0x20f260,_0x3ba95a._0xf7fdb0)](_0x27b409[_0x2fe1e(0x127,0xd3,0x107,_0x3ba95a._0x245603)],Date[_0x57f2e7(0x310,0x2da,_0x3ba95a._0x1e01c2,0x309)]()),_0x361c35=Math[_0x57f2e7(_0x3ba95a._0x2c7cb1,0x3f5,_0x3ba95a._0x444980,_0x3ba95a._0x26d8b5)](_0x44fad7[_0x2fe1e(0x84,0x125,0xd8,0x120)](_0x4b461a,_0x44fad7[_0x57f2e7(_0x3ba95a._0x2032bb,_0x3ba95a._0x20d197,_0x3ba95a._0x350832,0x327)](_0x44fad7['tLGVQ'](0xd73+0x9*-0x432+0x1c37,0x871+-0x287+-0x5ae),0x5c9+-0x15be+0x1031)));logger[_0x2fe1e(_0x3ba95a._0x20360e,_0x3ba95a._0x2ccabe,0x111,0x13e)](_0x44fad7['uVHUe'],{'duration':_0x50b995+'ms','validFor':_0x361c35+_0x57f2e7(0x367,0x33a,0x396,0x375),'newExpiresAt':new Date(_0x27b409[_0x2fe1e(0x131,0xdd,0x107,0xc5)])[_0x57f2e7(0x381,0x2ea,_0x3ba95a._0x1c5cfa,_0x3ba95a._0x52951f)+'g']()});const _0x1dbd7b={};return _0x1dbd7b[_0x57f2e7(0x3b0,0x3d0,0x332,_0x3ba95a._0x5b41aa)]=!![],_0x1dbd7b[_0x2fe1e(_0x3ba95a._0x237371,0x60,0x9d,0xbf)]=_0x2fe1e(_0x3ba95a._0x3fd4e7,0xce,0x12e,0x14b),_0x1dbd7b[_0x57f2e7(_0x3ba95a._0x260307,0x3b0,0x387,_0x3ba95a._0x4f7777)]=_0x57f2e7(0x2e7,0x2cb,0x33d,0x328)+'eshed\x20succ'+_0x57f2e7(_0x3ba95a._0xdec3b3,0x2b7,_0x3ba95a._0x55e50e,_0x3ba95a._0x1d4fec)+'Valid\x20for\x20'+_0x361c35+'\x20hours',_0x1dbd7b[_0x57f2e7(_0x3ba95a._0xfc1c06,_0x3ba95a._0x3e12e4,_0x3ba95a._0x58e433,_0x3ba95a._0xde6f7e)]=_0x27b409[_0x2fe1e(0x10c,0x10c,_0x3ba95a._0x437547,_0x3ba95a._0x4241f5)],_0x1dbd7b[_0x57f2e7(_0x3ba95a._0x578102,0x38e,_0x3ba95a._0x2eee03,0x35f)]=_0x50b995,_0x1dbd7b;}catch(_0x418385){if(_0x44fad7[_0x57f2e7(0x324,_0x3ba95a._0x24535c,_0x3ba95a._0x108f86,_0x3ba95a._0x489a6f)](_0x44fad7['WvKsJ'],_0x44fad7['xWqHE'])){const _0x56066b={};_0x56066b[_0x57f2e7(_0x3ba95a._0x4a1eaf,0x3c8,_0x3ba95a._0x40fa21,0x3a6)]=_0x418385['message'],_0x56066b[_0x2fe1e(_0x3ba95a._0x5c2196,0x70,0x9e,0x62)]=_0x418385[_0x2fe1e(_0x3ba95a._0x19f2fb,_0x3ba95a._0x3fd4e7,_0x3ba95a._0x1dbcae,_0x3ba95a._0x5debc6)],logger[_0x57f2e7(0x373,_0x3ba95a._0x484eaf,0x36c,_0x3ba95a._0x3b9780)](_0x44fad7[_0x2fe1e(0xdf,0x112,_0x3ba95a._0x39d7f6,0x15f)],_0x56066b);const _0x5ccc6d={};return _0x5ccc6d[_0x57f2e7(_0x3ba95a._0x4de23a,0x347,0x39e,0x371)]=![],_0x5ccc6d[_0x57f2e7(0x315,_0x3ba95a._0x328714,_0x3ba95a._0x469ff9,0x31c)]=_0x2fe1e(0x177,_0x3ba95a._0x160999,0x127,0x171),_0x5ccc6d[_0x2fe1e(_0x3ba95a._0xcc396b,_0x3ba95a._0xaa63fd,_0x3ba95a._0xcb0830,_0x3ba95a._0x47127c)]=_0x2fe1e(_0x3ba95a._0x255ba2,0x14b,_0x3ba95a._0xcc396b,0x124)+_0x57f2e7(_0x3ba95a._0x15d19d,_0x3ba95a._0x1a0c85,0x3a8,0x36b)+_0x418385[_0x57f2e7(_0x3ba95a._0x350832,0x3ad,0x324,0x366)],_0x5ccc6d;}else{const _0x11eb11={};return _0x11eb11[_0x57f2e7(0x3a8,_0x3ba95a._0x787f09,0x367,_0x3ba95a._0x246fee)]=_0x486382['message'],_0x11eb11[_0x2fe1e(_0x3ba95a._0x27b588,_0x3ba95a._0x140591,0x130,0x141)]=_0x231201,_0x35b423[_0x2fe1e(_0x3ba95a._0x133e0c,0x144,0x127,0x107)](_0x44fad7['xnJNH'],_0x11eb11),null;}}}
1
+ (function(_0x5bcc56,_0x5df00b){const _0x3ff2c4={_0x1657fd:0x119,_0x40e458:0x219,_0x17738e:0x3d,_0x213509:0x67,_0x47f2e6:0x2,_0xfb63f9:0x16c,_0x459aa0:0x1f2,_0x5d9071:0x42,_0x574e7a:0x1da,_0x284825:0x1b2,_0x2d4585:0x207,_0x5d6f17:0x65,_0x3fdc8b:0x29,_0x2fdeae:0x11,_0x2c0e59:0x30,_0x5caae7:0x176,_0x2d87ab:0x1a8,_0xb6d926:0xa7,_0xe1793:0x61},_0x253d80={_0x3bb536:0xff};function _0x4fe00a(_0x47e86a,_0x2fab82,_0x4722f9,_0x4d255e){return _0x3447(_0x47e86a- -_0x253d80._0x3bb536,_0x2fab82);}const _0x598635=_0x5bcc56();function _0x2a69b2(_0x1f15de,_0x4f2eec,_0x495b77,_0x28e477){return _0x3447(_0x4f2eec- -0x323,_0x1f15de);}while(!![]){try{const _0x5294e4=-parseInt(_0x2a69b2(-0x154,-0x174,-_0x3ff2c4._0x1657fd,-0x167))/(-0x2ae*0xd+0x3b*-0x1b+0x2910)*(parseInt(_0x2a69b2(-_0x3ff2c4._0x40e458,-0x22d,-0x1c4,-0x298))/(0x1*-0x23e4+-0x1bc*0x5+0x2c92))+parseInt(_0x4fe00a(0x44,_0x3ff2c4._0x17738e,_0x3ff2c4._0x213509,-_0x3ff2c4._0x47f2e6))/(-0x10f3+0x69d*-0x2+0x1e30)*(-parseInt(_0x2a69b2(-_0x3ff2c4._0xfb63f9,-0x17d,-0x19c,-0x1df))/(-0x1014+0xb1+0xf67))+-parseInt(_0x2a69b2(-0x1bd,-_0x3ff2c4._0x459aa0,-0x1e8,-0x195))/(0x8*-0x202+-0x5*-0x127+-0x529*-0x2)*(parseInt(_0x4fe00a(0x13,0x4e,-0x55,0x3c))/(0x1*-0x1c18+0x449*-0x1+0x2067))+-parseInt(_0x4fe00a(0x9,-_0x3ff2c4._0x5d9071,0x21,-0x1a))/(-0x1588+0x1c18+-0xef*0x7)*(parseInt(_0x2a69b2(-_0x3ff2c4._0x574e7a,-_0x3ff2c4._0x284825,-_0x3ff2c4._0x2d4585,-0x154))/(-0x4c*-0x2+-0x1d8f+0x1cff))+parseInt(_0x4fe00a(_0x3ff2c4._0x5d6f17,_0x3ff2c4._0x3fdc8b,_0x3ff2c4._0x5d6f17,0xbf))/(-0x18*-0x57+-0x67c+-0x1a3)+-parseInt(_0x4fe00a(_0x3ff2c4._0x2fdeae,-_0x3ff2c4._0x2c0e59,0x56,0x3a))/(-0x9ed+0x37*0x8c+0x10f*-0x13)+parseInt(_0x2a69b2(-0x12d,-_0x3ff2c4._0x5caae7,-_0x3ff2c4._0x2d87ab,-0x1ba))/(0x67*0x2b+0xd8b+-0x5*0x629)*(parseInt(_0x4fe00a(0xc7,_0x3ff2c4._0xb6d926,_0x3ff2c4._0xe1793,0x95))/(-0x1737+-0x21cd+-0x530*-0xb));if(_0x5294e4===_0x5df00b)break;else _0x598635['push'](_0x598635['shift']());}catch(_0x58c755){_0x598635['push'](_0x598635['shift']());}}}(_0x673f,0x3ea8*-0x1d+-0x1*0x64db7+0x11b761));import{readFile,writeFile}from'fs/promises';import{existsSync}from'fs';import _0x1f178b from'os';import _0x51bb07 from'path';import{logger}from'./logger.js';const OAUTH_TOKEN_ENDPOINT=_0x33e63f(0x54b,0x534,0x558,0x584)+_0x2184c2(0x238,0x20f,0x211,0x267)+'ropic.com/'+_0x33e63f(0x4f7,0x55b,0x540,0x59a)+_0x2184c2(0x1a1,0x197,0x1b5,0x1ae),CLAUDE_CLIENT_ID=_0x2184c2(0x1ba,0x1d7,0x217,0x24f)+_0x2184c2(0x1a3,0x21e,0x1f1,0x1d0)+_0x2184c2(0x237,0x204,0x20c,0x1ee)+_0x2184c2(0x219,0x1a2,0x1b4,0x1fe),CREDENTIALS_PATH=_0x51bb07[_0x2184c2(0x2ce,0x215,0x26d,0x239)](_0x1f178b[_0x2184c2(0x21a,0x2d6,0x284,0x2d4)](),_0x33e63f(0x499,0x4b2,0x4dc,0x4dd),'.credentia'+'ls.json'),FETCH_TIMEOUT_MS=-0xcb39+0xa543+0x162a*0x7,MAX_RETRY_ATTEMPTS=0x235c+-0xa3*-0x8+-0x2871,RETRY_DELAYS_MS=[0x8*-0x3f3+0x107b*0x1+-0x9*-0x21d,0x68d+-0x919*0x1+-0x1*-0xe44,0x69*-0x1a+0x65f*0x6+0x202*-0x4],_0x3d004e={};_0x3d004e['lastSucces'+_0x2184c2(0x230,0x16d,0x1d8,0x226)]=null,_0x3d004e[_0x33e63f(0x53c,0x4e4,0x4f7,0x508)+_0x33e63f(0x571,0x555,0x53a,0x52a)]=null,_0x3d004e[_0x2184c2(0x227,0x29b,0x277,0x213)]=null,_0x3d004e[_0x2184c2(0x1bc,0x248,0x1ef,0x21a)+_0x33e63f(0x579,0x58a,0x539,0x51e)]=0x0,_0x3d004e[_0x33e63f(0x4b8,0x4a1,0x505,0x4c9)+'shes']=0x0,_0x3d004e[_0x33e63f(0x551,0x564,0x50d,0x50d)+_0x2184c2(0x22e,0x26f,0x25d,0x2b1)]=0x0;const refreshState=_0x3d004e;function _0x33e63f(_0x1dde2b,_0x36869e,_0x3dd99e,_0x11b9d6){const _0x1c3590={_0x301063:0x39f};return _0x3447(_0x3dd99e-_0x1c3590._0x301063,_0x1dde2b);}export function getRefreshState(){const _0x57c4d6={...refreshState};return _0x57c4d6;}async function fetchWithTimeout(_0x464652,_0x5b6972,_0x30ce9c=FETCH_TIMEOUT_MS){const _0x373c1b={_0x671fb4:0x4b6,_0x3871ba:0x4a8,_0x3ddc99:0x486,_0x15248:0x1,_0x14b077:0x492,_0x596029:0x4f2,_0x12f258:0x4bf,_0x582102:0x32,_0x441a48:0x2c,_0xe72d70:0x60,_0x230c67:0x14,_0x57dd87:0x2b,_0x547e4f:0x39},_0x388c4c={_0x1f18f3:0x253,_0x10e5ff:0xcc},_0x1f3e6d={_0x3502d:0x2bc,_0x553b8d:0x18e},_0x4f7c2c={'PMYYQ':function(_0x44fd7f,_0x2c78c8,_0xa8558c){return _0x44fd7f(_0x2c78c8,_0xa8558c);},'fDpEP':function(_0x59a072,_0x274b1d){return _0x59a072===_0x274b1d;},'RomnO':_0x4feab3(_0x373c1b._0x671fb4,0x4c7,_0x373c1b._0x3871ba,_0x373c1b._0x3ddc99)},_0x142a9d=new AbortController();function _0x4feab3(_0x3b1d5e,_0x4b16ba,_0x1a821e,_0x43a3d0){return _0x2184c2(_0x43a3d0,_0x4b16ba-0x1a2,_0x3b1d5e-_0x1f3e6d._0x3502d,_0x43a3d0-_0x1f3e6d._0x553b8d);}const _0x5df166=_0x4f7c2c[_0x35904a(_0x373c1b._0x15248,0x31,0x16,-0x17)](setTimeout,()=>_0x142a9d[_0x4feab3(0x46e,0x431,0x4b2,0x4d0)](),_0x30ce9c);function _0x35904a(_0x25d2b5,_0x34c476,_0x1f320d,_0x1801a3){return _0x2184c2(_0x25d2b5,_0x34c476-0x197,_0x1f320d- -_0x388c4c._0x1f18f3,_0x1801a3-_0x388c4c._0x10e5ff);}try{if(_0x4f7c2c['fDpEP'](_0x4f7c2c['RomnO'],_0x4f7c2c[_0x4feab3(_0x373c1b._0x14b077,0x478,0x4b1,0x4f0)])){const _0x152d88={..._0x5b6972};_0x152d88['signal']=_0x142a9d[_0x4feab3(0x50f,_0x373c1b._0x596029,0x548,_0x373c1b._0x12f258)];const _0x242c3b=await fetch(_0x464652,_0x152d88);return _0x242c3b;}else{const _0x7babeb={};return _0x7babeb[_0x35904a(_0x373c1b._0x582102,0x2f,-_0x373c1b._0x441a48,-0x26)]=_0x3ab63a,_0x4e8c52['debug'](_0x35904a(-0x88,-0x7a,-0x83,-_0x373c1b._0xe72d70)+_0x35904a(0x4a,0x1e,-0x9,-_0x373c1b._0x230c67)+_0x35904a(-0x4b,0x5c,0x12,0x6f)+_0x35904a(-_0x373c1b._0x57dd87,0x18,-_0x373c1b._0x547e4f,-_0x373c1b._0x15248),_0x7babeb),null;}}finally{clearTimeout(_0x5df166);}}function _0x3447(_0x17ae1a,_0x920250){_0x17ae1a=_0x17ae1a-(-0x48f+0x3*-0x80d+-0xed5*-0x2);const _0x2605ab=_0x673f();let _0x2c3a5e=_0x2605ab[_0x17ae1a];if(_0x3447['sWrZHb']===undefined){var _0x46987b=function(_0x18e073){const _0x304a3c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x599f7d='',_0x157c2c='';for(let _0x352c16=-0x196f+0x32b+-0x1*-0x1644,_0x1e07f3,_0x39479d,_0x3223a0=0x1426+-0x1*-0x7cd+0x31b*-0x9;_0x39479d=_0x18e073['charAt'](_0x3223a0++);~_0x39479d&&(_0x1e07f3=_0x352c16%(-0x103f+-0x45*0x29+-0x6d4*-0x4)?_0x1e07f3*(-0x2411*0x1+-0x4*0x1cf+0x2b8d*0x1)+_0x39479d:_0x39479d,_0x352c16++%(0x6a8+0x13c2+0x6d*-0x3e))?_0x599f7d+=String['fromCharCode'](-0x16f2+0x2*-0xd3a+0x3265&_0x1e07f3>>(-(0xe*-0x245+0x133+-0x1*-0x1e95)*_0x352c16&0x1caf*0x1+-0x2*-0x110b+-0x3ebf)):-0x192*0xd+0x20b*0xe+-0x830){_0x39479d=_0x304a3c['indexOf'](_0x39479d);}for(let _0x403eb1=0x12*0x1f5+0x237e+-0x235c*0x2,_0x1aef48=_0x599f7d['length'];_0x403eb1<_0x1aef48;_0x403eb1++){_0x157c2c+='%'+('00'+_0x599f7d['charCodeAt'](_0x403eb1)['toString'](-0x39*-0x49+0x13f7+-0x2428*0x1))['slice'](-(-0x9*-0x1b+0x1ec8+0x1*-0x1fb9));}return decodeURIComponent(_0x157c2c);};_0x3447['cIlgAp']=_0x46987b,_0x3447['yeEFhl']={},_0x3447['sWrZHb']=!![];}const _0x193621=_0x2605ab[0x1bc6+-0x1f2c+-0x366*-0x1],_0x39e486=_0x17ae1a+_0x193621,_0x14b760=_0x3447['yeEFhl'][_0x39e486];return!_0x14b760?(_0x2c3a5e=_0x3447['cIlgAp'](_0x2c3a5e),_0x3447['yeEFhl'][_0x39e486]=_0x2c3a5e):_0x2c3a5e=_0x14b760,_0x2c3a5e;}export function isTokenExpired(_0x4bda15,_0x3246ba=-0x1*-0x1f99+-0x9*0x1d5+-0xf17){const _0x43b5d5={_0xc4d786:0x4f2,_0xe25da0:0x51b,_0x5e5f82:0x4e8,_0x10e0f0:0x4f0,_0x26b81b:0x1c4,_0x2aa1fe:0x1fe,_0xe870d6:0x4eb,_0x397942:0x194,_0x3705d3:0x1e6},_0x5a13de={_0x2df768:0x44},_0x48241c={_0x10639d:0xcc,_0x3b04f4:0x2f0,_0x208149:0x1cf},_0x5db18e={};_0x5db18e['zziRX']=function(_0x11646c,_0x3b41c2){return _0x11646c*_0x3b41c2;};function _0x4e3c9a(_0x301b36,_0x55f050,_0x413fdc,_0x30df08){return _0x33e63f(_0x55f050,_0x55f050-_0x48241c._0x10639d,_0x30df08- -_0x48241c._0x3b04f4,_0x30df08-_0x48241c._0x208149);}_0x5db18e[_0x14868c(_0x43b5d5._0xc4d786,_0x43b5d5._0xe25da0,_0x43b5d5._0x5e5f82,_0x43b5d5._0x10e0f0)]=function(_0x17dfcb,_0x5c5387){return _0x17dfcb>=_0x5c5387;},_0x5db18e['iKNwx']=function(_0x27cb25,_0x52cf91){return _0x27cb25-_0x52cf91;};const _0x1b7680=_0x5db18e;function _0x14868c(_0x49dad2,_0x4efc0d,_0x4db03b,_0x1f5a5d){return _0x33e63f(_0x4efc0d,_0x4efc0d-0x16d,_0x49dad2- -_0x5a13de._0x2df768,_0x1f5a5d-0x145);}const _0x4abff1=Date[_0x4e3c9a(_0x43b5d5._0x26b81b,0x1d9,_0x43b5d5._0x2aa1fe,0x1a4)](),_0x159ecd=_0x1b7680[_0x14868c(_0x43b5d5._0xe870d6,0x544,0x548,0x4d5)](_0x1b7680['zziRX'](_0x3246ba,0x4f7*0x5+0x2015+-0x38ac),-0xe3+0x995*0x1+-0x4ca);return _0x1b7680['MaoPG'](_0x4abff1,_0x1b7680[_0x4e3c9a(0x203,_0x43b5d5._0x397942,0x1f1,_0x43b5d5._0x3705d3)](_0x4bda15,_0x159ecd));}function _0x2184c2(_0x112ca3,_0x292f38,_0x4f185e,_0x1f5846){return _0x3447(_0x4f185e-0xbb,_0x112ca3);}export async function readClaudeCredentials(){const _0x3bfa45={_0x4d91f:0x30b,_0x377d30:0x26c,_0x52b358:0x1f9,_0x439c66:0x227,_0x248ad4:0x2a7,_0x6696bc:0x2b5,_0x2a5fb1:0x2ba,_0x5e2e8e:0x2e0,_0xc7e56c:0x2cd,_0x49daeb:0x269,_0x312a35:0x30c,_0x535bb2:0x2dc,_0xa6c0c3:0x238,_0x5428e3:0x244,_0x3c5861:0x2eb,_0x465f5e:0x33a,_0x2e7d33:0x2f0,_0x384f51:0x29c,_0x44e76d:0x223,_0x17bc16:0x219,_0x1ffe9e:0x280,_0x55a712:0x21a,_0x3d0f75:0x224,_0x62ced9:0x275,_0x16be7b:0x26d,_0x117961:0x2ee,_0x3a83ad:0x2d7,_0x31e2a5:0x22b,_0x17a048:0x210,_0xa221df:0x1e5,_0xbeb448:0x305,_0x5eb28a:0x259,_0x43cf8c:0x267,_0x4d23a6:0x250,_0x41d960:0x244,_0x415cfa:0x233,_0x52069d:0x2f1,_0x33ece7:0x263,_0x4f4fe0:0x259,_0x5b94c5:0x208,_0x56630f:0x2ff,_0x460e43:0x31a,_0x55b77a:0x2d7,_0x1a4afa:0x24e,_0x4b0f9a:0x321,_0x55ebd4:0x32b,_0x4c51ef:0x319,_0x1ea1ea:0x2cc,_0x24f12c:0x335,_0x5bc07f:0x2aa,_0x197557:0x267,_0x5e4efc:0x282,_0x285fe5:0x262,_0x517b1a:0x221,_0x302a60:0x286,_0x1892ff:0x2d3,_0x2752b:0x226,_0x55fc8d:0x25c,_0x19f45c:0x254,_0x46a811:0x29e,_0x120786:0x29e,_0x3164a3:0x2a0,_0x5e1b36:0x2fa,_0x17bbb2:0x27e,_0x41b802:0x2c4,_0x1c9f34:0x270,_0x4d6c9c:0x244,_0x44edb8:0x1f7,_0x4eb11b:0x2b2,_0x339cd5:0x2bc,_0x309978:0x2e4,_0x4aa21d:0x313,_0x210ffb:0x2a2,_0x495f8f:0x22f,_0x4011f2:0x21c,_0x38e982:0x1be,_0x3b3e57:0x1c9,_0x93b0:0x2d7,_0x116509:0x2c9,_0x42a728:0x270,_0x434cef:0x2c2,_0x1f4b07:0x2b0,_0x312bf6:0x287,_0x2c9970:0x2d5,_0x141af5:0x275,_0x366afa:0x2c0,_0x40524e:0x21d,_0x3682f4:0x24d,_0x38c97d:0x2c8,_0x4682b0:0x305,_0x5f2b8d:0x2bc},_0x2e1fb5={_0x1f180c:0xa1,_0x3335a6:0x1e8},_0x2748ee={_0x425db4:0xe1};function _0xc06d7e(_0x2960da,_0x261918,_0x5df949,_0x3a8370){return _0x2184c2(_0x2960da,_0x261918-_0x2748ee._0x425db4,_0x261918-0x57,_0x3a8370-0x18a);}const _0x5b6c2a={'RRnyl':_0xc06d7e(_0x3bfa45._0x4d91f,0x2a7,0x269,_0x3bfa45._0x377d30),'ZVUVD':function(_0x53981b,_0x15567f){return _0x53981b===_0x15567f;},'UaeZx':_0x362a49(0x261,_0x3bfa45._0x52b358,0x252,_0x3bfa45._0x439c66)+'ED','SUCXV':_0x362a49(0x2c6,_0x3bfa45._0x248ad4,0x276,0x2b0),'VfTbJ':function(_0xa2743f,_0x274c05){return _0xa2743f===_0x274c05;},'kplRe':function(_0x5f343f,_0x46d8f0){return _0x5f343f||_0x46d8f0;},'FeISm':_0x362a49(_0x3bfa45._0x6696bc,_0x3bfa45._0x2a5fb1,0x2e6,0x290)+'iled','ANath':'OAuth\x20toke'+_0xc06d7e(_0x3bfa45._0x5e2e8e,_0x3bfa45._0xc7e56c,0x329,_0x3bfa45._0xc7e56c)+'request\x20fa'+_0xc06d7e(0x26d,0x2c8,0x2d6,0x292)+_0x362a49(0x2b3,_0x3bfa45._0x49daeb,_0x3bfa45._0x312a35,0x2a4)+'l\x20re-login'+'.','gZqKo':_0x362a49(0x27b,_0x3bfa45._0x535bb2,0x278,0x2a7),'fptib':function(_0x122d3d,_0x57d38b){return _0x122d3d(_0x57d38b);},'cNjic':_0xc06d7e(_0x3bfa45._0xa6c0c3,0x227,_0x3bfa45._0x49daeb,_0x3bfa45._0x5428e3)+_0x362a49(_0x3bfa45._0x3c5861,_0x3bfa45._0x465f5e,_0x3bfa45._0x2e7d33,_0x3bfa45._0x384f51)+_0x362a49(0x306,0x2f4,0x32e,0x300)+'und','cUqDv':function(_0x18ba74,_0x49f096,_0x2e97b5){return _0x18ba74(_0x49f096,_0x2e97b5);},'HNJAA':_0x362a49(0x274,0x2a4,_0x3bfa45._0x44e76d,_0x3bfa45._0x17bc16),'sqYtB':function(_0x5471b4,_0x2f014f){return _0x5471b4!==_0x2f014f;},'mqxIZ':_0x362a49(_0x3bfa45._0x1ffe9e,_0x3bfa45._0x55a712,_0x3bfa45._0x3d0f75,_0x3bfa45._0x62ced9),'gXzlW':_0xc06d7e(_0x3bfa45._0x16be7b,0x22e,0x247,0x1fd)+_0xc06d7e(_0x3bfa45._0x117961,0x2b6,_0x3bfa45._0x3a83ad,0x2ef)+_0xc06d7e(_0x3bfa45._0x31e2a5,_0x3bfa45._0x17a048,0x261,_0x3bfa45._0xa221df)+_0xc06d7e(0x2be,0x2a5,_0x3bfa45._0xbeb448,0x2bf)};function _0x362a49(_0x41e3e9,_0x179544,_0x17de0a,_0x51881d){return _0x2184c2(_0x17de0a,_0x179544-0x1e3,_0x41e3e9-_0x2e1fb5._0x1f180c,_0x51881d-_0x2e1fb5._0x3335a6);}try{if(_0x5b6c2a[_0xc06d7e(0x2ae,_0x3bfa45._0x5eb28a,0x234,_0x3bfa45._0x43cf8c)](_0xc06d7e(0x239,0x29d,0x2b1,0x292),_0x5b6c2a['gZqKo'])){const _0x4e8573=_0x3126c6[_0xc06d7e(_0x3bfa45._0x4d23a6,_0x3bfa45._0x41d960,0x20e,_0x3bfa45._0x415cfa)]===_0x5b6c2a[_0xc06d7e(0x28d,0x296,_0x3bfa45._0x52069d,0x253)],_0x8fd7af=_0x5b6c2a[_0x362a49(0x2a3,0x2bc,0x276,_0x3bfa45._0x33ece7)](_0x4c0fbe[_0xc06d7e(0x2b4,_0x3bfa45._0x3a83ad,0x2d3,0x2ac)],_0x5b6c2a['UaeZx'])||_0x5b6c2a[_0xc06d7e(0x228,_0x3bfa45._0x4f4fe0,_0x3bfa45._0x5b94c5,0x267)](_0x3d4c18[_0xc06d7e(_0x3bfa45._0x56630f,0x2d7,_0x3bfa45._0x460e43,_0x3bfa45._0x55b77a)],_0x5b6c2a[_0x362a49(0x296,0x26c,0x2d2,_0x3bfa45._0x1a4afa)])||_0x5b6c2a['VfTbJ'](_0x144203[_0x362a49(_0x3bfa45._0x4b0f9a,_0x3bfa45._0x55ebd4,_0x3bfa45._0x4c51ef,0x2cb)],_0x362a49(_0x3bfa45._0x1ea1ea,0x32f,_0x3bfa45._0x24f12c,_0x3bfa45._0x5bc07f))||_0x469bc6[_0x362a49(_0x3bfa45._0x197557,0x22f,_0x3bfa45._0x5e4efc,0x21e)]['includes'](_0xc06d7e(0x2ab,_0x3bfa45._0x285fe5,_0x3bfa45._0x517b1a,0x29d)+'ed');return{'success':![],'error':_0x4e8573?_0x362a49(_0x3bfa45._0x302a60,_0x3bfa45._0x1892ff,_0x3bfa45._0x2752b,_0x3bfa45._0x55fc8d)+'meout':_0x27910b['message'],'retryable':_0x5b6c2a[_0x362a49(0x259,0x2aa,_0x3bfa45._0x19f45c,0x26c)](_0x4e8573,_0x8fd7af)};}else{if(!_0x5b6c2a[_0x362a49(0x2d1,_0x3bfa45._0x46a811,0x281,0x2da)](existsSync,CREDENTIALS_PATH)){const _0x48ac86={};return _0x48ac86['path']=CREDENTIALS_PATH,logger[_0x362a49(_0x3bfa45._0x120786,_0x3bfa45._0x3164a3,_0x3bfa45._0x5e1b36,0x284)](_0x5b6c2a[_0x362a49(_0x3bfa45._0x17bbb2,0x286,_0x3bfa45._0x41b802,0x246)],_0x48ac86),null;}const _0x3ce4ee=await _0x5b6c2a[_0xc06d7e(0x239,0x21f,0x24f,_0x3bfa45._0x1c9f34)](readFile,CREDENTIALS_PATH,_0x5b6c2a['HNJAA']),_0xaee981=JSON[_0xc06d7e(_0x3bfa45._0x4d6c9c,0x25b,_0x3bfa45._0x44edb8,_0x3bfa45._0x4eb11b)](_0x3ce4ee);if(!_0xaee981['claudeAiOa'+_0x362a49(0x287,0x2a0,0x2a2,0x2e3)]){if(_0x5b6c2a[_0xc06d7e(0x264,0x289,0x256,0x21d)](_0x5b6c2a[_0x362a49(0x2ff,0x312,_0x3bfa45._0x339cd5,0x2f5)],_0x5b6c2a['mqxIZ'])){const _0x26bcb9={};return _0x26bcb9[_0x362a49(0x301,_0x3bfa45._0x309978,0x2bf,_0x3bfa45._0x4aa21d)]=![],_0x26bcb9[_0xc06d7e(0x1c9,0x220,0x1f5,0x268)]=_0x5b6c2a[_0x362a49(0x268,_0x3bfa45._0x210ffb,0x2a5,_0x3bfa45._0x495f8f)],_0x26bcb9[_0xc06d7e(_0x3bfa45._0x4011f2,0x21d,_0x3bfa45._0x38e982,_0x3bfa45._0x3b3e57)]=_0x5b6c2a[_0x362a49(0x295,_0x3bfa45._0x93b0,_0x3bfa45._0x17bbb2,0x25a)],_0x26bcb9;}else return logger[_0xc06d7e(0x1ff,_0x3bfa45._0x19f45c,0x20e,0x20f)](_0xc06d7e(0x2d4,0x2c3,_0x3bfa45._0x116509,_0x3bfa45._0x5e1b36)+_0xc06d7e(_0x3bfa45._0x42a728,_0x3bfa45._0x434cef,0x2b4,0x27e)+'\x20found\x20in\x20'+'file'),null;}return _0xaee981[_0xc06d7e(0x285,_0x3bfa45._0x1f4b07,_0x3bfa45._0x309978,0x29a)+_0x362a49(_0x3bfa45._0x312bf6,_0x3bfa45._0x2c9970,_0x3bfa45._0x141af5,0x227)];}}catch(_0x220fd1){const _0x202729={};return _0x202729[_0x362a49(0x254,0x289,_0x3bfa45._0x366afa,0x222)]=_0x220fd1[_0xc06d7e(0x22d,_0x3bfa45._0x40524e,0x265,_0x3bfa45._0x3682f4)],_0x202729[_0x362a49(_0x3bfa45._0x38c97d,0x265,_0x3bfa45._0x4682b0,_0x3bfa45._0x5f2b8d)]=CREDENTIALS_PATH,logger['error'](_0x5b6c2a['gXzlW'],_0x202729),null;}}export async function writeClaudeCredentials(_0x34f72a){const _0x2f8a34={_0xcfa836:0x10f,_0x202443:0x5a,_0x15f0c0:0xc9,_0x31225a:0x82,_0x49a4ba:0x554,_0x4bb9d2:0x56c,_0xa6295f:0x555,_0xae0759:0x520,_0x3ff6dc:0x531,_0x4e0742:0x4bd,_0x159e48:0x484,_0x1884b2:0x4b9,_0x452f58:0x514,_0x48b573:0x49f,_0x507795:0x51a,_0x11d64b:0x103,_0x2b95f1:0x16b,_0x55ca5a:0x52c,_0x4d4ac9:0x4a2,_0x3a2f5c:0x132,_0xb6bee9:0x46,_0x54f311:0x87,_0x30019b:0x114,_0x56676f:0x15c,_0x15eb72:0x93,_0xd0cf08:0x49f,_0x3c8551:0x481,_0x45c893:0x53c,_0x1a8658:0x4ee,_0x4184f4:0x507,_0x4ce8c1:0x68,_0x112d4e:0xa0,_0x1b9b6e:0x496,_0x5d8100:0x52c,_0x396ba7:0xeb,_0x2c7cdb:0x108,_0x46d5ca:0xef,_0x534c14:0x4d2,_0x12ef31:0x484,_0x507b16:0x113,_0x5790b3:0x143,_0x51d566:0x524},_0x262544={_0x9d496c:0x1e1},_0x297f9e={_0x30e1ae:0x2bb};function _0x55d117(_0x2d854d,_0x41123e,_0x1fb291,_0x8f3f05){return _0x2184c2(_0x2d854d,_0x41123e-0x189,_0x1fb291- -_0x297f9e._0x30e1ae,_0x8f3f05-0x178);}function _0x6f7890(_0x523827,_0x2d48b6,_0x477141,_0x69fa2a){return _0x2184c2(_0x69fa2a,_0x2d48b6-0xf,_0x2d48b6-0x2fb,_0x69fa2a-_0x262544._0x9d496c);}const _0x7a6e38={'qXwkZ':function(_0x1688e,_0x59c735,_0x156b09,_0x421845){return _0x1688e(_0x59c735,_0x156b09,_0x421845);},'ljNks':_0x55d117(-_0x2f8a34._0xcfa836,-0x153,-0xe8,-0xf9),'ZKqwN':function(_0x2fece2,_0x72a23f){return _0x2fece2!==_0x72a23f;},'LJuFl':_0x55d117(-_0x2f8a34._0x202443,-_0x2f8a34._0x15f0c0,-0x82,-_0x2f8a34._0x31225a)};try{const _0x70fe6d={};_0x70fe6d[_0x6f7890(0x50c,_0x2f8a34._0x49a4ba,_0x2f8a34._0x4bb9d2,_0x2f8a34._0xa6295f)+'uth']=_0x34f72a;const _0x5e2c56=_0x70fe6d;return await _0x7a6e38[_0x6f7890(_0x2f8a34._0xae0759,0x518,_0x2f8a34._0x3ff6dc,_0x2f8a34._0x4e0742)](writeFile,CREDENTIALS_PATH,JSON[_0x6f7890(_0x2f8a34._0x159e48,_0x2f8a34._0x1884b2,0x4f5,_0x2f8a34._0x452f58)](_0x5e2c56),{'encoding':_0x7a6e38[_0x55d117(-0x9b,-0x9e,-0xa6,-0xfe)],'mode':0x180}),logger['debug'](_0x6f7890(_0x2f8a34._0x48b573,0x4cb,_0x2f8a34._0x507795,0x463)+_0x55d117(-_0x2f8a34._0x11d64b,-_0x2f8a34._0x2b95f1,-0x101,-0xa8)+_0x6f7890(_0x2f8a34._0x55ca5a,0x4c5,_0x2f8a34._0x4d4ac9,0x52e)+'cessfully'),!![];}catch(_0x590420){if(_0x7a6e38[_0x55d117(-_0x2f8a34._0x3a2f5c,-0x7e,-0xd7,-0xc2)](_0x7a6e38[_0x55d117(-_0x2f8a34._0xb6bee9,-0xf2,-0xa3,-_0x2f8a34._0x54f311)],_0x55d117(-_0x2f8a34._0x30019b,-0x8f,-0xae,-0x5a))){const _0x209cd2={};return _0x209cd2[_0x55d117(-0x164,-0x166,-0x108,-_0x2f8a34._0x56676f)]=_0x590420['message'],_0x209cd2['path']=CREDENTIALS_PATH,logger['error'](_0x55d117(-0x91,-0x99,-0xe4,-_0x2f8a34._0x15eb72)+_0x6f7890(_0x2f8a34._0xd0cf08,0x4c0,_0x2f8a34._0x3c8551,0x4ed)+_0x6f7890(_0x2f8a34._0x45c893,_0x2f8a34._0x1a8658,_0x2f8a34._0x4184f4,_0x2f8a34._0x507795)+_0x55d117(-0xb4,-_0x2f8a34._0x4ce8c1,-_0x2f8a34._0x112d4e,-0x60),_0x209cd2),![];}else{const _0x4834e1={};return _0x4834e1['error']=_0x4d77a2[_0x6f7890(0x503,0x4c1,_0x2f8a34._0x1b9b6e,_0x2f8a34._0x5d8100)],_0x4834e1[_0x6f7890(_0x2f8a34._0x4e0742,0x522,0x50c,0x54d)]=_0x13ae84,_0x5dcee5[_0x55d117(-_0x2f8a34._0x396ba7,-0xdd,-_0x2f8a34._0x2c7cdb,-_0x2f8a34._0x46d5ca)](_0x6f7890(0x4b4,_0x2f8a34._0x534c14,_0x2f8a34._0x12ef31,0x50e)+_0x55d117(-_0x2f8a34._0x507b16,-0xfa,-0xf6,-_0x2f8a34._0x5790b3)+'de\x20credent'+_0x6f7890(0x4c2,0x516,0x528,_0x2f8a34._0x51d566),_0x4834e1),![];}}}async function attemptTokenRefresh(_0xb59a4f){const _0x2cacbf={_0xd2a632:0x10a,_0x2d4ea5:0x62,_0x3adf4a:0x60,_0x41bd49:0x60,_0x572ab1:0x77,_0x503147:0x7e,_0x1a698c:0x8d,_0x23c5ff:0x3e,_0x381ebc:0x6c,_0x3ac87e:0x30,_0x597861:0x29,_0x4446ca:0x8,_0x52e989:0xb,_0x2e5188:0x49,_0x30b7b1:0x12,_0x45b202:0x58,_0x20f3d6:0xd0,_0x39761d:0x5c,_0x114952:0x98,_0x18ca11:0x43,_0x50a2d6:0x8f,_0x505c7a:0xa9,_0x512b7f:0x6b,_0x1b8b16:0x79,_0x427aa0:0x7a,_0x58f571:0x6d,_0x1cb020:0x51,_0x291e8e:0x1e,_0x12c608:0x7c,_0x2ffaeb:0x31,_0x124063:0x9c,_0xae2e06:0x96,_0x45eb13:0x12,_0x436538:0x23,_0x3fcc05:0x25,_0x41aaec:0xa1,_0x58e3e7:0x5e,_0x43438e:0xa8,_0x17ea28:0x56,_0x1afaa6:0x48,_0x2167af:0x3c,_0x4e8ea5:0xa,_0x2fb29b:0x37,_0x2d2c50:0x68,_0x89fff7:0xf6,_0x4ac02e:0x96,_0x444982:0xea,_0x4e42b1:0xc8,_0x13c245:0x92,_0x22363b:0x38,_0x506adf:0x6a,_0x9e9395:0x7,_0x14c2ac:0x93,_0xfb5f6:0x1d,_0x2e9524:0x107,_0x4daa85:0x11d,_0x1f77b9:0xb9,_0x7bb671:0x88,_0xbbd7b1:0x29,_0x53f86f:0x58,_0x388719:0x22,_0x41be9a:0x58,_0x1dd0fa:0x39,_0x1959d9:0x8c,_0x3261bd:0x4f,_0x1452a4:0x5f,_0x1c45f4:0x77,_0x5e8e60:0xaf,_0xe0be15:0xab,_0xf446be:0xae,_0x4bb8e8:0x2c,_0x56c6b4:0x68,_0x4522a1:0x44,_0x32298c:0xf7,_0x489693:0xb2,_0x1f010b:0xd,_0x12d03a:0x37,_0x57282b:0x5,_0x53b859:0xdd,_0x488f71:0x94,_0x2bc14e:0x9b},_0x38f88f={_0x24d8c0:0x228,_0x13fc4a:0x13d};function _0x73887a(_0x3d4514,_0x5366c6,_0x5410d2,_0x43082c){return _0x2184c2(_0x5366c6,_0x5366c6-0x37,_0x5410d2- -_0x38f88f._0x24d8c0,_0x43082c-_0x38f88f._0x13fc4a);}const _0x2a38a0={'Osbmx':function(_0x44306e,_0x2c7f47,_0xb4a594){return _0x44306e(_0x2c7f47,_0xb4a594);},'dhADC':_0xa33f77(-0xc2,-0xa0,-_0x2cacbf._0xd2a632,-0xa2),'fWQZO':_0x73887a(_0x2cacbf._0x2d4ea5,-_0x2cacbf._0x3adf4a,-0x8,-0x52)+_0x73887a(-_0x2cacbf._0x41bd49,-0x25,0xb,_0x2cacbf._0x572ab1),'yWmwK':_0x73887a(-0x44,-0x67,-0x2f,-_0x2cacbf._0x503147)+_0x73887a(-0x4,-0x18,0x51,_0x2cacbf._0x1a698c),'uWUUX':function(_0x2d9cff,_0x31501c){return _0x2d9cff>=_0x31501c;},'BDazR':function(_0x2a8459,_0x592f68){return _0x2a8459===_0x592f68;},'DZZZz':function(_0x54da43,_0x14934e){return _0x54da43*_0x14934e;},'vGQDD':'AbortError','GHXOe':'ECONNREFUS'+'ED','KIuaj':_0x73887a(_0x2cacbf._0x23c5ff,-_0x2cacbf._0x381ebc,-0x3,_0x2cacbf._0x3ac87e),'MTkfT':function(_0x49c17d,_0xc9cef5){return _0x49c17d===_0xc9cef5;},'Cbome':_0xa33f77(-_0x2cacbf._0x597861,_0x2cacbf._0x4446ca,-_0x2cacbf._0x52e989,-_0x2cacbf._0x2e5188),'ClfMa':_0x73887a(-0x1e,-_0x2cacbf._0x30b7b1,-0x1d,-_0x2cacbf._0x45b202)+'ed','SPxtc':function(_0x1f10be,_0x1382f0){return _0x1f10be||_0x1382f0;}};function _0xa33f77(_0x57c467,_0x2b9600,_0x4e159e,_0x311aa7){return _0x2184c2(_0x2b9600,_0x2b9600-0x16c,_0x311aa7- -0x274,_0x311aa7-0xe5);}try{const _0x27da5b=await _0x2a38a0[_0xa33f77(-0x2e,-_0x2cacbf._0x20f3d6,-0xc,-0x6d)](fetchWithTimeout,OAUTH_TOKEN_ENDPOINT,{'method':_0x2a38a0['dhADC'],'headers':{'Content-Type':_0x2a38a0[_0xa33f77(-0x34,-_0x2cacbf._0x39761d,-_0x2cacbf._0x114952,-_0x2cacbf._0x18ca11)]},'body':JSON[_0xa33f77(-_0x2cacbf._0x50a2d6,-_0x2cacbf._0x505c7a,-0xe7,-0xb6)]({'grant_type':_0x2a38a0['yWmwK'],'refresh_token':_0xb59a4f,'client_id':CLAUDE_CLIENT_ID})});if(!_0x27da5b['ok']){const _0x19ea5a=await _0x27da5b[_0x73887a(-0x34,-_0x2cacbf._0x512b7f,-0x64,-0x7a)]();return{'success':![],'error':'HTTP\x20'+_0x27da5b[_0x73887a(_0x2cacbf._0x1b8b16,_0x2cacbf._0x427aa0,0x30,-0x1b)]+':\x20'+_0x27da5b[_0x73887a(-_0x2cacbf._0x58f571,-_0x2cacbf._0x1cb020,-_0x2cacbf._0x291e8e,-_0x2cacbf._0x12c608)],'details':_0x19ea5a,'retryable':_0x2a38a0[_0xa33f77(-0x85,-0x78,_0x2cacbf._0x2ffaeb,-0x34)](_0x27da5b[_0x73887a(0x9,0x2e,0x30,0x19)],-0x955*0x2+-0x125e+0x3e6*0xa)||_0x2a38a0[_0x73887a(-_0x2cacbf._0x124063,-0x8a,-_0x2cacbf._0x58f571,-0xd6)](_0x27da5b['status'],-0x202d*-0x1+0x381+-0x2201*0x1)};}const _0x32249e=await _0x27da5b[_0xa33f77(-0x39,-_0x2cacbf._0xae2e06,-0x9b,-0x6e)]();return{'success':!![],'credentials':{'accessToken':_0x32249e[_0x73887a(-0x36,-0xc8,-0x5c,-0x93)+'en'],'refreshToken':_0x32249e[_0xa33f77(-_0x2cacbf._0x45eb13,-0x4b,-0xbf,-0x7b)+_0xa33f77(-_0x2cacbf._0x436538,0x58,-0x63,0x5)]||_0xb59a4f,'expiresAt':Date[_0x73887a(-0x48,-0x54,-0x78,-_0x2cacbf._0x3fcc05)]()+_0x2a38a0[_0xa33f77(-0x9c,-_0x2cacbf._0x41aaec,-0x51,-_0x2cacbf._0x58e3e7)](_0x32249e[_0xa33f77(-0x108,-0x88,-0x10f,-0xb8)],0x20a2*0x1+0x1dd+-0x1e97),'scopes':_0x32249e[_0xa33f77(-_0x2cacbf._0x291e8e,-_0x2cacbf._0x43438e,-0x32,-_0x2cacbf._0x17ea28)]?_0x32249e[_0x73887a(_0x2cacbf._0x1afaa6,-_0x2cacbf._0x2167af,-_0x2cacbf._0x4e8ea5,-_0x2cacbf._0x2fb29b)]['split']('\x20'):['user:infer'+_0xa33f77(-_0x2cacbf._0x2d2c50,-_0x2cacbf._0x89fff7,-_0x2cacbf._0x17ea28,-_0x2cacbf._0x4ac02e),_0xa33f77(-_0x2cacbf._0x114952,-_0x2cacbf._0x444982,-_0x2cacbf._0x4e42b1,-_0x2cacbf._0x13c245)+'le'],'subscriptionType':_0x32249e[_0x73887a(-0x1a,-0x17,0x14,-_0x2cacbf._0x22363b)+_0x73887a(-_0x2cacbf._0x39761d,_0x2cacbf._0x506adf,_0x2cacbf._0x9e9395,-0x2f)]||_0x73887a(_0x2cacbf._0x14c2ac,-0x1c,_0x2cacbf._0x23c5ff,-_0x2cacbf._0xfb5f6)}};}catch(_0x1d702e){const _0x54cc14=_0x2a38a0[_0xa33f77(-_0x2cacbf._0x2e9524,-0xe6,-_0x2cacbf._0x4daa85,-_0x2cacbf._0x1f77b9)](_0x1d702e['name'],_0x2a38a0[_0x73887a(-_0x2cacbf._0x7bb671,-_0x2cacbf._0x381ebc,-_0x2cacbf._0xbbd7b1,-0x92)]),_0x8e85cf=_0x1d702e[_0x73887a(0x88,0x99,_0x2cacbf._0x53f86f,0x7)]===_0x2a38a0['GHXOe']||_0x1d702e[_0x73887a(0x7c,_0x2cacbf._0x388719,_0x2cacbf._0x41be9a,_0x2cacbf._0x1dd0fa)]===_0x2a38a0[_0x73887a(_0x2cacbf._0x1959d9,-0x5,_0x2cacbf._0x3fcc05,_0x2cacbf._0x3261bd)]||_0x2a38a0[_0x73887a(-0x73,-0x9b,-0x54,-0x75)](_0x1d702e[_0xa33f77(-0x60,0x2c,-_0x2cacbf._0x1452a4,0xc)],_0x2a38a0[_0xa33f77(-_0x2cacbf._0x1c45f4,-0x45,-0x95,-0x31)])||_0x1d702e[_0xa33f77(-_0x2cacbf._0x5e8e60,-_0x2cacbf._0xe0be15,-0xc2,-_0x2cacbf._0xf446be)][_0x73887a(_0x2cacbf._0x4bb8e8,_0x2cacbf._0x56c6b4,0x2,-_0x2cacbf._0x4522a1)](_0x2a38a0[_0xa33f77(-_0x2cacbf._0x41aaec,-_0x2cacbf._0x32298c,-0x117,-_0x2cacbf._0x489693)]);return{'success':![],'error':_0x54cc14?_0x73887a(-_0x2cacbf._0x1f010b,-_0x2cacbf._0x12d03a,-0x43,-0x48)+'meout':_0x1d702e[_0x73887a(-0x3c,-0x5,-0x62,-_0x2cacbf._0x57282b)],'retryable':_0x2a38a0[_0xa33f77(-0xb2,-_0x2cacbf._0x53b859,-_0x2cacbf._0x488f71,-_0x2cacbf._0x2bc14e)](_0x54cc14,_0x8e85cf)};}}export async function refreshOAuthToken(_0x3d59b4){const _0x2d2f6d={_0x53a025:0x13b,_0x13d17f:0x199,_0x2e09e3:0x2,_0xf384d:0x1a0,_0xca4d6c:0x1b0,_0x32cbc9:0x16e,_0x4f7d0e:0x133,_0x5f45f0:0x153,_0x326748:0x1b3,_0x55ff9b:0x185,_0x501328:0x65,_0x1a677d:0x10,_0x32ebd4:0x190,_0x17c5cb:0x14f,_0x49526c:0x128,_0x396a22:0x5d,_0x533860:0x1d,_0x30f885:0x37,_0x4f94e6:0x97,_0x22b768:0x151,_0x28fde7:0x163,_0x502a9f:0x10a,_0x2089e7:0xec,_0x25d790:0x118,_0x4d3268:0x125,_0x53c02f:0xf7,_0x3d8878:0xc9,_0x4046de:0xad,_0x11b863:0x1f,_0x2da1c6:0x3c,_0x334fed:0x54,_0x137e55:0xc6,_0x310482:0x9e,_0x5ced2e:0x176,_0xd721a2:0x164,_0x4d2709:0x136,_0x1ce96d:0xfd,_0x206d48:0xda,_0x578c71:0x144,_0x4c31b7:0x194,_0x5ad265:0x192,_0x90bf70:0x73,_0x52934d:0x15,_0x21a541:0x54,_0x2a4ff9:0x130,_0x1bb7bd:0x3e,_0x22892e:0x1ef,_0x5a1546:0x209,_0x45e920:0x203,_0x47014e:0x1e8,_0x367b43:0x1a7,_0xace12:0x155,_0x1c1ab9:0x117,_0x2139d1:0x180,_0x5c78dd:0x13c,_0x30e1f1:0x3d,_0x1b8f52:0x42,_0x4c1309:0x41,_0x585087:0x5a,_0x6bc530:0xa,_0x3d6a73:0xd,_0x700091:0xc4,_0x36401e:0xcb,_0x1cbbc2:0x40,_0x4ef241:0x42,_0x339d06:0x43,_0x19f6ec:0x99,_0x1f7067:0xf0,_0x40366b:0x140,_0x12ea48:0x1cb,_0x593001:0x1c9,_0x97d9b0:0x17b,_0x316579:0x10f,_0x38b958:0x201,_0x5550f2:0x1a5,_0x2c2c85:0x1ec,_0x6b267b:0x220,_0x838a3f:0x1e7,_0x1a95d1:0x1c8,_0x5b5ece:0xa,_0x5f78f8:0x26,_0x5e1082:0x1a7,_0x7f4020:0x152,_0x139a98:0x1b1,_0x1498e6:0x15a,_0x4bfdf5:0x160,_0x59f3f5:0x17d,_0x1f997d:0x15c,_0x2c112b:0x126,_0x11abcf:0x13a,_0x270f64:0x156,_0x14c833:0x1ff,_0x21aebf:0x1a0,_0x8be5a3:0x1e9,_0x41bd5b:0x14a,_0x1fd9a4:0x7,_0x2e3e7:0x29,_0x2b7b24:0x57,_0x35209b:0x13,_0xf63f05:0x88,_0x37b475:0x4f,_0x40c137:0xc8,_0x34d715:0x119,_0xf61937:0xbb,_0x4b4dad:0xce,_0x1bb094:0x50,_0x3876cc:0x75,_0xe695ad:0x59,_0x53d0c3:0xf,_0x514495:0x39,_0x56d98c:0x1a1,_0x1e96dd:0x49,_0x10e3a2:0x40,_0x4a8e93:0x30,_0x5a5f7a:0x7d,_0xfa8e2:0x83,_0x56dc3f:0xec,_0x20bccf:0xff,_0x5307c2:0x153,_0x2692d7:0x1a8,_0x89054b:0x142,_0x2f728f:0x64,_0x9e753c:0x8f},_0x444316={_0x412b01:0x7e},_0x2102e5={_0x464dd0:0xae,_0x5b1c49:0x127},_0x4bdbea={'sShyd':'Token\x20refr'+_0x5de472(-0x193,-_0x2d2f6d._0x53a025,-0x14e,-_0x2d2f6d._0x13d17f)+'failed','SYGZR':'error','NFNBJ':function(_0x22bb6d,_0x2e8ff9){return _0x22bb6d<_0x2e8ff9;},'lShHC':_0xd3361(-0x6e,0x3f,-0x1c,-_0x2d2f6d._0x2e09e3),'WGmnL':_0x5de472(-_0x2d2f6d._0xf384d,-_0x2d2f6d._0xca4d6c,-_0x2d2f6d._0x32cbc9,-_0x2d2f6d._0x4f7d0e),'mHvaN':function(_0x3c0333,_0x5ad32e){return _0x3c0333-_0x5ad32e;},'HokqY':'Retrying\x20O'+'Auth\x20refre'+'sh','LPaOH':function(_0x25838c,_0x37d548){return _0x25838c+_0x37d548;},'PBcmf':function(_0x5d24e5,_0x18b8a2){return _0x5d24e5(_0x18b8a2);},'ATxCE':function(_0x4eb717,_0x3e82e1){return _0x4eb717>_0x3e82e1;},'dunTu':'OAuth\x20refr'+_0xd3361(-0x93,0x3,-0x4b,-0x61)+'ded\x20after\x20'+_0x5de472(-0x16f,-_0x2d2f6d._0x5f45f0,-0x18d,-_0x2d2f6d._0x326748),'qKnCY':'OAuth\x20refr'+_0x5de472(-_0x2d2f6d._0x55ff9b,-0x160,-0x12c,-0x110)+_0xd3361(-0x71,-_0x2d2f6d._0x501328,-_0x2d2f6d._0x1a677d,-0x6a),'bLkpr':function(_0x5d51e,_0x318390){return _0x5d51e+_0x318390;}};let _0x430cd0=null;for(let _0x5b4401=0x132e+0x4*-0x550+-0x6a*-0x5;_0x4bdbea[_0x5de472(-0x1d6,-0x152,-_0x2d2f6d._0x32ebd4,-0x1d2)](_0x5b4401,MAX_RETRY_ATTEMPTS);_0x5b4401++){if(_0x5b4401>0x376+-0x1bea+0x1874){if(_0x4bdbea[_0x5de472(-0x1b2,-0x125,-_0x2d2f6d._0x17c5cb,-_0x2d2f6d._0x49526c)]===_0x4bdbea['WGmnL']){const _0x594fb3={};_0x594fb3['error']=_0x2c3a5e['message'],_0x594fb3[_0xd3361(-_0x2d2f6d._0x396a22,-_0x2d2f6d._0x533860,-_0x2d2f6d._0x30f885,-_0x2d2f6d._0x4f94e6)]=_0x46987b[_0x5de472(-_0x2d2f6d._0x22b768,-0x15b,-_0x2d2f6d._0x28fde7,-_0x2d2f6d._0x502a9f)],_0x2605ab['error'](_0x4bdbea[_0x5de472(-0xfe,-_0x2d2f6d._0x2089e7,-_0x2d2f6d._0x25d790,-0xc8)],_0x594fb3);const _0x8be56f={};return _0x8be56f[_0x5de472(-_0x2d2f6d._0x4d3268,-_0x2d2f6d._0x53c02f,-0x130,-0xc7)]=![],_0x8be56f['reason']=_0x4bdbea[_0xd3361(-0xcb,-_0x2d2f6d._0x3d8878,-0x7a,-_0x2d2f6d._0x4046de)],_0x8be56f['message']=_0xd3361(-_0x2d2f6d._0x11b863,-0x3b,-_0x2d2f6d._0x2da1c6,-0x98)+_0xd3361(-0x67,-_0x2d2f6d._0x334fed,-_0x2d2f6d._0x533860,-_0x2d2f6d._0x1a677d)+_0x193621[_0xd3361(-_0x2d2f6d._0x137e55,-0x41,-_0x2d2f6d._0x310482,-0x8a)],_0x8be56f;}else{const _0x476d39=RETRY_DELAYS_MS[_0x4bdbea[_0x5de472(-_0x2d2f6d._0x5ced2e,-_0x2d2f6d._0xd721a2,-_0x2d2f6d._0x4d2709,-0xd8)](_0x5b4401,0x1*-0x1dfe+-0x2*0x120e+0x421b*0x1)]||RETRY_DELAYS_MS[RETRY_DELAYS_MS[_0x5de472(-_0x2d2f6d._0x1ce96d,-_0x2d2f6d._0x206d48,-_0x2d2f6d._0x578c71,-_0x2d2f6d._0x4c31b7)]-(-0x13f0+0x482*0x1+-0x1b7*-0x9)];logger[_0x5de472(-_0x2d2f6d._0x5ad265,-0x1ed,-0x193,-0x147)](_0x4bdbea['HokqY'],{'attempt':_0x4bdbea[_0xd3361(-0x8,-_0x2d2f6d._0x90bf70,-_0x2d2f6d._0x52934d,-_0x2d2f6d._0x21a541)](_0x5b4401,-0x1250+-0x1f31*-0x1+-0xce0),'delayMs':_0x476d39}),await new Promise(_0x3e297c=>setTimeout(_0x3e297c,_0x476d39));}}const _0x475955=await _0x4bdbea['PBcmf'](attemptTokenRefresh,_0x3d59b4);if(_0x475955[_0x5de472(-0x129,-_0x2d2f6d._0x22b768,-_0x2d2f6d._0x2a4ff9,-0x196)]){const _0x3c4089=('0|3|4|2|1|'+'5')['split']('|');let _0x6c3f97=0x1480+-0x3*-0xc11+0x1*-0x38b3;while(!![]){switch(_0x3c4089[_0x6c3f97++]){case'0':refreshState[_0xd3361(-_0x2d2f6d._0x1bb7bd,0x12,-0x30,-0x9)+'sAt']=Date[_0x5de472(-_0x2d2f6d._0x22892e,-_0x2d2f6d._0x5a1546,-0x1e0,-_0x2d2f6d._0x45e920)]();continue;case'1':if(_0x4bdbea[_0x5de472(-_0x2d2f6d._0x47014e,-0x207,-_0x2d2f6d._0x367b43,-0x1a6)](_0x5b4401,-0x1*-0x1159+0x5b1+0x3*-0x7ae)){const _0x3c2403={};_0x3c2403[_0x5de472(-0x202,-0x1e5,-0x1b4,-_0x2d2f6d._0xace12)]=_0x5b4401+(-0x2047*0x1+0x477*0x1+0x1*0x1bd1),logger[_0x5de472(-0x1dd,-_0x2d2f6d._0x1c1ab9,-_0x2d2f6d._0x2139d1,-_0x2d2f6d._0x5c78dd)](_0x4bdbea[_0xd3361(-_0x2d2f6d._0x30e1f1,-_0x2d2f6d._0x1b8f52,-_0x2d2f6d._0x4c1309,-_0x2d2f6d._0x585087)],_0x3c2403);}continue;case'2':refreshState[_0xd3361(_0x2d2f6d._0x6bc530,0x4b,0x13,-_0x2d2f6d._0x3d6a73)]=null;continue;case'3':refreshState[_0xd3361(-_0x2d2f6d._0x700091,-_0x2d2f6d._0x36401e,-0x75,-0x11)+'eFailures']=-0x3e6*-0x1+-0x1*0x557+0x9*0x29;continue;case'4':refreshState[_0xd3361(-_0x2d2f6d._0x1cbbc2,-_0x2d2f6d._0x4ef241,-_0x2d2f6d._0x339d06,-_0x2d2f6d._0x19f6ec)+_0x5de472(-0x109,-_0x2d2f6d._0x1f7067,-0x156,-_0x2d2f6d._0x40366b)]++;continue;case'5':return _0x475955[_0x5de472(-_0x2d2f6d._0x12ea48,-0x1b0,-0x1c2,-_0x2d2f6d._0x593001)+'s'];}break;}}_0x430cd0=_0x475955[_0x5de472(-0x1eb,-0x18c,-0x1dd,-_0x2d2f6d._0x97d9b0)],logger[_0x5de472(-0x17a,-_0x2d2f6d._0x316579,-0x155,-_0x2d2f6d._0x1f7067)](_0x4bdbea[_0x5de472(-0x165,-_0x2d2f6d._0x38b958,-_0x2d2f6d._0x5550f2,-_0x2d2f6d._0x2c2c85)],{'attempt':_0x4bdbea['bLkpr'](_0x5b4401,-0x1a05+0x14*0x71+-0x899*-0x2),'maxAttempts':MAX_RETRY_ATTEMPTS,'error':_0x475955[_0x5de472(-_0x2d2f6d._0x6b267b,-_0x2d2f6d._0x838a3f,-0x1dd,-_0x2d2f6d._0x1a95d1)],'retryable':_0x475955[_0xd3361(-_0x2d2f6d._0x5b5ece,0x2,-_0x2d2f6d._0x5f78f8,-0x7b)]});if(!_0x475955[_0x5de472(-0x115,-_0x2d2f6d._0x5e1082,-_0x2d2f6d._0x7f4020,-_0x2d2f6d._0x139a98)])break;}refreshState[_0x5de472(-_0x2d2f6d._0x1498e6,-_0x2d2f6d._0x4bfdf5,-_0x2d2f6d._0x59f3f5,-0x1b5)+_0x5de472(-_0x2d2f6d._0x1f997d,-_0x2d2f6d._0x2c112b,-_0x2d2f6d._0x11abcf,-_0x2d2f6d._0x270f64)]=Date[_0x5de472(-0x19d,-_0x2d2f6d._0x14c833,-0x1e0,-0x1fb)](),refreshState[_0x5de472(-0x197,-_0x2d2f6d._0x21aebf,-0x1a1,-_0x2d2f6d._0x8be5a3)+_0x5de472(-0x103,-0x17b,-0x13b,-0x147)]++;function _0x5de472(_0x528be6,_0x2b89f,_0x370104,_0x5a12b3){return _0x33e63f(_0x5a12b3,_0x2b89f-_0x2102e5._0x464dd0,_0x370104- -0x674,_0x5a12b3-_0x2102e5._0x5b1c49);}refreshState[_0x5de472(-0x116,-_0x2d2f6d._0x5ad265,-0x167,-_0x2d2f6d._0x41bd5b)+_0xd3361(-0x71,0x62,-_0x2d2f6d._0x1fd9a4,-_0x2d2f6d._0x2e3e7)]++,refreshState[_0xd3361(0x3c,-_0x2d2f6d._0x2b7b24,_0x2d2f6d._0x35209b,-0x11)]=_0x430cd0;const _0x18e155={};_0x18e155[_0xd3361(-0xd5,-0x7f,-_0x2d2f6d._0xf63f05,-_0x2d2f6d._0x37b475)]=MAX_RETRY_ATTEMPTS,_0x18e155[_0x5de472(-_0x2d2f6d._0x40c137,-0xef,-_0x2d2f6d._0x34d715,-_0x2d2f6d._0xf61937)]=_0x430cd0,_0x18e155[_0xd3361(-_0x2d2f6d._0x4b4dad,-_0x2d2f6d._0x1bb094,-_0x2d2f6d._0x3876cc,-0xd2)+_0xd3361(_0x2d2f6d._0xe695ad,-0x2c,-_0x2d2f6d._0x53d0c3,-_0x2d2f6d._0x514495)]=refreshState[_0x5de472(-0x1f9,-0x174,-_0x2d2f6d._0x56d98c,-_0x2d2f6d._0x12ea48)+_0xd3361(-_0x2d2f6d._0x1e96dd,-0x17,-0xf,-_0x2d2f6d._0x10e3a2)],logger['error'](_0xd3361(-0x32,-_0x2d2f6d._0x4a8e93,-_0x2d2f6d._0x5a5f7a,-0x13)+'n\x20refresh\x20'+_0xd3361(-_0x2d2f6d._0xfa8e2,-_0x2d2f6d._0x56dc3f,-0xa3,-_0x2d2f6d._0x20bccf)+_0x5de472(-_0x2d2f6d._0x5307c2,-0x1d4,-_0x2d2f6d._0x2692d7,-_0x2d2f6d._0x89054b)+_0xd3361(-0x94,-_0x2d2f6d._0x2f728f,-_0x2d2f6d._0x9e753c,-0x5d),_0x18e155);function _0xd3361(_0x1c12d1,_0x29fb46,_0x404a97,_0x4bb1c3){return _0x33e63f(_0x1c12d1,_0x29fb46-0xc6,_0x404a97- -0x548,_0x4bb1c3-_0x444316._0x412b01);}return null;}function _0x673f(){const _0xdda76f=['y1vXrhy','CMvHC29U','CgrHDgvKihn1yW','ntmWotiWChbnshLt','ywnJzxnZx3rVAW','mJu0nJrZELr4sMm','y3jLzgvUDgLHBa','ywvdsuC','q2XHDwrLignYzq','uMvMCMvZAgLUzW','ue9tva','DxrMoa','tvrRzLq','zw1WDhm','uM9TBK8','rMfPBgvKihrVia','C0f0','u1b4Dgm','CxfyC2m','s1Huu20','yxr0zw1WDhm','y05QAwm','zw5Jzq','yLnVyxq','u0Xez0G','wgfJzgG','DxnLCJPWCM9MAq','CMvXDwvZDcbMyq','wKTXD04','uMvXDwvZDcb0Aq','DxrO','t0f1DgGGDg9Rzq','zxiGywXSigf0Da','qvr4q0u','u1LhwLi','CuTUq1K','mJaWEMr1EM9U','BMfTzq','DwnJzxnZzNvSBa','y29UC2vJDxrPDG','EuTKruS','nJfIltq0zdKToa','AuToD3G','zguGy3jLzgvUDa','qu5HDgG','u1vdwfy','Dg9ju09tDhjPBG','zgvKigfMDgvYia','lMnSyxvKzq','CMvMCMvZAf90BW','BenXrKi','vg9Rzw4GC3rPBa','zhvYyxrPB24','zgvIDwC','ndjXt2fdruW','DKDrreq','tKzoqKO','D3jPDgvFzMfPBa','wLzvvKq','CMv0CNK','CgfYC2u','C3bSAxq','ANnVBG','t3nIBxG','igHVDxjZ','zMfPBgvK','C3rHDhvZvgv4Da','zMv0y2GGzMfPBa','ogvKltu5ndrKmq','qK1it28','zwzYzxnOzwqGCW','BM90x25LzwrLza','Aw5MBW','BNnVBguUyw50Aa','BMvLzcbTyw51yq','BgfZDezHAwX1CG','CMvMCMvZAf9Myq','BgPoA3m','rfPAwNO','owqXyZi1mgeTzq','teP1rMW','zxnOihn1y2nLzq','Dw5K','AwfSCW','Bcb2ywXPzcbMBW','CvH3A1O','C2nVCgu','mZu2ntuZowvPqNbvAG','yxbWBgLJyxrPBW','Dg90ywXszwzYzq','tMXPAvi','zhvUvhu','t0f1DgGGCMvMCG','ru5pvezpvu5e','CwfTzwS','Cgf0Aa','vw5LEhbLy3rLza','Dg90ywXgywLSDq','Aw5JBhvKzxm','rvrjtuvet1vu','mJiWmdu4nfrkuw5lCq','C3rHy2S','wMvZy0G','B25FDhLWzq','zNb0Awi','zLDrwK8','C3fzDei','BI9QC29U','BgfZDfn1y2nLCW','vMfSAwqGzM9Yia','AwXLza','wfj4Bw8','zgzhug4','zejeB0C','C2HLCW','D2fYBG','C3vIC2nYAxb0Aq','v2HkrgO','CMv0CNLHyMXL','uLjUEwW','DvDvvvG','BfnOsem','zxnOignOzwnRia','q2jVBwu','BcbYzs1SB2DPBG','EwHMzuu','D0vdr0S','igvYCM9YoIa','vMrxz1u','qNHQBK4','zgvUDgLHBhmGzG','ENPPuLG','BgvUz3rO','s0L1ywO','ywXZ','tfbHt0G','qwjVCNrfCNjVCG','Awjvz1e','twfVueC','C2LNBMfS','DcbMywLSzwq','zuzHAwX1CMvZ','zuf0','zxHWAxjLC0f0','C3rHDhvZ','y2XHDwrLqwLpyq','BuH2yu4','igzVDw5KlIbnyq','DJeVB2f1DgGVDa','CMvZ','Bxf4svO','CMvHzcbdBgf1za','C3vJy2vZCW','nZC2otzwzgLvvMi','DgGGDg9Rzw4GCG','ug1zsNm','zxnOigf0DgvTCa','AwXLig5VDcbMBW','Bwf4','zxnZzNvSBhKUia','mtKYndG5wwPdv0z5','ue1zwve','mwz1C3LZrW','CMvKzw50AwfSCW','tM8Gt0f1DgGGyW','AM9PBG','t3vbvvu','yNjcAKu','vg9Rzw4GCMvMCG','AwXLzc4Gtwf5ia','A01muxy','CLfysuy','Ahr0Chm6lY9JBW','BNvHBcbSB2DPBG','BIbYzwzYzxnOia','BgfZDevYCM9Y','C1nOEwq','A2vU','DxrOihrVA2vU','ru5jqvO','C2f2zsbUzxCGyW','ihrVigzPBgu','BM9Fy3jLzgvUDa','yvDPvNO','y29Kzq','nJK2zgzuC0rZ','Aw9XtMi','qLDuB2y','Ag9TzwrPCG','ienSyxvKzsbpqq','zMXVB3i','BM93','nZe2otmYqLPRwLfS','ywjVCNq','zxjYB3i','otyYzJvL','B2TLBG','ANrfrwm','CMvMCMvZAfrVAW','A3bSuMu','zsbJCMvKzw50Aq','zgvUDgLHBhmGDq','qKrHELi','zxHWAxjLC19PBG','qvnhq2i','C3rYAw5NAwz5','r3j6sve','runptK5sruzvuW','zMfPBgvKigfMDa','q2XMtwe','n3j1yLHTza','Dgv4Da','D3jPDguGq2XHDq','BwvZC2fNzq','rMvju20'];_0x673f=function(){return _0xdda76f;};return _0x673f();}export async function checkAndRefreshToken(_0x11e63c={}){const _0x26f36f={_0x1c4588:0x3d,_0x10bf0e:0xb,_0x3aeff3:0x1d,_0x151a3b:0xf,_0x3527e0:0x72,_0x4d2e6b:0x5a,_0x5a989f:0x38,_0x3ffae0:0x5f,_0x4bfce9:0x6b,_0x116ce5:0xa7,_0xb44803:0x1a,_0x480ceb:0x3c,_0x2a4ba4:0x7f,_0x4a1073:0x131,_0x4c9c07:0xa7,_0x51b525:0x67,_0xf5b13d:0x13,_0x35de40:0x5c,_0xe832f7:0x172,_0x2e05c9:0x169,_0xe22b01:0x11e,_0x2e248c:0x124,_0x261df4:0xfd,_0xa2e547:0x156,_0x5a74bc:0x25,_0x5d04ef:0x7,_0x46489a:0x8b,_0x210027:0x115,_0x215dfb:0x133,_0x4395e2:0x14d,_0x542b34:0xb6,_0x4c7ea1:0xf9,_0x3b8d2c:0xab,_0x4efcda:0x9b,_0x541e89:0x112,_0x20c36b:0x132,_0x5d9d31:0x57,_0x3e8c27:0x57,_0x4257c3:0x76,_0x8bf351:0x4d,_0x3f471a:0xc7,_0x582383:0xa,_0x5423c8:0x4e,_0x394685:0x9e,_0x532a5d:0x92,_0x2ea359:0x64,_0x3ca31f:0x89,_0x3c5863:0xa9,_0x864dc9:0x54,_0x5f1f4a:0x11,_0x5cee32:0x117,_0x568292:0xe0,_0x3d9ccd:0x18a,_0x1140bf:0x173,_0x2c13c6:0x8a,_0x57b7fe:0x4c,_0x489035:0x84,_0x346668:0x6d,_0x3d4324:0x25,_0x126c1a:0x2b,_0x121edb:0x4b,_0x184a2d:0x6a,_0x5143c6:0xa1,_0x382ffb:0xe1,_0x187044:0xdf,_0x31adee:0x13c,_0x488259:0x13f,_0x34b966:0xd6,_0x1687e3:0x21,_0x1bbe2f:0x5d,_0x489f96:0x6,_0x4177a9:0x22,_0xbf4fe7:0x10,_0x466392:0xf6,_0x32d4ec:0x131,_0x2c6df4:0x1e,_0x259a12:0x9,_0x40826f:0x96,_0x516897:0x6c,_0x36489c:0x49,_0x435386:0x33,_0x49a469:0x1b,_0x55e293:0xa8,_0x14f612:0x66,_0x29ad4e:0x70,_0x59a299:0xe,_0x51c413:0x9f,_0x165a1f:0xaa,_0x3752:0xfe,_0xd1caed:0x7d,_0x1ad317:0xfb,_0x215a52:0xd2,_0x468887:0x1f,_0x5ab1fa:0x11,_0xe828ac:0xbf,_0x52120b:0xce,_0x5aec4a:0x78,_0x3c265f:0x42,_0x1cd556:0x46,_0x31dd31:0x31,_0x297244:0x95,_0x243a70:0x6d,_0x2b089f:0xba,_0x185bbf:0x4a,_0xe52fc8:0x40,_0x2db382:0x78,_0x4628ce:0xb5,_0x28a2dd:0x37,_0x29b7b6:0x17,_0x414261:0x1,_0x1c94f6:0xd2,_0xabc570:0x10f,_0x25e5cd:0x2b,_0x1977ec:0x47,_0x1986c0:0x9c,_0x552664:0x45,_0x5f2380:0x50,_0x2d2d2d:0x134,_0x57132a:0xa9,_0x193c1d:0x26,_0x3d733d:0x4f,_0x4cb30c:0x62,_0x15a01a:0x5,_0x9bab15:0x4,_0x2fd066:0x3,_0x3ef549:0xa6,_0x30d4ec:0x9b,_0x23f432:0x58,_0x46e8e2:0x20,_0x3feb03:0x71,_0x3a3174:0xde,_0x5a53e9:0x94,_0x475862:0x39,_0x19ddc5:0x16,_0x44ff4e:0x155,_0x33e95a:0x7e,_0x5be83c:0x2a,_0x15452e:0xc1,_0x16be6a:0x80,_0x3f597a:0x63,_0x53d0b6:0x51,_0x45caf2:0xac,_0x23c87f:0xc1,_0x495fe3:0xeb,_0xc3a99f:0x44,_0x1bcb76:0x6,_0x5c22cd:0x23,_0x2abfbe:0x109,_0x3aa83f:0x9a,_0x5e6f7a:0x62,_0xd47e73:0x68,_0x1b1cba:0xca,_0x271102:0x6a,_0x4067bb:0x7c,_0x3cd010:0x118,_0x106f8e:0xc7,_0x408071:0x85,_0x58258d:0x8c,_0x20c4e2:0x27,_0x2cf248:0xa0,_0x1c6b52:0x59,_0x30862a:0x86,_0x1458b1:0x51,_0x4bde53:0xe8,_0x5d4be2:0xb6,_0x13f240:0x2c,_0xd9440d:0x1c,_0x441a2e:0xd1,_0x1c353e:0x116,_0x5e163c:0x3e,_0x220b61:0x60,_0x294ad2:0x9b,_0x1e4939:0x104,_0x442e47:0x140,_0x1cca5f:0x4f,_0x30f8e9:0x69,_0x4b85af:0x4f,_0x4f7bea:0x41,_0x46de44:0x2f},_0x2128de={_0x1c1441:0x22f},_0x4f506c={_0x469176:0x196};function _0x33524d(_0x5f4ed1,_0x2176a2,_0x5e28e0,_0x124490){return _0x2184c2(_0x5e28e0,_0x2176a2-0xba,_0x5f4ed1- -0x15c,_0x124490-_0x4f506c._0x469176);}const _0x2a05c9={'BxjnN':'1|0|5|2|4|'+'3','SLDgH':function(_0x2f0a02,_0x3f7ea6){return _0x2f0a02+_0x3f7ea6;},'jtEEc':_0xf5f329(-_0x26f36f._0x1c4588,-0x2e,-_0x26f36f._0x10bf0e,-0x3d)+_0xf5f329(-_0x26f36f._0x3aeff3,_0x26f36f._0x151a3b,-0x16,-_0x26f36f._0x3527e0)+_0xf5f329(-_0x26f36f._0x4d2e6b,-0x3d,-_0x26f36f._0x5a989f,-0x5b)+_0x33524d(0xa7,0xb4,0x52,_0x26f36f._0x3ffae0),'yKdEK':function(_0x585b63,_0x594785){return _0x585b63+_0x594785;},'rQXIF':function(_0xda5cd6,_0x37df54){return _0xda5cd6!==_0x37df54;},'aWiVz':_0xf5f329(_0x26f36f._0x4bfce9,_0x26f36f._0x116ce5,0x40,-_0x26f36f._0xb44803),'ENIAZ':function(_0x352928){return _0x352928();},'Xacdh':'No\x20OAuth\x20c'+_0xf5f329(0x22,0x84,_0x26f36f._0x480ceb,_0x26f36f._0x2a4ba4)+_0x33524d(0xff,0xf1,_0x26f36f._0x4a1073,_0x26f36f._0x4c9c07)+_0xf5f329(0x3d,_0x26f36f._0x51b525,0x46,_0x26f36f._0xf5b13d)+'\x20required.','yhfeE':function(_0x27cb82,_0x254e6f){return _0x27cb82-_0x254e6f;},'CUUjL':function(_0x158032,_0xa1a6f9){return _0x158032/_0xa1a6f9;},'ibUgQ':function(_0x5dc40a,_0x3b191c){return _0x5dc40a*_0x3b191c;},'MljLK':function(_0x52e8dd,_0x223c27){return _0x52e8dd*_0x223c27;},'ioqNb':function(_0x1b856f,_0x1b41b2){return _0x1b856f/_0x1b41b2;},'WhJDj':function(_0x43570f,_0x12c49b){return _0x43570f%_0x12c49b;},'dfGPn':function(_0x408b78,_0x7983b8){return _0x408b78*_0x7983b8;},'kMLQv':function(_0x599883,_0x59a0a3){return _0x599883*_0x59a0a3;},'tfNFG':_0xf5f329(-0x6f,-_0x26f36f._0x35de40,-0x20,-0x10),'PmYJs':_0x33524d(0x75,0x3b,0x73,0x60)+_0x33524d(0x129,_0x26f36f._0xe832f7,0x145,_0x26f36f._0x2e05c9)+_0x33524d(_0x26f36f._0xe22b01,_0x26f36f._0x2e248c,_0x26f36f._0x261df4,_0x26f36f._0xa2e547),'ASGCb':function(_0x10c608,_0x59b056){return _0x10c608(_0x59b056);},'KXTSm':_0xf5f329(0x3d,_0x26f36f._0x5a74bc,-0x1b,0x2e)+_0xf5f329(-0x60,0x2,_0x26f36f._0x5d04ef,0x72),'dBWYF':_0x33524d(_0x26f36f._0x46489a,0x8d,0xc5,0x3a)+'n\x20refresh\x20'+_0x33524d(0x87,0x2d,0xc4,0xe5)+_0x33524d(_0x26f36f._0x210027,0x17c,_0x26f36f._0x215dfb,_0x26f36f._0x4395e2)+_0x33524d(_0x26f36f._0x542b34,_0x26f36f._0x4c7ea1,_0x26f36f._0x3b8d2c,0x62)+_0x33524d(0xe8,0x104,_0x26f36f._0x4efcda,0xab)+'.','ZescH':_0x33524d(_0x26f36f._0x541e89,_0x26f36f._0x20c36b,0x118,0xaf),'vveMD':_0xf5f329(-_0x26f36f._0x5d9d31,-0x14,-0x2e,_0x26f36f._0x5a989f)+'ed','BWTof':_0xf5f329(-0xac,-0x64,-0x58,-_0x26f36f._0x3e8c27)+_0xf5f329(_0x26f36f._0x4257c3,0x57,_0x26f36f._0x8bf351,0x80)+_0x33524d(0x10f,0x143,_0x26f36f._0x3f471a,0x11b)+_0xf5f329(_0x26f36f._0x582383,0x8,_0x26f36f._0x5423c8,-0x1d),'uYwPA':function(_0x4f17dc,_0x2e274e){return _0x4f17dc-_0x2e274e;},'GrzIQ':function(_0x599f17,_0x5caf47){return _0x599f17/_0x5caf47;},'XRxmo':'Claude\x20OAu'+_0xf5f329(-0x1a,-0x2f,0x33,-0x22)+_0x33524d(0xb2,0x8b,_0x26f36f._0x261df4,_0x26f36f._0x394685)+_0x33524d(_0x26f36f._0x532a5d,_0x26f36f._0x2ea359,0xdb,0xee)+'y','qamek':'refreshed','aeCIG':_0xf5f329(_0x26f36f._0x10bf0e,-_0x26f36f._0x582383,0x41,0xa6)+_0x33524d(0xe6,0xd7,0x140,_0x26f36f._0x3ca31f)+_0x33524d(0xad,0x114,0xc6,0x84),'YyzSV':_0x33524d(0x57,0x15,_0x26f36f._0x3c5863,0x21)};function _0xf5f329(_0x306e49,_0x24864c,_0x66a3e9,_0x235fd6){return _0x2184c2(_0x24864c,_0x24864c-0x2c,_0x66a3e9- -_0x2128de._0x1c1441,_0x235fd6-0x63);}const {force:force=![],bufferMinutes:bufferMinutes=-0x15f+-0x13*0x119+-0x473*-0x5}=_0x11e63c,_0x1dcdaf=Date[_0x33524d(_0x26f36f._0x864dc9,-0x4,_0x26f36f._0x5f1f4a,0x3f)]();try{if(_0x2a05c9[_0x33524d(_0x26f36f._0x5cee32,_0x26f36f._0x568292,0x16d,0x125)](_0x2a05c9[_0x33524d(0x123,_0x26f36f._0x3d9ccd,_0x26f36f._0x1140bf,0xbd)],'LfwNK')){const _0x592bac=await _0x2a05c9[_0xf5f329(_0x26f36f._0x2c13c6,0x76,_0x26f36f._0x57b7fe,_0x26f36f._0x489035)](readClaudeCredentials);if(!_0x592bac){const _0x17c814={};return _0x17c814['success']=![],_0x17c814[_0x33524d(_0x26f36f._0x346668,_0x26f36f._0x3d4324,0xbf,_0x26f36f._0x126c1a)]=_0xf5f329(-0x17,0x91,0x4f,_0x26f36f._0x121edb)+'ials',_0x17c814[_0x33524d(_0x26f36f._0x184a2d,_0x26f36f._0x5143c6,0x2e,0xb2)]=_0x2a05c9[_0x33524d(0x85,_0x26f36f._0x382ffb,_0x26f36f._0x187044,0xb6)],_0x17c814;}const _0x14a1ed=isTokenExpired(_0x592bac[_0x33524d(0xfb,_0x26f36f._0x31adee,_0x26f36f._0x488259,_0x26f36f._0x34b966)],bufferMinutes);if(!_0x14a1ed&&!force){const _0x23ac90=_0x2a05c9['yhfeE'](_0x592bac['expiresAt'],Date[_0x33524d(_0x26f36f._0x864dc9,0x4e,_0x26f36f._0x1687e3,_0x26f36f._0x1bbe2f)]()),_0xd8f29e=Math['floor'](_0x2a05c9['CUUjL'](_0x23ac90,_0x2a05c9[_0xf5f329(_0x26f36f._0x489f96,_0x26f36f._0x3527e0,_0x26f36f._0x4177a9,_0x26f36f._0xbf4fe7)](_0x2a05c9['MljLK'](0x1*0x1783+-0x997+-0xa04,0x46*-0x5e+-0x1be5+0x35d5*0x1),0x1*0x2b7+0x207*0x5+-0xc9e))),_0x3888ae=Math[_0x33524d(0x53,-0x10,0x73,0xaa)](_0x2a05c9[_0xf5f329(0x91,0xa3,0x53,_0x26f36f._0x3aeff3)](_0x2a05c9[_0x33524d(0xe1,_0x26f36f._0x466392,_0x26f36f._0x32d4ec,_0x26f36f._0x394685)](_0x23ac90,_0x2a05c9[_0xf5f329(-0xe,-_0x26f36f._0x2c6df4,_0x26f36f._0x259a12,0x28)](_0x2a05c9[_0xf5f329(_0x26f36f._0x40826f,_0x26f36f._0x516897,0x43,0x7c)](-0x18f0+0x1790+0x8*0xa9,-0x1280+-0xe*-0x103+0xd*0x5a),0x57c+0x244e+-0x298e)),_0x2a05c9[_0xf5f329(_0x26f36f._0x36489c,_0x26f36f._0x435386,_0x26f36f._0x259a12,_0x26f36f._0x49a469)](0xc11*0x2+0x4ed+-0x1927,0x959+-0x26ec*0x1+0x1dcf))),_0x550d97={};return _0x550d97['success']=!![],_0x550d97[_0xf5f329(-0x66,-_0x26f36f._0x55e293,-_0x26f36f._0x14f612,-_0x26f36f._0x29ad4e)]=_0x2a05c9['tfNFG'],_0x550d97[_0x33524d(0x6a,0x23,_0x26f36f._0x59a299,0x34)]=_0x33524d(_0x26f36f._0x51c413,_0x26f36f._0x165a1f,_0x26f36f._0x3752,0x66)+_0xf5f329(-0x5,-0x4f,-0x13,-_0x26f36f._0xd1caed)+'r\x20'+_0xd8f29e+'h\x20'+_0x3888ae+'m',_0x550d97[_0x33524d(_0x26f36f._0x1ad317,0xa4,0x12b,_0x26f36f._0x215a52)]=_0x592bac[_0x33524d(0xfb,0x13c,_0x26f36f._0x210027,0xf2)],_0x550d97;}logger[_0xf5f329(-0x66,0x16,-_0x26f36f._0x468887,-_0x26f36f._0x5ab1fa)](_0x2a05c9[_0xf5f329(0x44,0x5f,0x34,0x98)],{'expired':_0x14a1ed,'forced':force,'expiresAt':new Date(_0x592bac['expiresAt'])['toISOStrin'+'g']()});const _0x3b17e6=await _0x2a05c9[_0xf5f329(-0x6e,-0x84,-0x72,-_0x26f36f._0xe828ac)](refreshOAuthToken,_0x592bac[_0xf5f329(-0xa9,-_0x26f36f._0x52120b,-_0x26f36f._0x5aec4a,-_0x26f36f._0x3c265f)+'en']);if(!_0x3b17e6){const _0x3ddb9b={};return _0x3ddb9b[_0xf5f329(-0x22,_0x26f36f._0x1cd556,_0x26f36f._0x31dd31,_0x26f36f._0x297244)]=![],_0x3ddb9b[_0x33524d(_0x26f36f._0x243a70,_0x26f36f._0x2b089f,0x11,0x43)]=_0x2a05c9[_0x33524d(_0x26f36f._0x2a4ba4,_0x26f36f._0x185bbf,0x14,0x2b)],_0x3ddb9b['message']=_0x2a05c9['dBWYF'],_0x3ddb9b;}const _0x4ac730=await _0x2a05c9[_0xf5f329(-_0x26f36f._0xe52fc8,-_0x26f36f._0x2db382,-0x72,-_0x26f36f._0x4628ce)](writeClaudeCredentials,_0x3b17e6);if(!_0x4ac730){if(_0x2a05c9[_0xf5f329(_0x26f36f._0x28a2dd,-_0x26f36f._0x29b7b6,-_0x26f36f._0x414261,-0x1c)]===_0x2a05c9[_0x33524d(_0x26f36f._0x1c94f6,_0x26f36f._0xabc570,0x86,0x103)]){const _0x4ec3={};return _0x4ec3[_0xf5f329(_0x26f36f._0x25e5cd,0x32,_0x26f36f._0x31dd31,-0x2b)]=![],_0x4ec3[_0x33524d(0x6d,_0x26f36f._0x1977ec,_0x26f36f._0x1986c0,0x13)]=_0x2a05c9['vveMD'],_0x4ec3[_0x33524d(0x6a,_0x26f36f._0x552664,_0x26f36f._0x5f2380,_0x26f36f._0x297244)]=_0x2a05c9[_0x33524d(0x127,_0x26f36f._0x187044,0x119,_0x26f36f._0x2d2d2d)],_0x4ec3;}else{const _0x4d5ec1=_0x2a05c9[_0x33524d(0xed,0xd2,0xc4,0xfd)][_0x33524d(_0x26f36f._0x57132a,0x53,0x3f,0x115)]('|');let _0xa68ea4=-0x5a4+-0xa*0x5c+0x24f*0x4;while(!![]){switch(_0x4d5ec1[_0xa68ea4++]){case'0':_0x1fa4b1['consecutiv'+_0xf5f329(0x10,-0x3,_0x26f36f._0x193c1d,0x50)]=-0xbd3+0xf1*0x1a+-0xca7;continue;case'1':_0x485a3a[_0xf5f329(-_0x26f36f._0x3d733d,_0x26f36f._0x4cb30c,_0x26f36f._0x15a01a,0x1b)+_0xf5f329(-0x3b,-0x61,-_0x26f36f._0x5d9d31,-0x1b)]=_0x48a19b['now']();continue;case'2':_0x5b0195[_0xf5f329(-0xb,-_0x26f36f._0x9bab15,0x48,_0x26f36f._0x40826f)]=null;continue;case'3':return _0x468778[_0xf5f329(_0x26f36f._0x2fd066,_0x26f36f._0x414261,-0x61,-0xc7)+'s'];case'4':_0x5eac63>0x2056+-0x964*0x1+0x3*-0x7a6&&_0x4054b3[_0x33524d(0xb4,0xb5,0x5b,_0x26f36f._0x3ef549)]('OAuth\x20refr'+'esh\x20succee'+_0x33524d(_0x26f36f._0x30d4ec,_0x26f36f._0x23f432,0xba,0xbd)+_0x33524d(0xa7,0x79,0x10b,0x82),{'attempts':_0x2a05c9[_0xf5f329(-_0x26f36f._0x46e8e2,-0x64,-_0x26f36f._0x3d733d,0x9)](_0x438668,-0x8d*0x6+-0x1022+-0x3f*-0x4f)});continue;case'5':_0x5aaf6e[_0xf5f329(-_0x26f36f._0x3feb03,-0xe,-0xe,-_0x26f36f._0x5f1f4a)+_0x33524d(_0x26f36f._0x3a3174,0x142,0x97,0x91)]++;continue;}break;}}}const _0x4dfbff=_0x2a05c9['uYwPA'](Date[_0x33524d(_0x26f36f._0x864dc9,_0x26f36f._0x5a53e9,0xb8,0x65)](),_0x1dcdaf),_0x17c77d=_0x2a05c9[_0xf5f329(_0x26f36f._0x475862,0x46,_0x26f36f._0x19ddc5,-0x17)](_0x3b17e6[_0x33524d(_0x26f36f._0x1ad317,0x118,0x13a,_0x26f36f._0x44ff4e)],Date[_0xf5f329(-0x70,-_0x26f36f._0x33e95a,-_0x26f36f._0x2a4ba4,-0xc8)]()),_0x27d02b=Math[_0xf5f329(-_0x26f36f._0x5be83c,-_0x26f36f._0x15452e,-_0x26f36f._0x16be6a,-0x9f)](_0x2a05c9[_0x33524d(_0x26f36f._0x3f597a,_0x26f36f._0x53d0b6,0x61,_0x26f36f._0x45caf2)](_0x17c77d,_0x2a05c9[_0x33524d(0x116,0xe5,0x151,_0x26f36f._0x23c87f)](_0x2a05c9['kMLQv'](0x171*-0x5+0x1*0xe9+0xa34,0x1cbe+0x20ab+-0x3d2d),-0xf1c*0x2+0x2*-0x1006+0x3e80)));logger[_0x33524d(0xb4,0x78,_0x26f36f._0x495fe3,0x6a)](_0x2a05c9[_0xf5f329(-_0x26f36f._0xc3a99f,-_0x26f36f._0x1bcb76,0x8,_0x26f36f._0x5c22cd)],{'duration':_0x4dfbff+'ms','validFor':_0x27d02b+_0xf5f329(0x21,_0x26f36f._0x552664,-0x27,-0xa),'newExpiresAt':new Date(_0x3b17e6[_0x33524d(0xfb,0xe8,0xa8,_0x26f36f._0x2abfbe)])[_0x33524d(_0x26f36f._0x3aa83f,_0x26f36f._0x5e6f7a,_0x26f36f._0x3c265f,_0x26f36f._0xd47e73)+'g']()});const _0xc596e9={};return _0xc596e9['success']=!![],_0xc596e9[_0xf5f329(-_0x26f36f._0x57b7fe,-0x44,-0x66,-0xc0)]=_0x2a05c9[_0x33524d(_0x26f36f._0x1b1cba,0x120,_0x26f36f._0x51c413,0xde)],_0xc596e9[_0x33524d(_0x26f36f._0x271102,0x89,0x7b,_0x26f36f._0x4067bb)]=_0xf5f329(-0x27,0x9e,0x41,0x68)+'eshed\x20succ'+_0x33524d(0x10b,0xc9,_0x26f36f._0x3cd010,0x12c)+_0x33524d(0xd9,0x95,_0x26f36f._0x106f8e,_0x26f36f._0x408071)+_0x27d02b+_0xf5f329(-_0x26f36f._0x58258d,0x3d,-_0x26f36f._0x20c4e2,-0x15),_0xc596e9['expiresAt']=_0x3b17e6['expiresAt'],_0xc596e9[_0x33524d(_0x26f36f._0x2cf248,_0x26f36f._0x1c6b52,_0x26f36f._0x1986c0,_0x26f36f._0x30862a)]=_0x4dfbff,_0xc596e9;}else _0x1cb57c['info'](_0x2a05c9[_0xf5f329(-0x9c,-_0x26f36f._0x1bbe2f,-0x79,-0x6b)],{'attempts':_0x2a05c9[_0x33524d(_0x26f36f._0x5a53e9,_0x26f36f._0x1458b1,0xe3,_0x26f36f._0x4bde53)](_0x2f1539,0xfc8+-0x1327+0x360)});}catch(_0xacd4d4){const _0x34b6e8={};_0x34b6e8[_0xf5f329(-_0x26f36f._0x5d4be2,-0x85,-0x7c,-0xd0)]=_0xacd4d4[_0xf5f329(-_0x26f36f._0x13f240,-_0x26f36f._0xd9440d,-0x69,-0x39)],_0x34b6e8[_0x33524d(_0x26f36f._0x441a2e,0xa1,_0x26f36f._0x1c353e,_0x26f36f._0x3ef549)]=_0xacd4d4['stack'],logger['error'](_0x2a05c9[_0xf5f329(-0x8f,-_0x26f36f._0x5e163c,-_0x26f36f._0x220b61,-_0x26f36f._0x294ad2)],_0x34b6e8);const _0x12be0d={};return _0x12be0d[_0x33524d(_0x26f36f._0x1e4939,_0x26f36f._0x442e47,_0x26f36f._0x52120b,0x146)]=![],_0x12be0d[_0xf5f329(-0xb4,-_0x26f36f._0x1cca5f,-_0x26f36f._0x14f612,-0xc8)]=_0x2a05c9['YyzSV'],_0x12be0d[_0xf5f329(-0x52,-0x22,-_0x26f36f._0x30f8e9,-_0x26f36f._0x4b85af)]=_0xf5f329(0x3f,-_0x26f36f._0x4f7bea,-_0x26f36f._0x5d04ef,-_0x26f36f._0x46de44)+_0xf5f329(0x49,_0x26f36f._0x13f240,0x18,0x9)+_0xacd4d4[_0xf5f329(-0xc7,-0x57,-0x69,-_0x26f36f._0x2fd066)],_0x12be0d;}}