@nuvin/agent-core 0.0.0-rc.17 → 0.0.0-rc.19

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 (90) hide show
  1. package/dist/VERSION +2 -2
  2. package/dist/agent/agent.d.ts +28 -0
  3. package/dist/agent/context-compactor.d.ts +8 -0
  4. package/dist/agent/extension-registry.d.ts +3 -0
  5. package/dist/agent/index.d.ts +8 -99
  6. package/dist/agent/index.js +1 -1
  7. package/dist/agent/messages-to-text.d.ts +3 -0
  8. package/dist/agent/metrics.d.ts +30 -0
  9. package/dist/agent/topic-reminder-extension.d.ts +32 -0
  10. package/dist/agent/turn-engine.d.ts +3 -0
  11. package/dist/chunk-FFIZ6TKW.js +1 -1
  12. package/dist/chunk-HRU363DY.js +1 -0
  13. package/dist/chunk-NHBKADBW.js +1 -0
  14. package/dist/chunk-NYZR4XKO.js +1 -1
  15. package/dist/chunk-QDOE7NWO.js +1 -0
  16. package/dist/chunk-X7VAACWY.js +1 -1
  17. package/dist/formats/base64-image-content.d.ts +4 -0
  18. package/dist/formats/index.d.ts +4 -39
  19. package/dist/formats/index.js +1 -1
  20. package/dist/formats/message-format.d.ts +33 -0
  21. package/dist/formats/provider-adapters.d.ts +3 -0
  22. package/dist/hooks/executor.d.ts +3 -0
  23. package/dist/hooks/extensions.d.ts +28 -0
  24. package/dist/hooks/index.d.ts +7 -76
  25. package/dist/hooks/index.js +1 -1
  26. package/dist/hooks/registry.d.ts +8 -0
  27. package/dist/hooks/types.d.ts +40 -0
  28. package/dist/lsp/client.d.ts +11 -0
  29. package/dist/lsp/index.d.ts +24 -0
  30. package/dist/lsp/installer.d.ts +11 -0
  31. package/dist/lsp/language.d.ts +2 -0
  32. package/dist/lsp/server.d.ts +6 -0
  33. package/dist/lsp/types.d.ts +68 -0
  34. package/dist/models/anthropic-model.d.ts +27 -0
  35. package/dist/models/anthropic-surface.d.ts +5 -0
  36. package/dist/models/chat-model.d.ts +31 -0
  37. package/dist/models/github-model.d.ts +32 -0
  38. package/dist/models/http-transport.d.ts +10 -0
  39. package/dist/models/index.d.ts +16 -390
  40. package/dist/models/index.js +1 -1
  41. package/dist/models/mock-model.d.ts +15 -0
  42. package/dist/models/model-errors.d.ts +16 -0
  43. package/dist/models/model-limits.d.ts +7 -0
  44. package/dist/models/model-registry.d.ts +44 -0
  45. package/dist/models/model-surface-router.d.ts +19 -0
  46. package/dist/models/model-transports.d.ts +17 -0
  47. package/dist/models/openai-model.d.ts +60 -0
  48. package/dist/models/openai-surfaces.d.ts +74 -0
  49. package/dist/models/provider-adapter.d.ts +23 -0
  50. package/dist/models/provider-session.d.ts +16 -0
  51. package/dist/models/routed-model.d.ts +90 -0
  52. package/dist/shared/abort.d.ts +9 -0
  53. package/dist/shared/index.d.ts +5 -22
  54. package/dist/shared/index.js +1 -1
  55. package/dist/shared/reasoning-config.d.ts +5 -0
  56. package/dist/shared/turn-failed.d.ts +6 -0
  57. package/dist/{types-3UUDPpJs.d.ts → shared/types.d.ts} +172 -162
  58. package/dist/tools/ask-user-tool.d.ts +55 -0
  59. package/dist/tools/bash-tool.d.ts +63 -0
  60. package/dist/tools/command-tool.d.ts +23 -0
  61. package/dist/tools/file-edit-tool.d.ts +29 -0
  62. package/dist/tools/file-new-tool.d.ts +21 -0
  63. package/dist/tools/file-read-tool.d.ts +27 -0
  64. package/dist/tools/glob-tool.d.ts +26 -0
  65. package/dist/tools/grep-tool.d.ts +34 -0
  66. package/dist/tools/index.d.ts +28 -809
  67. package/dist/tools/index.js +1 -1
  68. package/dist/tools/internal-tool-runtime.d.ts +8 -0
  69. package/dist/tools/ls-tool.d.ts +20 -0
  70. package/dist/tools/lsp-tool.d.ts +36 -0
  71. package/dist/tools/mcp-oauth-provider.d.ts +11 -0
  72. package/dist/tools/mcp-server-manager.d.ts +43 -0
  73. package/dist/tools/mcp-tool-adapter.d.ts +47 -0
  74. package/dist/tools/mock-tool-runtime.d.ts +3 -0
  75. package/dist/tools/ripgrep.d.ts +20 -0
  76. package/dist/tools/runtime-manager-tools.d.ts +58 -0
  77. package/dist/tools/skill-tool.d.ts +33 -0
  78. package/dist/tools/todo-write-tool.d.ts +66 -0
  79. package/dist/tools/tool-output-offload.d.ts +12 -0
  80. package/dist/tools/tools.d.ts +24 -0
  81. package/dist/tools/update-topic-tool.d.ts +12 -0
  82. package/dist/tools/view-file-tool.d.ts +22 -0
  83. package/dist/tools/web-fetch-tool.d.ts +20 -0
  84. package/dist/tools/web-search-tool.d.ts +72 -0
  85. package/dist/tools/workspace-paths.d.ts +5 -0
  86. package/package.json +2 -2
  87. package/dist/chunk-SEP4YYY3.js +0 -1
  88. package/dist/chunk-T7UKN6FZ.js +0 -1
  89. package/dist/chunk-WHYFEBOU.js +0 -1
  90. package/dist/provider-adapters-Bupd2RBH.d.ts +0 -5
@@ -1 +1 @@
1
- (function(_0x11bfe5,_0x53fa8c){const _0x4aead0={_0x391e5c:0x5e6,_0x44cb59:0x536,_0x1ca908:0x6bd,_0xf583c2:0x616,_0x3fcde7:0x4d0,_0x285459:0x44f,_0x42ad16:0x4bf,_0x17d267:0x627,_0x2a088:0x626,_0x13014c:0x525,_0x337202:0x5d0,_0x5f9823:0x606,_0x24f4b1:0x677,_0x1711b1:0x66e,_0x403ac0:0x5aa,_0x2307dc:0x639,_0x249b83:0x61c},_0x1251f3={_0xff0ef6:0x1c6};function _0x2eb8e9(_0x1e71f6,_0x13f779,_0x31afc5,_0x387c80){return _0x17ab(_0x1e71f6-0x3a5,_0x387c80);}const _0x13858a=_0x11bfe5();function _0x51e309(_0x1b248a,_0x4b46ed,_0x30f1ee,_0xbaf5ad){return _0x17ab(_0xbaf5ad-_0x1251f3._0xff0ef6,_0x30f1ee);}while(!![]){try{const _0x3a3d83=parseInt(_0x2eb8e9(_0x4aead0._0x391e5c,0x5f9,_0x4aead0._0x44cb59,0x581))/0x1+parseInt(_0x2eb8e9(_0x4aead0._0x1ca908,_0x4aead0._0xf583c2,0x77b,0x753))/0x2*(parseInt(_0x51e309(_0x4aead0._0x3fcde7,_0x4aead0._0x285459,_0x4aead0._0x42ad16,0x511))/0x3)+parseInt(_0x2eb8e9(0x560,_0x4aead0._0x17d267,_0x4aead0._0x2a088,_0x4aead0._0x13014c))/0x4+-parseInt(_0x2eb8e9(_0x4aead0._0x337202,0x63b,_0x4aead0._0x5f9823,0x519))/0x5+parseInt(_0x2eb8e9(_0x4aead0._0x24f4b1,0x71a,0x5a3,0x69e))/0x6+-parseInt(_0x51e309(0x43c,0x2b7,0x297,0x35d))/0x7+-parseInt(_0x2eb8e9(_0x4aead0._0x1711b1,_0x4aead0._0x403ac0,_0x4aead0._0x2307dc,_0x4aead0._0x249b83))/0x8;if(_0x3a3d83===_0x53fa8c)break;else _0x13858a['push'](_0x13858a['shift']());}catch(_0xc315ff){_0x13858a['push'](_0x13858a['shift']());}}}(_0x266c,0xa0a71));import{toOpenAiResponsesRequest}from'../chunk-T7UKN6FZ.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-SEP4YYY3.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x46530e){const _0x2c630f={_0x5c813a:0x10e,_0x5e3f1c:0x149,_0x40dd93:0x317,_0x90aa2b:0x2d4,_0x14712a:0x297};function _0xec3780(_0x160fe1,_0x226346,_0x21e1b7,_0x1e291b){return _0x17ab(_0x1e291b- -0x7f,_0x160fe1);}super(_0x46530e);function _0x327538(_0x27652d,_0xcb3761,_0x49c6b7,_0x36e279){return _0x17ab(_0x27652d- -0xa3,_0x36e279);}this[_0x327538(0x134,_0x2c630f._0x5c813a,0x155,_0x2c630f._0x5e3f1c)]=_0xec3780(_0x2c630f._0x40dd93,_0x2c630f._0x90aa2b,0x366,_0x2c630f._0x14712a);}},ProviderStreamEventError=class extends Error{[_0x532739(-0x246,-0x1dc,-0x223,-0x11d)];[_0x22e674(0x3c9,0x38c,0x378,0x422)];[_0x532739(-0xab,-0x10d,-0xdb,-0x149)];constructor(_0x2f4cc0,_0x298fdb={}){const _0x459487={_0x4179ae:0x170,_0x2e33d5:0xe9,_0x3a129f:0x516,_0x4933d2:0x4e8,_0x476630:0x54d,_0x174cfb:0x589},_0x3e7a85={_0x3eec7d:0x18a,_0x53ece6:0xcc,_0x5b1615:0x12b},_0x3b82ff={_0xd1e9d6:0x19e,_0x112f00:0x4b7};super(_0x2f4cc0),this['name']=_0x14ed75(0x25,-0x14,-0xa9,-0x31),this[_0x14ed75(-_0x459487._0x4179ae,-_0x459487._0x2e33d5,-0x1f6,-0x191)]=_0x298fdb[_0x49d76(0x451,_0x459487._0x3a129f,0x452,_0x459487._0x4933d2)];function _0x14ed75(_0x3e1c27,_0x5b4481,_0x3d17b4,_0x368afa){return _0x22e674(_0x3e1c27-_0x3b82ff._0xd1e9d6,_0x5b4481-0x86,_0x5b4481,_0x368afa- -_0x3b82ff._0x112f00);}function _0x49d76(_0x41ea70,_0x321d22,_0x5df546,_0x318ef9){return _0x22e674(_0x41ea70-_0x3e7a85._0x3eec7d,_0x321d22-_0x3e7a85._0x53ece6,_0x321d22,_0x41ea70-_0x3e7a85._0x5b1615);}this['retryable']=_0x298fdb[_0x49d76(_0x459487._0x476630,_0x459487._0x174cfb,0x503,0x5c7)]??!![],this['status']=_0x298fdb['status'];}};function isRetryableProviderStreamEventError(_0xe1b1b1){return _0xe1b1b1 instanceof ProviderStreamEventError&&_0xe1b1b1['retryable'];}var ANTHROPIC_MESSAGES_SURFACE=_0x22e674(0x4df,0x54a,0x449,0x47f),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x532739(-0xc0,-0x104,-0x1da,-0xd2);function parseToolInput(_0x2fc6e9){const _0x168724={_0x31d211:0x33a,_0x5cdd40:0x2c5},_0x62ee26={_0x1eaa75:0x6d,_0x29cc85:0x1c8};function _0x3029f1(_0x2bf850,_0x26dd7d,_0x29f5e1,_0x13ab86){return _0x22e674(_0x2bf850-_0x62ee26._0x1eaa75,_0x26dd7d-_0x62ee26._0x29cc85,_0x29f5e1,_0x26dd7d- -0xf9);}try{return JSON[_0x3029f1(_0x168724._0x31d211,0x313,_0x168724._0x5cdd40,0x2cb)](_0x2fc6e9);}catch{return _0x2fc6e9;}}function resolveReasoningVisibility(_0xeba392){const _0x2d2063={_0x19b455:0x3b7,_0x3d2325:0x396},_0x23e939={_0x22feb3:0x6d},_0x1310a8={_0x4848f1:0x1f3,_0x58e7c5:0x112};function _0x5d7c0c(_0x5986fe,_0x2ef202,_0x3266f3,_0x8f3e9a){return _0x532739(_0x2ef202,_0x3266f3-0x586,_0x3266f3-_0x1310a8._0x4848f1,_0x8f3e9a-_0x1310a8._0x58e7c5);}function _0x141c3f(_0x2970cc,_0x271971,_0x1b6a3e,_0x284a0c){return _0x22e674(_0x2970cc-_0x23e939._0x22feb3,_0x271971-0x152,_0x284a0c,_0x271971-0x1ae);}return _0xeba392['reasoning']?.[_0x5d7c0c(_0x2d2063._0x19b455,0x3b0,_0x2d2063._0x3d2325,0x2f5)]??_0x141c3f(0x56b,0x5f3,0x68d,0x679);}function isUserVisibleThinking(_0x117730){const _0xbf343f={_0x2ab7da:0x575,_0x9a0749:0x5b0,_0x2c113d:0x54b,_0x610344:0x483,_0x2e36a7:0x537,_0x82a8c3:0x60e},_0x223900={_0x2e11f6:0x66,_0x11fe4:0x136,_0x114aa4:0x1e8},_0x5e9d0d={_0x1c0165:0x252};function _0x3343b5(_0x1d6189,_0x3e92d1,_0x1868e4,_0x2c9b83){return _0x22e674(_0x1d6189-0x180,_0x3e92d1-0x138,_0x2c9b83,_0x1d6189- -_0x5e9d0d._0x1c0165);}const _0x3a4863=resolveAnthropicThinkingConfig(_0x117730[_0x347b1c(_0xbf343f._0x2ab7da,_0xbf343f._0x9a0749,_0xbf343f._0x2c113d,_0xbf343f._0x610344)]);function _0x347b1c(_0x4332af,_0x2c7372,_0x23d636,_0x5f4d6e){return _0x22e674(_0x4332af-_0x223900._0x2e11f6,_0x2c7372-_0x223900._0x11fe4,_0x2c7372,_0x23d636-_0x223900._0x114aa4);}return _0x3a4863!==void 0x0&&_0x3a4863[_0x347b1c(0x5bc,0x522,0x5a8,_0xbf343f._0x2e36a7)]!=='disabled'&&resolveReasoningVisibility(_0x117730)===_0x347b1c(0x64d,_0xbf343f._0x82a8c3,0x62d,0x709);}function createAnthropicThinkingBody(_0x5e7800){const _0x2427ff={_0x87fd1d:0x38,_0x1c980b:0x1d,_0x7a504f:0x22f,_0x533944:0x18d,_0x1a76a0:0x151,_0x597c58:0x1ff,_0x571ec8:0x22b,_0x55b40b:0x1bc,_0xb2240c:0xed,_0x1d409c:0x1d9,_0x1bc2d6:0x60,_0x4d1e66:0x23,_0x2cf91e:0x8b,_0x454532:0x12,_0x526e71:0x1a7,_0x2e7ce7:0xec,_0x1c17cc:0x169,_0x30a746:0x2fd,_0xb1f347:0x238,_0x4ffa55:0x21b,_0x362c44:0x27c},_0x59f54d={_0x29f582:0x132,_0x3f03ef:0x114},_0x1e872f={_0x18e312:0x1c7},_0x587188=resolveAnthropicThinkingConfig(_0x5e7800[_0x1f0dab(0x6e,-0x3a,_0x2427ff._0x87fd1d,-_0x2427ff._0x1c980b)]);if(!_0x587188||_0x587188['type']===_0x3baa56(_0x2427ff._0x7a504f,_0x2427ff._0x533944,0x227,_0x2427ff._0x1a76a0))return{};function _0x3baa56(_0x4a98b3,_0xcdeded,_0xa04822,_0x53c719){return _0x22e674(_0x4a98b3-0x7a,_0xcdeded-_0x1e872f._0x18e312,_0x53c719,_0xa04822- -0x28a);}const _0x59d80d=_0x587188['display']??(isUserVisibleThinking(_0x5e7800)?_0x3baa56(0x2ca,0x126,_0x2427ff._0x597c58,0x11a):_0x3baa56(_0x2427ff._0x571ec8,0x248,_0x2427ff._0x55b40b,_0x2427ff._0xb2240c));function _0x1f0dab(_0x1c737a,_0x32d6b2,_0x17e41d,_0x2ca1ec){return _0x532739(_0x2ca1ec,_0x32d6b2-0x165,_0x17e41d-_0x59f54d._0x29f582,_0x2ca1ec-_0x59f54d._0x3f03ef);}const _0xf0f6bd=_0x587188[_0x3baa56(0x1c2,_0x2427ff._0x1d409c,0x146,0xb8)]?{'anthropic-beta':'interleaved-thinking-2025-05-14'}:void 0x0;if(_0x587188[_0x1f0dab(_0x2427ff._0x1bc2d6,_0x2427ff._0x4d1e66,-_0x2427ff._0x2cf91e,0x91)]==='enabled')return{..._0xf0f6bd?{'headers':_0xf0f6bd}:{},'thinking':{'type':_0x1f0dab(-_0x2427ff._0x454532,0xae,0xa2,0x156),'budget_tokens':_0x587188[_0x1f0dab(0xcf,0x19,0x0,-0xf)],'display':_0x59d80d}};return{..._0xf0f6bd?{'headers':_0xf0f6bd}:{},'thinking':{'type':_0x1f0dab(_0x2427ff._0x526e71,0xd6,_0x2427ff._0x2e7ce7,_0x2427ff._0x1c17cc),..._0x587188[_0x3baa56(_0x2427ff._0x30a746,_0x2427ff._0xb1f347,_0x2427ff._0x4ffa55,0x211)]?{'effort':_0x587188[_0x3baa56(0x292,0x142,_0x2427ff._0x4ffa55,_0x2427ff._0x362c44)]}:{},'display':_0x59d80d}};}function toAnthropicRequestContent(_0x1d7ced){const _0x4be118={_0x4ce662:0x67,_0x36e789:0x22,_0x1934dc:0x38,_0x434586:0x148,_0x244356:0x180,_0x333eeb:0x23d,_0x53f865:0x16,_0x16111b:0xf0,_0x3d67bc:0x17b,_0x3607ad:0x21e,_0x4b6218:0x158,_0x5da4a7:0x23a,_0x3027c5:0x195,_0x3e0c62:0x26e,_0x34ab70:0x42,_0x2b2e2d:0x48,_0xbe9296:0x100,_0x3abe17:0x41,_0x4a54f7:0x4d,_0x2cbe53:0x48,_0x1f6f29:0x53,_0x395a6b:0x19,_0x4cd8dc:0x8,_0x10251b:0x75,_0x1c17e5:0x82,_0x2370b4:0x205,_0x55629d:0x293,_0x1a72a8:0x30,_0x5470ab:0x215,_0x57165f:0x186,_0x2d5931:0x129,_0x468f71:0x1fc,_0x41b62e:0xa9,_0xe24efc:0xa6,_0x4bb369:0xc4,_0x3a19ca:0x3f,_0x350a3e:0xd6},_0xc21335={_0x55369f:0x44,_0x4ca112:0x127},_0x45528d={_0x175c2c:0x41,_0x2ea2b4:0x408};if(_0x1d7ced[_0x282408(_0x4be118._0x4ce662,_0x4be118._0x36e789,0x7a,-_0x4be118._0x1934dc)]===_0x69c75b(-_0x4be118._0x434586,-_0x4be118._0x244356,-_0x4be118._0x333eeb,-0x16f)&&_0x1d7ced[_0x282408(-_0x4be118._0x53f865,-_0x4be118._0x16111b,-_0x4be118._0x3d67bc,-0x1ca)]?.[_0x69c75b(-_0x4be118._0x3607ad,-0x208,-_0x4be118._0x4b6218,-_0x4be118._0x5da4a7)])return structuredClone(_0x1d7ced[_0x69c75b(-0x2fb,-0x22e,-_0x4be118._0x3027c5,-0x21d)][_0x69c75b(-0x12a,-0x208,-0x235,-_0x4be118._0x3e0c62)]);function _0x282408(_0x3d03c7,_0x47c716,_0x3cc25e,_0x26b962){return _0x22e674(_0x3d03c7-0x9d,_0x47c716-_0x45528d._0x175c2c,_0x3d03c7,_0x47c716- -_0x45528d._0x2ea2b4);}const _0x11bd15=[];function _0x69c75b(_0x464c0f,_0x3f2d56,_0x3e88f8,_0x45034c){return _0x532739(_0x3e88f8,_0x3f2d56- -_0xc21335._0x55369f,_0x3e88f8-_0xc21335._0x4ca112,_0x45034c-0xe4);}for(const _0x144f5f of normalizeContent(_0x1d7ced[_0x282408(0xab,_0x4be118._0x34ab70,0x7d,0xb)])){if(_0x144f5f[_0x282408(-0x54,-_0x4be118._0x2b2e2d,-_0x4be118._0xbe9296,-0x1)]===_0x282408(-_0x4be118._0x3abe17,_0x4be118._0x4a54f7,0x10c,0x39))continue;if(_0x144f5f[_0x282408(-0xe8,-_0x4be118._0x2cbe53,-_0x4be118._0x1f6f29,_0x4be118._0x395a6b)]===_0x282408(0x1c,_0x4be118._0x4cd8dc,_0x4be118._0x10251b,_0x4be118._0x1c17e5)){_0x11bd15['push']({'type':_0x69c75b(-0x224,-_0x4be118._0x2370b4,-0x215,-_0x4be118._0x55629d),'thinking':_0x144f5f['thinking'],'signature':_0x144f5f[_0x69c75b(-0x124,-0xc5,-0x42,-_0x4be118._0x1a72a8)]});continue;}if(_0x144f5f[_0x69c75b(-_0x4be118._0x5470ab,-_0x4be118._0x57165f,-0xf6,-0x12e)]==='anthropic_redacted_thinking'){_0x11bd15[_0x69c75b(-0x1e1,-0x1ac,-_0x4be118._0x2d5931,-_0x4be118._0x468f71)]({'type':_0x282408(-_0x4be118._0x41b62e,-_0x4be118._0xe24efc,-_0x4be118._0x4bb369,-_0x4be118._0x3a19ca),'data':_0x144f5f['data']});continue;}_0x11bd15[_0x282408(-_0x4be118._0x350a3e,-0x6e,0x27,0x1e)](structuredClone(_0x144f5f));}return _0x11bd15;}function createAnthropicRequest(_0x535474,_0x40d8e7){const _0x4f8125={_0x5838ea:0x241,_0xf2690d:0x1ab,_0xc3dd1e:0x1be,_0x1f5d41:0x366,_0x43f2a8:0x223,_0x4bc0f8:0x1b5,_0x5e8432:0x1c8,_0x51f22e:0x1e2,_0x374547:0xf8,_0x39e5e4:0xb4,_0x1a69de:0x2cc,_0x3f74e6:0x22c,_0x19e9e8:0x30a,_0x5d76da:0x29d,_0x4c7e50:0x2c5},_0x9feba7={_0x3c628e:0x30,_0x3d110d:0x113},_0x2b08f6={_0x2aaf06:0x198},_0x110813=toProviderModelRequest(_0x535474),_0xa11d10=createAnthropicThinkingBody(_0x535474);function _0xe4ea80(_0x46c02e,_0x51c972,_0x1d2af5,_0x310d19){return _0x22e674(_0x46c02e-0x114,_0x51c972-0x148,_0x46c02e,_0x1d2af5- -0x1ca);}function _0x450145(_0x2a42cd,_0x16455f,_0x449e2d,_0x1fc4e9){return _0x22e674(_0x2a42cd-0x5b,_0x16455f-0x1aa,_0x449e2d,_0x16455f- -_0x2b08f6._0x2aaf06);}return{'accept':_0x40d8e7?_0x450145(0x266,_0x4f8125._0x5838ea,_0x4f8125._0xf2690d,_0x4f8125._0xc3dd1e):_0xe4ea80(0x322,0x322,0x2b4,_0x4f8125._0x1f5d41),'body':{..._0x110813,'messages':_0x535474[_0xe4ea80(0x116,_0x4f8125._0x43f2a8,0x1a6,_0x4f8125._0x4bc0f8)][_0x450145(0x22d,_0x4f8125._0x5e8432,_0x4f8125._0x51f22e,0x253)](_0x180f67=>{const _0x1b1c21={_0x582f70:0x1a3,_0x1a49d5:0x1f1};function _0x218253(_0x387108,_0xe370de,_0x534185,_0x4ba8c2){return _0x450145(_0x387108-_0x1b1c21._0x582f70,_0x534185- -0x36e,_0x387108,_0x4ba8c2-_0x1b1c21._0x1a49d5);}return{'role':_0x180f67[_0x218253(-0x15f,-_0x9feba7._0x3c628e,-0xdc,-_0x9feba7._0x3d110d)],'content':toAnthropicRequestContent(_0x180f67)};}),..._0xa11d10['thinking']?{'thinking':_0xa11d10[_0xe4ea80(_0x4f8125._0x374547,_0x4f8125._0x39e5e4,0x177,0xca)]}:{},..._0x40d8e7?{'stream':!![]}:{}},..._0xa11d10[_0xe4ea80(_0x4f8125._0x1a69de,0x287,0x2d8,_0x4f8125._0x3f74e6)]?{'headers':_0xa11d10[_0x450145(0x3f0,_0x4f8125._0x19e9e8,0x31c,0x38a)]}:{},'path':_0x450145(_0x4f8125._0x5d76da,_0x4f8125._0x4c7e50,0x24e,0x344)};}function parseAnthropicResponse(_0x7e75fb,_0x2660b8){const _0x52bb4c={_0x1501ec:0x53b,_0xdfd7c6:0x50c,_0x4dd0d1:0x415,_0x21acb6:0x497,_0x19c79b:0x3f4,_0x4eedc8:0xdd,_0x3150c8:0x7,_0x22e07d:0x349,_0xd33f68:0x85,_0x183ded:0xee,_0x2dd3e4:0x4a,_0x184f8b:0x132,_0xca0a0c:0x1d,_0x20169b:0x54f,_0x2298d5:0x487,_0x48604b:0x519,_0x347aea:0x125,_0x779ed:0x10d,_0x36009d:0x110,_0x409372:0x169,_0x45e641:0x82,_0x3c3947:0x45e,_0x57b529:0x488,_0x42d469:0x4bc,_0x18fe89:0x511,_0x444cd6:0x54c,_0x4e3c72:0x46e,_0xc75f53:0x44c,_0x141e83:0x3c8,_0x61c0d2:0x5f,_0x3303b6:0x4d,_0x3aa4c5:0x154,_0x38376e:0x7a,_0x24090c:0x44a,_0x23cf77:0x464,_0x5058ea:0x42a,_0x4c1f8c:0x26,_0x4cc5fb:0x43,_0x50bffd:0x470,_0x5a9a24:0x3bf,_0x78952e:0x348,_0x346eb7:0x4b6,_0x51aa51:0x47f,_0x551537:0xa4,_0x3ba214:0x41f,_0x33506b:0x3c9,_0xbd7ef9:0x58,_0x54bf26:0x89,_0x200ada:0x5b,_0x559ff6:0x77,_0x5e32df:0x578,_0x46bcab:0x56e,_0x2e44cd:0x4fc,_0x4188c1:0x3e,_0x1ea5cd:0x89,_0x505eec:0x587,_0x37412c:0x4a2,_0x7f0c32:0x3fd,_0x3076bf:0x45c,_0x2b8892:0x572},_0x2bee9f={_0x30c0a1:0xb1},_0x2481d6={_0xb37de4:0x1d4},_0x3e4135=[];function _0x264eae(_0x4338cd,_0x509cfa,_0x598c6e,_0x1e4079){return _0x22e674(_0x4338cd-_0x2481d6._0xb37de4,_0x509cfa-0x58,_0x4338cd,_0x509cfa-0xd4);}const _0x5a7c1c=_0x7e75fb[_0x264eae(0x583,0x51e,0x4b8,_0x52bb4c._0x1501ec)]??[];let _0x49395a=![];function _0x29b2db(_0x3e977d,_0x17b18e,_0x5c9488,_0x3eafa0){return _0x22e674(_0x3e977d-0x192,_0x17b18e-_0x2bee9f._0x30c0a1,_0x5c9488,_0x3eafa0- -0x359);}for(const _0x3b0b84 of _0x5a7c1c){if(_0x3b0b84[_0x264eae(_0x52bb4c._0xdfd7c6,0x494,0x451,0x3ad)]===_0x264eae(0x3be,_0x52bb4c._0x4dd0d1,_0x52bb4c._0x21acb6,_0x52bb4c._0x19c79b)){_0x49395a=!![];isUserVisibleThinking(_0x2660b8)&&_0x3e4135[_0x29b2db(_0x52bb4c._0x4eedc8,0xa9,_0x52bb4c._0x3150c8,0x41)]({'type':'anthropic_thinking','thinking':_0x3b0b84[_0x264eae(0x3e3,0x415,_0x52bb4c._0x22e07d,0x4f9)],'signature':_0x3b0b84['signature']});continue;}if(_0x3b0b84[_0x29b2db(0x6e,_0x52bb4c._0xd33f68,_0x52bb4c._0x183ded,0x67)]==='redacted_thinking'){_0x49395a=!![];isUserVisibleThinking(_0x2660b8)&&_0x3e4135[_0x29b2db(0x1f,-_0x52bb4c._0x2dd3e4,-0x45,0x41)]({'type':_0x29b2db(-_0x52bb4c._0x184f8b,-_0x52bb4c._0xca0a0c,-0x14,-0x70),'data':_0x3b0b84[_0x264eae(_0x52bb4c._0x20169b,_0x52bb4c._0x2298d5,0x479,_0x52bb4c._0x48604b)]});continue;}if(_0x3b0b84['type']===_0x29b2db(_0x52bb4c._0x347aea,0x141,_0x52bb4c._0x779ed,_0x52bb4c._0x36009d)){_0x3b0b84[_0x29b2db(_0x52bb4c._0x409372,_0x52bb4c._0x45e641,0x93,0x110)][_0x264eae(_0x52bb4c._0x3c3947,0x41e,_0x52bb4c._0x57b529,_0x52bb4c._0x42d469)]>0x0&&_0x3e4135[_0x264eae(0x4bb,0x46e,_0x52bb4c._0x18fe89,0x52d)](structuredClone(_0x3b0b84));continue;}_0x3e4135[_0x264eae(_0x52bb4c._0x444cd6,_0x52bb4c._0x4e3c72,0x39b,0x4b0)](structuredClone(_0x3b0b84));}return{'id':_0x7e75fb['id']??_0x264eae(_0x52bb4c._0xc75f53,_0x52bb4c._0x141e83,0x428,0x49d)+Date[_0x29b2db(0x4e,-0xfa,-_0x52bb4c._0x61c0d2,-0x31)](),'content':_0x3e4135,'stopReason':_0x3e4135[_0x29b2db(_0x52bb4c._0x3303b6,_0x52bb4c._0x3aa4c5,0x13e,_0x52bb4c._0x38376e)](_0x42752d=>_0x42752d[_0x264eae(0x3db,0x494,0x463,0x4b2)]===_0x29b2db(-0x2e,-0x2b,0x119,0x53))?'tool_use':_0x7e75fb[_0x264eae(_0x52bb4c._0x24090c,_0x52bb4c._0x23cf77,_0x52bb4c._0x5058ea,0x50b)]===_0x29b2db(-_0x52bb4c._0x4c1f8c,_0x52bb4c._0x4cc5fb,-0x7d,0x53)?_0x264eae(_0x52bb4c._0x50bffd,0x480,_0x52bb4c._0x5a9a24,0x464):_0x264eae(0x47f,0x3ff,_0x52bb4c._0x78952e,0x36b),'usage':{'inputTokens':(_0x7e75fb['usage']?.['input_tokens']??0x0)+(_0x7e75fb['usage']?.['cache_read_input_tokens']??0x0)+(_0x7e75fb[_0x264eae(0x4c1,_0x52bb4c._0x346eb7,_0x52bb4c._0x51aa51,0x42d)]?.[_0x29b2db(_0x52bb4c._0x551537,0x103,0x52,0xea)]??0x0),'outputTokens':_0x7e75fb['usage']?.[_0x264eae(0x49a,_0x52bb4c._0x3ba214,0x4f0,_0x52bb4c._0x33506b)]??0x0,..._0x7e75fb[_0x29b2db(0x145,_0x52bb4c._0xbd7ef9,0xbc,_0x52bb4c._0x54bf26)]?.[_0x29b2db(-_0x52bb4c._0x200ada,0xe8,_0x52bb4c._0x559ff6,0x32)]?{'cacheReadInputTokens':_0x7e75fb[_0x264eae(0x3d6,0x4b6,_0x52bb4c._0x5e32df,_0x52bb4c._0x46bcab)][_0x264eae(0x391,0x45f,0x444,_0x52bb4c._0x2e44cd)]}:{},..._0x7e75fb[_0x29b2db(0xc5,0x107,_0x52bb4c._0x4188c1,_0x52bb4c._0x1ea5cd)]?.[_0x264eae(_0x52bb4c._0x505eec,0x517,0x44b,_0x52bb4c._0x37412c)]?{'cacheCreationInputTokens':_0x7e75fb[_0x264eae(0x435,0x4b6,0x486,_0x52bb4c._0x7f0c32)][_0x264eae(_0x52bb4c._0x3076bf,0x517,0x5f0,_0x52bb4c._0x2b8892)]}:{}},..._0x49395a?{'providerState':{'anthropicAssistantContent':structuredClone(_0x5a7c1c)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();['cacheCreationInputTokens']=0x0;['cacheReadInputTokens']=0x0;[_0x22e674(0x36a,0x3fe,0x397,0x321)]=0x0;[_0x532739(-0x28,-0xb4,-0x17a,-0x179)]=_0x22e674(0x264,0x364,0x35a,0x2f4)+Date[_0x22e674(0x27a,0x2a2,0x3a1,0x328)]();[_0x22e674(0x324,0x324,0x2d8,0x3a4)]=0x0;['request'];[_0x532739(-0x17b,-0xd3,-0xee,-0x17f)]=_0x22e674(0x37f,0x2d2,0x35e,0x32b);constructor(_0xc4af8a){const _0x447e7e={_0x4de7ae:0x469,_0x54f982:0x433,_0x3b09c7:0x529},_0x4603ca={_0x109462:0x5ba,_0xc90fe4:0x1ce};function _0x2939bf(_0x1d2106,_0x5f2f38,_0x407323,_0x3d111a){return _0x532739(_0x5f2f38,_0x1d2106-_0x4603ca._0x109462,_0x407323-0x137,_0x3d111a-_0x4603ca._0xc90fe4);}this[_0x2939bf(_0x447e7e._0x4de7ae,_0x447e7e._0x54f982,0x4ab,_0x447e7e._0x3b09c7)]=_0xc4af8a;}['consumeSseEvent'](_0xcde074){const _0x562af8={_0x515274:0x92,_0x94681:0x10f,_0x11e899:0xbf,_0x252bb2:0x14b,_0x2f0d42:0x3ad,_0x519000:0x420,_0x59d336:0x438,_0x171ef8:0x466,_0x29b540:0x11e,_0x2059a5:0x13a,_0x55f6e3:0x9c,_0x48b3f9:0x2e,_0x2698dc:0xb9,_0x5e023c:0x200,_0x276655:0x16f,_0x3cb593:0x502,_0x2db240:0x4b9,_0x11b3b5:0x429,_0x15c0e3:0x502,_0xdc135c:0x4f8,_0x19b49e:0x48a,_0x226d04:0x432,_0x265199:0x4a,_0x3ca16a:0x3f,_0x32aac9:0x2d,_0x5b57b8:0x13d,_0x3c2976:0xe8,_0x26a605:0x1d9,_0xb462aa:0xab,_0x16d007:0xcf,_0x6a72e9:0x179,_0x5d15ef:0x43f,_0x32fd05:0x399,_0x238773:0x468,_0x1710c8:0x442,_0x24b751:0x51a,_0x42b685:0x4bc,_0x5b8cd4:0x590,_0x1c3a40:0x566,_0x372173:0x567,_0xa7e3bc:0x496,_0xa43c8:0x4e1,_0x4108e7:0x423,_0x3b313c:0x82,_0x14c1b5:0x1e,_0x33a0f4:0x153,_0x9385c5:0x1bb,_0x4e5121:0x190,_0x2b40a7:0xa2,_0x29c3f2:0xd8,_0xa1e8d:0x13c,_0x4af3e0:0x3f9,_0x4ae652:0x3e2,_0x5ec98d:0x3a5,_0x4c9156:0x43b,_0xf293d6:0x149,_0x35cf73:0x1bf,_0x11db17:0x166,_0x57e357:0x155,_0x255307:0x4b8,_0x30ded0:0x42e,_0xd6c911:0x392,_0x134d37:0x3f5,_0x37f285:0x368,_0x22c65f:0x2e5,_0x2c0580:0x2e1,_0x3447ad:0x31e,_0xe95ac5:0x433,_0x2d4194:0x59,_0x2c3291:0xae,_0x5ae439:0x17,_0x3d283b:0x55f,_0x71aee0:0x3c8,_0x58e519:0x3f7,_0x34f97d:0x143,_0xb67a03:0x116,_0x38f6e5:0xc4,_0xf30c21:0xad,_0x24f172:0x416,_0x515480:0x426,_0x28ec43:0x198,_0x499e5d:0xc9,_0x1b1303:0x27f,_0x438dd5:0x122,_0x2c4800:0x1a2,_0x53c97d:0xd1,_0x3cbb20:0xbe,_0x43dc06:0x534,_0x57c524:0x4cc,_0x511594:0x4be,_0x12827a:0x40c,_0x44fd3b:0x19d,_0x38af23:0x1a4,_0x502d54:0x38a,_0x5c51f2:0x453,_0x45852c:0x51d,_0x3e9be8:0x5f3,_0x383f13:0x512,_0x2394bb:0x5f1,_0x440c96:0x11b,_0x4c59c2:0x71,_0x29cef7:0x52,_0x211386:0xc4,_0x170745:0xa,_0xfa7ae6:0x4c7,_0x8a8ac2:0x429,_0x4b4112:0x3fc,_0x8365e5:0x39b,_0x4f6753:0x477,_0x77cfd8:0x3d2,_0x14cbed:0x427,_0x282eba:0x1a7,_0x442e97:0x79,_0x4e0131:0x199,_0x19ddc8:0x474,_0x4118ff:0x482,_0x1457fb:0x4a3,_0x2a4a42:0x491,_0xcfb43f:0xc4,_0x2aef37:0x48a,_0x1b9a3e:0x4d7,_0x40fad1:0x48e,_0x41a5ed:0x52f,_0x255207:0x78,_0x6c387d:0x46,_0x1daacd:0x1b,_0x4e80c2:0x8a,_0x81f15e:0x52b,_0x26e4ab:0x45c,_0x4c62b1:0x35c,_0x3774fd:0x4fd,_0x545bcf:0x56d,_0x4c28e1:0x47a,_0x1963a3:0x3de,_0x53f155:0x426,_0x560daa:0x4a7,_0x267a51:0x4b6,_0x80b7a3:0x4ab,_0x15d451:0x52b,_0x522266:0x46b,_0x3cd096:0x22b,_0x41eb4c:0x18a,_0xa2b833:0xc4,_0x287a8c:0xd0,_0x3a9fb9:0xab,_0x5a729d:0x103,_0x2b10c6:0x10,_0x6bd1c7:0x429,_0x391e5d:0x344,_0x526fa8:0x40,_0x3187b9:0xf3,_0x190267:0x42f,_0x3daab0:0x4c2,_0x54d052:0x465,_0x3cc287:0x3a9,_0x5a1021:0x3f2,_0x5894f9:0xaf,_0x46cb35:0x6f,_0x594b8e:0x131,_0x53fd89:0xc4,_0x2c360a:0x78,_0x45d284:0x429,_0x57cfe7:0x394,_0x1ab42a:0xee,_0x400f4b:0x8f,_0x51b290:0x178,_0x22409b:0x3fe,_0x157824:0x334,_0x307710:0x440,_0x3dcb53:0x45,_0x435b86:0x87,_0x371aa6:0xcb,_0x437ab0:0x496,_0x4e576a:0x50a,_0x241163:0x185,_0x2417e6:0x3fb,_0x201457:0x388,_0xaf7269:0x425,_0x4f4fef:0x48c,_0xed498c:0x151,_0x40cadd:0x163,_0xb6706c:0x18,_0x58ea66:0xd0,_0x492931:0x14f,_0x5cbf95:0x468,_0x3775b0:0x47c,_0xb56e5:0x412,_0x1779a3:0x3e3,_0x160cc6:0x4bc,_0x2bdec6:0x4c6,_0x23fbca:0x192,_0x3bd3f6:0x458,_0x4cbf67:0x518,_0x2d5cca:0x440,_0x29b059:0x3ca,_0x591d11:0x3df,_0x219015:0x470,_0x28a288:0x187,_0x289fd5:0x100,_0x23522f:0x1dc,_0x1b4522:0xaa,_0x2e979c:0x547,_0x26b570:0x5cd},_0x32778d={_0x3163e9:0x122},_0x1bf248={_0x2b9126:0x4c,_0x31f32a:0x484},_0x134b72=_0xcde074[_0x3c7a89(-0xaa,-_0x562af8._0x515274,0x6,-_0x562af8._0x94681)]('\x0a'),_0x23e012=_0x134b72['find'](_0x5ac718=>_0x5ac718[_0x1428d9(0x420,0x419,0x3d9,0x3c5)]('event:'))?.['slice'](0x6)[_0x3c7a89(-0xc2,-0x18a,-0xf5,-0x112)](),_0x3e7fa4=_0x134b72[_0x3c7a89(-_0x562af8._0x11e899,-0xa8,0x17,-_0x562af8._0x252bb2)](_0x45a9fd=>_0x45a9fd[_0x3c7a89(-0x58,-0x118,-0x57,-0x1ef)](_0x3c7a89(-0xac,-0x4f,0x57,0x36)))['map'](_0x2b7b9e=>_0x2b7b9e['slice'](0x5)['trimStart']())[_0x1428d9(_0x562af8._0x2f0d42,_0x562af8._0x519000,_0x562af8._0x59d336,_0x562af8._0x171ef8)]('\x0a')[_0x3c7a89(-0x24f,-0x18a,-_0x562af8._0x29b540,-0xd2)]();if(_0x3e7fa4[_0x3c7a89(-0x143,-_0x562af8._0x2059a5,-0x64,-_0x562af8._0x55f6e3)]===0x0||_0x3e7fa4==='[DONE]')return[];function _0x3c7a89(_0x55bab8,_0x42f732,_0x5d2409,_0x2a7a3f){return _0x22e674(_0x55bab8-0x54,_0x42f732-_0x1bf248._0x2b9126,_0x5d2409,_0x42f732- -_0x1bf248._0x31f32a);}function _0x1428d9(_0x4f9400,_0x7afa7b,_0x32101e,_0x32598f){return _0x532739(_0x7afa7b,_0x4f9400-0x5b6,_0x32101e-_0x32778d._0x3163e9,_0x32598f-0x7e);}const _0x1b146b=JSON[_0x3c7a89(_0x562af8._0x48b3f9,-0x78,-_0x562af8._0x2698dc,-0xc6)](_0x3e7fa4);switch(_0x23e012){case'message_start':{const _0x2a267a=_0x1b146b[_0x3c7a89(-_0x562af8._0x5e023c,-_0x562af8._0x276655,-0x1a7,-0xa3)];this[_0x1428d9(0x502,_0x562af8._0x3cb593,_0x562af8._0x2db240,_0x562af8._0x11b3b5)]=_0x2a267a?.['id']??this[_0x1428d9(_0x562af8._0x15c0e3,_0x562af8._0xdc135c,_0x562af8._0x19b49e,_0x562af8._0x226d04)],this['inputTokens']=_0x2a267a?.[_0x3c7a89(-_0x562af8._0x265199,-0xa2,_0x562af8._0x3ca16a,-_0x562af8._0x32aac9)]?.[_0x3c7a89(-0x161,-_0x562af8._0x5b57b8,-0x104,-_0x562af8._0x3c2976)]??this[_0x3c7a89(-_0x562af8._0x26a605,-0x163,-_0x562af8._0xb462aa,-0x7f)],this[_0x3c7a89(-_0x562af8._0x16d007,-0xd0,-0x58,-_0x562af8._0x6a72e9)]=_0x2a267a?.['usage']?.[_0x1428d9(_0x562af8._0x5d15ef,0x4f5,_0x562af8._0x32fd05,0x521)]??this[_0x1428d9(_0x562af8._0x238773,_0x562af8._0x1710c8,0x482,_0x562af8._0x24b751)],this[_0x1428d9(_0x562af8._0x42b685,_0x562af8._0x5b8cd4,_0x562af8._0x1c3a40,_0x562af8._0x372173)]=_0x2a267a?.[_0x1428d9(_0x562af8._0xa7e3bc,_0x562af8._0xa43c8,0x47f,_0x562af8._0x4108e7)]?.[_0x3c7a89(_0x562af8._0x3b313c,-0x41,-0xae,_0x562af8._0x14c1b5)]??this['cacheCreationInputTokens'];break;}case _0x3c7a89(-0x229,-_0x562af8._0x33a0f4,-_0x562af8._0x9385c5,-_0x562af8._0x4e5121):{const _0x36a97c=typeof _0x1b146b[_0x3c7a89(0x53,-0x71,-0x152,-0x123)]===_0x3c7a89(-_0x562af8._0x2b40a7,-0x60,-_0x562af8._0x32aac9,-0x13)?_0x1b146b['index']:0x0,_0x473b26=_0x1b146b[_0x1428d9(0x3c7,0x47b,0x449,0x387)];if(_0x473b26?.['type']===_0x3c7a89(-0x2f,-_0x562af8._0x29c3f2,-0x1e,-0x11e)&&_0x473b26['id']&&_0x473b26['name'])return this['blocks'][_0x3c7a89(-_0x562af8._0xa1e8d,-0x105,-0x12d,-0xdb)](_0x36a97c,{'id':_0x473b26['id'],'index':_0x36a97c,'inputJson':JSON[_0x1428d9(_0x562af8._0x4af3e0,0x31c,0x4ae,_0x562af8._0x4ae652)](_0x473b26[_0x1428d9(_0x562af8._0x5ec98d,_0x562af8._0x4c9156,0x474,0x400)]??{}),'kind':'tool_use','name':_0x473b26[_0x3c7a89(-0x9f,-_0x562af8._0xf293d6,-_0x562af8._0x35cf73,-0x67)]}),[{'type':_0x3c7a89(-0x125,-_0x562af8._0x11db17,-0xa7,-_0x562af8._0x57e357),'id':_0x473b26['id'],'index':_0x36a97c,'name':_0x473b26[_0x1428d9(0x3ef,_0x562af8._0x255307,_0x562af8._0x30ded0,_0x562af8._0xd6c911)]}];if(_0x473b26?.['type']===_0x1428d9(_0x562af8._0x134d37,0x394,0x322,_0x562af8._0x37f285)){this[_0x1428d9(0x39b,_0x562af8._0x22c65f,_0x562af8._0x2c0580,_0x562af8._0x3447ad)][_0x1428d9(_0x562af8._0xe95ac5,_0x562af8._0x2f0d42,0x427,0x4a6)](_0x36a97c,{'index':_0x36a97c,'kind':'thinking','signature':typeof _0x473b26['signature']===_0x3c7a89(-_0x562af8._0x2d4194,-0xae,-0x79,-0x142)?_0x473b26['signature']:'','thinking':typeof _0x473b26['text']===_0x3c7a89(-0x190,-_0x562af8._0x2c3291,_0x562af8._0x5ae439,-0x7e)?_0x473b26[_0x1428d9(0x51d,_0x562af8._0x3d283b,0x475,0x436)]:typeof _0x473b26[_0x1428d9(0x3f5,_0x562af8._0x71aee0,0x39f,_0x562af8._0x58e519)]==='string'?String(_0x473b26[_0x3c7a89(-_0x562af8._0x16d007,-_0x562af8._0x34f97d,-0x20f,-0x178)]):''});break;}if(_0x473b26?.[_0x3c7a89(-_0x562af8._0xb67a03,-_0x562af8._0x38f6e5,-0x115,-_0x562af8._0xf30c21)]===_0x1428d9(_0x562af8._0x24f172,_0x562af8._0x515480,0x3a9,0x36e)){this[_0x3c7a89(-_0x562af8._0x28ec43,-0x19d,-_0x562af8._0x499e5d,-_0x562af8._0x1b1303)]['set'](_0x36a97c,{'index':_0x36a97c,'kind':_0x3c7a89(-0x1b8,-_0x562af8._0x438dd5,-0x1ee,-0x8d),'data':typeof _0x473b26[_0x3c7a89(-_0x562af8._0x2c4800,-_0x562af8._0x53c97d,-_0x562af8._0x3cbb20,-0x85)]===_0x1428d9(_0x562af8._0x19b49e,_0x562af8._0x43dc06,0x46c,_0x562af8._0x57c524)?String(_0x473b26[_0x1428d9(0x467,_0x562af8._0x511594,0x46c,_0x562af8._0x12827a)]):''});break;}this[_0x3c7a89(-0x20f,-_0x562af8._0x44fd3b,-_0x562af8._0x38af23,-0x14a)][_0x1428d9(0x433,_0x562af8._0x502d54,_0x562af8._0x5c51f2,0x502)](_0x36a97c,{'index':_0x36a97c,'kind':_0x1428d9(_0x562af8._0x45852c,0x4ae,0x4df,0x5b5),'text':_0x473b26?.[_0x1428d9(0x51d,_0x562af8._0x3e9be8,0x48f,0x5dc)]??''});break;}case _0x1428d9(_0x562af8._0x383f13,0x4e4,0x5c1,_0x562af8._0x2394bb):{const _0xec3d75=typeof _0x1b146b[_0x3c7a89(-_0x562af8._0x440c96,-_0x562af8._0x4c59c2,-0x158,_0x562af8._0x29cef7)]===_0x3c7a89(-_0x562af8._0x211386,-0x60,_0x562af8._0x170745,-0x2d)?_0x1b146b[_0x1428d9(_0x562af8._0xfa7ae6,_0x562af8._0x8a8ac2,_0x562af8._0x4b4112,0x53e)]:0x0,_0x5c89e5=this[_0x1428d9(_0x562af8._0x8365e5,_0x562af8._0x4f6753,0x332,0x2bb)][_0x1428d9(_0x562af8._0x5c51f2,_0x562af8._0x77cfd8,0x4bc,_0x562af8._0x14cbed)](_0xec3d75),_0x3caeed=_0x1b146b[_0x3c7a89(-_0x562af8._0x282eba,-0xcb,-_0x562af8._0x442e97,-_0x562af8._0x4e0131)];if(!_0x5c89e5||!_0x3caeed?.[_0x1428d9(_0x562af8._0x19ddc8,_0x562af8._0x4118ff,_0x562af8._0x1457fb,_0x562af8._0x2a4a42)])break;if(_0x3caeed[_0x3c7a89(-0x152,-_0x562af8._0xcfb43f,-0x125,-0x15b)]===_0x1428d9(0x4f0,0x517,0x461,0x458)&&_0x5c89e5[_0x1428d9(0x429,0x3a9,0x49e,0x39d)]==='text'&&typeof _0x3caeed['text']===_0x1428d9(_0x562af8._0x2aef37,_0x562af8._0x1b9a3e,0x548,_0x562af8._0x40fad1))return _0x5c89e5[_0x3c7a89(0x60,-0x1b,-0xf7,0x84)]+=_0x3caeed[_0x1428d9(0x51d,_0x562af8._0x3e9be8,0x59d,_0x562af8._0x41a5ed)],[{'type':_0x3c7a89(-0x61,-0x54,_0x562af8._0x255207,-0x7e),'index':_0xec3d75,'text':_0x3caeed[_0x3c7a89(-_0x562af8._0x6c387d,-_0x562af8._0x1daacd,_0x562af8._0x4e80c2,-0x79)]}];if(_0x3caeed[_0x1428d9(0x474,0x51b,_0x562af8._0x81f15e,0x426)]===_0x1428d9(0x434,0x3c3,0x4f0,_0x562af8._0x26e4ab)&&_0x5c89e5[_0x1428d9(0x429,_0x562af8._0x4c62b1,0x449,0x3e8)]==='tool_use'&&typeof _0x3caeed[_0x1428d9(_0x562af8._0x3774fd,_0x562af8._0x545bcf,0x53f,0x4a7)]==='string')return _0x5c89e5[_0x1428d9(0x4b6,0x4c0,0x417,_0x562af8._0x4c28e1)]==='{}'&&(_0x5c89e5[_0x1428d9(0x4b6,_0x562af8._0x1963a3,_0x562af8._0x53f155,_0x562af8._0x560daa)]=''),_0x5c89e5[_0x1428d9(_0x562af8._0x267a51,_0x562af8._0x80b7a3,_0x562af8._0x15d451,_0x562af8._0x522266)]+=_0x3caeed['partial_json'],[{'type':_0x3c7a89(-_0x562af8._0x3cd096,-0x166,-0x1e6,-_0x562af8._0x41eb4c),'id':_0x5c89e5['id'],'index':_0xec3d75,'inputDelta':_0x3caeed['partial_json']}];if(_0x3caeed[_0x3c7a89(-0xf4,-_0x562af8._0xa2b833,-_0x562af8._0x287a8c,-_0x562af8._0x3a9fb9)]===_0x3c7a89(-_0x562af8._0x5a729d,-0xa7,-_0x562af8._0x2b10c6,-0x2d)&&_0x5c89e5[_0x1428d9(_0x562af8._0x6bd1c7,0x348,_0x562af8._0x391e5d,0x453)]==='thinking'){const _0x3341e0=typeof _0x3caeed['thinking']===_0x3c7a89(-0x28,-_0x562af8._0x2c3291,-_0x562af8._0x526fa8,-_0x562af8._0x3187b9)?String(_0x3caeed[_0x1428d9(0x3f5,0x3f7,0x410,0x490)]):'';if(_0x3341e0[_0x1428d9(0x3fe,_0x562af8._0x190267,_0x562af8._0x3daab0,0x357)]>0x0){_0x5c89e5[_0x1428d9(0x3f5,0x324,0x313,0x4ae)]+=_0x3341e0;if(isUserVisibleThinking(this[_0x1428d9(_0x562af8._0x54d052,0x42e,_0x562af8._0x3cc287,_0x562af8._0x5a1021)]))return[{'type':_0x3c7a89(-0xdd,-_0x562af8._0x5894f9,-_0x562af8._0x46cb35,-_0x562af8._0x594b8e),'index':_0xec3d75,'thinking':_0x3341e0}];}}if(_0x3caeed[_0x3c7a89(-0x4c,-_0x562af8._0x53fd89,-_0x562af8._0x2c360a,-0x75)]==='signature_delta'&&_0x5c89e5[_0x1428d9(_0x562af8._0x45d284,_0x562af8._0x57cfe7,0x478,0x407)]===_0x3c7a89(-0x213,-0x143,-_0x562af8._0x1ab42a,-_0x562af8._0x400f4b)){const _0x8ddafc=typeof _0x3caeed['signature']===_0x3c7a89(-_0x562af8._0x51b290,-0xae,-0xcc,-0xf8)?String(_0x3caeed['signature']):'';if(_0x8ddafc[_0x1428d9(_0x562af8._0x22409b,0x3f1,_0x562af8._0x157824,_0x562af8._0x307710)]>0x0){_0x5c89e5['signature']=_0x8ddafc;if(isUserVisibleThinking(this['request']))return[{'type':_0x3c7a89(-_0x562af8._0x3dcb53,-_0x562af8._0x435b86,_0x562af8._0x5ae439,-0x1a),'index':_0xec3d75,'signature':_0x8ddafc}];}}break;}case _0x3c7a89(-0xdd,-0x18,0x6d,0xbb):{const _0x27730c=_0x1b146b[_0x3c7a89(-0xed,-_0x562af8._0x371aa6,-0xaf,-0x53)],_0x3d03c0=_0x1b146b[_0x1428d9(_0x562af8._0x437ab0,0x4d1,_0x562af8._0x4e576a,0x4db)];this[_0x3c7a89(-_0x562af8._0x440c96,-0x163,-0x203,-_0x562af8._0x241163)]=_0x3d03c0?.[_0x1428d9(_0x562af8._0x2417e6,_0x562af8._0x201457,_0x562af8._0xaf7269,_0x562af8._0x4f4fef)]??this[_0x3c7a89(-_0x562af8._0xed498c,-_0x562af8._0x40cadd,-0x17a,-0x236)],this[_0x3c7a89(-_0x562af8._0xb6706c,-_0x562af8._0x58ea66,-_0x562af8._0x492931,-0xef)]=_0x3d03c0?.[_0x1428d9(0x43f,0x4d0,0x4b2,0x42b)]??this[_0x1428d9(_0x562af8._0x5cbf95,_0x562af8._0x3775b0,_0x562af8._0xb56e5,_0x562af8._0x1779a3)],this['cacheCreationInputTokens']=_0x3d03c0?.['cache_creation_input_tokens']??this[_0x1428d9(_0x562af8._0x160cc6,0x40e,_0x562af8._0x2bdec6,0x503)],this['outputTokens']=_0x3d03c0?.[_0x3c7a89(-0x211,-0x139,-_0x562af8._0x23fbca,-0xcf)]??this[_0x1428d9(_0x562af8._0x3bd3f6,_0x562af8._0x4cbf67,0x4e7,0x4de)],this['stopReason']=_0x27730c?.['stop_reason']===_0x1428d9(0x460,0x540,_0x562af8._0x2d5cca,_0x562af8._0x29b059)?'tool_use':_0x1428d9(_0x562af8._0x591d11,0x304,_0x562af8._0x219015,0x310);break;}case _0x3c7a89(-0x1b5,-0x148,-0x89,-_0x562af8._0x28a288):{const _0xc292ce=_0x1b146b[_0x3c7a89(-_0x562af8._0x289fd5,-0x148,-_0x562af8._0x23522f,-_0x562af8._0x1b4522)];throw new ProviderStreamEventError(_0xc292ce?.['message']??_0x1428d9(_0x562af8._0x2e979c,0x5d4,0x524,_0x562af8._0x26b570),{'code':_0xc292ce?.['type'],'retryable':!![]});}}return[];}[_0x22e674(0x4a1,0x487,0x394,0x3ec)](){const _0x27de5d={_0x4d12b6:0x390,_0xe65a2f:0x6d6,_0x399c32:0x5ff,_0x4fdbdf:0x5d0,_0x521dc2:0x3df,_0x5a0a11:0x4be,_0x1b7c31:0x564,_0x336683:0x488,_0x482c91:0x4d3,_0x588335:0x543,_0x48f1fd:0x65c,_0x2d29ef:0x57f,_0x307260:0x6aa,_0xf7e4f6:0x38d,_0x406086:0x619,_0x32c7f4:0x5af,_0x221759:0x593,_0x5b4eab:0x624,_0xb9aaea:0x380,_0x14a17c:0x2c7,_0x55354c:0x434,_0x1d392e:0x48a,_0x173796:0x4eb,_0x1c0fc5:0x528,_0x824ad6:0x585,_0x5b92ef:0x530,_0x5e1c06:0x621,_0x50b194:0x638,_0x6c29d0:0x5ff,_0x2e4b84:0x54c,_0x5846dd:0x608,_0x5331f8:0x5fe,_0x159e1c:0x4c4,_0x191a71:0x3a5,_0x5277da:0x400,_0x2bf95c:0x46c,_0x1ca2ec:0x47d,_0x5aa4a6:0x44d,_0x1bdb6f:0x46c,_0x9c41ef:0x3e5,_0x867813:0x3ff,_0x4c996b:0x768,_0x220d7b:0x69d,_0x27fbe7:0x763,_0x44c76e:0x622,_0x412732:0x5f9,_0xd6aa6f:0x472,_0x4abc35:0x4b4},_0x3b2a02={_0x488292:0x770,_0x41251c:0xd9};function _0x90a8d8(_0x1d9f59,_0x8950ff,_0x4afa74,_0x4e6bdf){return _0x532739(_0x4afa74,_0x8950ff-_0x3b2a02._0x488292,_0x4afa74-0x11,_0x4e6bdf-_0x3b2a02._0x41251c);}const _0x5457fa=Array[_0x362334(0x3ce,_0x27de5d._0x4d12b6,0x36e,0x360)](this['blocks'][_0x90a8d8(_0x27de5d._0xe65a2f,_0x27de5d._0x399c32,_0x27de5d._0x4fdbdf,0x555)]())['sort']((_0x5e5eea,_0x1fa6e0)=>_0x5e5eea[_0x362334(0x3a6,0x40a,0x47d,0x3c4)]-_0x1fa6e0[_0x362334(0x564,0x50b,0x47d,0x54c)]),_0x359f54=[];function _0x362334(_0x4cb7e3,_0x30d602,_0x325ee8,_0x523d70){return _0x22e674(_0x4cb7e3-0x11b,_0x30d602-0xcf,_0x523d70,_0x325ee8-0x6a);}for(const _0xe8eb5c of _0x5457fa){if(_0xe8eb5c[_0x362334(0x3f2,0x349,_0x27de5d._0x521dc2,_0x27de5d._0x5a0a11)]==='text'){_0xe8eb5c[_0x362334(_0x27de5d._0x1b7c31,_0x27de5d._0x336683,_0x27de5d._0x482c91,0x563)][_0x90a8d8(0x54a,0x5b8,_0x27de5d._0x588335,_0x27de5d._0x48f1fd)]>0x0&&_0x359f54[_0x90a8d8(_0x27de5d._0x2d29ef,0x608,_0x27de5d._0x307260,0x55c)]({'type':'text','text':_0xe8eb5c['text']});continue;}if(_0xe8eb5c[_0x362334(0x34c,0x3f8,0x3df,_0x27de5d._0xf7e4f6)]===_0x90a8d8(_0x27de5d._0x406086,_0x27de5d._0x32c7f4,_0x27de5d._0x221759,_0x27de5d._0x5b4eab)){_0x359f54['push']({'type':_0x362334(_0x27de5d._0xb9aaea,_0x27de5d._0x14a17c,0x3ab,0x48e),'thinking':_0xe8eb5c['thinking'],'signature':_0xe8eb5c[_0x362334(_0x27de5d._0x55354c,_0x27de5d._0x1d392e,_0x27de5d._0x173796,0x55d)]});continue;}if(_0xe8eb5c[_0x362334(0x309,0x389,0x3df,0x351)]===_0x362334(0x38c,0x454,0x3cc,0x48d)){_0x359f54[_0x90a8d8(0x533,0x608,_0x27de5d._0x1c0fc5,_0x27de5d._0x824ad6)]({'type':_0x90a8d8(_0x27de5d._0x5b92ef,0x5d0,0x577,0x6a9),'data':_0xe8eb5c[_0x90a8d8(0x6bd,_0x27de5d._0x5e1c06,_0x27de5d._0x50b194,_0x27de5d._0x6c29d0)]});continue;}_0x359f54[_0x90a8d8(_0x27de5d._0x2e4b84,_0x27de5d._0x5846dd,0x53f,_0x27de5d._0x5331f8)]({'type':_0x362334(_0x27de5d._0x159e1c,0x3c4,0x416,0x36f),'id':_0xe8eb5c['id'],'name':_0xe8eb5c[_0x362334(0x2d0,0x46e,_0x27de5d._0x191a71,0x2eb)],'input':parseToolInput(_0xe8eb5c[_0x362334(_0x27de5d._0x5277da,0x46e,_0x27de5d._0x2bf95c,_0x27de5d._0x1ca2ec)]['length']>0x0?_0xe8eb5c[_0x362334(_0x27de5d._0x5aa4a6,0x3af,_0x27de5d._0x1bdb6f,_0x27de5d._0x9c41ef)]:'{}')});}return parseAnthropicResponse({'id':this[_0x362334(0x45f,0x50b,0x4b8,0x4f8)],'type':_0x362334(0x38e,_0x27de5d._0x867813,0x37f,0x3fe),'role':'assistant','content':_0x359f54,'stop_reason':this[_0x90a8d8(_0x27de5d._0x4c996b,_0x27de5d._0x220d7b,0x739,_0x27de5d._0x27fbe7)],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0x90a8d8(0x595,0x612,0x65d,0x6b9)],'cache_read_input_tokens':this[_0x90a8d8(0x659,_0x27de5d._0x44c76e,_0x27de5d._0x412732,0x57f)],'cache_creation_input_tokens':this[_0x362334(0x4da,0x3a6,_0x27de5d._0xd6aa6f,_0x27de5d._0x4abc35)]}},this['request']);}};function createAnthropicSurfaces(){const _0x5a710a={_0x42a9df:0x2d5,_0xf193d1:0x2c6,_0x21138c:0x210,_0x77610b:0xb3,_0x99b1ce:0x3b,_0xd2b79b:0x1b6},_0x4102b2={_0x19d604:0x1b4,_0x133703:0x138},_0x2d84dc={_0x1cbe72:0x174};function _0x59a978(_0x31d912,_0x4c7abe,_0x4c2b87,_0x48c2ac){return _0x22e674(_0x31d912-_0x2d84dc._0x1cbe72,_0x4c7abe-0xd3,_0x31d912,_0x4c2b87- -0x48b);}function _0x3c3a53(_0x397451,_0x12928a,_0x271934,_0x3588ac){return _0x22e674(_0x397451-_0x4102b2._0x19d604,_0x12928a-_0x4102b2._0x133703,_0x397451,_0x271934- -0x8a);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x3c3a53(0x315,_0x5a710a._0x42a9df,_0x5a710a._0xf193d1,_0x5a710a._0x21138c),'createRequest'(_0x2cdce1){return createAnthropicRequest(_0x2cdce1,![]);},'parseResponse'(_0x5585ce,_0x465d34){return parseAnthropicResponse(_0x5585ce,_0x465d34);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x59a978(-_0x5a710a._0x77610b,-_0x5a710a._0x99b1ce,-0x119,-_0x5a710a._0xd2b79b),'createRequest'(_0x34102e){return createAnthropicRequest(_0x34102e,!![]);},'createStreamParser'(_0x223666){return new AnthropicMessagesStreamParser(_0x223666);}}];}var StaticModelSurfaceRouter=class{[_0x22e674(0x41e,0x412,0x4c3,0x480)];[_0x22e674(0x425,0x356,0x34a,0x415)];constructor(_0x1888ce){const _0x3fc3bc={_0x141225:0x65b,_0x35a507:0x69b,_0x1848af:0x2fc,_0x1a1fef:0x2c6},_0x907721={_0x3873bf:0x434,_0x20bf79:0x12c,_0x14afc9:0x187},_0x49c819={_0x501fcd:0x6d};this[_0x26b4da(_0x3fc3bc._0x141225,_0x3fc3bc._0x35a507,0x5af,0x634)]=_0x1888ce[_0x254395(0x36e,_0x3fc3bc._0x1848af,_0x3fc3bc._0x1a1fef,0x39c)];function _0x26b4da(_0x4ae8d2,_0x193ff0,_0x5ce32a,_0x4d0533){return _0x22e674(_0x4ae8d2-_0x49c819._0x501fcd,_0x193ff0-0x6b,_0x4d0533,_0x4ae8d2-0x1db);}function _0x254395(_0x4fb51f,_0xc8a6e6,_0x34dfec,_0x5f23b6){return _0x532739(_0x34dfec,_0xc8a6e6-_0x907721._0x3873bf,_0x34dfec-_0x907721._0x20bf79,_0x5f23b6-_0x907721._0x14afc9);}this['streamSurface']=_0x1888ce['stream'];}[_0x532739(-0x18d,-0x17d,-0x1c5,-0x1f8)](_0x26f860,_0x536d0d){const _0x4592e6={_0x2dda18:0x3a5,_0x153bf0:0x447,_0x56573d:0x41d,_0x36c58d:0x4b2,_0x461bd6:0x43b,_0x4a12d9:0x3e9,_0x3e125e:0x49e,_0x42847a:0x3d3,_0x1de441:0x4e8},_0x10ec03={_0x9d3714:0x1ac,_0x54903e:0x1f3},_0x115c81={_0x476484:0x4b};function _0x121cc0(_0x420241,_0x51ed9e,_0x5d5308,_0x2e7d83){return _0x532739(_0x420241,_0x51ed9e-0x1a4,_0x5d5308-_0x115c81._0x476484,_0x2e7d83-0xa1);}function _0x5317fb(_0x560e5d,_0x14a9df,_0x268fe0,_0x19382c){return _0x532739(_0x268fe0,_0x560e5d-0x58b,_0x268fe0-_0x10ec03._0x9d3714,_0x19382c-_0x10ec03._0x54903e);}return _0x536d0d[_0x5317fb(_0x4592e6._0x2dda18,_0x4592e6._0x153bf0,0x352,_0x4592e6._0x56573d)]===_0x5317fb(_0x4592e6._0x36c58d,_0x4592e6._0x461bd6,0x53e,_0x4592e6._0x4a12d9)?this[_0x5317fb(_0x4592e6._0x3e125e,_0x4592e6._0x42847a,0x527,_0x4592e6._0x1de441)]:this['completeSurface'];}};function trimTrailingSlashes(_0x48b641){const _0x34f226={_0x12b8dc:0xec,_0x335486:0x9e},_0x456d2a={_0xb81f36:0x1a0,_0x1ca81d:0x412};function _0x223ec7(_0x5e1eef,_0x252db7,_0x288e3c,_0x5c5e01){return _0x22e674(_0x5e1eef-0xca,_0x252db7-_0x456d2a._0xb81f36,_0x5c5e01,_0x252db7- -_0x456d2a._0x1ca81d);}return _0x48b641[_0x223ec7(-_0x34f226._0x12b8dc,-0x9,_0x34f226._0x335486,0x9f)](/\/+$/,'');}function resolveApiCredential(_0x1e9afd,_0x35c3ca){const _0x51c09f={_0x405120:0x131,_0x2103fb:0xcb,_0x32d8a3:0x103,_0x1b269d:0x18a},_0x213c8a={_0x2e2977:0x217,_0x808361:0x171},_0x4ea42f={_0x31222f:0x19b,_0xe4de6d:0x1b4};function _0x12afd0(_0x441d0b,_0x2fbbc3,_0x4813d0,_0x1789d1){return _0x22e674(_0x441d0b-_0x4ea42f._0x31222f,_0x2fbbc3-0x1a7,_0x4813d0,_0x441d0b-_0x4ea42f._0xe4de6d);}if(_0x35c3ca?.['credential'])return _0x35c3ca[_0x5ade70(_0x51c09f._0x405120,0xd6,_0x51c09f._0x2103fb,0x125)];if(!_0x1e9afd)return void 0x0;function _0x5ade70(_0x576d84,_0xdc93b,_0x103bab,_0x1337ac){return _0x532739(_0x1337ac,_0xdc93b-_0x213c8a._0x2e2977,_0x103bab-0x9f,_0x1337ac-_0x213c8a._0x808361);}return{'kind':_0x5ade70(0x13d,_0x51c09f._0x32d8a3,_0x51c09f._0x1b269d,0x7d),'value':_0x1e9afd};}function resolveSessionBaseUrl(_0x24a4c6,_0x59be46){const _0x378781={_0x4ab435:0x464};function _0x10b271(_0xdf414f,_0x5194f7,_0x3e9270,_0x19b646){return _0x22e674(_0xdf414f-0x1d1,_0x5194f7-0xfc,_0x3e9270,_0x5194f7-0x15b);}return trimTrailingSlashes(_0x59be46?.[_0x10b271(0x415,_0x378781._0x4ab435,0x533,0x4c7)]?.['api']??_0x24a4c6);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':_0x22e674(0x3d0,0x3bb,0x42b,0x35d),'cliDefaultModel':_0x22e674(0x514,0x551,0x4c0,0x476),'providers':{'anthropic':{'label':_0x22e674(0x46d,0x4fc,0x4c7,0x46b),'baseUrl':_0x22e674(0x411,0x383,0x3ae,0x437),'surface':_0x22e674(0x400,0x505,0x47c,0x47f),'authScheme':_0x532739(-0x120,-0xea,-0x81,-0x32),'defaultModel':_0x22e674(0x476,0x568,0x4cf,0x4a0),'defaultModels':['claude-sonnet-4-20250514',_0x22e674(0x39c,0x46e,0x46c,0x3c4)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x532739(-0x62,-0x78,-0x156,-0x12),'baseUrl':'https://api.z.ai/api/coding/paas/v4','anthropicBaseUrl':_0x22e674(0x324,0x42b,0x3ae,0x3cc),'surface':_0x22e674(0x4ba,0x4d8,0x4d4,0x47f),'authScheme':_0x22e674(0x403,0x42d,0x2e9,0x3a7),'defaultModel':_0x532739(-0x156,-0x8c,-0x5c,-0x8b),'defaultModels':[_0x532739(-0x1e0,-0x122,-0x140,-0xe1),_0x532739(-0x11d,-0x8c,-0x45,-0xba),_0x532739(-0x92,-0x174,-0x1b4,-0x1c1),'glm-4.5'],'supportsModelFetch':![],'models':{'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':_0x22e674(0x478,0x420,0x379,0x3de),'baseUrl':_0x532739(-0x166,-0x1ce,-0xfc,-0x1bc),'surface':_0x532739(-0x12a,-0x1b1,-0x12e,-0x1fc),'authScheme':_0x532739(-0x22e,-0x15b,-0x169,-0xd8),'defaultModel':_0x22e674(0x32b,0x306,0x3b6,0x396),'defaultModels':[_0x22e674(0x3d6,0x421,0x454,0x396),'openai/gpt-4o-mini'],'supportsModelFetch':!![],'models':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}}},'github':{'label':'GitHub\x20Models\x20/\x20Copilot','surface':'openai-responses','defaultModel':'gpt-5.2-codex','defaultModels':['claude-sonnet-4.5',_0x22e674(0x399,0x40a,0x42b,0x423),_0x532739(0x6,-0xc4,-0x1a2,-0xfa),_0x22e674(0x3af,0x499,0x467,0x3d4),_0x532739(-0x23b,-0x1c3,-0x17a,-0x1f4),'claude-sonnet-4'],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x532739(-0x7,-0x83,0x62,-0xa7)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x532739(-0x10f,-0x83,0x20,-0xdf)},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}}},'openai':{'label':_0x532739(-0x199,-0x204,-0x126,-0x150),'baseUrl':_0x22e674(0x587,0x3d3,0x463,0x4ac),'surface':'openai-chat-completions','authScheme':_0x22e674(0x339,0x3e3,0x399,0x3a7),'defaultModel':_0x22e674(0x2ab,0x300,0x372,0x35d),'defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x22e674(0x3e8,0x44e,0x3bd,0x412),'baseUrl':_0x532739(-0x14e,-0x1e0,-0x255,-0x12a),'surface':'anthropic-messages','authScheme':'bearer','defaultModel':_0x532739(-0x1b0,-0x19b,-0x168,-0x18e),'defaultModels':['deepseek-v4-pro',_0x22e674(0x47b,0x4e3,0x3b3,0x43a)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':'MiniMax','baseUrl':'https://api.minimax.io/anthropic','surface':'anthropic-messages','authScheme':_0x532739(-0x13c,-0x15b,-0x76,-0x193),'defaultModel':_0x22e674(0x3d7,0x345,0x2af,0x2fd),'defaultModels':[_0x22e674(0x361,0x2b4,0x289,0x2fd)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':'CommandCode','baseUrl':_0x22e674(0x393,0x2cc,0x2dc,0x369),'modelsBaseUrl':_0x22e674(0x3e3,0x4ac,0x45b,0x456),'surface':_0x22e674(0x415,0x46a,0x3eb,0x47f),'authScheme':'x-api-key','defaultModel':_0x532739(0x5a,-0x62,0x59,0x1f),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x532739(-0x23d,-0x1f1,-0x1b6,-0x190),'baseUrl':_0x22e674(0x524,0x4b5,0x536,0x4a9),'modelsBaseUrl':_0x532739(-0x13e,-0x8d,-0x171,-0x8b),'surface':_0x22e674(0x3a0,0x3f6,0x551,0x47f),'authScheme':_0x532739(-0x1a,-0xea,-0x9a,-0x188),'defaultModel':'mimo-v2.5-pro','defaultModels':[],'supportsModelFetch':!![],'models':{}}}},data=model_registry_default;function findProviderKey(_0x3aab37){const _0x56f960={_0x43cc94:0x9c,_0x597b31:0x6e,_0x29ff34:0x2a5,_0x1f336c:0x2f5,_0x4911ad:0x102,_0x35e2ff:0x82,_0x1031b2:0x10a,_0x1d329a:0x1b},_0x4031a5={_0x54fd55:0x146,_0x3edc5d:0x3d},_0x17fabb={_0x15aa13:0x213,_0x2f7b64:0x1f1},_0x3c930f=_0x3aab37[_0x5311c7(-0x1e,-_0x56f960._0x43cc94,-_0x56f960._0x597b31,0x16)]();function _0x5311c7(_0x2d2cdb,_0x1599b0,_0xfa1ef3,_0x1f9874){return _0x532739(_0x2d2cdb,_0x1f9874-_0x17fabb._0x15aa13,_0xfa1ef3-_0x17fabb._0x2f7b64,_0x1f9874-0xc3);}function _0x2b8d72(_0x56f65f,_0x2cc2c4,_0x4ebe1f,_0x42d28b){return _0x22e674(_0x56f65f-_0x4031a5._0x54fd55,_0x2cc2c4-_0x4031a5._0x3edc5d,_0x42d28b,_0x2cc2c4- -0x93);}return Object[_0x2b8d72(_0x56f960._0x29ff34,_0x56f960._0x1f336c,0x2c7,_0x56f960._0x29ff34)](data[_0x5311c7(_0x56f960._0x4911ad,0x87,_0x56f960._0x35e2ff,_0x56f960._0x1031b2)])[_0x5311c7(_0x56f960._0x1d329a,0x10,0x7b,0x55)](_0x2a4cb5=>_0x2a4cb5['toLowerCase']()===_0x3c930f);}function getProviderProfile(_0x2636db){const _0x4faa09={_0x85323e:0x2ca,_0x523fc9:0x280,_0xcb7141:0x2d8,_0x3f066e:0x2fe,_0x1a0205:0x2f1,_0x5ae47e:0x318,_0x14d700:0x3e8,_0x5a6da5:0x363,_0x20791c:0x44a,_0x553975:0x319,_0x32857e:0x2ae,_0x4ac4b1:0x2e1,_0x501f8c:0x2b4,_0x2a423f:0x3d0,_0x791874:0x2f3,_0x192dae:0x289,_0x37f316:0x2e6,_0x4ce97b:0x2de,_0x222852:0x30c},_0x8f0620={_0x3685b8:0x120},_0x5ec40a={_0x4a8412:0x477,_0x29835f:0x10e},_0x457cb2=findProviderKey(_0x2636db);if(!_0x457cb2)return void 0x0;const _0x235d8e=data['providers'][_0x457cb2],_0x2ad09a={};function _0x2d8777(_0x32dd85,_0x3824cc,_0x16ed38,_0x2c727b){return _0x532739(_0x32dd85,_0x16ed38-_0x5ec40a._0x4a8412,_0x16ed38-_0x5ec40a._0x29835f,_0x2c727b-0x7d);}for(const [_0x2c52bb,_0x53464b]of Object['entries'](_0x235d8e[_0x3fa9f0(0x29b,_0x4faa09._0x85323e,_0x4faa09._0x523fc9,_0x4faa09._0xcb7141)])){_0x2ad09a[_0x2c52bb]=_0x53464b;}function _0x3fa9f0(_0x1dc239,_0x268fd0,_0x270804,_0x3aec1a){return _0x532739(_0x3aec1a,_0x270804-0x45d,_0x270804-_0x8f0620._0x3685b8,_0x3aec1a-0x4a);}return{'label':_0x235d8e[_0x2d8777(0x21f,0x305,_0x4faa09._0x3f066e,_0x4faa09._0x1a0205)],'baseUrl':_0x235d8e[_0x3fa9f0(_0x4faa09._0x5ae47e,0x3b7,_0x4faa09._0x14d700,_0x4faa09._0x5a6da5)],'modelsBaseUrl':_0x235d8e[_0x2d8777(0x31e,_0x4faa09._0x20791c,0x403,0x3c1)],'anthropicBaseUrl':_0x235d8e[_0x3fa9f0(_0x4faa09._0x553975,_0x4faa09._0x32857e,_0x4faa09._0x4ac4b1,_0x4faa09._0x501f8c)],'surface':_0x235d8e['surface'],'authScheme':_0x235d8e[_0x2d8777(0x3aa,0x3ea,0x37f,_0x4faa09._0x2a423f)],'defaultModel':_0x235d8e[_0x2d8777(0x228,0x31b,_0x4faa09._0x791874,0x25d)],'defaultModels':_0x235d8e[_0x2d8777(0x223,_0x4faa09._0x192dae,0x283,_0x4faa09._0x37f316)]??[],'supportsModelFetch':_0x235d8e[_0x2d8777(0x3bb,_0x4faa09._0x4ce97b,_0x4faa09._0x222852,0x398)]??![],'models':_0x2ad09a};}function getModelProfile(_0x20e514,_0x33bf4c){const _0x5e68d7={_0x5778dd:0x18a,_0x479cdb:0x212,_0x2b569a:0x23f,_0x54511d:0x301,_0x312a68:0x3d3,_0x383016:0x34d},_0x6d2f1c={_0x58cbb9:0x24},_0x12c1f0={_0x3f9f21:0x305,_0xc5c403:0x114};function _0x3b68e4(_0x224d45,_0x5790c5,_0x19de90,_0x1195b0){return _0x532739(_0x5790c5,_0x224d45-_0x12c1f0._0x3f9f21,_0x19de90-0x3e,_0x1195b0-_0x12c1f0._0xc5c403);}const _0x533d44=findProviderKey(_0x20e514);function _0x112f43(_0x14306d,_0x111c4e,_0x335731,_0x133ed3){return _0x22e674(_0x14306d-0xe2,_0x111c4e-0x14f,_0x335731,_0x14306d- -_0x6d2f1c._0x58cbb9);}if(!_0x533d44)return void 0x0;return data[_0x3b68e4(0x1fc,_0x5e68d7._0x5778dd,_0x5e68d7._0x479cdb,_0x5e68d7._0x2b569a)][_0x533d44][_0x112f43(_0x5e68d7._0x54511d,_0x5e68d7._0x312a68,_0x5e68d7._0x383016,0x22f)][_0x33bf4c];}function resolveModelProfile(_0x205c72,_0x5ccc61){const _0x29b6ea={_0x5cc278:0x1e,_0x272884:0xbf,_0x43dcd7:0xab,_0x3aa5ca:0xfe,_0x2fa9f1:0x165,_0x414204:0x99,_0x4ae0c3:0x140,_0x173b93:0x97,_0x232e37:0x9,_0x24487c:0x97,_0x5c9c56:0xa5,_0xa0e417:0x77,_0x2c08e7:0x3a,_0x394063:0x17c,_0x532f37:0xc8,_0x4386d7:0x9e,_0x43e589:0x62,_0x1140ed:0x11,_0x6f9523:0xc,_0x21cbfd:0x6c,_0x4f7ea4:0x41,_0x407b32:0xbc,_0x5f50a0:0x2},_0xe1dd16={_0x451d20:0x2b,_0x4135ac:0x2e,_0x2a49f8:0x34e},_0x5c26e5={_0x59ebab:0x173},_0x29735a=findProviderKey(_0x205c72);if(!_0x29735a)return void 0x0;function _0x2a213b(_0x49d0d5,_0xbf2b3e,_0x1c8c2a,_0x43b4c9){return _0x532739(_0xbf2b3e,_0x1c8c2a-_0x5c26e5._0x59ebab,_0x1c8c2a-0xe,_0x43b4c9-0x10a);}function _0x34893b(_0x3bbc57,_0x2d19d3,_0x4df00c,_0x1707c3){return _0x22e674(_0x3bbc57-_0xe1dd16._0x451d20,_0x2d19d3-_0xe1dd16._0x4135ac,_0x3bbc57,_0x1707c3- -_0xe1dd16._0x2a49f8);}const _0x7862f2=data[_0x34893b(0xf,-_0x29b6ea._0x5cc278,_0x29b6ea._0x272884,_0x29b6ea._0x43dcd7)][_0x29735a],_0x14203b=_0x7862f2['models'][_0x5ccc61];return{'label':_0x7862f2['label'],'baseUrl':_0x7862f2[_0x2a213b(0x1a1,0xac,_0x29b6ea._0x3aa5ca,0x1bd)],'modelsBaseUrl':_0x7862f2[_0x34893b(_0x29b6ea._0x2fa9f1,0xc5,_0x29b6ea._0x414204,_0x29b6ea._0x4ae0c3)],'anthropicBaseUrl':_0x7862f2[_0x2a213b(-0x9d,-_0x29b6ea._0x173b93,-_0x29b6ea._0x232e37,_0x29b6ea._0x24487c)],'surface':_0x14203b?.[_0x34893b(_0x29b6ea._0x5c9c56,_0x29b6ea._0xa0e417,_0x29b6ea._0x2c08e7,0xa6)]??_0x7862f2[_0x34893b(0x180,0xbe,0x108,0xa6)],'authScheme':_0x7862f2[_0x34893b(_0x29b6ea._0x394063,_0x29b6ea._0x532f37,_0x29b6ea._0x4386d7,0xbc)],'defaultModel':_0x7862f2[_0x2a213b(-_0x29b6ea._0x43e589,0xc2,-_0x29b6ea._0x1140ed,-_0x29b6ea._0x6f9523)],'defaultModels':_0x7862f2[_0x2a213b(-0x118,-_0x29b6ea._0x21cbfd,-0x81,-0x159)],'supportsModelFetch':_0x7862f2[_0x34893b(0x73,-0x3,_0x29b6ea._0x4f7ea4,0x49)],'contextWindow':_0x14203b?.[_0x34893b(_0x29b6ea._0x407b32,0xfe,0xfe,0x111)],'maxOutput':_0x14203b?.[_0x2a213b(0x54,0xd2,0x54,_0x29b6ea._0x5f50a0)]};}function getDefaultMaxTokens(){const _0x5bfa8a={_0x187a97:0x187,_0x586072:0x2c1},_0x93204={_0x11ff17:0x41f,_0x19a6ce:0x72};function _0x31b2cf(_0x8aa6a9,_0x3d60ad,_0x455f17,_0x579cee){return _0x532739(_0x8aa6a9,_0x455f17-_0x93204._0x11ff17,_0x455f17-_0x93204._0x19a6ce,_0x579cee-0x18);}return data[_0x31b2cf(_0x5bfa8a._0x187a97,_0x5bfa8a._0x586072,0x25f,0x334)];}function getDefaultModel(){const _0xf10053={_0x2f2acd:0x1b0,_0x4291f7:0x205,_0x23939c:0x141},_0x4a9f9d={_0x5cacb2:0x43};function _0x32d23b(_0x30dfad,_0x54e56f,_0x59016b,_0x59b43b){return _0x532739(_0x54e56f,_0x59b43b-_0x4a9f9d._0x5cacb2,_0x59016b-0x166,_0x59b43b-0x3f);}return data[_0x32d23b(-_0xf10053._0x2f2acd,-0x15a,-_0xf10053._0x4291f7,-_0xf10053._0x23939c)];}function getCliDefaultModel(){const _0x443a8b={_0x549707:0xe3,_0x256fa3:0x220},_0x2f6d8f={_0x2dd87f:0xed};function _0x1c86e2(_0x292b74,_0x19ec8e,_0x1f9449,_0x299a15){return _0x532739(_0x19ec8e,_0x292b74- -0x48,_0x1f9449-0x129,_0x299a15-_0x2f6d8f._0x2dd87f);}return data[_0x1c86e2(-0x162,-_0x443a8b._0x549707,-0xdf,-_0x443a8b._0x256fa3)];}function getProviderLabel(_0x565e78){const _0x4451ad={_0x4c2caa:0x5ae,_0xa10bc7:0x695,_0x4de604:0x647},_0x5135be={_0x59f7c2:0x225},_0x2f9cf3={_0x535a3a:0xcb};function _0x4c3950(_0x1d64da,_0x45ef8d,_0x46989d,_0x1bd9a9){return _0x22e674(_0x1d64da-_0x2f9cf3._0x535a3a,_0x45ef8d-0x152,_0x1bd9a9,_0x45ef8d- -0x4e9);}const _0x17e654=findProviderKey(_0x565e78);function _0x278bc4(_0x37f4f2,_0x5ae5e2,_0x3c6721,_0x4d6f88){return _0x22e674(_0x37f4f2-0x32,_0x5ae5e2-0x1a2,_0x4d6f88,_0x5ae5e2-_0x5135be._0x59f7c2);}return _0x17e654?data[_0x4c3950(-0x1d0,-0xf0,-0xda,-0x5e)][_0x17e654][_0x278bc4(0x538,_0x4451ad._0x4c2caa,_0x4451ad._0xa10bc7,_0x4451ad._0x4de604)]:void 0x0;}function _0x22e674(_0x1781bc,_0x9a846f,_0x31358b,_0x4bb2aa){const _0x580ccf={_0x209e6d:0x164};return _0x17ab(_0x4bb2aa-_0x580ccf._0x209e6d,_0x31358b);}function getProviderDefaultModel(_0x44389c){const _0x3e118d={_0x554664:0x463,_0x28696c:0x522,_0x52efb6:0x498,_0xa9fa08:0x542},_0x1e0c2d={_0x21da80:0x5};function _0x2cf7b2(_0x3a3ae6,_0x4ba04f,_0x159ed4,_0x58233d){return _0x532739(_0x58233d,_0x4ba04f-0x62b,_0x159ed4-_0x1e0c2d._0x21da80,_0x58233d-0x120);}const _0x112407=findProviderKey(_0x44389c);function _0x5e52ba(_0x358a35,_0x28d0bf,_0x145e68,_0x2fd8b4){return _0x532739(_0x358a35,_0x2fd8b4-0x73f,_0x145e68-0x18f,_0x2fd8b4-0x53);}if(!_0x112407)return void 0x0;return data[_0x2cf7b2(_0x3e118d._0x554664,_0x3e118d._0x28696c,0x535,_0x3e118d._0x52efb6)][_0x112407][_0x2cf7b2(0x4b8,0x4a7,_0x3e118d._0xa9fa08,0x3e8)];}function getProviderDefaultModels(_0x240039){const _0x32e926={_0x1e000f:0x2f7,_0x34bada:0x417},_0x296af0={_0x17e0e:0x196},_0x57196f=findProviderKey(_0x240039);if(!_0x57196f)return[];function _0x1916bc(_0x12bdd4,_0x15a50a,_0x16a79f,_0x58a4fb){return _0x22e674(_0x12bdd4-0x1ec,_0x15a50a-_0x296af0._0x17e0e,_0x58a4fb,_0x15a50a- -0xbb);}return[...data[_0x1916bc(0x33b,0x33e,_0x32e926._0x1e000f,_0x32e926._0x34bada)][_0x57196f]['defaultModels']??[]];}function providerSupportsModelFetch(_0x20d616){const _0x858c9c={_0x11ba4a:0x597,_0x5810ea:0x498},_0x136587={_0x427a47:0x110,_0x3fb7a1:0x67},_0x2c4d4c={_0x3c6218:0x129,_0x5d116d:0x19e};function _0x179a8e(_0x2b4c16,_0x5b9a73,_0x28e249,_0x4fcbbf){return _0x22e674(_0x2b4c16-0x106,_0x5b9a73-_0x2c4d4c._0x3c6218,_0x28e249,_0x5b9a73-_0x2c4d4c._0x5d116d);}const _0x27d3a1=findProviderKey(_0x20d616);if(!_0x27d3a1)return![];function _0x835ce8(_0x2822e5,_0x3b7128,_0x423f81,_0x5206c2){return _0x22e674(_0x2822e5-_0x136587._0x427a47,_0x3b7128-0x115,_0x5206c2,_0x3b7128- -_0x136587._0x3fb7a1);}return data[_0x179a8e(0x632,_0x858c9c._0x11ba4a,0x65f,0x4d5)][_0x27d3a1][_0x179a8e(0x584,0x535,0x55c,_0x858c9c._0x5810ea)]??![];}function getOnboardingProviderKeys(){const _0x109ed2={_0x4822ed:0x214,_0x3b2f6c:0x1d4},_0x2a5f30={_0x1bd18f:0x183},_0x545d06={_0x3b759a:0xba,_0x17f3ca:0x11d,_0x1e76ac:0x181};function _0x62d2e3(_0x3c7b6b,_0x1eaeaa,_0x35425a,_0x101d76){return _0x22e674(_0x3c7b6b-_0x545d06._0x3b759a,_0x1eaeaa-_0x545d06._0x17f3ca,_0x3c7b6b,_0x35425a- -_0x545d06._0x1e76ac);}function _0x58c1cc(_0x4e280c,_0x4cad45,_0x275481,_0x4fa116){return _0x532739(_0x4fa116,_0x275481-0x1f4,_0x275481-0x43,_0x4fa116-_0x2a5f30._0x1bd18f);}return Object[_0x62d2e3(_0x109ed2._0x4822ed,0x293,0x207,_0x109ed2._0x3b2f6c)](data[_0x62d2e3(0x19e,0x1b8,0x278,0x2e9)]);}function toErrorMessage(_0x1404ac){const _0x3bbadc={_0x5d442e:0x19a,_0x49875f:0x2f4},_0x416b3e={_0x1b3a04:0x527},_0x48f6be={_0x1c50e8:0x1a1,_0x3c79c8:0xde};if(_0x1404ac instanceof Error&&_0x1404ac['message']['length']>0x0)return _0x1404ac[_0x4b567a(0x249,0x1c2,0x237,_0x3bbadc._0x5d442e)];function _0x4b567a(_0x3a15f2,_0x40ec0d,_0xf8db61,_0x181fe9){return _0x22e674(_0x3a15f2-0x126,_0x40ec0d-_0x48f6be._0x1c50e8,_0x181fe9,_0xf8db61- -_0x48f6be._0x3c79c8);}function _0x1eb4a4(_0x40076b,_0x34d3fd,_0xf0739e,_0x46dc7b){return _0x532739(_0x34d3fd,_0x46dc7b-_0x416b3e._0x1b3a04,_0xf0739e-0xf8,_0x46dc7b-0x152);}return _0x1eb4a4(_0x3bbadc._0x49875f,0x243,0x3ea,0x328);}function createDefaultWebSocketFactory(){const _0x3b7b83={_0x5a80ac:0x538};return({headers:_0x376d9e,url:_0x224356})=>{const _0x2c240f=globalThis[_0x29189c(0x5fc,0x506,0x469,_0x3b7b83._0x5a80ac)];function _0x29189c(_0x5dc917,_0x3c482c,_0x1e1762,_0x1bae07){return _0x17ab(_0x1bae07-0x3a7,_0x5dc917);}return new _0x2c240f(_0x224356,{'headers':_0x376d9e,'protocols':[]});};}async function*iterateSseEvents(_0x20f2b1,_0x8cf802){const _0x12e1c3={_0x3d46d7:0x29c,_0x16b9fa:0x3f7,_0x3610aa:0x2c0,_0x25a2ef:0x1b0,_0x5f3624:0x20f,_0x299dbf:0x342,_0xeaff71:0x1e5,_0x13b6a8:0x13a,_0x20e6c1:0x201,_0x2b7379:0x1fe,_0x360db7:0x2ac,_0x516b42:0x267,_0x3f8a61:0x2c2,_0x297f86:0x263,_0x478719:0x1fc,_0x372df5:0x247,_0x2bf765:0x68,_0x202a8a:0xda,_0x1ab393:0xb5,_0x26d179:0x6e},_0x3cd812={_0x5f51a4:0x3b6,_0x112702:0x131},_0x104500={_0x83889b:0x549,_0x400c72:0x4c9,_0x544786:0x624,_0x47b113:0x6bf,_0x4b552d:0x67e,_0x544f95:0x721},_0x3f083b=_0x20f2b1['body']?.[_0x58b984(_0x12e1c3._0x3d46d7,_0x12e1c3._0x16b9fa,_0x12e1c3._0x3610aa,0x310)]();if(!_0x3f083b)return;const _0x340592=new TextDecoder(_0x552551(0x1a5,_0x12e1c3._0x25a2ef,_0x12e1c3._0x5f3624,0x157));let _0x50e6cb='';function _0x552551(_0x4d28ab,_0x11ddb5,_0x1683f5,_0x5bccec){return _0x532739(_0x11ddb5,_0x5bccec-0x226,_0x1683f5-0x137,_0x5bccec-0x181);}const _0x38642e=addAbortListener(_0x8cf802,()=>{const _0x809576={_0x54faee:0xec};function _0x166124(_0xf9aecd,_0x38bba5,_0x57bd93,_0x37778e){return _0x58b984(_0xf9aecd-0x29,_0x38bba5-0x125,_0x57bd93,_0xf9aecd-0x9c);}function _0x16ef1c(_0x305674,_0xc1f15b,_0x569a63,_0x558c0f){return _0x552551(_0x305674-_0x809576._0x54faee,_0x305674,_0x569a63-0x3,_0xc1f15b-0x532);}void _0x3f083b[_0x16ef1c(0x518,_0x104500._0x83889b,_0x104500._0x400c72,_0x104500._0x544786)](toAbortError(_0x8cf802?.[_0x16ef1c(_0x104500._0x47b113,_0x104500._0x4b552d,0x5c7,_0x104500._0x544f95)]))['catch'](()=>{});});function _0x58b984(_0x1f9ba3,_0x447c7a,_0x18ccc4,_0x454abd){return _0x532739(_0x18ccc4,_0x454abd-_0x3cd812._0x5f51a4,_0x18ccc4-_0x3cd812._0x112702,_0x454abd-0x57);}try{while(!![]){throwIfAborted(_0x8cf802);const {value:_0x58367e,done:_0x21737f}=await _0x3f083b['read']();throwIfAborted(_0x8cf802);if(_0x21737f)break;_0x50e6cb+=_0x340592['decode'](_0x58367e,{'stream':!![]});while(!![]){const _0x4c474f=_0x50e6cb['indexOf']('\x0a\x0a');if(_0x4c474f===-0x1)break;const _0x4ede32=_0x50e6cb[_0x58b984(0x394,_0x12e1c3._0x299dbf,0x2c7,0x346)](0x0,_0x4c474f);_0x50e6cb=_0x50e6cb['slice'](_0x4c474f+0x2),_0x4ede32['trim']()[_0x58b984(_0x12e1c3._0xeaff71,_0x12e1c3._0x13b6a8,_0x12e1c3._0x20e6c1,_0x12e1c3._0x2b7379)]>0x0&&(yield _0x4ede32);}}_0x50e6cb+=_0x340592[_0x58b984(_0x12e1c3._0x360db7,_0x12e1c3._0x516b42,_0x12e1c3._0x3f8a61,_0x12e1c3._0x297f86)](),throwIfAborted(_0x8cf802),_0x50e6cb[_0x58b984(0x1ac,_0x12e1c3._0x478719,_0x12e1c3._0x372df5,0x1ae)]()[_0x552551(-_0x12e1c3._0x2bf765,_0x12e1c3._0x202a8a,_0x12e1c3._0x1ab393,_0x12e1c3._0x26d179)]>0x0&&(yield _0x50e6cb);}finally{_0x38642e();}}async function waitForWebSocketOpen(_0x1cf48f,_0x3ff378){const _0xb2af07={_0x154038:0x29e,_0x4d5a12:0x23c,_0x3d22c7:0x30c},_0x258e75={_0x19c988:0xd2,_0x2de96a:0xc3,_0x1206bc:0x7a,_0xf37c63:0x25,_0x5d196b:0xe4,_0x5b60d4:0x86,_0x1023b9:0xd5,_0x1d0302:0xd2,_0x1923c9:0x84,_0x21fbf1:0xe0,_0x56a7ee:0x122,_0x3e9c11:0x7e,_0xf37d6e:0x136,_0x675564:0x5,_0x2e023c:0x13a},_0xfaae01={_0x2a18c4:0x3c7,_0x43a460:0x92},_0x249b57={_0x11ef34:0x45b,_0xd87674:0x4ce,_0x5ed1fb:0x4ae,_0x4c32f8:0x516,_0x38b735:0x43e,_0x3515bd:0x520,_0x2eb03e:0x449,_0x4f72d6:0x3ff,_0x28e227:0x31f,_0x164488:0x515,_0x53a77d:0x498,_0x88c749:0x457,_0xed9815:0x53c},_0x490bc0={_0x435474:0x191,_0x44e9ad:0x391,_0x4fcd46:0x386,_0x35b850:0x2b3,_0x1995f4:0x427,_0x24e782:0x3db,_0x38af02:0x4bf,_0x5df7e9:0x1b0,_0xf089a4:0x23e},_0x31f1a4={_0x6fe94f:0x538,_0x573eb1:0xd6,_0x46e4c9:0x0,_0x13e9ee:0x57,_0x51973f:0x6e},_0x3deb11={_0x47a0ea:0x25e,_0x68479:0x23},_0x436c77={_0x193aa8:0x46b,_0x39d451:0xd9};if(_0x1cf48f[_0x5b88ab(_0xb2af07._0x154038,_0xb2af07._0x4d5a12,0x313,_0xb2af07._0x3d22c7)]===WebSocket['OPEN']){throwIfAborted(_0x3ff378);return;}function _0x5b88ab(_0xa38e9a,_0xa6274f,_0xa198c3,_0x57792f){return _0x532739(_0x57792f,_0xa38e9a-_0x436c77._0x193aa8,_0xa198c3-_0x436c77._0x39d451,_0x57792f-0x7d);}throwIfAborted(_0x3ff378),await new Promise((_0x5f48c2,_0x46baff)=>{const _0x3f8840={_0xe7e207:0x182},_0x25856d={_0x4ad43d:0x45,_0xf460b4:0x66,_0x101833:0x6,_0x30ca56:0x18e,_0x330ef1:0x173,_0x378778:0x1c0},_0xc35bd4={_0x30164a:0x1f6},_0x61f084=()=>{_0x28b0fb(),_0x5f48c2();},_0x7f29b8=_0xc1c3dc=>{function _0xe0e349(_0x34d18f,_0x3e18e1,_0x4b87f6,_0x4fb95f){return _0x17ab(_0x4b87f6- -0x2ab,_0x3e18e1);}function _0x3ab62f(_0x2725f5,_0x5bdbaf,_0x117d13,_0x58e501){return _0x17ab(_0x2725f5- -_0xc35bd4._0x30164a,_0x5bdbaf);}_0x28b0fb(),_0x46baff(new Error(_0xc1c3dc[_0x3ab62f(-_0x25856d._0x4ad43d,_0x25856d._0xf460b4,-0xc0,_0x25856d._0x101833)]||_0xe0e349(-_0x25856d._0x30ca56,-_0x25856d._0x330ef1,-0x10c,-_0x25856d._0x378778)));};function _0x377360(_0x3f5392,_0x2ca972,_0x5b4722,_0x5c12e2){return _0x5b88ab(_0x5c12e2- -_0x3deb11._0x47a0ea,_0x2ca972-0x1f,_0x5b4722-_0x3deb11._0x68479,_0x3f5392);}const _0xaf5583=_0x460f93=>{function _0x169e4(_0x5140f2,_0x3cf36c,_0x3733c6,_0x92df38){return _0x17ab(_0x92df38- -_0x3f8840._0xe7e207,_0x3cf36c);}_0x28b0fb();const _0x421e3c=_0x460f93;function _0x2fa09c(_0x4e7ba0,_0x51adb7,_0x26a2a0,_0x14bfb5){return _0x17ab(_0x14bfb5-0x2d9,_0x26a2a0);}_0x46baff(new Error(_0x421e3c[_0x2fa09c(_0x31f1a4._0x6fe94f,0x5aa,0x4bf,0x59d)]||_0x169e4(_0x31f1a4._0x573eb1,_0x31f1a4._0x46e4c9,-_0x31f1a4._0x13e9ee,_0x31f1a4._0x51973f)));},_0xb5785f=()=>{const _0x3ca6a8={_0x172cf6:0x86};function _0x2db958(_0x579f1f,_0xe96255,_0x5b61b9,_0x51d1e0){return _0x17ab(_0x51d1e0- -_0x3ca6a8._0x172cf6,_0xe96255);}_0x28b0fb();_0x1cf48f[_0x2db958(_0x490bc0._0x435474,0x13f,0x217,0x14b)]===WebSocket[_0x2db958(_0x490bc0._0x44e9ad,_0x490bc0._0x4fcd46,0x354,_0x490bc0._0x35b850)]&&_0x1cf48f[_0x353a80(0x37f,_0x490bc0._0x1995f4,_0x490bc0._0x24e782,0x4b7)](0x3e8,_0x353a80(0x41a,0x4fd,0x5b0,_0x490bc0._0x38af02));function _0x353a80(_0xd3bccf,_0x146f2d,_0x3e5330,_0xdea98){return _0x17ab(_0x146f2d-0x212,_0xdea98);}_0x46baff(toAbortError(_0x3ff378?.[_0x2db958(0x2e1,_0x490bc0._0x5df7e9,0x183,_0x490bc0._0xf089a4)]));},_0x28b0fb=()=>{const _0x47f21a={_0x18e734:0x227};_0x1cf48f[_0x491db5(_0x249b57._0x11ef34,_0x249b57._0xd87674,0x56f,_0x249b57._0x5ed1fb)](_0x491db5(_0x249b57._0x4c32f8,_0x249b57._0x38b735,_0x249b57._0x3515bd,_0x249b57._0x2eb03e),_0x61f084);function _0x491db5(_0x44e9eb,_0x28a9fa,_0x23b386,_0x5a56ff){return _0x17ab(_0x28a9fa-_0x47f21a._0x18e734,_0x23b386);}_0x1cf48f[_0x491db5(0x56a,_0x249b57._0xd87674,0x481,0x5b2)](_0x491db5(0x333,_0x249b57._0x4f72d6,_0x249b57._0x4f72d6,_0x249b57._0x28e227),_0x7f29b8);function _0x5d7163(_0xacfead,_0x201f6c,_0x273b74,_0x22a03e){return _0x17ab(_0x22a03e-0x34c,_0x201f6c);}_0x1cf48f['removeEventListener'](_0x491db5(0x3a3,0x43c,_0x249b57._0x164488,0x3c9),_0xaf5583),_0x3ff378?.['removeEventListener'](_0x491db5(_0x249b57._0x53a77d,_0x249b57._0x88c749,0x3b1,_0x249b57._0xed9815),_0xb5785f);};function _0x381ff7(_0x340349,_0x51bbbe,_0x3c9771,_0x2ef7f1){return _0x5b88ab(_0x51bbbe- -_0xfaae01._0x2a18c4,_0x51bbbe-_0xfaae01._0x43a460,_0x3c9771-0x155,_0x340349);}_0x1cf48f[_0x381ff7(-0x115,-_0x258e75._0x19c988,-_0x258e75._0x2de96a,-_0x258e75._0x1206bc)](_0x377360(-_0x258e75._0xf37c63,0x17,_0x258e75._0x5d196b,_0x258e75._0x5b60d4),_0x61f084),_0x1cf48f[_0x381ff7(-_0x258e75._0x1023b9,-_0x258e75._0x1d0302,-_0x258e75._0x1923c9,-_0x258e75._0x21fbf1)](_0x381ff7(-0x166,-_0x258e75._0x56a7ee,-_0x258e75._0x3e9c11,-_0x258e75._0xf37d6e),_0x7f29b8),_0x1cf48f[_0x381ff7(-_0x258e75._0x675564,-0xd2,-_0x258e75._0x2e023c,-0x125)]('close',_0xaf5583),_0x3ff378?.['addEventListener'](_0x377360(0x142,0x28,0x11b,0x9f),_0xb5785f,{'once':!![]});});}function iterateWebSocketMessages(_0x683ef,_0x47db66){const _0x464360={_0x11ed9c:0xe1,_0x5d6c41:0x7f,_0x562fc1:0x72,_0x428f6b:0xcf,_0x470036:0x4b,_0x1f5f99:0x4f9,_0x325f3e:0x511,_0xc6e215:0x55d,_0x546157:0x4b9,_0x157954:0x4c2,_0x2d3923:0x4c0,_0x21db48:0x47e},_0x4b915c={_0x16d3ec:0x284,_0x2e1d2e:0x32c,_0x5ef0ff:0x3e1,_0xd35a37:0x319,_0x216e89:0x3bd,_0x15d994:0xe6,_0xae109e:0xc1,_0x46435e:0xf6,_0x1683e6:0x19c,_0x2a55e1:0x3d9,_0x6afdc8:0x433,_0x18d74d:0x37d,_0x5b0c6c:0x3db,_0x5405e5:0x3da},_0x40c359={_0x5d95ec:0x4d},_0x5be269={_0x494c07:0x3dc,_0x18bd82:0x152},_0x397a81={_0x5bfc4e:0x288,_0xe4a6b8:0x30d,_0x143130:0x57},_0x571fe0={_0x2da4c3:0x16e},_0x4c03c1={_0x4f9c23:0x24e,_0x5c081a:0x261,_0x5e7b62:0x25e,_0x134506:0x41b,_0x1f4f2f:0x369,_0x20a2d5:0x38b},_0x36baea={_0x21afcf:0x18c},_0x701ea9={_0x2ee6fd:0x4fe,_0x41c970:0x465,_0x4c9619:0x4ec,_0x3ba3c8:0x581},_0x422559={_0x2cb878:0x34d},_0x5422b4={_0x2c7626:0x335,_0x2f0cfb:0x2e5,_0x3eb7d4:0x40},_0xc29ddc=[];let _0x5b721c=![],_0x26c6a0,_0x1c9ef6;const _0x507256=_0x5b8f89=>{const _0x1e7dd7={_0x33c253:0x134};function _0x378154(_0x3105c0,_0x43ffd3,_0x37c55f,_0x467f0c){return _0x17ab(_0x467f0c-0xaf,_0x3105c0);}function _0x48b901(_0x215fbc,_0x159c0a,_0x1d50a7,_0x2974bb){return _0x17ab(_0x2974bb- -_0x1e7dd7._0x33c253,_0x215fbc);}const _0x269f3c=_0x5b8f89;try{_0xc29ddc[_0x378154(_0x5422b4._0x2c7626,0x300,0x2ce,_0x5422b4._0x2f0cfb)](JSON['parse'](String(_0x269f3c[_0x48b901(0xf6,_0x5422b4._0x3eb7d4,0x158,0x11b)]))),_0x1c9ef6?.(),_0x1c9ef6=void 0x0;}catch(_0x1597b5){_0x26c6a0=new Error('Invalid\x20WebSocket\x20message:\x20'+toErrorMessage(_0x1597b5)),_0x1c9ef6?.(),_0x1c9ef6=void 0x0;}},_0x1699ba=_0x23b32f=>{const _0x16272b={_0x3115ba:0x390},_0xcc00f6=_0x23b32f;function _0x47acd0(_0x4df0b6,_0x5379f6,_0x40915a,_0x1b16e6){return _0x17ab(_0x4df0b6-_0x422559._0x2cb878,_0x1b16e6);}_0x26c6a0=new Error(_0xcc00f6[_0x47acd0(_0x701ea9._0x2ee6fd,0x4e3,_0x701ea9._0x41c970,0x55a)]||_0x47acd0(_0x701ea9._0x4c9619,_0x701ea9._0x3ba3c8,0x44d,0x450));function _0xfdc08d(_0x2bd735,_0x1b2cd1,_0x2f0cd7,_0x355e45){return _0x17ab(_0x1b2cd1-_0x16272b._0x3115ba,_0x2f0cd7);}_0x1c9ef6?.(),_0x1c9ef6=void 0x0;},_0x48c825=_0xb02f65=>{const _0x15c7d2=_0xb02f65;!_0x5b721c&&_0x15c7d2[_0x62f85a(_0x4c03c1._0x4f9c23,_0x4c03c1._0x5c081a,_0x4c03c1._0x5e7b62,0x1c1)]!==0x3e8&&!_0x26c6a0&&(_0x26c6a0=new Error(_0x15c7d2[_0x3f59b7(_0x4c03c1._0x134506,0x49b,_0x4c03c1._0x1f4f2f,0x450)]||_0x62f85a(0x28d,0x358,_0x4c03c1._0x20a2d5,0x424)+_0x15c7d2[_0x62f85a(0x2fe,_0x4c03c1._0x5c081a,0x226,0x1c2)]));_0x5b721c=!![],_0x1c9ef6?.();function _0x3f59b7(_0x42f3e9,_0x207fec,_0x4e7851,_0x1aa003){return _0x17ab(_0x1aa003-_0x36baea._0x21afcf,_0x4e7851);}function _0x62f85a(_0xad00cc,_0x4d4ca7,_0x4f1fb4,_0x160833){return _0x17ab(_0x4d4ca7-0x9f,_0x160833);}_0x1c9ef6=void 0x0;};function _0x2e6eba(_0x413b0d,_0x442a15,_0x1527f5,_0x4a5ab0){return _0x532739(_0x1527f5,_0x413b0d-0x66f,_0x1527f5-0x4,_0x4a5ab0-0x1d);}function _0x11b510(_0xf0f4fd,_0x5a7816,_0x480472,_0x20ca04){return _0x532739(_0x5a7816,_0x20ca04-_0x571fe0._0x2da4c3,_0x480472-0x73,_0x20ca04-0x17a);}const _0x3f1858=addAbortListener(_0x47db66,()=>{_0x26c6a0=toAbortError(_0x47db66?.['reason']);_0x683ef[_0x543359(0x3b5,_0x397a81._0x5bfc4e,0x223,0x2e0)]===WebSocket['OPEN']&&_0x683ef[_0x543359(0x357,0x2ee,_0x397a81._0xe4a6b8,0x324)](0x3e8,_0x3c0e26(-0x2,-_0x397a81._0x143130,-0x39,0x0));function _0x543359(_0x5062a9,_0x33c730,_0x58d13d,_0xf258f){return _0x17ab(_0xf258f-0x10f,_0x58d13d);}function _0x3c0e26(_0x3048f0,_0x5ac29d,_0x574259,_0x620968){return _0x17ab(_0x5ac29d- -0x342,_0x574259);}_0x1c9ef6?.(),_0x1c9ef6=void 0x0;});return _0x683ef['addEventListener'](_0x11b510(0x4,-_0x464360._0x11ed9c,-0xa6,-_0x464360._0x5d6c41),_0x507256),_0x683ef[_0x11b510(-0x6d,_0x464360._0x562fc1,-0x5f,-0x8)](_0x11b510(-_0x464360._0x428f6b,-_0x464360._0x470036,-0xfb,-0x58),_0x1699ba),_0x683ef[_0x2e6eba(_0x464360._0x1f5f99,0x4f1,0x584,0x469)](_0x2e6eba(0x4e6,_0x464360._0x325f3e,_0x464360._0xc6e215,_0x464360._0x546157),_0x48c825),{async*[Symbol[_0x2e6eba(_0x464360._0x157954,0x515,_0x464360._0x2d3923,_0x464360._0x21db48)]](){function _0x8f71ea(_0x3b5ab1,_0x17a86a,_0x22e8b7,_0x39f080){return _0x2e6eba(_0x39f080- -_0x5be269._0x494c07,_0x17a86a-0xb6,_0x3b5ab1,_0x39f080-_0x5be269._0x18bd82);}function _0x3ac07e(_0x20db81,_0x4c2104,_0x4fd83f,_0xa2611f){return _0x11b510(_0x20db81-0x1a4,_0x20db81,_0x4fd83f-_0x40c359._0x5d95ec,_0x4c2104-0x398);}try{while(!![]){if(_0x26c6a0)throw _0x26c6a0;if(_0xc29ddc[_0x3ac07e(_0x4b915c._0x16d3ec,0x34e,_0x4b915c._0x2e1d2e,0x2e3)]>0x0){yield _0xc29ddc[_0x3ac07e(_0x4b915c._0x5ef0ff,0x49c,0x42a,0x3e8)]();continue;}if(_0x5b721c)break;await new Promise(_0x705a9d=>{_0x1c9ef6=_0x705a9d;});}}finally{_0x683ef['removeEventListener'](_0x3ac07e(0x2dd,_0x4b915c._0xd35a37,_0x4b915c._0x216e89,0x336),_0x507256),_0x683ef[_0x8f71ea(_0x4b915c._0x15d994,_0x4b915c._0xae109e,_0x4b915c._0x46435e,_0x4b915c._0x1683e6)]('error',_0x1699ba),_0x683ef[_0x3ac07e(_0x4b915c._0x2a55e1,0x40f,0x359,_0x4b915c._0x6afdc8)](_0x3ac07e(0x2c5,_0x4b915c._0x18d74d,_0x4b915c._0x5b0c6c,_0x4b915c._0x5405e5),_0x48c825),_0x3f1858();}}};}function toWebSocketUrl(_0x338596,_0x32c68c){const _0x532203={_0x20dc1a:0x29b,_0x2563b2:0x27c,_0x1e49c9:0x337,_0x253bb0:0x32b,_0x2d425d:0x3cd,_0x2df3a7:0x38d,_0xef5a93:0x316,_0x286ce6:0x3b2,_0x5f0478:0x3f8,_0x21cb50:0x2a4,_0x55a265:0x3df,_0x328028:0x372,_0x1dd142:0x4dc,_0x4f10ce:0x487},_0x521090={_0x3ad12c:0x53,_0x5f5129:0xd6},_0x34fba8={_0x825edb:0x4eb,_0xd66bf9:0x1dc};function _0x38c356(_0x40894c,_0x8c50a7,_0x4a7bd6,_0x667ab){return _0x532739(_0x4a7bd6,_0x667ab-_0x34fba8._0x825edb,_0x4a7bd6-0x51,_0x667ab-_0x34fba8._0xd66bf9);}const _0x4863b8=new URL(_0x32c68c,_0x338596);function _0x377db1(_0x5c7a6d,_0x43e6d0,_0x1eba45,_0xcf2a0){return _0x532739(_0x43e6d0,_0x1eba45-0x5a2,_0x1eba45-_0x521090._0x3ad12c,_0xcf2a0-_0x521090._0x5f5129);}return _0x4863b8[_0x38c356(0x3dd,_0x532203._0x20dc1a,_0x532203._0x2563b2,_0x532203._0x1e49c9)]=_0x4863b8['protocol']===_0x38c356(0x490,0x321,_0x532203._0x253bb0,_0x532203._0x2d425d)?_0x38c356(_0x532203._0x2df3a7,_0x532203._0xef5a93,_0x532203._0x286ce6,_0x532203._0x5f0478):_0x38c356(_0x532203._0x21cb50,_0x532203._0x55a265,_0x532203._0x328028,0x36a),_0x4863b8[_0x38c356(0x545,0x477,_0x532203._0x1dd142,_0x532203._0x4f10ce)]();}var ProviderSessionManager=class{['resolver'];[_0x22e674(0x349,0x32f,0x37f,0x395)];constructor(_0x22ade3){const _0x23d2bb={_0xd3cfa:0x38f,_0x2c714d:0x423,_0x4c1f5d:0x36e,_0x51c91e:0x40b},_0x5b08a7={_0x25edb6:0x50b};function _0xaf4b70(_0xc5f76e,_0x23ca48,_0x52ed00,_0x5ebc06){return _0x532739(_0x52ed00,_0x23ca48-_0x5b08a7._0x25edb6,_0x52ed00-0x12c,_0x5ebc06-0x1c0);}this[_0xaf4b70(_0x23d2bb._0xd3cfa,_0x23d2bb._0x2c714d,_0x23d2bb._0x4c1f5d,_0x23d2bb._0x51c91e)]=_0x22ade3;}async[_0x532739(-0x13b,-0xfc,-0x166,-0x3a)](_0x58b76b){const _0x5ee7ea={_0x558808:0x412,_0x5e977b:0x34a,_0x2c4feb:0x307,_0x1140b4:0x284,_0x2f8b21:0x3c0,_0x357c68:0x2ea},_0x2ce0e7={_0x12776a:0x11d,_0x498ac9:0xaf},_0x4321fa={_0x17ad4d:0x1ae,_0x277e7b:0xef},_0xb6a062={_0x4f8389:0x70,_0x34d83d:0x1f4,_0x56e74b:0x8},_0x3f713e={_0x491f26:0x3a5};function _0x7ca2d3(_0x25bb11,_0x47bfbe,_0x5dae40,_0x1629a5){return _0x532739(_0x47bfbe,_0x5dae40-_0x3f713e._0x491f26,_0x5dae40-0x35,_0x1629a5-0x7f);}function _0x5e8eda(_0x24cab2,_0x1cb399,_0x14e3bb,_0x322ced){return _0x22e674(_0x24cab2-_0xb6a062._0x4f8389,_0x1cb399-_0xb6a062._0x34d83d,_0x322ced,_0x24cab2- -_0xb6a062._0x56e74b);}if(!this['cached']){const _0x8f304e=this[_0x5e8eda(_0x5ee7ea._0x558808,_0x5ee7ea._0x5e977b,0x3a3,0x496)]['resolve'](_0x58b76b);_0x8f304e[_0x5e8eda(_0x5ee7ea._0x2c4feb,0x3b0,0x348,_0x5ee7ea._0x1140b4)](()=>{function _0x39b213(_0x510127,_0x519437,_0x1bfa72,_0x402781){return _0x5e8eda(_0x1bfa72- -0x4aa,_0x519437-_0x4321fa._0x17ad4d,_0x1bfa72-_0x4321fa._0x277e7b,_0x510127);}this['cached']===_0x8f304e&&(this[_0x39b213(-0x184,-0x12c,-_0x2ce0e7._0x12776a,-_0x2ce0e7._0x498ac9)]=void 0x0);}),this[_0x5e8eda(0x38d,_0x5ee7ea._0x2f8b21,0x348,0x3aa)]=_0x8f304e;}return structuredClone(await this[_0x5e8eda(0x38d,0x2b6,0x2b7,_0x5ee7ea._0x357c68)]);}[_0x532739(-0xef,-0x113,-0x70,-0x1e9)](){const _0x393c6a={_0x14d2a9:0x285,_0x1406fe:0x32a,_0x544832:0x3bc,_0x10f70c:0x3d4};function _0x36b83b(_0x5ad786,_0x56a6a6,_0x1113a9,_0x5a0c48){return _0x22e674(_0x5ad786-0x11f,_0x56a6a6-0x164,_0x1113a9,_0x56a6a6- -0x6b);}this[_0x36b83b(_0x393c6a._0x14d2a9,_0x393c6a._0x1406fe,_0x393c6a._0x544832,_0x393c6a._0x10f70c)]=void 0x0;}};async function prepareProviderRequest(_0x1587d1,_0x41f73b={}){const _0x462eb9={_0x4164ef:0x489,_0x37d074:0x51c,_0x4c6b08:0x536,_0x920a24:0x16d,_0x479861:0x189,_0x4e82dd:0x176,_0x5c637f:0x28b,_0x1b7080:0x1c2,_0x24869d:0x73,_0x200fc9:0xcf,_0x2cd699:0x80,_0x10956f:0xa1},_0x18596f={_0x3c7d51:0x2ad};function _0x518456(_0xd32710,_0x45c906,_0x93dae0,_0x365869){return _0x532739(_0x93dae0,_0x45c906-_0x18596f._0x3c7d51,_0x93dae0-0x159,_0x365869-0x7e);}let _0xb762eb={'request':structuredClone(_0x1587d1),'session':_0x41f73b[_0x109c14(_0x462eb9._0x4164ef,_0x462eb9._0x37d074,0x4f7,_0x462eb9._0x4c6b08)]?await _0x41f73b[_0x518456(0x17d,_0x462eb9._0x920a24,_0x462eb9._0x479861,_0x462eb9._0x4e82dd)][_0x518456(0x1d6,0x1b1,0x145,0x1bc)](_0x41f73b[_0x518456(_0x462eb9._0x5c637f,0x1b2,0x251,_0x462eb9._0x1b7080)]):void 0x0};function _0x109c14(_0x437eee,_0x3c3553,_0x3a2545,_0x11a59f){return _0x22e674(_0x437eee-0x1a8,_0x3c3553-0x181,_0x3c3553,_0x3a2545-0x135);}for(const _0x771441 of _0x41f73b[_0x518456(_0x462eb9._0x24869d,_0x462eb9._0x200fc9,_0x462eb9._0x2cd699,_0x462eb9._0x10956f)]??[]){_0xb762eb=await _0x771441(_0xb762eb);}return _0xb762eb;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{[_0x22e674(0x527,0x48e,0x46e,0x49c)];['maxTokens'];[_0x532739(-0x17f,-0x19f,-0xff,-0x144)];[_0x22e674(0x3cc,0x325,0x3ff,0x3ba)];[_0x22e674(0x486,0x3c4,0x56e,0x48d)];['fetchImpl'];[_0x22e674(0x511,0x406,0x378,0x444)];[_0x22e674(0x381,0x30d,0x3d1,0x324)];['router'];[_0x22e674(0x3bf,0x305,0x48e,0x3c2)];['webSocketFactory'];[_0x22e674(0x2e1,0x2ce,0x2b6,0x2e8)]=new Map();constructor(_0x546873){const _0x300313={_0x30dc95:0x3cb,_0x4229bf:0x221,_0x5f2d9e:0x3b2,_0x129373:0x2f5,_0x1f9b8e:0x329,_0x44610b:0x61,_0x10a7e9:0x49,_0x1ef2d3:0x42,_0x4dbbd8:0x134,_0x96f4cb:0x8d,_0x432c75:0x7,_0x48efec:0xeb,_0x23785f:0x165,_0x3b80a7:0x130,_0x1259e7:0x2b6,_0x4adfd2:0x315,_0x4a9a8e:0x2ac,_0x327f7c:0x311,_0x418c8d:0x3f,_0x13f814:0xf3,_0x50888b:0x69,_0x3a3819:0x5d,_0x468769:0x128,_0x55fe37:0x354,_0x28a6eb:0x272,_0x5ad133:0x39c,_0x440432:0x2d4,_0x3d2885:0x291,_0x2b6339:0x22e,_0x4f3842:0x3b6,_0x5a1b2c:0x265,_0x28141c:0x25a,_0x162426:0x311,_0x29fb49:0x362,_0x12dc26:0x2c9,_0x4bf722:0x2b0},_0x822c37={_0x1d801b:0x1a8,_0x48117f:0x359};this['model']=_0x546873['model'],this['maxTokens']=_0x546873[_0x1e3149(_0x300313._0x30dc95,0x3b4,0x499,0x3a1)]??getDefaultMaxTokens(),this[_0x1e3149(0x2f5,_0x300313._0x4229bf,_0x300313._0x5f2d9e,0x2fb)]=_0x546873[_0x1e3149(_0x300313._0x129373,0x318,_0x300313._0x1f9b8e,0x356)]?structuredClone(_0x546873['reasoning']):void 0x0,this[_0x1e3149(0x34c,0x418,0x2ec,0x357)]=_0x546873[_0x185649(_0x300313._0x44610b,_0x300313._0x10a7e9,-_0x300313._0x1ef2d3,-0x74)],this[_0x185649(_0x300313._0x4dbbd8,0x17b,0xed,_0x300313._0x96f4cb)]=_0x546873['baseUrl'];function _0x185649(_0x5b4d54,_0x5c194b,_0x44a92d,_0x2447b7){return _0x22e674(_0x5b4d54-_0x822c37._0x1d801b,_0x5c194b-0x11,_0x44a92d,_0x5b4d54- -_0x822c37._0x48117f);}this[_0x185649(0xdf,-_0x300313._0x432c75,0x79,0x95)]=_0x546873['fetch']??globalThis['fetch'],this['providerAdapter']=_0x546873[_0x185649(_0x300313._0x48efec,_0x300313._0x23785f,_0x300313._0x3b80a7,0x2c)],this[_0x1e3149(_0x300313._0x1259e7,_0x300313._0x4adfd2,0x33f,0x396)]=_0x546873[_0x1e3149(_0x300313._0x1259e7,0x34d,0x346,0x304)]??[],this[_0x1e3149(_0x300313._0x4a9a8e,0x223,_0x300313._0x327f7c,0x2d4)]=_0x546873[_0x185649(-_0x300313._0x418c8d,_0x300313._0x96f4cb,-_0x300313._0x13f814,0xa2)],this[_0x185649(_0x300313._0x50888b,_0x300313._0x3a3819,_0x300313._0x468769,0xe5)]=_0x546873[_0x1e3149(_0x300313._0x55fe37,_0x300313._0x28a6eb,_0x300313._0x5ad133,_0x300313._0x440432)]??(_0x546873['providerSessionResolver']?new ProviderSessionManager(_0x546873[_0x1e3149(_0x300313._0x3d2885,0x2ae,0x31b,_0x300313._0x2b6339)]):void 0x0);function _0x1e3149(_0x4f80a7,_0x9fdf6a,_0x5e0a57,_0x454248){return _0x22e674(_0x4f80a7-0x157,_0x9fdf6a-0xa3,_0x9fdf6a,_0x4f80a7- -0x6e);}this['webSocketFactory']=_0x546873[_0x1e3149(0x32a,_0x300313._0x4f3842,_0x300313._0x5a1b2c,0x2f1)]??createDefaultWebSocketFactory();for(const _0x2c6d28 of _0x546873[_0x1e3149(0x27a,_0x300313._0x28141c,0x2f7,0x27e)]){this['surfaces'][_0x1e3149(_0x300313._0x162426,_0x300313._0x29fb49,_0x300313._0x12dc26,_0x300313._0x4bf722)](_0x2c6d28['id'],_0x2c6d28);}}[_0x532739(-0xac,-0x138,-0x175,-0x9b)](_0x2870d4,_0x160eb0){const _0x4206f4={_0x332417:0x688,_0x3e6309:0x656,_0x32fa35:0x6fb},_0x1961e2={_0xecf05:0x66f};function _0x2c465a(_0x54c7b0,_0xf0ac85,_0x2b431f,_0x149ef5){return _0x532739(_0x149ef5,_0xf0ac85-_0x1961e2._0xecf05,_0x2b431f-0x121,_0x149ef5-0x1e0);}return this[_0x2c465a(_0x4206f4._0x332417,0x61f,_0x4206f4._0x3e6309,_0x4206f4._0x32fa35)](_0x2870d4,_0x160eb0);}[_0x532739(-0x6d,-0xd9,-0x154,-0x72)](_0xdf8bc8,_0x2b3dd5){const _0x3c1a92={_0x39b8e2:0x25a},_0x18342f={_0x2bf4db:0x29,_0x56af62:0x162};function _0x29bdc4(_0xf919a1,_0x4628e4,_0x16098d,_0x1e5320){return _0x22e674(_0xf919a1-0x19a,_0x4628e4-_0x18342f._0x2bf4db,_0xf919a1,_0x16098d- -_0x18342f._0x56af62);}return this[_0x29bdc4(_0x3c1a92._0x39b8e2,0x1b1,0x249,0x216)](_0xdf8bc8,_0x2b3dd5);}async[_0x532739(0x7f,-0x50,-0xe9,-0xdd)](_0x3e1daf,_0x6c0eac){const _0x4afab4={_0x4ecdbc:0xb2,_0x17f947:0xc,_0x29316d:0x114,_0x54c036:0xd0,_0xfa378a:0x108},_0x3bc60c={_0x12af5e:0x199};function _0x266886(_0x2a3411,_0xb5e170,_0x22da63,_0x360e2e){return _0x22e674(_0x2a3411-0x173,_0xb5e170-_0x3bc60c._0x12af5e,_0x2a3411,_0xb5e170- -0x4de);}const _0x1232c2=this[_0x36d54a(0xea,0x17,-0xb8,0xd5)](_0x3e1daf);function _0x36d54a(_0x344537,_0x5c640b,_0x4b6ddd,_0x33a43c){return _0x532739(_0x344537,_0x5c640b-0x22f,_0x4b6ddd-0x1a9,_0x33a43c-0x1db);}const _0x16f240=await this['router'][_0x36d54a(0x16a,_0x4afab4._0x4ecdbc,-_0x4afab4._0x17f947,0xdd)](_0x1232c2,{'mode':_0x266886(-0x196,-_0x4afab4._0x29316d,-_0x4afab4._0x54c036,-0xf6)});return this[_0x36d54a(0x2,0xa4,_0x4afab4._0xfa378a,0xbb)](_0x1232c2,_0x16f240,_0x6c0eac);}async*[_0x22e674(0x3ba,0x3d9,0x37a,0x3ab)](_0x572175,_0x46a57c){const _0x548a51={_0x4f2ada:0x146,_0x4b0896:0xa3,_0x1ae0a4:0xce,_0x4a202d:0xc4,_0x583e6c:0xe,_0x4cc124:0x1f},_0x564e51={_0x47fd2d:0x1ab,_0x3e05de:0x55,_0x278a58:0x430};function _0x3b0dfa(_0x2d23de,_0x559b44,_0x1faf4d,_0x568ba5){return _0x22e674(_0x2d23de-0x13a,_0x559b44-0x1b5,_0x2d23de,_0x1faf4d- -0x326);}const _0x5d1bd5=this[_0x463fe5(-_0x548a51._0x4f2ada,-_0x548a51._0x4b0896,-0x18f,-_0x548a51._0x1ae0a4)](_0x572175);function _0x463fe5(_0xe41b9e,_0x28c0c8,_0xce7fb7,_0x1c9d64){return _0x22e674(_0xe41b9e-_0x564e51._0x47fd2d,_0x28c0c8-_0x564e51._0x3e05de,_0x1c9d64,_0xe41b9e- -_0x564e51._0x278a58);}const _0x1c9ca3=await this['router']['selectSurface'](_0x5d1bd5,{'mode':_0x463fe5(-0x7,-_0x548a51._0x4a202d,-_0x548a51._0x583e6c,0xcf)});yield*this[_0x463fe5(-0x71,-0x127,-0xd5,_0x548a51._0x4cc124)](_0x5d1bd5,_0x1c9ca3,_0x46a57c);}async[_0x22e674(0x3e5,0x31a,0x45d,0x377)](_0x249da0,_0x383853,_0x20f885){const _0x3cd832={_0x3e1605:0x20d,_0x5c2b96:0x1fd,_0x3b631e:0x1f3,_0x176dc2:0x114,_0x1dfe54:0x2c4,_0x3484e3:0x35a,_0x29c3cf:0x76,_0x5764df:0x15b,_0x511d6d:0xe,_0x3a3b3e:0x13c,_0x45d0f7:0xfc,_0x29221e:0x71,_0x7ac63d:0x3c,_0x206f42:0x27,_0x91e39:0xa,_0x547630:0x16},_0x17f1c7={_0x54f3c3:0x32},_0x4c091e=this[_0x4e6bbe(_0x3cd832._0x3e1605,_0x3cd832._0x5c2b96,_0x3cd832._0x3b631e,_0x3cd832._0x176dc2)](_0x249da0),_0x2c49ca=this[_0x4e6bbe(0x33f,0x230,_0x3cd832._0x1dfe54,_0x3cd832._0x3484e3)](_0x383853);if(_0x2c49ca['transport']==='http-json'){const _0x1ee898=await this['sendHttpSurfaceRequest'](_0x4c091e,_0x2c49ca,![],_0x20f885);if(!_0x1ee898['ok'])throw await this['toApiError'](_0x1ee898);if(!_0x2c49ca[_0x1724bf(0x44,-0xb3,-_0x3cd832._0x29c3cf,-0x147)])throw new Error('Surface\x20'+_0x383853+_0x4e6bbe(_0x3cd832._0x5764df,0x174,0x224,0x20f));return _0x2c49ca[_0x1724bf(0x5b,-0x103,-_0x3cd832._0x29c3cf,_0x3cd832._0x511d6d)](await _0x1ee898[_0x1724bf(-0x34,-_0x3cd832._0x3a3b3e,-_0x3cd832._0x45d0f7,-_0x3cd832._0x29221e)](),_0x4c091e);}let _0x2aff0a;function _0x1724bf(_0x1fbbbc,_0x26c34a,_0x439e2e,_0x619edc){return _0x532739(_0x1fbbbc,_0x439e2e-0x66,_0x439e2e-0x1b5,_0x619edc-_0x17f1c7._0x54f3c3);}for await(const _0x284079 of this['streamViaSurface'](_0x4c091e,_0x383853,_0x20f885)){_0x284079['type']==='done'&&(_0x2aff0a=_0x284079['response']);}function _0x4e6bbe(_0x44ef60,_0x15f2e0,_0x1d28f7,_0x52a27f){return _0x22e674(_0x44ef60-0x31,_0x15f2e0-0x187,_0x44ef60,_0x1d28f7- -0xf7);}if(!_0x2aff0a)throw new Error(_0x1724bf(_0x3cd832._0x7ac63d,-_0x3cd832._0x206f42,_0x3cd832._0x91e39,-_0x3cd832._0x547630)+_0x383853+'\x20did\x20not\x20produce\x20a\x20final\x20response');return _0x2aff0a;}async*[_0x22e674(0x3eb,0x363,0x2fc,0x3bf)](_0x24c25b,_0x226e56,_0x2d1a78){const _0x589928={_0x252415:0x37a,_0x5d3c54:0x2d5,_0xd5f9d2:0x389,_0x51ecbf:0x31d,_0x485765:0x31e,_0x3e0d3e:0x361,_0x23a156:0x4c9,_0x497947:0x466,_0x5b15d4:0x462,_0x3b783d:0x4aa,_0x476fa5:0x51f,_0x40213d:0x589,_0x56cda6:0x587,_0x28ae66:0x53c,_0x10eceb:0x646,_0x42c93a:0x59d,_0x12e0fb:0x5a6,_0x27c3ea:0x320},_0x2b6c23={_0x2ec0b0:0x175,_0x521f5f:0x138},_0x100568=this[_0x1451b3(0x2d8,0x24b,0x39f,0x2b8)](_0x24c25b),_0x1fb996=this[_0x1451b3(_0x589928._0x252415,0x381,_0x589928._0x5d3c54,_0x589928._0xd5f9d2)](_0x226e56);if(_0x1fb996['transport']===_0x1451b3(0x313,0x32e,_0x589928._0x51ecbf,_0x589928._0x485765)){const _0x5b6f24=await this[_0x1451b3(0x2f8,0x415,_0x589928._0x3e0d3e,0x345)](_0x100568,_0x226e56,_0x2d1a78);yield{'type':'done','response':_0x5b6f24};return;}if(_0x1fb996[_0x1451b3(_0x589928._0x23a156,0x504,_0x589928._0x497947,_0x589928._0x5b15d4)]===_0x3335fd(0x414,0x564,0x444,_0x589928._0x3b783d)){yield*this[_0x3335fd(_0x589928._0x476fa5,_0x589928._0x40213d,_0x589928._0x56cda6,_0x589928._0x28ae66)](_0x100568,_0x1fb996,_0x2d1a78);return;}function _0x3335fd(_0x2967d6,_0x4a723a,_0x15b3f6,_0x17eb76){return _0x22e674(_0x2967d6-0xdf,_0x4a723a-_0x2b6c23._0x2ec0b0,_0x2967d6,_0x17eb76-_0x2b6c23._0x521f5f);}function _0x1451b3(_0x18f841,_0x24791a,_0x468696,_0x4c6ab9){return _0x22e674(_0x18f841-0xe0,_0x24791a-0x104,_0x468696,_0x4c6ab9- -0x32);}yield*this[_0x3335fd(_0x589928._0x10eceb,0x54a,_0x589928._0x42c93a,_0x589928._0x12e0fb)](_0x100568,_0x1fb996,_0x2d1a78?.[_0x1451b3(0x2f9,_0x589928._0x27c3ea,0x45c,0x3d5)]);}async[_0x532739(-0x64,-0x5a,-0x7b,-0x73)](_0x5ef238){const _0x3d1c44={_0x1b6315:0x3fa,_0xd34fd7:0x2ce,_0x222fb0:0x213,_0x442e13:0x24c,_0x4559f1:0x3f7,_0x4bb79c:0x4a2,_0x97afce:0x54b,_0xf7ee75:0x4ce,_0x219b33:0x30b,_0x27407e:0x30c,_0x1d5018:0x2f2,_0x493449:0x3ed,_0x4495d3:0x33f,_0x3c13ac:0x38b,_0x1f9436:0x40a,_0x546f26:0x4c7,_0x389126:0x56d,_0x3f3f56:0x2d6,_0x22fae0:0x4df,_0x287a2d:0x55c,_0xae79eb:0x551,_0x43fb07:0x4e7,_0x48d6ef:0x222,_0x290da1:0x46b,_0x16e1c5:0x4fe,_0x4f1d64:0xd2,_0x436fac:0x25b,_0x4a07b0:0x2ca},_0x3e2503={_0x210bb9:0x1ff},_0x5382bc=async()=>{const _0x345758=this[_0x50022d(_0x3d1c44._0x1b6315,0x45d,0x502,0x37c)]?await this['sessionManager'][_0x442beb(_0x3d1c44._0xd34fd7,_0x3d1c44._0x222fb0,_0x3d1c44._0x442e13,0x25d)](_0x5ef238[_0x50022d(_0x3d1c44._0x4559f1,_0x3d1c44._0x4bb79c,_0x3d1c44._0x97afce,_0x3d1c44._0xf7ee75)]):void 0x0,_0x4f353f=this[_0x442beb(_0x3d1c44._0x219b33,0x210,_0x3d1c44._0x27407e,0x29b)]['resolveCredential'](this['apiKey'],_0x345758);function _0x442beb(_0x2b745d,_0x26ac5b,_0x966126,_0x474db7){return _0x17ab(_0x474db7- -0x45,_0x966126);}if(!_0x4f353f)throw this['createMissingCredentialError']();function _0x50022d(_0x1ac85e,_0x528959,_0x1b3c14,_0xb0af42){return _0x17ab(_0x528959-_0x3e2503._0x210bb9,_0xb0af42);}const _0x42930b=await this[_0x442beb(0x2bb,0x2c1,0x2aa,_0x3d1c44._0x1d5018)]({'body':_0x5ef238['body'],'credential':_0x4f353f,'session':_0x345758,'stream':![]},{'accept':_0x5ef238[_0x50022d(0x404,_0x3d1c44._0x493449,0x3bc,_0x3d1c44._0x4495d3)]??_0x442beb(0x21d,_0x3d1c44._0x3c13ac,0x259,0x2d5),'includeContentType':_0x5ef238[_0x50022d(0x36a,_0x3d1c44._0x1f9436,_0x3d1c44._0x546f26,0x3e8)]===_0x50022d(0x60f,0x52c,0x5e2,_0x3d1c44._0x389126)});return this[_0x442beb(0x1c2,0x22e,_0x3d1c44._0x3f3f56,0x28f)](''+this[_0x50022d(0x580,_0x3d1c44._0x22fae0,_0x3d1c44._0x287a2d,_0x3d1c44._0xae79eb)][_0x50022d(_0x3d1c44._0x43fb07,0x4ed,0x567,0x42b)](this['baseUrl'],_0x345758)+_0x5ef238[_0x442beb(0x286,0x23b,0x264,_0x3d1c44._0x48d6ef)],{'method':_0x5ef238['method'],'headers':_0x42930b,..._0x5ef238[_0x50022d(_0x3d1c44._0x290da1,0x4d6,_0x3d1c44._0x16e1c5,0x43b)]!==void 0x0?{'body':JSON[_0x442beb(0x1d2,0x243,_0x3d1c44._0x4f1d64,0x19c)](_0x5ef238['body'])}:{},'signal':_0x5ef238[_0x442beb(_0x3d1c44._0x436fac,0x235,_0x3d1c44._0x4a07b0,0x25e)]});};return await this['sendWithRetries'](_0x5382bc,_0x5ef238);}['getRetryDelayMs'](_0x3c5b0c,_0x588fc4){const _0x40c3d2={_0x284af7:0x9,_0x3962af:0xc0,_0x23f312:0xbf,_0x10f9de:0x54,_0x49faaa:0x4f,_0x4d4a4b:0x5,_0x5ccf4e:0xf0,_0x3ba000:0x27,_0x38b4e0:0x97,_0x538c3a:0x8b,_0x2a4a51:0x73},_0x80bf1={_0x6f45a5:0x50,_0x3f6490:0x45f},_0x4d5dac={_0x5ec2e8:0x102},_0x3d16a5=_0x3c5b0c?.['headers'][_0x42cc25(-_0x40c3d2._0x284af7,-0xcf,-_0x40c3d2._0x3962af,-_0x40c3d2._0x23f312)](_0x42cc25(-_0x40c3d2._0x10f9de,0x10f,_0x40c3d2._0x49faaa,_0x40c3d2._0x4d4a4b));function _0x4e8a76(_0x545a35,_0x5ad91d,_0x4553d9,_0x5382ff){return _0x532739(_0x4553d9,_0x545a35-_0x4d5dac._0x5ec2e8,_0x4553d9-0x166,_0x5382ff-0xe8);}if(_0x3d16a5){const _0x1ec086=Number(_0x3d16a5);if(Number[_0x4e8a76(-_0x40c3d2._0x5ccf4e,-_0x40c3d2._0x3ba000,-0x1b5,-_0x40c3d2._0x38b4e0)](_0x1ec086)&&_0x1ec086>=0x0)return _0x1ec086*0x3e8;const _0x15054a=Date['parse'](_0x3d16a5);if(Number[_0x4e8a76(-_0x40c3d2._0x5ccf4e,-0x30,-0x1bb,-0x7b)](_0x15054a))return Math[_0x4e8a76(_0x40c3d2._0x538c3a,0xbf,0x13c,_0x40c3d2._0x2a4a51)](0x0,_0x15054a-Date['now']());}const _0x115c97=DEFAULT_RETRY_DELAY_MS*0x2**_0x588fc4;function _0x42cc25(_0x587938,_0x59e80a,_0x5f550a,_0xa7d251){return _0x22e674(_0x587938-_0x80bf1._0x6f45a5,_0x59e80a-0x50,_0xa7d251,_0x5f550a- -_0x80bf1._0x3f6490);}if(_0x115c97<RETRY_DELAY_STEP_CAP_MS)return _0x115c97;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x588fc4-0x5);}[_0x22e674(0x37d,0x3a7,0x2a9,0x35e)](_0x269e3a){const _0x54fa1a={_0x1d6506:0x4};function _0x2c6d3b(_0x7584f4,_0x1b698c,_0x1627c2,_0x36c33a){return _0x22e674(_0x7584f4-0xbe,_0x1b698c-0xd8,_0x36c33a,_0x1627c2- -0x41c);}return RETRYABLE_HTTP_STATUSES[_0x2c6d3b(-0x20,0x8b,_0x54fa1a._0x1d6506,-0xd8)](_0x269e3a['status']);}['shouldRetryRequestError'](_0x1ae07d){return!isAbortError(_0x1ae07d)&&_0x1ae07d instanceof TypeError;}[_0x22e674(0x290,0x286,0x3b1,0x30b)](_0x47559b){return this['shouldRetryRequestError'](_0x47559b)||isRetryableProviderStreamEventError(_0x47559b);}async[_0x22e674(0x297,0x3ca,0x2b8,0x364)](_0x5c3de1,_0x2eb774){throwIfAborted(_0x2eb774),await new Promise((_0x2906a2,_0x48cf3e)=>{let _0x4c8042=![];const _0x33e195=addAbortListener(_0x2eb774,()=>{if(_0x4c8042)return;_0x4c8042=!![],clearTimeout(_0x5866e4),_0x48cf3e(toAbortError(_0x2eb774?.['reason']));}),_0x5866e4=setTimeout(()=>{_0x4c8042=!![],_0x33e195(),_0x2906a2();},_0x5c3de1);}),throwIfAborted(_0x2eb774);}async[_0x22e674(0x2af,0x40b,0x3a0,0x374)](_0x43c7ec,_0x2ce11f={}){const _0x5d6510={_0x4759f5:0x1ef,_0x765fdd:0x2d6,_0x12dcb0:0x317,_0x5af1af:0x237,_0x5c76fd:0x387,_0xb9a901:0x2c9,_0x348a8e:0x328,_0x2dd740:0xbd,_0x453309:0x1b9,_0xa436fd:0x2d3,_0x15acae:0x3d9,_0x1acabf:0x371,_0x2fbcb4:0x245,_0x4a8c1f:0x204,_0x3acd1d:0x189,_0x506955:0xe2,_0x5aa23d:0xf6,_0x2c10a3:0x207,_0x386504:0xe4},_0x10987a={_0x481dfc:0x47,_0x1b67b7:0x11f},{signal:_0x37caa8}=_0x2ce11f;function _0x24e5a3(_0x1fff1c,_0x191b28,_0x405d33,_0x6b8bc){return _0x22e674(_0x1fff1c-0x9b,_0x191b28-_0x10987a._0x481dfc,_0x1fff1c,_0x405d33- -_0x10987a._0x1b67b7);}function _0x59b02f(_0x2a54c6,_0x448995,_0x372988,_0x37a581){return _0x532739(_0x448995,_0x372988-0x14,_0x372988-0x14e,_0x37a581-0x1d6);}let _0x2c2910=![];for(let _0x1c8a69=0x0;_0x1c8a69<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x1c8a69+=0x1){throwIfAborted(_0x37caa8);try{const _0x40c091=await _0x43c7ec();if(_0x40c091[_0x24e5a3(_0x5d6510._0x4759f5,0x20c,_0x5d6510._0x765fdd,_0x5d6510._0x12dcb0)]===0x191&&this[_0x24e5a3(_0x5d6510._0x5af1af,0x1cc,0x2a3,_0x5d6510._0x5c76fd)]&&!_0x2c2910){_0x2c2910=!![],this[_0x24e5a3(_0x5d6510._0xb9a901,0x2f9,0x2a3,_0x5d6510._0x348a8e)][_0x59b02f(-0x19a,-0xf0,-0xff,-_0x5d6510._0x2dd740)]();continue;}if(!this[_0x59b02f(-0x20b,-0x213,-0x190,-_0x5d6510._0x453309)](_0x40c091)||_0x1c8a69===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x40c091;const _0x1887c7=this[_0x24e5a3(_0x5d6510._0xa436fd,_0x5d6510._0x15acae,_0x5d6510._0x1acabf,0x2dc)](_0x40c091,_0x1c8a69);await this[_0x24e5a3(0x24a,0x20a,_0x5d6510._0x2fbcb4,_0x5d6510._0x4a8c1f)](_0x1887c7,_0x37caa8);}catch(_0xecc611){if(!this[_0x59b02f(-_0x5d6510._0x3acd1d,-0x70,-0x153,-_0x5d6510._0x506955)](_0xecc611)||_0x1c8a69===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0xecc611;const _0x1f395c=this['getRetryDelayMs'](void 0x0,_0x1c8a69);await this[_0x59b02f(-0x251,-_0x5d6510._0x5aa23d,-0x18a,-_0x5d6510._0x2c10a3)](_0x1f395c,_0x37caa8);}}throw new Error(_0x59b02f(-_0x5d6510._0x386504,-0x113,-0x1ab,-0x1b2));}[_0x22e674(0x2c7,0x2d1,0x339,0x307)](){const _0x4396de={_0x2ed1a8:0x15e,_0x5e0ac6:0x1d,_0x4fe581:0x48},_0x22a653={_0x1ae983:0x4c6};function _0x207b38(_0x377f06,_0x21d333,_0x329305,_0x4040c5){return _0x22e674(_0x377f06-0x2d,_0x21d333-0x10d,_0x377f06,_0x21d333- -_0x22a653._0x1ae983);}return this[_0x207b38(-_0x4396de._0x2ed1a8,-0x82,_0x4396de._0x5e0ac6,_0x4396de._0x4fe581)]['createMissingCredentialError']();}async[_0x22e674(0x3e8,0x485,0x3e1,0x49b)](_0x27a193,_0x44f064){return await this['providerAdapter']['createHeaders'](_0x27a193,_0x44f064);}[_0x532739(-0x12b,-0x9d,-0xc,-0x163)](_0x55645b){const _0x10950d={_0xbff2bc:0x256,_0x36fcb2:0x310,_0x57a0c8:0x305,_0x377b3c:0x249},_0x35ee4b={_0x40c1f9:0x187,_0x50f647:0x1ee},_0x56e76d={_0xdaf16e:0x2c2,_0x299703:0x13b,_0x161047:0x1f0};function _0xf82654(_0x33f9c9,_0x2c4c2b,_0x147c0f,_0x695fa8){return _0x532739(_0x695fa8,_0x33f9c9-_0x56e76d._0xdaf16e,_0x147c0f-_0x56e76d._0x299703,_0x695fa8-_0x56e76d._0x161047);}function _0x499224(_0x5bdef9,_0x3dcafc,_0x2670df,_0x50a9fd){return _0x22e674(_0x5bdef9-_0x35ee4b._0x40c1f9,_0x3dcafc-0xa9,_0x3dcafc,_0x2670df- -_0x35ee4b._0x50f647);}return this[_0x499224(0x300,0x1ab,_0x10950d._0xbff2bc,_0x10950d._0x36fcb2)][_0x499224(0x287,_0x10950d._0x57a0c8,0x277,_0x10950d._0x377b3c)](_0x55645b);}async['toApiError'](_0x5ba9c7){return await this['providerAdapter']['toApiError'](_0x5ba9c7);}['getSurface'](_0x4ec722){const _0x2c91d6={_0x795d95:0x16a,_0x8abe43:0x246,_0x5390c0:0x265},_0x301ff5={_0x38a37a:0x460,_0x9171f:0xb8},_0x5ab482=this[_0x4672d4(_0x2c91d6._0x795d95,_0x2c91d6._0x8abe43,_0x2c91d6._0x5390c0,0x1ca)]['get'](_0x4ec722);if(!_0x5ab482)throw new Error('Unknown\x20model\x20surface:\x20'+_0x4ec722);function _0x4672d4(_0x4f30e5,_0x3b49e2,_0x4f0c68,_0xbfc1c3){return _0x532739(_0x4f30e5,_0x3b49e2-_0x301ff5._0x38a37a,_0x4f0c68-_0x301ff5._0x9171f,_0xbfc1c3-0x166);}return _0x5ab482;}async['prepareChatRequest'](_0x9a3cbb,_0x392864){const _0x8c5d5d={_0x1eef41:0xe5,_0x103a3c:0xeb,_0x236506:0x36,_0x5d5841:0x5db,_0x6296f8:0x580,_0x23bba1:0x573,_0x4022a5:0x18b,_0x21cc45:0xad,_0x3767b2:0x81,_0x2074ea:0x56b,_0x2a38a0:0x6f7,_0x16519f:0x621,_0x1a25bf:0x613,_0x4e2dda:0x164,_0x67af20:0x160,_0x5c6a3e:0x235,_0x45c170:0xd1,_0x49217e:0x5fc,_0x35a897:0x55a,_0x31798c:0x57d,_0x180b05:0x5ce,_0x31f9e3:0x67c,_0x3400dd:0x596},_0x3652de={_0x54d210:0xe0,_0x590b3c:0x2ee},_0x4016a0={_0x4dacc1:0x6d1,_0x57ae17:0xb4};function _0x192162(_0x1c03e5,_0x574cb7,_0x592c9d,_0x3876f9){return _0x532739(_0x592c9d,_0x3876f9-_0x4016a0._0x4dacc1,_0x592c9d-_0x4016a0._0x57ae17,_0x3876f9-0x89);}const _0x47d21f=toModelRequest(_0x9a3cbb);function _0x26d679(_0x5cd446,_0x2be55e,_0x124326,_0x3f4039){return _0x22e674(_0x5cd446-0x19b,_0x2be55e-_0x3652de._0x54d210,_0x2be55e,_0x5cd446- -_0x3652de._0x590b3c);}const _0x2c7b22=await prepareProviderRequest(_0x47d21f,{'sessionManager':this[_0x26d679(0xd4,0x139,_0x8c5d5d._0x1eef41,_0x8c5d5d._0x103a3c)],'requestMutators':this[_0x26d679(_0x8c5d5d._0x236506,0x72,-0x95,0x4a)],'signal':_0x392864}),_0xac13e6=toChatRequest(_0x2c7b22[_0x192162(_0x8c5d5d._0x5d5841,0x64f,0x56b,_0x8c5d5d._0x6296f8)]),_0x2a928f=this[_0x192162(_0x8c5d5d._0x23bba1,0x6f5,0x6b0,0x613)][_0x26d679(0xe1,_0x8c5d5d._0x4022a5,0x112,0xdd)](this[_0x26d679(0xcc,0x15a,0xc7,0x53)],_0x2c7b22['session']);if(!_0x2a928f)throw this[_0x26d679(0x19,-_0x8c5d5d._0x21cc45,-_0x8c5d5d._0x3767b2,-0x13)]();return{'baseUrl':this[_0x192162(_0x8c5d5d._0x2074ea,_0x8c5d5d._0x2a38a0,_0x8c5d5d._0x16519f,_0x8c5d5d._0x1a25bf)][_0x26d679(_0x8c5d5d._0x4e2dda,_0x8c5d5d._0x67af20,0x148,0x1f5)](this[_0x26d679(0x19f,_0x8c5d5d._0x5c6a3e,_0x8c5d5d._0x45c170,0x1a8)],_0x2c7b22[_0x192162(_0x8c5d5d._0x49217e,_0x8c5d5d._0x35a897,_0x8c5d5d._0x31798c,_0x8c5d5d._0x180b05)]),'credential':_0x2a928f,'request':_0xac13e6,'session':_0x2c7b22[_0x192162(_0x8c5d5d._0x31f9e3,_0x8c5d5d._0x3400dd,0x4f9,_0x8c5d5d._0x180b05)]};}['applyModelDefaults'](_0x32c2fa){const _0x24cf60={_0x4655d2:0x339,_0x5e3357:0x2cb,_0x2ae9c2:0x303,_0x585748:0x2ba,_0x35210a:0x2a9},_0x2ce421={_0xca0bd5:0x46a,_0x2ce1a0:0xbc};function _0x392887(_0x1b65bb,_0x2f7984,_0xb48dd6,_0x6462da){return _0x532739(_0xb48dd6,_0x6462da-_0x2ce421._0xca0bd5,_0xb48dd6-_0x2ce421._0x2ce1a0,_0x6462da-0x6d);}function _0x447b34(_0x180928,_0x1f9545,_0x7ea67c,_0xaf27c9){return _0x22e674(_0x180928-0x50,_0x1f9545-0xbf,_0xaf27c9,_0x7ea67c- -0x60);}return{...structuredClone(_0x32c2fa),..._0x32c2fa[_0x392887(0x319,_0x24cf60._0x4655d2,0x228,_0x24cf60._0x5e3357)]===void 0x0&&this[_0x447b34(0x239,0x2d5,_0x24cf60._0x2ae9c2,_0x24cf60._0x585748)]!==void 0x0?{'reasoning':structuredClone(this[_0x392887(0x260,0x382,_0x24cf60._0x35210a,0x2cb)])}:{}};}async['sendHttpSurfaceRequest'](_0x269b72,_0xcffd94,_0x1d8144,_0x1f7034={},_0x147de3=!![]){const _0x5b1a68={_0x14358a:0x199,_0x3f4654:0x155,_0x235ed4:0x159,_0x4f226b:0x20b,_0x16ac38:0x24d,_0x226228:0x142,_0x93bf4f:0x2dd,_0x1f81ef:0x164,_0x4c5ee3:0x335,_0x151504:0x2f2,_0xef2f92:0x1d8,_0x1165ed:0x193,_0x10b5c4:0x1ad,_0x252443:0x18f,_0x482e98:0x1cc,_0x1372ea:0x20d,_0x351def:0x1ec,_0x359169:0x207,_0x5d42e2:0xc8,_0x6073fa:0x39b,_0x394e7a:0x46b,_0x433d1b:0x5b3,_0x1d78bf:0x485,_0x304d5a:0x510,_0x5f498a:0x586,_0x4a12bb:0x1a9,_0x1eab95:0x322,_0x5e9419:0x340,_0x5aab4f:0x287,_0x4b409b:0x2eb,_0x52bc77:0x2ec,_0x1c0426:0x3b9,_0xde7b14:0x2f7,_0x550af9:0x2ee,_0x397fb5:0x143,_0x20bdd5:0x19f,_0x3cebf5:0x2c1,_0x46a97e:0x287,_0x303179:0x2d9,_0x1d482a:0x478,_0x3d256e:0x401,_0xc3de0f:0x351,_0xc549e:0x202,_0x1bcc4f:0x249,_0x4043bb:0xb2,_0x533e49:0x191},{signal:_0x178836}=_0x1f7034,_0x402bbd=async()=>{const _0x51aec9={_0x1597c6:0x1f6},_0x429f62=await this[_0x406e5b(_0x5b1a68._0x14358a,_0x5b1a68._0x3f4654,0x199,_0x5b1a68._0x235ed4)](_0x269b72,_0x178836);let _0x263d68;function _0x406e5b(_0xb21f74,_0xfcafc8,_0x16f3c3,_0x1f6b0e){return _0x17ab(_0x1f6b0e- -0x50,_0x16f3c3);}try{_0x263d68=_0xcffd94[_0x406e5b(0x268,_0x5b1a68._0x4f226b,_0x5b1a68._0x16ac38,0x25d)](_0x429f62[_0x406e5b(_0x5b1a68._0x226228,0x1ea,0x283,0x1fd)]);}catch(_0xbd82e8){if(_0xbd82e8 instanceof Error)throw new ProviderRequestConstructionError(_0xbd82e8['message']);throw _0xbd82e8;}if(!_0x263d68[_0x406e5b(0x2e9,_0x5b1a68._0x93bf4f,_0x5b1a68._0x1f81ef,0x217)])throw new ProviderRequestConstructionError(_0x406e5b(0x381,_0x5b1a68._0x4c5ee3,0x295,_0x5b1a68._0x151504)+_0xcffd94['id']+_0x406e5b(_0x5b1a68._0xef2f92,_0x5b1a68._0x1165ed,0x1e0,_0x5b1a68._0x10b5c4));const _0x1c6a47=await this['createHeaders']({'request':_0x429f62['request'],'body':_0x263d68['body'],'credential':_0x429f62[_0x406e5b(_0x5b1a68._0x252443,_0x5b1a68._0x482e98,0x261,_0x5b1a68._0x1372ea)],'session':_0x429f62['session'],'stream':_0x1d8144},{'accept':_0x263d68[_0x406e5b(_0x5b1a68._0x351def,_0x5b1a68._0x359169,_0x5b1a68._0x5d42e2,0x19e)]??(_0x1d8144?_0x370989(_0x5b1a68._0x6073fa,0x388,_0x5b1a68._0x394e7a,0x3f2):_0x370989(_0x5b1a68._0x433d1b,_0x5b1a68._0x1d78bf,_0x5b1a68._0x304d5a,_0x5b1a68._0x5f498a)),'includeContentType':_0x263d68[_0x406e5b(_0x5b1a68._0x4a12bb,_0x5b1a68._0x1eab95,_0x5b1a68._0x5e9419,_0x5b1a68._0x5aab4f)]!==void 0x0});for(const [_0x5ec1be,_0x35a243]of Object[_0x370989(_0x5b1a68._0x4b409b,_0x5b1a68._0x52bc77,_0x5b1a68._0x1c0426,0x386)](_0x263d68[_0x406e5b(0x3b4,_0x5b1a68._0xde7b14,0x305,_0x5b1a68._0x550af9)]??{})){_0x1c6a47[_0x406e5b(0x1f2,_0x5b1a68._0x397fb5,_0x5b1a68._0x20bdd5,0x1cb)](_0x5ec1be,_0x35a243);}function _0x370989(_0x2dad4b,_0x2e5a3b,_0x335157,_0x309d99){return _0x17ab(_0x335157-_0x51aec9._0x1597c6,_0x2dad4b);}return this['fetchImpl'](''+_0x429f62[_0x406e5b(_0x5b1a68._0x3cebf5,_0x5b1a68._0x46a97e,0x355,_0x5b1a68._0x303179)]+_0x263d68[_0x370989(0x4c4,_0x5b1a68._0x1d482a,0x45d,_0x5b1a68._0x3d256e)],{'method':'POST','headers':_0x1c6a47,..._0x263d68[_0x406e5b(_0x5b1a68._0xc3de0f,_0x5b1a68._0xc549e,_0x5b1a68._0x1bcc4f,0x287)]!==void 0x0?{'body':JSON[_0x406e5b(_0x5b1a68._0x4043bb,0x230,0x15d,_0x5b1a68._0x533e49)](_0x263d68['body'])}:{},'signal':_0x178836});};return _0x147de3?await this['sendWithRetries'](_0x402bbd,_0x1f7034):await _0x402bbd();}async*['streamHttpSurface'](_0x41789b,_0x43fa78,_0x1cbaf0={}){const _0x13211a={_0x1c741b:0x54c,_0x5cc286:0x5e0,_0x51496c:0x3a2,_0x9a09ae:0x579,_0x3d869f:0x556,_0x3534aa:0x4df,_0x31d0d1:0x583,_0x5f3e7f:0x556,_0x361b92:0x53f,_0x153752:0x4eb,_0x4acce2:0x49d,_0x4e9720:0x5af,_0x1b62e0:0x58e,_0x3d6f4e:0x2bd,_0x526ede:0x238,_0x5c1441:0x647,_0x210e03:0x4fd,_0x365cdb:0x40b,_0x27a065:0x403,_0x3a5572:0x3bc,_0x55e04e:0x319,_0x5d64fb:0x335,_0x565e3c:0x404,_0x1aa24f:0x329,_0x31e160:0x34b,_0x4f83d8:0x406,_0x253f7b:0x288},_0x2745ad={_0x55baf0:0x18};function _0x41c1f9(_0x378fc2,_0x5b9514,_0x446c6b,_0x402eba){return _0x532739(_0x446c6b,_0x5b9514-0x4e5,_0x446c6b-0x9c,_0x402eba-_0x2745ad._0x55baf0);}const {signal:_0x932c5d}=_0x1cbaf0;let _0x387029=![];function _0x24ed78(_0x177fc1,_0x556c58,_0x5b87c2,_0x37f93a){return _0x22e674(_0x177fc1-0x3f,_0x556c58-0x194,_0x5b87c2,_0x556c58-0x194);}for(let _0x52c3e=0x0;_0x52c3e<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x52c3e+=0x1){let _0x51658a=![];try{const _0x1c4c0c=await this[_0x24ed78(0x5be,_0x13211a._0x1c741b,_0x13211a._0x5cc286,0x492)](_0x41789b,_0x43fa78,!![],_0x1cbaf0,![]);if(_0x1c4c0c[_0x41c1f9(0x403,0x3d8,_0x13211a._0x51496c,0x43e)]===0x191&&this[_0x24ed78(_0x13211a._0x9a09ae,_0x13211a._0x3d869f,_0x13211a._0x3534aa,_0x13211a._0x31d0d1)]&&!_0x387029){_0x387029=!![],this[_0x24ed78(0x4a9,_0x13211a._0x5f3e7f,_0x13211a._0x361b92,_0x13211a._0x153752)][_0x24ed78(_0x13211a._0x4acce2,0x583,_0x13211a._0x4e9720,_0x13211a._0x1b62e0)]();continue;}if(!_0x1c4c0c['ok'])throw await this[_0x41c1f9(0x27a,0x2e3,_0x13211a._0x3d6f4e,_0x13211a._0x526ede)](_0x1c4c0c);const _0x3aab55=_0x43fa78['createStreamParser']?.(_0x41789b);if(!_0x3aab55?.['consumeSseEvent'])throw new Error(_0x41c1f9(0x3c9,0x489,0x4e4,0x3a6)+_0x43fa78['id']+_0x24ed78(0x687,_0x13211a._0x5c1441,0x5c4,0x5c9));for await(const _0x46d645 of iterateSseEvents(_0x1c4c0c,_0x932c5d)){const _0x3e72ea=_0x3aab55[_0x41c1f9(_0x13211a._0x210e03,0x437,0x3f6,0x49a)](_0x46d645);for(const _0x5107a7 of _0x3e72ea){_0x51658a=!![],yield _0x5107a7;}}yield{'type':_0x41c1f9(_0x13211a._0x365cdb,0x3bd,0x39f,0x358),'response':_0x3aab55['finish']()};return;}catch(_0x568789){if(_0x51658a||!this['shouldRetryStreamAttemptError'](_0x568789)||_0x52c3e===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x568789;const _0x2f08e5=this[_0x41c1f9(0x40f,0x473,0x446,_0x13211a._0x27a065)](void 0x0,_0x52c3e),_0x41e39a={'type':_0x41c1f9(_0x13211a._0x3a5572,_0x13211a._0x55e04e,0x314,0x29c),'attempt':_0x52c3e+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x568789 instanceof Error?_0x568789[_0x24ed78(0x578,0x4a9,0x4dc,0x46f)]:String(_0x568789),'delayMs':_0x2f08e5,'reason':this[_0x41c1f9(_0x13211a._0x5d64fb,0x37e,_0x13211a._0x565e3c,0x31b)](_0x568789)?_0x41c1f9(_0x13211a._0x1aa24f,_0x13211a._0x31e160,_0x13211a._0x4f83d8,_0x13211a._0x253f7b):'stream_error'};yield _0x41e39a,await this['waitForRetry'](_0x2f08e5,_0x932c5d);}}}async*['streamWebSocketSurface'](_0x5e5767,_0x16aa90,_0x2f0a74){const _0x2be524={_0xc968a5:0x51f,_0x4a80b0:0x461,_0x3bb016:0x61,_0xd089f1:0x8f,_0x4dbb50:0x6a,_0x14ea44:0x5d1,_0xd1625b:0x6ba,_0x5d45b5:0x4ac,_0x2dfcd3:0x61c,_0x29a9c6:0x62d,_0x10ef10:0x631,_0x51f69a:0xc9,_0x1db5ac:0x1b,_0x1ccb36:0x57,_0xe1ca83:0x5e1,_0x95165e:0x5d8,_0x35a717:0x621,_0x5caadb:0xf5,_0x59490b:0x8b,_0x18532e:0x111,_0x4319e1:0x5c6,_0x755cef:0x47e,_0x4ee094:0x499,_0x23261a:0x533,_0x361bd1:0x5b5,_0x3212a5:0x516,_0x49bc8c:0x50e,_0x1dcf7a:0x458,_0x1a7bb2:0x4fa,_0x354c32:0x52a,_0x422de0:0x553,_0x59beab:0x613,_0x4fa5b4:0x5e,_0x51d5ed:0xee,_0x24650c:0x142,_0x2d3035:0x89,_0x9c8567:0x14f,_0x1b73ee:0x4,_0x5a7651:0x55e,_0x4a7865:0x565,_0x5481ca:0x47c,_0x432e9b:0x548,_0x4b8627:0x49b,_0x56d518:0x4a6,_0x55ae22:0x158,_0x22628a:0x71,_0x3bb603:0xab,_0x2ffe85:0x527,_0x5b2ef0:0x557,_0x1a29a1:0x125,_0x247ff2:0x78,_0x571cb8:0x13f,_0x33879f:0x55b,_0x4f1e8d:0x4fa,_0xc9853d:0x447,_0x158486:0x128,_0x7947e:0x116,_0x2f9aba:0x4a,_0x52e89d:0x7b,_0x5ae528:0xea,_0x2b4279:0xed,_0x364bd0:0x2d,_0x136b97:0x544,_0x5a02cc:0x5a3,_0x12dd67:0x56,_0x2a2861:0x74,_0x461fbe:0xa3},_0x195188={_0x5d8c89:0x656,_0x530b75:0x21},_0x26be71={_0x228a9b:0x1a7};function _0x135b39(_0x1e9180,_0x43a91c,_0x197948,_0x2a6fea){return _0x22e674(_0x1e9180-_0x26be71._0x228a9b,_0x43a91c-0x13c,_0x197948,_0x1e9180- -0x3b0);}const _0x1c3eae=await this[_0x4c32cf(_0x2be524._0xc968a5,_0x2be524._0x4a80b0,0x4ba,0x494)](_0x5e5767,_0x2f0a74);function _0x4c32cf(_0x2679b8,_0x2a4e77,_0x858dd7,_0x5e9027){return _0x532739(_0x2679b8,_0x2a4e77-_0x195188._0x5d8c89,_0x858dd7-_0x195188._0x530b75,_0x5e9027-0xd4);}const _0x2a7f99=_0x16aa90[_0x135b39(_0x2be524._0x3bb016,-0x63,_0x2be524._0xd089f1,-_0x2be524._0x4dbb50)](_0x1c3eae['request']),_0x3e253b=_0x16aa90[_0x4c32cf(_0x2be524._0x14ea44,0x5eb,0x5b1,_0x2be524._0xd1625b)]?.(_0x5e5767);if(!_0x3e253b?.[_0x4c32cf(0x401,0x4af,_0x2be524._0x5d45b5,0x49d)])throw new Error(_0x4c32cf(_0x2be524._0x2dfcd3,0x5fa,_0x2be524._0x29a9c6,_0x2be524._0x10ef10)+_0x16aa90['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x5a6db1=_0x2a7f99[_0x135b39(_0x2be524._0x51f69a,0x95,0xe6,0x90)]??(_0x2a7f99[_0x135b39(_0x2be524._0x1db5ac,0xa9,-_0x2be524._0x1ccb36,-0x57)]?(''+_0x1c3eae[_0x4c32cf(0x53d,_0x2be524._0xe1ca83,_0x2be524._0x95165e,_0x2be524._0x35a717)]+_0x2a7f99[_0x135b39(0x1b,-0x2d,_0x2be524._0x5caadb,0x74)])['replace'](/^http:/,'ws:')[_0x135b39(0x59,-_0x2be524._0x59490b,_0x2be524._0x18532e,0x136)](/^https:/,_0x4c32cf(_0x2be524._0x4319e1,0x563,_0x2be524._0x755cef,_0x2be524._0x4ee094)):void 0x0);if(!_0x5a6db1)throw new ProviderRequestConstructionError(_0x4c32cf(_0x2be524._0x23261a,0x5fa,0x6c8,0x6c2)+_0x16aa90['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x348d19=await this['createHeaders']({'request':_0x1c3eae[_0x4c32cf(_0x2be524._0x361bd1,0x505,_0x2be524._0x3212a5,_0x2be524._0x49bc8c)],'body':_0x2a7f99[_0x4c32cf(_0x2be524._0x1dcf7a,_0x2be524._0x1a7bb2,0x5bd,0x4e4)],'credential':_0x1c3eae['credential'],'session':_0x1c3eae[_0x4c32cf(_0x2be524._0x354c32,_0x2be524._0x422de0,_0x2be524._0x59beab,0x5b3)],'stream':!![]},{'accept':_0x2a7f99[_0x135b39(-_0x2be524._0x4fa5b4,-0x70,-_0x2be524._0x51d5ed,-_0x2be524._0x24650c)]??'application/json','includeContentType':![]});for(const [_0x574de5,_0x49129c]of Object[_0x135b39(-_0x2be524._0x2d3035,-_0x2be524._0x9c8567,-0x17,-_0x2be524._0x1b73ee)](_0x2a7f99['headers']??{})){_0x348d19[_0x4c32cf(_0x2be524._0x5a7651,0x4d3,0x56e,_0x2be524._0x4a7865)](_0x574de5,_0x49129c);}_0x348d19[_0x4c32cf(_0x2be524._0x5481ca,0x562,0x575,_0x2be524._0x432e9b)](_0x4c32cf(_0x2be524._0x4b8627,_0x2be524._0x56d518,0x419,0x47d));const _0x37bf1b=this['webSocketFactory']({'headers':Object[_0x135b39(0xc2,_0x2be524._0x55ae22,_0x2be524._0x22628a,_0x2be524._0x3bb603)](_0x348d19[_0x4c32cf(_0x2be524._0x2ffe85,0x47b,_0x2be524._0x5b2ef0,0x3ae)]()),'url':_0x5a6db1});try{throwIfAborted(_0x2f0a74);_0x37bf1b[_0x135b39(-0x7b,0x2c,-_0x2be524._0x1a29a1,-0x60)]!==WebSocket[_0x135b39(0xed,_0x2be524._0x247ff2,_0x2be524._0x571cb8,0x17c)]&&await waitForWebSocketOpen(_0x37bf1b,_0x2f0a74);throwIfAborted(_0x2f0a74);_0x2a7f99['initialEvent']!==void 0x0&&_0x37bf1b[_0x135b39(0xdf,0x102,0x1a,0x4c)](JSON[_0x4c32cf(0x402,0x499,0x3e4,_0x2be524._0x755cef)](_0x2a7f99[_0x4c32cf(_0x2be524._0x33879f,_0x2be524._0x4f1e8d,0x476,_0x2be524._0xc9853d)]));for await(const _0xc4d8d7 of iterateWebSocketMessages(_0x37bf1b,_0x2f0a74)){yield*_0x3e253b['consumeWebSocketEvent'](_0xc4d8d7);if(_0x3e253b[_0x135b39(-0xa8,-_0x2be524._0x158486,-0xe0,-_0x2be524._0x7947e)]?.())break;}yield{'type':'done','response':_0x3e253b[_0x135b39(0x3c,0x116,-_0x2be524._0x2f9aba,-0x4d)]()};}finally{_0x37bf1b[_0x135b39(-_0x2be524._0x52e89d,-_0x2be524._0x5ae528,0x4b,-0x3e)]===WebSocket[_0x135b39(_0x2be524._0x2b4279,0xf0,0x115,_0x2be524._0x364bd0)]&&_0x37bf1b['close'](0x3e8,_0x2f0a74?.[_0x4c32cf(_0x2be524._0x136b97,_0x2be524._0x5a02cc,0x531,0x58d)]?_0x135b39(0x9f,0x13,_0x2be524._0x12dd67,_0x2be524._0x2a2861):_0x135b39(0x21,0x5a,-0x90,_0x2be524._0x461fbe));}}};async function createHttpError(_0x52add5){const _0x502e41={_0x1559ff:0x54a,_0x91e06a:0x60d,_0x5cfbf4:0x527,_0x305d34:0x59f,_0x4f6d2a:0x61a,_0x2416a0:0x645},_0x291f8f={_0x3b4f7a:0x752,_0x448cae:0x197},_0x12ce66={_0x23a5d1:0xa3};function _0x1fb8c1(_0x248f1e,_0x47850e,_0x24dd81,_0x5231c0){return _0x22e674(_0x248f1e-0xad,_0x47850e-_0x12ce66._0x23a5d1,_0x248f1e,_0x47850e-0xeb);}const _0x1d9ad7=await _0x52add5['text']();function _0x3ae50b(_0x466f64,_0x28742a,_0x21cf1d,_0x4bab87){return _0x532739(_0x4bab87,_0x21cf1d-_0x291f8f._0x3b4f7a,_0x21cf1d-_0x291f8f._0x448cae,_0x4bab87-0x1d2);}const _0x2386ec=_0x1d9ad7[_0x3ae50b(0x574,0x533,_0x502e41._0x1559ff,_0x502e41._0x91e06a)]()||_0x52add5[_0x3ae50b(0x60a,0x565,0x5ec,_0x502e41._0x5cfbf4)]||_0x1fb8c1(0x575,_0x502e41._0x305d34,_0x502e41._0x4f6d2a,0x533);return new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x52add5[_0x3ae50b(0x568,0x6bb,_0x502e41._0x2416a0,0x62a)]+':\x20'+_0x2386ec);}var AnthropicProviderAdapter=class{[_0x22e674(0x42b,0x463,0x497,0x40a)];[_0x22e674(0x372,0x476,0x406,0x3b7)];[_0x532739(-0x13b,-0x198,-0x1f3,-0x195)];constructor(_0x3e658f){const _0x24bb70={_0x56c082:0x69,_0x482818:0x14e,_0x117de2:0x175,_0x228774:0x137,_0x2098a6:0x11b,_0x10d898:0x100,_0x213c55:0x11c,_0x59cf95:0xc8,_0x4b43ae:0x16,_0x5d3aff:0x14,_0x53649f:0xcc,_0x208168:0x37,_0x3d825f:0x31,_0x23dae1:0x3d,_0x3ad7ca:0x64,_0x16fa10:0x7b},_0x5cea4e={_0x4b9e7a:0x1c4},_0x2af0fb={_0x12ab25:0xbb,_0x41f316:0x52};function _0x3119c9(_0x259bd3,_0x218820,_0x10ab8a,_0x1fc670){return _0x22e674(_0x259bd3-_0x2af0fb._0x12ab25,_0x218820-_0x2af0fb._0x41f316,_0x218820,_0x259bd3- -0x3a1);}this[_0x3119c9(_0x24bb70._0x56c082,0x147,_0x24bb70._0x482818,0x21)]=_0x3e658f[_0x4d71a1(0x4c,_0x24bb70._0x117de2,_0x24bb70._0x228774,_0x24bb70._0x2098a6)],this[_0x4d71a1(_0x24bb70._0x10d898,_0x24bb70._0x213c55,0x57,_0x24bb70._0x59cf95)]=_0x3e658f[_0x3119c9(_0x24bb70._0x4b43ae,0xdb,_0x24bb70._0x5d3aff,_0x24bb70._0x53649f)];function _0x4d71a1(_0x2a0e44,_0x34b762,_0x9b94c6,_0x3757b4){return _0x22e674(_0x2a0e44-_0x5cea4e._0x4b9e7a,_0x34b762-0xda,_0x9b94c6,_0x3757b4- -0x2ef);}this[_0x3119c9(-_0x24bb70._0x208168,_0x24bb70._0x3d825f,-0xae,-0xf4)]=_0x3e658f[_0x4d71a1(_0x24bb70._0x23dae1,_0x24bb70._0x3ad7ca,0x43,_0x24bb70._0x16fa10)];}[_0x532739(-0x191,-0x1fb,-0x1e9,-0x20b)](){return new Error('AnthropicModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x22e674(0x4cd,0x530,0x3f0,0x49b)](_0x2d232f,_0xfab1e4){const _0x49907d={_0x5d0bbd:0x496,_0x4bfd77:0x6c9,_0x2de04b:0x5e3,_0x5599b8:0x699,_0x11d1b6:0x292,_0x41da2e:0x579,_0x2bbcae:0x670,_0x192832:0x4d2,_0xb2802b:0x23f,_0x505803:0x547,_0x49c783:0x3ea,_0x3813e5:0x308,_0x2ee03c:0x5f4,_0x2d45ae:0x698,_0x147e98:0x6b3,_0x3a2449:0x3a0,_0x59f43e:0x2e9,_0x1e938c:0x3bc,_0x2be91a:0x267,_0x3618a2:0x310,_0xf49b64:0x340,_0x560b1a:0x254,_0x295785:0x289,_0x5dfd76:0x2e9,_0x1efba8:0x372,_0x578f87:0x518,_0x48de8c:0x57f,_0x52099e:0x5b3,_0xfbe7fc:0x4e8,_0x5f241d:0x347,_0x2f1819:0x2f3,_0x405966:0x495,_0x423459:0x4f5,_0x10ee39:0x420,_0x4ce79e:0x56d,_0x291de5:0x4fa,_0x12d352:0x229,_0x34ddec:0x16c,_0x2bd425:0x2be,_0x421d4d:0x2a7},_0x386318={_0x44b5a9:0x11a,_0x37c9d6:0x16b,_0x2d5912:0x144},_0x5d84c3={_0x23991c:0xd8},_0x204dd6=new Headers();function _0x38f03b(_0x26e1c6,_0x2b825e,_0x584bf4,_0x2261c4){return _0x22e674(_0x26e1c6-0x140,_0x2b825e-0xfd,_0x26e1c6,_0x584bf4- -_0x5d84c3._0x23991c);}_0x204dd6[_0x50e7c7(0x566,0x4c3,0x3fe,0x473)]('accept',_0xfab1e4[_0x50e7c7(0x469,_0x49907d._0x5d0bbd,0x557,0x40e)]),_0x204dd6[_0x50e7c7(0x46a,0x4c3,0x3e7,0x56b)](_0x50e7c7(_0x49907d._0x4bfd77,_0x49907d._0x2de04b,0x5a0,_0x49907d._0x5599b8),this[_0x38f03b(0x1c2,0x1eb,_0x49907d._0x11d1b6,0x227)]);_0xfab1e4[_0x50e7c7(0x51d,0x590,_0x49907d._0x41da2e,_0x49907d._0x2bbcae)]!==![]&&_0x204dd6[_0x50e7c7(_0x49907d._0x192832,0x4c3,0x4ef,0x4ad)](_0x38f03b(0x221,0x179,_0x49907d._0xb2802b,0x227),'application/json');this['authScheme']===_0x50e7c7(0x5ae,0x4eb,0x488,_0x49907d._0x505803)?_0x204dd6[_0x50e7c7(_0x49907d._0x49c783,0x4c3,0x505,0x561)](_0x38f03b(0x30a,_0x49907d._0x3813e5,0x31b,0x33a),_0x50e7c7(0x6b5,_0x49907d._0x2ee03c,_0x49907d._0x2d45ae,_0x49907d._0x147e98)+_0x2d232f[_0x38f03b(0x377,_0x49907d._0x3a2449,_0x49907d._0x59f43e,_0x49907d._0x1e938c)]['value']):_0x204dd6[_0x38f03b(_0x49907d._0x2be91a,0x267,0x2a7,0x295)](_0x38f03b(0x2b3,_0x49907d._0x3618a2,_0x49907d._0xf49b64,0x420),_0x2d232f[_0x38f03b(_0x49907d._0x560b1a,_0x49907d._0x295785,_0x49907d._0x5dfd76,0x250)]['value']);const _0x4b5b7b=await this[_0x38f03b(0x2e9,_0x49907d._0x1efba8,0x2df,0x2d6)]?.({'body':_0x2d232f[_0x50e7c7(_0x49907d._0x578f87,_0x49907d._0x48de8c,_0x49907d._0x52099e,_0x49907d._0xfbe7fc)],'credential':_0x2d232f[_0x38f03b(_0x49907d._0x5f241d,_0x49907d._0x2f1819,0x2e9,0x2df)],'request':_0x2d232f[_0x50e7c7(_0x49907d._0x405966,_0x49907d._0x423459,_0x49907d._0x10ee39,0x4e1)],'session':_0x2d232f['session'],'stream':_0x2d232f[_0x50e7c7(0x64d,_0x49907d._0x4ce79e,_0x49907d._0x291de5,0x51c)]});for(const [_0x948e2,_0x5d6da3]of Object[_0x38f03b(_0x49907d._0x12d352,0x32b,0x24f,_0x49907d._0x34ddec)](_0x4b5b7b??{})){_0x204dd6[_0x38f03b(_0x49907d._0x2bd425,0x385,_0x49907d._0x421d4d,0x255)](_0x948e2,_0x5d6da3);}function _0x50e7c7(_0x205018,_0xba0241,_0x484fa3,_0x3326f4){return _0x22e674(_0x205018-_0x386318._0x44b5a9,_0xba0241-_0x386318._0x37c9d6,_0x3326f4,_0xba0241-_0x386318._0x2d5912);}return _0x204dd6;}[_0x22e674(0x4ac,0x3a1,0x420,0x465)](_0x4fe177){return _0x4fe177;}[_0x532739(-0xfc,-0xb0,-0xc4,0xf)](_0x3c85f6,_0x2e7254){return resolveSessionBaseUrl(_0x3c85f6,_0x2e7254);}[_0x22e674(0x398,0x47c,0x378,0x3cf)](_0x3f172e,_0x5d3788){return resolveApiCredential(_0x3f172e,_0x5d3788);}async[_0x22e674(0x27a,0x2cf,0x338,0x300)](_0x28f3c4){return await createHttpError(_0x28f3c4);}},AnthropicModel=class extends RoutedModel{constructor(_0x2c8097={}){const _0x184add={_0x24ad37:0x601,_0x59fe77:0x530,_0x169d9f:0x502,_0x1f8dc8:0x599,_0x34cb56:0x5b3,_0x1ce66e:0x64f,_0x4d6f3c:0x5fa,_0xbaab5f:0x5b5,_0x5892aa:0x9,_0x3d8079:0x661,_0x210cbb:0x50b,_0x3513b0:0x542,_0x3fc43a:0x5b2,_0x507fea:0x594,_0x443fce:0x585,_0x1cda39:0x13f,_0x4b5898:0x8f,_0x4afbe2:0x32,_0x57f185:0x194,_0x1f33f9:0x514,_0x314a98:0x522,_0x5f57e0:0x524},_0x54fef1={_0x4ee161:0x12,_0x1aefe0:0x493},_0x493b13={_0x129051:0x82};function _0x10e793(_0x6397bd,_0x343827,_0x13e804,_0x30dd52){return _0x22e674(_0x6397bd-0x86,_0x343827-_0x493b13._0x129051,_0x343827,_0x30dd52-0x17c);}function _0x2da51c(_0xb46273,_0x1de24f,_0x50b17b,_0x24eb24){return _0x22e674(_0xb46273-0x80,_0x1de24f-_0x54fef1._0x4ee161,_0xb46273,_0x24eb24- -_0x54fef1._0x1aefe0);}super({'apiKey':_0x2c8097['apiKey'],'baseUrl':trimTrailingSlashes(_0x2c8097[_0x10e793(_0x184add._0x24ad37,0x5fd,0x6c8,0x609)]??_0x10e793(_0x184add._0x59fe77,_0x184add._0x169d9f,_0x184add._0x1f8dc8,_0x184add._0x34cb56)),'fetch':_0x2c8097['fetch'],'maxTokens':_0x2c8097[_0x10e793(0x573,_0x184add._0x1ce66e,_0x184add._0x4d6f3c,_0x184add._0xbaab5f)]??0x4000,'model':_0x2c8097[_0x2da51c(-0x27,0x31,-0x70,_0x184add._0x5892aa)]??_0x10e793(0x5da,_0x184add._0x3d8079,0x6ec,0x61c),'reasoning':_0x2c8097['reasoning'],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x2c8097['authScheme']??_0x10e793(_0x184add._0x210cbb,_0x184add._0x3513b0,_0x184add._0x3fc43a,_0x184add._0x507fea),'headerResolver':_0x2c8097[_0x10e793(0x5a8,0x4fd,_0x184add._0x443fce,0x533)],'protocolVersion':_0x2c8097[_0x2da51c(-0xdc,-_0x184add._0x1cda39,-0x16f,-0x129)]??_0x2da51c(0x9f,_0x184add._0x4b5898,-0xac,-_0x184add._0x4afbe2)}),'providerSessionResolver':_0x2c8097[_0x2da51c(-0x136,-0xf5,-0x129,-_0x184add._0x57f185)],'requestMutators':_0x2c8097[_0x10e793(_0x184add._0x1f33f9,_0x184add._0x314a98,_0x184add._0x5f57e0,0x4a0)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x532739(-0x1e4,-0x138,-0x1b6,-0x84)](_0x364bd7,_0x46feb2){const _0x458cd8={_0x4566ad:0x73,_0x93dcd0:0x11c},_0x1aed16={_0x58a876:0xf6,_0x14e976:0x493};function _0x2886ed(_0x47485a,_0x19adf9,_0x3bdf57,_0x32d18a){return _0x22e674(_0x47485a-_0x1aed16._0x58a876,_0x19adf9-0x1ad,_0x3bdf57,_0x32d18a- -_0x1aed16._0x14e976);}return this[_0x2886ed(-0x84,-_0x458cd8._0x4566ad,-0x128,-_0x458cd8._0x93dcd0)](_0x364bd7,ANTHROPIC_MESSAGES_SURFACE,_0x46feb2);}[_0x22e674(0x42e,0x40d,0x48b,0x429)](_0x5767f6,_0x3c1e82){const _0x1fec58={_0x228f5d:0x385},_0x44afcd={_0x382f14:0x1f0};function _0x3d25d1(_0x384821,_0x233cfe,_0x56ad2f,_0x4ec002){return _0x22e674(_0x384821-_0x44afcd._0x382f14,_0x233cfe-0x9a,_0x384821,_0x4ec002- -0x3a);}return this[_0x3d25d1(0x386,0x321,0x2a8,_0x1fec58._0x228f5d)](_0x5767f6,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x3c1e82);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x532739(-0x280,-0x1b1,-0x282,-0x215),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE='openai-chat-completions-stream',OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x22e674(0x42e,0x3fa,0x3dc,0x3d2),OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0x22e674(0x39f,0x3be,0x31a,0x3f5)];[_0x532739(-0x19e,-0xc7,-0x158,-0x106)];constructor(_0x4bd080,_0x1120ee,_0x4530e2){const _0x3afa25={_0xc6f858:0x3e4,_0x2bc009:0x4bb,_0x3a5e62:0x444,_0x3a6b4e:0x394,_0x50da90:0x442,_0x149573:0x505,_0x1eb3ff:0x580,_0x31c442:0x430,_0x4d29da:0x454},_0x1916c8={_0x237a54:0x47b,_0x30767e:0x1d9},_0x3b8a00={_0x17bcb8:0x9a};super(_0x4530e2);function _0x23cc51(_0x459497,_0x901272,_0x575e83,_0x569bba){return _0x22e674(_0x459497-_0x3b8a00._0x17bcb8,_0x901272-0x174,_0x569bba,_0x575e83-0x180);}this[_0x23cc51(0x559,_0x3afa25._0xc6f858,_0x3afa25._0x2bc009,_0x3afa25._0x3a5e62)]=_0x62958b(0x3f7,_0x3afa25._0x3a6b4e,_0x3afa25._0x50da90,0x434),this[_0x23cc51(_0x3afa25._0x149573,_0x3afa25._0x1eb3ff,0x575,0x5fc)]=_0x4bd080;function _0x62958b(_0x29554a,_0x4ba63d,_0x4a5b69,_0x1835c5){return _0x532739(_0x1835c5,_0x4ba63d-_0x1916c8._0x237a54,_0x4a5b69-0x55,_0x1835c5-_0x1916c8._0x30767e);}this[_0x62958b(_0x3afa25._0x31c442,0x3b4,0x3dc,_0x3afa25._0x4d29da)]=_0x1120ee;}};function stringifySystem(_0x9c8e91){const _0x1c1de0={_0x137ff7:0xb2},_0x2a0b95={_0x8ba7dd:0x15d},_0xda61b={_0x204ba8:0xa6};function _0x43e74d(_0xe6e4e5,_0x183b25,_0x476666,_0xaaf6a9){return _0x22e674(_0xe6e4e5-_0xda61b._0x204ba8,_0x183b25-0xfc,_0xaaf6a9,_0xe6e4e5- -0x2ad);}function _0x25ae94(_0x4c38a0,_0x421562,_0x19d9d6,_0xaa2a81){return _0x532739(_0xaa2a81,_0x421562-0x11a,_0x19d9d6-_0x2a0b95._0x8ba7dd,_0xaa2a81-0x103);}return _0x9c8e91['map'](_0x5d9bd8=>_0x5d9bd8[_0x25ae94(0x95,0x81,0x110,0x86)])[_0x25ae94(-_0x1c1de0._0x137ff7,-0xef,-0x4d,-0x13b)]('\x0a\x0a');}function createToolDefinitions(_0xf0e34c){const _0x302ae8={_0x41e278:0x15f,_0x3681a3:0x9,_0x2bf4c0:0x92,_0x8cbc17:0x134,_0x369151:0xcd,_0x54ca41:0x128},_0x43b39f={_0x3babe0:0x547,_0xe82071:0x3d5,_0x348164:0x46e},_0x283e6f={_0x3a6367:0x88},_0x887389={_0x130572:0x26f};function _0x4e6ffc(_0x3d426c,_0x10fd1a,_0x1b0e2e,_0x26399d){return _0x532739(_0x26399d,_0x10fd1a-_0x887389._0x130572,_0x1b0e2e-0x1e3,_0x26399d-0xa8);}function _0x2df539(_0x452f28,_0x1b1728,_0x519bc1,_0x3d3906){return _0x532739(_0x452f28,_0x3d3906-0x24a,_0x519bc1-0x126,_0x3d3906-0xb5);}if(_0xf0e34c[_0x2df539(_0x302ae8._0x41e278,-0x35,_0x302ae8._0x3681a3,_0x302ae8._0x2bf4c0)]===0x0)return void 0x0;return _0xf0e34c[_0x4e6ffc(_0x302ae8._0x8cbc17,_0x302ae8._0x369151,0x3b,_0x302ae8._0x54ca41)](_0xd42030=>{function _0x8bf9bc(_0x4d870d,_0x28c507,_0x2d0a55,_0xe36c0f){return _0x2df539(_0x2d0a55,_0x28c507-_0x283e6f._0x3a6367,_0x2d0a55-0x165,_0xe36c0f-0x307);}function _0x119613(_0x276ebc,_0x25e5ef,_0x463fe1,_0x12e85b){return _0x4e6ffc(_0x276ebc-0x1c7,_0x463fe1-0x1d7,_0x463fe1-0xf4,_0x276ebc);}return{'type':_0x8bf9bc(0x535,0x5ad,_0x43b39f._0x3babe0,0x4ca),'function':{'name':_0xd42030[_0x119613(0x31b,0x356,0x27f,0x241)],'description':_0xd42030[_0x119613(0x3f5,0x2ac,0x38b,0x2c1)],'parameters':_0xd42030[_0x8bf9bc(0x43a,_0x43b39f._0xe82071,0x507,_0x43b39f._0x348164)]}};});}function isImageToolResultBlock(_0x42f990){const _0x510ca7={_0x35e9e5:0x686,_0xd4b505:0x52f,_0x44a657:0x59f,_0x1e9fe5:0x4e8,_0x3aa1fc:0x444,_0x5f20ef:0x160,_0x398ae4:0x60,_0x163450:0x9,_0x52e417:0x7e,_0x43b90a:0xf4,_0x44a20a:0x153,_0x202536:0xa2,_0x3d1967:0x152,_0x2825ca:0x6c,_0x58abdc:0x128},_0x168b6f={_0x405dbf:0x62a,_0x4d19f9:0x18c,_0x4b2ffc:0x10c};function _0x51dc3a(_0x11b9d1,_0x13bb61,_0xa6ac65,_0x2d94e3){return _0x532739(_0x13bb61,_0xa6ac65-_0x168b6f._0x405dbf,_0xa6ac65-_0x168b6f._0x4d19f9,_0x2d94e3-_0x168b6f._0x4b2ffc);}function _0x24514c(_0x1ad789,_0x3afcf7,_0xe42994,_0x2b1ec6){return _0x532739(_0x1ad789,_0xe42994-0x1bb,_0xe42994-0x159,_0x2b1ec6-0x1c2);}if(typeof _0x42f990!==_0x51dc3a(_0x510ca7._0x35e9e5,0x50d,0x5c9,0x517)||_0x42f990===null||Array[_0x51dc3a(0x676,_0x510ca7._0xd4b505,_0x510ca7._0x44a657,0x5cc)](_0x42f990))return![];const _0x1387e6=_0x42f990;return _0x1387e6[_0x51dc3a(0x491,0x511,_0x510ca7._0x1e9fe5,_0x510ca7._0x3aa1fc)]==='image'&&_0x1387e6['source']?.[_0x24514c(_0x510ca7._0x5f20ef,-_0x510ca7._0x398ae4,0x79,_0x510ca7._0x163450)]===_0x24514c(0x62,_0x510ca7._0x52e417,0xf6,_0x510ca7._0x43b90a)&&typeof _0x1387e6[_0x24514c(0x123,_0x510ca7._0x44a20a,_0x510ca7._0x202536,_0x510ca7._0x3d1967)][_0x24514c(0x117,0x12d,0x11c,0x1d3)]==='string'&&typeof _0x1387e6['source'][_0x24514c(0xce,-0x2e,_0x510ca7._0x2825ca,_0x510ca7._0x58abdc)]==='string';}function getToolResultText(_0x5e860b){const _0x6fa8a={_0x3f1ef0:0x225,_0x5e4c10:0x2e7,_0x423176:0x210,_0x1b0a0a:0x28c,_0x75d6f6:0x310,_0x440c7a:0x133,_0x122edc:0x3c1,_0x43440c:0x395},_0x565f57={_0x4d9193:0x5cb,_0x8fe7ad:0x74a,_0x3cc6ca:0x6a6,_0x46164f:0x544,_0x29b8b6:0x579,_0x39a7b0:0x544,_0x4e084f:0x5ed,_0x182e3d:0x582},_0xd752fa={_0x100c2a:0x506,_0x1ce312:0x125,_0x406405:0x1a3},_0x396785={_0x4f96c5:0x195,_0x211aae:0x15c,_0x18bd49:0x1c6};if(typeof _0x5e860b===_0x150cca(_0x6fa8a._0x3f1ef0,_0x6fa8a._0x5e4c10,_0x6fa8a._0x423176,_0x6fa8a._0x1b0a0a))return _0x5e860b;function _0x150cca(_0x3cb00b,_0x3bdbfe,_0xa64bb7,_0x33176d){return _0x22e674(_0x3cb00b-_0x396785._0x4f96c5,_0x3bdbfe-_0x396785._0x211aae,_0x33176d,_0xa64bb7- -_0x396785._0x18bd49);}function _0x4bbf9f(_0x55128d,_0x11a4db,_0x26ec29,_0x22da93){return _0x532739(_0x55128d,_0x26ec29-_0xd752fa._0x100c2a,_0x26ec29-_0xd752fa._0x1ce312,_0x22da93-_0xd752fa._0x406405);}const _0x6db0ac=_0x5e860b[_0x150cca(0x1da,0x24b,0x216,0x1f7)](_0x3b5aa5=>{const _0x1c9f55={_0x370bc5:0x30},_0x3c8328={_0x2057d4:0xbe};function _0x239f9a(_0x2b5f8b,_0x4f44ae,_0x53cc1f,_0x4d4efd){return _0x4bbf9f(_0x4f44ae,_0x4f44ae-0x1c2,_0x4d4efd-0x201,_0x4d4efd-_0x3c8328._0x2057d4);}function _0x3f93d2(_0x4cbb11,_0x4fb5f1,_0x1d81cc,_0x167011){return _0x150cca(_0x4cbb11-_0x1c9f55._0x370bc5,_0x4fb5f1-0x90,_0x4cbb11-0x34a,_0x1d81cc);}return typeof _0x3b5aa5===_0x239f9a(_0x565f57._0x4d9193,0x6f5,_0x565f57._0x8fe7ad,_0x565f57._0x3cc6ca)&&_0x3b5aa5!==null&&_0x3b5aa5[_0x3f93d2(_0x565f57._0x46164f,_0x565f57._0x29b8b6,0x5f5,_0x565f57._0x39a7b0)]===_0x3f93d2(_0x565f57._0x4e084f,_0x565f57._0x182e3d,0x605,0x5ee);})[_0x4bbf9f(0x314,_0x6fa8a._0x75d6f6,0x364,0x2f5)](_0x476624=>_0x476624['text'])[_0x150cca(0xfd,0x138,_0x6fa8a._0x440c7a,0x1c3)]('\x0a\x0a')['trim']();return _0x6db0ac[_0x4bbf9f(_0x6fa8a._0x122edc,0x38b,0x34e,_0x6fa8a._0x43440c)]>0x0?_0x6db0ac:'Tool\x20returned\x20image\x20content.';}function getToolResultImages(_0x246832){const _0x547204={_0x50ecfa:0x351,_0x26b25d:0x3a0,_0x435ae4:0x32e},_0x16585d={_0x58e67d:0x1c8},_0x1bc354={_0x44579c:0x67,_0x1ccd15:0x5f,_0x1cce87:0x18e};function _0x40bf43(_0x5ce32b,_0x33585d,_0x4661a3,_0x29a3da){return _0x22e674(_0x5ce32b-_0x1bc354._0x44579c,_0x33585d-_0x1bc354._0x1ccd15,_0x4661a3,_0x29a3da- -_0x1bc354._0x1cce87);}function _0x2f2495(_0x1b0459,_0x38da1e,_0x2837a5,_0x19abf1){return _0x532739(_0x2837a5,_0x19abf1-0x419,_0x2837a5-_0x16585d._0x58e67d,_0x19abf1-0x1be);}return Array[_0x2f2495(0x2ac,0x3be,0x2c0,0x38e)](_0x246832)?_0x246832[_0x2f2495(_0x547204._0x50ecfa,_0x547204._0x26b25d,_0x547204._0x435ae4,0x2f3)](isImageToolResultBlock):[];}function parseToolInput2(_0x2cbfba){if(_0x2cbfba['length']===0x0)return{};try{return JSON['parse'](_0x2cbfba);}catch{return _0x2cbfba;}}function isResponsesReasoningItem(_0x4d13f3){return typeof _0x4d13f3==='object'&&_0x4d13f3!==null&&'type'in _0x4d13f3&&_0x4d13f3['type']==='reasoning';}function isResponsesMessageItem(_0x36c0b9){const _0x17b7cc={_0x4dcb1c:0x22,_0x41d0af:0x27a,_0x115f32:0x2e3},_0x3e908a={_0x29c0b7:0x348},_0x2f419d={_0x23d213:0x99};function _0x8755f4(_0x29ba84,_0x351057,_0x4c639f,_0x3a5b01){return _0x532739(_0x3a5b01,_0x4c639f-0x418,_0x4c639f-0x8e,_0x3a5b01-_0x2f419d._0x23d213);}function _0x31f677(_0xb2ec4e,_0x294914,_0x165aac,_0x4d1bfc){return _0x22e674(_0xb2ec4e-0x6,_0x294914-0xd5,_0x4d1bfc,_0x294914- -_0x3e908a._0x29c0b7);}return typeof _0x36c0b9===_0x8755f4(0x338,0x352,0x3b7,0x2e8)&&_0x36c0b9!==null&&_0x31f677(-_0x17b7cc._0x4dcb1c,0x78,0xc2,-0x23)in _0x36c0b9&&_0x36c0b9[_0x8755f4(_0x17b7cc._0x41d0af,0x2b5,0x2d6,_0x17b7cc._0x115f32)]==='message';}function isResponsesFunctionCallItem(_0x21ea64){const _0x3983c3={_0x22ab1f:0x3e0,_0x389eee:0x4bc,_0x2ad80b:0x413,_0x4b1a25:0x3db,_0x13cf99:0x4f7},_0x571ca2={_0x6d1f0b:0x68,_0x3a37f4:0x15},_0x9c0a3f={_0xd83d48:0x453,_0x31b358:0x11};function _0x3e4860(_0x4e8f2a,_0x1b6ee5,_0x51b6c0,_0x526139){return _0x532739(_0x51b6c0,_0x4e8f2a-_0x9c0a3f._0xd83d48,_0x51b6c0-0xfc,_0x526139-_0x9c0a3f._0x31b358);}function _0x4dddad(_0x4b0ff3,_0x3a7aa8,_0x1f9ec0,_0x5813f1){return _0x22e674(_0x4b0ff3-_0x571ca2._0x6d1f0b,_0x3a7aa8-_0x571ca2._0x3a37f4,_0x5813f1,_0x3a7aa8-0x1b);}return typeof _0x21ea64===_0x4dddad(_0x3983c3._0x22ab1f,_0x3983c3._0x389eee,0x55d,0x456)&&_0x21ea64!==null&&_0x4dddad(_0x3983c3._0x2ad80b,_0x3983c3._0x4b1a25,0x3ed,0x49e)in _0x21ea64&&_0x21ea64['type']===_0x4dddad(0x42d,0x439,0x455,_0x3983c3._0x13cf99);}function createContentBlocks(_0xd78a66,_0x3c7937,_0x50a7e0){const _0x32e9c6={_0xe45e2f:0x490,_0xfd9cae:0x48d,_0x40713b:0x50b,_0x3ff6d4:0x4dd,_0x38cc5d:0x57b,_0x2f907e:0x4d0,_0x17c71e:0x598,_0x2a6e7c:0x5f2,_0x54fb1d:0x5a1,_0x47338e:0x3d2,_0x38c34a:0x3a5,_0x4320f3:0x4f0,_0x433294:0x538,_0x104855:0x501,_0x40c775:0x4f1,_0x4d1bb4:0x510,_0x5f4511:0x41f,_0x60b5cb:0x5c0,_0x36e4a0:0x47e,_0x4c0890:0x462,_0x88956e:0x422,_0x51db3c:0x434,_0x3fd81e:0x387,_0x328495:0x2f8,_0x4890dd:0x3c3,_0x150606:0x48b,_0x94aac3:0x4e0,_0x1b9cdf:0x481,_0x7f3aff:0x5e6,_0x1d9ee8:0x4e5,_0x4bb55a:0x48c,_0x526efc:0x546},_0x272e7d={_0x155892:0x58a,_0x545a1c:0x1,_0x44d637:0xbc},_0x53c5a7=[];_0x50a7e0&&_0x50a7e0[_0x1ae3cc(_0x32e9c6._0xe45e2f,_0x32e9c6._0xfd9cae,0x4c5,_0x32e9c6._0x40713b)]>0x0&&_0x53c5a7[_0x1ae3cc(0x565,_0x32e9c6._0x3ff6d4,0x57c,_0x32e9c6._0x38cc5d)]({'type':_0x1ae3cc(_0x32e9c6._0x2f907e,_0x32e9c6._0x17c71e,_0x32e9c6._0x2a6e7c,_0x32e9c6._0x54fb1d),'summary':[],'text':_0x50a7e0});function _0x3d5537(_0x468e71,_0x2886e2,_0x28aa01,_0x1b84b4){return _0x532739(_0x468e71,_0x28aa01-_0x272e7d._0x155892,_0x28aa01-_0x272e7d._0x545a1c,_0x1b84b4-_0x272e7d._0x44d637);}function _0x1ae3cc(_0x34c809,_0x1443ef,_0xc1cc1c,_0x5aac80){return _0x22e674(_0x34c809-0xac,_0x1443ef-0x72,_0xc1cc1c,_0x1443ef-0x143);}_0xd78a66[_0x3d5537(0x349,0x467,_0x32e9c6._0x47338e,_0x32e9c6._0x38c34a)]>0x0&&_0x53c5a7[_0x1ae3cc(0x434,0x4dd,_0x32e9c6._0x4320f3,0x4a6)]({'type':_0x3d5537(_0x32e9c6._0x433294,_0x32e9c6._0x104855,_0x32e9c6._0x40c775,_0x32e9c6._0x4d1bb4),'text':_0xd78a66});for(const _0x333191 of _0x3c7937){if(_0x333191['id'][_0x1ae3cc(0x4d7,0x43d,0x3b9,0x408)]()[_0x3d5537(_0x32e9c6._0x5f4511,0x3c3,0x3d2,0x43e)]===0x0||_0x333191[_0x1ae3cc(0x63b,0x5be,0x5a9,_0x32e9c6._0x60b5cb)][_0x1ae3cc(0x4ab,_0x32e9c6._0x36e4a0,0x50f,_0x32e9c6._0x4c0890)]['trim']()[_0x3d5537(0x4a8,0x470,0x3d2,0x467)]===0x0)continue;_0x53c5a7[_0x3d5537(0x3ab,0x3ea,_0x32e9c6._0x88956e,0x452)]({'type':_0x3d5537(0x4be,0x469,_0x32e9c6._0x51db3c,0x4a2),'id':_0x333191['id'],'name':_0x333191['function'][_0x3d5537(_0x32e9c6._0x3fd81e,_0x32e9c6._0x328495,_0x32e9c6._0x4890dd,_0x32e9c6._0x150606)],'input':parseToolInput2(_0x333191[_0x3d5537(_0x32e9c6._0x94aac3,_0x32e9c6._0x1b9cdf,0x503,_0x32e9c6._0x7f3aff)][_0x1ae3cc(_0x32e9c6._0x1d9ee8,_0x32e9c6._0x4bb55a,0x3d8,_0x32e9c6._0x526efc)])});}return _0x53c5a7;}function createUsage(_0x38d94e){const _0x439bdb={_0x4651e7:0x9f,_0x1bbdfa:0x39e,_0x3e099e:0x23c,_0x4d0f5a:0x2f,_0xc48773:0x2a,_0x3f6069:0xda,_0x2c26ec:0xd8},_0x3dad1b={_0x479ea8:0x258},_0x378493={_0x1407b5:0x196};function _0x48da22(_0x36b0d7,_0x4a76dd,_0x1ce281,_0x52c18f){return _0x532739(_0x52c18f,_0x1ce281-0x35e,_0x1ce281-_0x378493._0x1407b5,_0x52c18f-0x3c);}function _0x4dcf25(_0x27f051,_0x572ff6,_0x5d0fd4,_0x406d05){return _0x22e674(_0x27f051-0x1a0,_0x572ff6-0xa7,_0x5d0fd4,_0x406d05- -_0x3dad1b._0x479ea8);}return{'inputTokens':_0x38d94e?.[_0x4dcf25(_0x439bdb._0x4651e7,0x1b8,0x95,0xff)]??0x0,'outputTokens':_0x38d94e?.[_0x48da22(0x297,_0x439bdb._0x1bbdfa,0x2d9,_0x439bdb._0x3e099e)]??0x0,..._0x38d94e?.[_0x4dcf25(_0x439bdb._0x4d0f5a,0x1b,0x144,0xd8)]?.[_0x48da22(0x163,0x297,0x1b4,0xff)]!==void 0x0?{'reasoningTokens':_0x38d94e[_0x4dcf25(0xcc,_0x439bdb._0xc48773,_0x439bdb._0x3f6069,_0x439bdb._0x2c26ec)]['reasoning_tokens']}:{}};}function resolveReasoningVisibility2(_0x3e4cb8){const _0x3bea9b={_0x3a54a3:0x4d8,_0x53e6a6:0x439,_0x393cfe:0x59e,_0x38f1cb:0x58c,_0x2f5222:0x5b1,_0x3dce9b:0x569},_0xb83b80={_0x6a5a84:0x124},_0x307bd3={_0x272370:0x1b6};function _0x1230eb(_0x52c0d3,_0x5272f2,_0xec8ed4,_0x51e6b5){return _0x22e674(_0x52c0d3-0x17b,_0x5272f2-_0x307bd3._0x272370,_0x5272f2,_0xec8ed4- -0x1f7);}function _0x243c7b(_0x256f5d,_0x15e385,_0x5dbf82,_0x1f93bc){return _0x22e674(_0x256f5d-0x104,_0x15e385-0x149,_0x5dbf82,_0x1f93bc-_0xb83b80._0x6a5a84);}return _0x3e4cb8[_0x243c7b(_0x3bea9b._0x3a54a3,_0x3bea9b._0x53e6a6,0x467,0x487)]?.['visibility']??_0x243c7b(_0x3bea9b._0x393cfe,_0x3bea9b._0x38f1cb,_0x3bea9b._0x2f5222,_0x3bea9b._0x3dce9b);}function isUserVisibleReasoning(_0x3e1164){const _0x331e62={_0x27ec2f:0x218},_0x3966f2={_0x561544:0x85,_0x31e0fd:0x131};function _0xfce7d7(_0xe2432c,_0x128683,_0xa29731,_0xe7af48){return _0x22e674(_0xe2432c-_0x3966f2._0x561544,_0x128683-_0x3966f2._0x31e0fd,_0xe7af48,_0xa29731- -0x205);}return resolveOpenAiReasoningConfig(_0x3e1164[_0xfce7d7(_0x331e62._0x27ec2f,0x22a,0x15e,0x9a)])!==void 0x0&&resolveReasoningVisibility2(_0x3e1164)==='user-visible';}function createChatRequestBody(_0x441f94,_0x9c530e){const _0x1db63a={_0xbfb957:0x2d1,_0x3c9507:0x386,_0x100562:0xb9,_0x58a92a:0xb2,_0x541687:0xe3,_0x39a743:0x9,_0x3c09c8:0x3fc,_0xd8fa4b:0x515,_0x3f8cfb:0x541,_0x5d548e:0x475,_0xc8390a:0x42b,_0x2b1861:0x3ee,_0x1280fb:0x3e2,_0x2e2cee:0x426,_0x70da1c:0xb9,_0x2402c1:0x120,_0x42876e:0x19d,_0x396ee8:0x33d,_0x2be16d:0x3ed,_0x5ed6d9:0x40a,_0x232fe0:0x29,_0x2420f6:0x3f1,_0x1af7a1:0x53,_0x36a20a:0x43,_0x4c7df0:0x89,_0x22d22a:0x86,_0x499548:0x13,_0x5e7a53:0x37,_0x3d67bd:0xaf,_0x5ebc20:0x443,_0x4f8ed3:0x518,_0x474a68:0x49f,_0xd37a0:0x4cd,_0x49ae39:0x45f,_0x236368:0x6a,_0x4c7aba:0x3f,_0x3a4e62:0x93,_0x147fd7:0x16c,_0x372b76:0x82,_0x158d0f:0x2d,_0xe3fcd8:0xb9,_0x4bebdb:0x11,_0x5331af:0x2fc,_0x5c9de0:0x377,_0x498862:0x10a,_0x4aa826:0x158,_0x2cf24c:0x162,_0x226378:0x173,_0x1bf8c4:0x1ec,_0x384e1b:0x195,_0x297e2b:0x2c,_0x103363:0x113,_0x2ae861:0x490,_0x1264fd:0x34c,_0x287a38:0x399,_0x133afa:0x3f1,_0x5554a8:0x45d,_0x5393de:0x3d6,_0x543cdd:0x3ae,_0x105304:0x535,_0x465ff4:0x46b,_0xa12a08:0x46e,_0x85687a:0x395,_0x578b3f:0x9,_0x32d134:0x70,_0x598fcc:0xd1,_0x2a1494:0xb9,_0x47feb7:0x132,_0x3e1224:0x7a,_0x54cf02:0x501,_0x384b9e:0x46e,_0x27f7c8:0x41a,_0x1a8ca0:0x426,_0x1d6904:0xb0,_0x4393a2:0x54e,_0x49c6e0:0x41a,_0x8c825:0x56d,_0x4526da:0x4a9,_0x191904:0x104,_0x149d54:0xed,_0x384f52:0x143,_0x1c743f:0x3f6,_0x223c18:0x2b8,_0x377b84:0x39c,_0x30d253:0xf0,_0x5b070d:0xc9,_0x17b6a8:0x66,_0x23e650:0xc7,_0x53bdb8:0x1a,_0x54c081:0x465,_0x43c02d:0x506,_0x3eb15c:0x4e1,_0x50daaf:0x3dd,_0x1308ad:0x330,_0x52171f:0x3ec,_0x40b668:0xfc,_0x33df46:0x10c},_0x3b0362={_0x1e5335:0x5a3,_0xde9c3c:0x5f0,_0x269844:0x161,_0x486724:0x61f,_0x49f300:0x596,_0x1efa8e:0x635,_0x19e41e:0x1d4,_0x154c7b:0x1d9,_0x47b6dd:0x552,_0x2eaa9b:0x53c,_0x4dfb4:0x4e9,_0x3a9dee:0x76c,_0x357ced:0x6b2,_0x2ae313:0x249,_0x1749f1:0x2a3,_0x45b727:0x2af,_0x307b8a:0x683,_0x1a149d:0x70c,_0x3f986f:0x274,_0x21577a:0x1d6,_0xb674ed:0x2b2,_0x9486:0x25d,_0x5e9778:0x30b,_0x11a5e2:0x224,_0x43558f:0x1f6,_0x47240e:0x217,_0x2d7557:0x264,_0x3ab2b4:0x63f,_0x135208:0x51a,_0x2e4f3a:0x4be,_0x2d4e8a:0x2a0,_0x23c136:0x28b,_0x5efcbc:0x2df,_0x581971:0x2b4,_0x341351:0x1e1,_0x3ddf9b:0x1db,_0x13d7a3:0x367},_0x12cdf2={_0x366c25:0x21d},_0x46c116={_0x17bd7d:0xca},_0x4e87d0={_0x10db59:0xd,_0x247729:0xf8},_0x135bfb=[];function _0x397014(_0x2e4258,_0x3e8232,_0x5e7139,_0x217611){return _0x532739(_0x3e8232,_0x217611-0x53e,_0x5e7139-_0x4e87d0._0x10db59,_0x217611-_0x4e87d0._0x247729);}function _0x58fe92(_0x843fb,_0x5b5d4a,_0x1591cc,_0x3ada82){return _0x22e674(_0x843fb-0xf7,_0x5b5d4a-_0x46c116._0x17bd7d,_0x3ada82,_0x843fb- -0x453);}const _0x721ccb=stringifySystem(_0x441f94['system']);_0x721ccb[_0x397014(_0x1db63a._0xbfb957,0x3fe,0x36a,_0x1db63a._0x3c9507)]>0x0&&_0x135bfb[_0x58fe92(-_0x1db63a._0x100562,-_0x1db63a._0x58a92a,-0x9a,-0x8c)]({'role':'system','content':_0x721ccb});for(const _0x8611a3 of _0x441f94[_0x58fe92(-_0x1db63a._0x541687,-0x159,-0xa6,-0x193)]){const _0x61d439=[],_0x566823=[],_0x8bb99e=[],_0x5c0f79=()=>{function _0x49caab(_0x33c3f5,_0x27a82c,_0x312788,_0x4efc03){return _0x58fe92(_0x33c3f5-0x2dd,_0x27a82c-0x105,_0x312788-0x16c,_0x312788);}function _0x4373ee(_0x1cfe6a,_0x559325,_0x5bbb52,_0x3b106d){return _0x397014(_0x1cfe6a-0xaf,_0x559325,_0x5bbb52-0x67,_0x1cfe6a-_0x12cdf2._0x366c25);}if(_0x8611a3['role']===_0x49caab(0x250,0x2cf,0x189,0x29f)){if(_0x61d439[_0x4373ee(_0x3b0362._0x1e5335,_0x3b0362._0xde9c3c,0x626,0x5f7)]===0x0&&_0x566823[_0x4373ee(_0x3b0362._0x1e5335,0x57d,0x538,0x5e0)]===0x0)return;_0x135bfb[_0x49caab(0x224,0x229,_0x3b0362._0x269844,0x298)]({'role':_0x4373ee(_0x3b0362._0x486724,_0x3b0362._0x49f300,_0x3b0362._0x1efa8e,0x5ef),'content':_0x61d439[_0x49caab(_0x3b0362._0x19e41e,_0x3b0362._0x154c7b,0x1e9,0x17c)]>0x0?_0x61d439['join']('\x0a\x0a'):null,..._0x566823[_0x4373ee(_0x3b0362._0x1e5335,_0x3b0362._0x47b6dd,_0x3b0362._0x2eaa9b,_0x3b0362._0x4dfb4)]>0x0?{'tool_calls':_0x566823[_0x4373ee(0x6aa,_0x3b0362._0x3a9dee,_0x3b0362._0x357ced,0x611)](0x0)}:{}}),_0x61d439[_0x49caab(_0x3b0362._0x19e41e,_0x3b0362._0x2ae313,_0x3b0362._0x1749f1,_0x3b0362._0x45b727)]=0x0;return;}if(_0x8611a3[_0x4373ee(_0x3b0362._0x307b8a,_0x3b0362._0x1a149d,0x5c2,0x5d9)]===_0x49caab(_0x3b0362._0x3f986f,0x237,_0x3b0362._0x21577a,_0x3b0362._0xb674ed)){if(_0x8bb99e['length']===0x0)return;const _0x2a9193=_0x8bb99e[_0x49caab(_0x3b0362._0x9486,0x31a,_0x3b0362._0x5e9778,0x219)](_0x4f34e3=>_0x4f34e3[_0x4373ee(0x619,0x563,0x64a,0x679)]===_0x4373ee(0x6bf,0x674,0x669,0x67e));_0x135bfb[_0x49caab(_0x3b0362._0x11a5e2,_0x3b0362._0x43558f,0x1ab,0x17c)]({'role':_0x49caab(0x274,_0x3b0362._0x47240e,0x1cd,_0x3b0362._0x2d7557),'content':_0x2a9193?_0x8bb99e['splice'](0x0):_0x8bb99e['splice'](0x0)[_0x4373ee(_0x3b0362._0x1efa8e,_0x3b0362._0x3ab2b4,0x707,0x55f)](_0x21af8f=>_0x21af8f[_0x4373ee(0x619,0x666,0x648,0x699)]===_0x49caab(0x2f3,0x350,0x2e8,0x222))[_0x4373ee(0x5b9,0x5fc,0x690,0x4e9)](_0x2ca7cb=>_0x2ca7cb[_0x49caab(0x2f3,0x39a,0x364,0x29b)])[_0x4373ee(0x552,_0x3b0362._0x135208,0x49a,_0x3b0362._0x2e4f3a)]('\x0a\x0a')});return;}if(_0x61d439['length']===0x0)return;_0x135bfb[_0x49caab(_0x3b0362._0x11a5e2,_0x3b0362._0x2d4e8a,_0x3b0362._0x23c136,_0x3b0362._0x5efcbc)]({'role':_0x8611a3[_0x49caab(_0x3b0362._0x581971,_0x3b0362._0x341351,_0x3b0362._0x3ddf9b,_0x3b0362._0x13d7a3)],'content':_0x61d439[_0x49caab(0x183,0x256,0x222,0x116)]('\x0a\x0a')}),_0x61d439[_0x49caab(_0x3b0362._0x19e41e,0xfd,0x293,0x2b9)]=0x0;};for(const _0x162e06 of normalizeContent(_0x8611a3[_0x58fe92(-0x9,-0x44,0x51,_0x1db63a._0x39a743)])){if(_0x162e06[_0x397014(0x381,0x3dc,0x395,_0x1db63a._0x3c09c8)]===_0x397014(0x546,_0x1db63a._0xd8fa4b,0x4f6,0x4a5)){_0x8611a3[_0x397014(_0x1db63a._0x3f8cfb,_0x1db63a._0x5d548e,0x517,0x466)]===_0x397014(_0x1db63a._0xc8390a,_0x1db63a._0x2b1861,_0x1db63a._0x1280fb,_0x1db63a._0x2e2cee)?_0x8bb99e[_0x58fe92(-_0x1db63a._0x70da1c,-0x190,-_0x1db63a._0x2402c1,-_0x1db63a._0x42876e)]({'type':'text','text':_0x162e06['text']}):_0x61d439[_0x397014(_0x1db63a._0x396ee8,0x3db,_0x1db63a._0x2be16d,0x3d6)](_0x162e06[_0x397014(_0x1db63a._0x5ed6d9,0x571,0x453,0x4a5)]);continue;}if(_0x8611a3[_0x58fe92(-_0x1db63a._0x232fe0,-0x5f,-0xb,-0xba)]===_0x397014(_0x1db63a._0x2420f6,0x509,0x353,0x426)&&_0x162e06[_0x58fe92(-0x93,-_0x1db63a._0x1af7a1,_0x1db63a._0x36a20a,-_0x1db63a._0x4c7df0)]===_0x58fe92(0x5a,-_0x1db63a._0x22d22a,0x84,0xf)){_0x8bb99e['push']({'type':_0x58fe92(_0x1db63a._0x499548,-_0x1db63a._0x5e7a53,-_0x1db63a._0x3d67bd,0x61),'image_url':{'url':_0x397014(0x3eb,_0x1db63a._0x5ebc20,0x3fe,0x471)+_0x162e06['source'][_0x397014(0x507,_0x1db63a._0x4f8ed3,0x520,_0x1db63a._0x474a68)]+_0x397014(_0x1db63a._0xd37a0,0x457,_0x1db63a._0x49ae39,0x496)+_0x162e06[_0x58fe92(-_0x1db63a._0x236368,-0x23,0x20,-_0x1db63a._0x4c7aba)]['data']}});continue;}if(_0x162e06[_0x58fe92(-_0x1db63a._0x3a4e62,-_0x1db63a._0x147fd7,-0x116,-0x3f)]===_0x58fe92(-0xa7,-_0x1db63a._0x372b76,0x1a,_0x1db63a._0x158d0f)){_0x566823[_0x58fe92(-_0x1db63a._0xe3fcd8,-_0x1db63a._0x4bebdb,-0x15e,-0x173)]({'id':_0x162e06['id'],'type':'function','function':{'name':_0x162e06[_0x397014(0x3a0,0x446,_0x1db63a._0x5331af,_0x1db63a._0x5c9de0)],'arguments':JSON[_0x58fe92(-0x10e,-_0x1db63a._0x498862,-_0x1db63a._0x4aa826,-0x1c9)](_0x162e06[_0x58fe92(-_0x1db63a._0x2cf24c,-_0x1db63a._0x226378,-_0x1db63a._0x1bf8c4,-_0x1db63a._0x384e1b)]??{})}});continue;}if(_0x162e06[_0x58fe92(-_0x1db63a._0x3a4e62,-_0x1db63a._0x297e2b,-_0x1db63a._0x103363,-0x12c)]!==_0x397014(_0x1db63a._0x2ae861,_0x1db63a._0x1264fd,_0x1db63a._0x287a38,_0x1db63a._0x133afa))continue;_0x5c0f79(),_0x135bfb[_0x397014(0x325,0x3d3,_0x1db63a._0x5554a8,_0x1db63a._0x5393de)]({'role':_0x397014(_0x1db63a._0x543cdd,_0x1db63a._0x105304,_0x1db63a._0x465ff4,_0x1db63a._0xa12a08),'content':getToolResultText(_0x162e06['content']),'tool_call_id':_0x162e06[_0x397014(0x329,_0x1db63a._0x85687a,0x446,0x38b)]});const _0x208daf=getToolResultImages(_0x162e06[_0x58fe92(-_0x1db63a._0x578b3f,_0x1db63a._0x32d134,0x42,-0x17)]);_0x208daf[_0x58fe92(-0x109,-_0x1db63a._0x598fcc,-0x39,-0x96)]>0x0&&_0x135bfb[_0x58fe92(-_0x1db63a._0x2a1494,-_0x1db63a._0x47feb7,-_0x1db63a._0x3e1224,-0xc1)]({'role':_0x397014(_0x1db63a._0x54cf02,_0x1db63a._0x384b9e,_0x1db63a._0x27f7c8,_0x1db63a._0x1a8ca0),'content':[{'type':_0x58fe92(0x16,-_0x1db63a._0x1d6904,-0xcb,-0xbb),'text':_0x397014(_0x1db63a._0x4393a2,_0x1db63a._0x49c6e0,_0x1db63a._0x8c825,_0x1db63a._0x4526da)+_0x162e06[_0x58fe92(-_0x1db63a._0x191904,-_0x1db63a._0x149d54,-0x1d4,-_0x1db63a._0x384f52)]+'.'},..._0x208daf[_0x397014(0x2ed,_0x1db63a._0x1c743f,_0x1db63a._0x223c18,_0x1db63a._0x377b84)](_0x1efdf4=>({'type':_0x397014(0x580,0x54e,0x49d,0x4a2),'image_url':{'url':_0x397014(0x38b,0x49d,0x474,0x471)+_0x1efdf4[_0x397014(0x4b0,0x379,0x417,0x425)]['media_type']+_0x397014(0x4f3,0x4d7,0x3fc,0x496)+_0x1efdf4[_0x397014(0x36b,0x438,0x482,0x425)]['data']}}))]});}_0x5c0f79();}const _0x3786c6=resolveOpenAiReasoningConfig(_0x441f94[_0x58fe92(-_0x1db63a._0x30d253,-0x19a,-0x1ba,-0x1ab)]);return{'model':_0x441f94[_0x58fe92(0x49,_0x1db63a._0x5b070d,-_0x1db63a._0x17b6a8,_0x1db63a._0x23e650)],'messages':_0x135bfb,'stream':_0x9c530e,..._0x3786c6?{'max_completion_tokens':_0x441f94[_0x58fe92(-_0x1db63a._0x53bdb8,-0x2f,-0xdc,0x4)]}:{'max_tokens':_0x441f94[_0x397014(_0x1db63a._0x54c081,0x3f2,_0x1db63a._0x43c02d,_0x1db63a._0x5d548e)]},..._0x3786c6?.['effort']?{'reasoning_effort':_0x3786c6[_0x397014(0x522,0x514,0x54f,_0x1db63a._0x3eb15c)]}:{},...createToolDefinitions(_0x441f94[_0x397014(_0x1db63a._0x50daaf,_0x1db63a._0x2420f6,_0x1db63a._0x1308ad,_0x1db63a._0x52171f)])?{'tools':createToolDefinitions(_0x441f94[_0x58fe92(-0xa3,-_0x1db63a._0x40b668,-_0x1db63a._0x33df46,-0x3d)])}:{}};}function _0x17ab(_0x24c38d,_0x327a05){_0x24c38d=_0x24c38d-0x183;const _0x266c4b=_0x266c();let _0x17ab83=_0x266c4b[_0x24c38d];if(_0x17ab['ZouseJ']===undefined){var _0x29c48b=function(_0x1a8bd9){const _0x4ee8a2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x46530e='',_0x2f4cc0='';for(let _0x298fdb=0x0,_0xe1b1b1,_0x2fc6e9,_0xeba392=0x0;_0x2fc6e9=_0x1a8bd9['charAt'](_0xeba392++);~_0x2fc6e9&&(_0xe1b1b1=_0x298fdb%0x4?_0xe1b1b1*0x40+_0x2fc6e9:_0x2fc6e9,_0x298fdb++%0x4)?_0x46530e+=String['fromCharCode'](0xff&_0xe1b1b1>>(-0x2*_0x298fdb&0x6)):0x0){_0x2fc6e9=_0x4ee8a2['indexOf'](_0x2fc6e9);}for(let _0x117730=0x0,_0x3a4863=_0x46530e['length'];_0x117730<_0x3a4863;_0x117730++){_0x2f4cc0+='%'+('00'+_0x46530e['charCodeAt'](_0x117730)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2f4cc0);};_0x17ab['HIoGLB']=_0x29c48b,_0x17ab['kZozcp']={},_0x17ab['ZouseJ']=!![];}const _0x7dfbfc=_0x266c4b[0x0],_0x1e2e62=_0x24c38d+_0x7dfbfc,_0x13d1b5=_0x17ab['kZozcp'][_0x1e2e62];return!_0x13d1b5?(_0x17ab83=_0x17ab['HIoGLB'](_0x17ab83),_0x17ab['kZozcp'][_0x1e2e62]=_0x17ab83):_0x17ab83=_0x13d1b5,_0x17ab83;}function createResponsesRequestBody(_0x4723b3,_0x4ae25d){return{...toOpenAiResponsesRequest(_0x4723b3),..._0x4ae25d?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x1d842f,_0x404c55={}){const _0x1a567f={_0x20e106:0x2a1,_0x20f1ea:0x24b,_0x5155bc:0x31b,_0x5e2dc3:0x320,_0x1c2ee2:0x3a0,_0x37fcb4:0x363,_0x66cd13:0x3cc,_0xe1b985:0x412},_0xd303c={_0x1aa6fa:0x119},_0x1b9811={_0x75e577:0x153,_0x2375b3:0x279},_0x160a93=toOpenAiResponsesRequest(_0x1d842f);function _0x211221(_0x5e335a,_0x2a8cce,_0x34bf80,_0x20a029){return _0x22e674(_0x5e335a-_0x1b9811._0x75e577,_0x2a8cce-0x189,_0x20a029,_0x2a8cce- -_0x1b9811._0x2375b3);}function _0x3c7d5a(_0x4cdd89,_0x1f1cbb,_0x4812b9,_0x416fb7){return _0x22e674(_0x4cdd89-_0xd303c._0x1aa6fa,_0x1f1cbb-0x55,_0x4812b9,_0x4cdd89- -0x50);}return{'type':'response.create',..._0x160a93,..._0x404c55[_0x3c7d5a(0x2a1,0x332,0x2c4,0x32c)]?{'input':_0x404c55[_0x3c7d5a(_0x1a567f._0x20e106,0x367,0x350,_0x1a567f._0x20f1ea)]}:{},..._0x404c55[_0x3c7d5a(0x3a0,_0x1a567f._0x5155bc,0x429,_0x1a567f._0x5e2dc3)]?{'previous_response_id':_0x404c55[_0x3c7d5a(_0x1a567f._0x1c2ee2,_0x1a567f._0x37fcb4,_0x1a567f._0x66cd13,_0x1a567f._0xe1b985)]}:{},'store':![]};}function normalizeAssistantContent(_0xe16491){const _0x245e80={_0x3416e7:0x472,_0x39d0f9:0x2fb,_0x597aeb:0x36e,_0x279553:0x391,_0x2b2ab5:0x12f,_0xec86b7:0xb8,_0x21bb06:0x8c},_0x194d9c={_0x297401:0x108,_0x545d18:0x49f},_0x44fce3={_0xaa9763:0x117,_0x3ae204:0x11b},_0x26efcb={_0x2448ed:0xcc,_0x4d111e:0x38},_0x285326={_0x10dfcc:0x1c6,_0x20de6e:0x45};function _0x54a020(_0x533806,_0x2e8aeb,_0x587679,_0x276bae){return _0x22e674(_0x533806-0x155,_0x2e8aeb-_0x285326._0x10dfcc,_0x533806,_0x276bae- -_0x285326._0x20de6e);}if(typeof _0xe16491===_0x54a020(_0x245e80._0x3416e7,_0x245e80._0x39d0f9,_0x245e80._0x597aeb,_0x245e80._0x279553))return _0xe16491;if(!Array[_0x2e0117(_0x245e80._0x2b2ab5,0x151,_0x245e80._0xec86b7,_0x245e80._0x21bb06)](_0xe16491))return'';function _0x2e0117(_0x22540e,_0x2782a5,_0x294e26,_0x5983a7){return _0x532739(_0x294e26,_0x2782a5-0x1dc,_0x294e26-_0x26efcb._0x2448ed,_0x5983a7-_0x26efcb._0x4d111e);}return _0xe16491['map'](_0x43a3a6=>{const _0x4e3b6b={_0x8f5dfd:0x15b,_0x2bb87e:0x1f6};function _0x491421(_0x3dfa1d,_0x1a19eb,_0x4ce259,_0x349d34){return _0x54a020(_0x349d34,_0x1a19eb-0x1a9,_0x4ce259-_0x4e3b6b._0x8f5dfd,_0x3dfa1d- -_0x4e3b6b._0x2bb87e);}function _0x343848(_0x16ffa3,_0x19d546,_0x38b74c,_0x3224ef){return _0x2e0117(_0x16ffa3-_0x44fce3._0xaa9763,_0x3224ef-0x4d6,_0x38b74c,_0x3224ef-_0x44fce3._0x3ae204);}return _0x43a3a6[_0x491421(0x185,0xa3,0x239,_0x194d9c._0x297401)]==='text'?_0x43a3a6['text']:_0x43a3a6[_0x343848(0x461,0x495,_0x194d9c._0x545d18,0x4bc)];})[_0x2e0117(-0x28,-0x2d,-0x112,-0xd2)]('');}function normalizeResponsesMessageContent(_0x15df4b){const _0x48a053={_0x4724dc:0x5ff,_0x5ea6f8:0x6ed,_0x28edae:0x6ef,_0xc9baec:0x506,_0x4021f1:0x55d},_0x24e711={_0x261802:0x4dc,_0x262a5a:0x51b,_0x10e8d1:0x3c7,_0x477e9a:0x3b0,_0xff17a3:0x82,_0x1e53e5:0x67,_0x47d036:0x31,_0x2b157f:0x4b9,_0x108e9a:0xf7,_0x33432a:0xf,_0x414f5a:0x84,_0x4e4a69:0x4e,_0xf7ece1:0x3af,_0x5d8852:0x33f,_0x56fb24:0x2a4,_0x1b7d6e:0x507,_0x4036b5:0x3b5,_0x144437:0x465,_0x433efc:0x32f},_0x5e4354={_0x2f6e35:0x1da};function _0x5e2e86(_0x5be691,_0x2c4fe2,_0x1045bc,_0x29a05b){return _0x532739(_0x5be691,_0x2c4fe2-0x71f,_0x1045bc-0x10a,_0x29a05b-0x99);}function _0x5b3838(_0x5e199c,_0x26d2cb,_0x23e19b,_0x5916b4){return _0x532739(_0x23e19b,_0x5916b4-0x31e,_0x23e19b-_0x5e4354._0x2f6e35,_0x5916b4-0x1b2);}if(!Array[_0x5e2e86(_0x48a053._0x4724dc,0x694,_0x48a053._0x5ea6f8,_0x48a053._0x28edae)](_0x15df4b))return'';return _0x15df4b[_0x5e2e86(_0x48a053._0xc9baec,0x57d,0x4d0,0x535)](_0x7c0a0=>{const _0x5821e2={_0x3aa66f:0x18a},_0x593b61={_0x2b0e58:0x58f,_0x5d23aa:0xc1,_0xda7e9c:0x1c8};if(!_0x7c0a0||typeof _0x7c0a0!==_0x2bd6b7(_0x24e711._0x261802,_0x24e711._0x262a5a,0x4ec,0x4f1))return'';function _0x4fb2d3(_0x29ee44,_0x1d45a2,_0x53b2e1,_0x2d8dca){return _0x5e2e86(_0x29ee44,_0x2d8dca- -_0x593b61._0x2b0e58,_0x53b2e1-_0x593b61._0x5d23aa,_0x2d8dca-_0x593b61._0xda7e9c);}function _0x2bd6b7(_0x171ae8,_0x5f26ba,_0xca4bfb,_0x4753e7){return _0x5b3838(_0x171ae8-_0x5821e2._0x3aa66f,_0x5f26ba-0x42,_0x171ae8,_0x4753e7-0x234);}const _0xc36fc3=_0x7c0a0;if(_0xc36fc3[_0x2bd6b7(_0x24e711._0x10e8d1,_0x24e711._0x477e9a,0x4bf,0x410)]==='output_text'&&typeof _0xc36fc3['text']===_0x4fb2d3(-_0x24e711._0xff17a3,-_0x24e711._0x1e53e5,_0x24e711._0x47d036,0x64))return _0xc36fc3[_0x2bd6b7(0x44b,0x51b,0x4f1,_0x24e711._0x2b157f)];if(_0xc36fc3[_0x4fb2d3(_0x24e711._0x108e9a,_0x24e711._0x33432a,-_0x24e711._0x414f5a,_0x24e711._0x4e4a69)]==='refusal'&&typeof _0xc36fc3[_0x2bd6b7(_0x24e711._0xf7ece1,_0x24e711._0x5d8852,_0x24e711._0x56fb24,0x35c)]===_0x2bd6b7(_0x24e711._0x1b7d6e,_0x24e711._0x4036b5,_0x24e711._0x144437,0x426))return _0xc36fc3[_0x2bd6b7(0x3a7,_0x24e711._0x433efc,0x3c8,0x35c)];return'';})[_0x5e2e86(0x4fa,0x516,_0x48a053._0x4021f1,0x5cc)]('');}function extractOpenAiReasoningText(_0x3dde74){const _0x89744a={_0xecf432:0xe3,_0x1582c3:0x1ef,_0x3960a2:0x247,_0x19a4f5:0x297,_0x5f1fa7:0x2f0,_0x113896:0x2c8,_0x4fcb41:0x194,_0x2b3273:0x1ec,_0x4a455e:0x82,_0x191fd9:0x3f,_0x20fd2b:0x108,_0x8c0346:0x163,_0x46b51a:0x14f,_0x40787d:0xe,_0x4dd29d:0x16},_0xae751f={_0x3872ba:0x12b,_0x26d8c4:0x6c},_0x330565={_0x4e100f:0xf3,_0x5a2cfb:0x184};function _0x51277d(_0x333847,_0x15e25e,_0x162bf6,_0x3e904b){return _0x22e674(_0x333847-_0x330565._0x4e100f,_0x15e25e-_0x330565._0x5a2cfb,_0x333847,_0x3e904b- -0x1a1);}if(typeof _0x3dde74[_0x3bf036(_0x89744a._0xecf432,0x107,0x155,0x186)]===_0x51277d(_0x89744a._0x1582c3,_0x89744a._0x3960a2,0x2dc,0x235))return _0x3dde74[_0x51277d(_0x89744a._0x19a4f5,0x276,_0x89744a._0x5f1fa7,_0x89744a._0x113896)];if(!Array[_0x3bf036(0x1a9,0x1ec,0xda,_0x89744a._0x4fcb41)](_0x3dde74[_0x3bf036(_0x89744a._0x2b3273,0x246,_0x89744a._0x4a455e,0x167)]))return'';function _0x3bf036(_0x3a4e96,_0x1c2e61,_0x196720,_0x552b8b){return _0x22e674(_0x3a4e96-_0xae751f._0x3872ba,_0x1c2e61-_0xae751f._0x26d8c4,_0x1c2e61,_0x552b8b- -0x2e3);}return _0x3dde74['content'][_0x3bf036(_0x89744a._0x191fd9,0xda,_0x89744a._0x20fd2b,0xf9)](_0x3e3ddc=>_0x3e3ddc[_0x3bf036(0x146,0x1,0xca,0xdd)]===_0x51277d(0x286,0x350,0x362,0x2e2)&&typeof _0x3e3ddc['text']==='string')[_0x3bf036(0x14d,_0x89744a._0x8c0346,_0x89744a._0x46b51a,0x7d)](_0x4afd52=>_0x4afd52[_0x3bf036(0x23a,0x20f,0x26a,0x186)]??'')[_0x3bf036(-0x58,_0x89744a._0x40787d,-0x55,_0x89744a._0x4dd29d)]('');}function createOpenAiReasoningBlock(_0x4e165a){const _0x1ed025={_0x2d3bf5:0x332,_0x4fd8e8:0x35e,_0x4735c2:0x391,_0x4e49de:0x31a,_0x64e49:0x2f4,_0x55f7b2:0x24f,_0x4a26aa:0x22c,_0x40af4b:0x2c6},_0xda8837={_0x4d3e67:0x40b},_0x4fb841={_0xdf286e:0x570};function _0x250564(_0x2d2a87,_0x2ca126,_0x28c700,_0x2e1d14){return _0x532739(_0x2ca126,_0x2d2a87-_0x4fb841._0xdf286e,_0x28c700-0x70,_0x2e1d14-0x5b);}function _0x7b43fb(_0x3adf7c,_0x110a07,_0xee88e9,_0x3a82d3){return _0x532739(_0xee88e9,_0x3a82d3-_0xda8837._0x4d3e67,_0xee88e9-0x6b,_0x3a82d3-0x183);}const _0x41a533=extractOpenAiReasoningText(_0x4e165a);return{'type':_0x7b43fb(0x2c4,_0x1ed025._0x2d3bf5,0x3da,_0x1ed025._0x4fd8e8),'summary':structuredClone(_0x4e165a['summary']??[]),..._0x4e165a['id']?{'id':_0x4e165a['id']}:{},..._0x4e165a[_0x250564(_0x1ed025._0x4735c2,_0x1ed025._0x4e49de,_0x1ed025._0x64e49,0x345)]?{'encryptedContent':_0x4e165a[_0x7b43fb(_0x1ed025._0x55f7b2,0x1e7,0x146,_0x1ed025._0x4a26aa)]}:{},..._0x41a533[_0x7b43fb(0x2e3,0x17f,_0x1ed025._0x40af4b,0x253)]>0x0?{'text':_0x41a533}:{}};}function hasVisibleOpenAiReasoning(_0x4bc672){const _0x2d8863={_0x1e51dc:0x47,_0x1c70bd:0x114},_0x327572={_0x3030b9:0x3b,_0x4ead26:0x13f};function _0x189d61(_0x455f39,_0x34d4b2,_0x170632,_0x5421c9){return _0x22e674(_0x455f39-_0x327572._0x3030b9,_0x34d4b2-_0x327572._0x4ead26,_0x455f39,_0x5421c9- -0x30b);}return _0x4bc672['summary']['length']>0x0||typeof _0x4bc672['text']===_0x189d61(_0x2d8863._0x1e51dc,_0x2d8863._0x1c70bd,0x44,0xcb);}function parseChatCompletionResponse(_0x5d6a04){const _0x24387b={_0x5b32f1:0x15d,_0x24d0e0:0x378,_0x1f25cf:0x34a,_0x24f98a:0xba,_0x5ea0ed:0x57,_0x38a619:0xb5,_0x1c30ec:0xcf,_0x8f0756:0x8,_0x28a8c1:0x2e6,_0x320f01:0x254,_0x2ade75:0x2e2,_0x41755e:0x21d,_0x55b7bf:0x2ee,_0x5810a9:0x14c,_0x373b44:0x2fd,_0x40b855:0x226,_0x17113e:0xe9,_0x4c8709:0x14b,_0x277118:0x80,_0xd66c72:0x34d,_0x2941cd:0x2db,_0x57d22e:0x2c9,_0x290938:0x30b,_0x53f43:0x3ae,_0x415d07:0x16a,_0x706fca:0x13e,_0x18c921:0xd1,_0x381c5b:0x38c,_0x556505:0x322},_0x162b1a={_0x1a3fdc:0x0},_0x5e412c={_0xd1c8b:0x4a3,_0x873a01:0x153,_0xb2aee1:0x11f};function _0x56855e(_0x2d9cc4,_0x44a642,_0x56b576,_0x1edc2e){return _0x532739(_0x1edc2e,_0x44a642-_0x5e412c._0xd1c8b,_0x56b576-_0x5e412c._0x873a01,_0x1edc2e-_0x5e412c._0xb2aee1);}const _0x46fc83=[],_0x295658=[];let _0x3b5163=_0x5ea991(-0x55,-_0x24387b._0x5b32f1,-0x16b,-0x9f);for(const _0x256ff4 of _0x5d6a04[_0x56855e(_0x24387b._0x24d0e0,_0x24387b._0x1f25cf,0x42a,0x40a)]??[]){const _0x256283=_0x256ff4[_0x5ea991(-_0x24387b._0x24f98a,-0x163,-_0x24387b._0x5ea0ed,-_0x24387b._0x38a619)],_0x14ac46=normalizeAssistantContent(_0x256283?.[_0x5ea991(_0x24387b._0x1c30ec,0xf6,_0x24387b._0x8f0756,0x80)]);_0x14ac46['length']>0x0&&_0x46fc83[_0x56855e(_0x24387b._0x28a8c1,0x33b,_0x24387b._0x320f01,_0x24387b._0x2ade75)](_0x14ac46),_0x256283?.[_0x56855e(_0x24387b._0x41755e,_0x24387b._0x55b7bf,0x283,0x344)]&&_0x295658[_0x56855e(0x2e9,0x33b,0x368,0x390)](..._0x256283[_0x5ea991(-0x60,0x35,-_0x24387b._0x5810a9,-0x7d)]),_0x256ff4[_0x56855e(0x3e4,_0x24387b._0x373b44,0x23d,_0x24387b._0x40b855)]==='tool_calls'&&(_0x3b5163='tool_use');}function _0x5ea991(_0x15f5a7,_0x3eb8f0,_0x43c6c4,_0x211b32){return _0x22e674(_0x15f5a7-_0x162b1a._0x1a3fdc,_0x3eb8f0-0x62,_0x3eb8f0,_0x211b32- -0x3ca);}return _0x295658[_0x5ea991(-0x113,-_0x24387b._0x17113e,-_0x24387b._0x4c8709,-_0x24387b._0x277118)]>0x0&&(_0x3b5163=_0x56855e(0x3bc,_0x24387b._0xd66c72,0x40d,_0x24387b._0x2941cd)),{'id':_0x5d6a04['id']??'chatcmpl-'+Date[_0x56855e(0x24f,_0x24387b._0x57d22e,_0x24387b._0x290938,_0x24387b._0x53f43)](),'content':createContentBlocks(_0x46fc83[_0x5ea991(-_0x24387b._0x415d07,-_0x24387b._0x706fca,-0x8e,-_0x24387b._0x18c921)](''),_0x295658),'stopReason':_0x3b5163,'usage':createUsage(_0x5d6a04[_0x56855e(0x42e,0x383,_0x24387b._0x381c5b,_0x24387b._0x556505)])};}function parseResponsesResponse(_0x4b2b7e,_0x29b308){const _0x408ccd={_0x598e39:0x453,_0x1e5d4c:0x3da,_0x1ae418:0x440,_0x20eba8:0x465,_0x1eee50:0x520,_0x27360b:0x542,_0x5e5c81:0x515,_0x3994bd:0x4c7,_0x482994:0x5a8,_0x5ba25d:0x51c,_0x1e11da:0x56e,_0x4d5bcd:0x62a,_0x356a4c:0x40c,_0x236d0b:0x4d7,_0x399741:0x5ac,_0x52b7b2:0x4e2,_0x44cf18:0x3fb,_0x4e63da:0x4e1,_0x4a4e4c:0x56a,_0x7399b3:0x56e,_0x431dc9:0x508,_0x422e3d:0x2bd,_0x27f775:0x544,_0x6b2986:0x525,_0x21ab63:0x592,_0x1700f8:0x4e6,_0x2c89d9:0x414,_0x1bdb0d:0x2fc,_0x35cf33:0x320,_0x125322:0x400,_0x2c8510:0x4fb,_0x2c3cc5:0x539,_0x7ef4da:0x332,_0x3549de:0x36a,_0x42f010:0x371,_0x3d0f2e:0x445,_0x44ea8b:0x46b,_0x28181a:0x395,_0x3ddead:0x371,_0x1518f7:0x565,_0x58cdd8:0x5e6,_0x3ac5e2:0x426,_0x1218b7:0x3d6,_0x4602a6:0x2cf,_0x112c36:0x31e,_0xa0d81a:0x48e,_0x2d1c0e:0x557,_0x322184:0x465,_0x14546f:0x489,_0x532748:0x392,_0x76b334:0x3f0,_0x3b1629:0x4ad,_0x1e40be:0x3da,_0x71f111:0x459},_0x277d57={_0x4c7f3b:0x55},_0x4f2cbc={_0x3b6c53:0xf8};function _0x1b46de(_0x1b89f6,_0x2a1042,_0x153c86,_0x52abc7){return _0x532739(_0x1b89f6,_0x153c86-0x4d9,_0x153c86-_0x4f2cbc._0x3b6c53,_0x52abc7-0x30);}const _0xbcf346=[];for(const _0x2d7ab4 of _0x4b2b7e[_0x1b46de(0x39d,_0x408ccd._0x598e39,_0x408ccd._0x1e5d4c,_0x408ccd._0x1ae418)]??[]){if(isResponsesReasoningItem(_0x2d7ab4)){if(isUserVisibleReasoning(_0x29b308)){const _0x1b3bc3=createOpenAiReasoningBlock(_0x2d7ab4);hasVisibleOpenAiReasoning(_0x1b3bc3)&&_0xbcf346['push'](_0x1b3bc3);}continue;}if(isResponsesMessageItem(_0x2d7ab4)){const _0x202db9=normalizeResponsesMessageContent(_0x2d7ab4['content']);_0x202db9[_0x2b6b39(0x463,0x4e3,0x4e2,_0x408ccd._0x20eba8)]>0x0&&_0xbcf346[_0x2b6b39(_0x408ccd._0x1eee50,_0x408ccd._0x27360b,0x532,_0x408ccd._0x5e5c81)]({'type':_0x1b46de(0x40e,_0x408ccd._0x3994bd,_0x408ccd._0x1ae418,0x474),'text':_0x202db9});continue;}if(!isResponsesFunctionCallItem(_0x2d7ab4)||typeof _0x2d7ab4['call_id']!=='string'||_0x2d7ab4['call_id']['trim']()[_0x2b6b39(0x4a8,_0x408ccd._0x482994,0x4e2,_0x408ccd._0x5ba25d)]===0x0||typeof _0x2d7ab4['name']!==_0x2b6b39(0x5cd,0x4f6,_0x408ccd._0x1e11da,_0x408ccd._0x4d5bcd)||_0x2d7ab4[_0x2b6b39(_0x408ccd._0x356a4c,_0x408ccd._0x236d0b,0x4d3,0x46b)]['trim']()[_0x2b6b39(_0x408ccd._0x399741,0x430,_0x408ccd._0x52b7b2,0x553)]===0x0||typeof _0x2d7ab4[_0x2b6b39(0x44c,_0x408ccd._0x44cf18,_0x408ccd._0x4e63da,0x438)]!==_0x2b6b39(_0x408ccd._0x4a4e4c,0x551,_0x408ccd._0x7399b3,_0x408ccd._0x431dc9))continue;_0xbcf346[_0x1b46de(_0x408ccd._0x422e3d,0x318,0x371,0x3f1)]({'type':_0x2b6b39(0x50a,0x511,_0x408ccd._0x27f775,0x614),'id':_0x2d7ab4[_0x2b6b39(0x5a1,0x4d3,_0x408ccd._0x6b2986,_0x408ccd._0x21ab63)],'name':_0x2d7ab4[_0x2b6b39(0x426,_0x408ccd._0x1700f8,0x4d3,_0x408ccd._0x2c89d9)],'input':parseToolInput2(_0x2d7ab4[_0x1b46de(_0x408ccd._0x1bdb0d,0x275,_0x408ccd._0x35cf33,_0x408ccd._0x125322)])});}!_0xbcf346[_0x2b6b39(_0x408ccd._0x2c8510,0x5c8,0x56b,_0x408ccd._0x2c3cc5)](_0x520916=>_0x520916[_0x1b46de(0x316,0x2cd,0x397,0x3cd)]===_0x2b6b39(0x67f,0x6bd,0x601,0x535))&&_0x4b2b7e[_0x1b46de(0x45c,_0x408ccd._0x7ef4da,0x395,0x304)]&&_0xbcf346[_0x1b46de(0x29e,_0x408ccd._0x3549de,_0x408ccd._0x42f010,_0x408ccd._0x3d0f2e)]({'type':_0x1b46de(0x359,0x43a,0x440,_0x408ccd._0x44ea8b),'text':_0x4b2b7e[_0x1b46de(0x40d,0x370,_0x408ccd._0x28181a,_0x408ccd._0x3ddead)]});function _0x2b6b39(_0x298b1e,_0x558168,_0xd3b12d,_0x4633b3){return _0x22e674(_0x298b1e-_0x277d57._0x4c7f3b,_0x558168-0x25,_0x558168,_0xd3b12d-0x198);}return{'id':_0x4b2b7e['id'],'content':_0xbcf346,'stopReason':_0xbcf346[_0x2b6b39(0x4f2,_0x408ccd._0x1518f7,0x56b,_0x408ccd._0x58cdd8)](_0x424d99=>_0x424d99[_0x2b6b39(0x4a7,0x5eb,0x558,0x50e)]===_0x1b46de(0x306,0x420,0x383,0x3f5))?'tool_use':_0x2b6b39(0x401,0x58c,0x4c3,0x4bf),'usage':{'inputTokens':_0x4b2b7e[_0x1b46de(_0x408ccd._0x3ac5e2,0x3c3,0x3b9,0x38e)]?.[_0x1b46de(_0x408ccd._0x1218b7,_0x408ccd._0x4602a6,_0x408ccd._0x112c36,0x3f8)]??0x0,'outputTokens':_0x4b2b7e[_0x1b46de(0x3ed,_0x408ccd._0xa0d81a,0x3b9,0x3b0)]?.['output_tokens']??0x0,..._0x4b2b7e['usage']?.[_0x2b6b39(0x518,_0x408ccd._0x2d1c0e,0x565,0x5b1)]?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x4b2b7e[_0x1b46de(_0x408ccd._0x322184,_0x408ccd._0x14546f,0x3b9,0x3c4)]['output_tokens_details']['reasoning_tokens']}:{}},..._0x4b2b7e[_0x1b46de(0x342,0x43e,0x3da,_0x408ccd._0x532748)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x4b2b7e[_0x1b46de(_0x408ccd._0x76b334,_0x408ccd._0x3b1629,_0x408ccd._0x1e40be,_0x408ccd._0x71f111)]),'openaiResponsesResponseId':_0x4b2b7e['id']}}:{}};}function extractErrorMessage(_0xc5d1aa){const _0x421f7a={_0x103daf:0xe9,_0x255672:0xb1,_0x47babf:0x11d,_0x16b3b2:0x181,_0x21d160:0xa1,_0x5a3d54:0xd,_0xaadb4d:0xf8,_0x3d4615:0x185,_0x1dc007:0x170,_0x24ccf7:0x143,_0x2892d4:0x1f,_0x2c12c3:0x76,_0x37110c:0xce,_0x18fd61:0xd1,_0x40451e:0x9b,_0xc4ba4e:0xdb,_0x5ebb3c:0x25,_0x853fcd:0x12b,_0x2cea2a:0x180,_0x50febc:0xe3,_0x178673:0x16,_0x2e1d8d:0x54,_0x279606:0xef,_0x1f8bd2:0x6f},_0x47248f={_0x203d61:0x369},_0x5cd39c={_0x328d4d:0x104,_0x213d98:0x1e9,_0x14f783:0x21f};function _0x40a33e(_0x796722,_0x1532c9,_0x5e0a87,_0x5033d6){return _0x22e674(_0x796722-_0x5cd39c._0x328d4d,_0x1532c9-_0x5cd39c._0x213d98,_0x1532c9,_0x796722- -_0x5cd39c._0x14f783);}if(_0xc5d1aa['length']===0x0)return'';try{const _0x64ea2c=JSON[_0xd56905(_0x421f7a._0x103daf,0xbe,0xa3,_0x421f7a._0x255672)](_0xc5d1aa);if(typeof _0x64ea2c[_0x40a33e(_0x421f7a._0x47babf,_0x421f7a._0x16b3b2,0x193,_0x421f7a._0x21d160)]?.['message']===_0xd56905(-_0x421f7a._0x5a3d54,_0x421f7a._0xaadb4d,0x6d,-0x3d)&&_0x64ea2c[_0x40a33e(0x11d,0x49,0x1d9,_0x421f7a._0x3d4615)][_0x40a33e(0xf6,_0x421f7a._0x1dc007,0x139,0x41)][_0xd56905(-_0x421f7a._0x5a3d54,-_0x421f7a._0x24ccf7,-0x6f,0x73)]()[_0xd56905(-0xa5,0x15,-_0x421f7a._0x2892d4,_0x421f7a._0x2c12c3)]>0x0)return _0x64ea2c[_0x40a33e(_0x421f7a._0x47babf,0x14a,0x1dc,0x1c9)]['message'][_0x40a33e(0xdb,_0x421f7a._0x37110c,_0x421f7a._0x18fd61,0x32)]();if(typeof _0x64ea2c[_0xd56905(-0x66,-_0x421f7a._0x40451e,-0x54,-0x2f)]==='string'&&_0x64ea2c['message'][_0x40a33e(_0x421f7a._0xc4ba4e,0x68,0xb3,_0x421f7a._0x5ebb3c)]()[_0x40a33e(_0x421f7a._0x853fcd,0x1ec,_0x421f7a._0x2cea2a,_0x421f7a._0x50febc)]>0x0)return _0x64ea2c[_0xd56905(_0x421f7a._0x178673,0x40,-_0x421f7a._0x2e1d8d,-0xf3)][_0xd56905(-0x116,-_0x421f7a._0x279606,-_0x421f7a._0x1f8bd2,-0xca)]();}catch{return _0xc5d1aa;}function _0xd56905(_0x5ec09b,_0x3e468f,_0x1e1aad,_0x2be4ee){return _0x22e674(_0x5ec09b-0x1e4,_0x3e468f-0x105,_0x2be4ee,_0x1e1aad- -_0x47248f._0x203d61);}return _0xc5d1aa;}function _0x266c(){const _0x42225e=['DMfSDwvZ','Dg9VBenHBgXZ','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','ywjVCNq','y2fJAgvK','B3bLBMfPl2DWDc00BW','C3vWCg9YDhnnB2rLBezLDgnO','D2vIu29JA2v0rMfJDg9YEq','Aw5WDxrFDgv4Da','ChvZAa','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','C3rHDhvZvgv4Da','B3v0Chv0x2LUzgv4','y2HHDenVBxbSzxrPB25Zugf0Aa','z2v0','ANnVBG','y2fWywjPBgL0AwvZ','qMfZAa','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','B3v0Chv0vg9Rzw5Z','nJy0nJe0sMXywLrx','Aw5PDgLHBev2zw50','yMvHCMvY','rgLYzwn0igfUC3DLCJOG','y2HVAwnLCW','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','C3rYzwfTvMLHuM91DgvY','Dg9VBf91C2u','zMv0y2G','y2HHDgnTCgW','zgvJB2rL','Dg9VBhm','CMvXDwvZDa','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','zgf0yq','y2fJAgvszwfKsw5WDxruB2TLBNm','Dg9VBf9Yzxn1Bhq','yNvKz2v0vg9Rzw5Z','AgvHzgvYuMvZB2X2zxi','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','zgvSDge','yxbPs2v5','z2v0u3vYzMfJzq','y29UDgv4Df9Szw5NDgG','y2HHDgnTCgWT','B3v0Chv0x3rLEhq','C3rYzwfTvMLHu3vYzMfJzq','DhLWzq','y3jLzgvUDgLHBa','C2vZC2LVBK1HBMfNzxi','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','yxnZAxn0yw50','D2vIC29JA2v0','DMfSDwu','yxv0BW','y29TCgXLDgu','Cgf0Aa','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','ywnJzxnZvg9Rzw4','CMvZB2X2zunYzwrLBNrPywW','Aw50zxjSzwf2zwq','y29TCgXLDgvK','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','C29Tzq','z3b0ltuTBwLUAq','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C3rYAw5N','Bw9JAW','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','Dgv4Dc9LDMvUDc1ZDhjLyw0','zg9Uzq','BgLTAxrZ','zMLSDgvY','DgHPBMTPBMDFzgvSDge','t3bLBLjVDxrLCG','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','z2XTltuUmq','DhjPBvn0yxj0','DxnHz2u','Bwf4t3v0Chv0','Ahr0Chm6','C3vTBwfYEv9PBMrLEa','B3bLBMfPlxjLC3bVBNnLCY13CW','C2vZC2LVBKLK','y2XPrgvMyxvSDe1VzgvS','C291CMnL','DxnLCG','B3v0Chv0sw5KzxHuB0nHBgXjza','zMLUAxnO','C29JA2v0','yxbPlwTLEq','Aw52ywXPzgf0zq','ChjLDMLVDxnszxnWB25ZzuLK','y2HHDfn0CMvHBq','C3bSAxq','yxv0Ag9YAxPHDgLVBG','C3vYzMfJzq','C3rHDhvZ','y2fWywjSzv9LBMrWB2LUDhm','C2vZC2LVBI10B2TLBG','Aw5JBhvKzxm','ChjVDMLKzxjZ','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','C2vZC2LVBG','C3vWCg9YDgvKrw5KCg9PBNrZ','ywrK','Aw5WDxrkC29U','B3v0Chv0','C3rYzwfTshr0Cfn1CMzHy2u','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','CMvZB2X2zq','C2LNBMfS','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','CMvWBgfJzq','yxv0AfnJAgvTzq','CMvTB3zLrxzLBNrmAxn0zw5LCG','CgfYC2u','CMvZCg9UC2vtB2nRzxq','zgvSzxrL','D3nZoG','yw50AhjVCgLJx3rOAw5RAw5N','y3jLyxrLuMvXDwvZDa','rgvLCfnLzwS','Aw5KzxG','B2f1DgGTDg9Rzw4','C3rYzwfTu3vYzMfJzq','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','Bwf4x3rVA2vUCW','Ec1HCgKTA2v5','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','CMvZB2X2zxi','t3bLBKfPqxbPrxjYB3i','CMvZCg9UC2vuzxH0ugfYDhm','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','zNvUy3rPB25Fy2fSBa','Aw5WDxrFC2nOzw1H','AgfZ','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','CMv0CNLHyMXL','z3b0ltqUmq','BNvTyMvY','CMvZCg9UC2vjza','CgfYC2vszxnWB25Zzq','C3vTBwfYEuj5sw5KzxG','CMvHC29U','C3rYzwfT','CM9Szq','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','mZG4mZG1nK5gCKTPrG','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','C3rVCfjLyxnVBG','y29UDgvUDf9KzwX0yq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','Dg9VBa','DxrMltG','BhmGlwXH','zgf0ytO','mJuYmtq4mKj3yuztzG','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','zMv0y2HjBxbS','Bwf4vg9Rzw5Z','zgvLChnLzwSTDJqTzMXHC2G','yM9KEq','Dgv4Df9KzwX0yq','yMfZzty0','z3b0ltu','t3bLBKfjiefqssbLCNjVCIa','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','DgHLBG','AxrLBq','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','ChjVDMLKzxjbzgfWDgvY','DxnLCI12AxnPyMXL','B21PDhrLza','zgvZy3jPChrPB24','CMvZzxq','CgfYDgLHBf9QC29U','y29UDgvUDa','zw5HyMXLza','Aw5JBhvKzunVBNrLBNruExbL','zMLUywXszxnWB25Zzq','BwvZC2fNzuLK','ywjVCNrLza','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','C3bSAwnL','CMvZB2X2zujHC2vvCMW','CMvHC29UAw5NugfYDhm','y29UC3vTzvnZzuv2zw50','B3bLBMfPx3jLyxnVBMLUzW','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','l2nOyxqVy29TCgXLDgLVBNm','z2L0AhvI','CMvZCg9UC2vZugf0Aa','o2jHC2u2ncW','Dg9VBfvZzvn0yxj0rw1PDhrLza','z2v0uMvHzgvY','l3yXl21LC3nHz2vZ','y29UDgvUDf9IBg9JA19KzwX0yq','y29UDgv4DfDPBMrVDW','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','mJaYmY0WnI0Wmq','mJaYns0Xmc0Wmq','BwvKAwfFDhLWzq','C2L6zq','BwfWqxbPrxjYB3i','Aw1Hz2vFDxjS','l3jLC3bVBNnLCW','Dg9VBc1JywXSlq','Dgv4Da','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','qw50AhjVCgLJ','BwvZC2fNzv9KzwX0yq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','DgvSzw1LDhj5','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','B3bLBKfPrgvSzwDHDgu','zNjVBuvUDhjPzxm','ywrHChrPDMu','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','z2XTltqUnW','AxnbCNjHEq','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','DxjS','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','zNvUy3rPB24','mJeXnZqYBgr5rhHf','y29TCgXLDgLVBL90B2TLBNm','yxbWBgLJyxrPB24VANnVBG','yw50AhjVCgLJlw1LC3nHz2vZ','y29TCgXLDgvtDxjMywnL','C2LNBMf0DxjL','DgvZDa','CMvHC29UAw5Nx3rLEhq','CMvZCg9UC2uUy29TCgXLDgvK','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','Bwf4x291Dhb1Df90B2TLBNm','B3bLBMfPlxjLC3bVBNnLCW','C3vTBwfYAxPLza','wI5bsq','Bwf4','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','yMfZzvvYBa','Bw9KzwXZqMfZzvvYBa','C2vUza','z2v0uMv0CNLezwXHEu1Z','ue9tva','C2XPy2u','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','DhjHBNnWB3j0','C3vTBwfYEq','z2L0AhvIqxbPvxjS','y3jLyxrLu3rYzwfTugfYC2vY','C2HPzNq','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','Dg9Rzw4','y3jLyxrLsgvHzgvYCW','Bw9KzwW','t1bftG','Dg9tDhjPBMC','yw50AhjVCgLJlxzLCNnPB24','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','B2jQzwn0','AgvHzgvYCW','y29WAwXVDc1JAgf0lZaUmZeUmW','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','zwzMB3j0','u3vYzMfJzsa','y29UBMvJDgLUzW','C2vUzfjHD1jLCxvLC3q','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','DxnLC1jLC3bVBNnLC0fWAq','zxzLBNq6','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','Aw1Hz2u','CMv0CNKTywz0zxi','ounYs0Lpwa','qMvHCMvYia','zgLZywjSzwq','y29TCgXLDgvwAwfsB3v0zxi','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','yMXVy2TZ','C3vYzMfJzxm','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','yxbWBhLnB2rLBerLzMf1BhrZ','CMvHC29UAw5Nx2nVBNrLBNq','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','CMvXDwvZDhm','C29YDa','AxrLBv9Pza','CMvZCg9UC2vtB2nRzxrtDhjLyw0','Aw5WDxq','z2v0tw9KzwXZ','y2fUy2vS','BxnNlq','v2vIu29JA2v0','CMvHC29UAw5NsxrLBxm','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','zwrPDg9YugX1z2LUvMvYC2LVBG','AM9PBG','DhjPBq','nJaWodi1neXVr3fAtW','Dg9VBenHBgXZqNLjBMrLEa','twLUAu1HEc1nmW','t3bLBKfj','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','Dg9bCgLfCNjVCG','y29UC3vTzuv2zw50','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','zNjVBq','Dg9mB3DLCKnHC2u','w0rptKvD','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','AxneB25L','zw5KCg9PBNrZ','BwvZC2fNzuLUzgv4','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','CMvMDxnHBa','ChjLCgfYzunOyxrszxf1zxn0','zgvMyxvSDe1VzgvSCW','y2f0y2G','AxngAw5PDgu','wgLHB21P','DMLZAwjPBgL0Eq','y29UDgvUDf9IBg9JAW','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','BwvZC2fNzq','C3vWCg9YDgvKx2vUzhbVAw50CW','y29UDgvUDc10ExbL','ChjVDMLKzxjtDgf0zq','zwrPDg9YvMvYC2LVBG','CM91DgvY','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','Bw9Kzq','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','Dg9VBf91C2vFzgvSDge','mZm1otG1nM13y1DgDG','Dgv4DfbHCNrZ','Aw5WDxruB2TLBNm','Ahr0Chm6lY9HCgKUzgvLChnLzwSUy29Tl2fUDgHYB3bPyW','zw5JCNLWDgvKx2nVBNrLBNq','CMvXDwvZDe11Dgf0B3jZ','Bw9KzwXZ','y29Kzq','zw50CMLLCW','BM93','Bw9KzwXfBMrWB2LUDenHy2HL','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','zw5Kx3r1CM4','yNvPBgrqyxj0AwfSt3v0Chv0','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','sw52ywXPzcbYzxf1zxn0oIa','B3jPz2LUlxrYywnRzxi','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','y29UDgvUDf9IBg9JA19ZDgfYDa','yxbP','y29UDgvUDf9PBMrLEa','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','CMvHzhLtDgf0zq','ChjVDMLKzxjFCMv0CNK','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','y2HHDenVBxbSzxrL','C3vTBwfYEv90zxH0','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','BMfTzq','zxjYB3i','ywDLBNq','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','z3jVAY1JB2rLlwzHC3qTmq','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','DgHPBMTPBMC','zgvMyxvSDe1HEfrVA2vUCW','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','zMLUza','C3rYAw5NAwz5','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','Aw5WDxrFDg9Rzw5Z','Dg9Wx3bYB3zPzgvY','yxjNDw1LBNrZ','BgvUz3rO','B3v0Chv0x3rVA2vUCW','Dg9VBenHBgXpCMrLCG','Dg9VBf9JywXSCW','ChjVDg9JB2W','Dg9VBf91C2vFAwq','Ahr0Cc1QC29U','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','ywnJzxb0','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','yxn5BMnjDgvYyxrVCG','BgfZDfjLC3bVBNnLswq','ChjVBxb0x3rVA2vUCW','CMvHC29UAw5Nx3rVA2vUCW','Dgv4Dej5sw5KzxG','B3bLBMfP','y29UC3vTzvDLyLnVy2TLDev2zw50','zMLUAxnOx3jLyxnVBG','z3b0ltrV','C2HVDwXKuMv0CNLszxnWB25Zzq','zxzLBNq','BwfW','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','CMvKywn0zwrFDgHPBMTPBMC','CMvHC29UAw5N','D2fPDezVCLjLDhj5','r0vu','CMvZCg9UC2u','zgvLChnLzwSTDJqTChjV','DhjHBNnWB3j0x2vYCM9Y','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','ChjVDg9JB2XwzxjZAw9U','CMvZCg9UC2vtDhjLyw0','C3rHCNrZv2L0Aa','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','zw5JCNLWDgvKq29UDgvUDa','Bwv0Ag9K','BwvZC2fNzxm','z2v0qw50AhjVCgLJrgvSzwDHDgu','Ahr0Cc1ZC2u','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','C2vUzfDPDgHszxrYAwvZ','A2LUza','l21VzgvSCW','y29TCgXLDgvwAwftDxjMywnL','y2fSBeLKvg9pDxrWDxrjBMrLEa','y2XVC2u','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','B3bLBG','zM9Yy2vgDwXSuMvWBgf5','z2v0t3bLBKfPrgvSzwDHDgu','zgvMyxvSDe1VzgvS','C2v0','Aw5WDxrFANnVBL9KzwX0yq','D3m6','yw50AhjVCgLJrgvSzwDHDgu','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','Bwv0ywrHDge','C2vSzwn0u3vYzMfJzq','yw50AhjVCgLJqMfZzvvYBa','B3v0Chv0sw5KzxG','A2v5CW','BgfIzwW','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','ywrKrxzLBNrmAxn0zw5LCG','y2fSBf9Pza','z2XTltqUnG','mtiWmZaWnwzXD29dDa','C3rVCf9YzwfZB24'];_0x266c=function(){return _0x42225e;};return _0x266c();}function _0x532739(_0x21b699,_0xcc16e7,_0x3881cb,_0x3b9c38){const _0x378352={_0x14f173:0x39e};return _0x17ab(_0xcc16e7- -_0x378352._0x14f173,_0x21b699);}async function createOpenAiApiError(_0x42e139){const _0x3a20f3={_0x4701bc:0xa2,_0x1ff960:0x113,_0x27cab2:0x34,_0x4336ec:0x17,_0x1e7058:0x9d,_0x384edf:0x146,_0x4e712f:0x53,_0x4e2106:0x2e,_0x46165d:0xe6,_0x295bbd:0x1f3,_0x415007:0x198,_0x3db4c6:0x1e3},_0x186aa0={_0x31f6b4:0x12a},_0x58e4b0={_0xedb668:0x13b,_0x3fc9f8:0x63,_0x384235:0x49};function _0x2350eb(_0x8d008a,_0x17da19,_0x3f706b,_0xaab127){return _0x532739(_0x8d008a,_0x17da19-_0x58e4b0._0xedb668,_0x3f706b-_0x58e4b0._0x3fc9f8,_0xaab127-_0x58e4b0._0x384235);}const _0x5a4aec=(await _0x42e139[_0x2350eb(0x36,_0x3a20f3._0x4701bc,_0x3a20f3._0x1ff960,_0x3a20f3._0x27cab2)]())[_0xd3cc72(0x10d,-_0x3a20f3._0x4336ec,_0x3a20f3._0x1e7058,_0x3a20f3._0x384edf)]();function _0xd3cc72(_0x2a8c6a,_0x3f0f56,_0x1ba64a,_0x253d69){return _0x22e674(_0x2a8c6a-_0x186aa0._0x31f6b4,_0x3f0f56-0x115,_0x253d69,_0x1ba64a- -0x25d);}const _0xa2e1fe=extractErrorMessage(_0x5a4aec)||_0x42e139['statusText']||_0x2350eb(-0x2e,0x78,-_0x3a20f3._0x4e712f,0x17)+_0x42e139[_0x2350eb(-0xa6,_0x3a20f3._0x4e2106,-0xa1,-0x5e)];return new OpenAiApiError(_0x42e139[_0xd3cc72(_0x3a20f3._0x46165d,_0x3a20f3._0x295bbd,_0x3a20f3._0x415007,_0x3a20f3._0x3db4c6)],_0x5a4aec,_0xa2e1fe);}function readSseData(_0x3c0388){const _0x54132b={_0x4571bb:0x16e,_0x2857fa:0xea,_0x6d7f66:0x162,_0x477383:0xc7,_0x27097c:0x3f,_0x2fae14:0xb2,_0x1ed2dc:0x7,_0x3bd1b5:0xe3,_0x449c37:0x93,_0x53cd9e:0x8,_0x1372b9:0x1e},_0x230370={_0x334346:0x45,_0x2babb0:0xf0},_0x480dba={_0x42849f:0x1a9};function _0x122ba1(_0x3ddbe9,_0xa56eca,_0x4c1eff,_0x3e07a7){return _0x22e674(_0x3ddbe9-_0x480dba._0x42849f,_0xa56eca-0x12b,_0x4c1eff,_0x3ddbe9- -0x534);}function _0x3affbd(_0x1d88de,_0x37710c,_0x244a01,_0x2a1e47){return _0x532739(_0x2a1e47,_0x37710c-0x210,_0x244a01-_0x230370._0x334346,_0x2a1e47-_0x230370._0x2babb0);}return _0x3c0388[_0x122ba1(-0x142,-0x197,-0x94,-0x169)]('\x0a')[_0x3affbd(_0x54132b._0x4571bb,_0x54132b._0x2857fa,_0x54132b._0x6d7f66,_0x54132b._0x477383)](_0x54874b=>_0x54874b[_0x122ba1(-0x1c8,-0x25b,-0x179,-0x140)](_0x122ba1(-0xff,-0x173,-0xc8,-0x19)))[_0x3affbd(0x14b,0x6e,0xb8,-_0x54132b._0x27097c)](_0x5ba513=>_0x5ba513[_0x3affbd(0x1cc,0x1a0,0xea,0x1cd)](0x5)[_0x122ba1(-0x153,-0x1f3,-0x1a0,-0x209)]())[_0x3affbd(_0x54132b._0x2fae14,_0x54132b._0x1ed2dc,_0x54132b._0x3bd1b5,_0x54132b._0x449c37)]('\x0a')[_0x3affbd(0xd5,_0x54132b._0x53cd9e,-_0x54132b._0x1372b9,0xe6)]();}function readString(_0x1a4a4b){const _0x449012={_0x241a2f:0x354,_0x1a7de7:0x40b};function _0x4674fb(_0x34fee9,_0x45e9cd,_0x48a78c,_0x469e12){return _0x22e674(_0x34fee9-0x1cd,_0x45e9cd-0x19e,_0x45e9cd,_0x34fee9-0x34);}return typeof _0x1a4a4b==='string'&&_0x1a4a4b[_0x4674fb(0x37e,0x317,_0x449012._0x241a2f,_0x449012._0x1a7de7)]>0x0?_0x1a4a4b:void 0x0;}function extractReasoningDetails(_0x3be52d){const _0xd735c9={_0x12813f:0xa7,_0x263f7c:0x7d,_0x367e7c:0x5d},_0x3b1a14={_0x1c176a:0x780,_0x52f138:0x6a9,_0x49d2ca:0x740,_0x296139:0x5ae,_0x266620:0x671,_0x14c168:0x58e,_0x41dcb1:0x5e6,_0x39983e:0x5d9,_0x10f170:0x6bf,_0x479f1a:0x4b5,_0x55acc8:0x69d,_0x4f85ef:0x73d},_0x1fbcd3={_0x4a6f00:0x36c},_0x1a7050={_0xe4d823:0xb7,_0x4aa991:0x37e};function _0x74d8d0(_0x48a517,_0x590fba,_0x57e1ba,_0x492e1f){return _0x22e674(_0x48a517-_0x1a7050._0xe4d823,_0x590fba-0xc9,_0x57e1ba,_0x492e1f- -_0x1a7050._0x4aa991);}if(!Array['isArray'](_0x3be52d))return void 0x0;const _0x56780a=_0x3be52d['flatMap'](_0x57b8c3=>{const _0x4d469c={_0x545ef5:0x2a8};if(!_0x57b8c3||typeof _0x57b8c3!==_0x36fafb(_0x3b1a14._0x1c176a,_0x3b1a14._0x52f138,0x694,_0x3b1a14._0x49d2ca))return[];function _0x7a8c71(_0x47bd70,_0x569840,_0x533f93,_0x5d3422){return _0x17ab(_0x533f93-_0x4d469c._0x545ef5,_0x5d3422);}const _0x4814c2=_0x57b8c3;if(typeof _0x4814c2['text']===_0x7a8c71(0x5ce,_0x3b1a14._0x296139,0x51a,0x553))return[_0x4814c2[_0x36fafb(0x670,_0x3b1a14._0x266620,_0x3b1a14._0x14c168,_0x3b1a14._0x41dcb1)]];if(typeof _0x4814c2[_0x7a8c71(0x69c,0x5ab,_0x3b1a14._0x39983e,_0x3b1a14._0x10f170)]===_0x7a8c71(_0x3b1a14._0x479f1a,0x5ad,0x51a,0x44f))return[_0x4814c2[_0x36fafb(0x713,_0x3b1a14._0x55acc8,_0x3b1a14._0x4f85ef,0x5ce)]];function _0x36fafb(_0x303858,_0x3074bd,_0xad0a7d,_0x5500f5){return _0x17ab(_0x3074bd-_0x1fbcd3._0x4a6f00,_0x5500f5);}return[];});return _0x56780a[_0x74d8d0(_0xd735c9._0x12813f,-_0xd735c9._0x263f7c,-_0xd735c9._0x367e7c,-0x34)]>0x0?_0x56780a['join'](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x512f4b){const _0x232fb2={_0x357e24:0x1f9,_0x4fe084:0x13d,_0x502aaf:0x205,_0x214cab:0x270,_0x58cbe4:0x268,_0x213bd0:0x3f7,_0x2ea0e0:0x419},_0x1592da={_0x50a96d:0x183,_0x2ab2d5:0x4c};function _0x25fe8a(_0x31af42,_0x1be223,_0x2eb05c,_0x4134c0){return _0x22e674(_0x31af42-0x73,_0x1be223-0xee,_0x31af42,_0x2eb05c- -0x7b);}function _0xab55a7(_0x32deac,_0x427378,_0x3af4de,_0x191bb6){return _0x22e674(_0x32deac-_0x1592da._0x50a96d,_0x427378-_0x1592da._0x2ab2d5,_0x32deac,_0x427378- -0x235);}return extractReasoningDetails(_0x512f4b?.['reasoning_details'])??readString(_0x512f4b?.[_0xab55a7(0x165,0x12e,_0x232fb2._0x357e24,_0x232fb2._0x4fe084)])??readString(_0x512f4b?.[_0x25fe8a(_0x232fb2._0x502aaf,0x19f,_0x232fb2._0x214cab,_0x232fb2._0x58cbe4)])??readString(_0x512f4b?.[_0x25fe8a(0x336,_0x232fb2._0x213bd0,0x408,_0x232fb2._0x2ea0e0)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x532739(-0x10,-0xaf,-0xf6,0x24)]=[];[_0x22e674(0x400,0x42f,0x498,0x3b1)];['textParts']=[];[_0x532739(-0x2c2,-0x206,-0x2c4,-0x1d4)]=new Map();[_0x22e674(0x302,0x387,0x28c,0x34c)]=[];[_0x532739(-0x6a,-0xa7,-0x99,-0xf8)]=new Set();['responseId']='';[_0x22e674(0x3a2,0x3c7,0x4e2,0x42f)]='end_turn';[_0x22e674(0x3e6,0x45a,0x42b,0x3e2)];constructor(_0x2f4de0){this['request']=_0x2f4de0;}[_0x532739(-0x1b,-0xae,-0x170,-0x165)](_0x13a43e){const _0x32a0ca={_0x4ee484:0x10,_0x539c9b:0xbe,_0x3343a6:0xd,_0x4216e8:0xd2,_0x2e739c:0x157,_0x50766f:0x12d,_0xbc1147:0xee,_0x25a0ac:0x6c,_0xd8499b:0x3a,_0x4e6cc5:0x1e,_0x57d741:0x39,_0x5cb263:0xa8,_0x1f0485:0x1c,_0x23cbb0:0x2c0,_0x1b690f:0x1f0,_0x1ebe16:0x205,_0xdc0da8:0x2ba},_0x5ad236={_0x3b5725:0x11},_0x11fe1c={_0x39026f:0x1c8,_0x14160c:0x14d},_0x3745a5=readSseData(_0x13a43e);if(_0x3745a5[_0x5cb043(0x8,_0x32a0ca._0x4ee484,_0x32a0ca._0x539c9b,-0xb4)]===0x0||_0x3745a5==='[DONE]')return[];const _0x3a910e=JSON[_0x5cb043(-_0x32a0ca._0x3343a6,_0x32a0ca._0x4216e8,_0x32a0ca._0x2e739c,_0x32a0ca._0x50766f)](_0x3745a5);function _0x5cb043(_0x215871,_0x546e2f,_0x5c7e64,_0xdb5215){return _0x532739(_0xdb5215,_0x546e2f-_0x11fe1c._0x39026f,_0x5c7e64-0x13d,_0xdb5215-_0x11fe1c._0x14160c);}function _0x2b8125(_0x10c9b1,_0x105774,_0x1e27e3,_0x5305d4){return _0x532739(_0x10c9b1,_0x105774-_0x5ad236._0x3b5725,_0x1e27e3-0xd8,_0x5305d4-0x1cc);}return this[_0x5cb043(0xf,0xeb,_0x32a0ca._0xbc1147,_0x32a0ca._0x25a0ac)]=_0x3a910e['id']??this['responseId'],this[_0x5cb043(_0x32a0ca._0xd8499b,0xa8,_0x32a0ca._0x4e6cc5,0x15d)]=_0x3a910e[_0x5cb043(-_0x32a0ca._0x57d741,_0x32a0ca._0x5cb263,_0x32a0ca._0x1f0485,0xcb)]??this['usage'],this[_0x2b8125(-_0x32a0ca._0x23cbb0,-_0x32a0ca._0x1b690f,-_0x32a0ca._0x1ebe16,-_0x32a0ca._0xdc0da8)](_0x3a910e);}[_0x532739(-0x7b,-0x116,-0x182,-0x16f)](){const _0x25e5c8={_0x315368:0x2f4,_0x4ec2e5:0x2ca,_0x5d631a:0x4d,_0x4cd0e5:0x4be,_0x20ef45:0x39c,_0x210dc1:0x3e6,_0x13a80d:0x192,_0x2660b2:0x2f,_0x2a4323:0x359,_0x3f9389:0x2b9,_0x1e9b71:0xb6,_0x295758:0x3,_0x322ee3:0xa1,_0x6e51bd:0x3cd,_0x19fd7c:0x3c3,_0x2805e7:0x48d,_0x276c25:0x2d,_0x1dcadf:0xfe,_0x409220:0x2b,_0x29a6ce:0x10c,_0x45726c:0x2c8,_0x3c7f3b:0x286,_0x29a360:0x79,_0x44f54d:0x17,_0x93a5c2:0x4,_0x5051b3:0x4f,_0x5765d7:0x1b9,_0x2a1e9e:0x38a},_0x4182eb={_0x34572e:0x2fd},_0x2f9edf={_0x33a4a3:0x1e9,_0x197f15:0x58};this[_0x36d583(_0x25e5c8._0x315368,0x31e,_0x25e5c8._0x4ec2e5,0x34e)][_0x45b898(-0x4d,0x87,_0x25e5c8._0x5d631a,0xf9)]>0x0&&(this[_0x36d583(0x3d7,_0x25e5c8._0x4cd0e5,_0x25e5c8._0x20ef45,_0x25e5c8._0x210dc1)]=_0x45b898(_0x25e5c8._0x13a80d,0x17d,0xaf,_0x25e5c8._0x2660b2));function _0x36d583(_0x5c2cd4,_0x2be9c7,_0x265de0,_0x396010){return _0x22e674(_0x5c2cd4-_0x2f9edf._0x33a4a3,_0x2be9c7-0x11c,_0x265de0,_0x5c2cd4- -_0x2f9edf._0x197f15);}const _0x33492d=isUserVisibleReasoning(this[_0x36d583(_0x25e5c8._0x2a4323,0x326,0x2df,_0x25e5c8._0x3f9389)])?this[_0x45b898(_0x25e5c8._0x1e9b71,0xf4,0x156,0xbb)][_0x45b898(-0x8a,-_0x25e5c8._0x295758,-0x4,_0x25e5c8._0x322ee3)](''):void 0x0;function _0x45b898(_0x7c1879,_0x4dc4eb,_0x2c62d3,_0x36baa5){return _0x22e674(_0x7c1879-0x8d,_0x4dc4eb-0x6f,_0x7c1879,_0x2c62d3- -_0x4182eb._0x34572e);}return{'id':this[_0x36d583(_0x25e5c8._0x6e51bd,0x302,_0x25e5c8._0x19fd7c,_0x25e5c8._0x2805e7)]||_0x45b898(-0x22,0x185,0xc0,0x150)+Date[_0x45b898(-_0x25e5c8._0x276c25,_0x25e5c8._0x1dcadf,_0x25e5c8._0x409220,_0x25e5c8._0x29a6ce)](),'content':createContentBlocks(this[_0x36d583(_0x25e5c8._0x45726c,_0x25e5c8._0x3c7f3b,0x32a,0x21e)][_0x45b898(-_0x25e5c8._0x29a360,_0x25e5c8._0x44f54d,-_0x25e5c8._0x93a5c2,-0x27)](''),this[_0x45b898(0xe2,0x5f,_0x25e5c8._0x5051b3,0xc4)],_0x33492d),'stopReason':this[_0x45b898(0xbd,_0x25e5c8._0x5765d7,0x132,0x209)],'usage':createUsage(this[_0x36d583(_0x25e5c8._0x2a1e9e,0x3d8,0x3e2,0x415)])};}[_0x22e674(0x23c,0x3d2,0x25a,0x301)](_0xfe6251){const _0x255346={_0x197e37:0x2d3,_0x481db8:0x21,_0x550ce6:0x1a,_0x10a07a:0x210,_0x58b0e6:0x2e1,_0x5e036b:0x45b,_0x16cd83:0x3f5,_0x3ffca3:0x3ea,_0x3f3c38:0x19,_0x4695f9:0xcc,_0x5b6d3d:0x96,_0x56f208:0x166,_0x20a3de:0x8d,_0x48be04:0x13c,_0x4a6201:0x5b,_0x2e871b:0x89,_0x3375ef:0xb2,_0xb2def2:0x126,_0x3c8b85:0x17a,_0x1ad827:0xb0,_0x304d92:0x302,_0x2035b2:0x2e1,_0x189b8f:0x33c,_0x2059b9:0x264,_0x4f61f8:0x413,_0x48159b:0x331,_0x3f8e3f:0xb5,_0x5eee2a:0x98,_0x1def3e:0xdf,_0x1e5929:0x216,_0x107a16:0x2e4,_0x151007:0x1e,_0x451b62:0xa6,_0x30bedb:0x38d,_0x3eddc6:0x325,_0x5c34e5:0x4d3,_0x480396:0x3ff,_0x3c1f45:0x374,_0x412204:0x4a8,_0x14853:0x422,_0x288a08:0x412,_0x26c9b5:0x46,_0x41d1c9:0x34c,_0x5d1388:0x2d2,_0x2035b6:0x2ff,_0x148f53:0x316,_0x4e3823:0x2df,_0x3ebdf8:0x2e3,_0x1b5ca7:0x228,_0x1550b1:0x300,_0x2c8435:0x481,_0x416f4f:0x335,_0x41c721:0xe3,_0x297f09:0x447,_0x156907:0xe2,_0x4f48c0:0x22f,_0x5e703b:0x30a,_0x3d5041:0x179,_0x1c87b7:0xaa,_0x531bd8:0x100,_0x5aba72:0x80,_0x494402:0x109,_0x6af1a8:0x15d,_0x2103dd:0x2f1,_0x4a5732:0x293,_0x3f1881:0x2d2,_0x5616ce:0xf6,_0x255d62:0x4,_0x4fcd48:0x4f,_0x3093e8:0x1d,_0x4b45aa:0x367,_0x4f626d:0x2f7,_0x1c135f:0x3ef,_0x3ca093:0xd7,_0x44fa24:0xb9,_0xca77ff:0xd2,_0xac2d07:0x2eb,_0x5b3cce:0x387,_0x406737:0x409,_0x263a56:0x331,_0x2ab803:0x394,_0x5b6481:0x3af,_0x51244d:0x3c6,_0x2d75f2:0x2f4},_0x1d4289={_0x56dc69:0x499,_0x26b415:0x1a1},_0x37075c={_0x430965:0x14b,_0x166edf:0x398},_0x39a793=[];function _0x36e804(_0xf1805f,_0x4debaf,_0x84ad15,_0xe77b5c){return _0x22e674(_0xf1805f-0x180,_0x4debaf-_0x37075c._0x430965,_0x4debaf,_0xf1805f- -_0x37075c._0x166edf);}for(const _0x4253b0 of _0xfe6251[_0x3a6903(_0x255346._0x197e37,0x3bf,0x2d1,0x340)]??[]){const _0x4db39c=_0x4253b0[_0x36e804(_0x255346._0x481db8,-0x8a,-0x6b,_0x255346._0x550ce6)],_0x2b38b8=extractChatCompletionReasoningDelta(_0x4db39c);_0x2b38b8[_0x3a6903(0x25a,0x3a6,_0x255346._0x10a07a,_0x255346._0x58b0e6)]>0x0&&(this[_0x3a6903(0x46e,_0x255346._0x5e036b,_0x255346._0x16cd83,_0x255346._0x3ffca3)]['push'](_0x2b38b8),isUserVisibleReasoning(this[_0x36e804(_0x255346._0x3f3c38,-_0x255346._0x4695f9,-_0x255346._0x481db8,-0xa0)])&&_0x39a793['push']({'type':_0x36e804(-_0x255346._0x5b6d3d,-_0x255346._0x56f208,0x30,-0x53),'contentIndex':0x0,'delta':_0x2b38b8,'itemId':(this[_0x36e804(_0x255346._0x20a3de,0xb0,_0x255346._0x48be04,0x6b)]||_0x36e804(0x16,_0x255346._0x4a6201,0xae,_0x255346._0x2e871b))+':reasoning:0','outputIndex':0x0}));const _0x5e3995=typeof _0x4db39c?.[_0x36e804(_0x255346._0x3375ef,_0x255346._0xb2def2,_0x255346._0x3c8b85,_0x255346._0x1ad827)]==='string'?_0x4db39c['content']:typeof _0x4db39c?.['refusal']==='string'?_0x4db39c['refusal']:'';_0x5e3995[_0x3a6903(0x261,0x3c3,_0x255346._0x304d92,_0x255346._0x2035b2)]>0x0&&(this[_0x3a6903(0x308,0x375,_0x255346._0x189b8f,0x2b7)][_0x3a6903(_0x255346._0x2059b9,0x28f,_0x255346._0x4f61f8,_0x255346._0x48159b)](_0x5e3995),_0x39a793[_0x36e804(0x2,0x47,_0x255346._0x3f8e3f,0x8)]({'type':_0x36e804(_0x255346._0x5eee2a,-0x6,_0x255346._0x1def3e,0x4),'index':0x0,'text':_0x5e3995}));for(const _0xc7f328 of _0x4db39c?.[_0x3a6903(0x345,0x23f,_0x255346._0x1e5929,_0x255346._0x107a16)]??[]){const _0x3700b6=_0xc7f328['index']??0x0;let _0xba1457=this[_0x36e804(-0x9c,-_0x255346._0x151007,-_0x255346._0x451b62,-0xba)]['get'](_0x3700b6);!_0xba1457&&(_0xba1457={'id':_0xc7f328['id']??_0x3a6903(_0x255346._0x30bedb,_0x255346._0x3eddc6,_0x255346._0x5c34e5,_0x255346._0x480396)+_0x3700b6,'type':_0x3a6903(_0x255346._0x3c1f45,_0x255346._0x412204,_0x255346._0x14853,_0x255346._0x288a08),'function':{'name':_0xc7f328[_0x36e804(0xe3,_0x255346._0x26c9b5,0x7d,0x110)]?.[_0x3a6903(0x2e7,0x269,_0x255346._0x41d1c9,_0x255346._0x5d1388)]??'','arguments':''}},this['toolCallsByIndex'][_0x3a6903(0x2af,0x2cb,_0x255346._0x2035b6,_0x255346._0x148f53)](_0x3700b6,_0xba1457),this[_0x3a6903(0x225,_0x255346._0x4e3823,0x327,_0x255346._0x3ebdf8)]['push'](_0xba1457));_0xc7f328['id']&&(_0xba1457['id']=_0xc7f328['id']);_0xc7f328[_0x36e804(0xe3,0xb3,0x1ab,0x1a8)]?.[_0x3a6903(_0x255346._0x1b5ca7,_0x255346._0x1550b1,_0x255346._0x30bedb,0x2d2)]&&(_0xba1457[_0x3a6903(_0x255346._0x2c8435,0x37e,_0x255346._0x416f4f,_0x255346._0x288a08)]['name']=_0xc7f328[_0x36e804(_0x255346._0x41c721,0x68,0xef,0x154)]['name']);!this[_0x3a6903(0x467,0x3c3,_0x255346._0x297f09,0x3f2)]['has'](_0x3700b6)&&_0xba1457[_0x36e804(0xe3,_0x255346._0x156907,0xda,0x12c)][_0x3a6903(0x230,_0x255346._0x4f48c0,_0x255346._0x5e703b,0x2d2)][_0x36e804(-0x9e,0x46,0x21,-_0x255346._0x3d5041)]()[_0x36e804(-0x4e,-_0x255346._0x1c87b7,-_0x255346._0x531bd8,-_0x255346._0x5aba72)]>0x0&&(_0x39a793['push']({'type':'tool_use_delta','id':_0xba1457['id'],'index':_0x3700b6,'name':_0xba1457[_0x36e804(_0x255346._0x41c721,_0x255346._0x494402,_0x255346._0x6af1a8,0xcb)][_0x3a6903(_0x255346._0x2103dd,_0x255346._0x4a5732,0x39f,_0x255346._0x3f1881)]}),this[_0x36e804(0xc3,0x0,_0x255346._0x5616ce,0x129)][_0x36e804(0x69,-0x34,0x29,_0x255346._0x255d62)](_0x3700b6));const _0x54dae4=_0xc7f328[_0x36e804(0xe3,0x11b,0x117,0x1a6)]?.[_0x36e804(-_0x255346._0x4fcd48,-0x10d,_0x255346._0x3093e8,-0xc0)]??'';_0x54dae4[_0x3a6903(_0x255346._0x4b45aa,_0x255346._0x4f626d,0x2ed,_0x255346._0x2035b2)]>0x0&&(_0xba1457[_0x3a6903(_0x255346._0x1c135f,0x3b9,0x4c2,_0x255346._0x288a08)][_0x36e804(-_0x255346._0x4fcd48,-_0x255346._0x3ca093,-_0x255346._0x44fa24,-_0x255346._0xca77ff)]+=_0x54dae4,_0x39a793[_0x3a6903(_0x255346._0xac2d07,_0x255346._0x5b3cce,_0x255346._0x406737,_0x255346._0x263a56)]({'type':_0x3a6903(0x383,0x304,0x246,0x2b5),'id':_0xba1457['id'],'index':_0x3700b6,'inputDelta':_0x54dae4}));}_0x4253b0['finish_reason']===_0x3a6903(0x252,0x348,_0x255346._0x2ab803,0x2e4)&&(this[_0x3a6903(0x440,_0x255346._0x5b6481,0x492,_0x255346._0x51244d)]=_0x3a6903(0x317,_0x255346._0x2d75f2,0x302,0x343));}function _0x3a6903(_0x30a313,_0x61040b,_0x24ef6c,_0x5ca87f){return _0x532739(_0x61040b,_0x5ca87f-_0x1d4289._0x56dc69,_0x24ef6c-0x1a6,_0x5ca87f-_0x1d4289._0x26b415);}return _0x39a793;}},OpenAiResponsesStreamParser=class{[_0x532739(-0xd1,-0x18a,-0x12f,-0xe0)]=new Map();[_0x22e674(0x3e3,0x523,0x516,0x44d)];[_0x532739(-0x16e,-0x117,-0x146,-0x1ad)]=new Map();[_0x22e674(0x3ee,0x366,0x2e5,0x383)]=new Map();[_0x532739(-0x17e,-0x20c,-0x132,-0x1a9)]=new Map();[_0x22e674(0x3cb,0x36f,0x336,0x3b1)];[_0x22e674(0x408,0x502,0x4de,0x41c)]=new Map();['toolCalls']=new Map();constructor(_0x822de1){const _0x157f3c={_0x3eb648:0x79};function _0x335ac5(_0x41ca3d,_0x9e575c,_0x208ad7,_0x36c548){return _0x532739(_0x208ad7,_0x41ca3d-0x27d,_0x208ad7-0x4c,_0x36c548-0xec);}this[_0x335ac5(0x12c,0x10c,0x198,_0x157f3c._0x3eb648)]=_0x822de1;}[_0x532739(-0xe9,-0xae,-0x10a,-0x10)](_0x2eaa79){const _0x5589a1={_0x5770d5:0x63e,_0x4579f3:0x578,_0xe83879:0x496,_0x33d6e7:0x5d8,_0x5bac1f:0x46c,_0x16b94a:0x588,_0x539052:0x428,_0x29433b:0x9a,_0x55783d:0x77,_0x4c6b96:0x15a,_0x18f534:0x4d0,_0x2291f0:0x494,_0x3c7f42:0x4da,_0x38818e:0x592,_0x301ce7:0x61a,_0x4e2c50:0x5d5,_0xfe4bca:0x195,_0x12bcbb:0xfd,_0x36d67f:0x88,_0x2be9d9:0x153,_0x4786b0:0x14d,_0x2e136a:0x94},_0x3c519f={_0x2dbf8c:0xfe,_0x2781c0:0x15a},_0x35af66={_0x17b5c9:0xae,_0x253075:0x77},_0x3a281a=_0x2eaa79[_0x43a387(_0x5589a1._0x5770d5,_0x5589a1._0x4579f3,_0x5589a1._0xe83879,_0x5589a1._0x33d6e7)]('\x0a'),_0x305433=_0x3a281a[_0x43a387(0x4dd,0x4ca,_0x5589a1._0x5bac1f,0x4d5)](_0x1e5b48=>_0x1e5b48['startsWith'](_0x2bc13b(0x94,0xaa,0x1f,0x57)))?.[_0x43a387(0x6e4,0x618,0x661,0x618)](0x6)['trim'](),_0x286369=_0x3a281a['filter'](_0x3302cf=>_0x3302cf[_0x2bc13b(-0x10b,-0x143,-0x174,-0xe8)](_0x2bc13b(-0x6f,-0xc6,0x63,-0x1f)))[_0x43a387(_0x5589a1._0x16b94a,0x4e6,_0x5589a1._0x539052,0x539)](_0x394c38=>_0x394c38[_0x2bc13b(0xff,-0x67,-0x91,0x3e)](0x5)[_0x43a387(0x52e,0x567,0x560,0x4d0)]())[_0x2bc13b(-_0x5589a1._0x29433b,-_0x5589a1._0x55783d,-0x185,-0x15b)]('\x0a')[_0x2bc13b(-0xfa,-0x21b,-0x221,-_0x5589a1._0x4c6b96)]();if(_0x286369[_0x43a387(0x58c,_0x5589a1._0x18f534,0x4ab,0x52b)]===0x0||_0x286369===_0x43a387(_0x5589a1._0x2291f0,0x48c,0x4ed,_0x5589a1._0x3c7f42))return[];function _0x2bc13b(_0x5d0f4e,_0x3e46c2,_0x5c80a5,_0x210a13){return _0x532739(_0x5c80a5,_0x210a13-_0x35af66._0x17b5c9,_0x5c80a5-_0x35af66._0x253075,_0x210a13-0x1ea);}function _0x43a387(_0x167ed1,_0x4c3dcb,_0x36dd19,_0xda3b8d){return _0x532739(_0x167ed1,_0x4c3dcb-0x688,_0x36dd19-_0x3c519f._0x2dbf8c,_0xda3b8d-_0x3c519f._0x2781c0);}const _0x483e84=JSON[_0x43a387(_0x5589a1._0x4579f3,_0x5589a1._0x38818e,_0x5589a1._0x301ce7,_0x5589a1._0x4e2c50)](_0x286369);return this[_0x2bc13b(-_0x5589a1._0xfe4bca,-_0x5589a1._0x12bcbb,-_0x5589a1._0x36d67f,-_0x5589a1._0x2be9d9)](_0x305433??String(_0x483e84[_0x2bc13b(-0x134,-_0x5589a1._0x4786b0,-0x107,-_0x5589a1._0x2e136a)]??''),_0x483e84);}[_0x22e674(0x348,0x2f2,0x2ad,0x35b)](_0x59f16f){const _0x27980d={_0x2c2fe4:0x1a,_0x2e3fb9:0x9c,_0xf8b9f3:0x1b3},_0x1324ec={_0x1e10bb:0x82};function _0x3e01de(_0x46f072,_0x56d32d,_0x1495b8,_0x4fd47d){return _0x532739(_0x1495b8,_0x46f072-0xf2,_0x1495b8-_0x1324ec._0x1e10bb,_0x4fd47d-0x10);}function _0x12a0c0(_0x180c07,_0x624ab6,_0x36a14f,_0x380dd0){return _0x532739(_0x36a14f,_0x624ab6- -_0x27980d._0x2c2fe4,_0x36a14f-_0x27980d._0x2e3fb9,_0x380dd0-_0x27980d._0xf8b9f3);}return this[_0x12a0c0(-0x2f3,-0x21b,-0x1b7,-0x171)](String(_0x59f16f[_0x3e01de(-0x50,0x97,0x96,-0x118)]??''),_0x59f16f);}[_0x532739(-0x1ad,-0x116,-0x1a2,-0x1e5)](){const _0x5dde75={_0x30a952:0x4ae,_0x374dc5:0x2f8,_0x3109d3:0x3b9,_0x382a00:0x312,_0x2cbeda:0x3b8,_0x291a34:0x49f,_0x506da2:0x31e,_0x39103d:0x4d6,_0x51239a:0x462,_0x4832d2:0x461,_0x53ce9c:0x426},_0x37ff56={_0x4a7c8a:0x16d,_0x1427f7:0x27},_0x198afe={_0xd6eb40:0x9e};function _0xb766ca(_0xabb11a,_0x44fb49,_0x5e7956,_0x52ed35){return _0x22e674(_0xabb11a-0x43,_0x44fb49-_0x198afe._0xd6eb40,_0x52ed35,_0x5e7956-0x91);}const _0x5db36e=this[_0x23e4a5(0x3d3,0x474,0x42e,_0x5dde75._0x30a952)]??{'id':'resp-'+Date[_0xb766ca(_0x5dde75._0x374dc5,0x2ff,_0x5dde75._0x3109d3,_0x5dde75._0x382a00)](),'object':_0xb766ca(_0x5dde75._0x2cbeda,_0x5dde75._0x291a34,0x3f7,_0x5dde75._0x506da2),'status':_0xb766ca(0x404,_0x5dde75._0x39103d,_0x5dde75._0x51239a,0x52d),'output':this[_0xb766ca(_0x5dde75._0x4832d2,0x469,0x3bd,0x2f2)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x23e4a5(_0x2598e3,_0x5ee7ab,_0x1dff89,_0x280524){return _0x22e674(_0x2598e3-_0x37ff56._0x4a7c8a,_0x5ee7ab-0x74,_0x280524,_0x5ee7ab-_0x37ff56._0x1427f7);}return parseResponsesResponse(_0x5db36e,this[_0x23e4a5(_0x5dde75._0x53ce9c,0x3d8,0x434,0x400)]);}[_0x532739(-0x12e,-0x1fa,-0x182,-0x267)](){const _0x5725e5={_0x7ad6eb:0x279},_0x227b83={_0x43beac:0x14d};function _0xea20a2(_0x168ccf,_0x31ba42,_0x120035,_0x521f96){return _0x532739(_0x521f96,_0x120035-0x31c,_0x120035-_0x227b83._0x43beac,_0x521f96-0x20);}return this[_0xea20a2(0x1b4,_0x5725e5._0x7ad6eb,0x267,0x1e8)]!==void 0x0;}[_0x532739(-0x2c2,-0x201,-0x280,-0x1e3)](_0x2bbbdb,_0x4b5861){const _0x3eaea5={_0x74375f:0x40b,_0x20a171:0x297,_0x1fe77d:0x36f,_0x45bf97:0x12b,_0x438a9f:0x198,_0x137541:0x109,_0x4a8e9c:0x107,_0x2f60b3:0x1b8,_0xfc8c6a:0xa6,_0x267ec9:0x3af,_0x438c44:0x8b,_0x156343:0x161,_0x44a69d:0xee,_0x475dd5:0x2eb,_0x1228d6:0x315,_0x412ffa:0x342,_0x161085:0x359,_0xab6f6e:0x47d,_0x1718ec:0x269,_0x2af5de:0x2df,_0x47dfc0:0x43b,_0x1232b1:0x32f,_0x52e8b3:0x3b7,_0x4a7e85:0x336,_0x145b30:0x330,_0x50c33c:0x1dd,_0x187650:0x2c4,_0x552944:0x204,_0x1d517b:0x263,_0x1dc3bf:0x2f4,_0x24e1aa:0x31d,_0x391ae9:0x2c2,_0x208b8b:0x320,_0x107158:0x308,_0x1c63d6:0x25d,_0x3ae179:0x34b,_0xd0ef74:0x325,_0x491a4f:0xc1,_0x493ffb:0x95,_0xd721ef:0x3a6,_0x4fd0a:0x401,_0xecaf24:0x3ed,_0x5654da:0x33f,_0x39d54f:0x3ec,_0x4cf35f:0x37e,_0x55e30b:0x3a0,_0x3a0e70:0x388,_0x39e995:0x2d9,_0x77dd42:0x379,_0x343341:0x3f4,_0x559072:0x320,_0x104dbf:0x140,_0x2d7ee9:0x1c1,_0x2707dc:0xc0,_0x29b864:0x3fb,_0x4b1185:0x395,_0x2e7929:0x3c0,_0x23b15a:0x228,_0x3f56b5:0x38c,_0x3c9c9b:0x2b1,_0x475cf8:0x1da,_0x1a9362:0xe3,_0x52be53:0x209,_0x1e829b:0x3b3,_0xef79e6:0x2f6,_0x2d95a7:0x38b,_0x2f9976:0x316,_0x33d605:0x5e,_0xf0ed50:0x160,_0x3da5ba:0x185,_0x170cb7:0x385,_0x5164d0:0x2d3,_0x3f7a11:0x369,_0x23f56:0x9b,_0xad0ddc:0x14f,_0x3db2e0:0x3bf,_0x59c540:0x332,_0xc893c7:0x106,_0x1a52fc:0x8c,_0x1a370c:0x17b,_0x5d4b07:0x157,_0xbeacf8:0x2b4,_0x46f07c:0x283,_0x4b7fe7:0x2b4,_0x5b6f48:0x357,_0x6bbbaa:0x332,_0x334014:0x2f5,_0x5a2bd3:0x143,_0x401962:0x16e,_0x100f18:0x1fe,_0x5534e3:0x215,_0x36ff9c:0x39e,_0x4f26c1:0x1d8,_0x382d31:0xd3,_0x508d31:0x15f,_0x4053fb:0x1f2,_0x3ddb1a:0x469,_0x40ad68:0x45d,_0x4b3b68:0x3b7,_0xa1a626:0x1ad,_0x1261dc:0x1f7,_0x1d1ac4:0x3a0,_0x18b3f6:0x337,_0x32f424:0x330,_0x5eb51b:0x13b,_0x348b7d:0x353,_0x589d2b:0x2e0,_0x4847de:0x37f,_0x30621d:0x292,_0x1b52a5:0x23d,_0x19e5f0:0x250,_0x12656c:0x2a4,_0xa4f36a:0x27b,_0x4303d4:0x2dc,_0x288b26:0x21e,_0x17422c:0x14a,_0x54274c:0x1bc,_0x1768eb:0x223,_0x5e2e6a:0x1e6,_0x38405d:0x121,_0x4b79b0:0x173,_0x1fc8eb:0xc6,_0x529aa0:0x129,_0x4e534e:0x3c8,_0x58cb30:0x3b1,_0x50d883:0x10a,_0x1ec9a9:0x105,_0xeaa9d6:0x452,_0x225b4b:0x37e,_0xaf5c23:0xda,_0x2a746e:0x23a,_0x53f5c1:0x2be,_0x1e8b44:0x2ab,_0x50ccc4:0x44a,_0x5a3657:0x3c7,_0x453b00:0x369,_0x5656bb:0x10b,_0x5e1d2b:0xb0,_0x426f4e:0x297,_0x514a61:0x222,_0x47b5fa:0x2d7,_0x14e0a4:0x324,_0x377eee:0x442,_0x4ca727:0x32c,_0x19bfaf:0x2b6,_0x5cc7f8:0x44d,_0x48d465:0x192,_0x1ccedd:0x9a,_0x5df7c2:0x130,_0x14df72:0x18a,_0x1c5eaa:0x12a,_0x37dfb1:0xaf,_0x3fb6f4:0x1bd,_0x39d6b3:0x393,_0x25d683:0x3fe,_0x22ac0e:0x40a,_0x3d5fb1:0x391,_0x6e828a:0x4f1,_0x5d0bc5:0x428,_0xc8944a:0x345,_0x5d9c8d:0x41e,_0x3dc903:0x3f1,_0xd1db9d:0x428,_0x11813f:0x223,_0x2f9465:0x2cd,_0x275c7b:0xf5,_0x3aebb4:0x130,_0x533126:0x26c,_0x1b3f32:0x293,_0x3f69d9:0x132,_0x12f6df:0x3ba,_0x5abae4:0x4e2,_0x356d73:0x3fc,_0x25eda2:0x3c0,_0x4de1d7:0x35e,_0x147751:0x448,_0x314a6d:0x3fc,_0xf09648:0x426,_0x202e35:0x3f7,_0x4238c7:0xf1,_0x151998:0x11b,_0x23e47f:0x197,_0x406bda:0x499,_0x2efb1d:0x466,_0x5abb3e:0x181,_0x116dc7:0x6c,_0x4db730:0x14b,_0x3d04ff:0x13,_0x16e629:0x127,_0x35cfb9:0x16a,_0x294c42:0x1fc,_0x568511:0x1e6,_0x1872fa:0xde,_0x365328:0x176,_0x3b5e73:0x382,_0x48583d:0x378,_0x241015:0x240,_0x3211fe:0x232,_0x1a45be:0x2dd,_0x11e628:0x24b,_0x59b23a:0xf5,_0x1f266e:0x141,_0x142e07:0x3d5,_0x274223:0x394,_0x2bae4b:0x333,_0x410e8b:0x332,_0xa12986:0x230,_0xbe4293:0x108,_0x403f56:0x289,_0x9e7267:0x23a,_0x4813d9:0xb1,_0x47d3ea:0x448,_0x42cbb1:0x1ff,_0x285092:0x15c,_0x378082:0x31e,_0x16b4b1:0x1ce,_0x39c9d9:0x145,_0x25b93a:0x7b,_0xda2927:0x23d,_0x23a847:0x161,_0xc4eec9:0x331,_0x2891c1:0x3b5,_0x5be483:0x332,_0x1763be:0x224,_0x54fc8b:0x17a,_0x2bb4cf:0x1de,_0x4086f6:0x349,_0xb2d555:0x378,_0xea83fd:0x413,_0x2e9420:0x3ad,_0x1f51b9:0x41f,_0x159141:0xe9,_0x123551:0x2c0,_0x51102d:0x1a1,_0x2adad6:0x169,_0x48e537:0x319,_0x3239e7:0x3ac,_0x2cd4ba:0x3a1,_0x5d5e55:0x36d,_0x15f99a:0x2ea,_0x5cb82a:0x262,_0x5d08fb:0x25b,_0x25e7aa:0x244,_0x11874c:0xd1,_0x5a5d84:0x15a,_0x2b4809:0x1e1,_0x69286e:0x25d,_0x197ab0:0x198,_0x254780:0xcf,_0x5d48b0:0x2ae,_0x48ee07:0x282,_0x22bb99:0x3a3,_0x222882:0x2ca,_0x56e146:0x43d,_0x16e137:0x70,_0x46f4a5:0x11d,_0x5d08c9:0x200,_0x47d7c9:0x1be,_0x34ba36:0x1db,_0x37f4fb:0x1af,_0x5f58f5:0xb7,_0x138a9a:0xc9,_0x2f1a27:0x216,_0x3e6254:0xf6,_0x1de2c3:0x173,_0x43018c:0x3b1,_0x4d6748:0xc2,_0x674576:0x198,_0x51c5f7:0x255,_0x288d9a:0x3a2,_0x56d938:0x2dc,_0x34f295:0x223,_0x24f6f8:0x3de,_0x308851:0x34f,_0x45a799:0xf2,_0x48805d:0x1cb,_0x3223e9:0x2e,_0x4a2ec2:0xf5,_0x3c4923:0xb0,_0x69ab23:0x314,_0x5f53ee:0x408,_0x3662ad:0x306,_0xcf55c2:0x12d,_0x4a084b:0x206,_0x3c3e7e:0x2e9,_0x5569c8:0x3ac,_0x51f3fe:0x49d,_0xee1712:0x3e0,_0x21a5ef:0x76,_0x5c964b:0x1e3,_0x1c1255:0x420,_0x71e474:0x3f3,_0x4a1a46:0x203,_0x274256:0x28f,_0x446e23:0x2cf,_0x3722f5:0xc0,_0x1c05d5:0xe8,_0x2f7caa:0x14c,_0x37320d:0x12e,_0x52423e:0x157,_0x122662:0x1c4,_0x4b9254:0x32f,_0x182713:0x2a8,_0x3dfafe:0x49f,_0x2f83b9:0x3f3,_0x1e7da3:0xd9,_0x32f196:0x238,_0x2db9a8:0x1a6,_0x5e6d9b:0x1e6,_0x21cd7c:0x131,_0x19e9c8:0x136,_0x4da34c:0x1cf,_0x4664a9:0x1b7,_0x1dfd65:0xdc},_0x585fb3={_0x458c54:0x495,_0x789e07:0xd7};function _0x5781fd(_0x11d1ae,_0x5977d5,_0x591285,_0x501c1d){return _0x22e674(_0x11d1ae-0x1b7,_0x5977d5-0x19d,_0x501c1d,_0x591285- -0x23e);}switch(_0x2bbbdb){case _0x5781fd(0x182,0x158,0x1ee,0x289):{const _0x50339b=typeof _0x4b5861[_0x34ca9e(0x314,0x25d,0x287,0x330)]==='number'?_0x4b5861['output_index']:0x0,_0x34629e=typeof _0x4b5861[_0x34ca9e(_0x3eaea5._0x74375f,_0x3eaea5._0x20a171,_0x3eaea5._0x1fe77d,0x34c)]===_0x5781fd(_0x3eaea5._0x45bf97,0x140,_0x3eaea5._0x438a9f,_0x3eaea5._0x137541)?_0x4b5861[_0x5781fd(_0x3eaea5._0x4a8e9c,0x96,0x17b,_0x3eaea5._0x2f60b3)]:'';if(_0x34629e[_0x5781fd(_0x3eaea5._0xfc8c6a,0x162,0x10c,0x119)]>0x0){const _0x1b5c1c=this[_0x34ca9e(0x3fb,0x32c,0x313,_0x3eaea5._0x267ec9)][_0x5781fd(_0x3eaea5._0x438c44,0x162,_0x3eaea5._0x156343,_0x3eaea5._0x44a69d)](_0x50339b)??[];return _0x1b5c1c['push'](_0x34629e),this[_0x34ca9e(_0x3eaea5._0x475dd5,0x303,0x45a,0x3af)][_0x34ca9e(_0x3eaea5._0x1228d6,_0x3eaea5._0x412ffa,0x333,0x312)](_0x50339b,_0x1b5c1c),[{'type':_0x34ca9e(_0x3eaea5._0x161085,0x314,_0x3eaea5._0xab6f6e,0x3c3),'index':_0x50339b,'text':_0x34629e}];}break;}case _0x5781fd(0xf0,0x221,0x1c7,_0x3eaea5._0x1718ec):{const _0x44faa2=typeof _0x4b5861[_0x34ca9e(_0x3eaea5._0x2af5de,0x2b7,0x34f,0x330)]===_0x34ca9e(_0x3eaea5._0x47dfc0,_0x3eaea5._0x1232b1,0x3b1,_0x3eaea5._0x52e8b3)?_0x4b5861[_0x34ca9e(0x410,_0x3eaea5._0x4a7e85,0x415,_0x3eaea5._0x145b30)]:void 0x0,_0x5288dc=_0x4b5861[_0x5781fd(_0x3eaea5._0x50c33c,_0x3eaea5._0x187650,_0x3eaea5._0x552944,_0x3eaea5._0x1d517b)];if(_0x5288dc?.['type']===_0x34ca9e(0x3b7,_0x3eaea5._0x1dc3bf,_0x3eaea5._0x24e1aa,0x3b1)&&_0x5288dc[_0x34ca9e(0x2e1,0x332,_0x3eaea5._0x391ae9,_0x3eaea5._0x208b8b)]&&_0x5288dc['name'])return this[_0x34ca9e(_0x3eaea5._0x107158,_0x3eaea5._0x1c63d6,_0x3eaea5._0x3ae179,_0x3eaea5._0xd0ef74)]['set'](_0x5288dc[_0x5781fd(0x8c,_0x3eaea5._0x491a4f,0x14f,_0x3eaea5._0x493ffb)],{'id':_0x5288dc[_0x34ca9e(_0x3eaea5._0xd721ef,0x2e3,0x318,_0x3eaea5._0x208b8b)],'type':_0x34ca9e(_0x3eaea5._0x4fd0a,0x3de,_0x3eaea5._0xecaf24,0x40e),'function':{'name':_0x5288dc[_0x5781fd(0x111,0x6d,0xfd,0x77)],'arguments':''}}),_0x44faa2!==void 0x0&&(this[_0x34ca9e(_0x3eaea5._0x5654da,0x453,_0x3eaea5._0x39d54f,_0x3eaea5._0x4cf35f)][_0x34ca9e(_0x3eaea5._0x55e30b,_0x3eaea5._0x3a0e70,_0x3eaea5._0x39e995,0x312)](_0x44faa2,_0x5288dc[_0x34ca9e(0x2e2,_0x3eaea5._0x77dd42,_0x3eaea5._0x343341,_0x3eaea5._0x559072)]),this[_0x5781fd(_0x3eaea5._0x104dbf,_0x3eaea5._0x2d7ee9,0x13a,_0x3eaea5._0x2707dc)]['set'](_0x5288dc[_0x34ca9e(_0x3eaea5._0x29b864,_0x3eaea5._0x4b1185,_0x3eaea5._0x2e7929,0x320)],_0x44faa2)),[{'type':_0x34ca9e(_0x3eaea5._0x23b15a,0x295,_0x3eaea5._0x3f56b5,_0x3eaea5._0x3c9c9b),'id':_0x5288dc['call_id'],'index':_0x44faa2??0x0,'name':_0x5288dc[_0x5781fd(_0x3eaea5._0x475cf8,0x3a,0xfd,_0x3eaea5._0x1a9362)]}];if(_0x5288dc?.[_0x5781fd(0x1a1,0x104,0x182,_0x3eaea5._0x52be53)]===_0x34ca9e(0x347,_0x3eaea5._0x1e829b,0x348,_0x3eaea5._0xef79e6)&&_0x5288dc['id']){const _0x419edd=this['getOrCreateReasoningItem'](_0x5288dc['id'],_0x44faa2);_0x44faa2!==void 0x0&&this[_0x34ca9e(_0x3eaea5._0x2d95a7,0x315,0x2e2,_0x3eaea5._0x2f9976)][_0x5781fd(_0x3eaea5._0x33d605,_0x3eaea5._0xf0ed50,0x141,_0x3eaea5._0x3da5ba)](_0x44faa2,_0x419edd['id']);}break;}case'response.function_call_arguments.delta':{const _0x2e55f7=typeof _0x4b5861[_0x34ca9e(0x2af,0x3e7,_0x3eaea5._0x170cb7,0x320)]===_0x34ca9e(0x3d9,_0x3eaea5._0x5164d0,0x354,_0x3eaea5._0x3f7a11)?_0x4b5861[_0x5781fd(0x20d,_0x3eaea5._0x23f56,_0x3eaea5._0xad0ddc,0x233)]:typeof _0x4b5861[_0x34ca9e(0x367,0x3d2,0x320,0x330)]===_0x5781fd(0x12c,0x107,0x1e6,0x200)?this['outputIndexToCallId'][_0x34ca9e(0x3a1,0x2ff,_0x3eaea5._0x3db2e0,_0x3eaea5._0x59c540)](_0x4b5861[_0x5781fd(0x11d,_0x3eaea5._0xc893c7,0x15f,_0x3eaea5._0x1a52fc)]):void 0x0,_0x22aca2=typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x23f56,0x1a1,_0x3eaea5._0x1a370c,_0x3eaea5._0x5d4b07)]===_0x5781fd(0x219,0x1a4,_0x3eaea5._0x438a9f,0xb3)?_0x4b5861['delta']:'',_0x2a643c=_0x2e55f7?this[_0x34ca9e(_0x3eaea5._0xbeacf8,_0x3eaea5._0x46f07c,_0x3eaea5._0x4b7fe7,_0x3eaea5._0xd0ef74)][_0x34ca9e(0x2fc,0x401,_0x3eaea5._0x5b6f48,_0x3eaea5._0x6bbbaa)](_0x2e55f7):void 0x0;if(_0x2a643c&&_0x22aca2['length']>0x0)return _0x2a643c[_0x34ca9e(0x447,0x458,0x488,0x40e)][_0x34ca9e(_0x3eaea5._0x334014,0x250,0x355,0x2dc)]+=_0x22aca2,[{'type':_0x5781fd(_0x3eaea5._0x5a2bd3,0x120,0xe0,0xd2),'id':_0x2a643c['id'],'index':this[_0x5781fd(_0x3eaea5._0x401962,0x19f,0x13a,_0x3eaea5._0x100f18)][_0x5781fd(0xef,0x8c,0x161,0x227)](_0x2a643c['id'])??(typeof _0x4b5861['output_index']==='number'?_0x4b5861['output_index']:0x0),'inputDelta':_0x22aca2}];break;}case'response.function_call_arguments.done':{const _0x4c8143=typeof _0x4b5861['call_id']===_0x5781fd(0x17d,_0x3eaea5._0x5534e3,0x198,0x23b)?_0x4b5861[_0x34ca9e(0x36f,0x2b9,_0x3eaea5._0x36ff9c,_0x3eaea5._0x208b8b)]:typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x4f26c1,_0x3eaea5._0x382d31,_0x3eaea5._0x508d31,_0x3eaea5._0x4053fb)]===_0x34ca9e(_0x3eaea5._0x3ddb1a,_0x3eaea5._0x3ae179,_0x3eaea5._0x40ad68,_0x3eaea5._0x4b3b68)?this[_0x5781fd(0x282,0x1ce,_0x3eaea5._0xa1a626,_0x3eaea5._0x1261dc)][_0x5781fd(0xa3,0x1e5,0x161,0x1ca)](_0x4b5861[_0x34ca9e(_0x3eaea5._0x1d1ac4,_0x3eaea5._0x18b3f6,0x323,_0x3eaea5._0x32f424)]):void 0x0,_0x46082e=_0x4c8143?this['toolCalls']['get'](_0x4c8143):void 0x0;_0x46082e&&typeof _0x4b5861[_0x5781fd(0x1a9,_0x3eaea5._0x5eb51b,0x10b,0x27)]===_0x34ca9e(_0x3eaea5._0x348b7d,_0x3eaea5._0x589d2b,_0x3eaea5._0x4847de,0x369)&&(_0x46082e[_0x5781fd(0x1a2,_0x3eaea5._0x30621d,_0x3eaea5._0x1b52a5,_0x3eaea5._0x19e5f0)]['arguments']=_0x4b5861[_0x34ca9e(0x34e,_0x3eaea5._0x12656c,_0x3eaea5._0xa4f36a,_0x3eaea5._0x4303d4)]);break;}case _0x5781fd(_0x3eaea5._0x288b26,_0x3eaea5._0x17422c,_0x3eaea5._0x54274c,0x246):{const _0x29873b=typeof _0x4b5861[_0x5781fd(0x19f,0x206,_0x3eaea5._0x508d31,0x12d)]===_0x5781fd(0x275,_0x3eaea5._0x1768eb,_0x3eaea5._0x5e2e6a,0x273)?_0x4b5861['output_index']:void 0x0,_0x5bf205=_0x4b5861[_0x5781fd(0x2ac,_0x3eaea5._0x38405d,0x204,_0x3eaea5._0x4b79b0)];if(_0x5bf205?.[_0x5781fd(_0x3eaea5._0x1fc8eb,_0x3eaea5._0x529aa0,0x182,0x11b)]===_0x34ca9e(_0x3eaea5._0x4e534e,0x305,0x2d2,_0x3eaea5._0x58cb30)){const _0x46ae23=_0x5bf205[_0x5781fd(0x1e8,_0x3eaea5._0x50d883,0x14f,_0x3eaea5._0x1ec9a9)]??(_0x29873b!==void 0x0?this[_0x34ca9e(0x325,_0x3eaea5._0xeaa9d6,0x3bc,_0x3eaea5._0x225b4b)][_0x5781fd(_0x3eaea5._0xaf5c23,0x10f,0x161,_0x3eaea5._0x2a746e)](_0x29873b):void 0x0),_0x44bd4d=_0x46ae23?this['toolCalls'][_0x34ca9e(0x2f0,0x410,0x321,0x332)](_0x46ae23):void 0x0;_0x44bd4d&&typeof _0x5bf205[_0x34ca9e(0x2ed,0x31d,_0x3eaea5._0x53f5c1,0x2dc)]===_0x34ca9e(_0x3eaea5._0x1e8b44,_0x3eaea5._0x50ccc4,_0x3eaea5._0x5a3657,_0x3eaea5._0x453b00)&&(_0x44bd4d['function'][_0x5781fd(0x188,0xce,_0x3eaea5._0x5656bb,_0x3eaea5._0x5e1d2b)]=_0x5bf205[_0x34ca9e(_0x3eaea5._0x426f4e,_0x3eaea5._0x514a61,_0x3eaea5._0x47b5fa,0x2dc)]);break;}if(_0x5bf205?.[_0x34ca9e(0x270,_0x3eaea5._0x14e0a4,0x32f,_0x3eaea5._0x348b7d)]==='reasoning'&&_0x5bf205['id']){const _0x554d80=this[_0x34ca9e(0x421,0x37f,_0x3eaea5._0x377eee,0x3ac)](_0x5bf205['id'],_0x29873b);typeof _0x5bf205[_0x34ca9e(_0x3eaea5._0x4ca727,0x224,0x2ae,_0x3eaea5._0x19bfaf)]===_0x34ca9e(0x410,0x2f6,_0x3eaea5._0x5cc7f8,_0x3eaea5._0x453b00)&&(_0x554d80[_0x5781fd(_0x3eaea5._0x48d465,_0x3eaea5._0x1ccedd,_0x3eaea5._0x5df7c2,_0x3eaea5._0x14df72)]=_0x5bf205[_0x5781fd(_0x3eaea5._0x1c5eaa,_0x3eaea5._0x37dfb1,0xe5,_0x3eaea5._0x3fb6f4)]);if(Array[_0x34ca9e(0x419,_0x3eaea5._0x39d6b3,_0x3eaea5._0x25d683,_0x3eaea5._0x22ac0e)](_0x5bf205[_0x34ca9e(_0x3eaea5._0x3d5fb1,0x444,_0x3eaea5._0x6e828a,0x428)]))for(let _0x3a3b27=0x0;_0x3a3b27<_0x5bf205[_0x34ca9e(_0x3eaea5._0x4cf35f,0x386,0x450,_0x3eaea5._0x5d0bc5)]['length'];_0x3a3b27+=0x1){const _0x302d15=_0x5bf205[_0x34ca9e(_0x3eaea5._0xc8944a,_0x3eaea5._0x5d9c8d,_0x3eaea5._0x3dc903,_0x3eaea5._0xd1db9d)][_0x3a3b27];_0x302d15['type']===_0x34ca9e(0x215,_0x3eaea5._0x11813f,_0x3eaea5._0x58cb30,0x2cc)&&typeof _0x302d15[_0x5781fd(_0x3eaea5._0x2f9465,0x312,0x22b,0x2a9)]===_0x5781fd(_0x3eaea5._0x275c7b,_0x3eaea5._0x3aebb4,0x198,_0x3eaea5._0x533126)&&_0x554d80[_0x5781fd(0x24d,_0x3eaea5._0x1b3f32,0x1e9,_0x3eaea5._0x3f69d9)]['set'](_0x3a3b27,_0x302d15[_0x34ca9e(_0x3eaea5._0x12f6df,_0x3eaea5._0x5abae4,0x33f,_0x3eaea5._0x356d73)]);}typeof _0x5bf205[_0x34ca9e(_0x3eaea5._0x25eda2,_0x3eaea5._0x4de1d7,_0x3eaea5._0x147751,_0x3eaea5._0x314a6d)]===_0x34ca9e(_0x3eaea5._0xf09648,0x3dd,_0x3eaea5._0x202e35,0x369)&&_0x554d80[_0x5781fd(_0x3eaea5._0x4238c7,0x17b,_0x3eaea5._0x151998,_0x3eaea5._0x3da5ba)][_0x5781fd(0x1a5,_0x3eaea5._0x23e47f,0x141,0x21c)](0x0,_0x5bf205[_0x34ca9e(_0x3eaea5._0x406bda,_0x3eaea5._0x2efb1d,0x4c4,0x3fc)]);}break;}case _0x34ca9e(_0x3eaea5._0x3ae179,0x2d8,_0x3eaea5._0x39e995,0x3a9):{const _0x2a8b33=typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x50c33c,_0x3eaea5._0x5abb3e,_0x3eaea5._0x1a370c,0x163)]==='string'?_0x4b5861['delta']:'',_0x2f6b5c=typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x116dc7,_0x3eaea5._0x4db730,0xb1,0x91)]==='string'?_0x4b5861[_0x5781fd(_0x3eaea5._0x3d04ff,0xee,0xb1,_0x3eaea5._0x16e629)]:typeof _0x4b5861[_0x5781fd(0x17a,_0x3eaea5._0x35cfb9,0x15f,0x1db)]===_0x5781fd(0x1dd,_0x3eaea5._0x294c42,_0x3eaea5._0x568511,0x24f)?this['outputIndexToReasoningId'][_0x5781fd(0xb0,_0x3eaea5._0x1872fa,0x161,_0x3eaea5._0x365328)](_0x4b5861[_0x5781fd(0x12b,0xff,0x15f,0x188)]):void 0x0,_0x3c0a70=typeof _0x4b5861[_0x5781fd(0x13a,0x168,0x15f,0x154)]===_0x34ca9e(_0x3eaea5._0x3b5e73,0x328,0x397,0x3b7)?_0x4b5861['output_index']:0x0,_0xa7d6da=typeof _0x4b5861[_0x34ca9e(0x390,0x31c,0x313,0x378)]==='number'?_0x4b5861[_0x34ca9e(_0x3eaea5._0x53f5c1,0x3f0,0x2ce,_0x3eaea5._0x48583d)]:0x0;if(_0x2f6b5c&&_0x2a8b33[_0x34ca9e(0x32c,_0x3eaea5._0x241015,_0x3eaea5._0x3211fe,_0x3eaea5._0x1a45be)]>0x0){const _0x1099f5=this[_0x5781fd(0x104,0x1f8,0x1db,0x298)](_0x2f6b5c,_0x3c0a70);_0x1099f5[_0x5781fd(0x22e,_0x3eaea5._0x11e628,0x1e9,0x179)][_0x5781fd(_0x3eaea5._0x59b23a,0xf3,_0x3eaea5._0x1f266e,0x1a1)](_0xa7d6da,''+(_0x1099f5[_0x34ca9e(_0x3eaea5._0x142e07,_0x3eaea5._0x274223,0x482,0x3ba)][_0x34ca9e(_0x3eaea5._0x2bae4b,0x3df,0x3a9,_0x3eaea5._0x410e8b)](_0xa7d6da)??'')+_0x2a8b33);if(isUserVisibleReasoning(this[_0x5781fd(_0x3eaea5._0xa12986,0xc1,0x173,_0x3eaea5._0xbe4293)]))return[{'type':_0x34ca9e(0x2c0,0x242,0x2c7,0x2d9),'delta':_0x2a8b33,'itemId':_0x2f6b5c,'outputIndex':_0x3c0a70,'summaryIndex':_0xa7d6da}];}break;}case _0x5781fd(0x20d,_0x3eaea5._0x403f56,_0x3eaea5._0x9e7267,0x31b):{const _0x394563=typeof _0x4b5861[_0x5781fd(0x178,0x4d,_0x3eaea5._0x4813d9,0x173)]===_0x34ca9e(_0x3eaea5._0x47d3ea,0x3ac,0x3ce,0x369)?_0x4b5861['item_id']:typeof _0x4b5861[_0x5781fd(0x1da,_0x3eaea5._0x42cbb1,_0x3eaea5._0x508d31,_0x3eaea5._0x285092)]===_0x34ca9e(0x477,0x354,_0x3eaea5._0x378082,0x3b7)?this[_0x5781fd(0x198,_0x3eaea5._0x16b4b1,_0x3eaea5._0x39c9d9,_0x3eaea5._0x25b93a)][_0x5781fd(_0x3eaea5._0xda2927,_0x3eaea5._0x5df7c2,_0x3eaea5._0x23a847,0xfa)](_0x4b5861[_0x34ca9e(_0x3eaea5._0xc4eec9,0x2c0,0x304,0x330)]):void 0x0,_0x152221=typeof _0x4b5861[_0x34ca9e(0x3b2,0x26c,0x29f,_0x3eaea5._0x145b30)]===_0x34ca9e(_0x3eaea5._0x2891c1,_0x3eaea5._0x5be483,_0x3eaea5._0x202e35,_0x3eaea5._0x52e8b3)?_0x4b5861[_0x5781fd(_0x3eaea5._0x1763be,_0x3eaea5._0x54fc8b,_0x3eaea5._0x508d31,_0x3eaea5._0x2bb4cf)]:0x0,_0x290116=typeof _0x4b5861[_0x34ca9e(0x35e,_0x3eaea5._0x14e0a4,_0x3eaea5._0x4086f6,_0x3eaea5._0xb2d555)]===_0x34ca9e(_0x3eaea5._0xea83fd,_0x3eaea5._0x2e9420,_0x3eaea5._0x1f51b9,_0x3eaea5._0x4b3b68)?_0x4b5861[_0x5781fd(0x136,_0x3eaea5._0x159141,0x1a7,0xcb)]:0x0,_0x5df104=typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x123551,_0x3eaea5._0x51102d,0x22b,_0x3eaea5._0x2adad6)]==='string'?_0x4b5861['text']:'';_0x394563&&this[_0x34ca9e(0x3d9,_0x3eaea5._0x48e537,0x321,0x3ac)](_0x394563,_0x152221)[_0x34ca9e(_0x3eaea5._0x3239e7,_0x3eaea5._0x2cd4ba,_0x3eaea5._0x5d5e55,0x3ba)][_0x34ca9e(0x2d6,_0x3eaea5._0x15f99a,0x315,0x312)](_0x290116,_0x5df104);break;}case _0x5781fd(_0x3eaea5._0x514a61,_0x3eaea5._0x5cb82a,_0x3eaea5._0x5d08fb,_0x3eaea5._0x25e7aa):{const _0x300f1f=typeof _0x4b5861[_0x5781fd(0xe4,_0x3eaea5._0x11874c,0x17b,_0x3eaea5._0x5a5d84)]===_0x5781fd(_0x3eaea5._0x2b4809,_0x3eaea5._0x69286e,_0x3eaea5._0x197ab0,_0x3eaea5._0x254780)?_0x4b5861['delta']:'',_0x2adac6=typeof _0x4b5861['item_id']==='string'?_0x4b5861[_0x34ca9e(0x23a,_0x3eaea5._0x5d48b0,0x23c,_0x3eaea5._0x48ee07)]:typeof _0x4b5861['output_index']==='number'?this[_0x34ca9e(_0x3eaea5._0x1e8b44,0x2b1,0x342,_0x3eaea5._0x2f9976)]['get'](_0x4b5861[_0x34ca9e(0x2c7,_0x3eaea5._0x22bb99,0x28e,0x330)]):void 0x0,_0x4c947e=typeof _0x4b5861[_0x34ca9e(_0x3eaea5._0x222882,0x35d,0x391,0x330)]===_0x34ca9e(0x471,0x475,_0x3eaea5._0x56e146,0x3b7)?_0x4b5861['output_index']:0x0,_0x15f7be=typeof _0x4b5861[_0x5781fd(0xc8,0xd1,_0x3eaea5._0x275c7b,_0x3eaea5._0x16e137)]===_0x5781fd(_0x3eaea5._0x46f4a5,_0x3eaea5._0x5d08c9,0x1e6,0x1ec)?_0x4b5861[_0x34ca9e(0x393,0x365,0x296,0x2c6)]:0x0;if(_0x2adac6&&_0x300f1f['length']>0x0){const _0x11b955=this[_0x5781fd(0x1a4,_0x3eaea5._0x47d7c9,_0x3eaea5._0x34ba36,0x26f)](_0x2adac6,_0x4c947e);_0x11b955[_0x5781fd(0x1e2,_0x3eaea5._0x37f4fb,_0x3eaea5._0x151998,_0x3eaea5._0x5f58f5)][_0x5781fd(_0x3eaea5._0x138a9a,0x1ad,_0x3eaea5._0x1f266e,_0x3eaea5._0x2f1a27)](_0x15f7be,''+(_0x11b955[_0x5781fd(0x1b8,0x8f,0x11b,_0x3eaea5._0x3e6254)][_0x5781fd(_0x3eaea5._0x288b26,0x19b,0x161,0x10d)](_0x15f7be)??'')+_0x300f1f);if(isUserVisibleReasoning(this[_0x5781fd(0x17f,0x103,_0x3eaea5._0x1de2c3,0x244)]))return[{'type':'openai_reasoning_delta','contentIndex':_0x15f7be,'delta':_0x300f1f,'itemId':_0x2adac6,'outputIndex':_0x4c947e}];}break;}case _0x34ca9e(_0x3eaea5._0x43018c,0x346,0x3e2,0x36b):{const _0x2c6ddf=typeof _0x4b5861['item_id']===_0x5781fd(0x13e,_0x3eaea5._0x4d6748,_0x3eaea5._0x674576,0x1e8)?_0x4b5861[_0x5781fd(0x64,0x83,0xb1,0xe3)]:typeof _0x4b5861[_0x34ca9e(_0x3eaea5._0x51c5f7,0x2cd,0x34c,0x330)]===_0x34ca9e(0x3c6,_0x3eaea5._0x288d9a,_0x3eaea5._0x56d938,0x3b7)?this[_0x5781fd(0x7a,_0x3eaea5._0x34f295,0x145,0x152)][_0x34ca9e(_0x3eaea5._0x24f6f8,0x327,0x331,0x332)](_0x4b5861[_0x34ca9e(0x2e7,_0x3eaea5._0x308851,0x28f,0x330)]):void 0x0,_0x424f89=typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x45a799,0xd8,0x15f,_0x3eaea5._0x37f4fb)]==='number'?_0x4b5861[_0x5781fd(0x86,0x1f0,_0x3eaea5._0x508d31,_0x3eaea5._0x48805d)]:0x0,_0xb9e082=typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x3223e9,_0x3eaea5._0x493ffb,_0x3eaea5._0x4a2ec2,_0x3eaea5._0x3c4923)]===_0x34ca9e(_0x3eaea5._0x69ab23,_0x3eaea5._0x5f53ee,_0x3eaea5._0x3662ad,_0x3eaea5._0x4b3b68)?_0x4b5861['content_index']:0x0,_0x5c124d=typeof _0x4b5861['text']===_0x5781fd(_0x3eaea5._0xcf55c2,_0x3eaea5._0x514a61,0x198,0x1ca)?_0x4b5861[_0x5781fd(0x2d6,_0x3eaea5._0x1261dc,0x22b,_0x3eaea5._0x4a084b)]:'';_0x2c6ddf&&this[_0x34ca9e(_0x3eaea5._0x3c3e7e,0x2d9,0x2de,_0x3eaea5._0x5569c8)](_0x2c6ddf,_0x424f89)['textByIndex']['set'](_0xb9e082,_0x5c124d);break;}case _0x34ca9e(_0x3eaea5._0x51f3fe,0x387,0x376,0x417):{this[_0x34ca9e(0x428,_0x3eaea5._0x36ff9c,0x382,_0x3eaea5._0xee1712)]=_0x4b5861[_0x5781fd(0x17b,_0x3eaea5._0x21a5ef,0x128,_0x3eaea5._0x5c964b)];break;}case'response.failed':{const _0x9950c=_0x4b5861['response'];throw new ProviderStreamEventError(_0x9950c?.['error']?.['message']??_0x34ca9e(0x3ac,0x42b,_0x3eaea5._0x1c1255,_0x3eaea5._0x71e474),{'code':_0x9950c?.[_0x34ca9e(_0x3eaea5._0x4a1a46,_0x3eaea5._0x274256,0x223,_0x3eaea5._0x446e23)]?.[_0x5781fd(_0x3eaea5._0x3722f5,0xac,_0x3eaea5._0x1c05d5,_0x3eaea5._0x2f7caa)],'retryable':!![]});}case _0x5781fd(_0x3eaea5._0x37320d,_0x3eaea5._0x52423e,0xfe,0x4b):{const _0x4ef699=_0x4b5861['error'];throw new ProviderStreamEventError(_0x4ef699?.[_0x34ca9e(0x224,_0x3eaea5._0x122662,_0x3eaea5._0x4b9254,_0x3eaea5._0x182713)]??_0x34ca9e(0x31e,0x357,_0x3eaea5._0x3dfafe,_0x3eaea5._0x2f83b9),{'code':_0x4ef699?.['code'],'retryable':!![],'status':typeof _0x4b5861[_0x5781fd(0x127,_0x3eaea5._0x1e7da3,0x1b7,_0x3eaea5._0x32f196)]===_0x5781fd(_0x3eaea5._0x2db9a8,_0x3eaea5._0x294c42,_0x3eaea5._0x5e6d9b,_0x3eaea5._0x21cd7c)?_0x4b5861[_0x5781fd(_0x3eaea5._0x19e9c8,_0x3eaea5._0x4da34c,_0x3eaea5._0x4664a9,_0x3eaea5._0x1dfd65)]:void 0x0});}}function _0x34ca9e(_0x3d07cf,_0x3a762d,_0xfcfdb7,_0xbe9c7d){return _0x532739(_0x3d07cf,_0xbe9c7d-_0x585fb3._0x458c54,_0xfcfdb7-0x86,_0xbe9c7d-_0x585fb3._0x789e07);}return[];}[_0x532739(-0x16d,-0x1d6,-0x285,-0x155)](){const _0x46de80={_0x4e0929:0x494,_0x4ca041:0x55e,_0x24733e:0x357,_0x4c5aa5:0x329,_0x21d1d3:0x2c7,_0x4fca20:0x33d,_0x1ae9c4:0x332,_0x38a46e:0x3bd,_0x45373d:0x409,_0x1ea54d:0x3e4,_0x1eb5e6:0x3ca,_0x241d20:0x448,_0x6c54ae:0x3ff,_0x457f10:0x480,_0x21af56:0x304,_0x2b0548:0x393,_0x2375d0:0x374,_0x1009f4:0x319,_0x3a2b87:0x3e6,_0x11b1eb:0x34f,_0x2fc816:0x39e,_0x4bdc14:0x3c0,_0x5a2589:0x56a,_0x4e4e92:0x4c2,_0x275e01:0x4dc,_0x11bdef:0x4b4,_0x56837a:0x36a,_0x2d75fb:0x4af,_0x242177:0x577,_0x17baf7:0x357,_0x35d564:0x272,_0x2a00ee:0x366,_0x20e2bb:0x37b,_0x427092:0x32e,_0x3d755d:0x30c,_0x1b2f82:0x3d8,_0x4a0cc5:0x37f,_0x3fdafb:0x41e,_0x2f84fd:0x352,_0x454623:0x389,_0x123b75:0x440,_0xa5bd9f:0x44c,_0x57d325:0x473,_0xf443cd:0x363,_0x448240:0x329,_0x58b165:0x30f,_0x5c72fd:0x2f7,_0x410b27:0x3ec,_0x3c3833:0x406,_0x5a6ea4:0x2ff,_0xfe7b15:0x400,_0x4f0da7:0x311,_0xa75d2e:0x3f0,_0x3385c5:0x381,_0x184543:0x43c,_0x615153:0x3c2,_0x1566e6:0x48d,_0xb9b739:0x36b,_0x7111cd:0x2e9,_0x5680f2:0x43a,_0x48d5dc:0x35d,_0x5a6e99:0x391},_0x4d0a2c={_0x2a6406:0x532,_0x304762:0x73},_0x34914e={_0x102339:0x51},_0x4e3db9=[];for(const [_0x5d8a1a,_0x54758e]of this[_0x1bb382(0x3e2,0x4eb,_0x46de80._0x4e0929,_0x46de80._0x4ca041)][_0x2b7bbb(_0x46de80._0x24733e,0x2a0,0x2d2,0x365)]()){const _0x228651=_0x54758e[_0x2b7bbb(_0x46de80._0x4c5aa5,_0x46de80._0x21d1d3,_0x46de80._0x4fca20,_0x46de80._0x1ae9c4)]('');if(_0x228651[_0x1bb382(0x489,0x3c8,0x3c2,_0x46de80._0x38a46e)]===0x0)continue;_0x4e3db9['push']({'index':_0x5d8a1a,'item':{'type':'message','role':_0x2b7bbb(0x3f6,0x360,_0x46de80._0x45373d,_0x46de80._0x1ea54d),'content':[{'type':_0x1bb382(_0x46de80._0x38a46e,0x4ae,0x436,_0x46de80._0x1eb5e6),'text':_0x228651}]}});}for(const _0x983517 of this['reasoningItems']['values']()){_0x4e3db9['push']({'index':_0x983517[_0x1bb382(_0x46de80._0x241d20,0x32e,_0x46de80._0x6c54ae,_0x46de80._0x457f10)]??_0x4e3db9[_0x1bb382(0x369,0x3fb,0x3c2,_0x46de80._0x21af56)],'item':{'type':_0x2b7bbb(_0x46de80._0x2b0548,_0x46de80._0x2375d0,0x3a6,_0x46de80._0x1009f4),'id':_0x983517['id'],..._0x983517[_0x1bb382(0x30a,0x42b,_0x46de80._0x3a2b87,_0x46de80._0x11b1eb)]?{'encrypted_content':_0x983517[_0x2b7bbb(_0x46de80._0x2fc816,0x46d,0x2f1,_0x46de80._0x4bdc14)]}:{},..._0x983517['summaryByIndex'][_0x1bb382(_0x46de80._0x5a2589,_0x46de80._0x4e4e92,_0x46de80._0x275e01,_0x46de80._0x11bdef)]>0x0?{'summary':Array[_0x2b7bbb(0x334,0x357,0x361,_0x46de80._0x56837a)](_0x983517[_0x1bb382(_0x46de80._0x2d75fb,_0x46de80._0x242177,0x49f,0x586)][_0x2b7bbb(_0x46de80._0x17baf7,0x2e8,0x3f3,_0x46de80._0x35d564)]())[_0x1bb382(0x31d,0x2e4,_0x46de80._0x2a00ee,_0x46de80._0x20e2bb)]((_0x1547ec,_0xfdb27)=>_0x1547ec[0x0]-_0xfdb27[0x0])[_0x1bb382(_0x46de80._0x427092,_0x46de80._0x3d755d,_0x46de80._0x1b2f82,0x443)](([,_0x16422e])=>{function _0x1df0bd(_0x25ae4a,_0x224a43,_0x44f581,_0x5cd754){return _0x2b7bbb(_0x44f581- -0x31a,_0x224a43-0x1db,_0x224a43,_0x5cd754-0x1cd);}return{'type':_0x1df0bd(-_0x34914e._0x102339,0x122,0x4f,0x105),'text':_0x16422e};})}:{},..._0x983517[_0x2b7bbb(0x389,_0x46de80._0x4a0cc5,0x3e7,0x306)][_0x2b7bbb(0x494,0x513,0x487,_0x46de80._0x3fdafb)]>0x0?{'text':Array[_0x1bb382(0x2e2,0x34d,0x37c,_0x46de80._0x2f84fd)](_0x983517[_0x2b7bbb(_0x46de80._0x454623,0x3b4,_0x46de80._0x123b75,_0x46de80._0xa5bd9f)][_0x1bb382(0x431,0x3a3,0x39f,_0x46de80._0x57d325)]())[_0x1bb382(0x2f4,0x426,_0x46de80._0x2a00ee,_0x46de80._0xf443cd)]((_0x492393,_0x5345bf)=>_0x492393[0x0]-_0x5345bf[0x0])['map'](([,_0x998b95])=>_0x998b95)[_0x2b7bbb(_0x46de80._0x448240,_0x46de80._0x58b165,_0x46de80._0x5c72fd,_0x46de80._0x410b27)]('')}:{}}});}function _0x2b7bbb(_0x1c77d4,_0x48c091,_0x1c4f94,_0x4c20a7){return _0x532739(_0x1c4f94,_0x1c77d4-_0x4d0a2c._0x2a6406,_0x1c4f94-0xaa,_0x4c20a7-_0x4d0a2c._0x304762);}function _0x1bb382(_0x20e25d,_0x3931c9,_0x4e6f7b,_0x38822f){return _0x22e674(_0x20e25d-0x7a,_0x3931c9-0x11c,_0x38822f,_0x4e6f7b-0x78);}for(const _0x134124 of this[_0x2b7bbb(0x3c2,_0x46de80._0x3c3833,0x386,0x3df)][_0x2b7bbb(0x3c1,_0x46de80._0x5a6ea4,0x318,0x38a)]()){_0x4e3db9['push']({'index':this[_0x1bb382(_0x46de80._0xfe7b15,_0x46de80._0x4f0da7,_0x46de80._0xa75d2e,_0x46de80._0x3385c5)]['get'](_0x134124['id'])??_0x4e3db9[_0x1bb382(_0x46de80._0x184543,0x382,_0x46de80._0x615153,0x392)],'item':{'type':_0x1bb382(0x508,_0x46de80._0x1566e6,0x496,0x51e),'call_id':_0x134124['id'],'name':_0x134124['function'][_0x2b7bbb(_0x46de80._0xb9b739,_0x46de80._0x7111cd,0x29a,0x305)],'arguments':_0x134124['function'][_0x2b7bbb(0x379,0x3f7,_0x46de80._0x5680f2,0x45b)]}});}return _0x4e3db9[_0x1bb382(0x41a,0x425,0x366,_0x46de80._0x48d5dc)]((_0x22e790,_0x12875c)=>_0x22e790[_0x2b7bbb(0x443,0x3b8,0x3ef,0x36b)]-_0x12875c['index'])[_0x1bb382(0x42c,_0x46de80._0x5a6e99,0x3d8,0x417)](_0xbae92b=>_0xbae92b[_0x1bb382(0x489,0x4ab,0x4ba,0x443)]);}[_0x532739(-0x187,-0xe9,-0x194,-0xfb)](_0x13f941,_0xad807c){const _0x4650c4={_0x3703aa:0x24a,_0xb86306:0x1c1,_0xc48989:0x1b5,_0x30fa1d:0x2fa,_0x2c342f:0x430,_0x7e4f35:0x2d7,_0xf9ac3f:0x206,_0xe8babc:0x391,_0x2de6d6:0x133},_0x5a7c05={_0x29a53a:0x26},_0x1832b5=this[_0x3477c1(0x356,0x2e2,0x3c4,_0x4650c4._0x3703aa)]['get'](_0x13f941);if(_0x1832b5)return _0xad807c!==void 0x0&&(_0x1832b5[_0x3abcca(-0x175,-0x12f,-_0x4650c4._0xb86306,-_0x4650c4._0xc48989)]=_0xad807c,this[_0x3477c1(_0x4650c4._0x30fa1d,0x36f,_0x4650c4._0x2c342f,0x327)]['set'](_0xad807c,_0x13f941)),_0x1832b5;const _0x23fe9c={'id':_0x13f941,'outputIndex':_0xad807c,'summaryByIndex':new Map(),'textByIndex':new Map()};function _0x3abcca(_0x38a219,_0x195e99,_0x379dfd,_0x459c04){return _0x22e674(_0x38a219-0x165,_0x195e99-0x1c0,_0x38a219,_0x195e99- -0x4b6);}this[_0x3477c1(_0x4650c4._0x7e4f35,0x2e2,_0x4650c4._0xf9ac3f,_0x4650c4._0xe8babc)]['set'](_0x13f941,_0x23fe9c);function _0x3477c1(_0x4562f3,_0x460141,_0x11fc8b,_0x12fac6){return _0x22e674(_0x4562f3-_0x5a7c05._0x29a53a,_0x460141-0xf3,_0x4562f3,_0x460141- -0x14);}return _0xad807c!==void 0x0&&this[_0x3abcca(-0x117,-_0x4650c4._0x2de6d6,-0xc5,-0x219)][_0x3477c1(0x3c8,0x36b,0x3b8,0x2aa)](_0xad807c,_0x13f941),_0x23fe9c;}};function createOpenAiResponsesStreamParser(_0x37fb0c){return new OpenAiResponsesStreamParser(_0x37fb0c);}function createOpenAiSurfaces(_0x413609={}){const _0x15bbbc={_0x308c49:0x505,_0x3ea7a1:0x4e0,_0x6c6609:0x4cb,_0xa8bca8:0x5b8,_0x1fde86:0x5e0,_0x2d629f:0x5bc,_0x1ec5c5:0x578,_0x224567:0x4c3,_0x28962b:0x581,_0x55d685:0x4b2,_0x5bda11:0x4b1,_0x177469:0x48a,_0x122a27:0x488,_0x2d6300:0x52a,_0x177a01:0x531},_0x4fa539={_0x428f9b:0x3ff,_0x22903f:0x3c3},_0x164382={_0x4a7722:0x4b,_0x966686:0x172,_0x5a9e33:0x1e0},_0x23cbbe={_0x173145:0x156},_0x1f3d02={_0xf7f814:0x1db,_0x215c89:0x14e,_0x4702b6:0x163};function _0x13684f(_0x48d2ae,_0x3d3949,_0x2642fa,_0x32757a){return _0x22e674(_0x48d2ae-_0x1f3d02._0xf7f814,_0x3d3949-_0x1f3d02._0x215c89,_0x2642fa,_0x3d3949-_0x1f3d02._0x4702b6);}const _0xb15045=_0x413609[_0x13684f(_0x15bbbc._0x308c49,0x501,_0x15bbbc._0x3ea7a1,_0x15bbbc._0x6c6609)]??_0x10b350(0x5da,0x56d,0x596,_0x15bbbc._0xa8bca8);function _0x10b350(_0x31db98,_0x21e4b6,_0x47f2ff,_0x2442b3){return _0x22e674(_0x31db98-_0x23cbbe._0x173145,_0x21e4b6-0xe2,_0x21e4b6,_0x47f2ff-0x13f);}const _0xc05596=_0x413609[_0x13684f(_0x15bbbc._0x1fde86,_0x15bbbc._0x2d629f,0x5dc,_0x15bbbc._0x1ec5c5)]??'/responses';return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x13684f(0x46a,0x4b3,_0x15bbbc._0x224567,0x483),'createRequest'(_0x4ce27c){return{'accept':'application/json','body':createChatRequestBody(_0x4ce27c,![]),'path':_0xb15045};},'parseResponse'(_0x39ae86){return parseChatCompletionResponse(_0x39ae86);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x10b350(_0x15bbbc._0x28962b,_0x15bbbc._0x55d685,_0x15bbbc._0x5bda11,0x4b8),'createRequest'(_0x56314b){return{'accept':'text/event-stream','body':createChatRequestBody(_0x56314b,!![]),'path':_0xb15045};},'createStreamParser'(_0x2cfb0d){return new OpenAiChatCompletionsStreamParser(_0x2cfb0d);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x10b350(_0x15bbbc._0x177469,_0x15bbbc._0x122a27,0x48f,0x48f),'createRequest'(_0x5788ef){return{'accept':'application/json','body':createResponsesRequestBody(_0x5788ef,![]),'path':_0xc05596};},'parseResponse'(_0x5acf39,_0x4213a5){return parseResponsesResponse(_0x5acf39,_0x4213a5);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x39e119){function _0xeeedea(_0x11a622,_0x4aa3e3,_0x5acc35,_0x307ac9){return _0x13684f(_0x11a622-_0x164382._0x4a7722,_0x5acc35- -_0x164382._0x966686,_0x307ac9,_0x307ac9-_0x164382._0x5a9e33);}return{'accept':_0xeeedea(0x3d5,_0x4fa539._0x428f9b,0x3ca,_0x4fa539._0x22903f),'body':createResponsesRequestBody(_0x39e119,!![]),'path':_0xc05596};},'createStreamParser'(_0x300e83){return new OpenAiResponsesStreamParser(_0x300e83);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x13684f(0x582,_0x15bbbc._0x2d6300,0x4bc,_0x15bbbc._0x177a01),'createRequest'(_0x66bc1e){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x66bc1e),'path':_0xc05596};},'createStreamParser'(_0x40ba01){return createOpenAiResponsesStreamParser(_0x40ba01);}}];}var OpenAiProviderAdapter=class{[_0x22e674(0x379,0x46d,0x2fe,0x3b7)];constructor(_0x4cad14){const _0x5f42f0={_0x207271:0x222,_0x17d6e8:0xee};function _0x379afb(_0x2c697f,_0x3905c2,_0x5f43ea,_0x34d505){return _0x532739(_0x5f43ea,_0x2c697f-_0x5f42f0._0x207271,_0x5f43ea-0x161,_0x34d505-_0x5f42f0._0x17d6e8);}this[_0x379afb(0xd7,0x77,0x28,0x178)]=_0x4cad14;}[_0x22e674(0x354,0x327,0x310,0x307)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x22e674(0x514,0x4b0,0x45c,0x49b)](_0x4998ca,_0x336c17){const _0x1858ef={_0x5dfb31:0x93,_0xdb27b9:0x89,_0x3626fb:0xf2,_0x163ea9:0x298,_0xd4628f:0x26b,_0xa22f13:0x1ae,_0x30bf00:0x257,_0x95ee56:0x193,_0x1aefe6:0x12a,_0x56c2d4:0x2ac,_0x52b717:0x21b,_0x14df48:0xaa,_0x47164f:0xfa,_0x5ee0cd:0x62,_0x369f75:0xd2,_0x526e7c:0x1a4,_0x48281f:0x2e5,_0x5f48d4:0x249,_0x133d25:0x223,_0xf3921a:0x1ca,_0x5e00ca:0x139,_0x51e7e3:0x29d,_0x72f806:0x18c,_0x572b0d:0x16c,_0x5ac769:0x16b,_0x37cae5:0x109,_0x2f6685:0x1ba,_0x582d6b:0x1f4,_0x20ef8b:0x133,_0x35e2bf:0xf2,_0x12cea6:0x7d,_0x4b19bf:0x157,_0x5e0f60:0x1cc},_0x1a7660={_0x32d5bf:0x70},_0x99cea8={_0x483bac:0x2cd,_0x23e4f2:0x28};function _0x5dc262(_0x314c17,_0x55f936,_0x2ad116,_0x2dfe82){return _0x532739(_0x314c17,_0x2ad116-_0x99cea8._0x483bac,_0x2ad116-_0x99cea8._0x23e4f2,_0x2dfe82-0x41);}function _0x24ddc3(_0x1995ab,_0x188b74,_0x2fc311,_0x359061){return _0x532739(_0x188b74,_0x359061-0x2bd,_0x2fc311-0x5f,_0x359061-_0x1a7660._0x32d5bf);}const _0x18c4b1=new Headers();_0x18c4b1['set']('accept',_0x336c17[_0x5dc262(_0x1858ef._0x5dfb31,_0x1858ef._0xdb27b9,0x11d,_0x1858ef._0x3626fb)]),_0x18c4b1['set']('authorization',_0x24ddc3(0x34d,0x2bf,_0x1858ef._0x163ea9,_0x1858ef._0xd4628f)+_0x4998ca['credential'][_0x5dc262(_0x1858ef._0xa22f13,_0x1858ef._0x30bf00,_0x1858ef._0x95ee56,0x203)]);_0x336c17[_0x24ddc3(_0x1858ef._0x1aefe6,_0x1858ef._0x56c2d4,0x15f,0x207)]!==![]&&_0x18c4b1[_0x5dc262(0xe3,_0x1858ef._0x52b717,0x14a,0xaa)](_0x24ddc3(_0x1858ef._0x14df48,_0x1858ef._0x47164f,_0x1858ef._0x5ee0cd,_0x1858ef._0x369f75),_0x5dc262(_0x1858ef._0x526e7c,_0x1858ef._0x48281f,_0x1858ef._0x5f48d4,_0x1858ef._0x133d25));const _0xb9d390=await this[_0x24ddc3(0x1b8,_0x1858ef._0xf3921a,_0x1858ef._0x5e00ca,0x172)]?.({'body':_0x4998ca[_0x5dc262(0x2d5,_0x1858ef._0x51e7e3,0x206,0x263)],'credential':_0x4998ca[_0x5dc262(0x117,0x151,_0x1858ef._0x72f806,0x117)],'request':_0x4998ca[_0x24ddc3(0x233,0x1f9,0xed,_0x1858ef._0x572b0d)],'session':_0x4998ca[_0x24ddc3(0x21f,_0x1858ef._0x5ac769,_0x1858ef._0x37cae5,_0x1858ef._0x2f6685)],'stream':_0x4998ca[_0x5dc262(0x1a4,0x151,_0x1858ef._0x582d6b,0x1c6)]});for(const [_0x4466f6,_0x294362]of Object[_0x5dc262(0x71,_0x1858ef._0x20ef8b,_0x1858ef._0x35e2bf,_0x1858ef._0x12cea6)](_0xb9d390??{})){_0x18c4b1[_0x5dc262(_0x1858ef._0x4b19bf,0x146,0x14a,_0x1858ef._0x5e0f60)](_0x4466f6,_0x294362);}return _0x18c4b1;}[_0x532739(-0x177,-0x9d,0x7,-0x86)](_0xbdd84e){return _0xbdd84e;}[_0x532739(-0x126,-0xb0,-0x64,0x4)](_0x5ce4f3,_0x3f9b77){return resolveSessionBaseUrl(_0x5ce4f3,_0x3f9b77);}[_0x22e674(0x430,0x3b2,0x44b,0x3cf)](_0x4cbc59,_0x37e40d){return resolveApiCredential(_0x4cbc59,_0x37e40d);}async[_0x22e674(0x271,0x28b,0x277,0x300)](_0x261baf){return await createOpenAiApiError(_0x261baf);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x532739(-0x138,-0x13d,-0x172,-0x16f)]=new Map();[_0x532739(-0x206,-0x164,-0x1e4,-0xe4)];['responsesPath'];constructor(_0x37ed2b={}){const _0x1984f3={_0x136503:0x72a,_0x1e03da:0xc7,_0x16db8f:0x17b,_0x35025c:0x582,_0x8ccee7:0x58f,_0x4078d9:0x537,_0x286204:0x64e,_0x3be97c:0x104,_0x5dc775:0x1df,_0x39cc5c:0x519,_0x5f2995:0x51a,_0x3b1a25:0x56f,_0xd976e1:0x5d7,_0x4a9b47:0x5cd,_0x289957:0x642,_0x4b3000:0x719,_0x1bdb0a:0x14e,_0x300ff4:0x224,_0x4270aa:0x578,_0xd1ca4a:0x4b1,_0x4c7937:0x56c,_0x35da4b:0x4df,_0x387add:0xd4,_0x13a1ad:0x77,_0x252ed3:0x5b0,_0x33b4fd:0x643,_0x4af7bb:0x577,_0x4c36f7:0x5d5,_0x248df4:0x13c,_0x270597:0x71,_0x242288:0x110,_0x4df0b2:0x1c1,_0x5d4d7b:0x116},_0x38870b={_0x2be592:0x15},_0x189d04={_0xd2bd04:0x6b7},_0x1a28ca=_0x37ed2b[_0x2c0fbf(0x65e,0x580,0x651,_0x1984f3._0x136503)]??_0x324445(_0x1984f3._0x1e03da,0x1c,_0x1984f3._0x16db8f,0xd5),_0x1fba48=_0x37ed2b[_0x2c0fbf(0x591,0x672,0x5ee,0x556)]??getDefaultMaxTokens(),_0x31ff9f=_0x37ed2b['chatCompletionsPath']??_0x2c0fbf(_0x1984f3._0x35025c,_0x1984f3._0x8ccee7,0x60c,_0x1984f3._0x4078d9);function _0x2c0fbf(_0x2b890b,_0x304baa,_0x16d0fe,_0x139631){return _0x532739(_0x139631,_0x16d0fe-_0x189d04._0xd2bd04,_0x16d0fe-0x90,_0x139631-0x2a);}const _0x50587f=_0x37ed2b[_0x2c0fbf(0x642,_0x1984f3._0x286204,0x60e,0x600)]??_0x324445(0x26a,_0x1984f3._0x3be97c,0x106,_0x1984f3._0x5dc775);function _0x324445(_0x3f941b,_0x12cda5,_0x577265,_0x35cc47){return _0x532739(_0x3f941b,_0x35cc47-0x27a,_0x577265-_0x38870b._0x2be592,_0x35cc47-0x9a);}super({'apiKey':_0x37ed2b[_0x2c0fbf(_0x1984f3._0x39cc5c,_0x1984f3._0x5f2995,_0x1984f3._0x3b1a25,_0x1984f3._0xd976e1)],'baseUrl':trimTrailingSlashes(_0x37ed2b[_0x2c0fbf(_0x1984f3._0x4a9b47,0x63b,_0x1984f3._0x289957,_0x1984f3._0x4b3000)]??_0x324445(0x1b9,_0x1984f3._0x1bdb0a,0x1db,_0x1984f3._0x300ff4)),'fetch':_0x37ed2b['fetch'],'maxTokens':_0x1fba48,'model':_0x1a28ca,'reasoning':_0x37ed2b[_0x2c0fbf(_0x1984f3._0x4270aa,_0x1984f3._0xd1ca4a,0x518,0x5b1)],'providerAdapter':new OpenAiProviderAdapter(_0x37ed2b[_0x2c0fbf(0x614,0x577,_0x1984f3._0x4c7937,_0x1984f3._0x35da4b)]),'providerSessionResolver':_0x37ed2b[_0x324445(0xfe,_0x1984f3._0x387add,0x156,_0x1984f3._0x13a1ad)],'requestMutators':_0x37ed2b[_0x2c0fbf(0x43b,_0x1984f3._0x252ed3,0x4d9,0x47b)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x37ed2b[_0x2c0fbf(_0x1984f3._0x33b4fd,0x628,_0x1984f3._0x4af7bb,_0x1984f3._0x4c36f7)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x31ff9f,'responsesPath':_0x50587f}),'webSocketFactory':_0x37ed2b[_0x324445(_0x1984f3._0x248df4,_0x1984f3._0x270597,0x4c,_0x1984f3._0x242288)]}),this[_0x324445(0x170,0xf5,_0x1984f3._0x4df0b2,_0x1984f3._0x5d4d7b)]=_0x31ff9f,this['responsesPath']=_0x50587f;}[_0x532739(0xe,-0x98,-0x109,-0xa4)](_0x319ea3,_0x422c45){const _0x3709eb={_0x48f8a2:0x247,_0x18b655:0x204,_0x4448b2:0x327},_0x70476b={_0x28a5b8:0x35,_0x5ae36e:0xbb};function _0x2a7e12(_0x49c0e7,_0xf7d052,_0x3d0c9b,_0x139bc2){return _0x22e674(_0x49c0e7-_0x70476b._0x28a5b8,_0xf7d052-_0x70476b._0x5ae36e,_0x3d0c9b,_0x49c0e7- -0x130);}return this[_0x2a7e12(_0x3709eb._0x48f8a2,0x2fb,_0x3709eb._0x18b655,_0x3709eb._0x4448b2)](_0x319ea3,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x422c45);}[_0x22e674(0x35d,0x3c4,0x419,0x38a)](_0x2a34fb,_0x4d74a1){const _0x5567f0={_0x4f2a4b:0x1cf,_0x107d5c:0x167,_0x1f2e76:0x1c0};function _0x28cb94(_0x680a50,_0x2b2d9f,_0x5c5272,_0xcb3e32){return _0x22e674(_0x680a50-_0x5567f0._0x4f2a4b,_0x2b2d9f-_0x5567f0._0x107d5c,_0x5c5272,_0x680a50- -_0x5567f0._0x1f2e76);}return this[_0x28cb94(0x1b7,0x10b,0x26b,0x126)](_0x2a34fb,OPENAI_RESPONSES_SURFACE,_0x4d74a1);}['completeViaResponsesWebSocketSurface'](_0x235e16,_0x38a507){return this['completeViaSurface'](_0x235e16,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x38a507);}[_0x532739(-0x2c4,-0x216,-0x2ae,-0x1d8)](_0x2c8fc0,_0x56a1d2){return this['streamViaSurface'](_0x2c8fc0,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x56a1d2);}[_0x532739(-0xb5,-0x15f,-0x204,-0x1bd)](_0x25046f,_0x4ef67a){const _0x114ec0={_0x1730f9:0x565},_0x47cdfc={_0x35b8fa:0x166,_0x247ad4:0x15a};function _0x346701(_0xa5af73,_0x53e1a2,_0x16aaac,_0x31cf0c){return _0x22e674(_0xa5af73-0x183,_0x53e1a2-_0x47cdfc._0x35b8fa,_0x31cf0c,_0xa5af73-_0x47cdfc._0x247ad4);}return this[_0x346701(0x519,0x4ac,0x460,_0x114ec0._0x1730f9)](_0x25046f,OPENAI_RESPONSES_STREAM_SURFACE,_0x4ef67a);}['streamViaResponsesWebSocketSurface'](_0x36a59a,_0x247233){const _0x5933f6={_0x1c2c69:0x1aa,_0x3a81c0:0x4a},_0x486163={_0x18e270:0xeb};function _0x3b7cf2(_0x54d3f0,_0x1a76b2,_0x187a76,_0x596156){return _0x22e674(_0x54d3f0-_0x486163._0x18e270,_0x1a76b2-0x183,_0x187a76,_0x596156- -0x489);}return this[_0x3b7cf2(-_0x5933f6._0x1c2c69,-0x14f,-_0x5933f6._0x3a81c0,-0xca)](_0x36a59a,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x247233);}async[_0x22e674(0x32f,0x362,0x386,0x338)](_0x1023c5,_0x494a5b){const _0x2228f1={_0x4e0528:0x1e,_0x11e1d2:0x44},_0x596dbe={_0x1d6687:0xcc};function _0x116772(_0x5bb55e,_0x54a4f2,_0x4f4e80,_0x1ca9e7){return _0x532739(_0x1ca9e7,_0x4f4e80-0x54,_0x4f4e80-_0x596dbe._0x1d6687,_0x1ca9e7-0x1b8);}try{return await this[_0x116772(0x5b,-_0x2228f1._0x4e0528,-_0x2228f1._0x11e1d2,-0xba)](_0x1023c5,_0x494a5b);}catch(_0x53f54c){if(_0x53f54c instanceof OpenAiApiError)throw this['mapApiError'](_0x53f54c);throw _0x53f54c;}}async['response'](_0x3320aa,_0x2d193c){const _0x1a084c={_0x1b4496:0x383,_0x2338b0:0x315,_0x12c754:0x3f7,_0x16bf3b:0x3bd,_0x3b6939:0x42d},_0x477284={_0x10b5d9:0x112};function _0x5317fd(_0x5b2c5c,_0x3447bd,_0x44eda,_0x372322){return _0x22e674(_0x5b2c5c-0xcc,_0x3447bd-0x142,_0x3447bd,_0x44eda- -0x38);}function _0x5ccc77(_0x393941,_0x254737,_0x3df1c1,_0x3848c9){return _0x22e674(_0x393941-_0x477284._0x10b5d9,_0x254737-0x157,_0x254737,_0x3848c9- -0x218);}try{return await this[_0x5317fd(_0x1a084c._0x1b4496,_0x1a084c._0x2338b0,0x352,0x41c)](_0x3320aa,_0x2d193c);}catch(_0x150096){if(_0x150096 instanceof OpenAiApiError)throw this[_0x5317fd(_0x1a084c._0x12c754,_0x1a084c._0x16bf3b,_0x1a084c._0x3b6939,0x4e4)](_0x150096);throw _0x150096;}}async[_0x22e674(0x358,0x432,0x3e8,0x40d)](_0x1a1458,_0x1a93f2){const _0x31d429={_0x4d4681:0x11c,_0x1bd6ee:0xe4,_0x36fd8a:0x16,_0x53b070:0x62,_0x5c79b6:0x22,_0x2e026e:0x109,_0x2e134b:0x142,_0x239f19:0x13,_0x24d805:0x41d,_0x123a98:0x422,_0x5c76a2:0x487},_0x4276ce={_0x2e0f4c:0x3c4},_0x13b7d0={_0x5bcde4:0x70,_0x4b1cfc:0xb6};function _0xf8620e(_0x23ad17,_0x5440a3,_0x394c62,_0xe01d4){return _0x22e674(_0x23ad17-_0x13b7d0._0x5bcde4,_0x5440a3-_0x13b7d0._0x4b1cfc,_0x23ad17,_0xe01d4-0x22);}function _0x16c083(_0x10e0f4,_0x476f47,_0x36e897,_0x4d9e18){return _0x22e674(_0x10e0f4-0x17b,_0x476f47-0x1e5,_0x4d9e18,_0x36e897- -_0x4276ce._0x2e0f4c);}try{let _0x48b057;for await(const _0xa056cc of this[_0x16c083(-0x10,-0x11e,-0xd4,-_0x31d429._0x4d4681)](_0x1a1458,_0x1a93f2)){_0xa056cc[_0xf8620e(0x3c7,0x30f,0x3b6,0x3e2)]===_0x16c083(0xa6,_0x31d429._0x1bd6ee,_0x31d429._0x36fd8a,-_0x31d429._0x53b070)&&(_0x48b057=_0xa056cc[_0x16c083(-0x31,_0x31d429._0x5c79b6,-0x5e,-_0x31d429._0x2e026e)]);}if(!_0x48b057)throw new Error(_0x16c083(-0x1,_0x31d429._0x2e134b,0x7c,-_0x31d429._0x239f19));return _0x48b057;}catch(_0x2fb25b){if(_0x2fb25b instanceof OpenAiApiError)throw this[_0xf8620e(_0x31d429._0x24d805,_0x31d429._0x123a98,0x4fb,_0x31d429._0x5c76a2)](_0x2fb25b);throw _0x2fb25b;}}async*['chatStream'](_0x1eac07,_0x56319f){const _0x42c800={_0x3ca1e5:0x4a4,_0x178c9a:0x3ff,_0x6dc481:0x34,_0x156e02:0xd},_0x436961={_0x12b965:0x6ba,_0x24b614:0x125};function _0x10bd97(_0x2ac002,_0x3966e3,_0x446bcd,_0x5a1f2b){return _0x532739(_0x3966e3,_0x2ac002-_0x436961._0x12b965,_0x446bcd-_0x436961._0x24b614,_0x5a1f2b-0x1d0);}function _0x546d48(_0x48fcb3,_0x420b2b,_0x5059fd,_0x43e966){return _0x532739(_0x43e966,_0x420b2b-0x11,_0x5059fd-0xc9,_0x43e966-0x114);}try{yield*this[_0x10bd97(_0x42c800._0x3ca1e5,0x3da,_0x42c800._0x178c9a,0x567)](_0x1eac07,_0x56319f);}catch(_0x381f52){if(_0x381f52 instanceof OpenAiApiError)throw this[_0x546d48(_0x42c800._0x6dc481,-0x8c,-0x11d,_0x42c800._0x156e02)](_0x381f52);throw _0x381f52;}}async*['responseStream'](_0x4538f6,_0x5529af){const _0x154a0f={_0x576d41:0x287,_0x14f52e:0x226,_0x532734:0x640,_0xb24c0e:0x631},_0x50f26f={_0x340cbb:0x71};function _0x153f3c(_0x2405b4,_0x2cbc56,_0x2d16e5,_0x6399fc){return _0x22e674(_0x2405b4-0x140,_0x2cbc56-0x143,_0x6399fc,_0x2cbc56-0x175);}function _0x3b5519(_0x13a067,_0x19fe46,_0x4ae937,_0xfee8b9){return _0x22e674(_0x13a067-_0x50f26f._0x340cbb,_0x19fe46-0xf3,_0x4ae937,_0x19fe46- -0xb2);}try{yield*this[_0x3b5519(_0x154a0f._0x576d41,0x2f1,0x37e,_0x154a0f._0x14f52e)](_0x4538f6,_0x5529af);}catch(_0x26bceb){if(_0x26bceb instanceof OpenAiApiError)throw this[_0x153f3c(0x5a9,0x5da,_0x154a0f._0x532734,_0x154a0f._0xb24c0e)](_0x26bceb);throw _0x26bceb;}}async*[_0x22e674(0x22f,0x35f,0x29c,0x2f0)](_0x3b6b3e,_0x5b3aa0){const _0x10c9c5={_0x365c6a:0x500,_0x46ec3c:0x543,_0x24a7b1:0x6e9,_0x438676:0x714},_0x2d47ae={_0x2d9c02:0x74,_0x3510e3:0x13f},_0xb0811d={_0x3e3325:0x786,_0x243c4c:0x1f1};function _0x5d0e70(_0x16174d,_0x3d7e58,_0x3fa5d9,_0x251726){return _0x532739(_0x251726,_0x3d7e58-_0xb0811d._0x3e3325,_0x3fa5d9-0x181,_0x251726-_0xb0811d._0x243c4c);}function _0x2f2787(_0x4e0b8b,_0x3978ce,_0x4c21e2,_0x27fe4b){return _0x532739(_0x4c21e2,_0x3978ce-0x6bc,_0x4c21e2-_0x2d47ae._0x2d9c02,_0x27fe4b-_0x2d47ae._0x3510e3);}try{yield*this[_0x5d0e70(_0x10c9c5._0x365c6a,0x598,_0x10c9c5._0x46ec3c,0x5cf)](_0x3b6b3e,_0x5b3aa0);}catch(_0x3c6a7f){if(_0x3c6a7f instanceof OpenAiApiError)throw this[_0x5d0e70(0x609,_0x10c9c5._0x24a7b1,0x6a2,_0x10c9c5._0x438676)](_0x3c6a7f);throw _0x3c6a7f;}}['complete'](_0x31b5eb,_0xbca6f2){return this['chatComplete'](_0x31b5eb,_0xbca6f2);}[_0x532739(-0x34,-0xd9,-0x104,-0x17f)](_0x2f443f,_0x36232e){const _0x59ee8d={_0x41e3f0:0x40b};function _0x9807b7(_0x3845b1,_0x40edf8,_0x1017df,_0x389f96){return _0x532739(_0x389f96,_0x3845b1-0x451,_0x1017df-0x91,_0x389f96-0x131);}return this[_0x9807b7(0x340,0x3b3,0x3c9,_0x59ee8d._0x41e3f0)](_0x2f443f,_0x36232e);}[_0x22e674(0x433,0x4fc,0x484,0x431)](_0x59c181){const _0x30458a={_0x301634:0xef,_0x46e085:0x9c,_0x10cddb:0x15d,_0x4e84c6:0xe0,_0xba3534:0xb3,_0x4c2a7d:0x83,_0xdfaeb9:0x8,_0x7edeed:0x15,_0x1e954d:0x2d,_0x41d580:0xf9,_0x3cd971:0x10a},_0x598b08={_0x813c58:0x1ee},_0x26a45a={_0x4c2dce:0x83},_0x4d2f37=this[_0xbde988(-0xf6,-0x1a3,-0x92,-_0x30458a._0x301634)](_0x59c181);function _0x2c3405(_0x56a7d0,_0xa11eda,_0x4eebf5,_0x778d96){return _0x532739(_0x4eebf5,_0x56a7d0-_0x26a45a._0x4c2dce,_0x4eebf5-0x140,_0x778d96-0x104);}let _0x1ef245=_OpenAiModel[_0x2c3405(-0xba,-_0x30458a._0x46e085,-_0x30458a._0x10cddb,0x9)][_0x2c3405(-_0x30458a._0x4e84c6,-_0x30458a._0xba3534,-0x4b,-0x23)](_0x4d2f37);function _0xbde988(_0x47afd0,_0x5b6d2c,_0x3ad788,_0x53578d){return _0x22e674(_0x47afd0-_0x598b08._0x813c58,_0x5b6d2c-0x134,_0x3ad788,_0x47afd0- -0x489);}return!_0x1ef245&&(_0x1ef245={'pending':Promise[_0xbde988(-_0x30458a._0x4c2a7d,_0x30458a._0xdfaeb9,_0x30458a._0x7edeed,_0x30458a._0x1e954d)]()},_OpenAiModel[_0xbde988(-0xc4,-0x5a,-_0x30458a._0x41d580,-0xa0)][_0xbde988(-_0x30458a._0x3cd971,-0x7f,-0x151,-0xfa)](_0x4d2f37,_0x1ef245)),_0x1ef245;}[_0x22e674(0x2c6,0x2fe,0x354,0x393)](_0x4eeac4){const _0x4910b4={_0x5d5e56:0x562,_0x1747f1:0x4d9,_0x15afc3:0x5bf,_0xaf49b9:0x510},_0x426d04={_0x4d871e:0x109};function _0x3659d8(_0x4beee8,_0x16e90b,_0x1aa6a0,_0x279625){return _0x22e674(_0x4beee8-0x184,_0x16e90b-0x1c7,_0x16e90b,_0x4beee8-_0x426d04._0x4d871e);}return''+trimTrailingSlashes(this['baseUrl'])+this[_0x3659d8(_0x4910b4._0x5d5e56,_0x4910b4._0x1747f1,_0x4910b4._0x15afc3,_0x4910b4._0xaf49b9)]+'::'+_0x4eeac4;}async['acquireResponsesSocketLock'](_0x4e45cd){const _0x246f9f={_0x227cc2:0x464,_0x2ea839:0x4bb},_0x352be9={_0x5945bc:0x52},_0x277900={_0x279190:0x5a},_0x6fc5be=_0x4e45cd['pending'][_0x3c0795(0x48b,0x3e1,_0x246f9f._0x227cc2,0x481)](()=>{});function _0x3c0795(_0x1c5f7b,_0x296058,_0x1a4f19,_0x298d1f){return _0x22e674(_0x1c5f7b-_0x277900._0x279190,_0x296058-0x11a,_0x1a4f19,_0x296058-0xd2);}function _0x13451f(_0x8f599d,_0xea184d,_0x555e3a,_0x472604){return _0x22e674(_0x8f599d-0xde,_0xea184d-_0x352be9._0x5945bc,_0x472604,_0x8f599d- -0x4f3);}let _0x55e2b7;const _0x2365ff=new Promise(_0xb438d=>{_0x55e2b7=_0xb438d;});return _0x4e45cd['pending']=_0x6fc5be[_0x3c0795(_0x246f9f._0x2ea839,0x513,0x596,0x5c2)](()=>_0x2365ff),await _0x6fc5be,()=>{_0x55e2b7?.();};}async['prepareResponsesSocketRequest'](_0x1dde19,_0x30801d){const _0x294965={_0x30c910:0x2ab,_0xf0a98b:0x2d3,_0x87b7b9:0x2e5,_0x290b7b:0x1a4,_0x4cd6ec:0x221,_0x50bbdb:0x114,_0x46af3a:0x28b,_0x48b062:0x2bf,_0x495ff4:0x234,_0x160fe4:0x1c2,_0x5f100b:0x293,_0x240791:0xeb,_0x1406fa:0x36a,_0x29e7fc:0x306,_0x4708f8:0x9f,_0x4fcf50:0x275,_0x4ce181:0x220,_0x288a4b:0x32a,_0x6b8e06:0x1f2,_0x55cf3e:0x2c0,_0x54c2b0:0x2a3,_0x4fbf89:0x1d9},_0x3b4bcd={_0x4127fa:0xcd,_0x3f2ba2:0x3b},_0x38c73f={_0x72d366:0x2f5,_0x47b03f:0xf5};function _0x39860c(_0x285d9c,_0x397b52,_0x3592b6,_0x25f7ce){return _0x532739(_0x25f7ce,_0x285d9c-_0x38c73f._0x72d366,_0x3592b6-_0x38c73f._0x47b03f,_0x25f7ce-0xc1);}const _0x359871=this[_0x211a33(_0x294965._0x30c910,0x20d,0x2b8,_0x294965._0xf0a98b)](_0x1dde19),_0x1da721=toModelRequest(_0x359871),_0x22011f=await prepareProviderRequest(_0x1da721,{'sessionManager':this['sessionManager'],'requestMutators':this[_0x211a33(_0x294965._0x87b7b9,_0x294965._0x87b7b9,0x2db,0x216)],'signal':_0x30801d}),_0x4e8d4b=toChatRequest(_0x22011f[_0x39860c(_0x294965._0x290b7b,_0x294965._0x4cd6ec,0x18f,_0x294965._0x50bbdb)]),_0x5ec205=this[_0x39860c(0x237,_0x294965._0x46af3a,_0x294965._0x48b062,_0x294965._0x495ff4)][_0x39860c(_0x294965._0x160fe4,_0x294965._0x5f100b,0x26e,_0x294965._0x240791)](this['apiKey'],_0x22011f[_0x211a33(0x3c0,_0x294965._0x1406fa,_0x294965._0x29e7fc,0x340)]);if(!_0x5ec205)throw this[_0x39860c(0xfa,0xb7,0x164,_0x294965._0x4708f8)]();function _0x211a33(_0x59129b,_0x200f1c,_0x5644b1,_0x47a8b0){return _0x22e674(_0x59129b-_0x3b4bcd._0x4127fa,_0x200f1c-_0x3b4bcd._0x3f2ba2,_0x5644b1,_0x59129b- -0x3f);}return{'baseUrl':this['providerAdapter'][_0x39860c(0x245,_0x294965._0x4fcf50,_0x294965._0x4ce181,_0x294965._0x288a4b)](this['baseUrl'],_0x22011f[_0x39860c(_0x294965._0x6b8e06,0x2ba,_0x294965._0x55cf3e,0x2a6)]),'credential':_0x5ec205,'request':_0x4e8d4b,'session':_0x22011f[_0x39860c(0x1f2,_0x294965._0x54c2b0,0x1c9,_0x294965._0x4fbf89)]};}[_0x22e674(0x324,0x31e,0x3d5,0x32a)](_0x231067,_0x2b2c7c,_0x58d5de={}){const _0x29392f={_0x50af4b:0xc1,_0x56b219:0x99,_0x47585a:0x7,_0x10dccf:0x83,_0x2c8377:0x346,_0x458dc2:0x358,_0x3c2d7b:0x310,_0x370ba0:0x3c4,_0x3d16ca:0x13,_0xe5eb27:0x173,_0x53f544:0x10f,_0x1e8812:0x123,_0x8734cf:0x2fa,_0x752d71:0x2f2,_0x3635d8:0x371,_0x4f9106:0x28c,_0xf62c01:0x287,_0x22993b:0xa2,_0x48492c:0x7c,_0x4749cc:0x167,_0x12e80e:0x151,_0x402c89:0x15e},_0x554f64={_0x2e78be:0x4f2,_0x1ef8d2:0x13d};function _0x224ad2(_0x3bacd7,_0x1fdd24,_0x40172c,_0x1c6e9b){return _0x532739(_0x1c6e9b,_0x40172c-0x17f,_0x40172c-0xe8,_0x1c6e9b-0x0);}if(!_0x58d5de[_0x224ad2(_0x29392f._0x50af4b,_0x29392f._0x56b219,-_0x29392f._0x47585a,-0xa0)]){const _0x109ec9=this['findResponsesSocketCheckpoint'](_0x231067);if(_0x109ec9&&_0x2b2c7c[_0x224ad2(_0x29392f._0x10dccf,0x6d,-0x2d,-0x113)]&&_0x109ec9[_0x59d296(0x415,0x387,0x3d4,0x3fc)]===_0x2b2c7c[_0x59d296(_0x29392f._0x2c8377,_0x29392f._0x458dc2,_0x29392f._0x3c2d7b,_0x29392f._0x370ba0)]){const _0x177bd7=toOpenAiResponsesRequest({..._0x231067,'messages':_0x231067[_0x224ad2(0x63,0xbc,-_0x29392f._0x3d16ca,0x4d)][_0x224ad2(_0x29392f._0xe5eb27,0x89,_0x29392f._0x53f544,_0x29392f._0x1e8812)](_0x109ec9[_0x59d296(_0x29392f._0x8734cf,_0x29392f._0x752d71,_0x29392f._0x3635d8,_0x29392f._0x4f9106)]+0x1)})[_0x59d296(0x2e1,0x38d,_0x29392f._0xf62c01,0x2db)];return{'event':createOpenAiResponsesWebSocketEvent(_0x231067,{'input':_0x177bd7,'previousResponseId':_0x109ec9[_0x224ad2(-0x18,0x24,_0x29392f._0x22993b,_0x29392f._0x48492c)]}),'previousResponseId':_0x109ec9[_0x224ad2(_0x29392f._0x4749cc,_0x29392f._0x12e80e,_0x29392f._0x22993b,_0x29392f._0x402c89)]};}}function _0x59d296(_0x2c908f,_0x443f0e,_0x5192af,_0x4a472f){return _0x532739(_0x443f0e,_0x2c908f-_0x554f64._0x2e78be,_0x5192af-_0x554f64._0x1ef8d2,_0x4a472f-0x1b4);}return{'event':createOpenAiResponsesWebSocketEvent(_0x231067)};}[_0x532739(-0x2b2,-0x1cb,-0x175,-0x21f)](_0x511617){const _0x3a13f1={_0xa8334b:0x5db,_0x3c3837:0x565,_0x52eb3d:0x4e6,_0x39875d:0x5b5,_0xa10842:0x695,_0x412d77:0x6ae,_0x179298:0x631,_0x19c519:0x70d,_0x1a9b0f:0x6b2,_0x27bd3d:0x25f,_0xf72038:0x16d},_0x44e89f={_0x1f3617:0x1ba,_0xf961ff:0x29},_0x38481e={_0x466209:0x1a4,_0x2a5b6f:0x175};function _0x49a3b9(_0x51c4ac,_0x4acc15,_0x62f2be,_0x268c34){return _0x22e674(_0x51c4ac-_0x38481e._0x466209,_0x4acc15-0x172,_0x4acc15,_0x268c34- -_0x38481e._0x2a5b6f);}for(let _0x26ff73=_0x511617[_0x4eaa84(0x5cd,_0x3a13f1._0xa8334b,_0x3a13f1._0x3c3837,0x546)][_0x4eaa84(_0x3a13f1._0x52eb3d,_0x3a13f1._0x39875d,0x558,0x60c)]-0x1;_0x26ff73>=0x0;_0x26ff73-=0x1){const _0x4e913e=_0x511617['messages'][_0x26ff73],_0x5a5255=_0x4e913e[_0x4eaa84(0x6a6,_0x3a13f1._0xa10842,0x6a3,_0x3a13f1._0x412d77)]===_0x4eaa84(0x562,_0x3a13f1._0x179298,_0x3a13f1._0x19c519,_0x3a13f1._0x1a9b0f)?_0x4e913e['providerState']?.[_0x49a3b9(_0x3a13f1._0x27bd3d,0x184,_0x3a13f1._0xf72038,0x23d)]:void 0x0;if(_0x5a5255)return{'messageIndex':_0x26ff73,'responseId':_0x5a5255};}function _0x4eaa84(_0x56df4a,_0x2b131e,_0x5d7837,_0x50a832){return _0x22e674(_0x56df4a-_0x44e89f._0x1f3617,_0x2b131e-_0x44e89f._0xf961ff,_0x5d7837,_0x2b131e-0x26b);}return void 0x0;}[_0x22e674(0x4ad,0x48b,0x3d9,0x4a4)](_0x40888a){const _0x8455a3={_0x1ea3de:0x37f,_0x2d7fcf:0x555,_0x528419:0x4b3,_0x9813d0:0x51b,_0x86e7ef:0x264,_0x5d0715:0x1ed,_0x2af08a:0x2f2,_0x1432f3:0x402},_0xb68b89={_0x679cfa:0x3f,_0x4f096d:0x28},_0x2c506f={_0x469077:0x11d,_0x72c952:0xa7};function _0x4ee0a8(_0x4d2da0,_0x4de2c1,_0x1891c2,_0x3e609c){return _0x22e674(_0x4d2da0-0x80,_0x4de2c1-_0x2c506f._0x469077,_0x4d2da0,_0x3e609c-_0x2c506f._0x72c952);}function _0x5d6d4a(_0x4c0c7b,_0x5c3751,_0x5673c6,_0x4e9266){return _0x22e674(_0x4c0c7b-_0xb68b89._0x679cfa,_0x5c3751-_0xb68b89._0x4f096d,_0x5c3751,_0x5673c6- -0x83);}return _0x40888a instanceof ProviderStreamEventError&&(_0x40888a[_0x5d6d4a(0x1d9,_0x8455a3._0x1ea3de,0x2a3,0x327)]===_0x4ee0a8(0x5f6,_0x8455a3._0x2d7fcf,_0x8455a3._0x528419,_0x8455a3._0x9813d0)||_0x40888a[_0x5d6d4a(_0x8455a3._0x86e7ef,0x384,0x2a3,_0x8455a3._0x5d0715)]===_0x5d6d4a(0x296,_0x8455a3._0x2af08a,0x327,_0x8455a3._0x1432f3));}[_0x532739(-0xb6,-0x195,-0x251,-0x135)](_0x52441b){const _0x2d413b={_0x1a44b4:0x5e8,_0x23127e:0x51e,_0x44418c:0x2c1,_0x365c02:0x305,_0xa1ac88:0x2c3,_0x10b6cc:0x42a,_0x313532:0x4e9,_0x330d3d:0x2e4,_0x5f28b9:0x2fb,_0x5b3a09:0x3b3,_0x2136d6:0x407,_0x415676:0x454},_0x5e3f32={_0x1d4f32:0xd4},_0x17c5b4={_0x82ed68:0x73},_0x2603c0=_0x52441b[_0x107c65(0x358,0x353,0x3dc,0x2a0)];function _0x107c65(_0xa1c523,_0x523a90,_0xe172b2,_0x5580ca){return _0x22e674(_0xa1c523-_0x17c5b4._0x82ed68,_0x523a90-0x32,_0xe172b2,_0xa1c523- -0x95);}function _0x158749(_0x19c5de,_0x402b97,_0x33eeab,_0x5336de){return _0x22e674(_0x19c5de-0x123,_0x402b97-0x60,_0x19c5de,_0x33eeab-_0x5e3f32._0x1d4f32);}_0x52441b['socket']=void 0x0,_0x52441b[_0x158749(0x639,_0x2d413b._0x1a44b4,0x57b,_0x2d413b._0x23127e)]=void 0x0,_0x52441b[_0x107c65(_0x2d413b._0x44418c,_0x2d413b._0x365c02,0x252,_0x2d413b._0xa1ac88)]=void 0x0,_0x2603c0?.[_0x107c65(0x2a0,0x2cb,0x377,0x381)]===WebSocket[_0x107c65(0x408,0x3b6,_0x2d413b._0x10b6cc,_0x2d413b._0x313532)]&&_0x2603c0[_0x107c65(_0x2d413b._0x330d3d,_0x2d413b._0x5f28b9,0x320,0x367)](0x3e8,_0x107c65(_0x2d413b._0x5b3a09,0x323,_0x2d413b._0x2136d6,_0x2d413b._0x415676));}async[_0x22e674(0x42b,0x413,0x527,0x485)](_0x3e976f,_0x35e38a,_0xf5cebc,_0x48cfcf,_0x8870c4){const _0xb40531={_0x266e30:0x317,_0x5d052c:0x24d,_0xae6484:0x3d7,_0x440e31:0x2f8,_0x322864:0x32e,_0x4fb121:0x417,_0x32dc7f:0x337,_0x3c25ec:0x42f,_0x54f147:0x34a,_0x55dc6f:0x42f,_0x196d02:0x373,_0x55dd30:0x3ff,_0x51fed6:0x3bc,_0x1a864f:0x3c1},_0x197708={_0x34f2ef:0x2d8,_0x297c9c:0x341,_0x54d6c4:0x1cb,_0x5b853f:0x236,_0x5ce136:0x267,_0x46ccf7:0x29e,_0x394e27:0x295,_0x423de1:0x4c4,_0x432b7f:0x594,_0x3aa85c:0x524,_0x17c826:0x1c1,_0x1c2f65:0x2ac,_0x65ea52:0x1fb,_0x49a532:0x23e,_0x43df47:0x3b5,_0x6f8cbb:0x279,_0x2bd68d:0x1f3,_0x421f0a:0x283,_0x98b823:0x2cd,_0x52cade:0x2ff,_0x85a71f:0x1f2,_0x1657d0:0x4a2,_0xbc06cb:0x480,_0x4c34c0:0x17a,_0x4e0e1b:0x212,_0x5d421b:0x11c,_0xe21edc:0x5b3,_0x2db41a:0x651,_0x33e4c3:0x2e7,_0x13a349:0x44b,_0x50fee8:0x37c,_0x12fcb1:0x4b1},_0x33651a={_0x34fe25:0xc6},_0x34ff4f={_0x5b1273:0x1b3};if(_0x35e38a[_0x3c05ac(0x3d2,0x375,0x435,0x3f7)]?.[_0x5e4536(0x26f,_0xb40531._0x266e30,_0xb40531._0x5d052c,0x2bc)]===WebSocket[_0x5e4536(_0xb40531._0xae6484,_0xb40531._0x440e31,0x47e,_0xb40531._0x322864)])return _0x35e38a['socket'];if(_0x35e38a[_0x5e4536(0x3e1,_0xb40531._0x4fb121,0x330,_0xb40531._0x32dc7f)])return await _0x35e38a[_0x3c05ac(0x41d,_0xb40531._0x3c25ec,0x489,0x417)];function _0x3c05ac(_0x2b55c3,_0x4bf069,_0x59107b,_0x31777c){return _0x532739(_0x2b55c3,_0x4bf069-0x48a,_0x59107b-_0x34ff4f._0x5b1273,_0x31777c-0x194);}function _0x5e4536(_0x1aa953,_0x21486b,_0x15cdbf,_0x356e5c){return _0x22e674(_0x1aa953-0x2,_0x21486b-0x17b,_0x15cdbf,_0x1aa953- -_0x33651a._0x34fe25);}_0x35e38a[_0x5e4536(0x3e1,_0xb40531._0x54f147,0x449,0x397)]=((async()=>{const _0xfdfed={_0x1863a5:0x2ee,_0x247b79:0x423,_0x1294b7:0x2ae,_0x23fe5d:0x2b5},_0x426677={_0x331e8c:0x54,_0x52563d:0x426},_0x215ce2={_0x2f26d4:0x1d7},_0x13e94a=await this[_0x5f866f(0x2d7,0x426,_0x197708._0x34f2ef,_0x197708._0x297c9c)]({'request':_0xf5cebc[_0x5f866f(_0x197708._0x54d6c4,0x2cc,0x228,0x257)],'body':_0x48cfcf,'credential':_0xf5cebc[_0x5f866f(0x322,_0x197708._0x5b853f,0x206,_0x197708._0x5ce136)],'session':_0xf5cebc[_0x5f866f(_0x197708._0x46ccf7,_0x197708._0x394e27,0x1ca,0x2a5)],'stream':!![]},{'accept':_0xc8c558(_0x197708._0x423de1,_0x197708._0x432b7f,0x534,0x4f6),'includeContentType':![]});function _0x5f866f(_0x4a0b79,_0x5883ad,_0x2b6d21,_0x6b8f4c){return _0x5e4536(_0x6b8f4c- -0x94,_0x5883ad-0x110,_0x5883ad,_0x6b8f4c-0x2a);}function _0xc8c558(_0x3c0325,_0x39f466,_0x53848c,_0x116d7d){return _0x5e4536(_0x39f466-0x1dc,_0x39f466-0xb7,_0x116d7d,_0x116d7d-0x1ca);}_0x13e94a[_0xc8c558(0x545,_0x197708._0x3aa85c,0x600,0x5ea)]('accept');const _0x9a0881=this[_0x5f866f(_0x197708._0x17c826,_0x197708._0x1c2f65,_0x197708._0x65ea52,_0x197708._0x49a532)]({'headers':Object[_0x5f866f(_0x197708._0x43df47,0x2fd,_0x197708._0x6f8cbb,0x318)](_0x13e94a[_0x5f866f(_0x197708._0x2bd68d,0x2a6,_0x197708._0x421f0a,0x1cd)]()),'url':(''+_0xf5cebc['baseUrl']+this[_0x5f866f(0x363,0x39f,_0x197708._0x98b823,_0x197708._0x52cade)])[_0x5f866f(0x2e3,0x293,0x2d5,0x2af)](/^http:/,_0x5f866f(_0x197708._0x85a71f,0x15d,0x2bc,0x227))['replace'](/^https:/,'wss:')}),_0x338ac8=()=>{function _0xa157c1(_0x57f9e9,_0x4d645f,_0x1b8e0c,_0x43f8bc){return _0xc8c558(_0x57f9e9-0x44,_0x4d645f- -0x1b7,_0x1b8e0c-_0x215ce2._0x2f26d4,_0x57f9e9);}function _0x35dae1(_0x301c2d,_0x35ca6b,_0x1a8875,_0x1fed6){return _0xc8c558(_0x301c2d-_0x426677._0x331e8c,_0x1a8875- -_0x426677._0x52563d,_0x1a8875-0x102,_0x301c2d);}_0x35e38a[_0xa157c1(0x40d,0x34c,_0xfdfed._0x1863a5,_0xfdfed._0x247b79)]===_0x9a0881&&(_0x35e38a['socket']=void 0x0,_0x35e38a[_0xa157c1(_0xfdfed._0x1294b7,_0xfdfed._0x23fe5d,0x1ce,0x360)]=void 0x0);};_0x9a0881[_0xc8c558(0x417,_0x197708._0x1657d0,_0x197708._0xbc06cb,0x3fb)](_0x5f866f(_0x197708._0x4c34c0,_0x197708._0x4e0e1b,0x171,0x21f),_0x338ac8);try{return throwIfAborted(_0x8870c4),_0x9a0881[_0x5f866f(_0x197708._0x5d421b,0x113,0x123,0x1db)]!==WebSocket[_0xc8c558(0x507,_0x197708._0xe21edc,_0x197708._0x2db41a,0x53a)]&&await waitForWebSocketOpen(_0x9a0881,_0x8870c4),throwIfAborted(_0x8870c4),_0x35e38a[_0x5f866f(_0x197708._0x33e4c3,0x1c3,0x2c3,0x293)]=_0x9a0881,_0x9a0881;}catch(_0x5d752c){_0x338ac8();_0x9a0881[_0xc8c558(0x3a4,_0x197708._0x13a349,_0x197708._0x50fee8,_0x197708._0x12fcb1)]===WebSocket['OPEN']&&_0x9a0881['close'](0x3e8,'connect_failed');throw _0x5d752c;}})());try{return await _0x35e38a[_0x3c05ac(0x4bf,_0xb40531._0x55dc6f,_0xb40531._0x196d02,0x36a)];}finally{_0x35e38a[_0x3c05ac(_0xb40531._0x55dd30,0x42f,_0xb40531._0x51fed6,_0xb40531._0x1a864f)]=void 0x0;}}async*[_0x532739(-0x10e,-0x1ee,-0x2ae,-0x17f)](_0x356898,_0x56f76d){const _0x4072e3={_0x57a879:0x275,_0x43d42d:0x3d9,_0x5623c7:0x44a,_0x38a252:0x433,_0x5c4587:0x450,_0x125bf4:0x4a7,_0x22aab8:0x31d,_0x15b91e:0x25a,_0xc707f8:0x3d9,_0x1994eb:0x3ef,_0x413770:0x453,_0x1c6f5b:0x443,_0x267063:0x518,_0x34d610:0x473,_0x492abe:0x3b9,_0x8b43c1:0x45c,_0x635e94:0x3a6,_0x7de68d:0x445,_0x34c00e:0x4ec,_0xc597a:0x59d,_0x3e5a22:0x5b5,_0x52304b:0x1e4,_0x13401b:0x1df,_0x278fc0:0x115,_0x1619ac:0x3c2,_0x2ab929:0x45d,_0x46a59c:0x3ad,_0x13dded:0x1b5,_0x5396e7:0x1ae,_0x535f86:0x16f,_0x26fa96:0x20c,_0xa5a001:0x263,_0x334964:0x2a9,_0xfd1022:0x26b,_0x561f92:0x237,_0x52957b:0x1c0,_0x23fa40:0x1e3,_0x2349a0:0x220},_0x278b51={_0x473266:0x71,_0x7bf5df:0x7c},_0x302e26={_0x214b71:0x64,_0x3170fe:0x125,_0xd725d4:0x17c},_0x5029f6=this['applyModelDefaults'](_0x356898),_0x1c3086=this[_0x9bec64(_0x4072e3._0x57a879,0x268,0x2b5,0x34c)](_0x5029f6[_0x244382(_0x4072e3._0x43d42d,_0x4072e3._0x5623c7,0x374,_0x4072e3._0x38a252)]['sessionId']);function _0x9bec64(_0xf67feb,_0x2d0139,_0x3070c0,_0x4e5dc6){return _0x22e674(_0xf67feb-_0x302e26._0x214b71,_0x2d0139-_0x302e26._0x3170fe,_0xf67feb,_0x3070c0- -_0x302e26._0xd725d4);}function _0x244382(_0xe9d82f,_0x323079,_0x27140d,_0x583576){return _0x22e674(_0xe9d82f-_0x278b51._0x473266,_0x323079-_0x278b51._0x7bf5df,_0x323079,_0xe9d82f-0x55);}const _0x183ff5=await this[_0x244382(_0x4072e3._0x5c4587,0x4e4,0x50a,_0x4072e3._0x125bf4)](_0x1c3086);try{const _0x1ef9fc=this['buildResponsesSocketEvent'](_0x5029f6,_0x1c3086);try{yield*this[_0x9bec64(0x1c7,_0x4072e3._0x22aab8,0x263,_0x4072e3._0x15b91e)](_0x5029f6[_0x244382(_0x4072e3._0xc707f8,_0x4072e3._0x1994eb,_0x4072e3._0x413770,_0x4072e3._0x1c6f5b)][_0x244382(0x43c,_0x4072e3._0x267063,_0x4072e3._0x34d610,_0x4072e3._0x492abe)],_0x1c3086,_0x5029f6,_0x1ef9fc['event'],_0x56f76d?.[_0x244382(_0x4072e3._0x8b43c1,_0x4072e3._0x635e94,0x410,0x498)]);return;}catch(_0x3a2591){if(!_0x1ef9fc[_0x244382(_0x4072e3._0x7de68d,0x524,0x426,_0x4072e3._0x34c00e)]||!this[_0x244382(0x4f9,0x5ca,_0x4072e3._0xc597a,_0x4072e3._0x3e5a22)](_0x3a2591)){this[_0x9bec64(_0x4072e3._0x52304b,_0x4072e3._0x13401b,0x1f1,_0x4072e3._0x278fc0)](_0x1c3086);throw _0x3a2591;}}this[_0x244382(_0x4072e3._0x1619ac,_0x4072e3._0x2ab929,_0x4072e3._0x46a59c,0x425)](_0x1c3086);const _0x56e80a=this[_0x9bec64(0x116,_0x4072e3._0x13dded,_0x4072e3._0x5396e7,_0x4072e3._0x535f86)](_0x5029f6,_0x1c3086,{'forceFullReplay':!![]});yield*this[_0x9bec64(0x2d6,_0x4072e3._0x26fa96,_0x4072e3._0xa5a001,_0x4072e3._0x334964)](_0x5029f6['metadata'][_0x9bec64(0x318,0x352,_0x4072e3._0xfd1022,0x1d6)],_0x1c3086,_0x5029f6,_0x56e80a[_0x9bec64(_0x4072e3._0x561f92,_0x4072e3._0x52957b,_0x4072e3._0x23fa40,_0x4072e3._0x2349a0)],_0x56f76d?.['signal']);}finally{_0x183ff5();}}async*[_0x532739(-0x9d,-0x123,-0x1b9,-0xd7)](_0x576c11,_0x3a8819,_0x4dbc6e,_0xe0ee0d,_0x1add9e){const _0x39c2d3={_0x5ee909:0x548,_0x86a0b9:0x46f,_0xafd78c:0x31b,_0x24c20f:0x3aa,_0x51fcad:0x31f,_0x5cfd46:0x2f3,_0x59336a:0x22f,_0x2f84a4:0x210,_0x15c008:0x1ce,_0x52c6f0:0x483,_0x41df45:0x407,_0x537910:0x17b},_0x19161b={_0xc9d0c2:0xf0},_0x1f3acf={_0x5b32d4:0x2c,_0x68f7a7:0x65},_0x1b5b3f=await this['prepareResponsesSocketRequest'](_0x4dbc6e,_0x1add9e),_0xcbb2a4=await this[_0x252086(_0x39c2d3._0x5ee909,0x4a0,0x453,_0x39c2d3._0x86a0b9)](_0x576c11,_0x3a8819,_0x1b5b3f,_0xe0ee0d,_0x1add9e);function _0x556279(_0x35c440,_0x2c8079,_0x1dd1d3,_0x2aa18e){return _0x532739(_0x1dd1d3,_0x2aa18e-_0x1f3acf._0x5b32d4,_0x1dd1d3-_0x1f3acf._0x68f7a7,_0x2aa18e-0x1e8);}const _0x283d0b=createOpenAiResponsesStreamParser(_0x4dbc6e);throwIfAborted(_0x1add9e);function _0x252086(_0x2baf48,_0x2859b2,_0x16c0a1,_0x335ab7){return _0x22e674(_0x2baf48-0x1e3,_0x2859b2-_0x19161b._0xc9d0c2,_0x335ab7,_0x2859b2-0x1b);}_0xcbb2a4['send'](JSON['stringify'](_0xe0ee0d));for await(const _0x3eecfe of iterateWebSocketMessages(_0xcbb2a4,_0x1add9e)){const _0x405d39=_0x283d0b[_0x252086(0x40d,0x376,_0x39c2d3._0xafd78c,_0x39c2d3._0x24c20f)]?.(_0x3eecfe)??[];yield*_0x405d39;if(_0x283d0b[_0x252086(0x391,0x323,_0x39c2d3._0x51fcad,_0x39c2d3._0x5cfd46)]?.())break;}if(!_0x283d0b[_0x556279(-0x1e9,-_0x39c2d3._0x59336a,-_0x39c2d3._0x2f84a4,-_0x39c2d3._0x15c008)]?.())throw new Error(_0x252086(_0x39c2d3._0x52c6f0,0x48b,0x476,0x436));const _0x1430c5=_0x283d0b[_0x252086(0x349,_0x39c2d3._0x41df45,0x386,0x363)](),_0x128de9=_0x1430c5['providerState']?.[_0x556279(-_0x39c2d3._0x537910,-0x1a8,-0x158,-0x124)]??_0x1430c5['id'];_0x128de9&&(_0x3a8819['lastResponseId']=_0x128de9),yield{'type':'done','response':_0x1430c5};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x22e674(0x54f,0x4b8,0x3ca,0x47f),_0x22e674(0x39b,0x3b9,0x2f3,0x351),_0x532739(-0xe,-0x7a,-0x28,0x61),_0x532739(-0x80,-0x11c,-0x11c,-0xbb)];function isAnthropicSurface(_0x1f19e5){const _0x502755={_0x11bc65:0x2a6,_0x6970d:0x1af},_0x780cc1={_0x5792c0:0x2d5,_0x1e1fc2:0xed};function _0x2ce1bc(_0x2f1aab,_0x22e468,_0x4f884d,_0x298a57){return _0x532739(_0x298a57,_0x4f884d-_0x780cc1._0x5792c0,_0x4f884d-0x19a,_0x298a57-_0x780cc1._0x1e1fc2);}return _0x1f19e5===_0x2ce1bc(_0x502755._0x11bc65,0x22e,0x252,_0x502755._0x6970d);}function resolveDefaultBaseUrl(_0x5a6939){const _0x356534={_0x3d2717:0xa3,_0x1c41c1:0x9a,_0x32a7a6:0x26,_0x36408d:0x4fb,_0x2ac6b5:0x3f6,_0x1aca10:0x4ad,_0x4c7d8e:0x465,_0x440a34:0x4dc,_0x3e606f:0x14d,_0x20946a:0x404,_0x4242c0:0x4cc,_0x5d44a2:0x445},_0x55dbb0={_0x7b04d0:0x522};if(_0x5a6939===_0x4f4ad0(_0x356534._0x3d2717,0xae,_0x356534._0x1c41c1,-_0x356534._0x32a7a6))return getProviderProfile('anthropic')?.[_0x1c0f42(_0x356534._0x36408d,_0x356534._0x2ac6b5,_0x356534._0x1aca10,0x53a)]??_0x1c0f42(_0x356534._0x4c7d8e,_0x356534._0x440a34,0x457,0x471);function _0x1c0f42(_0x4e469e,_0x3900a1,_0x26eb28,_0x551b6e){return _0x532739(_0x551b6e,_0x26eb28-_0x55dbb0._0x7b04d0,_0x26eb28-0xa2,_0x551b6e-0x1d9);}function _0x4f4ad0(_0x13b418,_0x1e59c8,_0x34ae03,_0x47161b){return _0x532739(_0x47161b,_0x34ae03-0x11d,_0x34ae03-0xa9,_0x47161b-0x7e);}return getProviderProfile(_0x4f4ad0(-0x10f,-0x72,-0x8b,-_0x356534._0x3e606f))?.['baseUrl']??_0x1c0f42(0x4b0,_0x356534._0x20946a,_0x356534._0x4242c0,_0x356534._0x5d44a2);}var ChatModel=class{[_0x532739(-0x43,-0x66,-0x87,-0x14)];['maxTokens'];[_0x532739(-0x6a,-0x10e,-0x16a,-0x137)];[_0x22e674(0x32d,0x3e6,0x309,0x382)];[_0x22e674(0x520,0x3e0,0x50e,0x471)];constructor(_0x2fb6de={}){const _0x3783cb={_0x42b9c5:0x1ce,_0x11ed2d:0x1bb,_0x279bf6:0x102,_0x489536:0x258,_0x3e6b69:0x141,_0x36579f:0x158,_0x5db671:0x51d,_0xdcefa3:0xe9,_0x539d2b:0x1b1,_0x55780f:0x37c,_0x523a65:0x383,_0xdad296:0x45d,_0x218e7a:0x498,_0x4398fa:0x426,_0xc0020a:0x411,_0xf175fc:0x18b,_0x221d90:0x113,_0x3777b3:0x12c,_0x5597a4:0x12e,_0x574c97:0x388,_0x3e2d0c:0x3b4,_0x4b3b03:0x387,_0x564e6d:0x14,_0x570140:0x123,_0x1b5e48:0x129,_0x4ac5f1:0x331,_0x43325d:0x28f,_0x12e4bd:0x43,_0x9e7514:0x6f,_0x3f393b:0xa0,_0x234b77:0x1f8,_0x1f7e28:0xb6,_0x28b718:0x3dd,_0x3119e6:0x3ec,_0x422028:0x1b,_0x370b9e:0xd1,_0x18435d:0x158,_0x32d01e:0x145,_0x5e4b79:0x50b,_0x5e7d91:0x467,_0x48fd16:0x467,_0x5e6410:0x395,_0x2f64c5:0x29a,_0x47b84d:0x33d,_0x51c5e7:0x3a,_0xaee4b4:0x3ca,_0x4fc315:0x388,_0xc0a1cb:0x489},_0x53fd91={_0x5d3d65:0x221},_0x36e514={_0x47229f:0x53,_0x52ab48:0x32};this[_0x2af7fc(0x223,0x1bb,_0x3783cb._0x42b9c5,0x1b9)]=_0x2fb6de[_0x2af7fc(0x230,_0x3783cb._0x11ed2d,_0x3783cb._0x279bf6,_0x3783cb._0x489536)]??getDefaultModel();function _0x57a83b(_0x1c9440,_0x1845e7,_0x9a79e,_0x1b7580){return _0x22e674(_0x1c9440-_0x36e514._0x47229f,_0x1845e7-0x1ef,_0x9a79e,_0x1845e7-_0x36e514._0x52ab48);}this[_0x2af7fc(_0x3783cb._0x3e6b69,_0x3783cb._0x36579f,0x1d9,0x21b)]=_0x2fb6de[_0x57a83b(0x52d,0x46b,0x50c,_0x3783cb._0x5db671)]??getDefaultMaxTokens();function _0x2af7fc(_0x32d102,_0xc72231,_0x1520ed,_0x79e29a){return _0x532739(_0x79e29a,_0xc72231-_0x53fd91._0x5d3d65,_0x1520ed-0x127,_0x79e29a-0x11b);}this[_0x2af7fc(_0x3783cb._0xdcefa3,0x113,0x1bd,_0x3783cb._0x539d2b)]=_0x2fb6de['surface']??_0x57a83b(_0x3783cb._0x55780f,_0x3783cb._0x523a65,0x2c7,_0x3783cb._0xdad296);const _0x3acb3d=trimTrailingSlashes(_0x2fb6de['baseUrl']??resolveDefaultBaseUrl(this[_0x57a83b(_0x3783cb._0x218e7a,_0x3783cb._0x4398fa,_0x3783cb._0xc0020a,0x3a1)]));if(isAnthropicSurface(this[_0x2af7fc(_0x3783cb._0xf175fc,_0x3783cb._0x221d90,_0x3783cb._0x3777b3,_0x3783cb._0x5597a4)])){this[_0x57a83b(_0x3783cb._0x574c97,_0x3783cb._0x3e2d0c,_0x3783cb._0x4b3b03,0x491)]=new AnthropicModel({'apiKey':_0x2fb6de[_0x2af7fc(_0x3783cb._0x564e6d,0xd9,0x182,0xa2)],'authScheme':_0x2fb6de[_0x2af7fc(_0x3783cb._0x570140,_0x3783cb._0x1b5e48,0x201,0x10c)],'baseUrl':_0x3acb3d,'fetch':_0x2fb6de['fetch'],'maxTokens':this[_0x2af7fc(0x19c,_0x3783cb._0x36579f,0x22c,0xd9)],'model':this['model'],'reasoning':_0x2fb6de['reasoning'],'providerSessionResolver':_0x2fb6de[_0x57a83b(0x374,_0x3783cb._0x4ac5f1,_0x3783cb._0x43325d,0x2e9)],'requestMutators':_0x2fb6de[_0x2af7fc(-0x61,_0x3783cb._0x12e4bd,-_0x3783cb._0x9e7514,_0x3783cb._0x3f393b)]});return;}this[_0x2af7fc(_0x3783cb._0x234b77,0x190,0x1ca,_0x3783cb._0x1f7e28)]=new OpenAiModel({'apiKey':_0x2fb6de[_0x57a83b(_0x3783cb._0x28b718,_0x3783cb._0x3119e6,0x422,0x41c)],'baseUrl':_0x3acb3d,'fetch':_0x2fb6de[_0x2af7fc(_0x3783cb._0x422028,0xcc,0x6,0x2)],'headerResolver':_0x2fb6de['headerResolver'],'maxTokens':this[_0x2af7fc(_0x3783cb._0x370b9e,_0x3783cb._0x18435d,_0x3783cb._0x32d01e,0xfb)],'model':this[_0x57a83b(0x4f3,0x4ce,_0x3783cb._0x5e4b79,_0x3783cb._0x5e7d91)],'reasoning':_0x2fb6de[_0x57a83b(_0x3783cb._0x48fd16,_0x3783cb._0x5e6410,0x46b,0x32f)],'providerSessionResolver':_0x2fb6de[_0x57a83b(_0x3783cb._0x2f64c5,0x331,0x2c0,_0x3783cb._0x47b84d)],'requestMutators':_0x2fb6de[_0x2af7fc(-0x33,_0x3783cb._0x12e4bd,_0x3783cb._0x51c5e7,-0x74)],'webSocketFactory':_0x2fb6de[_0x57a83b(0x32d,_0x3783cb._0xaee4b4,_0x3783cb._0x4fc315,_0x3783cb._0xc0a1cb)]});}['getAnthropicDelegate'](){const _0x1dff39={_0x52324c:0x477,_0x37a515:0x4f9,_0x228cfe:0x3ad,_0x1326d5:0x461,_0x16bdec:0x530,_0x497881:0x3c9,_0x247a18:0x338},_0x4a1993={_0x413b00:0x536},_0x5b3baa={_0x4bcb8a:0x12a,_0x4abe3e:0x83,_0x247d0f:0x6d};function _0x124ee1(_0x10854f,_0x2665e8,_0x14eea3,_0x21306d){return _0x22e674(_0x10854f-_0x5b3baa._0x4bcb8a,_0x2665e8-_0x5b3baa._0x4abe3e,_0x10854f,_0x14eea3-_0x5b3baa._0x247d0f);}function _0x569521(_0x1ce5dc,_0x3bf396,_0xe1c094,_0x36eb3d){return _0x532739(_0x1ce5dc,_0xe1c094-_0x4a1993._0x413b00,_0xe1c094-0x30,_0x36eb3d-0x15d);}if(!this['anthropicDelegate'])throw new Error(_0x124ee1(_0x1dff39._0x52324c,0x41c,_0x1dff39._0x37a515,0x46c)+this[_0x124ee1(0x3a7,_0x1dff39._0x228cfe,_0x1dff39._0x1326d5,_0x1dff39._0x16bdec)]);return this[_0x124ee1(_0x1dff39._0x497881,0x45b,0x3ef,_0x1dff39._0x247a18)];}[_0x532739(-0x112,-0x185,-0xaf,-0xd9)](){const _0x16cd54={_0x2c4813:0x34b,_0x2fe67a:0x2f2,_0xcc3251:0x2b3,_0x10468e:0x206,_0x444844:0xfe,_0x200f0e:0x355,_0x3bdcb9:0x19d,_0x3afae6:0x257},_0x20e4f7={_0x2b5f6d:0x1a1,_0x3f27fa:0x126};function _0x51fff9(_0x36afad,_0x1e1655,_0x80e5d9,_0x1dfed3){return _0x532739(_0x80e5d9,_0x1dfed3-0x221,_0x80e5d9-0x30,_0x1dfed3-0x14);}function _0x281912(_0x45a160,_0xf2c0f4,_0xc72ecd,_0x4d24d9){return _0x22e674(_0x45a160-_0x20e4f7._0x2b5f6d,_0xf2c0f4-0x12d,_0xf2c0f4,_0x45a160- -_0x20e4f7._0x3f27fa);}if(!this[_0x281912(_0x16cd54._0x2c4813,_0x16cd54._0x2fe67a,0x287,_0x16cd54._0xcc3251)])throw new Error(_0x51fff9(_0x16cd54._0x10468e,0x225,_0x16cd54._0x444844,0x16f)+this[_0x281912(0x2ce,0x382,_0x16cd54._0x200f0e,0x1ed)]);return this[_0x51fff9(_0x16cd54._0x3bdcb9,0x198,_0x16cd54._0x3afae6,0x190)];}[_0x22e674(0x404,0x32f,0x404,0x3ca)](_0x4c6f34,_0x590ac9){const _0x475ecf={_0x26c73b:0x35a,_0x14e860:0x3d8,_0x3902fb:0x350,_0x28db14:0x4a2,_0x48f291:0x3a0,_0x594d8a:0x1e4,_0x242b43:0x297,_0x23cd8c:0x10d,_0x45a8e0:0x1a0,_0x45dee2:0x1f2,_0x4c38c9:0x38d,_0xcb2871:0x46c,_0xde8109:0x453,_0x14b5de:0x3c9,_0x5a2117:0x34a,_0x4fb0ce:0x2bd,_0x46c574:0x29a,_0xc5f0a:0x361,_0x535aaf:0x351,_0x5740e4:0x24d,_0x4e9ea3:0xc5},_0x4fe3a0={_0x5637b6:0x55};function _0x5974ea(_0x208871,_0x38f217,_0x441b42,_0x3517c2){return _0x532739(_0x3517c2,_0x208871-0x375,_0x441b42-0x146,_0x3517c2-0x189);}function _0x3a1b4c(_0x3e6ea1,_0x3c2171,_0x116170,_0x55d1d6){return _0x532739(_0x55d1d6,_0x3c2171-0x4e6,_0x116170-0x19d,_0x55d1d6-_0x4fe3a0._0x5637b6);}switch(this[_0x3a1b4c(_0x475ecf._0x26c73b,_0x475ecf._0x14e860,0x472,_0x475ecf._0x3902fb)]){case _0x3a1b4c(0x3d6,0x463,_0x475ecf._0x28db14,_0x475ecf._0x48f291):return this[_0x5974ea(_0x475ecf._0x594d8a,_0x475ecf._0x242b43,0x1cd,_0x475ecf._0x23cd8c)]()[_0x5974ea(0x23d,_0x475ecf._0x45a8e0,0x1c9,_0x475ecf._0x45dee2)](_0x4c6f34,_0x590ac9);case _0x3a1b4c(_0x475ecf._0x4c38c9,_0x475ecf._0xcb2871,_0x475ecf._0xde8109,_0x475ecf._0x14b5de):return this[_0x3a1b4c(0x348,0x361,0x27f,_0x475ecf._0x5a2117)]()[_0x3a1b4c(0x32a,0x34a,0x308,_0x475ecf._0x4fb0ce)](_0x4c6f34,_0x590ac9);case'openai-responses-ws':return this[_0x3a1b4c(_0x475ecf._0x46c574,_0x475ecf._0xc5f0a,_0x475ecf._0x535aaf,0x3d0)]()['responseSocket'](_0x4c6f34,_0x590ac9);default:return this['getOpenAiDelegate']()[_0x5974ea(0x1ab,0x183,_0x475ecf._0x5740e4,_0x475ecf._0x4e9ea3)](_0x4c6f34,_0x590ac9);}}[_0x22e674(0x3f9,0x394,0x411,0x429)](_0x19e242,_0x474f63){const _0x3ecbf4={_0x432d9b:0x1b7,_0x1ff085:0x294,_0x341a54:0x1b7,_0x794194:0x15d,_0x47533b:0x13b,_0x1c6a68:0x84,_0x9a9272:0xae,_0x501fef:0x51,_0x5482a0:0x7c,_0x4ad2f0:0xa9,_0x48d884:0x122,_0x2a229b:0x20c,_0x49b993:0x166,_0x480764:0x96,_0x394cdd:0x99,_0x44e876:0x143,_0x444273:0x70,_0x3b0894:0xe0,_0x1a8eeb:0xa3,_0x632e5a:0x25},_0x22129d={_0x5c0fd3:0xd0,_0x1503a9:0x101,_0x1b20b7:0x2c3},_0x3e638e={_0x3eceea:0xf2,_0x37e46c:0x146,_0x53b030:0x280};function _0x1ff7ba(_0x20f815,_0x14f646,_0x3ccdd3,_0xe93713){return _0x22e674(_0x20f815-_0x3e638e._0x3eceea,_0x14f646-_0x3e638e._0x37e46c,_0x3ccdd3,_0xe93713- -_0x3e638e._0x53b030);}function _0x43c5f5(_0x8af8ab,_0x1ff916,_0x597fe8,_0x4a8ef6){return _0x22e674(_0x8af8ab-_0x22129d._0x5c0fd3,_0x1ff916-_0x22129d._0x1503a9,_0x4a8ef6,_0x597fe8- -_0x22129d._0x1b20b7);}switch(this[_0x43c5f5(0x1eb,0x205,0x131,_0x3ecbf4._0x432d9b)]){case _0x43c5f5(_0x3ecbf4._0x1ff085,0x10e,0x1bc,_0x3ecbf4._0x341a54):return this[_0x1ff7ba(_0x3ecbf4._0x794194,_0x3ecbf4._0x47533b,0x162,0xf1)]()[_0x43c5f5(_0x3ecbf4._0x1c6a68,0x132,0x166,_0x3ecbf4._0x9a9272)](_0x19e242,_0x474f63);case'openai-responses':return this['getOpenAiDelegate']()[_0x43c5f5(_0x3ecbf4._0x501fef,_0x3ecbf4._0x5482a0,0xa8,-0xf)](_0x19e242,_0x474f63);case _0x1ff7ba(_0x3ecbf4._0x4ad2f0,_0x3ecbf4._0x48d884,_0x3ecbf4._0x2a229b,_0x3ecbf4._0x49b993):return this['getOpenAiDelegate']()[_0x1ff7ba(_0x3ecbf4._0x480764,_0x3ecbf4._0x394cdd,_0x3ecbf4._0x44e876,_0x3ecbf4._0x444273)](_0x19e242,_0x474f63);default:return this[_0x43c5f5(_0x3ecbf4._0x3b0894,_0x3ecbf4._0x1a8eeb,0xba,-_0x3ecbf4._0x632e5a)]()[_0x1ff7ba(0x23b,0x204,0x115,0x171)](_0x19e242,_0x474f63);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x22e674(0x496,0x359,0x373,0x3ce)];[_0x22e674(0x4d2,0x47f,0x540,0x48d)];[_0x22e674(0x47d,0x507,0x47b,0x438)];[_0x532739(-0xc,-0x6c,-0xf0,-0x11c)];[_0x22e674(0x3b0,0x365,0x42c,0x3c3)];constructor(_0x476193){const _0x5d1cff={_0x41e8ab:0x35a,_0x795f76:0x32e,_0x9f5480:0x35e,_0x120388:0x301,_0xf4babd:0x373,_0xd40065:0x396,_0x3748b5:0x33b,_0xa916b7:0x359,_0x56ee02:0x3c8,_0x4b602a:0x387,_0x1626fb:0x1e6,_0xfadb7c:0x17a,_0x291d51:0x2b8,_0x2df589:0x3c2,_0x163a32:0x315},_0x197b88={_0x19d46f:0x101,_0x4befca:0x1dc,_0x330667:0x1c7},_0x3aa87c={_0x350880:0x114,_0x54df94:0x14e};this['accessToken']=_0x476193[_0x39b632(_0x5d1cff._0x41e8ab,_0x5d1cff._0x795f76,_0x5d1cff._0x9f5480,_0x5d1cff._0x120388)],this[_0x83896f(0x2c6,_0x5d1cff._0xf4babd,0x247,_0x5d1cff._0xd40065)]=trimTrailingSlashes2(_0x476193[_0x39b632(0x383,0x3ff,0x41d,_0x5d1cff._0x3748b5)]),this[_0x39b632(_0x5d1cff._0xa916b7,0x46f,_0x5d1cff._0x56ee02,_0x5d1cff._0x4b602a)]=_0x476193[_0x83896f(_0x5d1cff._0x1626fb,_0x5d1cff._0xfadb7c,0x251,_0x5d1cff._0x291d51)],this[_0x39b632(0x367,0x42b,0x426,_0x5d1cff._0x2df589)]=trimTrailingSlashes2(_0x476193[_0x83896f(0x2cf,_0x5d1cff._0x163a32,0x2b4,0x3af)]);function _0x39b632(_0x47e774,_0x138bc5,_0x3a5bea,_0x2d5b2d){return _0x22e674(_0x47e774-_0x3aa87c._0x350880,_0x138bc5-_0x3aa87c._0x54df94,_0x47e774,_0x3a5bea- -0x70);}function _0x83896f(_0x43f58b,_0xe3ad24,_0x2c5f0b,_0x4d538c){return _0x22e674(_0x43f58b-_0x197b88._0x19d46f,_0xe3ad24-_0x197b88._0x4befca,_0x2c5f0b,_0x43f58b- -_0x197b88._0x330667);}this['tokenExchangeApiVersion']=_0x476193['tokenExchangeApiVersion'];}async['resolve'](_0x5f0f13){const _0x1861aa={_0x1f9578:0x36,_0x1ba9de:0x20,_0x48c9ef:0xec,_0x4e9728:0x41,_0x1152d2:0x15f,_0xe5fcfc:0x16d,_0x2dd102:0x1b2,_0x1b5509:0xf3,_0x2f5d70:0x65,_0x3ca656:0x26,_0x4f7bd5:0x243,_0x2533ac:0x1ee,_0x4028b2:0x140,_0x1e598f:0x30,_0x43c8f0:0x8a,_0x156528:0xf0,_0x564758:0x35,_0x4a76a4:0x8a,_0x4af89e:0x43,_0x317bf4:0x81,_0x1cf6e1:0x55,_0x4c0712:0x66,_0x161a13:0x10d,_0x2ceac2:0x111,_0x40e664:0x2f,_0x1ab771:0x28,_0x38b7b8:0x9,_0x321863:0x13e,_0x1d91ce:0x9c,_0x1e03cb:0x6b,_0x31af17:0x42,_0x45c983:0x67,_0x16545a:0x20,_0x4b0fe4:0xa8,_0x265ea3:0xc1,_0x37d94f:0x1d,_0x2e0989:0x9,_0x3bfe89:0x87,_0x139c41:0x9a,_0x12e86a:0x1e7,_0x5727bb:0x18b},_0x220a33={_0x571ac9:0xaa},_0x535340={_0xe7866c:0x145,_0x2c51ef:0x312};function _0x58c8a6(_0x206bbd,_0x51ffdf,_0x1d698a,_0x4b4fe0){return _0x22e674(_0x206bbd-0x1b8,_0x51ffdf-_0x535340._0xe7866c,_0x4b4fe0,_0x206bbd- -_0x535340._0x2c51ef);}const _0x3f5542=await this[_0x20f6fa(-0x89,-0x2e,_0x1861aa._0x1f9578,-_0x1861aa._0x1ba9de)](this[_0x20f6fa(_0x1861aa._0x48c9ef,-_0x1861aa._0x4e9728,0x10a,0x3e)]+'/copilot_internal/v2/token',{'method':_0x20f6fa(-_0x1861aa._0x1152d2,-_0x1861aa._0xe5fcfc,-_0x1861aa._0x2dd102,-_0x1861aa._0x1b5509),'headers':new Headers({'accept':_0x20f6fa(-0x38,-_0x1861aa._0x2f5d70,0x4d,_0x1861aa._0x3ca656),'authorization':_0x58c8a6(0x19e,_0x1861aa._0x4f7bd5,0xf5,_0x1861aa._0x2533ac)+this[_0x20f6fa(0x3b,-_0x1861aa._0x4028b2,_0x1861aa._0x1e598f,-_0x1861aa._0x43c8f0)],'editor-version':'vscode/1.106.1','user-agent':_0x20f6fa(-_0x1861aa._0x156528,-_0x1861aa._0x564758,-0x168,-0xe5),'x-github-api-version':this[_0x20f6fa(-0x9f,-_0x1861aa._0x4a76a4,0x7,-0x95)]}),'signal':_0x5f0f13});function _0x20f6fa(_0x2bbb5e,_0x2826ec,_0x441672,_0x3d82f8){return _0x532739(_0x2826ec,_0x3d82f8-_0x220a33._0x571ac9,_0x441672-0x192,_0x3d82f8-0x1c1);}if(!_0x3f5542['ok'])return{'credential':{'kind':_0x58c8a6(0x102,0x1a9,0x14e,0x138),'value':this[_0x20f6fa(-_0x1861aa._0x4af89e,-_0x1861aa._0x317bf4,-_0x1861aa._0x1cf6e1,-0x8a)]},'endpoints':{'api':this[_0x20f6fa(_0x1861aa._0x4c0712,_0x1861aa._0x161a13,_0x1861aa._0x2ceac2,0x35)]}};const _0x878aa=await _0x3f5542[_0x20f6fa(-_0x1861aa._0x40e664,_0x1861aa._0x1ab771,_0x1861aa._0x38b7b8,-0xb8)]();return{'credential':{'kind':_0x20f6fa(-0x4c,-_0x1861aa._0x321863,-0x4d,-0x61),'value':_0x878aa[_0x20f6fa(0xc8,-_0x1861aa._0x1d91ce,-_0x1861aa._0x1e03cb,_0x1861aa._0x31af17)]??this['accessToken']},'endpoints':{'api':_0x878aa[_0x58c8a6(-_0x1861aa._0x38b7b8,0xc3,-_0x1861aa._0x45c983,_0x1861aa._0x40e664)]?.[_0x58c8a6(_0x1861aa._0x16545a,_0x1861aa._0x4b0fe4,0xc6,-0x68)]??this[_0x20f6fa(_0x1861aa._0x265ea3,-0x8a,0x107,0x35)],'originTracker':_0x878aa['endpoints']?.[_0x58c8a6(_0x1861aa._0x37d94f,0xec,-0x45,0x41)],'proxy':_0x878aa['endpoints']?.['proxy'],'telemetry':_0x878aa[_0x58c8a6(-_0x1861aa._0x2e0989,_0x1861aa._0x3bfe89,_0x1861aa._0x139c41,0xc5)]?.[_0x58c8a6(0x15d,_0x1861aa._0x12e86a,_0x1861aa._0x5727bb,0x166)]}};}};function trimTrailingSlashes2(_0x1ce964){const _0x443422={_0x5b8ce4:0x42e},_0x3c37a3={_0x32625f:0x44f,_0x91ffdc:0xd3,_0x10c914:0xc6};function _0x2f2347(_0x5d70b3,_0x3ad880,_0x59db85,_0x1882e0){return _0x532739(_0x5d70b3,_0x3ad880-_0x3c37a3._0x32625f,_0x59db85-_0x3c37a3._0x91ffdc,_0x1882e0-_0x3c37a3._0x10c914);}return _0x1ce964[_0x2f2347(_0x443422._0x5b8ce4,0x356,0x2a3,0x2b5)](/\/+$/,'');}function createModelInfo(_0xa3dddd){const _0xc1d978={_0x3c1e5b:0x175,_0x2a5c8d:0x103,_0x5c402d:0xba,_0x278d35:0x1d0,_0x6a7986:0x1b3,_0x3d4fa9:0x3a7,_0x517386:0x3bd,_0x28b81d:0x128,_0xddfbab:0x4b4,_0xf482a2:0x4fc},_0x5b32ec={_0xef1ca0:0x52f,_0x194c7a:0x175,_0x586026:0x6f},_0x26f7c8={_0x12ac58:0x106,_0x279b71:0x279},_0x318524=_0xa3dddd[_0xf14285(0x343,0x397,0x2e9,0x393)]??_0xa3dddd[_0x2c7984(_0xc1d978._0x3c1e5b,_0xc1d978._0x2a5c8d,0x17d,_0xc1d978._0x5c402d)],_0x4c2430=_0xa3dddd['capabilities']?.[_0x2c7984(0x238,_0xc1d978._0x278d35,0x162,_0xc1d978._0x6a7986)]?.[_0xf14285(_0xc1d978._0x3d4fa9,0x385,0x2e8,_0xc1d978._0x517386)],_0x1598b3=_0xa3dddd[_0x2c7984(0x4f,0x46,_0xc1d978._0x28b81d,0x1eb)]?.['limits']?.[_0xf14285(_0xc1d978._0xddfbab,_0xc1d978._0xf482a2,0x3f0,0x531)];function _0x2c7984(_0x53f5b2,_0x1c3f1b,_0x245221,_0x4d8347){return _0x22e674(_0x53f5b2-_0x26f7c8._0x12ac58,_0x1c3f1b-0xec,_0x1c3f1b,_0x245221- -_0x26f7c8._0x279b71);}function _0xf14285(_0x12777d,_0x25797d,_0x5d4fa6,_0x1ee10e){return _0x532739(_0x1ee10e,_0x12777d-_0x5b32ec._0xef1ca0,_0x5d4fa6-_0x5b32ec._0x194c7a,_0x1ee10e-_0x5b32ec._0x586026);}const _0x5f075a=_0x4c2430!==void 0x0||_0x1598b3!==void 0x0?{..._0x4c2430!==void 0x0?{'contextWindow':_0x4c2430}:{},..._0x1598b3!==void 0x0?{'maxOutput':_0x1598b3}:{}}:void 0x0;return{'id':_0xa3dddd['id'],'name':_0xa3dddd['name']??_0xa3dddd['id'],..._0x5f075a?{'limits':_0x5f075a}:{},..._0x318524?{'supportedEndpoints':_0x318524}:{}};}function deduplicateModels(_0x385ea6){const _0x1b197e={_0xef1ac0:0xbe,_0x253a34:0x514,_0x52f3a5:0x53b,_0x55ed9b:0x5bd,_0x12dae2:0x64b,_0x85e9c:0x5a1},_0x293e96={_0x57560e:0x19},_0x4bebc1={_0x541248:0x3a},_0x542e03=new Map();function _0x490b8e(_0x5d79df,_0x5b67c6,_0x151cab,_0x932976){return _0x22e674(_0x5d79df-_0x4bebc1._0x541248,_0x5b67c6-0x4c,_0x5b67c6,_0x932976- -0x2c1);}for(const _0x11d3f8 of _0x385ea6){!_0x542e03['has'](_0x11d3f8['id'])&&_0x542e03[_0x490b8e(0x33,0xfa,0x113,_0x1b197e._0xef1ac0)](_0x11d3f8['id'],_0x11d3f8);}function _0x3735d0(_0x517013,_0x4df2ce,_0x50ef69,_0x419e1b){return _0x532739(_0x517013,_0x4df2ce-0x712,_0x50ef69-_0x293e96._0x57560e,_0x419e1b-0x10c);}return Array[_0x3735d0(0x5af,_0x1b197e._0x253a34,_0x1b197e._0x52f3a5,_0x1b197e._0x55ed9b)](_0x542e03[_0x3735d0(_0x1b197e._0x12dae2,_0x1b197e._0x85e9c,_0x1b197e._0x253a34,0x56c)]());}function hasUserPromptContent(_0x7dd77f){const _0x3b5937={_0xdce5ce:0x130,_0x591871:0x35,_0x3b00b5:0x140,_0x49af0f:0x58,_0x4ce248:0x12d},_0x3321a9={_0x3f0f67:0x208,_0x4bea79:0x179,_0x3cfc2b:0x196,_0x24d969:0xfd,_0x34c605:0x191,_0xfb9243:0xa5,_0x2789e9:0x35,_0x2a5273:0x106,_0x9bae5:0x1a1,_0x32637a:0x1d7,_0x51855c:0x14f,_0x39ea1b:0x19,_0x2ce84a:0x70,_0xae1813:0x77,_0x5a7b38:0x37,_0x1a64af:0x2b,_0x31855e:0xb6},_0x555976={_0x106cb7:0x1d},_0x5e83ad={_0x17c2af:0x1b7,_0x64e86f:0x3e0};function _0x5e2ab0(_0x1b0a04,_0xec506c,_0x577124,_0x5f0e04){return _0x22e674(_0x1b0a04-0xf5,_0xec506c-_0x5e83ad._0x17c2af,_0x1b0a04,_0xec506c- -_0x5e83ad._0x64e86f);}function _0x571779(_0x3c84ca,_0x3b4103,_0x12ae2e,_0x51a618){return _0x532739(_0x51a618,_0x3c84ca-0x25c,_0x12ae2e-0x123,_0x51a618-0x104);}if(typeof _0x7dd77f===_0x571779(_0x3b5937._0xdce5ce,0xbd,0x155,0x1c5))return _0x7dd77f[_0x5e2ab0(-_0x3b5937._0x591871,-0xe6,-0x20,-0x129)]()['length']>0x0;if(!Array[_0x5e2ab0(_0x3b5937._0x3b00b5,0x97,-0x2c,_0x3b5937._0x49af0f)](_0x7dd77f))return![];return _0x7dd77f[_0x571779(_0x3b5937._0x4ce248,0x180,0xec,0x174)](_0x17ec7a=>{const _0x2aed0a={_0x40b8ac:0x1b4};if(!_0x17ec7a||typeof _0x17ec7a!==_0x3c2bde(_0x3321a9._0x3f0f67,0x1de,0x223,_0x3321a9._0x4bea79))return![];function _0x3c2bde(_0x582d44,_0x29e392,_0xca7cc0,_0x2789e2){return _0x571779(_0x29e392- -_0x555976._0x106cb7,_0x29e392-0x135,_0xca7cc0-0x9d,_0xca7cc0);}function _0x5d5679(_0x2432bf,_0x43ff58,_0x1d8641,_0x154567){return _0x5e2ab0(_0x1d8641,_0x154567-0x81,_0x1d8641-_0x2aed0a._0x40b8ac,_0x154567-0xb1);}const _0x211001=_0x17ec7a;return(_0x211001[_0x3c2bde(_0x3321a9._0x3cfc2b,_0x3321a9._0x24d969,_0x3321a9._0x34c605,0x91)]===_0x5d5679(-_0x3321a9._0xfb9243,-0x38,_0x3321a9._0x2789e9,0x3a)||_0x211001[_0x3c2bde(_0x3321a9._0x2a5273,0xfd,0xc6,_0x3321a9._0x9bae5)]===_0x3c2bde(0x187,0x1a6,0x1a9,_0x3321a9._0x32637a))&&typeof _0x211001['text']===_0x5d5679(_0x3321a9._0x51855c,-_0x3321a9._0x39ea1b,_0x3321a9._0x2ce84a,_0x3321a9._0xae1813)&&_0x211001[_0x5d5679(0x35,0x1c1,0x14a,0x10a)][_0x3c2bde(0xc5,_0x3321a9._0x5a7b38,-_0x3321a9._0x1a64af,_0x3321a9._0x31855e)]()['length']>0x0;});}function _isUserPromptEntry(_0x129280){const _0x3ae59c={_0x3c128c:0x84,_0x2ed096:0x8,_0x2ab52b:0x3a,_0x5c04fa:0x2a,_0x51723d:0x15},_0x337a97={_0x1de147:0x474,_0x53f558:0x40,_0x36b7b6:0x155},_0x5ec7b5={_0x27bdc4:0x41d};if(!_0x129280||typeof _0x129280!==_0x3c9d9c(0x7a,_0x3ae59c._0x3c128c,0xf4,0x97))return![];function _0x3c9d9c(_0x4c7b7c,_0x2884d9,_0x46e97a,_0x41b843){return _0x22e674(_0x4c7b7c-0x17a,_0x2884d9-0x1a1,_0x41b843,_0x2884d9- -_0x5ec7b5._0x27bdc4);}const _0x5f673b=_0x129280;if(_0x5f673b[_0x35881c(0x414,0x2ba,0x3b2,0x39c)]!=='user')return![];function _0x35881c(_0x39346e,_0x321650,_0x4276b5,_0x4be49d){return _0x532739(_0x39346e,_0x4be49d-_0x337a97._0x1de147,_0x4276b5-_0x337a97._0x53f558,_0x4be49d-_0x337a97._0x36b7b6);}if(_0x5f673b[_0x3c9d9c(-_0x3ae59c._0x2ed096,-0x5d,-0xc5,-0x32)]!==void 0x0&&_0x5f673b[_0x3c9d9c(-0x11d,-0x5d,_0x3ae59c._0x2ab52b,-_0x3ae59c._0x5c04fa)]!=='message')return![];return hasUserPromptContent(_0x5f673b[_0x3c9d9c(_0x3ae59c._0x51723d,0x2d,-0x38,0xab)]);}function determineInitiator(_0x5c5059){const _0x430e80={_0x21c9fa:0x25a,_0x3bd1c3:0x125,_0x5790b4:0x8d,_0x46f36a:0x49c,_0x196305:0x3f6,_0x479e77:0x4d4,_0xdedaf6:0x45f,_0x6a2fc1:0x3fc,_0x44879e:0x455,_0xe302bc:0xcc,_0x2d5a8e:0xda,_0x32c5c5:0x439,_0x2049c8:0x48c,_0x465bed:0x482,_0x651736:0x13a,_0x55096f:0x13b},_0x2b8c76={_0x12ae34:0x18c},_0x355d2e={_0x4e022c:0x86,_0x257a18:0x164};if(!_0x5c5059||typeof _0x5c5059!==_0x358929(0x1f1,_0x430e80._0x21c9fa,0x1fd,_0x430e80._0x3bd1c3))return _0x358929(_0x430e80._0x5790b4,0x6a,-0x57,0x67);function _0x47d518(_0x2a713b,_0x3e3bff,_0x225632,_0xf13798){return _0x22e674(_0x2a713b-0x13b,_0x3e3bff-_0x355d2e._0x4e022c,_0x3e3bff,_0xf13798-_0x355d2e._0x257a18);}const _0x7d7025=_0x47d518(0x4ef,_0x430e80._0x46f36a,_0x430e80._0x196305,_0x430e80._0x479e77)in _0x5c5059?_0x5c5059[_0x47d518(_0x430e80._0xdedaf6,0x45f,0x410,0x4d4)]:_0x47d518(0x52a,_0x430e80._0x6a2fc1,0x3cd,_0x430e80._0x44879e)in _0x5c5059?_0x5c5059[_0x358929(0x41,0xd0,-0x21,-0x14)]:void 0x0;function _0x358929(_0x14e90a,_0x5f633c,_0x180bee,_0x4971ac){return _0x22e674(_0x14e90a-_0x2b8c76._0x12ae34,_0x5f633c-0xca,_0x180bee,_0x14e90a- -0x2b0);}if(!Array[_0x358929(0x1c7,0xf8,0x10f,0x105)](_0x7d7025)||_0x7d7025[_0x47d518(0x489,0x487,0x4a0,0x4ae)]===0x0)return _0x358929(0x8d,_0x430e80._0xe302bc,_0x430e80._0x2d5a8e,0x142);return _isUserPromptEntry(_0x7d7025[_0x7d7025[_0x47d518(_0x430e80._0x32c5c5,_0x430e80._0x2049c8,_0x430e80._0x465bed,0x4ae)]-0x1])?_0x358929(_0x430e80._0x651736,0x107,0xe3,_0x430e80._0x55096f):'agent';}function isUnsupportedApiForModel(_0x5692c6){const _0x417ecc={_0x20464e:0x71,_0x2b2fc3:0x1f,_0x1f8391:0x225},_0x4f40da={_0x1bdf3e:0x6e,_0x3da5c2:0x4e8},_0x2451f0={_0x9794d4:0x417};function _0x5dbf7e(_0x3f3b36,_0x4bd9c9,_0x3d2aff,_0x391071){return _0x22e674(_0x3f3b36-0x86,_0x4bd9c9-0x9c,_0x4bd9c9,_0x391071- -_0x2451f0._0x9794d4);}function _0x3c35ee(_0x16bf7b,_0x378090,_0x465d4b,_0x53b14c){return _0x22e674(_0x16bf7b-0x12b,_0x378090-_0x4f40da._0x1bdf3e,_0x378090,_0x16bf7b- -_0x4f40da._0x3da5c2);}return _0x5692c6[_0x5dbf7e(_0x417ecc._0x20464e,-0x39,-0xf5,-_0x417ecc._0x2b2fc3)](_0x3c35ee(-0x195,-0x11b,-_0x417ecc._0x1f8391,-0x202));}function createResponseError(_0x1ec60c,_0x25df6c){const _0x4d5446={_0x56c86c:0x4,_0xbe51e1:0xde,_0x162163:0xda,_0x3168ba:0xb1,_0x4f3a7b:0x22},_0x1f2456={_0x43ec97:0x1a6,_0x1c2803:0x102,_0x2ba656:0x350},_0xd46870={_0x16d472:0x60d,_0x525b58:0x67};if(_0x1ec60c===0x191||_0x1ec60c===0x193)return new Error('Authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.');function _0x2bf713(_0x27d692,_0xd042e9,_0x1030a3,_0x461828){return _0x532739(_0xd042e9,_0x1030a3-_0xd46870._0x16d472,_0x1030a3-_0xd46870._0x525b58,_0x461828-0x10c);}if(_0x1ec60c===0x198||_0x1ec60c===0x1ad)return new Error(_0x454c36(-_0x4d5446._0x56c86c,_0x4d5446._0xbe51e1,_0x4d5446._0x162163,0x0));function _0x454c36(_0x1e3872,_0x44bb4c,_0x5a2f71,_0x49d1d3){return _0x22e674(_0x1e3872-_0x1f2456._0x43ec97,_0x44bb4c-_0x1f2456._0x1c2803,_0x5a2f71,_0x44bb4c- -_0x1f2456._0x2ba656);}if(_0x1ec60c===0x190)return new Error(_0x454c36(-_0x4d5446._0x3168ba,-_0x4d5446._0x4f3a7b,-0x5a,-0x92)+_0x25df6c);return new Error(_0x25df6c||'GitHub\x20API\x20error\x20'+_0x1ec60c);}var GitHubModel=class extends OpenAiModel{[_0x22e674(0x43d,0x2cc,0x3ee,0x382)];[_0x22e674(0x341,0x3b2,0x24d,0x329)]=new Map();[_0x532739(-0x153,-0x10e,-0x89,-0x3e)];constructor(_0xd08fba={}){const _0x33154f={_0xe8088a:0x91,_0x713881:0x6f,_0x8c6f57:0x43c,_0x3ff3fe:0x38e,_0x3e2a8a:0x2fa,_0x1b7ed2:0x11,_0x2e0429:0xe1,_0x34b866:0xa6,_0x5b639e:0x2ee,_0x3a5199:0x487,_0x19689b:0x38a,_0x4fcdbb:0x452,_0x37b8df:0x3d8,_0x3bf58e:0x41,_0x2c60be:0x2e7,_0x2c8853:0x3a8,_0x52550a:0x3ad,_0x4fff37:0x532,_0x27cff9:0x4eb,_0x114c80:0x573,_0x5598cc:0x605,_0x31ab58:0x349,_0x556547:0xbb,_0x469b44:0x84,_0xfb2e5:0x483,_0x213f43:0x17b,_0x4fae75:0xf4,_0x20e0e6:0x449,_0x20dfbd:0x471,_0xf0714b:0x4c8,_0x1e18fa:0x50e,_0x5e5136:0x4c7,_0x393b4e:0x517},_0x1bc6cb={_0x22c6e0:0xa1},_0x14b3b1={_0x54e522:0x17e},_0x203613=trimTrailingSlashes2(_0xd08fba['baseUrl']??'https://api.individual.githubcopilot.com');function _0xf0f84a(_0x130728,_0x16cabc,_0x5aa83f,_0x258ad3){return _0x532739(_0x5aa83f,_0x16cabc-0x591,_0x5aa83f-_0x14b3b1._0x54e522,_0x258ad3-0x135);}const _0x21c58b=_0xd08fba[_0x27154b(-_0x33154f._0xe8088a,-0x102,-_0x33154f._0x713881,-0x2f)]??globalThis[_0xf0f84a(0x40d,_0x33154f._0x8c6f57,0x41f,0x3c0)],_0x377427=_0xd08fba[_0xf0f84a(0x36c,_0x33154f._0x3ff3fe,0x2b8,_0x33154f._0x3e2a8a)]??(_0xd08fba[_0x27154b(-_0x33154f._0x1b7ed2,-_0x33154f._0x2e0429,-_0x33154f._0x34b866,-0x1be)]?new GitHubAccessTokenResolver({'accessToken':_0xd08fba['accessToken'],'baseUrl':_0x203613,'fetch':_0x21c58b,'githubApiUrl':_0xd08fba['githubApiUrl']??_0xf0f84a(_0x33154f._0x5b639e,0x3ac,0x3b3,_0x33154f._0x3a5199),'tokenExchangeApiVersion':_0xd08fba[_0xf0f84a(_0x33154f._0x19689b,_0x33154f._0x4fcdbb,_0x33154f._0x37b8df,0x3d5)]??_0x27154b(_0x33154f._0x3bf58e,-0x4d,0x62,-0xd1)}):void 0x0);function _0x27154b(_0x2e5c86,_0x46c592,_0x297e47,_0xf9c8af){return _0x22e674(_0x2e5c86-_0x1bc6cb._0x22c6e0,_0x46c592-0x1c9,_0x2e5c86,_0x46c592- -0x4af);}const _0x2d879b=_0xd08fba[_0xf0f84a(_0x33154f._0x2c60be,_0x33154f._0x2c8853,0x322,0x43e)]??'vscode/1.104.2',_0x291942=_0xd08fba[_0xf0f84a(_0x33154f._0x52550a,0x387,0x2bc,0x335)]??_0xf0f84a(0x5a2,_0x33154f._0x4fff37,0x51d,0x5b3),_0x154bec=({body:_0xfd095b})=>{return{'editor-plugin-version':_0x291942,'editor-version':_0x2d879b,'x-initiator':determineInitiator(_0xfd095b),'x-request-id':randomUUID()};},_0x12ebbe={'apiKey':_0xd08fba['apiKey'],'baseUrl':_0x203613,'fetch':_0x21c58b,'maxTokens':_0xd08fba[_0xf0f84a(0x405,0x4c8,_0x33154f._0x27cff9,0x52a)],'model':_0xd08fba[_0xf0f84a(_0x33154f._0x114c80,0x52b,0x5fa,_0x33154f._0x5598cc)],'reasoning':_0xd08fba['reasoning'],'providerSessionResolver':_0x377427,'requestMutators':_0xd08fba[_0xf0f84a(0x31b,0x3b3,_0x33154f._0x31ab58,0x38e)],'headerResolver':_0x154bec};super(_0x12ebbe),this[_0x27154b(-0x5a,-_0x33154f._0x556547,-_0x33154f._0x469b44,-0x8a)]=_0xd08fba[_0xf0f84a(0x4da,_0x33154f._0xfb2e5,0x425,0x493)]??_0x27154b(-_0x33154f._0x213f43,-0xe6,-_0x33154f._0x4fae75,-0x1c7),this['anthropicDelegate']=new AnthropicModel({'apiKey':_0xd08fba[_0xf0f84a(0x3d9,_0x33154f._0x20e0e6,_0x33154f._0x20dfbd,0x521)],'authScheme':'bearer','baseUrl':_0x203613,'fetch':_0x21c58b,'headerResolver':_0x154bec,'maxTokens':_0xd08fba[_0xf0f84a(0x58a,_0x33154f._0xf0714b,_0x33154f._0x1e18fa,_0x33154f._0x5e5136)],'model':_0xd08fba[_0xf0f84a(0x5c5,0x52b,_0x33154f._0x393b4e,0x4c6)],'reasoning':_0xd08fba['reasoning'],'providerSessionResolver':_0x377427,'requestMutators':_0xd08fba['requestMutators']});}[_0x532739(-0x14e,-0x1fb,-0x279,-0x15c)](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}['usesResponsesApi'](_0x110af6){const _0x288985={_0x3b9d59:0x3a6,_0x35cc8d:0x355,_0x1d03dc:0x3db,_0x4f5eee:0x4db,_0x253acf:0x43a,_0x4ac7a0:0x4d5,_0x45ce24:0x38a},_0xf580f8={_0x163caa:0x113},_0x492ffc={_0x5a8635:0x4e5,_0x1f073f:0x145},_0x154b2d=this[_0x4c95b7(0x2c5,0x30c,_0x288985._0x3b9d59,0x3d6)]['get'](_0x110af6);if(!_0x154b2d)return![];function _0x4c95b7(_0x46ae47,_0x218aa6,_0x5d9e17,_0x6f1d7f){return _0x532739(_0x5d9e17,_0x218aa6-_0x492ffc._0x5a8635,_0x5d9e17-0x82,_0x6f1d7f-_0x492ffc._0x1f073f);}function _0x281f3a(_0x5252cf,_0x8392e2,_0x3a4523,_0x43ec4d){return _0x532739(_0x5252cf,_0x3a4523-_0xf580f8._0x163caa,_0x3a4523-0x164,_0x43ec4d-0x146);}return!_0x154b2d[_0x4c95b7(_0x288985._0x35cc8d,_0x288985._0x1d03dc,0x34d,0x44e)](_0x4c95b7(_0x288985._0x4f5eee,_0x288985._0x253acf,_0x288985._0x4ac7a0,0x514))&&_0x154b2d['includes'](_0x4c95b7(0x46d,0x44a,_0x288985._0x45ce24,0x3f2));}[_0x532739(-0xa6,-0x106,-0xe8,-0xa1)](_0x39cc3f){const _0x529f1a={_0xaa39f4:0x2e2,_0x199c5e:0x32b,_0x7b47d2:0x4ef,_0x4d44dd:0x437,_0x4f9d20:0x585,_0x1b8051:0x4ce,_0x222c5f:0x5ec,_0x453e1f:0x673,_0x3518e5:0x2e4,_0x4b0b58:0x2ea,_0x6b43b3:0x2d1,_0x125df6:0x3fa,_0x2a9b1b:0x44c,_0x331d6f:0x500,_0x75d641:0x551,_0x3011fc:0x567,_0x2607e4:0x530,_0x1d0ae8:0x3d1},_0x5a8974={_0x180ac6:0x504,_0x51a8ba:0x1d4,_0x508577:0xdf};function _0x55f6d0(_0x35d81f,_0x95612d,_0x3ba065,_0x148523){return _0x532739(_0x3ba065,_0x148523-_0x5a8974._0x180ac6,_0x3ba065-_0x5a8974._0x51a8ba,_0x148523-_0x5a8974._0x508577);}const _0xfb231f=this[_0x55f6d0(0x37e,_0x529f1a._0xaa39f4,0x342,_0x529f1a._0x199c5e)][_0x1a4698(_0x529f1a._0x7b47d2,_0x529f1a._0x4d44dd,_0x529f1a._0x4f9d20,_0x529f1a._0x1b8051)](_0x39cc3f[_0x1a4698(_0x529f1a._0x222c5f,0x5e8,_0x529f1a._0x453e1f,0x568)]);if(!_0xfb231f)return![];if(resolveOpenAiReasoningConfig(_0x39cc3f[_0x55f6d0(_0x529f1a._0x3518e5,_0x529f1a._0x4b0b58,_0x529f1a._0x6b43b3,0x365)]))return _0xfb231f[_0x55f6d0(0x3f7,0x4e0,0x4c7,_0x529f1a._0x125df6)](_0x55f6d0(_0x529f1a._0x2a9b1b,0x49c,_0x529f1a._0x331d6f,0x469));function _0x1a4698(_0x1faa72,_0x5a0ea2,_0x172192,_0x5afb7f){return _0x22e674(_0x1faa72-0xb,_0x5a0ea2-0x182,_0x5afb7f,_0x1faa72-0x150);}return this[_0x55f6d0(_0x529f1a._0x75d641,0x3f8,_0x529f1a._0x3011fc,0x4ac)](_0x39cc3f[_0x55f6d0(0x54e,_0x529f1a._0x2607e4,_0x529f1a._0x1d0ae8,0x49e)]);}[_0x532739(-0x1ad,-0xe1,-0x187,-0x58)](_0x47a680){const _0x13c229={_0x289290:0x44f,_0x2fb462:0x339,_0x5c6726:0x366,_0x2091c0:0x410},_0x574d59={_0x37d219:0x83},_0xae2dce={_0x33cc39:0x15c};function _0x4adabc(_0x27f34c,_0x26c76a,_0x27c960,_0x336053){return _0x532739(_0x27c960,_0x26c76a-0x56f,_0x27c960-0xf8,_0x336053-_0xae2dce._0x33cc39);}function _0x59b357(_0xd6a031,_0x4c2fc3,_0x24ecab,_0x4620a6){return _0x22e674(_0xd6a031-_0x574d59._0x37d219,_0x4c2fc3-0x7a,_0xd6a031,_0x4620a6- -0x333);}this[_0x4adabc(_0x13c229._0x289290,0x396,0x3ca,0x2ea)][_0x4adabc(_0x13c229._0x2fb462,0x3ec,_0x13c229._0x5c6726,_0x13c229._0x2091c0)](_0x47a680,['/responses']);}[_0x22e674(0x42a,0x456,0x544,0x465)](_0x614ffd){const _0x4a365d={_0x53c318:0x564,_0x736e7d:0x4ee,_0x5a35a8:0x4f9,_0x1536f5:0x519},_0x32810e={_0x226e67:0x18f},_0xaa79c6={_0x2e4daa:0x79,_0x45f520:0x426};function _0x267944(_0xa987ba,_0x274965,_0x239f9f,_0x584fa3){return _0x22e674(_0xa987ba-_0xaa79c6._0x2e4daa,_0x274965-0x98,_0x274965,_0x239f9f- -_0xaa79c6._0x45f520);}function _0x446729(_0x26accb,_0x52292e,_0x4f91df,_0x48949b){return _0x532739(_0x48949b,_0x4f91df-0x64d,_0x4f91df-_0x32810e._0x226e67,_0x48949b-0x79);}if(_0x614ffd instanceof OpenAiApiError)return createResponseError(_0x614ffd['status'],_0x614ffd[_0x446729(_0x4a365d._0x53c318,0x63c,0x586,0x5f5)]||_0x614ffd[_0x446729(_0x4a365d._0x736e7d,_0x4a365d._0x5a35a8,0x460,_0x4a365d._0x1536f5)]);return _0x614ffd;}[_0x22e674(0x2f6,0x2da,0x340,0x32d)](_0x3dc762,_0x3a51d3){const _0x52b114={_0x2636c2:0xa8,_0x2bb6a7:0x9,_0x443c7f:0x402,_0x64fb24:0x3a9,_0x32142d:0x379,_0x548f5a:0x3f1,_0x29359c:0x4c8,_0x21bd21:0x33d,_0x29f960:0x38c,_0x2108c5:0x18d,_0x4d8829:0xcd,_0x59b42c:0x1ae,_0x2f0dbf:0x4bf,_0x4374fd:0x588,_0x56faa4:0x1f,_0x22c9b1:0x95,_0x3f2c6d:0xcc,_0x44accd:0x38,_0x1c4976:0x47a,_0x128299:0x4cf,_0x4061e0:0x4fa,_0x2c4f82:0x41b},_0x330efc={_0x24d176:0x19f,_0x512c36:0x172,_0x5a47b2:0x405},_0x54bf96={_0x2d6136:0x1c9,_0x51252b:0x27};switch(this['surface']){case _0x2c6d73(_0x52b114._0x2636c2,-_0x52b114._0x2bb6a7,0x7a,0x121):return this[_0x4645f4(0x3a7,_0x52b114._0x443c7f,_0x52b114._0x64fb24,_0x52b114._0x32142d)][_0x4645f4(0x404,0x482,_0x52b114._0x548f5a,_0x52b114._0x29359c)](_0x3dc762,_0x3a51d3);case _0x4645f4(0x43e,_0x52b114._0x21bd21,0x378,_0x52b114._0x29f960):return this[_0x2c6d73(-_0x52b114._0x2108c5,-0xb7,-_0x52b114._0x4d8829,-_0x52b114._0x59b42c)](_0x3dc762,_0x3a51d3);case _0x4645f4(_0x52b114._0x2f0dbf,_0x52b114._0x4374fd,0x4af,0x4e6):return this[_0x4645f4(0x3f7,0x405,0x38d,0x2f6)](_0x3dc762,_0x3a51d3);case _0x2c6d73(-0x6e,0x58,-_0x52b114._0x56faa4,_0x52b114._0x22c9b1):return this[_0x2c6d73(0xee,-_0x52b114._0x3f2c6d,0x8,_0x52b114._0x44accd)](_0x3dc762,_0x3a51d3);case'auto':return this[_0x2c6d73(0x66,-0x109,-0x3b,0x7c)](_0x3dc762,_0x3a51d3);}function _0x4645f4(_0x218609,_0x3417c3,_0x1b13aa,_0x557b17){return _0x22e674(_0x218609-_0x54bf96._0x2d6136,_0x3417c3-0x89,_0x3417c3,_0x1b13aa-_0x54bf96._0x51252b);}function _0x2c6d73(_0x56dfbd,_0x130344,_0x58730d,_0x32d6a4){return _0x22e674(_0x56dfbd-_0x330efc._0x24d176,_0x130344-_0x330efc._0x512c36,_0x32d6a4,_0x58730d- -_0x330efc._0x5a47b2);}throw new Error(_0x4645f4(0x3ca,_0x52b114._0x1c4976,0x452,0x3f4)+String(this[_0x4645f4(_0x52b114._0x128299,_0x52b114._0x4061e0,_0x52b114._0x2c4f82,0x451)]));}[_0x22e674(0x365,0x27f,0x392,0x33a)](_0xe96083,_0x1a6178){const _0x2dc2a1={_0x502a2f:0x6e2,_0x5ab95f:0x652,_0x3c1ad1:0x634,_0x4a2789:0x73e,_0x5c04f5:0x6c5,_0x3b8bca:0x693,_0x127010:0x6e6,_0x556afe:0x4b3,_0x10ccd3:0x4b0,_0x5ad5f5:0x644,_0x300786:0x705,_0x304c0a:0x57a,_0x52836a:0x571,_0x483e24:0x51d,_0x5efb7b:0x511,_0xb313ee:0x4cc,_0x4dc73e:0x4b3,_0x281df7:0x61b,_0x49c516:0x5b7,_0x3642e0:0x53c,_0x1ef8f2:0x48e},_0x2f3b89={_0x257bf6:0xa0,_0x2771ec:0x1c0},_0x16736b={_0x32de7b:0x64a,_0x57333e:0x1c4};function _0x50ac4d(_0x441fc8,_0x1dd9e3,_0x29ffea,_0x137a14){return _0x532739(_0x1dd9e3,_0x29ffea-_0x16736b._0x32de7b,_0x29ffea-0x165,_0x137a14-_0x16736b._0x57333e);}function _0x5f1da3(_0x524072,_0x2ab334,_0x3efdd4,_0x2cab10){return _0x22e674(_0x524072-_0x2f3b89._0x257bf6,_0x2ab334-_0x2f3b89._0x2771ec,_0x2cab10,_0x2ab334-0x25e);}switch(this[_0x5f1da3(_0x2dc2a1._0x502a2f,_0x2dc2a1._0x5ab95f,0x5eb,_0x2dc2a1._0x3c1ad1)]){case _0x5f1da3(0x7ab,0x6dd,_0x2dc2a1._0x4a2789,0x792):return this['anthropicDelegate']['stream'](_0xe96083,_0x1a6178);case'openai-chat-completions':return this[_0x5f1da3(0x5ce,0x64f,_0x2dc2a1._0x5c04f5,_0x2dc2a1._0x3b8bca)](_0xe96083,_0x1a6178);case _0x5f1da3(0x77a,_0x2dc2a1._0x127010,0x71b,0x67b):return this[_0x50ac4d(0x424,0x45a,_0x2dc2a1._0x556afe,_0x2dc2a1._0x10ccd3)](_0xe96083,_0x1a6178);case _0x5f1da3(0x604,_0x2dc2a1._0x5ad5f5,_0x2dc2a1._0x300786,0x6f8):return this[_0x5f1da3(_0x2dc2a1._0x304c0a,0x54e,0x4bd,_0x2dc2a1._0x52836a)](_0xe96083,_0x1a6178);case _0x50ac4d(0x577,_0x2dc2a1._0x483e24,_0x2dc2a1._0x5efb7b,_0x2dc2a1._0xb313ee):return this[_0x5f1da3(0x5ea,0x687,0x612,0x746)](_0xe96083,_0x1a6178);}throw new Error(_0x50ac4d(_0x2dc2a1._0x4dc73e,_0x2dc2a1._0x281df7,0x573,0x5c4)+String(this[_0x50ac4d(_0x2dc2a1._0x49c516,0x55f,_0x2dc2a1._0x3642e0,_0x2dc2a1._0x1ef8f2)]));}async[_0x22e674(0x3e1,0x3a0,0x3cc,0x3ca)](_0x4c4516,_0x2d4c31){const _0x5c9b5e={_0x379e42:0x78,_0x28ac87:0x4a,_0x620d18:0x109,_0x19cfe9:0x13e,_0x49d013:0x4c1,_0x4b3b07:0x115,_0x96436b:0x146,_0x201275:0x126,_0x51c214:0xc6,_0x4d2d02:0x185,_0x446168:0x208,_0x144855:0x14c,_0x5f3422:0x16b,_0x252571:0xa4,_0x111a9b:0x666,_0x2c5767:0x73f,_0x2c5a1e:0x160,_0x3f69e0:0xb0,_0x48f4c8:0xdb,_0x284b99:0x26a,_0x252a49:0x226,_0x5a57f2:0x209},_0x2b11ee={_0x26e30d:0x1b0,_0x386d5c:0x180},_0x20e774={_0x5c17f3:0x1d0,_0x28d428:0x190,_0x512571:0x1ca};function _0x3c104f(_0x115f3a,_0x702127,_0x565f77,_0x24ee02){return _0x22e674(_0x115f3a-_0x20e774._0x5c17f3,_0x702127-_0x20e774._0x28d428,_0x24ee02,_0x115f3a-_0x20e774._0x512571);}const _0x6a3c06=this[_0x304f75(_0x5c9b5e._0x379e42,0x34,_0x5c9b5e._0x28ac87,0x2)](_0x4c4516);if(this[_0x304f75(_0x5c9b5e._0x620d18,_0x5c9b5e._0x19cfe9,0x1de,0x8c)]!==_0x3c104f(0x593,0x57d,0x642,_0x5c9b5e._0x49d013))return this['completeViaConfiguredSurface'](_0x6a3c06,_0x2d4c31);if(this[_0x304f75(_0x5c9b5e._0x4b3b07,_0x5c9b5e._0x96436b,_0x5c9b5e._0x201275,0x1ed)](_0x6a3c06))return this[_0x3c104f(0x530,0x52b,0x4a1,0x4c3)](_0x6a3c06,_0x2d4c31);function _0x304f75(_0x1d5127,_0x443d75,_0x1eb193,_0x15e4d4){return _0x22e674(_0x1d5127-_0x2b11ee._0x26e30d,_0x443d75-_0x2b11ee._0x386d5c,_0x1d5127,_0x443d75- -0x2b6);}try{return await this['completeViaChatCompletionsSurface'](_0x6a3c06,_0x2d4c31);}catch(_0x186cf3){if(_0x186cf3 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x186cf3[_0x304f75(_0x5c9b5e._0x51c214,_0x5c9b5e._0x4d2d02,0x20a,_0x5c9b5e._0x446168)]))return this[_0x304f75(_0x5c9b5e._0x144855,_0x5c9b5e._0x5f3422,_0x5c9b5e._0x252571,0x1ce)](_0x6a3c06[_0x3c104f(_0x5c9b5e._0x111a9b,0x69b,0x5d9,_0x5c9b5e._0x2c5767)]),this[_0x304f75(_0x5c9b5e._0x2c5a1e,_0x5c9b5e._0x3f69e0,0x3e,_0x5c9b5e._0x48f4c8)](_0x6a3c06,_0x2d4c31);throw this[_0x304f75(_0x5c9b5e._0x284b99,0x1af,_0x5c9b5e._0x252a49,_0x5c9b5e._0x5a57f2)](_0x186cf3);}throw _0x186cf3;}}async*['stream'](_0x1c3a39,_0x2a95d4){const _0x5cde9c={_0x305418:0xd5,_0x18bd64:0x7d,_0x9c1de5:0xb4,_0x1d70cb:0x137,_0x2d1880:0x7e,_0x3c4993:0x142,_0xd24e82:0x217,_0x416e97:0x1f2,_0x1dcf04:0x36,_0x22389e:0x50,_0x5746a1:0x1be,_0x285e29:0x3c},_0xf1e0f4={_0x538bd7:0xb7,_0x131ca6:0x19c};function _0xd18d1(_0x4d52c0,_0xa1604,_0xeab7b3,_0x1df8be){return _0x22e674(_0x4d52c0-0x46,_0xa1604-0xef,_0x1df8be,_0xeab7b3- -0x471);}const _0x5e19c7=this['applyModelDefaults'](_0x1c3a39);if(this[_0xd18d1(-_0x5cde9c._0x305418,-0x4b,-_0x5cde9c._0x18bd64,-_0x5cde9c._0x9c1de5)]!=='auto'){yield*this[_0xd18d1(-0x217,-0x79,-_0x5cde9c._0x1d70cb,-_0x5cde9c._0x2d1880)](_0x5e19c7,_0x2a95d4);return;}if(this[_0x15b162(-_0x5cde9c._0x3c4993,-0x5c,-0x115,-0xf6)](_0x5e19c7)){yield*this[_0x15b162(-_0x5cde9c._0xd24e82,-0x16a,-_0x5cde9c._0x416e97,-0x187)](_0x5e19c7,_0x2a95d4);return;}function _0x15b162(_0x4db512,_0x52f123,_0x40bbde,_0x318b9c){return _0x532739(_0x52f123,_0x318b9c-0x10,_0x40bbde-_0xf1e0f4._0x538bd7,_0x318b9c-_0xf1e0f4._0x131ca6);}try{yield*this['streamViaChatCompletionsSurface'](_0x5e19c7,_0x2a95d4);}catch(_0x2091fd){if(_0x2091fd instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x2091fd[_0xd18d1(-0x11a,-0x2f,-_0x5cde9c._0x1dcf04,-0xa7)])){this[_0xd18d1(-0xc4,0x48,-_0x5cde9c._0x22389e,-_0x5cde9c._0x305418)](_0x5e19c7['model']),yield*this[_0xd18d1(-0x1d7,-0x32,-0x106,-_0x5cde9c._0x5746a1)](_0x5e19c7,_0x2a95d4);return;}throw this[_0x15b162(-0x111,-0x51,-_0x5cde9c._0x285e29,-0x8d)](_0x2091fd);}throw _0x2091fd;}}async[_0x22e674(0x3b8,0x320,0x2d6,0x2f2)](_0x65844e){const _0x2467b3={_0x507db6:0x70,_0x1dbf51:0x104,_0x50b39c:0x12c,_0x5b8d59:0x1bb,_0x29f538:0x123,_0x546754:0x1f3,_0x26a276:0x3f,_0x36a370:0x78,_0x59211c:0x62,_0x16f458:0xc1,_0x579753:0x49,_0x25fd32:0x4,_0x2576fb:0x8b,_0x42e024:0x85,_0x121958:0xf,_0x5898ef:0x1a5},_0x367258={_0x2c5b60:0x59,_0x4a5887:0x38,_0x37bda0:0x2d,_0x5de017:0x9,_0x1aae36:0x9a,_0x1bfead:0x8a},_0x4af578={_0x26dc77:0x347,_0x355929:0xc4},_0x43d07b={_0x44c8f6:0x15e};function _0x34776d(_0x3c4118,_0x18cd8b,_0x320faf,_0x3512be){return _0x532739(_0x3512be,_0x320faf-_0x43d07b._0x44c8f6,_0x320faf-0xe3,_0x3512be-0x18f);}const _0x449a1f=await this[_0x34776d(_0x2467b3._0x507db6,0xe8,_0x2467b3._0x1dbf51,0x174)]({'path':_0x17277f(_0x2467b3._0x50b39c,_0x2467b3._0x5b8d59,_0x2467b3._0x29f538,_0x2467b3._0x546754),'method':_0x34776d(0x65,-0xd3,-_0x2467b3._0x26a276,-0xf7),'signal':_0x65844e});function _0x17277f(_0x120de2,_0xba11de,_0x5c9906,_0x491989){return _0x532739(_0x5c9906,_0xba11de-_0x4af578._0x26dc77,_0x5c9906-_0x4af578._0x355929,_0x491989-0x1b6);}if(!_0x449a1f['ok'])throw this[_0x34776d(_0x2467b3._0x36a370,_0x2467b3._0x59211c,_0x2467b3._0x16f458,0x116)](await this['toApiError'](_0x449a1f));const _0x37b058=await _0x449a1f[_0x34776d(-0x8,-_0x2467b3._0x579753,-_0x2467b3._0x25fd32,_0x2467b3._0x2576fb)](),_0x206adb=(_0x37b058[_0x34776d(-_0x2467b3._0x42e024,0x22,_0x2467b3._0x121958,0x62)]??[])[_0x17277f(0x255,_0x2467b3._0x5898ef,0x197,0x215)](_0x58ae41=>{const _0x619f3e={_0x4c00c0:0x3d0};function _0x53412c(_0x139897,_0x2954ac,_0x569935,_0x430e9e){return _0x17277f(_0x139897-0x198,_0x569935-_0x619f3e._0x4c00c0,_0x2954ac,_0x430e9e-0xf5);}function _0x1727fb(_0x7648e3,_0x29eed0,_0x28b689,_0x2b084e){return _0x17277f(_0x7648e3-0x85,_0x2b084e- -0x1bb,_0x28b689,_0x2b084e-0x3d);}const _0x2e71e4=createModelInfo(_0x58ae41);return _0x2e71e4[_0x1727fb(0x96,-_0x367258._0x2c5b60,0x15c,0x8a)]&&this[_0x1727fb(0x5c,-0xee,0x5c,-0x4d)][_0x1727fb(-_0x367258._0x4a5887,_0x367258._0x37bda0,-0x42,_0x367258._0x5de017)](_0x2e71e4['id'],_0x2e71e4[_0x1727fb(-0x3c,-0x5b,_0x367258._0x1aae36,_0x367258._0x1bfead)]),_0x2e71e4;});return deduplicateModels(_0x206adb);}};function createHeaders(_0xcd1ea2){const _0x12f69f={_0x46fa02:0x6f,_0x326f8f:0x8},_0x1ee6f2={_0x5cede7:0x11a,_0x5c28cb:0x1b3};function _0x4b1ce6(_0x12de60,_0x253b13,_0x101eb9,_0x33e419){return _0x22e674(_0x12de60-_0x1ee6f2._0x5cede7,_0x253b13-_0x1ee6f2._0x5c28cb,_0x12de60,_0x101eb9-0x231);}const _0x1d9176=new Headers();for(const [_0x5dca2a,_0x49d807]of Object[_0x460ac6(-0xf8,-0x16,_0x12f69f._0x46fa02,0x6e)](_0xcd1ea2)){_0x1d9176[_0x460ac6(-0x5d,0x42,_0x12f69f._0x326f8f,0xb4)](_0x5dca2a,_0x49d807);}function _0x460ac6(_0x130739,_0x4619cf,_0x6862e9,_0x247920){return _0x22e674(_0x130739-0x1b,_0x4619cf-0x171,_0x6862e9,_0x4619cf- -0x33d);}return _0x1d9176;}async function fetchRawResponse(_0x54bac7){const _0x4cf301={_0x3ef825:0x410,_0x213eac:0x4c4,_0x369457:0x576,_0x56a10b:0x57b,_0xaa95f4:0x590,_0x4eb98b:0x5a8,_0x296b1c:0x5bf,_0x2d1958:0x310,_0x1328ef:0x33c,_0x5f17e7:0x1ed,_0x2e1c49:0xee,_0x2c40e1:0x1eb,_0x6c0443:0x136,_0x2eba63:0x26a,_0x549593:0x247,_0x5f028c:0x1f8},_0x4cd4a9={_0x276cc4:0x2f3},_0x12597b={_0x5a2e22:0xbf,_0x42d129:0x190,_0xedac5c:0x117};function _0x245d97(_0x339afc,_0x41f3f1,_0x182d0b,_0x254020){return _0x22e674(_0x339afc-_0x12597b._0x5a2e22,_0x41f3f1-_0x12597b._0x42d129,_0x182d0b,_0x41f3f1-_0x12597b._0xedac5c);}const _0x446102=_0x54bac7[_0x245d97(_0x4cf301._0x3ef825,_0x4cf301._0x213eac,0x42e,0x4b3)]??globalThis[_0x245d97(0x450,0x4c4,_0x4cf301._0x369457,0x545)];function _0x448217(_0x1d1e5e,_0x3dedef,_0x21bce2,_0x241c23){return _0x532739(_0x1d1e5e,_0x241c23-_0x4cd4a9._0x276cc4,_0x21bce2-0x119,_0x241c23-0x18e);}return _0x446102(_0x54bac7[_0x245d97(_0x4cf301._0x56a10b,_0x4cf301._0xaa95f4,0x62b,0x4b8)],{'method':_0x245d97(0x555,_0x4cf301._0x4eb98b,_0x4cf301._0x296b1c,0x65f),'headers':createHeaders(_0x54bac7[_0x448217(0x28c,_0x4cf301._0x2d1958,_0x4cf301._0x1328ef,0x293)]),'body':JSON[_0x448217(_0x4cf301._0x5f17e7,_0x4cf301._0x2e1c49,_0x4cf301._0x2c40e1,_0x4cf301._0x6c0443)](_0x54bac7[_0x448217(0x2d2,0x253,0x2fb,0x22c)]),'signal':_0x54bac7[_0x448217(_0x4cf301._0x2eba63,_0x4cf301._0x549593,0x2d7,_0x4cf301._0x5f028c)]});}async function fetchJsonResponse(_0xbd2126){const _0x47b722={_0x2809ed:0x3e1,_0x5279d9:0x395,_0x31d055:0x3e6,_0x43a6a3:0x47d,_0x376aa5:0x49a,_0xb8028d:0x3f2,_0x14bbb6:0x574,_0x476255:0x508,_0x24cbf6:0x4ce,_0x271ab0:0x49a,_0x1c903b:0x48c},_0xca6fa9={_0x249105:0x5c2,_0x1b5bca:0x1dd,_0x15c4bd:0x1ad},_0x44dce2=await fetchRawResponse(_0xbd2126);function _0x1755d4(_0x1d4bcb,_0x9b822a,_0xb9ce56,_0x501751){return _0x532739(_0x9b822a,_0x1d4bcb-_0xca6fa9._0x249105,_0xb9ce56-_0xca6fa9._0x1b5bca,_0x501751-_0xca6fa9._0x15c4bd);}if(!_0x44dce2['ok']){const _0x1508c0=await _0x44dce2['text'](),_0x2fc4a9=_0x1508c0[_0x554d2e(_0x47b722._0x2809ed,_0x47b722._0x5279d9,0x4a2,_0x47b722._0x31d055)]()||_0x44dce2[_0x1755d4(0x45c,_0x47b722._0x43a6a3,_0x47b722._0x376aa5,_0x47b722._0xb8028d)]||_0x1755d4(_0x47b722._0x14bbb6,_0x47b722._0x476255,0x527,_0x47b722._0x24cbf6);throw new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x44dce2[_0x1755d4(0x4b5,0x3d4,_0x47b722._0x271ab0,0x4ed)]+':\x20'+_0x2fc4a9);}function _0x554d2e(_0x9841fb,_0x547b11,_0x121a71,_0xb504b8){return _0x532739(_0x9841fb,_0xb504b8-0x5ee,_0x121a71-0x9c,_0xb504b8-0x19f);}return await _0x44dce2[_0x554d2e(0x51c,0x56e,0x43e,_0x47b722._0x1c903b)]();}function findLastMessage(_0x27138e,_0xe8225d){const _0x576ec9={_0x56a7de:0x451,_0x2e39c8:0x51c,_0x28dc86:0x3cf,_0x1d6be4:0x679,_0x2bda5b:0x78e},_0x278433={_0x37e46b:0x105,_0x4a7098:0x38,_0x137029:0x284},_0x3af059={_0x4164f7:0x609,_0xdc4e26:0xb8};for(let _0x32bad1=_0x27138e[_0x1787cf(_0x576ec9._0x56a7de,_0x576ec9._0x2e39c8,_0x576ec9._0x28dc86,0x39a)]-0x1;_0x32bad1>=0x0;_0x32bad1-=0x1){if(_0x27138e[_0x32bad1][_0x43ca1d(0x6ae,_0x576ec9._0x1d6be4,_0x576ec9._0x2bda5b,0x623)]===_0xe8225d)return _0x27138e[_0x32bad1];}function _0x1787cf(_0x51aaee,_0xef4b65,_0x3cd56,_0x52bfde){return _0x532739(_0xef4b65,_0x51aaee-_0x3af059._0x4164f7,_0x3cd56-0x3e,_0x52bfde-_0x3af059._0xdc4e26);}function _0x43ca1d(_0xbe98f5,_0x3bc594,_0x503a82,_0x4687d1){return _0x22e674(_0xbe98f5-_0x278433._0x37e46b,_0x3bc594-_0x278433._0x4a7098,_0x4687d1,_0xbe98f5-_0x278433._0x137029);}return void 0x0;}function hasTool(_0x1a1236,_0x1a9df1){const _0x3cc799={_0xde7b09:0x509,_0x2787cd:0x540,_0x32d284:0x481,_0x12980e:0x563,_0x1ad565:0x56a},_0x1194c6={_0x2987ec:0x175,_0x5e321b:0x95},_0x42bf4e={_0x3e2726:0x1d8};function _0x167e31(_0x3ea1b2,_0x306e84,_0x2a9d34,_0x2f9521){return _0x22e674(_0x3ea1b2-_0x42bf4e._0x3e2726,_0x306e84-0xe,_0x2f9521,_0x306e84-0x190);}function _0x436b81(_0x149526,_0x3c5060,_0xe2c287,_0x3954fe){return _0x22e674(_0x149526-_0x1194c6._0x2987ec,_0x3c5060-0xba,_0x3954fe,_0x3c5060- -_0x1194c6._0x5e321b);}return _0x1a1236[_0x167e31(_0x3cc799._0xde7b09,_0x3cc799._0x2787cd,_0x3cc799._0x32d284,0x58b)][_0x167e31(0x513,_0x3cc799._0x12980e,_0x3cc799._0x1ad565,0x4e4)](_0x18ddcf=>_0x18ddcf['name']===_0x1a9df1);}function createMockResponse(_0x231b9c,_0x5b386d,_0x101aa2,_0xa52fb4){return{'id':_0x231b9c,'content':_0x5b386d,'stopReason':_0x101aa2,'usage':_0xa52fb4};}var MockModel=class{[_0x532739(0x6c,-0x66,-0xfd,-0xf4)];[_0x22e674(0x4c5,0x4f9,0x4a6,0x439)];[_0x532739(-0x28d,-0x215,-0x248,-0x28c)]=[];[_0x532739(-0xde,-0x19f,-0x27c,-0x177)];constructor(_0x2256ed={}){const _0x3410fe={_0x4ec3fc:0x25c,_0x3b801e:0x2e0,_0x4abd1f:0xa6,_0x8c90d1:0x22,_0x46f185:0x79,_0x30ff86:0xa8,_0x4616b5:0xd9,_0x424d81:0x1,_0x5dc343:0x15e,_0x558ed1:0x223,_0x156bc:0x1ea},_0x120279={_0x572dc7:0x2c2,_0xee5583:0x17c},_0x3cf771={_0x52d4bc:0xc8,_0x110e3f:0x194,_0xed8e76:0x1ca};function _0x5d36b2(_0x35bcdd,_0x857963,_0x12a35c,_0x594e45){return _0x532739(_0x35bcdd,_0x594e45-_0x3cf771._0x52d4bc,_0x12a35c-_0x3cf771._0x110e3f,_0x594e45-_0x3cf771._0xed8e76);}this[_0x5e25e7(_0x3410fe._0x4ec3fc,0x1e4,0x294,_0x3410fe._0x3b801e)]=_0x2256ed[_0x5d36b2(_0x3410fe._0x4abd1f,0x6e,_0x3410fe._0x8c90d1,0x62)]??_0x5d36b2(-0xa0,-_0x3410fe._0x46f185,-0x84,-0x63),this[_0x5d36b2(-_0x3410fe._0x30ff86,_0x3410fe._0x4616b5,-0x68,-_0x3410fe._0x424d81)]=_0x2256ed[_0x5e25e7(0x1f9,_0x3410fe._0x5dc343,0x206,_0x3410fe._0x558ed1)]??getDefaultMaxTokens();function _0x5e25e7(_0x22d560,_0x416f56,_0x9d8062,_0x5aeb9e){return _0x532739(_0x9d8062,_0x22d560-_0x120279._0x572dc7,_0x9d8062-0x8c,_0x5aeb9e-_0x120279._0xee5583);}this[_0x5e25e7(0x123,0x18d,0xa7,_0x3410fe._0x156bc)]=_0x2256ed['reasoning']?structuredClone(_0x2256ed['reasoning']):void 0x0;}async[_0x22e674(0x3ff,0x3e1,0x443,0x3ca)](_0x263f76,_0x61a24c){const _0xaa462c={_0x2738b6:0xec,_0x316938:0x184,_0x49d40a:0x117,_0x1a0b58:0xff,_0x3c6d11:0x45,_0x5d629b:0x41d,_0x335e0a:0x3b8,_0x45e97c:0x3b6,_0x1f8f92:0x542,_0x55e786:0x43b,_0x46137d:0x3d5,_0x2933a8:0x16,_0x30c52d:0x78,_0x4909ef:0x9c,_0x578586:0x3a3,_0x4952cc:0x466,_0x10ec5e:0x1c3,_0x2f1f0:0x1c8,_0x3a5050:0x337,_0x50a963:0x386,_0x2cd913:0x3d2,_0x651a16:0x35a,_0x362021:0x8a,_0x513a84:0x46d,_0x1f1579:0x52a,_0x1f1684:0x412,_0x3cd68f:0x18,_0x4c1648:0x533,_0x1c1fb3:0x3fe,_0x56891c:0x3f7,_0x151bf9:0x560,_0x329c59:0x458,_0x45a5d5:0x477,_0x12aba6:0x4c7,_0x59067f:0x193,_0x292b0b:0x18c},_0x36f35b={_0x4dc442:0x462},_0x2c93cb={_0x25f01f:0x5cd,_0x23fcec:0x45,_0x56b33a:0x142},_0x568120={...structuredClone(_0x263f76),..._0x263f76[_0x197607(-_0xaa462c._0x2738b6,-_0xaa462c._0x316938,-0xff,-0x1af)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x197607(-_0xaa462c._0x49d40a,-0x108,-_0xaa462c._0x1a0b58,-_0xaa462c._0x3c6d11)])}:{}};function _0x23c6f7(_0x345a4d,_0x32b774,_0x521326,_0x24025b){return _0x532739(_0x521326,_0x32b774-_0x2c93cb._0x25f01f,_0x521326-_0x2c93cb._0x23fcec,_0x24025b-_0x2c93cb._0x56b33a);}this[_0x23c6f7(_0xaa462c._0x5d629b,_0xaa462c._0x335e0a,_0xaa462c._0x45e97c,0x419)][_0x23c6f7(_0xaa462c._0x1f8f92,0x465,0x4d4,0x456)](_0x568120);const _0x3e9a64=findLastMessage(_0x568120[_0x23c6f7(0x380,_0xaa462c._0x55e786,_0xaa462c._0x46137d,0x47f)],_0x197607(_0xaa462c._0x2933a8,-0xb8,-_0xaa462c._0x30c52d,-_0xaa462c._0x4909ef));function _0x197607(_0xe35840,_0x5e67a3,_0x325852,_0x552e13){return _0x22e674(_0xe35840-0x1e5,_0x5e67a3-0x4f,_0x552e13,_0x325852- -_0x36f35b._0x4dc442);}const _0x4c8f0b=getToolResultBlocks(_0x3e9a64),_0x1c3223='assistant-'+this[_0x23c6f7(_0xaa462c._0x578586,_0xaa462c._0x335e0a,0x3f1,_0xaa462c._0x4952cc)]['length'];if(_0x4c8f0b[_0x197607(-0x152,-_0xaa462c._0x10ec5e,-0x118,-_0xaa462c._0x2f1f0)]>0x0)return createMockResponse(_0x1c3223,[{'type':'text','text':_0x23c6f7(_0xaa462c._0x3a5050,0x40b,0x43f,0x358)+_0x4c8f0b[0x0]['content']}],_0x23c6f7(_0xaa462c._0x50a963,0x3f6,_0xaa462c._0x2cd913,_0xaa462c._0x651a16),{'inputTokens':0x78,'outputTokens':0x28});const _0x571f67=getTextFromMessage(_0x3e9a64);if(/list .*files|workspace/i[_0x197607(-_0xaa462c._0x362021,0x106,0x20,0x35)](_0x571f67)&&hasTool(_0x568120,_0x23c6f7(0x40e,_0xaa462c._0x513a84,_0xaa462c._0x1f1579,_0xaa462c._0x1f1684)))return createMockResponse(_0x1c3223,[{'type':_0x197607(_0xaa462c._0x3cd68f,-0x60,-0xb6,-0xed),'id':_0x23c6f7(0x5b8,_0xaa462c._0x4c1648,0x56c,0x5f4)+this[_0x23c6f7(0x3ef,0x3b8,_0xaa462c._0x1c1fb3,_0xaa462c._0x56891c)]['length'],'name':'Bash','input':{'command':_0x23c6f7(0x4d4,0x4ff,_0xaa462c._0x151bf9,0x4a0)}}],_0x23c6f7(_0xaa462c._0x329c59,_0xaa462c._0x45a5d5,0x3b2,_0xaa462c._0x12aba6),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x1c3223,[{'type':'text','text':_0x197607(-0x19f,-_0xaa462c._0x59067f,-0xba,-_0xaa462c._0x292b0b)+_0x571f67}],'end_turn',{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x3b88a7,_0xfe0830){const _0x3cccac={_0x69eef2:0x2b6,_0x1bc869:0x2d4,_0x2466b2:0x2a6,_0x521081:0x188,_0x43d6f9:0x14,_0x5a4095:0x13c},_0x5886b8={_0x5779d0:0x73},_0x4106bb={_0x456d49:0x377},_0x2f71a6=getModelProfile(_0x3b88a7,_0xfe0830);function _0xbc66d2(_0x25db46,_0x5f4353,_0x599364,_0x2b4506){return _0x532739(_0x5f4353,_0x2b4506-_0x4106bb._0x456d49,_0x599364-0x1f,_0x2b4506-0x9c);}if(!_0x2f71a6?.[_0x4166fd(0x10f,0xc3,0xf9,0x10c)]&&!_0x2f71a6?.[_0xbc66d2(0x214,_0x3cccac._0x69eef2,0x273,0x258)])return void 0x0;function _0x4166fd(_0x5eff88,_0x2a98c7,_0x3a9ff1,_0x2538f4){return _0x532739(_0x2538f4,_0x5eff88-0x1b2,_0x3a9ff1-_0x5886b8._0x5779d0,_0x2538f4-0x1dd);}return{..._0x2f71a6['contextWindow']?{'contextWindow':_0x2f71a6[_0xbc66d2(0x2bc,0x37c,0x222,_0x3cccac._0x1bc869)]}:{},..._0x2f71a6[_0xbc66d2(_0x3cccac._0x2466b2,_0x3cccac._0x521081,0x1fc,0x258)]?{'maxOutput':_0x2f71a6[_0x4166fd(0x93,-_0x3cccac._0x43d6f9,0x176,_0x3cccac._0x5a4095)]}:{}};}function normalizeModelInfo(_0x3aacc1,_0x2251e0){const _0x4d288c={_0x517a66:0x2b2,_0x498cc6:0xa5,_0x27b53f:0x18f,_0x4303b5:0x2e6,_0x151607:0x253,_0x13c86b:0x2d3,_0x9b31a0:0x1f2,_0x54e5ad:0x2cb,_0xa302c7:0x222,_0x2d0db6:0x334,_0x5cd5be:0x263,_0x77e8d6:0x375,_0x47eb00:0x3ce,_0xdd1cd8:0x160,_0x159320:0x1f7,_0x1bda3f:0x2b8,_0x49879a:0x369,_0xbe2cf:0x230},_0x4e18f5={_0x8efe1:0xc1,_0xec5dd6:0x269},_0x5c132e={_0x121434:0x172},_0x5a19b5=typeof _0x2251e0['id']===_0x1bd52c(0x228,_0x4d288c._0x517a66,0x2f6,0x331)?_0x2251e0['id']:'',_0xe761ff=typeof _0x2251e0['name']===_0x420a02(_0x4d288c._0x498cc6,_0x4d288c._0x27b53f,0x16d,0xdf)?_0x2251e0['name']:_0x5a19b5,_0x1a0f1d=normalizeModelLimits(_0x3aacc1,_0x2251e0)??getFallbackModelLimits(_0x3aacc1,_0x5a19b5),_0x1d1e39=Array[_0x420a02(_0x4d288c._0x4303b5,0x22f,0x20e,_0x4d288c._0x151607)](_0x2251e0['supported_endpoints'])?_0x2251e0[_0x1bd52c(_0x4d288c._0x13c86b,_0x4d288c._0x9b31a0,_0x4d288c._0x54e5ad,_0x4d288c._0xa302c7)][_0x1bd52c(0x221,0x2b8,_0x4d288c._0x2d0db6,_0x4d288c._0x5cd5be)](_0x220e36=>typeof _0x220e36==='string'):Array[_0x1bd52c(_0x4d288c._0x77e8d6,0x353,_0x4d288c._0x47eb00,0x2dc)](_0x2251e0['capable_endpoints'])?_0x2251e0[_0x420a02(0x247,_0x4d288c._0xdd1cd8,0x18d,0x141)][_0x1bd52c(_0x4d288c._0x159320,_0x4d288c._0x1bda3f,_0x4d288c._0x49879a,_0x4d288c._0xbe2cf)](_0x26e646=>typeof _0x26e646===_0x420a02(0xee,0x233,0x16d,0x1ac)):void 0x0;function _0x1bd52c(_0x4f9992,_0x11e2d7,_0xb3266b,_0x21bdbd){return _0x22e674(_0x4f9992-_0x5c132e._0x121434,_0x11e2d7-0xad,_0x21bdbd,_0x11e2d7- -0x124);}function _0x420a02(_0x43fdcd,_0x329bb4,_0x1faf95,_0x29ff0c){return _0x22e674(_0x43fdcd-_0x4e18f5._0x8efe1,_0x329bb4-0x1ac,_0x29ff0c,_0x1faf95- -_0x4e18f5._0xec5dd6);}return{'id':_0x5a19b5,'name':_0xe761ff,..._0x1a0f1d?{'limits':_0x1a0f1d}:{},..._0x1d1e39?{'supportedEndpoints':_0x1d1e39}:{}};}function normalizeModelLimits(_0x5e7243,_0x3092a4){const _0x57a6dc={_0x32a923:0x58c,_0x4ea436:0x652,_0x11a8b3:0x5db,_0xfbf8ee:0x73,_0x1069d9:0x77,_0x5d434a:0x3e,_0x5692d3:0xa3,_0x97f98e:0x26,_0x342e1a:0x2e,_0x2610a2:0xa,_0x364ea5:0x563,_0x5f1ad6:0x560,_0x13b4f2:0x8e,_0x518378:0x8e,_0x28a6fc:0x9e,_0x1aa0bb:0x162,_0x87f814:0x61,_0x7c9fcf:0xc0,_0x3f6a48:0x5,_0x4e4d88:0x6b0,_0x41b3f4:0x13f,_0x3f63e9:0x87,_0x596a3d:0x5d,_0x5be831:0xa,_0x523a01:0x8d,_0x30db38:0x53,_0x433e27:0x48,_0x3ed774:0x61,_0x1f6a07:0x57,_0xbe4dcc:0xea,_0x3ba318:0x5d5,_0x2db54d:0x5a9,_0x2bd2a6:0x680,_0x50269f:0x638,_0x342bc2:0x63d,_0x1df62e:0x4d,_0x528fac:0x34,_0x4b82d5:0x4f9,_0x1a582e:0x419,_0xee1717:0x56d,_0x38fb82:0x573,_0x51897d:0x536,_0x3bffe6:0x7,_0xd26c87:0x632,_0x52db64:0x99,_0x39e847:0xd0,_0x189701:0x15,_0x4971f5:0x2,_0x5c57c8:0xfb,_0x3cd0f6:0x555,_0x5785e1:0x618,_0x3ac34c:0x106,_0x2cfbd8:0x5c8,_0x5c724d:0x553,_0x3f973d:0x4a8,_0x552fed:0x4b0,_0x30b6d0:0xc8},_0x457b10={_0x26113c:0x146};if(_0x3092a4[_0x157fed(_0x57a6dc._0x32a923,0x60d,_0x57a6dc._0x4ea436,_0x57a6dc._0x11a8b3)]&&typeof _0x3092a4[_0x107a9f(-_0x57a6dc._0xfbf8ee,0xa,-_0x57a6dc._0x1069d9,_0x57a6dc._0x5d434a)]===_0x107a9f(_0x57a6dc._0x5692d3,0xd0,_0x57a6dc._0x97f98e,0x36)){const _0x659ad0=_0x3092a4[_0x107a9f(-_0x57a6dc._0x342e1a,_0x57a6dc._0x2610a2,0xa0,-0x39)];if(typeof _0x659ad0[_0x157fed(0x610,_0x57a6dc._0x364ea5,0x594,_0x57a6dc._0x5f1ad6)]===_0x107a9f(-_0x57a6dc._0x13b4f2,0x53,-0x41,0x90))return{'contextWindow':_0x659ad0[_0x107a9f(-0x10,_0x57a6dc._0x518378,_0x57a6dc._0x28a6fc,_0x57a6dc._0x1aa0bb)],...typeof _0x659ad0[_0x107a9f(-_0x57a6dc._0x87f814,0x12,_0x57a6dc._0x7c9fcf,_0x57a6dc._0x3f6a48)]===_0x157fed(0x5d5,0x596,0x5af,_0x57a6dc._0x4e4d88)?{'maxOutput':_0x659ad0['maxOutput']}:{}};}if(_0x5e7243[_0x157fed(0x4b6,0x4ea,0x418,0x410)]()===_0x107a9f(_0x57a6dc._0x41b3f4,_0x57a6dc._0x3f63e9,0xb7,0x11c)){const _0x59db1b=_0x3092a4['capabilities'],_0x316dd4=_0x59db1b?.[_0x107a9f(_0x57a6dc._0x596a3d,_0x57a6dc._0x5be831,0xb3,_0x57a6dc._0x523a01)];if(typeof _0x316dd4?.['max_context_window_tokens']===_0x107a9f(0x7f,_0x57a6dc._0x30db38,_0x57a6dc._0x433e27,-_0x57a6dc._0x3ed774))return{'contextWindow':_0x316dd4[_0x107a9f(0x19,-_0x57a6dc._0x1f6a07,0x2a,-_0x57a6dc._0xbe4dcc)],...typeof _0x316dd4['max_output_tokens']===_0x157fed(_0x57a6dc._0x3ba318,_0x57a6dc._0x2db54d,_0x57a6dc._0x2bd2a6,0x5e4)?{'maxOutput':_0x316dd4[_0x157fed(_0x57a6dc._0x50269f,_0x57a6dc._0x342bc2,0x6bb,0x5fc)]}:{}};}function _0x157fed(_0x31b666,_0x39c5bb,_0x5c585c,_0x18a22e){return _0x22e674(_0x31b666-0xd9,_0x39c5bb-0xb7,_0x39c5bb,_0x31b666-0x1b1);}const _0x4e1c4d=_0x3092a4[_0x107a9f(-0x117,-_0x57a6dc._0x1df62e,_0x57a6dc._0x528fac,0x47)],_0x3ed8dd=_0x3092a4[_0x157fed(_0x57a6dc._0x4b82d5,0x4ee,_0x57a6dc._0x1a582e,0x446)];function _0x107a9f(_0x412956,_0x177c1c,_0x42841b,_0x5e41c0){return _0x532739(_0x5e41c0,_0x177c1c-0x131,_0x42841b-_0x457b10._0x26113c,_0x5e41c0-0x85);}const _0x294a4c=typeof _0x3092a4[_0x157fed(_0x57a6dc._0xee1717,_0x57a6dc._0x38fb82,0x523,_0x57a6dc._0x51897d)]==='number'?_0x3092a4[_0x107a9f(-_0x57a6dc._0x3bffe6,-0x15,-0x30,0x4c)]:typeof _0x4e1c4d?.['context_length']===_0x157fed(_0x57a6dc._0x3ba318,0x650,0x5b4,_0x57a6dc._0xd26c87)?_0x4e1c4d[_0x107a9f(-_0x57a6dc._0x52db64,-0x15,-0xd1,-0x57)]:typeof _0x3ed8dd?.[_0x107a9f(_0x57a6dc._0x39e847,-_0x57a6dc._0x189701,-_0x57a6dc._0x4971f5,-_0x57a6dc._0x5c57c8)]==='number'?_0x3ed8dd[_0x157fed(0x56d,_0x57a6dc._0x3cd0f6,0x5b2,0x49e)]:void 0x0;if(_0x294a4c===void 0x0)return void 0x0;return{'contextWindow':_0x294a4c,...typeof _0x4e1c4d?.[_0x157fed(0x5c8,_0x57a6dc._0x5785e1,0x655,0x55e)]===_0x107a9f(-0x63,0x53,_0x57a6dc._0x3ac34c,0x74)?{'maxOutput':_0x4e1c4d[_0x157fed(_0x57a6dc._0x2cfbd8,_0x57a6dc._0x5c724d,0x5a3,0x514)]}:typeof _0x3ed8dd?.[_0x157fed(_0x57a6dc._0x3f973d,0x4f3,0x501,_0x57a6dc._0x552fed)]===_0x107a9f(_0x57a6dc._0x30b6d0,_0x57a6dc._0x30db38,0x121,0x2f)?{'maxOutput':_0x3ed8dd['max_completion_tokens']}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultMaxTokens,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
1
+ (function(_0x57b03f,_0x597a0b){const _0x41c80c={_0x40d2b9:0xbd,_0xd1530b:0x47,_0x4f88f3:0xb,_0x3232f1:0x59,_0x5a706d:0x124,_0x1de771:0x1a,_0x287d49:0x8e,_0x13516d:0x2d,_0x5538b8:0xd6,_0x402be9:0x2,_0x31bb04:0x91,_0x9e553:0x10f,_0x1c2484:0x134,_0x4cef3a:0x73,_0x578a44:0x12c,_0x2bb39d:0x5c,_0x3a3ec3:0x25,_0x2ce5d8:0xb8,_0x2fc16e:0x33},_0x2349c9={_0x548585:0x2a4};function _0x411eee(_0x6339b1,_0x165bc5,_0x2f91c3,_0x2e55b1){return _0x4abb(_0x165bc5- -_0x2349c9._0x548585,_0x2f91c3);}const _0xe97947=_0x57b03f();function _0x59c1ab(_0x1bc542,_0x268d1e,_0x211e9e,_0x31ee80){return _0x4abb(_0x268d1e- -0x27a,_0x1bc542);}while(!![]){try{const _0x1117cc=parseInt(_0x59c1ab(-0x45,-_0x41c80c._0x40d2b9,-_0x41c80c._0xd1530b,-0x1a7))/0x1+parseInt(_0x59c1ab(-_0x41c80c._0x4f88f3,_0x41c80c._0x3232f1,-0x6c,_0x41c80c._0x5a706d))/0x2*(-parseInt(_0x59c1ab(-0x23,-0x4f,-_0x41c80c._0x1de771,-0x87))/0x3)+parseInt(_0x411eee(-_0x41c80c._0x287d49,-0x1f,-_0x41c80c._0x13516d,0x7e))/0x4*(parseInt(_0x411eee(-_0x41c80c._0x5538b8,-0x9f,0x2f,-_0x41c80c._0x402be9))/0x5)+parseInt(_0x59c1ab(-0x4f,0x24,-_0x41c80c._0x31bb04,0xb5))/0x6+-parseInt(_0x411eee(-_0x41c80c._0x9e553,-0x10a,-0x156,-0x59))/0x7+-parseInt(_0x59c1ab(-_0x41c80c._0x1c2484,-_0x41c80c._0x4cef3a,-_0x41c80c._0x578a44,_0x41c80c._0x2bb39d))/0x8*(parseInt(_0x59c1ab(-0x163,-0xac,-0x11,_0x41c80c._0x3a3ec3))/0x9)+-parseInt(_0x59c1ab(_0x41c80c._0x2ce5d8,-_0x41c80c._0x2fc16e,-0x11d,-0xbb))/0xa;if(_0x1117cc===_0x597a0b)break;else _0xe97947['push'](_0xe97947['shift']());}catch(_0x1cdcac){_0xe97947['push'](_0xe97947['shift']());}}}(_0x4483,0x9b8f1));import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-QDOE7NWO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x4881e8){const _0x187302={_0x76c507:0x2c3,_0x2ecd46:0x2ad,_0x5063c1:0x2af},_0x49d0d9={_0x13b133:0x126};function _0x129f29(_0x39405f,_0x48fae6,_0x457e73,_0x2c5ee9){return _0x4abb(_0x457e73-_0x49d0d9._0x13b133,_0x2c5ee9);}super(_0x4881e8),this['name']=_0x129f29(_0x187302._0x76c507,_0x187302._0x2ecd46,_0x187302._0x5063c1,0x2bf);}},ProviderStreamEventError=class extends Error{['code'];[_0x11bd88(0x4ad,0x3eb,0x54d,0x566)];[_0xd1496a(0x4c3,0x3e2,0x505,0x469)];constructor(_0x4eb608,_0x3f5b9b={}){const _0xcdae48={_0x31b7fc:0x20f,_0x2da387:0x147,_0xf618bf:0x1cc,_0x526e49:0x203,_0x1d1996:0x13e,_0x2e55e6:0x191,_0x5744d7:0xb8,_0x18ca5c:0xdf,_0x4ad4e9:0x1b5,_0x1771e5:0x142,_0x42d792:0xdf},_0x3ad47f={_0x147f31:0x3},_0x5790e5={_0x56aa11:0x3e4,_0x58d31f:0x17};function _0x2c6451(_0x5d7038,_0x55362f,_0x118ee3,_0x3d8064){return _0xd1496a(_0x3d8064- -_0x5790e5._0x56aa11,_0x55362f-_0x5790e5._0x58d31f,_0x5d7038,_0x3d8064-0xa8);}function _0x32b7d6(_0x17662b,_0x5b4aa9,_0x240a07,_0x53fd10){return _0xd1496a(_0x53fd10- -0x431,_0x5b4aa9-0x188,_0x5b4aa9,_0x53fd10-_0x3ad47f._0x147f31);}super(_0x4eb608),this['name']='ProviderStreamEventError',this[_0x32b7d6(0x176,_0xcdae48._0x31b7fc,0x288,0x1d4)]=_0x3f5b9b['code'],this[_0x2c6451(_0xcdae48._0x2da387,_0xcdae48._0xf618bf,_0xcdae48._0x526e49,_0xcdae48._0x1d1996)]=_0x3f5b9b[_0x32b7d6(0x136,0xcd,0x12,0xf1)]??!![],this[_0x2c6451(0xe1,_0xcdae48._0x2e55e6,_0xcdae48._0x5744d7,_0xcdae48._0x18ca5c)]=_0x3f5b9b[_0x2c6451(_0xcdae48._0x4ad4e9,0x55,_0xcdae48._0x1771e5,_0xcdae48._0x42d792)];}};function isRetryableProviderStreamEventError(_0x5b8384){function _0x4bdecc(_0x4832a0,_0x399868,_0x43b917,_0x1af0c8){return _0x11bd88(_0x43b917-0x13b,_0x4832a0,_0x43b917-0x68,_0x1af0c8-0x48);}return _0x5b8384 instanceof ProviderStreamEventError&&_0x5b8384[_0x4bdecc(0x557,0x530,0x5e8,0x66c)];}var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE='anthropic-messages-stream';function parseToolInput(_0x5a84a0){const _0x2c5b37={_0x490846:0x498};function _0x14d5dd(_0x3551d5,_0x404044,_0x1a2145,_0x4b8047){return _0x11bd88(_0x3551d5-0x4c,_0x404044,_0x1a2145-0x78,_0x4b8047-0x163);}try{return JSON[_0x14d5dd(0x43e,0x3d3,0x4e7,_0x2c5b37._0x490846)](_0x5a84a0);}catch{return _0x5a84a0;}}function resolveReasoningVisibility(_0x39b5ba){const _0x48bb78={_0x1c93b3:0x26e},_0x10d019={_0x64fc14:0x169,_0x328d40:0x1e};function _0x2b75a7(_0x89c03d,_0xb9f0aa,_0xb36eb4,_0x4904c8){return _0x11bd88(_0xb36eb4- -0x251,_0xb9f0aa,_0xb36eb4-_0x10d019._0x64fc14,_0x4904c8-_0x10d019._0x328d40);}return _0x39b5ba['reasoning']?.[_0x2b75a7(0x2dc,0x1a1,_0x48bb78._0x1c93b3,0x1eb)]??'user-visible';}function isUserVisibleThinking(_0x46c8d7){const _0x129746={_0x33400e:0xeb,_0x5ee3a8:0x3b,_0x4dcd3d:0x247,_0x46a688:0x42a,_0x214036:0x42b,_0x4f57f2:0x363},_0x42a8a9={_0x38f36b:0x1c1,_0x5dc43d:0x117,_0x296c30:0x1c3},_0x15741c={_0xfd585f:0xf2},_0x4efdd3=resolveAnthropicThinkingConfig(_0x46c8d7[_0x193714(-0xf0,-0x18c,-0x109,-0x135)]);function _0x193714(_0x1ed941,_0x3ce6b0,_0xb18cca,_0x3a8992){return _0xd1496a(_0xb18cca- -0x560,_0x3ce6b0-0x143,_0x1ed941,_0x3a8992-_0x15741c._0xfd585f);}function _0x48687e(_0x530103,_0x1b7a28,_0x589a74,_0x39f2de){return _0xd1496a(_0x1b7a28- -_0x42a8a9._0x38f36b,_0x1b7a28-_0x42a8a9._0x5dc43d,_0x39f2de,_0x39f2de-_0x42a8a9._0x296c30);}return _0x4efdd3!==void 0x0&&_0x4efdd3[_0x193714(-_0x129746._0x33400e,_0x129746._0x5ee3a8,-0x13,-0x4e)]!==_0x48687e(_0x129746._0x4dcd3d,0x323,0x3d5,0x2be)&&resolveReasoningVisibility(_0x46c8d7)===_0x48687e(_0x129746._0x46a688,0x3e3,_0x129746._0x214036,_0x129746._0x4f57f2);}function createAnthropicThinkingBody(_0xb53e12){const _0x28fdd8={_0x5c09d5:0x295,_0x449284:0x20b,_0x572c47:0x1c9,_0x1bd990:0x8a,_0x470479:0xce,_0xd3c144:0x11,_0x38b272:0x208,_0x2bc9e9:0x173,_0x50f98f:0x18a,_0x4c4d97:0x86,_0x477e8f:0x33,_0x12c677:0xf6,_0xcf529a:0x6c,_0x196126:0x174,_0x16caf1:0x1cd,_0x192081:0x78,_0xf92769:0x5d,_0xa644c2:0x1e3,_0x4212f2:0x198,_0x5bccb8:0x157,_0x145c0b:0x55,_0x241230:0x59,_0x1acdfa:0x117,_0x3802dc:0x3a,_0x4fdd06:0xdf,_0x72d856:0xb0,_0x200fab:0x1b7,_0x4b3a62:0x137},_0x1833dc={_0x525a57:0x5,_0xc8d6d3:0xe7},_0x15ad1a={_0x161b1d:0x530};function _0x2a9bb7(_0x24e9b2,_0x12652f,_0x1c4d10,_0x5b091d){return _0x11bd88(_0x5b091d- -_0x15ad1a._0x161b1d,_0x1c4d10,_0x1c4d10-0x114,_0x5b091d-0x67);}const _0x4496c2=resolveAnthropicThinkingConfig(_0xb53e12[_0x4adb44(-_0x28fdd8._0x5c09d5,-_0x28fdd8._0x449284,-_0x28fdd8._0x572c47,-0x1fa)]);if(!_0x4496c2||_0x4496c2[_0x2a9bb7(-_0x28fdd8._0x1bd990,-_0x28fdd8._0x470479,-_0x28fdd8._0xd3c144,-0x58)]===_0x4adb44(-_0x28fdd8._0x38b272,-_0x28fdd8._0x2bc9e9,-_0x28fdd8._0x50f98f,-0x140))return{};const _0x9df3bd=_0x4496c2['display']??(isUserVisibleThinking(_0xb53e12)?_0x2a9bb7(-0x11b,0x3,_0x28fdd8._0x4c4d97,-_0x28fdd8._0x477e8f):_0x2a9bb7(-0x1a,-0x35,-_0x28fdd8._0x12c677,-_0x28fdd8._0xcf529a));function _0x4adb44(_0x554b8a,_0x33295d,_0x495e57,_0x7bedc8){return _0xd1496a(_0x554b8a- -0x6ec,_0x33295d-_0x1833dc._0x525a57,_0x7bedc8,_0x7bedc8-_0x1833dc._0xc8d6d3);}const _0x50bb00=_0x4496c2[_0x4adb44(-0x21b,-0x1ec,-_0x28fdd8._0x196126,-_0x28fdd8._0x16caf1)]?{'anthropic-beta':'interleaved-thinking-2025-05-14'}:void 0x0;if(_0x4496c2[_0x2a9bb7(-0xdc,_0x28fdd8._0x192081,-_0x28fdd8._0xf92769,-0x58)]===_0x4adb44(-0x1c4,-_0x28fdd8._0xa644c2,-_0x28fdd8._0x4212f2,-_0x28fdd8._0x5bccb8))return{..._0x50bb00?{'headers':_0x50bb00}:{},'thinking':{'type':_0x2a9bb7(-_0x28fdd8._0x145c0b,-_0x28fdd8._0x241230,-_0x28fdd8._0x1acdfa,-0x7d),'budget_tokens':_0x4496c2[_0x2a9bb7(_0x28fdd8._0x3802dc,-_0x28fdd8._0x4fdd06,-0xa,-0x72)],'display':_0x9df3bd}};return{..._0x50bb00?{'headers':_0x50bb00}:{},'thinking':{'type':'adaptive',..._0x4496c2[_0x2a9bb7(-0xf4,-_0x28fdd8._0x72d856,-_0x28fdd8._0x200fab,-_0x28fdd8._0x4b3a62)]?{'effort':_0x4496c2['effort']}:{},'display':_0x9df3bd}};}function toAnthropicRequestContent(_0x26ecf5){const _0x5406ec={_0xc280e9:0x75,_0x5022fc:0xe1,_0x405ed4:0x5e,_0x45df2e:0x7c,_0x304b6f:0x101,_0x44c29b:0x1f,_0x1d0c56:0x20e,_0x241a17:0x4e,_0x4cf4de:0x58,_0x40c934:0xef,_0x568492:0x123,_0x293934:0x109,_0x120699:0x3d,_0x3a9fa3:0xb9,_0x34004e:0xc9,_0x1b62ad:0x83,_0xecb0e9:0x135,_0x596847:0x83,_0x40290b:0x3f,_0x552263:0x13e,_0x167d26:0x1c9,_0xcecbd9:0x17,_0x25e2c6:0xac,_0x598b43:0x5d,_0x2acb60:0xd7,_0x387f7d:0x2b,_0xf7f1db:0xc7,_0x2aaa5d:0xf8,_0x5e1b13:0x137,_0x5f1da7:0x175},_0x26d03e={_0xdd57ab:0x515},_0x264937={_0x5dd1e9:0x16d};function _0x17088d(_0x352990,_0x475e0,_0x4880b2,_0x5e8a9c){return _0xd1496a(_0x352990- -0x63e,_0x475e0-0x159,_0x475e0,_0x5e8a9c-_0x264937._0x5dd1e9);}if(_0x26ecf5[_0x17088d(-_0x5406ec._0xc280e9,-_0x5406ec._0x5022fc,-0x103,-_0x5406ec._0x405ed4)]===_0x17088d(-_0x5406ec._0x45df2e,-_0x5406ec._0x304b6f,-0x123,-_0x5406ec._0x44c29b)&&_0x26ecf5['providerState']?.['anthropicAssistantContent'])return structuredClone(_0x26ecf5[_0x27a5be(-0x131,-_0x5406ec._0x1d0c56,-_0x5406ec._0x241a17,-0xb4)][_0x27a5be(-_0x5406ec._0x4cf4de,-0xdc,0x92,-0xfa)]);const _0x4faac1=[];function _0x27a5be(_0x47ff0a,_0x451f9d,_0x252674,_0x248900){return _0x11bd88(_0x47ff0a- -_0x26d03e._0xdd57ab,_0x252674,_0x252674-0x13,_0x248900-0x11);}for(const _0x40157c of normalizeContent(_0x26ecf5[_0x27a5be(-_0x5406ec._0x40c934,-0x13e,-_0x5406ec._0x568492,-_0x5406ec._0x293934)])){if(_0x40157c[_0x17088d(-0xf1,-0xe4,-0x110,-0x1ac)]===_0x27a5be(-0x117,-0x1c2,-0x119,-0x155))continue;if(_0x40157c[_0x27a5be(-_0x5406ec._0x120699,0x4c,-_0x5406ec._0x3a9fa3,-_0x5406ec._0x34004e)]==='anthropic_thinking'){_0x4faac1[_0x27a5be(-_0x5406ec._0x1b62ad,-_0x5406ec._0xecb0e9,-0x7f,-_0x5406ec._0x596847)]({'type':_0x27a5be(-0x8a,-0x144,-0x104,_0x5406ec._0x40290b),'thinking':_0x40157c[_0x17088d(-_0x5406ec._0x552263,-_0x5406ec._0x167d26,-0x1e6,-0x84)],'signature':_0x40157c[_0x17088d(-0xbd,-_0x5406ec._0xcecbd9,-0x15c,-_0x5406ec._0x25e2c6)]});continue;}if(_0x40157c[_0x27a5be(-_0x5406ec._0x120699,-0x1d,-_0x5406ec._0x598b43,-_0x5406ec._0x2acb60)]===_0x17088d(-0x93,_0x5406ec._0x387f7d,-0xf4,-0x25)){_0x4faac1['push']({'type':_0x17088d(-_0x5406ec._0xf7f1db,-_0x5406ec._0x2aaa5d,-0x91,-0x14b),'data':_0x40157c['data']});continue;}_0x4faac1[_0x17088d(-_0x5406ec._0x5e1b13,-0xea,-_0x5406ec._0x5f1da7,-0xff)](structuredClone(_0x40157c));}return _0x4faac1;}function createAnthropicRequest(_0xf266ec,_0x2947b2){const _0x1e6098={_0x2f22fd:0x211,_0x319340:0xcb,_0x4d97c1:0x1b3,_0x2ed6af:0x2b,_0x25de46:0x1d5,_0x8426ce:0x26e,_0x5b462c:0x147,_0xbc816c:0x133,_0x1491fe:0x2a3,_0x443df9:0x1a7,_0x15d7f0:0x234,_0x221c7e:0x212,_0xde4829:0x247,_0x46fada:0x165,_0x3fa25b:0x14d,_0x3207ec:0x1d9,_0x2dda8b:0x245,_0x4eaa66:0xda,_0x310c9e:0x86},_0x2cc130={_0x4548a8:0x5b5,_0x59a135:0x17b,_0x39dc56:0x1d3};function _0x561160(_0x1d107f,_0x2ba1de,_0x3d181e,_0x1501d5){return _0xd1496a(_0x1501d5- -0x336,_0x2ba1de-0x141,_0x2ba1de,_0x1501d5-0x18c);}function _0x17e797(_0x15862f,_0x14f7af,_0x36afb7,_0x48ec73){return _0x11bd88(_0x14f7af- -_0x2cc130._0x4548a8,_0x36afb7,_0x36afb7-_0x2cc130._0x59a135,_0x48ec73-_0x2cc130._0x39dc56);}const _0x54562c=toProviderModelRequest(_0xf266ec),_0x5decc6=createAnthropicThinkingBody(_0xf266ec);return{'accept':_0x2947b2?_0x561160(_0x1e6098._0x2f22fd,_0x1e6098._0x319340,0x15b,_0x1e6098._0x4d97c1):_0x17e797(-_0x1e6098._0x2ed6af,-0x9d,-0x137,-0xc3),'body':{..._0x54562c,'messages':_0xf266ec[_0x17e797(-0x291,-_0x1e6098._0x25de46,-0x1de,-_0x1e6098._0x8426ce)][_0x561160(_0x1e6098._0x5b462c,_0x1e6098._0xbc816c,_0x1e6098._0x1491fe,0x1c1)](_0x29480d=>{return{'role':_0x29480d['role'],'content':toAnthropicRequestContent(_0x29480d)};}),..._0x5decc6['thinking']?{'thinking':_0x5decc6[_0x17e797(-_0x1e6098._0x443df9,-0x12a,-0x1b5,-0x120)]}:{},..._0x2947b2?{'stream':!![]}:{},..._0xf266ec[_0x561160(0x171,_0x1e6098._0x15d7f0,_0x1e6098._0x221c7e,0x177)]?{'output_config':{'format':{'type':_0x17e797(-0x22a,-0x17f,-0x1e9,-0x195),'schema':_0xf266ec[_0x17e797(-_0x1e6098._0xde4829,-0x17d,-0xdd,-_0x1e6098._0x46fada)][_0x17e797(-_0x1e6098._0x3fa25b,-0x137,-0x1af,-0xc2)]}}}:{}},..._0x5decc6['headers']?{'headers':_0x5decc6[_0x17e797(-0x297,-_0x1e6098._0x3207ec,-0x1da,-_0x1e6098._0x2dda8b)]}:{},'path':_0x17e797(-0x74,-0x14e,-_0x1e6098._0x4eaa66,-_0x1e6098._0x310c9e)};}function parseAnthropicResponse(_0x3be02a,_0x888b99){const _0x130e74={_0x123bf5:0x12a,_0x30f967:0x11a,_0x4b8ccc:0x151,_0xa31845:0xe4,_0xb8a3e8:0x5,_0x5c6a71:0xd9,_0x484524:0x12a,_0x8e8c7d:0x1e2,_0x59adea:0x23e,_0x22d23d:0x2af,_0x56c893:0x58,_0xed5830:0x134,_0x3715a8:0xd2,_0x9b607e:0xc7,_0x37e8fe:0x142,_0x2bc611:0xc6,_0xa516c9:0x27f,_0x2650ff:0x1a9,_0x44d35e:0x1d1,_0x4f95b8:0x186,_0xa738dc:0x1ad,_0x1c833a:0x17b,_0x4c40c3:0x1f7,_0x2cba7e:0x17d,_0x4ab212:0xde,_0x391538:0x20,_0x5d3590:0x27c,_0x53aa3b:0x1cc,_0x4616a7:0x1a6,_0x3f4e0c:0x221,_0x1420cf:0xab,_0xc104b1:0xaa,_0x102c17:0xbf,_0x593cdf:0x146,_0x452e05:0x61,_0x41539d:0xd6,_0x4e294f:0x228,_0x451562:0x68,_0x3292b8:0x14a,_0x3a90e8:0x172,_0x48e6d0:0x1af,_0x3f73b9:0x171,_0x821df4:0x1c4,_0x3f9d1e:0x131,_0x2114a7:0x4d,_0x5f01fc:0x26f,_0x3f0573:0x231,_0x413ee4:0x40,_0x56fe9e:0xf5,_0x15ee5f:0x16f,_0x20cb74:0x80,_0x54e2d2:0x13e,_0x52ac47:0x28e,_0x21e333:0x35e,_0x52f14b:0xb2,_0x5e6a97:0x187,_0x2dd0b6:0x1ca,_0x2577d9:0xe8,_0xcce17f:0x15,_0x2aebc5:0x22,_0x59c754:0x10b,_0x5a5ad6:0x18e,_0x5f2af3:0xe1,_0x34b83b:0xa3,_0x28ba09:0x157,_0x4e8852:0xf8,_0x22a7fe:0x116},_0xd65784={_0x310639:0x11a,_0x3d40e0:0x72},_0x45ac7c={_0x3a9694:0x3b9,_0x54ad38:0xc4};function _0x50b910(_0x1199dd,_0x2533a6,_0x202b5e,_0xb0d1fa){return _0x11bd88(_0x202b5e- -_0x45ac7c._0x3a9694,_0xb0d1fa,_0x202b5e-0x172,_0xb0d1fa-_0x45ac7c._0x54ad38);}const _0x536a32=[],_0x264e33=_0x3be02a[_0x14cd19(_0x130e74._0x123bf5,_0x130e74._0x30f967,0x100,0x1e6)]??[];function _0x14cd19(_0x5f64fa,_0x4d48bd,_0x121a52,_0x32e92f){return _0xd1496a(_0x4d48bd- -0x381,_0x4d48bd-_0xd65784._0x310639,_0x121a52,_0x32e92f-_0xd65784._0x3d40e0);}let _0x1ed711=![];for(const _0x55d52b of _0x264e33){if(_0x55d52b[_0x50b910(0x12f,_0x130e74._0x4b8ccc,0x11f,0x5d)]==='thinking'){_0x1ed711=!![];isUserVisibleThinking(_0x888b99)&&_0x536a32[_0x50b910(_0x130e74._0xa31845,_0x130e74._0xb8a3e8,_0x130e74._0x5c6a71,_0x130e74._0x484524)]({'type':_0x14cd19(_0x130e74._0x8e8c7d,_0x130e74._0x59adea,0x188,_0x130e74._0x22d23d),'thinking':_0x55d52b[_0x50b910(_0x130e74._0x56c893,_0x130e74._0xed5830,_0x130e74._0x3715a8,_0x130e74._0x9b607e)],'signature':_0x55d52b['signature']});continue;}if(_0x55d52b[_0x50b910(_0x130e74._0x37e8fe,_0x130e74._0x2bc611,0x11f,0x1fc)]===_0x14cd19(_0x130e74._0xa516c9,0x1f6,_0x130e74._0x2650ff,_0x130e74._0x44d35e)){_0x1ed711=!![];isUserVisibleThinking(_0x888b99)&&_0x536a32[_0x14cd19(0x1eb,_0x130e74._0x4f95b8,0xdb,_0x130e74._0xa738dc)]({'type':_0x50b910(_0x130e74._0x1c833a,_0x130e74._0x4c40c3,_0x130e74._0x2cba7e,0x188),'data':_0x55d52b[_0x50b910(-0xa1,_0x130e74._0x4ab212,_0x130e74._0x391538,-0x2)]});continue;}if(_0x55d52b[_0x14cd19(_0x130e74._0x5d3590,_0x130e74._0x53aa3b,_0x130e74._0x4616a7,_0x130e74._0x3f4e0c)]===_0x50b910(0x5e,-0xd,_0x130e74._0x1420cf,_0x130e74._0xc104b1)){_0x55d52b['text'][_0x50b910(_0x130e74._0x102c17,_0x130e74._0x593cdf,0x76,-_0x130e74._0x452e05)]>0x0&&_0x536a32['push'](structuredClone(_0x55d52b));continue;}_0x536a32['push'](structuredClone(_0x55d52b));}return{'id':_0x3be02a['id']??_0x14cd19(_0x130e74._0x41539d,0x17b,0x221,0x186)+Date[_0x14cd19(0x227,0x1dc,0x1d5,_0x130e74._0x4e294f)](),'content':_0x536a32,'stopReason':_0x536a32[_0x50b910(_0x130e74._0x451562,0x112,_0x130e74._0x3292b8,0x10f)](_0x13047d=>_0x13047d[_0x50b910(0x16f,0x40,0x11f,0x12f)]===_0x50b910(0xb3,-0x12,0xc4,0xac))?'tool_use':_0x3be02a[_0x50b910(0x167,0xf4,_0x130e74._0x3a90e8,_0x130e74._0x48e6d0)]===_0x14cd19(0x15b,_0x130e74._0x3f73b9,_0x130e74._0x821df4,_0x130e74._0x3f9d1e)?_0x50b910(_0x130e74._0x2114a7,0x47,0xc4,0x9f):_0x14cd19(0x1ff,_0x130e74._0x5f01fc,0x2b5,_0x130e74._0x3f0573),'usage':{'inputTokens':(_0x3be02a['usage']?.[_0x14cd19(0x161,0x181,0xa4,0x113)]??0x0)+(_0x3be02a[_0x14cd19(0x194,0x279,0x314,0x217)]?.[_0x14cd19(_0x130e74._0x413ee4,0xcf,_0x130e74._0x56fe9e,_0x130e74._0x15ee5f)]??0x0)+(_0x3be02a[_0x50b910(0x124,0x1ef,_0x130e74._0x53aa3b,0x239)]?.[_0x14cd19(_0x130e74._0x20cb74,0xf5,_0x130e74._0x54e2d2,0x92)]??0x0),'outputTokens':_0x3be02a[_0x14cd19(_0x130e74._0x52ac47,0x279,_0x130e74._0x21e333,0x2dd)]?.[_0x50b910(0xe2,_0x130e74._0x52f14b,_0x130e74._0x5e6a97,0x121)]??0x0,..._0x3be02a[_0x50b910(_0x130e74._0x2dd0b6,0x29b,0x1cc,_0x130e74._0x2577d9)]?.[_0x50b910(0x54,-_0x130e74._0xcce17f,_0x130e74._0x2aebc5,_0x130e74._0x59c754)]?{'cacheReadInputTokens':_0x3be02a[_0x50b910(_0x130e74._0x5a5ad6,0x269,0x1cc,0x1a2)][_0x50b910(_0x130e74._0x5f2af3,-0x40,0x22,-0x45)]}:{},..._0x3be02a['usage']?.[_0x14cd19(_0x130e74._0x34b83b,0xf5,0xb7,0xd6)]?{'cacheCreationInputTokens':_0x3be02a['usage'][_0x14cd19(_0x130e74._0x28ba09,_0x130e74._0x56fe9e,_0x130e74._0x4e8852,_0x130e74._0x22a7fe)]}:{}},..._0x1ed711?{'providerState':{'anthropicAssistantContent':structuredClone(_0x264e33)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();[_0xd1496a(0x45a,0x502,0x39b,0x542)]=0x0;[_0x11bd88(0x592,0x4bf,0x4bf,0x527)]=0x0;[_0xd1496a(0x484,0x466,0x44a,0x4ac)]=0x0;[_0x11bd88(0x3da,0x426,0x42d,0x3b5)]=_0x11bd88(0x487,0x51e,0x511,0x4d9)+Date[_0xd1496a(0x55d,0x546,0x4d8,0x5e5)]();[_0xd1496a(0x43b,0x357,0x49d,0x39f)]=0x0;[_0x11bd88(0x552,0x597,0x50b,0x51f)];[_0x11bd88(0x455,0x514,0x3f2,0x48d)]='end_turn';constructor(_0x36b105){const _0x139344={_0x597e09:0x50e,_0x31f170:0x51a,_0x24a7a9:0x4e0,_0x1efd13:0x5cd},_0x3c1d11={_0x33c029:0xb9};function _0x11b007(_0x32b12c,_0x38ff8f,_0xfbde53,_0x381401){return _0xd1496a(_0x32b12c- -_0x3c1d11._0x33c029,_0x38ff8f-0x82,_0x381401,_0x381401-0x69);}this[_0x11b007(_0x139344._0x597e09,_0x139344._0x31f170,_0x139344._0x24a7a9,_0x139344._0x1efd13)]=_0x36b105;}[_0x11bd88(0x3c9,0x39e,0x42e,0x347)](_0x2e112e){const _0x3c7be1={_0x21fad8:0x43a,_0x45aacc:0x224,_0x4c72f6:0x32b,_0x341f1a:0x3f8,_0xcb168e:0x439,_0x170f8e:0x484,_0x1f1061:0x446,_0x150d72:0x430,_0x25d932:0x1f6,_0x4b4836:0x206,_0x599da2:0x49a,_0x2ad443:0x402,_0x737ed1:0x274,_0x49528a:0x329,_0x321d60:0x3ef,_0x9afbb6:0x34c,_0x50e5b3:0x2c8,_0x34f055:0x18e,_0x1b453e:0x166,_0x521677:0x389,_0x209797:0x2d5,_0x2607bb:0x1b5,_0x390b7f:0x20e,_0x31e3e4:0x3e9,_0x54672c:0x396,_0x74d9ca:0x2ab,_0x527c2d:0x234,_0x220203:0x17b,_0x23befb:0x4c8,_0xeeede7:0x3f0,_0x1cc1e4:0x410,_0x176b97:0x428,_0x33c0c8:0x3bd,_0x172cec:0x40c,_0x49dc3d:0x2af,_0x22fe49:0x275,_0x3888fc:0x386,_0x3b04cf:0x523,_0x1c9ba2:0x490,_0x2bff07:0x1bc,_0x27cfac:0x493,_0x4d232e:0x427,_0x1751ea:0x488,_0x46f73c:0x270,_0x23e06e:0x225,_0x47439f:0x248,_0x3acfb2:0x327,_0x258bb9:0x5ad,_0x3add13:0x542,_0x5057a2:0x4a8,_0x27d5d4:0x2c5,_0x103346:0x451,_0x422c26:0x4ac,_0x421f6b:0x4e3,_0x10d961:0x55e,_0x368fb0:0x496,_0x11e031:0x57c,_0x33b52f:0x265,_0x3e4a78:0x33b,_0x58741c:0x2c1,_0x1074b0:0x3c5,_0x1ea02b:0x249,_0x12f4cc:0x4a1,_0x55f66a:0x3e0,_0x1708a2:0x2bb,_0x178975:0x4e7,_0x39c845:0x529,_0x3d09f6:0x403,_0x1398af:0x3a1,_0x5a4e14:0x41d,_0x4eb7dc:0x46f,_0x927be7:0x320,_0x6c516b:0x28f,_0x4cd1cf:0x1eb,_0x3b548c:0x585,_0x2cf2a8:0x4be,_0x3b3bd9:0x256,_0x58bd35:0x317,_0x3de46e:0x2e9,_0x4bccb0:0x15e,_0x3f7528:0x216,_0x52983c:0x236,_0x3a53d8:0x1dd,_0x327dd4:0x208,_0x99609c:0x4d6,_0x181163:0x59f,_0x512e3e:0x287,_0x29891a:0x481,_0x19dc74:0x1ca,_0x5d79dd:0x2fc,_0x3f20a0:0x34b,_0x13c6e5:0x4ca,_0x187503:0x620,_0x59d0f0:0x58d,_0x1f4e3b:0x289,_0x21b7e8:0x2a0,_0x20eeb5:0x2f9,_0x220981:0x27e,_0x707a30:0x395,_0x340d21:0x4ab,_0x1dfb31:0x2c0,_0x5e0a13:0x36e,_0x4012a0:0x388,_0xa8f4f2:0x20f,_0xc3fc69:0x268,_0xd90394:0x342,_0x4b9e8f:0x540,_0x2db899:0x40a,_0x36be89:0x5a8,_0x4e0258:0x5e3,_0x509847:0x1fc,_0x2e76d1:0x2dc,_0x4c1c33:0x29b,_0x394769:0x4bf,_0x3e54c2:0x281,_0x1e3583:0x5a0,_0xac92d8:0x56a,_0x3025c8:0x4e8,_0xb74c12:0x401,_0x38f25b:0x2ab,_0x3c2699:0x2bd,_0x1bf376:0x2d6,_0x24efc0:0x367,_0x7b891e:0x50b,_0x178463:0x5ae,_0x253d0a:0x5b1,_0xc137d3:0x375,_0x1f372a:0x466,_0x4f1b38:0x4c7,_0x3d38fd:0x496,_0x37c741:0x3cd,_0x23ea6f:0x3a9,_0xbd6bbd:0x4e9,_0x4de98d:0x261,_0x312e18:0x2c9,_0x42da11:0x304,_0x3e5373:0x24f,_0xa9c4d1:0x28f,_0x2c2b4b:0x1fe,_0x441ef3:0x5c6,_0x12c5f5:0x58f,_0x20198d:0x55d,_0x4ea8c1:0x354,_0x176a7d:0x3e1,_0x3eef8e:0x2ee,_0x1fa4d3:0x279,_0x25b066:0x46d,_0x34a517:0x551,_0x29c80c:0x423,_0x473d05:0x517,_0x82be74:0x171,_0x28feb6:0x233,_0x56e83d:0x3fa,_0x5ba124:0x32d,_0x594b60:0x328,_0x18140f:0x382,_0x19a90d:0x57b,_0xe90a55:0x4c1,_0x52441e:0x45f,_0x41d00b:0x3a4,_0x17f609:0x2e7,_0x5b44c1:0x2ed,_0x5544a4:0x26a,_0x52b7ef:0x396,_0x18a8a3:0x34d,_0x2bf4f0:0x265,_0x16d4cf:0x553,_0x5c46d1:0x65a,_0x3bb693:0x59d,_0x584158:0x5cc,_0x5ba2cf:0x1bf,_0x5f2597:0x1e9,_0x484b73:0x125,_0x365185:0x442,_0x2020c2:0x249,_0xbcd004:0x1d7,_0x5a4124:0x5a6,_0x2b0e71:0x50b,_0x28bfd0:0x536,_0x4b75dd:0x3a0,_0x42f4b2:0x437,_0x4e6d3c:0x3f4,_0x48d8f5:0x3d7,_0x1946b4:0x405,_0x9a3c7d:0x397,_0x66162e:0x329,_0x3e9b35:0x28a,_0x1a7cf7:0x2a2,_0x1c5025:0x2a2,_0x4a028c:0x546,_0x31c427:0x43c},_0xfb7cc2={_0x55a4d5:0xb,_0x45bfca:0xb4},_0x1df8b2={_0x594ba3:0x271},_0x361c6a=_0x2e112e[_0x2f28d6(0x4ce,_0x3c7be1._0x21fad8,0x400,0x3da)]('\x0a'),_0x20ae25=_0x361c6a['find'](_0x3b4932=>_0x3b4932[_0x2f28d6(0x487,0x4a8,0x432,0x3ef)](_0x2a5f8e(0x308,0x34f,0x2ea,0x34a)))?.[_0x2a5f8e(0x219,_0x3c7be1._0x45aacc,0x1b0,0x15d)](0x6)['trim'](),_0x4b83f3=_0x361c6a[_0x2a5f8e(0x403,_0x3c7be1._0x4c72f6,0x3d2,0x268)](_0x3ebb71=>_0x3ebb71[_0x2f28d6(0x3ac,0x4a9,0x432,0x400)](_0x2f28d6(0x516,0x5e2,0x565,0x61b)))[_0x2f28d6(0x4ed,_0x3c7be1._0x341f1a,0x48d,0x3c7)](_0x5332ae=>_0x5332ae[_0x2a5f8e(0x2b8,0x224,0x26c,0x2e7)](0x5)[_0x2a5f8e(0x3d8,0x354,0x37e,0x32c)]())['join']('\x0a')[_0x2f28d6(0x44d,0x4b9,_0x3c7be1._0xcb168e,0x355)]();function _0x2a5f8e(_0x38c3b2,_0xc068ee,_0xe71a36,_0x313873){return _0xd1496a(_0xc068ee- -_0x1df8b2._0x594ba3,_0xc068ee-0xaf,_0xe71a36,_0x313873-0x1cb);}if(_0x4b83f3['length']===0x0||_0x4b83f3===_0x2a5f8e(_0x3c7be1._0x170f8e,0x39d,_0x3c7be1._0x1f1061,_0x3c7be1._0x150d72))return[];const _0xa983ce=JSON[_0x2a5f8e(0x20d,_0x3c7be1._0x25d932,_0x3c7be1._0x4b4836,0x236)](_0x4b83f3);switch(_0x20ae25){case _0x2f28d6(_0x3c7be1._0x599da2,0x4ae,_0x3c7be1._0x2ad443,0x321):{const _0x122c50=_0xa983ce[_0x2a5f8e(_0x3c7be1._0x737ed1,_0x3c7be1._0x49528a,_0x3c7be1._0x321d60,_0x3c7be1._0x9afbb6)];this[_0x2a5f8e(_0x3c7be1._0x50e5b3,0x1de,_0x3c7be1._0x34f055,_0x3c7be1._0x1b453e)]=_0x122c50?.['id']??this['messageId'],this['inputTokens']=_0x122c50?.[_0x2a5f8e(0x40b,_0x3c7be1._0x521677,0x3d8,0x419)]?.[_0x2a5f8e(_0x3c7be1._0x209797,0x291,_0x3c7be1._0x2607bb,_0x3c7be1._0x390b7f)]??this[_0x2f28d6(0x424,0x3f6,0x41a,_0x3c7be1._0x31e3e4)],this[_0x2a5f8e(0x2c1,_0x3c7be1._0x54672c,0x441,_0x3c7be1._0x74d9ca)]=_0x122c50?.['usage']?.[_0x2a5f8e(_0x3c7be1._0x527c2d,0x1df,0x2b5,_0x3c7be1._0x220203)]??this[_0x2f28d6(_0x3c7be1._0x23befb,0x5d0,0x59d,0x683)],this[_0x2f28d6(0x3e3,0x3f9,_0x3c7be1._0xeeede7,_0x3c7be1._0x1cc1e4)]=_0x122c50?.[_0x2a5f8e(_0x3c7be1._0x176b97,_0x3c7be1._0x521677,0x31f,_0x3c7be1._0x33c0c8)]?.[_0x2f28d6(0x4b1,0x494,_0x3c7be1._0x172cec,0x4b7)]??this[_0x2a5f8e(_0x3c7be1._0x737ed1,0x1e9,_0x3c7be1._0x49dc3d,_0x3c7be1._0x22fe49)];break;}case'content_block_start':{const _0x34b6fe=typeof _0xa983ce['index']===_0x2a5f8e(0x454,_0x3c7be1._0x3888fc,0x338,0x3cb)?_0xa983ce[_0x2f28d6(0x536,_0x3c7be1._0x3b04cf,_0x3c7be1._0x1c9ba2,0x45d)]:0x0,_0xe142dc=_0xa983ce[_0x2a5f8e(0x2f1,0x29a,_0x3c7be1._0x2bff07,0x35e)];if(_0xe142dc?.['type']===_0x2f28d6(_0x3c7be1._0x27cfac,_0x3c7be1._0x4d232e,_0x3c7be1._0x1751ea,0x4ed)&&_0xe142dc['id']&&_0xe142dc[_0x2a5f8e(_0x3c7be1._0x46f73c,_0x3c7be1._0x23e06e,0x30e,0x229)])return this[_0x2a5f8e(_0x3c7be1._0x47439f,_0x3c7be1._0x3acfb2,0x3c6,0x368)][_0x2f28d6(0x4ca,_0x3c7be1._0x258bb9,_0x3c7be1._0x3add13,0x4e3)](_0x34b6fe,{'id':_0xe142dc['id'],'index':_0x34b6fe,'inputJson':JSON[_0x2a5f8e(0x293,0x2df,0x25e,0x285)](_0xe142dc['input']??{}),'kind':'tool_use','name':_0xe142dc[_0x2f28d6(_0x3c7be1._0x5057a2,0x4e8,0x42c,0x3d8)]}),[{'type':'tool_use_delta','id':_0xe142dc['id'],'index':_0x34b6fe,'name':_0xe142dc[_0x2a5f8e(0x237,0x225,_0x3c7be1._0x27d5d4,0x264)]}];if(_0xe142dc?.[_0x2f28d6(_0x3c7be1._0x103346,_0x3c7be1._0x422c26,_0x3c7be1._0x421f6b,_0x3c7be1._0x10d961)]===_0x2f28d6(0x3cc,0x51f,_0x3c7be1._0x368fb0,_0x3c7be1._0x11e031)){this[_0x2a5f8e(_0x3c7be1._0x33b52f,0x327,0x271,0x3c6)][_0x2a5f8e(0x392,_0x3c7be1._0x3e4a78,_0x3c7be1._0x58741c,_0x3c7be1._0x1074b0)](_0x34b6fe,{'index':_0x34b6fe,'kind':'thinking','signature':typeof _0xe142dc['signature']===_0x2a5f8e(_0x3c7be1._0x1ea02b,0x216,0x29b,0x29d)?_0xe142dc[_0x2f28d6(_0x3c7be1._0x12f4cc,0x566,0x517,0x568)]:'','thinking':typeof _0xe142dc['text']===_0x2f28d6(0x505,_0x3c7be1._0x55f66a,0x41d,0x387)?_0xe142dc[_0x2a5f8e(0x19d,0x268,0x1c1,_0x3c7be1._0x1708a2)]:typeof _0xe142dc[_0x2f28d6(0x4f1,_0x3c7be1._0x178975,_0x3c7be1._0x368fb0,_0x3c7be1._0x39c845)]===_0x2f28d6(_0x3c7be1._0x3d09f6,_0x3c7be1._0x1398af,_0x3c7be1._0x5a4e14,_0x3c7be1._0x4eb7dc)?String(_0xe142dc[_0x2a5f8e(_0x3c7be1._0x927be7,_0x3c7be1._0x6c516b,_0x3c7be1._0x4cd1cf,0x29a)]):''});break;}if(_0xe142dc?.[_0x2f28d6(_0x3c7be1._0x3b548c,_0x3c7be1._0x2cf2a8,0x4e3,0x5aa)]==='redacted_thinking'){this['blocks'][_0x2a5f8e(_0x3c7be1._0x3b3bd9,_0x3c7be1._0x3e4a78,_0x3c7be1._0x58bd35,_0x3c7be1._0x3de46e)](_0x34b6fe,{'index':_0x34b6fe,'kind':'redacted_thinking','data':typeof _0xe142dc['data']===_0x2a5f8e(_0x3c7be1._0x4bccb0,_0x3c7be1._0x3f7528,0x1c1,_0x3c7be1._0x52983c)?String(_0xe142dc[_0x2a5f8e(0x258,_0x3c7be1._0x3a53d8,_0x3c7be1._0x327dd4,0x18f)]):''});break;}this[_0x2f28d6(_0x3c7be1._0x99609c,_0x3c7be1._0x181163,0x52e,0x49b)][_0x2a5f8e(0x263,_0x3c7be1._0x3e4a78,_0x3c7be1._0x512e3e,0x304)](_0x34b6fe,{'index':_0x34b6fe,'kind':_0x2f28d6(_0x3c7be1._0x29891a,0x3c9,0x46f,0x48b),'text':_0xe142dc?.[_0x2a5f8e(0x2ea,0x268,0x321,_0x3c7be1._0x19dc74)]??''});break;}case _0x2a5f8e(0x39f,_0x3c7be1._0x5d79dd,_0x3c7be1._0x3f20a0,0x2b4):{const _0x36bd15=typeof _0xa983ce['index']===_0x2f28d6(_0x3c7be1._0x13c6e5,_0x3c7be1._0x187503,_0x3c7be1._0x59d0f0,0x64a)?_0xa983ce[_0x2a5f8e(0x2d8,_0x3c7be1._0x1f4e3b,_0x3c7be1._0x21b7e8,0x2f7)]:0x0,_0x4936cf=this['blocks'][_0x2a5f8e(0x1f8,0x21a,0x2c5,_0x3c7be1._0x20eeb5)](_0x36bd15),_0x3e1233=_0xa983ce[_0x2a5f8e(_0x3c7be1._0x220981,0x2f2,_0x3c7be1._0x707a30,0x292)];if(!_0x4936cf||!_0x3e1233?.['type'])break;if(_0x3e1233[_0x2f28d6(0x473,0x455,0x4e3,_0x3c7be1._0x340d21)]==='text_delta'&&_0x4936cf[_0x2a5f8e(_0x3c7be1._0x1dfb31,0x2b8,0x362,_0x3c7be1._0x5e0a13)]===_0x2f28d6(_0x3c7be1._0x4012a0,0x3d9,0x46f,0x3ab)&&typeof _0x3e1233[_0x2a5f8e(0x1f5,0x268,0x2dd,0x252)]==='string')return _0x4936cf[_0x2a5f8e(_0x3c7be1._0xa8f4f2,_0x3c7be1._0xc3fc69,_0x3c7be1._0xd90394,0x2a1)]+=_0x3e1233[_0x2f28d6(_0x3c7be1._0x4b9e8f,_0x3c7be1._0x2db899,0x46f,0x47c)],[{'type':_0x2f28d6(_0x3c7be1._0x36be89,0x604,_0x3c7be1._0x3b548c,_0x3c7be1._0x4e0258),'index':_0x36bd15,'text':_0x3e1233['text']}];if(_0x3e1233[_0x2a5f8e(_0x3c7be1._0x509847,_0x3c7be1._0x2e76d1,_0x3c7be1._0x4c1c33,0x24f)]==='input_json_delta'&&_0x4936cf[_0x2f28d6(0x476,0x3df,_0x3c7be1._0x394769,0x424)]===_0x2a5f8e(0x1da,_0x3c7be1._0x3e54c2,0x2c8,0x33c)&&typeof _0x3e1233[_0x2f28d6(0x50f,_0x3c7be1._0x1e3583,_0x3c7be1._0xac92d8,0x649)]===_0x2f28d6(0x3e0,_0x3c7be1._0x3025c8,_0x3c7be1._0x5a4e14,_0x3c7be1._0xb74c12))return _0x4936cf['inputJson']==='{}'&&(_0x4936cf[_0x2a5f8e(0x274,0x297,0x1cc,0x207)]=''),_0x4936cf['inputJson']+=_0x3e1233[_0x2a5f8e(_0x3c7be1._0x38f25b,0x363,0x2f7,0x2af)],[{'type':_0x2a5f8e(_0x3c7be1._0x3c2699,_0x3c7be1._0x1bf376,_0x3c7be1._0x24efc0,_0x3c7be1._0xd90394),'id':_0x4936cf['id'],'index':_0x36bd15,'inputDelta':_0x3e1233[_0x2f28d6(_0x3c7be1._0x10d961,0x48b,0x56a,0x632)]}];if(_0x3e1233[_0x2f28d6(_0x3c7be1._0x7b891e,_0x3c7be1._0x178463,0x4e3,_0x3c7be1._0x253d0a)]===_0x2a5f8e(0x3ec,_0x3c7be1._0xc137d3,0x377,0x355)&&_0x4936cf['kind']===_0x2f28d6(_0x3c7be1._0x1f372a,_0x3c7be1._0x4f1b38,_0x3c7be1._0x3d38fd,_0x3c7be1._0x37c741)){const _0x2a77dc=typeof _0x3e1233['thinking']===_0x2f28d6(_0x3c7be1._0x23ea6f,0x355,0x41d,_0x3c7be1._0xbd6bbd)?String(_0x3e1233[_0x2a5f8e(0x21c,0x28f,_0x3c7be1._0x4de98d,_0x3c7be1._0x312e18)]):'';if(_0x2a77dc[_0x2a5f8e(0x191,0x233,0x2ea,_0x3c7be1._0x42da11)]>0x0){_0x4936cf[_0x2a5f8e(_0x3c7be1._0x3e5373,_0x3c7be1._0xa9c4d1,_0x3c7be1._0x2c2b4b,0x271)]+=_0x2a77dc;if(isUserVisibleThinking(this[_0x2f28d6(_0x3c7be1._0x441ef3,_0x3c7be1._0x12c5f5,_0x3c7be1._0x20198d,0x5ce)]))return[{'type':_0x2a5f8e(_0x3c7be1._0x4ea8c1,0x332,0x3e8,_0x3c7be1._0x176a7d),'index':_0x36bd15,'thinking':_0x2a77dc}];}}if(_0x3e1233['type']==='signature_delta'&&_0x4936cf[_0x2a5f8e(0x2b4,0x2b8,0x24a,_0x3c7be1._0x3eef8e)]===_0x2a5f8e(_0x3c7be1._0x1fa4d3,0x28f,0x1ff,0x216)){const _0x5e5abc=typeof _0x3e1233[_0x2f28d6(_0x3c7be1._0x25b066,_0x3c7be1._0x34a517,0x517,0x43f)]===_0x2f28d6(0x4f1,_0x3c7be1._0x29c80c,0x41d,_0x3c7be1._0x2db899)?String(_0x3e1233[_0x2f28d6(0x566,0x582,_0x3c7be1._0x473d05,0x433)]):'';if(_0x5e5abc[_0x2a5f8e(_0x3c7be1._0x82be74,_0x3c7be1._0x28feb6,0x238,_0x3c7be1._0x42da11)]>0x0){_0x4936cf['signature']=_0x5e5abc;if(isUserVisibleThinking(this[_0x2a5f8e(_0x3c7be1._0x56e83d,0x356,0x3d5,_0x3c7be1._0x5ba124)]))return[{'type':_0x2a5f8e(0x298,_0x3c7be1._0x594b60,_0x3c7be1._0x18140f,0x3f1),'index':_0x36bd15,'signature':_0x5e5abc}];}}break;}case'message_delta':{const _0x273bd7=_0xa983ce[_0x2f28d6(_0x3c7be1._0x19a90d,_0x3c7be1._0xe90a55,0x4f9,_0x3c7be1._0x52441e)],_0x32fe7a=_0xa983ce[_0x2a5f8e(_0x3c7be1._0x41d00b,_0x3c7be1._0x521677,_0x3c7be1._0x17f609,0x384)];this['inputTokens']=_0x32fe7a?.[_0x2a5f8e(0x235,0x291,_0x3c7be1._0x5b44c1,_0x3c7be1._0x5544a4)]??this['inputTokens'],this[_0x2a5f8e(0x2d9,_0x3c7be1._0x52b7ef,0x395,_0x3c7be1._0x18a8a3)]=_0x32fe7a?.[_0x2a5f8e(0x163,0x1df,0x2c1,_0x3c7be1._0x2bf4f0)]??this[_0x2f28d6(_0x3c7be1._0x16d4cf,_0x3c7be1._0x5c46d1,_0x3c7be1._0x3bb693,_0x3c7be1._0x584158)],this[_0x2a5f8e(_0x3c7be1._0x5ba2cf,_0x3c7be1._0x5f2597,_0x3c7be1._0x484b73,0x209)]=_0x32fe7a?.['cache_creation_input_tokens']??this[_0x2f28d6(_0x3c7be1._0x365185,0x465,0x3f0,0x312)],this[_0x2a5f8e(0x1ac,_0x3c7be1._0x19dc74,_0x3c7be1._0x2020c2,_0x3c7be1._0xbcd004)]=_0x32fe7a?.[_0x2f28d6(0x5b1,_0x3c7be1._0x5a4124,0x54b,_0x3c7be1._0x2b0e71)]??this[_0x2a5f8e(0xf9,0x1ca,0x23e,_0x3c7be1._0xc3fc69)],this[_0x2a5f8e(0x1ce,0x259,0x243,0x2b8)]=_0x273bd7?.[_0x2f28d6(0x51c,0x4f2,_0x3c7be1._0x28bfd0,0x55a)]===_0x2f28d6(_0x3c7be1._0x4b75dd,0x463,_0x3c7be1._0x1751ea,_0x3c7be1._0x42f4b2)?_0x2f28d6(0x4ab,_0x3c7be1._0x4e6d3c,0x488,_0x3c7be1._0x48d8f5):'end_turn';break;}case'error':{const _0x1b63f8=_0xa983ce[_0x2f28d6(0x352,0x4a5,_0x3c7be1._0x1946b4,0x33e)];throw new ProviderStreamEventError(_0x1b63f8?.[_0x2a5f8e(_0x3c7be1._0x9a3c7d,_0x3c7be1._0x66162e,0x359,_0x3c7be1._0x3e9b35)]??_0x2a5f8e(0x262,_0x3c7be1._0x1a7cf7,_0x3c7be1._0x1c5025,0x2d4),{'code':_0x1b63f8?.[_0x2f28d6(0x4a4,_0x3c7be1._0x4a028c,0x4e3,_0x3c7be1._0x31c427)],'retryable':!![]});}}function _0x2f28d6(_0x2803f6,_0x521684,_0x25c7a4,_0x52090e){return _0x11bd88(_0x25c7a4-_0xfb7cc2._0x55a4d5,_0x2803f6,_0x25c7a4-0xf4,_0x52090e-_0xfb7cc2._0x45bfca);}return[];}[_0xd1496a(0x4c7,0x556,0x4d2,0x47e)](){const _0x26e07d={_0x1123c0:0x1fd,_0x50a47b:0x220,_0x3ee79a:0x1e7,_0x5b9abd:0x110,_0x33f5c4:0xc7,_0x55c93c:0x129,_0x2357ad:0x16f,_0x1af2bb:0x175,_0x97f8b2:0x1e2,_0x13aa88:0x1c4,_0x52c5a5:0x15a,_0x441f23:0x153,_0x58479a:0xd8,_0x12535c:0x12c,_0x5c4d6a:0x103,_0x1bddef:0x15a,_0x907f01:0x80,_0x4f9d9c:0x1c2,_0x113ff1:0xb5,_0x238d4e:0x238,_0x2ed4b3:0x153,_0x27f55e:0x23c,_0x16b348:0x1df,_0x88f9f5:0x214,_0x238915:0xfa,_0x1711df:0x14e,_0x2b64f2:0x223,_0x4c7eac:0x20b,_0x19e7cc:0xea,_0x401785:0x39,_0x5deb80:0x17b,_0x2227cd:0x2b,_0x3c988:0xe9,_0x3f679e:0x150,_0x41c7d5:0x189,_0x2ca307:0x251,_0x4cbcd3:0x1a4,_0x544c36:0x272,_0x1780a4:0x277,_0x564d9e:0xa2,_0x3ce03b:0x42,_0x28ca98:0x6b,_0x50ebc1:0x176,_0x58b078:0x21,_0x1a3fae:0xd7,_0x59719f:0x1,_0x3de4b4:0x2a3,_0x5a367a:0x1d2,_0x3237d4:0xf6,_0x3713b0:0x11a,_0x581043:0x12c,_0x41b1be:0x2ca},_0x478e80={_0x522540:0x338,_0x1f3f02:0x14},_0x5d0135={_0x276e5e:0x2ef,_0xeaa44a:0x47,_0x31747d:0x5b};function _0x4ef25a(_0x4133b7,_0x300993,_0x3d1264,_0x2de567){return _0x11bd88(_0x4133b7- -_0x5d0135._0x276e5e,_0x300993,_0x3d1264-_0x5d0135._0xeaa44a,_0x2de567-_0x5d0135._0x31747d);}const _0x22aef7=Array[_0x4ef25a(0x1f7,0x1f0,0x187,0x2a6)](this[_0x4ef25a(0x234,_0x26e07d._0x1123c0,_0x26e07d._0x50a47b,_0x26e07d._0x3ee79a)][_0x4f0ad1(_0x26e07d._0x5b9abd,_0x26e07d._0x33f5c4,_0x26e07d._0x55c93c,0x40)]())[_0x4f0ad1(_0x26e07d._0x2357ad,0x135,0x210,0x172)]((_0x23f483,_0x65a486)=>_0x23f483['index']-_0x65a486[_0x4f0ad1(0x18a,0x14d,0x1a6,0x19a)]),_0x534e96=[];function _0x4f0ad1(_0x311a4f,_0x4a82a4,_0x7532c,_0x388377){return _0x11bd88(_0x4a82a4- -_0x478e80._0x522540,_0x7532c,_0x7532c-0x10d,_0x388377-_0x478e80._0x1f3f02);}for(const _0x260caa of _0x22aef7){if(_0x260caa['kind']==='text'){_0x260caa[_0x4ef25a(_0x26e07d._0x1af2bb,_0x26e07d._0x97f8b2,_0x26e07d._0x13aa88,0x13c)]['length']>0x0&&_0x534e96[_0x4f0ad1(0x233,_0x26e07d._0x52c5a5,0x18b,_0x26e07d._0x441f23)]({'type':'text','text':_0x260caa[_0x4f0ad1(_0x26e07d._0x58479a,_0x26e07d._0x12535c,0x13f,0x1b1)]});continue;}if(_0x260caa['kind']==='thinking'){_0x534e96[_0x4f0ad1(_0x26e07d._0x5c4d6a,_0x26e07d._0x1bddef,_0x26e07d._0x907f01,0x9e)]({'type':_0x4f0ad1(_0x26e07d._0x4f9d9c,0x153,_0x26e07d._0x113ff1,0x1c1),'thinking':_0x260caa[_0x4f0ad1(_0x26e07d._0x238d4e,_0x26e07d._0x2ed4b3,0xa0,0x1c7)],'signature':_0x260caa[_0x4ef25a(0x21d,0x136,_0x26e07d._0x27f55e,_0x26e07d._0x16b348)]});continue;}if(_0x260caa[_0x4f0ad1(_0x26e07d._0x88f9f5,0x17c,0x197,_0x26e07d._0x238915)]==='redacted_thinking'){_0x534e96[_0x4f0ad1(0x93,_0x26e07d._0x1bddef,_0x26e07d._0x1711df,0xcb)]({'type':_0x4ef25a(0x213,_0x26e07d._0x2b64f2,0x19f,_0x26e07d._0x4c7eac),'data':_0x260caa[_0x4ef25a(_0x26e07d._0x19e7cc,_0x26e07d._0x401785,_0x26e07d._0x5deb80,_0x26e07d._0x2227cd)]});continue;}_0x534e96[_0x4ef25a(0x1a3,0x1b5,0x20a,0x142)]({'type':'tool_use','id':_0x260caa['id'],'name':_0x260caa[_0x4f0ad1(0x138,_0x26e07d._0x3c988,0x48,0xa6)],'input':parseToolInput(_0x260caa[_0x4ef25a(0x1a4,_0x26e07d._0x3f679e,_0x26e07d._0x41c7d5,_0x26e07d._0x2ca307)]['length']>0x0?_0x260caa[_0x4ef25a(_0x26e07d._0x4cbcd3,_0x26e07d._0x544c36,0x237,_0x26e07d._0x1780a4)]:'{}')});}return parseAnthropicResponse({'id':this[_0x4f0ad1(0xfa,_0x26e07d._0x564d9e,_0x26e07d._0x3ce03b,_0x26e07d._0x28ca98)],'type':'message','role':'assistant','content':_0x534e96,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x4f0ad1(_0x26e07d._0x50ebc1,0xd7,_0x26e07d._0x58b078,0x182)],'output_tokens':this[_0x4ef25a(_0x26e07d._0x1a3fae,0x2f,0xe1,-_0x26e07d._0x59719f)],'cache_read_input_tokens':this[_0x4ef25a(_0x26e07d._0x3de4b4,_0x26e07d._0x5a367a,0x1f4,0x2c6)],'cache_creation_input_tokens':this[_0x4ef25a(_0x26e07d._0x3237d4,_0x26e07d._0x3713b0,_0x26e07d._0x581043,0x24)]}},this[_0x4ef25a(0x263,0x26b,0x2b0,_0x26e07d._0x41b1be)]);}};function createAnthropicSurfaces(){const _0x508808={_0x4c7931:0x626,_0x35deb1:0x598,_0x4c2bf8:0x202,_0x534997:0x260,_0x1b3659:0x1bc},_0xedca8d={_0x1d4ac9:0xc,_0x4cd30d:0x18e,_0xd6357a:0x117},_0xb8d906={_0x1079ec:0xd3,_0x326bc6:0xc4};function _0x159eea(_0x22f262,_0x59806e,_0x2ea896,_0x93a8e){return _0xd1496a(_0x2ea896- -0x356,_0x59806e-_0xb8d906._0x1079ec,_0x22f262,_0x93a8e-_0xb8d906._0x326bc6);}function _0x40ec54(_0x1f0ab6,_0x3d0d38,_0x1b2b5c,_0x3522da){return _0xd1496a(_0x1b2b5c- -_0xedca8d._0x1d4ac9,_0x3d0d38-_0xedca8d._0x4cd30d,_0x3d0d38,_0x3522da-_0xedca8d._0xd6357a);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x40ec54(_0x508808._0x4c7931,_0x508808._0x35deb1,0x59e,0x553),'createRequest'(_0x2554a2){return createAnthropicRequest(_0x2554a2,![]);},'parseResponse'(_0x4d4524,_0x3f3d5a){return parseAnthropicResponse(_0x4d4524,_0x3f3d5a);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x159eea(_0x508808._0x4c2bf8,_0x508808._0x534997,_0x508808._0x1b3659,0x253),'createRequest'(_0x3a9541){return createAnthropicRequest(_0x3a9541,!![]);},'createStreamParser'(_0x579141){return new AnthropicMessagesStreamParser(_0x579141);}}];}var StaticModelSurfaceRouter=class{[_0x11bd88(0x58e,0x5b8,0x4e8,0x4b4)];[_0xd1496a(0x444,0x3e8,0x4b6,0x3e9)];constructor(_0xa27cb9){const _0x16cb7b={_0x5d27df:0x444,_0x101960:0x4d4,_0x259474:0x45d,_0x475018:0xb0,_0x5380bc:0x38a,_0x2bf969:0x52a,_0x4beb99:0x44a},_0x3f9913={_0x511027:0x31},_0x176e2f={_0x2bac16:0x1dd};function _0x2d67e8(_0x40c0e3,_0x5ccaa6,_0x30bdd7,_0x25a96e){return _0xd1496a(_0x5ccaa6- -0x4d8,_0x5ccaa6-_0x176e2f._0x2bac16,_0x25a96e,_0x25a96e-0x6b);}function _0x35d68b(_0x5e2162,_0x19f71e,_0x3501a1,_0x2172bd){return _0x11bd88(_0x2172bd- -0x12d,_0x19f71e,_0x3501a1-_0x3f9913._0x511027,_0x2172bd-0x4b);}this[_0x35d68b(_0x16cb7b._0x5d27df,_0x16cb7b._0x101960,0x482,0x461)]=_0xa27cb9[_0x35d68b(0x4c9,0x39f,0x42c,_0x16cb7b._0x259474)],this[_0x2d67e8(0x33,-0x94,-_0x16cb7b._0x475018,-0x53)]=_0xa27cb9[_0x35d68b(_0x16cb7b._0x5380bc,_0x16cb7b._0x2bf969,0x472,_0x16cb7b._0x4beb99)];}[_0xd1496a(0x50d,0x5a0,0x428,0x54b)](_0x32a8a9,_0x1c5035){const _0x120e48={_0x466cf9:0x2c1,_0x42c795:0x31d,_0x33367f:0x191,_0x367e33:0x1f7,_0x495b57:0x119,_0x354990:0x5d,_0x55df71:0x14},_0x513ec8={_0x25e790:0x120,_0x42192a:0x122};function _0x1f371f(_0x528bf7,_0x11e4b3,_0x118d7d,_0x28d367){return _0xd1496a(_0x28d367- -0x32b,_0x11e4b3-0x13b,_0x528bf7,_0x28d367-0x14b);}function _0x2cdeef(_0x4d5e46,_0x3b72b4,_0x526070,_0x133a49){return _0xd1496a(_0x526070- -0x5a2,_0x3b72b4-_0x513ec8._0x25e790,_0x3b72b4,_0x133a49-_0x513ec8._0x42192a);}return _0x1c5035[_0x2cdeef(-0xde,-0x56,-0x7e,0x0)]===_0x1f371f(_0x120e48._0x466cf9,_0x120e48._0x42c795,0x245,0x2c1)?this[_0x1f371f(0x79,_0x120e48._0x33367f,_0x120e48._0x367e33,_0x120e48._0x495b57)]:this[_0x2cdeef(0x59,-_0x120e48._0x354990,0x61,_0x120e48._0x55df71)];}};function trimTrailingSlashes(_0xb831fd){return _0xb831fd['replace'](/\/+$/,'');}function resolveApiCredential(_0xef8d53,_0x30063d){const _0x1e8d50={_0x389928:0x48f,_0x33d401:0x3eb,_0x1ca88c:0x532,_0x54b5db:0x54f,_0x4fea5c:0x48b,_0x3897aa:0x44d,_0x3692b6:0x196,_0x2e4054:0x5},_0x418efe={_0x1b5cc0:0x6c3,_0xfe5f7c:0x158},_0x118d3f={_0x66732f:0x56,_0x441606:0x6e};if(_0x30063d?.[_0xcfb944(_0x1e8d50._0x389928,_0x1e8d50._0x33d401,0x48b,_0x1e8d50._0x1ca88c)])return _0x30063d[_0xcfb944(0x3dc,_0x1e8d50._0x54b5db,_0x1e8d50._0x4fea5c,_0x1e8d50._0x3897aa)];function _0xcfb944(_0x297205,_0x578ad9,_0x42dc90,_0x2bbff2){return _0x11bd88(_0x42dc90-_0x118d3f._0x66732f,_0x297205,_0x42dc90-0x73,_0x2bbff2-_0x118d3f._0x441606);}if(!_0xef8d53)return void 0x0;function _0x4afa5e(_0xa51035,_0x43c38f,_0x447e49,_0x4e7755){return _0xd1496a(_0xa51035- -_0x418efe._0x1b5cc0,_0x43c38f-0x170,_0x43c38f,_0x4e7755-_0x418efe._0xfe5f7c);}return{'kind':_0x4afa5e(-0xca,-_0x1e8d50._0x3692b6,-0x12c,_0x1e8d50._0x2e4054),'value':_0xef8d53};}function resolveSessionBaseUrl(_0x453829,_0xfdaa6c){const _0x47f33f={_0x11f286:0x557,_0x481179:0xb7,_0x565315:0xd9},_0x202bba={_0x335040:0xa1,_0xd4eef4:0x1f2,_0xae25d5:0x17a},_0x5f2b21={_0x249d9c:0x523,_0x31abb6:0x1ad};function _0x1f673b(_0x4bcc8e,_0x478336,_0x4634e4,_0x5e6610){return _0x11bd88(_0x5e6610- -_0x5f2b21._0x249d9c,_0x478336,_0x4634e4-_0x5f2b21._0x31abb6,_0x5e6610-0x1c3);}function _0x5563ae(_0x3b95a6,_0x334456,_0x90fc9,_0x19f59f){return _0xd1496a(_0x3b95a6-_0x202bba._0x335040,_0x334456-_0x202bba._0xd4eef4,_0x90fc9,_0x19f59f-_0x202bba._0xae25d5);}return trimTrailingSlashes(_0xfdaa6c?.[_0x5563ae(_0x47f33f._0x11f286,0x4e2,0x5ff,0x4f7)]?.[_0x1f673b(-_0x47f33f._0x481179,0xe,0xc,-_0x47f33f._0x565315)]??_0x453829);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':_0xd1496a(0x4f5,0x4d3,0x55a,0x4e4),'cliDefaultModel':_0xd1496a(0x594,0x557,0x585,0x51c),'providers':{'anthropic':{'label':'Anthropic','baseUrl':_0xd1496a(0x4b9,0x4b3,0x5a1,0x41d),'surface':_0x11bd88(0x40b,0x45f,0x447,0x464),'authScheme':_0xd1496a(0x4a0,0x4d0,0x550,0x575),'defaultModel':_0x11bd88(0x40e,0x336,0x4d4,0x330),'defaultModels':['claude-sonnet-4-20250514',_0x11bd88(0x494,0x564,0x3fa,0x56b)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x11bd88(0x4ba,0x555,0x4e2,0x45f),'baseUrl':_0xd1496a(0x5cd,0x67d,0x567,0x63c),'anthropicBaseUrl':_0xd1496a(0x5a7,0x5a8,0x543,0x584),'surface':'anthropic-messages','authScheme':'bearer','defaultModel':_0xd1496a(0x594,0x4ec,0x5f2,0x648),'defaultModels':['glm-5.2',_0x11bd88(0x443,0x495,0x373,0x3f3),_0x11bd88(0x51f,0x462,0x476,0x446),_0xd1496a(0x593,0x5ef,0x672,0x59e),'glm-4.5'],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x1f400},'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':_0x11bd88(0x561,0x5cb,0x5c6,0x54b),'baseUrl':'https://openrouter.ai/api/v1','surface':'openai-chat-completions','authScheme':_0x11bd88(0x4a5,0x484,0x532,0x53e),'defaultModel':_0xd1496a(0x51c,0x606,0x5a4,0x583),'defaultModels':[_0x11bd88(0x4a7,0x43f,0x50e,0x48e),_0x11bd88(0x41e,0x4c2,0x400,0x3a8)],'supportsModelFetch':!![],'models':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}}},'github':{'label':_0xd1496a(0x505,0x4fd,0x549,0x48d),'surface':_0x11bd88(0x41b,0x3b4,0x393,0x43f),'defaultModel':_0xd1496a(0x4c1,0x4b7,0x52f,0x496),'defaultModels':[_0xd1496a(0x499,0x539,0x54c,0x3f5),_0xd1496a(0x44c,0x4a1,0x3b9,0x38d),'gpt-5',_0xd1496a(0x5e5,0x631,0x626,0x570),'grok-code-fast-1',_0x11bd88(0x56e,0x5f4,0x567,0x4a0)],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x11bd88(0x40b,0x4eb,0x47e,0x4ca)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0xd1496a(0x480,0x4b7,0x49d,0x4d6)},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}}},'openai':{'label':_0xd1496a(0x477,0x482,0x4ea,0x531),'baseUrl':_0xd1496a(0x588,0x634,0x53f,0x561),'surface':_0xd1496a(0x538,0x4c7,0x4ac,0x4f8),'authScheme':_0x11bd88(0x4a5,0x425,0x409,0x4ee),'defaultModel':'gpt-4o','defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0xd1496a(0x5e4,0x54d,0x571,0x5b5),'baseUrl':'https://api.deepseek.com/anthropic','surface':'anthropic-messages','authScheme':_0x11bd88(0x4a5,0x535,0x46e,0x41e),'defaultModel':_0x11bd88(0x55c,0x57b,0x471,0x4b7),'defaultModels':[_0x11bd88(0x55c,0x5e7,0x49c,0x5be),'deepseek-v4-flash'],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x11bd88(0x423,0x49b,0x417,0x482),'baseUrl':_0x11bd88(0x46e,0x3fb,0x3d1,0x51d),'surface':_0x11bd88(0x40b,0x33c,0x3eb,0x3d6),'authScheme':_0x11bd88(0x4a5,0x499,0x4b3,0x549),'defaultModel':_0xd1496a(0x5f5,0x614,0x601,0x59d),'defaultModels':[_0xd1496a(0x5f5,0x678,0x61b,0x5d4)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x11bd88(0x52d,0x529,0x4ec,0x449),'baseUrl':'https://api.commandcode.ai/provider','modelsBaseUrl':'https://api.commandcode.ai/provider/v1','surface':_0xd1496a(0x480,0x3ce,0x48b,0x487),'authScheme':_0xd1496a(0x4a0,0x4a7,0x45b,0x489),'defaultModel':_0xd1496a(0x483,0x542,0x4f0,0x477),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':'Xiaomi','baseUrl':_0x11bd88(0x4cb,0x578,0x581,0x548),'modelsBaseUrl':_0xd1496a(0x458,0x4bc,0x525,0x3d8),'surface':_0xd1496a(0x480,0x4ef,0x3d4,0x4b1),'authScheme':_0x11bd88(0x42b,0x499,0x495,0x43f),'defaultModel':_0xd1496a(0x531,0x5a5,0x513,0x476),'defaultModels':[],'supportsModelFetch':!![],'models':{}}}},data=model_registry_default;function findProviderKey(_0x217919){const _0x35b31a={_0x33664f:0x1b5,_0xdf8379:0x16c,_0x45a5f7:0x4fc,_0xb2fcdb:0x53a,_0x92b695:0x466},_0x4242fd={_0x3af8d3:0x339,_0x4f0a1e:0x67,_0x1fa41f:0x1f2},_0x447e35={_0x13217c:0x1be,_0x2903f3:0x1c4};function _0x3418ae(_0x39b970,_0x409d09,_0x364644,_0x1fabec){return _0x11bd88(_0x39b970- -0x3c,_0x409d09,_0x364644-_0x447e35._0x13217c,_0x1fabec-_0x447e35._0x2903f3);}function _0x3e4beb(_0x38cc01,_0x57b385,_0x20bc08,_0x319ab5){return _0x11bd88(_0x20bc08- -_0x4242fd._0x3af8d3,_0x57b385,_0x20bc08-_0x4242fd._0x4f0a1e,_0x319ab5-_0x4242fd._0x1fa41f);}const _0x116f2a=_0x217919[_0x3e4beb(_0x35b31a._0x33664f,0x27b,0x1b3,_0x35b31a._0xdf8379)]();return Object[_0x3418ae(0x4fe,_0x35b31a._0x45a5f7,0x5ce,0x521)](data[_0x3418ae(0x530,_0x35b31a._0xb2fcdb,0x5f8,_0x35b31a._0x92b695)])['find'](_0xdd6523=>_0xdd6523[_0x3418ae(0x4b0,0x510,0x554,0x456)]()===_0x116f2a);}function getProviderProfile(_0x448261){const _0x4cc427={_0x596210:0x158,_0x4f2044:0xda,_0x37dae4:0x18a,_0x2321a5:0xf4,_0x41b013:0x1a7,_0x44dadf:0x252,_0x488c67:0x25e,_0x76b1d3:0x209,_0x1ba4c4:0x12f,_0x388c0f:0xb9,_0x2b5cc9:0x130,_0x31a1dc:0x188,_0x1c55a4:0x8c,_0x534026:0x160,_0x16d9fc:0xe0,_0x491345:0x171,_0x101db2:0x9e,_0x39fe67:0xe3,_0x41597c:0x252,_0x13116d:0x193},_0x37b3b3={_0x332c12:0x66,_0x3edb3c:0x1e2},_0x549980={_0x53167a:0x378,_0xc83fcb:0x19c,_0x5e82f2:0x97};function _0x330906(_0x3d1581,_0x516042,_0x5f4852,_0x2973ff){return _0x11bd88(_0x5f4852- -_0x549980._0x53167a,_0x2973ff,_0x5f4852-_0x549980._0xc83fcb,_0x2973ff-_0x549980._0x5e82f2);}const _0x139f16=findProviderKey(_0x448261);function _0x119aae(_0x35b53b,_0x3df5f5,_0x245a0a,_0x385fe5){return _0xd1496a(_0x245a0a- -0x662,_0x3df5f5-_0x37b3b3._0x332c12,_0x35b53b,_0x385fe5-_0x37b3b3._0x3edb3c);}if(!_0x139f16)return void 0x0;const _0x2f5d1c=data[_0x119aae(-_0x4cc427._0x596210,-0xa4,-0x81,-0x13b)][_0x139f16],_0x2fb860={};for(const [_0x524b1b,_0x5c80f6]of Object[_0x330906(0x194,_0x4cc427._0x4f2044,0xe0,0xa1)](_0x2f5d1c[_0x119aae(-0xd2,-0x26a,-_0x4cc427._0x37dae4,-0x13a)])){_0x2fb860[_0x524b1b]=_0x5c80f6;}return{'label':_0x2f5d1c[_0x119aae(-_0x4cc427._0x2321a5,-0x162,-_0x4cc427._0x41b013,-_0x4cc427._0x44dadf)],'baseUrl':_0x2f5d1c['baseUrl'],'modelsBaseUrl':_0x2f5d1c[_0x330906(_0x4cc427._0x488c67,0x1b0,_0x4cc427._0x76b1d3,_0x4cc427._0x1ba4c4)],'anthropicBaseUrl':_0x2f5d1c[_0x330906(_0x4cc427._0x388c0f,_0x4cc427._0x2b5cc9,_0x4cc427._0x31a1dc,0x232)],'surface':_0x2f5d1c[_0x330906(0x1f,0x10f,_0x4cc427._0x1c55a4,0x57)],'authScheme':_0x2f5d1c[_0x119aae(-0xe8,-_0x4cc427._0x534026,-_0x4cc427._0x16d9fc,-0x88)],'defaultModel':_0x2f5d1c[_0x119aae(-0x16b,-_0x4cc427._0x491345,-_0x4cc427._0x101db2,-0x62)],'defaultModels':_0x2f5d1c[_0x330906(_0x4cc427._0x39fe67,_0x4cc427._0x41597c,_0x4cc427._0x13116d,0x23f)]??[],'supportsModelFetch':_0x2f5d1c['supportsModelFetch']??![],'models':_0x2fb860};}function getModelProfile(_0x520fec,_0x59a326){const _0xe8aafe={_0x5edba3:0x1b8,_0x4ab590:0x286,_0xff3b3e:0x2ee,_0x1a23f1:0x306},_0x42927c={_0x2d8260:0x252};function _0x1543f7(_0x288142,_0xf63710,_0xcfdb16,_0xf364a1){return _0xd1496a(_0xf63710- -_0x42927c._0x2d8260,_0xf63710-0x18a,_0xcfdb16,_0xf364a1-0x47);}const _0x19b643=findProviderKey(_0x520fec);if(!_0x19b643)return void 0x0;return data['providers'][_0x19b643][_0x1543f7(_0xe8aafe._0x5edba3,_0xe8aafe._0x4ab590,_0xe8aafe._0xff3b3e,_0xe8aafe._0x1a23f1)][_0x59a326];}function resolveModelProfile(_0x1790c6,_0x274ecf){const _0x29031c={_0x493f50:0x14d,_0x597dc4:0xaf,_0x21ff00:0x17c,_0x140cc1:0x146,_0x424fe:0xbd,_0x200b97:0x21e,_0x474b7b:0x199,_0x2652bf:0x93,_0x5274ac:0x111,_0x144b8a:0x159,_0x470ec9:0x1b2,_0x4ac524:0x1e3,_0x2d920b:0x1a1,_0x485394:0x112,_0x4ed999:0x1fc},_0x23d7d0={_0x190f8e:0x332};function _0x27f661(_0x111e37,_0x258e3d,_0x4e642e,_0x408fd2){return _0x11bd88(_0x258e3d- -_0x23d7d0._0x190f8e,_0x408fd2,_0x4e642e-0xe4,_0x408fd2-0x129);}const _0x3dde7a=findProviderKey(_0x1790c6);if(!_0x3dde7a)return void 0x0;const _0xdb0c94=data[_0x5722ab(0x191,0x151,_0x29031c._0x493f50,0x1ab)][_0x3dde7a];function _0x5722ab(_0x1c0963,_0x162035,_0x41ba48,_0x2c65d0){return _0xd1496a(_0x162035- -0x490,_0x162035-0x114,_0x41ba48,_0x2c65d0-0x143);}const _0x5ecf4f=_0xdb0c94['models'][_0x274ecf];return{'label':_0xdb0c94[_0x5722ab(0xb5,0x2b,0xa5,_0x29031c._0x597dc4)],'baseUrl':_0xdb0c94[_0x27f661(_0x29031c._0x21ff00,_0x29031c._0x140cc1,_0x29031c._0x424fe,0x17b)],'modelsBaseUrl':_0xdb0c94['modelsBaseUrl'],'anthropicBaseUrl':_0xdb0c94[_0x27f661(0x13f,0x1ce,_0x29031c._0x200b97,_0x29031c._0x474b7b)],'surface':_0x5ecf4f?.['surface']??_0xdb0c94[_0x27f661(_0x29031c._0x2652bf,0xd2,0xf6,_0x29031c._0x5274ac)],'authScheme':_0xdb0c94[_0x5722ab(0x16b,0xf2,_0x29031c._0x144b8a,_0x29031c._0x470ec9)],'defaultModel':_0xdb0c94[_0x27f661(0x19f,0x21d,_0x29031c._0x4ac524,0x2b5)],'defaultModels':_0xdb0c94[_0x27f661(0x168,0x1d9,0x22d,0x261)],'supportsModelFetch':_0xdb0c94[_0x27f661(_0x29031c._0x2d920b,0x17f,_0x29031c._0x485394,_0x29031c._0x4ed999)],'contextWindow':_0x5ecf4f?.['contextWindow'],'maxOutput':_0x5ecf4f?.['maxOutput']};}function getDefaultMaxTokens(){return data['defaultMaxTokens'];}function getDefaultModel(){const _0x30d82e={_0x5dec9d:0x2c0,_0x292ab8:0x28d,_0x7972d8:0x20d};function _0x500110(_0x2d07c9,_0x1ed085,_0x4c700a,_0x4d84f2){return _0xd1496a(_0x4d84f2- -0x3b7,_0x1ed085-0xf9,_0x4c700a,_0x4d84f2-0xe9);}return data[_0x500110(_0x30d82e._0x5dec9d,_0x30d82e._0x292ab8,0x15a,_0x30d82e._0x7972d8)];}function getCliDefaultModel(){const _0x2ae0aa={_0x41d9d1:0x13b,_0x7d36a8:0x96},_0x29253a={_0x34874d:0x165,_0x534c92:0x1a6};function _0x2aa63b(_0x5ee5d1,_0x39fc35,_0x138daa,_0x41daf0){return _0xd1496a(_0x41daf0- -0x55c,_0x39fc35-_0x29253a._0x34874d,_0x138daa,_0x41daf0-_0x29253a._0x534c92);}return data[_0x2aa63b(-_0x2ae0aa._0x41d9d1,-0x155,-0xf8,-_0x2ae0aa._0x7d36a8)];}function getProviderLabel(_0x3e3723){const _0x77822f={_0x163a24:0x685,_0x5c33f8:0x69},_0x1eb7e0=findProviderKey(_0x3e3723);function _0x43f477(_0x48e67c,_0x13f6ca,_0x4a58a4,_0x19f6f9){return _0x11bd88(_0x48e67c- -_0x77822f._0x163a24,_0x13f6ca,_0x4a58a4-_0x77822f._0x5c33f8,_0x19f6f9-0xda);}return _0x1eb7e0?data['providers'][_0x1eb7e0][_0x43f477(-0x23f,-0x25c,-0x1e1,-0x1f4)]:void 0x0;}function getProviderDefaultModel(_0x583b75){const _0x3dd92d={_0x3a69ed:0x308,_0x1deff7:0x37c,_0x508fbc:0x274,_0x133d1d:0x2b9},_0x5b6b24={_0x162998:0x30f,_0x590b72:0x61},_0x43da9d=findProviderKey(_0x583b75);function _0x20f132(_0x148092,_0x23472e,_0x1a5e47,_0x52bb07){return _0xd1496a(_0x1a5e47- -_0x5b6b24._0x162998,_0x23472e-0x13,_0x52bb07,_0x52bb07-_0x5b6b24._0x590b72);}function _0x141748(_0x2b38df,_0xc7f104,_0x9b05db,_0x1bc878){return _0x11bd88(_0x2b38df- -0x2ba,_0x9b05db,_0x9b05db-0x1d,_0x1bc878-0x122);}if(!_0x43da9d)return void 0x0;return data[_0x20f132(_0x3dd92d._0x3a69ed,_0x3dd92d._0x1deff7,0x2d2,0x214)][_0x43da9d][_0x141748(0x295,_0x3dd92d._0x508fbc,0x36d,_0x3dd92d._0x133d1d)];}function getProviderDefaultModels(_0x5812df){const _0x515482={_0x42c3bc:0x81,_0x5867f1:0xf2};function _0x48bc71(_0x284e3d,_0x32ca57,_0x56ea99,_0x38561f){return _0x11bd88(_0x32ca57- -0x4b3,_0x56ea99,_0x56ea99-0x19f,_0x38561f-0x9c);}const _0xd809aa=findProviderKey(_0x5812df);if(!_0xd809aa)return[];return[...data['providers'][_0xd809aa][_0x48bc71(_0x515482._0x42c3bc,0x58,_0x515482._0x5867f1,-0xc)]??[]];}function providerSupportsModelFetch(_0x55bdcb){const _0x3daca8={_0xe90303:0x481,_0x3d66b3:0x552,_0x143064:0x3f4,_0x463dfb:0x4b3},_0x5cd94e={_0x5ae4b9:0x160};function _0x590da7(_0x10506c,_0x32884c,_0x7d14eb,_0x225467){return _0x11bd88(_0x225467- -0x16,_0x32884c,_0x7d14eb-0x2a,_0x225467-0xae);}function _0x546996(_0x4054a9,_0x530250,_0x289501,_0x5afee0){return _0xd1496a(_0x4054a9- -_0x5cd94e._0x5ae4b9,_0x530250-0x38,_0x289501,_0x5afee0-0x1e0);}const _0x3f845a=findProviderKey(_0x55bdcb);if(!_0x3f845a)return![];return data[_0x546996(_0x3daca8._0xe90303,0x486,0x506,_0x3daca8._0x3d66b3)][_0x3f845a][_0x590da7(_0x3daca8._0x143064,_0x3daca8._0x463dfb,0x3b3,0x49b)]??![];}function _0x4abb(_0x108ef8,_0x332db8){_0x108ef8=_0x108ef8-0x11b;const _0x448304=_0x4483();let _0x4abbe7=_0x448304[_0x108ef8];if(_0x4abb['IfGsdC']===undefined){var _0x5eeb8f=function(_0x6e006e){const _0xd117a4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4881e8='',_0x4eb608='';for(let _0x3f5b9b=0x0,_0x5b8384,_0x5a84a0,_0x39b5ba=0x0;_0x5a84a0=_0x6e006e['charAt'](_0x39b5ba++);~_0x5a84a0&&(_0x5b8384=_0x3f5b9b%0x4?_0x5b8384*0x40+_0x5a84a0:_0x5a84a0,_0x3f5b9b++%0x4)?_0x4881e8+=String['fromCharCode'](0xff&_0x5b8384>>(-0x2*_0x3f5b9b&0x6)):0x0){_0x5a84a0=_0xd117a4['indexOf'](_0x5a84a0);}for(let _0x46c8d7=0x0,_0x4efdd3=_0x4881e8['length'];_0x46c8d7<_0x4efdd3;_0x46c8d7++){_0x4eb608+='%'+('00'+_0x4881e8['charCodeAt'](_0x46c8d7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4eb608);};_0x4abb['mrGasa']=_0x5eeb8f,_0x4abb['zCmMWt']={},_0x4abb['IfGsdC']=!![];}const _0x133ba6=_0x448304[0x0],_0x31d7e5=_0x108ef8+_0x133ba6,_0x58a94b=_0x4abb['zCmMWt'][_0x31d7e5];return!_0x58a94b?(_0x4abbe7=_0x4abb['mrGasa'](_0x4abbe7),_0x4abb['zCmMWt'][_0x31d7e5]=_0x4abbe7):_0x4abbe7=_0x58a94b,_0x4abbe7;}function getOnboardingProviderKeys(){const _0xb2ad6a={_0x29ff90:0x5de,_0x493146:0x5aa,_0xdf6061:0x52f,_0x1d5dfd:0x414,_0x504a5b:0x50e,_0x22d255:0x502},_0x2b0438={_0x4dec2c:0x6d,_0x579b64:0x18f},_0xc0c8e7={_0x49b111:0x1ee};function _0xdd8cc3(_0x503d1e,_0xeb3727,_0x287ad8,_0x23e261){return _0x11bd88(_0x503d1e-0xa4,_0x287ad8,_0x287ad8-0xfc,_0x23e261-_0xc0c8e7._0x49b111);}function _0x8de8ff(_0x5cdab8,_0x4484a3,_0x522480,_0xc0edf6){return _0x11bd88(_0x4484a3- -_0x2b0438._0x4dec2c,_0x522480,_0x522480-_0x2b0438._0x579b64,_0xc0edf6-0x19b);}return Object[_0xdd8cc3(_0xb2ad6a._0x29ff90,_0xb2ad6a._0x493146,0x643,_0xb2ad6a._0xdf6061)](data[_0x8de8ff(_0xb2ad6a._0x1d5dfd,0x4ff,_0xb2ad6a._0x504a5b,_0xb2ad6a._0x22d255)]);}function toErrorMessage(_0x1ca967){const _0x61df71={_0x44dce6:0x1f,_0x54d64f:0x6c,_0x4ddd16:0x102},_0xb8f2d={_0x5153ad:0xd8},_0x3b6866={_0x2426f0:0x1de};if(_0x1ca967 instanceof Error&&_0x1ca967[_0x2daa0f(-0xda,-0x74,0x3b,-0x10c)][_0x5073d4(-0xac,_0x61df71._0x44dce6,0x5e,_0x61df71._0x54d64f)]>0x0)return _0x1ca967[_0x5073d4(0x13c,0x115,0x46,_0x61df71._0x4ddd16)];function _0x5073d4(_0x3d952a,_0x39faea,_0x3ef0d6,_0x51a6fb){return _0xd1496a(_0x39faea- -0x485,_0x39faea-0xc,_0x3d952a,_0x51a6fb-_0x3b6866._0x2426f0);}function _0x2daa0f(_0x175d4b,_0x7a94fe,_0xcee11d,_0x1e0efb){return _0xd1496a(_0x7a94fe- -0x60e,_0x7a94fe-0xba,_0x1e0efb,_0x1e0efb-_0xb8f2d._0x5153ad);}return'WebSocket\x20request\x20failed';}function createDefaultWebSocketFactory(){const _0x2887a8={_0x14a84f:0x5cd,_0x179fbe:0x5c5,_0x35b532:0x4e4};return({headers:_0x2d643a,url:_0xf566d7})=>{function _0xd55bfb(_0x5860ff,_0x2d1d09,_0x1702c5,_0xf2b4a7){return _0x4abb(_0xf2b4a7-0x2e6,_0x1702c5);}const _0x44c968=globalThis[_0xd55bfb(_0x2887a8._0x14a84f,_0x2887a8._0x179fbe,0x42f,_0x2887a8._0x35b532)];return new _0x44c968(_0xf566d7,{'headers':_0x2d643a,'protocols':[]});};}async function*iterateSseEvents(_0x142358,_0x129788){const _0x1a2546={_0x54c42d:0x62,_0x5d846f:0x83,_0x35bffe:0x48,_0x3cc5a0:0x1d,_0x504822:0x112,_0x46edff:0xdc,_0xc61bb:0x58,_0x2d6c05:0x162,_0x19d9f:0x113,_0x14622a:0x1,_0x5badbc:0x64,_0x3ef3c0:0x36,_0x457af0:0xe,_0x90361a:0x9f,_0x2ecf6d:0x19b,_0x119989:0xd,_0x2a3331:0x60,_0xb8159:0xb,_0x6432d4:0x43,_0x4b1f83:0x2e},_0x540e5c={_0x4748aa:0x166},_0x41b3c3={_0x1da150:0x10b,_0x2acf39:0xe6,_0x3d5f36:0x1b3},_0x42b20f={_0x504e9c:0x421,_0x3856d9:0x1bf},_0x385a86=_0x142358[_0x1320a5(_0x1a2546._0x54c42d,0xd,0x119,0xee)]?.[_0x1320a5(0x42,0x117,-_0x1a2546._0x5d846f,0x2a)]();function _0x12e82e(_0x5db185,_0x464ea3,_0x16da2a,_0x1c721e){return _0x11bd88(_0x464ea3- -_0x42b20f._0x504e9c,_0x16da2a,_0x16da2a-0x18f,_0x1c721e-_0x42b20f._0x3856d9);}if(!_0x385a86)return;function _0x1320a5(_0x5ec00a,_0x3088e6,_0x525f99,_0x51b4f3){return _0xd1496a(_0x5ec00a- -0x4af,_0x3088e6-0xd2,_0x51b4f3,_0x51b4f3-0x12e);}const _0x41d953=new TextDecoder(_0x1320a5(0xba,0x141,_0x1a2546._0x35bffe,_0x1a2546._0x3cc5a0));let _0x205744='';const _0x173350=addAbortListener(_0x129788,()=>{function _0x46bbbd(_0x3f8315,_0x4fa442,_0x37eb76,_0x3efc70){return _0x12e82e(_0x3f8315-0x197,_0x4fa442-0x79,_0x3f8315,_0x3efc70-0x62);}function _0x36bbc5(_0x4600d6,_0xa9ca2e,_0x12ab98,_0x3ae46b){return _0x12e82e(_0x4600d6-_0x41b3c3._0x1da150,_0xa9ca2e-_0x41b3c3._0x2acf39,_0x4600d6,_0x3ae46b-_0x41b3c3._0x3d5f36);}void _0x385a86[_0x46bbbd(_0x540e5c._0x4748aa,0x167,0x229,0xe1)](toAbortError(_0x129788?.['reason']))[_0x46bbbd(0x20,0xcb,0x11c,0x45)](()=>{});});try{while(!![]){throwIfAborted(_0x129788);const {value:_0x43d330,done:_0x5d47f2}=await _0x385a86[_0x1320a5(_0x1a2546._0x504822,_0x1a2546._0x46edff,_0x1a2546._0xc61bb,0x175)]();throwIfAborted(_0x129788);if(_0x5d47f2)break;_0x205744+=_0x41d953[_0x12e82e(_0x1a2546._0x2d6c05,0x142,_0x1a2546._0x19d9f,0x78)](_0x43d330,{'stream':!![]});while(!![]){const _0x34ad81=_0x205744['indexOf']('\x0a\x0a');if(_0x34ad81===-0x1)break;const _0x19d634=_0x205744[_0x12e82e(-0xb2,-_0x1a2546._0x14622a,_0x1a2546._0x5badbc,0x49)](0x0,_0x34ad81);_0x205744=_0x205744[_0x12e82e(0xc2,-_0x1a2546._0x14622a,0x65,-_0x1a2546._0x3ef3c0)](_0x34ad81+0x2),_0x19d634['trim']()[_0x12e82e(0x95,_0x1a2546._0x457af0,-0x47,0xb4)]>0x0&&(yield _0x19d634);}}_0x205744+=_0x41d953[_0x1320a5(0x129,0x174,_0x1a2546._0x90361a,_0x1a2546._0x2ecf6d)](),throwIfAborted(_0x129788),_0x205744[_0x12e82e(0xa9,_0x1a2546._0x119989,0x60,_0x1a2546._0x2a3331)]()[_0x1320a5(-_0x1a2546._0xb8159,0x99,_0x1a2546._0x6432d4,_0x1a2546._0x4b1f83)]>0x0&&(yield _0x205744);}finally{_0x173350();}}async function waitForWebSocketOpen(_0x5a6c1f,_0xec5fb9){const _0x555337={_0x471a82:0x1d9,_0x572246:0x155,_0x2b2aaa:0x1cd},_0x3859b4={_0x5e2116:0x3fd,_0x5b00fd:0x228,_0x29c725:0x205,_0x2224ff:0x24a,_0x95be6:0x3e5,_0x353cfc:0xd9,_0x5968d0:0x434,_0x2cc4f1:0x3fd,_0x481753:0x437,_0x3fda99:0x32a,_0x3a33b3:0x3af},_0x290520={_0x572bb7:0x258,_0x2de3d4:0x2e9,_0x1396bb:0x3c8,_0x5446cd:0x4b1,_0x302863:0x551},_0x400d31={_0x3e2919:0x211,_0x2fb0d0:0x636,_0x50aa57:0x5ae,_0xab1152:0x58f},_0x50cbe3={_0x29abfd:0x17f,_0x2363b2:0xc2,_0x42db5e:0x434},_0x15dcbd={_0x33c1d9:0x5b4,_0x45e1bf:0x1de};if(_0x5a6c1f['readyState']===WebSocket[_0x29ca31(-_0x555337._0x471a82,-0xfa,-_0x555337._0x572246,-_0x555337._0x2b2aaa)]){throwIfAborted(_0xec5fb9);return;}function _0x29ca31(_0x2faf97,_0x413cad,_0x30f131,_0x740ec6){return _0x11bd88(_0x30f131- -_0x15dcbd._0x33c1d9,_0x740ec6,_0x30f131-0xf,_0x740ec6-_0x15dcbd._0x45e1bf);}throwIfAborted(_0xec5fb9),await new Promise((_0x1dd2d3,_0x4dbafe)=>{const _0x4be8d7={_0x283ef8:0x31d},_0x2483cd={_0x8a953a:0x1d7,_0x4593bd:0x173,_0x50183a:0x18f,_0x3197a7:0x17a,_0x5ded84:0x165,_0x3318cb:0xcc,_0x50c794:0x1f3},_0x40e5c5={_0x2f8fcc:0x336};function _0x28f1fd(_0x7aa040,_0x4771b7,_0x3efb35,_0x10badb){return _0x29ca31(_0x7aa040-0x80,_0x4771b7-0x18,_0x10badb-_0x40e5c5._0x2f8fcc,_0x7aa040);}function _0x3f2978(_0x56769b,_0x4b3346,_0x186e3f,_0x2bbda9){return _0x29ca31(_0x56769b-_0x50cbe3._0x29abfd,_0x4b3346-_0x50cbe3._0x2363b2,_0x186e3f-_0x50cbe3._0x42db5e,_0x4b3346);}const _0x570c7d=()=>{_0x50d403(),_0x1dd2d3();},_0x44a0a4=_0x2f1d64=>{const _0x5025a9={_0x35cd64:0x4d};function _0x4f19ef(_0x559183,_0x14b850,_0x534512,_0x23558d){return _0x4abb(_0x14b850-0x328,_0x23558d);}function _0x426d9e(_0x5cdbdd,_0x2152c6,_0x2d619a,_0x18c2b4){return _0x4abb(_0x18c2b4-_0x5025a9._0x35cd64,_0x2d619a);}_0x50d403(),_0x4dbafe(new Error(_0x2f1d64[_0x426d9e(0x34f,_0x400d31._0x3e2919,0x2ea,0x2c7)]||_0x4f19ef(_0x400d31._0x2fb0d0,_0x400d31._0x50aa57,0x5f5,_0x400d31._0xab1152)));},_0x589764=_0x3653fb=>{_0x50d403();const _0x3219e2=_0x3653fb;_0x4dbafe(new Error(_0x3219e2['reason']||'WebSocket\x20closed\x20before\x20opening'));},_0x247e60=()=>{const _0x42a9df={_0x1b69c4:0xd6};function _0x18e665(_0x258900,_0x168136,_0xe54d4c,_0x2d30b8){return _0x4abb(_0xe54d4c- -_0x42a9df._0x1b69c4,_0x2d30b8);}function _0x6e72fd(_0x33ea8e,_0x30f2e5,_0x4e88e0,_0x19d3f1){return _0x4abb(_0x4e88e0- -0x141,_0x33ea8e);}_0x50d403(),_0x5a6c1f[_0x18e665(_0x2483cd._0x8a953a,_0x2483cd._0x4593bd,0x152,0x8b)]===WebSocket['OPEN']&&_0x5a6c1f[_0x18e665(_0x2483cd._0x50183a,0x185,0x184,0xb1)](0x3e8,_0x6e72fd(_0x2483cd._0x3197a7,_0x2483cd._0x5ded84,0x12b,0x14b)),_0x4dbafe(toAbortError(_0xec5fb9?.[_0x6e72fd(0x32,_0x2483cd._0x3318cb,0x10d,_0x2483cd._0x50c794)]));},_0x50d403=()=>{_0x5a6c1f['removeEventListener']('open',_0x570c7d);function _0x1a51d3(_0x296e56,_0x1dfac6,_0x1db57d,_0xfb0de9){return _0x4abb(_0xfb0de9- -0x3dd,_0x1db57d);}function _0x4b2836(_0x4d6b73,_0x1b97d2,_0x1c9ab8,_0x468d43){return _0x4abb(_0x1b97d2-_0x4be8d7._0x283ef8,_0x4d6b73);}_0x5a6c1f[_0x1a51d3(-_0x290520._0x572bb7,-0x271,-0x211,-0x24c)](_0x1a51d3(-0x2cc,-0x335,-_0x290520._0x2de3d4,-0x28e),_0x44a0a4),_0x5a6c1f[_0x4b2836(_0x290520._0x1396bb,0x4ae,0x4e4,_0x290520._0x5446cd)](_0x4b2836(0x5f4,0x577,_0x290520._0x302863,0x564),_0x589764),_0xec5fb9?.['removeEventListener']('abort',_0x247e60);};_0x5a6c1f[_0x3f2978(0x4d1,0x380,_0x3859b4._0x5e2116,0x3d0)](_0x28f1fd(_0x3859b4._0x5b00fd,_0x3859b4._0x29c725,_0x3859b4._0x2224ff,0x249),_0x570c7d),_0x5a6c1f[_0x3f2978(0x4a3,_0x3859b4._0x95be6,0x3fd,0x490)](_0x28f1fd(0x108,0x20d,_0x3859b4._0x353cfc,0x17c),_0x44a0a4),_0x5a6c1f['addEventListener']('close',_0x589764),_0xec5fb9?.[_0x3f2978(_0x3859b4._0x5968d0,0x469,_0x3859b4._0x2cc4f1,_0x3859b4._0x481753)](_0x3f2978(0x290,0x2ea,_0x3859b4._0x3fda99,_0x3859b4._0x3a33b3),_0x247e60,{'once':!![]});});}function iterateWebSocketMessages(_0x11ff7b,_0x46771e){const _0x41baca={_0x3894f3:0x596,_0x17f932:0x479,_0x415246:0x458,_0x5e3a09:0x4a7,_0x2ea669:0x4a4,_0x27e17d:0x563,_0x45e066:0x4d4,_0x17d14d:0x592,_0x234532:0x4f5},_0x11f480={_0x1a7d44:0xd2,_0x26d63a:0xc2,_0x1b3cd4:0x131,_0x1d41ed:0x18e,_0x5a9c58:0x1fa,_0x58dbf1:0xc5,_0x122ef2:0x15,_0x55acc8:0x142,_0x505ce9:0x55,_0x3b9688:0xf8,_0x3e6d79:0x96,_0x1ebebd:0x240,_0x1b202a:0x148,_0x17d320:0x17f,_0x6ba34c:0x167,_0x482233:0x148,_0x32b2ce:0x1a5},_0x14394a={_0x223eea:0x119,_0x1a6029:0x619},_0x3d2e0c={_0x507d18:0x22},_0x4d5713={_0x5469f4:0xcc,_0x11b210:0xcb},_0x4ff0fb={_0x5676f0:0x41d,_0x2a6bec:0x3c3,_0x5e675c:0x305,_0x542e48:0x322,_0x382f64:0x165,_0x293569:0x26b,_0x972372:0x1bb,_0x3f105a:0x3e0,_0x19743b:0x427},_0x3acbbe={_0x347a53:0x5ce,_0x446caa:0x4e0,_0x429f66:0x154,_0xc2d4c9:0x75,_0x43a239:0x20e},_0x3c5c77={_0x42da2b:0x687,_0x49736c:0x66f,_0x3c7d0e:0x603},_0x3a5316={_0x511519:0x14a,_0x23ec34:0x1a4},_0x128a97={_0x200c3b:0x2eb},_0x4a33ce=[];let _0x343f5a=![],_0x3ef2ae,_0x3877d7;const _0x3ff648=_0x54630d=>{function _0x5eb5f0(_0x3b4ee7,_0x432e78,_0xee40ee,_0x4f83b2){return _0x4abb(_0xee40ee- -_0x128a97._0x200c3b,_0x3b4ee7);}function _0x2eedf8(_0x106c25,_0x2e386a,_0x1b06e4,_0x33aafc){return _0x4abb(_0x2e386a-0x3bd,_0x106c25);}const _0x3abe28=_0x54630d;try{_0x4a33ce['push'](JSON[_0x5eb5f0(-_0x3a5316._0x511519,-0x1e2,-_0x3a5316._0x23ec34,-0x203)](String(_0x3abe28['data']))),_0x3877d7?.(),_0x3877d7=void 0x0;}catch(_0x1f52c3){_0x3ef2ae=new Error(_0x2eedf8(0x62c,0x68a,0x71c,0x66c)+toErrorMessage(_0x1f52c3)),_0x3877d7?.(),_0x3877d7=void 0x0;}},_0x1787fd=_0x4d8890=>{const _0x124582=_0x4d8890;function _0x3e838c(_0x30eec1,_0x524a05,_0x1e50c9,_0x20e6e3){return _0x4abb(_0x30eec1-0x36c,_0x1e50c9);}_0x3ef2ae=new Error(_0x124582[_0x3e838c(0x5e6,_0x3c5c77._0x42da2b,_0x3c5c77._0x49736c,_0x3c5c77._0x3c7d0e)]||'WebSocket\x20request\x20failed'),_0x3877d7?.(),_0x3877d7=void 0x0;},_0x1eeef5=_0x531162=>{const _0x29eb0d={_0x25fa0b:0x358},_0xeeec51={_0xb1a55a:0x191};function _0x19d242(_0x289185,_0x2029bb,_0x21a88d,_0x46e68c){return _0x4abb(_0x289185- -_0xeeec51._0xb1a55a,_0x46e68c);}function _0x110eb6(_0x4da704,_0x2abf60,_0x53bcf2,_0x4e9542){return _0x4abb(_0x53bcf2-_0x29eb0d._0x25fa0b,_0x4da704);}const _0x2a38fe=_0x531162;!_0x343f5a&&_0x2a38fe['code']!==0x3e8&&!_0x3ef2ae&&(_0x3ef2ae=new Error(_0x2a38fe[_0x110eb6(0x55e,_0x3acbbe._0x347a53,0x5a6,_0x3acbbe._0x446caa)]||'WebSocket\x20closed\x20with\x20code\x20'+_0x2a38fe[_0x19d242(_0x3acbbe._0x429f66,_0x3acbbe._0xc2d4c9,0x109,_0x3acbbe._0x43a239)])),_0x343f5a=!![],_0x3877d7?.(),_0x3877d7=void 0x0;},_0x3f0068=addAbortListener(_0x46771e,()=>{_0x3ef2ae=toAbortError(_0x46771e?.[_0x37cb60(_0x4ff0fb._0x5676f0,_0x4ff0fb._0x2a6bec,0x348,0x389)]);_0x11ff7b[_0x37cb60(0x3ab,_0x4ff0fb._0x5e675c,_0x4ff0fb._0x542e48,0x23c)]===WebSocket[_0x1e82ee(-_0x4ff0fb._0x382f64,-_0x4ff0fb._0x293569,-_0x4ff0fb._0x972372,-0x1ee)]&&_0x11ff7b[_0x37cb60(_0x4ff0fb._0x3f105a,_0x4ff0fb._0x19743b,0x354,0x423)](0x3e8,'aborted');function _0x37cb60(_0x5856ce,_0x1361be,_0x6a8b29,_0x2555a3){return _0x4abb(_0x6a8b29-0xfa,_0x5856ce);}_0x3877d7?.();function _0x1e82ee(_0x4fb3fe,_0xa9b14b,_0x4472e9,_0x27acd0){return _0x4abb(_0x4472e9- -0x36f,_0x4fb3fe);}_0x3877d7=void 0x0;});function _0x1c082f(_0x4a98e5,_0x50f5d6,_0x224724,_0x4d5864){return _0x11bd88(_0x4d5864- -0x28e,_0x224724,_0x224724-_0x4d5713._0x5469f4,_0x4d5864-_0x4d5713._0x11b210);}_0x11ff7b[_0x37e5a8(_0x41baca._0x3894f3,0x5db,0x692,0x5d5)]('message',_0x3ff648);function _0x37e5a8(_0x2b1f03,_0x2fd6b4,_0x1059b5,_0x2ce0b2){return _0xd1496a(_0x2fd6b4- -0x17,_0x2fd6b4-_0x3d2e0c._0x507d18,_0x2ce0b2,_0x2ce0b2-0x73);}return _0x11ff7b['addEventListener'](_0x37e5a8(_0x41baca._0x17f932,_0x41baca._0x415246,_0x41baca._0x5e3a09,0x3ff),_0x1787fd),_0x11ff7b[_0x1c082f(0x38a,0x30e,0x3b2,0x2ef)](_0x37e5a8(_0x41baca._0x2ea669,_0x41baca._0x27e17d,0x502,_0x41baca._0x45e066),_0x1eeef5),{async*[Symbol[_0x37e5a8(0x4b9,_0x41baca._0x17d14d,0x4d2,_0x41baca._0x234532)]](){const _0x4ce2a4={_0xab8561:0x157,_0x2d99cc:0x11d};function _0x21ddf7(_0x434266,_0x538e7b,_0x304485,_0x4dc534){return _0x1c082f(_0x434266-_0x4ce2a4._0xab8561,_0x538e7b-_0x4ce2a4._0x2d99cc,_0x4dc534,_0x434266- -0x273);}function _0x1fa373(_0x3921f8,_0x3e9e20,_0x268d33,_0x528d54){return _0x37e5a8(_0x3921f8-_0x14394a._0x223eea,_0x268d33- -_0x14394a._0x1a6029,_0x268d33-0x50,_0x3e9e20);}try{while(!![]){if(_0x3ef2ae)throw _0x3ef2ae;if(_0x4a33ce[_0x21ddf7(-_0x11f480._0x1a7d44,-0x1b3,-_0x11f480._0x26d63a,-0x170)]>0x0){yield _0x4a33ce[_0x21ddf7(-_0x11f480._0x1b3cd4,-_0x11f480._0x1d41ed,-0x69,-_0x11f480._0x5a9c58)]();continue;}if(_0x343f5a)break;await new Promise(_0x3e7a9f=>{_0x3877d7=_0x3e7a9f;});}}finally{_0x11ff7b[_0x21ddf7(-_0x11f480._0x58dbf1,-0x2c,_0x11f480._0x122ef2,-_0x11f480._0x55acc8)](_0x1fa373(_0x11f480._0x505ce9,-_0x11f480._0x3b9688,-_0x11f480._0x3e6d79,-0x114),_0x3ff648),_0x11ff7b[_0x1fa373(-_0x11f480._0x1ebebd,-_0x11f480._0x1b202a,-_0x11f480._0x17d320,-0xf2)](_0x1fa373(-0x1d8,-_0x11f480._0x6ba34c,-0x1c1,-0x27d),_0x1787fd),_0x11ff7b[_0x21ddf7(-_0x11f480._0x58dbf1,-_0x11f480._0x482233,-0x13,-_0x11f480._0x32b2ce)]('close',_0x1eeef5),_0x3f0068();}}};}function toWebSocketUrl(_0x3fb0b6,_0x1462ec){const _0x52478f={_0x1a0cd3:0x82,_0x180988:0x1ea,_0x167047:0x10f,_0xb40ae2:0x143,_0xe87f19:0x13b,_0x17fd67:0xda,_0x81f1bb:0x253},_0x2066bf={_0x4f6ee3:0x5f1,_0x53a24b:0x103,_0x4896fb:0x86},_0x51d24c={_0x1d341b:0x3d6,_0x437ced:0x1cd};function _0x207e34(_0x39e8bd,_0x4b18ee,_0x4c11f9,_0x5200a6){return _0xd1496a(_0x4c11f9- -_0x51d24c._0x1d341b,_0x4b18ee-0x17a,_0x4b18ee,_0x5200a6-_0x51d24c._0x437ced);}const _0x325136=new URL(_0x1462ec,_0x3fb0b6);function _0x52cd77(_0x5985d4,_0x3ea87c,_0x2fccbf,_0x4ee6f2){return _0xd1496a(_0x3ea87c- -_0x2066bf._0x4f6ee3,_0x3ea87c-_0x2066bf._0x53a24b,_0x5985d4,_0x4ee6f2-_0x2066bf._0x4896fb);}return _0x325136['protocol']=_0x325136[_0x207e34(_0x52478f._0x1a0cd3,_0x52478f._0x180988,_0x52478f._0x167047,_0x52478f._0xb40ae2)]==='https:'?'wss:':_0x207e34(0x110,_0x52478f._0xe87f19,_0x52478f._0x17fd67,0x9a),_0x325136[_0x52cd77(-_0x52478f._0x81f1bb,-0x1a6,-0x1ff,-0x114)]();}var ProviderSessionManager=class{['resolver'];[_0x11bd88(0x575,0x548,0x613,0x4c1)];constructor(_0xd39400){const _0x23acfa={_0x53dc77:0x25a},_0x542f4c={_0xdf4cf2:0x152,_0x45aa8e:0x32};function _0x1981cd(_0x6c962c,_0x56ec6e,_0x7a2791,_0x5c03b0){return _0x11bd88(_0x7a2791- -0x5af,_0x6c962c,_0x7a2791-_0x542f4c._0xdf4cf2,_0x5c03b0-_0x542f4c._0x45aa8e);}this[_0x1981cd(-0x1e7,-_0x23acfa._0x53dc77,-0x1d0,-0x1cf)]=_0xd39400;}async[_0xd1496a(0x4d2,0x4e2,0x4f9,0x4f1)](_0x3d549b){const _0x208a90={_0x32f706:0x12e,_0x147c62:0x165,_0x3495ff:0x6b},_0x143499={_0x370213:0x3d,_0x501991:0x118},_0x232b06={_0x4c64a9:0xce,_0x897f8e:0x14e,_0x26204a:0x1b7,_0x1cab8f:0xda},_0x2bbba6={_0x241265:0x193,_0xa0458b:0xc6};if(!this[_0x3c4ade(0x123,0x68,-0x5d,0x36)]){const _0x4d4db8=this[_0x3c4ade(-0xbc,-_0x208a90._0x32f706,-0x11c,-_0x208a90._0x147c62)]['resolve'](_0x3d549b);_0x4d4db8['catch'](()=>{const _0x3e272f={_0x29e129:0xb4,_0x289525:0x66,_0x40cbd7:0x1cc};function _0x4f89f2(_0x426bd5,_0xc853f1,_0x2965b2,_0x1767b9){return _0x3c4ade(_0x426bd5-_0x2bbba6._0x241265,_0x2965b2-0x149,_0x426bd5,_0x1767b9-_0x2bbba6._0xa0458b);}function _0x31156b(_0xba8646,_0x10ba7e,_0xd42b53,_0x4e54a0){return _0x3c4ade(_0xba8646-_0x3e272f._0x29e129,_0x10ba7e-_0x3e272f._0x289525,_0xd42b53,_0x4e54a0-_0x3e272f._0x40cbd7);}this[_0x31156b(0x182,_0x232b06._0x4c64a9,_0x232b06._0x897f8e,0x167)]===_0x4d4db8&&(this[_0x4f89f2(_0x232b06._0x26204a,0xca,0x1b1,_0x232b06._0x1cab8f)]=void 0x0);}),this[_0x3c4ade(-0x80,0x68,-_0x208a90._0x3495ff,0x10a)]=_0x4d4db8;}function _0x3c4ade(_0x138e11,_0x5217c6,_0x101d6e,_0x15d616){return _0x11bd88(_0x5217c6- -0x50d,_0x101d6e,_0x101d6e-_0x143499._0x370213,_0x15d616-_0x143499._0x501991);}function _0x4e710c(_0x49599c,_0x34eeb0,_0x14cecc,_0x461777){return _0xd1496a(_0x461777- -0x196,_0x34eeb0-0x188,_0x14cecc,_0x461777-0xd6);}return structuredClone(await this['cached']);}[_0xd1496a(0x589,0x538,0x585,0x4c2)](){const _0x232820={_0x6db8f4:0x82,_0x2b3628:0x18},_0xbcad25={_0x3faab6:0x6c7};function _0x5337d6(_0x4def18,_0x59757c,_0xd56cf0,_0x3f1d8b){return _0xd1496a(_0x4def18- -_0xbcad25._0x3faab6,_0x59757c-0xcb,_0x59757c,_0x3f1d8b-0x145);}this[_0x5337d6(-0xdd,-0x5,-_0x232820._0x6db8f4,-_0x232820._0x2b3628)]=void 0x0;}};async function prepareProviderRequest(_0xc7c825,_0x3d4aea={}){const _0x4db19d={_0x5cded9:0xc8,_0x57e195:0xc5,_0x4a49c1:0x66b,_0x9140cc:0x5b,_0x5d6a21:0x71},_0x355d24={_0x449f75:0x67},_0x2ad647={_0x3af668:0x3c1,_0x4ccbbb:0xe,_0xa4e7b:0x11};function _0x509f51(_0x33c41f,_0x18dac5,_0x4bbf3e,_0x59367f){return _0xd1496a(_0x33c41f- -_0x2ad647._0x3af668,_0x18dac5-_0x2ad647._0x4ccbbb,_0x4bbf3e,_0x59367f-_0x2ad647._0xa4e7b);}let _0x258a91={'request':structuredClone(_0xc7c825),'session':_0x3d4aea['sessionManager']?await _0x3d4aea['sessionManager'][_0x509f51(0x111,_0x4db19d._0x5cded9,_0x4db19d._0x57e195,0x16d)](_0x3d4aea[_0x135bcc(0x72d,0x755,_0x4db19d._0x4a49c1,0x66b)]):void 0x0};function _0x135bcc(_0x16cfa7,_0x3d227e,_0x4d8e29,_0x4ffc9b){return _0xd1496a(_0x4ffc9b-_0x355d24._0x449f75,_0x3d227e-0x14,_0x3d227e,_0x4ffc9b-0x10e);}for(const _0xca3226 of _0x3d4aea[_0x509f51(0xed,_0x4db19d._0x9140cc,0x1d7,_0x4db19d._0x5d6a21)]??[]){_0x258a91=await _0xca3226(_0x258a91);}return _0x258a91;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{[_0xd1496a(0x4de,0x52a,0x419,0x507)];[_0xd1496a(0x4e1,0x4fb,0x56b,0x4e0)];[_0xd1496a(0x457,0x4a2,0x4d9,0x48f)];[_0x11bd88(0x539,0x522,0x46f,0x548)];[_0x11bd88(0x478,0x522,0x4ba,0x530)];[_0xd1496a(0x568,0x512,0x484,0x560)];[_0xd1496a(0x5d2,0x523,0x620,0x639)];[_0x11bd88(0x439,0x4c7,0x4e4,0x4ea)];[_0xd1496a(0x4f8,0x412,0x5c7,0x58d)];[_0xd1496a(0x59f,0x63c,0x687,0x646)];[_0x11bd88(0x572,0x63d,0x5c3,0x4bd)];[_0xd1496a(0x591,0x584,0x5d0,0x558)]=new Map();constructor(_0x2de8a6){const _0x16ba0e={_0x408211:0x368,_0x30fe9c:0x2aa,_0x79ecae:0x9d,_0x4f14b6:0x223,_0x5e97d5:0x1b6,_0x270f28:0x22e,_0x597071:0x2b6,_0x3c0935:0x3b1,_0x464fb5:0x37a,_0x48e409:0x360,_0x5d3b6f:0x37a,_0x39ee46:0x307,_0x5a20d3:0x5e,_0x52e6ed:0x208,_0x1eb64f:0x2b9,_0x56be55:0x1e2,_0x90c723:0x14a,_0x34f70c:0xea,_0x43681b:0x37b,_0xa71eb7:0x357,_0x361ce5:0x235,_0x5dd7f5:0x259,_0x414286:0x29e,_0x2fe0fb:0x2c4,_0x32fe3f:0x1c0,_0x8842a2:0x295,_0x4e239f:0x3cd,_0x40fda4:0x35c,_0x1c6e82:0x459,_0x27f1d2:0x45b,_0xac340a:0x3ae,_0x2c09dd:0x497,_0x37aeea:0x150,_0x4dbdde:0x1e3,_0x11c4f0:0x395,_0x23256f:0x445},_0x533415={_0x1f8faa:0x441,_0x2a23a9:0x45};this[_0x3a10a2(0x1ea,_0x16ba0e._0x408211,_0x16ba0e._0x30fe9c,0x289)]=_0x2de8a6[_0x29ccf5(-0x49,_0x16ba0e._0x79ecae,0x5,0xb6)];function _0x3a10a2(_0x1f973e,_0x4f156d,_0x3c4ea0,_0x135396){return _0x11bd88(_0x3c4ea0- -0x1bf,_0x1f973e,_0x3c4ea0-0x2d,_0x135396-0xe4);}this['maxTokens']=_0x2de8a6[_0x3a10a2(0x36a,0x2a0,0x2ad,0x2d9)]??getDefaultMaxTokens(),this[_0x3a10a2(0x2a5,0x274,_0x16ba0e._0x4f14b6,0x2d5)]=_0x2de8a6['reasoning']?structuredClone(_0x2de8a6[_0x3a10a2(0x1e5,_0x16ba0e._0x5e97d5,_0x16ba0e._0x4f14b6,_0x16ba0e._0x270f28)]):void 0x0,this[_0x3a10a2(_0x16ba0e._0x597071,_0x16ba0e._0x3c0935,_0x16ba0e._0x464fb5,0x433)]=_0x2de8a6[_0x3a10a2(0x2f5,_0x16ba0e._0x48e409,_0x16ba0e._0x5d3b6f,_0x16ba0e._0x39ee46)];function _0x29ccf5(_0x4b1199,_0x25bba3,_0x49e4a4,_0x19049e){return _0xd1496a(_0x25bba3- -_0x533415._0x1f8faa,_0x25bba3-_0x533415._0x2a23a9,_0x49e4a4,_0x19049e-0x1bc);}this[_0x29ccf5(_0x16ba0e._0x5a20d3,0xac,0x134,0x3a)]=_0x2de8a6[_0x3a10a2(_0x16ba0e._0x52e6ed,0x344,_0x16ba0e._0x1eb64f,0x1fb)],this['fetchImpl']=_0x2de8a6[_0x29ccf5(_0x16ba0e._0x56be55,_0x16ba0e._0x90c723,_0x16ba0e._0x34f70c,0x117)]??globalThis[_0x3a10a2(0x3db,_0x16ba0e._0x43681b,_0x16ba0e._0xa71eb7,0x2a3)],this[_0x29ccf5(0x1b6,0x191,0x1ed,0xaf)]=_0x2de8a6['providerAdapter'],this[_0x3a10a2(0x356,0x23f,0x27a,0x312)]=_0x2de8a6[_0x3a10a2(0x2d0,_0x16ba0e._0x361ce5,0x27a,0x300)]??[],this['router']=_0x2de8a6[_0x3a10a2(_0x16ba0e._0x5dd7f5,_0x16ba0e._0x414286,_0x16ba0e._0x2fe0fb,0x1f6)],this['sessionManager']=_0x2de8a6['sessionManager']??(_0x2de8a6[_0x29ccf5(0x25b,_0x16ba0e._0x32fe3f,_0x16ba0e._0x8842a2,0x261)]?new ProviderSessionManager(_0x2de8a6[_0x3a10a2(0x378,0x382,_0x16ba0e._0x4e239f,_0x16ba0e._0x40fda4)]):void 0x0),this[_0x3a10a2(_0x16ba0e._0x1c6e82,_0x16ba0e._0x27f1d2,0x3b3,_0x16ba0e._0xac340a)]=_0x2de8a6[_0x3a10a2(0x339,_0x16ba0e._0x2c09dd,0x3b3,0x2e5)]??createDefaultWebSocketFactory();for(const _0x163dd5 of _0x2de8a6[_0x29ccf5(0x189,_0x16ba0e._0x37aeea,0x7e,_0x16ba0e._0x4dbdde)]){this[_0x3a10a2(_0x16ba0e._0x11c4f0,0x422,0x35d,0x395)][_0x3a10a2(0x340,0x361,0x378,_0x16ba0e._0x23256f)](_0x163dd5['id'],_0x163dd5);}}[_0x11bd88(0x58a,0x52a,0x648,0x57e)](_0x40f1e1,_0x5b8769){const _0x4c1940={_0x592ee7:0x157,_0x9c75c3:0xb7},_0x67caf7={_0x4fb0de:0x141};function _0x4419bf(_0x11e84a,_0x373a22,_0x45aa6e,_0x561409){return _0xd1496a(_0x561409- -0x480,_0x373a22-0x112,_0x373a22,_0x561409-_0x67caf7._0x4fb0de);}return this[_0x4419bf(_0x4c1940._0x592ee7,0x86,0x38,_0x4c1940._0x9c75c3)](_0x40f1e1,_0x5b8769);}['stream'](_0x54052b,_0x2bf2d7){return this['streamViaRouter'](_0x54052b,_0x2bf2d7);}async[_0x11bd88(0x4c2,0x508,0x4af,0x4d8)](_0x598cc,_0x21fd5f){const _0x37c4e3={_0x6def02:0x38d,_0x1ea433:0x126,_0x27677e:0x67,_0x35e6e3:0x13,_0x30bdb9:0x16e,_0x2beb07:0x87},_0x2dbdc5={_0x551c69:0x41c,_0xee9efd:0x197,_0x84e83a:0x9a};function _0x5a6553(_0x588643,_0x191eb9,_0x4f7f98,_0x4b9729){return _0x11bd88(_0x191eb9- -_0x2dbdc5._0x551c69,_0x4f7f98,_0x4f7f98-_0x2dbdc5._0xee9efd,_0x4b9729-_0x2dbdc5._0x84e83a);}const _0x493606=this[_0x39eb4f(0x31b,_0x37c4e3._0x6def02,0x254,0x2ca)](_0x598cc),_0x27fe60=await this[_0x5a6553(_0x37c4e3._0x1ea433,_0x37c4e3._0x27677e,0x10d,0x6f)][_0x5a6553(-0x29,0x7c,-_0x37c4e3._0x35e6e3,0x111)](_0x493606,{'mode':_0x5a6553(0x163,_0x37c4e3._0x30bdb9,_0x37c4e3._0x2beb07,0x1ff)});function _0x39eb4f(_0x379d05,_0xed5967,_0x2717fb,_0x3b4d2f){return _0xd1496a(_0x3b4d2f- -0x315,_0xed5967-0x6e,_0x2717fb,_0x3b4d2f-0x129);}return this['completeViaSurface'](_0x493606,_0x27fe60,_0x21fd5f);}async*[_0x11bd88(0x4eb,0x5be,0x4e1,0x517)](_0x12bd3d,_0x22fb2c){const _0x52c96c={_0x2b3195:0x29d,_0x4fc9cd:0x249},_0x151dc1={_0x4c2113:0x46},_0x28467d={_0x5ead7d:0x175,_0x5d7480:0x172},_0x300013=this[_0x1184f0(0x250,0x33d,0x287,0x1f1)](_0x12bd3d);function _0x4c3936(_0x3b42cc,_0x58f5df,_0x1357e1,_0x23d289){return _0x11bd88(_0x58f5df- -0x12b,_0x1357e1,_0x1357e1-_0x28467d._0x5ead7d,_0x23d289-_0x28467d._0x5d7480);}const _0x25a433=await this['router']['selectSurface'](_0x300013,{'mode':'stream'});function _0x1184f0(_0x3ae222,_0x21c862,_0x4d14ae,_0x551e6f){return _0xd1496a(_0x4d14ae- -0x358,_0x21c862-_0x151dc1._0x4c2113,_0x21c862,_0x551e6f-0xe4);}yield*this[_0x1184f0(0x2c9,_0x52c96c._0x2b3195,_0x52c96c._0x4fc9cd,0x2f2)](_0x300013,_0x25a433,_0x22fb2c);}async[_0xd1496a(0x5d5,0x6b4,0x4ff,0x52c)](_0x421427,_0x2712b0,_0x3588e0){const _0x260e3f={_0x56d700:0x689,_0x29f7cc:0x594,_0x3112f6:0x5d2,_0x1fa31b:0x10,_0x5a89f2:0xa4,_0x520565:0xb3,_0x16c67b:0x3af,_0x231b4e:0x46b,_0x4cc0e1:0x454,_0x20bae7:0x46b,_0x196e90:0x25,_0x3ffc88:0x42,_0x5e68eb:0x52f,_0x5cfcfd:0x590,_0x54d701:0x520,_0x404455:0xd4,_0x1ad3a3:0x108,_0x316d21:0x5f,_0x1122a6:0x573,_0x3b5c69:0x684,_0x25bbbc:0x4b,_0x4a202f:0x19,_0x424db2:0x97,_0x539a62:0x3b,_0x1a14ac:0x5b,_0xc022e8:0x2e,_0x26cbfc:0x6d,_0x11838a:0x6b,_0x118bb2:0x506,_0x5bd3f6:0x621,_0x142919:0x51e,_0x43c5a8:0x540,_0x1b1861:0xbe,_0x443185:0x24,_0x2251ec:0xe0,_0x4ce68e:0x29,_0x2f8fc4:0x5fe,_0xf51c9b:0x546,_0x19cd26:0x579},_0x21f179={_0x597d0f:0x59},_0x4b03a2=this[_0x276c17(0x633,_0x260e3f._0x56d700,_0x260e3f._0x29f7cc,_0x260e3f._0x3112f6)](_0x421427),_0x464a04=this[_0x27f426(-0x1b,-_0x260e3f._0x1fa31b,-_0x260e3f._0x5a89f2,_0x260e3f._0x520565)](_0x2712b0);function _0x276c17(_0x1ff233,_0x2e2cbb,_0x199b44,_0xeba365){return _0x11bd88(_0xeba365-0x68,_0x199b44,_0x199b44-0x1e6,_0xeba365-0x151);}if(_0x464a04[_0x276c17(_0x260e3f._0x16c67b,_0x260e3f._0x231b4e,_0x260e3f._0x4cc0e1,_0x260e3f._0x20bae7)]===_0x27f426(-_0x260e3f._0x196e90,0x5c,-0xba,-_0x260e3f._0x3ffc88)){const _0x4ceb56=await this[_0x27f426(0x1,0x45,-0x75,0xa6)](_0x4b03a2,_0x464a04,![],_0x3588e0);if(!_0x4ceb56['ok'])throw await this[_0x276c17(_0x260e3f._0x5e68eb,0x4a8,_0x260e3f._0x5cfcfd,_0x260e3f._0x54d701)](_0x4ceb56);if(!_0x464a04[_0x27f426(-_0x260e3f._0x404455,_0x260e3f._0x1fa31b,-_0x260e3f._0x1ad3a3,-_0x260e3f._0x316d21)])throw new Error(_0x276c17(_0x260e3f._0x1122a6,0x63b,_0x260e3f._0x3b5c69,0x5e7)+_0x2712b0+_0x27f426(-0x7a,-0x42,-0xf,-_0x260e3f._0x25bbbc));return _0x464a04['parseResponse'](await _0x4ceb56[_0x27f426(-_0x260e3f._0x4a202f,_0x260e3f._0x424db2,_0x260e3f._0x539a62,_0x260e3f._0x1a14ac)](),_0x4b03a2);}let _0xe43a4d;for await(const _0x26415d of this[_0x27f426(-_0x260e3f._0xc022e8,_0x260e3f._0x26cbfc,-_0x260e3f._0x11838a,-0x9e)](_0x4b03a2,_0x2712b0,_0x3588e0)){_0x26415d[_0x276c17(_0x260e3f._0x118bb2,_0x260e3f._0x5bd3f6,_0x260e3f._0x142919,_0x260e3f._0x43c5a8)]===_0x27f426(-0x8d,-_0x260e3f._0x1b1861,_0x260e3f._0x443185,-0x10e)&&(_0xe43a4d=_0x26415d[_0x27f426(-_0x260e3f._0x2251ec,-0x3d,-_0x260e3f._0x4ce68e,-0x95)]);}if(!_0xe43a4d)throw new Error('Surface\x20'+_0x2712b0+_0x276c17(0x5dc,_0x260e3f._0x2f8fc4,_0x260e3f._0xf51c9b,_0x260e3f._0x19cd26));function _0x27f426(_0x5bb683,_0xdf82e7,_0x1e9a4b,_0x3283ba){return _0xd1496a(_0x5bb683- -0x5cf,_0xdf82e7-_0x21f179._0x597d0f,_0x1e9a4b,_0x3283ba-0x1cc);}return _0xe43a4d;}async*[_0x11bd88(0x52c,0x52a,0x453,0x52c)](_0x2aa3b0,_0x5ba102,_0x540520){const _0x55dab4={_0x35f186:0x259,_0x1d6161:0x294,_0x1a9d91:0x1f5,_0x55669d:0x134,_0x225b3b:0x1ca,_0x49c229:0x1cc,_0x173a1b:0x31f,_0x20f19a:0x2e7,_0x519d36:0x451,_0x19288a:0x3b7,_0x3470e7:0x1eb,_0x2911d8:0x151,_0x12e3f1:0x23a,_0x532fa3:0x158,_0x4fa76c:0x32,_0xda04ee:0x2de,_0x46c620:0x39f,_0x5630ef:0x3c3,_0x37e639:0x45f,_0x4052ba:0x47c},_0x46b53d={_0x40a74a:0x1,_0x287001:0x8e},_0x4ff5b4={_0x1acd51:0xe4};function _0x53e605(_0x573c5c,_0x1e9245,_0x443dc4,_0x2ab98a){return _0x11bd88(_0x573c5c- -_0x4ff5b4._0x1acd51,_0x2ab98a,_0x443dc4-0x9a,_0x2ab98a-0x151);}const _0x46e290=this[_0x4c0e0f(_0x55dab4._0x35f186,_0x55dab4._0x1d6161,_0x55dab4._0x1a9d91,0x1d6)](_0x2aa3b0),_0x9d508e=this[_0x4c0e0f(0x220,_0x55dab4._0x55669d,_0x55dab4._0x225b3b,_0x55dab4._0x49c229)](_0x5ba102);if(_0x9d508e[_0x53e605(_0x55dab4._0x173a1b,0x2e4,_0x55dab4._0x20f19a,0x394)]===_0x53e605(_0x55dab4._0x519d36,0x393,_0x55dab4._0x19288a,0x374)){const _0x5b5884=await this[_0x4c0e0f(0x10c,0x274,_0x55dab4._0x3470e7,_0x55dab4._0x2911d8)](_0x46e290,_0x5ba102,_0x540520);yield{'type':_0x4c0e0f(_0x55dab4._0x12e3f1,0x1b8,_0x55dab4._0x532fa3,0xe1),'response':_0x5b5884};return;}if(_0x9d508e[_0x4c0e0f(0x30,0x26,0x8e,_0x55dab4._0x4fa76c)]===_0x53e605(0x3b9,_0x55dab4._0xda04ee,0x468,0x314)){yield*this['streamHttpSurface'](_0x46e290,_0x9d508e,_0x540520);return;}function _0x4c0e0f(_0x5dc0e7,_0x75e5e0,_0x13ae60,_0x2d2b05){return _0xd1496a(_0x13ae60- -0x3ea,_0x75e5e0-_0x46b53d._0x40a74a,_0x5dc0e7,_0x2d2b05-_0x46b53d._0x287001);}yield*this[_0x53e605(0x42e,0x3f6,_0x55dab4._0x46c620,0x3e9)](_0x46e290,_0x9d508e,_0x540520?.[_0x53e605(0x4ab,_0x55dab4._0x5630ef,_0x55dab4._0x37e639,_0x55dab4._0x4052ba)]);}async[_0x11bd88(0x417,0x424,0x480,0x4ac)](_0x2c3f93){const _0x3ba290={_0x47e7a9:0x302},_0x508e6b={_0x2609ee:0x129},_0x5316a5={_0x619c0d:0x35,_0x550162:0xc2,_0x527d05:0x16d,_0x185ef0:0x221,_0x27eeac:0x5d,_0x3d9b5e:0x156,_0x3936d1:0x1e8,_0x57311e:0x1a0,_0x75d2ef:0x1d6,_0x44d08d:0x158,_0x3a62f7:0x239,_0x5d773b:0xec,_0x36df1d:0x138,_0x23affb:0x65,_0x2418ef:0x19a,_0x47843f:0x26b,_0x362064:0xab,_0x96dc61:0x122,_0x51fec6:0x11f,_0x56feeb:0x1b8,_0x59be72:0x129,_0xe77e53:0x9,_0x12cc84:0x10b,_0xf336de:0x3c,_0x8fbe4a:0x1e6,_0x5c2d5c:0x11e,_0x5baa4b:0x276,_0x26df66:0x1c6,_0x5ced45:0x1a8,_0x4a9e15:0xe7,_0x3b79f8:0x173,_0x518b73:0x1ec,_0x490ace:0x145,_0x49fcac:0x20f,_0x78425b:0x8a,_0x7cb158:0x1f3,_0x432fe0:0x94,_0x52e346:0xe0},_0x2b48d5={_0x373147:0x112},_0x5d4af0=async()=>{const _0x1ba803=this[_0x18f237(-_0x5316a5._0x619c0d,-0xa8,-_0x5316a5._0x550162,0x23)]?await this[_0x2b10d(_0x5316a5._0x527d05,_0x5316a5._0x185ef0,0xef,0x134)][_0x2b10d(0xa0,_0x5316a5._0x27eeac,-0x6,_0x5316a5._0x3d9b5e)](_0x2c3f93[_0x2b10d(0x1d2,0x232,_0x5316a5._0x3936d1,0x147)]):void 0x0;function _0x18f237(_0x2a2e29,_0x218000,_0x6d3497,_0x5bd26f){return _0x4abb(_0x218000- -0x327,_0x2a2e29);}function _0x2b10d(_0x4fc8b4,_0x52e185,_0x20c344,_0x501cfb){return _0x4abb(_0x4fc8b4- -_0x2b48d5._0x373147,_0x20c344);}const _0x52fa02=this[_0x2b10d(_0x5316a5._0x57311e,_0x5316a5._0x75d2ef,_0x5316a5._0x44d08d,_0x5316a5._0x3a62f7)]['resolveCredential'](this['apiKey'],_0x1ba803);if(!_0x52fa02)throw this[_0x18f237(-_0x5316a5._0x5d773b,-_0x5316a5._0x36df1d,-_0x5316a5._0x23affb,-0x1d6)]();const _0x8ff6fa=await this[_0x2b10d(_0x5316a5._0x2418ef,0x18f,0xf6,_0x5316a5._0x47843f)]({'body':_0x2c3f93[_0x18f237(-_0x5316a5._0x362064,-0x136,-_0x5316a5._0x96dc61,-0x7e)],'credential':_0x52fa02,'session':_0x1ba803,'stream':![]},{'accept':_0x2c3f93[_0x2b10d(_0x5316a5._0x51fec6,0x157,_0x5316a5._0x56feeb,_0x5316a5._0x59be72)]??_0x18f237(-_0x5316a5._0xe77e53,-0xba,-_0x5316a5._0x3d9b5e,-_0x5316a5._0x12cc84),'includeContentType':_0x2c3f93[_0x2b10d(0x57,-0x60,_0x5316a5._0xf336de,0x6)]===_0x18f237(-_0x5316a5._0x8fbe4a,-0x157,-0x1e8,-_0x5316a5._0x5c2d5c)});return this['fetchImpl'](''+this[_0x2b10d(0x1a0,_0x5316a5._0x5baa4b,0x188,0x265)][_0x18f237(-0x1f3,-_0x5316a5._0x26df66,-_0x5316a5._0x5ced45,-_0x5316a5._0x4a9e15)](this['baseUrl'],_0x1ba803)+_0x2c3f93[_0x18f237(-_0x5316a5._0x3b79f8,-_0x5316a5._0x518b73,-_0x5316a5._0x490ace,-0x260)],{'method':_0x2c3f93[_0x18f237(-0x1d1,-0x1be,-0x177,-0x25c)],'headers':_0x8ff6fa,..._0x2c3f93[_0x18f237(-0x169,-0x136,-_0x5316a5._0x49fcac,-0x18d)]!==void 0x0?{'body':JSON[_0x2b10d(_0x5316a5._0x5c2d5c,_0x5316a5._0x78425b,_0x5316a5._0x7cb158,_0x5316a5._0x432fe0)](_0x2c3f93['body'])}:{},'signal':_0x2c3f93[_0x18f237(0x9c,-0x43,0x75,-_0x5316a5._0x52e346)]});};function _0x15b3de(_0x1aaf50,_0x2ab329,_0x3c0105,_0x20e6a0){return _0x11bd88(_0x20e6a0- -0x113,_0x3c0105,_0x3c0105-_0x508e6b._0x2609ee,_0x20e6a0-0x118);}return await this[_0x15b3de(0x36b,0x3c2,_0x3ba290._0x47e7a9,0x32a)](_0x5d4af0,_0x2c3f93);}[_0xd1496a(0x596,0x60e,0x579,0x54f)](_0x5c6881,_0x21ce16){const _0x3ee565={_0x4dbaca:0xde,_0xaafa2d:0x53,_0x2e7aff:0x32,_0x44d210:0x97,_0x286681:0xb,_0x37f7d9:0xe7,_0x2c7325:0x44,_0x7619ca:0x52,_0x5b811d:0x1a,_0x6f48d3:0x69,_0x13f7f5:0x42},_0x5867d0={_0x241c53:0x17e,_0x51ec90:0x94};function _0x587a38(_0x1fb9f3,_0x121c52,_0x2dee11,_0x2f43a0){return _0x11bd88(_0x2f43a0- -0x436,_0x121c52,_0x2dee11-_0x5867d0._0x241c53,_0x2f43a0-_0x5867d0._0x51ec90);}const _0x3bee6a=_0x5c6881?.[_0x32d310(0x6f,_0x3ee565._0x4dbaca,0x4f,-_0x3ee565._0xaafa2d)][_0x32d310(_0x3ee565._0x2e7aff,0xc8,0x89,_0x3ee565._0x44d210)]('retry-after');if(_0x3bee6a){const _0x1f5df6=Number(_0x3bee6a);if(Number[_0x587a38(_0x3ee565._0x286681,0x4d,-0x56,0x52)](_0x1f5df6)&&_0x1f5df6>=0x0)return _0x1f5df6*0x3e8;const _0x2417b1=Date[_0x587a38(-_0x3ee565._0x37f7d9,-0x12,-0xee,-_0x3ee565._0x2c7325)](_0x3bee6a);if(Number[_0x587a38(0x56,_0x3ee565._0x286681,0x75,_0x3ee565._0x7619ca)](_0x2417b1))return Math[_0x32d310(-_0x3ee565._0x5b811d,0x7b,_0x3ee565._0x6f48d3,-_0x3ee565._0x13f7f5)](0x0,_0x2417b1-Date['now']());}function _0x32d310(_0x54b457,_0xe04243,_0x5c090d,_0x3a4ee3){return _0xd1496a(_0x5c090d- -0x402,_0xe04243-0x94,_0x3a4ee3,_0x3a4ee3-0x16c);}const _0x9fa3e4=DEFAULT_RETRY_DELAY_MS*0x2**_0x21ce16;if(_0x9fa3e4<RETRY_DELAY_STEP_CAP_MS)return _0x9fa3e4;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x21ce16-0x5);}['shouldRetryResponse'](_0x42ca12){const _0x2ff20b={_0x23d07b:0x19e,_0x3f351e:0x125,_0x10644d:0xdb,_0x5ad1d9:0x1d,_0x168314:0xd5},_0xc28eb7={_0x1e842e:0x111},_0x4a34f6={_0x4b6a7b:0x42};function _0x30a281(_0x2a5528,_0x112b1d,_0x2dd781,_0x1682a4){return _0x11bd88(_0x2dd781- -0x379,_0x112b1d,_0x2dd781-0x121,_0x1682a4-_0x4a34f6._0x4b6a7b);}function _0x1e3a77(_0xf90807,_0x327e7d,_0x2a7566,_0x538a11){return _0xd1496a(_0xf90807- -0x65c,_0x327e7d-_0xc28eb7._0x1e842e,_0x327e7d,_0x538a11-0x148);}return RETRYABLE_HTTP_STATUSES[_0x30a281(_0x2ff20b._0x23d07b,_0x2ff20b._0x3f351e,_0x2ff20b._0x10644d,0x13e)](_0x42ca12[_0x30a281(_0x2ff20b._0x5ad1d9,0x193,_0x2ff20b._0x168314,0xb4)]);}[_0xd1496a(0x4fe,0x563,0x5a6,0x5c3)](_0xf8d898){return!isAbortError(_0xf8d898)&&_0xf8d898 instanceof TypeError;}['shouldRetryStreamAttemptError'](_0x173e7d){const _0x38f246={_0x4c6d07:0x36c},_0x473dc3={_0x5d2f0d:0x105,_0x3aed2d:0x1eb};function _0x56eaf6(_0x36d593,_0x2ca8ca,_0x49124d,_0x17060d){return _0xd1496a(_0x49124d- -_0x473dc3._0x5d2f0d,_0x2ca8ca-_0x473dc3._0x3aed2d,_0x2ca8ca,_0x17060d-0x11f);}return this[_0x56eaf6(_0x38f246._0x4c6d07,0x4a0,0x3f9,0x320)](_0x173e7d)||isRetryableProviderStreamEventError(_0x173e7d);}async[_0x11bd88(0x422,0x3f3,0x483,0x366)](_0x3cfea5,_0x261bdf){const _0x5b5346={_0x502339:0x74,_0x3f0fa2:0xb0,_0x21cd86:0x26};throwIfAborted(_0x261bdf),await new Promise((_0x267eca,_0x4c8304)=>{let _0x4e40a2=![];const _0x1cced5=addAbortListener(_0x261bdf,()=>{function _0x2d2ae6(_0x30d176,_0x4fcd2c,_0xb2707c,_0x2b75e0){return _0x4abb(_0x2b75e0- -0x274,_0x30d176);}if(_0x4e40a2)return;_0x4e40a2=!![],clearTimeout(_0x106d61),_0x4c8304(toAbortError(_0x261bdf?.[_0x2d2ae6(-_0x5b5346._0x502339,0x71,-_0x5b5346._0x3f0fa2,-_0x5b5346._0x21cd86)]));}),_0x106d61=setTimeout(()=>{_0x4e40a2=!![],_0x1cced5(),_0x267eca();},_0x3cfea5);}),throwIfAborted(_0x261bdf);}async[_0x11bd88(0x43d,0x417,0x480,0x483)](_0x2e723a,_0xb5bb1b={}){const _0x5a4165={_0x1cc8c9:0x3d4,_0x3ed58c:0x315,_0x5cd25e:0x39c,_0x3d2b4b:0x28d,_0x42b3f5:0x2c1,_0x381064:0x136,_0x1a0391:0x15,_0x4a4d59:0xbd,_0x478063:0x1d9,_0x567a4d:0x1ef,_0x20f356:0x168,_0x294cca:0x18c,_0x48bee7:0x155,_0x5cba5f:0xde,_0x34bb6c:0x198,_0x480c2a:0x3b3,_0x474f3c:0x29d,_0x2019a3:0x2fd},_0x529c5a={_0x111bce:0x653,_0x523324:0xd9},_0xa67df0={_0x70769c:0x18e,_0x5bd305:0x51},{signal:_0x562e74}=_0xb5bb1b;let _0x2213b8=![];function _0x5309bd(_0x48f849,_0x12258f,_0x11c28f,_0x45748f){return _0x11bd88(_0x45748f- -_0xa67df0._0x70769c,_0x48f849,_0x11c28f-0x91,_0x45748f-_0xa67df0._0x5bd305);}function _0x41b997(_0x4c450d,_0x478961,_0x22ad53,_0x1d677a){return _0xd1496a(_0x1d677a- -_0x529c5a._0x111bce,_0x478961-0x1ef,_0x4c450d,_0x1d677a-_0x529c5a._0x523324);}for(let _0x584d8a=0x0;_0x584d8a<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x584d8a+=0x1){throwIfAborted(_0x562e74);try{const _0x4cd3dd=await _0x2e723a();if(_0x4cd3dd['status']===0x191&&this[_0x5309bd(_0x5a4165._0x1cc8c9,_0x5a4165._0x3ed58c,0x3f1,_0x5a4165._0x5cd25e)]&&!_0x2213b8){_0x2213b8=!![],this[_0x5309bd(0x375,0x484,0x443,0x39c)]['invalidate']();continue;}if(!this[_0x5309bd(_0x5a4165._0x3d2b4b,_0x5a4165._0x42b3f5,0x2a1,0x2bd)](_0x4cd3dd)||_0x584d8a===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x4cd3dd;const _0x4924af=this[_0x41b997(-_0x5a4165._0x381064,-_0x5a4165._0x1a0391,-0x107,-_0x5a4165._0x4a4d59)](_0x4cd3dd,_0x584d8a);await this[_0x41b997(-0x110,-_0x5a4165._0x478063,-_0x5a4165._0x567a4d,-0x1bc)](_0x4924af,_0x562e74);}catch(_0xe61821){if(!this[_0x41b997(-_0x5a4165._0x20f356,-0x111,-_0x5a4165._0x294cca,-_0x5a4165._0x48bee7)](_0xe61821)||_0x584d8a===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0xe61821;const _0x55c326=this[_0x5309bd(0x383,0x330,0x3d4,0x393)](void 0x0,_0x584d8a);await this[_0x41b997(-_0x5a4165._0x5cba5f,-0x1e6,-_0x5a4165._0x34bb6c,-0x1bc)](_0x55c326,_0x562e74);}}throw new Error(_0x5309bd(_0x5a4165._0x480c2a,_0x5a4165._0x474f3c,_0x5a4165._0x2019a3,0x357));}[_0x11bd88(0x49a,0x4f9,0x582,0x452)](){const _0x1517a6={_0x427497:0x1d6,_0x490cac:0x5a,_0x4613d3:0xd8,_0x2382d6:0x12a},_0x24ff17={_0x2ef8be:0x3e5,_0x2dce16:0x150,_0x52ab7a:0x16c},_0x551665={_0x55fe74:0x1a1};function _0x14267f(_0x581540,_0x4ebad8,_0x3ef6ad,_0x4e8004){return _0xd1496a(_0x4ebad8- -0x494,_0x4ebad8-0x18f,_0x581540,_0x4e8004-_0x551665._0x55fe74);}function _0x1aea61(_0x51a7a9,_0x9580a6,_0x4c64c5,_0x472fe0){return _0xd1496a(_0x472fe0- -_0x24ff17._0x2ef8be,_0x9580a6-_0x24ff17._0x2dce16,_0x4c64c5,_0x472fe0-_0x24ff17._0x52ab7a);}return this[_0x1aea61(0x289,_0x1517a6._0x427497,0x14d,0x1ed)][_0x1aea61(_0x1517a6._0x490cac,_0x1517a6._0x4613d3,0x86,_0x1517a6._0x2382d6)]();}async[_0x11bd88(0x557,0x55f,0x47d,0x577)](_0x409957,_0x524b12){const _0x2bdb73={_0x3a7e40:0x494,_0x4e1b09:0x47c,_0x1f5d2b:0x4c1};function _0x19495e(_0x397e42,_0x2669fe,_0x538a2f,_0x30dee4){return _0xd1496a(_0x538a2f- -0x150,_0x2669fe-0x12b,_0x30dee4,_0x30dee4-0x79);}return await this['providerAdapter'][_0x19495e(_0x2bdb73._0x3a7e40,0x479,_0x2bdb73._0x4e1b09,_0x2bdb73._0x1f5d2b)](_0x409957,_0x524b12);}[_0xd1496a(0x576,0x500,0x48b,0x4ee)](_0x4e2567){const _0x2aaa17={_0x4e844d:0x4b,_0x4d6fcb:0x63},_0x1be427={_0x914980:0x11b};function _0x5673aa(_0x5a3f76,_0x39511c,_0x3033dc,_0x2f0984){return _0x11bd88(_0x2f0984- -0x532,_0x3033dc,_0x3033dc-_0x1be427._0x914980,_0x2f0984-0x18e);}return this[_0x5673aa(_0x2aaa17._0x4e844d,_0x2aaa17._0x4d6fcb,0x5,0x2b)]['mapApiError'](_0x4e2567);}async[_0xd1496a(0x52d,0x47e,0x4f1,0x47e)](_0x4c8ca1){const _0x4a54ee={_0x92f9b8:0x644};function _0x11b313(_0x10a945,_0x5ac7a5,_0x507df3,_0x54a81f){return _0x11bd88(_0x507df3-0x61,_0x54a81f,_0x507df3-0x143,_0x54a81f-0x68);}return await this[_0x11b313(0x4f3,0x6a1,0x5be,_0x4a54ee._0x92f9b8)]['toApiError'](_0x4c8ca1);}['getSurface'](_0x54134b){const _0xc19aa2={_0x451a83:0x30},_0x1d2f48={_0x5d988e:0x3cc,_0x355913:0x1ad,_0x5267be:0x90},_0x48ef11=this['surfaces'][_0xecee8d(-0x4d,0x52,0x4a,-_0xc19aa2._0x451a83)](_0x54134b);if(!_0x48ef11)throw new Error('Unknown\x20model\x20surface:\x20'+_0x54134b);function _0xecee8d(_0x506f09,_0xcdef0c,_0x11580a,_0x5e49c6){return _0x11bd88(_0x11580a- -_0x1d2f48._0x5d988e,_0x506f09,_0x11580a-_0x1d2f48._0x355913,_0x5e49c6-_0x1d2f48._0x5267be);}return _0x48ef11;}async['prepareChatRequest'](_0x4b5184,_0x54ec0f){const _0x50b138={_0x33cee5:0x3b4,_0x1bb59f:0x485,_0x3306b0:0x4b0,_0x383aeb:0x13a,_0x157211:0x12f,_0x4e5524:0x201,_0x6d04f2:0xbe,_0x30995e:0x128,_0x345b49:0x4ac,_0x262ad8:0x410,_0x128980:0x3d9,_0x2b30c8:0x44c,_0x3cf45d:0x56,_0x2c3de7:0x76,_0x1227d7:0x151},_0xedde43={_0x935299:0x161,_0x266e98:0x179},_0x1da9df={_0x5154b7:0x701,_0x1a1e97:0x1a9,_0xf852:0x65};function _0x5188c7(_0x5af95d,_0x9461b4,_0x3cadf9,_0xc6ce73){return _0xd1496a(_0x3cadf9- -_0x1da9df._0x5154b7,_0x9461b4-_0x1da9df._0x1a1e97,_0xc6ce73,_0xc6ce73-_0x1da9df._0xf852);}const _0xd3d7dd=toModelRequest(_0x4b5184),_0x3ff382=await prepareProviderRequest(_0xd3d7dd,{'sessionManager':this[_0x5f1b2b(0x3b8,0x377,_0x50b138._0x33cee5,0x43b)],'requestMutators':this[_0x5188c7(-0x1c3,-0x258,-0x253,-0x335)],'signal':_0x54ec0f}),_0x1c3afb=toChatRequest(_0x3ff382[_0x5f1b2b(_0x50b138._0x1bb59f,_0x50b138._0x3306b0,0x3d9,0x463)]),_0x578c0c=this[_0x5188c7(-0xa5,-_0x50b138._0x383aeb,-_0x50b138._0x157211,-_0x50b138._0x4e5524)][_0x5188c7(-_0x50b138._0x6d04f2,-0x157,-_0x50b138._0x30995e,-0x1c9)](this[_0x5f1b2b(_0x50b138._0x345b49,0x42d,0x430,0x44a)],_0x3ff382[_0x5f1b2b(_0x50b138._0x262ad8,0x4b8,_0x50b138._0x128980,_0x50b138._0x2b30c8)]);if(!_0x578c0c)throw this[_0x5f1b2b(0x354,0x3f4,0x353,0x3ab)]();function _0x5f1b2b(_0x28501f,_0x52c127,_0x45810f,_0x40277a){return _0x11bd88(_0x40277a- -0xef,_0x28501f,_0x45810f-_0xedde43._0x935299,_0x40277a-_0xedde43._0x266e98);}return{'baseUrl':this[_0x5188c7(-0x105,-0x162,-_0x50b138._0x157211,-_0x50b138._0x3cf45d)]['resolveBaseUrl'](this['baseUrl'],_0x3ff382[_0x5188c7(-0x166,-_0x50b138._0x2c3de7,-_0x50b138._0x1227d7,-0x8a)]),'credential':_0x578c0c,'request':_0x1c3afb,'session':_0x3ff382[_0x5188c7(-0x8e,-0x1a1,-0x151,-0x178)]};}[_0x11bd88(0x56a,0x4b1,0x5bb,0x5e8)](_0x450330){const _0x5d10c9={_0x4c7ce8:0x96,_0x5d8b1d:0xed,_0x47ba76:0x1c7},_0x1705a6={_0x1496d6:0x4cf},_0x5a8b2b={_0x64e61a:0x34c,_0x3a6fba:0x1e6,_0x549c5e:0x133};function _0x4c8de3(_0xed9125,_0x589696,_0x309bfa,_0x585882){return _0x11bd88(_0xed9125- -_0x5a8b2b._0x64e61a,_0x309bfa,_0x309bfa-_0x5a8b2b._0x3a6fba,_0x585882-_0x5a8b2b._0x549c5e);}function _0xb30952(_0x22ee32,_0x4e4073,_0x197ee2,_0x4e3740){return _0x11bd88(_0x197ee2- -_0x1705a6._0x1496d6,_0x22ee32,_0x197ee2-0x6e,_0x4e3740-0x37);}return{...structuredClone(_0x450330),..._0x450330[_0x4c8de3(_0x5d10c9._0x4c7ce8,0x17c,0x176,0x16b)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0xb30952(-0x9f,-0x143,-_0x5d10c9._0x5d8b1d,-_0x5d10c9._0x47ba76)])}:{}};}async[_0x11bd88(0x55b,0x53a,0x4f2,0x5bb)](_0x49923d,_0x1530e1,_0x3df41f,_0xa849e2={},_0x18fcb6=!![]){const _0x5a3edf={_0x38e917:0x21f},_0x23370e={_0x3fbf46:0x33b,_0x42962f:0x43c,_0x41cd57:0x3ca,_0x58aafb:0x241,_0x2391b8:0x1d3,_0x1b1329:0x3b5,_0x276e2c:0x450,_0x2b63e8:0x35,_0x593506:0xd9,_0x1cb1c1:0x368,_0x3b654e:0x3e7,_0x280352:0x423,_0x250696:0x214,_0x2e6a6f:0x403,_0x44f9a7:0x3cb,_0x4a7039:0x36e,_0x4ee471:0x16b,_0x1e0be6:0x19b,_0x2eb540:0xc6,_0x2a9ce7:0xf0,_0x3304b3:0x123,_0x29de05:0x101,_0x5dd758:0x190,_0x261383:0x370,_0x2c28b6:0x456,_0x28447c:0x428,_0x204194:0x1a6,_0x78d29b:0xe7,_0x4a65de:0x30f,_0x11b5a7:0x36d,_0x57517c:0x2cf,_0x239cb3:0x2d0,_0x2eb80f:0x2d2,_0x49fddf:0x3ac,_0x5dfae4:0x8f},_0x5a2040={_0x29ca52:0x624,_0x322d5c:0x7c},{signal:_0x4017f8}=_0xa849e2;function _0x1d458f(_0x2aa703,_0x3cfbf5,_0x5b1dd8,_0x1acbaf){return _0x11bd88(_0x3cfbf5- -_0x5a2040._0x29ca52,_0x2aa703,_0x5b1dd8-0x138,_0x1acbaf-_0x5a2040._0x322d5c);}const _0x11fec8=async()=>{const _0x32767c={_0x9c74d8:0x17c};function _0x2e4235(_0x18244a,_0x389f3c,_0x6018c8,_0x2ff0c2){return _0x4abb(_0x18244a- -0x2e1,_0x2ff0c2);}const _0x48b475=await this[_0x3dd91f(_0x23370e._0x3fbf46,_0x23370e._0x42962f,_0x23370e._0x41cd57,0x3c2)](_0x49923d,_0x4017f8);let _0x498a3f;try{_0x498a3f=_0x1530e1[_0x3dd91f(_0x23370e._0x58aafb,0x2be,_0x23370e._0x2391b8,0x2ae)](_0x48b475['request']);}catch(_0x3c5b24){if(_0x3c5b24 instanceof Error)throw new ProviderRequestConstructionError(_0x3c5b24[_0x3dd91f(0x3ed,0x40e,_0x23370e._0x1b1329,0x3f6)]);throw _0x3c5b24;}function _0x3dd91f(_0x566cde,_0x6ec005,_0x57dcd9,_0x2c33a9){return _0x4abb(_0x2c33a9-_0x32767c._0x9c74d8,_0x6ec005);}if(!_0x498a3f['path'])throw new ProviderRequestConstructionError(_0x3dd91f(0x418,0x47b,0x44b,_0x23370e._0x276e2c)+_0x1530e1['id']+_0x3dd91f(0x452,0x43a,0x3f4,0x373));const _0x5c1d7e=await this[_0x2e4235(-_0x23370e._0x2b63e8,-_0x23370e._0x593506,-0x65,0x36)]({'request':_0x48b475[_0x3dd91f(0x4eb,_0x23370e._0x1cb1c1,_0x23370e._0x3b654e,_0x23370e._0x280352)],'body':_0x498a3f[_0x3dd91f(0x393,0x39b,0x36b,0x36d)],'credential':_0x48b475[_0x2e4235(-0x157,-0x156,-_0x23370e._0x250696,-0xc2)],'session':_0x48b475['session'],'stream':_0x3df41f},{'accept':_0x498a3f[_0x3dd91f(_0x23370e._0x2e6a6f,_0x23370e._0x44f9a7,_0x23370e._0x4a7039,0x3ad)]??(_0x3df41f?_0x2e4235(-0x118,-_0x23370e._0x4ee471,-_0x23370e._0x1e0be6,-_0x23370e._0x2eb540):'application/json'),'includeContentType':_0x498a3f[_0x2e4235(-_0x23370e._0x2a9ce7,-_0x23370e._0x3304b3,-_0x23370e._0x29de05,-_0x23370e._0x5dd758)]!==void 0x0});for(const [_0x24b95a,_0x2464bd]of Object[_0x3dd91f(0x3ff,0x2d8,0x33c,0x329)](_0x498a3f[_0x3dd91f(0x35c,_0x23370e._0x261383,0x333,0x2ad)]??{})){_0x5c1d7e[_0x3dd91f(0x471,0x346,0x3eb,0x408)](_0x24b95a,_0x2464bd);}return this[_0x3dd91f(0x3ab,_0x23370e._0x2c28b6,_0x23370e._0x28447c,0x3c4)](''+_0x48b475[_0x3dd91f(0x416,0x414,0x3e0,0x349)]+_0x498a3f[_0x2e4235(-_0x23370e._0x204194,-0x1c6,-0x16c,-_0x23370e._0x78d29b)],{'method':_0x2e4235(-0x111,-0xc2,-0xaf,-0x1ae),'headers':_0x5c1d7e,..._0x498a3f[_0x3dd91f(0x2f0,_0x23370e._0x4a65de,0x426,_0x23370e._0x11b5a7)]!==void 0x0?{'body':JSON[_0x3dd91f(_0x23370e._0x57517c,_0x23370e._0x239cb3,_0x23370e._0x2eb80f,_0x23370e._0x49fddf)](_0x498a3f[_0x2e4235(-_0x23370e._0x2a9ce7,-0x8d,-_0x23370e._0x5dfae4,-0x11)])}:{},'signal':_0x4017f8});};return _0x18fcb6?await this[_0x1d458f(-0x29a,-0x1e7,-0x166,-_0x5a3edf._0x38e917)](_0x11fec8,_0xa849e2):await _0x11fec8();}async*[_0x11bd88(0x522,0x524,0x5e5,0x5dc)](_0x3e5057,_0x464845,_0x4329a3={}){const _0x44c397={_0x54da2b:0x347,_0x39005e:0x36e,_0x589e9f:0x37e,_0x5b8364:0x1c2,_0x21efe1:0x171,_0x3f050b:0x2b5,_0x5369c6:0x329,_0x375972:0x2ef,_0x293214:0x18c,_0x563636:0x2a4,_0x1203a4:0x1e2,_0x51c5b1:0x35f,_0x4f68cc:0x154,_0x266c27:0x115,_0x54e956:0xa0,_0xa54952:0x9c,_0x54a0af:0x11e,_0x30f494:0x281,_0x1109d2:0x19b,_0x243d96:0x1e0,_0x3b1a3d:0x2ec,_0x1d7d54:0x2b9,_0x4f025d:0x288,_0x18f7af:0x2cd,_0x582d86:0x23e,_0x5cc195:0x1d6,_0x580f0e:0x2a8,_0x3ce7a3:0x218,_0x524c49:0x111,_0x4d11f9:0x121,_0x2c2f77:0xe6,_0x1c5a19:0x24e,_0x22b940:0x117,_0x2aeccb:0x8a,_0x1a810f:0x135,_0x5ad6e3:0x18d,_0x7e7a4b:0x311,_0x47b4e2:0x92,_0x217d4f:0xa5,_0x43b006:0x17,_0x296186:0x9d,_0x340305:0xad,_0x2bd7e2:0x3e,_0x1e8670:0x72},_0x28ffda={_0x4d6da4:0x3e4,_0x19c136:0x1d1,_0x2ad857:0x18b},{signal:_0x13543a}=_0x4329a3;function _0x415a2d(_0x34ac66,_0x598859,_0x4d673f,_0x33c8f2){return _0xd1496a(_0x34ac66- -0x289,_0x598859-0x123,_0x33c8f2,_0x33c8f2-0x19d);}let _0x39c56f=![];function _0x5b8c66(_0x472f28,_0x530fc1,_0x12fd99,_0x425788){return _0x11bd88(_0x12fd99- -_0x28ffda._0x4d6da4,_0x425788,_0x12fd99-_0x28ffda._0x19c136,_0x425788-_0x28ffda._0x2ad857);}for(let _0x3d486e=0x0;_0x3d486e<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x3d486e+=0x1){let _0x5e6c69=![];try{const _0x392f7c=await this[_0x415a2d(_0x44c397._0x54da2b,_0x44c397._0x39005e,_0x44c397._0x589e9f,0x432)](_0x3e5057,_0x464845,!![],_0x4329a3,![]);if(_0x392f7c[_0x415a2d(0x23a,_0x44c397._0x5b8364,0x225,_0x44c397._0x21efe1)]===0x191&&this[_0x415a2d(0x316,_0x44c397._0x3f050b,_0x44c397._0x5369c6,_0x44c397._0x375972)]&&!_0x39c56f){_0x39c56f=!![],this['sessionManager'][_0x5b8c66(0x10f,0x1d8,0x130,_0x44c397._0x293214)]();continue;}if(!_0x392f7c['ok'])throw await this[_0x415a2d(_0x44c397._0x563636,0x306,_0x44c397._0x1203a4,_0x44c397._0x51c5b1)](_0x392f7c);const _0x1b5856=_0x464845[_0x5b8c66(_0x44c397._0x4f68cc,_0x44c397._0x266c27,_0x44c397._0x54e956,_0x44c397._0xa54952)]?.(_0x3e5057);if(!_0x1b5856?.['consumeSseEvent'])throw new Error(_0x5b8c66(_0x44c397._0x54a0af,_0x44c397._0x30f494,_0x44c397._0x1109d2,0x232)+_0x464845['id']+_0x415a2d(0x234,_0x44c397._0x243d96,0x230,_0x44c397._0x3b1a3d));for await(const _0x2175fc of iterateSseEvents(_0x392f7c,_0x13543a)){const _0x55e7d5=_0x1b5856['consumeSseEvent'](_0x2175fc);for(const _0x2de0dc of _0x55e7d5){_0x5e6c69=!![],yield _0x2de0dc;}}yield{'type':_0x415a2d(_0x44c397._0x1d7d54,_0x44c397._0x4f025d,_0x44c397._0x18f7af,0x37d),'response':_0x1b5856[_0x415a2d(_0x44c397._0x582d86,_0x44c397._0x5cc195,_0x44c397._0x580f0e,_0x44c397._0x3ce7a3)]()};return;}catch(_0x73a01d){if(_0x5e6c69||!this[_0x5b8c66(_0x44c397._0x524c49,_0x44c397._0x4d11f9,_0x44c397._0x2c2f77,0xde)](_0x73a01d)||_0x3d486e===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x73a01d;const _0x382c99=this[_0x415a2d(0x30d,_0x44c397._0x1c5a19,0x298,0x33d)](void 0x0,_0x3d486e),_0x26e97e={'type':_0x5b8c66(_0x44c397._0x22b940,_0x44c397._0x2aeccb,_0x44c397._0x1a810f,_0x44c397._0x5ad6e3),'attempt':_0x3d486e+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x73a01d instanceof Error?_0x73a01d[_0x415a2d(_0x44c397._0x7e7a4b,0x23f,0x38a,0x234)]:String(_0x73a01d),'delayMs':_0x382c99,'reason':this[_0x5b8c66(_0x44c397._0x47b4e2,0xa9,_0x44c397._0x217d4f,0xe5)](_0x73a01d)?'transport_error':_0x5b8c66(0xec,0x17,_0x44c397._0x43b006,_0x44c397._0x296186)};yield _0x26e97e,await this[_0x5b8c66(-_0x44c397._0x340305,-0x5,_0x44c397._0x2bd7e2,_0x44c397._0x1e8670)](_0x382c99,_0x13543a);}}}async*[_0xd1496a(0x587,0x4bb,0x569,0x4b4)](_0x11f610,_0x521363,_0x46d97b){const _0x1e0c3b={_0x553529:0x40b,_0x400c3d:0x3eb,_0x32f7b5:0x4d1,_0x51f09b:0x627,_0x313411:0x548,_0x2e6d9b:0x166,_0x52191a:0x193,_0x3c1b74:0x224,_0x3c2a35:0x30d,_0x3d6c10:0x20e,_0x17dea0:0x1b6,_0x1569de:0x23d,_0x37be72:0x27e,_0x3fd1de:0x217,_0x380837:0x4ca,_0x13e281:0x537,_0x4bf6c4:0x289,_0x41633c:0x3d4,_0x476bba:0x2fe,_0x20dafd:0x58f,_0x13d5e5:0x3df,_0x4c2961:0x438,_0x2130b8:0x5f7,_0x3b9725:0x58c,_0x148a3b:0x52f,_0xedd85b:0x531,_0x50c3ed:0x526,_0x5acb1a:0x2b1,_0x455526:0x43a,_0x8252fa:0x278,_0x360dc6:0x22d,_0x295a5d:0x1d1,_0x57d8ed:0x42d,_0x434d43:0x410,_0x459f42:0x4b3,_0x5c5299:0x254,_0x18aeac:0x304,_0x27508a:0x22a,_0x53904f:0x329,_0x37f2f6:0x2ec,_0x47d0ba:0x2fd,_0x3e2d47:0x249,_0x342a14:0x164,_0x33f453:0x323,_0x295b8b:0x51e,_0x449304:0x52e,_0x3f4084:0x4ad,_0x38cb97:0x3dd,_0x3c92ed:0x48b,_0x13da6c:0x42f,_0xd82dc8:0x424,_0x4cb47c:0x43f,_0x4d59d2:0x405,_0x47c536:0x549,_0x1432f5:0x4ff,_0x3b0c1d:0x4f7},_0x397592={_0x2d20c2:0x91,_0x225483:0x1e7},_0x1a5cb9=await this[_0x4bfdf1(_0x1e0c3b._0x553529,0x40b,_0x1e0c3b._0x400c3d,_0x1e0c3b._0x32f7b5)](_0x11f610,_0x46d97b);function _0x20b567(_0x5a2054,_0x3ebab9,_0x5652e1,_0x3004a6){return _0xd1496a(_0x5a2054- -0x255,_0x3ebab9-_0x397592._0x2d20c2,_0x5652e1,_0x3004a6-_0x397592._0x225483);}const _0x1d741e=_0x521363['createRequest'](_0x1a5cb9['request']),_0x177042=_0x521363['createStreamParser']?.(_0x11f610);if(!_0x177042?.['consumeWebSocketEvent'])throw new Error(_0x4bfdf1(_0x1e0c3b._0x51f09b,0x624,0x4bc,0x55f)+_0x521363['id']+_0x4bfdf1(0x4f5,0x501,0x613,_0x1e0c3b._0x313411));function _0x4bfdf1(_0x5b1d70,_0x4d68f5,_0x24a039,_0x223ce7){return _0x11bd88(_0x223ce7- -0x20,_0x24a039,_0x24a039-0x15f,_0x223ce7-0x179);}const _0x10486b=_0x1d741e['url']??(_0x1d741e[_0x20b567(0x206,0x231,0x2be,0x28a)]?(''+_0x1a5cb9['baseUrl']+_0x1d741e[_0x20b567(0x206,_0x1e0c3b._0x2e6d9b,_0x1e0c3b._0x52191a,0x2b8)])['replace'](/^http:/,_0x20b567(0x25b,0x26c,_0x1e0c3b._0x3c1b74,0x21f))[_0x20b567(0x252,0x1d1,_0x1e0c3b._0x3c2a35,0x30f)](/^https:/,_0x20b567(_0x1e0c3b._0x3d6c10,0x2b9,_0x1e0c3b._0x17dea0,0x1bb)):void 0x0);if(!_0x10486b)throw new ProviderRequestConstructionError('Surface\x20'+_0x521363['id']+_0x20b567(_0x1e0c3b._0x1569de,_0x1e0c3b._0x37be72,_0x1e0c3b._0x3fd1de,0x259));const _0x3be293=await this[_0x4bfdf1(0x5b4,_0x1e0c3b._0x380837,0x4e4,_0x1e0c3b._0x13e281)]({'request':_0x1a5cb9[_0x20b567(0x372,_0x1e0c3b._0x4bf6c4,0x328,0x3c9)],'body':_0x1d741e['initialEvent'],'credential':_0x1a5cb9['credential'],'session':_0x1a5cb9[_0x20b567(0x35b,_0x1e0c3b._0x41633c,0x27e,_0x1e0c3b._0x476bba)],'stream':!![]},{'accept':_0x1d741e[_0x4bfdf1(_0x1e0c3b._0x20dafd,0x44e,0x44a,0x4bc)]??'application/json','includeContentType':![]});for(const [_0x1b0a7e,_0x2582da]of Object[_0x4bfdf1(0x498,0x36f,_0x1e0c3b._0x13d5e5,_0x1e0c3b._0x4c2961)](_0x1d741e['headers']??{})){_0x3be293[_0x4bfdf1(_0x1e0c3b._0x2130b8,_0x1e0c3b._0x3b9725,_0x1e0c3b._0x148a3b,0x517)](_0x1b0a7e,_0x2582da);}_0x3be293[_0x4bfdf1(0x590,_0x1e0c3b._0xedd85b,0x4d8,_0x1e0c3b._0x50c3ed)](_0x4bfdf1(0x564,0x4d3,0x524,0x4bc));const _0x24ab6d=this[_0x20b567(0x392,_0x1e0c3b._0x5acb1a,_0x1e0c3b._0x455526,0x3b6)]({'headers':Object['fromEntries'](_0x3be293[_0x20b567(_0x1e0c3b._0x8252fa,_0x1e0c3b._0x360dc6,0x326,_0x1e0c3b._0x295a5d)]()),'url':_0x10486b});try{throwIfAborted(_0x46d97b);_0x24ab6d[_0x4bfdf1(_0x1e0c3b._0x57d8ed,0x46d,_0x1e0c3b._0x434d43,_0x1e0c3b._0x459f42)]!==WebSocket[_0x20b567(0x27f,_0x1e0c3b._0x5c5299,0x1e8,0x248)]&&await waitForWebSocketOpen(_0x24ab6d,_0x46d97b);throwIfAborted(_0x46d97b);_0x1d741e[_0x20b567(_0x1e0c3b._0x18aeac,_0x1e0c3b._0x27508a,_0x1e0c3b._0x53904f,0x3dc)]!==void 0x0&&_0x24ab6d['send'](JSON['stringify'](_0x1d741e[_0x20b567(_0x1e0c3b._0x18aeac,_0x1e0c3b._0x37f2f6,0x321,_0x1e0c3b._0x47d0ba)]));for await(const _0x27fad5 of iterateWebSocketMessages(_0x24ab6d,_0x46d97b)){yield*_0x177042[_0x20b567(_0x1e0c3b._0x3e2d47,_0x1e0c3b._0x342a14,0x1a0,_0x1e0c3b._0x33f453)](_0x27fad5);if(_0x177042[_0x4bfdf1(_0x1e0c3b._0x295b8b,0x486,0x4b6,_0x1e0c3b._0x449304)]?.())break;}yield{'type':_0x4bfdf1(0x467,0x542,0x474,_0x1e0c3b._0x3f4084),'response':_0x177042['finish']()};}finally{_0x24ab6d[_0x20b567(0x2f3,0x233,0x309,_0x1e0c3b._0x38cb97)]===WebSocket[_0x4bfdf1(_0x1e0c3b._0x3c92ed,_0x1e0c3b._0x13da6c,_0x1e0c3b._0xd82dc8,_0x1e0c3b._0x4cb47c)]&&_0x24ab6d[_0x4bfdf1(0x587,0x555,_0x1e0c3b._0x4d59d2,0x4e5)](0x3e8,_0x46d97b?.[_0x4bfdf1(0x579,_0x1e0c3b._0x47c536,_0x1e0c3b._0x1432f5,_0x1e0c3b._0x3b0c1d)]?'aborted':'completed');}}};async function createHttpError(_0x1a6c82){const _0x145f2a={_0x4f954d:0x3d8,_0x3c2a1b:0x412,_0x297251:0x43a,_0x106057:0x3b6,_0x151ad8:0x3c2,_0x9fcbef:0xc8,_0x516999:0x3ad,_0x25fed6:0x309},_0x3752cc={_0x4fa021:0x101},_0x3211af={_0x4e381d:0x58c,_0x33fe88:0x129};function _0x37b8ad(_0x251172,_0x509095,_0x4360f5,_0x47ee2c){return _0x11bd88(_0x47ee2c- -_0x3211af._0x4e381d,_0x251172,_0x4360f5-_0x3211af._0x33fe88,_0x47ee2c-0x71);}const _0x34d7be=await _0x1a6c82[_0x279d2b(0x334,0x430,_0x145f2a._0x4f954d,0x319)]();function _0x279d2b(_0xb37863,_0x5af878,_0x1c4db1,_0x1dc149){return _0xd1496a(_0x1c4db1- -_0x3752cc._0x4fa021,_0x5af878-0x183,_0x5af878,_0x1dc149-0x5e);}const _0x276f74=_0x34d7be[_0x37b8ad(-0x1fd,-0x12f,-0x233,-0x15e)]()||_0x1a6c82[_0x279d2b(_0x145f2a._0x3c2a1b,_0x145f2a._0x297251,_0x145f2a._0x106057,0x2e6)]||_0x279d2b(0x27d,0x365,0x352,_0x145f2a._0x151ad8);return new Error(_0x37b8ad(0x12,0x55,_0x145f2a._0x9fcbef,0x1)+_0x1a6c82[_0x279d2b(_0x145f2a._0x516999,_0x145f2a._0x25fed6,_0x145f2a._0x151ad8,0x42c)]+':\x20'+_0x276f74);}var AnthropicProviderAdapter=class{[_0xd1496a(0x582,0x4eb,0x54f,0x61b)];[_0x11bd88(0x495,0x3c1,0x50e,0x411)];[_0xd1496a(0x5fd,0x5d7,0x592,0x641)];constructor(_0x493670){const _0x3882b7={_0x5488f6:0xbb,_0x5a1081:0x184,_0x2e974c:0x67,_0x29102e:0x77},_0x1c1a8e={_0x997eb7:0xf,_0x4040cb:0x143};this['authScheme']=_0x493670['authScheme'],this['headerResolver']=_0x493670[_0x60e9aa(-_0x3882b7._0x5488f6,-0xa9,-_0x3882b7._0x5a1081,-0x136)];function _0x60e9aa(_0xcd4101,_0x5aa899,_0x20edfc,_0xd86dbe){return _0xd1496a(_0xd86dbe- -0x640,_0x5aa899-_0x1c1a8e._0x997eb7,_0x5aa899,_0xd86dbe-_0x1c1a8e._0x4040cb);}function _0x2be397(_0x31ef23,_0x243025,_0x5979d6,_0x2b71c7){return _0x11bd88(_0x5979d6- -0x589,_0x31ef23,_0x5979d6-0xb2,_0x2b71c7-0x42);}this[_0x2be397(-0xd4,0x69,-0x1,-0x31)]=_0x493670[_0x2be397(0x1f,-_0x3882b7._0x2e974c,-0x1,-_0x3882b7._0x29102e)];}[_0x11bd88(0x49a,0x444,0x465,0x3ce)](){return new Error('AnthropicModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x11bd88(0x557,0x4be,0x48e,0x54e)](_0x42b7b2,_0x23317c){const _0x36fd5b={_0xba4749:0x50a,_0x7ee99c:0x438,_0x2e5ea2:0x48d,_0x82fc75:0x4af,_0x39fcbd:0x465,_0xb20922:0x161,_0x441fe2:0x240,_0x120072:0x4f7,_0x2a9cf0:0x40f,_0x16d097:0x561,_0x3e5fad:0x55b,_0x12d81a:0x4d2,_0x13d944:0x4dc,_0x35c40c:0x441,_0x5f2164:0x436,_0x13a7e6:0x505,_0x5f595c:0x4eb,_0x45fd29:0x475,_0x379acd:0x422,_0x3dc8ec:0x36c,_0x830983:0x4b6,_0x23a874:0x56b,_0xd47a11:0x110,_0xd096ef:0x1a0,_0x3fd352:0x222,_0x26930b:0x54,_0x304dad:0x143,_0x50fbbd:0x93,_0x5e102b:0x13e,_0x4eafaa:0x37b,_0x1f3260:0x404,_0x4abcb6:0x104,_0x4fe64c:0x54b,_0x1f1e80:0x28f,_0x304092:0x244,_0x4be7d5:0x19a,_0x15ffd4:0x531,_0x29a069:0x50a},_0x40e242={_0x4492fb:0x5b};function _0xd8f14d(_0x25649f,_0x1b16f4,_0x3bb9d9,_0x45757b){return _0x11bd88(_0x45757b- -0x2f7,_0x25649f,_0x3bb9d9-0x16c,_0x45757b-0x133);}const _0x297e37=new Headers();_0x297e37[_0x424ab1(0x4cf,_0x36fd5b._0xba4749,0x56d,_0x36fd5b._0x7ee99c)]('accept',_0x23317c[_0x424ab1(_0x36fd5b._0x2e5ea2,_0x36fd5b._0x82fc75,0x46b,_0x36fd5b._0x39fcbd)]),_0x297e37[_0xd8f14d(_0x36fd5b._0xb20922,0x275,0x163,_0x36fd5b._0x441fe2)](_0x424ab1(_0x36fd5b._0x120072,0x4cf,0x47e,_0x36fd5b._0x2a9cf0),this[_0x424ab1(_0x36fd5b._0x16d097,_0x36fd5b._0x3e5fad,0x573,0x47c)]);function _0x424ab1(_0x587744,_0x197ab9,_0x4e76d0,_0x5d9c11){return _0x11bd88(_0x197ab9- -0x2d,_0x587744,_0x4e76d0-_0x40e242._0x4492fb,_0x5d9c11-0x72);}_0x23317c[_0x424ab1(_0x36fd5b._0x12d81a,_0x36fd5b._0x13d944,_0x36fd5b._0x35c40c,_0x36fd5b._0x5f2164)]!==![]&&_0x297e37['set']('content-type',_0x424ab1(_0x36fd5b._0x13a7e6,_0x36fd5b._0x5f595c,0x500,0x586));this['authScheme']==='bearer'?_0x297e37['set'](_0x424ab1(_0x36fd5b._0x45fd29,_0x36fd5b._0x379acd,_0x36fd5b._0x3dc8ec,0x35a),_0x424ab1(0x407,_0x36fd5b._0x830983,_0x36fd5b._0x23a874,0x4ea)+_0x42b7b2[_0xd8f14d(_0x36fd5b._0xd47a11,_0x36fd5b._0xd096ef,0x5d,0x13e)]['value']):_0x297e37[_0xd8f14d(0x329,0x165,_0x36fd5b._0x3fd352,0x240)](_0xd8f14d(_0x36fd5b._0x26930b,0x209,0xff,0x134),_0x42b7b2[_0xd8f14d(_0x36fd5b._0x304dad,0x72,_0x36fd5b._0x50fbbd,_0x36fd5b._0x5e102b)][_0x424ab1(_0x36fd5b._0x4eafaa,_0x36fd5b._0x1f3260,0x393,0x48b)]);const _0x41fa55=await this[_0xd8f14d(0x14d,_0x36fd5b._0x4abcb6,0x12b,0x19e)]?.({'body':_0x42b7b2[_0x424ab1(0x4ef,0x46f,_0x36fd5b._0x4fe64c,0x428)],'credential':_0x42b7b2['credential'],'request':_0x42b7b2[_0xd8f14d(0x1b8,0x2d0,0x284,0x25b)],'session':_0x42b7b2[_0xd8f14d(_0x36fd5b._0x1f1e80,0x32f,0x206,_0x36fd5b._0x304092)],'stream':_0x42b7b2[_0x424ab1(0x5a7,0x54a,0x49e,0x4cf)]});for(const [_0x3d922d,_0x5ca215]of Object[_0xd8f14d(0x11c,0x12d,_0x36fd5b._0x4be7d5,0x161)](_0x41fa55??{})){_0x297e37[_0x424ab1(_0x36fd5b._0x15ffd4,_0x36fd5b._0x29a069,0x534,0x4dd)](_0x3d922d,_0x5ca215);}return _0x297e37;}[_0x11bd88(0x501,0x48f,0x52c,0x42f)](_0x2762e4){return _0x2762e4;}[_0x11bd88(0x40c,0x48f,0x338,0x3ff)](_0x157897,_0x233878){return resolveSessionBaseUrl(_0x157897,_0x233878);}[_0x11bd88(0x564,0x4fc,0x5e0,0x582)](_0x341b26,_0x11b65a){return resolveApiCredential(_0x341b26,_0x11b65a);}async[_0x11bd88(0x4b8,0x535,0x455,0x3f0)](_0x5771a3){return await createHttpError(_0x5771a3);}},AnthropicModel=class extends RoutedModel{constructor(_0x4476d4={}){const _0x3174c4={_0xcc4e05:0x342,_0x27a9d1:0x34a,_0x116141:0x42a,_0x2cbd5a:0x25a,_0x54f793:0x1eb,_0x51bb04:0x258,_0x561fba:0x37f,_0x583368:0x1b3,_0x84f452:0x27a,_0x27c401:0x278,_0x3fa587:0x360,_0x243572:0x1ab,_0x2d37bf:0x21f,_0x1a1af2:0x228,_0x114800:0x1db,_0x1281d2:0x136,_0x332d26:0x1c9,_0x2624d0:0x368,_0x4f5a40:0x306,_0xd60efe:0x3db,_0x109330:0x2e3,_0x1320c2:0x231,_0x3d6a8f:0x1fa,_0x57f2d9:0x2bc,_0x413563:0x2a6,_0x555588:0x1d3,_0x1090fd:0x403,_0x3eda35:0x399,_0x1d5c7e:0x24a,_0x55f6c0:0x243,_0x5ad0da:0x232,_0x98d04a:0x15a,_0xfd4b8b:0x175},_0x12302d={_0x1d49ef:0xb6,_0x52c843:0x3b},_0x215fb8={_0x57300f:0xe8};function _0x120a42(_0x46d0df,_0x5b5829,_0x4244bb,_0x4ae8dd){return _0xd1496a(_0x5b5829- -0x264,_0x5b5829-_0x215fb8._0x57300f,_0x46d0df,_0x4ae8dd-0x1b0);}function _0x15b85d(_0x5ec347,_0x598bbe,_0x2b73b1,_0xedd4c5){return _0x11bd88(_0x598bbe- -0x207,_0x2b73b1,_0x2b73b1-_0x12302d._0x1d49ef,_0xedd4c5-_0x12302d._0x52c843);}super({'apiKey':_0x4476d4[_0x120a42(_0x3174c4._0xcc4e05,_0x3174c4._0x27a9d1,0x2b0,_0x3174c4._0x116141)],'baseUrl':trimTrailingSlashes(_0x4476d4[_0x15b85d(0x1d7,0x271,0x1e3,_0x3174c4._0x2cbd5a)]??_0x120a42(_0x3174c4._0x54f793,0x255,0x1d3,_0x3174c4._0x51bb04)),'fetch':_0x4476d4[_0x120a42(0x27c,0x327,_0x3174c4._0x561fba,0x289)],'maxTokens':_0x4476d4[_0x15b85d(0x272,0x265,0x19e,0x311)]??0x4000,'model':_0x4476d4[_0x120a42(_0x3174c4._0x583368,_0x3174c4._0x84f452,_0x3174c4._0x27c401,_0x3174c4._0x3fa587)]??_0x120a42(_0x3174c4._0x243572,_0x3174c4._0x2d37bf,0x28c,0x13f),'reasoning':_0x4476d4[_0x15b85d(_0x3174c4._0x1a1af2,_0x3174c4._0x114800,_0x3174c4._0x1281d2,_0x3174c4._0x332d26)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x4476d4[_0x15b85d(_0x3174c4._0x2624d0,_0x3174c4._0x4f5a40,_0x3174c4._0xd60efe,0x235)]??_0x120a42(_0x3174c4._0x109330,0x23c,_0x3174c4._0x1320c2,_0x3174c4._0x3d6a8f),'headerResolver':_0x4476d4[_0x120a42(_0x3174c4._0x57f2d9,_0x3174c4._0x413563,_0x3174c4._0x555588,0x388)],'protocolVersion':_0x4476d4[_0x120a42(_0x3174c4._0x1090fd,_0x3174c4._0x3eda35,0x320,0x393)]??_0x15b85d(0x208,0x2d6,_0x3174c4._0x1d5c7e,_0x3174c4._0x55f6c0)}),'providerSessionResolver':_0x4476d4['providerSessionResolver'],'requestMutators':_0x4476d4[_0x15b85d(_0x3174c4._0x555588,_0x3174c4._0x5ad0da,_0x3174c4._0x98d04a,_0x3174c4._0xfd4b8b)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0xd1496a(0x5ff,0x556,0x595,0x6c4)](_0x1ad0c9,_0x214108){const _0x21090e={_0x1e404e:0x14a,_0x21022b:0x1ff},_0x1a9a2e={_0x1446bb:0x477,_0x158513:0x136,_0x50007a:0xfb};function _0x28a255(_0x397e57,_0x198c68,_0x54a9f1,_0x5bb86e){return _0xd1496a(_0x54a9f1- -_0x1a9a2e._0x1446bb,_0x198c68-_0x1a9a2e._0x158513,_0x397e57,_0x5bb86e-_0x1a9a2e._0x50007a);}return this[_0x28a255(0xc3,_0x21090e._0x1e404e,0x15e,_0x21090e._0x21022b)](_0x1ad0c9,ANTHROPIC_MESSAGES_SURFACE,_0x214108);}[_0x11bd88(0x577,0x62e,0x5bd,0x56c)](_0x2e406a,_0x56460f){const _0x44d1f2={_0x1d429b:0x4b8,_0x22c0eb:0x4ee,_0x2f7cd1:0x48f};function _0x5cd64f(_0x1481f8,_0x165ea7,_0x6baea,_0x21adc2){return _0xd1496a(_0x1481f8- -0xe9,_0x165ea7-0x164,_0x6baea,_0x21adc2-0x94);}return this[_0x5cd64f(_0x44d1f2._0x1d429b,_0x44d1f2._0x22c0eb,0x548,_0x44d1f2._0x2f7cd1)](_0x2e406a,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x56460f);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x11bd88(0x4c3,0x549,0x518,0x440),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0xd1496a(0x4d3,0x4cb,0x56e,0x59b),OPENAI_RESPONSES_SURFACE=_0xd1496a(0x490,0x468,0x571,0x3d1),OPENAI_RESPONSES_STREAM_SURFACE=_0x11bd88(0x583,0x523,0x594,0x4ea),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x11bd88(0x4d0,0x3fb,0x47e,0x4ee),OpenAiApiError=class extends Error{[_0xd1496a(0x4c3,0x54c,0x562,0x51c)];[_0xd1496a(0x511,0x4d0,0x4a3,0x4c8)];constructor(_0x35a986,_0x2103e6,_0x17c264){const _0x2ab13b={_0x4344ab:0x2c4,_0xf707f8:0x55f,_0x17c923:0x4e6,_0x8d3fab:0x53c,_0x5dd316:0x40f,_0x1250c6:0x4a3},_0x36b630={_0x3d6717:0x20},_0x1cc540={_0x43f2a2:0x5f,_0x5805a4:0x73};function _0x2a09b5(_0x157464,_0x21b6d4,_0x4524eb,_0x5b66b5){return _0xd1496a(_0x5b66b5- -0x1d2,_0x21b6d4-_0x1cc540._0x43f2a2,_0x157464,_0x5b66b5-_0x1cc540._0x5805a4);}function _0x4272c0(_0x585e77,_0x2fd769,_0x4811b1,_0x40ee10){return _0xd1496a(_0x4811b1- -_0x36b630._0x3d6717,_0x2fd769-0x144,_0x40ee10,_0x40ee10-0xeb);}super(_0x17c264),this[_0x2a09b5(0x397,0x27f,0x1db,_0x2ab13b._0x4344ab)]=_0x4272c0(_0x2ab13b._0xf707f8,_0x2ab13b._0x17c923,_0x2ab13b._0x8d3fab,0x564),this[_0x4272c0(_0x2ab13b._0x5dd316,0x55c,_0x2ab13b._0x1250c6,0x462)]=_0x35a986,this['body']=_0x2103e6;}};function stringifySystem(_0x5afdc3){const _0x4ec8b8={_0x38fa45:0x120,_0x3d5d20:0xcb},_0x4e0f78={_0x99786d:0x575,_0x42ef42:0x6f},_0x2e44d0={_0x442e69:0x3bf,_0x1ca229:0x1c,_0x38fefa:0x6e};function _0x4e3f7f(_0x245730,_0x127a10,_0x34d871,_0x3a0f33){return _0xd1496a(_0x245730- -_0x2e44d0._0x442e69,_0x127a10-_0x2e44d0._0x1ca229,_0x3a0f33,_0x3a0f33-_0x2e44d0._0x38fefa);}function _0xc30e04(_0x3f0363,_0x5a1ec5,_0x1592ec,_0x53a1d5){return _0x11bd88(_0x53a1d5- -_0x4e0f78._0x99786d,_0x5a1ec5,_0x1592ec-_0x4e0f78._0x42ef42,_0x53a1d5-0x69);}return _0x5afdc3['map'](_0x4ebe75=>_0x4ebe75[_0x4e3f7f(0x11a,0xcb,0x1b7,0x18c)])[_0x4e3f7f(_0x4ec8b8._0x38fa45,0xa2,0x16e,_0x4ec8b8._0x3d5d20)]('\x0a\x0a');}function createToolDefinitions(_0xe78d56){const _0x2a32ce={_0x52f605:0x2e,_0x7b21f1:0x2a,_0x4fd384:0x205,_0x3fd319:0x1c0,_0x9976c:0x185},_0x3f8465={_0x221ac4:0xeb,_0x278d31:0xaf,_0x16a0c5:0x7,_0x5b1ee8:0x20b,_0x1ae9db:0x18d,_0x286b8b:0x199},_0x5076db={_0x53abd7:0x3a6,_0x18c91e:0xae},_0x599815={_0x2ddb7e:0x4ce,_0x10bc7a:0x1c7,_0xecfd49:0x44};if(_0xe78d56[_0x5807a0(0x6b,_0x2a32ce._0x52f605,-0x7,-_0x2a32ce._0x7b21f1)]===0x0)return void 0x0;function _0x5807a0(_0x3e2754,_0x1d9d02,_0x12332c,_0x4d1936){return _0xd1496a(_0x4d1936- -_0x599815._0x2ddb7e,_0x1d9d02-_0x599815._0x10bc7a,_0x12332c,_0x4d1936-_0x599815._0xecfd49);}function _0x599bc5(_0x4c63ae,_0x427244,_0x5daac6,_0x52f7ef){return _0xd1496a(_0x5daac6- -_0x5076db._0x53abd7,_0x427244-_0x5076db._0x18c91e,_0x52f7ef,_0x52f7ef-0xd8);}return _0xe78d56[_0x599bc5(_0x2a32ce._0x4fd384,_0x2a32ce._0x3fd319,0x151,_0x2a32ce._0x9976c)](_0x11225a=>{const _0xf0cc22={_0x4521ac:0x90},_0x196fbd={_0x32c8aa:0x133,_0xdcc4dd:0x4e};function _0x10e052(_0x3fc8db,_0x1c3994,_0x999f5d,_0x53ed28){return _0x5807a0(_0x3fc8db-_0x196fbd._0x32c8aa,_0x1c3994-0x12a,_0x999f5d,_0x3fc8db- -_0x196fbd._0xdcc4dd);}function _0x1744b7(_0x13788f,_0x5b498c,_0x285563,_0x52f0f8){return _0x5807a0(_0x13788f-0x4b,_0x5b498c-0x1b9,_0x13788f,_0x5b498c-_0xf0cc22._0x4521ac);}return{'type':_0x10e052(0x57,0x94,_0x3f8465._0x221ac4,-0x46),'function':{'name':_0x11225a[_0x10e052(-0x86,-_0x3f8465._0x278d31,-_0x3f8465._0x16a0c5,-0x66)],'description':_0x11225a[_0x1744b7(_0x3f8465._0x5b1ee8,_0x3f8465._0x1ae9db,_0x3f8465._0x286b8b,0x208)],'parameters':_0x11225a['input_schema']}};});}function isImageToolResultBlock(_0x5b00ab){const _0x35dd3a={_0x407ed4:0x167,_0x3cd4b8:0xb9,_0x129f6f:0xd8,_0x47a20b:0x21c,_0x1f14a0:0xf5,_0x179047:0x15d,_0x18ed6a:0x438,_0x3491ab:0x419,_0x53c34a:0x3a4,_0x15a9d4:0x2eb,_0x4c1c40:0x589,_0x21720c:0x4c4,_0x5236ef:0x3ab,_0x10490b:0x1ae,_0x552ca0:0x19e},_0x3b498f={_0x323b0d:0x11b},_0x241998={_0x21417e:0x117};if(typeof _0x5b00ab!==_0x2e4143(-_0x35dd3a._0x407ed4,-0x13c,-0x15a,-_0x35dd3a._0x3cd4b8)||_0x5b00ab===null||Array['isArray'](_0x5b00ab))return![];const _0x2131c7=_0x5b00ab;function _0x2e4143(_0x4a2d13,_0x46ebb4,_0x1564db,_0x315c14){return _0x11bd88(_0x315c14- -0x5b0,_0x1564db,_0x1564db-0x96,_0x315c14-_0x241998._0x21417e);}function _0x4c0dae(_0x3f4f73,_0x1daa49,_0x33db9e,_0x21c87b){return _0x11bd88(_0x1daa49- -0x66,_0x21c87b,_0x33db9e-_0x3b498f._0x323b0d,_0x21c87b-0x117);}return _0x2131c7[_0x2e4143(-0x13d,-0x18b,-0x191,-_0x35dd3a._0x129f6f)]===_0x2e4143(-0x1cd,-_0x35dd3a._0x47a20b,-_0x35dd3a._0x1f14a0,-_0x35dd3a._0x179047)&&_0x2131c7[_0x4c0dae(_0x35dd3a._0x18ed6a,_0x35dd3a._0x3491ab,0x501,_0x35dd3a._0x53c34a)]?.['type']===_0x4c0dae(0x2ef,0x39f,_0x35dd3a._0x15a9d4,0x3ad)&&typeof _0x2131c7[_0x4c0dae(0x4f4,0x419,0x361,0x4ff)][_0x4c0dae(_0x35dd3a._0x4c1c40,0x4ff,_0x35dd3a._0x21720c,0x4ea)]==='string'&&typeof _0x2131c7['source'][_0x4c0dae(0x430,0x373,0x3e9,_0x35dd3a._0x5236ef)]===_0x2e4143(-0x1de,-_0x35dd3a._0x10490b,-0xd7,-_0x35dd3a._0x552ca0);}function getToolResultText(_0x346b1d){const _0x5509a0={_0xd40371:0x2f1,_0x44ca8c:0x2b1,_0x3cb75a:0x288,_0x18a4d8:0x1d7,_0xe5fafd:0x438,_0x128eed:0x489,_0x45ed77:0x4d6,_0x42b599:0x4fc,_0x24320f:0x325,_0x5b5201:0x387,_0x5a40b1:0x5bc},_0x2a4da9={_0x472abb:0x677,_0x2ccc69:0x5fb,_0x3c6e60:0x5fb,_0x959fa1:0x535,_0x44537:0x5f1,_0xb710b4:0x3d0},_0x4c33d7={_0xcf50fe:0x4a,_0x5a51a2:0x194,_0x227f09:0x145},_0x424639={_0x345241:0x1c2};function _0x28da66(_0x27b9e5,_0x32a43b,_0x5d799,_0x212e9a){return _0x11bd88(_0x5d799- -0x350,_0x212e9a,_0x5d799-0x6d,_0x212e9a-_0x424639._0x345241);}if(typeof _0x346b1d===_0x3f3544(0x3c8,_0x5509a0._0xd40371,0x421,0x40f))return _0x346b1d;function _0x3f3544(_0x430d60,_0x5bfc1a,_0x29c621,_0x5ccfae){return _0x11bd88(_0x430d60- -_0x4c33d7._0xcf50fe,_0x5bfc1a,_0x29c621-_0x4c33d7._0x5a51a2,_0x5ccfae-_0x4c33d7._0x227f09);}const _0x23ede4=_0x346b1d[_0x28da66(_0x5509a0._0x44ca8c,_0x5509a0._0x3cb75a,_0x5509a0._0x18a4d8,0x192)](_0xf5ff45=>{const _0x6f9b59={_0xbb48c4:0x138,_0x18669c:0x1a4},_0x438fae={_0x247130:0x4a};function _0x1408fa(_0x10837c,_0x4c519a,_0x552f25,_0x57ad64){return _0x3f3544(_0x10837c- -_0x438fae._0x247130,_0x552f25,_0x552f25-0x1b1,_0x57ad64-0x49);}function _0xd62e35(_0x4dbd27,_0x199c2a,_0x1f09a3,_0x2e6d90){return _0x28da66(_0x4dbd27-_0x6f9b59._0xbb48c4,_0x199c2a-_0x6f9b59._0x18669c,_0x199c2a-0x454,_0x1f09a3);}return typeof _0xf5ff45===_0xd62e35(_0x2a4da9._0x472abb,_0x2a4da9._0x2ccc69,0x588,_0x2a4da9._0x3c6e60)&&_0xf5ff45!==null&&_0xf5ff45[_0xd62e35(_0x2a4da9._0x959fa1,0x5dc,0x608,_0x2a4da9._0x44537)]===_0x1408fa(_0x2a4da9._0xb710b4,0x33c,0x3e7,0x42c);})[_0x3f3544(_0x5509a0._0xe5fafd,_0x5509a0._0x128eed,_0x5509a0._0x45ed77,_0x5509a0._0x42b599)](_0x4d2e2b=>_0x4d2e2b[_0x3f3544(0x41a,0x419,0x346,0x353)])['join']('\x0a\x0a')[_0x3f3544(0x3e4,_0x5509a0._0x24320f,0x396,_0x5509a0._0x5b5201)]();return _0x23ede4['length']>0x0?_0x23ede4:_0x3f3544(0x52f,0x552,_0x5509a0._0x5a40b1,0x454);}function getToolResultImages(_0x3a7f0f){const _0x4b272b={_0x572ff5:0x4e9,_0x4d0b02:0x616,_0x165390:0x27,_0x58c58b:0x84,_0x87cccf:0x32},_0x5f56dc={_0x307b27:0x9,_0x3f7a83:0x84},_0x1a4132={_0x43551e:0x518,_0x1fcee2:0x15f};function _0x3f90d4(_0x4e4ce0,_0xf03829,_0x2abf0b,_0x133099){return _0xd1496a(_0xf03829- -_0x1a4132._0x43551e,_0xf03829-0x17a,_0x2abf0b,_0x133099-_0x1a4132._0x1fcee2);}function _0x43539e(_0x3f5b86,_0x509e24,_0x562620,_0x542488){return _0x11bd88(_0x3f5b86-_0x5f56dc._0x307b27,_0x509e24,_0x562620-_0x5f56dc._0x3f7a83,_0x542488-0x17a);}return Array[_0x43539e(0x58f,_0x4b272b._0x572ff5,_0x4b272b._0x4d0b02,0x4f1)](_0x3a7f0f)?_0x3a7f0f[_0x3f90d4(_0x4b272b._0x165390,_0x4b272b._0x58c58b,0x4f,_0x4b272b._0x87cccf)](isImageToolResultBlock):[];}function parseToolInput2(_0x3d54a8){const _0x2e164d={_0x5a4c85:0x44b,_0x17f357:0x428},_0x5ba2e3={_0x4527ad:0xb7,_0x522cb2:0x11a,_0x233389:0x182};function _0x37ccdf(_0x5042dd,_0x260593,_0x39d325,_0x2032c0){return _0xd1496a(_0x5042dd- -_0x5ba2e3._0x4527ad,_0x260593-_0x5ba2e3._0x522cb2,_0x260593,_0x2032c0-_0x5ba2e3._0x233389);}if(_0x3d54a8['length']===0x0)return{};try{return JSON[_0x37ccdf(0x3b0,_0x2e164d._0x5a4c85,_0x2e164d._0x17f357,0x3fd)](_0x3d54a8);}catch{return _0x3d54a8;}}function isResponsesReasoningItem(_0x46a3f0){const _0x3d6141={_0x3d5f76:0x406,_0x3a8082:0x36,_0x37dbf7:0xe6,_0x3f60ac:0xc,_0x406498:0xa0,_0x4c9059:0x19b,_0x4d9a78:0x196},_0x4f6091={_0x3eb415:0x155},_0x2d8dd0={_0x13e02e:0x175,_0x3b9cc2:0x36};function _0x3905bb(_0x39ab44,_0x5df07a,_0x38b57e,_0x27b6c8){return _0xd1496a(_0x5df07a- -_0x2d8dd0._0x13e02e,_0x5df07a-0xef,_0x39ab44,_0x27b6c8-_0x2d8dd0._0x3b9cc2);}function _0xde140d(_0x4e1698,_0x1ec2ab,_0x7a205f,_0x50ee85){return _0x11bd88(_0x50ee85- -0x578,_0x7a205f,_0x7a205f-0x1e5,_0x50ee85-_0x4f6091._0x3eb415);}return typeof _0x46a3f0==='object'&&_0x46a3f0!==null&&_0x3905bb(_0x3d6141._0x3d5f76,0x3d8,0x31d,0x4b8)in _0x46a3f0&&_0x46a3f0[_0xde140d(-_0x3d6141._0x3a8082,-_0x3d6141._0x37dbf7,_0x3d6141._0x3f60ac,-_0x3d6141._0x406498)]===_0xde140d(-0x1f4,-0x265,-_0x3d6141._0x4c9059,-_0x3d6141._0x4d9a78);}function isResponsesMessageItem(_0x4c7daf){const _0x1e69f1={_0x4d1495:0x1b,_0xa68ef4:0xa2,_0xc4a0e:0x83,_0x5284c0:0x645,_0x2cf038:0x5b9,_0x52a60d:0x5bd,_0x2d894a:0x528},_0x2268c4={_0x2ac83d:0x23};function _0x21aa22(_0x5d2d58,_0x141b6f,_0x21ee23,_0x5a9a69){return _0x11bd88(_0x5d2d58- -0x512,_0x5a9a69,_0x21ee23-0x50,_0x5a9a69-0xc8);}function _0x2e9967(_0x84eb67,_0x47e5e1,_0x200307,_0x3d3e2f){return _0xd1496a(_0x47e5e1-_0x2268c4._0x2ac83d,_0x47e5e1-0x127,_0x200307,_0x3d3e2f-0x15c);}return typeof _0x4c7daf===_0x21aa22(-_0x1e69f1._0x4d1495,0x38,-_0x1e69f1._0xa68ef4,_0x1e69f1._0xc4a0e)&&_0x4c7daf!==null&&_0x2e9967(0x55c,0x570,_0x1e69f1._0x5284c0,_0x1e69f1._0x2cf038)in _0x4c7daf&&_0x4c7daf['type']===_0x2e9967(0x525,_0x1e69f1._0x52a60d,0x5ad,_0x1e69f1._0x2d894a);}function isResponsesFunctionCallItem(_0x2bd0bd){const _0x491ac8={_0x4002ab:0x504,_0x39e6b2:0x4e3,_0x560cf7:0x505,_0x4ad33a:0x510},_0xab2bc9={_0x142da6:0x31},_0x4d07d6={_0x359a6a:0x14,_0x5d6077:0x1ca,_0x8edcb1:0xb};function _0x473fe4(_0xa0c242,_0x5c1e94,_0x411a1d,_0x45e857){return _0x11bd88(_0x5c1e94- -_0x4d07d6._0x359a6a,_0xa0c242,_0x411a1d-_0x4d07d6._0x5d6077,_0x45e857-_0x4d07d6._0x8edcb1);}function _0x5da9d5(_0x219010,_0x22a646,_0x36ad69,_0x4526df){return _0xd1496a(_0x219010- -0x357,_0x22a646-0x144,_0x22a646,_0x4526df-_0xab2bc9._0x142da6);}return typeof _0x2bd0bd===_0x473fe4(_0x491ac8._0x4002ab,_0x491ac8._0x39e6b2,0x4ae,_0x491ac8._0x560cf7)&&_0x2bd0bd!==null&&_0x5da9d5(0x1f6,0x2aa,0x1b2,0x2a4)in _0x2bd0bd&&_0x2bd0bd[_0x473fe4(0x4c2,0x4c4,_0x491ac8._0x4ad33a,0x417)]==='function_call';}function createContentBlocks(_0x31bfc4,_0x6b371d,_0x460e7f){const _0x314946={_0x86748c:0x50,_0x127300:0x61,_0x431ac6:0x203,_0x30d4cf:0x1bf,_0x14225b:0x15c,_0x380c48:0x128,_0x118ec9:0xc4,_0x3967df:0x29,_0x4808f5:0x1b,_0x46852b:0x18a,_0xdab79:0xd8,_0x1bb310:0xbd,_0x1a20f5:0x4b,_0x40cee3:0x271,_0x72d0fa:0xf6,_0x413a3e:0xd1,_0x37df92:0x205,_0x245e0c:0x11,_0x1bdb16:0x14a,_0x24c325:0x61,_0x3143d4:0x102,_0x63a52f:0x76,_0x3474b0:0x74,_0x10e44d:0x3,_0x517bd2:0x1e,_0x3284ec:0x4c,_0x123644:0xb3,_0x4a32fd:0xb},_0x5c672f={_0x1b0def:0x3c,_0x188a2b:0x55},_0x39e905={_0x482bdc:0x568,_0x4c08ef:0x149};function _0x584afc(_0x3c3fe3,_0x3557ce,_0xc5e6ea,_0x41748b){return _0xd1496a(_0x41748b- -_0x39e905._0x482bdc,_0x3557ce-0x12e,_0xc5e6ea,_0x41748b-_0x39e905._0x4c08ef);}const _0x2bc0c6=[];_0x460e7f&&_0x460e7f[_0x584afc(-0x13c,-0x41,-0xdc,-0xc4)]>0x0&&_0x2bc0c6[_0x584afc(-0x60,_0x314946._0x86748c,-0x11d,-_0x314946._0x127300)]({'type':_0x183b33(-_0x314946._0x431ac6,-0x1ed,-_0x314946._0x30d4cf,-0x285),'summary':[],'text':_0x460e7f});_0x31bfc4[_0x584afc(-_0x314946._0x14225b,-_0x314946._0x380c48,0x8,-_0x314946._0x118ec9)]>0x0&&_0x2bc0c6[_0x584afc(-_0x314946._0x3967df,_0x314946._0x4808f5,0x77,-_0x314946._0x127300)]({'type':_0x183b33(-_0x314946._0x46852b,-0x21e,-0x159,-0xde),'text':_0x31bfc4});for(const _0x794eec of _0x6b371d){if(_0x794eec['id'][_0x584afc(-_0x314946._0xdab79,-0x16b,-_0x314946._0x1bb310,-0xc5)]()['length']===0x0||_0x794eec[_0x183b33(-0x1a0,-_0x314946._0x1a20f5,-0xbf,-0x169)][_0x183b33(-0x1d4,-0x281,-0x19c,-_0x314946._0x40cee3)][_0x584afc(-0x11a,-_0x314946._0x72d0fa,-_0x314946._0x413a3e,-0xc5)]()[_0x183b33(-0x274,-_0x314946._0x37df92,-0x18e,-0xe9)]===0x0)continue;_0x2bc0c6[_0x584afc(-_0x314946._0x245e0c,-0x2a,-_0x314946._0x1bdb16,-_0x314946._0x24c325)]({'type':_0x584afc(-_0x314946._0x3143d4,-0x9b,-0xc4,-_0x314946._0x63a52f),'id':_0x794eec['id'],'name':_0x794eec[_0x584afc(_0x314946._0x3474b0,0xb5,0xbb,0xb)][_0x584afc(-_0x314946._0x10e44d,-_0x314946._0x517bd2,-_0x314946._0x3284ec,-0xd2)],'input':parseToolInput2(_0x794eec[_0x584afc(0x86,-0x87,_0x314946._0x123644,_0x314946._0x4a32fd)][_0x183b33(-0x76,-0x47,-0x2a,0xa4)])});}function _0x183b33(_0x56d720,_0x273758,_0x460fea,_0x316e2f){return _0x11bd88(_0x460fea- -0x5bd,_0x273758,_0x460fea-_0x5c672f._0x1b0def,_0x316e2f-_0x5c672f._0x188a2b);}return _0x2bc0c6;}function createUsage(_0x64d002){const _0x3bf296={_0x4021ec:0x14d,_0x53b259:0x5d,_0x66f17d:0xd2,_0x4a0387:0x46f,_0x4b097e:0x54b,_0x46689c:0x182,_0x3792cc:0xc7},_0x587e84={_0x3da4c4:0x19e};function _0x5505af(_0x120882,_0xd0719e,_0xbcfcde,_0x3d84bd){return _0xd1496a(_0xd0719e- -0x683,_0xd0719e-0x174,_0xbcfcde,_0x3d84bd-0x8f);}function _0x4c8360(_0x55bea8,_0x33843d,_0x2714d1,_0x11d20a){return _0xd1496a(_0x11d20a- -0x10,_0x33843d-0x4b,_0x33843d,_0x11d20a-_0x587e84._0x3da4c4);}return{'inputTokens':_0x64d002?.['prompt_tokens']??0x0,'outputTokens':_0x64d002?.[_0x5505af(-0x179,-0xc6,-_0x3bf296._0x4021ec,-0xcb)]??0x0,..._0x64d002?.[_0x5505af(-_0x3bf296._0x53b259,-0x124,-0x52,-_0x3bf296._0x66f17d)]?.[_0x4c8360(0x612,0x4cc,0x68a,0x5a8)]!==void 0x0?{'reasoningTokens':_0x64d002[_0x4c8360(_0x3bf296._0x4a0387,_0x3bf296._0x4b097e,0x524,0x54f)][_0x5505af(-_0x3bf296._0x46689c,-0xcb,-0x57,-_0x3bf296._0x3792cc)]}:{}};}function resolveReasoningVisibility2(_0x11f5b1){const _0x208093={_0x3ddd31:0x5a,_0x34874a:0xad,_0x286f56:0xe7,_0x3a269e:0x5a2,_0x2c4067:0x4bb,_0x35b576:0x477,_0x4ec03e:0x589,_0x3cc538:0x56c};function _0x468295(_0x114400,_0x351cbc,_0x1fc010,_0x400742){return _0x11bd88(_0x351cbc- -0x4,_0x114400,_0x1fc010-0x145,_0x400742-0xdb);}function _0x37c00d(_0x2194d0,_0x203730,_0x4fb8d6,_0x4189ff){return _0x11bd88(_0x2194d0- -0x43c,_0x4189ff,_0x4fb8d6-0x10,_0x4189ff-0xe);}return _0x11f5b1[_0x37c00d(-_0x208093._0x3ddd31,-_0x208093._0x34874a,0x2f,-_0x208093._0x286f56)]?.[_0x468295(_0x208093._0x3a269e,_0x208093._0x2c4067,_0x208093._0x35b576,_0x208093._0x4ec03e)]??_0x468295(_0x208093._0x3cc538,0x52b,0x49f,0x4e1);}function isUserVisibleReasoning(_0x3c8828){const _0x1b9bc3={_0x4d82e6:0x2b,_0x2802d1:0x7},_0x45c846={_0x42a197:0x428,_0x403572:0xe};function _0x433f67(_0x5bee60,_0x14d6a1,_0x5552d7,_0x5e43c4){return _0x11bd88(_0x5e43c4- -_0x45c846._0x42a197,_0x5bee60,_0x5552d7-0x1b2,_0x5e43c4-_0x45c846._0x403572);}return resolveOpenAiReasoningConfig(_0x3c8828[_0x433f67(_0x1b9bc3._0x4d82e6,_0x1b9bc3._0x2802d1,-0xd4,-0x46)])!==void 0x0&&resolveReasoningVisibility2(_0x3c8828)==='user-visible';}function createChatRequestBody(_0x523960,_0x1f6996){const _0x5aafbe={_0x479a1e:0xf,_0x475429:0x2c,_0x594581:0x3b,_0x6aef72:0x9a,_0xa2b0da:0x72,_0x34de0a:0x18,_0x5a83a2:0x520,_0x467808:0xba,_0xc9cce2:0xcd,_0x3bfb70:0x5a3,_0x121af6:0x51b,_0x516a2a:0x5e4,_0x2badcd:0x4e,_0x4868a3:0xea,_0x5eba19:0x56,_0x1cee38:0x15b,_0x3ef9cd:0xb1,_0x584a3d:0x112,_0x38852c:0x4f7,_0x3feb48:0x48b,_0x42df76:0x565,_0x43ecaf:0x74,_0x439c7f:0x137,_0x47ae45:0x21,_0x594d4c:0x5a3,_0x3a4f12:0x4d7,_0x317994:0x8d,_0x55e9fc:0x64,_0x23e781:0x525,_0x20748e:0x4c7,_0x1fc018:0x10c,_0x362f3f:0x19a,_0x42d748:0x51e,_0x4f4bae:0x552,_0x121105:0x62d,_0x139340:0xf5,_0x51b868:0x85,_0x18c88b:0x4,_0x45a60d:0xe4,_0x36ea70:0x1a9,_0x2140eb:0x179,_0x26f61d:0x49e,_0x3f90fa:0x5cf,_0xe67ee2:0x46c,_0x23bd1a:0x453,_0x37da2e:0x4cc,_0x4e7a95:0x58f,_0x4531d6:0x50d,_0x4d303b:0x4e,_0x26f241:0x24,_0x284814:0x69,_0x19601e:0x8e,_0x4eadad:0xbf,_0x204944:0x5ee,_0x4cd180:0x68e,_0x636713:0x48b,_0xc2bc9a:0xad,_0x152582:0x62,_0x23611f:0xc5,_0xca7091:0x182,_0x14e6f7:0xe8,_0x3d1285:0xa6,_0x5a8121:0xba,_0x11fd8b:0xf,_0x3b26a2:0x103,_0x5224c0:0x4c2,_0x1a7bbc:0x46d,_0x11a294:0x493,_0x22d920:0x103,_0x2d4b9a:0x111,_0x9bd57e:0x57c,_0x2338c0:0x53f,_0x3360a2:0x52a,_0x34416d:0x40e,_0x356741:0x5c6,_0x4f218a:0x545,_0x77a57a:0x508,_0x165736:0x624,_0xdf962b:0x582,_0x543465:0x4fc,_0x5e6daa:0x577,_0x46a9d6:0x599,_0x56e577:0x49f,_0x2bfb23:0x515,_0x187303:0x5e8,_0x40f33e:0x141,_0x79b624:0x3f,_0x5d832a:0x88,_0x3bf97a:0xeb,_0x1a052f:0x505,_0x3965e0:0xbf,_0x5e5322:0x2c,_0x524735:0x1a0,_0x17b53a:0x119,_0x3b1a1e:0x94,_0x2b6be4:0xa8,_0x3d5803:0xbf,_0x3d45cc:0x1d,_0x399d6b:0xec,_0x152b3c:0x598,_0x22939d:0x508},_0x5dfdc5={_0x1d42c0:0x555,_0x26dafa:0x66,_0x39e999:0xc9},_0x386e22={_0x5139d9:0x1e},_0x514e61={_0x5d89f4:0x11a,_0x1f5916:0x32,_0x3a50b6:0x195,_0x108b3e:0x489,_0x914cd0:0x31d,_0x3fb299:0x6d,_0xa4659d:0x299,_0x346040:0x52,_0x21da9f:0xcb,_0x47293f:0x18,_0x258aea:0x10d,_0x5b273d:0x11,_0x172bfc:0x2c,_0x328978:0x3c,_0x131508:0xaf,_0x36d21f:0xb9,_0x1da0a1:0x158,_0x121443:0xa5,_0x440513:0x349,_0x16c363:0x299,_0x472fc1:0x355,_0x3bbc9c:0x36d,_0x59cf42:0x30d,_0x2086a1:0x358,_0x2fe650:0x299,_0x4b6d9a:0x24d,_0xaa7dbd:0x2f0,_0x984dd7:0x11d,_0x4aa566:0xa3,_0x13df45:0x112,_0x21f0df:0x17c,_0x3a9663:0x391,_0x1227c9:0x3cf,_0x1d9408:0x41b,_0x41ef3f:0x69,_0xb11ed5:0xfa,_0xdd3635:0x65,_0x37cc1d:0x2a,_0x561285:0x325,_0x456166:0x300,_0x2c86cb:0x314,_0x3160af:0x4,_0x4aea8b:0x7d,_0x201e0f:0x21e,_0x52d485:0x299,_0x56eab8:0x228},_0x1d08b7={_0x5414a6:0x4d3,_0x27768b:0x6b,_0x3fefad:0x3e},_0x4682f3=[],_0x3d6478=stringifySystem(_0x523960[_0xa8e990(_0x5aafbe._0x479a1e,0xe5,-_0x5aafbe._0x475429,-_0x5aafbe._0x594581)]);_0x3d6478[_0xa8e990(-0xb1,-_0x5aafbe._0x6aef72,-0x104,-0x33)]>0x0&&_0x4682f3[_0xa8e990(-0x4e,-0x108,-0x83,-0x122)]({'role':_0xa8e990(0xf,-0x8f,_0x5aafbe._0xa2b0da,-_0x5aafbe._0x34de0a),'content':_0x3d6478});for(const _0x188212 of _0x523960[_0x4b249c(0x473,0x39b,0x530,_0x5aafbe._0x5a83a2)]){const _0x596b72=[],_0x4cffda=[],_0x13f19e=[],_0x191470=()=>{const _0x5475aa={_0x42846d:0x174,_0x10217d:0x17b};if(_0x188212[_0x3ae558(_0x514e61._0x5d89f4,0x114,_0x514e61._0x1f5916,_0x514e61._0x3a50b6)]===_0x5b3931(_0x514e61._0x108b3e,0x3b7,0x3ac,_0x514e61._0x914cd0)){if(_0x596b72[_0x3ae558(-_0x514e61._0x3fb299,-0x11,-0xd5,0x16)]===0x0&&_0x4cffda[_0x5b3931(0x2ee,_0x514e61._0xa4659d,0x20d,0x1bf)]===0x0)return;_0x4682f3[_0x3ae558(0x3e,_0x514e61._0x346040,_0x514e61._0x21da9f,_0x514e61._0x47293f)]({'role':_0x3ae558(_0x514e61._0x258aea,0x10d,0x1ef,0x11b),'content':_0x596b72[_0x3ae558(-0x3c,-_0x514e61._0x5b273d,0xcf,-_0x514e61._0x172bfc)]>0x0?_0x596b72['join']('\x0a\x0a'):null,..._0x4cffda[_0x3ae558(_0x514e61._0x328978,-0x11,_0x514e61._0x131508,-0x8e)]>0x0?{'tool_calls':_0x4cffda[_0x3ae558(_0x514e61._0x36d21f,0xc7,_0x514e61._0x1da0a1,_0x514e61._0x121443)](0x0)}:{}}),_0x596b72[_0x5b3931(_0x514e61._0x440513,_0x514e61._0x16c363,0x295,_0x514e61._0x472fc1)]=0x0;return;}function _0x5b3931(_0x2ee207,_0x1eb09b,_0x5d888b,_0x4e6f15){return _0xa8e990(_0x1eb09b-0x34a,_0x4e6f15,_0x5d888b-_0x5475aa._0x42846d,_0x4e6f15-_0x5475aa._0x10217d);}if(_0x188212[_0x5b3931(_0x514e61._0x3bbc9c,0x3be,_0x514e61._0x59cf42,_0x514e61._0x2086a1)]==='user'){if(_0x13f19e[_0x5b3931(0x380,_0x514e61._0x2fe650,_0x514e61._0x4b6d9a,0x22a)]===0x0)return;const _0x5a14d3=_0x13f19e[_0x5b3931(0x2ba,_0x514e61._0x3bbc9c,_0x514e61._0xaa7dbd,0x447)](_0x30b3f2=>_0x30b3f2[_0x3ae558(0x4a,0x98,0x143,0x41)]===_0x3ae558(-0x14c,-0x6c,-0x6f,-0x7));_0x4682f3[_0x3ae558(_0x514e61._0x984dd7,_0x514e61._0x346040,_0x514e61._0x4aa566,-0xa)]({'role':_0x3ae558(-0x15,0xd0,_0x514e61._0x13df45,_0x514e61._0x21f0df),'content':_0x5a14d3?_0x13f19e['splice'](0x0):_0x13f19e['splice'](0x0)[_0x5b3931(0x361,_0x514e61._0x3a9663,_0x514e61._0x1227c9,_0x514e61._0x1d9408)](_0x2bc22c=>_0x2bc22c['type']===_0x5b3931(0x304,0x2ce,0x258,0x2a3))[_0x3ae558(_0x514e61._0x41ef3f,0x42,_0x514e61._0xb11ed5,0x114)](_0x8098b4=>_0x8098b4[_0x3ae558(0x7b,0x24,0x36,-0x3c)])[_0x3ae558(_0x514e61._0xdd3635,_0x514e61._0x37cc1d,0xa2,0xf1)]('\x0a\x0a')});return;}function _0x3ae558(_0x5852ea,_0x3c0ba7,_0x18c4a6,_0x286d56){return _0x4b249c(_0x3c0ba7- -_0x1d08b7._0x5414a6,_0x3c0ba7-_0x1d08b7._0x27768b,_0x18c4a6,_0x286d56-_0x1d08b7._0x3fefad);}if(_0x596b72[_0x5b3931(0x349,_0x514e61._0x2fe650,_0x514e61._0x472fc1,0x372)]===0x0)return;_0x4682f3[_0x5b3931(_0x514e61._0x561285,0x2fc,_0x514e61._0x456166,_0x514e61._0x2c86cb)]({'role':_0x188212['role'],'content':_0x596b72[_0x3ae558(-0x88,_0x514e61._0x37cc1d,-_0x514e61._0x3160af,-_0x514e61._0x4aea8b)]('\x0a\x0a')}),_0x596b72[_0x5b3931(_0x514e61._0x201e0f,_0x514e61._0x52d485,_0x514e61._0x56eab8,0x20c)]=0x0;};for(const _0x2337b4 of normalizeContent(_0x188212[_0xa8e990(-_0x5aafbe._0x467808,-0x17d,-0x14b,-_0x5aafbe._0xc9cce2)])){if(_0x2337b4['type']==='text'){_0x188212['role']===_0x4b249c(_0x5aafbe._0x3bfb70,_0x5aafbe._0x121af6,_0x5aafbe._0x516a2a,0x58b)?_0x13f19e[_0xa8e990(-_0x5aafbe._0x2badcd,-0xb0,-_0x5aafbe._0x4868a3,-0xa1)]({'type':'text','text':_0x2337b4[_0xa8e990(-0x7c,_0x5aafbe._0x5eba19,-_0x5aafbe._0x1cee38,-_0x5aafbe._0x3ef9cd)]}):_0x596b72[_0xa8e990(-_0x5aafbe._0x2badcd,-0xa6,-0x37,-_0x5aafbe._0x584a3d)](_0x2337b4[_0x4b249c(_0x5aafbe._0x38852c,0x58b,_0x5aafbe._0x3feb48,_0x5aafbe._0x42df76)]);continue;}if(_0x188212[_0xa8e990(_0x5aafbe._0x43ecaf,0x13b,_0x5aafbe._0x439c7f,_0x5aafbe._0x47ae45)]===_0x4b249c(_0x5aafbe._0x594d4c,_0x5aafbe._0x3a4f12,0x4e5,0x5a7)&&_0x2337b4[_0xa8e990(-0x8,_0x5aafbe._0x317994,_0x5aafbe._0x55e9fc,_0x5aafbe._0x479a1e)]==='image'){_0x13f19e[_0x4b249c(_0x5aafbe._0x23e781,_0x5aafbe._0x20748e,0x4d5,0x4e2)]({'type':_0xa8e990(-_0x5aafbe._0x1fc018,-0x1dc,-0x109,-_0x5aafbe._0x362f3f),'image_url':{'url':_0x4b249c(0x5ed,_0x5aafbe._0x42d748,_0x5aafbe._0x4f4bae,_0x5aafbe._0x121105)+_0x2337b4[_0xa8e990(-0x61,-_0x5aafbe._0x139340,-0x58,-0x10a)][_0xa8e990(_0x5aafbe._0x51b868,0x80,_0x5aafbe._0x18c88b,-0x8)]+_0xa8e990(-_0x5aafbe._0x45a60d,-0xec,-_0x5aafbe._0x36ea70,-_0x5aafbe._0x2140eb)+_0x2337b4[_0x4b249c(0x512,_0x5aafbe._0x26f61d,0x465,_0x5aafbe._0x3f90fa)][_0x4b249c(_0x5aafbe._0xe67ee2,0x49c,_0x5aafbe._0x23bd1a,0x492)]}});continue;}if(_0x2337b4['type']===_0x4b249c(0x510,_0x5aafbe._0x37da2e,_0x5aafbe._0x4e7a95,_0x5aafbe._0x4531d6)){_0x4cffda[_0xa8e990(-_0x5aafbe._0x4d303b,-0xca,_0x5aafbe._0x26f241,_0x5aafbe._0x284814)]({'id':_0x2337b4['id'],'type':_0xa8e990(0x1e,-_0x5aafbe._0x19601e,-0x89,-0xb),'function':{'name':_0x2337b4[_0xa8e990(-_0x5aafbe._0x4eadad,-0x1a9,-_0x5aafbe._0x2badcd,-0x181)],'arguments':JSON['stringify'](_0x2337b4[_0x4b249c(0x5e4,_0x5aafbe._0x204944,_0x5aafbe._0x4cd180,0x68c)]??{})}});continue;}if(_0x2337b4['type']!==_0x4b249c(_0x5aafbe._0x636713,0x3ab,0x53c,0x3aa))continue;_0x191470(),_0x4682f3[_0xa8e990(-_0x5aafbe._0x4d303b,0x6a,-_0x5aafbe._0xc2bc9a,-_0x5aafbe._0x152582)]({'role':_0xa8e990(-0xec,-0x6b,-_0x5aafbe._0x23611f,-_0x5aafbe._0xca7091),'content':getToolResultText(_0x2337b4[_0xa8e990(-0xba,-_0x5aafbe._0x14e6f7,-_0x5aafbe._0x3d1285,-0x3f)]),'tool_call_id':_0x2337b4['tool_use_id']});const _0x12cd4c=getToolResultImages(_0x2337b4[_0xa8e990(-_0x5aafbe._0x5a8121,-_0x5aafbe._0x11fd8b,-_0x5aafbe._0x3b26a2,-0x7)]);_0x12cd4c[_0x4b249c(_0x5aafbe._0x5224c0,_0x5aafbe._0x1a7bbc,0x594,_0x5aafbe._0x11a294)]>0x0&&_0x4682f3[_0xa8e990(-0x4e,-_0x5aafbe._0x22d920,-_0x5aafbe._0x2d4b9a,-0x85)]({'role':_0x4b249c(_0x5aafbe._0x3bfb70,0x67b,_0x5aafbe._0x9bd57e,0x53d),'content':[{'type':_0x4b249c(_0x5aafbe._0x38852c,_0x5aafbe._0x2338c0,_0x5aafbe._0x3360a2,_0x5aafbe._0x34416d),'text':_0x4b249c(_0x5aafbe._0x356741,0x5e6,_0x5aafbe._0x4f218a,_0x5aafbe._0x77a57a)+_0x2337b4[_0x4b249c(_0x5aafbe._0x165736,0x5b8,_0x5aafbe._0xdf962b,0x69d)]+'.'},..._0x12cd4c['map'](_0x4ccff8=>({'type':'image_url','image_url':{'url':_0x4b249c(0x5ed,0x630,0x5b6,0x6d7)+_0x4ccff8[_0xa8e990(-0x61,-0x125,-0xbf,0x16)][_0x4b249c(0x5f8,0x53c,0x533,0x522)]+';base64,'+_0x4ccff8[_0xa8e990(-0x61,-0xca,0x5e,0x25)][_0x4b249c(0x46c,0x49f,0x3ce,0x3f7)]}}))]});}_0x191470();}function _0x4b249c(_0x10efbe,_0x43f2f5,_0x3f3469,_0x3b3e33){return _0xd1496a(_0x10efbe-_0x386e22._0x5139d9,_0x43f2f5-0xe9,_0x3f3469,_0x3b3e33-0xa0);}const _0x383a52=resolveOpenAiReasoningConfig(_0x523960['reasoning']);function _0xa8e990(_0x1f815f,_0x4b78a1,_0x5c13e7,_0x43dff1){return _0xd1496a(_0x1f815f- -_0x5dfdc5._0x1d42c0,_0x4b78a1-_0x5dfdc5._0x26dafa,_0x4b78a1,_0x43dff1-_0x5dfdc5._0x39e999);}return{'model':_0x523960[_0x4b249c(_0x5aafbe._0x543465,_0x5aafbe._0x5e6daa,0x446,_0x5aafbe._0x46a9d6)],'messages':_0x4682f3,'stream':_0x1f6996,..._0x383a52?{'max_completion_tokens':_0x523960[_0x4b249c(0x4ff,_0x5aafbe._0x56e577,_0x5aafbe._0x2bfb23,0x5c8)]}:{'max_tokens':_0x523960[_0x4b249c(0x4ff,_0x5aafbe._0x187303,0x4ca,0x45e)]},..._0x383a52?.['effort']?{'reasoning_effort':_0x383a52[_0xa8e990(-0xe7,-0xeb,-0x84,-_0x5aafbe._0x40f33e)]}:{},...createToolDefinitions(_0x523960['tools'])?{'tools':createToolDefinitions(_0x523960[_0xa8e990(-_0x5aafbe._0x79b624,-_0x5aafbe._0x5d832a,-_0x5aafbe._0x3bf97a,-0x96)])}:{},..._0x523960[_0x4b249c(0x4cb,0x52c,0x4a7,_0x5aafbe._0x1a052f)]?{'response_format':{'type':'json_schema','json_schema':{'name':_0x523960['outputFormat'][_0xa8e990(-_0x5aafbe._0x3965e0,-_0x5aafbe._0x5e5322,-_0x5aafbe._0x524735,-0x117)]??_0xa8e990(-_0x5aafbe._0x17b53a,-0x19d,-0x1dc,-_0x5aafbe._0x3b1a1e),'schema':_0x523960[_0xa8e990(-_0x5aafbe._0x2b6be4,-_0x5aafbe._0x3d5803,_0x5aafbe._0x3d45cc,-_0x5aafbe._0x399d6b)]['schema'],'strict':_0x523960[_0x4b249c(0x4cb,0x520,_0x5aafbe._0x152b3c,0x3e8)][_0x4b249c(_0x5aafbe._0x22939d,0x498,0x55d,0x56e)]??!![]}}}:{}};}function createResponsesRequestBody(_0x453dbb,_0x1b07b9){return{...toOpenAiResponsesRequest(_0x453dbb),..._0x1b07b9?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x3ef6bb,_0x2e2fc5={}){const _0x2954ee={_0x404743:0x571,_0x4f5552:0x43d,_0x103cb6:0x4a4,_0x26f02a:0x683,_0x15ebff:0x753,_0x5bb852:0x6bd,_0x4cb694:0x60d,_0x47b86c:0x501,_0x7b619e:0x453,_0x4f5976:0x497},_0x5af949={_0x150564:0x13c,_0x55787e:0x11e},_0x1c61fc={_0x978cb5:0x5b,_0x4e6825:0x171};function _0x496695(_0x54d080,_0x471111,_0x4da69a,_0x3429e1){return _0x11bd88(_0x3429e1- -_0x1c61fc._0x978cb5,_0x471111,_0x4da69a-0x179,_0x3429e1-_0x1c61fc._0x4e6825);}const _0xb3305c=toOpenAiResponsesRequest(_0x3ef6bb);function _0x1b4f62(_0x34d010,_0x2c7372,_0x230ce8,_0x3763cf){return _0xd1496a(_0x2c7372-0xbd,_0x2c7372-_0x5af949._0x150564,_0x230ce8,_0x3763cf-_0x5af949._0x55787e);}return{'type':_0x496695(_0x2954ee._0x404743,_0x2954ee._0x4f5552,0x501,_0x2954ee._0x103cb6),..._0xb3305c,..._0x2e2fc5[_0x1b4f62(0x70b,_0x2954ee._0x26f02a,_0x2954ee._0x15ebff,_0x2954ee._0x5bb852)]?{'input':_0x2e2fc5[_0x1b4f62(0x746,_0x2954ee._0x26f02a,0x6de,_0x2954ee._0x4cb694)]}:{},..._0x2e2fc5[_0x496695(0x40b,0x558,0x53c,0x4dd)]?{'previous_response_id':_0x2e2fc5[_0x496695(_0x2954ee._0x47b86c,_0x2954ee._0x7b619e,_0x2954ee._0x4f5976,0x4dd)]}:{},'store':![]};}function _0x11bd88(_0x5022af,_0x199724,_0x26a38f,_0x56ad06){return _0x4abb(_0x5022af-0x2ab,_0x199724);}function normalizeAssistantContent(_0x21f5d2){const _0x3fd8b7={_0x1dfd02:0x2fd,_0x3a7390:0x33d,_0x23590c:0x388,_0x1ca03b:0x337,_0x4c38fc:0x4a8},_0x4bd07c={_0x882f0c:0x47d,_0x1a4b5e:0x3ec,_0x42d5d2:0x4d4,_0x24439b:0x575,_0x44a605:0x332,_0x1a9ea7:0x4dd,_0x49ab6b:0x4cc,_0x21e800:0x46a},_0x427ce0={_0x40d462:0x16b},_0x1fd4e8={_0xe8e625:0x24e},_0x267bdd={_0x197829:0x39,_0x177575:0xd8,_0xc3adcb:0x56};if(typeof _0x21f5d2===_0x57b78c(0x3d9,_0x3fd8b7._0x1dfd02,0x3fe,_0x3fd8b7._0x3a7390))return _0x21f5d2;function _0x57b78c(_0x14cef9,_0x118431,_0x436cd9,_0x14c85c){return _0x11bd88(_0x14cef9- -_0x267bdd._0x197829,_0x118431,_0x436cd9-_0x267bdd._0x177575,_0x14c85c-_0x267bdd._0xc3adcb);}function _0x6588ea(_0x2a441f,_0x2994c4,_0x71eca9,_0x4899bf){return _0x11bd88(_0x2994c4- -_0x1fd4e8._0xe8e625,_0x2a441f,_0x71eca9-0x195,_0x4899bf-0x17c);}if(!Array[_0x6588ea(_0x3fd8b7._0x23590c,0x338,_0x3fd8b7._0x1ca03b,0x254)](_0x21f5d2))return'';return _0x21f5d2[_0x57b78c(0x449,0x42e,0x501,_0x3fd8b7._0x4c38fc)](_0x40ab5d=>{const _0x16268d={_0x22ee5e:0x11c};function _0xeb3e87(_0x5b56bf,_0x50e82a,_0x1ad0c3,_0x12bab1){return _0x6588ea(_0x50e82a,_0x12bab1-_0x16268d._0x22ee5e,_0x1ad0c3-0xd9,_0x12bab1-0x104);}function _0x1b70a1(_0x5eb63a,_0x3e4293,_0x3bfcb8,_0x1ae6b1){return _0x57b78c(_0x3bfcb8-0x35,_0x5eb63a,_0x3bfcb8-_0x427ce0._0x40d462,_0x1ae6b1-0x1af);}return _0x40ab5d[_0x1b70a1(_0x4bd07c._0x882f0c,_0x4bd07c._0x1a4b5e,_0x4bd07c._0x42d5d2,_0x4bd07c._0x24439b)]===_0xeb3e87(0x3bc,0x419,0x383,_0x4bd07c._0x44a605)?_0x40ab5d[_0x1b70a1(_0x4bd07c._0x1a9ea7,_0x4bd07c._0x49ab6b,0x460,_0x4bd07c._0x21e800)]:_0x40ab5d[_0xeb3e87(0x38c,0x3c2,0x3b6,0x423)];})['join']('');}function normalizeResponsesMessageContent(_0x3653f0){const _0x3534d1={_0x86063e:0x654,_0x3d9d1a:0x636,_0x39a1b2:0x8f,_0x267b76:0x30},_0x6ff438={_0x1770b5:0x51e,_0x5ef40a:0x536,_0x5174b0:0x4aa,_0x150910:0x565,_0x15dfa6:0x582,_0x36753f:0x491,_0x83368e:0x4e6,_0x36e9d2:0x29b,_0x33d593:0x28a,_0x354227:0x557,_0x198922:0x4a9,_0x7e4af8:0x4e1,_0x749eff:0x4fd,_0x596028:0x414,_0x844e33:0x3ab},_0x214cfd={_0x132d73:0x1d},_0x292ddb={_0xb943db:0xa9},_0xc53106={_0x310ac4:0x50f,_0x26f13e:0x97,_0x31ad53:0xac},_0x45df42={_0x1b49c3:0xb3,_0x4dc4d0:0xcb};function _0x3d1817(_0x44080d,_0x5a60c8,_0x53b8f8,_0x134b5e){return _0xd1496a(_0x134b5e-_0x45df42._0x1b49c3,_0x5a60c8-0x100,_0x44080d,_0x134b5e-_0x45df42._0x4dc4d0);}function _0x519adf(_0x533b63,_0x47fe11,_0x2477d6,_0x30ce46){return _0xd1496a(_0x47fe11- -_0xc53106._0x310ac4,_0x47fe11-_0xc53106._0x26f13e,_0x30ce46,_0x30ce46-_0xc53106._0x31ad53);}if(!Array['isArray'](_0x3653f0))return'';return _0x3653f0[_0x3d1817(_0x3534d1._0x86063e,_0x3534d1._0x3d9d1a,0x549,0x5aa)](_0x1ab3b3=>{function _0x3c7778(_0x5c5e7a,_0xb28e52,_0x3f0564,_0x49a910){return _0x3d1817(_0x49a910,_0xb28e52-0xa8,_0x3f0564-0x5f,_0x5c5e7a- -_0x292ddb._0xb943db);}if(!_0x1ab3b3||typeof _0x1ab3b3!=='object')return'';function _0x4b6e07(_0x27b359,_0x21188b,_0x5180b3,_0x43ac86){return _0x3d1817(_0x43ac86,_0x21188b-0x13b,_0x5180b3-_0x214cfd._0x132d73,_0x21188b- -0x269);}const _0x1bb7f5=_0x1ab3b3;if(_0x1bb7f5['type']===_0x3c7778(_0x6ff438._0x1770b5,_0x6ff438._0x5ef40a,0x45e,_0x6ff438._0x5174b0)&&typeof _0x1bb7f5[_0x3c7778(0x4e3,_0x6ff438._0x150910,_0x6ff438._0x15dfa6,0x467)]===_0x3c7778(_0x6ff438._0x36753f,0x51a,0x53b,_0x6ff438._0x83368e))return _0x1bb7f5[_0x4b6e07(_0x6ff438._0x36e9d2,0x323,_0x6ff438._0x33d593,0x3d5)];if(_0x1bb7f5[_0x3c7778(_0x6ff438._0x354227,_0x6ff438._0x198922,_0x6ff438._0x7e4af8,_0x6ff438._0x749eff)]==='refusal'&&typeof _0x1bb7f5['refusal']==='string')return _0x1bb7f5[_0x4b6e07(0x407,_0x6ff438._0x596028,0x4b7,_0x6ff438._0x844e33)];return'';})[_0x519adf(-_0x3534d1._0x39a1b2,-_0x3534d1._0x267b76,-0x86,0x8b)]('');}function extractOpenAiReasoningText(_0x1a7a77){const _0x475054={_0x163baf:0x235,_0x5ebfb1:0x20d,_0x4da87a:0x1d,_0x2f9c6a:0x98,_0x135a8e:0x30,_0x53bbbb:0x17f,_0x52a316:0x2fb,_0x18ffd0:0x162,_0x321690:0x1b3,_0x1c013f:0x144,_0x17fc14:0x130,_0x22d010:0x3da,_0x318ead:0x322,_0x4ad01e:0x38c,_0x51b8d7:0x20a,_0xf4d719:0x27d,_0x678944:0x20e,_0xb87f49:0x1b5,_0x389406:0x265,_0x36d4cc:0x226};if(typeof _0x1a7a77[_0x5580f2(0x1b6,0x25f,0x1cb,_0x475054._0x163baf)]===_0x5580f2(0x18d,_0x475054._0x5ebfb1,0x265,0x1e1))return _0x1a7a77['text'];function _0xddb832(_0x5c5593,_0x2cc360,_0x54d36f,_0xbe0160){return _0xd1496a(_0xbe0160- -0x5cb,_0x2cc360-0x4a,_0x2cc360,_0xbe0160-0x1dd);}function _0x5580f2(_0x263af8,_0x17000d,_0x13561c,_0x498038){return _0x11bd88(_0x17000d- -0x205,_0x13561c,_0x13561c-0x7c,_0x498038-0x108);}if(!Array[_0xddb832(-_0x475054._0x4da87a,-0xb7,_0x475054._0x2f9c6a,_0x475054._0x135a8e)](_0x1a7a77[_0x5580f2(_0x475054._0x53bbbb,0x221,_0x475054._0x52a316,_0x475054._0x18ffd0)]))return'';return _0x1a7a77[_0xddb832(-_0x475054._0x321690,-_0x475054._0x1c013f,-0x196,-_0x475054._0x17fc14)][_0x5580f2(_0x475054._0x22d010,_0x475054._0x318ead,_0x475054._0x4ad01e,0x241)](_0x23f34f=>_0x23f34f['type']==='reasoning_text'&&typeof _0x23f34f[_0xddb832(-0x13,-0x1da,-0x13f,-0xf2)]===_0xddb832(-0x148,-0x144,-0xd9,-0x144))[_0x5580f2(_0x475054._0x51b8d7,_0x475054._0xf4d719,_0x475054._0x678944,0x23d)](_0x2d6461=>_0x2d6461[_0x5580f2(0x30e,0x25f,0x250,0x2f7)]??'')[_0x5580f2(_0x475054._0xb87f49,_0x475054._0x389406,0x21e,_0x475054._0x36d4cc)]('');}function createOpenAiReasoningBlock(_0x20c593){const _0x1892d4={_0x21c101:0x146},_0x47df67={_0x25d2e4:0x67};function _0x3fdc7b(_0x24fbb7,_0x29f8c1,_0x38e036,_0x21cbc8){return _0xd1496a(_0x29f8c1-_0x47df67._0x25d2e4,_0x29f8c1-0x195,_0x24fbb7,_0x21cbc8-0x18c);}function _0x4564ad(_0x44d9f1,_0x2c659b,_0x524cd8,_0x105de9){return _0x11bd88(_0x105de9- -0x28d,_0x44d9f1,_0x524cd8-_0x1892d4._0x21c101,_0x105de9-0xc8);}const _0x102330=extractOpenAiReasoningText(_0x20c593);return{'type':_0x4564ad(0x248,0xb3,0xfa,0x171),'summary':structuredClone(_0x20c593['summary']??[]),..._0x20c593['id']?{'id':_0x20c593['id']}:{},..._0x20c593[_0x3fdc7b(0x61f,0x61e,0x6bf,0x69b)]?{'encryptedContent':_0x20c593['encrypted_content']}:{},..._0x102330[_0x4564ad(0x116,0xf0,0x1d3,0x1a2)]>0x0?{'text':_0x102330}:{}};}function hasVisibleOpenAiReasoning(_0x21afca){const _0x196397={_0x15ff74:0xae,_0x33f572:0xb0,_0x4bcb25:0x47,_0x5b66e7:0x7c,_0x573c19:0x69,_0x4c3520:0x161},_0x4bbbf7={_0x277381:0x1f1},_0x6d2415={_0x4c4f8a:0x1cb};function _0xced89d(_0x5c3cc0,_0x58a8af,_0x5f05b3,_0x45ee62){return _0x11bd88(_0x45ee62- -0x3c6,_0x5f05b3,_0x5f05b3-0x158,_0x45ee62-_0x6d2415._0x4c4f8a);}function _0x4d7356(_0x21ba46,_0x48866d,_0x5f56de,_0x1909fa){return _0x11bd88(_0x1909fa- -0x569,_0x48866d,_0x5f56de-0xb0,_0x1909fa-_0x4bbbf7._0x277381);}return _0x21afca[_0x4d7356(-_0x196397._0x15ff74,_0x196397._0x33f572,-_0x196397._0x4bcb25,0x22)][_0xced89d(_0x196397._0x5b66e7,0xbb,0x46,_0x196397._0x573c19)]>0x0||typeof _0x21afca[_0x4d7356(-0xeb,-0x1d0,-_0x196397._0x4c3520,-0x105)]==='string';}function parseChatCompletionResponse(_0x5be198){const _0x370c49={_0x4d31c1:0x31e,_0x1d563c:0x347,_0x270ebd:0x26d,_0x33d037:0x287,_0x184353:0x1cf,_0xaa289d:0x27e,_0x1983ce:0x218,_0x4e3659:0x20d,_0x2b598b:0x25e,_0x1bb44f:0x2b6,_0x5ce839:0x21e,_0x4642b1:0x1be,_0x354233:0x233,_0x2e77ce:0x23d,_0x3a0812:0x352,_0x37dc43:0x1f0,_0x284d57:0x1c6,_0x29a172:0x2b9,_0xedb76e:0x1b9,_0x38f06c:0x2a5,_0x5b0cd6:0x1d6,_0x1e5a09:0x268,_0x28c4b1:0x1e9,_0x284632:0x22c,_0x4d0468:0x1fb,_0x569ea9:0x215,_0x1c78d0:0x249,_0x4b4f85:0x291,_0x147fdd:0x28f,_0x58fb7c:0x316,_0xe930fc:0x250,_0x50a804:0x297,_0x3f16ac:0x230},_0x3d99e9={_0x167587:0x2a9,_0x2883d6:0x192},_0x3353ae={_0x209a30:0x19d},_0xb2592b=[],_0x5c5f9c=[];let _0xe19f5b=_0x521b73(0x311,_0x370c49._0x4d31c1,_0x370c49._0x1d563c,0x2af);for(const _0x17ed7e of _0x5be198[_0x2667b1(0x2f3,0x36b,_0x370c49._0x270ebd,0x2ae)]??[]){const _0x130053=_0x17ed7e[_0x2667b1(0x27e,0x292,0x1a2,_0x370c49._0x33d037)],_0x3e1d10=normalizeAssistantContent(_0x130053?.[_0x521b73(0x198,_0x370c49._0x184353,0x1f2,_0x370c49._0xaa289d)]);_0x3e1d10[_0x2667b1(0x188,0xc0,_0x370c49._0x1983ce,0xb7)]>0x0&&_0xb2592b[_0x521b73(_0x370c49._0x4e3659,0x1bf,_0x370c49._0x2b598b,_0x370c49._0x1bb44f)](_0x3e1d10),_0x130053?.[_0x2667b1(0x205,_0x370c49._0x5ce839,_0x370c49._0x2b598b,_0x370c49._0x4642b1)]&&_0x5c5f9c[_0x2667b1(0x1eb,0x207,0x149,_0x370c49._0x354233)](..._0x130053[_0x521b73(_0x370c49._0x2e77ce,0x32f,0x278,_0x370c49._0x3a0812)]),_0x17ed7e[_0x2667b1(_0x370c49._0x37dc43,_0x370c49._0x284d57,0x292,0x23e)]===_0x521b73(_0x370c49._0x29a172,_0x370c49._0xedb76e,0x278,_0x370c49._0x38f06c)&&(_0xe19f5b=_0x2667b1(_0x370c49._0x5b0cd6,_0x370c49._0x1e5a09,_0x370c49._0x28c4b1,0x13a));}function _0x2667b1(_0x3f0c73,_0x4206e8,_0x22fbd3,_0x117927){return _0x11bd88(_0x3f0c73- -0x2a7,_0x4206e8,_0x22fbd3-_0x3353ae._0x209a30,_0x117927-0x0);}function _0x521b73(_0x1a0abd,_0x38a886,_0x4b6ee3,_0x5de9be){return _0xd1496a(_0x4b6ee3- -_0x3d99e9._0x167587,_0x38a886-_0x3d99e9._0x2883d6,_0x5de9be,_0x5de9be-0x14f);}return _0x5c5f9c[_0x521b73(_0x370c49._0x284632,0x1af,_0x370c49._0x4d0468,0x148)]>0x0&&(_0xe19f5b=_0x521b73(0x31f,_0x370c49._0x569ea9,_0x370c49._0x1c78d0,0x22c)),{'id':_0x5be198['id']??_0x2667b1(0x2bf,_0x370c49._0x4b4f85,_0x370c49._0x147fdd,0x291)+Date[_0x521b73(_0x370c49._0x58fb7c,0x2aa,0x2b4,_0x370c49._0xe930fc)](),'content':createContentBlocks(_0xb2592b[_0x521b73(_0x370c49._0x50a804,_0x370c49._0x3f16ac,0x236,0x250)](''),_0x5c5f9c),'stopReason':_0xe19f5b,'usage':createUsage(_0x5be198['usage'])};}function parseResponsesResponse(_0x50d475,_0x430068){const _0x253da5={_0x36bd3f:0x55c,_0x4f6621:0x50d,_0x218de6:0x590,_0x2fb41a:0x55e,_0x10f185:0x4ba,_0x5c6a2e:0x123,_0x490127:0x66,_0x2537f6:0x1f4,_0x53672c:0x160,_0x3d3bdc:0x699,_0x52aeaa:0x705,_0x3f0869:0x6b6,_0x261049:0x627,_0x4f3802:0x484,_0x13bfdd:0x535,_0x2f75b6:0x536,_0x988fc0:0x6f,_0x51d4f1:0x52,_0x3a9a2a:0x5a6,_0x5214de:0x45d,_0x1c7a2d:0x5de,_0xcfe69d:0x528,_0x26d374:0x545,_0x2c8d6d:0x553,_0x54df6a:0x5e0,_0x5553b0:0xe5,_0x3983e3:0x81,_0x3ef632:0x192,_0x119694:0x1bd,_0x42f7dc:0x71,_0x5727bc:0x5ca,_0x527456:0x63e,_0x34d7cf:0x68c,_0x32e824:0x4bc,_0x1c3005:0x5dc,_0x49511e:0x69a,_0x2b9651:0x2f,_0x366173:0xae,_0x4e8bdc:0x1a5,_0x3a897a:0xd0,_0x4ed55a:0x1,_0x5a5459:0x14c,_0x550f4b:0xf5,_0x226e81:0xdf,_0x13aec9:0x1a4,_0xe0bd94:0x58,_0x54325e:0xbd,_0x1903ec:0x76d,_0x2c647c:0x72e,_0x59f157:0x777,_0x4e2067:0x697,_0x41781f:0x5a4,_0x4756f7:0x68c,_0x1492e0:0x546,_0x25287d:0x153,_0x1b9266:0x183,_0x2eed15:0x46,_0x40980a:0xdf,_0x404619:0x78,_0x459c2e:0x97},_0x8ab196={_0x2aeff5:0x435};function _0x25c6b3(_0x5df5df,_0x9bcba3,_0x460f8a,_0x570e00){return _0xd1496a(_0x570e00-0x92,_0x9bcba3-0x15d,_0x460f8a,_0x570e00-0x159);}function _0x1fb644(_0x1beb39,_0x463cc9,_0xb4358a,_0x36c806){return _0xd1496a(_0x36c806- -_0x8ab196._0x2aeff5,_0x463cc9-0x2c,_0x463cc9,_0x36c806-0x34);}const _0x2d3a66=[];for(const _0x9098e of _0x50d475[_0x25c6b3(_0x253da5._0x36bd3f,_0x253da5._0x4f6621,_0x253da5._0x218de6,_0x253da5._0x2fb41a)]??[]){if(isResponsesReasoningItem(_0x9098e)){if(isUserVisibleReasoning(_0x430068)){const _0x59518e=createOpenAiReasoningBlock(_0x9098e);hasVisibleOpenAiReasoning(_0x59518e)&&_0x2d3a66[_0x25c6b3(0x57a,0x4c2,_0x253da5._0x10f185,0x599)](_0x59518e);}continue;}if(isResponsesMessageItem(_0x9098e)){const _0x1a467b=normalizeResponsesMessageContent(_0x9098e[_0x1fb644(_0x253da5._0x5c6a2e,0x5a,0xe5,_0x253da5._0x490127)]);_0x1a467b['length']>0x0&&_0x2d3a66['push']({'type':'text','text':_0x1a467b});continue;}if(!isResponsesFunctionCallItem(_0x9098e)||typeof _0x9098e[_0x1fb644(0x84,_0x253da5._0x2537f6,0x77,_0x253da5._0x53672c)]!=='string'||_0x9098e[_0x25c6b3(_0x253da5._0x3d3bdc,_0x253da5._0x52aeaa,_0x253da5._0x3f0869,_0x253da5._0x261049)][_0x25c6b3(0x4c2,0x4a9,_0x253da5._0x4f3802,_0x253da5._0x13bfdd)]()[_0x25c6b3(0x468,0x511,0x463,_0x253da5._0x2f75b6)]===0x0||typeof _0x9098e['name']!==_0x1fb644(_0x253da5._0x988fc0,-0x77,0x23,_0x253da5._0x51d4f1)||_0x9098e[_0x25c6b3(_0x253da5._0x3a9a2a,_0x253da5._0x5214de,_0x253da5._0x1c7a2d,_0x253da5._0xcfe69d)]['trim']()[_0x25c6b3(_0x253da5._0x26d374,_0x253da5._0x2c8d6d,_0x253da5._0x54df6a,0x536)]===0x0||typeof _0x9098e['arguments']!==_0x1fb644(0x7b,_0x253da5._0x5553b0,_0x253da5._0x3983e3,0x52))continue;_0x2d3a66[_0x1fb644(_0x253da5._0x3ef632,_0x253da5._0x119694,_0x253da5._0x42f7dc,0xd2)]({'type':_0x25c6b3(_0x253da5._0x5727bc,0x63c,0x628,0x584),'id':_0x9098e[_0x25c6b3(_0x253da5._0x527456,_0x253da5._0x34d7cf,0x68d,_0x253da5._0x261049)],'name':_0x9098e[_0x25c6b3(0x58d,_0x253da5._0x32e824,0x57d,0x528)],'input':parseToolInput2(_0x9098e[_0x25c6b3(0x5f1,0x716,_0x253da5._0x1c3005,_0x253da5._0x49511e)])});}return!_0x2d3a66['some'](_0x21ee0d=>_0x21ee0d[_0x25c6b3(0x6c1,0x5d1,0x5b7,0x5df)]===_0x25c6b3(0x64e,0x4f2,0x48f,0x56b))&&_0x50d475['output_text']&&_0x2d3a66[_0x1fb644(_0x253da5._0x2b9651,_0x253da5._0x366173,_0x253da5._0x4e8bdc,0xd2)]({'type':_0x1fb644(0xf4,_0x253da5._0x3a897a,-_0x253da5._0x4ed55a,0xa4),'text':_0x50d475[_0x1fb644(_0x253da5._0x5a5459,0x14b,_0x253da5._0x550f4b,_0x253da5._0x226e81)]}),{'id':_0x50d475['id'],'content':_0x2d3a66,'stopReason':_0x2d3a66['some'](_0x7de9e3=>_0x7de9e3[_0x25c6b3(0x5e0,0x5fa,0x6bd,0x5df)]===_0x1fb644(0x177,0xe0,0xf7,0xbd))?_0x1fb644(0x190,_0x253da5._0x13aec9,_0x253da5._0xe0bd94,_0x253da5._0x54325e):_0x25c6b3(_0x253da5._0x1903ec,0x627,0x72f,0x682),'usage':{'inputTokens':_0x50d475['usage']?.['input_tokens']??0x0,'outputTokens':_0x50d475[_0x25c6b3(_0x253da5._0x2c647c,_0x253da5._0x59f157,0x6e5,0x68c)]?.['output_tokens']??0x0,..._0x50d475[_0x25c6b3(_0x253da5._0x4e2067,_0x253da5._0x41781f,0x6e9,_0x253da5._0x4756f7)]?.[_0x25c6b3(0x644,0x4f0,_0x253da5._0x1492e0,0x567)]?.[_0x1fb644(0x1b9,_0x253da5._0x25287d,0x1bd,_0x253da5._0x1b9266)]!==void 0x0?{'reasoningTokens':_0x50d475[_0x25c6b3(0x700,0x6d5,0x67f,0x68c)][_0x1fb644(_0x253da5._0x2eed15,0x9f,0xa8,0xa0)]['reasoning_tokens']}:{}},..._0x50d475['output']?{'providerState':{'openaiResponsesOutput':structuredClone(_0x50d475[_0x1fb644(0x10e,_0x253da5._0x40980a,_0x253da5._0x404619,_0x253da5._0x459c2e)]),'openaiResponsesResponseId':_0x50d475['id']}}:{}};}function extractErrorMessage(_0x2e145b){const _0x419f3a={_0x3ffcbf:0x41,_0x1df623:0xad,_0x2b3743:0x30,_0xc15471:0x674,_0x55df21:0x617,_0x59f7ff:0x58d,_0x4ae00a:0x485,_0x3c591c:0x469,_0x5cc7b1:0x4e5,_0x2a2037:0x4b,_0x31fb63:0x606,_0x3de631:0x57d,_0x267f7f:0x81,_0x3357f4:0x123,_0xf75ea9:0x3,_0x5d3a35:0xd,_0x2c6122:0x12d,_0x56899a:0x14,_0x3980d5:0x65,_0x26b4e5:0x56,_0x409373:0x216,_0x23afe9:0x8e,_0x2098af:0x15b,_0x2e2ac6:0x44,_0x19a716:0x64,_0x4ca73d:0x4e,_0x28d161:0x239},_0x637043={_0x3ab6d0:0x3ca,_0x43b37b:0x30,_0x3480b8:0x19},_0x38d2a5={_0x4ed73a:0x7d,_0x37e9b3:0x8b};function _0x3f187f(_0xd19486,_0xb0648a,_0x36c7ce,_0x128640){return _0xd1496a(_0x36c7ce-_0x38d2a5._0x4ed73a,_0xb0648a-_0x38d2a5._0x37e9b3,_0x128640,_0x128640-0x150);}if(_0x2e145b['length']===0x0)return'';try{const _0x10ccb9=JSON['parse'](_0x2e145b);if(typeof _0x10ccb9[_0x30b553(_0x419f3a._0x3ffcbf,-_0x419f3a._0x1df623,0x4,_0x419f3a._0x2b3743)]?.[_0x3f187f(0x5a3,_0x419f3a._0xc15471,_0x419f3a._0x55df21,_0x419f3a._0x59f7ff)]===_0x3f187f(_0x419f3a._0x4ae00a,_0x419f3a._0x3c591c,0x504,_0x419f3a._0x5cc7b1)&&_0x10ccb9[_0x30b553(-_0x419f3a._0x2a2037,0x6d,-0x83,0x30)][_0x3f187f(_0x419f3a._0x31fb63,_0x419f3a._0x3de631,_0x419f3a._0x55df21,0x5f8)][_0x30b553(_0x419f3a._0x267f7f,_0x419f3a._0x3357f4,_0x419f3a._0xf75ea9,0x64)]()[_0x30b553(_0x419f3a._0x5d3a35,_0x419f3a._0x2c6122,-_0x419f3a._0x56899a,_0x419f3a._0x3980d5)]>0x0)return _0x10ccb9[_0x30b553(0x55,_0x419f3a._0x26b4e5,0x33,0x30)]['message']['trim']();if(typeof _0x10ccb9[_0x30b553(0x1e3,0x244,_0x419f3a._0x409373,0x15b)]==='string'&&_0x10ccb9[_0x30b553(0x1c0,_0x419f3a._0x23afe9,0x86,_0x419f3a._0x2098af)][_0x30b553(0xd9,-0x81,_0x419f3a._0x2e2ac6,_0x419f3a._0x19a716)]()[_0x30b553(-0x59,-_0x419f3a._0x2e2ac6,_0x419f3a._0x4ca73d,0x65)]>0x0)return _0x10ccb9[_0x30b553(0x1a4,_0x419f3a._0x28d161,0x146,_0x419f3a._0x2098af)]['trim']();}catch{return _0x2e145b;}function _0x30b553(_0xfed6c9,_0x3d66d9,_0x109d0c,_0x3b5501){return _0x11bd88(_0x3b5501- -_0x637043._0x3ab6d0,_0x109d0c,_0x109d0c-_0x637043._0x43b37b,_0x3b5501-_0x637043._0x3480b8);}return _0x2e145b;}async function createOpenAiApiError(_0x412f88){const _0x543b6a={_0x1ae48b:0x308,_0x3b9711:0x280,_0x313197:0x2f4,_0x32888d:0x2cf,_0x746fa8:0x273,_0x13bd6b:0x351,_0x5cfec7:0x346,_0x4b6782:0x331},_0x3e1c8b={_0x214727:0x14e};function _0x3ba9a8(_0x29b28d,_0x4574be,_0x49c7b5,_0x14ef01){return _0xd1496a(_0x29b28d-0x2f,_0x4574be-_0x3e1c8b._0x214727,_0x49c7b5,_0x14ef01-0x193);}const _0x31911a=(await _0x412f88[_0x5a8d4d(_0x543b6a._0x1ae48b,_0x543b6a._0x3b9711,_0x543b6a._0x313197,0x35c)]())['trim'](),_0x30b431=extractErrorMessage(_0x31911a)||_0x412f88[_0x5a8d4d(0x384,_0x543b6a._0x32888d,_0x543b6a._0x746fa8,0x33a)]||_0x5a8d4d(_0x543b6a._0x13bd6b,0x40f,0x3d6,0x337)+_0x412f88[_0x5a8d4d(0x35e,0x291,0x32a,_0x543b6a._0x5cfec7)];function _0x5a8d4d(_0x4557f0,_0x4b1d80,_0x5077e0,_0x3a480f){return _0xd1496a(_0x3a480f- -0x17d,_0x4b1d80-0x185,_0x4b1d80,_0x3a480f-0x157);}return new OpenAiApiError(_0x412f88[_0x5a8d4d(0x403,_0x543b6a._0x4b6782,0x36b,0x346)],_0x31911a,_0x30b431);}function readSseData(_0x3c0bea){const _0x5d9e1e={_0x211c44:0x12,_0x4dad15:0x4ea,_0x40b92b:0x484,_0x2b6bc4:0x582,_0x35c691:0x3,_0x371b5a:0xd1,_0x2d0677:0x16a},_0x562e0c={_0x14e670:0x34,_0x5245e0:0x16f},_0x510c9e={_0x522562:0xb6};function _0x8270bc(_0x4d9ef6,_0x36a670,_0xa720ba,_0x5c6af5){return _0x11bd88(_0x36a670- -0x4ff,_0x5c6af5,_0xa720ba-0x132,_0x5c6af5-_0x510c9e._0x522562);}function _0x411f17(_0x48eb03,_0x14f6c0,_0x1e0098,_0x2629d){return _0x11bd88(_0x1e0098-_0x562e0c._0x14e670,_0x2629d,_0x1e0098-_0x562e0c._0x5245e0,_0x2629d-0x2f);}return _0x3c0bea['split']('\x0a')[_0x8270bc(-_0x5d9e1e._0x211c44,0x28,-0x52,0x10f)](_0x397b20=>_0x397b20[_0x411f17(0x3a4,0x40d,0x45b,0x3ab)]('data:'))[_0x411f17(_0x5d9e1e._0x4dad15,_0x5d9e1e._0x40b92b,0x4b6,0x41c)](_0x2f902c=>_0x2f902c['slice'](0x5)[_0x411f17(0x4c7,0x58a,0x584,0x5fb)]())[_0x411f17(_0x5d9e1e._0x2b6bc4,0x44f,0x49e,0x560)]('\x0a')[_0x8270bc(-_0x5d9e1e._0x35c691,-_0x5d9e1e._0x371b5a,-_0x5d9e1e._0x2d0677,-0xac)]();}function readString(_0x1edbc4){const _0x519874={_0x1b882c:0xed,_0x581c1e:0xd,_0x1296e3:0x34d,_0x43b497:0x408},_0x28f825={_0x4afa8e:0x574,_0x49949d:0x1b0,_0x38ac56:0x99};function _0x4328b4(_0x507637,_0x14a8dc,_0x2dd3f1,_0x41f84d){return _0xd1496a(_0x507637- -_0x28f825._0x4afa8e,_0x14a8dc-_0x28f825._0x49949d,_0x2dd3f1,_0x41f84d-_0x28f825._0x38ac56);}function _0x35823c(_0x16e6b5,_0x224414,_0x34c1ab,_0x20e170){return _0xd1496a(_0x16e6b5- -0x157,_0x224414-0x1e8,_0x34c1ab,_0x20e170-0x8f);}return typeof _0x1edbc4===_0x4328b4(-_0x519874._0x1b882c,-_0x519874._0x581c1e,-0x1c8,-0xf0)&&_0x1edbc4[_0x35823c(_0x519874._0x1296e3,_0x519874._0x43b497,0x285,0x2a3)]>0x0?_0x1edbc4:void 0x0;}function extractReasoningDetails(_0x3077d8){const _0x38c23f={_0x49bf3f:0x333},_0x4969ac={_0x1c239b:0x14f},_0x136d8b={_0x2ae89d:0x61d,_0x77ddcf:0x41c,_0x3128ae:0x3e3,_0x369770:0x4a7,_0x42dbab:0x491,_0x51af48:0x5cb,_0x4f8337:0x5b8,_0x38b2b9:0x532},_0x58966e={_0x450bd8:0x2d8};if(!Array['isArray'](_0x3077d8))return void 0x0;const _0x53e832=_0x3077d8['flatMap'](_0xc672bc=>{function _0x2f380e(_0x6b55b9,_0x2dbf84,_0xd5a3ce,_0x188b90){return _0x4abb(_0xd5a3ce-_0x58966e._0x450bd8,_0x2dbf84);}if(!_0xc672bc||typeof _0xc672bc!==_0x395635(0x592,0x62f,0x51f,_0x136d8b._0x2ae89d))return[];const _0x3abefa=_0xc672bc;if(typeof _0x3abefa['text']===_0x2f380e(_0x136d8b._0x77ddcf,_0x136d8b._0x3128ae,0x43f,0x483))return[_0x3abefa[_0x2f380e(_0x136d8b._0x369770,0x48e,_0x136d8b._0x42dbab,0x4c8)]];if(typeof _0x3abefa[_0x2f380e(_0x136d8b._0x51af48,0x4e7,_0x136d8b._0x4f8337,_0x136d8b._0x38b2b9)]==='string')return[_0x3abefa[_0x2f380e(0x699,0x693,_0x136d8b._0x4f8337,0x5d9)]];function _0x395635(_0x13653e,_0x26d48c,_0x4a54f1,_0x1706b9){return _0x4abb(_0x13653e-0x346,_0x1706b9);}return[];});function _0x12e297(_0x2ce23d,_0x5c2816,_0x4eb8a9,_0x31d4da){return _0xd1496a(_0x2ce23d- -_0x4969ac._0x1c239b,_0x5c2816-0x10,_0x5c2816,_0x31d4da-0x185);}return _0x53e832['length']>0x0?_0x53e832[_0x12e297(0x390,0x396,0x42a,_0x38c23f._0x49bf3f)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x39c66f){const _0x1c855a={_0x28bd25:0x18b,_0x5ab404:0x1d6,_0x4df417:0x1f0,_0x37abfb:0xd9,_0x232c3b:0x83,_0x17c01a:0x62,_0x3b1ed2:0x133},_0x575a7d={_0x1075d7:0x237,_0x42b766:0x102,_0x15c29e:0x7c},_0x53b59c={_0x38687e:0x4bc,_0x3fdb64:0x1d0,_0x4a31c1:0xb2};function _0x49fb59(_0x160ce2,_0x4619de,_0x22c943,_0x3024c9){return _0x11bd88(_0x3024c9- -_0x53b59c._0x38687e,_0x22c943,_0x22c943-_0x53b59c._0x3fdb64,_0x3024c9-_0x53b59c._0x4a31c1);}function _0x2bdda7(_0x46536c,_0x4be6e0,_0x444036,_0x2e4fce){return _0x11bd88(_0x444036- -_0x575a7d._0x1075d7,_0x2e4fce,_0x444036-_0x575a7d._0x42b766,_0x2e4fce-_0x575a7d._0x15c29e);}return extractReasoningDetails(_0x39c66f?.[_0x2bdda7(0xf7,_0x1c855a._0x28bd25,_0x1c855a._0x5ab404,_0x1c855a._0x4df417)])??readString(_0x39c66f?.[_0x49fb59(-_0x1c855a._0x37abfb,-0xcf,-0xa6,-0xda)])??readString(_0x39c66f?.[_0x49fb59(_0x1c855a._0x232c3b,-_0x1c855a._0x17c01a,0xf,-0x4a)])??readString(_0x39c66f?.[_0x2bdda7(0x29c,_0x1c855a._0x3b1ed2,0x209,0x149)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x11bd88(0x50e,0x569,0x469,0x4ab)]=[];[_0x11bd88(0x552,0x595,0x57d,0x579)];[_0x11bd88(0x4a4,0x46b,0x44f,0x577)]=[];[_0xd1496a(0x465,0x470,0x519,0x40f)]=new Map();[_0x11bd88(0x471,0x38e,0x3cc,0x38f)]=[];[_0x11bd88(0x43e,0x3db,0x37f,0x3a1)]=new Set();[_0x11bd88(0x559,0x499,0x5ae,0x5c9)]='';['stopReason']=_0xd1496a(0x5f0,0x5fb,0x540,0x608);['usage'];constructor(_0x5df294){const _0x547ba7={_0x126068:0x484,_0x104e65:0x50a,_0x2483c8:0x51d},_0x3ddccf={_0xc640d2:0x48,_0x5080f0:0x14f};function _0x54e24f(_0x413245,_0x1e781c,_0x5bc3ae,_0x5d433e){return _0x11bd88(_0x5bc3ae- -_0x3ddccf._0xc640d2,_0x5d433e,_0x5bc3ae-_0x3ddccf._0x5080f0,_0x5d433e-0x1e7);}this[_0x54e24f(_0x547ba7._0x126068,0x53a,_0x547ba7._0x104e65,_0x547ba7._0x2483c8)]=_0x5df294;}[_0xd1496a(0x43e,0x477,0x3af,0x46e)](_0x332361){const _0x330b42={_0x1f602b:0x1c4,_0x1a8d2b:0x36f,_0x24439d:0x295,_0x2ae406:0x187,_0x5c9ae8:0x1fc,_0xa66a30:0x195,_0xf918be:0x26,_0x3b8909:0x155,_0x4c613e:0x35b,_0x462937:0x2ff,_0x3b7b6c:0x35b,_0xfa9098:0x304,_0x4869c8:0x2f5},_0x27d0c1={_0x1ba817:0x22a},_0x369f27={_0x3ec498:0x6,_0x39ae55:0x1a2},_0x1a08c9=readSseData(_0x332361);if(_0x1a08c9[_0xd76abb(-0x190,-0x1bf,-0x186,-_0x330b42._0x1f602b)]===0x0||_0x1a08c9===_0x20cefc(_0x330b42._0x1a8d2b,0x347,_0x330b42._0x24439d,0x310))return[];const _0xb1244d=JSON[_0xd76abb(-_0x330b42._0x2ae406,-_0x330b42._0x5c9ae8,-0x1f7,-_0x330b42._0xa66a30)](_0x1a08c9);function _0xd76abb(_0x1bf00a,_0x3d33d5,_0x14b6dd,_0x28cebe){return _0x11bd88(_0x3d33d5- -0x5ee,_0x1bf00a,_0x14b6dd-_0x369f27._0x3ec498,_0x28cebe-_0x369f27._0x39ae55);}this[_0xd76abb(-_0x330b42._0xf918be,-0x95,-_0x330b42._0x3b8909,0x4e)]=_0xb1244d['id']??this[_0x20cefc(0x32f,0x339,0x370,0x2d2)];function _0x20cefc(_0x30a538,_0x46f78a,_0x5485ab,_0x44f0b0){return _0x11bd88(_0x30a538- -_0x27d0c1._0x1ba817,_0x5485ab,_0x5485ab-0x163,_0x44f0b0-0x125);}return this[_0x20cefc(_0x330b42._0x4c613e,0x28d,_0x330b42._0x462937,0x30a)]=_0xb1244d['usage']??this[_0x20cefc(_0x330b42._0x3b7b6c,_0x330b42._0xfa9098,_0x330b42._0x4869c8,0x39c)],this['consumeEvent'](_0xb1244d);}[_0xd1496a(0x4c7,0x3ff,0x4c4,0x54c)](){const _0x318598={_0x529588:0x46d,_0x3fe2f5:0x3a9,_0x124b23:0x48e,_0x1ec052:0x4ce,_0x5d8315:0xc8,_0x169554:0xcc,_0x30edc5:0x28,_0x4b46d2:0xd4,_0x4229cc:0xdf,_0x3466a5:0x534,_0x825ff:0x46d,_0x38025c:0x21,_0x28f4af:0x31,_0x10b21d:0x6d,_0x415a92:0x18a,_0x51fb9f:0x1,_0x8fbc59:0x13f,_0x3751c7:0x173,_0x286225:0x575},_0x955c52={_0x59ddb8:0x168,_0x4675c0:0x7f},_0x55d66={_0x354385:0x1bf,_0x15adbb:0x1ab};function _0x497ff5(_0x4bf248,_0x56e549,_0x16d043,_0x1cec4c){return _0x11bd88(_0x4bf248- -0x545,_0x56e549,_0x16d043-_0x55d66._0x354385,_0x1cec4c-_0x55d66._0x15adbb);}this[_0x45a55f(0x438,_0x318598._0x529588,0x546,_0x318598._0x3fe2f5)][_0x45a55f(_0x318598._0x124b23,0x42b,0x476,_0x318598._0x1ec052)]>0x0&&(this['stopReason']=_0x497ff5(-_0x318598._0x5d8315,-0x167,-0x20,-0x122));function _0x45a55f(_0xd7ccab,_0x4036a0,_0x34e396,_0x5a25b0){return _0xd1496a(_0x4036a0- -0x79,_0x4036a0-_0x955c52._0x59ddb8,_0x5a25b0,_0x5a25b0-_0x955c52._0x4675c0);}const _0x32d33a=isUserVisibleReasoning(this[_0x497ff5(0xd,_0x318598._0x169554,-_0x318598._0x30edc5,_0x318598._0x4b46d2)])?this['reasoningParts'][_0x497ff5(-0xdb,-0x11c,-0x63,-_0x318598._0x4229cc)](''):void 0x0;return{'id':this[_0x45a55f(_0x318598._0x3466a5,0x555,_0x318598._0x124b23,_0x318598._0x825ff)]||_0x497ff5(_0x318598._0x38025c,-0x69,0xd5,-_0x318598._0x28f4af)+Date[_0x497ff5(-0x5d,-0x62,-_0x318598._0x10b21d,0x56)](),'content':createContentBlocks(this['textParts'][_0x497ff5(-0xdb,-_0x318598._0x415a92,-_0x318598._0x51fb9f,-0xdd)](''),this[_0x497ff5(-0xd4,-0x16c,-0x65,-_0x318598._0x8fbc59)],_0x32d33a),'stopReason':this[_0x497ff5(-0xf0,-0x2d,-0x37,-_0x318598._0x3751c7)],'usage':createUsage(this[_0x45a55f(0x606,0x581,0x5f6,_0x318598._0x286225)])};}['consumeEvent'](_0x452fb1){const _0x57cf2d={_0x56a6c8:0x128,_0x33758c:0xc1,_0x171555:0xdd,_0x447115:0x37a,_0x153ce1:0x6e,_0x20ec50:0x87,_0x320754:0x5e,_0x569026:0x20,_0x6931b8:0x62,_0x460331:0x3ab,_0x1477ee:0xb,_0x1cc993:0x3f,_0x30161e:0x69,_0x1c02e5:0x30,_0x4ddc20:0x9e,_0x3eb776:0x8b,_0x1d9564:0x1bf,_0x579f3d:0x34b,_0x225bc4:0x18c,_0x41e48b:0x78,_0x36d330:0x9e,_0x41b4ee:0x185,_0x546b11:0x4,_0x476623:0xf2,_0x346d0c:0xb8,_0x2ffa0e:0x1a6,_0x47b6b0:0x2d5,_0x123b9a:0x2ae,_0x285d3f:0x26e,_0x4a0183:0x76,_0x1be578:0x3bd,_0x12af8a:0x3cf,_0x36c9c4:0xba,_0x11d3ce:0xa4,_0xb7deab:0x17b,_0x556d86:0x7b,_0x34788d:0x9d,_0x106719:0x2e5,_0x52863d:0x22,_0x38e43f:0x341,_0x28afdc:0x2aa,_0x4b67b4:0x3b6,_0x1961d7:0x27e,_0x39fee3:0x65,_0x38977f:0x2,_0x453fe0:0x5e,_0x2d4baf:0x0,_0x364f7b:0xe,_0x3c63bf:0x9a,_0x4a2c21:0x171,_0x2987f4:0x19,_0x29ffa3:0x3ca,_0x6ab6b0:0x341,_0x138df1:0x368,_0x136e97:0x264,_0x23983c:0x34d,_0xbd6f70:0x15d,_0x106e2c:0x56,_0x3d352e:0x9c,_0x299af8:0xd3,_0x5b0899:0xe,_0x2d2888:0x189,_0x446362:0x34f,_0x511e73:0x34c,_0x452060:0xbb,_0x5390f4:0x11a,_0x318e54:0x186,_0x3222eb:0xc3,_0x4e12e8:0x5e,_0x6228dc:0x10e,_0x2b0347:0x341,_0x4ae2a3:0x2a2,_0x108df9:0x17c,_0x35a29c:0x264,_0x4c6c0d:0x279,_0x3e58f7:0x2f0,_0x5f0953:0x1f7,_0x180c58:0x1a9,_0x386283:0x103,_0x271344:0x74,_0x277319:0x50,_0x1abf1c:0xe,_0x3516ad:0x46,_0x8eeecc:0x38a,_0x2fd45a:0x343,_0x2d2bc3:0x315,_0x554aa9:0x3ed,_0x3b4933:0x2e,_0xe5a866:0x2ef,_0x26b0fe:0x25c,_0x438cf6:0x298,_0x5dcf6e:0xcd,_0x5d6787:0x73},_0x1c87f8={_0x5180ed:0x1bd},_0x1f40a5=[];function _0x43c884(_0x246ee,_0x3f45aa,_0x5d7403,_0x18efdf){return _0x11bd88(_0x3f45aa- -_0x1c87f8._0x5180ed,_0x18efdf,_0x5d7403-0x67,_0x18efdf-0x1f3);}for(const _0x4341a2 of _0x452fb1['choices']??[]){const _0x113fc0=_0x4341a2['delta'],_0x3bb9ae=extractChatCompletionReasoningDelta(_0x113fc0);_0x3bb9ae[_0x8dc07d(-0xac,-_0x57cf2d._0x56a6c8,-_0x57cf2d._0x33758c,-_0x57cf2d._0x171555)]>0x0&&(this[_0x43c884(0x3d7,0x351,0x311,_0x57cf2d._0x447115)][_0x8dc07d(-_0x57cf2d._0x153ce1,-_0x57cf2d._0x20ec50,-_0x57cf2d._0x320754,0x83)](_0x3bb9ae),isUserVisibleReasoning(this[_0x8dc07d(-_0x57cf2d._0x569026,0x11c,_0x57cf2d._0x6931b8,0xfc)])&&_0x1f40a5['push']({'type':_0x43c884(0x399,0x38a,_0x57cf2d._0x460331,0x30b),'contentIndex':0x0,'delta':_0x3bb9ae,'itemId':(this[_0x8dc07d(-_0x57cf2d._0x1477ee,-_0x57cf2d._0x1cc993,_0x57cf2d._0x30161e,_0x57cf2d._0x1c02e5)]||'chatcmpl')+_0x8dc07d(_0x57cf2d._0x4ddc20,-_0x57cf2d._0x3eb776,-0xe,0xba),'outputIndex':0x0}));const _0x377fe7=typeof _0x113fc0?.[_0x43c884(_0x57cf2d._0x1d9564,0x269,_0x57cf2d._0x579f3d,_0x57cf2d._0x225bc4)]==='string'?_0x113fc0[_0x8dc07d(-_0x57cf2d._0x41e48b,-_0x57cf2d._0x36d330,-0xca,-_0x57cf2d._0x41b4ee)]:typeof _0x113fc0?.[_0x8dc07d(-_0x57cf2d._0x546b11,0xfd,0x65,0x23)]===_0x8dc07d(-_0x57cf2d._0x476623,-0x76,-0xde,-_0x57cf2d._0x346d0c)?_0x113fc0['refusal']:'';_0x377fe7[_0x43c884(0x1d1,0x272,0x32c,_0x57cf2d._0x2ffa0e)]>0x0&&(this['textParts'][_0x43c884(0x335,_0x57cf2d._0x47b6b0,_0x57cf2d._0x123b9a,_0x57cf2d._0x285d3f)](_0x377fe7),_0x1f40a5[_0x8dc07d(-_0x57cf2d._0x4a0183,-0x140,-0x5e,0x13)]({'type':_0x43c884(0x431,_0x57cf2d._0x1be578,0x3fb,_0x57cf2d._0x12af8a),'index':0x0,'text':_0x377fe7}));for(const _0x56f4ff of _0x113fc0?.['tool_calls']??[]){const _0x576404=_0x56f4ff[_0x8dc07d(-_0x57cf2d._0x36c9c4,-0x7a,-0x6b,-_0x57cf2d._0x11d3ce)]??0x0;let _0x3e41c8=this['toolCallsByIndex'][_0x8dc07d(-_0x57cf2d._0xb7deab,-_0x57cf2d._0x556d86,-0xda,-_0x57cf2d._0x34788d)](_0x576404);!_0x3e41c8&&(_0x3e41c8={'id':_0x56f4ff['id']??_0x43c884(_0x57cf2d._0x106719,0x249,0x23b,0x2ee)+_0x576404,'type':_0x8dc07d(_0x57cf2d._0x52863d,0x7d,0xe,-0xdb),'function':{'name':_0x56f4ff[_0x43c884(0x39f,_0x57cf2d._0x38e43f,_0x57cf2d._0x28afdc,_0x57cf2d._0x4b67b4)]?.[_0x43c884(_0x57cf2d._0x1961d7,0x264,0x215,0x1c9)]??'','arguments':''}},this['toolCallsByIndex'][_0x43c884(0x36d,0x37a,0x39f,0x304)](_0x576404,_0x3e41c8),this[_0x8dc07d(-0x22,-0x11c,-0x7f,-_0x57cf2d._0x39fee3)][_0x8dc07d(_0x57cf2d._0x38977f,0x1b,-_0x57cf2d._0x453fe0,-0x105)](_0x3e41c8));_0x56f4ff['id']&&(_0x3e41c8['id']=_0x56f4ff['id']);_0x56f4ff[_0x8dc07d(_0x57cf2d._0x2d4baf,0x6,_0x57cf2d._0x364f7b,0x5e)]?.['name']&&(_0x3e41c8['function'][_0x8dc07d(-_0x57cf2d._0x3c63bf,-_0x57cf2d._0x4a2c21,-0xcf,_0x57cf2d._0x2987f4)]=_0x56f4ff[_0x43c884(_0x57cf2d._0x29ffa3,_0x57cf2d._0x6ab6b0,0x410,_0x57cf2d._0x138df1)][_0x43c884(0x2b2,_0x57cf2d._0x136e97,0x2f9,_0x57cf2d._0x23983c)]);!this[_0x8dc07d(-_0x57cf2d._0xbd6f70,-0x79,-0xb2,-_0x57cf2d._0x106e2c)][_0x8dc07d(-0x10f,-0x153,-_0x57cf2d._0x3d352e,0x26)](_0x576404)&&_0x3e41c8[_0x8dc07d(-0x82,_0x57cf2d._0x299af8,_0x57cf2d._0x5b0899,0xc4)][_0x8dc07d(-0xe8,-0x74,-0xcf,-_0x57cf2d._0x2d2888)][_0x43c884(_0x57cf2d._0x446362,0x271,_0x57cf2d._0x511e73,0x1c2)]()[_0x8dc07d(-_0x57cf2d._0x452060,-_0x57cf2d._0x5390f4,-0xc1,-_0x57cf2d._0x318e54)]>0x0&&(_0x1f40a5[_0x8dc07d(-_0x57cf2d._0x3222eb,-0xdd,-_0x57cf2d._0x4e12e8,-_0x57cf2d._0x6228dc)]({'type':'tool_use_delta','id':_0x3e41c8['id'],'index':_0x576404,'name':_0x3e41c8[_0x43c884(0x36c,_0x57cf2d._0x2b0347,_0x57cf2d._0x4ae2a3,0x3e7)][_0x43c884(_0x57cf2d._0x108df9,_0x57cf2d._0x35a29c,_0x57cf2d._0x4c6c0d,_0x57cf2d._0x3e58f7)]}),this[_0x43c884(0x343,0x281,_0x57cf2d._0x5f0953,0x2c0)][_0x8dc07d(-_0x57cf2d._0x180c58,-0x97,-_0x57cf2d._0x386283,-_0x57cf2d._0x271344)](_0x576404));const _0x31e276=_0x56f4ff[_0x8dc07d(-_0x57cf2d._0x277319,0x3e,_0x57cf2d._0x1abf1c,0x8b)]?.['arguments']??'';_0x31e276['length']>0x0&&(_0x3e41c8['function'][_0x8dc07d(_0x57cf2d._0x3516ad,0x125,0xa3,-0xf)]+=_0x31e276,_0x1f40a5[_0x43c884(_0x57cf2d._0x8eeecc,0x2d5,_0x57cf2d._0x2fd45a,0x247)]({'type':_0x43c884(0x33f,_0x57cf2d._0x2d2bc3,_0x57cf2d._0x554aa9,0x3f8),'id':_0x3e41c8['id'],'index':_0x576404,'inputDelta':_0x31e276}));}_0x4341a2[_0x8dc07d(0x6f,-0x8f,-0x59,_0x57cf2d._0x3b4933)]===_0x43c884(0x377,_0x57cf2d._0xe5a866,_0x57cf2d._0x26b0fe,0x2e3)&&(this[_0x43c884(0x334,_0x57cf2d._0x438cf6,0x267,0x30c)]=_0x8dc07d(-0xef,-_0x57cf2d._0x5dcf6e,-_0x57cf2d._0x5d6787,-0xc1));}function _0x8dc07d(_0x572cc7,_0x339df3,_0x44ea11,_0xb5db57){return _0x11bd88(_0x44ea11- -0x4f0,_0x339df3,_0x44ea11-0x197,_0xb5db57-0x137);}return _0x1f40a5;}},OpenAiResponsesStreamParser=class{[_0x11bd88(0x419,0x3eb,0x4d4,0x3fc)]=new Map();[_0x11bd88(0x447,0x506,0x3e6,0x445)];['outputIndexToCallId']=new Map();[_0x11bd88(0x45b,0x4d0,0x47c,0x463)]=new Map();[_0xd1496a(0x5d7,0x5cb,0x604,0x60c)]=new Map();[_0x11bd88(0x552,0x5e9,0x595,0x571)];['responseTextParts']=new Map();[_0x11bd88(0x4c6,0x3fb,0x590,0x472)]=new Map();constructor(_0x36677d){this['request']=_0x36677d;}[_0xd1496a(0x43e,0x399,0x420,0x49f)](_0x414a4e){const _0x43e87e={_0x12587f:0x105,_0x4f289f:0x101,_0x5d1d3b:0xd6,_0x5df4e8:0xb8,_0x445dd9:0x1cd,_0x3acfa9:0xec,_0x1a7611:0x136,_0x3428ab:0x201,_0x19fb4e:0x221,_0x3d3507:0x29f,_0xeca038:0x1a5,_0x9180b5:0x1e6,_0x39c8e7:0x129,_0x5ec8bc:0x440,_0x23a96f:0x383,_0x4e7f6e:0x30b,_0x23cb21:0x29d,_0xb74cf5:0x117,_0x711af9:0x194,_0x50ce82:0x267,_0x80e9b5:0x26b,_0x274bda:0x1f6},_0x337c5b={_0x385de7:0x216},_0x369354=_0x414a4e['split']('\x0a');function _0x573fde(_0x13af08,_0x1180d8,_0x5789ec,_0x8e810f){return _0x11bd88(_0x1180d8- -_0x337c5b._0x385de7,_0x5789ec,_0x5789ec-0xf2,_0x8e810f-0xe3);}const _0x3e5c9d=_0x369354[_0x2b0846(0x158,_0x43e87e._0x12587f,_0x43e87e._0x4f289f,_0x43e87e._0x5d1d3b)](_0x53af93=>_0x53af93['startsWith'](_0x573fde(0x342,0x335,0x32e,0x3fc)))?.[_0x2b0846(_0x43e87e._0x5df4e8,0x1b8,0x11a,_0x43e87e._0x445dd9)](0x6)[_0x2b0846(0x1e6,_0x43e87e._0x3acfa9,0x128,0xe7)](),_0x1c68c0=_0x369354[_0x2b0846(_0x43e87e._0x1a7611,_0x43e87e._0x3428ab,_0x43e87e._0x19fb4e,_0x43e87e._0x3d3507)](_0x1dd49d=>_0x1dd49d['startsWith'](_0x2b0846(0x2f5,0x31b,0x254,0x225)))[_0x573fde(0x2cc,0x26c,0x1f7,_0x43e87e._0xeca038)](_0x53512e=>_0x53512e['slice'](0x5)[_0x573fde(0x36f,0x33a,0x348,0x2c3)]())['join']('\x0a')['trim']();if(_0x1c68c0[_0x2b0846(0x80,_0x43e87e._0x9180b5,_0x43e87e._0x39c8e7,0x1cf)]===0x0||_0x1c68c0===_0x573fde(_0x43e87e._0x5ec8bc,_0x43e87e._0x23a96f,_0x43e87e._0x4e7f6e,_0x43e87e._0x23cb21))return[];function _0x2b0846(_0xe04b03,_0x1dc13b,_0xac93f6,_0x436185){return _0xd1496a(_0xac93f6- -0x37b,_0x1dc13b-0x22,_0xe04b03,_0x436185-0x73);}const _0x4677cc=JSON[_0x573fde(_0x43e87e._0xb74cf5,0x1dc,_0x43e87e._0x711af9,_0x43e87e._0x50ce82)](_0x1c68c0);return this[_0x573fde(0x1d3,_0x43e87e._0x80e9b5,0x236,_0x43e87e._0x274bda)](_0x3e5c9d??String(_0x4677cc['type']??''),_0x4677cc);}[_0xd1496a(0x49e,0x403,0x490,0x3d3)](_0x372940){const _0x3528b7={_0xe7c069:0x1d4,_0x8006d4:0xbf,_0x25c4fc:0x1fd},_0x326cfd={_0x44359a:0x622,_0x4bce9b:0x5a};function _0x2346dd(_0x2cc551,_0x415b49,_0x8132e,_0x54b5b3){return _0xd1496a(_0x8132e- -_0x326cfd._0x44359a,_0x415b49-_0x326cfd._0x4bce9b,_0x54b5b3,_0x54b5b3-0xe0);}return this[_0x2346dd(-_0x3528b7._0xe7c069,-_0x3528b7._0x8006d4,-0x12c,-_0x3528b7._0x25c4fc)](String(_0x372940['type']??''),_0x372940);}[_0xd1496a(0x4c7,0x3fa,0x587,0x434)](){const _0x3440b6={_0x38f668:0x18f,_0x15c05c:0xa1,_0x2fbf28:0x1fb,_0x44b2c9:0x176,_0x9e0d59:0x1e8,_0x59dbc6:0x1a3,_0x2ce43c:0x1ef,_0x1b9658:0x8b,_0x3c28b1:0x117,_0x32c56b:0x5e,_0x38b7b6:0xd,_0x485c0b:0x46,_0x1c3486:0x6a},_0x5e8023={_0x424e0e:0x2f,_0x15e526:0x33},_0x100bcb={_0xacf187:0x19d};function _0x27a465(_0x306c7b,_0x1a940e,_0x3ba90e,_0x504f85){return _0xd1496a(_0x504f85- -0x631,_0x1a940e-0x113,_0x1a940e,_0x504f85-_0x100bcb._0xacf187);}function _0x4d7269(_0x4eba71,_0x3faff7,_0x49be53,_0x5dfb66){return _0xd1496a(_0x5dfb66- -0x6d3,_0x3faff7-_0x5e8023._0x424e0e,_0x49be53,_0x5dfb66-_0x5e8023._0x15e526);}const _0x32c277=this['finalResponse']??{'id':_0x4d7269(-0x23d,-0x1a4,-0x15b,-_0x3440b6._0x38f668)+Date[_0x4d7269(-0x240,-_0x3440b6._0x15c05c,-_0x3440b6._0x2fbf28,-_0x3440b6._0x44b2c9)](),'object':_0x27a465(-0x163,-_0x3440b6._0x9e0d59,-_0x3440b6._0x59dbc6,-0x142),'status':_0x27a465(-0x13d,-0x2be,-0x254,-_0x3440b6._0x2ce43c),'output':this[_0x27a465(-0xcf,_0x3440b6._0x1b9658,-_0x3440b6._0x3c28b1,-_0x3440b6._0x32c56b)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x32c277,this[_0x27a465(0x3b,_0x3440b6._0x38b7b6,-_0x3440b6._0x485c0b,-_0x3440b6._0x1c3486)]);}['isDone'](){const _0x535c25={_0x35ac46:0x4f,_0x1e9d9f:0xa6,_0x4ee24d:0x104},_0x414f3b={_0x46d956:0x1c3,_0x356804:0x1f1};function _0x3c74b6(_0x5c4bf6,_0xc792e3,_0x3c3c60,_0x6ec65){return _0x11bd88(_0x3c3c60- -0x4ed,_0x5c4bf6,_0x3c3c60-_0x414f3b._0x46d956,_0x6ec65-_0x414f3b._0x356804);}return this[_0x3c74b6(-_0x535c25._0x35ac46,-0x7,-_0x535c25._0x1e9d9f,-_0x535c25._0x4ee24d)]!==void 0x0;}['consumeEvent'](_0x13d212,_0xcea320){const _0x47fdaa={_0x3c88f3:0x26e,_0x446603:0x10b,_0x37b6af:0x19b,_0x565d35:0x2c8,_0x34b9d0:0x15d,_0x22f07c:0x30d,_0x597b2e:0x32,_0x170980:0x6c,_0x203092:0x1ce,_0x2f145d:0x2e,_0x4d76b9:0x3c,_0x1b9235:0x23,_0x341d9b:0x13f,_0x47ac90:0x21b,_0x9b0ddc:0x1a1,_0x5c9bdc:0x12f,_0x3fd5ce:0x4,_0x5705b2:0x47,_0x55721a:0xd4,_0x4bdccd:0x1,_0x4fa292:0x39,_0x17ef1a:0x136,_0x31c0d4:0x3d,_0x4c5845:0x10f,_0x319ba4:0x100,_0x403f18:0xc4,_0xca3f53:0x70,_0x2cfe0d:0x1e7,_0x56d660:0x2c8,_0x5d9784:0x34a,_0x2e549d:0x3ad,_0xc22a9e:0x2c2,_0x21ae8b:0xe,_0x554702:0x9a,_0x3f8103:0xa2,_0x34f40b:0x263,_0x5821f4:0x31,_0x134fa2:0x90,_0xcace1e:0x2a2,_0x568918:0x336,_0x2f6599:0x19c,_0x2766d8:0x225,_0x46c658:0x251,_0x381ed1:0x178,_0x2541c2:0x77,_0x31908f:0x30,_0x12bdee:0x75,_0x5acec4:0x37,_0x4cb2ca:0x2e5,_0x20323a:0x1d1,_0x5c79c5:0x2ab,_0x10a8d5:0xed,_0x103a49:0x2f,_0x7bd4d3:0x12c,_0x26c3eb:0x350,_0x23be98:0x175,_0x3ee15c:0x2,_0x4dfc1c:0x21,_0x3bc183:0x6,_0x9d1a8f:0xef,_0x31d691:0xf8,_0x335d18:0x158,_0xe01e6c:0x64,_0x2ab815:0x22b,_0x112191:0x35a,_0x13213b:0x26e,_0x132274:0x249,_0x5c7521:0x32,_0x47dfdc:0xcd,_0x24ef2f:0x113,_0x36c9bf:0x352,_0x3793f8:0x1bf,_0x1b2999:0x79,_0x5e55ba:0xb6,_0x2e86b8:0xd1,_0x6c1635:0x22d,_0x41ba37:0x219,_0x5e5173:0x1a1,_0x5128bd:0x19d,_0x4a3485:0x156,_0x42557a:0x2a3,_0x5ebe9f:0x1e9,_0x3414bd:0x279,_0x4d2c7b:0x5e,_0x27f25d:0x1,_0x46d9e0:0x11a,_0x343cc6:0x30c,_0x143a3c:0x289,_0x8771a5:0x2b8,_0x1b7476:0x315,_0x2858c4:0x31e,_0x4ff941:0x22d,_0x59937b:0x25d,_0x17a5cf:0x1a5,_0x4c2b16:0x235,_0x4b7088:0x1a4,_0x34e033:0xee,_0x5b6df0:0x1e6,_0x433ea0:0x22e,_0x1d61b2:0x107,_0x2b937f:0x322,_0x422bf9:0x25e,_0x126db1:0x243,_0x2e8063:0xd6,_0x5ecbc5:0x1ff,_0x5d01a5:0x1e7,_0x4bc0e5:0x1a1,_0x5ccfbe:0x129,_0x1932af:0xd3,_0x5d21c2:0x102,_0x311059:0x156,_0x491c4e:0x121,_0x3c1acb:0x7f,_0x26e8fb:0x407,_0x54f761:0x305,_0x3d251e:0x2ce,_0x593103:0x322,_0x5894e4:0xc2,_0x267271:0x17c,_0x1c2cb4:0x193,_0x4ee05f:0xe,_0x2b244a:0x3,_0xe85e64:0x66,_0x31415b:0x18,_0x3d3f77:0x55,_0x258dde:0xb7,_0x183f7a:0x365,_0xbd1215:0x1df,_0x5139df:0x172,_0x2db4fd:0xa2,_0x468106:0xaa,_0x40a379:0x164,_0x43415b:0xb2,_0x420ce0:0x14f,_0x46dfef:0x99,_0x7073d7:0x289,_0x22eddf:0x3f3,_0x5b1d60:0x31e,_0x577ae6:0x388,_0x1d481c:0x2d3,_0x484ea5:0x18,_0x504e37:0x9d,_0x2887a6:0xf8,_0x48ad21:0x1e4,_0x163051:0x127,_0x5162d7:0x108,_0x41914a:0xdf,_0x2842ab:0xcb,_0x194fa8:0x27,_0x25e0d4:0x56,_0x2f4455:0x263,_0x2a49bf:0x323,_0x24482e:0xab,_0x2dd5ba:0xd,_0x15c021:0x5c,_0x101430:0x69,_0x34698d:0x61,_0xb6df9a:0x1ea,_0x118cc9:0x2d0,_0x5d0d6b:0x307,_0x217562:0x77,_0x14f925:0x44,_0x34de36:0x142,_0xf290ee:0x54,_0x4d956a:0x37,_0x4e14fd:0x43,_0x5059bf:0x202,_0x2202c9:0x148,_0x3c5f40:0x2b9,_0x435c71:0xc9,_0x31e940:0x2e,_0xfc444f:0xae,_0x320ae0:0x15f,_0x319c52:0x97,_0x3b80d3:0x19e,_0x3fbc12:0x59,_0x3a6fa0:0x286,_0x52f6a3:0x234,_0x204db2:0x146,_0x568067:0x1b0,_0x41fac1:0xaa,_0x16efb3:0x1e,_0x3466f8:0x9d,_0x56178a:0xb1,_0x33e5af:0x24b,_0x117d61:0x2b5,_0x14ca02:0x1e9,_0x2f9eeb:0x1e3,_0x88cd3b:0x18,_0x551560:0xe9,_0x501dce:0xf8,_0xadbd0d:0xb1,_0x5af92a:0x3,_0x37df5b:0x28,_0x3358d9:0x29,_0x2325f8:0x39b,_0x45420c:0x300,_0x30dd86:0x109,_0x254bd0:0x13,_0xe91494:0x97,_0x2f62eb:0x153,_0x30d17c:0x2da,_0xaa4f5:0x2b7,_0xa8359e:0x2e9,_0x3f3300:0x2f2,_0xce5a98:0x20,_0x346a37:0x233,_0x534dc5:0x16,_0xc16088:0xca,_0x5a2d97:0x253,_0x16e070:0x19d,_0x3cde1f:0x1c1,_0x473dc7:0x12d,_0x4ba723:0x24f,_0x229de3:0x153,_0xa1cda:0x85,_0x11aa15:0x36,_0x6c1a7a:0xe0,_0x51625d:0x20c,_0x42819c:0x36d,_0x5f4321:0xa8,_0x437b09:0x7e,_0x5559e2:0xb7,_0x5078a2:0xae,_0x258af5:0x2fc,_0x4217e8:0x233,_0x6f6232:0x250,_0x44d781:0x1f6,_0x5ea884:0x2a,_0x2913ae:0xc3,_0x7bead:0x65,_0x390f9f:0xfc,_0x56542d:0x135,_0x4da958:0x219,_0x15e85d:0xc1,_0x4f7338:0x3d5,_0x36e2b4:0x242,_0x586805:0x17e,_0x47105f:0x1a7,_0x180404:0x134,_0x55254e:0xe6,_0x1792ee:0x1ba,_0x110678:0x105,_0x129e2e:0xcf,_0x376666:0x11e,_0x1778f0:0x1aa,_0x33add8:0xf2,_0x1045c:0x2c2,_0x401000:0x381,_0x21b14:0x3b,_0x37aa9c:0x126,_0x15c8de:0xf7,_0x22be8b:0x5b,_0xcb5804:0x2d2,_0x2214e0:0x30b,_0x51b010:0x20c,_0x2566b5:0x1c2,_0x5511b5:0xeb,_0x5748bb:0xbb,_0x5a1dc5:0x174,_0xea4c27:0x26f,_0x55d155:0x24c,_0x3900fc:0x31e,_0x24fa35:0xb0,_0x26cfbf:0xa,_0x2ad509:0x15c,_0x2f673f:0x226,_0xbf7523:0x219,_0x1d2172:0xc2,_0x280df2:0xa4,_0x5eb2a3:0x63,_0xd9c272:0x8a,_0x2aa77b:0x21c,_0x1fbd78:0x244,_0x507d0c:0x159,_0x4a9eba:0x25f,_0x5607f7:0x2fe,_0xae0ec1:0x2f4,_0x475a90:0x282,_0xa3f08f:0x1d2,_0x3d1084:0x46,_0x43d6cc:0xd7,_0x281115:0xb3,_0x1109d9:0xa2,_0x23cef3:0xb4,_0x47c950:0x141,_0x44eba1:0x162,_0x3d84fa:0xc6,_0x5f27b2:0x154,_0x306595:0x2da,_0x1d5c25:0x3a9,_0x348a1e:0x2d,_0x30849d:0x161,_0x43c21b:0xc6,_0x95a518:0x11e,_0x427cab:0xe3,_0xf5c8d6:0x20c,_0x1f7d44:0x2b0,_0x5546ba:0x233,_0x185680:0x240,_0x56263b:0x310,_0x380382:0x33d,_0x5316ab:0x3a,_0x47929a:0x37c,_0x4ea608:0x137,_0x226a48:0x119},_0x46c16e={_0x23eda1:0x275,_0x2bb03d:0x88},_0x16bd83={_0x398d68:0x535,_0x41ac23:0xdd};function _0x1c94a9(_0x4803eb,_0x2dbf01,_0xe0a0c7,_0x4c37e6){return _0xd1496a(_0x4803eb- -_0x16bd83._0x398d68,_0x2dbf01-0x184,_0x4c37e6,_0x4c37e6-_0x16bd83._0x41ac23);}function _0x5df954(_0x491297,_0x2e0bcb,_0x4cdcc3,_0x56b2d1){return _0x11bd88(_0x4cdcc3- -_0x46c16e._0x23eda1,_0x491297,_0x4cdcc3-_0x46c16e._0x2bb03d,_0x56b2d1-0x1ec);}switch(_0x13d212){case _0x5df954(_0x47fdaa._0x3c88f3,_0x47fdaa._0x446603,_0x47fdaa._0x37b6af,0x210):{const _0x273032=typeof _0xcea320[_0x5df954(_0x47fdaa._0x565d35,0x29b,0x219,_0x47fdaa._0x34b9d0)]===_0x5df954(0x258,0x25c,_0x47fdaa._0x22f07c,0x315)?_0xcea320[_0x1c94a9(-_0x47fdaa._0x597b2e,0x86,-0x7e,_0x47fdaa._0x170980)]:0x0,_0x29189c=typeof _0xcea320['delta']===_0x5df954(_0x47fdaa._0x203092,0xe4,0x19d,0x1af)?_0xcea320[_0x1c94a9(_0x47fdaa._0x2f145d,-_0x47fdaa._0x4d76b9,-_0x47fdaa._0x1b9235,0xb6)]:'';if(_0x29189c['length']>0x0){const _0x338e7f=this['responseTextParts'][_0x5df954(_0x47fdaa._0x341d9b,_0x47fdaa._0x47ac90,_0x47fdaa._0x9b0ddc,_0x47fdaa._0x5c9bdc)](_0x273032)??[];return _0x338e7f[_0x1c94a9(-_0x47fdaa._0x2f145d,-_0x47fdaa._0x3fd5ce,0x1b,_0x47fdaa._0x5705b2)](_0x29189c),this[_0x1c94a9(-_0x47fdaa._0x55721a,-_0x47fdaa._0x5c9bdc,-0xcd,_0x47fdaa._0x4bdccd)][_0x1c94a9(0x77,_0x47fdaa._0x4fa292,_0x47fdaa._0x17ef1a,-_0x47fdaa._0x31c0d4)](_0x273032,_0x338e7f),[{'type':_0x1c94a9(0xba,_0x47fdaa._0x4c5845,0x15f,_0x47fdaa._0x319ba4),'index':_0x273032,'text':_0x29189c}];}break;}case _0x1c94a9(-0x1d,_0x47fdaa._0x403f18,-0xbe,_0x47fdaa._0xca3f53):{const _0x50992e=typeof _0xcea320[_0x5df954(_0x47fdaa._0x2cfe0d,0x279,0x219,_0x47fdaa._0x56d660)]===_0x5df954(_0x47fdaa._0x5d9784,_0x47fdaa._0x2e549d,_0x47fdaa._0x22f07c,_0x47fdaa._0xc22a9e)?_0xcea320['output_index']:void 0x0,_0x567d10=_0xcea320[_0x1c94a9(_0x47fdaa._0x21ae8b,-_0x47fdaa._0x554702,_0x47fdaa._0x3f8103,0xe7)];if(_0x567d10?.[_0x5df954(0x326,0x1a4,_0x47fdaa._0x34f40b,0x1bb)]===_0x1c94a9(-_0x47fdaa._0x5821f4,_0x47fdaa._0x134fa2,0x80,-0x109)&&_0x567d10[_0x5df954(0x2ee,_0x47fdaa._0xcace1e,0x2ab,_0x47fdaa._0x568918)]&&_0x567d10[_0x5df954(0x269,0x244,0x1ac,0xea)])return this[_0x5df954(_0x47fdaa._0x2f6599,_0x47fdaa._0x2766d8,_0x47fdaa._0x46c658,_0x47fdaa._0x381ed1)][_0x1c94a9(_0x47fdaa._0x2541c2,_0x47fdaa._0x31908f,0x7,0x11)](_0x567d10[_0x1c94a9(0x60,_0x47fdaa._0x12bdee,0x104,0x4e)],{'id':_0x567d10['call_id'],'type':'function','function':{'name':_0x567d10[_0x1c94a9(-0x9f,-0xa5,-_0x47fdaa._0x5acec4,-0xea)],'arguments':''}}),_0x50992e!==void 0x0&&(this['outputIndexToCallId']['set'](_0x50992e,_0x567d10[_0x5df954(_0x47fdaa._0x4cb2ca,_0x47fdaa._0x20323a,_0x47fdaa._0x5c79c5,0x32f)]),this[_0x5df954(0x143,0x195,0x1a4,_0x47fdaa._0x10a8d5)][_0x1c94a9(_0x47fdaa._0x2541c2,0x101,-_0x47fdaa._0x103a49,_0x47fdaa._0x7bd4d3)](_0x567d10[_0x5df954(0x277,_0x47fdaa._0x26c3eb,0x2ab,0x1fd)],_0x50992e)),[{'type':'tool_use_delta','id':_0x567d10['call_id'],'index':_0x50992e??0x0,'name':_0x567d10[_0x1c94a9(-0x9f,-_0x47fdaa._0x31908f,-_0x47fdaa._0x23be98,-_0x47fdaa._0x3ee15c)]}];if(_0x567d10?.['type']===_0x1c94a9(-0xde,-_0x47fdaa._0x4dfc1c,_0x47fdaa._0x3bc183,-_0x47fdaa._0x9d1a8f)&&_0x567d10['id']){const _0x13a1cf=this[_0x1c94a9(-_0x47fdaa._0x31d691,-0x112,-0x110,-0x1c7)](_0x567d10['id'],_0x50992e);_0x50992e!==void 0x0&&this[_0x5df954(_0x47fdaa._0x335d18,_0x47fdaa._0xc22a9e,0x1e6,0x2b4)][_0x1c94a9(_0x47fdaa._0x2541c2,-_0x47fdaa._0x3fd5ce,0xd4,0x25)](_0x50992e,_0x13a1cf['id']);}break;}case _0x1c94a9(-0x36,_0x47fdaa._0xe01e6c,0x98,0x44):{const _0x579f40=typeof _0xcea320[_0x5df954(_0x47fdaa._0x2ab815,_0x47fdaa._0x112191,_0x47fdaa._0x5c79c5,_0x47fdaa._0x13213b)]==='string'?_0xcea320[_0x5df954(0x2fe,_0x47fdaa._0x132274,_0x47fdaa._0x5c79c5,0x21d)]:typeof _0xcea320[_0x1c94a9(-_0x47fdaa._0x5c7521,-_0x47fdaa._0x47dfdc,-_0x47fdaa._0x24ef2f,0x91)]===_0x5df954(0x238,0x396,0x30d,_0x47fdaa._0x36c9bf)?this[_0x1c94a9(-0xd9,-_0x47fdaa._0x3793f8,-0xe4,-_0x47fdaa._0x1b2999)][_0x1c94a9(-0xaa,-_0x47fdaa._0x5e55ba,-_0x47fdaa._0x2e86b8,-0xaa)](_0xcea320[_0x5df954(0x17e,_0x47fdaa._0x6c1635,_0x47fdaa._0x41ba37,0x1cd)]):void 0x0,_0x14b7df=typeof _0xcea320['delta']===_0x5df954(_0x47fdaa._0x5e5173,0x154,_0x47fdaa._0x5128bd,_0x47fdaa._0x4a3485)?_0xcea320[_0x5df954(_0x47fdaa._0x42557a,_0x47fdaa._0x5ebe9f,_0x47fdaa._0x3414bd,0x25e)]:'',_0x3295a1=_0x579f40?this[_0x1c94a9(_0x47fdaa._0x3bc183,0x2c,0x59,_0x47fdaa._0x4d2c7b)]['get'](_0x579f40):void 0x0;if(_0x3295a1&&_0x14b7df[_0x1c94a9(-0x91,-0xbe,_0x47fdaa._0x27f25d,-_0x47fdaa._0x46d9e0)]>0x0)return _0x3295a1[_0x5df954(0x34e,_0x47fdaa._0x343cc6,_0x47fdaa._0x143a3c,_0x47fdaa._0x8771a5)][_0x5df954(_0x47fdaa._0x1b7476,_0x47fdaa._0x26c3eb,_0x47fdaa._0x2858c4,0x252)]+=_0x14b7df,[{'type':_0x5df954(_0x47fdaa._0x4ff941,_0x47fdaa._0x41ba37,_0x47fdaa._0x59937b,_0x47fdaa._0x17a5cf),'id':_0x3295a1['id'],'index':this[_0x5df954(_0x47fdaa._0x4c2b16,0x130,_0x47fdaa._0x4b7088,_0x47fdaa._0x34e033)][_0x5df954(0x270,_0x47fdaa._0x5b6df0,0x1a1,_0x47fdaa._0x433ea0)](_0x3295a1['id'])??(typeof _0xcea320['output_index']==='number'?_0xcea320['output_index']:0x0),'inputDelta':_0x14b7df}];break;}case _0x1c94a9(-0xd7,-0x29,-_0x47fdaa._0x1d61b2,-0xbd):{const _0x1f1b5a=typeof _0xcea320[_0x1c94a9(0x60,-0x2,0xbb,-0x1b)]==='string'?_0xcea320[_0x5df954(0x344,_0x47fdaa._0x2b937f,0x2ab,0x31e)]:typeof _0xcea320['output_index']===_0x5df954(_0x47fdaa._0x422bf9,_0x47fdaa._0x126db1,_0x47fdaa._0x22f07c,0x3ed)?this['outputIndexToCallId']['get'](_0xcea320['output_index']):void 0x0,_0x33804c=_0x1f1b5a?this[_0x1c94a9(_0x47fdaa._0x3bc183,0x89,0xb3,-_0x47fdaa._0x2e8063)][_0x5df954(_0x47fdaa._0x5ecbc5,_0x47fdaa._0x5d01a5,_0x47fdaa._0x4bc0e5,_0x47fdaa._0x5ccfbe)](_0x1f1b5a):void 0x0;_0x33804c&&typeof _0xcea320[_0x1c94a9(_0x47fdaa._0x1932af,0x169,_0x47fdaa._0x5d21c2,_0x47fdaa._0x311059)]===_0x5df954(0x221,_0x47fdaa._0x491c4e,_0x47fdaa._0x5128bd,0x283)&&(_0x33804c[_0x1c94a9(0x3e,0x50,-_0x47fdaa._0x3c1acb,_0x47fdaa._0xe01e6c)]['arguments']=_0xcea320[_0x5df954(_0x47fdaa._0x26e8fb,_0x47fdaa._0x54f761,0x31e,0x31f)]);break;}case _0x5df954(_0x47fdaa._0x3d251e,0x210,0x285,_0x47fdaa._0x593103):{const _0x46e4bf=typeof _0xcea320['output_index']===_0x1c94a9(_0x47fdaa._0x5894e4,_0x47fdaa._0x267271,0x1a1,_0x47fdaa._0x1c2cb4)?_0xcea320['output_index']:void 0x0,_0x45fba6=_0xcea320[_0x1c94a9(_0x47fdaa._0x4ee05f,-_0x47fdaa._0x2b244a,_0x47fdaa._0xe85e64,-0xac)];if(_0x45fba6?.[_0x1c94a9(_0x47fdaa._0x31415b,0xae,-_0x47fdaa._0x3d3f77,-_0x47fdaa._0x258dde)]===_0x5df954(_0x47fdaa._0x4ff941,0x20a,0x21a,0x2bd)){const _0x3b66cb=_0x45fba6[_0x5df954(0x264,0x22f,0x2ab,_0x47fdaa._0x183f7a)]??(_0x46e4bf!==void 0x0?this[_0x5df954(0x137,_0x47fdaa._0xbd1215,_0x47fdaa._0x5139df,_0x47fdaa._0x2db4fd)][_0x1c94a9(-_0x47fdaa._0x468106,-_0x47fdaa._0x40a379,-0xa0,-0x16)](_0x46e4bf):void 0x0),_0x9292d4=_0x3b66cb?this['toolCalls'][_0x1c94a9(-_0x47fdaa._0x468106,-_0x47fdaa._0x43415b,-0x94,-0xc8)](_0x3b66cb):void 0x0;_0x9292d4&&typeof _0x45fba6[_0x5df954(_0x47fdaa._0xc22a9e,0x3f3,_0x47fdaa._0x2858c4,0x3e7)]===_0x1c94a9(-0xae,-_0x47fdaa._0x420ce0,-_0x47fdaa._0x46dfef,-0x26)&&(_0x9292d4[_0x5df954(0x371,0x27e,_0x47fdaa._0x7073d7,0x27f)][_0x5df954(_0x47fdaa._0x22eddf,0x2fe,_0x47fdaa._0x5b1d60,_0x47fdaa._0x577ae6)]=_0x45fba6[_0x5df954(_0x47fdaa._0x1d481c,0x2b5,0x31e,0x2dd)]);break;}if(_0x45fba6?.[_0x1c94a9(_0x47fdaa._0x484ea5,_0x47fdaa._0x4d76b9,-0xa1,-_0x47fdaa._0x2b244a)]===_0x5df954(_0x47fdaa._0x504e37,0x16e,0x16d,0x15a)&&_0x45fba6['id']){const _0x23a731=this[_0x1c94a9(-_0x47fdaa._0x2887a6,-0x186,-0x1cc,-0xfb)](_0x45fba6['id'],_0x46e4bf);typeof _0x45fba6[_0x5df954(_0x47fdaa._0x48ad21,0x321,0x2cd,0x247)]==='string'&&(_0x23a731['encryptedContent']=_0x45fba6['encrypted_content']);if(Array[_0x1c94a9(0xc6,_0x47fdaa._0x163051,_0x47fdaa._0x5162d7,_0x47fdaa._0x41914a)](_0x45fba6[_0x1c94a9(_0x47fdaa._0x2842ab,_0x47fdaa._0x194fa8,_0x47fdaa._0x9d1a8f,0x135)]))for(let _0x1fdbae=0x0;_0x1fdbae<_0x45fba6[_0x5df954(0x290,0x26d,0x316,0x3f0)]['length'];_0x1fdbae+=0x1){const _0x3745bd=_0x45fba6[_0x1c94a9(_0x47fdaa._0x2842ab,0x175,_0x47fdaa._0x25e0d4,0x1e)][_0x1fdbae];_0x3745bd[_0x5df954(0x33c,0x2fb,_0x47fdaa._0x2f4455,_0x47fdaa._0x2a49bf)]===_0x1c94a9(-_0x47fdaa._0x24482e,_0x47fdaa._0x4fa292,-_0x47fdaa._0x2dd5ba,-0x6d)&&typeof _0x3745bd[_0x1c94a9(-_0x47fdaa._0x15c021,_0x47fdaa._0x101430,0x4a,_0x47fdaa._0x34698d)]==='string'&&_0x23a731[_0x5df954(_0x47fdaa._0xb6df9a,0x29f,_0x47fdaa._0x118cc9,_0x47fdaa._0x5d0d6b)][_0x1c94a9(_0x47fdaa._0x217562,-_0x47fdaa._0x14f925,_0x47fdaa._0x34de36,-_0x47fdaa._0xf290ee)](_0x1fdbae,_0x3745bd[_0x1c94a9(-0x5c,-0xd,-0xfe,-0x2d)]);}typeof _0x45fba6[_0x1c94a9(-_0x47fdaa._0x15c021,-_0x47fdaa._0x4d956a,-0x5e,-_0x47fdaa._0x4e14fd)]==='string'&&_0x23a731[_0x5df954(0x1bf,_0x47fdaa._0x5059bf,0x159,_0x47fdaa._0x2202c9)][_0x5df954(0x386,0x3ac,0x2c2,_0x47fdaa._0x3c5f40)](0x0,_0x45fba6[_0x1c94a9(-_0x47fdaa._0x15c021,-0x90,-0x73,_0x47fdaa._0xca3f53)]);}break;}case _0x1c94a9(_0x47fdaa._0x435c71,-0x17,_0x47fdaa._0x5705b2,0x80):{const _0x54d3a8=typeof _0xcea320[_0x1c94a9(_0x47fdaa._0x31e940,0x1,0xf,0x65)]===_0x1c94a9(-_0x47fdaa._0xfc444f,-0x122,-_0x47fdaa._0x320ae0,-0x45)?_0xcea320[_0x1c94a9(_0x47fdaa._0x31e940,-0xbc,-_0x47fdaa._0x319c52,0x82)]:'',_0x1f02cd=typeof _0xcea320['item_id']===_0x5df954(_0x47fdaa._0x3b80d3,0xc8,0x19d,_0x47fdaa._0x20323a)?_0xcea320[_0x1c94a9(0x1,0x4b,-0x6e,-_0x47fdaa._0x3fbc12)]:typeof _0xcea320[_0x5df954(_0x47fdaa._0x3a6fa0,_0x47fdaa._0x565d35,_0x47fdaa._0x41ba37,_0x47fdaa._0x52f6a3)]===_0x1c94a9(_0x47fdaa._0x5894e4,0x166,0x49,_0x47fdaa._0x204db2)?this[_0x5df954(0x25a,0x289,0x1e6,_0x47fdaa._0x568067)][_0x1c94a9(-_0x47fdaa._0x41fac1,_0x47fdaa._0x16efb3,-0x67,-0x5f)](_0xcea320[_0x1c94a9(-0x32,-0xef,_0x47fdaa._0x3466f8,-0xa5)]):void 0x0,_0x10b629=typeof _0xcea320[_0x1c94a9(-0x32,-_0x47fdaa._0x47dfdc,0x89,_0x47fdaa._0x56178a)]===_0x5df954(_0x47fdaa._0x33e5af,0x331,0x30d,_0x47fdaa._0x117d61)?_0xcea320[_0x5df954(_0x47fdaa._0x422bf9,_0x47fdaa._0x14ca02,0x219,_0x47fdaa._0x2f9eeb)]:0x0,_0x5b6ef7=typeof _0xcea320[_0x1c94a9(-_0x47fdaa._0x88cd3b,0x12,-_0x47fdaa._0x551560,-_0x47fdaa._0x501dce)]===_0x1c94a9(0xc2,0x104,_0x47fdaa._0xadbd0d,-0x10)?_0xcea320[_0x1c94a9(-0x18,0x94,-_0x47fdaa._0x5af92a,-_0x47fdaa._0x37df5b)]:0x0;if(_0x1f02cd&&_0x54d3a8['length']>0x0){const _0x2f7796=this[_0x5df954(0x118,0x18c,0x153,0x16a)](_0x1f02cd,_0x10b629);_0x2f7796[_0x5df954(0x256,0x24f,0x2d0,0x29a)][_0x1c94a9(0x77,0x17,-0x4c,_0x47fdaa._0x3358d9)](_0x5b6ef7,''+(_0x2f7796[_0x5df954(0x2e4,0x2f9,_0x47fdaa._0x118cc9,_0x47fdaa._0x2325f8)]['get'](_0x5b6ef7)??'')+_0x54d3a8);if(isUserVisibleReasoning(this[_0x5df954(_0x47fdaa._0x45420c,_0x47fdaa._0x593103,0x2dd,0x345)]))return[{'type':_0x1c94a9(-0x5a,0x88,-_0x47fdaa._0x30dd86,-_0x47fdaa._0x254bd0),'delta':_0x54d3a8,'itemId':_0x1f02cd,'outputIndex':_0x10b629,'summaryIndex':_0x5b6ef7}];}break;}case'response.reasoning_summary_text.done':{const _0x5ac0bf=typeof _0xcea320[_0x1c94a9(_0x47fdaa._0x27f25d,-_0x47fdaa._0xe91494,0xb0,-0x15)]===_0x5df954(_0x47fdaa._0x2f62eb,0x204,0x19d,0x1fd)?_0xcea320[_0x5df954(_0x47fdaa._0x30d17c,_0x47fdaa._0xaa4f5,0x24c,_0x47fdaa._0x3a6fa0)]:typeof _0xcea320[_0x5df954(_0x47fdaa._0xa8359e,_0x47fdaa._0x3f3300,0x219,0x206)]==='number'?this['outputIndexToReasoningId']['get'](_0xcea320['output_index']):void 0x0,_0x47bbdf=typeof _0xcea320[_0x5df954(0x258,0x19c,0x219,0x161)]===_0x1c94a9(0xc2,0x83,0x143,0xf8)?_0xcea320[_0x1c94a9(-0x32,-_0x47fdaa._0x4d76b9,-0x13,_0x47fdaa._0xce5a98)]:0x0,_0x59bb17=typeof _0xcea320[_0x5df954(_0x47fdaa._0x40a379,0x1ad,_0x47fdaa._0x346a37,0x28e)]==='number'?_0xcea320[_0x1c94a9(-0x18,-0xe3,_0x47fdaa._0x534dc5,0x3b)]:0x0,_0x5197fa=typeof _0xcea320[_0x1c94a9(-_0x47fdaa._0x15c021,-_0x47fdaa._0xc16088,0x80,-0x62)]===_0x5df954(0x178,_0x47fdaa._0x5a2d97,_0x47fdaa._0x16e070,_0x47fdaa._0x3cde1f)?_0xcea320[_0x5df954(_0x47fdaa._0x473dc7,_0x47fdaa._0x4ba723,0x1ef,0x14f)]:'';_0x5ac0bf&&this[_0x5df954(0x1e0,0xc8,_0x47fdaa._0x229de3,_0x47fdaa._0x55721a)](_0x5ac0bf,_0x47bbdf)[_0x1c94a9(_0x47fdaa._0xa1cda,-_0x47fdaa._0x11aa15,0x129,_0x47fdaa._0x6c1a7a)][_0x5df954(_0x47fdaa._0x51625d,_0x47fdaa._0x42819c,0x2c2,0x2d3)](_0x59bb17,_0x5197fa);break;}case _0x1c94a9(-_0x47fdaa._0x5f4321,-0x175,-0x9,-_0x47fdaa._0x437b09):{const _0xa57ccd=typeof _0xcea320[_0x1c94a9(0x2e,0xe,0x46,-_0x47fdaa._0x5559e2)]===_0x1c94a9(-_0x47fdaa._0x5078a2,-_0x47fdaa._0x43415b,-0xea,0x14)?_0xcea320[_0x5df954(0x2de,_0x47fdaa._0x258af5,0x279,0x230)]:'',_0x47b2a9=typeof _0xcea320[_0x5df954(0x2bf,_0x47fdaa._0x4217e8,0x24c,0x1bb)]===_0x5df954(0x279,0xf8,_0x47fdaa._0x5128bd,_0x47fdaa._0x6f6232)?_0xcea320[_0x5df954(_0x47fdaa._0x44d781,0x296,0x24c,0x32d)]:typeof _0xcea320['output_index']===_0x1c94a9(_0x47fdaa._0x5894e4,_0x47fdaa._0x4e14fd,_0x47fdaa._0x5ea884,_0x47fdaa._0x2913ae)?this[_0x1c94a9(-_0x47fdaa._0x7bead,-0xc,-_0x47fdaa._0x390f9f,-0xf)]['get'](_0xcea320[_0x5df954(0x1dc,_0x47fdaa._0x56542d,_0x47fdaa._0x4da958,0x17a)]):void 0x0,_0x54a655=typeof _0xcea320[_0x1c94a9(-0x32,-0xe0,_0x47fdaa._0x254bd0,-_0x47fdaa._0x15e85d)]===_0x5df954(_0x47fdaa._0x4f7338,0x287,0x30d,_0x47fdaa._0x36e2b4)?_0xcea320['output_index']:0x0,_0x49c12a=typeof _0xcea320['content_index']==='number'?_0xcea320[_0x5df954(_0x47fdaa._0x586805,0x19f,_0x47fdaa._0x47105f,_0x47fdaa._0x180404)]:0x0;if(_0x47b2a9&&_0xa57ccd[_0x5df954(_0x47fdaa._0x55254e,0x1f8,_0x47fdaa._0x1792ee,_0x47fdaa._0x110678)]>0x0){const _0x3457a4=this[_0x1c94a9(-0xf8,-_0x47fdaa._0x129e2e,-_0x47fdaa._0x376666,-_0x47fdaa._0x1778f0)](_0x47b2a9,_0x54a655);_0x3457a4[_0x1c94a9(-_0x47fdaa._0x33add8,-_0x47fdaa._0x41fac1,-0x11a,-0x128)][_0x5df954(0x25c,0x36a,_0x47fdaa._0x1045c,_0x47fdaa._0x401000)](_0x49c12a,''+(_0x3457a4[_0x1c94a9(-_0x47fdaa._0x33add8,-0x99,-0x13e,-0x9c)][_0x1c94a9(-_0x47fdaa._0x468106,-_0x47fdaa._0x21b14,-0x27,-0x89)](_0x49c12a)??'')+_0xa57ccd);if(isUserVisibleReasoning(this[_0x1c94a9(0x92,_0x47fdaa._0x37aa9c,_0x47fdaa._0x15c8de,_0x47fdaa._0x22be8b)]))return[{'type':_0x5df954(0x2e8,0x2ee,_0x47fdaa._0xcb5804,_0x47fdaa._0x2214e0),'contentIndex':_0x49c12a,'delta':_0xa57ccd,'itemId':_0x47b2a9,'outputIndex':_0x54a655}];}break;}case _0x5df954(0x20a,_0x47fdaa._0x51b010,_0x47fdaa._0x2566b5,_0x47fdaa._0x5511b5):{const _0x527462=typeof _0xcea320[_0x1c94a9(_0x47fdaa._0x27f25d,-0xc6,-_0x47fdaa._0x4d76b9,-0x30)]===_0x5df954(0x12d,_0x47fdaa._0x5748bb,0x19d,_0x47fdaa._0x5a1dc5)?_0xcea320[_0x5df954(0x2ca,_0x47fdaa._0xea4c27,_0x47fdaa._0x55d155,_0x47fdaa._0x3900fc)]:typeof _0xcea320['output_index']===_0x1c94a9(_0x47fdaa._0x5894e4,_0x47fdaa._0xe91494,_0x47fdaa._0x24fa35,0x21)?this['outputIndexToReasoningId'][_0x1c94a9(-0xaa,-0x7e,-_0x47fdaa._0x26cfbf,-0xbd)](_0xcea320['output_index']):void 0x0,_0x4132e7=typeof _0xcea320[_0x5df954(_0x47fdaa._0x2ad509,_0x47fdaa._0x2f673f,_0x47fdaa._0xbf7523,0x17c)]===_0x1c94a9(_0x47fdaa._0x1d2172,0xa9,0x127,0xd1)?_0xcea320['output_index']:0x0,_0x4b255a=typeof _0xcea320[_0x5df954(0x17d,0x14a,_0x47fdaa._0x47105f,0x107)]==='number'?_0xcea320[_0x1c94a9(-_0x47fdaa._0x280df2,-0x10d,-0x109,-_0x47fdaa._0x5eb2a3)]:0x0,_0x426155=typeof _0xcea320[_0x1c94a9(-0x5c,-0xb,0x76,_0x47fdaa._0xd9c272)]==='string'?_0xcea320['text']:'';_0x527462&&this[_0x5df954(0x22b,_0x47fdaa._0x2aa77b,_0x47fdaa._0x2f62eb,0x6c)](_0x527462,_0x4132e7)[_0x5df954(_0x47fdaa._0x1fbd78,0x238,_0x47fdaa._0x507d0c,0x95)]['set'](_0x4b255a,_0x426155);break;}case _0x5df954(_0x47fdaa._0x4a9eba,_0x47fdaa._0x5607f7,_0x47fdaa._0xae0ec1,0x2d7):{this[_0x5df954(0x142,_0x47fdaa._0x475a90,_0x47fdaa._0xa3f08f,0x25f)]=_0xcea320[_0x1c94a9(-_0x47fdaa._0x3d1084,-_0x47fdaa._0x43d6cc,0x37,-0xe7)];break;}case _0x1c94a9(0x15,_0x47fdaa._0x281115,-_0x47fdaa._0x1109d9,-_0x47fdaa._0x23cef3):{const _0xd90d07=_0xcea320[_0x5df954(0x18f,0x220,0x205,_0x47fdaa._0x47c950)];throw new ProviderStreamEventError(_0xd90d07?.[_0x5df954(0x166,_0x47fdaa._0x44eba1,0x185,_0x47fdaa._0x9d1a8f)]?.['message']??'Responses\x20stream\x20failed',{'code':_0xd90d07?.[_0x1c94a9(-_0x47fdaa._0x3d84fa,-0x158,-_0x47fdaa._0x403f18,-_0x47fdaa._0x5f27b2)]?.[_0x5df954(_0x47fdaa._0x306595,0x3c9,0x31b,_0x47fdaa._0x1d5c25)],'retryable':!![]});}case _0x1c94a9(-0xc6,-_0x47fdaa._0x348a1e,-_0x47fdaa._0x30849d,-0xa4):{const _0x496564=_0xcea320[_0x1c94a9(-_0x47fdaa._0x43c21b,-_0x47fdaa._0x95a518,-_0x47fdaa._0x427cab,-0x49)];throw new ProviderStreamEventError(_0x496564?.[_0x5df954(0x344,_0x47fdaa._0xf5c8d6,_0x47fdaa._0x1f7d44,0x2da)]??_0x5df954(0x317,_0x47fdaa._0x5546ba,0x2f2,_0x47fdaa._0x185680),{'code':_0x496564?.[_0x5df954(_0x47fdaa._0x56263b,_0x47fdaa._0x112191,0x31b,_0x47fdaa._0x380382)],'retryable':!![],'status':typeof _0xcea320[_0x1c94a9(-0x72,-0xe3,-0x13b,-_0x47fdaa._0x5316ab)]===_0x5df954(_0x47fdaa._0x47929a,0x26e,_0x47fdaa._0x22f07c,0x226)?_0xcea320[_0x5df954(0x295,_0x47fdaa._0x4ea608,0x1d9,_0x47fdaa._0x226a48)]:void 0x0});}}return[];}[_0x11bd88(0x55e,0x594,0x5df,0x623)](){const _0x43dd86={_0xe736c9:0x354,_0x3cc861:0x418,_0x457e0e:0x3f9,_0xbef207:0x302,_0x3f7c1c:0x2de,_0x232da3:0x2c9,_0x238918:0x360,_0x35c1c6:0x45c,_0x3b617a:0x424,_0x2e87de:0x3d4,_0x3a7920:0x49c,_0x5e55b8:0x44c,_0x157ac2:0x48a,_0x5ddbfa:0x417,_0x3a079c:0x43c,_0x50f737:0x3de,_0x22cc45:0x3e2,_0x310902:0x343,_0x4f3f3b:0x2e1,_0xa82b90:0x2bb,_0x285ec8:0x2c6,_0x4a6910:0x1fd,_0x4d9d5b:0x2c7,_0x288501:0x28b,_0x2d81af:0x282,_0x45fa77:0x3d8,_0x579767:0x444,_0x5bb4a8:0x39c,_0x4187c8:0x2cd,_0x92113d:0x413,_0x49a14c:0x354,_0xf6cc31:0x3b1,_0x4b41e4:0x41b,_0x25eead:0x315,_0x42aea4:0x263,_0x28bc3b:0x2b4,_0x53639d:0x218,_0x55ba3e:0x2ca,_0x50bab8:0x34e,_0x1a1df6:0x2e6,_0x538fd7:0x2dc,_0x2f3909:0x3e7,_0x10dbb9:0x369,_0xe84ec2:0x3aa,_0x181fc4:0x4a3,_0x1a4d36:0x3c5,_0x38856a:0x3a9,_0x305103:0x2fb,_0xfcbc21:0x3b5,_0x3b1d5f:0x2d4,_0x1b619b:0x315,_0x381067:0x38e,_0x1df4d9:0x330,_0x44ff39:0x38d,_0x46d26c:0x3fa,_0x1861fc:0x434,_0x3909be:0x320,_0x1c70c2:0x290,_0x4e4efe:0x3fd,_0x4bdf8f:0x421,_0x429a2e:0x482,_0x3c4f35:0x3bd,_0x2abfd8:0x3a7,_0x46059c:0x2fc,_0x179e40:0x286,_0x5eb559:0x299},_0x4db21f={_0x4ab880:0x104,_0x4d17b9:0x5d},_0xe1c95a={_0x333646:0x1ef,_0x35084c:0x28d},_0x1a1f58={_0x4aa82d:0x4b};function _0x4127fa(_0x159026,_0x4017cb,_0x3344cf,_0x2fc27a){return _0xd1496a(_0x4017cb- -0x176,_0x4017cb-_0x1a1f58._0x4aa82d,_0x159026,_0x2fc27a-0x28);}const _0x172804=[];for(const [_0x4adffb,_0x456d28]of this['responseTextParts'][_0x31c80f(0x385,_0x43dd86._0xe736c9,_0x43dd86._0x3cc861,0x3f3)]()){const _0x20194e=_0x456d28[_0x4127fa(0x323,0x369,_0x43dd86._0x457e0e,_0x43dd86._0xbef207)]('');if(_0x20194e[_0x4127fa(0x278,0x32e,_0x43dd86._0x3f7c1c,0x281)]===0x0)continue;_0x172804[_0x31c80f(0x34f,0x38e,_0x43dd86._0x232da3,_0x43dd86._0x238918)]({'index':_0x4adffb,'item':{'type':_0x4127fa(_0x43dd86._0x35c1c6,_0x43dd86._0x3b617a,0x40c,_0x43dd86._0x2e87de),'role':_0x4127fa(_0x43dd86._0x3a7920,_0x43dd86._0x5e55b8,_0x43dd86._0x157ac2,_0x43dd86._0x5ddbfa),'content':[{'type':'output_text','text':_0x20194e}]}});}for(const _0x41053f of this[_0x4127fa(0x48e,0x461,_0x43dd86._0x3a079c,0x3ff)][_0x31c80f(_0x43dd86._0x50f737,0x2fb,_0x43dd86._0x22cc45,0x294)]()){_0x172804['push']({'index':_0x41053f[_0x31c80f(0x30b,0x3c8,0x49b,0x34c)]??_0x172804['length'],'item':{'type':_0x4127fa(_0x43dd86._0x310902,_0x43dd86._0x4f3f3b,_0x43dd86._0xa82b90,0x36e),'id':_0x41053f['id'],..._0x41053f[_0x4127fa(_0x43dd86._0x285ec8,0x2ca,0x39b,_0x43dd86._0x4a6910)]?{'encrypted_content':_0x41053f[_0x31c80f(0x325,_0x43dd86._0x4d9d5b,_0x43dd86._0x288501,_0x43dd86._0x2d81af)]}:{},..._0x41053f[_0x4127fa(_0x43dd86._0x45fa77,_0x43dd86._0x579767,0x507,0x44a)][_0x31c80f(_0x43dd86._0x5bb4a8,_0x43dd86._0x4187c8,0x2e2,0x385)]>0x0?{'summary':Array['from'](_0x41053f['summaryByIndex'][_0x31c80f(_0x43dd86._0x92113d,_0x43dd86._0x49a14c,_0x43dd86._0xf6cc31,_0x43dd86._0x4b41e4)]())[_0x31c80f(0x454,0x369,0x3e1,0x2e1)]((_0x586304,_0x1dd820)=>_0x586304[0x0]-_0x1dd820[0x0])['map'](([,_0x1a046e])=>{const _0xba1cea={_0x4cc035:0x14c,_0x39acf3:0x25};function _0x58e527(_0x4194a8,_0x255f78,_0x400ecc,_0x5b3974){return _0x31c80f(_0x4194a8-_0xba1cea._0x4cc035,_0x5b3974- -0x6c,_0x400ecc-_0xba1cea._0x39acf3,_0x400ecc);}return{'type':_0x58e527(0x334,_0xe1c95a._0x333646,_0xe1c95a._0x35084c,0x2a5),'text':_0x1a046e};})}:{},..._0x41053f[_0x31c80f(0x31e,0x2ca,_0x43dd86._0x25eead,_0x43dd86._0x42aea4)][_0x31c80f(_0x43dd86._0x28bc3b,_0x43dd86._0x4187c8,0x361,0x2c5)]>0x0?{'text':Array['from'](_0x41053f[_0x31c80f(_0x43dd86._0x53639d,_0x43dd86._0x55ba3e,_0x43dd86._0x50bab8,_0x43dd86._0x1a1df6)]['entries']())['sort']((_0x50d0a6,_0x51c31a)=>_0x50d0a6[0x0]-_0x51c31a[0x0])[_0x4127fa(_0x43dd86._0x538fd7,0x381,0x301,0x2f1)](([,_0x21f7d9])=>_0x21f7d9)[_0x4127fa(_0x43dd86._0x2f3909,_0x43dd86._0x10dbb9,0x2fc,_0x43dd86._0xe84ec2)]('')}:{}}});}for(const _0x5eca98 of this[_0x4127fa(_0x43dd86._0x181fc4,_0x43dd86._0x1a4d36,_0x43dd86._0x38856a,0x329)][_0x31c80f(_0x43dd86._0x3f7c1c,_0x43dd86._0x305103,0x2bc,_0x43dd86._0xfcbc21)]()){_0x172804[_0x31c80f(0x309,0x38e,_0x43dd86._0x3b1d5f,0x42c)]({'index':this['callIdToOutputIndex'][_0x4127fa(0x2eb,_0x43dd86._0x1b619b,_0x43dd86._0x457e0e,0x332)](_0x5eca98['id'])??_0x172804['length'],'item':{'type':_0x4127fa(_0x43dd86._0x1a4d36,_0x43dd86._0x381067,_0x43dd86._0x1df4d9,0x3f1),'call_id':_0x5eca98['id'],'name':_0x5eca98[_0x31c80f(_0x43dd86._0x44ff39,_0x43dd86._0x46d26c,0x3f7,_0x43dd86._0x1861fc)][_0x4127fa(0x244,_0x43dd86._0x3909be,_0x43dd86._0x1c70c2,0x33a)],'arguments':_0x5eca98[_0x4127fa(0x4bd,_0x43dd86._0x4e4efe,_0x43dd86._0x4bdf8f,0x44f)][_0x31c80f(_0x43dd86._0x429a2e,0x48f,_0x43dd86._0x3c4f35,_0x43dd86._0x2abfd8)]}});}function _0x31c80f(_0x1d7741,_0x139014,_0xa6b3d2,_0x4dc7dc){return _0x11bd88(_0x139014- -_0x4db21f._0x4ab880,_0x4dc7dc,_0xa6b3d2-_0x4db21f._0x4d17b9,_0x4dc7dc-0x4);}return _0x172804[_0x31c80f(_0x43dd86._0x46059c,_0x43dd86._0x10dbb9,_0x43dd86._0x179e40,0x338)]((_0x13d548,_0x166c77)=>_0x13d548[_0x31c80f(0x373,0x381,0x3c7,0x2b7)]-_0x166c77[_0x31c80f(0x340,0x381,0x2a0,0x300)])[_0x4127fa(0x3a6,0x381,_0x43dd86._0x5eb559,0x3e2)](_0x4d9938=>_0x4d9938[_0x4127fa(0x467,0x3cd,0x303,0x422)]);}['getOrCreateReasoningItem'](_0x348dfa,_0x4f0eb3){const _0x308601={_0x32fbb5:0x27a,_0x7196af:0x2f8,_0x34e1e5:0x218,_0x5b9922:0x6f,_0x5f2588:0xbe,_0x1f7756:0x4c7,_0x1be233:0x51e,_0x5b4ff4:0x53c,_0x2b60fc:0x456,_0x194227:0x451,_0x149400:0x4cb,_0x4af5aa:0x33e,_0x19b32a:0x291,_0x9ab0ab:0x33a,_0x16354c:0x1ce,_0x1ec123:0x532,_0x5863e2:0x606,_0x5c983a:0x54f,_0x18a4df:0x502},_0xbdd449={_0x1d28b1:0x107};function _0x457ee3(_0x5271f1,_0x1dcddc,_0x4a72aa,_0x33a5a5){return _0x11bd88(_0x5271f1- -0x5,_0x33a5a5,_0x4a72aa-0xa2,_0x33a5a5-0x103);}const _0x194dc5=this[_0x200f0a(0x291,_0x308601._0x32fbb5,_0x308601._0x7196af,_0x308601._0x34e1e5)][_0x200f0a(0x145,_0x308601._0x5b9922,_0x308601._0x5f2588,0xb6)](_0x348dfa);if(_0x194dc5)return _0x4f0eb3!==void 0x0&&(_0x194dc5[_0x457ee3(_0x308601._0x1f7756,_0x308601._0x1be233,0x470,_0x308601._0x5b4ff4)]=_0x4f0eb3,this[_0x457ee3(_0x308601._0x2b60fc,0x3f7,_0x308601._0x194227,_0x308601._0x149400)][_0x200f0a(0x266,0x2a2,_0x308601._0x4af5aa,0x34b)](_0x4f0eb3,_0x348dfa)),_0x194dc5;const _0x28c83b={'id':_0x348dfa,'outputIndex':_0x4f0eb3,'summaryByIndex':new Map(),'textByIndex':new Map()};function _0x200f0a(_0x15fe76,_0x35f80a,_0x162e3e,_0x2e10d6){return _0xd1496a(_0x15fe76- -0x346,_0x35f80a-_0xbdd449._0x1d28b1,_0x2e10d6,_0x2e10d6-0x9d);}return this[_0x200f0a(_0x308601._0x19b32a,0x239,_0x308601._0x9ab0ab,_0x308601._0x16354c)][_0x457ee3(_0x308601._0x1ec123,_0x308601._0x5863e2,_0x308601._0x5c983a,_0x308601._0x18a4df)](_0x348dfa,_0x28c83b),_0x4f0eb3!==void 0x0&&this[_0x457ee3(0x456,0x517,0x509,0x4bb)]['set'](_0x4f0eb3,_0x348dfa),_0x28c83b;}};function _0x4483(){const _0xcb6f75=['ndiWnJaXELHkzvLl','Bw9KzwW','AM9PBG','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','Bwf4vg9Rzw5Z','C29YDa','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','zgLZywjSzwq','ChjVDg9JB2W','Dg9VBenHBgXpCMrLCG','CMvHC29UAw5Nx2nVBNrLBNq','y2f0y2G','Dgv4Dc9LDMvUDc1ZDhjLyw0','C3rYAwn0','BhmGlwXH','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','yMfZzvvYBa','nZi5CMHivNPw','CMvZCg9UC2u','ue9tva','z2v0uMvHzgvY','Dg9VBf91C2u','C2nOzw1H','C291CMnL','z3b0ltrV','y29UC3vTzuv2zw50','BwfW','CM91DgvY','y3jLyxrLu3rYzwfTugfYC2vY','Aw5KzxG','CgfYC2vszxnWB25Zzq','BxnNlq','AxngAw5PDgu','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','DgHPBMTPBMC','Aw5JBhvKzxm','Aw5WDxrFDg9Rzw5Z','B3v0Chv0x2LUzgv4','zNvUy3rPB25Fy2fSBa','r2L0shvIie1VzgvSCYaVienVCgLSB3q','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','ChvZAa','Aw5WDxrkC29U','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','AgvHzgvYuMvZB2X2zxi','y29UDgvUDf9IBg9JAW','zMLUAxnOx3jLyxnVBG','C2vSzwn0u3vYzMfJzq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','r2L0shvIiefqssbLCNjVCIa','yM9KEq','Ahr0Cc1ZC2u','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','B3v0Chv0x3rLEhq','y2fWywjSzv9LBMrWB2LUDhm','Dg9VBhm','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','Dgv4DfbHCNrZ','yMvHCMvY','DNnJB2rLlZeUmta0lJi','B3bLBMfPl2DWDc00BW','C3vTBwfYEv9PBMrLEa','v2vIu29JA2v0','ywjVCNq','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','Dg9VBf9JywXSCW','CMv0CNLHyMXL','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','Bw9Kzq','mtbPzMPmtKy','C3vWCg9YDhnnB2rLBezLDgnO','mZKXotjOsgrSsKC','zw5HyMXLza','A2LUza','zxzLBNq','C2vZC2LVBI10B2TLBG','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','Dg9bCgLfCNjVCG','y29UBMvJDgLUzW','wI5bsq','B2f1DgGTDg9Rzw4','BwLTBY12mI41lxbYBW','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','yNvKz2v0vg9Rzw5Z','DMLZAwjPBgL0Eq','CMvZCg9UC2vtB2nRzxrtDhjLyw0','AxrLBv9Pza','y29TCgXLDgvwAwfsB3v0zxi','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','B21PDhrLza','CgvUzgLUzW','Dg9VBenHBgXZ','B3bLBG','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','B3v0Chv0sw5KzxG','zg9Uzq','AxrLBq','CMvZCc0','B3bLBMfPlxjLC3bVBNnLCY13CW','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','Dg9VBf91C2vFzgvSDge','CMvHzhLtDgf0zq','y2HHDenVBxbSzxrL','CMvZCg9UC2uUzMfPBgvK','mtu0mJaZALjTs1Hl','z2L0AhvI','DhLWzq','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','Dg9Wx3bYB3zPzgvY','C3rYAw5NAwz5','ywnJzxb0','mJaYmY0WnI0Wmq','y29UDgv4DfDPBMrVDW','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','mJaYns0Xmc0Wmq','oNjLyxnVBMLUzZOW','qMvHCMvYia','Aw5PDgLHBev2zw50','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','zNjVBq','t3bLBKfPqxbPrxjYB3i','BM93','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','C3rYzwfTvMLHuM91DgvY','Dg9mB3DLCKnHC2u','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','zgvSDge','C3LZDgvT','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','ChjLCgfYzunOyxrszxf1zxn0','mJm2odCZmfbMA3zkAq','zMv0y2HjBxbS','DxrMltG','l2nOyxqVy29TCgXLDgLVBNm','DxnLC1jLC3bVBNnLC0fWAq','B2jQzwn0','y29UDgvUDf9IBg9JA19KzwX0yq','CMvHC29U','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','l3jLC3bVBNnLCW','yw50AhjVCgLJlxzLCNnPB24','C3vTBwfYAxPLza','zNvUy3rPB24','CMvZCg9UC2uUy3jLyxrL','yw50AhjVCgLJqMfZzvvYBa','BwfWqxbPrxjYB3i','CMvKywn0zwrFDgHPBMTPBMC','C29Tzq','z2v0t3bLBKfPrgvSzwDHDgu','y2XVC2u','l21VzgvSCW','C3bSAwnL','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','Aw5JBhvKzunVBNrLBNruExbL','BgfZDfjLC3bVBNnLswq','zgvMyxvSDe1VzgvSCW','C2LNBMf0DxjL','yxv0AfnJAgvTzq','CMvHC29UAw5NugfYDhm','y2fUy2vS','DxnLCG','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','Aw52ywXPzgf0zq','Aw5WDxrFDgv4Da','zMv0y2G','ywjVCNrLza','yxbWBgLJyxrPB24VANnVBG','ChjVDMLKzxjFCMv0CNK','C2vUza','DxjS','C3vYzMfJzxm','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','z2XTltqUnG','z2XTltqUnW','y2fSBf9Pza','z2v0uMv0CNLezwXHEu1Z','C3rYzwfTshr0Cfn1CMzHy2u','yMXVy2TZ','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','BwvZC2fNzq','CMvZCg9UC2vtDhjLyw0','zMLSDgvY','ywnJzxnZvg9Rzw4','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','C2vZC2LVBK1HBMfNzxi','C3rVCf9YzwfZB24','C3rYzwfTvMLHu3vYzMfJzq','q29TBwfUzenVzgu','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','DxnLCI12AxnPyMXL','mJq2nJGZnLjRvNHnEG','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','yxn5BMnjDgvYyxrVCG','Ahr0Cc1QC29U','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','C2v0','ChjLDMLVDxnszxnWB25ZzuLK','yxbPs2v5','A2v5CW','C2vZC2LVBG','yw50AhjVCgLJrgvSzwDHDgu','D2vIC29JA2v0','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','z2v0u3vYzMfJzq','B3v0Chv0x3rVA2vUCW','ANnVBG','zw5JCNLWDgvKx2nVBNrLBNq','CMvHC29UAw5Nx3rVA2vUCW','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','C3vTBwfYEuj5sw5KzxG','zgvSzxrL','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','y29TCgXLDgLVBL90B2TLBNm','mteXode5mhHlAwj2ra','yw50AhjVCgLJx3rOAw5RAw5N','zxzLBNq6','CMvHza','yxnZAxn0yw50','AxneB25L','zgvMyxvSDe1VzgvS','DhjPBvn0yxj0','Aw5WDxq','CMvXDwvZDa','r0vu','CM9Szq','CMvMDxnHBa','zgvZy3jPChrPB24','y3jLyxrLsgvHzgvYCW','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','CMvZCg9UC2vjza','zgf0ytO','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','zgvLChnLzwSTDJqTChjV','ChjVDMLKzxjbzgfWDgvY','yNvPBgrqyxj0AwfSt3v0Chv0','CgfYDgLHBf9QC29U','y29TCgXLDgvwAwftDxjMywnL','t3bLBLjVDxrLCG','CMvHC29UAw5NsxrLBxm','zgvJB2rL','CMvZB2X2zunYzwrLBNrPywW','BwvKAwfFDhLWzq','y2HHDgnTCgWT','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','CMvZCg9UC2uUy29TCgXLDgvK','yxbWBhLnB2rLBerLzMf1BhrZ','z2v0qw50AhjVCgLJrgvSzwDHDgu','ChjVDMLKzxjZ','Bw9KzwXfBMrWB2LUDenHy2HL','y2XHDwrLlxnVBM5LDc00','rgvLCfnLzwS','z3b0ltuTBwLUAq','DgHPBMTPBMDFzgvSDge','D2vIu29JA2v0rMfJDg9YEq','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','y29UBMvJDf9MywLSzwq','y2fJAgvK','ChjVEhK','C3rYzwfT','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','y29UDgvUDf9KzwX0yq','zw5Kx3r1CM4','zwrPDg9YugX1z2LUvMvYC2LVBG','ywrKrxzLBNrmAxn0zw5LCG','nNv6AKnLtq','u3vYzMfJzsa','twLUAu1HEc1nmW','Bw9KzwXZqMfZzvvYBa','BNvTyMvY','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','yxbPlwTLEq','DxnHz2u','AxnbCNjHEq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','ChjVDg9JB2XwzxjZAw9U','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','y29TCgXLDgu','C3vTBwfYEq','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','y29TCgXLDgvtDxjMywnL','C2LNBMfS','y29Kzq','Dg9VBf91C2vFAwq','y2fJAgvszwfKsw5WDxruB2TLBNm','yxjNDw1LBNrZ','Bwv0ywrHDge','y29UDgv4Df9Szw5NDgG','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','C3vWCg9YDgvKx2vUzhbVAw50CW','yxv0BW','w0rptKvD','y2HVAwnLCW','C3vWCg9YDgvKrw5KCg9PBNrZ','B3v0Chv0vg9Rzw5Z','C3rYDwn0DxjLzf9VDxrWDxq','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','y29UC3vTzvnZzuv2zw50','z2v0tw9KzwXZ','zw5JCNLWDgvKq29UDgvUDa','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','y29TCgXLDgvK','Dgv4Dej5sw5KzxG','C3rYzwfTu3vYzMfJzq','C2HPzNq','C2L6zq','zM9Yy2vgDwXSuMvWBgf5','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','Aw1Hz2vFDxjS','B3jPz2LUlxrYywnRzxi','Dg9tDhjPBMC','z3b0ltqUmq','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','zgf0yq','BwvZC2fNzuLK','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','AgvHzgvYCW','y3jLyxrLuMvXDwvZDa','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','CMvZB2X2zxi','BwvZC2fNzxm','ywDLBNq','CMvHC29UAw5N','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','ChjVDMLKzxjtDgf0zq','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','Cgf0Aa','B3v0Chv0sw5KzxHuB0nHBgXjza','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','BgLTAxrZ','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','CMvZCg9UC2vuzxH0ugfYDhm','ywrK','D3nZoG','DgvZDa','Dg9VBenHBgXZqNLjBMrLEa','CMvXDwvZDhm','CgfYC2u','y2HHDfn0CMvHBq','Dg9VBa','C3bSAxq','Bwf4','BwvZC2fNzv9ZDgfYDa','Dg9VBf9Yzxn1Bhq','zwzMB3j0','zxjYB3i','C3rYzwfTx2vYCM9Y','o2jHC2u2ncW','Bwf4t3v0Chv0','B3bLBMfPx3jLyxnVBMLUzW','DMfSDwvZ','zNjVBuvUDhjPzxm','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','t3bLBKfj','DhjHBNnWB3j0','C3vYzMfJzq','yMfZzty0','Dg9VBc1JywXSlq','zMLUza','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','y2fWywjPBgL0AwvZ','CMvZCg9UC2vtB2nRzxq','yw50AhjVCgLJlw1LC3nHz2vZ','CMvZB2X2zujHC2vvCMW','CMvHC29UAw5Nx2rLDgfPBhm','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Aw5WDxruB2TLBNm','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','C3rYAw5N','Bwf4x3rVA2vUCW','Bwv0Ag9K','C3vTBwfYEv90zxH0','z2v0','C2vUzfjHD1jLCxvLC3q','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','y2fSBeLKvg9pDxrWDxrjBMrLEa','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','B3bLBMfPlxjLC3bVBNnLCW','y29UDgvUDf9PBMrLEa','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','B3bLBMfPl2DWDc00BY1TAw5P','C2vZC2LVBKLK','C2XPy2u','BMfTzq','D2fPDezVCLjLDhj5','twLUAu1HEa','y2XHDwrLlxnVBM5LDc00lJu','z2L0AhvIqxbPvxjS','y29UDgvUDa','C3rHCNrZv2L0Aa','Bwf4x291Dhb1Df90B2TLBNm','y29UC3vTzvDLyLnVy2TLDev2zw50','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','Ec1HCgKTA2v5','B3bLBKfPrgvSzwDHDgu','C29JA2v0','DhjPBq','BgvUz3rO','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','DMfSDwu','CMvWBgfJzq','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','y3jLzgvUDgLHBa','ANnVBL9Zy2HLBwe','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','B3v0Chv0rM9YBwf0','CMvXDwvZDe11Dgf0B3jZ','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','D3m6','CMvTB3zLrxzLBNrmAxn0zw5LCG','C2vUzfDPDgHszxrYAwvZ','Dg9VBfvZzvn0yxj0rw1PDhrLza','t3bLBKfjiefqssbLCNjVCIa','CMvHC29UAw5Nx3rLEhq','zw5KCg9PBNrZ','C3rHDhvZvgv4Da','z2XTltuUmq','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','mJKWnZi0mhz2A3brDq','BgfIzwW','zMLUywXszxnWB25Zzq','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','DgHLBG','yxbP','C2HVDwXKuMv0CNLszxnWB25Zzq','z3b0ltuUmI1JB2rLEa','DNnJB2rLlZeUmta2lJe','C3rHDhvZ','yxv0Ag9YAxPHDgLVBG','y2HHDenVBxbSzxrPB25Zugf0Aa','y2XPrgvMyxvSDe1VzgvS','zMLUAxnO','Aw1Hz2u','AgfZ','C3rVCfjLyxnVBG','CMvZCg9UC2vZugf0Aa','B3v0Chv0','zw50CMLLCW','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','qMfZAa','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','Aw50zxjSzwf2zwq','CMvZB2X2zq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','t1bftG','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','CMvZzxq','DgvSzw1LDhj5','Bw9KzwXZ','Dgv4Da','sw52ywXPzcbYzxf1zxn0oIa','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','l3yXl21LC3nHz2vZ'];_0x4483=function(){return _0xcb6f75;};return _0x4483();}function createOpenAiResponsesStreamParser(_0x109a92){return new OpenAiResponsesStreamParser(_0x109a92);}function createOpenAiSurfaces(_0x2e906e={}){const _0x5a2b6b={_0x3abccb:0x412,_0x327318:0x36a,_0x251ff5:0x4d5,_0xed25cf:0x425,_0x3eb043:0x1f8,_0x1148da:0x223,_0x39570c:0x26d,_0x17cb4f:0x1f5,_0x162812:0x16e,_0x26348e:0x4d3},_0x4844fc={_0x4a203a:0x358,_0x1a6649:0x31b,_0x2ea551:0x283,_0x413845:0x304},_0x8423e1={_0x3426e6:0x1fa,_0x1ebe57:0x202},_0x81d8c0={_0x44c0e1:0x413,_0xd49c19:0x4c8},_0x2dd1f8={_0x174436:0xd8},_0x1a2d50={_0x2bed3a:0x13d},_0xd89c72={_0x3a9340:0x26,_0x26f708:0xa};function _0x1103e3(_0x1e771e,_0x15ee5a,_0x1b0f33,_0x22e38a){return _0x11bd88(_0x1e771e- -_0xd89c72._0x3a9340,_0x1b0f33,_0x1b0f33-0x1d0,_0x22e38a-_0xd89c72._0x26f708);}const _0x55a248=_0x2e906e[_0x1103e3(0x42a,_0x5a2b6b._0x3abccb,0x41a,_0x5a2b6b._0x327318)]??_0x1103e3(0x4cf,0x563,0x4f2,0x42d),_0x544c4b=_0x2e906e['responsesPath']??_0x1103e3(_0x5a2b6b._0x251ff5,0x458,_0x5a2b6b._0xed25cf,0x427);function _0xf3c7af(_0x191c7e,_0x18987a,_0x3f274e,_0x2c8362){return _0xd1496a(_0x2c8362- -0x3b5,_0x18987a-0x107,_0x191c7e,_0x2c8362-_0x1a2d50._0x2bed3a);}return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0xf3c7af(_0x5a2b6b._0x3eb043,_0x5a2b6b._0x1148da,_0x5a2b6b._0x39570c,_0x5a2b6b._0x17cb4f),'createRequest'(_0x852364){function _0x398694(_0xcd5a88,_0x4903e8,_0x118e1f,_0x29e875){return _0x1103e3(_0x118e1f- -0xe4,_0x4903e8-0xec,_0x29e875,_0x29e875-_0x2dd1f8._0x174436);}return{'accept':_0x398694(0x46c,_0x81d8c0._0x44c0e1,0x40e,_0x81d8c0._0xd49c19),'body':createChatRequestBody(_0x852364,![]),'path':_0x55a248};},'parseResponse'(_0x2346c9){return parseChatCompletionResponse(_0x2346c9);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x15d603){return{'accept':'text/event-stream','body':createChatRequestBody(_0x15d603,!![]),'path':_0x55a248};},'createStreamParser'(_0xc3e504){return new OpenAiChatCompletionsStreamParser(_0xc3e504);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':'http-json','createRequest'(_0x583e6e){const _0x547256={_0x41f09a:0x118};function _0x2927f5(_0x181b62,_0x2a7ee9,_0x380448,_0x366024){return _0xf3c7af(_0x366024,_0x2a7ee9-0x14f,_0x380448-_0x547256._0x41f09a,_0x181b62-0x22);}return{'accept':_0x2927f5(_0x8423e1._0x3426e6,0x1f5,_0x8423e1._0x1ebe57,0x23b),'body':createResponsesRequestBody(_0x583e6e,![]),'path':_0x544c4b};},'parseResponse'(_0x121012,_0x5504b7){return parseResponsesResponse(_0x121012,_0x5504b7);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0xf3c7af(0x97,0x140,_0x5a2b6b._0x162812,0x15d),'createRequest'(_0x27cfa1){const _0x254419={_0x4aca19:0xa9,_0x50373d:0x1d0};function _0x3e8e5f(_0x47323f,_0x4fbd76,_0x4cd676,_0x46aa25){return _0xf3c7af(_0x4cd676,_0x4fbd76-_0x254419._0x4aca19,_0x4cd676-0x112,_0x46aa25-_0x254419._0x50373d);}return{'accept':_0x3e8e5f(_0x4844fc._0x4a203a,_0x4844fc._0x1a6649,_0x4844fc._0x2ea551,_0x4844fc._0x413845),'body':createResponsesRequestBody(_0x27cfa1,!![]),'path':_0x544c4b};},'createStreamParser'(_0x3d57f7){return new OpenAiResponsesStreamParser(_0x3d57f7);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x1103e3(0x517,0x584,_0x5a2b6b._0x26348e,0x529),'createRequest'(_0x25de3d){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x25de3d),'path':_0x544c4b};},'createStreamParser'(_0x3a8fe9){return createOpenAiResponsesStreamParser(_0x3a8fe9);}}];}var OpenAiProviderAdapter=class{[_0xd1496a(0x50a,0x581,0x5df,0x4a9)];constructor(_0x54e791){this['headerResolver']=_0x54e791;}[_0x11bd88(0x49a,0x544,0x422,0x40e)](){const _0x3fa57a={_0x7f6ea7:0x3e3},_0x46bf8d={_0x353126:0x1b3,_0x1f9a37:0x2d,_0x5754c2:0xfd};function _0x3b0441(_0x2308bd,_0x1fce9d,_0x18c2d0,_0x3d4b83){return _0x11bd88(_0x1fce9d- -_0x46bf8d._0x353126,_0x3d4b83,_0x18c2d0-_0x46bf8d._0x1f9a37,_0x3d4b83-_0x46bf8d._0x5754c2);}return new Error(_0x3b0441(0x32e,_0x3fa57a._0x7f6ea7,0x3b9,0x450));}async[_0x11bd88(0x557,0x537,0x5eb,0x4e9)](_0x340120,_0x4dd0e4){const _0x58ffd7={_0x306695:0x395,_0x27fa16:0x317,_0xd0e205:0x469,_0xbf1827:0x5af,_0x299231:0x44f,_0x8574d:0x2f6,_0x1e6e07:0x400,_0x5c2fa1:0x1e9,_0x3a6e9c:0x28a,_0x2e5c2f:0x356,_0x295488:0x50b,_0x1bd950:0x445,_0x1379fd:0x572,_0x26a904:0x575,_0x43572b:0x5e2,_0x2e103c:0x556,_0x23d5ed:0x490,_0x8940b7:0x5b4,_0x10fffd:0x49e,_0x550a4e:0x489,_0x23fc99:0x437,_0x245b2b:0x45d,_0x2126aa:0x426,_0x5cf14f:0x2f4,_0x3c7267:0x376,_0x425b6f:0x3c2,_0x306968:0x3b2,_0x57954c:0x3a7,_0x584b08:0x45a,_0x10adee:0x517,_0x3f5950:0x3f1},_0x31f34f={_0x45b1d7:0x1c5,_0x41e9f3:0xe7},_0x36c029={_0xdc6b98:0x2,_0x107053:0x10b,_0x45dd40:0xbc},_0x47a535=new Headers();_0x47a535['set'](_0x49b4a7(_0x58ffd7._0x306695,0x3ad,_0x58ffd7._0x27fa16,0x3bf),_0x4dd0e4[_0x34a75a(0x4de,_0x58ffd7._0xd0e205,_0x58ffd7._0xbf1827,_0x58ffd7._0x299231)]),_0x47a535[_0x49b4a7(_0x58ffd7._0x8574d,_0x58ffd7._0x1e6e07,0x372,0x345)](_0x49b4a7(0x1af,_0x58ffd7._0x5c2fa1,_0x58ffd7._0x3a6e9c,0x24f),_0x49b4a7(0x2b2,_0x58ffd7._0x2e5c2f,0x31e,0x300)+_0x340120['credential']['value']);_0x4dd0e4[_0x34a75a(_0x58ffd7._0x295488,_0x58ffd7._0x1bd950,_0x58ffd7._0x1379fd,_0x58ffd7._0x26a904)]!==![]&&_0x47a535[_0x34a75a(0x539,_0x58ffd7._0x43572b,0x490,_0x58ffd7._0x2e103c)]('content-type',_0x34a75a(0x51a,_0x58ffd7._0x23d5ed,_0x58ffd7._0x8940b7,0x5a1));function _0x34a75a(_0x5a5976,_0x171de8,_0x4f8476,_0x5d23dc){return _0x11bd88(_0x5a5976-_0x36c029._0xdc6b98,_0x5d23dc,_0x4f8476-_0x36c029._0x107053,_0x5d23dc-_0x36c029._0x45dd40);}const _0x51f378=await this['headerResolver']?.({'body':_0x340120[_0x34a75a(_0x58ffd7._0x10fffd,0x52a,_0x58ffd7._0x550a4e,0x3df)],'credential':_0x340120[_0x34a75a(_0x58ffd7._0x23fc99,0x397,_0x58ffd7._0x245b2b,_0x58ffd7._0x2126aa)],'request':_0x340120['request'],'session':_0x340120[_0x49b4a7(_0x58ffd7._0x5cf14f,0x437,_0x58ffd7._0x3c7267,_0x58ffd7._0x425b6f)],'stream':_0x340120[_0x49b4a7(0x343,0x36d,_0x58ffd7._0x306968,_0x58ffd7._0x57954c)]});function _0x49b4a7(_0x59ae4f,_0x155324,_0x353da9,_0x273d27){return _0x11bd88(_0x353da9- -_0x31f34f._0x45b1d7,_0x273d27,_0x353da9-0x62,_0x273d27-_0x31f34f._0x41e9f3);}for(const [_0x9fc09b,_0x2cd039]of Object[_0x34a75a(_0x58ffd7._0x584b08,0x48a,_0x58ffd7._0x10adee,_0x58ffd7._0x3f5950)](_0x51f378??{})){_0x47a535['set'](_0x9fc09b,_0x2cd039);}return _0x47a535;}['mapApiError'](_0xbb7b91){return _0xbb7b91;}[_0x11bd88(0x40c,0x4ac,0x3c6,0x3df)](_0x3cf9df,_0x267f07){return resolveSessionBaseUrl(_0x3cf9df,_0x267f07);}[_0xd1496a(0x5d9,0x628,0x67f,0x5cf)](_0x22e858,_0x58a514){return resolveApiCredential(_0x22e858,_0x58a514);}async['toApiError'](_0x5841d1){return await createOpenAiApiError(_0x5841d1);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static ['sharedResponsesSocketSessions']=new Map();[_0x11bd88(0x450,0x516,0x409,0x4fc)];[_0x11bd88(0x456,0x487,0x3c1,0x3c5)];constructor(_0x5b76b8={}){const _0xba9be={_0x5cbf36:0x103,_0x27a66a:0xf8,_0x25c7bc:0x249,_0x368573:0x150,_0x38f746:0x2bb,_0x45c42b:0x22a,_0x51aa31:0x1ab,_0x43b807:0x24e,_0x401e96:0x1d3,_0x129f33:0x53,_0x7cf859:0x227,_0x23c0b6:0x22d,_0x3b012c:0x311,_0x3f023a:0x11,_0x34f849:0x121,_0x8ff73f:0x7c,_0x12255a:0x301,_0x5a71d5:0x365,_0x578ae1:0x2f0,_0x81a25e:0x282,_0x1ab73e:0x36e,_0x2e9029:0xea,_0x4b6f70:0x136},_0x453c60={_0x30acb7:0x1a9},_0x123708={_0x23ccec:0x366,_0x288f39:0x85},_0x474245=_0x5b76b8[_0x3102bd(0x121,0x125,_0xba9be._0x5cbf36,_0xba9be._0x27a66a)]??'gpt-4o';function _0x3102bd(_0x3dabfd,_0x5abcd8,_0xd0bb26,_0x3f24b8){return _0x11bd88(_0xd0bb26- -_0x123708._0x23ccec,_0x5abcd8,_0xd0bb26-0x140,_0x3f24b8-_0x123708._0x288f39);}const _0x4bb8f8=_0x5b76b8[_0x16c58d(0x232,0x30b,_0xba9be._0x25c7bc,_0xba9be._0x368573)]??getDefaultMaxTokens(),_0x5ca9e7=_0x5b76b8['chatCompletionsPath']??_0x16c58d(_0xba9be._0x38f746,0x30c,0x1d1,_0xba9be._0x45c42b),_0x1c25d7=_0x5b76b8['responsesPath']??'/responses';super({'apiKey':_0x5b76b8[_0x3102bd(_0xba9be._0x51aa31,_0xba9be._0x43b807,_0xba9be._0x401e96,0x204)],'baseUrl':trimTrailingSlashes(_0x5b76b8[_0x3102bd(0x34,_0xba9be._0x129f33,0x112,0xec)]??'https://api.openai.com/v1'),'fetch':_0x5b76b8[_0x16c58d(0x2dc,_0xba9be._0x7cf859,_0xba9be._0x23c0b6,_0xba9be._0x3b012c)],'maxTokens':_0x4bb8f8,'model':_0x474245,'reasoning':_0x5b76b8[_0x3102bd(-_0xba9be._0x3f023a,_0xba9be._0x34f849,_0xba9be._0x8ff73f,0x43)],'providerAdapter':new OpenAiProviderAdapter(_0x5b76b8['headerResolver']),'providerSessionResolver':_0x5b76b8[_0x16c58d(0x352,_0xba9be._0x12255a,0x434,_0xba9be._0x5a71d5)],'requestMutators':_0x5b76b8['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x5b76b8[_0x16c58d(_0xba9be._0x578ae1,_0xba9be._0x81a25e,0x336,_0xba9be._0x1ab73e)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x5ca9e7,'responsesPath':_0x1c25d7}),'webSocketFactory':_0x5b76b8['webSocketFactory']});function _0x16c58d(_0x12bfe7,_0x15468c,_0x173ca2,_0x2ebd7d){return _0xd1496a(_0x12bfe7- -0x2af,_0x15468c-_0x453c60._0x30acb7,_0x15468c,_0x2ebd7d-0x37);}this[_0x3102bd(0xa6,0x78,_0xba9be._0x2e9029,_0xba9be._0x4b6f70)]=_0x5ca9e7,this['responsesPath']=_0x1c25d7;}[_0x11bd88(0x4d9,0x5bd,0x41e,0x411)](_0x20f6dd,_0x1499dc){const _0x15fdc4={_0x45a61d:0xfa,_0x53fc29:0x179},_0x47cad5={_0x392e96:0x466,_0x41c91e:0x11f};function _0x449452(_0x1c61dc,_0x48bfa4,_0x27d6fa,_0x33745f){return _0x11bd88(_0x1c61dc- -_0x47cad5._0x392e96,_0x27d6fa,_0x27d6fa-0x35,_0x33745f-_0x47cad5._0x41c91e);}return this[_0x449452(_0x15fdc4._0x45a61d,0xe9,_0x15fdc4._0x53fc29,0x138)](_0x20f6dd,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x1499dc);}[_0x11bd88(0x459,0x478,0x523,0x4c7)](_0x1c5e53,_0xec082f){const _0x4f9eac={_0x404058:0x392},_0x21672b={_0x2be52e:0x29a,_0x518f5b:0x1b8};function _0x1195f7(_0x484b69,_0x2e5f9b,_0xa90266,_0x1eef4d){return _0xd1496a(_0x484b69- -_0x21672b._0x2be52e,_0x2e5f9b-0x54,_0x2e5f9b,_0x1eef4d-_0x21672b._0x518f5b);}return this[_0x1195f7(0x33b,0x3b5,0x2e1,_0x4f9eac._0x404058)](_0x1c5e53,OPENAI_RESPONSES_SURFACE,_0xec082f);}[_0x11bd88(0x529,0x557,0x574,0x603)](_0x5f57ee,_0x137c53){const _0x67c366={_0x4f9a3c:0x4c8,_0x115e84:0x428};function _0x1502a0(_0x45545e,_0x3be5a2,_0x214056,_0x4b9518){return _0x11bd88(_0x3be5a2- -0x138,_0x214056,_0x214056-0x80,_0x4b9518-0x36);}return this[_0x1502a0(_0x67c366._0x4f9a3c,_0x67c366._0x115e84,0x40c,0x342)](_0x5f57ee,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x137c53);}['streamViaChatCompletionsSurface'](_0x15a183,_0x42db30){const _0xa33eea={_0x3a8fd6:0x66c,_0x16aed5:0x5c3,_0x3c66ea:0x60c},_0x52363f={_0x74e3af:0x97,_0x1d2584:0xcd};function _0x42485c(_0x106b39,_0x50c71a,_0x211195,_0x484108){return _0x11bd88(_0x211195-_0x52363f._0x74e3af,_0x50c71a,_0x211195-_0x52363f._0x1d2584,_0x484108-0x3a);}return this[_0x42485c(_0xa33eea._0x3a8fd6,0x571,_0xa33eea._0x16aed5,_0xa33eea._0x3c66ea)](_0x15a183,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x42db30);}[_0xd1496a(0x4a5,0x432,0x4d9,0x4d2)](_0x3c4a81,_0x3578d1){const _0x4e17e9={_0x5a7770:0x185},_0xac0ffd={_0x15b1e0:0x41c,_0xbf4fd2:0x12e};function _0xf5c65c(_0x5b16b1,_0x5e1ade,_0x4c93ec,_0x4c9149){return _0xd1496a(_0x4c9149- -_0xac0ffd._0x15b1e0,_0x5e1ade-0x9f,_0x5e1ade,_0x4c9149-_0xac0ffd._0xbf4fd2);}return this[_0xf5c65c(0x239,0x191,0x238,_0x4e17e9._0x5a7770)](_0x3c4a81,OPENAI_RESPONSES_STREAM_SURFACE,_0x3578d1);}[_0xd1496a(0x45d,0x52c,0x4e2,0x4b4)](_0x4f93ee,_0x11b268){const _0x104870={_0x393bed:0x1a6,_0x36808d:0x11a,_0x144c10:0x26d};function _0x509850(_0x2f6568,_0x16069a,_0x533770,_0xaa5c62){return _0x11bd88(_0x2f6568- -0x386,_0x16069a,_0x533770-0xcd,_0xaa5c62-0x1c8);}return this[_0x509850(_0x104870._0x393bed,_0x104870._0x36808d,_0x104870._0x144c10,0x254)](_0x4f93ee,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x11b268);}async[_0x11bd88(0x4d4,0x598,0x472,0x4f0)](_0x1729df,_0x463474){const _0x4f27c4={_0x410537:0x463,_0xfe1d17:0x4bd,_0x51d287:0x527},_0x38fe56={_0x1f226a:0x27,_0x52f006:0x191,_0x17783e:0x168};function _0xe48c30(_0x5aa6ae,_0x348daf,_0x5901fb,_0x46dfd5){return _0xd1496a(_0x46dfd5- -_0x38fe56._0x1f226a,_0x348daf-_0x38fe56._0x52f006,_0x5901fb,_0x46dfd5-_0x38fe56._0x17783e);}try{return await this[_0xe48c30(_0x4f27c4._0x410537,_0x4f27c4._0xfe1d17,0x467,_0x4f27c4._0x51d287)](_0x1729df,_0x463474);}catch(_0x524421){if(_0x524421 instanceof OpenAiApiError)throw this['mapApiError'](_0x524421);throw _0x524421;}}async['response'](_0x3904ae,_0x4c4293){const _0x179b87={_0x591f09:0x2dd,_0x579237:0x2fd,_0x12856c:0x259,_0x2e4103:0x385,_0x52edff:0x35e},_0x290049={_0x25aab7:0xae},_0x2a1254={_0xe1c8e5:0xf0};function _0x23f3d5(_0x4b6671,_0x3e8464,_0xb614ff,_0x3afbc8){return _0xd1496a(_0xb614ff- -0x1b3,_0x3e8464-_0x2a1254._0xe1c8e5,_0x4b6671,_0x3afbc8-0x4e);}function _0x36446d(_0x332bf5,_0x57e46f,_0x812bbc,_0x2fd16f){return _0x11bd88(_0x332bf5- -0x17c,_0x2fd16f,_0x812bbc-0x13a,_0x2fd16f-_0x290049._0x25aab7);}try{return await this[_0x36446d(_0x179b87._0x591f09,0x39e,_0x179b87._0x579237,_0x179b87._0x12856c)](_0x3904ae,_0x4c4293);}catch(_0x1ee0c7){if(_0x1ee0c7 instanceof OpenAiApiError)throw this[_0x36446d(_0x179b87._0x2e4103,0x2f1,0x2bb,_0x179b87._0x52edff)](_0x1ee0c7);throw _0x1ee0c7;}}async['responseSocket'](_0x5d5a5b,_0x21a7ed){const _0x1aa562={_0x2522b4:0x422,_0x2a2835:0x468,_0x1671ff:0x1f0,_0x4e843b:0x1b2,_0x3baadf:0x51d},_0x4441bb={_0x22e5e3:0x1c,_0x26fd42:0x1ee},_0x5c3981={_0x3862c9:0x390,_0x344c95:0x161};function _0x3f9caa(_0x5cb186,_0x17899e,_0x38988e,_0x3c5326){return _0xd1496a(_0x3c5326- -_0x5c3981._0x3862c9,_0x17899e-0x151,_0x5cb186,_0x3c5326-_0x5c3981._0x344c95);}function _0x2f961e(_0x1f0732,_0x222ab9,_0x547e68,_0x1f9fa2){return _0x11bd88(_0x547e68-_0x4441bb._0x22e5e3,_0x1f0732,_0x547e68-0x17d,_0x1f9fa2-_0x4441bb._0x26fd42);}try{let _0x341c4b;for await(const _0x560318 of this[_0x2f961e(_0x1aa562._0x2522b4,0x3fc,0x4dc,_0x1aa562._0x2a2835)](_0x5d5a5b,_0x21a7ed)){_0x560318['type']===_0x3f9caa(_0x1aa562._0x1671ff,0x289,0x222,_0x1aa562._0x4e843b)&&(_0x341c4b=_0x560318['response']);}if(!_0x341c4b)throw new Error('Responses\x20WebSocket\x20request\x20did\x20not\x20produce\x20a\x20final\x20response');return _0x341c4b;}catch(_0xdb5f28){if(_0xdb5f28 instanceof OpenAiApiError)throw this[_0x2f961e(0x474,0x607,_0x1aa562._0x3baadf,0x47d)](_0xdb5f28);throw _0xdb5f28;}}async*['chatStream'](_0x2948a7,_0x2ff305){const _0x58cf5f={_0x3a615f:0x8,_0x3fb0d5:0x95},_0x1422f4={_0x59ebd3:0x509,_0x122169:0x155,_0xcf50f3:0x1c3},_0x3fdcc7={_0x2bfa36:0x103};function _0x25fc04(_0x550948,_0x1e4640,_0x436bae,_0x915b1a){return _0x11bd88(_0x915b1a- -0xb5,_0x1e4640,_0x436bae-0xbd,_0x915b1a-_0x3fdcc7._0x2bfa36);}function _0x4fc2fe(_0x21a312,_0x54ba3b,_0x36a7c2,_0x3c9913){return _0x11bd88(_0x54ba3b- -_0x1422f4._0x59ebd3,_0x21a312,_0x36a7c2-_0x1422f4._0x122169,_0x3c9913-_0x1422f4._0xcf50f3);}try{yield*this[_0x25fc04(0x32a,0x3a5,0x397,0x3c2)](_0x2948a7,_0x2ff305);}catch(_0x283a1f){if(_0x283a1f instanceof OpenAiApiError)throw this[_0x4fc2fe(-0xdd,-_0x58cf5f._0x3a615f,_0x58cf5f._0x3fb0d5,-0x19)](_0x283a1f);throw _0x283a1f;}}async*[_0xd1496a(0x59b,0x673,0x583,0x4b0)](_0xf38242,_0x42ce58){const _0x24975b={_0x1a26ad:0x448,_0x22cc4c:0x3c5,_0x48a835:0x369},_0x3ff9c1={_0x337818:0x116};function _0x1258bc(_0x190636,_0x143c2b,_0x2e7c41,_0x9716e2){return _0x11bd88(_0x190636- -0xb9,_0x143c2b,_0x2e7c41-_0x3ff9c1._0x337818,_0x9716e2-0x167);}try{yield*this['streamViaResponsesSurface'](_0xf38242,_0x42ce58);}catch(_0x44dfeb){if(_0x44dfeb instanceof OpenAiApiError)throw this[_0x1258bc(_0x24975b._0x1a26ad,_0x24975b._0x22cc4c,_0x24975b._0x48a835,0x4bb)](_0x44dfeb);throw _0x44dfeb;}}async*['responseSocketStream'](_0x49fb2e,_0x16bb30){const _0x219dbd={_0x351d7d:0x1a3,_0xc0b8d5:0x17e,_0x3117ad:0x182},_0x31adf9={_0x59a977:0xbd};function _0x4eb006(_0x2b2714,_0x48b4fe,_0xd7837,_0x45c433){return _0x11bd88(_0x48b4fe- -0x3c6,_0x2b2714,_0xd7837-_0x31adf9._0x59a977,_0x45c433-0x69);}try{yield*this[_0x4eb006(_0x219dbd._0x351d7d,_0x219dbd._0xc0b8d5,_0x219dbd._0x3117ad,0x1d6)](_0x49fb2e,_0x16bb30);}catch(_0x25191a){if(_0x25191a instanceof OpenAiApiError)throw this['mapApiError'](_0x25191a);throw _0x25191a;}}[_0x11bd88(0x58a,0x4a9,0x648,0x63f)](_0x2b758e,_0xf251da){const _0x6a3711={_0x35dc47:0x1bc,_0x376e14:0x246},_0x1e4633={_0xaa73cb:0x303,_0x4aec3e:0x168,_0x26bb44:0x1a9};function _0x500388(_0x13960c,_0x2b669c,_0x84f77b,_0xb3c6e4){return _0xd1496a(_0xb3c6e4- -_0x1e4633._0xaa73cb,_0x2b669c-_0x1e4633._0x4aec3e,_0x13960c,_0xb3c6e4-_0x1e4633._0x26bb44);}return this[_0x500388(_0x6a3711._0x35dc47,0x2ea,0x2e7,_0x6a3711._0x376e14)](_0x2b758e,_0xf251da);}[_0x11bd88(0x577,0x557,0x513,0x617)](_0x5829a3,_0x561e95){const _0x2eb994={_0x464b74:0x14f,_0x2381cc:0x5f};function _0x252713(_0x3e127f,_0x2ab175,_0x50983e,_0x3e8a8a){return _0x11bd88(_0x2ab175- -0x1e4,_0x3e127f,_0x50983e-_0x2eb994._0x464b74,_0x3e8a8a-_0x2eb994._0x2381cc);}return this[_0x252713(0x22e,0x20f,0x1d1,0x2f4)](_0x5829a3,_0x561e95);}[_0xd1496a(0x5fc,0x5cd,0x6ab,0x662)](_0x20be04){const _0x369106={_0x1a7dd7:0xb,_0x40dd6b:0xa2,_0x5b5994:0xc1,_0x213ccb:0x13,_0xf9a336:0x35,_0x4ecea6:0x21,_0x4ef2c6:0x71},_0x4bb5d3={_0x3c6f48:0xa3},_0x44ba1b={_0x8fab75:0xd0,_0x1ea218:0x88},_0x12bdd2=this[_0x54d175(-_0x369106._0x1a7dd7,_0x369106._0x40dd6b,-0xbd,-_0x369106._0x5b5994)](_0x20be04);function _0x51bd77(_0x44ac42,_0x115be6,_0x4edf96,_0xd1bb78){return _0xd1496a(_0x44ac42- -0x53b,_0x115be6-_0x44ba1b._0x8fab75,_0xd1bb78,_0xd1bb78-_0x44ba1b._0x1ea218);}function _0x54d175(_0x28ebd9,_0x3657e8,_0x399dc4,_0x534a0c){return _0xd1496a(_0x28ebd9- -0x519,_0x3657e8-0x1f4,_0x399dc4,_0x534a0c-_0x4bb5d3._0x3c6f48);}let _0x221d74=_OpenAiModel['sharedResponsesSocketSessions'][_0x54d175(-0x8e,-0x152,-0x156,0x47)](_0x12bdd2);return!_0x221d74&&(_0x221d74={'pending':Promise[_0x51bd77(-0x69,_0x369106._0x213ccb,-0x125,0x76)]()},_OpenAiModel[_0x51bd77(-_0x369106._0xf9a336,-0x104,_0x369106._0x4ecea6,0x2a)][_0x51bd77(_0x369106._0x4ef2c6,0x144,-0x43,-0x73)](_0x12bdd2,_0x221d74)),_0x221d74;}[_0x11bd88(0x499,0x54b,0x41a,0x4a1)](_0x599980){const _0x33967e={_0x5ce35f:0x34b,_0x38f923:0x1f7,_0x5dcb8a:0x149},_0x1165a6={_0x4eca61:0x614};function _0x572328(_0x4a2ea0,_0x416ed9,_0x3c9cdf,_0x40461d){return _0xd1496a(_0x3c9cdf- -0x1a2,_0x416ed9-0x100,_0x416ed9,_0x40461d-0x31);}function _0x449fce(_0x1d930b,_0x4d0885,_0xbb997a,_0x3708e4){return _0xd1496a(_0x4d0885- -_0x1165a6._0x4eca61,_0x4d0885-0xd3,_0x1d930b,_0x3708e4-0x65);}return''+trimTrailingSlashes(this[_0x572328(0x36d,0x410,_0x33967e._0x5ce35f,0x31c)])+this[_0x449fce(-_0x33967e._0x38f923,-_0x33967e._0x5dcb8a,-0x16c,-0xed)]+'::'+_0x599980;}async[_0xd1496a(0x565,0x548,0x521,0x4fa)](_0x44a870){const _0x2b8914={_0x153aea:0x2fe,_0x22690a:0x442,_0xa5565e:0x282,_0x4ac7a2:0x28d,_0x200c54:0xae,_0x5afd48:0x86,_0x4599a4:0xd1,_0x4e43a9:0x30,_0x32f758:0x11,_0x2c3f91:0x55},_0x1a48a5={_0x4e600d:0x3f4,_0x3fe767:0x1d7},_0x240f90={_0x19deb5:0x133,_0x347be4:0xb1},_0x59ec38=_0x44a870[_0x275d4a(0x301,0x392,_0x2b8914._0x153aea,_0x2b8914._0x22690a)][_0x275d4a(_0x2b8914._0xa5565e,0x340,_0x2b8914._0x4ac7a2,0x350)](()=>{});let _0x4f12bb;function _0x275d4a(_0x2b1a91,_0x51559e,_0x3c45e1,_0x4355da){return _0x11bd88(_0x51559e- -_0x240f90._0x19deb5,_0x3c45e1,_0x3c45e1-_0x240f90._0x347be4,_0x4355da-0x120);}const _0x1bddda=new Promise(_0x8e0022=>{_0x4f12bb=_0x8e0022;});_0x44a870[_0x29e9f7(_0x2b8914._0x200c54,_0x2b8914._0x5afd48,_0x2b8914._0x4599a4,_0x2b8914._0x4e43a9)]=_0x59ec38[_0x29e9f7(_0x2b8914._0x32f758,0x116,_0x2b8914._0x2c3f91,-_0x2b8914._0x2c3f91)](()=>_0x1bddda);function _0x29e9f7(_0x660051,_0x3ac8a1,_0x171f41,_0x37d8aa){return _0x11bd88(_0x171f41- -_0x1a48a5._0x4e600d,_0x3ac8a1,_0x171f41-_0x1a48a5._0x3fe767,_0x37d8aa-0xd7);}return await _0x59ec38,()=>{_0x4f12bb?.();};}async[_0xd1496a(0x460,0x4d7,0x44e,0x52b)](_0x3e8772,_0xa1855e){const _0xec5f01={_0x4a3703:0x69,_0x4ede0d:0x36,_0x427734:0x3,_0x3b6a2a:0x5a,_0x36db70:0x1e,_0x4d78f2:0x36,_0x375bbb:0x8e,_0x5b4f1a:0x72,_0x90351a:0x73,_0xf57d9:0x10c,_0xa28295:0x1,_0x472454:0xf,_0x410aa5:0x13,_0x4f0765:0x44,_0x3d0829:0x9f,_0xdbd383:0x1b,_0x4dfcf7:0x45,_0x2e82bb:0xa5,_0x236156:0xe5,_0x3f664d:0x39,_0x5a10c0:0x3f,_0x36d5e3:0x35},_0x4047cd={_0x2d2b41:0x5e5,_0x3ebce5:0x63},_0xfcd6e={_0x268c80:0x11f},_0x38e9d0=this['applyModelDefaults'](_0x3e8772),_0x61189=toModelRequest(_0x38e9d0);function _0x36be33(_0x2563c2,_0x21686c,_0x2e2b73,_0x91e6ba){return _0x11bd88(_0x91e6ba- -0x4f1,_0x2e2b73,_0x2e2b73-_0xfcd6e._0x268c80,_0x91e6ba-0xe2);}const _0x11c1ec=await prepareProviderRequest(_0x61189,{'sessionManager':this[_0x36be33(-_0xec5f01._0x4a3703,-0x60,-_0xec5f01._0x4ede0d,0x39)],'requestMutators':this[_0x36be33(-_0xec5f01._0x427734,-0x164,-_0xec5f01._0x3b6a2a,-0xb8)],'signal':_0xa1855e});function _0x229c70(_0x5eed4f,_0x50add1,_0x3dd3df,_0x2b3931){return _0xd1496a(_0x5eed4f- -_0x4047cd._0x2d2b41,_0x50add1-0x47,_0x2b3931,_0x2b3931-_0x4047cd._0x3ebce5);}const _0x234593=toChatRequest(_0x11c1ec[_0x229c70(-_0xec5f01._0x36db70,-0xec,-_0xec5f01._0x4d78f2,-0x22)]),_0x35f56f=this[_0x36be33(0x133,_0xec5f01._0x375bbb,-0x38,0x6c)][_0x36be33(0xaa,0x46,_0xec5f01._0x5b4f1a,_0xec5f01._0x90351a)](this[_0x229c70(-0x37,-_0xec5f01._0xf57d9,_0xec5f01._0xa28295,-0xb9)],_0x11c1ec[_0x229c70(-0x35,-0xbc,0x5,_0xec5f01._0x472454)]);if(!_0x35f56f)throw this['createMissingCredentialError']();return{'baseUrl':this[_0x229c70(-_0xec5f01._0x410aa5,_0xec5f01._0x4f0765,_0xec5f01._0x3d0829,_0xec5f01._0xdbd383)][_0x36be33(-_0xec5f01._0x4dfcf7,-_0xec5f01._0x2e82bb,-0x8,-_0xec5f01._0x236156)](this[_0x229c70(-0xf8,-0x167,-0xfc,-0x1a9)],_0x11c1ec[_0x36be33(0x37,_0xec5f01._0x3f664d,_0xec5f01._0x5a10c0,0x4a)]),'credential':_0x35f56f,'request':_0x234593,'session':_0x11c1ec[_0x229c70(-_0xec5f01._0x36d5e3,-0xcc,-0x115,0xad)]};}[_0x11bd88(0x43a,0x3ae,0x369,0x485)](_0x4f38cc,_0x5b5955,_0x4cbae1={}){const _0x4b7ff5={_0xd6965b:0x24b,_0x3c143f:0x1c4,_0x2a61da:0x1c1,_0x1b24f6:0x203,_0x2a5193:0x2f8,_0x46a410:0x31a,_0x4b8a1e:0x445,_0x184f51:0x3da,_0x269ffa:0x31b,_0x2877d3:0x343,_0x36a186:0x35b,_0x367408:0x2ce,_0x227a6f:0x3d2},_0x16d509={_0x202fed:0x1fc},_0x4b2621={_0x34f715:0xc5,_0x316f00:0x1de};function _0x59ba05(_0x5cf107,_0x44ad13,_0x4dd123,_0x54e585){return _0x11bd88(_0x5cf107- -_0x4b2621._0x34f715,_0x44ad13,_0x4dd123-_0x4b2621._0x316f00,_0x54e585-0xcc);}function _0x571a3c(_0x36da87,_0x4358c8,_0x232bc1,_0x377dcf){return _0xd1496a(_0x36da87- -_0x16d509._0x202fed,_0x4358c8-0x7b,_0x377dcf,_0x377dcf-0x7f);}if(!_0x4cbae1[_0x571a3c(_0x4b7ff5._0xd6965b,_0x4b7ff5._0x3c143f,_0x4b7ff5._0x2a61da,_0x4b7ff5._0x1b24f6)]){const _0xc6a9af=this[_0x571a3c(0x281,0x1e0,_0x4b7ff5._0x2a5193,_0x4b7ff5._0x46a410)](_0x4f38cc);if(_0xc6a9af&&_0x5b5955[_0x59ba05(_0x4b7ff5._0x4b8a1e,0x414,_0x4b7ff5._0x184f51,0x481)]&&_0xc6a9af['responseId']===_0x5b5955['lastResponseId']){const _0xa09a8f=toOpenAiResponsesRequest({..._0x4f38cc,'messages':_0x4f38cc[_0x59ba05(_0x4b7ff5._0x269ffa,0x342,_0x4b7ff5._0x2877d3,0x27c)][_0x59ba05(_0x4b7ff5._0x36a186,_0x4b7ff5._0x367408,0x431,0x386)](_0xc6a9af['messageIndex']+0x1)})[_0x59ba05(0x48c,0x46e,0x42f,0x44c)];return{'event':createOpenAiResponsesWebSocketEvent(_0x4f38cc,{'input':_0xa09a8f,'previousResponseId':_0xc6a9af['responseId']}),'previousResponseId':_0xc6a9af[_0x571a3c(_0x4b7ff5._0x227a6f,0x461,0x4b8,0x384)]};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x4f38cc)};}[_0xd1496a(0x47d,0x489,0x43e,0x405)](_0x38e66e){const _0x20e779={_0x572829:0x38e,_0x28e68f:0x3d4,_0x48d1a8:0x3b3,_0x36ddc4:0x472,_0x10ff9d:0x14f,_0x43b15f:0x93,_0x113e37:0x92,_0x3c8e17:0x4f3,_0x1c1acb:0x41b,_0x286899:0x476},_0x4b3eff={_0x556bae:0x1d,_0x5ee84b:0x84,_0x1b373d:0x1e7},_0x227e35={_0x4d0d8e:0x537};for(let _0x547b37=_0x38e66e[_0x1f76ac(_0x20e779._0x572829,_0x20e779._0x28e68f,_0x20e779._0x48d1a8,_0x20e779._0x36ddc4)][_0x435fa0(-_0x20e779._0x10ff9d,0x3e,-0x65,-_0x20e779._0x43b15f)]-0x1;_0x547b37>=0x0;_0x547b37-=0x1){const _0x230f9a=_0x38e66e['messages'][_0x547b37],_0x27fd53=_0x230f9a[_0x435fa0(0x16a,0x33,0x95,_0x20e779._0x113e37)]==='assistant'?_0x230f9a[_0x1f76ac(_0x20e779._0x3c8e17,_0x20e779._0x1c1acb,0x4d7,_0x20e779._0x286899)]?.['openaiResponsesResponseId']:void 0x0;if(_0x27fd53)return{'messageIndex':_0x547b37,'responseId':_0x27fd53};}function _0x435fa0(_0xb28d72,_0x9fbb14,_0x3c4c7a,_0x585617){return _0xd1496a(_0x585617- -_0x227e35._0x4d0d8e,_0x9fbb14-0x1e3,_0x9fbb14,_0x585617-0x80);}function _0x1f76ac(_0x3cc1af,_0x5c464c,_0x1440ba,_0x5dfda3){return _0xd1496a(_0x5dfda3-_0x4b3eff._0x556bae,_0x5c464c-_0x4b3eff._0x5ee84b,_0x1440ba,_0x5dfda3-_0x4b3eff._0x1b373d);}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x497517){const _0x31a9f5={_0x5cbc51:0x6b1,_0x1ef1c1:0x6bc,_0x15ff7e:0x731,_0x4bf4bd:0x5d6,_0x28fd16:0x5d8,_0x11a93b:0x2fe,_0x3faf29:0x39b,_0x274f6f:0x2bc},_0x1b3790={_0x1e10cd:0x67,_0x45f5cb:0x158},_0x1178a3={_0x32444b:0x5};function _0x581be0(_0x7efb2b,_0x3e581c,_0x289236,_0x616d06){return _0xd1496a(_0x289236-0xb7,_0x3e581c-_0x1178a3._0x32444b,_0x616d06,_0x616d06-0x171);}function _0x20766f(_0x56709f,_0x1a14da,_0x52bdf1,_0x3d5c8b){return _0x11bd88(_0x3d5c8b- -_0x1b3790._0x1e10cd,_0x56709f,_0x52bdf1-_0x1b3790._0x45f5cb,_0x3d5c8b-0xc);}return _0x497517 instanceof ProviderStreamEventError&&(_0x497517[_0x581be0(_0x31a9f5._0x5cbc51,0x6b1,_0x31a9f5._0x1ef1c1,_0x31a9f5._0x15ff7e)]===_0x581be0(0x5dc,_0x31a9f5._0x4bf4bd,0x53d,_0x31a9f5._0x28fd16)||_0x497517['code']===_0x20766f(_0x31a9f5._0x11a93b,_0x31a9f5._0x3faf29,_0x31a9f5._0x274f6f,0x371));}[_0x11bd88(0x573,0x565,0x5ba,0x600)](_0x41f8cc){const _0x487d78={_0x1a2192:0x1cc,_0x367d68:0x199,_0x52a3e2:0x1f8,_0x2fd8f4:0x12f,_0x53a08e:0x1c2,_0x170238:0x284,_0x3b9d8e:0x230,_0x30a599:0x32b,_0x381195:0x2d5,_0x302064:0x377,_0x201fbc:0x39e,_0x256dd6:0x2db,_0x50f777:0x22a,_0x2a7cc9:0x24e,_0x28065e:0x28d,_0x9ecd48:0x2d0,_0x47ca30:0x2d6,_0x2677d3:0x22c,_0x20692c:0x2e4,_0x5a24c1:0x2e6},_0x52d3ff={_0x5bfd4b:0x142},_0x29f4c3={_0x31c866:0x1c4,_0x32ce03:0x12},_0x4f73e6=_0x41f8cc[_0x31a194(0x1f8,0x1fd,_0x487d78._0x1a2192,_0x487d78._0x367d68)];function _0x456c2f(_0x46ed5b,_0xc4c26,_0x416c2f,_0x430b8f){return _0xd1496a(_0x430b8f- -0x3f7,_0xc4c26-_0x29f4c3._0x31c866,_0xc4c26,_0x430b8f-_0x29f4c3._0x32ce03);}_0x41f8cc[_0x31a194(_0x487d78._0x52a3e2,_0x487d78._0x2fd8f4,0x1ef,_0x487d78._0x53a08e)]=void 0x0;function _0x31a194(_0x5c2f54,_0x40dab7,_0x39b425,_0x50b8ea){return _0x11bd88(_0x5c2f54- -0x235,_0x39b425,_0x39b425-0x8e,_0x50b8ea-_0x52d3ff._0x5bfd4b);}_0x41f8cc[_0x31a194(_0x487d78._0x170238,_0x487d78._0x3b9d8e,0x2ab,_0x487d78._0x30a599)]=void 0x0,_0x41f8cc[_0x31a194(_0x487d78._0x381195,_0x487d78._0x302064,_0x487d78._0x201fbc,_0x487d78._0x256dd6)]=void 0x0,_0x4f73e6?.['readyState']===WebSocket[_0x31a194(_0x487d78._0x50f777,0x246,_0x487d78._0x2a7cc9,_0x487d78._0x28065e)]&&_0x4f73e6[_0x31a194(_0x487d78._0x9ecd48,0x20b,_0x487d78._0x47ca30,0x21a)](0x3e8,_0x31a194(_0x487d78._0x2677d3,_0x487d78._0x20692c,0x1b5,_0x487d78._0x5a24c1));}async['getOrCreateResponsesSocket'](_0x567021,_0x561726,_0x5f1d6d,_0x120bec,_0x184fa2){const _0x44f289={_0x5328c6:0x21f,_0x3f5bf5:0x2a0,_0x425ede:0x44c,_0x1a659d:0x172,_0x522ea1:0x1bb,_0x2c174c:0x2bc,_0x5349d1:0x40a,_0x4cbc8b:0x34f,_0x3f75eb:0x3c2,_0x549bc5:0x328},_0x1f29f4={_0x52fe23:0x592,_0x498e9f:0x559,_0x2747c4:0x591,_0x3148bd:0x3f7,_0x232e16:0x3de,_0x3072f4:0x2e6,_0x1a7ad3:0x3e1,_0xe8dbb3:0x501,_0x5ddddd:0x370,_0xc35784:0x1fc,_0x4c136a:0x271,_0xbaf939:0x336,_0x244d9e:0x250,_0x1e96de:0x2c7,_0xdbe55c:0x277,_0x51d531:0x2a9,_0x452d71:0x2a3,_0x51fdb8:0x323,_0x59d2a0:0x2bf,_0x369f95:0x1f9,_0x11213d:0x37f,_0x54ed80:0x32f,_0x38221d:0x2d2,_0x803e28:0x3c4,_0x4da372:0x3e2,_0x2e4106:0x3cd,_0x552cec:0x33e,_0x197515:0x50b,_0x55078e:0x35c,_0x37031e:0x2d0,_0x10169a:0x262,_0x40f632:0x3ef,_0x1aa180:0x3b7,_0x4b765b:0x4f4,_0x45fbfe:0x2d0,_0x55d4b8:0x31b,_0x30f2a8:0x321,_0xdcb09f:0x3e5,_0x133078:0x44f},_0x3df7bf={_0x3552fe:0x20d,_0x51ab6c:0x1ef,_0x52b5b6:0x37f},_0x1d8bcc={_0x45bfd3:0x10d,_0x44a52a:0x2d,_0x40c370:0xa4},_0x4c5458={_0x11652d:0x134,_0x11e428:0x5e,_0x50b7ab:0x78},_0x2d55ce={_0x382b94:0x2a8,_0x5907e9:0x11a};function _0x20858e(_0x44520c,_0x23f65e,_0x59cf06,_0x26ef35){return _0xd1496a(_0x26ef35- -_0x2d55ce._0x382b94,_0x23f65e-_0x2d55ce._0x5907e9,_0x44520c,_0x26ef35-0x31);}if(_0x561726['socket']?.[_0x20858e(0x358,_0x44f289._0x5328c6,0x324,_0x44f289._0x3f5bf5)]===WebSocket[_0x597397(0x3a0,_0x44f289._0x425ede,0x364,0x3d9)])return _0x561726[_0x20858e(_0x44f289._0x1a659d,_0x44f289._0x522ea1,_0x44f289._0x2c174c,0x1fa)];function _0x597397(_0x4af3c4,_0x3bed63,_0x175567,_0x256921){return _0xd1496a(_0x4af3c4- -_0x4c5458._0x11652d,_0x3bed63-_0x4c5458._0x11e428,_0x3bed63,_0x256921-_0x4c5458._0x50b7ab);}if(_0x561726['connecting'])return await _0x561726[_0x597397(0x3fa,_0x44f289._0x5349d1,_0x44f289._0x4cbc8b,0x4ae)];_0x561726[_0x597397(0x3fa,_0x44f289._0x3f75eb,_0x44f289._0x549bc5,0x40c)]=((async()=>{const _0x254bbc={_0x5bbf51:0x1d6,_0x110df7:0x1f5};function _0x1f1e66(_0x240fd1,_0x18cf89,_0x7caca2,_0x239d27){return _0x20858e(_0x239d27,_0x18cf89-_0x1d8bcc._0x45bfd3,_0x7caca2-_0x1d8bcc._0x44a52a,_0x18cf89-_0x1d8bcc._0x40c370);}function _0x5ad6da(_0x319b86,_0x45de09,_0x47d1ce,_0x30838c){return _0x20858e(_0x45de09,_0x45de09-0xcd,_0x47d1ce-_0x254bbc._0x5bbf51,_0x319b86-_0x254bbc._0x110df7);}const _0x13f26b=await this['createHeaders']({'request':_0x5f1d6d[_0x5ad6da(0x514,_0x1f29f4._0x52fe23,_0x1f29f4._0x498e9f,_0x1f29f4._0x2747c4)],'body':_0x120bec,'credential':_0x5f1d6d[_0x5ad6da(_0x1f29f4._0x3148bd,_0x1f29f4._0x232e16,0x422,0x4b1)],'session':_0x5f1d6d[_0x1f1e66(_0x1f29f4._0x3072f4,0x3ac,_0x1f29f4._0x1a7ad3,0x35a)],'stream':!![]},{'accept':'application/json','includeContentType':![]});_0x13f26b[_0x5ad6da(0x508,0x520,0x5c7,_0x1f29f4._0xe8dbb3)](_0x1f1e66(0x2b8,0x34d,_0x1f29f4._0x5ddddd,0x40d));const _0x24c91b=this['webSocketFactory']({'headers':Object[_0x1f1e66(_0x1f29f4._0xc35784,_0x1f29f4._0x4c136a,0x25f,0x1d9)](_0x13f26b[_0x1f1e66(0x1f0,0x2c9,_0x1f29f4._0xbaf939,0x274)]()),'url':(''+_0x5f1d6d['baseUrl']+this[_0x1f1e66(_0x1f29f4._0x244d9e,_0x1f29f4._0x1e96de,_0x1f29f4._0xdbe55c,0x2be)])[_0x1f1e66(_0x1f29f4._0x51d531,_0x1f29f4._0x452d71,_0x1f29f4._0x51fdb8,0x224)](/^http:/,_0x1f1e66(_0x1f29f4._0x59d2a0,0x2ac,_0x1f29f4._0x369f95,0x28b))[_0x5ad6da(0x3f4,_0x1f29f4._0x11213d,0x3c6,0x380)](/^https:/,_0x5ad6da(0x3b0,_0x1f29f4._0x54ed80,_0x1f29f4._0x38221d,0x35d))}),_0x2c3208=()=>{const _0x584d8b={_0x511610:0x1e2,_0x378a4e:0x121},_0x27b417={_0x4302b9:0x40,_0x238eaa:0x1f5};function _0x233fdf(_0x4d2722,_0x1206b8,_0x4da334,_0x2eabf5){return _0x1f1e66(_0x4d2722-_0x27b417._0x4302b9,_0x1206b8-_0x27b417._0x238eaa,_0x4da334-0x33,_0x2eabf5);}function _0x57a2dd(_0x25a464,_0x34a5eb,_0x427ee5,_0x2d0b3b){return _0x1f1e66(_0x25a464-_0x584d8b._0x511610,_0x427ee5-0x3,_0x427ee5-_0x584d8b._0x378a4e,_0x34a5eb);}_0x561726[_0x233fdf(0x4d0,0x493,0x43c,0x568)]===_0x24c91b&&(_0x561726[_0x57a2dd(_0x3df7bf._0x3552fe,_0x3df7bf._0x51ab6c,0x2a1,_0x3df7bf._0x52b5b6)]=void 0x0,_0x561726['lastResponseId']=void 0x0);};_0x24c91b[_0x1f1e66(_0x1f29f4._0x803e28,0x3ee,_0x1f29f4._0x4da372,_0x1f29f4._0x2e4106)](_0x1f1e66(_0x1f29f4._0x552cec,0x376,0x362,0x427),_0x2c3208);try{return throwIfAborted(_0x184fa2),_0x24c91b[_0x5ad6da(0x495,_0x1f29f4._0x197515,0x4bf,0x523)]!==WebSocket[_0x1f1e66(_0x1f29f4._0x55078e,_0x1f29f4._0x37031e,0x1fa,_0x1f29f4._0x10169a)]&&await waitForWebSocketOpen(_0x24c91b,_0x184fa2),throwIfAborted(_0x184fa2),_0x561726[_0x5ad6da(_0x1f29f4._0x40f632,0x4b7,0x43c,_0x1f29f4._0x1aa180)]=_0x24c91b,_0x24c91b;}catch(_0x4c0228){_0x2c3208();_0x24c91b[_0x5ad6da(0x495,0x486,_0x1f29f4._0x4b765b,0x487)]===WebSocket[_0x1f1e66(0x2bb,_0x1f29f4._0x45fbfe,0x263,_0x1f29f4._0x55d4b8)]&&_0x24c91b[_0x5ad6da(0x4c7,0x4d9,0x419,0x54a)](0x3e8,_0x1f1e66(_0x1f29f4._0x30f2a8,_0x1f29f4._0xdcb09f,_0x1f29f4._0x133078,0x3ce));throw _0x4c0228;}})());try{return await _0x561726['connecting'];}finally{_0x561726[_0x20858e(0x2f4,0x2be,0x271,0x286)]=void 0x0;}}async*[_0xd1496a(0x5b9,0x65a,0x592,0x52f)](_0x5e4b8b,_0x45f526){const _0x4a4b71={_0xceebbc:0x315,_0xf41a07:0x346,_0x5c6d7e:0x31d,_0x13f695:0x337,_0x2a8437:0x2c8,_0x33b45b:0x2af,_0x18d6e1:0x251,_0x567016:0x1f9,_0xcba5f4:0x5c3,_0x2bdc96:0x5e1,_0x51266e:0x537,_0x38141b:0x2cd,_0x522b1d:0x353,_0x320040:0x43f,_0x162d11:0x4f9,_0x191d31:0x3c0,_0x5b9fa2:0x3f7,_0x25d2f6:0x582,_0x279785:0x426,_0x6e98f9:0x301,_0x6136b:0x35d,_0x211742:0x331,_0x4e85c0:0x2c0,_0x250eb6:0x332,_0x27d288:0x326,_0x28dc72:0x3e5,_0x307b87:0x527,_0x9ba8ba:0x4d5},_0x4340a8={_0x312576:0x241,_0x341655:0x19f},_0x50f87d={_0x4983ad:0x1ef},_0x24e7da=this[_0x42d4d0(0x241,0x37a,_0x4a4b71._0xceebbc,0x329)](_0x5e4b8b);function _0x34dc99(_0x20e255,_0x2a4f67,_0x489280,_0x3d26dc){return _0xd1496a(_0x20e255- -0x55,_0x2a4f67-0xa8,_0x2a4f67,_0x3d26dc-_0x50f87d._0x4983ad);}const _0xfbc206=this[_0x42d4d0(0x288,0x363,0x272,_0x4a4b71._0xf41a07)](_0x24e7da[_0x42d4d0(0x3bd,0x278,_0x4a4b71._0x5c6d7e,0x353)]['sessionId']);function _0x42d4d0(_0x36097b,_0x3ec560,_0x188168,_0x490f10){return _0x11bd88(_0x490f10- -_0x4340a8._0x312576,_0x3ec560,_0x188168-0x1ea,_0x490f10-_0x4340a8._0x341655);}const _0xe8619a=await this[_0x42d4d0(_0x4a4b71._0x13f695,_0x4a4b71._0x2a8437,0x1de,_0x4a4b71._0x33b45b)](_0xfbc206);try{const _0x17b898=this[_0x42d4d0(0x261,0x289,_0x4a4b71._0x18d6e1,_0x4a4b71._0x567016)](_0x24e7da,_0xfbc206);try{yield*this[_0x34dc99(0x50d,_0x4a4b71._0xcba5f4,_0x4a4b71._0x2bdc96,_0x4a4b71._0x51266e)](_0x24e7da[_0x42d4d0(_0x4a4b71._0x38141b,0x2b2,0x381,_0x4a4b71._0x522b1d)][_0x34dc99(_0x4a4b71._0x320040,0x377,_0x4a4b71._0x162d11,_0x4a4b71._0x191d31)],_0xfbc206,_0x24e7da,_0x17b898[_0x34dc99(0x4d5,0x59e,_0x4a4b71._0x5b9fa2,_0x4a4b71._0x25d2f6)],_0x45f526?.[_0x42d4d0(0x2a9,_0x4a4b71._0x279785,_0x4a4b71._0x6e98f9,0x34e)]);return;}catch(_0x2ce735){if(!_0x17b898[_0x42d4d0(_0x4a4b71._0x6136b,0x372,_0x4a4b71._0x211742,0x2f7)]||!this['shouldRetryResponsesSocketRequest'](_0x2ce735)){this[_0x42d4d0(0x2ad,0x2d9,_0x4a4b71._0x4e85c0,_0x4a4b71._0x250eb6)](_0xfbc206);throw _0x2ce735;}}this[_0x42d4d0(0x35f,_0x4a4b71._0x27d288,_0x4a4b71._0x28dc72,0x332)](_0xfbc206);const _0x4579a2=this['buildResponsesSocketEvent'](_0x24e7da,_0xfbc206,{'forceFullReplay':!![]});yield*this['streamViaResponsesSocketAttempt'](_0x24e7da[_0x34dc99(0x5b4,0x58b,0x674,_0x4a4b71._0x307b87)]['sessionId'],_0xfbc206,_0x24e7da,_0x4579a2[_0x34dc99(_0x4a4b71._0x9ba8ba,0x4f3,0x4af,0x457)],_0x45f526?.['signal']);}finally{_0xe8619a();}}async*[_0xd1496a(0x562,0x5f2,0x62d,0x531)](_0x9a6165,_0x2954b7,_0x4faa3c,_0x195352,_0x17005e){const _0x5a8a38={_0x596f6f:0xd1,_0x362b25:0xa7,_0xa21519:0x58,_0x549a82:0x13,_0x2a8742:0xc1,_0x50812f:0x10f,_0x145f79:0xd2,_0x517569:0x2e5,_0xd25d8e:0x234,_0x4e1ec7:0x2b3,_0x3eae2b:0xad,_0x501883:0xfd,_0x1e0006:0x3d,_0x12ef47:0x46,_0x336270:0x16,_0x160973:0x1f0},_0xc0ab19={_0x445e23:0x31a,_0x50956d:0x1cc},_0x13a700={_0x3e80c0:0xde,_0x4afd10:0x1a9},_0x28fa76=await this[_0x18e110(0x1a9,_0x5a8a38._0x596f6f,0x1b1,_0x5a8a38._0x362b25)](_0x4faa3c,_0x17005e),_0x3375f1=await this[_0x18e110(0x243,0x194,0xf1,0x240)](_0x9a6165,_0x2954b7,_0x28fa76,_0x195352,_0x17005e),_0x89792f=createOpenAiResponsesStreamParser(_0x4faa3c);throwIfAborted(_0x17005e),_0x3375f1[_0x49a64e(-_0x5a8a38._0xa21519,_0x5a8a38._0x549a82,-0xb9,_0x5a8a38._0x2a8742)](JSON['stringify'](_0x195352));function _0x49a64e(_0x3b5156,_0x115ad7,_0x3a714a,_0x109df4){return _0x11bd88(_0x115ad7- -0x507,_0x3b5156,_0x3a714a-_0x13a700._0x3e80c0,_0x109df4-_0x13a700._0x4afd10);}function _0x18e110(_0x4a9962,_0x217d0f,_0x1920bd,_0x19e1bb){return _0x11bd88(_0x217d0f- -_0xc0ab19._0x445e23,_0x1920bd,_0x1920bd-_0xc0ab19._0x50956d,_0x19e1bb-0x1cf);}for await(const _0x2e8f23 of iterateWebSocketMessages(_0x3375f1,_0x17005e)){const _0x528498=_0x89792f[_0x18e110(0x39,_0x5a8a38._0x50812f,_0x5a8a38._0x145f79,0x1ae)]?.(_0x2e8f23)??[];yield*_0x528498;if(_0x89792f['isDone']?.())break;}if(!_0x89792f[_0x18e110(_0x5a8a38._0x517569,_0x5a8a38._0xd25d8e,0x2a5,_0x5a8a38._0x4e1ec7)]?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x278084=_0x89792f[_0x18e110(_0x5a8a38._0x3eae2b,0x138,0x84,0xa1)](),_0x2e5450=_0x278084[_0x18e110(_0x5a8a38._0x501883,0xca,0xc,_0x5a8a38._0x1e0006)]?.[_0x49a64e(_0x5a8a38._0x12ef47,_0x5a8a38._0x336270,0x2e,-0xa)]??_0x278084['id'];_0x2e5450&&(_0x2954b7[_0x18e110(0x15a,_0x5a8a38._0x160973,0x15c,0x16f)]=_0x2e5450),yield{'type':'done','response':_0x278084};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0xd1496a(0x480,0x561,0x567,0x534),_0xd1496a(0x538,0x500,0x5fe,0x450),_0xd1496a(0x490,0x3af,0x516,0x445),_0xd1496a(0x545,0x536,0x62c,0x55e)];function isAnthropicSurface(_0x9bc272){const _0x419b69={_0x45320d:0x13b};function _0x2e4c82(_0x41d99e,_0x5b7bbd,_0x46372a,_0x5cef89){return _0x11bd88(_0x5b7bbd- -0x4bc,_0x5cef89,_0x46372a-_0x419b69._0x45320d,_0x5cef89-0x10e);}return _0x9bc272===_0x2e4c82(-0x45,-0xb1,-0x42,-0xb8);}function resolveDefaultBaseUrl(_0x1d80a1){const _0x384630={_0x3b9bf5:0xfd,_0x77c3d9:0x2a4,_0x360993:0x287,_0x5a85e8:0x386,_0x45b7b8:0x2bd,_0x37fe50:0x1f2,_0x4225a5:0x10c,_0x50849f:0x1f3,_0x1ce01b:0x2cc,_0x43c6e8:0x2f3,_0x3f9a75:0x35c},_0x22ba62={_0x4ba558:0x180,_0x154883:0x18f};function _0x3e170d(_0x85d000,_0x19dbcb,_0x262493,_0x20bcd0){return _0x11bd88(_0x19dbcb- -0x252,_0x20bcd0,_0x262493-0xcf,_0x20bcd0-0x157);}function _0x26cd53(_0x4e1c3c,_0x4c4e8d,_0x25c336,_0x371df2){return _0x11bd88(_0x371df2- -0x1b7,_0x4e1c3c,_0x25c336-_0x22ba62._0x4ba558,_0x371df2-_0x22ba62._0x154883);}if(_0x1d80a1===_0x3e170d(_0x384630._0x3b9bf5,0x1b9,_0x384630._0x77c3d9,_0x384630._0x360993))return getProviderProfile('anthropic')?.[_0x26cd53(_0x384630._0x5a85e8,0x32a,0x392,0x2c1)]??_0x3e170d(_0x384630._0x45b7b8,_0x384630._0x37fe50,_0x384630._0x4225a5,_0x384630._0x50849f);return getProviderProfile('openai')?.['baseUrl']??_0x26cd53(_0x384630._0x1ce01b,0x332,_0x384630._0x43c6e8,_0x384630._0x3f9a75);}var ChatModel=class{[_0xd1496a(0x4de,0x41c,0x505,0x46d)];[_0x11bd88(0x46c,0x4f5,0x499,0x491)];['surface'];[_0xd1496a(0x5b1,0x59f,0x69c,0x503)];['openAiDelegate'];constructor(_0x87add2={}){const _0x2e2ae1={_0x1a7388:0x4a,_0x2bb2d0:0x114,_0x29f3b9:0x15d,_0x54d2b6:0xf0,_0x1a7d24:0x173,_0x220957:0xeb,_0x521fca:0x209,_0x3a083e:0x296,_0x3816a9:0x4c,_0x13bff9:0x121,_0x53235e:0x51,_0x2fe591:0x189,_0x491ee1:0x167,_0x899eee:0xe1,_0x456c6f:0x3,_0x8976d0:0x108,_0x36b903:0xd7,_0x3de574:0x21,_0xcdf8ab:0xf1,_0x182b19:0x20,_0x318b5a:0x130,_0x5dacfd:0x195,_0x20d2df:0xe5,_0x5866f0:0x4a,_0x59d2a:0x126,_0xd404e1:0x66,_0x1d6488:0xac,_0x65e3c:0x11a,_0x5ebe51:0x1fd,_0x128661:0xcf,_0x45b5f9:0x245,_0x3f1b95:0x213,_0x4d5f76:0x4a,_0x25b112:0xca},_0x119413={_0x69d6b8:0x3d},_0xc77c5d={_0x5ada0d:0x5df,_0x783c6e:0x1a6};this[_0x2bb6be(0xba,_0x2e2ae1._0x1a7388,_0x2e2ae1._0x2bb2d0,-0x15)]=_0x87add2['model']??getDefaultModel(),this[_0x634589(-_0x2e2ae1._0x29f3b9,-0x173,-_0x2e2ae1._0x54d2b6,-0x256)]=_0x87add2[_0x634589(-0x1c5,-_0x2e2ae1._0x1a7d24,-_0x2e2ae1._0x220957,-_0x2e2ae1._0x521fca)]??getDefaultMaxTokens(),this[_0x634589(-0x1ad,-0x1db,-_0x2e2ae1._0x3a083e,-0x26e)]=_0x87add2[_0x2bb6be(0x57,-0x1b,-_0x2e2ae1._0x3816a9,0xba)]??_0x2bb6be(_0x2e2ae1._0x13bff9,0xa4,_0x2e2ae1._0x53235e,_0x2e2ae1._0x2fe591);function _0x634589(_0x1d3568,_0x56bd7d,_0x404ce9,_0x547fd7){return _0x11bd88(_0x56bd7d- -_0xc77c5d._0x5ada0d,_0x404ce9,_0x404ce9-_0xc77c5d._0x783c6e,_0x547fd7-0xfd);}const _0x50733b=trimTrailingSlashes(_0x87add2[_0x634589(-0xc0,-_0x2e2ae1._0x491ee1,-0x1c9,-_0x2e2ae1._0x899eee)]??resolveDefaultBaseUrl(this[_0x634589(-0x281,-0x1db,-0x1e9,-0x180)]));if(isAnthropicSurface(this['surface'])){this[_0x634589(-0x11d,-0xa3,-_0x2e2ae1._0x456c6f,-_0x2e2ae1._0x8976d0)]=new AnthropicModel({'apiKey':_0x87add2['apiKey'],'authScheme':_0x87add2[_0x2bb6be(_0x2e2ae1._0x36b903,0xee,_0x2e2ae1._0x3de574,_0x2e2ae1._0xcdf8ab)],'baseUrl':_0x50733b,'fetch':_0x87add2[_0x634589(-_0x2e2ae1._0x182b19,-0xc9,-_0x2e2ae1._0x318b5a,-_0x2e2ae1._0x5dacfd)],'maxTokens':this['maxTokens'],'model':this[_0x2bb6be(_0x2e2ae1._0x20d2df,_0x2e2ae1._0x5866f0,_0x2e2ae1._0x59d2a,-0x40)],'reasoning':_0x87add2['reasoning'],'providerSessionResolver':_0x87add2[_0x634589(-_0x2e2ae1._0xd404e1,-0x53,-0xb4,-0xda)],'requestMutators':_0x87add2['requestMutators']});return;}function _0x2bb6be(_0x44ec8b,_0x28b04b,_0x31e013,_0x65a94e){return _0xd1496a(_0x28b04b- -0x494,_0x28b04b-0xde,_0x44ec8b,_0x65a94e-_0x119413._0x69d6b8);}this['openAiDelegate']=new OpenAiModel({'apiKey':_0x87add2[_0x2bb6be(_0x2e2ae1._0x1d6488,_0x2e2ae1._0x65e3c,0xc2,_0x2e2ae1._0x5ebe51)],'baseUrl':_0x50733b,'fetch':_0x87add2['fetch'],'headerResolver':_0x87add2['headerResolver'],'maxTokens':this[_0x634589(-_0x2e2ae1._0x128661,-0x173,-_0x2e2ae1._0x45b5f9,-_0x2e2ae1._0x3f1b95)],'model':this[_0x2bb6be(0x93,_0x2e2ae1._0x4d5f76,-0x56,0xe6)],'reasoning':_0x87add2['reasoning'],'providerSessionResolver':_0x87add2['providerSessionResolver'],'requestMutators':_0x87add2['requestMutators'],'webSocketFactory':_0x87add2[_0x2bb6be(0x107,0x153,_0x2e2ae1._0x25b112,0x1ec)]});}[_0x11bd88(0x56b,0x4ae,0x553,0x501)](){const _0x331107={_0x1a0a17:0x369,_0x164303:0x39d,_0xe7b64c:0x3cf,_0x7f7262:0x2fc,_0x5495c1:0x9,_0x841a72:0x36c,_0x2ff2d8:0x297,_0x34b4ce:0x339,_0x111934:0x368},_0x506d36={_0xeece73:0x535,_0x1e2904:0x146},_0x1b3e05={_0x521723:0x16d,_0x45edf0:0x14e,_0x48b817:0xda};function _0x262902(_0x5202f4,_0x18cad0,_0x6d8d00,_0x342faf){return _0x11bd88(_0x6d8d00- -_0x1b3e05._0x521723,_0x342faf,_0x6d8d00-_0x1b3e05._0x45edf0,_0x342faf-_0x1b3e05._0x48b817);}function _0x4924ac(_0x1554bf,_0x668fec,_0x235bf2,_0x15dd47){return _0xd1496a(_0x15dd47- -_0x506d36._0xeece73,_0x668fec-_0x506d36._0x1e2904,_0x668fec,_0x15dd47-0x146);}if(!this[_0x262902(_0x331107._0x1a0a17,_0x331107._0x164303,_0x331107._0xe7b64c,_0x331107._0x7f7262)])throw new Error(_0x4924ac(-_0x331107._0x5495c1,-0x83,0x8d,0x48)+this[_0x262902(_0x331107._0x841a72,0x319,_0x331107._0x2ff2d8,0x233)]);return this[_0x262902(_0x331107._0x34b4ce,_0x331107._0x111934,0x3cf,0x377)];}[_0xd1496a(0x579,0x4c8,0x5db,0x555)](){const _0x256d7a={_0x19bff5:0x23f},_0x5b1374={_0x1c569d:0x1db};if(!this[_0x2c85e3(0x269,_0x256d7a._0x19bff5,0x2cc,0x1b8)])throw new Error('OpenAI\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this['surface']);function _0x2c85e3(_0x502a3e,_0x933625,_0x515f67,_0x56b9ba){return _0xd1496a(_0x502a3e- -0x238,_0x933625-_0x5b1374._0x1c569d,_0x933625,_0x56b9ba-0x138);}return this['openAiDelegate'];}[_0x11bd88(0x58a,0x524,0x525,0x5bf)](_0x54ca4b,_0x5708cf){const _0x5a8dff={_0x3cc171:0x208,_0x34bfd3:0x136,_0x2293b1:0x37c,_0x95aa77:0x449,_0x367300:0x447,_0x29eec9:0x23c,_0x21111f:0x20d,_0x565055:0x2f7,_0x45f5b8:0x263,_0x3884d4:0x2f6,_0x206cce:0x3a6,_0x3894ce:0x2b7,_0x483480:0x24c,_0x1f001d:0x26d,_0x1bb260:0x202,_0x509c3e:0x1d5,_0x1e8868:0x373,_0x1e4ffb:0x206},_0x2d5951={_0x6368d0:0x20e,_0x33db90:0x28,_0x3e8272:0x13b},_0x5cf135={_0x437714:0x78};function _0x575854(_0x4abfc2,_0x1f69a2,_0x227827,_0xa49ca4){return _0x11bd88(_0xa49ca4- -0x2ce,_0x227827,_0x227827-_0x5cf135._0x437714,_0xa49ca4-0x1b7);}function _0x37ba7a(_0xccfc93,_0x355452,_0x3d18da,_0x161eb0){return _0x11bd88(_0x355452- -_0x2d5951._0x6368d0,_0x161eb0,_0x3d18da-_0x2d5951._0x33db90,_0x161eb0-_0x2d5951._0x3e8272);}switch(this[_0x575854(0x200,0x8d,_0x5a8dff._0x3cc171,_0x5a8dff._0x34bfd3)]){case'anthropic-messages':return this['getAnthropicDelegate']()[_0x37ba7a(0x38c,_0x5a8dff._0x2293b1,_0x5a8dff._0x95aa77,_0x5a8dff._0x367300)](_0x54ca4b,_0x5708cf);case _0x37ba7a(_0x5a8dff._0x29eec9,_0x5a8dff._0x21111f,_0x5a8dff._0x565055,_0x5a8dff._0x45f5b8):return this[_0x37ba7a(_0x5a8dff._0x29eec9,_0x5a8dff._0x3884d4,_0x5a8dff._0x206cce,0x2f1)]()[_0x37ba7a(_0x5a8dff._0x3894ce,0x26c,_0x5a8dff._0x483480,0x25d)](_0x54ca4b,_0x5708cf);case _0x575854(_0x5a8dff._0x1f001d,0x220,0x1b1,_0x5a8dff._0x1bb260):return this[_0x575854(0x159,0x252,_0x5a8dff._0x509c3e,0x236)]()['responseSocket'](_0x54ca4b,_0x5708cf);default:return this[_0x37ba7a(_0x5a8dff._0x1e8868,0x2f6,0x293,0x24b)]()[_0x575854(0x19e,0x278,0x17d,_0x5a8dff._0x1e4ffb)](_0x54ca4b,_0x5708cf);}}[_0xd1496a(0x5ec,0x5ee,0x556,0x62f)](_0x5d049a,_0x13bdd1){const _0x152391={_0x4d669d:0x10c,_0x472ea5:0xa5,_0x3b6804:0x192,_0x19e795:0x26f,_0x45f1dd:0x20c,_0x37cde6:0x231,_0x1a7d51:0x25d,_0x265f17:0x1fe,_0x35051f:0x218,_0x49a173:0x120,_0x367e8e:0x9d,_0x161215:0x124,_0x29a424:0x1a5,_0x4c67b0:0x1c7,_0x5508c4:0x45b,_0x2b9ad7:0x4d2,_0x57b0f2:0x417,_0x13ac9a:0x42c,_0x4a1f0a:0x419,_0x57b21b:0x46d,_0x32dbc5:0x4bb,_0x436ce6:0xb8,_0x3fdb2a:0x8e},_0x52fe0d={_0x2890d6:0x11e,_0x156df6:0x180},_0x110f8a={_0x43b977:0x3};function _0x5253d5(_0x5c1dc2,_0x160fcf,_0x1905c8,_0x4e428c){return _0xd1496a(_0x4e428c- -0x3d4,_0x160fcf-_0x110f8a._0x43b977,_0x5c1dc2,_0x4e428c-0x14f);}function _0x31696f(_0x2d8821,_0x10a0d7,_0x294d7f,_0x958375){return _0xd1496a(_0x10a0d7- -_0x52fe0d._0x2890d6,_0x10a0d7-_0x52fe0d._0x156df6,_0x958375,_0x958375-0xc9);}switch(this[_0x5253d5(0x94,_0x152391._0x4d669d,0xcb,_0x152391._0x472ea5)]){case'anthropic-messages':return this[_0x5253d5(0x2e4,_0x152391._0x3b6804,_0x152391._0x19e795,_0x152391._0x45f1dd)]()[_0x5253d5(_0x152391._0x37cde6,_0x152391._0x1a7d51,_0x152391._0x265f17,_0x152391._0x35051f)](_0x5d049a,_0x13bdd1);case _0x5253d5(_0x152391._0x49a173,_0x152391._0x367e8e,_0x152391._0x161215,0xbc):return this[_0x5253d5(0xf0,0x100,0xda,_0x152391._0x29a424)]()[_0x5253d5(0x26a,_0x152391._0x3b6804,0x1f7,_0x152391._0x4c67b0)](_0x5d049a,_0x13bdd1);case'openai-responses-ws':return this[_0x31696f(0x497,_0x152391._0x5508c4,0x497,0x3cd)]()[_0x31696f(_0x152391._0x2b9ad7,_0x152391._0x57b0f2,_0x152391._0x13ac9a,0x387)](_0x5d049a,_0x13bdd1);default:return this[_0x31696f(_0x152391._0x4a1f0a,0x45b,_0x152391._0x57b21b,_0x152391._0x32dbc5)]()[_0x5253d5(_0x152391._0x436ce6,_0x152391._0x3fdb2a,-0x1f,0x94)](_0x5d049a,_0x13bdd1);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0xd1496a(0x59d,0x53a,0x5ab,0x4c7)];[_0xd1496a(0x4ed,0x5b1,0x5a4,0x422)];[_0x11bd88(0x4f3,0x415,0x5ca,0x45a)];['githubApiUrl'];[_0x11bd88(0x3d3,0x3f7,0x320,0x47b)];constructor(_0x536ad2){const _0x17b62d={_0x14439e:0x331,_0x17625:0x32a,_0x3aa1da:0x335,_0x4094b7:0x39d,_0x3e0f02:0x2e8,_0x4e76b2:0x39b,_0x4ee954:0x297,_0x2b8806:0x369,_0x31b5b5:0x319,_0xbe8fbc:0x33a,_0x132693:0x278,_0x62fed0:0x25d},_0x2fcab8={_0x23d2e5:0x179},_0x3fbf9e={_0x5ddabc:0x53};this['accessToken']=_0x536ad2[_0x5276c0(_0x17b62d._0x14439e,0x37b,_0x17b62d._0x17625,_0x17b62d._0x3aa1da)],this[_0x5276c0(_0x17b62d._0x4094b7,0x2cb,0x2c4,_0x17b62d._0x3e0f02)]=trimTrailingSlashes2(_0x536ad2['baseUrl']),this[_0x5276c0(_0x17b62d._0x4e76b2,0x346,0x321,0x327)]=_0x536ad2[_0x5276c0(_0x17b62d._0x4ee954,_0x17b62d._0x2b8806,0x346,0x368)];function _0x5276c0(_0x485370,_0x2d9833,_0x361132,_0x167195){return _0x11bd88(_0x2d9833- -0x1ad,_0x485370,_0x361132-0x1b7,_0x167195-_0x3fbf9e._0x5ddabc);}this[_0x17ae94(_0x17b62d._0x31b5b5,0x1e2,0x25b,0x267)]=trimTrailingSlashes2(_0x536ad2[_0x5276c0(_0x17b62d._0xbe8fbc,_0x17b62d._0x132693,0x2be,0x32b)]);function _0x17ae94(_0x4105ba,_0xa0a26d,_0x5c49bb,_0x1cefdc){return _0xd1496a(_0x1cefdc- -0x233,_0xa0a26d-0x5b,_0xa0a26d,_0x1cefdc-_0x2fcab8._0x23d2e5);}this[_0x5276c0(0x236,0x226,0x145,_0x17b62d._0x62fed0)]=_0x536ad2['tokenExchangeApiVersion'];}async['resolve'](_0x206c1c){const _0x3fedfd={_0x15f1d6:0x23d,_0x4c4aea:0x17b,_0x4f1e03:0x174,_0x36f6b9:0x2c3,_0x24fcac:0x238,_0x12679f:0x369,_0x53914c:0x33a,_0x104b5e:0x32e,_0xac6a1e:0x3a7,_0x3e9913:0x1a6,_0x4c0c83:0x277,_0x1bc1a7:0x19b,_0x391bda:0x122,_0x284087:0x2dd,_0x485650:0x272,_0x4bd7cd:0x2d1,_0x143652:0x32b,_0x375fcb:0x1a1,_0x17a33a:0x3fc,_0x68e600:0x2cc,_0x1d0bc1:0x291,_0x4bd0b8:0x321,_0x5e8a2c:0x28e,_0xe63472:0x29f,_0x75cd52:0x9e,_0x7b8f01:0x124,_0x25c5b7:0x1d3,_0x58b772:0x257,_0x46c4f2:0x386,_0x148533:0x2e0,_0x768c95:0x2fa,_0x34f3f4:0x278,_0x4e1645:0x1e0},_0x3f991a={_0x90d52d:0x1ed,_0x3d8966:0x1be},_0x151b7d={_0x1edec7:0x18b,_0x4d609d:0x127};function _0x1a6484(_0x2944ac,_0x1b553f,_0x292598,_0x2c3542){return _0x11bd88(_0x2c3542- -0x2b1,_0x292598,_0x292598-_0x151b7d._0x1edec7,_0x2c3542-_0x151b7d._0x4d609d);}const _0x56ed71=await this[_0x1a6484(0x25d,0x269,0x25c,0x242)](this[_0x1a6484(_0x3fedfd._0x15f1d6,_0x3fedfd._0x4c4aea,0x237,_0x3fedfd._0x4f1e03)]+_0x1a6484(_0x3fedfd._0x36f6b9,0x25f,0x2b0,_0x3fedfd._0x24fcac),{'method':_0x42e308(0x306,0x2a6,_0x3fedfd._0x12679f,0x2fb),'headers':new Headers({'accept':_0x42e308(_0x3fedfd._0x53914c,0x3cb,_0x3fedfd._0x104b5e,0x40c),'authorization':_0x42e308(0x328,0x2c7,0x2f9,_0x3fedfd._0xac6a1e)+this[_0x1a6484(0x30a,_0x3fedfd._0x3e9913,0x1ad,_0x3fedfd._0x4c0c83)],'editor-version':_0x1a6484(0x130,0x184,0xdd,0x19c),'user-agent':'GitHubCopilotChat/0.33.1','x-github-api-version':this[_0x1a6484(0x15d,_0x3fedfd._0x1bc1a7,0x154,_0x3fedfd._0x391bda)]}),'signal':_0x206c1c});if(!_0x56ed71['ok'])return{'credential':{'kind':_0x42e308(_0x3fedfd._0x284087,_0x3fedfd._0x485650,_0x3fedfd._0x4bd7cd,_0x3fedfd._0x143652),'value':this['accessToken']},'endpoints':{'api':this[_0x1a6484(_0x3fedfd._0x375fcb,0x18f,0x1db,0x1c7)]}};const _0x348b40=await _0x56ed71[_0x42e308(0x2ea,_0x3fedfd._0x17a33a,0x357,0x3bb)]();function _0x42e308(_0x5a53b6,_0x3b089e,_0x3318ab,_0x4efe27){return _0xd1496a(_0x3318ab- -0x25f,_0x3b089e-_0x3f991a._0x90d52d,_0x5a53b6,_0x4efe27-_0x3f991a._0x3d8966);}return{'credential':{'kind':_0x42e308(0x26e,0x30e,_0x3fedfd._0x68e600,_0x3fedfd._0x1d0bc1),'value':_0x348b40['token']??this['accessToken']},'endpoints':{'api':_0x348b40['endpoints']?.['api']??this[_0x42e308(0x1a8,_0x3fedfd._0x4bd0b8,_0x3fedfd._0x5e8a2c,0x23b)],'originTracker':_0x348b40[_0x42e308(0x1ef,_0x3fedfd._0xe63472,0x257,0x266)]?.[_0x1a6484(_0x3fedfd._0x75cd52,0x1e0,0xac,_0x3fedfd._0x7b8f01)],'proxy':_0x348b40[_0x42e308(0x32a,_0x3fedfd._0x25c5b7,_0x3fedfd._0x58b772,0x27a)]?.[_0x1a6484(0x2c0,_0x3fedfd._0x46c4f2,0x28d,0x2c5)],'telemetry':_0x348b40['endpoints']?.[_0x42e308(_0x3fedfd._0x148533,_0x3fedfd._0x768c95,_0x3fedfd._0x34f3f4,_0x3fedfd._0x4e1645)]}};}};function trimTrailingSlashes2(_0x46c5b4){const _0x320d98={_0x2ea82f:0x347,_0x26048f:0x2a7},_0x472a6a={_0x391c03:0x200,_0x5ae4bc:0x18c};function _0x14bcbc(_0x205475,_0x2b3fe8,_0x23412d,_0x4b71ac){return _0xd1496a(_0x23412d- -_0x472a6a._0x391c03,_0x2b3fe8-_0x472a6a._0x5ae4bc,_0x4b71ac,_0x4b71ac-0x1c0);}return _0x46c5b4[_0x14bcbc(_0x320d98._0x2ea82f,0x1f4,_0x320d98._0x26048f,0x1d5)](/\/+$/,'');}function createModelInfo(_0x759a54){const _0x48b4cd={_0x594a8c:0x3fe,_0x4d3570:0x3d4,_0x54640e:0x452,_0x3b28e0:0x47f,_0x3f9149:0xb1,_0x1dd6df:0xca,_0x365848:0x4,_0x3866f1:0x370,_0x1d0814:0x324,_0x5858b2:0x14,_0x49d00e:0xbd,_0x1bf873:0x34,_0x3cb425:0x1c,_0x19d8bf:0x87,_0x423d76:0xa},_0x1e06b5={_0x56e728:0x96,_0x5a29ea:0x187},_0x467549={_0x38b023:0x27},_0x35717d=_0x759a54['supported_endpoints']??_0x759a54[_0x5066f2(_0x48b4cd._0x594a8c,_0x48b4cd._0x4d3570,_0x48b4cd._0x54640e,_0x48b4cd._0x3b28e0)],_0x420a90=_0x759a54[_0x426ade(-_0x48b4cd._0x3f9149,-_0x48b4cd._0x1dd6df,-_0x48b4cd._0x365848,-0x15)]?.[_0x5066f2(0x3a2,0x3c7,_0x48b4cd._0x3866f1,0x3c9)]?.[_0x426ade(0xa1,-0x38,-0x44,-0x4)];function _0x426ade(_0x123dd0,_0x30ccbb,_0x26c730,_0x5cfe35){return _0xd1496a(_0x5cfe35- -0x493,_0x30ccbb-0xa2,_0x30ccbb,_0x5cfe35-_0x467549._0x38b023);}const _0x45a9d8=_0x759a54[_0x5066f2(0x3d9,_0x48b4cd._0x1d0814,0x379,0x3e8)]?.[_0x426ade(-_0x48b4cd._0x5858b2,-_0x48b4cd._0x49d00e,-0x76,-_0x48b4cd._0x1bf873)]?.[_0x426ade(0xb5,-_0x48b4cd._0x3cb425,-_0x48b4cd._0x19d8bf,_0x48b4cd._0x423d76)];function _0x5066f2(_0x414597,_0x4cc9ce,_0x3b120c,_0x369df4){return _0xd1496a(_0x369df4- -_0x1e06b5._0x56e728,_0x4cc9ce-_0x1e06b5._0x5a29ea,_0x414597,_0x369df4-0x24);}const _0x1d6258=_0x420a90!==void 0x0||_0x45a9d8!==void 0x0?{..._0x420a90!==void 0x0?{'contextWindow':_0x420a90}:{},..._0x45a9d8!==void 0x0?{'maxOutput':_0x45a9d8}:{}}:void 0x0;return{'id':_0x759a54['id'],'name':_0x759a54['name']??_0x759a54['id'],..._0x1d6258?{'limits':_0x1d6258}:{},..._0x35717d?{'supportedEndpoints':_0x35717d}:{}};}function deduplicateModels(_0xcb4166){const _0x41ce20={_0x28c956:0x51b,_0x2e002e:0x2fc,_0x467832:0x3cc},_0x906c1c={_0x2736cb:0xf0,_0x1e1e52:0x45},_0x30436c={_0x112912:0xf2};function _0x2a32f6(_0x127f66,_0x33ec46,_0x52b8b5,_0x48ab56){return _0x11bd88(_0x48ab56- -0x5f3,_0x127f66,_0x52b8b5-_0x30436c._0x112912,_0x48ab56-0x1c6);}function _0x1477c8(_0x5659a3,_0x1cf966,_0x6eb82d,_0x2f9579){return _0xd1496a(_0x5659a3- -_0x906c1c._0x2736cb,_0x1cf966-_0x906c1c._0x1e1e52,_0x1cf966,_0x2f9579-0xa7);}const _0x10e486=new Map();for(const _0x3b7b9c of _0xcb4166){!_0x10e486['has'](_0x3b7b9c['id'])&&_0x10e486['set'](_0x3b7b9c['id'],_0x3b7b9c);}return Array[_0x1477c8(0x46b,0x4ec,_0x41ce20._0x28c956,0x38b)](_0x10e486[_0x1477c8(0x384,0x336,_0x41ce20._0x2e002e,_0x41ce20._0x467832)]());}function hasUserPromptContent(_0x457947){const _0xfc49eb={_0xf508bf:0x4f9},_0xe474ea={_0xf7199b:0x412,_0xcdfdf9:0x324,_0xca7d7a:0x321,_0x597600:0x31c,_0x5a0162:0x3e5,_0x17a429:0x361,_0x2637c9:0x3b7,_0x5692d8:0x2b0,_0x451402:0x370,_0x5982da:0x15c,_0x492d1c:0x162,_0x3ebfc1:0x2b0,_0x4084c9:0x369,_0x4d8836:0x1d0,_0x10c46a:0x1eb};if(typeof _0x457947==='string')return _0x457947[_0x5bd0f1(0x5e3,0x5c1,0x56d,_0xfc49eb._0xf508bf)]()['length']>0x0;if(!Array['isArray'](_0x457947))return![];function _0x5bd0f1(_0x5eb122,_0x2085e8,_0x4e98c2,_0x5ddcec){return _0x11bd88(_0x5ddcec-0xcb,_0x5eb122,_0x4e98c2-0x1ef,_0x5ddcec-0x13c);}return _0x457947['some'](_0x53efe8=>{const _0x28e14a={_0x11efbe:0x1d8,_0x412b2d:0xe,_0x442591:0x27f},_0xf7ef4a={_0x511ed1:0xf8,_0x2fe48e:0x37b};function _0x3cb478(_0x4d4229,_0x45d3c9,_0x3cb2d7,_0x57feba){return _0x5bd0f1(_0x57feba,_0x45d3c9-0x1da,_0x3cb2d7-_0xf7ef4a._0x511ed1,_0x3cb2d7- -_0xf7ef4a._0x2fe48e);}if(!_0x53efe8||typeof _0x53efe8!==_0xbd971b(0x42e,0x343,_0xe474ea._0xf7199b,0x423))return![];const _0x1f3eff=_0x53efe8;function _0xbd971b(_0x7270ec,_0x381f63,_0x5a02b3,_0x1fd316){return _0x5bd0f1(_0x7270ec,_0x381f63-_0x28e14a._0x11efbe,_0x5a02b3-_0x28e14a._0x412b2d,_0x381f63- -_0x28e14a._0x442591);}return(_0x1f3eff[_0xbd971b(0x328,_0xe474ea._0xcdfdf9,_0xe474ea._0xca7d7a,_0xe474ea._0x597600)]===_0xbd971b(_0xe474ea._0x5a0162,_0xe474ea._0x17a429,_0xe474ea._0x2637c9,0x389)||_0x1f3eff['type']==='text')&&typeof _0x1f3eff[_0xbd971b(0x2f9,_0xe474ea._0x5692d8,_0xe474ea._0x451402,0x25d)]===_0x3cb478(_0xe474ea._0x5982da,0x14e,_0xe474ea._0x492d1c,0x1ea)&&_0x1f3eff[_0xbd971b(0x336,_0xe474ea._0x3ebfc1,_0xe474ea._0x4084c9,_0xe474ea._0x4d8836)]['trim']()[_0xbd971b(0x1d5,0x27b,_0xe474ea._0x10c46a,0x25d)]>0x0;});}function _isUserPromptEntry(_0xb32ac){const _0xe256a6={_0xe52abd:0x51a,_0x1d71e8:0x5b7,_0x458cfb:0x458,_0xb993c5:0x44b,_0x3a3ef6:0x4bd,_0x4bbe2e:0x436,_0x2be57e:0x4fb,_0x47e14e:0x4ee,_0x4f0e80:0x4ed},_0xc6827b={_0x5c8196:0xc5};if(!_0xb32ac||typeof _0xb32ac!==_0x45b32d(_0xe256a6._0xe52abd,_0xe256a6._0x1d71e8,0x513,_0xe256a6._0x458cfb))return![];const _0x4568c0=_0xb32ac;function _0x3a8dbe(_0xf063ff,_0xc5896c,_0x521a4b,_0x166730){return _0x11bd88(_0x166730- -_0xc6827b._0x5c8196,_0x521a4b,_0x521a4b-0xe7,_0x166730-0x1a6);}if(_0x4568c0[_0x3a8dbe(0x3e2,0x53e,0x3d0,0x48f)]!==_0x3a8dbe(0x3b5,0x423,0x49d,_0xe256a6._0xb993c5))return![];if(_0x4568c0[_0x3a8dbe(_0xe256a6._0x3a3ef6,_0xe256a6._0x4bbe2e,0x329,0x413)]!==void 0x0&&_0x4568c0[_0x45b32d(_0xe256a6._0x2be57e,_0xe256a6._0x47e14e,_0xe256a6._0x4f0e80,0x43e)]!=='message')return![];function _0x45b32d(_0x3e74a9,_0x77fa70,_0x561bc8,_0x4a90e6){return _0xd1496a(_0x3e74a9- -0x52,_0x77fa70-0xfb,_0x77fa70,_0x4a90e6-0x3a);}return hasUserPromptContent(_0x4568c0['content']);}function determineInitiator(_0x57116c){const _0x2443e3={_0x30e7d3:0x36a,_0x2fe71f:0x353,_0x1f448c:0x40b,_0x368f91:0x144,_0x99be68:0x1f7,_0x3760b7:0x1d1,_0x6aaa78:0x42d,_0x1413a7:0x3c4,_0x455816:0x44d,_0xd6afda:0x2fa,_0x42d85c:0x452,_0x51662a:0x3f9,_0x260629:0x208,_0x5ea701:0x262,_0x4e4ce1:0x1b8,_0x4f5e3d:0x145,_0x238b5f:0x73,_0x490912:0x16f,_0x222efe:0x193,_0x5f3a0b:0x8c,_0x9568cf:0x29c,_0x31435a:0x26f,_0x252b2b:0x19b},_0x5a40d2={_0xafd4d0:0x1b3};if(!_0x57116c||typeof _0x57116c!==_0x3b702c(0x42d,_0x2443e3._0x30e7d3,_0x2443e3._0x2fe71f,_0x2443e3._0x1f448c))return _0x2d41e3(0x121,_0x2443e3._0x368f91,_0x2443e3._0x99be68,0x118);const _0xee519a='messages'in _0x57116c?_0x57116c[_0x2d41e3(0x120,0x8b,_0x2443e3._0x3760b7,0x10c)]:_0x3b702c(_0x2443e3._0x6aaa78,_0x2443e3._0x1413a7,0x416,_0x2443e3._0x455816)in _0x57116c?_0x57116c[_0x3b702c(0x320,0x3c4,0x371,_0x2443e3._0xd6afda)]:void 0x0;function _0x2d41e3(_0x3d80ee,_0x49cdd3,_0x59e43e,_0x2cfa25){return _0x11bd88(_0x3d80ee- -0x2c0,_0x59e43e,_0x59e43e-0x71,_0x2cfa25-0x15a);}function _0x3b702c(_0x2adff0,_0x279d71,_0x339722,_0x5e9c35){return _0xd1496a(_0x279d71- -0x202,_0x279d71-_0x5a40d2._0xafd4d0,_0x5e9c35,_0x5e9c35-0xfb);}if(!Array[_0x3b702c(_0x2443e3._0x42d85c,_0x2443e3._0x51662a,0x311,0x380)](_0xee519a)||_0xee519a[_0x3b702c(_0x2443e3._0x260629,0x2a2,_0x2443e3._0x5ea701,_0x2443e3._0x4e4ce1)]===0x0)return _0x2d41e3(0x121,_0x2443e3._0x4f5e3d,0x1a0,_0x2443e3._0x238b5f);return _isUserPromptEntry(_0xee519a[_0xee519a[_0x2d41e3(_0x2443e3._0x490912,_0x2443e3._0x222efe,_0x2443e3._0x5f3a0b,_0x2443e3._0x368f91)]-0x1])?_0x2d41e3(0x250,_0x2443e3._0x9568cf,_0x2443e3._0x31435a,0x1ad):_0x3b702c(0x297,0x254,0x202,_0x2443e3._0x252b2b);}function isUnsupportedApiForModel(_0x52339e){const _0x23bfe7={_0x1eea2c:0x6c,_0x22a61e:0x6b,_0x58af73:0xb3,_0x4a7b4c:0x466,_0x29437e:0x4f6},_0x3c1f59={_0x186570:0xe9},_0x364feb={_0xdeecfb:0x2a};function _0x354753(_0xd1030c,_0x363f8b,_0x172fe8,_0x3aff47){return _0xd1496a(_0x3aff47- -_0x364feb._0xdeecfb,_0x363f8b-0x1c9,_0x172fe8,_0x3aff47-0x15c);}function _0x3beb7c(_0x48f74f,_0x2a047a,_0x1b783a,_0x215ea0){return _0x11bd88(_0x2a047a- -0x421,_0x1b783a,_0x1b783a-0x71,_0x215ea0-_0x3c1f59._0x186570);}return _0x52339e[_0x3beb7c(-_0x23bfe7._0x1eea2c,_0x23bfe7._0x22a61e,_0x23bfe7._0x58af73,-0x67)](_0x354753(0x53f,_0x23bfe7._0x4a7b4c,0x55d,_0x23bfe7._0x29437e));}function _0xd1496a(_0xb9fa44,_0xc5246e,_0x3b0360,_0x43f590){const _0x265517={_0x4bbdd9:0x320};return _0x4abb(_0xb9fa44-_0x265517._0x4bbdd9,_0x3b0360);}function createResponseError(_0x112d88,_0x5f53b6){const _0x1ea238={_0xaf4422:0x372,_0x4e931b:0x2dc,_0x31c8b4:0x452,_0x325a5b:0x4be,_0x248ac9:0x2c6},_0x115737={_0x13bfdf:0x16e,_0x275856:0x16d},_0x1bc133={_0x16fdc0:0x160};if(_0x112d88===0x191||_0x112d88===0x193)return new Error(_0x45a94d(0x2b2,0x420,_0x1ea238._0xaf4422,_0x1ea238._0x4e931b));if(_0x112d88===0x198||_0x112d88===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');if(_0x112d88===0x190)return new Error(_0x14d2ea(0x427,0x446,_0x1ea238._0x31c8b4,_0x1ea238._0x325a5b)+_0x5f53b6);function _0x14d2ea(_0x38e269,_0x331db3,_0x549b8b,_0x3d2f91){return _0x11bd88(_0x549b8b- -0x13,_0x38e269,_0x549b8b-0x6d,_0x3d2f91-_0x1bc133._0x16fdc0);}function _0x45a94d(_0x8b0cf6,_0xcaeb66,_0x86cdd3,_0x547103){return _0xd1496a(_0x86cdd3- -_0x115737._0x13bfdf,_0xcaeb66-_0x115737._0x275856,_0x547103,_0x547103-0x91);}return new Error(_0x5f53b6||_0x45a94d(0x3ca,0x34f,0x3a2,_0x1ea238._0x248ac9)+_0x112d88);}var GitHubModel=class extends OpenAiModel{[_0x11bd88(0x53c,0x4e9,0x524,0x613)];['modelEndpointCache']=new Map();[_0xd1496a(0x479,0x511,0x526,0x4f9)];constructor(_0x4494d7={}){const _0x41e4ec={_0x2b5b87:0x2b8,_0x3edb95:0x251,_0x20fcb2:0x313,_0x3cb182:0x3cb,_0x1414e4:0x382,_0x241e39:0x356,_0x36a005:0x3f8,_0x5a3d41:0x368,_0x3b57fa:0x4b,_0x56eb77:0x3,_0x519d5a:0x1c,_0x304d99:0x61,_0x5d3b34:0x357,_0xa72f56:0x192,_0x38c223:0x187,_0x5c3b40:0x28e,_0x4cf9c9:0x213,_0x2a159c:0x45,_0x20bf63:0xa8,_0xea3081:0x30,_0x8188e8:0xe3,_0x2be749:0x6c,_0x1742c7:0x6d,_0x744c96:0xd,_0x3dba12:0x154,_0x46b7cf:0x1da,_0x252cc3:0x253,_0x18a749:0x335,_0x308511:0x331,_0x160886:0x279,_0xba47d:0x208,_0x582d03:0x26f,_0xa49686:0x3be,_0x35395a:0x2ab,_0x229762:0x3cd,_0xb50ef5:0x379,_0x5d8b80:0x1fb,_0x3b3cb4:0x7e,_0x2a8be0:0x261,_0x4d73c5:0x2f8,_0xd1e759:0x264,_0x635492:0x1a7},_0x3956ba={_0x5e1e6b:0x589,_0x4cad83:0x60,_0x57b60a:0x92},_0x4734bf={_0x18294f:0x1c0,_0x2104f2:0x1ca,_0x2b7ec1:0x19e},_0x394f45=trimTrailingSlashes2(_0x4494d7[_0x541bad(0x347,0x1f6,0x1e1,_0x41e4ec._0x2b5b87)]??_0x541bad(0x2ec,0x26e,_0x41e4ec._0x3edb95,0x273)),_0x40ad62=_0x4494d7[_0x541bad(_0x41e4ec._0x20fcb2,_0x41e4ec._0x3cb182,_0x41e4ec._0x1414e4,_0x41e4ec._0x241e39)]??globalThis[_0x541bad(0x34b,_0x41e4ec._0x36a005,_0x41e4ec._0x5a3d41,0x356)],_0x55093f=_0x4494d7[_0x584323(-0xd,-_0x41e4ec._0x3b57fa,-0x47,_0x41e4ec._0x56eb77)]??(_0x4494d7[_0x584323(-0x102,-0xca,_0x41e4ec._0x519d5a,-_0x41e4ec._0x304d99)]?new GitHubAccessTokenResolver({'accessToken':_0x4494d7[_0x541bad(0x441,0x387,_0x41e4ec._0x5d3b34,0x368)],'baseUrl':_0x394f45,'fetch':_0x40ad62,'githubApiUrl':_0x4494d7[_0x541bad(_0x41e4ec._0xa72f56,_0x41e4ec._0x38c223,_0x41e4ec._0x5c3b40,0x265)]??'https://api.github.com','tokenExchangeApiVersion':_0x4494d7[_0x541bad(0x1c2,0x1af,0x22d,_0x41e4ec._0x4cf9c9)]??_0x584323(-0x83,-0x17c,-_0x41e4ec._0x2a159c,-_0x41e4ec._0x20bf63)}):void 0x0);function _0x541bad(_0x216ae1,_0x4d7014,_0xd4f1bc,_0x2633e1){return _0x11bd88(_0x2633e1- -_0x4734bf._0x18294f,_0x216ae1,_0xd4f1bc-_0x4734bf._0x2104f2,_0x2633e1-_0x4734bf._0x2b7ec1);}const _0x5472e0=_0x4494d7['editorVersion']??_0x584323(-0x1ae,-_0x41e4ec._0xea3081,-0x4f,-_0x41e4ec._0x8188e8);function _0x584323(_0x3c5264,_0x1bf620,_0x4b64a0,_0x39eba9){return _0x11bd88(_0x39eba9- -_0x3956ba._0x5e1e6b,_0x3c5264,_0x4b64a0-_0x3956ba._0x4cad83,_0x39eba9-_0x3956ba._0x57b60a);}const _0x154604=_0x4494d7[_0x584323(-_0x41e4ec._0x2be749,0x32,_0x41e4ec._0x1742c7,-_0x41e4ec._0x744c96)]??'copilot-chat/0.31.3',_0x3fce34=({body:_0x3b0166})=>{return{'editor-plugin-version':_0x154604,'editor-version':_0x5472e0,'x-initiator':determineInitiator(_0x3b0166),'x-request-id':randomUUID()};},_0x2cf967={'apiKey':_0x4494d7['apiKey'],'baseUrl':_0x394f45,'fetch':_0x40ad62,'maxTokens':_0x4494d7['maxTokens'],'model':_0x4494d7[_0x584323(-0xb4,-_0x41e4ec._0x3dba12,-0x1a0,-0x120)],'reasoning':_0x4494d7[_0x584323(-_0x41e4ec._0x46b7cf,-0x24a,-0x21b,-0x1a7)],'providerSessionResolver':_0x55093f,'requestMutators':_0x4494d7[_0x541bad(_0x41e4ec._0x252cc3,_0x41e4ec._0x18a749,_0x41e4ec._0x308511,_0x41e4ec._0x160886)],'headerResolver':_0x3fce34};super(_0x2cf967),this['surface']=_0x4494d7[_0x541bad(0x2b4,_0x41e4ec._0xba47d,_0x41e4ec._0x582d03,0x244)]??'auto',this[_0x541bad(_0x41e4ec._0xa49686,0x2fe,_0x41e4ec._0x35395a,0x37c)]=new AnthropicModel({'apiKey':_0x4494d7[_0x541bad(_0x41e4ec._0x229762,0x2b8,0x2ce,_0x41e4ec._0xb50ef5)],'authScheme':'bearer','baseUrl':_0x394f45,'fetch':_0x40ad62,'headerResolver':_0x3fce34,'maxTokens':_0x4494d7[_0x584323(-_0x41e4ec._0x5d8b80,-_0x41e4ec._0x3b3cb4,-0x4c,-0x11d)],'model':_0x4494d7[_0x541bad(_0x41e4ec._0x2a8be0,0x337,_0x41e4ec._0x4d73c5,0x2a9)],'reasoning':_0x4494d7[_0x584323(-0x173,-_0x41e4ec._0xd1e759,-0x260,-_0x41e4ec._0x635492)],'providerSessionResolver':_0x55093f,'requestMutators':_0x4494d7[_0x584323(-0x1bb,-0x139,-0x23b,-0x150)]});}['createMissingCredentialError'](){const _0x2c1ff7={_0xe47828:0x15b,_0x42698b:0xb},_0x5aef16={_0x2599a8:0x520,_0x3444da:0x1c9};function _0x32210b(_0x49a2e6,_0x3aece1,_0x32b8bc,_0x5df662){return _0xd1496a(_0x32b8bc- -_0x5aef16._0x2599a8,_0x3aece1-_0x5aef16._0x3444da,_0x49a2e6,_0x5df662-0x14a);}return new Error(_0x32210b(-0x80,-_0x2c1ff7._0xe47828,-0x81,_0x2c1ff7._0x42698b));}[_0x11bd88(0x4f6,0x5ae,0x44a,0x4a9)](_0x10bf23){const _0x3a68c2={_0xd21a31:0x430,_0x1e17eb:0x42e,_0x37d15f:0x3c5,_0x11e1e0:0x39b,_0x40297f:0x30b,_0x3b0139:0x1d3,_0xdb4e1e:0xf7,_0x320d1b:0x74,_0x2bb08c:0x10b,_0x1bedd7:0x88},_0x7a3f50={_0x4fb8d9:0x152},_0x35df00={_0x3ef7d3:0x19c,_0x49a444:0xdb};function _0x3ebd15(_0x5c4128,_0x1bcf95,_0x312421,_0x4d6acb){return _0xd1496a(_0x4d6acb- -_0x35df00._0x3ef7d3,_0x1bcf95-_0x35df00._0x49a444,_0x5c4128,_0x4d6acb-0xa6);}const _0x52b4a1=this['modelEndpointCache'][_0x363f2b(-0xe0,-0x16d,-0x1f7,-0x159)](_0x10bf23);if(!_0x52b4a1)return![];function _0x363f2b(_0x512117,_0x767957,_0xd272c5,_0x637a32){return _0x11bd88(_0x767957- -0x583,_0x512117,_0xd272c5-0x113,_0x637a32-_0x7a3f50._0x4fb8d9);}return!_0x52b4a1[_0x3ebd15(_0x3a68c2._0xd21a31,_0x3a68c2._0x1e17eb,_0x3a68c2._0x37d15f,0x365)](_0x3ebd15(0x3c5,_0x3a68c2._0x11e1e0,_0x3a68c2._0x40297f,0x3ce))&&_0x52b4a1[_0x363f2b(-_0x3a68c2._0x3b0139,-_0x3a68c2._0xdb4e1e,-_0x3a68c2._0x320d1b,-_0x3a68c2._0x2bb08c)](_0x363f2b(-0x51,-_0x3a68c2._0x1bedd7,-0xa2,-0x11e));}[_0xd1496a(0x441,0x42b,0x4dc,0x400)](_0x22ba82){const _0x1b8a98={_0x1575eb:0x161,_0x4de19f:0x69,_0x3054ae:0x315,_0x1ad187:0x322,_0x5d5708:0x265,_0x2ace39:0x32c,_0x55160c:0x2b8,_0x493560:0x223,_0x145e88:0x1df,_0x4420c5:0x183,_0x5f144d:0xae,_0x464ae3:0x1d4,_0x42a479:0x114,_0x26cb30:0x1fb,_0xc25bb8:0x39a,_0x56fdb0:0x35a,_0x3182af:0x345,_0x49d92d:0x2a9,_0x1269cc:0x1a6},_0x503922={_0x51736d:0x226,_0x1ba35f:0x69},_0xcea42e=this[_0x185e73(-0x4a,-_0x1b8a98._0x1575eb,-0xa2,-_0x1b8a98._0x4de19f)][_0x3ab461(_0x1b8a98._0x3054ae,_0x1b8a98._0x1ad187,_0x1b8a98._0x5d5708,0x26f)](_0x22ba82[_0x3ab461(_0x1b8a98._0x2ace39,0x35f,_0x1b8a98._0x55160c,_0x1b8a98._0x493560)]);if(!_0xcea42e)return![];function _0x3ab461(_0x3807fb,_0x116f9b,_0x41829e,_0x3708e9){return _0xd1496a(_0x41829e- -_0x503922._0x51736d,_0x116f9b-_0x503922._0x1ba35f,_0x3807fb,_0x3708e9-0xe2);}if(resolveOpenAiReasoningConfig(_0x22ba82['reasoning']))return _0xcea42e[_0x185e73(-_0x1b8a98._0x145e88,-0x1a9,-_0x1b8a98._0x4420c5,-_0x1b8a98._0x5f144d)](_0x185e73(-_0x1b8a98._0x464ae3,-0x56,-_0x1b8a98._0x42a479,-_0x1b8a98._0x26cb30));function _0x185e73(_0x58cbcb,_0x137f9f,_0x3bb113,_0x4a0e82){return _0x11bd88(_0x3bb113- -0x60f,_0x58cbcb,_0x3bb113-0x1d,_0x4a0e82-0x100);}return this[_0x3ab461(_0x1b8a98._0xc25bb8,_0x1b8a98._0x56fdb0,_0x1b8a98._0x3182af,_0x1b8a98._0x49d92d)](_0x22ba82[_0x185e73(-0x252,-0x221,-_0x1b8a98._0x1269cc,-0xfb)]);}[_0x11bd88(0x4c8,0x502,0x556,0x466)](_0x2e05e2){const _0x1a27c8={_0x3e854b:0xec,_0x3b3bc4:0x1b1,_0x2ee1c5:0x174,_0x5ae246:0x371,_0x574610:0x15e},_0x123f76={_0x49da4c:0x1e};function _0x113fe5(_0xa8b0ec,_0x51f3e6,_0xffb025,_0x515c5e){return _0x11bd88(_0xa8b0ec- -0x659,_0xffb025,_0xffb025-0x97,_0x515c5e-_0x123f76._0x49da4c);}function _0x4529ca(_0xea3133,_0x411c2e,_0x2f79db,_0x5dda09){return _0x11bd88(_0x5dda09- -0x124,_0x411c2e,_0x2f79db-0x6,_0x5dda09-0x107);}this[_0x113fe5(-_0x1a27c8._0x3e854b,-_0x1a27c8._0x3b3bc4,-0x109,-_0x1a27c8._0x2ee1c5)][_0x4529ca(0x3e8,_0x1a27c8._0x5ae246,0x36c,0x413)](_0x2e05e2,[_0x113fe5(-_0x1a27c8._0x574610,-0x11f,-0xdf,-0x211)]);}['mapApiError'](_0x243b11){const _0x1e4327={_0x475f50:0x399,_0x2cec6e:0x424,_0x33778b:0x419,_0x3de302:0x3c3},_0xb3a155={_0x25ed0f:0x39a,_0x282bf6:0x187},_0x140bf5={_0x3be563:0x176,_0x1b5b4f:0x60};if(_0x243b11 instanceof OpenAiApiError)return createResponseError(_0x243b11[_0x118164(0x3b6,0x34d,0x425,_0x1e4327._0x475f50)],_0x243b11['body']||_0x243b11[_0x118164(0x4c0,_0x1e4327._0x2cec6e,_0x1e4327._0x33778b,_0x1e4327._0x3de302)]);function _0x118164(_0x593537,_0x45eab9,_0x4a8dc8,_0x24f758){return _0xd1496a(_0x45eab9- -_0x140bf5._0x3be563,_0x45eab9-_0x140bf5._0x1b5b4f,_0x24f758,_0x24f758-0x19f);}function _0x5592d7(_0x7800a7,_0x5a413b,_0x283ca3,_0x15f3a4){return _0xd1496a(_0x7800a7- -_0xb3a155._0x25ed0f,_0x5a413b-0x152,_0x5a413b,_0x15f3a4-_0xb3a155._0x282bf6);}return _0x243b11;}[_0x11bd88(0x4df,0x457,0x44e,0x59f)](_0x56e485,_0x11032e){const _0x2160d3={_0x4cea7c:0x489,_0x3b5f1d:0x40b,_0x27c02a:0x458,_0x5c9b07:0x490,_0xf28f24:0x50c,_0x3f2ace:0x434,_0x156ec4:0x572,_0x5b248a:0x5f5,_0x453ca9:0x16,_0x579a3f:0xec,_0x3bc7a4:0x96,_0x15e44c:0x548,_0x36ef45:0xa8,_0x29f206:0x20,_0x51e761:0x479,_0x1b6f55:0x453,_0x28d50f:0x5d6,_0x423c4f:0x48f,_0x1ac950:0x61d,_0x28c5b2:0x556,_0x4ed54e:0x4e0,_0x3a858d:0x51c,_0x4fdfe5:0x5c6},_0x886753={_0x16e6d6:0x569,_0x364c22:0x119},_0x60b303={_0x37b3b4:0x10,_0x56e9c4:0xb5,_0x599123:0x25};switch(this[_0x528caa(_0x2160d3._0x4cea7c,0x47b,_0x2160d3._0x3b5f1d,_0x2160d3._0x27c02a)]){case _0x528caa(_0x2160d3._0x5c9b07,_0x2160d3._0xf28f24,_0x2160d3._0x4cea7c,_0x2160d3._0x3f2ace):return this[_0x528caa(0x5c1,0x512,_0x2160d3._0x156ec4,_0x2160d3._0x5b248a)][_0x831930(0x172,-_0x2160d3._0x453ca9,_0x2160d3._0x579a3f,_0x2160d3._0x3bc7a4)](_0x56e485,_0x11032e);case _0x528caa(_0x2160d3._0x15e44c,0x5ca,0x48b,0x597):return this[_0x831930(-0xc7,-_0x2160d3._0x36ef45,-0x46,-_0x2160d3._0x29f206)](_0x56e485,_0x11032e);case'openai-responses':return this[_0x528caa(0x4ff,0x49a,_0x2160d3._0x51e761,_0x2160d3._0x1b6f55)](_0x56e485,_0x11032e);case _0x528caa(0x555,0x58d,_0x2160d3._0x28d50f,0x621):return this[_0x528caa(_0x2160d3._0x423c4f,0x4e7,0x464,0x4d8)](_0x56e485,_0x11032e);case _0x528caa(_0x2160d3._0x1ac950,0x668,0x62c,0x561):return this['complete'](_0x56e485,_0x11032e);}function _0x528caa(_0x2e997c,_0x5378f8,_0x4ce063,_0x5914dd){return _0xd1496a(_0x2e997c-_0x60b303._0x37b3b4,_0x5378f8-_0x60b303._0x56e9c4,_0x5914dd,_0x5914dd-_0x60b303._0x599123);}function _0x831930(_0x171b9e,_0x33de06,_0x3261d7,_0x12919f){return _0xd1496a(_0x12919f- -_0x886753._0x16e6d6,_0x33de06-_0x886753._0x364c22,_0x3261d7,_0x12919f-0xa0);}throw new Error(_0x528caa(_0x2160d3._0x28c5b2,_0x2160d3._0x4ed54e,_0x2160d3._0x3a858d,_0x2160d3._0x4fdfe5)+String(this[_0x528caa(0x489,0x3eb,0x44d,0x4d6)]));}[_0x11bd88(0x4c9,0x478,0x43b,0x50d)](_0x16f77e,_0x50d66a){const _0x377288={_0xedcbef:0x14a,_0x4da8bd:0x1dc,_0x56d761:0x143,_0x2d7ce9:0x11c,_0x111e02:0x1ac,_0x257887:0x176,_0x1930f7:0x5b,_0x55f629:0x15b,_0x344060:0x94,_0x658e24:0x8b,_0x4c3934:0x5d,_0x2ab62d:0x14f,_0x4ea2fd:0x69,_0x328ab4:0xa4,_0x4922b7:0x158,_0x56a296:0xb5,_0x2f132a:0x124,_0x3fdb37:0x83,_0x25b9ec:0x18},_0x27cdff={_0x3168ee:0x32},_0x45c1bd={_0x3c4a6b:0x5c3,_0x1e17d8:0x9c};function _0x6e7827(_0x10b609,_0x3485fe,_0x459347,_0x55369a){return _0xd1496a(_0x10b609- -_0x45c1bd._0x3c4a6b,_0x3485fe-_0x45c1bd._0x1e17d8,_0x55369a,_0x55369a-0x119);}function _0x44a728(_0x395202,_0xaea010,_0x4e8429,_0x553059){return _0x11bd88(_0xaea010- -0x618,_0x553059,_0x4e8429-0x110,_0x553059-_0x27cdff._0x3168ee);}switch(this[_0x6e7827(-_0x377288._0xedcbef,-0xd5,-_0x377288._0x4da8bd,-0x177)]){case _0x6e7827(-_0x377288._0x56d761,-_0x377288._0x2d7ce9,-_0x377288._0x111e02,-_0x377288._0x257887):return this[_0x44a728(-_0x377288._0x1930f7,-0xdc,-0x163,-_0x377288._0x55f629)][_0x44a728(-0xdb,-0xa1,-0xd0,-_0x377288._0x344060)](_0x16f77e,_0x50d66a);case _0x6e7827(-_0x377288._0x658e24,-0x5a,-_0x377288._0x4c3934,-0xac):return this[_0x6e7827(-0x15b,-0x14e,-0x1ec,-0xe9)](_0x16f77e,_0x50d66a);case'openai-responses':return this['responseStream'](_0x16f77e,_0x50d66a);case _0x44a728(-_0x377288._0x2ab62d,-0x148,-_0x377288._0x4ea2fd,-0x102):return this[_0x44a728(-_0x377288._0x328ab4,-_0x377288._0x4922b7,-_0x377288._0x56a296,-_0x377288._0x2f132a)](_0x16f77e,_0x50d66a);case'auto':return this[_0x6e7827(0x29,0xef,0x65,0xfb)](_0x16f77e,_0x50d66a);}throw new Error(_0x6e7827(-0x7d,-_0x377288._0x3fdb37,-0x90,-_0x377288._0x25b9ec)+String(this['surface']));}async['complete'](_0x36364a,_0x4fceb9){const _0x45dcd9={_0x3e38e6:0x12d,_0x43f429:0xc9,_0xb13e38:0xec,_0x29a267:0x6a,_0x17f388:0x42b,_0x138c26:0x4ce,_0x2bfa81:0x476,_0x21d9a3:0x5af,_0x28aa81:0x507,_0x90d28a:0x436,_0x59382b:0x5c8,_0x3714da:0x478,_0x452459:0x3d,_0x3dc874:0xac},_0x4f74c9={_0x357374:0xc},_0x543396={_0x124c04:0x2e,_0x2a3860:0x4a,_0x526735:0x184};function _0xf344eb(_0x11c7ed,_0x96e567,_0x9a062b,_0x1f2c06){return _0x11bd88(_0x9a062b-_0x543396._0x124c04,_0x11c7ed,_0x9a062b-_0x543396._0x2a3860,_0x1f2c06-_0x543396._0x526735);}const _0x4d87ea=this[_0x2371ea(0x92,0x12c,0x20e,_0x45dcd9._0x3e38e6)](_0x36364a);function _0x2371ea(_0x2ef34c,_0x90f1d,_0x5d8a45,_0x48e742){return _0xd1496a(_0x48e742- -0x4b2,_0x90f1d-0x1a1,_0x90f1d,_0x48e742-_0x4f74c9._0x357374);}if(this[_0x2371ea(-_0x45dcd9._0x43f429,-_0x45dcd9._0xb13e38,-_0x45dcd9._0x29a267,-0x39)]!=='auto')return this[_0xf344eb(0x49e,_0x45dcd9._0x17f388,0x50d,0x4ac)](_0x4d87ea,_0x4fceb9);if(this['shouldPreferResponsesApi'](_0x4d87ea))return this[_0xf344eb(_0x45dcd9._0x138c26,0x467,0x4a8,0x4d4)](_0x4d87ea,_0x4fceb9);try{return await this[_0xf344eb(_0x45dcd9._0x2bfa81,_0x45dcd9._0x21d9a3,_0x45dcd9._0x28aa81,_0x45dcd9._0x90d28a)](_0x4d87ea,_0x4fceb9);}catch(_0x1b9358){if(_0x1b9358 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x1b9358[_0x2371ea(0x121,0xec,-0x88,0x5f)]))return this[_0xf344eb(_0x45dcd9._0x59382b,0x5a8,0x4f6,_0x45dcd9._0x3714da)](_0x4d87ea[_0x2371ea(-_0x45dcd9._0x452459,-0x2,0x7e,0x2c)]),this[_0xf344eb(0x4aa,0x4a9,0x4a8,0x4ed)](_0x4d87ea,_0x4fceb9);throw this[_0x2371ea(_0x45dcd9._0x3dc874,0x2,0x7b,0xc4)](_0x1b9358);}throw _0x1b9358;}}async*[_0xd1496a(0x5ec,0x5e4,0x513,0x5b3)](_0x376e6b,_0x22da7d){const _0x55d63d={_0xac65a3:0x4,_0x332ed2:0x2c,_0x615b35:0x679,_0x51ab9b:0x706,_0x19dec7:0x679,_0x13d78c:0x166,_0x1711da:0x63e,_0x5a3e81:0x91,_0x1d664b:0x7c,_0x52feff:0x4,_0x102dbd:0x1,_0x3429a9:0x90,_0x3de044:0x3f,_0x448e93:0x2f,_0x36a112:0x607,_0x3eb2e5:0x64b,_0x131093:0x61c,_0x3a11f2:0x13,_0x227991:0x9f,_0x4e6331:0x78,_0x2daf18:0x69},_0x3ceff5={_0x336eb9:0x8b},_0x3a066f={_0x4ec83e:0x50d,_0x3518f8:0x17b};function _0x3c2112(_0x91ab9f,_0xc0ea55,_0x25146b,_0x4be261){return _0xd1496a(_0x4be261- -_0x3a066f._0x4ec83e,_0xc0ea55-0x91,_0x25146b,_0x4be261-_0x3a066f._0x3518f8);}const _0x5daf39=this[_0x3c2112(-_0x55d63d._0xac65a3,0x56,0xeb,0xd2)](_0x376e6b);function _0xbc9b4c(_0x1653b1,_0x14e110,_0x187dcc,_0x451b53){return _0xd1496a(_0x1653b1-0x6c,_0x14e110-0xeb,_0x451b53,_0x451b53-_0x3ceff5._0x336eb9);}if(this[_0x3c2112(-_0x55d63d._0x332ed2,-0x15a,0x1f,-0x94)]!==_0xbc9b4c(_0x55d63d._0x615b35,0x627,_0x55d63d._0x51ab9b,_0x55d63d._0x19dec7)){yield*this[_0x3c2112(0xb8,-0x9b,0x8e,0x31)](_0x5daf39,_0x22da7d);return;}if(this['shouldPreferResponsesApi'](_0x5daf39)){yield*this[_0x3c2112(_0x55d63d._0x13d78c,0x91,0x65,0x8e)](_0x5daf39,_0x22da7d);return;}try{yield*this[_0xbc9b4c(0x558,0x56f,_0x55d63d._0x1711da,0x4c8)](_0x5daf39,_0x22da7d);}catch(_0x44d0d6){if(_0x44d0d6 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x44d0d6[_0x3c2112(-_0x55d63d._0x5a3e81,_0x55d63d._0x1d664b,-0x71,_0x55d63d._0x52feff)])){this[_0x3c2112(0xeb,_0x55d63d._0x102dbd,_0x55d63d._0x3429a9,0x30)](_0x5daf39[_0x3c2112(0x4b,_0x55d63d._0x3de044,0x4e,-_0x55d63d._0x448e93)]),yield*this[_0xbc9b4c(_0x55d63d._0x36a112,_0x55d63d._0x3eb2e5,0x5f8,_0x55d63d._0x131093)](_0x5daf39,_0x22da7d);return;}throw this[_0x3c2112(-_0x55d63d._0x3a11f2,_0x55d63d._0x227991,_0x55d63d._0x4e6331,_0x55d63d._0x2daf18)](_0x44d0d6);}throw _0x44d0d6;}}async[_0x11bd88(0x3ca,0x356,0x2e2,0x48e)](_0xc74c3d){const _0x50c393={_0x51389b:0x70,_0x3e391f:0x6e,_0x2ddf40:0x18,_0xadd469:0xbe,_0x3cf8b3:0x1a1,_0x378e21:0x12f,_0x3cc424:0x56,_0x1fe131:0xdd,_0x11c68b:0x31,_0x51d6a1:0xb,_0x526a9a:0x150,_0x45bef5:0xd4,_0x4aa326:0xae},_0x46ab1e={_0x4b05ea:0x170,_0x46cc45:0xe3,_0x154584:0xee,_0x2fd4d1:0xe1,_0x1c62d1:0x1a7,_0x1be3ec:0x6b,_0x5e1124:0x1ba},_0x14b9a4={_0x133ccd:0x137,_0x34b039:0x124},_0x4e258a={_0x35d1e4:0x487,_0x205b2e:0xfb,_0x3d779a:0x98},_0x3c8ff9={_0x4e08b7:0x557,_0x4e3046:0xd8,_0x278e3a:0x1b6},_0x178fb3=await this[_0x585367(0x53,-0x7d,0x50,-_0x50c393._0x51389b)]({'path':_0x585367(_0x50c393._0x3e391f,-_0x50c393._0x2ddf40,_0x50c393._0xadd469,0x7f),'method':_0x585367(0x15d,_0x50c393._0x3cf8b3,0x23,0xcc),'signal':_0xc74c3d});function _0x6f6393(_0x1968a7,_0x4a5a7a,_0x41c6f3,_0x20cc1e){return _0x11bd88(_0x20cc1e- -_0x3c8ff9._0x4e08b7,_0x1968a7,_0x41c6f3-_0x3c8ff9._0x4e3046,_0x20cc1e-_0x3c8ff9._0x278e3a);}if(!_0x178fb3['ok'])throw this[_0x6f6393(-0x10a,-_0x50c393._0x378e21,-0xca,-_0x50c393._0x3cc424)](await this[_0x585367(0x31,_0x50c393._0x1fe131,-0x3,_0x50c393._0x11c68b)](_0x178fb3));function _0x585367(_0x2af498,_0x46de8f,_0xf643c0,_0x5be5b5){return _0x11bd88(_0x5be5b5- -_0x4e258a._0x35d1e4,_0x2af498,_0xf643c0-_0x4e258a._0x205b2e,_0x5be5b5-_0x4e258a._0x3d779a);}const _0x42d5ed=await _0x178fb3[_0x585367(0x97,-0xa,_0x50c393._0x51d6a1,0xba)](),_0x47c23f=(_0x42d5ed[_0x585367(-0x24,-_0x50c393._0x526a9a,-_0x50c393._0x45bef5,-_0x50c393._0x4aa326)]??[])['map'](_0x15cd7d=>{const _0x274242=createModelInfo(_0x15cd7d);function _0x7e0bc2(_0x1291b3,_0x69b64c,_0x4ffc64,_0x5afafa){return _0x6f6393(_0x5afafa,_0x69b64c-_0x14b9a4._0x133ccd,_0x4ffc64-0x3d,_0x4ffc64- -_0x14b9a4._0x34b039);}_0x274242[_0x59e4b1(0xdc,0x145,_0x46ab1e._0x4b05ea,_0x46ab1e._0x46cc45)]&&this['modelEndpointCache'][_0x59e4b1(_0x46ab1e._0x154584,_0x46ab1e._0x2fd4d1,_0x46ab1e._0x1c62d1,_0x46ab1e._0x1be3ec)](_0x274242['id'],_0x274242[_0x7e0bc2(-0x149,-_0x46ab1e._0x5e1124,-0xe0,-0x5d)]);function _0x59e4b1(_0x485023,_0x51fd0e,_0x52d750,_0x3f548c){return _0x6f6393(_0x3f548c,_0x51fd0e-0x8,_0x52d750-0xc3,_0x51fd0e-0x101);}return _0x274242;});return deduplicateModels(_0x47c23f);}};function createHeaders(_0x1f97be){const _0x2d7167={_0x56e906:0x2dd,_0x362e18:0x334},_0x5cbf3c={_0x24ee10:0x199};function _0xd686a2(_0x301574,_0x5cf9d1,_0x427ce4,_0x4dd67a){return _0xd1496a(_0x427ce4- -_0x5cbf3c._0x24ee10,_0x5cf9d1-0x68,_0x4dd67a,_0x4dd67a-0x31);}const _0xffe128=new Headers();for(const [_0x4d3cab,_0x56ccd5]of Object[_0xd686a2(_0x2d7167._0x56e906,0x2c4,_0x2d7167._0x362e18,0x345)](_0x1f97be)){_0xffe128['set'](_0x4d3cab,_0x56ccd5);}return _0xffe128;}async function fetchRawResponse(_0x15f5b7){const _0x1841a0={_0x395803:0x49,_0x45bf74:0x5bd,_0xff643d:0x59,_0x5a8d40:0x3f,_0x34887d:0x5d,_0x52eeae:0x70,_0x3d9e09:0xf1,_0x4eb1d7:0xc5,_0x558431:0x3,_0x48d280:0x54,_0x13a1bc:0x31,_0x449e2a:0xc2,_0x506f01:0xd8},_0x16bec4={_0x40a834:0x4cd,_0x4c856c:0xe9,_0x4b4e29:0x17a},_0xc4dbc4=_0x15f5b7[_0x377624(0xef,_0x1841a0._0x395803,-0x3c,-0x23)]??globalThis[_0x148a9b(0x61c,0x6a1,0x60f,_0x1841a0._0x45bf74)];function _0x148a9b(_0x180ece,_0x1a017d,_0x251e44,_0x1cc852){return _0xd1496a(_0x1cc852-0x32,_0x1a017d-0x12a,_0x180ece,_0x1cc852-0x116);}function _0x377624(_0x2e908b,_0x55e714,_0x511e8d,_0x7fa932){return _0x11bd88(_0x55e714- -_0x16bec4._0x40a834,_0x511e8d,_0x511e8d-_0x16bec4._0x4c856c,_0x7fa932-_0x16bec4._0x4b4e29);}return _0xc4dbc4(_0x15f5b7[_0x377624(-_0x1841a0._0xff643d,0x4e,-0x1e,-_0x1841a0._0x5a8d40)],{'method':_0x377624(_0x1841a0._0x34887d,-0x52,_0x1841a0._0x52eeae,0x4a),'headers':createHeaders(_0x15f5b7[_0x377624(-0x1d6,-_0x1841a0._0x3d9e09,-_0x1841a0._0x4eb1d7,-0xd1)]),'body':JSON[_0x377624(0x68,0xe,-_0x1841a0._0x558431,_0x1841a0._0x48d280)](_0x15f5b7[_0x377624(0xe,-_0x1841a0._0x13a1bc,0x6f,0x27)]),'signal':_0x15f5b7[_0x377624(0x14,_0x1841a0._0x449e2a,_0x1841a0._0x506f01,-0x1d)]});}async function fetchJsonResponse(_0x1bcd5d){const _0x4cf665={_0x585d04:0x4c9,_0x5e9a6e:0x4f1,_0x7755b0:0x3ec,_0x16088c:0x542,_0x2175f0:0x4f8,_0x115dcd:0x443,_0x1585a6:0x43f,_0x443fce:0x35b},_0x571461={_0x34ce25:0x10,_0x3d31ab:0x1d3},_0x2d03c2={_0x1bc667:0x237,_0x2c4b9e:0x54},_0x467696=await fetchRawResponse(_0x1bcd5d);if(!_0x467696['ok']){const _0x52ebe9=await _0x467696[_0x33d219(_0x4cf665._0x585d04,_0x4cf665._0x5e9a6e,_0x4cf665._0x7755b0,0x44b)](),_0x5ccaed=_0x52ebe9['trim']()||_0x467696[_0x33d219(0x4a7,0x459,_0x4cf665._0x16088c,_0x4cf665._0x2175f0)]||_0x33d219(_0x4cf665._0x115dcd,_0x4cf665._0x1585a6,0x504,_0x4cf665._0x443fce);throw new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x467696['status']+':\x20'+_0x5ccaed);}function _0x3363bc(_0x208889,_0x3ecdbc,_0x1bb48e,_0x47f813){return _0xd1496a(_0x1bb48e- -_0x2d03c2._0x1bc667,_0x3ecdbc-0x13,_0x3ecdbc,_0x47f813-_0x2d03c2._0x2c4b9e);}function _0x33d219(_0x2a77a2,_0x29d710,_0xa787af,_0x548354){return _0xd1496a(_0x2a77a2- -_0x571461._0x34ce25,_0x29d710-_0x571461._0x3d31ab,_0x548354,_0x548354-0x1e7);}return await _0x467696['json']();}function findLastMessage(_0x59d6b8,_0x52935b){const _0x1cf6cb={_0x3dcb7b:0xb7};for(let _0x191618=_0x59d6b8['length']-0x1;_0x191618>=0x0;_0x191618-=0x1){if(_0x59d6b8[_0x191618][_0x1180c9(-0x1d7,-0xf7,-0x164,-_0x1cf6cb._0x3dcb7b)]===_0x52935b)return _0x59d6b8[_0x191618];}function _0x1180c9(_0x47d72f,_0x428e68,_0x12506b,_0x3fe755){return _0x11bd88(_0x428e68- -0x64b,_0x12506b,_0x12506b-0x132,_0x3fe755-0x1ab);}return void 0x0;}function hasTool(_0xd9eb6f,_0x116756){const _0x320322={_0x250507:0x3ad,_0x488af3:0x40b,_0x128363:0x3c9,_0x5b204f:0x39b,_0x4bb8ff:0x39c},_0x41f6ab={_0x5b5d40:0x1dd,_0x296c67:0xe6},_0x1f37f8={_0x20c6f2:0x292};function _0x26fb04(_0x4565df,_0x2d8b16,_0x4c29bd,_0x25a2d5){return _0x11bd88(_0x2d8b16- -_0x1f37f8._0x20c6f2,_0x4565df,_0x4c29bd-0x122,_0x25a2d5-0x17f);}function _0x19032b(_0x2a19a7,_0x2cb19a,_0x5c8d62,_0x22121a){return _0xd1496a(_0x5c8d62- -_0x41f6ab._0x5b5d40,_0x2cb19a-_0x41f6ab._0x296c67,_0x2a19a7,_0x22121a-0xa9);}return _0xd9eb6f[_0x19032b(0x2fc,0x350,0x339,_0x320322._0x250507)][_0x19032b(_0x320322._0x488af3,_0x320322._0x128363,_0x320322._0x5b204f,_0x320322._0x4bb8ff)](_0x9ab409=>_0x9ab409[_0x26fb04(0x259,0x18f,0x11e,0x134)]===_0x116756);}function createMockResponse(_0x33c13a,_0x132203,_0x53272b,_0x209579){return{'id':_0x33c13a,'content':_0x132203,'stopReason':_0x53272b,'usage':_0x209579};}var MockModel=class{['model'];[_0x11bd88(0x46c,0x3e3,0x410,0x3ca)];[_0xd1496a(0x466,0x4ec,0x52a,0x3d0)]=[];[_0x11bd88(0x3e2,0x484,0x353,0x410)];constructor(_0x1bcd24={}){const _0x26c20b={_0x5314af:0x2e9,_0x312233:0x2d8,_0x589422:0x36f,_0x209867:0x225,_0x22af3e:0x29b,_0x2182ba:0x312,_0x113abd:0x2db,_0xebe771:0x2dc,_0x2bc297:0x27f,_0x506ce3:0x1e7,_0xb229de:0x1b3,_0x1dc0fd:0x1e3,_0x2ee4d5:0x1b7,_0x3e088f:0x231,_0x17d022:0x23e,_0x2e650d:0x210,_0x201e58:0x214},_0x2fcd86={_0x541965:0x191},_0x436eb7={_0x576a22:0x36};function _0xe78d2f(_0x5e1965,_0x1ed42e,_0x5af957,_0x1e2169){return _0x11bd88(_0x1e2169- -0x1ce,_0x5af957,_0x5af957-_0x436eb7._0x576a22,_0x1e2169-0x1a4);}this[_0x1bbae4(_0x26c20b._0x5314af,_0x26c20b._0x312233,0x21f,_0x26c20b._0x589422)]=_0x1bcd24[_0xe78d2f(0x2be,_0x26c20b._0x209867,0x30e,_0x26c20b._0x22af3e)]??'mock';function _0x1bbae4(_0x1da59c,_0x5c8fb3,_0x5d4d3c,_0x4325c2){return _0x11bd88(_0x5c8fb3- -_0x2fcd86._0x541965,_0x1da59c,_0x5d4d3c-0x1ba,_0x4325c2-0x3f);}this[_0x1bbae4(_0x26c20b._0x2182ba,_0x26c20b._0x113abd,_0x26c20b._0xebe771,_0x26c20b._0x2bc297)]=_0x1bcd24[_0xe78d2f(_0x26c20b._0x506ce3,0x1f8,_0x26c20b._0xb229de,0x29e)]??getDefaultMaxTokens(),this[_0xe78d2f(_0x26c20b._0x1dc0fd,0x1f5,0x1d3,0x214)]=_0x1bcd24[_0xe78d2f(0x1d3,_0x26c20b._0x2ee4d5,_0x26c20b._0x3e088f,0x214)]?structuredClone(_0x1bcd24[_0xe78d2f(_0x26c20b._0x17d022,0x25f,_0x26c20b._0x2e650d,_0x26c20b._0x201e58)]):void 0x0;}async[_0x11bd88(0x58a,0x631,0x51f,0x539)](_0x107440,_0x47733d){const _0x19bafb={_0x548e62:0x1b8,_0x1a91b6:0x147,_0x147fe2:0x1e8,_0x3643e4:0x202,_0xe8fa50:0x20,_0x359909:0x4,_0x5ea666:0x25,_0xb8a827:0x9e,_0x2a451f:0x17c,_0x3c97c1:0x243,_0x3c4b39:0x1b6,_0x5228d5:0x6f,_0x153daf:0x5b,_0x1da278:0xce,_0x2e445d:0xa4,_0x219494:0x82,_0x1b74a1:0x1d,_0x25cca8:0x19,_0x41da7c:0x5d,_0x49e14f:0xbe,_0x2e89a8:0xb5,_0xb18e04:0xba,_0x260b59:0x2ae,_0x2cfbb1:0x2ef,_0x331ee8:0x277,_0x451f25:0x20a,_0x547c0c:0x266,_0x29b546:0xb7,_0x45c759:0x20,_0x35c317:0x316,_0x7f49ca:0xa6,_0x596787:0xd8,_0x220b9c:0x1ea,_0x4e6bee:0x26d,_0x328f05:0x1ee,_0x22b8db:0x253,_0x95428b:0x255,_0xe95c6b:0x260,_0x7f72b5:0x200,_0x4ca60d:0x439,_0x43a8b:0x351},_0x6b7366={_0x16f545:0x19d,_0x4a1bab:0xbb},_0x3d7fd3={_0x225e48:0x121},_0x5ebd0f={...structuredClone(_0x107440),..._0x107440[_0x4f9843(0x1c8,0xff,0x1a8,_0x19bafb._0x548e62)]===void 0x0&&this[_0x4f9843(0x116,_0x19bafb._0x1a91b6,0x132,_0x19bafb._0x548e62)]!==void 0x0?{'reasoning':structuredClone(this[_0x4f9843(_0x19bafb._0x147fe2,_0x19bafb._0x3643e4,0x1db,_0x19bafb._0x548e62)])}:{}};this[_0x53780d(-_0x19bafb._0xe8fa50,-_0x19bafb._0x359909,0x20,-0x5b)][_0x53780d(0x36,-_0x19bafb._0x5ea666,-_0x19bafb._0xb8a827,0x46)](_0x5ebd0f);const _0x5552ff=findLastMessage(_0x5ebd0f[_0x4f9843(_0x19bafb._0x2a451f,_0x19bafb._0x3c97c1,0x1d6,_0x19bafb._0x3c4b39)],'user'),_0x48324f=getToolResultBlocks(_0x5552ff),_0x4286ee='assistant-'+this[_0x53780d(0x7b,_0x19bafb._0x5228d5,-0x32,-_0x19bafb._0x153daf)][_0x53780d(_0x19bafb._0x1da278,_0x19bafb._0x2e445d,_0x19bafb._0x219494,-_0x19bafb._0x1b74a1)];if(_0x48324f['length']>0x0)return createMockResponse(_0x4286ee,[{'type':'text','text':_0x4f9843(0x255,0x307,0x329,0x28d)+_0x48324f[0x0][_0x4f9843(0x121,0x265,0x2e4,0x1fc)]}],'end_turn',{'inputTokens':0x78,'outputTokens':0x28});function _0x53780d(_0xb21705,_0x28af8d,_0x5725e7,_0x29df01){return _0xd1496a(_0x29df01- -0x4c1,_0x28af8d-0x1d4,_0x28af8d,_0x29df01-_0x3d7fd3._0x225e48);}function _0x4f9843(_0x3305d8,_0x45e053,_0xd8faa0,_0x3f8052){return _0x11bd88(_0x3f8052- -0x22a,_0x45e053,_0xd8faa0-_0x6b7366._0x16f545,_0x3f8052-_0x6b7366._0x4a1bab);}const _0x1c8779=getTextFromMessage(_0x5552ff);if(/list .*files|workspace/i[_0x53780d(_0x19bafb._0x25cca8,-0x93,-0xd1,-_0x19bafb._0x41da7c)](_0x1c8779)&&hasTool(_0x5ebd0f,_0x53780d(_0x19bafb._0x49e14f,-_0x19bafb._0x2e89a8,-_0x19bafb._0xb18e04,0xe)))return createMockResponse(_0x4286ee,[{'type':_0x4f9843(_0x19bafb._0x260b59,0x2c4,_0x19bafb._0x2cfbb1,0x253),'id':_0x4f9843(_0x19bafb._0x331ee8,0x232,0x225,0x1dc)+this[_0x4f9843(_0x19bafb._0x451f25,0x153,_0x19bafb._0x547c0c,0x1c7)][_0x53780d(_0x19bafb._0x29b546,_0x19bafb._0x45c759,_0x19bafb._0x2e445d,-0x1d)],'name':_0x4f9843(_0x19bafb._0x35c317,0x289,0x1fe,0x230),'input':{'command':_0x53780d(-_0x19bafb._0x7f49ca,_0x19bafb._0x596787,-0x7e,0x2a)}}],_0x4f9843(_0x19bafb._0x220b9c,_0x19bafb._0x4e6bee,_0x19bafb._0x328f05,_0x19bafb._0x22b8db),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x4286ee,[{'type':_0x4f9843(_0x19bafb._0x95428b,_0x19bafb._0xe95c6b,_0x19bafb._0x7f72b5,0x23a),'text':'Direct\x20answer:\x20'+_0x1c8779}],_0x4f9843(0x3b9,0x2b4,_0x19bafb._0x4ca60d,_0x19bafb._0x43a8b),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x1697e9,_0x460af3){const _0x3046ef={_0x1187c0:0x149,_0x4ad23a:0x15d,_0x15a22c:0x168,_0x36dbc6:0x21d,_0x1e14ec:0xdb,_0xfb80cd:0x184,_0x5682cb:0x113,_0x591e60:0xda,_0x5bc6bf:0x138,_0x3af051:0x1bc,_0x501d96:0x1d9,_0x198218:0x28c,_0x255952:0x1a0},_0x2a3a78={_0x5f58e9:0x5b9,_0x34af00:0xb8,_0x2d2334:0x6a},_0x494d2a={_0x37f663:0x63b},_0x1a9c79=getModelProfile(_0x1697e9,_0x460af3);function _0x53c309(_0x120a89,_0x386378,_0x2a7560,_0x5efe66){return _0x11bd88(_0x386378- -_0x494d2a._0x37f663,_0x5efe66,_0x2a7560-0x179,_0x5efe66-0x140);}if(!_0x1a9c79?.[_0x53c309(-_0x3046ef._0x1187c0,-_0x3046ef._0x4ad23a,-0x20d,-0x1fe)]&&!_0x1a9c79?.[_0x53c309(-_0x3046ef._0x15a22c,-0x23e,-_0x3046ef._0x36dbc6,-0x2a1)])return void 0x0;function _0x5b72e8(_0x238883,_0x1ae59f,_0x4135ad,_0x242b92){return _0x11bd88(_0x238883- -_0x2a3a78._0x5f58e9,_0x1ae59f,_0x4135ad-_0x2a3a78._0x34af00,_0x242b92-_0x2a3a78._0x2d2334);}return{..._0x1a9c79[_0x5b72e8(-_0x3046ef._0x1e14ec,-_0x3046ef._0xfb80cd,-_0x3046ef._0x5682cb,-0x5)]?{'contextWindow':_0x1a9c79[_0x5b72e8(-_0x3046ef._0x1e14ec,-_0x3046ef._0x591e60,-_0x3046ef._0x5bc6bf,-0x107)]}:{},..._0x1a9c79[_0x5b72e8(-_0x3046ef._0x3af051,-0x224,-0x11b,-_0x3046ef._0x501d96)]?{'maxOutput':_0x1a9c79[_0x5b72e8(-0x1bc,-_0x3046ef._0x198218,-0x280,-_0x3046ef._0x255952)]}:{}};}function normalizeModelInfo(_0x5a6280,_0x171d5e){const _0x419fa1={_0x3f52fb:0x213,_0x468f75:0x31,_0x545aa8:0x16f,_0x17fb7f:0x23c,_0x1586c9:0x184,_0x31c1ff:0x356,_0x403d02:0x361,_0x40f85c:0xc1,_0x39a7d3:0xbc,_0x3d3234:0x25},_0x14a75d={_0x8421bf:0x53a},_0x38f1f7={_0x3e44ef:0x1c0};function _0x9fe53c(_0x37ddd0,_0x250a98,_0x475248,_0x3824db){return _0x11bd88(_0x37ddd0- -0x1ff,_0x250a98,_0x475248-_0x38f1f7._0x3e44ef,_0x3824db-0x33);}const _0x2296bf=typeof _0x171d5e['id']===_0x9fe53c(_0x419fa1._0x3f52fb,0x26f,0x2b2,0x288)?_0x171d5e['id']:'',_0x3ec754=typeof _0x171d5e[_0x5c91a1(-_0x419fa1._0x468f75,-0xa4,-0x23,-_0x419fa1._0x545aa8)]==='string'?_0x171d5e[_0x9fe53c(0x222,_0x419fa1._0x17fb7f,0x2e2,_0x419fa1._0x1586c9)]:_0x2296bf,_0x1ce2c6=normalizeModelLimits(_0x5a6280,_0x171d5e)??getFallbackModelLimits(_0x5a6280,_0x2296bf);function _0x5c91a1(_0x3c123f,_0x4f9f95,_0x450000,_0x19ee6b){return _0xd1496a(_0x4f9f95- -_0x14a75d._0x8421bf,_0x4f9f95-0x162,_0x19ee6b,_0x19ee6b-0x1d9);}const _0x124b9e=Array['isArray'](_0x171d5e[_0x9fe53c(0x398,0x3de,_0x419fa1._0x31c1ff,_0x419fa1._0x403d02)])?_0x171d5e['supported_endpoints']['filter'](_0x16eef5=>typeof _0x16eef5===_0x9fe53c(0x213,0x273,0x155,0x1a2)):Array[_0x5c91a1(0x6a,_0x419fa1._0x40f85c,0x144,0x121)](_0x171d5e['capable_endpoints'])?_0x171d5e[_0x5c91a1(_0x419fa1._0x39a7d3,-_0x419fa1._0x3d3234,-0xc5,0x18)][_0x5c91a1(-0x36,0x62,0x45,0xb1)](_0x58e92e=>typeof _0x58e92e==='string'):void 0x0;return{'id':_0x2296bf,'name':_0x3ec754,..._0x1ce2c6?{'limits':_0x1ce2c6}:{},..._0x124b9e?{'supportedEndpoints':_0x124b9e}:{}};}function normalizeModelLimits(_0x25389e,_0x2c02c8){const _0x366b7b={_0x4f72bf:0x106,_0x425185:0x17e,_0x4aa9bb:0x202,_0x467282:0x275,_0x1fc1c8:0x101,_0x288663:0x1cb,_0x4ffc78:0x1eb,_0x1d3852:0x101,_0x865a04:0xfc,_0x309748:0x105,_0x224608:0x207,_0x3fcac2:0x23e,_0x54bdfb:0x280,_0x65a959:0x339,_0x624739:0x1b4,_0x312a90:0x277,_0xa58dfe:0x181,_0x36c00a:0x97,_0x26f8d3:0x1ae,_0x56a798:0x29,_0x201858:0xe9,_0x3ba5d1:0x40,_0x3dc835:0x10a,_0x504cf5:0xdb,_0x4e1941:0x409,_0x1c92c4:0x329,_0x79f62c:0x3f0,_0xb733da:0x8e,_0xeaa7d5:0x109,_0x168fac:0x387,_0x3014d6:0x270,_0x9dae92:0x282,_0x51e874:0xbe,_0x3ca474:0x6e,_0x2e5865:0x2dd,_0x243762:0x16c,_0x37e9f6:0x89,_0x515af5:0x2ee,_0x3fe225:0x387},_0x181131={_0x31a004:0x95},_0x45a9e8={_0x37f3f7:0x26c,_0x4fe8d0:0x62};if(_0x2c02c8['limits']&&typeof _0x2c02c8[_0x3bb7cc(0x18f,_0x366b7b._0x4f72bf,_0x366b7b._0x425185,_0x366b7b._0x4aa9bb)]===_0x294bd5(-0x17,0x68,-0x37,0x76)){const _0x5cb137=_0x2c02c8['limits'];if(typeof _0x5cb137[_0x3bb7cc(0x1ec,0x1e1,0x272,_0x366b7b._0x467282)]===_0x294bd5(0x14c,0x13b,0xdc,_0x366b7b._0x1fc1c8))return{'contextWindow':_0x5cb137['contextWindow'],...typeof _0x5cb137['maxOutput']===_0x294bd5(0x37,_0x366b7b._0x288663,_0x366b7b._0x4ffc78,_0x366b7b._0x1d3852)?{'maxOutput':_0x5cb137[_0x3bb7cc(_0x366b7b._0x865a04,0x22a,0x191,_0x366b7b._0x309748)]}:{}};}if(_0x25389e[_0x3bb7cc(_0x366b7b._0x224608,_0x366b7b._0x3fcac2,_0x366b7b._0x54bdfb,_0x366b7b._0x65a959)]()===_0x3bb7cc(0x296,_0x366b7b._0x624739,0x26b,_0x366b7b._0x312a90)){const _0x1c4ff4=_0x2c02c8['capabilities'],_0x2498f0=_0x1c4ff4?.[_0x294bd5(-0x165,-_0x366b7b._0xa58dfe,-0x13c,-_0x366b7b._0x36c00a)];if(typeof _0x2498f0?.['max_context_window_tokens']==='number')return{'contextWindow':_0x2498f0[_0x3bb7cc(0x232,0x1bd,_0x366b7b._0x26f8d3,0x199)],...typeof _0x2498f0['max_output_tokens']===_0x294bd5(_0x366b7b._0x56a798,_0x366b7b._0x201858,_0x366b7b._0x3ba5d1,0x101)?{'maxOutput':_0x2498f0['max_output_tokens']}:{}};}const _0x3fcf5f=_0x2c02c8['metadata'],_0x259da3=_0x2c02c8[_0x294bd5(_0x366b7b._0x3dc835,0x0,_0x366b7b._0x504cf5,0x59)];function _0x3bb7cc(_0x3f90e5,_0x6ac354,_0x38bbea,_0x453a00){return _0x11bd88(_0x38bbea- -_0x45a9e8._0x37f3f7,_0x6ac354,_0x38bbea-_0x45a9e8._0x4fe8d0,_0x453a00-0x1cb);}const _0x23f8bb=typeof _0x2c02c8[_0x3bb7cc(_0x366b7b._0x4e1941,0x3e8,_0x366b7b._0x1c92c4,_0x366b7b._0x79f62c)]==='number'?_0x2c02c8['context_length']:typeof _0x3fcf5f?.['context_length']===_0x294bd5(_0x366b7b._0xb733da,_0x366b7b._0xeaa7d5,0x144,0x101)?_0x3fcf5f['context_length']:typeof _0x259da3?.[_0x3bb7cc(0x37a,_0x366b7b._0x168fac,_0x366b7b._0x1c92c4,_0x366b7b._0x3014d6)]===_0x3bb7cc(0x379,0x2ee,0x316,0x3af)?_0x259da3[_0x3bb7cc(_0x366b7b._0x9dae92,0x2d7,0x329,0x3b4)]:void 0x0;if(_0x23f8bb===void 0x0)return void 0x0;function _0x294bd5(_0x4c6691,_0x166163,_0x1a05f7,_0x4433b7){return _0x11bd88(_0x4433b7- -0x481,_0x166163,_0x1a05f7-_0x181131._0x31a004,_0x4433b7-0x119);}return{'contextWindow':_0x23f8bb,...typeof _0x3fcf5f?.[_0x294bd5(-_0x366b7b._0x51e874,-0x36,0x4e,-_0x366b7b._0x3ca474)]==='number'?{'maxOutput':_0x3fcf5f[_0x3bb7cc(0x203,0x105,0x1a7,0x21a)]}:typeof _0x259da3?.[_0x3bb7cc(0x34c,0x2f1,0x2d2,_0x366b7b._0x2e5865)]===_0x294bd5(_0x366b7b._0x243762,0x132,_0x366b7b._0x37e9f6,0x101)?{'maxOutput':_0x259da3[_0x3bb7cc(_0x366b7b._0x515af5,0x315,0x2d2,_0x366b7b._0x3fe225)]}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultMaxTokens,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};