@univerjs-pro/mcp-ui 0.22.0 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ja-JP.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/sk-SK.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ja-JP.js +1 -1
  21. package/lib/es/locale/ko-KR.js +1 -1
  22. package/lib/es/locale/ru-RU.js +1 -1
  23. package/lib/es/locale/sk-SK.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/index.js +1 -1
  28. package/lib/locale/ca-ES.js +1 -1
  29. package/lib/locale/en-US.js +1 -1
  30. package/lib/locale/es-ES.js +1 -1
  31. package/lib/locale/fa-IR.js +1 -1
  32. package/lib/locale/fr-FR.js +1 -1
  33. package/lib/locale/ja-JP.js +1 -1
  34. package/lib/locale/ko-KR.js +1 -1
  35. package/lib/locale/ru-RU.js +1 -1
  36. package/lib/locale/sk-SK.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ja-JP.js +1 -1
  47. package/lib/umd/locale/ko-KR.js +1 -1
  48. package/lib/umd/locale/ru-RU.js +1 -1
  49. package/lib/umd/locale/sk-SK.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +7 -7
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0xa52f92=_0x20c4;(function(_0x346db0,_0x138889){const _0x3e2c12=_0x20c4,_0x4d1509=_0x346db0();while(!![]){try{const _0x58f1c7=-parseInt(_0x3e2c12(0x215))/0x1*(-parseInt(_0x3e2c12(0x19c))/0x2)+parseInt(_0x3e2c12(0x223))/0x3*(-parseInt(_0x3e2c12(0x1ed))/0x4)+-parseInt(_0x3e2c12(0x1f7))/0x5*(parseInt(_0x3e2c12(0x1b3))/0x6)+parseInt(_0x3e2c12(0xff))/0x7+parseInt(_0x3e2c12(0x144))/0x8*(parseInt(_0x3e2c12(0x1bb))/0x9)+-parseInt(_0x3e2c12(0x1fe))/0xa*(parseInt(_0x3e2c12(0x10f))/0xb)+parseInt(_0x3e2c12(0x201))/0xc;if(_0x58f1c7===_0x138889)break;else _0x4d1509['push'](_0x4d1509['shift']());}catch(_0x67f1b9){_0x4d1509['push'](_0x4d1509['shift']());}}}(_0x2260,0xd2bdb),Object[_0xa52f92(0x1d7)](exports,Symbol[_0xa52f92(0x1f4)],{'value':'Module'}));let _univerjs_core=require('@univerjs/core'),_univerjs_pro_mcp=require('@univerjs-pro/mcp'),_univerjs_design=require('@univerjs/design'),_univerjs_ui=require('@univerjs/ui'),rxjs=require('rxjs'),_univerjs_icons=require('@univerjs/icons'),react=require('react'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_network=require('@univerjs/network');function MCPConfigPanel(_0x3c3a43){const _0x145b98=_0xa52f92;var _0xed7b3b,_0x1d6d96;const {mcpCoreConfig:_0x528fd2,onSave:_0x3a75b0,loading:loading=![],config:_0x430ae2,connectionStatus$:_0x4093fe,connectionError$:_0x2cdfa1,currentApiKey$:_0x5dce80,currentSessionId$:_0x21e3c6}=_0x3c3a43,_0x462583=(0x0,_univerjs_ui[_0x145b98(0x21a)])(_univerjs_core[_0x145b98(0x189)]),_0x538cc6=(0x0,_univerjs_ui['useObservable'])(_0x4093fe,_univerjs_pro_mcp[_0x145b98(0x180)][_0x145b98(0x235)]),_0x55053e=(0x0,_univerjs_ui['useObservable'])(_0x2cdfa1,_univerjs_pro_mcp['MCPConnectionError'][_0x145b98(0x1dd)]),_0x4f0735=(0x0,_univerjs_ui[_0x145b98(0x17f)])(_0x21e3c6,''),[_0x417b8b,_0x5e8ff7]=(0x0,react[_0x145b98(0x1d6)])((0x0,_univerjs_ui[_0x145b98(0x17f)])(_0x5dce80,'')||''),_0x37dc29=!![],_0x33b04a=_0x430ae2[_0x145b98(0x1eb)]&&_0x528fd2['mcpServerUrl']&&(_0x528fd2['mcpServerUrl'][_0x145b98(0x162)](_0x145b98(0x18a))||_0x528fd2[_0x145b98(0x1b4)][_0x145b98(0x162)](_0x145b98(0x1c9))),_0x20f437=(_0xed7b3b=_0x528fd2['mcpServerUrl'])===null||_0xed7b3b===void 0x0?void 0x0:_0xed7b3b['includes'](_0x145b98(0x18a)),_0x476984=(_0x1d6d96=_0x528fd2[_0x145b98(0x1b4)])===null||_0x1d6d96===void 0x0?void 0x0:_0x1d6d96[_0x145b98(0x162)](_0x145b98(0x1c9)),_0x572676=_0x20f437?'https://console.univer.plus':'https://console.univer.ai',_0x27c954=_0x430ae2[_0x145b98(0x1eb)]&&(_0x20f437||_0x476984),[_0x18be27,_0x477a20]=(0x0,react[_0x145b98(0x1d6)])(!_0x417b8b[_0x145b98(0x18f)]()),_0x2a154e=(_0x27fb19,_0x1c4ec8)=>{const _0x4aa3d2=_0x145b98;if(_0x1c4ec8===_univerjs_pro_mcp[_0x4aa3d2(0x139)][_0x4aa3d2(0x1f2)])return _0x4aa3d2(0x1cd);switch(_0x27fb19){case _univerjs_pro_mcp['MCPConnectionStatus']['CONNECTED']:return _0x4aa3d2(0x200);case _univerjs_pro_mcp[_0x4aa3d2(0x180)][_0x4aa3d2(0xf2)]:case _univerjs_pro_mcp[_0x4aa3d2(0x180)][_0x4aa3d2(0x10b)]:return _0x4aa3d2(0x16d);case _univerjs_pro_mcp[_0x4aa3d2(0x180)][_0x4aa3d2(0x20d)]:return _0x4aa3d2(0x1cd);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x50033c=(_0xdfa631,_0x5eb48c)=>{const _0x536758=_0x145b98;if(_0x5eb48c===_univerjs_pro_mcp[_0x536758(0x139)][_0x536758(0x1f2)])return _0x536758(0x199);switch(_0xdfa631){case _univerjs_pro_mcp[_0x536758(0x180)][_0x536758(0x156)]:return _0x536758(0x1c1);case _univerjs_pro_mcp['MCPConnectionStatus']['CONNECTING']:case _univerjs_pro_mcp['MCPConnectionStatus'][_0x536758(0x10b)]:return'univer-bg-blue-500';case _univerjs_pro_mcp[_0x536758(0x180)][_0x536758(0x20d)]:return _0x536758(0x199);default:return _0x536758(0x23e);}},_0x1a9bb9=_0x4e4568=>{const _0x536fe3=_0x145b98;switch(_0x4e4568){case _univerjs_pro_mcp[_0x536fe3(0x180)][_0x536fe3(0x156)]:return _0x462583['t'](_0x536fe3(0x242));case _univerjs_pro_mcp[_0x536fe3(0x180)][_0x536fe3(0xf2)]:return _0x462583['t']('mcpConfig.connectionStatus.connecting');case _univerjs_pro_mcp[_0x536fe3(0x180)][_0x536fe3(0x20d)]:return _0x462583['t'](_0x536fe3(0x243));case _univerjs_pro_mcp[_0x536fe3(0x180)][_0x536fe3(0x10b)]:return _0x462583['t']('mcpConfig.connectionStatus.retrying');default:return _0x462583['t']('mcpConfig.connectionStatus.disconnected');}},_0xf374eb=_0x50490b=>{const _0x321d49=_0x145b98;switch(_0x50490b){case _univerjs_pro_mcp[_0x321d49(0x139)][_0x321d49(0x1f2)]:return _0x462583['t'](_0x321d49(0x1be));case _univerjs_pro_mcp[_0x321d49(0x139)][_0x321d49(0x121)]:return _0x462583['t'](_0x321d49(0x19a));case _univerjs_pro_mcp['MCPConnectionError']['NETWORK_ERROR']:return _0x462583['t']('mcpConfig.connectionError.networkError');case _univerjs_pro_mcp[_0x321d49(0x139)]['MAX_RETRIES_EXCEEDED']:return _0x462583['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x2d50ed=(0x0,react['useCallback'])(()=>{const _0x50562e=_0x145b98;_0x3a75b0({..._0x528fd2,'apiKey':_0x417b8b[_0x50562e(0x18f)](),'enableAuth':_0x37dc29});},[_0x528fd2,_0x417b8b,_0x37dc29,_0x3a75b0]),_0xf780f2=_0x417b8b[_0x145b98(0x18f)]()['length']>0x0;return(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x1aa),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x1a7),'children':(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'className':_0x145b98(0x1c3),'children':'⚙'})}),(0x0,react_jsx_runtime['jsx'])('div',{'children':(0x0,react_jsx_runtime['jsx'])('p',{'className':_0x145b98(0x14e),'children':_0x462583['t'](_0x145b98(0x1a9))})})]})}),(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':_0x145b98(0x1f5),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':(0x0,_univerjs_design[_0x145b98(0x1e3)])(_0x145b98(0x178),_0x2a154e(_0x538cc6,_0x55053e)),'children':(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('div',{'className':(0x0,_univerjs_design[_0x145b98(0x1e3)])(_0x145b98(0x171),_0x50033c(_0x538cc6,_0x55053e))}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'className':_0x145b98(0x17d),'children':_0x1a9bb9(_0x538cc6)})]})}),_0x55053e!==_univerjs_pro_mcp[_0x145b98(0x139)]['NONE']&&(_0x538cc6===_univerjs_pro_mcp[_0x145b98(0x180)]['FAILED']||_0x55053e===_univerjs_pro_mcp[_0x145b98(0x139)]['UNAUTHORIZED'])&&(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x1a4),'children':(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':_0x145b98(0x149),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'className':_0x145b98(0x1a2),'children':'⚠️'}),(0x0,react_jsx_runtime[_0x145b98(0x100)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0xf374eb(_0x55053e)})]})})]}),(0x0,react_jsx_runtime[_0x145b98(0x100)])('div',{'className':_0x145b98(0x112),'children':(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x145),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x245),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x151),{'className':_0x145b98(0x20f),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'children':'🔑'}),'\x20',_0x462583['t'](_0x145b98(0x173)),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'className':_0x145b98(0x14c),'children':'*'}),_0x33b04a&&(0x0,react_jsx_runtime[_0x145b98(0x100)])('a',{'className':_0x145b98(0xf8),'title':_0x462583['t'](_0x145b98(0x13a)),'role':_0x145b98(0x1a1),'onClick':()=>_0x477a20(!![]),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['HelpIcon'],{})})]}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_univerjs_design['Input'],{'type':'text','placeholder':_0x462583['t'](_0x145b98(0x1af)),'value':_0x417b8b,'disabled':loading,'autoComplete':_0x145b98(0x131),'onChange':_0x5e8ff7}),(0x0,react_jsx_runtime[_0x145b98(0x100)])('p',{'className':_0x145b98(0x225),'children':_0x462583['t'](_0x145b98(0x22d))})]}),_0x33b04a&&_0x18be27&&(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':_0x145b98(0x1d2),'children':[(0x0,react_jsx_runtime['jsx'])('a',{'className':_0x145b98(0x1a8),'role':_0x145b98(0x1a1),'onClick':()=>_0x477a20(![]),'children':(0x0,react_jsx_runtime[_0x145b98(0x100)])(_univerjs_icons[_0x145b98(0x20a)],{'className':_0x145b98(0x154)})}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x145b98(0x219),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x15c),'children':(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':'univer-flex-1','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('h4',{'className':_0x145b98(0x1ea),'children':_0x462583['t'](_0x145b98(0x13a))}),(0x0,react_jsx_runtime[_0x145b98(0x100)])('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x462583['t'](_0x145b98(0x1f9))}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x1b2),'children':_0x27c954&&(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('a',{'className':_0x145b98(0x217),'href':_0x572676,'target':_0x145b98(0x118),'rel':_0x145b98(0x125),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'children':'🤖'}),_0x462583['t'](_0x145b98(0x160)),(0x0,react_jsx_runtime['jsx'])('span',{'className':_0x145b98(0x12b),'children':'↗'})]})}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x462583['t'](_0x145b98(0xf6))]})]})]})]}),_0x430ae2[_0x145b98(0x1eb)]&&(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0xf4),'children':[(0x0,react_jsx_runtime['jsxs'])('h4',{'className':_0x145b98(0x240),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'children':'🔗'}),'\x20',_0x462583['t'](_0x145b98(0x1f1))]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x1f6),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x15f),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('p',{'className':_0x145b98(0x210),'children':_0x462583['t'](_0x145b98(0x16f))}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':_0x145b98(0x245),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x462583['t'](_0x145b98(0x205))}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x132),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x176),{'className':_0x145b98(0x21b),'children':'1'}),_0x462583['t'](_0x145b98(0x204))]}),(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('span',{'className':_0x145b98(0x21b),'children':'2'}),_0x462583['t'](_0x145b98(0x1fb))]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('span',{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x462583['t'](_0x145b98(0x164))]})]})]})]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':'univer-space-y-2','children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x145b98(0x117)}),(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':_0x145b98(0x12d),'children':(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x1cf),{'className':_0x145b98(0x198),'children':JSON[_0x145b98(0x22f)]({'mcpServers':{'univer':{'url':_0x145b98(0x1b0)+(_0x4f0735||_0x145b98(0x12f)),'type':_0x145b98(0x227),'headers':{'Authorization':'Bearer\x20'+(_0x417b8b||_0x145b98(0x109))}}}},null,0x2)})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x233),{'className':_0x145b98(0x15f),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':_0x145b98(0x15a),'children':_0x462583['t'](_0x145b98(0x1f8))}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':_0x145b98(0x245),'children':[(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':_0x145b98(0x206),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x1ec)}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('div',{'className':_0x145b98(0x238),'children':_0x145b98(0x13d)}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x225),'children':_0x462583['t'](_0x145b98(0x21d))})]})]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x238),'children':_0x145b98(0x14f)}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_0x145b98(0x233),{'className':_0x145b98(0x225),'children':_0x462583['t'](_0x145b98(0x213))})]})]})]})]})]})]}),(0x0,react_jsx_runtime[_0x145b98(0x100)])(_univerjs_design['Button'],{'onClick':_0x2d50ed,'disabled':!_0xf780f2||loading,'className':_0x145b98(0x16a),'children':loading?(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('span',{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'children':'⟲'}),_0x462583['t']('mcpConfig.saving')]}):(0x0,react_jsx_runtime['jsxs'])(_0x145b98(0x176),{'className':_0x145b98(0x236),'children':[(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x145b98(0x18d)],{}),_0x462583['t'](_0x145b98(0x1bf))]})}),(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x233),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'className':'univer-flex\x20univer-gap-3','children':[(0x0,react_jsx_runtime['jsx'])(_0x145b98(0x176),{'className':_0x145b98(0x1f0),'children':'💡'}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])('div',{'className':_0x145b98(0x248),'children':[(0x0,react_jsx_runtime[_0x145b98(0x100)])('div',{'className':_0x145b98(0x168),'children':_0x145b98(0x16c)}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'children':['•',_0x462583['t'](_0x145b98(0x20c))]}),(0x0,react_jsx_runtime[_0x145b98(0x1cb)])(_0x145b98(0x233),{'children':['•',_0x462583['t'](_0x145b98(0x104))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY='mcp-ui.config',configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0x4367a9){'@babel/helpers - typeof';const _0x117c2c=_0xa52f92;return _typeof=_0x117c2c(0x11d)==typeof Symbol&&'symbol'==typeof Symbol[_0x117c2c(0x161)]?function(_0x1deee6){return typeof _0x1deee6;}:function(_0x2d9619){const _0x391f68=_0x117c2c;return _0x2d9619&&_0x391f68(0x11d)==typeof Symbol&&_0x2d9619[_0x391f68(0x174)]===Symbol&&_0x2d9619!==Symbol[_0x391f68(0x239)]?_0x391f68(0x157):typeof _0x2d9619;},_typeof(_0x4367a9);}function toPrimitive(_0x4491ce,_0x30ba4e){const _0xaa7ffd=_0xa52f92;if(_0xaa7ffd(0x23c)!=_typeof(_0x4491ce)||!_0x4491ce)return _0x4491ce;var _0x5abe88=_0x4491ce[Symbol[_0xaa7ffd(0x20e)]];if(void 0x0!==_0x5abe88){var _0x34d980=_0x5abe88['call'](_0x4491ce,_0x30ba4e||_0xaa7ffd(0x218));if(_0xaa7ffd(0x23c)!=_typeof(_0x34d980))return _0x34d980;throw new TypeError(_0xaa7ffd(0x185));}return(_0xaa7ffd(0x1d9)===_0x30ba4e?String:Number)(_0x4491ce);}function toPropertyKey(_0xd89510){const _0x566a08=_0xa52f92;var _0x1307e5=toPrimitive(_0xd89510,_0x566a08(0x1d9));return _0x566a08(0x157)==_typeof(_0x1307e5)?_0x1307e5:_0x1307e5+'';}function _defineProperty(_0x12dad6,_0x5bd2d9,_0x20e8f6){return(_0x5bd2d9=toPropertyKey(_0x5bd2d9))in _0x12dad6?Object['defineProperty'](_0x12dad6,_0x5bd2d9,{'value':_0x20e8f6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12dad6[_0x5bd2d9]=_0x20e8f6,_0x12dad6;}function __decorateParam(_0x11e639,_0x79879f){return function(_0x4215dd,_0x5d8b1e){_0x79879f(_0x4215dd,_0x5d8b1e,_0x11e639);};}function __decorate(_0x4c00e3,_0x2169bd,_0x502f0c,_0x268051){const _0xc2015d=_0xa52f92;var _0x2546d0=arguments[_0xc2015d(0x1d3)],_0xb54c64=_0x2546d0<0x3?_0x2169bd:_0x268051===null?_0x268051=Object[_0xc2015d(0x14b)](_0x2169bd,_0x502f0c):_0x268051,_0x3ae5ff;if(typeof Reflect===_0xc2015d(0x23c)&&typeof Reflect['decorate']===_0xc2015d(0x11d))_0xb54c64=Reflect[_0xc2015d(0x13e)](_0x4c00e3,_0x2169bd,_0x502f0c,_0x268051);else{for(var _0x2725a6=_0x4c00e3[_0xc2015d(0x1d3)]-0x1;_0x2725a6>=0x0;_0x2725a6--)if(_0x3ae5ff=_0x4c00e3[_0x2725a6])_0xb54c64=(_0x2546d0<0x3?_0x3ae5ff(_0xb54c64):_0x2546d0>0x3?_0x3ae5ff(_0x2169bd,_0x502f0c,_0xb54c64):_0x3ae5ff(_0x2169bd,_0x502f0c))||_0xb54c64;}return _0x2546d0>0x3&&_0xb54c64&&Object[_0xc2015d(0x1d7)](_0x2169bd,_0x502f0c,_0xb54c64),_0xb54c64;}const MCP_API_KEY_STORAGE_KEY=_0xa52f92(0x1ae),MCP_CONFIG_DIALOG_ID='mcp-config-dialog';let MCPConfigUIController=class MCPConfigUIController extends _univerjs_core['Disposable']{constructor(_0x41450c,_0x557790,_0x2e811c,_0x291b69,_0x4062fc,_0x253517,_0x4b1c65,_0x36e01f,_0x5e32c9,_0x16f859){const _0x939fe8=_0xa52f92;super(),this[_0x939fe8(0x111)]=_0x41450c,this[_0x939fe8(0x123)]=_0x557790,this['_configService']=_0x2e811c,this[_0x939fe8(0x1ab)]=_0x291b69,this[_0x939fe8(0x105)]=_0x4062fc,this[_0x939fe8(0x195)]=_0x253517,this[_0x939fe8(0x113)]=_0x4b1c65,this['_localeService']=_0x36e01f,this[_0x939fe8(0x202)]=_0x5e32c9,this[_0x939fe8(0x158)]=_0x16f859,_defineProperty(this,'_loading$',new rxjs[(_0x939fe8(0x119))](![])),_defineProperty(this,_0x939fe8(0x1d1),new rxjs[(_0x939fe8(0x119))]({})),_defineProperty(this,_0x939fe8(0x18c),new rxjs[(_0x939fe8(0x119))]({})),_defineProperty(this,_0x939fe8(0x17c),new rxjs[(_0x939fe8(0x119))]('')),_defineProperty(this,_0x939fe8(0x106),async _0x51064=>{const _0x44bba2=_0x939fe8;this[_0x44bba2(0x1ca)][_0x44bba2(0x1dc)](!![]);try{var _0x5f144e,_0x5eb4cb;const _0x49b87e=await this[_0x44bba2(0x1e9)](_0x51064);if(!_0x49b87e[_0x44bba2(0x230)]){this['_messageService'][_0x44bba2(0x221)]({'type':_univerjs_design['MessageType'][_0x44bba2(0x129)],'content':_0x49b87e['errorMessage']||this[_0x44bba2(0x22c)]['t']('mcpConfig.validation.invalidConfig')});return;}if(_0x51064[_0x44bba2(0x170)])await this[_0x44bba2(0x1ab)][_0x44bba2(0x163)](MCP_API_KEY_STORAGE_KEY,_0x51064[_0x44bba2(0x170)][_0x44bba2(0x18f)]());else await this[_0x44bba2(0x1ab)][_0x44bba2(0x234)](MCP_API_KEY_STORAGE_KEY);this[_0x44bba2(0x17c)]['next'](((_0x5f144e=_0x51064[_0x44bba2(0x170)])===null||_0x5f144e===void 0x0?void 0x0:_0x5f144e[_0x44bba2(0x18f)]())||''),this[_0x44bba2(0x158)][_0x44bba2(0x14a)]({'Authorization':_0x44bba2(0x1ce)+((_0x5eb4cb=_0x51064[_0x44bba2(0x170)])===null||_0x5eb4cb===void 0x0?void 0x0:_0x5eb4cb['trim']())}),this[_0x44bba2(0x195)][_0x44bba2(0x221)]({'type':_univerjs_design['MessageType'][_0x44bba2(0x188)],'content':this[_0x44bba2(0x22c)]['t'](_0x44bba2(0x142))}),setTimeout(()=>{const _0x1bdd93=_0x44bba2;this[_0x1bdd93(0x105)][_0x1bdd93(0x15d)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x4249c4){this[_0x44bba2(0x202)][_0x44bba2(0x228)](_0x44bba2(0x246),_0x4249c4),this['_messageService'][_0x44bba2(0x221)]({'type':_univerjs_design[_0x44bba2(0x103)][_0x44bba2(0x129)],'content':this[_0x44bba2(0x22c)]['t'](_0x44bba2(0x138))});}finally{this[_0x44bba2(0x1ca)]['next'](![]);}}),this['_initConfigSync'](),this[_0x939fe8(0x1a6)](),this[_0x939fe8(0x184)]();}[_0xa52f92(0x16e)](){const _0x29be11=_0xa52f92,_0x5373e7=this[_0x29be11(0x10e)][_0x29be11(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x5373e7===null||_0x5373e7===void 0x0?void 0x0:_0x5373e7[_0x29be11(0x1eb)])this[_0x29be11(0x105)][_0x29be11(0x220)]({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x29be11(0x22c)]['t'](_0x29be11(0x222))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x396702=_0x29be11;this[_0x396702(0x105)]['close'](MCP_CONFIG_DIALOG_ID);}});}[_0xa52f92(0x22e)](){const _0x3a7bad=_0xa52f92;return this[_0x3a7bad(0x1d1)][_0x3a7bad(0x11f)];}[_0xa52f92(0x184)](){const _0x303a16=_0xa52f92;this[_0x303a16(0x190)](this[_0x303a16(0x113)][_0x303a16(0x126)](_0x303a16(0x194),this[_0x303a16(0x212)]()));}[_0xa52f92(0x212)](){return(0x0,_univerjs_ui['connectInjector'])(()=>{const _0x5d134d=_0x20c4;var _0x5b97cd,_0x26ce39,_0x125a78;return(0x0,react_jsx_runtime['jsx'])(MCPConfigPanel,{'config':this['_config$'][_0x5d134d(0x11f)],'mcpCoreConfig':this[_0x5d134d(0x1d1)]['value'],'currentApiKey$':this[_0x5d134d(0x17c)],'onSave':this[_0x5d134d(0x106)],'loading':this['_loading$'][_0x5d134d(0x11f)],'connectionStatus$':(_0x5b97cd=this[_0x5d134d(0x158)])===null||_0x5b97cd===void 0x0?void 0x0:_0x5b97cd['connectionStatus$'],'connectionError$':(_0x26ce39=this[_0x5d134d(0x158)])===null||_0x26ce39===void 0x0?void 0x0:_0x26ce39[_0x5d134d(0x12c)],'currentSessionId$':(_0x125a78=this[_0x5d134d(0x158)])===null||_0x125a78===void 0x0?void 0x0:_0x125a78[_0x5d134d(0x1bc)]});},this['_injector']);}[_0xa52f92(0xfb)](){const _0x15e829=_0xa52f92;this[_0x15e829(0x190)](this[_0x15e829(0x10e)][_0x15e829(0x147)](_univerjs_pro_mcp[_0x15e829(0x146)])['subscribe'](_0x1af17b=>{this['_mcpCoreConfig$']['next'](_0x1af17b||{});}));const _0x2d5dc8=this[_0x15e829(0x10e)][_0x15e829(0x229)](_univerjs_pro_mcp[_0x15e829(0x146)]);this['_mcpCoreConfig$']['next'](_0x2d5dc8||{}),this[_0x15e829(0x190)](this[_0x15e829(0x10e)][_0x15e829(0x147)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x15e829(0x150)](_0x3bda78=>{const _0xecb17f=_0x15e829;this[_0xecb17f(0x18c)][_0xecb17f(0x1dc)](_0x3bda78||{});}));const _0x352cc6=this[_0x15e829(0x10e)][_0x15e829(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);this[_0x15e829(0x18c)][_0x15e829(0x1dc)](_0x352cc6||{});}async['_loadStoredApiKey'](){const _0xec0bdf=_0xa52f92,_0x49ad5c=this['_configService'][_0xec0bdf(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x49ad5c===null||_0x49ad5c===void 0x0?void 0x0:_0x49ad5c[_0xec0bdf(0x1eb)]))return;const _0x264aee=await this['_localStorageService']['getItem'](MCP_API_KEY_STORAGE_KEY);_0x264aee&&(this[_0xec0bdf(0x158)][_0xec0bdf(0x14a)]({'Authorization':_0xec0bdf(0x1ce)+_0x264aee}),this['_apiKey$'][_0xec0bdf(0x1dc)](_0x264aee));}async[_0xa52f92(0x1e9)](_0x2be4bf){const _0x5979d0=_0xa52f92;if(!_0x2be4bf[_0x5979d0(0x170)]||_0x2be4bf['apiKey']['trim']()[_0x5979d0(0x1d3)]===0x0)return{'isValid':![],'errorMessage':this[_0x5979d0(0x22c)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x2be4bf[_0x5979d0(0x170)][_0x5979d0(0x18f)]()[_0x5979d0(0x1d3)]<0xa)return{'isValid':![],'errorMessage':this[_0x5979d0(0x22c)]['t'](_0x5979d0(0x110))};try{const _0x3a21b7=await this[_0x5979d0(0x111)][_0x5979d0(0x1ff)](_univerjs_pro_mcp[_0x5979d0(0x134)])['validateApiKey'](_0x2be4bf['apiKey'][_0x5979d0(0x18f)]());if(!_0x3a21b7[_0x5979d0(0x230)])return{'isValid':![],'errorMessage':_0x3a21b7[_0x5979d0(0x228)]||this[_0x5979d0(0x22c)]['t'](_0x5979d0(0x165))};return{'isValid':!![]};}catch(_0x168402){return console[_0x5979d0(0x18b)](_0x5979d0(0x196),_0x168402),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0xa52f92(0x1c6)])),__decorateParam(0x1,_univerjs_ui['IUIPartsService']),__decorateParam(0x2,_univerjs_core[_0xa52f92(0x124)]),__decorateParam(0x3,_univerjs_core['ILocalStorageService']),__decorateParam(0x4,_univerjs_ui['IDialogService']),__decorateParam(0x5,_univerjs_ui[_0xa52f92(0x1ad)]),__decorateParam(0x6,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_ui[_0xa52f92(0x1d4)])),__decorateParam(0x7,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_core[_0xa52f92(0x189)])),__decorateParam(0x8,_univerjs_core[_0xa52f92(0x143)]),__decorateParam(0x9,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_pro_mcp[_0xa52f92(0x134)]))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':_0xa52f92(0x1db),'type':_univerjs_core[_0xa52f92(0x115)][_0xa52f92(0x10a)],'handler':async(_0x3b23ab,_0x4eea57)=>{const _0x2ba677=_0xa52f92;return _0x3b23ab[_0x2ba677(0x1ff)](MCPConfigUIController)[_0x2ba677(0x16e)](),!![];}};function mapStatusToI18NKey(_0x2bbad5,_0x343457){const _0x229db4=_0xa52f92;switch(_0x2bbad5){case _univerjs_pro_mcp[_0x229db4(0x180)][_0x229db4(0x235)]:return _0x229db4(0x14d);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x229db4(0xf2)]:return _0x229db4(0x177);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x229db4(0x156)]:return _0x229db4(0x191);case _univerjs_pro_mcp[_0x229db4(0x180)]['FAILED']:switch(_0x343457){case _univerjs_pro_mcp['MCPConnectionError'][_0x229db4(0x1f2)]:return _0x229db4(0x1ef);case _univerjs_pro_mcp[_0x229db4(0x139)][_0x229db4(0x121)]:return _0x229db4(0x148);case _univerjs_pro_mcp[_0x229db4(0x139)]['NETWORK_ERROR']:return _0x229db4(0x155);case _univerjs_pro_mcp[_0x229db4(0x139)][_0x229db4(0xfe)]:return _0x229db4(0x102);default:return'mcpStatus.failed';}case _univerjs_pro_mcp[_0x229db4(0x180)][_0x229db4(0x10b)]:return _0x229db4(0x1b8);default:return'mcpStatus.unknown';}}function getTooltipText(_0x1aca41,_0x52698a,_0x4b02d8,_0x3469a9=!![]){const _0x2b486d=_0xa52f92,_0x45e4d0=mapStatusToI18NKey(_0x1aca41,_0x52698a),_0xc94abc=_0x4b02d8['t'](_0x45e4d0);if(!_0x3469a9)return _0xc94abc;if(_0x1aca41===_univerjs_pro_mcp['MCPConnectionStatus']['DISCONNECTED']&&_0x52698a===_univerjs_pro_mcp['MCPConnectionError'][_0x2b486d(0x1f2)])return _0xc94abc+_0x2b486d(0x107)+_0x4b02d8['t'](_0x2b486d(0x153));else{if(_0x1aca41===_univerjs_pro_mcp[_0x2b486d(0x180)][_0x2b486d(0x156)])return''+_0xc94abc;else{if(_0x1aca41===_univerjs_pro_mcp[_0x2b486d(0x180)][_0x2b486d(0x235)]||_0x1aca41===_univerjs_pro_mcp[_0x2b486d(0x180)][_0x2b486d(0x20d)])return _0xc94abc+_0x2b486d(0x107)+_0x4b02d8['t'](_0x2b486d(0x1b7));}}return _0xc94abc;}function getStatusColor(_0x27a292){const _0x454d7f=_0xa52f92;switch(_0x27a292){case _univerjs_pro_mcp[_0x454d7f(0x180)]['CONNECTED']:return _0x454d7f(0x1da);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x454d7f(0xf2)]:case _univerjs_pro_mcp[_0x454d7f(0x180)][_0x454d7f(0x10b)]:return'univer-text-yellow-500';case _univerjs_pro_mcp['MCPConnectionStatus'][_0x454d7f(0x20d)]:case _univerjs_pro_mcp[_0x454d7f(0x180)]['DISCONNECTED']:return _0x454d7f(0x14c);default:return _0x454d7f(0x114);}}function MCPStatusDisplay(_0x1e6e2b){const _0x4b8118=_0xa52f92,{status$:_0x2275d0,error$:_0x23b66,onConfigure:_0x3832ce,showClickable:showClickable=!![]}=_0x1e6e2b,_0x29b9e2=(0x0,_univerjs_ui['useObservable'])(_0x2275d0,_univerjs_pro_mcp[_0x4b8118(0x180)][_0x4b8118(0x235)]),_0x35c6aa=(0x0,_univerjs_ui[_0x4b8118(0x17f)])(_0x23b66,_univerjs_pro_mcp[_0x4b8118(0x139)][_0x4b8118(0x1dd)]),_0xa2912c=(0x0,_univerjs_ui[_0x4b8118(0x21a)])(_univerjs_core[_0x4b8118(0x189)]),_0x4bc5d2=_0x29b9e2===_univerjs_pro_mcp[_0x4b8118(0x180)]['CONNECTED'];_0x29b9e2===_univerjs_pro_mcp[_0x4b8118(0x180)][_0x4b8118(0xf2)]||_univerjs_pro_mcp['MCPConnectionStatus'][_0x4b8118(0x10b)];const _0x338423=_0xa2912c['t'](mapStatusToI18NKey(_0x29b9e2,_0x35c6aa)),_0x4b4723=getTooltipText(_0x29b9e2,_0x35c6aa,_0xa2912c,showClickable),_0xe176a9=getStatusColor(_0x29b9e2),_0x1dbcaa=_0x4bc5d2?(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x4b8118(0x1e0)],{}):(0x0,react_jsx_runtime[_0x4b8118(0x100)])(_univerjs_icons[_0x4b8118(0x187)],{}),_0x3a6cdf=(0x0,react[_0x4b8118(0x193)])(()=>{if(showClickable&&_0x3832ce)_0x3832ce();},[showClickable,_0x3832ce]);function _0x2ccc76(){const _0x3b7c68=_0x4b8118;return(0x0,react_jsx_runtime[_0x3b7c68(0x1cb)])(_0x3b7c68(0x233),{'className':(0x0,_univerjs_design[_0x3b7c68(0x1e3)])(_0x3b7c68(0x1b1),showClickable&&_0x3832ce&&_0x3b7c68(0x1e2)),'role':_0x3b7c68(0x1a1),'onClick':showClickable&&_0x3832ce?_0x3a6cdf:void 0x0,'children':[(0x0,react_jsx_runtime[_0x3b7c68(0x100)])(_0x3b7c68(0x233),{'className':(0x0,_univerjs_design[_0x3b7c68(0x1e3)])('univer-mr-2\x20univer-flex\x20univer-text-xl',_0xe176a9),'children':_0x1dbcaa}),(0x0,react_jsx_runtime[_0x3b7c68(0x100)])('div',{'className':_0x3b7c68(0x1e1),'children':_0x338423})]});}return(0x0,react_jsx_runtime[_0x4b8118(0x100)])(_univerjs_design[_0x4b8118(0x127)],{'title':_0x4b4723,'placement':_0x4b8118(0x21c),'children':_0x2ccc76()});}function _0x2260(){const _0x660881=['mcpStatus.clickToConfigure','univer-size-4','mcpStatus.networkError','CONNECTED','symbol','_mcpConnectionController','Disconnected','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','MCP:\x20Max\x20Retries\x20Exceeded','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','close','Click\x20to\x20configure\x20MCP','univer-space-y-3','mcpConfig.apiApplyInfo.univerAiLabel','iterator','includes','setItem','mcpConfig.configStep3','mcpConfig.validation.invalidApiKey','enableAutoConnect','DependentOn','univer-font-medium','Plugin','univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','权限验证失败,请检查您的\x20API\x20密钥','Configuration\x20Notes:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','showConfigPanel','mcpConfig.configInstructions','apiKey','univer-size-2\x20univer-rounded-full','enUS','mcpConfig.apiKey','constructor','配置步骤:','span','mcpStatus.connecting','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','MCP\x20已断开','setConfig','将以下配置添加到您的\x20MCP\x20客户端设置中:','_apiKey$','univer-text-sm\x20univer-font-medium','MCP\x20Unknown\x20Status','useObservable','MCPConnectionStatus','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','packageName','MCP\x20Client\x20Configuration','_registerComponent','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','What\x20is\x20API\x20Key?','OffLineIcon','Success','LocaleService','univer.plus','warn','_config$','CheckMarkIcon','MCP\x20配置','trim','disposeWithMe','mcpStatus.connected','MCP\x20客户端配置','useCallback','MCPConfigPanel','_messageService','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_config','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-bg-red-500','mcpConfig.connectionError.sessionOccupied','Inject','2mTPKEk','Max\x20Retries','Get\x20your\x20API\x20key\x20in\x20seconds','_menuManagerService','MCP:\x20超出最大重试次数','button','univer-shrink-0\x20univer-text-red-500','什么是\x20API\x20密钥?','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','pluginName','_loadStoredApiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','mcpConfig.description','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_localStorageService','Saving...','IMessageService','mcp.apiKey','mcpConfig.apiKeyPlaceholder','https://mcp.univer.ai/mcp/?univer_session_id=','univer-flex\x20univer-items-center','univer-flex\x20univer-flex-wrap\x20univer-gap-2','5130YzqtCU','mcpServerUrl','0.22.0','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpStatus.clickToConnect','mcpStatus.retrying','网络连接错误,请检查您的网络连接','API\x20Key','1539zQMKoK','sessionId$','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.connectionError.unauthorized','mcpConfig.save','Invalid\x20configuration','univer-bg-green-500','MCPStatusDisplay','univer-text-white','MCP\x20Connected','配置保存失败','Injector','Enable\x20Authentication','MCP\x20连接中...','univer.ai','_loading$','jsxs','超出最大重试次数,请稍后再试','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Bearer\x20','pre','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','_mcpCoreConfig$','univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','length','ComponentManager','IUIPartsService','useState','defineProperty','Configuration\x20Parameters:','string','univer-text-green-500','mcp-ui.command.openConfigPanel','next','NONE','重启您的\x20MCP\x20客户端以使配置生效','带有\x20Bearer\x20前缀的\x20API\x20密钥。','OnLineIcon','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','clsx','MCP:\x20Unauthorized','MCPConfigUIController','将配置添加到您的\x20MCP\x20客户端设置文件中','会话ID','Univer\x20AI\x20Console','_validateConfig','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','showDeveloperTools','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','130796epkBIm','_handleConfigure','mcpStatus.unauthorized','univer-shrink-0\x20univer-text-blue-500','mcpConfig.connectionInfo','UNAUTHORIZED','ICommandService','toStringTag','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-space-y-4','3805MzubWR','mcpConfig.configParameters','mcpConfig.apiApplyInfo.description','最大重试次数','mcpConfig.configStep2','MCP:\x20会话\x20ID\x20已被占用','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','8002310EcMMMH','get','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','19933680PbVVHH','_logService','Connected','mcpConfig.configStep1','mcpConfig.configStepTitle','univer-flex\x20univer-items-start\x20univer-gap-3','配置更改将立即生效','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20未授权','CloseIcon','MCP_UI_PLUGIN','mcpConfig.note1','FAILED','toPrimitive','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-text-xs\x20univer-text-gray-600','Copy\x20the\x20JSON\x20configuration\x20below','_createConfigPanelComponent','mcpConfig.authorizationDescription','Failed\x20to\x20save\x20configuration','417311KQwfUO','Save\x20Configuration','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','default','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','useDependency','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','bottom','mcpConfig.sessionIdDescription','点击配置\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','open','show','mcpConfig.title','57jgpLSM','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','univer-text-xs\x20univer-text-gray-500','connectInjector','http','error','getConfig','_commandService','几秒钟内获取您的\x20API\x20密钥','_localeService','mcpConfig.apiKeyHint','getCurrentConfig','stringify','isValid','_initializeCommands','mergeMenu','div','removeItem','DISCONNECTED','univer-flex\x20univer-items-center\x20univer-gap-2','registerCommand','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','prototype','_connectionController','Enter\x20your\x20API\x20key','object','HEADER_MENU','univer-bg-gray-500','merge','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','重连中...','mcpConfig.connectionStatus.connected','mcpConfig.connectionStatus.failed','has','univer-space-y-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_initializeMenus','ISocketService','CONNECTING','会话\x20ID\x20已被占用,请稍后再试','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','MCP\x20Retrying...','mcpConfig.apiApplyInfo.getStarted','connectionStatus$','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','RibbonStartGroup','MCP\x20连接失败','_initConfigSync','API\x20密钥','OpenMCPConfigPanelCommand','MAX_RETRIES_EXCEEDED','5622519DCBczR','jsx','MCP\x20已连接','mcpStatus.maxRetriesExceeded','MessageType','mcpConfig.note2','_dialogService','_handleConfigSave','\x20-\x20','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','<API_KEY>','COMMAND','RETRYING','API\x20key\x20with\x20Bearer\x20prefix.','_initAutoConnect','_configService','11oGYpJA','mcpConfig.validation.apiKeyTooShort','_injector','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','_componentManager','univer-text-gray-500','CommandType','请输入您的\x20API\x20密钥','MCP\x20Configuration','_blank','BehaviorSubject','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','add','未连接','function','连接中...','value','BUTTON','SESSION_ID_OCCUPIED','配置\x20MCP\x20使用\x20AI\x20操作电子表格','_uiPartsService','IConfigService','noopener\x20noreferrer','register','Tooltip','连接失败','Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-gray-400','connectionError$','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','API\x20密钥不能为空','<SESSION_ID>','API\x20密钥长度至少需要\x2010\x20位','off','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','复制以下\x20JSON\x20配置','MCPConnectionController','Click\x20to\x20connect\x20MCP','OTHERS','Connecting...','mcpConfig.configError','MCPConnectionError','mcpConfig.apiApplyInfo.title','启用身份验证以获得安全连接','MCP\x20Connection\x20Failed','univer_session_id:','decorate','WebSocketService','BuiltInUIPart','MCP:\x20网络错误','mcpConfig.configSaved','ILogService','2512tvCfWq','univer-space-y-5','MCP_PLUGIN_CONFIG_KEY','subscribeConfigValue$','mcpStatus.sessionOccupied','univer-flex\x20univer-items-start\x20univer-gap-2','__setCustomHeaders','getOwnPropertyDescriptor','univer-text-red-500','mcpStatus.disconnected','univer-text-sm\x20univer-text-gray-500','Authorization:','subscribe','label','registerComponent'];_0x2260=function(){return _0x660881;};return _0x2260();}let MCPConnectionUIController=class MCPConnectionUIController extends _univerjs_core['Disposable']{constructor(_0x270cc4,_0x2a943b,_0x15025f,_0x2b8474){const _0x1e8891=_0xa52f92;super(),this[_0x1e8891(0x111)]=_0x270cc4,this[_0x1e8891(0x23a)]=_0x2a943b,this[_0x1e8891(0x123)]=_0x15025f,this[_0x1e8891(0x10e)]=_0x2b8474,this[_0x1e8891(0x10d)](),this['_initStatusComponent']();}['_initAutoConnect'](){const _0x1b84c6=_0xa52f92,_0x5984f6=this[_0x1b84c6(0x10e)][_0x1b84c6(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x5984f6===null||_0x5984f6===void 0x0?void 0x0:_0x5984f6[_0x1b84c6(0x1eb)])this['_connectionController'][_0x1b84c6(0x166)]=![];}['_initStatusComponent'](){const _0x48e830=_0xa52f92,_0x307760=this[_0x48e830(0x10e)][_0x48e830(0x229)](MCP_UI_PLUGIN_CONFIG_KEY);if((_0x307760===null||_0x307760===void 0x0?void 0x0:_0x307760['showStatus'])!==![])this[_0x48e830(0x190)](this['_uiPartsService'][_0x48e830(0x152)](_univerjs_ui[_0x48e830(0x140)][_0x48e830(0x23d)],()=>{const _0x168cdd=_0x48e830;var _0x5529b8;return(0x0,_univerjs_ui[_0x168cdd(0x226)])(passProps({'status$':this[_0x168cdd(0x23a)][_0x168cdd(0xf7)],'error$':this[_0x168cdd(0x23a)][_0x168cdd(0x12c)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x5529b8=_0x307760===null||_0x307760===void 0x0?void 0x0:_0x307760[_0x168cdd(0x1eb)])!==null&&_0x5529b8!==void 0x0?_0x5529b8:![]}),this['_injector']);}));}[_0xa52f92(0x1ee)](){const _0x3e1e42=_0xa52f92;this[_0x3e1e42(0x111)][_0x3e1e42(0x1ff)](MCPConfigUIController)[_0x3e1e42(0x16e)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0xa52f92(0x1c6)])),__decorateParam(0x1,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_pro_mcp['MCPConnectionController'])),__decorateParam(0x2,_univerjs_ui['IUIPartsService']),__decorateParam(0x3,_univerjs_core[_0xa52f92(0x124)])],MCPConnectionUIController);function passProps(_0x39e5ca){const {status$:_0x3f223f,error$:_0x1b747e,onConfigure:_0x59cb9c,showClickable:_0x295952}=_0x39e5ca;return function _0x506e22(){const _0x10a61c=_0x20c4;return(0x0,react_jsx_runtime[_0x10a61c(0x100)])(MCPStatusDisplay,{'status$':_0x3f223f,'error$':_0x1b747e,'onConfigure':_0x59cb9c,'showClickable':_0x295952});};}function MCPConfigMenuItemFactory(_0xbc56f){const _0x52f091=_0xa52f92;return{'id':OpenMCPConfigPanelCommand['id'],'type':_univerjs_ui['MenuItemType'][_0x52f091(0x120)],'icon':'MenuIcon','title':_0x52f091(0x222),'tooltip':_0x52f091(0x222)};}const menuSchema={[_univerjs_ui[_0xa52f92(0xf9)][_0xa52f92(0x136)]]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};let MCPUIMenuController=class MCPUIMenuController extends _univerjs_core['Disposable']{constructor(_0x34f006,_0x1d56f1){const _0x474ac2=_0xa52f92;super(),this[_0x474ac2(0x22a)]=_0x34f006,this[_0x474ac2(0x19f)]=_0x1d56f1,this[_0x474ac2(0x231)](),this[_0x474ac2(0xf0)]();}['_initializeCommands'](){[OpenMCPConfigPanelCommand]['forEach'](_0x3290e5=>{const _0x52ddfd=_0x20c4;this[_0x52ddfd(0x190)](this[_0x52ddfd(0x22a)][_0x52ddfd(0x237)](_0x3290e5));});}[_0xa52f92(0xf0)](){const _0x5c2d94=_0xa52f92;this[_0x5c2d94(0x19f)][_0x5c2d94(0x232)](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,_univerjs_core[_0xa52f92(0x1f3)]),__decorateParam(0x1,_univerjs_ui['IMenuManagerService'])],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0xa52f92(0x1c4),'failed':_0xa52f92(0x13c),'retrying':_0xa52f92(0xf5),'unknown':_0xa52f92(0x17e),'unauthorized':_0xa52f92(0x1e4),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xa52f92(0x15b),'clickToConnect':_0xa52f92(0x135),'clickToConfigure':_0xa52f92(0x15e)},'mcpConfig':{'title':_0xa52f92(0x117),'description':_0xa52f92(0x21f),'apiKey':_0xa52f92(0x1ba),'apiKeyPlaceholder':_0xa52f92(0x23b),'apiKeyHint':_0xa52f92(0x224),'enableAuth':_0xa52f92(0x1c7),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xa52f92(0x183),'mcpClientConfig':_0xa52f92(0x183),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0xa52f92(0x211),'configStep2':_0xa52f92(0x11a),'configStep3':_0xa52f92(0x1fd),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0xa52f92(0x10c),'configParameters':_0xa52f92(0x1d8),'maxRetries':_0xa52f92(0x19d),'save':_0xa52f92(0x216),'saving':_0xa52f92(0x1ac),'note1':_0xa52f92(0x247),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0xa52f92(0x214),'apiApplyInfo':{'title':_0xa52f92(0x186),'description':_0xa52f92(0x181),'univerAiLabel':_0xa52f92(0x1e8),'getStarted':_0xa52f92(0x19e)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xa52f92(0x208),'invalidConfig':_0xa52f92(0x1c0),'invalidApiKey':_0xa52f92(0x1d0)},'connectionStatus':{'disconnected':_0xa52f92(0x159),'connecting':_0xa52f92(0x137),'connected':_0xa52f92(0x203),'failed':'Connection\x20Failed','retrying':'Retrying...'},'connectionError':{'unauthorized':_0xa52f92(0x12a),'sessionOccupied':_0xa52f92(0x1b6),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xa52f92(0x108)}}},locale$1={'mcpStatus':{'disconnected':_0xa52f92(0x179),'connecting':_0xa52f92(0x1c8),'connected':_0xa52f92(0x101),'failed':_0xa52f92(0xfa),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0xa52f92(0x209),'sessionOccupied':_0xa52f92(0x1fc),'networkError':_0xa52f92(0x141),'maxRetriesExceeded':_0xa52f92(0x1a0),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0xa52f92(0x21e)},'mcpConfig':{'title':_0xa52f92(0x18e),'description':_0xa52f92(0x122),'apiKey':_0xa52f92(0xfc),'apiKeyPlaceholder':_0xa52f92(0x116),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':_0xa52f92(0x13b),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0xa52f92(0x192),'configInstructions':_0xa52f92(0x17b),'configStepTitle':_0xa52f92(0x175),'configStep1':_0xa52f92(0x133),'configStep2':_0xa52f92(0x1e6),'configStep3':_0xa52f92(0x1de),'sessionId':_0xa52f92(0x1e7),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0xa52f92(0x1df),'configParameters':'配置参数:','maxRetries':_0xa52f92(0x1fa),'save':'保存配置','saving':'保存中...','note1':_0xa52f92(0x207),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0xa52f92(0x1c5),'apiApplyInfo':{'title':_0xa52f92(0x1a3),'description':_0xa52f92(0x1bd),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0xa52f92(0x22b)},'validation':{'apiKeyRequired':_0xa52f92(0x12e),'apiKeyTooShort':_0xa52f92(0x130),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0xa52f92(0x11c),'connecting':_0xa52f92(0x11e),'connected':'已连接','failed':_0xa52f92(0x128),'retrying':_0xa52f92(0x241)},'connectionError':{'unauthorized':_0xa52f92(0x16b),'sessionOccupied':_0xa52f92(0xf3),'networkError':_0xa52f92(0x1b9),'maxRetriesExceeded':_0xa52f92(0x1cc)}}};function _0x20c4(_0x313461,_0x453c03){_0x313461=_0x313461-0xf0;const _0x226029=_0x2260();let _0x20c449=_0x226029[_0x313461];return _0x20c449;}var name='@univerjs-pro/mcp-ui',version=_0xa52f92(0x1b5);let UniverMCPUIPlugin=class UniverMCPUIPlugin extends _univerjs_core[_0xa52f92(0x169)]{constructor(_0x59fa88=defaultPluginConfig,_0x6daa76,_0x5359ff,_0x482003,_0x4863f6,_0x419aac){const _0x30c121=_0xa52f92;super(),this['_config']=_0x59fa88,this['_injector']=_0x6daa76,this[_0x30c121(0x10e)]=_0x5359ff,this['_uiPartsService']=_0x482003,this[_0x30c121(0x1ab)]=_0x4863f6,this['_localeService']=_0x419aac;const {..._0x5b5dc1}=(0x0,_univerjs_core[_0x30c121(0x23f)])({},defaultPluginConfig,this[_0x30c121(0x197)]);this[_0x30c121(0x10e)][_0x30c121(0x17a)](MCP_UI_PLUGIN_CONFIG_KEY,_0x5b5dc1);}async['onStarting'](){const _0x3222ee=_0xa52f92,_0x4a995b=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this['_injector'][_0x3222ee(0x244)](_univerjs_network[_0x3222ee(0xf1)]))_0x4a995b['push']([_univerjs_network[_0x3222ee(0xf1)],{'useClass':_univerjs_network[_0x3222ee(0x13f)]}]);_0x4a995b['forEach'](_0x2a6210=>this[_0x3222ee(0x111)][_0x3222ee(0x11b)](_0x2a6210)),this['_injector'][_0x3222ee(0x1ff)](MCPConnectionUIController),this[_0x3222ee(0x111)][_0x3222ee(0x1ff)](MCPConfigUIController),this[_0x3222ee(0x111)]['get'](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0xa52f92(0x1a5),_0xa52f92(0x20b)),_defineProperty(UniverMCPUIPlugin,_0xa52f92(0x182),name),_defineProperty(UniverMCPUIPlugin,'version',version),UniverMCPUIPlugin=__decorate([(0x0,_univerjs_core[_0xa52f92(0x167)])(_univerjs_pro_mcp['UniverMCPPlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_core[_0xa52f92(0x1c6)])),__decorateParam(0x2,_univerjs_core['IConfigService']),__decorateParam(0x3,_univerjs_ui[_0xa52f92(0x1d5)]),__decorateParam(0x4,_univerjs_core['ILocalStorageService']),__decorateParam(0x5,(0x0,_univerjs_core[_0xa52f92(0x19b)])(_univerjs_core[_0xa52f92(0x189)]))],UniverMCPUIPlugin),exports['MCPConfigPanel']=MCPConfigPanel,Object[_0xa52f92(0x1d7)](exports,_0xa52f92(0x1e5),{'enumerable':!![],'get':function(){return MCPConfigUIController;}}),Object[_0xa52f92(0x1d7)](exports,'MCPConnectionUIController',{'enumerable':!![],'get':function(){return MCPConnectionUIController;}}),exports[_0xa52f92(0x1c2)]=MCPStatusDisplay,Object['defineProperty'](exports,'MCPUIMenuController',{'enumerable':!![],'get':function(){return MCPUIMenuController;}}),exports[_0xa52f92(0xfd)]=OpenMCPConfigPanelCommand,Object['defineProperty'](exports,'UniverMCPUIPlugin',{'enumerable':!![],'get':function(){return UniverMCPUIPlugin;}}),exports[_0xa52f92(0x172)]=locale,exports['zhCN']=locale$1;
1
+ const _0x586328=_0x53f3;(function(_0x48d1f3,_0x4bf2b1){const _0x3530f5=_0x53f3,_0xd8338d=_0x48d1f3();while(!![]){try{const _0x34e526=-parseInt(_0x3530f5(0x1e3))/0x1*(parseInt(_0x3530f5(0x193))/0x2)+-parseInt(_0x3530f5(0x13b))/0x3+parseInt(_0x3530f5(0x1a6))/0x4+parseInt(_0x3530f5(0x123))/0x5*(-parseInt(_0x3530f5(0x1a9))/0x6)+-parseInt(_0x3530f5(0x12b))/0x7+-parseInt(_0x3530f5(0x1b6))/0x8+parseInt(_0x3530f5(0x1a7))/0x9;if(_0x34e526===_0x4bf2b1)break;else _0xd8338d['push'](_0xd8338d['shift']());}catch(_0x27c751){_0xd8338d['push'](_0xd8338d['shift']());}}}(_0x3712,0x6efbc),Object['defineProperty'](exports,Symbol[_0x586328(0x250)],{'value':_0x586328(0x1a0)}));let _univerjs_core=require('@univerjs/core'),_univerjs_pro_mcp=require('@univerjs-pro/mcp'),_univerjs_design=require('@univerjs/design'),_univerjs_ui=require('@univerjs/ui'),rxjs=require('rxjs'),_univerjs_icons=require('@univerjs/icons'),react=require('react'),react_jsx_runtime=require('react/jsx-runtime'),_univerjs_network=require('@univerjs/network');function MCPConfigPanel(_0x3be4f5){const _0xebe275=_0x586328;var _0x2eacb5,_0x18a341;const {mcpCoreConfig:_0x16f4d4,onSave:_0x21be84,loading:loading=![],config:_0x4e903c,connectionStatus$:_0x5e4fc6,connectionError$:_0xe9682e,currentApiKey$:_0x31d225,currentSessionId$:_0x4024d8}=_0x3be4f5,_0x291a14=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0xebe275(0x171)]),_0x101084=(0x0,_univerjs_ui[_0xebe275(0x172)])(_0x5e4fc6,_univerjs_pro_mcp[_0xebe275(0x13c)][_0xebe275(0x1c9)]),_0x339fd0=(0x0,_univerjs_ui['useObservable'])(_0xe9682e,_univerjs_pro_mcp['MCPConnectionError'][_0xebe275(0x1de)]),_0x836206=(0x0,_univerjs_ui[_0xebe275(0x172)])(_0x4024d8,''),[_0x4eed9b,_0xfcc5aa]=(0x0,react['useState'])((0x0,_univerjs_ui[_0xebe275(0x172)])(_0x31d225,'')||''),_0x1e7a14=!![],_0x394ab2=_0x4e903c[_0xebe275(0x17e)]&&_0x16f4d4['mcpServerUrl']&&(_0x16f4d4['mcpServerUrl'][_0xebe275(0x200)](_0xebe275(0x10d))||_0x16f4d4[_0xebe275(0x216)][_0xebe275(0x200)](_0xebe275(0x140))),_0x29ec46=(_0x2eacb5=_0x16f4d4[_0xebe275(0x216)])===null||_0x2eacb5===void 0x0?void 0x0:_0x2eacb5[_0xebe275(0x200)](_0xebe275(0x10d)),_0x59a08a=(_0x18a341=_0x16f4d4[_0xebe275(0x216)])===null||_0x18a341===void 0x0?void 0x0:_0x18a341[_0xebe275(0x200)]('univer.ai'),_0x3db9a8=_0x29ec46?_0xebe275(0x1ae):_0xebe275(0x201),_0x471545=_0x4e903c[_0xebe275(0x17e)]&&(_0x29ec46||_0x59a08a),[_0x4c24ae,_0x2fdc05]=(0x0,react[_0xebe275(0x244)])(!_0x4eed9b[_0xebe275(0x106)]()),_0x3ea9ba=(_0x333b84,_0x1390c3)=>{const _0xc88963=_0xebe275;if(_0x1390c3===_univerjs_pro_mcp[_0xc88963(0x1a8)][_0xc88963(0x134)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x333b84){case _univerjs_pro_mcp[_0xc88963(0x13c)][_0xc88963(0x24c)]:return _0xc88963(0x23d);case _univerjs_pro_mcp['MCPConnectionStatus']['CONNECTING']:case _univerjs_pro_mcp['MCPConnectionStatus'][_0xc88963(0x109)]:return _0xc88963(0x128);case _univerjs_pro_mcp['MCPConnectionStatus'][_0xc88963(0x15a)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return _0xc88963(0x243);}},_0x342d20=(_0x5c7dc4,_0x2de70e)=>{const _0x5ea33e=_0xebe275;if(_0x2de70e===_univerjs_pro_mcp[_0x5ea33e(0x1a8)][_0x5ea33e(0x134)])return'univer-bg-red-500';switch(_0x5c7dc4){case _univerjs_pro_mcp['MCPConnectionStatus'][_0x5ea33e(0x24c)]:return _0x5ea33e(0x1e7);case _univerjs_pro_mcp[_0x5ea33e(0x13c)]['CONNECTING']:case _univerjs_pro_mcp[_0x5ea33e(0x13c)]['RETRYING']:return _0x5ea33e(0x154);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x5ea33e(0x15a)]:return'univer-bg-red-500';default:return _0x5ea33e(0x1f5);}},_0x3cf75d=_0x5ab272=>{const _0x2993d7=_0xebe275;switch(_0x5ab272){case _univerjs_pro_mcp[_0x2993d7(0x13c)]['CONNECTED']:return _0x291a14['t'](_0x2993d7(0x118));case _univerjs_pro_mcp[_0x2993d7(0x13c)][_0x2993d7(0x19f)]:return _0x291a14['t'](_0x2993d7(0x114));case _univerjs_pro_mcp[_0x2993d7(0x13c)][_0x2993d7(0x15a)]:return _0x291a14['t'](_0x2993d7(0x1ac));case _univerjs_pro_mcp[_0x2993d7(0x13c)][_0x2993d7(0x109)]:return _0x291a14['t'](_0x2993d7(0x12d));default:return _0x291a14['t'](_0x2993d7(0x213));}},_0x5a0e94=_0x26beb3=>{const _0x53bda7=_0xebe275;switch(_0x26beb3){case _univerjs_pro_mcp[_0x53bda7(0x1a8)][_0x53bda7(0x134)]:return _0x291a14['t']('mcpConfig.connectionError.unauthorized');case _univerjs_pro_mcp[_0x53bda7(0x1a8)][_0x53bda7(0x1d3)]:return _0x291a14['t'](_0x53bda7(0x16a));case _univerjs_pro_mcp[_0x53bda7(0x1a8)][_0x53bda7(0x120)]:return _0x291a14['t'](_0x53bda7(0x11d));case _univerjs_pro_mcp['MCPConnectionError'][_0x53bda7(0x1be)]:return _0x291a14['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x398d04=(0x0,react['useCallback'])(()=>{const _0x4e8794=_0xebe275;_0x21be84({..._0x16f4d4,'apiKey':_0x4eed9b[_0x4e8794(0x106)](),'enableAuth':_0x1e7a14});},[_0x16f4d4,_0x4eed9b,_0x1e7a14,_0x21be84]),_0x480f14=_0x4eed9b[_0xebe275(0x106)]()[_0xebe275(0x11b)]>0x0;return(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x10e),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('div',{'className':_0xebe275(0x224),'children':(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x1db),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':'univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','children':(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':'univer-text-white','children':'⚙'})}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'children':(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('p',{'className':_0xebe275(0x19b),'children':_0x291a14['t']('mcpConfig.description')})})]})}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':(0x0,_univerjs_design[_0xebe275(0x23c)])('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x3ea9ba(_0x101084,_0x339fd0)),'children':(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x20e),'children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design['clsx'])(_0xebe275(0x18f),_0x342d20(_0x101084,_0x339fd0))}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':_0xebe275(0x223),'children':_0x3cf75d(_0x101084)})]})}),_0x339fd0!==_univerjs_pro_mcp['MCPConnectionError'][_0xebe275(0x1de)]&&(_0x101084===_univerjs_pro_mcp[_0xebe275(0x13c)][_0xebe275(0x15a)]||_0x339fd0===_univerjs_pro_mcp['MCPConnectionError'][_0xebe275(0x134)])&&(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('div',{'className':_0xebe275(0x122),'children':(0x0,react_jsx_runtime['jsxs'])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':_0xebe275(0x10b),'children':'⚠️'}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('p',{'className':_0xebe275(0x162),'children':_0x5a0e94(_0x339fd0)})]})})]}),(0x0,react_jsx_runtime['jsx'])(_0xebe275(0x1d4),{'className':_0xebe275(0x19c),'children':(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':_0xebe275(0x242),'children':[(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x1cd),'children':[(0x0,react_jsx_runtime['jsxs'])('label',{'className':_0xebe275(0x148),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'children':'🔑'}),'\x20',_0x291a14['t'](_0xebe275(0x181)),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('span',{'className':_0xebe275(0x1af),'children':'*'}),_0x394ab2&&(0x0,react_jsx_runtime['jsx'])('a',{'className':_0xebe275(0x1d6),'title':_0x291a14['t'](_0xebe275(0x14f)),'role':'button','onClick':()=>_0x2fdc05(!![]),'children':(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_univerjs_icons[_0xebe275(0x18c)],{})})]}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_univerjs_design[_0xebe275(0x1da)],{'type':_0xebe275(0x161),'placeholder':_0x291a14['t']('mcpConfig.apiKeyPlaceholder'),'value':_0x4eed9b,'disabled':loading,'autoComplete':'off','onChange':_0xfcc5aa}),(0x0,react_jsx_runtime['jsx'])('p',{'className':_0xebe275(0x227),'children':_0x291a14['t']('mcpConfig.apiKeyHint')})]}),_0x394ab2&&_0x4c24ae&&(0x0,react_jsx_runtime['jsxs'])(_0xebe275(0x1d4),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('a',{'className':_0xebe275(0x1c3),'role':_0xebe275(0x247),'onClick':()=>_0x2fdc05(![]),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0xebe275(0x129)],{'className':_0xebe275(0x16d)})}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x1c8),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x1e6),'children':(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('span',{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':'univer-flex-1','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x291a14['t'](_0xebe275(0x14f))}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x291a14['t']('mcpConfig.apiApplyInfo.description')}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x1e8),'children':_0x471545&&(0x0,react_jsx_runtime['jsxs'])('a',{'className':_0xebe275(0x1f6),'href':_0x3db9a8,'target':_0xebe275(0x13e),'rel':_0xebe275(0x1d9),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'children':'🤖'}),_0x291a14['t'](_0xebe275(0x176)),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':_0xebe275(0x256),'children':'↗'})]})}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x150),'children':['✨','\x20',_0x291a14['t'](_0xebe275(0x105))]})]})]})]}),_0x4e903c[_0xebe275(0x17e)]&&(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0xebe275(0x1e1),'children':[(0x0,react_jsx_runtime['jsxs'])('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'children':'🔗'}),'\x20',_0x291a14['t'](_0xebe275(0x238))]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':'univer-space-y-4','children':[(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0xebe275(0x16b),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('p',{'className':_0xebe275(0x16f),'children':_0x291a14['t'](_0xebe275(0x15e))}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':_0xebe275(0x1cd),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x132),'children':_0x291a14['t']('mcpConfig.configStepTitle')}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':_0xebe275(0x1aa),'children':[(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x20e),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':_0xebe275(0x1c7),'children':'1'}),_0x291a14['t']('mcpConfig.configStep1')]}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x20e),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':_0xebe275(0x1c7),'children':'2'}),_0x291a14['t'](_0xebe275(0x1df))]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0xebe275(0x20e),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'3'}),_0x291a14['t']('mcpConfig.configStep3')]})]})]})]}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':'univer-space-y-2','children':[(0x0,react_jsx_runtime['jsx'])(_0xebe275(0x1d4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':'MCP\x20Configuration'}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x207),'children':(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('pre',{'className':_0xebe275(0x255),'children':JSON[_0xebe275(0x190)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x836206||_0xebe275(0x175)),'type':_0xebe275(0x1ea),'headers':{'Authorization':'Bearer\x20'+(_0x4eed9b||_0xebe275(0x212))}}}},null,0x2)})})]}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x16b),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x132),'children':_0x291a14['t'](_0xebe275(0x14a))}),(0x0,react_jsx_runtime['jsxs'])(_0xebe275(0x1d4),{'className':_0xebe275(0x1cd),'children':[(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x1ed),'children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':_0xebe275(0x110),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x291a14['t'](_0xebe275(0x1dc))})]})]}),(0x0,react_jsx_runtime['jsxs'])(_0xebe275(0x1d4),{'className':_0xebe275(0x1ed),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x169)}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':_0xebe275(0x110),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('div',{'className':_0xebe275(0x11e),'children':_0xebe275(0x21b)}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x1d4),{'className':_0xebe275(0x227),'children':_0x291a14['t'](_0xebe275(0x251))})]})]})]})]})]})]}),(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_univerjs_design[_0xebe275(0x1e0)],{'onClick':_0x398d04,'disabled':!_0x480f14||loading,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':loading?(0x0,react_jsx_runtime['jsxs'])(_0xebe275(0x119),{'className':_0xebe275(0x20e),'children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'children':'⟲'}),_0x291a14['t'](_0xebe275(0x222))]}):(0x0,react_jsx_runtime['jsxs'])(_0xebe275(0x119),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_univerjs_icons[_0xebe275(0x116)],{}),_0x291a14['t'](_0xebe275(0x1f0))]})}),(0x0,react_jsx_runtime['jsx'])(_0xebe275(0x1d4),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','children':(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'className':'univer-flex\x20univer-gap-3','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])(_0xebe275(0x119),{'className':_0xebe275(0x220),'children':'💡'}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[(0x0,react_jsx_runtime[_0xebe275(0x1ff)])('div',{'className':_0xebe275(0x1b8),'children':'Configuration\x20Notes:'}),(0x0,react_jsx_runtime[_0xebe275(0x231)])(_0xebe275(0x1d4),{'children':['•',_0x291a14['t']('mcpConfig.note1')]}),(0x0,react_jsx_runtime[_0xebe275(0x231)])('div',{'children':['•',_0x291a14['t'](_0xebe275(0x235))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY=_0x586328(0x215),configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0x2b1724){'@babel/helpers - typeof';const _0xc07396=_0x586328;return _typeof=_0xc07396(0x186)==typeof Symbol&&_0xc07396(0x22d)==typeof Symbol['iterator']?function(_0x41f450){return typeof _0x41f450;}:function(_0x338ac6){const _0x4605d5=_0xc07396;return _0x338ac6&&_0x4605d5(0x186)==typeof Symbol&&_0x338ac6[_0x4605d5(0x209)]===Symbol&&_0x338ac6!==Symbol[_0x4605d5(0x135)]?_0x4605d5(0x22d):typeof _0x338ac6;},_typeof(_0x2b1724);}function toPrimitive(_0x32883c,_0x59a274){const _0x2b3725=_0x586328;if(_0x2b3725(0x125)!=_typeof(_0x32883c)||!_0x32883c)return _0x32883c;var _0x523abf=_0x32883c[Symbol[_0x2b3725(0x204)]];if(void 0x0!==_0x523abf){var _0x36ddfa=_0x523abf[_0x2b3725(0x1c0)](_0x32883c,_0x59a274||'default');if(_0x2b3725(0x125)!=_typeof(_0x36ddfa))return _0x36ddfa;throw new TypeError(_0x2b3725(0x143));}return(_0x2b3725(0x11c)===_0x59a274?String:Number)(_0x32883c);}function _0x3712(){const _0x55aa31=['MCPStatusDisplay','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-cursor-pointer\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hover:univer-opacity-80\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Inject','mcpConfig.note2','onStarting','点击连接\x20MCP','mcpConfig.connectionInfo','setItem','packageName','_loading$','clsx','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','IUIPartsService','Max\x20Retries','MCPUIMenuController','showStatus','univer-space-y-5','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','useState','next','mcpStatus.networkError','button','Success','value','复制以下\x20JSON\x20配置','_localStorageService','CONNECTED','showConfigPanel','connectionError$','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','toStringTag','mcpConfig.authorizationDescription','univer-text-gray-500','Injector','MCPConnectionUIController','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-text-gray-400','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','_messageService','mcpConfig.apiApplyInfo.getStarted','trim','mergeMenu','MCP\x20Connection\x20Failed','RETRYING','MenuIcon','univer-shrink-0\x20univer-text-red-500','_initStatusComponent','univer.plus','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','_loadStoredApiKey','univer-min-w-0\x20univer-flex-1','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpStatus.maxRetriesExceeded','removeItem','mcpConfig.connectionStatus.connecting','_registerComponent','CheckMarkIcon','IMenuManagerService','mcpConfig.connectionStatus.connected','span','_config$','length','string','mcpConfig.connectionError.networkError','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcp-config-dialog','NETWORK_ERROR','mcpStatus.failed','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','15QnOPIg','Configuration\x20Parameters:','object','MCP\x20Disconnected','mcpStatus.disconnected','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','CloseIcon','forEach','4139842qINsYJ','0.22.1','mcpConfig.connectionStatus.retrying','mcpStatus.unauthorized','API\x20key\x20is\x20required','_uiPartsService','MCP\x20Configuration','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','保存中...','UNAUTHORIZED','prototype','_injector','MCP\x20已断开','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20会话\x20ID\x20已被占用','配置保存失败','1780164LtTbsV','MCPConnectionStatus','zhCN','_blank','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer.ai','MCP:\x20未授权','OffLineIcon','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','sessionId$','_apiKey$','Connecting...','配置更改将立即生效','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_connectionController','mcpConfig.configParameters','Click\x20to\x20configure\x20MCP','defineProperty','API\x20密钥不能为空','MCP:\x20Network\x20Error','mcpConfig.apiApplyInfo.title','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','disposeWithMe','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-bg-blue-500','Connected','MCPConnectionController','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','WebSocketService','BehaviorSubject','FAILED','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','close','register','mcpConfig.configInstructions','会话\x20ID\x20已被占用,请稍后再试','Bearer\x20','text','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','CommandType','OTHERS','mcpStatus.sessionOccupied','Tooltip','_commandService','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.connectionError.sessionOccupied','univer-space-y-3','__setCustomHeaders','univer-size-4','mcpStatus.clickToConfigure','univer-text-xs\x20univer-text-gray-600','registerComponent','LocaleService','useObservable','DependentOn','OnLineIcon','<SESSION_ID>','mcpConfig.apiApplyInfo.univerAiLabel','MCP\x20客户端配置','Plugin','ISocketService','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','MCP\x20已连接','HEADER_MENU','API\x20密钥无效,请检查密钥是否正确','showDeveloperTools','_mcpCoreConfig$','超出最大重试次数,请稍后再试','mcpConfig.apiKey','Enable\x20authentication\x20for\x20secure\x20connections','connectionStatus$','error','_initializeCommands','function','getConfig','ICommandService','Get\x20your\x20API\x20key\x20in\x20seconds','subscribeConfigValue$','将配置添加到您的\x20MCP\x20客户端设置文件中','HelpIcon','apiKey','未连接','univer-size-2\x20univer-rounded-full','stringify','Copy\x20the\x20JSON\x20configuration\x20below','启用身份验证','209404StLHtm','Error','mcpConfig.title','您的\x20API\x20密钥将在此浏览器中本地存储','MCP\x20连接中...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MessageType','Disposable','univer-text-sm\x20univer-text-gray-500','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','连接中...','decorate','CONNECTING','Module','_logService','连接失败','_initAutoConnect','connectInjector','权限验证失败,请检查您的\x20API\x20密钥','1244960oRQPTQ','16628301WDHVQY','MCPConnectionError','68790HGHWCL','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','配置步骤:','mcpConfig.connectionStatus.failed','mcpConfig.validation.invalidConfig','https://console.univer.plus','univer-text-red-500','您的\x20API\x20密钥安全存储在本地存储中','MCP\x20配置','pluginName','ILocalStorageService','univer-mr-2\x20univer-flex\x20univer-text-xl','_createConfigPanelComponent','1367568Hwwtor','_localeService','univer-font-medium','Retrying...','配置保存成功','_initConfigSync','已连接','mcpStatus.connecting','MAX_RETRIES_EXCEEDED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','call','univer-text-yellow-500','univer-flex\x20univer-items-center','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','MCPConfigPanel','Save\x20Configuration','validateApiKey','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','DISCONNECTED','UniverMCPPlugin','mcp-ui.command.openConfigPanel','Session\x20ID','univer-space-y-2','MCP_PLUGIN_CONFIG_KEY','MCP\x20Retrying...','get','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','warn','SESSION_ID_OCCUPIED','div','OpenMCPConfigPanelCommand','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','mcp.apiKey','has','noopener\x20noreferrer','Input','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.sessionIdDescription','_initializeMenus','NONE','mcpConfig.configStep2','Button','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','启用身份验证以获得安全连接','3GpUCAC','_dialogService','请输入您的\x20API\x20密钥','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-bg-green-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP:\x20Unauthorized','http','_config','mcpConfig.validation.apiKeyTooShort','univer-flex\x20univer-items-start\x20univer-gap-3','Failed\x20to\x20save\x20configuration','IConfigService','mcpConfig.save','Enable\x20Authentication','\x20-\x20','API\x20key\x20with\x20Bearer\x20prefix.','useCallback','univer-bg-gray-500','univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','配置参数:','几秒钟内获取您的\x20API\x20密钥','What\x20is\x20API\x20Key?','API\x20密钥','subscribe','配置\x20MCP\x20使用\x20AI\x20操作电子表格','mcpConfig.configSaved','_mcpConnectionController','jsx','includes','https://console.univer.ai','配置无效','enUS','toPrimitive','UniverMCPUIPlugin','_handleConfigSave','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','将以下配置添加到您的\x20MCP\x20客户端设置中:','constructor','MCP:\x20超出最大重试次数','API\x20密钥长度至少需要\x2010\x20位','mcpConfig.validation.invalidApiKey','IMessageService','univer-flex\x20univer-items-center\x20univer-gap-2','enableAutoConnect','最大重试次数','_componentManager','<API_KEY>','mcpConfig.connectionStatus.disconnected','MenuItemType','mcp-ui.config','mcpServerUrl','BuiltInUIPart','Univer\x20AI\x20控制台','open','Configuration\x20saved\x20successfully','Authorization:','MCP\x20连接失败','isValid','getCurrentConfig','Univer\x20AI\x20Console','univer-shrink-0\x20univer-text-blue-500','show','mcpConfig.saving','univer-text-sm\x20univer-font-medium','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','Saving...','网络连接错误,请检查您的网络连接','univer-text-xs\x20univer-text-gray-500','add','_configService','COMMAND','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','RibbonStartGroup','symbol','MCPConfigUIController','univer-text-green-500','MCP:\x20Max\x20Retries\x20Exceeded','jsxs'];_0x3712=function(){return _0x55aa31;};return _0x3712();}function toPropertyKey(_0xac055d){const _0x1d99a1=_0x586328;var _0xca9024=toPrimitive(_0xac055d,'string');return _0x1d99a1(0x22d)==_typeof(_0xca9024)?_0xca9024:_0xca9024+'';}function _defineProperty(_0x3ec876,_0x2d1df7,_0x3c0b66){return(_0x2d1df7=toPropertyKey(_0x2d1df7))in _0x3ec876?Object['defineProperty'](_0x3ec876,_0x2d1df7,{'value':_0x3c0b66,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3ec876[_0x2d1df7]=_0x3c0b66,_0x3ec876;}function __decorateParam(_0x1774b5,_0x21e86c){return function(_0x1ac8ae,_0x4b3fbe){_0x21e86c(_0x1ac8ae,_0x4b3fbe,_0x1774b5);};}function __decorate(_0x4260b8,_0x4b2eeb,_0x2cc558,_0x3dc369){const _0x573d36=_0x586328;var _0x179249=arguments['length'],_0x311fdd=_0x179249<0x3?_0x4b2eeb:_0x3dc369===null?_0x3dc369=Object['getOwnPropertyDescriptor'](_0x4b2eeb,_0x2cc558):_0x3dc369,_0x5a9f9c;if(typeof Reflect==='object'&&typeof Reflect[_0x573d36(0x19e)]===_0x573d36(0x186))_0x311fdd=Reflect[_0x573d36(0x19e)](_0x4260b8,_0x4b2eeb,_0x2cc558,_0x3dc369);else{for(var _0x3eeda1=_0x4260b8[_0x573d36(0x11b)]-0x1;_0x3eeda1>=0x0;_0x3eeda1--)if(_0x5a9f9c=_0x4260b8[_0x3eeda1])_0x311fdd=(_0x179249<0x3?_0x5a9f9c(_0x311fdd):_0x179249>0x3?_0x5a9f9c(_0x4b2eeb,_0x2cc558,_0x311fdd):_0x5a9f9c(_0x4b2eeb,_0x2cc558))||_0x311fdd;}return _0x179249>0x3&&_0x311fdd&&Object[_0x573d36(0x14c)](_0x4b2eeb,_0x2cc558,_0x311fdd),_0x311fdd;}const MCP_API_KEY_STORAGE_KEY=_0x586328(0x1d7),MCP_CONFIG_DIALOG_ID=_0x586328(0x11f);let MCPConfigUIController=class MCPConfigUIController extends _univerjs_core[_0x586328(0x19a)]{constructor(_0x5794f5,_0x3481b9,_0x19beda,_0x24423c,_0x3fe813,_0x121f9b,_0x19c63f,_0x1e0ce2,_0x518b6e,_0xa19d40){const _0x2c5173=_0x586328;super(),this[_0x2c5173(0x136)]=_0x5794f5,this[_0x2c5173(0x130)]=_0x3481b9,this[_0x2c5173(0x229)]=_0x19beda,this[_0x2c5173(0x24b)]=_0x24423c,this[_0x2c5173(0x1e4)]=_0x3fe813,this[_0x2c5173(0x104)]=_0x121f9b,this[_0x2c5173(0x211)]=_0x19c63f,this['_localeService']=_0x1e0ce2,this[_0x2c5173(0x1a1)]=_0x518b6e,this[_0x2c5173(0x1fe)]=_0xa19d40,_defineProperty(this,_0x2c5173(0x23b),new rxjs[(_0x2c5173(0x159))](![])),_defineProperty(this,_0x2c5173(0x17f),new rxjs['BehaviorSubject']({})),_defineProperty(this,_0x2c5173(0x11a),new rxjs[(_0x2c5173(0x159))]({})),_defineProperty(this,'_apiKey$',new rxjs[(_0x2c5173(0x159))]('')),_defineProperty(this,_0x2c5173(0x206),async _0x49be29=>{const _0x497f56=_0x2c5173;this[_0x497f56(0x23b)]['next'](!![]);try{var _0x1d2198,_0x408f01;const _0x10189c=await this['_validateConfig'](_0x49be29);if(!_0x10189c[_0x497f56(0x21d)]){this[_0x497f56(0x104)]['show']({'type':_univerjs_design['MessageType'][_0x497f56(0x194)],'content':_0x10189c['errorMessage']||this[_0x497f56(0x1b7)]['t'](_0x497f56(0x1ad))});return;}if(_0x49be29[_0x497f56(0x18d)])await this['_localStorageService'][_0x497f56(0x239)](MCP_API_KEY_STORAGE_KEY,_0x49be29[_0x497f56(0x18d)][_0x497f56(0x106)]());else await this[_0x497f56(0x24b)][_0x497f56(0x113)](MCP_API_KEY_STORAGE_KEY);this[_0x497f56(0x145)][_0x497f56(0x245)](((_0x1d2198=_0x49be29['apiKey'])===null||_0x1d2198===void 0x0?void 0x0:_0x1d2198[_0x497f56(0x106)]())||''),this[_0x497f56(0x1fe)][_0x497f56(0x16c)]({'Authorization':_0x497f56(0x160)+((_0x408f01=_0x49be29[_0x497f56(0x18d)])===null||_0x408f01===void 0x0?void 0x0:_0x408f01['trim']())}),this[_0x497f56(0x104)][_0x497f56(0x221)]({'type':_univerjs_design[_0x497f56(0x199)][_0x497f56(0x248)],'content':this[_0x497f56(0x1b7)]['t'](_0x497f56(0x1fd))}),setTimeout(()=>{const _0x184785=_0x497f56;this[_0x184785(0x1e4)][_0x184785(0x15c)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x4f020c){this[_0x497f56(0x1a1)][_0x497f56(0x184)](_0x497f56(0x17a),_0x4f020c),this[_0x497f56(0x104)]['show']({'type':_univerjs_design[_0x497f56(0x199)][_0x497f56(0x194)],'content':this[_0x497f56(0x1b7)]['t']('mcpConfig.configError')});}finally{this[_0x497f56(0x23b)][_0x497f56(0x245)](![]);}}),this['_initConfigSync'](),this['_loadStoredApiKey'](),this[_0x2c5173(0x115)]();}[_0x586328(0x24d)](){const _0x182475=_0x586328,_0x5082c8=this[_0x182475(0x229)][_0x182475(0x187)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x5082c8===null||_0x5082c8===void 0x0?void 0x0:_0x5082c8[_0x182475(0x17e)])this[_0x182475(0x1e4)][_0x182475(0x219)]({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x182475(0x1b7)]['t'](_0x182475(0x195))},'children':{'label':_0x182475(0x1c4)},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x45cc9d=_0x182475;this[_0x45cc9d(0x1e4)][_0x45cc9d(0x15c)](MCP_CONFIG_DIALOG_ID);}});}[_0x586328(0x21e)](){const _0x1202e0=_0x586328;return this['_mcpCoreConfig$'][_0x1202e0(0x249)];}[_0x586328(0x115)](){const _0x3b6f42=_0x586328;this[_0x3b6f42(0x152)](this['_componentManager'][_0x3b6f42(0x15d)](_0x3b6f42(0x1c4),this[_0x3b6f42(0x1b5)]()));}[_0x586328(0x1b5)](){const _0xaca03e=_0x586328;return(0x0,_univerjs_ui[_0xaca03e(0x1a4)])(()=>{const _0x1466fe=_0xaca03e;var _0x42278f,_0x8bbe46,_0x18f894;return(0x0,react_jsx_runtime['jsx'])(MCPConfigPanel,{'config':this['_config$'][_0x1466fe(0x249)],'mcpCoreConfig':this[_0x1466fe(0x17f)][_0x1466fe(0x249)],'currentApiKey$':this[_0x1466fe(0x145)],'onSave':this[_0x1466fe(0x206)],'loading':this[_0x1466fe(0x23b)][_0x1466fe(0x249)],'connectionStatus$':(_0x42278f=this[_0x1466fe(0x1fe)])===null||_0x42278f===void 0x0?void 0x0:_0x42278f['connectionStatus$'],'connectionError$':(_0x8bbe46=this[_0x1466fe(0x1fe)])===null||_0x8bbe46===void 0x0?void 0x0:_0x8bbe46[_0x1466fe(0x24e)],'currentSessionId$':(_0x18f894=this[_0x1466fe(0x1fe)])===null||_0x18f894===void 0x0?void 0x0:_0x18f894[_0x1466fe(0x144)]});},this['_injector']);}[_0x586328(0x1bb)](){const _0x164bf4=_0x586328;this[_0x164bf4(0x152)](this[_0x164bf4(0x229)][_0x164bf4(0x18a)](_univerjs_pro_mcp[_0x164bf4(0x1ce)])['subscribe'](_0x2ebeee=>{this['_mcpCoreConfig$']['next'](_0x2ebeee||{});}));const _0x471431=this[_0x164bf4(0x229)][_0x164bf4(0x187)](_univerjs_pro_mcp['MCP_PLUGIN_CONFIG_KEY']);this[_0x164bf4(0x17f)][_0x164bf4(0x245)](_0x471431||{}),this[_0x164bf4(0x152)](this[_0x164bf4(0x229)][_0x164bf4(0x18a)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x164bf4(0x1fb)](_0x4a2e90=>{const _0x50bc8d=_0x164bf4;this[_0x50bc8d(0x11a)][_0x50bc8d(0x245)](_0x4a2e90||{});}));const _0x5e93b3=this[_0x164bf4(0x229)][_0x164bf4(0x187)](MCP_UI_PLUGIN_CONFIG_KEY);this['_config$'][_0x164bf4(0x245)](_0x5e93b3||{});}async[_0x586328(0x10f)](){const _0x1edfd1=_0x586328,_0x56d381=this[_0x1edfd1(0x229)][_0x1edfd1(0x187)](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x56d381===null||_0x56d381===void 0x0?void 0x0:_0x56d381[_0x1edfd1(0x17e)]))return;const _0x4182e5=await this[_0x1edfd1(0x24b)]['getItem'](MCP_API_KEY_STORAGE_KEY);_0x4182e5&&(this[_0x1edfd1(0x1fe)]['__setCustomHeaders']({'Authorization':_0x1edfd1(0x160)+_0x4182e5}),this[_0x1edfd1(0x145)]['next'](_0x4182e5));}async['_validateConfig'](_0x574df6){const _0x7d538e=_0x586328;if(!_0x574df6[_0x7d538e(0x18d)]||_0x574df6[_0x7d538e(0x18d)][_0x7d538e(0x106)]()[_0x7d538e(0x11b)]===0x0)return{'isValid':![],'errorMessage':this[_0x7d538e(0x1b7)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x574df6['apiKey'][_0x7d538e(0x106)]()[_0x7d538e(0x11b)]<0xa)return{'isValid':![],'errorMessage':this['_localeService']['t'](_0x7d538e(0x1ec))};try{const _0x4e831b=await this[_0x7d538e(0x136)][_0x7d538e(0x1d0)](_univerjs_pro_mcp['MCPConnectionController'])[_0x7d538e(0x1c6)](_0x574df6[_0x7d538e(0x18d)][_0x7d538e(0x106)]());if(!_0x4e831b[_0x7d538e(0x21d)])return{'isValid':![],'errorMessage':_0x4e831b['error']||this[_0x7d538e(0x1b7)]['t'](_0x7d538e(0x20c))};return{'isValid':!![]};}catch(_0x1f294d){return console[_0x7d538e(0x1d2)](_0x7d538e(0x257),_0x1f294d),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_core[_0x586328(0x253)])),__decorateParam(0x1,_univerjs_ui[_0x586328(0x23e)]),__decorateParam(0x2,_univerjs_core[_0x586328(0x1ef)]),__decorateParam(0x3,_univerjs_core[_0x586328(0x1b3)]),__decorateParam(0x4,_univerjs_ui['IDialogService']),__decorateParam(0x5,_univerjs_ui[_0x586328(0x20d)]),__decorateParam(0x6,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_ui['ComponentManager'])),__decorateParam(0x7,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_core['LocaleService'])),__decorateParam(0x8,_univerjs_core['ILogService']),__decorateParam(0x9,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_pro_mcp[_0x586328(0x156)]))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':_0x586328(0x1cb),'type':_univerjs_core[_0x586328(0x164)][_0x586328(0x22a)],'handler':async(_0x51cd69,_0x75496b)=>{const _0x500c96=_0x586328;return _0x51cd69[_0x500c96(0x1d0)](MCPConfigUIController)[_0x500c96(0x24d)](),!![];}};function mapStatusToI18NKey(_0x2d05aa,_0x5b0c52){const _0x1dd31b=_0x586328;switch(_0x2d05aa){case _univerjs_pro_mcp[_0x1dd31b(0x13c)][_0x1dd31b(0x1c9)]:return _0x1dd31b(0x127);case _univerjs_pro_mcp[_0x1dd31b(0x13c)][_0x1dd31b(0x19f)]:return _0x1dd31b(0x1bd);case _univerjs_pro_mcp[_0x1dd31b(0x13c)][_0x1dd31b(0x24c)]:return'mcpStatus.connected';case _univerjs_pro_mcp[_0x1dd31b(0x13c)]['FAILED']:switch(_0x5b0c52){case _univerjs_pro_mcp['MCPConnectionError']['UNAUTHORIZED']:return _0x1dd31b(0x12e);case _univerjs_pro_mcp[_0x1dd31b(0x1a8)][_0x1dd31b(0x1d3)]:return _0x1dd31b(0x166);case _univerjs_pro_mcp[_0x1dd31b(0x1a8)]['NETWORK_ERROR']:return _0x1dd31b(0x246);case _univerjs_pro_mcp[_0x1dd31b(0x1a8)]['MAX_RETRIES_EXCEEDED']:return _0x1dd31b(0x112);default:return _0x1dd31b(0x121);}case _univerjs_pro_mcp[_0x1dd31b(0x13c)][_0x1dd31b(0x109)]:return'mcpStatus.retrying';default:return'mcpStatus.unknown';}}function getTooltipText(_0x4430fb,_0x4f28db,_0x45d439,_0x54facb=!![]){const _0x1cd5e3=_0x586328,_0x34627b=mapStatusToI18NKey(_0x4430fb,_0x4f28db),_0xd6b00c=_0x45d439['t'](_0x34627b);if(!_0x54facb)return _0xd6b00c;if(_0x4430fb===_univerjs_pro_mcp[_0x1cd5e3(0x13c)][_0x1cd5e3(0x1c9)]&&_0x4f28db===_univerjs_pro_mcp[_0x1cd5e3(0x1a8)][_0x1cd5e3(0x134)])return _0xd6b00c+'\x20-\x20'+_0x45d439['t'](_0x1cd5e3(0x16e));else{if(_0x4430fb===_univerjs_pro_mcp[_0x1cd5e3(0x13c)]['CONNECTED'])return''+_0xd6b00c;else{if(_0x4430fb===_univerjs_pro_mcp[_0x1cd5e3(0x13c)]['DISCONNECTED']||_0x4430fb===_univerjs_pro_mcp[_0x1cd5e3(0x13c)][_0x1cd5e3(0x15a)])return _0xd6b00c+_0x1cd5e3(0x1f2)+_0x45d439['t']('mcpStatus.clickToConnect');}}return _0xd6b00c;}function getStatusColor(_0x82852){const _0x2ecb60=_0x586328;switch(_0x82852){case _univerjs_pro_mcp[_0x2ecb60(0x13c)][_0x2ecb60(0x24c)]:return _0x2ecb60(0x22f);case _univerjs_pro_mcp[_0x2ecb60(0x13c)][_0x2ecb60(0x19f)]:case _univerjs_pro_mcp[_0x2ecb60(0x13c)]['RETRYING']:return _0x2ecb60(0x1c1);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x2ecb60(0x15a)]:case _univerjs_pro_mcp['MCPConnectionStatus'][_0x2ecb60(0x1c9)]:return _0x2ecb60(0x1af);default:return _0x2ecb60(0x252);}}function MCPStatusDisplay(_0x40faec){const _0x551bb0=_0x586328,{status$:_0x3a7aca,error$:_0x491865,onConfigure:_0x548f21,showClickable:showClickable=!![]}=_0x40faec,_0x1cfcad=(0x0,_univerjs_ui[_0x551bb0(0x172)])(_0x3a7aca,_univerjs_pro_mcp[_0x551bb0(0x13c)][_0x551bb0(0x1c9)]),_0x2674b2=(0x0,_univerjs_ui[_0x551bb0(0x172)])(_0x491865,_univerjs_pro_mcp[_0x551bb0(0x1a8)]['NONE']),_0x33e1cd=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x551bb0(0x171)]),_0x203d77=_0x1cfcad===_univerjs_pro_mcp[_0x551bb0(0x13c)][_0x551bb0(0x24c)];_0x1cfcad===_univerjs_pro_mcp[_0x551bb0(0x13c)][_0x551bb0(0x19f)]||_univerjs_pro_mcp['MCPConnectionStatus'][_0x551bb0(0x109)];const _0x4bdbad=_0x33e1cd['t'](mapStatusToI18NKey(_0x1cfcad,_0x2674b2)),_0x13ceaa=getTooltipText(_0x1cfcad,_0x2674b2,_0x33e1cd,showClickable),_0x40fa10=getStatusColor(_0x1cfcad),_0x4522ac=_0x203d77?(0x0,react_jsx_runtime[_0x551bb0(0x1ff)])(_univerjs_icons[_0x551bb0(0x174)],{}):(0x0,react_jsx_runtime['jsx'])(_univerjs_icons[_0x551bb0(0x142)],{}),_0x2b2e3a=(0x0,react[_0x551bb0(0x1f4)])(()=>{if(showClickable&&_0x548f21)_0x548f21();},[showClickable,_0x548f21]);function _0x1c898f(){const _0x1c40dc=_0x551bb0;return(0x0,react_jsx_runtime[_0x1c40dc(0x231)])('div',{'className':(0x0,_univerjs_design['clsx'])(_0x1c40dc(0x1c2),showClickable&&_0x548f21&&_0x1c40dc(0x233)),'role':'button','onClick':showClickable&&_0x548f21?_0x2b2e3a:void 0x0,'children':[(0x0,react_jsx_runtime[_0x1c40dc(0x1ff)])('div',{'className':(0x0,_univerjs_design[_0x1c40dc(0x23c)])(_0x1c40dc(0x1b4),_0x40fa10),'children':_0x4522ac}),(0x0,react_jsx_runtime[_0x1c40dc(0x1ff)])('div',{'className':_0x1c40dc(0x1bf),'children':_0x4bdbad})]});}return(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x551bb0(0x167)],{'title':_0x13ceaa,'placement':'bottom','children':_0x1c898f()});}let MCPConnectionUIController=class MCPConnectionUIController extends _univerjs_core[_0x586328(0x19a)]{constructor(_0x335760,_0x379404,_0x427153,_0x4027a1){const _0x5a52aa=_0x586328;super(),this['_injector']=_0x335760,this[_0x5a52aa(0x149)]=_0x379404,this['_uiPartsService']=_0x427153,this['_configService']=_0x4027a1,this[_0x5a52aa(0x1a3)](),this[_0x5a52aa(0x10c)]();}[_0x586328(0x1a3)](){const _0x31dac1=_0x586328,_0x1d4bbc=this[_0x31dac1(0x229)][_0x31dac1(0x187)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x1d4bbc===null||_0x1d4bbc===void 0x0?void 0x0:_0x1d4bbc[_0x31dac1(0x17e)])this[_0x31dac1(0x149)][_0x31dac1(0x20f)]=![];}['_initStatusComponent'](){const _0xb42e73=_0x586328,_0x1ce90c=this[_0xb42e73(0x229)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if((_0x1ce90c===null||_0x1ce90c===void 0x0?void 0x0:_0x1ce90c[_0xb42e73(0x241)])!==![])this[_0xb42e73(0x152)](this[_0xb42e73(0x130)][_0xb42e73(0x170)](_univerjs_ui[_0xb42e73(0x217)][_0xb42e73(0x17c)],()=>{const _0x10c8d5=_0xb42e73;var _0x4049f7;return(0x0,_univerjs_ui['connectInjector'])(passProps({'status$':this[_0x10c8d5(0x149)][_0x10c8d5(0x183)],'error$':this[_0x10c8d5(0x149)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x4049f7=_0x1ce90c===null||_0x1ce90c===void 0x0?void 0x0:_0x1ce90c['showDeveloperTools'])!==null&&_0x4049f7!==void 0x0?_0x4049f7:![]}),this[_0x10c8d5(0x136)]);}));}['_handleConfigure'](){const _0x1b4e0c=_0x586328;this['_injector'][_0x1b4e0c(0x1d0)](MCPConfigUIController)[_0x1b4e0c(0x24d)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x586328(0x253)])),__decorateParam(0x1,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_pro_mcp[_0x586328(0x156)])),__decorateParam(0x2,_univerjs_ui[_0x586328(0x23e)]),__decorateParam(0x3,_univerjs_core[_0x586328(0x1ef)])],MCPConnectionUIController);function _0x53f3(_0x1892cf,_0x2b0d38){_0x1892cf=_0x1892cf-0x104;const _0x37121b=_0x3712();let _0x53f3a2=_0x37121b[_0x1892cf];return _0x53f3a2;}function passProps(_0x1648c2){const {status$:_0x50aa1e,error$:_0x55fc2d,onConfigure:_0x550f2d,showClickable:_0x25ac2c}=_0x1648c2;return function _0x4a757b(){return(0x0,react_jsx_runtime['jsx'])(MCPStatusDisplay,{'status$':_0x50aa1e,'error$':_0x55fc2d,'onConfigure':_0x550f2d,'showClickable':_0x25ac2c});};}function MCPConfigMenuItemFactory(_0x4e103c){const _0x1efee2=_0x586328;return{'id':OpenMCPConfigPanelCommand['id'],'type':_univerjs_ui[_0x1efee2(0x214)]['BUTTON'],'icon':_0x1efee2(0x10a),'title':'mcpConfig.title','tooltip':_0x1efee2(0x195)};}const menuSchema={[_univerjs_ui[_0x586328(0x22c)][_0x586328(0x165)]]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};let MCPUIMenuController=class MCPUIMenuController extends _univerjs_core[_0x586328(0x19a)]{constructor(_0x27bfde,_0x25b0c3){const _0x285a96=_0x586328;super(),this['_commandService']=_0x27bfde,this['_menuManagerService']=_0x25b0c3,this[_0x285a96(0x185)](),this[_0x285a96(0x1dd)]();}[_0x586328(0x185)](){[OpenMCPConfigPanelCommand]['forEach'](_0x43b6e0=>{const _0x507ff4=_0x53f3;this[_0x507ff4(0x152)](this[_0x507ff4(0x168)]['registerCommand'](_0x43b6e0));});}[_0x586328(0x1dd)](){const _0x24c81a=_0x586328;this['_menuManagerService'][_0x24c81a(0x107)](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,_univerjs_core[_0x586328(0x188)]),__decorateParam(0x1,_univerjs_ui[_0x586328(0x117)])],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':_0x586328(0x126),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x586328(0x108),'retrying':_0x586328(0x1cf),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x586328(0x1e9),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x586328(0x14e),'maxRetriesExceeded':_0x586328(0x230),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x586328(0x14b)},'mcpConfig':{'title':_0x586328(0x131),'description':_0x586328(0x13f),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x586328(0x111),'enableAuth':_0x586328(0x1f1),'enableAuthHint':_0x586328(0x182),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x586328(0x15b),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x586328(0x191),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x586328(0x138),'sessionId':_0x586328(0x1cc),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x586328(0x1f3),'configParameters':_0x586328(0x124),'maxRetries':_0x586328(0x23f),'save':_0x586328(0x1c5),'saving':_0x586328(0x225),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x586328(0x163),'configSaved':_0x586328(0x21a),'configError':_0x586328(0x1ee),'apiApplyInfo':{'title':_0x586328(0x1f9),'description':_0x586328(0x1d1),'univerAiLabel':_0x586328(0x21f),'getStarted':_0x586328(0x189)},'validation':{'apiKeyRequired':_0x586328(0x12f),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x586328(0x157)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x586328(0x146),'connected':_0x586328(0x155),'failed':'Connection\x20Failed','retrying':_0x586328(0x1b9)},'connectionError':{'unauthorized':_0x586328(0x153),'sessionOccupied':_0x586328(0x151),'networkError':_0x586328(0x22b),'maxRetriesExceeded':_0x586328(0x198)}}},locale$1={'mcpStatus':{'disconnected':_0x586328(0x137),'connecting':_0x586328(0x197),'connected':_0x586328(0x17b),'failed':_0x586328(0x21c),'retrying':'MCP\x20重连中...','unknown':'MCP\x20状态未知','unauthorized':_0x586328(0x141),'sessionOccupied':_0x586328(0x139),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x586328(0x20a),'clickToConnect':_0x586328(0x237),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x586328(0x1b1),'description':_0x586328(0x1fc),'apiKey':_0x586328(0x1fa),'apiKeyPlaceholder':_0x586328(0x1e5),'apiKeyHint':_0x586328(0x196),'enableAuth':_0x586328(0x192),'enableAuthHint':_0x586328(0x1e2),'connectionInfo':_0x586328(0x177),'mcpClientConfig':_0x586328(0x177),'configInstructions':_0x586328(0x208),'configStepTitle':_0x586328(0x1ab),'configStep1':_0x586328(0x24a),'configStep2':_0x586328(0x18b),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':'会话ID','sessionIdDescription':_0x586328(0x24f),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x586328(0x1f7),'maxRetries':_0x586328(0x210),'save':'保存配置','saving':_0x586328(0x133),'note1':_0x586328(0x147),'note2':_0x586328(0x1b0),'configSaved':_0x586328(0x1ba),'configError':_0x586328(0x13a),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x586328(0x218),'getStarted':_0x586328(0x1f8)},'validation':{'apiKeyRequired':_0x586328(0x14d),'apiKeyTooShort':_0x586328(0x20b),'invalidConfig':_0x586328(0x202),'invalidApiKey':_0x586328(0x17d)},'connectionStatus':{'disconnected':_0x586328(0x18e),'connecting':_0x586328(0x19d),'connected':_0x586328(0x1bc),'failed':_0x586328(0x1a2),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x586328(0x1a5),'sessionOccupied':_0x586328(0x15f),'networkError':_0x586328(0x226),'maxRetriesExceeded':_0x586328(0x180)}}};var name='@univerjs-pro/mcp-ui',version=_0x586328(0x12c);let UniverMCPUIPlugin=class UniverMCPUIPlugin extends _univerjs_core[_0x586328(0x178)]{constructor(_0x3e06c0=defaultPluginConfig,_0x33458d,_0x5fad18,_0x5a066e,_0x502d12,_0x321c04){const _0x4940bc=_0x586328;super(),this[_0x4940bc(0x1eb)]=_0x3e06c0,this['_injector']=_0x33458d,this[_0x4940bc(0x229)]=_0x5fad18,this[_0x4940bc(0x130)]=_0x5a066e,this[_0x4940bc(0x24b)]=_0x502d12,this[_0x4940bc(0x1b7)]=_0x321c04;const {..._0x1c1931}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this['_config']);this[_0x4940bc(0x229)]['setConfig'](MCP_UI_PLUGIN_CONFIG_KEY,_0x1c1931);}async[_0x586328(0x236)](){const _0x4f5eea=_0x586328,_0x4685c1=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this[_0x4f5eea(0x136)][_0x4f5eea(0x1d8)](_univerjs_network[_0x4f5eea(0x179)]))_0x4685c1['push']([_univerjs_network[_0x4f5eea(0x179)],{'useClass':_univerjs_network[_0x4f5eea(0x158)]}]);_0x4685c1[_0x4f5eea(0x12a)](_0x41d257=>this[_0x4f5eea(0x136)][_0x4f5eea(0x228)](_0x41d257)),this[_0x4f5eea(0x136)]['get'](MCPConnectionUIController),this[_0x4f5eea(0x136)]['get'](MCPConfigUIController),this[_0x4f5eea(0x136)]['get'](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0x586328(0x1b2),'MCP_UI_PLUGIN'),_defineProperty(UniverMCPUIPlugin,_0x586328(0x23a),name),_defineProperty(UniverMCPUIPlugin,'version',version),UniverMCPUIPlugin=__decorate([(0x0,_univerjs_core[_0x586328(0x173)])(_univerjs_pro_mcp[_0x586328(0x1ca)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_core[_0x586328(0x253)])),__decorateParam(0x2,_univerjs_core['IConfigService']),__decorateParam(0x3,_univerjs_ui[_0x586328(0x23e)]),__decorateParam(0x4,_univerjs_core['ILocalStorageService']),__decorateParam(0x5,(0x0,_univerjs_core[_0x586328(0x234)])(_univerjs_core['LocaleService']))],UniverMCPUIPlugin),exports['MCPConfigPanel']=MCPConfigPanel,Object[_0x586328(0x14c)](exports,_0x586328(0x22e),{'enumerable':!![],'get':function(){return MCPConfigUIController;}}),Object[_0x586328(0x14c)](exports,_0x586328(0x254),{'enumerable':!![],'get':function(){return MCPConnectionUIController;}}),exports[_0x586328(0x232)]=MCPStatusDisplay,Object[_0x586328(0x14c)](exports,_0x586328(0x240),{'enumerable':!![],'get':function(){return MCPUIMenuController;}}),exports[_0x586328(0x1d5)]=OpenMCPConfigPanelCommand,Object[_0x586328(0x14c)](exports,_0x586328(0x205),{'enumerable':!![],'get':function(){return UniverMCPUIPlugin;}}),exports[_0x586328(0x203)]=locale,exports[_0x586328(0x13d)]=locale$1;
@@ -1 +1 @@
1
- const _0xd9bbb=_0x5a2b;(function(_0x2e5de5,_0x5c5580){const _0x2a1d4f=_0x5a2b,_0x1a5bbe=_0x2e5de5();while(!![]){try{const _0x9abfb3=parseInt(_0x2a1d4f(0x151))/0x1*(-parseInt(_0x2a1d4f(0x138))/0x2)+-parseInt(_0x2a1d4f(0x12b))/0x3+-parseInt(_0x2a1d4f(0x149))/0x4*(parseInt(_0x2a1d4f(0x13b))/0x5)+parseInt(_0x2a1d4f(0x14a))/0x6*(-parseInt(_0x2a1d4f(0x133))/0x7)+parseInt(_0x2a1d4f(0x13c))/0x8*(-parseInt(_0x2a1d4f(0x146))/0x9)+-parseInt(_0x2a1d4f(0x14c))/0xa+parseInt(_0x2a1d4f(0x156))/0xb;if(_0x9abfb3===_0x5c5580)break;else _0x1a5bbe['push'](_0x1a5bbe['shift']());}catch(_0x45024f){_0x1a5bbe['push'](_0x1a5bbe['shift']());}}}(_0x112e,0x6acaa));const locale$1={'mcpStatus':{'disconnected':_0xd9bbb(0x152),'connecting':_0xd9bbb(0x136),'connected':'MCP\x20Connected','failed':_0xd9bbb(0x12c),'retrying':_0xd9bbb(0x157),'unknown':_0xd9bbb(0x158),'unauthorized':_0xd9bbb(0x13a),'sessionOccupied':_0xd9bbb(0x13d),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xd9bbb(0x12f),'clickToConnect':_0xd9bbb(0x143),'clickToConfigure':_0xd9bbb(0x12e)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xd9bbb(0x131),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xd9bbb(0x14b),'apiKeyHint':_0xd9bbb(0x132),'enableAuth':_0xd9bbb(0x140),'enableAuthHint':_0xd9bbb(0x14f),'connectionInfo':_0xd9bbb(0x12d),'mcpClientConfig':_0xd9bbb(0x12d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xd9bbb(0x155),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0xd9bbb(0x135),'authorizationDescription':_0xd9bbb(0x150),'configParameters':_0xd9bbb(0x130),'maxRetries':_0xd9bbb(0x154),'save':_0xd9bbb(0x134),'saving':'Saving...','note1':_0xd9bbb(0x13f),'note2':_0xd9bbb(0x145),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xd9bbb(0x141),'apiApplyInfo':{'title':_0xd9bbb(0x14e),'description':_0xd9bbb(0x153),'univerAiLabel':_0xd9bbb(0x137),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xd9bbb(0x14d),'invalidConfig':_0xd9bbb(0x148),'invalidApiKey':_0xd9bbb(0x139)},'connectionStatus':{'disconnected':_0xd9bbb(0x142),'connecting':'Connecting...','connected':_0xd9bbb(0x144),'failed':'Connection\x20Failed','retrying':_0xd9bbb(0x12a)},'connectionError':{'unauthorized':_0xd9bbb(0x13e),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xd9bbb(0x129),'maxRetriesExceeded':_0xd9bbb(0x147)}}},locale=locale$1;function _0x112e(){const _0x3a439c=['Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','39669TYcBkD','Save\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Connecting...','Univer\x20AI\x20Console','2oJjkJI','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Unauthorized','293050wSnRWR','8RuvyGw','MCP:\x20Session\x20ID\x20Occupied','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Enable\x20Authentication','Failed\x20to\x20save\x20configuration','Disconnected','Click\x20to\x20connect\x20MCP','Connected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','7753959uBBngH','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','28kelTJk','582QiYwEn','Enter\x20your\x20API\x20key','100830gxJHuJ','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20with\x20Bearer\x20prefix.','678367TQpGyS','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','Configuration\x20Steps:','38042246EKJLiE','MCP\x20Retrying...','MCP\x20Unknown\x20Status','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Retrying...','1532994oFIxSl','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Click\x20to\x20configure\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded'];_0x112e=function(){return _0x3a439c;};return _0x112e();}function _0x5a2b(_0x3b1193,_0xc708c5){_0x3b1193=_0x3b1193-0x129;const _0x112e30=_0x112e();let _0x5a2b91=_0x112e30[_0x3b1193];return _0x5a2b91;}module['exports']=locale;
1
+ const _0x2be950=_0x5c87;function _0x5c87(_0x435414,_0x53f9d4){_0x435414=_0x435414-0x82;const _0x53f9d3=_0x53f9();let _0x5c87d8=_0x53f9d3[_0x435414];return _0x5c87d8;}(function(_0x5c6043,_0x55ca1a){const _0x190108=_0x5c87,_0xccff08=_0x5c6043();while(!![]){try{const _0x125b88=-parseInt(_0x190108(0xa7))/0x1+parseInt(_0x190108(0x8c))/0x2*(-parseInt(_0x190108(0xac))/0x3)+-parseInt(_0x190108(0x85))/0x4+parseInt(_0x190108(0x93))/0x5+-parseInt(_0x190108(0xab))/0x6*(parseInt(_0x190108(0xb0))/0x7)+-parseInt(_0x190108(0x98))/0x8*(parseInt(_0x190108(0xaa))/0x9)+parseInt(_0x190108(0x84))/0xa;if(_0x125b88===_0x55ca1a)break;else _0xccff08['push'](_0xccff08['shift']());}catch(_0x3d538b){_0xccff08['push'](_0xccff08['shift']());}}}(_0x53f9,0x6303e));function _0x53f9(){const _0x39eb5c=['522IUcsHb','2844DkgyfF','3WwEclU','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20Authentication','Click\x20to\x20connect\x20MCP','7721VUyALr','Session\x20ID','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','exports','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','MCP\x20Connected','Enter\x20your\x20API\x20key','26584960xFatTi','3184372bQfzIT','Click\x20to\x20configure\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Retrying...','Connected','1241746DwtOKn','Univer\x20AI\x20Console','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Configuration\x20Parameters:','Configuration\x20Steps:','MCP\x20Disconnected','Disconnected','1103015vhmjPH','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','52208VAqrFx','MCP\x20Configuration','Save\x20Configuration','Failed\x20to\x20save\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20saved\x20successfully','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Invalid\x20configuration','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Get\x20your\x20API\x20key\x20in\x20seconds','What\x20is\x20API\x20Key?','Saving...','Max\x20Retries','155237yFMfVf','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Unauthorized'];_0x53f9=function(){return _0x39eb5c;};return _0x53f9();}const locale$1={'mcpStatus':{'disconnected':_0x2be950(0x91),'connecting':'MCP\x20Connecting...','connected':_0x2be950(0x82),'failed':'MCP\x20Connection\x20Failed','retrying':_0x2be950(0x8a),'unknown':_0x2be950(0x95),'unauthorized':_0x2be950(0xa9),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2be950(0xb8),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2be950(0xaf),'clickToConfigure':_0x2be950(0x86)},'mcpConfig':{'title':_0x2be950(0x99),'description':_0x2be950(0xb5),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x2be950(0x83),'apiKeyHint':_0x2be950(0xad),'enableAuth':_0x2be950(0xae),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x2be950(0xb4),'mcpClientConfig':_0x2be950(0xb4),'configInstructions':_0x2be950(0x8e),'configStepTitle':_0x2be950(0x90),'configStep1':_0x2be950(0x9e),'configStep2':_0x2be950(0xa0),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2be950(0xb1),'sessionIdDescription':_0x2be950(0x89),'authorizationDescription':_0x2be950(0x97),'configParameters':_0x2be950(0x8f),'maxRetries':_0x2be950(0xa6),'save':_0x2be950(0x9a),'saving':_0x2be950(0xa5),'note1':_0x2be950(0x9c),'note2':_0x2be950(0x94),'configSaved':_0x2be950(0x9f),'configError':_0x2be950(0x9b),'apiApplyInfo':{'title':_0x2be950(0xa4),'description':_0x2be950(0xa2),'univerAiLabel':_0x2be950(0x8d),'getStarted':_0x2be950(0xa3)},'validation':{'apiKeyRequired':_0x2be950(0xb7),'apiKeyTooShort':_0x2be950(0x9d),'invalidConfig':_0x2be950(0xa1),'invalidApiKey':_0x2be950(0xa8)},'connectionStatus':{'disconnected':_0x2be950(0x92),'connecting':_0x2be950(0x88),'connected':_0x2be950(0x8b),'failed':'Connection\x20Failed','retrying':_0x2be950(0x96)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2be950(0xb3),'networkError':_0x2be950(0x87),'maxRetriesExceeded':_0x2be950(0xb2)}}},locale=locale$1;module[_0x2be950(0xb6)]=locale;
@@ -1 +1 @@
1
- const _0x232450=_0x5af7;(function(_0x3d2429,_0x453373){const _0xd30941=_0x5af7,_0x43d7bc=_0x3d2429();while(!![]){try{const _0x548718=parseInt(_0xd30941(0x11b))/0x1+parseInt(_0xd30941(0x137))/0x2+parseInt(_0xd30941(0x11c))/0x3*(-parseInt(_0xd30941(0x123))/0x4)+parseInt(_0xd30941(0x130))/0x5+parseInt(_0xd30941(0x148))/0x6*(parseInt(_0xd30941(0x126))/0x7)+-parseInt(_0xd30941(0x144))/0x8+-parseInt(_0xd30941(0x13f))/0x9*(-parseInt(_0xd30941(0x138))/0xa);if(_0x548718===_0x453373)break;else _0x43d7bc['push'](_0x43d7bc['shift']());}catch(_0x2167af){_0x43d7bc['push'](_0x43d7bc['shift']());}}}(_0x19cf,0x6eff5));function _0x19cf(){const _0x3d4348=['4379215qVhCUS','Copy\x20the\x20JSON\x20configuration\x20below','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Network\x20Error','What\x20is\x20API\x20Key?','Enable\x20Authentication','621136lexavj','3816350ETURct','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','Connection\x20Failed','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','9sBxMzE','MCP\x20Client\x20Configuration','Configuration\x20Steps:','Session\x20ID','Configuration\x20saved\x20successfully','6978216HpyJuV','MCP\x20Unknown\x20Status','Get\x20your\x20API\x20key\x20in\x20seconds','Enter\x20your\x20API\x20key','240qULKfi','API\x20key\x20is\x20required','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Enable\x20authentication\x20for\x20secure\x20connections','Connected','85670lWoaoP','1632822JxllLi','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Saving...','Save\x20Configuration','Univer\x20AI\x20Console','MCP\x20Connected','Max\x20Retries','4qgEEmP','MCP\x20Retrying...','Invalid\x20configuration','38059evIrwQ','MCP:\x20Unauthorized','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Retrying...','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Connection\x20Failed','Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage'];_0x19cf=function(){return _0x3d4348;};return _0x19cf();}function _0x5af7(_0x16ddd9,_0x19bb41){_0x16ddd9=_0x16ddd9-0x11a;const _0x19cf6e=_0x19cf();let _0x5af747=_0x19cf6e[_0x16ddd9];return _0x5af747;}const locale={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x232450(0x12b),'connected':_0x232450(0x121),'failed':_0x232450(0x12d),'retrying':_0x232450(0x124),'unknown':_0x232450(0x145),'unauthorized':_0x232450(0x127),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x232450(0x134),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x232450(0x13d),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x232450(0x13e),'description':_0x232450(0x12c),'apiKey':_0x232450(0x13a),'apiKeyPlaceholder':_0x232450(0x147),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x232450(0x136),'enableAuthHint':_0x232450(0x14b),'connectionInfo':_0x232450(0x140),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x232450(0x14a),'configStepTitle':_0x232450(0x141),'configStep1':_0x232450(0x131),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x232450(0x11d),'sessionId':_0x232450(0x142),'sessionIdDescription':_0x232450(0x132),'authorizationDescription':_0x232450(0x139),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x232450(0x122),'save':_0x232450(0x11f),'saving':_0x232450(0x11e),'note1':_0x232450(0x133),'note2':_0x232450(0x12f),'configSaved':_0x232450(0x143),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x232450(0x135),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':_0x232450(0x120),'getStarted':_0x232450(0x146)},'validation':{'apiKeyRequired':_0x232450(0x149),'apiKeyTooShort':_0x232450(0x13c),'invalidConfig':_0x232450(0x125),'invalidApiKey':_0x232450(0x129)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x232450(0x12e),'connected':_0x232450(0x11a),'failed':_0x232450(0x13b),'retrying':_0x232450(0x12a)},'connectionError':{'unauthorized':_0x232450(0x128),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module['exports']=locale;
1
+ const _0x50e1e0=_0x4ba8;(function(_0x2b45b6,_0x3d7e80){const _0x301bb8=_0x4ba8,_0x18c4ed=_0x2b45b6();while(!![]){try{const _0x2c2b56=parseInt(_0x301bb8(0x19c))/0x1*(-parseInt(_0x301bb8(0x192))/0x2)+-parseInt(_0x301bb8(0x18e))/0x3+-parseInt(_0x301bb8(0x1b2))/0x4*(parseInt(_0x301bb8(0x1aa))/0x5)+parseInt(_0x301bb8(0x197))/0x6*(-parseInt(_0x301bb8(0x193))/0x7)+-parseInt(_0x301bb8(0x198))/0x8+-parseInt(_0x301bb8(0x1a1))/0x9*(-parseInt(_0x301bb8(0x196))/0xa)+parseInt(_0x301bb8(0x18a))/0xb*(parseInt(_0x301bb8(0x199))/0xc);if(_0x2c2b56===_0x3d7e80)break;else _0x18c4ed['push'](_0x18c4ed['shift']());}catch(_0x24377f){_0x18c4ed['push'](_0x18c4ed['shift']());}}}(_0x5080,0xbfe77));function _0x5080(){const _0x2d82c1=['1OnWpWB','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session\x20ID','9aHzEzg','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Configuration','Configuration\x20Steps:','Max\x20Retries','MCP:\x20Network\x20Error','Save\x20Configuration','MCP\x20Disconnected','Saving...','4438055xjXWkD','Invalid\x20configuration','Click\x20to\x20connect\x20MCP','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','4fkzvMj','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Enter\x20your\x20API\x20key','MCP:\x20Unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','Connected','Click\x20to\x20configure\x20MCP','429gEazcm','Retrying...','Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','4178277isXudV','Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','Failed\x20to\x20save\x20configuration','3129638XKiyZN','7090804YOekiH','exports','MCP\x20Connection\x20Failed','10018010nMLYSo','6nWODXN','9832720ttLqOC','1806612TWhrkd','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Copy\x20the\x20JSON\x20configuration\x20below'];_0x5080=function(){return _0x2d82c1;};return _0x5080();}const locale={'mcpStatus':{'disconnected':_0x50e1e0(0x1a8),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x50e1e0(0x195),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x50e1e0(0x1b6),'sessionOccupied':_0x50e1e0(0x1ae),'networkError':_0x50e1e0(0x1a6),'maxRetriesExceeded':_0x50e1e0(0x190),'clickToConnect':_0x50e1e0(0x1ac),'clickToConfigure':_0x50e1e0(0x189)},'mcpConfig':{'title':_0x50e1e0(0x1a3),'description':_0x50e1e0(0x19e),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x50e1e0(0x1b5),'apiKeyHint':_0x50e1e0(0x19f),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x50e1e0(0x19d),'connectionInfo':_0x50e1e0(0x1af),'mcpClientConfig':_0x50e1e0(0x1af),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x50e1e0(0x1a4),'configStep1':_0x50e1e0(0x19b),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x50e1e0(0x1a0),'sessionIdDescription':_0x50e1e0(0x19a),'authorizationDescription':_0x50e1e0(0x1b7),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x50e1e0(0x1a5),'save':_0x50e1e0(0x1a7),'saving':_0x50e1e0(0x1a9),'note1':_0x50e1e0(0x1a2),'note2':_0x50e1e0(0x1b4),'configSaved':_0x50e1e0(0x1b3),'configError':_0x50e1e0(0x191),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x50e1e0(0x1b1),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x50e1e0(0x1b0),'invalidConfig':_0x50e1e0(0x1ab),'invalidApiKey':_0x50e1e0(0x1ad)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x50e1e0(0x18f),'connected':_0x50e1e0(0x188),'failed':_0x50e1e0(0x18c),'retrying':_0x50e1e0(0x18b)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x50e1e0(0x18d),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};function _0x4ba8(_0x4d3e5b,_0x25bbb2){_0x4d3e5b=_0x4d3e5b-0x188;const _0x5080cd=_0x5080();let _0x4ba8f8=_0x5080cd[_0x4d3e5b];return _0x4ba8f8;}module[_0x50e1e0(0x194)]=locale;
@@ -1 +1 @@
1
- const _0x2c4af0=_0x20c4;(function(_0x43efbb,_0x248723){const _0x3629da=_0x20c4,_0x4d54d8=_0x43efbb();while(!![]){try{const _0x15448a=-parseInt(_0x3629da(0x108))/0x1+parseInt(_0x3629da(0x109))/0x2+-parseInt(_0x3629da(0xe5))/0x3*(-parseInt(_0x3629da(0xf6))/0x4)+-parseInt(_0x3629da(0xd8))/0x5*(parseInt(_0x3629da(0xe1))/0x6)+-parseInt(_0x3629da(0xdd))/0x7+-parseInt(_0x3629da(0xef))/0x8+-parseInt(_0x3629da(0xf3))/0x9*(-parseInt(_0x3629da(0xd9))/0xa);if(_0x15448a===_0x248723)break;else _0x4d54d8['push'](_0x4d54d8['shift']());}catch(_0x24b12f){_0x4d54d8['push'](_0x4d54d8['shift']());}}}(_0x3822,0xa5195));const locale$1={'mcpStatus':{'disconnected':_0x2c4af0(0xfa),'connecting':_0x2c4af0(0xec),'connected':_0x2c4af0(0xfe),'failed':_0x2c4af0(0x10a),'retrying':_0x2c4af0(0xe3),'unknown':_0x2c4af0(0xeb),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x2c4af0(0x101),'networkError':_0x2c4af0(0xe6),'maxRetriesExceeded':_0x2c4af0(0xdc),'clickToConnect':_0x2c4af0(0xfb),'clickToConfigure':_0x2c4af0(0xdf)},'mcpConfig':{'title':_0x2c4af0(0xf7),'description':_0x2c4af0(0x10e),'apiKey':_0x2c4af0(0x104),'apiKeyPlaceholder':_0x2c4af0(0x102),'apiKeyHint':_0x2c4af0(0xde),'enableAuth':_0x2c4af0(0xf9),'enableAuthHint':_0x2c4af0(0xdb),'connectionInfo':_0x2c4af0(0xe4),'mcpClientConfig':_0x2c4af0(0xe4),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x2c4af0(0x10b),'sessionId':_0x2c4af0(0xea),'sessionIdDescription':_0x2c4af0(0xf8),'authorizationDescription':_0x2c4af0(0xff),'configParameters':_0x2c4af0(0xf1),'maxRetries':_0x2c4af0(0x105),'save':_0x2c4af0(0x106),'saving':_0x2c4af0(0xee),'note1':_0x2c4af0(0xe8),'note2':_0x2c4af0(0x107),'configSaved':_0x2c4af0(0xf2),'configError':_0x2c4af0(0x10c),'apiApplyInfo':{'title':_0x2c4af0(0x103),'description':_0x2c4af0(0xe9),'univerAiLabel':_0x2c4af0(0xd7),'getStarted':_0x2c4af0(0xfc)},'validation':{'apiKeyRequired':_0x2c4af0(0xda),'apiKeyTooShort':_0x2c4af0(0x100),'invalidConfig':_0x2c4af0(0xf4),'invalidApiKey':_0x2c4af0(0xed)},'connectionStatus':{'disconnected':_0x2c4af0(0xf5),'connecting':_0x2c4af0(0xfd),'connected':_0x2c4af0(0x10d),'failed':'Connection\x20Failed','retrying':_0x2c4af0(0xf0)},'connectionError':{'unauthorized':_0x2c4af0(0xe7),'sessionOccupied':_0x2c4af0(0xe2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale=locale$1;function _0x3822(){const _0x20a9c7=['Retrying...','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','877356lyCUeN','Invalid\x20configuration','Disconnected','4cGfKTI','MCP\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20Authentication','MCP\x20Disconnected','Click\x20to\x20connect\x20MCP','Get\x20your\x20API\x20key\x20in\x20seconds','Connecting...','MCP\x20Connected','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','API\x20Key','Max\x20Retries','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','630026jxLJwH','1100512BlLqhE','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Failed\x20to\x20save\x20configuration','Connected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','5ybuQcE','20OxCkWu','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Max\x20Retries\x20Exceeded','1807729GfLHxp','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','exports','1066542CVGHHR','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','MCP\x20Client\x20Configuration','3497421vjtIKl','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','MCP\x20Unknown\x20Status','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Saving...','1350048zPWhon'];_0x3822=function(){return _0x20a9c7;};return _0x3822();}function _0x20c4(_0x17c3ff,_0x28ae6d){_0x17c3ff=_0x17c3ff-0xd7;const _0x38226b=_0x3822();let _0x20c4a1=_0x38226b[_0x17c3ff];return _0x20c4a1;}module[_0x2c4af0(0xe0)]=locale;
1
+ function _0x34d5(_0x3de19f,_0x42cab2){_0x3de19f=_0x3de19f-0x88;const _0x1e5e53=_0x1e5e();let _0x34d521=_0x1e5e53[_0x3de19f];return _0x34d521;}const _0x3b2a26=_0x34d5;(function(_0x5382fd,_0x3d6a59){const _0x3bad21=_0x34d5,_0x3df5f5=_0x5382fd();while(!![]){try{const _0x87a3a3=-parseInt(_0x3bad21(0xa3))/0x1*(parseInt(_0x3bad21(0x97))/0x2)+-parseInt(_0x3bad21(0xbc))/0x3*(-parseInt(_0x3bad21(0xa6))/0x4)+-parseInt(_0x3bad21(0xb9))/0x5+-parseInt(_0x3bad21(0xae))/0x6*(parseInt(_0x3bad21(0x93))/0x7)+parseInt(_0x3bad21(0x8c))/0x8*(parseInt(_0x3bad21(0x98))/0x9)+-parseInt(_0x3bad21(0xa1))/0xa+parseInt(_0x3bad21(0x90))/0xb;if(_0x87a3a3===_0x3d6a59)break;else _0x3df5f5['push'](_0x3df5f5['shift']());}catch(_0x441bf7){_0x3df5f5['push'](_0x3df5f5['shift']());}}}(_0x1e5e,0x9f094));const locale$1={'mcpStatus':{'disconnected':_0x3b2a26(0x8f),'connecting':_0x3b2a26(0xa4),'connected':_0x3b2a26(0xb5),'failed':_0x3b2a26(0xb6),'retrying':_0x3b2a26(0xbf),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3b2a26(0x9c),'sessionOccupied':_0x3b2a26(0x8e),'networkError':_0x3b2a26(0x92),'maxRetriesExceeded':_0x3b2a26(0x91),'clickToConnect':_0x3b2a26(0x89),'clickToConfigure':_0x3b2a26(0xaa)},'mcpConfig':{'title':_0x3b2a26(0x96),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x3b2a26(0xa2),'apiKeyHint':_0x3b2a26(0x94),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x3b2a26(0xb1),'connectionInfo':_0x3b2a26(0x9e),'mcpClientConfig':_0x3b2a26(0x9e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3b2a26(0x8d),'configStep1':_0x3b2a26(0xa5),'configStep2':_0x3b2a26(0x9f),'configStep3':_0x3b2a26(0x9b),'sessionId':_0x3b2a26(0xa8),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x3b2a26(0xb0),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x3b2a26(0xaf),'save':_0x3b2a26(0xad),'saving':_0x3b2a26(0xac),'note1':_0x3b2a26(0x9a),'note2':_0x3b2a26(0xba),'configSaved':_0x3b2a26(0xb2),'configError':_0x3b2a26(0xa0),'apiApplyInfo':{'title':_0x3b2a26(0x99),'description':_0x3b2a26(0x88),'univerAiLabel':_0x3b2a26(0x9d),'getStarted':_0x3b2a26(0xb4)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3b2a26(0xab),'invalidConfig':_0x3b2a26(0x8a),'invalidApiKey':_0x3b2a26(0x95)},'connectionStatus':{'disconnected':_0x3b2a26(0xa7),'connecting':_0x3b2a26(0xb3),'connected':_0x3b2a26(0xbb),'failed':_0x3b2a26(0xbe),'retrying':_0x3b2a26(0xb8)},'connectionError':{'unauthorized':_0x3b2a26(0xa9),'sessionOccupied':_0x3b2a26(0xb7),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x3b2a26(0x8b)}}},locale=locale$1;module[_0x3b2a26(0xbd)]=locale;function _0x1e5e(){const _0x3cd9c9=['MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','50056WTkZXo','Disconnected','Session\x20ID','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','Save\x20Configuration','156shGOAm','Max\x20Retries','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20saved\x20successfully','Connecting...','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','MCP\x20Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Retrying...','3882360jpjjiQ','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connected','3lwpytA','exports','Connection\x20Failed','MCP\x20Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20connect\x20MCP','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','8PEzkIg','Configuration\x20Steps:','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Disconnected','32537747kWECvz','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','100408JYwRCJ','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Configuration','27026TNgbuC','2191167oGVcKj','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Unauthorized','Univer\x20AI\x20Console','MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration','7780150ZRZaMm','Enter\x20your\x20API\x20key','47HvXlNB'];_0x1e5e=function(){return _0x3cd9c9;};return _0x1e5e();}
@@ -1 +1 @@
1
- function _0x2afa(_0x2a6e3,_0x17e733){_0x2a6e3=_0x2a6e3-0x182;const _0x30bde1=_0x30bd();let _0x2afa88=_0x30bde1[_0x2a6e3];return _0x2afa88;}const _0x20d243=_0x2afa;(function(_0x591972,_0x496485){const _0x4c8a3e=_0x2afa,_0x27bc6d=_0x591972();while(!![]){try{const _0x351a6c=-parseInt(_0x4c8a3e(0x1a3))/0x1+-parseInt(_0x4c8a3e(0x19b))/0x2+-parseInt(_0x4c8a3e(0x1a8))/0x3+-parseInt(_0x4c8a3e(0x1ab))/0x4+parseInt(_0x4c8a3e(0x191))/0x5*(parseInt(_0x4c8a3e(0x1a0))/0x6)+parseInt(_0x4c8a3e(0x185))/0x7*(parseInt(_0x4c8a3e(0x188))/0x8)+parseInt(_0x4c8a3e(0x1ac))/0x9;if(_0x351a6c===_0x496485)break;else _0x27bc6d['push'](_0x27bc6d['shift']());}catch(_0xed5a2f){_0x27bc6d['push'](_0x27bc6d['shift']());}}}(_0x30bd,0x80ca6));const locale$1={'mcpStatus':{'disconnected':_0x20d243(0x197),'connecting':'MCP\x20Connecting...','connected':_0x20d243(0x1ae),'failed':'MCP\x20Connection\x20Failed','retrying':_0x20d243(0x1b3),'unknown':_0x20d243(0x1a4),'unauthorized':_0x20d243(0x192),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x20d243(0x182),'maxRetriesExceeded':_0x20d243(0x198),'clickToConnect':_0x20d243(0x1a9),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x20d243(0x196),'description':_0x20d243(0x1b1),'apiKey':_0x20d243(0x186),'apiKeyPlaceholder':_0x20d243(0x19e),'apiKeyHint':_0x20d243(0x194),'enableAuth':_0x20d243(0x18f),'enableAuthHint':_0x20d243(0x19a),'connectionInfo':_0x20d243(0x1b0),'mcpClientConfig':_0x20d243(0x1b0),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x20d243(0x1af),'configStep2':_0x20d243(0x1aa),'configStep3':_0x20d243(0x183),'sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x20d243(0x195),'configParameters':_0x20d243(0x18c),'maxRetries':_0x20d243(0x189),'save':_0x20d243(0x1a2),'saving':'Saving...','note1':_0x20d243(0x18b),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x20d243(0x184),'configError':_0x20d243(0x1a5),'apiApplyInfo':{'title':_0x20d243(0x18a),'description':_0x20d243(0x1b2),'univerAiLabel':_0x20d243(0x193),'getStarted':_0x20d243(0x1a7)},'validation':{'apiKeyRequired':_0x20d243(0x19d),'apiKeyTooShort':_0x20d243(0x1a1),'invalidConfig':_0x20d243(0x190),'invalidApiKey':_0x20d243(0x18d)},'connectionStatus':{'disconnected':_0x20d243(0x18e),'connecting':'Connecting...','connected':_0x20d243(0x199),'failed':_0x20d243(0x187),'retrying':_0x20d243(0x19c)},'connectionError':{'unauthorized':_0x20d243(0x1ad),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x20d243(0x19f),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale=locale$1;module[_0x20d243(0x1a6)]=locale;function _0x30bd(){const _0x1966c7=['API\x20Key','Connection\x20Failed','72SdZABy','Max\x20Retries','What\x20is\x20API\x20Key?','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Parameters:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','Enable\x20Authentication','Invalid\x20configuration','37945gFtYiZ','MCP:\x20Unauthorized','Univer\x20AI\x20Console','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','Connected','Enable\x20authentication\x20for\x20secure\x20connections','251172hKDzCR','Retrying...','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','804WrOZYB','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Save\x20Configuration','7387QgQUOX','MCP\x20Unknown\x20Status','Failed\x20to\x20save\x20configuration','exports','Get\x20your\x20API\x20key\x20in\x20seconds','2322096MGUzcU','Click\x20to\x20connect\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','576412jIXDlN','163458hSacms','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','MCP\x20Retrying...','MCP:\x20Network\x20Error','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20saved\x20successfully','422758puKWHQ'];_0x30bd=function(){return _0x1966c7;};return _0x30bd();}
1
+ function _0x5d5e(){const _0x3a3713=['MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','217QJRqrt','Enable\x20authentication\x20for\x20secure\x20connections','8woUAro','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Network\x20Error','12630fQXVvK','Invalid\x20configuration','MCP:\x20Unauthorized','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','105288Zjyvsk','429KMZcld','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2410344CbiQAv','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP','Max\x20Retries','Click\x20to\x20connect\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20is\x20required','308031yPThZz','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','221181nYqXMF','MCP\x20Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Configuration\x20Parameters:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','exports','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Copy\x20the\x20JSON\x20configuration\x20below','162244gqEKhT','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','20ZXUkuv','MCP\x20Configuration','What\x20is\x20API\x20Key?','2200944dIQluZ','MCP\x20Client\x20Configuration','MCP\x20Connected','Connection\x20Failed','Retrying...','Configuration\x20Steps:','Enter\x20your\x20API\x20key','API\x20Key'];_0x5d5e=function(){return _0x3a3713;};return _0x5d5e();}const _0x3fc39a=_0x4f4c;function _0x4f4c(_0x52cd15,_0x189e31){_0x52cd15=_0x52cd15-0x1cb;const _0x5d5e8e=_0x5d5e();let _0x4f4cce=_0x5d5e8e[_0x52cd15];return _0x4f4cce;}(function(_0x18294e,_0x2c0542){const _0x295186=_0x4f4c,_0x26b3e0=_0x18294e();while(!![]){try{const _0x23928d=parseInt(_0x295186(0x1da))/0x1+parseInt(_0x295186(0x1f5))/0x2*(parseInt(_0x295186(0x1d7))/0x3)+parseInt(_0x295186(0x1e3))/0x4*(parseInt(_0x295186(0x1e6))/0x5)+-parseInt(_0x295186(0x1e9))/0x6+parseInt(_0x295186(0x1f3))/0x7*(-parseInt(_0x295186(0x1cc))/0x8)+parseInt(_0x295186(0x1cf))/0x9+parseInt(_0x295186(0x1f9))/0xa*(-parseInt(_0x295186(0x1cd))/0xb);if(_0x23928d===_0x2c0542)break;else _0x26b3e0['push'](_0x26b3e0['shift']());}catch(_0x200ea7){_0x26b3e0['push'](_0x26b3e0['shift']());}}}(_0x5d5e,0x3a135));const locale$1={'mcpStatus':{'disconnected':_0x3fc39a(0x1f1),'connecting':_0x3fc39a(0x1e4),'connected':_0x3fc39a(0x1eb),'failed':_0x3fc39a(0x1db),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x3fc39a(0x1fb),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3fc39a(0x1f8),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3fc39a(0x1d4),'clickToConfigure':_0x3fc39a(0x1d2)},'mcpConfig':{'title':_0x3fc39a(0x1e7),'description':_0x3fc39a(0x1e5),'apiKey':_0x3fc39a(0x1f0),'apiKeyPlaceholder':_0x3fc39a(0x1ef),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x3fc39a(0x1f4),'connectionInfo':_0x3fc39a(0x1ea),'mcpClientConfig':_0x3fc39a(0x1ea),'configInstructions':_0x3fc39a(0x1de),'configStepTitle':_0x3fc39a(0x1ee),'configStep1':_0x3fc39a(0x1e2),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3fc39a(0x1dc),'sessionId':_0x3fc39a(0x1d8),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x3fc39a(0x1d9),'configParameters':_0x3fc39a(0x1dd),'maxRetries':_0x3fc39a(0x1d3),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x3fc39a(0x1d0),'note2':_0x3fc39a(0x1f2),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x3fc39a(0x1d1),'apiApplyInfo':{'title':_0x3fc39a(0x1e8),'description':_0x3fc39a(0x1d5),'univerAiLabel':_0x3fc39a(0x1f6),'getStarted':_0x3fc39a(0x1f7)},'validation':{'apiKeyRequired':_0x3fc39a(0x1d6),'apiKeyTooShort':_0x3fc39a(0x1cb),'invalidConfig':_0x3fc39a(0x1fa),'invalidApiKey':_0x3fc39a(0x1df)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x3fc39a(0x1ec),'retrying':_0x3fc39a(0x1ed)},'connectionError':{'unauthorized':_0x3fc39a(0x1e1),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x3fc39a(0x1ce)}}},locale=locale$1;module[_0x3fc39a(0x1e0)]=locale;
@@ -1 +1 @@
1
- function _0x1510(_0x2268ae,_0x5c3a0f){_0x2268ae=_0x2268ae-0xbf;const _0x10c97f=_0x10c9();let _0x15100f=_0x10c97f[_0x2268ae];return _0x15100f;}const _0x599fcb=_0x1510;(function(_0x215562,_0x445771){const _0x367eb2=_0x1510,_0xc5bbb9=_0x215562();while(!![]){try{const _0x12a6a9=parseInt(_0x367eb2(0xd4))/0x1*(-parseInt(_0x367eb2(0xe1))/0x2)+parseInt(_0x367eb2(0xda))/0x3+parseInt(_0x367eb2(0xd8))/0x4*(-parseInt(_0x367eb2(0xdf))/0x5)+-parseInt(_0x367eb2(0xd0))/0x6+parseInt(_0x367eb2(0xc8))/0x7+parseInt(_0x367eb2(0xdc))/0x8+-parseInt(_0x367eb2(0xd5))/0x9;if(_0x12a6a9===_0x445771)break;else _0xc5bbb9['push'](_0xc5bbb9['shift']());}catch(_0x1f1bb9){_0xc5bbb9['push'](_0xc5bbb9['shift']());}}}(_0x10c9,0x4df38));const locale$1={'mcpStatus':{'disconnected':_0x599fcb(0xcd),'connecting':_0x599fcb(0xe0),'connected':_0x599fcb(0xe2),'failed':'MCP\x20Connection\x20Failed','retrying':_0x599fcb(0xd7),'unknown':_0x599fcb(0xdb),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x599fcb(0xe3),'networkError':_0x599fcb(0xcb),'maxRetriesExceeded':_0x599fcb(0xdd),'clickToConnect':_0x599fcb(0xec),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x599fcb(0xc9),'apiKey':_0x599fcb(0xc7),'apiKeyPlaceholder':_0x599fcb(0xc4),'apiKeyHint':_0x599fcb(0xd3),'enableAuth':_0x599fcb(0xd1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x599fcb(0xe5),'mcpClientConfig':_0x599fcb(0xe5),'configInstructions':_0x599fcb(0xcf),'configStepTitle':_0x599fcb(0xf3),'configStep1':_0x599fcb(0xeb),'configStep2':_0x599fcb(0xc3),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x599fcb(0xee),'authorizationDescription':_0x599fcb(0xf2),'configParameters':_0x599fcb(0xbf),'maxRetries':_0x599fcb(0xf4),'save':_0x599fcb(0xef),'saving':_0x599fcb(0xe4),'note1':_0x599fcb(0xd2),'note2':_0x599fcb(0xc0),'configSaved':_0x599fcb(0xd6),'configError':_0x599fcb(0xc6),'apiApplyInfo':{'title':_0x599fcb(0xca),'description':_0x599fcb(0xde),'univerAiLabel':_0x599fcb(0xe7),'getStarted':_0x599fcb(0xe8)},'validation':{'apiKeyRequired':_0x599fcb(0xd9),'apiKeyTooShort':_0x599fcb(0xe9),'invalidConfig':_0x599fcb(0xf0),'invalidApiKey':_0x599fcb(0xe6)},'connectionStatus':{'disconnected':_0x599fcb(0xc1),'connecting':'Connecting...','connected':_0x599fcb(0xc5),'failed':_0x599fcb(0xea),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x599fcb(0xcc),'sessionOccupied':_0x599fcb(0xed),'networkError':_0x599fcb(0xc2),'maxRetriesExceeded':_0x599fcb(0xf1)}}},locale=locale$1;module[_0x599fcb(0xce)]=locale;function _0x10c9(){const _0x1f38cb=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Disconnected','exports','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','669054qIhiax','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','14RwKjwd','3286359tWwsRh','Configuration\x20saved\x20successfully','MCP\x20Retrying...','2732gVyobb','API\x20key\x20is\x20required','1097787RmDBWe','MCP\x20Unknown\x20Status','4775240Fksbzm','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','3010aGlcLh','MCP\x20Connecting...','17878ROoUvi','MCP\x20Connected','MCP:\x20Session\x20ID\x20Occupied','Saving...','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Click\x20to\x20connect\x20MCP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Save\x20Configuration','Invalid\x20configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20Steps:','Max\x20Retries','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Enter\x20your\x20API\x20key','Connected','Failed\x20to\x20save\x20configuration','API\x20Key','2585982nJAZnA'];_0x10c9=function(){return _0x1f38cb;};return _0x10c9();}
1
+ const _0x328dad=_0x432a;(function(_0x4b1137,_0x1f3db3){const _0x1ef906=_0x432a,_0x49758d=_0x4b1137();while(!![]){try{const _0x4ae010=-parseInt(_0x1ef906(0x8c))/0x1+parseInt(_0x1ef906(0x8e))/0x2+parseInt(_0x1ef906(0xa3))/0x3*(-parseInt(_0x1ef906(0xa9))/0x4)+-parseInt(_0x1ef906(0x94))/0x5*(parseInt(_0x1ef906(0x96))/0x6)+-parseInt(_0x1ef906(0xa1))/0x7+parseInt(_0x1ef906(0x82))/0x8+parseInt(_0x1ef906(0x85))/0x9;if(_0x4ae010===_0x1f3db3)break;else _0x49758d['push'](_0x49758d['shift']());}catch(_0x3d548a){_0x49758d['push'](_0x49758d['shift']());}}}(_0x5295,0xd18be));function _0x5295(){const _0xda3081=['MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','What\x20is\x20API\x20Key?','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Click\x20to\x20connect\x20MCP','Failed\x20to\x20save\x20configuration','Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Parameters:','API\x20key\x20with\x20Bearer\x20prefix.','11820064csjufx','MCP\x20Disconnected','MCP\x20Configuration','11539665oBEcnM','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20configuration','MCP\x20Connection\x20Failed','1472945SATPqp','MCP:\x20Session\x20ID\x20Occupied','2508966AgTymM','Connection\x20Failed','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configuration\x20Steps:','MCP:\x20Network\x20Error','5YAupvT','API\x20Key','4409352TYLPgq','API\x20key\x20is\x20required','Enable\x20Authentication','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20configure\x20MCP','Disconnected','Save\x20Configuration','Connecting...','MCP\x20Connected','126112hXQjDO','Enable\x20authentication\x20for\x20secure\x20connections','381VCdxcD','Max\x20Retries','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP\x20Connecting...','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','29292DrfpZg'];_0x5295=function(){return _0xda3081;};return _0x5295();}function _0x432a(_0xca9250,_0x33bec2){_0xca9250=_0xca9250-0x7b;const _0x529576=_0x5295();let _0x432a6f=_0x529576[_0xca9250];return _0x432a6f;}const locale$1={'mcpStatus':{'disconnected':_0x328dad(0x83),'connecting':_0x328dad(0xa7),'connected':_0x328dad(0xa0),'failed':_0x328dad(0x8b),'retrying':'MCP\x20Retrying...','unknown':_0x328dad(0x86),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x328dad(0x8d),'networkError':_0x328dad(0x93),'maxRetriesExceeded':_0x328dad(0xa5),'clickToConnect':_0x328dad(0x7c),'clickToConfigure':_0x328dad(0x9c)},'mcpConfig':{'title':_0x328dad(0x84),'description':_0x328dad(0xab),'apiKey':_0x328dad(0x95),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x328dad(0x90),'enableAuth':_0x328dad(0x98),'enableAuthHint':_0x328dad(0xa2),'connectionInfo':_0x328dad(0xaa),'mcpClientConfig':_0x328dad(0xaa),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x328dad(0x92),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x328dad(0xa6),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x328dad(0x88),'authorizationDescription':_0x328dad(0x81),'configParameters':_0x328dad(0x80),'maxRetries':_0x328dad(0xa4),'save':_0x328dad(0x9e),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x328dad(0x91),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x328dad(0x7d),'apiApplyInfo':{'title':_0x328dad(0xac),'description':_0x328dad(0x89),'univerAiLabel':_0x328dad(0x99),'getStarted':_0x328dad(0x7f)},'validation':{'apiKeyRequired':_0x328dad(0x97),'apiKeyTooShort':_0x328dad(0x9a),'invalidConfig':_0x328dad(0x8a),'invalidApiKey':_0x328dad(0xa8)},'connectionStatus':{'disconnected':_0x328dad(0x9d),'connecting':_0x328dad(0x9f),'connected':'Connected','failed':_0x328dad(0x8f),'retrying':_0x328dad(0x7e)},'connectionError':{'unauthorized':_0x328dad(0x87),'sessionOccupied':_0x328dad(0x7b),'networkError':_0x328dad(0x9b),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},locale=locale$1;module['exports']=locale;
@@ -1 +1 @@
1
- const _0x29d839=_0xd16a;function _0xd16a(_0x393f7e,_0x46e07a){_0x393f7e=_0x393f7e-0x19a;const _0x51e8bd=_0x51e8();let _0xd16a9=_0x51e8bd[_0x393f7e];return _0xd16a9;}(function(_0x3a250f,_0x2a8a53){const _0x326868=_0xd16a,_0x1f14d3=_0x3a250f();while(!![]){try{const _0x44b9f3=-parseInt(_0x326868(0x1b4))/0x1+parseInt(_0x326868(0x1a1))/0x2*(-parseInt(_0x326868(0x1b7))/0x3)+parseInt(_0x326868(0x1c6))/0x4+-parseInt(_0x326868(0x1a4))/0x5+-parseInt(_0x326868(0x1c0))/0x6*(parseInt(_0x326868(0x1cd))/0x7)+-parseInt(_0x326868(0x1bb))/0x8*(-parseInt(_0x326868(0x19a))/0x9)+parseInt(_0x326868(0x1cc))/0xa;if(_0x44b9f3===_0x2a8a53)break;else _0x1f14d3['push'](_0x1f14d3['shift']());}catch(_0x3ae1f6){_0x1f14d3['push'](_0x1f14d3['shift']());}}}(_0x51e8,0x72488));function _0x51e8(){const _0x15fd04=['MCP:\x20最大再試行回数を超過','MCPクライアントの設定に次の設定を追加してください:','APIキーを入力してください','再試行中...','無効な設定','認証に失敗しました。APIキーを確認してください','設定パラメータ:','881743CPuCvm','設定の変更は直ちに有効になります','数秒でAPIキーを取得','3mmhkKc','セキュアな接続のために認証を有効にする','未接続','セッションID','488SwoAXC','MCPクライアント設定','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','APIキーとは?','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','1794720QLukft','設定手順:','接続失敗','接続中...','MCP\x20接続済み','APIキーはこのブラウザのローカルに保存されます','297984HqvBSW','設定を保存','MCP:\x20ネットワークエラー','MCPを設定してAIでスプレッドシートを操作','最大再試行回数','最大再試行回数を超過しました。後でもう一度お試しください','29599830dBANht','7SYBQwb','17379emNfqm','セッションIDが現在使用中です。後でもう一度お試しください','無効なAPIキーです。キーが正しいか確認してください','MCP\x20不明な状態','MCPクライアントの設定ファイルに設定を追加','接続済み','設定の保存に失敗しました','1459826ZhiFuV','保存中...','設定が正常に保存されました','3866950CWpRpV','MCP\x20再試行中...','MCP設定','MCP\x20接続失敗','MCPクライアントを再起動して設定を適用','APIキー','クリックしてMCPを設定','Univer\x20AIコンソール','認証を有効にする'];_0x51e8=function(){return _0x15fd04;};return _0x51e8();}const locale={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':'MCP\x20接続中...','connected':_0x29d839(0x1c4),'failed':_0x29d839(0x1a7),'retrying':_0x29d839(0x1a5),'unknown':_0x29d839(0x19d),'unauthorized':'MCP:\x20認証されていません','sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x29d839(0x1c8),'maxRetriesExceeded':_0x29d839(0x1ad),'clickToConnect':'クリックしてMCPに接続','clickToConfigure':_0x29d839(0x1aa)},'mcpConfig':{'title':_0x29d839(0x1a6),'description':_0x29d839(0x1c9),'apiKey':_0x29d839(0x1a9),'apiKeyPlaceholder':_0x29d839(0x1af),'apiKeyHint':_0x29d839(0x1c5),'enableAuth':_0x29d839(0x1ac),'enableAuthHint':_0x29d839(0x1b8),'connectionInfo':_0x29d839(0x1bc),'mcpClientConfig':_0x29d839(0x1bc),'configInstructions':_0x29d839(0x1ae),'configStepTitle':_0x29d839(0x1c1),'configStep1':'以下のJSON設定をコピー','configStep2':_0x29d839(0x19e),'configStep3':_0x29d839(0x1a8),'sessionId':_0x29d839(0x1ba),'sessionIdDescription':_0x29d839(0x1bf),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x29d839(0x1b3),'maxRetries':_0x29d839(0x1ca),'save':_0x29d839(0x1c7),'saving':_0x29d839(0x1a2),'note1':_0x29d839(0x1b5),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':_0x29d839(0x1a3),'configError':_0x29d839(0x1a0),'apiApplyInfo':{'title':_0x29d839(0x1be),'description':_0x29d839(0x1bd),'univerAiLabel':_0x29d839(0x1ab),'getStarted':_0x29d839(0x1b6)},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x29d839(0x1b1),'invalidApiKey':_0x29d839(0x19c)},'connectionStatus':{'disconnected':_0x29d839(0x1b9),'connecting':_0x29d839(0x1c3),'connected':_0x29d839(0x19f),'failed':_0x29d839(0x1c2),'retrying':_0x29d839(0x1b0)},'connectionError':{'unauthorized':_0x29d839(0x1b2),'sessionOccupied':_0x29d839(0x19b),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x29d839(0x1cb)}}};module['exports']=locale;
1
+ function _0x6db9(){const _0x568346=['接続中...','MCP\x20接続中...','MCPクライアントの設定に次の設定を追加してください:','保存中...','MCP:\x20セッションIDが使用中','APIキーとは?','セッションIDが現在使用中です。後でもう一度お試しください','数秒でAPIキーを取得','認証に失敗しました。APIキーを確認してください','設定の変更は直ちに有効になります','接続済み','MCPクライアントを再起動して設定を適用','セキュアな接続のために認証を有効にする','392986xUyztF','20QckCju','1530419rAbwvb','MCPクライアント設定','MCP\x20接続済み','2yVcrLQ','MCP:\x20認証されていません','無効な設定','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','APIキーは必須です','設定が正常に保存されました','170840DOtefm','再試行中...','ネットワーク接続エラー。インターネット接続を確認してください','認証を有効にする','327604HwpCsv','MCPを設定してAIでスプレッドシートを操作','設定の保存に失敗しました','MCP:\x20最大再試行回数を超過','未接続','MCP\x20未接続','99dxwxvb','接続失敗','24wvbvfF','MCP設定','設定パラメータ:','exports','4704780UWRdYP','最大再試行回数を超過しました。後でもう一度お試しください','クリックしてMCPに接続','APIキーを入力してください','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','454097UCJpIa','506607qfiGKd'];_0x6db9=function(){return _0x568346;};return _0x6db9();}const _0x3ea1b1=_0xcd4e;function _0xcd4e(_0x2cd8fe,_0x15540b){_0x2cd8fe=_0x2cd8fe-0x77;const _0x6db951=_0x6db9();let _0xcd4ef9=_0x6db951[_0x2cd8fe];return _0xcd4ef9;}(function(_0x263ae5,_0x314220){const _0x47f3e6=_0xcd4e,_0x143cf5=_0x263ae5();while(!![]){try{const _0x5a1480=parseInt(_0x47f3e6(0x8a))/0x1+-parseInt(_0x47f3e6(0x8f))/0x2*(-parseInt(_0x47f3e6(0x7c))/0x3)+-parseInt(_0x47f3e6(0x99))/0x4*(-parseInt(_0x47f3e6(0x8b))/0x5)+-parseInt(_0x47f3e6(0xa1))/0x6*(parseInt(_0x47f3e6(0x7b))/0x7)+-parseInt(_0x47f3e6(0x95))/0x8*(-parseInt(_0x47f3e6(0x9f))/0x9)+-parseInt(_0x47f3e6(0xa5))/0xa+-parseInt(_0x47f3e6(0x8c))/0xb;if(_0x5a1480===_0x314220)break;else _0x143cf5['push'](_0x143cf5['shift']());}catch(_0xa73248){_0x143cf5['push'](_0x143cf5['shift']());}}}(_0x6db9,0x3e529));const locale={'mcpStatus':{'disconnected':_0x3ea1b1(0x9e),'connecting':_0x3ea1b1(0x7e),'connected':_0x3ea1b1(0x8e),'failed':'MCP\x20接続失敗','retrying':'MCP\x20再試行中...','unknown':'MCP\x20不明な状態','unauthorized':_0x3ea1b1(0x90),'sessionOccupied':_0x3ea1b1(0x81),'networkError':'MCP:\x20ネットワークエラー','maxRetriesExceeded':_0x3ea1b1(0x9c),'clickToConnect':_0x3ea1b1(0x78),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':_0x3ea1b1(0xa2),'description':_0x3ea1b1(0x9a),'apiKey':'APIキー','apiKeyPlaceholder':_0x3ea1b1(0x79),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x3ea1b1(0x98),'enableAuthHint':_0x3ea1b1(0x89),'connectionInfo':_0x3ea1b1(0x8d),'mcpClientConfig':_0x3ea1b1(0x8d),'configInstructions':_0x3ea1b1(0x7f),'configStepTitle':'設定手順:','configStep1':'以下のJSON設定をコピー','configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x3ea1b1(0x88),'sessionId':'セッションID','sessionIdDescription':_0x3ea1b1(0x92),'authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x3ea1b1(0xa3),'maxRetries':'最大再試行回数','save':'設定を保存','saving':_0x3ea1b1(0x80),'note1':_0x3ea1b1(0x86),'note2':'APIキーはローカルストレージに安全に保存されます','configSaved':_0x3ea1b1(0x94),'configError':_0x3ea1b1(0x9b),'apiApplyInfo':{'title':_0x3ea1b1(0x82),'description':_0x3ea1b1(0x7a),'univerAiLabel':'Univer\x20AIコンソール','getStarted':_0x3ea1b1(0x84)},'validation':{'apiKeyRequired':_0x3ea1b1(0x93),'apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x3ea1b1(0x91),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x3ea1b1(0x9d),'connecting':_0x3ea1b1(0x7d),'connected':_0x3ea1b1(0x87),'failed':_0x3ea1b1(0xa0),'retrying':_0x3ea1b1(0x96)},'connectionError':{'unauthorized':_0x3ea1b1(0x85),'sessionOccupied':_0x3ea1b1(0x83),'networkError':_0x3ea1b1(0x97),'maxRetriesExceeded':_0x3ea1b1(0x77)}}};module[_0x3ea1b1(0xa4)]=locale;