1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,303722,e=>{"use strict";var t=e.i(83790);let r={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};r.node;let a=(0,t.default)(r);e.s(["Network",0,a],303722)},796626,e=>{"use strict";var t=e.i(228474);e.s(["PlugIcon",()=>t.default])},754893,e=>{"use strict";var t=e.i(83790);let r={name:"rotate-ccw-clock",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],aliases:["history"]};r.node;let a=(0,t.default)(r);e.s(["History",0,a],754893)},761583,e=>{"use strict";var t=e.i(83790);let r={name:"scroll",size:24,node:[["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]};r.node;let a=(0,t.default)(r);e.s(["Scroll",0,a],761583)},518773,e=>{"use strict";var t=e.i(83790);let r={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]};r.node;let a=(0,t.default)(r);e.s(["Send",0,a],518773)},349468,e=>{"use strict";var t=e.i(83790);let r={name:"square-chart-gantt",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]],aliases:["gantt-chart-square","square-gantt-chart"]};r.node;let a=(0,t.default)(r);e.s(["SquareChartGantt",0,a],349468)},16236,e=>{"use strict";var t=e.i(83790);let r={name:"square-mouse-pointer",size:24,node:[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}]],aliases:["inspect"]};r.node;let a=(0,t.default)(r);e.s(["SquareMousePointer",0,a],16236)},656472,e=>{"use strict";var t=e.i(607444);e.s(["SquarePen",()=>t.default])},403475,490841,e=>{"use strict";var t=e.i(83790);let r={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};r.node;let a=(0,t.default)(r);e.s(["default",0,a],490841),e.s(["Terminal",0,a],403475)},644222,e=>{"use strict";var t=e.i(83790);let r={name:"text-search",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M10 12H3",key:"1ulcyk"}],["path",{d:"M10 19H3",key:"108z41"}],["circle",{cx:"17",cy:"15",r:"3",key:"1upz2a"}],["path",{d:"m21 19-1.9-1.9",key:"dwi7p8"}]]};r.node;let a=(0,t.default)(r);e.s(["TextSearch",0,a],644222)},382174,e=>{"use strict";var t=e.i(83790);let r={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};r.node;let a=(0,t.default)(r);e.s(["Wrench",0,a],382174)},545382,861206,388840,495518,688560,756604,24163,627896,e=>{"use strict";let t=new Set(["update-tasks","view-tasks","delete-tasks","clear-all"]),r=new Set(["create-tasks","write-plan"]);e.s(["shouldHideTaskTool",0,function(e){let{isTasksWidgetEnabled:a=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e?.toLowerCase().replace(/_/g,"-");return!!n&&(!!t.has(n)||a&&r.has(n))}],545382);var a=e.i(83790);let n={name:"square-dashed",size:24,node:[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]],aliases:["box-select"]};n.node;let i=(0,a.default)(n);e.s(["BoxSelect",0,i],861206);let s={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};s.node;let o=(0,a.default)(s);e.s(["default",0,o],388840),e.s(["CircleX",0,o],495518);let c={name:"gallery-vertical-end",size:24,node:[["path",{d:"M7 2h10",key:"nczekb"}],["path",{d:"M5 6h14",key:"u2x4p"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}]]};c.node;let l=(0,a.default)(c);e.s(["GalleryVerticalEnd",0,l],688560);let u={name:"image-down",size:24,node:[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19 3 3v-5.5",key:"9ldu5r"}],["path",{d:"m17 22 3-3",key:"1nkfve"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]};u.node;let d=(0,a.default)(u);e.s(["ImageDown",0,d],756604);let p={name:"image-play",size:24,node:[["path",{d:"M15 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"nrt1m3"}],["path",{d:"M21 12.17V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"99hgts"}],["path",{d:"m6 21 5-5",key:"1wyjai"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]};p.node;let m=(0,a.default)(p);e.s(["ImagePlay",0,m],24163);let h={name:"mouse-pointer",size:24,node:[["path",{d:"M12.586 12.586 19 19",key:"ea5xo7"}],["path",{d:"M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.5
179a.5.5 0 0 0 .063-.947z",key:"277e5u"}]]};h.node;let f=(0,a.default)(h);e.s(["MousePointer",0,f],627896)},752,414931,e=>{"use strict";e.i(185511);var t=e.i(431982),r=e.i(547005),a=e.i(545382),n=e.i(272185),i=e.i(280997),s=e.i(732460),o=e.i(861206),c=e.i(859741),l=e.i(328984),u=e.i(495518),d=e.i(600535),p=e.i(37538),m=e.i(443508),h=e.i(451636),f=e.i(392268),g=e.i(403462),w=e.i(406952),v=e.i(688560),y=e.i(154466),b=e.i(754893),k=e.i(590335),x=e.i(756604),C=e.i(24163),_=e.i(520708),S=e.i(718354),M=e.i(394512),N=e.i(627896),T=e.i(804319),L=e.i(303722),E=e.i(579295),q=e.i(796626),z=e.i(142274),P=e.i(761583),j=e.i(722708),G=e.i(161863),A=e.i(518773),W=e.i(349468),H=e.i(320463),D=e.i(16236),B=e.i(656472),I=e.i(403475),O=e.i(644222),V=e.i(458055),R=e.i(382174),$=e.i(236601),Z=e.i(130084),K=e.i(519840),U=e.i(371205);function F(e){return(e??"").trim().toLowerCase().replace(/_/g,"-").replace(/\./g,"-")}function J(e){let t,r;if(!e)return null;let a=e.trim();if(!a)return null;let n=a.indexOf("__"),i=a.indexOf("."),s=a.indexOf("--");if(-1!==n&&(-1===i||n<i))t=n,r=2;else if(-1!==i)t=i,r=1;else{if(-1===s)return null;t=s,r=2}let o=a.slice(0,t),c=a.slice(t+r);return o&&c?{connector:Q(o),toolName:Q(c)}:null}function Q(e){return e.toLowerCase().replace(/_/g,"-")}e.s(["normalizeConnectorToolName",0,J,"normalizeToolName",0,F],414931);var X=e.i(668271);let Y=new Set(["databricks","databricksgenieone"]),ee=e=>(0,$.createElement)("svg",{viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,$.createElement)("path",{d:"M8 3C10.7614 3 13 5.23858 13 8C13 9.27532 12.5213 10.438 11.7354 11.3213L15.707 15.293L15 16L11 12V11.999C10.1642 12.627 9.1259 13 8 13C5.23858 13 3 10.7614 3 8C3 5.23858 5.23858 3 8 3ZM8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4ZM8 5C9.65685 5 11 6.34315 11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5ZM8 5.75C6.75736 5.75 5.75 6.75736 5.75 8C5.75 9.24264 6.75736 10.25 8 10.25C9.24264 10.25 10.25 9.24264 10.25 8C10.25 6.75736 9.24264 5.75 8 5.75Z",fill:"currentColor"}),(0,$.createElement)("path",{d:"M8 5C8.68798 5 9.25489 6.14517 9.33789 7.625H10.625C10.8321 7.625 11 7.79289 11 8C11 8.20711 10.8321 8.375 10.625 8.375H9.33789C9.25489 9.85483 8.68798 11 8 11C7.31224 10.9995 6.74607 9.85448 6.66309 8.375H5.375C5.16789 8.375 5 8.20711 5 8C5 7.79289 5.16789 7.625 5.375 7.625H6.66309C6.74607 6.14552 7.31224 5.00054 8 5ZM7.41406 8.375C7.45119 8.961 7.57199 9.46097 7.73047 9.81348C7.85023 10.0798 7.94982 10.1864 8 10.2275C8.05008 10.1866 8.1505 10.0803 8.27051 9.81348C8.42899 9.46097 8.54979 8.961 8.58691 8.375H7.41406ZM8 5.77246C7.94982 5.81363 7.85023 5.92021 7.73047 6.18652C7.57199 6.53903 7.45119 7.039 7.41406 7.625H8.58691C8.54979 7.039 8.42899 6.53903 8.27051 6.18652C8.1505 5.91966 8.05008 5.81345 8 5.77246Z",fill:"currentColor"})),et=new Set(["browser-navigate-to","browser-act","browser-extract-content","browser-screenshot","browser-go-back","browser-wait","browser-click-element","browser-input-text","browser-send-keys","browser-switch-tab","browser-close-tab","browser-scroll-down","browser-scroll-up","browser-scroll-to-text","browser-get-dropdown-options","browser-select-dropdown-option","browser-drag-drop","browser-click-coordinates","web-browser-takeover","browser-takeover","browser-navigate","browser-click","browser-extract","browser-fill","browser_navigate_to","browser_act","browser_extract_content","browser_screenshot"]),er=new Set([...et,...new Set(["get-current-datetime","get_current_datetime"]),"create-tasks","write-plan"]),ea=new Set(["create-tasks","write-plan"]),en=new Set(["execute-command","execute_command"]),ei=new Set(["--session","--cdp","--proxy","--headers","--executable-path","--extension"]),es=new Set(["open","goto","navigate","back","forward","reload","screenshot","click","dblclick","focus","fill","type","press","keydown","keyup","hover","check","uncheck","select","scroll","scrollintoview","scrollinto","drag","upload","find","wait","mouse","frame","dialog","highlight","record","trace","tab","window"]);function eo(e){let t=(0,X.silentExtractCommand)(e);if(!t||!/\bagent-browser\b/.test(t))return!1;let r=function(e){let t=e.match(/"[^"]*"|'[^']*'|\S+/g);if(!t||0===t.length)return null;let r=t.map(e=>e.startsWith('"')||e.startsWith("'")?e.slice(1,-1):e),a=r.findIndex(e=>"agent-browser"===e);if(-1===a)return null;for(let e=a+1;e<r.length;e+=1){let t=r[e];if(t){if(t.startsWith("-")){ei.has(t)&&(e+=1);continue}return t.toLowerCase()}}return null}(t);return!!(r&&es.has(r))}function ec(e,t){let r=F(e);if(r?.startsWith("writer-"))switch(r){case"writer-search-integrations":case"writer-search-tools":return{connectorName:"writer",toolName:"search-integrations"};case"writer-execute-function":{let e=ec(t?.function_name);return{connectorName:e?.connectorName??"writer",toolName:"execute-function"}}default:return null}let a=J(e);return a?{connectorName:a.connector,toolName:a.toolName}:null}let el=new Set(["streaming-ask-knowledge-graphs"]),eu=/\/(capabilities|\.?skills)(?!\w)/,ed=e=>!!e&&eu.test(e.toLowerCase()),ep=new Set(["visual-qa","visual_qa"]),em=new Map([["acquire-skill","Skills: acquire skill"],["create-skill","Add to my skills"],["ask","Request user input"],["browser-navigate-to","Browser automation: navigate to URL"],["browser-act","Browser automation: perform an action"],["browser-extract-content","Browser automation: extract content"],["browser-screenshot","Browser automation: capture screenshot"],["web-browser-takeover","Browser automation: take over browser"],["execute-command","Execute command"],["check-command-output","Check command output"],["terminate-command","Terminate command"],["list-commands","List commands"],["create-tasks","Plan: create task"],["write-plan","Plan: create task"],["view-tasks","Plan: view tasks"],["delete-tasks","Plan: delete task"],["clear-all","Plan: clear all tasks"],["complete","Task complete"],["create-file","Create file"],["delete-file","Delete file"],["edit-file","Edit file"],["str-replace","Edit file"],["full-file-rewrite","Rewrite entire file"],["create-presentation-outline","Create presentation outline"],["create-slide","Create slide"],["create_slide","Create slide"],["delete-slide","Delete slide"],["delete-presentation","Delete presentation"],["list-slides","List slides"],["list-presentations","List presentations"],["get-presentation","Retrieve presentation metadata"],["present-presentation","Present presentation"],["create-update-canvas","Create canvas"],["read-canvas","Read canvas"],["deploy","Deploy"],["deploy-site","Deploy"],["expose-port","Expose port"],["see-image","View image"],["save-images","Save images"],["clear-images","Clear images from session"],["image-edit-or-generate","Edit or generate image"],["image-tool","Edit or generate image"],["visual-qa","Visual QA"],["transcribe-file","Transcribe video"],["transcribe-youtube","Transcribe video"],["web-search","Web search"],["scrape-webpage","Scrape webpage"],["scrape-webpages","Scrape webpages"],["crawl-webpage","Crawl website"],["query-document","Analyze document"],["streaming-ask-knowledge-graphs","Searching Knowledge Graphs"],["ask-knowledge-graphs","Search Knowledge Graphs"],["execute-data-provider-call","Call data provider"],["get-data-provider-endpoints","Get data endpoints"],["call-data-provider","Call data provider"],["call-mcp-tool","External tool"],["writer-search-integrations","Searching integrations"],["writer-execute-function","Executing function"],["writer-execute-function-failed","Writer failed to execute function"],["update-agent","Update agent"],["get-current-agent-config","Get agent config"],["search-mcp-servers","Search MCP servers"],["configure-mcp-server","Configure MCP server"],["get-current-datetime","Get time"],["compare-to-current-time","Compare time"],["add-time-to-current","Get time"],["convert-to-epoch","Get time"],["convert-from-epoch","Get time"],["send-meeting-message","Send meeting message"],["send-final-meeting-message","Send final message"],["get-meeting-history","Get meeting history"]]);function eh(e){return e.trim().toLowerCase().replace(/[\s_]+/g,"-").replace(/-+/g,"-")}function ef(e){return e.trim().toLowerCase().replaceAll("-","_")}function eg(e,r,a){let n,i,s=(n=eh(e),(i=a?.mcpServerDisplayNames?.get(n))||(0,t.toTitleCase)(e));return`${s}: ${(0,t.toSpacedLowercase)(r)}`}function ew(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.trim(),n=a.toLowerCase(),i=n.replace(/_/g,"-"),s=i.replace(/-/g,"_"),o=em.get(n)||em.get(i)||em.get(s);if(o)return o;if(n.startsWith("streaming_")){let e=a.slice(10);return`Streaming: ${(0,t.toSpacedLowercase)(e)}`}if(n.startsWith("mcp_")){let e=n.split("_");if(e.length>=3)return eg(e[1],e.slice(2).join("_"),r)}let c=ec(n);if(c){let e=a.includes("--")?a.split("--").slice(1).join("--"):a.includes("__")?a.split("__").slice(1).join("__"):null;if(e)return eg(c.connectorName,e,r)}return(0,t.toSentenceCase)(a)}e.s(["GENIE_POWERED_TAG_LABEL",0,"Powered by Genie","canDisplayTool",0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e?.toLowerCase().replace(/_/g,"-");return!el.has(r)&&!(0,a.shouldHideTaskTool)(r,t)},"canOpenToolPanel",0,(e,t)=>t===Z.ASSISTANT_MODE.AGENT||["create-update-canvas"].includes(e.replace(/_/g,"-")),"createParamsKey",0,function(e){return e.query?`query:${e.query}`:e.url?`url:${e.url}`:e.file_path?`file:${e.file_path}`:e.command?`cmd:${e.command}`:""},"extractAskToolData",0,function(e,t,r){return{showAskToolQuestion:!!(e?.agent_run_info?.is_awaiting_user_response&&(!r||t===r))}},"extractIdentificationParams",0,function(e){let t={};return"string"==typeof e?.file_path&&(t.file_path=e.file_path),"string"==typeof e?.command&&(t.command=e.command),"string"==typeof e?.query&&(t.query=e.query),"string"==typeof e?.url&&(t.url=e.url),"string"==typeof e?.function_name&&(t.function_name=e.function_name),t},"extractPrimaryParam",0,(e,t)=>{if(!t)return null;try{let r=e?.replace(/_/g,"-")?.toLowerCase();if(r?.startsWith("browser-")){let e=t.match(/url=(?:"|')([^"|']+)(?:"|')/);if(e)return e[1];let r=t.match(/goal=(?:"|')([^"|']+)(?:"|')/);if(r){let e=r[1];return e.length>30?`${e.substring(0,27)}...`:e}return null}if(t.startsWith("<")&&t.includes(">")){let e=t.match(/<[^>]+\s+([^>]+)>/);if(e?.[1]){let t=e[1].trim(),a=t.match(/file_path=["']([^"']+)["']/);if(a)return a[1].split("/").pop()||a[1];if("execute-command"===r){let e=t.match(/(?:command|cmd)=["']([^"']+)["']/);if(e){let t=e[1];return t.length>30?`${t.substring(0,27)}...`:t}}}}let a=null;switch(r){case"create-tasks":case"write-plan":break;case"create-file":case"full-file-rewrite":case"read-file":case"delete-file":case"str-replace":return(a=t.match(/file_path=(?:"|')([^"|']+)(?:"|')/)||t.match(/<parameter\s+name=["']file_path["']>\s*([^<]+)/i))?(a[1].split("/").pop()||a[1]).trim():null;case"edit-file":return(a=t.match(/target_file=(?:"|')([^"|']+)(?:"|')/)||t.match(/<parameter\s+name=["']target_file["']>([^<]+)/i))?(a[1].split("/").pop()||a[1]).trim():null;case"execute-command":if(a=t.match(/command=(?:"|')([^"|']+)(?:"|')/)){let e=a[1];return e.length>30?`${e.substring(0,27)}...`:e}break;case"web-search":return(a=t.match(/query=(?:"|')([^"|']+)(?:"|')/))?a[1].length>30?`${a[1].substring(0,27)}...`:a[1]:null;case"call-data-provider":a=t.match(/service_name=(?:"|')([^"|']+)(?:"|')/);let n=t.match(/route=(?:"|')([^"|']+)(?:"|')/);return a&&n?`${a[1]}/${n[1]}`:a?a[1]:null;case"deploy-site":return(a=t.match(/site_name=(?:"|')([^"|']+)(?:"|')/))?a[1]:null}return null}catch(e){return null}},"findMcpGatewayToolByName",0,function(e,t){let r=t.filter(e=>"string"==typeof e&&e.trim().length>0);if(!r.length||!e.length)return null;let a=new Set(r.map(ef));return e.find(e=>a.has(ef(e.name)))??null}
1,"getMcpGatewayToolDisplayName",0,function(e){let t=e.displayName?.trim();return t||ew(e.name)},"getToolIcon",0,(e,t)=>{switch(e?.toLowerCase().replace(/_/g,"-")){case"acquire-skill":case"acquire_skill":case"create-skill":case"create_skill":return _.Lightbulb;case"ask":return l.CircleHelp;case"browser-act":return T.MousePointerClick;case"browser-extract-content":return n.AppWindow;case"browser-navigate-to":case"browser-navigate":return N.MousePointer;case"browser-screenshot":return o.BoxSelect;case"check-command-output":case"check_command_output":return I.Terminal;case"clear-all":case"clear-images":return u.CircleX;case"complete":return c.CheckCircle2;case"create-file":return g.File;case"create-presentation-outline":case"list-commands":case"list-presentations":case"list-slides":return M.List;case"create-slide":case"create_slide":return v.GalleryVerticalEnd;case"create-tasks":case"write-plan":return d.ClipboardList;case"create-update-canvas":case"read-canvas":return P.Scroll;case"delete-file":case"delete-presentation":case"delete-slide":case"delete-tasks":return V.Trash2;case"deploy":case"send-meeting-message":case"send-final-meeting-message":return A.Send;case"edit-file":return B.SquarePen;case"execute-command":case"execute_command":return H.SquareCode;case"expose-port":return S.Link;case"full-file-rewrite":return E.PencilLine;case"get-presentation":return h.Database;case"image-edit-or-generate":case"image-tool":return k.Image;case"present-presentation":return r.PresentationIcon;case"query-document":return W.SquareChartGantt;case"scrape-webpage":case"scrape-webpages":return ee;case"save-images":return x.ImageDown;case"see-image":return C.ImagePlay;case"visual-qa":return z.ScanEye;case"streaming-ask-knowledge-graphs":case"get-data-provider-endpoints":case"execute-data-provider-call":return L.Network;case"ask-knowledge-graphs":case"ask_knowledge_graphs":return U.KnowledgeGraph;case"str-replace":case"read-file":return w.FileText;case"terminate-command":case"terminate_command":return i.Ban;case"view-tasks":return O.TextSearch;case"web-browser-takeover":case"browser-takeover":return D.SquareMousePointer;case"transcribe-file":case"transcribe-youtube":return j.ScrollText;case"web-search":return y.Globe;case"call-data-provider":return f.ExternalLink;case"execute-code":return m.Code;case"get-current-datetime":case"add-time-to-current":case"convert-to-epoch":case"convert-from-epoch":return p.Clock;case"compare-to-current-time":case"get-meeting-history":return b.History;case"call-mcp-tool":return q.PlugIcon;default:if(ec(e))return r=>(0,$.createElement)(K.McpToolIcon,{connectorName:ec(e)?.connectorName,organizationId:t,...r});if(e?.startsWith("mcp_")){let t=e.split("_");if(t.length>=3){let e=t.slice(2).join("_");if(e.includes("search")||e.includes("web"))return G.Search;if(e.includes("research")||e.includes("paper"))return s.BookOpen}return q.PlugIcon}return R.Wrench}},"getUserFriendlyToolName",0,ew,"isAgentBrowserCommandContent",0,eo,"isAutoOpenToolCall",0,function(e,t){let r,{suppressAutoOpen:a=!1,isTasksWidgetEnabled:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a)return!1;let i=e?.toLowerCase().replace(/_/g,"-");return!(!i||n&&ea.has(i))&&(er.has(i)||!!(r=e?.toLowerCase().replace(/_/g,"-"))&&(!!et.has(r)||(en.has(r)?eo(t):"check-command-output"===r&&!!(0,X.extractAgentBrowserImagePath)(t))))},"isExplicitMcpToolName",0,function(e){if(!e)return!1;let t=e.trim().toLowerCase();return!!t&&(t.startsWith("mcp_")||t.startsWith("mcp-")||t.startsWith("writer-")||t.includes("--")||t.includes("__"))},"isGeniePoweredConnector",0,function(e){let t=e?.trim().toLowerCase().replace(/[\s_-]+/g,"");return void 0!==t&&Y.has(t)},"isToolButtonDisabled",0,e=>!!e&&e!==Z.ASSISTANT_MODE.AGENT,"normalizeMcpServerName",0,eh,"parseNewMcpToolName",0,ec,"safeJsonParse",0,function(e,t){if(!e)return t;try{let t=JSON.parse(e);if("string"==typeof t&&(t.startsWith("{")||t.startsWith("[")))try{return JSON.parse(t)}catch(e){}return t}catch(r){if("object"==typeof e)return e;if("string"==typeof e){if("true"===e)return!0;if("false"===e)return!1;if("null"===e)return null;if(!isNaN(Number(e)))return Number(e);if(!e.startsWith("{")&&!e.startsWith("["))return e}return t}},"shouldSuppressCommandOutput",0,ed,"shouldSuppressReadFileOutput",0,ed,"shouldSuppressToolView",0,e=>ep.has(e)],752)},487486,e=>{"use strict";var t=e.i(247862),r=e.i(617739),a=e.i(294237),n=e.i(975157);let i=(0,a.cva)("inline-flex items-center justify-center rounded-lg border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-fg-on-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",new:"text-fg bg-
1accent-purple",beta:"text-fg bg-accent-blue",highlight:"text-fg bg-accent-green",primary:"bg-muted-primary text-fg-static-dark"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function(e){let{className:a,variant:s,asChild:o=!1,...c}=e,l=o?r.Slot:"span";return(0,t.jsx)(l,{"data-slot":"badge",className:(0,n.cn)(i({variant:s}),a),...c})}])},515288,e=>{"use strict";var t=e.i(247862),r=e.i(975157);e.s(["Card",0,function(e){let{className:a,...n}=e;return(0,t.jsx)("div",{"data-slot":"card",className:(0,r.cn)("text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a),...n})},"CardContent",0,function(e){let{className:a,...n}=e;return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",a),...n})},"CardDescription",0,function(e){let{className:a,...n}=e;return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-muted-foreground text-sm",a),...n})},"CardHeader",0,function(e){let{className:a,...n}=e;return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto]",a),...n})},"CardTitle",0,function(e){let{className:a,...n}=e;return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("leading-none font-semibold",a),...n})}])},764013,60254,e=>{"use strict";var t=e.i(247862),r=e.i(236601),a=e.i(234276),n=e.i(555913),i=e.i(283418),s=e.i(881158),o=e.i(521158);function c(e){return e instanceof Error?e:Error(String(e))}e.s(["NoVncCanvas",0,function(l){let{wsUrl:u,password:d,onStatusChange:p,onError:m,viewOnly:h=!0,captureRef:f}=l,g=(0,r.useRef)(null),w=(0,r.useRef)(null),[v,y]=(0,r.useState)("connecting"),b=(0,i.useReducedMotion)(),k=(0,o.useLatest)(p),x=(0,o.useLatest)(m),C=(0,o.useLatest)(h),_="connected"===v,S="failed"===v;(0,r.useEffect)(()=>{w.current&&(w.current.viewOnly=h)},[h]),(0,r.useEffect)(()=>{let t=g.current;if(!t)return;let r=!1,a=!1,n=0,i=null,s=null,o=null,l=null,p=e=>{r||x.current?.(c(e))},m=e=>{r||l===e||(l=e,y(e),k.current?.(e))},h=()=>{s&&(clearTimeout(s),s=null)},f=e=>{let{disconnect:t}=e,r=o;if(r&&(o=null,r.rfb.removeEventListener("connect",r.onConnect),r.rfb.removeEventListener("disconnect",r.onDisconnect),w.current===r.rfb&&(w.current=null),t))try{r.rfb.disconnect()}catch(e){p(e)}},v=()=>{if(!r&&!s){var e;if(n>=8){m("failed"),p(Error("Live browser gave up after 8 reconnect attempts"));return}n+=1,m("connecting"),s=setTimeout(()=>{s=null,b()},(e=n,Math.min(1e3*2**Math.max(0,e-1),15e3)))}};async function b(){if(!r&&!a&&t){a=!0,h(),m("connecting");try{let{default:a}=await e.A(540974);if(r)return;f({disconnect:!0}),t.replaceChildren();let i=new a(t,u,{credentials:{password:d}}),s=()=>{r||o?.rfb!==i||(n=0,m("connected"))},c=()=>{r||o?.rfb!==i||(f({disconnect:!1}),v())};o={rfb:i,onConnect:s,onDisconnect:c},w.current=i,i.addEventListener("connect",s),i.addEventListener("disconnect",c),i.scaleViewport=!0,i.clipViewport=!1,i.background="var(--bg)",i.viewOnly=C.current}catch(e){r||(f({disconnect:!0}),t.replaceChildren(),p(e),v())}finally{a=!1}
1}}return m("connecting"),i=setTimeout(()=>{i=null,b()},200),()=>{r=!0,i&&clearTimeout(i),h(),f({disconnect:!0}),t.replaceChildren()}},[u,d,x,k,C]),(0,r.useEffect)(()=>{if(!f)return;let e={capture:()=>{let e=g.current?.querySelector("canvas");if(!e||0===e.width||0===e.height)return null;try{return e.toDataURL("image/png")}catch(e){return x.current?.(c(e)),null}}};return f.current=e,()=>{f.current===e&&(f.current=null)}},[f,x]);let M=b?{duration:0}:{duration:.3};return(0,t.jsxs)("div",{className:"relative h-full w-full overflow-hidden bg-bg",children:[(0,t.jsx)(n.motion.div,{ref:g,"aria-hidden":!_,tabIndex:_&&!h?0:-1,role:_&&!h?"application":void 0,"aria-label":_&&!h?"Live browser â keyboard and pointer input go to the remote session":void 0,className:"flex h-full w-full items-center justify-center",initial:!1,animate:{opacity:+!!_,scale:_||b?1:.99},transition:b?{duration:0}:{duration:.45,ease:[.16,1,.3,1]},style:{pointerEvents:_?"auto":"none"}}),(0,t.jsxs)(a.AnimatePresence,{initial:!1,children:[!_&&!S&&(0,t.jsxs)(n.motion.div,{role:"status","aria-live":"polite",className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center gap-3 bg-bg",initial:{opacity:1},exit:{opacity:0},transition:M,children:[(0,t.jsx)(s.Loader,{}),(0,t.jsx)("span",{className:"font-poppins text-sm text-fg-muted",children:"Connecting to the live browserâ¦"})]},"connecting"),S&&(0,t.jsxs)(n.motion.div,{role:"alert",className:"absolute inset-0 flex flex-col items-center justify-center gap-1 bg-bg px-6 text-center",initial:{opacity:0}
1,animate:{opacity:1},transition:M,children:[(0,t.jsx)("span",{className:"font-poppins text-sm text-fg",children:"The live browser disconnected."}),(0,t.jsx)("span",{className:"font-poppins text-xs text-fg-muted",children:"Reopen the browser view to reconnect."})]},"failed")]})]})}],60254),e.s([],764013)},521158,e=>{"use strict";var t=e.i(236601);e.s(["useLatest",0,function(e){let r=(0,t.useRef)(e);return(0,t.useEffect)(()=>{r.current=e},[e]),r}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.