ai-helper-agent 2.0.0 → 2.2.0

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 (38) hide show
  1. package/README.md +28 -5
  2. package/README.zh-CN.md +28 -5
  3. package/bin/agent.js +150 -0
  4. package/dist/assets/{agent-store-BFaBECYz.js → agent-store-DOyMdB_7.js} +2 -2
  5. package/dist/assets/{agent-store-BFaBECYz.js.map → agent-store-DOyMdB_7.js.map} +1 -1
  6. package/dist/assets/background.js +86 -87
  7. package/dist/assets/background.js.map +1 -1
  8. package/dist/assets/content.js +84 -80
  9. package/dist/assets/{i18n-CohqPkkN.js → i18n-MmYITlVj.js} +9 -7
  10. package/dist/assets/i18n-MmYITlVj.js.map +1 -0
  11. package/dist/assets/model-profiles-CV_sUuPf.js +25 -0
  12. package/dist/assets/model-profiles-CV_sUuPf.js.map +1 -0
  13. package/dist/assets/options-Df_1Dtn8.css +1 -0
  14. package/dist/assets/options.js +78 -63
  15. package/dist/assets/options.js.map +1 -1
  16. package/dist/assets/page-snapshot-renderer-CE53ibi-.js +4 -0
  17. package/dist/assets/page-snapshot-renderer-CE53ibi-.js.map +1 -0
  18. package/dist/assets/session-store-B0ZPGm7d.js +77 -0
  19. package/dist/assets/session-store-B0ZPGm7d.js.map +1 -0
  20. package/dist/assets/side_panel.css +1 -1
  21. package/dist/assets/side_panel.js +478 -439
  22. package/dist/assets/side_panel.js.map +1 -1
  23. package/dist/icons/badges/version.svg +4 -4
  24. package/dist/manifest.json +6 -3
  25. package/dist/offscreen/offscreen.js +10 -8
  26. package/dist/options.html +3 -12
  27. package/dist/side_panel.html +120 -32
  28. package/package.json +1 -1
  29. package/src/install-mode.js +128 -0
  30. package/src/locales/cli.json +24 -0
  31. package/src/rag/install.js +4 -0
  32. package/src/server.js +3 -1
  33. package/dist/assets/i18n-CohqPkkN.js.map +0 -1
  34. package/dist/assets/model-profiles-BS2LIjxf.js +0 -2
  35. package/dist/assets/model-profiles-BS2LIjxf.js.map +0 -1
  36. package/dist/assets/options-CE9-fjJV.css +0 -1
  37. package/dist/assets/session-store-DwXNnVF5.js +0 -100
  38. package/dist/assets/session-store-DwXNnVF5.js.map +0 -1
@@ -1,13 +1,14 @@
1
- (()=>{var le={DEBUG:0,INFO:1,WARN:2,ERROR:3},te=le.DEBUG;function xt(e){te=e}function kt(){return te}function Tt(...e){te<=le.DEBUG&&console.debug("[AIH]",...e)}function St(...e){te<=le.INFO&&console.info("[AIH]",...e)}function vt(...e){te<=le.WARN&&console.warn("[AIH]",...e)}function Ct(...e){te<=le.ERROR&&console.error("[AIH]",...e)}var v={debug:Tt,info:St,warn:vt,error:Ct,setLogLevel:xt,getLogLevel:kt},At={common:{confirm:"\u786E\u8BA4",cancel:"\u53D6\u6D88",close:"\u5173\u95ED",ok:"\u786E\u5B9A",save:"\u4FDD\u5B58",delete:"\u5220\u9664",edit:"\u7F16\u8F91",retry:"\u91CD\u8BD5",loading:"\u52A0\u8F7D\u4E2D...",none:"\u65E0",add:"\u6DFB\u52A0",clear:"\u6E05\u7A7A",selectAll:"\u5168\u9009",deselectAll:"\u53D6\u6D88\u5168\u9009",refresh:"\u5237\u65B0",enabled:"\u5DF2\u542F\u7528",disabled:"\u5DF2\u505C\u7528",bytes:"\u5B57\u8282",copy:"\u590D\u5236",copySuccess:"\u5DF2\u590D\u5236",copyFailed:"\u590D\u5236\u5931\u8D25"},dialog:{operationConfirm:"\u64CD\u4F5C\u786E\u8BA4",confirmDefaultMessage:"\u6A21\u578B\u8BF7\u6C42\u6267\u884C\u654F\u611F\u64CD\u4F5C\uFF0C\u662F\u5426\u5141\u8BB8\uFF1F",confirmAction:"\u6A21\u578B\u8BF7\u6C42\u6267\u884C\u64CD\u4F5C: {name}",remainingTime:"\u5269\u4F59\u65F6\u95F4: {time}",deny:"\u62D2\u7EDD",approveOnce:"\u672C\u6B21\u653E\u884C",approveLoop:"\u5F53\u524D\u4EFB\u52A1\u653E\u884C"},sensitiveTool:{manage_cookies:"\u7BA1\u7406 Cookie",clear_data:"\u6E05\u9664\u9875\u9762\u6570\u636E",download_file:"\u4E0B\u8F7D\u6587\u4EF6",manage_tab:"\u6807\u7B7E\u9875\u7BA1\u7406",agent_file:"\u6587\u4EF6\u64CD\u4F5C",debug_page:"\u9875\u9762\u8C03\u8BD5\uFF08Debugger\uFF09",debuggerAttachHint:`
1
+ (()=>{var ce={DEBUG:0,INFO:1,WARN:2,ERROR:3},ae=ce.DEBUG;function Ut(e){ae=e}function Kt(){return ae}function $t(...e){ae<=ce.DEBUG&&console.debug("[AIH]",...e)}function zt(...e){ae<=ce.INFO&&console.info("[AIH]",...e)}function Gt(...e){ae<=ce.WARN&&console.warn("[AIH]",...e)}function Wt(...e){ae<=ce.ERROR&&console.error("[AIH]",...e)}var E={debug:$t,info:zt,warn:Gt,error:Wt,setLogLevel:Ut,getLogLevel:Kt},jt={common:{confirm:"\u786E\u8BA4",cancel:"\u53D6\u6D88",close:"\u5173\u95ED",ok:"\u786E\u5B9A",save:"\u4FDD\u5B58",delete:"\u5220\u9664",edit:"\u7F16\u8F91",retry:"\u91CD\u8BD5",loading:"\u52A0\u8F7D\u4E2D...",none:"\u65E0",add:"\u6DFB\u52A0",clear:"\u6E05\u7A7A",selectAll:"\u5168\u9009",deselectAll:"\u53D6\u6D88\u5168\u9009",refresh:"\u5237\u65B0",enabled:"\u5DF2\u542F\u7528",disabled:"\u5DF2\u505C\u7528",bytes:"\u5B57\u8282",copy:"\u590D\u5236",copySuccess:"\u5DF2\u590D\u5236",copyFailed:"\u590D\u5236\u5931\u8D25"},dialog:{operationConfirm:"\u64CD\u4F5C\u786E\u8BA4",confirmDefaultMessage:"\u6A21\u578B\u8BF7\u6C42\u6267\u884C\u654F\u611F\u64CD\u4F5C\uFF0C\u662F\u5426\u5141\u8BB8\uFF1F",confirmAction:"\u6A21\u578B\u8BF7\u6C42\u6267\u884C\u64CD\u4F5C: {name}",remainingTime:"\u5269\u4F59\u65F6\u95F4: {time}",deny:"\u62D2\u7EDD",approveOnce:"\u672C\u6B21\u653E\u884C",approveLoop:"\u5F53\u524D\u4EFB\u52A1\u653E\u884C"},sensitiveTool:{manage_cookies:"\u7BA1\u7406 Cookie",clear_data:"\u6E05\u9664\u9875\u9762\u6570\u636E",download_file:"\u4E0B\u8F7D\u6587\u4EF6",manage_tab:"\u6807\u7B7E\u9875\u7BA1\u7406",agent_file:"\u6587\u4EF6\u64CD\u4F5C",debug_page:"\u9875\u9762\u8C03\u8BD5\uFF08Debugger\uFF09",debuggerAttachHint:`
2
2
 
3
3
  \u5F00\u542F\u540E\u8BE5\u6807\u7B7E\u9875\u9876\u90E8\u4F1A\u663E\u793A"\u6269\u5C55\u7A0B\u5E8F\u6B63\u5728\u8C03\u8BD5\u6B64\u6D4F\u89C8\u5668"\u63D0\u793A\u6761\uFF0C\u7ED3\u675F\u540E\u81EA\u52A8\u6D88\u5931\u3002`,unknown:"\u672A\u77E5\u64CD\u4F5C",tabInfo:`
4
4
 
5
5
  \u6807\u7B7E\u9875\u6807\u9898: {title}
6
6
  \u6807\u7B7E\u9875 URL: {url}`,tabInfoError:`
7
7
 
8
- \uFF08\u65E0\u6CD5\u83B7\u53D6\u6807\u7B7E\u9875\u4FE1\u606F: {error}\uFF09`,untitled:"\u65E0\u6807\u9898",unknownUrl:"\u672A\u77E5"},settings:{docTitle:"AI Helper - \u914D\u7F6E",language:"\u754C\u9762\u8BED\u8A00",languageChanged:"\u8BED\u8A00\u5DF2\u5207\u6362\uFF0C\u90E8\u5206\u9875\u9762\u5237\u65B0\u540E\u751F\u6548",pageTitle:"AI Helper \u914D\u7F6E",subtitle:"\u7F51\u9875\u667A\u80FD\u52A9\u624B - OpenAI \u517C\u5BB9\u63A5\u53E3",importConfigTitle:"\u5BFC\u5165\u914D\u7F6E",exportConfigTitle:"\u5BFC\u51FA\u914D\u7F6E",tabBasic:"\u57FA\u7840",tabReact:"\u63A8\u7406",tabReflection:"\u53CD\u601D",tabToolbar:"\u5212\u8BCD",tabAgent:"\u4EE3\u7406",tabToolbox:"\u6269\u5C55",saveConfig:"\u4FDD\u5B58\u914D\u7F6E",apiBaseHint:"\uFF08\u4ECE\u4E0B\u62C9\u5217\u8868\u9009\u62E9\uFF0C\u6216\u624B\u52A8\u8F93\u5165\uFF09",addApiBaseTitle:"\u6DFB\u52A0\u81EA\u5B9A\u4E49 API Base URL",addAddress:"+ \u6DFB\u52A0\u5730\u5740",apiBaseUrlPlaceholder:"API Base URL\uFF08\u5982 https://api.example.com/v1\uFF09",apiBaseLabelPlaceholder:"\u6807\u7B7E/\u5907\u6CE8\uFF08\u53EF\u9009\uFF0C\u5982 \u6211\u7684\u4EE3\u7406\uFF09",confirmAdd:"\u786E\u8BA4\u6DFB\u52A0",requiredHint:"\uFF08\u5FC5\u586B\uFF09",apiKeyHint:"\u8BF7\u4ECE\u60A8\u4F7F\u7528\u7684\u5927\u6A21\u578B\u5E73\u53F0\u83B7\u53D6\u5BF9\u5E94\u7684 API Key\uFF0C\u5E76\u5728\u6B64\u914D\u7F6E\u4E2D\u586B\u5199\u3002\u8BF7\u59A5\u5584\u4FDD\u7BA1\u60A8\u7684 API Key\uFF0C\u907F\u514D\u6CC4\u9732\u3002",apiKeyPlaceholder:"\u8BF7\u8F93\u5165\u60A8\u7684 API Key",toggleApiKey:"\u663E\u793A/\u9690\u85CF API Key",modelName:"\u6A21\u578B\u540D\u79F0",modelNameHint:"\uFF08\u4ECE\u4E0B\u62C9\u5217\u8868\u9009\u62E9\uFF0C\u6216\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u6DFB\u52A0\u65B0\u6A21\u578B\uFF09",selectModelPlaceholder:"\u8BF7\u4ECE\u4E0B\u65B9\u9009\u62E9\u6A21\u578B",noMatch:"\u65E0\u5339\u914D\u9879",addModelTitle:"\u6DFB\u52A0\u81EA\u5B9A\u4E49\u6A21\u578B",addModel:"+ \u6DFB\u52A0\u6A21\u578B",fetchModels:"\u27F3 \u4ECE API \u83B7\u53D6",fetchModelsTitle:"\u4ECE\u5F53\u524D\u5382\u5546 API \u62C9\u53D6\u53EF\u7528\u6A21\u578B\u5217\u8868",fetchModelsLoading:"\u83B7\u53D6\u4E2D\u2026",fetchModelsNeedConfig:"\u8BF7\u5148\u586B\u5199 API Base URL \u548C API Key",fetchModelsSuccess:"\u2705 \u5DF2\u83B7\u53D6 {total} \u4E2A\u6A21\u578B\uFF08\u65B0\u589E {added} \u4E2A\uFF09",fetchModelsEmpty:"\u672A\u83B7\u53D6\u5230\u6A21\u578B\uFF0C\u8BF7\u624B\u52A8\u6DFB\u52A0",fetchModelsFailed:"\u274C \u83B7\u53D6\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E\u6216\u624B\u52A8\u6DFB\u52A0\u6A21\u578B",fetchModelsAuthFailed:"\u274C \u8BA4\u8BC1\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5 API Key",modelNameInputPlaceholder:"\u6A21\u578B\u540D\u79F0\uFF08\u5982 gpt-4o\uFF09",contextWindowPlaceholder:"\u4E0A\u4E0B\u6587\u7A97\u53E3\u5927\u5C0F\uFF08tokens\uFF09",contextWindowHint:"128K=128000, 200K=200000, 1M=1000000, \u7559\u7A7A\u5219\u81EA\u52A8\u63A8\u65AD",enableImageInput:"\u542F\u7528\u56FE\u7247\u8BC6\u522B\u529F\u80FD",enableImageInputHint:"\uFF08\u5F00\u542F\u540E\u53EF\u5728\u4FA7\u8FB9\u680F\u53D1\u9001\u56FE\u7247\u7ED9\u591A\u6A21\u6001\u6A21\u578B\u8FDB\u884C\u5206\u6790\uFF09",imageApiBaseHint:"\uFF08\u4ECE\u4E0B\u62C9\u5217\u8868\u9009\u62E9\uFF0C\u6216\u624B\u52A8\u8F93\u5165\uFF1B\u7559\u7A7A\u5219\u4F7F\u7528\u57FA\u7840\u6A21\u578B\u914D\u7F6E\uFF09",addImageApiBaseTitle:"\u6DFB\u52A0\u81EA\u5B9A\u4E49\u56FE\u7247 API Base URL",useBaseModelPlaceholder:"\u7559\u7A7A\u5219\u4F7F\u7528\u57FA\u7840\u6A21\u578B\u914D\u7F6E",imageApiKeyHint:"\uFF08\u53EF\u9009\uFF0C\u7559\u7A7A\u5219\u4F7F\u7528\u57FA\u7840\u6A21\u578B\u914D\u7F6E\uFF09",imageApiKeyPlaceholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u8BC6\u522B API Key",imageModelNameHint:"\uFF08\u652F\u6301\u591A\u6A21\u6001\u89C6\u89C9\u80FD\u529B\u7684\u6A21\u578B\uFF0C\u4ECE\u5217\u8868\u9009\u62E9\u6216\u6DFB\u52A0\u65B0\u6A21\u578B\uFF1B\u7559\u7A7A\u5219\u4F7F\u7528\u57FA\u7840\u6A21\u578B\u7684\u6A21\u578B\u540D\u79F0\uFF09",useBaseModelPlaceholderShort:"\u7559\u7A7A\u5219\u4F7F\u7528\u57FA\u7840\u6A21\u578B",addImageModelTitle:"\u6DFB\u52A0\u81EA\u5B9A\u4E49\u56FE\u7247\u8BC6\u522B\u6A21\u578B",systemPrompt:"\u7CFB\u7EDF\u63D0\u793A\u8BCD",systemPromptHint:"\uFF08\u53EF\u9009\uFF0C\u7559\u7A7A\u5219\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF09",resetToDefault:"\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C",systemPromptTip:"\u{1F4A1} \u63D0\u793A\uFF1A\u7CFB\u7EDF\u63D0\u793A\u8BCD\u7528\u4E8E\u5B9A\u4E49 AI \u52A9\u624B\u7684\u884C\u4E3A\u548C\u89D2\u8272\u3002",collapse:"\u2212 \u6536\u8D77",modelNameRequired:"\u8BF7\u8F93\u5165\u6A21\u578B\u540D\u79F0",modelAdded:"\u6A21\u578B\u5DF2\u6DFB\u52A0",imageModelAdded:"\u56FE\u7247\u6A21\u578B\u5DF2\u6DFB\u52A0",apiBaseSwitched:"API Base URL \u5DF2\u5207\u6362\uFF0C\u8BF7\u786E\u4FDD API Key \u5BF9\u5E94\u6709\u6548",apiBaseRequired:"\u8BF7\u8F93\u5165 API Base URL",urlInvalid:"URL \u683C\u5F0F\u4E0D\u6B63\u786E",apiBaseAdded:"API Base URL \u5DF2\u6DFB\u52A0",imageApiBaseSwitched:"\u56FE\u7247 API Base URL \u5DF2\u5207\u6362",imageApiBaseAdded:"\u56FE\u7247 API Base URL \u5DF2\u6DFB\u52A0",maxIterationsRangeError:"\u6700\u5927\u5FAA\u73AF\u6B21\u6570\u5FC5\u987B\u5728 10-1000 \u4E4B\u95F4",apiTimeoutRangeError:"API \u8BF7\u6C42\u8D85\u65F6\u5FC5\u987B\u5728 1-10 \u5206\u949F \u4E4B\u95F4",loopTimeoutRangeError:"\u6574\u4F53\u5FAA\u73AF\u8D85\u65F6\u5FC5\u987B\u5728 1-120 \u5206\u949F \u4E4B\u95F4",toolTimeoutRangeError:"\u5DE5\u5177\u6267\u884C\u8D85\u65F6\u5FC5\u987B\u5728 1-30 \u5206\u949F \u4E4B\u95F4",apiKeyEmpty:"API Key \u4E0D\u80FD\u4E3A\u7A7A",saveFailed:"\u4FDD\u5B58\u5931\u8D25\uFF1A{message}",saveSuccess:"\u914D\u7F6E\u5DF2\u4FDD\u5B58\u6210\u529F\uFF01",deleteModel:"\u5220\u9664\u6B64\u6A21\u578B",deleteApiBase:"\u5220\u9664\u6B64\u5730\u5740",providerConfig:"\u5382\u5546\u914D\u7F6E",providerConfigHint:"\uFF08\u5207\u6362\u540E\u7ACB\u5373\u751F\u6548\uFF1B\u6BCF\u4E2A\u914D\u7F6E\u72EC\u7ACB\u8BB0\u5FC6\u5730\u5740\u3001API Key\u3001\u6A21\u578B\u5217\u8868\uFF09",profileScopeHint:"\u4EE5\u4E0B\u8BBE\u7F6E\u4FDD\u5B58\u5230\u5382\u5546\u914D\u7F6E\u201C{name}\u201D\uFF0C\u5207\u6362\u5382\u5546\u65F6\u81EA\u52A8\u8054\u52A8",newProfile:"+ \u65B0\u5EFA",newProfileTitle:"\u65B0\u5EFA\u4E00\u4E2A\u7A7A\u7684\u5382\u5546\u914D\u7F6E",profileNameTitle:"\u65B0\u5EFA\u5382\u5546\u914D\u7F6E",saveAsProfile:"\u53E6\u5B58\u4E3A",saveAsProfileTitle:"\u4EE5\u5F53\u524D\u914D\u7F6E\u53E6\u5B58\u4E3A\u65B0\u7684\u5382\u5546\u914D\u7F6E",renameProfile:"\u91CD\u547D\u540D",renameProfileTitle:"\u91CD\u547D\u540D\u5F53\u524D\u914D\u7F6E",deleteProfile:"\u5220\u9664",deleteProfileTitle:"\u5220\u9664\u5F53\u524D\u914D\u7F6E",profileNamePlaceholder:"\u914D\u7F6E\u540D\u79F0\uFF08\u5982 DeepSeek \u5B98\u65B9\u3001\u6211\u7684\u4E2D\u8F6C\uFF09",profileNameRequired:"\u8BF7\u8F93\u5165\u914D\u7F6E\u540D\u79F0",deleteProfileConfirm:"\u786E\u5B9A\u8981\u5220\u9664\u5382\u5546\u914D\u7F6E\u201C{name}\u201D\u5417\uFF1F\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\u3002",atLeastOneProfile:"\u81F3\u5C11\u4FDD\u7559\u4E00\u4E2A\u5382\u5546\u914D\u7F6E",profileSwitched:"\u5DF2\u5207\u6362\u5230 {name}",profileCreated:"\u5DF2\u521B\u5EFA\u914D\u7F6E {name}",profileRenamed:"\u5DF2\u91CD\u547D\u540D\u4E3A {name}",profileDeleted:"\u5DF2\u5220\u9664\u914D\u7F6E {name}",profileCopySuffix:"\u526F\u672C",completionFeedbackTitle:"\u5B8C\u6210\u53CD\u9988",completionSound:"\u64AD\u653E\u63D0\u793A\u97F3\uFF08\u6210\u529F\u4E0E\u5931\u8D25\u97F3\u6548\u4E0D\u540C\uFF09",completionSoundHint:"\u6210\u529F\u65F6\u6E05\u8106\u4E09\u8FDE\u97F3\uFF08Do-Mi-Sol \u4E0A\u626C\uFF09\uFF0C\u5931\u8D25\u65F6\u4F4E\u6C89\u65B9\u6CE2\u53CC\u97F3\uFF1B\u7528\u6237\u4E3B\u52A8\u53D6\u6D88\u4E0D\u64AD\u653E",completionConfetti:"\u64AD\u653E\u5F69\u5E26\u52A8\u753B",completionConfettiHint:"\u4EC5\u5728\u56DE\u7B54\u6210\u529F\u5B8C\u6210\u65F6\u64AD\u653E\uFF1B\u5931\u8D25\u548C\u53D6\u6D88\u4E0D\u64AD\u653E",completionNotification:"\u4EFB\u52A1\u5B8C\u6210\u6216\u5931\u8D25\u65F6\u5F39\u51FA\u684C\u9762\u901A\u77E5",completionNotificationHint:"\u4EC5\u5728\u770B\u4E0D\u5230\u4FA7\u8FB9\u680F\u65F6\u5F39\u51FA\uFF1B\u6210\u529F\u81EA\u52A8\u6D88\u5931\uFF0C\u5931\u8D25\u505C\u7559\u81F3\u624B\u52A8\u5173\u95ED\uFF1B\u70B9\u51FB\u901A\u77E5\u6253\u5F00\u4FA7\u8FB9\u680F",scheduledNotification:"\u5B9A\u65F6\u4EFB\u52A1\u5B8C\u6210\u6216\u5931\u8D25\u65F6\u5F39\u51FA\u684C\u9762\u901A\u77E5",scheduledNotificationHint:"\u5B9A\u65F6\u4EFB\u52A1\u5728\u540E\u53F0\u6267\u884C\u3001\u65E0\u58F0\u97F3\u7B49\u5176\u4ED6\u63D0\u9192\u6E20\u9053\uFF0C\u5F00\u5173\u5F00\u542F\u65F6\u603B\u662F\u5F39\u51FA\uFF1B\u9ED8\u8BA4\u5F00\u542F\uFF0C\u53EF\u624B\u52A8\u5173\u95ED",interactionNotification:"AI \u9700\u8981\u4F60\u786E\u8BA4\u6216\u6F84\u6E05\u65F6\u63D0\u9192\u6211",interactionNotificationHint:"\u63A8\u7406\u5FAA\u73AF\u7B49\u5F85\u4F60\u64CD\u4F5C\u65F6\u5F39\u684C\u9762\u63D0\u9192\uFF1B\u4EC5\u5728\u770B\u5F97\u5230\u4FA7\u8FB9\u680F\u65F6\u4E0D\u6253\u6270\uFF0C\u70B9\u51FB\u901A\u77E5\u6253\u5F00\u4FA7\u8FB9\u680F",showMessageTimestamp:"\u663E\u793A\u6D88\u606F\u65F6\u95F4\u6233",showMessageTimestampHint:"\uFF08\u5728\u7528\u6237\u95EE\u9898\u6C14\u6CE1\u4E0B\u65B9\u663E\u793A\u53D1\u95EE\u65F6\u95F4\uFF0C\u4ECA\u5929\u663E\u793A\u65F6\u5206\uFF0C\u975E\u4ECA\u5929\u663E\u793A\u65E5\u671F\uFF09",sidePanelScopeTitle:"\u4FA7\u8FB9\u680F\u4F5C\u7528\u57DF",sidePanelScopeGlobal:"\u5168\u5C40\u6A21\u5F0F",sidePanelScopeTab:"\u6807\u7B7E\u9875\u7ED1\u5B9A\u6A21\u5F0F",sidePanelScopeGlobalHint:"\u540C\u4E00\u7A97\u53E3\u5185\u6240\u6709\u6807\u7B7E\u9875\u5171\u4EAB\u540C\u4E00\u4EFD\u4FA7\u8FB9\u680F\u5B9E\u4F8B\uFF0C\u5207\u6362\u6807\u7B7E\u9875\u65F6\u59CB\u7EC8\u53EF\u89C1",sidePanelScopeTabHint:"\u4FA7\u8FB9\u680F\u53EA\u5728\u6253\u5F00\u5B83\u7684\u6807\u7B7E\u9875\u663E\u793A\uFF1B\u53EF\u5728\u591A\u4E2A\u6807\u7B7E\u9875\u5404\u81EA\u6253\u5F00\uFF0C\u5207\u8D70\u81EA\u52A8\u9690\u85CF\u3001\u5207\u56DE\u81EA\u52A8\u6062\u590D",autoGroupTabs:"\u6807\u7B7E\u9875\u7ED1\u5B9A\u6A21\u5F0F\u4E0B\uFF0C\u628A\u6253\u5F00\u4FA7\u8FB9\u680F\u7684\u6807\u7B7E\u9875\u5F52\u5165\u5206\u7EC4",autoGroupTabsHint:"\u4EC5\u6807\u7B7E\u9875\u7ED1\u5B9A\u6A21\u5F0F\u751F\u6548\uFF1B\u628A\u8FD9\u4E9B\u6807\u7B7E\u9875\u5F52\u5165\u4E00\u4E2A\u5F69\u8272\u6807\u7B7E\u7EC4\u4FBF\u4E8E\u8BC6\u522B\uFF08\u6807\u7B7E\u9875\u4F1A\u88AB\u79FB\u52A8\u5230\u5206\u7EC4\u6240\u5728\u4F4D\u7F6E\uFF09\uFF0C\u5173\u95ED\u67D0\u4E2A\u6807\u7B7E\u9875\u7684\u4FA7\u8FB9\u680F\u6216\u5207\u56DE\u5168\u5C40\u6A21\u5F0F\u65F6\u4F1A\u79FB\u51FA\u5206\u7EC4"},header:{docTitle:"AI Helper - \u6A21\u578B\u95EE\u7B54",settingsTitle:"\u63D2\u4EF6\u8BBE\u7F6E",switchAgent:"\u5207\u6362\u52A9\u624B",defaultAssistant:"\u{1F916} \u9ED8\u8BA4\u52A9\u624B",notConnected:"\u672A\u8FDE\u63A5",agentAddress:"\u4EE3\u7406\u5730\u5740",copyAgentAddress:"\u590D\u5236\u4EE3\u7406\u5730\u5740",refreshAgentStatus:"\u5237\u65B0\u4EE3\u7406\u5728\u7EBF\u72B6\u6001",restart:"\u91CD\u542F",restartAgent:"\u91CD\u542F\u4EE3\u7406\u670D\u52A1",update:"\u66F4\u65B0",updateAndRestart:"\u66F4\u65B0\u5E76\u91CD\u542F\u4EE3\u7406",stop:"\u505C\u6B62",stopAgent:"\u505C\u6B62\u4EE3\u7406\u670D\u52A1",addEditAgent:"\u65B0\u589E/\u7F16\u8F91\u4EE3\u7406",addEditAssistant:"\u65B0\u589E/\u7F16\u8F91\u52A9\u624B",manageKnowledge:"\u7BA1\u7406\u77E5\u8BC6\u5E93",moreActions:"\u66F4\u591A\u64CD\u4F5C",clearChat:"\u6E05\u9664\u5BF9\u8BDD",exportChat:"\u5BFC\u51FA\u5BF9\u8BDD",importChat:"\u5BFC\u5165\u5BF9\u8BDD",prototypeLibrary:"\u539F\u578B\u9875\u9762\u5E93",tokenStats:"Token \u7EDF\u8BA1",auditLog:"\u547D\u4EE4\u6267\u884C\u5BA1\u8BA1",shortcuts:"\u67E5\u770B\u5FEB\u6377\u952E",versionInfo:"\u7248\u672C\u4FE1\u606F",detachTitle:"\u8131\u79BB\u4E3A\u72EC\u7ACB\u7A97\u53E3",attachTitle:"\u56DE\u5F52\u4FA7\u8FB9\u680F"},detach:{taskRunning:"\u4EFB\u52A1\u6267\u884C\u4E2D\uFF0C\u8BF7\u7B49\u5F85\u5B8C\u6210\u540E\u518D\u64CD\u4F5C"},session:{allSessions:"\u5168\u90E8\u4F1A\u8BDD",newSessionTitle:"\u65B0\u5EFA\u4F1A\u8BDD (Alt+N)",searchPlaceholder:"\u641C\u7D22\u4F1A\u8BDD...",closeAll:"\u5173\u95ED\u5168\u90E8",renameTitle:"\u91CD\u547D\u540D\u4F1A\u8BDD",renamePlaceholder:"\u8BF7\u8F93\u5165\u4F1A\u8BDD\u540D\u79F0",confirmCloseTitle:"\u786E\u8BA4\u5173\u95ED\u4F1A\u8BDD",confirmCloseMessage:"\u786E\u5B9A\u8981\u5173\u95ED\u8BE5\u4F1A\u8BDD\u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u64A4\u9500\u3002"},chat:{welcomeTitle:"\u5F00\u59CB\u5BF9\u8BDD",welcomeSubtitle:"\u8F93\u5165\u60A8\u7684\u95EE\u9898\uFF0CAI \u52A9\u624B\u5C06\u4E3A\u60A8\u89E3\u7B54",askBasedOnSelection:"\u57FA\u4E8E\u9009\u4E2D\u5185\u5BB9\u63D0\u95EE",confirmClearTitle:"\u786E\u8BA4\u6E05\u9664",confirmClearMessage:"\u786E\u5B9A\u8981\u6E05\u9664\u6240\u6709\u5BF9\u8BDD\u5386\u53F2\u5417\uFF1F",confirmDeletePromptTitle:"\u786E\u8BA4\u5220\u9664",confirmDeletePromptMessage:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u63D0\u793A\u8BCD\u5417\uFF1F",requestFailed:"\u8BF7\u6C42\u5931\u8D25: {message}",networkError:"\u7F51\u7EDC\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5",timeoutError:"\u8BF7\u6C42\u8D85\u65F6: {message}",taskInterruptedSwRestart:"\u540E\u53F0\u670D\u52A1\u5F02\u5E38\u91CD\u542F\uFF0CAPI \u8C03\u7528\u5DF2\u4E2D\u65AD",quote:"\u5F15\u7528",export:"\u5BFC\u51FA",quoteTitle:"\u5F15\u7528\u6B64\u6D88\u606F",quotedPrefix:"\u{1F4AC} \u5DF2\u5F15\u7528: {text}",navPrevTitle:"\u4E0A\u4E00\u6761\u6D88\u606F (Alt+\u2191)\uFF0CCtrl/Cmd+\u70B9\u51FB\u56DE\u5230\u6700\u9876\u7AEF",navNextTitle:"\u4E0B\u4E00\u6761\u6D88\u606F (Alt+\u2193)\uFF0CCtrl/Cmd+\u70B9\u51FB\u8DF3\u5230\u5E95\u7AEF",navQuestionTitle:"\u95EE\u9898\u5217\u8868",navEmptyLabel:"\u6682\u65E0\u95EE\u9898",navQuestionNoText:"(\u56FE\u7247/\u9644\u4EF6\u6D88\u606F)"},toolPanel:{title:"\u5DE5\u5177\u914D\u7F6E",searchPlaceholder:"\u641C\u7D22\u5DE5\u5177\u540D\u79F0\u6216\u63CF\u8FF0...",categoryAll:"\u5168\u90E8",preselect:"\u5DE5\u5177\u9884\u7B5B\u9009",preselectHint:`\u5F00\u542F\uFF1AAI \u5148\u5224\u65AD\u54EA\u4E9B\u5DE5\u5177\u53EF\u80FD\u7528\u5F97\u4E0A\uFF0C\u53EA\u4F20\u76F8\u5173\u5DE5\u5177\u3002\u597D\u5904\u662F Token \u7701\u4E86\uFF0C\u4F46\u4E07\u4E00\u5224\u65AD\u4E0D\u51C6\uFF0C\u6F0F\u6389\u4E86\u5173\u952E\u5DE5\u5177\uFF0C\u4EFB\u52A1\u53EF\u80FD\u505A\u4E0D\u597D
9
- \u5173\u95ED\uFF1A\u5168\u90E8\u542F\u7528\u7684\u5DE5\u5177\u4E00\u6B21\u6027\u7ED9\u6A21\u578B\u3002\u6CA1\u6709\u5224\u65AD\u5F00\u9500\uFF0C\u542F\u52A8\u66F4\u5FEB\uFF0C\u4F46\u5DE5\u5177\u592A\u591A\u4F1A\u6D6A\u8D39 Token`,clearSearch:"\u6E05\u9664\u641C\u7D22",configBtnTitle:"\u70B9\u51FB\u6253\u5F00\u5DE5\u5177\u8BE6\u7EC6\u914D\u7F6E"},toolStats:{title:"\u{1F4CA} \u5DE5\u5177\u4F7F\u7528\u7EDF\u8BA1",subtitle:"\u5404\u5DE5\u5177\u8C03\u7528\u9891\u7387\u3001\u6210\u529F\u7387\u3001\u5E73\u5747\u8017\u65F6",usedTools:"\u5DF2\u4F7F\u7528\u5DE5\u5177",calls:"\u8C03\u7528",success:"\u6210\u529F",successRate:"\u6210\u529F\u7387",avgDuration:"\u5E73\u5747\u8017\u65F6",unusedTools:"\u672A\u4F7F\u7528\u5DE5\u5177",noData:"\u6682\u65E0\u7EDF\u8BA1\u6570\u636E",btnTitle:"\u5DE5\u5177\u4F7F\u7528\u7EDF\u8BA1",clearTitle:"\u6E05\u7A7A\u7EDF\u8BA1"},tokenStatsPanel:{title:"\u{1FA99} Token \u4F7F\u7528\u7EDF\u8BA1",subtitle:"\u5355\u6B21\u95EE\u7B54 ReAct \u4F1A\u8BDD\u7EF4\u5EA6 & \u603B\u4F53\u7EF4\u5EA6",currentSession:"\u5F53\u524D\u4F1A\u8BDD",globalStats:"\u5168\u5C40\u7EDF\u8BA1",recentCalls:"\u8FD1\u671F\u8C03\u7528",noData:"\u6682\u65E0\u7EDF\u8BA1\u6570\u636E",tabTrend:"\u8D8B\u52BF",tabDistribution:"\u5206\u5E03",tabGlobal:"\u5168\u5C40",timeRangeToday:"\u4ECA\u65E5",timeRangeWeek:"\u672C\u5468",timeRangeMonth:"\u672C\u6708",timeRangeAll:"\u5168\u90E8",globalSparklineTitle:"\u6700\u8FD1 30 \u5929\u8D8B\u52BF"},customConfirm:{defaultTitle:"\u786E\u8BA4\u64CD\u4F5C"},promptDialog:{title:"\u63D0\u793A"},promptManager:{title:"\u63D0\u793A\u8BCD\u7BA1\u7406",codePlaceholder:"\u7F16\u7801\uFF08\u5982: code\uFF09",contentPlaceholder:"\u63D0\u793A\u8BCD\u5185\u5BB9",addPrompt:"\u6DFB\u52A0\u63D0\u793A\u8BCD"},clarify:{title:"\u9700\u8981\u60A8\u7684\u6F84\u6E05",selectOption:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u9009\u9879",inputPlaceholder:"\u8BF7\u8F93\u5165\u8865\u5145\u4FE1\u606F\uFF08\u53EF\u9009\uFF09...",customPlaceholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u81EA\u5B9A\u4E49\u5185\u5BB9...",additionalTitle:"\u8865\u5145\u8BF4\u660E\uFF08\u53EF\u9009\uFF09",additionalHint:"\u5982\u679C\u60A8\u6709\u66F4\u591A\u76F8\u5173\u4FE1\u606F\uFF0C\u53EF\u4EE5\u5728\u6B64\u8865\u5145\u8BF4\u660E",remainingTime:"\u5269\u4F59\u65F6\u95F4: 3:00"},prototype:{previewTitle:"UI \u539F\u578B\u9884\u89C8",continueOptimize:"\u{1F4A1} \u7EE7\u7EED\u4F18\u5316",libraryTitle:"\u{1F3A8} \u539F\u578B\u9875\u9762\u5E93",searchPlaceholder:"\u641C\u7D22\u539F\u578B...",sortTimeNew:"\u65F6\u95F4 (\u65B0\u2192\u65E7)",sortTimeOld:"\u65F6\u95F4 (\u65E7\u2192\u65B0)",sortTitleAz:"\u6807\u9898 (A\u2192Z)",sortTitleZa:"\u6807\u9898 (Z\u2192A)",empty:"\u6682\u65E0\u539F\u578B",zoomOut:"\u7F29\u5C0F (Ctrl+\u6EDA\u8F6E)",zoomReset:"\u70B9\u51FB\u91CD\u7F6E",resetZoom:"\u70B9\u51FB\u91CD\u7F6E",zoomIn:"\u653E\u5927 (Ctrl+\u6EDA\u8F6E)",download:"\u4E0B\u8F7D",openInTab:"\u65B0\u6807\u7B7E\u9875\u6253\u5F00",openInNewTab:"\u65B0\u6807\u7B7E\u9875\u6253\u5F00",openLocal:"\u672C\u5730\u6D4F\u89C8\u5668\u6253\u5F00"},shortcuts:{title:"\u2328\uFE0F \u5FEB\u6377\u952E",sendMessage:"\u53D1\u9001\u6D88\u606F",newLine:"\u6362\u884C",inputHistory:"\u8F93\u5165\u5386\u53F2\uFF08\u8F93\u5165\u6846\u5185\uFF09",clearInput:"\u6E05\u7A7A\u8F93\u5165\u6846",keyColumn:"\u5FEB\u6377\u952E",functionColumn:"\u529F\u80FD",platformColumn:"\u5E73\u53F0",platformWinMac:"Win / Mac",prevMessage:"\u8DF3\u8F6C\u5230\u4E0A\u4E00\u6761\u6D88\u606F",nextMessage:"\u8DF3\u8F6C\u5230\u4E0B\u4E00\u6761\u6D88\u606F",colShortcut:"\u5FEB\u6377\u952E",colFunction:"\u529F\u80FD",colPlatform:"\u5E73\u53F0",gotoPrev:"\u8DF3\u8F6C\u5230\u4E0A\u4E00\u6761\u6D88\u606F",gotoNext:"\u8DF3\u8F6C\u5230\u4E0B\u4E00\u6761\u6D88\u606F",scrollTop:"\u56DE\u5230\u5BF9\u8BDD\u9876\u90E8",scrollBottom:"\u8DF3\u5230\u5BF9\u8BDD\u5E95\u90E8",fullScreenshot:"\u5168\u9875\u9762\u622A\u56FE",areaScreenshot:"\u533A\u57DF\u622A\u56FE",regionScreenshot:"\u533A\u57DF\u622A\u56FE",toggleToolConfig:"\u6253\u5F00/\u5173\u95ED\u5DE5\u5177\u914D\u7F6E",openShortcutsPanel:"\u6253\u5F00\u5FEB\u6377\u952E\u9762\u677F",openShortcutPanel:"\u6253\u5F00\u5FEB\u6377\u952E\u9762\u677F",newSession:"\u65B0\u5EFA\u4F1A\u8BDD",closeSession:"\u5173\u95ED\u5F53\u524D\u4F1A\u8BDD",closeCurrentSession:"\u5173\u95ED\u5F53\u524D\u4F1A\u8BDD",editLastMessage:"\u7F16\u8F91\u6700\u8FD1\u4E00\u6761\u7528\u6237\u6D88\u606F"},versionInfo:{title:"\u2139\uFE0F \u7248\u672C\u4FE1\u606F",version:"\u7248\u672C\u53F7",tag:"Git Tag",commit:"Git \u63D0\u4EA4",publishedAt:"\u53D1\u5E03\u65F6\u95F4",website:"\u5B98\u7F51",discussions:"\u8BA8\u8BBA\u9891\u9053",reportIssue:"\u4E0A\u62A5\u95EE\u9898",githubRepo:"GitHub \u4ED3\u5E93",giteeRepo:"Gitee \u4ED3\u5E93",copy:"\u590D\u5236\u4FE1\u606F"},imageEditor:{editImage:"\u7F16\u8F91\u56FE\u7247",brush:"\u753B\u7B14 (B)",rect:"\u77E9\u5F62 (R)",ellipse:"\u692D\u5706 (E)",arrow:"\u7BAD\u5934 (A)",line:"\u76F4\u7EBF (L)",undo:"\u64A4\u9500 (Ctrl+Z)",confirm:"\u786E\u8BA4 (Enter)",cancel:"\u53D6\u6D88 (Esc)",downloadImage:"\u4E0B\u8F7D\u56FE\u7247",prev:"\u4E0A\u4E00\u5F20",next:"\u4E0B\u4E00\u5F20",prevImage:"\u4E0A\u4E00\u5F20",nextImage:"\u4E0B\u4E00\u5F20",brushSize:"\u753B\u7B14\u7C97\u7EC6",eraser:"\u6A61\u76AE\u64E6"},chatExport:{selectCurrentOnly:"\u4EC5\u9009\u5F53\u524D",selectedCount:"\u5DF2\u9009 {count} \u4E2A",exportSelected:"\u5BFC\u51FA\u9009\u4E2D",title:"\u5BFC\u51FA\u4F1A\u8BDD",exportSessions:"\u5BFC\u51FA\u4F1A\u8BDD"},agentEditor:{createNew:"\u521B\u5EFA\u65B0\u52A9\u624B",namePlaceholder:"\u52A9\u624B\u540D\u79F0",icon:"\u56FE\u6807",descPlaceholder:"\u8FD9\u4E2A\u52A9\u624B\u64C5\u957F\u4EC0\u4E48\uFF1F",templateQuickCreate:"\u6A21\u677F\u5FEB\u901F\u521B\u5EFA",promptPlaceholder:"\u4F60\u662F\u4E00\u4E2A\u4E13\u4E1A\u7684...",availableTools:"\u53EF\u7528\u5DE5\u5177",availableSkills:"\u53EF\u7528\u6280\u80FD",modelSettings:"\u6A21\u578B\u8BBE\u7F6E\uFF08\u7559\u7A7A\u5219\u4F7F\u7528\u5168\u5C40\u8BBE\u7F6E\uFF09",modelPlaceholder:"\u9009\u62E9\u6216\u8F93\u5165\u6A21\u578B\u540D\u79F0",allowSubAgent:"\u5141\u8BB8\u4F5C\u4E3A\u5B50\u52A9\u624B\u88AB\u8C03\u5EA6",name:"\u540D\u79F0",desc:"\u7B80\u77ED\u63CF\u8FF0",nameLabel:"\u540D\u79F0",descLabel:"\u7B80\u77ED\u63CF\u8FF0",selectTemplate:"-- \u9009\u62E9\u6A21\u677F\uFF08\u53EF\u9009\uFF09 --",systemPrompt:"\u7CFB\u7EDF\u63D0\u793A\u8BCD\uFF08\u5B9A\u4E49\u52A9\u624B\u7684\u89D2\u8272\u548C\u80FD\u529B\uFF09",inheritGlobalToolsHint:"\uFF08\u4E0D\u52FE\u9009\u5219\u7EE7\u627F\u5168\u5C40\u5DE5\u5177\u8BBE\u7F6E\uFF09",inheritGlobalSkillsHint:"\uFF08\u4E0D\u52FE\u9009\u5219\u4F7F\u7528\u5168\u90E8\u542F\u7528\u6280\u80FD\uFF09",toolsInheritGlobal:"\uFF08\u4E0D\u52FE\u9009\u5219\u7EE7\u627F\u5168\u5C40\u5DE5\u5177\u8BBE\u7F6E\uFF09",skillsInheritAll:"\uFF08\u4E0D\u52FE\u9009\u5219\u4F7F\u7528\u5168\u90E8\u542F\u7528\u6280\u80FD\uFF09",noSetting:"\u4E0D\u8BBE\u7F6E\uFF08\u4F7F\u7528\u5168\u5C40\uFF09",noPreset:"\u4E0D\u8BBE\u7F6E\uFF08\u4F7F\u7528\u5168\u5C40\uFF09",deleteTitle:"\u5220\u9664\u6B64\u52A9\u624B",deleteAgentTitle:"\u5220\u9664\u6B64\u52A9\u624B"},auditLog:{title:"\u{1F4CB} \u547D\u4EE4\u6267\u884C\u5BA1\u8BA1",filterAll:"\u5168\u90E8",filterCommand:"\u547D\u4EE4\u6267\u884C",filterFile:"\u6587\u4EF6\u64CD\u4F5C",filterAuth:"\u8BA4\u8BC1",filterSecurity:"\u5B89\u5168",filterSystem:"\u7CFB\u7EDF",recent50:"\u6700\u8FD150\u6761",recent100:"\u6700\u8FD1100\u6761",recent200:"\u6700\u8FD1200\u6761",recent500:"\u6700\u8FD1500\u6761",searchPlaceholder:"\u641C\u7D22\u64CD\u4F5C\u540D\u3001\u547D\u4EE4\u6216\u8DEF\u5F84...",categoryFilter:"\u5206\u7C7B\u7B5B\u9009:",countLabel:"\u6761\u6570:",clearSearch:"\u6E05\u9664",empty:"\u6682\u65E0\u5BA1\u8BA1\u65E5\u5FD7",noLogs:"\u6682\u65E0\u5BA1\u8BA1\u65E5\u5FD7",defaultRange:"\u9ED8\u8BA4\u67E5\u8BE2\u6700\u8FD17\u5929\u7684\u5BA1\u8BA1\u65E5\u5FD7"},input:{atHint:"\u63D0\u793A\u8BCD (\u5355\u51FB) / \u7F51\u9875 (Ctrl/Cmd+\u5355\u51FB)",placeholder:"\u8F93\u5165'/'\u5FEB\u6377\u63D0\u793A\u3001'@'\u5207\u6362\u52A9\u624B\u6216\u7F51\u9875\u3001'$'\u9009\u62E9\u5DE5\u4F5C\u76EE\u5F55\u6587\u4EF6\u3001'\u2191\u2193'\u5207\u6362\u5386\u53F2\u8F93\u5165\u3001Esc\u6E05\u7A7A",send:"\u53D1\u9001",clearSelection:"\u53D6\u6D88\u9009\u4E2D\u5185\u5BB9",pageLabel:"\u{1F310} \u7F51\u9875",clearPage:"\u53D6\u6D88\u7F51\u9875",mcpLabel:"\u{1F50C} MCP",clearMcp:"\u53D6\u6D88MCP\u670D\u52A1",skillLabel:"\u{1F9E9} \u6280\u80FD",clearSkill:"\u53D6\u6D88\u6280\u80FD",screenshotTitle:"\u622A\u53D6\u5F53\u524D\u9875\u9762\uFF08Ctrl/Shift+\u70B9\u51FB\u53EF\u533A\u57DF\u622A\u56FE\uFF09",attachFileTitle:"\u4E0A\u4F20\u6587\u4EF6\uFF08PDF/Word/Excel/\u6587\u672C\uFF09",screenshot:"\u622A\u53D6\u5F53\u524D\u9875\u9762\uFF08Ctrl/Shift+\u70B9\u51FB\u53EF\u533A\u57DF\u622A\u56FE\uFF09",uploadFile:"\u4E0A\u4F20\u6587\u4EF6\uFF08PDF/Word/Excel/\u6587\u672C\uFF09",aiDisclaimer:"\u5185\u5BB9\u7531 AI \u751F\u6210\uFF0C\u4EC5\u4F9B\u53C2\u8003"},model:{selectModel:"\u9009\u62E9\u6A21\u578B",temperature:"\u6E29\u5EA6"},sectionSelect:{searchPlaceholder:"\u8F93\u5165\u5173\u952E\u5B57\u8FC7\u6EE4\u2026",noMatch:"\u65E0\u5339\u914D\u9879"},provider:{label:"API \u5382\u5546",manage:"\u7BA1\u7406\u5382\u5546\u914D\u7F6E"},promptSelector:{prompts:"\u63D0\u793A\u8BCD",skills:"\u6280\u80FD",pages:"\u7F51\u9875",agents:"\u52A9\u624B",proxies:"\u4EE3\u7406",knowledge:"\u77E5\u8BC6\u5E93",pagesCount:"\u7F51\u9875 ({count})",agentsCount:"\u52A9\u624B ({count})",proxiesCount:"\u4EE3\u7406 ({count})",knowledgeCount:"\u77E5\u8BC6\u5E93 ({count})",headerHint:"\u65B9\u5411\u952E\u5207\u6362 \xB7 Enter\u53D1\u9001 \xB7 Ctrl+Enter\u5E26\u5165\u6587\u672C\u6846",agentHeaderHint:"\u65B9\u5411\u952E\u5207\u6362 \xB7 Enter\u9009\u62E9 \xB7 Esc\u53D6\u6D88",switchHint:"\u65B9\u5411\u952E\u5207\u6362 \xB7 Enter\u53D1\u9001 \xB7 Ctrl+Enter\u5E26\u5165\u6587\u672C\u6846",switchHintSelect:"\u65B9\u5411\u952E\u5207\u6362 \xB7 Enter\u9009\u62E9 \xB7 Ctrl+Enter\u9009\u4E2D\u5E76\u5173\u95ED \xB7 Esc\u53D6\u6D88",mergedTitle:"\u805A\u5408\u641C\u7D22",mergedTitleCount:"\u805A\u5408\u641C\u7D22 ({count})"},memory:{label:"\u8BB0\u5FC6",historyLimit:"\u8BB0\u5FC6\u5386\u53F2\u9650\u5236",hint:"\u8BB0\u5FC6\u8D8A\u591A\uFF0C\u4E0A\u4E0B\u6587\u8D8A\u8FDE\u8D2F\uFF0C\u4F46 token \u6D88\u8017\u4E5F\u8D8A\u5927\uFF1B\u8BB0\u5FC6\u592A\u5C11\uFF0C\u5219\u53EF\u80FD\u65E0\u6CD5\u7ED3\u5408\u524D\u6587\u51C6\u786E\u56DE\u7B54\u3002",unlimited:"\u4E0D\u9650\u5236",recent200:"\u6700\u8FD1200\u6761",recent100:"\u6700\u8FD1100\u6761",recent50:"\u6700\u8FD150\u6761",recent20:"\u6700\u8FD120\u6761",recent10:"\u6700\u8FD110\u6761",recent5:"\u6700\u8FD15\u6761",recent2:"\u6700\u8FD12\u6761",custom:"\u81EA\u5B9A\u4E49:",unit:"\u6761"},toggle:{memoryHint:"\u5F00\u542F\u540E\uFF0C\u524D\u6587\u95EE\u7B54\u5C06\u4F5C\u4E3A\u4E0A\u4E0B\u6587\uFF08\u9ED8\u8BA4\u5168\u90E8\uFF0C\u6761\u6570\u53EF\u914D\u7F6E\uFF09",toolsHint:"\u5DE5\u5177\u603B\u5F00\u5173\uFF1A\u70B9\u51FB\u5F00\u542F\u6216\u5173\u95ED\u5DE5\u5177\u8C03\u7528",selectionHint:"\u5F00\u542F\u540E\uFF0C\u5212\u8BCD\u9009\u4E2D\u5185\u5BB9\u65F6\u53EF\u5FEB\u901F\u63D0\u95EE",tools:"\u5DE5\u5177",selection:"\u5212\u8BCD",modelSettings:"\u6A21\u578B\u8BBE\u7F6E",toolsConfigTitle:"\u70B9\u51FB\u6253\u5F00\u5DE5\u5177\u8BE6\u7EC6\u914D\u7F6E"},selection:{clearSelection:"\u53D6\u6D88\u9009\u4E2D\u5185\u5BB9",page:"\u{1F310} \u7F51\u9875",clearPage:"\u53D6\u6D88\u7F51\u9875",clearMcp:"\u53D6\u6D88MCP\u670D\u52A1",skill:"\u{1F9E9} \u6280\u80FD",clearSkill:"\u53D6\u6D88\u6280\u80FD"},toolCategory:{page_interaction:"\u{1F5B1}\uFE0F \u9875\u9762\u4EA4\u4E92",form_operation:"\u{1F4DD} \u8868\u5355\u64CD\u4F5C",content_extraction:"\u{1F4C4} \u5185\u5BB9\u63D0\u53D6",tab_management:"\u{1F4D1} \u6807\u7B7E\u9875\u7BA1\u7406",bookmark_history:"\u{1F516} \u4E66\u7B7E\u5386\u53F2",storage_management:"\u{1F4BE} \u5B58\u50A8\u7BA1\u7406",network_request:"\u{1F310} \u7F51\u7EDC\u8BF7\u6C42",media_output:"\u{1F4F7} \u5A92\u4F53\u4E0E\u8F93\u51FA",debug_dev:"\u{1F527} \u8C03\u8BD5\u5F00\u53D1",ai_collaboration:"\u{1F916} AI\u534F\u4F5C",local_agent:"\u{1F5A5}\uFE0F \u4EE3\u7406",mcp:"\u{1F50C} MCP",knowledge:"\u{1F4DA} \u77E5\u8BC6\u5E93"},presetMode:{preciseLabel:"\u7CBE\u51C6\u4E25\u8C28",preciseTip:"\u6539\u9519\u3001\u8C03\u8BD5\u3001\u8981\u51C6\u786E\u7B54\u6848\uFF08\u4F4E\u968F\u673A\u6027\uFF0C\u9002\u5408\u4FEE bug\uFF09",generalLabel:"\u65E5\u5E38\u901A\u7528",generalTip:"\u591A\u6570\u573A\u666F\u90FD\u597D\u7528\uFF08\u5E73\u8861\u7A33\u5B9A\u4E0E\u7075\u6D3B\uFF0C\u9002\u5408\u5199\u811A\u672C\uFF09",divergentLabel:"\u601D\u8DEF\u53D1\u6563",divergentTip:"\u8981\u591A\u79CD\u65B9\u6848\u505A\u5BF9\u6BD4\uFF08\u9002\u5408\u91CD\u6784\u3001\u65B9\u6848\u5BF9\u6BD4\uFF09",creativeLabel:"\u521B\u610F\u8111\u66B4",creativeTip:"\u5199\u6587\u6848\u3001\u8D77\u540D\u3001\u5934\u8111\u98CE\u66B4\uFF08\u9AD8\u968F\u673A\u6027\uFF0C\u4E0D\u5EFA\u8BAE\u6B63\u5F0F\u4EE3\u7801\uFF09"},tool:{agent_file:"\u4EE3\u7406\u672C\u5730\u6587\u4EF6\u64CD\u4F5C\uFF08\u8BFB\u53D6/\u5199\u5165/\u5217\u8868/\u5220\u9664/\u4E0B\u8F7D\uFF09",agent_trash:"\u7BA1\u7406\u4EE3\u7406\u56DE\u6536\u7AD9\uFF08\u67E5\u770B/\u6062\u590D\u5DF2\u5220\u9664\u9879\uFF09",agent_exec:"\u5728\u4EE3\u7406\u673A\u5668\u4E0A\u6267\u884C Shell \u547D\u4EE4",agent_search:"\u5728\u4EE3\u7406\u673A\u5668\u4E0A\u641C\u7D22\u6587\u4EF6\u6216\u6587\u4EF6\u5185\u5BB9",agent_skill:"\u52A0\u8F7D\u6216\u8FD0\u884C Skill\uFF08run=\u5DE5\u4F5C\u6D41\uFF0Cload=Agent Skill\uFF09",manage_agent:"\u67E5\u770B\u6216\u5207\u6362\u5DF2\u914D\u5BF9\u7684 AI \u4EE3\u7406",exec_log:"\u63D0\u53D6\u6267\u884C\u65E5\u5FD7\uFF0C\u5206\u6790\u6210\u529F\u8DEF\u5F84\u4E0E\u5931\u8D25\u6559\u8BAD",clarify_question:"\u5411\u7528\u6237\u63D0\u95EE\u6F84\u6E05\uFF0C\u63D0\u4F9B\u9009\u9879\u4F9B\u9009\u62E9",highlight_text:"\u5728\u9875\u9762\u4E0A\u9AD8\u4EAE\u6587\u672C\uFF0C\u7528\u4E8E\u89C6\u89C9\u5F3A\u8C03",plan_task:"\u5C06\u590D\u6742\u4EFB\u52A1\u89C4\u5212\u62C6\u89E3\u4E3A\u5B50\u4EFB\u52A1",search_chats:"\u641C\u7D22\u5386\u53F2\u5BF9\u8BDD\u8BB0\u5F55",preview_ui:"\u9884\u89C8\u6216\u83B7\u53D6 UI \u539F\u578B",dispatch_task:"\u5411\u5B50\u4EE3\u7406\u6D3E\u53D1\u4EFB\u52A1",interact_element:"\u70B9\u51FB\u6216\u60AC\u505C\u9875\u9762\u5143\u7D20\uFF08\u901A\u8FC7 ref/\u6587\u672C/\u9009\u62E9\u5668\u5B9A\u4F4D\uFF09",scroll_to:"\u6EDA\u52A8\u9875\u9762\u5230\u76EE\u6807\u4F4D\u7F6E\uFF08\u5143\u7D20/\u5750\u6807/\u6587\u672C\uFF09",wait_element:"\u7B49\u5F85\u5143\u7D20\u51FA\u73B0/\u6D88\u5931/\u53EF\u89C1\u6027\u53D8\u5316",drag_drop:"\u62D6\u62FD\u5143\u7D20\uFF08\u26A0\uFE0F \u8BD5\u9A8C\u6027\uFF0C\u591A\u6570\u9875\u9762\u53EF\u80FD\u65E0\u6548\uFF09",wait_navigation:"\u7B49\u5F85\u9875\u9762\u5BFC\u822A\u5B8C\u6210",handle_dialog:"\u5904\u7406\u9875\u9762\u5F39\u7A97\uFF08\u81EA\u52A8\u786E\u8BA4/\u53D6\u6D88/\u6062\u590D alert/confirm/prompt\uFF09",fill_form:"\u6279\u91CF\u586B\u5199\u591A\u4E2A\u8868\u5355\u5B57\u6BB5",keyboard_input:"\u8F93\u5165\u6587\u672C\u6216\u6D3E\u53D1\u6309\u952E\u4E8B\u4EF6\uFF08\u53EF\u7ED5\u8FC7 React/Vue \u53D7\u63A7\u7EC4\u4EF6\uFF09",file_upload:"\u4E0A\u4F20\u6587\u4EF6\u5230\u9875\u9762",select_dropdown:"\u4E0B\u62C9\u6846\u9009\u62E9\uFF08\u652F\u6301\u81EA\u5B9A\u4E49\u7EC4\u4EF6\uFF09",page_content:"\u83B7\u53D6\u9875\u9762\u6587\u672C\u6216 HTML \u5185\u5BB9",extract_data:"\u63D0\u53D6\u7ED3\u6784\u5316\u6570\u636E\uFF08\u8868\u683C/\u94FE\u63A5/\u56FE\u7247/\u8868\u5355/\u5143\u4FE1\u606F\uFF09",query_elements:"\u67E5\u8BE2\u53EF\u4EA4\u4E92\u5143\u7D20\uFF0C\u8FD4\u56DE ref \u7F16\u53F7\u7528\u4E8E\u540E\u7EED\u64CD\u4F5C",search_in_page:"\u5728\u5F53\u524D\u9875\u9762\u4E2D\u67E5\u627E\u6587\u672C",iframe_content:"\u83B7\u53D6\u9875\u9762\u4E2D iframe \u7684\u5185\u5BB9",scroll_collect:"\u6EDA\u52A8\u5E76\u6536\u96C6\u5185\u5BB9\uFF0C\u9002\u7528\u4E8E\u65E0\u9650\u6EDA\u52A8/\u61D2\u52A0\u8F7D\u9875\u9762",notify:"\u663E\u793A\u6D4F\u89C8\u5668\u901A\u77E5",clipboard:"\u526A\u8D34\u677F\u64CD\u4F5C\uFF08\u590D\u5236/\u7C98\u8D34/\u83B7\u53D6\u9009\u4E2D\u6587\u672C\uFF09",download_file:"\u4E0B\u8F7D\u6587\u4EF6\u5230\u672C\u5730",qrcode:"\u751F\u6210\u4E8C\u7EF4\u7801",capture_page:"\u622A\u53D6\u9875\u9762\u622A\u56FE\uFF08\u4E0B\u8F7D/\u5206\u6790/\u4E24\u8005\uFF09",browser_info:"\u83B7\u53D6\u6D4F\u89C8\u5668\u7248\u672C\u548C\u73AF\u5883\u4FE1\u606F",inject_css:"\u5411\u9875\u9762\u6CE8\u5165\u81EA\u5B9A\u4E49 CSS",agent_memory:"\u957F\u671F\u8BB0\u5FC6\u7BA1\u7406\uFF08\u5B58\u50A8/\u56DE\u5FC6/\u7EF4\u62A4\uFF09",manage_storage:"\u8BFB\u5199\u6D4F\u89C8\u5668 localStorage \u6216 sessionStorage",manage_cookies:"\u83B7\u53D6/\u8BBE\u7F6E/\u5220\u9664/\u5217\u51FA\u6D4F\u89C8\u5668 Cookie",clear_data:"\u6E05\u9664\u7AD9\u70B9\u7684 localStorage/sessionStorage",fetch_url:"\u5411\u6307\u5B9A URL \u53D1\u9001 HTTP GET/POST \u8BF7\u6C42",manage_tab:"\u7BA1\u7406\u6D4F\u89C8\u5668\u6807\u7B7E\u9875\uFF08\u6253\u5F00/\u5207\u6362/\u5173\u95ED/\u5237\u65B0/\u524D\u8FDB\u540E\u9000\uFF09",list_tabs:"\u83B7\u53D6\u5DF2\u6253\u5F00\u7684\u6807\u7B7E\u9875\u5217\u8868",search_browser_data:"\u641C\u7D22\u6D4F\u89C8\u5668\u4E66\u7B7E\u6216\u8BBF\u95EE\u5386\u53F2",debug_page:"\u9AD8\u7EA7\u9875\u9762\u8C03\u8BD5\uFF08CDP\uFF09\uFF1A\u539F\u751F\u8F93\u5165\u4E8B\u4EF6\u3001\u7F51\u7EDC\u6293\u5305\u3001\u6267\u884C JS\u3001\u6574\u9875/\u5143\u7D20\u622A\u56FE\u3001\u8BBE\u5907\u4E0E UA \u6A21\u62DF",knowledge_search:"\u68C0\u7D22\u77E5\u8BC6\u5E93\u83B7\u53D6\u76F8\u5173\u5185\u5BB9\uFF08\u53EA\u8BFB\uFF09",knowledge_ingest:"\u5C06\u6587\u672C/\u672C\u5730\u6587\u4EF6/\u7F51\u9875\u5BFC\u5165\u77E5\u8BC6\u5E93\uFF08\u5199\u5165\u64CD\u4F5C\uFF09",knowledge_list:"\u5217\u51FA\u53EF\u7528\u77E5\u8BC6\u5E93\u53CA\u5176\u6587\u6863\u6570\u91CF"},react:{title:"\u2699\uFE0F \u63A8\u7406\u5FAA\u73AF\u914D\u7F6E",subtitle:"\u63A7\u5236 AI \u63A8\u7406\u5FAA\u73AF\u7684\u884C\u4E3A\u53C2\u6570\uFF08\u9AD8\u7EA7\u914D\u7F6E\uFF09",maxIterations:"\u6700\u5927\u5FAA\u73AF\u6B21\u6570",maxIterationsHint:"\uFF08\u590D\u6742\u4EFB\u52A1\u53EF\u9002\u5F53\u589E\u52A0\uFF09",min:"\u6700\u5C0F: 10",max:"\u6700\u5927: 1000",apiTimeout:"API \u8BF7\u6C42\u8D85\u65F6",apiTimeoutHint:"\uFF08\u5355\u6B21 API \u8C03\u7528\u7684\u6700\u957F\u7B49\u5F85\u65F6\u95F4\uFF09",unitMinute:"\u5206\u949F (min)",min1Minute:"\u6700\u5C0F: 1\u5206\u949F",max10Minutes:"\u6700\u5927: 10\u5206\u949F",max120Minutes:"\u6700\u5927: 120\u5206\u949F",max30Minutes:"\u6700\u5927: 30\u5206\u949F",loopTimeout:"\u6574\u4F53\u5FAA\u73AF\u8D85\u65F6",loopTimeoutHint:"\uFF08\u6574\u4E2A\u63A8\u7406\u5FAA\u73AF\u7684\u6700\u957F\u6267\u884C\u65F6\u95F4\uFF09",toolTimeout:"\u5DE5\u5177\u6267\u884C\u8D85\u65F6",toolTimeoutHint:"\uFF08\u5355\u4E2A\u5DE5\u5177\u6267\u884C\u7684\u6700\u957F\u7B49\u5F85\u65F6\u95F4\uFF09",toolConfirmation:"\u654F\u611F\u64CD\u4F5C\u786E\u8BA4",toolConfirmationHint:"\uFF08\u6A21\u578B\u6267\u884C\u654F\u611F\u64CD\u4F5C\u65F6\uFF0C\u5F39\u7A97\u786E\u8BA4\u540E\u518D\u6267\u884C\uFF09",enabled:"\u5DF2\u542F\u7528",disabled:"\u5DF2\u505C\u7528",toolConfirmationDesc1:"\u542F\u7528\u540E\uFF0C\u5F53\u6A21\u578B\u6267\u884C\u654F\u611F\u64CD\u4F5C\uFF08\u5DE5\u5177\u8C03\u7528\u3001\u547D\u4EE4\u6267\u884C\u7B49\uFF09\u65F6\uFF0C\u4F1A\u5F39\u51FA\u786E\u8BA4\u6846\u7B49\u5F85\u7528\u6237\u786E\u8BA4\u3002",toolConfirmationDesc2:"\u5173\u95ED\u540E\uFF0C\u6240\u6709\u64CD\u4F5C\u5C06\u76F4\u63A5\u653E\u884C\u6267\u884C\uFF0C\u65E0\u9700\u786E\u8BA4\u3002",enableExecutionLog:"\u542F\u7528\u6267\u884C\u65E5\u5FD7",enableExecutionLogHint:"\uFF08\u663E\u793A API \u8C03\u7528\u548C\u5DE5\u5177\u6267\u884C\u7684\u8BE6\u7EC6\u65E5\u5FD7\uFF0C\u5E2E\u52A9\u8C03\u8BD5\u548C\u7406\u89E3 AI \u601D\u8003\u8FC7\u7A0B\uFF09",enableExecutionLogDesc1:'\u542F\u7528\u540E\uFF0C\u6D88\u606F\u5E95\u90E8\u4F1A\u663E\u793A"\u6267\u884C\u65E5\u5FD7"\u6309\u94AE\uFF0C\u70B9\u51FB\u53EF\u67E5\u770B API \u8C03\u7528\u548C\u5DE5\u5177\u6267\u884C\u7684\u8BE6\u7EC6\u8FC7\u7A0B\u3002',enableExecutionLogDesc2:"\u5173\u95ED\u540E\uFF0C\u6D88\u606F\u5E95\u90E8\u4E0D\u518D\u663E\u793A\u8BE5\u6309\u94AE\u3002",streaming:"\u6D41\u5F0F\u8F93\u51FA",streamingHint:"\uFF08\u5F00\u542F\u540E AI \u56DE\u590D\u4F1A\u5B9E\u65F6\u9010\u5B57\u663E\u793A\uFF0C\u63D0\u4F9B\u66F4\u5FEB\u7684\u53CD\u9988\u611F\u77E5\uFF09",streamingDesc1:"\u5F00\u542F\u540E AI \u56DE\u590D\u4F1A\u5B9E\u65F6\u9010\u5B57\u663E\u793A\uFF0C\u4EE3\u7406\u7AEF\u547D\u4EE4\u6267\u884C\u65F6\u4E5F\u4F1A\u5B9E\u65F6\u8F93\u51FA\uFF0C\u63D0\u4F9B\u66F4\u5FEB\u7684\u53CD\u9988\u611F\u77E5\u3002",streamingDesc2:"\u5982\u679C\u9047\u5230\u517C\u5BB9\u6027\u95EE\u9898\uFF0C\u53EF\u5173\u95ED\u6B64\u5F00\u5173\u56DE\u9000\u5230\u4E00\u6B21\u6027\u8F93\u51FA\u6A21\u5F0F\u3002",streamExpandTools:"\u6D41\u5F0F\u5DE5\u5177\u5361\u7247\u9ED8\u8BA4\u5C55\u5F00",streamExpandToolsHint:"\uFF08\u5173\u95ED\u5219\u5DE5\u5177\u5361\u7247\u9ED8\u8BA4\u6298\u53E0\uFF0C\u4EC5\u663E\u793A\u6807\u9898\u4E0E\u72B6\u6001\uFF0C\u70B9\u51FB\u53EF\u5C55\u5F00\u8BE6\u60C5\uFF09",configGuide:"\u{1F4A1} \u914D\u7F6E\u8BF4\u660E",guideReasoningLoop:"\u63A8\u7406\u5FAA\u73AF",guideReasoningLoopDesc:"\u662F AI \u52A9\u624B\u8FDB\u884C\u591A\u6B65\u63A8\u7406\u548C\u5DE5\u5177\u8C03\u7528\u7684\u6838\u5FC3\u673A\u5236\u3002",guideLoopCount:"\u5FAA\u73AF\u6B21\u6570",guideLoopCountDesc:"\uFF1A\u51B3\u5B9A AI \u53EF\u4EE5\u8FDB\u884C\u591A\u5C11\u8F6E\u63A8\u7406-\u884C\u52A8\u5FAA\u73AF",guideTimeout:"\u8D85\u65F6\u8BBE\u7F6E",guideTimeoutDesc:"\uFF1A\u9632\u6B62\u957F\u65F6\u95F4\u7B49\u5F85\u6216\u65E0\u9650\u5FAA\u73AF",guideClarifyWait:"\u6F84\u6E05\u7B49\u5F85",guideClarifyWaitDesc:"\uFF1A\u7528\u6237\u6F84\u6E05\u65F6\u95F4\u4E0D\u8BA1\u5165\u6574\u4F53\u5FAA\u73AF\u8D85\u65F6\uFF08\u6682\u505C\u8BA1\u65F6\uFF09",guideTip:"\u2022 \u5EFA\u8BAE\u6839\u636E\u7F51\u7EDC\u72B6\u51B5\u548C\u4EFB\u52A1\u590D\u6742\u5EA6\u8C03\u6574\u8FD9\u4E9B\u53C2\u6570"},reflection:{title:"\u{1F3AF} AI \u81EA\u6211\u53CD\u601D\u914D\u7F6E",enabled:"\u5DF2\u542F\u7528",subtitle:"\u63A7\u5236 AI \u5BF9\u4EFB\u52A1\u6267\u884C\u7ED3\u679C\u7684\u81EA\u6211\u8BC4\u4F30\u548C\u4FEE\u8BA2\u884C\u4E3A",postReflection:"\u540E\u7F6E\u53CD\u601D",postReflectionHint:"\uFF08\u5B8C\u6210\u540E\u8BC4\u4F30\u7ED3\u679C\u8D28\u91CF\uFF09",toolReflection:"\u5DE5\u5177\u7EA7\u53CD\u601D",toolReflectionHint:"\uFF08\u5DE5\u5177\u6267\u884C\u540E\u8BC4\u4F30\u7ED3\u679C\uFF09",subtaskReflection:"\u5B50\u4EFB\u52A1\u53CD\u601D",subtaskReflectionHint:"\uFF08\u9AD8\u7EA7\u529F\u80FD\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF09",configGuide:"\u{1F4A1} \u53CD\u601D\u914D\u7F6E\u8BF4\u660E",guidePostReflection:"\u540E\u7F6E\u53CD\u601D",guidePostReflectionDesc:"\uFF1A\u5728\u63A8\u7406\u5FAA\u73AF\u7ED3\u675F\u540E\uFF0CAI \u4F1A\u5BF9\u6700\u7EC8\u7ED3\u679C\u8FDB\u884C\u81EA\u6211\u8BC4\u4F30\u3002\u5982\u679C\u8BC4\u5206\u4F4E\u4E8E\u9608\u503C\uFF0C\u4F1A\u81EA\u52A8\u4FEE\u8BA2\u6216\u91CD\u65B0\u6267\u884C\u3002",guideToolReflection:"\u5DE5\u5177\u7EA7\u53CD\u601D",guideToolReflectionDesc:"\uFF1A\u5728\u6BCF\u6B21\u5DE5\u5177\u8C03\u7528\u540E\uFF0CAI \u4F1A\u81EA\u52A8\u68C0\u67E5\u6267\u884C\u7ED3\u679C\u662F\u5426\u7B26\u5408\u9884\u671F\uFF0C\u9047\u5230\u9519\u8BEF\u6216\u5F02\u5E38\u65F6\u8C03\u6574\u7B56\u7565\u3002",guideSubtaskReflection:"\u5B50\u4EFB\u52A1\u53CD\u601D",guideSubtaskReflectionDesc:"\uFF1A\u5BF9\u4E8E\u590D\u6742\u4EFB\u52A1\u62C6\u89E3\u540E\u7684\u5B50\u4EFB\u52A1\u8FDB\u884C\u5355\u72EC\u8BC4\u4F30\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF08\u9AD8\u7EA7\u529F\u80FD\uFF09\u3002",guideTip:"\u2022 \u542F\u7528\u53CD\u601D\u4F1A\u589E\u52A0 API \u8C03\u7528\u6B21\u6570\uFF0C\u5EFA\u8BAE\u6839\u636E\u9700\u6C42\u6743\u8861"},toolbar:{title:"\u{1F527} \u5DE5\u5177\u680F\u8BBE\u7F6E",enabled:"\u5DF2\u542F\u7528",subtitle:"\u7BA1\u7406\u5212\u8BCD\u5DE5\u5177\u680F\u7684\u6309\u94AE\u548C\u987A\u5E8F",iconOnly:"\u5DE5\u5177\u680F\u56FE\u6807\u7CBE\u7B80\u6A21\u5F0F\uFF08\u4EC5\u663E\u793A\u56FE\u6807\uFF0C\u4E0D\u663E\u793A\u6587\u5B57\uFF09",addCustomTool:"\uFF0B \u6DFB\u52A0\u81EA\u5B9A\u4E49\u5DE5\u5177",domainBlocklistTitle:"\u57DF\u540D\u5C4F\u853D",domainBlocklistDesc:"\u5728\u6B64\u6DFB\u52A0\u9700\u8981\u5C4F\u853D\u5DE5\u5177\u680F\u7684\u57DF\u540D\uFF0C\u5C4F\u853D\u540E\u8BE5\u57DF\u540D\u4E0B\u4E0D\u518D\u663E\u793A\u5212\u8BCD\u5DE5\u5177\u680F",domainAddPlaceholder:"\u4F8B\u5982\uFF1Aexample.com\uFF08\u4E0D\u542B http/https\uFF09",add:"\u6DFB\u52A0",toolEditModalTitle:"\u6DFB\u52A0\u81EA\u5B9A\u4E49\u5DE5\u5177",toolName:"\u5DE5\u5177\u540D\u79F0",toolNamePlaceholder:"\u4F8B\u5982\uFF1A\u6DA6\u8272\u3001\u6539\u5199\u3001\u4EE3\u7801\u5BA1\u67E5",systemPromptLabel:"\u7CFB\u7EDF\u63D0\u793A\u8BCD",systemPromptHint:"\uFF08\u5B9A\u4E49\u8BE5\u5DE5\u5177\u7684\u884C\u4E3A\uFF09",toolPromptPlaceholder:"\u4F8B\u5982\uFF1A\u4F60\u662F\u4E00\u4E2A\u6587\u672C\u6DA6\u8272\u52A9\u624B\uFF0C\u8BF7\u5C06\u7528\u6237\u8F93\u5165\u7684\u5185\u5BB9\u6DA6\u8272\u5F97\u66F4\u6D41\u7545\u3001\u66F4\u4E13\u4E1A\u3002",builtinBadge:"\u5185\u7F6E",customBadge:"\u81EA\u5B9A\u4E49",moveUp:"\u4E0A\u79FB",moveDown:"\u4E0B\u79FB",dragSort:"\u62D6\u62FD\u6392\u5E8F",editCustomToolTitle:"\u7F16\u8F91\u81EA\u5B9A\u4E49\u5DE5\u5177",toolNameEmpty:"\u5DE5\u5177\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",toolPromptEmpty:"\u7CFB\u7EDF\u63D0\u793A\u8BCD\u4E0D\u80FD\u4E3A\u7A7A",toolNotFound:"\u672A\u627E\u5230\u8BE5\u5DE5\u5177",cannotEditBuiltin:"\u4E0D\u80FD\u7F16\u8F91\u5185\u7F6E\u5DE5\u5177",noBlockedDomains:"\u6682\u65E0\u5C4F\u853D\u57DF\u540D\uFF0C\u5728\u4E0A\u65B9\u8F93\u5165\u57DF\u540D\u6DFB\u52A0",unblock:"\u53D6\u6D88\u5C4F\u853D",domainEmpty:"\u57DF\u540D\u4E0D\u80FD\u4E3A\u7A7A",domainInvalid:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u57DF\u540D\uFF0C\u4F8B\u5982 example.com",domainExists:"\u8BE5\u57DF\u540D\u5DF2\u5B58\u5728"},agentConfig:{title:"\u{1F5A5}\uFE0F \u4EE3\u7406\u914D\u7F6E",subtitle:"\u8FDE\u63A5\u4EE3\u7406\u670D\u52A1\uFF0C\u5B9E\u73B0\u6587\u4EF6\u8BFB\u5199\u3001\u7CFB\u7EDF\u547D\u4EE4\u6267\u884C\u3001\u5BF9\u8BDD\u8BB0\u5FC6\u7BA1\u7406\u3001Skill \u5DE5\u4F5C\u6D41\u53CA MCP \u534F\u8BAE\u6269\u5C55\u7B49\u9AD8\u7EA7\u80FD\u529B\u3002\u652F\u6301\u914D\u7F6E\u5E76\u5339\u914D\u591A\u4E2A\u4EE3\u7406\uFF0C\u4E00\u952E\u8FDE\u63A5\u3002",pairedAgents:"\u5DF2\u914D\u5BF9\u4EE3\u7406",notConnected:"\u672A\u8FDE\u63A5",detailToggle:"\u25B6 \u8BE6\u7EC6\u4FE1\u606F",addAgentTitle:"\u6DFB\u52A0\u65B0\u4EE3\u7406",agentName:"\u4EE3\u7406\u540D\u79F0",agentNameHint:"\uFF08\u81EA\u5B9A\u4E49\uFF0C\u7559\u7A7A\u5219\u81EA\u52A8\u83B7\u53D6\uFF09",agentNamePlaceholder:"\u4F8B\u5982\uFF1A\u529E\u516C\u5BA4 Mac",agentUrl:"\u4EE3\u7406\u5730\u5740",agentUrlHint:"\uFF08\u4EE3\u7406\u670D\u52A1\u7684 HTTP \u5730\u5740\uFF09",pairCode:"\u914D\u5BF9\u7801",pairCodeHint:"\uFF08\u5728 Agent \u7EC8\u7AEF\u7A97\u53E3\u4E2D\u67E5\u770B\uFF09",pairCodePlaceholder:"6\u4F4D\u914D\u5BF9\u7801",connect:"\u8FDE\u63A5",toolCount:"{count} \u4E2A\u5DE5\u5177",selectedTotalCount:"(\u5DF2\u9009 {selected} / \u5171 {total})",toggleCategoryAll:"\u70B9\u51FB\u5207\u6362\u8BE5\u5206\u7C7B\u5168\u9009/\u53D6\u6D88\u5168\u9009",useInstructionTitle:"\u{1F4A1} \u4F7F\u7528\u8BF4\u660E\u53CA\u5B89\u5168\u63D0\u793A",method1:"\u65B9\u5F0F\u4E00\uFF1ANPM \u5168\u5C40\u5B89\u88C5\uFF08\u63A8\u8350\uFF09",method1Step1:"\uFF08\u8981\u6C42 Node.js \u2265 18\uFF09",method1Step2:" \u6216\u7B80\u5199 ",method1Step3:'3. \u7EC8\u7AEF\u663E\u793A 6 \u4F4D\u914D\u5BF9\u7801\uFF0C\u5728\u6B64\u9875\u9762\u586B\u5165\u5E76\u70B9\u51FB"\u8FDE\u63A5"',method2:"\u65B9\u5F0F\u4E8C\uFF1A\u672C\u5730\u6E90\u7801\u8FD0\u884C\uFF08\u5F00\u53D1\u8C03\u8BD5\uFF09",method2Step2:'2. \u7EC8\u7AEF\u663E\u793A 6 \u4F4D\u914D\u5BF9\u7801\uFF0C\u5728\u6B64\u9875\u9762\u586B\u5165\u5E76\u70B9\u51FB"\u8FDE\u63A5"',cmdAlias:"\u547D\u4EE4\u522B\u540D",cmdAliasPrefix:" \u53EF\u7B80\u5199\u4E3A ",cmdAliasSuffix:"\uFF0C\u6240\u6709\u547D\u4EE4\u5747\u652F\u6301",bgRun:"\u540E\u53F0\u8FD0\u884C\uFF1A",bgRunMethod1:"\u3000\u65B9\u5F0F\u4E00\uFF1A",bgRunMethod1Mid:" \u6216 ",bgRunMethod2:"\u3000\u65B9\u5F0F\u4E8C\uFF1A",moreCmd:"\u66F4\u591A\u547D\u4EE4\uFF1A",moreCmdMid:" \u6216 ",securityTitle:"\u26A0\uFE0F \u5B89\u5168\u63D0\u793A",security1:"\u4EE3\u7406\u670D\u52A1\u9ED8\u8BA4\u4EC5\u76D1\u542C\u672C\u673A\u5730\u5740\uFF08127.0.0.1\uFF09\uFF0C\u5982\u9700\u8FDC\u7A0B\u8FDE\u63A5\u8BF7\u4FEE\u6539\u542F\u52A8\u53C2\u6570\u3002",security2:"\u6587\u4EF6\u64CD\u4F5C\u9650\u5236\u5728\u5DE5\u4F5C\u76EE\u5F55\u548C\u767D\u540D\u5355\u5141\u8BB8\u76EE\u5F55\u5185\uFF0C\u4E0D\u53EF\u8D8A\u6743\u8BBF\u95EE\u3002",security3:"\u9AD8\u5371\u547D\u4EE4\u81EA\u52A8\u62E6\u622A\uFF0C\u654F\u611F\u547D\u4EE4\u652F\u6301\u914D\u7F6E\u5316\u786E\u8BA4\u653E\u884C\u3002",addAnotherAgent:"\u518D\u6DFB\u52A0\u4E00\u4E2A\u4EE3\u7406",checking:"\u68C0\u6D4B\u4E2D",connected:"\u5DF2\u8FDE\u63A5",online:"\u5728\u7EBF",offline:"\u79BB\u7EBF",clickToEditName:"\u70B9\u51FB\u7F16\u8F91\u540D\u79F0",currentInUse:"\u5F53\u524D\u4F7F\u7528 \xB7 ",enable:"\u542F\u7528",disable:"\u505C\u7528",disconnect:"\u65AD\u5F00",connectedTo:"\u5DF2\u8FDE\u63A5\u5230: {name}",confirmDeleteAgent:`\u786E\u5B9A\u8981\u5220\u9664\u4EE3\u7406 "{name}" ({url}) \u5417\uFF1F
10
- \u5220\u9664\u540E\u9700\u91CD\u65B0\u914D\u5BF9\u624D\u80FD\u4F7F\u7528\u3002`,deleteAgentTitle:"\u5220\u9664\u4EE3\u7406",agentDeleted:"\u5DF2\u5220\u9664\u4EE3\u7406: {name}",agentDisabledToast:"\u5DF2\u505C\u7528\u4EE3\u7406: {name}",agentEnabledToast:"\u5DF2\u542F\u7528\u4EE3\u7406: {name}",fetchingAgentInfo:"\u6B63\u5728\u83B7\u53D6\u4EE3\u7406\u4FE1\u606F...",agentUnreachable:"\u4EE3\u7406\u670D\u52A1\u4E0D\u53EF\u8FBE",tokenExpired:"Token \u5DF2\u5931\u6548 - \u8BF7\u91CD\u65B0\u914D\u5BF9",cannotConnectAgent:"\u65E0\u6CD5\u8FDE\u63A5\u5230\u4EE3\u7406 - \u8BF7\u786E\u8BA4\u4EE3\u7406\u670D\u52A1\u5DF2\u542F\u52A8",notConnectedSelect:"\u672A\u8FDE\u63A5 - \u8BF7\u4ECE\u5217\u8868\u4E2D\u9009\u62E9\u4EE3\u7406\u8FDE\u63A5",notConnectedAdd:"\u672A\u8FDE\u63A5 - \u8BF7\u6DFB\u52A0\u4EE3\u7406\u914D\u5BF9",unlimited:"\u65E0\u9650\u5236",idle:"\u7A7A\u95F2",unknownCommand:"(\u672A\u77E5\u547D\u4EE4)",detailVersion:"\u7248\u672C",detailSystem:"\u7CFB\u7EDF",detailHostname:"\u4E3B\u673A\u540D",detailHomeDir:"\u7528\u6237\u76EE\u5F55",detailRunningProcesses:"\u8FD0\u884C\u4E2D\u8FDB\u7A0B",detailRunningProcessesCount:"\u8FD0\u884C\u4E2D\u8FDB\u7A0B ({count})",detailMemoryUsage:"\u5185\u5B58\u4F7F\u7528",detailMemoryDetail:"\u5806 {used}MB / \u603B {total}MB \xB7 RSS {rss}MB",detailUptime:"\u8FD0\u884C\u65F6\u957F",detailCpuUser:"CPU \u7528\u6237\u6001",detailCpuSystem:"CPU \u5185\u6838\u6001",detailCommandTimeout:"\u547D\u4EE4\u8D85\u65F6",detailUploadMaxSize:"\u4E0A\u4F20\u5927\u5C0F\u9650\u5236",detailFileMaxSize:"\u8BFB\u53D6\u5927\u5C0F\u9650\u5236",detailAllowedPaths:"\u5141\u8BB8\u8BBF\u95EE\u7684\u76EE\u5F55",detailPairCodeTTL:"\u914D\u5BF9\u7801\u6709\u6548\u671F",detailWorkdir:"\u{1F4C1} \u5DE5\u4F5C\u76EE\u5F55: {dir}",pairCodeRequired:"\u8BF7\u8F93\u51656\u4F4D\u914D\u5BF9\u7801",pairing:"\u6B63\u5728\u914D\u5BF9...",pairingBtn:"\u914D\u5BF9\u4E2D...",unnamedAgent:"\u672A\u547D\u540D\u4EE3\u7406",pairSuccess:"\u914D\u5BF9\u6210\u529F\uFF01\u5DF2\u6DFB\u52A0: {name}",pairFailed:"\u914D\u5BF9\u5931\u8D25\uFF1A{error}",unknownError:"\u672A\u77E5\u9519\u8BEF",connectFailed:"\u8FDE\u63A5\u5931\u8D25 - \u8BF7\u786E\u8BA4\u4EE3\u7406\u670D\u52A1\u5DF2\u542F\u52A8",cannotConnectAgentMsg:"\u65E0\u6CD5\u8FDE\u63A5\u5230 Agent: {error}",disconnectedToast:"\u5DF2\u65AD\u5F00\u8FDE\u63A5",detailToggleOpen:"\u25BC \u8BE6\u7EC6\u4FE1\u606F",pairFailedShort:"\u914D\u5BF9\u5931\u8D25"},toolbox:{checkingAgent:"\u6B63\u5728\u68C0\u67E5 Agent \u8FDE\u63A5...",mcpTitle:"\u{1F50C} MCP \u670D\u52A1\u5668\u7BA1\u7406",mcpDisabled:"\u5DF2\u505C\u7528",mcpDesc:"\u901A\u8FC7 MCP \u534F\u8BAE\u8FDE\u63A5\u5916\u90E8\u5DE5\u5177\u670D\u52A1\u5668\uFF0C\u6269\u5C55 AI \u52A9\u624B\u7684\u5DE5\u5177\u80FD\u529B\u3002\u5173\u95ED\u540E\u6240\u6709 MCP \u5DE5\u5177\u5C06\u4E0D\u4F1A\u53D1\u9001\u5230 AI \u4E0A\u4E0B\u6587\u3002",loading:"\u52A0\u8F7D\u4E2D...",addMcpServer:"+ \u6DFB\u52A0 MCP \u670D\u52A1\u5668",skillTitle:"\u{1F9E9} \u6280\u80FD\u7BA1\u7406",skillDisabled:"\u5DF2\u505C\u7528",skillDesc:"\u7BA1\u7406\u53EF\u590D\u7528\u7684\u5DE5\u4F5C\u6D41\u548C Agent \u6280\u80FD\u3002\u5173\u95ED\u540E\u6240\u6709\u6280\u80FD\u5185\u5BB9\u5C06\u4E0D\u4F1A\u6CE8\u5165\u5230 AI \u7CFB\u7EDF\u63D0\u793A\u8BCD\u4E2D\u3002",ragTitle:"\u{1F4DA} \u77E5\u8BC6\u5E93\u68C0\u7D22\uFF08RAG\uFF09",ragDisabled:"\u5DF2\u505C\u7528",ragDesc:"\u5728\u4EE3\u7406\u7AEF\u672C\u5730\u6784\u5EFA\u77E5\u8BC6\u5E93\uFF0C\u5BF9\u8BDD\u65F6\u68C0\u7D22\u589E\u5F3A\u56DE\u7B54\u3002\u9700\u8981\u5B89\u88C5\u989D\u5916\u7684\u53EF\u9009\u4F9D\u8D56\uFF08\u7EA6 200-300MB\uFF09\uFF0C\u5173\u95ED\u540E\u77E5\u8BC6\u5E93\u5185\u5BB9\u4E0D\u4F1A\u53D1\u9001\u5230 AI \u4E0A\u4E0B\u6587\u3002",ragServiceEnabled:"\u77E5\u8BC6\u5E93\u68C0\u7D22\u5DF2\u542F\u7528",ragServiceDisabled:"\u77E5\u8BC6\u5E93\u68C0\u7D22\u5DF2\u505C\u7528",ragStatusChecking:"\u6B63\u5728\u68C0\u6D4B RAG \u80FD\u529B...",ragStatusReadyTitle:"RAG \u80FD\u529B\u5DF2\u5C31\u7EEA",ragStatusReadyDesc:"\u4EE3\u7406\u7AEF\u4F9D\u8D56\u5DF2\u5B89\u88C5\u3002\u77E5\u8BC6\u5E93\u7BA1\u7406\u529F\u80FD\u5C06\u5728\u540E\u7EED\u7248\u672C\u63D0\u4F9B\u3002",ragStatusNotInstalledTitle:"\u4EE3\u7406\u7AEF\u672A\u5B89\u88C5 RAG \u4F9D\u8D56",ragStatusNotInstalledDesc:"\u542F\u7528\u77E5\u8BC6\u5E93\u68C0\u7D22\u9700\u8981\u5148\u5728\u4EE3\u7406\u7AEF\u5B89\u88C5\u989D\u5916\u7684\u4F9D\u8D56\u5305\u3002",ragStatusNodeLowTitle:"\u8FD0\u884C\u73AF\u5883\u4E0D\u6EE1\u8DB3\u8981\u6C42",ragStatusNodeLowDesc:"RAG \u529F\u80FD\u9700\u8981 Node.js 22+\uFF08\u4EE3\u7406\u7AEF\u5F53\u524D\u4E3A {version}\uFF09\uFF0C\u8BF7\u5347\u7EA7 Node.js \u540E\u91CD\u542F\u4EE3\u7406\u3002",ragStatusAgentOffTitle:"\u4EE3\u7406\u672A\u8FDE\u63A5",ragStatusAgentOffDesc:"\u8BF7\u5148\u5728\u300C\u4EE3\u7406\u300DTab \u4E2D\u8FDE\u63A5 Agent \u670D\u52A1\u540E\u518D\u914D\u7F6E\u77E5\u8BC6\u5E93\u68C0\u7D22",ragStatusUnreachableTitle:"\u65E0\u6CD5\u83B7\u53D6\u4EE3\u7406\u72B6\u6001",ragStatusUnreachableDesc:"\u8BF7\u786E\u8BA4\u4EE3\u7406\u670D\u52A1\u8FD0\u884C\u6B63\u5E38\u540E\u70B9\u51FB\u300C\u91CD\u65B0\u68C0\u6D4B\u300D\u3002",ragInstallPackagesLabel:"\u9700\u8981\u5B89\u88C5\u7684\u5305\uFF1A",ragInstallRequirements:"\u8FD0\u884C\u73AF\u5883\u8981\u6C42 Node.js 22+\uFF1B\u9884\u8BA1\u4E0B\u8F7D\u7EA6 200-300MB\uFF08\u542B onnxruntime \u539F\u751F\u5E93\uFF0C\u89C6\u5E73\u53F0\u800C\u5B9A\uFF09\uFF1B\u9996\u6B21\u4F7F\u7528\u8FD8\u9700\u4E0B\u8F7D AI \u6A21\u578B\u7EA6 95MB\u3002",ragInstallNoRestartNeeded:"\u5B89\u88C5\u6210\u529F\u540E\u81EA\u52A8\u5C31\u7EEA\uFF0C\u65E0\u9700\u91CD\u542F\u4EE3\u7406\u670D\u52A1\u3002",ragInstallCommandLabel:"\u4E5F\u53EF\u5728\u4EE3\u7406\u7AEF\u5B89\u88C5\u76EE\u5F55\u624B\u52A8\u6267\u884C\uFF1A",ragCopyCmd:"\u{1F4CB} \u590D\u5236\u547D\u4EE4",ragCopied:"\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",ragCopyFailed:"\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u590D\u5236",ragInstallBtn:"\u2B07\uFE0F \u4E00\u952E\u5B89\u88C5 RAG \u4F9D\u8D56",ragInstallBtnBusy:"\u5B89\u88C5\u4E2D...",ragRedetectBtn:"\u{1F504} \u91CD\u65B0\u68C0\u6D4B",ragInstallStarted:"\u5B89\u88C5\u5DF2\u5F00\u59CB\uFF0C\u6B63\u5728\u4E0B\u8F7D\u4F9D\u8D56...",ragInstallRunning:"\u6B63\u5728\u5B89\u88C5 RAG \u4F9D\u8D56...",ragAutoRestoreRunning:"\u4EE3\u7406\u66F4\u65B0\u540E\u4F9D\u8D56\u7F3A\u5931\uFF0C\u6B63\u5728\u81EA\u52A8\u6062\u590D...",ragInstallTip:"\u5B89\u88C5\u8FC7\u7A0B\u53EF\u80FD\u9700\u8981\u51E0\u5206\u949F\uFF0C\u671F\u95F4\u8BF7\u52FF\u5173\u95ED\u4EE3\u7406\u670D\u52A1\u3002",ragInstallVerifying:"\u4F9D\u8D56\u5B89\u88C5\u5B8C\u6210\uFF0C\u6B63\u5728\u9A8C\u8BC1...",ragInstallSuccess:"RAG \u4F9D\u8D56\u5B89\u88C5\u6210\u529F\uFF0C\u80FD\u529B\u5DF2\u5C31\u7EEA",ragInstallFailedToast:"RAG \u4F9D\u8D56\u5B89\u88C5\u5931\u8D25",ragInstallFailedAdvice:"\u82E5\u591A\u6B21\u5B89\u88C5\u5931\u8D25\uFF0C\u53EF\u5C1D\u8BD5\u91CD\u542F\u4EE3\u7406\u670D\u52A1\uFF08\u6216\u7A0D\u540E\u91CD\u8BD5\uFF09\u540E\u70B9\u51FB\u300C\u91CD\u65B0\u68C0\u6D4B\u300D\u3002",ragInstallLogLabel:"\u5B89\u88C5\u65E5\u5FD7\uFF08\u6700\u8FD1\u8F93\u51FA\uFF09\uFF1A",ragRedetectReady:"\u91CD\u65B0\u68C0\u6D4B\u5B8C\u6210\uFF1ARAG \u80FD\u529B\u5DF2\u5C31\u7EEA",ragRedetectStillMissing:"\u91CD\u65B0\u68C0\u6D4B\u5B8C\u6210\uFF1A\u4ECD\u672A\u68C0\u6D4B\u5230 RAG \u4F9D\u8D56",ragRedetectStillMissingDetail:"\u4ECD\u672A\u68C0\u6D4B\u5230 RAG \u4F9D\u8D56 - {error}",ragRedetectFailed:"\u91CD\u65B0\u68C0\u6D4B\u5931\u8D25: {error}",importSkill:"+ \u5BFC\u5165\u6280\u80FD",reloadSkills:"\u{1F504} \u91CD\u65B0\u52A0\u8F7D",enabledCountTotal:"\u5DF2\u542F\u7528 {enabled} / \u5171 {total}",unknownAgent:"\u672A\u77E5\u4EE3\u7406",currentAgentSupports:"\u5F53\u524D\u4EE3\u7406\uFF1A<strong>{name}</strong> \u2014 \u652F\u6301MCP\u548C\u6280\u80FD",agentNotConnectedHint:"\u4EE3\u7406\u672A\u8FDE\u63A5 \u2014 \u8BF7\u5728\u300C\u4EE3\u7406\u300DTab \u4E2D\u8FDE\u63A5",mcpIdRequired:"\u8BF7\u586B\u5199\u670D\u52A1\u5668 ID",mcpUrlRequired:"\u8BF7\u586B\u5199\u670D\u52A1\u7AEF URL",mcpCommandRequired:"\u8BF7\u586B\u5199\u547D\u4EE4\u8DEF\u5F84",mcpReconnecting:"\u6B63\u5728\u91CD\u65B0\u8FDE\u63A5...",mcpUpdateReconnected:"MCP \u670D\u52A1\u5668\u66F4\u65B0\u6210\u529F\uFF0C\u5DF2\u91CD\u8FDE\uFF08{count} \u5DE5\u5177\uFF09",mcpUnknownError:"\u672A\u77E5\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u547D\u4EE4\u4E0E\u53C2\u6570\u662F\u5426\u6B63\u786E",mcpUpdatedReconnectFailed:"\u914D\u7F6E\u5DF2\u66F4\u65B0\uFF0C\u4F46\u91CD\u8FDE\u5931\u8D25: {error}",mcpUpdateSuccess:"MCP \u670D\u52A1\u5668\u66F4\u65B0\u6210\u529F",mcpUpdateFailed:"\u66F4\u65B0\u5931\u8D25: {error}",mcpServiceEnabled:"MCP \u670D\u52A1\u5DF2\u542F\u7528",mcpServiceDisabled:"MCP \u670D\u52A1\u5DF2\u505C\u7528",skillServiceEnabled:"\u6280\u80FD\u670D\u52A1\u5DF2\u542F\u7528",skillServiceDisabled:"\u6280\u80FD\u670D\u52A1\u5DF2\u505C\u7528",mcpAddSuccess:"MCP \u670D\u52A1\u5668\u6DFB\u52A0\u6210\u529F",mcpAddFailed:"\u6DFB\u52A0\u5931\u8D25: {error}",mcpConnecting:"\u6B63\u5728\u8FDE\u63A5...",mcpConnectSuccess:"\u8FDE\u63A5\u6210\u529F",mcpDisconnectSuccess:"\u5DF2\u65AD\u5F00\u8FDE\u63A5",mcpEnabledToast:"\u5DF2\u542F\u7528",mcpDisabledToast:"\u5DF2\u7981\u7528",mcpConfirmDelete:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 MCP \u670D\u52A1\u5668\u5417\uFF1F",deleteConfirmTitle:"\u5220\u9664\u786E\u8BA4",deleteSuccess:"\u5220\u9664\u6210\u529F",collapseTools:"\u6536\u8D77 {count} \u4E2A\u5DE5\u5177",viewTools:"\u67E5\u770B {count} \u4E2A\u5DE5\u5177",operationFailed:"\u64CD\u4F5C\u5931\u8D25: {error}",sizeBytes:"\u5927\u5C0F: {size} \u5B57\u8282",skillConfirmDelete:'\u786E\u5B9A\u8981\u5220\u9664\u6280\u80FD "{name}" \u5417\uFF1F',skillEnabledToast:'\u5DF2\u542F\u7528\u6280\u80FD "{name}"',skillDisabledToast:'\u5DF2\u505C\u7528\u6280\u80FD "{name}"',skillInfoFailed:"\u83B7\u53D6\u6280\u80FD\u4FE1\u606F\u5931\u8D25: {error}",skillRunning:'\u6B63\u5728\u8FD0\u884C\u6280\u80FD "{name}"...',skillContentFailed:"\u83B7\u53D6\u6280\u80FD\u5185\u5BB9\u5931\u8D25",skillGetFailed:"\u83B7\u53D6\u5931\u8D25: {error}",skillsReloaded:"\u5DF2\u91CD\u65B0\u52A0\u8F7D {count} \u4E2A\u6280\u80FD",skillsReloadFailed:"\u91CD\u65B0\u52A0\u8F7D\u5931\u8D25: {error}",emptyAgentNotConnectedTitle:"\u4EE3\u7406\u672A\u8FDE\u63A5",emptyAgentNotConnectedDescMcp:"\u8BF7\u5148\u5728\u300C\u4EE3\u7406\u300DTab \u4E2D\u8FDE\u63A5 Agent \u670D\u52A1\u540E\uFF0C\u518D\u914D\u7F6E MCP \u670D\u52A1\u5668",emptyNoMcpTitle:"\u6682\u65E0 MCP \u670D\u52A1\u5668",emptyNoMcpDesc:"\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u6DFB\u52A0 MCP \u670D\u52A1\u5668\uFF0C\u6269\u5C55 AI \u52A9\u624B\u7684\u5DE5\u5177\u80FD\u529B",emptyAgentNotConnectedDescSkill:"\u8BF7\u5148\u5728\u300C\u4EE3\u7406\u300DTab \u4E2D\u8FDE\u63A5 Agent \u670D\u52A1\u540E\uFF0C\u518D\u7BA1\u7406\u6280\u80FD",emptyNoSkillTitle:"\u6682\u65E0\u6280\u80FD",emptyNoSkillDesc:"\u652F\u6301\u4E24\u79CD\u6280\u80FD\u7C7B\u578B\uFF1A<br><strong>Workflow \u6280\u80FD</strong>\uFF1A\u5BFC\u5165 JSON \u6587\u4EF6\uFF08\u786E\u5B9A\u6027\u81EA\u52A8\u5316\u6D41\u7A0B\uFF09<br><strong>Agent \u6280\u80FD</strong>\uFF1A\u5BFC\u5165 SKILL.md \u76EE\u5F55/Zip/URL\uFF08AI \u80FD\u529B\u6269\u5C55\uFF09",mcpIdPlaceholder:"\u670D\u52A1\u5668 ID",mcpIdPlaceholderUnique:"\u670D\u52A1\u5668 ID\uFF08\u552F\u4E00\u6807\u8BC6\uFF09",mcpNamePlaceholder:"\u663E\u793A\u540D\u79F0",mcpEnvVars:"\u73AF\u5883\u53D8\u91CF",mcpEnvVarsHint:"\uFF08\u4EC5 stdio \u4F20\u8F93\u9700\u8981\uFF0C\u654F\u611F\u503C\u4F18\u5148\u5728 shell \u914D\u7F6E\u4E2D export\uFF09",mcpAddVar:"+ \u6DFB\u52A0\u53D8\u91CF",mcpConnected:"\u5DF2\u8FDE\u63A5",mcpDisconnected:"\u672A\u8FDE\u63A5",mcpToggleEnabled:"\u542F\u7528\u4E2D\uFF0C\u70B9\u51FB\u505C\u7528",mcpToggleDisabled:"\u5DF2\u505C\u7528\uFF0C\u70B9\u51FB\u542F\u7528",mcpDisconnectBtn:"\u65AD\u5F00",mcpConnectBtn:"\u8FDE\u63A5",mcpVarNamePlaceholder:"\u53D8\u91CF\u540D",mcpVarValuePlaceholder:"\u503C",mcpToggleEye:"\u663E\u793A/\u9690\u85CF",mcpRemoveRow:"\u5220\u9664\u6B64\u884C",mcpHeaderNamePlaceholder:"Header \u540D",mcpHeaders:"\u8BF7\u6C42\u5934 (Headers)",mcpHeadersHint:"\uFF08HTTP \u4F20\u8F93\u65F6\u9644\u52A0\u7684\u8BF7\u6C42\u5934\uFF0C\u5982 Authorization\u3001X-API-Key \u7B49\uFF09",mcpAddHeader:"+ \u6DFB\u52A0\u8BF7\u6C42\u5934",transportStdioTitle:"\u5B50\u8FDB\u7A0B\u901A\u4FE1 (npx/python \u7B49)",transportSseTitle:"Server-Sent Events (HTTP GET \u957F\u8FDE\u63A5 + POST \u53D1\u6D88\u606F)",transportStreamableHttpTitle:"MCP \u5B98\u65B9\u63A8\u8350 HTTP \u4F20\u8F93 (POST + GET SSE)",transportWebsocketTitle:"WebSocket \u53CC\u5411\u901A\u4FE1",mcpCommandPlaceholder:"\u547D\u4EE4\u8DEF\u5F84\uFF0C\u5982 npx\u3001python",mcpArgsPlaceholder:"\u53C2\u6570\uFF0C\u7A7A\u683C\u5206\u9694",mcpCustomHeadersCount:"{count} \u4E2A\u81EA\u5B9A\u4E49\u8BF7\u6C42\u5934",mcpAddFailedShort:"\u6DFB\u52A0\u5931\u8D25",mcpDeleteFailedShort:"\u5220\u9664\u5931\u8D25",mcpConnectFailedShort:"\u8FDE\u63A5\u5931\u8D25",mcpDisconnectFailedShort:"\u65AD\u5F00\u5931\u8D25",mcpOperationFailedShort:"\u64CD\u4F5C\u5931\u8D25",workflowSkillsTitle:"Workflow \u6280\u80FD\uFF08\u81EA\u52A8\u5316\u6D41\u7A0B\uFF09",agentSkillsTitle:"Agent \u6280\u80FD\uFF08AI \u80FD\u529B\u6269\u5C55\uFF09",stepCount:"{count} \u6B65\u9AA4",resourceCount:"{count} \u8D44\u6E90",expand:"\u5C55\u5F00",run:"\u8FD0\u884C",enable:"\u542F\u7528",disable:"\u505C\u7528",builtin:"\u5185\u7F6E",moreCount:"+{count} \u66F4\u591A",editSkillMd:"\u7F16\u8F91 SKILL.md",viewDetails:"\u67E5\u770B\u8BE6\u60C5",required:"*\u5FC5\u586B",optional:"\u9009\u586B",runSkillTitle:'\u8FD0\u884C\u6280\u80FD "{name}"',fillParamsHint:"\u8BF7\u586B\u5199\u4EE5\u4E0B\u53C2\u6570\u540E\u8FD0\u884C\uFF1A",defaultParamHint:" (\u9ED8\u8BA4: {default})",noExecutionResult:"\u65E0\u6267\u884C\u7ED3\u679C",conditionNotMetSkipped:"\u6761\u4EF6\u4E0D\u6EE1\u8DB3\uFF0C\u5DF2\u8DF3\u8FC7",executionSuccess:"\u6267\u884C\u6210\u529F",executionFailed:"\u6267\u884C\u5931\u8D25",truncated:"... (\u5171 {count} \u5B57\u7B26\uFF0C\u5DF2\u622A\u65AD)",executionComplete:"\u6267\u884C\u5B8C\u6210",executionSummary:"{success} \u6210\u529F, {fail} \u5931\u8D25, {skip} \u8DF3\u8FC7",skillRunResultTitle:'\u6280\u80FD "{name}" {status}',skillImportFailedShort:"\u5BFC\u5165\u5931\u8D25",skillDeleteFailedShort:"\u5220\u9664\u5931\u8D25",skillOperationFailedShort:"\u64CD\u4F5C\u5931\u8D25",invalidSkillDataFormat:"\u65E0\u6548\u7684\u6280\u80FD\u6570\u636E\u683C\u5F0F",editAgentSkill:"\u7F16\u8F91 Agent \u6280\u80FD",newAgentSkill:"\u65B0\u5EFA Agent \u6280\u80FD",skillNameLabel:"\u6280\u80FD\u540D\u79F0",skillDescLabel:"\u63CF\u8FF0",skillVersionLabel:"\u7248\u672C",skillMarkdownLabel:"SKILL.md \u5185\u5BB9\uFF08Markdown\uFF09",skillDescPlaceholder:"\u7B80\u8981\u63CF\u8FF0\u6B64\u6280\u80FD\u7684\u529F\u80FD",skillDescScenePlaceholder:"\u7B80\u8981\u63CF\u8FF0\u6B64\u6280\u80FD\u7684\u529F\u80FD\u548C\u9002\u7528\u573A\u666F",skillNameExamplePlaceholder:"e.g. code-review \u6216 deploy-to-server",skillMarkdownPlaceholder:`# \u6280\u80FD\u540D\u79F0
8
+ \uFF08\u65E0\u6CD5\u83B7\u53D6\u6807\u7B7E\u9875\u4FE1\u606F: {error}\uFF09`,untitled:"\u65E0\u6807\u9898",unknownUrl:"\u672A\u77E5"},settings:{docTitle:"AI Helper - \u914D\u7F6E",language:"\u754C\u9762\u8BED\u8A00",languageChanged:"\u8BED\u8A00\u5DF2\u5207\u6362\uFF0C\u90E8\u5206\u9875\u9762\u5237\u65B0\u540E\u751F\u6548",pageTitle:"AI Helper \u914D\u7F6E",subtitle:"\u7F51\u9875\u667A\u80FD\u52A9\u624B - OpenAI \u517C\u5BB9\u63A5\u53E3",importConfigTitle:"\u5BFC\u5165\u914D\u7F6E",exportConfigTitle:"\u5BFC\u51FA\u914D\u7F6E",tabBasic:"\u57FA\u7840",tabReact:"\u63A8\u7406",tabReflection:"\u53CD\u601D",tabToolbar:"\u5212\u8BCD",tabAgent:"\u4EE3\u7406",tabToolbox:"\u6269\u5C55",saveConfig:"\u4FDD\u5B58\u914D\u7F6E",apiBaseHint:"\uFF08\u4ECE\u4E0B\u62C9\u5217\u8868\u9009\u62E9\uFF0C\u6216\u624B\u52A8\u8F93\u5165\uFF09",addApiBaseTitle:"\u6DFB\u52A0\u81EA\u5B9A\u4E49 API Base URL",addAddress:"+ \u6DFB\u52A0\u5730\u5740",apiBaseUrlPlaceholder:"API Base URL\uFF08\u5982 https://api.example.com/v1\uFF09",apiBaseLabelPlaceholder:"\u6807\u7B7E/\u5907\u6CE8\uFF08\u53EF\u9009\uFF0C\u5982 \u6211\u7684\u4EE3\u7406\uFF09",confirmAdd:"\u786E\u8BA4\u6DFB\u52A0",requiredHint:"\uFF08\u5FC5\u586B\uFF09",apiKeyHint:"\u8BF7\u4ECE\u60A8\u4F7F\u7528\u7684\u5927\u6A21\u578B\u5E73\u53F0\u83B7\u53D6\u5BF9\u5E94\u7684 API Key\uFF0C\u5E76\u5728\u6B64\u914D\u7F6E\u4E2D\u586B\u5199\u3002\u8BF7\u59A5\u5584\u4FDD\u7BA1\u60A8\u7684 API Key\uFF0C\u907F\u514D\u6CC4\u9732\u3002",apiKeyPlaceholder:"\u8BF7\u8F93\u5165\u60A8\u7684 API Key",toggleApiKey:"\u663E\u793A/\u9690\u85CF API Key",modelName:"\u6A21\u578B\u540D\u79F0",modelNameHint:"\uFF08\u4ECE\u4E0B\u62C9\u5217\u8868\u9009\u62E9\uFF0C\u6216\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u6DFB\u52A0\u65B0\u6A21\u578B\uFF09",selectModelPlaceholder:"\u8BF7\u4ECE\u4E0B\u65B9\u9009\u62E9\u6A21\u578B",noMatch:"\u65E0\u5339\u914D\u9879",addModelTitle:"\u6DFB\u52A0\u81EA\u5B9A\u4E49\u6A21\u578B",addModel:"+ \u6DFB\u52A0\u6A21\u578B",fetchModels:"\u27F3 \u4ECE API \u83B7\u53D6",fetchModelsTitle:"\u4ECE\u5F53\u524D\u5382\u5546 API \u62C9\u53D6\u53EF\u7528\u6A21\u578B\u5217\u8868",fetchModelsLoading:"\u83B7\u53D6\u4E2D\u2026",fetchModelsNeedConfig:"\u8BF7\u5148\u586B\u5199 API Base URL \u548C API Key",fetchModelsSuccess:"\u2705 \u5DF2\u83B7\u53D6 {total} \u4E2A\u6A21\u578B\uFF08\u65B0\u589E {added} \u4E2A\uFF09",fetchModelsEmpty:"\u672A\u83B7\u53D6\u5230\u6A21\u578B\uFF0C\u8BF7\u624B\u52A8\u6DFB\u52A0",fetchModelsFailed:"\u274C \u83B7\u53D6\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E\u6216\u624B\u52A8\u6DFB\u52A0\u6A21\u578B",fetchModelsAuthFailed:"\u274C \u8BA4\u8BC1\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5 API Key",modelNameInputPlaceholder:"\u6A21\u578B\u540D\u79F0\uFF08\u5982 gpt-4o\uFF09",contextWindowPlaceholder:"\u4E0A\u4E0B\u6587\u7A97\u53E3\u5927\u5C0F\uFF08tokens\uFF09",contextWindowHint:"128K=128000, 200K=200000, 1M=1000000, \u7559\u7A7A\u5219\u81EA\u52A8\u63A8\u65AD",enableImageInput:"\u542F\u7528\u56FE\u7247\u8BC6\u522B\u529F\u80FD",enableImageInputHint:"\uFF08\u5F00\u542F\u540E\u53EF\u5728\u4FA7\u8FB9\u680F\u53D1\u9001\u56FE\u7247\u7ED9\u591A\u6A21\u6001\u6A21\u578B\u8FDB\u884C\u5206\u6790\uFF09",imageApiBaseHint:"\uFF08\u4ECE\u4E0B\u62C9\u5217\u8868\u9009\u62E9\uFF0C\u6216\u624B\u52A8\u8F93\u5165\uFF1B\u7559\u7A7A\u5219\u4F7F\u7528\u57FA\u7840\u6A21\u578B\u914D\u7F6E\uFF09",addImageApiBaseTitle:"\u6DFB\u52A0\u81EA\u5B9A\u4E49\u56FE\u7247 API Base URL",useBaseModelPlaceholder:"\u7559\u7A7A\u5219\u4F7F\u7528\u57FA\u7840\u6A21\u578B\u914D\u7F6E",imageApiKeyHint:"\uFF08\u53EF\u9009\uFF0C\u7559\u7A7A\u5219\u4F7F\u7528\u57FA\u7840\u6A21\u578B\u914D\u7F6E\uFF09",imageApiKeyPlaceholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u8BC6\u522B API Key",imageModelNameHint:"\uFF08\u652F\u6301\u591A\u6A21\u6001\u89C6\u89C9\u80FD\u529B\u7684\u6A21\u578B\uFF0C\u4ECE\u5217\u8868\u9009\u62E9\u6216\u6DFB\u52A0\u65B0\u6A21\u578B\uFF1B\u7559\u7A7A\u5219\u4F7F\u7528\u57FA\u7840\u6A21\u578B\u7684\u6A21\u578B\u540D\u79F0\uFF09",useBaseModelPlaceholderShort:"\u7559\u7A7A\u5219\u4F7F\u7528\u57FA\u7840\u6A21\u578B",addImageModelTitle:"\u6DFB\u52A0\u81EA\u5B9A\u4E49\u56FE\u7247\u8BC6\u522B\u6A21\u578B",systemPrompt:"\u7CFB\u7EDF\u63D0\u793A\u8BCD",systemPromptHint:"\uFF08\u53EF\u9009\uFF0C\u7559\u7A7A\u5219\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF09",resetToDefault:"\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C",systemPromptTip:"\u{1F4A1} \u63D0\u793A\uFF1A\u7CFB\u7EDF\u63D0\u793A\u8BCD\u7528\u4E8E\u5B9A\u4E49 AI \u52A9\u624B\u7684\u884C\u4E3A\u548C\u89D2\u8272\u3002",collapse:"\u2212 \u6536\u8D77",modelNameRequired:"\u8BF7\u8F93\u5165\u6A21\u578B\u540D\u79F0",modelAdded:"\u6A21\u578B\u5DF2\u6DFB\u52A0",imageModelAdded:"\u56FE\u7247\u6A21\u578B\u5DF2\u6DFB\u52A0",apiBaseSwitched:"API Base URL \u5DF2\u5207\u6362\uFF0C\u8BF7\u786E\u4FDD API Key \u5BF9\u5E94\u6709\u6548",apiBaseRequired:"\u8BF7\u8F93\u5165 API Base URL",urlInvalid:"URL \u683C\u5F0F\u4E0D\u6B63\u786E",apiBaseAdded:"API Base URL \u5DF2\u6DFB\u52A0",imageApiBaseSwitched:"\u56FE\u7247 API Base URL \u5DF2\u5207\u6362",imageApiBaseAdded:"\u56FE\u7247 API Base URL \u5DF2\u6DFB\u52A0",maxIterationsRangeError:"\u6700\u5927\u5FAA\u73AF\u6B21\u6570\u5FC5\u987B\u5728 10-1000 \u4E4B\u95F4",apiTimeoutRangeError:"API \u8BF7\u6C42\u8D85\u65F6\u5FC5\u987B\u5728 1-10 \u5206\u949F \u4E4B\u95F4",loopTimeoutRangeError:"\u6574\u4F53\u5FAA\u73AF\u8D85\u65F6\u5FC5\u987B\u5728 1-120 \u5206\u949F \u4E4B\u95F4",toolTimeoutRangeError:"\u5DE5\u5177\u6267\u884C\u8D85\u65F6\u5FC5\u987B\u5728 1-30 \u5206\u949F \u4E4B\u95F4",apiKeyEmpty:"API Key \u4E0D\u80FD\u4E3A\u7A7A",saveFailed:"\u4FDD\u5B58\u5931\u8D25\uFF1A{message}",saveSuccess:"\u914D\u7F6E\u5DF2\u4FDD\u5B58\u6210\u529F\uFF01",deleteModel:"\u5220\u9664\u6B64\u6A21\u578B",ctxSliderIconTitle:"\u8BBE\u7F6E\u8BE5\u6A21\u578B\u7684\u4E0A\u4E0B\u6587\u7A97\u53E3",ctxSliderAuto:"\u81EA\u52A8",ctxSliderAutoTitle:"\u6062\u590D\u81EA\u52A8\u63A8\u65AD",ctxBadgeAutoTip:"\u81EA\u52A8\u63A8\u65AD\uFF08\u672A\u624B\u52A8\u8BBE\u7F6E\uFF09",ctxSliderResetAuto:"\u6062\u590D\u81EA\u52A8",deleteApiBase:"\u5220\u9664\u6B64\u5730\u5740",providerConfig:"\u5382\u5546\u914D\u7F6E",providerConfigHint:"\uFF08\u5207\u6362\u540E\u7ACB\u5373\u751F\u6548\uFF1B\u6BCF\u4E2A\u914D\u7F6E\u72EC\u7ACB\u8BB0\u5FC6\u5730\u5740\u3001API Key\u3001\u6A21\u578B\u5217\u8868\uFF09",profileScopeHint:"\u4EE5\u4E0B\u8BBE\u7F6E\u4FDD\u5B58\u5230\u5382\u5546\u914D\u7F6E\u201C{name}\u201D\uFF0C\u5207\u6362\u5382\u5546\u65F6\u81EA\u52A8\u8054\u52A8",newProfile:"+ \u65B0\u5EFA",newProfileTitle:"\u65B0\u5EFA\u4E00\u4E2A\u7A7A\u7684\u5382\u5546\u914D\u7F6E",profileNameTitle:"\u65B0\u5EFA\u5382\u5546\u914D\u7F6E",saveAsProfile:"\u53E6\u5B58\u4E3A",saveAsProfileTitle:"\u4EE5\u5F53\u524D\u914D\u7F6E\u53E6\u5B58\u4E3A\u65B0\u7684\u5382\u5546\u914D\u7F6E",renameProfile:"\u91CD\u547D\u540D",renameProfileTitle:"\u91CD\u547D\u540D\u5F53\u524D\u914D\u7F6E",deleteProfile:"\u5220\u9664",deleteProfileTitle:"\u5220\u9664\u5F53\u524D\u914D\u7F6E",profileNamePlaceholder:"\u914D\u7F6E\u540D\u79F0\uFF08\u5982 DeepSeek \u5B98\u65B9\u3001\u6211\u7684\u4E2D\u8F6C\uFF09",profileNameRequired:"\u8BF7\u8F93\u5165\u914D\u7F6E\u540D\u79F0",deleteProfileConfirm:"\u786E\u5B9A\u8981\u5220\u9664\u5382\u5546\u914D\u7F6E\u201C{name}\u201D\u5417\uFF1F\u5220\u9664\u540E\u4E0D\u53EF\u6062\u590D\u3002",atLeastOneProfile:"\u81F3\u5C11\u4FDD\u7559\u4E00\u4E2A\u5382\u5546\u914D\u7F6E",profileSwitched:"\u5DF2\u5207\u6362\u5230 {name}",profileCreated:"\u5DF2\u521B\u5EFA\u914D\u7F6E {name}",profileRenamed:"\u5DF2\u91CD\u547D\u540D\u4E3A {name}",profileDeleted:"\u5DF2\u5220\u9664\u914D\u7F6E {name}",profileCopySuffix:"\u526F\u672C",completionFeedbackTitle:"\u5B8C\u6210\u53CD\u9988",completionSound:"\u64AD\u653E\u63D0\u793A\u97F3\uFF08\u6210\u529F\u4E0E\u5931\u8D25\u97F3\u6548\u4E0D\u540C\uFF09",completionSoundHint:"\u6210\u529F\u65F6\u6E05\u8106\u4E09\u8FDE\u97F3\uFF08Do-Mi-Sol \u4E0A\u626C\uFF09\uFF0C\u5931\u8D25\u65F6\u4F4E\u6C89\u65B9\u6CE2\u53CC\u97F3\uFF1B\u7528\u6237\u4E3B\u52A8\u53D6\u6D88\u4E0D\u64AD\u653E",completionConfetti:"\u64AD\u653E\u5F69\u5E26\u52A8\u753B",completionConfettiHint:"\u4EC5\u5728\u56DE\u7B54\u6210\u529F\u5B8C\u6210\u65F6\u64AD\u653E\uFF1B\u5931\u8D25\u548C\u53D6\u6D88\u4E0D\u64AD\u653E",completionNotification:"\u4EFB\u52A1\u5B8C\u6210\u6216\u5931\u8D25\u65F6\u5F39\u51FA\u684C\u9762\u901A\u77E5",completionNotificationHint:"\u4EC5\u5728\u770B\u4E0D\u5230\u4FA7\u8FB9\u680F\u65F6\u5F39\u51FA\uFF1B\u6210\u529F\u81EA\u52A8\u6D88\u5931\uFF0C\u5931\u8D25\u505C\u7559\u81F3\u624B\u52A8\u5173\u95ED\uFF1B\u70B9\u51FB\u901A\u77E5\u6253\u5F00\u4FA7\u8FB9\u680F",scheduledNotification:"\u5B9A\u65F6\u4EFB\u52A1\u5B8C\u6210\u6216\u5931\u8D25\u65F6\u5F39\u51FA\u684C\u9762\u901A\u77E5",scheduledNotificationHint:"\u5B9A\u65F6\u4EFB\u52A1\u5728\u540E\u53F0\u6267\u884C\u3001\u65E0\u58F0\u97F3\u7B49\u5176\u4ED6\u63D0\u9192\u6E20\u9053\uFF0C\u5F00\u5173\u5F00\u542F\u65F6\u603B\u662F\u5F39\u51FA\uFF1B\u9ED8\u8BA4\u5F00\u542F\uFF0C\u53EF\u624B\u52A8\u5173\u95ED",interactionNotification:"AI \u9700\u8981\u4F60\u786E\u8BA4\u6216\u6F84\u6E05\u65F6\u63D0\u9192\u6211",interactionNotificationHint:"\u63A8\u7406\u5FAA\u73AF\u7B49\u5F85\u4F60\u64CD\u4F5C\u65F6\u5F39\u684C\u9762\u63D0\u9192\uFF1B\u4EC5\u5728\u770B\u5F97\u5230\u4FA7\u8FB9\u680F\u65F6\u4E0D\u6253\u6270\uFF0C\u70B9\u51FB\u901A\u77E5\u6253\u5F00\u4FA7\u8FB9\u680F",showMessageTimestamp:"\u663E\u793A\u6D88\u606F\u65F6\u95F4\u6233",showMessageTimestampHint:"\uFF08\u5728\u7528\u6237\u95EE\u9898\u6C14\u6CE1\u4E0B\u65B9\u663E\u793A\u53D1\u95EE\u65F6\u95F4\uFF0C\u4ECA\u5929\u663E\u793A\u65F6\u5206\uFF0C\u975E\u4ECA\u5929\u663E\u793A\u65E5\u671F\uFF09",sidePanelScopeTitle:"\u4FA7\u8FB9\u680F\u4F5C\u7528\u57DF",sidePanelScopeGlobal:"\u5168\u5C40\u6A21\u5F0F",sidePanelScopeTab:"\u6807\u7B7E\u9875\u7ED1\u5B9A\u6A21\u5F0F",sidePanelScopeGlobalHint:"\u540C\u4E00\u7A97\u53E3\u5185\u6240\u6709\u6807\u7B7E\u9875\u5171\u4EAB\u540C\u4E00\u4EFD\u4FA7\u8FB9\u680F\u5B9E\u4F8B\uFF0C\u5207\u6362\u6807\u7B7E\u9875\u65F6\u59CB\u7EC8\u53EF\u89C1",sidePanelScopeTabHint:"\u4FA7\u8FB9\u680F\u53EA\u5728\u6253\u5F00\u5B83\u7684\u6807\u7B7E\u9875\u663E\u793A\uFF1B\u53EF\u5728\u591A\u4E2A\u6807\u7B7E\u9875\u5404\u81EA\u6253\u5F00\uFF0C\u5207\u8D70\u81EA\u52A8\u9690\u85CF\u3001\u5207\u56DE\u81EA\u52A8\u6062\u590D",autoGroupTabs:"\u6807\u7B7E\u9875\u7ED1\u5B9A\u6A21\u5F0F\u4E0B\uFF0C\u628A\u6253\u5F00\u4FA7\u8FB9\u680F\u7684\u6807\u7B7E\u9875\u5F52\u5165\u5206\u7EC4",autoGroupTabsHint:"\u4EC5\u6807\u7B7E\u9875\u7ED1\u5B9A\u6A21\u5F0F\u751F\u6548\uFF1B\u628A\u8FD9\u4E9B\u6807\u7B7E\u9875\u5F52\u5165\u4E00\u4E2A\u5F69\u8272\u6807\u7B7E\u7EC4\u4FBF\u4E8E\u8BC6\u522B\uFF08\u6807\u7B7E\u9875\u4F1A\u88AB\u79FB\u52A8\u5230\u5206\u7EC4\u6240\u5728\u4F4D\u7F6E\uFF09\uFF0C\u5173\u95ED\u67D0\u4E2A\u6807\u7B7E\u9875\u7684\u4FA7\u8FB9\u680F\u6216\u5207\u56DE\u5168\u5C40\u6A21\u5F0F\u65F6\u4F1A\u79FB\u51FA\u5206\u7EC4"},header:{docTitle:"AI Helper - \u6A21\u578B\u95EE\u7B54",settingsTitle:"\u63D2\u4EF6\u8BBE\u7F6E",switchAgent:"\u5207\u6362\u52A9\u624B",defaultAssistant:"\u{1F916} \u9ED8\u8BA4\u52A9\u624B",notConnected:"\u672A\u8FDE\u63A5",agentAddress:"\u4EE3\u7406\u5730\u5740",copyAgentAddress:"\u590D\u5236\u4EE3\u7406\u5730\u5740",refreshAgentStatus:"\u5237\u65B0\u4EE3\u7406\u5728\u7EBF\u72B6\u6001",restart:"\u91CD\u542F",restartAgent:"\u91CD\u542F\u4EE3\u7406\u670D\u52A1",update:"\u66F4\u65B0",updateAndRestart:"\u66F4\u65B0\u5E76\u91CD\u542F\u4EE3\u7406",stop:"\u505C\u6B62",stopAgent:"\u505C\u6B62\u4EE3\u7406\u670D\u52A1",addEditAgent:"\u65B0\u589E/\u7F16\u8F91\u4EE3\u7406",addEditAssistant:"\u65B0\u589E/\u7F16\u8F91\u52A9\u624B",manageKnowledge:"\u7BA1\u7406\u77E5\u8BC6\u5E93",moreActions:"\u66F4\u591A\u64CD\u4F5C",clearChat:"\u6E05\u9664\u5BF9\u8BDD",exportChat:"\u5BFC\u51FA\u5BF9\u8BDD",importChat:"\u5BFC\u5165\u5BF9\u8BDD",prototypeLibrary:"\u539F\u578B\u9875\u9762\u5E93",tokenStats:"Token \u7EDF\u8BA1",auditLog:"\u547D\u4EE4\u6267\u884C\u5BA1\u8BA1",shortcuts:"\u67E5\u770B\u5FEB\u6377\u952E",versionInfo:"\u7248\u672C\u4FE1\u606F",detachTitle:"\u8131\u79BB\u4E3A\u72EC\u7ACB\u7A97\u53E3",attachTitle:"\u56DE\u5F52\u4FA7\u8FB9\u680F"},detach:{taskRunning:"\u4EFB\u52A1\u6267\u884C\u4E2D\uFF0C\u8BF7\u7B49\u5F85\u5B8C\u6210\u540E\u518D\u64CD\u4F5C"},session:{allSessions:"\u5168\u90E8\u4F1A\u8BDD",newSessionTitle:"\u65B0\u5EFA\u4F1A\u8BDD (Alt+N)",searchPlaceholder:"\u641C\u7D22\u4F1A\u8BDD...",closeAll:"\u5173\u95ED\u5168\u90E8",renameTitle:"\u91CD\u547D\u540D\u4F1A\u8BDD",renamePlaceholder:"\u8BF7\u8F93\u5165\u4F1A\u8BDD\u540D\u79F0",confirmCloseTitle:"\u786E\u8BA4\u5173\u95ED\u4F1A\u8BDD",confirmCloseMessage:"\u786E\u5B9A\u8981\u5173\u95ED\u8BE5\u4F1A\u8BDD\u5417\uFF1F\u6B64\u64CD\u4F5C\u4E0D\u53EF\u64A4\u9500\u3002"},chat:{welcomeTitle:"\u5F00\u59CB\u5BF9\u8BDD",welcomeSubtitle:"\u8F93\u5165\u60A8\u7684\u95EE\u9898\uFF0CAI \u52A9\u624B\u5C06\u4E3A\u60A8\u89E3\u7B54",askBasedOnSelection:"\u57FA\u4E8E\u9009\u4E2D\u5185\u5BB9\u63D0\u95EE",confirmClearTitle:"\u786E\u8BA4\u6E05\u9664",confirmClearMessage:"\u786E\u5B9A\u8981\u6E05\u9664\u6240\u6709\u5BF9\u8BDD\u5386\u53F2\u5417\uFF1F",confirmDeletePromptTitle:"\u786E\u8BA4\u5220\u9664",confirmDeletePromptMessage:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u63D0\u793A\u8BCD\u5417\uFF1F",requestFailed:"\u8BF7\u6C42\u5931\u8D25: {message}",networkError:"\u7F51\u7EDC\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5",timeoutError:"\u8BF7\u6C42\u8D85\u65F6: {message}",taskInterruptedSwRestart:"\u540E\u53F0\u670D\u52A1\u5F02\u5E38\u91CD\u542F\uFF0CAPI \u8C03\u7528\u5DF2\u4E2D\u65AD",quote:"\u5F15\u7528",export:"\u5BFC\u51FA",quoteTitle:"\u5F15\u7528\u6B64\u6D88\u606F",quotedPrefix:"\u{1F4AC} \u5DF2\u5F15\u7528: {text}",navPrevTitle:"\u4E0A\u4E00\u6761\u6D88\u606F (Alt+\u2191)\uFF0CCtrl/Cmd+\u70B9\u51FB\u56DE\u5230\u6700\u9876\u7AEF",navNextTitle:"\u4E0B\u4E00\u6761\u6D88\u606F (Alt+\u2193)\uFF0CCtrl/Cmd+\u70B9\u51FB\u8DF3\u5230\u5E95\u7AEF",navQuestionTitle:"\u95EE\u9898\u5217\u8868",navEmptyLabel:"\u6682\u65E0\u95EE\u9898",navQuestionNoText:"(\u56FE\u7247/\u9644\u4EF6\u6D88\u606F)"},toolPanel:{title:"\u5DE5\u5177\u914D\u7F6E",searchPlaceholder:"\u641C\u7D22\u5DE5\u5177\u540D\u79F0\u6216\u63CF\u8FF0...",categoryAll:"\u5168\u90E8",preselect:"\u5DE5\u5177\u9884\u7B5B\u9009",preselectHint:`\u5F00\u542F\uFF1AAI \u5148\u5224\u65AD\u54EA\u4E9B\u5DE5\u5177\u53EF\u80FD\u7528\u5F97\u4E0A\uFF0C\u53EA\u4F20\u76F8\u5173\u5DE5\u5177\u3002\u597D\u5904\u662F Token \u7701\u4E86\uFF0C\u4F46\u4E07\u4E00\u5224\u65AD\u4E0D\u51C6\uFF0C\u6F0F\u6389\u4E86\u5173\u952E\u5DE5\u5177\uFF0C\u4EFB\u52A1\u53EF\u80FD\u505A\u4E0D\u597D
9
+ \u5173\u95ED\uFF1A\u5168\u90E8\u542F\u7528\u7684\u5DE5\u5177\u4E00\u6B21\u6027\u7ED9\u6A21\u578B\u3002\u6CA1\u6709\u5224\u65AD\u5F00\u9500\uFF0C\u542F\u52A8\u66F4\u5FEB\uFF0C\u4F46\u5DE5\u5177\u592A\u591A\u4F1A\u6D6A\u8D39 Token`,confirmHint:`\u542F\u7528\u540E\uFF0C\u5F53\u6A21\u578B\u6267\u884C\u654F\u611F\u64CD\u4F5C\uFF08\u5DE5\u5177\u8C03\u7528\u3001\u547D\u4EE4\u6267\u884C\u7B49\uFF09\u65F6\uFF0C\u4F1A\u5F39\u51FA\u786E\u8BA4\u6846\u7B49\u5F85\u7528\u6237\u786E\u8BA4\u3002
10
+ \u5173\u95ED\u540E\uFF0C\u6240\u6709\u64CD\u4F5C\u5C06\u76F4\u63A5\u653E\u884C\u6267\u884C\uFF0C\u65E0\u9700\u786E\u8BA4\u3002`,clearSearch:"\u6E05\u9664\u641C\u7D22",configBtnTitle:"\u70B9\u51FB\u6253\u5F00\u5DE5\u5177\u8BE6\u7EC6\u914D\u7F6E"},toolStats:{title:"\u{1F4CA} \u5DE5\u5177\u4F7F\u7528\u7EDF\u8BA1",subtitle:"\u5404\u5DE5\u5177\u8C03\u7528\u9891\u7387\u3001\u6210\u529F\u7387\u3001\u5E73\u5747\u8017\u65F6",usedTools:"\u5DF2\u4F7F\u7528\u5DE5\u5177",calls:"\u8C03\u7528",success:"\u6210\u529F",successRate:"\u6210\u529F\u7387",avgDuration:"\u5E73\u5747\u8017\u65F6",unusedTools:"\u672A\u4F7F\u7528\u5DE5\u5177",noData:"\u6682\u65E0\u7EDF\u8BA1\u6570\u636E",btnTitle:"\u5DE5\u5177\u4F7F\u7528\u7EDF\u8BA1",clearTitle:"\u6E05\u7A7A\u7EDF\u8BA1"},tokenStatsPanel:{title:"\u{1FA99} Token \u4F7F\u7528\u7EDF\u8BA1",subtitle:"\u5355\u6B21\u95EE\u7B54 ReAct \u4F1A\u8BDD\u7EF4\u5EA6 & \u603B\u4F53\u7EF4\u5EA6",currentSession:"\u5F53\u524D\u4F1A\u8BDD",globalStats:"\u5168\u5C40\u7EDF\u8BA1",recentCalls:"\u8FD1\u671F\u8C03\u7528",noData:"\u6682\u65E0\u7EDF\u8BA1\u6570\u636E",tabTrend:"\u8D8B\u52BF",tabDistribution:"\u5206\u5E03",tabGlobal:"\u5168\u5C40",timeRangeToday:"\u4ECA\u65E5",timeRangeWeek:"\u672C\u5468",timeRangeMonth:"\u672C\u6708",timeRangeAll:"\u5168\u90E8",globalSparklineTitle:"\u6700\u8FD1 30 \u5929\u8D8B\u52BF"},customConfirm:{defaultTitle:"\u786E\u8BA4\u64CD\u4F5C"},promptDialog:{title:"\u63D0\u793A"},promptManager:{title:"\u63D0\u793A\u8BCD\u7BA1\u7406",codePlaceholder:"\u7F16\u7801\uFF08\u5982: code\uFF09",contentPlaceholder:"\u63D0\u793A\u8BCD\u5185\u5BB9",addPrompt:"\u6DFB\u52A0\u63D0\u793A\u8BCD"},clarify:{title:"\u9700\u8981\u60A8\u7684\u6F84\u6E05",selectOption:"\u8BF7\u9009\u62E9\u4E00\u4E2A\u9009\u9879",inputPlaceholder:"\u8BF7\u8F93\u5165\u8865\u5145\u4FE1\u606F\uFF08\u53EF\u9009\uFF09...",customPlaceholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u81EA\u5B9A\u4E49\u5185\u5BB9...",additionalTitle:"\u8865\u5145\u8BF4\u660E\uFF08\u53EF\u9009\uFF09",additionalHint:"\u5982\u679C\u60A8\u6709\u66F4\u591A\u76F8\u5173\u4FE1\u606F\uFF0C\u53EF\u4EE5\u5728\u6B64\u8865\u5145\u8BF4\u660E",remainingTime:"\u5269\u4F59\u65F6\u95F4: 3:00"},prototype:{previewTitle:"UI \u539F\u578B\u9884\u89C8",continueOptimize:"\u{1F4A1} \u7EE7\u7EED\u4F18\u5316",libraryTitle:"\u{1F3A8} \u539F\u578B\u9875\u9762\u5E93",searchPlaceholder:"\u641C\u7D22\u539F\u578B...",sortTimeNew:"\u65F6\u95F4 (\u65B0\u2192\u65E7)",sortTimeOld:"\u65F6\u95F4 (\u65E7\u2192\u65B0)",sortTitleAz:"\u6807\u9898 (A\u2192Z)",sortTitleZa:"\u6807\u9898 (Z\u2192A)",empty:"\u6682\u65E0\u539F\u578B",zoomOut:"\u7F29\u5C0F (Ctrl+\u6EDA\u8F6E)",zoomReset:"\u70B9\u51FB\u91CD\u7F6E",resetZoom:"\u70B9\u51FB\u91CD\u7F6E",zoomIn:"\u653E\u5927 (Ctrl+\u6EDA\u8F6E)",download:"\u4E0B\u8F7D",openInTab:"\u65B0\u6807\u7B7E\u9875\u6253\u5F00",openInNewTab:"\u65B0\u6807\u7B7E\u9875\u6253\u5F00",openLocal:"\u672C\u5730\u6D4F\u89C8\u5668\u6253\u5F00"},shortcuts:{title:"\u2328\uFE0F \u5FEB\u6377\u952E",sendMessage:"\u53D1\u9001\u6D88\u606F",newLine:"\u6362\u884C",inputHistory:"\u8F93\u5165\u5386\u53F2\uFF08\u8F93\u5165\u6846\u5185\uFF09",clearInput:"\u6E05\u7A7A\u8F93\u5165\u6846",keyColumn:"\u5FEB\u6377\u952E",functionColumn:"\u529F\u80FD",platformColumn:"\u5E73\u53F0",platformWinMac:"Win / Mac",prevMessage:"\u8DF3\u8F6C\u5230\u4E0A\u4E00\u6761\u6D88\u606F",nextMessage:"\u8DF3\u8F6C\u5230\u4E0B\u4E00\u6761\u6D88\u606F",colShortcut:"\u5FEB\u6377\u952E",colFunction:"\u529F\u80FD",colPlatform:"\u5E73\u53F0",gotoPrev:"\u8DF3\u8F6C\u5230\u4E0A\u4E00\u6761\u6D88\u606F",gotoNext:"\u8DF3\u8F6C\u5230\u4E0B\u4E00\u6761\u6D88\u606F",scrollTop:"\u56DE\u5230\u5BF9\u8BDD\u9876\u90E8",scrollBottom:"\u8DF3\u5230\u5BF9\u8BDD\u5E95\u90E8",fullScreenshot:"\u5168\u9875\u9762\u622A\u56FE",areaScreenshot:"\u533A\u57DF\u622A\u56FE",regionScreenshot:"\u533A\u57DF\u622A\u56FE",toggleToolConfig:"\u6253\u5F00/\u5173\u95ED\u5DE5\u5177\u914D\u7F6E",openShortcutsPanel:"\u6253\u5F00\u5FEB\u6377\u952E\u9762\u677F",openShortcutPanel:"\u6253\u5F00\u5FEB\u6377\u952E\u9762\u677F",newSession:"\u65B0\u5EFA\u4F1A\u8BDD",closeSession:"\u5173\u95ED\u5F53\u524D\u4F1A\u8BDD",closeCurrentSession:"\u5173\u95ED\u5F53\u524D\u4F1A\u8BDD",editLastMessage:"\u7F16\u8F91\u6700\u8FD1\u4E00\u6761\u7528\u6237\u6D88\u606F"},versionInfo:{title:"\u2139\uFE0F \u7248\u672C\u4FE1\u606F",version:"\u7248\u672C\u53F7",tag:"Git Tag",commit:"Git \u63D0\u4EA4",publishedAt:"\u53D1\u5E03\u65F6\u95F4",website:"\u5B98\u7F51",discussions:"\u8BA8\u8BBA\u9891\u9053",reportIssue:"\u4E0A\u62A5\u95EE\u9898",githubRepo:"GitHub \u4ED3\u5E93",giteeRepo:"Gitee \u4ED3\u5E93",copy:"\u590D\u5236\u4FE1\u606F"},imageEditor:{editImage:"\u7F16\u8F91\u56FE\u7247",brush:"\u753B\u7B14 (B)",rect:"\u77E9\u5F62 (R)",ellipse:"\u692D\u5706 (E)",arrow:"\u7BAD\u5934 (A)",line:"\u76F4\u7EBF (L)",undo:"\u64A4\u9500 (Ctrl+Z)",confirm:"\u786E\u8BA4 (Enter)",cancel:"\u53D6\u6D88 (Esc)",downloadImage:"\u4E0B\u8F7D\u56FE\u7247",prev:"\u4E0A\u4E00\u5F20",next:"\u4E0B\u4E00\u5F20",prevImage:"\u4E0A\u4E00\u5F20",nextImage:"\u4E0B\u4E00\u5F20",brushSize:"\u753B\u7B14\u7C97\u7EC6",eraser:"\u6A61\u76AE\u64E6"},chatExport:{selectCurrentOnly:"\u4EC5\u9009\u5F53\u524D",selectedCount:"\u5DF2\u9009 {count} \u4E2A",exportSelected:"\u5BFC\u51FA\u9009\u4E2D",title:"\u5BFC\u51FA\u4F1A\u8BDD",exportSessions:"\u5BFC\u51FA\u4F1A\u8BDD"},agentEditor:{createNew:"\u521B\u5EFA\u65B0\u52A9\u624B",namePlaceholder:"\u52A9\u624B\u540D\u79F0",icon:"\u56FE\u6807",descPlaceholder:"\u8FD9\u4E2A\u52A9\u624B\u64C5\u957F\u4EC0\u4E48\uFF1F",templateQuickCreate:"\u6A21\u677F\u5FEB\u901F\u521B\u5EFA",promptPlaceholder:"\u4F60\u662F\u4E00\u4E2A\u4E13\u4E1A\u7684...",availableTools:"\u53EF\u7528\u5DE5\u5177",availableSkills:"\u53EF\u7528\u6280\u80FD",modelSettings:"\u6A21\u578B\u8BBE\u7F6E\uFF08\u7559\u7A7A\u5219\u4F7F\u7528\u5168\u5C40\u8BBE\u7F6E\uFF09",modelPlaceholder:"\u9009\u62E9\u6216\u8F93\u5165\u6A21\u578B\u540D\u79F0",allowSubAgent:"\u5141\u8BB8\u4F5C\u4E3A\u5B50\u52A9\u624B\u88AB\u8C03\u5EA6",name:"\u540D\u79F0",desc:"\u7B80\u77ED\u63CF\u8FF0",nameLabel:"\u540D\u79F0",descLabel:"\u7B80\u77ED\u63CF\u8FF0",selectTemplate:"-- \u9009\u62E9\u6A21\u677F\uFF08\u53EF\u9009\uFF09 --",systemPrompt:"\u7CFB\u7EDF\u63D0\u793A\u8BCD\uFF08\u5B9A\u4E49\u52A9\u624B\u7684\u89D2\u8272\u548C\u80FD\u529B\uFF09",inheritGlobalToolsHint:"\uFF08\u4E0D\u52FE\u9009\u5219\u7EE7\u627F\u5168\u5C40\u5DE5\u5177\u8BBE\u7F6E\uFF09",inheritGlobalSkillsHint:"\uFF08\u4E0D\u52FE\u9009\u5219\u4F7F\u7528\u5168\u90E8\u542F\u7528\u6280\u80FD\uFF09",toolsInheritGlobal:"\uFF08\u4E0D\u52FE\u9009\u5219\u7EE7\u627F\u5168\u5C40\u5DE5\u5177\u8BBE\u7F6E\uFF09",skillsInheritAll:"\uFF08\u4E0D\u52FE\u9009\u5219\u4F7F\u7528\u5168\u90E8\u542F\u7528\u6280\u80FD\uFF09",noSetting:"\u4E0D\u8BBE\u7F6E\uFF08\u4F7F\u7528\u5168\u5C40\uFF09",noPreset:"\u4E0D\u8BBE\u7F6E\uFF08\u4F7F\u7528\u5168\u5C40\uFF09",deleteTitle:"\u5220\u9664\u6B64\u52A9\u624B",deleteAgentTitle:"\u5220\u9664\u6B64\u52A9\u624B"},auditLog:{title:"\u{1F4CB} \u547D\u4EE4\u6267\u884C\u5BA1\u8BA1",filterAll:"\u5168\u90E8",filterCommand:"\u547D\u4EE4\u6267\u884C",filterFile:"\u6587\u4EF6\u64CD\u4F5C",filterAuth:"\u8BA4\u8BC1",filterSecurity:"\u5B89\u5168",filterSystem:"\u7CFB\u7EDF",recent50:"\u6700\u8FD150\u6761",recent100:"\u6700\u8FD1100\u6761",recent200:"\u6700\u8FD1200\u6761",recent500:"\u6700\u8FD1500\u6761",searchPlaceholder:"\u641C\u7D22\u64CD\u4F5C\u540D\u3001\u547D\u4EE4\u6216\u8DEF\u5F84...",categoryFilter:"\u5206\u7C7B\u7B5B\u9009:",countLabel:"\u6761\u6570:",clearSearch:"\u6E05\u9664",empty:"\u6682\u65E0\u5BA1\u8BA1\u65E5\u5FD7",noLogs:"\u6682\u65E0\u5BA1\u8BA1\u65E5\u5FD7",defaultRange:"\u9ED8\u8BA4\u67E5\u8BE2\u6700\u8FD17\u5929\u7684\u5BA1\u8BA1\u65E5\u5FD7"},input:{atHint:"\u63D0\u793A\u8BCD (\u5355\u51FB) / \u7F51\u9875 (Ctrl/Cmd+\u5355\u51FB)",placeholder:"\u8F93\u5165'/'\u5FEB\u6377\u63D0\u793A\u3001'@'\u5207\u6362\u52A9\u624B\u6216\u7F51\u9875\u3001'$'\u9009\u62E9\u5DE5\u4F5C\u76EE\u5F55\u6587\u4EF6\u3001'\u2191\u2193'\u5207\u6362\u5386\u53F2\u8F93\u5165\u3001Esc\u6E05\u7A7A",send:"\u53D1\u9001",clearSelection:"\u53D6\u6D88\u9009\u4E2D\u5185\u5BB9",pageLabel:"\u{1F310} \u7F51\u9875",clearPage:"\u53D6\u6D88\u7F51\u9875",mcpLabel:"\u{1F50C} MCP",clearMcp:"\u53D6\u6D88MCP\u670D\u52A1",skillLabel:"\u{1F9E9} \u6280\u80FD",clearSkill:"\u53D6\u6D88\u6280\u80FD",screenshotTitle:"\u622A\u53D6\u5F53\u524D\u9875\u9762",attachFileTitle:"\u4E0A\u4F20\u6587\u4EF6\uFF08PDF/Word/Excel/\u6587\u672C\uFF09",screenshot:"\u622A\u53D6\u5F53\u524D\u9875\u9762",uploadFile:"\u4E0A\u4F20\u6587\u4EF6\uFF08PDF/Word/Excel/\u6587\u672C\uFF09",aiDisclaimer:"\u5185\u5BB9\u7531 AI \u751F\u6210\uFF0C\u4EC5\u4F9B\u53C2\u8003",addMenuTitle:"\u6DFB\u52A0\u5185\u5BB9",addMenuPrompt:"\u63D0\u793A\u8BCD",addMenuScreenshot:"\u622A\u56FE",addMenuScreenshotFull:"\u6574\u9875\u622A\u56FE",addMenuScreenshotFullDesc:"\u622A\u53D6\u5F53\u524D\u53EF\u89C1\u9875\u9762",addMenuScreenshotRegion:"\u533A\u57DF\u622A\u56FE",addMenuScreenshotRegionDesc:"\u62D6\u62FD\u6846\u9009\u9875\u9762\u533A\u57DF",addMenuFile:"\u9644\u4EF6",addMenuSwitches:"\u5F00\u5173"},model:{selectModel:"\u9009\u62E9\u6A21\u578B",temperature:"\u6E29\u5EA6"},sectionSelect:{searchPlaceholder:"\u8F93\u5165\u5173\u952E\u5B57\u8FC7\u6EE4\u2026",noMatch:"\u65E0\u5339\u914D\u9879"},provider:{label:"API \u5382\u5546",manage:"\u7BA1\u7406\u5382\u5546\u914D\u7F6E"},promptSelector:{prompts:"\u63D0\u793A\u8BCD",skills:"\u6280\u80FD",pages:"\u7F51\u9875",agents:"\u52A9\u624B",proxies:"\u4EE3\u7406",knowledge:"\u77E5\u8BC6\u5E93",pagesCount:"\u7F51\u9875 ({count})",agentsCount:"\u52A9\u624B ({count})",proxiesCount:"\u4EE3\u7406 ({count})",knowledgeCount:"\u77E5\u8BC6\u5E93 ({count})",headerHint:"\u65B9\u5411\u952E\u5207\u6362 \xB7 Enter\u53D1\u9001 \xB7 Ctrl+Enter\u5E26\u5165\u6587\u672C\u6846",agentHeaderHint:"\u65B9\u5411\u952E\u5207\u6362 \xB7 Enter\u9009\u62E9 \xB7 Esc\u53D6\u6D88",switchHint:"\u65B9\u5411\u952E\u5207\u6362 \xB7 Enter\u53D1\u9001 \xB7 Ctrl+Enter\u5E26\u5165\u6587\u672C\u6846",switchHintSelect:"\u65B9\u5411\u952E\u5207\u6362 \xB7 Enter\u9009\u62E9 \xB7 Ctrl+Enter\u9009\u4E2D\u5E76\u5173\u95ED \xB7 Esc\u53D6\u6D88",mergedTitle:"\u805A\u5408\u641C\u7D22",mergedTitleCount:"\u805A\u5408\u641C\u7D22 ({count})"},memory:{label:"\u8BB0\u5FC6",historyLimit:"\u8BB0\u5FC6\u5386\u53F2\u9650\u5236",hint:"\u8BB0\u5FC6\u8D8A\u591A\uFF0C\u4E0A\u4E0B\u6587\u8D8A\u8FDE\u8D2F\uFF0C\u4F46 token \u6D88\u8017\u4E5F\u8D8A\u5927\uFF1B\u8BB0\u5FC6\u592A\u5C11\uFF0C\u5219\u53EF\u80FD\u65E0\u6CD5\u7ED3\u5408\u524D\u6587\u51C6\u786E\u56DE\u7B54\u3002",unlimited:"\u4E0D\u9650\u5236",recent200:"\u6700\u8FD1200\u6761",recent100:"\u6700\u8FD1100\u6761",recent50:"\u6700\u8FD150\u6761",recent20:"\u6700\u8FD120\u6761",recent10:"\u6700\u8FD110\u6761",recent5:"\u6700\u8FD15\u6761",recent2:"\u6700\u8FD12\u6761",custom:"\u81EA\u5B9A\u4E49:",unit:"\u6761"},toggle:{memoryHint:"\u5F00\u542F\u540E\uFF0C\u524D\u6587\u95EE\u7B54\u5C06\u4F5C\u4E3A\u4E0A\u4E0B\u6587\uFF08\u9ED8\u8BA4\u5168\u90E8\uFF0C\u6761\u6570\u53EF\u914D\u7F6E\uFF09",toolsHint:"\u5DE5\u5177\u603B\u5F00\u5173\uFF1A\u70B9\u51FB\u5F00\u542F\u6216\u5173\u95ED\u5DE5\u5177\u8C03\u7528",selectionHint:"\u5F00\u542F\u540E\uFF0C\u5212\u8BCD\u9009\u4E2D\u5185\u5BB9\u65F6\u53EF\u5FEB\u901F\u63D0\u95EE",tools:"\u5DE5\u5177",selection:"\u5212\u8BCD",modelSettings:"\u6A21\u578B\u8BBE\u7F6E",toolsConfigTitle:"\u70B9\u51FB\u6253\u5F00\u5DE5\u5177\u8BE6\u7EC6\u914D\u7F6E"},selection:{clearSelection:"\u53D6\u6D88\u9009\u4E2D\u5185\u5BB9",page:"\u{1F310} \u7F51\u9875",clearPage:"\u53D6\u6D88\u7F51\u9875",clearMcp:"\u53D6\u6D88MCP\u670D\u52A1",skill:"\u{1F9E9} \u6280\u80FD",clearSkill:"\u53D6\u6D88\u6280\u80FD"},toolCategory:{page_interaction:"\u{1F5B1}\uFE0F \u9875\u9762\u4EA4\u4E92",form_operation:"\u{1F4DD} \u8868\u5355\u64CD\u4F5C",content_extraction:"\u{1F4C4} \u5185\u5BB9\u63D0\u53D6",tab_management:"\u{1F4D1} \u6807\u7B7E\u9875\u7BA1\u7406",bookmark_history:"\u{1F516} \u4E66\u7B7E\u5386\u53F2",storage_management:"\u{1F4BE} \u5B58\u50A8\u7BA1\u7406",network_request:"\u{1F310} \u7F51\u7EDC\u8BF7\u6C42",media_output:"\u{1F4F7} \u5A92\u4F53\u4E0E\u8F93\u51FA",debug_dev:"\u{1F527} \u8C03\u8BD5\u5F00\u53D1",ai_collaboration:"\u{1F916} AI\u534F\u4F5C",local_agent:"\u{1F5A5}\uFE0F \u4EE3\u7406",mcp:"\u{1F50C} MCP",knowledge:"\u{1F4DA} \u77E5\u8BC6\u5E93"},presetMode:{preciseLabel:"\u7CBE\u51C6\u4E25\u8C28",preciseTip:"\u6539\u9519\u3001\u8C03\u8BD5\u3001\u8981\u51C6\u786E\u7B54\u6848\uFF08\u4F4E\u968F\u673A\u6027\uFF0C\u9002\u5408\u4FEE bug\uFF09",generalLabel:"\u65E5\u5E38\u901A\u7528",generalTip:"\u591A\u6570\u573A\u666F\u90FD\u597D\u7528\uFF08\u5E73\u8861\u7A33\u5B9A\u4E0E\u7075\u6D3B\uFF0C\u9002\u5408\u5199\u811A\u672C\uFF09",divergentLabel:"\u601D\u8DEF\u53D1\u6563",divergentTip:"\u8981\u591A\u79CD\u65B9\u6848\u505A\u5BF9\u6BD4\uFF08\u9002\u5408\u91CD\u6784\u3001\u65B9\u6848\u5BF9\u6BD4\uFF09",creativeLabel:"\u521B\u610F\u8111\u66B4",creativeTip:"\u5199\u6587\u6848\u3001\u8D77\u540D\u3001\u5934\u8111\u98CE\u66B4\uFF08\u9AD8\u968F\u673A\u6027\uFF0C\u4E0D\u5EFA\u8BAE\u6B63\u5F0F\u4EE3\u7801\uFF09"},tool:{agent_file:"\u4EE3\u7406\u672C\u5730\u6587\u4EF6\u64CD\u4F5C\uFF08\u8BFB\u53D6/\u5199\u5165/\u5217\u8868/\u5220\u9664/\u4E0B\u8F7D\uFF09",agent_trash:"\u7BA1\u7406\u4EE3\u7406\u56DE\u6536\u7AD9\uFF08\u67E5\u770B/\u6062\u590D\u5DF2\u5220\u9664\u9879\uFF09",agent_exec:"\u5728\u4EE3\u7406\u673A\u5668\u4E0A\u6267\u884C Shell \u547D\u4EE4",agent_search:"\u5728\u4EE3\u7406\u673A\u5668\u4E0A\u641C\u7D22\u6587\u4EF6\u6216\u6587\u4EF6\u5185\u5BB9",agent_skill:"\u52A0\u8F7D\u6216\u8FD0\u884C Skill\uFF08run=\u5DE5\u4F5C\u6D41\uFF0Cload=Agent Skill\uFF09",manage_agent:"\u67E5\u770B\u6216\u5207\u6362\u5DF2\u914D\u5BF9\u7684 AI \u4EE3\u7406",exec_log:"\u63D0\u53D6\u6267\u884C\u65E5\u5FD7\uFF0C\u5206\u6790\u6210\u529F\u8DEF\u5F84\u4E0E\u5931\u8D25\u6559\u8BAD",clarify_question:"\u5411\u7528\u6237\u63D0\u95EE\u6F84\u6E05\uFF0C\u63D0\u4F9B\u9009\u9879\u4F9B\u9009\u62E9",highlight_text:"\u5728\u9875\u9762\u4E0A\u9AD8\u4EAE\u6587\u672C\uFF0C\u7528\u4E8E\u89C6\u89C9\u5F3A\u8C03",plan_task:"\u5C06\u590D\u6742\u4EFB\u52A1\u89C4\u5212\u62C6\u89E3\u4E3A\u5B50\u4EFB\u52A1",search_chats:"\u641C\u7D22\u5386\u53F2\u5BF9\u8BDD\u8BB0\u5F55",preview_ui:"\u9884\u89C8\u6216\u83B7\u53D6 UI \u539F\u578B",dispatch_task:"\u5411\u5B50\u4EE3\u7406\u6D3E\u53D1\u4EFB\u52A1",interact_element:"\u4EA4\u4E92\u9875\u9762\u5143\u7D20\uFF08ref/\u6587\u672C/\u9009\u62E9\u5668\u5B9A\u4F4D\uFF1B\u652F\u6301 click/hover/type \u8F93\u5165\uFF09",scroll_to:"\u6EDA\u52A8\u9875\u9762\u5230\u76EE\u6807\u4F4D\u7F6E\uFF08\u5143\u7D20/\u5750\u6807/\u6587\u672C\uFF09",wait_element:"\u7B49\u5F85\u5143\u7D20\u51FA\u73B0/\u6D88\u5931/\u53EF\u89C1\u6027\u53D8\u5316",drag_drop:"\u62D6\u62FD\u5143\u7D20\uFF08\u26A0\uFE0F \u8BD5\u9A8C\u6027\uFF0C\u591A\u6570\u9875\u9762\u53EF\u80FD\u65E0\u6548\uFF09",wait_navigation:"\u7B49\u5F85\u9875\u9762\u5BFC\u822A\u5B8C\u6210",handle_dialog:"\u5904\u7406\u9875\u9762\u5F39\u7A97\uFF08\u81EA\u52A8\u786E\u8BA4/\u53D6\u6D88/\u6062\u590D alert/confirm/prompt\uFF09",fill_form:"\u6279\u91CF\u586B\u5199\u591A\u4E2A\u8868\u5355\u5B57\u6BB5\uFF08\u652F\u6301 ref \u5B9A\u4F4D\uFF09",keyboard_input:"\u8F93\u5165\u6587\u672C\u6216\u6D3E\u53D1\u6309\u952E\u4E8B\u4EF6\uFF08\u53EF\u7ED5\u8FC7 React/Vue \u53D7\u63A7\u7EC4\u4EF6\uFF09",file_upload:"\u4E0A\u4F20\u6587\u4EF6\u5230\u9875\u9762",select_dropdown:"\u4E0B\u62C9\u6846\u9009\u62E9\uFF08\u652F\u6301\u81EA\u5B9A\u4E49\u7EC4\u4EF6\uFF09",page_content:"\u83B7\u53D6\u9875\u9762\u6587\u672C\u6216 HTML \u5185\u5BB9",extract_data:"\u63D0\u53D6\u7ED3\u6784\u5316\u6570\u636E\uFF08\u8868\u683C/\u94FE\u63A5/\u56FE\u7247/\u8868\u5355/\u5143\u4FE1\u606F\uFF09",query_elements:"\u67E5\u8BE2\u53EF\u4EA4\u4E92\u5143\u7D20\uFF0C\u8FD4\u56DE\u6811\u5F62\u5FEB\u7167\u4E0E ref \u7F16\u53F7\uFF08\u6253\u5F00\u7684\u5F39\u7A97/\u83DC\u5355\u63D0\u5347\u5230 [\u6253\u5F00\u5C42]\uFF1B\u53EF\u89C1 iframe \u4EE5 [frame #N] \u533A\u5757\u7EB3\u5165\uFF0C\u5176 ref \u5168\u5C40\u6709\u6548\uFF1B\u540C\u4E00\u5143\u7D20\u7F16\u53F7\u7A33\u5B9A\uFF0C\u9875\u9762\u53D8\u5316\u540E\u9700\u91CD\u65B0\u67E5\u8BE2\uFF1BhasMore \u4E3A\u771F\u65F6\u7528 page \u7FFB\u9875\uFF09",search_in_page:"\u5728\u5F53\u524D\u9875\u9762\u4E2D\u67E5\u627E\u6587\u672C",iframe_content:"\u83B7\u53D6\u9875\u9762\u4E2D iframe \u7684\u5185\u5BB9",scroll_collect:"\u6EDA\u52A8\u5E76\u6536\u96C6\u5185\u5BB9\uFF0C\u9002\u7528\u4E8E\u65E0\u9650\u6EDA\u52A8/\u61D2\u52A0\u8F7D\u9875\u9762",notify:"\u663E\u793A\u6D4F\u89C8\u5668\u901A\u77E5",clipboard:"\u526A\u8D34\u677F\u64CD\u4F5C\uFF08\u590D\u5236/\u7C98\u8D34/\u83B7\u53D6\u9009\u4E2D\u6587\u672C\uFF09",download_file:"\u4E0B\u8F7D\u6587\u4EF6\u5230\u672C\u5730",qrcode:"\u751F\u6210\u4E8C\u7EF4\u7801",capture_page:"\u622A\u53D6\u9875\u9762\u622A\u56FE\uFF08\u4E0B\u8F7D/\u5206\u6790/\u4E24\u8005\uFF09",browser_info:"\u83B7\u53D6\u6D4F\u89C8\u5668\u7248\u672C\u548C\u73AF\u5883\u4FE1\u606F",inject_css:"\u5411\u9875\u9762\u6CE8\u5165\u81EA\u5B9A\u4E49 CSS",agent_memory:"\u957F\u671F\u8BB0\u5FC6\u7BA1\u7406\uFF08\u5B58\u50A8/\u56DE\u5FC6/\u7EF4\u62A4\uFF09",manage_storage:"\u8BFB\u5199\u6D4F\u89C8\u5668 localStorage \u6216 sessionStorage",manage_cookies:"\u83B7\u53D6/\u8BBE\u7F6E/\u5220\u9664/\u5217\u51FA\u6D4F\u89C8\u5668 Cookie",clear_data:"\u6E05\u9664\u7AD9\u70B9\u7684 localStorage/sessionStorage",fetch_url:"\u5411\u6307\u5B9A URL \u53D1\u9001 HTTP GET/POST \u8BF7\u6C42",manage_tab:"\u7BA1\u7406\u6D4F\u89C8\u5668\u6807\u7B7E\u9875\uFF08\u6253\u5F00/\u5207\u6362/\u5173\u95ED/\u5237\u65B0/\u524D\u8FDB\u540E\u9000\uFF09",list_tabs:"\u83B7\u53D6\u5DF2\u6253\u5F00\u7684\u6807\u7B7E\u9875\u5217\u8868",search_browser_data:"\u641C\u7D22\u6D4F\u89C8\u5668\u4E66\u7B7E\u6216\u8BBF\u95EE\u5386\u53F2",debug_page:"\u9AD8\u7EA7\u9875\u9762\u8C03\u8BD5\uFF08CDP\uFF09\uFF1A\u539F\u751F\u8F93\u5165\u4E8B\u4EF6\u3001\u7F51\u7EDC\u6293\u5305\u3001\u6267\u884C JS\u3001\u6574\u9875/\u5143\u7D20\u622A\u56FE\u3001\u8BBE\u5907\u4E0E UA \u6A21\u62DF",knowledge_search:"\u68C0\u7D22\u77E5\u8BC6\u5E93\u83B7\u53D6\u76F8\u5173\u5185\u5BB9\uFF08\u53EA\u8BFB\uFF09",knowledge_ingest:"\u5C06\u6587\u672C/\u672C\u5730\u6587\u4EF6/\u7F51\u9875\u5BFC\u5165\u77E5\u8BC6\u5E93\uFF08\u5199\u5165\u64CD\u4F5C\uFF09",knowledge_list:"\u5217\u51FA\u53EF\u7528\u77E5\u8BC6\u5E93\u53CA\u5176\u6587\u6863\u6570\u91CF"},react:{title:"\u2699\uFE0F \u63A8\u7406\u5FAA\u73AF\u914D\u7F6E",subtitle:"\u63A7\u5236 AI \u63A8\u7406\u5FAA\u73AF\u7684\u884C\u4E3A\u53C2\u6570\uFF08\u9AD8\u7EA7\u914D\u7F6E\uFF09",maxIterations:"\u6700\u5927\u5FAA\u73AF\u6B21\u6570",maxIterationsHint:"\uFF08\u590D\u6742\u4EFB\u52A1\u53EF\u9002\u5F53\u589E\u52A0\uFF09",min:"\u6700\u5C0F: 10",max:"\u6700\u5927: 1000",apiTimeout:"API \u8BF7\u6C42\u8D85\u65F6",apiTimeoutHint:"\uFF08\u5355\u6B21 API \u8C03\u7528\u7684\u6700\u957F\u7B49\u5F85\u65F6\u95F4\uFF09",unitMinute:"\u5206\u949F (min)",min1Minute:"\u6700\u5C0F: 1\u5206\u949F",max10Minutes:"\u6700\u5927: 10\u5206\u949F",max120Minutes:"\u6700\u5927: 120\u5206\u949F",max30Minutes:"\u6700\u5927: 30\u5206\u949F",loopTimeout:"\u6574\u4F53\u5FAA\u73AF\u8D85\u65F6",loopTimeoutHint:"\uFF08\u6574\u4E2A\u63A8\u7406\u5FAA\u73AF\u7684\u6700\u957F\u6267\u884C\u65F6\u95F4\uFF09",toolTimeout:"\u5DE5\u5177\u6267\u884C\u8D85\u65F6",toolTimeoutHint:"\uFF08\u5355\u4E2A\u5DE5\u5177\u6267\u884C\u7684\u6700\u957F\u7B49\u5F85\u65F6\u95F4\uFF09",toolConfirmation:"\u654F\u611F\u64CD\u4F5C\u786E\u8BA4",toolConfirmationHint:"\uFF08\u6A21\u578B\u6267\u884C\u654F\u611F\u64CD\u4F5C\u65F6\uFF0C\u5F39\u7A97\u786E\u8BA4\u540E\u518D\u6267\u884C\uFF09",enabled:"\u5DF2\u542F\u7528",disabled:"\u5DF2\u505C\u7528",toolConfirmationDesc1:"\u542F\u7528\u540E\uFF0C\u5F53\u6A21\u578B\u6267\u884C\u654F\u611F\u64CD\u4F5C\uFF08\u5DE5\u5177\u8C03\u7528\u3001\u547D\u4EE4\u6267\u884C\u7B49\uFF09\u65F6\uFF0C\u4F1A\u5F39\u51FA\u786E\u8BA4\u6846\u7B49\u5F85\u7528\u6237\u786E\u8BA4\u3002",toolConfirmationDesc2:"\u5173\u95ED\u540E\uFF0C\u6240\u6709\u64CD\u4F5C\u5C06\u76F4\u63A5\u653E\u884C\u6267\u884C\uFF0C\u65E0\u9700\u786E\u8BA4\u3002",enableExecutionLog:"\u542F\u7528\u6267\u884C\u65E5\u5FD7",enableExecutionLogHint:"\uFF08\u663E\u793A API \u8C03\u7528\u548C\u5DE5\u5177\u6267\u884C\u7684\u8BE6\u7EC6\u65E5\u5FD7\uFF0C\u5E2E\u52A9\u8C03\u8BD5\u548C\u7406\u89E3 AI \u601D\u8003\u8FC7\u7A0B\uFF09",enableExecutionLogDesc1:'\u542F\u7528\u540E\uFF0C\u6D88\u606F\u5E95\u90E8\u4F1A\u663E\u793A"\u6267\u884C\u65E5\u5FD7"\u6309\u94AE\uFF0C\u70B9\u51FB\u53EF\u67E5\u770B API \u8C03\u7528\u548C\u5DE5\u5177\u6267\u884C\u7684\u8BE6\u7EC6\u8FC7\u7A0B\u3002',enableExecutionLogDesc2:"\u5173\u95ED\u540E\uFF0C\u6D88\u606F\u5E95\u90E8\u4E0D\u518D\u663E\u793A\u8BE5\u6309\u94AE\u3002",streaming:"\u6D41\u5F0F\u8F93\u51FA",streamingHint:"\uFF08\u5F00\u542F\u540E AI \u56DE\u590D\u4F1A\u5B9E\u65F6\u9010\u5B57\u663E\u793A\uFF0C\u63D0\u4F9B\u66F4\u5FEB\u7684\u53CD\u9988\u611F\u77E5\uFF09",streamingDesc1:"\u5F00\u542F\u540E AI \u56DE\u590D\u4F1A\u5B9E\u65F6\u9010\u5B57\u663E\u793A\uFF0C\u4EE3\u7406\u7AEF\u547D\u4EE4\u6267\u884C\u65F6\u4E5F\u4F1A\u5B9E\u65F6\u8F93\u51FA\uFF0C\u63D0\u4F9B\u66F4\u5FEB\u7684\u53CD\u9988\u611F\u77E5\u3002",streamingDesc2:"\u5982\u679C\u9047\u5230\u517C\u5BB9\u6027\u95EE\u9898\uFF0C\u53EF\u5173\u95ED\u6B64\u5F00\u5173\u56DE\u9000\u5230\u4E00\u6B21\u6027\u8F93\u51FA\u6A21\u5F0F\u3002",streamExpandTools:"\u6D41\u5F0F\u5DE5\u5177\u5361\u7247\u9ED8\u8BA4\u5C55\u5F00",streamExpandToolsHint:"\uFF08\u5173\u95ED\u5219\u5DE5\u5177\u5361\u7247\u9ED8\u8BA4\u6298\u53E0\uFF0C\u4EC5\u663E\u793A\u6807\u9898\u4E0E\u72B6\u6001\uFF0C\u70B9\u51FB\u53EF\u5C55\u5F00\u8BE6\u60C5\uFF09",configGuide:"\u{1F4A1} \u914D\u7F6E\u8BF4\u660E",guideReasoningLoop:"\u63A8\u7406\u5FAA\u73AF",guideReasoningLoopDesc:"\u662F AI \u52A9\u624B\u8FDB\u884C\u591A\u6B65\u63A8\u7406\u548C\u5DE5\u5177\u8C03\u7528\u7684\u6838\u5FC3\u673A\u5236\u3002",guideLoopCount:"\u5FAA\u73AF\u6B21\u6570",guideLoopCountDesc:"\uFF1A\u51B3\u5B9A AI \u53EF\u4EE5\u8FDB\u884C\u591A\u5C11\u8F6E\u63A8\u7406-\u884C\u52A8\u5FAA\u73AF",guideTimeout:"\u8D85\u65F6\u8BBE\u7F6E",guideTimeoutDesc:"\uFF1A\u9632\u6B62\u957F\u65F6\u95F4\u7B49\u5F85\u6216\u65E0\u9650\u5FAA\u73AF",guideClarifyWait:"\u6F84\u6E05\u7B49\u5F85",guideClarifyWaitDesc:"\uFF1A\u7528\u6237\u6F84\u6E05\u65F6\u95F4\u4E0D\u8BA1\u5165\u6574\u4F53\u5FAA\u73AF\u8D85\u65F6\uFF08\u6682\u505C\u8BA1\u65F6\uFF09",guideTip:"\u2022 \u5EFA\u8BAE\u6839\u636E\u7F51\u7EDC\u72B6\u51B5\u548C\u4EFB\u52A1\u590D\u6742\u5EA6\u8C03\u6574\u8FD9\u4E9B\u53C2\u6570"},reflection:{title:"\u{1F3AF} AI \u81EA\u6211\u53CD\u601D\u914D\u7F6E",enabled:"\u5DF2\u542F\u7528",subtitle:"\u63A7\u5236 AI \u5BF9\u4EFB\u52A1\u6267\u884C\u7ED3\u679C\u7684\u81EA\u6211\u8BC4\u4F30\u548C\u4FEE\u8BA2\u884C\u4E3A",postReflection:"\u540E\u7F6E\u53CD\u601D",postReflectionHint:"\uFF08\u5B8C\u6210\u540E\u8BC4\u4F30\u7ED3\u679C\u8D28\u91CF\uFF09",subtaskReflection:"\u5B50\u4EFB\u52A1\u53CD\u601D",subtaskReflectionHint:"\uFF08\u9AD8\u7EA7\u529F\u80FD\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF09",configGuide:"\u{1F4A1} \u53CD\u601D\u914D\u7F6E\u8BF4\u660E",guidePostReflection:"\u540E\u7F6E\u53CD\u601D",guidePostReflectionDesc:"\uFF1A\u5728\u63A8\u7406\u5FAA\u73AF\u7ED3\u675F\u540E\uFF0CAI \u4F1A\u5BF9\u6700\u7EC8\u7ED3\u679C\u8FDB\u884C\u81EA\u6211\u8BC4\u4F30\u3002\u5982\u679C\u8BC4\u5206\u4F4E\u4E8E\u9608\u503C\uFF0C\u4F1A\u81EA\u52A8\u4FEE\u8BA2\u6216\u91CD\u65B0\u6267\u884C\u3002",guideSubtaskReflection:"\u5B50\u4EFB\u52A1\u53CD\u601D",guideSubtaskReflectionDesc:"\uFF1A\u5BF9\u4E8E\u590D\u6742\u4EFB\u52A1\u62C6\u89E3\u540E\u7684\u5B50\u4EFB\u52A1\u8FDB\u884C\u5355\u72EC\u8BC4\u4F30\uFF0C\u9ED8\u8BA4\u5173\u95ED\uFF08\u9AD8\u7EA7\u529F\u80FD\uFF09\u3002",guideTip:"\u2022 \u542F\u7528\u53CD\u601D\u4F1A\u589E\u52A0 API \u8C03\u7528\u6B21\u6570\uFF0C\u5EFA\u8BAE\u6839\u636E\u9700\u6C42\u6743\u8861"},toolbar:{title:"\u{1F527} \u5DE5\u5177\u680F\u8BBE\u7F6E",enabled:"\u5DF2\u542F\u7528",subtitle:"\u7BA1\u7406\u5212\u8BCD\u5DE5\u5177\u680F\u7684\u6309\u94AE\u548C\u987A\u5E8F",iconOnly:"\u5DE5\u5177\u680F\u56FE\u6807\u7CBE\u7B80\u6A21\u5F0F\uFF08\u4EC5\u663E\u793A\u56FE\u6807\uFF0C\u4E0D\u663E\u793A\u6587\u5B57\uFF09",addCustomTool:"\uFF0B \u6DFB\u52A0\u81EA\u5B9A\u4E49\u5DE5\u5177",domainBlocklistTitle:"\u57DF\u540D\u5C4F\u853D",domainBlocklistDesc:"\u5728\u6B64\u6DFB\u52A0\u9700\u8981\u5C4F\u853D\u5DE5\u5177\u680F\u7684\u57DF\u540D\uFF0C\u5C4F\u853D\u540E\u8BE5\u57DF\u540D\u4E0B\u4E0D\u518D\u663E\u793A\u5212\u8BCD\u5DE5\u5177\u680F",domainAddPlaceholder:"\u4F8B\u5982\uFF1Aexample.com\uFF08\u4E0D\u542B http/https\uFF09",add:"\u6DFB\u52A0",toolEditModalTitle:"\u6DFB\u52A0\u81EA\u5B9A\u4E49\u5DE5\u5177",toolName:"\u5DE5\u5177\u540D\u79F0",toolNamePlaceholder:"\u4F8B\u5982\uFF1A\u6DA6\u8272\u3001\u6539\u5199\u3001\u4EE3\u7801\u5BA1\u67E5",systemPromptLabel:"\u7CFB\u7EDF\u63D0\u793A\u8BCD",systemPromptHint:"\uFF08\u5B9A\u4E49\u8BE5\u5DE5\u5177\u7684\u884C\u4E3A\uFF09",toolPromptPlaceholder:"\u4F8B\u5982\uFF1A\u4F60\u662F\u4E00\u4E2A\u6587\u672C\u6DA6\u8272\u52A9\u624B\uFF0C\u8BF7\u5C06\u7528\u6237\u8F93\u5165\u7684\u5185\u5BB9\u6DA6\u8272\u5F97\u66F4\u6D41\u7545\u3001\u66F4\u4E13\u4E1A\u3002",builtinBadge:"\u5185\u7F6E",customBadge:"\u81EA\u5B9A\u4E49",moveUp:"\u4E0A\u79FB",moveDown:"\u4E0B\u79FB",dragSort:"\u62D6\u62FD\u6392\u5E8F",editCustomToolTitle:"\u7F16\u8F91\u81EA\u5B9A\u4E49\u5DE5\u5177",toolNameEmpty:"\u5DE5\u5177\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",toolPromptEmpty:"\u7CFB\u7EDF\u63D0\u793A\u8BCD\u4E0D\u80FD\u4E3A\u7A7A",toolNotFound:"\u672A\u627E\u5230\u8BE5\u5DE5\u5177",cannotEditBuiltin:"\u4E0D\u80FD\u7F16\u8F91\u5185\u7F6E\u5DE5\u5177",noBlockedDomains:"\u6682\u65E0\u5C4F\u853D\u57DF\u540D\uFF0C\u5728\u4E0A\u65B9\u8F93\u5165\u57DF\u540D\u6DFB\u52A0",unblock:"\u53D6\u6D88\u5C4F\u853D",domainEmpty:"\u57DF\u540D\u4E0D\u80FD\u4E3A\u7A7A",domainInvalid:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u57DF\u540D\uFF0C\u4F8B\u5982 example.com",domainExists:"\u8BE5\u57DF\u540D\u5DF2\u5B58\u5728"},agentConfig:{title:"\u{1F5A5}\uFE0F \u4EE3\u7406\u914D\u7F6E",subtitle:"\u8FDE\u63A5\u4EE3\u7406\u670D\u52A1\uFF0C\u5B9E\u73B0\u6587\u4EF6\u8BFB\u5199\u3001\u7CFB\u7EDF\u547D\u4EE4\u6267\u884C\u3001\u5BF9\u8BDD\u8BB0\u5FC6\u7BA1\u7406\u3001Skill \u5DE5\u4F5C\u6D41\u53CA MCP \u534F\u8BAE\u6269\u5C55\u7B49\u9AD8\u7EA7\u80FD\u529B\u3002\u652F\u6301\u914D\u7F6E\u5E76\u5339\u914D\u591A\u4E2A\u4EE3\u7406\uFF0C\u4E00\u952E\u8FDE\u63A5\u3002",pairedAgents:"\u5DF2\u914D\u5BF9\u4EE3\u7406",notConnected:"\u672A\u8FDE\u63A5",detailToggle:"\u25B6 \u8BE6\u7EC6\u4FE1\u606F",addAgentTitle:"\u6DFB\u52A0\u65B0\u4EE3\u7406",agentName:"\u4EE3\u7406\u540D\u79F0",agentNameHint:"\uFF08\u81EA\u5B9A\u4E49\uFF0C\u7559\u7A7A\u5219\u81EA\u52A8\u83B7\u53D6\uFF09",agentNamePlaceholder:"\u4F8B\u5982\uFF1A\u529E\u516C\u5BA4 Mac",agentUrl:"\u4EE3\u7406\u5730\u5740",agentUrlHint:"\uFF08\u4EE3\u7406\u670D\u52A1\u7684 HTTP \u5730\u5740\uFF09",pairCode:"\u914D\u5BF9\u7801",pairCodeHint:"\uFF08\u5728 Agent \u7EC8\u7AEF\u7A97\u53E3\u4E2D\u67E5\u770B\uFF09",pairCodePlaceholder:"6\u4F4D\u914D\u5BF9\u7801",connect:"\u8FDE\u63A5",toolCount:"{count} \u4E2A\u5DE5\u5177",selectedTotalCount:"(\u5DF2\u9009 {selected} / \u5171 {total})",toggleCategoryAll:"\u70B9\u51FB\u5207\u6362\u8BE5\u5206\u7C7B\u5168\u9009/\u53D6\u6D88\u5168\u9009",useInstructionTitle:"\u{1F4A1} \u4F7F\u7528\u8BF4\u660E\u53CA\u5B89\u5168\u63D0\u793A",method1:"\u65B9\u5F0F\u4E00\uFF1ANPM \u5168\u5C40\u5B89\u88C5\uFF08\u63A8\u8350\uFF09",method1Step1:"\uFF08\u8981\u6C42 Node.js \u2265 18\uFF09",method1Step2:" \u6216\u7B80\u5199 ",method1Step3:'3. \u7EC8\u7AEF\u663E\u793A 6 \u4F4D\u914D\u5BF9\u7801\uFF0C\u5728\u6B64\u9875\u9762\u586B\u5165\u5E76\u70B9\u51FB"\u8FDE\u63A5"',method2:"\u65B9\u5F0F\u4E8C\uFF1A\u672C\u5730\u6E90\u7801\u8FD0\u884C\uFF08\u5F00\u53D1\u8C03\u8BD5\uFF09",method2Step2:'2. \u7EC8\u7AEF\u663E\u793A 6 \u4F4D\u914D\u5BF9\u7801\uFF0C\u5728\u6B64\u9875\u9762\u586B\u5165\u5E76\u70B9\u51FB"\u8FDE\u63A5"',cmdAlias:"\u547D\u4EE4\u522B\u540D",cmdAliasPrefix:" \u53EF\u7B80\u5199\u4E3A ",cmdAliasSuffix:"\uFF0C\u6240\u6709\u547D\u4EE4\u5747\u652F\u6301",bgRun:"\u540E\u53F0\u8FD0\u884C\uFF1A",bgRunMethod1:"\u3000\u65B9\u5F0F\u4E00\uFF1A",bgRunMethod1Mid:" \u6216 ",bgRunMethod2:"\u3000\u65B9\u5F0F\u4E8C\uFF1A",moreCmd:"\u66F4\u591A\u547D\u4EE4\uFF1A",moreCmdMid:" \u6216 ",securityTitle:"\u26A0\uFE0F \u5B89\u5168\u63D0\u793A",security1:"\u4EE3\u7406\u670D\u52A1\u9ED8\u8BA4\u4EC5\u76D1\u542C\u672C\u673A\u5730\u5740\uFF08127.0.0.1\uFF09\uFF0C\u5982\u9700\u8FDC\u7A0B\u8FDE\u63A5\u8BF7\u4FEE\u6539\u542F\u52A8\u53C2\u6570\u3002",security2:"\u6587\u4EF6\u64CD\u4F5C\u9650\u5236\u5728\u5DE5\u4F5C\u76EE\u5F55\u548C\u767D\u540D\u5355\u5141\u8BB8\u76EE\u5F55\u5185\uFF0C\u4E0D\u53EF\u8D8A\u6743\u8BBF\u95EE\u3002",security3:"\u9AD8\u5371\u547D\u4EE4\u81EA\u52A8\u62E6\u622A\uFF0C\u654F\u611F\u547D\u4EE4\u652F\u6301\u914D\u7F6E\u5316\u786E\u8BA4\u653E\u884C\u3002",addAnotherAgent:"\u518D\u6DFB\u52A0\u4E00\u4E2A\u4EE3\u7406",checking:"\u68C0\u6D4B\u4E2D",connected:"\u5DF2\u8FDE\u63A5",online:"\u5728\u7EBF",offline:"\u79BB\u7EBF",clickToEditName:"\u70B9\u51FB\u7F16\u8F91\u540D\u79F0",currentInUse:"\u5F53\u524D\u4F7F\u7528 \xB7 ",enable:"\u542F\u7528",disable:"\u505C\u7528",disconnect:"\u65AD\u5F00",connectedTo:"\u5DF2\u8FDE\u63A5\u5230: {name}",confirmDeleteAgent:`\u786E\u5B9A\u8981\u5220\u9664\u4EE3\u7406 "{name}" ({url}) \u5417\uFF1F
11
+ \u5220\u9664\u540E\u9700\u91CD\u65B0\u914D\u5BF9\u624D\u80FD\u4F7F\u7528\u3002`,deleteAgentTitle:"\u5220\u9664\u4EE3\u7406",agentDeleted:"\u5DF2\u5220\u9664\u4EE3\u7406: {name}",agentDisabledToast:"\u5DF2\u505C\u7528\u4EE3\u7406: {name}",agentEnabledToast:"\u5DF2\u542F\u7528\u4EE3\u7406: {name}",fetchingAgentInfo:"\u6B63\u5728\u83B7\u53D6\u4EE3\u7406\u4FE1\u606F...",agentUnreachable:"\u4EE3\u7406\u670D\u52A1\u4E0D\u53EF\u8FBE",tokenExpired:"Token \u5DF2\u5931\u6548 - \u8BF7\u91CD\u65B0\u914D\u5BF9",cannotConnectAgent:"\u65E0\u6CD5\u8FDE\u63A5\u5230\u4EE3\u7406 - \u8BF7\u786E\u8BA4\u4EE3\u7406\u670D\u52A1\u5DF2\u542F\u52A8",notConnectedSelect:"\u672A\u8FDE\u63A5 - \u8BF7\u4ECE\u5217\u8868\u4E2D\u9009\u62E9\u4EE3\u7406\u8FDE\u63A5",notConnectedAdd:"\u672A\u8FDE\u63A5 - \u8BF7\u6DFB\u52A0\u4EE3\u7406\u914D\u5BF9",unlimited:"\u65E0\u9650\u5236",idle:"\u7A7A\u95F2",unknownCommand:"(\u672A\u77E5\u547D\u4EE4)",detailVersion:"\u7248\u672C",detailSystem:"\u7CFB\u7EDF",detailHostname:"\u4E3B\u673A\u540D",detailHomeDir:"\u7528\u6237\u76EE\u5F55",detailRunningProcesses:"\u8FD0\u884C\u4E2D\u8FDB\u7A0B",detailRunningProcessesCount:"\u8FD0\u884C\u4E2D\u8FDB\u7A0B ({count})",detailMemoryUsage:"\u5185\u5B58\u4F7F\u7528",detailMemoryDetail:"\u5806 {used}MB / \u603B {total}MB \xB7 RSS {rss}MB",detailUptime:"\u8FD0\u884C\u65F6\u957F",detailCpuUser:"CPU \u7528\u6237\u6001",detailCpuSystem:"CPU \u5185\u6838\u6001",detailCommandTimeout:"\u547D\u4EE4\u8D85\u65F6",detailUploadMaxSize:"\u4E0A\u4F20\u5927\u5C0F\u9650\u5236",detailFileMaxSize:"\u8BFB\u53D6\u5927\u5C0F\u9650\u5236",detailAllowedPaths:"\u5141\u8BB8\u8BBF\u95EE\u7684\u76EE\u5F55",detailPairCodeTTL:"\u914D\u5BF9\u7801\u6709\u6548\u671F",detailWorkdir:"\u{1F4C1} \u5DE5\u4F5C\u76EE\u5F55: {dir}",pairCodeRequired:"\u8BF7\u8F93\u51656\u4F4D\u914D\u5BF9\u7801",pairing:"\u6B63\u5728\u914D\u5BF9...",pairingBtn:"\u914D\u5BF9\u4E2D...",unnamedAgent:"\u672A\u547D\u540D\u4EE3\u7406",pairSuccess:"\u914D\u5BF9\u6210\u529F\uFF01\u5DF2\u6DFB\u52A0: {name}",pairFailed:"\u914D\u5BF9\u5931\u8D25\uFF1A{error}",unknownError:"\u672A\u77E5\u9519\u8BEF",connectFailed:"\u8FDE\u63A5\u5931\u8D25 - \u8BF7\u786E\u8BA4\u4EE3\u7406\u670D\u52A1\u5DF2\u542F\u52A8",cannotConnectAgentMsg:"\u65E0\u6CD5\u8FDE\u63A5\u5230 Agent: {error}",disconnectedToast:"\u5DF2\u65AD\u5F00\u8FDE\u63A5",detailToggleOpen:"\u25BC \u8BE6\u7EC6\u4FE1\u606F",pairFailedShort:"\u914D\u5BF9\u5931\u8D25"},toolbox:{checkingAgent:"\u6B63\u5728\u68C0\u67E5 Agent \u8FDE\u63A5...",mcpTitle:"\u{1F50C} MCP \u670D\u52A1\u5668\u7BA1\u7406",mcpDisabled:"\u5DF2\u505C\u7528",mcpDesc:"\u901A\u8FC7 MCP \u534F\u8BAE\u8FDE\u63A5\u5916\u90E8\u5DE5\u5177\u670D\u52A1\u5668\uFF0C\u6269\u5C55 AI \u52A9\u624B\u7684\u5DE5\u5177\u80FD\u529B\u3002\u5173\u95ED\u540E\u6240\u6709 MCP \u5DE5\u5177\u5C06\u4E0D\u4F1A\u53D1\u9001\u5230 AI \u4E0A\u4E0B\u6587\u3002",loading:"\u52A0\u8F7D\u4E2D...",addMcpServer:"+ \u6DFB\u52A0 MCP \u670D\u52A1\u5668",skillTitle:"\u{1F9E9} \u6280\u80FD\u7BA1\u7406",skillDisabled:"\u5DF2\u505C\u7528",skillDesc:"\u7BA1\u7406\u53EF\u590D\u7528\u7684\u5DE5\u4F5C\u6D41\u548C Agent \u6280\u80FD\u3002\u5173\u95ED\u540E\u6240\u6709\u6280\u80FD\u5185\u5BB9\u5C06\u4E0D\u4F1A\u6CE8\u5165\u5230 AI \u7CFB\u7EDF\u63D0\u793A\u8BCD\u4E2D\u3002",ragTitle:"\u{1F4DA} \u77E5\u8BC6\u5E93\u68C0\u7D22\uFF08RAG\uFF09",ragDisabled:"\u5DF2\u505C\u7528",ragDesc:"\u5728\u4EE3\u7406\u7AEF\u672C\u5730\u6784\u5EFA\u77E5\u8BC6\u5E93\uFF0C\u5BF9\u8BDD\u65F6\u68C0\u7D22\u589E\u5F3A\u56DE\u7B54\u3002\u9700\u8981\u5B89\u88C5\u989D\u5916\u7684\u53EF\u9009\u4F9D\u8D56\uFF08\u7EA6 200-300MB\uFF09\uFF0C\u5173\u95ED\u540E\u77E5\u8BC6\u5E93\u5185\u5BB9\u4E0D\u4F1A\u53D1\u9001\u5230 AI \u4E0A\u4E0B\u6587\u3002",ragServiceEnabled:"\u77E5\u8BC6\u5E93\u68C0\u7D22\u5DF2\u542F\u7528",ragServiceDisabled:"\u77E5\u8BC6\u5E93\u68C0\u7D22\u5DF2\u505C\u7528",ragStatusChecking:"\u6B63\u5728\u68C0\u6D4B RAG \u80FD\u529B...",ragStatusReadyTitle:"RAG \u80FD\u529B\u5DF2\u5C31\u7EEA",ragStatusReadyDesc:"\u4EE3\u7406\u7AEF\u4F9D\u8D56\u5DF2\u5B89\u88C5\u3002\u77E5\u8BC6\u5E93\u7BA1\u7406\u529F\u80FD\u5C06\u5728\u540E\u7EED\u7248\u672C\u63D0\u4F9B\u3002",ragStatusNotInstalledTitle:"\u4EE3\u7406\u7AEF\u672A\u5B89\u88C5 RAG \u4F9D\u8D56",ragStatusNotInstalledDesc:"\u542F\u7528\u77E5\u8BC6\u5E93\u68C0\u7D22\u9700\u8981\u5148\u5728\u4EE3\u7406\u7AEF\u5B89\u88C5\u989D\u5916\u7684\u4F9D\u8D56\u5305\u3002",ragStatusNodeLowTitle:"\u8FD0\u884C\u73AF\u5883\u4E0D\u6EE1\u8DB3\u8981\u6C42",ragStatusNodeLowDesc:"RAG \u529F\u80FD\u9700\u8981 Node.js 22+\uFF08\u4EE3\u7406\u7AEF\u5F53\u524D\u4E3A {version}\uFF09\uFF0C\u8BF7\u5347\u7EA7 Node.js \u540E\u91CD\u542F\u4EE3\u7406\u3002",ragStatusAgentOffTitle:"\u4EE3\u7406\u672A\u8FDE\u63A5",ragStatusAgentOffDesc:"\u8BF7\u5148\u5728\u300C\u4EE3\u7406\u300DTab \u4E2D\u8FDE\u63A5 Agent \u670D\u52A1\u540E\u518D\u914D\u7F6E\u77E5\u8BC6\u5E93\u68C0\u7D22",ragStatusUnreachableTitle:"\u65E0\u6CD5\u83B7\u53D6\u4EE3\u7406\u72B6\u6001",ragStatusUnreachableDesc:"\u8BF7\u786E\u8BA4\u4EE3\u7406\u670D\u52A1\u8FD0\u884C\u6B63\u5E38\u540E\u70B9\u51FB\u300C\u91CD\u65B0\u68C0\u6D4B\u300D\u3002",ragInstallPackagesLabel:"\u9700\u8981\u5B89\u88C5\u7684\u5305\uFF1A",ragInstallRequirements:"\u8FD0\u884C\u73AF\u5883\u8981\u6C42 Node.js 22+\uFF1B\u9884\u8BA1\u4E0B\u8F7D\u7EA6 200-300MB\uFF08\u542B onnxruntime \u539F\u751F\u5E93\uFF0C\u89C6\u5E73\u53F0\u800C\u5B9A\uFF09\uFF1B\u9996\u6B21\u4F7F\u7528\u8FD8\u9700\u4E0B\u8F7D AI \u6A21\u578B\u7EA6 95MB\u3002",ragInstallNoRestartNeeded:"\u5B89\u88C5\u6210\u529F\u540E\u81EA\u52A8\u5C31\u7EEA\uFF0C\u65E0\u9700\u91CD\u542F\u4EE3\u7406\u670D\u52A1\u3002",ragInstallCommandLabel:"\u4E5F\u53EF\u5728\u4EE3\u7406\u7AEF\u5B89\u88C5\u76EE\u5F55\u624B\u52A8\u6267\u884C\uFF1A",ragCopyCmd:"\u{1F4CB} \u590D\u5236\u547D\u4EE4",ragCopied:"\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",ragCopyFailed:"\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u9009\u62E9\u590D\u5236",ragInstallBtn:"\u2B07\uFE0F \u4E00\u952E\u5B89\u88C5 RAG \u4F9D\u8D56",ragInstallBtnBusy:"\u5B89\u88C5\u4E2D...",ragRedetectBtn:"\u{1F504} \u91CD\u65B0\u68C0\u6D4B",ragInstallStarted:"\u5B89\u88C5\u5DF2\u5F00\u59CB\uFF0C\u6B63\u5728\u4E0B\u8F7D\u4F9D\u8D56...",ragInstallRunning:"\u6B63\u5728\u5B89\u88C5 RAG \u4F9D\u8D56...",ragAutoRestoreRunning:"\u4EE3\u7406\u66F4\u65B0\u540E\u4F9D\u8D56\u7F3A\u5931\uFF0C\u6B63\u5728\u81EA\u52A8\u6062\u590D...",ragInstallTip:"\u5B89\u88C5\u8FC7\u7A0B\u53EF\u80FD\u9700\u8981\u51E0\u5206\u949F\uFF0C\u671F\u95F4\u8BF7\u52FF\u5173\u95ED\u4EE3\u7406\u670D\u52A1\u3002",ragInstallVerifying:"\u4F9D\u8D56\u5B89\u88C5\u5B8C\u6210\uFF0C\u6B63\u5728\u9A8C\u8BC1...",ragInstallSuccess:"RAG \u4F9D\u8D56\u5B89\u88C5\u6210\u529F\uFF0C\u80FD\u529B\u5DF2\u5C31\u7EEA",ragInstallFailedToast:"RAG \u4F9D\u8D56\u5B89\u88C5\u5931\u8D25",ragInstallFailedAdvice:"\u82E5\u591A\u6B21\u5B89\u88C5\u5931\u8D25\uFF0C\u53EF\u5C1D\u8BD5\u91CD\u542F\u4EE3\u7406\u670D\u52A1\uFF08\u6216\u7A0D\u540E\u91CD\u8BD5\uFF09\u540E\u70B9\u51FB\u300C\u91CD\u65B0\u68C0\u6D4B\u300D\u3002",ragInstallLogLabel:"\u5B89\u88C5\u65E5\u5FD7\uFF08\u6700\u8FD1\u8F93\u51FA\uFF09\uFF1A",ragRedetectReady:"\u91CD\u65B0\u68C0\u6D4B\u5B8C\u6210\uFF1ARAG \u80FD\u529B\u5DF2\u5C31\u7EEA",ragRedetectStillMissing:"\u91CD\u65B0\u68C0\u6D4B\u5B8C\u6210\uFF1A\u4ECD\u672A\u68C0\u6D4B\u5230 RAG \u4F9D\u8D56",ragRedetectStillMissingDetail:"\u4ECD\u672A\u68C0\u6D4B\u5230 RAG \u4F9D\u8D56 - {error}",ragRedetectFailed:"\u91CD\u65B0\u68C0\u6D4B\u5931\u8D25: {error}",importSkill:"+ \u5BFC\u5165\u6280\u80FD",reloadSkills:"\u{1F504} \u91CD\u65B0\u52A0\u8F7D",enabledCountTotal:"\u5DF2\u542F\u7528 {enabled} / \u5171 {total}",unknownAgent:"\u672A\u77E5\u4EE3\u7406",currentAgentSupports:"\u5F53\u524D\u4EE3\u7406\uFF1A<strong>{name}</strong> \u2014 \u652F\u6301MCP\u548C\u6280\u80FD",agentNotConnectedHint:"\u4EE3\u7406\u672A\u8FDE\u63A5 \u2014 \u8BF7\u5728\u300C\u4EE3\u7406\u300DTab \u4E2D\u8FDE\u63A5",mcpIdRequired:"\u8BF7\u586B\u5199\u670D\u52A1\u5668 ID",mcpUrlRequired:"\u8BF7\u586B\u5199\u670D\u52A1\u7AEF URL",mcpCommandRequired:"\u8BF7\u586B\u5199\u547D\u4EE4\u8DEF\u5F84",mcpReconnecting:"\u6B63\u5728\u91CD\u65B0\u8FDE\u63A5...",mcpUpdateReconnected:"MCP \u670D\u52A1\u5668\u66F4\u65B0\u6210\u529F\uFF0C\u5DF2\u91CD\u8FDE\uFF08{count} \u5DE5\u5177\uFF09",mcpUnknownError:"\u672A\u77E5\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u547D\u4EE4\u4E0E\u53C2\u6570\u662F\u5426\u6B63\u786E",mcpUpdatedReconnectFailed:"\u914D\u7F6E\u5DF2\u66F4\u65B0\uFF0C\u4F46\u91CD\u8FDE\u5931\u8D25: {error}",mcpUpdateSuccess:"MCP \u670D\u52A1\u5668\u66F4\u65B0\u6210\u529F",mcpUpdateFailed:"\u66F4\u65B0\u5931\u8D25: {error}",mcpServiceEnabled:"MCP \u670D\u52A1\u5DF2\u542F\u7528",mcpServiceDisabled:"MCP \u670D\u52A1\u5DF2\u505C\u7528",skillServiceEnabled:"\u6280\u80FD\u670D\u52A1\u5DF2\u542F\u7528",skillServiceDisabled:"\u6280\u80FD\u670D\u52A1\u5DF2\u505C\u7528",mcpAddSuccess:"MCP \u670D\u52A1\u5668\u6DFB\u52A0\u6210\u529F",mcpAddFailed:"\u6DFB\u52A0\u5931\u8D25: {error}",mcpConnecting:"\u6B63\u5728\u8FDE\u63A5...",mcpConnectSuccess:"\u8FDE\u63A5\u6210\u529F",mcpDisconnectSuccess:"\u5DF2\u65AD\u5F00\u8FDE\u63A5",mcpEnabledToast:"\u5DF2\u542F\u7528",mcpDisabledToast:"\u5DF2\u7981\u7528",mcpConfirmDelete:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5 MCP \u670D\u52A1\u5668\u5417\uFF1F",deleteConfirmTitle:"\u5220\u9664\u786E\u8BA4",deleteSuccess:"\u5220\u9664\u6210\u529F",collapseTools:"\u6536\u8D77 {count} \u4E2A\u5DE5\u5177",viewTools:"\u67E5\u770B {count} \u4E2A\u5DE5\u5177",operationFailed:"\u64CD\u4F5C\u5931\u8D25: {error}",sizeBytes:"\u5927\u5C0F: {size} \u5B57\u8282",skillConfirmDelete:'\u786E\u5B9A\u8981\u5220\u9664\u6280\u80FD "{name}" \u5417\uFF1F',skillEnabledToast:'\u5DF2\u542F\u7528\u6280\u80FD "{name}"',skillDisabledToast:'\u5DF2\u505C\u7528\u6280\u80FD "{name}"',skillInfoFailed:"\u83B7\u53D6\u6280\u80FD\u4FE1\u606F\u5931\u8D25: {error}",skillRunning:'\u6B63\u5728\u8FD0\u884C\u6280\u80FD "{name}"...',skillContentFailed:"\u83B7\u53D6\u6280\u80FD\u5185\u5BB9\u5931\u8D25",skillGetFailed:"\u83B7\u53D6\u5931\u8D25: {error}",skillsReloaded:"\u5DF2\u91CD\u65B0\u52A0\u8F7D {count} \u4E2A\u6280\u80FD",skillsReloadFailed:"\u91CD\u65B0\u52A0\u8F7D\u5931\u8D25: {error}",emptyAgentNotConnectedTitle:"\u4EE3\u7406\u672A\u8FDE\u63A5",emptyAgentNotConnectedDescMcp:"\u8BF7\u5148\u5728\u300C\u4EE3\u7406\u300DTab \u4E2D\u8FDE\u63A5 Agent \u670D\u52A1\u540E\uFF0C\u518D\u914D\u7F6E MCP \u670D\u52A1\u5668",emptyNoMcpTitle:"\u6682\u65E0 MCP \u670D\u52A1\u5668",emptyNoMcpDesc:"\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u6DFB\u52A0 MCP \u670D\u52A1\u5668\uFF0C\u6269\u5C55 AI \u52A9\u624B\u7684\u5DE5\u5177\u80FD\u529B",emptyAgentNotConnectedDescSkill:"\u8BF7\u5148\u5728\u300C\u4EE3\u7406\u300DTab \u4E2D\u8FDE\u63A5 Agent \u670D\u52A1\u540E\uFF0C\u518D\u7BA1\u7406\u6280\u80FD",emptyNoSkillTitle:"\u6682\u65E0\u6280\u80FD",emptyNoSkillDesc:"\u652F\u6301\u4E24\u79CD\u6280\u80FD\u7C7B\u578B\uFF1A<br><strong>Workflow \u6280\u80FD</strong>\uFF1A\u5BFC\u5165 JSON \u6587\u4EF6\uFF08\u786E\u5B9A\u6027\u81EA\u52A8\u5316\u6D41\u7A0B\uFF09<br><strong>Agent \u6280\u80FD</strong>\uFF1A\u5BFC\u5165 SKILL.md \u76EE\u5F55/Zip/URL\uFF08AI \u80FD\u529B\u6269\u5C55\uFF09",mcpIdPlaceholder:"\u670D\u52A1\u5668 ID",mcpIdPlaceholderUnique:"\u670D\u52A1\u5668 ID\uFF08\u552F\u4E00\u6807\u8BC6\uFF09",mcpNamePlaceholder:"\u663E\u793A\u540D\u79F0",mcpEnvVars:"\u73AF\u5883\u53D8\u91CF",mcpEnvVarsHint:"\uFF08\u4EC5 stdio \u4F20\u8F93\u9700\u8981\uFF0C\u654F\u611F\u503C\u4F18\u5148\u5728 shell \u914D\u7F6E\u4E2D export\uFF09",mcpAddVar:"+ \u6DFB\u52A0\u53D8\u91CF",mcpConnected:"\u5DF2\u8FDE\u63A5",mcpDisconnected:"\u672A\u8FDE\u63A5",mcpToggleEnabled:"\u542F\u7528\u4E2D\uFF0C\u70B9\u51FB\u505C\u7528",mcpToggleDisabled:"\u5DF2\u505C\u7528\uFF0C\u70B9\u51FB\u542F\u7528",mcpDisconnectBtn:"\u65AD\u5F00",mcpConnectBtn:"\u8FDE\u63A5",mcpVarNamePlaceholder:"\u53D8\u91CF\u540D",mcpVarValuePlaceholder:"\u503C",mcpToggleEye:"\u663E\u793A/\u9690\u85CF",mcpRemoveRow:"\u5220\u9664\u6B64\u884C",mcpHeaderNamePlaceholder:"Header \u540D",mcpHeaders:"\u8BF7\u6C42\u5934 (Headers)",mcpHeadersHint:"\uFF08HTTP \u4F20\u8F93\u65F6\u9644\u52A0\u7684\u8BF7\u6C42\u5934\uFF0C\u5982 Authorization\u3001X-API-Key \u7B49\uFF09",mcpAddHeader:"+ \u6DFB\u52A0\u8BF7\u6C42\u5934",transportStdioTitle:"\u5B50\u8FDB\u7A0B\u901A\u4FE1 (npx/python \u7B49)",transportSseTitle:"Server-Sent Events (HTTP GET \u957F\u8FDE\u63A5 + POST \u53D1\u6D88\u606F)",transportStreamableHttpTitle:"MCP \u5B98\u65B9\u63A8\u8350 HTTP \u4F20\u8F93 (POST + GET SSE)",transportWebsocketTitle:"WebSocket \u53CC\u5411\u901A\u4FE1",mcpCommandPlaceholder:"\u547D\u4EE4\u8DEF\u5F84\uFF0C\u5982 npx\u3001python",mcpArgsPlaceholder:"\u53C2\u6570\uFF0C\u7A7A\u683C\u5206\u9694",mcpCustomHeadersCount:"{count} \u4E2A\u81EA\u5B9A\u4E49\u8BF7\u6C42\u5934",mcpAddFailedShort:"\u6DFB\u52A0\u5931\u8D25",mcpDeleteFailedShort:"\u5220\u9664\u5931\u8D25",mcpConnectFailedShort:"\u8FDE\u63A5\u5931\u8D25",mcpDisconnectFailedShort:"\u65AD\u5F00\u5931\u8D25",mcpOperationFailedShort:"\u64CD\u4F5C\u5931\u8D25",workflowSkillsTitle:"Workflow \u6280\u80FD\uFF08\u81EA\u52A8\u5316\u6D41\u7A0B\uFF09",agentSkillsTitle:"Agent \u6280\u80FD\uFF08AI \u80FD\u529B\u6269\u5C55\uFF09",stepCount:"{count} \u6B65\u9AA4",resourceCount:"{count} \u8D44\u6E90",expand:"\u5C55\u5F00",run:"\u8FD0\u884C",enable:"\u542F\u7528",disable:"\u505C\u7528",builtin:"\u5185\u7F6E",moreCount:"+{count} \u66F4\u591A",editSkillMd:"\u7F16\u8F91 SKILL.md",viewDetails:"\u67E5\u770B\u8BE6\u60C5",required:"*\u5FC5\u586B",optional:"\u9009\u586B",runSkillTitle:'\u8FD0\u884C\u6280\u80FD "{name}"',fillParamsHint:"\u8BF7\u586B\u5199\u4EE5\u4E0B\u53C2\u6570\u540E\u8FD0\u884C\uFF1A",defaultParamHint:" (\u9ED8\u8BA4: {default})",noExecutionResult:"\u65E0\u6267\u884C\u7ED3\u679C",conditionNotMetSkipped:"\u6761\u4EF6\u4E0D\u6EE1\u8DB3\uFF0C\u5DF2\u8DF3\u8FC7",executionSuccess:"\u6267\u884C\u6210\u529F",executionFailed:"\u6267\u884C\u5931\u8D25",truncated:"... (\u5171 {count} \u5B57\u7B26\uFF0C\u5DF2\u622A\u65AD)",executionComplete:"\u6267\u884C\u5B8C\u6210",executionSummary:"{success} \u6210\u529F, {fail} \u5931\u8D25, {skip} \u8DF3\u8FC7",skillRunResultTitle:'\u6280\u80FD "{name}" {status}',skillImportFailedShort:"\u5BFC\u5165\u5931\u8D25",skillDeleteFailedShort:"\u5220\u9664\u5931\u8D25",skillOperationFailedShort:"\u64CD\u4F5C\u5931\u8D25",invalidSkillDataFormat:"\u65E0\u6548\u7684\u6280\u80FD\u6570\u636E\u683C\u5F0F",editAgentSkill:"\u7F16\u8F91 Agent \u6280\u80FD",newAgentSkill:"\u65B0\u5EFA Agent \u6280\u80FD",skillNameLabel:"\u6280\u80FD\u540D\u79F0",skillDescLabel:"\u63CF\u8FF0",skillVersionLabel:"\u7248\u672C",skillMarkdownLabel:"SKILL.md \u5185\u5BB9\uFF08Markdown\uFF09",skillDescPlaceholder:"\u7B80\u8981\u63CF\u8FF0\u6B64\u6280\u80FD\u7684\u529F\u80FD\uFF08\u5EFA\u8BAE\u7528\u201C\u5728\u9700\u8981\u2026\u2026\u65F6\u4F7F\u7528\u201D\u53E5\u5F0F\u5199\u660E\u89E6\u53D1\u573A\u666F\uFF0C\u4FBF\u4E8E\u6A21\u578B\u6309\u9700\u81EA\u52A8\u52A0\u8F7D\uFF09",skillDescScenePlaceholder:"\u7B80\u8981\u63CF\u8FF0\u6B64\u6280\u80FD\u7684\u529F\u80FD\u548C\u9002\u7528\u573A\u666F\uFF08\u5EFA\u8BAE\u7528\u201C\u5728\u9700\u8981\u2026\u2026\u65F6\u4F7F\u7528\u201D\u53E5\u5F0F\uFF0C\u4FBF\u4E8E\u6A21\u578B\u6309\u9700\u81EA\u52A8\u52A0\u8F7D\uFF09",skillNameExamplePlaceholder:"e.g. code-review \u6216 deploy-to-server",skillMarkdownPlaceholder:`# \u6280\u80FD\u540D\u79F0
11
12
 
12
13
  ## \u4F55\u65F6\u4F7F\u7528
13
14
  - \u6761\u4EF61
@@ -21,16 +22,17 @@
21
22
 
22
23
  ## \u6267\u884C\u6B65\u9AA4
23
24
  1. \u6B65\u9AA41
24
- 2. \u6B65\u9AA42`,existingResources:"\u5DF2\u6709\u8D44\u6E90\u6587\u4EF6",skillNameRequired:"\u8BF7\u8F93\u5165\u6280\u80FD\u540D\u79F0",skillMarkdownRequired:"\u8BF7\u8F93\u5165 SKILL.md \u5185\u5BB9",agentSkillSaved:'Agent \u6280\u80FD "{name}" \u4FDD\u5B58\u6210\u529F',saveFailedShort:"\u4FDD\u5B58\u5931\u8D25",saveFailed:"\u4FDD\u5B58\u5931\u8D25: {error}",viewSkillTitle:"\u67E5\u770B\u6280\u80FD: {name}",importSkillTitle:"\u5BFC\u5165\u6280\u80FD",importBtn:"\u5BFC\u5165",jsonImport:"JSON \u5BFC\u5165",newAuthoring:"\u65B0\u5EFA\u7F16\u5199",zipPackage:"Zip \u5305",urlImport:"URL \u5BFC\u5165",jsonImportDesc:"\u5BFC\u5165 JSON \u683C\u5F0F\u7684 Workflow \u6280\u80FD\uFF08\u786E\u5B9A\u6027\u81EA\u52A8\u5316\u6D41\u7A0B\uFF09",clickOrDragJson:"\u70B9\u51FB\u9009\u62E9 JSON \u6587\u4EF6\u6216\u62D6\u62FD\u5230\u6B64\u5904",jsonFileHint:"\u652F\u6301 .json \u683C\u5F0F\u7684 Workflow \u6280\u80FD\u5B9A\u4E49\u6587\u4EF6",markdownImportDesc:"\u76F4\u63A5\u7F16\u5199 SKILL.md \u5185\u5BB9\uFF0C\u521B\u5EFA Agent \u6280\u80FD\uFF08AI \u80FD\u529B\u6269\u5C55\uFF09",zipImportDesc:"\u5BFC\u5165\u5305\u542B SKILL.md \u7684 Zip \u538B\u7F29\u5305\uFF0C\u53EF\u9644\u5E26 scripts/templates/assets \u7B49\u8F85\u52A9\u8D44\u6E90",clickOrDragZip:"\u70B9\u51FB\u9009\u62E9 Zip \u6587\u4EF6\u6216\u62D6\u62FD\u5230\u6B64\u5904",zipFileHint:"Zip \u5305\u5185\u9700\u5305\u542B SKILL.md \u6587\u4EF6\uFF0C\u53EF\u9009\u7684 scripts/ templates/ assets/ \u5B50\u76EE\u5F55",urlImportDesc:"\u4ECE\u8FDC\u7A0B URL \u4E0B\u8F7D\u6280\u80FD\u7684 Zip \u5305\u5E76\u81EA\u52A8\u5BFC\u5165",downloadUrl:"\u4E0B\u8F7D\u5730\u5740",selectJsonFile:"\u8BF7\u9009\u62E9 JSON \u6587\u4EF6",workflowSkillImported:'Workflow \u6280\u80FD "{name}" \u5BFC\u5165\u6210\u529F',agentSkillCreated:'Agent \u6280\u80FD "{name}" \u521B\u5EFA\u6210\u529F',createFailedShort:"\u521B\u5EFA\u5931\u8D25",selectZipFile:"\u8BF7\u9009\u62E9 Zip \u6587\u4EF6",fileTooLarge:"\u6587\u4EF6\u8FC7\u5927\uFF0C\u6700\u5927\u652F\u6301 50MB",fileReadFailed:"\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25",agentSkillImported:'Agent \u6280\u80FD "{name}" \u5BFC\u5165\u6210\u529F',urlRequired:"\u8BF7\u8F93\u5165 URL",importFailed:"\u5BFC\u5165\u5931\u8D25: {error}",searchMcpPlaceholder:"\u641C\u7D22 MCP \u670D\u52A1\u5668...",searchSkillPlaceholder:"\u641C\u7D22\u6280\u80FD...",filterAll:"\u5168\u90E8",filterEnabled:"\u5DF2\u542F\u7528",filterDisabled:"\u5DF2\u505C\u7528",noMatchResult:"\u65E0\u5339\u914D\u7ED3\u679C"},knowledge:{tabTitle:"\u77E5\u8BC6\u5E93",gateAgentOffTitle:"\u4EE3\u7406\u672A\u8FDE\u63A5",gateAgentOffDesc:"\u77E5\u8BC6\u5E93\u529F\u80FD\u7531\u672C\u5730\u4EE3\u7406\u63D0\u4F9B\u3002\u8BF7\u5148\u5728\u300C\u4EE3\u7406\u300D\u6807\u7B7E\u9875\u5B8C\u6210\u4EE3\u7406\u8FDE\u63A5\uFF0C\u518D\u56DE\u5230\u8FD9\u91CC\u7BA1\u7406\u77E5\u8BC6\u5E93\u3002",gateRagOffTitle:"\u77E5\u8BC6\u5E93\u529F\u80FD\u672A\u542F\u7528",gateRagOffDesc:"\u5F00\u542F\u4E0A\u65B9\u300C\u77E5\u8BC6\u5E93\u68C0\u7D22\u300D\u603B\u5F00\u5173\u540E\uFF0C\u5373\u53EF\u521B\u5EFA\u548C\u7BA1\u7406\u77E5\u8BC6\u5E93\u3002",gateRagUnavailableTitle:"\u4EE3\u7406\u7AEF\u80FD\u529B\u672A\u5C31\u7EEA",gateRagUnavailableDesc:"RAG \u4F9D\u8D56\u5C1A\u672A\u5B89\u88C5\uFF0C\u6216 Node \u7248\u672C\u4E0D\u6EE1\u8DB3\u8981\u6C42\uFF08\u9700 Node 22+\uFF09\u3002\u8BF7\u67E5\u770B\u4E0B\u65B9\u5B89\u88C5\u5F15\u5BFC\u3002",goToAgentTab:"\u524D\u5F80\u300C\u4EE3\u7406\u300D\u6807\u7B7E\u9875",goToToolboxTab:"\u524D\u5F80\u300C\u6269\u5C55\u300D\u6807\u7B7E\u9875",enableNow:"\u7ACB\u5373\u542F\u7528",title:"\u77E5\u8BC6\u5E93",createBtn:"+ \u65B0\u5EFA\u77E5\u8BC6\u5E93",searchPlaceholder:"\u641C\u7D22\u77E5\u8BC6\u5E93...",emptyTitle:"\u8FD8\u6CA1\u6709\u77E5\u8BC6\u5E93",emptyDesc:"\u70B9\u51FB\u300C\u65B0\u5EFA\u77E5\u8BC6\u5E93\u300D\u521B\u5EFA\u7B2C\u4E00\u4E2A\u77E5\u8BC6\u5E93\uFF0C\u7136\u540E\u5BFC\u5165\u6587\u6863\u5F00\u59CB\u4F7F\u7528\u3002",loadFailed:"\u52A0\u8F7D\u5931\u8D25: {error}",retry:"\u91CD\u8BD5",statsSummary:"{docs} \u6587\u6863 \xB7 {chunks} \u5206\u5757",modeLocal:"\u672C\u5730\u6A21\u578B",modeRemote:"\u8FDC\u7AEF\u670D\u52A1",actionEdit:"\u7F16\u8F91",actionIngest:"\u5BFC\u5165",actionSearch:"\u68C0\u7D22\u6D4B\u8BD5",actionDocs:"\u6587\u6863",actionDelete:"\u5220\u9664",actionEnable:"\u542F\u7528",actionDisable:"\u505C\u7528",badgeDisabled:"\u5DF2\u505C\u7528",enableSuccess:"\u77E5\u8BC6\u5E93\u300C{name}\u300D\u5DF2\u542F\u7528",disableSuccess:"\u77E5\u8BC6\u5E93\u300C{name}\u300D\u5DF2\u505C\u7528",createTitle:"\u65B0\u5EFA\u77E5\u8BC6\u5E93",nameLabel:"\u540D\u79F0",namePlaceholder:"\u4F8B\u5982\uFF1A\u4EA7\u54C1\u6587\u6863\u96C6",descLabel:"\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",descPlaceholder:"\u7B80\u8981\u8BF4\u660E\u8FD9\u4E2A\u77E5\u8BC6\u5E93\u5B58\u653E\u4EC0\u4E48\u5185\u5BB9",createConfirm:"\u521B\u5EFA",creating:"\u521B\u5EFA\u4E2D...",createSuccess:"\u77E5\u8BC6\u5E93\u300C{name}\u300D\u5DF2\u521B\u5EFA",nameRequired:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u5E93\u540D\u79F0",editTitle:"\u7F16\u8F91\u77E5\u8BC6\u5E93",editConfirm:"\u4FDD\u5B58",saving:"\u4FDD\u5B58\u4E2D...",editSuccess:"\u77E5\u8BC6\u5E93\u4FE1\u606F\u5DF2\u66F4\u65B0",vectorSectionTitle:"\u5411\u91CF\u6A21\u578B",vectorModeLocal:"\u672C\u5730\u6A21\u578B\uFF08\u5185\u7F6E BGE \u4E2D\u6587\u6A21\u578B\uFF09",vectorModeRemote:"\u8FDC\u7AEF\u670D\u52A1\uFF08OpenAI \u517C\u5BB9\u63A5\u53E3\uFF09",vectorModeLocalHint:"\u4F7F\u7528\u4EE3\u7406\u7AEF\u5185\u7F6E BGE \u4E2D\u6587\u6A21\u578B\u751F\u6210\u5411\u91CF\uFF0C\u65E0\u9700\u989D\u5916\u914D\u7F6E\uFF1B\u9996\u6B21\u5BFC\u5165\u9700\u4E0B\u8F7D\u6A21\u578B\u6587\u4EF6\u3002",vectorModeRemoteHint:"\u8C03\u7528\u8FDC\u7AEF OpenAI \u517C\u5BB9\u7684\u5411\u91CF\u670D\u52A1\uFF08\u5982\u7845\u57FA\u6D41\u52A8\u3001\u667A\u8C31\u3001OpenAI \u7B49\uFF09\u3002",vectorEndpointLabel:"\u63A5\u53E3\u5730\u5740\uFF08Base URL\uFF0C\u542B\u7248\u672C\u6BB5\uFF09",vectorEndpointPlaceholder:"\u4F8B\u5982 https://api.siliconflow.cn/v1",vectorApiKeyLabel:"API Key",vectorApiKeyPlaceholder:"\u7C98\u8D34 API Key",vectorApiKeyKeep:"\u7559\u7A7A\u5219\u6CBF\u7528\u5DF2\u4FDD\u5B58\u7684 Key",vectorModelLabel:"\u6A21\u578B\u540D\u79F0",vectorModelPlaceholder:"\u4F8B\u5982 BAAI/bge-m3",vectorDimsLabel:"\u5411\u91CF\u7EF4\u5EA6\uFF08\u53EF\u7559\u7A7A\uFF0C\u6D4B\u8BD5\u65F6\u81EA\u52A8\u63A2\u6D4B\uFF09",vectorDimsPlaceholder:"\u81EA\u52A8",vectorTestBtn:"\u6D4B\u8BD5\u8FDE\u901A\u6027",vectorTesting:"\u6D4B\u8BD5\u4E2D...",vectorTestOk:"\u8FDE\u63A5\u6210\u529F\uFF1A{model}\uFF08{dims} \u7EF4\uFF09",vectorDimsFilled:"\u5DF2\u81EA\u52A8\u586B\u5145\u7EF4\u5EA6\uFF1A{dims}",vectorTestFailed:"\u6D4B\u8BD5\u5931\u8D25: {error}",vectorEndpointRequired:"\u8BF7\u586B\u5199\u8FDC\u7AEF\u63A5\u53E3\u5730\u5740",vectorModelRequired:"\u8BF7\u586B\u5199\u6A21\u578B\u540D\u79F0",rebuildConfirmTitle:"\u53D8\u66F4\u5411\u91CF\u914D\u7F6E",rebuildConfirm:"\u5411\u91CF\u6A21\u578B\u6216\u5206\u5757\u53C2\u6570\u53D8\u66F4\u540E\u9700\u8981\u91CD\u5EFA\u7D22\u5F15\uFF08\u91CD\u65B0\u5411\u91CF\u5316\u5168\u90E8\u6587\u6863\uFF09\u3002\u91CD\u5EFA\u671F\u95F4\u4ECD\u53EF\u68C0\u7D22\u65E7\u7D22\u5F15\uFF0C\u5B8C\u6210\u540E\u81EA\u52A8\u5207\u6362\u3002\u786E\u5B9A\u7EE7\u7EED\u5417\uFF1F",rebuildStarted:"\u5DF2\u5F00\u59CB\u91CD\u5EFA\u7D22\u5F15\uFF0C\u5B8C\u6210\u540E\u5C06\u81EA\u52A8\u5237\u65B0...",progressRebuilding:"\u6B63\u5728\u91CD\u5EFA\u7D22\u5F15 {current}/{total} \u7BC7\u6587\u6863\u2026",rebuildDone:"\u7D22\u5F15\u91CD\u5EFA\u5B8C\u6210",rebuildFailed:"\u7D22\u5F15\u91CD\u5EFA\u5931\u8D25: {error}",deleteConfirmTitle:"\u5220\u9664\u77E5\u8BC6\u5E93",deleteConfirm:"\u786E\u5B9A\u5220\u9664\u300C{name}\u300D\u5417\uFF1F\u5176\u4E2D\u7684 {docs} \u4E2A\u6587\u6863\u3001{chunks} \u4E2A\u5206\u5757\u5C06\u4E00\u5E76\u5220\u9664\uFF0C\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002",deleteSuccess:"\u77E5\u8BC6\u5E93\u5DF2\u5220\u9664",ingestTitle:"\u5BFC\u5165\u6587\u6863\u5230\u300C{name}\u300D",tabFile:"\u6587\u4EF6",tabText:"\u6587\u672C",tabUrl:"URL",dropHint:"\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u5904\uFF0C\u6216\u70B9\u51FB\u9009\u62E9",dropSupported:"\u652F\u6301 txt / md / pdf / docx / xlsx / html \u7B49\u683C\u5F0F\uFF0C\u5355\u6587\u4EF6 \u2264 50MB",selectedFile:"\u5DF2\u9009\u62E9\uFF1A{name}",textContentLabel:"\u6587\u672C\u5185\u5BB9",textContentPlaceholder:"\u5728\u6B64\u7C98\u8D34\u8981\u5BFC\u5165\u7684\u6587\u672C\u5185\u5BB9...",textNameLabel:"\u6587\u6863\u540D\u79F0\uFF08\u53EF\u9009\uFF09",textNamePlaceholder:"\u7559\u7A7A\u5219\u81EA\u52A8\u547D\u540D",urlLabel:"\u7F51\u9875\u5730\u5740",urlPlaceholder:"https://example.com/page",chunkSettingsTitle:"\u5206\u5757\u8BBE\u7F6E",chunkSizeLabel:"\u5757\u5927\u5C0F\uFF08\u5B57\u7B26\uFF09",chunkOverlapLabel:"\u91CD\u53E0\uFF08\u5B57\u7B26\uFF09",ingestConfirm:"\u5F00\u59CB\u5BFC\u5165",ingesting:"\u6B63\u5728\u89E3\u6790\u5E76\u5411\u91CF\u5316\uFF0C\u9996\u6B21\u5BFC\u5165\u53EF\u80FD\u9700\u8981\u4E0B\u8F7D\u6A21\u578B\uFF0C\u8BF7\u7A0D\u5019...",progressParsing:"\u6B63\u5728\u89E3\u6790\u6587\u6863\u2026",progressChunking:"\u6B63\u5728\u5206\u5757\u2026",progressEmbedding:"\u6B63\u5728\u5411\u91CF\u5316 {current}/{total} \u5757\u2026",progressStoring:"\u6B63\u5728\u5199\u5165\u7D22\u5F15\u2026",ingestSuccess:"\u5BFC\u5165\u5B8C\u6210\uFF1A{name}\uFF08{chunks} \u4E2A\u5206\u5757\uFF09",ingestFailed:"\u5BFC\u5165\u5931\u8D25: {error}",fileRequired:"\u8BF7\u5148\u9009\u62E9\u6587\u4EF6",contentRequired:"\u8BF7\u8F93\u5165\u8981\u5BFC\u5165\u7684\u6587\u672C\u5185\u5BB9",urlRequired:"\u8BF7\u8F93\u5165\u7F51\u9875\u5730\u5740",fileTooLarge:"\u6587\u4EF6\u8FC7\u5927\uFF0C\u6700\u5927\u652F\u6301 50MB",docsTitle:"\u300C{name}\u300D\u7684\u6587\u6863",docsEmpty:"\u8FD8\u6CA1\u6709\u5BFC\u5165\u4EFB\u4F55\u6587\u6863",docChunkCount:"{count} \u5206\u5757",docDeleteConfirmTitle:"\u5220\u9664\u6587\u6863",docDeleteConfirm:"\u786E\u5B9A\u5220\u9664\u6587\u6863\u300C{name}\u300D\u5417\uFF1F\u8BE5\u6587\u6863\u7684\u6240\u6709\u5206\u5757\u5C06\u4ECE\u77E5\u8BC6\u5E93\u4E2D\u79FB\u9664\u3002",docDeleteSuccess:"\u6587\u6863\u5DF2\u5220\u9664",searchTitle:"\u68C0\u7D22\u6D4B\u8BD5",searchScope:"\u68C0\u7D22\u8303\u56F4\uFF1A\u300C{name}\u300D",searchQueryPlaceholder:"\u8F93\u5165\u67E5\u8BE2\u8BED\u53E5\uFF0C\u4F8B\u5982\uFF1A\u5982\u4F55\u5BFC\u51FA\u6570\u636E\uFF1F",searchBtn:"\u68C0\u7D22",searching:"\u68C0\u7D22\u4E2D...",searchTopKLabel:"\u8FD4\u56DE\u6761\u6570",searchThresholdLabel:"\u76F8\u4F3C\u5EA6\u9608\u503C",searchHitCount:"\u547D\u4E2D {count} \u6761",searchNoHits:"\u6CA1\u6709\u547D\u4E2D\u4EFB\u4F55\u5185\u5BB9\uFF0C\u53EF\u5C1D\u8BD5\u964D\u4F4E\u76F8\u4F3C\u5EA6\u9608\u503C\u3002",searchFallbackHint:"\u76F8\u4F3C\u5EA6\u5747\u4F4E\u4E8E\u9608\u503C\uFF0C\u4EE5\u4E0B\u4E3A\u6700\u4F73\u5339\u914D\uFF08\u4EC5\u4F9B\u53C2\u8003\uFF09\uFF1A",searchFailed:"\u68C0\u7D22\u5931\u8D25: {error}",expandFull:"\u5C55\u5F00\u5168\u6587",collapse:"\u6536\u8D77",scoreLabel:"\u76F8\u4F3C\u5EA6",opFailed:"\u64CD\u4F5C\u5931\u8D25: {error}"},contextBubble:{labelSelection:"\u9009\u4E2D\u5185\u5BB9",labelQuoted:"\u5F15\u7528",labelSkill:"\u6280\u80FD",labelMcp:"MCP",labelPage:"\u7F51\u9875",labelFile:"\u6587\u4EF6",labelKnowledge:"\u77E5\u8BC6\u5E93",clickToExpand:"\u70B9\u51FB\u5C55\u5F00",bubbleSkill:"{name} \u{1F9E9}",bubbleMcp:"{name} \u{1F50C}",bubblePage:"{title} \u{1F310}",bubbleKnowledge:"{name} \u{1F4DA} \xB7 \u547D\u4E2D {count} \u6761",bubbleKnowledgeMiss:"{name} \u{1F4DA} \xB7 \u672A\u547D\u4E2D",bubbleKnowledgeFailed:"{name} \u{1F4DA} \xB7 \u68C0\u7D22\u5931\u8D25",bubbleKnowledgeSearching:"\u6B63\u5728\u68C0\u7D22\u77E5\u8BC6\u5E93\u2026",kbHitToggle:"\u70B9\u51FB\u5C55\u5F00/\u6536\u8D77\u5168\u6587",kbHitTruncated:"\u2702 \u5DF2\u622A\u65AD \xB7 \u539F\u6587 {total} \u5B57\uFF0C\u524D {kept} \u5B57\u5DF2\u53D1\u9001",kbHitTruncatedTitle:"\u4E3A\u63A7\u5236\u4E0A\u4E0B\u6587\u4F53\u79EF\uFF0C\u5185\u5BB9\u622A\u65AD\u540E\u518D\u53D1\u9001\u7ED9\u6A21\u578B\uFF1B\u6B64\u5904\u663E\u793A\u7684\u5373\u6A21\u578B\u5B9E\u9645\u6536\u5230\u7684\u7248\u672C",kbHitTruncatedBadge:"\u2702 {count} \u6761\u5DF2\u622A\u65AD"},configDialog:{exportTitle:"\u5BFC\u51FA\u914D\u7F6E",includeSecrets:"\u5305\u542B API \u5BC6\u94A5",secretWarn:"\u26A0 \u654F\u611F\u4FE1\u606F\uFF0C\u8BF7\u786E\u4FDD\u6587\u4EF6\u5B89\u5168",exportDesc:"\u5BFC\u51FA\u6587\u4EF6\u5C06\u5305\u542B\u9664 Agent \u8FDE\u63A5\u4FE1\u606F\u5916\u7684\u6240\u6709\u914D\u7F6E\uFF0C\u53EF\u9009\u62E9\u662F\u5426\u5305\u542B API \u5BC6\u94A5\u3002",export:"\u5BFC\u51FA",importTitle:"\u5BFC\u5165\u914D\u7F6E",mergeImport:"\u5408\u5E76\u5BFC\u5165 \u2014 \u4EC5\u8986\u76D6\u6587\u4EF6\u4E2D\u5B58\u5728\u7684\u914D\u7F6E\u9879\uFF0C\u4FDD\u7559\u5176\u4ED6",replaceImport:"\u5B8C\u5168\u66FF\u6362 \u2014 \u6E05\u7A7A\u5F53\u524D\u914D\u7F6E\uFF0C\u4F7F\u7528\u6587\u4EF6\u4E2D\u7684\u914D\u7F6E",confirmImport:"\u786E\u8BA4\u5BFC\u5165",exportSuccess:"\u914D\u7F6E\u5DF2\u5BFC\u51FA",exportFailed:"\u5BFC\u51FA\u5931\u8D25: {error}",unknownTime:"\u672A\u77E5",importSummary:"\u5BFC\u51FA\u65F6\u95F4: {time}\uFF0C\u5305\u542B {count} \u9879\u914D\u7F6E",invalidFileFormat:"\u65E0\u6548\u7684\u6587\u4EF6\u683C\u5F0F",unrecognizedFormat:"\u65E0\u6CD5\u8BC6\u522B\u7684\u914D\u7F6E\u683C\u5F0F",unknownConfigKey:"\u672A\u77E5\u7684\u914D\u7F6E\u9879: {key}",importFailed:"\u5BFC\u5165\u5931\u8D25: {error}",importParseFailed:"\u5BFC\u5165\u5931\u8D25: \u65E0\u6CD5\u89E3\u6790\u6587\u4EF6\u683C\u5F0F",importedCount:"\u5DF2\u5BFC\u5165 {count} \u9879\u914D\u7F6E"}},Et={common:{confirm:"Confirm",cancel:"Cancel",close:"Close",ok:"OK",save:"Save",delete:"Delete",edit:"Edit",retry:"Retry",loading:"Loading...",none:"None",add:"Add",clear:"Clear",selectAll:"Select All",deselectAll:"Deselect All",refresh:"Refresh",enabled:"Enabled",disabled:"Disabled",bytes:"bytes",copy:"Copy",copySuccess:"Copied",copyFailed:"Copy failed"},dialog:{operationConfirm:"Operation Confirmation",confirmDefaultMessage:"The model requests to execute a sensitive operation. Allow?",confirmAction:"The model requests to execute: {name}",remainingTime:"Time remaining: {time}",deny:"Deny",approveOnce:"Allow Once",approveLoop:"Allow for This Task"},sensitiveTool:{manage_cookies:"Manage Cookies",clear_data:"Clear Page Data",download_file:"Download File",manage_tab:"Tab Management",agent_file:"File Operations",debug_page:"Page Debugger",debuggerAttachHint:`
25
+ 2. \u6B65\u9AA42`,existingResources:"\u5DF2\u6709\u8D44\u6E90\u6587\u4EF6",skillNameRequired:"\u8BF7\u8F93\u5165\u6280\u80FD\u540D\u79F0",skillMarkdownRequired:"\u8BF7\u8F93\u5165 SKILL.md \u5185\u5BB9",agentSkillSaved:'Agent \u6280\u80FD "{name}" \u4FDD\u5B58\u6210\u529F',saveFailedShort:"\u4FDD\u5B58\u5931\u8D25",saveFailed:"\u4FDD\u5B58\u5931\u8D25: {error}",viewSkillTitle:"\u67E5\u770B\u6280\u80FD: {name}",importSkillTitle:"\u5BFC\u5165\u6280\u80FD",importBtn:"\u5BFC\u5165",jsonImport:"JSON \u5BFC\u5165",newAuthoring:"\u65B0\u5EFA\u7F16\u5199",zipPackage:"Zip \u5305",urlImport:"URL \u5BFC\u5165",jsonImportDesc:"\u5BFC\u5165 JSON \u683C\u5F0F\u7684 Workflow \u6280\u80FD\uFF08\u786E\u5B9A\u6027\u81EA\u52A8\u5316\u6D41\u7A0B\uFF09",clickOrDragJson:"\u70B9\u51FB\u9009\u62E9 JSON \u6587\u4EF6\u6216\u62D6\u62FD\u5230\u6B64\u5904",jsonFileHint:"\u652F\u6301 .json \u683C\u5F0F\u7684 Workflow \u6280\u80FD\u5B9A\u4E49\u6587\u4EF6",markdownImportDesc:"\u76F4\u63A5\u7F16\u5199 SKILL.md \u5185\u5BB9\uFF0C\u521B\u5EFA Agent \u6280\u80FD\uFF08AI \u80FD\u529B\u6269\u5C55\uFF09",zipImportDesc:"\u5BFC\u5165\u5305\u542B SKILL.md \u7684 Zip \u538B\u7F29\u5305\uFF0C\u53EF\u9644\u5E26 scripts/templates/assets \u7B49\u8F85\u52A9\u8D44\u6E90",clickOrDragZip:"\u70B9\u51FB\u9009\u62E9 Zip \u6587\u4EF6\u6216\u62D6\u62FD\u5230\u6B64\u5904",zipFileHint:"Zip \u5305\u5185\u9700\u5305\u542B SKILL.md \u6587\u4EF6\uFF0C\u53EF\u9009\u7684 scripts/ templates/ assets/ \u5B50\u76EE\u5F55",urlImportDesc:"\u4ECE\u8FDC\u7A0B URL \u4E0B\u8F7D\u6280\u80FD\u7684 Zip \u5305\u5E76\u81EA\u52A8\u5BFC\u5165",downloadUrl:"\u4E0B\u8F7D\u5730\u5740",selectJsonFile:"\u8BF7\u9009\u62E9 JSON \u6587\u4EF6",workflowSkillImported:'Workflow \u6280\u80FD "{name}" \u5BFC\u5165\u6210\u529F',agentSkillCreated:'Agent \u6280\u80FD "{name}" \u521B\u5EFA\u6210\u529F',createFailedShort:"\u521B\u5EFA\u5931\u8D25",selectZipFile:"\u8BF7\u9009\u62E9 Zip \u6587\u4EF6",fileTooLarge:"\u6587\u4EF6\u8FC7\u5927\uFF0C\u6700\u5927\u652F\u6301 50MB",fileReadFailed:"\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25",agentSkillImported:'Agent \u6280\u80FD "{name}" \u5BFC\u5165\u6210\u529F',urlRequired:"\u8BF7\u8F93\u5165 URL",importFailed:"\u5BFC\u5165\u5931\u8D25: {error}",searchMcpPlaceholder:"\u641C\u7D22 MCP \u670D\u52A1\u5668...",searchSkillPlaceholder:"\u641C\u7D22\u6280\u80FD...",filterAll:"\u5168\u90E8",filterEnabled:"\u5DF2\u542F\u7528",filterDisabled:"\u5DF2\u505C\u7528",noMatchResult:"\u65E0\u5339\u914D\u7ED3\u679C"},knowledge:{tabTitle:"\u77E5\u8BC6\u5E93",gateAgentOffTitle:"\u4EE3\u7406\u672A\u8FDE\u63A5",gateAgentOffDesc:"\u77E5\u8BC6\u5E93\u529F\u80FD\u7531\u672C\u5730\u4EE3\u7406\u63D0\u4F9B\u3002\u8BF7\u5148\u5728\u300C\u4EE3\u7406\u300D\u6807\u7B7E\u9875\u5B8C\u6210\u4EE3\u7406\u8FDE\u63A5\uFF0C\u518D\u56DE\u5230\u8FD9\u91CC\u7BA1\u7406\u77E5\u8BC6\u5E93\u3002",gateRagOffTitle:"\u77E5\u8BC6\u5E93\u529F\u80FD\u672A\u542F\u7528",gateRagOffDesc:"\u5F00\u542F\u4E0A\u65B9\u300C\u77E5\u8BC6\u5E93\u68C0\u7D22\u300D\u603B\u5F00\u5173\u540E\uFF0C\u5373\u53EF\u521B\u5EFA\u548C\u7BA1\u7406\u77E5\u8BC6\u5E93\u3002",gateRagUnavailableTitle:"\u4EE3\u7406\u7AEF\u80FD\u529B\u672A\u5C31\u7EEA",gateRagUnavailableDesc:"RAG \u4F9D\u8D56\u5C1A\u672A\u5B89\u88C5\uFF0C\u6216 Node \u7248\u672C\u4E0D\u6EE1\u8DB3\u8981\u6C42\uFF08\u9700 Node 22+\uFF09\u3002\u8BF7\u67E5\u770B\u4E0B\u65B9\u5B89\u88C5\u5F15\u5BFC\u3002",goToAgentTab:"\u524D\u5F80\u300C\u4EE3\u7406\u300D\u6807\u7B7E\u9875",goToToolboxTab:"\u524D\u5F80\u300C\u6269\u5C55\u300D\u6807\u7B7E\u9875",enableNow:"\u7ACB\u5373\u542F\u7528",title:"\u77E5\u8BC6\u5E93",createBtn:"+ \u65B0\u5EFA\u77E5\u8BC6\u5E93",searchPlaceholder:"\u641C\u7D22\u77E5\u8BC6\u5E93...",emptyTitle:"\u8FD8\u6CA1\u6709\u77E5\u8BC6\u5E93",emptyDesc:"\u70B9\u51FB\u300C\u65B0\u5EFA\u77E5\u8BC6\u5E93\u300D\u521B\u5EFA\u7B2C\u4E00\u4E2A\u77E5\u8BC6\u5E93\uFF0C\u7136\u540E\u5BFC\u5165\u6587\u6863\u5F00\u59CB\u4F7F\u7528\u3002",loadFailed:"\u52A0\u8F7D\u5931\u8D25: {error}",retry:"\u91CD\u8BD5",statsSummary:"{docs} \u6587\u6863 \xB7 {chunks} \u5206\u5757",modeLocal:"\u672C\u5730\u6A21\u578B",modeRemote:"\u8FDC\u7AEF\u670D\u52A1",actionEdit:"\u7F16\u8F91",actionIngest:"\u5BFC\u5165",actionSearch:"\u68C0\u7D22\u6D4B\u8BD5",actionDocs:"\u6587\u6863",actionDelete:"\u5220\u9664",actionEnable:"\u542F\u7528",actionDisable:"\u505C\u7528",badgeDisabled:"\u5DF2\u505C\u7528",enableSuccess:"\u77E5\u8BC6\u5E93\u300C{name}\u300D\u5DF2\u542F\u7528",disableSuccess:"\u77E5\u8BC6\u5E93\u300C{name}\u300D\u5DF2\u505C\u7528",createTitle:"\u65B0\u5EFA\u77E5\u8BC6\u5E93",nameLabel:"\u540D\u79F0",namePlaceholder:"\u4F8B\u5982\uFF1A\u4EA7\u54C1\u6587\u6863\u96C6",descLabel:"\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",descPlaceholder:"\u7B80\u8981\u8BF4\u660E\u8FD9\u4E2A\u77E5\u8BC6\u5E93\u5B58\u653E\u4EC0\u4E48\u5185\u5BB9",createConfirm:"\u521B\u5EFA",creating:"\u521B\u5EFA\u4E2D...",createSuccess:"\u77E5\u8BC6\u5E93\u300C{name}\u300D\u5DF2\u521B\u5EFA",nameRequired:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u5E93\u540D\u79F0",editTitle:"\u7F16\u8F91\u77E5\u8BC6\u5E93",editConfirm:"\u4FDD\u5B58",saving:"\u4FDD\u5B58\u4E2D...",editSuccess:"\u77E5\u8BC6\u5E93\u4FE1\u606F\u5DF2\u66F4\u65B0",vectorSectionTitle:"\u5411\u91CF\u6A21\u578B",vectorModeLocal:"\u672C\u5730\u6A21\u578B\uFF08\u5185\u7F6E BGE \u4E2D\u6587\u6A21\u578B\uFF09",vectorModeRemote:"\u8FDC\u7AEF\u670D\u52A1\uFF08OpenAI \u517C\u5BB9\u63A5\u53E3\uFF09",vectorModeLocalHint:"\u4F7F\u7528\u4EE3\u7406\u7AEF\u5185\u7F6E BGE \u4E2D\u6587\u6A21\u578B\u751F\u6210\u5411\u91CF\uFF0C\u65E0\u9700\u989D\u5916\u914D\u7F6E\uFF1B\u9996\u6B21\u5BFC\u5165\u9700\u4E0B\u8F7D\u6A21\u578B\u6587\u4EF6\u3002",vectorModeRemoteHint:"\u8C03\u7528\u8FDC\u7AEF OpenAI \u517C\u5BB9\u7684\u5411\u91CF\u670D\u52A1\uFF08\u5982\u7845\u57FA\u6D41\u52A8\u3001\u667A\u8C31\u3001OpenAI \u7B49\uFF09\u3002",vectorEndpointLabel:"\u63A5\u53E3\u5730\u5740\uFF08Base URL\uFF0C\u542B\u7248\u672C\u6BB5\uFF09",vectorEndpointPlaceholder:"\u4F8B\u5982 https://api.siliconflow.cn/v1",vectorApiKeyLabel:"API Key",vectorApiKeyPlaceholder:"\u7C98\u8D34 API Key",vectorApiKeyKeep:"\u7559\u7A7A\u5219\u6CBF\u7528\u5DF2\u4FDD\u5B58\u7684 Key",vectorModelLabel:"\u6A21\u578B\u540D\u79F0",vectorModelPlaceholder:"\u4F8B\u5982 BAAI/bge-m3",vectorDimsLabel:"\u5411\u91CF\u7EF4\u5EA6\uFF08\u53EF\u7559\u7A7A\uFF0C\u6D4B\u8BD5\u65F6\u81EA\u52A8\u63A2\u6D4B\uFF09",vectorDimsPlaceholder:"\u81EA\u52A8",vectorTestBtn:"\u6D4B\u8BD5\u8FDE\u901A\u6027",vectorTesting:"\u6D4B\u8BD5\u4E2D...",vectorTestOk:"\u8FDE\u63A5\u6210\u529F\uFF1A{model}\uFF08{dims} \u7EF4\uFF09",vectorDimsFilled:"\u5DF2\u81EA\u52A8\u586B\u5145\u7EF4\u5EA6\uFF1A{dims}",vectorTestFailed:"\u6D4B\u8BD5\u5931\u8D25: {error}",vectorEndpointRequired:"\u8BF7\u586B\u5199\u8FDC\u7AEF\u63A5\u53E3\u5730\u5740",vectorModelRequired:"\u8BF7\u586B\u5199\u6A21\u578B\u540D\u79F0",rebuildConfirmTitle:"\u53D8\u66F4\u5411\u91CF\u914D\u7F6E",rebuildConfirm:"\u5411\u91CF\u6A21\u578B\u6216\u5206\u5757\u53C2\u6570\u53D8\u66F4\u540E\u9700\u8981\u91CD\u5EFA\u7D22\u5F15\uFF08\u91CD\u65B0\u5411\u91CF\u5316\u5168\u90E8\u6587\u6863\uFF09\u3002\u91CD\u5EFA\u671F\u95F4\u4ECD\u53EF\u68C0\u7D22\u65E7\u7D22\u5F15\uFF0C\u5B8C\u6210\u540E\u81EA\u52A8\u5207\u6362\u3002\u786E\u5B9A\u7EE7\u7EED\u5417\uFF1F",rebuildStarted:"\u5DF2\u5F00\u59CB\u91CD\u5EFA\u7D22\u5F15\uFF0C\u5B8C\u6210\u540E\u5C06\u81EA\u52A8\u5237\u65B0...",progressRebuilding:"\u6B63\u5728\u91CD\u5EFA\u7D22\u5F15 {current}/{total} \u7BC7\u6587\u6863\u2026",rebuildDone:"\u7D22\u5F15\u91CD\u5EFA\u5B8C\u6210",rebuildFailed:"\u7D22\u5F15\u91CD\u5EFA\u5931\u8D25: {error}",deleteConfirmTitle:"\u5220\u9664\u77E5\u8BC6\u5E93",deleteConfirm:"\u786E\u5B9A\u5220\u9664\u300C{name}\u300D\u5417\uFF1F\u5176\u4E2D\u7684 {docs} \u4E2A\u6587\u6863\u3001{chunks} \u4E2A\u5206\u5757\u5C06\u4E00\u5E76\u5220\u9664\uFF0C\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002",deleteSuccess:"\u77E5\u8BC6\u5E93\u5DF2\u5220\u9664",ingestTitle:"\u5BFC\u5165\u6587\u6863\u5230\u300C{name}\u300D",tabFile:"\u6587\u4EF6",tabText:"\u6587\u672C",tabUrl:"URL",dropHint:"\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u5904\uFF0C\u6216\u70B9\u51FB\u9009\u62E9",dropSupported:"\u652F\u6301 txt / md / pdf / docx / xlsx / html \u7B49\u683C\u5F0F\uFF0C\u5355\u6587\u4EF6 \u2264 50MB",selectedFile:"\u5DF2\u9009\u62E9\uFF1A{name}",textContentLabel:"\u6587\u672C\u5185\u5BB9",textContentPlaceholder:"\u5728\u6B64\u7C98\u8D34\u8981\u5BFC\u5165\u7684\u6587\u672C\u5185\u5BB9...",textNameLabel:"\u6587\u6863\u540D\u79F0\uFF08\u53EF\u9009\uFF09",textNamePlaceholder:"\u7559\u7A7A\u5219\u81EA\u52A8\u547D\u540D",urlLabel:"\u7F51\u9875\u5730\u5740",urlPlaceholder:"https://example.com/page",chunkSettingsTitle:"\u5206\u5757\u8BBE\u7F6E",chunkSizeLabel:"\u5757\u5927\u5C0F\uFF08\u5B57\u7B26\uFF09",chunkOverlapLabel:"\u91CD\u53E0\uFF08\u5B57\u7B26\uFF09",ingestConfirm:"\u5F00\u59CB\u5BFC\u5165",ingesting:"\u6B63\u5728\u89E3\u6790\u5E76\u5411\u91CF\u5316\uFF0C\u9996\u6B21\u5BFC\u5165\u53EF\u80FD\u9700\u8981\u4E0B\u8F7D\u6A21\u578B\uFF0C\u8BF7\u7A0D\u5019...",progressParsing:"\u6B63\u5728\u89E3\u6790\u6587\u6863\u2026",progressChunking:"\u6B63\u5728\u5206\u5757\u2026",progressEmbedding:"\u6B63\u5728\u5411\u91CF\u5316 {current}/{total} \u5757\u2026",progressStoring:"\u6B63\u5728\u5199\u5165\u7D22\u5F15\u2026",ingestSuccess:"\u5BFC\u5165\u5B8C\u6210\uFF1A{name}\uFF08{chunks} \u4E2A\u5206\u5757\uFF09",ingestFailed:"\u5BFC\u5165\u5931\u8D25: {error}",fileRequired:"\u8BF7\u5148\u9009\u62E9\u6587\u4EF6",contentRequired:"\u8BF7\u8F93\u5165\u8981\u5BFC\u5165\u7684\u6587\u672C\u5185\u5BB9",urlRequired:"\u8BF7\u8F93\u5165\u7F51\u9875\u5730\u5740",fileTooLarge:"\u6587\u4EF6\u8FC7\u5927\uFF0C\u6700\u5927\u652F\u6301 50MB",docsTitle:"\u300C{name}\u300D\u7684\u6587\u6863",docsEmpty:"\u8FD8\u6CA1\u6709\u5BFC\u5165\u4EFB\u4F55\u6587\u6863",docChunkCount:"{count} \u5206\u5757",docDeleteConfirmTitle:"\u5220\u9664\u6587\u6863",docDeleteConfirm:"\u786E\u5B9A\u5220\u9664\u6587\u6863\u300C{name}\u300D\u5417\uFF1F\u8BE5\u6587\u6863\u7684\u6240\u6709\u5206\u5757\u5C06\u4ECE\u77E5\u8BC6\u5E93\u4E2D\u79FB\u9664\u3002",docDeleteSuccess:"\u6587\u6863\u5DF2\u5220\u9664",searchTitle:"\u68C0\u7D22\u6D4B\u8BD5",searchScope:"\u68C0\u7D22\u8303\u56F4\uFF1A\u300C{name}\u300D",searchQueryPlaceholder:"\u8F93\u5165\u67E5\u8BE2\u8BED\u53E5\uFF0C\u4F8B\u5982\uFF1A\u5982\u4F55\u5BFC\u51FA\u6570\u636E\uFF1F",searchBtn:"\u68C0\u7D22",searching:"\u68C0\u7D22\u4E2D...",searchTopKLabel:"\u8FD4\u56DE\u6761\u6570",searchThresholdLabel:"\u76F8\u4F3C\u5EA6\u9608\u503C",searchHitCount:"\u547D\u4E2D {count} \u6761",searchNoHits:"\u6CA1\u6709\u547D\u4E2D\u4EFB\u4F55\u5185\u5BB9\uFF0C\u53EF\u5C1D\u8BD5\u964D\u4F4E\u76F8\u4F3C\u5EA6\u9608\u503C\u3002",searchFallbackHint:"\u76F8\u4F3C\u5EA6\u5747\u4F4E\u4E8E\u9608\u503C\uFF0C\u4EE5\u4E0B\u4E3A\u6700\u4F73\u5339\u914D\uFF08\u4EC5\u4F9B\u53C2\u8003\uFF09\uFF1A",searchFailed:"\u68C0\u7D22\u5931\u8D25: {error}",expandFull:"\u5C55\u5F00\u5168\u6587",collapse:"\u6536\u8D77",scoreLabel:"\u76F8\u4F3C\u5EA6",opFailed:"\u64CD\u4F5C\u5931\u8D25: {error}"},contextBubble:{labelSelection:"\u9009\u4E2D\u5185\u5BB9",labelQuoted:"\u5F15\u7528",labelSkill:"\u6280\u80FD",labelMcp:"MCP",labelPage:"\u7F51\u9875",labelFile:"\u6587\u4EF6",labelKnowledge:"\u77E5\u8BC6\u5E93",clickToExpand:"\u70B9\u51FB\u5C55\u5F00",bubbleSkill:"{name} \u{1F9E9}",bubbleMcp:"{name} \u{1F50C}",bubblePage:"{title} \u{1F310}",bubbleKnowledge:"{name} \u{1F4DA} \xB7 \u547D\u4E2D {count} \u6761",bubbleKnowledgeMiss:"{name} \u{1F4DA} \xB7 \u672A\u547D\u4E2D",bubbleKnowledgeFailed:"{name} \u{1F4DA} \xB7 \u68C0\u7D22\u5931\u8D25",bubbleKnowledgeSearching:"\u6B63\u5728\u68C0\u7D22\u77E5\u8BC6\u5E93\u2026",kbHitToggle:"\u70B9\u51FB\u5C55\u5F00/\u6536\u8D77\u5168\u6587",kbHitTruncated:"\u2702 \u5DF2\u622A\u65AD \xB7 \u539F\u6587 {total} \u5B57\uFF0C\u524D {kept} \u5B57\u5DF2\u53D1\u9001",kbHitTruncatedTitle:"\u4E3A\u63A7\u5236\u4E0A\u4E0B\u6587\u4F53\u79EF\uFF0C\u5185\u5BB9\u622A\u65AD\u540E\u518D\u53D1\u9001\u7ED9\u6A21\u578B\uFF1B\u6B64\u5904\u663E\u793A\u7684\u5373\u6A21\u578B\u5B9E\u9645\u6536\u5230\u7684\u7248\u672C",kbHitTruncatedBadge:"\u2702 {count} \u6761\u5DF2\u622A\u65AD"},configDialog:{exportTitle:"\u5BFC\u51FA\u914D\u7F6E",includeSecrets:"\u5305\u542B API \u5BC6\u94A5",secretWarn:"\u26A0 \u654F\u611F\u4FE1\u606F\uFF0C\u8BF7\u786E\u4FDD\u6587\u4EF6\u5B89\u5168",exportDesc:"\u5BFC\u51FA\u6587\u4EF6\u5C06\u5305\u542B\u9664 Agent \u8FDE\u63A5\u4FE1\u606F\u5916\u7684\u6240\u6709\u914D\u7F6E\uFF0C\u53EF\u9009\u62E9\u662F\u5426\u5305\u542B API \u5BC6\u94A5\u3002",export:"\u5BFC\u51FA",importTitle:"\u5BFC\u5165\u914D\u7F6E",mergeImport:"\u5408\u5E76\u5BFC\u5165 \u2014 \u4EC5\u8986\u76D6\u6587\u4EF6\u4E2D\u5B58\u5728\u7684\u914D\u7F6E\u9879\uFF0C\u4FDD\u7559\u5176\u4ED6",replaceImport:"\u5B8C\u5168\u66FF\u6362 \u2014 \u6E05\u7A7A\u5F53\u524D\u914D\u7F6E\uFF0C\u4F7F\u7528\u6587\u4EF6\u4E2D\u7684\u914D\u7F6E",confirmImport:"\u786E\u8BA4\u5BFC\u5165",exportSuccess:"\u914D\u7F6E\u5DF2\u5BFC\u51FA",exportFailed:"\u5BFC\u51FA\u5931\u8D25: {error}",unknownTime:"\u672A\u77E5",importSummary:"\u5BFC\u51FA\u65F6\u95F4: {time}\uFF0C\u5305\u542B {count} \u9879\u914D\u7F6E",invalidFileFormat:"\u65E0\u6548\u7684\u6587\u4EF6\u683C\u5F0F",unrecognizedFormat:"\u65E0\u6CD5\u8BC6\u522B\u7684\u914D\u7F6E\u683C\u5F0F",unknownConfigKey:"\u672A\u77E5\u7684\u914D\u7F6E\u9879: {key}",importFailed:"\u5BFC\u5165\u5931\u8D25: {error}",importParseFailed:"\u5BFC\u5165\u5931\u8D25: \u65E0\u6CD5\u89E3\u6790\u6587\u4EF6\u683C\u5F0F",importedCount:"\u5DF2\u5BFC\u5165 {count} \u9879\u914D\u7F6E"}},Vt={common:{confirm:"Confirm",cancel:"Cancel",close:"Close",ok:"OK",save:"Save",delete:"Delete",edit:"Edit",retry:"Retry",loading:"Loading...",none:"None",add:"Add",clear:"Clear",selectAll:"Select All",deselectAll:"Deselect All",refresh:"Refresh",enabled:"Enabled",disabled:"Disabled",bytes:"bytes",copy:"Copy",copySuccess:"Copied",copyFailed:"Copy failed"},dialog:{operationConfirm:"Operation Confirmation",confirmDefaultMessage:"The model requests to execute a sensitive operation. Allow?",confirmAction:"The model requests to execute: {name}",remainingTime:"Time remaining: {time}",deny:"Deny",approveOnce:"Allow Once",approveLoop:"Allow for This Task"},sensitiveTool:{manage_cookies:"Manage Cookies",clear_data:"Clear Page Data",download_file:"Download File",manage_tab:"Tab Management",agent_file:"File Operations",debug_page:"Page Debugger",debuggerAttachHint:`
25
26
 
26
27
  After enabling, a yellow "extension is debugging this browser" infobar appears on the tab until the session ends.`,unknown:"Unknown Operation",tabInfo:`
27
28
 
28
29
  Tab title: {title}
29
30
  Tab URL: {url}`,tabInfoError:`
30
31
 
31
- (Unable to get tab info: {error})`,untitled:"Untitled",unknownUrl:"Unknown"},settings:{docTitle:"AI Helper - Settings",language:"Interface Language",languageChanged:"Language changed. Some pages will update after refresh.",pageTitle:"AI Helper Settings",subtitle:"Web AI Assistant - OpenAI Compatible API",importConfigTitle:"Import Settings",exportConfigTitle:"Export Settings",tabBasic:"Basic",tabReact:"Reasoning",tabReflection:"Reflection",tabToolbar:"Selection",tabAgent:"Agent",tabToolbox:"Extension",saveConfig:"Save Settings",apiBaseHint:"(Select from dropdown, or enter manually)",addApiBaseTitle:"Add custom API Base URL",addAddress:"+ Add address",apiBaseUrlPlaceholder:"API Base URL (e.g. https://api.example.com/v1)",apiBaseLabelPlaceholder:"Label/Note (optional, e.g. My proxy)",confirmAdd:"Confirm Add",requiredHint:"(required)",apiKeyHint:"Please obtain the API Key from your LLM provider and enter it here. Keep your API Key safe and avoid leakage.",apiKeyPlaceholder:"Enter your API Key",toggleApiKey:"Show/Hide API Key",modelName:"Model name",modelNameHint:"(Select from dropdown, or click the button below to add a new model)",selectModelPlaceholder:"Select a model below",noMatch:"No matches",addModelTitle:"Add custom model",addModel:"+ Add model",fetchModels:"\u27F3 Fetch from API",fetchModelsTitle:"Fetch available models from the current provider API",fetchModelsLoading:"Fetching\u2026",fetchModelsNeedConfig:"Please fill in API Base URL and API Key first",fetchModelsSuccess:"\u2705 Fetched {total} models ({added} new)",fetchModelsEmpty:"No models returned, please add manually",fetchModelsFailed:"\u274C Fetch failed, check config or add manually",fetchModelsAuthFailed:"\u274C Authentication failed, check API Key",modelNameInputPlaceholder:"Model name (e.g. gpt-4o)",contextWindowPlaceholder:"Context window size (tokens)",contextWindowHint:"128K=128000, 200K=200000, 1M=1000000; leave empty to auto-detect",enableImageInput:"Enable image recognition",enableImageInputHint:"(When enabled, you can send images to multimodal models in the sidebar)",imageApiBaseHint:"(Select from dropdown, or enter manually; leave empty to use base model config)",addImageApiBaseTitle:"Add custom image API Base URL",useBaseModelPlaceholder:"Leave empty to use base model config",imageApiKeyHint:"(optional; leave empty to use base model config)",imageApiKeyPlaceholder:"Enter image recognition API Key",imageModelNameHint:"(Models with multimodal vision capability; select from list or add a new one; leave empty to use base model name)",useBaseModelPlaceholderShort:"Leave empty to use base model",addImageModelTitle:"Add custom image recognition model",systemPrompt:"System prompt",systemPromptHint:"(optional; leave empty to use default)",resetToDefault:"Reset to default",systemPromptTip:"\u{1F4A1} Tip: The system prompt defines the behavior and role of the AI assistant.",collapse:"\u2212 Collapse",modelNameRequired:"Please enter a model name",modelAdded:"Model added",imageModelAdded:"Image model added",apiBaseSwitched:"API Base URL switched. Make sure the API Key is valid.",apiBaseRequired:"Please enter an API Base URL",urlInvalid:"Invalid URL format",apiBaseAdded:"API Base URL added",imageApiBaseSwitched:"Image API Base URL switched",imageApiBaseAdded:"Image API Base URL added",maxIterationsRangeError:"Max loop iterations must be between 10-1000",apiTimeoutRangeError:"API request timeout must be between 1-10 minutes",loopTimeoutRangeError:"Overall loop timeout must be between 1-120 minutes",toolTimeoutRangeError:"Tool execution timeout must be between 1-30 minutes",apiKeyEmpty:"API Key cannot be empty",saveFailed:"Save failed: {message}",saveSuccess:"Configuration saved successfully!",deleteModel:"Delete this model",deleteApiBase:"Delete this address",providerConfig:"Provider Profiles",providerConfigHint:"(Takes effect immediately after switching; each profile remembers its own API base, key and model list)",profileScopeHint:"The settings below are saved to provider profile \u201C{name}\u201D and follow profile switching",newProfile:"+ New",newProfileTitle:"Create an empty provider profile",profileNameTitle:"New Provider Profile",saveAsProfile:"Save As",saveAsProfileTitle:"Save current settings as a new provider profile",renameProfile:"Rename",renameProfileTitle:"Rename current profile",deleteProfile:"Delete",deleteProfileTitle:"Delete current profile",profileNamePlaceholder:"Profile name (e.g. DeepSeek Official, My Proxy)",profileNameRequired:"Please enter a profile name",deleteProfileConfirm:"Are you sure you want to delete provider profile \u201C{name}\u201D? This cannot be undone.",atLeastOneProfile:"At least one provider profile must be kept",profileSwitched:"Switched to {name}",profileCreated:"Profile {name} created",profileRenamed:"Renamed to {name}",profileDeleted:"Profile {name} deleted",profileCopySuffix:"Copy",completionFeedbackTitle:"Completion Feedback",completionSound:"Play sound (different tones for success and failure)",completionSoundHint:"Success: bright rising triad (Do-Mi-Sol); Failure: low square-wave double tone; user cancellation is silent",completionConfetti:"Play confetti animation",completionConfettiHint:"Only plays on successful completion; not on failures or cancellations",completionNotification:"Show a desktop notification when a task completes or fails",completionNotificationHint:"Only shown when the side panel is out of view; success auto-dismisses, failures stay until dismissed; click the notification to open the side panel",scheduledNotification:"Show a desktop notification when a scheduled task completes or fails",scheduledNotificationHint:"Scheduled tasks run in the background with no sound or other alerts, so notifications always appear when enabled; on by default, can be turned off",interactionNotification:"Remind me when AI needs confirmation or clarification",interactionNotificationHint:"Shows a desktop reminder while the reasoning loop waits for your action; stays quiet when the side panel is in view; click the notification to open the side panel",showMessageTimestamp:"Show message timestamps",showMessageTimestampHint:"(Shows the asking time below each user question; time only for today, date included for other days)",sidePanelScopeTitle:"Side Panel Scope",sidePanelScopeGlobal:"Global mode",sidePanelScopeTab:"Tab-bound mode",sidePanelScopeGlobalHint:"All tabs in the same window share one side panel instance, and it stays visible when you switch tabs",sidePanelScopeTabHint:"Side panel shows only on the tabs where you opened it; you can open it on multiple tabs, auto-hides when switching away and restores when switching back",autoGroupTabs:"In Tab-bound mode, group tabs where the side panel is opened",autoGroupTabsHint:"Applies to Tab-bound mode only; puts those tabs into a colored tab group for easy identification (tabs move to the group position), and removes a tab when its side panel is closed or you switch back to Global mode"},header:{docTitle:"AI Helper - Chat",settingsTitle:"Extension Settings",switchAgent:"Switch Assistant",defaultAssistant:"\u{1F916} Default Assistant",notConnected:"Not Connected",agentAddress:"Agent Address",copyAgentAddress:"Copy agent address",refreshAgentStatus:"Refresh agent status",restart:"Restart",restartAgent:"Restart agent service",update:"Update",updateAndRestart:"Update and restart agent",stop:"Stop",stopAgent:"Stop agent service",addEditAgent:"Add/Edit Agent",addEditAssistant:"Add/Edit Assistant",manageKnowledge:"Manage Knowledge",moreActions:"More actions",clearChat:"Clear Conversation",exportChat:"Export Conversation",importChat:"Import Conversation",prototypeLibrary:"Prototype Library",tokenStats:"Token Stats",auditLog:"Command Audit",shortcuts:"Shortcuts",versionInfo:"Version Info",detachTitle:"Detach to standalone window",attachTitle:"Attach back to side panel"},detach:{taskRunning:"Task is running, please wait until it finishes"},session:{allSessions:"All Sessions",newSessionTitle:"New Session (Alt+N)",searchPlaceholder:"Search sessions...",closeAll:"Close All",renameTitle:"Rename Session",renamePlaceholder:"Enter session name",confirmCloseTitle:"Confirm Close Session",confirmCloseMessage:"Are you sure you want to close this session? This action cannot be undone."},chat:{welcomeTitle:"Start a Conversation",welcomeSubtitle:"Enter your question and the AI assistant will help you",askBasedOnSelection:"Ask based on selection",confirmClearTitle:"Confirm Clear",confirmClearMessage:"Are you sure you want to clear all conversation history?",confirmDeletePromptTitle:"Confirm Delete",confirmDeletePromptMessage:"Are you sure you want to delete this prompt?",requestFailed:"Request failed: {message}",networkError:"Network error, please check your connection and try again",timeoutError:"Request timeout: {message}",taskInterruptedSwRestart:"Background service restarted unexpectedly, API call interrupted",quote:"Quote",export:"Export",quoteTitle:"Quote this message",quotedPrefix:"\u{1F4AC} Quoted: {text}",navPrevTitle:"Previous message (Alt+\u2191), Ctrl/Cmd+click to go to top",navNextTitle:"Next message (Alt+\u2193), Ctrl/Cmd+click to go to bottom",navQuestionTitle:"Questions",navEmptyLabel:"No questions",navQuestionNoText:"(image/attachment message)"},toolPanel:{title:"Tool Settings",searchPlaceholder:"Search tool name or description...",categoryAll:"All",preselect:"Tool Pre-filter",preselectHint:`On: The AI first decides which tools might be useful and only sends relevant ones. Saves tokens, but if it misjudges and misses a key tool, the task may fail.
32
- Off: All enabled tools are sent at once. No judgment overhead, faster start, but too many tools waste tokens.`,clearSearch:"Clear search",configBtnTitle:"Click to open detailed tool settings"},toolStats:{title:"\u{1F4CA} Tool Usage Stats",subtitle:"Call frequency, success rate, average duration per tool",usedTools:"Used Tools",calls:"Calls",success:"Success",successRate:"Success Rate",avgDuration:"Avg Duration",unusedTools:"Unused Tools",noData:"No data available",btnTitle:"Tool Usage Stats",clearTitle:"Clear stats"},tokenStatsPanel:{title:"\u{1FA99} Token Usage Stats",subtitle:"Per ReAct session & overall dimensions",currentSession:"Current Session",globalStats:"Global Stats",recentCalls:"Recent Calls",noData:"No data available",tabTrend:"Trend",tabDistribution:"Distribution",tabGlobal:"Global",timeRangeToday:"Today",timeRangeWeek:"Week",timeRangeMonth:"Month",timeRangeAll:"All",globalSparklineTitle:"Last 30 Days Trend"},customConfirm:{defaultTitle:"Confirm Action"},promptDialog:{title:"Notice"},promptManager:{title:"Prompt Manager",codePlaceholder:"Code (e.g. code)",contentPlaceholder:"Prompt content",addPrompt:"Add Prompt"},clarify:{title:"Clarification Needed",selectOption:"Please select an option",inputPlaceholder:"Enter additional info (optional)...",customPlaceholder:"Enter your custom content...",additionalTitle:"Additional Notes (optional)",additionalHint:"If you have more relevant information, you can add it here",remainingTime:"Time remaining: 3:00"},prototype:{previewTitle:"UI Prototype Preview",continueOptimize:"\u{1F4A1} Continue Optimizing",libraryTitle:"\u{1F3A8} Prototype Library",searchPlaceholder:"Search prototypes...",sortTimeNew:"Time (new\u2192old)",sortTimeOld:"Time (old\u2192new)",sortTitleAz:"Title (A\u2192Z)",sortTitleZa:"Title (Z\u2192A)",empty:"No prototypes",zoomOut:"Zoom out (Ctrl+scroll)",zoomReset:"Click to reset",resetZoom:"Click to reset",zoomIn:"Zoom in (Ctrl+scroll)",download:"Download",openInTab:"Open in new tab",openInNewTab:"Open in new tab",openLocal:"Open in local browser"},shortcuts:{title:"\u2328\uFE0F Shortcuts",sendMessage:"Send message",newLine:"New line",inputHistory:"Input history (in input box)",clearInput:"Clear input",keyColumn:"Shortcut",functionColumn:"Function",platformColumn:"Platform",platformWinMac:"Win / Mac",prevMessage:"Jump to previous message",nextMessage:"Jump to next message",colShortcut:"Shortcut",colFunction:"Function",colPlatform:"Platform",gotoPrev:"Jump to previous message",gotoNext:"Jump to next message",scrollTop:"Scroll to top of conversation",scrollBottom:"Scroll to bottom of conversation",fullScreenshot:"Full-page screenshot",areaScreenshot:"Area screenshot",regionScreenshot:"Area screenshot",toggleToolConfig:"Open/close tool settings",openShortcutsPanel:"Open shortcuts panel",openShortcutPanel:"Open shortcuts panel",newSession:"New session",closeSession:"Close current session",closeCurrentSession:"Close current session",editLastMessage:"Edit last user message"},versionInfo:{title:"\u2139\uFE0F Version Info",version:"Version",tag:"Git Tag",commit:"Git Commit",publishedAt:"Published At",website:"Website",discussions:"Discussions",reportIssue:"Report Issue",githubRepo:"GitHub Repository",giteeRepo:"Gitee Repository",copy:"Copy Info"},imageEditor:{editImage:"Edit Image",brush:"Brush (B)",rect:"Rectangle (R)",ellipse:"Ellipse (E)",arrow:"Arrow (A)",line:"Line (L)",undo:"Undo (Ctrl+Z)",confirm:"Confirm (Enter)",cancel:"Cancel (Esc)",downloadImage:"Download image",prev:"Previous",next:"Next",prevImage:"Previous",nextImage:"Next",brushSize:"Brush size",eraser:"Eraser"},chatExport:{selectCurrentOnly:"Select Current Only",selectedCount:"{count} selected",exportSelected:"Export Selected",title:"Export Conversations",exportSessions:"Export Conversations"},agentEditor:{createNew:"Create New Assistant",namePlaceholder:"Assistant name",icon:"Icon",descPlaceholder:"What is this assistant good at?",templateQuickCreate:"Quick create from template",promptPlaceholder:"You are a professional...",availableTools:"Available Tools",availableSkills:"Available Skills",modelSettings:"Model Settings (leave empty to use global settings)",modelPlaceholder:"Select or enter model name",allowSubAgent:"Allow being scheduled as a sub-assistant",name:"Name",desc:"Short description",nameLabel:"Name",descLabel:"Short description",selectTemplate:"-- Select template (optional) --",systemPrompt:"System prompt (defines the assistant role and capabilities)",inheritGlobalToolsHint:"(unchecked: inherit global tool settings)",inheritGlobalSkillsHint:"(unchecked: use all enabled skills)",toolsInheritGlobal:"(unchecked: inherit global tool settings)",skillsInheritAll:"(unchecked: use all enabled skills)",noSetting:"No setting (use global)",noPreset:"No setting (use global)",deleteTitle:"Delete this assistant",deleteAgentTitle:"Delete this assistant"},auditLog:{title:"\u{1F4CB} Command Audit",filterAll:"All",filterCommand:"Command Execution",filterFile:"File Operation",filterAuth:"Authentication",filterSecurity:"Security",filterSystem:"System",recent50:"Last 50",recent100:"Last 100",recent200:"Last 200",recent500:"Last 500",searchPlaceholder:"Search action name, command or path...",categoryFilter:"Category filter:",countLabel:"Count:",clearSearch:"Clear",empty:"No audit logs",noLogs:"No audit logs",defaultRange:"Defaults to querying the last 7 days of audit logs"},input:{atHint:"Prompts (click) / Pages (Ctrl/Cmd+click)",placeholder:"Type '/' for prompts, '@' to switch assistant/page, '$' to pick workspace file, '\u2191\u2193' for history, Esc to clear",send:"Send",clearSelection:"Clear selected content",pageLabel:"\u{1F310} Page",clearPage:"Clear page",mcpLabel:"\u{1F50C} MCP",clearMcp:"Clear MCP service",skillLabel:"\u{1F9E9} Skill",clearSkill:"Clear skill",screenshotTitle:"Capture current page (Ctrl/Shift+click for area screenshot)",attachFileTitle:"Upload file (PDF/Word/Excel/Text)",screenshot:"Capture current page (Ctrl/Shift+click for area screenshot)",uploadFile:"Upload file (PDF/Word/Excel/Text)",aiDisclaimer:"AI-generated content, for reference only."},model:{selectModel:"Select model",temperature:"Temperature"},sectionSelect:{searchPlaceholder:"Type to filter\u2026",noMatch:"No matches"},provider:{label:"API Provider",manage:"Manage provider profiles"},promptSelector:{prompts:"Prompts",skills:"Skills",pages:"Pages",agents:"Assistants",proxies:"Agents",knowledge:"Knowledge",pagesCount:"Pages ({count})",agentsCount:"Assistants ({count})",proxiesCount:"Agents ({count})",knowledgeCount:"Knowledge ({count})",headerHint:"Arrow keys to switch \xB7 Enter to send \xB7 Ctrl+Enter to insert into input",agentHeaderHint:"Arrow keys to switch \xB7 Enter to select \xB7 Esc to cancel",switchHint:"Arrow keys to switch \xB7 Enter to send \xB7 Ctrl+Enter to insert into input",switchHintSelect:"Arrow keys to switch \xB7 Enter to select \xB7 Ctrl+Enter to select & close \xB7 Esc to cancel",mergedTitle:"Aggregated Search",mergedTitleCount:"Aggregated Search ({count})"},memory:{label:"Memory",historyLimit:"Memory History Limit",hint:"More memory means more coherent context, but higher token consumption; too little memory may prevent accurate answers based on previous context.",unlimited:"Unlimited",recent200:"Last 200",recent100:"Last 100",recent50:"Last 50",recent20:"Last 20",recent10:"Last 10",recent5:"Last 5",recent2:"Last 2",custom:"Custom:",unit:"entries"},toggle:{memoryHint:"When enabled, previous Q&A will be used as context (all by default, configurable count)",toolsHint:"Master tool switch: click to enable or disable tool calls",selectionHint:"When enabled, select text on page to quickly ask questions",tools:"Tools",selection:"Selection",modelSettings:"Model Settings",toolsConfigTitle:"Click to open detailed tool settings"},selection:{clearSelection:"Clear selected content",page:"\u{1F310} Page",clearPage:"Clear page",clearMcp:"Clear MCP service",skill:"\u{1F9E9} Skill",clearSkill:"Clear skill"},toolCategory:{page_interaction:"\u{1F5B1}\uFE0F Page Interaction",form_operation:"\u{1F4DD} Form Operation",content_extraction:"\u{1F4C4} Content Extraction",tab_management:"\u{1F4D1} Tab Management",bookmark_history:"\u{1F516} Bookmarks & History",storage_management:"\u{1F4BE} Storage Management",network_request:"\u{1F310} Network Request",media_output:"\u{1F4F7} Media & Output",debug_dev:"\u{1F527} Debug & Dev",ai_collaboration:"\u{1F916} AI Collaboration",local_agent:"\u{1F5A5}\uFE0F Agent",mcp:"\u{1F50C} MCP",knowledge:"\u{1F4DA} Knowledge"},presetMode:{preciseLabel:"Precise",preciseTip:"Bug fixing, debugging, accurate answers (low randomness, good for fixing bugs)",generalLabel:"General",generalTip:"Works well for most cases (balanced stability & flexibility, good for scripts)",divergentLabel:"Divergent",divergentTip:"Multiple approaches to compare (good for refactoring, solution comparison)",creativeLabel:"Creative",creativeTip:"Copywriting, naming, brainstorming (high randomness, not for production code)"},tool:{agent_file:"File operations on agent machine (read/write/list/delete/download)",agent_trash:"Manage agent trash bin (list/restore deleted items)",agent_exec:"Execute shell commands on agent machine",agent_search:"Search files or content on agent machine",agent_skill:"Load or run a Skill (run=Workflow, load=Agent Skill)",manage_agent:"List or switch paired AI agents",exec_log:"Extract execution logs to analyze successful paths and failure lessons",clarify_question:"Ask user a clarifying question with options",highlight_text:"Highlight text on page for visual emphasis",plan_task:"Plan and decompose complex task into subtasks",search_chats:"Search past conversation history",preview_ui:"Preview or retrieve a UI prototype",dispatch_task:"Dispatch task to a sub-agent",interact_element:"Click or hover on page element (locate via ref/text/selector)",scroll_to:"Scroll page to target (element/coordinates/text)",wait_element:"Wait for element to appear/disappear/change visibility",drag_drop:"Drag element (\u26A0\uFE0F experimental, may not work on most pages)",wait_navigation:"Wait for page navigation to complete",handle_dialog:"Handle page dialogs (accept/dismiss/restore alert/confirm/prompt)",fill_form:"Fill multiple form fields at once",keyboard_input:"Type text or dispatch key event (bypasses React/Vue controlled components)",file_upload:"Upload file to page",select_dropdown:"Dropdown selection (supports custom components)",page_content:"Get page text or HTML content",extract_data:"Extract structured data (tables/links/images/forms/metadata)",query_elements:"Query interactive elements, returns ref numbers for operations",search_in_page:"Find text in current page content",iframe_content:"Get content of an iframe in the page",scroll_collect:"Scroll and collect content from infinite scroll/lazy-loaded pages",notify:"Show browser notification",clipboard:"Clipboard operations (copy/paste/get selection)",download_file:"Download file to local",qrcode:"Generate QR code",capture_page:"Capture page screenshot (download/analyze/both)",browser_info:"Get browser version and environment info",inject_css:"Inject custom CSS into page",agent_memory:"Long-term memory management (store/recall/manage)",manage_storage:"Read/write browser localStorage or sessionStorage",manage_cookies:"Get/set/remove/list browser cookies",clear_data:"Clear localStorage/sessionStorage for a site",fetch_url:"Send HTTP GET/POST request to a URL",manage_tab:"Manage browser tabs (open/switch/close/reload/navigate)",list_tabs:"Get list of open tabs",search_browser_data:"Search browser bookmarks or history",debug_page:"Advanced page debugging via CDP: native input events, network capture, JS evaluation, full-page/element screenshots, device & UA emulation",knowledge_search:"Search knowledge bases for relevant content (read-only)",knowledge_ingest:"Import text/local file/web page into a knowledge base (write operation)",knowledge_list:"List available knowledge bases and document counts"},react:{title:"\u2699\uFE0F Reasoning Loop Settings",subtitle:"Control behavior parameters of the AI reasoning loop (advanced)",maxIterations:"Max loop iterations",maxIterationsHint:"(increase for complex tasks)",min:"Min: 10",max:"Max: 1000",apiTimeout:"API request timeout",apiTimeoutHint:"(max wait time for a single API call)",unitMinute:"minutes (min)",min1Minute:"Min: 1 minute",max10Minutes:"Max: 10 minutes",max120Minutes:"Max: 120 minutes",max30Minutes:"Max: 30 minutes",loopTimeout:"Overall loop timeout",loopTimeoutHint:"(max execution time for the entire reasoning loop)",toolTimeout:"Tool execution timeout",toolTimeoutHint:"(max wait time for a single tool execution)",toolConfirmation:"Sensitive operation confirmation",toolConfirmationHint:"(confirm via dialog before the model performs sensitive operations)",enabled:"Enabled",disabled:"Disabled",toolConfirmationDesc1:"When enabled, the model will show a confirmation dialog for sensitive operations (tool calls, command execution, etc.) and wait for user approval.",toolConfirmationDesc2:"When disabled, all operations will be executed directly without confirmation.",enableExecutionLog:"Enable execution log",enableExecutionLogHint:"(show detailed logs of API calls and tool execution to help debug and understand AI thinking)",enableExecutionLogDesc1:'When enabled, an "Execution Log" button appears under messages; click to view the detailed API call and tool execution process.',enableExecutionLogDesc2:"When disabled, the button no longer appears.",streaming:"Streaming output",streamingHint:"(when enabled, AI replies are streamed token-by-token for faster perceived response)",streamingDesc1:"When enabled, AI replies and agent-side command execution output stream in real time for faster feedback.",streamingDesc2:"If you encounter compatibility issues, disable this to fall back to one-shot output mode.",streamExpandTools:"Expand streaming tool cards by default",streamExpandToolsHint:"(when disabled, tool cards are collapsed by default; only title and status are shown, click to expand)",configGuide:"\u{1F4A1} Configuration Notes",guideReasoningLoop:"Reasoning loop",guideReasoningLoopDesc:" is the core mechanism for the AI assistant to perform multi-step reasoning and tool calls.",guideLoopCount:"Loop count",guideLoopCountDesc:": determines how many reason-act iterations the AI can perform",guideTimeout:"Timeout settings",guideTimeoutDesc:": prevent long waits or infinite loops",guideClarifyWait:"Clarification wait",guideClarifyWaitDesc:": user clarification time is not counted toward the overall loop timeout (paused)",guideTip:"\u2022 Adjust these parameters based on network conditions and task complexity"},reflection:{title:"\u{1F3AF} AI Self-Reflection Settings",enabled:"Enabled",subtitle:"Control the AI self-evaluation and revision behavior for task results",postReflection:"Post-reflection",postReflectionHint:"(evaluate result quality after completion)",toolReflection:"Tool-level reflection",toolReflectionHint:"(evaluate result after each tool execution)",subtaskReflection:"Subtask reflection",subtaskReflectionHint:"(advanced feature, off by default)",configGuide:"\u{1F4A1} Reflection Configuration Notes",guidePostReflection:"Post-reflection",guidePostReflectionDesc:": after the reasoning loop ends, the AI self-evaluates the final result. If the score is below the threshold, it will automatically revise or re-execute.",guideToolReflection:"Tool-level reflection",guideToolReflectionDesc:": after each tool call, the AI automatically checks whether the result meets expectations and adjusts its strategy on errors or anomalies.",guideSubtaskReflection:"Subtask reflection",guideSubtaskReflectionDesc:": performs separate evaluation for subtasks after complex task decomposition; off by default (advanced feature).",guideTip:"\u2022 Enabling reflection increases the number of API calls; weigh this against your needs"},toolbar:{title:"\u{1F527} Toolbar Settings",enabled:"Enabled",subtitle:"Manage buttons and order of the selection toolbar",iconOnly:"Compact icon-only mode (show icons only, no text)",addCustomTool:"\uFF0B Add custom tool",domainBlocklistTitle:"Domain blocklist",domainBlocklistDesc:"Add domains where the toolbar should be blocked. Once blocked, the selection toolbar will not appear on those domains.",domainAddPlaceholder:"e.g. example.com (without http/https)",add:"Add",toolEditModalTitle:"Add custom tool",toolName:"Tool name",toolNamePlaceholder:"e.g. Polish, Rewrite, Code review",systemPromptLabel:"System prompt",systemPromptHint:"(defines the tool behavior)",toolPromptPlaceholder:"e.g. You are a text polishing assistant. Make the user input more fluent and professional.",builtinBadge:"Built-in",customBadge:"Custom",moveUp:"Move up",moveDown:"Move down",dragSort:"Drag to sort",editCustomToolTitle:"Edit custom tool",toolNameEmpty:"Tool name cannot be empty",toolPromptEmpty:"System prompt cannot be empty",toolNotFound:"Tool not found",cannotEditBuiltin:"Cannot edit built-in tools",noBlockedDomains:"No blocked domains. Enter a domain above to add.",unblock:"Unblock",domainEmpty:"Domain cannot be empty",domainInvalid:"Please enter a valid domain, e.g. example.com",domainExists:"This domain already exists"},agentConfig:{title:"\u{1F5A5}\uFE0F Agent Settings",subtitle:"Connect to the agent service for advanced capabilities such as file read/write, system command execution, conversation memory management, Skill workflows and MCP protocol extensions. Supports multiple agents with one-click connection.",pairedAgents:"Paired agents",notConnected:"Not connected",detailToggle:"\u25B6 Details",addAgentTitle:"Add new agent",agentName:"Agent name",agentNameHint:"(custom; auto-fetched if empty)",agentNamePlaceholder:"e.g. Office Mac",agentUrl:"Agent address",agentUrlHint:"(HTTP address of the agent service)",pairCode:"Pairing code",pairCodeHint:"(view it in the Agent terminal window)",pairCodePlaceholder:"6-digit pairing code",connect:"Connect",toolCount:"{count} tools",selectedTotalCount:"(Selected {selected} / Total {total})",toggleCategoryAll:"Click to toggle select all/deselect all in this category",useInstructionTitle:"\u{1F4A1} Usage Instructions and Safety Tips",method1:"Method 1: NPM global install (recommended)",method1Step1:"(requires Node.js \u2265 18)",method1Step2:" or shorthand ",method1Step3:'3. The terminal shows a 6-digit pairing code; enter it on this page and click "Connect"',method2:"Method 2: Run from source (for development)",method2Step2:'2. The terminal shows a 6-digit pairing code; enter it on this page and click "Connect"',cmdAlias:"Command alias",cmdAliasPrefix:" can be shortened to ",cmdAliasSuffix:"; all commands support this",bgRun:"Background run:",bgRunMethod1:"\u3000Method 1: ",bgRunMethod1Mid:" or ",bgRunMethod2:"\u3000Method 2: ",moreCmd:"More commands:",moreCmdMid:" or ",securityTitle:"\u26A0\uFE0F Security Tips",security1:"The agent service listens only on localhost (127.0.0.1) by default. Modify startup parameters for remote connections.",security2:"File operations are restricted to the working directory and whitelisted directories; no privilege escalation.",security3:"High-risk commands are automatically blocked; sensitive commands support configurable approval.",addAnotherAgent:"Add another agent",checking:"Checking",connected:"Connected",online:"Online",offline:"Offline",clickToEditName:"Click to edit name",currentInUse:"Current in use \xB7 ",enable:"Enable",disable:"Disable",disconnect:"Disconnect",connectedTo:"Connected to: {name}",confirmDeleteAgent:`Are you sure you want to delete agent "{name}" ({url})?
33
- You will need to pair again after deletion.`,deleteAgentTitle:"Delete Agent",agentDeleted:"Agent deleted: {name}",agentDisabledToast:"Agent disabled: {name}",agentEnabledToast:"Agent enabled: {name}",fetchingAgentInfo:"Fetching agent info...",agentUnreachable:"Agent service unreachable",tokenExpired:"Token expired - please re-pair",cannotConnectAgent:"Cannot connect to agent - please make sure the agent service is running",notConnectedSelect:"Not connected - please select an agent from the list",notConnectedAdd:"Not connected - please add an agent pair",unlimited:"Unlimited",idle:"Idle",unknownCommand:"(unknown command)",detailVersion:"Version",detailSystem:"System",detailHostname:"Hostname",detailHomeDir:"Home directory",detailRunningProcesses:"Running processes",detailRunningProcessesCount:"Running processes ({count})",detailMemoryUsage:"Memory usage",detailMemoryDetail:"Heap {used}MB / Total {total}MB \xB7 RSS {rss}MB",detailUptime:"Uptime",detailCpuUser:"CPU user",detailCpuSystem:"CPU system",detailCommandTimeout:"Command timeout",detailUploadMaxSize:"Upload size limit",detailFileMaxSize:"Read size limit",detailAllowedPaths:"Allowed paths",detailPairCodeTTL:"Pairing code validity",detailWorkdir:"\u{1F4C1} Working directory: {dir}",pairCodeRequired:"Please enter the 6-digit pairing code",pairing:"Pairing...",pairingBtn:"Pairing...",unnamedAgent:"Unnamed agent",pairSuccess:"Pairing succeeded! Added: {name}",pairFailed:"Pairing failed: {error}",unknownError:"Unknown error",connectFailed:"Connection failed - please make sure the agent service is running",cannotConnectAgentMsg:"Cannot connect to Agent: {error}",disconnectedToast:"Disconnected",detailToggleOpen:"\u25BC Details",pairFailedShort:"Pairing failed"},toolbox:{checkingAgent:"Checking Agent connection...",mcpTitle:"\u{1F50C} MCP Server Management",mcpDisabled:"Disabled",mcpDesc:"Connect external tool servers via the MCP protocol to extend the AI assistant tool capabilities. When disabled, no MCP tools will be sent to the AI context.",loading:"Loading...",addMcpServer:"+ Add MCP server",skillTitle:"\u{1F9E9} Skill Management",skillDisabled:"Disabled",skillDesc:"Manage reusable workflows and Agent Skills. When disabled, no Skill content will be injected into the AI system prompt.",ragTitle:"\u{1F4DA} Knowledge Retrieval (RAG)",ragDisabled:"Disabled",ragDesc:"Build a knowledge base locally on the agent side for retrieval-augmented answers. Requires optional dependencies (~200-300MB). When disabled, knowledge base content will not be sent to the AI context.",ragServiceEnabled:"Knowledge retrieval enabled",ragServiceDisabled:"Knowledge retrieval disabled",ragStatusChecking:"Checking RAG capability...",ragStatusReadyTitle:"RAG capability ready",ragStatusReadyDesc:"Agent-side dependencies are installed. Knowledge base management will be available in a later version.",ragStatusNotInstalledTitle:"RAG dependencies not installed on agent",ragStatusNotInstalledDesc:"Enable knowledge retrieval by installing the extra dependency packages on the agent side first.",ragStatusNodeLowTitle:"Environment requirement not met",ragStatusNodeLowDesc:"RAG requires Node.js 22+ (agent currently runs {version}). Please upgrade Node.js and restart the agent.",ragStatusAgentOffTitle:"Agent not connected",ragStatusAgentOffDesc:'Please connect the Agent service in the "Agent" tab first, then configure knowledge retrieval',ragStatusUnreachableTitle:"Cannot fetch agent status",ragStatusUnreachableDesc:'Please make sure the agent service is running, then click "Re-detect".',ragInstallPackagesLabel:"Packages to install:",ragInstallRequirements:"Requires Node.js 22+; estimated download of about 200-300MB (includes onnxruntime native libraries, varies by platform); first use also downloads an AI model (~95MB).",ragInstallNoRestartNeeded:"Ready automatically after installation - no agent restart needed.",ragInstallCommandLabel:"Or run manually in the agent install directory:",ragCopyCmd:"\u{1F4CB} Copy command",ragCopied:"Copied to clipboard",ragCopyFailed:"Copy failed, please select and copy manually",ragInstallBtn:"\u2B07\uFE0F Install RAG dependencies",ragInstallBtnBusy:"Installing...",ragRedetectBtn:"\u{1F504} Re-detect",ragInstallStarted:"Installation started, downloading dependencies...",ragInstallRunning:"Installing RAG dependencies...",ragAutoRestoreRunning:"Dependencies missing after agent update - auto-restoring...",ragInstallTip:"Installation may take several minutes. Please do not close the agent service.",ragInstallVerifying:"Installation finished, verifying...",ragInstallSuccess:"RAG dependencies installed successfully, capability is ready",ragInstallFailedToast:"RAG dependency installation failed",ragInstallFailedAdvice:'If installation keeps failing, try restarting the agent service (or retry later), then click "Re-detect".',ragInstallLogLabel:"Installation log (recent output):",ragRedetectReady:"Re-detection finished: RAG capability is ready",ragRedetectStillMissing:"Re-detection finished: RAG dependencies still missing",ragRedetectStillMissingDetail:"RAG dependencies still missing - {error}",ragRedetectFailed:"Re-detection failed: {error}",importSkill:"+ Import Skill",reloadSkills:"\u{1F504} Reload",enabledCountTotal:"Enabled {enabled} / Total {total}",unknownAgent:"Unknown agent",currentAgentSupports:"Current agent: <strong>{name}</strong> \u2014 MCP and Skill supported",agentNotConnectedHint:'Agent not connected \u2014 please connect in the "Agent" tab',mcpIdRequired:"Please enter the server ID",mcpUrlRequired:"Please enter the server URL",mcpCommandRequired:"Please enter the command path",mcpReconnecting:"Reconnecting...",mcpUpdateReconnected:"MCP server updated, reconnected ({count} tools)",mcpUnknownError:"Unknown error, please check the command and arguments",mcpUpdatedReconnectFailed:"Config updated, but reconnect failed: {error}",mcpUpdateSuccess:"MCP server updated successfully",mcpUpdateFailed:"Update failed: {error}",mcpServiceEnabled:"MCP service enabled",mcpServiceDisabled:"MCP service disabled",skillServiceEnabled:"Skill service enabled",skillServiceDisabled:"Skill service disabled",mcpAddSuccess:"MCP server added successfully",mcpAddFailed:"Add failed: {error}",mcpConnecting:"Connecting...",mcpConnectSuccess:"Connected successfully",mcpDisconnectSuccess:"Disconnected",mcpEnabledToast:"Enabled",mcpDisabledToast:"Disabled",mcpConfirmDelete:"Are you sure you want to delete this MCP server?",deleteConfirmTitle:"Confirm Delete",deleteSuccess:"Deleted successfully",collapseTools:"Collapse {count} tools",viewTools:"View {count} tools",operationFailed:"Operation failed: {error}",sizeBytes:"Size: {size} bytes",skillConfirmDelete:'Are you sure you want to delete Skill "{name}"?',skillEnabledToast:'Enabled Skill "{name}"',skillDisabledToast:'Disabled Skill "{name}"',skillInfoFailed:"Failed to get Skill info: {error}",skillRunning:'Running Skill "{name}"...',skillContentFailed:"Failed to get Skill content",skillGetFailed:"Failed to fetch: {error}",skillsReloaded:"Reloaded {count} Skills",skillsReloadFailed:"Reload failed: {error}",emptyAgentNotConnectedTitle:"Agent not connected",emptyAgentNotConnectedDescMcp:'Please connect the Agent service in the "Agent" tab first, then configure MCP servers',emptyNoMcpTitle:"No MCP servers",emptyNoMcpDesc:"Click the button below to add an MCP server and extend the AI assistant tool capabilities",emptyAgentNotConnectedDescSkill:'Please connect the Agent service in the "Agent" tab first, then manage Skills',emptyNoSkillTitle:"No Skills",emptyNoSkillDesc:"Two Skill types are supported:<br><strong>Workflow Skill</strong>: import JSON files (deterministic automated flows)<br><strong>Agent Skill</strong>: import SKILL.md directory/Zip/URL (AI capability extension)",mcpIdPlaceholder:"Server ID",mcpIdPlaceholderUnique:"Server ID (unique identifier)",mcpNamePlaceholder:"Display name",mcpEnvVars:"Environment variables",mcpEnvVarsHint:"(Only needed for stdio transport; export sensitive values in shell config)",mcpAddVar:"+ Add variable",mcpConnected:"Connected",mcpDisconnected:"Not connected",mcpToggleEnabled:"Enabled, click to disable",mcpToggleDisabled:"Disabled, click to enable",mcpDisconnectBtn:"Disconnect",mcpConnectBtn:"Connect",mcpVarNamePlaceholder:"Variable name",mcpVarValuePlaceholder:"Value",mcpToggleEye:"Show/Hide",mcpRemoveRow:"Remove this row",mcpHeaderNamePlaceholder:"Header name",mcpHeaders:"Headers",mcpHeadersHint:"(HTTP request headers, e.g. Authorization, X-API-Key)",mcpAddHeader:"+ Add header",transportStdioTitle:"Subprocess communication (npx/python etc.)",transportSseTitle:"Server-Sent Events (HTTP GET long connection + POST to send)",transportStreamableHttpTitle:"MCP officially recommended HTTP transport (POST + GET SSE)",transportWebsocketTitle:"WebSocket bidirectional communication",mcpCommandPlaceholder:"Command path, e.g. npx, python",mcpArgsPlaceholder:"Arguments, space-separated",mcpCustomHeadersCount:"{count} custom headers",mcpAddFailedShort:"Add failed",mcpDeleteFailedShort:"Delete failed",mcpConnectFailedShort:"Connect failed",mcpDisconnectFailedShort:"Disconnect failed",mcpOperationFailedShort:"Operation failed",workflowSkillsTitle:"Workflow Skills (automated flows)",agentSkillsTitle:"Agent Skills (AI capability extension)",stepCount:"{count} steps",resourceCount:"{count} resources",expand:"Expand",run:"Run",enable:"Enable",disable:"Disable",builtin:"Built-in",moreCount:"+{count} more",editSkillMd:"Edit SKILL.md",viewDetails:"View details",required:"*Required",optional:"Optional",runSkillTitle:'Run Skill "{name}"',fillParamsHint:"Please fill in the following parameters and run:",defaultParamHint:" (default: {default})",noExecutionResult:"No execution result",conditionNotMetSkipped:"Condition not met, skipped",executionSuccess:"Executed successfully",executionFailed:"Execution failed",truncated:"... ({count} chars total, truncated)",executionComplete:"Execution complete",executionSummary:"{success} succeeded, {fail} failed, {skip} skipped",skillRunResultTitle:'Skill "{name}" {status}',skillImportFailedShort:"Import failed",skillDeleteFailedShort:"Delete failed",skillOperationFailedShort:"Operation failed",invalidSkillDataFormat:"Invalid Skill data format",editAgentSkill:"Edit Agent Skill",newAgentSkill:"New Agent Skill",skillNameLabel:"Skill name",skillDescLabel:"Description",skillVersionLabel:"Version",skillMarkdownLabel:"SKILL.md content (Markdown)",skillDescPlaceholder:"Briefly describe what this Skill does",skillDescScenePlaceholder:"Briefly describe the Skill functionality and applicable scenarios",skillNameExamplePlaceholder:"e.g. code-review or deploy-to-server",skillMarkdownPlaceholder:`# Skill name
32
+ (Unable to get tab info: {error})`,untitled:"Untitled",unknownUrl:"Unknown"},settings:{docTitle:"AI Helper - Settings",language:"Interface Language",languageChanged:"Language changed. Some pages will update after refresh.",pageTitle:"AI Helper Settings",subtitle:"Web AI Assistant - OpenAI Compatible API",importConfigTitle:"Import Settings",exportConfigTitle:"Export Settings",tabBasic:"Basic",tabReact:"Reasoning",tabReflection:"Reflection",tabToolbar:"Selection",tabAgent:"Agent",tabToolbox:"Extension",saveConfig:"Save Settings",apiBaseHint:"(Select from dropdown, or enter manually)",addApiBaseTitle:"Add custom API Base URL",addAddress:"+ Add address",apiBaseUrlPlaceholder:"API Base URL (e.g. https://api.example.com/v1)",apiBaseLabelPlaceholder:"Label/Note (optional, e.g. My proxy)",confirmAdd:"Confirm Add",requiredHint:"(required)",apiKeyHint:"Please obtain the API Key from your LLM provider and enter it here. Keep your API Key safe and avoid leakage.",apiKeyPlaceholder:"Enter your API Key",toggleApiKey:"Show/Hide API Key",modelName:"Model name",modelNameHint:"(Select from dropdown, or click the button below to add a new model)",selectModelPlaceholder:"Select a model below",noMatch:"No matches",addModelTitle:"Add custom model",addModel:"+ Add model",fetchModels:"\u27F3 Fetch from API",fetchModelsTitle:"Fetch available models from the current provider API",fetchModelsLoading:"Fetching\u2026",fetchModelsNeedConfig:"Please fill in API Base URL and API Key first",fetchModelsSuccess:"\u2705 Fetched {total} models ({added} new)",fetchModelsEmpty:"No models returned, please add manually",fetchModelsFailed:"\u274C Fetch failed, check config or add manually",fetchModelsAuthFailed:"\u274C Authentication failed, check API Key",modelNameInputPlaceholder:"Model name (e.g. gpt-4o)",contextWindowPlaceholder:"Context window size (tokens)",contextWindowHint:"128K=128000, 200K=200000, 1M=1000000; leave empty to auto-detect",enableImageInput:"Enable image recognition",enableImageInputHint:"(When enabled, you can send images to multimodal models in the sidebar)",imageApiBaseHint:"(Select from dropdown, or enter manually; leave empty to use base model config)",addImageApiBaseTitle:"Add custom image API Base URL",useBaseModelPlaceholder:"Leave empty to use base model config",imageApiKeyHint:"(optional; leave empty to use base model config)",imageApiKeyPlaceholder:"Enter image recognition API Key",imageModelNameHint:"(Models with multimodal vision capability; select from list or add a new one; leave empty to use base model name)",useBaseModelPlaceholderShort:"Leave empty to use base model",addImageModelTitle:"Add custom image recognition model",systemPrompt:"System prompt",systemPromptHint:"(optional; leave empty to use default)",resetToDefault:"Reset to default",systemPromptTip:"\u{1F4A1} Tip: The system prompt defines the behavior and role of the AI assistant.",collapse:"\u2212 Collapse",modelNameRequired:"Please enter a model name",modelAdded:"Model added",imageModelAdded:"Image model added",apiBaseSwitched:"API Base URL switched. Make sure the API Key is valid.",apiBaseRequired:"Please enter an API Base URL",urlInvalid:"Invalid URL format",apiBaseAdded:"API Base URL added",imageApiBaseSwitched:"Image API Base URL switched",imageApiBaseAdded:"Image API Base URL added",maxIterationsRangeError:"Max loop iterations must be between 10-1000",apiTimeoutRangeError:"API request timeout must be between 1-10 minutes",loopTimeoutRangeError:"Overall loop timeout must be between 1-120 minutes",toolTimeoutRangeError:"Tool execution timeout must be between 1-30 minutes",apiKeyEmpty:"API Key cannot be empty",saveFailed:"Save failed: {message}",saveSuccess:"Configuration saved successfully!",deleteModel:"Delete this model",ctxSliderIconTitle:"Set context window for this model",ctxSliderAuto:"Auto",ctxSliderAutoTitle:"Reset to auto-detect",ctxBadgeAutoTip:"Auto-inferred (not set manually)",ctxSliderResetAuto:"Reset to auto",deleteApiBase:"Delete this address",providerConfig:"Provider Profiles",providerConfigHint:"(Takes effect immediately after switching; each profile remembers its own API base, key and model list)",profileScopeHint:"The settings below are saved to provider profile \u201C{name}\u201D and follow profile switching",newProfile:"+ New",newProfileTitle:"Create an empty provider profile",profileNameTitle:"New Provider Profile",saveAsProfile:"Save As",saveAsProfileTitle:"Save current settings as a new provider profile",renameProfile:"Rename",renameProfileTitle:"Rename current profile",deleteProfile:"Delete",deleteProfileTitle:"Delete current profile",profileNamePlaceholder:"Profile name (e.g. DeepSeek Official, My Proxy)",profileNameRequired:"Please enter a profile name",deleteProfileConfirm:"Are you sure you want to delete provider profile \u201C{name}\u201D? This cannot be undone.",atLeastOneProfile:"At least one provider profile must be kept",profileSwitched:"Switched to {name}",profileCreated:"Profile {name} created",profileRenamed:"Renamed to {name}",profileDeleted:"Profile {name} deleted",profileCopySuffix:"Copy",completionFeedbackTitle:"Completion Feedback",completionSound:"Play sound (different tones for success and failure)",completionSoundHint:"Success: bright rising triad (Do-Mi-Sol); Failure: low square-wave double tone; user cancellation is silent",completionConfetti:"Play confetti animation",completionConfettiHint:"Only plays on successful completion; not on failures or cancellations",completionNotification:"Show a desktop notification when a task completes or fails",completionNotificationHint:"Only shown when the side panel is out of view; success auto-dismisses, failures stay until dismissed; click the notification to open the side panel",scheduledNotification:"Show a desktop notification when a scheduled task completes or fails",scheduledNotificationHint:"Scheduled tasks run in the background with no sound or other alerts, so notifications always appear when enabled; on by default, can be turned off",interactionNotification:"Remind me when AI needs confirmation or clarification",interactionNotificationHint:"Shows a desktop reminder while the reasoning loop waits for your action; stays quiet when the side panel is in view; click the notification to open the side panel",showMessageTimestamp:"Show message timestamps",showMessageTimestampHint:"(Shows the asking time below each user question; time only for today, date included for other days)",sidePanelScopeTitle:"Side Panel Scope",sidePanelScopeGlobal:"Global mode",sidePanelScopeTab:"Tab-bound mode",sidePanelScopeGlobalHint:"All tabs in the same window share one side panel instance, and it stays visible when you switch tabs",sidePanelScopeTabHint:"Side panel shows only on the tabs where you opened it; you can open it on multiple tabs, auto-hides when switching away and restores when switching back",autoGroupTabs:"In Tab-bound mode, group tabs where the side panel is opened",autoGroupTabsHint:"Applies to Tab-bound mode only; puts those tabs into a colored tab group for easy identification (tabs move to the group position), and removes a tab when its side panel is closed or you switch back to Global mode"},header:{docTitle:"AI Helper - Chat",settingsTitle:"Extension Settings",switchAgent:"Switch Assistant",defaultAssistant:"\u{1F916} Default Assistant",notConnected:"Not Connected",agentAddress:"Agent Address",copyAgentAddress:"Copy agent address",refreshAgentStatus:"Refresh agent status",restart:"Restart",restartAgent:"Restart agent service",update:"Update",updateAndRestart:"Update and restart agent",stop:"Stop",stopAgent:"Stop agent service",addEditAgent:"Add/Edit Agent",addEditAssistant:"Add/Edit Assistant",manageKnowledge:"Manage Knowledge",moreActions:"More actions",clearChat:"Clear Conversation",exportChat:"Export Conversation",importChat:"Import Conversation",prototypeLibrary:"Prototype Library",tokenStats:"Token Stats",auditLog:"Command Audit",shortcuts:"Shortcuts",versionInfo:"Version Info",detachTitle:"Detach to standalone window",attachTitle:"Attach back to side panel"},detach:{taskRunning:"Task is running, please wait until it finishes"},session:{allSessions:"All Sessions",newSessionTitle:"New Session (Alt+N)",searchPlaceholder:"Search sessions...",closeAll:"Close All",renameTitle:"Rename Session",renamePlaceholder:"Enter session name",confirmCloseTitle:"Confirm Close Session",confirmCloseMessage:"Are you sure you want to close this session? This action cannot be undone."},chat:{welcomeTitle:"Start a Conversation",welcomeSubtitle:"Enter your question and the AI assistant will help you",askBasedOnSelection:"Ask based on selection",confirmClearTitle:"Confirm Clear",confirmClearMessage:"Are you sure you want to clear all conversation history?",confirmDeletePromptTitle:"Confirm Delete",confirmDeletePromptMessage:"Are you sure you want to delete this prompt?",requestFailed:"Request failed: {message}",networkError:"Network error, please check your connection and try again",timeoutError:"Request timeout: {message}",taskInterruptedSwRestart:"Background service restarted unexpectedly, API call interrupted",quote:"Quote",export:"Export",quoteTitle:"Quote this message",quotedPrefix:"\u{1F4AC} Quoted: {text}",navPrevTitle:"Previous message (Alt+\u2191), Ctrl/Cmd+click to go to top",navNextTitle:"Next message (Alt+\u2193), Ctrl/Cmd+click to go to bottom",navQuestionTitle:"Questions",navEmptyLabel:"No questions",navQuestionNoText:"(image/attachment message)"},toolPanel:{title:"Tool Settings",searchPlaceholder:"Search tool name or description...",categoryAll:"All",preselect:"Tool Pre-filter",preselectHint:`On: The AI first decides which tools might be useful and only sends relevant ones. Saves tokens, but if it misjudges and misses a key tool, the task may fail.
33
+ Off: All enabled tools are sent at once. No judgment overhead, faster start, but too many tools waste tokens.`,confirmHint:`When enabled, the model will show a confirmation dialog for sensitive operations (tool calls, command execution, etc.) and wait for user approval.
34
+ When disabled, all operations will be executed directly without confirmation.`,clearSearch:"Clear search",configBtnTitle:"Click to open detailed tool settings"},toolStats:{title:"\u{1F4CA} Tool Usage Stats",subtitle:"Call frequency, success rate, average duration per tool",usedTools:"Used Tools",calls:"Calls",success:"Success",successRate:"Success Rate",avgDuration:"Avg Duration",unusedTools:"Unused Tools",noData:"No data available",btnTitle:"Tool Usage Stats",clearTitle:"Clear stats"},tokenStatsPanel:{title:"\u{1FA99} Token Usage Stats",subtitle:"Per ReAct session & overall dimensions",currentSession:"Current Session",globalStats:"Global Stats",recentCalls:"Recent Calls",noData:"No data available",tabTrend:"Trend",tabDistribution:"Distribution",tabGlobal:"Global",timeRangeToday:"Today",timeRangeWeek:"Week",timeRangeMonth:"Month",timeRangeAll:"All",globalSparklineTitle:"Last 30 Days Trend"},customConfirm:{defaultTitle:"Confirm Action"},promptDialog:{title:"Notice"},promptManager:{title:"Prompt Manager",codePlaceholder:"Code (e.g. code)",contentPlaceholder:"Prompt content",addPrompt:"Add Prompt"},clarify:{title:"Clarification Needed",selectOption:"Please select an option",inputPlaceholder:"Enter additional info (optional)...",customPlaceholder:"Enter your custom content...",additionalTitle:"Additional Notes (optional)",additionalHint:"If you have more relevant information, you can add it here",remainingTime:"Time remaining: 3:00"},prototype:{previewTitle:"UI Prototype Preview",continueOptimize:"\u{1F4A1} Continue Optimizing",libraryTitle:"\u{1F3A8} Prototype Library",searchPlaceholder:"Search prototypes...",sortTimeNew:"Time (new\u2192old)",sortTimeOld:"Time (old\u2192new)",sortTitleAz:"Title (A\u2192Z)",sortTitleZa:"Title (Z\u2192A)",empty:"No prototypes",zoomOut:"Zoom out (Ctrl+scroll)",zoomReset:"Click to reset",resetZoom:"Click to reset",zoomIn:"Zoom in (Ctrl+scroll)",download:"Download",openInTab:"Open in new tab",openInNewTab:"Open in new tab",openLocal:"Open in local browser"},shortcuts:{title:"\u2328\uFE0F Shortcuts",sendMessage:"Send message",newLine:"New line",inputHistory:"Input history (in input box)",clearInput:"Clear input",keyColumn:"Shortcut",functionColumn:"Function",platformColumn:"Platform",platformWinMac:"Win / Mac",prevMessage:"Jump to previous message",nextMessage:"Jump to next message",colShortcut:"Shortcut",colFunction:"Function",colPlatform:"Platform",gotoPrev:"Jump to previous message",gotoNext:"Jump to next message",scrollTop:"Scroll to top of conversation",scrollBottom:"Scroll to bottom of conversation",fullScreenshot:"Full-page screenshot",areaScreenshot:"Area screenshot",regionScreenshot:"Area screenshot",toggleToolConfig:"Open/close tool settings",openShortcutsPanel:"Open shortcuts panel",openShortcutPanel:"Open shortcuts panel",newSession:"New session",closeSession:"Close current session",closeCurrentSession:"Close current session",editLastMessage:"Edit last user message"},versionInfo:{title:"\u2139\uFE0F Version Info",version:"Version",tag:"Git Tag",commit:"Git Commit",publishedAt:"Published At",website:"Website",discussions:"Discussions",reportIssue:"Report Issue",githubRepo:"GitHub Repository",giteeRepo:"Gitee Repository",copy:"Copy Info"},imageEditor:{editImage:"Edit Image",brush:"Brush (B)",rect:"Rectangle (R)",ellipse:"Ellipse (E)",arrow:"Arrow (A)",line:"Line (L)",undo:"Undo (Ctrl+Z)",confirm:"Confirm (Enter)",cancel:"Cancel (Esc)",downloadImage:"Download image",prev:"Previous",next:"Next",prevImage:"Previous",nextImage:"Next",brushSize:"Brush size",eraser:"Eraser"},chatExport:{selectCurrentOnly:"Select Current Only",selectedCount:"{count} selected",exportSelected:"Export Selected",title:"Export Conversations",exportSessions:"Export Conversations"},agentEditor:{createNew:"Create New Assistant",namePlaceholder:"Assistant name",icon:"Icon",descPlaceholder:"What is this assistant good at?",templateQuickCreate:"Quick create from template",promptPlaceholder:"You are a professional...",availableTools:"Available Tools",availableSkills:"Available Skills",modelSettings:"Model Settings (leave empty to use global settings)",modelPlaceholder:"Select or enter model name",allowSubAgent:"Allow being scheduled as a sub-assistant",name:"Name",desc:"Short description",nameLabel:"Name",descLabel:"Short description",selectTemplate:"-- Select template (optional) --",systemPrompt:"System prompt (defines the assistant role and capabilities)",inheritGlobalToolsHint:"(unchecked: inherit global tool settings)",inheritGlobalSkillsHint:"(unchecked: use all enabled skills)",toolsInheritGlobal:"(unchecked: inherit global tool settings)",skillsInheritAll:"(unchecked: use all enabled skills)",noSetting:"No setting (use global)",noPreset:"No setting (use global)",deleteTitle:"Delete this assistant",deleteAgentTitle:"Delete this assistant"},auditLog:{title:"\u{1F4CB} Command Audit",filterAll:"All",filterCommand:"Command Execution",filterFile:"File Operation",filterAuth:"Authentication",filterSecurity:"Security",filterSystem:"System",recent50:"Last 50",recent100:"Last 100",recent200:"Last 200",recent500:"Last 500",searchPlaceholder:"Search action name, command or path...",categoryFilter:"Category filter:",countLabel:"Count:",clearSearch:"Clear",empty:"No audit logs",noLogs:"No audit logs",defaultRange:"Defaults to querying the last 7 days of audit logs"},input:{atHint:"Prompts (click) / Pages (Ctrl/Cmd+click)",placeholder:"Type '/' for prompts, '@' to switch assistant/page, '$' to pick workspace file, '\u2191\u2193' for history, Esc to clear",send:"Send",clearSelection:"Clear selected content",pageLabel:"\u{1F310} Page",clearPage:"Clear page",mcpLabel:"\u{1F50C} MCP",clearMcp:"Clear MCP service",skillLabel:"\u{1F9E9} Skill",clearSkill:"Clear skill",screenshotTitle:"Capture current page",attachFileTitle:"Upload file (PDF/Word/Excel/Text)",screenshot:"Capture current page",uploadFile:"Upload file (PDF/Word/Excel/Text)",aiDisclaimer:"AI-generated content, for reference only.",addMenuTitle:"Add content",addMenuPrompt:"Prompts",addMenuScreenshot:"Screenshot",addMenuScreenshotFull:"Full page capture",addMenuScreenshotFullDesc:"Capture the current visible page",addMenuScreenshotRegion:"Area capture",addMenuScreenshotRegionDesc:"Drag to select an area on the page",addMenuFile:"Attachment",addMenuSwitches:"Toggles"},model:{selectModel:"Select model",temperature:"Temperature"},sectionSelect:{searchPlaceholder:"Type to filter\u2026",noMatch:"No matches"},provider:{label:"API Provider",manage:"Manage provider profiles"},promptSelector:{prompts:"Prompts",skills:"Skills",pages:"Pages",agents:"Assistants",proxies:"Agents",knowledge:"Knowledge",pagesCount:"Pages ({count})",agentsCount:"Assistants ({count})",proxiesCount:"Agents ({count})",knowledgeCount:"Knowledge ({count})",headerHint:"Arrow keys to switch \xB7 Enter to send \xB7 Ctrl+Enter to insert into input",agentHeaderHint:"Arrow keys to switch \xB7 Enter to select \xB7 Esc to cancel",switchHint:"Arrow keys to switch \xB7 Enter to send \xB7 Ctrl+Enter to insert into input",switchHintSelect:"Arrow keys to switch \xB7 Enter to select \xB7 Ctrl+Enter to select & close \xB7 Esc to cancel",mergedTitle:"Aggregated Search",mergedTitleCount:"Aggregated Search ({count})"},memory:{label:"Memory",historyLimit:"Memory History Limit",hint:"More memory means more coherent context, but higher token consumption; too little memory may prevent accurate answers based on previous context.",unlimited:"Unlimited",recent200:"Last 200",recent100:"Last 100",recent50:"Last 50",recent20:"Last 20",recent10:"Last 10",recent5:"Last 5",recent2:"Last 2",custom:"Custom:",unit:"entries"},toggle:{memoryHint:"When enabled, previous Q&A will be used as context (all by default, configurable count)",toolsHint:"Master tool switch: click to enable or disable tool calls",selectionHint:"When enabled, select text on page to quickly ask questions",tools:"Tools",selection:"Selection",modelSettings:"Model Settings",toolsConfigTitle:"Click to open detailed tool settings"},selection:{clearSelection:"Clear selected content",page:"\u{1F310} Page",clearPage:"Clear page",clearMcp:"Clear MCP service",skill:"\u{1F9E9} Skill",clearSkill:"Clear skill"},toolCategory:{page_interaction:"\u{1F5B1}\uFE0F Page Interaction",form_operation:"\u{1F4DD} Form Operation",content_extraction:"\u{1F4C4} Content Extraction",tab_management:"\u{1F4D1} Tab Management",bookmark_history:"\u{1F516} Bookmarks & History",storage_management:"\u{1F4BE} Storage Management",network_request:"\u{1F310} Network Request",media_output:"\u{1F4F7} Media & Output",debug_dev:"\u{1F527} Debug & Dev",ai_collaboration:"\u{1F916} AI Collaboration",local_agent:"\u{1F5A5}\uFE0F Agent",mcp:"\u{1F50C} MCP",knowledge:"\u{1F4DA} Knowledge"},presetMode:{preciseLabel:"Precise",preciseTip:"Bug fixing, debugging, accurate answers (low randomness, good for fixing bugs)",generalLabel:"General",generalTip:"Works well for most cases (balanced stability & flexibility, good for scripts)",divergentLabel:"Divergent",divergentTip:"Multiple approaches to compare (good for refactoring, solution comparison)",creativeLabel:"Creative",creativeTip:"Copywriting, naming, brainstorming (high randomness, not for production code)"},tool:{agent_file:"File operations on agent machine (read/write/list/delete/download)",agent_trash:"Manage agent trash bin (list/restore deleted items)",agent_exec:"Execute shell commands on agent machine",agent_search:"Search files or content on agent machine",agent_skill:"Load or run a Skill (run=Workflow, load=Agent Skill)",manage_agent:"List or switch paired AI agents",exec_log:"Extract execution logs to analyze successful paths and failure lessons",clarify_question:"Ask user a clarifying question with options",highlight_text:"Highlight text on page for visual emphasis",plan_task:"Plan and decompose complex task into subtasks",search_chats:"Search past conversation history",preview_ui:"Preview or retrieve a UI prototype",dispatch_task:"Dispatch task to a sub-agent",interact_element:"Interact with page element (locate via ref/text/selector; click/hover/type)",scroll_to:"Scroll page to target (element/coordinates/text)",wait_element:"Wait for element to appear/disappear/change visibility",drag_drop:"Drag element (\u26A0\uFE0F experimental, may not work on most pages)",wait_navigation:"Wait for page navigation to complete",handle_dialog:"Handle page dialogs (accept/dismiss/restore alert/confirm/prompt)",fill_form:"Fill multiple form fields at once (supports ref)",keyboard_input:"Type text or dispatch key event (bypasses React/Vue controlled components)",file_upload:"Upload file to page",select_dropdown:"Dropdown selection (supports custom components)",page_content:"Get page text or HTML content",extract_data:"Extract structured data (tables/links/images/forms/metadata)",query_elements:"Query interactive elements, returns tree snapshot with ref numbers (open overlays lifted under [Open overlays]; visible iframes included as [frame #N] blocks with globally valid refs; refs stable for the same element; re-query after page changes; use page to paginate when hasMore)",search_in_page:"Find text in current page content",iframe_content:"Get content of an iframe in the page",scroll_collect:"Scroll and collect content from infinite scroll/lazy-loaded pages",notify:"Show browser notification",clipboard:"Clipboard operations (copy/paste/get selection)",download_file:"Download file to local",qrcode:"Generate QR code",capture_page:"Capture page screenshot (download/analyze/both)",browser_info:"Get browser version and environment info",inject_css:"Inject custom CSS into page",agent_memory:"Long-term memory management (store/recall/manage)",manage_storage:"Read/write browser localStorage or sessionStorage",manage_cookies:"Get/set/remove/list browser cookies",clear_data:"Clear localStorage/sessionStorage for a site",fetch_url:"Send HTTP GET/POST request to a URL",manage_tab:"Manage browser tabs (open/switch/close/reload/navigate)",list_tabs:"Get list of open tabs",search_browser_data:"Search browser bookmarks or history",debug_page:"Advanced page debugging via CDP: native input events, network capture, JS evaluation, full-page/element screenshots, device & UA emulation",knowledge_search:"Search knowledge bases for relevant content (read-only)",knowledge_ingest:"Import text/local file/web page into a knowledge base (write operation)",knowledge_list:"List available knowledge bases and document counts"},react:{title:"\u2699\uFE0F Reasoning Loop Settings",subtitle:"Control behavior parameters of the AI reasoning loop (advanced)",maxIterations:"Max loop iterations",maxIterationsHint:"(increase for complex tasks)",min:"Min: 10",max:"Max: 1000",apiTimeout:"API request timeout",apiTimeoutHint:"(max wait time for a single API call)",unitMinute:"minutes (min)",min1Minute:"Min: 1 minute",max10Minutes:"Max: 10 minutes",max120Minutes:"Max: 120 minutes",max30Minutes:"Max: 30 minutes",loopTimeout:"Overall loop timeout",loopTimeoutHint:"(max execution time for the entire reasoning loop)",toolTimeout:"Tool execution timeout",toolTimeoutHint:"(max wait time for a single tool execution)",toolConfirmation:"Sensitive operation confirmation",toolConfirmationHint:"(confirm via dialog before the model performs sensitive operations)",enabled:"Enabled",disabled:"Disabled",toolConfirmationDesc1:"When enabled, the model will show a confirmation dialog for sensitive operations (tool calls, command execution, etc.) and wait for user approval.",toolConfirmationDesc2:"When disabled, all operations will be executed directly without confirmation.",enableExecutionLog:"Enable execution log",enableExecutionLogHint:"(show detailed logs of API calls and tool execution to help debug and understand AI thinking)",enableExecutionLogDesc1:'When enabled, an "Execution Log" button appears under messages; click to view the detailed API call and tool execution process.',enableExecutionLogDesc2:"When disabled, the button no longer appears.",streaming:"Streaming output",streamingHint:"(when enabled, AI replies are streamed token-by-token for faster perceived response)",streamingDesc1:"When enabled, AI replies and agent-side command execution output stream in real time for faster feedback.",streamingDesc2:"If you encounter compatibility issues, disable this to fall back to one-shot output mode.",streamExpandTools:"Expand streaming tool cards by default",streamExpandToolsHint:"(when disabled, tool cards are collapsed by default; only title and status are shown, click to expand)",configGuide:"\u{1F4A1} Configuration Notes",guideReasoningLoop:"Reasoning loop",guideReasoningLoopDesc:" is the core mechanism for the AI assistant to perform multi-step reasoning and tool calls.",guideLoopCount:"Loop count",guideLoopCountDesc:": determines how many reason-act iterations the AI can perform",guideTimeout:"Timeout settings",guideTimeoutDesc:": prevent long waits or infinite loops",guideClarifyWait:"Clarification wait",guideClarifyWaitDesc:": user clarification time is not counted toward the overall loop timeout (paused)",guideTip:"\u2022 Adjust these parameters based on network conditions and task complexity"},reflection:{title:"\u{1F3AF} AI Self-Reflection Settings",enabled:"Enabled",subtitle:"Control the AI self-evaluation and revision behavior for task results",postReflection:"Post-reflection",postReflectionHint:"(evaluate result quality after completion)",subtaskReflection:"Subtask reflection",subtaskReflectionHint:"(advanced feature, off by default)",configGuide:"\u{1F4A1} Reflection Configuration Notes",guidePostReflection:"Post-reflection",guidePostReflectionDesc:": after the reasoning loop ends, the AI self-evaluates the final result. If the score is below the threshold, it will automatically revise or re-execute.",guideSubtaskReflection:"Subtask reflection",guideSubtaskReflectionDesc:": performs separate evaluation for subtasks after complex task decomposition; off by default (advanced feature).",guideTip:"\u2022 Enabling reflection increases the number of API calls; weigh this against your needs"},toolbar:{title:"\u{1F527} Toolbar Settings",enabled:"Enabled",subtitle:"Manage buttons and order of the selection toolbar",iconOnly:"Compact icon-only mode (show icons only, no text)",addCustomTool:"\uFF0B Add custom tool",domainBlocklistTitle:"Domain blocklist",domainBlocklistDesc:"Add domains where the toolbar should be blocked. Once blocked, the selection toolbar will not appear on those domains.",domainAddPlaceholder:"e.g. example.com (without http/https)",add:"Add",toolEditModalTitle:"Add custom tool",toolName:"Tool name",toolNamePlaceholder:"e.g. Polish, Rewrite, Code review",systemPromptLabel:"System prompt",systemPromptHint:"(defines the tool behavior)",toolPromptPlaceholder:"e.g. You are a text polishing assistant. Make the user input more fluent and professional.",builtinBadge:"Built-in",customBadge:"Custom",moveUp:"Move up",moveDown:"Move down",dragSort:"Drag to sort",editCustomToolTitle:"Edit custom tool",toolNameEmpty:"Tool name cannot be empty",toolPromptEmpty:"System prompt cannot be empty",toolNotFound:"Tool not found",cannotEditBuiltin:"Cannot edit built-in tools",noBlockedDomains:"No blocked domains. Enter a domain above to add.",unblock:"Unblock",domainEmpty:"Domain cannot be empty",domainInvalid:"Please enter a valid domain, e.g. example.com",domainExists:"This domain already exists"},agentConfig:{title:"\u{1F5A5}\uFE0F Agent Settings",subtitle:"Connect to the agent service for advanced capabilities such as file read/write, system command execution, conversation memory management, Skill workflows and MCP protocol extensions. Supports multiple agents with one-click connection.",pairedAgents:"Paired agents",notConnected:"Not connected",detailToggle:"\u25B6 Details",addAgentTitle:"Add new agent",agentName:"Agent name",agentNameHint:"(custom; auto-fetched if empty)",agentNamePlaceholder:"e.g. Office Mac",agentUrl:"Agent address",agentUrlHint:"(HTTP address of the agent service)",pairCode:"Pairing code",pairCodeHint:"(view it in the Agent terminal window)",pairCodePlaceholder:"6-digit pairing code",connect:"Connect",toolCount:"{count} tools",selectedTotalCount:"(Selected {selected} / Total {total})",toggleCategoryAll:"Click to toggle select all/deselect all in this category",useInstructionTitle:"\u{1F4A1} Usage Instructions and Safety Tips",method1:"Method 1: NPM global install (recommended)",method1Step1:"(requires Node.js \u2265 18)",method1Step2:" or shorthand ",method1Step3:'3. The terminal shows a 6-digit pairing code; enter it on this page and click "Connect"',method2:"Method 2: Run from source (for development)",method2Step2:'2. The terminal shows a 6-digit pairing code; enter it on this page and click "Connect"',cmdAlias:"Command alias",cmdAliasPrefix:" can be shortened to ",cmdAliasSuffix:"; all commands support this",bgRun:"Background run:",bgRunMethod1:"\u3000Method 1: ",bgRunMethod1Mid:" or ",bgRunMethod2:"\u3000Method 2: ",moreCmd:"More commands:",moreCmdMid:" or ",securityTitle:"\u26A0\uFE0F Security Tips",security1:"The agent service listens only on localhost (127.0.0.1) by default. Modify startup parameters for remote connections.",security2:"File operations are restricted to the working directory and whitelisted directories; no privilege escalation.",security3:"High-risk commands are automatically blocked; sensitive commands support configurable approval.",addAnotherAgent:"Add another agent",checking:"Checking",connected:"Connected",online:"Online",offline:"Offline",clickToEditName:"Click to edit name",currentInUse:"Current in use \xB7 ",enable:"Enable",disable:"Disable",disconnect:"Disconnect",connectedTo:"Connected to: {name}",confirmDeleteAgent:`Are you sure you want to delete agent "{name}" ({url})?
35
+ You will need to pair again after deletion.`,deleteAgentTitle:"Delete Agent",agentDeleted:"Agent deleted: {name}",agentDisabledToast:"Agent disabled: {name}",agentEnabledToast:"Agent enabled: {name}",fetchingAgentInfo:"Fetching agent info...",agentUnreachable:"Agent service unreachable",tokenExpired:"Token expired - please re-pair",cannotConnectAgent:"Cannot connect to agent - please make sure the agent service is running",notConnectedSelect:"Not connected - please select an agent from the list",notConnectedAdd:"Not connected - please add an agent pair",unlimited:"Unlimited",idle:"Idle",unknownCommand:"(unknown command)",detailVersion:"Version",detailSystem:"System",detailHostname:"Hostname",detailHomeDir:"Home directory",detailRunningProcesses:"Running processes",detailRunningProcessesCount:"Running processes ({count})",detailMemoryUsage:"Memory usage",detailMemoryDetail:"Heap {used}MB / Total {total}MB \xB7 RSS {rss}MB",detailUptime:"Uptime",detailCpuUser:"CPU user",detailCpuSystem:"CPU system",detailCommandTimeout:"Command timeout",detailUploadMaxSize:"Upload size limit",detailFileMaxSize:"Read size limit",detailAllowedPaths:"Allowed paths",detailPairCodeTTL:"Pairing code validity",detailWorkdir:"\u{1F4C1} Working directory: {dir}",pairCodeRequired:"Please enter the 6-digit pairing code",pairing:"Pairing...",pairingBtn:"Pairing...",unnamedAgent:"Unnamed agent",pairSuccess:"Pairing succeeded! Added: {name}",pairFailed:"Pairing failed: {error}",unknownError:"Unknown error",connectFailed:"Connection failed - please make sure the agent service is running",cannotConnectAgentMsg:"Cannot connect to Agent: {error}",disconnectedToast:"Disconnected",detailToggleOpen:"\u25BC Details",pairFailedShort:"Pairing failed"},toolbox:{checkingAgent:"Checking Agent connection...",mcpTitle:"\u{1F50C} MCP Server Management",mcpDisabled:"Disabled",mcpDesc:"Connect external tool servers via the MCP protocol to extend the AI assistant tool capabilities. When disabled, no MCP tools will be sent to the AI context.",loading:"Loading...",addMcpServer:"+ Add MCP server",skillTitle:"\u{1F9E9} Skill Management",skillDisabled:"Disabled",skillDesc:"Manage reusable workflows and Agent Skills. When disabled, no Skill content will be injected into the AI system prompt.",ragTitle:"\u{1F4DA} Knowledge Retrieval (RAG)",ragDisabled:"Disabled",ragDesc:"Build a knowledge base locally on the agent side for retrieval-augmented answers. Requires optional dependencies (~200-300MB). When disabled, knowledge base content will not be sent to the AI context.",ragServiceEnabled:"Knowledge retrieval enabled",ragServiceDisabled:"Knowledge retrieval disabled",ragStatusChecking:"Checking RAG capability...",ragStatusReadyTitle:"RAG capability ready",ragStatusReadyDesc:"Agent-side dependencies are installed. Knowledge base management will be available in a later version.",ragStatusNotInstalledTitle:"RAG dependencies not installed on agent",ragStatusNotInstalledDesc:"Enable knowledge retrieval by installing the extra dependency packages on the agent side first.",ragStatusNodeLowTitle:"Environment requirement not met",ragStatusNodeLowDesc:"RAG requires Node.js 22+ (agent currently runs {version}). Please upgrade Node.js and restart the agent.",ragStatusAgentOffTitle:"Agent not connected",ragStatusAgentOffDesc:'Please connect the Agent service in the "Agent" tab first, then configure knowledge retrieval',ragStatusUnreachableTitle:"Cannot fetch agent status",ragStatusUnreachableDesc:'Please make sure the agent service is running, then click "Re-detect".',ragInstallPackagesLabel:"Packages to install:",ragInstallRequirements:"Requires Node.js 22+; estimated download of about 200-300MB (includes onnxruntime native libraries, varies by platform); first use also downloads an AI model (~95MB).",ragInstallNoRestartNeeded:"Ready automatically after installation - no agent restart needed.",ragInstallCommandLabel:"Or run manually in the agent install directory:",ragCopyCmd:"\u{1F4CB} Copy command",ragCopied:"Copied to clipboard",ragCopyFailed:"Copy failed, please select and copy manually",ragInstallBtn:"\u2B07\uFE0F Install RAG dependencies",ragInstallBtnBusy:"Installing...",ragRedetectBtn:"\u{1F504} Re-detect",ragInstallStarted:"Installation started, downloading dependencies...",ragInstallRunning:"Installing RAG dependencies...",ragAutoRestoreRunning:"Dependencies missing after agent update - auto-restoring...",ragInstallTip:"Installation may take several minutes. Please do not close the agent service.",ragInstallVerifying:"Installation finished, verifying...",ragInstallSuccess:"RAG dependencies installed successfully, capability is ready",ragInstallFailedToast:"RAG dependency installation failed",ragInstallFailedAdvice:'If installation keeps failing, try restarting the agent service (or retry later), then click "Re-detect".',ragInstallLogLabel:"Installation log (recent output):",ragRedetectReady:"Re-detection finished: RAG capability is ready",ragRedetectStillMissing:"Re-detection finished: RAG dependencies still missing",ragRedetectStillMissingDetail:"RAG dependencies still missing - {error}",ragRedetectFailed:"Re-detection failed: {error}",importSkill:"+ Import Skill",reloadSkills:"\u{1F504} Reload",enabledCountTotal:"Enabled {enabled} / Total {total}",unknownAgent:"Unknown agent",currentAgentSupports:"Current agent: <strong>{name}</strong> \u2014 MCP and Skill supported",agentNotConnectedHint:'Agent not connected \u2014 please connect in the "Agent" tab',mcpIdRequired:"Please enter the server ID",mcpUrlRequired:"Please enter the server URL",mcpCommandRequired:"Please enter the command path",mcpReconnecting:"Reconnecting...",mcpUpdateReconnected:"MCP server updated, reconnected ({count} tools)",mcpUnknownError:"Unknown error, please check the command and arguments",mcpUpdatedReconnectFailed:"Config updated, but reconnect failed: {error}",mcpUpdateSuccess:"MCP server updated successfully",mcpUpdateFailed:"Update failed: {error}",mcpServiceEnabled:"MCP service enabled",mcpServiceDisabled:"MCP service disabled",skillServiceEnabled:"Skill service enabled",skillServiceDisabled:"Skill service disabled",mcpAddSuccess:"MCP server added successfully",mcpAddFailed:"Add failed: {error}",mcpConnecting:"Connecting...",mcpConnectSuccess:"Connected successfully",mcpDisconnectSuccess:"Disconnected",mcpEnabledToast:"Enabled",mcpDisabledToast:"Disabled",mcpConfirmDelete:"Are you sure you want to delete this MCP server?",deleteConfirmTitle:"Confirm Delete",deleteSuccess:"Deleted successfully",collapseTools:"Collapse {count} tools",viewTools:"View {count} tools",operationFailed:"Operation failed: {error}",sizeBytes:"Size: {size} bytes",skillConfirmDelete:'Are you sure you want to delete Skill "{name}"?',skillEnabledToast:'Enabled Skill "{name}"',skillDisabledToast:'Disabled Skill "{name}"',skillInfoFailed:"Failed to get Skill info: {error}",skillRunning:'Running Skill "{name}"...',skillContentFailed:"Failed to get Skill content",skillGetFailed:"Failed to fetch: {error}",skillsReloaded:"Reloaded {count} Skills",skillsReloadFailed:"Reload failed: {error}",emptyAgentNotConnectedTitle:"Agent not connected",emptyAgentNotConnectedDescMcp:'Please connect the Agent service in the "Agent" tab first, then configure MCP servers',emptyNoMcpTitle:"No MCP servers",emptyNoMcpDesc:"Click the button below to add an MCP server and extend the AI assistant tool capabilities",emptyAgentNotConnectedDescSkill:'Please connect the Agent service in the "Agent" tab first, then manage Skills',emptyNoSkillTitle:"No Skills",emptyNoSkillDesc:"Two Skill types are supported:<br><strong>Workflow Skill</strong>: import JSON files (deterministic automated flows)<br><strong>Agent Skill</strong>: import SKILL.md directory/Zip/URL (AI capability extension)",mcpIdPlaceholder:"Server ID",mcpIdPlaceholderUnique:"Server ID (unique identifier)",mcpNamePlaceholder:"Display name",mcpEnvVars:"Environment variables",mcpEnvVarsHint:"(Only needed for stdio transport; export sensitive values in shell config)",mcpAddVar:"+ Add variable",mcpConnected:"Connected",mcpDisconnected:"Not connected",mcpToggleEnabled:"Enabled, click to disable",mcpToggleDisabled:"Disabled, click to enable",mcpDisconnectBtn:"Disconnect",mcpConnectBtn:"Connect",mcpVarNamePlaceholder:"Variable name",mcpVarValuePlaceholder:"Value",mcpToggleEye:"Show/Hide",mcpRemoveRow:"Remove this row",mcpHeaderNamePlaceholder:"Header name",mcpHeaders:"Headers",mcpHeadersHint:"(HTTP request headers, e.g. Authorization, X-API-Key)",mcpAddHeader:"+ Add header",transportStdioTitle:"Subprocess communication (npx/python etc.)",transportSseTitle:"Server-Sent Events (HTTP GET long connection + POST to send)",transportStreamableHttpTitle:"MCP officially recommended HTTP transport (POST + GET SSE)",transportWebsocketTitle:"WebSocket bidirectional communication",mcpCommandPlaceholder:"Command path, e.g. npx, python",mcpArgsPlaceholder:"Arguments, space-separated",mcpCustomHeadersCount:"{count} custom headers",mcpAddFailedShort:"Add failed",mcpDeleteFailedShort:"Delete failed",mcpConnectFailedShort:"Connect failed",mcpDisconnectFailedShort:"Disconnect failed",mcpOperationFailedShort:"Operation failed",workflowSkillsTitle:"Workflow Skills (automated flows)",agentSkillsTitle:"Agent Skills (AI capability extension)",stepCount:"{count} steps",resourceCount:"{count} resources",expand:"Expand",run:"Run",enable:"Enable",disable:"Disable",builtin:"Built-in",moreCount:"+{count} more",editSkillMd:"Edit SKILL.md",viewDetails:"View details",required:"*Required",optional:"Optional",runSkillTitle:'Run Skill "{name}"',fillParamsHint:"Please fill in the following parameters and run:",defaultParamHint:" (default: {default})",noExecutionResult:"No execution result",conditionNotMetSkipped:"Condition not met, skipped",executionSuccess:"Executed successfully",executionFailed:"Execution failed",truncated:"... ({count} chars total, truncated)",executionComplete:"Execution complete",executionSummary:"{success} succeeded, {fail} failed, {skip} skipped",skillRunResultTitle:'Skill "{name}" {status}',skillImportFailedShort:"Import failed",skillDeleteFailedShort:"Delete failed",skillOperationFailedShort:"Operation failed",invalidSkillDataFormat:"Invalid Skill data format",editAgentSkill:"Edit Agent Skill",newAgentSkill:"New Agent Skill",skillNameLabel:"Skill name",skillDescLabel:"Description",skillVersionLabel:"Version",skillMarkdownLabel:"SKILL.md content (Markdown)",skillDescPlaceholder:'Briefly describe what this Skill does (prefer "Use when..." phrasing so the model can load it on demand)',skillDescScenePlaceholder:'Briefly describe the Skill functionality and applicable scenarios (prefer "Use when..." phrasing so the model can load it on demand)',skillNameExamplePlaceholder:"e.g. code-review or deploy-to-server",skillMarkdownPlaceholder:`# Skill name
34
36
 
35
37
  ## When to use
36
38
  - Condition 1
@@ -44,46 +46,48 @@ You will need to pair again after deletion.`,deleteAgentTitle:"Delete Agent",age
44
46
 
45
47
  ## Execution steps
46
48
  1. Step 1
47
- 2. Step 2`,existingResources:"Existing resource files",skillNameRequired:"Please enter the Skill name",skillMarkdownRequired:"Please enter the SKILL.md content",agentSkillSaved:'Agent Skill "{name}" saved successfully',saveFailedShort:"Save failed",saveFailed:"Save failed: {error}",viewSkillTitle:"View Skill: {name}",importSkillTitle:"Import Skill",importBtn:"Import",jsonImport:"JSON Import",newAuthoring:"New Authoring",zipPackage:"Zip",urlImport:"URL Import",jsonImportDesc:"Import a Workflow Skill in JSON format (deterministic automated flow)",clickOrDragJson:"Click to select a JSON file or drag it here",jsonFileHint:"Supports .json Workflow Skill definition files",markdownImportDesc:"Write SKILL.md content directly to create an Agent Skill (AI capability extension)",zipImportDesc:"Import a Zip archive containing SKILL.md, with optional scripts/templates/assets resources",clickOrDragZip:"Click to select a Zip file or drag it here",zipFileHint:"The Zip must contain a SKILL.md file; optional scripts/ templates/ assets/ subdirectories",urlImportDesc:"Download a Skill Zip from a remote URL and import automatically",downloadUrl:"Download URL",selectJsonFile:"Please select a JSON file",workflowSkillImported:'Workflow Skill "{name}" imported successfully',agentSkillCreated:'Agent Skill "{name}" created successfully',createFailedShort:"Create failed",selectZipFile:"Please select a Zip file",fileTooLarge:"File too large; max 50MB supported",fileReadFailed:"File read failed",agentSkillImported:'Agent Skill "{name}" imported successfully',urlRequired:"Please enter a URL",importFailed:"Import failed: {error}",searchMcpPlaceholder:"Search MCP servers...",searchSkillPlaceholder:"Search skills...",filterAll:"All",filterEnabled:"Enabled",filterDisabled:"Disabled",noMatchResult:"No matching results"},knowledge:{tabTitle:"Knowledge",gateAgentOffTitle:"Agent not connected",gateAgentOffDesc:'Knowledge base is provided by the local agent. Connect an agent in the "Agent" tab first, then come back here.',gateRagOffTitle:"Knowledge base feature is disabled",gateRagOffDesc:'Turn on the "Knowledge Retrieval" master switch above to create and manage knowledge bases.',gateRagUnavailableTitle:"Agent capability not ready",gateRagUnavailableDesc:"RAG dependencies are not installed or the Node version is unsupported (Node 22+ required). See the install guide below.",goToAgentTab:'Go to "Agent" tab',goToToolboxTab:'Go to "Extensions" tab',enableNow:"Enable Now",title:"Knowledge Bases",createBtn:"+ New Knowledge Base",searchPlaceholder:"Search knowledge bases...",emptyTitle:"No knowledge base yet",emptyDesc:'Click "New Knowledge Base" to create one, then import documents to get started.',loadFailed:"Failed to load: {error}",retry:"Retry",statsSummary:"{docs} docs \xB7 {chunks} chunks",modeLocal:"Local model",modeRemote:"Remote service",actionEdit:"Edit",actionIngest:"Import",actionSearch:"Test Search",actionDocs:"Docs",actionDelete:"Delete",actionEnable:"Enable",actionDisable:"Disable",badgeDisabled:"Disabled",enableSuccess:'Knowledge base "{name}" enabled',disableSuccess:'Knowledge base "{name}" disabled',createTitle:"New Knowledge Base",nameLabel:"Name",namePlaceholder:"e.g. Product Docs",descLabel:"Description (optional)",descPlaceholder:"Briefly describe what this knowledge base contains",createConfirm:"Create",creating:"Creating...",createSuccess:'Knowledge base "{name}" created',nameRequired:"Please enter a name",editTitle:"Edit Knowledge Base",editConfirm:"Save",saving:"Saving...",editSuccess:"Knowledge base updated",vectorSectionTitle:"Embedding model",vectorModeLocal:"Local model (bundled BGE Chinese model)",vectorModeRemote:"Remote service (OpenAI-compatible API)",vectorModeLocalHint:"Use the agent-bundled BGE Chinese model. No extra config needed; the model file downloads on first import.",vectorModeRemoteHint:"Call a remote OpenAI-compatible embedding service (SiliconFlow, Zhipu, OpenAI, etc.).",vectorEndpointLabel:"Endpoint (Base URL with version segment)",vectorEndpointPlaceholder:"e.g. https://api.siliconflow.cn/v1",vectorApiKeyLabel:"API Key",vectorApiKeyPlaceholder:"Paste API key",vectorApiKeyKeep:"Leave empty to keep the saved key",vectorModelLabel:"Model name",vectorModelPlaceholder:"e.g. BAAI/bge-m3",vectorDimsLabel:"Dimensions (optional, auto-detected on test)",vectorDimsPlaceholder:"Auto",vectorTestBtn:"Test Connection",vectorTesting:"Testing...",vectorTestOk:"Connected: {model} ({dims} dims)",vectorDimsFilled:"Dimensions auto-filled: {dims}",vectorTestFailed:"Test failed: {error}",vectorEndpointRequired:"Remote endpoint is required",vectorModelRequired:"Model name is required",rebuildConfirmTitle:"Change Embedding Config",rebuildConfirm:"Changing the embedding model or chunk settings requires rebuilding the index (all documents will be re-embedded). The old index stays searchable during the rebuild and switches automatically when done. Continue?",rebuildStarted:"Index rebuild started, refreshing when complete...",progressRebuilding:"Rebuilding index {current}/{total} documents\u2026",rebuildDone:"Index rebuild complete",rebuildFailed:"Index rebuild failed: {error}",deleteConfirmTitle:"Delete Knowledge Base",deleteConfirm:'Delete "{name}"? Its {docs} documents and {chunks} chunks will be removed permanently.',deleteSuccess:"Knowledge base deleted",ingestTitle:'Import documents into "{name}"',tabFile:"File",tabText:"Text",tabUrl:"URL",dropHint:"Drag & drop a file here, or click to choose",dropSupported:"Supports txt / md / pdf / docx / xlsx / html, up to 50MB per file",selectedFile:"Selected: {name}",textContentLabel:"Text content",textContentPlaceholder:"Paste the text to import here...",textNameLabel:"Document name (optional)",textNamePlaceholder:"Leave empty to auto-name",urlLabel:"Web page URL",urlPlaceholder:"https://example.com/page",chunkSettingsTitle:"Chunk settings",chunkSizeLabel:"Chunk size (chars)",chunkOverlapLabel:"Overlap (chars)",ingestConfirm:"Start Import",ingesting:"Parsing and embedding. The first import may download the model, please wait...",progressParsing:"Parsing document\u2026",progressChunking:"Splitting into chunks\u2026",progressEmbedding:"Embedding chunks {current}/{total}\u2026",progressStoring:"Writing to index\u2026",ingestSuccess:"Imported: {name} ({chunks} chunks)",ingestFailed:"Import failed: {error}",fileRequired:"Please choose a file first",contentRequired:"Please enter the text content",urlRequired:"Please enter the URL",fileTooLarge:"File too large, 50MB max",docsTitle:'Documents in "{name}"',docsEmpty:"No documents imported yet",docChunkCount:"{count} chunks",docDeleteConfirmTitle:"Delete Document",docDeleteConfirm:'Delete document "{name}"? All its chunks will be removed from the knowledge base.',docDeleteSuccess:"Document deleted",searchTitle:"Test Search",searchScope:'Scope: "{name}"',searchQueryPlaceholder:"Enter a query, e.g. How to export data?",searchBtn:"Search",searching:"Searching...",searchTopKLabel:"Top K",searchThresholdLabel:"Threshold",searchHitCount:"{count} hits",searchNoHits:"No hits. Try lowering the similarity threshold.",searchFallbackHint:"All scores are below the threshold. Best matches for reference:",searchFailed:"Search failed: {error}",expandFull:"Expand",collapse:"Collapse",scoreLabel:"Score",opFailed:"Operation failed: {error}"},contextBubble:{labelSelection:"Selection",labelQuoted:"Quote",labelSkill:"Skill",labelMcp:"MCP",labelPage:"Page",labelFile:"File",labelKnowledge:"Knowledge",clickToExpand:"Click to expand",bubbleSkill:"{name} \u{1F9E9}",bubbleMcp:"{name} \u{1F50C}",bubblePage:"{title} \u{1F310}",bubbleKnowledge:"{name} \u{1F4DA} \xB7 {count} hits",bubbleKnowledgeMiss:"{name} \u{1F4DA} \xB7 no match",bubbleKnowledgeFailed:"{name} \u{1F4DA} \xB7 retrieval failed",bubbleKnowledgeSearching:"Searching knowledge base\u2026",kbHitToggle:"Click to expand/collapse",kbHitTruncated:"\u2702 Truncated \xB7 {total} chars total, first {kept} sent",kbHitTruncatedTitle:"Truncated to fit the context window; what is shown here is exactly what the model received",kbHitTruncatedBadge:"\u2702 {count} truncated"},configDialog:{exportTitle:"Export Settings",includeSecrets:"Include API keys",secretWarn:"\u26A0 Sensitive information; keep the file safe",exportDesc:"The exported file will contain all settings except Agent connection info. You can choose whether to include API keys.",export:"Export",importTitle:"Import Settings",mergeImport:"Merge import \u2014 only overwrite settings present in the file; keep the rest",replaceImport:"Full replace \u2014 clear current settings and use the file content",confirmImport:"Confirm Import",exportSuccess:"Settings exported",exportFailed:"Export failed: {error}",unknownTime:"Unknown",importSummary:"Exported at: {time}, containing {count} settings",invalidFileFormat:"Invalid file format",unrecognizedFormat:"Unrecognized settings format",unknownConfigKey:"Unknown setting key: {key}",importFailed:"Import failed: {error}",importParseFailed:"Import failed: cannot parse file format",importedCount:"Imported {count} settings"}};function Ge(){if(typeof chrome>"u"||!chrome.i18n)return"zh";try{let e=chrome.i18n.getUILanguage();if(e&&e.startsWith("zh"))return"zh"}catch{}return"en"}var z="zh",G={zh:At,en:Et},Ie=new Set;function $e(e,t){if(!e||!t)return;let o=t.split("."),n=e;for(let l of o){if(typeof n!="object"||!n)return;n=n[l]}return typeof n=="string"?n:void 0}function We(e,t){return!t||typeof e!="string"?e:e.replace(/\{(\w+)\}/g,(o,n)=>t[n]!==void 0&&t[n]!==null?String(t[n]):o)}function d(e,t){let o=$e(G[z],e);if(o!==void 0)return We(o,t);if(z!=="en"){let n=$e(G.en,e);if(n!==void 0)return We(n,t)}return e}function Ve(e){return typeof e=="function"&&Ie.add(e),()=>Ie.delete(e)}function C(e,t){G[e]||(G[e]={}),G[e]=Ye(G[e],t)}function Ye(e,t){for(let o of Object.keys(t||{}))t[o]&&typeof t[o]=="object"&&!Array.isArray(t[o])?((!e[o]||typeof e[o]!="object")&&(e[o]={}),Ye(e[o],t[o])):e[o]=t[o];return e}var je=!1;async function Ze(){if(typeof chrome>"u"||!chrome.storage||!chrome.storage.local)return z;try{let e=await chrome.storage.local.get("language");if(e.language&&G[e.language])z=e.language;else{let t=Ge();z=t,chrome.storage.local.set({language:t}).catch(()=>{})}}catch{z=Ge()}if(!je){je=!0;try{chrome.storage.onChanged.addListener((e,t)=>{if(t!=="local"||!e.language)return;let o=e.language.newValue;if(o&&G[o]&&o!==z){z=o;for(let n of Ie)try{n(o)}catch{}}})}catch{}}return z}function E(e,t=document,o=5,n=0){if(n>o)return null;try{if(t.querySelectorAll)for(let i of t.querySelectorAll("*")){if(i.shadowRoot){let a=E(e,i.shadowRoot,o,n+1);if(a)return a}if(i.tagName==="IFRAME"||i.tagName==="FRAME")try{let a=i.contentDocument||i.contentWindow?.document;if(a){let r=E(e,a,o,n+1);if(r)return r}}catch{}}let l=t.querySelector?.(e);if(l)return l}catch{}return null}function W(e,t=document,o=5,n=0,l=new Set){if(n>o)return[];try{t.querySelectorAll&&(t.querySelectorAll(e).forEach(i=>{l.add(i)}),t.querySelectorAll("*").forEach(i=>{if(i.shadowRoot&&W(e,i.shadowRoot,o,n+1,l),i.tagName==="IFRAME"||i.tagName==="FRAME")try{let a=i.contentDocument||i.contentWindow?.document;a&&W(e,a,o,n+1,l)}catch{}}))}catch{}return Array.from(l)}function j(e=document,t=5,o=0){if(o>t)return{text:"",range:null};try{let n=e.getSelection?.();if(n&&!n.isCollapsed&&n.rangeCount>0){let l=n.toString().trim();if(l)return{text:l,range:n.getRangeAt(0),depth:o,source:"shadow"}}if(e.querySelectorAll){for(let l of e.querySelectorAll("*"))if(l.shadowRoot){let i=j(l.shadowRoot,t,o+1);if(i.text)return i}}}catch{}return{text:"",range:null}}function Se(e=document,t=5,o=0,n=new Set){if(o>t||n.has(e))return"";n.add(e);let l="";try{e.body?l+=e.body.innerText||"":e instanceof ShadowRoot&&(l+=e.textContent||""),e.querySelectorAll&&e.querySelectorAll("*").forEach(i=>{if(i.shadowRoot&&(l+=`
48
- `+Se(i.shadowRoot,t,o+1,n)),i.tagName==="IFRAME"||i.tagName==="FRAME")try{let a=i.contentDocument||i.contentWindow?.document;a&&a.body&&(l+=`
49
- `+Se(a,t,o+1,n))}catch{}})}catch{}return l.trim().replace(/\n{3,}/g,`
49
+ 2. Step 2`,existingResources:"Existing resource files",skillNameRequired:"Please enter the Skill name",skillMarkdownRequired:"Please enter the SKILL.md content",agentSkillSaved:'Agent Skill "{name}" saved successfully',saveFailedShort:"Save failed",saveFailed:"Save failed: {error}",viewSkillTitle:"View Skill: {name}",importSkillTitle:"Import Skill",importBtn:"Import",jsonImport:"JSON Import",newAuthoring:"New Authoring",zipPackage:"Zip",urlImport:"URL Import",jsonImportDesc:"Import a Workflow Skill in JSON format (deterministic automated flow)",clickOrDragJson:"Click to select a JSON file or drag it here",jsonFileHint:"Supports .json Workflow Skill definition files",markdownImportDesc:"Write SKILL.md content directly to create an Agent Skill (AI capability extension)",zipImportDesc:"Import a Zip archive containing SKILL.md, with optional scripts/templates/assets resources",clickOrDragZip:"Click to select a Zip file or drag it here",zipFileHint:"The Zip must contain a SKILL.md file; optional scripts/ templates/ assets/ subdirectories",urlImportDesc:"Download a Skill Zip from a remote URL and import automatically",downloadUrl:"Download URL",selectJsonFile:"Please select a JSON file",workflowSkillImported:'Workflow Skill "{name}" imported successfully',agentSkillCreated:'Agent Skill "{name}" created successfully',createFailedShort:"Create failed",selectZipFile:"Please select a Zip file",fileTooLarge:"File too large; max 50MB supported",fileReadFailed:"File read failed",agentSkillImported:'Agent Skill "{name}" imported successfully',urlRequired:"Please enter a URL",importFailed:"Import failed: {error}",searchMcpPlaceholder:"Search MCP servers...",searchSkillPlaceholder:"Search skills...",filterAll:"All",filterEnabled:"Enabled",filterDisabled:"Disabled",noMatchResult:"No matching results"},knowledge:{tabTitle:"Knowledge",gateAgentOffTitle:"Agent not connected",gateAgentOffDesc:'Knowledge base is provided by the local agent. Connect an agent in the "Agent" tab first, then come back here.',gateRagOffTitle:"Knowledge base feature is disabled",gateRagOffDesc:'Turn on the "Knowledge Retrieval" master switch above to create and manage knowledge bases.',gateRagUnavailableTitle:"Agent capability not ready",gateRagUnavailableDesc:"RAG dependencies are not installed or the Node version is unsupported (Node 22+ required). See the install guide below.",goToAgentTab:'Go to "Agent" tab',goToToolboxTab:'Go to "Extensions" tab',enableNow:"Enable Now",title:"Knowledge Bases",createBtn:"+ New Knowledge Base",searchPlaceholder:"Search knowledge bases...",emptyTitle:"No knowledge base yet",emptyDesc:'Click "New Knowledge Base" to create one, then import documents to get started.',loadFailed:"Failed to load: {error}",retry:"Retry",statsSummary:"{docs} docs \xB7 {chunks} chunks",modeLocal:"Local model",modeRemote:"Remote service",actionEdit:"Edit",actionIngest:"Import",actionSearch:"Test Search",actionDocs:"Docs",actionDelete:"Delete",actionEnable:"Enable",actionDisable:"Disable",badgeDisabled:"Disabled",enableSuccess:'Knowledge base "{name}" enabled',disableSuccess:'Knowledge base "{name}" disabled',createTitle:"New Knowledge Base",nameLabel:"Name",namePlaceholder:"e.g. Product Docs",descLabel:"Description (optional)",descPlaceholder:"Briefly describe what this knowledge base contains",createConfirm:"Create",creating:"Creating...",createSuccess:'Knowledge base "{name}" created',nameRequired:"Please enter a name",editTitle:"Edit Knowledge Base",editConfirm:"Save",saving:"Saving...",editSuccess:"Knowledge base updated",vectorSectionTitle:"Embedding model",vectorModeLocal:"Local model (bundled BGE Chinese model)",vectorModeRemote:"Remote service (OpenAI-compatible API)",vectorModeLocalHint:"Use the agent-bundled BGE Chinese model. No extra config needed; the model file downloads on first import.",vectorModeRemoteHint:"Call a remote OpenAI-compatible embedding service (SiliconFlow, Zhipu, OpenAI, etc.).",vectorEndpointLabel:"Endpoint (Base URL with version segment)",vectorEndpointPlaceholder:"e.g. https://api.siliconflow.cn/v1",vectorApiKeyLabel:"API Key",vectorApiKeyPlaceholder:"Paste API key",vectorApiKeyKeep:"Leave empty to keep the saved key",vectorModelLabel:"Model name",vectorModelPlaceholder:"e.g. BAAI/bge-m3",vectorDimsLabel:"Dimensions (optional, auto-detected on test)",vectorDimsPlaceholder:"Auto",vectorTestBtn:"Test Connection",vectorTesting:"Testing...",vectorTestOk:"Connected: {model} ({dims} dims)",vectorDimsFilled:"Dimensions auto-filled: {dims}",vectorTestFailed:"Test failed: {error}",vectorEndpointRequired:"Remote endpoint is required",vectorModelRequired:"Model name is required",rebuildConfirmTitle:"Change Embedding Config",rebuildConfirm:"Changing the embedding model or chunk settings requires rebuilding the index (all documents will be re-embedded). The old index stays searchable during the rebuild and switches automatically when done. Continue?",rebuildStarted:"Index rebuild started, refreshing when complete...",progressRebuilding:"Rebuilding index {current}/{total} documents\u2026",rebuildDone:"Index rebuild complete",rebuildFailed:"Index rebuild failed: {error}",deleteConfirmTitle:"Delete Knowledge Base",deleteConfirm:'Delete "{name}"? Its {docs} documents and {chunks} chunks will be removed permanently.',deleteSuccess:"Knowledge base deleted",ingestTitle:'Import documents into "{name}"',tabFile:"File",tabText:"Text",tabUrl:"URL",dropHint:"Drag & drop a file here, or click to choose",dropSupported:"Supports txt / md / pdf / docx / xlsx / html, up to 50MB per file",selectedFile:"Selected: {name}",textContentLabel:"Text content",textContentPlaceholder:"Paste the text to import here...",textNameLabel:"Document name (optional)",textNamePlaceholder:"Leave empty to auto-name",urlLabel:"Web page URL",urlPlaceholder:"https://example.com/page",chunkSettingsTitle:"Chunk settings",chunkSizeLabel:"Chunk size (chars)",chunkOverlapLabel:"Overlap (chars)",ingestConfirm:"Start Import",ingesting:"Parsing and embedding. The first import may download the model, please wait...",progressParsing:"Parsing document\u2026",progressChunking:"Splitting into chunks\u2026",progressEmbedding:"Embedding chunks {current}/{total}\u2026",progressStoring:"Writing to index\u2026",ingestSuccess:"Imported: {name} ({chunks} chunks)",ingestFailed:"Import failed: {error}",fileRequired:"Please choose a file first",contentRequired:"Please enter the text content",urlRequired:"Please enter the URL",fileTooLarge:"File too large, 50MB max",docsTitle:'Documents in "{name}"',docsEmpty:"No documents imported yet",docChunkCount:"{count} chunks",docDeleteConfirmTitle:"Delete Document",docDeleteConfirm:'Delete document "{name}"? All its chunks will be removed from the knowledge base.',docDeleteSuccess:"Document deleted",searchTitle:"Test Search",searchScope:'Scope: "{name}"',searchQueryPlaceholder:"Enter a query, e.g. How to export data?",searchBtn:"Search",searching:"Searching...",searchTopKLabel:"Top K",searchThresholdLabel:"Threshold",searchHitCount:"{count} hits",searchNoHits:"No hits. Try lowering the similarity threshold.",searchFallbackHint:"All scores are below the threshold. Best matches for reference:",searchFailed:"Search failed: {error}",expandFull:"Expand",collapse:"Collapse",scoreLabel:"Score",opFailed:"Operation failed: {error}"},contextBubble:{labelSelection:"Selection",labelQuoted:"Quote",labelSkill:"Skill",labelMcp:"MCP",labelPage:"Page",labelFile:"File",labelKnowledge:"Knowledge",clickToExpand:"Click to expand",bubbleSkill:"{name} \u{1F9E9}",bubbleMcp:"{name} \u{1F50C}",bubblePage:"{title} \u{1F310}",bubbleKnowledge:"{name} \u{1F4DA} \xB7 {count} hits",bubbleKnowledgeMiss:"{name} \u{1F4DA} \xB7 no match",bubbleKnowledgeFailed:"{name} \u{1F4DA} \xB7 retrieval failed",bubbleKnowledgeSearching:"Searching knowledge base\u2026",kbHitToggle:"Click to expand/collapse",kbHitTruncated:"\u2702 Truncated \xB7 {total} chars total, first {kept} sent",kbHitTruncatedTitle:"Truncated to fit the context window; what is shown here is exactly what the model received",kbHitTruncatedBadge:"\u2702 {count} truncated"},configDialog:{exportTitle:"Export Settings",includeSecrets:"Include API keys",secretWarn:"\u26A0 Sensitive information; keep the file safe",exportDesc:"The exported file will contain all settings except Agent connection info. You can choose whether to include API keys.",export:"Export",importTitle:"Import Settings",mergeImport:"Merge import \u2014 only overwrite settings present in the file; keep the rest",replaceImport:"Full replace \u2014 clear current settings and use the file content",confirmImport:"Confirm Import",exportSuccess:"Settings exported",exportFailed:"Export failed: {error}",unknownTime:"Unknown",importSummary:"Exported at: {time}, containing {count} settings",invalidFileFormat:"Invalid file format",unrecognizedFormat:"Unrecognized settings format",unknownConfigKey:"Unknown setting key: {key}",importFailed:"Import failed: {error}",importParseFailed:"Import failed: cannot parse file format",importedCount:"Imported {count} settings"}};function et(){if(typeof chrome>"u"||!chrome.i18n)return"zh";try{let e=chrome.i18n.getUILanguage();if(e&&e.startsWith("zh"))return"zh"}catch{}return"en"}var z="zh",V={zh:jt,en:Vt},Fe=new Set;function tt(e,t){if(!e||!t)return;let o=t.split("."),n=e;for(let i of o){if(typeof n!="object"||!n)return;n=n[i]}return typeof n=="string"?n:void 0}function ot(e,t){return!t||typeof e!="string"?e:e.replace(/\{(\w+)\}/g,(o,n)=>t[n]!==void 0&&t[n]!==null?String(t[n]):o)}function c(e,t){let o=tt(V[z],e);if(o!==void 0)return ot(o,t);if(z!=="en"){let n=tt(V.en,e);if(n!==void 0)return ot(n,t)}return e}function it(e){return typeof e=="function"&&Fe.add(e),()=>Fe.delete(e)}function A(e,t){V[e]||(V[e]={}),V[e]=at(V[e],t)}function at(e,t){for(let o of Object.keys(t||{}))t[o]&&typeof t[o]=="object"&&!Array.isArray(t[o])?((!e[o]||typeof e[o]!="object")&&(e[o]={}),at(e[o],t[o])):e[o]=t[o];return e}var nt=!1;async function lt(){if(typeof chrome>"u"||!chrome.storage||!chrome.storage.local)return z;try{let e=await chrome.storage.local.get("language");if(e.language&&V[e.language])z=e.language;else{let t=et();z=t,chrome.storage.local.set({language:t}).catch(()=>{})}}catch{z=et()}if(!nt){nt=!0;try{chrome.storage.onChanged.addListener((e,t)=>{if(t!=="local"||!e.language)return;let o=e.language.newValue;if(o&&V[o]&&o!==z){z=o;for(let n of Fe)try{n(o)}catch{}}})}catch{}}return z}A("zh",{pageInteraction:{refHint:"ref \u7F16\u53F7\u4EC5\u672C\u6B21\u67E5\u8BE2\u6709\u6548\uFF0C\u9875\u9762\u5BFC\u822A/\u5237\u65B0\u6216\u5207\u6362 tab \u540E\u9700\u91CD\u65B0 query_elements",snapshotHeader:"\u53EF\u4EA4\u4E92\u5143\u7D20\u5FEB\u7167\uFF1A{count} \u4E2A\u5143\u7D20",snapshotTruncated:"\uFF08\u5171 {total} \u4E2A\uFF0C\u5DF2\u622A\u65AD\uFF0C\u8BF7\u7528 filterByText \u7F29\u5C0F\u8303\u56F4\uFF09",snapshotPageInfo:"\uFF08\u7B2C {page}/{totalPages} \u9875\uFF0C\u672C\u6B21\u8F93\u51FA {count} \u4E2A\uFF09",snapshotHasMore:"\u8FD8\u6709\u66F4\u591A\u5143\u7D20\uFF1A\u8C03\u7528 query_elements \u65F6\u5E26 page={next} \u67E5\u770B",snapshotPageOutOfRange:"page={page} \u8D85\u51FA\u8303\u56F4\uFF08\u5171 {totalPages} \u9875\uFF09",snapshotOverlayBlock:"[\u6253\u5F00\u5C42]",snapshotBodyBlock:"[\u9875\u9762\u4E3B\u4F53]",snapshotFooter:"\uFF08ref \u7F16\u53F7\u4EC5\u5F53\u524D\u5FEB\u7167\u6709\u6548\uFF1B\u9875\u9762\u53D8\u5316\u540E\u8BF7\u91CD\u65B0\u8C03\u7528 query_elements\uFF09",snapshotHeaderFrames:"\uFF08\u542B {n} \u4E2A iframe\uFF09",snapshotFramesLimited:"\uFF08\u90E8\u5206 iframe \u8D85\u51FA\u6570\u91CF/\u6DF1\u5EA6\u4E0A\u9650\uFF0C\u672A\u5C55\u5F00\uFF09",snapshotFrameBlock:"[frame #{index}{title}{hostSeg}]",snapshotFramePlaceholder:"iframe #{index}{title}",snapshotFrameUnreachable:"\uFF08\u5185\u5BB9\u4E0D\u53EF\u8BBF\u95EE\uFF09"}}),A("en",{pageInteraction:{refHint:"ref numbers are only valid for the current query; re-run query_elements after page navigation/refresh or tab switch",snapshotHeader:"Interactive elements snapshot: {count} element(s)",snapshotTruncated:" (of {total} total; truncated \u2014 narrow down with filterByText)",snapshotPageInfo:" (page {page}/{totalPages}, {count} shown)",snapshotHasMore:"More elements available: call query_elements with page={next}",snapshotPageOutOfRange:"page={page} is out of range (only {totalPages} page(s))",snapshotOverlayBlock:"[Open overlays]",snapshotBodyBlock:"[Page body]",snapshotFooter:"(ref numbers are valid only for this snapshot; re-run query_elements after the page changes)",snapshotHeaderFrames:" ({n} iframe(s))",snapshotFramesLimited:" (some iframes exceed count/depth limits; not expanded)",snapshotFrameBlock:"[frame #{index}{title}{hostSeg}]",snapshotFramePlaceholder:"iframe #{index}{title}",snapshotFrameUnreachable:" (content inaccessible)"}});function Yt(e){if(!e)return"";if(e==="about:srcdoc")return"srcdoc";if(e==="about:blank")return"blank";try{return new URL(e).hostname||""}catch{return""}}function He(e,t){for(let o of e)o.t==="el"&&o.localRef!=null&&t.push(o),o.children&&o.children.length&&He(o.children,t)}function Xt(e,t,o){if(e.status==="hidden"||e.status==="off")return!1;let n=e.title?` "${e.title}"`:"",i;return i=e.status==="ok"&&e.frameIndex!=null?c("pageInteraction.snapshotFramePlaceholder",{index:e.frameIndex,title:n}):e.status==="unreachable"&&e.frameIndex!=null?c("pageInteraction.snapshotFramePlaceholder",{index:e.frameIndex,title:n})+c("pageInteraction.snapshotFrameUnreachable"):`iframe${n}`,i=" ".repeat(e.depth||0)+i,o.budget-=i.length+1,t.push(i),!0}function Be(e,t,o){if(!e)return!1;if(e.t==="frame")return Xt(e,t,o);let n=[],i=!1;for(let a of e.children||[])Be(a,n,o)&&(i=!0);if(e.t==="el"){if(e.localRef!=null&&o.selected.has(e)){if(o.budget<=0)return o.truncated=!0,i;let a=e.role||"",l=e.name||"",r=e.attrs||"",s=e.depth+a.length+(l?l.length+2:0)+(r?r.length+1:0)+12;if(o.budget-s<0)return o.truncated=!0,i;let d=`${" ".repeat(e.depth)}${a}${l?` "${l}"`:""} [ref ${e.localRef}]${r?" "+r:""}`;return o.budget-=d.length+1,o.count+=1,t.push(d,...n),!0}return i?(t.push(...n),!0):!1}if(e.t==="container"){if(i){let a=`${" ".repeat(e.depth)}${e.role}${e.name?` "${e.name}"`:""}`;return o.budget-=a.length+1,t.push(a,...n),!0}return!1}return i?(t.push(...n),!0):!1}function rt(e,t,o){let n=[];if((e.overlayTrees||[]).length){for(let i of e.overlayTrees)Be(i,n,o);n.length&&t.push(c("pageInteraction.snapshotOverlayBlock"),...n,c("pageInteraction.snapshotBodyBlock"))}for(let i of e.bodyTree||[])Be(i,t,o)}function st(e={}){let{frames:t=[],page:o=1,maxResults:n=100,maxChars:i=6e3,countOnly:a=!1,frameCount:l=0,framesLimited:r=0}=e||{},s=Number.isInteger(o)&&o>=1?o:1,d=Math.max(1,n),u=[];for(let C of t)He(C.overlayTrees||[],u),He(C.bodyTree||[],u);let p=u.length;if(a)return{success:!0,content:"",count:p,total:p,truncated:!1,hint:""};let m=Math.ceil(p/d),g=l>0?c("pageInteraction.snapshotHeaderFrames",{n:l}):"",h=r>0?c("pageInteraction.snapshotFramesLimited"):"";if(p>0&&s>m)return{success:!0,content:[c("pageInteraction.snapshotHeader",{count:p})+g+h,c("pageInteraction.snapshotPageOutOfRange",{page:s,totalPages:m}),c("pageInteraction.snapshotFooter")].join(`
50
+ `),count:0,total:p,page:s,totalPages:m,hasMore:!1,truncated:!1,hint:""};let b=(s-1)*d,x=new Set(u.slice(b,b+d)),T=s<m,v={selected:x,budget:i,truncated:!1,count:0},I=[],B=t.find(C=>C.isTop)||t[0];B&&rt(B,I,v);for(let C of t.filter(W=>W!==B)){let W=[];if(rt(C,W,v),!W.length)continue;let se=" ".repeat(Math.max(0,(C.depth||1)-1)*2),ie=C.frameInfo&&C.frameInfo.title?` "${C.frameInfo.title}"`:"",j=Yt(C.frameInfo&&C.frameInfo.url);I.push(se+c("pageInteraction.snapshotFrameBlock",{index:C.frameIndex,title:ie,hostSeg:j?" \xB7 "+j:""}),...W.map(De=>se+" "+De))}let ne=m>1,G=c("pageInteraction.snapshotHeader",{count:ne?p:v.count})+g+h+(ne?c("pageInteraction.snapshotPageInfo",{page:s,totalPages:m,count:v.count}):"")+(v.truncated?c("pageInteraction.snapshotTruncated",{total:p}):"");return I.unshift(G),T&&I.push(c("pageInteraction.snapshotHasMore",{next:s+1})),I.push(c("pageInteraction.snapshotFooter")),{success:!0,content:I.join(`
51
+ `),count:v.count,total:p,page:s,totalPages:m,hasMore:T,truncated:v.truncated,hint:T?c("pageInteraction.snapshotHasMore",{next:s+1}):c("pageInteraction.refHint")}}function R(e,t=document,o=5,n=0){if(n>o)return null;try{if(t.querySelectorAll)for(let a of t.querySelectorAll("*")){if(a.shadowRoot){let l=R(e,a.shadowRoot,o,n+1);if(l)return l}if(a.tagName==="IFRAME"||a.tagName==="FRAME")try{let l=a.contentDocument||a.contentWindow?.document;if(l){let r=R(e,l,o,n+1);if(r)return r}}catch{}}let i=t.querySelector?.(e);if(i)return i}catch{}return null}function ee(e,t=document,o=5,n=0,i=new Set){if(n>o)return[];try{t.querySelectorAll&&(t.querySelectorAll(e).forEach(a=>{i.add(a)}),t.querySelectorAll("*").forEach(a=>{if(a.shadowRoot&&ee(e,a.shadowRoot,o,n+1,i),a.tagName==="IFRAME"||a.tagName==="FRAME")try{let l=a.contentDocument||a.contentWindow?.document;l&&ee(e,l,o,n+1,i)}catch{}}))}catch{}return Array.from(i)}function Q(e=document,t=5,o=0){if(o>t)return{text:"",range:null};try{let n=e.getSelection?.();if(n&&!n.isCollapsed&&n.rangeCount>0){let i=n.toString().trim();if(i)return{text:i,range:n.getRangeAt(0),depth:o,source:"shadow"}}if(e.querySelectorAll){for(let i of e.querySelectorAll("*"))if(i.shadowRoot){let a=Q(i.shadowRoot,t,o+1);if(a.text)return a}}}catch{}return{text:"",range:null}}function Ae(e=document,t=5,o=0,n=new Set){if(o>t||n.has(e))return"";n.add(e);let i="";try{e.body?i+=e.body.innerText||"":e instanceof ShadowRoot&&(i+=e.textContent||""),e.querySelectorAll&&e.querySelectorAll("*").forEach(a=>{if(a.shadowRoot&&(i+=`
52
+ `+Ae(a.shadowRoot,t,o+1,n)),a.tagName==="IFRAME"||a.tagName==="FRAME")try{let l=a.contentDocument||a.contentWindow?.document;l&&l.body&&(i+=`
53
+ `+Ae(l,t,o+1,n))}catch{}})}catch{}return i.trim().replace(/\n{3,}/g,`
50
54
 
51
- `)}function ve(e=document,t=5,o=0,n=new Set){if(o>t||n.has(e))return"";n.add(e);let l="";try{e.documentElement?l=e.documentElement.outerHTML:e instanceof ShadowRoot&&(l=e.innerHTML||"");let i=[];e.querySelectorAll&&e.querySelectorAll("*").forEach(a=>{if(a.shadowRoot){let r=ve(a.shadowRoot,t,o+1,n);r&&i.push(`<!-- shadow-root of ${a.tagName} -->
52
- ${r}`)}if(a.tagName==="IFRAME"||a.tagName==="FRAME")try{let r=a.contentDocument||a.contentWindow?.document;if(r&&r.documentElement){let s=ve(r,t,o+1,n);s&&i.push(`<!-- iframe content -->
53
- ${s}`)}}catch{}}),i.length>0&&(l+=`
55
+ `)}function Ee(e=document,t=5,o=0,n=new Set){if(o>t||n.has(e))return"";n.add(e);let i="";try{e.documentElement?i=e.documentElement.outerHTML:e instanceof ShadowRoot&&(i=e.innerHTML||"");let a=[];e.querySelectorAll&&e.querySelectorAll("*").forEach(l=>{if(l.shadowRoot){let r=Ee(l.shadowRoot,t,o+1,n);r&&a.push(`<!-- shadow-root of ${l.tagName} -->
56
+ ${r}`)}if(l.tagName==="IFRAME"||l.tagName==="FRAME")try{let r=l.contentDocument||l.contentWindow?.document;if(r&&r.documentElement){let s=Ee(r,t,o+1,n);s&&a.push(`<!-- iframe content -->
57
+ ${s}`)}}catch{}}),a.length>0&&(i+=`
54
58
  <!-- Shadow DOM and iframe content -->
55
- `+i.join(`
56
- `))}catch{}return l}function me(e){if(!e)return{x:window.innerWidth/2,y:window.innerHeight/2};let t;try{t=e.getBoundingClientRect()}catch{t={left:0,top:0,width:0,height:0}}if(!t||t.width===0&&t.height===0){let l=e.commonAncestorContainer;if(l){let i=l.nodeType===Node.TEXT_NODE?l.parentElement:l;i&&i.getBoundingClientRect&&(t=i.getBoundingClientRect())}}let o=t.left+t.width/2,n=t.top;if(window.top!==window){let l=e.startContainer.ownerDocument;for(;l&&l!==window.top.document;){let i=l.defaultView?.frameElement;if(!i)break;let a=i.getBoundingClientRect();o+=a.left,n+=a.top,l=i.ownerDocument}}return{x:o,y:n}}function Fe(e,t=document,o=5,n=0,l=new Set){if(n>o||l.has(t))return l;try{let i=()=>e();t.addEventListener?.("selectionchange",i),l.add({root:t,listener:i}),t.querySelectorAll&&t.querySelectorAll("*").forEach(a=>{a.shadowRoot&&Fe(e,a.shadowRoot,o,n+1,l)})}catch{}return l}function Pt(e){for(let{root:t,listener:o}of e)try{t.removeEventListener?.("selectionchange",o)}catch{}e.clear()}function ge(e){if(e.id)return`#${e.id}`;let t=[],o=e;for(;o&&o!==document.body&&o!==document.documentElement;){let n=o.tagName.toLowerCase();if(o.id){n=`#${o.id}`,t.unshift(n);break}if(o.className&&typeof o.className=="string"){let i=o.className.trim().split(/\s+/).filter(a=>a);i.length>0&&(n+="."+i[0])}let l=o.parentElement;if(l){let i=Array.from(l.children).filter(a=>a.tagName===o.tagName);if(i.length>1){let a=i.indexOf(o)+1;n+=`:nth-child(${a})`}}t.unshift(n),o=l}return t.join(" > ")}function Rt(e){if(e.tagName==="INPUT"||e.tagName==="TEXTAREA")return e.value||e.placeholder||e.name||"";if(e.tagName==="SELECT"){let t=e.options[e.selectedIndex];return t?t.text:""}return e.textContent.trim()}function It(e){return e.tagName==="INPUT"?e.type==="checkbox"||e.type==="radio"?e.checked?"checked":"unchecked":e.value:e.tagName==="SELECT"?e.value:""}function se(e){if(e.id)return`#${e.id}`;let t=e.tagName.toLowerCase();if(e.className){let o=e.className.split(" ").filter(n=>n).slice(0,2);o.length&&(t+="."+o.join("."))}return t}function He(){document.querySelectorAll(".ai-helper-highlight").forEach(t=>{let o=t.parentNode;if(o&&o.insertBefore&&o.removeChild){for(;t.firstChild;)o.insertBefore(t.firstChild,t);o.removeChild(t),typeof o.normalize=="function"&&o.normalize()}});let e=document.getElementById("ai-helper-highlight-style");e&&e.remove()}function Y(){let e=document.body,t=document.querySelectorAll('button, input, a[href], dialog, [role="dialog"], [role="alert"]').length;return`${location.href}|${e?e.childElementCount:0}|${t}`}async function Z(e,t=300,o=2e3){let n=Date.now();await new Promise(m=>setTimeout(m,Math.min(t,o)));let l=e.split("|")[0],i=location.href!==l,a=!1,r=e,s=0;for(;Date.now()-n<o;){let m=Y();if(m===r?s++:(a=!0,s=0,r=m),s>=2)break;await new Promise(p=>setTimeout(p,100))}i=location.href!==l;let c={changed:i||a,urlChanged:i,domChanged:a,waitedMs:Date.now()-n};return i&&(c.newUrl=location.href),c}C("zh",{pageExtract:{startedDownloadingImages:"\u5DF2\u5F00\u59CB\u4E0B\u8F7D {count} \u5F20\u56FE\u7247",targetElementNotFound:"\u672A\u627E\u5230\u76EE\u6807\u5143\u7D20",elementNotFound:"\u672A\u627E\u5230\u5339\u914D\u9009\u62E9\u5668\u7684\u5143\u7D20: {selector}",searchKeywordRequired:"\u9700\u8981\u63D0\u4F9B\u641C\u7D22\u5173\u952E\u8BCD",contentTruncated:"\u5185\u5BB9\u5DF2\u622A\u65AD"}}),C("en",{pageExtract:{startedDownloadingImages:"Started downloading {count} images",targetElementNotFound:"Target element not found",elementNotFound:"No element found matching selector: {selector}",searchKeywordRequired:"Search keyword is required",contentTruncated:"Content truncated"}});function Mt(){try{let e=l=>{let i=document.querySelector(`meta[name="${l}"]`)||document.querySelector(`meta[property="${l}"]`)||document.querySelector(`meta[property="og:${l}"]`);return i?i.content:null},t=l=>{let i=document.querySelectorAll(`meta[name="${l}"], meta[property="${l}"], meta[property="og:${l}"]`);return Array.from(i).map(a=>a.content).filter(Boolean)},o=[];document.querySelectorAll('script[type="application/ld+json"]').forEach(l=>{try{let i=JSON.parse(l.textContent);Array.isArray(i)?o.push(...i):i&&i["@graph"]&&Array.isArray(i["@graph"])?o.push(...i["@graph"]):i&&o.push(i)}catch{}});let n=[];return document.querySelectorAll("[itemscope]").forEach(l=>{let i=l.getAttribute("itemtype")||"";if(!i)return;let a={};l.querySelectorAll("[itemprop]").forEach(r=>{if(r.closest("[itemscope]")!==l)return;let s=r.getAttribute("itemprop")||"";if(!s)return;let c=r.getAttribute("content")||r.getAttribute("href")||r.getAttribute("src")||r.textContent?.trim();c&&(a[s]?a[s]=Array.isArray(a[s])?[...a[s],c]:[a[s],c]:a[s]=c)}),n.push({itemType:i,properties:a})}),{success:!0,data:{title:document.title,description:e("description"),keywords:e("keywords"),author:e("author"),ogTitle:e("og:title"),ogDescription:e("og:description"),ogImage:e("og:image"),ogUrl:e("og:url"),ogType:e("og:type"),ogSiteName:e("og:site_name"),ogLocale:e("og:locale"),articlePublishedTime:e("article:published_time"),articleModifiedTime:e("article:modified_time"),articleAuthor:e("article:author"),twitterCard:e("twitter:card"),twitterTitle:e("twitter:title"),twitterDescription:e("twitter:description"),twitterImage:e("twitter:image"),twitterSite:e("twitter:site"),twitterCreator:e("twitter:creator"),canonicalUrl:document.querySelector('link[rel="canonical"]')?.href,links:t("citation_author"),jsonLd:o.length>0?o:void 0,microdata:n.length>0?n:void 0}}}catch(e){return{success:!1,error:e.message}}}function Lt(e="all",t=!1){try{let o=window.location.hostname,n=[];return document.querySelectorAll("a[href]").forEach(l=>{try{let i=l.href;if(!i||i.startsWith("javascript:")||i.startsWith("#"))return;let a=new URL(i),r=a.hostname!==o;if(e==="internal"&&r||e==="external"&&!r)return;n.push({href:i,text:l.textContent.trim(),title:l.title,domain:a.hostname,isExternal:r,target:l.target})}catch{}}),t&&document.querySelectorAll("img[src]").forEach(l=>{try{let i=l.src;if(!i)return;let a=new URL(i),r=a.hostname!==o;if(e==="internal"&&r||e==="external"&&!r)return;n.push({href:i,text:l.alt||"",title:l.title,domain:a.hostname,isExternal:r,type:"image"})}catch{}}),{success:!0,total:n.length,links:n}}catch(o){return{success:!1,error:o.message}}}function Nt(e=null){try{let t=(e?[document.querySelector(e)].filter(Boolean):Array.from(document.querySelectorAll("form"))).map((o,n)=>{let l=[],i=o.id||`form-${n}`;return o.querySelectorAll("input").forEach(a=>{l.push({tag:"input",name:a.name,id:a.id,type:a.type,placeholder:a.placeholder,required:a.required,selector:se(a)})}),o.querySelectorAll("textarea").forEach(a=>{l.push({tag:"textarea",name:a.name,id:a.id,placeholder:a.placeholder,required:a.required,selector:se(a)})}),o.querySelectorAll("select").forEach(a=>{let r=Array.from(a.options).map(s=>({value:s.value,text:s.textContent.trim()}));l.push({tag:"select",name:a.name,id:a.id,required:a.required,options:r,selector:se(a)})}),{formId:i,action:o.action,method:o.method,fields:l}});return{success:!0,total:t.length,forms:t}}catch(t){return{success:!1,error:t.message}}}function Dt(e={}){try{let{minWidth:t=0,minHeight:o=0,includeBackgroundImages:n=!1,download:l=!1,maxResults:i=100}=e,a=[],r=new Set;return document.querySelectorAll("img[src]").forEach(s=>{try{let c=s.src;if(!c||r.has(c))return;let m=s.naturalWidth||s.width||0,p=s.naturalHeight||s.height||0;m>=t&&p>=o&&(r.add(c),a.push({src:c,alt:s.alt||"",title:s.title||"",width:m,height:p,selector:se(s)}))}catch{}}),n&&document.querySelectorAll("*").forEach(s=>{try{let c=window.getComputedStyle(s).backgroundImage;if(!c||c==="none"||c.startsWith("gradient"))return;let m=c.match(/url\(['"]?([^'")]+)['"]?\)/);if(m&&m[1]){let p=m[1];r.has(p)||(r.add(p),a.push({src:p,alt:"",title:"",width:0,height:0,type:"background",selector:se(s)}))}}catch{}}),l&&a.length>0&&a.slice(0,Math.min(i,10)).forEach((s,c)=>{setTimeout(()=>{let m=document.createElement("a");m.href=s.src,m.download=`image_${c+1}.png`,document.body.appendChild(m),m.click(),document.body.removeChild(m)},c*500)}),{success:!0,total:a.length,images:a.slice(0,i),message:l?d("pageExtract.startedDownloadingImages",{count:Math.min(a.length,10)}):""}}catch(t){return{success:!1,error:t.message}}}function Ft(e="iframe",t=!1,o=1e4){try{let n=document.querySelectorAll(e),l=[],i=(a,r=1,s="")=>{try{let c=ge(a),m=s?`${s} > iframe`:c,p=a.src||"about:blank",u=!1,g="",h="",y=0;try{let x=a.contentDocument||a.contentWindow?.document;x&&(u=!0,g=x.title||"",h=Se(x).substring(0,o),y=ve(x).length,t&&r<2&&x.querySelectorAll("iframe").forEach(k=>{i(k,r+1,m)}))}catch{u=!1}l.push({selector:m,url:p,accessible:u,title:g,textContent:h,htmlLength:y})}catch{}};return n.forEach(a=>i(a)),{success:!0,iframes:l,total:l.length,accessible:l.filter(a=>a.accessible).length}}catch(n){return{success:!1,error:n.message}}}function Ht(e={}){try{let{query:t,pattern:o,mode:n="plain",caseSensitive:l=!1,contextLength:i=50,maxResults:a=20,highlight:r=!1}=e,s=t||o;if(!s)return{success:!1,error:d("pageExtract.searchKeywordRequired")};if(n==="plain"){let h=window.find(s,l,!1,!0,!1,!0,!1),y=0,x=[];try{let k=window.getSelection(),H=k&&k.rangeCount>0?k.getRangeAt(0):null,O=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,null,!1),K=l?"g":"gi",Re=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),J=new RegExp(Re,K),ee=document.body.innerText,Ke=0;for(;O.nextNode();){let ze=O.currentNode.textContent.match(J);if(ze)for(let ye of ze){if(x.length>=a)break;let ae=ee.indexOf(ye,Ke),yt=Math.max(0,ae-i),wt=Math.min(ee.length,ae+ye.length+i);x.push({match:ye,position:ae,context:ee.substring(yt,wt),lineNumber:ee.substring(0,ae).split(`
57
- `).length}),y++,Ke=ae+ye.length}if(x.length>=a)break}H&&(k.removeAllRanges(),k.addRange(H))}catch{y=+!!h}if(r&&y>0){He();let k=document.createElement("style");k.id="ai-helper-highlight-style",k.textContent=`
59
+ `+a.join(`
60
+ `))}catch{}return i}function fe(e){if(!e)return{x:window.innerWidth/2,y:window.innerHeight/2};let t;try{t=e.getBoundingClientRect()}catch{t={left:0,top:0,width:0,height:0}}if(!t||t.width===0&&t.height===0){let i=e.commonAncestorContainer;if(i){let a=i.nodeType===Node.TEXT_NODE?i.parentElement:i;a&&a.getBoundingClientRect&&(t=a.getBoundingClientRect())}}let o=t.left+t.width/2,n=t.top;if(window.top!==window){let i=e.startContainer.ownerDocument;for(;i&&i!==window.top.document;){let a=i.defaultView?.frameElement;if(!a)break;let l=a.getBoundingClientRect();o+=l.left,n+=l.top,i=a.ownerDocument}}return{x:o,y:n}}function Ke(e,t=document,o=5,n=0,i=new Set){if(n>o||i.has(t))return i;try{let a=()=>e();t.addEventListener?.("selectionchange",a),i.add({root:t,listener:a}),t.querySelectorAll&&t.querySelectorAll("*").forEach(l=>{l.shadowRoot&&Ke(e,l.shadowRoot,o,n+1,i)})}catch{}return i}function Zt(e){for(let{root:t,listener:o}of e)try{t.removeEventListener?.("selectionchange",o)}catch{}e.clear()}function be(e){if(e.id)return`#${e.id}`;let t=[],o=e;for(;o&&o!==document.body&&o!==document.documentElement;){let n=o.tagName.toLowerCase();if(o.id){n=`#${o.id}`,t.unshift(n);break}if(o.className&&typeof o.className=="string"){let a=o.className.trim().split(/\s+/).filter(l=>l);a.length>0&&(n+="."+a[0])}let i=o.parentElement;if(i){let a=Array.from(i.children).filter(l=>l.tagName===o.tagName);if(a.length>1){let l=a.indexOf(o)+1;n+=`:nth-child(${l})`}}t.unshift(n),o=i}return t.join(" > ")}function ue(e){if(e.id)return`#${e.id}`;let t=e.tagName.toLowerCase();if(e.className){let o=e.className.split(" ").filter(n=>n).slice(0,2);o.length&&(t+="."+o.join("."))}return t}function $e(){document.querySelectorAll(".ai-helper-highlight").forEach(t=>{let o=t.parentNode;if(o&&o.insertBefore&&o.removeChild){for(;t.firstChild;)o.insertBefore(t.firstChild,t);o.removeChild(t),typeof o.normalize=="function"&&o.normalize()}});let e=document.getElementById("ai-helper-highlight-style");e&&e.remove()}function X(){let e=document.body,t=document.querySelectorAll('button, input, a[href], dialog, [role="dialog"], [role="alert"]').length;return`${location.href}|${e?e.childElementCount:0}|${t}`}async function Z(e,t=300,o=2e3){let n=Date.now();await new Promise(u=>setTimeout(u,Math.min(t,o)));let i=e.split("|")[0],a=location.href!==i,l=!1,r=e,s=0;for(;Date.now()-n<o;){let u=X();if(u===r?s++:(l=!0,s=0,r=u),s>=2)break;await new Promise(p=>setTimeout(p,100))}a=location.href!==i;let d={changed:a||l,urlChanged:a,domChanged:l,waitedMs:Date.now()-n};return a&&(d.newUrl=location.href),d}function Tt(e){return e.isContentEditable||e.getAttribute("contenteditable")==="true"}function Ie(e,t){let o=e.tagName==="TEXTAREA"?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(o,"value");n&&n.set?n.set.call(e,t):e.value=t}function Pe(e,t){try{return e.focus(),document.execCommand("insertText",!1,t)||(e.textContent=t),e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})),!0}catch{try{return e.textContent=t,e.dispatchEvent(new Event("input",{bubbles:!0})),!0}catch{return!1}}}A("zh",{pageExtract:{startedDownloadingImages:"\u5DF2\u5F00\u59CB\u4E0B\u8F7D {count} \u5F20\u56FE\u7247",targetElementNotFound:"\u672A\u627E\u5230\u76EE\u6807\u5143\u7D20",elementNotFound:"\u672A\u627E\u5230\u5339\u914D\u9009\u62E9\u5668\u7684\u5143\u7D20: {selector}",searchKeywordRequired:"\u9700\u8981\u63D0\u4F9B\u641C\u7D22\u5173\u952E\u8BCD",contentTruncated:"\u5185\u5BB9\u5DF2\u622A\u65AD"}}),A("en",{pageExtract:{startedDownloadingImages:"Started downloading {count} images",targetElementNotFound:"Target element not found",elementNotFound:"No element found matching selector: {selector}",searchKeywordRequired:"Search keyword is required",contentTruncated:"Content truncated"}});function Qt(){try{let e=i=>{let a=document.querySelector(`meta[name="${i}"]`)||document.querySelector(`meta[property="${i}"]`)||document.querySelector(`meta[property="og:${i}"]`);return a?a.content:null},t=i=>{let a=document.querySelectorAll(`meta[name="${i}"], meta[property="${i}"], meta[property="og:${i}"]`);return Array.from(a).map(l=>l.content).filter(Boolean)},o=[];document.querySelectorAll('script[type="application/ld+json"]').forEach(i=>{try{let a=JSON.parse(i.textContent);Array.isArray(a)?o.push(...a):a&&a["@graph"]&&Array.isArray(a["@graph"])?o.push(...a["@graph"]):a&&o.push(a)}catch{}});let n=[];return document.querySelectorAll("[itemscope]").forEach(i=>{let a=i.getAttribute("itemtype")||"";if(!a)return;let l={};i.querySelectorAll("[itemprop]").forEach(r=>{if(r.closest("[itemscope]")!==i)return;let s=r.getAttribute("itemprop")||"";if(!s)return;let d=r.getAttribute("content")||r.getAttribute("href")||r.getAttribute("src")||r.textContent?.trim();d&&(l[s]?l[s]=Array.isArray(l[s])?[...l[s],d]:[l[s],d]:l[s]=d)}),n.push({itemType:a,properties:l})}),{success:!0,data:{title:document.title,description:e("description"),keywords:e("keywords"),author:e("author"),ogTitle:e("og:title"),ogDescription:e("og:description"),ogImage:e("og:image"),ogUrl:e("og:url"),ogType:e("og:type"),ogSiteName:e("og:site_name"),ogLocale:e("og:locale"),articlePublishedTime:e("article:published_time"),articleModifiedTime:e("article:modified_time"),articleAuthor:e("article:author"),twitterCard:e("twitter:card"),twitterTitle:e("twitter:title"),twitterDescription:e("twitter:description"),twitterImage:e("twitter:image"),twitterSite:e("twitter:site"),twitterCreator:e("twitter:creator"),canonicalUrl:document.querySelector('link[rel="canonical"]')?.href,links:t("citation_author"),jsonLd:o.length>0?o:void 0,microdata:n.length>0?n:void 0}}}catch(e){return{success:!1,error:e.message}}}function Jt(e="all",t=!1){try{let o=window.location.hostname,n=[];return document.querySelectorAll("a[href]").forEach(i=>{try{let a=i.href;if(!a||a.startsWith("javascript:")||a.startsWith("#"))return;let l=new URL(a),r=l.hostname!==o;if(e==="internal"&&r||e==="external"&&!r)return;n.push({href:a,text:i.textContent.trim(),title:i.title,domain:l.hostname,isExternal:r,target:i.target})}catch{}}),t&&document.querySelectorAll("img[src]").forEach(i=>{try{let a=i.src;if(!a)return;let l=new URL(a),r=l.hostname!==o;if(e==="internal"&&r||e==="external"&&!r)return;n.push({href:a,text:i.alt||"",title:i.title,domain:l.hostname,isExternal:r,type:"image"})}catch{}}),{success:!0,total:n.length,links:n}}catch(o){return{success:!1,error:o.message}}}function eo(e=null){try{let t=(e?[document.querySelector(e)].filter(Boolean):Array.from(document.querySelectorAll("form"))).map((o,n)=>{let i=[],a=o.id||`form-${n}`;return o.querySelectorAll("input").forEach(l=>{i.push({tag:"input",name:l.name,id:l.id,type:l.type,placeholder:l.placeholder,required:l.required,selector:ue(l)})}),o.querySelectorAll("textarea").forEach(l=>{i.push({tag:"textarea",name:l.name,id:l.id,placeholder:l.placeholder,required:l.required,selector:ue(l)})}),o.querySelectorAll("select").forEach(l=>{let r=Array.from(l.options).map(s=>({value:s.value,text:s.textContent.trim()}));i.push({tag:"select",name:l.name,id:l.id,required:l.required,options:r,selector:ue(l)})}),{formId:a,action:o.action,method:o.method,fields:i}});return{success:!0,total:t.length,forms:t}}catch(t){return{success:!1,error:t.message}}}function to(e={}){try{let{minWidth:t=0,minHeight:o=0,includeBackgroundImages:n=!1,download:i=!1,maxResults:a=100}=e,l=[],r=new Set;return document.querySelectorAll("img[src]").forEach(s=>{try{let d=s.src;if(!d||r.has(d))return;let u=s.naturalWidth||s.width||0,p=s.naturalHeight||s.height||0;u>=t&&p>=o&&(r.add(d),l.push({src:d,alt:s.alt||"",title:s.title||"",width:u,height:p,selector:ue(s)}))}catch{}}),n&&document.querySelectorAll("*").forEach(s=>{try{let d=window.getComputedStyle(s).backgroundImage;if(!d||d==="none"||d.startsWith("gradient"))return;let u=d.match(/url\(['"]?([^'")]+)['"]?\)/);if(u&&u[1]){let p=u[1];r.has(p)||(r.add(p),l.push({src:p,alt:"",title:"",width:0,height:0,type:"background",selector:ue(s)}))}}catch{}}),i&&l.length>0&&l.slice(0,Math.min(a,10)).forEach((s,d)=>{setTimeout(()=>{let u=document.createElement("a");u.href=s.src,u.download=`image_${d+1}.png`,document.body.appendChild(u),u.click(),document.body.removeChild(u)},d*500)}),{success:!0,total:l.length,images:l.slice(0,a),message:i?c("pageExtract.startedDownloadingImages",{count:Math.min(l.length,10)}):""}}catch(t){return{success:!1,error:t.message}}}function oo(e="iframe",t=!1,o=1e4){try{let n=document.querySelectorAll(e),i=[],a=(l,r=1,s="")=>{try{let d=be(l),u=s?`${s} > iframe`:d,p=l.src||"about:blank",m=!1,g="",h="",b=0;try{let x=l.contentDocument||l.contentWindow?.document;x&&(m=!0,g=x.title||"",h=Ae(x).substring(0,o),b=Ee(x).length,t&&r<2&&x.querySelectorAll("iframe").forEach(T=>{a(T,r+1,u)}))}catch{m=!1}i.push({selector:u,url:p,accessible:m,title:g,textContent:h,htmlLength:b})}catch{}};return n.forEach(l=>a(l)),{success:!0,iframes:i,total:i.length,accessible:i.filter(l=>l.accessible).length}}catch(n){return{success:!1,error:n.message}}}function no(e={}){try{let{query:t,pattern:o,mode:n="plain",caseSensitive:i=!1,contextLength:a=50,maxResults:l=20,highlight:r=!1}=e,s=t||o;if(!s)return{success:!1,error:c("pageExtract.searchKeywordRequired")};if(n==="plain"){let h=window.find(s,i,!1,!0,!1,!0,!1),b=0,x=[];try{let T=window.getSelection(),v=T&&T.rangeCount>0?T.getRangeAt(0):null,I=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,null,!1),B=i?"g":"gi",ne=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),G=new RegExp(ne,B),C=document.body.innerText,W=0;for(;I.nextNode();){let se=I.currentNode.textContent.match(G);if(se)for(let ie of se){if(x.length>=l)break;let j=C.indexOf(ie,W),De=Math.max(0,j-a),qt=Math.min(C.length,j+ie.length+a);x.push({match:ie,position:j,context:C.substring(De,qt),lineNumber:C.substring(0,j).split(`
61
+ `).length}),b++,W=j+ie.length}if(x.length>=l)break}v&&(T.removeAllRanges(),T.addRange(v))}catch{b=+!!h}if(r&&b>0){$e();let T=document.createElement("style");T.id="ai-helper-highlight-style",T.textContent=`
58
62
  .ai-helper-search-highlight {
59
63
  background-color: #ffff00;
60
64
  color: #000;
61
65
  padding: 1px 2px;
62
66
  border-radius: 2px;
63
67
  }
64
- `,document.head.appendChild(k);let H=l?"g":"gi",O=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");document.body.innerHTML=document.body.innerHTML.replace(new RegExp(O,H),'<span class="ai-helper-search-highlight">$&</span>')}return{success:!0,query:s,mode:"plain",found:h,total:y,matches:x,highlighted:r}}let c=l?"g":"gi",m=new RegExp(s,c),p=document.body.innerText,u=[],g;for(;(g=m.exec(p))!==null&&u.length<a;){let h=Math.max(0,g.index-i),y=Math.min(p.length,g.index+g[0].length+i);u.push({match:g[0],position:g.index,context:p.substring(h,y),lineNumber:p.substring(0,g.index).split(`
65
- `).length}),g[0].length===0&&m.lastIndex++}if(r&&u.length>0){He();let h=document.createElement("style");h.id="ai-helper-highlight-style",h.textContent=`
68
+ `,document.head.appendChild(T);let v=i?"g":"gi",I=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");document.body.innerHTML=document.body.innerHTML.replace(new RegExp(I,v),'<span class="ai-helper-search-highlight">$&</span>')}return{success:!0,query:s,mode:"plain",found:h,total:b,matches:x,highlighted:r}}let d=i?"g":"gi",u=new RegExp(s,d),p=document.body.innerText,m=[],g;for(;(g=u.exec(p))!==null&&m.length<l;){let h=Math.max(0,g.index-a),b=Math.min(p.length,g.index+g[0].length+a);m.push({match:g[0],position:g.index,context:p.substring(h,b),lineNumber:p.substring(0,g.index).split(`
69
+ `).length}),g[0].length===0&&u.lastIndex++}if(r&&m.length>0){$e();let h=document.createElement("style");h.id="ai-helper-highlight-style",h.textContent=`
66
70
  .ai-helper-search-highlight {
67
71
  background-color: #ffff00;
68
72
  color: #000;
69
73
  padding: 1px 2px;
70
74
  border-radius: 2px;
71
75
  }
72
- `,document.head.appendChild(h),document.body.innerHTML=document.body.innerHTML.replace(new RegExp(s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c),'<span class="ai-helper-search-highlight">$&</span>')}return{success:!0,pattern:s,mode:"regex",total:u.length,matches:u,highlighted:r}}catch(t){return{success:!1,error:t.message}}}C("zh",{pageInteraction:{refHint:"ref \u7F16\u53F7\u4EC5\u672C\u6B21\u67E5\u8BE2\u6709\u6548\uFF0C\u9875\u9762\u5BFC\u822A/\u5237\u65B0\u6216\u5207\u6362 tab \u540E\u9700\u91CD\u65B0 query_elements",invalidRefError:"\u65E0\u6548\u7684\u5143\u7D20\u7F16\u53F7 ref={ref}\u3002ref \u4EC5\u5F53\u524D\u9875\u9762\u6709\u6548\uFF0C\u9875\u9762\u5BFC\u822A/\u5237\u65B0\u6216\u5207\u6362 tab \u540E\u9700\u91CD\u65B0 query_elements",elementStaleError:"\u5143\u7D20 ref={ref} \u5DF2\u5931\u6548\uFF08\u9875\u9762\u53EF\u80FD\u5DF2\u53D8\u5316\uFF09\uFF0C\u8BF7\u91CD\u65B0\u8C03\u7528 query_elements \u83B7\u53D6\u6700\u65B0\u5143\u7D20",elementNotVisibleError:"\u5143\u7D20 ref={ref}\uFF08{tag}\uFF09\u5F53\u524D\u4E0D\u53EF\u89C1\uFF0C\u53EF\u80FD\u88AB\u9690\u85CF\u6216\u6298\u53E0",navChangeHint:"\uFF08\u68C0\u6D4B\u5230\u5BFC\u822A\u53D8\u5316\uFF0C\u5DF2\u7B49\u5F85 {ms}ms\uFF09",domChangeHint:"\uFF08\u68C0\u6D4B\u5230DOM\u53D8\u5316\uFF0C\u5DF2\u7B49\u5F85 {ms}ms\uFF09",hoveredByRef:"\u5DF2\u60AC\u505C\u5143\u7D20 ref={ref}\uFF08{tag}\uFF09{hint}",clickedByRef:"\u5DF2\u70B9\u51FB\u5143\u7D20 ref={ref}\uFF08{tag}\uFF09{hint}",textRequired:"text \u4E0D\u80FD\u4E3A\u7A7A",scrolledToText:'\u5DF2\u6EDA\u52A8\u5230\u5305\u542B"{text}"\u7684\u5143\u7D20',scrollTextNotFound:'\u6EDA\u52A8 {count} \u6B21\u672A\u627E\u5230\u5305\u542B"{text}"\u7684\u6587\u672C'}}),C("en",{pageInteraction:{refHint:"ref numbers are only valid for the current query; re-run query_elements after page navigation/refresh or tab switch",invalidRefError:"Invalid element ref={ref}. ref is only valid for the current page; re-run query_elements after navigation/refresh or tab switch",elementStaleError:"Element ref={ref} is stale (page may have changed); please call query_elements again to get the latest elements",elementNotVisibleError:"Element ref={ref} ({tag}) is not visible; it may be hidden or collapsed",navChangeHint:" (navigation change detected, waited {ms}ms)",domChangeHint:" (DOM change detected, waited {ms}ms)",hoveredByRef:"Hovered element ref={ref} ({tag}){hint}",clickedByRef:"Clicked element ref={ref} ({tag}){hint}",textRequired:"text cannot be empty",scrolledToText:'Scrolled to element containing "{text}"',scrollTextNotFound:'Scrolled {count} times but did not find text containing "{text}"'}});var ne=new Map;function _t(e){let t=parseInt(e,10);return!t||!ne.has(t)?null:ne.get(t).selector}function Bt(e={}){let{filterByText:t,elementTypes:o,maxResults:n=100}=e,l=[],i=new Set;ne.clear();let a={button:'button, [role="button"], input[type="submit"], input[type="button"], input[type="reset"]',input:'input:not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"])',select:"select",textarea:"textarea",a:"a[href]",checkbox:'input[type="checkbox"]',radio:'input[type="radio"]',menuitem:'[role="menuitem"], [role="menu"], [role="menuitemcheckbox"], [role="menuitemradio"]'},r=[];return o&&o.length>0?o.forEach(s=>{a[s]&&r.push(a[s])}):r=Object.values(a),r.forEach(s=>{try{W(s).forEach(c=>{let m=ge(c);if(i.has(m))return;i.add(m);let p=c.tagName.toLowerCase(),u=Rt(c),g=It(c);if(t&&!u.toLowerCase().includes(t.toLowerCase()))return;let h={tag:p,selector:m,text:u.substring(0,100)};p==="a"?h.href=c.href:(p==="input"||p==="select"||p==="textarea")&&(h.name=c.name,h.type=c.type||"text",h.value=g,h.placeholder=c.placeholder),c.id&&(h.id=c.id),c.className&&typeof c.className=="string"&&(h.className=c.className.split(" ").filter(x=>x).slice(0,3).join(" "));let y=l.length+1;h.ref=y,ne.set(y,{element:c,selector:m,tag:p}),l.push(h)})}catch{}}),{success:!0,count:Math.min(l.length,n),total:l.length,elements:l.slice(0,n),hint:d("pageInteraction.refHint")}}function Ot(e={}){let{scrollPixels:t=800,maxScrolls:o=20,pauseMs:n=500,selector:l}=e;return new Promise(async i=>{try{let a=l?document.querySelector(l):null,r=()=>{let h=a||document.body,y=document.createTreeWalker(h,NodeFilter.SHOW_TEXT),x="",k;for(;k=y.nextNode();){let H=k.parentElement;if(!H)continue;let O=H.getBoundingClientRect();if(O.bottom>-100&&O.top<window.innerHeight+100){let K=k.textContent.trim();K&&(x+=K+`
73
- `)}}return x},s=a||document.scrollingElement||document.documentElement,c="",m=window.scrollY,p=0;for(let h=0;h<o;h++){let y=r();c+=y+`
74
- `;let x=window.scrollY;if(s.scrollBy({top:t,behavior:"auto"}),p++,await new Promise(k=>setTimeout(k,n)),Math.abs(window.scrollY-x)<5&&(await new Promise(k=>setTimeout(k,n)),Math.abs(window.scrollY-x)<5))break}a&&s.scrollTo({top:m,behavior:"auto"});let u=c.split(`
75
- `),g=[];for(let h of u){let y=h.trim();y&&y!==g[g.length-1]&&g.push(y)}i({success:!0,content:g.join(`
76
+ `,document.head.appendChild(h),document.body.innerHTML=document.body.innerHTML.replace(new RegExp(s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),d),'<span class="ai-helper-search-highlight">$&</span>')}return{success:!0,pattern:s,mode:"regex",total:m.length,matches:m,highlighted:r}}catch(t){return{success:!1,error:t.message}}}A("zh",{pageInteraction:{invalidRefSuggest:"\u65E0\u6548\u6216\u5DF2\u8FC7\u671F\u7684\u5143\u7D20\u5F15\u7528 ref={ref}\u3002",invalidRefSuggestions:"\u6700\u8FD1\u5FEB\u7167\u4E2D\u7684\u6709\u6548\u5F15\u7528\uFF1A{list}\u3002",invalidRefTail:"\u5982\u9875\u9762\u5DF2\u53D8\u5316\uFF0C\u8BF7\u91CD\u65B0\u8C03\u7528 query_elements \u83B7\u53D6\u6700\u65B0\u5FEB\u7167",elementNotVisibleError:"\u5143\u7D20 ref={ref}\uFF08{tag}\uFF09\u5F53\u524D\u4E0D\u53EF\u89C1\uFF0C\u53EF\u80FD\u88AB\u9690\u85CF\u6216\u6298\u53E0",navChangeHint:"\uFF08\u68C0\u6D4B\u5230\u5BFC\u822A\u53D8\u5316\uFF0C\u5DF2\u7B49\u5F85 {ms}ms\uFF09",domChangeHint:"\uFF08\u68C0\u6D4B\u5230DOM\u53D8\u5316\uFF0C\u5DF2\u7B49\u5F85 {ms}ms\uFF09",hoveredByRef:"\u5DF2\u60AC\u505C\u5143\u7D20 ref={ref}\uFF08{tag}\uFF09{hint}",clickedByRef:"\u5DF2\u70B9\u51FB\u5143\u7D20 ref={ref}\uFF08{tag}\uFF09{hint}",typedByRef:"\u5DF2\u5411\u5143\u7D20 ref={ref}\uFF08{tag}\uFF09\u8F93\u5165\u6587\u672C{hint}",typeNotSupported:"\u5143\u7D20 {tag} \u4E0D\u652F\u6301\u6587\u672C\u8F93\u5165\uFF08checkbox/radio \u8BF7\u7528 fill_form \u6216 click\uFF09",valueRequired:"action=type \u65F6 value \u4E0D\u80FD\u4E3A\u7A7A",typeFailed:"\u6587\u672C\u8F93\u5165\u5931\u8D25",textRequired:"text \u4E0D\u80FD\u4E3A\u7A7A",scrolledToText:'\u5DF2\u6EDA\u52A8\u5230\u5305\u542B"{text}"\u7684\u5143\u7D20',scrollTextNotFound:'\u6EDA\u52A8 {count} \u6B21\u672A\u627E\u5230\u5305\u542B"{text}"\u7684\u6587\u672C'}}),A("en",{pageInteraction:{invalidRefSuggest:"Invalid or stale element ref={ref}. ",invalidRefSuggestions:"Nearest valid refs from the latest snapshot: {list}. ",invalidRefTail:"If the page has changed, re-run query_elements",elementNotVisibleError:"Element ref={ref} ({tag}) is not visible; it may be hidden or collapsed",navChangeHint:" (navigation change detected, waited {ms}ms)",domChangeHint:" (DOM change detected, waited {ms}ms)",hoveredByRef:"Hovered element ref={ref} ({tag}){hint}",clickedByRef:"Clicked element ref={ref} ({tag}){hint}",typedByRef:"Typed text into element ref={ref} ({tag}){hint}",typeNotSupported:"Element {tag} does not support text input (use fill_form or click for checkbox/radio)",valueRequired:"value is required when action=type",typeFailed:"Text input failed",textRequired:"text cannot be empty",scrolledToText:'Scrolled to element containing "{text}"',scrollTextNotFound:'Scrolled {count} times but did not find text containing "{text}"'}});var ct=0,ze=new WeakMap,ye=new Map;function kt(e,t,o){let n=ze.get(e);return n??(ct+=1,n=ct,ze.set(e,n)),ye.set(n,{element:e,selector:null,tag:e.tagName,role:t,name:o}),n}function dt(e){if(e.selector==null)try{e.selector=be(e.element)}catch{e.selector=""}return e.selector}function Qe(e){let t=parseInt(e,10);if(!t||!ye.has(t))return{error:ut(t),suggestions:Ge(t)};let o=ye.get(t);if(o.element&&o.element.isConnected)return dt(o),{entry:o,element:o.element};let n=dt(o),i=n?R(n):null;return i?(o.element=i,{entry:o,element:i}):{error:ut(t),suggestions:Ge(t)}}function Ge(e){return[...ye.entries()].sort((t,o)=>Math.abs(t[0]-e)-Math.abs(o[0]-e)).slice(0,3).map(([t,o])=>({ref:t,role:o.role||o.tag&&o.tag.toLowerCase()||"?",name:o.name||""}))}function ut(e){let t=c("pageInteraction.invalidRefSuggest",{ref:e}),o=Ge(e);if(o.length){let n=o.map(i=>`ref ${i.ref} (${i.role}${i.name?` "${i.name}"`:""})`).join(", ");t+=c("pageInteraction.invalidRefSuggestions",{list:n})}return t+=c("pageInteraction.invalidRefTail"),t}function io(e){return Qe(e).element||null}var ao=new Set(["button","link","checkbox","radio","switch","tab","menuitem","menuitemcheckbox","menuitemradio","option","combobox","listbox","searchbox","slider","spinbutton","textbox","treeitem"]),lo=new Set(["dialog","form","navigation","main","banner","contentinfo","table","row","heading"]);function St(e){let t=e.getAttribute("role"),o=t?t.trim().split(/\s+/)[0]:"";if(o)return o;let n=e.tagName;if(n==="BUTTON")return"button";if(n==="A")return e.hasAttribute("href")?"link":"";if(n==="SELECT")return e.multiple||e.size>1?"listbox":"combobox";if(n==="TEXTAREA")return"textbox";if(n==="SUMMARY")return"button";if(/^H[1-6]$/.test(n))return"heading";if(n==="NAV")return"navigation";if(n==="MAIN")return"main";if(n==="DIALOG")return"dialog";if(n==="FORM")return"form";if(n==="TABLE")return"table";if(n==="TR")return"row";if(n==="INPUT"){let i=(e.type||"text").toLowerCase();return i==="hidden"?"":i==="checkbox"?"checkbox":i==="radio"?"radio":i==="submit"||i==="button"||i==="reset"?"button":i==="search"?"searchbox":i==="range"?"slider":i==="number"?"spinbutton":"textbox"}return""}function vt(e){if(e.hasAttribute("hidden")||e.hasAttribute("inert")||e.getAttribute("aria-hidden")==="true"||e.style&&e.style.display==="none")return!0;let t=typeof getComputedStyle=="function"?getComputedStyle(e):null;return!!t&&t.display==="none"}function pt(e){if(typeof e.checkVisibility=="function")return!e.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});let t=typeof getComputedStyle=="function"?getComputedStyle(e):null;return t?t.display==="none"||t.visibility==="hidden":!1}function ro(){let e=new Set;try{for(let t of document.querySelectorAll('[aria-expanded="true"][aria-controls]'))e.add(t.getAttribute("aria-controls"))}catch{}return e}function so(e,t,o){if(e.tagName==="DIALOG"&&e.hasAttribute("open"))return!0;if(e.hasAttribute("popover"))try{if(e.matches(":popover-open"))return!0}catch{}if(e.tagName==="SELECT"||e.tagName==="INPUT"||e.tagName==="TEXTAREA")return!1;let n=document.activeElement;return!!((t==="dialog"||t==="alertdialog")&&(e.getAttribute("aria-modal")==="true"||n&&e.contains(n))||(t==="menu"||t==="listbox")&&n&&e.contains(n)||e.id&&o.has(e.id))}function Ct(e,t){if(ao.has(t)||e.tagName==="A"&&e.hasAttribute("href"))return!0;if(e.hasAttribute("contenteditable")){let n=e.getAttribute("contenteditable");if(n===""||n==="true"||n==="plaintext-only")return!0}let o=e.getAttribute("tabindex");return!!(o!==null&&parseInt(o,10)>=0||e.hasAttribute("onclick"))}function At(e){let t=[];return e.shadowRoot&&t.push(...e.shadowRoot.children),t.push(...e.children),t}function We(e,t){let o=(u,p=80)=>{if(!u)return"";let m=String(u).replace(/\s+/g," ").trim();return m.length>p?m.slice(0,p-1)+"\u2026":m},n=u=>o(u?u.textContent:"");if(e.tagName==="SELECT"){let u=e.options&&e.options[e.selectedIndex];if(u&&u.text)return o(u.text)}let i=e.getAttribute("aria-labelledby");if(i){let u=i.split(/\s+/).map(p=>document.getElementById(p)).filter(Boolean).map(p=>n(p)).filter(Boolean).join(" ");if(u)return u}let a=e.getAttribute("aria-label");if(a)return o(a);if(e.id)try{let u=document.querySelector(`label[for="${CSS.escape(e.id)}"]`);if(u){let p=n(u);if(p)return p}}catch{}let l=e.closest&&e.closest("label");if(l){let u=n(l);if(u)return u}if(e.getAttribute("placeholder"))return o(e.getAttribute("placeholder"));if(e.getAttribute("title"))return o(e.getAttribute("title"));if(e.getAttribute("alt"))return o(e.getAttribute("alt"));if(e.tagName==="INPUT"){let u=(e.type||"").toLowerCase();if((u==="submit"||u==="button"||u==="reset")&&e.value)return o(e.value)}let r="";for(let u of e.childNodes)u.nodeType===3&&(r+=u.textContent);r.trim()||(r=e.textContent||"");let s=o(r);if(s)return s;let d=e.previousElementSibling;for(;d&&!(d.textContent||"").trim();)d=d.previousElementSibling;if(d&&!d.querySelector("button, a[href], input, select, textarea")){let u=n(d);if(u)return u}return""}function co(e,t){let o=[],n=(a,l)=>a&&a.length>l?a.slice(0,l-1)+"\u2026":a;if(t==="link"&&e.getAttribute("href")&&o.push(`href="${n(e.getAttribute("href"),150)}"`),e.tagName==="INPUT"){let a=(e.type||"text").toLowerCase();a!=="text"&&a!=="checkbox"&&a!=="radio"&&o.push(`type="${a}"`)}let i=e.getAttribute("placeholder");return i&&o.push(`placeholder="${n(i,60)}"`),(e.tagName==="INPUT"||e.tagName==="TEXTAREA")&&e.value&&o.push(`value="${n(e.value,60)}"`),e.tagName==="INPUT"&&(e.type==="checkbox"||e.type==="radio")&&e.checked&&o.push('checked="true"'),e.tagName==="OPTION"&&e.selected&&o.push('selected="true"'),o.join(" ")}var uo=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`;function po(){return window.innerWidth>0&&window.innerHeight>0}function mo(e,t,o){if(!o||!o.length)return!0;let n=e.tagName.toLowerCase(),i=e.tagName==="INPUT"?(e.type||"").toLowerCase():"";return o.some(a=>a===n||a===i||a===t)}function go(e,t,o){return!o||`${t} ${e.textContent||""} ${e.value||""}`.toLowerCase().includes(String(o).toLowerCase())}function ho(e={}){let{filterByText:t="",elementTypes:o=null,page:n=1,maxResults:i=100,maxChars:a=6e3,countOnly:l=!1}=e;try{let r=Et({filterByText:t,elementTypes:o,frames:"none"});return r.success?st({frames:[{frameIndex:0,depth:0,isTop:!0,frameInfo:r.frameInfo,overlayTrees:r.overlayTrees,bodyTree:r.bodyTree}],page:n,maxResults:i,maxChars:a,countOnly:l}):r}catch(r){return console.error("[PageInteraction] queryInteractiveElements failed:",r),{success:!1,error:r.message}}}function fo(e,t,o){let n=e.getAttribute("title")||"",i="";try{i=e.src||""}catch{}i||=e.getAttribute("src")||"";let a=null;try{let r=e.contentWindow&&e.contentWindow.location.href;typeof r=="string"&&(a=r)}catch{}let l=o.iframeOrder.has(e)?o.iframeOrder.get(e):-1;return{t:"frame",title:n,srcUrl:i,sameOriginHref:a,orderInParent:l,depth:t}}function je(e,t,o,n){if(vt(e)||n.skipRoots&&n.skipRoots.has(e))return!1;let i=St(e),a=Ct(e,i),l=!a&&lo.has(i)?i:null,r=t+(a||l?1:0);if(n.frames==="auto"&&e.tagName==="IFRAME")return o.push(fo(e,t,n)),!0;let s=[],d=!1;for(let u of At(e))je(u,r,s,n)&&(d=!0);if(a&&n.matchedSet.has(e)){let u=i||e.tagName.toLowerCase(),p=We(e,u);return o.push({t:"el",localRef:ze.get(e)??kt(e,u,p),role:u,name:p,attrs:co(e,u),depth:t,children:s}),!0}if(l&&d){let u=l==="dialog"||l==="heading"?We(e,i):"";return o.push({t:"container",role:l,name:u,depth:t,children:s}),!0}return d?(o.push(...s),!0):!1}function Et(e={}){let{filterByText:t="",elementTypes:o=null,frames:n="none"}=e;try{ye.clear();let i=ro(),a=[],l=[];It(document.body,{matched:l,filterByText:t,elementTypes:o,overlayRoots:a,expandedTargets:i});for(let p of l)kt(p.el,p.role,p.name);let r=new Map;try{document.querySelectorAll("iframe").forEach((p,m)=>r.set(p,m))}catch{}let s={matchedSet:new Set(l.map(p=>p.el)),frames:n,iframeOrder:r,skipRoots:null},d=[];for(let p of a){let m=[];je(p,0,m,s),d.push(...m)}s.skipRoots=new Set(a);let u=[];return je(document.body,0,u,s),{success:!0,frameInfo:{url:location.href,title:document.title||"",width:window.innerWidth,height:window.innerHeight,loadId:uo},overlayTrees:d,bodyTree:u}}catch(i){return console.error("[PageInteraction] collectSnapshotOps failed:",i),{success:!1,error:i.message}}}function It(e,{matched:t,filterByText:o,elementTypes:n,overlayRoots:i,expandedTargets:a,inOverlay:l=!1}){if(vt(e))return;let r=St(e),s=l;if(!s&&!pt(e)&&so(e,r,a)&&(i.push(e),s=!0),Ct(e,r)&&!pt(e)&&mo(e,r,n)){let d=r||e.tagName.toLowerCase(),u=We(e,d);go(e,u,o)&&t.push({el:e,role:d,name:u,inOverlay:s})}for(let d of At(e))It(d,{matched:t,filterByText:o,elementTypes:n,overlayRoots:i,expandedTargets:a,inOverlay:s})}function bo(e={}){let{scrollPixels:t=800,maxScrolls:o=20,pauseMs:n=500,selector:i}=e;return new Promise(async a=>{try{let l=i?document.querySelector(i):null,r=()=>{let h=l||document.body,b=document.createTreeWalker(h,NodeFilter.SHOW_TEXT),x="",T;for(;T=b.nextNode();){let v=T.parentElement;if(!v)continue;let I=v.getBoundingClientRect();if(I.bottom>-100&&I.top<window.innerHeight+100){let B=T.textContent.trim();B&&(x+=B+`
77
+ `)}}return x},s=l||document.scrollingElement||document.documentElement,d="",u=window.scrollY,p=0;for(let h=0;h<o;h++){let b=r();d+=b+`
78
+ `;let x=window.scrollY;if(s.scrollBy({top:t,behavior:"auto"}),p++,await new Promise(T=>setTimeout(T,n)),Math.abs(window.scrollY-x)<5&&(await new Promise(T=>setTimeout(T,n)),Math.abs(window.scrollY-x)<5))break}l&&s.scrollTo({top:u,behavior:"auto"});let m=d.split(`
79
+ `),g=[];for(let h of m){let b=h.trim();b&&b!==g[g.length-1]&&g.push(b)}a({success:!0,content:g.join(`
76
80
  `),contentLength:g.join(`
77
- `).length,scrolls:p,startScrollY:m,endScrollY:window.scrollY})}catch(a){i({success:!1,error:a.message})}})}async function qt(e,t="click",o={}){let{waitTime:n=300,timeout:l=2e3}=o,i=parseInt(e,10);if(!i||!ne.has(i))return{success:!1,error:d("pageInteraction.invalidRefError",{ref:e})};let a=ne.get(i),r=a.element;if(!r.isConnected&&(r=E(a.selector),!r))return{success:!1,error:d("pageInteraction.elementStaleError",{ref:e})};let s=window.getComputedStyle(r);if(s.display==="none"||s.visibility==="hidden")return{success:!1,error:d("pageInteraction.elementNotVisibleError",{ref:e,tag:a.tag})};if(t==="hover"){let u=Y();r.dispatchEvent(new MouseEvent("mouseover",{bubbles:!0,cancelable:!0,view:window})),r.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!0,cancelable:!0,view:window}));let g=await Z(u,n,l),h=g.changed?d(g.urlChanged?"pageInteraction.navChangeHint":"pageInteraction.domChangeHint",{ms:g.waitedMs}):"";return{success:!0,message:d("pageInteraction.hoveredByRef",{ref:e,tag:a.tag,hint:h}),selector:a.selector,...g}}let c=Y();r.click();let m=await Z(c,n,l),p=m.changed?d(m.urlChanged?"pageInteraction.navChangeHint":"pageInteraction.domChangeHint",{ms:m.waitedMs}):"";return{success:!0,message:d("pageInteraction.clickedByRef",{ref:e,tag:a.tag,hint:p}),selector:a.selector,...m}}async function Ut(e,t={}){let{maxScrolls:o=20,pauseMs:n=500}=t;if(!e)return{success:!1,error:d("pageInteraction.textRequired")};let l=e.toLowerCase(),i=()=>{let r=W("h1, h2, h3, h4, h5, h6, p, span, a, button, li, td, th, label, div");for(let s of r){let c=Array.from(s.childNodes).filter(m=>m.nodeType===Node.TEXT_NODE).map(m=>m.textContent).join("").trim();if(c&&c.toLowerCase().includes(l))return s}return null},a=i();if(a)return a.scrollIntoView({behavior:"smooth",block:"center"}),await new Promise(r=>setTimeout(r,300)),{success:!0,message:d("pageInteraction.scrolledToText",{text:e}),selector:ge(a),scrolls:0};for(let r=0;r<o;r++){let s=window.scrollY;if(window.scrollBy({top:Math.floor(window.innerHeight*.8),behavior:"auto"}),await new Promise(c=>setTimeout(c,n)),a=i(),a)return a.scrollIntoView({behavior:"smooth",block:"center"}),await new Promise(c=>setTimeout(c,300)),{success:!0,message:d("pageInteraction.scrolledToText",{text:e}),selector:ge(a),scrolls:r+1};if(Math.abs(window.scrollY-s)<5&&(await new Promise(c=>setTimeout(c,n)),Math.abs(window.scrollY-s)<5))break}return{success:!1,error:d("pageInteraction.scrollTextNotFound",{count:o,text:e}),scrolls:o}}C("zh",{pageTools:{noSelection:"\u5F53\u524D\u6CA1\u6709\u9009\u4E2D\u7684\u5185\u5BB9",tableNotFound:"\u672A\u627E\u5230\u5339\u914D\u9009\u62E9\u5668\u7684\u8868\u683C: {selector}",emptyTable:"\u8868\u683C\u4E3A\u7A7A",copiedToClipboard:"\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",copiedToClipboardFallback:"\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F\uFF08\u964D\u7EA7\u65B9\u6848\uFF09",elementNotFound:"\u672A\u627E\u5230\u5143\u7D20: {selector}",navChangeHint:"\uFF08\u68C0\u6D4B\u5230\u5BFC\u822A\u53D8\u5316\uFF0C\u5DF2\u7B49\u5F85 {ms}ms\uFF09",domChangeHint:"\uFF08\u68C0\u6D4B\u5230DOM\u53D8\u5316\uFF0C\u5DF2\u7B49\u5F85 {ms}ms\uFF09",hoverTriggered:"\u5DF2\u5728\u5143\u7D20\u4E0A\u89E6\u53D1\u60AC\u505C\u6548\u679C: {selector}{hint}",noHighlightText:"\u672A\u63D0\u4F9B\u8981\u9AD8\u4EAE\u7684\u6587\u672C",highlightedCount:"\u5DF2\u9AD8\u4EAE {count} \u5904\u6587\u672C"}}),C("en",{pageTools:{noSelection:"No content selected",tableNotFound:"No table found matching selector: {selector}",emptyTable:"Table is empty",copiedToClipboard:"Copied to clipboard",copiedToClipboardFallback:"Copied to clipboard (fallback method)",elementNotFound:"Element not found: {selector}",navChangeHint:" (navigation change detected, waited {ms}ms)",domChangeHint:" (DOM change detected, waited {ms}ms)",hoverTriggered:"Hover triggered on element: {selector}{hint}",noHighlightText:"No text provided to highlight",highlightedCount:"Highlighted {count} occurrences"}});function Kt(e={}){let{maxLength:t=5e4,includeHeadings:o=!0,includeLinks:n=!0}=e,l=Se(),i={title:document.title||"",url:window.location.href,content:l.substring(0,t),wordCount:l.split(/\s+/).length};return o&&(i.headings=Array.from(W("h1, h2, h3, h4, h5, h6")).map(a=>({level:a.tagName,text:a.textContent.trim()})).filter(a=>a.text.length>0).slice(0,30)),n&&(i.links=Array.from(W("a")).map(a=>({text:a.textContent.trim(),href:a.href})).filter(a=>a.text.length>0).slice(0,50)),{success:!0,data:i}}function zt(e={}){let{includeStyles:t=!1,maxLength:o=5e4}=e,n=ve();return t||(n=n.replace(/\s*style="[^"]*"/gi,"")),{success:!0,content:JSON.stringify({title:document.title,url:window.location.href,html:n.substring(0,o),fullLength:n.length})}}function Gt(e="text"){try{let t=window.getSelection();if(!t||t.isCollapsed||t.rangeCount===0)return{success:!1,error:d("pageTools.noSelection")};let o={success:!0,data:{selectedCount:t.rangeCount,text:""}};if(e==="html"){let n=[];for(let l=0;l<t.rangeCount;l++){let i=t.getRangeAt(l).cloneContents(),a=document.createElement("div");a.appendChild(i),n.push(a.innerHTML)}o.data.html=n.join(`
78
- `),o.data.text=t.toString()}else o.data.text=t.toString();return o}catch(t){return{success:!1,error:t.message}}}function $t(e="table",t=!0,o="json"){try{let n=E(e);if(!n)return{success:!1,error:d("pageTools.tableNotFound",{selector:e})};let l=Array.from(n.querySelectorAll("tr")),i=[];return l.forEach((a,r)=>{let s=Array.from(a.querySelectorAll("td, th")).map(c=>c.textContent.trim());(t||r>0)&&i.push(s)}),o==="markdown"?i.length===0?{success:!0,content:d("pageTools.emptyTable")}:{success:!0,content:`${`| ${i[0].join(" | ")} |`}
79
- ${`| ${i[0].map(()=>"---").join(" | ")} |`}
80
- ${i.slice(1).map(a=>`| ${a.join(" | ")} |`).join(`
81
- `)}`}:{success:!0,content:JSON.stringify({data:i,rowCount:i.length,columnCount:i[0]?.length||0}),data:i}}catch(n){return{success:!1,error:n.message}}}async function Wt(e){try{return await navigator.clipboard.writeText(e),{success:!0,message:d("pageTools.copiedToClipboard")}}catch{try{let t=document.createElement("textarea");return t.value=e,t.style.position="fixed",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),{success:!0,message:d("pageTools.copiedToClipboardFallback")}}catch(t){return{success:!1,error:t.message}}}}async function jt(){try{return{success:!0,content:await navigator.clipboard.readText()}}catch(e){return{success:!1,error:e.message}}}async function Vt(e){try{let t=E(e);if(!t)return{success:!1,error:d("pageTools.elementNotFound",{selector:e})};let o=Y();t.dispatchEvent(new MouseEvent("mouseover",{bubbles:!0,cancelable:!0,view:window})),t.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!0,cancelable:!0,view:window}));let n=await Z(o,300,2e3),l=n.changed?n.urlChanged?d("pageTools.navChangeHint",{ms:n.waitedMs}):d("pageTools.domChangeHint",{ms:n.waitedMs}):"";return{success:!0,message:d("pageTools.hoverTriggered",{selector:e,hint:l}),...n}}catch(t){return{success:!1,error:t.message}}}function Yt(e,t="yellow"){try{if(!e)return{success:!1,error:d("pageTools.noHighlightText")};He();let o=document.createElement("style");o.id="ai-helper-highlight-style",o.textContent=`
81
+ `).length,scrolls:p,startScrollY:u,endScrollY:window.scrollY})}catch(l){a({success:!1,error:l.message})}})}async function yo(e,t="click",o={}){let{waitTime:n=300,timeout:i=2e3}=o,a=parseInt(e,10),l=Qe(a);if(l.error)return{success:!1,error:l.error,...l.suggestions&&l.suggestions.length?{suggestions:l.suggestions}:{}};let{entry:r,element:s}=l,d=window.getComputedStyle(s);if(d.display==="none"||d.visibility==="hidden")return{success:!1,error:c("pageInteraction.elementNotVisibleError",{ref:e,tag:r.tag})};if(t==="type"){let g=X(),h=wo(s,o.value,o);if(!h.success)return{success:!1,error:h.error};let b=await Z(g,n,i),x=b.changed?c(b.urlChanged?"pageInteraction.navChangeHint":"pageInteraction.domChangeHint",{ms:b.waitedMs}):"";return{success:!0,message:c("pageInteraction.typedByRef",{ref:a,tag:r.tag,hint:x}),...b}}if(t==="hover"){let g=X();s.dispatchEvent(new MouseEvent("mouseover",{bubbles:!0,cancelable:!0,view:window})),s.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!0,cancelable:!0,view:window}));let h=await Z(g,n,i),b=h.changed?c(h.urlChanged?"pageInteraction.navChangeHint":"pageInteraction.domChangeHint",{ms:h.waitedMs}):"";return{success:!0,message:c("pageInteraction.hoveredByRef",{ref:e,tag:r.tag,hint:b}),...h}}let u=X();s.click();let p=await Z(u,n,i),m=p.changed?c(p.urlChanged?"pageInteraction.navChangeHint":"pageInteraction.domChangeHint",{ms:p.waitedMs}):"";return{success:!0,message:c("pageInteraction.clickedByRef",{ref:e,tag:r.tag,hint:m}),...p}}function wo(e,t,{clear:o=!1,submit:n=!1}={}){if(t==null||t==="")return{success:!1,error:c("pageInteraction.valueRequired")};let i=e.tagName,a=Tt(e);if(i==="INPUT"){let l=(e.type||"text").toLowerCase();if(["checkbox","radio","file","submit","button","reset","image"].includes(l))return{success:!1,error:c("pageInteraction.typeNotSupported",{tag:`<input type="${l}">`})}}else if(i!=="TEXTAREA"&&!a)return{success:!1,error:c("pageInteraction.typeNotSupported",{tag:`<${i.toLowerCase()}>`})};try{e.focus()}catch{}if(a&&i!=="INPUT"&&i!=="TEXTAREA"){if(o&&Pe(e,""),!Pe(e,t))return{success:!1,error:c("pageInteraction.typeFailed")}}else o&&(Ie(e,""),e.dispatchEvent(new Event("input",{bubbles:!0}))),Ie(e,t),e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}));if(n){let l={key:"Enter",code:"Enter",keyCode:13,which:13,bubbles:!0,cancelable:!0};e.dispatchEvent(new KeyboardEvent("keydown",l)),e.dispatchEvent(new KeyboardEvent("keypress",l)),e.dispatchEvent(new KeyboardEvent("keyup",l))}return{success:!0}}async function xo(e,t={}){let{maxScrolls:o=20,pauseMs:n=500}=t;if(!e)return{success:!1,error:c("pageInteraction.textRequired")};let i=e.toLowerCase(),a=()=>{let r=ee("h1, h2, h3, h4, h5, h6, p, span, a, button, li, td, th, label, div");for(let s of r){let d=Array.from(s.childNodes).filter(u=>u.nodeType===Node.TEXT_NODE).map(u=>u.textContent).join("").trim();if(d&&d.toLowerCase().includes(i))return s}return null},l=a();if(l)return l.scrollIntoView({behavior:"smooth",block:"center"}),await new Promise(r=>setTimeout(r,300)),{success:!0,message:c("pageInteraction.scrolledToText",{text:e}),selector:be(l),scrolls:0};for(let r=0;r<o;r++){let s=window.scrollY;if(window.scrollBy({top:Math.floor(window.innerHeight*.8),behavior:"auto"}),await new Promise(d=>setTimeout(d,n)),l=a(),l)return l.scrollIntoView({behavior:"smooth",block:"center"}),await new Promise(d=>setTimeout(d,300)),{success:!0,message:c("pageInteraction.scrolledToText",{text:e}),selector:be(l),scrolls:r+1};if(Math.abs(window.scrollY-s)<5&&(await new Promise(d=>setTimeout(d,n)),Math.abs(window.scrollY-s)<5))break}return{success:!1,error:c("pageInteraction.scrollTextNotFound",{count:o,text:e}),scrolls:o}}A("zh",{pageTools:{noSelection:"\u5F53\u524D\u6CA1\u6709\u9009\u4E2D\u7684\u5185\u5BB9",tableNotFound:"\u672A\u627E\u5230\u5339\u914D\u9009\u62E9\u5668\u7684\u8868\u683C: {selector}",emptyTable:"\u8868\u683C\u4E3A\u7A7A",copiedToClipboard:"\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F",copiedToClipboardFallback:"\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F\uFF08\u964D\u7EA7\u65B9\u6848\uFF09",elementNotFound:"\u672A\u627E\u5230\u5143\u7D20: {selector}",navChangeHint:"\uFF08\u68C0\u6D4B\u5230\u5BFC\u822A\u53D8\u5316\uFF0C\u5DF2\u7B49\u5F85 {ms}ms\uFF09",domChangeHint:"\uFF08\u68C0\u6D4B\u5230DOM\u53D8\u5316\uFF0C\u5DF2\u7B49\u5F85 {ms}ms\uFF09",hoverTriggered:"\u5DF2\u5728\u5143\u7D20\u4E0A\u89E6\u53D1\u60AC\u505C\u6548\u679C: {selector}{hint}",noHighlightText:"\u672A\u63D0\u4F9B\u8981\u9AD8\u4EAE\u7684\u6587\u672C",highlightedCount:"\u5DF2\u9AD8\u4EAE {count} \u5904\u6587\u672C"}}),A("en",{pageTools:{noSelection:"No content selected",tableNotFound:"No table found matching selector: {selector}",emptyTable:"Table is empty",copiedToClipboard:"Copied to clipboard",copiedToClipboardFallback:"Copied to clipboard (fallback method)",elementNotFound:"Element not found: {selector}",navChangeHint:" (navigation change detected, waited {ms}ms)",domChangeHint:" (DOM change detected, waited {ms}ms)",hoverTriggered:"Hover triggered on element: {selector}{hint}",noHighlightText:"No text provided to highlight",highlightedCount:"Highlighted {count} occurrences"}});function To(e={}){let{maxLength:t=5e4,includeHeadings:o=!0,includeLinks:n=!0}=e,i=Ae(),a={title:document.title||"",url:window.location.href,content:i.substring(0,t),wordCount:i.split(/\s+/).length};return o&&(a.headings=Array.from(ee("h1, h2, h3, h4, h5, h6")).map(l=>({level:l.tagName,text:l.textContent.trim()})).filter(l=>l.text.length>0).slice(0,30)),n&&(a.links=Array.from(ee("a")).map(l=>({text:l.textContent.trim(),href:l.href})).filter(l=>l.text.length>0).slice(0,50)),{success:!0,data:a}}function ko(e={}){let{includeStyles:t=!1,maxLength:o=5e4}=e,n=Ee();return t||(n=n.replace(/\s*style="[^"]*"/gi,"")),{success:!0,content:JSON.stringify({title:document.title,url:window.location.href,html:n.substring(0,o),fullLength:n.length})}}function So(e="text"){try{let t=window.getSelection();if(!t||t.isCollapsed||t.rangeCount===0)return{success:!1,error:c("pageTools.noSelection")};let o={success:!0,data:{selectedCount:t.rangeCount,text:""}};if(e==="html"){let n=[];for(let i=0;i<t.rangeCount;i++){let a=t.getRangeAt(i).cloneContents(),l=document.createElement("div");l.appendChild(a),n.push(l.innerHTML)}o.data.html=n.join(`
82
+ `),o.data.text=t.toString()}else o.data.text=t.toString();return o}catch(t){return{success:!1,error:t.message}}}function vo(e="table",t=!0,o="json"){try{let n=R(e);if(!n)return{success:!1,error:c("pageTools.tableNotFound",{selector:e})};let i=Array.from(n.querySelectorAll("tr")),a=[];return i.forEach((l,r)=>{let s=Array.from(l.querySelectorAll("td, th")).map(d=>d.textContent.trim());(t||r>0)&&a.push(s)}),o==="markdown"?a.length===0?{success:!0,content:c("pageTools.emptyTable")}:{success:!0,content:`${`| ${a[0].join(" | ")} |`}
83
+ ${`| ${a[0].map(()=>"---").join(" | ")} |`}
84
+ ${a.slice(1).map(l=>`| ${l.join(" | ")} |`).join(`
85
+ `)}`}:{success:!0,content:JSON.stringify({data:a,rowCount:a.length,columnCount:a[0]?.length||0}),data:a}}catch(n){return{success:!1,error:n.message}}}async function Co(e){try{return await navigator.clipboard.writeText(e),{success:!0,message:c("pageTools.copiedToClipboard")}}catch{try{let t=document.createElement("textarea");return t.value=e,t.style.position="fixed",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),{success:!0,message:c("pageTools.copiedToClipboardFallback")}}catch(t){return{success:!1,error:t.message}}}}async function Ao(){try{return{success:!0,content:await navigator.clipboard.readText()}}catch(e){return{success:!1,error:e.message}}}async function Eo(e){try{let t=R(e);if(!t)return{success:!1,error:c("pageTools.elementNotFound",{selector:e})};let o=X();t.dispatchEvent(new MouseEvent("mouseover",{bubbles:!0,cancelable:!0,view:window})),t.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!0,cancelable:!0,view:window}));let n=await Z(o,300,2e3),i=n.changed?n.urlChanged?c("pageTools.navChangeHint",{ms:n.waitedMs}):c("pageTools.domChangeHint",{ms:n.waitedMs}):"";return{success:!0,message:c("pageTools.hoverTriggered",{selector:e,hint:i}),...n}}catch(t){return{success:!1,error:t.message}}}function Io(e,t="yellow"){try{if(!e)return{success:!1,error:c("pageTools.noHighlightText")};$e();let o=document.createElement("style");o.id="ai-helper-highlight-style",o.textContent=`
82
86
  .ai-helper-highlight {
83
87
  background-color: ${t} !important;
84
88
  padding: 2px 0;
85
89
  }
86
- `,document.head.appendChild(o);let n=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,null,!1),l=[],i;for(;i=n.nextNode();)i.nodeValue.toLowerCase().includes(e.toLowerCase())&&l.push(i);let a=[];return l.forEach(r=>{let s=r.parentNode;if(!s||!s.replaceChild||!s.insertBefore)return;let c=r.nodeValue,m=c.toLowerCase(),p=c.toLowerCase(),u=m.indexOf(p);if(u!==-1){let g=document.createElement("span");g.className="ai-helper-highlight",g.textContent=c.substring(u,u+c.length);let h=document.createTextNode(c.substring(0,u)),y=document.createTextNode(c.substring(u+c.length));s.replaceChild(y,r),s.insertBefore(g,y),s.insertBefore(h,g),a.push(g)}}),a.length>0&&a[0].scrollIntoView({behavior:"smooth",block:"center"}),{success:!0,message:d("pageTools.highlightedCount",{count:a.length}),count:a.length}}catch(o){return{success:!1,error:o.message}}}C("zh",{interactionTools:{selectorRequired:"\u9009\u62E9\u5668\u4E0D\u80FD\u4E3A\u7A7A",elementNotFoundBySelector:"\u672A\u627E\u5230\u5339\u914D\u9009\u62E9\u5668\u7684\u5143\u7D20: {selector}",navChangeHint:"\uFF08\u68C0\u6D4B\u5230\u5BFC\u822A\u53D8\u5316\uFF0C\u5DF2\u7B49\u5F85 {ms}ms\uFF09",domChangeHint:"\uFF08\u68C0\u6D4B\u5230DOM\u53D8\u5316\uFF0C\u5DF2\u7B49\u5F85 {ms}ms\uFF09",clickedElement:"\u5DF2\u70B9\u51FB\u5143\u7D20: {selector}{hint}",elementNotFound:"\u672A\u627E\u5230\u5143\u7D20",optionNotFound:"\u672A\u627E\u5230\u5339\u914D\u7684\u9009\u9879",radioButtonNotFound:"\u672A\u627E\u5230\u5339\u914D\u7684\u5355\u9009\u6309\u94AE",formFillComplete:"\u8868\u5355\u586B\u5145\u5B8C\u6210\uFF0C\u6210\u529F {success}/{total} \u4E2A\u5B57\u6BB5",elementNotFoundShort:"\u672A\u627E\u5230\u5143\u7D20: {selector}",invalidScrollTarget:"\u65E0\u6548\u7684\u6EDA\u52A8\u76EE\u6807\u6216\u7F3A\u5C11\u9009\u62E9\u5668",scrollComplete:"\u6EDA\u52A8\u5B8C\u6210",elementAppeared:"\u5143\u7D20 {selector} \u5DF2\u51FA\u73B0",elementDisappeared:"\u5143\u7D20 {selector} \u5DF2\u6D88\u5931",elementVisible:"\u5143\u7D20 {selector} \u5DF2\u53EF\u89C1",elementHidden:"\u5143\u7D20 {selector} \u5DF2\u9690\u85CF",waitTimeout:"\u7B49\u5F85\u8D85\u65F6\uFF08{timeout}ms\uFF09\uFF0C\u5143\u7D20 {selector} \u672A\u8FBE\u5230 {state} \u72B6\u6001",noFocusedElement:"\u6CA1\u6709\u805A\u7126\u7684\u5143\u7D20",keyboardInputSuccess:"\u952E\u76D8\u8F93\u5165\u6210\u529F{hint}",sourceElementNotFound:"\u672A\u627E\u5230\u6E90\u5143\u7D20: {selector}",targetElementNotFound:"\u672A\u627E\u5230\u76EE\u6807\u5143\u7D20: {selector}",dragExperimental:"\u26A0\uFE0F\u62D6\u62FD\u4E3A\u5B9E\u9A8C\u6027\uFF0C\u53EF\u80FD\u672A\u751F\u6548\uFF08{source} \u2192 {target}\uFF09\u3002\u53D7\u6D4F\u89C8\u5668 dataTransfer \u9650\u5236\uFF0C\u4F9D\u8D56\u62D6\u62FD\u6570\u636E\u7684\u7F51\u9875\u591A\u6570\u65E0\u6CD5\u89E6\u53D1\uFF0C\u5EFA\u8BAE\u9A8C\u8BC1\u7ED3\u679C\u6216\u6539\u7528\u70B9\u51FB\u5750\u6807\u5B9E\u73B0",fileUploadNotFound:"\u672A\u627E\u5230\u6587\u4EF6\u4E0A\u4F20\u63A7\u4EF6: {selector}",notFileUploadControl:"\u9009\u62E9\u7684\u5143\u7D20\u4E0D\u662F\u6587\u4EF6\u4E0A\u4F20\u63A7\u4EF6",fileUploaded:"\u5DF2\u4E0A\u4F20\u6587\u4EF6: {fileName}",textRequired:"text \u4E0D\u80FD\u4E3A\u7A7A",hoveredByText:'\u5DF2\u60AC\u505C\u6587\u672C"{text}"\u5BF9\u5E94\u7684{tag}\u5143\u7D20{hint}',clickedByText:'\u5DF2\u70B9\u51FB\u6587\u672C"{text}"\u5BF9\u5E94\u7684{tag}\u5143\u7D20{hint}',textNotFound:'\u9875\u9762\u4E2D\u4E0D\u5B58\u5728\u6587\u672C"{text}"\uFF0C\u53EF\u80FD\u9700\u8981\u5148\u64CD\u4F5C\uFF08\u5982\u6253\u5F00\u4E0B\u62C9\u9762\u677F\uFF09\u6216\u6587\u672C\u6709\u8BEF',textFoundButHidden:'\u627E\u5230\u6587\u672C"{text}"\u4F46\u5143\u7D20\u4E0D\u53EF\u89C1\uFF0C\u53EF\u80FD\u9700\u8981\u5148\u6253\u5F00\u4E0B\u62C9\u9762\u677F/\u6EDA\u52A8\u5230\u53EF\u89C1\u533A\u57DF',textNotClickable:'\u627E\u5230\u6587\u672C"{text}"\u4F46\u4E0D\u5728\u53EF\u70B9\u51FB\u5143\u7D20\u4E2D\uFF0C\u8BF7\u7528 query_elements \u67E5\u770B\u5B9E\u9645\u7ED3\u6784\u6216\u7528 selector \u5B9A\u4F4D',textFoundButNotMatched:'\u627E\u5230\u6587\u672C"{text}"\u5728\u53EF\u70B9\u51FB\u5143\u7D20\u4E2D\u4F46\u672A\u5339\u914D\uFF0C\u53EF\u80FD\u6587\u672C\u88AB\u5206\u5272\u6216\u5927\u5C0F\u5199\u4E0D\u4E00\u81F4',tagConstraint:"\uFF08\u9650\u5B9A\u6807\u7B7E: {tag}\uFF09",triggerNotFound:"\u672A\u627E\u5230\u89E6\u53D1\u5668: {selector}",selectedOption:"\u5DF2\u9009\u62E9: {label}",selectOptionNotFound:'\u5728 <select> \u4E2D\u672A\u627E\u5230\u5339\u914D\u7684\u9009\u9879: "{option}"',optionContainerNotFound:"\u672A\u627E\u5230\u9009\u9879\u5BB9\u5668: {selector}",optionMatchTimeout:'\u5728 {timeout}ms \u5185\u672A\u627E\u5230\u5339\u914D\u9009\u9879: "{option}"',setRequiresKeyValue:"set\u64CD\u4F5C\u9700\u8981\u63D0\u4F9Bkey\u548Cvalue",keySet:"\u5DF2\u8BBE\u7F6E {key}",removeRequiresKey:"remove\u64CD\u4F5C\u9700\u8981\u63D0\u4F9Bkey",keyRemoved:"\u5DF2\u5220\u9664 {key}",storageCleared:"\u5DF2\u6E05\u7A7A\u5B58\u50A8",unknownAction:"\u672A\u77E5\u64CD\u4F5C: {action}"}}),C("en",{interactionTools:{selectorRequired:"Selector cannot be empty",elementNotFoundBySelector:"No element found matching selector: {selector}",navChangeHint:" (navigation change detected, waited {ms}ms)",domChangeHint:" (DOM change detected, waited {ms}ms)",clickedElement:"Clicked element: {selector}{hint}",elementNotFound:"Element not found",optionNotFound:"No matching option found",radioButtonNotFound:"No matching radio button found",formFillComplete:"Form fill complete: {success}/{total} fields succeeded",elementNotFoundShort:"Element not found: {selector}",invalidScrollTarget:"Invalid scroll target or missing selector",scrollComplete:"Scroll complete",elementAppeared:"Element {selector} appeared",elementDisappeared:"Element {selector} disappeared",elementVisible:"Element {selector} is visible",elementHidden:"Element {selector} is hidden",waitTimeout:"Timed out ({timeout}ms); element {selector} did not reach {state} state",noFocusedElement:"No focused element",keyboardInputSuccess:"Keyboard input successful{hint}",sourceElementNotFound:"Source element not found: {selector}",targetElementNotFound:"Target element not found: {selector}",dragExperimental:"\u26A0\uFE0F Drag is experimental and may not have worked ({source} \u2192 {target}). Due to browser dataTransfer limitations, most pages relying on drag data cannot be triggered; please verify the result or use click coordinates instead",fileUploadNotFound:"File upload control not found: {selector}",notFileUploadControl:"The selected element is not a file upload control",fileUploaded:"File uploaded: {fileName}",textRequired:"text cannot be empty",hoveredByText:'Hovered over the {tag} element matching "{text}"{hint}',clickedByText:'Clicked the {tag} element matching "{text}"{hint}',textNotFound:'Text "{text}" does not exist on the page; you may need to perform an action first (e.g. open a dropdown) or the text may be incorrect',textFoundButHidden:'Found text "{text}" but the element is not visible; you may need to open a dropdown panel or scroll to make it visible',textNotClickable:'Found text "{text}" but it is not in a clickable element; use query_elements to inspect the structure or use a selector to locate it',textFoundButNotMatched:'Found text "{text}" in a clickable element but it did not match; the text may be split or have different casing',tagConstraint:" (tag constraint: {tag})",triggerNotFound:"Trigger not found: {selector}",selectedOption:"Selected: {label}",selectOptionNotFound:'No matching option found in <select>: "{option}"',optionContainerNotFound:"Option container not found: {selector}",optionMatchTimeout:'No matching option found within {timeout}ms: "{option}"',setRequiresKeyValue:"Set operation requires both key and value",keySet:"Set {key}",removeRequiresKey:"Remove operation requires a key",keyRemoved:"Removed {key}",storageCleared:"Storage cleared",unknownAction:"Unknown action: {action}"}});async function Zt(e,t=300,o=2e3){try{if(!e)return{success:!1,error:d("interactionTools.selectorRequired")};let n=e.trim();for(let[s,c]of[[/^"([\s\S]*)"$/,"$1"],[/^'([\s\S]*)'$/,"$1"],[/^`([\s\S]*)`$/,"$1"],[/^"([\s\S]*)"$/,"$1"],[/^'([\s\S]*)'$/,"$1"],[/^「([\s\S]*)」$/,"$1"]])n=n.replace(s,c);let l=E(n);if(!l)return{success:!1,error:d("interactionTools.elementNotFoundBySelector",{selector:e})};let i=Y();l.click();let a=await Z(i,t,o),r=a.changed?d(a.urlChanged?"interactionTools.navChangeHint":"interactionTools.domChangeHint",{ms:a.waitedMs}):"";return{success:!0,message:d("interactionTools.clickedElement",{selector:e,hint:r}),...a}}catch(n){return{success:!1,error:n.message}}}function Qt(e){return e.isContentEditable||e.getAttribute("contenteditable")==="true"}function lt(e,t){let o=e.tagName==="TEXTAREA"?HTMLTextAreaElement.prototype:HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(o,"value");n&&n.set?n.set.call(e,t):e.value=t}function Qe(e,t){try{return e.focus(),document.execCommand("insertText",!1,t)||(e.textContent=t),e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})),!0}catch{try{return e.textContent=t,e.dispatchEvent(new Event("input",{bubbles:!0})),!0}catch{return!1}}}function Xt(e,t=500){try{let o=[];e.forEach(l=>{let{selector:i,value:a,fieldType:r="text"}=l,s=E(i);if(!s){o.push({selector:i,success:!1,error:d("interactionTools.elementNotFound")});return}try{if(r==="text"){if(Qt(s)){let c=Qe(s,a);o.push({selector:i,success:c,value:a});return}lt(s,a),s.dispatchEvent(new Event("input",{bubbles:!0})),s.dispatchEvent(new Event("change",{bubbles:!0}))}else if(r==="contenteditable"){let c=Qe(s,a);o.push({selector:i,success:c,value:a});return}else if(r==="select"){let c=s.querySelector(`option[value="${a}"]`)||Array.from(s.options).find(m=>m.textContent===a);if(c)s.value=c.value,s.dispatchEvent(new Event("change",{bubbles:!0}));else{o.push({selector:i,success:!1,error:d("interactionTools.optionNotFound")});return}}else if(r==="checkbox")s.checked=a==="true"||a===!0,s.dispatchEvent(new Event("change",{bubbles:!0}));else if(r==="radio"){let c=E(`${i}[value="${a}"]`);if(c)c.checked=!0,c.dispatchEvent(new Event("change",{bubbles:!0}));else{o.push({selector:i,success:!1,error:d("interactionTools.radioButtonNotFound")});return}}o.push({selector:i,success:!0,value:a})}catch(c){o.push({selector:i,success:!1,error:c.message})}});let n=o.filter(l=>l.success).length;return{success:!0,message:d("interactionTools.formFillComplete",{success:n,total:e.length}),details:o}}catch(o){return{success:!1,error:o.message}}}function Jt(e){try{let{target:t="selector",selector:o,x:n=0,y:l=0,behavior:i="smooth",align:a="center"}=e;if(t==="top")window.scrollTo({top:0,left:0,behavior:i});else if(t==="bottom")window.scrollTo({top:document.body.scrollHeight,left:0,behavior:i});else if(t==="coordinates")window.scrollTo({top:l,left:n,behavior:i});else if(t==="selector"&&o){let r=E(o);if(!r)return{success:!1,error:d("interactionTools.elementNotFoundShort",{selector:o})};r.scrollIntoView({behavior:i,block:a})}else return{success:!1,error:d("interactionTools.invalidScrollTarget")};return{success:!0,message:d("interactionTools.scrollComplete")}}catch(t){return{success:!1,error:t.message}}}function Xe(e){if(!e)return!1;if(e.offsetParent===null&&e.tagName!=="BODY"){let i=window.getComputedStyle(e);if(i.display==="none"||i.visibility==="hidden"||i.position!=="fixed")return!1}let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||parseFloat(t.opacity)<=0)return!1;let o=e.getBoundingClientRect();if(o.width<=0||o.height<=0)return!1;let n=window.innerHeight||document.documentElement.clientHeight,l=window.innerWidth||document.documentElement.clientWidth;return o.top<n&&o.bottom>0&&o.left<l&&o.right>0}function eo(e,t="appeared",o=1e4){return new Promise((n,l)=>{let i=Date.now(),a=()=>{let r=E(e);if(t==="appeared"&&r){n({success:!0,message:d("interactionTools.elementAppeared",{selector:e}),element:e});return}if(t==="disappeared"&&!r){n({success:!0,message:d("interactionTools.elementDisappeared",{selector:e})});return}if(t==="visible"&&r&&Xe(r)){n({success:!0,message:d("interactionTools.elementVisible",{selector:e}),element:e});return}if(t==="hidden"&&(!r||!Xe(r))){n({success:!0,message:d("interactionTools.elementHidden",{selector:e})});return}if(Date.now()-i>o){n({success:!1,error:d("interactionTools.waitTimeout",{timeout:o,selector:e,state:t})});return}setTimeout(a,100)};a()})}var Je={enter:{code:"Enter",keyCode:13},escape:{code:"Escape",keyCode:27},esc:{code:"Escape",keyCode:27},tab:{code:"Tab",keyCode:9},backspace:{code:"Backspace",keyCode:8},delete:{code:"Delete",keyCode:46},arrowup:{code:"ArrowUp",keyCode:38},arrowdown:{code:"ArrowDown",keyCode:40},arrowleft:{code:"ArrowLeft",keyCode:37},arrowright:{code:"ArrowRight",keyCode:39},home:{code:"Home",keyCode:36},end:{code:"End",keyCode:35},pageup:{code:"PageUp",keyCode:33},pagedown:{code:"PageDown",keyCode:34},space:{code:"Space",keyCode:32}};function to(e){let t=e.toLowerCase();if(Je[t])return Je[t];if(e.length===1&&/[a-zA-Z]/.test(e))return{code:`Key${e.toUpperCase()}`,keyCode:e.toUpperCase().charCodeAt(0)};if(e.length===1&&/[0-9]/.test(e))return{code:`Digit${e}`,keyCode:e.charCodeAt(0)};let o=e.match(/^F([1-9]|1[0-2])$/i);if(o){let n=parseInt(o[1],10);return{code:`F${n}`,keyCode:111+n}}return{code:e,keyCode:e.toUpperCase().charCodeAt(0)}}async function oo({key:e,text:t,ctrlKey:o=!1,shiftKey:n=!1,altKey:l=!1}){try{let i=document.activeElement;if(!i)return{success:!1,error:d("interactionTools.noFocusedElement")};let a=Y();if(t){let c=i.tagName==="INPUT"||i.tagName==="TEXTAREA",m=i.isContentEditable;if(c||m){if(i.focus(),m)try{document.execCommand("selectAll",!1,null),document.execCommand("insertText",!1,t)}catch{i.textContent+=t}else lt(i,i.value+t);try{i.dispatchEvent(new InputEvent("input",{bubbles:!0,cancelable:!0,inputType:"insertText",data:t}))}catch{i.dispatchEvent(new Event("input",{bubbles:!0}))}i.dispatchEvent(new Event("change",{bubbles:!0}))}}if(e){let c=to(e),m={key:e,code:c.code,keyCode:c.keyCode,which:c.keyCode,bubbles:!0,cancelable:!0,ctrlKey:o,shiftKey:n,altKey:l};document.activeElement.dispatchEvent(new KeyboardEvent("keydown",m)),document.activeElement.dispatchEvent(new KeyboardEvent("keypress",m)),document.activeElement.dispatchEvent(new KeyboardEvent("keyup",m))}let r=await Z(a,300,2e3),s=r.changed?d(r.urlChanged?"interactionTools.navChangeHint":"interactionTools.domChangeHint",{ms:r.waitedMs}):"";return{success:!0,message:d("interactionTools.keyboardInputSuccess",{hint:s}),...r}}catch(i){return{success:!1,error:i.message}}}function no(e,t){return new Promise((o,n)=>{try{let l=E(e),i=E(t);if(!l){o({success:!1,error:d("interactionTools.sourceElementNotFound",{selector:e})});return}if(!i){o({success:!1,error:d("interactionTools.targetElementNotFound",{selector:t})});return}let a=l.getBoundingClientRect(),r=i.getBoundingClientRect(),s=a.left+a.width/2,c=a.top+a.height/2,m=r.left+r.width/2,p=r.top+r.height/2,u=(g,h,y)=>{let x=new DragEvent(g,{bubbles:!0,cancelable:!0,clientX:h,clientY:y,screenX:h,screenY:y});Object.defineProperty(x,"dataTransfer",{value:{getData:()=>"",setData:()=>{},effectAllowed:"all",dropEffect:"none"}}),document.elementFromPoint(h,y)?.dispatchEvent(x)};u("dragstart",s,c),u("dragenter",m,p),u("dragover",m,p),u("drop",m,p),u("dragend",s,c),o({success:!0,experimental:!0,message:d("interactionTools.dragExperimental",{source:e,target:t})})}catch(l){o({success:!1,error:l.message})}})}function io(e,t,o,n="application/octet-stream"){try{let l=E(e);if(!l)return{success:!1,error:d("interactionTools.fileUploadNotFound",{selector:e})};if(l.type!=="file")return{success:!1,error:d("interactionTools.notFileUploadControl")};let i;try{let s=atob(o),c=new Uint8Array(s.length);for(let m=0;m<s.length;m++)c[m]=s.charCodeAt(m);i=new Blob([c],{type:n})}catch{i=new Blob([o],{type:n})}let a=new File([i],t,{type:n}),r=new DataTransfer;return r.items.add(a),l.files=r.files,l.dispatchEvent(new Event("change",{bubbles:!0})),{success:!0,message:d("interactionTools.fileUploaded",{fileName:t})}}catch(l){return{success:!1,error:l.message}}}async function ao(e,t={}){let{tag:o,action:n="click",waitTime:l=300,timeout:i=2e3}=t;if(!e)return{success:!1,error:d("interactionTools.textRequired")};let a=o?[o]:["button",'[role="button"]','input[type="submit"]','input[type="button"]',"a[href]",'[role="menuitem"]','[role="menuitemradio"]','[role="menuitemcheckbox"]','[role="option"]','[role="tab"]',"[onclick]","summary","li"],r=e.toLowerCase();for(let u of a){let g=[];try{g=W(u)}catch{continue}for(let h of g){let y=(h.textContent||h.value||"").trim();if(!y)continue;let x=y.toLowerCase();if(y===e||x===r||x.includes(r)){let k=window.getComputedStyle(h);if(k.display==="none"||k.visibility==="hidden"||parseFloat(k.opacity)<=0)continue;let H=ge(h),O=Y();if(n==="hover"){h.dispatchEvent(new MouseEvent("mouseover",{bubbles:!0,cancelable:!0,view:window})),h.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!0,cancelable:!0,view:window}));let J=await Z(O,l,i),ee=J.changed?d(J.urlChanged?"interactionTools.navChangeHint":"interactionTools.domChangeHint",{ms:J.waitedMs}):"";return{success:!0,message:d("interactionTools.hoveredByText",{text:e,tag:h.tagName.toLowerCase(),hint:ee}),selector:H,matchedText:y.substring(0,100),...J}}h.click();let K=await Z(O,l,i),Re=K.changed?d(K.urlChanged?"interactionTools.navChangeHint":"interactionTools.domChangeHint",{ms:K.waitedMs}):"";return{success:!0,message:d("interactionTools.clickedByText",{text:e,tag:h.tagName.toLowerCase(),hint:Re}),selector:H,matchedText:y.substring(0,100),...K}}}}let s=!1,c=!1,m=!1;try{let u=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,null);for(;u.nextNode();)if((u.currentNode.textContent||"").toLowerCase().includes(r)){s=!0;let g=u.currentNode.parentElement;if(g){let h=window.getComputedStyle(g);(h.display==="none"||h.visibility==="hidden"||parseFloat(h.opacity)<=0)&&(c=!0),g.closest('button, [role="button"], [role="option"], [role="tab"], li, a[href], [onclick], summary, [tabindex]')||(m=!0)}break}}catch{}let p;return p=d(s?c?"interactionTools.textFoundButHidden":m?"interactionTools.textNotClickable":"interactionTools.textFoundButNotMatched":"interactionTools.textNotFound",{text:e}),{success:!1,error:p+(o?d("interactionTools.tagConstraint",{tag:o}):"")}}function lo(e,t,o=null,n=5e3){return new Promise(async l=>{try{let i=E(e);if(!i){l({success:!1,error:d("interactionTools.triggerNotFound",{selector:e})});return}if(i.tagName==="SELECT"){let c=i.options;for(let m=0;m<c.length;m++){let p=c[m],u=(p.textContent||p.label||"").trim();if(u===t||u.includes(t)){i.value=p.value,i.dispatchEvent(new Event("change",{bubbles:!0})),i.dispatchEvent(new Event("input",{bubbles:!0})),l({success:!0,message:d("interactionTools.selectedOption",{label:u}),triggerTag:"SELECT"});return}}l({success:!1,error:d("interactionTools.selectOptionNotFound",{option:t}),availableOptions:Array.from(c).map(m=>m.textContent?.trim()).filter(Boolean)});return}i.click(),await new Promise(c=>setTimeout(c,300));let a=Date.now(),r=o?E(o):document;if(!r){l({success:!1,error:d("interactionTools.optionContainerNotFound",{selector:o})});return}let s=null;for(;Date.now()-a<n;){let c=W('li, [role="option"], [role="menuitem"], .option, .dropdown-item, .select-item, [data-value], div',r);for(let m of c){let p=(m.textContent||"").trim();if(!(p.length<2)&&(p===t||p.includes(t)||p.replace(/\s+/g,"")===t.replace(/\s+/g,""))){s=m;break}}if(s)break;await new Promise(m=>setTimeout(m,100))}if(!s){l({success:!1,error:d("interactionTools.optionMatchTimeout",{timeout:n,option:t})});return}s.click(),l({success:!0,message:d("interactionTools.selectedOption",{label:s.textContent?.trim()}),triggerTag:i.tagName})}catch(i){l({success:!1,error:i.message})}})}function ro({action:e,storage:t,key:o,value:n}){try{let l=t==="session"?sessionStorage:localStorage;switch(e){case"get":if(!o){let a={};for(let r=0;r<l.length;r++){let s=l.key(r);a[s]=l.getItem(s)}return{success:!0,content:JSON.stringify(a),data:a}}let i=l.getItem(o);return{success:!0,content:JSON.stringify({key:o,value:i}),value:i};case"set":return!o||n===void 0?{success:!1,error:d("interactionTools.setRequiresKeyValue")}:(l.setItem(o,n),{success:!0,message:d("interactionTools.keySet",{key:o})});case"remove":return o?(l.removeItem(o),{success:!0,message:d("interactionTools.keyRemoved",{key:o})}):{success:!1,error:d("interactionTools.removeRequiresKey")};case"clear":return l.clear(),{success:!0,message:d("interactionTools.storageCleared")};default:return{success:!1,error:d("interactionTools.unknownAction",{action:e})}}}catch(l){return{success:!1,error:l.message}}}C("zh",{advancedTools:{close:"\u5173\u95ED",qrcodeLibNotLoaded:"QRCode \u5E93\u672A\u52A0\u8F7D\uFF0C\u5DF2\u4F7F\u7528 SVG \u964D\u7EA7\u65B9\u6848\u751F\u6210",qrcodeLibAndFallbackUnavailable:"\u4E8C\u7EF4\u7801\u5E93\u672A\u52A0\u8F7D\u4E14\u964D\u7EA7\u65B9\u6848\u4E0D\u53EF\u7528",targetElementNotFound:"\u672A\u627E\u5230\u76EE\u6807\u5143\u7D20",screenshotFailed:"\u622A\u56FE\u5931\u8D25",cssParamRequired:"css \u53C2\u6570\u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32",unsupportedInjectMode:"\u4E0D\u652F\u6301\u7684 injectMode: {mode}\uFF0C\u652F\u6301 'style' \u6216 'inline'"}}),C("en",{advancedTools:{close:"Close",qrcodeLibNotLoaded:"QRCode library not loaded, used SVG fallback",qrcodeLibAndFallbackUnavailable:"QRCode library not loaded and fallback unavailable",targetElementNotFound:"Target element not found",screenshotFailed:"Screenshot failed",cssParamRequired:"css parameter must be a non-empty string",unsupportedInjectMode:"Unsupported injectMode: {mode}; supported: 'style' or 'inline'"}});function so(e,t){try{let o=document.createElement("canvas");o.width=t,o.height=t;let n=o.getContext("2d");n.fillStyle="#FFFFFF",n.fillRect(0,0,t,t);let l=[];for(let p=0;p<e.length;p++)l.push(e.charCodeAt(p));let i=Math.max(2,Math.floor(t/41)),a=Math.floor(t/i),r=Math.floor((t-a*i)/2);n.fillStyle="#000000";let s=(p,u)=>{let g=7*i;n.fillRect(p,u,g,g),n.fillStyle="#FFFFFF",n.fillRect(p+i,u+i,g-2*i,g-2*i),n.fillStyle="#000000",n.fillRect(p+2*i,u+2*i,g-4*i,g-4*i),n.fillStyle="#000000"};s(r,r),s(r+(a-7)*i,r),s(r,r+(a-7)*i);let c=0;for(let p=0;p<e.length;p++)c=(c<<5)-c+e.charCodeAt(p),c|=0;let m=p=>{let u=p+1831565813;return u=Math.imul(u^u>>>15,u|1),u^=u+Math.imul(u^u>>>7,u|61),((u^u>>>14)>>>0)/4294967296};for(let p=0;p<a;p++)for(let u=0;u<a;u++){let g=p<8&&u<8,h=p<8&&u>=a-8,y=p>=a-8&&u<8;g||h||y||m(c+p*a+u)>.5&&n.fillRect(r+u*i,r+p*i,i,i)}return o.toDataURL("image/png")}catch{return null}}function co(e="",t=200,o="M",n=!0){return new Promise(l=>{try{let i=e||window.location.href,a=document.createElement("div");a.id="ai-helper-qrcode",a.style.cssText=`
90
+ `,document.head.appendChild(o);let n=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,null,!1),i=[],a;for(;a=n.nextNode();)a.nodeValue.toLowerCase().includes(e.toLowerCase())&&i.push(a);let l=[];return i.forEach(r=>{let s=r.parentNode;if(!s||!s.replaceChild||!s.insertBefore)return;let d=r.nodeValue,u=d.toLowerCase(),p=d.toLowerCase(),m=u.indexOf(p);if(m!==-1){let g=document.createElement("span");g.className="ai-helper-highlight",g.textContent=d.substring(m,m+d.length);let h=document.createTextNode(d.substring(0,m)),b=document.createTextNode(d.substring(m+d.length));s.replaceChild(b,r),s.insertBefore(g,b),s.insertBefore(h,g),l.push(g)}}),l.length>0&&l[0].scrollIntoView({behavior:"smooth",block:"center"}),{success:!0,message:c("pageTools.highlightedCount",{count:l.length}),count:l.length}}catch(o){return{success:!1,error:o.message}}}A("zh",{interactionTools:{selectorRequired:"\u9009\u62E9\u5668\u4E0D\u80FD\u4E3A\u7A7A",elementNotFoundBySelector:"\u672A\u627E\u5230\u5339\u914D\u9009\u62E9\u5668\u7684\u5143\u7D20: {selector}",navChangeHint:"\uFF08\u68C0\u6D4B\u5230\u5BFC\u822A\u53D8\u5316\uFF0C\u5DF2\u7B49\u5F85 {ms}ms\uFF09",domChangeHint:"\uFF08\u68C0\u6D4B\u5230DOM\u53D8\u5316\uFF0C\u5DF2\u7B49\u5F85 {ms}ms\uFF09",clickedElement:"\u5DF2\u70B9\u51FB\u5143\u7D20: {selector}{hint}",elementNotFound:"\u672A\u627E\u5230\u5143\u7D20",optionNotFound:"\u672A\u627E\u5230\u5339\u914D\u7684\u9009\u9879",radioButtonNotFound:"\u672A\u627E\u5230\u5339\u914D\u7684\u5355\u9009\u6309\u94AE",formFillComplete:"\u8868\u5355\u586B\u5145\u5B8C\u6210\uFF0C\u6210\u529F {success}/{total} \u4E2A\u5B57\u6BB5",elementNotFoundShort:"\u672A\u627E\u5230\u5143\u7D20: {selector}",invalidScrollTarget:"\u65E0\u6548\u7684\u6EDA\u52A8\u76EE\u6807\u6216\u7F3A\u5C11\u9009\u62E9\u5668",scrollComplete:"\u6EDA\u52A8\u5B8C\u6210",elementAppeared:"\u5143\u7D20 {selector} \u5DF2\u51FA\u73B0",elementDisappeared:"\u5143\u7D20 {selector} \u5DF2\u6D88\u5931",elementVisible:"\u5143\u7D20 {selector} \u5DF2\u53EF\u89C1",elementHidden:"\u5143\u7D20 {selector} \u5DF2\u9690\u85CF",waitTimeout:"\u7B49\u5F85\u8D85\u65F6\uFF08{timeout}ms\uFF09\uFF0C\u5143\u7D20 {selector} \u672A\u8FBE\u5230 {state} \u72B6\u6001",noFocusedElement:"\u6CA1\u6709\u805A\u7126\u7684\u5143\u7D20",keyboardInputSuccess:"\u952E\u76D8\u8F93\u5165\u6210\u529F{hint}",sourceElementNotFound:"\u672A\u627E\u5230\u6E90\u5143\u7D20: {selector}",targetElementNotFound:"\u672A\u627E\u5230\u76EE\u6807\u5143\u7D20: {selector}",dragExperimental:"\u26A0\uFE0F\u62D6\u62FD\u4E3A\u5B9E\u9A8C\u6027\uFF0C\u53EF\u80FD\u672A\u751F\u6548\uFF08{source} \u2192 {target}\uFF09\u3002\u53D7\u6D4F\u89C8\u5668 dataTransfer \u9650\u5236\uFF0C\u4F9D\u8D56\u62D6\u62FD\u6570\u636E\u7684\u7F51\u9875\u591A\u6570\u65E0\u6CD5\u89E6\u53D1\uFF0C\u5EFA\u8BAE\u9A8C\u8BC1\u7ED3\u679C\u6216\u6539\u7528\u70B9\u51FB\u5750\u6807\u5B9E\u73B0",fileUploadNotFound:"\u672A\u627E\u5230\u6587\u4EF6\u4E0A\u4F20\u63A7\u4EF6: {selector}",notFileUploadControl:"\u9009\u62E9\u7684\u5143\u7D20\u4E0D\u662F\u6587\u4EF6\u4E0A\u4F20\u63A7\u4EF6",fileUploaded:"\u5DF2\u4E0A\u4F20\u6587\u4EF6: {fileName}",textRequired:"text \u4E0D\u80FD\u4E3A\u7A7A",hoveredByText:'\u5DF2\u60AC\u505C\u6587\u672C"{text}"\u5BF9\u5E94\u7684{tag}\u5143\u7D20{hint}',clickedByText:'\u5DF2\u70B9\u51FB\u6587\u672C"{text}"\u5BF9\u5E94\u7684{tag}\u5143\u7D20{hint}',textNotFound:'\u9875\u9762\u4E2D\u4E0D\u5B58\u5728\u6587\u672C"{text}"\uFF0C\u53EF\u80FD\u9700\u8981\u5148\u64CD\u4F5C\uFF08\u5982\u6253\u5F00\u4E0B\u62C9\u9762\u677F\uFF09\u6216\u6587\u672C\u6709\u8BEF',textFoundButHidden:'\u627E\u5230\u6587\u672C"{text}"\u4F46\u5143\u7D20\u4E0D\u53EF\u89C1\uFF0C\u53EF\u80FD\u9700\u8981\u5148\u6253\u5F00\u4E0B\u62C9\u9762\u677F/\u6EDA\u52A8\u5230\u53EF\u89C1\u533A\u57DF',textNotClickable:'\u627E\u5230\u6587\u672C"{text}"\u4F46\u4E0D\u5728\u53EF\u70B9\u51FB\u5143\u7D20\u4E2D\uFF0C\u8BF7\u7528 query_elements \u67E5\u770B\u5B9E\u9645\u7ED3\u6784\u6216\u7528 selector \u5B9A\u4F4D',textFoundButNotMatched:'\u627E\u5230\u6587\u672C"{text}"\u5728\u53EF\u70B9\u51FB\u5143\u7D20\u4E2D\u4F46\u672A\u5339\u914D\uFF0C\u53EF\u80FD\u6587\u672C\u88AB\u5206\u5272\u6216\u5927\u5C0F\u5199\u4E0D\u4E00\u81F4',tagConstraint:"\uFF08\u9650\u5B9A\u6807\u7B7E: {tag}\uFF09",triggerNotFound:"\u672A\u627E\u5230\u89E6\u53D1\u5668: {selector}",selectedOption:"\u5DF2\u9009\u62E9: {label}",selectOptionNotFound:'\u5728 <select> \u4E2D\u672A\u627E\u5230\u5339\u914D\u7684\u9009\u9879: "{option}"',optionContainerNotFound:"\u672A\u627E\u5230\u9009\u9879\u5BB9\u5668: {selector}",optionMatchTimeout:'\u5728 {timeout}ms \u5185\u672A\u627E\u5230\u5339\u914D\u9009\u9879: "{option}"',setRequiresKeyValue:"set\u64CD\u4F5C\u9700\u8981\u63D0\u4F9Bkey\u548Cvalue",keySet:"\u5DF2\u8BBE\u7F6E {key}",removeRequiresKey:"remove\u64CD\u4F5C\u9700\u8981\u63D0\u4F9Bkey",keyRemoved:"\u5DF2\u5220\u9664 {key}",storageCleared:"\u5DF2\u6E05\u7A7A\u5B58\u50A8",unknownAction:"\u672A\u77E5\u64CD\u4F5C: {action}"}}),A("en",{interactionTools:{selectorRequired:"Selector cannot be empty",elementNotFoundBySelector:"No element found matching selector: {selector}",navChangeHint:" (navigation change detected, waited {ms}ms)",domChangeHint:" (DOM change detected, waited {ms}ms)",clickedElement:"Clicked element: {selector}{hint}",elementNotFound:"Element not found",optionNotFound:"No matching option found",radioButtonNotFound:"No matching radio button found",formFillComplete:"Form fill complete: {success}/{total} fields succeeded",elementNotFoundShort:"Element not found: {selector}",invalidScrollTarget:"Invalid scroll target or missing selector",scrollComplete:"Scroll complete",elementAppeared:"Element {selector} appeared",elementDisappeared:"Element {selector} disappeared",elementVisible:"Element {selector} is visible",elementHidden:"Element {selector} is hidden",waitTimeout:"Timed out ({timeout}ms); element {selector} did not reach {state} state",noFocusedElement:"No focused element",keyboardInputSuccess:"Keyboard input successful{hint}",sourceElementNotFound:"Source element not found: {selector}",targetElementNotFound:"Target element not found: {selector}",dragExperimental:"\u26A0\uFE0F Drag is experimental and may not have worked ({source} \u2192 {target}). Due to browser dataTransfer limitations, most pages relying on drag data cannot be triggered; please verify the result or use click coordinates instead",fileUploadNotFound:"File upload control not found: {selector}",notFileUploadControl:"The selected element is not a file upload control",fileUploaded:"File uploaded: {fileName}",textRequired:"text cannot be empty",hoveredByText:'Hovered over the {tag} element matching "{text}"{hint}',clickedByText:'Clicked the {tag} element matching "{text}"{hint}',textNotFound:'Text "{text}" does not exist on the page; you may need to perform an action first (e.g. open a dropdown) or the text may be incorrect',textFoundButHidden:'Found text "{text}" but the element is not visible; you may need to open a dropdown panel or scroll to make it visible',textNotClickable:'Found text "{text}" but it is not in a clickable element; use query_elements to inspect the structure or use a selector to locate it',textFoundButNotMatched:'Found text "{text}" in a clickable element but it did not match; the text may be split or have different casing',tagConstraint:" (tag constraint: {tag})",triggerNotFound:"Trigger not found: {selector}",selectedOption:"Selected: {label}",selectOptionNotFound:'No matching option found in <select>: "{option}"',optionContainerNotFound:"Option container not found: {selector}",optionMatchTimeout:'No matching option found within {timeout}ms: "{option}"',setRequiresKeyValue:"Set operation requires both key and value",keySet:"Set {key}",removeRequiresKey:"Remove operation requires a key",keyRemoved:"Removed {key}",storageCleared:"Storage cleared",unknownAction:"Unknown action: {action}"}});async function Po(e,t=300,o=2e3){try{if(!e)return{success:!1,error:c("interactionTools.selectorRequired")};let n=e.trim();for(let[s,d]of[[/^"([\s\S]*)"$/,"$1"],[/^'([\s\S]*)'$/,"$1"],[/^`([\s\S]*)`$/,"$1"],[/^"([\s\S]*)"$/,"$1"],[/^'([\s\S]*)'$/,"$1"],[/^「([\s\S]*)」$/,"$1"]])n=n.replace(s,d);let i=R(n);if(!i)return{success:!1,error:c("interactionTools.elementNotFoundBySelector",{selector:e})};let a=X();i.click();let l=await Z(a,t,o),r=l.changed?c(l.urlChanged?"interactionTools.navChangeHint":"interactionTools.domChangeHint",{ms:l.waitedMs}):"";return{success:!0,message:c("interactionTools.clickedElement",{selector:e,hint:r}),...l}}catch(n){return{success:!1,error:n.message}}}function Ro(e,t=500){try{let o=[];e.forEach(i=>{let{selector:a,ref:l,value:r,fieldType:s="text"}=i,d=a||`ref=${l}`,u=null;if(l==null?a&&(u=R(a)):u=io(l),!u){o.push({selector:d,success:!1,error:c("interactionTools.elementNotFound")});return}try{if(s==="text"){if(Tt(u)){let p=Pe(u,r);o.push({selector:d,success:p,value:r});return}Ie(u,r),u.dispatchEvent(new Event("input",{bubbles:!0})),u.dispatchEvent(new Event("change",{bubbles:!0}))}else if(s==="contenteditable"){let p=Pe(u,r);o.push({selector:d,success:p,value:r});return}else if(s==="select"){let p=u.querySelector(`option[value="${r}"]`)||Array.from(u.options).find(m=>m.textContent===r);if(p)u.value=p.value,u.dispatchEvent(new Event("change",{bubbles:!0}));else{o.push({selector:d,success:!1,error:c("interactionTools.optionNotFound")});return}}else if(s==="checkbox")u.checked=r==="true"||r===!0,u.dispatchEvent(new Event("change",{bubbles:!0}));else if(s==="radio"){let p=a?R(`${a}[value="${r}"]`):null;if(!p&&!a&&u.tagName==="INPUT"&&u.type==="radio")if(u.value===String(r))p=u;else{let m=u.getAttribute("name");if(m){let g=u.getRootNode();p=Array.from(g.querySelectorAll('input[type="radio"]')).find(h=>h.name===m&&h.value===String(r))||null}}if(p)p.checked=!0,p.dispatchEvent(new Event("change",{bubbles:!0}));else{o.push({selector:d,success:!1,error:c("interactionTools.radioButtonNotFound")});return}}o.push({selector:d,success:!0,value:r})}catch(p){o.push({selector:d,success:!1,error:p.message})}});let n=o.filter(i=>i.success).length;return{success:!0,message:c("interactionTools.formFillComplete",{success:n,total:e.length}),details:o}}catch(o){return{success:!1,error:o.message}}}function Mo(e){try{let{target:t="selector",selector:o,x:n=0,y:i=0,behavior:a="smooth",align:l="center"}=e,r=!1;if(t==="top")r=(window.scrollY||0)<=0&&(document.documentElement.scrollTop||0)<=0,window.scrollTo({top:0,left:0,behavior:a});else if(t==="bottom"){let d=document.scrollingElement||document.documentElement;r=(window.scrollY||0)+(window.innerHeight||0)>=d.scrollHeight-1,window.scrollTo({top:document.body.scrollHeight,left:0,behavior:a})}else if(t==="coordinates")r=Math.abs((window.scrollY||0)-i)<1&&Math.abs((window.scrollX||0)-n)<1,window.scrollTo({top:i,left:n,behavior:a});else if(t==="selector"&&o){let d=R(o);if(!d)return{success:!1,error:c("interactionTools.elementNotFoundShort",{selector:o})};d.scrollIntoView({behavior:a,block:l})}else return{success:!1,error:c("interactionTools.invalidScrollTarget")};let s={success:!0,message:c("interactionTools.scrollComplete")};return r&&(s.moved=!1),s}catch(t){return{success:!1,error:t.message}}}function mt(e){if(!e)return!1;if(e.offsetParent===null&&e.tagName!=="BODY"){let a=window.getComputedStyle(e);if(a.display==="none"||a.visibility==="hidden"||a.position!=="fixed")return!1}let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||parseFloat(t.opacity)<=0)return!1;let o=e.getBoundingClientRect();if(o.width<=0||o.height<=0)return!1;let n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth;return o.top<n&&o.bottom>0&&o.left<i&&o.right>0}function Lo(e,t="appeared",o=1e4){return new Promise((n,i)=>{let a=Date.now(),l=()=>{let r=R(e);if(t==="appeared"&&r){n({success:!0,message:c("interactionTools.elementAppeared",{selector:e}),element:e});return}if(t==="disappeared"&&!r){n({success:!0,message:c("interactionTools.elementDisappeared",{selector:e})});return}if(t==="visible"&&r&&mt(r)){n({success:!0,message:c("interactionTools.elementVisible",{selector:e}),element:e});return}if(t==="hidden"&&(!r||!mt(r))){n({success:!0,message:c("interactionTools.elementHidden",{selector:e})});return}if(Date.now()-a>o){n({success:!1,error:c("interactionTools.waitTimeout",{timeout:o,selector:e,state:t})});return}setTimeout(l,100)};l()})}var gt={enter:{code:"Enter",keyCode:13},escape:{code:"Escape",keyCode:27},esc:{code:"Escape",keyCode:27},tab:{code:"Tab",keyCode:9},backspace:{code:"Backspace",keyCode:8},delete:{code:"Delete",keyCode:46},arrowup:{code:"ArrowUp",keyCode:38},arrowdown:{code:"ArrowDown",keyCode:40},arrowleft:{code:"ArrowLeft",keyCode:37},arrowright:{code:"ArrowRight",keyCode:39},home:{code:"Home",keyCode:36},end:{code:"End",keyCode:35},pageup:{code:"PageUp",keyCode:33},pagedown:{code:"PageDown",keyCode:34},space:{code:"Space",keyCode:32}};function No(e){let t=e.toLowerCase();if(gt[t])return gt[t];if(e.length===1&&/[a-zA-Z]/.test(e))return{code:`Key${e.toUpperCase()}`,keyCode:e.toUpperCase().charCodeAt(0)};if(e.length===1&&/[0-9]/.test(e))return{code:`Digit${e}`,keyCode:e.charCodeAt(0)};let o=e.match(/^F([1-9]|1[0-2])$/i);if(o){let n=parseInt(o[1],10);return{code:`F${n}`,keyCode:111+n}}return{code:e,keyCode:e.toUpperCase().charCodeAt(0)}}async function Do({key:e,text:t,ctrlKey:o=!1,shiftKey:n=!1,altKey:i=!1}){try{let a=document.activeElement;if(!a)return{success:!1,error:c("interactionTools.noFocusedElement")};let l=X();if(t){let d=a.tagName==="INPUT"||a.tagName==="TEXTAREA",u=a.isContentEditable;if(d||u){if(a.focus(),u)try{document.execCommand("selectAll",!1,null),document.execCommand("insertText",!1,t)}catch{a.textContent+=t}else Ie(a,a.value+t);try{a.dispatchEvent(new InputEvent("input",{bubbles:!0,cancelable:!0,inputType:"insertText",data:t}))}catch{a.dispatchEvent(new Event("input",{bubbles:!0}))}a.dispatchEvent(new Event("change",{bubbles:!0}))}}if(e){let d=No(e),u={key:e,code:d.code,keyCode:d.keyCode,which:d.keyCode,bubbles:!0,cancelable:!0,ctrlKey:o,shiftKey:n,altKey:i};document.activeElement.dispatchEvent(new KeyboardEvent("keydown",u)),document.activeElement.dispatchEvent(new KeyboardEvent("keypress",u)),document.activeElement.dispatchEvent(new KeyboardEvent("keyup",u))}let r=await Z(l,300,2e3),s=r.changed?c(r.urlChanged?"interactionTools.navChangeHint":"interactionTools.domChangeHint",{ms:r.waitedMs}):"";return{success:!0,message:c("interactionTools.keyboardInputSuccess",{hint:s}),...r}}catch(a){return{success:!1,error:a.message}}}function Fo(e,t){return new Promise((o,n)=>{try{let i=R(e),a=R(t);if(!i){o({success:!1,error:c("interactionTools.sourceElementNotFound",{selector:e})});return}if(!a){o({success:!1,error:c("interactionTools.targetElementNotFound",{selector:t})});return}let l=i.getBoundingClientRect(),r=a.getBoundingClientRect(),s=l.left+l.width/2,d=l.top+l.height/2,u=r.left+r.width/2,p=r.top+r.height/2,m=(g,h,b)=>{let x=new DragEvent(g,{bubbles:!0,cancelable:!0,clientX:h,clientY:b,screenX:h,screenY:b});Object.defineProperty(x,"dataTransfer",{value:{getData:()=>"",setData:()=>{},effectAllowed:"all",dropEffect:"none"}}),document.elementFromPoint(h,b)?.dispatchEvent(x)};m("dragstart",s,d),m("dragenter",u,p),m("dragover",u,p),m("drop",u,p),m("dragend",s,d),o({success:!0,experimental:!0,message:c("interactionTools.dragExperimental",{source:e,target:t})})}catch(i){o({success:!1,error:i.message})}})}function Ho(e,t,o,n="application/octet-stream"){try{let i=R(e);if(!i)return{success:!1,error:c("interactionTools.fileUploadNotFound",{selector:e})};if(i.type!=="file")return{success:!1,error:c("interactionTools.notFileUploadControl")};let a;try{let s=atob(o),d=new Uint8Array(s.length);for(let u=0;u<s.length;u++)d[u]=s.charCodeAt(u);a=new Blob([d],{type:n})}catch{a=new Blob([o],{type:n})}let l=new File([a],t,{type:n}),r=new DataTransfer;return r.items.add(l),i.files=r.files,i.dispatchEvent(new Event("change",{bubbles:!0})),{success:!0,message:c("interactionTools.fileUploaded",{fileName:t})}}catch(i){return{success:!1,error:i.message}}}async function Bo(e,t={}){let{tag:o,action:n="click",waitTime:i=300,timeout:a=2e3}=t;if(!e)return{success:!1,error:c("interactionTools.textRequired")};let l=o?[o]:["button",'[role="button"]','input[type="submit"]','input[type="button"]',"a[href]",'[role="menuitem"]','[role="menuitemradio"]','[role="menuitemcheckbox"]','[role="option"]','[role="tab"]',"[onclick]","summary","li"],r=e.toLowerCase();for(let m of l){let g=[];try{g=ee(m)}catch{continue}for(let h of g){let b=(h.textContent||h.value||"").trim();if(!b)continue;let x=b.toLowerCase();if(b===e||x===r||x.includes(r)){let T=window.getComputedStyle(h);if(T.display==="none"||T.visibility==="hidden"||parseFloat(T.opacity)<=0)continue;let v=be(h),I=X();if(n==="hover"){h.dispatchEvent(new MouseEvent("mouseover",{bubbles:!0,cancelable:!0,view:window})),h.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!0,cancelable:!0,view:window}));let G=await Z(I,i,a),C=G.changed?c(G.urlChanged?"interactionTools.navChangeHint":"interactionTools.domChangeHint",{ms:G.waitedMs}):"";return{success:!0,message:c("interactionTools.hoveredByText",{text:e,tag:h.tagName.toLowerCase(),hint:C}),selector:v,matchedText:b.substring(0,100),...G}}h.click();let B=await Z(I,i,a),ne=B.changed?c(B.urlChanged?"interactionTools.navChangeHint":"interactionTools.domChangeHint",{ms:B.waitedMs}):"";return{success:!0,message:c("interactionTools.clickedByText",{text:e,tag:h.tagName.toLowerCase(),hint:ne}),selector:v,matchedText:b.substring(0,100),...B}}}}let s=!1,d=!1,u=!1;try{let m=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT,null);for(;m.nextNode();)if((m.currentNode.textContent||"").toLowerCase().includes(r)){s=!0;let g=m.currentNode.parentElement;if(g){let h=window.getComputedStyle(g);(h.display==="none"||h.visibility==="hidden"||parseFloat(h.opacity)<=0)&&(d=!0),g.closest('button, [role="button"], [role="option"], [role="tab"], li, a[href], [onclick], summary, [tabindex]')||(u=!0)}break}}catch{}let p;return p=c(s?d?"interactionTools.textFoundButHidden":u?"interactionTools.textNotClickable":"interactionTools.textFoundButNotMatched":"interactionTools.textNotFound",{text:e}),{success:!1,error:p+(o?c("interactionTools.tagConstraint",{tag:o}):"")}}function _o(e,t,o=null,n=5e3){return new Promise(async i=>{try{let a=R(e);if(!a){i({success:!1,error:c("interactionTools.triggerNotFound",{selector:e})});return}if(a.tagName==="SELECT"){let d=a.options;for(let u=0;u<d.length;u++){let p=d[u],m=(p.textContent||p.label||"").trim();if(m===t||m.includes(t)){a.value=p.value,a.dispatchEvent(new Event("change",{bubbles:!0})),a.dispatchEvent(new Event("input",{bubbles:!0})),i({success:!0,message:c("interactionTools.selectedOption",{label:m}),triggerTag:"SELECT"});return}}i({success:!1,error:c("interactionTools.selectOptionNotFound",{option:t}),availableOptions:Array.from(d).map(u=>u.textContent?.trim()).filter(Boolean)});return}a.click(),await new Promise(d=>setTimeout(d,300));let l=Date.now(),r=o?R(o):document;if(!r){i({success:!1,error:c("interactionTools.optionContainerNotFound",{selector:o})});return}let s=null;for(;Date.now()-l<n;){let d=ee('li, [role="option"], [role="menuitem"], .option, .dropdown-item, .select-item, [data-value], div',r);for(let u of d){let p=(u.textContent||"").trim();if(!(p.length<2)&&(p===t||p.includes(t)||p.replace(/\s+/g,"")===t.replace(/\s+/g,""))){s=u;break}}if(s)break;await new Promise(u=>setTimeout(u,100))}if(!s){i({success:!1,error:c("interactionTools.optionMatchTimeout",{timeout:n,option:t})});return}s.click(),i({success:!0,message:c("interactionTools.selectedOption",{label:s.textContent?.trim()}),triggerTag:a.tagName})}catch(a){i({success:!1,error:a.message})}})}function Oo({action:e,storage:t,key:o,value:n}){try{let i=t==="session"?sessionStorage:localStorage;switch(e){case"get":if(!o){let l={};for(let r=0;r<i.length;r++){let s=i.key(r);l[s]=i.getItem(s)}return{success:!0,content:JSON.stringify(l),data:l}}let a=i.getItem(o);return{success:!0,content:JSON.stringify({key:o,value:a}),value:a};case"set":return!o||n===void 0?{success:!1,error:c("interactionTools.setRequiresKeyValue")}:(i.setItem(o,n),{success:!0,message:c("interactionTools.keySet",{key:o})});case"remove":return o?(i.removeItem(o),{success:!0,message:c("interactionTools.keyRemoved",{key:o})}):{success:!1,error:c("interactionTools.removeRequiresKey")};case"clear":return i.clear(),{success:!0,message:c("interactionTools.storageCleared")};default:return{success:!1,error:c("interactionTools.unknownAction",{action:e})}}}catch(i){return{success:!1,error:i.message}}}A("zh",{advancedTools:{close:"\u5173\u95ED",qrcodeLibNotLoaded:"QRCode \u5E93\u672A\u52A0\u8F7D\uFF0C\u5DF2\u4F7F\u7528 SVG \u964D\u7EA7\u65B9\u6848\u751F\u6210",qrcodeLibAndFallbackUnavailable:"\u4E8C\u7EF4\u7801\u5E93\u672A\u52A0\u8F7D\u4E14\u964D\u7EA7\u65B9\u6848\u4E0D\u53EF\u7528",targetElementNotFound:"\u672A\u627E\u5230\u76EE\u6807\u5143\u7D20",screenshotFailed:"\u622A\u56FE\u5931\u8D25",cssParamRequired:"css \u53C2\u6570\u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32",unsupportedInjectMode:"\u4E0D\u652F\u6301\u7684 injectMode: {mode}\uFF0C\u652F\u6301 'style' \u6216 'inline'"}}),A("en",{advancedTools:{close:"Close",qrcodeLibNotLoaded:"QRCode library not loaded, used SVG fallback",qrcodeLibAndFallbackUnavailable:"QRCode library not loaded and fallback unavailable",targetElementNotFound:"Target element not found",screenshotFailed:"Screenshot failed",cssParamRequired:"css parameter must be a non-empty string",unsupportedInjectMode:"Unsupported injectMode: {mode}; supported: 'style' or 'inline'"}});function qo(e,t){try{let o=document.createElement("canvas");o.width=t,o.height=t;let n=o.getContext("2d");n.fillStyle="#FFFFFF",n.fillRect(0,0,t,t);let i=[];for(let p=0;p<e.length;p++)i.push(e.charCodeAt(p));let a=Math.max(2,Math.floor(t/41)),l=Math.floor(t/a),r=Math.floor((t-l*a)/2);n.fillStyle="#000000";let s=(p,m)=>{let g=7*a;n.fillRect(p,m,g,g),n.fillStyle="#FFFFFF",n.fillRect(p+a,m+a,g-2*a,g-2*a),n.fillStyle="#000000",n.fillRect(p+2*a,m+2*a,g-4*a,g-4*a),n.fillStyle="#000000"};s(r,r),s(r+(l-7)*a,r),s(r,r+(l-7)*a);let d=0;for(let p=0;p<e.length;p++)d=(d<<5)-d+e.charCodeAt(p),d|=0;let u=p=>{let m=p+1831565813;return m=Math.imul(m^m>>>15,m|1),m^=m+Math.imul(m^m>>>7,m|61),((m^m>>>14)>>>0)/4294967296};for(let p=0;p<l;p++)for(let m=0;m<l;m++){let g=p<8&&m<8,h=p<8&&m>=l-8,b=p>=l-8&&m<8;g||h||b||u(d+p*l+m)>.5&&n.fillRect(r+m*a,r+p*a,a,a)}return o.toDataURL("image/png")}catch{return null}}function Uo(e="",t=200,o="M",n=!0){return new Promise(i=>{try{let a=e||window.location.href,l=document.createElement("div");l.id="ai-helper-qrcode",l.style.cssText=`
87
91
  position: fixed;
88
92
  top: 50%;
89
93
  left: 50%;
@@ -94,7 +98,7 @@ ${i.slice(1).map(a=>`| ${a.join(" | ")} |`).join(`
94
98
  border-radius: 12px;
95
99
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
96
100
  text-align: center;
97
- `;let r=document.createElement("canvas");r.width=t,r.height=t,a.appendChild(r);let s=document.createElement("p");s.textContent=i.length>50?i.substring(0,50)+"...":i,s.style.cssText="margin-top: 12px; font-size: 12px; color: #666; word-break: break-all; max-width: 200px;",a.appendChild(s);let c=document.createElement("button");if(c.textContent=d("advancedTools.close"),c.style.cssText=`
101
+ `;let r=document.createElement("canvas");r.width=t,r.height=t,l.appendChild(r);let s=document.createElement("p");s.textContent=a.length>50?a.substring(0,50)+"...":a,s.style.cssText="margin-top: 12px; font-size: 12px; color: #666; word-break: break-all; max-width: 200px;",l.appendChild(s);let d=document.createElement("button");if(d.textContent=c("advancedTools.close"),d.style.cssText=`
98
102
  margin-top: 12px;
99
103
  padding: 6px 20px;
100
104
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
@@ -102,7 +106,7 @@ ${i.slice(1).map(a=>`| ${a.join(" | ")} |`).join(`
102
106
  border: none;
103
107
  border-radius: 20px;
104
108
  cursor: pointer;
105
- `,c.onclick=()=>{document.body.removeChild(a)},a.appendChild(c),typeof QRCode>"u"){let m=so(i,t);if(m){let p=document.createElement("img");p.src=m,p.width=t,p.height=t,r.replaceWith(p),n&&document.body.appendChild(a),l({success:!0,content:i,size:t,dataUrl:m,shown:n,fallback:!0,warning:d("advancedTools.qrcodeLibNotLoaded")})}else l({success:!1,error:d("advancedTools.qrcodeLibAndFallbackUnavailable")});return}QRCode.toCanvas(r,i,{width:t,margin:2,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:o.toLowerCase()},m=>{if(m)l({success:!1,error:m.message});else{n&&document.body.appendChild(a);let p=r.toDataURL("image/png");l({success:!0,content:i,size:t,dataUrl:p,shown:n})}})}catch(i){l({success:!1,error:i.message})}})}function uo(e,t=null,o="style"){try{if(!e||typeof e!="string")return{success:!1,error:d("advancedTools.cssParamRequired")};if(o!=="style"&&o!=="inline")return{success:!1,error:d("advancedTools.unsupportedInjectMode",{mode:o})};if(o==="style"){if(t){let n=document.querySelectorAll(t),l=`ai-helper-scoped-style-${Date.now()}`,i="",a=e.split("}");for(let s of a){let c=s.trim();if(!c)continue;let m=c.indexOf("{");if(m===-1)continue;let p=c.substring(0,m).trim(),u=c.substring(m+1).trim();i+=`#${l} ${p} { ${u} } `}n.forEach(s=>{s.setAttribute("id",l)});let r=document.createElement("style");return r.setAttribute("data-ai-helper","scoped"),r.textContent=i,document.head.appendChild(r),{success:!0,injectMode:"style",scoped:!0,selector:t,hitCount:n.length}}{let n=document.createElement("style");return n.setAttribute("data-ai-helper","global"),n.textContent=e,document.head.appendChild(n),{success:!0,injectMode:"style",scoped:!1,hitCount:0}}}if(o==="inline"){let n=t?document.querySelectorAll(t):document.querySelectorAll("*"),l=0,i={};return e.split(";").forEach(a=>{let r=a.indexOf(":");if(r===-1)return;let s=a.substring(0,r).trim(),c=a.substring(r+1).trim();s&&c&&(i[s]=c)}),n.forEach(a=>{if(a.nodeType===1){for(let[r,s]of Object.entries(i))try{a.style.setProperty(r,s)}catch{}l++}}),{success:!0,injectMode:"inline",selector:t||"*",hitCount:l}}}catch(n){return{success:!1,error:n.message}}}function po(){if(document.getElementById("aih-selection-toolbar-styles"))return;let e=document.createElement("style");e.id="aih-selection-toolbar-styles",e.textContent=`
109
+ `,d.onclick=()=>{document.body.removeChild(l)},l.appendChild(d),typeof QRCode>"u"){let u=qo(a,t);if(u){let p=document.createElement("img");p.src=u,p.width=t,p.height=t,r.replaceWith(p),n&&document.body.appendChild(l),i({success:!0,content:a,size:t,dataUrl:u,shown:n,fallback:!0,warning:c("advancedTools.qrcodeLibNotLoaded")})}else i({success:!1,error:c("advancedTools.qrcodeLibAndFallbackUnavailable")});return}QRCode.toCanvas(r,a,{width:t,margin:2,color:{dark:"#000000",light:"#ffffff"},errorCorrectionLevel:o.toLowerCase()},u=>{if(u)i({success:!1,error:u.message});else{n&&document.body.appendChild(l);let p=r.toDataURL("image/png");i({success:!0,content:a,size:t,dataUrl:p,shown:n})}})}catch(a){i({success:!1,error:a.message})}})}function Ko(e,t=null,o="style"){try{if(!e||typeof e!="string")return{success:!1,error:c("advancedTools.cssParamRequired")};if(o!=="style"&&o!=="inline")return{success:!1,error:c("advancedTools.unsupportedInjectMode",{mode:o})};if(o==="style"){if(t){let n=document.querySelectorAll(t),i=`ai-helper-scoped-style-${Date.now()}`,a="",l=e.split("}");for(let s of l){let d=s.trim();if(!d)continue;let u=d.indexOf("{");if(u===-1)continue;let p=d.substring(0,u).trim(),m=d.substring(u+1).trim();a+=`#${i} ${p} { ${m} } `}n.forEach(s=>{s.setAttribute("id",i)});let r=document.createElement("style");return r.setAttribute("data-ai-helper","scoped"),r.textContent=a,document.head.appendChild(r),{success:!0,injectMode:"style",scoped:!0,selector:t,hitCount:n.length}}{let n=document.createElement("style");return n.setAttribute("data-ai-helper","global"),n.textContent=e,document.head.appendChild(n),{success:!0,injectMode:"style",scoped:!1,hitCount:0}}}if(o==="inline"){let n=t?document.querySelectorAll(t):document.querySelectorAll("*"),i=0,a={};return e.split(";").forEach(l=>{let r=l.indexOf(":");if(r===-1)return;let s=l.substring(0,r).trim(),d=l.substring(r+1).trim();s&&d&&(a[s]=d)}),n.forEach(l=>{if(l.nodeType===1){for(let[r,s]of Object.entries(a))try{l.style.setProperty(r,s)}catch{}i++}}),{success:!0,injectMode:"inline",selector:t||"*",hitCount:i}}}catch(n){return{success:!1,error:n.message}}}function $o(){if(document.getElementById("aih-selection-toolbar-styles"))return;let e=document.createElement("style");e.id="aih-selection-toolbar-styles",e.textContent=`
106
110
  #aih-selection-toolbar {
107
111
  position: fixed;
108
112
  z-index: 2147483647;
@@ -734,7 +738,7 @@ ${i.slice(1).map(a=>`| ${a.join(" | ")} |`).join(`
734
738
  #aih-selection-result .aih-followup-send:hover {
735
739
  color: #2563eb;
736
740
  }
737
- `,document.head.appendChild(e)}C("zh",{optionsConst:{aiSearch:"AI\u641C\u7D22",explain:"\u89E3\u91CA",translate:"\u7FFB\u8BD1",summary:"\u603B\u7ED3",copy:"\u590D\u5236"}}),C("en",{optionsConst:{aiSearch:"AI Search",explain:"Explain",translate:"Translate",summary:"Summarize",copy:"Copy"}});var mo={"ai-search":"optionsConst.aiSearch",explain:"optionsConst.explain",translate:"optionsConst.translate",summary:"optionsConst.summary",copy:"optionsConst.copy"};function be(e){let t=mo[e];return t?d(t):void 0}C("zh",{selToolbar:{settings:"\u8BBE\u7F6E",settingsTitle:"\u6253\u5F00\u914D\u7F6E\u9875\u9762",disableTemporarily:"\u672C\u6B21\u4E34\u65F6\u7981\u7528",disableTemporarilyTitle:"\u6682\u65F6\u9690\u85CF\u76F4\u5230\u9875\u9762\u5237\u65B0",disableOnSite:"\u5728\u6B64\u7F51\u7AD9\u7981\u7528",disableOnSiteTitle:"\u5728\u6B64\u7F51\u7AD9\u7981\u7528\u5DE5\u5177\u680F",dragToMove:"\u62D6\u62FD\u79FB\u52A8",moreTools:"\u66F4\u591A\u5DE5\u5177",copySelectedTitle:"\u590D\u5236\u9009\u4E2D\u5185\u5BB9",askPlaceholder:"\u95EE\u95EE...",sendTitle:"\u53D1\u9001",aiAnswer:"AI \u56DE\u7B54",lockWindow:"\u9501\u5B9A\u7A97\u53E3",unlockWindow:"\u89E3\u9664\u9501\u5B9A",close:"\u5173\u95ED",copyAll:"\u590D\u5236",copyRichTitle:"\u590D\u5236 Markdown \u6587\u672C\uFF08Ctrl/\u2318 + \u5355\u51FB\u590D\u5236\u5BCC\u6587\u672C\uFF09",regenerate:"\u91CD\u65B0\u751F\u6210",suggestedFollowups:"\u{1F4A1} \u63A8\u8350\u8FFD\u95EE",followupPlaceholder:"\u7EE7\u7EED\u63D0\u95EE...",sendToSidebar:"\u53D1\u9001\u5230\u4FA7\u8FB9\u680F",aiThinking:"AI \u6B63\u5728\u601D\u8003...",requestFailed:"\u8BF7\u6C42\u5931\u8D25: {msg}",copyFailed:"\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u590D\u5236",copied:"\u5DF2\u590D\u5236",copiedMarkdown:"\u5DF2\u590D\u5236 Markdown",copiedRich:"\u5DF2\u590D\u5236\u5BCC\u6587\u672C",tokenUsageTitle:"Token \u6D88\u8017\uFF1A\u8F93\u5165 {input} / \u8F93\u51FA {output}\uFF0C\u70B9\u51FB\u67E5\u770B\u660E\u7EC6",tokenPopupTitle:"Token \u6D88\u8017\u660E\u7EC6",tokenPopupTotal:"\u603B\u8BA1",tokenPopupInput:"\u8F93\u5165",tokenPopupOutput:"\u8F93\u51FA",noResponse:"\u65E0\u54CD\u5E94",sysPromptAisearch:"\u4F60\u6B63\u5728\u5904\u7406\u7528\u6237\u5728\u7F51\u9875\u4E0A\u9009\u4E2D\u7684\u5185\u5BB9\u3002\u4F7F\u7528ReAct Agent\u6A21\u5F0F\uFF0C\u901A\u8FC7\u591A\u8F6E\u601D\u8003\u3001\u641C\u7D22\u548C\u63A8\u7406\u6765\u56DE\u7B54\u9009\u4E2D\u7684\u95EE\u9898\u3002",sysPromptExplain:"\u4F60\u6B63\u5728\u5904\u7406\u7528\u6237\u5728\u7F51\u9875\u4E0A\u9009\u4E2D\u7684\u5185\u5BB9\u3002\u75281-3\u53E5\u7B80\u6D01\u89E3\u91CA\u9009\u4E2D\u5185\u5BB9\uFF0C\u5FC5\u8981\u65F6\u8865\u5145\u4E00\u4E2A\u7B80\u77ED\u793A\u4F8B\u3002\u4E0D\u8981\u5C55\u5F00\u957F\u7BC7\u8BBA\u8FF0\u3002",sysPromptTranslate:"\u4F60\u6B63\u5728\u5904\u7406\u7528\u6237\u5728\u7F51\u9875\u4E0A\u9009\u4E2D\u7684\u5185\u5BB9\u3002\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00\uFF1A\u4E2D\u6587\u2192\u82F1\u6587\uFF0C\u82F1\u6587\u2192\u4E2D\u6587\uFF0C\u5176\u4ED6\u8BED\u8A00\u2192\u540C\u65F6\u7ED9\u51FA\u4E2D\u82F1\u6587\u3002\u53EA\u8F93\u51FA\u7FFB\u8BD1\u7ED3\u679C\uFF0C\u4E0D\u6DFB\u52A0\u989D\u5916\u8BF4\u660E\u3002",sysPromptSummary:"\u4F60\u6B63\u5728\u5904\u7406\u7528\u6237\u5728\u7F51\u9875\u4E0A\u9009\u4E2D\u7684\u5185\u5BB9\u3002\u75283-5\u4E2A\u8981\u70B9\u603B\u7ED3\u9009\u4E2D\u5185\u5BB9\uFF0C\u6BCF\u6761\u8981\u70B9\u4E00\u53E5\u8BDD\uFF0C\u63D0\u70BC\u6838\u5FC3\u4FE1\u606F\u5373\u53EF\u3002",sysPromptCopy:"\u5C06\u9009\u4E2D\u5185\u5BB9\u590D\u5236\u5230\u526A\u8D34\u677F\u3002",userMsgAisearch:`\u641C\u7D22\u5E76\u5206\u6790\u4EE5\u4E0B\u5185\u5BB9\uFF1A
741
+ `,document.head.appendChild(e)}A("zh",{optionsConst:{aiSearch:"AI\u641C\u7D22",explain:"\u89E3\u91CA",translate:"\u7FFB\u8BD1",summary:"\u603B\u7ED3",copy:"\u590D\u5236"}}),A("en",{optionsConst:{aiSearch:"AI Search",explain:"Explain",translate:"Translate",summary:"Summarize",copy:"Copy"}});var zo={"ai-search":"optionsConst.aiSearch",explain:"optionsConst.explain",translate:"optionsConst.translate",summary:"optionsConst.summary",copy:"optionsConst.copy"};function Te(e){let t=zo[e];return t?c(t):void 0}A("zh",{selToolbar:{settings:"\u8BBE\u7F6E",settingsTitle:"\u6253\u5F00\u914D\u7F6E\u9875\u9762",disableTemporarily:"\u672C\u6B21\u4E34\u65F6\u7981\u7528",disableTemporarilyTitle:"\u6682\u65F6\u9690\u85CF\u76F4\u5230\u9875\u9762\u5237\u65B0",disableOnSite:"\u5728\u6B64\u7F51\u7AD9\u7981\u7528",disableOnSiteTitle:"\u5728\u6B64\u7F51\u7AD9\u7981\u7528\u5DE5\u5177\u680F",dragToMove:"\u62D6\u62FD\u79FB\u52A8",moreTools:"\u66F4\u591A\u5DE5\u5177",copySelectedTitle:"\u590D\u5236\u9009\u4E2D\u5185\u5BB9",askPlaceholder:"\u95EE\u95EE...",sendTitle:"\u53D1\u9001",aiAnswer:"AI \u56DE\u7B54",lockWindow:"\u9501\u5B9A\u7A97\u53E3",unlockWindow:"\u89E3\u9664\u9501\u5B9A",close:"\u5173\u95ED",copyAll:"\u590D\u5236",copyRichTitle:"\u590D\u5236 Markdown \u6587\u672C\uFF08Ctrl/\u2318 + \u5355\u51FB\u590D\u5236\u5BCC\u6587\u672C\uFF09",regenerate:"\u91CD\u65B0\u751F\u6210",suggestedFollowups:"\u{1F4A1} \u63A8\u8350\u8FFD\u95EE",followupPlaceholder:"\u7EE7\u7EED\u63D0\u95EE...",sendToSidebar:"\u53D1\u9001\u5230\u4FA7\u8FB9\u680F",aiThinking:"AI \u6B63\u5728\u601D\u8003...",requestFailed:"\u8BF7\u6C42\u5931\u8D25: {msg}",copyFailed:"\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u624B\u52A8\u590D\u5236",copied:"\u5DF2\u590D\u5236",copiedMarkdown:"\u5DF2\u590D\u5236 Markdown",copiedRich:"\u5DF2\u590D\u5236\u5BCC\u6587\u672C",tokenUsageTitle:"Token \u6D88\u8017\uFF1A\u8F93\u5165 {input} / \u8F93\u51FA {output}\uFF0C\u70B9\u51FB\u67E5\u770B\u660E\u7EC6",tokenPopupTitle:"Token \u6D88\u8017\u660E\u7EC6",tokenPopupTotal:"\u603B\u8BA1",tokenPopupInput:"\u8F93\u5165",tokenPopupOutput:"\u8F93\u51FA",noResponse:"\u65E0\u54CD\u5E94",sysPromptAisearch:"\u4F60\u6B63\u5728\u5904\u7406\u7528\u6237\u5728\u7F51\u9875\u4E0A\u9009\u4E2D\u7684\u5185\u5BB9\u3002\u4F7F\u7528ReAct Agent\u6A21\u5F0F\uFF0C\u901A\u8FC7\u591A\u8F6E\u601D\u8003\u3001\u641C\u7D22\u548C\u63A8\u7406\u6765\u56DE\u7B54\u9009\u4E2D\u7684\u95EE\u9898\u3002",sysPromptExplain:"\u4F60\u6B63\u5728\u5904\u7406\u7528\u6237\u5728\u7F51\u9875\u4E0A\u9009\u4E2D\u7684\u5185\u5BB9\u3002\u75281-3\u53E5\u7B80\u6D01\u89E3\u91CA\u9009\u4E2D\u5185\u5BB9\uFF0C\u5FC5\u8981\u65F6\u8865\u5145\u4E00\u4E2A\u7B80\u77ED\u793A\u4F8B\u3002\u4E0D\u8981\u5C55\u5F00\u957F\u7BC7\u8BBA\u8FF0\u3002",sysPromptTranslate:"\u4F60\u6B63\u5728\u5904\u7406\u7528\u6237\u5728\u7F51\u9875\u4E0A\u9009\u4E2D\u7684\u5185\u5BB9\u3002\u81EA\u52A8\u68C0\u6D4B\u8BED\u8A00\uFF1A\u4E2D\u6587\u2192\u82F1\u6587\uFF0C\u82F1\u6587\u2192\u4E2D\u6587\uFF0C\u5176\u4ED6\u8BED\u8A00\u2192\u540C\u65F6\u7ED9\u51FA\u4E2D\u82F1\u6587\u3002\u53EA\u8F93\u51FA\u7FFB\u8BD1\u7ED3\u679C\uFF0C\u4E0D\u6DFB\u52A0\u989D\u5916\u8BF4\u660E\u3002",sysPromptSummary:"\u4F60\u6B63\u5728\u5904\u7406\u7528\u6237\u5728\u7F51\u9875\u4E0A\u9009\u4E2D\u7684\u5185\u5BB9\u3002\u75283-5\u4E2A\u8981\u70B9\u603B\u7ED3\u9009\u4E2D\u5185\u5BB9\uFF0C\u6BCF\u6761\u8981\u70B9\u4E00\u53E5\u8BDD\uFF0C\u63D0\u70BC\u6838\u5FC3\u4FE1\u606F\u5373\u53EF\u3002",sysPromptCopy:"\u5C06\u9009\u4E2D\u5185\u5BB9\u590D\u5236\u5230\u526A\u8D34\u677F\u3002",userMsgAisearch:`\u641C\u7D22\u5E76\u5206\u6790\u4EE5\u4E0B\u5185\u5BB9\uFF1A
738
742
 
739
743
  {text}`,userMsgExplain:`\u75281-3\u53E5\u8BDD\u7B80\u6D01\u89E3\u91CA\u4EE5\u4E0B\u5185\u5BB9\uFF0C\u4E0D\u9700\u8981\u5C55\u5F00\u8BF4\u660E\u3002
740
744
 
@@ -756,7 +760,7 @@ ${i.slice(1).map(a=>`| ${a.join(" | ")} |`).join(`
756
760
  ---SUGGESTIONS---
757
761
  \u95EE\u98981
758
762
  \u95EE\u98982
759
- \u95EE\u98983`}}),C("en",{selToolbar:{settings:"Settings",settingsTitle:"Open settings page",disableTemporarily:"Disable temporarily",disableTemporarilyTitle:"Temporarily hide until page refresh",disableOnSite:"Disable on this site",disableOnSiteTitle:"Disable toolbar on this website",dragToMove:"Drag to move",moreTools:"More tools",copySelectedTitle:"Copy selected content",askPlaceholder:"Ask...",sendTitle:"Send",aiAnswer:"AI Answer",lockWindow:"Lock panel",unlockWindow:"Unlock panel",close:"Close",copyAll:"Copy",copyRichTitle:"Copy Markdown text (Ctrl/\u2318+Click to copy rich text)",regenerate:"Regenerate",suggestedFollowups:"\u{1F4A1} Suggested follow-ups",followupPlaceholder:"Ask a follow-up...",sendToSidebar:"Send to sidebar",aiThinking:"AI is thinking...",requestFailed:"Request failed: {msg}",copyFailed:"Copy failed, please copy manually",copied:"Copied",copiedMarkdown:"Markdown copied",copiedRich:"Rich text copied",tokenUsageTitle:"Token usage: {input} input / {output} output, click for details",tokenPopupTitle:"Token Usage Details",tokenPopupTotal:"Total",tokenPopupInput:"Input",tokenPopupOutput:"Output",noResponse:"No response",sysPromptAisearch:"You are processing content selected by the user on a web page. Use ReAct Agent mode to answer selected questions through multiple rounds of thinking, searching, and reasoning.",sysPromptExplain:"You are processing content selected by the user on a web page. Explain the selected content in 1-3 concise sentences, supplementing with a brief example if necessary. Do not expand into lengthy discussions.",sysPromptTranslate:"You are processing content selected by the user on a web page. Auto-detect language: Chinese\u2192English, English\u2192Chinese, other languages\u2192provide both Chinese and English. Output only the translation result, no additional explanations.",sysPromptSummary:"You are processing content selected by the user on a web page. Summarize the selected content in 3-5 bullet points, one sentence per point, distilling the core information.",sysPromptCopy:"Copy the selected content to the clipboard.",userMsgAisearch:`Search and analyze the following content:
763
+ \u95EE\u98983`}}),A("en",{selToolbar:{settings:"Settings",settingsTitle:"Open settings page",disableTemporarily:"Disable temporarily",disableTemporarilyTitle:"Temporarily hide until page refresh",disableOnSite:"Disable on this site",disableOnSiteTitle:"Disable toolbar on this website",dragToMove:"Drag to move",moreTools:"More tools",copySelectedTitle:"Copy selected content",askPlaceholder:"Ask...",sendTitle:"Send",aiAnswer:"AI Answer",lockWindow:"Lock panel",unlockWindow:"Unlock panel",close:"Close",copyAll:"Copy",copyRichTitle:"Copy Markdown text (Ctrl/\u2318+Click to copy rich text)",regenerate:"Regenerate",suggestedFollowups:"\u{1F4A1} Suggested follow-ups",followupPlaceholder:"Ask a follow-up...",sendToSidebar:"Send to sidebar",aiThinking:"AI is thinking...",requestFailed:"Request failed: {msg}",copyFailed:"Copy failed, please copy manually",copied:"Copied",copiedMarkdown:"Markdown copied",copiedRich:"Rich text copied",tokenUsageTitle:"Token usage: {input} input / {output} output, click for details",tokenPopupTitle:"Token Usage Details",tokenPopupTotal:"Total",tokenPopupInput:"Input",tokenPopupOutput:"Output",noResponse:"No response",sysPromptAisearch:"You are processing content selected by the user on a web page. Use ReAct Agent mode to answer selected questions through multiple rounds of thinking, searching, and reasoning.",sysPromptExplain:"You are processing content selected by the user on a web page. Explain the selected content in 1-3 concise sentences, supplementing with a brief example if necessary. Do not expand into lengthy discussions.",sysPromptTranslate:"You are processing content selected by the user on a web page. Auto-detect language: Chinese\u2192English, English\u2192Chinese, other languages\u2192provide both Chinese and English. Output only the translation result, no additional explanations.",sysPromptSummary:"You are processing content selected by the user on a web page. Summarize the selected content in 3-5 bullet points, one sentence per point, distilling the core information.",sysPromptCopy:"Copy the selected content to the clipboard.",userMsgAisearch:`Search and analyze the following content:
760
764
 
761
765
  {text}`,userMsgExplain:`Explain the following content in 1-3 concise sentences without expanding.
762
766
 
@@ -778,84 +782,84 @@ After answering, please provide 3 follow-up questions on a new line in the follo
778
782
  ---SUGGESTIONS---
779
783
  Question 1
780
784
  Question 2
781
- Question 3`}});var S={search:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>',explain:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18h6"/><path d="M10 22h4"/><path d="M12 2a7 7 0 0 0-7 7c0 2.4 1.2 4.5 3 5.7V17h8v-2.3c1.8-1.2 3-3.3 3-5.7a7 7 0 0 0-7-7Z"/></svg>',translate:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>',summary:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z"/><path d="M14 2v6h6"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/></svg>',copy:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>',close:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>',sparkle:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"/></svg>',lock:'<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>',unlock:'<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>',copyLarge:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>',grip:'<svg width="12" height="12" viewBox="0 0 24 24" fill="currentColor" stroke="none"><circle cx="8" cy="6" r="1.5"/><circle cx="16" cy="6" r="1.5"/><circle cx="8" cy="12" r="1.5"/><circle cx="16" cy="12" r="1.5"/><circle cx="8" cy="18" r="1.5"/><circle cx="16" cy="18" r="1.5"/></svg>',send:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg>',more:'<svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" stroke="none"><circle cx="12" cy="5" r="2"/><circle cx="12" cy="12" r="2"/><circle cx="12" cy="19" r="2"/></svg>',gear:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>',refresh:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>',block:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"/></svg>',eyeOff:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19M14.12 14.12a3 3 0 1 1-4.24-4.24"/><line x1="1" y1="1" x2="23" y2="23"/></svg>'},b=null,f=null,L=!1,A=!1,xe="",re=null,ce="",P=!1,U=!1,q="",Ce="",_e="",Be="",w="",he=!0,ie=[],rt=!1,de=!1,V={x:0,y:0},B=null,D=null,Ue=!1,T=null,$="",ke=!1,Ae=0,st=null,Oe=!1,Me=new Set,N=window.top===window;if(!N)try{window.parent===window.top&&window.top.document.querySelector("frameset")&&(N=!0)}catch{}v.debug("[SelectionToolbar] moduleload isTopFrame:",N,"top===window:",window.top===window,"hasBody:",!!document.body,"parent===top:",window.parent===window.top);var M=null;function F(e){(document.body||document.documentElement).appendChild(e)}var I=null;function ct(e,t){let o=t?e.querySelector(t):e;o&&(o.style.cursor="grab",o.addEventListener("mousedown",n=>{if(n.target.closest('[role="button"]')||n.button!==0)return;n.preventDefault(),n.stopPropagation();let l=e.getBoundingClientRect();I={el:e,startX:n.clientX,startY:n.clientY,startLeft:l.left,startTop:l.top,pointerId:n.pointerId||0},o.style.cursor="grabbing",e.style.transition="none"}))}document.addEventListener("mousemove",e=>{if(!I)return;let t=e.clientX-I.startX,o=e.clientY-I.startY,n=I.startLeft+t,l=I.startTop+o,i=window.innerWidth,a=window.innerHeight,r=I.el.getBoundingClientRect();n=Math.max(0,Math.min(n,i-r.width)),l=Math.max(0,Math.min(l,a-r.height)),I.el.style.left=n+"px",I.el.style.top=l+"px"}),document.addEventListener("mouseup",()=>{if(!I)return;I.el.style.transition="";let e=I.el.querySelector(".aih-result-header")||I.el;e.style.cursor="grab",I=null});function _(){try{return typeof chrome!="object"||!chrome||typeof chrome.runtime!="object"||!chrome.runtime?!1:!!chrome.runtime.id}catch{return!1}}var we=[{id:"ai-search",name:d("optionsConst.aiSearch"),systemPrompt:d("selToolbar.sysPromptAisearch"),builtin:!0,order:0},{id:"explain",name:d("optionsConst.explain"),systemPrompt:d("selToolbar.sysPromptExplain"),builtin:!0,order:1},{id:"translate",name:d("optionsConst.translate"),systemPrompt:d("selToolbar.sysPromptTranslate"),builtin:!0,order:2},{id:"summary",name:d("optionsConst.summary"),systemPrompt:d("selToolbar.sysPromptSummary"),builtin:!0,order:3},{id:"copy",name:d("optionsConst.copy"),systemPrompt:d("selToolbar.sysPromptCopy"),builtin:!0,order:99}];function et(e){return e.map(t=>{let o=be(t.id);return o?{...t,name:o}:t})}function dt(){return new Promise(e=>{if(!_()){D=et([...we]),e(D);return}if(D){e(D);return}try{chrome.storage.local.get(["toolbarTools","toolbarIconOnly"],t=>{let o=t.toolbarTools&&t.toolbarTools.length>0?t.toolbarTools:we,n=new Map(we.map(l=>[l.id,l]));D=o.map(l=>{if(l.builtin&&n.has(l.id)){let i=be(l.id);return{...l,systemPrompt:n.get(l.id).systemPrompt,name:i||l.name}}return l}),Ue=t.toolbarIconOnly||!1,e(D)})}catch{D=et([...we]),e(D)}})}function tt(){D=null,Ue=!1,dt()}function ut(e){return{"ai-search":S.search,explain:S.explain,translate:S.translate,summary:S.summary,copy:S.copy}[e]||S.sparkle}function go(){T||(T=document.createElement("div"),T.id="aih-overflow-dropdown",T.className="aih-overflow-dropdown",T.style.display="none",F(T),document.addEventListener("click",e=>{T&&T.style.display==="block"&&!T.contains(e.target)&&!e.target.closest(".aih-tb-btn-overflow")&&(T.style.display="none")}))}function ho(e){T||go();let t=e.map(o=>{let n=ut(o.id),l=o.builtin&&be(o.id)||o.name;return`<div class="aih-dropdown-item" role="button" tabindex="0" data-action="${o.id}">
782
- <span class="aih-tb-icon">${n}</span>${l}
783
- </div>`}).join("");t+='<div class="aih-dropdown-divider"></div>',t+=`<div class="aih-dropdown-item aih-dropdown-settings" role="button" tabindex="0" title="${d("selToolbar.settingsTitle")}">
784
- <span class="aih-tb-icon">${S.gear}</span>${d("selToolbar.settings")}
785
- </div>`,t+=`<div class="aih-dropdown-item aih-dropdown-hide" role="button" tabindex="0" title="${d("selToolbar.disableTemporarilyTitle")}">
786
- <span class="aih-tb-icon">${S.eyeOff}</span>${d("selToolbar.disableTemporarily")}
787
- </div>`,t+=`<div class="aih-dropdown-item aih-dropdown-block" role="button" tabindex="0" title="${d("selToolbar.disableOnSiteTitle")}">
788
- <span class="aih-tb-icon">${S.block}</span>${d("selToolbar.disableOnSite")}
789
- </div>`,T.innerHTML=t,T._clickHandler=o=>{if(o.target.closest(".aih-dropdown-settings")){o.stopPropagation(),T.style.display="none";try{chrome.runtime.sendMessage({type:"OPEN_OPTIONS_PAGE",hash:"toolbar"}).catch(()=>{})}catch{}return}if(o.target.closest(".aih-dropdown-block")){o.stopPropagation(),o.preventDefault(),T.style.display="none",No();return}if(o.target.closest(".aih-dropdown-hide")){o.stopPropagation(),o.preventDefault(),T.style.display="none",rt=!0,R(),X(),w="";return}let n=o.target.closest("[data-action]");n&&(o.stopPropagation(),T.style.display="none",ft(n.dataset.action,w))},T.addEventListener("click",T._clickHandler),T.addEventListener("keydown",o=>{if(o.key==="Enter"||o.key===" "){let n=o.target.closest('[role="button"]');n&&(o.preventDefault(),n.click())}})}async function pt(){if(b)return;await dt();let e=[...D].sort((u,g)=>u.order-g.order),t=e.find(u=>u.id==="ai-search"),o=e.filter(u=>u.id!=="ai-search"&&u.id!=="copy"),n=o.slice(0,4),l=o.slice(4);b=document.createElement("div"),b.id="aih-selection-toolbar";let i='<span class="aih-tb-buttons">';i+=`<span class="aih-tb-grip" title="${d("selToolbar.dragToMove")}">${S.grip}</span>`;let a=Ue;t&&(i+=`<div class="aih-tb-btn primary" role="button" tabindex="0" data-action="ai-search" title="${d("optionsConst.aiSearch")}">
790
- <span class="aih-tb-icon">${S.search}</span>${a?"":d("optionsConst.aiSearch")}
791
- </div>`),n.forEach(u=>{let g=ut(u.id),h=u.builtin&&be(u.id)||u.name;i+=`<div class="aih-tb-btn" role="button" tabindex="0" data-action="${u.id}" title="${h}">
792
- <span class="aih-tb-icon">${g}</span>${a?"":h}
793
- </div>`}),i+=`<div class="aih-tb-btn aih-tb-btn-overflow" role="button" tabindex="0" title="${d("selToolbar.moreTools")}">
785
+ Question 3`}});var S={search:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>',explain:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18h6"/><path d="M10 22h4"/><path d="M12 2a7 7 0 0 0-7 7c0 2.4 1.2 4.5 3 5.7V17h8v-2.3c1.8-1.2 3-3.3 3-5.7a7 7 0 0 0-7-7Z"/></svg>',translate:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>',summary:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z"/><path d="M14 2v6h6"/><path d="M8 13h2"/><path d="M8 17h2"/><path d="M14 13h2"/><path d="M14 17h2"/></svg>',copy:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>',close:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>',sparkle:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"/></svg>',lock:'<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>',unlock:'<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>',copyLarge:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>',grip:'<svg width="12" height="12" viewBox="0 0 24 24" fill="currentColor" stroke="none"><circle cx="8" cy="6" r="1.5"/><circle cx="16" cy="6" r="1.5"/><circle cx="8" cy="12" r="1.5"/><circle cx="16" cy="12" r="1.5"/><circle cx="8" cy="18" r="1.5"/><circle cx="16" cy="18" r="1.5"/></svg>',send:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg>',more:'<svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" stroke="none"><circle cx="12" cy="5" r="2"/><circle cx="12" cy="12" r="2"/><circle cx="12" cy="19" r="2"/></svg>',gear:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>',refresh:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"/></svg>',block:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"/></svg>',eyeOff:'<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19M14.12 14.12a3 3 0 1 1-4.24-4.24"/><line x1="1" y1="1" x2="23" y2="23"/></svg>'},y=null,f=null,F=!1,P=!1,Se="",de=null,pe="",M=!1,$=!1,K="",Re="",Ve="",Ye="",w="",we=!0,re=[],Pt=!1,me=!1,J={x:0,y:0},U=null,_=null,Je=!1,k=null,Y="",ve=!1,Me=0,Rt=null,Xe=!1,_e=new Set,H=window.top===window;if(!H)try{window.parent===window.top&&window.top.document.querySelector("frameset")&&(H=!0)}catch{}E.debug("[SelectionToolbar] moduleload isTopFrame:",H,"top===window:",window.top===window,"hasBody:",!!document.body,"parent===top:",window.parent===window.top);var D=null;function O(e){(document.body||document.documentElement).appendChild(e)}var N=null;function Mt(e,t){let o=t?e.querySelector(t):e;o&&(o.style.cursor="grab",o.addEventListener("mousedown",n=>{if(n.target.closest('[role="button"]')||n.button!==0)return;n.preventDefault(),n.stopPropagation();let i=e.getBoundingClientRect();N={el:e,startX:n.clientX,startY:n.clientY,startLeft:i.left,startTop:i.top,pointerId:n.pointerId||0},o.style.cursor="grabbing",e.style.transition="none"}))}document.addEventListener("mousemove",e=>{if(!N)return;let t=e.clientX-N.startX,o=e.clientY-N.startY,n=N.startLeft+t,i=N.startTop+o,a=window.innerWidth,l=window.innerHeight,r=N.el.getBoundingClientRect();n=Math.max(0,Math.min(n,a-r.width)),i=Math.max(0,Math.min(i,l-r.height)),N.el.style.left=n+"px",N.el.style.top=i+"px"}),document.addEventListener("mouseup",()=>{if(!N)return;N.el.style.transition="";let e=N.el.querySelector(".aih-result-header")||N.el;e.style.cursor="grab",N=null});function q(){try{return typeof chrome!="object"||!chrome||typeof chrome.runtime!="object"||!chrome.runtime?!1:!!chrome.runtime.id}catch{return!1}}var ke=[{id:"ai-search",name:c("optionsConst.aiSearch"),systemPrompt:c("selToolbar.sysPromptAisearch"),builtin:!0,order:0},{id:"explain",name:c("optionsConst.explain"),systemPrompt:c("selToolbar.sysPromptExplain"),builtin:!0,order:1},{id:"translate",name:c("optionsConst.translate"),systemPrompt:c("selToolbar.sysPromptTranslate"),builtin:!0,order:2},{id:"summary",name:c("optionsConst.summary"),systemPrompt:c("selToolbar.sysPromptSummary"),builtin:!0,order:3},{id:"copy",name:c("optionsConst.copy"),systemPrompt:c("selToolbar.sysPromptCopy"),builtin:!0,order:99}];function ht(e){return e.map(t=>{let o=Te(t.id);return o?{...t,name:o}:t})}function Lt(){return new Promise(e=>{if(!q()){_=ht([...ke]),e(_);return}if(_){e(_);return}try{chrome.storage.local.get(["toolbarTools","toolbarIconOnly"],t=>{let o=t.toolbarTools&&t.toolbarTools.length>0?t.toolbarTools:ke,n=new Map(ke.map(i=>[i.id,i]));_=o.map(i=>{if(i.builtin&&n.has(i.id)){let a=Te(i.id);return{...i,systemPrompt:n.get(i.id).systemPrompt,name:a||i.name}}return i}),Je=t.toolbarIconOnly||!1,e(_)})}catch{_=ht([...ke]),e(_)}})}function ft(){_=null,Je=!1,Lt()}function Nt(e){return{"ai-search":S.search,explain:S.explain,translate:S.translate,summary:S.summary,copy:S.copy}[e]||S.sparkle}function Go(){k||(k=document.createElement("div"),k.id="aih-overflow-dropdown",k.className="aih-overflow-dropdown",k.style.display="none",O(k),document.addEventListener("click",e=>{k&&k.style.display==="block"&&!k.contains(e.target)&&!e.target.closest(".aih-tb-btn-overflow")&&(k.style.display="none")}))}function Wo(e){k||Go();let t=e.map(o=>{let n=Nt(o.id),i=o.builtin&&Te(o.id)||o.name;return`<div class="aih-dropdown-item" role="button" tabindex="0" data-action="${o.id}">
786
+ <span class="aih-tb-icon">${n}</span>${i}
787
+ </div>`}).join("");t+='<div class="aih-dropdown-divider"></div>',t+=`<div class="aih-dropdown-item aih-dropdown-settings" role="button" tabindex="0" title="${c("selToolbar.settingsTitle")}">
788
+ <span class="aih-tb-icon">${S.gear}</span>${c("selToolbar.settings")}
789
+ </div>`,t+=`<div class="aih-dropdown-item aih-dropdown-hide" role="button" tabindex="0" title="${c("selToolbar.disableTemporarilyTitle")}">
790
+ <span class="aih-tb-icon">${S.eyeOff}</span>${c("selToolbar.disableTemporarily")}
791
+ </div>`,t+=`<div class="aih-dropdown-item aih-dropdown-block" role="button" tabindex="0" title="${c("selToolbar.disableOnSiteTitle")}">
792
+ <span class="aih-tb-icon">${S.block}</span>${c("selToolbar.disableOnSite")}
793
+ </div>`,k.innerHTML=t,k._clickHandler=o=>{if(o.target.closest(".aih-dropdown-settings")){o.stopPropagation(),k.style.display="none";try{chrome.runtime.sendMessage({type:"OPEN_OPTIONS_PAGE",hash:"toolbar"}).catch(()=>{})}catch{}return}if(o.target.closest(".aih-dropdown-block")){o.stopPropagation(),o.preventDefault(),k.style.display="none",un();return}if(o.target.closest(".aih-dropdown-hide")){o.stopPropagation(),o.preventDefault(),k.style.display="none",Pt=!0,L(),oe(),w="";return}let n=o.target.closest("[data-action]");n&&(o.stopPropagation(),k.style.display="none",_t(n.dataset.action,w))},k.addEventListener("click",k._clickHandler),k.addEventListener("keydown",o=>{if(o.key==="Enter"||o.key===" "){let n=o.target.closest('[role="button"]');n&&(o.preventDefault(),n.click())}})}async function Dt(){if(y)return;await Lt();let e=[..._].sort((m,g)=>m.order-g.order),t=e.find(m=>m.id==="ai-search"),o=e.filter(m=>m.id!=="ai-search"&&m.id!=="copy"),n=o.slice(0,4),i=o.slice(4);y=document.createElement("div"),y.id="aih-selection-toolbar";let a='<span class="aih-tb-buttons">';a+=`<span class="aih-tb-grip" title="${c("selToolbar.dragToMove")}">${S.grip}</span>`;let l=Je;t&&(a+=`<div class="aih-tb-btn primary" role="button" tabindex="0" data-action="ai-search" title="${c("optionsConst.aiSearch")}">
794
+ <span class="aih-tb-icon">${S.search}</span>${l?"":c("optionsConst.aiSearch")}
795
+ </div>`),n.forEach(m=>{let g=Nt(m.id),h=m.builtin&&Te(m.id)||m.name;a+=`<div class="aih-tb-btn" role="button" tabindex="0" data-action="${m.id}" title="${h}">
796
+ <span class="aih-tb-icon">${g}</span>${l?"":h}
797
+ </div>`}),a+=`<div class="aih-tb-btn aih-tb-btn-overflow" role="button" tabindex="0" title="${c("selToolbar.moreTools")}">
794
798
  <span class="aih-tb-icon">${S.more}</span>
795
- </div>`,ho(l),i+=`<div class="aih-tb-btn" role="button" tabindex="0" data-action="copy" title="${d("selToolbar.copySelectedTitle")}">
796
- <span class="aih-tb-icon">${S.copy}</span>${a?"":d("optionsConst.copy")}
797
- </div>`,i+="</span>",i+=`<span class="aih-tb-ask-wrap">
798
- <input type="text" class="aih-tb-ask-input" placeholder="${d("selToolbar.askPlaceholder")}" />
799
- <div class="aih-tb-btn aih-tb-ask-send" role="button" tabindex="0" title="${d("selToolbar.sendTitle")}">
799
+ </div>`,Wo(i),a+=`<div class="aih-tb-btn" role="button" tabindex="0" data-action="copy" title="${c("selToolbar.copySelectedTitle")}">
800
+ <span class="aih-tb-icon">${S.copy}</span>${l?"":c("optionsConst.copy")}
801
+ </div>`,a+="</span>",a+=`<span class="aih-tb-ask-wrap">
802
+ <input type="text" class="aih-tb-ask-input" placeholder="${c("selToolbar.askPlaceholder")}" />
803
+ <div class="aih-tb-btn aih-tb-ask-send" role="button" tabindex="0" title="${c("selToolbar.sendTitle")}">
800
804
  <span class="aih-tb-icon">${S.send}</span>
801
805
  </div>
802
- </span>`,b.innerHTML=i,b.addEventListener("click",u=>{if(u.target.closest(".aih-tb-btn-overflow")){u.stopPropagation();let y=u.target.closest(".aih-tb-btn-overflow").getBoundingClientRect();T&&(T.style.display=T.style.display==="block"?"none":"block",T.style.top=y.bottom+4+"px",T.style.left=y.right-160+"px");return}let g=u.target.closest("[data-action]");if(!g)return;u.stopPropagation();let h=g.dataset.action;ft(h,w)}),b.addEventListener("keydown",u=>{if(u.key==="Enter"||u.key===" "){let g=u.target.closest('[role="button"]');g&&!g.classList.contains("aih-tb-ask-send")&&(u.preventDefault(),g.click())}}),F(b);let r=b.querySelector(".aih-tb-ask-input"),s=b.querySelector(".aih-tb-ask-send");b.querySelector(".aih-tb-buttons");let c=()=>{let u=r.value.trim();if(u){let g=xe;p(),r.value="",yo(u,g),R()}},m=()=>{if(A)return;A=!0,xe=w||"";let u=window.getSelection();u.rangeCount>0&&(re=u.getRangeAt(0).cloneRange());let g=b.getBoundingClientRect().right;ce=b.style.left,b.classList.add("aih-ask-mode"),b.style.width="360px";let h=Math.max(8,g-360);b.style.left=h+"px",requestAnimationFrame(()=>{if(re){let y=window.getSelection();y.removeAllRanges(),y.addRange(re)}requestAnimationFrame(()=>{r.focus()})})},p=()=>{A&&(A=!1,xe="",re=null,b.classList.remove("aih-ask-mode"),b.style.width="",ce&&=(b.style.left=ce,""))};r.addEventListener("focus",()=>{A||m()}),r.addEventListener("mousedown",u=>{A||(u.preventDefault(),m())}),r.addEventListener("blur",()=>{setTimeout(()=>{A&&!b.contains(document.activeElement)&&(p(),R())},150)}),r.addEventListener("keydown",u=>{u.key==="Escape"?(u.preventDefault(),u.stopPropagation(),p(),r.blur()):u.key==="Enter"&&(u.preventDefault(),u.stopPropagation(),c())}),s.addEventListener("mousedown",u=>{u.preventDefault(),u.stopPropagation(),c()}),ct(b,".aih-tb-grip")}function mt(){if(f)return;f=document.createElement("div"),f.id="aih-selection-result",f.innerHTML=`
806
+ </span>`,y.innerHTML=a,y.addEventListener("click",m=>{if(m.target.closest(".aih-tb-btn-overflow")){m.stopPropagation();let b=m.target.closest(".aih-tb-btn-overflow").getBoundingClientRect();k&&(k.style.display=k.style.display==="block"?"none":"block",k.style.top=b.bottom+4+"px",k.style.left=b.right-160+"px");return}let g=m.target.closest("[data-action]");if(!g)return;m.stopPropagation();let h=g.dataset.action;_t(h,w)}),y.addEventListener("keydown",m=>{if(m.key==="Enter"||m.key===" "){let g=m.target.closest('[role="button"]');g&&!g.classList.contains("aih-tb-ask-send")&&(m.preventDefault(),g.click())}}),O(y);let r=y.querySelector(".aih-tb-ask-input"),s=y.querySelector(".aih-tb-ask-send");y.querySelector(".aih-tb-buttons");let d=()=>{let m=r.value.trim();if(m){let g=Se;p(),r.value="",Yo(m,g),L()}},u=()=>{if(P)return;P=!0,Se=w||"";let m=window.getSelection();m.rangeCount>0&&(de=m.getRangeAt(0).cloneRange());let g=y.getBoundingClientRect().right;pe=y.style.left,y.classList.add("aih-ask-mode"),y.style.width="360px";let h=Math.max(8,g-360);y.style.left=h+"px",requestAnimationFrame(()=>{if(de){let b=window.getSelection();b.removeAllRanges(),b.addRange(de)}requestAnimationFrame(()=>{r.focus()})})},p=()=>{P&&(P=!1,Se="",de=null,y.classList.remove("aih-ask-mode"),y.style.width="",pe&&=(y.style.left=pe,""))};r.addEventListener("focus",()=>{P||u()}),r.addEventListener("mousedown",m=>{P||(m.preventDefault(),u())}),r.addEventListener("blur",()=>{setTimeout(()=>{P&&!y.contains(document.activeElement)&&(p(),L())},150)}),r.addEventListener("keydown",m=>{m.key==="Escape"?(m.preventDefault(),m.stopPropagation(),p(),r.blur()):m.key==="Enter"&&(m.preventDefault(),m.stopPropagation(),d())}),s.addEventListener("mousedown",m=>{m.preventDefault(),m.stopPropagation(),d()}),Mt(y,".aih-tb-grip")}function Ft(){if(f)return;f=document.createElement("div"),f.id="aih-selection-result",f.innerHTML=`
803
807
  <div class="aih-result-header">
804
- <span>${S.sparkle} ${d("selToolbar.aiAnswer")}</span>
808
+ <span>${S.sparkle} ${c("selToolbar.aiAnswer")}</span>
805
809
  <div class="aih-result-header-actions">
806
- <div class="aih-result-lock" role="button" tabindex="0" title="${d("selToolbar.lockWindow")}">${S.unlock}</div>
807
- <div class="aih-result-close" role="button" tabindex="0" title="${d("selToolbar.close")}">${S.close}</div>
810
+ <div class="aih-result-lock" role="button" tabindex="0" title="${c("selToolbar.lockWindow")}">${S.unlock}</div>
811
+ <div class="aih-result-close" role="button" tabindex="0" title="${c("selToolbar.close")}">${S.close}</div>
808
812
  </div>
809
813
  </div>
810
814
  <div class="aih-result-scroll">
811
815
  <div class="aih-result-body"></div>
812
816
  <div class="aih-result-footer">
813
- <div class="aih-result-footer-btn" role="button" tabindex="0" data-action="copy-result" title="${d("selToolbar.copyRichTitle")}">
814
- <span class="aih-tb-icon">${S.copyLarge}</span>${d("selToolbar.copyAll")}
817
+ <div class="aih-result-footer-btn" role="button" tabindex="0" data-action="copy-result" title="${c("selToolbar.copyRichTitle")}">
818
+ <span class="aih-tb-icon">${S.copyLarge}</span>${c("selToolbar.copyAll")}
815
819
  </div>
816
- <div class="aih-result-footer-btn" role="button" tabindex="0" data-action="regenerate-result" title="${d("selToolbar.regenerate")}">
817
- <span class="aih-tb-icon">${S.refresh}</span>${d("selToolbar.regenerate")}
820
+ <div class="aih-result-footer-btn" role="button" tabindex="0" data-action="regenerate-result" title="${c("selToolbar.regenerate")}">
821
+ <span class="aih-tb-icon">${S.refresh}</span>${c("selToolbar.regenerate")}
818
822
  </div>
819
823
  <div class="aih-result-token" style="display:none;"></div>
820
824
  </div>
821
825
  <div class="aih-result-suggestions" style="display:none;">
822
- <div class="aih-suggestions-label">${d("selToolbar.suggestedFollowups")}</div>
826
+ <div class="aih-suggestions-label">${c("selToolbar.suggestedFollowups")}</div>
823
827
  <div class="aih-suggestions-list"></div>
824
828
  </div>
825
829
  </div>
826
830
  <div class="aih-result-followup">
827
831
  <span class="aih-followup-wrap">
828
- <input type="text" class="aih-followup-input" placeholder="${d("selToolbar.followupPlaceholder")}" />
829
- <div class="aih-followup-send" role="button" tabindex="0" title="${d("selToolbar.sendToSidebar")}">${S.send}</div>
832
+ <input type="text" class="aih-followup-input" placeholder="${c("selToolbar.followupPlaceholder")}" />
833
+ <div class="aih-followup-send" role="button" tabindex="0" title="${c("selToolbar.sendToSidebar")}">${S.send}</div>
830
834
  </span>
831
835
  </div>
832
- `,f.querySelector(".aih-result-close").addEventListener("click",t=>{t.stopPropagation(),X()}),f.querySelector(".aih-result-lock").addEventListener("click",t=>{t.stopPropagation(),bo()}),f.querySelector(".aih-result-footer").addEventListener("click",t=>{t.stopPropagation();let o=t.target.closest(".aih-result-token");if(o){To(o);return}let n=t.target.closest("[data-action]")?.dataset?.action;if(n==="regenerate-result"){if(!_e||!Ce)return;qe(_e,Ce,Be)}else n==="copy-result"&&(t.ctrlKey||t.metaKey?Mo():Io())});let e=f.querySelector(".aih-followup-input");f.querySelector(".aih-followup-send").addEventListener("click",t=>{t.stopPropagation();let o=e.value.trim();o&&(Le(o),e.value="")}),e.addEventListener("keydown",t=>{if(t.key==="Enter"){t.preventDefault();let o=e.value.trim();o&&(Le(o),e.value="")}}),f.querySelector(".aih-suggestions-list").addEventListener("click",t=>{let o=t.target.closest(".aih-suggestion-chip");if(!o)return;t.stopPropagation();let n=o.dataset.question;n&&Le(n)}),f.addEventListener("keydown",t=>{if(t.key==="Enter"||t.key===" "){let o=t.target.closest('[role="button"]');o&&(t.preventDefault(),o.click())}}),F(f),ct(f,".aih-result-header")}function ot(e,t,o,n=[]){if(!f)return;let l=P&&f.style.display!=="none",i=f.querySelector(".aih-result-body"),a=f.querySelector(".aih-result-scroll"),r=!a||a.scrollTop+a.clientHeight>=a.scrollHeight-24;i.innerHTML=o,r&&a&&(a.scrollTop=a.scrollHeight);let s=f.querySelector(".aih-result-suggestions"),c=f.querySelector(".aih-suggestions-list");if(n.length>0&&s&&c?(c.innerHTML=n.map(u=>`<div class="aih-suggestion-chip" role="button" tabindex="0" data-question="${Q(u)}">${Q(u)}</div>`).join(""),s.style.display="block"):s&&(s.style.display="none"),l)return;F(f);let m=window.innerWidth,p=window.innerHeight;f.style.display="flex",f.style.left="-9999px",f.style.top="-9999px",requestAnimationFrame(()=>{let u=f.getBoundingClientRect(),g=u.width||420,h=Math.min(u.height||200,520),y=e-g/2;y<8&&(y=8),y+g>m-8&&(y=m-g-8);let x=t-h-8;x<8&&(x=t+8),f.style.left=y+"px",f.style.top=x+"px",f.style.maxHeight=Math.min(520,p-x-16)+"px",P=!0,F(f)})}function fo(e,t){if(!f)return;V={x:e,y:t},U=!1,Ee();let o=f.querySelector(".aih-result-suggestions");o&&(o.style.display="none");let n=f.querySelector(".aih-followup-input");n&&(n.value=""),ue(null),oe(),F(f),f.style.display="flex";let l=f.querySelector(".aih-result-body");l.innerHTML=`<div class="aih-result-loading"><div class="aih-spinner"></div>${d("selToolbar.aiThinking")}</div>`,ht(f,e,t),P=!0,R()}function gt(e,t,o){if(!f)return;U=!1,q="",ue(null),Ee(),F(f),f.style.display="flex";let n=f.querySelector(".aih-result-body");n.innerHTML=`<div class="aih-result-error">${d("selToolbar.requestFailed",{msg:Q(o)})}</div>`,ht(f,e,t),P=!0}function ht(e,t,o){let n=window.innerWidth,l=window.innerHeight;e.style.left="-9999px",e.style.top="-9999px",requestAnimationFrame(()=>{let i=e.getBoundingClientRect(),a=i.width||420,r=Math.min(i.height||200,520),s=t-a/2;s<8&&(s=8),s+a>n-8&&(s=n-a-8);let c=o-r-8;c<8&&(c=o+8),e.style.left=s+"px",e.style.top=c+"px",e.style.maxHeight=Math.min(520,l-c-16)+"px",F(e)})}function X(){f&&(f.style.display="none",P=!1,U=!1,q="",oe(),Ee())}function bo(){U=!U,Ee()}function Ee(){if(!f)return;let e=f.querySelector(".aih-result-lock");e&&(U?(e.innerHTML=S.lock,e.classList.add("locked"),e.title=d("selToolbar.unlockWindow")):(e.innerHTML=S.unlock,e.classList.remove("locked"),e.title=d("selToolbar.lockWindow")))}function Le(e){if(!e||!_())return;let t=w||Ce||"";try{chrome.runtime.sendMessage({type:"DIRECT_SEND",text:e,selectedText:t}).catch(o=>{v.error("[SelectionToolbar] sendfollow-up tosidebar failed:",o)})}catch{}}function yo(e,t){if(!(!e||!_()))try{chrome.runtime.sendMessage({type:"DIRECT_SEND",text:e,selectedText:t||""}).catch(o=>{v.error("[SelectionToolbar] send to sidesidebar failed:",o)})}catch{}}function Q(e){let t=document.createElement("div");return t.textContent=e,t.innerHTML}function wo(){if(ke)return;ke=!0;let e=Ae;requestAnimationFrame(()=>{ke=!1,e===Ae&&xo()})}function xo(){if(!f||!P||!$)return;let e=f.querySelector(".aih-result-body");if(!e)return;let t=$,o=t.indexOf("---SUGGESTIONS---");o!==-1&&(t=t.substring(0,o));let n=f.querySelector(".aih-result-scroll"),l=!n||n.scrollTop+n.clientHeight>=n.scrollHeight-24;e.innerHTML='<div class="aih-result-content-stream">'+ko(t)+"</div>",l&&n&&(n.scrollTop=n.scrollHeight)}function ko(e){if(typeof marked>"u")return Q(e).replace(/\n/g,"<br>");let t=(e.match(/```/g)||[]).length%2==1?e+"\n```":e;return marked.parse(t)}function Ne(e){return!e||e<=0?"0":e<1e3?String(e):e<1e4?Math.round(e/100)/10+"K":e<1e6?Math.round(e/1e3)+"K":Math.round(e/1e5)/10+"M"}function ue(e){if(!f)return;st=e||null;let t=f.querySelector(".aih-result-token");if(!t)return;let o=e&&(e.total_tokens||(e.prompt_tokens||0)+(e.completion_tokens||0));if(!o){t.style.display="none",t.textContent="",t.removeAttribute("title");return}t.innerHTML=`<span class="aih-token-dot">\u2B24</span>${Ne(o)} tokens`,t.title=d("selToolbar.tokenUsageTitle",{input:Ne(e.prompt_tokens||0),output:Ne(e.completion_tokens||0)}),t.style.display="inline-flex"}function De(e){return!e&&e!==0?"0":Number(e).toLocaleString("en-US")}function oe(){let e=document.querySelector(".aih-token-popup");e&&e.remove(),Oe=!1}function To(e){let t=st;if(!t)return;let o=t.total_tokens||(t.prompt_tokens||0)+(t.completion_tokens||0);if(!o)return;if(Oe){oe();return}oe();let n=t.prompt_tokens||0,l=t.completion_tokens||0,i=Math.round(n/o*100),a=Math.round(l/o*100),r=document.createElement("div");r.className="aih-token-popup",r.innerHTML=`
836
+ `,f.querySelector(".aih-result-close").addEventListener("click",t=>{t.stopPropagation(),oe()}),f.querySelector(".aih-result-lock").addEventListener("click",t=>{t.stopPropagation(),Vo()}),f.querySelector(".aih-result-footer").addEventListener("click",t=>{t.stopPropagation();let o=t.target.closest(".aih-result-token");if(o){Jo(o);return}let n=t.target.closest("[data-action]")?.dataset?.action;if(n==="regenerate-result"){if(!Ve||!Re)return;Ze(Ve,Re,Ye)}else n==="copy-result"&&(t.ctrlKey||t.metaKey?cn():sn())});let e=f.querySelector(".aih-followup-input");f.querySelector(".aih-followup-send").addEventListener("click",t=>{t.stopPropagation();let o=e.value.trim();o&&(Oe(o),e.value="")}),e.addEventListener("keydown",t=>{if(t.key==="Enter"){t.preventDefault();let o=e.value.trim();o&&(Oe(o),e.value="")}}),f.querySelector(".aih-suggestions-list").addEventListener("click",t=>{let o=t.target.closest(".aih-suggestion-chip");if(!o)return;t.stopPropagation();let n=o.dataset.question;n&&Oe(n)}),f.addEventListener("keydown",t=>{if(t.key==="Enter"||t.key===" "){let o=t.target.closest('[role="button"]');o&&(t.preventDefault(),o.click())}}),O(f),Mt(f,".aih-result-header")}function bt(e,t,o,n=[]){if(!f)return;let i=M&&f.style.display!=="none",a=f.querySelector(".aih-result-body"),l=f.querySelector(".aih-result-scroll"),r=!l||l.scrollTop+l.clientHeight>=l.scrollHeight-24;a.innerHTML=o,r&&l&&(l.scrollTop=l.scrollHeight);let s=f.querySelector(".aih-result-suggestions"),d=f.querySelector(".aih-suggestions-list");if(n.length>0&&s&&d?(d.innerHTML=n.map(m=>`<div class="aih-suggestion-chip" role="button" tabindex="0" data-question="${te(m)}">${te(m)}</div>`).join(""),s.style.display="block"):s&&(s.style.display="none"),i)return;O(f);let u=window.innerWidth,p=window.innerHeight;f.style.display="flex",f.style.left="-9999px",f.style.top="-9999px",requestAnimationFrame(()=>{let m=f.getBoundingClientRect(),g=m.width||420,h=Math.min(m.height||200,520),b=e-g/2;b<8&&(b=8),b+g>u-8&&(b=u-g-8);let x=t-h-8;x<8&&(x=t+8),f.style.left=b+"px",f.style.top=x+"px",f.style.maxHeight=Math.min(520,p-x-16)+"px",M=!0,O(f)})}function jo(e,t){if(!f)return;J={x:e,y:t},$=!1,Le();let o=f.querySelector(".aih-result-suggestions");o&&(o.style.display="none");let n=f.querySelector(".aih-followup-input");n&&(n.value=""),ge(null),le(),O(f),f.style.display="flex";let i=f.querySelector(".aih-result-body");i.innerHTML=`<div class="aih-result-loading"><div class="aih-spinner"></div>${c("selToolbar.aiThinking")}</div>`,Bt(f,e,t),M=!0,L()}function Ht(e,t,o){if(!f)return;$=!1,K="",ge(null),Le(),O(f),f.style.display="flex";let n=f.querySelector(".aih-result-body");n.innerHTML=`<div class="aih-result-error">${c("selToolbar.requestFailed",{msg:te(o)})}</div>`,Bt(f,e,t),M=!0}function Bt(e,t,o){let n=window.innerWidth,i=window.innerHeight;e.style.left="-9999px",e.style.top="-9999px",requestAnimationFrame(()=>{let a=e.getBoundingClientRect(),l=a.width||420,r=Math.min(a.height||200,520),s=t-l/2;s<8&&(s=8),s+l>n-8&&(s=n-l-8);let d=o-r-8;d<8&&(d=o+8),e.style.left=s+"px",e.style.top=d+"px",e.style.maxHeight=Math.min(520,i-d-16)+"px",O(e)})}function oe(){f&&(f.style.display="none",M=!1,$=!1,K="",le(),Le())}function Vo(){$=!$,Le()}function Le(){if(!f)return;let e=f.querySelector(".aih-result-lock");e&&($?(e.innerHTML=S.lock,e.classList.add("locked"),e.title=c("selToolbar.unlockWindow")):(e.innerHTML=S.unlock,e.classList.remove("locked"),e.title=c("selToolbar.lockWindow")))}function Oe(e){if(!e||!q())return;let t=w||Re||"";try{chrome.runtime.sendMessage({type:"DIRECT_SEND",text:e,selectedText:t}).catch(o=>{E.error("[SelectionToolbar] sendfollow-up tosidebar failed:",o)})}catch{}}function Yo(e,t){if(!(!e||!q()))try{chrome.runtime.sendMessage({type:"DIRECT_SEND",text:e,selectedText:t||""}).catch(o=>{E.error("[SelectionToolbar] send to sidesidebar failed:",o)})}catch{}}function te(e){let t=document.createElement("div");return t.textContent=e,t.innerHTML}function Xo(){if(ve)return;ve=!0;let e=Me;requestAnimationFrame(()=>{ve=!1,e===Me&&Zo()})}function Zo(){if(!f||!M||!Y)return;let e=f.querySelector(".aih-result-body");if(!e)return;let t=Y,o=t.indexOf("---SUGGESTIONS---");o!==-1&&(t=t.substring(0,o));let n=f.querySelector(".aih-result-scroll"),i=!n||n.scrollTop+n.clientHeight>=n.scrollHeight-24;e.innerHTML='<div class="aih-result-content-stream">'+Qo(t)+"</div>",i&&n&&(n.scrollTop=n.scrollHeight)}function Qo(e){if(typeof marked>"u")return te(e).replace(/\n/g,"<br>");let t=(e.match(/```/g)||[]).length%2==1?e+"\n```":e;return marked.parse(t)}function qe(e){return!e||e<=0?"0":e<1e3?String(e):e<1e4?Math.round(e/100)/10+"K":e<1e6?Math.round(e/1e3)+"K":Math.round(e/1e5)/10+"M"}function ge(e){if(!f)return;Rt=e||null;let t=f.querySelector(".aih-result-token");if(!t)return;let o=e&&(e.total_tokens||(e.prompt_tokens||0)+(e.completion_tokens||0));if(!o){t.style.display="none",t.textContent="",t.removeAttribute("title");return}t.innerHTML=`<span class="aih-token-dot">\u2B24</span>${qe(o)} tokens`,t.title=c("selToolbar.tokenUsageTitle",{input:qe(e.prompt_tokens||0),output:qe(e.completion_tokens||0)}),t.style.display="inline-flex"}function Ue(e){return!e&&e!==0?"0":Number(e).toLocaleString("en-US")}function le(){let e=document.querySelector(".aih-token-popup");e&&e.remove(),Xe=!1}function Jo(e){let t=Rt;if(!t)return;let o=t.total_tokens||(t.prompt_tokens||0)+(t.completion_tokens||0);if(!o)return;if(Xe){le();return}le();let n=t.prompt_tokens||0,i=t.completion_tokens||0,a=Math.round(n/o*100),l=Math.round(i/o*100),r=document.createElement("div");r.className="aih-token-popup",r.innerHTML=`
833
837
  <div class="aih-token-popup-header">
834
- <span class="aih-token-popup-title">${d("selToolbar.tokenPopupTitle")}</span>
838
+ <span class="aih-token-popup-title">${c("selToolbar.tokenPopupTitle")}</span>
835
839
  <button class="aih-token-popup-close" type="button" aria-label="close">\xD7</button>
836
840
  </div>
837
841
  <div class="aih-token-popup-body">
838
842
  <div class="aih-token-popup-row aih-token-popup-total">
839
- <span class="aih-token-popup-label">${d("selToolbar.tokenPopupTotal")}</span>
840
- <span class="aih-token-popup-value">${De(o)}</span>
843
+ <span class="aih-token-popup-label">${c("selToolbar.tokenPopupTotal")}</span>
844
+ <span class="aih-token-popup-value">${Ue(o)}</span>
841
845
  </div>
842
846
  <div class="aih-token-popup-divider"></div>
843
847
  <div class="aih-token-popup-row">
844
- <span class="aih-token-popup-label">${d("selToolbar.tokenPopupInput")}</span>
848
+ <span class="aih-token-popup-label">${c("selToolbar.tokenPopupInput")}</span>
845
849
  <div class="aih-token-popup-right">
846
- <span class="aih-token-popup-value">${De(n)}</span>
847
- <span class="aih-token-popup-percent">${i}%</span>
850
+ <span class="aih-token-popup-value">${Ue(n)}</span>
851
+ <span class="aih-token-popup-percent">${a}%</span>
848
852
  </div>
849
853
  </div>
850
854
  <div class="aih-token-popup-row">
851
- <span class="aih-token-popup-label">${d("selToolbar.tokenPopupOutput")}</span>
855
+ <span class="aih-token-popup-label">${c("selToolbar.tokenPopupOutput")}</span>
852
856
  <div class="aih-token-popup-right">
853
- <span class="aih-token-popup-value">${De(l)}</span>
854
- <span class="aih-token-popup-percent">${a}%</span>
857
+ <span class="aih-token-popup-value">${Ue(i)}</span>
858
+ <span class="aih-token-popup-percent">${l}%</span>
855
859
  </div>
856
860
  </div>
857
861
  </div>
858
- `,F(r),r.style.zIndex="2147483647",Oe=!0;let s=e.getBoundingClientRect(),c=r.getBoundingClientRect(),m=s.top-c.height-8>0?s.top-c.height-8:s.bottom+8,p=s.left+s.width/2-c.width/2;p=Math.max(8,Math.min(p,window.innerWidth-c.width-8)),m+c.height>window.innerHeight-8&&(m=window.innerHeight-c.height-8),r.style.top=m+"px",r.style.left=p+"px",r.querySelector(".aih-token-popup-close").addEventListener("click",g=>{g.stopPropagation(),oe()});let u=g=>{!r.contains(g.target)&&!e.contains(g.target)&&(oe(),document.removeEventListener("click",u,!0))};setTimeout(()=>{document.addEventListener("click",u,!0)},0)}function fe(e,t){if(!b||!w||P)return;F(b);let o=window.innerWidth,n=window.innerHeight;b.style.display="flex",lastToolbarShowTime=Date.now(),requestAnimationFrame(()=>{let l=b.getBoundingClientRect(),i=l.width||300,a=l.height||40,r=e-i/2;r<8&&(r=8),r+i>o-8&&(r=o-i-8);let s=t-a-10;s<8&&(s=t+10),s<8&&(s=8),s+a>n-8&&(s=n-a-8),b.style.left=r+"px",b.style.top=s+"px",L||=(b.classList.add("aih-show"),!0)})}function R(){!b||!L||(A&&(A=!1,xe="",re=null,b.classList.remove("aih-ask-mode"),b.style.width="",ce&&=(b.style.left=ce,"")),b.classList.remove("aih-show"),b.style.display="none",L=!1)}function So(){if(!b)return{x:0,y:0};let e=b.getBoundingClientRect();return{x:e.left+e.width/2,y:e.top}}function vo(e){let t=e.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top}}function Te(){if(!_()||!he)return;if(!N){let i=j();if(v.debug("[SelectionToolbar] iframe onSelectionChange text:",i.text?.substring(0,30),"currentSelectedText:",!!w,"pendingIframeSelection:",!!M),i.text&&i.text.length>=2){let a=me(i.range);M={text:i.text,x:a.x,y:a.y},v.debug("[SelectionToolbar] iframe pendingIframeSelection set")}else if(w){w="",M=null;try{chrome.runtime.sendMessage({type:"IFRAME_SELECTION_CLEAR"}).catch(()=>{})}catch{}}return}if(ie.length>0&&ie.includes(window.location.hostname)||rt)return;let e=window.getSelection(),t=e?e.toString().trim():"",o=null;if(t&&t.length>=2&&e.rangeCount>0)o=e.getRangeAt(0);else{let i=j();i.text&&i.text.length>=2&&(t=i.text,o=i.range)}if(!t||t.length<2){A||R(),w="",B=null;return}let n=5e3,l=t.length>n?t.substring(0,n)+"...":t;if(o){let i=o.commonAncestorContainer,a=i.nodeType===Node.TEXT_NODE?i.parentElement.closest("[contenteditable], input, textarea"):i.closest&&i.closest("[contenteditable], input, textarea");if(a instanceof HTMLElement&&(a.tagName==="INPUT"||a.tagName==="TEXTAREA")){R(),w="",B=null;return}}w=l,B=!0}function Co(e){if(!(b&&b.contains(e.target))&&!(f&&f.contains(e.target))&&!(e.target.closest&&e.target.closest(".aih-token-popup"))){if(de){de=!1;return}P&&!U&&X(),L&&!A&&R(),chrome.runtime.sendMessage({type:"IFRAME_CLICK_DISMISS"}).catch(()=>{})}}function Ao(e){if(v.debug("[SelectionToolbar] onMouseUp isTopFrame:",N,"pendingSelection:",B,"pendingIframeSelection:",!!M,"currentSelectedText:",!!w,"isToolbarVisible:",L,"toolbarEl:",!!b),(e.detail||1)>=3&&(de=!0),!N){if(M){de=!0,M.text,w=M.text;try{window.parent.postMessage({type:"IFRAME_SELECTION",text:M.text,x:M.x,y:M.y},"*")}catch{}try{chrome.runtime.sendMessage({type:"IFRAME_SELECTION",text:M.text,x:M.x,y:M.y}).catch(()=>{})}catch{}M=null}else(e.detail||1)>=3&&setTimeout(()=>{let t=j();if(!t.text||t.text.length<2)return;let o=me(t.range);t.text,w=t.text;try{window.parent.postMessage({type:"IFRAME_SELECTION",text:t.text,x:o.x,y:o.y},"*")}catch{}try{chrome.runtime.sendMessage({type:"IFRAME_SELECTION",text:t.text,x:o.x,y:o.y}).catch(()=>{})}catch{}},60);return}L||P||(B&&w?(de=!0,nt()):(e.detail||1)>=3&&setTimeout(()=>{A||(Te(),B&&w&&nt())},60))}function nt(){if(!B||!w||L)return;let e=window.innerWidth/2,t=window.innerHeight/2,o=window.getSelection();if(o&&o.rangeCount>0){let n=o.getRangeAt(0).getBoundingClientRect();(n.width>0||n.height>0)&&(e=n.left+n.width/2,t=n.top)}if(e===window.innerWidth/2&&t===window.innerHeight/2){let n=j();if(n.text&&n.text.length>=2){let l=me(n.range);e=l.x,t=l.y}}try{chrome.runtime.sendMessage({type:"IFRAME_CLICK_DISMISS"}).catch(()=>{})}catch{}fe(e,t),B=null}function Eo(){if(A)return;if(!N&&w){let o=j();if(o.text){let n=me(o.range);try{window.parent.postMessage({type:"IFRAME_SELECTION",text:o.text,x:n.x,y:n.y},"*")}catch{}try{chrome.runtime.sendMessage({type:"IFRAME_SELECTION",text:o.text,x:n.x,y:n.y}).catch(()=>{})}catch{}}return}if(!L)return;let e=window.getSelection();if(e&&e.rangeCount>0&&w){let o=e.getRangeAt(0).getBoundingClientRect();if(o.width>0||o.height>0){fe(o.left+o.width/2,o.top);return}}let t=j();if(t.text&&t.text.length>=2&&w){let o=me(t.range);fe(o.x,o.y);return}R()}function Po(){A||L&&R()}function ft(e,t){if(!t)return;if(Ce=t,e==="copy"){Ro(t),R();return}if(_e=e,Be="",["ai-search","explain","translate","summary"].includes(e)){qe(e,t);return}let o=D.find(n=>n.id===e);o&&(Be=o.systemPrompt||"",qe(e,t,o.systemPrompt))}function Ro(e){bt(e).then(()=>{Pe()}).catch(t=>{v.error("[SelectionToolbar] copy failed:",t),pe()})}function Io(){let e=q;e&&bt(e).then(()=>{Pe(d("selToolbar.copiedMarkdown"))}).catch(t=>{v.error("[SelectionToolbar] copyresult failed:",t),pe()})}function Mo(){let e=q;if(!e)return;let t=Lo(typeof marked<"u"?marked.parse(e):Q(e).replace(/\n/g,"<br>"));if(navigator.clipboard&&typeof ClipboardItem<"u")try{let o=new ClipboardItem({"text/html":new Blob([t],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})});navigator.clipboard.write([o]).then(()=>{Pe(d("selToolbar.copiedRich"))}).catch(n=>{v.error("[SelectionToolbar] richcopy failed:",n),it()});return}catch(o){v.error("[SelectionToolbar] richcopy failed:",o)}it()}function Lo(e){return`<!DOCTYPE html><html><head>
862
+ `,O(r),r.style.zIndex="2147483647",Xe=!0;let s=e.getBoundingClientRect(),d=r.getBoundingClientRect(),u=s.top-d.height-8>0?s.top-d.height-8:s.bottom+8,p=s.left+s.width/2-d.width/2;p=Math.max(8,Math.min(p,window.innerWidth-d.width-8)),u+d.height>window.innerHeight-8&&(u=window.innerHeight-d.height-8),r.style.top=u+"px",r.style.left=p+"px",r.querySelector(".aih-token-popup-close").addEventListener("click",g=>{g.stopPropagation(),le()});let m=g=>{!r.contains(g.target)&&!e.contains(g.target)&&(le(),document.removeEventListener("click",m,!0))};setTimeout(()=>{document.addEventListener("click",m,!0)},0)}function xe(e,t){if(!y||!w||M)return;O(y);let o=window.innerWidth,n=window.innerHeight;y.style.display="flex",lastToolbarShowTime=Date.now(),requestAnimationFrame(()=>{let i=y.getBoundingClientRect(),a=i.width||300,l=i.height||40,r=e-a/2;r<8&&(r=8),r+a>o-8&&(r=o-a-8);let s=t-l-10;s<8&&(s=t+10),s<8&&(s=8),s+l>n-8&&(s=n-l-8),y.style.left=r+"px",y.style.top=s+"px",F||=(y.classList.add("aih-show"),!0)})}function L(){!y||!F||(P&&(P=!1,Se="",de=null,y.classList.remove("aih-ask-mode"),y.style.width="",pe&&=(y.style.left=pe,"")),y.classList.remove("aih-show"),y.style.display="none",F=!1)}function en(){if(!y)return{x:0,y:0};let e=y.getBoundingClientRect();return{x:e.left+e.width/2,y:e.top}}function tn(e){let t=e.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top}}function Ce(){if(!q()||!we)return;if(!H){let a=Q();if(E.debug("[SelectionToolbar] iframe onSelectionChange text:",a.text?.substring(0,30),"currentSelectedText:",!!w,"pendingIframeSelection:",!!D),a.text&&a.text.length>=2){let l=fe(a.range);D={text:a.text,x:l.x,y:l.y},E.debug("[SelectionToolbar] iframe pendingIframeSelection set")}else if(w){w="",D=null;try{chrome.runtime.sendMessage({type:"IFRAME_SELECTION_CLEAR"}).catch(()=>{})}catch{}}return}if(re.length>0&&re.includes(window.location.hostname)||Pt)return;let e=window.getSelection(),t=e?e.toString().trim():"",o=null;if(t&&t.length>=2&&e.rangeCount>0)o=e.getRangeAt(0);else{let a=Q();a.text&&a.text.length>=2&&(t=a.text,o=a.range)}if(!t||t.length<2){P||L(),w="",U=null;return}let n=5e3,i=t.length>n?t.substring(0,n)+"...":t;if(o){let a=o.commonAncestorContainer,l=a.nodeType===Node.TEXT_NODE?a.parentElement.closest("[contenteditable], input, textarea"):a.closest&&a.closest("[contenteditable], input, textarea");if(l instanceof HTMLElement&&(l.tagName==="INPUT"||l.tagName==="TEXTAREA")){L(),w="",U=null;return}}w=i,U=!0}function on(e){if(!(y&&y.contains(e.target))&&!(f&&f.contains(e.target))&&!(e.target.closest&&e.target.closest(".aih-token-popup"))){if(me){me=!1;return}M&&!$&&oe(),F&&!P&&L(),chrome.runtime.sendMessage({type:"IFRAME_CLICK_DISMISS"}).catch(()=>{})}}function nn(e){if(E.debug("[SelectionToolbar] onMouseUp isTopFrame:",H,"pendingSelection:",U,"pendingIframeSelection:",!!D,"currentSelectedText:",!!w,"isToolbarVisible:",F,"toolbarEl:",!!y),(e.detail||1)>=3&&(me=!0),!H){if(D){me=!0,D.text,w=D.text;try{window.parent.postMessage({type:"IFRAME_SELECTION",text:D.text,x:D.x,y:D.y},"*")}catch{}try{chrome.runtime.sendMessage({type:"IFRAME_SELECTION",text:D.text,x:D.x,y:D.y}).catch(()=>{})}catch{}D=null}else(e.detail||1)>=3&&setTimeout(()=>{let t=Q();if(!t.text||t.text.length<2)return;let o=fe(t.range);t.text,w=t.text;try{window.parent.postMessage({type:"IFRAME_SELECTION",text:t.text,x:o.x,y:o.y},"*")}catch{}try{chrome.runtime.sendMessage({type:"IFRAME_SELECTION",text:t.text,x:o.x,y:o.y}).catch(()=>{})}catch{}},60);return}F||M||(U&&w?(me=!0,yt()):(e.detail||1)>=3&&setTimeout(()=>{P||(Ce(),U&&w&&yt())},60))}function yt(){if(!U||!w||F)return;let e=window.innerWidth/2,t=window.innerHeight/2,o=window.getSelection();if(o&&o.rangeCount>0){let n=o.getRangeAt(0).getBoundingClientRect();(n.width>0||n.height>0)&&(e=n.left+n.width/2,t=n.top)}if(e===window.innerWidth/2&&t===window.innerHeight/2){let n=Q();if(n.text&&n.text.length>=2){let i=fe(n.range);e=i.x,t=i.y}}try{chrome.runtime.sendMessage({type:"IFRAME_CLICK_DISMISS"}).catch(()=>{})}catch{}xe(e,t),U=null}function an(){if(P)return;if(!H&&w){let o=Q();if(o.text){let n=fe(o.range);try{window.parent.postMessage({type:"IFRAME_SELECTION",text:o.text,x:n.x,y:n.y},"*")}catch{}try{chrome.runtime.sendMessage({type:"IFRAME_SELECTION",text:o.text,x:n.x,y:n.y}).catch(()=>{})}catch{}}return}if(!F)return;let e=window.getSelection();if(e&&e.rangeCount>0&&w){let o=e.getRangeAt(0).getBoundingClientRect();if(o.width>0||o.height>0){xe(o.left+o.width/2,o.top);return}}let t=Q();if(t.text&&t.text.length>=2&&w){let o=fe(t.range);xe(o.x,o.y);return}L()}function ln(){P||F&&L()}function _t(e,t){if(!t)return;if(Re=t,e==="copy"){rn(t),L();return}if(Ve=e,Ye="",["ai-search","explain","translate","summary"].includes(e)){Ze(e,t);return}let o=_.find(n=>n.id===e);o&&(Ye=o.systemPrompt||"",Ze(e,t,o.systemPrompt))}function rn(e){Ot(e).then(()=>{Ne()}).catch(t=>{E.error("[SelectionToolbar] copy failed:",t),he()})}function sn(){let e=K;e&&Ot(e).then(()=>{Ne(c("selToolbar.copiedMarkdown"))}).catch(t=>{E.error("[SelectionToolbar] copyresult failed:",t),he()})}function cn(){let e=K;if(!e)return;let t=dn(typeof marked<"u"?marked.parse(e):te(e).replace(/\n/g,"<br>"));if(navigator.clipboard&&typeof ClipboardItem<"u")try{let o=new ClipboardItem({"text/html":new Blob([t],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})});navigator.clipboard.write([o]).then(()=>{Ne(c("selToolbar.copiedRich"))}).catch(n=>{E.error("[SelectionToolbar] richcopy failed:",n),wt()});return}catch(o){E.error("[SelectionToolbar] richcopy failed:",o)}wt()}function dn(e){return`<!DOCTYPE html><html><head>
859
863
  <style>
860
864
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.6; color: #24292f; }
861
865
  h1 { font-size: 24px; font-weight: bold; margin: 16px 0 8px; }
@@ -895,7 +899,7 @@ Question 3`}});var S={search:'<svg width="15" height="15" viewBox="0 0 24 24" fi
895
899
  a { color: #007bff; text-decoration: underline; }
896
900
  img { max-width: 100%; }
897
901
  </style>
898
- </head><body>${e}</body></html>`}function it(){let e=f&&f.querySelector(".aih-result-body");if(!e){pe();return}let t=window.getSelection(),o=[];for(let l=0;l<t.rangeCount;l++)o.push(t.getRangeAt(l).cloneRange());let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n);try{document.execCommand("copy")?Pe(d("selToolbar.copiedRich")):pe()}catch(l){v.error("[SelectionToolbar] fallback richcopy failed:",l),pe()}finally{t.removeAllRanges(),o.forEach(l=>t.addRange(l))}}async function bt(e){if(!navigator.clipboard)return at(e);try{await navigator.clipboard.writeText(e)}catch(t){if(t.name==="NotAllowedError"||t.name==="SecurityError")return at(e);throw t}}function at(e){return new Promise((t,o)=>{let n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.left="-9999px",n.style.opacity="0",F(n);try{n.select(),n.setSelectionRange(0,e.length),document.execCommand("copy")?t():o(Error("execCommand copy failed"))}catch(l){o(l)}finally{n.remove()}})}function pe(){let e=document.getElementById("aih-copy-toast");e&&e.remove();let t=document.createElement("div");t.id="aih-copy-toast",t.textContent=d("selToolbar.copyFailed"),t.style.cssText=`
902
+ </head><body>${e}</body></html>`}function wt(){let e=f&&f.querySelector(".aih-result-body");if(!e){he();return}let t=window.getSelection(),o=[];for(let i=0;i<t.rangeCount;i++)o.push(t.getRangeAt(i).cloneRange());let n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n);try{document.execCommand("copy")?Ne(c("selToolbar.copiedRich")):he()}catch(i){E.error("[SelectionToolbar] fallback richcopy failed:",i),he()}finally{t.removeAllRanges(),o.forEach(i=>t.addRange(i))}}async function Ot(e){if(!navigator.clipboard)return xt(e);try{await navigator.clipboard.writeText(e)}catch(t){if(t.name==="NotAllowedError"||t.name==="SecurityError")return xt(e);throw t}}function xt(e){return new Promise((t,o)=>{let n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.left="-9999px",n.style.opacity="0",O(n);try{n.select(),n.setSelectionRange(0,e.length),document.execCommand("copy")?t():o(Error("execCommand copy failed"))}catch(i){o(i)}finally{n.remove()}})}function he(){let e=document.getElementById("aih-copy-toast");e&&e.remove();let t=document.createElement("div");t.id="aih-copy-toast",t.textContent=c("selToolbar.copyFailed"),t.style.cssText=`
899
903
  position: fixed;
900
904
  top: 50%;
901
905
  left: 50%;
@@ -909,7 +913,7 @@ Question 3`}});var S={search:'<svg width="15" height="15" viewBox="0 0 24 24" fi
909
913
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
910
914
  pointer-events: none;
911
915
  animation: aih-toast-in 0.2s ease-out, aih-toast-out 0.2s 1.5s ease-in forwards;
912
- `,F(t),t.style.zIndex="2147483647",setTimeout(()=>t.remove(),1800)}function Pe(e){let t=document.getElementById("aih-copy-toast");t&&t.remove();let o=document.createElement("div");if(o.id="aih-copy-toast",o.textContent=e||d("selToolbar.copied"),o.style.cssText=`
916
+ `,O(t),t.style.zIndex="2147483647",setTimeout(()=>t.remove(),1800)}function Ne(e){let t=document.getElementById("aih-copy-toast");t&&t.remove();let o=document.createElement("div");if(o.id="aih-copy-toast",o.textContent=e||c("selToolbar.copied"),o.style.cssText=`
913
917
  position: fixed;
914
918
  top: 50%;
915
919
  left: 50%;
@@ -926,11 +930,11 @@ Question 3`}});var S={search:'<svg width="15" height="15" viewBox="0 0 24 24" fi
926
930
  `,!document.getElementById("aih-toast-anim")){let n=document.createElement("style");n.id="aih-toast-anim",n.textContent=`
927
931
  @keyframes aih-toast-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
928
932
  @keyframes aih-toast-out { from { opacity: 1; } to { opacity: 0; } }
929
- `,document.head.appendChild(n)}F(o),o.style.zIndex="2147483647",setTimeout(()=>o.remove(),1300)}function qe(e,t,o){if(!_()){v.warn("[SelectionToolbar] extensiontextexpired,pleaserefreshpage");return}let n={"ai-search":d("selToolbar.userMsgAisearch",{text:t}),explain:d("selToolbar.userMsgExplain",{text:t}),translate:d("selToolbar.userMsgTranslate",{text:t}),summary:d("selToolbar.userMsgSummary",{text:t})},l=o?`\u8BF7\u5904\u7406\u4EE5\u4E0B\u5185\u5BB9\uFF1A
933
+ `,document.head.appendChild(n)}O(o),o.style.zIndex="2147483647",setTimeout(()=>o.remove(),1300)}function Ze(e,t,o){if(!q()){E.warn("[SelectionToolbar] extensiontextexpired,pleaserefreshpage");return}let n={"ai-search":c("selToolbar.userMsgAisearch",{text:t}),explain:c("selToolbar.userMsgExplain",{text:t}),translate:c("selToolbar.userMsgTranslate",{text:t}),summary:c("selToolbar.userMsgSummary",{text:t})},i=o?`\u8BF7\u5904\u7406\u4EE5\u4E0B\u5185\u5BB9\uFF1A
930
934
 
931
- ${t}`:n[e]||t;if(e==="ai-search"){R(),window.getSelection().removeAllRanges();try{chrome.runtime.sendMessage({type:"SELECTION_TOOLBAR_ACTION",action:e,text:t,prompt:l}).catch(s=>{v.error("[SelectionToolbar] sendmessage failed:",s)})}catch{}return}mt();let i={"ai-search":d("optionsConst.aiSearch"),explain:d("optionsConst.explain"),translate:d("optionsConst.translate"),summary:d("optionsConst.summary")}[e];if(!i&&D){let s=D.find(c=>c.id===e);i=s?s.builtin&&be(s.id)||s.name:d("selToolbar.aiAnswer")}let a=f.querySelector(".aih-result-header span");a&&(a.innerHTML=`${S.sparkle} ${i||d("selToolbar.aiAnswer")}`);let r=P&&f?vo(f):So();fo(r.x,r.y);try{chrome.runtime.sendMessage({type:"SELECTION_TOOLBAR_ACTION",action:e,text:t,prompt:l,systemPrompt:o||""}).catch(s=>{v.error("[SelectionToolbar] sendmessage failed:",s),gt(r.x,r.y,s.message)})}catch{}}_()&&chrome.runtime.onMessage.addListener((e,t,o)=>{if(_()){if(e.type==="IFRAME_SELECTION"){if(!N)return;v.debug("[SelectionToolbar] recei to IFRAME_SELECTION text:",e.text?.substring(0,30),"isToolbarVisible:",L,"isResultVisible:",P),w=e.text;let n=e.x,l=e.y;if(window.top!==window&&window.frameElement)try{let i=window.frameElement.getBoundingClientRect();n=e.x-i.left,l=e.y-i.top}catch{}if(L&&b&&w){requestAnimationFrame(()=>{let i=window.innerWidth,a=b.offsetWidth||300,r=b.offsetHeight||40,s=n-a/2;s<8&&(s=8),s+a>i-8&&(s=i-a-8);let c=l-r-8;c<8&&(c=l+8),b.style.left=s+"px",b.style.top=c+"px"});return}B={x:n,y:l},w&&w.length>=2&&fe(n,l);return}if(e.type==="IFRAME_SELECTION_CLEAR"){if(!N)return;L&&!A&&(R(),w="");return}if(e.type==="IFRAME_CLICK_DISMISS"){L&&b&&Date.now()-lastToolbarShowTime>300&&(R(),w=""),P&&!U&&X();return}if(N){if(e.type==="SELECTION_TOOLBAR_STREAM_START"){$="",ke=!1,Ae++;return}if(e.type==="SELECTION_TOOLBAR_STREAM_CHUNK"){$+=e.delta||"",wo();return}if(e.type==="SELECTION_TOOLBAR_STREAM_DONE"){Ae++,e.finalContent&&($=e.finalContent);let n=$||d("selToolbar.noResponse");q=$;let l=n,i=[],a=n.indexOf("---SUGGESTIONS---");a!==-1&&(l=n.substring(0,a).trim(),q=l,i=n.substring(a+17).split(`
932
- `).map(s=>s.replace(/^[\d]+[\.\、\s]+/,"").trim()).filter(s=>s.length>0).slice(0,3));let r=typeof marked<"u"?marked.parse(l):Q(l).replace(/\n/g,"<br>");ot(V.x,V.y,r,i),ue(e.usage),$="";return}if(e.type==="SELECTION_TOOLBAR_RESULT")if(e.error)q="",ue(null),gt(V.x,V.y,e.error);else{let n=e.content||d("selToolbar.noResponse"),l=n;q=n;let i=[],a=n.indexOf("---SUGGESTIONS---");a!==-1&&(l=n.substring(0,a).trim(),q=l,i=n.substring(a+17).split(`
933
- `).map(s=>s.replace(/^[\d]+[\.\、\s]+/,"").trim()).filter(s=>s.length>0).slice(0,3));let r=typeof marked<"u"?marked.parse(l):Q(l).replace(/\n/g,"<br>");ot(V.x,V.y,r,i),ue(e.usage)}}}});function No(){if(!_())return;let e=window.location.hostname;try{chrome.storage.local.get(["blockedDomains"],t=>{try{let o=t.blockedDomains||[];o.includes(e)||(o.push(e),chrome.storage.local.set({blockedDomains:o},()=>{ie=o,R(),X(),w=""}))}catch{}})}catch{}}function Do(){_()&&chrome.storage.local.get(["enableSelectionToolbar","blockedDomains"],e=>{he=e.enableSelectionToolbar===void 0||!!e.enableSelectionToolbar,ie=e.blockedDomains||[],v.debug("[SelectionToolbar] toggle state:",he?"enabled":"disabled","blocked domains:",ie.length)})}_()&&chrome.storage.onChanged.addListener((e,t)=>{_()&&(t==="local"&&e.enableSelectionToolbar&&(he=!!e.enableSelectionToolbar.newValue,he||(R(),X(),w="")),t==="local"&&e.blockedDomains&&(ie=e.blockedDomains.newValue||[]),t==="local"&&e.toolbarTools&&tt())}),Ve(()=>{tt(),b&&=(b.remove(),null),pt(),f&&(f.remove(),f=null,P=!1,U=!1,q="")});function Fo(){po(),pt(),mt(),Do(),document.addEventListener("selectionchange",Te),document.addEventListener("click",Co,!0),document.addEventListener("mouseup",Ao,!0),window.addEventListener("scroll",Eo,!0),window.addEventListener("resize",Po),window.addEventListener("message",e=>{if(e.data?.type==="IFRAME_SELECTION"&&N){if(P){w="",B=null;return}w=e.data.text;let t=e.data.x,o=e.data.y;if(window.top!==window&&window.frameElement)try{let n=window.frameElement.getBoundingClientRect();t=e.data.x-n.left,o=e.data.y-n.top}catch{}if(L&&b&&w){requestAnimationFrame(()=>{let n=window.innerWidth,l=b.offsetWidth||300,i=b.offsetHeight||40,a=t-l/2;a<8&&(a=8),a+l>n-8&&(a=n-l-8);let r=o-i-8;r<8&&(r=o+8),b.style.left=a+"px",b.style.top=r+"px"});return}B={x:t,y:o},w&&w.length>=2&&fe(t,o);return}e.data?.type==="IFRAME_CLICK_DISMISS"&&N&&P&&!U&&X()}),N&&(Me=Fe(Te),new MutationObserver(()=>{Pt(Me),Me=Fe(Te)}).observe(document.body,{childList:!0,subtree:!0})),v.debug("[SelectionToolbar] initialization complete",N?"(toplayerframe)":"(subframe)")}C("zh",{contentIndex:{invalidRef:"\u65E0\u6548\u7684\u5143\u7D20\u7F16\u53F7 ref={ref}\uFF0C\u8BF7\u5148\u8C03\u7528 query_elements",regionSelectHint:"\u62D6\u62FD\u9009\u62E9\u622A\u56FE\u533A\u57DF\uFF0C\u6309 Esc \u53D6\u6D88"}}),C("en",{contentIndex:{invalidRef:"Invalid element ref={ref}; please call query_elements first",regionSelectHint:"Drag to select the screenshot area; press Esc to cancel"}});var Ho=Ze();console.log("[ContentScript] content script loaded URL:",window.location.href,"isTopFrame:",window.top===window,"hasBody:",!!document.body),document.addEventListener("keydown",e=>{if((e.ctrlKey||e.metaKey)&&e.shiftKey&&e.key==="A"){e.preventDefault();try{chrome.action.click()}catch{}}if(e.altKey&&!e.shiftKey&&e.code==="KeyS"&&!e.ctrlKey&&!e.metaKey){e.preventDefault();try{chrome.runtime.sendMessage({type:"CAPTURE_TAB_FROM_PAGE"})}catch{}}if(e.altKey&&e.shiftKey&&e.code==="KeyS"&&!e.ctrlKey&&!e.metaKey){e.preventDefault();try{chrome.runtime.sendMessage({type:"CAPTURE_REGION_FROM_PAGE"})}catch{}}});var _o={GET_PAGE_TEXT:e=>Kt(e),GET_FULL_HTML:e=>zt(e),QUERY_ELEMENTS:e=>Bt(e),GET_SELECTED_CONTENT:e=>Gt(e.format),INTERACT_ELEMENT:e=>e.ref==null?e.text?ao(e.text,{tag:e.tag,action:e.action,waitTime:e.waitTime,timeout:e.timeout}):e.action==="hover"?Vt(e.selector):Zt(e.selector,e.waitTime,e.timeout):qt(e.ref,e.action,{waitTime:e.waitTime,timeout:e.timeout}),FILL_FORM:e=>Xt(e.fields,e.waitTime),SCROLL_TO:e=>e.target==="text"&&e.text?Ut(e.text,{maxScrolls:e.maxScrolls,pauseMs:e.pauseMs}):Jt(e),KEYBOARD_INPUT:e=>oo(e),FILE_UPLOAD:e=>io(e.selector,e.fileName,e.fileContent,e.fileType),EXTRACT_TABLE:e=>$t(e.selector,e.includeHeaders,e.format),EXTRACT_METADATA:()=>Mt(),EXTRACT_LINKS:e=>Lt(e.filterType,e.includeImages),EXTRACT_FORMS:e=>Nt(e.formSelector),EXTRACT_IMAGES:e=>Dt(e),SEARCH_IN_PAGE:e=>Ht(e),IFRAME_CONTENT:e=>Ft(e.selector,e.includeNested,e.maxLength),SCROLL_COLLECT:e=>Ot(e),HIGHLIGHT_TEXT:e=>Yt(e.text,e.color),MANAGE_STORAGE:e=>ro(e),INJECT_CSS:e=>uo(e.css,e.targetSelector,e.injectMode),COPY_TO_CLIPBOARD:e=>Wt(e.text),PASTE_FROM_CLIPBOARD:()=>jt(),WAIT_ELEMENT:e=>eo(e.selector,e.state,e.timeout),DRAG_DROP:e=>no(e.sourceSelector,e.targetSelector),SELECT_DROPDOWN:e=>{let t=e.triggerSelector;return e.ref!=null&&!t&&(t=_t(e.ref),!t)?{success:!1,error:d("contentIndex.invalidRef",{ref:e.ref})}:lo(t,e.optionText,e.optionSelector,e.timeout)},QRCODE:e=>co(e.content,e.size,e.errorCorrection,e.showImage),CLEAR_DATA:e=>{try{let t=[];return e.site?window.location.href.includes(new URL(e.site).hostname)&&(localStorage.clear(),sessionStorage.clear(),t.push("localStorage","sessionStorage")):(localStorage.clear(),sessionStorage.clear(),t.push("localStorage","sessionStorage")),{success:!0,cleared:t}}catch(t){return{success:!1,error:t.message}}},START_REGION_SELECTION:()=>qo(),GET_PAGE_METRICS:()=>({width:Math.max(document.documentElement.scrollWidth,document.body.scrollWidth||0,window.innerWidth),height:Math.max(document.documentElement.scrollHeight,document.body.scrollHeight||0,window.innerHeight)})},Bo=new Set(["COPY_TO_CLIPBOARD","PASTE_FROM_CLIPBOARD","WAIT_ELEMENT","DRAG_DROP","SELECT_DROPDOWN","QRCODE","START_REGION_SELECTION","INTERACT_ELEMENT","SCROLL_TO","KEYBOARD_INPUT"]),Oo=new Set(["GET_PAGE_TEXT","GET_FULL_HTML","EXTRACT_METADATA","EXTRACT_TABLE","IFRAME_CONTENT","QUERY_ELEMENTS","INTERACT_ELEMENT","SCROLL_TO"]);_()&&chrome.runtime.onMessage.addListener((e,t,o)=>{if(Oo.has(e.type)&&window.top!==window)return;if(e.action==="getSelectedText"){let i=window.getSelection()?.toString()?.trim()||"";if(i&&document.hasFocus())return o({text:i}),!0;let a=j();return a.text&&a.text.trim()&&document.hasFocus()&&o({text:a.text.trim()}),!0}let n=_o[e.type];if(!n)return;let l=n(e);if(Bo.has(e.type)||l instanceof Promise)return Promise.resolve(l).then(o),!0;o(l)}),window.addEventListener("error",e=>{e.message&&e.message.includes("Extension context invalidated")&&e.preventDefault()}),window.addEventListener("unhandledrejection",e=>{(e.reason?.message||String(e.reason)).includes("Extension context invalidated")&&e.preventDefault()}),Ho.then(()=>{Fo()});function qo(){return new Promise(e=>{let t=document.createElement("div");t.id="__region_select_overlay__",t.style.cssText=`
935
+ ${t}`:n[e]||t;if(e==="ai-search"){L(),window.getSelection().removeAllRanges();try{chrome.runtime.sendMessage({type:"SELECTION_TOOLBAR_ACTION",action:e,text:t,prompt:i}).catch(s=>{E.error("[SelectionToolbar] sendmessage failed:",s)})}catch{}return}Ft();let a={"ai-search":c("optionsConst.aiSearch"),explain:c("optionsConst.explain"),translate:c("optionsConst.translate"),summary:c("optionsConst.summary")}[e];if(!a&&_){let s=_.find(d=>d.id===e);a=s?s.builtin&&Te(s.id)||s.name:c("selToolbar.aiAnswer")}let l=f.querySelector(".aih-result-header span");l&&(l.innerHTML=`${S.sparkle} ${a||c("selToolbar.aiAnswer")}`);let r=M&&f?tn(f):en();jo(r.x,r.y);try{chrome.runtime.sendMessage({type:"SELECTION_TOOLBAR_ACTION",action:e,text:t,prompt:i,systemPrompt:o||""}).catch(s=>{E.error("[SelectionToolbar] sendmessage failed:",s),Ht(r.x,r.y,s.message)})}catch{}}q()&&chrome.runtime.onMessage.addListener((e,t,o)=>{if(q()){if(e.type==="IFRAME_SELECTION"){if(!H)return;E.debug("[SelectionToolbar] recei to IFRAME_SELECTION text:",e.text?.substring(0,30),"isToolbarVisible:",F,"isResultVisible:",M),w=e.text;let n=e.x,i=e.y;if(window.top!==window&&window.frameElement)try{let a=window.frameElement.getBoundingClientRect();n=e.x-a.left,i=e.y-a.top}catch{}if(F&&y&&w){requestAnimationFrame(()=>{let a=window.innerWidth,l=y.offsetWidth||300,r=y.offsetHeight||40,s=n-l/2;s<8&&(s=8),s+l>a-8&&(s=a-l-8);let d=i-r-8;d<8&&(d=i+8),y.style.left=s+"px",y.style.top=d+"px"});return}U={x:n,y:i},w&&w.length>=2&&xe(n,i);return}if(e.type==="IFRAME_SELECTION_CLEAR"){if(!H)return;F&&!P&&(L(),w="");return}if(e.type==="IFRAME_CLICK_DISMISS"){F&&y&&Date.now()-lastToolbarShowTime>300&&(L(),w=""),M&&!$&&oe();return}if(H){if(e.type==="SELECTION_TOOLBAR_STREAM_START"){Y="",ve=!1,Me++;return}if(e.type==="SELECTION_TOOLBAR_STREAM_CHUNK"){Y+=e.delta||"",Xo();return}if(e.type==="SELECTION_TOOLBAR_STREAM_DONE"){Me++,e.finalContent&&(Y=e.finalContent);let n=Y||c("selToolbar.noResponse");K=Y;let i=n,a=[],l=n.indexOf("---SUGGESTIONS---");l!==-1&&(i=n.substring(0,l).trim(),K=i,a=n.substring(l+17).split(`
936
+ `).map(s=>s.replace(/^[\d]+[\.\、\s]+/,"").trim()).filter(s=>s.length>0).slice(0,3));let r=typeof marked<"u"?marked.parse(i):te(i).replace(/\n/g,"<br>");bt(J.x,J.y,r,a),ge(e.usage),Y="";return}if(e.type==="SELECTION_TOOLBAR_RESULT")if(e.error)K="",ge(null),Ht(J.x,J.y,e.error);else{let n=e.content||c("selToolbar.noResponse"),i=n;K=n;let a=[],l=n.indexOf("---SUGGESTIONS---");l!==-1&&(i=n.substring(0,l).trim(),K=i,a=n.substring(l+17).split(`
937
+ `).map(s=>s.replace(/^[\d]+[\.\、\s]+/,"").trim()).filter(s=>s.length>0).slice(0,3));let r=typeof marked<"u"?marked.parse(i):te(i).replace(/\n/g,"<br>");bt(J.x,J.y,r,a),ge(e.usage)}}}});function un(){if(!q())return;let e=window.location.hostname;try{chrome.storage.local.get(["blockedDomains"],t=>{try{let o=t.blockedDomains||[];o.includes(e)||(o.push(e),chrome.storage.local.set({blockedDomains:o},()=>{re=o,L(),oe(),w=""}))}catch{}})}catch{}}function pn(){q()&&chrome.storage.local.get(["enableSelectionToolbar","blockedDomains"],e=>{we=e.enableSelectionToolbar===void 0||!!e.enableSelectionToolbar,re=e.blockedDomains||[],E.debug("[SelectionToolbar] toggle state:",we?"enabled":"disabled","blocked domains:",re.length)})}q()&&chrome.storage.onChanged.addListener((e,t)=>{q()&&(t==="local"&&e.enableSelectionToolbar&&(we=!!e.enableSelectionToolbar.newValue,we||(L(),oe(),w="")),t==="local"&&e.blockedDomains&&(re=e.blockedDomains.newValue||[]),t==="local"&&e.toolbarTools&&ft())}),it(()=>{ft(),y&&=(y.remove(),null),Dt(),f&&(f.remove(),f=null,M=!1,$=!1,K="")});function mn(){$o(),Dt(),Ft(),pn(),document.addEventListener("selectionchange",Ce),document.addEventListener("click",on,!0),document.addEventListener("mouseup",nn,!0),window.addEventListener("scroll",an,!0),window.addEventListener("resize",ln),window.addEventListener("message",e=>{if(e.data?.type==="IFRAME_SELECTION"&&H){if(M){w="",U=null;return}w=e.data.text;let t=e.data.x,o=e.data.y;if(window.top!==window&&window.frameElement)try{let n=window.frameElement.getBoundingClientRect();t=e.data.x-n.left,o=e.data.y-n.top}catch{}if(F&&y&&w){requestAnimationFrame(()=>{let n=window.innerWidth,i=y.offsetWidth||300,a=y.offsetHeight||40,l=t-i/2;l<8&&(l=8),l+i>n-8&&(l=n-i-8);let r=o-a-8;r<8&&(r=o+8),y.style.left=l+"px",y.style.top=r+"px"});return}U={x:t,y:o},w&&w.length>=2&&xe(t,o);return}e.data?.type==="IFRAME_CLICK_DISMISS"&&H&&M&&!$&&oe()}),H&&(_e=Ke(Ce),new MutationObserver(()=>{Zt(_e),_e=Ke(Ce)}).observe(document.body,{childList:!0,subtree:!0})),E.debug("[SelectionToolbar] initialization complete",H?"(toplayerframe)":"(subframe)")}A("zh",{contentIndex:{invalidRef:"\u65E0\u6548\u7684\u5143\u7D20\u7F16\u53F7 ref={ref}\uFF0C\u8BF7\u5148\u8C03\u7528 query_elements",regionSelectHint:"\u62D6\u62FD\u9009\u62E9\u622A\u56FE\u533A\u57DF\uFF0C\u6309 Esc \u53D6\u6D88"}}),A("en",{contentIndex:{invalidRef:"Invalid element ref={ref}; please call query_elements first",regionSelectHint:"Drag to select the screenshot area; press Esc to cancel"}});var gn=lt();console.log("[ContentScript] content script loaded URL:",window.location.href,"isTopFrame:",window.top===window,"hasBody:",!!document.body),document.addEventListener("keydown",e=>{if((e.ctrlKey||e.metaKey)&&e.shiftKey&&e.key==="A"){e.preventDefault();try{chrome.action.click()}catch{}}if(e.altKey&&!e.shiftKey&&e.code==="KeyS"&&!e.ctrlKey&&!e.metaKey){e.preventDefault();try{chrome.runtime.sendMessage({type:"CAPTURE_TAB_FROM_PAGE"})}catch{}}if(e.altKey&&e.shiftKey&&e.code==="KeyS"&&!e.ctrlKey&&!e.metaKey){e.preventDefault();try{chrome.runtime.sendMessage({type:"CAPTURE_REGION_FROM_PAGE"})}catch{}}});var hn={GET_PAGE_TEXT:e=>To(e),GET_FULL_HTML:e=>ko(e),QUERY_ELEMENTS:e=>ho(e),SNAPSHOT_COLLECT:e=>window.top!==window&&!po()?{success:!0,visible:!1}:Et({filterByText:e.filterByText,elementTypes:e.elementTypes,frames:e.frames==="none"?"none":"auto"}),GET_SELECTED_CONTENT:e=>So(e.format),INTERACT_ELEMENT:e=>e.ref==null?e.text?Bo(e.text,{tag:e.tag,action:e.action,waitTime:e.waitTime,timeout:e.timeout}):e.action==="hover"?Eo(e.selector):Po(e.selector,e.waitTime,e.timeout):yo(e.ref,e.action,{waitTime:e.waitTime,timeout:e.timeout,value:e.value,clear:e.clear,submit:e.submit}),FILL_FORM:e=>Ro(e.fields,e.waitTime),SCROLL_TO:e=>e.target==="text"&&e.text?xo(e.text,{maxScrolls:e.maxScrolls,pauseMs:e.pauseMs}):Mo(e),KEYBOARD_INPUT:e=>Do(e),FILE_UPLOAD:e=>Ho(e.selector,e.fileName,e.fileContent,e.fileType),EXTRACT_TABLE:e=>vo(e.selector,e.includeHeaders,e.format),EXTRACT_METADATA:()=>Qt(),EXTRACT_LINKS:e=>Jt(e.filterType,e.includeImages),EXTRACT_FORMS:e=>eo(e.formSelector),EXTRACT_IMAGES:e=>to(e),SEARCH_IN_PAGE:e=>no(e),IFRAME_CONTENT:e=>oo(e.selector,e.includeNested,e.maxLength),SCROLL_COLLECT:e=>bo(e),HIGHLIGHT_TEXT:e=>Io(e.text,e.color),MANAGE_STORAGE:e=>Oo(e),INJECT_CSS:e=>Ko(e.css,e.targetSelector,e.injectMode),COPY_TO_CLIPBOARD:e=>Co(e.text),PASTE_FROM_CLIPBOARD:()=>Ao(),WAIT_ELEMENT:e=>Lo(e.selector,e.state,e.timeout),DRAG_DROP:e=>Fo(e.sourceSelector,e.targetSelector),SELECT_DROPDOWN:e=>{let t=e.triggerSelector;if(e.ref!=null&&!t){let o=Qe(e.ref);if(!o.element)return{success:!1,error:c("contentIndex.invalidRef",{ref:e.ref}),...o.suggestions&&o.suggestions.length?{suggestions:o.suggestions}:{}};t=o.entry.selector}return _o(t,e.optionText,e.optionSelector,e.timeout)},QRCODE:e=>Uo(e.content,e.size,e.errorCorrection,e.showImage),CLEAR_DATA:e=>{try{let t=[];return e.site?window.location.href.includes(new URL(e.site).hostname)&&(localStorage.clear(),sessionStorage.clear(),t.push("localStorage","sessionStorage")):(localStorage.clear(),sessionStorage.clear(),t.push("localStorage","sessionStorage")),{success:!0,cleared:t}}catch(t){return{success:!1,error:t.message}}},START_REGION_SELECTION:()=>yn(),GET_PAGE_METRICS:()=>({width:Math.max(document.documentElement.scrollWidth,document.body.scrollWidth||0,window.innerWidth),height:Math.max(document.documentElement.scrollHeight,document.body.scrollHeight||0,window.innerHeight)})},fn=new Set(["COPY_TO_CLIPBOARD","PASTE_FROM_CLIPBOARD","WAIT_ELEMENT","DRAG_DROP","SELECT_DROPDOWN","QRCODE","START_REGION_SELECTION","INTERACT_ELEMENT","SCROLL_TO","KEYBOARD_INPUT"]),bn=new Set(["GET_PAGE_TEXT","GET_FULL_HTML","EXTRACT_METADATA","EXTRACT_TABLE","IFRAME_CONTENT","QUERY_ELEMENTS","INTERACT_ELEMENT","SCROLL_TO"]);q()&&chrome.runtime.onMessage.addListener((e,t,o)=>{if(bn.has(e.type)&&window.top!==window&&!e._frameRouted)return;if(e.action==="getSelectedText"){let a=window.getSelection()?.toString()?.trim()||"";if(a&&document.hasFocus())return o({text:a}),!0;let l=Q();return l.text&&l.text.trim()&&document.hasFocus()&&o({text:l.text.trim()}),!0}let n=hn[e.type];if(!n)return;let i=n(e);if(fn.has(e.type)||i instanceof Promise)return Promise.resolve(i).then(o),!0;o(i)}),window.addEventListener("error",e=>{e.message&&e.message.includes("Extension context invalidated")&&e.preventDefault()}),window.addEventListener("unhandledrejection",e=>{(e.reason?.message||String(e.reason)).includes("Extension context invalidated")&&e.preventDefault()}),gn.then(()=>{mn()});function yn(){return new Promise(e=>{let t=document.createElement("div");t.id="__region_select_overlay__",t.style.cssText=`
934
938
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
935
939
  z-index: 2147483647; cursor: crosshair;
936
940
  background: rgba(0, 0, 0, 0.15);
@@ -945,4 +949,4 @@ ${t}`:n[e]||t;if(e==="ai-search"){R(),window.getSelection().removeAllRanges();tr
945
949
  padding: 8px 20px; border-radius: 20px;
946
950
  background: rgba(0, 0, 0, 0.75); color: #fff;
947
951
  font-size: 14px; font-family: sans-serif;
948
- `,n.textContent=d("contentIndex.regionSelectHint");let l=0,i=0,a=!1;function r(p){return{x:p.clientX,y:p.clientY}}function s(p,u,g,h){let y=Math.min(p,g),x=Math.min(u,h),k=Math.abs(g-p),H=Math.abs(h-u);o.style.left=y+"px",o.style.top=x+"px",o.style.width=k+"px",o.style.height=H+"px",o.style.display="block"}function c(){t.remove(),o.remove(),n.remove(),document.removeEventListener("keydown",m,!0)}function m(p){p.key==="Escape"&&(p.preventDefault(),p.stopPropagation(),c(),e(null))}t.addEventListener("mousedown",p=>{if(p.button!==0)return;p.preventDefault(),p.stopPropagation();let{x:u,y:g}=r(p);l=u,i=g,a=!0,document.body.appendChild(o),document.body.appendChild(n)}),t.addEventListener("mousemove",p=>{if(!a)return;p.preventDefault();let{x:u,y:g}=r(p);s(l,i,u,g)}),t.addEventListener("mouseup",p=>{if(!a)return;p.preventDefault(),p.stopPropagation(),a=!1;let{x:u,y:g}=r(p),h={x:Math.min(l,u),y:Math.min(i,g),width:Math.abs(u-l),height:Math.abs(g-i)};if(c(),h.width<10||h.height<10){e(null);return}requestAnimationFrame(()=>e(h))}),document.addEventListener("keydown",m,!0),document.body.appendChild(t)})}})();
952
+ `,n.textContent=c("contentIndex.regionSelectHint");let i=0,a=0,l=!1;function r(p){return{x:p.clientX,y:p.clientY}}function s(p,m,g,h){let b=Math.min(p,g),x=Math.min(m,h),T=Math.abs(g-p),v=Math.abs(h-m);o.style.left=b+"px",o.style.top=x+"px",o.style.width=T+"px",o.style.height=v+"px",o.style.display="block"}function d(){t.remove(),o.remove(),n.remove(),document.removeEventListener("keydown",u,!0)}function u(p){p.key==="Escape"&&(p.preventDefault(),p.stopPropagation(),d(),e(null))}t.addEventListener("mousedown",p=>{if(p.button!==0)return;p.preventDefault(),p.stopPropagation();let{x:m,y:g}=r(p);i=m,a=g,l=!0,document.body.appendChild(o),document.body.appendChild(n)}),t.addEventListener("mousemove",p=>{if(!l)return;p.preventDefault();let{x:m,y:g}=r(p);s(i,a,m,g)}),t.addEventListener("mouseup",p=>{if(!l)return;p.preventDefault(),p.stopPropagation(),l=!1;let{x:m,y:g}=r(p),h={x:Math.min(i,m),y:Math.min(a,g),width:Math.abs(m-i),height:Math.abs(g-a)};if(d(),h.width<10||h.height<10){e(null);return}requestAnimationFrame(()=>e(h))}),document.addEventListener("keydown",u,!0),document.body.appendChild(t)})}})();