@auto-ai/agent 2.1.228 → 2.1.229

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 (89) hide show
  1. package/dist/safe-a/404/index.html +1 -1
  2. package/dist/safe-a/404.html +1 -1
  3. package/dist/safe-a/_next/static/chunks/09d02e9591b61315.js +1 -0
  4. package/dist/safe-a/_next/static/chunks/25dc1245911d9a8a.js +1 -0
  5. package/dist/safe-a/_next/static/chunks/2bca283f9a748f53.js +1 -0
  6. package/dist/safe-a/_next/static/chunks/34a220844c501fc9.js +1 -0
  7. package/dist/safe-a/_next/static/chunks/34ca8b17795bb784.js +1 -0
  8. package/dist/safe-a/_next/static/chunks/370739935030a6e1.js +1 -0
  9. package/dist/safe-a/_next/static/chunks/370edfe0c220e606.js +1 -0
  10. package/dist/safe-a/_next/static/chunks/3f2b00198d41e6bb.js +1 -0
  11. package/dist/safe-a/_next/static/chunks/4d8b306a3d3b6c49.js +1 -0
  12. package/dist/safe-a/_next/static/chunks/51267b470c3fec4b.js +1 -0
  13. package/dist/safe-a/_next/static/chunks/64260aa198e73a1f.css +1 -0
  14. package/dist/safe-a/_next/static/chunks/75b53b9a769f6739.js +1 -0
  15. package/dist/safe-a/_next/static/chunks/7bd6740fa10b5d49.js +1 -0
  16. package/dist/safe-a/_next/static/chunks/7eb1acc2520f374d.js +1 -0
  17. package/dist/safe-a/_next/static/chunks/8bfafed734ac3365.js +1 -0
  18. package/dist/safe-a/_next/static/chunks/8e50ce83132a32a8.js +1 -0
  19. package/dist/safe-a/_next/static/chunks/{5d79b7f202080232.js → b9531f00083cfcb1.js} +1 -1
  20. package/dist/safe-a/_next/static/chunks/b9646113d4c78d60.css +1 -0
  21. package/dist/safe-a/_next/static/chunks/c4ab65e8db4b41d4.js +1 -0
  22. package/dist/safe-a/_next/static/chunks/c96b9add562114cd.js +1 -0
  23. package/dist/safe-a/_next/static/chunks/cfd955c69ad0cb7c.js +1 -0
  24. package/dist/safe-a/_next/static/chunks/d16ce4066ef83fac.js +1 -0
  25. package/dist/safe-a/_next/static/chunks/da2337885d85abe7.js +1 -0
  26. package/dist/safe-a/_next/static/chunks/dbad72dfa476b9a0.js +1 -0
  27. package/dist/safe-a/_next/static/chunks/e8eefc9e3b46e99c.js +1 -0
  28. package/dist/safe-a/_next/static/chunks/ec3213604182c7c5.js +1 -0
  29. package/dist/safe-a/_next/static/chunks/f625496d56b8b411.js +1 -0
  30. package/dist/safe-a/_next/static/chunks/fec7e4e35f80ab99.js +1 -0
  31. package/dist/safe-a/_next/static/chunks/ff1a16fafef87110.js +1 -0
  32. package/dist/safe-a/index.html +2 -2
  33. package/dist/safe-a/index.txt +30 -28
  34. package/dist/safe-a/manage/about/index.html +2 -2
  35. package/dist/safe-a/manage/about/index.txt +30 -28
  36. package/dist/safe-a/manage/env/index.html +2 -2
  37. package/dist/safe-a/manage/env/index.txt +33 -31
  38. package/dist/safe-a/manage/geelib/index.html +2 -2
  39. package/dist/safe-a/manage/geelib/index.txt +33 -31
  40. package/dist/safe-a/manage/general/index.html +2 -2
  41. package/dist/safe-a/manage/general/index.txt +30 -28
  42. package/dist/safe-a/manage/git/index.html +2 -2
  43. package/dist/safe-a/manage/git/index.txt +33 -31
  44. package/dist/safe-a/manage/im/index.html +2 -2
  45. package/dist/safe-a/manage/im/index.txt +33 -31
  46. package/dist/safe-a/manage/index.html +2 -2
  47. package/dist/safe-a/manage/index.txt +27 -25
  48. package/dist/safe-a/manage/library/index.html +2 -2
  49. package/dist/safe-a/manage/library/index.txt +31 -29
  50. package/dist/safe-a/manage/mcp/index.html +2 -2
  51. package/dist/safe-a/manage/mcp/index.txt +31 -29
  52. package/dist/safe-a/manage/permissions/index.html +2 -2
  53. package/dist/safe-a/manage/permissions/index.txt +30 -28
  54. package/dist/safe-a/manage/skills/index.html +2 -2
  55. package/dist/safe-a/manage/skills/index.txt +31 -29
  56. package/dist/safe-a/manage/task/index.html +2 -2
  57. package/dist/safe-a/manage/task/index.txt +31 -29
  58. package/dist/safe-a/manage/teams/index.html +2 -2
  59. package/dist/safe-a/manage/teams/index.txt +31 -29
  60. package/dist/safe-a/manage/terminal/index.html +2 -0
  61. package/dist/safe-a/manage/terminal/index.txt +38 -0
  62. package/dist/safe-a/manage/tools/index.html +2 -2
  63. package/dist/safe-a/manage/tools/index.txt +31 -29
  64. package/package.json +6 -6
  65. package/dist/safe-a/_next/static/chunks/1289fc2bb1119e18.js +0 -1
  66. package/dist/safe-a/_next/static/chunks/27069b3f310e0a86.js +0 -1
  67. package/dist/safe-a/_next/static/chunks/291c07da1c127dc1.js +0 -1
  68. package/dist/safe-a/_next/static/chunks/3acf5ab47f7ac8fe.js +0 -1
  69. package/dist/safe-a/_next/static/chunks/43c4ed555aa7688a.js +0 -1
  70. package/dist/safe-a/_next/static/chunks/4a426c156537f974.js +0 -1
  71. package/dist/safe-a/_next/static/chunks/5208bff6c40e7fd0.js +0 -1
  72. package/dist/safe-a/_next/static/chunks/6677c64fd587e78c.js +0 -1
  73. package/dist/safe-a/_next/static/chunks/71668b2d16d048d8.js +0 -1
  74. package/dist/safe-a/_next/static/chunks/7defa1cc0271dd01.css +0 -1
  75. package/dist/safe-a/_next/static/chunks/91e0df5a4c9d0bcd.js +0 -1
  76. package/dist/safe-a/_next/static/chunks/9e37e70d0f4b69de.js +0 -1
  77. package/dist/safe-a/_next/static/chunks/9ee8d3b992ef970c.js +0 -1
  78. package/dist/safe-a/_next/static/chunks/a437ab944fe911da.js +0 -1
  79. package/dist/safe-a/_next/static/chunks/aab87c3b5c253757.js +0 -1
  80. package/dist/safe-a/_next/static/chunks/abdf99ba76e0f571.js +0 -1
  81. package/dist/safe-a/_next/static/chunks/b30ee3cb6af32088.js +0 -1
  82. package/dist/safe-a/_next/static/chunks/bbcb68bcca448018.js +0 -1
  83. package/dist/safe-a/_next/static/chunks/bf2c1c402dbcccdf.js +0 -1
  84. package/dist/safe-a/_next/static/chunks/da9d2b7d381c1953.js +0 -1
  85. package/dist/safe-a/_next/static/chunks/e8575bc1450f83ef.js +0 -1
  86. package/dist/safe-a/_next/static/chunks/e96518d9cb5cbe1e.js +0 -1
  87. /package/dist/safe-a/_next/static/{6V1592_KuRHKu2MxCBymu → CKN4dmqX3cDLLtdKmTIzy}/_buildManifest.js +0 -0
  88. /package/dist/safe-a/_next/static/{6V1592_KuRHKu2MxCBymu → CKN4dmqX3cDLLtdKmTIzy}/_clientMiddlewareManifest.json +0 -0
  89. /package/dist/safe-a/_next/static/{6V1592_KuRHKu2MxCBymu → CKN4dmqX3cDLLtdKmTIzy}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,t,r)=>{t.exports=e.r(76562)},85570,e=>{"use strict";e.s(["WorkspaceRuntimeContext",()=>r,"useWorkspaceRuntime",()=>n]);var t=e.i(71645);let r=(0,t.createContext)(null);function n(){let e=(0,t.useContext)(r);if(!e)throw Error("useWorkspaceRuntime must be used within WorkspaceShell");return e}},18253,86194,e=>{"use strict";e.s(["useGuardedAppNavigation",()=>u],18253),e.s(["AppNavigationProvider",()=>o,"useAppNavigation",()=>c],86194);var t=e.i(18050),r=e.i(71645),n=e.i(18566),s=e.i(97249),a=e.i(61196);let i=(0,r.createContext)(null);function l(e,t){var r;if(!t)return!1;let n=null!=(r=e.split("?")[0])?r:e,a=(0,s.normalizeAppPathname)(n),i=(0,s.normalizeAppPathname)(t);return i===a||i.startsWith("".concat(a,"/"))}function o(e){let{children:s}=e,o=(0,n.useRouter)(),c=(0,n.usePathname)(),[u,d]=(0,r.useTransition)(),[p,g]=(0,r.useState)(null),m=(0,a.useStageThreadFlyoutStore)(e=>e.confirmNavigateAway),f=(0,r.useCallback)(async e=>{!l(e,c)&&await m(e)&&(g(e),d(()=>{o.push(e)}))},[m,c,o]);(0,r.useEffect)(()=>{p&&l(p,c)&&!u&&g(null)},[u,p,c]);let h=(0,r.useMemo)(()=>({push:f,router:o,isNavigating:u||null!==p,navigatingHref:p}),[f,o,u,p]);return(0,t.jsx)(i.Provider,{value:h,children:s})}function c(){let e=(0,r.useContext)(i);if(!e)throw Error("useAppNavigation must be used within AppNavigationProvider");return e}function u(){let{push:e,router:t,isNavigating:r,navigatingHref:n}=c();return{push:e,router:t,isNavigating:r,navigatingHref:n}}},35064,68665,e=>{"use strict";e.s(["MANAGE_DEFAULT_HREF",()=>i,"MANAGE_ROUTE_META",()=>r,"getBridgeSidebarManageRoutes",()=>p,"getBridgeSidebarMoreRoutes",()=>g,"getDefaultManageRouteMeta",()=>c,"getManageRouteMeta",()=>l,"getManageRouteMetaByPathname",()=>o,"getManageRouteMetaBySlug",()=>h,"getManageRouteTabs",()=>m,"getManageSideNavGroups",()=>d,"getManageStaticParams",()=>u,"isManageRouteEnabled",()=>f,"isManageSideNavPath",()=>v],35064);var t=e.i(97249);let r=[{key:"task",slug:"task",label:"定时任务",title:"定时任务",description:"管理计划执行的任务与触发记录。",chrome:"feature",icon:"Task",enabled:!0,headerIcon:"Calendar",visibleInNav:!1,visibleInBridgeSidebar:!0},{key:"mcp",slug:"mcp",label:"MCP",title:"MCP管理",description:"管理外部工具与数据源。可以导入、编辑、移除或禁用 MCP 服务。",chrome:"feature",icon:"Mcp",headerIcon:"Mcp",enabled:!0,visibleInNav:!1,visibleInBridgeSidebar:!0},{key:"tools",slug:"tools",label:"Tools",title:"Tools管理",description:"管理当前 Agent 已挂载的Tools列表",chrome:"feature",icon:"Tool",headerIcon:"Tool",enabled:!0,visibleInNav:!1,visibleInBridgeSidebar:!0},{key:"skills",slug:"skills",label:"Skills",title:"Skills管理",description:"管理当前 Agent 已挂载的Skill",chrome:"feature",icon:"Skill",enabled:!0,headerIcon:"Skill",visibleInNav:!1,visibleInBridgeSidebar:!0},{key:"teams",slug:"teams",label:"Agent / Teams",title:"Agent / Teams 管理",description:"管理 Agent / Teams 团队与协作编排。",chrome:"feature",icon:"Teams",enabled:!0,visibleInNav:!1,headerIcon:"Agent2",visibleInBridgeSidebar:!0},{key:"library",slug:"library",label:"Workspace",title:"Workspace",description:"管理当前 Agent 的Workspace",chrome:"feature",icon:"Library",enabled:!0,visibleInNav:!1,headerIcon:"Library",visibleInBridgeSidebar:!1,visibleInBridgeSidebarMore:!0},{key:"terminal",slug:"terminal",label:"终端",title:"终端",description:"",chrome:"feature",icon:"Terminal",enabled:!0,visibleInNav:!1,visibleInBridgeSidebar:!1,visibleInBridgeSidebarMore:!0},{key:"env",slug:"env",label:"服务商",title:"服务商",description:"管理 API 服务商以访问模型。",chrome:"side-nav",icon:"Server",enabled:!0,visibleInNav:!0},{key:"git",slug:"git",label:"Git 设置",title:"Git 设置",description:"管理 Git 仓库与版本控制配置。",chrome:"side-nav",icon:"Brackets",enabled:!0,visibleInNav:!0},{key:"geelib",slug:"geelib",label:"Geelib 设置",title:"Geelib 设置",description:"管理极库云集成与任务同步配置。",chrome:"side-nav",icon:"Detail",enabled:!0,visibleInNav:!0},{key:"im",slug:"im",label:"IM 设置",title:"IM 设置",description:"管理即时通讯与消息通知配置。",chrome:"side-nav",icon:"MessageCircleQuestion",enabled:!0,visibleInNav:!0},{key:"permissions",slug:"permissions",label:"权限",title:"权限",description:"管理平台访问权限与角色策略。",chrome:"side-nav",enabled:!1,visibleInNav:!1},{key:"general",slug:"general",label:"通用",title:"通用",description:"平台通用配置与偏好设置。",chrome:"side-nav",enabled:!1,visibleInNav:!1},{key:"about",slug:"about",label:"关于",title:"关于",description:"版本信息与平台说明。",chrome:"side-nav",enabled:!0,visibleInNav:!1}].map(e=>{var r,n;let{children:s,...a}=e;return{...a,href:(0,t.buildSettingsHref)(e.slug),...s?{children:(r=e.slug,n=e.chrome,s.map(e=>{var s,a;let i="".concat(r,"/").concat(e.slug);return{...e,slug:i,href:(0,t.buildSettingsHref)(i),chrome:null!=(s=e.chrome)?s:n,enabled:null==(a=e.enabled)||a,visibleInNav:!1}}))}:{}}});function n(e){var t,r,n;return null!=(n=null==(t=e.children)?void 0:t.find(e=>e.enabled))?n:null==(r=e.children)?void 0:r[0]}function s(e,t){return e.replace(/\/+$/,"")===t.replace(/\/+$/,"")}function a(){var e,t,s;let a=null!=(s=null!=(t=null!=(e=r.find(e=>e.enabled&&e.visibleInNav&&"side-nav"===e.chrome))?e:r.find(e=>e.enabled&&"side-nav"===e.chrome))?t:r.find(e=>"side-nav"===e.chrome))?s:r[0],i=n(a);return i||a||r.flatMap(e=>{var t;return null!=(t=e.children)?t:[]})[0]}let i=a().href;function l(e){return r.find(t=>t.key===e)}function o(e){return(0,t.getSettingsRouteByPathname)(e,function(){let e=[];for(let n of r){var t;e.push(n),(null==(t=n.children)?void 0:t.length)&&e.push(...n.children)}return e}())}function c(){return a()}function u(){return[{route:[]},...r.flatMap(e=>{var t;let r=[e.slug.split("/")];return(null==(t=e.children)?void 0:t.length)&&r.push(...e.children.map(e=>e.slug.split("/"))),r}).map(e=>({route:e}))]}function d(){return[{items:r.filter(e=>e.enabled&&e.visibleInNav&&"side-nav"===e.chrome).map(e=>{let{label:t,href:r,icon:n}=e;return{label:t,href:r,icon:n}})}]}function p(){return r.filter(e=>e.enabled&&!0===e.visibleInBridgeSidebar&&void 0!==e.icon).map(e=>{let{key:t,label:r,href:n,icon:s,headerIcon:a}=e;return{key:t,label:r,href:n,icon:s,headerIcon:null!=a?a:s}})}function g(){return r.filter(e=>e.enabled&&!0===e.visibleInBridgeSidebarMore&&void 0!==e.icon).map(e=>{let{key:t,label:r,href:n,icon:s,headerIcon:a}=e;return{key:t,label:r,href:n,icon:s,headerIcon:null!=a?a:s}})}function m(e){for(let i of r){var t,a;if(!(null==(t=i.children)?void 0:t.length))continue;let r=i.children.find(t=>s(t.href,e.href));if(!r&&!s(i.href,e.href))continue;let l=null!=r?r:n(i),o=null!=(a=null==l?void 0:l.tabVariant)?a:i.tabVariant;if(!l||!o)break;return{activeValue:l.href,tabVariant:o,tabs:i.children.map(e=>({value:e.href,label:e.label,href:e.href,disabled:!e.enabled}))}}}function f(e){var t;return(null==(t=o(e))?void 0:t.enabled)!==!1}function h(e){for(let i of r){var t,s,a;if(i.slug===e){if(null==(s=i.children)?void 0:s.length)return null!=(a=n(i))?a:i;return i}let r=null==(t=i.children)?void 0:t.find(t=>t.slug===e);if(r)return r}}function v(e){if(!e)return!1;let n=r.filter(e=>"side-nav"===e.chrome);return(0,t.isSettingsRoutePath)(e,n)}e.s(["default",()=>y],68665);var b=e.i(18050),S=e.i(87968),x=e.i(75157);function y(e){let{className:t}=e;return(0,b.jsxs)("div",{className:(0,x.cn)("flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500",t),children:[(0,b.jsx)(S.Spinner,{})," 加载中"]})}},21199,41143,e=>{"use strict";e.s(["WorkspaceShell",()=>ee],21199);var t=e.i(18050),r=e.i(71645),n=e.i(18566),s=e.i(65934),a=e.i(36845),i=e.i(20090);let l={EVENT:{SESSION_META:"session.meta",SESSION_READY:"session.ready",SESSION_ERROR:"session.error",QUERY_PROGRESS:"query.progress",CONVERSATION_DELTA:"conversation.delta",RUN_LIFECYCLE:"run.lifecycle",HISTORY_REPLAY:"history.replay",TURN_TERMINAL:"turn.terminal",PERMISSION_REQUEST:"permission.request"}};e.s(["SCHEDULE_TOOL_NAME",()=>o,"buildScheduledTaskIndex",()=>g,"parseScheduleToolResult",()=>p,"partitionScheduledSegments",()=>m,"retainScheduledTriggerFlag",()=>u,"withScheduledTriggerMeta",()=>c],41143);let o="ScheduleTool";function c(e,t,r){return e&&"object"==typeof e&&(t||r)?{...e,...t?{__scheduledTrigger:!0}:{},...r?{__turnId:r}:{}}:e}function u(e,t){if(!e||"object"!=typeof e)return t;let r=e.data,n=!!r&&"object"==typeof r&&!0===r.scheduledTrigger,s=!0===e.scheduledTrigger||!0===e.__scheduledTrigger,a="string"==typeof e.turnId?e.turnId:"",i="string"==typeof e.__turnId?e.__turnId:"";return n||s||a||i?{...t,...n||s?{__scheduledTrigger:!0}:{},...a||i?{__turnId:a||i}:{}}:t}function d(e){return!!e&&"object"==typeof e&&!0===e.__scheduledTrigger}function p(e,t){if("string"==typeof e)try{let t=JSON.parse(e);if(t&&"object"==typeof t)return t}catch(e){}if(e&&"object"==typeof e)return e;if(t&&"object"==typeof t){let e=t.toolUseResult;if(e&&"object"==typeof e)return e}return null}function g(e){let t=new Map,r=new Map;for(let d of e){let e=v(d);for(let f of function(e){if(!e||"object"!=typeof e)return[];let t=e.message,r=null==t?void 0:t.content;return Array.isArray(r)?r.filter(e=>!!e&&"object"==typeof e):[]}(d)){var n,s,a,i,l,c,u,g,m,b;if("tool_use"===f.type&&f.name===o){let t="string"==typeof f.id?f.id:"";if(!t)continue;let n=(b=f.input)&&"object"==typeof b?b:{},s=function(e){if(null==e||""===e)return;let t=Number(e);return Number.isFinite(t)?t:void 0}(n.delayMinutes);r.set(t,{toolUseId:t,id:n.id,prompt:null!=(a=n.prompt)?a:"",delayMinutes:s,createdAt:e,status:"cancel"===n.action?"cancelled":"scheduled"});continue}if("tool_result"!==f.type||"string"!=typeof f.tool_use_id)continue;let h=r.get(f.tool_use_id);if(!h)continue;let v=p(f.content,d);if(!v){r.delete(f.tool_use_id);continue}let S=v.id||h.id||"pending-".concat(f.tool_use_id),x={id:S,prompt:null!=(i=h.prompt)?i:"",fireAt:null!=(c=null!=(l=null==(n=v.scheduleClock)?void 0:n.utcIso)?l:null==(s=v.scheduleClock)?void 0:s.localDateTime)?c:"",createdAt:null!=(u=h.createdAt)?u:"",delayMinutes:null!=(g=v.delayMinutes)?g:h.delayMinutes,cron:v.cron,recurring:v.recurring,status:v.error?"failed":null!=(m=h.status)?m:"scheduled"};t.set(S,x),r.delete(f.tool_use_id)}}for(let r of e){if(!d(r)||"user"!==f(r))continue;let e=h(r);if(e){for(let n of t.values())if(n.prompt===e&&"scheduled"===n.status){n.status="fired",n.firedTurnId=function(e){if(!e||"object"!=typeof e)return"";let t=e.__turnId;return"string"==typeof t?t:""}(r);break}}}return t}function m(e,t){let r=new Map,n=new Set,s=0;for(;s<e.length;){var a;if(!d(e[s])){s+=1;continue}let i=s,l=[];for(;s<e.length&&d(e[s]);)l.push(e[s]),s+=1;let o=s-1,c=null!=(a=l.filter(e=>"user"===f(e)).map(e=>h(e)).find(e=>e.trim().length>0))?a:"",u=v(l[0]),p=l.filter(e=>"user"!==f(e)),g=function(e,t){if(e&&t.trim()){for(let r of e.values())if(r.prompt===t)return r.id}}(t,c);r.set(i,{kind:"scheduledTurn",startIndex:i,endIndex:o,dispatchedPrompt:c,triggeredAt:u,taskId:g,assistantMessages:p});for(let e=i+1;e<=o;e+=1)n.add(e)}return{scheduledStarts:r,consumed:n}}function f(e){if(!e||"object"!=typeof e)return"";let t=e.type;if("string"==typeof t)return t;let r=e.message;return"string"==typeof(null==r?void 0:r.role)?r.role:""}function h(e){if(!e||"object"!=typeof e)return"";let t=e.message,r=null==t?void 0:t.content;return"string"==typeof r?r:Array.isArray(r)?r.map(e=>e&&"object"==typeof e?"text"===e.type&&"string"==typeof e.text?e.text:"markdown"===e.type&&"string"==typeof e.content?e.content:"":"").filter(Boolean).join("\n").trim():""}function v(e){var t;if(!e||"object"!=typeof e)return"";let r=e.message,n=r&&"object"==typeof r?r.timestamp:void 0,s=null!=(t=null!=n?n:e.timestamp)?t:e.ts;return"string"==typeof s?s:""}var b=e.i(70074),S=e.i(55227);function x(e){let t=Number(e);return Number.isFinite(t)?Math.max(0,Math.floor(t)):0}function y(e){let t=e&&"object"==typeof e?Number(e.protocolVersion):NaN;return"object"==typeof e&&null!==e&&"protocolVersion"in e&&Number.isFinite(t)&&3===t&&"string"==typeof e.type}let N=new Map;function A(e){if(!e||"object"!=typeof e)return"";if(("string"==typeof e.type?e.type:"unknown")===l.EVENT.TURN_TERMINAL){let t="string"==typeof e.resultText?e.resultText:"",r="string"==typeof e.reason?e.reason:"";return"resolved"==("resolved"===e.status?"resolved":"failed")?t:"turn.terminal failed: ".concat(r||"unknown")}try{return"```json\n".concat(JSON.stringify(e,null,2).slice(0,8e3),"\n```")}catch(t){return String(e)}}var j=e.i(87243),k=e.i(50711);async function I(e,t,r){var n;let a=String(e||"").trim();if(!a)return!1;let i=s.useAppStore.getState();if(a===(i.agentId.trim()||"qihoo"))return!1;let l=(null==r||null==(n=r.displayName)?void 0:n.trim())||a;i.startDraftSession(),i.resetAgentConfig(),i.setAgentId(a),i.setCurrentWorkspaceAgent({id:a,displayName:l});try{await t.loadSessions()}catch(e){}t.loadAgentConfig();let o=s.useAppStore.getState().sessionId.trim();return t.preferReconnect?t.reconnect():t.switchSession(o,a),!0}e.i(47167);var w=e.i(92413),T=e.i(55146),C=e.i(72064),E=e.i(46798),R=e.i(19455),M=e.i(85570),_=e.i(97249),L=e.i(75157),P=e.i(8279),z=e.i(52727),D=e.i(18253),B=e.i(87968);function W(e){let{collapsed:n,onGoToSettings:a}=e,{push:i}=(0,D.useGuardedAppNavigation)(),l=(0,s.useAppStore)(e=>e.currentWorkspaceAgent),o=(0,s.useAppStore)(e=>e.agentId),c=(0,s.useAppStore)(e=>e.wsUrl),u=(0,s.useAppStore)(e=>e.apiBase),d=(0,s.useAppStore)(e=>e.setCurrentWorkspaceAgent),{switchWorkspaceAgent:p}=(0,M.useWorkspaceRuntime)(),g=o.trim()||"qihoo",m=(null==l?void 0:l.id)===g&&l.displayName.trim()||g,f=(0,P.initialsFromLabel)(m),[h,v]=(0,r.useState)(!1),[b,S]=(0,r.useState)([]),[x,y]=(0,r.useState)(!1),[N,A]=(0,r.useState)(null),j=(0,r.useRef)(null),k=(0,r.useCallback)(()=>{j.current&&(clearTimeout(j.current),j.current=null)},[]),I=(0,r.useCallback)(()=>{k(),v(!0)},[k]),w=(0,r.useCallback)(()=>{k(),j.current=setTimeout(()=>{v(!1),j.current=null},120)},[k]),T=(0,r.useCallback)(()=>{v(!1),null==a||a()},[a]),W=(0,r.useCallback)(async e=>{let t=e.id.trim();v(!1),t&&t!==g&&await p(t,e.displayName)&&i((0,_.buildAppNavHref)("/",{ensureAgent:!0,agent:t,preserveSessionId:!1}))},[g,i,p]);(0,r.useEffect)(()=>{if(!h)return;let e=!1;return y(!0),A(null),S([]),(0,z.listAgents)(c,u).then(t=>{e||S(t)}).catch(t=>{e||A(String(t))}).finally(()=>{e||y(!1)}),()=>{e=!0}},[h,c,u]),(0,r.useEffect)(()=>{if(!b.length)return;let e=b.find(e=>e.id===g);e&&((null==l?void 0:l.id)!==e.id||l.displayName!==e.displayName)&&d(e)},[b,g,l,d]),(0,r.useEffect)(()=>()=>{j.current&&clearTimeout(j.current)},[]);let O=(0,t.jsx)(E.TooltipProvider,{delayDuration:150,side:n?"right":void 0,children:(0,t.jsxs)(E.Tooltip,{children:[(0,t.jsx)(E.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(R.Button,{type:"button",variant:"plain",size:n?"icon":"icon-sm",className:(0,L.cn)(n?"sidebar-collapsed-icon-btn !rounded-[10px] text-zinc-700":"text-[var(--ds-muted)] hover:bg-[var(--ds-color-surface-item-hover)] focus-visible:ring-2 focus-visible:ring-[var(--ds-color-accent)]"),"aria-label":"设置",onClick:T,children:(0,t.jsx)(C.default,{name:"Settings",size:16,strokeWidth:1.75,className:(0,L.cn)("shrink-0",n&&"text-zinc-700")})})}),(0,t.jsx)(E.TooltipContent,{side:n?"right":"top",children:(0,t.jsx)("p",{children:"设置"})})]})});return(0,t.jsxs)("div",{className:(0,L.cn)("shrink-0 border-t border-solid border-[var(--ds-color-border-default)] transition",n?"flex w-full flex-col items-center gap-1 p-[1rem_.75rem]":"flex items-center gap-2 p-[1rem_.75rem]"),onClick:n?e=>e.stopPropagation():void 0,children:[n?O:null,(0,t.jsxs)("div",{className:(0,L.cn)("relative min-w-0",!n&&"flex-1"),onMouseEnter:I,onMouseLeave:w,children:[(0,t.jsxs)("div",{className:(0,L.cn)("flex min-w-0 cursor-pointer items-center gap-2 rounded-lg px-0.5 py-0.5",n&&"w-full justify-center"),children:[(0,t.jsx)("span",{className:"inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold text-white",style:{background:"var(--avatar-bg)"},children:f}),n?null:(0,t.jsx)("span",{className:"min-w-0 truncate text-[var(--ds-text)]",children:m})]}),h?(0,t.jsx)("div",{className:"absolute bottom-full left-0 z-50 pb-2 shadow-[var(--shadow-float)]",onMouseEnter:I,onMouseLeave:w,children:(0,t.jsx)("div",{className:(0,L.cn)("flex max-h-[300px] w-[260px] max-w-[min(100vw-24px,260px)] flex-col overflow-hidden rounded-[var(--ds-radius-sm)] border border-solid border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)]","shadow-[var(--shadow-float)]"),children:(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-1.5",role:"listbox","aria-label":"切换 Agent",children:x?(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 px-2 py-3 text-[var(--ds-muted)]",children:[(0,t.jsx)(B.Spinner,{}),"加载中…"]}):N?(0,t.jsxs)("div",{className:"px-2 py-3 text-red-600",children:["加载失败: ",N]}):0===b.length?(0,t.jsx)("div",{className:"px-2 py-3 text-[var(--ds-muted)]",children:"暂无 agent"}):b.map(e=>{let r=e.id===g,n=(0,P.initialsFromLabel)(e.displayName);return(0,t.jsxs)("button",{type:"button",role:"option",className:"flex w-full cursor-pointer items-center gap-2 rounded-xl border-0 bg-transparent px-2 py-2 text-left hover:bg-[var(--ds-color-surface-item-hover)] focus-visible:outline-none","aria-selected":r,onClick:()=>W(e),children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-semibold text-white",style:{background:"var(--avatar-bg)"},children:n}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 leading-tight",children:[(0,t.jsx)("span",{className:"block truncate text-[var(--ds-text)]",children:e.displayName}),e.displayName!==e.id?(0,t.jsx)("span",{className:"block truncate text-xs text-[var(--ds-muted)]",children:e.id}):null]}),r?(0,t.jsx)("span",{className:"shrink-0","aria-label":"当前 Agent",children:(0,t.jsx)(C.default,{name:"Check",size:16,className:"text-[var(--ds-color-accent)]"})}):null]},e.id)})})})}):null]}),n?null:O]})}var O=e.i(35064);let F="bridge-sidebar-collapsed",U=[];function G(e){let{onNewSession:a,onSelectSession:i,deleteSessionById:l}=e,{push:o,router:c,isNavigating:u,navigatingHref:d}=(0,D.useGuardedAppNavigation)(),p=(0,n.usePathname)(),g=(0,s.useAppStore)(e=>e.lastSessions),m=(0,s.useAppStore)(e=>e.sessionId),f=(0,s.useAppStore)(e=>{var t;return null!=(t=e.messagesByRun.main)?t:U}),h=(0,s.useAppStore)(e=>e.pendingPrompt),v=(0,s.useAppStore)(e=>e.turnRunning),b=(0,r.useMemo)(()=>{var e;if(!m||g.some(e=>e.sessionId===m))return g;let t=f.find(e=>{var t;return(null==(t=e.message)?void 0:t.type)==="user"});if(!t&&!h)return g;let r="新对话";return h?r=h:"string"==typeof(null==t||null==(e=t.message)?void 0:e.message)&&(r=t.message.message),[{sessionId:m,summary:r,lastModified:Date.now(),createdAt:Date.now(),running:v},...g]},[g,m,f,h,v]),S=(0,s.useAppStore)(e=>e.brand),x=(0,s.useAppStore)(e=>e.agentId),[y,N]=(0,r.useState)(!1),A=(0,r.useRef)(!1),[j,k]=(0,r.useState)(null),[I,R]=(0,r.useState)(!0),M=(0,r.useMemo)(()=>(0,O.getBridgeSidebarManageRoutes)(),[]),L=(0,r.useMemo)(()=>(0,O.getBridgeSidebarMoreRoutes)(),[]),P=(0,r.useCallback)((e,t)=>(0,_.buildAppNavHref)(e,{ensureAgent:null==t?void 0:t.ensureAgent,agent:x,preserveSessionId:"/"===e&&!(null==t?void 0:t.clearSessionId),sessionId:null==t?void 0:t.sessionId}),[x]),z=(0,r.useCallback)(e=>{let t=(0,_.normalizeAppPathname)(p),r=(0,_.normalizeAppPathname)(e);return t===r||t.startsWith("".concat(r,"/"))},[p]),B=(0,r.useCallback)(e=>{o(P(e,{ensureAgent:!0}))},[o,P]),G=(0,r.useCallback)(e=>{var t;if(!u||!d)return!1;let r=(0,_.normalizeAppPathname)(null!=(t=d.split("?")[0])?t:d),n=(0,_.normalizeAppPathname)(e);return r===n||r.startsWith("".concat(n,"/"))},[u,d]),H=(0,r.useCallback)(e=>z(e)||G(e),[z,G]),V=(0,r.useMemo)(()=>L.some(e=>H(e.href)),[L,H]);(0,r.useEffect)(()=>{let e,t,r=[...["env"].flatMap(e=>{var t;let r=null==(t=(0,O.getManageRouteMeta)(e))?void 0:t.href;return r?[P(r,{ensureAgent:!0})]:[]}),...M.map(e=>P(e.href,{ensureAgent:!0})),...L.map(e=>P(e.href,{ensureAgent:!0}))],n=()=>{for(let e of r)try{c.prefetch(e)}catch(e){}},s=[];return"requestIdleCallback"in window?e=window.requestIdleCallback(n,{timeout:2500}):t=setTimeout(n,200),()=>{void 0!==e&&window.cancelIdleCallback(e),void 0!==t&&clearTimeout(t),s.forEach(e=>clearTimeout(e))}},[c,P,M,L]),(0,r.useEffect)(()=>{try{let e=window.localStorage.getItem(F);"true"===e&&N(!0)}catch(e){}finally{A.current=!0}},[]),(0,r.useEffect)(()=>{if(A.current)try{window.localStorage.setItem(F,String(y))}catch(e){}},[y]),(0,r.useEffect)(()=>{if(!j)return;let e=e=>{let t=e.target;!(!(t instanceof Element)||t.closest("[data-session-menu-wrap]"))&&(t.closest('[data-slot="dropdown-menu-content"]')||k(null))};return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0)},[j]);let q=(0,r.useCallback)(()=>{o(P(O.MANAGE_DEFAULT_HREF,{ensureAgent:!0}))},[o,P]);return(0,t.jsx)("aside",{className:"sidebar h-dvh max-h-dvh min-h-0 self-start overflow-hidden ".concat(y?"is-collapsed":""),"data-region":"sidebar-panels",onClick:()=>{y&&N(!1)},children:y?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col items-center gap-[10px] overflow-y-auto overscroll-contain pt-3",children:(0,t.jsxs)(E.TooltipProvider,{side:"right",children:[(0,t.jsx)("div",{className:"group relative flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center",onClick:e=>e.stopPropagation(),children:(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center transition-opacity group-hover:pointer-events-auto group-hover:opacity-100",children:(0,t.jsxs)(E.Tooltip,{children:[(0,t.jsx)(E.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:"sidebar-collapsed-icon-btn",title:"展开侧边栏","aria-label":"展开侧边栏",onClick:e=>{e.preventDefault(),e.stopPropagation(),N(!1)},children:(0,t.jsx)(C.default,{name:"Layout",size:17,color:"#8f8f8f"})})}),(0,t.jsx)(E.TooltipContent,{children:(0,t.jsx)("p",{children:"展开侧边栏"})})]})})}),(0,t.jsxs)(E.Tooltip,{children:[(0,t.jsx)(E.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:"sidebar-collapsed-icon-btn",title:"新聊天","aria-label":"新聊天",onClick:e=>{e.preventDefault(),e.stopPropagation(),a(),o(P("/",{clearSessionId:!0}))},children:(0,t.jsx)(C.default,{name:"Add",size:16,className:"text-zinc-900"})})}),(0,t.jsx)(E.TooltipContent,{children:(0,t.jsx)("p",{children:"新聊天"})})]}),M.map(e=>{let r=H(e.href),n=G(e.href);return(0,t.jsxs)(E.Tooltip,{children:[(0,t.jsx)(E.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:"sidebar-collapsed-icon-btn ".concat(r?"bg-[var(--ds-color-surface-item-active)] text-[var(--ds-color-accent)]":""),title:e.label,"aria-label":e.label,"aria-current":r?"page":void 0,"aria-busy":n,onClick:t=>{t.preventDefault(),t.stopPropagation(),B(e.href)},children:(0,t.jsx)(C.default,{name:n?"Loader2":e.icon,size:16,className:"".concat(r?"text-[var(--ds-color-accent)]":"text-zinc-900"," ").concat(n?"animate-spin":""),strokeWidth:1.2})})}),(0,t.jsx)(E.TooltipContent,{children:(0,t.jsx)("p",{children:e.label})})]},e.key)}),(0,t.jsxs)(T.DropdownMenu,{children:[(0,t.jsxs)(E.Tooltip,{children:[(0,t.jsx)(E.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(T.DropdownMenuTrigger,{type:"button",className:"sidebar-collapsed-icon-btn ".concat(V?"bg-[var(--ds-color-surface-item-active)] text-[var(--ds-color-accent)]":""),"aria-label":"更多",title:"更多",children:(0,t.jsx)(C.default,{name:"MoreHorizontal",size:16,className:V?"text-[var(--ds-color-accent)]":"text-zinc-900",strokeWidth:1.2})})}),(0,t.jsx)(E.TooltipContent,{children:(0,t.jsx)("p",{children:"更多"})})]}),(0,t.jsx)(T.DropdownMenuContent,{align:"start",side:"right",sideOffset:8,className:"w-[172px] min-w-[172px] rounded-[var(--ds-radius-sm)] border border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)] p-1.5",children:L.map(e=>{let r=H(e.href);return(0,t.jsxs)(T.DropdownMenuItem,{className:"h-9 rounded-xl px-2.5 text-[var(--ds-text)] hover:bg-[var(--ds-color-surface-item-active)] focus:bg-[var(--ds-color-surface-item-hover)] ".concat(r?"bg-[var(--ds-color-surface-item-active)] text-[var(--ds-color-accent)]":""),onClick:()=>{B(e.href)},children:[(0,t.jsx)(C.default,{name:e.icon,size:16,className:"text-[var(--ds-muted)]"}),e.label]},e.key)})})]})]})}),(0,t.jsx)("div",{className:"w-full shrink-0",onClick:e=>e.stopPropagation(),children:(0,t.jsx)(W,{collapsed:!0,onGoToSettings:q})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"sidebar-brand",children:(0,t.jsxs)("div",{className:"sidebar-brand-title-row flex items-center justify-between",children:[(0,t.jsx)("div",{className:"logo flex min-w-0 items-center gap-2",children:(0,t.jsx)("span",{className:"text-zinc-1000 truncate",children:S})}),(0,t.jsx)(E.TooltipProvider,{side:"right",children:(0,t.jsxs)(E.Tooltip,{children:[(0,t.jsx)(E.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:"sidebar-icon-btn",title:"收起侧边栏","aria-label":"收起侧边栏",onClick:e=>{e.preventDefault(),e.stopPropagation(),N(!0)},children:(0,t.jsx)(C.default,{name:"Layout",size:17,color:"#8f8f8f"})})}),(0,t.jsx)(E.TooltipContent,{children:(0,t.jsx)("p",{children:"收起侧边栏"})})]})})]})}),(0,t.jsx)("div",{className:"new-chat",children:(0,t.jsxs)("div",{className:"mb-4 ml-2 mr-2 mt-2 flex cursor-pointer items-center gap-2.5 rounded-2xl px-2 py-2 text-zinc-900 transition-colors hover:bg-white/70",title:"开启新对话","aria-label":"开启新对话",onClick:e=>{e.preventDefault(),a(),o(P("/",{clearSessionId:!0}))},children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--ds-color-surface-item-active)] text-[var(--ds-color-accent)]","aria-hidden":!0,children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:(0,t.jsx)("path",{d:"M12 5v14M5 12h14"})})}),(0,t.jsx)("span",{className:"min-w-0 font-medium",children:"新会话"})]})}),(0,t.jsxs)("div",{className:"sidebar-scroll-area",children:[(0,t.jsxs)("div",{className:"sidebar-drawers sidebar-drawers--nav px-[10px]",children:[M.map(e=>{let r=H(e.href),n=G(e.href);return(0,t.jsxs)("div",{className:"m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] ".concat(r?"bg-[var(--ds-color-surface-item-active)] text-[var(--ds-color-accent)]":"hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900"),role:"button",tabIndex:0,"aria-current":r?"page":void 0,"aria-busy":n,onClick:t=>{t.preventDefault(),t.stopPropagation(),B(e.href)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&B(e.href)},children:[(0,t.jsx)(C.default,{name:n?"Loader2":e.icon,size:16,className:"mr-3 text-zinc-900 ".concat(n?"animate-spin":""),strokeWidth:1.2}),(0,t.jsx)("span",{className:"text-zinc-900",children:e.label})]},e.key)}),(0,t.jsxs)(T.DropdownMenu,{children:[(0,t.jsxs)(T.DropdownMenuTrigger,{type:"button",className:"m-[.45rem_0_0] flex w-full cursor-pointer border-0 bg-transparent items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] ".concat(V?"bg-[var(--ds-color-surface-item-active)] text-[var(--ds-color-accent)]":"hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900"),"aria-label":"更多",children:[(0,t.jsx)(C.default,{name:"MoreHorizontal",size:16,className:"mr-3 text-zinc-900",strokeWidth:1.2}),(0,t.jsx)("span",{className:"text-zinc-900",children:"更多"})]}),(0,t.jsx)(T.DropdownMenuContent,{align:"start",side:"bottom",sideOffset:6,className:"w-[172px] min-w-[172px] rounded-[var(--ds-radius-sm)] border border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)] p-1.5",children:L.map(e=>{let r=H(e.href);return(0,t.jsxs)(T.DropdownMenuItem,{className:"h-9 rounded-xl px-2.5 text-[var(--ds-text)] hover:bg-[var(--ds-color-surface-item-active)] focus:bg-[var(--ds-color-surface-item-hover)] ".concat(r?"bg-[var(--ds-color-surface-item-active)] text-[var(--ds-color-accent)]":""),onClick:()=>{B(e.href)},children:[(0,t.jsx)(C.default,{name:e.icon,size:16,className:"text-[var(--ds-muted)]"}),e.label]},e.key)})})]})]}),(0,t.jsx)("div",{className:"sidebar-drawers sidebar-drawers--sessions ".concat(I?"is-open":"is-closed"),children:(0,t.jsxs)("div",{className:"sidebar-drawer m-[.35rem_.35rem_0] mt-4",children:[(0,t.jsxs)("button",{type:"button",className:"flex w-full cursor-pointer items-center !border-none !bg-transparent p-[.45rem_.75rem] text-left text-[12px] font-[600] text-zinc-400 hover:text-zinc-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ds-color-accent)] focus-visible:ring-offset-2","aria-expanded":I,"aria-controls":"sessionList","aria-label":I?"收起历史会话列表":"展开历史会话列表",onClick:()=>{R(e=>!e)},children:["历史会话",I?(0,t.jsx)(C.default,{name:"ChevronDown",size:12,strokeWidth:1,className:"ml-1 shrink-0 text-[var(--ds-muted)]"}):(0,t.jsx)(C.default,{name:"ChevronRight",size:12,strokeWidth:1,className:"ml-1 shrink-0 text-[var(--ds-muted)]"})]}),I?(0,t.jsx)("div",{className:"sidebar-drawer-body sidebar-drawer-body--sessions",children:(0,t.jsx)("div",{id:"sessionList",children:b.length?(0,w.groupSessionsByMonth)(b).map(e=>(0,t.jsx)("div",{children:e.items.map(e=>{let r=e.sessionId===m.trim(),n=!0===e.running||r&&v,s="".concat(e.sessionId).concat(n?"(运行中)":"");return(0,t.jsxs)("div",{className:"sidebar-drawer-item session-item ".concat(r?"active":""),title:s,children:[(0,t.jsx)("button",{type:"button",className:"session-item-main",onClick:t=>{t.stopPropagation(),i(e.sessionId),o(P("/",{sessionId:e.sessionId}))},children:(0,t.jsxs)("div",{className:"session-item-title",children:[n?(0,t.jsx)("span",{className:"session-running-badge",children:"运行中"}):null,(0,t.jsx)("span",{children:(0,w.sessionTitle)(e)})]})}),(0,t.jsx)("div",{className:"session-menu-wrap","data-session-menu-wrap":"",onClick:t=>{t.stopPropagation(),t.target===t.currentTarget&&k(t=>t===e.sessionId?null:e.sessionId)},children:(0,t.jsxs)(T.DropdownMenu,{open:j===e.sessionId,onOpenChange:e=>{e||k(null)},children:[(0,t.jsx)(T.DropdownMenuTrigger,{type:"button",className:"session-menu-btn","aria-label":"更多",onClick:t=>{t.stopPropagation(),k(t=>t===e.sessionId?null:e.sessionId)},children:(0,t.jsx)(C.default,{name:"More",size:16,className:"text-[var(--ds-muted)]"})}),(0,t.jsxs)(T.DropdownMenuContent,{align:"end",side:"bottom",sideOffset:6,className:"w-[172px] min-w-[172px] rounded-[var(--ds-radius-sm)] border border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)] p-1.5",children:[(0,t.jsxs)(T.DropdownMenuItem,{className:"h-9 rounded-xl px-2.5 text-[var(--ds-text)] hover:bg-[var(--ds-color-surface-item-active)] focus:bg-[var(--ds-color-surface-item-hover)]",onClick:()=>{navigator.clipboard.writeText(e.sessionId)},children:[(0,t.jsx)(C.default,{name:"Clipboard",size:16,className:"text-[var(--ds-muted)]"}),"复制完整 ID"]}),(0,t.jsx)(T.DropdownMenuSeparator,{className:"mx-1 my-1 bg-[var(--ds-color-border-default)]"}),(0,t.jsxs)(T.DropdownMenuItem,{variant:"destructive",className:"h-9 rounded-xl px-2.5 hover:bg-[#fff1f1] focus:bg-[#fff1f1]",onClick:()=>{(async()=>{let t=e.sessionId===m.trim(),r=await l(e.sessionId);t&&r&&o(P("/",{clearSessionId:!0}))})()},children:[(0,t.jsx)(C.default,{name:"Trash2",size:16}),"删除会话"]})]})]})})]},e.sessionId)})},e.key)):(0,t.jsx)("p",{className:"sidebar-drawer-empty",children:"(暂无会话)"})})}):null]})})]}),(0,t.jsx)(W,{collapsed:!1,onGoToSettings:q})]})})}var H=e.i(61196);function V(){let e=(0,H.useStageThreadFlyoutStore)(e=>e.open),n=(0,H.useStageThreadFlyoutStore)(e=>e.title),s=(0,H.useStageThreadFlyoutStore)(e=>e.content),a=(0,H.useStageThreadFlyoutStore)(e=>e.width),i=(0,H.useStageThreadFlyoutStore)(e=>e.hideHeader),l=(0,H.useStageThreadFlyoutStore)(e=>e.bodyClassName),o=(0,H.useStageThreadFlyoutStore)(e=>e.requestCloseFlyout),[c,u]=(0,r.useState)(a),[d,p]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&o()};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}},[e,o]),(0,r.useEffect)(()=>{e&&u((0,H.clampStageThreadFlyoutWidth)(a))},[e,a]);let g=(0,r.useCallback)(e=>{e.preventDefault();let t=e.currentTarget;t.setPointerCapture(e.pointerId),p(!0);let r=e.clientX,n=e=>{let t=r-e.clientX;u((0,H.clampStageThreadFlyoutWidth)(c+t))},s=()=>{p(!1),t.removeEventListener("pointermove",n),t.removeEventListener("pointerup",s),t.removeEventListener("pointercancel",s),document.body.style.cursor="",document.body.style.userSelect=""};document.body.style.cursor="col-resize",document.body.style.userSelect="none",t.addEventListener("pointermove",n),t.addEventListener("pointerup",s),t.addEventListener("pointercancel",s)},[c]);return(0,t.jsx)("aside",{className:(0,L.cn)("stage-thread-flyout",e&&"is-open",d&&"is-resizing"),"data-region":"stage-thread-flyout","aria-hidden":!e,style:{"--stage-flyout-width":"".concat(c,"px")},children:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"stage-thread-flyout-resize",role:"separator","aria-orientation":"vertical","aria-valuenow":c,"aria-valuemin":H.STAGE_THREAD_FLYOUT_MIN_WIDTH,"aria-valuemax":H.STAGE_THREAD_FLYOUT_MAX_WIDTH,"aria-label":"调整面板宽度",onPointerDown:g,children:(0,t.jsx)("span",{className:"stage-thread-flyout-resize-bar","aria-hidden":!0})}),(0,t.jsxs)("div",{className:"stage-thread-flyout-inner",children:[i?null:(0,t.jsxs)("header",{className:"stage-thread-flyout-header",children:[n?(0,t.jsx)("h2",{className:"stage-thread-flyout-title",children:n}):(0,t.jsx)("span",{className:"stage-thread-flyout-title","aria-hidden":!0}),(0,t.jsx)(R.Button,{type:"button",variant:"plain-outline",size:"icon-sm",className:"stage-thread-flyout-close shrink-0 cursor-pointer !pl-0 !pr-0","aria-label":"关闭",onClick:()=>void o(),children:(0,t.jsx)(C.default,{name:"X",size:16})})]}),(0,t.jsx)("div",{className:(0,L.cn)("stage-thread-flyout-body",l),children:s})]})]}):null})}var q=e.i(94606);function Q(){let e=(0,n.usePathname)(),t=(0,n.useRouter)(),s=(0,r.useRef)(null),a=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(a.current)return;let r=s.current;if(s.current=e,!r||r===e)return;let{open:n,guardRoute:i,isDirty:l,closeFlyout:o}=H.useStageThreadFlyoutStore.getState();if(n&&(0,q.isLeavingFlyoutGuardRoute)(i,r,e)){if(!(0,q.shouldConfirmFlyoutRouteChange)(i,r,e,l))return void o();a.current=!0,t.replace(r),(0,q.confirmDiscardFlyoutChanges)().then(n=>{a.current=!1,n?(o(),t.push(e),s.current=e):s.current=r})}},[e,t]),null}var Y=e.i(68665),J=e.i(86194);function X(e){let{children:r,mainClassName:n,mainRegion:s,sidebar:a}=e,{isNavigating:i}=(0,J.useAppNavigation)();return(0,t.jsxs)("div",{className:"app","data-ui-layer":"presentation","data-topology":"local-first",children:[(0,t.jsx)(G,{onNewSession:a.onNewSession,onSelectSession:a.onSelectSession,onSaveAgentConfig:a.onSaveAgentConfig,deleteSessionById:a.deleteSessionById}),(0,t.jsxs)("main",{className:(0,L.cn)("main relative overflow-x-auto",n),"data-region":s,children:[(0,t.jsx)("div",{className:"main-content",children:r}),i?(0,t.jsx)("div",{className:"bg-[var(--background)]/80 absolute inset-0 z-10 flex items-center justify-center backdrop-blur-[1px]","aria-live":"polite","aria-busy":"true",children:(0,t.jsx)(Y.default,{className:"min-h-0 flex-none"})}):null]}),(0,t.jsx)(V,{}),(0,t.jsx)(Q,{})]})}function K(e){let{manageMode:t=!1}=e,n=(0,s.useAppStore)(e=>e.wsUrl),i=(0,s.useAppStore)(e=>e.apiBase),l=(0,s.useAppStore)(e=>e.agentSelectionResolved),o=(0,s.useAppStore)(e=>e.setWsUrl),c=(0,s.useAppStore)(e=>e.setAgentId),{loadSessions:u,loadAgentConfig:d}=(0,j.useSession)(),p=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{s.useAppStore.getState().wsUrl.trim()||o((0,a.defaultWsUrl)())},[o]),(0,r.useLayoutEffect)(()=>{(0,_.syncRuntimeAgentWithUrl)(s.useAppStore.getState().agentId,c)},[c]),(0,r.useEffect)(()=>{if(!n.trim())return;let e=!1;return(async()=>{let t=s.useAppStore.getState(),r=(0,_.readAgentFromLocationSearch)().trim()||t.agentId.trim(),n="".concat(t.wsUrl,"|").concat(t.apiBase,"|").concat(r);if(p.current!==n||!t.agentSelectionResolved){t.setAgentSelectionResolved(!1),t.setAgentSelectionError(null);try{var a;let s=await (0,z.listAgents)(t.wsUrl,t.apiBase);if(e)return;if(!s.length){t.setAgentSelectionError("暂无可用 Agent"),t.setAgentSelectionResolved(!1);return}let i=null!=(a=s.find(e=>e.id===r))?a:s[0];if(!i){t.setAgentSelectionError("暂无可用 Agent"),t.setAgentSelectionResolved(!1);return}t.agentId.trim()!==i.id&&t.setAgentId(i.id),t.setCurrentWorkspaceAgent(i),(0,_.replaceRuntimeAgentInUrl)(i.id),t.setAgentSelectionResolved(!0),p.current=n}catch(r){if(e)return;t.setAgentSelectionError(r instanceof Error?r.message:String(r)),t.setAgentSelectionResolved(!1)}}})(),()=>{e=!0}},[n,i]),(0,r.useEffect)(()=>{l&&(u(),t||d())},[l,t,n,i,u,d]),null}function $(){let e=(0,n.useSearchParams)(),t=(0,s.useAppStore)(e=>e.setAgentId),a=(0,s.useAppStore)(e=>e.setAgentSelectionResolved);return(0,r.useLayoutEffect)(()=>{var r;let n=null==(r=e.get("agent"))?void 0:r.trim();n&&n!==s.useAppStore.getState().agentId.trim()&&(a(!1),t(n))},[e,t,a]),null}function Z(e){let{manageMode:n=!1}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(K,{manageMode:n}),(0,t.jsx)(r.Suspense,{fallback:null,children:(0,t.jsx)($,{})})]})}function ee(e){let{children:o}=e,u=(0,n.usePathname)(),d=function(e){if(!e)return!1;let t=(0,_.normalizeAppPathname)(e);return"/manage"===t||t.startsWith("/manage/")}(u),p=(0,O.isManageSideNavPath)(u),g=(0,s.useAppStore)(e=>e.wsUrl),m=(0,s.useAppStore)(e=>e.apiBase),f=(0,s.useAppStore)(e=>e.agentId),h=(0,s.useAppStore)(e=>e.sessionId),v=(0,s.useAppStore)(e=>e.sessionViewMode),w=(0,s.useAppStore)(e=>e.lastSessions),T=(0,s.useAppStore)(e=>e.turnRunning),C=(0,s.useAppStore)(e=>e.agentSelectionResolved),E=(0,s.useAppStore)(e=>e.setSessionId),R=(0,s.useAppStore)(e=>e.setSessionViewMode),L=(0,s.useAppStore)(e=>e.setPendingHistoryRefresh),{loadSessions:P,loadAgentConfig:z,deleteSessionById:D}=(0,j.useSession)(),B=(0,k.usePersistAgentConfig)(),{reconnect:W,switchSession:F,sendPrompt:U,sendAbort:G,sendReloadAgentConfig:H,sendRestartSubprocess:V,sendPermissionResponse:q}=function(e){let t=(0,r.useRef)(null),n=(0,r.useRef)(""),o=(0,r.useRef)(0),u=(0,r.useRef)(0),d=(0,r.useRef)(0),p=(0,r.useRef)(!1),g=(0,r.useRef)([]),m=(0,r.useRef)(new Map),f=(0,r.useRef)(null==e?void 0:e.onSession);f.current=null==e?void 0:e.onSession;let h=(0,r.useRef)(null==e?void 0:e.onQueryIdle);h.current=null==e?void 0:e.onQueryIdle;let v=(0,s.useAppStore)(e=>e.wsUrl),j=(0,s.useAppStore)(e=>e.agentSelectionResolved),k=(0,r.useCallback)(()=>(o.current+=1,o.current),[]),I=(0,r.useCallback)(()=>{p.current=!1,g.current=[],s.useAppStore.getState().setSessionHistoryLoading(!1)},[]),w=(0,r.useCallback)(()=>{if(t.current){let e=t.current;t.current.close(),(0,i.clearActiveWebSocket)(e),t.current=null}let e=s.useAppStore.getState();e.setWsConnected(!1),e.setBridgeReady(!1),e.resetApiErrorState(),e.setAssistantGenerating(!1),e.setTurnRunning(!1),I(),m.current.clear()},[I]),T=(0,r.useCallback)((e,t)=>{var r,a,i,o,d,v,S,x,y,j;let I=(null==t?void 0:t.httpReplay)===!0,w=s.useAppStore.getState(),C=(e.runId||"main").trim()||"main";if(!I&&e.type===l.EVENT.CONVERSATION_DELTA&&p.current){let t=String(null!=(r=e.sessionId)?r:"").trim(),s=n.current.trim()||w.sessionId.trim();t&&s&&t!==s?w.appendLog("switchSession","忽略回放期间的过期 conversation.delta incoming=".concat(t," target=").concat(s)):g.current.push(e);return}let E="string"==typeof e.agent_name?e.agent_name.trim():"";E&&m.current.set(C,E);let R=function(t,r){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=n&&e.data&&"object"==typeof e.data&&"string"==typeof e.data.sourceAgent?e.data.sourceAgent.trim():"",a=m.current.get(C)||"";return t||s||a||r},M=String(null!=(a=e.sessionId)?a:"").trim()||n.current.trim()||w.sessionId.trim()||"unknown",_="".concat(u.current,":").concat(M);if(e.eventId&&function(e,t){var r;let n=t||"default",s=null!=(r=N.get(n))?r:new Set;if(s.has(e))return!0;if(s.add(e),s.size>4096)for(let e of Array.from(s).slice(0,2048))s.delete(e);return N.set(n,s),!1}(e.eventId,_))return void w.appendLog("dedup","eventId=".concat(e.eventId," 已忽略"));switch(w.appendLog(I?"← replay":"←",e),e.type){case l.EVENT.SESSION_META:{let t=e.data,r=String(null!=(o=null!=(i=t.sessionId)?i:e.sessionId)?o:""),s=w.sessionId.trim();if(n.current){if(r&&r!==s)return void w.appendLog("switchSession","忽略过期 session.meta incoming=".concat(r," current=").concat(s));n.current=""}t.agent&&w.setBrandAgent(String(t.agent)),w.setSessionContextPercent(function(e){if(!e||"object"!=typeof e)return null;let t=Number(e.percentage);if(Number.isFinite(t))return Math.max(0,Math.round(10*t)/10);let r=Number(e.totalTokens),n=Number(e.rawMaxTokens);return Number.isFinite(r)&&Number.isFinite(n)&&n>0?Math.max(0,Math.round(r/n*1e3)/10):null}(t.contextUsage)),r&&(w.setSessionId(r),null==(d=f.current)||d.call(f,r));break}case l.EVENT.SESSION_READY:{w.resetApiErrorState();let t=e.data;n.current&&w.sessionId.trim()===n.current&&(n.current="");let r=w.turnRunning||w.queryPhase.trim().length>0;w.setBridgeReady(!0),r||w.setStatus("已就绪","ready"),t.agent&&w.setBrandAgent(String(t.agent));break}case l.EVENT.SESSION_ERROR:{let t=e.data,r=null!=(v=t.message)?v:JSON.stringify(t);w.setAssistantGenerating(!1),w.setTurnRunning(!1),w.setStatus("错误: ".concat(String(r)),"err");break}case l.EVENT.QUERY_PROGRESS:{w.resetApiErrorState();let t=String(null!=(S=e.data.phase)?S:"").trim();"idle"===t?(w.setTurnRunning(!1),w.setQueryPhase(""),w.bridgeReady&&w.setStatus("已就绪","ready"),null==(x=h.current)||x.call(h)):t&&(w.setTurnRunning(!0),w.setQueryPhase(t),w.setStatus("查询阶段: ".concat(t,"…"),"working"));break}case l.EVENT.CONVERSATION_DELTA:{w.resetApiErrorState();let t=e.data;if(!t.action)break;if("message_added"===t.action||"message_updated"===t.action||"message_removed"===t.action||"tool_call"===t.action||"tool_result"===t.action||"message_completed"===t.action){if(!I&&n.current){let t=String(null!=(y=e.sessionId)?y:"").trim(),r=n.current.trim(),s=w.sessionId.trim();if(t&&t!==r&&t!==s){w.appendLog("switchSession","忽略切换过程中的过期 conversation.delta incoming=".concat(t," pending=").concat(r," current=").concat(s));break}}let r={eventId:e.eventId,action:t.action,index:t.index,message:c(t.message,!0===t.scheduledTrigger||!0===e.scheduledTrigger,"string"==typeof e.turnId?e.turnId:"")},s=R("",C),a=k();w.applyRunMessageDelta({...r,runId:C,sourceAgent:s,ts:"string"==typeof e.ts?e.ts:"",arrivalSeq:a})}"message_completed"===t.action&&w.setStreamBuffer("");break}case l.EVENT.RUN_LIFECYCLE:{let t=e.data,r="string"==typeof t.event&&t.event||("string"==typeof t.state?t.state:"");if("replay.start"===r||"replay.end"===r)break;w.setRunLifecycleData({event:r,message:t.message});let n=R("string"==typeof t.sourceAgent?t.sourceAgent.trim():"","system",!1),s=A(t);s.trim()&&w.appendSourceAgentMessage({key:"string"==typeof e.eventId?e.eventId:"lc-".concat(Date.now()),source:n,runId:C,correlationId:"",status:"resolved",text:s,ts:"string"==typeof e.ts?e.ts:"",arrivalSeq:k()}),"configReloaded"===r&&w.setStatus("已重新加载 agent.md / agent.json",(0,b.resolveInfoStatusClass)(w.bridgeReady,w.wsConnected));break}case l.EVENT.HISTORY_REPLAY:{let r=e.data;if(Array.isArray(r.events))for(let e=0;e<r.events.length;e+=1){let n=r.events[e];n&&"object"==typeof n&&n.type!==l.EVENT.HISTORY_REPLAY&&T(n,t)}break}case l.EVENT.TURN_TERMINAL:{w.resetApiErrorState();let t=e.data;w.setTurnTerminalData({status:t.status,resultText:t.resultText,reason:t.reason});let r=s.useAppStore.getState();"main"===C&&(r.setStreamBuffer(""),r.setAssistantGenerating(!1),r.setTurnRunning(!1),r.setQueryPhase(""),"resolved"===t.status?r.setStatus("本轮结束(可继续发送)",(0,b.resolveInfoStatusClass)(r.bridgeReady,r.wsConnected)):"failed"===t.status?r.setStatus("本轮失败: ".concat(null!=(j=t.reason)?j:"未知错误"),"err"):"cancelled"===t.status?r.setStatus("本轮已取消",(0,b.resolveInfoStatusClass)(r.bridgeReady,r.wsConnected)):r.setStatus("本轮结束(可继续发送)",(0,b.resolveInfoStatusClass)(r.bridgeReady,r.wsConnected)));let n=R("string"==typeof t.sourceAgent?t.sourceAgent.trim():"","main"===C?"main":"unknown-agent",!1),a="string"==typeof t.correlationId?t.correlationId:"",i=A({type:l.EVENT.TURN_TERMINAL,status:t.status,reason:t.reason,resultText:t.resultText});r.appendSourceAgentMessage({key:"string"==typeof e.eventId?e.eventId:"terminal-".concat(Date.now()),source:n,runId:C,correlationId:a,status:"resolved"===t.status?"resolved":"failed",text:i,ts:"string"==typeof e.ts?e.ts:"",arrivalSeq:k()});break}case l.EVENT.PERMISSION_REQUEST:{let t=e.data,r="string"==typeof t.requestId?t.requestId.trim():"";if(!r)break;w.enqueuePermissionRequest({requestId:r,toolName:"string"==typeof t.toolName?t.toolName:"tool",description:"string"==typeof t.description?t.description:"",input:null!=t.input?t.input:{},runId:C})}}},[k]),C=(0,r.useCallback)(e=>{let t=g.current;if(g.current=[],"apply"===e)for(let e=0;e<t.length;e+=1)T(t[e])},[T]),E=(0,r.useCallback)(e=>{var t,r,a,i,l,o;let c=s.useAppStore.getState(),u=String(null!=(t=e.type)?t:"");if("system"===u&&"api_error"===e.subtype){let t=x(e.retryAttempt),r=x(e.maxRetries),n=x(e.retryInMs),s=Date.now()+n,a=r>0&&t>=r?"failed":n>=1e4?"retrying":"loading";c.setApiErrorState({phase:a,retryAttempt:t,maxRetries:r,retryInMs:n,retryUntilTs:s}),c.appendLog("api_error",{uuid:"string"==typeof e.uuid?e.uuid:"",retryAttempt:t,maxRetries:r,retryInMs:n});return}switch(u){case"messages":if(n.current)return void c.appendLog("switchSession","忽略切换过程中的 messages 回包");c.resetApiErrorState(),c.setMessages(Array.isArray(e.messages)?e.messages:[]),c.setStreamBuffer("");break;case"queryProgress":{c.resetApiErrorState();let t=String(null!=(r=e.phase)?r:"").trim();"idle"===t?(c.setTurnRunning(!1),c.setQueryPhase(""),c.bridgeReady&&c.setStatus("已就绪","ready"),null==(a=h.current)||a.call(h)):t&&(c.setTurnRunning(!0),c.setQueryPhase(t),c.setStatus("查询阶段: ".concat(t,"…"),"working"));break}case"streamText":{c.resetApiErrorState();let t="string"==typeof e.text?e.text:"";c.setAssistantGenerating(!1),c.setStreamBuffer(t);let r=t.length>160?"".concat(t.slice(0,160),"…"):t;c.appendLog("←",{type:"streamText",len:t.length,preview:r||"(空)"});break}case"ready":{c.resetApiErrorState(),n.current&&c.sessionId.trim()===n.current&&(n.current="");let t=c.turnRunning||c.queryPhase.trim().length>0;c.setBridgeReady(!0),t||c.setStatus("已就绪","ready"),e.agent&&c.setBrandAgent(String(e.agent));break}case"session":{let t=String(null!=(i=e.sessionId)?i:""),r=c.sessionId.trim();if(n.current){if(t&&t!==r)return void c.appendLog("switchSession","忽略过期 session 回包 incoming=".concat(t," current=").concat(r));n.current=""}e.agent&&c.setBrandAgent(String(e.agent)),t&&(c.setSessionId(t),null==(l=f.current)||l.call(f,t));break}case"error":c.setAssistantGenerating(!1),c.setTurnRunning(!1),c.setStatus("错误: ".concat(String(null!=(o=e.message)?o:JSON.stringify(e))),"err");break;case"turnComplete":{c.resetApiErrorState(),c.setStreamBuffer(""),c.setAssistantGenerating(!1),c.setTurnRunning(!1),c.setQueryPhase("");let e=s.useAppStore.getState();e.setStatus("本轮结束(可继续发送)",(0,b.resolveInfoStatusClass)(e.bridgeReady,e.wsConnected));break}case"agentConfigReloaded":{let e=s.useAppStore.getState();e.setStatus("已重新加载 agent.md / agent.json",(0,b.resolveInfoStatusClass)(e.bridgeReady,e.wsConnected))}}},[]),R=(0,r.useCallback)(async(e,t)=>{let r=e.trim();if(!r)return;let n=s.useAppStore.getState(),a=n.agentId.trim()||"qihoo";p.current=!0,n.setSessionHistoryLoading(!0),g.current=[];try{let{envelopes:e,messageCount:s}=await (0,S.loadSessionReplay)(n.wsUrl,n.apiBase,a,r);if(t!==d.current)return;let i={httpReplay:!0};for(let t=0;t<e.length;t+=1){let r=e[t];r&&y(r)&&T(r,i)}n.appendLog("session-replay-http",{sessionId:r,messageCount:s,envelopeCount:e.length})}catch(e){if(t!==d.current)return;n.appendLog("session-replay-http",String(e)),n.setStatus("历史回放失败: ".concat(e),"err")}finally{p.current=!1,t===d.current&&s.useAppStore.getState().setSessionHistoryLoading(!1),C(t===d.current?"apply":"discard")}},[C,T]),M=(0,r.useCallback)(()=>{let e,r=s.useAppStore.getState();if(!r.agentSelectionResolved||t.current&&(0,i.isWebSocketOpen)(t.current)&&r.bridgeReady)return;if(t.current){let e=t.current;try{e.close()}catch(e){}(0,i.clearActiveWebSocket)(e),t.current=null}r.markConnecting(),r.resetApiErrorState(),r.resetChat(),r.clearLog(),o.current=0,m.current.clear(),I(),u.current+=1,N.clear();let n=r.agentId.trim()||"qihoo",l=r.sessionId.trim();l?(r.setSessionHistoryLoading(!0),R(l,++d.current)):r.setSessionHistoryLoading(!1);let c=(0,a.buildWsUrlWithQuery)(r.wsUrl,r.sessionId,n);r.appendLog("connect",c);try{t.current=e=new WebSocket(c),(0,i.setActiveWebSocket)(e)}catch(e){r.markConnectionError("连接失败: ".concat(e)),r.appendLog("error",String(e));return}e.onopen=function(){if(t.current!==this)return;let e=s.useAppStore.getState(),r=e.turnRunning||e.queryPhase.trim().length>0;e.setWsConnected(!0),r||e.setStatus("已连接,等待 worker ready…","pending")},e.onclose=function(){(null==t.current||t.current===this)&&(s.useAppStore.getState().markDisconnected(),(0,i.clearActiveWebSocket)(this),t.current===this&&(t.current=null))},e.onerror=function(){t.current===this&&(s.useAppStore.getState().markConnectionError("WebSocket 错误"),s.useAppStore.getState().appendLog("error","websocket error"))},e.onmessage=function(e){let r,n=s.useAppStore.getState();try{r=JSON.parse(e.data)}catch(t){n.appendLog("raw",e.data);return}this===t.current&&(y(r)?T(r):null!==r&&"object"==typeof r&&(n.appendLog("←",r),E(r)))}},[I,T,E,R]),_=(0,r.useCallback)(()=>{w(),M()},[w,M]),L=(0,r.useCallback)((e,r)=>{let a=s.useAppStore.getState(),l=String(e||"").trim(),c=String(r||a.agentId||"").trim()||"qihoo",p=t.current,g=(0,i.isWebSocketOpen)(p);if(a.resetChat(),a.clearLog(),a.setSessionContextPercent(null),o.current=0,a.setBridgeReady(!1),a.setSessionHistoryLoading(!!l),a.resetApiErrorState(),a.setStatus("正在切换 session…","working"),m.current.clear(),I(),u.current+=1,n.current=l,l&&g&&R(l,++d.current),!g)return void _();try{let e={type:"switchSession",sessionId:l,agent:c};p.send(JSON.stringify(e)),a.appendLog("→",e)}catch(e){a.appendLog("error","switchSession 发送失败: ".concat(String(e))),_()}},[I,_,R]);(0,r.useEffect)(()=>j?(M(),()=>{w()}):void w(),[v,j,M,w]);let P=(0,r.useCallback)(e=>{let r=t.current;(0,i.isWebSocketOpen)(r)&&(r.send(JSON.stringify(e)),s.useAppStore.getState().appendLog("→",e))},[]),z=(0,r.useCallback)(e=>{let t=String(null!=e?e:"").trim();t&&(s.useAppStore.getState().setAssistantGenerating(!0),s.useAppStore.getState().setTurnRunning(!0),s.useAppStore.getState().setPendingPrompt(t)),P({type:"prompt",text:e})},[P]),D=(0,r.useCallback)(()=>{P({type:"abort"})},[P]),B=(0,r.useCallback)(()=>{P({type:"reloadAgentConfig"})},[P]),W=(0,r.useCallback)(e=>{P({type:"restartSubprocess",reason:null!=e?e:"persist-session-overrides"})},[P]),O=(0,r.useCallback)(()=>{P({type:"reloadAgentPrompt"})},[P]);return{wsRef:t,disconnectIfOpen:w,connectWebSocket:M,reconnect:_,switchSession:L,sendPrompt:z,sendAbort:D,sendReloadAgentConfig:B,sendRestartSubprocess:W,sendReloadAgentPrompt:O,sendPermissionResponse:(0,r.useCallback)((e,t)=>{let r=String(e||"").trim();r&&P({type:"permission.response",requestId:r,behavior:t})},[P]),sendInit:(0,r.useCallback)(e=>{P({type:"init",...e})},[P])}}({onSession:()=>{P()},onQueryIdle:()=>{P()}}),Q=(0,r.useCallback)((e,t)=>I(e,{switchSession:F,reconnect:W,loadSessions:P,loadAgentConfig:z,preferReconnect:d},{displayName:t}),[F,W,P,z,d]);(0,r.useEffect)(()=>{let e;if(!C||d)return;let t=!1,r=w.some(e=>!0===e.running),n=T||r?1500:4e3,s=()=>{e=setTimeout(()=>{if(!t){if("undefined"!=typeof document&&"hidden"===document.visibilityState)return void s();P().finally(()=>{t||s()})}},n)};return s(),()=>{t=!0,void 0!==e&&clearTimeout(e)}},[C,d,w,P,T]);let Y=(0,r.useMemo)(()=>({reconnect:W,switchSession:F,switchWorkspaceAgent:Q,sendPrompt:U,sendAbort:G,sendReloadAgentConfig:H,sendRestartSubprocess:V,sendPermissionResponse:q}),[W,F,Q,U,G,H,V,q]),K=p?"settings-main":d?"manage-main":"draft"===v?"is-draft-session":void 0;return(0,t.jsx)(J.AppNavigationProvider,{children:(0,t.jsxs)(M.WorkspaceRuntimeContext.Provider,{value:Y,children:[(0,t.jsx)(Z,{manageMode:d}),(0,t.jsxs)("div",{className:"ws-config-hidden","aria-hidden":!0,children:[(0,t.jsx)("input",{readOnly:!0,hidden:!0,value:g}),(0,t.jsx)("input",{readOnly:!0,hidden:!0,value:m}),(0,t.jsx)("input",{readOnly:!0,hidden:!0,value:h}),(0,t.jsx)("input",{readOnly:!0,hidden:!0,value:f})]}),(0,t.jsx)(X,{mainClassName:K,mainRegion:p?"settings-shell":d?"manage-shell":"chat-shell",sidebar:{onNewSession:()=>{E(""),R("draft"),L(!1),d?W():F("",f)},onSelectSession:e=>{E(e),R("history"),L(!1),d?W():F(e,f)},onSaveAgentConfig:()=>void B({silent:!1}),deleteSessionById:async e=>{let t=await D(e);return t&&(d?W():F("",f)),t}},children:o})]})})}},41796,e=>{"use strict";e.s(["SideNavShell",()=>u]);var t=e.i(18050),r=e.i(18566),n=e.i(72064),s=e.i(65934),a=e.i(75157),i=e.i(97249),l=e.i(51419),o=e.i(18253);function c(e,t){if(!t)return!1;let r=(0,i.normalizeAppPathname)(t),n=(0,i.normalizeAppPathname)(e);return r===n||r.startsWith("".concat(n,"/"))}function u(e){var u;let{title:d,navGroups:p,tabs:g,activeTabValue:m,tabVariant:f,bottomItems:h,children:v}=e,b=(0,r.usePathname)(),{push:S}=(0,o.useGuardedAppNavigation)(),x=(0,s.useAppStore)(e=>e.agentId),y=e=>{S((0,i.buildAppNavHref)(e,{ensureAgent:!0,agent:x}))},N=!!(f&&(null==g?void 0:g.length)),A=null!=m?m:null==g||null==(u=g[0])?void 0:u.value;return(0,t.jsxs)("div",{className:"side-nav-shell",children:[(0,t.jsxs)("nav",{className:"side-nav","aria-label":null!=d?d:"导航",children:[d?(0,t.jsx)("div",{className:"side-nav-title",children:d}):null,(0,t.jsx)("div",{className:"side-nav-groups",children:p.map((e,r)=>(0,t.jsx)("div",{className:"side-nav-group",children:e.items.map(e=>{let r=c(e.href,b);return(0,t.jsxs)("button",{type:"button",className:(0,a.cn)("side-nav-item",r&&"is-active"),"aria-current":r?"page":void 0,onClick:()=>y(e.href),children:[e.icon?(0,t.jsx)("span",{className:"side-nav-item-icon","aria-hidden":!0,children:(0,t.jsx)(n.default,{name:e.icon,size:16,className:"text-zinc-700",strokeWidth:1})}):null,(0,t.jsx)("span",{className:"side-nav-item-label",children:e.label})]},e.href)})},r))}),h&&h.length>0?(0,t.jsx)("div",{className:"side-nav-bottom",children:h.map(e=>{let r=c(e.href,b);return(0,t.jsxs)("button",{type:"button",className:(0,a.cn)("side-nav-item",r&&"is-active"),"aria-current":r?"page":void 0,onClick:()=>y(e.href),children:[e.icon?(0,t.jsx)("span",{className:"side-nav-item-icon","aria-hidden":!0,children:(0,t.jsx)(n.default,{name:e.icon,size:16,className:"text-zinc-700",strokeWidth:1})}):null,(0,t.jsx)("span",{className:"side-nav-item-label",children:e.label})]},e.href)})}):null]}),(0,t.jsx)("section",{className:"side-nav-content",children:N?(0,t.jsx)(l.AppTabs,{tabs:null!=g?g:[],value:A,onChange:y,listVariant:f,listClassName:"pill"===f?"mx-auto":void 0,contentClassName:"flex min-h-0 min-w-0 flex-1 flex-col",children:v}):v})]})}}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,51239,e=>{e.v("/app/_next/static/media/data-loading.be8d921a.png")},2839,e=>{"use strict";e.s(["Loading",()=>r],2839);var t=e.i(18050),l=e.i(57688);let a={src:e.i(51239).default,width:951,height:482,blurWidth:8,blurHeight:4,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAj0lEQVR42gGEAHv/AAAAAAANERAObXJwYaGko5N/gYBwDg8PCgAAAAAAAAAAAAMEBAJic2xp2+3m7fL8+P7l6ujjUlhWTAYGBgUAAAAAADM3NTG6x8LB7fr1/vD89/7f9+3+wNXNzycpKB4AAAAAAJ+qpozL2dO/0NvWx9Td2c6gzrzRpcq8u2FpZk8CAgIBCRI7kCfNfAcAAAAASUVORK5CYII="};var s=e.i(87968),n=e.i(75157);function r(e){let{text:r="加载中",className:o,showImage:i=!0,imageSrc:c=a,imageAlt:u="加载中",imageSize:d=180,imageClassName:g}=e,f="string"==typeof c?{width:d,height:d}:{width:c.width,height:c.height};return(0,t.jsxs)("div",{className:(0,n.cn)("flex min-h-[180px] w-full flex-col items-center justify-center gap-2 py-4 text-[var(--ds-muted)]",o),role:"status","aria-live":"polite",children:[i?(0,t.jsx)("span",{className:(0,n.cn)("block shrink-0",g),style:{width:d},children:(0,t.jsx)(l.default,{src:c,alt:u,width:f.width,height:f.height,unoptimized:!0,draggable:!1,sizes:"".concat(d,"px"),className:"h-auto w-full object-contain"})}):null,(0,t.jsxs)("span",{className:"flex items-center",children:[(0,t.jsx)(s.Spinner,{className:"mr-2"}),r]})]})}},99650,e=>{"use strict";e.s(["persistAgentEnv",()=>n]);var t=e.i(13354),l=e.i(70074),a=e.i(82136),s=e.i(65934);async function n(e,n,r,o,i,c){var u,d,g,f;let p=s.useAppStore.getState(),h={tools:p.agentConfig.tools.slice(),disallowedTools:p.agentConfig.disallowedTools.slice(),mcpServers:p.agentConfig.mcpServers.slice(),skills:p.agentConfig.skills.slice(),agentTeams:p.agentConfig.agentTeams.slice(),model:p.agentConfig.model,rules:p.agentConfig.rules.slice(),effort:null!=(u=p.agentConfig.effort)?u:null,background:null!=(d=p.agentConfig.background)&&d,isolation:null!=(g=p.agentConfig.isolation)?g:"",whentouse:null!=(f=p.agentConfig.whentouse)?f:"",env:o,llmProviders:p.agentConfig.llmProviders.map(e=>({...e,models:e.models.map(e=>({...e}))})),...c},x=await (0,a.loadAgentPrompt)(e,n,r);await (0,a.saveAgentConfig)(e,n,r,h,{prompt:x}),p.setAgentConfig({...h,env:{...o}}),s.useAppStore.getState().wsConnected&&i();let m=s.useAppStore.getState();m.setStatus("环境变量已保存"+(m.wsConnected?",已请求 worker 重新加载配置":""),(0,l.resolveInfoStatusClass)(m.bridgeReady,m.wsConnected)),t.appToast.success(m.wsConnected?"已保存到 agent.json,并已请求 worker 重新加载配置。":"已保存到 agent.json。重连 WebSocket 后子进程环境将同步。")}},28370,e=>{"use strict";e.s(["AgentEnvGroupSettingsView",()=>C],28370);var t=e.i(18050),l=e.i(85413),a=e.i(2839),s=e.i(19455),n=e.i(93479),r=e.i(24687),o=e.i(67489),i=e.i(75157);let c="__empty__",u=[{value:"anthropic",label:"anthropic"},{value:"openai",label:"openai"}],d=[{value:"1",label:"启用全部 MCP 常驻会话"},{value:"0",label:"禁用"}];function g(e){let{group:l,fields:a,fieldValues:s,whentouseValue:g,onFieldChange:f,onWhentouseChange:p}=e;return(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col divide-y divide-[var(--ds-color-border-default)]",children:["system"===l?(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-2 py-4 first:pt-0",children:[(0,t.jsx)("label",{className:"text-[var(--ds-text)]",htmlFor:"agent-env-whentouse",children:"使用时机(whentouse)"}),(0,t.jsx)(r.Textarea,{id:"agent-env-whentouse",rows:3,spellCheck:!1,autoComplete:"off",placeholder:"输入该 agent 的使用时机描述","aria-label":"agent.json whentouse",className:"min-h-[88px] flex-1 resize-none border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)] placeholder:text-[var(--text-placeholder)]",value:g,onChange:e=>p(e.target.value)})]}):null,a.map(e=>{let l="agent-env-field-".concat(e.key),a="string"==typeof s[e.key]?s[e.key]:"";if("LLM_PROVIDER"===e.key){let s="anthropic"===a||"openai"===a?a:"";return(0,t.jsxs)("div",{className:"flex flex-col gap-2 py-4 first:pt-0",children:[(0,t.jsx)("label",{className:"text-basic text-[var(--ds-text)]",htmlFor:l,children:e.label}),(0,t.jsxs)(o.Select,{value:s||c,onValueChange:t=>f(e.key,t===c?"":t),children:[(0,t.jsx)(o.SelectTrigger,{id:l,className:(0,i.cn)("h-10 w-full border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)]",!s&&"text-[var(--text-placeholder)]"),children:(0,t.jsx)(o.SelectValue,{placeholder:"请选择"})}),(0,t.jsxs)(o.SelectContent,{children:[(0,t.jsx)(o.SelectItem,{value:c,children:"请选择"}),u.map(e=>(0,t.jsx)(o.SelectItem,{value:e.value,children:e.label},e.value))]})]})]},e.key)}if("TUITUI_CHANNEL_SESSION"===e.key){let s="1"===a?"1":"0";return(0,t.jsxs)("div",{className:"flex flex-col gap-2 py-4 first:pt-0",children:[(0,t.jsx)("label",{className:"text-basic text-[var(--ds-text)]",htmlFor:l,children:e.label}),(0,t.jsxs)(o.Select,{value:s,onValueChange:t=>f(e.key,t),children:[(0,t.jsx)(o.SelectTrigger,{id:l,className:"h-10 w-full border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)]",children:(0,t.jsx)(o.SelectValue,{placeholder:"请选择"})}),(0,t.jsx)(o.SelectContent,{children:d.map(e=>(0,t.jsx)(o.SelectItem,{value:e.value,children:e.label},e.value))})]})]},e.key)}return(0,t.jsxs)("div",{className:"flex flex-col gap-2 py-4 first:pt-0",children:[(0,t.jsx)("label",{className:"text-[var(--ds-text)]",htmlFor:l,children:e.label}),(0,t.jsx)(n.Input,{id:l,type:"text",spellCheck:!1,autoComplete:"off",placeholder:e.placeholder,className:"h-10 border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)] placeholder:text-[var(--text-placeholder)]",value:a,onChange:t=>f(e.key,t.target.value)})]},e.key)})]})}var f=e.i(71645),p=e.i(13354),h=e.i(87243),x=e.i(67327);let m=["llm","git","geelib","tutui","system"];var v=e.i(99650),A=e.i(18900),y=e.i(69051),b=e.i(65934);function C(e){let{group:n}=e,{loading:r,saving:o,groupFields:i,fieldValues:c,whentouseValue:u,setField:d,setWhentouseValue:C,reset:S,save:w}=function(e){let t=(0,b.useAppStore)(e=>e.wsUrl),l=(0,b.useAppStore)(e=>e.apiBase),a=(0,b.useAppStore)(e=>e.agentConfig),{currentAgent:s,loadAgentConfig:n}=(0,h.useSession)(),{sendReloadAgentConfig:r}=(0,x.useWebSocketSender)(),[o,i]=(0,f.useState)(!0),[c,u]=(0,f.useState)(!1),[d,g]=(0,f.useState)([]),[C,S]=(0,f.useState)({}),[w,j]=(0,f.useState)({}),[k,N]=(0,f.useState)(""),E=(0,f.useMemo)(()=>(function(e){let t={};for(let e of m)t[e]=[];for(let l of e)m.includes(l.group)&&t[l.group].push(l);return t})(d)[e],[d,e]),T=(0,f.useCallback)(e=>{j(function(e,t,l){let a={};for(let s of t){let t=e[s.key];if("string"==typeof t&&t.length>0){a[s.key]=t;continue}let n=l[s.key];a[s.key]="string"==typeof n?n:""}return a}(e,E,C))},[E,C]),I=(0,f.useCallback)(e=>{N("string"==typeof e?e:"")},[]),V=(0,f.useCallback)(async()=>{try{let e=await (0,y.loadSystemEnv)(t,l,s()),a="string"==typeof e.content?e.content:"",n=function(e){if(!Array.isArray(e))return[];let t=[];for(let l of e){if(!l||"object"!=typeof l)continue;let e="string"==typeof l.key?l.key.trim():"",a="string"==typeof l.group?l.group.trim():"";e&&m.includes(a)&&t.push({key:e,group:a,label:"string"==typeof l.label&&l.label.trim()?l.label.trim():e,placeholder:"string"==typeof l.placeholder?l.placeholder:""})}return t}(e.schema),r=(0,A.parseEnvContentToMap)(a);g(n),S(function(e,t){let l={};for(let s of e){var a;l[s.key]=null!=(a=t[s.key])?a:""}return l}(n,r))}catch(e){p.appToast.error("加载环境变量表单配置失败:".concat(e instanceof Error?e.message:String(e))),g([]),S({})}},[t,l,s]),B=(0,f.useCallback)(async()=>{i(!0);try{await Promise.all([n(),V()])}finally{i(!1)}},[n,V]);(0,f.useEffect)(()=>{B()},[B]),(0,f.useEffect)(()=>{!o&&E.length&&T({...a.env})},[a.env,T,o,E.length]),(0,f.useEffect)(()=>{o||"system"!==e||I(a.whentouse)},[a.whentouse,e,o,I]);let R=(0,f.useCallback)((e,t)=>{j(l=>({...l,[e]:t}))},[]),z=(0,f.useCallback)(()=>{T({...a.env}),"system"===e&&I(a.whentouse)},[a.env,a.whentouse,e,T,I]),U=(0,f.useCallback)(async()=>{let a=function(e,t,l){let a={...e};for(let e of t){var s;let t=String(null!=(s=l[e.key])?s:"").trim();t?a[e.key]=t:delete a[e.key]}return a}(b.useAppStore.getState().agentConfig.env,E,w);u(!0);try{if("system"===e){let e=b.useAppStore.getState().agentConfig;b.useAppStore.getState().setAgentConfig({...e,whentouse:k})}await (0,v.persistAgentEnv)(t,l,s(),a,r),await n()}catch(e){p.appToast.error("保存环境变量失败:".concat(e instanceof Error?e.message:String(e)))}finally{u(!1)}},[E,w,k,e,t,l,s,r,n]);return{loading:o,saving:c,groupFields:E,fieldValues:w,whentouseValue:k,setField:R,setWhentouseValue:N,reset:z,save:U}}(n),j="system"===n||i.length>0;return(0,t.jsxs)("div",{className:"manage-page-content flex min-h-0 flex-1 flex-col rounded-xl border bg-[#fff] shadow-[var(--shadow-md)]",children:[(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto p-4",children:r?(0,t.jsx)(a.Loading,{className:"min-h-[240px]",text:"加载中…"}):j?(0,t.jsx)(g,{group:n,fields:i,fieldValues:c,whentouseValue:u,onFieldChange:d,onWhentouseChange:C}):(0,t.jsx)(l.Empty,{className:"min-h-[240px]",text:"暂无可配置项"})}),(0,t.jsxs)("div",{className:"flex shrink-0 justify-end gap-2 border-t border-[var(--ds-color-border-default)] px-4 py-3",children:[(0,t.jsx)(s.Button,{type:"button",variant:"plain-outline",size:"lg",disabled:r||o||!j,onClick:()=>S(),className:"cursor-pointer",children:"取消"}),(0,t.jsx)(s.Button,{type:"button",size:"lg",disabled:r||o||!j,onClick:()=>void w(),className:"cursor-pointer",children:o?"保存中…":"保存"})]})]})}},20378,e=>{"use strict";e.s(["GitManageView",()=>a]);var t=e.i(18050),l=e.i(28370);function a(){return(0,t.jsx)(l.AgentEnvGroupSettingsView,{group:"git"})}}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96661,t=>{"use strict";t.s(["mergeClasses",()=>e]);let e=function(){for(var t=arguments.length,e=Array(t),a=0;a<t;a++)e[a]=arguments[a];return e.filter((t,e,a)=>!!t&&""!==t.trim()&&a.indexOf(t)===e).join(" ").trim()}},71987,88973,t=>{"use strict";t.s(["default",()=>e],71987);var e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};t.s(["hasA11yProp",()=>a],88973);let a=t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1}},5014,t=>{"use strict";t.s(["default",()=>s],5014);var e=t.i(71645),a=t.i(71987),r=t.i(88973),o=t.i(96661);let n=(0,e.createContext)({}),s=(0,e.forwardRef)((t,s)=>{var i,l,d;let{color:c,size:u,strokeWidth:f,absoluteStrokeWidth:m,className:p="",children:h,iconNode:g,...b}=t,{size:v=24,strokeWidth:y=2,absoluteStrokeWidth:w=!1,color:x="currentColor",className:E=""}=null!=(i=(0,e.useContext)(n))?i:{},k=(null!=m?m:w)?24*Number(null!=f?f:y)/Number(null!=u?u:v):null!=f?f:y;return(0,e.createElement)("svg",{ref:s,...a.default,width:null!=(l=null!=u?u:v)?l:a.default.width,height:null!=(d=null!=u?u:v)?d:a.default.height,stroke:null!=c?c:x,strokeWidth:k,className:(0,o.mergeClasses)("lucide",E,p),...!h&&!(0,r.hasA11yProp)(b)&&{"aria-hidden":"true"},...b},[...g.map(t=>{let[a,r]=t;return(0,e.createElement)(a,r)}),...Array.isArray(h)?h:[h]])})},13354,t=>{"use strict";t.s(["AppToaster",()=>C,"appToast",()=>N],13354);var e=t.i(18050),a=t.i(72064),r=t.i(71645),o=t.i(74080);let n=Array(12).fill(0),s=t=>{let{visible:e,className:a}=t;return r.default.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":e},r.default.createElement("div",{className:"sonner-spinner"},n.map((t,e)=>r.default.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(e)}))))},i=r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),l=r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},r.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),d=r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),c=r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),u=r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),f=1,m=new class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:a,...r}=t,o="number"==typeof(null==t?void 0:t.id)||(null==(e=t.id)?void 0:e.length)>0?t.id:f++,n=this.toasts.find(t=>t.id===o),s=void 0===t.dismissible||t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),n?this.toasts=this.toasts.map(e=>e.id===o?(this.publish({...e,...t,id:o,title:a}),{...e,...t,id:o,dismissible:s,title:a}):e):this.addToast({title:a,...r,dismissible:s,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(e=>e({id:t,dismiss:!0})))):this.toasts.forEach(t=>{this.subscribers.forEach(e=>e({id:t.id,dismiss:!0}))}),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{let a,o;if(!e)return;void 0!==e.loading&&(o=this.create({...e,promise:t,type:"loading",message:e.loading,description:"function"!=typeof e.description?e.description:void 0}));let n=Promise.resolve(t instanceof Function?t():t),s=void 0!==o,i=n.then(async t=>{if(a=["resolve",t],r.default.isValidElement(t))s=!1,this.create({id:o,type:"default",message:t});else if(p(t)&&!t.ok){s=!1;let a="function"==typeof e.error?await e.error("HTTP error! status: ".concat(t.status)):e.error,n="function"==typeof e.description?await e.description("HTTP error! status: ".concat(t.status)):e.description,i="object"!=typeof a||r.default.isValidElement(a)?{message:a}:a;this.create({id:o,type:"error",description:n,...i})}else if(t instanceof Error){s=!1;let a="function"==typeof e.error?await e.error(t):e.error,n="function"==typeof e.description?await e.description(t):e.description,i="object"!=typeof a||r.default.isValidElement(a)?{message:a}:a;this.create({id:o,type:"error",description:n,...i})}else if(void 0!==e.success){s=!1;let a="function"==typeof e.success?await e.success(t):e.success,n="function"==typeof e.description?await e.description(t):e.description,i="object"!=typeof a||r.default.isValidElement(a)?{message:a}:a;this.create({id:o,type:"success",description:n,...i})}}).catch(async t=>{if(a=["reject",t],void 0!==e.error){s=!1;let a="function"==typeof e.error?await e.error(t):e.error,n="function"==typeof e.description?await e.description(t):e.description,i="object"!=typeof a||r.default.isValidElement(a)?{message:a}:a;this.create({id:o,type:"error",description:n,...i})}}).finally(()=>{s&&(this.dismiss(o),o=void 0),null==e.finally||e.finally.call(e)}),l=()=>new Promise((t,e)=>i.then(()=>"reject"===a[0]?e(a[1]):t(a[1])).catch(e));return"string"!=typeof o&&"number"!=typeof o?{unwrap:l}:Object.assign(o,{unwrap:l})},this.custom=(t,e)=>{let a=(null==e?void 0:e.id)||f++;return this.create({jsx:t(a),id:a,...e}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},p=t=>t&&"object"==typeof t&&"ok"in t&&"boolean"==typeof t.ok&&"status"in t&&"number"==typeof t.status,h=Object.assign((t,e)=>{let a=(null==e?void 0:e.id)||f++;return m.addToast({title:t,...e,id:a}),a},{success:m.success,info:m.info,warning:m.warning,error:m.error,custom:m.custom,message:m.message,promise:m.promise,dismiss:m.dismiss,loading:m.loading},{getHistory:()=>m.toasts,getToasts:()=>m.getActiveToasts()});function g(t){return void 0!==t.label}function b(){for(var t=arguments.length,e=Array(t),a=0;a<t;a++)e[a]=arguments[a];return e.filter(Boolean).join(" ")}!function(t){if(!t||"undefined"==typeof document)return;let e=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",e.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");let v=t=>{var e,a,o,n,f,m,p,h,v,y,w;let{invert:x,toast:E,unstyled:k,interacting:N,setHeights:C,visibleToasts:T,heights:M,index:S,toasts:B,expanded:j,removeToast:z,defaultRichColors:A,closeButton:F,style:R,cancelButtonStyle:D,actionButtonStyle:P,className:Y="",descriptionClassName:I="",duration:L,position:H,gap:V,expandByDefault:X,classNames:O,icons:U,closeButtonAriaLabel:W="Close toast"}=t,[K,q]=r.default.useState(null),[G,J]=r.default.useState(null),[Q,Z]=r.default.useState(!1),[$,_]=r.default.useState(!1),[tt,te]=r.default.useState(!1),[ta,tr]=r.default.useState(!1),[to,tn]=r.default.useState(!1),[ts,ti]=r.default.useState(0),[tl,td]=r.default.useState(0),tc=r.default.useRef(E.duration||L||4e3),tu=r.default.useRef(null),tf=r.default.useRef(null),tm=0===S,tp=S+1<=T,th=E.type,tg=!1!==E.dismissible,tb=E.className||"",tv=E.descriptionClassName||"",ty=r.default.useMemo(()=>M.findIndex(t=>t.toastId===E.id)||0,[M,E.id]),tw=r.default.useMemo(()=>{var t;return null!=(t=E.closeButton)?t:F},[E.closeButton,F]),tx=r.default.useMemo(()=>E.duration||L||4e3,[E.duration,L]),tE=r.default.useRef(0),tk=r.default.useRef(0),tN=r.default.useRef(0),tC=r.default.useRef(null),[tT,tM]=H.split("-"),tS=r.default.useMemo(()=>M.reduce((t,e,a)=>a>=ty?t:t+e.height,0),[M,ty]),tB=(()=>{let[t,e]=r.default.useState(document.hidden);return r.default.useEffect(()=>{let t=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),t})(),tj=E.invert||x,tz="loading"===th;tk.current=r.default.useMemo(()=>ty*V+tS,[ty,tS]),r.default.useEffect(()=>{tc.current=tx},[tx]),r.default.useEffect(()=>{Z(!0)},[]),r.default.useEffect(()=>{let t=tf.current;if(t){let e=t.getBoundingClientRect().height;return td(e),C(t=>[{toastId:E.id,height:e,position:E.position},...t]),()=>C(t=>t.filter(t=>t.toastId!==E.id))}},[C,E.id]),r.default.useLayoutEffect(()=>{if(!Q)return;let t=tf.current,e=t.style.height;t.style.height="auto";let a=t.getBoundingClientRect().height;t.style.height=e,td(a),C(t=>t.find(t=>t.toastId===E.id)?t.map(t=>t.toastId===E.id?{...t,height:a}:t):[{toastId:E.id,height:a,position:E.position},...t])},[Q,E.title,E.description,C,E.id,E.jsx,E.action,E.cancel]);let tA=r.default.useCallback(()=>{_(!0),ti(tk.current),C(t=>t.filter(t=>t.toastId!==E.id)),setTimeout(()=>{z(E)},200)},[E,z,C,tk]);r.default.useEffect(()=>{let t;if((!E.promise||"loading"!==th)&&E.duration!==1/0&&"loading"!==E.type)return j||N||tB?(()=>{if(tN.current<tE.current){let t=new Date().getTime()-tE.current;tc.current=tc.current-t}tN.current=new Date().getTime()})():tc.current!==1/0&&(tE.current=new Date().getTime(),t=setTimeout(()=>{null==E.onAutoClose||E.onAutoClose.call(E,E),tA()},tc.current)),()=>clearTimeout(t)},[j,N,E,th,tB,tA]),r.default.useEffect(()=>{E.delete&&(tA(),null==E.onDismiss||E.onDismiss.call(E,E))},[tA,E.delete]);let tF=E.icon||(null==U?void 0:U[th])||(t=>{switch(t){case"success":return i;case"info":return d;case"warning":return l;case"error":return c;default:return null}})(th);return r.default.createElement("li",{tabIndex:0,ref:tf,className:b(Y,tb,null==O?void 0:O.toast,null==E||null==(e=E.classNames)?void 0:e.toast,null==O?void 0:O.default,null==O?void 0:O[th],null==E||null==(a=E.classNames)?void 0:a[th]),"data-sonner-toast":"","data-rich-colors":null!=(y=E.richColors)?y:A,"data-styled":!(E.jsx||E.unstyled||k),"data-mounted":Q,"data-promise":!!E.promise,"data-swiped":to,"data-removed":$,"data-visible":tp,"data-y-position":tT,"data-x-position":tM,"data-index":S,"data-front":tm,"data-swiping":tt,"data-dismissible":tg,"data-type":th,"data-invert":tj,"data-swipe-out":ta,"data-swipe-direction":G,"data-expanded":!!(j||X&&Q),"data-testid":E.testId,style:{"--index":S,"--toasts-before":S,"--z-index":B.length-S,"--offset":"".concat($?ts:tk.current,"px"),"--initial-height":X?"auto":"".concat(tl,"px"),...R,...E.style},onDragEnd:()=>{te(!1),q(null),tC.current=null},onPointerDown:t=>{2!==t.button&&!tz&&tg&&(tu.current=new Date,ti(tk.current),t.target.setPointerCapture(t.pointerId),"BUTTON"!==t.target.tagName&&(te(!0),tC.current={x:t.clientX,y:t.clientY}))},onPointerUp:()=>{var t,e,a,r,o;if(ta||!tg)return;tC.current=null;let n=Number((null==(t=tf.current)?void 0:t.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),s=Number((null==(e=tf.current)?void 0:e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),i=new Date().getTime()-(null==(a=tu.current)?void 0:a.getTime()),l="x"===K?n:s,d=Math.abs(l)/i;if(Math.abs(l)>=45||d>.11){ti(tk.current),null==E.onDismiss||E.onDismiss.call(E,E),"x"===K?J(n>0?"right":"left"):J(s>0?"down":"up"),tA(),tr(!0);return}null==(r=tf.current)||r.style.setProperty("--swipe-amount-x","0px"),null==(o=tf.current)||o.style.setProperty("--swipe-amount-y","0px"),tn(!1),te(!1),q(null)},onPointerMove:e=>{var a,r,o,n;if(!tC.current||!tg||(null==(a=window.getSelection())?void 0:a.toString().length)>0)return;let s=e.clientY-tC.current.y,i=e.clientX-tC.current.x,l=null!=(n=t.swipeDirections)?n:function(t){let[e,a]=t.split("-"),r=[];return e&&r.push(e),a&&r.push(a),r}(H);!K&&(Math.abs(i)>1||Math.abs(s)>1)&&q(Math.abs(i)>Math.abs(s)?"x":"y");let d={x:0,y:0},c=t=>1/(1.5+Math.abs(t)/20);if("y"===K){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&s<0||l.includes("bottom")&&s>0)d.y=s;else{let t=s*c(s);d.y=Math.abs(t)<Math.abs(s)?t:s}}else if("x"===K&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&i<0||l.includes("right")&&i>0)d.x=i;else{let t=i*c(i);d.x=Math.abs(t)<Math.abs(i)?t:i}(Math.abs(d.x)>0||Math.abs(d.y)>0)&&tn(!0),null==(r=tf.current)||r.style.setProperty("--swipe-amount-x","".concat(d.x,"px")),null==(o=tf.current)||o.style.setProperty("--swipe-amount-y","".concat(d.y,"px"))}},tw&&!E.jsx&&"loading"!==th?r.default.createElement("button",{"aria-label":W,"data-disabled":tz,"data-close-button":!0,onClick:tz||!tg?()=>{}:()=>{tA(),null==E.onDismiss||E.onDismiss.call(E,E)},className:b(null==O?void 0:O.closeButton,null==E||null==(o=E.classNames)?void 0:o.closeButton)},null!=(w=null==U?void 0:U.close)?w:u):null,(th||E.icon||E.promise)&&null!==E.icon&&((null==U?void 0:U[th])!==null||E.icon)?r.default.createElement("div",{"data-icon":"",className:b(null==O?void 0:O.icon,null==E||null==(n=E.classNames)?void 0:n.icon)},E.promise||"loading"===E.type&&!E.icon?E.icon||function(){var t,e;return(null==U?void 0:U.loading)?r.default.createElement("div",{className:b(null==O?void 0:O.loader,null==E||null==(e=E.classNames)?void 0:e.loader,"sonner-loader"),"data-visible":"loading"===th},U.loading):r.default.createElement(s,{className:b(null==O?void 0:O.loader,null==E||null==(t=E.classNames)?void 0:t.loader),visible:"loading"===th})}():null,"loading"!==E.type?tF:null):null,r.default.createElement("div",{"data-content":"",className:b(null==O?void 0:O.content,null==E||null==(f=E.classNames)?void 0:f.content)},r.default.createElement("div",{"data-title":"",className:b(null==O?void 0:O.title,null==E||null==(m=E.classNames)?void 0:m.title)},E.jsx?E.jsx:"function"==typeof E.title?E.title():E.title),E.description?r.default.createElement("div",{"data-description":"",className:b(I,tv,null==O?void 0:O.description,null==E||null==(p=E.classNames)?void 0:p.description)},"function"==typeof E.description?E.description():E.description):null),r.default.isValidElement(E.cancel)?E.cancel:E.cancel&&g(E.cancel)?r.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:E.cancelButtonStyle||D,onClick:t=>{g(E.cancel)&&tg&&(null==E.cancel.onClick||E.cancel.onClick.call(E.cancel,t),tA())},className:b(null==O?void 0:O.cancelButton,null==E||null==(h=E.classNames)?void 0:h.cancelButton)},E.cancel.label):null,r.default.isValidElement(E.action)?E.action:E.action&&g(E.action)?r.default.createElement("button",{"data-button":!0,"data-action":!0,style:E.actionButtonStyle||P,onClick:t=>{g(E.action)&&(null==E.action.onClick||E.action.onClick.call(E.action,t),t.defaultPrevented||tA())},className:b(null==O?void 0:O.actionButton,null==E||null==(v=E.classNames)?void 0:v.actionButton)},E.action.label):null)};function y(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let t=document.documentElement.getAttribute("dir");return"auto"!==t&&t?t:window.getComputedStyle(document.documentElement).direction}let w=r.default.forwardRef(function(t,e){let{id:a,invert:n,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:l,closeButton:d,className:c,offset:u,mobileOffset:f,theme:p="light",richColors:h,duration:g,style:b,visibleToasts:w=3,toastOptions:x,dir:E=y(),gap:k=14,icons:N,containerAriaLabel:C="Notifications"}=t,[T,M]=r.default.useState([]),S=r.default.useMemo(()=>a?T.filter(t=>t.toasterId===a):T.filter(t=>!t.toasterId),[T,a]),B=r.default.useMemo(()=>Array.from(new Set([s].concat(S.filter(t=>t.position).map(t=>t.position)))),[S,s]),[j,z]=r.default.useState([]),[A,F]=r.default.useState(!1),[R,D]=r.default.useState(!1),[P,Y]=r.default.useState("system"!==p?p:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=r.default.useRef(null),L=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=r.default.useRef(null),V=r.default.useRef(!1),X=r.default.useCallback(t=>{M(e=>{var a;return(null==(a=e.find(e=>e.id===t.id))?void 0:a.delete)||m.dismiss(t.id),e.filter(e=>{let{id:a}=e;return a!==t.id})})},[]);return r.default.useEffect(()=>m.subscribe(t=>{if(t.dismiss)return void requestAnimationFrame(()=>{M(e=>e.map(e=>e.id===t.id?{...e,delete:!0}:e))});setTimeout(()=>{o.default.flushSync(()=>{M(e=>{let a=e.findIndex(e=>e.id===t.id);return -1!==a?[...e.slice(0,a),{...e[a],...t},...e.slice(a+1)]:[t,...e]})})})}),[T]),r.default.useEffect(()=>{if("system"!==p)return void Y(p);if("system"===p&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),"undefined"==typeof window)return;let t=window.matchMedia("(prefers-color-scheme: dark)");try{t.addEventListener("change",t=>{let{matches:e}=t;e?Y("dark"):Y("light")})}catch(e){t.addListener(t=>{let{matches:e}=t;try{e?Y("dark"):Y("light")}catch(t){console.error(t)}})}},[p]),r.default.useEffect(()=>{T.length<=1&&F(!1)},[T]),r.default.useEffect(()=>{let t=t=>{var e,a;i.every(e=>t[e]||t.code===e)&&(F(!0),null==(a=I.current)||a.focus()),"Escape"===t.code&&(document.activeElement===I.current||(null==(e=I.current)?void 0:e.contains(document.activeElement)))&&F(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[i]),r.default.useEffect(()=>{if(I.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,V.current=!1)}},[I.current]),r.default.createElement("section",{ref:e,"aria-label":"".concat(C," ").concat(L),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((e,a)=>{var o;let[s,i]=e.split("-");return S.length?r.default.createElement("ol",{key:e,dir:"auto"===E?y():E,tabIndex:-1,ref:I,className:c,"data-sonner-toaster":!0,"data-sonner-theme":P,"data-y-position":s,"data-x-position":i,style:{"--front-toast-height":"".concat((null==(o=j[0])?void 0:o.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(k,"px"),...b,...function(t,e){let a={};return[t,e].forEach((t,e)=>{let r=1===e,o=r?"--mobile-offset":"--offset",n=r?"16px":"24px";function s(t){["top","right","bottom","left"].forEach(e=>{a["".concat(o,"-").concat(e)]="number"==typeof t?"".concat(t,"px"):t})}"number"==typeof t||"string"==typeof t?s(t):"object"==typeof t?["top","right","bottom","left"].forEach(e=>{void 0===t[e]?a["".concat(o,"-").concat(e)]=n:a["".concat(o,"-").concat(e)]="number"==typeof t[e]?"".concat(t[e],"px"):t[e]}):s(n)}),a}(u,f)},onBlur:t=>{V.current&&!t.currentTarget.contains(t.relatedTarget)&&(V.current=!1,H.current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:t=>{!(t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible)&&(V.current||(V.current=!0,H.current=t.relatedTarget))},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{R||F(!1)},onDragEnd:()=>F(!1),onPointerDown:t=>{t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible||D(!0)},onPointerUp:()=>D(!1)},S.filter(t=>!t.position&&0===a||t.position===e).map((a,o)=>{var s,i;return r.default.createElement(v,{key:a.id,icons:N,index:o,toast:a,defaultRichColors:h,duration:null!=(s=null==x?void 0:x.duration)?s:g,className:null==x?void 0:x.className,descriptionClassName:null==x?void 0:x.descriptionClassName,invert:n,visibleToasts:w,closeButton:null!=(i=null==x?void 0:x.closeButton)?i:d,interacting:R,position:e,style:null==x?void 0:x.style,unstyled:null==x?void 0:x.unstyled,classNames:null==x?void 0:x.classNames,cancelButtonStyle:null==x?void 0:x.cancelButtonStyle,actionButtonStyle:null==x?void 0:x.actionButtonStyle,closeButtonAriaLabel:null==x?void 0:x.closeButtonAriaLabel,removeToast:X,toasts:S.filter(t=>t.position==a.position),heights:j.filter(t=>t.position==a.position),setHeights:z,expandByDefault:l,gap:k,expanded:A,swipeDirections:t.swipeDirections})})):null}))}),x={info:"!bg-[#E7F4FF] !border !border-solid !border-[#1677FF] !text-[#1C1E1F]",success:"!bg-[#F6FFED] !border !border-solid !border-[#52C51A] !text-[#1C1E1F]",error:"!bg-[#FFF3F1] !border !border-solid !border-[#FF4D50] !text-[#1C1E1F]",warning:"!bg-[#FFFBE6] !border !border-solid !border-[#FAAD14] !text-[#1C1E1F]"},E={info:(0,e.jsx)(a.default,{name:"Info",size:16,className:"!text-[#1677FF]"}),success:(0,e.jsx)(a.default,{name:"CircleCheckBig",size:16,className:"!text-[#52C51A]"}),error:(0,e.jsx)(a.default,{name:"CircleX",size:16,className:"!text-[#FF4D50]"}),warning:(0,e.jsx)(a.default,{name:"CircleAlert",size:16,className:"!text-[#FAAD14]"})};function k(t,e,a){var r,o;return h(e,{...a,className:"!rounded-md !p-3 !shadow-none ".concat(x[t]," ").concat(null!=(r=null==a?void 0:a.className)?r:""),icon:null!=(o=null==a?void 0:a.icon)?o:E[t]})}let N={info:(t,e)=>k("info",t,e),success:(t,e)=>k("success",t,e),error:(t,e)=>k("error",t,e),warning:(t,e)=>k("warning",t,e)};function C(){return(0,e.jsx)(w,{position:"top-center",toastOptions:{duration:3e3,classNames:{toast:"!max-w-[400px] !w-fit !min-w-0",icon:"!mr-1",title:"!font-normal"}}})}}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}}]);
@@ -1,2 +1,2 @@
1
- <!DOCTYPE html><!--6V1592_KuRHKu2MxCBymu--><html lang="zh-CN" class="sora_a6e0e515-module__NbNjtG__variable dm_sans_fa25cdfd-module__fB5nTW__variable jetbrains_mono_2b1eae20-module__XfFTLG__variable font-sans"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/app/_next/static/chunks/7bdf0e5b41aeb209.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/00efede689cf035f.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/7defa1cc0271dd01.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/app/_next/static/chunks/9ccf7a8bca1730bf.js"/><script src="/app/_next/static/chunks/522518d740397639.js" async=""></script><script src="/app/_next/static/chunks/40268f8e3ff0314e.js" async=""></script><script src="/app/_next/static/chunks/32b4d63e10d31351.js" async=""></script><script src="/app/_next/static/chunks/66b30159915524db.js" async=""></script><script src="/app/_next/static/chunks/turbopack-63952675b1d69124.js" async=""></script><script src="/app/_next/static/chunks/bf2c1c402dbcccdf.js" async=""></script><script src="/app/_next/static/chunks/9e37e70d0f4b69de.js" async=""></script><script src="/app/_next/static/chunks/7988d5ea63356e10.js" async=""></script><script src="/app/_next/static/chunks/43c4ed555aa7688a.js" async=""></script><script src="/app/_next/static/chunks/199236daa84a65de.js" async=""></script><script src="/app/_next/static/chunks/24baa106665e0774.js" async=""></script><script src="/app/_next/static/chunks/71668b2d16d048d8.js" async=""></script><script src="/app/_next/static/chunks/5208bff6c40e7fd0.js" async=""></script><script src="/app/_next/static/chunks/24ba1398a8b25d78.js" async=""></script><script src="/app/_next/static/chunks/b30ee3cb6af32088.js" async=""></script><script src="/app/_next/static/chunks/5d79b7f202080232.js" async=""></script><script src="/app/_next/static/chunks/bbcb68bcca448018.js" async=""></script><script src="/app/_next/static/chunks/696e3ddd135b85b4.js" async=""></script><script src="/app/_next/static/chunks/992d07434795e693.js" async=""></script><script src="/app/_next/static/chunks/5798600d2ea8a3e8.js" async=""></script><meta name="next-size-adjust" content=""/><title>Claude Code测试平台</title><meta name="description" content="Claude Code测试平台"/><script src="/app/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><!--$?--><template id="B:0"></template><div class="flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg> 加载中</div><!--/$--><script>requestAnimationFrame(function(){$RT=performance.now()});</script><script src="/app/_next/static/chunks/9ccf7a8bca1730bf.js" id="_R_" async=""></script><div hidden id="S:0"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><div class="ws-config-hidden" aria-hidden="true"><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/></div><div class="app" data-ui-layer="presentation" data-topology="local-first"><aside class="sidebar h-dvh max-h-dvh min-h-0 self-start overflow-hidden " data-region="sidebar-panels"><div class="sidebar-brand"><div class="sidebar-brand-title-row flex items-center justify-between"><div class="logo flex min-w-0 items-center gap-2"><span class="text-zinc-1000 truncate">Claude Code测试平台</span></div><span data-slot="tooltip" class="inline-flex"><button type="button" class="sidebar-icon-btn" title="收起侧边栏" aria-label="收起侧边栏"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 1024 1024" color="#8f8f8f" fill="#8f8f8f" aria-hidden="true"><path d="M331.05 85.333h361.9c34.346 0 62.72 0 85.76 1.878 24.02 1.962 46.08 6.186 66.773 16.725a170.67 170.67 0 0 1 74.581 74.581c10.539 20.694 14.763 42.752 16.725 66.731 1.878 23.125 1.878 51.456 1.878 85.76v361.941c0 34.347 0 62.72-1.878 85.76-1.962 24.022-6.186 46.08-16.725 66.774a170.67 170.67 0 0 1-74.581 74.581c-20.694 10.539-42.752 14.763-66.731 16.725-23.083 1.878-51.456 1.878-85.76 1.878H331.008c-34.347 0-62.72 0-85.76-1.878-24.021-1.962-46.08-6.186-66.773-16.725a170.67 170.67 0 0 1-74.582-74.581c-10.538-20.694-14.762-42.752-16.725-66.731-1.835-23.125-1.835-51.456-1.835-85.76V331.008c0-34.347 0-62.72 1.878-85.76 1.962-24.021 6.186-46.08 16.725-66.773a170.67 170.67 0 0 1 74.581-74.582c20.694-10.538 42.752-14.762 66.731-16.725 23.125-1.835 51.456-1.835 85.76-1.835zm95.617 768H691.2c36.565 0 61.397 0 80.597-1.621 18.688-1.493 28.288-4.267 34.944-7.68a85.33 85.33 0 0 0 37.291-37.29c3.413-6.657 6.187-16.214 7.68-34.945 1.579-19.2 1.621-44.032 1.621-80.597V332.8c0-36.565 0-61.397-1.621-80.597-1.493-18.688-4.267-28.288-7.68-34.944a85.33 85.33 0 0 0-37.29-37.291c-6.657-3.413-16.214-6.187-34.945-7.68-19.2-1.621-44.032-1.621-80.597-1.621H426.667zm-85.334-682.666H332.8c-36.565 0-61.397 0-80.597 1.621-18.688 1.493-28.288 4.267-34.944 7.68a85.33 85.33 0 0 0-37.291 37.29c-3.413 6.657-6.187 16.214-7.68 34.945-1.621 19.2-1.621 44.032-1.621 80.597v358.4c0 36.565 0 61.397 1.621 80.597 1.493 18.688 4.267 28.288 7.68 34.944a85.33 85.33 0 0 0 37.29 37.291c6.657 3.413 16.214 6.187 34.945 7.68 19.2 1.621 44.032 1.621 80.597 1.621h8.533z"></path></svg></button></span></div></div><div class="new-chat"><div class="mb-4 ml-2 mr-2 mt-2 flex cursor-pointer items-center gap-2.5 rounded-2xl px-2 py-2 text-zinc-900 transition-colors hover:bg-white/70" title="开启新对话" aria-label="开启新对话"><span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--ds-color-surface-item-active)] text-[var(--ds-color-accent)]" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></span><span class="min-w-0 font-medium">新会话</span></div></div><div class="sidebar-scroll-area"><div class="sidebar-drawers sidebar-drawers--nav px-[10px]"><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-900" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="m259.413 120.036-149.22 106.666-49.606-69.404L209.92 50.63l49.607 69.405zM814.08 50.63l149.39 106.667-49.607 69.404-149.276-106.666 49.607-69.405zM78.28 554.667a433.778 433.778 0 1 1 867.555 0 433.778 433.778 0 0 1-867.556 0M512 206.222a348.444 348.444 0 1 0 0 696.89 348.444 348.444 0 0 0 0-696.89m-47.787 356.125V327.623h85.334v217.145l153.258 153.316-60.302 60.302-165.831-165.774a42.67 42.67 0 0 1-12.516-30.152z"></path></svg><span class="text-zinc-900">定时任务</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-900" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M424.64 115.392A170.432 170.432 0 0 1 714.304 254.4a166.464 166.464 0 0 1 137.728 282.752l-307.84 307.712 94.912 94.848a36.736 36.736 0 0 1-51.712 51.84L466.624 870.784a36.544 36.544 0 0 1 0-51.712l333.568-333.568a93.312 93.312 0 0 0-131.648-132.096l-3.008 2.88v.128L428.352 592.96a36.544 36.544 0 0 1-56.064-5.44c-.576-.768-.96-1.664-1.472-2.432a36.3 36.3 0 0 1-4.352-23.68l.32-1.92a36.4 36.4 0 0 1 5.12-12.608l4.8-5.76 236.992-236.416 6.72-7.488A97.28 97.28 0 0 0 476.288 167.04L136.576 507.008a36.544 36.544 0 0 1-51.712-51.712l339.84-339.84zm94.912 94.4a36.544 36.544 0 0 1 51.008 52.352L329.024 497.856a98.368 98.368 0 1 0 138.624 139.52l240.64-243.584a36.672 36.672 0 0 1 52.096 51.328l-240.64 243.584A171.584 171.584 0 1 1 277.952 445.44z"></path></svg><span class="text-zinc-900">MCP</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-900" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M938.667 981.333H85.333C38.4 981.333 0 942.933 0 896V298.667c0-46.934 38.4-85.334 85.333-85.334h192V128c0-46.933 38.4-85.333 85.334-85.333h298.666c46.934 0 85.334 38.4 85.334 85.333v85.333h192c46.933 0 85.333 38.4 85.333 85.334V896c0 46.933-38.4 85.333-85.333 85.333m-277.334-832c0-12.8-8.533-21.333-21.333-21.333H384c-12.8 0-21.333 8.533-21.333 21.333v64h298.666zM938.667 320c0-12.8-8.534-21.333-21.334-21.333H106.667c-12.8 0-21.334 8.533-21.334 21.333v128h213.334c17.066 0 32 10.667 38.4 23.467L388.267 576H633.6l51.2-104.533C691.2 456.533 706.133 448 723.2 448h213.333V320zm0 213.333H750.933l-51.2 104.534c-6.4 14.933-21.333 23.466-38.4 23.466H362.667c-17.067 0-32-10.666-38.4-23.466l-51.2-104.534H85.333v341.334c0 12.8 8.534 21.333 21.334 21.333h810.666c12.8 0 21.334-8.533 21.334-21.333z"></path></svg><span class="text-zinc-900">Tools</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-900" viewBox="0 0 1088 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M370.24 127.232c16.384-44.736 79.68-44.672 96.128 0L556.8 373.504l246.208 90.432c44.8 16.384 44.8 79.68 0 96.128L556.8 650.496 466.368 896.64c-16.448 44.8-79.744 44.8-96.128 0l-90.432-246.208L33.536 560c-44.736-16.448-44.736-79.744 0-96.128l246.272-90.432 90.432-246.272zm-22.464 283.84a51.2 51.2 0 0 1-30.4 30.4L125.44 512l192 70.528a51.2 51.2 0 0 1 28.16 25.28l2.24 5.12 70.528 191.936 70.528-192 2.176-5.12a51.2 51.2 0 0 1 28.16-25.216l192-70.528-192-70.528a51.2 51.2 0 0 1-30.336-30.4l-70.528-192-70.528 192zM756.608 32.64a12.8 12.8 0 0 1 24 0l29.44 80a12.8 12.8 0 0 0 7.552 7.68l80 29.376a12.8 12.8 0 0 1 0 24l-80 29.44a12.8 12.8 0 0 0-7.616 7.552l-29.376 80a12.8 12.8 0 0 1-24 0l-29.44-80a12.8 12.8 0 0 0-7.552-7.616l-80-29.376a12.8 12.8 0 0 1 0-24l80-29.44a12.8 12.8 0 0 0 7.616-7.552l29.376-80zm0 700.672a12.8 12.8 0 0 1 24 0l29.44 80a12.8 12.8 0 0 0 7.552 7.616l80 29.376a12.8 12.8 0 0 1 0 24l-80 29.44a12.8 12.8 0 0 0-7.616 7.552l-29.376 80a12.8 12.8 0 0 1-24 0l-29.44-80a12.8 12.8 0 0 0-7.552-7.552l-80-29.44a12.8 12.8 0 0 1 0-24l80-29.44a12.8 12.8 0 0 0 7.616-7.552z"></path></svg><span class="text-zinc-900">Skills</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-900" viewBox="0 0 1103 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M995.146 703.015a136.665 136.665 0 0 0-159.035 15.754L770.89 680.96V494.277a54.11 54.11 0 0 0-27.097-46.868L576.41 350.996v-82.55a137.846 137.846 0 1 0-88.616 0v82.55L320.41 447.409a54.11 54.11 0 0 0-27.097 46.868V680.88l-65.22 37.81a136.665 136.665 0 0 0-158.957-15.754 138.08 138.08 0 0 0-50.491 188.18 136.82 136.82 0 0 0 187.313 50.412 137.85 137.85 0 0 0 66.009-146.196l59.864-34.816 173.056 99.643a54.51 54.51 0 0 0 54.194 0l172.898-99.564 59.943 34.816a138.08 138.08 0 0 0 66.009 146.274 136.743 136.743 0 0 0 187.313-50.412 138.004 138.004 0 0 0-50.097-188.259m-828.337 170.3a58.604 58.604 0 0 1-80.266-21.583 59.077 59.077 0 0 1 21.583-80.66 58.604 58.604 0 0 1 80.266 21.662 59.077 59.077 0 0 1-21.583 80.66zm306.097-735.469a59.077 59.077 0 1 1 118.154 0 59.077 59.077 0 0 1-118.154 0m209.211 549.18-150.134 86.488-150.134-86.489v-172.82l150.134-86.488 150.134 86.489zM977.423 851.81a58.683 58.683 0 0 1-80.266 21.662 59.156 59.156 0 0 1-21.504-80.58 58.683 58.683 0 0 1 80.187-21.662 59.077 59.077 0 0 1 21.583 80.58"></path></svg><span class="text-zinc-900">Agent / Teams</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-900" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M197.632 80.896H92.16c-51.2 0-92.16 40.96-92.16 92.16v672.768c0 51.2 40.96 92.16 92.16 92.16h105.472c51.2 0 92.16-40.96 92.16-92.16V173.056c0-51.2-40.96-92.16-92.16-92.16m39.936 764.928c0 21.504-17.408 38.912-39.936 38.912H92.16c-21.504 0-39.936-17.408-39.936-39.936V173.056c0-21.504 17.408-39.936 39.936-39.936h105.472c21.504 0 39.936 17.408 39.936 39.936zM540.672 80.896H434.176c-51.2 0-92.16 40.96-92.16 92.16V844.8c0 51.2 41.984 92.16 92.16 92.16h106.496c51.2 0 92.16-40.96 92.16-92.16V173.056c0-51.2-40.96-92.16-92.16-92.16m39.936 764.928c0 21.504-17.408 39.936-39.936 39.936H434.176c-21.504 0-39.936-17.408-39.936-39.936V173.056c0-21.504 18.432-39.936 39.936-39.936h106.496c21.504 0 39.936 17.408 39.936 39.936zm442.368-17.408-102.4-669.696c-7.168-48.128-51.2-82.944-99.328-77.824L731.136 92.16c-22.528 3.072-43.008 14.336-56.32 32.768-14.336 19.456-20.48 44.032-16.384 67.584l102.4 669.696c6.144 45.056 44.032 77.824 89.088 78.848h11.264l90.112-13.312c22.528-3.072 43.008-14.336 56.32-32.768 13.312-17.408 19.456-41.984 15.36-66.56m-59.392 36.864c-5.12 7.168-13.312 11.264-21.504 12.288l-90.112 11.264c-20.48 1.024-37.888-13.312-40.96-33.792l-102.4-669.696c-2.048-10.24 0-21.504 6.144-29.696 5.12-7.168 13.312-11.264 21.504-12.288l90.112-11.264h4.096c18.432 1.024 33.792 15.36 36.864 33.792l102.4 670.72c2.048 10.24 0 20.48-6.144 28.672"></path><path d="M105.472 446.464h78.848c14.336 0 26.624-12.288 26.624-26.624s-12.288-26.624-26.624-26.624h-78.848c-14.336 0-26.624 12.288-26.624 26.624 0 15.36 12.288 26.624 26.624 26.624m343.04 0h78.848c14.336 0 26.624-12.288 26.624-26.624s-12.288-26.624-26.624-26.624h-78.848c-14.336 0-26.624 12.288-26.624 26.624 0 15.36 12.288 26.624 26.624 26.624M184.32 578.56h-78.848c-14.336 0-26.624 12.288-26.624 26.624s12.288 26.624 26.624 26.624h78.848c14.336 0 26.624-12.288 26.624-26.624S199.68 578.56 184.32 578.56m343.04 0h-78.848c-14.336 0-26.624 12.288-26.624 26.624s12.288 26.624 26.624 26.624h78.848c14.336 0 26.624-12.288 26.624-26.624s-12.288-26.624-26.624-26.624"></path></svg><span class="text-zinc-900">Workspace</span></div></div><div class="sidebar-drawers sidebar-drawers--sessions is-open"><div class="sidebar-drawer m-[.35rem_.35rem_0] mt-4"><button type="button" class="flex w-full cursor-pointer items-center !border-none !bg-transparent p-[.45rem_.75rem] text-left text-[12px] font-[600] text-zinc-400 hover:text-zinc-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ds-color-accent)] focus-visible:ring-offset-2" aria-expanded="true" aria-controls="sessionList" aria-label="收起历史会话列表">历史会话<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down ml-1 shrink-0 text-[var(--ds-muted)]" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button><div class="sidebar-drawer-body sidebar-drawer-body--sessions"><div id="sessionList"><p class="sidebar-drawer-empty">(暂无会话)</p></div></div></div></div></div><div class="shrink-0 border-t border-solid border-[var(--ds-color-border-default)] transition flex items-center gap-2 p-[1rem_.75rem]"><div class="relative min-w-0 flex-1"><div class="flex min-w-0 cursor-pointer items-center gap-2 rounded-lg px-0.5 py-0.5"><span class="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold text-white" style="background:var(--avatar-bg)">QI</span><span class="min-w-0 truncate text-[var(--ds-text)]">qihoo</span></div></div><span data-slot="tooltip" class="inline-flex"><button type="button" tabindex="0" data-slot="button" data-size="icon-sm" aria-label="设置" class="group/button inline-flex shrink-0 items-center justify-center cursor-pointer !pl-[16px] !pr-[16px] [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg]:align-middle [&amp;_svg:not([class*=&#x27;size-&#x27;]):not([width])]:size-4 [&amp;_svg]:stroke-current [&amp;_svg[fill=none]_path]:fill-none [&amp;_svg:not([fill=none])_path]:fill-current bg-transparent border-0 size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg text-[var(--ds-muted)] hover:bg-[var(--ds-color-surface-item-hover)] focus-visible:ring-2 focus-visible:ring-[var(--ds-color-accent)]"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings shrink-0" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></div></aside><main class="main overflow-x-auto is-draft-session" data-region="chat-shell"><div class="main-content"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg> 加载中</div><!--/$--><!--$--><!--/$--></div></main><aside class="stage-thread-flyout" data-region="stage-thread-flyout" aria-hidden="true" style="--stage-flyout-width:760px"></aside></div></div><script>$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
2
- $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};$RC("B:0","S:0")</script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[13354,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/9e37e70d0f4b69de.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"AppToaster\"]\n3:I[39756,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/9e37e70d0f4b69de.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n4:I[37457,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/9e37e70d0f4b69de.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n5:I[21199,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/9e37e70d0f4b69de.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/43c4ed555aa7688a.js\",\"/app/_next/static/chunks/199236daa84a65de.js\",\"/app/_next/static/chunks/24baa106665e0774.js\",\"/app/_next/static/chunks/71668b2d16d048d8.js\",\"/app/_next/static/chunks/5208bff6c40e7fd0.js\",\"/app/_next/static/chunks/24ba1398a8b25d78.js\"],\"WorkspaceShell\"]\n6:\"$Sreact.suspense\"\n"])</script><script>self.__next_f.push([1,"7:I[5014,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/9e37e70d0f4b69de.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/43c4ed555aa7688a.js\",\"/app/_next/static/chunks/199236daa84a65de.js\",\"/app/_next/static/chunks/24baa106665e0774.js\",\"/app/_next/static/chunks/71668b2d16d048d8.js\",\"/app/_next/static/chunks/5208bff6c40e7fd0.js\",\"/app/_next/static/chunks/24ba1398a8b25d78.js\",\"/app/_next/static/chunks/b30ee3cb6af32088.js\",\"/app/_next/static/chunks/5d79b7f202080232.js\",\"/app/_next/static/chunks/bbcb68bcca448018.js\",\"/app/_next/static/chunks/696e3ddd135b85b4.js\",\"/app/_next/static/chunks/992d07434795e693.js\",\"/app/_next/static/chunks/5798600d2ea8a3e8.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"8:I[41130,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/9e37e70d0f4b69de.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/43c4ed555aa7688a.js\",\"/app/_next/static/chunks/199236daa84a65de.js\",\"/app/_next/static/chunks/24baa106665e0774.js\",\"/app/_next/static/chunks/71668b2d16d048d8.js\",\"/app/_next/static/chunks/5208bff6c40e7fd0.js\",\"/app/_next/static/chunks/24ba1398a8b25d78.js\",\"/app/_next/static/chunks/b30ee3cb6af32088.js\",\"/app/_next/static/chunks/5d79b7f202080232.js\",\"/app/_next/static/chunks/bbcb68bcca448018.js\",\"/app/_next/static/chunks/696e3ddd135b85b4.js\",\"/app/_next/static/chunks/992d07434795e693.js\",\"/app/_next/static/chunks/5798600d2ea8a3e8.js\"],\"BridgeDebugApp\",1]\n"])</script><script>self.__next_f.push([1,"11:I[68027,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/9e37e70d0f4b69de.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n:HL[\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"style\"]\n:HL[\"/app/_next/static/chunks/00efede689cf035f.css\",\"style\"]\n:HL[\"/app/_next/static/chunks/7defa1cc0271dd01.css\",\"style\"]\n:HL[\"/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"6V1592_KuRHKu2MxCBymu\",\"p\":\"/app\",\"c\":[\"\",\"\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"(workspace)\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/00efede689cf035f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/7defa1cc0271dd01.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/9e37e70d0f4b69de.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"className\":\"sora_a6e0e515-module__NbNjtG__variable dm_sans_fa25cdfd-module__fB5nTW__variable jetbrains_mono_2b1eae20-module__XfFTLG__variable font-sans\",\"children\":[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L2\",null,{}],[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]}]]}],{\"children\":[\"(workspace)\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/43c4ed555aa7688a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/199236daa84a65de.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/24baa106665e0774.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/71668b2d16d048d8.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/app/_next/static/chunks/5208bff6c40e7fd0.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/app/_next/static/chunks/24ba1398a8b25d78.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$6\",null,{\"fallback\":[\"$\",\"div\",null,{\"className\":\"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500\",\"children\":[[\"$\",\"$L7\",null,{\"ref\":\"$undefined\",\"iconNode\":[[\"path\",{\"d\":\"M21 12a9 9 0 1 1-6.219-8.56\",\"key\":\"13zald\"}]],\"className\":\"lucide-loader-circle animate-spin text-muted-foreground\",\"size\":16,\"color\":\"currentColor\",\"strokeWidth\":2,\"aria-hidden\":\"true\"}],\" 加载中\"]}],\"children\":[\"$\",\"$L8\",null,{}]}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/b30ee3cb6af32088.js\",\"async\":true,\"nonce\":\"$undefined\"}],\"$L9\",\"$La\",\"$Lb\",\"$Lc\",\"$Ld\"],\"$Le\"]}],{},null,false]},null,false]},[\"$Lf\",[],[]],false],\"$L10\",false]],\"m\":\"$undefined\",\"G\":[\"$11\",[\"$L12\",\"$L13\",\"$L14\"]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"15:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/9e37e70d0f4b69de.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"OutletBoundary\"]\n17:I[11533,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/9e37e70d0f4b69de.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"AsyncMetadataOutlet\"]\n19:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/9e37e70d0f4b69de.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"ViewportBoundary\"]\n1b:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/9e37e70d0f4b69de.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"MetadataBoundary\"]\n9:[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/5d79b7f202080232.js\",\"async\":true,\"nonce\":\"$undefined\"}]\na:[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/bbcb68bcca448018.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nb:[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/696e3ddd135b85b4.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nc:[\"$\",\"script\",\"script-4\",{\"src\":\"/app/_next/static/chunks/992d07434795e693.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nd:[\"$\",\"script\",\"script-5\",{\"src\":\"/app/_next/static/chunks/5798600d2ea8a3e8.js\",\"async\":true,\"nonce\":\"$undefined\"}]\ne:[\"$\",\"$L15\",null,{\"children\":[\"$L16\",[\"$\",\"$L17\",null,{\"promise\":\"$@18\"}]]}]\nf:[\"$\",\"div\",\"l\",{\"className\":\"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500\",\"children\":[[\"$\",\"$L7\",null,{\"ref\":\"$undefined\",\"iconNode\":\"$0:f:0:1:2:children:2:children:1:props:children:0:props:fallback:props:children:0:props:iconNode\",\"className\":\"lucide-loader-circle animate-spin text-muted-foreground\",\"size\":16,\"color\":\"currentColor\",\"strokeWidth\":2,\"aria-hidden\":\"true\"}],\" 加载中\"]}]\n10:[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L19\",null,{\"children\":\"$L1a\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$L1b\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$6\",null,{\"fallback\":null,\"children\":\"$L1c\"}]}]}]]}]\n12"])</script><script>self.__next_f.push([1,":[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n13:[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/00efede689cf035f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n14:[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/7defa1cc0271dd01.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"1a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n16:null\n"])</script><script>self.__next_f.push([1,"18:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Claude Code测试平台\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Claude Code测试平台\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"1c:\"$18:metadata\"\n"])</script></body></html>
1
+ <!DOCTYPE html><!--CKN4dmqX3cDLLtdKmTIzy--><html lang="zh-CN" class="sora_a6e0e515-module__NbNjtG__variable dm_sans_fa25cdfd-module__fB5nTW__variable jetbrains_mono_2b1eae20-module__XfFTLG__variable font-sans"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/app/_next/static/chunks/7bdf0e5b41aeb209.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/00efede689cf035f.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/64260aa198e73a1f.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/app/_next/static/chunks/9ccf7a8bca1730bf.js"/><script src="/app/_next/static/chunks/522518d740397639.js" async=""></script><script src="/app/_next/static/chunks/40268f8e3ff0314e.js" async=""></script><script src="/app/_next/static/chunks/32b4d63e10d31351.js" async=""></script><script src="/app/_next/static/chunks/66b30159915524db.js" async=""></script><script src="/app/_next/static/chunks/turbopack-63952675b1d69124.js" async=""></script><script src="/app/_next/static/chunks/ff1a16fafef87110.js" async=""></script><script src="/app/_next/static/chunks/fec7e4e35f80ab99.js" async=""></script><script src="/app/_next/static/chunks/4d8b306a3d3b6c49.js" async=""></script><script src="/app/_next/static/chunks/7988d5ea63356e10.js" async=""></script><script src="/app/_next/static/chunks/7eb1acc2520f374d.js" async=""></script><script src="/app/_next/static/chunks/199236daa84a65de.js" async=""></script><script src="/app/_next/static/chunks/cfd955c69ad0cb7c.js" async=""></script><script src="/app/_next/static/chunks/24ba1398a8b25d78.js" async=""></script><script src="/app/_next/static/chunks/ec3213604182c7c5.js" async=""></script><script src="/app/_next/static/chunks/8bfafed734ac3365.js" async=""></script><script src="/app/_next/static/chunks/24baa106665e0774.js" async=""></script><script src="/app/_next/static/chunks/34ca8b17795bb784.js" async=""></script><script src="/app/_next/static/chunks/b9531f00083cfcb1.js" async=""></script><script src="/app/_next/static/chunks/34a220844c501fc9.js" async=""></script><script src="/app/_next/static/chunks/696e3ddd135b85b4.js" async=""></script><script src="/app/_next/static/chunks/992d07434795e693.js" async=""></script><script src="/app/_next/static/chunks/5798600d2ea8a3e8.js" async=""></script><meta name="next-size-adjust" content=""/><title>Claude Code测试平台</title><meta name="description" content="Claude Code测试平台"/><script src="/app/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><!--$?--><template id="B:0"></template><div class="flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg> 加载中</div><!--/$--><script>requestAnimationFrame(function(){$RT=performance.now()});</script><script src="/app/_next/static/chunks/9ccf7a8bca1730bf.js" id="_R_" async=""></script><div hidden id="S:0"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><div class="ws-config-hidden" aria-hidden="true"><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/></div><div class="app" data-ui-layer="presentation" data-topology="local-first"><aside class="sidebar h-dvh max-h-dvh min-h-0 self-start overflow-hidden " data-region="sidebar-panels"><div class="sidebar-brand"><div class="sidebar-brand-title-row flex items-center justify-between"><div class="logo flex min-w-0 items-center gap-2"><span class="text-zinc-1000 truncate">Claude Code测试平台</span></div><span data-slot="tooltip" class="inline-flex"><button type="button" class="sidebar-icon-btn" title="收起侧边栏" aria-label="收起侧边栏"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 1024 1024" color="#8f8f8f" fill="#8f8f8f" aria-hidden="true"><path d="M331.05 85.333h361.9c34.346 0 62.72 0 85.76 1.878 24.02 1.962 46.08 6.186 66.773 16.725a170.67 170.67 0 0 1 74.581 74.581c10.539 20.694 14.763 42.752 16.725 66.731 1.878 23.125 1.878 51.456 1.878 85.76v361.941c0 34.347 0 62.72-1.878 85.76-1.962 24.022-6.186 46.08-16.725 66.774a170.67 170.67 0 0 1-74.581 74.581c-20.694 10.539-42.752 14.763-66.731 16.725-23.083 1.878-51.456 1.878-85.76 1.878H331.008c-34.347 0-62.72 0-85.76-1.878-24.021-1.962-46.08-6.186-66.773-16.725a170.67 170.67 0 0 1-74.582-74.581c-10.538-20.694-14.762-42.752-16.725-66.731-1.835-23.125-1.835-51.456-1.835-85.76V331.008c0-34.347 0-62.72 1.878-85.76 1.962-24.021 6.186-46.08 16.725-66.773a170.67 170.67 0 0 1 74.581-74.582c20.694-10.538 42.752-14.762 66.731-16.725 23.125-1.835 51.456-1.835 85.76-1.835zm95.617 768H691.2c36.565 0 61.397 0 80.597-1.621 18.688-1.493 28.288-4.267 34.944-7.68a85.33 85.33 0 0 0 37.291-37.29c3.413-6.657 6.187-16.214 7.68-34.945 1.579-19.2 1.621-44.032 1.621-80.597V332.8c0-36.565 0-61.397-1.621-80.597-1.493-18.688-4.267-28.288-7.68-34.944a85.33 85.33 0 0 0-37.29-37.291c-6.657-3.413-16.214-6.187-34.945-7.68-19.2-1.621-44.032-1.621-80.597-1.621H426.667zm-85.334-682.666H332.8c-36.565 0-61.397 0-80.597 1.621-18.688 1.493-28.288 4.267-34.944 7.68a85.33 85.33 0 0 0-37.291 37.29c-3.413 6.657-6.187 16.214-7.68 34.945-1.621 19.2-1.621 44.032-1.621 80.597v358.4c0 36.565 0 61.397 1.621 80.597 1.493 18.688 4.267 28.288 7.68 34.944a85.33 85.33 0 0 0 37.29 37.291c6.657 3.413 16.214 6.187 34.945 7.68 19.2 1.621 44.032 1.621 80.597 1.621h8.533z"></path></svg></button></span></div></div><div class="new-chat"><div class="mb-4 ml-2 mr-2 mt-2 flex cursor-pointer items-center gap-2.5 rounded-2xl px-2 py-2 text-zinc-900 transition-colors hover:bg-white/70" title="开启新对话" aria-label="开启新对话"><span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--ds-color-surface-item-active)] text-[var(--ds-color-accent)]" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></span><span class="min-w-0 font-medium">新会话</span></div></div><div class="sidebar-scroll-area"><div class="sidebar-drawers sidebar-drawers--nav px-[10px]"><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900" role="button" tabindex="0" aria-busy="false"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-900 " viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="m259.413 120.036-149.22 106.666-49.606-69.404L209.92 50.63l49.607 69.405zM814.08 50.63l149.39 106.667-49.607 69.404-149.276-106.666 49.607-69.405zM78.28 554.667a433.778 433.778 0 1 1 867.555 0 433.778 433.778 0 0 1-867.556 0M512 206.222a348.444 348.444 0 1 0 0 696.89 348.444 348.444 0 0 0 0-696.89m-47.787 356.125V327.623h85.334v217.145l153.258 153.316-60.302 60.302-165.831-165.774a42.67 42.67 0 0 1-12.516-30.152z"></path></svg><span class="text-zinc-900">定时任务</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900" role="button" tabindex="0" aria-busy="false"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-900 " viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M424.64 115.392A170.432 170.432 0 0 1 714.304 254.4a166.464 166.464 0 0 1 137.728 282.752l-307.84 307.712 94.912 94.848a36.736 36.736 0 0 1-51.712 51.84L466.624 870.784a36.544 36.544 0 0 1 0-51.712l333.568-333.568a93.312 93.312 0 0 0-131.648-132.096l-3.008 2.88v.128L428.352 592.96a36.544 36.544 0 0 1-56.064-5.44c-.576-.768-.96-1.664-1.472-2.432a36.3 36.3 0 0 1-4.352-23.68l.32-1.92a36.4 36.4 0 0 1 5.12-12.608l4.8-5.76 236.992-236.416 6.72-7.488A97.28 97.28 0 0 0 476.288 167.04L136.576 507.008a36.544 36.544 0 0 1-51.712-51.712l339.84-339.84zm94.912 94.4a36.544 36.544 0 0 1 51.008 52.352L329.024 497.856a98.368 98.368 0 1 0 138.624 139.52l240.64-243.584a36.672 36.672 0 0 1 52.096 51.328l-240.64 243.584A171.584 171.584 0 1 1 277.952 445.44z"></path></svg><span class="text-zinc-900">MCP</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900" role="button" tabindex="0" aria-busy="false"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-900 " viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M938.667 981.333H85.333C38.4 981.333 0 942.933 0 896V298.667c0-46.934 38.4-85.334 85.333-85.334h192V128c0-46.933 38.4-85.333 85.334-85.333h298.666c46.934 0 85.334 38.4 85.334 85.333v85.333h192c46.933 0 85.333 38.4 85.333 85.334V896c0 46.933-38.4 85.333-85.333 85.333m-277.334-832c0-12.8-8.533-21.333-21.333-21.333H384c-12.8 0-21.333 8.533-21.333 21.333v64h298.666zM938.667 320c0-12.8-8.534-21.333-21.334-21.333H106.667c-12.8 0-21.334 8.533-21.334 21.333v128h213.334c17.066 0 32 10.667 38.4 23.467L388.267 576H633.6l51.2-104.533C691.2 456.533 706.133 448 723.2 448h213.333V320zm0 213.333H750.933l-51.2 104.534c-6.4 14.933-21.333 23.466-38.4 23.466H362.667c-17.067 0-32-10.666-38.4-23.466l-51.2-104.534H85.333v341.334c0 12.8 8.534 21.333 21.334 21.333h810.666c12.8 0 21.334-8.533 21.334-21.333z"></path></svg><span class="text-zinc-900">Tools</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900" role="button" tabindex="0" aria-busy="false"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-900 " viewBox="0 0 1088 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M370.24 127.232c16.384-44.736 79.68-44.672 96.128 0L556.8 373.504l246.208 90.432c44.8 16.384 44.8 79.68 0 96.128L556.8 650.496 466.368 896.64c-16.448 44.8-79.744 44.8-96.128 0l-90.432-246.208L33.536 560c-44.736-16.448-44.736-79.744 0-96.128l246.272-90.432 90.432-246.272zm-22.464 283.84a51.2 51.2 0 0 1-30.4 30.4L125.44 512l192 70.528a51.2 51.2 0 0 1 28.16 25.28l2.24 5.12 70.528 191.936 70.528-192 2.176-5.12a51.2 51.2 0 0 1 28.16-25.216l192-70.528-192-70.528a51.2 51.2 0 0 1-30.336-30.4l-70.528-192-70.528 192zM756.608 32.64a12.8 12.8 0 0 1 24 0l29.44 80a12.8 12.8 0 0 0 7.552 7.68l80 29.376a12.8 12.8 0 0 1 0 24l-80 29.44a12.8 12.8 0 0 0-7.616 7.552l-29.376 80a12.8 12.8 0 0 1-24 0l-29.44-80a12.8 12.8 0 0 0-7.552-7.616l-80-29.376a12.8 12.8 0 0 1 0-24l80-29.44a12.8 12.8 0 0 0 7.616-7.552l29.376-80zm0 700.672a12.8 12.8 0 0 1 24 0l29.44 80a12.8 12.8 0 0 0 7.552 7.616l80 29.376a12.8 12.8 0 0 1 0 24l-80 29.44a12.8 12.8 0 0 0-7.616 7.552l-29.376 80a12.8 12.8 0 0 1-24 0l-29.44-80a12.8 12.8 0 0 0-7.552-7.552l-80-29.44a12.8 12.8 0 0 1 0-24l80-29.44a12.8 12.8 0 0 0 7.616-7.552z"></path></svg><span class="text-zinc-900">Skills</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900" role="button" tabindex="0" aria-busy="false"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-900 " viewBox="0 0 1103 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M995.146 703.015a136.665 136.665 0 0 0-159.035 15.754L770.89 680.96V494.277a54.11 54.11 0 0 0-27.097-46.868L576.41 350.996v-82.55a137.846 137.846 0 1 0-88.616 0v82.55L320.41 447.409a54.11 54.11 0 0 0-27.097 46.868V680.88l-65.22 37.81a136.665 136.665 0 0 0-158.957-15.754 138.08 138.08 0 0 0-50.491 188.18 136.82 136.82 0 0 0 187.313 50.412 137.85 137.85 0 0 0 66.009-146.196l59.864-34.816 173.056 99.643a54.51 54.51 0 0 0 54.194 0l172.898-99.564 59.943 34.816a138.08 138.08 0 0 0 66.009 146.274 136.743 136.743 0 0 0 187.313-50.412 138.004 138.004 0 0 0-50.097-188.259m-828.337 170.3a58.604 58.604 0 0 1-80.266-21.583 59.077 59.077 0 0 1 21.583-80.66 58.604 58.604 0 0 1 80.266 21.662 59.077 59.077 0 0 1-21.583 80.66zm306.097-735.469a59.077 59.077 0 1 1 118.154 0 59.077 59.077 0 0 1-118.154 0m209.211 549.18-150.134 86.488-150.134-86.489v-172.82l150.134-86.488 150.134 86.489zM977.423 851.81a58.683 58.683 0 0 1-80.266 21.662 59.156 59.156 0 0 1-21.504-80.58 58.683 58.683 0 0 1 80.187-21.662 59.077 59.077 0 0 1 21.583 80.58"></path></svg><span class="text-zinc-900">Agent / Teams</span></div><button type="button" tabindex="0" aria-haspopup="menu" id="base-ui-_R_1pcubtb_" data-slot="dropdown-menu-trigger" aria-label="更多" class="m-[.45rem_0_0] flex w-full cursor-pointer border-0 bg-transparent items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-color-surface-item-active)] hover:text-zinc-900"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-ellipsis mr-3 text-zinc-900" aria-hidden="true"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg><span class="text-zinc-900">更多</span></button></div><div class="sidebar-drawers sidebar-drawers--sessions is-open"><div class="sidebar-drawer m-[.35rem_.35rem_0] mt-4"><button type="button" class="flex w-full cursor-pointer items-center !border-none !bg-transparent p-[.45rem_.75rem] text-left text-[12px] font-[600] text-zinc-400 hover:text-zinc-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ds-color-accent)] focus-visible:ring-offset-2" aria-expanded="true" aria-controls="sessionList" aria-label="收起历史会话列表">历史会话<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down ml-1 shrink-0 text-[var(--ds-muted)]" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button><div class="sidebar-drawer-body sidebar-drawer-body--sessions"><div id="sessionList"><p class="sidebar-drawer-empty">(暂无会话)</p></div></div></div></div></div><div class="shrink-0 border-t border-solid border-[var(--ds-color-border-default)] transition flex items-center gap-2 p-[1rem_.75rem]"><div class="relative min-w-0 flex-1"><div class="flex min-w-0 cursor-pointer items-center gap-2 rounded-lg px-0.5 py-0.5"><span class="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold text-white" style="background:var(--avatar-bg)">QI</span><span class="min-w-0 truncate text-[var(--ds-text)]">qihoo</span></div></div><span data-slot="tooltip" class="inline-flex"><button type="button" tabindex="0" data-slot="button" data-size="icon-sm" aria-label="设置" class="group/button inline-flex shrink-0 items-center justify-center cursor-pointer !pl-[16px] !pr-[16px] [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg]:align-middle [&amp;_svg:not([class*=&#x27;size-&#x27;]):not([width])]:size-4 [&amp;_svg]:stroke-current [&amp;_svg[fill=none]_path]:fill-none [&amp;_svg:not([fill=none])_path]:fill-current bg-transparent border-0 size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg text-[var(--ds-muted)] hover:bg-[var(--ds-color-surface-item-hover)] focus-visible:ring-2 focus-visible:ring-[var(--ds-color-accent)]"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings shrink-0" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></div></aside><main class="main relative overflow-x-auto is-draft-session" data-region="chat-shell"><div class="main-content"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><div class="flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg> 加载中</div><!--/$--><!--$--><!--/$--></div></main><aside class="stage-thread-flyout" data-region="stage-thread-flyout" aria-hidden="true" style="--stage-flyout-width:760px"></aside></div></div><script>$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
2
+ $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};$RC("B:0","S:0")</script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[13354,[\"/app/_next/static/chunks/ff1a16fafef87110.js\",\"/app/_next/static/chunks/fec7e4e35f80ab99.js\",\"/app/_next/static/chunks/4d8b306a3d3b6c49.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"AppToaster\"]\n3:I[39756,[\"/app/_next/static/chunks/ff1a16fafef87110.js\",\"/app/_next/static/chunks/fec7e4e35f80ab99.js\",\"/app/_next/static/chunks/4d8b306a3d3b6c49.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n4:I[37457,[\"/app/_next/static/chunks/ff1a16fafef87110.js\",\"/app/_next/static/chunks/fec7e4e35f80ab99.js\",\"/app/_next/static/chunks/4d8b306a3d3b6c49.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n5:I[21199,[\"/app/_next/static/chunks/ff1a16fafef87110.js\",\"/app/_next/static/chunks/fec7e4e35f80ab99.js\",\"/app/_next/static/chunks/4d8b306a3d3b6c49.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/7eb1acc2520f374d.js\",\"/app/_next/static/chunks/199236daa84a65de.js\",\"/app/_next/static/chunks/cfd955c69ad0cb7c.js\",\"/app/_next/static/chunks/24ba1398a8b25d78.js\",\"/app/_next/static/chunks/ec3213604182c7c5.js\",\"/app/_next/static/chunks/8bfafed734ac3365.js\",\"/app/_next/static/chunks/24baa106665e0774.js\"],\"WorkspaceShell\"]\n6:\"$Sreact.suspense\"\n"])</script><script>self.__next_f.push([1,"7:I[5014,[\"/app/_next/static/chunks/ff1a16fafef87110.js\",\"/app/_next/static/chunks/fec7e4e35f80ab99.js\",\"/app/_next/static/chunks/4d8b306a3d3b6c49.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/7eb1acc2520f374d.js\",\"/app/_next/static/chunks/199236daa84a65de.js\",\"/app/_next/static/chunks/cfd955c69ad0cb7c.js\",\"/app/_next/static/chunks/24ba1398a8b25d78.js\",\"/app/_next/static/chunks/ec3213604182c7c5.js\",\"/app/_next/static/chunks/8bfafed734ac3365.js\",\"/app/_next/static/chunks/24baa106665e0774.js\",\"/app/_next/static/chunks/34ca8b17795bb784.js\",\"/app/_next/static/chunks/b9531f00083cfcb1.js\",\"/app/_next/static/chunks/34a220844c501fc9.js\",\"/app/_next/static/chunks/696e3ddd135b85b4.js\",\"/app/_next/static/chunks/992d07434795e693.js\",\"/app/_next/static/chunks/5798600d2ea8a3e8.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"12:I[68027,[\"/app/_next/static/chunks/ff1a16fafef87110.js\",\"/app/_next/static/chunks/fec7e4e35f80ab99.js\",\"/app/_next/static/chunks/4d8b306a3d3b6c49.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n:HL[\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"style\"]\n:HL[\"/app/_next/static/chunks/00efede689cf035f.css\",\"style\"]\n:HL[\"/app/_next/static/chunks/64260aa198e73a1f.css\",\"style\"]\n:HL[\"/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"CKN4dmqX3cDLLtdKmTIzy\",\"p\":\"/app\",\"c\":[\"\",\"\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"(workspace)\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/00efede689cf035f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/64260aa198e73a1f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/ff1a16fafef87110.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/fec7e4e35f80ab99.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/4d8b306a3d3b6c49.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"className\":\"sora_a6e0e515-module__NbNjtG__variable dm_sans_fa25cdfd-module__fB5nTW__variable jetbrains_mono_2b1eae20-module__XfFTLG__variable font-sans\",\"children\":[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L2\",null,{}],[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}]}]]}],{\"children\":[\"(workspace)\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/7eb1acc2520f374d.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/199236daa84a65de.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/cfd955c69ad0cb7c.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/24ba1398a8b25d78.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/app/_next/static/chunks/ec3213604182c7c5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/app/_next/static/chunks/8bfafed734ac3365.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-6\",{\"src\":\"/app/_next/static/chunks/24baa106665e0774.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$6\",null,{\"fallback\":[\"$\",\"div\",null,{\"className\":\"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500\",\"children\":[[\"$\",\"$L7\",null,{\"ref\":\"$undefined\",\"iconNode\":[[\"path\",{\"d\":\"M21 12a9 9 0 1 1-6.219-8.56\",\"key\":\"13zald\"}]],\"className\":\"lucide-loader-circle animate-spin text-muted-foreground\",\"size\":16,\"color\":\"currentColor\",\"strokeWidth\":2,\"aria-hidden\":\"true\"}],\" 加载中\"]}],\"children\":\"$L8\"}],[\"$L9\",\"$La\",\"$Lb\",\"$Lc\",\"$Ld\",\"$Le\"],\"$Lf\"]}],{},null,false]},null,false]},[\"$L10\",[],[]],false],\"$L11\",false]],\"m\":\"$undefined\",\"G\":[\"$12\",[\"$L13\",\"$L14\",\"$L15\"]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"16:I[41130,[\"/app/_next/static/chunks/ff1a16fafef87110.js\",\"/app/_next/static/chunks/fec7e4e35f80ab99.js\",\"/app/_next/static/chunks/4d8b306a3d3b6c49.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/7eb1acc2520f374d.js\",\"/app/_next/static/chunks/199236daa84a65de.js\",\"/app/_next/static/chunks/cfd955c69ad0cb7c.js\",\"/app/_next/static/chunks/24ba1398a8b25d78.js\",\"/app/_next/static/chunks/ec3213604182c7c5.js\",\"/app/_next/static/chunks/8bfafed734ac3365.js\",\"/app/_next/static/chunks/24baa106665e0774.js\",\"/app/_next/static/chunks/34ca8b17795bb784.js\",\"/app/_next/static/chunks/b9531f00083cfcb1.js\",\"/app/_next/static/chunks/34a220844c501fc9.js\",\"/app/_next/static/chunks/696e3ddd135b85b4.js\",\"/app/_next/static/chunks/992d07434795e693.js\",\"/app/_next/static/chunks/5798600d2ea8a3e8.js\"],\"BridgeDebugApp\",1]\n"])</script><script>self.__next_f.push([1,"17:I[97367,[\"/app/_next/static/chunks/ff1a16fafef87110.js\",\"/app/_next/static/chunks/fec7e4e35f80ab99.js\",\"/app/_next/static/chunks/4d8b306a3d3b6c49.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"OutletBoundary\"]\n19:I[11533,[\"/app/_next/static/chunks/ff1a16fafef87110.js\",\"/app/_next/static/chunks/fec7e4e35f80ab99.js\",\"/app/_next/static/chunks/4d8b306a3d3b6c49.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"AsyncMetadataOutlet\"]\n1b:I[97367,[\"/app/_next/static/chunks/ff1a16fafef87110.js\",\"/app/_next/static/chunks/fec7e4e35f80ab99.js\",\"/app/_next/static/chunks/4d8b306a3d3b6c49.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"ViewportBoundary\"]\n1d:I[97367,[\"/app/_next/static/chunks/ff1a16fafef87110.js\",\"/app/_next/static/chunks/fec7e4e35f80ab99.js\",\"/app/_next/static/chunks/4d8b306a3d3b6c49.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"MetadataBoundary\"]\n8:[\"$\",\"$L16\",null,{}]\n9:[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/34ca8b17795bb784.js\",\"async\":true,\"nonce\":\"$undefined\"}]\na:[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/b9531f00083cfcb1.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nb:[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/34a220844c501fc9.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nc:[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/696e3ddd135b85b4.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nd:[\"$\",\"script\",\"script-4\",{\"src\":\"/app/_next/static/chunks/992d07434795e693.js\",\"async\":true,\"nonce\":\"$undefined\"}]\ne:[\"$\",\"script\",\"script-5\",{\"src\":\"/app/_next/static/chunks/5798600d2ea8a3e8.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nf:[\"$\",\"$L17\",null,{\"children\":[\"$L18\",[\"$\",\"$L19\",null,{\"promise\":\"$@1a\"}]]}]\n10:[\"$\",\"div\",\"l\",{\"className\":\"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500\",\"children\":[[\"$\",\"$L7\",null,{\"ref\":\"$undefined\",\"iconNode\":\"$0:f:0:1:2:children:2:children:1:props:children:0:props:fallback:props:children:0:props:iconNode\",\"className\":\"lucide-loader-circle animate-spin text-muted-foreground\",\"size\":16,\"color\":\"curren"])</script><script>self.__next_f.push([1,"tColor\",\"strokeWidth\":2,\"aria-hidden\":\"true\"}],\" 加载中\"]}]\n11:[\"$\",\"$1\",\"h\",{\"children\":[null,[[\"$\",\"$L1b\",null,{\"children\":\"$L1c\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$L1d\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$6\",null,{\"fallback\":null,\"children\":\"$L1e\"}]}]}]]}]\n13:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n14:[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/00efede689cf035f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n15:[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/64260aa198e73a1f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"1c:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n18:null\n"])</script><script>self.__next_f.push([1,"1a:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Claude Code测试平台\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Claude Code测试平台\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"1e:\"$1a:metadata\"\n"])</script></body></html>