@univerjs-pro/mcp-ui 0.20.1 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x8849ec=_0x1a3d;(function(_0x3a1357,_0x19a455){const _0x282245=_0x1a3d,_0x1031ac=_0x3a1357();while(!![]){try{const _0x5bee67=-parseInt(_0x282245(0xd8))/0x1*(parseInt(_0x282245(0x131))/0x2)+-parseInt(_0x282245(0x186))/0x3+-parseInt(_0x282245(0x91))/0x4+parseInt(_0x282245(0x18d))/0x5*(-parseInt(_0x282245(0x173))/0x6)+-parseInt(_0x282245(0x1bd))/0x7*(-parseInt(_0x282245(0x152))/0x8)+parseInt(_0x282245(0xfd))/0x9*(parseInt(_0x282245(0x13a))/0xa)+parseInt(_0x282245(0x12d))/0xb*(parseInt(_0x282245(0x81))/0xc);if(_0x5bee67===_0x19a455)break;else _0x1031ac['push'](_0x1031ac['shift']());}catch(_0x11356d){_0x1031ac['push'](_0x1031ac['shift']());}}}(_0x1127,0xd0460),Object[_0x8849ec(0x1b4)](exports,Symbol[_0x8849ec(0xc4)],{'value':_0x8849ec(0x12f)}));let e=require(`@univerjs/core`),t=require(`@univerjs-pro/mcp`),n=require(`@univerjs/design`),r=require(`@univerjs/ui`),i=require(`rxjs`),a=require(`@univerjs/icons`),o=require(`react`),s=require(`react/jsx-runtime`),c=require(`@univerjs/network`);function l(_0x186b59){const _0x4ec51e=_0x8849ec;var _0x385eb3,_0x46003f;let {mcpCoreConfig:_0x50d355,onSave:_0x362cb4,loading:_0x40ffcd=!0x1,config:_0x1958ad,connectionStatus$:_0x5df51e,connectionError$:_0x2240eb,currentApiKey$:_0x1a3738,currentSessionId$:_0x4b6b1a}=_0x186b59,_0x137f91=(0x0,r[_0x4ec51e(0x1b2)])(e[_0x4ec51e(0x8b)]),_0x195a70=(0x0,r[_0x4ec51e(0x1ad)])(_0x5df51e,t[_0x4ec51e(0x10a)][_0x4ec51e(0x19c)]),_0x121505=(0x0,r['useObservable'])(_0x2240eb,t[_0x4ec51e(0x13c)][_0x4ec51e(0x13b)]),_0x2622f6=(0x0,r[_0x4ec51e(0x1ad)])(_0x4b6b1a,''),[_0x258c52,_0x338b91]=(0x0,o[_0x4ec51e(0xdb)])((0x0,r[_0x4ec51e(0x1ad)])(_0x1a3738,'')||''),_0xedd941=_0x1958ad[_0x4ec51e(0x15c)]&&_0x50d355[_0x4ec51e(0x168)]&&(_0x50d355[_0x4ec51e(0x168)][_0x4ec51e(0xbb)](_0x4ec51e(0x155))||_0x50d355[_0x4ec51e(0x168)][_0x4ec51e(0xbb)](_0x4ec51e(0x180))),_0x26ac22=(_0x385eb3=_0x50d355[_0x4ec51e(0x168)])==null?void 0x0:_0x385eb3[_0x4ec51e(0xbb)](_0x4ec51e(0x155)),_0x3a0167=(_0x46003f=_0x50d355[_0x4ec51e(0x168)])==null?void 0x0:_0x46003f[_0x4ec51e(0xbb)]('univer.ai'),_0x5c1904=_0x26ac22?_0x4ec51e(0x106):_0x4ec51e(0xb6),_0x5ce002=_0x1958ad['showDeveloperTools']&&(_0x26ac22||_0x3a0167),[_0x4fffef,_0x3ec940]=(0x0,o[_0x4ec51e(0xdb)])(!_0x258c52[_0x4ec51e(0xbe)]()),_0x29c992=(_0xf8d46c,_0x558102)=>{const _0x13f34b=_0x4ec51e;if(_0x558102===t[_0x13f34b(0x13c)][_0x13f34b(0x169)])return _0x13f34b(0x113);switch(_0xf8d46c){case t[_0x13f34b(0x10a)][_0x13f34b(0x1a7)]:return _0x13f34b(0x9e);case t[_0x13f34b(0x10a)]['CONNECTING']:case t['MCPConnectionStatus'][_0x13f34b(0x181)]:return _0x13f34b(0x18b);case t[_0x13f34b(0x10a)][_0x13f34b(0x179)]:return _0x13f34b(0x113);default:return _0x13f34b(0x1ae);}},_0x2714dd=(_0x563cf2,_0x57352c)=>{const _0x51560b=_0x4ec51e;if(_0x57352c===t['MCPConnectionError'][_0x51560b(0x169)])return _0x51560b(0xe5);switch(_0x563cf2){case t['MCPConnectionStatus'][_0x51560b(0x1a7)]:return _0x51560b(0xf6);case t['MCPConnectionStatus']['CONNECTING']:case t[_0x51560b(0x10a)][_0x51560b(0x181)]:return'univer-bg-blue-500';case t['MCPConnectionStatus']['FAILED']:return _0x51560b(0xe5);default:return _0x51560b(0xce);}},_0x4045ec=_0x4a3a7e=>{const _0x25a835=_0x4ec51e;switch(_0x4a3a7e){case t[_0x25a835(0x10a)][_0x25a835(0x1a7)]:return _0x137f91['t'](_0x25a835(0x118));case t['MCPConnectionStatus'][_0x25a835(0x14d)]:return _0x137f91['t'](_0x25a835(0xa0));case t['MCPConnectionStatus']['FAILED']:return _0x137f91['t']('mcpConfig.connectionStatus.failed');case t[_0x25a835(0x10a)][_0x25a835(0x181)]:return _0x137f91['t'](_0x25a835(0x8c));default:return _0x137f91['t']('mcpConfig.connectionStatus.disconnected');}},_0x23551d=_0x527d7a=>{const _0x5500f2=_0x4ec51e;switch(_0x527d7a){case t[_0x5500f2(0x13c)][_0x5500f2(0x169)]:return _0x137f91['t'](_0x5500f2(0x16f));case t[_0x5500f2(0x13c)][_0x5500f2(0xe4)]:return _0x137f91['t'](_0x5500f2(0x95));case t[_0x5500f2(0x13c)][_0x5500f2(0x19e)]:return _0x137f91['t']('mcpConfig.connectionError.networkError');case t['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return _0x137f91['t'](_0x5500f2(0xfc));default:return'';}},_0x2f432d=(0x0,o['useCallback'])(()=>{const _0x20cb3e=_0x4ec51e;_0x362cb4({..._0x50d355,'apiKey':_0x258c52[_0x20cb3e(0xbe)](),'enableAuth':!0x0});},[_0x50d355,_0x258c52,!0x0,_0x362cb4]),_0xe47cff=_0x258c52['trim']()['length']>0x0;return(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0x11a),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','children':(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x127),'children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x192),'children':(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x1b1),'children':'⚙'})}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'children':(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x137f91['t'](_0x4ec51e(0xf5))})})]})}),(0x0,s['jsxs'])('div',{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':(0x0,n['clsx'])(_0x4ec51e(0xe3),_0x29c992(_0x195a70,_0x121505)),'children':(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xc2),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':(0x0,n['clsx'])(_0x4ec51e(0x17b),_0x2714dd(_0x195a70,_0x121505))}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x1cf),'children':_0x4045ec(_0x195a70)})]})}),_0x121505!==t[_0x4ec51e(0x13c)]['NONE']&&(_0x195a70===t['MCPConnectionStatus'][_0x4ec51e(0x179)]||_0x121505===t[_0x4ec51e(0x13c)][_0x4ec51e(0x169)])&&(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xd4),'children':(0x0,s['jsxs'])('div',{'className':_0x4ec51e(0x98),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x14b),'children':'⚠️'}),(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x23551d(_0x121505)})]})})]}),(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x17f),'children':(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-space-y-5','children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x162),'children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x1a4),{'className':_0x4ec51e(0x187),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'children':'🔑'}),'\x20',_0x137f91['t'](_0x4ec51e(0xa6)),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0x133),'children':'*'}),_0xedd941&&(0x0,s[_0x4ec51e(0x1c8)])('a',{'className':_0x4ec51e(0x17e),'title':_0x137f91['t']('mcpConfig.apiApplyInfo.title'),'role':_0x4ec51e(0x147),'onClick':()=>_0x3ec940(!0x0),'children':(0x0,s[_0x4ec51e(0x1c8)])(a['HelpIcon'],{})})]}),(0x0,s[_0x4ec51e(0x1c8)])(n['Input'],{'type':_0x4ec51e(0xf3),'placeholder':_0x137f91['t'](_0x4ec51e(0x165)),'value':_0x258c52,'disabled':_0x40ffcd,'autoComplete':'off','onChange':_0x338b91}),(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':_0x4ec51e(0x1b7),'children':_0x137f91['t']('mcpConfig.apiKeyHint')})]}),_0xedd941&&_0x4fffef&&(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'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,s[_0x4ec51e(0x1c8)])('a',{'className':_0x4ec51e(0xca),'role':_0x4ec51e(0x147),'onClick':()=>_0x3ec940(!0x1),'children':(0x0,s['jsx'])(a[_0x4ec51e(0x124)],{'className':_0x4ec51e(0x94)})}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x160),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xc8),'children':(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x140),'children':[(0x0,s[_0x4ec51e(0x1c8)])('h4',{'className':_0x4ec51e(0xb9),'children':_0x137f91['t']('mcpConfig.apiApplyInfo.title')}),(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':_0x4ec51e(0x184),'children':_0x137f91['t']('mcpConfig.apiApplyInfo.description')}),(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xb2),'children':_0x5ce002&&(0x0,s[_0x4ec51e(0xdc)])('a',{'className':_0x4ec51e(0x1b6),'href':_0x5c1904,'target':_0x4ec51e(0xa4),'rel':'noopener\x20noreferrer','children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'children':'🤖'}),_0x137f91['t'](_0x4ec51e(0x158)),(0x0,s['jsx'])('span',{'className':_0x4ec51e(0x1bb),'children':'↗'})]})}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x90),'children':['✨','\x20',_0x137f91['t'](_0x4ec51e(0x1c7))]})]})]})]}),_0x1958ad['showDeveloperTools']&&(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1cb),'children':[(0x0,s[_0x4ec51e(0xdc)])('h4',{'className':_0x4ec51e(0x123),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'children':'🔗'}),'\x20',_0x137f91['t']('mcpConfig.connectionInfo')]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x18f),'children':[(0x0,s[_0x4ec51e(0xdc)])('div',{'className':'univer-space-y-3','children':[(0x0,s[_0x4ec51e(0x1c8)])('p',{'className':_0x4ec51e(0x17a),'children':_0x137f91['t'](_0x4ec51e(0x1d1))}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-space-y-2','children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x17d),'children':_0x137f91['t'](_0x4ec51e(0xa8))}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xfa),'children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s['jsx'])('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':'1'}),_0x137f91['t'](_0x4ec51e(0xb7))]}),(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0xc2),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xcd),'children':'2'}),_0x137f91['t'](_0x4ec51e(0x174))]}),(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0xc2),'children':[(0x0,s['jsx'])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xcd),'children':'3'}),_0x137f91['t'](_0x4ec51e(0x18a))]})]})]})]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x162),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x4ec51e(0xea)}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1aa),'children':(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x191),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x4ec51e(0x1cd)]({'mcpServers':{'univer':{'url':_0x4ec51e(0x1a9)+(_0x2622f6||_0x4ec51e(0x170)),'type':_0x4ec51e(0xde),'headers':{'Authorization':_0x4ec51e(0x11b)+(_0x258c52||_0x4ec51e(0x159))}}}},null,0x2)})})]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x96),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x17d),'children':_0x137f91['t'](_0x4ec51e(0x135))}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':'univer-space-y-2','children':[(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x13e),'children':[(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xb1)}),(0x0,s['jsxs'])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1b3),'children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x164),'children':_0x4ec51e(0x1a2)}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x1b7),'children':_0x137f91['t']('mcpConfig.sessionIdDescription')})]})]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x13e),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xb1)}),(0x0,s[_0x4ec51e(0xdc)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x164),'children':_0x4ec51e(0x185)}),(0x0,s['jsx'])(_0x4ec51e(0x193),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x137f91['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,s[_0x4ec51e(0x1c8)])(n[_0x4ec51e(0x156)],{'onClick':_0x2f432d,'disabled':!_0xe47cff||_0x40ffcd,'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':_0x40ffcd?(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xc2),'children':[(0x0,s[_0x4ec51e(0x1c8)])('span',{'children':'⟲'}),_0x137f91['t']('mcpConfig.saving')]}):(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x177),{'className':_0x4ec51e(0xc2),'children':[(0x0,s[_0x4ec51e(0x1c8)])(a[_0x4ec51e(0xae)],{}),_0x137f91['t'](_0x4ec51e(0x101))]})}),(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0xd9),'children':(0x0,s[_0x4ec51e(0xdc)])('div',{'className':_0x4ec51e(0xb0),'children':[(0x0,s[_0x4ec51e(0x1c8)])(_0x4ec51e(0x177),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'className':_0x4ec51e(0x82),'children':[(0x0,s[_0x4ec51e(0x1c8)])('div',{'className':_0x4ec51e(0x132),'children':_0x4ec51e(0x18e)}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'children':['•',_0x137f91['t'](_0x4ec51e(0x128))]}),(0x0,s[_0x4ec51e(0xdc)])(_0x4ec51e(0x193),{'children':['•',_0x137f91['t'](_0x4ec51e(0xf9))]})]})]})})]})})]});}const u=_0x8849ec(0xf8);Symbol(u);const d={'showDeveloperTools':!0x1,'showStatus':!0x0};function f(_0x323a7a){'@babel/helpers - typeof';const _0x787327=_0x8849ec;return f=typeof Symbol==_0x787327(0xad)&&typeof Symbol[_0x787327(0xc7)]==_0x787327(0xd3)?function(_0x5f260d){return typeof _0x5f260d;}:function(_0x2dc10b){const _0x2a7d17=_0x787327;return _0x2dc10b&&typeof Symbol==_0x2a7d17(0xad)&&_0x2dc10b[_0x2a7d17(0x14f)]===Symbol&&_0x2dc10b!==Symbol[_0x2a7d17(0x12a)]?_0x2a7d17(0xd3):typeof _0x2dc10b;},f(_0x323a7a);}function p(_0x1fa25b,_0x2a8140){const _0x576146=_0x8849ec;if(f(_0x1fa25b)!='object'||!_0x1fa25b)return _0x1fa25b;var _0x444a5b=_0x1fa25b[Symbol[_0x576146(0xe6)]];if(_0x444a5b!==void 0x0){var _0x20beec=_0x444a5b['call'](_0x1fa25b,_0x2a8140||'default');if(f(_0x20beec)!=_0x576146(0xaf))return _0x20beec;throw TypeError(_0x576146(0x1d3));}return(_0x2a8140===_0x576146(0xa1)?String:Number)(_0x1fa25b);}function m(_0x5c2a7f){const _0x14ed63=_0x8849ec;var _0x40988c=p(_0x5c2a7f,_0x14ed63(0xa1));return f(_0x40988c)==_0x14ed63(0xd3)?_0x40988c:_0x40988c+'';}function h(_0x2efc0f,_0x309882,_0x536a67){return(_0x309882=m(_0x309882))in _0x2efc0f?Object['defineProperty'](_0x2efc0f,_0x309882,{'value':_0x536a67,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2efc0f[_0x309882]=_0x536a67,_0x2efc0f;}function g(_0x35fced,_0x42cd52){return function(_0x223721,_0x3f16da){_0x42cd52(_0x223721,_0x3f16da,_0x35fced);};}function _0x1127(){const _0x54c52e=['Session\x20ID','mcp.apiKey','_initializeMenus','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','1286684EFFRlZ','MCP:\x20Session\x20ID\x20Occupied','启用身份验证以获得安全连接','univer-size-4','mcpConfig.connectionError.sessionOccupied','univer-space-y-3','mcpStatus.clickToConfigure','univer-flex\x20univer-items-start\x20univer-gap-2','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_connectionController','MCP\x20连接失败','mcpStatus.connecting','Invalid\x20configuration','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','showStatus','mcpConfig.connectionStatus.connecting','string','将以下配置添加到您的\x20MCP\x20客户端设置中:','apiKey','_blank','getItem','mcpConfig.apiKey','MCPUIMenuController','mcpConfig.configStepTitle','errorMessage','已连接','ILocalStorageService','sessionId$','function','CheckMarkIcon','object','univer-flex\x20univer-gap-3','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Connected','_componentManager','mcpStatus.unknown','https://console.univer.ai','mcpConfig.configStep1','push','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20客户端配置','includes','subscribe','_validateConfig','trim','MessageType','mcpStatus.maxRetriesExceeded','MCP\x20Disconnected','univer-flex\x20univer-items-center\x20univer-gap-2','mergeMenu','toStringTag','next','mcp-ui.command.openConfigPanel','iterator','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','API\x20密钥无效,请检查密钥是否正确','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','registerCommand','MCP_UI_PLUGIN','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-bg-gray-500','API\x20密钥长度至少需要\x2010\x20位','MCPConfigPanel','Connection\x20Failed','MCP:\x20会话\x20ID\x20已被占用','symbol','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','_mcpCoreConfig$','length','Disposable','2LTKgcj','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpStatus.failed','useState','jsxs','_config','http','registerComponent','_localStorageService','请输入您的\x20API\x20密钥','close','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','SESSION_ID_OCCUPIED','univer-bg-red-500','toPrimitive','clsx','Univer\x20AI\x20Console','_createConfigPanelComponent','MCP\x20Configuration','\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','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connecting...','Configuration\x20saved\x20successfully','MCP:\x20Network\x20Error','ICommandService','IDialogService','_initConfigSync','text','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.description','univer-bg-green-500','setConfig','mcp-ui.config','mcpConfig.note2','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Configuration\x20Parameters:','mcpConfig.connectionError.maxRetriesExceeded','90OvNfQn','_uiPartsService','会话ID','_loading$','mcpConfig.save','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','将配置添加到您的\x20MCP\x20客户端设置文件中','Get\x20your\x20API\x20key\x20in\x20seconds','带有\x20Bearer\x20前缀的\x20API\x20密钥。','https://console.univer.plus','MCP\x20已连接','show','enableAutoConnect','MCPConnectionStatus','getConfig','subscribeConfigValue$','Click\x20to\x20configure\x20MCP','has','MCP:\x20超出最大重试次数','disposeWithMe','getCurrentConfig','UniverMCPUIPlugin','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','Success','API\x20密钥不能为空','API\x20key\x20is\x20required','MCP\x20重连中...','mcpConfig.connectionStatus.connected','MAX_RETRIES_EXCEEDED','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','Bearer\x20','mcpStatus.disconnected','_handleConfigure','MCP\x20已断开','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','保存中...','您的\x20API\x20密钥安全存储在本地存储中','OffLineIcon','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','CloseIcon','MCPConnectionController','Error','univer-flex\x20univer-items-center\x20univer-gap-3','mcpConfig.note1','_configService','prototype','useCallback','__setCustomHeaders','231LXSZwY','ILogService','Module','IUIPartsService','328446KdJrIE','univer-font-medium','univer-text-red-500','mcpStatus.sessionOccupied','mcpConfig.configParameters','MenuIcon','_logService','Inject','\x20-\x20','764130wQTKSQ','NONE','MCPConnectionError','Retrying...','univer-flex\x20univer-items-start\x20univer-gap-3','_menuManagerService','univer-flex-1','RibbonStartGroup','IMenuManagerService','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20未授权','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Copy\x20the\x20JSON\x20configuration\x20below','button','BUTTON','pluginName','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-shrink-0\x20univer-text-red-500','ComponentManager','CONNECTING','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','constructor','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','DependentOn','760NpGeRU','Tooltip','connectInjector','univer.plus','Button','点击连接\x20MCP','mcpConfig.apiApplyInfo.univerAiLabel','<API_KEY>','connectionError$','validateApiKey','showDeveloperTools','zhCN','配置步骤:','_initStatusComponent','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP\x20连接中...','univer-space-y-2','API\x20key\x20with\x20Bearer\x20prefix.','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.apiKeyPlaceholder','您的\x20API\x20密钥将在此浏览器中本地存储','OnLineIcon','mcpServerUrl','UNAUTHORIZED','bottom','_injector','_localeService','showConfigPanel','Injector','mcpConfig.connectionError.unauthorized','<SESSION_ID>','网络连接错误,请检查您的网络连接','连接失败','342hyNAgm','mcpConfig.configStep2','_mcpConnectionController','Univer\x20AI\x20控制台','span','isValid','FAILED','univer-text-xs\x20univer-text-gray-600','univer-size-2\x20univer-rounded-full','version','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','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','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer.ai','RETRYING','univer-text-green-500','复制以下\x20JSON\x20配置','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','Authorization:','729468WZJGKf','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','MCP\x20Client\x20Configuration','mcpStatus.networkError','mcpConfig.configStep3','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_initializeCommands','72965oZaMyt','Configuration\x20Notes:','univer-space-y-4','_config$','pre','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','div','MCPConnectionUIController','warn','onStarting','MCP\x20Connection\x20Failed','Plugin','_loadStoredApiKey','WebSocketService','配置保存成功','DISCONNECTED','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','NETWORK_ERROR','MCPStatusDisplay','mcpConfig.title','mcpConfig.validation.invalidApiKey','univer_session_id:','MCP_PLUGIN_CONFIG_KEY','label','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','CONNECTED','_initAutoConnect','https://mcp.univer.ai/mcp/?univer_session_id=','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','register','mcpStatus.unauthorized','useObservable','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','配置更改将立即生效','get','univer-text-white','useDependency','univer-min-w-0\x20univer-flex-1','defineProperty','connectionStatus$','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','univer-text-xs\x20univer-text-gray-500','_handleConfigSave','value','What\x20is\x20API\x20Key?','univer-text-gray-400','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','49679xwVsIm','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','add','_dialogService','mcpConfig.validation.apiKeyTooShort','mcpStatus.clickToConnect','_apiKey$','OTHERS','IMessageService','mcpConfig.apiApplyInfo.getStarted','jsx','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20Connecting...','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','removeItem','stringify','Max\x20Retries','univer-text-sm\x20univer-font-medium','Save\x20Configuration','mcpConfig.configInstructions','IConfigService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','HEADER_MENU','mcp-config-dialog','error','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','配置保存失败','651324CtNmlM','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','_messageService','MCP\x20配置','open','_registerComponent','forEach','权限验证失败,请检查您的\x20API\x20密钥','univer-mr-2\x20univer-flex\x20univer-text-xl','未连接','LocaleService','mcpConfig.connectionStatus.retrying'];_0x1127=function(){return _0x54c52e;};return _0x1127();}function _(_0x2159a7,_0x2fe962,_0x17a771,_0x30d7d8){const _0x187014=_0x8849ec;var _0x1e3186=arguments[_0x187014(0xd6)],_0x5adfea=_0x1e3186<0x3?_0x2fe962:_0x30d7d8===null?_0x30d7d8=Object['getOwnPropertyDescriptor'](_0x2fe962,_0x17a771):_0x30d7d8,_0x40d952;if(typeof Reflect==_0x187014(0xaf)&&typeof Reflect[_0x187014(0x1d4)]==_0x187014(0xad))_0x5adfea=Reflect[_0x187014(0x1d4)](_0x2159a7,_0x2fe962,_0x17a771,_0x30d7d8);else{for(var _0x3211b6=_0x2159a7['length']-0x1;_0x3211b6>=0x0;_0x3211b6--)(_0x40d952=_0x2159a7[_0x3211b6])&&(_0x5adfea=(_0x1e3186<0x3?_0x40d952(_0x5adfea):_0x1e3186>0x3?_0x40d952(_0x2fe962,_0x17a771,_0x5adfea):_0x40d952(_0x2fe962,_0x17a771))||_0x5adfea);}return _0x1e3186>0x3&&_0x5adfea&&Object[_0x187014(0x1b4)](_0x2fe962,_0x17a771,_0x5adfea),_0x5adfea;}const v=_0x8849ec(0x8e),y=_0x8849ec(0x1d6);let b=class extends e[_0x8849ec(0xd7)]{constructor(_0x451c2f,_0x47bd29,_0x4068e0,_0x2c9de1,_0x115793,_0x1a2a9f,_0x2e497d,_0x2224e8,_0x2f0953,_0x3ba926){const _0x4373d4=_0x8849ec;super(),this[_0x4373d4(0x16b)]=_0x451c2f,this[_0x4373d4(0xfe)]=_0x47bd29,this[_0x4373d4(0x129)]=_0x4068e0,this[_0x4373d4(0xe0)]=_0x2c9de1,this[_0x4373d4(0x1c1)]=_0x115793,this[_0x4373d4(0x83)]=_0x1a2a9f,this[_0x4373d4(0xb4)]=_0x2e497d,this['_localeService']=_0x2224e8,this[_0x4373d4(0x137)]=_0x2f0953,this[_0x4373d4(0x175)]=_0x3ba926,h(this,_0x4373d4(0x100),new i['BehaviorSubject'](!0x1)),h(this,_0x4373d4(0xd5),new i['BehaviorSubject']({})),h(this,_0x4373d4(0x190),new i['BehaviorSubject']({})),h(this,_0x4373d4(0x1c4),new i['BehaviorSubject']('')),h(this,_0x4373d4(0x1b8),async _0xbae031=>{const _0x19f4e1=_0x4373d4;this['_loading$']['next'](!0x0);try{var _0x5e1d20,_0x553f27;let _0x32d3d8=await this[_0x19f4e1(0xbd)](_0xbae031);if(!_0x32d3d8[_0x19f4e1(0x178)]){this[_0x19f4e1(0x83)][_0x19f4e1(0x108)]({'type':n['MessageType'][_0x19f4e1(0x126)],'content':_0x32d3d8[_0x19f4e1(0xa9)]||this[_0x19f4e1(0x16c)]['t']('mcpConfig.validation.invalidConfig')});return;}_0xbae031['apiKey']?await this[_0x19f4e1(0xe0)]['setItem'](v,_0xbae031[_0x19f4e1(0xa3)][_0x19f4e1(0xbe)]()):await this[_0x19f4e1(0xe0)][_0x19f4e1(0x1cc)](v),this[_0x19f4e1(0x1c4)][_0x19f4e1(0xc5)](((_0x5e1d20=_0xbae031[_0x19f4e1(0xa3)])==null?void 0x0:_0x5e1d20[_0x19f4e1(0xbe)]())||''),this[_0x19f4e1(0x175)][_0x19f4e1(0x12c)]({'Authorization':_0x19f4e1(0x11b)+((_0x553f27=_0xbae031[_0x19f4e1(0xa3)])==null?void 0x0:_0x553f27[_0x19f4e1(0xbe)]())}),this[_0x19f4e1(0x83)][_0x19f4e1(0x108)]({'type':n[_0x19f4e1(0xbf)][_0x19f4e1(0x114)],'content':this[_0x19f4e1(0x16c)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x2bbfac=_0x19f4e1;this[_0x2bbfac(0x1c1)][_0x2bbfac(0xe2)](y);},0x320);}catch(_0x569317){this[_0x19f4e1(0x137)][_0x19f4e1(0x1d7)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x569317),this[_0x19f4e1(0x83)]['show']({'type':n[_0x19f4e1(0xbf)]['Error'],'content':this[_0x19f4e1(0x16c)]['t']('mcpConfig.configError')});}finally{this['_loading$']['next'](!0x1);}}),this[_0x4373d4(0xf2)](),this[_0x4373d4(0x199)](),this[_0x4373d4(0x86)]();}[_0x8849ec(0x16d)](){const _0x364cfe=_0x8849ec;let _0x3a1b41=this[_0x364cfe(0x129)][_0x364cfe(0x10b)](u);_0x3a1b41!=null&&_0x3a1b41['showDeveloperTools']&&this[_0x364cfe(0x1c1)][_0x364cfe(0x85)]({'id':y,'title':{'title':this['_localeService']['t'](_0x364cfe(0x1a0))},'children':{'label':_0x364cfe(0xd0)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3fcf26=_0x364cfe;this[_0x3fcf26(0x1c1)][_0x3fcf26(0xe2)](y);}});}[_0x8849ec(0x111)](){const _0x1ff2ed=_0x8849ec;return this[_0x1ff2ed(0xd5)][_0x1ff2ed(0x1b9)];}[_0x8849ec(0x86)](){const _0x420adf=_0x8849ec;this[_0x420adf(0x110)](this['_componentManager'][_0x420adf(0x1ab)](_0x420adf(0xd0),this[_0x420adf(0xe9)]()));}['_createConfigPanelComponent'](){const _0x252657=_0x8849ec;return(0x0,r[_0x252657(0x154)])(()=>{const _0x4801c6=_0x252657;var _0x37fe35,_0x5e6357,_0x43bf5a;return(0x0,s[_0x4801c6(0x1c8)])(l,{'config':this[_0x4801c6(0x190)]['value'],'mcpCoreConfig':this[_0x4801c6(0xd5)][_0x4801c6(0x1b9)],'currentApiKey$':this[_0x4801c6(0x1c4)],'onSave':this['_handleConfigSave'],'loading':this[_0x4801c6(0x100)][_0x4801c6(0x1b9)],'connectionStatus$':(_0x37fe35=this[_0x4801c6(0x175)])==null?void 0x0:_0x37fe35[_0x4801c6(0x1b5)],'connectionError$':(_0x5e6357=this[_0x4801c6(0x175)])==null?void 0x0:_0x5e6357['connectionError$'],'currentSessionId$':(_0x43bf5a=this[_0x4801c6(0x175)])==null?void 0x0:_0x43bf5a[_0x4801c6(0xac)]});},this[_0x252657(0x16b)]);}[_0x8849ec(0xf2)](){const _0x5a6b88=_0x8849ec;this[_0x5a6b88(0x110)](this[_0x5a6b88(0x129)][_0x5a6b88(0x10c)](t[_0x5a6b88(0x1a3)])[_0x5a6b88(0xbc)](_0x5f72f=>{const _0x4bbee4=_0x5a6b88;this[_0x4bbee4(0xd5)][_0x4bbee4(0xc5)](_0x5f72f||{});}));let _0x1b5932=this[_0x5a6b88(0x129)][_0x5a6b88(0x10b)](t[_0x5a6b88(0x1a3)]);this[_0x5a6b88(0xd5)][_0x5a6b88(0xc5)](_0x1b5932||{}),this[_0x5a6b88(0x110)](this[_0x5a6b88(0x129)][_0x5a6b88(0x10c)](u)['subscribe'](_0x5aa774=>{const _0x1b3e15=_0x5a6b88;this[_0x1b3e15(0x190)]['next'](_0x5aa774||{});}));let _0x4e266f=this['_configService'][_0x5a6b88(0x10b)](u);this[_0x5a6b88(0x190)]['next'](_0x4e266f||{});}async['_loadStoredApiKey'](){const _0x266657=_0x8849ec;let _0x40b799=this['_configService'][_0x266657(0x10b)](u);if(!(_0x40b799!=null&&_0x40b799['showDeveloperTools']))return;let _0x3eb80a=await this[_0x266657(0xe0)][_0x266657(0xa5)](v);_0x3eb80a&&(this[_0x266657(0x175)][_0x266657(0x12c)]({'Authorization':'Bearer\x20'+_0x3eb80a}),this[_0x266657(0x1c4)]['next'](_0x3eb80a));}async['_validateConfig'](_0x3a37a8){const _0x9d3c5b=_0x8849ec;if(!_0x3a37a8[_0x9d3c5b(0xa3)]||_0x3a37a8['apiKey'][_0x9d3c5b(0xbe)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x3a37a8[_0x9d3c5b(0xa3)][_0x9d3c5b(0xbe)]()[_0x9d3c5b(0xd6)]<0xa)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x9d3c5b(0x1c2))};try{let _0x2c8eea=await this['_injector']['get'](t[_0x9d3c5b(0x125)])[_0x9d3c5b(0x15b)](_0x3a37a8[_0x9d3c5b(0xa3)][_0x9d3c5b(0xbe)]());return _0x2c8eea[_0x9d3c5b(0x178)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x2c8eea[_0x9d3c5b(0x1d7)]||this[_0x9d3c5b(0x16c)]['t'](_0x9d3c5b(0x1a1))};}catch(_0x5017d7){return console[_0x9d3c5b(0x195)](_0x9d3c5b(0x1d8),_0x5017d7),{'isValid':!0x0};}}};b=_([g(0x0,(0x0,e[_0x8849ec(0x138)])(e[_0x8849ec(0x16e)])),g(0x1,r['IUIPartsService']),g(0x2,e['IConfigService']),g(0x3,e[_0x8849ec(0xab)]),g(0x4,r[_0x8849ec(0xf1)]),g(0x5,r[_0x8849ec(0x1c6)]),g(0x6,(0x0,e[_0x8849ec(0x138)])(r[_0x8849ec(0x14c)])),g(0x7,(0x0,e[_0x8849ec(0x138)])(e[_0x8849ec(0x8b)])),g(0x8,e[_0x8849ec(0x12e)]),g(0x9,(0x0,e[_0x8849ec(0x138)])(t['MCPConnectionController']))],b);const x={'id':_0x8849ec(0xc6),'type':e['CommandType']['COMMAND'],'handler':async(_0x542d1c,_0x431748)=>(_0x542d1c['get'](b)[_0x8849ec(0x16d)](),!0x0)};function S(_0x5424ec,_0x288bf0){const _0xca7345=_0x8849ec;switch(_0x5424ec){case t['MCPConnectionStatus'][_0xca7345(0x19c)]:return _0xca7345(0x11c);case t['MCPConnectionStatus'][_0xca7345(0x14d)]:return _0xca7345(0x9c);case t['MCPConnectionStatus'][_0xca7345(0x1a7)]:return'mcpStatus.connected';case t[_0xca7345(0x10a)]['FAILED']:switch(_0x288bf0){case t['MCPConnectionError']['UNAUTHORIZED']:return _0xca7345(0x1ac);case t[_0xca7345(0x13c)]['SESSION_ID_OCCUPIED']:return _0xca7345(0x134);case t['MCPConnectionError'][_0xca7345(0x19e)]:return _0xca7345(0x189);case t['MCPConnectionError'][_0xca7345(0x119)]:return _0xca7345(0xc0);default:return _0xca7345(0xda);}case t[_0xca7345(0x10a)][_0xca7345(0x181)]:return'mcpStatus.retrying';default:return _0xca7345(0xb5);}}function _0x1a3d(_0x34f5e8,_0x30b4d8){_0x34f5e8=_0x34f5e8-0x80;const _0x112709=_0x1127();let _0x1a3da2=_0x112709[_0x34f5e8];return _0x1a3da2;}function C(_0x33001b,_0x4c1344,_0x5b7053,_0x4a7f2d=!0x0){const _0x183667=_0x8849ec;let _0x563079=S(_0x33001b,_0x4c1344),_0x5948c8=_0x5b7053['t'](_0x563079);return _0x4a7f2d?_0x33001b===t[_0x183667(0x10a)][_0x183667(0x19c)]&&_0x4c1344===t['MCPConnectionError'][_0x183667(0x169)]?_0x5948c8+'\x20-\x20'+_0x5b7053['t'](_0x183667(0x97)):_0x33001b===t[_0x183667(0x10a)]['CONNECTED']?''+_0x5948c8:_0x33001b===t[_0x183667(0x10a)][_0x183667(0x19c)]||_0x33001b===t[_0x183667(0x10a)][_0x183667(0x179)]?_0x5948c8+_0x183667(0x139)+_0x5b7053['t'](_0x183667(0x1c3)):_0x5948c8:_0x5948c8;}function w(_0x35ecc5){const _0x338329=_0x8849ec;switch(_0x35ecc5){case t['MCPConnectionStatus'][_0x338329(0x1a7)]:return _0x338329(0x182);case t['MCPConnectionStatus'][_0x338329(0x14d)]:case t[_0x338329(0x10a)]['RETRYING']:return'univer-text-yellow-500';case t[_0x338329(0x10a)][_0x338329(0x179)]:case t[_0x338329(0x10a)][_0x338329(0x19c)]:return'univer-text-red-500';default:return'univer-text-gray-500';}}function T(_0x52b3a4){const _0xa77edc=_0x8849ec;let {status$:_0x72f62b,error$:_0x43c856,onConfigure:_0x330c5e,showClickable:_0x48a0fe=!0x0}=_0x52b3a4,_0x5ac735=(0x0,r[_0xa77edc(0x1ad)])(_0x72f62b,t['MCPConnectionStatus'][_0xa77edc(0x19c)]),_0x3473df=(0x0,r['useObservable'])(_0x43c856,t['MCPConnectionError']['NONE']),_0x480bb8=(0x0,r[_0xa77edc(0x1b2)])(e[_0xa77edc(0x8b)]),_0x591b7f=_0x5ac735===t[_0xa77edc(0x10a)][_0xa77edc(0x1a7)];_0x5ac735===t[_0xa77edc(0x10a)][_0xa77edc(0x14d)]||t[_0xa77edc(0x10a)][_0xa77edc(0x181)];let _0x31b31d=_0x480bb8['t'](S(_0x5ac735,_0x3473df)),_0x57f9a8=C(_0x5ac735,_0x3473df,_0x480bb8,_0x48a0fe),_0x1a8b4b=w(_0x5ac735),_0x47831d=_0x591b7f?(0x0,s['jsx'])(a[_0xa77edc(0x167)],{}):(0x0,s[_0xa77edc(0x1c8)])(a[_0xa77edc(0x122)],{}),_0x433236=(0x0,o[_0xa77edc(0x12b)])(()=>{_0x48a0fe&&_0x330c5e&&_0x330c5e();},[_0x48a0fe,_0x330c5e]);function _0x309be3(){const _0x1407d8=_0xa77edc;return(0x0,s['jsxs'])(_0x1407d8(0x193),{'className':(0x0,n[_0x1407d8(0xe7)])('univer-flex\x20univer-items-center',_0x48a0fe&&_0x330c5e&&_0x1407d8(0xeb)),'role':_0x1407d8(0x147),'onClick':_0x48a0fe&&_0x330c5e?_0x433236:void 0x0,'children':[(0x0,s[_0x1407d8(0x1c8)])(_0x1407d8(0x193),{'className':(0x0,n['clsx'])(_0x1407d8(0x89),_0x1a8b4b),'children':_0x47831d}),(0x0,s[_0x1407d8(0x1c8)])(_0x1407d8(0x193),{'className':_0x1407d8(0x1c9),'children':_0x31b31d})]});}return(0x0,s[_0xa77edc(0x1c8)])(n[_0xa77edc(0x153)],{'title':_0x57f9a8,'placement':_0xa77edc(0x16a),'children':_0x309be3()});}let E=class extends e['Disposable']{constructor(_0x5270dc,_0xc80bf6,_0x327008,_0x2cae46){const _0x31a952=_0x8849ec;super(),this['_injector']=_0x5270dc,this['_connectionController']=_0xc80bf6,this[_0x31a952(0xfe)]=_0x327008,this[_0x31a952(0x129)]=_0x2cae46,this[_0x31a952(0x1a8)](),this[_0x31a952(0x15f)]();}[_0x8849ec(0x1a8)](){const _0x292973=_0x8849ec;let _0x195ed0=this[_0x292973(0x129)][_0x292973(0x10b)](u);_0x195ed0!=null&&_0x195ed0['showDeveloperTools']&&(this[_0x292973(0x9a)][_0x292973(0x109)]=!0x1);}[_0x8849ec(0x15f)](){const _0x4493a0=_0x8849ec;let _0x369fa0=this[_0x4493a0(0x129)][_0x4493a0(0x10b)](u);(_0x369fa0==null?void 0x0:_0x369fa0[_0x4493a0(0x9f)])!==!0x1&&this[_0x4493a0(0x110)](this[_0x4493a0(0xfe)][_0x4493a0(0xdf)](r['BuiltInUIPart'][_0x4493a0(0x1d5)],()=>{const _0x1b389c=_0x4493a0;var _0x23d744;return(0x0,r[_0x1b389c(0x154)])(D({'status$':this[_0x1b389c(0x9a)][_0x1b389c(0x1b5)],'error$':this[_0x1b389c(0x9a)][_0x1b389c(0x15a)],'onConfigure':()=>this[_0x1b389c(0x11d)](),'showClickable':(_0x23d744=_0x369fa0==null?void 0x0:_0x369fa0[_0x1b389c(0x15c)])==null?!0x1:_0x23d744}),this['_injector']);}));}[_0x8849ec(0x11d)](){const _0x2b4579=_0x8849ec;this[_0x2b4579(0x16b)][_0x2b4579(0x1b0)](b)['showConfigPanel']();}};E=_([g(0x0,(0x0,e[_0x8849ec(0x138)])(e[_0x8849ec(0x16e)])),g(0x1,(0x0,e[_0x8849ec(0x138)])(t[_0x8849ec(0x125)])),g(0x2,r[_0x8849ec(0x130)]),g(0x3,e[_0x8849ec(0x1d2)])],E);function D(_0x250dc9){let {status$:_0x33c394,error$:_0x1e0018,onConfigure:_0x6fa27d,showClickable:_0x2f7fa5}=_0x250dc9;return function(){const _0x21fdb1=_0x1a3d;return(0x0,s[_0x21fdb1(0x1c8)])(T,{'status$':_0x33c394,'error$':_0x1e0018,'onConfigure':_0x6fa27d,'showClickable':_0x2f7fa5});};}function O(_0x248a55){const _0x3c21af=_0x8849ec;return{'id':x['id'],'type':r['MenuItemType'][_0x3c21af(0x148)],'icon':_0x3c21af(0x136),'title':'mcpConfig.title','tooltip':_0x3c21af(0x1a0)};}const k={[r[_0x8849ec(0x141)][_0x8849ec(0x1c5)]]:{[x['id']]:{'order':0xa,'menuItemFactory':O}}};let A=class extends e[_0x8849ec(0xd7)]{constructor(_0x161f5f,_0x1fa3ca){const _0x17dca6=_0x8849ec;super(),this['_commandService']=_0x161f5f,this[_0x17dca6(0x13f)]=_0x1fa3ca,this[_0x17dca6(0x18c)](),this[_0x17dca6(0x8f)]();}[_0x8849ec(0x18c)](){const _0x128ed7=_0x8849ec;[x][_0x128ed7(0x87)](_0x26ae4c=>{const _0x5494bd=_0x128ed7;this[_0x5494bd(0x110)](this['_commandService'][_0x5494bd(0xcb)](_0x26ae4c));});}['_initializeMenus'](){const _0x5c2c1f=_0x8849ec;this[_0x5c2c1f(0x13f)][_0x5c2c1f(0xc3)](k);}};A=_([g(0x0,e[_0x8849ec(0xf0)]),g(0x1,r[_0x8849ec(0x142)])],A);const j={'mcpStatus':{'disconnected':_0x8849ec(0xc1),'connecting':_0x8849ec(0x1ca),'connected':_0x8849ec(0xb3),'failed':_0x8849ec(0x197),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x8849ec(0x92),'networkError':_0x8849ec(0xef),'maxRetriesExceeded':_0x8849ec(0x143),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x8849ec(0x10d)},'mcpConfig':{'title':_0x8849ec(0xea),'description':_0x8849ec(0x11f),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x8849ec(0x1bf),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x8849ec(0x188),'mcpClientConfig':_0x8849ec(0x188),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x8849ec(0x146),'configStep2':_0x8849ec(0xec),'configStep3':_0x8849ec(0x14e),'sessionId':_0x8849ec(0x8d),'sessionIdDescription':_0x8849ec(0x150),'authorizationDescription':_0x8849ec(0x163),'configParameters':_0x8849ec(0xfb),'maxRetries':_0x8849ec(0x1ce),'save':_0x8849ec(0x1d0),'saving':_0x8849ec(0x1a5),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x8849ec(0xee),'configError':_0x8849ec(0x1be),'apiApplyInfo':{'title':_0x8849ec(0x1ba),'description':_0x8849ec(0x1bc),'univerAiLabel':_0x8849ec(0xe8),'getStarted':_0x8849ec(0x104)},'validation':{'apiKeyRequired':_0x8849ec(0x116),'apiKeyTooShort':_0x8849ec(0x14a),'invalidConfig':_0x8849ec(0x9d),'invalidApiKey':_0x8849ec(0x102)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x8849ec(0xed),'connected':'Connected','failed':_0x8849ec(0xd1),'retrying':_0x8849ec(0x13d)},'connectionError':{'unauthorized':_0x8849ec(0x1a6),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x8849ec(0x99)}}},M={'mcpStatus':{'disconnected':_0x8849ec(0x11e),'connecting':_0x8849ec(0x161),'connected':_0x8849ec(0x107),'failed':_0x8849ec(0x9b),'retrying':_0x8849ec(0x117),'unknown':'MCP\x20状态未知','unauthorized':_0x8849ec(0x144),'sessionOccupied':_0x8849ec(0xd2),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x8849ec(0x10f),'clickToConnect':_0x8849ec(0x157),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':_0x8849ec(0x84),'description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x8849ec(0xe1),'apiKeyHint':_0x8849ec(0x166),'enableAuth':'启用身份验证','enableAuthHint':_0x8849ec(0x93),'connectionInfo':_0x8849ec(0xba),'mcpClientConfig':_0x8849ec(0xba),'configInstructions':_0x8849ec(0xa2),'configStepTitle':_0x8849ec(0x15e),'configStep1':_0x8849ec(0x183),'configStep2':_0x8849ec(0x103),'configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x8849ec(0xff),'sessionIdDescription':_0x8849ec(0x145),'authorizationDescription':_0x8849ec(0x105),'configParameters':'配置参数:','maxRetries':'最大重试次数','save':'保存配置','saving':_0x8849ec(0x120),'note1':_0x8849ec(0x1af),'note2':_0x8849ec(0x121),'configSaved':_0x8849ec(0x19b),'configError':_0x8849ec(0x80),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x8849ec(0x19d),'univerAiLabel':_0x8849ec(0x176),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x8849ec(0x115),'apiKeyTooShort':_0x8849ec(0xcf),'invalidConfig':'配置无效','invalidApiKey':_0x8849ec(0xc9)},'connectionStatus':{'disconnected':_0x8849ec(0x8a),'connecting':'连接中...','connected':_0x8849ec(0xaa),'failed':_0x8849ec(0x172),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x8849ec(0x88),'sessionOccupied':_0x8849ec(0xf4),'networkError':_0x8849ec(0x171),'maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var N='@univerjs-pro/mcp-ui',P='0.20.1';let F=class extends e[_0x8849ec(0x198)]{constructor(_0xa61f51=d,_0x584c75,_0x39c547,_0x2b9256,_0x157f64,_0xf61ef1){const _0x443c84=_0x8849ec;super(),this[_0x443c84(0xdd)]=_0xa61f51,this['_injector']=_0x584c75,this[_0x443c84(0x129)]=_0x39c547,this['_uiPartsService']=_0x2b9256,this[_0x443c84(0xe0)]=_0x157f64,this[_0x443c84(0x16c)]=_0xf61ef1;let {..._0x21bc31}=(0x0,e['merge'])({},d,this[_0x443c84(0xdd)]);this[_0x443c84(0x129)][_0x443c84(0xf7)](u,_0x21bc31);}async[_0x8849ec(0x196)](){const _0x4175de=_0x8849ec;let _0x5bace6=[[E],[b],[A]];this[_0x4175de(0x16b)][_0x4175de(0x10e)](c['ISocketService'])||_0x5bace6[_0x4175de(0xb8)]([c['ISocketService'],{'useClass':c[_0x4175de(0x19a)]}]),_0x5bace6[_0x4175de(0x87)](_0xb5af6c=>this['_injector'][_0x4175de(0x1c0)](_0xb5af6c)),this[_0x4175de(0x16b)][_0x4175de(0x1b0)](E),this['_injector'][_0x4175de(0x1b0)](b),this[_0x4175de(0x16b)][_0x4175de(0x1b0)](A);}};h(F,_0x8849ec(0x149),_0x8849ec(0xcc)),h(F,'packageName',N),h(F,_0x8849ec(0x17c),P),F=_([(0x0,e[_0x8849ec(0x151)])(t['UniverMCPPlugin']),g(0x1,(0x0,e[_0x8849ec(0x138)])(e['Injector'])),g(0x2,e['IConfigService']),g(0x3,r[_0x8849ec(0x130)]),g(0x4,e['ILocalStorageService']),g(0x5,(0x0,e['Inject'])(e[_0x8849ec(0x8b)]))],F),exports[_0x8849ec(0xd0)]=l,Object[_0x8849ec(0x1b4)](exports,'MCPConfigUIController',{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x8849ec(0x194),{'enumerable':!0x0,'get':function(){return E;}}),exports[_0x8849ec(0x19f)]=T,Object['defineProperty'](exports,_0x8849ec(0xa7),{'enumerable':!0x0,'get':function(){return A;}}),exports['OpenMCPConfigPanelCommand']=x,Object['defineProperty'](exports,_0x8849ec(0x112),{'enumerable':!0x0,'get':function(){return F;}}),exports['enUS']=j,exports[_0x8849ec(0x15d)]=M;
1
+ const _0x370a48=_0x8260;(function(_0x50ae81,_0x54327f){const _0x2fa4ed=_0x8260,_0x36c5ec=_0x50ae81();while(!![]){try{const _0x49faa8=-parseInt(_0x2fa4ed(0x20f))/0x1+-parseInt(_0x2fa4ed(0x241))/0x2*(-parseInt(_0x2fa4ed(0x251))/0x3)+-parseInt(_0x2fa4ed(0x27c))/0x4*(parseInt(_0x2fa4ed(0x307))/0x5)+-parseInt(_0x2fa4ed(0x302))/0x6*(parseInt(_0x2fa4ed(0x2cc))/0x7)+-parseInt(_0x2fa4ed(0x30b))/0x8+-parseInt(_0x2fa4ed(0x278))/0x9*(-parseInt(_0x2fa4ed(0x31f))/0xa)+parseInt(_0x2fa4ed(0x2bf))/0xb;if(_0x49faa8===_0x54327f)break;else _0x36c5ec['push'](_0x36c5ec['shift']());}catch(_0xd7e001){_0x36c5ec['push'](_0x36c5ec['shift']());}}}(_0x2d59,0x85dfd),Object['defineProperty'](exports,Symbol[_0x370a48(0x209)],{'value':_0x370a48(0x2a3)}));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(_0x207af3){const _0x46f832=_0x370a48;var _0x449e41,_0x2a6567;const {mcpCoreConfig:_0x1713d2,onSave:_0x5a93e5,loading:loading=![],config:_0x3facc8,connectionStatus$:_0x54d540,connectionError$:_0x642dab,currentApiKey$:_0x51a886,currentSessionId$:_0x5c3aa4}=_0x207af3,_0x4a0362=(0x0,_univerjs_ui[_0x46f832(0x255)])(_univerjs_core[_0x46f832(0x28c)]),_0x49964d=(0x0,_univerjs_ui[_0x46f832(0x282)])(_0x54d540,_univerjs_pro_mcp['MCPConnectionStatus'][_0x46f832(0x308)]),_0x1ac951=(0x0,_univerjs_ui[_0x46f832(0x282)])(_0x642dab,_univerjs_pro_mcp[_0x46f832(0x300)][_0x46f832(0x208)]),_0x1d4004=(0x0,_univerjs_ui[_0x46f832(0x282)])(_0x5c3aa4,''),[_0x20c3f7,_0x50bc33]=(0x0,react[_0x46f832(0x22c)])((0x0,_univerjs_ui['useObservable'])(_0x51a886,'')||''),_0x55f64b=!![],_0x323ee0=_0x3facc8[_0x46f832(0x344)]&&_0x1713d2[_0x46f832(0x211)]&&(_0x1713d2[_0x46f832(0x211)][_0x46f832(0x292)](_0x46f832(0x26c))||_0x1713d2[_0x46f832(0x211)][_0x46f832(0x292)](_0x46f832(0x249))),_0x5ef8f2=(_0x449e41=_0x1713d2['mcpServerUrl'])===null||_0x449e41===void 0x0?void 0x0:_0x449e41['includes']('univer.plus'),_0x2fe8b8=(_0x2a6567=_0x1713d2[_0x46f832(0x211)])===null||_0x2a6567===void 0x0?void 0x0:_0x2a6567['includes']('univer.ai'),_0x15e03b=_0x5ef8f2?_0x46f832(0x319):'https://console.univer.ai',_0x49ade8=_0x3facc8[_0x46f832(0x344)]&&(_0x5ef8f2||_0x2fe8b8),[_0x273614,_0x2f35be]=(0x0,react[_0x46f832(0x22c)])(!_0x20c3f7['trim']()),_0x56f908=(_0x2cf82f,_0x1ae5bb)=>{const _0x3bd652=_0x46f832;if(_0x1ae5bb===_univerjs_pro_mcp['MCPConnectionError'][_0x3bd652(0x23c)])return _0x3bd652(0x210);switch(_0x2cf82f){case _univerjs_pro_mcp[_0x3bd652(0x276)][_0x3bd652(0x2af)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _univerjs_pro_mcp[_0x3bd652(0x276)][_0x3bd652(0x23b)]:case _univerjs_pro_mcp[_0x3bd652(0x276)][_0x3bd652(0x336)]:return _0x3bd652(0x2b4);case _univerjs_pro_mcp[_0x3bd652(0x276)][_0x3bd652(0x2ad)]:return _0x3bd652(0x210);default:return _0x3bd652(0x2dd);}},_0x2985c8=(_0x458aed,_0x255b0a)=>{const _0x4fc756=_0x46f832;if(_0x255b0a===_univerjs_pro_mcp['MCPConnectionError']['UNAUTHORIZED'])return _0x4fc756(0x262);switch(_0x458aed){case _univerjs_pro_mcp[_0x4fc756(0x276)][_0x4fc756(0x2af)]:return _0x4fc756(0x29f);case _univerjs_pro_mcp['MCPConnectionStatus'][_0x4fc756(0x23b)]:case _univerjs_pro_mcp[_0x4fc756(0x276)]['RETRYING']:return _0x4fc756(0x271);case _univerjs_pro_mcp[_0x4fc756(0x276)][_0x4fc756(0x2ad)]:return _0x4fc756(0x262);default:return _0x4fc756(0x21f);}},_0x248e9=_0x3cffaf=>{const _0x4c0e2d=_0x46f832;switch(_0x3cffaf){case _univerjs_pro_mcp[_0x4c0e2d(0x276)][_0x4c0e2d(0x2af)]:return _0x4a0362['t']('mcpConfig.connectionStatus.connected');case _univerjs_pro_mcp[_0x4c0e2d(0x276)][_0x4c0e2d(0x23b)]:return _0x4a0362['t'](_0x4c0e2d(0x2ef));case _univerjs_pro_mcp[_0x4c0e2d(0x276)]['FAILED']:return _0x4a0362['t'](_0x4c0e2d(0x264));case _univerjs_pro_mcp['MCPConnectionStatus'][_0x4c0e2d(0x336)]:return _0x4a0362['t'](_0x4c0e2d(0x216));default:return _0x4a0362['t']('mcpConfig.connectionStatus.disconnected');}},_0x4cd1f6=_0xe5c498=>{const _0x4deb6b=_0x46f832;switch(_0xe5c498){case _univerjs_pro_mcp[_0x4deb6b(0x300)][_0x4deb6b(0x23c)]:return _0x4a0362['t']('mcpConfig.connectionError.unauthorized');case _univerjs_pro_mcp[_0x4deb6b(0x300)][_0x4deb6b(0x346)]:return _0x4a0362['t']('mcpConfig.connectionError.sessionOccupied');case _univerjs_pro_mcp['MCPConnectionError'][_0x4deb6b(0x31e)]:return _0x4a0362['t']('mcpConfig.connectionError.networkError');case _univerjs_pro_mcp[_0x4deb6b(0x300)][_0x4deb6b(0x27b)]:return _0x4a0362['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x439faf=(0x0,react[_0x46f832(0x2cd)])(()=>{const _0x434a8b=_0x46f832;_0x5a93e5({..._0x1713d2,'apiKey':_0x20c3f7[_0x434a8b(0x222)](),'enableAuth':_0x55f64b});},[_0x1713d2,_0x20c3f7,_0x55f64b,_0x5a93e5]),_0x1832f5=_0x20c3f7['trim']()[_0x46f832(0x32b)]>0x0;return(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x46f832(0x334),'children':(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x46f832(0x289),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x311),'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':'univer-text-white','children':'⚙'})}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])('p',{'className':_0x46f832(0x316),'children':_0x4a0362['t'](_0x46f832(0x288))})})]})}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x243),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':(0x0,_univerjs_design[_0x46f832(0x2bc)])(_0x46f832(0x1fe),_0x56f908(_0x49964d,_0x1ac951)),'children':(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x2a6),'children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':(0x0,_univerjs_design[_0x46f832(0x2bc)])(_0x46f832(0x2a7),_0x2985c8(_0x49964d,_0x1ac951))}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':_0x46f832(0x296),'children':_0x248e9(_0x49964d)})]})}),_0x1ac951!==_univerjs_pro_mcp[_0x46f832(0x300)][_0x46f832(0x208)]&&(_0x49964d===_univerjs_pro_mcp[_0x46f832(0x276)]['FAILED']||_0x1ac951===_univerjs_pro_mcp[_0x46f832(0x300)][_0x46f832(0x23c)])&&(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x234),'children':(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x228),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':'univer-shrink-0\x20univer-text-red-500','children':'⚠️'}),(0x0,react_jsx_runtime['jsx'])('p',{'className':_0x46f832(0x26b),'children':_0x4cd1f6(_0x1ac951)})]})})]}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x2f5),'children':(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x2a5),'children':[(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x220),'children':[(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x21c),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'children':'🔑'}),'\x20',_0x4a0362['t'](_0x46f832(0x242)),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':_0x46f832(0x291),'children':'*'}),_0x323ee0&&(0x0,react_jsx_runtime['jsx'])('a',{'className':_0x46f832(0x229),'title':_0x4a0362['t'](_0x46f832(0x225)),'role':_0x46f832(0x2d9),'onClick':()=>_0x2f35be(!![]),'children':(0x0,react_jsx_runtime['jsx'])(_univerjs_icons['HelpIcon'],{})})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x46f832(0x2e1)],{'type':_0x46f832(0x31c),'placeholder':_0x4a0362['t'](_0x46f832(0x2b3)),'value':_0x20c3f7,'disabled':loading,'autoComplete':_0x46f832(0x21e),'onChange':_0x50bc33}),(0x0,react_jsx_runtime['jsx'])('p',{'className':_0x46f832(0x223),'children':_0x4a0362['t'](_0x46f832(0x25e))})]}),_0x323ee0&&_0x273614&&(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'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['jsx'])('a',{'className':_0x46f832(0x2ac),'role':_0x46f832(0x2d9),'onClick':()=>_0x2f35be(![]),'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_univerjs_icons[_0x46f832(0x348)],{'className':_0x46f832(0x24d)})}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x256),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x244),'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':_0x46f832(0x325),'children':'🚀'})}),(0x0,react_jsx_runtime[_0x46f832(0x212)])('div',{'className':_0x46f832(0x261),'children':[(0x0,react_jsx_runtime['jsx'])('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x4a0362['t'](_0x46f832(0x225))}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])('p',{'className':_0x46f832(0x34b),'children':_0x4a0362['t']('mcpConfig.apiApplyInfo.description')}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x290),'children':_0x49ade8&&(0x0,react_jsx_runtime[_0x46f832(0x212)])('a',{'className':'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','href':_0x15e03b,'target':_0x46f832(0x32a),'rel':'noopener\x20noreferrer','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('span',{'children':'🤖'}),_0x4a0362['t'](_0x46f832(0x293)),(0x0,react_jsx_runtime['jsx'])(_0x46f832(0x29b),{'className':_0x46f832(0x32c),'children':'↗'})]})}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x4a0362['t'](_0x46f832(0x22b))]})]})]})]}),_0x3facc8[_0x46f832(0x344)]&&(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x1fd),'children':[(0x0,react_jsx_runtime[_0x46f832(0x212)])('h4',{'className':_0x46f832(0x310),'children':[(0x0,react_jsx_runtime['jsx'])(_0x46f832(0x29b),{'children':'🔗'}),'\x20',_0x4a0362['t'](_0x46f832(0x24a))]}),(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'className':_0x46f832(0x317),'children':[(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-space-y-3','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('p',{'className':_0x46f832(0x2c5),'children':_0x4a0362['t'](_0x46f832(0x2c1))}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x220),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x30f),'children':_0x4a0362['t'](_0x46f832(0x1f2))}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x20b),'children':[(0x0,react_jsx_runtime['jsxs'])('div',{'className':_0x46f832(0x2a6),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'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':'1'}),_0x4a0362['t'](_0x46f832(0x2eb))]}),(0x0,react_jsx_runtime['jsxs'])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('span',{'className':_0x46f832(0x324),'children':'2'}),_0x4a0362['t'](_0x46f832(0x2fc))]}),(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'className':_0x46f832(0x2a6),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'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'}),_0x4a0362['t'](_0x46f832(0x32d))]})]})]})]}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':'univer-space-y-2','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('div',{'className':_0x46f832(0x30f),'children':'MCP\x20Configuration'}),(0x0,react_jsx_runtime[_0x46f832(0x33e)])('div',{'className':_0x46f832(0x23e),'children':(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x207),{'className':_0x46f832(0x2f3),'children':JSON[_0x46f832(0x2ce)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x1d4004||_0x46f832(0x342)),'type':_0x46f832(0x341),'headers':{'Authorization':_0x46f832(0x215)+(_0x20c3f7||_0x46f832(0x2ba))}}}},null,0x2)})})]}),(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'className':_0x46f832(0x2d0),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x30f),'children':_0x4a0362['t'](_0x46f832(0x345))}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x220),'children':[(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x2ec),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x245)}),(0x0,react_jsx_runtime[_0x46f832(0x212)])('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':_0x46f832(0x1ed),'children':_0x46f832(0x2e2)}),(0x0,react_jsx_runtime['jsx'])(_0x46f832(0x23d),{'className':_0x46f832(0x223),'children':_0x4a0362['t'](_0x46f832(0x33f))})]})]}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x2ec),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x23d),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x23d),{'className':_0x46f832(0x265),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])('div',{'className':_0x46f832(0x1ed),'children':_0x46f832(0x295)}),(0x0,react_jsx_runtime['jsx'])(_0x46f832(0x23d),{'className':_0x46f832(0x223),'children':_0x4a0362['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,react_jsx_runtime['jsx'])(_univerjs_design[_0x46f832(0x298)],{'onClick':_0x439faf,'disabled':!_0x1832f5||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'])(_0x46f832(0x29b),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'children':'⟲'}),_0x4a0362['t']('mcpConfig.saving')]}):(0x0,react_jsx_runtime[_0x46f832(0x212)])(_0x46f832(0x29b),{'className':_0x46f832(0x2a6),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_univerjs_icons[_0x46f832(0x2c2)],{}),_0x4a0362['t'](_0x46f832(0x343))]})}),(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x46f832(0x2b6),'children':(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'className':_0x46f832(0x22d),'children':[(0x0,react_jsx_runtime[_0x46f832(0x33e)])(_0x46f832(0x29b),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,react_jsx_runtime[_0x46f832(0x212)])('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[(0x0,react_jsx_runtime['jsx'])('div',{'className':_0x46f832(0x1f1),'children':_0x46f832(0x283)}),(0x0,react_jsx_runtime['jsxs'])(_0x46f832(0x23d),{'children':['•',_0x4a0362['t'](_0x46f832(0x2e9))]}),(0x0,react_jsx_runtime['jsxs'])('div',{'children':['•',_0x4a0362['t'](_0x46f832(0x309))]})]})]})})]})})]});}const MCP_UI_PLUGIN_CONFIG_KEY=_0x370a48(0x263),configSymbol=Symbol(MCP_UI_PLUGIN_CONFIG_KEY),defaultPluginConfig={'showDeveloperTools':![],'showStatus':!![]};function _typeof(_0x17baf2){'@babel/helpers - typeof';const _0x5c330a=_0x370a48;return _typeof=_0x5c330a(0x304)==typeof Symbol&&'symbol'==typeof Symbol['iterator']?function(_0x1f2bbc){return typeof _0x1f2bbc;}:function(_0x515b79){const _0x2163dc=_0x5c330a;return _0x515b79&&_0x2163dc(0x304)==typeof Symbol&&_0x515b79[_0x2163dc(0x2d3)]===Symbol&&_0x515b79!==Symbol['prototype']?'symbol':typeof _0x515b79;},_typeof(_0x17baf2);}function toPrimitive(_0x29daaf,_0x277441){const _0x26081a=_0x370a48;if('object'!=_typeof(_0x29daaf)||!_0x29daaf)return _0x29daaf;var _0x47108e=_0x29daaf[Symbol[_0x26081a(0x27f)]];if(void 0x0!==_0x47108e){var _0x5aa63a=_0x47108e['call'](_0x29daaf,_0x277441||_0x26081a(0x201));if(_0x26081a(0x2cb)!=_typeof(_0x5aa63a))return _0x5aa63a;throw new TypeError(_0x26081a(0x31b));}return(_0x26081a(0x2a8)===_0x277441?String:Number)(_0x29daaf);}function toPropertyKey(_0x3489f9){const _0x33b617=_0x370a48;var _0x221a01=toPrimitive(_0x3489f9,_0x33b617(0x2a8));return _0x33b617(0x301)==_typeof(_0x221a01)?_0x221a01:_0x221a01+'';}function _0x8260(_0x594d59,_0x31cb4e){_0x594d59=_0x594d59-0x1ec;const _0x2d59b0=_0x2d59();let _0x8260e0=_0x2d59b0[_0x594d59];return _0x8260e0;}function _defineProperty(_0x3a4035,_0x18604b,_0x5aad3b){return(_0x18604b=toPropertyKey(_0x18604b))in _0x3a4035?Object['defineProperty'](_0x3a4035,_0x18604b,{'value':_0x5aad3b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a4035[_0x18604b]=_0x5aad3b,_0x3a4035;}function __decorateParam(_0x16cc39,_0x468631){return function(_0x34ca30,_0x5680e2){_0x468631(_0x34ca30,_0x5680e2,_0x16cc39);};}function __decorate(_0x2476ac,_0x3a2595,_0x2afb47,_0x518f50){const _0x2ab298=_0x370a48;var _0x579a35=arguments[_0x2ab298(0x32b)],_0x47c99e=_0x579a35<0x3?_0x3a2595:_0x518f50===null?_0x518f50=Object[_0x2ab298(0x328)](_0x3a2595,_0x2afb47):_0x518f50,_0x39441e;if(typeof Reflect==='object'&&typeof Reflect[_0x2ab298(0x2a2)]===_0x2ab298(0x304))_0x47c99e=Reflect[_0x2ab298(0x2a2)](_0x2476ac,_0x3a2595,_0x2afb47,_0x518f50);else{for(var _0x8cd1da=_0x2476ac[_0x2ab298(0x32b)]-0x1;_0x8cd1da>=0x0;_0x8cd1da--)if(_0x39441e=_0x2476ac[_0x8cd1da])_0x47c99e=(_0x579a35<0x3?_0x39441e(_0x47c99e):_0x579a35>0x3?_0x39441e(_0x3a2595,_0x2afb47,_0x47c99e):_0x39441e(_0x3a2595,_0x2afb47))||_0x47c99e;}return _0x579a35>0x3&&_0x47c99e&&Object[_0x2ab298(0x238)](_0x3a2595,_0x2afb47,_0x47c99e),_0x47c99e;}const MCP_API_KEY_STORAGE_KEY=_0x370a48(0x268),MCP_CONFIG_DIALOG_ID=_0x370a48(0x280);let MCPConfigUIController=class MCPConfigUIController extends _univerjs_core['Disposable']{constructor(_0x34c558,_0x276e45,_0x23eeb3,_0x4fe8bc,_0x4e1bc1,_0x24d2a2,_0x5ae92b,_0x4a842b,_0x17901b,_0x4012da){const _0x265bd7=_0x370a48;super(),this['_injector']=_0x34c558,this['_uiPartsService']=_0x276e45,this[_0x265bd7(0x266)]=_0x23eeb3,this[_0x265bd7(0x30d)]=_0x4fe8bc,this[_0x265bd7(0x27e)]=_0x4e1bc1,this[_0x265bd7(0x2d2)]=_0x24d2a2,this['_componentManager']=_0x5ae92b,this[_0x265bd7(0x24e)]=_0x4a842b,this[_0x265bd7(0x2fa)]=_0x17901b,this[_0x265bd7(0x312)]=_0x4012da,_defineProperty(this,_0x265bd7(0x284),new rxjs[(_0x265bd7(0x2c3))](![])),_defineProperty(this,'_mcpCoreConfig$',new rxjs[(_0x265bd7(0x2c3))]({})),_defineProperty(this,_0x265bd7(0x29c),new rxjs['BehaviorSubject']({})),_defineProperty(this,_0x265bd7(0x200),new rxjs['BehaviorSubject']('')),_defineProperty(this,_0x265bd7(0x318),async _0x2982c3=>{const _0x2cad80=_0x265bd7;this[_0x2cad80(0x284)][_0x2cad80(0x2f6)](!![]);try{var _0x186ec0,_0xeb0cfe;const _0x3cfed7=await this[_0x2cad80(0x2de)](_0x2982c3);if(!_0x3cfed7[_0x2cad80(0x321)]){this[_0x2cad80(0x2d2)][_0x2cad80(0x257)]({'type':_univerjs_design[_0x2cad80(0x1fa)][_0x2cad80(0x2db)],'content':_0x3cfed7[_0x2cad80(0x1f4)]||this[_0x2cad80(0x24e)]['t']('mcpConfig.validation.invalidConfig')});return;}if(_0x2982c3[_0x2cad80(0x204)])await this[_0x2cad80(0x30d)]['setItem'](MCP_API_KEY_STORAGE_KEY,_0x2982c3[_0x2cad80(0x204)][_0x2cad80(0x222)]());else await this[_0x2cad80(0x30d)]['removeItem'](MCP_API_KEY_STORAGE_KEY);this[_0x2cad80(0x200)][_0x2cad80(0x2f6)](((_0x186ec0=_0x2982c3[_0x2cad80(0x204)])===null||_0x186ec0===void 0x0?void 0x0:_0x186ec0[_0x2cad80(0x222)]())||''),this['_mcpConnectionController'][_0x2cad80(0x2cf)]({'Authorization':_0x2cad80(0x215)+((_0xeb0cfe=_0x2982c3[_0x2cad80(0x204)])===null||_0xeb0cfe===void 0x0?void 0x0:_0xeb0cfe['trim']())}),this[_0x2cad80(0x2d2)][_0x2cad80(0x257)]({'type':_univerjs_design[_0x2cad80(0x1fa)][_0x2cad80(0x2ed)],'content':this[_0x2cad80(0x24e)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x36e55f=_0x2cad80;this[_0x36e55f(0x27e)][_0x36e55f(0x287)](MCP_CONFIG_DIALOG_ID);},0x320);}catch(_0x192d3c){this['_logService'][_0x2cad80(0x331)](_0x2cad80(0x2ea),_0x192d3c),this[_0x2cad80(0x2d2)][_0x2cad80(0x257)]({'type':_univerjs_design[_0x2cad80(0x1fa)][_0x2cad80(0x2db)],'content':this[_0x2cad80(0x24e)]['t'](_0x2cad80(0x2fe))});}finally{this[_0x2cad80(0x284)][_0x2cad80(0x2f6)](![]);}}),this[_0x265bd7(0x279)](),this[_0x265bd7(0x273)](),this['_registerComponent']();}[_0x370a48(0x2a0)](){const _0x368367=_0x370a48,_0x20102b=this[_0x368367(0x266)][_0x368367(0x34c)](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x20102b===null||_0x20102b===void 0x0?void 0x0:_0x20102b['showDeveloperTools'])this['_dialogService'][_0x368367(0x2a9)]({'id':MCP_CONFIG_DIALOG_ID,'title':{'title':this[_0x368367(0x24e)]['t'](_0x368367(0x335))},'children':{'label':_0x368367(0x2d1)},'width':0x244,'draggable':!![],'destroyOnClose':!![],'onClose':()=>{const _0x203ef6=_0x368367;this[_0x203ef6(0x27e)]['close'](MCP_CONFIG_DIALOG_ID);}});}[_0x370a48(0x349)](){const _0x595bfa=_0x370a48;return this[_0x595bfa(0x21b)][_0x595bfa(0x299)];}['_registerComponent'](){const _0x4d13f9=_0x370a48;this[_0x4d13f9(0x269)](this['_componentManager'][_0x4d13f9(0x30e)](_0x4d13f9(0x2d1),this[_0x4d13f9(0x2a4)]()));}['_createConfigPanelComponent'](){const _0x150b40=_0x370a48;return(0x0,_univerjs_ui[_0x150b40(0x2d5)])(()=>{const _0x2f2674=_0x150b40;var _0x562689,_0x3a01dd,_0x58d808;return(0x0,react_jsx_runtime[_0x2f2674(0x33e)])(MCPConfigPanel,{'config':this[_0x2f2674(0x29c)]['value'],'mcpCoreConfig':this[_0x2f2674(0x21b)][_0x2f2674(0x299)],'currentApiKey$':this[_0x2f2674(0x200)],'onSave':this[_0x2f2674(0x318)],'loading':this['_loading$'][_0x2f2674(0x299)],'connectionStatus$':(_0x562689=this[_0x2f2674(0x312)])===null||_0x562689===void 0x0?void 0x0:_0x562689[_0x2f2674(0x227)],'connectionError$':(_0x3a01dd=this['_mcpConnectionController'])===null||_0x3a01dd===void 0x0?void 0x0:_0x3a01dd[_0x2f2674(0x2ca)],'currentSessionId$':(_0x58d808=this[_0x2f2674(0x312)])===null||_0x58d808===void 0x0?void 0x0:_0x58d808[_0x2f2674(0x272)]});},this['_injector']);}[_0x370a48(0x279)](){const _0x1af531=_0x370a48;this[_0x1af531(0x269)](this['_configService'][_0x1af531(0x20a)](_univerjs_pro_mcp[_0x1af531(0x2f1)])[_0x1af531(0x235)](_0x5c8c0f=>{const _0x5b5600=_0x1af531;this[_0x5b5600(0x21b)][_0x5b5600(0x2f6)](_0x5c8c0f||{});}));const _0x318b46=this[_0x1af531(0x266)][_0x1af531(0x34c)](_univerjs_pro_mcp['MCP_PLUGIN_CONFIG_KEY']);this[_0x1af531(0x21b)][_0x1af531(0x2f6)](_0x318b46||{}),this[_0x1af531(0x269)](this[_0x1af531(0x266)][_0x1af531(0x20a)](MCP_UI_PLUGIN_CONFIG_KEY)[_0x1af531(0x235)](_0x23e7f2=>{const _0x730c19=_0x1af531;this[_0x730c19(0x29c)][_0x730c19(0x2f6)](_0x23e7f2||{});}));const _0x16fad6=this[_0x1af531(0x266)][_0x1af531(0x34c)](MCP_UI_PLUGIN_CONFIG_KEY);this['_config$'][_0x1af531(0x2f6)](_0x16fad6||{});}async['_loadStoredApiKey'](){const _0x4096dd=_0x370a48,_0x13f11b=this[_0x4096dd(0x266)][_0x4096dd(0x34c)](MCP_UI_PLUGIN_CONFIG_KEY);if(!(_0x13f11b===null||_0x13f11b===void 0x0?void 0x0:_0x13f11b[_0x4096dd(0x344)]))return;const _0x4dee95=await this['_localStorageService'][_0x4096dd(0x24b)](MCP_API_KEY_STORAGE_KEY);_0x4dee95&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':'Bearer\x20'+_0x4dee95}),this[_0x4096dd(0x200)][_0x4096dd(0x2f6)](_0x4dee95));}async[_0x370a48(0x2de)](_0x179cca){const _0x148970=_0x370a48;if(!_0x179cca['apiKey']||_0x179cca[_0x148970(0x204)][_0x148970(0x222)]()[_0x148970(0x32b)]===0x0)return{'isValid':![],'errorMessage':this[_0x148970(0x24e)]['t'](_0x148970(0x347))};if(_0x179cca[_0x148970(0x204)]['trim']()[_0x148970(0x32b)]<0xa)return{'isValid':![],'errorMessage':this['_localeService']['t'](_0x148970(0x2b2))};try{const _0x187ec9=await this[_0x148970(0x2da)][_0x148970(0x1f9)](_univerjs_pro_mcp[_0x148970(0x2dc)])['validateApiKey'](_0x179cca[_0x148970(0x204)][_0x148970(0x222)]());if(!_0x187ec9[_0x148970(0x321)])return{'isValid':![],'errorMessage':_0x187ec9[_0x148970(0x331)]||this['_localeService']['t'](_0x148970(0x22e))};return{'isValid':!![]};}catch(_0x2f9b77){return console[_0x148970(0x320)](_0x148970(0x275),_0x2f9b77),{'isValid':!![]};}}};MCPConfigUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_core[_0x370a48(0x1f3)])),__decorateParam(0x1,_univerjs_ui['IUIPartsService']),__decorateParam(0x2,_univerjs_core[_0x370a48(0x202)]),__decorateParam(0x3,_univerjs_core[_0x370a48(0x2b5)]),__decorateParam(0x4,_univerjs_ui[_0x370a48(0x315)]),__decorateParam(0x5,_univerjs_ui[_0x370a48(0x203)]),__decorateParam(0x6,(0x0,_univerjs_core['Inject'])(_univerjs_ui[_0x370a48(0x2b8)])),__decorateParam(0x7,(0x0,_univerjs_core['Inject'])(_univerjs_core['LocaleService'])),__decorateParam(0x8,_univerjs_core[_0x370a48(0x27d)]),__decorateParam(0x9,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_pro_mcp[_0x370a48(0x2dc)]))],MCPConfigUIController);const OpenMCPConfigPanelCommand={'id':_0x370a48(0x327),'type':_univerjs_core[_0x370a48(0x270)][_0x370a48(0x219)],'handler':async(_0x438b31,_0x1085a8)=>{const _0x13d003=_0x370a48;return _0x438b31[_0x13d003(0x1f9)](MCPConfigUIController)['showConfigPanel'](),!![];}};function mapStatusToI18NKey(_0x4b3b65,_0x1c7a66){const _0x45cf2e=_0x370a48;switch(_0x4b3b65){case _univerjs_pro_mcp['MCPConnectionStatus'][_0x45cf2e(0x308)]:return _0x45cf2e(0x2b0);case _univerjs_pro_mcp[_0x45cf2e(0x276)]['CONNECTING']:return _0x45cf2e(0x24c);case _univerjs_pro_mcp[_0x45cf2e(0x276)][_0x45cf2e(0x2af)]:return _0x45cf2e(0x28d);case _univerjs_pro_mcp[_0x45cf2e(0x276)]['FAILED']:switch(_0x1c7a66){case _univerjs_pro_mcp[_0x45cf2e(0x300)][_0x45cf2e(0x23c)]:return'mcpStatus.unauthorized';case _univerjs_pro_mcp[_0x45cf2e(0x300)][_0x45cf2e(0x346)]:return _0x45cf2e(0x21d);case _univerjs_pro_mcp[_0x45cf2e(0x300)][_0x45cf2e(0x31e)]:return _0x45cf2e(0x29a);case _univerjs_pro_mcp['MCPConnectionError']['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return _0x45cf2e(0x2e6);}case _univerjs_pro_mcp[_0x45cf2e(0x276)][_0x45cf2e(0x336)]:return _0x45cf2e(0x26a);default:return _0x45cf2e(0x1fc);}}function getTooltipText(_0x1c0ed4,_0x3e4b80,_0xc5916d,_0x2d7656=!![]){const _0x506b6d=_0x370a48,_0x56b858=mapStatusToI18NKey(_0x1c0ed4,_0x3e4b80),_0x471a1a=_0xc5916d['t'](_0x56b858);if(!_0x2d7656)return _0x471a1a;if(_0x1c0ed4===_univerjs_pro_mcp[_0x506b6d(0x276)][_0x506b6d(0x308)]&&_0x3e4b80===_univerjs_pro_mcp[_0x506b6d(0x300)][_0x506b6d(0x23c)])return _0x471a1a+'\x20-\x20'+_0xc5916d['t']('mcpStatus.clickToConfigure');else{if(_0x1c0ed4===_univerjs_pro_mcp[_0x506b6d(0x276)][_0x506b6d(0x2af)])return''+_0x471a1a;else{if(_0x1c0ed4===_univerjs_pro_mcp[_0x506b6d(0x276)][_0x506b6d(0x308)]||_0x1c0ed4===_univerjs_pro_mcp[_0x506b6d(0x276)][_0x506b6d(0x2ad)])return _0x471a1a+_0x506b6d(0x329)+_0xc5916d['t'](_0x506b6d(0x297));}}return _0x471a1a;}function getStatusColor(_0x107196){const _0x4ef18e=_0x370a48;switch(_0x107196){case _univerjs_pro_mcp[_0x4ef18e(0x276)][_0x4ef18e(0x2af)]:return'univer-text-green-500';case _univerjs_pro_mcp[_0x4ef18e(0x276)]['CONNECTING']:case _univerjs_pro_mcp[_0x4ef18e(0x276)][_0x4ef18e(0x336)]:return _0x4ef18e(0x2e0);case _univerjs_pro_mcp[_0x4ef18e(0x276)][_0x4ef18e(0x2ad)]:case _univerjs_pro_mcp[_0x4ef18e(0x276)][_0x4ef18e(0x308)]:return _0x4ef18e(0x291);default:return'univer-text-gray-500';}}function MCPStatusDisplay(_0x185fbf){const _0x843b7b=_0x370a48,{status$:_0x37992f,error$:_0x202d2e,onConfigure:_0x30f592,showClickable:showClickable=!![]}=_0x185fbf,_0x576350=(0x0,_univerjs_ui['useObservable'])(_0x37992f,_univerjs_pro_mcp['MCPConnectionStatus'][_0x843b7b(0x308)]),_0x51d787=(0x0,_univerjs_ui[_0x843b7b(0x282)])(_0x202d2e,_univerjs_pro_mcp[_0x843b7b(0x300)][_0x843b7b(0x208)]),_0x162702=(0x0,_univerjs_ui['useDependency'])(_univerjs_core[_0x843b7b(0x28c)]),_0x506379=_0x576350===_univerjs_pro_mcp['MCPConnectionStatus']['CONNECTED'];_0x576350===_univerjs_pro_mcp[_0x843b7b(0x276)][_0x843b7b(0x23b)]||_univerjs_pro_mcp[_0x843b7b(0x276)][_0x843b7b(0x336)];const _0x3eee1a=_0x162702['t'](mapStatusToI18NKey(_0x576350,_0x51d787)),_0xcda869=getTooltipText(_0x576350,_0x51d787,_0x162702,showClickable),_0x5f26f5=getStatusColor(_0x576350),_0x2fcb30=_0x506379?(0x0,react_jsx_runtime[_0x843b7b(0x33e)])(_univerjs_icons['OnLineIcon'],{}):(0x0,react_jsx_runtime[_0x843b7b(0x33e)])(_univerjs_icons[_0x843b7b(0x26f)],{}),_0x5793c7=(0x0,react[_0x843b7b(0x2cd)])(()=>{if(showClickable&&_0x30f592)_0x30f592();},[showClickable,_0x30f592]);function _0x328b9f(){const _0x2e5ef1=_0x843b7b;return(0x0,react_jsx_runtime[_0x2e5ef1(0x212)])(_0x2e5ef1(0x23d),{'className':(0x0,_univerjs_design[_0x2e5ef1(0x2bc)])(_0x2e5ef1(0x2be),showClickable&&_0x30f592&&_0x2e5ef1(0x2f0)),'role':_0x2e5ef1(0x2d9),'onClick':showClickable&&_0x30f592?_0x5793c7:void 0x0,'children':[(0x0,react_jsx_runtime[_0x2e5ef1(0x33e)])(_0x2e5ef1(0x23d),{'className':(0x0,_univerjs_design['clsx'])(_0x2e5ef1(0x2c8),_0x5f26f5),'children':_0x2fcb30}),(0x0,react_jsx_runtime[_0x2e5ef1(0x33e)])(_0x2e5ef1(0x23d),{'className':_0x2e5ef1(0x31a),'children':_0x3eee1a})]});}return(0x0,react_jsx_runtime[_0x843b7b(0x33e)])(_univerjs_design['Tooltip'],{'title':_0xcda869,'placement':_0x843b7b(0x2df),'children':_0x328b9f()});}let MCPConnectionUIController=class MCPConnectionUIController extends _univerjs_core[_0x370a48(0x23a)]{constructor(_0x2b3520,_0x209b93,_0x3c1c37,_0x151412){const _0x10c241=_0x370a48;super(),this['_injector']=_0x2b3520,this[_0x10c241(0x246)]=_0x209b93,this[_0x10c241(0x33d)]=_0x3c1c37,this['_configService']=_0x151412,this[_0x10c241(0x2fd)](),this[_0x10c241(0x2f2)]();}['_initAutoConnect'](){const _0x48403d=_0x370a48,_0x3d7090=this[_0x48403d(0x266)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if(_0x3d7090===null||_0x3d7090===void 0x0?void 0x0:_0x3d7090['showDeveloperTools'])this[_0x48403d(0x246)][_0x48403d(0x230)]=![];}[_0x370a48(0x2f2)](){const _0x335b84=_0x370a48,_0x34c3ba=this[_0x335b84(0x266)]['getConfig'](MCP_UI_PLUGIN_CONFIG_KEY);if((_0x34c3ba===null||_0x34c3ba===void 0x0?void 0x0:_0x34c3ba['showStatus'])!==![])this[_0x335b84(0x269)](this[_0x335b84(0x33d)][_0x335b84(0x2c9)](_univerjs_ui[_0x335b84(0x2b9)]['HEADER_MENU'],()=>{const _0x1aafe1=_0x335b84;var _0x108fce;return(0x0,_univerjs_ui['connectInjector'])(passProps({'status$':this[_0x1aafe1(0x246)][_0x1aafe1(0x227)],'error$':this['_connectionController'][_0x1aafe1(0x2ca)],'onConfigure':()=>this[_0x1aafe1(0x30a)](),'showClickable':(_0x108fce=_0x34c3ba===null||_0x34c3ba===void 0x0?void 0x0:_0x34c3ba[_0x1aafe1(0x344)])!==null&&_0x108fce!==void 0x0?_0x108fce:![]}),this[_0x1aafe1(0x2da)]);}));}[_0x370a48(0x30a)](){const _0x1c4b13=_0x370a48;this[_0x1c4b13(0x2da)][_0x1c4b13(0x1f9)](MCPConfigUIController)[_0x1c4b13(0x2a0)]();}};MCPConnectionUIController=__decorate([__decorateParam(0x0,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_core['Injector'])),__decorateParam(0x1,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_pro_mcp[_0x370a48(0x2dc)])),__decorateParam(0x2,_univerjs_ui['IUIPartsService']),__decorateParam(0x3,_univerjs_core[_0x370a48(0x202)])],MCPConnectionUIController);function _0x2d59(){const _0x596032=['Enable\x20Authentication','defineProperty','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Disposable','CONNECTING','UNAUTHORIZED','div','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','权限验证失败,请检查您的\x20API\x20密钥','什么是\x20API\x20密钥?','724orBOEN','mcpConfig.apiKey','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_connectionController','保存配置','MCP\x20客户端配置','univer.ai','mcpConfig.connectionInfo','getItem','mcpStatus.connecting','univer-size-4','_localeService','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','8823ccaCWj','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20未授权','MCP\x20Client\x20Configuration','useDependency','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','show','MCP\x20Retrying...','onStarting','配置\x20MCP\x20使用\x20AI\x20操作电子表格','带有\x20Bearer\x20前缀的\x20API\x20密钥。','Click\x20to\x20connect\x20MCP','连接中...','mcpConfig.apiKeyHint','UniverMCPUIPlugin','MCP\x20重连中...','univer-flex-1','univer-bg-red-500','mcp-ui.config','mcpConfig.connectionStatus.failed','univer-min-w-0\x20univer-flex-1','_configService','has','mcp.apiKey','disposeWithMe','mcpStatus.retrying','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer.plus','UniverMCPPlugin','Enter\x20your\x20API\x20key','OffLineIcon','CommandType','univer-bg-blue-500','sessionId$','_loadStoredApiKey','MCP:\x20Session\x20ID\x20Occupied','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','MCPConnectionStatus','Univer\x20AI\x20控制台','9KWDJAt','_initConfigSync','_menuManagerService','MAX_RETRIES_EXCEEDED','45740Bqjdxj','ILogService','_dialogService','toPrimitive','mcp-config-dialog','OTHERS','useObservable','Configuration\x20Notes:','_loading$','重连中...','API\x20密钥','close','mcpConfig.description','univer-flex\x20univer-items-center\x20univer-gap-3','会话ID','version','LocaleService','mcpStatus.connected','几秒钟内获取您的\x20API\x20密钥','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','univer-flex\x20univer-flex-wrap\x20univer-gap-2','univer-text-red-500','includes','mcpConfig.apiApplyInfo.univerAiLabel','MCPConnectionUIController','Authorization:','univer-text-sm\x20univer-font-medium','mcpStatus.clickToConnect','Button','value','mcpStatus.networkError','span','_config$','Save\x20Configuration','_commandService','univer-bg-green-500','showConfigPanel','MCP\x20Connection\x20Failed','decorate','Module','_createConfigPanelComponent','univer-space-y-5','univer-flex\x20univer-items-center\x20univer-gap-2','univer-size-2\x20univer-rounded-full','string','open','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20超出最大重试次数','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','FAILED','会话\x20ID\x20已被占用,请稍后再试','CONNECTED','mcpStatus.disconnected','0.21.0','mcpConfig.validation.apiKeyTooShort','mcpConfig.apiKeyPlaceholder','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','ILocalStorageService','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','MCP_UI_PLUGIN','ComponentManager','BuiltInUIPart','<API_KEY>','add','clsx','pluginName','univer-flex\x20univer-items-center','8412844VJwZRO','您的\x20API\x20密钥安全存储在本地存储中','mcpConfig.configInstructions','CheckMarkIcon','BehaviorSubject','Inject','univer-text-xs\x20univer-text-gray-600','OpenMCPConfigPanelCommand','Session\x20ID','univer-mr-2\x20univer-flex\x20univer-text-xl','registerComponent','connectionError$','object','329BlwatE','useCallback','stringify','__setCustomHeaders','univer-space-y-3','MCPConfigPanel','_messageService','constructor','重启您的\x20MCP\x20客户端以使配置生效','connectInjector','MCP\x20Connected','点击配置\x20MCP','MenuIcon','button','_injector','Error','MCPConnectionController','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','_validateConfig','bottom','univer-text-yellow-500','Input','univer_session_id:','merge','MCP\x20连接失败','MCP\x20Unknown\x20Status','mcpStatus.failed','Copy\x20the\x20JSON\x20configuration\x20below','ISocketService','mcpConfig.note1','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','mcpConfig.configStep1','univer-flex\x20univer-items-start\x20univer-gap-3','Success','MenuItemType','mcpConfig.connectionStatus.connecting','\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','MCP_PLUGIN_CONFIG_KEY','_initStatusComponent','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','next','配置更改将立即生效','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','packageName','_logService','MCP\x20Disconnected','mcpConfig.configStep2','_initAutoConnect','mcpConfig.configError','配置参数:','MCPConnectionError','symbol','56766elkNgU','已连接','function','IMenuManagerService','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','125XWnzCM','DISCONNECTED','mcpConfig.note2','_handleConfigure','5616032iQcSRb','网络连接错误,请检查您的网络连接','_localStorageService','register','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','_mcpConnectionController','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Plugin','IDialogService','univer-text-sm\x20univer-text-gray-500','univer-space-y-4','_handleConfigSave','https://console.univer.plus','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','text','MCP:\x20会话\x20ID\x20已被占用','NETWORK_ERROR','10371170tVpobY','warn','isValid','您的\x20API\x20密钥将在此浏览器中本地存储','MCPStatusDisplay','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-text-blue-600','registerCommand','mcp-ui.command.openConfigPanel','getOwnPropertyDescriptor','\x20-\x20','_blank','length','univer-text-gray-400','mcpConfig.configStep3','启用身份验证','复制以下\x20JSON\x20配置','forEach','error','_initializeMenus','Configuration\x20Parameters:','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.title','RETRYING','What\x20is\x20API\x20Key?','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Univer\x20AI\x20Console','MCP\x20Configuration','点击连接\x20MCP','API\x20密钥无效,请检查密钥是否正确','_uiPartsService','jsx','mcpConfig.sessionIdDescription','启用身份验证以获得安全连接','http','<SESSION_ID>','mcpConfig.save','showDeveloperTools','mcpConfig.configParameters','SESSION_ID_OCCUPIED','mcpConfig.validation.apiKeyRequired','CloseIcon','getCurrentConfig','MCPUIMenuController','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','getConfig','_config','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','请输入您的\x20API\x20密钥','_initializeCommands','将以下配置添加到您的\x20MCP\x20客户端设置中:','univer-font-medium','mcpConfig.configStepTitle','Injector','errorMessage','保存中...','DependentOn','Click\x20to\x20configure\x20MCP','Connected','get','MessageType','API\x20密钥不能为空','mcpStatus.unknown','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','Configuration\x20Steps:','_apiKey$','default','IConfigService','IMessageService','apiKey','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20已断开','pre','NONE','toStringTag','subscribeConfigValue$','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','配置无效','API\x20key\x20is\x20required','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','885668NPlvcH','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpServerUrl','jsxs','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20网络错误','Bearer\x20','mcpConfig.connectionStatus.retrying','MCP\x20配置','API\x20密钥长度至少需要\x2010\x20位','COMMAND','@univerjs-pro/mcp-ui','_mcpCoreConfig$','label','mcpStatus.sessionOccupied','off','univer-bg-gray-500','univer-space-y-2','enUS','trim','univer-text-xs\x20univer-text-gray-500','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpConfig.apiApplyInfo.title','Max\x20Retries','connectionStatus$','univer-flex\x20univer-items-start\x20univer-gap-2','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','Retrying...','mcpConfig.apiApplyInfo.getStarted','useState','univer-flex\x20univer-gap-3','mcpConfig.validation.invalidApiKey','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','enableAutoConnect','超出最大重试次数,请稍后再试','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','subscribe','Invalid\x20configuration'];_0x2d59=function(){return _0x596032;};return _0x2d59();}function passProps(_0x1cdb01){const {status$:_0x99a0ff,error$:_0x308af7,onConfigure:_0x27631e,showClickable:_0x96e842}=_0x1cdb01;return function _0xf4deee(){const _0x305f86=_0x8260;return(0x0,react_jsx_runtime[_0x305f86(0x33e)])(MCPStatusDisplay,{'status$':_0x99a0ff,'error$':_0x308af7,'onConfigure':_0x27631e,'showClickable':_0x96e842});};}function MCPConfigMenuItemFactory(_0x56296c){const _0x525394=_0x370a48;return{'id':OpenMCPConfigPanelCommand['id'],'type':_univerjs_ui[_0x525394(0x2ee)]['BUTTON'],'icon':_0x525394(0x2d8),'title':_0x525394(0x335),'tooltip':_0x525394(0x335)};}const menuSchema={[_univerjs_ui['RibbonStartGroup'][_0x370a48(0x281)]]:{[OpenMCPConfigPanelCommand['id']]:{'order':0xa,'menuItemFactory':MCPConfigMenuItemFactory}}};let MCPUIMenuController=class MCPUIMenuController extends _univerjs_core[_0x370a48(0x23a)]{constructor(_0xeceeb5,_0x2853eb){const _0xc9fff8=_0x370a48;super(),this[_0xc9fff8(0x29e)]=_0xeceeb5,this[_0xc9fff8(0x27a)]=_0x2853eb,this[_0xc9fff8(0x1ef)](),this[_0xc9fff8(0x332)]();}[_0x370a48(0x1ef)](){const _0x105298=_0x370a48;[OpenMCPConfigPanelCommand][_0x105298(0x330)](_0x5d2dd6=>{const _0x2f1263=_0x105298;this[_0x2f1263(0x269)](this[_0x2f1263(0x29e)][_0x2f1263(0x326)](_0x5d2dd6));});}[_0x370a48(0x332)](){const _0x432167=_0x370a48;this[_0x432167(0x27a)]['mergeMenu'](menuSchema);}};MCPUIMenuController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,_univerjs_ui[_0x370a48(0x305)])],MCPUIMenuController);const locale={'mcpStatus':{'disconnected':_0x370a48(0x2fb),'connecting':'MCP\x20Connecting...','connected':_0x370a48(0x2d6),'failed':_0x370a48(0x2a1),'retrying':_0x370a48(0x258),'unknown':_0x370a48(0x2e5),'unauthorized':_0x370a48(0x232),'sessionOccupied':_0x370a48(0x274),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x370a48(0x205),'clickToConnect':_0x370a48(0x25c),'clickToConfigure':_0x370a48(0x1f7)},'mcpConfig':{'title':_0x370a48(0x33a),'description':_0x370a48(0x306),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x370a48(0x26e),'apiKeyHint':_0x370a48(0x224),'enableAuth':_0x370a48(0x237),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x370a48(0x254),'configInstructions':_0x370a48(0x252),'configStepTitle':_0x370a48(0x1ff),'configStep1':_0x370a48(0x2e7),'configStep2':_0x370a48(0x2f4),'configStep3':_0x370a48(0x28f),'sessionId':_0x370a48(0x2c7),'sessionIdDescription':_0x370a48(0x233),'authorizationDescription':_0x370a48(0x213),'configParameters':_0x370a48(0x333),'maxRetries':_0x370a48(0x226),'save':_0x370a48(0x29d),'saving':'Saving...','note1':_0x370a48(0x2f8),'note2':_0x370a48(0x22f),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x370a48(0x337),'description':_0x370a48(0x20e),'univerAiLabel':_0x370a48(0x339),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x370a48(0x20d),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x370a48(0x236),'invalidApiKey':_0x370a48(0x2aa)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x370a48(0x1f8),'failed':'Connection\x20Failed','retrying':_0x370a48(0x22a)},'connectionError':{'unauthorized':_0x370a48(0x250),'sessionOccupied':_0x370a48(0x239),'networkError':_0x370a48(0x24f),'maxRetriesExceeded':_0x370a48(0x338)}}},locale$1={'mcpStatus':{'disconnected':_0x370a48(0x206),'connecting':'MCP\x20连接中...','connected':'MCP\x20已连接','failed':_0x370a48(0x2e4),'retrying':_0x370a48(0x260),'unknown':'MCP\x20状态未知','unauthorized':_0x370a48(0x253),'sessionOccupied':_0x370a48(0x31d),'networkError':_0x370a48(0x214),'maxRetriesExceeded':_0x370a48(0x2ab),'clickToConnect':_0x370a48(0x33b),'clickToConfigure':_0x370a48(0x2d7)},'mcpConfig':{'title':_0x370a48(0x217),'description':_0x370a48(0x25a),'apiKey':_0x370a48(0x286),'apiKeyPlaceholder':_0x370a48(0x1ee),'apiKeyHint':_0x370a48(0x322),'enableAuth':_0x370a48(0x32e),'enableAuthHint':_0x370a48(0x340),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x370a48(0x248),'configInstructions':_0x370a48(0x1f0),'configStepTitle':'配置步骤:','configStep1':_0x370a48(0x32f),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x370a48(0x2d4),'sessionId':_0x370a48(0x28a),'sessionIdDescription':_0x370a48(0x313),'authorizationDescription':_0x370a48(0x25b),'configParameters':_0x370a48(0x2ff),'maxRetries':'最大重试次数','save':_0x370a48(0x247),'saving':_0x370a48(0x1f5),'note1':_0x370a48(0x2f7),'note2':_0x370a48(0x2c0),'configSaved':'配置保存成功','configError':'配置保存失败','apiApplyInfo':{'title':_0x370a48(0x240),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x370a48(0x277),'getStarted':_0x370a48(0x28e)},'validation':{'apiKeyRequired':_0x370a48(0x1fb),'apiKeyTooShort':_0x370a48(0x218),'invalidConfig':_0x370a48(0x20c),'invalidApiKey':_0x370a48(0x33c)},'connectionStatus':{'disconnected':'未连接','connecting':_0x370a48(0x25d),'connected':_0x370a48(0x303),'failed':'连接失败','retrying':_0x370a48(0x285)},'connectionError':{'unauthorized':_0x370a48(0x23f),'sessionOccupied':_0x370a48(0x2ae),'networkError':_0x370a48(0x30c),'maxRetriesExceeded':_0x370a48(0x231)}}};var name=_0x370a48(0x21a),version=_0x370a48(0x2b1);let UniverMCPUIPlugin=class UniverMCPUIPlugin extends _univerjs_core[_0x370a48(0x314)]{constructor(_0x4bdc66=defaultPluginConfig,_0xdccb18,_0x4e9798,_0x2ce9ea,_0x5ce173,_0xf2862e){const _0x2dcfc5=_0x370a48;super(),this['_config']=_0x4bdc66,this['_injector']=_0xdccb18,this[_0x2dcfc5(0x266)]=_0x4e9798,this[_0x2dcfc5(0x33d)]=_0x2ce9ea,this[_0x2dcfc5(0x30d)]=_0x5ce173,this[_0x2dcfc5(0x24e)]=_0xf2862e;const {..._0x4e889f}=(0x0,_univerjs_core[_0x2dcfc5(0x2e3)])({},defaultPluginConfig,this[_0x2dcfc5(0x1ec)]);this[_0x2dcfc5(0x266)]['setConfig'](MCP_UI_PLUGIN_CONFIG_KEY,_0x4e889f);}async[_0x370a48(0x259)](){const _0x219164=_0x370a48,_0x419bd4=[[MCPConnectionUIController],[MCPConfigUIController],[MCPUIMenuController]];if(!this['_injector'][_0x219164(0x267)](_univerjs_network['ISocketService']))_0x419bd4['push']([_univerjs_network[_0x219164(0x2e8)],{'useClass':_univerjs_network['WebSocketService']}]);_0x419bd4[_0x219164(0x330)](_0x1fc9d8=>this[_0x219164(0x2da)][_0x219164(0x2bb)](_0x1fc9d8)),this[_0x219164(0x2da)][_0x219164(0x1f9)](MCPConnectionUIController),this[_0x219164(0x2da)][_0x219164(0x1f9)](MCPConfigUIController),this['_injector'][_0x219164(0x1f9)](MCPUIMenuController);}};_defineProperty(UniverMCPUIPlugin,_0x370a48(0x2bd),_0x370a48(0x2b7)),_defineProperty(UniverMCPUIPlugin,_0x370a48(0x2f9),name),_defineProperty(UniverMCPUIPlugin,_0x370a48(0x28b),version),UniverMCPUIPlugin=__decorate([(0x0,_univerjs_core[_0x370a48(0x1f6)])(_univerjs_pro_mcp[_0x370a48(0x26d)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x370a48(0x2c4)])(_univerjs_core[_0x370a48(0x1f3)])),__decorateParam(0x2,_univerjs_core[_0x370a48(0x202)]),__decorateParam(0x3,_univerjs_ui['IUIPartsService']),__decorateParam(0x4,_univerjs_core[_0x370a48(0x2b5)]),__decorateParam(0x5,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x370a48(0x28c)]))],UniverMCPUIPlugin),exports['MCPConfigPanel']=MCPConfigPanel,Object[_0x370a48(0x238)](exports,'MCPConfigUIController',{'enumerable':!![],'get':function(){return MCPConfigUIController;}}),Object['defineProperty'](exports,_0x370a48(0x294),{'enumerable':!![],'get':function(){return MCPConnectionUIController;}}),exports[_0x370a48(0x323)]=MCPStatusDisplay,Object[_0x370a48(0x238)](exports,_0x370a48(0x34a),{'enumerable':!![],'get':function(){return MCPUIMenuController;}}),exports[_0x370a48(0x2c6)]=OpenMCPConfigPanelCommand,Object['defineProperty'](exports,_0x370a48(0x25f),{'enumerable':!![],'get':function(){return UniverMCPUIPlugin;}}),exports[_0x370a48(0x221)]=locale,exports['zhCN']=locale$1;
@@ -1 +1 @@
1
- function _0x4ea1(){const _0x21abab=['Click\x20to\x20connect\x20MCP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','50712jwOPeu','MCP\x20Disconnected','MCP:\x20Max\x20Retries\x20Exceeded','5772672crVdbI','Saving...','Invalid\x20configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connected','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Configuration','API\x20Key','MCP\x20Unknown\x20Status','1KgAipg','Save\x20Configuration','94533vDqDBg','MCP\x20Connection\x20Failed','Configuration\x20saved\x20successfully','2954EsfJIs','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20with\x20Bearer\x20prefix.','Univer\x20AI\x20Console','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connecting...','7751711sXSGxb','MCP\x20Retrying...','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','158378oTMvEn','5704cZvdDW','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','35jCBhJl','Enter\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','Click\x20to\x20configure\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','2371450LpJoJw','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','exports','44nYmXLp','Max\x20Retries','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','What\x20is\x20API\x20Key?'];_0x4ea1=function(){return _0x21abab;};return _0x4ea1();}function _0xec7b(_0x422fc4,_0xeb3c08){_0x422fc4=_0x422fc4-0x16b;const _0x4ea1fc=_0x4ea1();let _0xec7bea=_0x4ea1fc[_0x422fc4];return _0xec7bea;}const _0xf4b343=_0xec7b;(function(_0x470ed9,_0x3ea0e5){const _0x66cfc=_0xec7b,_0x4fda4f=_0x470ed9();while(!![]){try{const _0x1b3097=-parseInt(_0x66cfc(0x172))/0x1*(-parseInt(_0x66cfc(0x183))/0x2)+parseInt(_0x66cfc(0x174))/0x3*(parseInt(_0x66cfc(0x191))/0x4)+-parseInt(_0x66cfc(0x187))/0x5*(-parseInt(_0x66cfc(0x199))/0x6)+-parseInt(_0x66cfc(0x177))/0x7*(parseInt(_0x66cfc(0x184))/0x8)+parseInt(_0x66cfc(0x19c))/0x9+parseInt(_0x66cfc(0x18c))/0xa+-parseInt(_0x66cfc(0x17e))/0xb;if(_0x1b3097===_0x3ea0e5)break;else _0x4fda4f['push'](_0x4fda4f['shift']());}catch(_0x578071){_0x4fda4f['push'](_0x4fda4f['shift']());}}}(_0x4ea1,0x57634));const e={'mcpStatus':{'disconnected':_0xf4b343(0x19a),'connecting':_0xf4b343(0x17d),'connected':_0xf4b343(0x1a0),'failed':_0xf4b343(0x175),'retrying':_0xf4b343(0x17f),'unknown':_0xf4b343(0x171),'unauthorized':_0xf4b343(0x16d),'sessionOccupied':_0xf4b343(0x18d),'networkError':_0xf4b343(0x18e),'maxRetriesExceeded':_0xf4b343(0x19b),'clickToConnect':_0xf4b343(0x197),'clickToConfigure':_0xf4b343(0x18a)},'mcpConfig':{'title':_0xf4b343(0x16f),'description':_0xf4b343(0x185),'apiKey':_0xf4b343(0x170),'apiKeyPlaceholder':_0xf4b343(0x188),'apiKeyHint':_0xf4b343(0x198),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0xf4b343(0x16c),'connectionInfo':_0xf4b343(0x16b),'mcpClientConfig':_0xf4b343(0x16b),'configInstructions':_0xf4b343(0x186),'configStepTitle':'Configuration\x20Steps:','configStep1':_0xf4b343(0x194),'configStep2':_0xf4b343(0x182),'configStep3':_0xf4b343(0x17c),'sessionId':'Session\x20ID','sessionIdDescription':_0xf4b343(0x16e),'authorizationDescription':_0xf4b343(0x17a),'configParameters':'Configuration\x20Parameters:','maxRetries':_0xf4b343(0x192),'save':_0xf4b343(0x173),'saving':_0xf4b343(0x19d),'note1':_0xf4b343(0x19f),'note2':_0xf4b343(0x179),'configSaved':_0xf4b343(0x176),'configError':_0xf4b343(0x178),'apiApplyInfo':{'title':_0xf4b343(0x196),'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':_0xf4b343(0x17b),'getStarted':_0xf4b343(0x189)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xf4b343(0x18f),'invalidConfig':_0xf4b343(0x19e),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0xf4b343(0x180),'connected':'Connected','failed':_0xf4b343(0x195),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0xf4b343(0x18b),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0xf4b343(0x181),'maxRetriesExceeded':_0xf4b343(0x193)}}};module[_0xf4b343(0x190)]=e;
1
+ function _0x5eb6(_0x265be6,_0x1aee47){_0x265be6=_0x265be6-0x7f;const _0x3fad6a=_0x3fad();let _0x5eb629=_0x3fad6a[_0x265be6];return _0x5eb629;}const _0x270aa1=_0x5eb6;(function(_0x219b5c,_0x54c6ee){const _0x4c4dac=_0x5eb6,_0x513953=_0x219b5c();while(!![]){try{const _0x20e898=parseInt(_0x4c4dac(0x86))/0x1*(-parseInt(_0x4c4dac(0x9a))/0x2)+parseInt(_0x4c4dac(0x7f))/0x3*(-parseInt(_0x4c4dac(0xad))/0x4)+parseInt(_0x4c4dac(0xa3))/0x5*(parseInt(_0x4c4dac(0x96))/0x6)+-parseInt(_0x4c4dac(0xae))/0x7+-parseInt(_0x4c4dac(0x87))/0x8+parseInt(_0x4c4dac(0x8b))/0x9*(parseInt(_0x4c4dac(0xa6))/0xa)+parseInt(_0x4c4dac(0x83))/0xb;if(_0x20e898===_0x54c6ee)break;else _0x513953['push'](_0x513953['shift']());}catch(_0x465e81){_0x513953['push'](_0x513953['shift']());}}}(_0x3fad,0x83344));const locale$1={'mcpStatus':{'disconnected':_0x270aa1(0xa0),'connecting':_0x270aa1(0x93),'connected':'MCP\x20Connected','failed':_0x270aa1(0x90),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x270aa1(0xa8),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x270aa1(0x9f),'maxRetriesExceeded':_0x270aa1(0x85),'clickToConnect':_0x270aa1(0x84),'clickToConfigure':_0x270aa1(0x8d)},'mcpConfig':{'title':_0x270aa1(0xab),'description':_0x270aa1(0x91),'apiKey':_0x270aa1(0xa7),'apiKeyPlaceholder':_0x270aa1(0xac),'apiKeyHint':_0x270aa1(0x95),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x270aa1(0x89),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x270aa1(0xa2),'configStepTitle':_0x270aa1(0x8f),'configStep1':_0x270aa1(0xaa),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x270aa1(0x9e),'sessionIdDescription':_0x270aa1(0xb2),'authorizationDescription':_0x270aa1(0x94),'configParameters':_0x270aa1(0xa9),'maxRetries':_0x270aa1(0x88),'save':_0x270aa1(0x98),'saving':_0x270aa1(0x9b),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x270aa1(0xa1),'configSaved':_0x270aa1(0x8c),'configError':_0x270aa1(0xa5),'apiApplyInfo':{'title':_0x270aa1(0x8e),'description':_0x270aa1(0x92),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x270aa1(0x82)},'validation':{'apiKeyRequired':_0x270aa1(0x81),'apiKeyTooShort':_0x270aa1(0x8a),'invalidConfig':_0x270aa1(0x9c),'invalidApiKey':_0x270aa1(0x80)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x270aa1(0xb0),'connected':_0x270aa1(0x99),'failed':_0x270aa1(0xb1),'retrying':_0x270aa1(0xaf)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x270aa1(0x9d),'maxRetriesExceeded':_0x270aa1(0x97)}}},locale=locale$1;function _0x3fad(){const _0x2a98cf=['Get\x20your\x20API\x20key\x20in\x20seconds','6098070cVAJKI','Click\x20to\x20connect\x20MCP','MCP:\x20Max\x20Retries\x20Exceeded','1RKWRQA','964472afOslC','Max\x20Retries','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','45zHHATY','Configuration\x20saved\x20successfully','Click\x20to\x20configure\x20MCP','What\x20is\x20API\x20Key?','Configuration\x20Steps:','MCP\x20Connection\x20Failed','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\x20Connecting...','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','237684DbtYCQ','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Save\x20Configuration','Connected','1024294xBodRz','Saving...','Invalid\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Session\x20ID','MCP:\x20Network\x20Error','MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','135SZfbCL','exports','Failed\x20to\x20save\x20configuration','217130dyWDCH','API\x20Key','MCP:\x20Unauthorized','Configuration\x20Parameters:','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','Enter\x20your\x20API\x20key','8WcebIO','3920245wjujZj','Retrying...','Connecting...','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','3540fLCanv','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20is\x20required'];_0x3fad=function(){return _0x2a98cf;};return _0x3fad();}module[_0x270aa1(0xa4)]=locale;
@@ -1 +1 @@
1
- const _0x3793da=_0x4eae;(function(_0x46c324,_0x46b059){const _0x1bc745=_0x4eae,_0x55abc1=_0x46c324();while(!![]){try{const _0x22e014=parseInt(_0x1bc745(0x142))/0x1*(-parseInt(_0x1bc745(0x13d))/0x2)+parseInt(_0x1bc745(0x12a))/0x3*(parseInt(_0x1bc745(0x158))/0x4)+parseInt(_0x1bc745(0x141))/0x5*(-parseInt(_0x1bc745(0x136))/0x6)+-parseInt(_0x1bc745(0x129))/0x7+-parseInt(_0x1bc745(0x14c))/0x8+parseInt(_0x1bc745(0x154))/0x9*(-parseInt(_0x1bc745(0x15a))/0xa)+parseInt(_0x1bc745(0x14b))/0xb;if(_0x22e014===_0x46b059)break;else _0x55abc1['push'](_0x55abc1['shift']());}catch(_0x137b38){_0x55abc1['push'](_0x55abc1['shift']());}}}(_0x295b,0xc374e));function _0x4eae(_0x56c379,_0x15380c){_0x56c379=_0x56c379-0x129;const _0x295b15=_0x295b();let _0x4eae54=_0x295b15[_0x56c379];return _0x4eae54;}const e={'mcpStatus':{'disconnected':_0x3793da(0x159),'connecting':'MCP\x20Connecting...','connected':_0x3793da(0x14f),'failed':_0x3793da(0x13c),'retrying':'MCP\x20Retrying...','unknown':_0x3793da(0x153),'unauthorized':_0x3793da(0x149),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x3793da(0x12f),'maxRetriesExceeded':_0x3793da(0x143),'clickToConnect':_0x3793da(0x13b),'clickToConfigure':_0x3793da(0x13e)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3793da(0x148),'apiKey':_0x3793da(0x15b),'apiKeyPlaceholder':_0x3793da(0x144),'apiKeyHint':_0x3793da(0x12c),'enableAuth':_0x3793da(0x140),'enableAuthHint':_0x3793da(0x146),'connectionInfo':_0x3793da(0x145),'mcpClientConfig':_0x3793da(0x145),'configInstructions':_0x3793da(0x152),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3793da(0x132),'configStep2':_0x3793da(0x133),'configStep3':_0x3793da(0x157),'sessionId':_0x3793da(0x14d),'sessionIdDescription':_0x3793da(0x134),'authorizationDescription':_0x3793da(0x12b),'configParameters':_0x3793da(0x137),'maxRetries':_0x3793da(0x13f),'save':'Save\x20Configuration','saving':_0x3793da(0x138),'note1':_0x3793da(0x130),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3793da(0x131),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x3793da(0x13a),'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':_0x3793da(0x12d),'getStarted':_0x3793da(0x14a)},'validation':{'apiKeyRequired':_0x3793da(0x14e),'apiKeyTooShort':_0x3793da(0x139),'invalidConfig':_0x3793da(0x155),'invalidApiKey':_0x3793da(0x150)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':'Connected','failed':_0x3793da(0x151),'retrying':_0x3793da(0x156)},'connectionError':{'unauthorized':_0x3793da(0x135),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x3793da(0x12e),'maxRetriesExceeded':_0x3793da(0x147)}}};function _0x295b(){const _0x23ec21=['10NhvKNR','API\x20Key','2937249pqZoNd','993IQfGxk','API\x20key\x20with\x20Bearer\x20prefix.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Network\x20Error','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20saved\x20successfully','Copy\x20the\x20JSON\x20configuration\x20below','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','8214906FxGtHX','Configuration\x20Parameters:','Saving...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Click\x20to\x20connect\x20MCP','MCP\x20Connection\x20Failed','814tnWqMf','Click\x20to\x20configure\x20MCP','Max\x20Retries','Enable\x20Authentication','5KaKYsN','2503Mxgxxi','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','MCP\x20Client\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','31030329Lvolvq','1412064UthzLJ','Session\x20ID','API\x20key\x20is\x20required','MCP\x20Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Connection\x20Failed','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','5093217nEJHbH','Invalid\x20configuration','Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','18484ArrxOD','MCP\x20Disconnected'];_0x295b=function(){return _0x23ec21;};return _0x295b();}module['exports']=e;
1
+ const _0x230de0=_0x3cf3;function _0x2768(){const _0x1bcb04=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','44637GODdno','exports','Disconnected','212oAzuwZ','Click\x20to\x20configure\x20MCP','Save\x20Configuration','541224KOoUKN','1479410HOvKmQ','Enable\x20Authentication','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','8988588ycPjMQ','What\x20is\x20API\x20Key?','12910324KQNCTl','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Network\x20Error','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Connected','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connecting...','MCP\x20Disconnected','MCP:\x20Unauthorized','Univer\x20AI\x20Console','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:\x20Max\x20Retries\x20Exceeded','6162715FImCLG','27ftycRz','2761128eYxzLM','Failed\x20to\x20save\x20configuration','Saving...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Max\x20Retries','MCP\x20Retrying...','Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Unknown\x20Status','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','Session\x20ID'];_0x2768=function(){return _0x1bcb04;};return _0x2768();}(function(_0x46a174,_0xf4e4f9){const _0x2c5de1=_0x3cf3,_0x28abbc=_0x46a174();while(!![]){try{const _0x4c7262=parseInt(_0x2c5de1(0xca))/0x1+-parseInt(_0x2c5de1(0xcb))/0x2+-parseInt(_0x2c5de1(0xc4))/0x3*(parseInt(_0x2c5de1(0xc7))/0x4)+parseInt(_0x2c5de1(0xe3))/0x5+parseInt(_0x2c5de1(0xd1))/0x6+-parseInt(_0x2c5de1(0xd3))/0x7+-parseInt(_0x2c5de1(0xb4))/0x8*(-parseInt(_0x2c5de1(0xe4))/0x9);if(_0x4c7262===_0xf4e4f9)break;else _0x28abbc['push'](_0x28abbc['shift']());}catch(_0x436e50){_0x28abbc['push'](_0x28abbc['shift']());}}}(_0x2768,0xe4308));function _0x3cf3(_0x2c98e8,_0x45450e){_0x2c98e8=_0x2c98e8-0xb4;const _0x27689e=_0x2768();let _0x3cf380=_0x27689e[_0x2c98e8];return _0x3cf380;}const locale={'mcpStatus':{'disconnected':_0x230de0(0xde),'connecting':_0x230de0(0xdd),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x230de0(0xb9),'unknown':_0x230de0(0xbf),'unauthorized':_0x230de0(0xdf),'sessionOccupied':_0x230de0(0xd7),'networkError':_0x230de0(0xd8),'maxRetriesExceeded':_0x230de0(0xe2),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x230de0(0xc8)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x230de0(0xbb),'apiKey':_0x230de0(0xd0),'apiKeyPlaceholder':_0x230de0(0xce),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x230de0(0xcc),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x230de0(0xd5),'mcpClientConfig':_0x230de0(0xd5),'configInstructions':_0x230de0(0xda),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x230de0(0xbe),'configStep2':_0x230de0(0xc3),'configStep3':_0x230de0(0xc0),'sessionId':_0x230de0(0xc2),'sessionIdDescription':_0x230de0(0xd6),'authorizationDescription':_0x230de0(0xcf),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x230de0(0xb8),'save':_0x230de0(0xc9),'saving':_0x230de0(0xb6),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x230de0(0xd4),'configError':_0x230de0(0xb5),'apiApplyInfo':{'title':_0x230de0(0xd2),'description':_0x230de0(0xe1),'univerAiLabel':_0x230de0(0xe0),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x230de0(0xcd),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x230de0(0xbd),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x230de0(0xc6),'connecting':_0x230de0(0xba),'connected':_0x230de0(0xdb),'failed':_0x230de0(0xc1),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x230de0(0xdc),'sessionOccupied':_0x230de0(0xb7),'networkError':_0x230de0(0xbc),'maxRetriesExceeded':_0x230de0(0xd9)}}};module[_0x230de0(0xc5)]=locale;
@@ -1 +1 @@
1
- function _0x4f20(_0x42612b,_0x4723f0){_0x42612b=_0x42612b-0x150;const _0x34b22d=_0x34b2();let _0x4f203d=_0x34b22d[_0x42612b];return _0x4f203d;}const _0xac337d=_0x4f20;(function(_0x2c7ede,_0x23c529){const _0x6d8f28=_0x4f20,_0x5349ee=_0x2c7ede();while(!![]){try{const _0x3078be=parseInt(_0x6d8f28(0x171))/0x1*(parseInt(_0x6d8f28(0x16a))/0x2)+parseInt(_0x6d8f28(0x16d))/0x3+-parseInt(_0x6d8f28(0x168))/0x4+parseInt(_0x6d8f28(0x163))/0x5+parseInt(_0x6d8f28(0x15d))/0x6+-parseInt(_0x6d8f28(0x155))/0x7*(-parseInt(_0x6d8f28(0x158))/0x8)+-parseInt(_0x6d8f28(0x172))/0x9*(parseInt(_0x6d8f28(0x173))/0xa);if(_0x3078be===_0x23c529)break;else _0x5349ee['push'](_0x5349ee['shift']());}catch(_0xb2e127){_0x5349ee['push'](_0x5349ee['shift']());}}}(_0x34b2,0xaa404));const e={'mcpStatus':{'disconnected':_0xac337d(0x161),'connecting':_0xac337d(0x164),'connected':_0xac337d(0x175),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0xac337d(0x180),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0xac337d(0x165),'networkError':_0xac337d(0x16e),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xac337d(0x16f)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0xac337d(0x17b),'apiKey':_0xac337d(0x15a),'apiKeyPlaceholder':_0xac337d(0x166),'apiKeyHint':_0xac337d(0x15e),'enableAuth':_0xac337d(0x150),'enableAuthHint':_0xac337d(0x17a),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0xac337d(0x153),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0xac337d(0x177),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0xac337d(0x176),'configStep3':_0xac337d(0x16c),'sessionId':_0xac337d(0x157),'sessionIdDescription':_0xac337d(0x15f),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xac337d(0x178),'maxRetries':_0xac337d(0x182),'save':_0xac337d(0x15c),'saving':_0xac337d(0x17c),'note1':_0xac337d(0x159),'note2':_0xac337d(0x17f),'configSaved':_0xac337d(0x16b),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0xac337d(0x174),'description':_0xac337d(0x17e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xac337d(0x151)},'validation':{'apiKeyRequired':_0xac337d(0x179),'apiKeyTooShort':_0xac337d(0x170),'invalidConfig':_0xac337d(0x152),'invalidApiKey':_0xac337d(0x154)},'connectionStatus':{'disconnected':_0xac337d(0x156),'connecting':_0xac337d(0x15b),'connected':_0xac337d(0x162),'failed':_0xac337d(0x17d),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0xac337d(0x181),'sessionOccupied':_0xac337d(0x160),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xac337d(0x167)}}};module[_0xac337d(0x169)]=e;function _0x34b2(){const _0x22b0b0=['Max\x20Retries','Enable\x20Authentication','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','MCP\x20Client\x20Configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','7bdlNRT','Disconnected','Session\x20ID','9198736GfGOyi','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20Key','Connecting...','Save\x20Configuration','7405032XBnIXg','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Disconnected','Connected','3932980MZXZmJ','MCP\x20Connecting...','MCP:\x20Session\x20ID\x20Occupied','Enter\x20your\x20API\x20key','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1782228xDRHco','exports','62YrBkgP','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','1487073ulJzFX','MCP:\x20Network\x20Error','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','3417mHCGRj','27xhAJYJ','8764410qJbvRi','What\x20is\x20API\x20Key?','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Configuration\x20Steps:','Configuration\x20Parameters:','API\x20key\x20is\x20required','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Saving...','Connection\x20Failed','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key'];_0x34b2=function(){return _0x22b0b0;};return _0x34b2();}
1
+ const _0x17761d=_0x5f22;(function(_0x291a7a,_0x574c48){const _0xf8861b=_0x5f22,_0x4f4bf1=_0x291a7a();while(!![]){try{const _0x3ec8f8=-parseInt(_0xf8861b(0x17b))/0x1*(parseInt(_0xf8861b(0x18a))/0x2)+parseInt(_0xf8861b(0x194))/0x3*(parseInt(_0xf8861b(0x181))/0x4)+-parseInt(_0xf8861b(0x1b1))/0x5+parseInt(_0xf8861b(0x179))/0x6*(parseInt(_0xf8861b(0x19a))/0x7)+parseInt(_0xf8861b(0x1ae))/0x8+parseInt(_0xf8861b(0x1a3))/0x9*(parseInt(_0xf8861b(0x1ad))/0xa)+-parseInt(_0xf8861b(0x17c))/0xb;if(_0x3ec8f8===_0x574c48)break;else _0x4f4bf1['push'](_0x4f4bf1['shift']());}catch(_0x3272a6){_0x4f4bf1['push'](_0x4f4bf1['shift']());}}}(_0x4a01,0x5cb02));const locale$1={'mcpStatus':{'disconnected':_0x17761d(0x17f),'connecting':_0x17761d(0x182),'connected':_0x17761d(0x189),'failed':_0x17761d(0x1a7),'retrying':_0x17761d(0x185),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x17761d(0x196),'sessionOccupied':_0x17761d(0x187),'networkError':_0x17761d(0x178),'maxRetriesExceeded':_0x17761d(0x195),'clickToConnect':_0x17761d(0x19f),'clickToConfigure':_0x17761d(0x191)},'mcpConfig':{'title':_0x17761d(0x184),'description':_0x17761d(0x1a0),'apiKey':_0x17761d(0x1ab),'apiKeyPlaceholder':_0x17761d(0x19d),'apiKeyHint':_0x17761d(0x1b0),'enableAuth':_0x17761d(0x19c),'enableAuthHint':_0x17761d(0x1a9),'connectionInfo':_0x17761d(0x17d),'mcpClientConfig':_0x17761d(0x17d),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x17761d(0x17a),'configStep1':_0x17761d(0x1a8),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x17761d(0x1a6),'sessionIdDescription':_0x17761d(0x1a2),'authorizationDescription':_0x17761d(0x17e),'configParameters':_0x17761d(0x1af),'maxRetries':_0x17761d(0x192),'save':_0x17761d(0x18c),'saving':_0x17761d(0x197),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x17761d(0x18d),'configSaved':_0x17761d(0x183),'configError':_0x17761d(0x18e),'apiApplyInfo':{'title':_0x17761d(0x188),'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':_0x17761d(0x186),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x17761d(0x199),'apiKeyTooShort':_0x17761d(0x1a5),'invalidConfig':_0x17761d(0x18b),'invalidApiKey':_0x17761d(0x190)},'connectionStatus':{'disconnected':_0x17761d(0x18f),'connecting':_0x17761d(0x198),'connected':_0x17761d(0x19b),'failed':_0x17761d(0x1a1),'retrying':_0x17761d(0x19e)},'connectionError':{'unauthorized':_0x17761d(0x1ac),'sessionOccupied':_0x17761d(0x193),'networkError':_0x17761d(0x1a4),'maxRetriesExceeded':_0x17761d(0x180)}}},locale=locale$1;module[_0x17761d(0x1aa)]=locale;function _0x5f22(_0x35a307,_0x2c1a0a){_0x35a307=_0x35a307-0x178;const _0x4a015f=_0x4a01();let _0x5f22bd=_0x4a015f[_0x35a307];return _0x5f22bd;}function _0x4a01(){const _0x2db590=['Univer\x20AI\x20Console','MCP:\x20Session\x20ID\x20Occupied','What\x20is\x20API\x20Key?','MCP\x20Connected','82552MwFdWA','Invalid\x20configuration','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Failed\x20to\x20save\x20configuration','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Click\x20to\x20configure\x20MCP','Max\x20Retries','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','49359cJFhLj','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Unauthorized','Saving...','Connecting...','API\x20key\x20is\x20required','27895NrsOHQ','Connected','Enable\x20Authentication','Enter\x20your\x20API\x20key','Retrying...','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','4085604QbKzdd','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20ID','MCP\x20Connection\x20Failed','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','exports','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','10mOSgph','770816fsZVLg','Configuration\x20Parameters:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','304880sMmZQO','MCP:\x20Network\x20Error','1110cizfhZ','Configuration\x20Steps:','1grFxRb','15558312qLVAoM','MCP\x20Client\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','148MERtaW','MCP\x20Connecting...','Configuration\x20saved\x20successfully','MCP\x20Configuration','MCP\x20Retrying...'];_0x4a01=function(){return _0x2db590;};return _0x4a01();}
@@ -1 +1 @@
1
- function _0x5072(_0x31cae7,_0x4479f2){_0x31cae7=_0x31cae7-0x1e5;const _0x5e5c53=_0x5e5c();let _0x5072dd=_0x5e5c53[_0x31cae7];return _0x5072dd;}function _0x5e5c(){const _0x1008ef=['Univer\x20AI\x20Console','MCP\x20Connecting...','API\x20Key','Retrying...','405eeIJKD','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','162956LzqAjK','Configuration\x20saved\x20successfully','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','22964eOMlCZ','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Copy\x20the\x20JSON\x20configuration\x20below','4003376cZzkYm','MCP\x20Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Invalid\x20configuration','Click\x20to\x20configure\x20MCP','1848511HWhCuK','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','117027qaqhDl','Enable\x20authentication\x20for\x20secure\x20connections','7160382VPytxR','Configuration\x20Parameters:','Disconnected','MCP\x20Client\x20Configuration','Enable\x20Authentication','2040JHwkUT','MCP\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','Connecting...','Failed\x20to\x20save\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','What\x20is\x20API\x20Key?','125418UrHLgz','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connection\x20Failed','Max\x20Retries','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','68BtFTCY','Session\x20ID','Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key'];_0x5e5c=function(){return _0x1008ef;};return _0x5e5c();}const _0x2a6e24=_0x5072;(function(_0x291b8a,_0x3bad76){const _0x745db3=_0x5072,_0x9b3f00=_0x291b8a();while(!![]){try{const _0x4a61e9=parseInt(_0x745db3(0x206))/0x1+-parseInt(_0x745db3(0x1f9))/0x2*(-parseInt(_0x745db3(0x1f3))/0x3)+-parseInt(_0x745db3(0x20a))/0x4*(-parseInt(_0x745db3(0x202))/0x5)+parseInt(_0x745db3(0x217))/0x6+-parseInt(_0x745db3(0x212))/0x7+parseInt(_0x745db3(0x20d))/0x8+parseInt(_0x745db3(0x215))/0x9*(-parseInt(_0x745db3(0x1e9))/0xa);if(_0x4a61e9===_0x3bad76)break;else _0x9b3f00['push'](_0x9b3f00['shift']());}catch(_0x1941f0){_0x9b3f00['push'](_0x9b3f00['shift']());}}}(_0x5e5c,0xc9c93));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2a6e24(0x1ff),'connected':_0x2a6e24(0x20e),'failed':_0x2a6e24(0x1f5),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2a6e24(0x1ec),'clickToConnect':_0x2a6e24(0x208),'clickToConfigure':_0x2a6e24(0x211)},'mcpConfig':{'title':_0x2a6e24(0x1ea),'description':_0x2a6e24(0x209),'apiKey':_0x2a6e24(0x200),'apiKeyPlaceholder':_0x2a6e24(0x1fd),'apiKeyHint':_0x2a6e24(0x1f7),'enableAuth':_0x2a6e24(0x1e8),'enableAuthHint':_0x2a6e24(0x216),'connectionInfo':_0x2a6e24(0x1e7),'mcpClientConfig':_0x2a6e24(0x1e7),'configInstructions':_0x2a6e24(0x1f4),'configStepTitle':_0x2a6e24(0x1f1),'configStep1':_0x2a6e24(0x20c),'configStep2':_0x2a6e24(0x214),'configStep3':_0x2a6e24(0x20f),'sessionId':_0x2a6e24(0x1fa),'sessionIdDescription':_0x2a6e24(0x1f0),'authorizationDescription':_0x2a6e24(0x1ed),'configParameters':_0x2a6e24(0x1e5),'maxRetries':_0x2a6e24(0x1f6),'save':'Save\x20Configuration','saving':'Saving...','note1':_0x2a6e24(0x1eb),'note2':_0x2a6e24(0x1f8),'configSaved':_0x2a6e24(0x207),'configError':_0x2a6e24(0x1ef),'apiApplyInfo':{'title':_0x2a6e24(0x1f2),'description':_0x2a6e24(0x205),'univerAiLabel':_0x2a6e24(0x1fe),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x2a6e24(0x20b),'invalidConfig':_0x2a6e24(0x210),'invalidApiKey':_0x2a6e24(0x1fc)},'connectionStatus':{'disconnected':_0x2a6e24(0x1e6),'connecting':_0x2a6e24(0x1ee),'connected':_0x2a6e24(0x1fb),'failed':'Connection\x20Failed','retrying':_0x2a6e24(0x201)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2a6e24(0x213),'networkError':_0x2a6e24(0x203),'maxRetriesExceeded':_0x2a6e24(0x204)}}};module['exports']=e;
1
+ function _0x3da8(){const _0x328a1a=['Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','What\x20is\x20API\x20Key?','Max\x20Retries','807493oZhxaA','API\x20key\x20is\x20required','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Save\x20Configuration','413XiaTIc','API\x20key\x20with\x20Bearer\x20prefix.','Connected','MCP\x20Connection\x20Failed','Session\x20ID','13730BObaKi','API\x20Key','139002eHzmmo','247053MVjRIF','MCP:\x20Max\x20Retries\x20Exceeded','225326hUuxhQ','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Saving...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','4LqKLri','MCP:\x20Session\x20ID\x20Occupied','Failed\x20to\x20save\x20configuration','MCP:\x20Network\x20Error','Configuration\x20Parameters:','Configuration\x20Steps:','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Unknown\x20Status','MCP\x20Connecting...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Get\x20your\x20API\x20key\x20in\x20seconds','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Client\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','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.','MCP\x20Retrying...','MCP\x20Configuration','Invalid\x20configuration','MCP\x20Connected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Retrying...','4873090CaRSHt','14778jqcbqf','11860224jbZlGO','Click\x20to\x20connect\x20MCP'];_0x3da8=function(){return _0x328a1a;};return _0x3da8();}const _0x50402e=_0x3419;(function(_0x230406,_0x39a08b){const _0x3189d7=_0x3419,_0x1fb3b5=_0x230406();while(!![]){try{const _0x5dc8f2=-parseInt(_0x3189d7(0x1c0))/0x1+parseInt(_0x3189d7(0x1d1))/0x2+-parseInt(_0x3189d7(0x1cf))/0x3*(-parseInt(_0x3189d7(0x1d6))/0x4)+-parseInt(_0x3189d7(0x1b8))/0x5+-parseInt(_0x3189d7(0x1ce))/0x6*(parseInt(_0x3189d7(0x1c7))/0x7)+parseInt(_0x3189d7(0x1ba))/0x8+-parseInt(_0x3189d7(0x1b9))/0x9*(-parseInt(_0x3189d7(0x1cc))/0xa);if(_0x5dc8f2===_0x39a08b)break;else _0x1fb3b5['push'](_0x1fb3b5['shift']());}catch(_0xbd9399){_0x1fb3b5['push'](_0x1fb3b5['shift']());}}}(_0x3da8,0xbf2c4));const locale$1={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x50402e(0x1df),'connected':_0x50402e(0x1b5),'failed':_0x50402e(0x1ca),'retrying':_0x50402e(0x1e8),'unknown':_0x50402e(0x1de),'unauthorized':_0x50402e(0x1bd),'sessionOccupied':_0x50402e(0x1d7),'networkError':_0x50402e(0x1d9),'maxRetriesExceeded':_0x50402e(0x1d0),'clickToConnect':_0x50402e(0x1bb),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x50402e(0x1b3),'description':_0x50402e(0x1e0),'apiKey':_0x50402e(0x1cd),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x50402e(0x1e5),'enableAuthHint':_0x50402e(0x1dd),'connectionInfo':_0x50402e(0x1e3),'mcpClientConfig':_0x50402e(0x1e3),'configInstructions':_0x50402e(0x1d2),'configStepTitle':_0x50402e(0x1db),'configStep1':_0x50402e(0x1e2),'configStep2':_0x50402e(0x1d5),'configStep3':_0x50402e(0x1e4),'sessionId':_0x50402e(0x1cb),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x50402e(0x1c8),'configParameters':_0x50402e(0x1da),'maxRetries':_0x50402e(0x1bf),'save':_0x50402e(0x1c6),'saving':_0x50402e(0x1d4),'note1':_0x50402e(0x1e6),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x50402e(0x1d8),'apiApplyInfo':{'title':_0x50402e(0x1be),'description':_0x50402e(0x1e7),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x50402e(0x1e1)},'validation':{'apiKeyRequired':_0x50402e(0x1c1),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x50402e(0x1b4),'invalidApiKey':_0x50402e(0x1b6)},'connectionStatus':{'disconnected':_0x50402e(0x1c5),'connecting':_0x50402e(0x1c3),'connected':_0x50402e(0x1c9),'failed':_0x50402e(0x1dc),'retrying':_0x50402e(0x1b7)},'connectionError':{'unauthorized':_0x50402e(0x1bc),'sessionOccupied':_0x50402e(0x1c2),'networkError':_0x50402e(0x1d3),'maxRetriesExceeded':_0x50402e(0x1c4)}}},locale=locale$1;function _0x3419(_0x2fec8d,_0x1187fe){_0x2fec8d=_0x2fec8d-0x1b3;const _0x3da89e=_0x3da8();let _0x341904=_0x3da89e[_0x2fec8d];return _0x341904;}module['exports']=locale;
@@ -1 +1 @@
1
- function _0x5d52(){const _0x3798ac=['MCP\x20Connected','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20configuration','Saving...','192591OciUcg','API\x20key\x20is\x20required','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','8VJGDLY','650281KMpQuW','Configuration\x20Steps:','Max\x20Retries','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','MCP\x20Configuration','Univer\x20AI\x20Console','2XlKPcv','Copy\x20the\x20JSON\x20configuration\x20below','5768GZxEeg','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','Session\x20ID','Enable\x20Authentication','2286IOVaMp','API\x20Key','MCP\x20Connection\x20Failed','Configuration\x20Parameters:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','260CEAptD','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:\x20Max\x20Retries\x20Exceeded','1157244MeSsMr','Enter\x20your\x20API\x20key','Connected','11438ynRnoT','Connection\x20Failed','Enable\x20authentication\x20for\x20secure\x20connections','API\x20key\x20with\x20Bearer\x20prefix.','What\x20is\x20API\x20Key?','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','Configuration\x20saved\x20successfully','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','701583vewgly','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20configure\x20MCP','16905rmEEiL','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1070892TIWsej'];_0x5d52=function(){return _0x3798ac;};return _0x5d52();}const _0x2c6479=_0x582b;function _0x582b(_0x21f2c3,_0x1f7084){_0x21f2c3=_0x21f2c3-0x129;const _0x5d52b0=_0x5d52();let _0x582bc8=_0x5d52b0[_0x21f2c3];return _0x582bc8;}(function(_0x265b3f,_0x433cf8){const _0x32ff78=_0x582b,_0x7f23fc=_0x265b3f();while(!![]){try{const _0x46cb01=-parseInt(_0x32ff78(0x150))/0x1*(-parseInt(_0x32ff78(0x157))/0x2)+parseInt(_0x32ff78(0x13e))/0x3*(parseInt(_0x32ff78(0x14f))/0x4)+parseInt(_0x32ff78(0x141))/0x5*(parseInt(_0x32ff78(0x15e))/0x6)+parseInt(_0x32ff78(0x134))/0x7*(-parseInt(_0x32ff78(0x159))/0x8)+parseInt(_0x32ff78(0x14b))/0x9*(-parseInt(_0x32ff78(0x12e))/0xa)+-parseInt(_0x32ff78(0x131))/0xb+parseInt(_0x32ff78(0x145))/0xc;if(_0x46cb01===_0x433cf8)break;else _0x7f23fc['push'](_0x7f23fc['shift']());}catch(_0x48db82){_0x7f23fc['push'](_0x7f23fc['shift']());}}}(_0x5d52,0xa0161));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x2c6479(0x147),'connected':_0x2c6479(0x146),'failed':_0x2c6479(0x129),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x2c6479(0x12d),'sessionOccupied':_0x2c6479(0x153),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x2c6479(0x130),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x2c6479(0x140)},'mcpConfig':{'title':_0x2c6479(0x155),'description':_0x2c6479(0x14d),'apiKey':_0x2c6479(0x15f),'apiKeyPlaceholder':_0x2c6479(0x132),'apiKeyHint':_0x2c6479(0x13f),'enableAuth':_0x2c6479(0x15d),'enableAuthHint':_0x2c6479(0x136),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x2c6479(0x154),'configInstructions':_0x2c6479(0x14e),'configStepTitle':_0x2c6479(0x151),'configStep1':_0x2c6479(0x158),'configStep2':_0x2c6479(0x13d),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x2c6479(0x15c),'sessionIdDescription':_0x2c6479(0x144),'authorizationDescription':_0x2c6479(0x137),'configParameters':_0x2c6479(0x12a),'maxRetries':_0x2c6479(0x152),'save':_0x2c6479(0x142),'saving':_0x2c6479(0x14a),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x2c6479(0x12c),'configSaved':_0x2c6479(0x13b),'configError':_0x2c6479(0x13a),'apiApplyInfo':{'title':_0x2c6479(0x138),'description':_0x2c6479(0x12f),'univerAiLabel':_0x2c6479(0x156),'getStarted':_0x2c6479(0x143)},'validation':{'apiKeyRequired':_0x2c6479(0x14c),'apiKeyTooShort':_0x2c6479(0x139),'invalidConfig':_0x2c6479(0x149),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x2c6479(0x15b),'connected':_0x2c6479(0x133),'failed':_0x2c6479(0x135),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x2c6479(0x12b),'sessionOccupied':_0x2c6479(0x13c),'networkError':_0x2c6479(0x148),'maxRetriesExceeded':_0x2c6479(0x15a)}}};module['exports']=e;
1
+ function _0x390d(_0x33ed0d,_0x438c9d){_0x33ed0d=_0x33ed0d-0x187;const _0x41ba57=_0x41ba();let _0x390d85=_0x41ba57[_0x33ed0d];return _0x390d85;}function _0x41ba(){const _0x4be5c6=['MCP\x20Connecting...','Connection\x20Failed','22604tETfaq','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','MCP\x20Connected','Enable\x20Authentication','4741RbgrAL','MCP:\x20Unauthorized','API\x20key\x20with\x20Bearer\x20prefix.','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','exports','MCP:\x20Session\x20ID\x20Occupied','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20Steps:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Connection\x20Failed','17768bzygCa','Saving...','845TUUitf','3006200wFUcyN','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Copy\x20the\x20JSON\x20configuration\x20below','9YiOTOY','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Connected','Click\x20to\x20configure\x20MCP','1543710FFjjMQ','Failed\x20to\x20save\x20configuration','MCP\x20Configuration','Retrying...','Save\x20Configuration','MCP\x20Unknown\x20Status','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Client\x20Configuration','Connecting...','7tHIXui','208069lrTdzZ','Click\x20to\x20connect\x20MCP','Univer\x20AI\x20Console','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','23376UetGuB','MCP:\x20Network\x20Error','Max\x20Retries','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.','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Get\x20your\x20API\x20key\x20in\x20seconds','6831730KURynI','Configuration\x20Parameters:','321UklMQY','MCP\x20Disconnected'];_0x41ba=function(){return _0x4be5c6;};return _0x41ba();}const _0x59eeb0=_0x390d;(function(_0x2806c8,_0x2be32b){const _0x330112=_0x390d,_0x37ef52=_0x2806c8();while(!![]){try{const _0x4ac519=-parseInt(_0x330112(0x1b6))/0x1+parseInt(_0x330112(0x1a0))/0x2*(parseInt(_0x330112(0x189))/0x3)+parseInt(_0x330112(0x18d))/0x4*(-parseInt(_0x330112(0x1a2))/0x5)+-parseInt(_0x330112(0x1ac))/0x6*(-parseInt(_0x330112(0x1b5))/0x7)+parseInt(_0x330112(0x1a3))/0x8+-parseInt(_0x330112(0x1a6))/0x9*(parseInt(_0x330112(0x187))/0xa)+parseInt(_0x330112(0x192))/0xb*(parseInt(_0x330112(0x1ba))/0xc);if(_0x4ac519===_0x2be32b)break;else _0x37ef52['push'](_0x37ef52['shift']());}catch(_0x45f782){_0x37ef52['push'](_0x37ef52['shift']());}}}(_0x41ba,0x8cdcf));const locale$1={'mcpStatus':{'disconnected':_0x59eeb0(0x18a),'connecting':_0x59eeb0(0x18b),'connected':_0x59eeb0(0x190),'failed':_0x59eeb0(0x19f),'retrying':'MCP\x20Retrying...','unknown':_0x59eeb0(0x1b1),'unauthorized':_0x59eeb0(0x193),'sessionOccupied':_0x59eeb0(0x198),'networkError':_0x59eeb0(0x1bb),'maxRetriesExceeded':_0x59eeb0(0x19b),'clickToConnect':_0x59eeb0(0x1b7),'clickToConfigure':_0x59eeb0(0x1ab)},'mcpConfig':{'title':_0x59eeb0(0x1ae),'description':_0x59eeb0(0x1b9),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x59eeb0(0x196),'enableAuth':_0x59eeb0(0x191),'enableAuthHint':_0x59eeb0(0x1a8),'connectionInfo':_0x59eeb0(0x1b3),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x59eeb0(0x19a),'configStepTitle':_0x59eeb0(0x19d),'configStep1':_0x59eeb0(0x1a5),'configStep2':_0x59eeb0(0x1a9),'configStep3':_0x59eeb0(0x1a4),'sessionId':_0x59eeb0(0x18f),'sessionIdDescription':_0x59eeb0(0x1bd),'authorizationDescription':_0x59eeb0(0x194),'configParameters':_0x59eeb0(0x188),'maxRetries':_0x59eeb0(0x1bc),'save':_0x59eeb0(0x1b0),'saving':_0x59eeb0(0x1a1),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x59eeb0(0x1bf),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x59eeb0(0x1ad),'apiApplyInfo':{'title':_0x59eeb0(0x195),'description':_0x59eeb0(0x1be),'univerAiLabel':_0x59eeb0(0x1b8),'getStarted':_0x59eeb0(0x1c0)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x59eeb0(0x199),'invalidApiKey':_0x59eeb0(0x18e)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x59eeb0(0x1b4),'connected':_0x59eeb0(0x1aa),'failed':_0x59eeb0(0x18c),'retrying':_0x59eeb0(0x1af)},'connectionError':{'unauthorized':_0x59eeb0(0x19e),'sessionOccupied':_0x59eeb0(0x1a7),'networkError':_0x59eeb0(0x1b2),'maxRetriesExceeded':_0x59eeb0(0x19c)}}},locale=locale$1;module[_0x59eeb0(0x197)]=locale;
@@ -1 +1 @@
1
- function _0x4ebb(_0xfeacee,_0x521d82){_0xfeacee=_0xfeacee-0x1c2;const _0x3cd021=_0x3cd0();let _0x4ebb61=_0x3cd021[_0xfeacee];return _0x4ebb61;}const _0x4cdce9=_0x4ebb;(function(_0x1e3b07,_0x3f5fe9){const _0x504ae6=_0x4ebb,_0x1a04fd=_0x1e3b07();while(!![]){try{const _0x26f53b=parseInt(_0x504ae6(0x1da))/0x1*(-parseInt(_0x504ae6(0x1cd))/0x2)+-parseInt(_0x504ae6(0x1c4))/0x3*(parseInt(_0x504ae6(0x1e9))/0x4)+parseInt(_0x504ae6(0x1d1))/0x5*(parseInt(_0x504ae6(0x1c9))/0x6)+parseInt(_0x504ae6(0x1d3))/0x7+parseInt(_0x504ae6(0x1d6))/0x8+-parseInt(_0x504ae6(0x1cb))/0x9*(parseInt(_0x504ae6(0x1e3))/0xa)+parseInt(_0x504ae6(0x1cf))/0xb;if(_0x26f53b===_0x3f5fe9)break;else _0x1a04fd['push'](_0x1a04fd['shift']());}catch(_0x361e22){_0x1a04fd['push'](_0x1a04fd['shift']());}}}(_0x3cd0,0x43168));const e={'mcpStatus':{'disconnected':'MCP\x20未接続','connecting':'MCP\x20接続中...','connected':'MCP\x20接続済み','failed':_0x4cdce9(0x1d4),'retrying':_0x4cdce9(0x1db),'unknown':'MCP\x20不明な状態','unauthorized':'MCP:\x20認証されていません','sessionOccupied':_0x4cdce9(0x1ca),'networkError':_0x4cdce9(0x1e1),'maxRetriesExceeded':_0x4cdce9(0x1e0),'clickToConnect':_0x4cdce9(0x1ea),'clickToConfigure':_0x4cdce9(0x1e5)},'mcpConfig':{'title':_0x4cdce9(0x1e8),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x4cdce9(0x1c6),'apiKeyPlaceholder':_0x4cdce9(0x1ec),'apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x4cdce9(0x1ee),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':_0x4cdce9(0x1c8),'mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':'設定手順:','configStep1':_0x4cdce9(0x1c5),'configStep2':_0x4cdce9(0x1d2),'configStep3':'MCPクライアントを再起動して設定を適用','sessionId':_0x4cdce9(0x1ce),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x4cdce9(0x1ed),'maxRetries':_0x4cdce9(0x1eb),'save':'設定を保存','saving':_0x4cdce9(0x1de),'note1':'設定の変更は直ちに有効になります','note2':_0x4cdce9(0x1d8),'configSaved':'設定が正常に保存されました','configError':'設定の保存に失敗しました','apiApplyInfo':{'title':'APIキーとは?','description':'APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','univerAiLabel':_0x4cdce9(0x1e2),'getStarted':_0x4cdce9(0x1d7)},'validation':{'apiKeyRequired':_0x4cdce9(0x1d5),'apiKeyTooShort':_0x4cdce9(0x1dc),'invalidConfig':_0x4cdce9(0x1c7),'invalidApiKey':_0x4cdce9(0x1dd)},'connectionStatus':{'disconnected':_0x4cdce9(0x1e6),'connecting':_0x4cdce9(0x1e4),'connected':'接続済み','failed':_0x4cdce9(0x1c3),'retrying':_0x4cdce9(0x1d9)},'connectionError':{'unauthorized':_0x4cdce9(0x1df),'sessionOccupied':_0x4cdce9(0x1c2),'networkError':_0x4cdce9(0x1cc),'maxRetriesExceeded':_0x4cdce9(0x1e7)}}};module[_0x4cdce9(0x1d0)]=e;function _0x3cd0(){const _0x5e72f3=['セッションIDが現在使用中です。後でもう一度お試しください','接続失敗','39JJaTME','以下のJSON設定をコピー','APIキー','無効な設定','MCPクライアント設定','222TfMfgH','MCP:\x20セッションIDが使用中','3421737IiSPAo','ネットワーク接続エラー。インターネット接続を確認してください','361550oktuYH','セッションID','5924853yJKsiB','exports','11415AQjChf','MCPクライアントの設定ファイルに設定を追加','911771TzVsgw','MCP\x20接続失敗','APIキーは必須です','1936736ZMqgsg','数秒でAPIキーを取得','APIキーはローカルストレージに安全に保存されます','再試行中...','1vaLdao','MCP\x20再試行中...','APIキーは10文字以上である必要があります','無効なAPIキーです。キーが正しいか確認してください','保存中...','認証に失敗しました。APIキーを確認してください','MCP:\x20最大再試行回数を超過','MCP:\x20ネットワークエラー','Univer\x20AIコンソール','10mHUhsE','接続中...','クリックしてMCPを設定','未接続','最大再試行回数を超過しました。後でもう一度お試しください','MCP設定','49132tNjOEE','クリックしてMCPに接続','最大再試行回数','APIキーを入力してください','設定パラメータ:','認証を有効にする'];_0x3cd0=function(){return _0x5e72f3;};return _0x3cd0();}
1
+ function _0x3d08(){const _0x5c16cb=['認証を有効にする','APIキーとは?','ネットワーク接続エラー。インターネット接続を確認してください','APIキーは必須です','接続失敗','接続済み','MCP:\x20認証されていません','クリックしてMCPに接続','2075KpvmYP','8XxdZyN','セッションID','数秒でAPIキーを取得','無効な設定','exports','108nPDAac','MCP設定','76BRjrov','MCP\x20不明な状態','MCPクライアントを再起動して設定を適用','MCP\x20未接続','最大再試行回数を超過しました。後でもう一度お試しください','未接続','APIキーは10文字以上である必要があります','10107QIKGgu','MCP\x20接続中...','クリックしてMCPを設定','MCP\x20接続済み','Bearerプレフィックス付きのAPIキー。','5380Eazpen','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','Univer\x20AIコンソール','再試行中...','MCP:\x20ネットワークエラー','セッションIDが現在使用中です。後でもう一度お試しください','MCPを設定してAIでスプレッドシートを操作','3098431uNbgps','以下のJSON設定をコピー','認証に失敗しました。APIキーを確認してください','770172QJMNFh','643442gjqMll','APIキーはローカルストレージに安全に保存されます','設定を保存','3228czhDWx','119271JAFMZa','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','保存中...','無効なAPIキーです。キーが正しいか確認してください','497541KxTuIZ'];_0x3d08=function(){return _0x5c16cb;};return _0x3d08();}function _0x5382(_0x2ece62,_0xc6ecdb){_0x2ece62=_0x2ece62-0x172;const _0x3d087d=_0x3d08();let _0x5382f9=_0x3d087d[_0x2ece62];return _0x5382f9;}const _0x40943f=_0x5382;(function(_0x2eaf62,_0x12dd42){const _0x5b694e=_0x5382,_0x535784=_0x2eaf62();while(!![]){try{const _0x6c635a=-parseInt(_0x5b694e(0x184))/0x1+-parseInt(_0x5b694e(0x185))/0x2+parseInt(_0x5b694e(0x189))/0x3*(parseInt(_0x5b694e(0x19e))/0x4)+parseInt(_0x5b694e(0x196))/0x5*(parseInt(_0x5b694e(0x188))/0x6)+-parseInt(_0x5b694e(0x181))/0x7*(parseInt(_0x5b694e(0x197))/0x8)+-parseInt(_0x5b694e(0x175))/0x9*(-parseInt(_0x5b694e(0x17a))/0xa)+parseInt(_0x5b694e(0x18d))/0xb*(parseInt(_0x5b694e(0x19c))/0xc);if(_0x6c635a===_0x12dd42)break;else _0x535784['push'](_0x535784['shift']());}catch(_0x4d0619){_0x535784['push'](_0x535784['shift']());}}}(_0x3d08,0x6f2d4));const locale={'mcpStatus':{'disconnected':_0x40943f(0x1a1),'connecting':_0x40943f(0x176),'connected':_0x40943f(0x178),'failed':'MCP\x20接続失敗','retrying':'MCP\x20再試行中...','unknown':_0x40943f(0x19f),'unauthorized':_0x40943f(0x194),'sessionOccupied':'MCP:\x20セッションIDが使用中','networkError':_0x40943f(0x17e),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x40943f(0x195),'clickToConfigure':_0x40943f(0x177)},'mcpConfig':{'title':_0x40943f(0x19d),'description':_0x40943f(0x180),'apiKey':'APIキー','apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':'APIキーはこのブラウザのローカルに保存されます','enableAuth':_0x40943f(0x18e),'enableAuthHint':'セキュアな接続のために認証を有効にする','connectionInfo':'MCPクライアント設定','mcpClientConfig':'MCPクライアント設定','configInstructions':'MCPクライアントの設定に次の設定を追加してください:','configStepTitle':'設定手順:','configStep1':_0x40943f(0x182),'configStep2':'MCPクライアントの設定ファイルに設定を追加','configStep3':_0x40943f(0x1a0),'sessionId':_0x40943f(0x198),'sessionIdDescription':_0x40943f(0x18a),'authorizationDescription':_0x40943f(0x179),'configParameters':'設定パラメータ:','maxRetries':'最大再試行回数','save':_0x40943f(0x187),'saving':_0x40943f(0x18b),'note1':'設定の変更は直ちに有効になります','note2':_0x40943f(0x186),'configSaved':'設定が正常に保存されました','configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x40943f(0x18f),'description':_0x40943f(0x17b),'univerAiLabel':_0x40943f(0x17c),'getStarted':_0x40943f(0x199)},'validation':{'apiKeyRequired':_0x40943f(0x191),'apiKeyTooShort':_0x40943f(0x174),'invalidConfig':_0x40943f(0x19a),'invalidApiKey':_0x40943f(0x18c)},'connectionStatus':{'disconnected':_0x40943f(0x173),'connecting':'接続中...','connected':_0x40943f(0x193),'failed':_0x40943f(0x192),'retrying':_0x40943f(0x17d)},'connectionError':{'unauthorized':_0x40943f(0x183),'sessionOccupied':_0x40943f(0x17f),'networkError':_0x40943f(0x190),'maxRetriesExceeded':_0x40943f(0x172)}}};module[_0x40943f(0x19b)]=locale;
@@ -1 +1 @@
1
- function _0x1be6(){const _0x4a5f23=['772xFrhpD','세션\x20ID','MCP\x20재시도\x20중...','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','연결\x20끊김','1295310IFCBjs','254583mrxgDq','exports','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','5PpsfGX','연결\x20중...','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','최대\x20재시도\x20횟수','재시도\x20중...','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','API\x20키는\x2010자\x20이상이어야\x20합니다','연결\x20실패','5467BSGYgs','8SSFzRv','보안\x20연결을\x20위해\x20인증\x20활성화','API\x20','저장\x20중...','인증\x20활성화','MCP\x20설정','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20클라이언트\x20설정','1611999qrBaMU','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','MCP:\x20인증되지\x20않음','인증\x20실패.\x20API\x20키를\x20확인하세요','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','연결됨','2091qMDLTj','설정이\x20성공적으로\x20저장되었습니다','클릭하여\x20MCP\x20연결','715256lfRbPy','클릭하여\x20MCP\x20설정','2700xPiLJr','60062inIPbR','몇\x20초\x20만에\x20API\x20키\x20발급받기','MCP:\x20최대\x20재시도\x20횟수\x20초과','API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','설정\x20저장','MCP\x20연결\x20끊김','MCP\x20연결\x20실패','API\x20키를\x20입력하세요'];_0x1be6=function(){return _0x4a5f23;};return _0x1be6();}const _0x10345b=_0x4255;(function(_0x59fda3,_0x32e3b0){const _0x5e8ddf=_0x4255,_0x1ee633=_0x59fda3();while(!![]){try{const _0x216acd=-parseInt(_0x5e8ddf(0x156))/0x1+parseInt(_0x5e8ddf(0x15f))/0x2*(parseInt(_0x5e8ddf(0x150))/0x3)+parseInt(_0x5e8ddf(0x153))/0x4+parseInt(_0x5e8ddf(0x168))/0x5*(-parseInt(_0x5e8ddf(0x164))/0x6)+-parseInt(_0x5e8ddf(0x165))/0x7+-parseInt(_0x5e8ddf(0x171))/0x8*(-parseInt(_0x5e8ddf(0x14a))/0x9)+parseInt(_0x5e8ddf(0x155))/0xa*(-parseInt(_0x5e8ddf(0x170))/0xb);if(_0x216acd===_0x32e3b0)break;else _0x1ee633['push'](_0x1ee633['shift']());}catch(_0x31b0cb){_0x1ee633['push'](_0x1ee633['shift']());}}}(_0x1be6,0x2c0ed));const e={'mcpStatus':{'disconnected':_0x10345b(0x15c),'connecting':'MCP\x20연결\x20중...','connected':'MCP\x20연결됨','failed':_0x10345b(0x15d),'retrying':_0x10345b(0x161),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x10345b(0x14c),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':'MCP:\x20네트워크\x20오류','maxRetriesExceeded':_0x10345b(0x158),'clickToConnect':_0x10345b(0x152),'clickToConfigure':_0x10345b(0x154)},'mcpConfig':{'title':_0x10345b(0x176),'description':_0x10345b(0x14b),'apiKey':_0x10345b(0x173),'apiKeyPlaceholder':_0x10345b(0x15e),'apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':_0x10345b(0x175),'enableAuthHint':_0x10345b(0x172),'connectionInfo':_0x10345b(0x149),'mcpClientConfig':_0x10345b(0x149),'configInstructions':_0x10345b(0x16a),'configStepTitle':'설정\x20단계:','configStep1':'아래\x20JSON\x20설정\x20복사','configStep2':_0x10345b(0x15a),'configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':_0x10345b(0x160),'sessionIdDescription':'고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','authorizationDescription':'Bearer\x20접두사가\x20있는\x20API\x20키.','configParameters':'설정\x20매개변수:','maxRetries':_0x10345b(0x16b),'save':_0x10345b(0x15b),'saving':_0x10345b(0x174),'note1':_0x10345b(0x148),'note2':_0x10345b(0x167),'configSaved':_0x10345b(0x151),'configError':'설정\x20저장\x20실패','apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':_0x10345b(0x159),'univerAiLabel':'Univer\x20AI\x20콘솔','getStarted':_0x10345b(0x157)},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':_0x10345b(0x16e),'invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':_0x10345b(0x16d)},'connectionStatus':{'disconnected':_0x10345b(0x163),'connecting':_0x10345b(0x169),'connected':_0x10345b(0x14f),'failed':_0x10345b(0x16f),'retrying':_0x10345b(0x16c)},'connectionError':{'unauthorized':_0x10345b(0x14d),'sessionOccupied':_0x10345b(0x162),'networkError':_0x10345b(0x14e),'maxRetriesExceeded':'최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요'}}};function _0x4255(_0x3c92ef,_0x1eb623){_0x3c92ef=_0x3c92ef-0x148;const _0x1be6df=_0x1be6();let _0x425553=_0x1be6df[_0x3c92ef];return _0x425553;}module[_0x10345b(0x166)]=e;
1
+ function _0xd141(_0x3119a5,_0x242ae7){_0x3119a5=_0x3119a5-0x140;const _0xab3876=_0xab38();let _0xd141c6=_0xab3876[_0x3119a5];return _0xd141c6;}const _0x479fbe=_0xd141;(function(_0x29f29a,_0x3540ff){const _0x144746=_0xd141,_0x243e0c=_0x29f29a();while(!![]){try{const _0x4fa05b=parseInt(_0x144746(0x160))/0x1*(parseInt(_0x144746(0x141))/0x2)+-parseInt(_0x144746(0x155))/0x3*(parseInt(_0x144746(0x16f))/0x4)+-parseInt(_0x144746(0x16a))/0x5*(-parseInt(_0x144746(0x16d))/0x6)+-parseInt(_0x144746(0x14d))/0x7*(parseInt(_0x144746(0x149))/0x8)+parseInt(_0x144746(0x162))/0x9+-parseInt(_0x144746(0x169))/0xa+parseInt(_0x144746(0x16e))/0xb*(parseInt(_0x144746(0x161))/0xc);if(_0x4fa05b===_0x3540ff)break;else _0x243e0c['push'](_0x243e0c['shift']());}catch(_0x4f2fad){_0x243e0c['push'](_0x243e0c['shift']());}}}(_0xab38,0xc2082));function _0xab38(){const _0x2782e6=['12YfGTou','6973533AzYoNe','연결\x20실패','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','Bearer\x20접두사가\x20있는\x20API\x20키.','API\x20키를\x20입력하세요','MCP:\x20인증되지\x20않음','1293070nMMrVa','5ZxYoVO','인증\x20활성화','연결\x20중...','8659014FBIXHE','8469109beiQWU','20FIOOpM','MCP\x20연결\x20실패','인증\x20실패.\x20API\x20키를\x20확인하세요','클릭하여\x20MCP\x20설정','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','1411162CNCUbZ','보안\x20연결을\x20위해\x20인증\x20활성화','설정\x20저장\x20실패','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','재시도\x20중...','MCP\x20연결됨','설정\x20단계:','연결됨','992YbLWFU','Univer\x20AI\x20콘솔','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','MCP\x20설정','79555nPJwGA','MCP\x20재시도\x20중...','연결\x20끊김','MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','최대\x20재시도\x20횟수','아래\x20JSON\x20설정\x20복사','세션\x20ID','MCP:\x20최대\x20재시도\x20횟수\x20초과','816111vwfSvV','MCP\x20클라이언트\x20설정','MCP:\x20세션\x20ID\x20사용\x20중','설정\x20매개변수:','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','설정\x20저장','exports','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','클릭하여\x20MCP\x20연결','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','MCP:\x20네트워크\x20오류','1jauCFr'];_0xab38=function(){return _0x2782e6;};return _0xab38();}const locale={'mcpStatus':{'disconnected':'MCP\x20연결\x20끊김','connecting':'MCP\x20연결\x20중...','connected':_0x479fbe(0x146),'failed':_0x479fbe(0x170),'retrying':_0x479fbe(0x14e),'unknown':'MCP\x20알\x20수\x20없는\x20상태','unauthorized':_0x479fbe(0x168),'sessionOccupied':_0x479fbe(0x157),'networkError':_0x479fbe(0x15f),'maxRetriesExceeded':_0x479fbe(0x154),'clickToConnect':_0x479fbe(0x15d),'clickToConfigure':_0x479fbe(0x172)},'mcpConfig':{'title':_0x479fbe(0x14c),'description':_0x479fbe(0x14b),'apiKey':'API\x20키','apiKeyPlaceholder':_0x479fbe(0x167),'apiKeyHint':'API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','enableAuth':_0x479fbe(0x16b),'enableAuthHint':_0x479fbe(0x142),'connectionInfo':_0x479fbe(0x156),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x479fbe(0x144),'configStepTitle':_0x479fbe(0x147),'configStep1':_0x479fbe(0x152),'configStep2':_0x479fbe(0x165),'configStep3':_0x479fbe(0x150),'sessionId':_0x479fbe(0x153),'sessionIdDescription':_0x479fbe(0x15c),'authorizationDescription':_0x479fbe(0x166),'configParameters':_0x479fbe(0x158),'maxRetries':_0x479fbe(0x151),'save':_0x479fbe(0x15a),'saving':'저장\x20중...','note1':_0x479fbe(0x164),'note2':_0x479fbe(0x159),'configSaved':'설정이\x20성공적으로\x20저장되었습니다','configError':_0x479fbe(0x143),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':'API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','univerAiLabel':_0x479fbe(0x14a),'getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':'유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요'},'connectionStatus':{'disconnected':_0x479fbe(0x14f),'connecting':_0x479fbe(0x16c),'connected':_0x479fbe(0x148),'failed':_0x479fbe(0x163),'retrying':_0x479fbe(0x145)},'connectionError':{'unauthorized':_0x479fbe(0x171),'sessionOccupied':_0x479fbe(0x140),'networkError':'네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','maxRetriesExceeded':_0x479fbe(0x15e)}}};module[_0x479fbe(0x15b)]=locale;